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
3b8bf497a8221d7c2a485bdbb4426613a7950cf1
tagged_sqlite/tagged_sqlite.cpp
tagged_sqlite/tagged_sqlite.cpp
// tagged_sqlite.cpp : Defines the entry point for the application. // #include "tagged_sqlite.h" using namespace std; int main() { using db = define_database< class mydb, define_table<class customers, define_column<class id, std::int64_t>, define_column<class name, std::string>>, ...
// tagged_sqlite.cpp : Defines the entry point for the application. // #include "tagged_sqlite.h" using namespace std; int main() { using db = define_database< define_table<class customers, // define_column<class id, std::int64_t>, define_column<class name, std::string...
Fix missing parts of query. Still does not compile
Fix missing parts of query. Still does not compile
C++
apache-2.0
google/cpp-from-the-sky-down,google/cpp-from-the-sky-down,google/cpp-from-the-sky-down
1faf1ce26b42979cee1b4a044ac959e7dce8f95c
chrome/browser/extensions/extension_toolstrip_apitest.cc
chrome/browser/extensions/extension_toolstrip_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" // Disabled, http://crbug.com/30151. IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Tools...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" // Disabled, http://crbug.com/30151 (Linux and ChromeOS), // http://crbug.com/35034 (others)...
Update bug reference link in ExtensionApiTest.Toolstrip
Update bug reference link in ExtensionApiTest.Toolstrip TBR=erikkay TEST=no code change BUG=30151, 35034 Review URL: http://codereview.chromium.org/580015 git-svn-id: http://src.chromium.org/svn/trunk/src@38394 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 60021e16292fb6851b314ce10c2f0b2eca6981d3
C++
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
046515824805d6b5ae48ac1e4bf16b3c48fb777c
src/http_server/parse_path.cpp
src/http_server/parse_path.cpp
#include "http_server/parse_path.hpp" #include <boost/lexical_cast.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> namespace http { namespace server3 { bool parse_path(const std::string &path, int &z, int &x, int &y) { std::vector<std::string> splits; boost::...
#include "http_server/parse_path.hpp" #include <boost/lexical_cast.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> namespace http { namespace server3 { bool parse_path(const std::string &path, int &z, int &x, int &y) { std::vector<std::string> splits; boost::...
Fix bug: paths have a leading slash.
Fix bug: paths have a leading slash.
C++
bsd-2-clause
MapQuest/avecado,MapQuest/avecado,zerebubuth/avecado,zerebubuth/avecado,zerebubuth/avecado,MapQuest/avecado
4e6c19c5089fb6ff2d984633ff00617290f14b16
generator/emitter_simple.cpp
generator/emitter_simple.cpp
#include "generator/emitter_simple.hpp" #include "generator/feature_builder.hpp" #include "base/macros.hpp" namespace generator { EmitterSimple::EmitterSimple(feature::GenerateInfo const & info) : m_regionGenerator(std::make_unique<SimpleGenerator>(info)) {} void EmitterSimple::GetNames(std::vector<std::string> &...
#include "generator/emitter_simple.hpp" #include "generator/feature_builder.hpp" #include "base/macros.hpp" namespace generator { EmitterSimple::EmitterSimple(feature::GenerateInfo const & info) : m_regionGenerator(std::make_unique<SimpleGenerator>(info)) {} void EmitterSimple::GetNames(std::vector<std::string> &...
Optimize EmitterSimple: empty Polygonizer::m_currentNames per feature
[generator] Optimize EmitterSimple: empty Polygonizer::m_currentNames per feature
C++
apache-2.0
rokuz/omim,VladiMihaylenko/omim,matsprea/omim,VladiMihaylenko/omim,darina/omim,mapsme/omim,rokuz/omim,mapsme/omim,rokuz/omim,milchakov/omim,mapsme/omim,darina/omim,milchakov/omim,matsprea/omim,milchakov/omim,rokuz/omim,darina/omim,mapsme/omim,VladiMihaylenko/omim,matsprea/omim,mapsme/omim,VladiMihaylenko/omim,darina/om...
4fe173c0000624076be25685cc4fcbb112bc08bd
unittest/lua.cpp
unittest/lua.cpp
#include <iostream> #include "pinocchio/multibody/model.hpp" #include "pinocchio/multibody/parser/lua.hpp" #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE UrdfTest #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_SUITE ( ParsingLuaFile ) BOOST_AUTO_TEST_CASE ( buildModel ) { std::string filename = PINOC...
// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your option) any later versio...
Add missing license in LUA unittest
[Minor] Add missing license in LUA unittest
C++
bsd-2-clause
fvalenza/pinocchio,fvalenza/pinocchio,fvalenza/pinocchio,aelkhour/pinocchio,fvalenza/pinocchio,aelkhour/pinocchio,aelkhour/pinocchio,aelkhour/pinocchio
0616c9d14f7b5e894230a53970df9297b0887b3e
tests/external/catch/catch.cpp
tests/external/catch/catch.cpp
#define CATCH_CONFIG_MAIN #include <catch.hpp> /* * Catch main file for faster compilation. This file is the only one defining the * main function. */
#define CATCH_CONFIG_RUNNER #include "catch.hpp" // On Windows, disable the "Application error" dialog box, because it // requires an human intervention, and there is no one on Appveyor. // // On UNIX, does nothing void silent_crash_handlers(); int main(int argc, char* argv[]) { silent_crash_handlers(); retur...
Disable error dialog on Windows
Disable error dialog on Windows It make the test hang for nothing
C++
bsd-3-clause
chemfiles/chemfiles,lscalfi/chemfiles,Luthaf/Chemharp,chemfiles/chemfiles,chemfiles/chemfiles,Luthaf/Chemharp,lscalfi/chemfiles,Luthaf/Chemharp,lscalfi/chemfiles,lscalfi/chemfiles,chemfiles/chemfiles
59252b740af5dae126bb84c3ce358c5b7f11cda2
content/browser/renderer_host/render_view_host_observer.cc
content/browser/renderer_host/render_view_host_observer.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/renderer_host/render_view_host_observer.h" #include "content/browser/renderer_host/render_view_host.h" RenderViewHostObser...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/renderer_host/render_view_host_observer.h" #include "content/browser/renderer_host/render_view_host.h" RenderViewHostObser...
Fix invalid write in RenderViewHostObserver.
Fix invalid write in RenderViewHostObserver. TBR=avi Review URL: http://codereview.chromium.org/6813065 git-svn-id: http://src.chromium.org/svn/trunk/src@81023 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 0e1a5286d67cad9026e6ce23998df26f404008e6
C++
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
c1de743c704105814306ef7b6b90a9782cdd15fc
tests/main.cpp
tests/main.cpp
#define CATCH_CONFIG_RUNNER #include "Catch/catch.hpp" #include <memory> #include "decoration.hpp" #include "printing.hpp" #include "TestUtils.hpp" int main(int argc, const char *argv[]) { PrintingSettings::set(std::make_shared<TestSettings>()); decor::disableDecorations(); // Remove destination direc...
#define CATCH_CONFIG_RUNNER #include "Catch/catch.hpp" #include <boost/algorithm/string/predicate.hpp> #include <cstdlib> #include <cstring> #include <memory> #include "decoration.hpp" #include "printing.hpp" #include "TestUtils.hpp" int main(int argc, const char *argv[]) { // Drop all `GIT_*` environment var...
Drop all GIT_* variables in tests
Drop all GIT_* variables in tests They take precedence when `git` is run in tests and break those tests.
C++
agpl-3.0
xaizek/uncov,xaizek/uncov,xaizek/uncov,xaizek/uncov,xaizek/uncov
33c2b380a4bcfba91b05e7fe9aac72b2d9b7a884
Builds/BuildMultipleObjects.cpp
Builds/BuildMultipleObjects.cpp
#include "../src/Sphere.h" #include "../src/Plane.h" void World::build() { vp.set_hres(200); vp.set_vres(200); vp.set_pixel_size(1.0); tracerPtr = new MultipleObjects(this); backgroundColor = RGBColor(0.0f, 0.0f, 0.0f); Sphere* sphere_ptr = new Sphere; sphere_ptr->setCenter(glm::vec3(0.0f, -25.0f, 0.0f)); s...
#include "../src/Sphere.h" #include "../src/Plane.h" #include <iostream> using namespace std; void World::build() { vp.set_hres(200); vp.set_vres(200); vp.set_pixel_size(1.0); tracerPtr = new MultipleObjects(this); backgroundColor = RGBColor(0.0f, 0.0f, 0.0f); Sphere* sphere_ptr = new Sphere; sphere_ptr->se...
Make some small changes on the code without changing its semantics
Make some small changes on the code without changing its semantics
C++
mit
jensmcatanho/raytracer,jensmcatanho/raytracer
60021e16292fb6851b314ce10c2f0b2eca6981d3
chrome/browser/extensions/extension_toolstrip_apitest.cc
chrome/browser/extensions/extension_toolstrip_apitest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" // Disabled, http://crbug.com/30151. IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Tools...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" // Disabled, http://crbug.com/30151 (Linux and ChromeOS), // http://crbug.com/35034 (others)...
Update bug reference link in ExtensionApiTest.Toolstrip
Update bug reference link in ExtensionApiTest.Toolstrip TBR=erikkay TEST=no code change BUG=30151, 35034 Review URL: http://codereview.chromium.org/580015 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@38394 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
3201da791db912012f89b72781ef26e694f015b4
examples/mimetypefinder/main.cpp
examples/mimetypefinder/main.cpp
#include "qmimedatabase.h" #include <QtCore/QCoreApplication> #include <QtCore/QFile> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); if (argc <= 1) { printf( "No filename specified\n" ); return 1; } QString option; int fnPos = 1; if (argc > 2) { opt...
#include "qmimedatabase.h" #include <QtCore/QCoreApplication> #include <QtCore/QFile> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); if (argc <= 1) { printf( "No filename specified\n" ); return 1; } QString option; int fnPos = 1; if (argc > 2) { opt...
Add option -f (file name only)
Add option -f (file name only)
C++
lgpl-2.1
d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,qtproject/playground-mimetypes,qtproject/p...
7ed83ca1b0b7acbfae894befc258a6bf564425a5
numerics/rand/rand.eng/rand.eng.lcong/seed_sseq.pass.cpp
numerics/rand/rand.eng/rand.eng.lcong/seed_sseq.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 a couple of bugs in linear_congruential_engine::seed. Regression test added.
Fix a couple of bugs in linear_congruential_engine::seed. Regression test added. git-svn-id: 273b07cebdae5845b4a75aae04570b978db9eb50@182421 91177308-0d34-0410-b5e6-96231b3b80d8
C++
bsd-3-clause
lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx
21c256eec614ff0440dab2d3bafb1428b65b5d7a
source/gloperate/source/painter/PipelineOutputCapability.cpp
source/gloperate/source/painter/PipelineOutputCapability.cpp
#include <gloperate/painter/PipelineOutputCapability.h> #include <gloperate/base/collection.hpp> #include <gloperate/pipeline/AbstractPipeline.h> namespace gloperate { /** * @brief * Constructor */ PipelineOutputCapability::PipelineOutputCapability(const gloperate::AbstractPipeline & pipeline) : AbstractOut...
#include <gloperate/painter/PipelineOutputCapability.h> #include <gloperate/base/collection.hpp> #include <gloperate/pipeline/AbstractPipeline.h> namespace gloperate { /** * @brief * Constructor */ PipelineOutputCapability::PipelineOutputCapability(const gloperate::AbstractPipeline & pipeline) : AbstractOut...
Fix compilation for GCC 4.8.2
Fix compilation for GCC 4.8.2
C++
mit
p-otto/gloperate,Beta-Alf/gloperate,Beta-Alf/gloperate,lanice/gloperate,hpicgs/gloperate,Beta-Alf/gloperate,cginternals/gloperate,j-o/gloperate,p-otto/gloperate,hpicgs/gloperate,p-otto/gloperate,lanice/gloperate,cginternals/gloperate,hpi-r2d2/gloperate,hpicgs/gloperate,Beta-Alf/gloperate,p-otto/gloperate,cginternals/gl...
90afe08703fa26031be2dbfed0effe6a09843968
src/nadam/types.cpp
src/nadam/types.cpp
#include "types.h" #include <cassert> namespace nadam { MessageInfo::MessageInfo(std::string name, uint32_t size, bool isVariableSize) : name{name}, size{size}, isVariableSize{isVariableSize}, hash{constructHash(name, size, isVariableSize)} { assert(name.length()); } util::sha1::hash MessageInfo::constructHash(c...
#include "types.h" #include <cassert> namespace nadam { MessageInfo::MessageInfo(std::string name, uint32_t size, bool isVariableSize) : name(name), size(size), isVariableSize(isVariableSize), hash(constructHash(name, size, isVariableSize)) { assert(name.length()); } util::sha1::hash MessageInfo::constructHash(c...
Make initializer list compatible with older GCC
Make initializer list compatible with older GCC
C++
mit
isrvoid/utilcpp,isrvoid/utilcpp
e3056e80237d707e46364a06f5c379abfce35f75
Shell/commands/RemoteCommand.cpp
Shell/commands/RemoteCommand.cpp
#include <iostream> #include "Shell.h" #include "RemoteCommand.h" namespace RhIO { RemoteCommand::RemoteCommand(std::string fullName_, std::string desc_) : fullName(fullName_), desc(desc_), origin(""), name("") { auto found = fullName.find_last_of("/"); if (found > 0) { orig...
#include <iostream> #include "Shell.h" #include "RemoteCommand.h" namespace RhIO { RemoteCommand::RemoteCommand(std::string fullName_, std::string desc_) : fullName(fullName_), desc(desc_), origin(""), name("") { auto found = fullName.find_last_of("/"); if (found != std::string::npos) {...
Fix in Remote command name parsing
Fix in Remote command name parsing
C++
mit
Rhoban/RhIO
52de4e0e6a00a475325d7f445f8e9a04dc52f68e
src/listener.cpp
src/listener.cpp
#include "listener.h" #include "log.h" #include "buffers.h" void conditionalEnqueue(QUEUE_TYPE(uint8_t)* queue, uint8_t* message, int messageSize) { if(queue_available(queue) < messageSize + 2) { debug("Dropped incoming CAN message -- send queue (at %p) full\r\n", queue); re...
#include "listener.h" #include "log.h" #include "buffers.h" bool conditionalEnqueue(QUEUE_TYPE(uint8_t)* queue, uint8_t* message, int messageSize) { if(queue_available(queue) < messageSize + 2) { return false; } for(int i = 0; i < messageSize; i++) { QUEUE_PUSH(uint8_t, queue, (uin...
Print a queue-specific debug message when dropping CAN messages.
Print a queue-specific debug message when dropping CAN messages.
C++
bsd-3-clause
mgiannikouris/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware
af271b83ad74f379f42a983b440823670e06926a
chrome/browser/in_process_webkit/webkit_thread_unittest.cc
chrome/browser/in_process_webkit/webkit_thread_unittest.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/in_process_webkit/webkit_thread.h" #include "testing/gtest/include/gtest/gtest.h" TEST(WebKitThreadTest, ExposedInChromeThre...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/in_process_webkit/webkit_thread.h" #include "testing/gtest/include/gtest/gtest.h" TEST(WebKitThreadTest, DISABLED_ExposedInC...
Disable WebKitThreadTest.ExposedInChromeThread, due to subsequent assert.
Disable WebKitThreadTest.ExposedInChromeThread, due to subsequent assert. BUG=46087 TEST=see bug TBR=evan Review URL: http://codereview.chromium.org/2777001 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@49174 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Chilledheart/chromium,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,rogerwang/chromium,anirudhSK/chromium,markYoungH/chromium.src,patrickm/chromium.src,anirudhSK/chromium,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spa...
1d05b94b5b22ba9de7d48c7b48447c89cd3ad8a1
content/browser/renderer_host/render_widget_host_view_android.cc
content/browser/renderer_host/render_widget_host_view_android.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/renderer_host/render_widget_host_view.h" #include "base/logging.h" // static void RenderWidgetHostView::GetDefaultScreenIn...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/renderer_host/render_widget_host_view.h" #include "base/logging.h" // static void RenderWidgetHostViewBase::GetDefaultScre...
Fix compile error when building content_unittests for android.
Fix compile error when building content_unittests for android. In CL http://codereview.chromium.org/9307055 RenderWidgetHostView was split into two classes. The android stubs weren't updated causing a compile error when building content_unittests locally. BUG=None TEST= Review URL: http://codereview.chromium.org/94...
C++
bsd-3-clause
ltilve/chromium,robclark/chromium,pozdnyakov/chromium-crosswalk,robclark/chromium,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,keishi/chromium,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,anirudhSK/chromium,h...
b025790207ff15757d745a07a7ffa0a130fcb937
src/xenia/gpu/vulkan/vulkan_gpu_flags.cc
src/xenia/gpu/vulkan/vulkan_gpu_flags.cc
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2016 Ben Vanik. All rights reserved. ...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2016 Ben Vanik. All rights reserved. ...
Disable Vulkan native MSAA by default for now.
Disable Vulkan native MSAA by default for now.
C++
bsd-3-clause
sephiroth99/xenia,ObsidianGuardian/xenia,sabretooth/xenia,sephiroth99/xenia,sabretooth/xenia,sabretooth/xenia,sephiroth99/xenia,maxton/xenia,ObsidianGuardian/xenia,ObsidianGuardian/xenia,maxton/xenia,maxton/xenia
39166a30c1ded7b6feab307eea24925bd3f41360
sources/testing/main.cpp
sources/testing/main.cpp
#include <gtest/gtest.h> TEST(MathTest, TwoPlusTwoEqualsFour) { EXPECT_EQ(2 + 2, 4); } int main(int argc, char **argv) { ::testing::InitGoogleTest( &argc, argv ); return RUN_ALL_TESTS(); }
#include <gtest/gtest.h> TEST(MathTest, TwoPlusTwoEqualsFour) { EXPECT_EQ(2 + 2, 5); } int main(int argc, char **argv) { ::testing::InitGoogleTest( &argc, argv ); return RUN_ALL_TESTS(); }
Make sure Travis detects failing test
Make sure Travis detects failing test
C++
apache-2.0
sillsm/econix,sillsm/econix
6813bccd9f6b1534c011907feef3226c003d8921
RgTools/avs2x.cpp
RgTools/avs2x.cpp
#include "removegrain.h" #include "clense.h" #include "repair.h" #include "vertical_cleaner.h" const AVS_Linkage *AVS_linkage = nullptr; extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit3(IScriptEnvironment* env, const AVS_Linkage* const vectors) { AVS_linkage = vectors; env->AddFun...
#include "removegrain.h" #include "clense.h" #include "repair.h" #include "vertical_cleaner.h" const AVS_Linkage *AVS_linkage = nullptr; extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit3(IScriptEnvironment* env, const AVS_Linkage* const vectors) { AVS_linkage = vectors; env->AddFun...
Remove 2 from all filters' names
Remove 2 from all filters' names
C++
mit
tp7/RgTools
8d6b71d8fc65734faeadc679e59f028e51d6fecf
Sprite.cpp
Sprite.cpp
#include "Sprite.h" Sprite::Sprite() : Node() { // Image m_sprite_path = ""; } Sprite::Sprite(std::string p_sprite_path) : Sprite() { m_sprite_path = p_sprite_path; } Sprite::~Sprite() {} std::string Sprite::getSpritePath() { return m_sprite_path; }
#include "Sprite.h" Sprite::Sprite() : Node() { // Image m_sprite_path = ""; } Sprite::Sprite(std::string p_sprite_path) : Node() { // Image m_sprite_path = p_sprite_path; } Sprite::~Sprite() {} std::string Sprite::getSpritePath() { return m_sprite_path; }
Use more useful ancestor constructor
Use more useful ancestor constructor
C++
mit
maksym-gryb/SDL_Wrapper,maksym-gryb/SDL_Wrapper
cae712af8be51523e90dbb98ff1d42fcd7183e33
chrome/renderer/renderer_logging_linux.cc
chrome/renderer/renderer_logging_linux.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_logging.h" #include "base/logging.h" #include "googleurl/src/gurl.h" namespace renderer_logging { // Sets the UR...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_logging.h" #include "base/logging.h" #include "googleurl/src/gurl.h" namespace renderer_logging { // Sets the UR...
Comment out a very annoying NOTIMPLEMENTED().
Comment out a very annoying NOTIMPLEMENTED(). Review URL: http://codereview.chromium.org/56183 git-svn-id: http://src.chromium.org/svn/trunk/src@13024 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 35737b2c9e80659f67896930a27718af168a8b5f
C++
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
1c04a73f9b4cb05add263762d5ff3839065a3bab
doc/snippets/MatrixBase_eval.cpp
doc/snippets/MatrixBase_eval.cpp
Matrix2f M = Matrix2f::Random(); Matrix2f m; m = M; cout << "Here is the matrix m:" << endl << m << endl; cout << "Now we want to replace m by its own transpose." << endl; cout << "If we do m = m.transpose(), then m becomes:" << endl; m = m.transpose() * 1; cout << m << endl << "which is wrong!" << endl; cout << "Now l...
Matrix2f M = Matrix2f::Random(); Matrix2f m; m = M; cout << "Here is the matrix m:" << endl << m << endl; cout << "Now we want to copy a column into a row." << endl; cout << "If we do m.col(1) = m.row(0), then m becomes:" << endl; m.col(1) = m.row(0); cout << m << endl << "which is wrong!" << endl; cout << "Now let us ...
Make snippet run successfully again: the snippet for 'eval' was taking m=m.transpose() as an example of code that needs an explicit call to eval(), but that doesn't work anymore now that we have the clever assert detecting aliasing issues.
Make snippet run successfully again: the snippet for 'eval' was taking m=m.transpose() as an example of code that needs an explicit call to eval(), but that doesn't work anymore now that we have the clever assert detecting aliasing issues.
C++
bsd-3-clause
cjntaylor/eigen,pthulhu/eigen,cjntaylor/eigen,pthulhu/eigen,pthulhu/eigen,cjntaylor/eigen,pthulhu/eigen,cjntaylor/eigen,pthulhu/eigen
0a3d273045fe909a6750b7408058504a4c042442
src/CogServer/CogServerMain.cc
src/CogServer/CogServerMain.cc
#include "CogServer.h" #include "QueryProcessor.h" #include "WordSenseProcessor.h" using namespace opencog; int main(int argc, char *argv[]) { CogServer server; // Cheapo hack to get the query processory up and running. // XXX fix me with some more permanent, appropriate solution. QueryProcessor *qp ...
#include "CogServer.h" #include "QueryProcessor.h" #include "WordSenseProcessor.h" #include "Config.h" using namespace opencog; static void usage(char* progname) { cerr << "Usage: " << progname << " [-c <config-file>]\n\n"; } int main(int argc, char *argv[]) { // check command line if ((argc == 1) || ((a...
Add support to optionally load configuration parameters from a file at runtime by using the option "-c".
Add support to optionally load configuration parameters from a file at runtime by using the option "-c".
C++
agpl-3.0
inflector/atomspace,rohit12/opencog,AmeBel/atomspace,cosmoharrigan/opencog,cosmoharrigan/atomspace,shujingke/opencog,AmeBel/opencog,Tiggels/opencog,eddiemonroe/opencog,printedheart/atomspace,cosmoharrigan/atomspace,AmeBel/opencog,williampma/opencog,sanuj/opencog,ArvinPan/opencog,ArvinPan/atomspace,ArvinPan/opencog,rose...
f2ecff9e0a648e2c6be3041bab279a66103e272a
tests/Returning.cpp
tests/Returning.cpp
#include <iostream> #include <sqlpp11/postgresql/postgresql.h> #include <sqlpp11/postgresql/insert.h> //#include <sqlpp11/sqlpp11.h> #include "Sample.h" int Returning(int argc, char **argv) { // Configuration auto config = std::make_shared<sqlpp::postgresql::connection_config>(); // DB connection sqlpp::po...
#include <iostream> #include <sqlpp11/postgresql/postgresql.h> #include <sqlpp11/postgresql/insert.h> //#include <sqlpp11/sqlpp11.h> #include "Sample.h" int Returning(int argc, char **argv) { // Configuration //auto config = std::make_shared<sqlpp::postgresql::connection_config>(); // DB connection //sqlpp...
Disable database connection for now.
Disable database connection for now.
C++
bsd-2-clause
matthijs/sqlpp11-connector-postgresql,matthijs/sqlpp11-connector-postgresql,cszawisza/sqlpp11-connector-postgresql,cszawisza/sqlpp11-connector-postgresql,cszawisza/sqlpp11-connector-postgresql,matthijs/sqlpp11-connector-postgresql
ac18debd3e331695bab166e3d2e1d5f3ce731d37
engine/components/other/btcomponents/perceptioninfoprivate.cpp
engine/components/other/btcomponents/perceptioninfoprivate.cpp
#include "perceptioninfoprivate.h" #include "btperceptioninfoscriptable.h" using namespace GluonEngine; PerceptionInfoPrivate::PerceptionInfoPrivate(QObject * parent) : QSharedData() { info = new btPerceptionInfoScriptable(parent); QScriptValue extensionObject = engine.globalObject(); script = 0; } PerceptionIn...
#include "perceptioninfoprivate.h" #include "btperceptioninfoscriptable.h" using namespace GluonEngine; PerceptionInfoPrivate::PerceptionInfoPrivate(QObject * parent) : QSharedData() { info = new btPerceptionInfoScriptable(parent); QScriptValue extensionObject = engine.globalObject(); script = 0; } PerceptionIn...
Fix an initialization order issue in the copy ctor to avoid the warning
Fix an initialization order issue in the copy ctor to avoid the warning CCMAIL: d033e22ae348aeb5660fc2140aec35850c4da997@leinir.dk
C++
lgpl-2.1
KDE/gluon,KDE/gluon,KDE/gluon,KDE/gluon
ce4d8b3206df4f373f26cfbf247fcc434df3d503
src/gamefw/convenience/simplegameworld.cpp
src/gamefw/convenience/simplegameworld.cpp
#include "simplegameworld.h" void SimpleGameWorld::addEntity(shared_ptr< gamefw::Entity > entity) { m_entity_list.push_back(entity); } void SimpleGameWorld::update() { foreach(shared_ptr<gamefw::Entity> entity, m_entity_list) { entity->m_position.x += entity->m_velocity_local.x * ...
#include "simplegameworld.h" void SimpleGameWorld::addEntity(shared_ptr< gamefw::Entity > entity) { m_entity_list.push_back(entity); } void SimpleGameWorld::update() { foreach(shared_ptr<gamefw::Entity> entity, m_entity_list) { entity->m_position.x += entity->m_velocity_local.x * ...
Add orientation update in SimpleGameWorld::Update.
Add orientation update in SimpleGameWorld::Update.
C++
mit
myrjola/obsbul,myrjola/obsbul,myrjola/obsbul
0f507b479eb886c4f6b4e6e8d0ff84f2288446bb
io_token_text.cpp
io_token_text.cpp
#include "util/file_piece.hh" #include "util/file.hh" #include "util/scoped.hh" #include "util/string_piece.hh" #include "util/tokenize_piece.hh" #include "util/murmur_hash.hh" #include "util/probing_hash_table.hh" #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fstream> #include <iostream>...
#include "util/file_piece.hh" #include "util/file.hh" #include "util/scoped.hh" #include "util/string_piece.hh" #include "util/tokenize_piece.hh" #include "util/murmur_hash.hh" #include "util/probing_hash_table.hh" #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fstream> #include <iostream>...
Fix reading from archived file in example
Fix reading from archived file in example
C++
bsd-2-clause
XapaJIaMnu/ProbingPT,XapaJIaMnu/ProbingPT,XapaJIaMnu/ProbingPT,XapaJIaMnu/ProbingPT
848de750514ac608d7c16cbf52fc4cdb5daa5b5e
tensorflow/core/tpu/kernels/tpu_compilation_cache_metrics.cc
tensorflow/core/tpu/kernels/tpu_compilation_cache_metrics.cc
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add LIBTFTPU macro qualifier to the definition of the TpuCompilationCacheMetrics.
Add LIBTFTPU macro qualifier to the definition of the TpuCompilationCacheMetrics. PiperOrigin-RevId: 319157570 Change-Id: I0ee8c7036ec37eaba0cf661e5448c5cbc599d6df
C++
apache-2.0
aam-at/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,tensorflow/tensorflow-pywrap...
0d0de09b85ea80b4da888d5555cba1240e119f4e
test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
// Clang on MacOS can find libc++ living beside the installed compiler. // This test makes sure our libTooling-based tools emulate this properly with // fixed compilation database. // // RUN: rm -rf %t // RUN: mkdir %t // // Install the mock libc++ (simulates the libc++ directory structure). // RUN: cp -r %S/Inputs/moc...
// Clang on MacOS can find libc++ living beside the installed compiler. // This test makes sure our libTooling-based tools emulate this properly with // fixed compilation database. // // RUN: rm -rf %t // RUN: mkdir %t // // Install the mock libc++ (simulates the libc++ directory structure). // RUN: cp -r %S/Inputs/moc...
Add a REQUIRES: darwin line for a mac test.
Add a REQUIRES: darwin line for a mac test. This test, apparently for macs, fails on Windows as lit can't emulate the shell subprocess $(which...) correctly. Some other netbsd and linux buildbots also fail here. Limit to macs as a temporary workaround. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@351360 9117...
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
d94913984d1a173a4875a64806a278927f5931ab
src/texture.cpp
src/texture.cpp
#include "texture.hpp" #include <string> #include <SDL_image.h> const std::string Texture::filename(const std::string &name) { return "/textures/" + name; } Texture::Texture(const Adapter &adapter, const std::string &name) { SDL_Surface *surface = IMG_Load(adapter.filename<Texture>(name).c_str()); glGenTextu...
#include "texture.hpp" #include <string> #define STB_IMAGE_IMPLEMENTATION #define STBI_ASSERT(x) #define STBI_ONLY_PNG #include <stb_image.h> const std::string Texture::filename(const std::string &name) { return "/textures/" + name; } Texture::Texture(const Adapter &adapter, const std::string &name) { GLsizei w...
Use STB Image instead of SDL Image
Use STB Image instead of SDL Image
C++
mit
meoweg/matabstrix
77a372b727aaa5272977490a4360b67fba936401
cpp/ylikuutio/geometry/line.cpp
cpp/ylikuutio/geometry/line.cpp
#include "line.hpp" // Include standard headers #include <cmath> // NAN, std::isnan, std::pow #include <string> // std::string #include <vector> // std::vector namespace geometry { // constructor. // can be used for creating n-dimensional lines. Line::Line(std::vector<float> point1, std::vector<...
#include "line.hpp" // Include standard headers #include <cmath> // NAN, std::isnan, std::pow #include <string> // std::string #include <vector> // std::vector namespace geometry { // constructor. // can be used for creating n-dimensional lines. Line::Line(std::vector<float> point1, std::vector<...
Define variables `are_points_defined`, `point1`, `point2`.
Define variables `are_points_defined`, `point1`, `point2`. modified: cpp/ylikuutio/geometry/line.cpp
C++
agpl-3.0
nrz/ylikuutio,nrz/ylikuutio,nrz/ylikuutio,nrz/ylikuutio
6bcf9514002edfb13fe6d6fe12d0f003e941ac35
UWPInjector/source/MinConsole.cpp
UWPInjector/source/MinConsole.cpp
#include <MinConsole.hpp> #include <Windows.h> namespace MinConsole { void* GetOutputHandle() { static void* Handle = nullptr; if( Handle == nullptr ) { Handle = GetStdHandle(STD_OUTPUT_HANDLE); } return Handle; } void SetTextColor(Color NewColor) { SetConsoleTextAttribute( GetOutputHandle(), static_cas...
#include <MinConsole.hpp> #include <Windows.h> #include <mutex> namespace MinConsole { void* GetOutputHandle() { static void* Handle = nullptr; std::once_flag HandleCached; std::call_once(HandleCached, [=]() { Handle = GetStdHandle(STD_OUTPUT_HANDLE); }); return Handle; } void SetTextColor(Color NewColor) ...
Set StdHandle initialization with with call_once
Set StdHandle initialization with with call_once
C++
mit
Wunkolo/UWPDumper
969cfbfc239d59f129252acf912ca068e56c27ad
chrome/browser/sync/glue/chrome_report_unrecoverable_error.cc
chrome/browser/sync/glue/chrome_report_unrecoverable_error.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/sync/glue/chrome_report_unrecoverable_error.h" #include "base/rand_util.h" #include "build/build_config.h" #if defined(OS_W...
// 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/sync/glue/chrome_report_unrecoverable_error.h" #include "base/rand_util.h" #include "build/build_config.h" #if defined(OS_W...
Revert 191028 "[Sync] Disable unrecoverable error uploading."
Revert 191028 "[Sync] Disable unrecoverable error uploading." Reverted on ToT (patch was merged to 27 branch) > [Sync] Disable unrecoverable error uploading. > > Disabling for 27 branch. > > BUG=134607 > TBR=rlarocque@chromium.org > > Review URL: https://codereview.chromium.org/12770030 TBR=zea@chromium.org Revie...
C++
bsd-3-clause
chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,M4sse/chromium.src,chuan9/chromium-crosswalk,Just-D/chromium-1,dednal/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,littlstar/chromium.s...
50e6bd51340674844ee8e615aa9eb99b93cd685d
ui/base/l10n/l10n_util_posix.cc
ui/base/l10n/l10n_util_posix.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 <string> #if defined(OS_CHROMEOS) #include "base/basictypes.h" #include "base/string_util.h" #endif namespace l10n_util { // Return true b...
// 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 <string> #if defined(OS_CHROMEOS) #include "base/basictypes.h" #include "base/string_util.h" #endif namespace l10n_util { // Return true b...
Enable Kannada, Farsi and Telugu on CrOS
Enable Kannada, Farsi and Telugu on CrOS BUG=chromium-os:21717 TEST=On login screen, Kannada, Telugu and Farsi can be selected. Review URL: http://codereview.chromium.org/8301012 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@105835 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ado...
089e677e51f578d606dbb6b1568e49bc926a9ffd
Wangscape/OptionsManager.cpp
Wangscape/OptionsManager.cpp
#include "OptionsManager.h" #include <fstream> #include <boost/filesystem.hpp> #include <spotify/json.hpp> #include "codecs/OptionsCodec.h" OptionsManager::OptionsManager(std::string optionsFilename) { loadOptions(optionsFilename); } void OptionsManager::loadOptions(std::string optionsFilename) { std::ifs...
#include "OptionsManager.h" #include <fstream> #include <iostream> #include <boost/filesystem.hpp> #include <spotify/json.hpp> #include "codecs/OptionsCodec.h" OptionsManager::OptionsManager(std::string optionsFilename) { loadOptions(optionsFilename); } void OptionsManager::loadOptions(std::string optionsFile...
Print exception details on decode failure
Print exception details on decode failure
C++
mit
serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape
f111224f349a11da878f0fc390c69bf443297ed2
3RVX/Skin/SkinManager.cpp
3RVX/Skin/SkinManager.cpp
#include "SkinManager.h" #include "Skin.h" SkinManager *SkinManager::instance; SkinManager *SkinManager::Instance() { if (instance == NULL) { instance = new SkinManager(); } return instance; } SkinManager::~SkinManager() { delete _skin; } void SkinManager::LoadSkin(std::wstring skinXML) { ...
#include "SkinManager.h" #include "Skin.h" #include "SkinV3.h" SkinManager *SkinManager::instance; SkinManager *SkinManager::Instance() { if (instance == NULL) { instance = new SkinManager(); } return instance; } SkinManager::~SkinManager() { delete _skin; } void SkinManager::LoadSkin(std::...
Load a v3 skin for now
Load a v3 skin for now
C++
bsd-2-clause
malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX
102b89dd5821036179b0419685b31bb35abcd9cd
test/tsan/Linux/check_memcpy.cc
test/tsan/Linux/check_memcpy.cc
// Test that verifies TSan runtime doesn't contain compiler-emitted // memcpy/memmove calls. It builds the binary with TSan and passes it to // check_memcpy.sh script. // RUN: %clangxx_tsan -O1 %s -o %t // RUN: llvm-objdump -d %t | FileCheck %s int main() { return 0; } // CHECK-NOT: callq {{.*<(__interceptor_)?mem...
// Test that verifies TSan runtime doesn't contain compiler-emitted // memcpy/memmove calls. It builds the binary with TSan and passes it to // check_memcpy.sh script. // RUN: %clangxx_tsan -O1 %s -o %t // RUN: llvm-objdump -d %t | FileCheck %s // REQUIRES: compiler-rt-optimized int main() { return 0; } // CHECK-...
Disable test with debug runtime
[tsan] Disable test with debug runtime Test expects at least -O1 compiled runtime. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@308121 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
e85bb2c4c33a63f51fd5cfb539a17db79ebac88b
src/data/JSON.cpp
src/data/JSON.cpp
#include "JSON.h" #include <string> namespace ouroboros { JSON::JSON() :mpArr(nullptr) {} JSON::JSON(const std::string& aJSON) :mpArr(parse_json2(aJSON.c_str(), aJSON.length())) {} JSON::~JSON() { free(mpArr); } bool JSON::exists(const std::string& aPath) const { if (mpArr) { const json_token...
#include "JSON.h" #include <string> #include <cstdlib> namespace ouroboros { JSON::JSON() :mpArr(nullptr) {} JSON::JSON(const std::string& aJSON) :mpArr(parse_json2(aJSON.c_str(), aJSON.length())) {} JSON::~JSON() { free(mpArr); } bool JSON::exists(const std::string& aPath) const { if (mpArr) { ...
Add cstdlib so that the code compiles on OSX
Add cstdlib so that the code compiles on OSX
C++
mit
TeamCobra/ouroboros,TeamCobra/ouroboros,TeamCobra/ouroboros,TeamCobra/ouroboros,TeamCobra/ouroboros,TeamCobra/ouroboros
58257612265e77de8b4988f70c25dec7124719f3
src/core/hooks.cc
src/core/hooks.cc
#include <string> #include <ccspec/core/hooks.h> #include <ccspec/core/example_group.h> namespace ccspec { namespace core { void before(std::string entity, Hook hook) { ExampleGroup* parent_group = groups_being_defined.top(); if (entity == "each") parent_group->addBeforeEachHook(hook); else ...
#include <string> #include <ccspec/core/hooks.h> #include <ccspec/core/example_group.h> namespace ccspec { namespace core { void before(std::string entity, Hook hook) { ExampleGroup* parent_group = groups_being_defined.top(); if (entity == "each" || entity == "example") parent_group->addBeforeEachHook...
Add "each" alias that's new in RSpec 3
Add "each" alias that's new in RSpec 3
C++
mit
tempbottle/ccspec,tempbottle/ccspec,zhangsu/ccspec,tempbottle/ccspec,zhangsu/ccspec,zhangsu/ccspec,michaelachrisco/ccspec,michaelachrisco/ccspec,michaelachrisco/ccspec
034a037a5f59ddcb08f77d4208ff9b15b7e7bea2
src/clang-cache.cpp
src/clang-cache.cpp
#include <client/client.h> #include <server/server.h> #include <err.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char **argv) { int separator; char** compile_argv; separator = 0; for (int i = 1; i < argc; ++i) { if (strcmp(argv[i], "--") == 0) { separator = i; ...
#include <client/client.h> #include <server/server.h> #include <err.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char **argv) { int separator; char** compile_argv; separator = 0; for (int i = 1; i < argc; ++i) { if (strcmp(argv[i], "--") == 0) { separator = i; ...
Add --start and --stop commands to manage the server.
Add --start and --stop commands to manage the server.
C++
bsd-3-clause
sas/clang-cache,sas/clang-cache
649e69dd22bc9fdb9b85e504985aa4ff16aaf8a2
test/libcxx/utilities/utility/pairs/pairs.pair/default.pass.cpp
test/libcxx/utilities/utility/pairs/pairs.pair/default.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 test failure on GCC 4.9
[libcxx] Fix test failure on GCC 4.9 GCC 4.9 seems to think that a constexpr default constructor implies the constructor to be noexcept. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@348850 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
df48ddf97fb5a1310c99f3ece5255477dc1bbbdb
test/CXX/temp/temp.decls/temp.friend/p4.cpp
test/CXX/temp/temp.decls/temp.friend/p4.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s template<typename T> struct X1 { friend void f6(int) { } // expected-error{{redefinition of}} \ // expected-note{{previous definition}} }; X1<int> x1a; X1<float> x1b; // expected-note {{in instantiation of}}
// RUN: %clang_cc1 -fsyntax-only -verify %s template<typename T> struct X1 { friend void f6(int) { } // expected-error{{redefinition of}} \ // expected-note{{previous definition}} }; X1<int> x1a; X1<float> x1b; // expected-note {{in instantiation of}} template<typename T> struct X2 { o...
Add test case from PR6952, which now works (thanks to Gabor).
Add test case from PR6952, which now works (thanks to Gabor). git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@112477 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
a7683f116b988f519549a34e2e743573746b8913
hello.cpp
hello.cpp
#include <iostream> using namespace std; class Greeting { protected: string s; public: Greeting(){ s = "Hello, "; } virtual ~Greeting() { } virtual void printGreeting() = 0; }; class GitHubGreeting : public Greeting { public: GitHubGreeting() {...
#include <iostream> using namespace std; class Greeting { protected: string s; public: Greeting(){ s = "Hello, "; } virtual ~Greeting() { } virtual void printGreeting() = 0; }; class GitHubGreeting : public Greeting { public: GitHubGreeting() {...
Fix the copy constructors to call the base constructor
Fix the copy constructors to call the base constructor
C++
mit
luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github,luke-ho/hello-github
34a3fe332106a5275de60877190204556c1a40cd
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
dednal/chromium.src,pozdnyakov/chromium-crosswalk,rogerwang/chromium,anirudhSK/chromium,keishi/chromium,keishi/chromium,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,robclark/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,Just-D/chromium...
72a6bd0556099b119732866d4a69c5dece0f6427
Models/Policies/tests/param_policy2_test.cc
Models/Policies/tests/param_policy2_test.cc
#include "gtest/gtest.h" #include "Models/GaussianModel.hpp" #include "test_utils/test_utils.hpp" #include <fstream> namespace { using namespace BOOM; using std::endl; using std::cout; class ParamPolicy2Test : public ::testing::Test { protected: ParamPolicy2Test() { GlobalRng::rng.seed(8675309);...
#include "gtest/gtest.h" #include "Models/GaussianModel.hpp" #include "test_utils/test_utils.hpp" #include <fstream> namespace { using namespace BOOM; using std::endl; using std::cout; class ParamPolicy2Test : public ::testing::Test { protected: ParamPolicy2Test() { GlobalRng::rng.seed(8675309);...
Fix a typo in a test case for ParamPolicy2.
Fix a typo in a test case for ParamPolicy2.
C++
lgpl-2.1
steve-the-bayesian/BOOM,steve-the-bayesian/BOOM,steve-the-bayesian/BOOM,steve-the-bayesian/BOOM,steve-the-bayesian/BOOM
0a046634f22a916f3fa869893226be63566fd65f
source/glkernel/source/test.cpp
source/glkernel/source/test.cpp
#pragma once #include <glkernel/Kernel.h> #include <glm/vec2.hpp> #include <glkernel/Kernel.h> #include <glkernel/uniform_noise.h> #include <glkernel/normal_noise.h> #include <glkernel/square_points.hpp> namespace glkernel { void test() { { auto noise = glkernel::Kernel<float>(); } { auto noise = gl...
#include <glkernel/Kernel.h> #include <glm/vec2.hpp> #include <glkernel/Kernel.h> #include <glkernel/uniform_noise.h> #include <glkernel/normal_noise.h> #include <glkernel/square_points.hpp> namespace glkernel { void test() { { auto noise = glkernel::Kernel<float>(); } { auto noise = glkernel::Kerne...
Remove pragma once from cpp file
Remove pragma once from cpp file
C++
mit
cginternals/glkernel,simonkrogmann/glkernel,cginternals/glkernel,cginternals/glkernel,cginternals/glkernel,cginternals/glkernel
7ead4a5d65f4ec70a6f944d972bea27a8a8e05ec
src/openni_laserscan_node.cpp
src/openni_laserscan_node.cpp
#include "ros/ros.h" #include "sensor_msgs/LaserScan.h" #include "OpenniLaserScanner.h" class MyMwListener : public OpenniLaser::OpenniLaserScanner::Listener { public: sensor_msgs::LaserScan scan; void readyForNextData(OpenniLaser::OpenniLaserScanner* scanner) { openni::VideoFrameRef frame; scan = scanner->getN...
#include "ros/ros.h" #include "sensor_msgs/LaserScan.h" #include "OpenniLaserScanner.h" class MyMwListener : public OpenniLaser::OpenniLaserScanner::Listener { public: sensor_msgs::LaserScan scan; void readyForNextData(OpenniLaser::OpenniLaserScanner* scanner) { openni::VideoFrameRef frame; scan = scanner->getN...
Set publishing fequenzy from 1 to 30 hz
Set publishing fequenzy from 1 to 30 hz
C++
mit
Flos/ros-openni2_laserscan,Flos/ros-openni2_laserscan
5caadeeb017a38bafbae340b41b5d71de5a5a5aa
AutowiringTest.cpp
AutowiringTest.cpp
#include "stdafx.h" #include "AutowiringTest.h" #include "Autowired.h" #include "TestFixtures/SimpleObject.h" #include "TestFixtures/SimpleReceiver.h" TEST_F(AutowiringTest, VerifyAutowiredFast) { // Add an object: m_create->Inject<SimpleObject>(); // Verify that AutowiredFast can find this object AutowiredFa...
#include "stdafx.h" #include "AutowiringTest.h" #include "Autowired.h" #include "TestFixtures/SimpleObject.h" #include "TestFixtures/SimpleReceiver.h" TEST_F(AutowiringTest, VerifyAutowiredFast) { // Add an object: m_create->Inject<SimpleObject>(); // Verify that AutowiredFast can find this object AutowiredFa...
Revert "Fixed incorrect autowiring test."
Revert "Fixed incorrect autowiring test." This reverts commit 1938e906243ae1f789e33cadcbd97bddd565592c.
C++
apache-2.0
leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring
0bb22417f05ef1eddcbfb80beff7363815c1ff67
net/base/network_change_notifier_helper.cc
net/base/network_change_notifier_helper.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 "net/base/network_change_notifier_helper.h" #include <algorithm> #include "base/logging.h" namespace net { namespace internal { NetworkCha...
// 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 "net/base/network_change_notifier_helper.h" #include <algorithm> #include "base/logging.h" namespace net { namespace internal { NetworkCha...
Disable DCHECK'ing that all NetworkChangeNotifiers are removed. BUG=34391
Disable DCHECK'ing that all NetworkChangeNotifiers are removed. BUG=34391 Review URL: http://codereview.chromium.org/560026 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@37982 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
8adab56396e4eb31de2b06958b4cbbb6178e85ac
extensions/WindowFunctionLib/source/TTRectangularWindow.cpp
extensions/WindowFunctionLib/source/TTRectangularWindow.cpp
/* * Rectangular Window Function Unit for Jamoma DSP * Copyright © 2009 by Trond Lossius * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTRectangularWindow.h" #define thisTTClass RectangularWindow #define thisTTClassName "re...
/* * Rectangular Window Function Unit for Jamoma DSP * Copyright © 2009 by Trond Lossius * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTRectangularWindow.h" #define thisTTClass RectangularWindow #define thisTTClassName "re...
Revert "Fixing a bug with rectangular window that would prevent it from being 0 at the end points"
Revert "Fixing a bug with rectangular window that would prevent it from being 0 at the end points" This reverts commit bfc5a0e6166c8d601378bfbb66bd1ea66fe30a3a.
C++
bsd-3-clause
eriser/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,jamoma/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,jamoma/JamomaCore,jamoma/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,eriser/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,eriser/JamomaCore,eriser/JamomaCore
7be2821be1b904488c2450e2bc9fec5e1932adbc
ouzel/core/raspbian/WindowResourceRasp.cpp
ouzel/core/raspbian/WindowResourceRasp.cpp
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <bcm_host.h> #include "WindowResourceRasp.hpp" #include "utils/Log.hpp" namespace ouzel { WindowResourceRasp::WindowResourceRasp() { bcm_host_init(); } WindowResourceRasp::~WindowResourceRasp() { ...
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <bcm_host.h> #include "WindowResourceRasp.hpp" #include "utils/Log.hpp" namespace ouzel { WindowResourceRasp::WindowResourceRasp() { bcm_host_init(); } WindowResourceRasp::~WindowResourceRasp() { ...
Use vc_ functions to get display size
Use vc_ functions to get display size
C++
unlicense
elnormous/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elvman/ouzel
71f12d763cc2da9cbd0791e04c17e0883a32f737
src/driver/servo_krs/src/servo_krs_node.cpp
src/driver/servo_krs/src/servo_krs_node.cpp
#include<ros/ros.h> #include<servo_msgs/IdBased.h> #include<ics3/ics> ics::ICS3* driver {nullptr}; ros::Publisher pub; void move(const servo_msgs::IdBased::ConstPtr& msg) { servo_msgs::IdBased result; try { result.angle = driver->move(msg->id, ics::Angle::newDegree(msg->angle)); result.id = msg->id; p...
#include<ros/ros.h> #include<servo_msgs/IdBased.h> #include<ics3/ics> ics::ICS3* driver {nullptr}; ros::Publisher pub; void move(const servo_msgs::IdBased::ConstPtr& msg) { servo_msgs::IdBased result; try { const auto& now_pos = driver->move(msg->id, ics::Angle::newDegree(msg->angle)); result.angle = std:...
Add std::move to all local value
Add std::move to all local value
C++
mit
agrirobo/arcsys2,agrirobo/arcsys2
57023d24199d5a6ec904630b1e3a31cd752f4de1
services/sleep/sleepserver/SleepServer.cpp
services/sleep/sleepserver/SleepServer.cpp
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <m...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <m...
Rename thrift methods from NWorker/NPoolThreads to NumIOWorker/NumCPUWorkerThreads for all remaining directories
Rename thrift methods from NWorker/NPoolThreads to NumIOWorker/NumCPUWorkerThreads for all remaining directories Summary: Use new, less confusing names for mentioned thrift methods. Codemod with 'Yes to All'. Reverted changes in thrift/ Reviewed By: yfeldblum Differential Revision: D4076812 fbshipit-source-id: 496...
C++
bsd-3-clause
yqzhang/treadmill,yqzhang/treadmill
f6ae82bc3bd51ae192fbda25cd814ff08b998aa6
ros_pkg_with_tests/src/test/test_square.cpp
ros_pkg_with_tests/src/test/test_square.cpp
#include "square.h" #include <gtest/gtest.h> TEST(TestSuite, squareTwo) { const double ret = square(2); ASSERT_EQ(5, ret); } TEST(TestSuite, squareFour) { const double ret = square(4.1); ASSERT_EQ(16.81, ret); } // Run all the tests that were declared with TEST() int main(int argc, char **argv){ testing::I...
#include "square.h" #include <gtest/gtest.h> TEST(TestSuite, squareTwo) { const double ret = square(2); ASSERT_EQ(4, ret); } TEST(TestSuite, squareFour) { const double ret = square(4.1); ASSERT_EQ(16.81, ret); } // Run all the tests that were declared with TEST() int main(int argc, char **argv){ testing::I...
Revert "Make sure failed tests actually fail."
Revert "Make sure failed tests actually fail." This reverts commit de0b36b9bdd42abfa1f5b05db1e814f0e278e919.
C++
bsd-3-clause
felixduvallet/ros-travis-integration,felixduvallet/ros-travis-integration,felixduvallet/ros-travis-integration
9f7369e6a9cdbba077a3e8724784df6a560b4f42
test/input/test_scxml_importer.cc
test/input/test_scxml_importer.cc
#include "../test.h" #include <QUrl> #include "../../src/input/scxml_importer.h" TEST(Test_ScxmlImporter, foo) { ScxmlImporter importer(QUrl::fromLocalFile("../config/simple_state.xml")); }
#include "../test.h" #include <QUrl> #include <QStateMachine> #include <QGuiApplication> #include <QWindow> #include <QKeyEvent> #include <thread> #include <chrono> #include "../../src/input/scxml_importer.h" TEST(Test_ScxmlImporter, foo) { int zero = 0; QGuiApplication application(zero, static_cast<char **>(nullp...
Test for now starts an application.
Test for now starts an application.
C++
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
01cd396876309eb1c4df22d3ef30a8e3d11baff0
caffe2/contrib/aten/aten_op.cc
caffe2/contrib/aten/aten_op.cc
/** * Copyright (c) 2016-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/** * Copyright (c) 2016-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Fix function signature in ATenOp for at::Half Set function
Fix function signature in ATenOp for at::Half Set function Summary: https://github.com/caffe2/caffe2/commit/c777be07d97c556d0acb7b5e15c5f16f4914dcf0 changed the type signature for the Set function, this fixes it for the ATenOp Closes https://github.com/caffe2/caffe2/pull/1464 Reviewed By: zdevito Differential Revisi...
C++
apache-2.0
sf-wind/caffe2,caffe2/caffe2,Yangqing/caffe2,xzturn/caffe2,xzturn/caffe2,Yangqing/caffe2,Yangqing/caffe2,sf-wind/caffe2,xzturn/caffe2,pietern/caffe2,davinwang/caffe2,davinwang/caffe2,xzturn/caffe2,pietern/caffe2,Yangqing/caffe2,xzturn/caffe2,sf-wind/caffe2,sf-wind/caffe2,pietern/caffe2,davinwang/caffe2,pietern/caffe2,d...
897fac88cdc65b624642b40aba64b3db2c6c22f1
examples/mimetypefinder/main.cpp
examples/mimetypefinder/main.cpp
#include "qmimedatabase.h" #include <QtCore/QCoreApplication> #include <QtCore/QFile> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); if (argc <= 1) { printf( "No filename specified\n" ); return 1; } const QString fileName = QFile::decodeName(argv[1]); //int acc...
#include "qmimedatabase.h" #include <QtCore/QCoreApplication> #include <QtCore/QFile> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); if (argc <= 1) { printf( "No filename specified\n" ); return 1; } QString option; int fnPos = 1; if (argc > 2) { opt...
Add suport for mimetypefinder -c file (find by file contents)
Add suport for mimetypefinder -c file (find by file contents)
C++
lgpl-2.1
d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground-mimetypes,d1vanov/qt4-mimetypes,qtproject/playground...
88e9c0a53b093a6078b05dde7c27a557fa0a1c7a
otp_gen.cpp
otp_gen.cpp
#include <iostream> #include <vector> #include <iomanip> #include <cmath> #include <random> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> using namespace std; // Implementation of the One-Time Pad key generation int main(int argc, char* argv[]) { if(argc < 2)...
#include <iostream> #include <vector> #include <iomanip> #include <cmath> #include <random> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> using namespace std; // Implementation of the One-Time Pad key generation int main(int argc, char* argv[]) { if(argc < 2)...
Change to /dev/urandom, as /dev/random was just haning/very slow
Change to /dev/urandom, as /dev/random was just haning/very slow
C++
unlicense
LarsFlaeten/crypto,LarsFlaeten/crypto,LarsFlaeten/crypto
06e39662d0322cc9709e968a199504c7f815f3ef
ex/totient.tas.cpp
ex/totient.tas.cpp
#include "common.th" _start: prologue c <- 67 call(totient) illegal // Computes the number of values less than C that are relatively prime to C. // Stores the result in B. totient: b <- 0 d <- c loop: k <- d == a jnzrel(k, done) pushall(b,c,d) call(gcd) k <- b <> 1 k <- k + 1 popall(b...
#include "common.th" _start: prologue c <- 67 call(totient) illegal // Computes the number of values less than C that are relatively prime to C. // Stores the result in B. totient: b <- 0 d <- c loop: k <- d == a jnzrel(k, done) pushall(b,c,d) call(gcd) k <- b <> 1 popall(b,c,d) b <-...
Reduce instruction count of totient
Reduce instruction count of totient
C++
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
0987c0c3919a8309383f49d6bc9d3ba6452c5aa3
test/libcxx/containers/unord/unord.set/missing_hash_specialization.fail.cpp
test/libcxx/containers/unord/unord.set/missing_hash_specialization.fail.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. // //===----------------------------------------...
Mark test as unsupported in C++11
Mark test as unsupported in C++11 git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@296571 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
78c17c2c685794e8844e1c02147646daa134d7af
src/SubstringWithConcatenationOfAllWords.cpp
src/SubstringWithConcatenationOfAllWords.cpp
#include "SubstringWithConcatenationOfAllWords.hpp" #include <unordered_map> using namespace std; vector<int> SubstringWithConcatenationOfAllWords::findSubstring(string s, vector<string>& words) { vector<int> ret; size_t seglen = words[0].size(); size_t nsegs = words.size(); if (nsegs == 0 || s.size() == 0 ||...
#include "SubstringWithConcatenationOfAllWords.hpp" #include <unordered_map> using namespace std; vector<int> SubstringWithConcatenationOfAllWords::findSubstring(string s, vector<string>& words) { vector<int> ret; size_t strlen = s.size(); size_t numw = words.size(); if (strlen == 0 || numw == 0) return ret;...
Clean up Problem 30 solution
Clean up Problem 30 solution
C++
mit
yanzhe-chen/leetcode
ebf0acb5b4ef7b38bc305fd64017b82635baffb1
src/motor/multirotor_quad_x_motor_mapper.cpp
src/motor/multirotor_quad_x_motor_mapper.cpp
#include <motor/multirotor_quad_x_motor_mapper.hpp> #include <array> MultirotorQuadXMotorMapper::MultirotorQuadXMotorMapper() { } void MultirotorQuadXMotorMapper::init() { PWMMotorMapper::init(); } void MultirotorQuadXMotorMapper::run(actuator_setpoint_t& input) { // Calculate output shifts std::array<float, ...
#include <motor/multirotor_quad_x_motor_mapper.hpp> #include <array> MultirotorQuadXMotorMapper::MultirotorQuadXMotorMapper() { } void MultirotorQuadXMotorMapper::init() { PWMMotorMapper::init(); } void MultirotorQuadXMotorMapper::run(actuator_setpoint_t& input) { // Calculate output shifts // TODO(yoos): com...
Reorder quadrotor motors per convention.
Reorder quadrotor motors per convention.
C++
mit
OSURoboticsClub/aerial_control,OSURoboticsClub/aerial_control,OSURoboticsClub/aerial_control
ae568d39ad555bf9300b54fc95e9e3b34c047f47
lib/src/compiler/posix/settings.cc
lib/src/compiler/posix/settings.cc
#include <puppet/compiler/settings.hpp> #include <boost/filesystem.hpp> #include <unistd.h> using namespace std; namespace fs = boost::filesystem; namespace sys = boost::system; namespace puppet { namespace compiler { string settings::default_code_directory() { auto home = getenv("HOME"); //...
#include <puppet/compiler/settings.hpp> #include <boost/filesystem.hpp> #include <unistd.h> using namespace std; namespace fs = boost::filesystem; namespace sys = boost::system; namespace puppet { namespace compiler { string settings::default_code_directory() { auto home = getenv("HOME"); //...
Fix default code directory for non-root user.
Fix default code directory for non-root user. Fixing the default code directory for non-root users, which should be under `~/.puppetlabs/etc/code`. The bug was that there was a check to see if the global location existed, and if it did, to use that location even when non-root. The fix is to remove that check and onl...
C++
apache-2.0
peterhuene/puppetcpp
268b4d01c2f970e3bf428ceb34a8ae11e1baf80b
test/std/re/re.results/re.results.const/move.pass.cpp
test/std/re/re.results/re.results.const/move.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. // //===----------------------------------------...
Remove a 'const' from the synopsis. NFC
Remove a 'const' from the synopsis. NFC git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@344997 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
ef9d578d7af0aec9dd8385f5de2b69f1fab1afcf
Main.cpp
Main.cpp
// Native C++ Libraries #include <iostream> #include <string>
// Native C++ Libraries #include <iostream> #include <string> // C++ Interpreter Libraries #include <Console.h>
Add C++ Interpreter Libraries to the main source.
Add C++ Interpreter Libraries to the main source.
C++
mit
Project-CPP/CPP-Interpreter
42f3541b23d6964e1acc3b9ee157b78e2664cc6c
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ResourceConnectivity.cpp
service/soft-sensor-manager/SSMCore/src/SensorProcessor/ResourceConnectivity.cpp
/****************************************************************** * * Copyright 2014 Samsung Electronics All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
/****************************************************************** * * Copyright 2014 Samsung Electronics All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
Fix to call OIC platform destructor
[SSM] Fix to call OIC platform destructor Problem: There is no destructor caller How: Call platform destructor when OIC platform manager destroying Change-Id: I83b033494f3bb84e5341c21d7ec4051e110a9ff8 Signed-off-by: Kim Jee Hyeok <ecfb86b5d85d5430a7602d1e11f4f25d16714d36@samsung.com>
C++
apache-2.0
WojciechLuczkow/iotivity,kartben/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,rzr/iotivity,iotivity/iotivity,santais/iotivity_1.1,kartben/iotivity,rzr/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,iotivity/iotivity,santais...
0ac7d4fce68d05688f4fe05f5cd28c0ca0b905ed
Core/Sources/Implementations/Layer/filter.cpp
Core/Sources/Implementations/Layer/filter.cpp
#include <cmath> #include <stdexcept> #include "Layer/filter.hpp" #include "Utility/utility.hpp" using namespace Convolutional; using namespace Convolutional::Layer; Filter::Filter(std::size_t size) : bias{Utility::GetRandomNumberBetween(-1.0, 1.0)} { // TODO jnf: constexpr check if size is perfect square weights....
#include <cmath> #include <stdexcept> #include "Layer/filter.hpp" #include "Utility/utility.hpp" using namespace Convolutional; using namespace Convolutional::Layer; Filter::Filter(std::size_t size) : bias{Utility::GetRandomNumberBetween(-1.0, 1.0)} { // TODO jnf: constexpr check if size is perfect square weights....
Remove corpses from old code
Remove corpses from old code
C++
agpl-3.0
IDPA16/Hippocrates,SirRade/Hippocrates,SirRade/JNF_NEAT,IDPA16/CNN-Code,IDPA16/Hippocrates,SirRade/Hippocrates
10130b9d32fd7ca5e5bff6c89ae346da721ad926
MatrixMinCostPath/MatrixMinCostPath/main.cpp
MatrixMinCostPath/MatrixMinCostPath/main.cpp
#include <iostream> #include "..\..\shared\ProblemEngine.h" int FindShortestPath(const int * const data, int size); int main(int argc, char * argv[]) { ProblemEngine<> engine("input.txt"); if (!engine.IsFileOk()) { std::cout << "Unable to open input.txt" << std::endl; return 1; } auto testCases = engine.Lo...
#include <iostream> #include "..\..\shared\ProblemEngine.h" int FindShortestPath(int ** data, int rowSize); int** CreateMatrix(const int * const input, int rowSize) { auto ret = new int*[rowSize]; for (int i = 0; i < rowSize; ++i) { ret[i] = new int[rowSize]; for (int j = 0; j < rowSize; ++j) ret[i][j] = i...
Create matrix out of input data to simplify algorithm
Create matrix out of input data to simplify algorithm
C++
mit
ethanmoffat/InterviewQuestions
5a8e179da990ad13d3d10958229fc0bfc6eb7d1e
profiling/EQ/main.cpp
profiling/EQ/main.cpp
#include <cstdlib> #include <ATK/EQ/BesselFilter.h> #include <ATK/EQ/IIRFilter.h> #include <ATK/Mock/SimpleSinusGeneratorFilter.h> int main(int argc, char** argv) { ATK::SimpleSinusGeneratorFilter<double> generator; generator.set_output_sampling_rate(1024 * 64); generator.set_amplitude(1); generator.set_freq...
#include <cstdlib> #include <ATK/EQ/BesselFilter.h> #include <ATK/EQ/IIRFilter.h> #include <ATK/Mock/SimpleSinusGeneratorFilter.h> int main(int argc, char** argv) { ATK::SimpleSinusGeneratorFilter<double> generator; generator.set_output_sampling_rate(1024 * 64); generator.set_amplitude(1); generator.set_freq...
MAke it simpler to vectorize (even if this is not the proper way)
MAke it simpler to vectorize (even if this is not the proper way)
C++
bsd-3-clause
mbrucher/AudioTK,mbrucher/AudioTK,mbrucher/AudioTK,mbrucher/AudioTK
edf5d3ea291ed23b172b619366693be9f2ac1545
examples/libfuzzer/libfuzzer_example_test.cc
examples/libfuzzer/libfuzzer_example_test.cc
// Copyright 2017 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright 2017 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
Increase number of iterations in libFuzzer test
Increase number of iterations in libFuzzer test
C++
apache-2.0
vitalybuka/libprotobuf-mutator,vitalybuka/libprotobuf-mutator,google/libprotobuf-mutator,google/libprotobuf-mutator
d0b4000ac21f1e3be5250535ecbf631d3d371092
pyQuantuccia/src/pyQuantuccia.cpp
pyQuantuccia/src/pyQuantuccia.cpp
#include <Python.h> #include "Quantuccia/ql/time/calendars/unitedstates.hpp" static PyObject* get_holiday_date(PyObject *self, PyObject *args) { return NULL; } static PyMethodDef QuantucciaMethods[] = { {"get_holiday_date", (PyCFunction)get_holiday_date, METH_VARARGS, NULL}, {NULL, NULL, 0, NULL} }; static st...
#include <Python.h> #include "Quantuccia/ql/time/calendars/unitedstates.hpp" static PyObject* get_holiday_date(PyObject *self, PyObject *args) { return Py_None; } static PyMethodDef QuantucciaMethods[] = { {"get_holiday_date", (PyCFunction)get_holiday_date, METH_VARARGS, NULL}, {NULL, NULL, 0, NULL} }; static...
Change return NULL -> return Py_None.
Change return NULL -> return Py_None.
C++
bsd-3-clause
jwg4/pyQuantuccia,jwg4/pyQuantuccia
fc2aeae07a1205f9a001f2cfea21f613fb491149
tests/wordcount.cc
tests/wordcount.cc
#include <iostream> #include <string> #include <utility> #include <map> #include <vector> #include <functional> #include <useful/sort.hpp> #include <useful/range.hpp> using namespace useful; using wcount = std::map<std::string, int>; int main(void) { wcount words; std::string word; while (std::cin >> word) wo...
#include <iostream> #include <string> #include <utility> #include <map> #include <vector> #include <functional> #include <algorithm> #include <useful/sort.hpp> #include <useful/range.hpp> using namespace useful; using wcount = std::map<std::string, int>; int main(void) { wcount words; std::string word; while (s...
Add test program demonstrating finding most common words.
Add test program demonstrating finding most common words.
C++
mit
shawnw/libuseful
d023bf24d20939543d5f387b3cddfd3282319ef4
tests/common/html_utils_tests.cpp
tests/common/html_utils_tests.cpp
#include <aerial_autonomy/common/html_utils.h> #include <gtest/gtest.h> #include <iostream> /// \brief TEST /// Simple Html table tests TEST(HtmlTableWriterTests, SimpleTable) { HtmlTableWriter table_writer; table_writer.beginRow(); table_writer.addHeader("Header"); table_writer.beginRow(); double data = 2.0...
#include <aerial_autonomy/common/html_utils.h> #include <gtest/gtest.h> #include <iostream> /// \brief TEST /// Simple Html table tests TEST(HtmlTableWriterTests, SimpleTable) { HtmlTableWriter table_writer; table_writer.beginRow(); table_writer.addHeader("Header"); table_writer.beginRow(); double data = 2.0...
Add todo for automatic html validation
Add todo for automatic html validation
C++
mpl-2.0
jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy,jhu-asco/aerial_autonomy
0522985aca03c1b7adf55a5837dc152de013194a
viewer/KVNetworkAccessManager.cpp
viewer/KVNetworkAccessManager.cpp
#include "KVNetworkAccessManager.h" #include <QDebug> #include "KVNetworkReply.h" KVNetworkAccessManager::KVNetworkAccessManager(QObject *parent) : QNetworkAccessManager(parent) { } QNetworkReply *KVNetworkAccessManager::createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData) { QNetwork...
#include "KVNetworkAccessManager.h" #include <QDebug> #include "KVNetworkReply.h" KVNetworkAccessManager::KVNetworkAccessManager(QObject *parent) : QNetworkAccessManager(parent) { } QNetworkReply *KVNetworkAccessManager::createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData) { QNetwork...
Use the same User-Agent everywhere, just because
Use the same User-Agent everywhere, just because
C++
mit
kevin01523/KanColleTool,KanColleTool/KanColleTool,kevin01523/KanColleTool,kevin01523/KanColleTool,KanColleTool/KanColleTool
b32da432b3fcfea05728ec42d254f3e5ca109579
test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc
test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc
// Tests -fsanitize-coverage=inline-8bit-counters // // REQUIRES: has_sancovcc,stable-runtime // UNSUPPORTED: i386-darwin // // RUN: %clangxx -O0 %s -fsanitize-coverage=inline-8bit-counters 2>&1 #include <stdio.h> #include <assert.h> const char *first_counter; extern "C" void __sanitizer_cov_8bit_counters_init(const...
// Tests -fsanitize-coverage=inline-8bit-counters // // REQUIRES: has_sancovcc,stable-runtime // UNSUPPORTED: i386-darwin, x86_64-darwin // // RUN: %clangxx -O0 %s -fsanitize-coverage=inline-8bit-counters 2>&1 #include <stdio.h> #include <assert.h> const char *first_counter; extern "C" void __sanitizer_cov_8bit_coun...
Mark sancov test as unsupported on Darwin
Mark sancov test as unsupported on Darwin This test has been failing on all Darwin bots since it was introduced: http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/32111 fatal error: error in backend: Global variable '__sancov_gen_' has an invalid section specifier '__DATA,__sancov_counters': mach-o s...
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
23a838f8337158df1c4f22aa1f260e330c8dd0ac
tests/src/main.cpp
tests/src/main.cpp
#include <QTest> #include "test-suite.h" #include "custom-network-access-manager.h" #include <iostream> int main(int argc, char *argv[]) { #ifdef HEADLESS QCoreApplication a(argc, argv); #else QGuiApplication a(argc, argv); #endif QMap<QString,int> results; int failed = 0; CustomNetworkAccessManager::Test...
#include <QTest> #include "test-suite.h" #include "custom-network-access-manager.h" #include <iostream> int main(int argc, char *argv[]) { #ifdef HEADLESS QCoreApplication a(argc, argv); #else QGuiApplication a(argc, argv); #endif QStringList testSuites; for (int i = 1; i < argc; ++i) testSuites.append(ar...
Allow to only run some test suites from the test runner
Allow to only run some test suites from the test runner
C++
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
222e2c0f1376cdb6af8494c9ea190fef441ea832
chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc
chrome/browser/ui/webui/options2/chromeos/stats_options_handler.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/ui/webui/options2/chromeos/stats_options_handler.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/utf...
// 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/ui/webui/options2/chromeos/stats_options_handler.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/utf...
Fix CrOS Official build from options2 copy.
Fix CrOS Official build from options2 copy. BUG=none TEST=none TBR=csilv Review URL: http://codereview.chromium.org/8907049 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@114493 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
gavinp/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,gavinp/ch...
1eceed92f1bd33904963fc812860e4642f5dede3
share/qtcreator/templates/qt4project/main.cpp
share/qtcreator/templates/qt4project/main.cpp
#include <%QAPP_INCLUDE%> #include "%INCLUDE%" int main(int argc, char *argv[]) { QApplication a(argc, argv); %CLASS% w; #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) w.showMaximized(); #else w.show(); #endif return a.exec(); }
#include <%QAPP_INCLUDE%> #include "%INCLUDE%" int main(int argc, char *argv[]) { QApplication a(argc, argv); %CLASS% w; #if defined(Q_WS_S60) w.showMaximized(); #else w.show(); #endif return a.exec(); }
Remove special showMaximized case for Maemo 5
Remove special showMaximized case for Maemo 5 The Maemo 5 window manager already makes sure applications always run maximized. Reviewed-by: Robert Griebl
C++
lgpl-2.1
jonnor/qt-creator,duythanhphan/qt-creator,azat/qtcreator,azat/qtcreator,maui-packages/qt-creator,KDE/android-qt-creator,richardmg/qtcreator,darksylinc/qt-creator,danimo/qt-creator,bakaiadam/collaborative_qt_creator,sandsmark/qtcreator-minimap,ostash/qt-creator-i18n-uk,hdweiss/qt-creator-visualizer,syntheticpp/qt-creato...
de06e3042dc0fdb836df963ae8387eca95f2d131
src/core/hooks.cc
src/core/hooks.cc
#include <string> #include <ccspec/core/hooks.h> #include <ccspec/core/example_group.h> namespace ccspec { namespace core { void before(std::string scope, Hook hook) { ExampleGroup* parent_group = groups_being_defined.top(); if (scope == "each" || scope == "example") parent_group->addBeforeEachHook(ho...
#include <string> #include <ccspec/core/hooks.h> #include <ccspec/core/example_group.h> namespace ccspec { namespace core { void before(std::string scope, Hook hook) { ExampleGroup* parent_group = groups_being_defined.top(); if (scope == "each" || scope == "example") parent_group->addBeforeEachHook(ho...
Correct after hook exception message
Correct after hook exception message
C++
mit
zhangsu/ccspec,tempbottle/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,tempbottle/ccspec,zhangsu/ccspec,michaelachrisco/ccspec,michaelachrisco/ccspec,zhangsu/ccspec
aa74fa359665e705eef0f7ff7d1de7c1075f6b79
chrome/browser/ui/views/find_bar_host_aura.cc
chrome/browser/ui/views/find_bar_host_aura.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/ui/views/find_bar_host.h" #include "base/logging.h" #include "ui/base/events/event.h" void FindBarHost::AudibleAlert() { #i...
// 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/ui/views/find_bar_host.h" #include "base/logging.h" #include "ui/base/events/event.h" void FindBarHost::AudibleAlert() { #i...
Remove NOTIMPLEMENTED() in FindBarHost::AudibleAlert() for ChromeOS.
Remove NOTIMPLEMENTED() in FindBarHost::AudibleAlert() for ChromeOS. BUG=None TEST=None R=jennyz,jamescook TBR=sky Review URL: https://chromiumcodereview.appspot.com/23819045 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@222422 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,anirudhSK/chromium,dushu1203/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,ondra-novak/c...
1257732f46972a40839cca18fbc4b681bd5bd047
clang-tidy/modernize/UnaryStaticAssertCheck.cpp
clang-tidy/modernize/UnaryStaticAssertCheck.cpp
//===--- UnaryStaticAssertCheck.cpp - clang-tidy---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- UnaryStaticAssertCheck.cpp - clang-tidy---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix build after r319688: s/CPlusPlus1z/CPlusPlus17/
Fix build after r319688: s/CPlusPlus1z/CPlusPlus17/ git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@319690 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
feec8eba1037a78d8b971b5aee23e11b0ca70440
ouzel/core/raspbian/WindowResourceRasp.cpp
ouzel/core/raspbian/WindowResourceRasp.cpp
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <bcm_host.h> #include "WindowResourceRasp.hpp" #include "utils/Log.hpp" namespace ouzel { WindowResourceRasp::WindowResourceRasp() { bcm_host_init(); } WindowResourceRasp::~WindowResourceRasp() { ...
// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <bcm_host.h> #include "WindowResourceRasp.hpp" #include "utils/Log.hpp" namespace ouzel { WindowResourceRasp::WindowResourceRasp() { bcm_host_init(); } WindowResourceRasp::~WindowResourceRasp() { ...
Check if the result of graphics_get_display_size is less than 0
Check if the result of graphics_get_display_size is less than 0
C++
unlicense
elvman/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elnormous/ouzel
a35b6bb7ca74d84bd2300909263ac0224f68c0dd
ModernCpp/ruleOfFive.cpp
ModernCpp/ruleOfFive.cpp
/************************************************************************* > File Name: ruleOfFive.cpp > Author: Chan-Ho Chris Ohk > E-mail: utilForever@gmail.com, utilForever@kaist.ac.kr > Created Time: 2015/4/24 > Personal Blog: https://github.com/utilForever **********************************************************...
/************************************************************************* > File Name: ruleOfFive.cpp > Author: Chan-Ho Chris Ohk > E-mail: utilForever@gmail.com, utilForever@kaist.ac.kr > Created Time: 2015/4/26 > Personal Blog: https://github.com/utilForever **********************************************************...
Update Rule of Five Example
Update Rule of Five Example
C++
mit
utilForever/ModernCpp,hajunho/ModernCpp
5a3484184f43e71b7df04048f5f6d3fb8b0d20a3
c++/check_unique_char.cpp
c++/check_unique_char.cpp
#include "check_unique_char.h"
// Solution to problem from Crack Coding interviews. Implement an // algorithm to determine if a string has all unique characters #include "check_unique_char.h" CheckUniqueChar::CheckUniqueChar() { } CheckUniqueChar::~CheckUniqueChar() { } // Takes O(n) running time bool CheckUniqueChar::solver_boolean(std::strin...
Add functions to new problem for CheckUniqueChar
Add functions to new problem for CheckUniqueChar
C++
mit
tsajed/coding-problems
53f1523e44b9604cb38f9c0488f164bcf8435b31
source/Pictus/hw3d_opengl_texture.cpp
source/Pictus/hw3d_opengl_texture.cpp
#include <GL/gl.h> #include <orz/exception.h> #include "hw3d_opengl_texture.h" namespace Hw3D { Texture::Lock OpenGlTexture::LockRegion(const Geom::RectInt &region, bool readOnly) { return Texture::Lock(); } void OpenGlTexture::UnlockRegion() { } OpenGlTexture::OpenGlTexture(Geom::SizeInt dimensions, Forma...
#include <GL/gl.h> #include <orz/exception.h> #include "hw3d_opengl_texture.h" #include "hw3d_opengl_common.h" namespace Hw3D { Texture::Lock OpenGlTexture::LockRegion(const Geom::RectInt &region, bool readOnly) { return Texture::Lock(); } void OpenGlTexture::UnlockRegion() { } OpenGlTexture::OpenGlTexture...
Create OpenGl texture object when creating OpenGlTexture
Create OpenGl texture object when creating OpenGlTexture
C++
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
8a4be88f5192168fb6dbdee780416e06822398e1
libraries/tests/utest/testrunner/testrunner.cpp
libraries/tests/utest/testrunner/testrunner.cpp
#include "CppUTest\CommandLineTestRunner.h" #include <stdio.h> #include "mbed.h" #include "testrunner.h" #include "test_env.h" /** Object 'console' is used to show prints on console. It is declared in \cpputest\src\Platforms\armcc\UtestPlatform.cpp */ Serial console(STDIO_UART_TX, STDIO_UART_RX); int main(int ac, cha...
#include "CommandLineTestRunner.h" #include <stdio.h> #include "mbed.h" #include "testrunner.h" #include "test_env.h" /** Object 'console' is used to show prints on console. It is declared in \cpputest\src\Platforms\armcc\UtestPlatform.cpp */ Serial console(STDIO_UART_TX, STDIO_UART_RX); int main(int ac, char** av) {...
Remove an include path with undefined behaviour on non-windows systems
Remove an include path with undefined behaviour on non-windows systems
C++
apache-2.0
iriark01/mbed-drivers,bremoran/mbed-drivers,sg-/mbed-drivers,0xc0170/mbed-drivers,iriark01/mbed-drivers,0xc0170/mbed-drivers,sg-/mbed-drivers,bremoran/mbed-drivers
5b98c5086ce2d85f1d09a63f2098c3a33767c5fd
runtime/swift/stdlib.cpp
runtime/swift/stdlib.cpp
#include <inttypes.h> #include <stdio.h> extern "C" bool _TSsop2leFT3lhsNSs5int643rhsS__NSs4bool(int64_t l, int64_t r) { return l <= r; } extern "C" double _TSsop1sFT1aNSs6double_S_(double x) { return -x; } extern "C" void _T3fib5printFT1iNSs5int64_T_(int64_t l) { printf("%lld\n", l); } extern "C" void _T3...
#include <inttypes.h> #include <stdio.h> extern "C" void _T3fib5printFT1iNSs5int64_T_(int64_t l) { printf("%lld\n", l); } extern "C" void _T3fib5printFT1iNS_6double_T_(double l) { printf("%f\n", l); } extern "C" void _T5nbody5printFT1iNSs6double_T_(double l) { printf("%f\n", l); } // This cannot be implemente...
Implement all the integer comparison operators in swift.swift. Despite the indirection, each of these compiles into nice simple IR at -O3, with: swift swift.swift -I test -emit-llvm | opt -O3 -S | less
Implement all the integer comparison operators in swift.swift. Despite the indirection, each of these compiles into nice simple IR at -O3, with: swift swift.swift -I test -emit-llvm | opt -O3 -S | less for example: define i1 @_TSsop1gFT3lhsNSs5int643rhsS__NSs4bool(i64, i64) nounwind readnone { entry: %2 = icmp sg...
C++
apache-2.0
kentya6/swift,parkera/swift,JaSpa/swift,tjw/swift,ahoppen/swift,practicalswift/swift,gottesmm/swift,OscarSwanros/swift,danielmartin/swift,emilstahl/swift,gmilos/swift,devincoughlin/swift,hughbe/swift,manavgabhawala/swift,gregomni/swift,JGiola/swift,jmgc/swift,LeoShimonaka/swift,kusl/swift,zisko/swift,manavgabhawala/swi...
d4dc22a1b528d2ae67c79a085602e43da97ce1d5
restnotifier/restdialog.cpp
restnotifier/restdialog.cpp
#include <QPixmap> #include "restdialog.h" RestDialog::RestDialog(QWidget *parent) : QDialog(parent) { Qt::WindowFlags flags = windowFlags(); setWindowFlags((flags & ~Qt::WindowContextHelpButtonHint) | Qt::WindowStaysOnTopHint); ui_restDialog = QSharedPointer<Ui::RestDialog>(new Ui...
#include <QPixmap> #include <QDesktopWidget> #include "restdialog.h" RestDialog::RestDialog(QWidget *parent) : QDialog(parent) { Qt::WindowFlags flags = windowFlags(); setWindowFlags((flags & ~Qt::WindowContextHelpButtonHint) | Qt::WindowStaysOnTopHint); ui_restDialog = QSharedPoin...
Check that image in message dialog is not bigger than screen
Check that image in message dialog is not bigger than screen
C++
mit
swarmer/restnotifier,swarmer/restnotifier,swarmer/restnotifier
f7b1c7f279eec2619611a4fa4dae8939ed53e37c
src/engine/audio/src/behaviours/audio_voice_fade_behaviour.cpp
src/engine/audio/src/behaviours/audio_voice_fade_behaviour.cpp
#include "behaviours/audio_voice_fade_behaviour.h" #include "../audio_voice.h" #include "audio_facade.h" #include "halley/utils/utils.h" using namespace Halley; AudioVoiceFadeBehaviour::AudioVoiceFadeBehaviour(float fadeTime, float sourceVolume, float targetVolume, bool stopAtEnd) : curTime(0) , fadeTime(fadeTime) ...
#include "behaviours/audio_voice_fade_behaviour.h" #include "../audio_voice.h" #include "audio_facade.h" #include "halley/utils/utils.h" using namespace Halley; AudioVoiceFadeBehaviour::AudioVoiceFadeBehaviour(float fadeTime, float sourceVolume, float targetVolume, bool stopAtEnd) : curTime(0) , fadeTime(fadeTime) ...
Change AudioVoiceFadeBehaviour to use userGain
Change AudioVoiceFadeBehaviour to use userGain
C++
apache-2.0
amzeratul/halley,amzeratul/halley,amzeratul/halley
af2672bd91fdbc81bca9b2f8f0e8aa6f93a0efd1
test/ubsan/TestCases/Misc/monitor.cpp
test/ubsan/TestCases/Misc/monitor.cpp
// RUN: %clangxx -w -fsanitize=bool %s -o %t // RUN: %run %t 2>&1 | FileCheck %s #include <iostream> extern "C" { void __ubsan_get_current_report_data(const char **OutIssueKind, const char **OutMessage, const char **OutFilename, ...
// RUN: %clangxx -w -fsanitize=bool %s -o %t // RUN: %run %t 2>&1 | FileCheck %s // __ubsan_on_report is not defined as weak. Redefining it here isn't supported // on Windows. // // UNSUPPORTED: win32 #include <iostream> extern "C" { void __ubsan_get_current_report_data(const char **OutIssueKind, ...
Mark a test case as unsupported on Windows
[ubsan] Mark a test case as unsupported on Windows __ubsan_on_report isn't defined as weak, and redefining it in a test is not supported on Windows. See the error message here: https://reviews.llvm.org/D48446 git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@335523 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
67ce7474b31f9502938ee7b224f9623f159061f5
chrome/renderer/extensions/api_definitions_natives.cc
chrome/renderer/extensions/api_definitions_natives.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/renderer/extensions/api_definitions_natives.h" #include <algorithm> #include "chrome/common/extensions/features/base_feature_provid...
// 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/renderer/extensions/api_definitions_natives.h" #include <algorithm> #include "chrome/common/extensions/features/base_feature_provid...
Remove an unused const kInvalidExtensionNamespace.
Remove an unused const kInvalidExtensionNamespace. BUG=None Test=None Review URL: https://chromiumcodereview.appspot.com/17032002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@206468 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
fujunwei/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,mogoweb/chromium-cros...
1eac90daf1e7fc712f8635edcfe6548e040cbecd
src/util/debug.cpp
src/util/debug.cpp
#include <cstdio> #include <cstdlib> #include "util/debug.hpp" bool nest::mc::util::failed_assertion(const char *assertion, const char *file, int line, const char *func) { std::fprintf(stderr, "%s:%d %s: Assertion `%s' failed.\n", file, line, func, assertion); std::abort(...
#include <cstdlib> #include <iostream> #include "util/debug.hpp" bool nest::mc::util::failed_assertion(const char *assertion, const char *file, int line, const char *func) { // Explicit flush, as we can't assume default buffering semantics on stderr/cerr, // and abort() m...
Use cerr in preference to stderr for assertion message.
Use cerr in preference to stderr for assertion message. * Finds an actual (possibly) reasonable use for std::endl.
C++
bsd-3-clause
halfflat/arbor,halfflat/arbor,halfflat/nestmc-proto,halfflat/arbor,eth-cscs/nestmc-proto,eth-cscs/nestmc-proto,eth-cscs/nestmc-proto,halfflat/arbor,halfflat/arbor,halfflat/nestmc-proto,halfflat/nestmc-proto
6d4f77a5ed6dc3028b04939a2d12566b919d839e
libyuriks/math/Sphere.cpp
libyuriks/math/Sphere.cpp
#include "./Sphere.hpp" #include "./misc.hpp" #include <algorithm> #include <cmath> namespace yks { Optional<float> intersect(const vec3& origin, float radius, const Ray& r) { const vec3 o = r.origin - origin; const vec3 v = r.direction; float t1, t2; const int solutions = solve_quadratic(dot(v, v), 2*dot(o...
#include "./Sphere.hpp" #include "./misc.hpp" #include <algorithm> #include <cmath> namespace yks { Optional<float> intersect(const vec3& origin, float radius, const Ray& r) { const vec3 o = r.origin - origin; const vec3 v = r.direction; float t1, t2; const int solutions = solve_quadratic(dot(v, v), 2*dot(o...
Optimize sphere sampling code using trig identity
Optimize sphere sampling code using trig identity
C++
apache-2.0
yuriks/NoiseRay,yuriks/NoiseRay
fff5a2b49fe5e36d9bb0c98b4299dd82efba60bb
firmware/main/AnimationTask.cpp
firmware/main/AnimationTask.cpp
/* * AnimationTask.cpp * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <esp_log.h> #include "nvs_flash.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "e...
/* * AnimationTask.cpp * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <esp_log.h> #include "nvs_flash.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "e...
Initialize and enable LEDs in animation to test
Initialize and enable LEDs in animation to test
C++
mit
ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid
531dd8b8c52cb28e4d0f9a2b5374f242403ecf07
firmware/main/AnimationTask.cpp
firmware/main/AnimationTask.cpp
/* * AnimationTask.cpp * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <esp_log.h> #include "AnimationTask.h" #include "sdkconfig.h" static char tag[] = "AnimationTask"; AnimationTask:...
/* * AnimationTask.cpp * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <esp_log.h> #include "AnimationTask.h" #include "sdkconfig.h" static char tag[] = "AnimationTask"; AnimationTask:...
Fix animation task, run should not return
Fix animation task, run should not return
C++
mit
ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid
86dc899a2b00eece4121ca4b920ab7dd0f6b39b5
src/test/miner_tests.cpp
src/test/miner_tests.cpp
#include <boost/test/unit_test.hpp> #include "../uint256.h" extern void SHA256Transform(void* pstate, void* pinput, const void* pinit); BOOST_AUTO_TEST_SUITE(miner_tests) BOOST_AUTO_TEST_CASE(sha256transform_equality) { unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e52...
#include <boost/test/unit_test.hpp> #include "../uint256.h" extern void SHA256Transform(void* pstate, void* pinput, const void* pinit); BOOST_AUTO_TEST_SUITE(miner_tests) BOOST_AUTO_TEST_CASE(sha256transform_equality) { unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e52...
Fix miner_test unit test bug
Fix miner_test unit test bug
C++
mit
MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin
99144d005ae4f150a8278b970f1e106161fadad8
src/mtac/remove_dead_basic_blocks.cpp
src/mtac/remove_dead_basic_blocks.cpp
//======================================================================= // Copyright Baptiste Wicht 2011-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //================================================...
//======================================================================= // Copyright Baptiste Wicht 2011-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //================================================...
Improve removal of dead basic blocks to remove all dead basic blocks at once
Improve removal of dead basic blocks to remove all dead basic blocks at once
C++
mit
vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic
f3b1babf979a43e09fc3866f3177b8c99849a380
src/lib/src/tags/tag-database-factory.cpp
src/lib/src/tags/tag-database-factory.cpp
#include "tags/tag-database-factory.h" #include <QFile> #include "tags/tag-database-in-memory.h" #include "tags/tag-database-sqlite.h" TagDatabase *TagDatabaseFactory::Create(QString directory) { if (!directory.endsWith("/") && !directory.endsWith("\\")) { directory += "/"; } const QString typesFile = directory...
#include "tags/tag-database-factory.h" #include <QFile> #include "tags/tag-database-in-memory.h" #include "tags/tag-database-sqlite.h" TagDatabase *TagDatabaseFactory::Create(QString directory) { if (!directory.endsWith("/") && !directory.endsWith("\\")) { directory += "/"; } const QString typesFile = directory...
Switch default tag database from TXT to SQLite
Switch default tag database from TXT to SQLite
C++
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber