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
ca5df958a7dc31e896e1aeff321e28554a24c08b
Settings/UpdaterWindow.cpp
Settings/UpdaterWindow.cpp
#include "UpdaterWindow.h" #include "../3RVX/3RVX.h" #include "../3RVX/Logger.h" #include "../3RVX/CommCtl.h" #include "../3RVX/NotifyIcon.h" #include "resource.h" UpdaterWindow::UpdaterWindow() : Window(L"3RVX-UpdateWindow") { HRESULT hr = LoadIconMetric( Window::InstanceHandle(), MAKEINTRESOURCE...
#include "UpdaterWindow.h" #include "../3RVX/3RVX.h" #include "../3RVX/Logger.h" #include "../3RVX/CommCtl.h" #include "../3RVX/NotifyIcon.h" #include "resource.h" UpdaterWindow::UpdaterWindow() : Window(L"3RVX-UpdateWindow") { HRESULT hr = LoadIconMetric( Window::InstanceHandle(), MAKEINTRESOURCE...
Make sure all code paths return a value
Make sure all code paths return a value
C++
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
ceb406d9f9f117673d115e1bc5c212ab80fbeba4
test/ASTMerge/class.cpp
test/ASTMerge/class.cpp
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class1.cpp // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class2.cpp // RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s // CHECK: class1.cpp:5:8: warning: type 'B' has incompatible definitions in different translation u...
// XRUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class1.cpp // XRUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class2.cpp // XRUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s // CHECK: class1.cpp:5:8: warning: type 'B' has incompatible definitions in different translatio...
Disable this test temporarily in an attempt to green the buildbots.
Disable this test temporarily in an attempt to green the buildbots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@116082 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
4b25be7aa182fd36e86b3bf3dcbed17ae11b44c8
tests/test_setupTunnel.cpp
tests/test_setupTunnel.cpp
/* * test_setupTunnel.cpp * * Created on: 24 sep. 2015 * Author: Jesper */ #ifdef _MOCK_ #include "gtest/gtest.h" #include "../src/setupTunnel.h" class test_setupTunnel : public ::testing::Test { protected: virtual void SetUp() {} virtual void TearDown() {} }; #endif
/* * test_setupTunnel.cpp * * Created on: 24 sep. 2015 * Author: Jesper */ #ifdef _MOCK_ #include "gtest/gtest.h" #include "../src/setupTunnel.h" class test_setupTunnel : public ::testing::Test { protected: virtual void SetUp() {} virtual void TearDown() {} }; TEST(test_setupTunnel, handleSetupTunnel) {...
Test is running, but the test sucks
Test is running, but the test sucks
C++
mit
MalmoUniversity-DA366A/calvin-arduino,MalmoUniversity-DA366A/calvin-arduino,MalmoUniversity-DA366A/calvin-arduino
c6e291d2550f829fdd5fbc3ee8fb3c6c5bfd38c5
ionAsset/CShader.cpp
ionAsset/CShader.cpp
#include "CShader.h" CShader * CompileVertFragShader(string const VertexShaderSource, string const FragmentShaderSource) { ion::GL::VertexShader * VertexShader = new ion::GL::VertexShader; VertexShader->Source(VertexShaderSource); if (! VertexShader->Compile()) std::cerr << "Failed to compile vertex sh...
#include "CShader.h" CShader * CompileVertFragShader(string const VertexShaderSource, string const FragmentShaderSource) { ion::GL::VertexShader * VertexShader = new ion::GL::VertexShader; VertexShader->Source(VertexShaderSource); if (! VertexShader->Compile()) std::cerr << "Failed to compile vertex sh...
Add display of program link output in event of linker stage failure
Add display of program link output in event of linker stage failure
C++
mit
iondune/ionEngine,iondune/ionEngine
6b4c1a7c598219450800337313ed33ce1e0c6502
src/WerkTest/OS/Hardware.cpp
src/WerkTest/OS/Hardware.cpp
#include <boost/test/unit_test.hpp> #include "Werk/OS/Hardware.hpp" BOOST_AUTO_TEST_SUITE(HardwareTest) BOOST_AUTO_TEST_CASE(TestGetPageSize) { uint64_t pageSize = werk::getPageSize(); //Anything less than 4K won't be adequate anyway BOOST_REQUIRE(pageSize >= 4 * 1024); //And memory should come in at least 1K...
#include <boost/test/unit_test.hpp> #include "Werk/OS/Hardware.hpp" BOOST_AUTO_TEST_SUITE(HardwareTest) BOOST_AUTO_TEST_CASE(TestGetPageSize) { uint64_t pageSize = werk::getPageSize(); //Anything less than 4K won't be adequate anyway BOOST_REQUIRE(pageSize >= 4 * 1024); //And pages should come in at least 1K ...
Modify memory tests to be more robust on different systems
Modify memory tests to be more robust on different systems
C++
mit
AgalmicVentures/Werk,AgalmicVentures/Werk
cefc9b6bed9b77e28c10e1a9a6f841e44857cf04
ch05/ex5_23.cpp
ch05/ex5_23.cpp
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a >> b; cout << static_cast<double>(a) / b << endl; return 0; }
#include <iostream> #include <string> using std::string; using std::cin; using std::cout; using std::endl; int main () { int a=0, b=0; cout<<"Please input two integers: "; while (cin>>a>>b) { try{ if (b==0) { throw std::runtime_error("One of the two integers is 0.");} ...
Deal with the situation when the second integer is 0 using run_time exception covered in this chapter.
Deal with the situation when the second integer is 0 using run_time exception covered in this chapter.
C++
cc0-1.0
sunlianqiang/Cpp-Primer,suesai/Cpp-Primer,Fenolona/Cpp-Primer,sanerror/Cpp-Primer,suesai/Cpp-Primer,Soyn/Cpp-Primer,kevinzhang2012/Cpp-Primer,opensourceDA/Cpp-Primer,clearScreenZJ/Cpp-Primer,seekertang/Cpp-Primer,sunlianqiang/Cpp-Primer,kevinzhang1986/Cpp-Primer,Soyn/Cpp-Primer,theneversky/Cpp-Primer,coldmanck/Cpp-Prim...
06f0ef9ba71f9bd4aea021b0c1d6a70ca89a7d6f
src/CWizard.cpp
src/CWizard.cpp
#include <memory> #include "Vec2i.h" #include "IMapElement.h" #include "CActor.h" #include "CWizard.h" namespace WizardOfGalicia { CWizard::CWizard() : CActor() { view = '^'; team = Team::HEROES; hp = 5; attack = 4; defence = 1; magicEnergy = 20; } void CWizard::update(std::shared_ptr<C...
#include <memory> #include "Vec2i.h" #include "IMapElement.h" #include "CActor.h" #include "CWizard.h" namespace WizardOfGalicia { CWizard::CWizard() : CActor() { view = '^'; team = Team::HEROES; hp = 5; attack = 4; defence = 1; magicEnergy = 20; } void CWizard::update(std::shared_ptr<C...
Fix ugly division by zero on Wizard updates
Fix ugly division by zero on Wizard updates Ouch, that never crossed my mind. We're so used to floats not being exact enough...
C++
bsd-2-clause
TheFakeMontyOnTheRun/wizardofgalicia,TheFakeMontyOnTheRun/wizardofgalicia
20d2c15ae55c09a67f7c8a76b17c2046c2273b99
tests/ml/Dtw.cpp
tests/ml/Dtw.cpp
#include "aquila/global.h" #include "aquila/ml/Dtw.h" #include <unittestpp.h> #include <vector> SUITE(Dtw) { TEST(DistanceToItself) { const std::size_t SIZE = 3; double arr1[SIZE] = {0, 1, 2}, arr2[SIZE] = {1, 2, 3}; std::vector<double> v1(arr1, arr1 + SIZE), v2(arr2, arr2 + SIZE); ...
#include "aquila/global.h" #include "aquila/ml/Dtw.h" #include <unittestpp.h> #include <vector> SUITE(Dtw) { TEST(DistanceToItself) { const std::size_t SIZE = 3; double arr1[SIZE] = {0, 1, 2}, arr2[SIZE] = {1, 2, 3}; std::vector<double> v1(arr1, arr1 + SIZE), v2(arr2, arr2 + SIZE); ...
Test for DTW zero distance along diagonal
Test for DTW zero distance along diagonal
C++
apache-2.0
tempbottle/aquila,synkarae/Quasar,Aldor007/aquila,sav6622/aquila,synkarae/Quasar,zsiciarz/aquila,synkarae/aquila,tempbottle/aquila,synkarae/Quasar,tempbottle/aquila,zsiciarz/aquila,Aldor007/aquila,Aldor007/aquila,sav6622/aquila,sav6622/aquila,zsiciarz/aquila,synkarae/aquila,zsiciarz/aquila,synkarae/aquila
d8114fa31dedfd014d30b2410a09474f67d871ef
src/backend/concurrency/transaction_manager_factory.cpp
src/backend/concurrency/transaction_manager_factory.cpp
//===----------------------------------------------------------------------===// // // Peloton // // transaction_manager_factory.h // // Identification: src/backend/concurrency/transaction_manager_factory.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===----------...
//===----------------------------------------------------------------------===// // // Peloton // // transaction_manager_factory.h // // Identification: src/backend/concurrency/transaction_manager_factory.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===----------...
Change default txn manager to occ
Change default txn manager to occ
C++
apache-2.0
haojin2/peloton,PauloAmora/peloton,AllisonWang/peloton,wangziqi2016/peloton,vittvolt/15721-peloton,yingjunwu/peloton,apavlo/peloton,apavlo/peloton,yingjunwu/peloton,jessesleeping/iso_peloton,malin1993ml/peloton,wangziqi2016/peloton,cmu-db/peloton,AllisonWang/peloton,yingjunwu/peloton,AllisonWang/peloton,haojin2/peloton...
931109f7d15d4251398eadb2131972d973719545
ButtonPress.cpp
ButtonPress.cpp
#include "ButtonPress.h" #include <assert.h> ButtonPress::ButtonPress(int pinNum, void(*callback)(void)) : m_pinNum(pinNum), m_callback(callback) { assert(m_callback != NULL); pinMode(m_pinNum, INPUT_PULLUP); // Assume pin state at init is the "unpressed" state m_unpressedPinState = digitalRead(m_pinNum); m_la...
#include "ButtonPress.h" #include <assert.h> ButtonPress::ButtonPress(int pinNum, void(*callback)(void)) : m_pinNum(pinNum), m_callback(callback) { assert(m_callback != NULL); pinMode(m_pinNum, INPUT_PULLUP); // Assume pin state at init is the "unpressed" state m_unpressedPinState = digitalRead(m_pinNum); m_la...
Fix state not getting set for button.
Fix state not getting set for button.
C++
mit
dakahler/HereKittyKitty,dakahler/HereKittyKitty
854ae5d14a2470a5ddf7ea095510f4dff13b11fd
src/open_loop/open_loop.cpp
src/open_loop/open_loop.cpp
#include "open_loop.h" OpenLoop::OpenLoop() { joySub = n.subscribe("joystick", 1, &OpenLoop::joyCallback, this); tauPub = n.advertise<geometry_msgs::Wrench>("control_forces", 1); } void OpenLoop::joyCallback(const joystick::Joystick &joy_msg) { geometry_msgs::Wrench tau; tau.force.x = joy_msg.strafe_...
#include "open_loop.h" OpenLoop::OpenLoop() { joySub = n.subscribe("joystick", 1, &OpenLoop::joyCallback, this); tauPub = n.advertise<geometry_msgs::Wrench>("control_forces", 1); } void OpenLoop::joyCallback(const joystick::Joystick &joy_msg) { geometry_msgs::Wrench tau; tau.force.x = joy_msg.strafe_...
Remove heave force, not used for test rov
Remove heave force, not used for test rov
C++
mit
vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control
1ff5a6d81f44072f89ce025016854731bf815250
src/textures/constant_texture.cpp
src/textures/constant_texture.cpp
#include "textures/constant_texture.h" ConstantTexture::ConstantTexture(const Colorf &color) : color(color){} Colorf ConstantTexture::sample(const DifferentialGeometry &) const { return color; } Colorf ConstantTexture::sample(const TextureSample &sample) const { return color; }
#include "textures/constant_texture.h" ConstantTexture::ConstantTexture(const Colorf &color) : color(color){} Colorf ConstantTexture::sample(const DifferentialGeometry&) const { return color; } Colorf ConstantTexture::sample(const TextureSample&) const { return color; }
Clean up unused param warning
Clean up unused param warning
C++
mit
Twinklebear/tray,Twinklebear/tray
28f6c5bbc6ce1442ac15460116dcee8e0a13183e
td/challenge260/LedController.cpp
td/challenge260/LedController.cpp
#include "LedController.hpp" #include <algorithm> #include <bitset> LedController::LedController(std::ostream& stream) : out{stream} { } void LedController::runProgram(const Instructions& instructions) { for (const auto& instruction : instructions) { runInstruction(instruction); } } void LedCont...
#include "LedController.hpp" #include <algorithm> #include <bitset> LedController::LedController(std::ostream& stream) : out{stream} { } void LedController::runProgram(const Instructions& instructions) { for (const auto& instruction : instructions) { runInstruction(instruction); } } void LedCont...
Refactor changing number to led states
Refactor changing number to led states
C++
mit
lukasz-m-maciejewski/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises,lukasz-m-maciejewski/papuc_exercises
2a57b052ab7e39f0f8f2e6a6294fe9b42d2fd304
tests/ReverseIntegerTest.cpp
tests/ReverseIntegerTest.cpp
#include "catch.hpp" #include "ReverseInteger.hpp" TEST_CASE("Reverse Integer") { Solution s; SECTION("Sample test") { REQUIRE(s.reverse(123) == 321); REQUIRE(s.reverse(-123) == -321); } }
#include "catch.hpp" #include "ReverseInteger.hpp" TEST_CASE("Reverse Integer") { Solution s; SECTION("Sample test") { REQUIRE(s.reverse(123) == 321); REQUIRE(s.reverse(-123) == -321); } SECTION("Overflow test") { REQUIRE(s.reverse(-2147483648) == 0); REQUIRE(s.reverse(2147483647) == 0); }...
Update Problem 7 test case
Update Problem 7 test case
C++
mit
yanzhe-chen/leetcode
9cd63476c5f72c3edaf5bff5e27e4eac4679ccc4
code/header.cpp
code/header.cpp
#pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") #pragma GCC optimization ("unroll-loops") #include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (__typeof(a) i=(a); i<(b); ++i) #define iter(it,c) for (__typeof((c).begin()) \ it = (c).begin(); it != (c).end(); ++it) typedef pair<int, int...
#pragma GCC optimize("Ofast","unroll-loops") #pragma GCC target("avx2,fma") #include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (__typeof(a) i=(a); i<(b); ++i) #define iter(it,c) for (__typeof((c).begin()) \ it = (c).begin(); it != (c).end(); ++it) typedef pair<int, int> ii; typedef vector<int> vi; t...
Fix GCC pragmas. Thanks @simonlindholm
Fix GCC pragmas. Thanks @simonlindholm
C++
mit
SuprDewd/CompetitiveProgramming,SuprDewd/CompetitiveProgramming,SuprDewd/CompetitiveProgramming,SuprDewd/CompetitiveProgramming
79d4bea3239b43d3b11d1a5696cdc0b18839492b
chrome/renderer/renderer_main_platform_delegate_linux.cc
chrome/renderer/renderer_main_platform_delegate_linux.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 "chrome/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not have a sandbox ...
// 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 "chrome/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not have a sandbox ...
Convert sandbox NOTIMPLEMENTED()s into a bug.
Convert sandbox NOTIMPLEMENTED()s into a bug. Review URL: http://codereview.chromium.org/27179 git-svn-id: http://src.chromium.org/svn/trunk/src@10410 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: fe164f7a07e03d0a4e14bf310e606f1c978c3935
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...
726a7efaae2cb54e55bff6cb5ef36dee9b29374a
App/Console/Source/Main.cpp
App/Console/Source/Main.cpp
#include "KAI/Console/Console.h" #include <iostream> #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <Windows.h> #endif using namespace std; USING_NAMESPACE_KAI //static Color _color; int main(int argc, char **argv) { KAI_UNUSED_2(argc, argv); cout << "pyro v0.1" << endl; Console console; console.SetLang...
#include <KAI/Console/Console.h> #include <iostream> using namespace std; USING_NAMESPACE_KAI int main(int argc, char **argv) { KAI_UNUSED_2(argc, argv); cout << "KAI v0.1" << endl; Console console; console.SetLanguage(Language::Pi); // the higher the number, the greater the verbosity of debug output Proces...
Remove explicit WIN32 references from Console app.
Remove explicit WIN32 references from Console app. Former-commit-id: 1621bff1d97d47fe91419641ff983a6ec3ee5626 Former-commit-id: ecc138236b570f5dc9f92082f539917fb2b53460 Former-commit-id: a34bc0c537cfba14b168de78b2e2ded3f0f5f3c0
C++
mit
cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI
07f320b50de665ea8529f7a6a340f8d287b22814
noudar-rendering/Logger.cpp
noudar-rendering/Logger.cpp
// // Created by monty on 26/09/16. // #include <string> #include <cstdarg> #ifdef __ANDROID__ #include <android/log.h> #else #include <cstdio> #endif #include "Logger.h" namespace odb { void doLog(const char *format, va_list args) { char buffer[255]; std::vsnprintf(buffer, 255, format, args);...
// // Created by monty on 26/09/16. // #include <string> #include <cstdarg> #include <cstring> #ifdef __ANDROID__ #include <android/log.h> #else #include <cstdio> #endif #include "Logger.h" namespace odb { void doLog(const char *format, va_list args) { char buffer[255]; return; memset(...
Fix compilation error on OSX
Fix compilation error on OSX
C++
bsd-2-clause
TheFakeMontyOnTheRun/dungeons-of-noudar,TheFakeMontyOnTheRun/dungeons-of-noudar
d669ded7c0e95c285e82071c79d39d55e2bd61e3
chrome/browser/extensions/extension_storage_apitest.cc
chrome/browser/extensions/extension_storage_apitest.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 "chrome/browser/extensions/extension_apitest.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Storage) { ASSERT_TRUE(RunExtensionTest("storage"...
// 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 "chrome/browser/extensions/extension_apitest.h" // Started failing with r29947. WebKit merge 49961:49992. IN_PROC_BROWSER_TEST_F(DISABLED_Ex...
Disable test failing since r29947.
Disable test failing since r29947. TBR=tony@chromium.org Review URL: http://codereview.chromium.org/338006 git-svn-id: http://src.chromium.org/svn/trunk/src@29966 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 00b4a1b4b87ba3177230f64998343d95dfafdff3
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...
63231b5edb0d74f7997924801698dda869899e6c
components/translate/core/common/language_detection_details.cc
components/translate/core/common/language_detection_details.cc
// Copyright 2014 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 "components/translate/core/common/language_detection_details.h" namespace translate { LanguageDetectionDetails::LanguageDetectionDetails() {} ...
// Copyright 2014 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 "components/translate/core/common/language_detection_details.h" namespace translate { LanguageDetectionDetails::LanguageDetectionDetails() ...
Fix uninit memory access in TranslateManagerRenderViewHostTests.
Fix uninit memory access in TranslateManagerRenderViewHostTests. BUG=464837 Review URL: https://codereview.chromium.org/983283002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#319614}
C++
bsd-3-clause
TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,Chilledheart/chromium,Just-D/chromium-1,axinging/chromium-crosswalk,ltilve/chromium,lti...
2541bec606f5db6d17e426513d3a65635e3fb87d
common/misc.cc
common/misc.cc
#include "powerdhcp.hh" namespace PowerDHCP { Logging theL; pthread_rwlock_t Logger::d_lock = PTHREAD_RWLOCK_INITIALIZER; const char* Logger::LEVEL[] = { "DEBUG", "INFO", "NOTICE", "WARNING", "ERROR", "CRITICAL" }; std::string stringerror() { std::string ret; ch...
#include "powerdhcp.hh" namespace PowerDHCP { Logger theL; pthread_rwlock_t Logger::d_lock = PTHREAD_RWLOCK_INITIALIZER; const char* Logger::LEVEL[] = { "DEBUG", "INFO", "NOTICE", "WARNING", "ERROR", "CRITICAL" }; std::string stringerror() { std::string ret; cha...
Use correct name for logger. Do not fail if sterror_r is not there
Use correct name for logger. Do not fail if sterror_r is not there
C++
bsd-3-clause
cmouse/PowerDHCP,cmouse/PowerDHCP,cmouse/PowerDHCP
f0fccfd6c035b4feff3124ed19dffb6b251de2b4
core/os/device/deviceinfo/cc/instance.cpp
core/os/device/deviceinfo/cc/instance.cpp
/* * Copyright (C) 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* * Copyright (C) 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Fix crash in deviceinfo query.
Fix crash in deviceinfo query. query::getDeviceInstance could return null, but was never checked in get_device_instance before dereferencing, causing a crash when it failed. Test case is calling host.getHostDevice while accessing a headless instance, which causes glXCreateNewContext to fail from within createContext....
C++
apache-2.0
google/agi,ek9852/gapid,baldwinn860/gapid,google/agi,ek9852/gapid,baldwinn860/gapid,google/gapid,baldwinn860/gapid,pmuetschard/gapid,pmuetschard/gapid,Qining/gapid,ek9852/gapid,ek9852/gapid,google/gapid,Qining/gapid,google/agi,ek9852/gapid,dsrbecky/gapid,pmuetschard/gapid,baldwinn860/gapid,google/agi,dsrbecky/gapid,Qin...
89a3f3c5fbbcd199b50571df210eeccb14b09d12
opencog/cython/PythonModule.cc
opencog/cython/PythonModule.cc
#include "PythonModule.h" //#include "agent_finder_api.h" using namespace opencog; DECLARE_MODULE(PythonModule); PythonModule::PythonModule() : Module() { logger().info("[PythonModule] constructor"); do_load_py_register(); } PythonModule::~PythonModule() { logger().info("[PythonModule] destructor"); ...
#include "PythonModule.h" #include "agent_finder_api.h" using namespace opencog; DECLARE_MODULE(PythonModule); PythonModule::PythonModule() : Module() { logger().info("[PythonModule] constructor"); do_load_py_register(); } PythonModule::~PythonModule() { logger().info("[PythonModule] destructor"); ...
Fix things so that they don't break the compile
Fix things so that they don't break the compile
C++
agpl-3.0
inflector/opencog,gavrieltal/opencog,cosmoharrigan/opencog,rohit12/atomspace,inflector/opencog,Selameab/opencog,AmeBel/atomspace,ceefour/atomspace,kinoc/opencog,iAMr00t/opencog,anitzkin/opencog,shujingke/opencog,shujingke/opencog,ceefour/atomspace,printedheart/opencog,inflector/atomspace,eddiemonroe/opencog,kim13579753...
29155a65ce4f4725a4bb7448fd9b974bbb419187
lib/cpp/src/gui/JobTree.cpp
lib/cpp/src/gui/JobTree.cpp
#include "JobTree.h" #include "plow.h" #include <QStringList> #include <QString> namespace Plow { namespace Gui { JobTree::JobTree(QWidget *parent) : QWidget(parent) { layout = new QVBoxLayout(this); QStringList header; header << "Job" << "Cores" << "Max" << "Waiting"; treeWidget = new QTreeWidget;...
#include "JobTree.h" #include "plow.h" #include <QStringList> #include <QString> namespace Plow { namespace Gui { JobTree::JobTree(QWidget *parent) : QWidget(parent) { layout = new QVBoxLayout(this); QStringList header; header << "Job" << "Cores" << "Max" << "Waiting"; treeWidget = new QTreeWidget;...
Expand the job name column.
Expand the job name column.
C++
apache-2.0
Br3nda/plow,Br3nda/plow,Br3nda/plow,chadmv/plow,Br3nda/plow,chadmv/plow,chadmv/plow,chadmv/plow,chadmv/plow,chadmv/plow,Br3nda/plow,chadmv/plow
1f770b398f3e5502b4a5d1d741d7c848ce468ab3
test/testDistanceQueue.cpp
test/testDistanceQueue.cpp
#include <ngraph.h> #include <PCU.h> #include <engpar_support.h> #include "buildGraphs.h" #include "../partition/Diffusive/engpar_diffusive_input.h" #include "../partition/Diffusive/src/engpar_queue.h" int main(int argc, char* argv[]) { MPI_Init(&argc,&argv); EnGPar_Initialize(); agi::Ngraph* g; if (argc==1) ...
#include <ngraph.h> #include <PCU.h> #include <engpar_support.h> #include "buildGraphs.h" #include "../partition/Diffusive/engpar_diffusive_input.h" #include "../partition/Diffusive/src/engpar_queue.h" int main(int argc, char* argv[]) { MPI_Init(&argc,&argv); EnGPar_Initialize(); agi::Ngraph* g; if (argc==1) ...
Remove rendering from distance queue tests to fix aero tests
Remove rendering from distance queue tests to fix aero tests
C++
bsd-3-clause
SCOREC/EnGPar,SCOREC/EnGPar,SCOREC/EnGPar
a56b5b54873440521eacd8a6f6cb8f5acb0315e9
lib/Target/WebAssembly/TargetInfo/WebAssemblyTargetInfo.cpp
lib/Target/WebAssembly/TargetInfo/WebAssemblyTargetInfo.cpp
//===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- WebAssemblyTargetInfo.cpp - WebAssembly Target Implementation -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix WebAssembly build after r283702.
Fix WebAssembly build after r283702. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@283723 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Dri...
55bb0e790f31ca94a11904998bfa403c78a9c0bd
lib/allocator.cpp
lib/allocator.cpp
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <guido.tack@monash.edu> */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozil...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <guido.tack@monash.edu> */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozil...
Fix basic allocation of memory blocks
Fix basic allocation of memory blocks
C++
mpl-2.0
jjdekker/libminizinc,jjdekker/libminizinc,tias/libminizinc,nathanielbaxter/libminizinc,nathanielbaxter/libminizinc,jjdekker/libminizinc,nathanielbaxter/libminizinc,nathanielbaxter/libminizinc,tias/libminizinc,jjdekker/libminizinc
fcaaf466ebbe61ea30bb8e59116f05fe0688124a
libopflex/logging/OFLogHandler.cpp
libopflex/logging/OFLogHandler.cpp
/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */ /* * Implementation for OFLogHandler class. * * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompa...
/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */ /* * Implementation for OFLogHandler class. * * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompa...
Address last TSAN issue exposed by libopflex unit tests
Address last TSAN issue exposed by libopflex unit tests Signed-off-by: Tom Flynn <abc7c57a6537c493534eb3847500f37bef7b716d@gmail.com> Change-Id: I95b54bbf6f9a30dd216c9bd25ba3d30f93ee1a3c
C++
epl-1.0
opendaylight/opflex,opendaylight/opflex,opendaylight/opflex,opendaylight/opflex
b5e4f06e9f2f2a21e625e7103e37a0a80bf88e9c
examples/QZXingLive/main.cpp
examples/QZXingLive/main.cpp
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QDebug> #include <Qt> #include "QZXingFilter.h" #if defined(Q_OS_IOS) /// Reference for iOS entry point: /// http://stackoverflow.com/questions/25353686/you-are-creating-qapplication-before-calling-uiapplicationmain-error-o...
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QDebug> #include <Qt> #include "QZXingFilter.h" int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QGuiApplication app(argc, argv); QQmlApplicationEngine engine; qml...
Fix linking on recent Qt for iOS
Fix linking on recent Qt for iOS The qtmn hack is not required anymore.
C++
apache-2.0
ftylitak/qzxing,ftylitak/qzxing,ftylitak/qzxing
8b714ad5d607f3463e4f6ebbe9034c87cd4022c7
src/OneWire.cc
src/OneWire.cc
#include "OneWire.h" static OneWireMock* gOneWireMock = NULL; OneWireMock* oneWireMockInstance() { if( !gOneWireMock ) { gOneWireMock = new OneWireMock(); } return gOneWireMock; } void releaseOneWireMock() { if( gOneWireMock ) { delete gOneWireMock; gOneWireMock = NULL; ...
#include "OneWire.h" static OneWireMock* gOneWireMock = NULL; OneWireMock* oneWireMockInstance() { if( !gOneWireMock ) { gOneWireMock = new OneWireMock(); } return gOneWireMock; } void releaseOneWireMock() { if( gOneWireMock ) { delete gOneWireMock; gOneWireMock = NULL; ...
Fix spacing + llamada a reset_search del mock
Fix spacing + llamada a reset_search del mock
C++
isc
balp/arduino-mock,balp/arduino-mock
2327063ff7ba29e6e486107e3873b898607ee78e
src/Game/CannonBall.cpp
src/Game/CannonBall.cpp
#include "Game/CannonBall.h" CannonBall::CannonBall(const QPixmap & pixmap, QVector2D velocity, QVector2D position, Player owner, QGraphicsItem * parent) : Entity(pixmap, owner, parent), m_initialVelocity(velocity), m_initialPosition(position), m_gravity(9.8), m_timeSinceShot(0) { setScale(0.1); setPos(m_initialPosi...
#include "Game/CannonBall.h" CannonBall::CannonBall(const QPixmap & pixmap, QVector2D velocity, QVector2D position, Player owner, QGraphicsItem * parent) : Entity(pixmap, owner, parent), m_initialVelocity(velocity), m_initialPosition(position), m_gravity(9.8), m_timeSinceShot(0) { setScale(0.1); setPos(m_initialPosi...
Make the ball go faster
Make the ball go faster
C++
mit
Sytten/Scorch,Sytten/Scorch
bcafa1f89419a3e6b3ede798dc8b502a937a0057
lib/Analysis/Dominators.cpp
lib/Analysis/Dominators.cpp
//===- Dominators.cpp - Implementation of dominators tree for Clang CFG ---===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//===- Dominators.cpp - Implementation of dominators tree for Clang CFG ---===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
Make a buildbot using a buggy gcc happy
Make a buildbot using a buggy gcc happy When specializing a template in a namespace, it has to be in a namespace block, else gcc will get confused. Hopefully this fixes the issue. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@365030 91177308-0d34-0410-b5e6-96...
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
da07e277d747bc9369fb95af9e503c4c8a79268a
libraries/tests/mbed/serial_nc_rx/main.cpp
libraries/tests/mbed/serial_nc_rx/main.cpp
#include "mbed.h" #include "test_env.h" int main() { MBED_HOSTTEST_TIMEOUT(20); MBED_HOSTTEST_SELECT(serial_nc_rx_auto); MBED_HOSTTEST_DESCRIPTION(Serial NC RX); MBED_HOSTTEST_START("MBED_37"); Serial *pc = new Serial(USBTX, USBRX); char c = pc->getc(); delete pc; // This should be ...
#include "mbed.h" #include "test_env.h" int main() { MBED_HOSTTEST_TIMEOUT(20); MBED_HOSTTEST_SELECT(serial_nc_rx_auto); MBED_HOSTTEST_DESCRIPTION(Serial NC RX); MBED_HOSTTEST_START("MBED_37"); Serial *pc = new Serial(NC, USBRX); char c = pc->getc(); delete pc; // This should be tru...
Revert "corrected serial port definition of rx test"
Revert "corrected serial port definition of rx test" This reverts commit 21cfe15bc09370c9d5b6edf0e4b7a945a06b1c2f.
C++
apache-2.0
Shengliang/mbed,HeadsUpDisplayInc/mbed,kl-cruz/mbed-os,CalSol/mbed,bcostm/mbed-os,tung7970/mbed-os-1,arostm/mbed-os,andcor02/mbed-os,jeremybrodt/mbed,infinnovation/mbed-os,fanghuaqi/mbed,mmorenobarm/mbed-os,getopenmono/mbed,YarivCol/mbed-os,kjbracey-arm/mbed,bulislaw/mbed-os,tung7970/mbed-os-1,jeremybrodt/mbed,Archcady...
5f1620a907a1065666c5718d03b9b4a519a62fa7
src/Platform/Path_posix.cpp
src/Platform/Path_posix.cpp
#include <linux/limits.h> #include <stdlib.h> #include <sys/stat.h> #include "MagpieString.h" #include "Path.h" namespace magpie { namespace path { char separator() { return '/'; } gc<String> real(gc<String> path) { char absolute[PATH_MAX]; realpath(path->cString(), absolute); retur...
// TODO(bob): PATH_MAX isn't actually part of POSIX. Need to do something // smarter here. #ifdef __linux__ #include <linux/limits.h> #else #include <limits.h> #endif #include <stdlib.h> #include <sys/stat.h> #include "MagpieString.h" #include "Path.h" namespace magpie { namespace path { char separator() { ...
Use correct header to get PATH_MAX on linux/mac.
Use correct header to get PATH_MAX on linux/mac.
C++
mit
munificent/magpie,munificent/magpie,munificent/magpie,munificent/magpie,munificent/magpie
03885de12816099845d3ae95af1207dadb9b29bc
common/filesystem_dokan.cpp
common/filesystem_dokan.cpp
#include "filesystem.h" #include "remotefileops.h" #include <QtCore/QCoreApplication> #include <QtCore/QDebug> #define DEBUG_FILESYSTEM 0 struct FileSystemPrivate { FileSystemPrivate(FileOps* ops) { m_fileOps = ops; } FileOps* m_fileOps; }; FileSystem::FileSystem(FileOps* ops) : QThrea...
#include "filesystem.h" #include "remotefileops.h" #include <QtCore/QCoreApplication> #include <QtCore/QDebug> #define DEBUG_FILESYSTEM 0 struct FileSystemPrivate { FileSystemPrivate(FileOps* ops) { m_fileOps = ops; } FileOps* m_fileOps; }; FileSystem::FileSystem(FileOps* ops) : QThrea...
Exit properly from the dokan filesystem thread.
Exit properly from the dokan filesystem thread.
C++
bsd-3-clause
manyoso/mob,manyoso/mob
052562c5a6303fedc650bf5537d4e481e3d8d6c1
app/src/main.cpp
app/src/main.cpp
#include <QApplication> #include <QQmlApplicationEngine> #include <QtQml> #include <QQmlFileSelector> #include "screenvalues.h" static QObject *screen_values_provider(QQmlEngine *engine, QJSEngine *scriptEngine) { Q_UNUSED(engine) Q_UNUSED(scriptEngine) return new ScreenValues(); } int main(int argc, ch...
#include <QApplication> #include <QQmlApplicationEngine> #include <QtQml> #include <QQmlFileSelector> #include "screenvalues.h" static QObject *screen_values_provider(QQmlEngine *engine, QJSEngine *scriptEngine) { Q_UNUSED(engine) Q_UNUSED(scriptEngine) return new ScreenValues(); } int main(int argc, ch...
Add selector for Android tablet
Add selector for Android tablet
C++
apache-2.0
mauricek/qtworldsummit,mauricek/qtworldsummit,xsmart/qtworldsummit,ivanph/qtworldsummit,ndesai/qtworldsummit,ivanph/qtworldsummit,ndesai/qtworldsummit,ivanph/qtworldsummit,mauricek/qtworldsummit,ivanph/qtworldsummit,mauricek/qtworldsummit,xsmart/qtworldsummit,xsmart/qtworldsummit,ndesai/qtworldsummit,ndesai/qtworldsumm...
f8995653fd8c86d7ef2bac73aa1508dd0e3c8fb4
src/qt/_Gulden/extendwitnessdialog.cpp
src/qt/_Gulden/extendwitnessdialog.cpp
// Copyright (c) 2016-2019 The Gulden developers // Authored by: Willem de Jonge (willem@isnapp.nl) // Distributed under the GULDEN software license, see the accompanying // file COPYING #include "extendwitnessdialog.h" #include <qt/_Gulden/forms/ui_extendwitnessdialog.h> #include "wallet/wallet.h" #include "GuldenGU...
// Copyright (c) 2016-2019 The Gulden developers // Authored by: Willem de Jonge (willem@isnapp.nl) // Distributed under the GULDEN software license, see the accompanying // file COPYING #include "extendwitnessdialog.h" #include <qt/_Gulden/forms/ui_extendwitnessdialog.h> #include "wallet/wallet.h" #include "gui.h" ...
Extend witness ask user confirmation
Extend witness ask user confirmation
C++
mit
nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official
a094a0cd7d4a0ef2a4a2f95f13a71f3ac6e34900
src/app/RackScrollWidget.cpp
src/app/RackScrollWidget.cpp
#include "app.hpp" #include "gui.hpp" namespace rack { void RackScrollWidget::step() { Vec pos = gRackWidget->lastMousePos; // Scroll rack if dragging cable near the edge of the screen if (gRackWidget->wireContainer->activeWire) { float margin = 20.0; float speed = 15.0; if (pos.x <= margin) offset.x -=...
#include "app.hpp" #include "gui.hpp" namespace rack { void RackScrollWidget::step() { Vec pos = gMousePos; Rect viewport = getViewport(box.zeroPos()); // Scroll rack if dragging cable near the edge of the screen if (gRackWidget->wireContainer->activeWire) { float margin = 20.0; float speed = 15.0; if (po...
Fix autoscrolling when dragging near edge of rack
Fix autoscrolling when dragging near edge of rack
C++
mit
AndrewBelt/Rack
8a2f9ebd60568d33eb4f7bb8741a07dea6bef918
Kitbot/src/Commands/SavePreferences.cpp
Kitbot/src/Commands/SavePreferences.cpp
#include "SavePreferences.h" SavePreferences::SavePreferences() { } // Called just before this Command runs the first time void SavePreferences::Initialize() { Preferences::GetInstance()->Save(); } // Called repeatedly when this Command is scheduled to run void SavePreferences::Execute() { } // Make this return tr...
#include "SavePreferences.h" SavePreferences::SavePreferences() { this->SetRunWhenDisabled(true); } // Called just before this Command runs the first time void SavePreferences::Initialize() { Preferences::GetInstance()->Save(); } // Called repeatedly when this Command is scheduled to run void SavePreferences::Exec...
Save Prefs can run when disabled
Save Prefs can run when disabled
C++
apache-2.0
team3130/Kitbot-2015
7ffeec408a33dbd4926bea6a58c43407f9376eb3
src/SVGImage.cpp
src/SVGImage.cpp
#include "SVGImage.h" #define NANOSVG_IMPLEMENTATION #include <nanosvg.h> #include <nanovg.h> // XXX This is bad, but easy. #define NANOVG_GL_IMPLEMENTATION #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <GLES2/gl2platform.h> #include <nanovg_gl.h> #include <nanovg.c> SVGImage::SVGImage() : _nanoSvgImage...
#include "SVGImage.h" #define NANOSVG_IMPLEMENTATION #include <nanosvg.h> #include <nanovg.h> // XXX This is bad, but easy. #define NANOVG_GL_IMPLEMENTATION #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <GLES2/gl2platform.h> #include <nanovg_gl.h> #include <nanovg.c> SVGImage::SVGImage() : _nanoSvgImage...
Check to see if there's an image before drawing starts.
Check to see if there's an image before drawing starts.
C++
bsd-3-clause
dublet/KARR,dublet/KARR,dublet/KARR
0c0fb9481de128ad5bd5d2496b8ef3314cbed5ec
src/osgSim/BlinkSequence.cpp
src/osgSim/BlinkSequence.cpp
//C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield // Distributed under the terms of the GNU General Public License (GPL) // as published by the Free Software Foundation. // // All software using osgSim must be GPL'd or excempted via the // purchase of the Open Scene Graph Professional...
//C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield // Distributed under the terms of the GNU General Public License (GPL) // as published by the Free Software Foundation. // // All software using osgSim must be GPL'd or excempted via the // purchase of the Open Scene Graph Professional...
Fix for compile problems under IRIX.
Fix for compile problems under IRIX. git-svn-id: 23b6355f2bb369032457de4eb5f713ee134f73a8@1330 16af8721-9629-0410-8352-f15c8da7e697
C++
lgpl-2.1
joevandyk/osg,joevandyk/osg,joevandyk/osg,joevandyk/osg,joevandyk/osg
bda156d540d22cbf67814c328da7d7459b402ec4
test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Fix inheriting constructor test for std::function.
Fix inheriting constructor test for std::function. The test I originally checked in only worked with ToT Clang. This patch updates the test so that it works as far back as 3.5. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@276093 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
5032cf904cac7b3ced363ecf2eca618c04c4aa37
src/main.cpp
src/main.cpp
#include "MainWindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QApplication::setApplicationName("ofProjectGenerator"); QApplication::setApplicationVersion("0.5.1"); QApplication::setOrganizationName("Furkanzmc"); MainWindow w; w.show(); retu...
#include "MainWindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QApplication::setApplicationName("ofProjectGenerator"); QApplication::setApplicationVersion("0.5.2"); QApplication::setOrganizationName("Furkanzmc"); MainWindow w; w.show(); retu...
Increase version for the VS support
Increase version for the VS support
C++
unlicense
Furkanzmc/ofxProjectGenerator,Furkanzmc/ofxQProjectGenerator,Furkanzmc/ofQProjectGenerator
3133eee98aaef4af6c5549fb5e5cc86bef63c2bb
ui/gfx/linux_util_unittest.cc
ui/gfx/linux_util_unittest.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 "ui/gfx/linux_util.h" #include "base/basictypes.h" #include "testing/gtest/include/gtest/gtest.h" namespace gfx { TEST(LinuxUtilTest, Conv...
// 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 "ui/gfx/linux_util.h" #include "base/basictypes.h" #include "testing/gtest/include/gtest/gtest.h" namespace gfx { TEST(LinuxUtilTest, Conv...
Add unittests for RemoveWindowsStyleAccelerators() function.
ui/gfx: Add unittests for RemoveWindowsStyleAccelerators() function. TEST=ui_unittests --gtest_filter=LinuxUtilTest* R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/9662039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@126284 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ltilve/chromium,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,markYoungH/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,Just-D/chromium-1,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,M4sse/chromium.src,nacl-webkit/chrome_deps,lti...
b763da63755a8fbdc8647069d1bda97e557d0184
src/variantmap.cpp
src/variantmap.cpp
#include "variantmap.h" namespace MolCore { // === VariantMap ========================================================== // /// \class VariantMap /// \brief The VariantMap class provides a map between string keys /// and variant values. // --- Construction and Destruction ------------------------------------...
#include "variantmap.h" namespace MolCore { // === VariantMap ========================================================== // /// \class VariantMap /// \brief The VariantMap class provides a map between string keys /// and variant values. // --- Construction and Destruction ------------------------------------...
Remove the usage of non-portable std::map::at() from VariantMap
Remove the usage of non-portable std::map::at() from VariantMap This removes the usage of the non-portable std::map::at() method in the VariantMap::value() method. This fixes a compilation error on windows. Change-Id: Ifb5947af016f4f4e773a9a9721b979bea247b6bb
C++
bsd-3-clause
cjh1/mongochemweb-avogadrolibs,cjh1/mongochemweb-avogadrolibs,ghutchis/avogadrolibs,OpenChemistry/avogadrolibs,ghutchis/avogadrolibs,wadejong/avogadrolibs,qust113/molcore,OpenChemistry/avogadrolibs,wadejong/avogadrolibs,OpenChemistry/avogadrolibs,cjh1/mongochemweb-avogadrolibs,wadejong/avogadrolibs,qust113/molcore,ghut...
0cbdeb36bf07e0a1fbb86b12f75f5f965d3e22b1
src/main.cpp
src/main.cpp
#include <iostream> #include <array> #include <asio/steady_timer.hpp> #include <asio.hpp> #include <thread> #include "node/raft_node.h" using namespace std; std::vector<raft_node_endpoint_t> peers{ {1ul, "localhost", 12345, 13001}, {2ul, "localhost", 12346, 13002}, {3ul, "localhost", 12347, 13...
#include <iostream> #include <array> #include <asio/steady_timer.hpp> #include <asio.hpp> #include <thread> #include "node/raft_node.h" using namespace std; std::vector<raft_node_endpoint_t> peers{ {1ul, "localhost", 12345, 13001}, {2ul, "localhost", 12346, 13002}, {3ul, "localhost", 12347, 13...
Fix constructor usage (copy constructor deleted)
Fix constructor usage (copy constructor deleted)
C++
mit
MrCrumpets/craft
31d17465e9563dcea44dbfea657fedb27b48a88f
src/main.cpp
src/main.cpp
/// \file main.cpp #include "HelloTriangleApplication.hpp" #define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" #include <cstdlib> #include <ostream> #include <stdexcept> int main(int argc, char* argv[]) // NOLINT(bugprone-exception-escape) { ////////////////////////////// Testing Stuff //// doctest::Contex...
/// \file main.cpp #include "HelloTriangleApplication.hpp" #define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" #include <cstdlib> #include <ostream> #include <stdexcept> int main(int argc, char* argv[]) { /////////////////////////////////////////////////////////////// Testing Stuff doctest::Context context...
Remove linter concerns which no longer trigger
Remove linter concerns which no longer trigger Must be better compile options info after a compile, Idunno.
C++
mit
atimholt/going-through-Vulkan-Tutorial
7d626eb42ae55232e4302720529843dbbdb54da0
src/playground/bindings/script_prologue.cc
src/playground/bindings/script_prologue.cc
// Copyright 2015 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. #include "bindings/script_prologue.h" namespace bindings { // NOTE: Line breaks will be removed from these scripts before their execution in ...
// Copyright 2015 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. #include "bindings/script_prologue.h" namespace bindings { // NOTE: Line breaks will be removed from these scripts before their execution in ...
Add a require.clear() function to PlaygroundJS
Add a require.clear() function to PlaygroundJS
C++
mit
LVPlayground/playgroundjs-plugin,LVPlayground/playgroundjs-plugin,LVPlayground/playgroundjs-plugin
0753a58a8b00e060bf5d268f4809a4b16264dcb1
content/browser/renderer_host/render_widget_host_view_android.cc
content/browser/renderer_host/render_widget_host_view_android.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 "content/browser/renderer_host/render_widget_host_view.h" #include "base/logging.h" // static void RenderWidgetHostView::GetDefaultScreenIn...
// 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 "content/browser/renderer_host/render_widget_host_view.h" #include "base/logging.h" // static void RenderWidgetHostViewBase::GetDefaultScre...
Fix compile error when building content_unittests for android.
Fix compile error when building content_unittests for android. In CL http://codereview.chromium.org/9307055 RenderWidgetHostView was split into two classes. The android stubs weren't updated causing a compile error when building content_unittests locally. BUG=None TEST= Review URL: http://codereview.chromium.org/94...
C++
bsd-3-clause
yitian134/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium...
e40d29dd5901bb388428a01bffff6377bc198545
gtasajs/ScriptLoader.cpp
gtasajs/ScriptLoader.cpp
#include "stdafx.h" #include "ScriptLoader.h" #include <boost\filesystem.hpp> #include <sstream> namespace fs = boost::filesystem; using namespace fs; ScriptLoader::ScriptLoader(JsContextRef* context) { this->context = *context; } ScriptLoader::~ScriptLoader() { } void ScriptLoader::LoadScripts() { path js(L"js...
#include "stdafx.h" #include "ScriptLoader.h" #include <boost\filesystem.hpp> #include <sstream> namespace fs = boost::filesystem; using namespace fs; ScriptLoader::ScriptLoader(JsContextRef* context) { this->context = *context; } ScriptLoader::~ScriptLoader() { } void ScriptLoader::LoadScripts() { path js(L"js...
Convert string back to wstring
Convert string back to wstring
C++
mit
Megasware128/gtasa.js,Megasware128/gtasa.js
595a98b313d0cdf325f5bc18e85a38873842e765
features/frameworks/greentea-client/source/greentea_serial.cpp
features/frameworks/greentea-client/source/greentea_serial.cpp
#include "greentea-client/greentea_serial.h" SingletonPtr<GreenteaSerial> greentea_serial; GreenteaSerial::GreenteaSerial() : mbed::RawSerial(USBTX, USBRX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE) {};
#include "greentea-client/greentea_serial.h" /** * Macros for setting console flow control. */ #define CONSOLE_FLOWCONTROL_RTS 1 #define CONSOLE_FLOWCONTROL_CTS 2 #define CONSOLE_FLOWCONTROL_RTSCTS 3 #define mbed_console_concat_(x) CONSOLE_FLOWCONTROL_##x #define mbed_console_concat(x) mbed_console_concat_(...
Enable flow control in Greentea
Enable flow control in Greentea Flow control is enabled in Greentea for targets that has console-uart-flow-control set.
C++
apache-2.0
kjbracey-arm/mbed,c1728p9/mbed-os,mbedmicro/mbed,betzw/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,andcor02/mbed-os,c1728p9/mbed-os,betzw/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,betzw/mbed-os,mbedmicro/mbed,betzw/mbed-os,c1728p9/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02...
fb81b4cb830fd00d01f86dd57b10d444d9f3a151
test/cxa_bad_cast.pass.cpp
test/cxa_bad_cast.pass.cpp
//===----------------------- cxa_bad_cast.pass.cpp ------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------- cxa_bad_cast.pass.cpp ------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Fix dangling reference in test
Fix dangling reference in test git-svn-id: 6a9f6578bdee8d959f0ed58970538b4ab6004734@337906 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi
e896e3deafb0844e6b790fa81e5240790d1c5434
src/CacheJsonToArticleConverter.cpp
src/CacheJsonToArticleConverter.cpp
#include "CacheJsonToArticleConverter.h" #include <json/json.h> #include "WalkerException.h" #include "Article.h" ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache) { Json::Reader reader; Json::Value document; bool success = reader.parse(js...
#include "CacheJsonToArticleConverter.h" #include <json/json.h> #include "WalkerException.h" #include "Article.h" ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache) { Json::Reader reader; Json::Value document; bool success = reader.parse(js...
Modify json cache implementation to match null/empty array behavior
Modify json cache implementation to match null/empty array behavior
C++
mit
dueringa/WikiWalker
2a989c1538fb3d82ebdbb8ed534abac784faf258
glutil/glutil.cpp
glutil/glutil.cpp
/* * Copyright (c) 2015 Daniel Kirchner * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pub...
/* * Copyright (c) 2015 Daniel Kirchner * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pub...
Remove obsolete oglp code include.
Remove obsolete oglp code include.
C++
mit
ekpyron/glutil
454b6bd9500a556c165476bf30f8ff90b2c3aedb
src/TextureHolder.cpp
src/TextureHolder.cpp
#include "TextureHolder.hpp" TextureHolder::TextureHolder() { } void TextureHolder::load(Textures id, const std::string &fileName) { std::unique_ptr<sf::Texture> texture(new sf::Texture); texture->loadFromFile(fileName); m_textureMap.insert(std::make_pair(id, std::move(texture))); } sf::Texture& Textur...
#include "TextureHolder.hpp" TextureHolder::TextureHolder() { } void TextureHolder::load(Textures id, const std::string &fileName) { std::unique_ptr<sf::Texture> texture(new sf::Texture); if (!texture->loadFromFile(fileName)) { throw std::runtime_error("TextureHolder::load - Failed to load " + fi...
Add Error handling to textureholder
Add Error handling to textureholder
C++
mit
TmCrafz/ArenaSFML,TmCrafz/ArenaSFML
63ac2d96e086774c288dbe0224f439d25061d348
src/base/src/pipe.cpp
src/base/src/pipe.cpp
/// // // LibSourcey // Copyright (c) 2005, Sourcey <https://sourcey.com> // // SPDX-License-Identifier: LGPL-2.1+ // /// @addtogroup base /// @{ #include "scy/pipe.h" using std::endl; namespace scy { Pipe::Pipe(uv::Loop* loop) : Stream(loop, new uv_pipe_t) { } Pipe::~Pipe() { } void Pipe::init(bool ipc...
/// // // LibSourcey // Copyright (c) 2005, Sourcey <https://sourcey.com> // // SPDX-License-Identifier: LGPL-2.1+ // /// @addtogroup base /// @{ #include "scy/pipe.h" using std::endl; namespace scy { Pipe::Pipe(uv::Loop* loop) : Stream(loop, new uv_pipe_t) { } Pipe::~Pipe() { } void Pipe::init(bool ipc...
Fix missing call to Pipe::init
Fix missing call to Pipe::init
C++
lgpl-2.1
sourcey/libsourcey,sourcey/libsourcey,sourcey/libsourcey,sourcey/libsourcey
62cf7b3dd4339e013086070d5b9d631fde0be027
source/gloperate/source/stages/ColorGradientPreparationStage.cpp
source/gloperate/source/stages/ColorGradientPreparationStage.cpp
#include <gloperate/stages/ColorGradientPreparationStage.h> #include <gloperate/base/ColorGradientList.h> #include <gloperate/tools/ColorGradientPreparation.h> namespace gloperate { ColorGradientPreparationStage::ColorGradientPreparationStage() { addInput("gradients", gradients); addInput("pixmapSize", pixma...
#include <gloperate/stages/ColorGradientPreparationStage.h> #include <gloperate/base/ColorGradientList.h> #include <gloperate/tools/ColorGradientPreparation.h> namespace gloperate { ColorGradientPreparationStage::ColorGradientPreparationStage() { addInput("gradients", gradients); addInput("pixmapSize", pixma...
Use designated interface of the color gradient preparation tool in the color gradient preparation stage
Use designated interface of the color gradient preparation tool in the color gradient preparation stage
C++
mit
j-o/gloperate,p-otto/gloperate,cginternals/gloperate,lanice/gloperate,j-o/gloperate,hpicgs/gloperate,p-otto/gloperate,p-otto/gloperate,Beta-Alf/gloperate,p-otto/gloperate,lanice/gloperate,Beta-Alf/gloperate,Beta-Alf/gloperate,lanice/gloperate,cginternals/gloperate,hpicgs/gloperate,Beta-Alf/gloperate,j-o/gloperate,hpicg...
f04f1922b462eaadc94352ae66fac0378bf814af
network_config.cpp
network_config.cpp
#include "network_config.hpp" #include <fstream> #include <string> namespace phosphor { namespace network { namespace bmc { void writeDHCPDefault(const std::string& filename, const std::string& interface) { std::ofstream filestream; filestream.open(filename); filestream <<...
#include "network_config.hpp" #include <fstream> #include <string> namespace phosphor { namespace network { namespace bmc { void writeDHCPDefault(const std::string& filename, const std::string& interface) { std::ofstream filestream; filestream.open(filename); filestream <<...
Disable zeroconf in factory reset mode
Disable zeroconf in factory reset mode Will enable it later,Need to enhance the code of IPMI in the case of ZeroConfigIP. Change-Id: Ic997c26525c7f4f8be9d5a48f1dbbd9e35bc96f5 Signed-off-by: Ratan Gupta <a42a43504c26cfe5294e3d72712325cd74a43440@in.ibm.com>
C++
apache-2.0
openbmc/phosphor-networkd,openbmc/phosphor-networkd
dd5a3307d77744e3dcaa2ea596ee21bddfce67f1
src/lib/marble/geodata/handlers/kml/KmlDurationTagHandler.cpp
src/lib/marble/geodata/handlers/kml/KmlDurationTagHandler.cpp
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2013 Mayank Madan <maddiemadan@gmail.com> // #include "KmlDurationTagHandler.h" #i...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2013 Mayank Madan <maddiemadan@gmail.com> // #include "KmlDurationTagHandler.h" #i...
Fix namespace. It is <gx:duration>.
Fix namespace. It is <gx:duration>.
C++
lgpl-2.1
probonopd/marble,tzapzoor/marble,tzapzoor/marble,quannt24/marble,David-Gil/marble-dev,tzapzoor/marble,tucnak/marble,probonopd/marble,tzapzoor/marble,tucnak/marble,tzapzoor/marble,probonopd/marble,tucnak/marble,quannt24/marble,David-Gil/marble-dev,David-Gil/marble-dev,tzapzoor/marble,probonopd/marble,tzapzoor/marble,pro...
f2fa3d29ceb9b4cf887429e99303a41df1d5600e
skia/sgl/SkTypeface_fake.cpp
skia/sgl/SkTypeface_fake.cpp
#include "SkTypeface.h" // ===== Begin Chrome-specific definitions ===== uint32_t SkTypeface::UniqueID(const SkTypeface* face) { return NULL; } void SkTypeface::serialize(SkWStream* stream) const { } SkTypeface* SkTypeface::Deserialize(SkStream* stream) { return NULL; } // ===== End Chrome-specific definitio...
#include "SkTypeface.h" // ===== Begin Chrome-specific definitions ===== uint32_t SkTypeface::UniqueID(const SkTypeface* face) { return 0; } void SkTypeface::serialize(SkWStream* stream) const { } SkTypeface* SkTypeface::Deserialize(SkStream* stream) { return NULL; } // ===== End Chrome-specific definitions ...
Return 0 instead of NULL for a non-pointer type. Eliminates a warning in GCC.
Return 0 instead of NULL for a non-pointer type. Eliminates a warning in GCC. git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@981 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,ropik...
4470be50451d574b3010b84ba850f3c4b2a92292
qterm/qpiekey.cpp
qterm/qpiekey.cpp
#include <qpiekey.h> #include <QSizePolicy> #include <QPainter> #include <QPaintEvent> QPieKey::QPieKey(QWidget *parent) : QWidget(parent) { bitmap = new QBitmap(40,40); QPainter painter(bitmap); bitmap->clear(); painter.drawEllipse(0, 0, 40, 40); setFixedSize(40, 40); setMask(*bitmap); } QPi...
#include <qpiekey.h> #include <QSizePolicy> #include <QPainter> #include <QPaintEvent> #define SIZE 60 QPieKey::QPieKey(QWidget *parent) : QWidget(parent) { bitmap = new QBitmap(SIZE*2,SIZE*2); QPainter painter(bitmap); setFixedSize(SIZE*2, SIZE*2); bitmap->clear(); painter.setBrush(Qt::color1);...
Set the transparent region appropriately
Set the transparent region appropriately
C++
apache-2.0
absmall/libterm,absmall/libterm
000940103be2eea0434a3228e4fabbcedc7d78af
src/tests/test.cpp
src/tests/test.cpp
#include <iostream> #include <gtest/gtest.h> int main(int argc, char* argv[]) try { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } catch (...) { std::cout << "Exception during testing. Exiting...\n"; return 1; }
#include <iostream> #include <gtest/gtest.h> int main(int argc, char* argv[]) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
Remove exception handler - this was not needed
Remove exception handler - this was not needed
C++
mit
icecream95/zxtk,icecream95/zxtk
eb0c034357b04645739e1c0972b40f4e55aacf46
src/views/session_view.cc
src/views/session_view.cc
#include "models/bucket.h" #include "views/session_view.h" SessionView::SessionView(Session* session, QWidget* parent) : QWidget(parent), m_session(session) { m_hostFileSystem = new QFileSystemModel(this); m_hostFileSystem->setRootPath(QDir::rootPath()); m_hostBrowser = new QTreeView; m_hostBrowser->setModel(...
#include "models/bucket.h" #include "views/session_view.h" SessionView::SessionView(Session* session, QWidget* parent) : QWidget(parent), m_session(session) { m_hostFileSystem = new QFileSystemModel(this); QString rootPath = m_hostFileSystem->myComputer().toString(); m_hostFileSystem->setRootPath(rootPath); m...
Set the host file system model's root path to "myComputer" so the host browser will show all drives.
Set the host file system model's root path to "myComputer" so the host browser will show all drives.
C++
apache-2.0
Klopsch/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser
838a185f7a8538ea88d85c7033de2087c22a707e
searchcore/src/vespa/searchcore/proton/persistenceengine/transport_latch.cpp
searchcore/src/vespa/searchcore/proton/persistenceengine/transport_latch.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "transport_latch.h" #include <vespa/vespalib/util/stringfmt.h> using vespalib::make_string; using storage::spi::Result; namespace proton { TransportLatch::TransportLatch(uint32_t cnt) ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "transport_latch.h" #include <vespa/vespalib/util/stringfmt.h> using vespalib::make_string; using storage::spi::Result; namespace proton { TransportLatch::TransportLatch(uint32_t cnt) ...
Handle count being zero in transport latch.
Handle count being zero in transport latch.
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
0b4e86af13ac535f8493ef2480b56d89da4c8645
Sources/Rosetta/Enchants/Enchants.cpp
Sources/Rosetta/Enchants/Enchants.cpp
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <Rosetta/Cards/Cards.hpp> #include <Rosetta/Enchants/Effects....
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <Rosetta/Cards/Cards.hpp> #include <Rosetta/Enchants/Effects....
Add code to find text "this turn" and set flag
feat(card-impl): Add code to find text "this turn" and set flag
C++
mit
Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp
0e6cb47481012b34f8c86635f0784d2a22bda48d
libraries/tests/mbed/analog/main.cpp
libraries/tests/mbed/analog/main.cpp
#include "test_env.h" #if defined(TARGET_K64F) AnalogIn in(A0); AnalogOut out(A5); #elif defined(TARGET_KL25Z) AnalogIn in(PTC2); AnalogOut out(PTE30); #elif defined(TARGET_KL05Z) AnalogIn in(PTB11); // D9 AnalogOut out(PTB1); // D1 #elif defined(TARGET_KL46Z) AnalogIn in(PTB0); AnalogOut out(PTE30); #else Analog...
#include "test_env.h" #if defined(TARGET_K64F) AnalogIn in(A0); AnalogOut out(DAC0_OUT); #elif defined(TARGET_KL25Z) AnalogIn in(PTC2); AnalogOut out(PTE30); #elif defined(TARGET_KL05Z) AnalogIn in(PTB11); // D9 AnalogOut out(PTB1); // D1 #elif defined(TARGET_KL46Z) AnalogIn in(PTB0); AnalogOut out(PTE30); #else ...
Update AnalogOut pinname in the test
Update AnalogOut pinname in the test
C++
apache-2.0
bulislaw/mbed-os,nvlsianpu/mbed,kl-cruz/mbed-os,bentwire/mbed,ryankurte/mbed-os,Marcomissyou/mbed,adamgreen/mbed,nRFMesh/mbed-os,Marcomissyou/mbed,pi19404/mbed,fahhem/mbed-os,j-greffe/mbed-os,al177/mbed,bcostm/mbed-os,pradeep-gr/mbed-os5-onsemi,betzw/mbed-os,DanKupiniak/mbed,arostm/mbed-os,theotherjimmy/mbed,netzimme/m...
b36b4786bae190d29075dda019dc9f2d972b861a
lit/Expr/Inputs/anonymous-struct.cpp
lit/Expr/Inputs/anonymous-struct.cpp
#include <tgmath.h> typedef struct { float f; int i; } my_untagged_struct; double multiply(my_untagged_struct *s) { return s->f * s->i; } double multiply(my_untagged_struct *s, int x) { return multiply(s) * x; } int main(int argc, char **argv) { my_untagged_struct s = { .f = (float)argc,...
#include <cmath> typedef struct { float f; int i; } my_untagged_struct; double multiply(my_untagged_struct *s) { return s->f * s->i; } double multiply(my_untagged_struct *s, int x) { return multiply(s) * x; } int main(int argc, char **argv) { my_untagged_struct s = { .f = (float)argc, ...
Fix compilation error caused by tgmath.h.
Fix compilation error caused by tgmath.h. On CentOS calling functions from <tgmath.h> produces multiple errors "'void*' is not a pointer-to-object type". git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@329597 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb
99be84b94219da75a5214a1f9d52757aa07efcf1
ouzel/Camera.cpp
ouzel/Camera.cpp
// Copyright (C) 2015 Elviss Strazdins // This file is part of the Ouzel engine. #include "Camera.h" namespace ouzel { Camera::Camera() { } Camera::~Camera() { } void Camera::setZoom(float zoom) { _zoom = zoom; if (_zoom < 0.1f) { ...
// Copyright (C) 2015 Elviss Strazdins // This file is part of the Ouzel engine. #include "Camera.h" namespace ouzel { Camera::Camera() { } Camera::~Camera() { } void Camera::setZoom(float zoom) { _zoom = zoom; if (_zoom < 0.1f) { ...
Mark local transform dirty when camera zoom changes
Mark local transform dirty when camera zoom changes
C++
unlicense
elnormous/ouzel,elnormous/ouzel,elvman/ouzel,Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel
031f734b69fe592179fce5e9af81357ad843329a
3RVX/LanguageTranslator.cpp
3RVX/LanguageTranslator.cpp
#include "LanguageTranslator.h" #include "Logger.h" #include "StringUtils.h" LanguageTranslator::LanguageTranslator(std::wstring langFileName) { CLOG(L"Loading skin XML: %s", langFileName.c_str()); std::string u8FileName = StringUtils::Narrow(langFileName); tinyxml2::XMLError result = _xml.LoadFile(u8File...
#include "LanguageTranslator.h" #include "Logger.h" #include "StringUtils.h" LanguageTranslator::LanguageTranslator() { } LanguageTranslator::LanguageTranslator(std::wstring langFileName) { CLOG(L"Loading language XML: %s", langFileName.c_str()); std::string u8FileName = StringUtils::Narrow(langFileName); ...
Update log message; skin -> language
Update log message; skin -> language
C++
bsd-2-clause
Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX
6f97ddceb20b0fd48951fa821aa7aa0d945ad1f3
practice02/01.cpp
practice02/01.cpp
#include <stdbool.h> bool is_triangle(const int side_a, const int side_b, const int side_c) { /* Get the triangular inequality state from length of the sides */ if(side_a + side_b > side_c && side_b + side_c > side_a && side_c + side_a > side_b) return true; /* This is a triangle */ return false; /* Not a ...
#include <stdbool.h> bool triangular_inequality(const int a, const int b, const int c) { if(a + b > c && b + c > a && c + a > b) return true; return false; }
Revert "Name of the function has been changed."
Revert "Name of the function has been changed." This reverts commit 3f4f94f4fb35206c3a0a974c43afe19783c35124.
C++
mit
kdzlvaids/problem_solving-pknu-2016,kdzlvaids/problem_solving-pknu-2016
2a29c4b6ef710de49b1fd72902d6930033edae24
test/CXX/temp/temp.decls/temp.friend/p1.cpp
test/CXX/temp/temp.decls/temp.friend/p1.cpp
// RUN: clang-cc %s template <typename T> struct Num { T value_; public: Num(T value) : value_(value) {} T get() const { return value_; } template <typename U> struct Rep { U count_; Rep(U count) : count_(count) {} friend Num operator*(const Num &a, const Rep &n) { Num x = 0; for (U ...
// RUN: clang-cc -emit-llvm-only %s template <typename T> struct Num { T value_; public: Num(T value) : value_(value) {} T get() const { return value_; } template <typename U> struct Rep { U count_; Rep(U count) : count_(count) {} friend Num operator*(const Num &a, const Rep &n) { Num x = ...
Fix a last-minute typo and make the test not emit temporaries.
Fix a last-minute typo and make the test not emit temporaries. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@80419 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
d74ae1061d510e0d03e8caa74a8d5df26ca53589
chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_linux.cc
chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_linux.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/extensions/api/system_info_cpu/cpu_info_provider.h" namespace extensions { bool CpuInfoProvider::QueryCpuTimePerProcessor(s...
// 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/extensions/api/system_info_cpu/cpu_info_provider.h" #include <cstdio> #include <iostream> #include "base/file_util.h" #incl...
Implement querying CPU time from /proc/stat on Linux for systemInfo.cpu API
Implement querying CPU time from /proc/stat on Linux for systemInfo.cpu API BUG=136519 TEST=None Review URL: https://chromiumcodereview.appspot.com/10907139 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@157984 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Chilledheart/chromium,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk...
bcb3bffb8c455b67ae9cc64fc4952c86355a552b
code/concurrency/cx11.cpp
code/concurrency/cx11.cpp
#include <iostream> #include <thread> void call_from_thread() { std::cout << "Hello, World" << std::endl; } int main() { //Launch a thread std::thread t[5]; for(int i = 0; i < 5; i++){ t[i] = std::thread(call_from_thread); } for(int i = 0; i < 5; i++){ t[i].join(); } ret...
#include <thread> #include <iostream> #include <vector> void hello(){ std::cout << "Hello, world" << std::endl; } int main(){ std::vector<std::thread> threads; for(int i = 0; i < 5; ++i){ threads.push_back(std::thread(hello)); } for(auto& thread : threads){ thread.join(); } ...
Make c++11 example more realistic
Make c++11 example more realistic
C++
mit
leonardinius/sweet-slides.rs,leonardinius/sweet-slides.rs,leonardinius/sweet-slides.rs,leonardinius/sweet-slides.rs
eba238f4d548a7ee770973182922b93ff0a4e88c
pw_transfer/chunk_data_buffer.cc
pw_transfer/chunk_data_buffer.cc
// Copyright 2021 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
// Copyright 2021 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
Fix undefined behavior in memcpy
pw_transfer: Fix undefined behavior in memcpy Passing nullptr to memcpy is undefined behavior, even when copying 0 bytes. Switch to std::copy to avoid this. Fixes: 543 Change-Id: I31139435e8d3860003874ad6c21211d476af6577 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/69060 Pigweed-Auto-Submi...
C++
apache-2.0
google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed
1170a3d2dcb2a981f529c1fc588ef91b10192133
test/test_teraranger_one.cpp
test/test_teraranger_one.cpp
#include <gtest/gtest.h> #include <teraranger_hub/teraranger_one.h> class HubParserTest : public ::testing::Test{ protected: uint8_t input_buffer[BUFFER_SIZE] = {0x54,0x48,0x08,0xa7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0b};//expected result is one 2.22 meter measurement }; TEST_F(...
#include <gtest/gtest.h> #include <teraranger_hub/teraranger_one.h> #include <teraranger_hub/helper_lib.h> class HubParserTest : public ::testing::Test{ protected: uint8_t input_buffer[BUFFER_SIZE] = {0x54,0x48,0x08,0xa7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0b};//expected result is...
Fix unit crc8 unit test
Fix unit crc8 unit test
C++
mit
Terabee/teraranger_array,Terabee/teraranger_array
f24c78c05eb572823cd4913ba44dbab4f957645f
3party/open-location-code/codearea.cc
3party/open-location-code/codearea.cc
#include "codearea.h" #include <algorithm> namespace openlocationcode { const double kLatitudeMaxDegrees = 90; const double kLongitudeMaxDegrees = 180; CodeArea::CodeArea(double latitude_lo, double longitude_lo, double latitude_hi, double longitude_hi, size_t code_length) { latitude_lo_ = latit...
#include "codearea.h" #include <algorithm> namespace openlocationcode { const double kLatitudeMaxDegrees = 90; const double kLongitudeMaxDegrees = 180; CodeArea::CodeArea(double latitude_lo, double longitude_lo, double latitude_hi, double longitude_hi, size_t code_length) { latitude_lo_ = latit...
Fix warning in open location code library
[olc] Fix warning in open location code library
C++
apache-2.0
alexzatsepin/omim,VladiMihaylenko/omim,mpimenov/omim,matsprea/omim,mapsme/omim,milchakov/omim,darina/omim,VladiMihaylenko/omim,rokuz/omim,rokuz/omim,darina/omim,alexzatsepin/omim,VladiMihaylenko/omim,mapsme/omim,matsprea/omim,bykoianko/omim,matsprea/omim,mpimenov/omim,mapsme/omim,VladiMihaylenko/omim,matsprea/omim,maps...
3925e96f069a989f77d9027cec27f7c80a7d7ea4
test/construct.cc
test/construct.cc
#include <gmi_mesh.h> #include <gmi_null.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apfConvert.h> #include <apf.h> #include <PCU.h> int main(int argc, char** argv) { assert(argc==3); MPI_Init(&argc,&argv); PCU_Comm_Init(); PCU_Protect(); gmi_register_mesh(); gmi_register_null(); int* conn; ...
#include <gmi_mesh.h> #include <gmi_null.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apfConvert.h> #include <apf.h> #include <PCU.h> int main(int argc, char** argv) { assert(argc==3); MPI_Init(&argc,&argv); PCU_Comm_Init(); PCU_Protect(); gmi_register_mesh(); gmi_register_null(); int* conn; ...
Add test for setting coordinates
Add test for setting coordinates
C++
bsd-3-clause
yangf4/core,yangf4/core,yangf4/core,yangf4/core,yangf4/core
63684b872768e90aa3cd37b704ec7cd206e8e34c
base/test_file_util_mac.cc
base/test_file_util_mac.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/test_file_util.h" #include "base/logging.h" namespace file_util { bool EvictFileFromSystemCache(const FilePath& file) { // TODO(po...
// 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/test_file_util.h" #include "base/logging.h" namespace file_util { bool EvictFileFromSystemCache(const FilePath& file) { // There i...
Change the stub for file_util::EvictFileFromSystemCache
Change the stub for file_util::EvictFileFromSystemCache I don't think there is a way to get something out of the UBC once it's in, so for now I'm just making this api return true so it won't fail unittests. I have email out to Amit incase he has any ideas. Review URL: http://codereview.chromium.org/42333 git-svn-id:...
C++
bsd-3-clause
Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavin...
a20f94fea0f2e33a2db4e15c82e0fec3005ea669
tests/testAWG.cpp
tests/testAWG.cpp
#include <gtest/gtest.h> #include "../src/awg.hpp" #include "../src/pulseTrain.hpp" class AWGConstructors : public ::testing::Test { protected: }; class AWGAcessors : public ::testing::Test { protected: }; int main(int argc, char * argv[] ) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
#include <gtest/gtest.h> #include "../src/awg.hpp" #include "../src/pulseTrain.hpp" TEST(AwgClass, ComPort) { awg testAwg; EXPECT_EQ(std::string("COM1"),testAwg.comPort()); testAwg.comPort(2); EXPECT_EQ(std::string("COM2"),testAwg.comPort()); testAwg.comPort("com1"); EXPECT_EQ(std::string("com1"),testAwg.co...
Test the COM Port assignments in the AWG class
Test the COM Port assignments in the AWG class
C++
mit
ZJ/awg2040-lattice-gen,ZJ/awg2040-lattice-gen
b5f34fece6035c7084ffc868cdace0de9d266051
test/cpp-utility/gcc/os.cpp
test/cpp-utility/gcc/os.cpp
#include <unordered_map> #include <mutex> #include "../os.h" #include "test_lib.h" #include "../../../intercom-cpp/src/cominterop.h" #include "../../../intercom-cpp/src/activator.h" using intercom::Activator; void InitializeRuntime() { } void UninitializeRuntime() { } intercom::HRESULT CreateInstance( intercom::...
#include <unordered_map> #include <mutex> #include "../os.h" #include "test_lib.h" #include "../../../intercom-cpp/src/cominterop.h" #include "../../../intercom-cpp/src/activator.h" using intercom::Activator; void InitializeRuntime() { } void UninitializeRuntime() { } intercom::HRESULT CreateInstance( intercom::...
Fix return value in create()
Fix return value in create()
C++
mit
Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs,Rantanen/com-export-rs
eda55b7577588291345991e69777d34a6a556223
tools/rewriter/rewriter.cpp
tools/rewriter/rewriter.cpp
//------------------------------------------------------------------------------ // rewriter.cpp // Simple tool that parses an input file and writes it back out; used // for verifying the round-trip nature of the parse tree. // // File is under the MIT license; see LICENSE for details //--------------------------------...
//------------------------------------------------------------------------------ // rewriter.cpp // Simple tool that parses an input file and writes it back out; used // for verifying the round-trip nature of the parse tree. // // File is under the MIT license; see LICENSE for details //--------------------------------...
Print newline in usage in rewrite
Print newline in usage in rewrite
C++
mit
MikePopoloski/slang,MikePopoloski/slang
63bd40f77a575e53700ec08bf72797fd143dd172
src/person-plugin-manager.cpp
src/person-plugin-manager.cpp
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) 2013 David Edmundson <D.Edmundson@lboro.ac.uk> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) 2013 David Edmundson <D.Edmundson@lboro.ac.uk> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
Use the new actions plugins
Use the new actions plugins
C++
lgpl-2.1
detrout/libkpeople-debian,detrout/libkpeople-debian,detrout/libkpeople-debian
731f27bbe29925c891aa60e96922aa6442319201
test/main.cpp
test/main.cpp
#define CATCH_CONFIG_MAIN #include "./catch.hpp"
#define CATCH_CONFIG_RUNNER #include "./catch.hpp" #include "./ReQL.hpp" int main(int argc, char **argv) { int result = Catch::Session().run(argc, argv); ReQL::Connection conn; ReQL::wait({}) .funcall({ ReQL::func({ 1.0, ReQL::db({std::string("rethinkdb")}) .table({std::string("db_confi...
Add cleanup to the entire database on test exit.
Add cleanup to the entire database on test exit.
C++
apache-2.0
grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core
6c90710440fca647c0d50371e308e63966145374
tests/arrays/prog.cpp
tests/arrays/prog.cpp
#include "FortWrap.h" #include <algorithm> // For count #include <iostream> int main(void) { // Set up v = [1,2,3,4] std::vector<int> v(4); for (int i=0; i<v.size(); i++) v[i] = i+1; if (FortFuncs::array_in(&v) != 10) return 1; std::vector<int> v2(10); FortFuncs::array_out(&v,&v2); if ((int...
#include "FortWrap.h" #include <algorithm> // For count #include <iostream> int main(void) { // Set up v = [1,2,3,4] std::vector<int> v(4); for (int i=0; i<v.size(); i++) v[i] = i+1; if (FortFuncs::array_in(&v) != 10) return 1; std::vector<int> v2(10); FortFuncs::array_out(&v,&v2); if ((int...
Test wasn't referring to the correct routine.
Test wasn't referring to the correct routine.
C++
mit
mcfarljm/fortwrap,mcfarljm/fortwrap,mcfarljm/fortwrap,mcfarljm/fortwrap
7d4feb2781fbcf220cb1bb9bcaf76b8978979cc6
src/messages/MessageBuilder.cpp
src/messages/MessageBuilder.cpp
#include "MessageBuilder.hpp" #include "common/LinkParser.hpp" #include "singletons/Emotes.hpp" #include "singletons/Resources.hpp" #include "singletons/Theme.hpp" #include <QDateTime> namespace chatterino { MessageBuilder::MessageBuilder() : message(new Message) { } MessagePtr MessageBuilder::getMessage() { ...
#include "MessageBuilder.hpp" #include "common/LinkParser.hpp" #include "singletons/Emotes.hpp" #include "singletons/Resources.hpp" #include "singletons/Theme.hpp" #include <QDateTime> namespace chatterino { MessageBuilder::MessageBuilder() : message(new Message) { } MessagePtr MessageBuilder::getMessage() { ...
Make protocol regexes case insensitive
Make protocol regexes case insensitive
C++
mit
hemirt/chatterino2,hemirt/chatterino2,hemirt/chatterino2,Cranken/chatterino2,Cranken/chatterino2,Cranken/chatterino2,fourtf/chatterino2,fourtf/chatterino2,hemirt/chatterino2,fourtf/chatterino2,Cranken/chatterino2
1ca506eb300897808deb77a337481ffd7a886fb7
src/animationmanager.cpp
src/animationmanager.cpp
#include "stdafx.h" #include <dukat/animationmanager.h> namespace dukat { Animation* AnimationManager::add(std::unique_ptr<Animation> animation) { auto anim = animation.get(); animations.push_back(std::move(animation)); if (!anim->is_running()) { anim->start(); } return anim; } void AnimationManage...
#include "stdafx.h" #include <dukat/animationmanager.h> namespace dukat { Animation* AnimationManager::add(std::unique_ptr<Animation> animation) { auto anim = animation.get(); animations.push_back(std::move(animation)); if (!anim->is_running()) { anim->start(); } return anim; } void AnimationManage...
Fix order of animation update
Fix order of animation update
C++
mit
bdamer/dukat,bdamer/dukat
e822c22a822b05f481442fd12050666b811731fa
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 { const unsigned long GAME_TIME = 3000; unsigned long endTime; unsigned int buttonsPressed...
#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...
Make button turn off after time ends
Make button turn off after time ends
C++
mit
SUPERETDUPER/bolt-arduino
e8c075fb837ed2faf117d1f62f1375b203a22ac7
src/libraries/StateMachineLib/YarpStateDirector.cpp
src/libraries/StateMachineLib/YarpStateDirector.cpp
#include "YarpStateDirector.hpp" const int rd::YarpStateDirector::DEFAULT_RATE_MS = 100; rd::YarpStateDirector::YarpStateDirector(rd::State *state) : StateDirector(state), RateThread(DEFAULT_RATE_MS) { } bool rd::YarpStateDirector::Start() { RD_DEBUG("Starting StateDirector for id %s\n", state->getStateId().c_...
#include "YarpStateDirector.hpp" const int rd::YarpStateDirector::DEFAULT_RATE_MS = 100; rd::YarpStateDirector::YarpStateDirector(rd::State *state) : StateDirector(state), RateThread(DEFAULT_RATE_MS) { } bool rd::YarpStateDirector::Start() { RD_DEBUG("Starting StateDirector for id %s\n", state->getStateId().c_...
Check setup return value to stop the FSM if false
Check setup return value to stop the FSM if false
C++
lgpl-2.1
asrob-uc3m/robotDevastation,asrob-uc3m/robotDevastation
85b8adcc8d9f65e175437699ed3d36362c7ac2b7
src/expand/file_line.cpp
src/expand/file_line.cpp
/* */ #include <synext.hpp> #include "../parse/common.hpp" class CExpanderFile: public ExpandProcMacro { ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override { return box$( TTStreamO(TokenTree(Tok...
/* */ #include <synext.hpp> #include "../parse/common.hpp" class CExpanderFile: public ExpandProcMacro { ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override { return box$( TTStreamO(TokenTree(Tok...
Expand - Implement module_path! macro
Expand - Implement module_path! macro
C++
mit
thepowersgang/mrustc,thepowersgang/mrustc,thepowersgang/mrustc,thepowersgang/mrustc,thepowersgang/mrustc
e1b81cf3033cdde33b157de58364c8306b5ce9e3
cs-2015-10-06-mene-zname-novinky-v-cpp11-a-cpp14/cpp11/user-defined-literals.cpp
cs-2015-10-06-mene-zname-novinky-v-cpp11-a-cpp14/cpp11/user-defined-literals.cpp
#include <cstddef> #include <string> // Emulates the standard std::string literal ("..."s) from C++14. Since 's' is // reserved by the standard, we have to use '_s' instead of 's'. std::string operator "" _s(const char *str, std::size_t length) { return std::string(str, length); } int main() { std::string s1 ...
#include <cstddef> #include <string> // Emulates the standard std::string literal ("..."s) from C++14. Since 's' is // reserved by the standard, we have to use '_s' instead of 's'. std::string operator "" _s(const char *str, std::size_t length) { return std::string(str, length); } int main() { std::string s1 ...
Fix a typo in a comment.
Fix a typo in a comment.
C++
bsd-3-clause
s3rvac/blog,s3rvac/blog,s3rvac/blog,s3rvac/blog
2ce031234598ccfba78e5ed7332f63b89a4364d7
chrome/browser/in_process_webkit/webkit_thread_unittest.cc
chrome/browser/in_process_webkit/webkit_thread_unittest.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 "chrome/browser/in_process_webkit/webkit_thread.h" #include "testing/gtest/include/gtest/gtest.h" TEST(WebKitThreadTest, ExposedInChromeThre...
// 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 "chrome/browser/in_process_webkit/webkit_thread.h" #include "testing/gtest/include/gtest/gtest.h" TEST(WebKitThreadTest, DISABLED_ExposedInC...
Disable WebKitThreadTest.ExposedInChromeThread, due to subsequent assert.
Disable WebKitThreadTest.ExposedInChromeThread, due to subsequent assert. BUG=46087 TEST=see bug TBR=evan Review URL: http://codereview.chromium.org/2777001 git-svn-id: http://src.chromium.org/svn/trunk/src@49174 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 2acb59de44146400093ea8dad92512ca456d0d90
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...
4e20adbd6a620c4977e94c17edd8c7596e1a8519
source/cppfs/source/system.cpp
source/cppfs/source/system.cpp
#include <stdlib.h> #include <cppfs/system.h> namespace cppfs { namespace system { std::string homeDir() { return std::string(getenv("HOME")); } std::string configDir(const std::string & application) { #if defined(SYSTEM_WINDOWS) return std::string(getenv("APPDATA")) + "\\" + application; #elif defined(S...
#include <stdlib.h> #include <cppfs/system.h> namespace cppfs { namespace system { std::string homeDir() { #if defined(SYSTEM_WINDOWS) return std::string(getenv("HOMEPATH")); #else return std::string(getenv("HOME")); #endif } std::string configDir(const std::string & application) { #if defined(SYSTEM_WINDOWS) ...
Fix runtime error on Windows
Fix runtime error on Windows
C++
mit
cginternals/cppfs,cginternals/cppfs,cginternals/cppfs,cginternals/cppfs
cbdace6725e1b03b4f412236ace0abea03572f98
src/algotdd/test/test_Queue.cc
src/algotdd/test/test_Queue.cc
#include "Queue.h" #include "gtest/gtest.h" /* The Queue data structure * Public interface: * enqueue() * dequeue() * size() * clear() * begin() * end() : one pass the last item * empty() */ class QueueTest : public testing::Test { protected: // SetUp() & TearDown() are virtual functions from testting::Tes...
#include "Queue.h" #include "gtest/gtest.h" /* The Queue data structure * Public interface: * enqueue() * dequeue() * size() * clear() * begin() * end() : one pass the last item * empty() */ class QueueTest : public testing::Test { protected: // SetUp() & TearDown() are virtual functions from testting::Tes...
Add tests for the clear() and dequeue() methods.
Queue: Add tests for the clear() and dequeue() methods.
C++
mit
nguyentu1602/algorithm-tdd,nguyentu1602/algorithm-tdd,nguyentu1602/algorithm-tdd
72811172bdaa9a3f6fb96179d64afe05c3a77914
src/configuration_testing.cc
src/configuration_testing.cc
#include "configuration.hh" namespace vick { char QUIT_KEY = 0; int TAB_SIZE = 1; void (*PUSH_BACK_CHANGE)(contents&, std::shared_ptr<change>) = 0; std::string DELIMINATORS = ""; bool use_colors() {return true;} void init_conf() {} void add_listeners() {} void add_commands( std::map<std::string, std...
#include "configuration.hh" namespace vick { char QUIT_KEY = 0; int TAB_SIZE = 1; void (*PUSH_BACK_CHANGE)(contents&, std::shared_ptr<change>) = nullptr; std::string DELIMINATORS = ""; bool use_colors() {return true;} void init_conf() {} void add_listeners() {} void add_commands( std::map<std::string, ...
Use ``nullptr`` instead of ``0`` or ``NULL``
Use ``nullptr`` instead of ``0`` or ``NULL``
C++
mpl-2.0
czipperz/vick,czipperz/vick
524369b0c666423662af600e1512eaa15261459b
tests/util/FileUtils.cpp
tests/util/FileUtils.cpp
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Fix build failure of minikin_perftest
Fix build failure of minikin_perftest stat.st_size is off_t not size_t, so need to cast to size_t before compare it. Change-Id: I6b742746fbb9f254701fc91e515c293f93f912c5
C++
bsd-3-clause
aam/engine,mikejurka/engine,aam/engine,jason-simmons/sky_engine,flutter/engine,devoncarew/sky_engine,chinmaygarde/sky_engine,Hixie/sky_engine,jason-simmons/sky_engine,mikejurka/engine,tvolkert/engine,devoncarew/engine,chinmaygarde/flutter_engine,flutter/engine,Hixie/sky_engine,jason-simmons/flutter_engine,flutter/engin...
7a533f74f0674ebd6b5d8de632815f4080ae0db0
src/libANGLE/renderer/d3d/d3d9/ShaderExecutable9.cpp
src/libANGLE/renderer/d3d/d3d9/ShaderExecutable9.cpp
// // Copyright (c) 2012-2013 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // ShaderExecutable9.cpp: Implements a D3D9-specific class to contain shader // executable implementation details. #include "libANGLE...
// // Copyright (c) 2012-2013 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // ShaderExecutable9.cpp: Implements a D3D9-specific class to contain shader // executable implementation details. #include "libANGLE...
Add a few missing newlines at eof.
Add a few missing newlines at eof. Change-Id: Ie4b0811be8fe2d075a8854f1b9d318f7cb747cd1 Reviewed-on: https://chromium-review.googlesource.com/320930 Reviewed-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org> Commit-Queue: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>
C++
bsd-3-clause
MSOpenTech/angle,ppy/angle,MSOpenTech/angle,ecoal95/angle,MSOpenTech/angle,mikolalysenko/angle,MSOpenTech/angle,mikolalysenko/angle,ecoal95/angle,ppy/angle,ecoal95/angle,mikolalysenko/angle,mikolalysenko/angle,domokit/waterfall,ecoal95/angle,domokit/waterfall,ppy/angle,ecoal95/angle,ppy/angle
a9d4d15d915efe703a3b7bc34e896ac910d83577
src/buffers.cpp
src/buffers.cpp
#include "buffers.h" #include "strutil.h" #include "log.h" void processQueue(ByteQueue* queue, bool (*callback)(uint8_t*)) { uint8_t snapshot[QUEUE_MAX_LENGTH(uint8_t)]; queue_snapshot(queue, snapshot); if(callback == NULL) { debug("Callback is NULL (%p) -- unable to handle queue at %p\r\n", ...
#include "buffers.h" #include "strutil.h" #include "log.h" void processQueue(ByteQueue* queue, bool (*callback)(uint8_t*)) { uint8_t snapshot[QUEUE_MAX_LENGTH(uint8_t)]; queue_snapshot(queue, snapshot); if(callback == NULL) { debug("Callback is NULL (%p) -- unable to handle queue at %p\r\n", ...
Put newlines after more debug messages.
Put newlines after more debug messages.
C++
bsd-3-clause
mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware
b5143e40892c576fc458454011ebc256fa8832fe
src/optimisationProblem/benchmark/sphereFunction.cpp
src/optimisationProblem/benchmark/sphereFunction.cpp
#include <optimisationProblem/benchmark/sphereFunction.hpp> #include <cmath> using std::sqrt; using std::pow; #include <armadillo> using arma::norm; namespace hop { SphereFunction::SphereFunction(const unsigned int &numberOfDimensions) : BenchmarkProblem(numberOfDimensions) { } double SphereFunction::getObje...
#include <optimisationProblem/benchmark/sphereFunction.hpp> #include <cmath> using std::sqrt; using std::pow; #include <armadillo> using arma::norm; namespace hop { SphereFunction::SphereFunction(const unsigned int &numberOfDimensions) : BenchmarkProblem(numberOfDimensions) { } double SphereFunction::getObje...
Set sphere function's objective value method to be const (missed this one)
devel: Set sphere function's objective value method to be const (missed this one) Const means in this sense, that they do not adjust any class field, etc. The return value however is not set to be const. Signed-off-by: Sebastian Niemann <c15bc648238b8fcefd2112b1efddcb822e686c46@sra.uni-hannover.de>
C++
mit
SebastianNiemann/Mantella,Mantella/Mantella,Mantella/Mantella,SebastianNiemann/Mantella,SebastianNiemann/Mantella,Mantella/Mantella
1dd8bcaee1dde27182142b0239cc6a48b2ac3ef9
You-DataStore-Tests/datastore_api_test.cpp
You-DataStore-Tests/datastore_api_test.cpp
#include "stdafx.h" #include "CppUnitTest.h" #include "datastore.h" using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert; using DataStore = You::DataStore::DataStore; namespace YouDataStoreTests { TEST_CLASS(DataStoreApiTest) { public: DataStore sut; TEST_METHOD(DataStore_Post_Basic_Test) { bool...
#include "stdafx.h" #include "CppUnitTest.h" #include "datastore.h" using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert; using DataStore = You::DataStore::DataStore; namespace YouDataStoreTests { const std::wstring TASK_ID = L"id"; const std::wstring DESCRIPTION = L"desc"; const std::wstring DEADLI...
Add constants for unit test
Add constants for unit test
C++
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
8dd83cd937fa5a5f8fd0eda670977eb6917d9ad4
test/asan/TestCases/Windows/thread_stack_array_left_oob.cc
test/asan/TestCases/Windows/thread_stack_array_left_oob.cc
// RUN: %clangxx_asan -O0 %s -Fe%t 2>&1 // 'cat' is used below to work around FileCheck buffering bug which makes this // test flaky. FIXME: file an issue. // RUN: not %run %t 2>&1 | cat | FileCheck %s --check-prefix=CHECK #include <windows.h> DWORD WINAPI thread_proc(void *context) { int subscript = -1; volatil...
// RUN: %clangxx_asan -O0 %s -Fe%t 2>&1 // 'cat' is used below to work around FileCheck buffering bug which makes this // test flaky. FIXME: file an issue. // RUN: not %run %t 2>&1 | cat | FileCheck %s #include <windows.h> DWORD WINAPI thread_proc(void *context) { int subscript = -1; volatile char stack_buffer[4...
Remove --check-prefix=CHECK as it's useless
Remove --check-prefix=CHECK as it's useless git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@208803 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