text
stringlengths
54
60.6k
<commit_before>/* * opencog/atoms/base/Atom.cc * * Copyright (C) 2002-2007 Novamente LLC * All Rights Reserved * * Written by Thiago Maia <thiago@vettatech.com> * Andre Senna <senna@vettalabs.com> * Welter Silva <welter@vettalabs.com> * * This program is free software; you can redistribu...
<commit_before>//=====================================================================// /*! @file @brief RX64M DMAC サンプル @n ・P07(176) ピンに赤色LED(VF:1.9V)を吸い込みで接続する @n @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github...
<commit_before>// Copyright 2018 Ulf Adams // // The contents of this file may be used under the terms of the Apache License, // Version 2.0. // // (See accompanying file LICENSE-Apache or copy at // http://www.apache.org/licenses/LICENSE-2.0) // // Alternatively, the contents of this file may be used under the ...
<commit_before>#include <Engine/Renderer/RenderTechnique/ShaderProgram.hpp> #include <Core/Utils/StringUtils.hpp> #include <globjects/base/File.h> #include <globjects/base/StaticStringSource.h> #include <globjects/NamedString.h> #include <globjects/Program.h> #include <globjects/Shader.h> #include <globjects/Texture...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" #include <algorithm> #include "base/logging.h" #include "c...
<commit_before>// ======================================================================== // // Copyright 2009-2014 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before><commit_msg>fix spelling: garded -> guarded<commit_after><|endoftext|>
<commit_before>#include <mixal/mdk_program_loader.h> #include <mixal/program_loader.h> #include <mixal/exceptions.h> #include <core/optional.h> #include <fstream> namespace mixal { namespace { // This part of code is piece of MDK that loads compiled file. // Code can be found there: https://www.gnu.or...
<commit_before>// Copyright (c) 2019 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include <franka_hw/franka_combined_hw.h> #include <algorithm> #include <memory> #include <actionlib/server/simple_action_server.h> #include <ros/node_handle.h> #include <ros/time.h> #i...
<commit_before>/***************************************************************************** * Copyright 2011 Sergey Shekyan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
<commit_before>/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/* * HLLib * Copyright (C) 2006-2010 Ryan Gregg * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any l...
<commit_before> #pragma once #include <cstdlib> #include <string> namespace principia { namespace base { #define STRINGIFY(X) #X #define STRINGIFY_EXPANSION(X) STRINGIFY(X) // See http://goo.gl/2EVxN4 for a partial overview of compiler detection and // version macros. We cannot use |COMPILER_MSVC| because it conf...
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "OgreMaterialDefines.h" #include "CoreStringUtils.h" #include "LoggingFunctions.h" #include <Engine/Core/StringUtils.h> namespace Tundra { namespace Ogre { // MaterialBlock MaterialBlock::...
<commit_before>#include <stdio.h> #include <errno.h> #include <string.h> #include <sys/time.h> #include <assert.h> #include <string> #include <vector> #include "crs_header.h" #define MKL_ILP64 #define FLEXCOMPLEX #define MKL_INT crs_idx_t #include <mkl.h> inline static float time_diff(struct timeval time1, struct t...
<commit_before>/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SampleCode.h" #include "SkAnimTimer.h" #include "SkView.h" #include "SkCanvas.h" #include "SkDrawable.h" #include "SkPath.h" #include "SkRandom.h" #in...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/logging.h" #include "base/string_number_conversions.h" #include "base/string_split.h" #include "base/string_util.h" #inc...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is dis...
<commit_before>/*************************************************************************/ /* progress_bar.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/****************************************************************************** This source file is part of the Avogadro project. Copyright 2011-2012 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writin...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* "This product...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>/* * * Copyright 2014, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, thi...
<commit_before>#include "barrier.h" #include "thread.h" #include "stream.h" Stream::Stream() : Thread(), buffer(NULL), active(true), established(false) { buffer = new char[BUFFER_SIZE]; for (unsigned i = 0; i < BUFFER_SIZE; ++i) { buffer[i] = 'A'; } } Stream::~Stream() { stop(); delete[] buffer; } void...
<commit_before><commit_msg>Removed `floyd_warshall_shader_CSV_float_compute_task`.<commit_after><|endoftext|>
<commit_before>#include "Bitmap.h" #include "Config.h" #include "SettingData.h" #include "ImageData.h" //#include "Image.h" #include "Symbol.h" #include "SymbolMgr.h" #include "FileType.h" #include "FileHelper.h" #include "Exception.h" #include "Snapshoot.h" #include "ImageTrim.h" #include <gl/glew.h> //#include <wx/f...
<commit_before>/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (w) 2014 Soumyajit De * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code ...
<commit_before>/* Copyright 2012 Joe Hermaszewski. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, th...
<commit_before>#include "appconfig.h" #include "appmodels.h" #include "appevents.h" #include "experimentcontext.h" #include <limits> #include <QBoxLayout> #include <QDebug> #include <QDialog> #include <QDialogButtonBox> #include <QRadioButton> #include <QJsonObject> #include <QJsonDocument> #include <QFileInfo> #incl...
<commit_before>// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
<commit_before>/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include "resources/resource_collection.h" #include "resources/resource_locator.h" #include "resources/resources.h" #include <halley/resources/resource.h> #include <utility> #include "graphics/sprite/sprite.h" #include "halley/support/logger.h" using namespace Halley; ResourceCollectionBase::Resource...
<commit_before>//===------------------------- thread.cpp----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/proxy/ppb_font_proxy.h" #include "ppapi/c/dev/ppb_font_dev.h" #include "ppapi/proxy/plugin_dispatcher.h" #include "ppa...
<commit_before>// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #ifndef OPENCV_DNN_SRC_CUDA_FUNCTORS_HPP #define OPENCV_DNN_SRC_CUDA_FUNCTORS_HPP #include <cuda_runtime.h> ...
<commit_before>// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018 Intel Corporation #include "precomp.hpp" #include <memory> // unique_ptr #include "...
<commit_before>#include "periodic.h" #include "Element.h" #include <sifteo.h> // Default constructor will not create a valid element, it must be initialized before use using GetRawElement Element::Element() { } Element::Element(const char* name, const char* symbol, const char* group, short atomicNumber, double elemen...
<commit_before>DEFINE_string(input_file_{{name}}, "{{name}}", "Input file"); Relation<{{tuple_type}}> {{resultsym}}; std::vector<std::string> schema_{{resultsym}} = { {% for c in colnames %}"{{c}},"{% endfor %}} }; <commit_msg>extra brace<commit_after>DEFINE_string(input_file_{{name}}, "{{name}}", "Input file"); Relati...
<commit_before>/*! \copyright (c) RDO-Team, 2012 \file main.cpp \author (lord.tiran@gmail.com) \date 13.05.2012 \brief \indent 4T */ // ---------------------------------------------------------------------------- PCH // --------------------------------------------------...
<commit_before>#include <unistd.h> #include <brick/httpclient/httpclient.h> #include "account.h" #include "httpclient/httpclient.h" #include "include/base/cef_logging.h" namespace { const char fake_id = -1; } Account::Account() { id_ = fake_id; login_ = ""; password_ = ""; domain_ = ""; secure_ = true;...
<commit_before>// A C++ program to find bridges in a given undirected graph #include <iostream> #include <list> #include <ctime> #include <algorithm> #define NIL -1 #define MAX_DEGREE 5 #define MIN_DEGREE 3 using namespace std; // A class that represents an undirected graph class Graph { int V; // No. of vert...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2012-2015 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>/****************** <VPR heading BEGIN do not edit this line> ***************** * * VR Juggler Portable Runtime * * Original Authors: * Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira * * ----------------------------------------------------------------- * File: $RC...
<commit_before>/** * Clever programming language * Copyright (c) Clever Team * * This file is distributed under the MIT license. See LICENSE for details. */ #include "core/clever.h" #include "modules/std/core/function.h" #include "modules/std/reflection/reflect.h" #include "modules/std/core/array.h" #include "mod...
<commit_before>// Copyright (c) 2016 Kasper Kronborg Isager and Radoslaw Niemczyk. #include "vector.hpp" namespace lsh { /** * Create a new vector from existing component chunks. * * @param components The existing component chunks. * @param size The number of components. */ vector::vector(const std:...
<commit_before>// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/v8.h" #include "src/version.h" // These macros define the version number for the current version. // NOTE these macros ar...
<commit_before>// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/v8.h" #include "src/version.h" // These macros define the version number for the current version. // NOTE these macros ar...
<commit_before>// This is free and unencumbered software released into the public domain. // For more information, please refer to <http://unlicense.org/> #include "plot_pane.h" #include "models/transmissionline/catenary.h" #include "line_renderer_2d.h" #include "span_analyzer_view.h" BEGIN_EVENT_TABLE(PlotPane, wx...
<commit_before>// This is free and unencumbered software released into the public domain. // For more information, please refer to <http://unlicense.org/> #include "plot_pane.h" #include "models/transmissionline/catenary.h" #include "line_renderer_2d.h" #include "span_analyzer_view.h" /// \par OVERVIEW /// /// This...
<commit_before>#include <QCoreApplication> #include <QDebug> #include "batteryInfo.h" #include <contextproperty.h> BatteryInfo::BatteryInfo(QObject * parent): QObject(parent), level(-1), state(Unknown), batteryLevel(new ContextProperty("Battery.ChargePercentage", this)), batteryState(new ContextProperty("Bat...
<commit_before>/* This file is part of the Akonadi Mail example. Copyright (c) 2009 Stephen Kelly <steveire@gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; eit...
<commit_before>// // rbtree.cpp // rbtree // // Created by Sunil on 3/22/17. // Copyright © 2017 Sunil. All rights reserved. // #include "rbtree.hpp" #include <tuple> #include <stack> #include <list> #include <iostream> using namespace std; rbnode* rbtree::search(rbnode node, int key) { return nullptr; } r...
<commit_before>/* Q Light Controller rgbmatrix_test.cpp Copyright (C) Heikki Junnila Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.tx...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/nest/p9_tod_init.H $ ...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
<commit_before>#include "protocol.h" Protocol::Protocol(std::string serverAddress, std::tr1::unordered_map<std::string, std::string> confVars, Base* theBase, unsigned short debug) : serverName(serverAddress), debugLevel(debug), serverConf(confVars), botBase(theBase), keepServer(true) { connection = botBase->assignSoc...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/** * @allknn_test.cc * Test file for AllkNN class */ #include "allknn.h" #include "fastlib/base/test.h" #include <armadillo> using namespace mlpack::allknn; namespace mlpack { namespace allknn { class TestAllkNN { public: void Init() { // allknn_ = new AllkNN(); // naive_ = new AllkNN(...
<commit_before>/* * Copyright (c) 2018, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
<commit_before>/* * Copyright (c) 2017 Akil Darjean (adarjean@uh.edu) * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT */ #include "window.h" #include <SFML/Graphics.hpp> #include <algorithm> #include <boost/filesystem.hpp> #include <exception> #...
<commit_before>#include <QtGui> #include "window.h" SettingsTab::SettingsTab(QWidget *parent) : QWidget(parent) { QLabel *usernameLabel = new QLabel(tr("Username:")); username = new QLineEdit; usernameLabel->setBuddy(username); QLabel *passwordLabel = new QLabel(tr("Password:")); password = new QLineEdit...
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Lic...
<commit_before>/**********************************************************************************/ /* godotsharp_editor.cpp */ /**********************************************************************************/ /* The MIT License (MIT) ...
<commit_before>#ifndef CHRONO_TIMER_HPP #define CHRONO_TIMER_HPP #include <chrono> #include <thread> class chrono_timer { std::chrono::time_point<std::chrono::high_resolution_clock> m_start; public: void reset() { m_start = std::chrono::high_resolution_clock::now(); } template <type...
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers // Copyright (c) 2017-2020 The Peercoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config....
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_init.C $ ...
<commit_before>/* Copyright libCellML Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
<commit_before>/* * Reference counting API. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef REFCOUNT_HXX #define REFCOUNT_HXX #include <glib.h> #include <assert.h> struct RefCount { volatile gint value; void Init() { g_atomic_int_set(&value, 1); } void Get() { assert(g_at...
<commit_before>#ifndef PQRS_XML_COMPILER_HPP #define PQRS_XML_COMPILER_HPP #include <stack> #include <string> #include <stdexcept> #include <vector> #include <tr1/memory> #include <tr1/unordered_map> #include <boost/algorithm/string.hpp> #include <boost/format.hpp> #include <boost/iterator_adaptors.hpp> #include <boos...
<commit_before>/*========================================================================= Copyright (c) Kitware Inc. All rights reserved. =========================================================================*/ // .SECTION Thanks // This test was written by Philippe Pebay, Kitware SAS 2012 #include "vtkHyper...
<commit_before>#include "SequentialFactorizer.h" #include <vector> using namespace std; SequentialFactorizer::SequentialFactorizer(const BigInt& number, const SmpFactorizationElf& e) : elf(e), m(number), p(0), q(0), distribution(), engine(e.randomSeed()), generator(bind(distribution, engine)) { } vo...
<commit_before>#ifndef __RIGID_BODY_HPP__ #define __RIGID_BODY_HPP__ #include <btBulletDynamicsCommon.h> #include <Components/Component.hh> #include <Entities/EntityData.hh> #include <Entities/Entity.hh> #include <Core/Engine.hh> #include <Managers/BulletDynamicManager.hpp> #include <BulletCollision/CollisionShapes/...
<commit_before>// sdl_main.cpp #ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #include <GL/glew.h> #include <SDL.h> #include <SDL_syswm.h> #undef main #include "ShaderFunctions.h" #include "Timer.h" #include "g_textures.h" Timer g_timer; int winw = 800; int winh = 600...
<commit_before>#include "selectors.hh" #include "string.hh" #include <algorithm> #include <boost/optional.hpp> namespace Kakoune { Selection select_line(const Buffer& buffer, const Selection& selection) { Utf8Iterator first = buffer.iterator_at(selection.last()); if (*first == '\n' and first + 1 != buffer....
<commit_before>/* * Copyright 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
<commit_before>/* * This file is part of WinSparkle (http://winsparkle.org) * * Copyright (C) 2009-2010 Vaclav Slavik * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without res...
<commit_before>// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>// Make sure ASan removes the runtime library from DYLD_INSERT_LIBRARIES before // executing other programs. // RUN: %clangxx_asan %s -o %t // RUN: %clangxx %p/../SharedLibs/darwin-dummy-shared-lib-so.cc \ // RUN: -dynamiclib -o darwin-dummy-shared-lib-so.dylib // Make sure DYLD_INSERT_LIBRARIES do...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ #ifndef _Stroika_Foundation_Traversal_Partition_inl_ #define _Stroika_Foundation_Traversal_Partition_inl_ #include "../Containers/SortedMapping.h" #include "../Debug/Assertions.h" #include "../Debug/Trace.h" namespace Stroik...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved */ #include "../StroikaPreComp.h" #include <random> #include "../../Foundation/Characters/StringBuilder.h" #include "../../Foundation/Characters/ToString.h" #include "../../Foundation/Containers/Collection.h" #include "../../Fo...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>#include <iostream> #include "itkOpenCVImageBridge.h" #include "itkRGBPixel.h" #include "itkImageFileReader.h" #include "itkDifferenceImageFilter.h" //DEBUG #include "itkImageFileWriter.h" // // Templated test function to do the heavy lifting // template<class TPixelType, unsigned int VDimension> int ...
<commit_before>#include <iostream> #include <fstream> #include <vector> #include <assert.h> #include "../generated/generatedStub.h" #include "../generated/genmech.nsmap" using std::string; using std::vector; struct arguments { string sourceFile; string sourcePath; string targetFile; }; void printHelp(); int doWo...
<commit_before>#include <cstdlib> #include <ctime> #include <list> #include <vector> #include "AIPlayer.h" #include "ChessBoard.h" AIPlayer::AIPlayer(int color, int search_depth) : ChessPlayer(color), search_depth(search_depth) { srand(time(NULL)); } AIPlayer::~AIPlayer() {} bool AIPlayer::getMove(ChessBoard & ...
<commit_before>// Copyright (c) 2015 // Author: Chrono Law #include <std.hpp> using namespace std; #include <boost/utility/string_ref.hpp> #include <boost/algorithm/string.hpp> using namespace boost; ////////////////////////////////////////// void case1() { string str("readme.txt"); if (ends_with(str, "txt"...
<commit_before>#include <imgui_utils/app_runner/imgui_runner.h> #include "imgui_internal.h" #include <map> namespace ImGuiUtils { namespace ImGuiRunner { void MyCreateDockLayout(ImGuiID fullDockSpaceId) { ImGuiViewport* viewport = ImGui::GetMainViewport(); ImGui::DockBuilderRemoveNode(fullDockS...
<commit_before>#include <osgVolume/VolumeScene> #include <osgDB/ObjectWrapper> #include <osgDB/InputStream> #include <osgDB/OutputStream> REGISTER_OBJECT_WRAPPER( osgVolume_VolumeScene, new osgVolume::VolumeScene, osgVolume::VolumeScene, "osg::...
<commit_before>/* Copyright 2017 Istio Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Petar Perisin. ** Contact: petar.perisin@gmail.com ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accorda...
<commit_before>/************************************************************************** ** ** Copyright (C) 2011 - 2013 Research In Motion ** ** Contact: Research In Motion (blackberry-qt@qnx.com) ** Contact: KDAB (info@kdab.com) ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees hold...
<commit_before>#include "TiltedTimeWindow.h" namespace Analytics { int TiltedTimeWindow::GranularityBucketCount[TTW_NUM_GRANULARITIES] = { 4, 24, 31, 12, 1 }; int TiltedTimeWindow::GranularityBucketOffset[TTW_NUM_GRANULARITIES] = { 0, 4, 28, 59, 71 }; char TiltedTimeWindow::GranularityChar[...
<commit_before>/*Copyright 2014 George Karagoulis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
<commit_before>/*Copyright 2014 George Karagoulis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
<commit_before><commit_msg>Cleaning up code.<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * ...
<commit_before>//.............................................................................. // // This file is part of the Jancy toolkit. // // Jancy is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/dow...
<commit_before>/****************************************************************************** SparkFun_9DOF_Edison_Block_Example.cpp Example code for the 9DOF Edison Block 14 Jul 2015 by Mike Hord https://github.com/sparkfun/SparkFun_9DOF_Block_for_Edison_CPP_Library Demonstrates the major functionality of the SparkF...