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
3d972ea0aa9215851d4ad7461472cb98a53a1ecc
test/Modules/preprocess-umbrella.cpp
test/Modules/preprocess-umbrella.cpp
// FIXME: The standalone module still seems to cause clang to want to test for // the existence of a 'foo' directory: // RUN: mkdir %t // RUN: cp %s %t // RUN: mkdir %t/foo // RUN: cd %t // RUN: not %clang_cc1 -fmodules -fsyntax-only %s 2>&1 | FileCheck %s // CHECK: error: no matching function for call to 'foo' // CHE...
// FIXME: The standalone module still seems to cause clang to want to test for // the existence of a 'foo' directory: // RUN: rm -rf %t // RUN: mkdir %t // RUN: cp %s %t // RUN: rm -rf %t/foo // RUN: mkdir %t/foo // RUN: cd %t // RUN: not %clang_cc1 -fmodules -fsyntax-only %s 2>&1 | FileCheck %s // CHECK: error: no ma...
Fix buildbot break after r360195
Fix buildbot break after r360195 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@360220 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
7561149528b9283965682e0ba45594a8c2478a2e
liboh/plugins/js/JSObjects/JSFunctionInvokable.cpp
liboh/plugins/js/JSObjects/JSFunctionInvokable.cpp
#include <vector> #include <boost/any.hpp> #include <v8.h> #include "JSFunctionInvokable.hpp" #include "../JSObjectScript.hpp" #include "JSInvokableUtil.hpp" namespace Sirikata { namespace JS { boost::any JSFunctionInvokable::invoke(std::vector<boost::any>& params) { /* Invoke the function handle */ in...
#include <vector> #include <boost/any.hpp> #include <v8.h> #include "JSFunctionInvokable.hpp" #include "../JSObjectScript.hpp" #include "JSInvokableUtil.hpp" namespace Sirikata { namespace JS { boost::any JSFunctionInvokable::invoke(std::vector<boost::any>& params) { /* Invoke the function handle */ in...
Remove old windows workaround for V8 function invokations.
Remove old windows workaround for V8 function invokations.
C++
bsd-3-clause
sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata
91f402afa297eafff40b12f8ed2ed2a0e561347b
src/tests/TestUpdaterOptions.cpp
src/tests/TestUpdaterOptions.cpp
#include "TestUpdaterOptions.h" #include "TestUtils.h" #include "UpdaterOptions.h" void TestUpdaterOptions::testOldFormatArgs() { const int argc = 6; char* argv[argc]; argv[0] = "updater"; argv[1] = "CurrentDir=/path/to/app"; argv[2] = "TempDir=/tmp/updater"; argv[3] = "UpdateScriptFileName=/tmp/updater/file_li...
#include "TestUpdaterOptions.h" #include "TestUtils.h" #include "UpdaterOptions.h" void TestUpdaterOptions::testOldFormatArgs() { const int argc = 6; char* argv[argc]; argv[0] = strdup("updater"); argv[1] = strdup("CurrentDir=/path/to/app"); argv[2] = strdup("TempDir=/tmp/updater"); argv[3] = strdup("UpdateScri...
Fix warnings about conversion from string literal to char*
Fix warnings about conversion from string literal to char* UpdaterOptions::parse() will probably not have a need to modify its arguments but for consistency with the declaration of main() it takes a char*, so strdup() the strings.
C++
bsd-2-clause
zhengw1985/Update-Installer,zhengw1985/Update-Installer,zhengw1985/Update-Installer
5d39ad449a624fdff87cdc06b3843aa25627a246
src/Item_WrapInstance.cc
src/Item_WrapInstance.cc
#include "Item.h" using namespace node; using namespace v8; namespace node_iTunes { // Convenience function that takes an iTunesItem instance (or any subclass) // and wraps it up into the proper JS class type, and returns it. // TODO: Implement some kind of Object Cache, so if the same instance is // attemptin...
#include "Item.h" using namespace node; using namespace v8; namespace node_iTunes { // Convenience function that takes an iTunesItem instance (or any subclass) // and wraps it up into the proper JS class type, and returns it. // TODO: Implement some kind of Object Cache, so if the same instance is // attemptin...
Add support for 'Source' in Item::WrapInstance.
Add support for 'Source' in Item::WrapInstance.
C++
mit
TooTallNate/node-iTunes,TooTallNate/node-iTunes,TooTallNate/node-iTunes
338ded93a3a5b31bad70c58d02c8610eb3c98ebb
src/packet.cpp
src/packet.cpp
#include <cstdio> #include <cstdint> #include <string> #include <memory> #include <list> #include "boost/format.hpp" #include "packet.h" #include "exceptions.h" #include "parser.h" namespace parse4880 { PGPPacket::PGPPacket(std::string contents) : contents_(contents) { } std::shared_ptr<PGPPacket> PGPPacket::Parse...
#include <cstdio> #include <cstdint> #include <string> #include <memory> #include <list> #include "boost/format.hpp" #include "packet.h" #include "exceptions.h" #include "parser.h" namespace parse4880 { PGPPacket::PGPPacket(std::string contents) : contents_(contents) { } std::shared_ptr<PGPPacket> PGPPacket::Parse...
Create UnknownPGPPackets in case of unsupported feature.
Create UnknownPGPPackets in case of unsupported feature.
C++
mit
LachlanGunn/parse4880
1363c86e2f17b1a2742b0d3e13750239a2444ca5
tensorflow/core/platform/default/rocm_rocdl_path.cc
tensorflow/core/platform/default/rocm_rocdl_path.cc
/* Copyright 2018 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 2018 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...
Address potential issues encountered in non-ROCm systems.
Address potential issues encountered in non-ROCm systems.
C++
apache-2.0
adit-chandra/tensorflow,renyi533/tensorflow,chemelnucfin/tensorflow,xzturn/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,p...
adf2a1ad7a4a28bf2d17952a91bd22b72e1bb220
xchainer/python/error.cc
xchainer/python/error.cc
#include "xchainer/python/error.h" #include "xchainer/error.h" #include "xchainer/python/common.h" namespace xchainer { namespace py = pybind11; // standard convention void InitXchainerError(pybind11::module& m) { py::register_exception<XchainerError>(m, "XchainerError"); py::register_exception<DeviceErro...
#include "xchainer/python/error.h" #include "xchainer/error.h" #include "xchainer/python/common.h" namespace xchainer { namespace py = pybind11; // standard convention void InitXchainerError(pybind11::module& m) { py::register_exception<XchainerError>(m, "XchainerError"); py::register_exception<BackendErr...
Add python binding to BackendError
Add python binding to BackendError
C++
mit
niboshi/chainer,hvy/chainer,chainer/chainer,niboshi/chainer,keisuke-umezawa/chainer,okuta/chainer,chainer/chainer,keisuke-umezawa/chainer,niboshi/chainer,jnishi/chainer,jnishi/chainer,hvy/chainer,tkerola/chainer,pfnet/chainer,okuta/chainer,okuta/chainer,ktnyt/chainer,ktnyt/chainer,wkentaro/chainer,ktnyt/chainer,chainer...
5eb92b2c8aa842aa8b14f532a9af08910a66a092
cpp/tests/yosupo-shortest_path.cpp
cpp/tests/yosupo-shortest_path.cpp
#include "../include/graph/dijkstra.cpp" #include "../include/graph/weighted_graph.cpp" #include "../include/others/fast_cin.cpp" #include "../include/others/fast_cout.cpp" using Graph = WeightedGraph<long long>; int main() { int n, m, s, t; fcin >> n >> m >> s >> t; Graph rg(n); for (int i = 0; i < m; ++i) {...
#include "../include/graph/dijkstra.cpp" #include "../include/graph/weighted_graph.cpp" #include "../include/others/fast_cin.cpp" #include "../include/others/fast_cout.cpp" using Graph = WeightedGraph<long long>; int main() { int n, m, s, t; fcin >> n >> m >> s >> t; Graph rg(n); for (int i = 0; i < m; ++i) {...
Remove needless hack for the newest oj version
Remove needless hack for the newest oj version
C++
mit
asi1024/competitive-library,asi1024/ContestLibrary,asi1024/competitive-library,asi1024/competitive-library
64b0d7c7094b990e010e820015a92ac4b2247bb2
src/test/libslic3r/test_printobject.cpp
src/test/libslic3r/test_printobject.cpp
#include <catch.hpp> #include <string> #include "test_data.hpp" #include "libslic3r.h" using namespace Slic3r::Test; using namespace std::literals; SCENARIO("PrintObject: object layer heights") { GIVEN("20mm cube and config that has a 3mm nozzle and a 2mm requested layer height") { auto config {Slic3r::Co...
#include <catch.hpp> #include <string> #include "test_data.hpp" #include "libslic3r.h" using namespace Slic3r::Test; using namespace std::literals; SCENARIO("PrintObject: object layer heights") { GIVEN("20mm cube and config that has a 3mm nozzle and a 2mm requested layer height") { auto config {Slic3r::Co...
Remove some dead code in the printgcode test.
Remove some dead code in the printgcode test.
C++
agpl-3.0
pieis2pi/Slic3r,pieis2pi/Slic3r,curieos/Slic3r,curieos/Slic3r,alexrj/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,curieos/Slic3r,curieos/Slic3r,curieos/Slic3r,alexrj/Slic3r,alexrj/Slic3r,alexrj/Slic3r,curieos/Slic3r,alexrj/Slic3r,alexrj/Slic3r
3896232d6f5e1c089ec064c89985a64ac2ed8b18
src/pic32/ethernetutil.cpp
src/pic32/ethernetutil.cpp
#include "log.h" #include "ethernetutil.h" void initializeEthernet(EthernetDevice* device, Server* server, uint8_t MACAddr[], uint8_t IPAddr[]) { debug("initializing Ethernet..."); device->ptrServer = server; Ethernet.begin(MACAddr, IPAddr); device->ptrServer->begin(); } // The message bytes a...
#include "log.h" #include "ethernetutil.h" void initializeEthernet(EthernetDevice* device, Server* server, uint8_t MACAddr[], uint8_t IPAddr[]) { debug("initializing Ethernet..."); device->ptrServer = server; Ethernet.begin(MACAddr, IPAddr); device->ptrServer->begin(); } // The message bytes a...
Move braces up onto same line as conditional.
Move braces up onto same line as conditional.
C++
bsd-3-clause
openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware
0a2384a92a53473aa7eff2697130433dcc75dc9f
src/ports/SkFontHost_sandbox_none.cpp
src/ports/SkFontHost_sandbox_none.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 "SkFontHost.h" #include "SkTypeface.h" #include "SkTypeface_win.h" //static void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { //No sandbox,...
/* * 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 "SkFontHost.h" #include "SkTypeface.h" //static void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { //No sandbox, nothing to do. }
Remove unneeded include which is breaking build.
Remove unneeded include which is breaking build.
C++
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
36d56073534af25e868df6c959958d25ae828cfe
src/lib/geodata/handlers/kml/KmlRegionTagHandler.cpp
src/lib/geodata/handlers/kml/KmlRegionTagHandler.cpp
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <bastianholst@gmx.de> // #include "KmlRegionTagHandler.h" #inc...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <bastianholst@gmx.de> // #include "KmlRegionTagHandler.h" #inc...
Fix logic error in kml region parsing (region never attached to doc).
Fix logic error in kml region parsing (region never attached to doc). Thanks again to thomasjfox for reporting.
C++
lgpl-2.1
probonopd/marble,oberluz/marble,oberluz/marble,Earthwings/marble,quannt24/marble,rku/marble,AndreiDuma/marble,tucnak/marble,Earthwings/marble,utkuaydin/marble,utkuaydin/marble,David-Gil/marble-dev,AndreiDuma/marble,tzapzoor/marble,utkuaydin/marble,tucnak/marble,probonopd/marble,adraghici/marble,tzapzoor/marble,quannt24...
28f8cb13d4d5a3d6aefa6e192e55f9aa87579e52
src/test/fuzz/decode_tx.cpp
src/test/fuzz/decode_tx.cpp
// Copyright (c) 2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <core_io.h> #include <primitives/transaction.h> #include <test/fuzz/fuzz.h> #include <util/strencodings.h> #include <cas...
// Copyright (c) 2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <core_io.h> #include <primitives/transaction.h> #include <test/fuzz/fuzz.h> #include <util/strencodings.h> #include <cas...
Fix DecodeHexTx fuzzing harness issue
fuzz: Fix DecodeHexTx fuzzing harness issue
C++
mit
rnicoll/dogecoin,rnicoll/dogecoin,MeshCollider/bitcoin,particl/particl-core,ajtowns/bitcoin,mm-s/bitcoin,domob1812/namecore,namecoin/namecoin-core,GroestlCoin/bitcoin,ElementsProject/elements,pataquets/namecoin-core,litecoin-project/litecoin,practicalswift/bitcoin,practicalswift/bitcoin,bitcoinsSG/bitcoin,prusnak/bitco...
c981fcec863edc628064139e03de09c0d1c85fd7
src/mem/st/visitor/DepBuilder.cpp
src/mem/st/visitor/DepBuilder.cpp
#include "mem/st/visitor/DepBuilder.hpp" namespace mem { namespace st { namespace visitor { DepBuilder::DepBuilder () { _name = "st.DepBuilder"; } bool DepBuilder::visit (st::Symbol* sym) { printf("Visit...\n"); if (sym->isClassSymbol()) { visitClass(static_cast<st::Class*>(sym)); } return t...
#include "mem/st/visitor/DepBuilder.hpp" namespace mem { namespace st { namespace visitor { DepBuilder::DepBuilder () { _name = "st.DepBuilder"; } bool DepBuilder::visit (st::Symbol* sym) { if (sym->isClassSymbol()) { visitClass(static_cast<st::Class*>(sym)); } return true; } void DepBuilder::...
Add support for basic ops in LLVM
Add support for basic ops in LLVM
C++
mit
ThQ/memc,ThQ/memc,ThQ/memc,ThQ/memc
db2e216b09cb5c0c3c402aab638d334877abcc4b
tests/metaEvent.cpp
tests/metaEvent.cpp
#include <MetaEvent.h> #include <MetaFactory.h> #include <ratio> namespace test { namespace metaEventSuite { using namespace id::attribute; using namespace std; class MetaEventSuite : public ::testing::Test { public: ID posID = Position::value(); MetaFactory& f=MetaFactory::instance(); MetaEvent e; M...
#include <MetaEvent.h> #include <MetaFactory.h> #include <ratio> namespace test { namespace metaEventSuite { using namespace id::attribute; using namespace std; class MetaEventSuite : public ::testing::Test { public: ID posID = Position::value(); MetaFactory& f=MetaFactory::instance(); MetaEvent e; M...
Add MetaEvent EventType cast test
Unit-Tests: Add MetaEvent EventType cast test
C++
bsd-3-clause
steup/ASEIA,steup/ASEIA
353299a29d3a1847b9bf657fd5478e40cffd5e5e
test/SemaCXX/attr-print.cpp
test/SemaCXX/attr-print.cpp
// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s // FIXME: align attribute print // CHECK: int x __attribute__((aligned(4, 0))); int x __attribute__((aligned(4))); // FIXME: Print this at a valid location for a __declspec attr. // CHECK: int y __declspec(align(4, 1)); __declspec(align(4)) int y; // C...
// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s // FIXME: align attribute print // CHECK: int x __attribute__((aligned(4, 0))); int x __attribute__((aligned(4))); // FIXME: Print this at a valid location for a __declspec attr. // CHECK: int y __declspec(align(4, 1)); __declspec(align(4)) int y; // C...
Add a test case for attribute print.
Add a test case for attribute print. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@173765 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
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-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
f1959ef584a321e40395f893dcf5b1d3dbe79ac4
test/Nullable.cc
test/Nullable.cc
// This file is part of nbind, copyright (C) 2014-2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. #include <cstdio> #include "nbind/api.h" #include "Coord.h" class Nullable { public: static Coord *getCoord() { return(new Coord(60, 25)); } static Coord *getNull() { return(nullptr); } ...
// This file is part of nbind, copyright (C) 2014-2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. #include <cstdio> #include "nbind/api.h" #include "Coord.h" class Nullable { public: static Coord *getCoord() { return(new Coord(60, 25)); } static Coord *getNull() { return(nullptr); } ...
Remove duplicate class from testbench. Otherwise wrong constructor gets run on OS X without any flaw in nbind itself.
Remove duplicate class from testbench. Otherwise wrong constructor gets run on OS X without any flaw in nbind itself.
C++
mit
charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind
cad156e4e6877169893985e10c0d941f241b8884
tiles/main.cc
tiles/main.cc
#include "mdist.hpp" #include "../search/idastar.hpp" #include "../search/astar.hpp" #include "../incl/utils.hpp" #include <cstdio> static void search(TilesMdist &, Search<TilesMdist> &, TilesMdist::State &); int main(int argc, char *argv[]) { TilesMdist d(stdin); // Idastar<TilesMdist, true, true> srch; Astar<Tile...
#include "mdist.hpp" #include "../search/idastar.hpp" #include "../search/astar.hpp" #include "../incl/utils.hpp" #include <cstdio> static void search(TilesMdist&, Search<TilesMdist>&, TilesMdist::State&); static Search<TilesMdist> *getsearch(int, char *[]); int main(int argc, char *argv[]) { TilesMdist d(stdin); S...
Switch search algorithms via command-line arguments.
Switch search algorithms via command-line arguments.
C++
mit
skiesel/search,skiesel/search,eaburns/search,skiesel/search,eaburns/search,eaburns/search
5ff61020af5388a8470bd97ca7ac1800652daf7c
ImageReconstruction/main.cpp
ImageReconstruction/main.cpp
/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable law...
/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable law...
Add SinogramCreatorMC to manager list
Add SinogramCreatorMC to manager list
C++
apache-2.0
JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples
3ce78bf35f848126be4369888eb9a39766b8865e
src/show_message.cc
src/show_message.cc
#include <cstdarg> #include <ncurses.h> static const char* mes = NULL; extern bool showing_message; bool showing_message = false; static void showmes() { int y,x,rows,_; getyx(stdscr,y,x); getmaxyx(stdscr,rows,_); move(rows-1,0); clrtoeol(); printw(mes); move(y,x); } void hook_show_mess...
#include <cstdarg> #include <ncurses.h> static const char* mes = NULL; extern bool showing_message; bool showing_message = false; static void showmes() { int y,x,rows,_; getyx(stdscr,y,x); getmaxyx(stdscr,rows,_); move(rows-1,0); clrtoeol(); printw("%s",mes); move(y,x); } void hook_show...
Use ``%s`` in first arg of ``printw`` to prevent errors
Use ``%s`` in first arg of ``printw`` to prevent errors
C++
mpl-2.0
czipperz/vick,czipperz/vick
9a7bb3c6dbb127c006460290f702f93299eadc24
test/Profile/cxx-virtual-destructor-calls.cpp
test/Profile/cxx-virtual-destructor-calls.cpp
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -main-file-name cxx-virtual-destructor-calls.cpp %s -o - -fprofile-instr-generate | FileCheck %s struct Member { ~Member(); }; struct A { virtual ~A(); }; struct B : A { Member m; virtual ~B(); }; // Complete dtor // CHECK: @__llvm_profile_name_...
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -main-file-name cxx-virtual-destructor-calls.cpp %s -o - -fprofile-instr-generate | FileCheck %s struct Member { ~Member(); }; struct A { virtual ~A(); }; struct B : A { Member m; virtual ~B(); }; // Complete dtor // CHECK: @__llvm_profile_name__ZN1B...
Change this triple back to %itanium_abi_triple
InstrProf: Change this triple back to %itanium_abi_triple In my rush to fix the linux bots in r237805, I accidentally committed a change to the triple. Revert that part. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@237806 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
0bafa9818baafc969359a668245cff7d95268931
lib/CodeGen/Passes.cpp
lib/CodeGen/Passes.cpp
//===-- Passes.cpp - Target independent code generation passes ------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
//===-- Passes.cpp - Target independent code generation passes ------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===--------...
Make linear scan the default
Make linear scan the default git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@15111 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,a...
c0937c1d456022b1cf73e54d74ed5ec3917e5e2b
base/native_library_linux.cc
base/native_library_linux.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/native_library.h" #include <dlfcn.h> #include "base/file_path.h" #include "base/logging.h" namespace base { // static NativeLibrary...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/native_library.h" #include <dlfcn.h> #include "base/file_path.h" #include "base/logging.h" namespace base { // static NativeLibrary...
Use RTLD_DEEPBIND to make sure plugins don't use Chrome's symbols instead of their own
Use RTLD_DEEPBIND to make sure plugins don't use Chrome's symbols instead of their own Review URL: http://codereview.chromium.org/112030 Patch from Antoine Labour <piman@google.com>. git-svn-id: http://src.chromium.org/svn/trunk/src@16278 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 8633e5e7c36b36faa44204e...
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...
5cfab349c804536ffa6e3186a7ead0fb0c382f19
topcoder/SRM/147/CCipher/main.cpp
topcoder/SRM/147/CCipher/main.cpp
#include<string> using namespace std; class CCipher { public: string decode(string cipherText, int shift) { string orig; for (char c : cipherText) { orig += 'A' + (c - 'A' - shift) % 26 ; //orig.append(); } return orig; } };
#include<cassert> #include<string> using namespace std; class CCipher { public: string decode(string cipherText, int shift) { string orig; for (char c : cipherText) { orig += 'A' + (c - 'A' - shift + 26) % 26 ; } return orig; } }; int main() { CCipher cc; assert(cc.decode("ABCDEFGHIJKLMN...
Fix SRM 147, Div 2, Problem CCipher
Fix SRM 147, Div 2, Problem CCipher - previously without system test checks - plus length of alphabet, in case of negative shifted index
C++
mit
mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming
8e858e99a3dcbcab799cbfbd15888fe72c8f224d
test/CXX/drs/dr412.cpp
test/CXX/drs/dr412.cpp
// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT="throw()" -DBAD_ALLOC="throw(std::bad_alloc)" // RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC= // RUN: %clang_cc1 -std=c++1y %s -verify -fexceptions ...
// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT="throw()" -DBAD_ALLOC="throw(std::bad_alloc)" // RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC= // RUN: %clang_cc1 -std=c++1y %s -verify -fexceptions ...
Remove unused variable from test.
Remove unused variable from test. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@204051 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
becfbca0fb6dc55e83ceacdb4cc355e442ded997
source/loader/linux/driver_discovery_lin.cpp
source/loader/linux/driver_discovery_lin.cpp
/* * * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "source/loader/driver_discovery.h" #include "source/inc/ze_util.h" namespace loader { static const char *knownDriverNames[] = { MAKE_LIBRARY_NAME("ze_intel_gpu", "1"), }; std::vector<DriverLibraryPath> discoverEnab...
/* * * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "source/loader/driver_discovery.h" #include "source/inc/ze_util.h" #include <iostream> #include <sstream> #include <string> namespace loader { static const char *knownDriverNames[] = { MAKE_LIBRARY_NAME("ze_intel_gp...
Add environment variable for alternate drivers
Add environment variable for alternate drivers Signed-off-by: davidoli <e17d874a9837084fa613f4cf2a73bcec0a2fe1c1@intel.com>
C++
mit
oneapi-src/level-zero,oneapi-src/level-zero,oneapi-src/level-zero
029ee9aa1e9858ddda2e0ddd2e491fca20ce102c
atom/common/api/atom_api_screen.cc
atom/common/api/atom_api_screen.cc
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/native_mate_converters/gfx_converter.h" #include "atom/common/node_includes.h" namespace { void Initialize(v8::Handle<v8::Object> exports, v8::Handle<v8::Value>...
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/native_mate_converters/gfx_converter.h" #include "atom/common/node_includes.h" namespace { void Initialize(v8::Handle<v8::Object> exports, v8::Handle<v8::Value>...
Add a few more API bindings
Add a few more API bindings
C++
mit
tonyganch/electron,nekuz0r/electron,cos2004/electron,kenmozi/electron,webmechanicx/electron,bobwol/electron,shockone/electron,Jacobichou/electron,sircharleswatson/electron,kikong/electron,mattdesl/electron,yan-foto/electron,stevekinney/electron,renaesop/electron,systembugtj/electron,jlord/electron,adcentury/electron,ad...
51abac1f2cbc10cf1bf38727e05ea9716b4c79a3
test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp
test/CodeGenCXX/2006-11-20-GlobalSymbols.cpp
// PR1013 // Check to make sure debug symbols use the correct name for globals and // functions. Will not assemble if it fails to. // RUN: %clang_cc1 -emit-llvm -g -o - %s | FileCheck %s // CHECK: @"\01f\01oo" int foo __asm__("f\001oo"); int bar() { return foo; }
// PR1013 // Check to make sure debug symbols use the correct name for globals and // functions. Will not assemble if it fails to. // RUN: %clang_cc1 -emit-llvm -g -o - %s | FileCheck %s // CHECK: f\01oo" int foo __asm__("f\001oo"); int bar() { return foo; }
Modify the check line to be happier on windows.
Modify the check line to be happier on windows. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@138152 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/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-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
62d5b5c4fcf61292973f70a85c238c5e802e4727
build/print_sm_version.cpp
build/print_sm_version.cpp
#include <cuda_runtime_api.h> #include <stdio.h> int main(void) { int num_devices = 0; cudaGetDeviceCount(&num_devices); if(num_devices > 0) { cudaDeviceProp properties; cudaGetDeviceProperties(&properties, 0); printf("--gpu-architecture=sm_%d%d", properties.major, properties.minor); return 0; ...
#include <cuda_runtime_api.h> #include <stdio.h> #include <stdlib.h> void usage(const char *name) { printf("usage: %s [device_id]\n", name); } int main(int argc, char **argv) { int num_devices = 0; int device_id = 0; if(argc == 2) { device_id = atoi(argv[1]); } else if(argc > 2) { usage(argv[0...
Add an optional device_id command line argument.
Add an optional device_id command line argument. --HG-- extra : convert_revision : svn%3A83215879-3e5a-4751-8c9d-778f44bb06a5/trunk%40345
C++
apache-2.0
thvasilo/thrust,jaredhoberock/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrust,arnabgho/thrust,jaredhoberock/thrust,thvasilo/thrust,GrimDerp/thrust,jaredhoberock/thrust,sarvex/thrust,sarvex/thrust,thrust/thrust,sdalton1/thrust,thrust/thrust,dachziegel/thrust,xiongzhanblake/thrust,raygit/thru...
958b058e59f4c05a37c58efed9d524bc425fb922
test/Index/pch-warn-as-error-code-split.cpp
test/Index/pch-warn-as-error-code-split.cpp
// RUN: CINDEXTEST_EDITING=1 c-index-test -test-load-source local %s -Wuninitialized -Werror=unused 2>&1 | FileCheck -check-prefix=DIAGS %s // Make sure -Wuninitialized works even though the header had a warn-as-error occurrence. // DIAGS: error: unused variable 'x' // DIAGS: warning: variable 'x1' is uninitialized /...
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source local %s -Wuninitialized -Werror=unused 2>&1 | FileCheck -check-prefix=DIAGS %s // Make sure -Wuninitialized works even though the header had a warn-as-error occurrence. // DIAGS: error: unused variable 'x' // DIAGS: warning: variable 'x1' is uninitializ...
Add 'env' to fix test failures in windows bots.
[test] Add 'env' to fix test failures in windows bots. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@275324 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang
1de11c4271efaff850d25b67cf3f3252350e7796
lib/putnum.tas.cpp
lib/putnum.tas.cpp
#include "common.th" .global putnum // putnum takes number in C, (row,col) in D,E, and field width in F putnum: pushall(h,i,j,k,l,m) h <- 0x100 h <- h << 8 // h is video base k <- d * 80 + e // k is offset into display k <- k + f // start at right side of field i <- rel...
#include "common.th" .global putnum // putnum takes number in C, (row,col) in D,E, and field width in F putnum: pushall(h,i,j,k,l,m) h <- 0x10000 // h is video base k <- d * 80 + e // k is offset into display k <- k + f // start at right side of field i <- rel(hexes) // ...
Use type3 to simplify expressions
Use type3 to simplify expressions
C++
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
223da8c197de75eced90c5e59bf746542a2d1e14
views/events/event_aura.cc
views/events/event_aura.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 "views/events/event.h" #include "base/logging.h" #include "ui/aura/event.h" namespace views { ////////////////////////////////////////////...
// 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 "views/events/event.h" #include "base/logging.h" #include "ui/aura/event.h" namespace views { ////////////////////////////////////////////...
Fix the KeyEvent unit test failure due to the aura implementation of GetUnmodifiedCharacter().
Fix the KeyEvent unit test failure due to the aura implementation of GetUnmodifiedCharacter(). BUG=99129 TEST=NONE Review URL: http://codereview.chromium.org/8286006 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@105549 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,ropik/chromium,r...
b81eab4875022876e78d3b8ac8be666d5af8c120
src/main.cpp
src/main.cpp
// Nikita Kouevda // 2013/11/04 #include <iostream> #include "prime.hpp" using namespace std; int main(int argc, char *argv[]) { int i, n; char *endptr; if (argc < 2) { cerr << "usage: prime number ..." << endl; return 1; } for (i = 1; i < argc; ++i) { n = strtol(argv[i], &endptr, 10); ...
// Nikita Kouevda // 2013/11/04 #include <cstdlib> #include <iostream> #include "prime.hpp" using namespace std; int main(int argc, char *argv[]) { int i, n; char *endptr; if (argc < 2) { cerr << "usage: prime number ..." << endl; return 1; } for (i = 1; i < argc; ++i) { n = strtol(argv[i], ...
Include cstdlib just in case.
Include cstdlib just in case.
C++
mit
nkouevda/prime,nkouevda/prime
ebd1af5a1bfd4b65b07d33a186c4874fd841b917
mopViewer/main.cpp
mopViewer/main.cpp
#include <curses.h> #include <iostream> #include "mopViewer.h" #include <string> int main() { mopViewer mopViewers; std::string fileName; int skipCount; std::cout << "Enter the MopFile Name (No need to use extension/location: "; std::cin >> fileName; std::cout << std::...
#include <curses.h> #include <iostream> #include "mopViewer.h" #include <string> int main() { mopViewer mopViewers; std::string fileName; int skipCount; std::cout << "Enter the MopFile Name (No need to use extension/location: "; std::cin >> fileName; std::cout << std::...
Add some minor error checking
Add some minor error checking
C++
apache-2.0
Afrostie/Mopviewer
3eaa42fce4db3ac80555ac958deb447c5e0c291d
test/FetchTests.cpp
test/FetchTests.cpp
#include <catch.hpp> #include <chi/Context.hpp> #include <chi/DataType.hpp> #include <chi/LangModule.hpp> #include <chi/NodeType.hpp> #include <chi/Support/Result.hpp> #include <chi/Fetcher/Fetcher.hpp> #include <llvm/IR/DerivedTypes.h> using namespace chi; namespace fs = boost::filesystem; TEST_CASE("Contexts can ...
#include <catch.hpp> #include <chi/Context.hpp> #include <chi/DataType.hpp> #include <chi/LangModule.hpp> #include <chi/NodeType.hpp> #include <chi/Support/Result.hpp> #include <chi/Fetcher/Fetcher.hpp> #include <llvm/IR/DerivedTypes.h> using namespace chi; namespace fs = boost::filesystem; TEST_CASE("Contexts can ...
Fix test because repo moved
Fix test because repo moved
C++
apache-2.0
chigraph/chigraph,GuapoTaco/chigraph,russelltg/chigraph,russelltg/chigraph,GuapoTaco/chigraph,chigraph/chigraph,chigraph/chigraph
7683d89ab06eec69e4508a7fa527373b63f546a4
SieloNavigateur/src/SWidgets/SSearchArea.cpp
SieloNavigateur/src/SWidgets/SSearchArea.cpp
#include "includes/SWidgets/SSearchArea.hpp" #include "includes/SMainWindow.hpp" SSearchArea::SSearchArea(const QIcon & icon, SMainWindow * parent) : QLineEdit(parent), m_parent(parent), m_icon(icon) { setTextMargins(18, 0, 0, 0); connect(this, &SSearchArea::returnPressed, this, &SSearchArea::loadSearch...
#include "includes/SWidgets/SSearchArea.hpp" #include "includes/SMainWindow.hpp" SSearchArea::SSearchArea(const QIcon & icon, SMainWindow * parent) : QLineEdit(parent), m_parent(parent), m_icon(icon) { setTextMargins(18, 0, 0, 0); connect(this, &SSearchArea::returnPressed, this, &SSearchArea::loadSearch...
UPDATE the style of the search bar
UPDATE the style of the search bar
C++
mit
Feldrise/Sielo-NavigateurV3-WebEngine
bafab32577afa00cf8f09a689f3fe63ac71c713e
test/test-0.cpp
test/test-0.cpp
#include "Course.h" #include <iostream> using namespace std; int main() { // test instantiation of a Course object. cout << "Testing instantiation of a Course object:" << endl; Course course("test-0"); cout << "Created " << course.getName() << endl; cout << "All Assignments:" << endl; for (auto it : co...
#include "Course.h" #include <cstdio> #include <iostream> using namespace std; int main() { if (remove("test-0.sqlite") != 0) { cout << "Error with deletion of database file\n"; } else { cout << "Database file successfully deleted\n"; } // test instantiation of a Course object. cout << "Testing in...
Remove database file before Course instantiation
Remove database file before Course instantiation
C++
mit
honestcomrade/grade-plus
c51c6b2731544259e00bdf46ba43a26f1aed881c
media/base/closure_thread.cc
media/base/closure_thread.cc
// Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "media/base/closure_thread.h" namespace media { ClosureThread::ClosureThread( const...
// Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "media/base/closure_thread.h" namespace media { ClosureThread::ClosureThread( const...
Fix ClosureThread unittest crash in release build
Fix ClosureThread unittest crash in release build The crash happens if the thread is created but never started. An improper Join triggered the crash. We should not call Join if the thread is not started. Change-Id: Icace740889089d3b2e15cf6c76c2b0887eb84535
C++
bsd-3-clause
nevil/edash-packager,leandromoreira/edash-packager,leandromoreira/edash-packager,nevil/edash-packager,leandromoreira/edash-packager,leandromoreira/edash-packager,leandromoreira/edash-packager,nevil/edash-packager
cb23389d987b5e8c869cb4c7f7816691145eb2f4
test/loadtest.cpp
test/loadtest.cpp
#include "catch.hpp" #include "library.hpp" #include <functional> namespace { #ifdef _WIN32 const std::string testlibname("testlib.dll"); #else const std::string testlibname("libtestlib.so"); #endif } SCENARIO("Loading a shared library") { GIVEN("library is loaded successfully") { loader::Library lib(testlibname...
#include "catch.hpp" #include "library.hpp" #include <functional> namespace { #ifdef _WIN32 const std::string testlibname("testlib.dll"); #else const std::string testlibname("libtestlib.so"); #endif } SCENARIO("Loading a shared library") { GIVEN("library is loaded successfully") { loader::Library lib(testlibname...
Use bool operator instead of null-check for std::function
Use bool operator instead of null-check for std::function
C++
mit
p0iz/loader
b0f2a9778e4d225b7faecb7b048d7f28b413e182
src/tcframe/runner.cpp
src/tcframe/runner.cpp
#include "tcframe/aggregator.hpp" #include "tcframe/evaluator.hpp" #include "tcframe/generator.hpp" #include "tcframe/grader.hpp" #include "tcframe/os.hpp" #include "tcframe/runner.hpp" #include "tcframe/spec.hpp" #include __TCFRAME_SPEC_FILE__ using tcframe::Runner; int main(int argc, char* argv[]) { Runner<Pro...
#include "tcframe/runner.hpp" #include __TCFRAME_SPEC_FILE__ using tcframe::Runner; int main(int argc, char* argv[]) { Runner<ProblemSpec> runner( __TCFRAME_SPEC_FILE__, new TestSpec(), new SimpleLoggerEngine(), new OperatingSystem(), new RunnerLoggerFa...
Use only single header in main file
Use only single header in main file So that we can precompile it.
C++
mit
fushar/tcframe,tcframe/tcframe,tcframe/tcframe,ia-toki/tcframe,fushar/tcframe,ia-toki/tcframe
32cadeca4aa09f159e24d7d6b0c6e2d8a04b3bf2
vortex/vortex.cpp
vortex/vortex.cpp
#include "include/vortex.hpp" #include "include/app.hpp" #include "include/logger.hpp" #include "common_def_priv.hpp" #include <memory> namespace vtx { struct PRIVATE_STRUCT_NAME(Vortex) { std::unique_ptr<Application> m_application; }; void Vortex::setApplication(Application &&app) { m_private->m_applicati...
#include "include/vortex.hpp" #include "include/app.hpp" #include "include/logger.hpp" #include "common_def_priv.hpp" #include <memory> namespace vtx { struct PRIVATE_STRUCT_NAME(Vortex) { std::unique_ptr<Application> m_application; }; void Vortex::setApplication(Application &&app) { m_private->m_applicati...
Check that an application has been set
Check that an application has been set
C++
mit
LeDYoM/sgh
b6a27c74707ab2ae48347663f6eef02f2b20f6ed
src/game.cpp
src/game.cpp
#include <iostream> #include "Room.h" #include "XMLParser.cpp" int main() { Room current_room; current_room.loadFromXMLFile("Speelveld1.0.xml"); current_room.loadMovesFromXMLFile("Bewegingen1.0.xml"); current_room.executeAllMoves("HuidigSpeelveld.txt", "ResterendeBewegingen.txt"); return 0; }
#include <iostream> #include "Room.h" #include "XMLParser.cpp" int main() { Room current_room; current_room.loadFromXMLFile("xmlfiles/Speelveld1.0.xml"); current_room.loadMovesFromXMLFile("xmlfiles/Bewegingen1.0.xml"); current_room.executeAllMoves("HuidigSpeelveld.txt", "ResterendeBewegingen.txt"); return 0...
Set xml files to moved files
Set xml files to moved files
C++
mit
Squarific/Project-Arcade,Squarific/Project-Arcade,Squarific/Project-Arcade,Squarific/Project-Arcade,Squarific/Project-Arcade
175fb05eaa9f60c4a4a2405034b8d993be44a55a
src/main.cpp
src/main.cpp
#include <QCoreApplication> #include "Network/NetworkBalancer.hpp" int main(int argc, char *argv[]) { Network::NetworkBalancer aBalancerExample = Network::NetworkBalancer(); return( 0 ); }
#include <QCoreApplication> #include "Tests/Unit/Network/TestNetworkBalancer.hpp" #include <cppunit/extensions/HelperMacros.h> #include <cppunit/ui/text/TestRunner.h> using namespace std; using namespace CppUnit; int main(int argc, char *argv[]) { // Initialice test runner CppUnit::TextUi::TestRunner aRunner...
Test Runner added to check the NetworkBalancer class
Test Runner added to check the NetworkBalancer class
C++
unlicense
magfernandez/TIDTest
cd540e639e8f09851b71a11a1826596916eca1fe
src/geom/Coordinate.cpp
src/geom/Coordinate.cpp
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licenc...
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licenc...
Use 18 significant digits for TopologyException point coordinates
Use 18 significant digits for TopologyException point coordinates git-svn-id: 6c2b1bd10c324c49ea9d9e6e31006a80e70507cb@3522 5242fede-7e19-0410-aef8-94bd7d2200fb
C++
lgpl-2.1
rkanavath/libgeos,gtourkas/libgeos,WillieMaddox/libgeos,strk/libgeos,kyroskoh/libgeos,CartoDB/libgeos,mwtoews/libgeos,strk/libgeos,kyroskoh/libgeos,CartoDB/libgeos,gtourkas/libgeos,mwtoews/libgeos,gtourkas/libgeos,WillieMaddox/libgeos,gtourkas/libgeos,libgeos/libgeos,WillieMaddox/libgeos,strk/libgeos,WillieMaddox/libge...
945722da64a65c8b0a24dcc341daab99e441b3a9
platforms/linux/src/main.cpp
platforms/linux/src/main.cpp
#include "glfwApp.h" #include "linuxPlatform.h" #include "log.h" #include "map.h" #include <memory> #include <signal.h> #include <stdlib.h> using namespace Tangram; int main(int argc, char* argv[]) { auto platform = std::make_shared<LinuxPlatform>(); // Create the windowed app. GlfwApp::create(platform,...
#include "glfwApp.h" #include "linuxPlatform.h" #include "log.h" #include "map.h" #include <memory> #include <limits.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> using namespace Tangram; int main(int argc, char* argv[]) { auto platform = std::make_shared<LinuxPlatform>(); // Create the win...
Fix linux base URL for demo executable
Fix linux base URL for demo executable
C++
mit
cleeus/tangram-es,cleeus/tangram-es,tangrams/tangram-es,cleeus/tangram-es,tangrams/tangram-es,cleeus/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,tangrams/tangram-es,cleeus/tangram-es,cleeus/tangram-es,tangrams/tangram-es
7055332a9473adac00996b00e9115d9d04874f8e
remoting/host/capturer.cc
remoting/host/capturer.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 "remoting/host/capturer.h" namespace remoting { Capturer::Capturer() : width_(0), height_(0), pixel_format_(PixelFormatInva...
// 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 "remoting/host/capturer.h" namespace remoting { Capturer::Capturer() : width_(0), height_(0), pixel_format_(PixelFormatInva...
Fix undefined assignment evaluation order in remoting::Capturer::FinishCapture.
Coverity: Fix undefined assignment evaluation order in remoting::Capturer::FinishCapture. CID=10878 BUG=none TEST=builds Review URL: http://codereview.chromium.org/2847010 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@50012 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/c...
44fa96b817da339e27e60b30f4b8354f952f0d74
src/boxmuller.cpp
src/boxmuller.cpp
#include "test.h" #include "lcg.h" #include <cassert> #include <limits> template <class T> void boxmuller(T* data, size_t count) { assert(count % 2 == 0); static const T twopi = T(2.0 * 3.14159265358979323846); LCG r; for (size_t i = 0; i < count; i += 2) { T u1, u2; do { u1 = r(); ...
#include "test.h" #include "lcg.h" #include <cassert> #include <limits> #include <algorithm> template <class T> void boxmuller(T* data, size_t count) { assert(count % 2 == 0); static const T twopi = T(2.0 * 3.14159265358979323846); LCG r; for (size_t i = 0; i < count; i += 2) { T u1, u2; u1 = r();...
Use minimum instead of do-while in Box-Muller
Use minimum instead of do-while in Box-Muller
C++
mit
miloyip/normaldist-benchmark,miloyip/normaldist-benchmark,miloyip/normaldist-benchmark,miloyip/normaldist-benchmark,miloyip/normaldist-benchmark
0baccec10148424dccbd1f8a8cd68e5595874147
tests/qtreportslib_tests/main.cpp
tests/qtreportslib_tests/main.cpp
#include <QCoreApplication> #include <QTest> #include "test_engine.hpp" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QTest::qExec( new Test_Engine, argc, argv ); return a.exec(); }
#include <QApplication> #include <QTest> #include "test_engine.hpp" int main( int argc, char *argv[] ) { QApplication a( argc, argv ); QTest::qExec( new Test_Engine, argc, argv ); return a.exec(); }
Replace QCoreApplication to QAppliation for QWidget work.
Replace QCoreApplication to QAppliation for QWidget work.
C++
mit
PO-21/QtReports,PO-21/QtReports,PO-21/QtReports
207cf8b75102a4638dac6221a59c3779f1b37859
tests/test_114.cpp
tests/test_114.cpp
#include <tiramisu/tiramisu.h> using namespace tiramisu; void gen(std::string name, int size, int val0, int val1) { tiramisu::init(name); tiramisu::function *function0 = global::get_implicit_function(); tiramisu::constant N("N", tiramisu::expr((int32_t) size), p_int32, true, NULL, 0, &function0); t...
#include <tiramisu/tiramisu.h> using namespace tiramisu; void gen(std::string name, int size, int val0, int val1) { tiramisu::init(name); tiramisu::function *function0 = global::get_implicit_function(); tiramisu::constant N("N", tiramisu::expr((int32_t) size), p_int32, true, NULL, 0, function0); ti...
Add support for implicit function
Add support for implicit function
C++
mit
rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/COLi,rbaghdadi/tiramisu
623acefa4c454be495ea1f6feb7d90f5dfb8098c
MultidropBusProtocol/examples/simple/master_node/main.cpp
MultidropBusProtocol/examples/simple/master_node/main.cpp
/*----------------------------------------*/ // Test sending messages from master. // // In this script, master sends a message (command = 0x01) // with alternating 0s and 1s for each node on the bus. // /*----------------------------------------*/ #include <stdint.h> #include <util/delay.h> #include "MultidropMaster...
/*----------------------------------------*/ // Test sending messages from master. // // In this script, master sends a message (command = 0x01) // with alternating 0s and 1s for each node on the bus. // /*----------------------------------------*/ #include <stdint.h> #include <util/delay.h> #include "MultidropMaster...
Rearrange code to be clearer
Rearrange code to be clearer
C++
mit
jgillick/AVR-Libs,jgillick/AVR-Libs
4011e5adee45aabe3425c97f63e559adda50b8a2
path/PathToImage.cpp
path/PathToImage.cpp
/*! \file PathToImage.cpp * \author Jared Hoberock * \brief Implementation of PathToImage class. */ #include "PathToImage.h" void PathToImage ::evaluate(const PathSampler::Result &r, const PathSampler::HyperPoint &x, const Path &xPath, float &u, f...
/*! \file PathToImage.cpp * \author Jared Hoberock * \brief Implementation of PathToImage class. */ #include "PathToImage.h" void PathToImage ::evaluate(const PathSampler::Result &r, const PathSampler::HyperPoint &x, const Path &xPath, float &u, f...
Allow mapping for paths with no eye subpath.
Allow mapping for paths with no eye subpath. git-svn-id: eeeef91d721e48f02083ec31b1220ddf564a51e4@1055 3bb10773-34f4-0310-b88c-ec9d511ba0d9
C++
apache-2.0
jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham
a5f813b6ea18e76daf374457578ec6ea32724c86
src/material/blinn_phong.cpp
src/material/blinn_phong.cpp
#include <cmath> #include "lights/light.h" #include "material/blinn_phong.h" BlinnPhong::BlinnPhong(const Colorf &diffuse, const Colorf &specular, float gloss) : diffuse(diffuse), specular(specular), gloss(gloss) {} Colorf BlinnPhong::shade(const Ray &r, const HitInfo &hitinfo, const LightCache &lights) const { Colo...
#include <cmath> #include "lights/light.h" #include "material/blinn_phong.h" BlinnPhong::BlinnPhong(const Colorf &diffuse, const Colorf &specular, float gloss) : diffuse(diffuse), specular(specular), gloss(gloss) {} Colorf BlinnPhong::shade(const Ray &r, const HitInfo &hitinfo, const LightCache &lights) const { Colo...
Fix some issue with coloring of specular highlights
Fix some issue with coloring of specular highlights
C++
mit
Twinklebear/tray,Twinklebear/tray
db1941bad0165969a339f97dcf11b1f9415e5c7a
cirkit_unit03_driver/src/cirkit_unit03_driver_node.cpp
cirkit_unit03_driver/src/cirkit_unit03_driver_node.cpp
/****************************************************** * This is CIR-KIT 3rd robot control driver. * Author : Arita Yuta(Kyutech) ******************************************************/ #include "cirkit_unit03_driver.hpp" #include <string> int main(int argc, char** argv) { ros::init(argc, argv, "cirkit_unit03_d...
/****************************************************** * This is CIR-KIT 3rd robot control driver. * Author : Arita Yuta(Kyutech) ******************************************************/ #include "cirkit_unit03_driver.hpp" #include <string> #include <utility> int main(int argc, char** argv) { ros::init(argc, arg...
Add include file is utility
Add include file is utility もしROSがutilityをインクルードしなくなってもコンパイルが通るように。 いやまあ、ありえないけど、こういう気遣いも大切かとおもう。
C++
bsd-3-clause
CIR-KIT-Unit03/cirkit_unit03_robot,CIR-KIT-Unit03/cirkit_unit03_robot
c29e11317ef4a3bddf4b1916f1fe10ad2b28c3f9
test/Profile/cxx-virtual-destructor-calls.cpp
test/Profile/cxx-virtual-destructor-calls.cpp
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -main-file-name cxx-virtual-destructor-calls.cpp %s -o - -fprofile-instrument=clang | FileCheck %s struct Member { ~Member(); }; struct A { virtual ~A(); }; struct B : A { Member m; virtual ~B(); }; // Base dtor counters and profile data // CHECK: @_...
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -main-file-name cxx-virtual-destructor-calls.cpp %s -o - -fprofile-instrument=clang | FileCheck %s struct Member { ~Member(); }; struct A { virtual ~A(); }; struct B : A { Member m; virtual ~B(); }; // Base dtor // CHECK: @__profn__ZN1BD2Ev = private...
Revert "[profiling] Update test case to deal with name variable change (NFC)"
Revert "[profiling] Update test case to deal with name variable change (NFC)" This reverts commit r295085, because the corresponding llvm change was reverted. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@295100 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
39d66d0688f12c069041d3e1b2f1b1d82221c7e8
src/osgSim/BlinkSequence.cpp
src/osgSim/BlinkSequence.cpp
//C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield // Distributed under the terms of the GNU General Public License (GPL) // as published by the Free Software Foundation. // // All software using osgSim must be GPL'd or excempted via the // purchase of the Open Scene Graph Professional...
//C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield // Distributed under the terms of the GNU General Public License (GPL) // as published by the Free Software Foundation. // // All software using osgSim must be GPL'd or excempted via the // purchase of the Open Scene Graph Professional...
Fix for compile problems under IRIX.
Fix for compile problems under IRIX.
C++
lgpl-2.1
XiaoCC/osg,stmh/osg,stmh/osg,XiaoCC/osg,omega-hub/osg,koshman86/osg,artoolkit/osg,XiaoCC/osg,omega-hub/osg,omega-hub/osg,XiaoCC/osg,koshman86/osg,ntoand/osg,ntoand/osg,koshman86/osg,ghub/osg,ghub/osg,stmh/osg,ntoand/osg,artoolkit/osg,koshman86/osg,artoolkit/osg,stmh/osg,omega-hub/osg,ghub/osg,artoolkit/osg,ghub/osg,Xia...
66622dcf1ba2ff35c2dcec2bbce09f8faceb5613
tester/math/equationTest.cpp
tester/math/equationTest.cpp
/** * @file equationTest.cpp * @brief equation header tester. * @author zer0 * @date 2016-08-26 */ #include <gtest/gtest.h> #include <libtbag/math/equation.hpp> using namespace libtbag; using namespace libtbag::math; TEST(equationTest, getLinearEquationWithTwoPoint) { auto e = getLinearEquationWithTwoP...
/** * @file equationTest.cpp * @brief equation header tester. * @author zer0 * @date 2016-08-26 */ #include <gtest/gtest.h> #include <libtbag/math/equation.hpp> using namespace libtbag; using namespace libtbag::math; TEST(equationTest, getLinearEquationWithTwoPoint) { auto e = getLinearEquationWithTwoP...
Fix the ASSERT_NEAR() parameter bug.
Fix the ASSERT_NEAR() parameter bug.
C++
mit
osom8979/tbag,osom8979/tbag,osom8979/tbag,osom8979/tbag,osom8979/tbag
2fb235d4faede13fea5f18fea7683d9815f310a9
chrome/browser/extensions/extension_websocket_apitest.cc
chrome/browser/extensions/extension_websocket_apitest.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/logging.h" #include "base/path_service.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/logging.h" #include "base/path_service.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_paths...
Disable ExtensionApiTest.WebSocket instead of marked as FAILS_
Disable ExtensionApiTest.WebSocket instead of marked as FAILS_ BUG=111165 TEST=none TBR=hbono@chromium.org Review URL: https://chromiumcodereview.appspot.com/9117027 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@118821 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,ondra-novak/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,Jonekee/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk-efl,rogerwang/chromium,patrickm/chromium.src,mohamed--abdel-maksoud/ch...
e7744358da35dd6abd846cfb1bfd62910c6f9f1a
src/Tests/NativeTestLibrary/dllmain.cpp
src/Tests/NativeTestLibrary/dllmain.cpp
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" #include "commctrl.h" #include "accctrl.h" #include "shellapi.h" #include "shlobj.h" #include "aclapi.h" #include "lm.h" #include "d2d1.h" #include "dwrite.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call,...
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" #include "commctrl.h" #include "accctrl.h" #include "shellapi.h" #include "shlobj.h" #include "aclapi.h" #include "lm.h" #include "d2d1.h" #include "dwrite.h" #include "richedit.h" #include "shlwapi.h" #include "uxtheme.h" #include "M...
Add a few more headers to the native test project
Add a few more headers to the native test project
C++
mit
JeremyKuhne/WInterop,JeremyKuhne/WInterop,JeremyKuhne/WInterop,JeremyKuhne/WInterop
f576d5299c27a25e11522043aadc11487eb74a88
src/lib/geodata/scene/GeoSceneGeodata.cpp
src/lib/geodata/scene/GeoSceneGeodata.cpp
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2011 Utku Aydın <utkuaydin34@gmail.com> // #include "GeoSceneGeodata.h" #include "GeoSc...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2011 Utku Aydın <utkuaydin34@gmail.com> // #include "GeoSceneGeodata.h" #include "GeoSc...
Fix compiler warning (moc has nothing to generate)
Fix compiler warning (moc has nothing to generate) svn path=/trunk/KDE/kdeedu/marble/; revision=1213525
C++
lgpl-2.1
utkuaydin/marble,AndreiDuma/marble,Earthwings/marble,adraghici/marble,probonopd/marble,tucnak/marble,oberluz/marble,oberluz/marble,probonopd/marble,Earthwings/marble,tzapzoor/marble,tzapzoor/marble,tucnak/marble,rku/marble,quannt24/marble,utkuaydin/marble,utkuaydin/marble,utkuaydin/marble,adraghici/marble,AndreiDuma/ma...
c29d38db340b0d375b90474d1e67cca65a60be86
chromium_src/chrome/browser/printing/print_error_dialog.cc
chromium_src/chrome/browser/printing/print_error_dialog.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/printing/print_error_dialog.h" namespace chrome { void ShowPrintErrorDialog() {} } // namespace chrome
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/printing/print_error_dialog.h" void ShowPrintErrorDialog() {}
Move chrome/browser/printing out of the chrome namespace
Move chrome/browser/printing out of the chrome namespace https://crrev.com/787046bf5046
C++
mit
brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron,brave/muon,brave/electron,brave/muon
f31036d8a5b3e16c6ac442db6cde43f93767820c
base/check_test.cpp
base/check_test.cpp
// Copyright (c) 2011 Timur Iskhodzhanov and MIPT students. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gtest/gtest.h" #include "base/common.h" TEST(CheckTest, CheckTrueSucceedsTest) { CHECK(1); CHECK(42); } TEST(CheckTes...
// Copyright (c) 2011 Timur Iskhodzhanov and MIPT students. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gtest/gtest.h" #include "base/common.h" TEST(CheckTest, CheckTrueSucceedsTest) { CHECK(1); CHECK(42); } TEST(CheckTes...
Revert r247, unbreak the build
Revert r247, unbreak the build
C++
bsd-3-clause
denfromufa/mipt-course,denfromufa/mipt-course,denfromufa/mipt-course,denfromufa/mipt-course
780cd1ec58b08b1e77480d9f363c0a212c710038
ImWindowOGL/ImwWindowManagerOGL.cpp
ImWindowOGL/ImwWindowManagerOGL.cpp
#include "ImwWindowManagerOGL.h" #include "ImwPlatformWindowOGL.h" #include "windows.h" using namespace ImWindow; ImwWindowManagerOGL::ImwWindowManagerOGL() { } ImwWindowManagerOGL::~ImwWindowManagerOGL() { Destroy(); } ImwPlatformWindow* ImwWindowManagerOGL::CreatePlatformWindow(EPlatformWindowType eType, ImwPla...
#include "ImwWindowManagerOGL.h" #include "ImwPlatformWindowOGL.h" #include "windows.h" using namespace ImWindow; ImwWindowManagerOGL::ImwWindowManagerOGL() { } ImwWindowManagerOGL::~ImwWindowManagerOGL() { Destroy(); } ImwPlatformWindow* ImwWindowManagerOGL::CreatePlatformWindow(EPlatformWindowType eType, ImwPla...
Fix warnings in OpenGL backend
Fix warnings in OpenGL backend
C++
mit
thennequin/ImWindow,thennequin/ImWindow,thennequin/ImWindow
d7dc238f388a9f34110530422c2ca55b26e6267b
src/ltac/Register.cpp
src/ltac/Register.cpp
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
Complete printing of SP/BP registers
Complete printing of SP/BP registers
C++
mit
vogelsgesang/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic,wichtounet/eddic,wichtounet/eddic
1229a277f30ee485f699d9f94f802777c99d369e
tests/source/generator/WhiteNoiseGenerator.cpp
tests/source/generator/WhiteNoiseGenerator.cpp
#include "aquila/global.h" #include "aquila/source/generator/WhiteNoiseGenerator.h" #include <unittestpp.h> #include <algorithm> #include <cstddef> #include <cstdlib> #include <ctime> SUITE(WhiteNoiseGenerator) { // sample frequency is fixed at 1 kHz Aquila::WhiteNoiseGenerator gen(1000); TEST(DoesNotOver...
#include "aquila/global.h" #include "aquila/source/generator/WhiteNoiseGenerator.h" #include <unittestpp.h> #include <algorithm> #include <cstddef> #include <cstdlib> #include <ctime> SUITE(WhiteNoiseGenerator) { // sample frequency is fixed at 1 kHz Aquila::WhiteNoiseGenerator gen(1000); TEST(DoesNotOver...
Check that white noise mean value is close to 0.
Check that white noise mean value is close to 0.
C++
mit
sav6622/aquila,Aldor007/aquila,tempbottle/aquila,zsiciarz/aquila,sav6622/aquila,tempbottle/aquila,synkarae/aquila,zsiciarz/aquila,zsiciarz/aquila,synkarae/aquila,zsiciarz/aquila,sav6622/aquila,Aldor007/aquila,synkarae/Quasar,synkarae/aquila,synkarae/Quasar,synkarae/Quasar,tempbottle/aquila,Aldor007/aquila
b05c4a4a879bc7138e14e8aab0c2404424e333ed
source/deps/illa/c_bmp_decoder.cpp
source/deps/illa/c_bmp_decoder.cpp
#include "c_bmp_decoder.h" namespace Img { namespace Internal { using namespace Geom; bool BmpDataDecoder::Process() { return OnProcess(); } BmpDataDecoder::BmpDataDecoder(std::shared_ptr<Img::Surface> destination, BMPHeader header): m_header{ header }, m_destination{ destination } { } s...
#include "c_bmp_decoder.h" namespace Img { namespace Internal { using namespace Geom; bool BmpDataDecoder::Process() { return OnProcess(); } BmpDataDecoder::BmpDataDecoder(std::shared_ptr<Img::Surface> destination, BMPHeader header): m_header{ header }, m_destination{ destination } { } s...
Make BMP decoder handle failed surface locks
Make BMP decoder handle failed surface locks
C++
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
736cd4720e06ec52ec9ed3f6a3c01566f61435e3
test/asan/TestCases/Linux/coverage-disabled.cc
test/asan/TestCases/Linux/coverage-disabled.cc
// Test that no data is collected without a runtime flag. // // RUN: %clangxx_asan -fsanitize-coverage=1 %s -o %t // // RUN: rm -rf %T/coverage-disabled // // RUN: mkdir -p %T/coverage-disabled/normal // RUN: ASAN_OPTIONS=coverage_direct=0:coverage_dir=%T/coverage-disabled/normal:verbosity=1 %run %t // RUN: not %sancov...
// Test that no data is collected without a runtime flag. // // RUN: %clangxx_asan -fsanitize-coverage=1 %s -o %t // // RUN: rm -rf %T/coverage-disabled // // RUN: mkdir -p %T/coverage-disabled/normal // RUN: ASAN_OPTIONS=coverage_direct=0:coverage_dir=%T/coverage-disabled/normal:verbosity=1 %run %t // RUN: not %sancov...
Disable one test on Android.
[asan] Disable one test on Android. It used to pass by chance and started failing on recent Android builds. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@224818 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
aad66c1dbedb484458a6ce76b4f4efb860aa2ad0
test/sanitizer_common/TestCases/malloc_hook.cc
test/sanitizer_common/TestCases/malloc_hook.cc
// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s // Malloc/free hooks are not supported on Windows. // XFAIL: win32 #include <stdlib.h> #include <unistd.h> #include <sanitizer/allocator_interface.h> extern "C" { const volatile void *global_ptr; // Note: avoid calling functions that allocate memory in ma...
// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s // Malloc/free hooks are not supported on Windows. // XFAIL: win32 #include <stdlib.h> #include <unistd.h> #include <sanitizer/allocator_interface.h> extern "C" { const volatile void *global_ptr; // Note: avoid calling functions that allocate memory in ma...
Add a test case for r258339.
[MSan] Add a test case for r258339. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@258413 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
e606e1da3ebcab3f6e962919f186165748174703
chrome/browser/extensions/extension_webnavigation_apitest.cc
chrome/browser/extensions/extension_webnavigation_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 "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" IN_PROC_BROWSER_T...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/common/chrome_switches.h" IN_PROC_BROWSER_T...
Disable ExtensionApiTest.WebNavigationEvents1, flakily exceeds test timeout
Disable ExtensionApiTest.WebNavigationEvents1, flakily exceeds test timeout TBR=jochen BUG=72165 TEST=browser_tests Review URL: http://codereview.chromium.org/6286142 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@73975 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
a8309afcbd53df6bbc58712347aa28b9b4ab2e03
thinglang/runtime/main.cpp
thinglang/runtime/main.cpp
#include <iostream> #include <vector> #include <fstream> #include "errors/RuntimeError.h" #include "execution/Program.h" #include "loader/ProgramReader.h" int main(int argc, char **argv) { if (argc != 2) { std::cerr << "Usage: thingc filename.thingc" << std::endl; return 1; } auto reade...
#include <iostream> #include <vector> #include <fstream> #include "errors/RuntimeError.h" #include "execution/Program.h" #include "loader/ProgramReader.h" int main(int argc, char **argv) { if (argc != 2) { std::cerr << "Usage: thingc filename.thingc" << std::endl; return 1; } auto filen...
Allow thinglang bytecode to be piped directly into the VM
Allow thinglang bytecode to be piped directly into the VM
C++
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
af9e62cf75f73bdfc37db286620ef353005e5f4a
unittests/autodeclination_test.cpp
unittests/autodeclination_test.cpp
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <systemlib/mixer/mixer.h> #include <systemlib/err.h> #include <drivers/drv_hrt.h> #include <px4iofirmware/px4io.h> #include "../../src/systemcmds/tests/tests.h" #include <geo/geo.h> int main(int argc, char *argv[]) { warnx("auto...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> #include <systemlib/mixer/mixer.h> #include <systemlib/err.h> #include <drivers/drv_hrt.h> #include <px4iofirmware/px4io.h> // #include "../../src/systemcmds/tests/tests.h" #include <geo/geo.h> int main(int argc, char *a...
Improve auto declination test, not great coverage yet.
unittests: Improve auto declination test, not great coverage yet.
C++
bsd-3-clause
Aerotenna/Firmware,mcgill-robotics/Firmware,jlecoeur/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,acfloria/Firmware,krbeverx/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,dagar/Firmware,acfloria/Firmware,jlecoeur/Firmware,acfloria/Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,Aerote...
4fd066cae990c15138c167d1c5322e0e3cb22835
source/gloperate/source/input/MouseDevice.cpp
source/gloperate/source/input/MouseDevice.cpp
#include <gloperate/input/MouseDevice.h> #include <gloperate/input/MouseEvent.h> #include <gloperate/input/InputManager.h> namespace gloperate { MouseDevice::MouseDevice(InputManager * inputManager, const std::string & deviceDescriptor) : AbstractDevice(inputManager, deviceDescriptor) { } MouseDevice::~MouseDevi...
#include <gloperate/input/MouseDevice.h> #include <gloperate/input/MouseEvent.h> #include <gloperate/input/InputManager.h> namespace gloperate { MouseDevice::MouseDevice(InputManager * inputManager, const std::string & deviceDescriptor) : AbstractDevice(inputManager, deviceDescriptor) { } MouseDevice::~MouseDevi...
Fix wrong event type for mouse move events
Fix wrong event type for mouse move events
C++
mit
hpicgs/gloperate,hpicgs/gloperate,j-o/gloperate,j-o/gloperate,cginternals/gloperate,hpicgs/gloperate,cginternals/gloperate,j-o/gloperate,hpicgs/gloperate,cginternals/gloperate,cginternals/gloperate,j-o/gloperate,hpicgs/gloperate
c30bb87fea8c88903636a454a6ec5e31986262f0
pool.cpp
pool.cpp
#include <iostream> #include <string> #include <utility> #include "pool.h" void Pool::add_machine(const Machine& new_machine) { const std::string& machine_name = new_machine.get_name(); std::cout << "Adding machine to pool: " << machine_name << std::endl; machines.insert(std::make_pair(machine_name, new_...
#include <iostream> #include <string> #include <utility> #include "pool.h" void Pool::add_machine(const Machine& new_machine) { const std::string& machine_name = new_machine.get_name(); std::cout << "Adding machine to pool: " << machine_name << std::endl; machines.insert(std::make_pair(machine_name, new_...
Move iterator variable declaration to the point of use.
Move iterator variable declaration to the point of use.
C++
mit
mattportas/yejong
72a6c6ef03f15a61aa5c7c14f383877f48efedf9
sleepsort.cpp
sleepsort.cpp
#include <chrono> #include <cstdint> #include <iostream> #include <mutex> #include <sstream> #include <string> #include <thread> #include <vector> std::mutex output; void func(unsigned int value) { using std::chrono::seconds; using std::cout; using std::endl; using std::lock_guard; using std::mutex; std::this_...
#include <chrono> #include <cstdint> #include <iostream> #include <mutex> #include <sstream> #include <string> #include <thread> #include <vector> std::mutex output; void func(unsigned int value) { using std::chrono::seconds; using std::cout; using std::endl; using std::lock_guard; using std::mutex; std::this_...
Fix output of non-integer parameters
Fix output of non-integer parameters
C++
mit
ranisalt/sleepsort-cpp11
95cab084032395b3a6fce34457c4714a5096348f
src/globit.cc
src/globit.cc
#include "config.h" #ifdef HAVE_ASPRINTF #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include "globit.c" #endif
#include "config.h" #ifdef HAVE_ASPRINTF #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif #include "globit.c" #endif
Fix build failure with GCC <= 4.7
Fix build failure with GCC <= 4.7
C++
lgpl-2.1
dicej/icewm,bedna-KU/icewm,dicej/icewm,jinn-alt/icewm,bedna-KU/icewm,dicej/icewm,dicej/icewm,bedna-KU/icewm,jinn-alt/icewm,jinn-alt/icewm
06f795d8114730ed17f820c3bda6e6e339b9cce7
src/vw/Plate/detail/Seed.cc
src/vw/Plate/detail/Seed.cc
// __BEGIN_LICENSE__ // Copyright (C) 2006-2011 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/Plate/detail/Seed.h> #include <vw/Core/Thread.h> #include <boost/cast.hpp> namespace { vw::Ru...
// __BEGIN_LICENSE__ // Copyright (C) 2006-2011 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <vw/Plate/detail/Seed.h> #include <vw/Core/Thread.h> #include <vw/Core/Stopwatch.h> #include <sys/ty...
Replace random seed with something more unique
Replace random seed with something more unique This should hopefully produce something unique across executables starting at the same time. I have no faith in clock resolutions.
C++
apache-2.0
fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,AveRapina/v...
bfbfdb486aac461e0cab71d639cc7af89c0f88be
specs/unit/core/math/vector2.specs.cpp
specs/unit/core/math/vector2.specs.cpp
// Copyright (c) 2017 Pierre Fourgeaud // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <bandit/bandit.h> #include "core/math/vector2.h" using namespace bandit; using namespace snowhouse; using namespace CodeHero; go_bandit([]() { describe("Vector2", []...
// Copyright (c) 2017 Pierre Fourgeaud // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <bandit/bandit.h> #include "core/math/vector2.h" using namespace bandit; using namespace snowhouse; using namespace CodeHero; go_bandit([]() { describe("Vector2", []...
Normalize tested for vector2. vector2 tested fully
Normalize tested for vector2. vector2 tested fully
C++
mit
pierrefourgeaud/CodeHero
8ec2ff11f72b13db1a8a2b347690605e67ffaccc
week3/homework/solutions/problem1/client.cpp
week3/homework/solutions/problem1/client.cpp
#include <iostream> using namespace std; const int MAX = 100; struct Person { string firstName; string lastName; void input() { cout << "Enter person's first and last names separated by a space: "; cin >> firstName >> lastName; } void print() { cout << firstName << ' ' << lastName << '\n'; ...
#include <iostream> using namespace std; const int MAX = 100; struct Person { string firstName; string lastName; void input() { cout << "Enter person's first and last names separated by a space: "; cin >> firstName >> lastName; } void print() { cout << firstName << ' ' << lastName << '\n'; ...
Add test for first problem solution
Add test for first problem solution
C++
mit
dimitaruzunov/oop-practicum-2015-16
5c30aa163115763cb90a5572b594d1791d36c017
src/core/map/entity/EntityFather.cpp
src/core/map/entity/EntityFather.cpp
// // Created by dar on 2/21/16. // #include "EntityFather.h" EntityFather::EntityFather(Map *map) : EntityMoving(map, 0.25, 0.25) { b2PolygonShape shape; shape.SetAsBox(0.25, 0.25); b2FixtureDef fixDef; fixDef.shape = &shape; fixDef.density = 6.0f; fixDef.friction = 0.1f; this->body->Cre...
// // Created by dar on 2/21/16. // #include "EntityFather.h" EntityFather::EntityFather(Map *map) : EntityMoving(map, 0.25, 0.25) { b2PolygonShape shape; shape.SetAsBox(0.25, 0.25); b2FixtureDef fixDef; fixDef.shape = &shape; fixDef.density = 6.0f; fixDef.friction = 0.1f; this->body->Cre...
Make the father walk straight
Make the father walk straight
C++
mit
darsto/spooky,darsto/spooky
fbe98209d411481b6fdee631de713420138aff28
test/main.cc
test/main.cc
/* * main.cc * * Copyright (c) 2015 Masatoshi Hanai * * This software is released under MIT License. * See LICENSE. * */ #include "glog/logging.h" #include "gflags/gflags.h" #include "gtest/gtest.h" #include "leveldb/db.h" #include "leveldb/options.h" /* test files */ #include "medium/com_test.cc" #include ...
/* * main.cc * * Copyright (c) 2015 Masatoshi Hanai * * This software is released under MIT License. * See LICENSE. * */ #include "glog/logging.h" #include "gflags/gflags.h" #include "gtest/gtest.h" #include "leveldb/db.h" #include "leveldb/options.h" /* test files */ #include "medium/com_test.cc" #include ...
Fix bug for parsing google test flags
Fix bug for parsing google test flags
C++
mit
masatoshihanai/ScaleSim
b204a778f588ed1b0bf1e22c38c9b873401460c4
src/base/watchdog_unittest.cc
src/base/watchdog_unittest.cc
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Increase timeout of Crash test.
Increase timeout of Crash test. Bug: 72652321 Change-Id: Ia1905bb20688d31da2de0052d37363733d875926
C++
apache-2.0
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto
90fb58e9f5482d2be61c4acfedf4fa69585c8ac1
test/CodeGenCXX/const-init.cpp
test/CodeGenCXX/const-init.cpp
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s // CHECK: @a = global i32 10 int a = 10; // CHECK: @ar = constant i32* @a int &ar = a; void f(); // CHECK: @fr = constant void ()* @_Z1fv void (&fr)() = f; struct S { int& a; }; // CHECK: @s = global %0 { i32* @a } S s = { a }; ...
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s // CHECK: @a = global i32 10 int a = 10; // CHECK: @ar = constant i32* @a int &ar = a; void f(); // CHECK: @fr = constant void ()* @_Z1fv void (&fr)() = f; struct S { int& a; }; // CHECK: @s = global %0 { i32* @a } S s = { a }; ...
Secure this test against slightly different number formatters.
Secure this test against slightly different number formatters. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@116141 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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl...
d94ef5b6fcb80f7fbfcb2ca5b8d828a8d26991aa
android/jni/InteriorsPosition/SdkModel/IndoorAtlas/IndoorAtlasLocationManagerJni.cpp
android/jni/InteriorsPosition/SdkModel/IndoorAtlas/IndoorAtlasLocationManagerJni.cpp
// Copyright eeGeo Ltd (2012-2017), All Rights Reserved #include <jni.h> #include "AndroidAppThreadAssertionMacros.h" #include "IndoorAtlasLocationManager.h" #include "IndoorAtlasLocationManagerJni.h" extern "C" { JNIEXPORT void JNICALL Java_com_eegeo_interiorsposition_indooratlas_IndoorAtlasLocationManagerJniMethod...
// Copyright eeGeo Ltd (2012-2017), All Rights Reserved #include <jni.h> #include "AndroidAppThreadAssertionMacros.h" #include "IndoorAtlasLocationManager.h" #include "IndoorAtlasLocationManagerJni.h" extern "C" { JNIEXPORT void JNICALL Java_com_eegeo_interiorsposition_indooratlas_IndoorAtlasLocationManagerJniMethod...
Fix for MPLY-9036. Guard against null region values from IA. Buddy: Jordan
Fix for MPLY-9036. Guard against null region values from IA. Buddy: Jordan
C++
bsd-2-clause
wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee...
9320328b03dbf060e06e81ec0ab7dbe47771cd2e
voice_engine/test/auto_test/standard/voe_base_misc_test.cc
voice_engine/test/auto_test/standard/voe_base_misc_test.cc
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Fix MaxChannels test; 32 -> 100.
Fix MaxChannels test; 32 -> 100. TBR=henrika Review URL: https://webrtc-codereview.appspot.com/1060010 git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@3460 4adac7df-926f-26a2-2b94-8c16560cd09d
C++
bsd-3-clause
android-ia/platform_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,Omegaphora/external_chromium_org_third_party_webrtc,android-ia/platform_extern...
dcce958b6c1fa83c43579004f7d06640df994823
Assignment_4/main.cpp
Assignment_4/main.cpp
#include <iostream> #include <cstdlib> #include <vector> #include <bitset> #include <cstring> #include <string> #include "rand.h" using namespace std; int main() { string cipher; getline(cin, cipher); cout << cipher << endl; }
#include <iostream> #include <cstdlib> #include <vector> #include <bitset> #include <cstring> #include <string> #include <fstream> #include "rand.h" using namespace std; int main() { string cipher, tmp; while( getline( cin, tmp ) ) { cipher.append( tmp ); } // cout << cipher << endl; ifstrea...
Read in input and freq.txt
Read in input and freq.txt
C++
mit
westrope/Evo-Comp,westrope/Evo-Comp
5f3dfcfa366ce901ecdb4de8ab3317fe94914aa7
stdlib/private/StdlibUnittest/InspectValue.cpp
stdlib/private/StdlibUnittest/InspectValue.cpp
//===----------------------------------------------------------------------===// // // 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...
//===----------------------------------------------------------------------===// // // 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...
Update getMetadataKindOf for +0 parameters.
[stdlibunittest] Update getMetadataKindOf for +0 parameters. rdar://34222540
C++
apache-2.0
natecook1000/swift,harlanhaskins/swift,alblue/swift,apple/swift,brentdax/swift,roambotics/swift,nathawes/swift,CodaFi/swift,allevato/swift,karwa/swift,benlangmuir/swift,aschwaighofer/swift,devincoughlin/swift,austinzheng/swift,natecook1000/swift,danielmartin/swift,harlanhaskins/swift,danielmartin/swift,huonw/swift,xedi...
392d957512b85242e094c42df9271ce1c7af6ee7
exercises/02/calculator.cpp
exercises/02/calculator.cpp
#include <iostream> using std::cin; using std::cout; int main() { char operation; cout << "Choose an operation (+, -, *, /): "; cin >> operation; double first_operand; double second_operand; cout << "Enter your operands: "; cin >> first_operand >> second_operand; double result; switch(operation) ...
#include <iostream> using std::cin; using std::cout; int main() { char operation; cout << "Choose an operation (+, -, *, /): "; cin >> operation; double first_operand; double second_operand; cout << "Enter your operands: "; cin >> first_operand >> second_operand; double result; switch (operation)...
Add space after switch keyword
Add space after switch keyword
C++
mit
dimitaruzunov/up-2016
120016886bd2859ba6e62eab39a323b817a74e9c
lib/boxer_linux.cpp
lib/boxer_linux.cpp
#include <boxer/boxer.h> #include <gtk/gtk.h> namespace boxer { void show(const char *message, const char *title) { gtk_init(0, NULL); GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message); gtk_window_set_ti...
#include <boxer/boxer.h> #include <gtk/gtk.h> namespace boxer { void show(const char *message, const char *title) { gtk_init(0, NULL); GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", message); ...
Add format string to gtk_message_dialog_new()
Add format string to gtk_message_dialog_new()
C++
mit
aaronmjacobs/Boxer
fbc0566471a79cf5d58c569e7e3277346e9c13ab
src/test/Cpu-test.cpp
src/test/Cpu-test.cpp
#include <gtest/gtest.h> #include "../../include/Cpu.h" // The fixture for testing class Foo. class CpuTest : public ::testing::Test { protected: CpuTest() { } ~CpuTest() override { } void SetUp() override { } void TearDown() override { } Cpu cpu; }; TEST_F(CpuTest, instruction1test) { }
#include <gtest/gtest.h> #include "../../include/Cpu.h" // The fixture for testing class Foo. class CpuTest : public Cpu, public ::testing::Test { protected: CpuTest() { } ~CpuTest() override { } void SetUp() override { } void TearDown() override { } }; TEST_F(CpuTest, pcNop) { runOpcode(...
Add first cpu unit test
Add first cpu unit test
C++
apache-2.0
Sulter/STM32-GB,Sulter/STM32-GB,Sulter/STM32-GB
16f0fc924198d4e359bd1acaa2d8202356ae3e9f
tests/packet_queue_tests.cpp
tests/packet_queue_tests.cpp
extern "C" { #include "packet_queue.h" #include "error.h" #include "nrf51.h" #include "nrf51_bitfields.h" } #include "CppUTest/TestHarness.h" TEST_GROUP(packet_queue) { packet_queue_t queue; void setup(void) { packet_queue_init(&queue); } void teardown(void) { ...
extern "C" { #include "packet_queue.h" #include "error.h" #include "nrf51.h" #include "nrf51_bitfields.h" } #include "CppUTest/TestHarness.h" #include <limits.h> #include <string.h> TEST_GROUP(packet_queue) { packet_queue_t queue; void setup(void) { packet_queue_init(&queue); ...
Reorganize empty and full tests.
Reorganize empty and full tests.
C++
bsd-3-clause
hlnd/nrf51-simple-radio,hlnd/nrf51-simple-radio
3872b5ef8ab4ba48a3f84555a9e50f44f239a240
src/binding/iterator_async.cc
src/binding/iterator_async.cc
#include <assert.h> #include <leveldb/iterator.h> #include <node.h> #include <v8.h> #include "iterator.h" namespace node_leveldb { async_rtn JIterator::After(uv_work_t* req) { Params *data = (Params*) req->data; data->callback->Call(data->self->handle_, 0, NULL); delete data; RETURN_ASYNC_AFTER; } async_rt...
#include <assert.h> #include <leveldb/iterator.h> #include <node.h> #include <v8.h> #include "iterator.h" namespace node_leveldb { async_rtn JIterator::After(uv_work_t* req) { Params *data = (Params*) req->data; data->callback->Call(data->self->handle_, 0, NULL); delete data; RETURN_ASYNC_AFTER; } async_rt...
Fix types in iterator async
Fix types in iterator async
C++
bsd-2-clause
mikepb/node-leveldb,mikepb/node-leveldb,maxogden/node-leveldb,maxogden/node-leveldb,maxogden/node-leveldb,my8bird/node-leveldb,my8bird/node-leveldb,my8bird/node-leveldb
f3a12a23ce648423992147c1c380e234798cee47
Base/Normalization/voLog2.cpp
Base/Normalization/voLog2.cpp
// Qt includes //#include <QHash> //#include <QVariant> // Visomics includes #include "voLog2.h" // VTK includes #include <vtkDoubleArray.h> #include <vtkMath.h> #include <vtkTable.h> namespace Normalization { //------------------------------------------------------------------------------ bool applyLog2(vtkTable...
// Qt includes //#include <QHash> //#include <QVariant> // Visomics includes #include "voLog2.h" // VTK includes #include <vtkDoubleArray.h> #include <vtkTable.h> // STD includes #include <cmath> namespace Normalization { //------------------------------------------------------------------------------ bool apply...
Use log(X)/log(2.0) instead of log2() function
Use log(X)/log(2.0) instead of log2() function Indeed log2() isn't available on windows
C++
apache-2.0
Visomics/Visomics,arborworkflows/Visomics,arborworkflows/Visomics,arborworkflows/Visomics,arborworkflows/Visomics,Visomics/Visomics,arborworkflows/Visomics,Visomics/Visomics,Visomics/Visomics,arborworkflows/Visomics,Visomics/Visomics,Visomics/Visomics
287014958af2f138513521f964d8d3725fa638c5
src/ui/linux/TogglDesktop/mainwindowcontroller.cpp
src/ui/linux/TogglDesktop/mainwindowcontroller.cpp
#include "mainwindowcontroller.h" #include "ui_mainwindowcontroller.h" #include <QErrorMessage> #include <QStandardPaths> #include <QDir> #include <QCoreApplication> #include "kopsik_api.h" MainWindowController::MainWindowController(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindowController) { ...
#include "mainwindowcontroller.h" #include "ui_mainwindowcontroller.h" #include <QErrorMessage> #include <QStandardPaths> #include <QDir> #include <QCoreApplication> #include "kopsik_api.h" MainWindowController::MainWindowController(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindowController) { ...
Create app dir if not exists (linux)
Create app dir if not exists (linux)
C++
bsd-3-clause
codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop
dfdbf6d5f113456505ffa6ec45aaf1f9202f86bf
Ball.cpp
Ball.cpp
#include "Ball.h" void Ball::reset() { float resetX, resetY; resetX = displayW / 2.0; resetY = rand() % displayH; randomDirection(); setPosition(resetX, resetY); } void Ball::update() { checkForCollisions(); x += accelX; y += accelY; if (testBit(DEAD)) { reset(); ...
#include "Ball.h" void Ball::reset() { float resetX, resetY; resetX = displayW / 2.0; resetY = rand() % displayH; randomDirection(); setPosition(resetX, resetY); } void Ball::update() { checkForCollisions(); x += accelX; y += accelY; if (testBit(DEAD)) { reset(); ...
Fix ball bouncing before graphic touched borders.
Fix ball bouncing before graphic touched borders.
C++
apache-2.0
rlam1/Allegro_pong,rlam1/Allegro_pong
d90b6d46d42b9b35557f4b02a0c3a0dd17c10362
src/kernel/kernconf.cc
src/kernel/kernconf.cc
#include <kernel/config.h> #include <kernel/kernconf.hh> USDK_API kernconf_type kernconf = { // Default is large enough until we enable a mechanism to dynamically // reallocate task space on demand. /* .default_stack_size = */ URBI_KERNEL_STACK_SIZE * 1024, /* .minimum_stack_size = */ 4 * 1024 ...
#include <kernel/config.h> #include <kernel/kernconf.hh> USDK_API kernconf_type kernconf = { // Default is large enough until we enable a mechanism to dynamically // reallocate task space on demand. /* .default_stack_size = */ URBI_KERNEL_STACK_SIZE * 1024, /* .minimum_stack_size = */ URBI_KERN...
Make the minimum stack size depend on the default stack size.
Make the minimum stack size depend on the default stack size. More exactly, it depends on the stack size chosen at compilation time. There is no reason to change the guard even if the stack size is changed at run time. * src/kernel/kernconf.cc: Set the minimum stack size from the default stack size.
C++
bsd-3-clause
urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi
e53196184127e07dc275cede999ece38cc19c358
machine/ffi_util.cpp
machine/ffi_util.cpp
#include "config.h" #include <stdint.h> #include <stdlib.h> #include <sys/types.h> #ifdef RBX_WINDOWS #include <winsock2.h> #else #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> #include <netdb.h> #endif #include <sys/stat.h> #include <errno.h> #include <time.h> #include <math.h> #include "windows...
#include "config.h" #include <stdint.h> #include <stdlib.h> #include <sys/types.h> #include <sys/sysmacros.h> #ifdef RBX_WINDOWS #include <winsock2.h> #else #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> #include <netdb.h> #endif #include <sys/stat.h> #include <errno.h> #include <time.h> #include ...
Fix warning on Ubuntu Bionic.
Fix warning on Ubuntu Bionic. machine/ffi_util.cpp:53:10: warning: In the GNU C Library, "major" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "major", include <sys/sysmacros.h> directly. If you...
C++
mpl-2.0
kachick/rubinius,kachick/rubinius,kachick/rubinius,kachick/rubinius,kachick/rubinius,kachick/rubinius,kachick/rubinius,kachick/rubinius
19bc181848ac80fb9c6c0af901bc0f6419f1088e
Main.cpp
Main.cpp
// Native C++ Libraries #include <iostream> #include <string> // C++ Interpreter Libraries #include <Console.h> using namespace std; int main() { RESTART: string input = ""; getline(cin, input); cin.ignore(); goto RESTART; }
// Native C++ Libraries #include <iostream> #include <string> // C++ Interpreter Libraries #include <Console.h> using namespace std; int main() { RESTART: string input = ""; getline(cin, input); goto RESTART; }
Remove console-in ignore in main source.
Remove console-in ignore in main source. This is needed in a lot of Windows C++ terminal programs to keep the code from exiting the program before output is seen by the user. But for this program. It is not needed because it uses a loop which keeps the program from exiting.
C++
mit
Project-CPP/CPP-Interpreter
93fd03f5f11e50bd8aa765e16f8d201b0a1c3db8
main.cpp
main.cpp
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QtQml> #include "applications.h" #include "iconprovider.h" #include "process.h" /** * @todo: Config file in ~/.config/qmldmenu/ * @todo: SHIFT(ENTER) for sudo * @todo: TAB For command (term /{usr}/bin/) / app (.desktop) mod...
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QtQml> #include "applications.h" #include "iconprovider.h" #include "process.h" /** * @todo: Config file in ~/.config/qmldmenu/ * @todo: SHIFT(ENTER) for sudo * @todo: TAB For command (term /{usr}/bin/) / app (.desktop) mod...
Fix high dpi icon sizes
Fix high dpi icon sizes
C++
mit
bayi/qdmenu,bayi/qdmenu,bayi/qdmenu
2f34262c3e9a1dbac5115bec38ab07c045f9a1f2
sdk-remote/src/bin/urbi-launch.cc
sdk-remote/src/bin/urbi-launch.cc
/* * Copyright (C) 2008-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ // This file *must* remain ...
/* * Copyright (C) 2008-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ // This file *must* remain ...
Fix typo in previous patch.
Fix typo in previous patch. * sdk-remote/src/bin/urbi-launch.cc: There.
C++
bsd-3-clause
aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi
dbc3bee3a045f028e7026dd590c5db809472c327
JsonGeneratorTests/Intented_Array_Tests.cpp
JsonGeneratorTests/Intented_Array_Tests.cpp
/* * Arduino JSON library * Benoit Blanchon 2014 - MIT License */ #include "CppUnitTest.h" #include "IndentedPrintDecorator.h" #include "StringBuilder.h" using namespace ArduinoJson::Internals; using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace JsonGeneratorTests { TEST_CLASS(Ind...
/* * Arduino JSON library * Benoit Blanchon 2014 - MIT License */ #include "CppUnitTest.h" #include "IndentedPrintDecorator.h" #include "StringBuilder.h" using namespace ArduinoJson::Internals; using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace JsonGeneratorTests { TEST_CLASS(Ind...
Test array with 2 elements
Test array with 2 elements
C++
mit
bblanchon/ArduinoJson,weera00/ArduinoJson,ELZo3/ArduinoJson,tirumalavan/ArduinoJson,peterpolidoro/ArduinoJson,PeeJay/ArduinoJson,chuz/ArduinoJson,0ddie/ArduinoJson,naveensuryakumar/json,alyf80/ArduinoJson,lono-devices/ArduinoJson,peterpolidoro/ArduinoJson,PeeJay/ArduinoJson,lono-devices/ArduinoJson,CanTireInnovations/A...
29ebae11475286308766e9e3758937991607bc76
tests/cardreader-t.cpp
tests/cardreader-t.cpp
#include "cardreader-t.h" #include <QSignalSpy> const QString TEST_CARDNUMBER = "1234_testcard"; void CardReaderTest::initTestCase() { widget.installEventFilter(&cardReader); } void CardReaderTest::simulateRFIDReader() { QSignalSpy spy(&cardReader, SIGNAL(newCardNumber(QString))); QVERIFY(spy.isValid()); QTest:...
#include "cardreader-t.h" #include <QSignalSpy> const QString TEST_CARDNUMBER = "1234_testcard"; void CardReaderTest::initTestCase() { widget.installEventFilter(&cardReader); } void CardReaderTest::simulateRFIDReader() { QSignalSpy spy(&cardReader, SIGNAL(newCardNumber(QString))); QVERIFY(spy.isValid()); QTest:...
Use 50 ms for key typing time in the card reader test instead of something based on the card reader limit constant, in order to detect that the card reader constant is mis-set.
Use 50 ms for key typing time in the card reader test instead of something based on the card reader limit constant, in order to detect that the card reader constant is mis-set.
C++
mit
bjorgan/digcross