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
44dadd56cc22afa40e42bff50534937134a93128
ch12/ex12.26.cpp
ch12/ex12.26.cpp
/*************************************************************************** * @file The code is for the exercises in C++ Primmer 5th Edition * @author @Yue Wang @gupenghu * @date 29.11.2014 * @remark ***************************************************************************/ //! //! Exercise...
/*************************************************************************** * @file The code is for the exercises in C++ Primmer 5th Edition * @author @Yue Wang @gupenghu * @date 29.11.2014 * @remark ***************************************************************************/ //! //! Exercise...
Replace && with and for readability.
Replace && with and for readability.
C++
cc0-1.0
MojieBuddhist/Cpp-Primer,honestme/Cpp-Primer,sigma-random/Cpp-Primer,Jinpeiqi/Cpp-Primer,m0000re/CppPrimer,wgs111/CppPrimer,Milk-SF/CppPrimer,honestme/Cpp-Primer,sunlianqiang/Cpp-Primer,AndychenCL/Cpp-Primer,shuidong/CppPrimer,XDXX/Cpp-Primer,cheng668/CppPrimer,floristt/CppPrimer,zhangzhizhongz3/CppPrimer,Fenolona/Cpp-...
43c67eacaacff4f37ced9af6280f7bbbe14221de
src/nostalgia/player/main.cpp
src/nostalgia/player/main.cpp
/* * Copyright 2016 - 2021 gary@drinkingtea.net * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <nostalgia/core/core.hpp> #include "app.hpp" stati...
/* * Copyright 2016 - 2021 gary@drinkingtea.net * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <nostalgia/core/core.hpp> #include "app.hpp" stati...
Add new line to oxErr output
[nostalgia/player] Add new line to oxErr output
C++
mpl-2.0
wombatant/nostalgia,wombatant/nostalgia,wombatant/nostalgia
16254c7817c26fc8d61b86e5e357804730610395
src/hipoc/hipoc_kernel.cpp
src/hipoc/hipoc_kernel.cpp
#include <miopen/hipoc_kernel.hpp> #include <miopen/errors.hpp> #include <hip/hip_hcc.h> namespace miopen { void HIPOCKernelInvoke::run(void* args, std::size_t size) const { HipEventPtr start = nullptr; HipEventPtr stop = nullptr; void *config[] = { HIP_LAUNCH_PARAM_BUFFER_POINTER, args, ...
#include <miopen/hipoc_kernel.hpp> #include <miopen/errors.hpp> #include <hip/hip_hcc.h> namespace miopen { void HIPOCKernelInvoke::run(void* args, std::size_t size) const { HipEventPtr start = nullptr; HipEventPtr stop = nullptr; void *config[] = { HIP_LAUNCH_PARAM_BUFFER_POINTER, args, ...
Use more precise kernel timers for HIP.
Use more precise kernel timers for HIP. Use new hipHccModuleLaunchKernel API which optionally accepts start / stop events. This allows host code to precisely time the kernel start and stop times. The traditional CUDA/HIP approach involves enqueueing additional events and the time for the GPU to process those events ...
C++
mit
ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen
5319416443c4f88535be2a34d0ceb47d65edd7a8
test/SemaCXX/cxx17-compat.cpp
test/SemaCXX/cxx17-compat.cpp
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -pedantic -verify %s // RUN: %clang_cc1 -fsyntax-only -std=c++2a -Wc++17-compat-pedantic -verify %s struct A {}; int (A::*pa)() const&; int use_pa = (A().*pa)(); #if __cplusplus <= 201703L // expected-warning@-2 {{invoking a pointer to a 'const &' member function on an rva...
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -pedantic -verify %s // RUN: %clang_cc1 -fsyntax-only -std=c++2a -Wc++17-compat-pedantic -verify %s struct A {}; int (A::*pa)() const&; int use_pa = (A().*pa)(); #if __cplusplus <= 201703L // expected-warning@-2 {{invoking a pointer to a 'const &' member function on an rva...
Add test for -Wc++17-compat warning for P0683R1.
Add test for -Wc++17-compat warning for P0683R1. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@311868 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
2ef17b0dffd75c8617fdcb6a3ec12c2da10a5be6
src/mjolnir/signbuilder.cc
src/mjolnir/signbuilder.cc
#include "../../valhalla/mjolnir/signbuilder.h" using namespace valhalla::baldr; namespace valhalla { namespace mjolnir { // Constructor with arguments SignBuilder::SignBuilder(const uint32_t idx, const Sign::Type& type, const uint32_t text_offset) ...
#include "../../valhalla/mjolnir/signbuilder.h" using namespace valhalla::baldr; namespace valhalla { namespace mjolnir { // Constructor with arguments SignBuilder::SignBuilder(const uint32_t idx, const Sign::Type& type, const uint32_t text_offset) ...
Update to reflect changes to signs.
Update to reflect changes to signs.
C++
mit
fsaric/mjolnir,fsaric/mjolnir,fsaric/mjolnir
18416fcb05bdd75601da571f45977b56ebb8ee85
3RVX/MeterWnd/Meters/Bitstrip.cpp
3RVX/MeterWnd/Meters/Bitstrip.cpp
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "Bitstrip.h" Bitstrip::Bitstrip(std::wstring bitmapName, int x, int y, int units) : Meter(bitmapName, x, y, units) { _rect.Height = _bitmap->GetHeight() / _units; } void Bitstrip::Draw(Gd...
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "Bitstrip.h" Bitstrip::Bitstrip(std::wstring bitmapName, int x, int y, int units) : Meter(bitmapName, x, y, units) { _rect.Height = _bitmap->GetHeight() / _units; } void Bitstrip::Draw(Gd...
Enable color transformations for bitstrips
Enable color transformations for bitstrips
C++
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
2785c796d94f1b17157cf4fa9f6f7eda10efc9f6
test/CodeGenCXX/debug-info-limited.cpp
test/CodeGenCXX/debug-info-limited.cpp
// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s // CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A" // CHECK-NOT: DIFlagFwdDecl // CHECK-SAME: ){{$}} class A { public: int z; }; A *foo (A* x) { A *a = new A(*x); return a; } // CHECK: !DICompositeType(...
// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s // RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck --check-prefix=CHECK-C %s // CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A" // CHECK-NOT: DIFlagFwdDecl // CHECK-SAME: ){{$}} class A { pu...
Fix testcase for MSVC targets where the output ordering is different.
Fix testcase for MSVC targets where the output ordering is different. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@266449 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
92ec1f0e2f8b995bc2e3089cfaa61c7a90e1d1f9
chrome/browser/extensions/execute_script_apitest.cc
chrome/browser/extensions/execute_script_apitest.cc
// Copyright (c) 20109 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // This test failed at times on the Vista dbg buil...
// Copyright (c) 20109 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // EXTREMELY flaky, crashy, and bad. See http://cr...
Mark ExtensionApiTest.ExecuteScript DISABLED because it's not only flaky, but crashy and it has been ignored for weeks!
Mark ExtensionApiTest.ExecuteScript DISABLED because it's not only flaky, but crashy and it has been ignored for weeks! It's EXTREMELY flaky, #1 flaky test of all time with over 600 flips in the last three weeks. This test seriously needs some love. TBR=rafaelw TEST=none BUG=28630 Review URL: http://codereview.chrom...
C++
bsd-3-clause
gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-lif...
d6b1e9c6e5cf9b50f8a4bf3a387888e442571f53
doc/tutorials/content/sources/resampling/resampling.cpp
doc/tutorials/content/sources/resampling/resampling.cpp
#include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/kdtree/kdtree_flann.h> #include <pcl/surface/mls.h> int main (int argc, char** argv) { // Load input file into a PointCloud<T> with an appropriate type pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ> ()); // Load ...
#include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/kdtree/kdtree_flann.h> #include <pcl/surface/mls.h> int main (int argc, char** argv) { // Load input file into a PointCloud<T> with an appropriate type pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ> ()); // Load ...
Fix deprecation warning in "Resampling" tutorial
Fix deprecation warning in "Resampling" tutorial
C++
bsd-3-clause
drmateo/pcl,drmateo/pcl,drmateo/pcl,drmateo/pcl,drmateo/pcl
38a0b27483c990eb504ffec0711202b0ba489f76
browser/browser_main_parts.cc
browser/browser_main_parts.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-CHROMIUM file. #include "browser/browser_main_parts.h" #include "browser/browser_context.h" #include "browser/web_ui_controller_factory.h" #include "net/pr...
// 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-CHROMIUM file. #include "browser/browser_main_parts.h" #include "browser/browser_context.h" #include "browser/web_ui_controller_factory.h" #include "net/pr...
Set up a native screen on Windows
Set up a native screen on Windows This is needed to prevent a crash inside aura::WindowTreeHost::InitCompositor.
C++
mit
brave/brightray,bbondy/brightray,paulcbetts/brightray,tejaspathak/brightray,atom/brightray,atom/brightray,hokein/brightray,lakshmi-srinivas/brightray,deepak1556/brightray,lakshmi-srinivas/brightray,bbondy/brightray,lakshmi-srinivas/brightray,tejaspathak/brightray,brave/brightray,hokein/brightray,paulcbetts/brightray,de...
3a6b1523918783e3983a526e2b2bae4f2b939d9b
src/test/budget_tests.cpp
src/test/budget_tests.cpp
// Copyright (c) 2018 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include <tinyformat.h> #include <utilmoneystr.h> #include "masternode-budget.h" BOOST_AUTO_TEST_...
// Copyright (c) 2018 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode-budget.h" #include "tinyformat.h" #include "utilmoneystr.h" #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST...
Fix chain ordering in budget tests
[Tests] Fix chain ordering in budget tests check testnet params first, then check mainnet so as to not interfere with subsequent unit tests that rely on mainnet params. Also clean up include ordering.
C++
mit
Mrs-X/Darknet,PIVX-Project/PIVX,npccoin/npccoin,Mrs-X/Darknet,benzmuircroft/REWIRE.io,Darknet-Crypto/Darknet,npccoin/npccoin,benzmuircroft/REWIRE.io,npccoin/npccoin,Darknet-Crypto/Darknet,Mrs-X/PIVX,npccoin/npccoin,PIVX-Project/PIVX,PIVX-Project/PIVX,PIVX-Project/PIVX,Mrs-X/PIVX,Darknet-Crypto/Darknet,Mrs-X/Darknet,Dar...
33d3b477433469c44c102eb197a87b6c83fb64f5
dbf/DbfColumn.cpp
dbf/DbfColumn.cpp
// // Created by Chris Richards on 27/04/2016. // #include <iomanip> #include <sstream> #include "DbfColumn.h" #include "DbfUtils.h" const int kDbfFieldDescriptorSize = 32; DbfColumn::DbfColumn(std::istream &stream, int index) : index_(index) { read(stream); } void DbfColumn::read(std::istream &stream) ...
// // Created by Chris Richards on 27/04/2016. // #include <iomanip> #include <sstream> #include "DbfColumn.h" #include "DbfUtils.h" const int kDbfFieldDescriptorSize = 32; DbfColumn::DbfColumn(std::istream &stream, int index) : index_(index) { read(stream); } void DbfColumn::read(std::istream &stream) ...
Fix to removing nulls from column names
Fix to removing nulls from column names
C++
mit
yellowfeather/dbf2csv,yellowfeather/dbf2csv,yellowfeather/dbf2csv,yellowfeather/dbf2csv
aae6db6f5a9bc04c7373482dc112f29c3c4fb17a
src/main.cpp
src/main.cpp
#include "myapplication.h" #include "eventdispatcher_libevent.h" #include "msghandler.h" int main(int argc, char** argv) { #if QT_VERSION < 0x050000 qInstallMsgHandler(messageHandler); #else qInstallMessageHandler(messageHandler); #endif #if QT_VERSION >= 0x050000 QCoreApplication::setEventDispatcher(new EventDisp...
#include "myapplication.h" #include "eventdispatcher_libevent.h" #include "msghandler.h" #include "qt4compat.h" int main(int argc, char** argv) { #if QT_VERSION < 0x050000 qInstallMsgHandler(messageHandler); #else qInstallMessageHandler(messageHandler); #endif #if QT_VERSION >= 0x050000 QCoreApplication::setEventD...
Use version number from qmake if possible
Use version number from qmake if possible
C++
mit
sjinks/repwatch_proxy,sjinks/repwatch_proxy
4ee38946aa7117b98fabcc545d388c9d5f86a0b6
src/main.cpp
src/main.cpp
#include <QtQuick> #include <sailfishapp.h> #include <QScopedPointer> #include <QQuickView> #include <QQmlEngine> #include <QGuiApplication> #include "factor.h" int main(int argc, char *argv[]) { // For this example, wizard-generates single line code would be good enough, // but very soon it won't be enough ...
#include <QtQuick> #include <sailfishapp.h> #include <QScopedPointer> #include <QQuickView> #include <QQmlEngine> #include <QGuiApplication> #include "factor.h" void loadTranslations() { QString langCode = QLocale::system().name().mid(0, 2); const QString Prefix("sailfactor_"); if (QFile::exists(QString...
Load the appropriate translation at startup, based on current locale.
Load the appropriate translation at startup, based on current locale.
C++
mit
lanurmi/sailfactor,lanurmi/sailfactor
aa031fd7cbba511404a26b733138e392d4f9f17a
test/Parser/cxx0x-override-control-keywords.cpp
test/Parser/cxx0x-override-control-keywords.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s struct S { virtual void final() final; virtual void override() override; virtual void n() new; };
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s struct S { virtual void final() final; virtual void override() override; virtual void n() new; int i : 3 new; int j new; }; struct T { // virt-specifier-seq is only valid in member-declarators, and a function definition is not a member-declarator. vi...
Add more parser tests for the override control keywords.
Add more parser tests for the override control keywords. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@123875 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
72f3227c83810936e7a334304e5fd7c6dab8e91b
src/util/validation.cpp
src/util/validation.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/validation.h> #include <consensus/validation.h> #include <tinyfor...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/validation.h> #include <consensus/validation.h> #include <tinyfor...
Format CValidationState properly in all cases
Format CValidationState properly in all cases FormatStateMessage does not properly handle the case where CValidationState::IsValid() returns true. Use "Valid" for the state in this case.
C++
mit
EthanHeilman/bitcoin,jambolo/bitcoin,n1bor/bitcoin,anditto/bitcoin,achow101/bitcoin,yenliangl/bitcoin,Xekyo/bitcoin,vertcoin/vertcoin,particl/particl-core,gjhiggins/vcoincore,mm-s/bitcoin,mruddy/bitcoin,rnicoll/dogecoin,alecalve/bitcoin,MarcoFalke/bitcoin,litecoin-project/litecoin,MeshCollider/bitcoin,pstratem/bitcoin,...
ac978cc19369178141d106076a45975f8cd61b2e
td/challenge260/InstructionParserTest.cpp
td/challenge260/InstructionParserTest.cpp
//#include "InstructionParser.h" #include <string> #include <stdexcept> #include "gtest/gtest.h" class InstructionParser { public: class UnknownInstruction : public std::runtime_error { public: UnknownInstruction(const std::string& msg) : std::runtime_error{msg} {} }; void parseInstructions(const ...
//#include "InstructionParser.h" #include <string> #include <stdexcept> #include "gtest/gtest.h" class InstructionParser { public: class UnknownInstruction : public std::runtime_error { public: UnknownInstruction(const std::string& msg) : std::runtime_error{msg} {} }; void parseInstructions(const ...
Use container to store acceptable instructions
Use container to store acceptable instructions
C++
mit
lukasz-m-maciejewski/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises,lukasz-m-maciejewski/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises
33ccb0ca4f3e0425ceb49a3aa5455477a4708ad9
JASP-Desktop/main.cpp
JASP-Desktop/main.cpp
#include "mainwindow.h" #include <QApplication> #include <QDialog> #include <QGridLayout> #include <QLayout> #include <QDebug> #include "application.h" int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName("JASP"); QCoreApplication::setOrganizationDomain("jasp-stats.org"); QCoreApplication::set...
#include "mainwindow.h" #include <QApplication> #include <QDialog> #include <QGridLayout> #include <QLayout> #include <QDebug> #include "application.h" int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName("JASP"); QCoreApplication::setOrganizationDomain("jasp-stats.org"); QCoreApplication::set...
Fix to decimal point rejection in float fields
Fix to decimal point rejection in float fields fixes #549
C++
agpl-3.0
jasp-stats/jasp-desktop,raviselker/jasp-desktop,raviselker/jasp-desktop,TimKDJ/jasp-desktop,dropmann/jasp-desktop,TimKDJ/jasp-desktop,vankesteren/jasp-desktop,fdabl/jasp-desktop,boutinb/jasp-desktop,AlexanderLyNL/jasp-desktop,aknight1-uva/jasp-desktop,tlevine/jasp-desktop,cgvarela/jasp-desktop,AlexanderLyNL/jasp-deskto...
d11d83dcedf0235d62bdc3e64eb0794d345f4035
src/neonstub.cpp
src/neonstub.cpp
#include "bundle.h" #include "exec.h" int main(int argc, char *argv[]) { bool enable_assert = true; unsigned short debug_port = 0; run_from_bundle(argv[0], enable_assert, debug_port, argc, argv); return 0; }
#include "bundle.h" #include "exec.h" #ifdef _WIN32 #include <windows.h> #endif int main(int argc, char *argv[]) { bool enable_assert = true; unsigned short debug_port = 0; const char *exe = argv[0]; #ifdef _WIN32 char buf[MAX_PATH]; GetModuleFileName(NULL, buf, sizeof(buf)); ...
Use GetModuleFileName on win32 to get exe name
Use GetModuleFileName on win32 to get exe name
C++
mit
ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,gitlarryf/neon-lang,gitlarryf/neon-lang,gitlarryf...
e901b4f0a730ecc809f62b6c3c308e0522c4c288
recipes/yaml-cpp/test/main.cpp
recipes/yaml-cpp/test/main.cpp
#include <iostream> #include <yaml-cpp/yaml.h> int main() { YAML::Emitter out; out << "Hello, World!"; std::cout << "Here's the output YAML:\n" << out.c_str(); return 0; }
#include <cassert> #include <yaml-cpp/yaml.h> int main() { YAML::Node node = YAML::Load("[1, 2, 3]"); assert(node.IsSequence()); return 0; }
Change the test application to one that works.
Change the test application to one that works.
C++
bsd-3-clause
rmcgibbo/staged-recipes,conda-forge/staged-recipes,Juanlu001/staged-recipes,dschreij/staged-recipes,cpaulik/staged-recipes,synapticarbors/staged-recipes,kwilcox/staged-recipes,synapticarbors/staged-recipes,jakirkham/staged-recipes,johanneskoester/staged-recipes,mcs07/staged-recipes,goanpeca/staged-recipes,ceholden/stag...
fcd1baa4a13463ffe5e8cfddc9598b730d7f1fa3
src/Functions.cpp
src/Functions.cpp
//======================================================================= // Copyright Baptiste Wicht 2011. // 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. // 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) //=====================================================...
Use the next exception for functions error reporting
Use the next exception for functions error reporting
C++
mit
wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic
4a93b2e3353bff2446856450f129b10b66529c3e
excercise05/03.cpp
excercise05/03.cpp
#include <stdio.h> #include "../excercise04/make_random_data/make_random_data.hpp" #include "../excercise04/sort/quick.hpp" int main(void) { int k; printf("Enter k= "); scanf("%d", &k); { } return 0; }
#include <stdio.h> #include "../excercise04/make_random_data/make_random_data.hpp" #include "../excercise04/sort/quick.hpp" int get_index_smallest(const int k, int *data, const int start, const int end) { if(k < 0 || k > end) return -1; /* Base case */ int p = partition(data, start, end); if(k == 0) retu...
Add body of solution of prob 3
Add body of solution of prob 3
C++
mit
kdzlvaids/algorithm_and_practice-pknu-2016,kdzlvaids/algorithm_and_practice-pknu-2016
f54718cf87dab1c4d975410e3d61d84e04cd1308
src/ext_mongo.cpp
src/ext_mongo.cpp
#include "ext_mongo.h" namespace HPHP { // PHP Exceptions and Classes HPHP::Class* MongoException::cls = nullptr; HPHP::Class* MongoConnectionException::cls = nullptr; HPHP::Class* MongoCursorTimeoutException::cls = nullptr; HPHP::Class* MongoDuplicateKeyException::cls = nullptr; HPHP::Class* MongoExecutionTimeoutExc...
#include "ext_mongo.h" namespace HPHP { // PHP Exceptions and Classes HPHP::Class* MongoException::cls = nullptr; HPHP::Class* MongoConnectionException::cls = nullptr; HPHP::Class* MongoCursorException::cls = nullptr; HPHP::Class* MongoCursorTimeoutException::cls = nullptr; HPHP::Class* MongoDuplicateKeyException::cl...
Define class pointer for MongoCursorException
Define class pointer for MongoCursorException
C++
apache-2.0
110035/mongo-hhvm-driver,110035/mongo-hhvm-driver,txg168/mongo-hhvm-driver,apuckey/mongo-hhvm-driver,10gen-labs/mongo-hhvm-driver,110035/mongo-hhvm-driver,txg168/mongo-hhvm-driver,apuckey/mongo-hhvm-driver,txg168/mongo-hhvm-driver,10gen-labs/mongo-hhvm-driver,apuckey/mongo-hhvm-driver,mongodb-labs/mongo-hhvm-driver-uns...
c9d70386d230ec0ffd1fe7cacb14ee601654dcf1
practice04/06.cpp
practice04/06.cpp
#include <stdio.h> int main(void) { return 0; }
#include <stdio.h> #define MAX_LOOP 10000 double formula(const double x, const double k) { return (x * x) / ((2 * k - 1) * (2 * k)); } int main(void) { double x; printf("Enter x= "); scanf("%lf", &x); double cosx = 1, sinx = x; int k = 2; while(k < MAX_LOOP) { ...
Add a body of prob 6
Add a body of prob 6
C++
mit
kdzlvaids/problem_solving-pknu-2016,kdzlvaids/problem_solving-pknu-2016
187f33b4da0b59f94441a41286386a38c0fa484c
src/type/class.cc
src/type/class.cc
#include <type/class.hh> namespace type { Class::Class(const std::string& name) : name_(name) {} Class::~Class() {} const std::string& Class::name_get() const { return name_; } ast::Ast* Class::component_get(const std::string& name) { return content_[name]...
#include <type/class.hh> namespace type { Class::Class(const std::string& name) : name_(name) {} Class::~Class() {} const std::string& Class::name_get() const { return name_; } ast::Ast* Class::component_get(const std::string& name) { return content_[name]...
Fix bug with component_add() on Class type
[TYPE] Fix bug with component_add() on Class type
C++
mit
Nakrez/RePy,Nakrez/RePy
4ec2ed0dab8e17445cc85acb2ca406df93be02a4
Parser/toolbox.cpp
Parser/toolbox.cpp
#include "parserPrivate.h" complexType getNumber(std::string string, bool negative, bool &a) { complexType complex; char haveI = 0; size_t size = string.size(); double value; if(string.at(0) == 'i') { haveI++; string.erase(0, 1); size--; } if(string.at(size-1) == 'i') { haveI++; string.erase(size...
#include "parserPrivate.h" complexType getNumber(std::string string, bool negative, bool &a) { complexType complex; size_t size = string.size(); double value; char haveI = 0; bool isComplex; if(string.at(0) == 'i') { haveI++; string.erase(0, 1); size--; } if(string.at(size-1) == 'i') { haveI++; s...
Use more powerfull complex type
Use more powerfull complex type
C++
bsd-3-clause
Taiki-San/Polybob,Taiki-San/Polybob
32d0e36e42ddbfc94910ab47e5061afec6e6a646
tests/tests.cpp
tests/tests.cpp
#include <iostream> #include <gtest/gtest.h> TEST(sizeof, test1) { char str1[10]; char str2[] = "Hello World!"; EXPECT_EQ(10, sizeof(str1)); EXPECT_EQ(13, sizeof(str2)); } TEST(memcpy, test1) { int a[] = {1, 2, 3}; int b[3]; memcpy(b, a, sizeof(int) * 3); EXPECT_EQ(1, b[0]); ...
#include <iostream> #include <gtest/gtest.h> TEST(sizeof, test1) { char str1[10]; char str2[] = "Hello World!"; EXPECT_EQ(10, sizeof(str1)); EXPECT_EQ(13, sizeof(str2)); } TEST(memcpy, test1) { int a[] = {1, 2, 3}; int b[3]; memcpy(b, a, sizeof(int) * 3); EXPECT_EQ(1, b[0]); ...
Add a test of array initialization
Add a test of array initialization
C++
bsd-3-clause
tsmsogn/cpp_getting_started
5225e560d73a3df79b0c388290b56bc82609861d
specimen4/main.cpp
specimen4/main.cpp
// #include <stdio.h> int main() { int n; scanf("%d", &n); int *A = new int[n]; for (int i = 0; i < n; ++i) { scanf("%d", &A[i]); } int sum = 0; int i = 0; L0: if (A[i] % 2 == 0) { left0: sum += A[i]; } else { right0: sum -= A[i]; } printf("%d", sum); if (A[i] % 2 == 0) { ...
// Let's call this CFG the 'butterfly'. // It looks like this: // // A // ,. / \,-, // | B1 B2 | // | \ / | // | C | // | / \ | // | D1 D2 | // `-`\ /`-` // E // // Where the edges between B1-D1 and B2-D2 are actually 'back-edges' which is to // say the direction is from D1 to B1 and from D2 to B2 (illu...
Add descriptory comment to specimen4 example
Add descriptory comment to specimen4 example
C++
mit
smanilov/loop-examples,smanilov/loop-examples
8cbce571d5c8304b7769d1fdcc4c76405310c994
Modules/CheckCXX11Features/cxx11-test-map_emplace.cpp
Modules/CheckCXX11Features/cxx11-test-map_emplace.cpp
#include <map> int main() { typedef std::map<int, int> ContainerType; typedef std::pair<bool, ContainerType::iterator> EmplaceReturnType; ContainerType m; // pair move constructor EmplaceReturnType aResult = m.emplace(std::make_pair(int(1), int(2))); bool aValid = (aResult.first) && ((*(aResult.second))....
#include <map> #include <iostream> int main() { typedef std::map<int, int> ContainerType; typedef std::pair<ContainerType::iterator, bool> EmplaceReturnType; ContainerType m; // pair move constructor EmplaceReturnType aResult = m.emplace(std::make_pair(int(1), int(2))); bool aValid = (aResult.second) && ...
Use correct pair type order in map::emplace test
Use correct pair type order in map::emplace test Tests on Mac identified that the incorrect type order is used in the pair type for testing returns from maps's emplace member function. Use correct ordering as defined in the Standard, and update tests of returned pair to check correct entries.
C++
bsd-3-clause
drbenmorgan/CheckCXX11Features
fe8ccd7b16d6ce99be1810972cc045350ef82540
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 163344 - [Sync] Disable unrecoverable error uploading.
Revert 163344 - [Sync] Disable unrecoverable error uploading. Disabling for beta channel. BUG=14723 TBR=tim@chromium.org Review URL: https://codereview.chromium.org/11236040 TBR=zea@chromium.org Review URL: https://codereview.chromium.org/11234039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@163375 0039d31...
C++
bsd-3-clause
crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,hgl888/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,littlstar/chromium.sr...
6138a220b368aa905283eb1a403f09f4d9e37f52
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...
Set error upload rate to 0.
[Sync] Set error upload rate to 0. This prevents sync from uploading error stacks to breakpad. BUG=134607 TEST= Review URL: https://chromiumcodereview.appspot.com/10664028 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@144124 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
timopulkkinen/BubbleFish,jaruba/chromium.src,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,ltilve/chromium,Fireblend/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,dednal/chromium....
d4e1128f50412774ae86bb9a2d60bae23f6ebbba
specs/reporters/colorizer.spec.cpp
specs/reporters/colorizer.spec.cpp
#ifndef _WIN32 #include <specs/specs.h> go_bandit([]() { describe("colorizer: ", [&]() { describe("colors enabled", [&]() { bandit::detail::colorizer colorizer; it("can set color to green", [&]() { AssertThat(colorizer.green(), Equals("\033[1;32m")); }); it("set color to red", [...
#include <specs/specs.h> go_bandit([]() { describe("colorizer: ", [&]() { #if !defined(_WIN32) || defined(BANDIT_CONFIG_COLOR_ANSI) describe("colors enabled", [&]() { bandit::detail::colorizer colorizer; it("can set color to green", [&]() { AssertThat(colorizer.green(), Equals("\033[1;32m"))...
Test disabled colorizer on Windows
Test disabled colorizer on Windows Also test enabled colorizer when BANDIT_CONFIG_COLOR_ANSI is set.
C++
mit
joakimkarlsson/bandit,joakimkarlsson/bandit,ogdf/bandit,ogdf/bandit,joakimkarlsson/bandit
0d826f8aaf9a3dc4e27067330a5479d7734627a7
xcodec/xcodec_encoder_pipe.cc
xcodec/xcodec_encoder_pipe.cc
#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/pipe.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_encoder.h> #include <xcodec/xcodec_encoder_pipe.h> XCodecEncoderPipe::XCodecEncoderPipe(XCodec *codec) : PipeSimple("/xcodec/encode...
#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/pipe.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_encoder.h> #include <xcodec/xcodec_encoder_pipe.h> XCodecEncoderPipe::XCodecEncoderPipe(XCodec *codec) : PipeSimple("/xcodec/encode...
Remove output_spontaneous use for now.
Remove output_spontaneous use for now.
C++
bsd-2-clause
wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy
a053d1f6160ee11d367c95222750df49177c4ade
src/navx_test.cc
src/navx_test.cc
#include <chrono> #include <iostream> #include <thread> #include "AHRS.h" #include "WPILib.h" /* * This program is used to measure the frequency of NavX errors. * * It prints a stream of millisecond timestamps corresponding to the last good * sensor read. Any errors noted by the NavX library are printed to standa...
#include <chrono> #include <iostream> #include <thread> #include "AHRS.h" #include "WPILib.h" /* * This program is used to measure the frequency of NavX errors. * * It prints a stream of millisecond timestamps corresponding to the last good * sensor read. Any errors noted by the NavX library are printed to standa...
Move gyro to class scope.
Move gyro to class scope.
C++
mit
strykeforce/roborio
a041e6946e5cefa37fda9f3e0b51cfad95510991
src/client/receive-views/views.cpp
src/client/receive-views/views.cpp
#include "views.h" using namespace std; namespace rviews { void login(JsonValue * message, ServerHandler * handler) { JsonDict * dictMessage = JDICT(message); if (dictMessage == NULL) { throw BadRequest("Malformatted request. Need a JSON dict"); } bool success = getBool(dictMessage, "succes...
#include "views.h" using namespace std; namespace rviews { void login(JsonValue * message, ServerHandler * handler) { JsonDict * dictMessage = JDICT(message); if (dictMessage == NULL) { throw BadRequest("Malformatted request. Need a JSON dict"); } bool success = getBool(dictMessage, "succes...
Use new signals (again) + fix list/dict
Use new signals (again) + fix list/dict
C++
mit
C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209
0d0d57a104dadb868d4a40359e4a72507172c285
test/CodeGenCXX/debug-info-thunk-msabi.cpp
test/CodeGenCXX/debug-info-thunk-msabi.cpp
// RUN: %clang_cc1 %s -triple i386-pc-windows-msvc19.0.0 -emit-obj \ // RUN: -debug-info-kind=line-tables-only -fms-extensions class __declspec(dllexport) A { A(int * = new int) {} }; // CHECK: define {{.*}}void @"\01??_FA@@AAEXXZ" // CHECK-SAME: !dbg ![[SP:[0-9]+]] // CHECK-NOT: {{ret }} // CHECK: call x86_thisc...
// RUN: %clang_cc1 %s -triple i386-pc-windows-msvc19.0.0 -emit-llvm \ // RUN: -debug-info-kind=line-tables-only -fms-extensions -o - | FileCheck %s class __declspec(dllexport) A { A(int * = new int) {} }; // CHECK: define {{.*}}void @"\01??_FA@@AAEXXZ" // CHECK-SAME: !dbg ![[SP:[0-9]+]] // CHECK-NOT: {{ret }} // ...
Add the missing FileCheck invocation to this testcase.
Add the missing FileCheck invocation to this testcase. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@287139 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 1e8e1a309993503e2f6ea4a71b10b6ca98daf681)
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
1bd7f0359067c426aedba3ca84d0ba96e78cd65b
test/Modules/warn-unused-local-typedef.cpp
test/Modules/warn-unused-local-typedef.cpp
// RUN: rm -rf %t // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_1 // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck...
// RUN: rm -rf %t // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_1 // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o ...
Fix test to not write output to the test directory, as it may not be writable.
Fix test to not write output to the test directory, as it may not be writable. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@217337 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
71499ad1763cd977ad80fa92f3782971c7b4e14c
test/language.support/support.types/offsetof.pass.cpp
test/language.support/support.types/offsetof.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. // //===----------------------------------------...
Add noexcept test for offsetof macro per [support.types]/p4.
Add noexcept test for offsetof macro per [support.types]/p4. git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@159846 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
a110e5effd317550e205afb4c27ea9fc80f5c4ba
webkit/extensions/v8/playback_extension.cc
webkit/extensions/v8/playback_extension.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #include "webkit/extensions/v8/playback_extension.h" namespace extensions_v8 { const char* kPlaybackExtensionName = "v8/Pla...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #include "webkit/extensions/v8/playback_extension.h" namespace extensions_v8 { const char* kPlaybackExtensionName = "v8/Pla...
Update playback extension so that javascript functions return consistent (but not constant) values in an attempt to preserve the functionality but improve compatibility of the extension.
Update playback extension so that javascript functions return consistent (but not constant) values in an attempt to preserve the functionality but improve compatibility of the extension. Review URL: http://codereview.chromium.org/62165 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@13688 4ff67af0-8c30-449e-8e8b...
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
360a55beed51cd37e14419ef5ca596d965d3e717
src/parameter.cpp
src/parameter.cpp
#include "ics3/parameter.hpp" ics::Parameter ics::Parameter::stretch() noexcept { static const Parameter STRETCH(0x01, 1, 127); return STRETCH; } ics::Parameter ics::Parameter::speed() noexcept { static const Parameter SPEED(0x02, 1, 127); return SPEED; } ics::Parameter ics::Parameter::current() noexcept { ...
#include "ics3/parameter.hpp" ics::Parameter ics::Parameter::stretch() noexcept { static const Parameter STRETCH(0x01, 1, 127); return STRETCH; } ics::Parameter ics::Parameter::speed() noexcept { static const Parameter SPEED(0x02, 1, 127); return SPEED; } ics::Parameter ics::Parameter::current() noexcept { ...
Fix constructor with noexcept of Parameter class
Fix constructor with noexcept of Parameter class
C++
bsd-2-clause
forno/libics3,forno/libics3
09c4779cb1473cc885b4175548ad6df32207dead
subjects/Microcomputer-Architecture/cache-simulation/full-back.cpp
subjects/Microcomputer-Architecture/cache-simulation/full-back.cpp
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <deque> #define MEM_SIZE (1<<20) #define CACHE_SIZE (1<<8) #define DATA_SIZE (1<<8) using namespace std; int main() { // Variables used int dir, cmd, op; unsigned char dat, wait; // Plant the seed srand(time(0)); // Infinit Loop while(true){...
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <bitset> #include <deque> #define MEM_SIZE (1<<20) #define CACHE_SIZE (1<<8) using namespace std; enum{ read, write }; int main() { // Variables used int dir, cmd, op; unsigned char dat, wait; // Memory simulated unsigned char rawMemory[MEM_S...
Add memory declaration, and refactor comments
Add memory declaration, and refactor comments Signed-off-by: Ulises Mendez Martinez <64c66da2351c01d4afecd1591810410a1c01865c@gmail.com>
C++
mit
Gansito144/CSM,Gansito144/CSM,Gansito144/CSM,Gansito144/CSM,Gansito144/CSM,Gansito144/CSM,Gansito144/CSM
ddcf421d056dcf79df557278661cd775ff54a7fc
test/clang-rename/VarTest.cpp
test/clang-rename/VarTest.cpp
// RUN: cat %s > %t.cpp // RUN: clang-rename -offset=170 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s // REQUIRES: shell namespace A { int foo; // CHECK: int hector; } int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1()...
namespace A { int foo; // CHECK: int hector; } // RUN: cat %s > %t.cpp // RUN: clang-rename -offset=18 -new-name=hector %t.cpp -i -- // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s int foo; // CHECK: int foo; int bar = foo; // CHECK: bar = foo; int baz = A::foo; // CHECK: baz = A::hector; void fun1() { struct { in...
Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows.
Make test EOL tolerant by moving the symbol ot the first line before any EOL changes the byte offset count and enable it on Windows. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@245688 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
d8de58e24cf5874c0d6f903d15333406787ea944
lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp
lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp
//===-- SparcMCAsmInfo.cpp - Sparc asm properties -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- SparcMCAsmInfo.cpp - Sparc asm properties -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Enable xword directive in sparcv9.
[Sparc] Enable xword directive in sparcv9. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@188141 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers...
8a0df0eba06df3ed001a1d2e54181a722bfe504f
test/TestStateVector.cpp
test/TestStateVector.cpp
#include <gtest/gtest.h> #include <Eigen/Core> #include <Eigen/Geometry> #include "Integrator.h" #include "StateVector.h" TEST(StateTest, Instantiation) { using MyStateVector = UKF::StateVector< IntegratorRK4, UKF::Field<1, Eigen::Vector2f>, UKF::Field<2, Eigen::Vector3f>, UKF::Fiel...
#include <gtest/gtest.h> #include <Eigen/Core> #include <Eigen/Geometry> #include "Integrator.h" #include "StateVector.h" TEST(StateTest, Instantiation) { enum MyFields { LatLon, Altitude, Velocity, Attitude }; using MyStateVector = UKF::StateVector< IntegratorRK4, UKF::Field<LatLon, Eig...
Use enums for keys in test
Use enums for keys in test
C++
mit
sfwa/ukf,sfwa/ukf
6e785c3569a9f66a1c459e62de80cc231eba3ab9
DSTemperature/DSTemperature.cc
DSTemperature/DSTemperature.cc
#include "DSTemperature.h" DSTemperature::DSTemperature(byte pin) { _wire = new OneWire(pin); _addresses = (DSAddress*)malloc(sizeof(DSAddress)); } void DSTemperature::begin(void) { DSAddress addr; while (_wire->search(addr.value)) { if (OneWire::crc8(addr.value, 7) == addr.value[7]) { resizeAddr...
#include "DSTemperature.h" DSTemperature::DSTemperature(byte pin) { _wire = new OneWire(pin); _addresses = (DSAddress*)malloc(sizeof(DSAddress)); } void DSTemperature::begin(void) { DSAddress addr; while (_wire->search(addr.value)) { if (OneWire::crc8(addr.value, 7) == addr.value[7]) { if (_nSens...
Call resizeAddresses only if you manage more than one sensor
Call resizeAddresses only if you manage more than one sensor
C++
mit
astagi/DSTemperature
eb0fcc5f48463f922b7c86cfa420526695eff2e8
gpu/src/GrGLUtil.cpp
gpu/src/GrGLUtil.cpp
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLConfig.h" #include "GrGLInterface.h" void GrGLClearErr(const GrGLInterface* gl) { while (GR_GL_NO_ERROR != gl->fGetError()) {} } void GrGLCheckErr(const ...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLConfig.h" #include "GrGLInterface.h" void GrGLClearErr(const GrGLInterface* gl) { while (GR_GL_NO_ERROR != gl->fGetError()) {} } void GrGLCheckErr(const ...
Fix gl error debug print.
Fix gl error debug print.
C++
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
6305992fdecfbfc5eb182695bfe1dced9f81ef14
testing/adios2/engine/bp/TestBPNoXMLRecovery.cpp
testing/adios2/engine/bp/TestBPNoXMLRecovery.cpp
#include <iostream> #include <vector> #include <adios2.h> #ifdef ADIOS2_HAVE_MPI #include <mpi.h> #endif int main(int argc, char *argv[]) { int rank = 0; int size = 1; #ifdef ADIOS2_HAVE_MPI MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &size); #endif ...
#include <iostream> #include <vector> #include <adios2.h> #ifdef ADIOS2_HAVE_MPI #include <mpi.h> #endif int main(int argc, char *argv[]) { int rank = 0; #ifdef ADIOS2_HAVE_MPI int size = 1; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &size); #endif ...
Remove unused variable warning when MPI is disabled.
Remove unused variable warning when MPI is disabled.
C++
apache-2.0
JasonRuonanWang/ADIOS2,ornladios/ADIOS2,JasonRuonanWang/ADIOS2,JasonRuonanWang/ADIOS2,ornladios/ADIOS2,ornladios/ADIOS2,JasonRuonanWang/ADIOS2,ornladios/ADIOS2,ornladios/ADIOS2,JasonRuonanWang/ADIOS2
530966b8effadfa3e026118240ce21709fc4c843
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 "chrome/common/chrome_constants.h" #incl...
Support unrecoverable error uploading on non-win platforms
[Sync] Support unrecoverable error uploading on non-win platforms We now use chrome/common/dump_without_crashing.h, and only upload on canary/ dev builds. BUG=127429 Review URL: https://codereview.chromium.org/80963003 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@236623 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
anirudhSK/chromium,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,patrickm/chromium.src,ltilve/chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk...
720d64b314a416424d48633df621e06fb1c2fd9f
base/native_library_linux.cc
base/native_library_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 "base/native_library.h" #include <dlfcn.h> #include "base/file_path.h" #include "base/logging.h" namespace base { // static NativeLibrary...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/native_library.h" #include <dlfcn.h> #include "base/file_path.h" #include "base/logging.h" namespace base { // static NativeLibrary...
Use RTLD_DEEPBIND to make sure plugins don't use Chrome's symbols instead of their own
Use RTLD_DEEPBIND to make sure plugins don't use Chrome's symbols instead of their own Review URL: http://codereview.chromium.org/112030 Patch from Antoine Labour <piman@google.com>. git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@16278 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,Cryst...
2b6e618c9185627acc6b6572d327971f553c3f5a
qt/TangramQt/main.cpp
qt/TangramQt/main.cpp
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
#include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); std::locale::global( std::locale( "C" ) ); MainWindow w; w.show(); return a.exec(); }
Set local to C. Maybe not the best longterm solution.
Set local to C. Maybe not the best longterm solution.
C++
mit
quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es
751568f31f9a4395b548c89292ffc013a0e82fe6
src/ui/Tooltip.cpp
src/ui/Tooltip.cpp
#include "ui.hpp" #include "window.hpp" namespace rack { Tooltip::Tooltip() { } void Tooltip::draw(NVGcontext *vg) { // Wrap size to contents box.size.x = bndLabelWidth(vg, -1, text.c_str()); box.size.y = bndLabelHeight(vg, -1, text.c_str(), INFINITY); bndTooltipBackground(vg, 0.0, 0.0, box.size.x, box.size.y...
#include "ui.hpp" #include "window.hpp" namespace rack { Tooltip::Tooltip() { } void Tooltip::draw(NVGcontext *vg) { // Wrap size to contents box.size.x = bndLabelWidth(vg, -1, text.c_str()) + 10.0; box.size.y = bndLabelHeight(vg, -1, text.c_str(), INFINITY); bndTooltipBackground(vg, 0.0, 0.0, box.size.x, box...
Add 10 pixels to tooltip because of Retina text width bug
Add 10 pixels to tooltip because of Retina text width bug
C++
mit
AndrewBelt/Rack
1fad6b87e5076974168349cf2e28472922ec592c
src/zcash/GenerateParams.cpp
src/zcash/GenerateParams.cpp
#include "zcash/JoinSplit.hpp" #include <iostream> int main(int argc, char **argv) { if(argc != 3) { std::cerr << "Usage: " << argv[0] << " provingKeyFileName verificationKeyFileName" << std::endl; return 1; } std::string pkFile = argv[1]; std::string vkFile = argv[2]; auto p = Z...
#include "zcash/JoinSplit.hpp" #include <iostream> #include "sodium.h" int main(int argc, char **argv) { if (sodium_init() == -1) { return 1; } if(argc != 3) { std::cerr << "Usage: " << argv[0] << " provingKeyFileName verificationKeyFileName" << std::endl; return 1; } std...
Initialize libsodium in this routine, which is now necessary because libsnark uses its PRNG.
Initialize libsodium in this routine, which is now necessary because libsnark uses its PRNG.
C++
mit
CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash
7702b9419208a06275fd7043d1bbb6245dc12f17
gui/visionnage.cpp
gui/visionnage.cpp
#include "visionnage.h" #include "mainwindow.h" #include <QDebug> #include <QException> Visionnage::Visionnage(MainWindow *parent, Projet *projet, int nPreviousImage) : QThread(parent), _parent(parent), _projet(projet), _nPreviousImage(nPreviousImage), _initFrame(parent->getNbFrame()), _stop(f...
#include "visionnage.h" #include "mainwindow.h" #include <QDebug> #include <QException> Visionnage::Visionnage(MainWindow *parent, Projet *projet, int nPreviousImage) : QThread(parent), _parent(parent), _projet(projet), _nPreviousImage(nPreviousImage), _initFrame(parent->getNbFrame()), _stop(f...
Change time pause while visionning
Change time pause while visionning
C++
mit
RotoscopMe/RotoscopMe-Desktop
aeb257f1d1c19bf7ecada41b92c38b375abe5c44
core/how_to_scan_images/ReduceColours.cpp
core/how_to_scan_images/ReduceColours.cpp
// Copyright 2015 Matt Heard // http://mattheard.net // matt@mattheard.net // @mattheard #include <opencv2/opencv.hpp> #include <iostream> #include <string> using cv::Mat; Mat buildLookUpTable(const int divideWith) { return Mat(); } int main(int argc, char **argv) { using std::string; const int expected...
// Copyright 2015 Matt Heard // http://mattheard.net // matt@mattheard.net // @mattheard #include <opencv2/opencv.hpp> #include <iostream> #include <string> using cv::Mat; Mat buildLookUpTable(const int divideWith) { const int rows = 1; const int cols = 256; const int type = CV_8U; const Mat table(ro...
Implement fn to build lookup table
Implement fn to build lookup table
C++
mit
MattHeard/OpenCV-Tutorials
e36045c6a1eb79fd53058fd26ba9c8ec5fce4c70
chrome/browser/ui/touch/frame/browser_non_client_frame_view_factory_touch.cc
chrome/browser/ui/touch/frame/browser_non_client_frame_view_factory_touch.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/views/frame/browser_non_client_frame_view.h" #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" #include...
// 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/views/frame/browser_non_client_frame_view.h" #include "base/command_line.h" #include "chrome/browser/ui/panels/panel_brow...
Use the normal panel-frame until there's a touch-friendly version.
Use the normal panel-frame until there's a touch-friendly version. BUG=none TEST=browser_test:WindowOpenPanel Review URL: http://codereview.chromium.org/7192001 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@89364 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Jonekee/chromium.src,jaruba/chromium.src,M4sse/chromium.src,hujiajie/pa-chromium,ltilve/chromium,dednal/chromium.src,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,ondra-novak/chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,ondra...
70549826ec94c46f875cd4ec0429d44bb388ab65
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance-pr18967.cpp
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance-pr18967.cpp
// RUN: not %clang_cc1 -triple i686-pc-win32 -emit-llvm -fno-rtti %s 2>&1 | FileCheck %s // CHECK: error: v-table layout for classes with non-virtual base classes that override methods in virtual bases is not supported yet struct A { virtual int foo() { return a; } int a; }; struct B : virtual A { B() : b(1) {}...
// RUN: not %clang_cc1 -triple i686-pc-win32 -emit-llvm-only -fno-rtti %s 2>&1 | FileCheck %s // CHECK: error: v-table layout for classes with non-virtual base classes that override methods in virtual bases is not supported yet struct A { virtual int foo() { return a; } int a; }; struct B : virtual A { B() : b(...
Change this test to not try to emit any IR. (It should fail to, but it tries to create an output file before encountering the error.)
Change this test to not try to emit any IR. (It should fail to, but it tries to create an output file before encountering the error.) git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@202343 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
7d3ea333f37de47dab384dbab0f7f3afad36e7d0
src/Utils/Files.cpp
src/Utils/Files.cpp
#include "nucleus/Config.h" #include "nucleus/Files/FilePath.h" #if OS(POSIX) #include <unistd.h> #endif namespace nu { #if OS(POSIX) FilePath getCurrentWorkingDirectory(Allocator* allocator) { char buf[PATH_MAX] = {0}; const char* result = ::getcwd(buf, PATH_MAX); return FilePath{String{result, String::npos,...
#include "nucleus/Config.h" #include "nucleus/Files/FilePath.h" #if OS(POSIX) #include <unistd.h> #elif OS(WIN) #include "nucleus/Win/WindowsMixin.h" #endif namespace nu { FilePath getCurrentWorkingDirectory(Allocator* allocator) { #if OS(POSIX) char buf[PATH_MAX] = {0}; const char* result = ::getcwd(buf, PATH_...
Add GetCurrentWorkingDirectory for Windows platform
Add GetCurrentWorkingDirectory for Windows platform
C++
unknown
tiaanl/nucleus,fizixx/nucleus
87670b15e14d24e7d7396c8716d78885e75a4728
demo/Bootstrapper.cpp
demo/Bootstrapper.cpp
#include "Bootstrapper.hpp" #include <functional> #include <lua-cxx/LuaValue.hpp> #include <lua-cxx/loaders.hpp> #include <lua-cxx/userdata.hpp> #include "LuaPainter.hpp" #include "LuaFont.hpp" Bootstrapper::Bootstrapper() : _lua(), _desktop(_lua), _rainback(_lua) { _rainback.setWidget(&_desktop); ...
#include "Bootstrapper.hpp" #include <functional> #include <lua-cxx/LuaValue.hpp> #include <lua-cxx/loaders.hpp> #include <lua-cxx/userdata.hpp> #include "LuaPainter.hpp" #include "LuaFont.hpp" Bootstrapper::Bootstrapper() : _lua(), _desktop(_lua), _rainback(_lua) { _rainback.setWidget(&_desktop); ...
Use Qt to load init.lua
Use Qt to load init.lua
C++
mit
Thonik/rainback
86f1cc276f623536398aa0743f91f3bfc056692c
ykman-gui/main.cpp
ykman-gui/main.cpp
#include <QApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <stdlib.h> #include <QtGlobal> #include <QtWidgets> #include <QtSingleApplication> int main(int argc, char *argv[]) { QtSingleApplication app(argc, argv); if (app.isRunning()) { return 0; } QQmlApplicationE...
#include <QApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <stdlib.h> #include <QtGlobal> #include <QtWidgets> #include <QtSingleApplication> int main(int argc, char *argv[]) { // Only allow a single instance running. QtSingleApplication app(argc, argv); if (app.sendMessage(""...
Raise window if new instance is started
Raise window if new instance is started
C++
bsd-2-clause
Yubico/yubikey-manager-qt,Yubico/yubikey-manager-qt,Yubico/yubikey-manager-qt,Yubico/yubikey-manager-qt
c7bd7daa8ef2eb3f7cf0c00d5825e5c0a686d20d
src/math_container.cpp
src/math_container.cpp
#include "math_container.h" using std::complex; /******************************************************/ /*solve the equation cosh(x)=exp(y), input y, return x*/ /******************************************************/ complex<double> coshx_eq_expy(double y) { complex<double> ey={exp(y),0}; complex<double> ga...
#include "math_container.h" using namespace std; /******************************************************/ /*solve the equation cosh(x)=exp(y), input y, return x*/ /******************************************************/ complex<double> coshx_eq_expy(double y) { complex<double> ey={exp(y),0}; complex<double> g...
Use namespace std, if we do not set this there is a bug?.
Use namespace std, if we do not set this there is a bug?.
C++
mit
hshi/math_lib_hao,hshi/math_lib_hao
a7d028db7156d3b4a58ae752d640578032523089
src/ToolsUnix.cpp
src/ToolsUnix.cpp
#ifdef __unix__ #include <iostream> #include <signal.h> #include <stdio.h> #include <unistd.h> #include "Tools.h" void StartBotProcess(const std::string& CommandLine) { FILE* pipe = popen(CommandLine.c_str(), "r"); if (!pipe) { std::cerr << "Can't launch command '" << CommandLine << "...
#ifdef __unix__ #include <iostream> #include <signal.h> #include <stdio.h> #include <unistd.h> #include "Tools.h" void StartBotProcess(const std::string& CommandLine) { FILE* pipe = popen(CommandLine.c_str(), "r"); if (!pipe) { std::cerr << "Can't launch command '" << CommandLine << "...
Fix linking error (again, but for Unix this time)
Fix linking error (again, but for Unix this time)
C++
mit
Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer
9c7dd15401f7200fe6a52bca3f3cfd16ef7bf17c
test_src/Tests.cpp
test_src/Tests.cpp
/* This file is part of VoltDB. * Copyright (C) 2008-2015 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to...
/* This file is part of VoltDB. * Copyright (C) 2008-2015 VoltDB Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to...
Make cpptest main return 0 for SUCCESS.
Make cpptest main return 0 for SUCCESS.
C++
mit
creative-quant/voltdb-client-cpp,creative-quant/voltdb-client-cpp,creative-quant/voltdb-client-cpp,creative-quant/voltdb-client-cpp
cbaf4a52d678c495e045e785ca70c35ebe48a4d7
chrome/browser/extensions/execute_script_apitest.cc
chrome/browser/extensions/execute_script_apitest.cc
// Copyright (c) 20109 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // This test failed at times on the Vista dbg buil...
// Copyright (c) 20109 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // EXTREMELY flaky, crashy, and bad. See http://cr...
Mark ExtensionApiTest.ExecuteScript DISABLED because it's not only flaky, but crashy and it has been ignored for weeks!
Mark ExtensionApiTest.ExecuteScript DISABLED because it's not only flaky, but crashy and it has been ignored for weeks! It's EXTREMELY flaky, #1 flaky test of all time with over 600 flips in the last three weeks. This test seriously needs some love. TBR=rafaelw TEST=none BUG=28630 Review URL: http://codereview.chrom...
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...
e1c16f26ae5be896ace8038cd4521f26162946df
FSSubsystemBuilder.cpp
FSSubsystemBuilder.cpp
/* * INTEL CONFIDENTIAL * Copyright © 2011 Intel * Corporation All Rights Reserved. * * The source code contained or described herein and all documents related to * the source code ("Material") are owned by Intel Corporation or its suppliers * or licensors. Title to the Material remains with Intel Corporation or...
/* * INTEL CONFIDENTIAL * Copyright © 2011 Intel * Corporation All Rights Reserved. * * The source code contained or described herein and all documents related to * the source code ("Material") are owned by Intel Corporation or its suppliers * or licensors. Title to the Material remains with Intel Corporation or...
Change the element builder semantic
Change the element builder semantic BZ: 122982 To parse XML, the PFW uses factories containing a map of XML tags and their associated builder builder. The builders used to contain the XML tag of the XML element that it will use in the context of the factory. A builder and an XML tag are already linked by the factory,...
C++
bsd-3-clause
01org/parameter-framework-plugins-filesystem,01org/parameter-framework-plugins-filesystem,android-ia/vendor_intel_hardware_audiocomms_parameter-framework_plugins_fs,clero/parameter-framework-plugins-filesystem,android-ia/vendor_intel_hardware_audiocomms_parameter-framework_plugins_fs,clero/parameter-framework-plugins-f...
f63d18070e9b69403affb7399255e94f10767555
chrome/browser/ui/touch/frame/browser_non_client_frame_view_factory_touch.cc
chrome/browser/ui/touch/frame/browser_non_client_frame_view_factory_touch.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/views/frame/browser_non_client_frame_view.h" #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" #include...
// 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/views/frame/browser_non_client_frame_view.h" #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" #include...
Use the non-touch popup frame instead of NULL.
Use the non-touch popup frame instead of NULL. While this change isn't really all that usable in chrome itself, it fixes a number of the tests in browser_tests and ui_tests, and fixes a crash in some other tests to unmask other failures. BUG=none TEST=some failing tests (e.g. BrowserNavigatorTest.*) should pass on th...
C++
bsd-3-clause
jaruba/chromium.src,dednal/chromium.src,jaruba/chromium.src,dednal/chromium.src,robclark/chromium,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,jaruba/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-cro...
0801db6bb4147c0083478776e92024352d97b935
src/mlpack/core/optimizers/lrsdp/lrsdp.cpp
src/mlpack/core/optimizers/lrsdp/lrsdp.cpp
/** * @file lrsdp.cpp * @author Ryan Curtin * * An implementation of Monteiro and Burer's formulation of low-rank * semidefinite programs (LR-SDP). */ #include "lrsdp.hpp" using namespace mlpack; using namespace mlpack::optimization; using namespace std; LRSDP::LRSDP(const size_t numSparseConstraints, ...
/** * @file lrsdp.cpp * @author Ryan Curtin * * An implementation of Monteiro and Burer's formulation of low-rank * semidefinite programs (LR-SDP). */ #include "lrsdp.hpp" using namespace mlpack; using namespace mlpack::optimization; using namespace std; LRSDP::LRSDP(const size_t numSparseConstraints, ...
Set the default starting penalty to 10
Set the default starting penalty to 10
C++
bsd-3-clause
BookChan/mlpack,trungda/mlpack,trungda/mlpack,Azizou/mlpack,thirdwing/mlpack,ajjl/mlpack,lezorich/mlpack,bmswgnp/mlpack,minhpqn/mlpack,palashahuja/mlpack,datachand/mlpack,darcyliu/mlpack,ranjan1990/mlpack,palashahuja/mlpack,datachand/mlpack,ersanliqiao/mlpack,bmswgnp/mlpack,lezorich/mlpack,ajjl/mlpack,darcyliu/mlpack,m...
4ccd9feab0471afbd33dff746275975be9e75e03
src/SenseKit/Logging.cpp
src/SenseKit/Logging.cpp
#include "Logging.h" #include <SenseKit/sensekit_types.h> INITIALIZE_LOGGING namespace sensekit { void initialize_logging(const char* logFilePath) { const char TRUE_STRING[] = "true"; el::Loggers::addFlag(el::LoggingFlag::CreateLoggerAutomatically); el::Loggers::addFlag(el::LoggingF...
#include "Logging.h" #include <SenseKit/sensekit_types.h> INITIALIZE_LOGGING namespace sensekit { void initialize_logging(const char* logFilePath) { const char TRUE_STRING[] = "true"; el::Loggers::addFlag(el::LoggingFlag::CreateLoggerAutomatically); el::Loggers::addFlag(el::LoggingF...
Change default log level to >= FATAL
Change default log level to >= FATAL
C++
apache-2.0
orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra
c78c0e3bee827222b34cd72dcaba23d2fc6bf07e
chrome/browser/idle_query_linux.cc
chrome/browser/idle_query_linux.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/idle_query_linux.h" #include <X11/Xlib.h> #include <X11/extensions/scrnsaver.h> namespace browser { class IdleData { publ...
// 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/idle_query_linux.h" #include <X11/extensions/scrnsaver.h> #include "ui/base/x/x11_util.h" namespace browser { class IdleDa...
Use GetXDisplay() instead of XOpenDisplay() in IdleQueryLinux.
Use GetXDisplay() instead of XOpenDisplay() in IdleQueryLinux. We weren't checking that XOpenDisplay was actually succeeding before attempting to use the display. BUG=82308 TEST=none Review URL: http://codereview.chromium.org/7015007 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@85138 0039d316-1c4b-4281-b951...
C++
bsd-3-clause
bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,hujiajie/pa-chromium,axinging/chromium-crosswalk,jaruba/chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,zcbenz/cefo...
f70bad5dc97d7a4a2873e508887f4ad925d8cb0c
agent/src/main.cpp
agent/src/main.cpp
#include <iostream> #include <system_error> #include "controllers/main/MainModule.hpp" #include "network/bsdsocket/Manager.hpp" int main() { tin::controllers::main::ControllerQueue ctrlQueue; tin::network::bsdsocket::ManagerQueue netManagerQueue; tin::controllers::main::MainModule mainCtrl(ctrlQueue, net...
#include <iostream> #include <system_error> #include "controllers/main/MainModule.hpp" #include "network/bsdsocket/Manager.hpp" #include "network/sniffer/SnifferManager.hpp" int main() { tin::controllers::main::ControllerQueue ctrlQueue; tin::network::bsdsocket::ManagerQueue netManagerQueue; tin::control...
Create a simple example of sniffing
Create a simple example of sniffing
C++
mit
mdziekon/eiti-tin-ftp-stattr,mdziekon/eiti-tin-ftp-stattr,mdziekon/eiti-tin-ftp-stattr
d6aff1b531033ee882fb939acdb96df3a8f8603d
test/asan/TestCases/Linux/pthread_create_version.cc
test/asan/TestCases/Linux/pthread_create_version.cc
// RUN: %clangxx_asan -std=c++11 %s -o %t && %run %t 2>&1 // Regression test for the versioned pthread_create interceptor on linux/i386. // pthread_attr_init is not intercepted and binds to the new abi // pthread_create is intercepted; dlsym always returns the oldest version. // This results in a crash inside pthread_c...
// RUN: %clangxx_asan -std=c++11 -pthread %s -o %t && %run %t 2>&1 // Regression test for the versioned pthread_create interceptor on linux/i386. // pthread_attr_init is not intercepted and binds to the new abi // pthread_create is intercepted; dlsym always returns the oldest version. // This results in a crash inside ...
Add missing -pthread in tests.
[asan] Add missing -pthread in tests. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@248332 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
6ba447b5b0cfd93f8bfd414357216513f30a9382
test/Modules/pr28438.cpp
test/Modules/pr28438.cpp
// RUN: rm -rf %t // RUN: %clang_cc1 -fsyntax-only -verify %s -fmodules -fmodules-cache-path=%t -I%S/Inputs/PR28438 -fimplicit-module-maps #include "a.h" #include "b2.h" #pragma clang __debug macro FOO FOO // xpected-no-diagnostics
// RUN: rm -rf %t // RUN: %clang_cc1 -fsyntax-only -verify %s -fmodules -fmodules-cache-path=%t -I%S/Inputs/PR28438 -fimplicit-module-maps #include "a.h" #include "b2.h" FOO // expected-no-diagnostics
Remove debugging aids from this test and fix its expectations.
Remove debugging aids from this test and fix its expectations. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@279034 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
759865753471bfa777e9a5ac48fe741651fa3c55
src/state/game_state.cpp
src/state/game_state.cpp
#include "game_state.hpp" #include "start_game_state.hpp" namespace Quoridor { GameState::GameState() { } GameState::~GameState() { } void GameState::handle_events(StateManager *stm, std::shared_ptr<UI::UIImpl> ui) { UI::Event ev; if (ui->poll_event(&ev)) { switch (ev) { case UI::kEnter: ...
#include "game_state.hpp" #include "start_game_state.hpp" namespace Quoridor { GameState::GameState() { } GameState::~GameState() { } void GameState::handle_events(StateManager *stm, std::shared_ptr<UI::UIImpl> ui) { UI::Event ev; if (ui->poll_event(&ev)) { switch (ev) { case UI::kEnter: ...
Fix var name in GameState::handle_events.
Fix var name in GameState::handle_events.
C++
mit
sfod/quoridor
25bceaf39c26492c4c61bc4944ceb81a9f92abbb
proctor/src/main.cpp
proctor/src/main.cpp
#include <omp.h> #include "proctor/detector.h" #include "proctor/proctor.h" #include "proctor/scanning_model_source.h" #include "proctor/basic_proposer.h" using pcl::proctor::Detector; //using pcl::proctor::ProctorMPI; using pcl::proctor::Proctor; using pcl::proctor::ScanningModelSource; using pcl::proctor::BasicProp...
#include "proctor/detector.h" #include "proctor/proctor.h" #include "proctor/scanning_model_source.h" #include "proctor/basic_proposer.h" using pcl::proctor::Detector; //using pcl::proctor::ProctorMPI; using pcl::proctor::Proctor; using pcl::proctor::ScanningModelSource; using pcl::proctor::BasicProposer; int main(in...
Remove unneeded OpenMP header import.
Remove unneeded OpenMP header import. git-svn-id: e7ea667a1d39a4453c4efcc4ba7bca3d620c3f19@3877 a9d63959-f2ad-4865-b262-bf0e56cfafb6
C++
bsd-3-clause
daviddoria/PCLMirror,daviddoria/PCLMirror,patmarion/PCL,daviddoria/PCLMirror,otherlab/pcl,otherlab/pcl,patmarion/PCL,daviddoria/PCLMirror,patmarion/PCL,otherlab/pcl,patmarion/PCL,otherlab/pcl,otherlab/pcl,patmarion/PCL,daviddoria/PCLMirror
04dc721241855181f9f3df606254a3d3056ae974
spec/runtime/helpers/spy_reader.cc
spec/runtime/helpers/spy_reader.cc
#include "runtime/helpers/spy_reader.h" #include <algorithm> using std::string; static const char * spy_read(void *data, size_t *bytes_read) { SpyReader *reader = static_cast<SpyReader *>(data); string result = reader->content.substr(reader->position, reader->chunk_size); reader->position += result.size(); re...
#include "runtime/helpers/spy_reader.h" #include <string.h> #include <algorithm> using std::string; static const char * spy_read(void *data, size_t *bytes_read) { SpyReader *reader = static_cast<SpyReader *>(data); string result = reader->content.substr(reader->position, reader->chunk_size); reader->position +=...
Add missing import for string.h
Add missing import for string.h
C++
mit
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
326e0b9783d97a3c44e5aa7cc18ee850e79e8220
src/game.cpp
src/game.cpp
#include "game.hpp" #include "exception.hpp" #include "walk_move.hpp" #include "wall_move.hpp" namespace Quoridor { Game::Game() : board_(new Board(9, 9)), pawn_list_() { } Game::~Game() { } void Game::add_pawn(std::shared_ptr<Pawn> pawn) { board_->add_pawn(pawn); pawn_list_.push_back(pawn); } pos_t Game::...
#include "game.hpp" #include "exception.hpp" #include "walk_move.hpp" #include "wall_move.hpp" namespace Quoridor { Game::Game() : board_(new Board(9, 9)), pawn_list_() { } Game::~Game() { } void Game::add_pawn(std::shared_ptr<Pawn> pawn) { board_->add_pawn(pawn); pawn_list_.push_back(pawn); } pos_t Game::...
Fix walking move in Game.
Fix walking move in Game.
C++
mit
sfod/quoridor
69951264fc0b86c5210f1613ddd16dd233744346
src/tile.cpp
src/tile.cpp
#include "tile.hpp" #include "vector_tile.pb.h" #include <google/protobuf/io/zero_copy_stream_impl.h> namespace avecado { tile::tile(unsigned int z_, unsigned int x_, unsigned int y_) : z(z_), x(x_), y(y_), m_mapnik_tile(new mapnik::vector::tile) { } tile::~tile() { } std::string tile::get_data() const { std::...
#include "tile.hpp" #include "vector_tile.pb.h" #include <google/protobuf/io/zero_copy_stream_impl.h> namespace avecado { tile::tile(unsigned int z_, unsigned int x_, unsigned int y_) : z(z_), x(x_), y(y_), m_mapnik_tile(new mapnik::vector::tile) { } tile::~tile() { } std::string tile::get_data() const { std::...
Make it so that serialisation to PBF happens in only one place.
Make it so that serialisation to PBF happens in only one place.
C++
bsd-2-clause
zerebubuth/avecado,MapQuest/avecado,MapQuest/avecado,zerebubuth/avecado,zerebubuth/avecado,MapQuest/avecado
649bfc586ebc58316040feebda90c052028a1d4b
Wangscape/noise/module/codecs/TerraceWrapperCodec.cpp
Wangscape/noise/module/codecs/TerraceWrapperCodec.cpp
#pragma once #include "TerraceWrapperCodec.h" namespace spotify { namespace json { using TerraceWrapper = noise::module::Wrapper<noise::module::Terrace>; codec::object_t<TerraceWrapper> default_codec_t<TerraceWrapper>::codec() { auto codec = codec::object<TerraceWrapper>(); codec.required("type"...
#pragma once #include "TerraceWrapperCodec.h" namespace spotify { namespace json { using TerraceWrapper = noise::module::Wrapper<noise::module::Terrace>; codec::object_t<TerraceWrapper> default_codec_t<TerraceWrapper>::codec() { auto codec = codec::object<TerraceWrapper>(); codec.required("type"...
Add missing attribute to Terrace codec
Add missing attribute to Terrace codec
C++
mit
Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape
1e581252963f4cb135dac9c4b802ab1e2af5c8b7
src/Editor/GUI/EntityEditor.cpp
src/Editor/GUI/EntityEditor.cpp
#include "EntityEditor.hpp" #include <Engine/Manager/Managers.hpp> #include <Engine/Manager/ResourceManager.hpp> #include <Engine/Geometry/Rectangle.hpp> #include "TransformEditor.hpp" using namespace GUI; EntityEditor::EntityEditor(Widget* parent) : Widget(parent) { rectangle = Managers().resourceManager->Creat...
#include "EntityEditor.hpp" #include <Engine/Manager/Managers.hpp> #include <Engine/Manager/ResourceManager.hpp> #include <Engine/Geometry/Rectangle.hpp> #include "TransformEditor.hpp" using namespace GUI; EntityEditor::EntityEditor(Widget* parent) : Widget(parent) { rectangle = Managers().resourceManager->Creat...
Set the transform editor's size.
Set the transform editor's size.
C++
mit
Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine
dc76e08a5d10b0866111ed79414dbafbd247fd96
base/cancellation_flag.cc
base/cancellation_flag.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/cancellation_flag.h" #include "base/logging.h" namespace base { void CancellationFlag::Set() { #if !defined(NDEBUG) DCHECK(set_on_...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/cancellation_flag.h" #include "base/logging.h" namespace base { void CancellationFlag::Set() { #if !defined(NDEBUG) DCHECK_EQ(set_...
Replace a DCHECK with DCHECK_EQ.
Replace a DCHECK with DCHECK_EQ. BUG=none TEST=none Review URL: http://codereview.chromium.org/2919013 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@52429 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
1561248f6cc4ee6dd2d227bd4586fa0054c69614
test/SemaTemplate/member-function-template.cpp
test/SemaTemplate/member-function-template.cpp
// RUN: clang-cc -fsyntax-only -verify %s struct X { template<typename T> T& f0(T); void g0(int i, double d) { int &ir = f0(i); double &dr = f0(d); } template<typename T> T& f1(T); template<typename T, typename U> U& f1(T, U); void g1(int i, double d) { int &ir1 = f1(i); int &ir2 =...
// RUN: clang-cc -fsyntax-only -verify %s struct X { template<typename T> T& f0(T); void g0(int i, double d) { int &ir = f0(i); double &dr = f0(d); } template<typename T> T& f1(T); template<typename T, typename U> U& f1(T, U); void g1(int i, double d) { int &ir1 = f1(i); int &ir2 =...
Add test taking the address of a member function template and converting it to a member pointer.
Add test taking the address of a member function template and converting it to a member pointer. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@79699 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
b99ebb7a19d50b75e07ce5a2622608e9cee52ef5
mert/TimerTest.cpp
mert/TimerTest.cpp
#include "Timer.h" #define BOOST_TEST_MODULE TimerTest #include <boost/test/unit_test.hpp> #include <string> #include <iostream> BOOST_AUTO_TEST_CASE(timer_basic_test) { Timer timer; timer.start(); BOOST_REQUIRE(timer.is_running()); BOOST_REQUIRE(timer.get_elapsed_cpu_time() > 0.0); BOOST_REQUIRE(timer.get...
#include "Timer.h" #define BOOST_TEST_MODULE TimerTest #include <boost/test/unit_test.hpp> #include <string> #include <iostream> #include <unistd.h> BOOST_AUTO_TEST_CASE(timer_basic_test) { Timer timer; const int sleep_time_microsec = 40; // ad-hoc microseconds to pass unit tests. timer.start(); BOOST_REQUI...
Fix failure of the Timer unit test.
Fix failure of the Timer unit test.
C++
lgpl-2.1
moses-smt/mosesdecoder,emjotde/mosesdecoder_nmt,alvations/mosesdecoder,pjwilliams/mosesdecoder,tofula/mosesdecoder,KonceptGeek/mosesdecoder,KonceptGeek/mosesdecoder,tofula/mosesdecoder,moses-smt/mosesdecoder,moses-smt/mosesdecoder,emjotde/mosesdecoder_nmt,KonceptGeek/mosesdecoder,tofula/mosesdecoder,pjwilliams/mosesdec...
7d3ab2ca74916c84334c3a7aa4145417a9d214bb
travelccm/service/TRAVELCCM_ServiceContext.cpp
travelccm/service/TRAVELCCM_ServiceContext.cpp
// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> #include <sstream> // TravelCCM Basic #include <travelccm/service/TRAVELCCM_ServiceContext.hpp> namespace TRAVELCCM { // ...
// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> #include <sstream> // TravelCCM Basic #include <travelccm/service/TRAVELCCM_ServiceContext.hpp> namespace TRAVELCCM { // ...
Reset the stdair service shared pointer in order to decrease the count by one every time (and not only when owning the stdair service).
[Dev] Reset the stdair service shared pointer in order to decrease the count by one every time (and not only when owning the stdair service).
C++
lgpl-2.1
jwakely/travelccm,airsim/travelccm,airsim/travelccm,jwakely/travelccm
80bb3b754969fff966497f1828173318a9f7e1a8
tests/audio_test.cpp
tests/audio_test.cpp
#include "audio_mixer.hpp" #include "timer.hpp" #include "vorbis_stream.hpp" #include <chrono> #include <thread> #include <cmath> using namespace Granite::Audio; using namespace std; struct SineAudio : BackendCallback { void mix_samples(float * const *channels, size_t num_frames) noexcept override { float *left =...
#include "audio_mixer.hpp" #include "timer.hpp" #include "vorbis_stream.hpp" #include <chrono> #include <thread> #include <cmath> using namespace Granite::Audio; using namespace std; struct SineAudio : BackendCallback { void mix_samples(float * const *channels, size_t num_frames) noexcept override { float *left =...
Test other sampling rates for good measure.
Test other sampling rates for good measure.
C++
mit
Themaister/Granite,Themaister/Granite,Themaister/Granite,Themaister/Granite,Themaister/Granite,Themaister/Granite
a4a7c0cb06372ff9037dd1084b43bd15090ed44b
kopete/config/behavior/behaviorconfig_events.cpp
kopete/config/behavior/behaviorconfig_events.cpp
/* behaviourconfig_events.cpp Copyright (c) 2006 by Thorben Kröger <thorbenk@gmx.net> Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
/* behaviourconfig_events.cpp Copyright (c) 2006 by Thorben Kröger <thorbenk@gmx.net> Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
Disable the systray animation setting if Qt lacks mng support and tell the user about it in the tooltip BUG: 161800
Disable the systray animation setting if Qt lacks mng support and tell the user about it in the tooltip BUG: 161800 svn path=/trunk/KDE/kdenetwork/kopete/; revision=808033
C++
lgpl-2.1
Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete
fc51305d4711ab5a10c5ab50b75617b480dd93e8
payload/Bmp180.cpp
payload/Bmp180.cpp
#include "Bmp180.h"
#include "Bmp180.h" namespace rcr { namespace level1payload { Bmp180::Bmp180(void) { // Start the BMP-180. Trap the thread if no sensor is found. if (!bmp_.begin()) { Serial.println("No BMP sensor found. Program will not proceed."); while (1) { /* Trap the thread. */ } } } float Bmp180::temperature(voi...
Implement the BMP180 container class
Implement the BMP180 container class
C++
mit
nolanholden/payload-level1-rocket,nolanholden/geovis,nolanholden/geovis,nolanholden/geovis
f290eed6f2d0c59e89db1374f9e6b254b51a2356
fpdfsdk/src/fpdf_dataavail_embeddertest.cpp
fpdfsdk/src/fpdf_dataavail_embeddertest.cpp
// Copyright 2015 PDFium 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 "../../testing/embedder_test.h" #include "../../fpdfsdk/include/fpdfview.h" #include "../../fpdfsdk/include/fpdfdoc.h" #include "testing/gtest/include/...
// Copyright 2015 PDFium 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 "../../testing/embedder_test.h" #include "../../fpdfsdk/include/fpdfview.h" #include "../../fpdfsdk/include/fpdfdoc.h" #include "testing/gtest/include/...
Fix test result under XFA. This gives an error at an earlier stage, but is fine so long as the crashes don't happen.
Fix test result under XFA. This gives an error at an earlier stage, but is fine so long as the crashes don't happen. TBR=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/874743002
C++
bsd-3-clause
andoma/pdfium,andoma/pdfium,DrAlexx/pdfium,DrAlexx/pdfium,DrAlexx/pdfium,andoma/pdfium,andoma/pdfium,DrAlexx/pdfium
2ba66526b3776cf53bd548d6c8646d909d2fc98f
src/common/async_timer.cpp
src/common/async_timer.cpp
#include <aerial_autonomy/common/async_timer.h> #include <iostream> #include <stdexcept> AsyncTimer::AsyncTimer(std::function<void()> function, std::chrono::duration<double> timer_duration) : function_(function), timer_duration_(timer_duration), running_(false) {} AsyncTimer::~AsyncTimer()...
#include <aerial_autonomy/common/async_timer.h> #include <stdexcept> AsyncTimer::AsyncTimer(std::function<void()> function, std::chrono::duration<double> timer_duration) : function_(function), timer_duration_(timer_duration), running_(false) {} AsyncTimer::~AsyncTimer() { running_ = fals...
Remove unnecessary header from AsyncTimer
Remove unnecessary header from AsyncTimer
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
d4bc75446c9d92184dcebecfbf232c6321edec2f
src/default_benchmarks.cpp
src/default_benchmarks.cpp
/* * Copyright © 2017 Collabora Ltd. * * This file is part of vkmark. * * vkmark is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation, either * version 2.1 of the License, or (at your option) any late...
/* * Copyright © 2017 Collabora Ltd. * * This file is part of vkmark. * * vkmark is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation, either * version 2.1 of the License, or (at your option) any late...
Add effect2d scene variants to default benchmarks
main: Add effect2d scene variants to default benchmarks
C++
lgpl-2.1
vkmark/vkmark,vkmark/vkmark,vkmark/vkmark
6eef3c63b25cbd40dcfd31eb7a00b40e1a40d55f
unittests/tools/llvm-exegesis/X86/TargetTest.cpp
unittests/tools/llvm-exegesis/X86/TargetTest.cpp
#include "Target.h" #include <cassert> #include <memory> #include "MCTargetDesc/X86MCTargetDesc.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace exegesis { void InitializeX86ExegesisTarget(); namespace { using testing::Gt; using testing::NotNull; using testing::SizeIs; class X86TargetTest : public ...
#include "Target.h" #include <cassert> #include <memory> #include "MCTargetDesc/X86MCTargetDesc.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace exegesis { void InitializeX86ExegesisTarget(); namespace { using testing::Gt; using testing::NotNull; using testing::SizeIs; class X86TargetTest : public ...
Fix unsigned/signed comparison failure in unittest.
Fix unsigned/signed comparison failure in unittest. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@335547 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/s...
954026df5c71ad0c2741173c9861ebe1133ce249
src/runtime/posix_math.cpp
src/runtime/posix_math.cpp
#include "runtime_internal.h" #define INLINE inline __attribute__((weak)) __attribute__((used)) __attribute__((always_inline)) __attribute__((nothrow)) __attribute__((pure)) extern "C" { INLINE float float_from_bits(uint32_t bits) { union { uint32_t as_uint; float as_float; } u; u.as_uint...
#include "runtime_internal.h" #define INLINE inline __attribute__((weak)) __attribute__((used)) __attribute__((always_inline)) __attribute__((nothrow)) __attribute__((pure)) extern "C" { INLINE float float_from_bits(uint32_t bits) { union { uint32_t as_uint; float as_float; } u; u.as_uint...
Remove some dead math intrinsics
Remove some dead math intrinsics
C++
mit
tdenniston/Halide,adasworks/Halide,jiawen/Halide,kgnk/Halide,psuriana/Halide,dougkwan/Halide,jiawen/Halide,adasworks/Halide,dougkwan/Halide,jiawen/Halide,psuriana/Halide,ronen/Halide,adasworks/Halide,ronen/Halide,psuriana/Halide,kgnk/Halide,kgnk/Halide,adasworks/Halide,tdenniston/Halide,kgnk/Halide,psuriana/Halide,rone...
f5e2ed4c17e810a7997bc5b87fea4ffd74494efa
chrome/browser/extensions/extension_function.cc
chrome/browser/extensions/extension_function.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_function.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" void ExtensionFunctio...
// 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_function.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" void ExtensionFunctio...
Check that the ExtensionFunction has a callback for attempting to send a response.
Check that the ExtensionFunction has a callback for attempting to send a response. Review URL: http://codereview.chromium.org/63130 git-svn-id: http://src.chromium.org/svn/trunk/src@13406 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 58d33dfa0e2313d8b5966d2926bc54370c5bf399
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...
088d5775433fd885905a945580b185b1c34f7c71
src/ast/function-var.cc
src/ast/function-var.cc
#include <ast/function-var.hh> #include <ast/any-list.hh> namespace ast { FunctionVar::FunctionVar(const yy::location& location, Var* var, ExprList* params) : Var(location) , var_(var) , params_(params) {} FunctionVar::~Func...
#include <ast/function-var.hh> #include <ast/any-list.hh> namespace ast { FunctionVar::FunctionVar(const yy::location& location, Var* var, ExprList* params) : Var(location) , var_(var) , params_(params) , def_(nullptr) {}...
Set FunctionVar def_ to nullptr
[AST] Set FunctionVar def_ to nullptr
C++
mit
Nakrez/RePy,Nakrez/RePy
1adcc1050ddeb9e1b83ae666fc3c49e1a587acbf
tasks/week1-t8/main.cpp
tasks/week1-t8/main.cpp
/* Author: vpetrigo Task: . . . , . : ( 1000). - . */ #include <iostream> using namespace std; int main() { int a, b, c; const int p_t = 2; cin >> a >> b >> c; int sum_p = a + b + c; cout << (sum_p + p_t - 1) / p_t << endl...
/* Author: vpetrigo Task: . . . , . : ( 1000). - . */ #include <iostream> using namespace std; int table_count(int st); int main() { int a, b, c; cin >> a >> b >> c; cout << table_count(a) + table_count(b) + table_count(c) << endl; ...
Change task 8 a little Previously it calculated quantity of tables for all studens without taking into account classes. Now it calulates tables needed for each class and then summarise results.
Change task 8 a little Previously it calculated quantity of tables for all studens without taking into account classes. Now it calulates tables needed for each class and then summarise results.
C++
mit
vpetrigo/yandex-course
fdb4802a742b4ad1201a8d55ca13e407d8df3c73
test/std/utilities/time/time.clock/time.clock.file/consistency.pass.cpp
test/std/utilities/time/time.clock/time.clock.file/consistency.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 copy paste error in file_clock tests
Fix copy paste error in file_clock tests git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@349886 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
b38949b7f67780b17c6729e49ffb959732b5f2d6
earth_enterprise/src/common/khThread__port.cpp
earth_enterprise/src/common/khThread__port.cpp
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Add new stub function for single threaded tests.
Add new stub function for single threaded tests.
C++
apache-2.0
tst-lsavoie/earthenterprise,tst-ccamp/earthenterprise,tst-mswartz/earthenterprise,tst-eclamar/earthenterprise,google/earthenterprise,tst-mswartz/earthenterprise,tst-eclamar/earthenterprise,tst-lsavoie/earthenterprise,google/earthenterprise,tst-lsavoie/earthenterprise,tst-eclamar/earthenterprise,tst-ccamp/earthenterpris...
e6ad45b69a8b97ec31dce4e331fcdd9cd73518aa
src/rdb_protocol/configured_limits.cc
src/rdb_protocol/configured_limits.cc
#include <limits> #include "rdb_protocol/configured_limits.hpp" #include "rdb_protocol/wire_func.hpp" #include "rdb_protocol/func.hpp" namespace ql { configured_limits_t from_optargs(rdb_context_t *ctx, signal_t *interruptor, const std::map<std::string, wire_func_t> &arguments) { auto p = arguments.fi...
#include "rdb_protocol/configured_limits.hpp" #include <limits> #include "rdb_protocol/wire_func.hpp" #include "rdb_protocol/func.hpp" namespace ql { configured_limits_t from_optargs(rdb_context_t *ctx, signal_t *interruptor, const std::map<std::string, wire_func_t> &arguments) { auto p = arguments.fi...
Reorder headers per style doc
Reorder headers per style doc
C++
agpl-3.0
wujf/rethinkdb,bpradipt/rethinkdb,mcanthony/rethinkdb,pap/rethinkdb,Qinusty/rethinkdb,marshall007/rethinkdb,marshall007/rethinkdb,mcanthony/rethinkdb,matthaywardwebdesign/rethinkdb,sebadiaz/rethinkdb,tempbottle/rethinkdb,sbusso/rethinkdb,wojons/rethinkdb,captainpete/rethinkdb,sbusso/rethinkdb,bchavez/rethinkdb,wkenning...
4548b860cbada2e036f1de00c3587857dc4e1357
src/HelloWorld/Main.cpp
src/HelloWorld/Main.cpp
#include <cstdio> #include "Werk/Math/SummaryStatistics.hpp" int main() { werk::SummaryStatistics<double> s; s.sample(5.0); s.sample(1.0); std::printf("Hello world! count=%llu average=%f stddev=%f", s.count(), s.average(), s.stddev()); return 0; }
#include <cinttypes> #include <cstdio> #include "Werk/Math/SummaryStatistics.hpp" int main() { werk::SummaryStatistics<double> s; s.sample(5.0); s.sample(1.0); std::printf("Hello world! count=%" PRIu64 " average=%f stddev=%f", s.count(), s.average(), s.stddev()); return 0; }
Use correct format specifier in HelloWorld
Use correct format specifier in HelloWorld
C++
mit
AgalmicVentures/Werk,AgalmicVentures/Werk
00da6a62600278a76460042890cfd49f5f079e86
commands/archive.cpp
commands/archive.cpp
#include "archive.hpp" void archive(const char* in_file, const char* out_file) { throw "Not implemented"; } void archive(const char* in_file, std::ostream& out_stream) { throw "Not implemented"; } void archive(std::istream& in_stream, std::ostream& out_stream) { throw "Not implemented"; }
#include "archive.hpp" #include "../huffman/compress.hpp" #include<fstream> #include<vector> void archive_files(const std::vector<std::string>& filenames, std::ostream& out_stream) { std::ostreambuf_iterator<char> out_iterator(out_stream); for(auto& fn : filenames) { for(char c : fn) *out_iterator = c; *out_it...
Implement archiving list of files
Implement archiving list of files
C++
mit
StanislavNikolov/huffman-archiver-cpp,cuklev/huffman-archiver-cpp
34faeda6ef805492980795d2d6e70a7b4972e96c
test/asan/TestCases/Windows/coverage-dll-stdio.cc
test/asan/TestCases/Windows/coverage-dll-stdio.cc
// Test that coverage and MSVC CRT stdio work from a DLL. This ensures that the // __local_stdio_printf_options function isn't instrumented for coverage. // RUN: rm -rf %t && mkdir %t && cd %t // RUN: %clang_cl_asan -fsanitize-coverage=func -O0 %p/dll_host.cc -Fet.exe // RUN: %clang_cl_asan -fsanitize-coverage=func -L...
// Test that coverage and MSVC CRT stdio work from a DLL. This ensures that the // __local_stdio_printf_options function isn't instrumented for coverage. // RUN: rm -rf %t && mkdir %t && cd %t // RUN: %clang_cl_asan -fsanitize-coverage=func -O0 %p/dll_host.cc -Fet.exe // RUN: %clang_cl_asan -fsanitize-coverage=func -L...
Remove pwd to fix WinASan bot
Remove pwd to fix WinASan bot It only slipped in while I was debugging the test case. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@286854 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
029240d17ed7c3e1a7187a288776ee1413428355
system_info/system_info_device_orientation_desktop.cc
system_info/system_info_device_orientation_desktop.cc
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "system_info/system_info_device_orientation.h" #include "system_info/system_info_utils.h" void SysInfoDeviceOrientation::Get(picojson::value& ...
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "system_info/system_info_device_orientation.h" #include "system_info/system_info_utils.h" void SysInfoDeviceOrientation::Get(picojson::value& ...
Fix linking error at device orientation
[SystemInfo] Fix linking error at device orientation Fix linking error while compiling on desktop.
C++
bsd-3-clause
hgl888/tizen-extensions-crosswalk,pk-sam/tizen-extensions-crosswalk,paritosh-in/tizen-extensions-crosswalk,hgl888/tizen-extensions-crosswalk,crosswalk-project/tizen-extensions-crosswalk,hgl888/tizen-extensions-crosswalk,paritosh-in/tizen-extensions-crosswalk,crosswalk-project/tizen-extensions-crosswalk,pk-sam/tizen-ext...