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
4065ea308b0f2906dfe9bf9137272ece9e4558ee
receiver.cpp
receiver.cpp
#include <stdint.h> #include "receiver.h" Receiver::Receiver( uint8_t spiClockPin, uint8_t spiDataPin, uint8_t spiSelectPin ) { this->driver.init(spiClockPin, spiDataPin, spiSelectPin); } void Receiver::setFrequency(uint16_t frequency) { uint16_t flO = (frequency - 479) / 2; uint16_t regN = ...
#include <stdint.h> #include "receiver.h" Receiver::Receiver( uint8_t spiClockPin, uint8_t spiDataPin, uint8_t spiSelectPin ) { this->driver.init(spiClockPin, spiDataPin, spiSelectPin); } void Receiver::setFrequency(uint16_t frequency) { uint16_t fLo = (frequency - 479) / 2; uint16_t regN = ...
Fix broken synth reg A gen
Fix broken synth reg A gen
C++
mit
PropNuts/wizardtracker-hardware,PropNuts/wizardtracker-hardware
d70b43c3838d64fc69cfa45396572082ef06c218
src/ReadData.cpp
src/ReadData.cpp
// Copyright 2015 Alessio Sclocco <a.sclocco@vu.nl> // // 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 la...
// Copyright 2015 Alessio Sclocco <a.sclocco@vu.nl> // // 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 la...
Fix to avoid empty files. Could still be improved, but it is enough for now.
Fix to avoid empty files. Could still be improved, but it is enough for now.
C++
apache-2.0
isazi/AstroData
06909100ec52671de4e9ee905fe3637fe1930d3b
test/CodeGenCXX/PR5050-constructor-conversion.cpp
test/CodeGenCXX/PR5050-constructor-conversion.cpp
// REQUIRES: x86-registered-target,x86-64-registered-target // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -S %s -o %t-64.s // RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -S %s -o %t-32.s // RUN: FileCheck -check-prefix CHECK-LP32 --...
// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \ // RUN: FileCheck %s // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \ // RUN: FileCheck %s struct A { A(const A&, int i1 = 1); }; struct B : A { }; A f(const B &b) { return b; } // CHECK: call void @_ZN1...
Check IR instead of assembly in this test.
Check IR instead of assembly in this test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@196275 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
15f69ce6bfccb236c612dd4f87d96fcc9747406c
ur_robot_driver/src/ur/calibration_checker.cpp
ur_robot_driver/src/ur/calibration_checker.cpp
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- // -- END LICENSE BLOCK ------------------------------------------------ //---------------------------------------------------------------------- /*!\file * * \author ...
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- // -- BEGIN LICENSE BLOCK ---------------------------------------------- // -- END LICENSE BLOCK ------------------------------------------------ //---------------------------------------------------------------------- /*!\file * * \author ...
Add actual documentation link into calibration checker output
Add actual documentation link into calibration checker output The output was generated when we didn't have the final repository available. However, updating the output got lost over time...
C++
apache-2.0
UniversalRobots/Universal_Robots_Client_Library,UniversalRobots/Universal_Robots_Client_Library
0a845929c56d294e4509e5b06a8ad3f2b2cf8369
lib/asan/tests/asan_test_main.cc
lib/asan/tests/asan_test_main.cc
//===-- asan_test_main.cc -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- asan_test_main.cc -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Speed up ASan unit tests by turning off symbolication
[asan] Speed up ASan unit tests by turning off symbolication ASan unit tests don't depend on the symbolizer and they never test its output, but currently they still run it for every crash. This patch simply disables the symbolizer for unit tests, which provides some speed up. On my system (OS X) that's about 1.4x fast...
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
bf765bfb87ad300e77e61ce1fa61af52acc9d6d8
apps/ospExamples/ospExample.cpp
apps/ospExamples/ospExample.cpp
// Copyright 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "GLFWOSPRayWindow.h" #include "example_common.h" using namespace ospray; using rkcommon::make_unique; int main(int argc, const char *argv[]) { bool denoiser = ospLoadModule("denoiser") == OSP_NO_ERROR; initializeOSPRay(argc...
// Copyright 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "GLFWOSPRayWindow.h" #include "example_common.h" using namespace ospray; using rkcommon::make_unique; int main(int argc, const char *argv[]) { initializeOSPRay(argc, argv); bool denoiser = ospLoadModule("denoiser") == OSP_N...
Load the denoiser module after initializing OSPRay
Load the denoiser module after initializing OSPRay
C++
apache-2.0
wilsonCernWq/ospray,wilsonCernWq/ospray,ospray/OSPRay,ospray/OSPRay,ospray/OSPRay,wilsonCernWq/ospray,ospray/OSPRay
95d1d6ad977968888f027e855bd9918ec27443a7
webkit/port/plugins/chromium/PluginDataChromium.cpp
webkit/port/plugins/chromium/PluginDataChromium.cpp
// 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 "config.h" #include "PluginData.h" #include "PluginInfoStore.h" #undef LOG #include "webkit/glue/glue_util.h" #include "webkit/glue/webkit...
// Copyright (c) 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condi...
Fix plugin data refreshing to work again.
Fix plugin data refreshing to work again. R=ojan Review URL: http://codereview.chromium.org/9767 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@5216 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
patrickm/chromium.src,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,littlstar/chromium.src,rogerwang/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,dushu1203/chromium.src,Jonekee/chromium.src,Pluto-t...
a32291bc819f19126715b8cc7cc577fc5dc3a8f2
photoeffects/test/sepia_test.cpp
photoeffects/test/sepia_test.cpp
#include <gtest/gtest.h> #include "photoeffects.hpp" using namespace cv; TEST(photoeffects, SepiaFakeTest) { Mat src(10, 10, CV_8UC1), dst; EXPECT_EQ(0, sepia(src, dst)); } TEST(photoeffects, SepiaFailTest) { Mat src(10, 10, CV_8UC3), dst; EXPECT_EQ(1, sepia(src, dst)); } /* TEST(photoeffects, Se...
#include <gtest/gtest.h> #include "photoeffects.hpp" using namespace cv; TEST(photoeffects, SepiaFakeTest) { Mat src(10, 10, CV_8UC1), dst; EXPECT_EQ(0, sepia(src, dst)); } TEST(photoeffects, SepiaFailTest) { Mat src(10, 10, CV_8UC3), dst; EXPECT_EQ(1, sepia(src, dst)); } TEST(photoeffects, Sepia...
Test was restored, interval [<v>-1,<v>+1] was set for hue, saturation and value.
Test was restored, interval [<v>-1,<v>+1] was set for hue, saturation and value.
C++
bsd-3-clause
ITLab-Vision/itlab-vision,ITLab-Vision/itlab-vision
a625de351c3b129f11faf26330dafdb16f10b855
test/iterator_concepts_ordering.cpp
test/iterator_concepts_ordering.cpp
/** * Test suite for the iterator_concepts_ordering.hpp header. */ #include <duck/detail/iterator_concepts_ordering.hpp> #include <boost/mpl/assert.hpp> BOOST_MPL_ASSERT((duck::is_more_specific_than< duck::BidirectionalIterator, duck::RandomAccessIterator>)); BOOST_MPL_ASS...
/** * Test suite for the iterator_concepts_ordering.hpp header. */ #include <duck/detail/iterator_concepts_ordering.hpp> #include <boost/mpl/assert.hpp> BOOST_MPL_ASSERT((duck::is_more_specific_than< duck::BidirectionalIterator, duck::RandomAccessIterator>)); BOOST_MPL_ASS...
Add more iterator concept ordering tests.
Add more iterator concept ordering tests.
C++
mit
ldionne/duck
88dce14689de6fe5389661bd50716e02f000e7e4
VectorElementRemoval/VectorElementRemoval.cpp
VectorElementRemoval/VectorElementRemoval.cpp
#include <vector> #include <iostream> #include <algorithm> #ifndef REMOVE_VALUES #ifndef CHECK_VALUES #error "define one of REMOVE_VALUES or CHECK_VALUES" #endif #endif #ifdef REMOVE_VALUES #ifdef CHECK_VALUES #error "define either REMOVE_VALUES or CHECK_VALUES" #endif #endif...
#include <vector> #include <iostream> #include <algorithm> #ifndef REMOVE_VALUES #ifndef CHECK_VALUES #error "define one of REMOVE_VALUES or CHECK_VALUES" #endif #endif #ifdef REMOVE_VALUES #ifdef CHECK_VALUES #error "define either REMOVE_VALUES or CHECK_VALUES" #endif #endif...
Check vs Remove - not so not so clear
Check vs Remove - not so not so clear
C++
mit
jbcoe/CppSandbox,hanw/cppsandbox,jbcoe/CppSandbox,jbcoe/CppSandbox,hanw/cppsandbox,hanw/cppsandbox
413d6f068b8c0b1d1d37fc33e4f3b949ef38da72
osquery/tables/networking/arp.cpp
osquery/tables/networking/arp.cpp
// Copyright 2004-present Facebook. All Rights Reserved. #include <stdio.h> #include <string.h> #include "osquery/database.h" namespace osquery { namespace tables { QueryData genArp() { Row r; QueryData results; FILE *arp_cmd_output; char *line; size_t length; char ip[32]; char arp[64]; char iface[...
// Copyright 2004-present Facebook. All Rights Reserved. #include <stdio.h> #include <string.h> #include "osquery/database.h" namespace osquery { namespace tables { QueryData genArp() { Row r; QueryData results; FILE *arp_cmd_output; char *line = NULL; size_t length; int ret; char ip[32]; char arp[...
Change fgetln (osx specific) in favour of getline (both osx and linux)
Change fgetln (osx specific) in favour of getline (both osx and linux)
C++
bsd-3-clause
venkateshdaram434/osquery,mofarrell/osquery,jedi22/osquery,gnawhleinad/osquery,unixboy/osquery,justintime32/osquery,Jericho25/osquery,PickmanSec/osquery,trizt/osquery,arirubinstein/osquery,PickmanSec/osquery,gnawhleinad/osquery,runt18/osquery,runasand/osquery,gnawhleinad/osquery,mwielgoszewski/osquery,daukantas/osquery...
52ea30f699b87ba300ae7e2201082e0fb761c861
trivial_proton.cpp
trivial_proton.cpp
#include <proton/default_container.hpp> #include <proton/messaging_handler.hpp> #include <string> class ExampleHandler: public proton::messaging_handler { std::string url_; // The container has started void on_container_start(proton::container&) override { } // A message can be sent void...
#include <proton/default_container.hpp> #include <proton/messaging_handler.hpp> #include <string> class ExampleHandler: public proton::messaging_handler { std::string url_; // The container has started void on_container_start(proton::container& c) override { } // A message can be sent vo...
Make change parallel to guide
Make change parallel to guide
C++
apache-2.0
astitcher/proton_cpp_trivial
87002e9dec48dc2309b747d7ff3fda1c920cb9fb
views/focus/focus_manager_gtk.cc
views/focus/focus_manager_gtk.cc
// Copyright (c) 2006-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 "views/focus/focus_manager.h" #include "base/logging.h" namespace views { void FocusManager::ClearNativeFocus() { NOTIMPLEMENTED();...
// Copyright (c) 2006-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 "views/focus/focus_manager.h" #include "base/logging.h" namespace views { void FocusManager::ClearNativeFocus() { NOTIMPLEMENTED();...
Fix compilation error in the focus manager by returning NULL from unimplemented function.
Fix compilation error in the focus manager by returning NULL from unimplemented function. Review URL: http://codereview.chromium.org/152001 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@19649 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian...
245e59386ad218b9318ef6115fb7960a0dba4602
Source/Test/Source/TestString.cpp
Source/Test/Source/TestString.cpp
#include "TestCommon.h" USING_NAMESPACE_KAI struct TestString : TestCommon { protected: void AddrequiredClasses() override { Reg().AddClass<bool>(); Reg().AddClass<int>(); Reg().AddClass<String>(); } }; TEST_F(TestString, TestBoolean) { Pointer<String> s0 = Reg().New<String>("...
#include "TestCommon.h" USING_NAMESPACE_KAI struct TestString : TestCommon { protected: void AddrequiredClasses() override { Reg().AddClass<bool>(); Reg().AddClass<int>(); Reg().AddClass<String>(); } }; TEST_F(TestString, TestCompare) { Pointer<String> s0 = Reg().New<String>("...
Remove test that compared an empty string to bool
Remove test that compared an empty string to bool
C++
mit
cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI
dbf2bac7fed179f25956d8783ab619de31131288
main.cpp
main.cpp
#include <QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
#include <QApplication> #include "mainwindow.h" const QString APP_ORGNAME = "PepperNote"; const QString APP_APPNAME = "PepperNote"; int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName(APP_ORGNAME); QCoreApplication::setApplicationName(APP_APPNAME); QApplication a(argc, argv); Mai...
Set org name and app name
Set org name and app name
C++
mit
jslick/PepperNote,jslick/PepperNote
416883b35467d72d500858a088920fc65bb0b033
src/ox/std/test/byteswap_test.cpp
src/ox/std/test/byteswap_test.cpp
/* * Copyright 2015 - 2017 gtalent2@gmail.com * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <map> #include <ox/std/std.hpp> using namespace std; u...
/* * Copyright 2015 - 2017 gtalent2@gmail.com * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <map> #include <string> #include <ox/std/std.hpp> usin...
Add explicit <string> include to byteswap test
Add explicit <string> include to byteswap test
C++
mpl-2.0
wombatant/ox,wombatant/ox,wombatant/memphis,wombatant/wfs,wombatant/wfs
18b878fccdc74cf9871f5e6bf64a337ce0c3007f
runtime/bin/utils_macos.cc
runtime/bin/utils_macos.cc
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <errno.h> #include "bin/utils.h" OSError::OSError() { set_code(errno); SetMessage(strerr...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <errno.h> #include "bin/utils.h" OSError::OSError() : code_(0), message_(NULL) { set_code(...
Fix missing member initialization on Mac OS
Fix missing member initialization on Mac OS TBR=ager@google.com Fix Mac OS build\n\nTBR=ager@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//9694037 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@5400 260f80e4-7a28-3924-810f-c04153c831b5
C++
bsd-3-clause
dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-...
f8f73eddcb80263a9f23df5669fa6ea8857acd77
cpp/src/build_halide_h.cpp
cpp/src/build_halide_h.cpp
#include <cstdlib> #include <stdio.h> #include <string.h> #include <set> #include <string> #include <assert.h> using namespace std; set<string> done; void dump_header(string header) { if (done.find(header) != done.end()) return; done.insert(header); FILE *f = fopen(header.c_str(), "r"); if (f == NU...
#include <cstdlib> #include <stdio.h> #include <string.h> #include <set> #include <string> #include <assert.h> std::set<std::string> done; void dump_header(std::string header) { if (done.find(header) != done.end()) return; done.insert(header); FILE *f = fopen(header.c_str(), "r"); if (f == NULL) { ...
Remove dependency on importing std into global namespace.
Remove dependency on importing std into global namespace. Former-commit-id: 4d4303aea38d8b3039d377b599b2a39ad30604de
C++
mit
Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide
de8a3e47fd77172a67d5f1f6fb8cb33f1fc70ce7
src/libclient/channel.cpp
src/libclient/channel.cpp
#include "channel.h" #include "timing/timingfactory.h" class Channel::Private { public: Private() : id(0) { } int id; QString target; QString certificate; TimingPtr timing; }; Channel::Channel() : d(new Private) { } Channel::Channel(const int &id, const QString &target, const QString...
#include "channel.h" #include "timing/timingfactory.h" class Channel::Private { public: Private() : id(0) { } int id; QString target; QString certificate; TimingPtr timing; }; Channel::Channel() : d(new Private) { } Channel::Channel(const int &id, const QString &target, const QString...
Fix bug when timing is not set inc hannel
Fix bug when timing is not set inc hannel
C++
bsd-3-clause
HSAnet/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,personalunion/glimpse_client-1,Kri-7-q/glimpse_client-1,MKV21/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,Kri-7-q/glimpse_client-1,personalunion/glimpse_client-1,HSAnet/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,MK...
dc0887efb88b5b1f5fde498637396084c5d2f3ff
src/os/android/AndroidDevice.cpp
src/os/android/AndroidDevice.cpp
#include <jni.h> #include "Device.h" namespace crown { //----------------------------------------------------------------------------- extern "C" JNIEXPORT void JNICALL Java_crown_android_CrownLib_init(JNIEnv* env, jobject obj) { device()->init(0, NULL); } //---------------------------------------------------------...
#include <jni.h> #include "Device.h" namespace crown { //----------------------------------------------------------------------------- extern "C" JNIEXPORT void JNICALL Java_crown_android_CrownLib_init(JNIEnv* env, jobject obj) { const char* argv[] = { "crown-android", "--root-path", "", "--dev" }; device()->init(...
Add some CL options for android
Add some CL options for android
C++
mit
taylor001/crown,mikymod/crown,galek/crown,galek/crown,taylor001/crown,mikymod/crown,dbartolini/crown,mikymod/crown,galek/crown,taylor001/crown,galek/crown,mikymod/crown,dbartolini/crown,dbartolini/crown,taylor001/crown,dbartolini/crown
25fde7dd2395fe64b8a2df2796e0c38a13012c43
codehero/rendersystems/GL/indexbufferGL.cpp
codehero/rendersystems/GL/indexbufferGL.cpp
// Copyright (c) 2017 Pierre Fourgeaud // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "rendersystems/GL/indexbufferGL.h" #include <glad/glad.h> namespace CodeHero { IndexBufferGL::IndexBufferGL() { glGenBuffers(1, &_GetGPUObjectHandle()->intHandle); }...
// Copyright (c) 2017 Pierre Fourgeaud // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "rendersystems/GL/indexbufferGL.h" #include <glad/glad.h> namespace CodeHero { IndexBufferGL::IndexBufferGL() { glGenBuffers(1, &_GetGPUObjectHandle()->intHandle); }...
Fix wrong size for index buffer
Fix wrong size for index buffer
C++
mit
pierrefourgeaud/CodeHero
e3b339141e1a171fd49d4f7e9c54b6db97a17034
source/tools/glkernel-cli/main.cpp
source/tools/glkernel-cli/main.cpp
int main(int argc, char* argv[]) { }
#include <iostream> #include <string> #include <cppassist/cmdline/ArgumentParser.h> int main(int argc, char* argv[]) { cppassist::ArgumentParser argParser; argParser.parse(argc, argv); auto inFileName = argParser.value("--input"); auto outFileName = argParser.value("--output"); auto outFileType = outFile...
Add basic command line flag handling using cppassist/cmdline
Add basic command line flag handling using cppassist/cmdline
C++
mit
cginternals/glkernel,cginternals/glkernel,cginternals/glkernel,cginternals/glkernel,cginternals/glkernel
05f45d8598743c0bc796489df0e1896ddfbe7db2
src/mainwindow.cpp
src/mainwindow.cpp
#include "headers/mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); /*************************************************************************** * Create and set the settings button on the top left o...
#include "headers/mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); /*************************************************************************** * Create and set the settings button on the top left o...
Set TopLeft button text as QtChronos
Set TopLeft button text as QtChronos
C++
mit
DexterF/QtChronos
944b5623c3e658f5ceabf1349cdb7371cb2387bb
test/CodeGenCXX/atomicinit.cpp
test/CodeGenCXX/atomicinit.cpp
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-apple-darwin9 | FileCheck %s struct A { _Atomic(int) i; A(int j); void v(int j); }; // Storing to atomic values should be atomic // CHECK: store atomic i32 void A::v(int j) { i = j; } // Initialising atomic values should not be atomic // CHECK-NOT: store atomic ...
// RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-apple-darwin9 | FileCheck %s struct A { _Atomic(int) i; A(int j); void v(int j); }; // Storing to atomic values should be atomic // CHECK: store atomic i32 void A::v(int j) { i = j; } // Initialising atomic values should not be atomic // CHECK-NOT: store atomic ...
Update recently-added test to use new __c11_ form of atomic builtins.
Update recently-added test to use new __c11_ form of atomic builtins. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@154514 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
b23524db34d156fd09d045ad4de5d804a82ce54c
lib/sanitizer_common/tests/sanitizer_vector_test.cc
lib/sanitizer_common/tests/sanitizer_vector_test.cc
//===-- sanitizer_vector_test.cc ------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- sanitizer_vector_test.cc ------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Replace cast with unsigned literals in tests
[sanitizer] Replace cast with unsigned literals in tests git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@330048 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
7605e250dfdf5b90a427a76ee8406db8bb4bb403
test/cpp/bounds_inference/test.cpp
test/cpp/bounds_inference/test.cpp
#include <Halide.h> #include <sys/time.h> using namespace Halide; double currentTime() { timeval t; gettimeofday(&t, NULL); return t.tv_sec * 1000.0 + t.tv_usec / 1000.0f; } int main(int argc, char **argv) { Func f, g, h; Var x, y; h(x) = x; g(x) = h(x-1) + h(x+1); f(x, y) = (g(x-1)...
#include <Halide.h> using namespace Halide; int main(int argc, char **argv) { Func f, g, h; Var x, y; h(x) = x; g(x) = h(x-1) + h(x+1); f(x, y) = (g(x-1) + g(x+1)) + y; h.root(); g.root(); if (use_gpu()) { f.cudaTile(x, y, 16, 16); g.cudaTile(x, 128); h.cudaT...
Clear spurious timing code from bounds_interence
Clear spurious timing code from bounds_interence Former-commit-id: 156b142583ceeee9c10e34aff5f8da769b38a2d4
C++
mit
darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide
257a063dae7f789b47fbaa350747cc1203d46384
test/pp-trace/pp-trace-modules.cpp
test/pp-trace/pp-trace-modules.cpp
// RUN: rm -rf %t // RUN: pp-trace -ignore FileChanged,MacroDefined %s -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s // CHECK: --- @import Level1A; // CHECK-NEXT: - Callback: moduleImport // CHECK-NEXT: ImportLoc...
// RUN: rm -rf %t // RUN: pp-trace -ignore FileChanged,MacroDefined %s -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s // REQUIRES: x86-registered-target // CHECK: --- @import Level1A; // CHECK-NEXT: - Callback: modul...
Add a missing target requirement.
Add a missing target requirement. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@230430 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
e014fb33b86440589ad4afff3ce275dc81af8636
libspaghetti/source/logger.cc
libspaghetti/source/logger.cc
#include "spaghetti/logger.h" namespace spaghetti::log { Logger g_loggerConsole{}; Logger g_loggerFile{}; void init() { if (!g_loggerConsole) g_loggerConsole = spdlog::stdout_color_mt("console"); if (!g_loggerFile) g_loggerFile = spdlog::basic_logger_mt("file", "spaghetti.log"); spdlog::set_pattern("[%Y.%m.%d...
#include "spaghetti/logger.h" namespace spaghetti::log { Logger g_loggerConsole{}; Logger g_loggerFile{}; void init() { if (!g_loggerConsole) g_loggerConsole = spdlog::stdout_color_mt("console"); if (!g_loggerFile) g_loggerFile = spdlog::basic_logger_mt("file", "spaghetti.log"); spdlog::set_pattern("[%Y.%m.%d...
Set console log level to debug
Set console log level to debug
C++
mit
aljen/spaghetti,aljen/spaghetti
2e8a7ae15ea18f8c879b1fa2d58a5b54b6642b84
src/lib/StringInStorageBuffer.cpp
src/lib/StringInStorageBuffer.cpp
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * This file is part of the libone project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.or...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * This file is part of the libone project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.or...
Fix some more debugging fallout
Fix some more debugging fallout
C++
mpl-2.0
tshikaboom/libone,tshikaboom/libone,tshikaboom/libone
73c66dcea42cc142849f90415ae67c05bc55ff27
src/ui/QGCTCPLinkConfiguration.cc
src/ui/QGCTCPLinkConfiguration.cc
#include <QInputDialog> #include "QGCTCPLinkConfiguration.h" #include "ui_QGCTCPLinkConfiguration.h" #include <stdint.h> QGCTCPLinkConfiguration::QGCTCPLinkConfiguration(TCPLink* link, QWidget *parent) : QWidget(parent), link(link), ui(new Ui::QGCTCPLinkConfiguration) { ui->setupUi(this); uint16_t...
#include <QInputDialog> #include "QGCTCPLinkConfiguration.h" #include "ui_QGCTCPLinkConfiguration.h" #include <stdint.h> QGCTCPLinkConfiguration::QGCTCPLinkConfiguration(TCPLink* link, QWidget *parent) : QWidget(parent), link(link), ui(new Ui::QGCTCPLinkConfiguration) { ui->setupUi(this); uint16_t...
Fix basic issue with connecting using TCP
Comms: Fix basic issue with connecting using TCP
C++
agpl-3.0
xros/apm_planner,diydrones/apm_planner,LIKAIMO/apm_planner,chen0510566/apm_planner,LIKAIMO/apm_planner,hejunbok/apm_planner,381426068/apm_planner,gpaes/apm_planner,mirkix/apm_planner,mirkix/apm_planner,sutherlandm/apm_planner,dcarpy/apm_planner,LIKAIMO/apm_planner,sutherlandm/apm_planner,xros/apm_planner,LIKAIMO/apm_pl...
2d1ecbab4243b85240386c63202c8d776c1563e6
manager/authdialog.cpp
manager/authdialog.cpp
#include "authdialog.h" #include <qconnman/manager.h> #include <qconnman/agent.h> #include <QDebug> AuthDialog::AuthDialog(Manager *manager, QWidget *parent): QDialog(parent), m_manager(manager) { ui.setupUi(this); connect(ui.showPassword, SIGNAL(toggled(bool)), SLOT(showPassword(bool))); } int Aut...
#include "authdialog.h" #include <qconnman/manager.h> #include <qconnman/agent.h> #include <QDebug> AuthDialog::AuthDialog(Manager *manager, QWidget *parent): QDialog(parent), m_manager(manager) { ui.setupUi(this); connect(ui.showPassword, SIGNAL(toggled(bool)), SLOT(showPassword(bool))); } int Aut...
Set focus on password field
AuthDialog: Set focus on password field
C++
lgpl-2.1
OSSystems/qconnman-ui,OSSystems/qconnman-ui
7a260ac2a6aa260ed91ceae49bea01c3cdee3d4c
test/unit/lel/operation/unary.cpp
test/unit/lel/operation/unary.cpp
// Copyright 2017, Dawid Kurek, <dawikur@gmail.com> #include "lel/operation/unary.hpp" #include "gtest/gtest.h" TEST(unary_test, logical_not_can_be_used_in_constexpr) { std::logical_not<> logical_not; static_assert(logical_not(false), ""); } TEST(unary_test, indirection_can_be_used_in_constexpr) { LeL::Opera...
// Copyright 2017, Dawid Kurek, <dawikur@gmail.com> #include "lel/operation/unary.hpp" #include "gtest/gtest.h" TEST(unary_test, logical_not_can_be_used_in_constexpr) { std::logical_not<> logical_not; static_assert(logical_not(false), ""); }
Remove problemanic on VS test
Remove problemanic on VS test
C++
mit
dawikur/lel,dawikur/lel,dawikur/lel
94ef5e9cb718bac93dcb0229e19f5fcb554ce6b3
source/examples/demo_textured/main.cpp
source/examples/demo_textured/main.cpp
#include <iostream> #include <texturebased/polarmapped.h> int main(int /*argc*/, char* /*argv*/[]) { // TODO: glfw return 0; }
#include <iostream> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <glbinding/Binding.h> #include <glbinding/gl/gl.h> #include <globjects/globjects.h> using namespace gl; void error(int errnum, const char * errmsg) { std::cerr << errnum << ": " << errmsg << std::endl; } void key_callback(GLFWwind...
Add glfw window to texture demo
Add glfw window to texture demo
C++
mit
cginternals/glhimmel,cginternals/glhimmel,cginternals/glhimmel,cginternals/glhimmel
ca3e4ecd9cd44a860e841b52c2f67ab1be5364c9
ImWindowDX11/ImwWindowManagerDX11.cpp
ImWindowDX11/ImwWindowManagerDX11.cpp
#include "ImwWindowManagerDX11.h" #include "ImwPlatformWindowDX11.h" #include <imgui_impl_dx11.h> using namespace ImWindow; ImwWindowManagerDX11::ImwWindowManagerDX11() { ImwPlatformWindowDX11::InitDX11(); } ImwWindowManagerDX11::~ImwWindowManagerDX11() { ImwPlatformWindowDX11::ShutdownDX11(); //ImGui_ImplDX11_S...
#include "ImwWindowManagerDX11.h" #include "ImwPlatformWindowDX11.h" #include <imgui_impl_dx11.h> using namespace ImWindow; ImwWindowManagerDX11::ImwWindowManagerDX11() { ImwPlatformWindowDX11::InitDX11(); } ImwWindowManagerDX11::~ImwWindowManagerDX11() { ImwPlatformWindowDX11::ShutdownDX11(); //ImGui_ImplDX11_S...
Add sleep of 16 milliseconds for reduce framerate (High framerate make than my GPU do sharp creepy sound)
Add sleep of 16 milliseconds for reduce framerate (High framerate make than my GPU do sharp creepy sound)
C++
mit
thennequin/ImWindow,RobertoMalatesta/ImWindow,RobertoMalatesta/ImWindow,thennequin/ImWindow,thennequin/ImWindow
73a0835a6ca6be382ea2e280a612564e393c52bc
server/types/RecorderEndPoint.cpp
server/types/RecorderEndPoint.cpp
/* * RecorderEndPoint.cpp - Kurento Media Server * * Copyright (C) 2013 Kurento * Contact: Miguel París Díaz <mparisdiaz@gmail.com> * Contact: José Antonio Santos Cadenas <santoscadenas@kurento.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General ...
/* * RecorderEndPoint.cpp - Kurento Media Server * * Copyright (C) 2013 Kurento * Contact: Miguel París Díaz <mparisdiaz@gmail.com> * Contact: José Antonio Santos Cadenas <santoscadenas@kurento.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General ...
Create element for recorder endpoint
Create element for recorder endpoint Change-Id: Ife20bb15b855e1d201450c51af86a003f7331abc
C++
lgpl-2.1
todotobe1/kurento-media-server,Kurento/kurento-media-server,shelsonjava/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-media-server,TribeMedia/kurento-media-server,Kurento/kurento-media-server,mparis/kurento-media-server,shelsonjava/kurento-media-server,lulufei/kurento-media-server,todotobe1/kurent...
26981b31152a31c2c9102e41b9bee9d28cfe0caf
src/common/util.cpp
src/common/util.cpp
// This file is distributed under the MIT license. // See the LICENSE file for details. #include <visionaray/detail/macros.h> #if defined(VSNRAY_OS_WIN32) #include <windows.h> #else #include <unistd.h> #endif #include "util.h" unsigned visionaray::get_num_processors() { #if defined(VSNRAY_OS_WIN32) SYSTEM_INFO...
// This file is distributed under the MIT license. // See the LICENSE file for details. #include <visionaray/detail/macros.h> #include <visionaray/detail/platform.h> #if defined(VSNRAY_OS_WIN32) #include <windows.h> #else #include <unistd.h> #endif #include "util.h" unsigned visionaray::get_num_processors() { #if d...
Include platform header before determining OS
Include platform header before determining OS
C++
mit
tu500/visionaray,ukoeln-vis/ctpperf,szellmann/visionaray,tu500/visionaray,szellmann/visionaray,ukoeln-vis/ctpperf
e4b6b7cc3b3c4562a9fad2e5c891c6453e0f9092
example/main.cpp
example/main.cpp
#include <iostream> #include "floaxie/dtoa.h" using namespace std; using namespace floaxie; int main(int, char**) { double pi = 0.1; char buffer[128]; for (int i = 0; i < 128; ++i) buffer[i] = 0; dtoa(pi, buffer); std::cout << "pi: " << pi << ", buffer: " << buffer << std::endl; return 0; }
#include <iostream> #include "floaxie/dtoa.h" using namespace std; using namespace floaxie; int main(int, char**) { double pi = 0.1; char buffer[128]; dtoa(pi, buffer); std::cout << "pi: " << pi << ", buffer: " << buffer << std::endl; return 0; }
Remove unnecessary zeroing out of output buffer
Remove unnecessary zeroing out of output buffer
C++
apache-2.0
aclex/floaxie,aclex/floaxie
3b31c766d953435a667bd0969e7b953d2ec94b67
cpp/src/libxtreemfs/interrupt.cpp
cpp/src/libxtreemfs/interrupt.cpp
/* * Copyright (c) 2012 by Matthias Noack, Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ #include "libxtreemfs/interrupt.h" #include <boost/date_time.hpp> namespace xtreemfs { Interruptibilizer::query_function Interruptibilizer::f_ = NULL; void Interruptibi...
/* * Copyright (c) 2012 by Matthias Noack, Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ #include "libxtreemfs/interrupt.h" #include <boost/date_time/posix_time/posix_time_types.hpp> namespace xtreemfs { Interruptibilizer::query_function Interruptibilizer::f_ = ...
Fix compilation error by including a more specific header file.
client: Fix compilation error by including a more specific header file. The compilation error was: [ 5%] Building CXX object CMakeFiles/xtreemfs.dir/src/libxtreemfs/interrupt.cpp.o In file included from /usr/include/boost/date_time/local_time/tz_database.hpp:14, from /usr/include/boost/date_time/loca...
C++
bsd-3-clause
rbaerzib/xtreemfs,jswrenn/xtreemfs,kleingeist/xtreemfs,jswrenn/xtreemfs,harnesscloud/xtreemfs,rbaerzib/xtreemfs,harnesscloud/xtreemfs,kleingeist/xtreemfs,kleingeist/xtreemfs,harnesscloud/xtreemfs,kleingeist/xtreemfs,harnesscloud/xtreemfs,rbaerzib/xtreemfs,jswrenn/xtreemfs,harnesscloud/xtreemfs,rbaerzib/xtreemfs,stanik1...
9748406270ded38f1673a4599c6fec9a7b8a9b67
src/lib/entropy/getentropy/getentropy.cpp
src/lib/entropy/getentropy/getentropy.cpp
/* * System Call getentropy(2) * (C) 2017 Alexander Bluhm (genua GmbH) * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/getentropy.h> #if defined(BOTAN_TARGET_OS_IS_OPENBSD) || defined(BOTAN_TARGET_OS_IS_FREEBSD) || defined(BOTAN_TARGET_OS_IS_SOLARIS) #include <u...
/* * System Call getentropy(2) * (C) 2017 Alexander Bluhm (genua GmbH) * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/getentropy.h> #if defined(BOTAN_TARGET_OS_IS_OPENBSD) || defined(BOTAN_TARGET_OS_IS_FREEBSD) || defined(BOTAN_TARGET_OS_IS_SOLARIS) #include <u...
Fix compilation issue on older mac (< 10.12)
Fix compilation issue on older mac (< 10.12) Error was: In file included from src/lib/entropy/getentropy/getentropy.cpp:13: /usr/include/sys/random.h:37:32: error: unknown type name 'u_int' void read_random(void* buffer, u_int numBytes); ^ /usr/include/sys/random.h:38:33: error: unknown ...
C++
bsd-2-clause
randombit/botan,randombit/botan,randombit/botan,randombit/botan,randombit/botan
dcc8d7f4de0d38dca53311fcb3398040b98b3916
src/utils/directory.cc
src/utils/directory.cc
// // src/utils/directory.cc // tbd // // Created by inoahdev on 10/17/17. // Copyright © 2017 inoahdev. All rights reserved. // #include "directory.h" namespace utils { directory::open_result directory::open(const char *path) { dir = opendir(path); if (!dir) { return open_result::...
// // src/utils/directory.cc // tbd // // Created by inoahdev on 10/17/17. // Copyright © 2017 inoahdev. All rights reserved. // #include "directory.h" namespace utils { directory::open_result directory::open(const char *path) { this->path = path; this->dir = opendir(path); if (!dir) ...
Fix bug where directories would fail to open when recursing
Fix bug where directories would fail to open when recursing
C++
mit
inoahdev/tbd,inoahdev/tbd
3195fb3fe2d11a07f0cea67a6cb2fe3c74579a5b
robobo.cpp
robobo.cpp
#include "robobo.h" #include "configuration.cpp" #include "servercapab.cpp" #include "socket.cpp" std::string input, command, currentNick; std::vector<std::string> inputParams; bool registered; int main(int argc, char** argv) { ConfigReader config; Socket bot_socket (config.getServer(), config.getPort()); bot_sock...
#include "robobo.h" #include "configuration.cpp" #include "servercapab.cpp" #include "socket.cpp" std::string input, command, currentNick; std::vector<std::string> inputParams; bool registered; int main(int argc, char** argv) { ConfigReader config; Socket bot_socket (config.getServer(), config.getPort()); bot_sock...
Remove a line included to test the parser.
Remove a line included to test the parser.
C++
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
90d81c96746c7a38e1b55e9b6c3068c7ba756b7f
dm/DMRecordTask.cpp
dm/DMRecordTask.cpp
#include "DMRecordTask.h" #include "DMUtil.h" #include "DMWriteTask.h" #include "SkCommandLineFlags.h" #include "SkRecording.h" DEFINE_bool(skr, false, "If true, run SKR tests."); namespace DM { RecordTask::RecordTask(const Task& parent, skiagm::GM* gm, SkBitmap reference) : CpuTask(parent) , fName(UnderJoin...
#include "DMRecordTask.h" #include "DMUtil.h" #include "DMWriteTask.h" #include "SkCommandLineFlags.h" #include "SkRecording.h" DEFINE_bool(skr, false, "If true, run SKR tests."); namespace DM { RecordTask::RecordTask(const Task& parent, skiagm::GM* gm, SkBitmap reference) : CpuTask(parent) , fName(UnderJoin...
Apply initial transform in --skr mode.
DM: Apply initial transform in --skr mode. BUG=skia:2378 R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/263853005 git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@14521 2bbb7eff-a529-9590-31e7-b0007b416f81
C++
bsd-3-clause
Hikari-no-Tenshi/android_external_skia,F-AOSP/platform_external_skia,CyanogenMod/android_external_chromium_org_third_party_skia,Pure-Aosp/android_external_skia,nox/skia,Fusion-Rom/android_external_skia,TeamTwisted/external_skia,MinimalOS-AOSP/platform_external_skia,AOSP-YU/platform_external_skia,invisiblek/android_exte...
3e75a75ef2d723f9198105a85a8d073b9d273ced
src/singleton.cpp
src/singleton.cpp
// http://www.nuonsoft.com/blog/2017/08/10/implementing-a-thread-safe-singleton-with-c11-using-magic-statics/ // http://blog.mbedded.ninja/programming/languages/c-plus-plus/magic-statics #include <iostream> class CSingleton final { public: static CSingleton& GetInstance(); int getValue() const { return mValue; }...
// http://www.nuonsoft.com/blog/2017/08/10/implementing-a-thread-safe-singleton-with-c11-using-magic-statics/ // http://blog.mbedded.ninja/programming/languages/c-plus-plus/magic-statics #include <iostream> class CSingleton final { public: static CSingleton& GetInstance() { static CSingleton instance; retu...
Make deleted special member functions private.
Make deleted special member functions private.
C++
mit
mpoullet/cpp-snippets,mpoullet/cpp-snippets
fbe936cab82c50b4734b81e9e90767bf050bbb45
examples/hashtest/hashtest.cpp
examples/hashtest/hashtest.cpp
#include"qca.h" #include<stdio.h> int main(int argc, char **argv) { QCA::Initializer init; QCString cs = (argc >= 2) ? argv[1] : "hello"; if( !QCA::isSupported("sha1") ) printf("SHA1 not supported!\n"); else { QCA::SHA1 sha1Hash; QString result = sha1Hash.hashToString(cs); printf("sha1(\"%s\") = [%s]\n", ...
#include"qca.h" #include<stdio.h> int main(int argc, char **argv) { QCA::Initializer init; QCString cs = (argc >= 2) ? argv[1] : "hello"; if( !QCA::isSupported("sha1") ) printf("SHA1 not supported!\n"); else { QString result = QCA::SHA1().hashToString(cs); printf("sha1(\"%s\") = [%s]\n", cs.data(), result.l...
Update to use static versions.
Update to use static versions. svn path=/trunk/kdesupport/qca/; revision=359801
C++
lgpl-2.1
Esf-Software/qca,highfidelity/qca,JoshuaKolden/qca,JoshuaKolden/qca,oktavarium/qca,KDE/qca,highfidelity/qca,JoshuaKolden/qca,sladage/qca,karolherbst/qca,Esf-Software/qca,karolherbst/qca,JoshuaKolden/qca,KDE/qca,Esf-Software/qca,highfidelity/qca,Esf-Software/qca,highfidelity/qca,Bjoe/qca,sladage/qca,KDE/qca,karolherbst/...
479e28ef9df3455c94eeb73013ccb01604ef5d0f
tests/StringToIntegerTest.cpp
tests/StringToIntegerTest.cpp
#include "catch.hpp" #include "StringToInteger.hpp" TEST_CASE("String To Integer") { Solution s; SECTION("Normal tests") { REQUIRE(s.myAtoi("1") == 1); } SECTION("Normal tests 2") { REQUIRE(s.myAtoi(" 010") == 10); } }
#include "catch.hpp" #include "StringToInteger.hpp" TEST_CASE("String To Integer") { Solution s; SECTION("Normal tests") { REQUIRE(s.myAtoi("1") == 1); REQUIRE(s.myAtoi("378") == 378); REQUIRE(s.myAtoi("-239") == -239); REQUIRE(s.myAtoi("+832") == 832); } SECTION("Boundary tests") { REQU...
Update Problem 8 test case
Update Problem 8 test case
C++
mit
yanzhe-chen/leetcode
9e493b71046b1a2760c1e34dbd7835e643435d24
src/lib/entity_test.cc
src/lib/entity_test.cc
#include "component.h" #include "entity.h" #include "gtest/gtest.h" /* class TestC : public aronnax::Component { public: void update(aronnax::Entity &entity, const uint32_t dt) { return; } std::string getType() { return "TestComponent"; } }; class EntityTest : public testing::T...
#include "component.h" #include "entity.h" #include "gtest/gtest.h" /* class TestC : public aronnax::Component { public: void update(aronnax::Entity &entity, const uint32_t dt) { return; } std::string getType() { return "TestComponent"; } }; */ class EntityTest : public testing...
Change entity test to use fixtures
Change entity test to use fixtures This allows me to reuse thes same data structures in teh tests.
C++
mit
msecret/space-gun
065d979c6eb64a4883a5519fae2a2d957f2b6801
src/orderinginfo.cc
src/orderinginfo.cc
#include "orderinginfo.h" #include "defs.h" #include "eval.h" #include <cstring> OrderingInfo::OrderingInfo(const TranspTable* tt) { _tt = tt; _ply = 0; std::memset(_history, 0, sizeof(_history)); } void OrderingInfo::incrementHistory(Color color, int from, int to, int depth) { _history[color][from][to] += de...
#include "orderinginfo.h" #include "defs.h" #include "eval.h" #include <cstring> OrderingInfo::OrderingInfo(const TranspTable* tt) { _tt = tt; _ply = 0; std::memset(_history, 0, sizeof(_history)); } void OrderingInfo::incrementHistory(Color color, int from, int to, int depth) { _history[color][from][to] += de...
Fix incorrect operator in OrderingInfo
Fix incorrect operator in OrderingInfo XOR is not the same thing as exponentiation
C++
mit
GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue
2279d4833447b5763c48a9c1be403d179e50ccac
utils/unique_alias.cpp
utils/unique_alias.cpp
#include <utils/unique_alias.hpp> #include <atomic> #include <chrono> #include <sstream> static std::atomic<int> __counter(0); utils::unique_alias::unique_alias() { std::ostringstream s; s << "benchmarks-" << std::chrono::duration_cast<std::chrono::seconds>( std::chrono::steady_clock::now...
#include <utils/unique_alias.hpp> #include <atomic> #include <chrono> #include <sstream> static std::atomic<int> __counter(0); static const char __base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; utils::unique_alias::unique_alias() { std::ostringstream s; s << "benchmarks-" ...
Use proper base 64 encoding for the watermark
Use proper base 64 encoding for the watermark
C++
bsd-2-clause
bureau14/qdb-benchmark,bureau14/qdb-benchmark,bureau14/qdb-benchmark,bureau14/qdb-benchmark
45cb83d183288fbe2b238438f9ff58e5c2e2fae0
base/utf8_string.cpp
base/utf8_string.cpp
#include "utf8_string.hpp" #include "../std/iterator.hpp" #include "../3party/utfcpp/source/utf8/unchecked.h" namespace utf8_string { bool Split(string const & str, vector<string> & out, IsDelimiterFuncT f) { out.clear(); string::const_iterator curr = str.begin(); string::const_iterator end = str.end...
#include "utf8_string.hpp" #include "../std/iterator.hpp" #include "../3party/utfcpp/source/utf8/unchecked.h" namespace utf8_string { bool Split(string const & str, vector<string> & out, IsDelimiterFuncT f) { out.clear(); string::const_iterator curr = str.begin(); string::const_iterator end = str.end...
Add '<', '=', '>' as search delimeters.
Add '<', '=', '>' as search delimeters.
C++
apache-2.0
alexzatsepin/omim,65apps/omim,sidorov-panda/omim,igrechuhin/omim,alexzatsepin/omim,Volcanoscar/omim,ygorshenin/omim,65apps/omim,matsprea/omim,edl00k/omim,mpimenov/omim,jam891/omim,rokuz/omim,mapsme/omim,augmify/omim,syershov/omim,jam891/omim,Transtech/omim,lydonchandra/omim,goblinr/omim,Zverik/omim,darina/omim,darina/o...
b2b2bb28bb85a192095c6e5ae0caa5f6fdec5ff8
src/autowiring/test/ObservableTest.cpp
src/autowiring/test/ObservableTest.cpp
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/observable.h> class ObservableTest: public testing::Test {}; TEST_F(ObservableTest, SimpleAssignmentCheck) { autowiring::observable<int> ob; bool hit = false; ob.onChanged += [&hit] { hit = true; }; o...
// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autowiring/observable.h> class ObservableTest: public testing::Test {}; TEST_F(ObservableTest, SimpleAssignmentCheck) { autowiring::observable<int> ob; bool hit = false; ob.onChanged += [&hit] { hit = true; }; o...
Add a test case for operator *
Add a test case for operator *
C++
apache-2.0
codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring
113a3b317caa7ae36fdedbcdee8a624a1b21e8c3
src/SVGImage.cpp
src/SVGImage.cpp
#include "SVGImage.h" #define NANOSVG_IMPLEMENTATION #include <nanosvg.h> SVGImage::SVGImage() : _nanoSvgImage(nullptr) { } SVGImage::SVGImage(const boost::filesystem::path &path) : SVGImage() { open(path); } SVGImage::~SVGImage() { if (_nanoSvgImage) { ::nsvgDelete(_nanoSvgImage); } _nanoSvgImag...
#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...
Add some headers so we can use NanoVG to render NanoSVG.
Add some headers so we can use NanoVG to render NanoSVG.
C++
bsd-3-clause
dublet/KARR,dublet/KARR,dublet/KARR
773cb634a107668dd3ec4fc47689b1637fe28386
source/cppfs/source/FileEventHandler.cpp
source/cppfs/source/FileEventHandler.cpp
#include <cppfs/FileEventHandler.h> #include <cppfs/FileHandle.h> namespace cppfs { FileEventHandler::FileEventHandler() { } FileEventHandler::~FileEventHandler() { } void FileEventHandler::onFileEvent(FileHandle & fh, FileEvent event) { if (event & FileCreated) { onFileCreated(fh); } else if (e...
#include <cppfs/FileEventHandler.h> #include <cppfs/FileHandle.h> namespace cppfs { FileEventHandler::FileEventHandler() { } FileEventHandler::~FileEventHandler() { } void FileEventHandler::onFileEvent(FileHandle & fh, FileEvent event) { switch (event) { case FileCreated: onFileCreated(f...
Remove bit field logic where not necessary
Remove bit field logic where not necessary
C++
mit
cginternals/cppfs,cginternals/cppfs,cginternals/cppfs,cginternals/cppfs
556b7f04a0426a5e748aabe1282a1d9045c71156
FEM/PDEs/user.cpp
FEM/PDEs/user.cpp
#include "LinearEllipticPDE.hpp" double f1(Point const & point) { return point.x() * point.x(); } double f2(Point const & point) { return point.y() * point.y(); } int main() { // laplace ConstTensor I(3, 0.); I(0, 0) = I(1, 1) = I(2, 2) = 1.; LinearEllipticPDE LaplacesEquation3D(I, 0., zeroFunc); std::cout <<...
#include "LinearEllipticPDE.hpp" #include "BC.hpp" double g(Point const & point) { // u = g on Г return point.x() * point.y(); } int main() { // Laplace's eqn on the plane ConstTensor I(2, 0.); I(0, 0) = I(1, 1) = 1.; LinearEllipticPDE LaplacesEquation2D(I, 0., zeroFunc); BC myBC(g); // simple Dirichlet proble...
Add example of creating BC for Laplaces eqn
Add example of creating BC for Laplaces eqn
C++
mit
frfly/Solving-elliptic-equation-using-FEM,frfly/CATSPDEs,CATSPDEs/CATSPDEs
7dc394773390abe56a0024f1f113a6f644c8e083
engine/src/level.cpp
engine/src/level.cpp
#include "level.hpp" using namespace engine; void Level::load(){ for(auto game_object : objects){ std::cout << "Loading " << game_object->name << std::endl; game_object->load(); for(auto hit : game_object->get_hitboxes()){ hit->initialize(); } } } void Level::free(){ for(auto game_object ...
#include "level.hpp" #include <iostream> using namespace engine; void Level::load(){ for(auto game_object : objects){ std::cout << "Loading " << game_object->name << std::endl; game_object->load(); for(auto hit : game_object->get_hitboxes()){ hit->initialize(); } } } void Level::free(){ f...
Fix wrong animation of boss arm
Fix wrong animation of boss arm Signed-off-by: Matheus Miranda <6faf3a473c1bf7863f2eb74400dd6142ec07131e@gmail.com>
C++
mit
mind-scape/mindscape,mind-scape/mindscape
ddeb405be818ebae75739f22a420aa95a49eb683
NullGame.cpp
NullGame.cpp
// // Copyright (C) Alexandr Vorontsov. 2017 // Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). // #include "stdafx.h" #include <Kioto.h> #include <windows.h> void OnEngineInited() { Kioto::Scene* scene = new Kioto::Scene(); Kioto::SetScene(scene); OutputDebu...
// // Copyright (C) Alexandr Vorontsov. 2017 // Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). // #include "stdafx.h" #include <Kioto.h> #include <windows.h> class TestScene : public Kioto::Scene { public: ~TestScene() { } }; class TestSceneSystem : public ...
Add test scene with test scene system.
Add test scene with test scene system.
C++
mit
nameless323/NullGame,nameless323/NullGame
e7d627edb29d3bd2bf1d08d6e972aec4d17dbf06
SFInputHandler.cpp
SFInputHandler.cpp
#include "InputHandler.h" #include "SFML/Window.hpp" #include "SFData.h" Player::Direction InputHandler::LastInput; int InputHandler::InputTime; bool InputHandler::WindowClosed = false; void InputHandler::PollEvents() { sf::Event event; while (SFData::Window->pollEvent(event)) { switch (event.type) { ...
#include "InputHandler.h" #include "SFML/Window.hpp" #include "SFData.h" Player::Direction InputHandler::LastInput; int InputHandler::InputTime; bool InputHandler::WindowClosed = false; void InputHandler::PollEvents() { sf::Event event; while (SFData::Window->pollEvent(event)) { switch (event.type) { ...
Allow repeated input to reset frame counter
Allow repeated input to reset frame counter
C++
mit
a-roy/pacman-mp
5f641debe49f2384003c2e1a8b675c292077831f
content/test/unittest_test_suite.cc
content/test/unittest_test_suite.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/test/unittest_test_suite.h" #include "base/logging.h" #include "base/test/test_suite.h" #include "third_party/WebKit/Source/WebKit/...
// 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/test/unittest_test_suite.h" #include "base/logging.h" #include "base/test/test_suite.h" #include "third_party/WebKit/Source/WebKit/...
Implement required tracing API for UnitTestWebKitPlatformSupport.
Implement required tracing API for UnitTestWebKitPlatformSupport. Review URL: https://chromiumcodereview.appspot.com/9325048 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@120632 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/c...
2100969950b216e60abd7faecc6890024eb9545f
vm/gc/managed.cpp
vm/gc/managed.cpp
#include "vm/vm.hpp" #include "util/thread.hpp" #include "gc/managed.hpp" #include "shared_state.hpp" namespace rubinius { thread::ThreadData<ManagedThread*> _current_thread; ManagedThread::ManagedThread(uint32_t id, SharedState& ss, ManagedThread::Kind kind) : shared_(ss) , kind_(kind) , name_(kind ...
#include "vm/vm.hpp" #include "util/thread.hpp" #include "gc/managed.hpp" #include "shared_state.hpp" namespace rubinius { thread::ThreadData<ManagedThread*> _current_thread; ManagedThread::ManagedThread(uint32_t id, SharedState& ss, ManagedThread::Kind kind) : shared_(ss) , kind_(kind) , name_(kind ...
Add missing initialization of ManagedThread::run_state_
Add missing initialization of ManagedThread::run_state_
C++
mpl-2.0
slawosz/rubinius,digitalextremist/rubinius,kachick/rubinius,digitalextremist/rubinius,travis-repos/rubinius,jemc/rubinius,sferik/rubinius,ruipserra/rubinius,slawosz/rubinius,dblock/rubinius,lgierth/rubinius,ngpestelos/rubinius,ngpestelos/rubinius,mlarraz/rubinius,slawosz/rubinius,dblock/rubinius,benlovell/rubinius,kach...
4b50f620e74d3d6ab9c4d08eb288f7c96ef632b6
wayland/inputs/input_method_event_filter.cc
wayland/inputs/input_method_event_filter.cc
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ozone/wayland/inputs/input_method_event_filter.h" #include "ui/base/ime/input_method.h" #include "ui/base/ime/input_method_factory.h" namespac...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ozone/wayland/inputs/input_method_event_filter.h" #include "ui/base/ime/input_method.h" #include "ui/base/ime/input_method_factory.h" namespac...
Work around a build error in a very hackish way.
Work around a build error in a very hackish way. ui::CreateInputMethod()'s second parameter is not a pointer. 0 does not make things much better either, but this is an area we are not particularly interested in at the moment.
C++
bsd-3-clause
mrunalk/ozone-wayland,joone/ozone-wayland,spang-chromium/ozone-wayland,AndriyP/ozone-wayland,racarr-ubuntu/ozone-mir,kuscsik/ozone-wayland,likewise/ozone-wayland,rakuco/ozone-wayland,spang-chromium/ozone-wayland,rakuco/ozone-wayland,qjia7/ozone-wayland,clopez/ozone-wayland,AndriyP/ozone-wayland,tiagovignatti/ozone-wayl...
ac1ae88cf6105e461268351d50854ca79dae9ec1
mimosa/rpc/http-call.cc
mimosa/rpc/http-call.cc
#include "../http/client-channel.hh" #include "http-call.hh" #include "json.hh" namespace mimosa { namespace rpc { bool httpCall(const std::string &url, const google::protobuf::Message &request, google::protobuf::Message *response) { http::ClientChannel cc; http...
#include "../stream/string-stream.hh" #include "../stream/copy.hh" #include "../http/client-channel.hh" #include "http-call.hh" #include "json.hh" namespace mimosa { namespace rpc { bool httpCall(const std::string &url, const google::protobuf::Message &request, google::protob...
Make a full json buffer first
Make a full json buffer first
C++
mit
abique/mimosa,abique/mimosa
9a7ce7a09f0f52c4c81ce8fabcf14a86212a71ae
test/C++Frontend/2006-03-06-C++RecurseCrash.cpp
test/C++Frontend/2006-03-06-C++RecurseCrash.cpp
// %llvmgcc %s -S -o - namespace std { class exception { }; class type_info { public: virtual ~type_info(); }; } namespace __cxxabiv1 { class __si_class_type_info : public std::type_info { ~__si_class_type_info(); }; } class recursive_init: public std::exception { public: virtual ~recursive_in...
// RUN: %llvmgcc %s -S -o - namespace std { class exception { }; class type_info { public: virtual ~type_info(); }; } namespace __cxxabiv1 { class __si_class_type_info : public std::type_info { ~__si_class_type_info(); }; } class recursive_init: public std::exception { public: virtual ~recursi...
Add a RUN: line so this test doesn't fail.
Add a RUN: line so this test doesn't fail. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@26790 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/ll...
a1162adca0fcd59c8f1cb512847f0d40518e51d7
test/clang-tidy/serialize-diagnostics.cpp
test/clang-tidy/serialize-diagnostics.cpp
// RUN: clang-tidy %s -- --serialize-diagnostics %t | FileCheck %s // CHECK: :[[@LINE+1]]:12: error: expected ';' after struct [clang-diagnostic-error] struct A {}
// RUN: clang-tidy -checks=-*,llvm-namespace-comment %s -- -serialize-diagnostics %t | FileCheck %s // CHECK: :[[@LINE+1]]:12: error: expected ';' after struct [clang-diagnostic-error] struct A {}
Make a test independent of the default check set.
[clang-tidy] Make a test independent of the default check set. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@223232 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
8ec9f331d25254ec9d3f9205c60d1d444db45185
lib/Target/Alpha/AlphaSubtarget.cpp
lib/Target/Alpha/AlphaSubtarget.cpp
//===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Andrew Lenharth and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
//===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Andrew Lenharth and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------------------...
Simplify this due to changes in the tblgen side
Simplify this due to changes in the tblgen side git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@23908 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-m...
6f56d80422c06e7ce563c8d9994174bc623b8f73
display.cpp
display.cpp
#include "lcd.h" #include <TFT.h> // Arduino LCD library // pin definition for LCD #define LCD_CS 10 #define LCD_DC 9 #define LCD_RST 8 namespace LCD { TFT TFTscreen = TFT(LCD_CS, LCD_DC, LCD_RST); void setup() { // initialize the display TFTscreen.begin(); // clear the screen with a black back...
#include "display.h" #include "sensor.h" #include <LiquidCrystal.h> // Arduino LCD library #include <Arduino.h> // enables use of byte pics // pin definition for LCD #define LCD_CS 10 #define LCD_DC 9 #define LCD_RST 8 namespace LCD { TFT TFTscreen = TFT(LCD_CS, LCD_DC, LCD_RST); void setup() { // ini...
Update libraries to reflect screen hardware change
Update libraries to reflect screen hardware change
C++
mit
satelliteworkshops/arduino-workshop,satelliteworkshops/arduino-workshop,satelliteworkshops/arduino-workshop
c00187d8ada14b3de0b0e057e34751d582789857
content/browser/android/devtools_auth.cc
content/browser/android/devtools_auth.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/public/browser/android/devtools_auth.h" #include "base/logging.h" namespace content { bool CanUserConnectToDevTools(uid_t uid, gi...
// 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/public/browser/android/devtools_auth.h" #include <unistd.h> #include <sys/types.h> #include "base/logging.h" namespace content { ...
Allow connections from the same user to DevTools server socket
[Android] Allow connections from the same user to DevTools server socket Allow connections to DevTools web debugging socket from the apps that run under the same UID than the browser app process itself. This requires signing the corresponding APK with the same keys than the browser app. BUG=398357 Review URL: https:...
C++
bsd-3-clause
crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,chuan9/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,Jonekee/chromium.src,dus...
17c0dbabc0ec0ebd68553a70372ffe27d5bac36c
unitTests/100HDD.cpp
unitTests/100HDD.cpp
#include "../src/utility.h" #include "../src/HDD/HardDrive.h" void unittest(){ const size_t emptyOff = 0x80120; HDD first(1,true); first.init(); int data[1000]; for(int i = 0 ; i < 1000 ; ++i){ data[i] = i; } first.writeaddr(emptyOff,&data,4*1000); int res; first.readaddr(...
#include "../src/utility.h" #include "../src/HDD/HardDrive.h" void unittest(){ const size_t emptyOff = 0x80120; HDD::HDD first(1,true); first.init(); int data[1000]; for(int i = 0 ; i < 1000 ; ++i){ data[i] = i; } first.writeaddr(emptyOff,&data,4*1000); int res; first.read...
Fix compilation error in HDD's unittest
Fix compilation error in HDD's unittest
C++
mit
TWal/ENS_sysres,TWal/ENS_sysres,TWal/ENS_sysres,TWal/ENS_sysres
543b07e08b7743f473469663e4479018493b8b06
chrome/browser/extensions/extension_pointer_lock_apitest.cc
chrome/browser/extensions/extension_pointer_lock_apitest.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/extension_apitest.h" #include "chrome/test/base/ui_test_utils.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ...
// 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/extension_apitest.h" #include "chrome/test/base/ui_test_utils.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ...
Disable test that is failing on linux trybots.
Disable test that is failing on linux trybots. BUG=223447 NOTRY=True TBR=jeremya@chromium.org Review URL: https://chromiumcodereview.appspot.com/13031005 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@190294 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
markYoungH/chromium.src,hujiajie/pa-chromium,hujiajie/pa-chromium,markYoungH/chromium.src,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,ChromiumWebApps/chromium,M4sse/chromium...
a701601dd028176bf7a712a92d1b32b0835e9c13
Core/ExpressionFunctions.cpp
Core/ExpressionFunctions.cpp
#include "stdafx.h" #include "ExpressionFunctions.h" #include "Misc.h" #include "Common.h" ExpressionValue expressionFunctionEndianness(const std::vector<ExpressionValue>& parameters) { Endianness endianness = g_fileManager->getEndianness(); ExpressionValue result; result.type = ExpressionValueType::String; swit...
#include "stdafx.h" #include "ExpressionFunctions.h" #include "Misc.h" #include "Common.h" ExpressionValue expFuncEndianness(const std::vector<ExpressionValue>& parameters) { Endianness endianness = g_fileManager->getEndianness(); ExpressionValue result; result.type = ExpressionValueType::String; switch (endiann...
Add fileExists and fileSize expression functions
Add fileExists and fileSize expression functions
C++
mit
Kingcom/armips,hrydgard/armips,Kingcom/armips,hrydgard/armips,Kingcom/armips,hrydgard/armips,sp1187/armips,sp1187/armips,sp1187/armips
d2d42ed6883f6f760b69e6dad63367a2f4228ac0
test/clang-tidy/static-analyzer.cpp
test/clang-tidy/static-analyzer.cpp
// REQUIRES: static-analyzer // RUN: clang-tidy %s -checks='-*,clang-analyzer-*' -- | FileCheck %s extern void *malloc(unsigned long); extern void free(void *); void f() { int *p = new int(42); delete p; delete p; // CHECK: warning: Attempt to delete released memory [clang-analyzer-cplusplus.NewDelete] } void...
// REQUIRES: static-analyzer // RUN: clang-tidy %s -checks='-*,clang-analyzer-*' -- | FileCheck %s extern void *malloc(unsigned long); extern void free(void *); void f() { int *p = new int(42); delete p; delete p; // CHECK: warning: Attempt to free released memory [clang-analyzer-cplusplus.NewDelete] } void g...
Revert rCTE349288 'Fix a lit test failure after MallocChecker changes'
Revert rCTE349288 'Fix a lit test failure after MallocChecker changes' git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@349341 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
4fdfcbe5eae517d56b22006a528b278672bec8d8
gpu/src/GrGLUtil.cpp
gpu/src/GrGLUtil.cpp
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLConfig.h" #include "GrGLInterface.h" void GrGLClearErr(const GrGLInterface* gl) { while (GR_GL_NO_ERROR != gl->fGetError()) {} } void GrGLCheckErr(const ...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLConfig.h" #include "GrGLInterface.h" void GrGLClearErr(const GrGLInterface* gl) { while (GR_GL_NO_ERROR != gl->fGetError()) {} } void GrGLCheckErr(const ...
Fix gl error debug print.
Fix gl error debug print. git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@2356 2bbb7eff-a529-9590-31e7-b0007b416f81
C++
bsd-3-clause
mozilla-b2g/external_skia,fire855/android_external_skia,sigysmund/platform_external_skia,w3nd1go/android_external_skia,nfxosp/platform_external_skia,nox/skia,zhaochengw/platform_external_skia,TeslaOS/android_external_skia,google/skia,nox/skia,MIPS/external-chromium_org-third_party-skia,MinimalOS/android_external_chromi...
711988470929a9dd48763012f155dadb77e85836
pith/test/TestSharedLock.cpp
pith/test/TestSharedLock.cpp
#include <Pith/Config.hpp> #include <Pith/LockGuard.hpp> #include <Pith/SharedLock.hpp> #include <gtest/gtest.h> using namespace Pith; TEST(SharedLock, multipleShared) { SharedLock lock; SharedLockGuard<SharedLock> shared1(lock); EXPECT_TRUE(trySharedLock(lock)); } TEST(SharedLock, failToTakeExclusive) { SharedL...
#include <Pith/Config.hpp> #include <Pith/LockGuard.hpp> #include <Pith/SharedLock.hpp> #include <gtest/gtest.h> using namespace Pith; TEST(SharedLock, multipleShared) { SharedLock lock; SharedLockGuard<SharedLock> shared1(lock); EXPECT_TRUE(trySharedLock(lock)); } TEST(SharedLock, DISABLED_failToTakeExclusive) {...
Disable some shared lock tests
Disable some shared lock tests Since the shared lock is unimplemented, these tests aren't showing the expected behaviour. Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
C++
apache-2.0
ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab
d900f726cdff2027bb3ece6eee82fb1bc83947a1
libs/engine/ReadFileManager.cpp
libs/engine/ReadFileManager.cpp
#include "ReadFileManager.h" // Own interface #include "ReadFile.h" // engine::ReadFile namespace engine { ReadFileManager::ReadFileManager() { // Default number of open files max_open_files = 10; } ReadFile *ReadFileManager::getReadFile( std::string...
#include "ReadFileManager.h" // Own interface #include "ReadFile.h" // engine::ReadFile namespace engine { ReadFileManager::ReadFileManager() { // Default number of open files max_open_files = 100; } ReadFile *ReadFileManager::getReadFile( std::strin...
Fix wrong number of max open files
Fix wrong number of max open files git-svn-id: 9714148d14941aebeae8d7f7841217f5ffc02bc5@1163 4143565c-f3ec-42ea-b729-f8ce0cf5cbc3
C++
apache-2.0
telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform
95169004180a7cb87e780ed1c81d9b73676bc168
WindowSettings.cpp
WindowSettings.cpp
// // WindowSettings.cpp // Hume // // Created by Marshall Clyburn on 7/11/14. // Copyright (c) 2014 Marshall Clyburn. All rights reserved. // #include "WindowSettings.h" namespace hm { /* Default to a fullscreen window at the maximum resolution supported by the attached screen. */ WindowSettings::WindowS...
// // WindowSettings.cpp // Hume // // Created by Marshall Clyburn on 7/11/14. // Copyright (c) 2014 Marshall Clyburn. All rights reserved. // #include "WindowSettings.h" namespace hm { /* Default to a fullscreen window at the maximum resolution supported by the attached screen. */ WindowSettings::WindowS...
Fix logging resolution as chars.
Fix logging resolution as chars.
C++
lgpl-2.1
mdclyburn/hume
a26db234ff7c8af2a63fa4e8acdf3d67dcdf6f74
src/population.cpp
src/population.cpp
#include <iostream> #include <cstdlib> #include "population.h" int **POPULATION::initializePopulation(int individuals, int genes, bool FILL_ZERO) { int **population; if (!FILL_ZERO) { population = (int **) malloc(individuals * sizeof(int *)); for (int i = 0; i < individuals; i++) population[i] = ...
#include <iostream> #include <cstdlib> #include "population.h" int **POPULATION::initializePopulation(int individuals, int genes, bool FILL_ZERO) { int **population; if (!FILL_ZERO) { population = (int **) malloc(individuals * sizeof(int *)); for (int i = 0; i < individuals; i++) population[i] = ...
Update return datatype function 'createRandomPopulation'.
Update return datatype function 'createRandomPopulation'.
C++
mit
wkohlenberg/simple_GA
0e63919a3ce971bd090bbd6ec36025260ee64a23
cpp/connection.cpp
cpp/connection.cpp
#include "connection.h" hwo_connection::hwo_connection(const std::string& host, const std::string& port) : socket(io_service) { tcp::resolver resolver(io_service); tcp::resolver::query query(host, port); boost::asio::connect(socket, resolver.resolve(query)); response_buf.prepare(8192); } hwo_connection::~hw...
#include "connection.h" hwo_connection::hwo_connection(const std::string& host, const std::string& port) : socket(io_service) { tcp::resolver resolver(io_service); tcp::resolver::query query(host, port); boost::asio::connect(socket, resolver.resolve(query)); response_buf.prepare(8192); } hwo_connection::~hw...
Fix case where received message was potentially dropped in C++ bot
Fix case where received message was potentially dropped in C++ bot The read_until() may leave trailing data to read buffer, and this was not handled properly by the sample bot. Big thanks to Mika Urtela for spotting this. Signed-off-by: Harri Salokorpi <eefb23b8deb8c30dca252cd0ae751b67337dc69f@reaktor.fi> Signed-off...
C++
apache-2.0
sooda/hwo2014,beheh/hwo2014,sooda/hwo2014,psaikko/hwo-2014,sooda/hwo2014,beheh/hwo2014,sooda/hwo2014,sooda/hwo2014,psaikko/hwo-2014
6b9e61c65da7c1d373c9c0c11fa1f61dd90857d3
brightray/browser/inspectable_web_contents.cc
brightray/browser/inspectable_web_contents.cc
#include "browser/inspectable_web_contents.h" #include "browser/inspectable_web_contents_impl.h" namespace brightray { InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) { return Create(content::WebContents::Create(create_params)); } InspectableWebConte...
#include "browser/inspectable_web_contents.h" #include "browser/inspectable_web_contents_impl.h" #include "content/public/browser/web_contents_view.h" namespace brightray { InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) { auto contents = content::We...
Fix flashing in WebContents we create
Fix flashing in WebContents we create If the embedding app creates them it's up to them to fix this.
C++
mit
electron/electron,the-ress/electron,tonyganch/electron,seanchas116/electron,tonyganch/electron,electron/electron,the-ress/electron,the-ress/electron,seanchas116/electron,electron/electron,the-ress/electron,miniak/electron,renaesop/electron,seanchas116/electron,seanchas116/electron,miniak/electron,Floato/electron,bpaser...
adcd5aa8cc3bf32f6de9e3671ce4729ed8b8af44
test/msan/insertvalue_origin.cc
test/msan/insertvalue_origin.cc
// RUN: %clangxx_msan -fsanitize-memory-track-origins -O0 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out && FileCheck %s < %t.out // RUN: %clangxx_msan -fsanitize-memory-track-origins -O3 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out && FileCheck %s < %t.out // Test origin prop...
// RUN: %clangxx_msan -fsanitize-memory-track-origins -O0 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out && FileCheck %s < %t.out // RUN: %clangxx_msan -fsanitize-memory-track-origins -O3 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out && FileCheck %s < %t.out // Test origin prop...
Disable one MSAN test in AArch64 until we have a proper fix
Disable one MSAN test in AArch64 until we have a proper fix git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@248008 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
f4745ae2675e34f348862ec5a209465b7cdc463b
src/cxa_noexception.cpp
src/cxa_noexception.cpp
//===------------------------- cxa_exception.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. // // // This file implements the "Exception ...
//===------------------------- cxa_exception.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. // // // This file implements the "Exception ...
Remove missed use of config.h
[libc++abi] Remove missed use of config.h git-svn-id: 6a9f6578bdee8d959f0ed58970538b4ab6004734@299143 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi,llvm-mirror/libcxxabi
c34054af77a12ddc61b0de27d5350f0ed208c1b7
src/plugins/animatedtiles/animatedtilesplugin.cpp
src/plugins/animatedtiles/animatedtilesplugin.cpp
#include <QtPlugin> \ #include "animatedtilesplugin.h" #include "animatedtilesitem.h" AnimatedTilesPlugin::AnimatedTilesPlugin() { this->mName = "AnimatedTiles"; //This should not be an advertized plugin until it is implemented //this->mRole = "animatedTiles"; } Q_EXPORT_PLUGIN2(animatedTiles, AnimatedT...
#include <QtPlugin> \ #include "animatedtilesplugin.h" #include "animatedtilesitem.h" AnimatedTilesPlugin::AnimatedTilesPlugin() { setName("AnimatedTiles"); //This should not be an advertized plugin until it is implemented //setRole("animatedTiles"); } Q_EXPORT_PLUGIN2(animatedTiles, AnimatedTilesPlugin...
Adjust minor animated tiles transgression
Adjust minor animated tiles transgression
C++
bsd-3-clause
qtmediahub/sasquatch,qtmediahub/sasquatch,qtmediahub/sasquatch
70f0eb28ee76cf98e8838f0fc6ac365f31569292
src/comm/AbsPositionOverview.cc
src/comm/AbsPositionOverview.cc
#include "AbsPositionOverview.h" AbsPositionOverview::AbsPositionOverview(QObject *parent) : QObject(parent) { } void AbsPositionOverview::parseGpsRawInt(LinkInterface *link, const mavlink_message_t &message, const mavlink_gps_raw_int_t &state) { if (state.fix_type > 2) { this->setLat(state.lat); ...
#include "AbsPositionOverview.h" AbsPositionOverview::AbsPositionOverview(QObject *parent) : QObject(parent) { } void AbsPositionOverview::parseGpsRawInt(LinkInterface *link, const mavlink_message_t &message, const mavlink_gps_raw_int_t &state) { if (state.fix_type > 2) { this->setLat(state.lat); ...
Fix altitude not being reported in metres to PFD
UAS: Fix altitude not being reported in metres to PFD
C++
agpl-3.0
labtoast/apm_planner,381426068/apm_planner,sutherlandm/apm_planner,mrpilot2/apm_planner,mirkix/apm_planner,381426068/apm_planner,LittleBun/apm_planner,chen0510566/apm_planner,Icenowy/apm_planner,hejunbok/apm_planner,Icenowy/apm_planner,LittleBun/apm_planner,labtoast/apm_planner,chen0510566/apm_planner,LittleBun/apm_pla...
d608efd7ca7b794502e61ad3c35569a3ad91057d
src/tests/warbler_Console_tests.cpp
src/tests/warbler_Console_tests.cpp
#include "gtest/gtest.h" #include "Console.hpp" #include <memory> using namespace warbler; class ConsoleTest { public: static void noopCommandHandler(const std::shared_ptr<const std::vector<ConsoleArg>> &args) {}; static const std::shared_ptr<std::vector<ConsoleArgType>> args; }; const std::shared_ptr<std::...
#include "gtest/gtest.h" #include "Console.hpp" #include <memory> using namespace warbler; class ConsoleTest { public: static void noopCommandHandler(const std::shared_ptr<const std::vector<ConsoleArg>> &args) {}; static const std::shared_ptr<std::vector<ConsoleArgType>> args; }; const std::shared_ptr<std::...
Modify a couple tests to use asserts.
Modify a couple tests to use asserts. Former-commit-id: 60bee038bc7d01fa0eed5cb4f4a34a70650de97b [formerly 13be900e6fa1f86d7bd68dbcd5a408d00b432c2c] Former-commit-id: 87eae1ec908b0a38284b4f477a38e13008c30d31
C++
mit
dpwolfe/otucha,dpwolfe/otucha,dpwolfe/otucha
5d609928af5ad3987323df1515c3717c3a1fcda1
src/shell/lean.cpp
src/shell/lean.cpp
#include <iostream> #include "version.h" #include "parser.h" using namespace lean; int main() { std::cout << "Lean (version " << LEAN_VERSION_MAJOR << "." << LEAN_VERSION_MINOR << ")\n"; frontend f; return parse_commands(f, std::cin) ? 0 : 1; }
#include <iostream> #include <fstream> #include "version.h" #include "parser.h" using namespace lean; int main(int argc, char ** argv) { std::cout << "Lean (version " << LEAN_VERSION_MAJOR << "." << LEAN_VERSION_MINOR << ")\n"; frontend f; if (argc == 1) { return parse_commands(f, std::cin) ? 0 : 1...
Add support for reading input files from the command line.
Add support for reading input files from the command line. Signed-off-by: Leonardo de Moura <7610bae85f2b530654cc716772f1fe653373e892@microsoft.com>
C++
apache-2.0
leanprover-community/lean,rlewis1988/lean,leodemoura/lean,johoelzl/lean,sp3ctum/lean,fgdorais/lean,c-cube/lean,c-cube/lean,soonhokong/lean,rlewis1988/lean,leanprover/lean,codyroux/lean0.1,javra/lean,soonhokong/lean-osx,dselsam/lean,fpvandoorn/lean,avigad/lean,eigengrau/lean,fpvandoorn/lean2,leanprover/lean,leanprover/l...
b6c14859e735d15051ae66c8e5485d20573d313a
Deck.cpp
Deck.cpp
/* * Deck.cpp * * Created on: 11.01.2017 * Author: Stefan */ #include <memory> #include <random> #include "Deck.h" #include "Card.h" #include "GlobalDeclarations.h" void Deck::AddSets(std::size_t N) { for(std::size_t i = 0; i < N; ++i) { AddCompleteSet(); } } Deck::pCard Deck::Draw() { // Random gen...
/* * Deck.cpp * * Created on: 11.01.2017 * Author: Stefan */ #include <memory> #include <random> #include "Deck.h" #include "Card.h" #include "GlobalDeclarations.h" #include <chrono> void Deck::AddSets(std::size_t N) { for(std::size_t i = 0; i < N; ++i) { AddCompleteSet(); } } Deck::pCard Deck::Draw(...
Fix random drawing of cards
Fix random drawing of cards
C++
mit
saccharios/BlackJack,saccharios/BlackJack,saccharios/BlackJack
99a8cbddffbbd0b45c599f69eda8391d8c2f4c79
Main.cpp
Main.cpp
#include <iostream> #include <thread> #include <vector> #include "World.h" using namespace std; int main(int argc, char * argv[]) { if (argc != 4) { std::cerr << "use: " << argv[0] << " dim iterations nworkers\n"; return -1; } int dim = atoi(argv[1]); int iterations = atoi(a...
#include <iostream> #include <thread> #include <vector> #include "World.h" using namespace std; int main(int argc, char * argv[]) { if (argc < 4) { std::cerr << "use: " << argv[0] << " dim iterations nworkers ?[print: on]\n"; return -1; } int dim = atoi(argv[1]); int iteratio...
Add extra argument to toggle board printing
Add extra argument to toggle board printing
C++
mit
LapoFrati/GameOfLife,LapoFrati/GameOfLife
850263a9811f9c032aeee7e7376a3806a621275a
chrome/browser/chromeos/status_area_button.cc
chrome/browser/chromeos/status_area_button.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/chromeos/status_area_button.h" #include "app/gfx/canvas.h" #include "app/gfx/skbitmap_operations.h" #include "app/resource_b...
// 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/chromeos/status_area_button.h" #include "app/gfx/canvas.h" #include "app/gfx/skbitmap_operations.h" #include "app/resource_b...
Fix for Release build break
Fix for Release build break Review URL: http://codereview.chromium.org/293050 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@29656 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
gavinp/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,...
b87885b33a60b5931f8ba9e2f6303369c96b9ce3
src/sc2laddercore/ToolsUnix.cpp
src/sc2laddercore/ToolsUnix.cpp
#ifdef __unix__ #include <iostream> #include <signal.h> #include <stdio.h> #include <unistd.h> #include "Types.h" #include "Tools.h" void StartBotProcess(const BotConfig &Agent, const std::string& CommandLine, void **ProcessId) { FILE* pipe = popen(CommandLine.c_str(), "r"); if (!pipe) { std::ce...
#if defined(__unix__) || defined(__APPLE__) #include <iostream> #include <signal.h> #include <stdio.h> #include <unistd.h> #include "Types.h" #include "Tools.h" void StartBotProcess(const BotConfig &Agent, const std::string& CommandLine, void **ProcessId) { FILE* pipe = popen(CommandLine.c_str(), "r"); if (...
Fix Tools compilation under OS X
Fix Tools compilation under OS X __unix__ is defined only on Linux. Use OS X specific define.
C++
mit
Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer
05725cb3a1e0ac0b8f2e5c52e6e3f8da9c94a9cc
src/hooknative.cpp
src/hooknative.cpp
// Copyright (c) 2011 Zeex // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
// Copyright (c) 2011 Zeex // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
Fix weird undefined reference to HookNative (GCC 4.5.2)
Fix weird undefined reference to HookNative (GCC 4.5.2)
C++
apache-2.0
Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,WopsS/sampgdk,Zeex/sampgdk
14ae579fca5c9a9839dc9d096af5c4a52294f311
Storage/State/SNA.cpp
Storage/State/SNA.cpp
// // SNA.cpp // Clock Signal // // Created by Thomas Harte on 24/04/2021. // Copyright © 2021 Thomas Harte. All rights reserved. // #include "SNA.hpp" using namespace Storage::State; std::unique_ptr<Analyser::Static::Target> SNA::load(const std::string &file_name) { // 0x1a byte header: // // 00 I // 01 HL'...
// // SNA.cpp // Clock Signal // // Created by Thomas Harte on 24/04/2021. // Copyright © 2021 Thomas Harte. All rights reserved. // #include "SNA.hpp" using namespace Storage::State; std::unique_ptr<Analyser::Static::Target> SNA::load(const std::string &file_name) { // 0x1a byte header: // // 00 I // 01 HL'...
Add further note to future self.
Add further note to future self.
C++
mit
TomHarte/CLK,TomHarte/CLK,TomHarte/CLK,TomHarte/CLK,TomHarte/CLK
1f8e0f27d11c0cece80018a01c08a5828e588ca4
High_Temp_MCP320x.cpp
High_Temp_MCP320x.cpp
/* High_Temp.cpp 2014 Copyright (c) Seeed Technology Inc. All right reserved. Loovee 2013-4-14 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Lice...
/* High_Temp.cpp 2014 Copyright (c) Seeed Technology Inc. All right reserved. Loovee 2013-4-14 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Lice...
Add missing call to begin() for MCP3208 object
Add missing call to begin() for MCP3208 object
C++
mit
mhaas/Grove_HighTemp_Sensor
3289f08bb9162594734d658ab5a48ed0f94b61e5
firmware/application.cpp
firmware/application.cpp
// Based on Euler.ino example #include "NAxisMotion.h" NAxisMotion imu; unsigned long prevTime = 0; const int streamPeriod = 20; // ms void setup() { Serial.begin(115200); I2C.begin(); imu.initSensor(); // I2C Address can be changed here if needed imu.setOperationMode(OPERATION_MODE_NDOF); // Default upda...
#include "NAxisMotion.h" NAxisMotion imu; unsigned long prevTime = 0; const int streamPeriod = 20; // ms void setup() { Serial.begin(115200); I2C.begin(); imu.initSensor(); // I2C Address can be changed here if needed imu.setOperationMode(OPERATION_MODE_NDOF); imu.setUpdateMode(MANUAL); } void loop() { ...
Write quaternion components instead of Euler angles
Write quaternion components instead of Euler angles
C++
mit
andrewadare/imu-visualizer,andrewadare/imu-visualizer,andrewadare/imu-visualizer,andrewadare/imu-visualizer
5f83c60d5d5e3a87f5281db8125755c65a72b070
test/CodeGenCXX/member-init-assignment.cpp
test/CodeGenCXX/member-init-assignment.cpp
// RUN: %clang_cc1 %s -emit-llvm-only -verify // PR7291 struct Foo { unsigned file_id; Foo(unsigned arg); }; Foo::Foo(unsigned arg) : file_id(arg = 42) { }
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // PR7291 struct Foo { unsigned file_id; Foo(unsigned arg); }; Foo::Foo(unsigned arg) : file_id(arg = 42) { } // CHECK: define void @_ZN3FooC2Ej // CHECK: [[ARG:%.*]] = alloca i32 // CHECK: store i32 42, i32* [[ARG]] // CHECK: [[ARGVAL:%.*]] = load i32* [[ARG...
Check the output of this test.
Check the output of this test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105434 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
bdea27ba8f92f2fdcb8d817952fc29cc0bfbc446
test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.pass.cpp
test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/io.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 bug in test; found by AddressSanitizer
Fix bug in test; found by AddressSanitizer git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@177464 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
486c257f420f31b04733fc5b803e3b37fcf0208d
src/classify/mfdefs.cpp
src/classify/mfdefs.cpp
/****************************************************************************** ** Filename: mfdefs.cpp ** Purpose: Basic routines for manipulating micro-features ** Author: Dan Johnson ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, Version 2.0 (the "License")...
/****************************************************************************** ** Filename: mfdefs.cpp ** Purpose: Basic routines for manipulating micro-features ** Author: Dan Johnson ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, Version 2.0 (the "License")...
Replace malloc / free by new / delete for MICROFEATURE
Replace malloc / free by new / delete for MICROFEATURE Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
C++
apache-2.0
amitdo/tesseract,UB-Mannheim/tesseract,stweil/tesseract,stweil/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract,stweil/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,stweil/tesse...
dd59a73f632de73d7efe2d5f88c2eafb0d1b59d5
chrome/browser/chromeos/legacy_window_manager/initial_browser_window_observer.cc
chrome/browser/chromeos/legacy_window_manager/initial_browser_window_observer.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/legacy_window_manager/initial_browser_window_observer.h" #include "base/file_path.h" #include "base/file_util.h" #i...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/legacy_window_manager/initial_browser_window_observer.h" #include "base/bind.h" #include "base/file_path.h" #includ...
Write initial browser window file from IO thread.
aura: Write initial browser window file from IO thread. I was carelessly doing this from the UI thread before. :-( BUG=107938 TEST=none Review URL: http://codereview.chromium.org/8993012 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@115429 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,adob...
2b5eb8f79e75bd7fab3221acf806e70d468ce48a
stub/src/qtfirebase.cpp
stub/src/qtfirebase.cpp
#include "qtfirebaseanalytics.h" #include "qtfirebaseremoteconfig.h" #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; #endif #ifdef QTFIREBASE_BUILD_REMOTE_CONFIG QtFirebaseRemoteConfig*...
#include "qtfirebaseanalytics.h" #include "qtfirebaseremoteconfig.h" #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" #include "qtfirebasemessaging.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; #endif #ifdef QTFIREBASE_BUILD_REMO...
Fix build with stub implementation
Fix build with stub implementation
C++
mit
Larpon/QtFirebase,Larpon/QtFirebase,Larpon/QtFirebase
585bb1fad0cefbed1c7467b7c5febfc674dc2074
es-app/src/NetworkThread.cpp
es-app/src/NetworkThread.cpp
/* * File: NetworkThread.cpp * Author: matthieu * * Created on 6 février 2015, 11:40 */ #include "NetworkThread.h" #include "RecalboxSystem.h" #include "guis/GuiMsgBox.h" NetworkThread::NetworkThread(Window* window) : mWindow(window){ // creer le thread mFirstRun = true; mRunning = true; ...
/* * File: NetworkThread.cpp * Author: matthieu * * Created on 6 février 2015, 11:40 */ #include "NetworkThread.h" #include "RecalboxSystem.h" #include "guis/GuiMsgBox.h" NetworkThread::NetworkThread(Window* window) : mWindow(window){ // creer le thread mFirstRun = true; mRunning = true; ...
Update : make the updates.enabled switch usefull
Update : make the updates.enabled switch usefull Signed-off-by: Nicolas Adenis-Lamarre <dc6fdc1a9744a7ef1c7adc041d3cf105890663bc@gmail.com>
C++
mit
rockaddicted/recalbox-emulationstation,recalbox/recalbox-emulationstation,emerrepengo/recalbox-emulationstation,rockaddicted/recalbox-emulationstation,rockaddicted/recalbox-emulationstation,pmoran13800/recalbox-emulationstation,digitalLumberjack/recalbox-emulationstation,igungor/recalbox-emulationstation,igungor/recalb...
2980490619810e68834995f68da924c15244f113
tapthrottle.cc
tapthrottle.cc
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "tapthrottle.hh" const size_t MINIMUM_SPACE(1024 * 1024); const size_t MAXIMUM_QUEUE(100000); bool TapThrottle::persistenceQueueSmallEnough() const { size_t queueSize = stats.queue_size.get() + stats.flus...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "tapthrottle.hh" const size_t MINIMUM_SPACE(1024 * 1024); const size_t MAXIMUM_QUEUE(500000); bool TapThrottle::persistenceQueueSmallEnough() const { size_t queueSize = stats.queue_size.get() + stats.flus...
Adjust tap throttle max persistence queue size up to 500k
Adjust tap throttle max persistence queue size up to 500k Change-Id: I0e38be6bc984a47f3c8157a39ad2c10a886b6e33 Reviewed-on: http://review.membase.org/3867 Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com> Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
C++
bsd-3-clause
jimwwalker/ep-engine,daverigby/kv_engine,membase/ep-engine,owendCB/ep-engine,couchbaselabs/ep-engine,hisundar/ep-engine,couchbase/ep-engine,daverigby/ep-engine,daverigby/kv_engine,jimwwalker/ep-engine,abhinavdangeti/ep-engine,owendCB/ep-engine,owendCB/ep-engine,teligent-ru/ep-engine,zbase/ep-engine,abhinavdangeti/ep-en...
a5d5f83d6e65ea036eb6557b38c94486faee61cb
examples/websocket_client/WebSocketWrapper.cpp
examples/websocket_client/WebSocketWrapper.cpp
#include "WebSocketWrapper.hpp" #include <iostream> using namespace rtcdcpp; WebSocketWrapper::WebSocketWrapper(std::string url) : url(url), send_queue() { ; } WebSocketWrapper::~WebSocketWrapper() { delete this->ws; } bool WebSocketWrapper::Initialize() { this->ws = WebSocket::from_url(this->url); return this...
#include "WebSocketWrapper.hpp" #include <thread> #include <iostream> using namespace rtcdcpp; WebSocketWrapper::WebSocketWrapper(std::string url) : url(url), send_queue() { ; } WebSocketWrapper::~WebSocketWrapper() { delete this->ws; } bool WebSocketWrapper::Initialize() { this->ws = WebSocket::from_url(this->ur...
Add sleep in WebSocket poll
Add sleep in WebSocket poll
C++
bsd-3-clause
chadnickbok/librtcdcpp,chadnickbok/librtcdcpp
6c542f6936f882a2a7fa5e92fe5ea7882e7ac43a
SofaKernel/modules/SofaBaseCollision/CylinderModel.cpp
SofaKernel/modules/SofaBaseCollision/CylinderModel.cpp
#define SOFA_COMPONENT_COLLISION_CYLINDERMODEL_CPP #include "CylinderModel.inl" namespace sofa { namespace component { namespace collision { using namespace sofa::defaulttype; using namespace sofa::core::collision; using namespace helper; SOFA_DECL_CLASS(Cylinder) int RigidCylinderModelClass = core::RegisterObjec...
#define SOFA_COMPONENT_COLLISION_CYLINDERMODEL_CPP #include "CylinderModel.inl" namespace sofa { namespace component { namespace collision { using namespace sofa::defaulttype; using namespace sofa::core::collision; using namespace helper; SOFA_DECL_CLASS(Cylinder) int RigidCylinderModelClass = core::RegisterObjec...
Add a TODO to not forget some tasks
[SofaKernel] Add a TODO to not forget some tasks
C++
lgpl-2.1
hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,hdeling/sofa,hdeling/sofa,FabienPean/sofa,FabienPean/sofa,FabienPean/sofa,hdeling/sofa,FabienPean/sofa,FabienPean/sofa,hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,Fabie...
2134f0afde2b0f5f324f7f5560c04e9f1c9a8bae
apps/HelloAndroidCamera2/jni/edge_detect_generator.cpp
apps/HelloAndroidCamera2/jni/edge_detect_generator.cpp
#include "Halide.h" namespace { class EdgeDetect : public Halide::Generator<EdgeDetect> { public: ImageParam input{ UInt(8), 2, "input" }; Func build() { Var x, y; Func clamped = Halide::BoundaryConditions::repeat_edge(input); // Gradients in x and y. Func gx("gx"); ...
#include "Halide.h" namespace { class EdgeDetect : public Halide::Generator<EdgeDetect> { public: ImageParam input{ UInt(8), 2, "input" }; Func build() { Var x, y; Func clamped = Halide::BoundaryConditions::repeat_edge(input); // Upcast to 16-bit Func in16; i...
Improve edge detector (fix overflow)
Improve edge detector (fix overflow) Former-commit-id: 34d9d1e630c8195888530530f806efd1f9132137
C++
mit
Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide