commit
stringlengths
40
40
old_file
stringlengths
2
205
new_file
stringlengths
2
205
old_contents
stringlengths
0
32.9k
new_contents
stringlengths
1
38.9k
subject
stringlengths
3
9.4k
message
stringlengths
6
9.84k
lang
stringlengths
3
13
license
stringclasses
13 values
repos
stringlengths
6
115k
748cc79d0f1b0f9ff19f35c2fc056b12414b33b7
src/utils.hh
src/utils.hh
#ifndef utils_hh_INCLUDED #define utils_hh_INCLUDED #include "assert.hh" #include "exception.hh" #include <algorithm> #include <memory> #include <vector> #include <unordered_set> namespace Kakoune { // *** Singleton *** // // Singleton helper class, every singleton type T should inherit // from Singleton<T> to provi...
#ifndef utils_hh_INCLUDED #define utils_hh_INCLUDED #include "assert.hh" #include "exception.hh" #include <algorithm> #include <memory> #include <vector> #include <unordered_set> namespace Kakoune { // *** Singleton *** // // Singleton helper class, every singleton type T should inherit // from Singleton<T> to provi...
Add std::hash specialization for std::pair
Add std::hash specialization for std::pair
C++
unlicense
ekie/kakoune,rstacruz/kakoune,lenormf/kakoune,zakgreant/kakoune,elegios/kakoune,casimir/kakoune,mawww/kakoune,alpha123/kakoune,casimir/kakoune,Asenar/kakoune,danr/kakoune,rstacruz/kakoune,occivink/kakoune,casimir/kakoune,ekie/kakoune,alexherbo2/kakoune,alexherbo2/kakoune,jkonecny12/kakoune,lenormf/kakoune,zakgreant/kak...
7a0efc7f4c4083a7eb3d14dd0a1098fdba78778f
COFF/ICF.cpp
COFF/ICF.cpp
//===- ICF.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- ICF.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Make doICF non-recursive. NFC.
COFF: Make doICF non-recursive. NFC. git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@240898 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
fc11f40937fe1ecea6b534f56176f848d4b85eb7
tests/app/main.cpp
tests/app/main.cpp
/* * Copyright (c) 2015, Cryptonomex, Inc. * All rights reserved. * * This source code is provided for evaluation in private test networks only, until September 8, 2015. After this date, this license expires and * the code may not be used, modified or distributed for any purpose. Redistribution and use in source a...
/* * Copyright (c) 2015, Cryptonomex, Inc. * All rights reserved. * * This source code is provided for evaluation in private test networks only, until September 8, 2015. After this date, this license expires and * the code may not be used, modified or distributed for any purpose. Redistribution and use in source a...
Fix app_test
Fix app_test Sometimes it fails to connect, but when it does, it works.
C++
mit
bigoc/openchain,bigoc/openchain,peertracksinc/muse,oxarbitrage/bitshares-core,abitmore/bitshares-2,bitshares/bitshares-2,peertracksinc/muse,abitmore/bitshares-2,bitshares/bitshares-2,bigoc/openchain,pmconrad/graphene,cryptonomex/graphene,oxarbitrage/bitshares-core,cryptonomex/graphene,bigoc/openchain,peertracksinc/muse...
3dad655f3e84fe55fb92e6504402138b7bb28a29
tests/test_115.cpp
tests/test_115.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); ti...
#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...
Fix test
Fix test
C++
mit
rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/COLi,rbaghdadi/COLi,rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu
888aff575337a0b678f7e313d8125f452140826c
math/fraction/fraction.cpp
math/fraction/fraction.cpp
#include <iostream> #include <sstream> #include <string> using namespace std; void printFraction(const struct Fraction, int); Fraction getFraction(); Fraction multiply(struct Fraction, struct Fraction); int validateInt(string); struct Fraction { int num; int den; }; int main() { Fraction f1, f2, f3; f1 = getFr...
#include <iostream> #include <sstream> #include <string> using namespace std; struct Fraction { int num; int den; }; int validateInt(string); Fraction getFraction(string); Fraction multiply(Fraction, Fraction); Fraction add(Fraction, Fraction); Fraction subtract(Fraction, Fraction); Fraction divide(Fraction, Fracti...
update fraction
update fraction
C++
mit
felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecu...
9735cc90c2f380c1c4fd9fa66ebe6b17ee1f021a
src/snep/SnepMessage.cpp
src/snep/SnepMessage.cpp
#include "SnepMessage.h" #include "NdefMessage.h" #define LOG_TAG "nfcd" #include <cutils/log.h> SnepMessage::SnepMessage() : mNdefMessage(NULL) { } SnepMessage::~SnepMessage() { if (mNdefMessage) delete mNdefMessage; } SnepMessage::SnepMessage(std::vector<uint8_t>& buf) { int ndefOffset = 0; int ndefLe...
#include "SnepMessage.h" #include "NdefMessage.h" #define LOG_TAG "nfcd" #include <cutils/log.h> SnepMessage::SnepMessage() : mNdefMessage(NULL) { } SnepMessage::~SnepMessage() { if (mNdefMessage) delete mNdefMessage; } SnepMessage::SnepMessage(std::vector<uint8_t>& buf) { int ndefOffset = 0; int ndefLe...
Fix snep bug when receive
Fix snep bug when receive
C++
apache-2.0
mozilla-b2g/platform_system_nfcd,viralwang/platform_system_nfcd,viralwang/platform_system_nfcd,mozilla-b2g/platform_system_nfcd
3bb645f28e995eb376a83b62a01fdbd7257d6841
src/args.cc
src/args.cc
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
Remove unused test in Args::parseArgs
Remove unused test in Args::parseArgs
C++
mit
facebookresearch/fastText,magicBus234/fastTextJob,facebookresearch/fastText,magicBus234/fastTextJob,facebookresearch/fastText,magicBus234/fastTextJob,magicBus234/fastTextJob,facebookresearch/fastText,facebookresearch/fastText,facebookresearch/fastText
f23cee1925600f6f6dfe3e8090074b9c1b34e752
src/unittest/chunker.cpp
src/unittest/chunker.cpp
/** * unittest/chunker.cpp: test cases for the read filtering/transforming logic */ #include "catch.hpp" #include "chunker.hpp" #include "readfilter.hpp" namespace vg { namespace unittest { using namespace std; TEST_CASE("basic graph chunking", "[chunk]") { // Build a toy graph (copied from readfilter te...
/** * unittest/chunker.cpp: test cases for the read filtering/transforming logic */ #include "catch.hpp" #include "chunker.hpp" #include "readfilter.hpp" namespace vg { namespace unittest { using namespace std; TEST_CASE("basic graph chunking", "[chunk]") { // Build a toy graph (copied from readfilter te...
fix chunk unit tests to expect 0-based outputs
fix chunk unit tests to expect 0-based outputs
C++
mit
ekg/vg,ekg/vg,ekg/vg
2f7194f49e7b35123a4c28bb0f906927a9ff6043
GAME/OBJLIGHT.C
GAME/OBJLIGHT.C
#include "OBJLIGHT.H" #include "CAMERA.H" #include "CONTROL.H" #include "SPECIFIC.H" #if PSX_VERSION || PSXPC_VERSION #include "SPHERES.H" #include "BUBBLES.H" #endif struct FOOTPRINT FootPrint[32]; int FootPrintNum; //void /*$ra*/ TriggerAlertLight(long x /*$s2*/, long y /*$s3*/, long z /*$s1*/, long r /*$s5*/, lo...
#include "OBJLIGHT.H" #include "CAMERA.H" #include "CONTROL.H" #include "SPECIFIC.H" #if PSX_VERSION || PSXPC_VERSION #include "SPHERES.H" #include "BUBBLES.H" #endif struct FOOTPRINT FootPrint[32]; int FootPrintNum; //void /*$ra*/ TriggerAlertLight(long x /*$s2*/, long y /*$s3*/, long z /*$s1*/, long r /*$s5*/, lo...
Add ControlPulseLight
Add ControlPulseLight
C++
mit
TOMB5/TOMB5,TOMB5/TOMB5,TOMB5/TOMB5,TOMB5/TOMB5
79963090ca2e2bb929fd9dff774c5d7b72c8c5ac
src/map.cpp
src/map.cpp
#include <SDL.h> #include <stdio.h> #include <cstdlib> #include <cmath> #include "map.h" #include "image.h" #include "world.h" #include <iostream> #include <vector> // returns chance of <eye> over <die> roll bool roll(int die, int eye); #define CELL_LENGTH 16 #define COL_TILE_DESIRED 7 #define TRUMP_SPEED 0.7f Map::...
#include <SDL.h> #include <stdio.h> #include <cstdlib> #include <cmath> #include "map.h" #include "image.h" #include "world.h" #include <iostream> #include <vector> // returns chance of <eye> over <die> roll bool roll(int die, int eye); #define CELL_LENGTH 16 #define COL_TILE_DESIRED 7 #define TRUMP_SPEED 0.7f Map::...
remove unnecessary printf statements
remove unnecessary printf statements
C++
bsd-3-clause
hardhat/trumpjump,hardhat/trumpjump
7afc92c7808d0ac804d4baff8921001c86efcd21
delegate/src/test/Convolution3dTest.cpp
delegate/src/test/Convolution3dTest.cpp
// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "ConvolutionTestHelper.hpp" #include <armnn_delegate.hpp> #include <flatbuffers/flatbuffers.h> #include <tensorflow/lite/interpreter.h> #include <tensorflow/lite/kernels/register.h> #include <tensorflow/...
// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "ConvolutionTestHelper.hpp" #include <armnn_delegate.hpp> #include <flatbuffers/flatbuffers.h> #include <tensorflow/lite/interpreter.h> #include <tensorflow/lite/kernels/register.h> #include <tensorflow/...
Add CpuAcc and GpuAcc TfLite Delegate tests for Conv3d
Add CpuAcc and GpuAcc TfLite Delegate tests for Conv3d Signed-off-by: Matthew Sloyan <2f616873bb620f765368b5bd03298f46e7990e81@arm.com> Change-Id: I3e91796a69f02a8eff3018a1d17a496a66076db5
C++
mit
ARM-software/armnn,ARM-software/armnn,ARM-software/armnn
7c76ed5ab20b8bbffc6c776b98cefd65663bb5f7
heaptrack_interpret.cpp
heaptrack_interpret.cpp
/* * Copyright 2014 Milian Wolff <mail@milianw.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * *...
/* * Copyright 2014 Milian Wolff <mail@milianw.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * *...
Add whitespace before lib name.
Add whitespace before lib name.
C++
lgpl-2.1
muojp/heaptrack,muojp/heaptrack,muojp/heaptrack,stormspirit/heaptrack,stormspirit/heaptrack,stormspirit/heaptrack,muojp/heaptrack,muojp/heaptrack
3a1180c19c84703bcbe240eb4fff1e88ddd6dd64
chrome/browser/gtk/browser_toolbar_view_gtk.cc
chrome/browser/gtk/browser_toolbar_view_gtk.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/gtk/browser_toolbar_view_gtk.h" #include "base/logging.h" #include "base/base_paths_linux.h" #include "base/path_service.h" ...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/gtk/browser_toolbar_view_gtk.h" #include "base/logging.h" #include "base/base_paths_linux.h" #include "base/path_service.h" ...
Add the IDC_GO mapping for the go button widget.
Add the IDC_GO mapping for the go button widget. We previously crashed with a NOTREACHED() when you clicked the go button. Review URL: http://codereview.chromium.org/27205 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@10473 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,robclark/chromium,anirudhSK/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,mogoweb/chromium-c...
46e5f26c122e14a321a0663a15f44d9741b5e04d
chrome/common/extensions/extension_unpacker.cc
chrome/common/extensions/extension_unpacker.cc
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/extension_unpacker.h" #include "base/file_util.h" #include "base/scoped_handle.h" #include "base/scoped_temp_dir.h...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/extension_unpacker.h" #include "base/file_util.h" #include "base/scoped_handle.h" #include "base/scoped_temp_dir.h...
Make an error message verbose to investigate a un-reproducible bug.
Make an error message verbose to investigate a un-reproducible bug. BUG=35198 TEST=none Review URL: http://codereview.chromium.org/1528018 git-svn-id: http://src.chromium.org/svn/trunk/src@43686 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 5451b1648790573a58fafe34aac57cc94583996e
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...
1026e375b58ff99712e977669a7a3b866898db0d
chrome/browser/command_updater_unittest.cc
chrome/browser/command_updater_unittest.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/logging.h" #include "chrome/browser/command_updater.h" #include "testing/gtest/include/gtest/gtest.h" class TestingCommandHandler...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/logging.h" #include "chrome/browser/command_updater.h" #include "testing/gtest/include/gtest/gtest.h" class TestingCommandHandler...
Remove unnecessary unit tests (now we're just using ObserverList).
Remove unnecessary unit tests (now we're just using ObserverList). TBR=pinkerton Review URL: http://codereview.chromium.org/18386 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@8336 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,Crystalnix/...
ac7a1c49499503c1d93cfc49ea9d5f731c3272ed
chrome/browser/sync/notification_method.cc
chrome/browser/sync/notification_method.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync/notification_method.h" #include "base/logging.h" namespace browser_sync { // TODO(akalin): Eventually change this to ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync/notification_method.h" #include "base/logging.h" namespace browser_sync { const NotificationMethod kDefaultNotificati...
Set default sync notification method to "server".
Set default sync notification method to "server". BUG=34647 TEST=manual Review URL: http://codereview.chromium.org/2822044 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@51494 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
cb2caf36632d6bfc4b341828e91eacdf6aa70447
chrome/browser/views/frame/browser_frame_win.cc
chrome/browser/views/frame/browser_frame_win.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/views/frame/browser_frame_win.h" #include <dwmapi.h> #include <shellapi.h> #include <set> #include "app/resource_bund...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/views/frame/browser_frame_win.h" #include <dwmapi.h> #include <shellapi.h> #include <set> #include "app/resource_bund...
Fix regression where popups and app frames lost their titlebars.
Fix regression where popups and app frames lost their titlebars. TBR=pkasting http://crbug.com/25784 TEST=open any popup window or app frame, should have title bar to drag window. Review URL: http://codereview.chromium.org/328026 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@30029 4ff67af0-8c30-449e-8e8b-ad33...
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
081d2786cd3c16d1c2c534be84c9ca8129b0ed7b
chrome/browser/tabs/default_tab_handler.cc
chrome/browser/tabs/default_tab_handler.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/metrics/nacl_histogram.h" #include "chrome/browser/tabs/default_tab_handler.h" #include "chrome/browser/browser.h" #include "chrome/bro...
// 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/metrics/nacl_histogram.h" #include "chrome/browser/tabs/default_tab_handler.h" #include "chrome/browser/browser.h" #include "chrome/bro...
Fix indentation of a continuation. BUG=none TEST=none
Fix indentation of a continuation. BUG=none TEST=none Review URL: http://codereview.chromium.org/4148010 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@64643 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
a7863117d9535bb7ead8e44dd1230881dbd2e13b
Source/platform/audio/mac/FFTFrameMac.cpp
Source/platform/audio/mac/FFTFrameMac.cpp
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
Change vsmul method from vDSP_ to VectorMatch.
Change vsmul method from vDSP_ to VectorMatch. Inside of VectorMatch::vsmul is calling vDSP_vsmul when MACOS macro is enabled. FFTFrameMac is used both method VectorMatch::vsmul and vDSP_vsmul. It needs to change to VectorMatch for code maintenance. BUG=411128 Review URL: https://codereview.chromium.org/545773002 ...
C++
bsd-3-clause
primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs
f717cb30e03e435918ae19409cf427843b139849
test/correctness/interleave.cpp
test/correctness/interleave.cpp
#include "Halide.h" #include <stdio.h> #include <math.h> using std::vector; using namespace Halide; using namespace Halide::Internal; class CountInterleaves : public IRVisitor { public: int result; CountInterleaves() : result(0) {} using IRVisitor::visit; void visit(const Call *op) { if (op-...
#include "Halide.h" #include <stdio.h> #include <math.h> using std::vector; using namespace Halide; using namespace Halide::Internal; class CountInterleaves : public IRVisitor { public: int result; CountInterleaves() : result(0) {} using IRVisitor::visit; void visit(const Call *op) { if (op-...
Add missing arg to test
Add missing arg to test
C++
mit
kgnk/Halide,lglucin/Halide,dougkwan/Halide,adasworks/Halide,myrtleTree33/Halide,fengzhyuan/Halide,myrtleTree33/Halide,ayanazmat/Halide,tdenniston/Halide,tdenniston/Halide,myrtleTree33/Halide,fengzhyuan/Halide,rodrigob/Halide,ronen/Halide,mcanthony/Halide,kgnk/Halide,psuriana/Halide,delcypher/Halide,psuriana/Halide,feng...
4a27cec8d3468fffb36e640b9782adefcccae414
src/test/confutils.cc
src/test/confutils.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
test unicode parsing
confutils: test unicode parsing Signed-off-by: Colin McCabe <7b35906f1d014e74a9dc8c913eb229119df647aa@dreamhost.com>
C++
lgpl-2.1
ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph
fef70e3136cbe10831d8a47d3fae2ff1f984330a
src/views/ds3_browser.cc
src/views/ds3_browser.cc
/* * ***************************************************************************** * Copyright 2014-2015 Spectra Logic Corporation. 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. A copy of the License *...
/* * ***************************************************************************** * Copyright 2014-2015 Spectra Logic Corporation. 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. A copy of the License *...
Make DS3Browser::OnContextMenuRequested slightly more self-documenting. Remove a comment that is now no longer necessary as a result.
Make DS3Browser::OnContextMenuRequested slightly more self-documenting. Remove a comment that is now no longer necessary as a result.
C++
apache-2.0
SpectraLogic/ds3_browser,Klopsch/ds3_browser,Klopsch/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser
622df1eae9d4954c1b50bcf85fb6a62fb0651667
tests/connection/connection.cpp
tests/connection/connection.cpp
/* Copyright 2015 University of Auckland Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
/* Copyright 2015 University of Auckland Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
add two connection test; test bugfixes
add two connection test; test bugfixes
C++
apache-2.0
cellml/libcellml,nickerso/libcellml,cellml/libcellml,MichaelClerx/libcellml,hsorby/libcellml,hsorby/libcellml,hsorby/libcellml,libcellml/buildbot-testing,libcellml/buildbot-testing,cellml/libcellml,hsorby/libcellml,nickerso/libcellml,nickerso/libcellml,MichaelClerx/libcellml,cellml/libcellml,MichaelClerx/libcellml,nick...
a8404ed7079e2aeeb415129f352d5c8ffe80bef5
Rx/v2/src/rxcpp/operators/rx-filter.hpp
Rx/v2/src/rxcpp/operators/rx-filter.hpp
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #pragma once #if !defined(RXCPP_OPERATORS_RX_FILTER_HPP) #define RXCPP_OPERATORS_RX_FILTER_HPP #include "../rx-includes.hpp" namespace rxcpp { namespace operators { namespace detail...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #pragma once #if !defined(RXCPP_OPERATORS_RX_FILTER_HPP) #define RXCPP_OPERATORS_RX_FILTER_HPP #include "../rx-includes.hpp" namespace rxcpp { namespace operators { namespace detail...
remove move call
remove move call
C++
apache-2.0
ReactiveX/RxCpp,Reactive-Extensions/RxCpp,Reactive-Extensions/RxCpp,Reactive-Extensions/RxCpp,alexeymarkov/RxCpp,alexeymarkov/RxCpp,ReactiveX/RxCpp,ReactiveX/RxCpp,alexeymarkov/RxCpp
e3390eb75b9debf3ee6a1ba24090c5cb44c69a9c
src/arch/x86/m3/system.hh
src/arch/x86/m3/system.hh
/* * Copyright (c) 2015, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must r...
/* * Copyright (c) 2015, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must r...
use fixed-width integers in StartEnv and KernelEnv.
DTU: use fixed-width integers in StartEnv and KernelEnv.
C++
bsd-3-clause
TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu
0c0eb2a6a1ba111f0896dd16a579342fa16f7629
tests/cpp_tests/test_stream.cpp
tests/cpp_tests/test_stream.cpp
/*! * Copyright (c) 2022 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #include <gtest/gtest.h> #include <testutils.h> #include <LightGBM/utils/log.h> #include <LightGBM/c_api.h> #include <LightGBM/dataset.h> #include ...
/*! * Copyright (c) 2022 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #include <gtest/gtest.h> #include <testutils.h> #include <LightGBM/utils/log.h> #include <LightGBM/c_api.h> #include <LightGBM/dataset.h> #include ...
Fix cpp streaming data tests (#5481)
[tests] Fix cpp streaming data tests (#5481)
C++
mit
microsoft/LightGBM,microsoft/LightGBM,microsoft/LightGBM,microsoft/LightGBM,microsoft/LightGBM
0f976557d5101248e6f8d31fefa7ab5dc7a411f7
C++/singleton.cpp
C++/singleton.cpp
// Time: O(1) // Space: O(1) // Thread-Safe, Lazy Initilization class Solution { public: /** * @return: The same instance of this class every time */ static Solution* getInstance() { static Solution *instance = new Solution(); // C++ 11 thread-safe local-static-initialization return ...
// Time: O(1) // Space: O(1) // Thread-Safe, Lazy Initilization class Solution { public: /** * @return: The same instance of this class every time */ static Solution* getInstance() { // C++ 11 thread-safe local-static-initialization. static Solution *instance = new Solution(); ...
Update singleton.cpp
Update singleton.cpp
C++
mit
kamyu104/LintCode,kamyu104/LintCode,jaredkoontz/lintcode,jaredkoontz/lintcode,jaredkoontz/lintcode,kamyu104/LintCode
5df8423f778cff4f8c957e7abf72e85cb1ba218f
src/widget_untrusted.cxx
src/widget_untrusted.cxx
/* * Widget declarations. * * author: Max Kellermann <mk@cm4all.com> */ #include "widget_class.hxx" #include <string.h> static bool widget_check_untrusted_host(const char *untrusted_host, const char *host) { assert(untrusted_host != nullptr); if (host == nullptr) /* untrusted widget not allowed ...
/* * Widget declarations. * * author: Max Kellermann <mk@cm4all.com> */ #include "widget_class.hxx" #include <string.h> static bool widget_check_untrusted_host(const char *untrusted_host, const char *host) { assert(untrusted_host != nullptr); if (host == nullptr) /* untrusted widget not allowed ...
use strncmp() instead of memcmp() to avoid buffer overflows
widget_untrusted: use strncmp() instead of memcmp() to avoid buffer overflows
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
d4dec1ee02f6ec171ae8f4e4ffc9b5cdb2ce697b
plugins/single_plugins/wm-actions.cpp
plugins/single_plugins/wm-actions.cpp
#include <wayfire/view.hpp> #include <wayfire/plugin.hpp> #include <wayfire/output.hpp> #include <wayfire/workspace-manager.hpp> class wayfire_wm_actions_t : public wf::plugin_interface_t { nonstd::observer_ptr<wf::sublayer_t> always_above; wf::activator_callback on_toggle_above = [=](wf::activator_sou...
#include <wayfire/view.hpp> #include <wayfire/plugin.hpp> #include <wayfire/output.hpp> #include <wayfire/workspace-manager.hpp> class wayfire_wm_actions_t : public wf::plugin_interface_t { nonstd::observer_ptr<wf::sublayer_t> always_above; wayfire_view choose_view(wf::activator_source_t source) { ...
support clicking on a view with modifier to set always on top
wm-actions: support clicking on a view with modifier to set always on top
C++
mit
ammen99/wayfire,ammen99/wayfire
4fbb769502af87db81c5af37f5e2c9c786999f76
src/osvr/ClientKit/ServerAutoStartC.cpp
src/osvr/ClientKit/ServerAutoStartC.cpp
/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the L...
/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the L...
Fix for android auto-start API implementation - no longer crashes when a server is already running.
Fix for android auto-start API implementation - no longer crashes when a server is already running.
C++
apache-2.0
godbyk/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core
2550a7074eb18071c7ae577517e1e2e007a6504b
src/x509_helper_fetch.cc
src/x509_helper_fetch.cc
/** * This file is part of the CernVM File System. */ #include "x509_helper_fetch.h" #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <cassert> #include <climits> #include <cstdio> #include <cstring> #include "x509_helper_log.h" using namespace std; // NOLINT /** * For a ...
/** * This file is part of the CernVM File System. */ #include "x509_helper_fetch.h" #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <cassert> #include <climits> #include <cstdio> #include <cstring> #include "x509_helper_log.h" using namespace std; // NOLINT /** * For a ...
Change directory to same as target process first.
Change directory to same as target process first.
C++
bsd-3-clause
cvmfs/cvmfs-x509-helper,cvmfs/cvmfs-x509-helper,cvmfs/cvmfs-x509-helper
bf4f6cf34c11ccccf4936641933e5850e45e270e
tests/mesh/mesh_triangulation.C
tests/mesh/mesh_triangulation.C
#include <libmesh/parallel_implementation.h> // max() #include <libmesh/elem.h> #include <libmesh/mesh.h> #include <libmesh/mesh_triangle_holes.h> #include <libmesh/mesh_triangle_interface.h> #include <libmesh/point.h> #include <libmesh/poly2tri_triangulator.h> #include "test_comm.h" #include "libmesh_cppunit.h" #inc...
#include <libmesh/parallel_implementation.h> // max() #include <libmesh/elem.h> #include <libmesh/mesh.h> #include <libmesh/mesh_triangle_holes.h> #include <libmesh/mesh_triangle_interface.h> #include <libmesh/point.h> #include <libmesh/poly2tri_triangulator.h> #include "test_comm.h" #include "libmesh_cppunit.h" #inc...
Test more Poly2TriTriangulator refinement w/holes
Test more Poly2TriTriangulator refinement w/holes With poly2tri issue 39 fixed, this passes for me
C++
lgpl-2.1
jwpeterson/libmesh,jwpeterson/libmesh,libMesh/libmesh,dschwen/libmesh,jwpeterson/libmesh,dschwen/libmesh,jwpeterson/libmesh,libMesh/libmesh,libMesh/libmesh,libMesh/libmesh,libMesh/libmesh,dschwen/libmesh,jwpeterson/libmesh,dschwen/libmesh,libMesh/libmesh,jwpeterson/libmesh,jwpeterson/libmesh,libMesh/libmesh,jwpeterson/...
c35d7e67d0dbf23448a56032ae8f2c15d6ec8ccb
include/etl/op/unary/plus.hpp
include/etl/op/unary/plus.hpp
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
Fix plus in GPU mode for scalars
Fix plus in GPU mode for scalars
C++
mit
wichtounet/etl,wichtounet/etl
481b6b7958937cd5134dab47d1a58748335d87fb
include/mapnik/image_view.hpp
include/mapnik/image_view.hpp
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
remove uneeded/unused nonconst access to image_view - amends 0d2eb9cb5f2d71
remove uneeded/unused nonconst access to image_view - amends 0d2eb9cb5f2d71
C++
lgpl-2.1
manz/python-mapnik,lightmare/mapnik,rouault/mapnik,tomhughes/mapnik,pramsey/mapnik,rouault/mapnik,mapnik/mapnik,yohanboniface/python-mapnik,mapnik/python-mapnik,rouault/mapnik,Airphrame/mapnik,manz/python-mapnik,Airphrame/mapnik,mbrukman/mapnik,sebastic/python-mapnik,mbrukman/mapnik,tomhughes/python-mapnik,pnorman/mapn...
9cf1b62055a194dc6fc199f47b6f8efc96e75f9f
src/runtime/opencl/opencl_device_api.cc
src/runtime/opencl/opencl_device_api.cc
/*! * Copyright (c) 2017 by Contributors * \file opencl_device_api.cc */ #include <tvm/runtime/registry.h> #include <dmlc/thread_local.h> #include "opencl_common.h" namespace tvm { namespace runtime { namespace cl { OpenCLThreadEntry* OpenCLWorkspace::GetThreadEntry() { return OpenCLThreadEntry::ThreadLocal(); ...
/*! * Copyright (c) 2017 by Contributors * \file opencl_device_api.cc */ #include <tvm/runtime/registry.h> #include <dmlc/thread_local.h> #include "opencl_common.h" namespace tvm { namespace runtime { namespace cl { OpenCLThreadEntry* OpenCLWorkspace::GetThreadEntry() { return OpenCLThreadEntry::ThreadLocal(); ...
set type_key even when platform is not available (#2741)
[RUNTIME][OPENCL] set type_key even when platform is not available (#2741)
C++
apache-2.0
Laurawly/tvm-1,Laurawly/tvm-1,Laurawly/tvm-1,Laurawly/tvm-1,Huyuwei/tvm,Huyuwei/tvm,sxjscience/tvm,Huyuwei/tvm,dmlc/tvm,dmlc/tvm,tqchen/tvm,dmlc/tvm,Laurawly/tvm-1,sxjscience/tvm,Huyuwei/tvm,Laurawly/tvm-1,sxjscience/tvm,Huyuwei/tvm,dmlc/tvm,dmlc/tvm,tqchen/tvm,Laurawly/tvm-1,Huyuwei/tvm,tqchen/tvm,sxjscience/tvm,tqche...
c278f7391a24ad680ea4017755887c7058a6f91f
include/zmsg/zmsg_fs_spec.hpp
include/zmsg/zmsg_fs_spec.hpp
#pragma once #include "zmsg_types.hpp" namespace zmsg { template<> struct zmsg<mid_t::set_fs_spec> { public: uint16_t window_x_row; // unit: pixel uint16_t window_x_col; // unit: pixel uint16_t window_y_row; // unit: pixel uint16_t window_y_col; // unit: pixel uint32_t nm_per_pixel; // unit: nm/pixel...
#pragma once #include "zmsg_types.hpp" namespace zmsg { template<> struct zmsg<mid_t::set_fs_spec> { public: uint16_t window_x_row; // unit: pixel uint16_t window_x_col; // unit: pixel uint16_t window_y_row; // unit: pixel uint16_t window_y_col; // unit: pixel uint32_t nm_per_pixel; // unit: nm/pixel...
revert last change
revert last change Signed-off-by: Yi Qingliang <36380975b124e1c123f6f25e4b18a8f5e5597b95@tom.com>
C++
apache-2.0
walkthetalk/libem,walkthetalk/libem,walkthetalk/libem
26bcad7df70c2c26098aa6a8dd191b7179e40b37
src/grid/VoxelGridMap.hpp
src/grid/VoxelGridMap.hpp
#pragma once #include "GridMap.hpp" #include "DiscreteTree.hpp" namespace maps { namespace grid { template<class CellT> class VoxelGridMap : public GridMap< DiscreteTree<CellT> > { typedef GridMap< DiscreteTree<CellT> > _Base; public: VoxelGridMap(const Vector2ui &num_cells, const Eigen::Vect...
#pragma once #include "GridMap.hpp" #include "DiscreteTree.hpp" namespace maps { namespace grid { template<class CellT> class VoxelGridMap : public GridMap< DiscreteTree<CellT> > { typedef GridMap< DiscreteTree<CellT> > _Base; public: VoxelGridMap(const Vector2ui &num_cells, const Eigen::Vect...
use default tree to lookup the index and cell center
use default tree to lookup the index and cell center This allows to get valid values even if the cells are outside of the defined grid. Even if every discrete tree has its own resolution, VoxelGridMap requires them to have the same
C++
bsd-2-clause
envire/slam-maps,envire/slam-maps
e773b0486a4784994a900c03a2620baf2775ac9d
src/gui/kernel/qt_mac.cpp
src/gui/kernel/qt_mac.cpp
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercia...
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercia...
Handle monochrome CGColors as well.
Handle monochrome CGColors as well. It seems that snow leopard is storing some colors as grayscale. This means that we need to handle them or otherwise things go very black. It's an easy case to do as well, so just do it. Reviewed-by: Bradley T. Hughes
C++
lgpl-2.1
igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,KDE/qt,radekp/qt,RLovelett/qt,igor-sfdc/qt-wk,radekp/qt,RLovelett/qt,radekp/qt,radekp/qt,pruiz/wkhtmltopdf-qt,KDE/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,KDE/qt,radekp/qt,radekp/qt,igor-sfdc/qt-wk,RLovelett/qt,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,RLovelett/qt,RLovelet...
1200ef4fab3b4cde88b3c32dd44256d1a90c7e4a
stdlib/runtime/Stubs.cpp
stdlib/runtime/Stubs.cpp
//===--- Stubs.cpp - Swift Language ABI Runtime Stubs ---------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
//===--- Stubs.cpp - Swift Language ABI Runtime Stubs ---------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Move benchmark machinery out of stdlib.
Move benchmark machinery out of stdlib. Swift SVN r7961
C++
apache-2.0
gottesmm/swift,Jnosh/swift,jtbandes/swift,gribozavr/swift,KrishMunot/swift,hughbe/swift,natecook1000/swift,cbrentharris/swift,khizkhiz/swift,Ivacker/swift,karwa/swift,swiftix/swift,tjw/swift,calebd/swift,modocache/swift,Jnosh/swift,kentya6/swift,mightydeveloper/swift,karwa/swift,karwa/swift,zisko/swift,calebd/swift,jop...
4fffee7d86d05940211beb5edb67ca3bec403b5b
stk500/stk500session.cpp
stk500/stk500session.cpp
#include "stk500session.h" #include <QDebug> #include <QApplication> #include <QSerialPortInfo> #include "progressdialog.h" stk500Session::stk500Session(QWidget *owner) : QObject(owner) { process = NULL; } bool stk500Session::isOpen() { return (process != NULL && !process->closeRequested); } bool stk500S...
#include "stk500session.h" #include <QDebug> #include <QApplication> #include <QSerialPortInfo> #include "progressdialog.h" stk500Session::stk500Session(QWidget *owner) : QObject(owner) { process = NULL; } bool stk500Session::isOpen() { return (process != NULL && !process->closeRequested); } bool stk500S...
Replace status update routines for consistency
Replace status update routines for consistency
C++
mit
Phoenard/Phoenard-Toolkit,Phoenard/Phoenard-Toolkit
1ca6e4384312f5420f718401517368c86962cb1e
COFF/ICF.cpp
COFF/ICF.cpp
//===- ICF.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- ICF.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
use parallelForEach{,N}
[COFF] ICF: use parallelForEach{,N} Summary: They have an additional `ThreadsEnabled` check, which does not matter much. Reviewers: pcc, ruiu, rnk Reviewed By: ruiu Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D54812 git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@347587 91177308...
C++
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
8e3d0547ac93fc49076330d231109d30168a0b45
src/software/SfM/main_PairGenerator.cpp
src/software/SfM/main_PairGenerator.cpp
// This file is part of OpenMVG, an Open Multiple View Geometry C++ library. // Copyright (c) 2019 Romuald PERROT // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #...
// This file is part of OpenMVG, an Open Multiple View Geometry C++ library. // Copyright (c) 2019 Romuald PERROT // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #...
Fix typo
Fix typo
C++
mpl-2.0
openMVG/openMVG,openMVG/openMVG,openMVG/openMVG,openMVG/openMVG,openMVG/openMVG
653bb3d64057f11c5c9a8f539ba57be549097cee
src/wallet/test/wallet_test_fixture.cpp
src/wallet/test/wallet_test_fixture.cpp
#include "wallet/test/wallet_test_fixture.h" #include "rpc/server.h" #include "wallet/db.h" #include "wallet/wallet.h" WalletTestingSetup::WalletTestingSetup(const std::string& chainName): TestingSetup(chainName) { bitdb.MakeMock(); bool fFirstRun; pwalletMain = new CWallet("wallet_test.dat"); pw...
// Copyright (c) 2016 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 "wallet/test/wallet_test_fixture.h" #include "rpc/server.h" #include "wallet/db.h" #include "wallet/wallet.h" WalletTes...
Add copyright header to wallet_text_fixture.cpp
Add copyright header to wallet_text_fixture.cpp I created the file but forgot to add this header.
C++
mit
Kogser/bitcoin,r8921039/bitcoin,yenliangl/bitcoin,MarcoFalke/bitcoin,dscotese/bitcoin,peercoin/peercoin,sebrandon1/bitcoin,argentumproject/argentum,fsb4000/bitcoin,dgarage/bc2,nbenoit/bitcoin,spiritlinxl/BTCGPU,bitcoinec/bitcoinec,zcoinofficial/zcoin,RHavar/bitcoin,guncoin/guncoin,21E14/bitcoin,svost/bitcoin,litecoin-p...
ee167908fffc899bb5bdb40f2f3694e07e101614
downloadplugin.cpp
downloadplugin.cpp
#include "downloadplugin.h" #include <QDebug> #include <QFile> #include <QUuid> #include <QFileInfo> #include <QTimer> #include <QDesktopServices> #include "json.h" using QtJson::JsonObject; using QtJson::JsonArray; DownloadPlugin::DownloadPlugin(QObject * parent) : DownloadInterface (parent) { } Q_EXPORT_PLUG...
#include "downloadplugin.h" #include <QDebug> #include <QFile> #include <QUuid> #include <QFileInfo> #include <QTimer> #include <QDesktopServices> #include "json.h" using QtJson::JsonObject; using QtJson::JsonArray; DownloadPlugin::DownloadPlugin(QObject * parent) : DownloadInterface (parent) { } Q_EXPORT_PLUG...
delete file if exists when ExistThenOverwrite
delete file if exists when ExistThenOverwrite
C++
mit
arifsetiawan/qt-download-plugin
fb3929079f10ed28e90ee8b74e77d695b493129e
echo_srv/server.cc
echo_srv/server.cc
#include "server.hh" WebSock_Server::WebSock_Server(string ip, int port, int max){ clients = new client_info[max]; max_ = max; for(int i=0;i<max;i++){ clients[i].fd = -1; } bzero(&serv_address, sizeof(serv_address)); serv_address.sin_family = AF_INET; inet_pton(AF_INET, ip.c_str(), &(serv_address.sin_a...
#include "server.hh" WebSock_Server::WebSock_Server(string ip, int port, int max){ clients = new client_info[max]; max_ = max; for(int i=0;i<max;i++){ clients[i].fd = -1; } bzero(&serv_address, sizeof(serv_address)); serv_address.sin_family = AF_INET; inet_pton(AF_INET, ip.c_str(), &(serv_address.sin_a...
Update server.cc
Update server.cc
C++
bsd-2-clause
anton4o123/websocket-library
484582ad0ef09aaf864069e0403440ea2aeaac7b
SSPSolution/SSPSolution/LeverEntity.cpp
SSPSolution/SSPSolution/LeverEntity.cpp
#include "LeverEntity.h" LeverEntity::LeverEntity(){} LeverEntity::~LeverEntity(){} int LeverEntity::Initialize(int entityID, PhysicsComponent * pComp, GraphicsComponent * gComp, float interactionDistance) { int result = 0; this->InitializeBase(entityID, pComp, gComp, nullptr); this->m_isActive = 0; this->m_need...
#include "LeverEntity.h" LeverEntity::LeverEntity(){} LeverEntity::~LeverEntity(){} int LeverEntity::Initialize(int entityID, PhysicsComponent * pComp, GraphicsComponent * gComp, float interactionDistance) { int result = 0; this->InitializeBase(entityID, pComp, gComp, nullptr); this->m_isActive = 0; this->m_need...
REMOVE play sound on SetSyncState for lever
REMOVE play sound on SetSyncState for lever
C++
apache-2.0
Chringo/SSP,Chringo/SSP
13cd9d579520b647c54d131f32e1622c1e59fb92
src/Decryptor.cpp
src/Decryptor.cpp
#include "stdafx.h" using std::vector; static Decryptor* instance = nullptr; /* static */ Decryptor* Decryptor::Get() { return instance; } /* static */ void Decryptor::Create(GMPDecryptorHost* aHost) { assert(!Get()); instance = new Decryptor(aHost); } Decryptor::Decryptor(GMPDecryptorHo...
#include "stdafx.h" using std::vector; static Decryptor* instance = nullptr; /* static */ Decryptor* Decryptor::Get() { return instance; } /* static */ void Decryptor::Create(GMPDecryptorHost* aHost) { assert(!Get()); instance = new Decryptor(aHost); } Decryptor::Decryptor(GMPDecryptorHo...
Make testing timer not depend on testing storage, since it doesn't.
Make testing timer not depend on testing storage, since it doesn't.
C++
apache-2.0
cpearce/gmp-clearkey,cpearce/gmp-clearkey,cpearce/gmp-clearkey
a2118e22baaaeb3b4e6c3f00fa7216ffecb342a9
android/runtime/v8/src/native/JNIUtil.cpp
android/runtime/v8/src/native/JNIUtil.cpp
/** * Appcelerator Titanium Mobile * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include <jni.h> #include <stdio.h> #include "JNIUtil.h" #include "AndroidUtil.h" #de...
/** * Appcelerator Titanium Mobile * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include <jni.h> #include <stdio.h> #include "JNIUtil.h" #include "AndroidUtil.h" #de...
fix constructor signature for v8FunctionInitMethod
fix constructor signature for v8FunctionInitMethod
C++
apache-2.0
collinprice/titanium_mobile,jhaynie/titanium_mobile,openbaoz/titanium_mobile,FokkeZB/titanium_mobile,FokkeZB/titanium_mobile,KoketsoMabuela92/titanium_mobile,hieupham007/Titanium_Mobile,formalin14/titanium_mobile,jhaynie/titanium_mobile,falkolab/titanium_mobile,benbahrenburg/titanium_mobile,bhatfield/titanium_mobile,in...
cc70c3b454a722083b92546ee092104da5317455
tensorflow/core/util/use_cudnn.cc
tensorflow/core/util/use_cudnn.cc
/* Copyright 2015 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 2015 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...
Update the lambda func
Update the lambda func
C++
apache-2.0
tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,sarvex...
0e838c3cea0db3babf2694e3798045e0d8a37a87
fpga_interchange/xdc.cc
fpga_interchange/xdc.cc
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2019 gatecat <gatecat@ds0.me> * Copyright (C) 2021 Symbiflow Authors * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice ...
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2019 gatecat <gatecat@ds0.me> * Copyright (C) 2021 Symbiflow Authors * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice ...
Add dummy function to parse creat_clock in XDC files
Add dummy function to parse creat_clock in XDC files Signed-off-by: Maciej Dudek <a98c68ec12e1b0de34de4f65b9790a9646ad7891@antmicro.com>
C++
isc
SymbiFlow/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr,SymbiFlow/nextpnr
242858b76779e01034087019110c5bc6b705d0de
src/GrayScott.cpp
src/GrayScott.cpp
#include <map> #include <vector> #include "GrayScott.h" #include "Drawer.h" #include "Util.h" #include <algorithm> #define MAX_ROLLING_MULTIPLIER (2.0 / (35 * 5 + 1)) #define NUM_INIT_ISLANDS 5 #define ISLAND_SIZE 20 #define MAX_SPEED 40 // determined empirically to allow 30fps #ifdef __arm__ #define vmul(x, y) ...
#include <map> #include <vector> #include "GrayScott.h" #include "Drawer.h" #include "Util.h" #include <algorithm> #define MAX_ROLLING_MULTIPLIER (2.0 / (35 * 5 + 1)) #define NUM_INIT_ISLANDS 5 #define ISLAND_SIZE 20 #define MAX_SPEED 40 // determined empirically to allow 30fps #ifdef __arm__ #define vmul(x, y) ...
change gray scott param ranges
change gray scott param ranges
C++
mit
gregfriedland/AuroraV6,gregfriedland/AuroraV6
22760105ab009ee5c59dc8c1d2f1fe4a3299e51a
Utilities/vxl/vnl/tests/test_resize.cxx
Utilities/vxl/vnl/tests/test_resize.cxx
// This is vxl/vnl/tests/test_resize.cxx /* fsm */ #include <vcl_iostream.h> #include <vnl/vnl_vector.h> #include <vnl/vnl_matrix.h> #include <testlib/testlib_test.h> #if 0 # include <vnl/vnl_resize.h> # define vnl_resize_v vnl_resize # define vnl_resize_m vnl_resize #else # define vnl_resize_v(v, n) (v).resize(n) # ...
// This is vxl/vnl/tests/test_resize.cxx /* fsm */ #include <vcl_iostream.h> #include <vnl/vnl_vector.h> #include <vnl/vnl_matrix.h> #include <testlib/testlib_test.h> #if 0 # include <vnl/vnl_resize.h> # define vnl_resize_v vnl_resize # define vnl_resize_m vnl_resize #else # define vnl_resize_v(v, n) (v).resize(n) # ...
fix UMR purify error
BUG: fix UMR purify error
C++
apache-2.0
fuentesdt/InsightToolkit-dev,BlueBrain/ITK,cpatrick/ITK-RemoteIO,vfonov/ITK,BRAINSia/ITK,wkjeong/ITK,BlueBrain/ITK,rhgong/itk-with-dom,CapeDrew/DCMTK-ITK,stnava/ITK,ajjl/ITK,stnava/ITK,ajjl/ITK,msmolens/ITK,daviddoria/itkHoughTransform,LucHermitte/ITK,fuentesdt/InsightToolkit-dev,jmerkow/ITK,hjmjohnson/ITK,Kitware/ITK,...
061fce3055e6d5cb9aad74350353632a40ad229b
test/product_trsm.cpp
test/product_trsm.cpp
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Fre...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Fre...
add checks for on the right triangular solving with matrices
add checks for on the right triangular solving with matrices
C++
bsd-3-clause
TSC21/Eigen,pasuka/eigen,pasuka/eigen,TSC21/Eigen,toastedcrumpets/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen,ritsu1228/eigen,pasuka/eigen,pasuka/eigen,Zefz/eigen,ritsu1228/eigen,toastedcrumpets/eigen,TSC21/Eigen,ROCmSoftwarePlatform/hipeigen,toastedcrumpets/eigen,Zefz/eigen,ROCmSoftwarePlatform/hi...
71d6af9f46f4216bba5ddf956e645d28e669f087
test/sqlite.gtest.cpp
test/sqlite.gtest.cpp
#include <gtest/gtest.h> #include <chrono> #include "stl.hpp" #include "src/sqlite/db.hpp" #include <iostream> using std::cout; using std::endl; using namespace mx3::sqlite; TEST(sqlite_lib, can_query_version_info) { EXPECT_EQ(libversion(), "3.8.10.2"); EXPECT_EQ(sourceid(), "2015-05-20 18:17:19 2ef4f3a5b1d1...
#include <gtest/gtest.h> #include <chrono> #include "stl.hpp" #include "src/sqlite/db.hpp" #include <iostream> using std::cout; using std::endl; using namespace mx3::sqlite; TEST(sqlite_lib, can_query_version_info) { EXPECT_EQ(libversion(), "3.8.11.1"); EXPECT_EQ(sourceid(), "2015-07-29 20:00:57 cf538e2783e4...
update sqlite version tests after upgrade
test: update sqlite version tests after upgrade
C++
mit
libmx3/mx3,libmx3/mx3,libmx3/mx3
3868af7758f093d9919eb95157c4c6ef43597ad3
src/UDPSocket.cpp
src/UDPSocket.cpp
#include "network_os.h" #include "net/UDPSocket.hpp" namespace network { UDPSocket::UDPSocket() : bound(false), handle(0), af(NETA_UNDEF) { } UDPSocket::~UDPSocket() { Close(); } bool UDPSocket::Init(ADDRTYPE afn) { if(handle) { Close(); } this->af = afn; int sc; sc = socket(afn, SOCK_DGRAM, IPPR...
#include "network_os.h" #include "net/UDPSocket.hpp" namespace network { UDPSocket::UDPSocket() : bound(false), handle(0), af(NETA_UNDEF) { } UDPSocket::~UDPSocket() { Close(); } bool UDPSocket::Init(ADDRTYPE afn) { if(handle) { Close(); } this->af = afn; int sc; sc = socket(afn, SOCK_DGRAM, IPPR...
Use socklen_t in UDP
Use socklen_t in UDP
C++
mit
Meisaka/NetPort
2d5c445df4b7245ed2dd65bd3d988e46e4e27f8e
test/test_charset.cpp
test/test_charset.cpp
#include "task.h" #include "utest.h" #include "text/config.h" #include "vision/color.h" #include "math/epsilon.h" #include "tasks/charset.h" using namespace nano; NANO_BEGIN_MODULE(test_charset) NANO_CASE(construction) { // <charset, color mode, number of outputs/classes/characters> std::vector<std::...
#include "task.h" #include "utest.h" #include "text/config.h" #include "vision/color.h" #include "math/epsilon.h" #include "tasks/charset.h" using namespace nano; NANO_BEGIN_MODULE(test_charset) NANO_CASE(construction) { // <charset, color mode, number of outputs/classes/characters> std::vector<std::...
add unit test for minibatch generation
add unit test for minibatch generation
C++
mit
accosmin/nano,accosmin/nanocv,accosmin/nanocv,accosmin/nanocv,accosmin/nano,accosmin/nano
f66fc7ec279294b57a570d2bc76549256dd4fd71
test/test_charset.cpp
test/test_charset.cpp
#include "utest.hpp" #include "tasks/task_charset.h" NANO_BEGIN_MODULE(test_charset) NANO_CASE(construction) { using namespace nano; // <charset, color mode, number of outputs/classes/characters> std::vector<std::tuple<charset, color_mode, tensor_size_t>> configs; configs.emplace_back...
#include "utest.hpp" #include "task_iterator.h" #include "tasks/task_charset.h" using namespace nano; NANO_BEGIN_MODULE(test_charset) NANO_CASE(construction) { // <charset, color mode, number of outputs/classes/characters> std::vector<std::tuple<charset, color_mode, tensor_size_t>> configs; c...
extend unit test
extend unit test
C++
mit
accosmin/nano,accosmin/nanocv,accosmin/nanocv,accosmin/nano,accosmin/nano,accosmin/nanocv
79330bcbded064b76ac7fb78850d72b04c7ba73d
tntdb/src/oracle/connection.cpp
tntdb/src/oracle/connection.cpp
/* * Copyright (C) 2007 Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * As a sp...
/* * Copyright (C) 2007 Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * As a sp...
clean up of oracle connection in proper order
clean up of oracle connection in proper order git-svn-id: 668645f5c615c5338f34c47d21d9e584f02cf8c0@161 8aebba32-5d12-0410-a889-bbfed4e15866
C++
lgpl-2.1
maekitalo/tntdb,OlafRadicke/tntdb,OlafRadicke/tntdb,maekitalo/tntdb
2841aaae7e5d53cc5b634873a8d689119556c875
src/base/trace.hh
src/base/trace.hh
/* * Copyright (c) 2014, 2019 ARM Limited * All rights reserved * * Copyright (c) 2001-2006 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: red...
/* * Copyright (c) 2014, 2019 ARM Limited * All rights reserved * * Copyright (c) 2001-2006 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: red...
create DPRINTF_UNCONDITIONAL
base: create DPRINTF_UNCONDITIONAL This is similar to DPRINTFN, but it also prints a given flag to allow communicating to users which flag enabled a given log. This is useful for logs which are enabled with DTRACE instead of directly with DPRINTF. Change-Id: Ife2d2ea88aede1cdcb713f143340a8788a755b01 Reviewed-on: htt...
C++
bsd-3-clause
gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5
cf5b1c27395f272ce1deaeee2968bfe1969bb84b
src/benchmark.cpp
src/benchmark.cpp
/* For symbol_thingey */ #include <chrono> #define FUTURE_TRACE 0 #include <cps/future.h> #include <iostream> using namespace cps; int main(void) { auto start = std::chrono::high_resolution_clock::now(); const int count = 100000; for(int i = 0; i < count; ++i) { auto f = future<std::string>::create_shared(); ...
/* For symbol_thingey */ #include <chrono> #define FUTURE_TRACE 0 #include <cps/future.h> #include <iostream> using namespace cps; int main(void) { auto start = std::chrono::high_resolution_clock::now(); const int count = 100000; for(int i = 0; i < count; ++i) { auto f = future<std::string>::create_shared(); ...
Clean up benchmark a bit
Clean up benchmark a bit
C++
mit
tm604/cps-future,tm604/cps-future
d64f8e6e8c5466320c2d050dc695678c23b27b75
src/binsearch.hpp
src/binsearch.hpp
#include <iterator> template<class RandomIt, class Val> RandomIt binsearch(RandomIt fst, RandomIt lst, const Val& val) { if (fst == lst) return lst; auto lft = fst, rgt = std::prev(lst); while (lft <= rgt) { const auto mid = std::next(lft, std::distance(lft, rgt) / 2); if (val == *mid) ...
#include <iterator> template<class RandomIt, class Val> RandomIt binsearch(RandomIt fst, RandomIt lst, const Val& val) { if (fst == lst) return lst; auto lft = fst, rgt = std::prev(lst); while (lft <= rgt) { const auto mid = std::next(lft, std::distance(lft, rgt) / 2); if (val == *mid) ...
Remove exrta variables from xupper_bound
Remove exrta variables from xupper_bound
C++
mit
all3fox/algos-cpp
6dc181fad5f782a319a60b631272f7630e6fd180
src/bootimage.cpp
src/bootimage.cpp
/* Copyright (c) 2008, Avian Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. There is NO WARRANTY for this software. See licens...
/* Copyright (c) 2008, Avian Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. There is NO WARRANTY for this software. See licens...
move allocation zone from makeCodeImage to writeBootImage so it stays in scope until after updateConstants is called
move allocation zone from makeCodeImage to writeBootImage so it stays in scope until after updateConstants is called
C++
isc
marcinolawski/avian,MaartenR/avian,joshuawarner32/avian,MaartenR/avian,joshuawarner32/avian,ucdseniordesign/avian,getlantern/avian,dicej/avian,dicej/avian,minor-jason/avian,getlantern/avian,dicej/avian,badlogic/avian,bigfatbrowncat/avian-pack.avian,ucdseniordesign/avian,bgould/avian,lwahlmeier/avian,bgould/avian,marcin...
22374bd46a431687d58c016d4d4fd0b7776fb096
tests/DataRefTest.cpp
tests/DataRefTest.cpp
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkData.h" #include "SkDataSet.h" #include "SkDataTable.h" #include "SkStream.h" #include "SkOrderedReadBuffer.h" #include "SkOrderedWriteBuffer.h" ...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkData.h" #include "SkDataSet.h" #include "SkDataTable.h" #include "SkStream.h" #include "SkOrderedReadBuffer.h" #include "SkOrderedWriteBuffer.h" ...
remove printf
remove printf
C++
bsd-3-clause
csulmone/skia,csulmone/skia,csulmone/skia,csulmone/skia
d67fb006cebbd8d4c07a6e66b4c06c64d30d527f
src/burstsort.cpp
src/burstsort.cpp
/* * Copyright 2008 by Tommi Rantala <tommi.rantala@cs.helsinki.fi> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to u...
/* * Copyright 2008 by Tommi Rantala <tommi.rantala@cs.helsinki.fi> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to u...
use smaller container block size in burstsort_superalphabet_vector_block()
use smaller container block size in burstsort_superalphabet_vector_block()
C++
mit
rantala/string-sorting,rantala/string-sorting,rantala/string-sorting,rantala/string-sorting
e54deacf1a09ccafe1bcc48ec35ce6866b2a775d
toml/get.hpp
toml/get.hpp
#ifndef TOML11_GET #define TOML11_GET #include "value.hpp" #include <algorithm> namespace toml { template<typename T, toml::value_t vT = toml::detail::check_type<T>(), typename std::enable_if<(vT != toml::value_t::Unknown && vT != value_t::Empty), std::nullptr_t>::type = nullptr> inline T get(const ...
#ifndef TOML11_GET #define TOML11_GET #include "value.hpp" #include <algorithm> namespace toml { template<typename T, typename std::enable_if< detail::is_exact_toml_type<T>::value, std::nullptr_t>::type = nullptr> inline T& get(value& v) { constexpr value_t kind = detail::check_type<T>(); return v.cast<ki...
simplify SFINAE expressions in toml::get
simplify SFINAE expressions in toml::get
C++
mit
ToruNiina/toml11
39ea7b3cf80372a3457c4c3d04773952d5be99af
ui/gfx/linux_util_unittest.cc
ui/gfx/linux_util_unittest.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 "ui/gfx/linux_util.h" #include "base/basictypes.h" #include "testing/gtest/include/gtest/gtest.h" namespace gfx { TEST(LinuxUtilTest, Conv...
// 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 "ui/gfx/linux_util.h" #include "base/basictypes.h" #include "testing/gtest/include/gtest/gtest.h" namespace gfx { TEST(LinuxUtilTest, Conv...
Add unittests for EscapeWindowsStyleAccelerators() function.
ui/gfx: Add unittests for EscapeWindowsStyleAccelerators() function. TEST=ui_unittests --gtest_filter=LinuxUtilTest* R=asvitkine@chromium.org Review URL: https://chromiumcodereview.appspot.com/9839094 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@128825 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,Jonekee/chromium.src,crosswalk-project/chr...
94b7d495e11f2d60c4d3fdcabbbef46fd394e522
urbackupclient/ClientHash.cpp
urbackupclient/ClientHash.cpp
#include "ClientHash.h" #include "../Interface/File.h" #include "../urbackupcommon/os_functions.h" #include <memory> #include <cstring> #include <assert.h> #include "../urbackupcommon/ExtentIterator.h" #include "../fileservplugin/chunk_settings.h" #include "../stringtools.h" #include "../common/adler32.h" #in...
#include "ClientHash.h" #include "../Interface/File.h" #include "../urbackupcommon/os_functions.h" #include <memory> #include <cstring> #include <assert.h> #include "../urbackupcommon/ExtentIterator.h" #include "../fileservplugin/chunk_settings.h" #include "../stringtools.h" #include "../common/adler32.h" #in...
Add some debug info to client hashing
Add some debug info to client hashing
C++
agpl-3.0
uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend
351389b0d2a82df75a692de5fe2a3f31c6a62cab
tests/formats/xyz.cpp
tests/formats/xyz.cpp
#include <streambuf> #include <fstream> #include "catch.hpp" #include "Chemharp.hpp" using namespace harp; #include <boost/filesystem.hpp> namespace fs=boost::filesystem; #define XYZDIR SRCDIR "/files/xyz/" TEST_CASE("Read files in XYZ format", "[XYZ]"){ auto file = Trajectory(XYZDIR"helium.xyz"); Frame fr...
#include <streambuf> #include <fstream> #include "catch.hpp" #include "Chemharp.hpp" using namespace harp; #include <boost/filesystem.hpp> namespace fs=boost::filesystem; #define XYZDIR SRCDIR "/files/xyz/" TEST_CASE("Read files in XYZ format", "[XYZ]"){ auto file = Trajectory(XYZDIR"helium.xyz"); Frame fr...
Test writing more than one frame to a file in XYZ format
Test writing more than one frame to a file in XYZ format
C++
bsd-3-clause
chemfiles/chemfiles,Luthaf/Chemharp,chemfiles/chemfiles,Luthaf/Chemharp,lscalfi/chemfiles,Luthaf/Chemharp,lscalfi/chemfiles,chemfiles/chemfiles,lscalfi/chemfiles,chemfiles/chemfiles,lscalfi/chemfiles
b88851628eabb00b90a745cc6cfef66dfd4384af
util/statetrace/statetrace.cc
util/statetrace/statetrace.cc
/* * Copyright (c) 2006-2007 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * not...
/* * Copyright (c) 2006-2007 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * not...
Make sure the current state is loaded to print the initial stack frame. The early call to child->step() was removed earlier because it confused the new differences-only protocol ARM sendState() was using. It's necessary that that gets called at least once before attempting to print the initial stack frame, though, beca...
Statetrace: Make sure the current state is loaded to print the initial stack frame. The early call to child->step() was removed earlier because it confused the new differences-only protocol ARM sendState() was using. It's necessary that that gets called at least once before attempting to print the initial stack frame, ...
C++
bsd-3-clause
andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin
cf4787478caf77eb205626c64f3b9ab138e2369c
src/sim/byteswap.hh
src/sim/byteswap.hh
/* * Copyright (c) 2004 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, ...
/* * Copyright (c) 2004 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, ...
correct check for endianess
sim: correct check for endianess Committed by: Nilay Vaish <nilay@cs.wisc.edu> (transplanted from 20686329e67335885ee645655494e5ec952ff615)
C++
bsd-3-clause
andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin
f0e4380fc70b125cedb28fe43e06fa4f4177ccf0
tests/source/init.cpp
tests/source/init.cpp
#include <Matrix.hpp> #include <catch.hpp> #include <fstream> SCENARIO("Matrix init", "[init]") { GIVEN("The number of lines and columns") { auto lines = 36; auto columns = 39; WHEN("Create instansce of Matrix") { Matrix matrix(lines, columns); THEN("The number of lines and columns must be preserved") { ...
#include <Matrix.hpp> #include <catch.hpp> #include <fstream> SCENARIO("Matrix init", "[init]") { GIVEN("The number of lines and columns") { auto lines = 36; auto columns = 39; WHEN("Create instansce of Matrix") { Matrix matrix(lines, columns); THEN("The number of lines and columns must be preserved") { ...
Update init.cpp
Update init.cpp
C++
mit
ArtemKokorinStudent/External-sort,ArtemKokorinStudent/StackW
ab6b3341df28dfda8a01370116be4b6335db8aa6
src/odbc_result.cpp
src/odbc_result.cpp
/* Copyright (c) 2013, Dan VerWeire<dverweire@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE ...
/* Copyright (c) 2013, Dan VerWeire<dverweire@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE ...
throw exception
throw exception
C++
mit
elkorep/node-ibm_db,elkorep/node-ibm_db,qpresley/node-ibm_db,ibmdb/node-ibm_db,Papercloud/node-odbc,Akpotohwo/node-ibm_db,bustta/node-odbc,jbaxter0810/node-odbc,silveirado/node-ibm_db,silveirado/node-ibm_db,dfbaskin/node-odbc,dfbaskin/node-odbc,qpresley/node-ibm_db,elkorep/node-ibm_db,bzuillsmith/node-odbc,abilioolivei...
3350646e32ca7ff29ef48403e16e478bc8d8d089
src/osm_profile.cpp
src/osm_profile.cpp
#include <routingkit/osm_profile.h> namespace RoutingKit{ namespace{ bool str_eq(const char*l, const char*r){ return !strcmp(l, r); } bool str_wild_char_eq(const char*l, const char*r){ while(*l != '\0' && *r != '\0'){ if(*l != '?' && *r != '?' && *l != *r) return false; ++l; ++r; } return *l ...
#include <routingkit/osm_profile.h> namespace RoutingKit{ namespace{ bool str_eq(const char*l, const char*r){ return !strcmp(l, r); } bool str_wild_char_eq(const char*l, const char*r){ while(*l != '\0' && *r != '\0'){ if(*l != '?' && *r != '?' && *l != *r) return false; ++l; ++r; } return *l ...
Check if route is not null
Check if route is not null
C++
bsd-2-clause
RoutingKit/RoutingKit,RoutingKit/RoutingKit,RoutingKit/RoutingKit
150b62372ec38c0d47f08941dfedd1048070689f
src/precompiled.ipp
src/precompiled.ipp
// This file is part of Poseidon. // Copyleft 2020, LH_Mouse. All wrongs reserved. #ifndef POSEIDON_PRECOMPILED_ #define POSEIDON_PRECOMPILED_ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <rocket/cow_string.hpp> #include <rocket/cow_vector.hpp> #include <rocket/cow_hashmap.hpp> #include <rocket/static_...
// This file is part of Poseidon. // Copyleft 2020, LH_Mouse. All wrongs reserved. #ifndef POSEIDON_PRECOMPILED_ #define POSEIDON_PRECOMPILED_ #include "version.h" #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <rocket/cow_string.hpp> #include <rocket/cow_vector.hpp> #include <rocket/cow_hashmap.hpp> #i...
Include "version.h"
precompiled: Include "version.h"
C++
bsd-3-clause
lhmouse/poseidon,lhmouse/poseidon,lhmouse/poseidon
d26ff66ce264b860ba877065ec9487839d9ed5cc
src/rollinghash.cpp
src/rollinghash.cpp
#include "rollinghash.h" #include "builtinmutation.h" #include "util.h" // we use 1G memory const int BLOOM_FILTER_LENGTH = (1<<29); RollingHash::RollingHash(int window, bool allowTwoSub) { mWindow = min(48, window); mAllowTwoSub = allowTwoSub; mBloomFilterArray = new char[BLOOM_FILTER_LENGTH]; memset...
#include "rollinghash.h" #include "builtinmutation.h" #include "util.h" #include <memory.h> // we use 1G memory const int BLOOM_FILTER_LENGTH = (1<<29); RollingHash::RollingHash(int window, bool allowTwoSub) { mWindow = min(48, window); mAllowTwoSub = allowTwoSub; mBloomFilterArray = new char[BLOOM_FILTER...
add memory.h include for fix linux compile error
add memory.h include for fix linux compile error
C++
mit
OpenGene/MutScan,OpenGene/MutScan
191f3b3d24cbbfeec7b2c4cee27528795e11e418
src/server_node.cpp
src/server_node.cpp
/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin-server. * * libbitcoin-server is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free ...
/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin-server. * * libbitcoin-server is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free ...
Disable czmq signal handling so that ours works.
Disable czmq signal handling so that ours works.
C++
agpl-3.0
RojavaCrypto/libbitcoin-server,RojavaCrypto/libbitcoin-server,RojavaCrypto/libbitcoin-server
6bafa77d257de35f5d6e71dd9e7b7449af46f15a
src/server_proc.cpp
src/server_proc.cpp
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <unistd.h> #include "rpc.h" #include "sck_stream.h" #include "message_protocol.h" using namespace std; ServerProcess* ServerProcess::singleton = NULL; class ServerProcess { private: int sockServer, sockBinder; char* BINDER_ADDRESS; ...
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <unistd.h> #include "rpc.h" #include "sck_stream.h" #include "message_protocol.h" using namespace std; ServerProcess* ServerProcess::singleton = NULL; class ServerProcess { private: int sockServerFd, sockBinderFd; char* BINDER_ADDRES...
Refactor server proc a little
Refactor server proc a little
C++
mit
cyprusad/RemoteProcedureCall,cyprusad/RemoteProcedureCall
c5ad03fa3921bbf8dea9795825f546d7b3d06c12
src/ssdb/binlog.cpp
src/ssdb/binlog.cpp
/* Copyright (c) 2012-2014 The SSDB 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 "binlog.h" #include "const.h" #include "../include.h" #include "../util/log.h" #include "../util/strings.h" #include <map> /* Binlog */ Binlog...
/* Copyright (c) 2012-2014 The SSDB 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 "binlog.h" #include "const.h" #include "../include.h" #include "../util/log.h" #include "../util/strings.h" #include <map> /* Binlog */ Binlog...
fix binlog dumps bug
fix binlog dumps bug
C++
bsd-3-clause
ideawu/ssdb,zkidkid/ssdb,cuixin/ssdb,ideawu/ssdb,cuixin/ssdb,cuixin/ssdb,left2right/ssdb,left2right/ssdb,left2right/ssdb,left2right/ssdb,ideawu/ssdb,cuixin/ssdb,left2right/ssdb,ideawu/ssdb,ideawu/ssdb,cuixin/ssdb,zkidkid/ssdb,zkidkid/ssdb,zkidkid/ssdb,zkidkid/ssdb
f467ed1c2c26f5d51679d1ed76b5fdd5cf188d75
src/synchronizer.cc
src/synchronizer.cc
// // synchronizer.cc // P2PSP // // This code is distributed under the GNU General Public License (see // THE_GENERAL_GNU_PUBLIC_LICENSE.txt for extending this information). // Copyright (C) 2016, the P2PSP team. // http://www.p2psp.org // #include "synchronizer.h" namespace p2psp { Synchronizer::Synchroni...
// // synchronizer.cc // P2PSP // // This code is distributed under the GNU General Public License (see // THE_GENERAL_GNU_PUBLIC_LICENSE.txt for extending this information). // Copyright (C) 2016, the P2PSP team. // http://www.p2psp.org // #include "synchronizer.h" namespace p2psp { Synchronizer::Synchroni...
Update Synchronize function
Update Synchronize function Implemented with the assumption that first few bytes of the chunk acts as hash data With a simple string matching we will be able to synchronize the chunks from peers
C++
mit
hehaichi/p2psp-experiments,hehaichi/p2psp-experiments,hehaichi/p2psp-experiments
ca248e3f401686231b2cd3c4284e91f19aa98c3b
src/thread_pool.cxx
src/thread_pool.cxx
/* * A queue that manages work for worker threads. * * author: Max Kellermann <mk@cm4all.com> */ #include "thread_pool.hxx" #include "thread_queue.hxx" #include "thread_worker.hxx" #include "util/Exception.hxx" #include <daemon/log.h> #include <array> #include <assert.h> #include <stdlib.h> static ThreadQueue ...
/* * A queue that manages work for worker threads. * * author: Max Kellermann <mk@cm4all.com> */ #include "thread_pool.hxx" #include "thread_queue.hxx" #include "thread_worker.hxx" #include "io/Logger.hxx" #include <array> #include <assert.h> #include <stdlib.h> static ThreadQueue *global_thread_queue; static s...
use class Logger
thread_pool: use class Logger
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
9d59dde7608bb92729231d791907a4a30fefb2d8
src/wallOverlap.cpp
src/wallOverlap.cpp
/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */ #include "wallOverlap.h" #include <cmath> // isfinite #include <sstream> #include "utils/AABB.h" // for debug output svg html #include "utils/SVG.h" namespace cura { WallOverlapComputation::WallOverlapComputation(Polygons& polygons, i...
/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */ #include "wallOverlap.h" #include <cmath> // isfinite #include <sstream> #include "utils/AABB.h" // for debug output svg html #include "utils/SVG.h" namespace cura { WallOverlapComputation::WallOverlapComputation(Polygons& polygons, i...
Improve overlap estimation for stair-case
Improve overlap estimation for stair-case In the case of stairs, there is no overlap either. The approximation now takes that into account at hardly any additional computational cost. Contributes to issue CURA-1911.
C++
agpl-3.0
ROBO3D/CuraEngine,totalretribution/CuraEngine,alephobjects/CuraEngine,Ultimaker/CuraEngine,totalretribution/CuraEngine,ROBO3D/CuraEngine,totalretribution/CuraEngine,Ultimaker/CuraEngine,alephobjects/CuraEngine,alephobjects/CuraEngine,ROBO3D/CuraEngine
a0301cfbec7234c3ff4e389cd205292920c15aa8
src/yubikeyutil.cpp
src/yubikeyutil.cpp
/* Copyright (C) 2011-2012 Yubico AB. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
/* Copyright (C) 2011-2012 Yubico AB. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
mark as const
mark as const
C++
bsd-2-clause
eworm-de/yubikey-personalization-gui,Yubico/yubikey-personalization-gui,Yubico/yubikey-personalization-gui,eworm-de/yubikey-personalization-gui,Yubico/yubikey-personalization-gui,eworm-de/yubikey-personalization-gui
f78139fe96a7b4a378d823c421f2878505d5d6c8
TTKModule/musicbottomareawidget.cpp
TTKModule/musicbottomareawidget.cpp
#include "musicbottomareawidget.h" #include "ui_musicapplication.h" #include "musicapplication.h" #include "musicuiobject.h" #include "musicsystemtraymenu.h" #include "musicwindowextras.h" #include "musicfunctionuiobject.h" #include "musictinyuiobject.h" MusicBottomAreaWidget *MusicBottomAreaWidget::m_instance = nullp...
#include "musicbottomareawidget.h" #include "ui_musicapplication.h" #include "musicapplication.h" #include "musicuiobject.h" #include "musicsystemtraymenu.h" #include "musicwindowextras.h" #include "musicfunctionuiobject.h" #include "musictinyuiobject.h" MusicBottomAreaWidget *MusicBottomAreaWidget::m_instance = nullp...
Fix close hide mode[324001]
Fix close hide mode[324001]
C++
lgpl-2.1
Greedysky/Musicplayer,Greedysky/Musicplayer,Greedysky/Musicplayer
93be5eded469af6fef075bf04285a73a52977c80
framework/framework.cpp
framework/framework.cpp
#include "framework.h" #include "../stages/bootup.h" Framework* Framework::SystemFramework; Framework::Framework() { #ifdef WRITE_LOG printf( "Framework: Startup\n" ); #endif // Init Allegro if( !al_init() ) { return; } al_init_font_addon(); if( !al_install_keyboard() || !al_install_mouse() || !al_init_p...
#include "framework.h" #include "../stages/bootup.h" Framework* Framework::SystemFramework; Framework::Framework() { #ifdef WRITE_LOG printf( "Framework: Startup\n" ); #endif // Init Allegro if( !al_init() ) { return; } al_init_font_addon(); if( !al_install_keyboard() || !al_install_mouse() || !al_init_pr...
Change shutdown order
Change shutdown order Display was not closing on Pandora
C++
mit
pmprog/SkySupreme,pmprog/SkySupreme
5ebe03d2cf59c48f0346095d91543f914221e296
include/bbzy_beta/type/function.hpp
include/bbzy_beta/type/function.hpp
#pragma once #include <type_traits> #include "../common.hpp" #include "index_type.hpp" #include "element_type.hpp" #include "type_wrapper.hpp" namespace bbzy { namespace type { namespace detail { template <class FunctionT> struct UnifiedFunctionType { private: template <class HelperFunT> struct Helper; template <c...
#pragma once #include <type_traits> #include "../common.hpp" #include "index_type.hpp" #include "element_type.hpp" #include "type_wrapper.hpp" namespace bbzy { namespace type { namespace detail { template <class FunctionT> struct IsFunction { private: using DecayedFunctionT = Decay<FunctionT>; private: templa...
Move "IsFunction" and "IsMemberFunction"
Move "IsFunction" and "IsMemberFunction" Move "IsFunction" and "IsMemberFunction" to beginning of the file.
C++
apache-2.0
bbzy/bbzy_beta,bbzy/bbzy_beta
ef26ebf975ea8cbfa408f3db0a1a69e7feab263d
dvfs/jni/dvfs.cpp
dvfs/jni/dvfs.cpp
#include <jni.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <pthread.h> #include <android/log.h> #include "cpu/CPUOdroid.h" #include "gpu/GPUOdroid.h" #define CLASSNAME "DVFS-ndk" #define POLL_RATE_IN_MICROSECOND 1000000 //1 second int fpsLowbound; int fpsHighBound; int slidingWindowLength; ...
#include <jni.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <pthread.h> #include <android/log.h> #include "cpu/CPUOdroid.h" #include "gpu/GPUOdroid.h" #define CLASSNAME "DVFS-ndk" #define POLL_RATE_IN_MICROSECOND 1000000 //1 second #define DO_NOT_PURSUE_FPS_VALUE -1 int fpsLowBound; int fpsH...
prepare for CPU and GPU adjustment
prepare for CPU and GPU adjustment
C++
mit
yeokm1/dvfs,yeokm1/dvfs
308eb34d050343ceeaa7d921e1f92366be804896
src/test_module.cpp
src/test_module.cpp
#include <chaiscript/chaiscript.hpp> #include <string> class TestBaseType { public: TestBaseType() : val(10), const_val(15) { } TestBaseType(int) : val(10), const_val(15) {} TestBaseType(int *) : val(10), const_val(15) {} virtual ~TestBaseType() {} virtual int func() { return 0; } int base_...
#include <chaiscript/chaiscript.hpp> #include <string> class TestBaseType { public: TestBaseType() : val(10), const_val(15) { } TestBaseType(int) : val(10), const_val(15) {} TestBaseType(int *) : val(10), const_val(15) {} virtual ~TestBaseType() {} virtual int func() { return 0; } int base_...
Correct test_module changes
Correct test_module changes
C++
bsd-3-clause
bradparks/ChaiScript__cplusplus_scripting_language,kamilzubair/ChaiScript,bradparks/ChaiScript__cplusplus_scripting_language,bradparks/ChaiScript__cplusplus_scripting_language,kamilzubair/ChaiScript,kamilzubair/ChaiScript
cfec925fbc33a9dcbeef9eb759ce87516b7565b9
thcrap/src/global.cpp
thcrap/src/global.cpp
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Globals, compile-time constants and runconfig abstractions. */ #include "thcrap.h" CRITICAL_SECTION cs_file_access; json_t* run_cfg = NULL; const char* PROJECT_NAME(void) { return "Touhou Community Reliant Automatic Patcher"; } c...
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Globals, compile-time constants and runconfig abstractions. */ #include "thcrap.h" CRITICAL_SECTION cs_file_access; json_t* run_cfg = NULL; const char* PROJECT_NAME(void) { return "Touhou Community Reliant Automatic Patcher"; } c...
Update version number
Update version number
C++
unlicense
thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap
1e148014cbcc815c55c4f00ab7487e1ec0c090b7
E_Libs/StdLib.cpp
E_Libs/StdLib.cpp
// StdLib.cpp // This file is part of the EScript programming language. // See copyright notice in EScript.h // ------------------------------------------------------ #include "StdLib.h" #include "../EScript/EScript.h" #include "../EScript/Parser/Parser.h" #include "../EScript/Utils/FileUtils.h" #include "ext...
// StdLib.cpp // This file is part of the EScript programming language. // See copyright notice in EScript.h // ------------------------------------------------------ #include "StdLib.h" #include "../EScript/EScript.h" #include "../EScript/Parser/Parser.h" #include "../EScript/Utils/FileUtils.h" #include "ext...
Implement exec for Linux.
Implement exec for Linux. git-svn-id: 5b5650fabc8463890bae0d4440114b12dedf0983@99 5693b1fc-3b75-4070-9b6b-3ce3692a40d5
C++
mit
ClaudiusJ/EScript,eikel/EScript,ClaudiusJ/EScript,EScript/EScript,EScript/EScript,eikel/EScript
91f2ab14218fdafa2f359cd462cdd457d941fc99
cint/cling/lib/MetaProcessor/MetaProcessor.cpp
cint/cling/lib/MetaProcessor/MetaProcessor.cpp
//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include "cling/MetaProcessor/MetaProcessor.h" #inclu...
//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include "cling/MetaProcessor/MetaProcessor.h" #inclu...
Use llvm::errs() where possible
Use llvm::errs() where possible git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@43437 27541ba8-7e3a-0410-8455-c3a389f83636
C++
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT
eb30c15b7ef15662e96b4a9bdb840b48ab47be83
clang-tidy/google/ExplicitConstructorCheck.cpp
clang-tidy/google/ExplicitConstructorCheck.cpp
//===--- ExplicitConstructorCheck.cpp - clang-tidy ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- ExplicitConstructorCheck.cpp - clang-tidy ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Verify some conditions in a matcher instead of check(). NFC
[clang-tidy] Verify some conditions in a matcher instead of check(). NFC git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@298057 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
6ef84041295c919055d58891722853a03a3d14fd
WangscapeTest/TestCalculatorMax.cpp
WangscapeTest/TestCalculatorMax.cpp
#include <gtest/gtest.h> #include <random> #include <numeric> #include <algorithm> #include <tilegen/alpha/CalculatorMax.h> class TestCalculatorMax : public ::testing::Test { public: tilegen::alpha::CalculatorMax cm; std::mt19937 rng; TestCalculatorMax() { std::random_device rd; rng.se...
#include <gtest/gtest.h> #include <random> #include <numeric> #include <algorithm> #include <tilegen/alpha/CalculatorMax.h> class TestCalculatorMax : public ::testing::Test { public: tilegen::alpha::CalculatorMax cm; std::mt19937 rng; TestCalculatorMax() { std::random_device rd; rng.se...
Replace a std::accumulate call with std::count_if
Replace a std::accumulate call with std::count_if
C++
mit
Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape
1c8a690c7de72d47d4f1bb4a33c58493ff586284
X10_Project/Classes/CreditScene.cpp
X10_Project/Classes/CreditScene.cpp
#include "stdafx.h" #include "ConstVars.h" #include "FileStuff.h" #include "CreditScene.h" #include "SimpleAudioEngine.h" #include "MainScene.h" float CreditScene::ypos = 0.0f; Scene* CreditScene::createScene() { Scene* scene = Scene::create(); Layer* layer = CreditScene::create(); scene->addChild(layer); retur...
#include "stdafx.h" #include "ConstVars.h" #include "FileStuff.h" #include "CreditScene.h" #include "SimpleAudioEngine.h" #include "MainScene.h" float CreditScene::ypos = 0.0f; Scene* CreditScene::createScene() { Scene* scene = Scene::create(); Layer* layer = CreditScene::create(); scene->addChild(layer); retur...
change credit Time
change credit Time
C++
mit
kimsin3003/X10,kimsin3003/X10,kimsin3003/X10,kimsin3003/X10,kimsin3003/X10
8013f73d88b32244b9fe3544af9114066a3e74af
sandbox/src/win_utils.cc
sandbox/src/win_utils.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sandbox/src/win_utils.h" #include <map> #include "base/logging.h" #include "base/scoped_ptr.h" #include "sandbox/src/internal_types.h...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sandbox/src/win_utils.h" #include <map> #include "base/logging.h" #include "base/scoped_ptr.h" #include "sandbox/src/internal_types.h...
Change yet again the way we do ResolveNTFunctionPtr - This version is different from last three
Change yet again the way we do ResolveNTFunctionPtr - This version is different from last three TEST=chrome should start and you can browse BUG=11789 Review URL: http://codereview.chromium.org/275014 git-svn-id: http://src.chromium.org/svn/trunk/src@29039 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id: 6cf...
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...
119b7feb01d3f135670bb867305468a1728c474f
tools/index-test/index-test.cpp
tools/index-test/index-test.cpp
//===--- index-test.cpp - Indexing test bed -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- index-test.cpp - Indexing test bed -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Check that index-test uses an up-to-date AST file.
Check that index-test uses an up-to-date AST file. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@74214 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,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/cl...
a18b281791d7cc6e966a4f472f2176e4c4755e9b
tools/llvm-ar/ArchiveWriter.cpp
tools/llvm-ar/ArchiveWriter.cpp
//===-- ArchiveWriter.cpp - Write LLVM archive files ----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- ArchiveWriter.cpp - Write LLVM archive files ----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Use the simpler sys::fs::exists.
Use the simpler sys::fs::exists. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@184413 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asa...
c38483778896fc5789e4b554690756b4830a0472
tools/seec-trace-print/main.cpp
tools/seec-trace-print/main.cpp
//===- tools/seec-trace-print/main.cpp ------------------------------------===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// /// /// \file ///...
//===- tools/seec-trace-print/main.cpp ------------------------------------===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// /// /// \file ///...
Add "-counts" argument to seec-print, which will count and print the number of each EventType in an unmapped trace.
Add "-counts" argument to seec-print, which will count and print the number of each EventType in an unmapped trace.
C++
mit
mheinsen/seec,mheinsen/seec,seec-team/seec,mheinsen/seec,mheinsen/seec,seec-team/seec,seec-team/seec,mheinsen/seec,seec-team/seec,seec-team/seec
739355f924c0d9d692db7d56c53a43650ad16a4c
include/FactorTable.hpp
include/FactorTable.hpp
/// /// @file FactorTable.hpp /// @brief The FactorTable class combines the lpf[n] (least prime /// factor) and mu[n] (Möbius function) lookup tables into a /// single factor[n] table which furthermore only contains /// entries for numbers which are not divisible by 2, 3, 5, 7 /// and 11. T...
/// /// @file FactorTable.hpp /// @brief The FactorTable class combines the lpf[n] (least prime /// factor) and mu[n] (Möbius function) lookup tables into a /// single factor[n] table which furthermore only contains /// entries for numbers which are not divisible by 2, 3, 5, 7 /// and 11. T...
Fix off by 1 error
Fix off by 1 error
C++
bsd-2-clause
kimwalisch/primecount,kimwalisch/primecount,kimwalisch/primecount
cabe33dfb0c022a3ab1158a88b17b439497e06e2
agency/experimental/segmented_array.hpp
agency/experimental/segmented_array.hpp
#pragma once #include <agency/detail/config.hpp> #include <agency/detail/requires.hpp> #include <agency/experimental/ranges/range_traits.hpp> #include <agency/experimental/ranges/flatten.hpp> #include <agency/experimental/ranges/all.hpp> #include <agency/experimental/array.hpp> #include <agency/experimental/vector.hpp...
#pragma once #include <agency/detail/config.hpp> #include <agency/detail/requires.hpp> #include <agency/experimental/ranges/range_traits.hpp> #include <agency/experimental/ranges/flatten.hpp> #include <agency/experimental/ranges/all.hpp> #include <agency/experimental/array.hpp> #include <agency/experimental/vector.hpp...
Add segmented_array::clear() and segmented_array::operator==
Add segmented_array::clear() and segmented_array::operator==
C++
bsd-3-clause
egaburov/agency,egaburov/agency
bb59616bf157430cd5dc6a56781c25ba8bdc5443
typedecl.hpp
typedecl.hpp
#ifndef __ARRAYS_HPP__ #define __ARRAYS_HPP__ #include <string> #include <type_traits> #include "../static-strings/static-strings.hpp" #ifdef __CYGWIN__ #include <sstream> namespace std { inline std::string to_string(unsigned long val) { ostringstream os; os << val; return os.str(); } } #endif namespace { namespac...
#ifndef __ARRAYS_HPP__ #define __ARRAYS_HPP__ #include <string> #include <type_traits> #include "../static-strings/static-strings.hpp" #ifdef __CYGWIN__ #include <sstream> namespace std { inline std::string to_string(unsigned long val) { ostringstream os; os << val; return os.str(); } } #endif namespace { namespac...
Implement impl<const volatile T> with static-strings
Implement impl<const volatile T> with static-strings
C++
mit
erdavila/typedecl,erdavila/typedecl