commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
92b0cae7d186944c4034e808917538b5986f1d62
InputHelper.cpp
InputHelper.cpp
#ifndef INPUTHELPER_CPP #define INPUTHELPER_CPP #include <termios.h> #include <iostream> #include <cstring> #include "InputHelper.h" using namespace std; void InputHelper::handleEvents(sf::RenderWindow *window) { m_input = '\0'; sf::Event event; while(window->pollEvent(event)) { switch(event.type) { case s...
#ifndef INPUTHELPER_CPP #define INPUTHELPER_CPP #include <termios.h> #include <iostream> #include <cstring> #include "InputHelper.h" using namespace std; void InputHelper::handleEvents(sf::RenderWindow *window) { m_input = '\0'; sf::Event event; while(window->pollEvent(event)) { switch(event.type) { case s...
Handle some inputs special now
Handle some inputs special now
C++
mit
TmCrafz/QuadrisSFML
34b1289eb33a88631bbf8dc61febfe31ef3a9235
crypto/ec_signature_creator.cc
crypto/ec_signature_creator.cc
// Copyright (c) 2012 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 "crypto/ec_signature_creator.h" #include "crypto/ec_signature_creator_impl.h" namespace crypto { namespace { ECSignatureCreatorFactory* g...
// Copyright (c) 2012 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 "crypto/ec_signature_creator.h" #include "base/logging.h" #include "crypto/ec_signature_creator_impl.h" namespace crypto { namespace { EC...
Add a DCHECK to ECSignatureCreator::SetFactoryForTesting to help avoid use-after-free problems.
Add a DCHECK to ECSignatureCreator::SetFactoryForTesting to help avoid use-after-free problems. Review URL: https://chromiumcodereview.appspot.com/10828118 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@149506 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,ondra-novak/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,krieger-od/nwjs_chromium.src,littlstar/chromium...
4cde5900be902ae02c1659aae896342c12859ad2
server/tests/main.cpp
server/tests/main.cpp
/* * Copyright 2014-2015 Adam Chyła, adam@chyla.org * All rights reserved. Distributed under the terms of the MIT License. */ #include "../config.h" #if defined(HAVE_GTEST) && defined(HAVE_GMOCK) #include <gtest/gtest.h> int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_...
/* * Copyright 2014-2015 Adam Chyła, adam@chyla.org * All rights reserved. Distributed under the terms of the MIT License. */ #include "../config.h" #if defined(HAVE_GTEST) && defined(HAVE_GMOCK) #include <boost/log/common.hpp> #include <gtest/gtest.h> int main(int argc, char **argv) { boost::log::core::get()-...
Disable logging when running tests
Disable logging when running tests
C++
mit
chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/slas,chyla/pat-lms
7351f4c2734af36963e9f73016f5531567e3a8a9
src/SWidgets/SSearchArea.cpp
src/SWidgets/SSearchArea.cpp
#include "includes/SWidgets/SSearchArea.hpp" #include "includes/SMainWindow.hpp" SSearchArea::SSearchArea(const QIcon & icon, SMainWindow * parent) : QLineEdit(parent), m_parent(parent), m_icon(icon) { setTextMargins(18, 0, 0, 0); connect(this, &SSearchArea::returnPressed, this, &SSearchArea::loadSearch); } voi...
#include "includes/SWidgets/SSearchArea.hpp" #include "includes/SMainWindow.hpp" SSearchArea::SSearchArea(const QIcon & icon, SMainWindow * parent) : QLineEdit(parent), m_parent(parent), m_icon(icon) { setTextMargins(18, 0, 0, 0); connect(this, &SSearchArea::returnPressed, this, &SSearchArea::loadSearch); ...
Add clear button on search area
Add clear button on search area
C++
mit
Feldrise/Sielo-NavigateurV3-WebEngine
d6bd232da4eb9a27bc133912a7e90bef75624fee
test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc
test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc
// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s // XFAIL: android #include <stdio.h> // getauxval() used instead of sysconf() in GetPageSize() is defined starting // glbc version 2.16. #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16) extern "C" long sysconf(int name) { fprintf(stderr, "sysconf wra...
// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s #include <stdio.h> #if !defined(__GLIBC_PREREQ) #define __GLIBC_PREREQ(a, b) 0 #endif // getauxval() used instead of sysconf() in GetPageSize() is defined starting // glbc version 2.16. #if __GLIBC_PREREQ(2, 16) extern "C" long sysconf(int name) { fprint...
Fix one more test on Android.
[asan] Fix one more test on Android. This change makes it pass both on libstdc++ and libc++-based toolchains. The error was: error: function-like macro '__GLIBC_PREREQ' is not defined ^ git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@335936 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
90e70ee5c3014aba10cdfee36ae8643cf3b9a088
elsa/xml_writer.cc
elsa/xml_writer.cc
// xml_writer.cc see license.txt for copyright and terms of use #include "xml_writer.h" #include "xmlhelp.h" // xmlAttrDeQuote() etc. #include "exc.h" // xBase bool sortNameMapDomainWhenSerializing = true; XmlWriter::XmlWriter(IdentityManager &idmgr0, ostream *out0, int &depth0,...
// xml_writer.cc see license.txt for copyright and terms of use #include "xml_writer.h" #include "xmlhelp.h" // xmlAttrDeQuote() etc. #include "exc.h" // xBase bool sortNameMapDomainWhenSerializing = true; XmlWriter::XmlWriter(IdentityManager &idmgr0, ostream *out0, int &depth0,...
Use xassert instead of assert
Use xassert instead of assert
C++
bsd-3-clause
angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar
09a14e2e81c81cb3bcc0485b4eb3afa5351a94c6
tests/easyprint_tests.cpp
tests/easyprint_tests.cpp
#define BOOST_TEST_MODULE Utility_function_tests #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE( fieldListFromString_tests ) { }
#define BOOST_TEST_MODULE Utility_function_tests #include <boost/test/unit_test.hpp> #include "easyprint" template <typename T, typename DELIMITER> std::string easyprint_test(T&& container, DELIMITER d ){ std::stringstream ss; print_line(ss, std::forward<T>(container), d); return ss.str(); }; BOOST_AUTO_...
Add first test, trigger Travis CI
Add first test, trigger Travis CI
C++
mit
hebaishi/easy-cpp-print
babec93381c5a3fae7d2a312696716716a87f623
ext/dlib/dlib_deps.cpp
ext/dlib/dlib_deps.cpp
#include <dlib/image_loader/png_loader.cpp> #include <dlib/image_saver/save_png.cpp> #include <dlib/image_loader/jpeg_loader.cpp> #include <dlib/image_saver/save_jpeg.cpp>
#include <dlib/image_loader/jpeg_loader.cpp> #include <dlib/image_saver/save_jpeg.cpp> #include <dlib/image_loader/png_loader.cpp> #include <dlib/image_saver/save_png.cpp>
Revert "Exchange the order to load jpeg and png"
Revert "Exchange the order to load jpeg and png" This reverts commit a3d40600c6b609c6374a26135d4d3db3632e1e4f.
C++
mit
mrkn/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,mrkn/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,mrkn/ruby-dlib
40a00812e06ae0658b591795e2880faf57f8f7f0
test/DarwinAITest.cpp
test/DarwinAITest.cpp
#include "UnitTest++/UnitTest++.h" #include "StrongAI/AI/DarwinAI/DarwinAI.hpp" class MyDarwinAI : public DarwinAI { public: MyDarwinAI() : DarwinAI( 0, 1, 0, 1 ) { } //Select for highest output float fitnessEval( NeuralNetAI& ai ) { return ...
#include "UnitTest++/UnitTest++.h" #include "StrongAI/AI/DarwinAI/DarwinAI.hpp" class MyDarwinAI : public DarwinAI { public: MyDarwinAI() : DarwinAI( 0, 1, 0, 1 ) { } //Select for highest output float fitnessEval( NeuralNetAI& ai ) { return ...
Test DarwinAI save and load
Test DarwinAI save and load
C++
unlicense
WebF0x/StrongAI,WebF0x/StrongAI,WebF0x/StrongAI
7dabce262f291204a97da70069219270c12a4ac8
test/Sema/pr30306.cpp
test/Sema/pr30306.cpp
// RUN: %clang_cc1 -x c++ -emit-llvm < %s | FileCheck %s struct A { A(int); ~A(); }; int f(const A &); // CHECK: call void @_ZN1AC1Ei // CHECK-NEXT: call i32 @_Z1fRK1A // CHECK-NEXT: call void @_ZN1AD1Ev // CHECK: call void @_ZN1AC1Ei // CHECK-NEXT: call i32 @_Z1fRK1A // CHECK-NEXT: call void @_ZN1AD1Ev template<typen...
// RUN: %clang_cc1 -x c++ -triple x86_64-pc-linux-gnu -emit-llvm < %s | FileCheck %s struct A { A(int); ~A(); }; int f(const A &); // CHECK: call void @_ZN1AC1Ei // CHECK-NEXT: call i32 @_Z1fRK1A // CHECK-NEXT: call void @_ZN1AD1Ev // CHECK: call void @_ZN1AC1Ei // CHECK-NEXT: call i32 @_Z1fRK1A // CHECK-NEXT: call vo...
Fix the test failure on msvc by specifying the triple.
[VLA] Fix the test failure on msvc by specifying the triple. Differential Revision: https://reviews.llvm.org/D24333 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@295127 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
ecc62ddac66239335cf8a8d7833c6d7ce64b7ec6
src/U8Gettext.cpp
src/U8Gettext.cpp
#include "U8Gettext.h" #include <Arduino.h> #define ENSURE(condition) do { if (!(condition)) {Serial.println("ENSURE failed at: "#condition); while(1); } } while(0) #define SIZE_OF_ARRAY(array) (sizeof((array))/sizeof((array)[0])) #define PTR_OFFSET_BYTES(ptr, nBytes) ((void*)(((char *)(ptr)) + (nBytes))) #def...
#include "U8Gettext.h" #include <Arduino.h> #define ENSURE(condition) do { if (!(condition)) {Serial.println("ENSURE failed at: "#condition); while(1); } } while(0) #define SIZE_OF_ARRAY(array) (sizeof((array))/sizeof((array)[0])) #define PTR_OFFSET_BYTES(ptr, nBytes) ((void*)(((char *)(ptr)) + (nBytes))) #def...
Return original string if current language instance is NULL
Return original string if current language instance is NULL
C++
mit
starofrainnight/ArduinoU8Gettext,starofrainnight/ArduinoU8Gettext
6c5e04f69fdb7225880fc857cab7d5142519892c
game.cpp
game.cpp
#include "game.h" #include "button.h" #include "screen.h" #include "led.h" #include "timer.h" #include "const.h" #include "logger.h" #include "helper.h" #include "controller.h" namespace game { namespace { unsigned long startTime; const unsigned long GAME_TIME = 3000; unsigned int buttonsPressed = 0; ...
#include "game.h" #include "button.h" #include "screen.h" #include "led.h" #include "timer.h" #include "const.h" #include "logger.h" #include "helper.h" #include "controller.h" namespace game { namespace { const unsigned long GAME_TIME = 3000; unsigned long endTime; unsigned int buttonsPressed...
Replace start time with end time
Replace start time with end time
C++
mit
SUPERETDUPER/bolt-arduino
f08515adb249fc6bfafcab5e2c994a9ebf2263e1
cpp/example.cpp
cpp/example.cpp
/** * @file example.cpp * @author Marcus Edel * * Simple random agent. */ #include <iostream> #include "environment.hpp" using namespace gym; int main(int argc, char* argv[]) { const std::string environment = "CartPole-v0"; const std::string host = "kurg.org"; const std::string port = "4040"; double t...
/** * @file example.cpp * @author Marcus Edel * * Simple random agent. */ #include <iostream> #include "environment.hpp" using namespace gym; int main(int argc, char* argv[]) { const std::string environment = "CartPole-v0"; const std::string host = "kurg.org"; const std::string port = "4040"; double t...
Add information about the video url.
Add information about the video url.
C++
bsd-3-clause
zoq/gym_tcp_api,zoq/gym_tcp_api
dce37bf3c142861d8c0714a72c4abaa318db0f9b
src/Global/source/PatternMatcherOnig.cc
src/Global/source/PatternMatcherOnig.cc
#include "PatternMatcherOnig.h" #include <cstring> // Static member initiallization PatternMatcherOnig::Mutex PatternMatcherOnig::mutex; PatternMatcherOnig::PatternMatcherOnig( const char * regexp ) { int r; UChar * pattern = (UChar *) regexp; OnigErrorInfo einfo; { ScopedLock guard(mutex); ...
#include "PatternMatcherOnig.h" #include <cstring> // Static member initiallization PatternMatcherOnig::Mutex PatternMatcherOnig::mutex; PatternMatcherOnig::PatternMatcherOnig( const char * regexp ) { int r; UChar * pattern = (UChar *) regexp; OnigErrorInfo einfo; { ScopedLock guard(mutex); ...
Use search instead of match in pattern matcher.
Use search instead of match in pattern matcher. Using `onig_match` essentially added an implicit "^" to the beginning of the regular expression.
C++
apache-2.0
RayZ-O/grokit,RayZ-O/grokit,tera-insights/grokit,tera-insights/grokit,tera-insights/grokit,RayZ-O/grokit,RayZ-O/grokit,tera-insights/grokit,tera-insights/grokit,tera-insights/grokit,RayZ-O/grokit
965d3d5a286568e13c8618fd2dfa5df2615114df
Haxe/Templates/Source/HaxeRuntime/Private/GcRef.cpp
Haxe/Templates/Source/HaxeRuntime/Private/GcRef.cpp
#include "HaxeRuntime.h" #include "IntPtr.h" #include "HaxeInit.h" #include <uhx/GcRef.h> ::uhx::GcRef::GcRef() { check_hx_init(); this->ref = ::uhx::expose::GcRefStatic::init(); } ::uhx::GcRef::~GcRef() { ::uhx::expose::GcRefStatic::destruct(this->ref); } ::uhx::GcRef::GcRef(const GcRef& rhs) { this->ref = ...
#include "HaxeRuntime.h" #include "CoreMinimal.h" #include "IntPtr.h" #include "HaxeInit.h" #include "uhx/GcRef.h" #include "CoreGlobals.h" ::uhx::GcRef::GcRef() { if (!GIsRetrievingVTablePtr) { check_hx_init(); this->ref = ::uhx::expose::GcRefStatic::init(); } else { this->ref = 0; } } ::uhx::GcRef...
Update to latest perforce change Change 14405 by waneck@wnk-asus-win-ls on 2017/12/07 17:29:14
[CL-14405] Update to latest perforce change Change 14405 by waneck@wnk-asus-win-ls on 2017/12/07 17:29:14 [unreal.hx] Fix some hot reload issues by delaying the init calls when calling the vtable constructor
C++
mit
proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx
fbfe0e5a83d94e615da2c1f13a0e2e024b0b492b
src/main.cc
src/main.cc
#include <iostream> #include "reader.h" namespace { class Repl { std::istream& in_; std::ostream& out_; std::string prompt_ = "mclisp> "; mclisp::Reader reader_; public: explicit Repl(std::istream& in=std::cin, std::ostream& out=std::cout): in_(in), out_(out), reader_(in_) {}; int loop(); }...
#include <iostream> #include "reader.h" namespace { class Repl { std::istream& in_; std::ostream& out_; std::string prompt_ = "mclisp> "; mclisp::Reader reader_; public: explicit Repl(std::istream& in=std::cin, std::ostream& out=std::cout): in_(in), out_(out), reader_(in_) {}; int loop(); }...
Update REPL to read/print a ConsCell * rather than a Sexp&.
Update REPL to read/print a ConsCell * rather than a Sexp&.
C++
mit
appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp,appleby/mccarthy-lisp
f610c45a4a94944ce195af4e877f0288b4296e0c
src/containerWithMostWater/containerWithMostWater.cpp
src/containerWithMostWater/containerWithMostWater.cpp
// Source : https://oj.leetcode.com/problems/container-with-most-water/ // Author : Hao Chen // Date : 2014-06-22 /********************************************************************************** * * Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). * n vertical...
// Source : https://oj.leetcode.com/problems/container-with-most-water/ // Author : Hao Chen // Date : 2014-06-22 /********************************************************************************** * * Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). * n vertical...
Add comments for "Container With Most Water"
Add comments for "Container With Most Water"
C++
mit
jaredkoontz/leetcode,jaredkoontz/leetcode,jaredkoontz/leetcode,jaredkoontz/leetcode,jaredkoontz/leetcode
f8ab035439b7b4a1d835cef51d6dfc3d82165bc9
staging_vespalib/src/tests/clock/clock_test.cpp
staging_vespalib/src/tests/clock/clock_test.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/util/clock.h> #include <vespa/fastos/thread.h> using vespalib::Clock; using vespalib::duration; using vespalib::steady_time; TES...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/util/clock.h> #include <vespa/fastos/thread.h> using vespalib::Clock; using vespalib::duration; using vespalib::steady_time; using...
Make the test deterministic by waiting for clock to tick at least once.
Make the test deterministic by waiting for clock to tick at least once.
C++
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
7e9c4d082f56a88b5ba7d5a82093a741eaaeab97
telegram_bot.cc
telegram_bot.cc
/** * Author: Denis Anisimov 2015 * * Implementation of telegram bot * */ #include "telegram_bot.h" #include <chrono> #include <thread> #include <cpprest/http_client.h> constexpr char kTelegramEndpoint[] = "https://api.telegram.org/bot"; TelegramBot::TelegramBot(std::string token) : token_(token), bot_url...
/** * Author: Denis Anisimov 2015 * * Implementation of telegram bot * */ #include "telegram_bot.h" #include <chrono> #include <thread> #include <cpprest/http_client.h> constexpr char kTelegramEndpoint[] = "https://api.telegram.org/bot"; TelegramBot::TelegramBot(std::string token) : token_(token), bot_url...
Add message on self-test failure
Add message on self-test failure
C++
mit
dbanisimov/troutslapbot-cpp
f9d9fcec85543492808df80b6c422d6d3561eb44
base/system_monitor_win.cc
base/system_monitor_win.cc
// Copyright (c) 2008 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/system_monitor.h" namespace base { void SystemMonitor::ProcessWmPowerBroadcastMessage(int event_id) { PowerEvent power_eve...
// Copyright (c) 2008 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/system_monitor.h" namespace base { void SystemMonitor::ProcessWmPowerBroadcastMessage(int event_id) { PowerEvent power_eve...
Update comments and remove bogus DCHECK in windows-specific broadcasted power message status.
Update comments and remove bogus DCHECK in windows-specific broadcasted power message status. Review URL: http://codereview.chromium.org/16220 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@7398 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,ondra-novak/chromium.src,patrickm/chromium.src,ltilve/chromium,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,rogerwang/chromium,Just-D/chromium-1,Jonekee/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,markYoungH/c...
6c865a5e2e832220fb8a141fbc9799363fd4caa7
src/dynlib/dynamiclibrary.cpp
src/dynlib/dynamiclibrary.cpp
/** * \file dynamiclibrary.cpp * \author Thibault Schueller <ryp.sqrt@gmail.com> * \brief DynamicLibrary class */ #include "dynamiclibrary.hpp" #include "exception/dynlibexception.hpp" DynamicLibrary::DynamicLibrary(const std::string& file) : _file(file), _handle(nullptr) {} void DynamicLibrary::open(Reloc...
/** * \file dynamiclibrary.cpp * \author Thibault Schueller <ryp.sqrt@gmail.com> * \brief DynamicLibrary class */ #include "dynamiclibrary.hpp" #include "exception/dynlibexception.hpp" DynamicLibrary::DynamicLibrary(const std::string& file) : _file(file), _handle(nullptr) {} void DynamicLibrary::open(Reloc...
Add RTLD_NODELETE flag when closing dynamic library.
Add RTLD_NODELETE flag when closing dynamic library. This has the effect to prevent nasty bug with object destructor not being available (eg logger object created from modules, or expectiong propagated from module).
C++
agpl-3.0
islog/leosac,leosac/leosac,leosac/leosac,islog/leosac,islog/leosac,leosac/leosac
c4fdbef3fc441d1190e626e3604166a7139ff782
build/print_sm_version.cpp
build/print_sm_version.cpp
#include <cuda_runtime_api.h> #include <stdio.h> int main(void) { int num_devices = 0; cudaGetDeviceCount(&num_devices); if(num_devices > 0) { cudaDeviceProp properties; cudaGetDeviceProperties(&properties, 0); printf("--gpu-architecture=sm_%d%d", properties.major, properties.minor); return 0; ...
#include <cuda_runtime_api.h> #include <stdio.h> #include <stdlib.h> void usage(const char *name) { printf("usage: %s [device_id]\n", name); } int main(int argc, char **argv) { int num_devices = 0; int device_id = 0; if(argc == 2) { device_id = atoi(argv[1]); } else if(argc > 2) { usage(argv[0...
Add an optional device_id command line argument.
Add an optional device_id command line argument. --HG-- extra : convert_revision : svn%3A83215879-3e5a-4751-8c9d-778f44bb06a5/trunk%40345
C++
apache-2.0
jbrownbridge/thrust,jbrownbridge/thrust,jbrownbridge/thrust,jbrownbridge/thrust
c2a7aaa4ff1a45d8a464e34001044d63f6286e88
base/cancellation_flag.cc
base/cancellation_flag.cc
// Copyright (c) 2009 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/cancellation_flag.h" #include "base/logging.h" namespace base { void CancellationFlag::Set() { #if !defined(NDEBUG) DCHECK(set_on_...
// 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 "base/cancellation_flag.h" #include "base/logging.h" namespace base { void CancellationFlag::Set() { #if !defined(NDEBUG) DCHECK_EQ(set_...
Replace a DCHECK with DCHECK_EQ.
Replace a DCHECK with DCHECK_EQ. BUG=none TEST=none Review URL: http://codereview.chromium.org/2919013 git-svn-id: http://src.chromium.org/svn/trunk/src@52429 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: dc76e08a5d10b0866111ed79414dbafbd247fd96
C++
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
31184f4287263eb565e6bedca66de714f64d421b
src/cpu/frequency/frequency_darwin.cpp
src/cpu/frequency/frequency_darwin.cpp
// infoware - C++ System information Library // // Written in 2017 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. T...
// infoware - C++ System information Library // // Written in 2017 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. T...
Use sysctl syscall in iware::cpu::frequency() on Darwin
Use sysctl syscall in iware::cpu::frequency() on Darwin Ref: #13
C++
cc0-1.0
ThePhD/infoware
ce2d32909b42769ff99ce8b486313004a755ab1b
copasi/UI/CQValidatorUnit.cpp
copasi/UI/CQValidatorUnit.cpp
// Copyright (C) 2015 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. #include "sstream" #include "qtUtilities.h" #include "CQValidatorUnit.h" CQValidatorUnit::CQValidatorUnit(QLineEdit * parent, const char * name)...
// Copyright (C) 2015 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. #include "sstream" #include "qtUtilities.h" #include "CQValidatorUnit.h" #include "utilities/CCopasiException.h" CQValidatorUnit::CQValidatorUni...
Handle the exception thrown when the parser gets invalid input (rather than getting stuck, and not proceeding to color the background)
Handle the exception thrown when the parser gets invalid input (rather than getting stuck, and not proceeding to color the background)
C++
artistic-2.0
jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI
83f4c981491580d3c3efc82e8d251424ab49d98a
mainwindow.cpp
mainwindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; }
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); setWindowTitle("CRC Calculator ver " + QString::number(MAJOR_VERSION) + '.' + QString::number(MINOR_VERSION)); } MainWindow::~MainWindow(...
Add Main Window Title + version
Add Main Window Title + version
C++
bsd-3-clause
KoynovStas/QCRC_Calc
d57b0306681f9405d222a0c1199b11469198d2c0
src/target_detection/src/usbCamera.cpp
src/target_detection/src/usbCamera.cpp
#include "usbCamera.h" enum Default { DEFAULT_CAMERA_INDEX = 0, DEFAULT_FPS = 1 }; USBCamera::USBCamera(int frameRate, int cameraIndex, string hostname): it(nh), videoStream(cameraIndex) { nh.param<int>("cameraIndex", cameraIndex, DEFAULT_CAMERA_INDEX); nh.param<int>("...
#include "usbCamera.h" enum Default { DEFAULT_CAMERA_INDEX = 0, DEFAULT_FPS = 1 }; USBCamera::USBCamera(int frameRate, int cameraIndex, string hostname): it(nh), videoStream(cameraIndex) { nh.param<int>("cameraIndex", cameraIndex, DEFAULT_CAMERA_INDEX); nh.param<int>("...
Revert to BGR color on camera to accommodate OpenCV
Revert to BGR color on camera to accommodate OpenCV
C++
mit
BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS
ef4b8cf7d28021cd8e05948ca388ef24e71348bc
src/io/tools/compressor_test.cpp
src/io/tools/compressor_test.cpp
/** * @file compressor_test.cpp * @author Chase Geigle */ #include <array> #include <iostream> #include <fstream> #include "util/gzstream.h" using namespace meta; int main(int argc, char** argv) { if (argc < 3) { std::cerr << "Usage: " << argv[0] << " input output" << std::endl; return 1; ...
/** * @file compressor_test.cpp * @author Chase Geigle */ #include <array> #include <iostream> #include <fstream> #include "io/gzstream.h" using namespace meta; int main(int argc, char** argv) { if (argc < 3) { std::cerr << "Usage: " << argv[0] << " input output" << std::endl; return 1; ...
Fix dummy compressor-test executable for util -> io move.
Fix dummy compressor-test executable for util -> io move.
C++
mit
esparza83/meta,esparza83/meta,husseinhazimeh/meta,esparza83/meta,saq7/MeTA,saq7/MeTA,husseinhazimeh/meta,husseinhazimeh/meta,gef756/meta,gef756/meta,gef756/meta,husseinhazimeh/meta,esparza83/meta,gef756/meta,esparza83/meta,husseinhazimeh/meta,saq7/MeTA,gef756/meta
240434342bd6facc12a44ba056c4f952c030fb00
startuplaunch_macx.cpp
startuplaunch_macx.cpp
#include "startuplaunch.h" #include <QDesktopServices> StartupLaunch::StartupLaunch() { } bool StartupLaunch::addOnStartup(QString name, QString executable, QString comments) { qWarning() << " add to startup not yet implemented on macx"; return false; } bool StartupLaunch::removeFromStartup(QString name) {...
#include "startuplaunch.h" #include <QDesktopServices> StartupLaunch::StartupLaunch() { } bool StartupLaunch::addOnStartup(QString name, QString executable, QString comments) { QString autostartPath = QDesktopServices::storageLocation(QDesktopServices::HomeLocation)+"/Library/LaunchAgents"; if(false==QDir()...
Add basic implementation for MacOS X
Add basic implementation for MacOS X
C++
bsd-2-clause
jdauphant/startuplaunch-qt
6e413c29393f3ce486e326259ccafc30c21b014a
fs/device.cpp
fs/device.cpp
//////////////////////////////////////////////////////////////////////////////////////////////// /// /// @file /// @author Kuba Sejdak /// @date 21.08.2016 /// /// @copyright This file is a part of cosmos OS. All rights reserved. /// ///////////////////////////////////////////////////////////////////////////...
//////////////////////////////////////////////////////////////////////////////////////////////// /// /// @file /// @author Kuba Sejdak /// @date 21.08.2016 /// /// @copyright This file is a part of cosmos OS. All rights reserved. /// ///////////////////////////////////////////////////////////////////////////...
Make default Device::init() set intialized flag.
fs: Make default Device::init() set intialized flag.
C++
bsd-2-clause
ksejdak/cosmos,ksejdak/cosmos,ksejdak/cosmos
f97f264abd939fdb301c8574781ef59f19379bd9
test/simple_app.cc
test/simple_app.cc
#include "webrtc/base/thread.h" #include "webrtc/p2p/base/basicpacketsocketfactory.h" #include "webrtc/api/peerconnectioninterface.h" #include "webrtc/api/test/fakeconstraints.h" #include "webrtc/media/engine/webrtcvideocapturerfactory.h" int main(int argc, char* argv[]) { // something from base rtc::Thread* threa...
#include "webrtc/rtc_base/thread.h" #include "webrtc/p2p/base/basicpacketsocketfactory.h" #include "webrtc/api/peerconnectioninterface.h" #include "webrtc/api/test/fakeconstraints.h" #include "webrtc/media/engine/webrtcvideocapturerfactory.h" int main(int argc, char* argv[]) { // something from base rtc::Thread* t...
Fix test for current head changes.
Fix test for current head changes.
C++
bsd-3-clause
vsimon/webrtcbuilds,vsimon/webrtcbuilds
9c201e33969be9e67029eeb8067b78c3387259d6
tests/main.cpp
tests/main.cpp
//Copyright (c) 2015 Ultimaker B.V. //UltiScanTastic is released under the terms of the AGPLv3 or higher. #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/ui/text/TestRunner.h> /*! * \brief Runs the test cases. */ int main(int argc,char** argv) { CppUnit::TextUi::TestRunner runner; CppU...
//Copyright (c) 2015 Ultimaker B.V. //UltiScanTastic is released under the terms of the AGPLv3 or higher. #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/ui/text/TestRunner.h> /*! * \brief Runs the test cases. */ int main(int argc,char** argv) { CppUnit::TextUi::TestRunner runner; CppU...
Remove old try for return code
Remove old try for return code Directly returning the boolean didn't work.
C++
agpl-3.0
pratikshashroff/pcura,Ultimaker/CuraEngine,totalretribution/CuraEngine,markwal/CuraEngine,Ultimaker/CuraEngine,ROBO3D/CuraEngine,ROBO3D/CuraEngine,totalretribution/CuraEngine,ROBO3D/CuraEngine,alephobjects/CuraEngine,pratikshashroff/pcura,totalretribution/CuraEngine,markwal/CuraEngine,pratikshashroff/pcura,alephobjects...
2d69985dcedf1fd0a5119616bd1d642e2decec68
Graphs/Traverse/dfs.cpp
Graphs/Traverse/dfs.cpp
#include <bits/stdc++.h> #define NUM_NODES 8 using namespace std; vector < int > g[NUM_NODES]; int vis[NUM_NODES]; enum {WHITE, GRAY, BLACK}; /* * o -> origin */ void dfs(int o){ vis [o] = GRAY; //semi-visited for (int i = 0; i < g[o].size(); i++){ int v = g[o][i]; if (vis[v] == WHITE) dfs(...
#include <bits/stdc++.h> #define NUM_NODES 20 using namespace std; vector < int > g[NUM_NODES]; int vis[NUM_NODES]; enum {WHITE, GRAY, BLACK}; /* * o -> origin */ void dfs(int o){ vis [o] = GRAY; //semi-visited for (int i = 0; i < g[o].size(); i++){ int v = g[o][i]; if (vis[v] == GRAY) cout...
Implement awesome form to detect cycles in a graph.
Implement awesome form to detect cycles in a graph.
C++
mit
xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book
eb0dcb6ddfe6c44904803db1a2b6e556b9d5b49e
Sieve-of-Eratosthenes/main.cpp
Sieve-of-Eratosthenes/main.cpp
#include <iostream> #include <cassert> #include <cmath> using namespace std; int main ( int argc, char *argv[] ) { assert ( argc == 2 ); unsigned long maxnumber = atol(argv[1]); // Create the sieve end initialize all numbers as prime (true) bool *numbers = new bool[maxnumber+1]; for ( unsigned lo...
#include <iostream> #include <cassert> #include <cmath> using namespace std; int main ( int argc, char *argv[] ) { unsigned long maxnumber = 0; if ( 2 == argc ) maxnumber = atol(argv[1]); else { cout << "Enter the highest number to test: "; cin >> maxnumber; } // Cr...
Read max number either from command line argument or ask user.
Sieve-of-Eratosthenes: Read max number either from command line argument or ask user.
C++
mit
Shadouw/CPPToyProblems
834469c889c3ae19170f3d7aa30c74b32a3ab783
MyOpenCV/MyOpenCVIF.cpp
MyOpenCV/MyOpenCVIF.cpp
#include "MyOpenCVIF.hpp" MyOpenCVIF::MyOpenCVIF() : m_FPSCounter(), m_humanDetector("/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml") { } void MyOpenCVIF::ProcessFrame(Mat& frame) { m_FPSCounter.ProcessFrame(frame); m_systemMonitor.ProcessFrame(frame); m_humanDetector.ProcessFrame...
#include "MyOpenCVIF.hpp" MyOpenCVIF::MyOpenCVIF() : m_FPSCounter(), m_humanDetector("/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_default.xml") { } void MyOpenCVIF::ProcessFrame(Mat& frame) { m_FPSCounter.ProcessFrame(frame); //m_systemMonitor.ProcessFrame(frame); //m_humanDetector.ProcessF...
Comment out sample HumanDetector and SystemMonitor to show performance
Comment out sample HumanDetector and SystemMonitor to show performance
C++
mit
lark-mp/raspicam_cvlan,lark-mp/raspicam_cvlan
b07a404de42b4b0908f49df20679c31263def130
desktop/Pool.cpp
desktop/Pool.cpp
#include "Pool.h" #include <iostream> #include <math.h> const float Pool::BALL_RADIUS = 0.5/40; void Pool::setWhiteBall(Vec2 whiteBall) { this->whiteBall = whiteBall; } void Pool::setTargetBall(Vec2 targetBall) { this->targetBall = targetBall; } void Pool::setPocket(Vec2 pocket) { this->pocket = pocket; ...
#include "Pool.h" #include <iostream> #include <math.h> const float Pool::BALL_RADIUS = 0.5/40; void Pool::setWhiteBall(Vec2 whiteBall) { this->whiteBall = whiteBall; } void Pool::setTargetBall(Vec2 targetBall) { this->targetBall = targetBall; } void Pool::setPocket(Vec2 pocket) { this->pocket = pocket; ...
Fix bug in ball collision code where line would be placed incorrectly
Fix bug in ball collision code where line would be placed incorrectly
C++
mit
TheZoq2/Raspi-ImageProcessing,TheZoq2/Raspi-ImageProcessing,TheZoq2/Raspi-ImageProcessing
ac74c0a3931c0af0cbb474ad673e8f379d50d202
util/devel/coverity/coverity_model.cpp
util/devel/coverity/coverity_model.cpp
/** * Coverity Scan model * * Manage false positives by giving coverity some hints. * * Updates to this file must be manually submitted by an admin to: * * https://scan.coverity.com/projects/1222 * */ // When tag is 1 or 2, let coverity know that execution is halting. Those // tags correspond to INT_FATAL a...
/** * Coverity Scan model * * Manage false positives by giving coverity some hints. * * Updates to this file must be manually submitted by an admin to: * * https://scan.coverity.com/projects/1222 * */ // When tag is 1 or 2, let coverity know that execution is halting. Those // tags correspond to INT_FATAL a...
Add exit() as program terminator; remove chpl_error(), chpl_internal_error().
Add exit() as program terminator; remove chpl_error(), chpl_internal_error(). I had thought Coverity would assume that exit() in C code would halt the program, but indications are that it does not. If it did, then Coverity would see that chpl_error() and chpl_internal_error() both caused program termination, because ...
C++
apache-2.0
hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,hildet...
eadd22bcb3f46f825392abafde80b7673b143575
ironbeepp/module_delegate.cpp
ironbeepp/module_delegate.cpp
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
Change that should have been included with earlier commit.
IronBee++/ModuleDelegate: Change that should have been included with earlier commit.
C++
apache-2.0
b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1...
bc3c63c4319949a9da0257d4a195de43987a5db5
test/simple_test.cpp
test/simple_test.cpp
#include <gtest/gtest.h> int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
#include <gtest/gtest.h> #if defined (WIN32) #include <windows.h> #include <tchar.h> #else #include <string.h> #endif #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include "codec_def.h" #include "codec_app_def.h" #include "codec_api.h" class CodecTest : public ::testing::Test { public: CodecTest() : ...
Add a trivial init test
Add a trivial init test
C++
bsd-2-clause
zyhh/losslessh264,ondev/openh264,krsjoseph/losslessh264,hgl888/losslessh264,lucas-ez/openh264,LaurenLuoYun/losslessh264,common2015/losslessh264,bitwing/losslessh264,rammybt/openh264,common2015/losslessh264,maxming2333/losslessh264,lucas-ez/openh264,treble37/losslessh264,sunfei/losslessh264,SunGuo/losslessh264,xiangshua...
64b0aab4d166c0c9129e389bd8cbe07d1f215f39
common/application_info_win.cc
common/application_info_win.cc
#include "common/application_info.h" #include "base/file_version_info.h" #include "base/memory/scoped_ptr.h" #include "base/utf_string_conversions.h" namespace brightray { std::string GetApplicationName() { auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr))); re...
#include "common/application_info.h" #include "base/file_version_info.h" #include "base/memory/scoped_ptr.h" #include "base/strings/utf_string_conversions.h" namespace brightray { std::string GetApplicationName() { auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr)...
Update utf_string_conversions.h path in another place
Update utf_string_conversions.h path in another place
C++
mit
paulcbetts/brightray,paulcbetts/brightray,deepak1556/brightray,lakshmi-srinivas/brightray,lakshmi-srinivas/brightray,hokein/brightray,hokein/brightray,tejaspathak/brightray,tejaspathak/brightray,deepak1556/brightray,bbondy/brightray,bbondy/brightray,lakshmi-srinivas/brightray,brave/brightray,atom/brightray,brave/bright...
8d7051913c6940d4e0e87f5a6ea011d936f79742
test/SemaCXX/old-style-cast.cpp
test/SemaCXX/old-style-cast.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -Wold-style-cast %s void test1() { long x = (long)12; // expected-warning {{use of old-style cast}} (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}} (void**)x; // expected-warning {{use of old-style cast}} expected-warni...
// RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify -Wold-style-cast %s void test1() { long x = (long)12; // expected-warning {{use of old-style cast}} (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}} (void**)x; // expected-warning {{use of old...
Add a triple to fix this test on Windows
Add a triple to fix this test on Windows The warning from cmake-clang-x64-msc16-R was: test\SemaCXX\old-style-cast.cpp Line 6: cast to 'void **' from smaller integer type 'long' git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@195813 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
30fca16a1f00179651c48fc7e7931e672e142626
src/qt/aboutdialog.cpp
src/qt/aboutdialog.cpp
#include "aboutdialog.h" #include "qt/decoration.h" #include "ui_aboutdialog.h" #include "clientmodel.h" AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog) { ui->setupUi(this); ui->copyrightLabel->setText("Copyright 2009-2021 The Bitcoin/Peercoin/Black-Coin/Gridcoin de...
#include "aboutdialog.h" #include "qt/decoration.h" #include "ui_aboutdialog.h" #include "clientmodel.h" AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog) { ui->setupUi(this); ui->copyrightLabel->setText("Copyright 2009-2022 The Bitcoin/Peercoin/Black-Coin/Gridcoin de...
Update copyright year to 2022 for Gridcoin About dialog box
Update copyright year to 2022 for Gridcoin About dialog box
C++
mit
caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch
62ece795ecafcc14b44d595c0f8a5f668f59adb9
test/msan/backtrace.cc
test/msan/backtrace.cc
// RUN: %clangxx_msan -O0 %s -o %t && %run %t #include <assert.h> #include <execinfo.h> #include <stdio.h> #include <string.h> #include <stdlib.h> __attribute__((noinline)) void f() { void *buf[10]; int sz = backtrace(buf, sizeof(buf) / sizeof(*buf)); assert(sz > 0); for (int i = 0; i < sz; ++i) if (!buf[...
// RUN: %clangxx_msan -O0 %s -o %t && %run %t #include <assert.h> #include <execinfo.h> #include <stdio.h> #include <string.h> #include <stdlib.h> __attribute__((noinline)) void f() { void *buf[10]; int sz = backtrace(buf, sizeof(buf) / sizeof(*buf)); assert(sz > 0); for (int i = 0; i < sz; ++i) if (!buf[...
Fix typo (ordered comparison between pointer and 0).
Fix typo (ordered comparison between pointer and 0). git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@284886 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
1044adb649af82273edc9db9afd6be85b8e816ae
src/driver/krs_servo/src/krs_servo_node.cpp
src/driver/krs_servo/src/krs_servo_node.cpp
#include "ros/ros.h" #include "servo_msgs/KrsServoDegree.h" #include <string> #include "krs_servo_driver.hpp" class KrsServoNode { public: KrsServoNode(); explicit KrsServoNode(ros::NodeHandle& nh, const char* path); private: void krsServoDegreeCallback(const servo_msgs::KrsServoDegree::ConstPtr& msg); ros...
#include "ros/ros.h" #include "servo_msgs/KrsServoDegree.h" #include <string> #include "krs_servo_driver.hpp" class KrsServoNode { public: KrsServoNode(); explicit KrsServoNode(ros::NodeHandle& nh, const char* path); private: void krsServoDegreeCallback(const servo_msgs::KrsServoDegree::ConstPtr& msg); ros...
Fix main func of krs_servo node. forget ';';
Fix main func of krs_servo node. forget ';';
C++
mit
agrirobo/arcsys2,agrirobo/arcsys2
54ab96328bbc09022c057ff0e5faa1c53b55c85b
test/unit/math/rev/prob/neg_binomial_2_ccdf_log_test.cpp
test/unit/math/rev/prob/neg_binomial_2_ccdf_log_test.cpp
#include <stan/math/rev.hpp> #include <gtest/gtest.h> #include <vector> TEST(ProbDistributionsNegBinomial2, derivatives_lccdf) { using stan::math::neg_binomial_2_lccdf; using stan::math::var; std::vector<double> N{1, 2, 3}; double alpha_dbl = 8; double beta_dbl = 1.5; var alpha(alpha_dbl); var beta(bet...
#include <stan/math/rev.hpp> #include <gtest/gtest.h> #include <vector> TEST(ProbDistributionsNegBinomial2, derivatives_lccdf) { using stan::math::neg_binomial_2_lccdf; using stan::math::var; std::vector<double> N{1, 2, 3}; double alpha_dbl = 8; double beta_dbl = 1.5; var alpha(alpha_dbl); var beta(bet...
Revert test, other precision changes make it work.... still weird.
Revert test, other precision changes make it work.... still weird.
C++
bsd-3-clause
stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math
2471af3d7ad44bb5e1fe891b976df266a20a75b7
Source/Base/FieldContainer/Base/testFCPtrs.cpp
Source/Base/FieldContainer/Base/testFCPtrs.cpp
#include <OSGBaseInitFunctions.h> #include <OSGNode.h> #include <OSGNodeCore.h> //#include <OSGRefPtr.h> int main (int argc, char **argv) { OSG::osgInit(argc, argv); // Test getting pointers OSG::NodeRecPtr node_ptr = OSG::Node::create(); #ifdef OSG_MT_FIELDCONTAINERPTRX OSG::Node* node_cptr = get_...
#include <OSGBaseInitFunctions.h> #include <OSGNode.h> #include <OSGNodeCore.h> //#include <OSGRefPtr.h> int main (int argc, char **argv) { OSG::osgInit(argc, argv); // Test getting pointers OSG::NodeRecPtr node_ptr = OSG::Node::create(); #ifdef OSG_MT_FIELDCONTAINERPTRX OSG::Node* node_cptr = get_...
Add a test to show bug in MTWeakPtr types.
Add a test to show bug in MTWeakPtr types. git-svn-id: 6c7e10cdde2c115f53707ba8ec4efe535f92d362@1831 4683daeb-ad0f-0410-a623-93161e962ae5
C++
lgpl-2.1
jondo2010/OpenSG,jondo2010/OpenSG,jondo2010/OpenSG,jondo2010/OpenSG,jondo2010/OpenSG
6cc4e25e76981ae47019bc47911724eaaf2f9a3f
test/Analysis/diagnostics/deref-track-symbolic-region.cpp
test/Analysis/diagnostics/deref-track-symbolic-region.cpp
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-output=text -verify %s struct S { int *x; int y; }; S &getSomeReference(); void test(S *p) { S &r = *p; //expected-note {{'r' initialized here}} if (p) return; //expected-note@-1{{Taking false branch}} //expected-note...
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-output=text -verify %s struct S { int *x; int y; }; S &getSomeReference(); void test(S *p) { S &r = *p; //expected-note {{'r' initialized here}} if (p) return; //expected-note@-1{{Taking false branch}} //expected-note...
Add test case for reference to null pointer param check
[analyzer] Add test case for reference to null pointer param check This tests that we track the original Expr if getDerefExpr fails. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@176754 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
88e0e09515abde0a8153657a77ba392f6b9c683f
src/tests/one_to_one_test.cpp
src/tests/one_to_one_test.cpp
#include "one_to_one_test.h" using namespace std; OneToOneTest::OneToOneTest() {} TestError OneToOneTest::setUp() { auto & im = InstanceManager::getInstance(); im.startMs(); left = im.nextNonColidingApp(); right = im.nextNonColidingApp(); left->run(); right->run(); std::this_thread::sl...
#include "one_to_one_test.h" using namespace std; OneToOneTest::OneToOneTest() {} TestError OneToOneTest::setUp() { auto & im = InstanceManager::getInstance(); im.startMs(); left = im.nextNonColidingApp(); right = im.nextNonColidingApp(); left->run(); right->run(); std::this_thread::sl...
Fix file remove for 1 to 1 test
Fix file remove for 1 to 1 test
C++
mit
Plamenod/P2P
63f7ef50a2127c90b3f5555b64cad01b04210e2b
src/test/test_gridcoin.cpp
src/test/test_gridcoin.cpp
#define BOOST_TEST_MODULE Gridcoin Test Suite #include <boost/test/unit_test.hpp> #include "db.h" #include "main.h" #include "wallet.h" CWallet* pwalletMain; CClientUIInterface uiInterface; extern bool fPrintToConsole; extern void noui_connect(); struct TestingSetup { TestingSetup() { fPrintToDebugger =...
#define BOOST_TEST_MODULE Gridcoin Test Suite #include <boost/test/unit_test.hpp> #include "db.h" #include "main.h" #include "wallet.h" CWallet* pwalletMain; CClientUIInterface uiInterface; extern bool fPrintToConsole; extern void noui_connect(); struct TestingSetup { TestingSetup() { fPrintToDebugger =...
Remove chain loading on test init.
Remove chain loading on test init.
C++
mit
theMarix/Gridcoin-Research,Git-Jiro/Gridcoin-Research,Git-Jiro/Gridcoin-Research,caraka/gridcoinresearch,gridcoin/Gridcoin-Research,theMarix/Gridcoin-Research,gridcoin/Gridcoin-Research,theMarix/Gridcoin-Research,tomasbrod/Gridcoin-Research,tomasbrod/Gridcoin-Research,gridcoin/Gridcoin-Research,theMarix/Gridcoin-Resear...
02dea95f6bf7b88641e1de17c4a447cf365f30cf
projet.cpp
projet.cpp
#include "projet.h" #include <QtDebug> #include <QProcess> Projet::Projet(QString &name, QDir &workspace, QFile &video, int frequence) { if(workspace.exists()) { if(video.exists()) { if(workspace.mkdir(name)) { _project = new QDir(workspace.path()+"/"+nam...
#include "projet.h" #include <QtDebug> #include <QProcess> Projet::Projet(QString &name, QDir &workspace, QFile &video, int frequence) { if(workspace.exists()) { if(video.exists()) { if(workspace.mkdir(name)) { _project = new QDir(workspace.path()+"/"+nam...
Add frequence to image extraction
Add frequence to image extraction
C++
mit
RotoscopMe/RotoscopMe-Core
b91becc10183aedfbfe9b5767b80bd44acdad540
content/browser/renderer_host/render_view_host_observer.cc
content/browser/renderer_host/render_view_host_observer.cc
// 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 "content/browser/renderer_host/render_view_host_observer.h" #include "content/browser/renderer_host/render_view_host.h" RenderViewHostObser...
// 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 "content/browser/renderer_host/render_view_host_observer.h" #include "content/browser/renderer_host/render_view_host.h" RenderViewHostObser...
Fix heap corruption that occurs when RenderViewHostObserver calls RenderViewHost to unregister when the latter is in its destructor.
Fix heap corruption that occurs when RenderViewHostObserver calls RenderViewHost to unregister when the latter is in its destructor. TBR=dmichael Review URL: http://codereview.chromium.org/6813043 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@80946 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,robclark/chromium,Chilledheart/chromi...
2c5596afd3c8bf19ad8961b18da1fc004b6c0af8
read_private.cpp
read_private.cpp
#include "read_private.h" int buffered_io::init() { int ret; for (int i = 0; i < num; i++) { fds[i] = open(file_names[i], flags); if (fds[i] < 0) { perror("open"); exit (1); } ret = posix_fadvise(fds[i], 0, 0, POSIX_FADV_RANDOM); if (ret < 0) { perror("posix_fadvise"); exit(1); } } return ...
#include "read_private.h" int buffered_io::init() { int ret; for (int i = 0; i < num; i++) { fds[i] = open(file_names[i], flags); if (fds[i] < 0) { perror("open"); exit (1); } ret = posix_fadvise(fds[i], 0, 0, POSIX_FADV_RANDOM); if (ret < 0) { perror("posix_fadvise"); exit(1); } } return ...
Abort if read syscall fails.
Abort if read syscall fails. It may help debug.
C++
apache-2.0
silky/FlashGraph,silky/FlashGraph,icoming/FlashGraph,icoming/FlashX,silky/FlashGraph,flashxio/FlashX,icoming/FlashX,flashxio/FlashX,icoming/FlashGraph,flashxio/FlashX,silky/FlashGraph,zheng-da/FlashX,icoming/FlashX,zheng-da/FlashX,icoming/FlashX,zheng-da/FlashX,flashxio/FlashX,flashxio/FlashX,flashxio/FlashX,zheng-da/F...
8e0de32cc99f05076c126a77620b2d1ff5751b93
test/C++Frontend/2005-01-03-StaticInitializers.cpp
test/C++Frontend/2005-01-03-StaticInitializers.cpp
// RUN: %llvmgxx %s -S -o - | grep '%XX = global int 4' struct S { int A[2]; }; int XX = (int)&(((struct S*)0)->A[1]);
// RUN: %llvmgxx %s -S -o - | not grep 'llvm.global_ctor' struct S { int A[2]; }; int XX = (int)&(((struct S*)0)->A[1]);
Adjust this test to pass after recent CFE changes. We now generate:
Adjust this test to pass after recent CFE changes. We now generate: %XX = global int cast (int* getelementptr ([2 x int]* getelementptr (%struct.S* null, int 0, uint 0), int 0, int 1) to int) which is the literal translation of the testcase :) git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@20247 91177308-0d3...
C++
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpe...
c1b7f66d3221bbe32f96665f5975b67b234a3a8d
src/Engine/Component/Shape.cpp
src/Engine/Component/Shape.cpp
#include "../Physics/Shape.hpp" #include "../Util/Json.hpp" #include "Shape.hpp" namespace Component { Json::Value Shape::Save() const { Json::Value component; Json::Value concreteShape; switch (shape->GetKind()) { case ::Physics::Shape::Kind::Sphere: { auto sph...
#include <Utility/Log.hpp> #include "../Physics/Shape.hpp" #include "../Util/Json.hpp" #include "Shape.hpp" namespace Component { Json::Value Shape::Save() const { Json::Value component; Json::Value concreteShape; switch (shape->GetKind()) { case Physics::Shape::Kind::Sphere: {...
Save box shape to JSON.
Save box shape to JSON.
C++
mit
Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/LargeGameProjectEngine
efb61d868b2a82b4cf57e85e96bb561ffe2d19f6
src/coordinate_system_node.cpp
src/coordinate_system_node.cpp
#include "./coordinate_system_node.h" #include <Eigen/Core> CoordinateSystemNode::CoordinateSystemNode() { persistable = false; x = std::make_shared<Graphics::Connector>(Eigen::Vector3f(0, 0, 0), Eigen::Vector3f(1, 0, 0)); x->color = Eigen::Vector4f(1, 0, 0, 1); y ...
#include "./coordinate_system_node.h" #include <Eigen/Core> CoordinateSystemNode::CoordinateSystemNode() { persistable = false; x = std::make_shared<Graphics::Connector>(Eigen::Vector3f(0, 0, 0), Eigen::Vector3f(1, 0, 0)); x->color = Eigen::Vector4f(1, 0, 0, 1); y ...
Initialize bounding box for coordinate system node.
Initialize bounding box for coordinate system node.
C++
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
c3c5d860798db9e1afece0648c2f8f9c49206305
Velvet/velvet.cpp
Velvet/velvet.cpp
/* Name: Velvet Author: Alvy Piper (no contact email currently) CSGO adaptation: aixxe <aixxe@skyenet.org> Copyright: 2015 Usage: More complex than GreenTea and also SDKless. A simple internal cheat with bunnyhop and norecoil, written for CSPromod BETA 1.10b for fun. Using content created by: Casual_Hacker ( http://ww...
/* Name: Velvet Author: Alvy Piper (no contact email currently) CSGO adaptation: aixxe <aixxe@skyenet.org> Copyright: 2015 Usage: More complex than GreenTea and also SDKless. A simple internal cheat with bunnyhop and norecoil, written for CSPromod BETA 1.10b for fun. Using content created by: Casual_Hacker ( http://ww...
Fix contact link (Thanks SippieCup)
Fix contact link (Thanks SippieCup)
C++
apache-2.0
AlvyPiper/Velvet,AlvyPiper/Velvet
b28546c36c40f13dcbb5538de4857f703e2e8c55
tests/bits/parameter_handler_1.cc
tests/bits/parameter_handler_1.cc
//---------------------------- parameter_handler_1.cc --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2002, 2003 by the deal.II authors and Anna Schneebeli // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer...
//---------------------------- parameter_handler_1.cc --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2002, 2003 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the file d...
Remove incorrect credit of authorship.
Remove incorrect credit of authorship. git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@7586 0785d39b-7218-0410-832d-ea1e28bc413d
C++
lgpl-2.1
danshapero/dealii,flow123d/dealii,naliboff/dealii,YongYang86/dealii,lue/dealii,nicolacavallini/dealii,Arezou-gh/dealii,JaeryunYim/dealii,lpolster/dealii,spco/dealii,nicolacavallini/dealii,flow123d/dealii,sriharisundar/dealii,msteigemann/dealii,sriharisundar/dealii,johntfoster/dealii,rrgrove6/dealii,spco/dealii,lue/deal...
6b5cf5f1faf89391b06be1c5a3a7fd5c5b2e2260
orifs/logging.cc
orifs/logging.cc
/* * Copyright (c) 2012 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S)...
/* * Copyright (c) 2012 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S)...
Use fflush to make sure libc buffer is flushed synchronously for debugging purposes.
Use fflush to make sure libc buffer is flushed synchronously for debugging purposes.
C++
isc
orifs/ori,BBBSnowball/ori,BBBSnowball/ori,orifs/ori,orifs/ori,BBBSnowball/ori,orifs/ori,BBBSnowball/ori
7d8b0e1382fe0e3b19c44982abaa5d7a581608ec
examples/aout.cpp
examples/aout.cpp
/******************************************************************************\ * This example illustrates how to use aout. * \ ******************************************************************************/ #include <chrono> #include <cstdlib> #include <iostream> #include "caf/all.h...
/******************************************************************************\ * This example illustrates how to use aout. * \ ******************************************************************************/ #include <random> #include <chrono> #include <cstdlib> #include <iostream> ...
Use std::random_device instead of rand()
Use std::random_device instead of rand()
C++
bsd-3-clause
DavadDi/actor-framework,szdavid92/actor-framework,1blankz7/actor-framework,firegurafiku/actor-framework,tbenthompson/actor-framework,szdavid92/actor-framework,PlexChat/actor-framework,1blankz7/actor-framework,tempbottle/actor-framework,DavadDi/actor-framework,szdavid92/actor-framework,nq-ebaratte/actor-framework,actor-...
7efa0e03828dd13e53f5310fc80471604f298d48
test/Misc/ast-dump-templates.cpp
test/Misc/ast-dump-templates.cpp
// RxUN: %clang_cc1 -ast-dump %s | FileCheck %s // RUN: %clang_cc1 -ast-dump %s > /dev/null template <int X, typename Y, int Z = 5> struct foo { int constant; foo() {} Y getSum() { return Y(X + Z); } }; template <int A, typename B> B bar() { return B(A); } void baz() { int x = bar<5, int>(); int y = foo<...
// RUN: %clang_cc1 -ast-dump %s > %t // RUN: FileCheck < %t %s -check-prefix=CHECK1 // RUN: FileCheck < %t %s -check-prefix=CHECK2 template <int X, typename Y, int Z = 5> struct foo { int constant; foo() {} Y getSum() { return Y(X + Z); } }; template <int A, typename B> B bar() { return B(A); } void baz() { ...
Fix a test case that was intermittently failing. The issue was that instantiations are not stored in an order preserving structure, so the print order may be impacted. Modified test case to do two FileCheck passes to ensure that both instantiations are in the same place.
Fix a test case that was intermittently failing. The issue was that instantiations are not stored in an order preserving structure, so the print order may be impacted. Modified test case to do two FileCheck passes to ensure that both instantiations are in the same place. Test originially commited at r136306 and temp...
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
2d6b5b2a4554f64513539d8d60891792e9760487
kms++util/src/cpuframebuffer.cpp
kms++util/src/cpuframebuffer.cpp
#include <map> #include <kms++util/cpuframebuffer.h> using namespace std; namespace kms { CPUFramebuffer::CPUFramebuffer(uint32_t width, uint32_t height, PixelFormat format) : m_width(width), m_height(height), m_format(format) { const PixelFormatInfo& format_info = get_pixel_format_info(m_format); m_num_planes ...
#include <map> #include <kms++util/cpuframebuffer.h> using namespace std; namespace kms { CPUFramebuffer::CPUFramebuffer(uint32_t width, uint32_t height, PixelFormat format) : m_width(width), m_height(height), m_format(format) { const PixelFormatInfo& format_info = get_pixel_format_info(m_format); m_num_planes ...
Use [] operator delete to free CPUFramebuffer buffers
Use [] operator delete to free CPUFramebuffer buffers
C++
mpl-2.0
tomba/kmsxx,tomba/kmsxx,tomba/kmsxx,tomba/kmsxx
1ef47f77a8ade197f6e2b765be1b0d4668ec6725
src/tests/rapidjsoninsitutest.cpp
src/tests/rapidjsoninsitutest.cpp
#define TEST_INSITU #define TEST_PARSE_FLAG kParseInsituFlag #define TEST_NAME "RapidJSON_Insitu (C++)" #define TEST_CLASS RapidjsonInsituTest #include "rapidjsontest.cpp"
#define TEST_INSITU #define TEST_PARSE_FLAG kParseInsituFlag #define TEST_NAME "RapidJSON_Insitu (C++)" #define TEST_CLASS RapidjsonInsituTest #define RapidjsonParseResult RapidjsonParseInsituResult #include "rapidjsontest.cpp"
Fix RapidJSON Insitu Test on Windows
Fix RapidJSON Insitu Test on Windows
C++
mit
tesis100/nativejson-benchmark,wangfakang/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,DavadDi/nativejson-benchmark,tesis100/nativejson-benchmark,wangfakang/nativejson-benchmark,miloyip/nativejson-benchmark,DavadDi/nativejson-benchmark,wangfakang/nativejson-benchmark,tesis100/nativejson...
ac38a4e4cd797177454038396842fa35e2d949e3
ui/base/ui_base_switches_util.cc
ui/base/ui_base_switches_util.cc
// Copyright (c) 2013 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 "ui/base/ui_base_switches_util.h" #include "base/command_line.h" #include "ui/base/ui_base_switches.h" namespace switches { bool IsTouchDr...
// Copyright (c) 2013 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 "ui/base/ui_base_switches_util.h" #include "base/command_line.h" #include "ui/base/ui_base_switches.h" namespace switches { bool IsTouchDr...
Revert 205124 "Turn on touch drag and drop and touch editing by ..."
Revert 205124 "Turn on touch drag and drop and touch editing by ..." > Turn on touch drag and drop and touch editing by default on chromeos. > > BUG=168162 > > Review URL: https://chromiumcodereview.appspot.com/16268020 TBR=varunjain@chromium.org,sky@chromium.org Review URL: https://codereview.chromium.org/1706800...
C++
bsd-3-clause
dushu1203/chromium.src,anirudhSK/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,littlstar/chromium.src,Fireblend/chromium-crosswalk,markYoungH/chromium.src,Fireblend/chromium-crosswalk,markYoungH/chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,...
14e68e90d520e657ea01219df213e8e18832d80a
core/src/gameengine/positions.cc
core/src/gameengine/positions.cc
// // positions.cc // GameEngine // // Created by Jon Sharkey on 2013-02-19. // Copyright 2013 Sharkable. All rights reserved. // #include "gameengine/positions.h" #include "thirdparty/tinyxml2/tinyxml2.h" #include "gameengine/asset_reader.h" double str2double(const char *str) { char *end_ptr; double value ...
// // positions.cc // GameEngine // // Created by Jon Sharkey on 2013-02-19. // Copyright 2013 Sharkable. All rights reserved. // #include "gameengine/positions.h" #include "gameengine/asset_reader.h" #include "gameengine/thirdparty/tinyxml2/tinyxml2.h" void Positions::LoadFile(AssetReader &asset_reader) { tin...
Fix header. Remove unneeded helper function.
Fix header. Remove unneeded helper function.
C++
apache-2.0
sharkable/sharkengine,sharkable/sharkengine,sharkable/sharkengine,sharkable/sharkengine,sharkable/sharkengine
ab23b509fa377f820e94755e6f7ecd1320d9eae8
server/remoteclient.cpp
server/remoteclient.cpp
#pragma GCC diagnostic ignored "-Wdeprecated" #include "remoteclient.hpp" #include "core/messages/client/clientmsg.hpp" #include "core/messages/server/servermsg.hpp" #include "core/serveriface.hpp" namespace { struct ClientLauncher { void operator()(RemoteClient* c) { c->run(); } }; } RemoteClient:...
#pragma GCC diagnostic ignored "-Wdeprecated" #include "remoteclient.hpp" #include "core/messages/client/clientmsg.hpp" #include "core/messages/server/servermsg.hpp" #include "core/serveriface.hpp" namespace { struct ClientLauncher { void operator()(RemoteClient* c) { c->run(); } }; } RemoteClient:...
Fix memory leak in RemoteClient
Fix memory leak in RemoteClient
C++
bsd-3-clause
branan/quintses,branan/quintses,branan/quintses
2d7043a91e7fc7dbfd712366b7b6f9e1186e5428
test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
test/CodeGenCXX/castexpr-basepathsize-threshold.cpp
// RUN: %clang_cc1 %s -emit-llvm -o - // https://bugs.llvm.org/show_bug.cgi?id=38356 // We only check that we do not crash. template <typename a, a b(unsigned), int c, unsigned...> struct d : d<a, b, c - 1> {}; template <typename a, a b(unsigned), unsigned... e> struct d<a, b, 0, e...> { a f[0]; }; struct g { sta...
// RUN: %clang_cc1 %s -emit-llvm-only -o - // https://bugs.llvm.org/show_bug.cgi?id=38356 // We only check that we do not crash. template <typename a, a b(unsigned), int c, unsigned...> struct d : d<a, b, c - 1> {}; template <typename a, a b(unsigned), unsigned... e> struct d<a, b, 0, e...> { a f[0]; }; struct g { ...
Use -emit-llvm-only instead of -emit-llvm and ignoring it.
[NFC][CodeGenCXX] Use -emit-llvm-only instead of -emit-llvm and ignoring it. As pointed out by Richard Smith in post-review of r338489. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@338640 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
9c753a55eac8ccf4cee6190e3e3c257546c3b9a3
resources/stringfontresource.cpp
resources/stringfontresource.cpp
/** \file * File for the string fonts. * * @author Nathan Samson */ #include <sstream> #include "resources/stringfontresource.h" #include "resources/fontresource.h" namespace Zabbr { /** * Constructor. * * @param surface The surface. * @param id The ID of the string fonts. */ StringFontResource::Strin...
/** \file * File for the string fonts. * * @author Nathan Samson */ #include <sstream> #include "resources/stringfontresource.h" #include "resources/fontresource.h" namespace Zabbr { /** * Constructor. * * @param surface The surface. * @param id The ID of the string fonts. */ StringFontResource::Strin...
Fix ID's of strings with spaces
Fix ID's of strings with spaces
C++
bsd-3-clause
nathansamson/zabbr
6b601395e79291ec98f596f724001976106b6f6e
lib/Checker/CallInliner.cpp
lib/Checker/CallInliner.cpp
//===--- CallInliner.cpp - Transfer function that inlines callee ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- CallInliner.cpp - Transfer function that inlines callee ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use getBody() to get the function definition when the decl referenced is not definition.
Use getBody() to get the function definition when the decl referenced is not definition. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@97373 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
ce61d9b9836d3f963df93a4bb05db594d62548a4
lib/Support/StringSaver.cpp
lib/Support/StringSaver.cpp
//===-- StringSaver.cpp ---------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- StringSaver.cpp ---------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix an undefined behavior when storing an empty StringRef.
Fix an undefined behavior when storing an empty StringRef. Summary: Passing a nullptr to memcpy is UB. Reviewers: ioeric Subscribers: llvm-commits, cfe-commits Differential Revision: https://reviews.llvm.org/D50966 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@340170 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llv...
76004f9315b65aeb1be6a64e253b3c43d8f6ab0f
Pingduino/Game.cpp
Pingduino/Game.cpp
#include "Arduino.h" #include "Game.h" Game::Game() { } void Game::init() { restart(1); } int Game::p1Score() { return _p1Score; } int Game::p2Score() { return _p2Score; } int Game::server() { return _server; } bool Game::over() { return (_p1Score >= 11 || _p2Score >= 11) && abs(_p1Score - _p2Score) >= 2; } ...
#include "Arduino.h" #include "Game.h" Game::Game() { } void Game::init() { restart(1); } int Game::p1Score() { return _p1Score; } int Game::p2Score() { return _p2Score; } int Game::server() { return _server; } bool Game::over() { return (_p1Score >= 11 || _p2Score >= 11) && abs(_p1Score - _p2Score) >= 2; } ...
Fix setting server on restart
Fix setting server on restart
C++
mit
rubyist/pingduino,rubyist/pingduino
e4c5c7358731b3da3e32d5745a32f87ec0be9832
src/client/main.cpp
src/client/main.cpp
#include <iostream> #include <boost/array.hpp> #include <boost/asio.hpp> #include "common/CLOpts.h" #include "common/config.h" #include "common/file_operations.h" #include "common/packets.h" // Shorten the crazy long namespacing to asio tcp using boost::asio::ip::tcp; int main(int argc, char **argv) { // Parse ou...
#include <iostream> #include <boost/asio.hpp> #include "client/Client.h" #include "common/CLOpts.h" #include "common/config.h" // Shorten the crazy long namespacing to asio tcp using boost::asio::ip::tcp; int main(int argc, char **argv) { // Parse out command line options sc2tm::CLOpts opts; if (!opts.parse...
Rewrite into async like server.
Rewrite into async like server.
C++
mit
kuzi117/sc2tm
3a9eabb262c4a5a87cffc4d8c2112ae7f073a289
src/LeapSerial/descriptors.cpp
src/LeapSerial/descriptors.cpp
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "descriptors.h" #include <atomic> using namespace leap; descriptor_entry::descriptor_entry(const std::type_info& ti, const descriptor& (*pfnDesc)()) : Next(descriptors::Link(*this)), ti(ti), pfnDesc(pfnDesc) {} const...
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "descriptors.h" #include <atomic> using namespace leap; descriptor_entry::descriptor_entry(const std::type_info& ti, const descriptor& (*pfnDesc)()) : Next(descriptors::Link(*this)), ti(ti), pfnDesc(pfnDesc) {} const...
Fix initialization race in MSVC2013
Fix initialization race in MSVC2013 MSVC2013 before the CTP doesn't have magic statics, so we need to make sure all of our descriptors are initialized on that platform in advance.
C++
apache-2.0
leapmotion/leapserial,leapmotion/leapserial,leapmotion/leapserial
27eda3a7860e6c0835543c6fcb358d3ff90a79ad
src/common/utils.cc
src/common/utils.cc
/* utils.cc Louis Solofrizzo 2019-10-17 Utilities for pistache */ #include <pistache/peer.h> #include <unistd.h> ssize_t SSL_sendfile(SSL *out, int in, off_t *offset, size_t count) { unsigned char buffer[4096] = { 0 }; ssize_t ret; ssize_t written; size_t ...
/* utils.cc Louis Solofrizzo 2019-10-17 Utilities for pistache */ #include <pistache/peer.h> #include <unistd.h> #ifdef PISTACHE_USE_SSL ssize_t SSL_sendfile(SSL *out, int in, off_t *offset, size_t count) { unsigned char buffer[4096] = { 0 }; ssize_t ret; ssize_t writ...
Fix broken compilation for trees without the PISTACHE_USE_SSL option
Common: Fix broken compilation for trees without the PISTACHE_USE_SSL option Due to a brain-lag on my end, I've introduced a regression in commit 44e40478d604746963b898efd463a541ebbea824, because a SSL utility function was compiling whether or not the SSL was enabled. It is now fixed, apologies. Pull Request: https:/...
C++
apache-2.0
oktal/rest,oktal/pistache,oktal/pistache,oktal/rest,oktal/pistache,oktal/rest,oktal/rest,oktal/pistache,oktal/pistache
06ef7f14b1b504c38982ceaaadca6c3993f7f15b
SkyXHydrax/dllmain.cpp
SkyXHydrax/dllmain.cpp
// For conditions of distribution and use, see copyright notice in license.txt #if SKYX_ENABLED #include "EC_SkyX.h" #endif #if HYDRAX_ENABLED #include "EC_Hydrax.h" #endif #include "Framework.h" #include "SceneAPI.h" #include "IComponentFactory.h" extern "C" { DLLEXPORT void TundraPluginMain(Framework *fw) { Fr...
// For conditions of distribution and use, see copyright notice in license.txt #if SKYX_ENABLED #include "EC_SkyX.h" #endif #if HYDRAX_ENABLED #include "EC_Hydrax.h" #endif #include "Framework.h" #include "SceneAPI.h" #include "IComponentFactory.h" ///\todo HydraxConfigFile support //#include "AssetAPI.h" //#include "...
Mark down todo for HydraxConfigFile support.
Mark down todo for HydraxConfigFile support.
C++
apache-2.0
jesterKing/naali,realXtend/tundra,antont/tundra,BogusCurry/tundra,antont/tundra,realXtend/tundra,jesterKing/naali,pharos3d/tundra,antont/tundra,antont/tundra,jesterKing/naali,realXtend/tundra,realXtend/tundra,antont/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,AlphaStaxLLC/tundra,j...
f2664bdeeef106959ba4e4860294638e5e68609b
android/benchmarking.cpp
android/benchmarking.cpp
#include "env.hpp" #include "java_classes.hpp" #include <atomic> #include <fmo/benchmark.hpp> #include <thread> namespace { struct { Reference<Callback> callbackRef; JavaVM* javaVM; JNIEnv* threadEnv; std::atomic<bool> stop; } global; } void Java_cz_fmo_Lib_benchmarkingStart(JN...
#include "env.hpp" #include "java_classes.hpp" #include <atomic> #include <fmo/benchmark.hpp> #include <thread> namespace { struct { Reference<Callback> callbackRef; JavaVM* javaVM; JNIEnv* threadEnv; std::atomic<bool> stop; } global; } void Java_cz_fmo_Lib_benchmarkingStart(JN...
Fix crash when going straight to benchmark
Fix crash when going straight to benchmark
C++
mit
tufak/fmo-cpp
6b2c63e3280d67048d9449886e1baf6304fac4b1
test/Profile/cxx-structors.cpp
test/Profile/cxx-structors.cpp
// Tests for instrumentation of C++ constructors and destructors. // // RUN: %clang_cc1 -triple x86_64-apple-macosx10.11.0 -x c++ %s -o - -emit-llvm -fprofile-instrument=clang | FileCheck %s struct Foo { Foo() {} Foo(int) {} ~Foo() {} }; struct Bar : public Foo { Bar() {} Bar(int x) : Foo(x) {} ~Bar(); };...
// Tests for instrumentation of C++ constructors and destructors. // // RUN: %clang_cc1 -triple x86_64-apple-macosx10.11.0 -x c++ %s -o %t -emit-llvm -fprofile-instrument=clang // RUN: FileCheck %s -input-file=%t -check-prefix=INSTR // RUN: FileCheck %s -input-file=%t -check-prefix=NOINSTR struct Foo { Foo() {} Fo...
Make a test more explicit. NFC.
[profiling] Make a test more explicit. NFC. The cxx-structors.cpp test checks that some instrumentation doesn't appear, but it should be more explicit about which instrumentation it actually expects to appear. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@295532 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry pic...
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
d12d7d30820ac62aaebbbf0d7eda66df1ea899c5
test/sanitizer_common/TestCases/Posix/crypt.cpp
test/sanitizer_common/TestCases/Posix/crypt.cpp
// RUN: %clangxx -O0 -g %s -o %t -lcrypt && %run %t // crypt() is missing from Android and -lcrypt from darwin. // UNSUPPORTED: android, darwin #include <assert.h> #include <unistd.h> #include <cstring> int main (int argc, char** argv) { { char *p = crypt("abcdef", "xz"); volatile size_t z = strlen(p); }...
// RUN: %clangxx -O0 -g %s -o %t -lcrypt && %run %t // crypt() is missing from Android and -lcrypt from darwin. // UNSUPPORTED: android, darwin #include <assert.h> #include <unistd.h> #include <cstring> #include <crypt.h> int main (int argc, char** argv) { { char *p = crypt("abcdef", "xz"); volatile size_t...
Add a missing include in test.
Add a missing include in test. A fix for r373993. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@374448 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
4360a77985b07d5aa902a4b43853359d0ae0b8e8
test/unit/math/mix/prob/std_normal_cdf_test.cpp
test/unit/math/mix/prob/std_normal_cdf_test.cpp
#include <test/unit/math/test_ad.hpp> #include <limits> TEST(mathMixScalFun, std_normal_cdf_derivatives) { auto f = [](const auto& y) { return stan::math::std_normal_cdf(y); }; stan::test::expect_ad(f, -50.0); // stan::test::expect_ad(f, -20.0 * stan::math::SQRT_TWO); // stan::test::expect_ad(f, -10.0); sta...
#include <test/unit/math/test_ad.hpp> #include <limits> TEST(mathMixScalFun, std_normal_cdf_derivatives) { auto f = [](const auto& y) { return stan::math::std_normal_cdf(y); }; stan::test::expect_ad(f, -50.0); // the following fails because AD returns -nan in the Hessian // stan::test::expect_ad(f, -20.0 * st...
Clarify reason for failing tests
Clarify reason for failing tests
C++
bsd-3-clause
stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math
f6f1e66019471bfd20f4a16fdb30960e55e48dec
Settings/Controls/Slider.cpp
Settings/Controls/Slider.cpp
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "Slider.h" void Slider::Buddy(Control *buddy, bool bottomOrRight) { _buddyWnd = buddy->Handle(); SendMessage(_hWnd, TBM_SETBUDDY, (WPARAM) bottomOrRight ? FALSE : TRUE, (LPARAM...
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "Slider.h" void Slider::Buddy(Control *buddy, bool bottomOrRight) { _buddyWnd = buddy->Handle(); SendMessage(_hWnd, TBM_SETBUDDY, (WPARAM) bottomOrRight ? FALSE : TRUE, (LPARAM...
Call OnSlide when the slider position changes programmatically
Call OnSlide when the slider position changes programmatically
C++
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
11ddb68ec3752a7468f11681e12c278f870b8de6
qlazerdriveplayer.cpp
qlazerdriveplayer.cpp
#include "qlazerdriveplayer.h" QLazerDrivePlayer::QLazerDrivePlayer(const uint &id, const QString &name, const uint &r, const uint &g, const uint &b, const uint &score) { m_id = id; m_name = name; m_r = r; m_g = g; m_b = b; m_score = score; } uint QLazerDrivePlayer::r() const { return m_r;...
#include "qlazerdriveplayer.h" QLazerDrivePlayer::QLazerDrivePlayer(const uint &id, const QString &name, const uint &r, const uint &g, const uint &b, const uint &score) { m_id = id; m_name = name; m_r = r; m_g = g; m_b = b; m_score = score; } uint QLazerDrivePlayer::id() const { return m_i...
Add missing getters / setters
Add missing getters / setters
C++
mit
vdechenaux/QLazerDriveClient,vdechenaux/QLazerDriveClient
b66ad6ba246a9cb98352bd0158db2f0f4bccf485
Turn/src/Turn.cpp
Turn/src/Turn.cpp
#include "..\include\Game.h" // // TO-DO: // - add more enemies // - implement arena // - implement custom moves (e.g. specific moves to each class, custom Attack(); stuff) // - add advanced AI (when taking a risk attack and miss, heal) // - store and sell (buy with coins, sell arrows/bombs/etc for money or experience...
#include "..\include\Game.h" // // TO-DO: // - add more enemies // - implement arena // - implement custom moves (e.g. specific moves to each class, custom Attack(); stuff) // - add advanced AI (when taking a risk attack and miss, heal) // - store and sell (buy with coins, sell arrows/bombs/etc for money or experience...
Revert "Moved comments into right places"
Revert "Moved comments into right places" This reverts commit a3f3210f73e017b304eebcc9614c03bd033a80bc.
C++
mit
AlissaWe/Turn,tagniam/Turn,tagniam/Turn,AlissaWe/Turn
478eac7446d56a297405de4ab1b14da8d8e21494
src/qca_systemstore_flatfile.cpp
src/qca_systemstore_flatfile.cpp
/* * qca_systemstore_flatfile.cpp - Qt Cryptographic Architecture * Copyright (C) 2004,2005 Justin Karneges * * 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 ...
/* * qca_systemstore_flatfile.cpp - Qt Cryptographic Architecture * Copyright (C) 2004,2005 Justin Karneges * * 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 ...
Add in support for when there is no system store support.
Add in support for when there is no system store support. svn path=/trunk/kdesupport/qca/; revision=407460
C++
lgpl-2.1
KDE/qca,JoshuaKolden/qca,sladage/qca,highfidelity/qca,sladage/qca,oktavarium/qca,Bjoe/qca,KDE/qca,KDE/qca,Esf-Software/qca,sladage/qca,oktavarium/qca,Esf-Software/qca,sladage/qca,karolherbst/qca,oktavarium/qca,JoshuaKolden/qca,karolherbst/qca,highfidelity/qca,Esf-Software/qca,KDE/qca,karolherbst/qca,karolherbst/qca,hig...
48297f583ece5d71878f6e7bb4655c66e07e1a83
GPTP/src/hooks/consume_inject.cpp
GPTP/src/hooks/consume_inject.cpp
//The injector source file for the Consume hook module. #include "consume.h" #include <hook_tools.h> namespace { void __declspec(naked) consumeHitWrapper() { CUnit *target, *caster; __asm { PUSHAD MOV caster, ESI MOV target, EAX } hooks::consumeHitHook(target, caster); __asm { POPA...
//The injector source file for the Consume hook module. #include "consume.h" #include <hook_tools.h> namespace { void __declspec(naked) consumeHitWrapper() { static CUnit *target, *caster; __asm { PUSHAD MOV caster, ESI MOV target, EAX } hooks::consumeHitHook(target, caster); __asm { ...
Fix a stack corruption bug in Consume hook module.
GPTP: Fix a stack corruption bug in Consume hook module.
C++
isc
SCMapsAndMods/general-plugin-template-project,xboi209/general-plugin-template-project,SCMapsAndMods/general-plugin-template-project,xboi209/general-plugin-template-project
59464a4be8bfc0395cea82f7ec0a6cc4bd36071b
src/Watermark/View/WatermarkDataFactory.cpp
src/Watermark/View/WatermarkDataFactory.cpp
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WatermarkDataFactory.h" namespace ExampleApp { namespace Watermark { namespace View { WatermarkDataFactory::WatermarkDataFactory(const std::string& appName, con...
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WatermarkDataFactory.h" namespace ExampleApp { namespace Watermark { namespace View { WatermarkDataFactory::WatermarkDataFactory(const std::string& appName, con...
Update watermark 'Find out more' url.
Update watermark 'Find out more' url.
C++
bsd-2-clause
wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee...
a325b416d2fbdc3171d37c0cfe85bd2e71091ae9
test/Tooling/fixed-database.cpp
test/Tooling/fixed-database.cpp
// RUN: rm -rf %t // RUN: mkdir -p %t/Src // RUN: cp "%s" "%t/Src/test.cpp" // RUN: mkdir -p %t/Include // RUN: cp "%S/Inputs/fixed-header.h" "%t/Include/" // -I flag is relative to %t (where compile_flags is), not Src/. // RUN: echo '-IInclude/' >> %t/compile_flags.txt // RUN: echo "-Dklazz=class" >> %t/compile_flags....
// RUN: rm -rf %t // RUN: mkdir -p %t/Src // RUN: cp "%s" "%t/Src/test.cpp" // RUN: mkdir -p %t/Include // RUN: cp "%S/Inputs/fixed-header.h" "%t/Include/" // -I flag is relative to %t (where compile_flags is), not Src/. // RUN: echo '-IInclude/' >> %t/compile_flags.txt // RUN: echo "-Dklazz=class" >> %t/compile_flags....
Make compile_flags.txt negative test more hermetic
[tooling] Make compile_flags.txt negative test more hermetic git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@318154 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
dcfe6b7358341c21225aa22c6c981b0922cd123f
src/GameRuntime/Main.cpp
src/GameRuntime/Main.cpp
/************************************************************************ * * Flood Project (2008-201x) * Licensed under the simplified BSD license. All rights reserved. * ************************************************************************/ #include "GameRuntime/API.h" #include "GameRuntime/Game.h" //----------...
/************************************************************************ * * Flood Project (2008-201x) * Licensed under the simplified BSD license. All rights reserved. * ************************************************************************/ #include "GameRuntime/API.h" #include "GameRuntime/Game.h" //----------...
Use the local variable instead of a global accessor.
Use the local variable instead of a global accessor.
C++
bsd-2-clause
FloodProject/flood,FloodProject/flood,FloodProject/flood
c1797bb79d65af6426cacde24a02b9bdef464c2b
src/character/classes/class.cpp
src/character/classes/class.cpp
#include "character/classes/class.h" namespace d20 { bool Class::operator==(const Class &other) const { this->get_name() == other.get_name(); } float Class::bab_progression() const { throw("called bab_progression on class base!"); } std::string Class::get_name() const { throw("called get_name on class bas...
#include "character/classes/class.h" namespace d20 { bool Class::operator==(const Class &other) const { return this->get_name() == other.get_name(); } float Class::bab_progression() const { throw("called bab_progression on class base!"); } std::string Class::get_name() const { throw("called get_name on cl...
Fix warning missing return statement
Fix warning missing return statement
C++
mit
fotanus/libd20,fotanus/libd20,fotanus/libd20
2d03e7be8be2c72d7b9f42a8231fd8d00a818fc0
src/spelling/spellchecker_service_main.cc
src/spelling/spellchecker_service_main.cc
// Copyright 2010-2021, 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, this list of condit...
// Copyright 2010-2021, 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, this list of condit...
Fix an OSS build error.
Fix an OSS build error. * cc_binary requires a main function. PiperOrigin-RevId: 450640612
C++
bsd-3-clause
google/mozc,google/mozc,google/mozc,fcitx/mozc,fcitx/mozc,fcitx/mozc,fcitx/mozc,google/mozc,fcitx/mozc,google/mozc
b1500ee8d5de31b6c15925cf477737b0f38a4254
unittests/Support/TimerTest.cpp
unittests/Support/TimerTest.cpp
//===- unittests/TimerTest.cpp - Timer tests ------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- unittests/TimerTest.cpp - Timer tests ------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use Support/thread.h instead of <thread> (second try)
[unittest] Use Support/thread.h instead of <thread> (second try) git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@256292 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers...
3a4175397882fe3cb8368e6e1607f345665dc641
primality-test.cpp
primality-test.cpp
#include<math.h> bool isPrimeBruteForce(int x) { if (x < 2) return false; float sqroot_x = sqrt(x); for(int i=0; i <= sqroot_x; i++) { if (x%i==0) return false; } return true; }
#include<math.h> bool isPrimeBruteForce(int x) { if (x < 2) return false; float sqroot_x = sqrt(x); for(int i=0; i <= sqroot_x; i++) { /* If there were only factors above the square root of x, they would be bigger than x itself. */ if (x%i==0) return false; } return true; }
Add comment to sqrt calculation
Add comment to sqrt calculation
C++
mit
luforst/primality-test,luforst/primality-test
85b489739fbc2d1ab430aea311ab381b4ee55848
Driver/RewriteTest.cpp
Driver/RewriteTest.cpp
//===--- RewriteTest.cpp - Rewriter playground ----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- RewriteTest.cpp - Rewriter playground ----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add newline at the end of file, to silence compiler warning.
Add newline at the end of file, to silence compiler warning. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@57818 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
7d21ab59fdf3939128fac67b0fb7e4e119397ce3
src/libaten/geometry/vertex.cpp
src/libaten/geometry/vertex.cpp
#include "geometry/vertex.h" namespace aten { std::vector<int> VertexManager::s_indices; std::vector<vertex> VertexManager::s_vertices; GeomVertexBuffer VertexManager::s_vb; void VertexManager::build() { s_vb.init( sizeof(vertex), s_vertices.size(), 0, &s_vertices[0]); } }
#include "geometry/vertex.h" namespace aten { std::vector<int> VertexManager::s_indices; std::vector<vertex> VertexManager::s_vertices; GeomVertexBuffer VertexManager::s_vb; void VertexManager::build() { if (!s_vertices.empty() && !s_vb.isInitialized()) { s_vb.init( sizeof(vertex), s_vertices.s...
Modify to initialize one time.
Modify to initialize one time.
C++
mit
nakdai/aten,nakdai/aten
3c9e520f007b227b78ac542ae63226bd0586a963
app/TimerMessage.cpp
app/TimerMessage.cpp
#include <TimerMessage.h> #include <QDebug> TimerMessage::TimerMessage(QObject *parent) : QObject(parent), m_pTimer(new QTimer(this)), m_counter(0) { connect(m_pTimer, SIGNAL(timeout()), this, SLOT(printCounter()) ); m_pTimer->setInterval(1000); m_pTimer->start(); } void TimerMessage::printCo...
#include <TimerMessage.h> #include <QDebug> TimerMessage::TimerMessage(QObject *parent) : QObject(parent), m_pTimer(new QTimer(this)), m_counter(0) { connect(m_pTimer, SIGNAL(timeout()), this, SLOT(printCounter()) ); m_pTimer->setInterval(750); m_pTimer->start(); } void TimerMessage::printCou...
Test them all. Fix interval
Test them all. Fix interval
C++
mit
lomedil/betterlogger
2859755bd3911bdd69ff75a99733f7d0a7f58989
excercise04/sort/quick/type_b.cpp
excercise04/sort/quick/type_b.cpp
#include "../quick.hpp" #include "../swap.hpp" void quick(int *data, const int size_of_data) { return quick(data, 0, size_of_data - 1); } void quick(int *data, const int start, const int end) { int size = end - start + 1; if(start >= end) return; /* Base case */ /* Conquer */ int pivot = partiti...
#include "../quick.hpp" #include "../swap.hpp" void quick(int *data, const int size_of_data) { return quick(data, 0, size_of_data - 1); } void quick(int *data, const int start, const int end) { int size = end - start + 1; if(start >= end) return; /* Base case */ /* Conquer */ int pivot = partiti...
Fix bug which variable name is not match
Fix bug which variable name is not match
C++
mit
kdzlvaids/algorithm_and_practice-pknu-2016,kdzlvaids/algorithm_and_practice-pknu-2016
a8b279b1986efe8bd4a96ab3bc46674b391a0d9c
cpp/aizu/stable_sort.cpp
cpp/aizu/stable_sort.cpp
#include <iostream> #include <vector> using namespace std; int main() { int length, count = 0; cin >> length; vector<string> vector(length); for (int i = 0; i < length; i++) { cin >> vector[i]; } //sort logic cout << vector[0]; for (int i = 1; i < length; i++) { ...
#include <iostream> #include <vector> using namespace std; class Card { private: string name_; int value_; public: Card(string card) { name_ = card; value_ = stoi(card.substr(1, 1)); }; string name(){return name_;}; int value(){return value_;}; }; void bubbleSort(vector<...
Add bubbleSort() to stable sort.
Add bubbleSort() to stable sort.
C++
mit
itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground
4726b4af8b13e201a3d3e98c151bbf52f4fc4370
pyQuantuccia/src/pyQuantuccia.cpp
pyQuantuccia/src/pyQuantuccia.cpp
#include <Python.h> #include "Quantuccia/ql/time/calendars/unitedstates.hpp"
#include <Python.h> #include "Quantuccia/ql/time/calendars/unitedstates.hpp" PyObject* PyInit_pyQuantuccia(void){ return NULL; }
Add a stub function to init the module.
Add a stub function to init the module.
C++
bsd-3-clause
jwg4/pyQuantuccia,jwg4/pyQuantuccia
469de98591b421e70761c694531c16406ad68d1a
source/Pictus/hw3d_opengl_common.cpp
source/Pictus/hw3d_opengl_common.cpp
#include <orz/types.h> #include "hw3d_opengl_common.h" namespace Hw3D { GLint GetGlInternalFormat(Format fmt) { return GL_RGBA; } GLenum GetGlFormat(Format) { return GL_RGBA; } GLenum GetGlDataType(Format) { return GL_UNSIGNED_BYTE; } ::std::string GetGlErrorString(GLenum error) { switch (error) ...
#include <orz/types.h> #include "hw3d_opengl_common.h" namespace Hw3D { GLint GetGlInternalFormat(Format fmt) { return GL_RGBA; } GLenum GetGlFormat(Format) { return GL_BGRA; } GLenum GetGlDataType(Format) { return GL_UNSIGNED_BYTE; } ::std::string GetGlErrorString(GLenum error) { switch (error) ...
Make test images look better
Make test images look better
C++
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
d676502b41468bef49bc2e3f29ab4e9bbc15a967
chromium_src/chrome/browser/safe_browsing/safe_browsing_service.cc
chromium_src/chrome/browser/safe_browsing/safe_browsing_service.cc
// Copyright (c) 2012 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/safe_browsing/safe_browsing_service.h" #include <stddef.h> #include "chrome/browser/safe_browsing/ui_manager.h" namespace ...
// Copyright (c) 2012 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/safe_browsing/safe_browsing_service.h" #include <stddef.h> #include "chrome/browser/safe_browsing/ui_manager.h" namespace ...
Fix "warning: returning reference to local temporary object"
Fix "warning: returning reference to local temporary object"
C++
mit
brave/muon,brave/electron,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/electron
a86edfd52bf6732ad78ba541623b285ebb5eccb7
Tests/src/main.cpp
Tests/src/main.cpp
#include <cppunit/BriefTestProgressListener.h> #include <cppunit/CompilerOutputter.h> #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/TestResult.h> #include <cppunit/TestResultCollector.h> #include <cppunit/TestRunner.h> #include "Suite.h" #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_...
#include <cppunit/BriefTestProgressListener.h> #include <cppunit/CompilerOutputter.h> #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/TestResult.h> #include <cppunit/TestResultCollector.h> #include <cppunit/TestRunner.h> #include "Suite.h" #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_...
Write test results to a file for easier examination
Write test results to a file for easier examination
C++
mit
jakzale/ogre,jakzale/ogre,jakzale/ogre,jakzale/ogre,jakzale/ogre
8ea77525c704803bbe6c1d09d63eb277bd5dfdd4
storage/country_decl.cpp
storage/country_decl.cpp
#include "country_decl.hpp" string storage::CountryInfo::FileName2FullName(string fName) { size_t const i = fName.find('_'); if (i != string::npos) { // replace '_' with ", " fName[i] = ','; fName.insert(i+1, " "); } return fName; } void storage::CountryInfo::FullName2GroupAndMap(string const &...
#include "country_decl.hpp" string storage::CountryInfo::FileName2FullName(string fName) { size_t const i = fName.find('_'); if (i != string::npos) { // replace '_' with ", " fName[i] = ','; fName.insert(i+1, " "); } return fName; } void storage::CountryInfo::FullName2GroupAndMap(string const &...
Fix bug with country group name.
Fix bug with country group name.
C++
apache-2.0
Volcanoscar/omim,Volcanoscar/omim,bykoianko/omim,goblinr/omim,therearesomewhocallmetim/omim,milchakov/omim,Volcanoscar/omim,vladon/omim,alexzatsepin/omim,Volcanoscar/omim,bykoianko/omim,dkorolev/omim,vng/omim,edl00k/omim,Saicheg/omim,matsprea/omim,AlexanderMatveenko/omim,AlexanderMatveenko/omim,Saicheg/omim,yunikkk/omi...