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
3c388e79eff5334382fc8ae2c147cb3f9ef8eaa6
src/connectors/wire/WireServer.cpp
src/connectors/wire/WireServer.cpp
#include <cucumber-cpp/internal/connectors/wire/WireServer.hpp> namespace cucumber { namespace internal { SocketServer::SocketServer(const ProtocolHandler *protocolHandler) : ios(), acceptor(ios), protocolHandler(protocolHandler) { } void SocketServer::listen(const port_type port) { tcp::endpoint end...
#include <cucumber-cpp/internal/connectors/wire/WireServer.hpp> namespace cucumber { namespace internal { SocketServer::SocketServer(const ProtocolHandler *protocolHandler) : protocolHandler(protocolHandler), ios(), acceptor(ios) { } void SocketServer::listen(const port_type port) { tcp::endpoint end...
Fix compiler warning about member initializer order
Fix compiler warning about member initializer order
C++
mit
cucumber/cucumber-cpp,cucumber/cucumber-cpp,paoloambrosio/cucumber-cpp,konserw/cucumber-cpp,meshell/cucumber-cpp,AbletonAppDev/cucumber-cpp,muggenhor/cucumber-cpp,AbletonAppDev/cucumber-cpp,konserw/cucumber-cpp,konserw/cucumber-cpp,cucumber/cucumber-cpp,paoloambrosio/cucumber-cpp,muggenhor/cucumber-cpp,paoloambrosio/cu...
36a2308927af4198e4d41daa66176b9f36fb90b4
lib/libport/perror.cc
lib/libport/perror.cc
/** ** \file libport/perror.cc ** \brief perror: implements file libport/perror.hh */ #include <cstdio> #include <iostream> #include "libport/cstring" namespace libport { void perror (const char* s) { #ifndef WIN32 ::perror(s); #else int errnum; const char* errstring; const char* colon; ...
/** ** \file libport/perror.cc ** \brief perror: implements file libport/perror.hh */ #include <cstdio> #include <iostream> #include "libport/windows.hh" #include "libport/cstring" namespace libport { void perror (const char* s) { #ifndef WIN32 ::perror(s); #else int errnum; const char* errstri...
Add missing header for windows.
Add missing header for windows. * lib/libport/perror.cc: Here.
C++
bsd-3-clause
aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport
e109f76ce8010021b0c4171565c2d3b1de6e5f57
tests/auto/api/testdata/infinite-loop-process/main.cpp
tests/auto/api/testdata/infinite-loop-process/main.cpp
#include <QThread> int main() { QThread::sleep(60); }
#include <QThread> class MyThread : public QThread { public: static void mySleep(unsigned long secs) { sleep(secs); } // sleep() is protected in Qt 4. }; int main() { MyThread::mySleep(60); }
Fix "inifiniteLoop" test for Qt 4.
Fix "inifiniteLoop" test for Qt 4. QThread::sleep() is protected there. Change-Id: If7b6dbabd594c0a0eaf4ea2b7c691c7e9c00c55a Reviewed-by: Christian Stenger <accbb51712d7b9c4fb108439d01e716148e5f9e6@digia.com>
C++
lgpl-2.1
qt-labs/qbs,villytiger/qbs,Distrotech/qbs,gatzka/qt-labs-qbs,villytiger/qbs,gatzka/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,gatzka/qt-labs-qbs,qtproject/qt-labs-qbs,gatzka/qt-labs-qbs,villytiger/qbs,qt-labs/qbs,qt-labs/qbs,gatzka/qt-labs-qbs,Distrotech/qbs,qtproject/qt-labs-qbs,Distrotech/qbs,qtproject/qt-labs-qbs...
1c16127054773f520f95a9d5c7c65500b4b6ded5
src/miniMAT/util/PrintResult.cpp
src/miniMAT/util/PrintResult.cpp
#include <miniMAT/util/PrintResult.hpp> #include <iostream> #include <iomanip> namespace miniMAT { namespace util { void PrintResult(std::string varname, Matrix m, bool suppressed) { if (!suppressed) { // Print a row at a time (default precision is 4) std::cout << varname << " ="...
#include <miniMAT/util/PrintResult.hpp> #include <iostream> #include <iomanip> #include <cmath> namespace miniMAT { namespace util { void PrintResult(std::string varname, Matrix m, bool suppressed) { if (!suppressed) { using namespace std; int maxdigits = log10(m.maxCoeff()) + 1...
Fix formatting for matrix output
Fix formatting for matrix output
C++
mit
fmenozzi/miniMAT,fmenozzi/miniMAT
bcdfc387aa9c085bac112ab64804da954c7ddb29
Connection.cpp
Connection.cpp
/** * @file Connection.cpp * @brief * @author Travis Lane * @version 0.0.1 * @date 2016-01-05 */ #include "Connection.h" Connection::Connection(Bluetooth &new_bt, int id) : bt(new_bt) { this->id = id; } int Connection::write(int percent) { int rc = 0; StaticJsonBuffer<200> buffer; JsonObject& object = ...
/** * @file Connection.cpp * @brief * @author Travis Lane * @version 0.0.1 * @date 2016-01-05 */ #include "Connection.h" Connection::Connection(Bluetooth &new_bt, int id) : bt(new_bt) { this->id = id; } int Connection::write(int percent) { int rc = 0; StaticJsonBuffer<200> buffer; JsonObject& object = ...
Change status codes for debugging
Change status codes for debugging Use different return codes to debug comms failures.
C++
mit
Coderlane/arduino-longboard,Coderlane/arduino-throttle
c123add77845bf20d06e433c002fa28aa4c8af1f
test/value_shell_move_assign.cpp
test/value_shell_move_assign.cpp
/* * This file is part of Peli - universal JSON interaction library * Copyright (C) 2014 Alexey Chernov <4ernov@gmail.com> * * Peli 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 * versi...
/* * This file is part of Peli - universal JSON interaction library * Copyright (C) 2014 Alexey Chernov <4ernov@gmail.com> * * Peli 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 * versi...
Fix static assertion of exception safety of move assignment
Fix static assertion of exception safety of move assignment
C++
apache-2.0
aclex/peli
3d149b2b76fc76f0eec2542d589c3d96abed78ad
browser/inspectable_web_contents.cc
browser/inspectable_web_contents.cc
#include "browser/inspectable_web_contents.h" #include "browser/inspectable_web_contents_impl.h" namespace brightray { InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) { return Create(content::WebContents::Create(create_params)); } InspectableWebConte...
#include "browser/inspectable_web_contents.h" #include "browser/inspectable_web_contents_impl.h" #include "content/public/browser/web_contents_view.h" namespace brightray { InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) { auto contents = content::We...
Fix flashing in WebContents we create
Fix flashing in WebContents we create If the embedding app creates them it's up to them to fix this.
C++
mit
atom/brightray,tejaspathak/brightray,deepak1556/brightray,deepak1556/brightray,hokein/brightray,brave/brightray,bbondy/brightray,lakshmi-srinivas/brightray,lakshmi-srinivas/brightray,paulcbetts/brightray,paulcbetts/brightray,bbondy/brightray,lakshmi-srinivas/brightray,brave/brightray,atom/brightray,tejaspathak/brightra...
6110cc360deed433f0e420ba5766f25fb3f47ae3
src/tests/test_hdf5.cc
src/tests/test_hdf5.cc
/* * Copyright 2009-2018 The VOTCA Development Team (http://www.votca.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2009-2018 The VOTCA Development Team (http://www.votca.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Add orbfile write code to checkpoint file writing
Add orbfile write code to checkpoint file writing
C++
apache-2.0
votca/xtp,votca/xtp
60ff4582ae76aa131aeb20a3e16c89fa3a40a41c
bench/PMFloatBench.cpp
bench/PMFloatBench.cpp
#include "Benchmark.h" #include "SkPMFloat.h" #include "SkRandom.h" struct PMFloatBench : public Benchmark { explicit PMFloatBench(bool clamp) : fClamp(clamp) {} const char* onGetName() SK_OVERRIDE { return fClamp ? "SkPMFloat_clamp" : "SkPMFloat_get"; } bool isSuitableFor(Backend backend) SK_OVERRIDE { r...
#include "Benchmark.h" #include "SkPMFloat.h" // Used to prevent the compiler from optimizing away the whole loop. volatile uint32_t blackhole = 0; // Not a great random number generator, but it's very fast. // The code we're measuring is quite fast, so low overhead is essential. static uint32_t lcg_rand(uint32_t* se...
Trim the fat off SkPMFloat bench.
Trim the fat off SkPMFloat bench. This bench was ~75% overhead, ~25% good bench. It is now just about the opposite: about 30% of the runtime is loop and random number overhead, and about 70% of the time is spent doing SkPMColor <-> SkPMFloat work. BUG=skia: NOPRESUBMIT=true Review URL: https://codereview.chromium....
C++
bsd-3-clause
TeamTwisted/external_skia,tmpvar/skia.cc,tmpvar/skia.cc,rubenvb/skia,MonkeyZZZZ/platform_external_skia,VRToxin-AOSP/android_external_skia,TeamExodus/external_skia,google/skia,timduru/platform-external-skia,noselhq/skia,shahrzadmn/skia,MonkeyZZZZ/platform_external_skia,Jichao/skia,PAC-ROM/android_external_skia,ominux/sk...
a570260357155454465815c292a14a1c43d9213a
test/SemaCXX/virtual-base-used.cpp
test/SemaCXX/virtual-base-used.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s // PR7800 class NoDestroy { ~NoDestroy(); }; // expected-note {{declared private here}} struct A { virtual ~A(); }; struct B : public virtual A { NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}} }; struct D : public virtual B { virtua...
// RUN: %clang_cc1 -fsyntax-only -verify %s // PR7800 class NoDestroy { ~NoDestroy(); }; // expected-note 3 {{declared private here}} struct A { virtual ~A(); }; struct B : public virtual A { NoDestroy x; // expected-error {{field of type 'NoDestroy' has private destructor}} }; struct D : public virtual B { vir...
Make this test check a few more cases which didn't work correctly before r110526.
Make this test check a few more cases which didn't work correctly before r110526. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@110540 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
3b4d6d5ef58bd6c66306152c5f62d9e09ebe1216
ReactCommon/fabric/components/root/RootShadowNode.cpp
ReactCommon/fabric/components/root/RootShadowNode.cpp
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "RootShadowNode.h" #include <react/components/view/conversions.h> namespace facebook { namespace react { const char Ro...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "RootShadowNode.h" #include <react/components/view/conversions.h> #include <react/debug/SystraceSection.h> namespace fa...
Add systrace to calculation of Yoga layout() in Fabric
Add systrace to calculation of Yoga layout() in Fabric Summary: Simple diff that adds a systrace to start measuring the calculation of Yoga layout() in Fabric Reviewed By: shergin Differential Revision: D13124641 fbshipit-source-id: 6bd03e9f56524221f5d91606ffde50253673c1bb
C++
mit
javache/react-native,pandiaraj44/react-native,myntra/react-native,janicduplessis/react-native,hammerandchisel/react-native,javache/react-native,myntra/react-native,hoangpham95/react-native,pandiaraj44/react-native,javache/react-native,hammerandchisel/react-native,myntra/react-native,pandiaraj44/react-native,janicduples...
77a7421eba112e028366dd8a87aed9472fd82c76
src/CLR/CorLib/corlib_native_System_Diagnostics_Debugger.cpp
src/CLR/CorLib/corlib_native_System_Diagnostics_Debugger.cpp
// // Copyright (c) 2017 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include "CorLib.h" HRESULT Library_corlib_native_System_Diagnostics_Debugger::get_IsAttached___STATIC__BOOLEA...
// // Copyright (c) 2017 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include "CorLib.h" HRESULT Library_corlib_native_System_Diagnostics_Debugger::get_IsAttached___STATIC__BOOLEA...
Fix potential issue with Diagnostics_Debugger::Break
Fix potential issue with Diagnostics_Debugger::Break - Add code to remove warning about unused parameters
C++
mit
nanoframework/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter
a853ebd1c1846f275e9f385fa7161e0ec86d5b8f
src/polar/core/log.cpp
src/polar/core/log.cpp
#include <polar/core/log.h> #include <polar/fs/local.h> #include <polar/util/sdl.h> namespace polar::core { std::shared_ptr<logger> logger::instance; void logger::msgbox(std::string title, std::string msg) { #if defined(_WIN32) SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title.data(), msg.data(), NULL); #endif...
#include <polar/core/log.h> #include <polar/fs/local.h> #include <polar/util/sdl.h> namespace polar::core { std::shared_ptr<logger> logger::instance; void logger::msgbox(std::string title, std::string msg) { #if defined(_WIN32) SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title.data(), msg.data(), NULL); #endif...
Throw exception on fatal error
Throw exception on fatal error
C++
mpl-2.0
shockkolate/polar4,shockkolate/polar4,shockkolate/polar4,polar-engine/polar,shockkolate/polar4,polar-engine/polar
7c191c392bd6274b265036c9d8342fc4eac55fdd
runtime/bin/directory_win.cc
runtime/bin/directory_win.cc
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "bin/directory.h" bool Directory::Open(const char* path, intptr_t* dir) { UNIMPLEMENTED(); ...
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "bin/directory.h" bool Directory::Open(const char* path, intptr_t* dir) { UNIMPLEMENTED(); ...
Fix Windows build after directory library changes.
Fix Windows build after directory library changes. R=sgjesse@google.com BUG= TEST= Review URL: https://chromereviews.googleplex.com/3527012 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@44 260f80e4-7a28-3924-810f-c04153c831b5
C++
bsd-3-clause
dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/da...
b198448174f1a589f504d4931d9bfa492403d6ca
test/problem_test.cpp
test/problem_test.cpp
#include "gtest/gtest.h" #include "tcframe_test_commons.cpp" #include "tcframe/problem.hpp" using tcframe::BaseProblem; class MyProblem : public BaseProblem { protected: void Config() { setSlug("foo"); setTimeLimit(2); setMemoryLimit(256); } void InputFormat() { } void Outpu...
#include "gtest/gtest.h" #include "tcframe_test_commons.cpp" #include "tcframe/problem.hpp" using tcframe::BaseProblem; class MyProblem : public BaseProblem { protected: void Config() { setSlug("foo"); setTimeLimit(2); setMemoryLimit(256); } void InputFormat() { } void Outpu...
Add Problem's command-line options tests
Add Problem's command-line options tests
C++
mit
ia-toki/tcframe,tcframe/tcframe,fushar/tcframe,ia-toki/tcframe,fushar/tcframe,tcframe/tcframe
d8a4bef52815f5b40e0cb041880d807e1e852492
src/fractalogy.cpp
src/fractalogy.cpp
#include <iostream> int main() { std::cout << "Fractalogy!\n"; return 0; }
#include <iostream> #include <complex> using std::cout; using std::complex; using std::exp; using std::norm; /// returns -1 on failing to escape int iteration(complex<double> c, int limit = 1000) { int i = 0; double n; complex<double> z(0, 0); while ((n = norm(z)) < 4 && i < limit) { z = exp(z) - c; +...
Add the iteration function for the fractals
Add the iteration function for the fractals
C++
mit
zdravkoandonov/fractalogy,zdravkoandonov/fractalogy,zdravkoandonov/fractalogy
3bc9510996b546242ff3a0bc5875ee1e07b1102a
IO/src/ImageWriter.cpp
IO/src/ImageWriter.cpp
#include "ImageWriter.h" uint32 ImageWriter::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) { uint32 bytesPerRow = GetWidth() * 4; uint32 byteLocation = y * bytesPerRow + x*4 + ch; return m_PixelData[byteLocation]; }
#include "ImageWriter.h" uint32 ImageWriter::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) { // Assume pixels are in block stream order, hence we would need to first find // the block that contains pixel (x, y) and then find the byte location for it. const uint32 blocksPerRow = GetWidth() / 4; const uint...
Make sure that we assume pixels are in block stream order when accessing.
Make sure that we assume pixels are in block stream order when accessing.
C++
apache-2.0
GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC
bf876acc3564a1ce63ece9e7d2957d24e24b8948
Sources/Rosetta/Tasks/PlayerTasks/EndTurnTask.cpp
Sources/Rosetta/Tasks/PlayerTasks/EndTurnTask.cpp
// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // RosettaStone is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #include <Rosetta/Games/Game.hpp> #include <Rosetta/Models/Pla...
// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // RosettaStone is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #include <Rosetta/Games/Game.hpp> #include <Rosetta/Games/Game...
Use 'nextStep' instead of 'step' and call ProcessNextStep()
refactor: Use 'nextStep' instead of 'step' and call ProcessNextStep()
C++
mit
Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp
395f98d07d811949ef46d01c4278f4c41815b987
src/AssimpWorker/import/AssimpImporter.cpp
src/AssimpWorker/import/AssimpImporter.cpp
/* * This file is part of ATLAS. It is subject to the license terms in * the LICENSE file found in the top-level directory of this distribution. * (Also avialable at http://www.apache.org/licenses/LICENSE-2.0.txt) * You may not use this file except in compliance with the License. */ #include <iostream> #include <assimp...
/* * This file is part of ATLAS. It is subject to the license terms in * the LICENSE file found in the top-level directory of this distribution. * (Also avialable at http://www.apache.org/licenses/LICENSE-2.0.txt) * You may not use this file except in compliance with the License. */ #include <iostream> #include <assimp...
Remove no longer necessary assimp import flag
Remove no longer necessary assimp import flag
C++
apache-2.0
dfki-asr/atlas-worker,dfki-asr/atlas-worker
0e0b9f79f7835bb911306033b13c9913d4624d99
src/GameTools/CardDeck/CardDeck.cpp
src/GameTools/CardDeck/CardDeck.cpp
/* * CardDeck.cpp * * Created on: 2014年10月25日 * Author: nemo */ #include "CardDeck.h" #include <iostream> CardDeck::CardDeck() { LOG_TRACE("Construct CardDeck.") } CardDeck::~CardDeck() { // TODO Auto-generated destructor stub } /// Insert card into card deck. /** * @brief Insert card into card deck...
/* * CardDeck.cpp * * Created on: 2014年10月25日 * Author: nemo */ #include "CardDeck.h" #include <iostream> CardDeck::CardDeck() { LOG_TRACE("Construct CardDeck.") } CardDeck::~CardDeck() { // TODO Auto-generated destructor stub } /// Insert card into card deck. /** * @brief Insert card into card deck...
Set auto card in show(0) as const.
Set auto card in show(0) as const.
C++
apache-2.0
NemoChenTW/PodriosCPP,NemoChenTW/PodriosCPP,NemoChenTW/PodriosCPP,NemoChenTW/PodriosCPP
798bac22d573f6ad6e9589b0ad4cbefc10430ca6
src/ee/plannodes/tablecountnode.cpp
src/ee/plannodes/tablecountnode.cpp
/* This file is part of VoltDB. * Copyright (C) 2008-2012 VoltDB Inc. * * VoltDB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
/* This file is part of VoltDB. * Copyright (C) 2008-2012 VoltDB Inc. * * VoltDB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
Resolve the valgrind memory leak problem
Resolve the valgrind memory leak problem
C++
agpl-3.0
migue/voltdb,simonzhangsm/voltdb,creative-quant/voltdb,creative-quant/voltdb,ingted/voltdb,kumarrus/voltdb,kobronson/cs-voltdb,deerwalk/voltdb,simonzhangsm/voltdb,creative-quant/voltdb,ingted/voltdb,wolffcm/voltdb,deerwalk/voltdb,VoltDB/voltdb,paulmartel/voltdb,deerwalk/voltdb,migue/voltdb,flybird119/voltdb,simonzhangs...
07acd0d0c1dc5f57dbf250f8e915122395f614f6
courgette/crc.cc
courgette/crc.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 "courgette/crc.h" #ifdef OS_CHROMEOS # include "zlib.h" #else extern "C" { # include "third_party/lzma_sdk/7zCrc.h" } #endif #include "ba...
// 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. // Calculate Crc by calling CRC method in LZMA SDK #include "courgette/crc.h" extern "C" { #include "third_party/lzma_sdk/7zCrc.h" } namespace cour...
Revert 112083 - Try a different library for Crc32.
Revert 112083 - Try a different library for Crc32. BUG= TEST= Review URL: http://codereview.chromium.org/8569018 TBR=dgarrett@chromium.org Review URL: http://codereview.chromium.org/8742002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@112104 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ropik/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,yitian13...
8f3068b4cffc842687e785d8b6bae620cbee0a49
src/signals.cc
src/signals.cc
/* 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 <ncurses.h> #include <csignal> #include <cstdlib> #include "signals.hh" extern "C" { static void myexit...
/* 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 <ncurses.h> #include <signal.h> #include <stdlib.h> #include "signals.hh" extern "C" { static void myex...
Use `*.h` headers rather than `c*`
Use `*.h` headers rather than `c*`
C++
mpl-2.0
czipperz/vick,czipperz/vick
ea6a42ec91fa37ccc6324b42cbaa335a274f2637
cli/print_exception.cpp
cli/print_exception.cpp
#include "commands.h" #include "sim/except.h" #include <iostream> using namespace std; void PrintException(Simulator::MGSystem *sys, ostream& out, const exception& e) { out << endl << e.what() << endl; auto se = dynamic_cast<const Simulator::SimulationException*>(&e); if (se != NULL) { // Sim...
#include "commands.h" #include "sim/except.h" #include <iostream> using namespace std; void PrintException(Simulator::MGSystem *sys, ostream& out, const exception& e) { out << endl << e.what() << endl; auto se = dynamic_cast<const Simulator::SimulationException*>(&e); if (se != NULL) { // Sim...
Enable using PrintException even when no MGSystem is present.
Enable using PrintException even when no MGSystem is present.
C++
mit
Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim
fdf4edbad8419e3b6d3837e52732874b0cab4399
sw/basestation/input/mpr121.cpp
sw/basestation/input/mpr121.cpp
/*############################################################################################ Garden System Wireless controller for watering electropumps Author: Daniele Colanardi License: BSD, see LICENSE file ############################################################################################*/ #includ...
/*############################################################################################ Garden System Wireless controller for watering electropumps Author: Daniele Colanardi License: BSD, see LICENSE file ############################################################################################*/ #includ...
Add basic retriggering to input
Add basic retriggering to input
C++
bsd-3-clause
dancol90/garden-system,dancol90/garden-system
75873afbd5cade5cc802c226d1a18850b6065bf3
tests/Game/Python/test_Factory.cpp
tests/Game/Python/test_Factory.cpp
// // Created by Sam on 11/18/2017. // #include "../../../build/catch-src/include/catch.hpp" #include "../../../include/Game/Python/Factory.h" TEST_CASE("Create factory") { auto* factory = new Factory(); delete factory; // // SECTION("Verify creation") // { // REQUIRE_FALSE(factory == nullptr); /...
// // Created by Sam on 11/18/2017. // #include "../../../build/catch-src/include/catch.hpp" #include "../../../include/Game/Python/Factory.h" TEST_CASE("Create factory") { std::shared_ptr<Factory> factory = std::make_shared<Factory>(); SECTION("Verify creation") { REQUIRE_FALSE(factory == nullpt...
Use a shared ptr and uncomment unit tests
Use a shared ptr and uncomment unit tests
C++
apache-2.0
maspe36/WhispererEngine,maspe36/WhispererEngine
7e70eb4492af88087a65991187c76d68aeb4a822
tests/main_zonotope_halfspaces.cpp
tests/main_zonotope_halfspaces.cpp
#include "zonotope_halfspaces.hpp" #include <gmpxx.h> #include <iostream> int main() { using namespace std; typedef mpz_class NT; int n_tests; cin >> n_tests; for ( int t = 0; t < n_tests; ++t ) { int n, d; cin >> n >> d; vector<vector<NT> > generators ( n, vector<NT> ( d ) ); for ( int ...
#include "zonotope_halfspaces.hpp" #include <gmpxx.h> #include <iostream> int main() { using namespace std; int n_tests; cin >> n_tests; for ( int t = 0; t < n_tests; ++t ) { int n, d; cin >> n >> d; vector<vector<mpz_class> > generators_mpz ( n, vector<mpz_class> ( d ) ); vector<ve...
Update the halfspaces test to also test `long` input/output
Update the halfspaces test to also test `long` input/output
C++
mit
vindvaki/libzonotope,vindvaki/libzonotope,vindvaki/libzonotope,vindvaki/libzonotope
cf5006012c6602d48c2748461c3e4b65ce9aac75
examples/hello/main.cc
examples/hello/main.cc
#include <iostream> #include <talk/base/cryptstring.h> #include <talk/base/logging.h> #include <talk/xmpp/xmppclientsettings.h> #include "xmppthread.h" int main(int argc, char* argv[]) { talk_base::LogMessage::LogToDebug(talk_base::LS_SENSITIVE); talk_base::InsecureCryptStringImpl ipass; ipass.password() = "te...
#include <iostream> #include <talk/base/cryptstring.h> #include <talk/base/logging.h> #include <talk/xmpp/xmppclientsettings.h> #include "xmppthread.h" int main(int argc, char* argv[]) { talk_base::LogMessage::LogToDebug(talk_base::LS_SENSITIVE); talk_base::InsecureCryptStringImpl ipass; ipass.password() = "te...
Add resource to client settings in hello example
Add resource to client settings in hello example
C++
bsd-3-clause
teknobingo/txmpp,alexly/txmpp,alexly/txmpp,rpavlik/txmpp,teknobingo/txmpp,rpavlik/txmpp,alexly/txmpp,teknobingo/txmpp
b1616402a76ed5483f228576c3177030dbd6d56b
src/kmain.cpp
src/kmain.cpp
extern "C" void kmain(void* /*mbd*/, u32 magic) { if ( magic != 0x2BADB002 ) { /* Something went not according to specs. Print an error */ /* message and halt, but do *not* rely on the multiboot */ /* data structure. */ } /* You could either use multiboot.h */ /* (http://www.gnu.org/so...
const int console_width = 80; const int console_height = 25; const u8 color = 0x07; /* light grey (7) on black (0). */ u16 volatile* videoram = (u16 volatile*) 0xb8000; void clear_screen() { for(int i = 0; i < console_height * console_width; i++) videoram[i] = (color << 8) | ' '; } void put_char_at(char c, ...
Add barebones VGA text-mode display driver.
Add barebones VGA text-mode display driver.
C++
isc
tsion/spideros,tsion/spideros,tsion/spideros
dd59fcc37e7de3ce3beefd617756a333ff98237a
chrome/browser/extensions/extension_javascript_url_apitest.cc
chrome/browser/extensions/extension_javascript_url_apitest.cc
// 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 "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, JavaScript...
// 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 "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // Disabled, http://crbug.com/63589. IN_PROC_BROWSE...
Disable ExtensionApiTest.JavaScriptURLPermissions, it flakily hits an assertion.
Disable ExtensionApiTest.JavaScriptURLPermissions, it flakily hits an assertion. TBR=aa BUG=63589 TEST=browser_tests Review URL: http://codereview.chromium.org/5221001 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@66600 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
adobe/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chrom...
87acdc2e0c3a50f4a971b0da081f9b9bc9090d5d
models/hmmwv_9body/ChWheel.cpp
models/hmmwv_9body/ChWheel.cpp
// ============================================================================= // Authors: Radu Serban, Justin Madsen // ============================================================================= // // Base class for a vehicle wheel. // A wheel subsystem does not own a body. Instead, when attached to a suspension ...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Add missing comment block at top of file.
Add missing comment block at top of file.
C++
bsd-3-clause
hsu/chrono-vehicle,hsu/chrono-vehicle,hsu/chrono-vehicle
70c2a7038a7804c18d3359ba954be8fe7f69e613
chrome/browser/extensions/extension_javascript_url_apitest.cc
chrome/browser/extensions/extension_javascript_url_apitest.cc
// 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 "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, JavaScript...
// 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 "chrome/browser/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" // Disabled, http://crbug.com/63589. IN_PROC_BROWSE...
Disable ExtensionApiTest.JavaScriptURLPermissions, it flakily hits an assertion.
Disable ExtensionApiTest.JavaScriptURLPermissions, it flakily hits an assertion. TBR=aa BUG=63589 TEST=browser_tests Review URL: http://codereview.chromium.org/5221001 git-svn-id: http://src.chromium.org/svn/trunk/src@66600 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: b1247fcb709cc0eb0a0e7c56c61dea8874524...
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...
df663c4fd53fb1784c7618e46c2f81c95120c0fd
Table.cpp
Table.cpp
#include "Table.h" // int insertInstruction(int state, int symbol, int newState, int newSymbol, // char instruction); // void removeInstruction(int id); // machineAction_t getAction(int state, int symbol); // TODO: implement Table methods int Table::insertInstruction(int state, ...
#include "Table.h" // int insertInstruction(int state, int symbol, int newState, int newSymbol, // char instruction); // void removeInstruction(int id); // machineAction_t getAction(int state, int symbol); // TODO: implement Table methods int Table::insertInstruction(int state, ...
Make insert instruction return something
Make insert instruction return something Like it is supposed to...
C++
mit
bpsuntrup/TuringBox,bpsuntrup/TuringBox,bpsuntrup/TuringBox
ac84bb8e83f8d05839c0e618778cce6940daeb44
pgmStrToRAM.cpp
pgmStrToRAM.cpp
#include <avr/pgmspace.h> #include <stdlib.h> char *to_print; char *pgmStrToRAM(PROGMEM char *theString) { free(to_print); to_print=(char *) malloc(strlen_P(theString) + 1); strcpy_P(to_print, theString); return (to_print); }
#include <avr/pgmspace.h> #include <stdlib.h> #include <string.h> char *to_print; char *pgmStrToRAM(PROGMEM char *theString) { free(to_print); to_print=(char *) malloc(strlen_P(theString) + 1); strcpy_P(to_print, theString); return (to_print); }
Add include to support SAMD core
Add include to support SAMD core
C++
mit
mpflaga/Arduino-MemoryFree,mpflaga/Arduino-MemoryFree
2bd00c0af40ebaf35a911e0cc73b5d4d71ba2121
chrome/browser/icon_loader.cc
chrome/browser/icon_loader.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/icon_loader.h" #include "base/message_loop.h" #include "base/mime_util.h" #include "base/thread.h" #include "chrome/browser/...
// 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/icon_loader.h" #include "base/message_loop.h" #include "base/mime_util.h" #include "base/thread.h" #include "chrome/browser/...
Initialize target_message_loop_ in the constructor.
Coverity: Initialize target_message_loop_ in the constructor. CID=3970 BUG=none TEST=none Review URL: http://codereview.chromium.org/233001 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@26985 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
64d294dbef7c2f90f05a393f6b9b7997e0aaa9b9
src/ports/SkDebug_android.cpp
src/ports/SkDebug_android.cpp
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" static const size_t kBufferSize = 256; #define LOG_TAG "skia" #include <android/log.h> void SkDebugf(const char format[], ...) { ...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" static const size_t kBufferSize = 256; #define LOG_TAG "skia" #include <android/log.h> static bool gSkDebugToStdOut = false; ext...
Enable Android executables (like skia_launcher) to redirect SkDebugf output to stdout as well as the system logs.
Enable Android executables (like skia_launcher) to redirect SkDebugf output to stdout as well as the system logs. Review URL: https://codereview.appspot.com/6733065 git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@6059 2bbb7eff-a529-9590-31e7-b0007b416f81
C++
bsd-3-clause
timduru/platform-external-skia,aosp-mirror/platform_external_skia,OneRom/external_skia,mozilla-b2g/external_skia,Euphoria-OS-Legacy/android_external_skia,HalCanary/skia-hc,scroggo/skia,F-AOSP/platform_external_skia,mmatyas/skia,PAC-ROM/android_external_skia,MinimalOS/external_skia,Infinitive-OS/platform_external_skia,G...
47f5c61481bb82be60e7b948659e14659e6961ff
source/main.cpp
source/main.cpp
#include <3ds.h> #include <stdio.h> void shutdown3DS() { Handle ptmSysmHandle = 0; Result result = srvGetServiceHandle(&ptmSysmHandle, "ns:s"); if (result != 0) return; // http://3dbrew.org/wiki/NSS:ShutdownAsync u32 *commandBuffer = getThreadCommandBuffer(); commandBuffer[0] = 0x000E0000; s...
#include <3ds.h> #include <stdio.h> void shutdown3DS() { Handle nssHandle = 0; Result result = srvGetServiceHandle(&nssHandle, "ns:s"); if (result != 0) return; // http://3dbrew.org/wiki/NSS:ShutdownAsync u32 *commandBuffer = getThreadCommandBuffer(); commandBuffer[0] = 0x000E0000; svcSendSy...
Rename a variable due to using a different service.
Rename a variable due to using a different service.
C++
mit
Asellus/3DS_Quick_Shutdown
f606b692ade139192bb09752b4a37a0f2475d39b
src/gridmap.cpp
src/gridmap.cpp
// Copyright 2015 FMAW #include <iostream> #include <fstream> #include "./grid.h" #include "./gridmap.h" #include <fat.h> #include <nds.h> namespace GridMap{ void loadDefaultGridMap( Grid &g ) { loadGridMap("defaultMap", g); } void loadGridMap( const char* mapName, Grid &g ){ FILE* test = fopen ("./defaultMap", "r...
// Copyright 2015 FMAW #include <fat.h> #include <nds.h> #include <iostream> #include <fstream> #include "./grid.h" #include "./gridmap.h" namespace GridMap { void loadDefaultGridMap(Grid &g) { loadGridMap("defaultMap", g); } void loadGridMap(const char *mapName, Grid &g) { FILE *test = fopen("./defaultMap"...
Fix to prevent crashing if file couldn't be opened.
Fix to prevent crashing if file couldn't be opened.
C++
mit
Sumolari/TacticsDS,Sumolari/TacticsDS,Sumolari/TacticsDS,Sumolari/TacticsDS
0150e62dd9312f23937b339b73df0e15f8a91cc4
source/glow/source/memory.cpp
source/glow/source/memory.cpp
#include <glow/memory.h> #include <glow/global.h> #include <glow/Extension.h> namespace { GLint getMemoryInformation(GLenum pname) { if (!glow::hasExtension("NVX_gpu_memory_info")) return -1; return glow::getInteger(pname); } } namespace glow { namespace memory { GLint total() { return getMe...
#include <glow/memory.h> #include <glow/global.h> #include <glow/Extension.h> namespace { GLint getMemoryInformation(GLenum pname) { if (!glow::hasExtension("NVX_gpu_memory_info")) return -1; return glow::getInteger(pname); } } namespace glow { namespace memory { GLint total() { return getMe...
Add missing GL_ prefixes to previously removed constants
Add missing GL_ prefixes to previously removed constants
C++
mit
cginternals/globjects,j-o/globjects,hpi-r2d2/globjects,j-o/globjects,hpi-r2d2/globjects,j-o/globjects,cginternals/globjects,j-o/globjects
af0bbe5e071f1b899ffbad72997becc2fbc07330
simulator/mips/mips_memory.cpp
simulator/mips/mips_memory.cpp
/* * This is an open source non-commercial project. Dear PVS-Studio, please check it. * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com */ #include "mips_memory.h" #include "mips_instr.h" #include <infra/instrcache/instr_cache.h> #include <iostream> FuncInstr MIPSMemory::fetch_instr( Addr PC...
/* * This is an open source non-commercial project. Dear PVS-Studio, please check it. * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com */ #include "mips_memory.h" #include "mips_instr.h" #include <infra/instrcache/instr_cache.h> FuncInstr MIPSMemory::fetch_instr( Addr PC) { auto it = in...
Update InstrCache in case of cache miss
Update InstrCache in case of cache miss
C++
mit
MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips
9b2b60cab87f678d06ad8ff96d1f9b4cf5c7f52a
test/nothing_to_do.pass.cpp
test/nothing_to_do.pass.cpp
// -*- C++ -*- //===----------------------------------------------------------------------===// // // 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. // //===-------------------------...
// -*- C++ -*- //===----------------------------------------------------------------------===// // // 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. // //===-------------------------...
Test commit: Reverting whitespace changes
Test commit: Reverting whitespace changes git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@213223 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
684b0d72b9e5955366523daf8223484bab3f6e5f
InventoryModule/InventoryAsset.cpp
InventoryModule/InventoryAsset.cpp
// For conditions of distribution and use, see copyright notice in license.txt /** * @file InventoryAsset.cpp * @brief A class representing asset in inventory. */ #include " #include "StableHeaders.h" #include "InventoryAsset.h" #include "InventoryFolder.h" namespace Inventory { InventoryAsset::...
// For conditions of distribution and use, see copyright notice in license.txt /** * @file InventoryAsset.cpp * @brief A class representing asset in inventory. */ #include "StableHeaders.h" #include "InventoryAsset.h" #include "InventoryFolder.h" namespace Inventory { InventoryAsset::InventoryAss...
Remove accidentally added "include ""
Remove accidentally added "include "" git-svn-id: 65dd0ccd495961f396d5302e5521154b071f0302@2447 5b2332b8-efa3-11de-8684-7d64432d61a3
C++
apache-2.0
realXtend/tundra,jesterKing/naali,AlphaStaxLLC/tundra,realXtend/tundra,realXtend/tundra,pharos3d/tundra,antont/tundra,pharos3d/tundra,antont/tundra,BogusCurry/tundra,jesterKing/naali,AlphaStaxLLC/tundra,BogusCurry/tundra,BogusCurry/tundra,BogusCurry/tundra,jesterKing/naali,BogusCurry/tundra,jesterKing/naali,AlphaStaxLL...
497d5ef77499184da22b33a5e2863f330fb43c1c
src/kinect_tomato_searcher/src/kinect_tomato_broadcaster_node.cpp
src/kinect_tomato_searcher/src/kinect_tomato_broadcaster_node.cpp
#include <ros/ros.h> #include <tf2_ros/transform_broadcaster.h> #include <geometry_msgs/PointStamped.h> #include <geometry_msgs/TransformStamped.h> class TomatoBroadcaster { tf2_ros::TransformBroadcaster broadcaster_; geometry_msgs::TransformStamped transform_; ros::Subscriber sub_; public: TomatoBroadcaster...
#include <ros/ros.h> #include <tf2_ros/transform_broadcaster.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/TransformStamped.h> class TomatoBroadcaster { tf2_ros::TransformBroadcaster broadcaster_; geometry_msgs::TransformStamped transform_; ros::Subscriber sub_; public: TomatoBroadcaster(...
Update message type for PoseStamped
Update message type for PoseStamped
C++
mit
agrirobo/arcsys2,agrirobo/arcsys2
f0380ad6373fbf399e5ebfd24616099d239a21e2
firmware/application.cpp
firmware/application.cpp
#include "application.h" #include "Adafruit_LEDBackpack.h" Adafruit_8x8matrix matrix1; Adafruit_8x8matrix matrix2; Adafruit_8x8matrix matrix3; static const uint8_t smile[] = { 0b00111100, 0b01000010, 0b10100101, 0b10000001, 0b10100101, 0b10011001, 0b01000010, 0b00111100 }; void setup() { Wire.begin...
#include "application.h" #include "Adafruit_LEDBackpack.h" Adafruit_8x8matrix matrix1; Adafruit_8x8matrix matrix2; Adafruit_8x8matrix matrix3; static const uint8_t smile[] = { 0b00111100, 0b01000010, 0b10100101, 0b10000001, 0b10100101, 0b10011001, 0b01000010, 0b00111100 }; int currentTemperature = 0;...
Add Spark function and variables
Add Spark function and variables
C++
mit
bolshoibooze/thermostat,spark/thermostat,spark/thermostat,davegutz/thermostat,spark/thermostat,bolshoibooze/thermostat,bolshoibooze/thermostat,bolshoibooze/thermostat,davegutz/thermostat,davegutz/thermostat,bolshoibooze/thermostat,bolshoibooze/thermostat,spark/thermostat,spark/thermostat,davegutz/thermostat,davegutz/th...
0b692edd0eabf1d4eaa7e6acd2b8df0b236cd5b0
LibBase/src/base/ErrorInfo.cpp
LibBase/src/base/ErrorInfo.cpp
#include "../../include/base/ErrorInfo.hpp" namespace cutehmi { namespace base { QString ErrorInfo::toString() const { QString result = str; result += "\n[error class: "; result += errClass; result += " code: "; result += code; result += "]"; return result; } } } //(c)MP: Copyright © 2017, Michal Policht. Al...
#include "../../include/base/ErrorInfo.hpp" namespace cutehmi { namespace base { QString ErrorInfo::toString() const { QString result = str; result += "\n[error class: "; result += errClass; result += " code: "; result += QString::number(code); result += "]"; return result; } } } //(c)MP: Copyright © 2017, M...
Fix code to string conversion.
Fix code to string conversion.
C++
mit
michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI
7239dd61b90b52644cc71bf26e74770e129c6639
stdlib/public/runtime/Heap.cpp
stdlib/public/runtime/Heap.cpp
//===--- Heap.cpp - Swift Language Heap Logic -----------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//===--- Heap.cpp - Swift Language Heap Logic -----------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
Fix swift_slowAlloc to respect its alignMask parameter.
[Runtime] Fix swift_slowAlloc to respect its alignMask parameter. Instead of calling malloc, call AlignedAlloc. That calls posix_memalign on platforms where it's available. The man page cautions to use it judiciously, but Apple OSes and Linux implement it to call through to malloc when the alignment is suitable. Presu...
C++
apache-2.0
zisko/swift,tjw/swift,sschiau/swift,karwa/swift,allevato/swift,airspeedswift/swift,stephentyrone/swift,huonw/swift,zisko/swift,airspeedswift/swift,devincoughlin/swift,nathawes/swift,gribozavr/swift,jmgc/swift,jmgc/swift,brentdax/swift,aschwaighofer/swift,aschwaighofer/swift,alblue/swift,hooman/swift,devincoughlin/swift...
c7584c2a3f83a976bb7b53ae34d4045f143d68b3
numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/get_param.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
Fix bug in test; found by AddressSanitizer
Fix bug in test; found by AddressSanitizer git-svn-id: 273b07cebdae5845b4a75aae04570b978db9eb50@177355 91177308-0d34-0410-b5e6-96231b3b80d8
C++
bsd-3-clause
lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx
c4ba5528250d1522c0ebe4ed9d8face3ffce71af
c_src/global_factory.cc
c_src/global_factory.cc
#include "erlang_v8_drv.h" Persistent<ObjectTemplate> GlobalFactory::Generate(Vm *vm, ErlNifEnv *env) { TRACE("GlobalFactory::Generate\n"); Locker locker(vm->isolate); TRACE("GlobalFactory::Generate - 1\n"); Isolate::Scope iscope(vm->isolate); TRACE("GlobalFactory::Generate - 2\n"); HandleScope handle_...
#include "erlang_v8_drv.h" Persistent<ObjectTemplate> GlobalFactory::Generate(Vm *vm, ErlNifEnv *env) { TRACE("GlobalFactory::Generate\n"); Locker locker(vm->isolate); TRACE("GlobalFactory::Generate - 1\n"); Isolate::Scope iscope(vm->isolate); TRACE("GlobalFactory::Generate - 2\n"); HandleScope handle_...
Call it erlang_v8 instead of erlang.
Call it erlang_v8 instead of erlang.
C++
mit
chromaticbum/erlang_v8,chromaticbum/erlang_v8,chromaticbum/erlang_v8
4904b34f4b3078d25e4657febb175fb62a5574e3
tensorflow/compiler/mlir/quantization/tensorflow/utils/quant_spec.cc
tensorflow/compiler/mlir/quantization/tensorflow/utils/quant_spec.cc
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add more same scale ops
Add more same scale ops PiperOrigin-RevId: 436897574
C++
apache-2.0
yongtang/tensorflow,karllessard/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,tensorflow/te...
06dd101a65b88b1da374e25ca58e415136352f06
test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/default.pass.cpp
test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/default.pass.cpp
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
Fix incorrect comment in std::function test
[NFC] Fix incorrect comment in std::function test git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@354537 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
1337961d1f0c472423ff38edcd70a7b4eb82c58e
src/sensor/kinect_tomato_searcher/src/tomato_broadcaster.cpp
src/sensor/kinect_tomato_searcher/src/tomato_broadcaster.cpp
#include <ros/ros.h> #include <tf2_ros/transform_broadcaster.h> #include <geometry_msgs/TransformStamped.h> #include <geometry_msgs/Point.h> void pointCallback(const geometry_msgs::Point::ConstPtr& msg) { static tf2_ros::TransformBroadcaster br; geometry_msgs::TransformStamped transformStamped; transformStamp...
#include <ros/ros.h> #include <tf2_ros/transform_broadcaster.h> #include <geometry_msgs/TransformStamped.h> #include <geometry_msgs/Point.h> int offsetX, offsetY, offsetZ; void pointCallback(const geometry_msgs::Point::ConstPtr& msg) { static tf2_ros::TransformBroadcaster br; geometry_msgs::TransformStamped trans...
Add offset from rosparam on kinect_broadcaster
Add offset from rosparam on kinect_broadcaster
C++
mit
agrirobo/arcsys2,agrirobo/arcsys2
e28e1f0c568dd91b0b534c1c0c968e8b3549a8bc
src/plugins/qmljseditor/qmljspreviewrunner.cpp
src/plugins/qmljseditor/qmljspreviewrunner.cpp
#include "qmljspreviewrunner.h" #include <projectexplorer/environment.h> #include <utils/synchronousprocess.h> #include <QtGui/QMessageBox> #include <QtGui/QApplication> #include <QDebug> namespace QmlJSEditor { namespace Internal { QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) : QObject(parent) { ...
#include "qmljspreviewrunner.h" #include <projectexplorer/environment.h> #include <utils/synchronousprocess.h> #include <QtGui/QMessageBox> #include <QtGui/QApplication> #include <QDebug> namespace QmlJSEditor { namespace Internal { QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) : QObject(parent) { ...
Fix QtQuick->Preview shortcut to start a qmlviewer
Fix QtQuick->Preview shortcut to start a qmlviewer The executable has been renamed to 'qmlviewer' months ago
C++
lgpl-2.1
dmik/qt-creator-os2,bakaiadam/collaborative_qt_creator,KDE/android-qt-creator,colede/qtcreator,yinyunqiao/qtcreator,farseerri/git_code,xianian/qt-creator,bakaiadam/collaborative_qt_creator,sandsmark/qtcreator-minimap,dmik/qt-creator-os2,Distrotech/qtcreator,danimo/qt-creator,KDE/android-qt-creator,malikcjm/qtcreator,dm...
c02b7c44e49da323884d0491caf3bba59f5c2af6
prioritysend.cpp
prioritysend.cpp
#include <znc/Client.h> #include <znc/Modules.h> #include <znc/IRCNetwork.h> #include <znc/IRCSock.h> class CPrioritySend : public CModule { public: MODCONSTRUCTOR(CPrioritySend) {} virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { return ProcessMessage("NOTICE", sTarget, sMessage); }...
#include <znc/Client.h> #include <znc/Modules.h> #include <znc/IRCNetwork.h> #include <znc/IRCSock.h> class CPrioritySend : public CModule { public: MODCONSTRUCTOR(CPrioritySend) {} virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { return ProcessMessage("NOTICE", sTarget, sMessage); }...
Make sure GetNetwork doesn't return null
Make sure GetNetwork doesn't return null
C++
unlicense
xPaw/znc-prioritysend
c5eeecdb090c1bba987883924b8bc3c86bf791a4
Behaviors/GoBackward.cpp
Behaviors/GoBackward.cpp
/* * GoForward.cpp * * Created on: Mar 25, 2014 * Author: user */ #include "GoBackward.h" GoBackward::GoBackward(Robot* robot):Behavior(robot) { // TODO Auto-generated constructor stub } bool GoBackward::startCondition() { return false; } void GoBackward::action() { } bool GoBackward::stopCondition() ...
/* * GoForward.cpp * * Created on: Mar 25, 2014 * Author: user */ #include "GoBackward.h" GoBackward::GoBackward(Robot* robot):Behavior(robot), _steps_count(0) { } bool GoBackward::startCondition() { return true; } void GoBackward::action() { ++_steps_count; _robot->setSpeed(-0.1,0.0); } bool GoBackw...
Add logic to this behavior
Add logic to this behavior
C++
apache-2.0
Jossef/robotics,Jossef/robotics
60714965c8a0d88459421c65011d0fddf1e56dd1
src/main.cpp
src/main.cpp
#include <stdio.h> #include <iostream> /// The main function int main () { std::cout << "Hello !" << std::endl; return 0; }
#include <GL/glew.h> // to load OpenGL extensions at runtime #include <GLFW/glfw3.h> // to set up the OpenGL context and manage window lifecycle and inputs #include <stdio.h> #include <iostream> /// The main function int main () { std::cout << "Hello !" << std::endl; return 0; }
Include headers for GLEW and glfw3
Include headers for GLEW and glfw3 GLEW is used to load OpenGL extensions (hardware dependent) at runtime. glfw3 is used to create a window, an OpenGL context, and handle interactions. Former-commit-id: 4d2c192166c2735a8d6150e11838cb8c8f3a1382
C++
mit
kosua20/GL_Template,kosua20/GL_Template
c6fef87d906f71ec54798c3e8ee9533cc2cf7df8
src/main.cpp
src/main.cpp
#include <iostream> #include "configure.hpp" #include "parsers/md_parser.hpp" #include "display_drivers/ncurses_display_driver.hpp" using namespace std; int main(int argc, char ** argv) { cout << "mdl v" << MDL_VERSION_STRING << endl; if (argc < 2) { cerr << "mdl: missing at least one argument" << endl; return ...
#include "configure.hpp" #include "parsers/md_parser.hpp" #include "display_drivers/ncurses_display_driver.hpp" #include <iostream> #include <locale.h> using namespace std; int main(int argc, char ** argv) { setlocale(LC_ALL, ""); cout << "mdl v" << MDL_VERSION_STRING << endl; if (argc < 2) { cerr << "mdl: miss...
Make program usable for all locales
Make program usable for all locales
C++
mit
dopsi/mdl
47a5141963240b580143e0ce79b45b395bbccade
clang-tidy/darwin/DarwinTidyModule.cpp
clang-tidy/darwin/DarwinTidyModule.cpp
//===--- MiscTidyModule.cpp - clang-tidy ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
//===--- MiscTidyModule.cpp - clang-tidy ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
Fix module registry name and description for Darwin clang-tidy module.
[clang-tidy] Fix module registry name and description for Darwin clang-tidy module. Summary: When creating the module, must have copy-pasted from the misc module, and forgotten to update the name/description of the module in the registry. Reviewers: stephanemoore, benhamilton, gribozavr Reviewed By: gribozavr Subsc...
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
a8f8ed08cc30656a1228c89e7d0aa9eed95daeb1
lib/Fuzzer/test/LoadTest.cpp
lib/Fuzzer/test/LoadTest.cpp
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer: find interesting value of array index. #include <assert.h> #include <cstdint> #include <cstring> #include <cstddef> #include <iostream> static volatile int Sink; const int kAr...
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Simple test for a fuzzer: find interesting value of array index. #include <assert.h> #include <cstdint> #include <cstring> #include <cstddef> #include <iostream> static volatile int Sink; const int kAr...
Update Load test to work on 32 bits.
[libFuzzer] Update Load test to work on 32 bits. We should ensure the size of the variable `a` is 8 bytes. Otherwise, this generates a stack buffer overflow inside the memcpy call in 32 bits machines. (We write more bytes than the size of a, when it is 4 bytes) Differential Revision: https://reviews.llvm.org/D29602 ...
C++
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llv...
01af8e8d2a56243de944c3227e306729e2a44086
src/media/processing/yuyvtoyuv420.cpp
src/media/processing/yuyvtoyuv420.cpp
#include "yuyvtoyuv420.h" YUYVtoYUV420::YUYVtoYUV420(QString id, StatisticsInterface *stats, std::shared_ptr<HWResourceManager> hwResources) : Filter(id, "YUYVtoYUV420", stats, hwResources, YUYVVIDEO, YUV420VIDEO) {} void YUYVtoYUV420::process() { std::unique_ptr<Data> input = getI...
#include "yuyvtoyuv420.h" YUYVtoYUV420::YUYVtoYUV420(QString id, StatisticsInterface *stats, std::shared_ptr<HWResourceManager> hwResources) : Filter(id, "YUYVtoYUV420", stats, hwResources, YUYVVIDEO, YUV420VIDEO) {} void YUYVtoYUV420::process() { std::unique_ptr<Data> input = getI...
Convert luma pixels from YUYV to YUV420
feature(Processing): Convert luma pixels from YUYV to YUV420 Still working on chroma
C++
isc
ultravideo/kvazzup,ultravideo/kvazzup
c336f01d2013183cb47a15c9823abca2f5bb2e7a
stdlib/misc/discard_kernel.cpp
stdlib/misc/discard_kernel.cpp
#include "scanner/api/kernel.h" #include "scanner/api/op.h" #include "scanner/util/memory.h" namespace scanner { class DiscardKernel : public BatchedKernel { public: DiscardKernel(const KernelConfig& config) : BatchedKernel(config), device_(config.devices[0]), work_item_size_(config.work_item_size)...
#include "scanner/api/kernel.h" #include "scanner/api/op.h" #include "scanner/util/memory.h" namespace scanner { class DiscardKernel : public BatchedKernel { public: DiscardKernel(const KernelConfig& config) : BatchedKernel(config), device_(config.devices[0]), work_item_size_(config.work_item_size)...
Support batching on discard kernel
Support batching on discard kernel
C++
apache-2.0
scanner-research/scanner,scanner-research/scanner,scanner-research/scanner,scanner-research/scanner
179b53d4f50fb4134a0a3114d945d99f72e3d0e5
test/clang-tidy/read_file_config.cpp
test/clang-tidy/read_file_config.cpp
// RUN: mkdir -p %T/read-file-config/ // RUN: cp %s %T/read-file-config/test.cpp // RUN: echo 'Checks: "-*,modernize-use-nullptr"' > %T/read-file-config/.clang-tidy // RUN: echo '[{"command": "cc -c -o test.o test.cpp", "directory": "%T/read-file-config", "file": "%T/read-file-config/test.cpp"}]' > %T/read-file-config/...
// RUN: mkdir -p %T/read-file-config/ // RUN: cp %s %T/read-file-config/test.cpp // RUN: echo 'Checks: "-*,modernize-use-nullptr"' > %T/read-file-config/.clang-tidy // RUN: echo '[{"command": "cc -c -o test.o test.cpp", "directory": "%/T/read-file-config", "file": "%/T/read-file-config/test.cpp"}]' > %T/read-file-confi...
Fix test from r330245 on Windows.
Fix test from r330245 on Windows. git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@330305 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
211c278e536b9f5bf468a99dc24449ad734466fe
test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp
test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp
// RUN: clang-cc -fsyntax-only -verify %s // XFAIL template<typename T> struct X0 { typedef int size_type; size_type f0() const; }; template<typename T> typename X0<T>::size_type X0<T>::f0() const { }
// RUN: clang-cc -fsyntax-only -verify %s // XFAIL template<typename T> struct X1 { }; template<typename T> struct X0 { typedef int size_type; typedef T value_type; size_type f0() const; value_type *f1(); X1<value_type*> f2(); }; template<typename T> typename X0<T>::size_type X0<T>::f0() const { retu...
Make the recanonicalization-for-an-out-of-line-definition test case a bit trickier
Make the recanonicalization-for-an-out-of-line-definition test case a bit trickier git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@77707 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
cfb0b3d8b66601dfed591730e6ab7c069228bb2e
lib/imul.tas.cpp
lib/imul.tas.cpp
#include "common.th" // c <- multiplicand // d <- multiplier // b -> product .global imul imul: pushall(h,i,j,k) i <- d == 0 jnzrel(i, L_done) h <- 1 b <- 0 j <- c >> 31 // save sign bit in j j <- -j // convert sign to flag c <- c ^ j // adjust multiplicand c <- c ...
#include "common.th" // c <- multiplicand // d <- multiplier // b -> product .global imul imul: pushall(h,i,j) i <- d == 0 jnzrel(i, L_done) h <- 1 b <- 0 j <- d >> 31 // save sign bit in j j <- -j // convert sign to flag d <- d ^ j // adjust multiplier d <- d - j ...
Simplify imul (no need to check both signs)
Simplify imul (no need to check both signs)
C++
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
2f3a7b23b62dca9435d4e0f9274c3b0307a983b3
gin/shell/gin_shell_unittest.cc
gin/shell/gin_shell_unittest.cc
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "base/files/file_path.h" #include "base/path_service.h" #include "base/process/launch.h" #include "base/strings/st...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/process/launch.h" #include "base/strings/string_u...
Verify that gin_shell and hello_world.js exist.
Verify that gin_shell and hello_world.js exist. This issue: https://code.google.com/p/chromium/issues/detail?id=398549, was difficult to debug because gin/shell/gin_shell_unittest.cc didn't verify that its input files existed before forging ahead. The unit test now verifies that the gin_shell and hello_world.js paths...
C++
bsd-3-clause
Jonekee/chromium.src,Jonekee/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,axinging/chromium-crosswalk,markYoungH/chromium.src,dushu1203/chromium.src,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,Jonekee/chromium.src,chuan9/chromium-crosswalk,Chi...
83f97dc8204133141365908c7ff13c3973f427e6
tools/llvm-xray/llvm-xray.cc
tools/llvm-xray/llvm-xray.cc
//===- llvm-xray.cc - XRay Tool Main Program ------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm-xray.cc - XRay Tool Main Program ------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Remove unnecessary include of <unistd.h>
[XRay] Remove unnecessary include of <unistd.h> git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@285171 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror...
26b410550da2a17df00c9f98ecd24cc9944befd8
ouzel/graphics/direct3d11/RenderTargetResourceD3D11.cpp
ouzel/graphics/direct3d11/RenderTargetResourceD3D11.cpp
// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include "RenderTargetResourceEmpty.hpp" namespace ouzel { namespace graphics { } // namespace graphics } // namespace ouzel
// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include "RenderTargetResourceD3D11.hpp" namespace ouzel { namespace graphics { } // namespace graphics } // namespace ouzel
Fix the render target D3D11 include
Fix the render target D3D11 include
C++
unlicense
elnormous/ouzel,elnormous/ouzel,elvman/ouzel,elvman/ouzel,elnormous/ouzel
3d79151a142c7e233221f883762daaca26b4ceb3
lib/CodeGen/AsmPrinter/AddressPool.cpp
lib/CodeGen/AsmPrinter/AddressPool.cpp
#include "AddressPool.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/MC/MCStreamer.h" #include "llvm/Target/TargetLoweringObjectFile.h" using namespace llvm; class MCExpr; unsigned AddressPool::getIndex(const MCSymbol *Sym, bool TLS) { auto IterBool = Pool.insert(std::make_pair(Sym, AddressPoolEntry...
//===-- llvm/CodeGen/AddressPool.cpp - Dwarf Debug Framework ---*- C++ -*--===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add missing cpp file header
Add missing cpp file header Code review feedback from Paul Robinson on r207022 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@207198 91177308-0d34-0410-b5e6-96231b3b80d8
C++
bsd-2-clause
chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift...
9c93d6f93180ec0ed9be5fd0b4ea59817c01ed02
libi2pd/CPU.cpp
libi2pd/CPU.cpp
#include "CPU.h" #if defined(__x86_64__) || defined(__i386__) #include <cpuid.h> #endif #include "Log.h" #ifndef bit_AES #define bit_AES (1 << 25) #endif #ifndef bit_AVX #define bit_AVX (1 << 28) #endif namespace i2p { namespace cpu { bool aesni = false; bool avx = false; void Detect() { #if defined(__x86_64__)...
#include "CPU.h" #if defined(__x86_64__) || defined(__i386__) #include <cpuid.h> #endif #include "Log.h" namespace i2p { namespace cpu { bool aesni = false; bool avx = false; void Detect() { #if defined(__x86_64__) || defined(__i386__) int info[4]; __cpuid(0, info[0], info[1], info[2], info[3]); if (info[0] ...
Revert "define cpu_* if not set"
Revert "define cpu_* if not set" This reverts commit a077d7671f03f6cb3c940212bbaa28a79500d210.
C++
bsd-3-clause
brain5lug/i2pd,majestrate/i2pd,majestrate/i2pd,PurpleI2P/i2pd,brain5lug/i2pd,PurpleI2P/i2pd,brain5lug/i2pd,majestrate/i2pd,PurpleI2P/i2pd,PurpleI2P/i2pd,brain5lug/i2pd,majestrate/i2pd,majestrate/i2pd
d6cbf08979f2030e869ac4aef48fcd6df220df30
chrome/renderer/renderer_main_platform_delegate_linux.cc
chrome/renderer/renderer_main_platform_delegate_linux.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not have a sandbox ...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/renderer_main_platform_delegate.h" #include "base/debug_util.h" // This is a no op class because we do not have a sandbox ...
Convert sandbox NOTIMPLEMENTED()s into a bug.
Convert sandbox NOTIMPLEMENTED()s into a bug. Review URL: http://codereview.chromium.org/27179 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@10410 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/c...
ea88afe23249b39a4bc4c15dc2042123420ca605
test/mock/test_mock.cpp
test/mock/test_mock.cpp
/** * \file * \brief Unit Test for Thermal Mock Config * * \author Uilian Ries <uilianries@gmail.com> */ /** Should not link with unit test lib */ #define BOOST_TEST_NO_LIB #include <string> #include <boost/filesystem.hpp> #include <boost/test/unit_test.hpp> #include <Poco/File.h> #include "bbbgpio/thermal_con...
/** * \file * \brief Unit Test for Thermal Mock Config * * \author Uilian Ries <uilianries@gmail.com> */ /** Should not link with unit test lib */ #define BOOST_TEST_NO_LIB #include <string> #include <boost/filesystem.hpp> #include <boost/test/unit_test.hpp> #include <boost/filesystem/operations.hpp> #include ...
Fix boos usage on mock test
Fix boos usage on mock test Signed-off-by: Uilian Ries <d4bad57018205bdda203549c36d3feb0bfe416a7@gmail.com>
C++
mit
uilianries/BeagleBoneBlackGPIO,uilianries/BeagleBoneBlackGPIO,uilianries/BeagleBoneBlackGPIO
8cd100beee09b2bd8305e124fb52fc1f5025584c
PySide/QtGui/glue/qapplication_init.cpp
PySide/QtGui/glue/qapplication_init.cpp
// Borrowed reference to QtGui module extern PyObject* moduleQtGui; int SbkQApplication_Init(PyObject* self, PyObject* args, PyObject*) { int numArgs = PyTuple_GET_SIZE(args); if (numArgs != 1) { PyErr_BadArgument(); return -1; } char** argv; int argc; if (!PySequence_to_argc_a...
// Borrowed reference to QtGui module extern PyObject* moduleQtGui; int SbkQApplication_Init(PyObject* self, PyObject* args, PyObject*) { if (QApplication::instance()) { PyErr_SetString(PyExc_RuntimeError, "A QApplication instance already exists."); return -1; } int numArgs = PyTuple_GET_S...
Throw an exception when the user attempt to create more than one instance of QApplication.
Throw an exception when the user attempt to create more than one instance of QApplication. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
C++
lgpl-2.1
gbaty/pyside2,BadSingleton/pyside2,BadSingleton/pyside2,gbaty/pyside2,PySide/PySide,PySide/PySide,pankajp/pyside,enthought/pyside,M4rtinK/pyside-bb10,enthought/pyside,RobinD42/pyside,IronManMark20/pyside2,gbaty/pyside2,gbaty/pyside2,qtproject/pyside-pyside,RobinD42/pyside,enthought/pyside,PySide/PySide,qtproject/pyside...
f559de433890e55d3cce909fac2e0d1fb17327fd
bench/PictureOverheadBench.cpp
bench/PictureOverheadBench.cpp
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // A benchmark designed to isolate the constant overheads of picture recording. // We record a very tiny (one op) picture; one op is better than none, as it forces // us to al...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // A benchmark designed to isolate the constant overheads of picture recording. // We record an empty picture and a picture with one draw op to force memory allocation. #incl...
Expand bench to cover no-draw SkPictures too.
Expand bench to cover no-draw SkPictures too. This looks a lot closer to what Chromium's profiling is showing. BUG=chromium:470553 Review URL: https://codereview.chromium.org/1063723002
C++
bsd-3-clause
Jichao/skia,YUPlayGodDev/platform_external_skia,google/skia,HalCanary/skia-hc,nvoron23/skia,nvoron23/skia,TeamTwisted/external_skia,BrokenROM/external_skia,shahrzadmn/skia,shahrzadmn/skia,w3nd1go/android_external_skia,BrokenROM/external_skia,shahrzadmn/skia,aosp-mirror/platform_external_skia,MarshedOut/android_external...
ffed4891569a5bcc16c4b16744a5adcf932b4f85
src/OSSupport/StackTrace.cpp
src/OSSupport/StackTrace.cpp
// StackTrace.cpp // Implements the functions to print current stack traces #include "Globals.h" #include "StackTrace.h" #ifdef _WIN32 #include "../StackWalker.h" #else #include <execinfo.h> #include <unistd.h> #endif // FreeBSD uses size_t for the return type of backtrace() #if defined(__FreeBSD__) && (__FreeBS...
// StackTrace.cpp // Implements the functions to print current stack traces #include "Globals.h" #include "StackTrace.h" #ifdef _WIN32 #include "../StackWalker.h" #else #ifdef __GLIBC__ #include <execinfo.h> #endif #include <unistd.h> #endif // FreeBSD uses size_t for the return type of backtrace() #if define...
Include execinfo.h only on __GLIBC__
Include execinfo.h only on __GLIBC__
C++
apache-2.0
nounoursheureux/MCServer,kevinr/cuberite,Haxi52/cuberite,birkett/cuberite,birkett/MCServer,nounoursheureux/MCServer,birkett/cuberite,mc-server/MCServer,nounoursheureux/MCServer,birkett/MCServer,ionux/MCServer,kevinr/cuberite,HelenaKitty/EbooMC,johnsoch/cuberite,QUSpilPrgm/cuberite,nounoursheureux/MCServer,marvinkopf/cu...
dde58195761e930cee31a7feea063bae9613187a
example/src/main.cpp
example/src/main.cpp
#include "ofMain.h" #include "ofApp.h" int main() { #ifdef TARGET_RASPBERRY_PI ofSetupOpenGL(600, 500, OF_FULLSCREEN); #else ofSetupOpenGL(600, 500, OF_WINDOW); #endif ofRunApp(new ofApp()); }
#include "ofMain.h" #include "ofApp.h" #include <string> #ifdef TARGET_RASPBERRY_PI // Accept arguments in the Pi version int main(int argc, char* argv[]) { bool fullscreen = false; if (argc > 0) { std::string fullscreenFlag = "-f"; for (int i = 0; i < argc; i++) { if (strcmp(argv[i], fullscree...
Add -f flag option to RPi version of he example
Add -f flag option to RPi version of he example
C++
mit
PPilmeyer/ofxPiMapper
932550d0b1762e26d83b473d62fd837a981419a6
example/demo_tcp_server.cpp
example/demo_tcp_server.cpp
#include <iostream> #include <tcp_server.hpp> int main() { TcpServer server(12001); server.Listen(2000); return 0; }
#include <iostream> #include <tcp/tcp_server.hpp> #include <sstream> int main(int argc, char** argv) { //initalize default port number and max connection cout int port = 12001, max_connection_count= 1000; // check if there are any passed arguments if(argc > 1) { // initialize string stream from argument...
Update tcp server example to accept cmd args
Update tcp server example to accept cmd args
C++
mit
samehkamaleldin/socket.cpp
0b84a53412a6acac38e2d647d220ce7af851395e
test/SemaTemplate/default-expr-arguments.cpp
test/SemaTemplate/default-expr-arguments.cpp
// RUN: clang-cc -fsyntax-only -verify %s struct S { }; template<typename T> void f1(T a, T b = 10) { } // expected-error{{cannot initialize 'b' with an rvalue of type 'int'}} template<typename T> void f2(T a, T b = T()) { } template<typename T> void f3(T a, T b = T() + T()); // expected-error{{invalid operands to ...
// RUN: clang-cc -fsyntax-only -verify %s struct S { }; template<typename T> void f1(T a, T b = 10) { } // expected-error{{cannot initialize 'b' with an rvalue of type 'int'}} template<typename T> void f2(T a, T b = T()) { } template<typename T> void f3(T a, T b = T() + T()); // expected-error{{invalid operands to ...
Add a little more testing for default arguments of constructors in a class template
Add a little more testing for default arguments of constructors in a class template git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@79989 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
602a1df4992a181d66f3d63ffa780114a90fa05d
storage/src/vespa/storage/common/servicelayercomponent.cpp
storage/src/vespa/storage/common/servicelayercomponent.cpp
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "servicelayercomponent.h" #include <vespa/storage/common/content_bucket_space_repo.h> #include <vespa/storage/common/nodestateupdater.h> #include <vespa/vdslib/distribution/distribution.h> ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "servicelayercomponent.h" #include <vespa/storage/common/content_bucket_space_repo.h> #include <vespa/storage/common/nodestateupdater.h> #include <vespa/vdslib/distribution/distribution.h> ...
Remove outdated bucket space assertion
Remove outdated bucket space assertion
C++
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
d295d78645503711d67ce54be2faddf7abdbc4e9
test/CodeGenCXX/PR6474.cpp
test/CodeGenCXX/PR6474.cpp
// RUN: %clang_cc1 %s -emit-llvm namespace test0 { template <typename T> struct X { virtual void foo(); virtual void bar(); virtual void baz(); }; template <typename T> void X<T>::foo() {} template <typename T> void X<T>::bar() {} template <typename T> void X<T>::baz() {} template <> void X<char>::foo() {} tem...
// RUN: %clang_cc1 %s -emit-llvm-only namespace test0 { template <typename T> struct X { virtual void foo(); virtual void bar(); virtual void baz(); }; template <typename T> void X<T>::foo() {} template <typename T> void X<T>::bar() {} template <typename T> void X<T>::baz() {} template <> void X<char>::foo() {...
Use -emit-llvm-only, to avoid leaving a temp around.
Use -emit-llvm-only, to avoid leaving a temp around. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@98267 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-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...
9a0e7946a7ad3ab777608758f40ce601b5e223be
tensorflow/lite/delegates/nnapi/nnapi_delegate_disabled.cc
tensorflow/lite/delegates/nnapi/nnapi_delegate_disabled.cc
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Add portable (no-op) version of StatefulNnApiDelegate
Add portable (no-op) version of StatefulNnApiDelegate PiperOrigin-RevId: 249683139
C++
apache-2.0
yongtang/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,arborh/tensorflow,petewarden/tensorflow,arborh/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,jh...
26e4dd753b020e51ca031b8b422df0fa798afe5e
killswitch2/killswitch2.cpp
killswitch2/killswitch2.cpp
#include <avr/io.h> #include <avr/interrupt.h> /* _____ ___ ___ RESET -| U |- VCC (Mode) ADC3 -| AT13A |- ADC1 (Depth) (Speed) ADC2 -| |- OC0B (PWM Output) GND -|_______|- PB0 (Button) */ int main() { while(1) { cli(); } }
#include <avr/io.h> #include <avr/interrupt.h> /* _____ ___ ___ RESET -| U |- VCC (Mode) ADC3 -| AT13A |- ADC1 (Depth) (Speed) ADC2 -| |- OC0B (PWM Output) GND -|_______|- PB0 (Button) */ enum { ADC_DEPTH = 1, ADC_SPEED = 2, ADC_MODE =...
Add enum definitions for ADC's.
Add enum definitions for ADC's.
C++
mit
sergey-raevskiy/modfx,sergey-raevskiy/modfx
47cf70e7f0585ac1986b02e8e008a5bbe8bca010
caffe2/contrib/aten/aten_op_cuda.cc
caffe2/contrib/aten/aten_op_cuda.cc
/** * Copyright (c) 2016-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/** * Copyright (c) 2016-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Fix function signature in ATenOp for at::Half Set function (GPU version)
Fix function signature in ATenOp for at::Half Set function (GPU version) Summary: The CPU version is fixed here. https://github.com/caffe2/caffe2/pull/1464/files Now fix GPU version. Closes https://github.com/caffe2/caffe2/pull/1506 Reviewed By: jamesr66a Differential Revision: D6392830 Pulled By: houseroad fbshi...
C++
apache-2.0
Yangqing/caffe2,xzturn/caffe2,xzturn/caffe2,davinwang/caffe2,Yangqing/caffe2,Yangqing/caffe2,davinwang/caffe2,caffe2/caffe2,xzturn/caffe2,davinwang/caffe2,Yangqing/caffe2,xzturn/caffe2,Yangqing/caffe2,xzturn/caffe2,davinwang/caffe2,davinwang/caffe2
51ada39cfcd80ecb45032b6e18ec1a076a01de04
generator/opentable_scoring.cpp
generator/opentable_scoring.cpp
#include "generator/sponsored_scoring.hpp" #include "generator/opentable_dataset.hpp" #include "generator/feature_builder.hpp" namespace { // Calculated with tools/python/booking_hotels_quality.py. double constexpr kOptimalThreshold = 0.304875; } // namespace namespace generator { namespace sponsored_scoring { temp...
#include "generator/sponsored_scoring.hpp" #include "generator/opentable_dataset.hpp" #include "generator/feature_builder.hpp" namespace { // Calculated with tools/python/booking_hotels_quality.py. double constexpr kOptimalThreshold = 0.312887; } // namespace namespace generator { namespace sponsored_scoring { temp...
Adjust classificator theshold for opentable.
Adjust classificator theshold for opentable.
C++
apache-2.0
Transtech/omim,Zverik/omim,mpimenov/omim,mapsme/omim,darina/omim,Zverik/omim,trashkalmar/omim,syershov/omim,rokuz/omim,VladiMihaylenko/omim,rokuz/omim,bykoianko/omim,ygorshenin/omim,mpimenov/omim,mpimenov/omim,bykoianko/omim,mapsme/omim,darina/omim,dobriy-eeh/omim,alexzatsepin/omim,milchakov/omim,rokuz/omim,milchakov/o...
a4e3d13df6a6f48974f541de0b5b061e8078ba9a
src/test/fuzz/fees.cpp
src/test/fuzz/fees.cpp
// Copyright (c) 2020 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 <amount.h> #include <optional.h> #include <policy/fees.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/f...
// Copyright (c) 2020 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 <amount.h> #include <optional.h> #include <policy/fees.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/f...
Add fuzzing coverage for StringForFeeReason(...)
tests: Add fuzzing coverage for StringForFeeReason(...)
C++
mit
practicalswift/bitcoin,instagibbs/bitcoin,tecnovert/particl-core,alecalve/bitcoin,Sjors/bitcoin,domob1812/namecore,sipsorcery/bitcoin,kallewoof/bitcoin,litecoin-project/litecoin,particl/particl-core,jambolo/bitcoin,prusnak/bitcoin,cdecker/bitcoin,MarcoFalke/bitcoin,prusnak/bitcoin,jlopp/statoshi,midnightmagic/bitcoin,r...
bbbc597e3558757826ef05555a4db1039b8120e2
src/alnindex.cpp
src/alnindex.cpp
#include "alnindex.hpp" #include <cstring> AlnIndex::AlnIndex() { t = hattrie_create(); } AlnIndex::~AlnIndex() { hattrie_free(t); } size_t AlnIndex::size() const { return hattrie_size(t); } void AlnIndex::clear() { hattrie_clear(t); } long AlnIndex::add(const char* key) { value_t* val = ...
#include "alnindex.hpp" #include <cstring> AlnIndex::AlnIndex() { t = hattrie_create(); } AlnIndex::~AlnIndex() { hattrie_free(t); } size_t AlnIndex::size() const { return hattrie_size(t); } void AlnIndex::clear() { hattrie_clear(t); } long AlnIndex::add(const char* key) { value_t* val = ...
Fix off-by-one memory access error.
Fix off-by-one memory access error.
C++
mit
dcjones/isolator,dcjones/isolator,dcjones/isolator,dcjones/isolator
9f0860c29c1d8552f32ce4837395679ae342da70
src/ems/main.cpp
src/ems/main.cpp
#include <QCoreApplication> #include <QSettings> #include "Application.h" int main(int argc, char *argv[]) { Application a(argc, argv); return a.exec(); }
#include <QCoreApplication> #include <QSettings> #include "Application.h" #include <QtGlobal> #include <QTime> #include <iostream> #define COLOR_LIGHTRED "\033[31;1m" #define COLOR_RED "\033[31m" #define COLOR_LIGHTBLUE "\033[34;1m" #define COLOR_BLUE "\033[34m" #define COLOR_GREEN "\033[32;1m" #defi...
Add color and timestamp to loggin messages
Add color and timestamp to loggin messages
C++
bsd-2-clause
raoulh/Enna-Media-Server,raoulh/Enna-Media-Server,raoulh/Enna-Media-Server,enna-project/Enna-Media-Server,enna-project/Enna-Media-Server,enna-project/Enna-Media-Server,enna-project/Enna-Media-Server,raoulh/Enna-Media-Server,raoulh/Enna-Media-Server,enna-project/Enna-Media-Server
0c95e65f3c1ef545bf36165636f173999dccc5bc
config/config_type_pointer.cc
config/config_type_pointer.cc
#include <string> #include <config/config.h> #include <config/config_type_pointer.h> #include <config/config_value.h> ConfigTypePointer config_type_pointer; bool ConfigTypePointer::set(ConfigValue *cv, const std::string& vstr) { if (pointers_.find(cv) != pointers_.end()) return (false); Config *config = cv->con...
#include <string> #include <config/config.h> #include <config/config_type_pointer.h> #include <config/config_value.h> ConfigTypePointer config_type_pointer; bool ConfigTypePointer::set(ConfigValue *cv, const std::string& vstr) { if (pointers_.find(cv) != pointers_.end()) return (false); /* XXX Have a magic None...
Support pointers to "None" as used in the wanproxy.conf.
Support pointers to "None" as used in the wanproxy.conf. git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@173 4068ffdb-0463-0410-8185-8cc71e3bd399
C++
bsd-2-clause
diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy,splbio/wanproxy,diegows/wanproxy
27219ede62f53092a1d2a23a18213a616c6f4b87
src/structures/congruence_atom.cpp
src/structures/congruence_atom.cpp
#include <cassert> #include "structures/congruence_atom.h" using namespace theorysolver; Term::Term(unsigned int symbol_id) : type(Term::SYMBOL), symbol_id(symbol_id), function_name(), arguments() { } Term::Term(std::string function_name, std::vector<std::shared_ptr<Term>> arguments) : type(Term::FUNCTION), symbol_i...
#include <cassert> #include "structures/congruence_atom.h" using namespace theorysolver; Term::Term(unsigned int symbol_id) : type(Term::SYMBOL), symbol_id(symbol_id), function_name(), arguments() { } Term::Term(std::string function_name, std::vector<std::shared_ptr<Term>> arguments) : type(Term::FUNCTION), symbol_i...
Fix forgotten case in previous commit.
Fix forgotten case in previous commit.
C++
mit
Ezibenroc/satsolver,Ezibenroc/satsolver,Ezibenroc/satsolver,Ezibenroc/satsolver
0e17a0752de204baa8215705b0a892d555b5789b
src/52.cpp
src/52.cpp
#include <iostream> #include <limits> #include <bitset> std::bitset<10> split(unsigned number) noexcept { std::bitset<10> result; while (number > 0) { unsigned digit = number % 10; number /= 10; result[digit] = true; } return result; }...
#include <iostream> #include <limits> #include <bitset> std::bitset<10> split(unsigned number) noexcept { std::bitset<10> result; while (number > 0) { unsigned digit = number % 10; number /= 10; result[digit] = true; } return result; }...
Optimize number to bitset conversion
Optimize number to bitset conversion
C++
unlicense
gokselgoktas/project-euler
edd6c7f5c1751cf0424f363c7a58b44b032a370a
lightsout.cpp
lightsout.cpp
#include <ncurses.h> #include <stdlib.h> #include <time.h> #include "lightsout.hpp" namespace roadagain { board::board(int width, int height) : width(width), height(height) { // init seed of rand() by current time srand(time(NULL)); lights = new bool*[height + 2](); for (int i = 0; i < height + 2; i...
#include <ncurses.h> #include <stdlib.h> #include <time.h> #include "lightsout.hpp" #include "print.hpp" namespace roadagain { board::board(int width, int height) : width(width), height(height) { // init seed of rand() by current time srand(time(NULL)); lights = new bool*[height + 2](); for (int i =...
Modify board::board to call print_board()
Modify board::board to call print_board()
C++
mit
Roadagain/KeyBindings-LightsOut
066fe329186ef86f2d22df49b288fffa6620f753
src/qt/coincontroltreewidget.cpp
src/qt/coincontroltreewidget.cpp
#include "coincontroltreewidget.h" #include "coincontroldialog.h" CoinControlTreeWidget::CoinControlTreeWidget(QWidget *parent) : QTreeWidget(parent) { } void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Space) // press spacebar -> select checkbox { event->...
#include "coincontroltreewidget.h" #include "coincontroldialog.h" CoinControlTreeWidget::CoinControlTreeWidget(QWidget *parent) : QTreeWidget(parent) { } void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Space) // press spacebar -> select checkbox { event->...
Fix crash: CoinControl "space" bug
Fix crash: CoinControl "space" bug This is a port of the pull bitcoin/bitcoin#5700 made by fsb4000 for Bitcoin Core to fix the crash problem: CoinControl "space" bug.
C++
mit
jyap808/jumbucks,jyap808/jumbucks,jyap808/jumbucks,jyap808/jumbucks,jyap808/jumbucks
914ba8af51815aef1292549250d3936fd58d0a78
src/instr/mips/jtype/instr.cpp
src/instr/mips/jtype/instr.cpp
#include "instr.h" #define MIPS_JTYPE_EXTRACT_TARGET(Instr) (Instr & ((1 << 26) - 1)) namespace sasm { namespace instr { namespace mips { namespace jtype { jtype_instr::jtype_instr(const sasm::elf::elf& elf, uint64 addr) : mips_instr(elf, addr) { auto instr = elf.image.read<uint32>(addr); _target_val = MIPS_J...
#include "instr.h" #define MIPS_JTYPE_EXTRACT_TARGET(Instr) (Instr & ((1 << 26) - 1)) namespace sasm { namespace instr { namespace mips { namespace jtype { jtype_instr::jtype_instr(const sasm::elf::elf& elf, uint64 addr) : mips_instr(elf, addr) { auto instr = elf.image.read<uint32>(addr); _target_val = MIPS_J...
Fix a bug with J-type target address calculation.
Fix a bug with J-type target address calculation.
C++
bsd-2-clause
sas/sasm,sas/sasm
a09f0dd3ff71a9ceb8ffb9741eb6fdc310844bab
test/unit/math/prim/mat/fun/singular_values_test.cpp
test/unit/math/prim/mat/fun/singular_values_test.cpp
#include <stan/math/prim/mat.hpp> #include <gtest/gtest.h> TEST(MathMatrixPrimMat, singular_values) { stan::math::matrix_d m0(1, 1); m0 << 1.0; using stan::math::singular_values; EXPECT_NO_THROW(singular_values(m0)); }
#include <stan/math/prim/mat.hpp> #include <gtest/gtest.h> TEST(MathMatrixPrimMat, singular_values) { using stan::math::singular_values; stan::math::matrix_d m0(0, 0); EXPECT_NO_THROW(singular_values(m0)); stan::math::matrix_d m1(1, 1); m1 << 1.0; EXPECT_NO_THROW(singular_values(m1)); }
Add prim test for size zero input
Add prim test for size zero input
C++
bsd-3-clause
stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math
d8970060d7cd3723290dfb0e3f3a51a45994e10b
src/apsp.cpp
src/apsp.cpp
#include <functional> #include "apsp.h" #include "cuda/cuda_apsp.cuh" /** * Naive implementation algorithm Floyd Wharshall for APSP * * @param data: unique ptr to graph data with allocated fields */ static void naiveFW(const std::unique_ptr<graphAPSPTopology>& data) { int newPath = 0; int n = data->nverte...
#include <functional> #include "apsp.h" #include "cuda/cuda_apsp.cuh" /** * Naive implementation algorithm Floyd Wharshall for APSP * * @param data: unique ptr to graph data with allocated fields */ static void naiveFW(const std::unique_ptr<graphAPSPTopology>& data) { int newPath = 0; int n = data->nverte...
Change type of function pointer
Change type of function pointer
C++
mit
MTB90/CUDA_Blocked_Floyd-Warshall
8c50a8fe364caf922b4bbcde8d366581e6717804
src/tightdb/util/terminate.cpp
src/tightdb/util/terminate.cpp
#include <iostream> #include <tightdb/util/terminate.hpp> using namespace std; namespace tightdb { namespace util { TIGHTDB_NORETURN void terminate(string message, const char* file, long line) TIGHTDB_NOEXCEPT { cerr << file << ":" << line << ": " << message << endl; abort(); } } // namespace util } // n...
#include <iostream> #ifdef __APPLE__ #include <execinfo.h> #endif #include <tightdb/util/terminate.hpp> using namespace std; namespace tightdb { namespace util { TIGHTDB_NORETURN void terminate(string message, const char* file, long line) TIGHTDB_NOEXCEPT { cerr << file << ":" << line << ": " << message << en...
Print a backtrace before terminating on supported platforms
Print a backtrace before terminating on supported platforms
C++
apache-2.0
realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core
37d42c336fce06aeca7f5d7b51fb9e19936e29e8
src/main.cpp
src/main.cpp
#include "MainWindow.h" #include <QApplication> namespace cygnus { class MainApp : public QApplication { QString fileName_{}; MainWindow *mainWindow_; public: MainApp(int argc, char *argv[]) : QApplication(argc, argv), mainWindow_(new MainWindow()) { mainWindow_->showMaximized(); if (argc > 1 &...
#include "MainWindow.h" #include <QApplication> namespace cygnus { class MainApp : public QApplication { QString fileName_{}; MainWindow *mainWindow_; public: MainApp(int argc, char *argv[]) : QApplication(argc, argv), mainWindow_(new MainWindow()) { mainWindow_->showMaximized(); QApplication::p...
Move processEvents call to properly maximize.
Move processEvents call to properly maximize.
C++
mit
avp/cygnus,avp/cygnus,avp/cygnus
8956419c0f8dc5e2afad4e981b13ef209bae602e
src/main.cpp
src/main.cpp
#include "../include/parser.h" #include "../include/exceptions.h" int main(int argc, const char** argv) { if(argc != 2) { printf("Arguments: file name.\n"); exit(1); } else { try { FileAccess * file = new FileAccess(argv[1]); TextCursor cursor(...
#include "../include/parser.h" #include "../include/exceptions.h" int main(int argc, const char** argv) { if(argc != 2) { printf("Arguments: file name.\n"); return 1; } else { try { FileAccess * file = new FileAccess(argv[1]); TextCursor cursor...
Use return instead of exit.
Use return instead of exit.
C++
mit
serathius/uri-in-file-browser,serathius/uri-in-file-browser
e180ed2f014d49587bc49f09313cabf38080d6fa
test/SemaCXX/decl-init-ref.cpp
test/SemaCXX/decl-init-ref.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s struct A {}; // expected-note {{candidate is the implicit copy constructor}} struct BASE { operator A(); // expected-note {{candidate function}} }; struct BASE1 { operator A(); // expected-note {{candidate function}} }; class B : public BASE , public BASE1 ...
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s struct A {}; // expected-note {{candidate is the implicit copy constructor}} struct BASE { operator A(); // expected-note {{candidate function}} }; struct BASE1 { operator A(); // expected-note {{candidate function}} }; class B : public BASE , public BASE1 ...
Fix PR number in test case
Fix PR number in test case git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@95640 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
f6c99d060568605a96a1c805c8d06dac8a5f8e75
Magick++/fuzz/encoder_fuzzer.cc
Magick++/fuzz/encoder_fuzzer.cc
#include <cstdint> #include <Magick++/Blob.h> #include <Magick++/Image.h> #include "utils.cc" #define FUZZ_ENCODER_STRING_LITERAL_X(name) FUZZ_ENCODER_STRING_LITERAL(name) #define FUZZ_ENCODER_STRING_LITERAL(name) #name #ifndef FUZZ_ENCODER #define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL_X(FUZZ_IMAGEMAGICK_ENCODER)...
#include <cstdint> #include <Magick++/Blob.h> #include <Magick++/Image.h> #include "utils.cc" #define FUZZ_ENCODER_STRING_LITERAL_X(name) FUZZ_ENCODER_STRING_LITERAL(name) #define FUZZ_ENCODER_STRING_LITERAL(name) #name #ifndef FUZZ_ENCODER #define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL_X(FUZZ_IMAGEMAGICK_ENCODER)...
Move these calls otuside the try block, they should never fail
Move these calls otuside the try block, they should never fail
C++
apache-2.0
Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick
eb51c67c2b7635381d69b6351b8efe302acf3df8
lib/src/Hostname.cpp
lib/src/Hostname.cpp
#include "Hostname.hpp" Hostname::Hostname() { } Hostname::Hostname(const ci_string& hostname) { create(hostname); } bool Hostname::isValid() { return !data.empty(); } void Hostname::create(const ci_string & hostname) { if (isValid()) { throw std::runtime_error("Hostname is defined!"); }...
#include "Hostname.hpp" Hostname::Hostname() { } Hostname::Hostname(const ci_string& hostname) { create(hostname); } bool Hostname::isValid() { return !data.empty(); } void Hostname::create(const ci_string & hostname) { if (isValid()) { throw std::runtime_error("Hostname is defined!"); }...
Convert std::transform to std::for_each (not supported by GCC 4.6)
Convert std::transform to std::for_each (not supported by GCC 4.6)
C++
mit
cristian-szabo/bt-code-test
621895f5a5a94e0159492257383e18916a0a3e71
tests/GLInterfaceValidationTest.cpp
tests/GLInterfaceValidationTest.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 "Test.h" // This is a GPU-backend specific test #if SK_SUPPORT_GPU #include "GrContextFactory.h" DEF_GPUTEST(GLInterfaceValidation, reporter, factory) { for (i...
/* * 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 "Test.h" // This is a GPU-backend specific test #if SK_SUPPORT_GPU #include "GrContextFactory.h" DEF_GPUTEST(GLInterfaceValidation, reporter, factory) { for (i...
Fix GLInterfaceValidation test after "Remove GrContextFactory::getGLContext"
Fix GLInterfaceValidation test after "Remove GrContextFactory::getGLContext" Fix GLInterfaceValidation test crash after "Remove GrContextFactory::getGLContext" commit. Review URL: https://codereview.chromium.org/1464283002
C++
bsd-3-clause
HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,tmpvar/skia.cc,HalCanary/skia-hc,qrealka/skia-hc,tmpvar/skia.cc,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,qrealka/skia-hc,qrealka/skia-hc,HalCanary/skia-hc,google/skia,rubenvb/skia,Hikari-n...