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
688c59a56a242a7201630776f4b0103df06f95ef
firmware/ncd_gateway.cpp
firmware/ncd_gateway.cpp
#include "ncd_gateway.h" #include "S3B.h" #include "spark_wiring_eeprom.h" S3B sModule; String eventReturns[5]; unsigned long tOut = 3000; //int s3b(JsonObject& root); void init_gateway(){ Particle.function("deviceComm", gatewayCommand); Particle.subscribe("ncd_deviceCom", commandHandler, MY_DEVICES); Se...
#include "ncd_gateway.h" #include "S3B.h" #include "spark_wiring_eeprom.h" S3B sModule; String eventReturns[5]; unsigned long tOut = 3000; //int s3b(JsonObject& root); void init_gateway(){ Particle.function("deviceComm", gatewayCommand); Particle.subscribe("ncd_deviceCom", commandHandler, MY_DEVICES); Se...
Update ncd_gateway.cpp
Update ncd_gateway.cpp
C++
mit
ControlEverythingCom/ncd_gateway,ControlEverythingCom/ncd_gateway
78a3e36a3ac5711c2fe77d9f447863be41837f56
muduo/base/FileUtil.cc
muduo/base/FileUtil.cc
// Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: Shuo Chen (chenshuo at chenshuo dot com) #include "muduo/base/FileUtil.h" #include "muduo/base/Logging.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <sys/sta...
// Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: Shuo Chen (chenshuo at chenshuo dot com) #include "muduo/base/FileUtil.h" #include "muduo/base/Logging.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <sys/sta...
write operation may fail, writtenBytes_ should be the actual number of bytes written
write operation may fail, writtenBytes_ should be the actual number of bytes written
C++
bsd-3-clause
westfly/muduo,westfly/muduo,westfly/muduo
bb39e8ca7609d0125e45498711c7023a4bb1baf9
common/detail/server_node_imp.cpp
common/detail/server_node_imp.cpp
/* ** Author(s): ** - Chris Kilner <ckilner@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <alcommon-ng/common/detail/server_node_imp.hpp> #include <string> #include <alcommon-ng/common/detail/get_protocol.hpp> #include <alcommon-ng/messaging/server.hpp> #include <boost/thread.hpp> #i...
/* ** Author(s): ** - Chris Kilner <ckilner@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <alcommon-ng/common/detail/server_node_imp.hpp> #include <string> #include <alcommon-ng/common/detail/get_protocol.hpp> #include <alcommon-ng/messaging/server.hpp> #include <boost/thread.hpp> #i...
check if methodname is empty and si.functor is not null (.length() might be a better check)
common: check if methodname is empty and si.functor is not null (.length() might be a better check)
C++
bsd-3-clause
bsautron/libqi,aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi-java,aldebaran/libqi-java,aldebaran/libqi,vbarbaresi/libqi,aldebaran/libqi
ae0fa609a962914e6104f5d0debd9a06f2b7f3db
features/mbedtls/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL/src/default_random_seed.cpp
features/mbedtls/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL/src/default_random_seed.cpp
#include "mbed.h" #include "crypto.h" #include "default_random_seed.h" #include "psa_prot_internal_storage.h" int mbed_default_seed_read(unsigned char *buf, size_t buf_len) { struct psa_its_info_t info = {0, 0}; size_t actual_size = buf_len; psa_its_get_info(PSA_CRYPTO_ITS_RANDOM_SEED_UID, &info); if (...
#include "mbed.h" #include "crypto.h" #include "default_random_seed.h" #include "psa_prot_internal_storage.h" int mbed_default_seed_read(unsigned char *buf, size_t buf_len) { psa_its_status_t rc = psa_its_get(PSA_CRYPTO_ITS_RANDOM_SEED_UID, 0, buf_len, buf); return ( -1 * rc ); } int mbed_default_seed_write(u...
remove psa_its_get_info from seed read function
remove psa_its_get_info from seed read function
C++
apache-2.0
mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os
3af46639c887028ad05cef59e27dbf47f7c78219
include/stack.cpp
include/stack.cpp
#include <stdlib.h> #include <iostream> template <typename T> class stack { private: T *array_; // óêàçàòåëü íà ñòåê size_t array_size_; // êîëè÷åñòâî ýëåìåíòîâ â ñòåêå size_t count_; // íîìåð òåêóùåãî ýëåìåíòà ñòåêà auto swap(stack & right) -> void; // ìåíÿåò ñîäåðæèìîå ñòåêîâ publi...
#include <stdlib.h> #include <iostream> template <typename T> class stack { private: T *array_; // óêàçàòåëü íà ñòåê size_t array_size_; // êîëè÷åñòâî ýëåìåíòîâ â ñòåêå size_t count_; // íîìåð òåêóùåãî ýëåìåíòà ñòåêà auto swap(stack & right) -> void; // ìåíÿåò ñîäåðæèìîå ñòåêîâ publi...
Update stack.cpp
Update stack.cpp
C++
mit
tpabahatp/Stack
9192dc955760fc3a41d98466fd20fca4306e190e
cpp/xsimtop.cpp
cpp/xsimtop.cpp
#include <stdlib.h> #include <string> #include <iostream> #include <unistd.h> #include <stdio.h> #include <queue> #include "xsi_loader.h" #include <portal.h> #include <sock_utils.h> #include <GeneratedTypes.h> #include <XsimMemSlaveRequest.h> #include <XsimMemSlaveIndication.h> XsimMemSlaveIndicationProxy *memSlaveI...
#include <stdlib.h> #include <string> #include <iostream> #include <unistd.h> #include <stdio.h> #include <queue> #include "xsi_loader.h" #include <portal.h> #include <sock_utils.h> #include <GeneratedTypes.h> #include <XsimMemSlaveRequest.h> #include <XsimMemSlaveIndication.h> XsimMemSlaveIndicationProxy *memSlaveI...
check for validity of read_addr port
check for validity of read_addr port
C++
mit
chenm001/connectal,hanw/connectal,8l/connectal,hanw/connectal,cambridgehackers/connectal,8l/connectal,cambridgehackers/connectal,8l/connectal,hanw/connectal,chenm001/connectal,hanw/connectal,csail-csg/connectal,csail-csg/connectal,chenm001/connectal,chenm001/connectal,cambridgehackers/connectal,8l/connectal,csail-csg/c...
9cb7f16f01c1009fdf847bd416b66d3fe66d0972
include/stack.cpp
include/stack.cpp
#ifndef stack_cpp #define stack_cpp #pragma once #include <iostream> template <typename T1, typename T2> void construct(T1 * ptr, T2 const & value) { new(ptr) T1 (value); } template <typename T> void destroy(T * ptr) noexcept { ptr->~T(); } template <typename FwdIter> void destroy(FwdIter first, FwdIter last...
#ifndef stack_cpp #define stack_cpp #pragma once #include <iostream> class bitset { public: explicit bitset(size_t size); bitset(bitset const & other) = delete; auto operator =(bitset const & other)->bitset & = delete; bitset(bitset && other) = delete; auto operator =(bitset && other)->bitset & = delete; aut...
Update stack.cpp
Update stack.cpp
C++
mit
tpabahatp/Stack
a6aceb179d316311758780dba0014a5ec639a1a3
range_tombstone.cc
range_tombstone.cc
/* * Copyright (C) 2016 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later...
/* * Copyright (C) 2016 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later...
fix bound ordering
range_tombstone: fix bound ordering Assuming the clustering keys are equal: excl_end < incl_start < incl_end < excl_start. Signed-off-by: Paweł Dziepak <e29bb3265626c60caf76d587cabdfcd8b379ef80@scylladb.com>
C++
agpl-3.0
scylladb/scylla,scylladb/scylla,scylladb/scylla,duarten/scylla,raphaelsc/scylla,kjniemi/scylla,avikivity/scylla,duarten/scylla,avikivity/scylla,kjniemi/scylla,duarten/scylla,raphaelsc/scylla,avikivity/scylla,scylladb/scylla,raphaelsc/scylla,kjniemi/scylla
c8125f357e5c551b15e81570281f73579760383b
include/BEdge.hpp
include/BEdge.hpp
#ifndef BEDGE #define BEDGE #include <utility> #include "BVect.hpp" #include "DominanceStatus.hpp" class BEdge { private: BVect _a; BVect _b; bool _aClosed; bool _bClosed; bool _point; public: BEdge() {} BEdge (BVect a, BVect b, bool aC = true, bool bC = true) : _a(a), _b(b), _aClosed(...
#ifndef BEDGE #define BEDGE #include <utility> #include "BVect.hpp" #include "DominanceStatus.hpp" class BEdge { private: BVect _a; BVect _b; bool _aClosed; bool _bClosed; bool _point; public: BEdge() {} BEdge (BVect a, BVect b, bool aC = true, bool bC = true) : _a(a), _b(b), _aClosed(...
Fix intersection computation
BEdge: Fix intersection computation
C++
lgpl-2.1
tvincent2/mo-utils
9d39163a6f723cd555f26286e34c44f6fb01db6c
include/Utils.hpp
include/Utils.hpp
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
Remove useless deleter functor
Remove useless deleter functor
C++
mit
wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic
e283fdf4ae25f0ec10cee32217b026b530b2cc0a
src/engine/entity/src/world.cpp
src/engine/entity/src/world.cpp
#include <iostream> #include <chrono> #include <halley/support/exception.h> #include <halley/data_structures/memory_pool.h> #include <halley/utils/utils.h> #include "world.h" #include "system.h" #include "family.h" #include "halley/text/string_converter.h" #include "halley/support/debug.h" #include "halley/file_formats...
#include <iostream> #include <chrono> #include <halley/support/exception.h> #include <halley/data_structures/memory_pool.h> #include <halley/utils/utils.h> #include "world.h" #include "system.h" #include "family.h" #include "halley/text/string_converter.h" #include "halley/support/debug.h" #include "halley/file_formats...
Fix entity families getting confused with a component is dynamically added to an entity.
Fix entity families getting confused with a component is dynamically added to an entity.
C++
apache-2.0
amzeratul/halley,amzeratul/halley,amzeratul/halley
36177493c43ed78d74732123c0ce9ca42a41f259
src/eventql/db/partition_map.cc
src/eventql/db/partition_map.cc
/** * Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io> * Authors: * - Paul Asmuth <paul@zscale.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license") as * published by the Free Software Foundation, ei...
/** * Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io> * Authors: * - Paul Asmuth <paul@zscale.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license") as * published by the Free Software Foundation, ei...
disable legacy tables
disable legacy tables
C++
agpl-3.0
eventql/eventql,eventql/eventql,eventql/eventql,eventql/eventql,eventql/eventql,eventql/eventql,eventql/eventql,eventql/eventql
76943f82c9345cc6c565b6358671d746ea81b29f
unreal/trunk/qrgui/mainwindow/gesturesShow/gestureswidget.cpp
unreal/trunk/qrgui/mainwindow/gesturesShow/gestureswidget.cpp
#include "gestureswidget.h" #include "ui_gestureswidget.h" GesturesWidget::GesturesWidget(QWidget *parent) : QWidget(parent), ui(new Ui::GesturesWidget) { ui->setupUi(this); mGestureScene = new QGraphicsScene(ui->graphicsView); ui->graphicsView->setScene(mGestureScene); connect(ui->listWidget, ...
#include "gestureswidget.h" #include "ui_gestureswidget.h" GesturesWidget::GesturesWidget(QWidget *parent) : QWidget(parent), ui(new Ui::GesturesWidget) { ui->setupUi(this); mGestureScene = new QGraphicsScene(ui->graphicsView); ui->graphicsView->setScene(mGestureScene); connect(ui->listWidget, SIGNAL(currentItem...
fix ideal gestures printing
fix ideal gestures printing
C++
apache-2.0
Julia-Khramyshkina/qreal,qreal/qreal,Ashatta/qreal,anastasia143/qreal,dvvrd/qreal,Julia-Khramyshkina/qreal,ZiminGrigory/qreal,tara-sova/qreal,dvvrd/qreal,Ashatta/qreal,ZiminGrigory/qreal,iakov/qreal,tara-sova/qreal,Ashatta/qreal,qreal/qreal,tara-sova/qreal,tara-sova/qreal,Julia-Khramyshkina/qreal,DenisKogutich/qreal,da...
3deccf99ab0a84726628f6d23c4e8e27ba810986
src/global_timestamp_reader.cpp
src/global_timestamp_reader.cpp
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015 Intel Corporation. All Rights Reserved. #include "global_timestamp_reader.h" #include <chrono> namespace librealsense { CSample& CSample::operator-=(const CSample& other) { _x -= other._x; _y -= other._y; r...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015 Intel Corporation. All Rights Reserved. #include "global_timestamp_reader.h" #include <chrono> namespace librealsense { CSample& CSample::operator-=(const CSample& other) { _x -= other._x; _y -= other._y; r...
fix global_timestamp_reader to make first time request from device sooner. Reduces number of frame requests receiving Hardware timestamp instead of global timestamp.
fix global_timestamp_reader to make first time request from device sooner. Reduces number of frame requests receiving Hardware timestamp instead of global timestamp.
C++
apache-2.0
IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense
85b489739fbc2d1ab430aea311ab381b4ee55848
Driver/RewriteTest.cpp
Driver/RewriteTest.cpp
//===--- RewriteTest.cpp - Rewriter playground ----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===--- RewriteTest.cpp - Rewriter playground ----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add newline at the end of file, to silence compiler warning.
Add newline at the end of file, to silence compiler warning. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@57818 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
4f2becd2d1fb613afa9e6a73b7f02b478be6f884
Source/platform/fonts/skia/FontCacheSkia.cpp
Source/platform/fonts/skia/FontCacheSkia.cpp
/* * Copyright (c) 2006, 2007, 2008, 2009 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: * * * Redistributions of source code must retain the above copyright * notice, thi...
/* * Copyright (c) 2006, 2007, 2008, 2009 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: * * * Redistributions of source code must retain the above copyright * notice, thi...
Add more Windows-specific fonts to fallback path
Add more Windows-specific fonts to fallback path MS Shell Dlg is the aliased font name that means "the one font that shall always be available" per http://msdn.microsoft.com/en-us/library/windows/desktop/dd374112(v=vs.85).aspx DirectWrite doesn't like that name, but we add the two fonts that it can map to so that we c...
C++
bsd-3-clause
smishenk/blink-crosswalk,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-cro...
b3021447d1da2817e133acab3e55d23da7e10eed
include/stack.hpp
include/stack.hpp
#ifndef STACK_HPP #define STACK_HPP #include <cstdlib> #include <iostream> #include <memory> template <typename T> class allocator { protected: allocator(size_t size = 0); ~allocator(); auto swap(allocator & other) -> void; allocator(allocator const &) = delete; auto operator=(allocator const &)->allocator & ...
#ifndef STACK_HPP #define STACK_HPP #include <cstdlib> #include <iostream> #include <memory> template <typename T> class allocator { protected: allocator(size_t size = 0); ~allocator(); auto swap(allocator & other) -> void; allocator(allocator const &) = delete; auto operator=(allocator const &)->allocator & ...
Update stack.hpp
Update stack.hpp
C++
mit
anastasiya0304/stack
eadbaf90d6c7b3ac4bccdaa1f8e7a0746a140321
src/html/HTMLLinkElementImp.cpp
src/html/HTMLLinkElementImp.cpp
/* * Copyright 2010-2013 Esrille Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * Copyright 2010-2013 Esrille Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Fix a bug
(HTMLLinkElementImp::getHref): Fix a bug
C++
apache-2.0
esrille/escudo,esrille/escudo,esrille/escudo,esrille/escudo,esrille/escudo
66609a03a0457f5271e2556ffca35f496e29efc2
src/hyperion-x11/X11Wrapper.cpp
src/hyperion-x11/X11Wrapper.cpp
// Hyperion-X11 includes #include "X11Wrapper.h" X11Wrapper::X11Wrapper(int grabInterval, int cropLeft, int cropRight, int cropTop, int cropBottom, int horizontalPixelDecimation, int verticalPixelDecimation) : _timer(this), _grabber(cropLeft, cropRight, cropTop, cropBottom, horizontalPixelDecimation, vertical...
// Hyperion-X11 includes #include "X11Wrapper.h" X11Wrapper::X11Wrapper(int grabInterval, int cropLeft, int cropRight, int cropTop, int cropBottom, int horizontalPixelDecimation, int verticalPixelDecimation) : _timer(this), _grabber(cropLeft, cropRight, cropTop, cropBottom, horizontalPixelDecimation, vertical...
Update X11Wrapper.cpp
Update X11Wrapper.cpp Former-commit-id: f644a24c77db18feb34526aa937f12700865f5be
C++
mit
hyperion-project/hyperion,hyperion-project/hyperion.ng,redPanther/hyperion.ng,ntim/hyperion,hyperion-project/hyperion.ng,hyperion-project/hyperion,Funatiq/hyperion.ng,hyperion-project/hyperion,penfold42/hyperion.ng,hyperion-project/hyperion.ng,hyperion-project/hyperion,ntim/hyperion,hyperion-project/hyperion,redPanther...
a964deda7360b3bdb3358812cb69451c7760a344
rk78/rk78_init.cpp
rk78/rk78_init.cpp
/** * \file * \brief Implementation of the necessary initialization for Boost's RK78-Felhberg solver * * \author Nicholas Curtis * \date 04/15/2016 * */ //wrapper code #include "rk78_typedefs.hpp" #ifdef GENERATE_DOCS namespace rk78 { #endif //! State vector containers for boost std::vector<state_type*> state...
/** * \file * \brief Implementation of the necessary initialization for Boost's RK78-Felhberg solver * * \author Nicholas Curtis * \date 04/15/2016 * */ //wrapper code #include "rk78_typedefs.hpp" #ifdef GENERATE_DOCS namespace rk78 { #endif //! State vector containers for boost std::vector<state_type*> state...
use make_controller to support older versions of boost
use make_controller to support older versions of boost
C++
mit
SLACKHA/accelerInt,SLACKHA/accelerInt,SLACKHA/accelerInt,SLACKHA/accelerInt
769cf00442061157dd6838e4d3ee1dbd0310f08c
config.tests/db/main.cpp
config.tests/db/main.cpp
#include <db.h> #if DB_VERSION_MAJOR < 4 #error db>=4.4 required #endif #if DB_VERSION_MINOR < 4 #error db>=4.4 required #endif #if DB_VERSION_MINOR < 6 #warning db < 4.6, some features will be disabled #endif int main (int,char**) { DB * db; db_create(&db, NULL, 0); return 0; }
#include <db.h> #if DB_VERSION_MAJOR < 4 #error db>=4.4 required #endif #if DB_VERSION_MAJOR < 5 #if DB_VERSION_MINOR < 4 #error db>=4.4 required #endif #if DB_VERSION_MINOR < 6 #warning db < 4.6, some features will be disabled #endif #endif int main (int,char**) { DB * db; db_create(&db, NULL, 0); re...
fix db version check to respect MAJOR>4
fix db version check to respect MAJOR>4
C++
bsd-3-clause
mmitkevich/libqxt,hrobeers/qxtweb-qt5,mmitkevich/libqxt,mmitkevich/libqxt,mmitkevich/libqxt,hrobeers/qxtweb-qt5,hrobeers/qxtweb-qt5,hrobeers/qxtweb-qt5,hrobeers/qxtweb-qt5
1df129aab79b00a662559d7d7744d1e32fe1dbd6
io/pipe_simple.cc
io/pipe_simple.cc
#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/pipe.h> #include <io/pipe_simple.h> /* * PipeSimple is a pipe which passes data through a processing function and * which provides no discipline -- it will always immediately signal that it...
#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/pipe.h> #include <io/pipe_simple.h> /* * PipeSimple is a pipe which passes data through a processing function and * which provides no discipline -- it will always immediately signal that it...
Fix some assertions and queueing needs.
Fix some assertions and queueing needs. git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@394 4068ffdb-0463-0410-8185-8cc71e3bd399
C++
bsd-2-clause
splbio/wanproxy,splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy
ec2d399e9a32b91767e2104b07661ce25a929d57
tests/src/NanoWinMsPrintfTests.cpp
tests/src/NanoWinMsPrintfTests.cpp
#include "NWUnitTest.h" #ifdef __linux #include "NanoWinMsPrintf.h" #include <unistd.h> #else #include <windows.h> #endif #define NanoWinMsSWPrintf swprintf #define NanoWinMsVSWPrintf vswprintf #define NanoWinMsWPrintf wprintf #define NanoWinMsVWPrintf vwprintf #define NanoWinMsFWPrintf fwprintf #define ...
#include "NWUnitTest.h" #ifdef __linux #include "NanoWinMsPrintf.h" #include <unistd.h> #else #include <windows.h> #endif #define NanoWinMsSWPrintf swprintf #define NanoWinMsVSWPrintf vswprintf #define NanoWinMsWPrintf wprintf #define NanoWinMsVWPrintf vwprintf #define NanoWinMsFWPrintf fwprintf #define ...
test for compatibility with Ms-specific "%hc" and "%hs" printf format specifiers added
test for compatibility with Ms-specific "%hc" and "%hs" printf format specifiers added
C++
mit
openlab-vn-ua/NanoWin32,openlab-vn-ua/NanoWin32
8487b33c356576bcd1b9f9ddcd5d7faf7858b750
megingjord/simd/pack.hpp
megingjord/simd/pack.hpp
#ifndef MEGINGJORD_SIMD_PACK #define MEGINGJORD_SIMD_PACK #include <megingjord/util/aligned_array.hpp> #include <cmath> namespace megingjord { namespace simd { template<typename, std::size_t> struct pack; template<typename, std::size_t, typename> struct packed_array; template<typename> struct is_simd : public std::f...
#ifndef MEGINGJORD_SIMD_PACK #define MEGINGJORD_SIMD_PACK #include <megingjord/util/aligned_array.hpp> #include <cmath> namespace megingjord { namespace simd { template<typename, std::size_t> struct pack; template<typename, std::size_t, typename> struct packed_array; template<typename> struct is_simd : public std::f...
rename include file
rename include file
C++
mit
ToruNiina/Mjolnir,ToruNiina/Mjolnir,ToruNiina/Mjolnir
5a663d67bd32a3207f5d47e079c5a66f328f5dd0
src/Utils/FileUtils_test.cpp
src/Utils/FileUtils_test.cpp
/* Copyright 2021 The Surelog Team. 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, soft...
/* Copyright 2021 The Surelog Team. 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, soft...
Add review comments.
Add review comments. Signed-off-by: Henner Zeller <259ad50fabbfd39355f36ecd6c0afca541ea66ef@acm.org>
C++
apache-2.0
chipsalliance/Surelog,alainmarcel/Surelog,alainmarcel/Surelog,chipsalliance/Surelog,alainmarcel/Surelog,alainmarcel/Surelog,chipsalliance/Surelog,chipsalliance/Surelog
1b4435aefdcae60d2a22561fc26381f5101f8f50
rst/Defer/Test.cpp
rst/Defer/Test.cpp
// Copyright (c) 2017, Sergey Abbakumov // 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 condi...
// Copyright (c) 2017, Sergey Abbakumov // 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 condi...
Modify test for Defer
Modify test for Defer
C++
bsd-2-clause
sabbakumov/rst,sabbakumov/rst
fa887378edec01fbd24ae6824e0aa1b5f5134c28
tests/valgrind/network/network.cpp
tests/valgrind/network/network.cpp
#include "../warnings-disable.h" WARNINGS_DISABLE #include <QCoreApplication> #include <QNetworkAccessManager> #include <QThread> WARNINGS_ENABLE #include "../macros-valgrind.h" static void pl_nothing() { } static void pl_networkaccessmanager() { T_APP_BEGIN_CONSOLE; QNetworkAccessManager *nam = new QNetwo...
#include "../warnings-disable.h" WARNINGS_DISABLE #include <QCoreApplication> #include <QNetworkAccessManager> #include <QThread> WARNINGS_ENABLE #include "../macros-valgrind.h" static void pl_nothing() { } static void pl_networkaccessmanager() { T_APP_BEGIN_CONSOLE; QNetworkAccessManager *nam = new QNetwo...
fix accidental multiple apps
tests/valgrind/network: fix accidental multiple apps
C++
bsd-2-clause
Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui
9016282573ff00e2fa971b5ad1303994ec0e471d
src/lepp2/SplitApproximator.hpp
src/lepp2/SplitApproximator.hpp
#ifndef LEPP2_SPLIT_APPROXIMATOR_H__ #define LEPP2_SPLIT_APPROXIMATOR_H__ #include "lepp2/ObjectApproximator.hpp" #include "lepp2/models/ObjectModel.h" #include <deque> #include <map> #include <pcl/common/pca.h> #include <pcl/common/common.h> namespace lepp { /** * An ABC that represents the strategy for splitting...
#ifndef LEPP2_SPLIT_APPROXIMATOR_H__ #define LEPP2_SPLIT_APPROXIMATOR_H__ #include "lepp2/ObjectApproximator.hpp" #include "lepp2/models/ObjectModel.h" #include <deque> #include <map> #include <pcl/common/pca.h> #include <pcl/common/common.h> namespace lepp { /** * An ABC that represents the strategy for splitting...
Implement a DepthLimit SplitStrategy
Implement a DepthLimit SplitStrategy This implementation of the `SplitStrategy` interface stops the splitting process once a certain depth of the BFS tree is reached.
C++
mit
sahandy/lepp2,mlalic/lepp2,mlalic/lepp2,sahandy/lepp2
7d21ab59fdf3939128fac67b0fb7e4e119397ce3
src/libaten/geometry/vertex.cpp
src/libaten/geometry/vertex.cpp
#include "geometry/vertex.h" namespace aten { std::vector<int> VertexManager::s_indices; std::vector<vertex> VertexManager::s_vertices; GeomVertexBuffer VertexManager::s_vb; void VertexManager::build() { s_vb.init( sizeof(vertex), s_vertices.size(), 0, &s_vertices[0]); } }
#include "geometry/vertex.h" namespace aten { std::vector<int> VertexManager::s_indices; std::vector<vertex> VertexManager::s_vertices; GeomVertexBuffer VertexManager::s_vb; void VertexManager::build() { if (!s_vertices.empty() && !s_vb.isInitialized()) { s_vb.init( sizeof(vertex), s_vertices.s...
Modify to initialize one time.
Modify to initialize one time.
C++
mit
nakdai/aten,nakdai/aten
80735c4cc987d9db89bdc248010c8f47fd748c1b
src/libexpr/primops/fetchGit.cc
src/libexpr/primops/fetchGit.cc
#include "primops.hh" #include "eval-inline.hh" #include "download.hh" #include "store-api.hh" #include "pathlocks.hh" #include <sys/time.h> #include <regex> #include <nlohmann/json.hpp> using namespace std::string_literals; namespace nix { struct GitInfo { Path storePath; std::string rev; std::string...
#include "primops.hh" #include "eval-inline.hh" #include "download.hh" #include "store-api.hh" #include "pathlocks.hh" #include <sys/time.h> #include <regex> #include <nlohmann/json.hpp> using namespace std::string_literals; namespace nix { struct GitInfo { Path storePath; std::string rev; std::string...
Fix debug message
fetchGit: Fix debug message
C++
lgpl-2.1
NixOS/nix,peti/nix,dezgeg/nix,rycee/nix,dezgeg/nix,layus/nix,layus/nix,NixOS/nix,peti/nix,layus/nix,ehmry/nix,NixOS/nix,rycee/nix,dezgeg/nix,dtzWill/nix,ehmry/nix,ehmry/nix,layus/nix,zimbatm/nix,rycee/nix,zimbatm/nix,vcunat/nix,vcunat/nix,peti/nix,NixOS/nix,shlevy/nix,layus/nix,NixOS/nix,peti/nix,dtzWill/nix,shlevy/nix...
96c22c9cdff5abb50d3653d352acfbbf345b96d2
src/libs/engine/AudioBuffer.cpp
src/libs/engine/AudioBuffer.cpp
/* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any...
/* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any...
Fix crash on triggers on the last sample of the cycle.
Fix crash on triggers on the last sample of the cycle. git-svn-id: 0c12d7dd8c1ea2d70f3066f15e3a34dd5ccac610@1356 a436a847-0d15-0410-975c-d299462d15a1
C++
agpl-3.0
drobilla/ingen,ventosus/ingen,ventosus/ingen,drobilla/ingen,ventosus/ingen,drobilla/ingen,ventosus/ingen,drobilla/ingen
d45084d7f2d358ee8f441df0fd3514d8a18f71af
src/Dataflow/Serialization/Network/Tests/NetworkSerializationTests.cc
src/Dataflow/Serialization/Network/Tests/NetworkSerializationTests.cc
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
Fix serialization tests
Fix serialization tests
C++
mit
collint8/SCIRun,jcollfont/SCIRun,jessdtate/SCIRun,moritzdannhauer/SCIRunGUIPrototype,ajanson/SCIRun,jessdtate/SCIRun,jessdtate/SCIRun,moritzdannhauer/SCIRunGUIPrototype,jcollfont/SCIRun,jessdtate/SCIRun,jcollfont/SCIRun,jcollfont/SCIRun,moritzdannhauer/SCIRunGUIPrototype,collint8/SCIRun,collint8/SCIRun,jessdtate/SCIRun...
6902d9220c7ba8b26230031c13612c567bbe22fc
tools/driver/swift_format_main.cpp
tools/driver/swift_format_main.cpp
//===--- swift_format_main.cpp - Swift code formatting tool ---------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
//===--- swift_format_main.cpp - Swift code formatting tool ---------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Use UINT_MAX instead of a "magic" upper bound
Use UINT_MAX instead of a "magic" upper bound If a line range is not set, create a line range over the unsigned type, instead of setting an arbitrary limit. We're not probably going to ever deal with such big files, though.
C++
apache-2.0
frootloops/swift,huonw/swift,IngmarStein/swift,bitjammer/swift,jmgc/swift,jopamer/swift,roambotics/swift,gregomni/swift,uasys/swift,apple/swift,xwu/swift,stephentyrone/swift,shahmishal/swift,tardieu/swift,karwa/swift,stephentyrone/swift,harlanhaskins/swift,aschwaighofer/swift,jtbandes/swift,austinzheng/swift,karwa/swif...
3f4963bae6821005c0d355587e43ca17512e5a3b
src/import/chips/p9/procedures/hwp/io/p9_io_erepairAccessorHwpFuncs.H
src/import/chips/p9/procedures/hwp/io/p9_io_erepairAccessorHwpFuncs.H
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_erepairAccessorHwpFuncs.H $ */ /*...
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_erepairAccessorHwpFuncs.H $ */ /*...
Fix parameter order mismatch for erepairSetFailedLanes
Fix parameter order mismatch for erepairSetFailedLanes Change-Id: I204e26740cf192ac161a4dfb6a1b8c45c0d1b25e CQ:SW405469 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48558 Reviewed-by: Caleb N. Palmer <4dd1938fbd016e66315ec83516544b027a7e47e1@us.ibm.com> Tested-by: FSP CI Jenkins <aa9e4d9ac7cd25905e9c0dd36d4150...
C++
apache-2.0
Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot
c47b24138b77747556641b9b526c534abeda9434
protocols/oscar/liboscar/tasks/profiletask.cpp
protocols/oscar/liboscar/tasks/profiletask.cpp
/* Kopete Oscar Protocol profiletask.h - Update the user's profile on the server Copyright (c) 2004 Matt Rogers <mattr@kde.org> Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
/* Kopete Oscar Protocol profiletask.h - Update the user's profile on the server Copyright (c) 2004 Matt Rogers <mattr@kde.org> Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
Send real kopete version to others. We had 0.12.1 long time
Send real kopete version to others. We had 0.12.1 long time svn path=/trunk/KDE/kdenetwork/kopete/; revision=698407
C++
lgpl-2.1
josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete
1705545222f11367f1fa02758bcc153caff1065b
scan_file_task.cpp
scan_file_task.cpp
#include <QDebug> #include <jansson.h> #include "VtFile.h" #include "VtResponse.h" #include "qvtfile.h" #include "vt-log.h" #include "scan_file_task.h" ScanFileTask::ScanFileTask(QVtFile *vt_file) { file = vt_file; } #define RESP_BUF_SIZE 255 static void progress_update(struct VtFile *vtfile, void *qfile) { Q...
#include <QDebug> #include <jansson.h> #include "VtFile.h" #include "VtResponse.h" #include "qvtfile.h" #include "vt-log.h" #include "scan_file_task.h" ScanFileTask::ScanFileTask(QVtFile *vt_file) { file = vt_file; } #define RESP_BUF_SIZE 255 static void progress_update(struct VtFile *vtfile, void *qfile) { Q...
fix for API change
fix for API change
C++
apache-2.0
VirusTotal/qt-virustotal-uploader,VirusTotal/qt-virustotal-uploader,VirusTotal/qt-virustotal-uploader
329daf5b51c2bcc30e9a0257670cd8193100801d
query_server/cpp_client_server/QueryClient.cpp
query_server/cpp_client_server/QueryClient.cpp
/** * Non-metric Space Library * * Main developers: Bilegsaikhan Naidan, Leonid Boytsov, Yury Malkov, Ben Frederickson, David Novak * * For the complete list of contributors and further details see: * https://github.com/searchivarius/NonMetricSpaceLib * * Copyright (c) 2013-2018 * * This code is released unde...
/** * Non-metric Space Library * * Main developers: Bilegsaikhan Naidan, Leonid Boytsov, Yury Malkov, Ben Frederickson, David Novak * * For the complete list of contributors and further details see: * https://github.com/searchivarius/NonMetricSpaceLib * * Copyright (c) 2013-2018 * * This code is released unde...
Update cpp client to experiment with batch knn query
Update cpp client to experiment with batch knn query
C++
apache-2.0
nmslib/nmslib,nmslib/nmslib,nmslib/nmslib,nmslib/nmslib,nmslib/nmslib,nmslib/nmslib,nmslib/nmslib
8208a85a1b6268c7adf77837db5fc75540ceda77
plugins/unifiedvideoinertialtracker/TrackingSystem.cpp
plugins/unifiedvideoinertialtracker/TrackingSystem.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 where we were failing to update a timestamp.
Fix where we were failing to update a timestamp.
C++
apache-2.0
godbyk/OSVR-Core,leemichaelRazer/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,leemichaelRazer/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,leemichaelRazer/OSVR-Core,godbyk/OSVR-Core,leemichaelRazer/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,godbyk/OSVR-Core,leemichaelRazer/OSVR-Cor...
0f1ad2260e7b3cb03178fef1d4f9fb30c7a15958
contracts/eosiolib/dispatcher.hpp
contracts/eosiolib/dispatcher.hpp
#pragma once #include <eosiolib/print.hpp> #include <eosiolib/action.hpp> #include <boost/fusion/adapted/std_tuple.hpp> #include <boost/fusion/include/std_tuple.hpp> #include <boost/mp11/tuple.hpp> #define N(X) ::eosio::string_to_name(#X) namespace eosio { template<typename Contract, typename FirstAction> bool ...
#pragma once #include <eosiolib/print.hpp> #include <eosiolib/action.hpp> #include <boost/fusion/adapted/std_tuple.hpp> #include <boost/fusion/include/std_tuple.hpp> #include <boost/mp11/tuple.hpp> #define N(X) ::eosio::string_to_name(#X) namespace eosio { template<typename Contract, typename FirstAction> bool ...
Update dispatcher.hpp
Update dispatcher.hpp
C++
mit
EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos
3e966a918a9df7e65d381ddcaca35271cb305000
src/avancedb/rest_server.cpp
src/avancedb/rest_server.cpp
#include "rest_server.h" #include <sstream> #include <cstring> #include <boost/uuid/uuid.hpp> #include <boost/uuid/random_generator.hpp> #include <boost/uuid/uuid_io.hpp> #include "json_stream.h" #include "rest_exceptions.h" #include "database.h" #define REGEX_DBNAME R"(_?[a-z][a-z0-9_\$\+\-\(\)]+)" #define REGEX_D...
#include "rest_server.h" #include <sstream> #include <cstring> #include <iomanip> #include <boost/uuid/uuid.hpp> #include <boost/uuid/random_generator.hpp> #include <boost/uuid/uuid_io.hpp> #include "json_stream.h" #include "rest_exceptions.h" #include "database.h" #define REGEX_DBNAME R"(_?[a-z][a-z0-9_\$\+\-\(\)]...
Correct /_uuids formatting behaviour
Correct /_uuids formatting behaviour
C++
agpl-3.0
AppleWatchHipster/AvanceDB,AppleWatchHipster/AvanceDB,RipcordSoftware/AvanceDB,AppleWatchHipster/AvanceDB,AppleWatchHipster/AvanceDB,RipcordSoftware/AvanceDB,AppleWatchHipster/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,AppleWatchHipster/AvanceDB,RipcordSoftware/AvanceDB,RipcordS...
e67c9f46379880120eeb8c61123330cea4150ca9
LxRunOffline/error.cpp
LxRunOffline/error.cpp
#include "stdafx.h" #include "error.h" #include "utils.h" const wstr msg_table[] = { L"Could't open the file \"%1%\".", L"Couldn't open the directory \"%1%\".", L"Couldn't create the file \"%1%\".", L"Couldn't create the directory \"%1%\".", L"Couldn't delete the file \"%1%\".", L"Couldn't delete the ...
#include "stdafx.h" #include "error.h" #include "utils.h" const wstr msg_table[] = { L"Could't open the file \"%1%\".", L"Couldn't open the directory \"%1%\".", L"Couldn't create the file \"%1%\".", L"Couldn't create the directory \"%1%\".", L"Couldn't delete the file \"%1%\".", L"Couldn't delete the ...
fix typo speicified -> specified
fix typo speicified -> specified
C++
mit
sqc1999/LxRunOffline
c4768ff6c3acf85fd296572a6d492e14982577a3
MMgc/GCHeapGeneric.cpp
MMgc/GCHeapGeneric.cpp
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
Fix the unused/untested GCHeapGeneric.cpp, need to address this somehow
Fix the unused/untested GCHeapGeneric.cpp, need to address this somehow
C++
mpl-2.0
pnkfelix/tamarin-redux,pfgenyun/tamarin-redux,pfgenyun/tamarin-redux,pnkfelix/tamarin-redux,pfgenyun/tamarin-redux,pnkfelix/tamarin-redux,pfgenyun/tamarin-redux,pnkfelix/tamarin-redux,pnkfelix/tamarin-redux,pfgenyun/tamarin-redux,pfgenyun/tamarin-redux,pnkfelix/tamarin-redux,pnkfelix/tamarin-redux,pfgenyun/tamarin-redu...
7a6437e51f708eda7eba98a7ad2250ada4b0f198
src/mlpack/core/math/random.hpp
src/mlpack/core/math/random.hpp
/** * @file random.hpp * * Miscellaneous math random-related routines. */ #ifndef __MLPACK_CORE_MATH_RANDOM_HPP #define __MLPACK_CORE_MATH_RANDOM_HPP #include <stdlib.h> #include <math.h> #include <float.h> #include <stdint.h> #include <boost/random.hpp> namespace mlpack { namespace math /** Miscellaneous math r...
/** * @file random.hpp * * Miscellaneous math random-related routines. */ #ifndef __MLPACK_CORE_MATH_RANDOM_HPP #define __MLPACK_CORE_MATH_RANDOM_HPP #include <mlpack/prereqs.hpp> #include <boost/random.hpp> namespace mlpack { namespace math /** Miscellaneous math routines. */ { // Annoying Boost versioning issu...
Remove unnecessary includes.
Remove unnecessary includes.
C++
bsd-3-clause
thirdwing/mlpack,thirdwing/mlpack,trungda/mlpack,minhpqn/mlpack,minhpqn/mlpack,trungda/mlpack,bmswgnp/mlpack,Azizou/mlpack,stereomatchingkiss/mlpack,darcyliu/mlpack,stereomatchingkiss/mlpack,BookChan/mlpack,erubboli/mlpack,datachand/mlpack,Azizou/mlpack,chenmoshushi/mlpack,palashahuja/mlpack,chenmoshushi/mlpack,stereom...
3c9e520f007b227b78ac542ae63226bd0586a963
app/TimerMessage.cpp
app/TimerMessage.cpp
#include <TimerMessage.h> #include <QDebug> TimerMessage::TimerMessage(QObject *parent) : QObject(parent), m_pTimer(new QTimer(this)), m_counter(0) { connect(m_pTimer, SIGNAL(timeout()), this, SLOT(printCounter()) ); m_pTimer->setInterval(1000); m_pTimer->start(); } void TimerMessage::printCo...
#include <TimerMessage.h> #include <QDebug> TimerMessage::TimerMessage(QObject *parent) : QObject(parent), m_pTimer(new QTimer(this)), m_counter(0) { connect(m_pTimer, SIGNAL(timeout()), this, SLOT(printCounter()) ); m_pTimer->setInterval(750); m_pTimer->start(); } void TimerMessage::printCou...
Test them all. Fix interval
Test them all. Fix interval
C++
mit
lomedil/betterlogger
09e0d3ffdffd87e9efecbf5b4c6d24224153fdea
src/codegen/expression/null_check_translator.cpp
src/codegen/expression/null_check_translator.cpp
//===----------------------------------------------------------------------===// // // Peloton // // null_check_translator.cpp // // Identification: src/codegen/expression/null_check_translator.cpp // // Copyright (c) 2015-2017, Carnegie Mellon University Database Group // //===-----------------...
//===----------------------------------------------------------------------===// // // Peloton // // null_check_translator.cpp // // Identification: src/codegen/expression/null_check_translator.cpp // // Copyright (c) 2015-2017, Carnegie Mellon University Database Group // //===-----------------...
Correct name of included header file.
Correct name of included header file.
C++
apache-2.0
PauloAmora/peloton,yingjunwu/peloton,malin1993ml/peloton,malin1993ml/peloton,yingjunwu/peloton,PauloAmora/peloton,cmu-db/peloton,haojin2/peloton,seojungmin/peloton,seojungmin/peloton,seojungmin/peloton,yingjunwu/peloton,apavlo/peloton,cmu-db/peloton,cmu-db/peloton,cmu-db/peloton,seojungmin/peloton,cmu-db/peloton,haojin...
da4a555bc63a0725068ef8ad2fc4d18bde5e115a
core/test/async/callback_test.cpp
core/test/async/callback_test.cpp
/* * * callback_test * ledger-core * * Created by Pierre Pollastri on 28/09/2016. * * The MIT License (MIT) * * Copyright (c) 2016 Ledger * * 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...
/* * * callback_test * ledger-core * * Created by Pierre Pollastri on 28/09/2016. * * The MIT License (MIT) * * Copyright (c) 2016 Ledger * * 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...
Update travis
Update travis
C++
mit
LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core
ae2679b1bf2367be471e528b870c4311cb9ea131
234-Palindrome_Linked_List-e.cpp
234-Palindrome_Linked_List-e.cpp
// Given a singly linked list, determine if it is a palindrome. // Follow up: // Could you do it in O(n) time and O(1) space? /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: boo...
// Given a singly linked list, determine if it is a palindrome. // Follow up: // Could you do it in O(n) time and O(1) space? /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ // just follow regular reverse lis...
update 234
update 234
C++
bsd-3-clause
ysmiles/leetcode-cpp,ysmiles/leetcode-cpp
950f62c1ccff7cf59c220e9016ead0845767e546
os/win/color_space.cpp
os/win/color_space.cpp
// LAF OS Library // Copyright (C) 2018 Igara Studio S.A. // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "os/osx/color_space.h" #include "base/file_content.h" #include "base/fs.h" #include "base/strin...
// LAF OS Library // Copyright (C) 2018 Igara Studio S.A. // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "os/osx/color_space.h" #include "base/file_content.h" #include "base/fs.h" #include "base/strin...
Fix compilation on Windows/MSVC for 32-bit CPUs
Fix compilation on Windows/MSVC for 32-bit CPUs
C++
mit
aseprite/laf,aseprite/laf
7108cc5f2b1408299e711d76d7a555b09518b8de
atom/browser/api/atom_api_protocol.cc
atom/browser/api/atom_api_protocol.cc
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/api/atom_api_protocol.h" #include "atom/browser/atom_browser_client.h" #include "atom/browser/atom_browser_context.h" #include "atom/browser/atom_browser_main_p...
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/browser/api/atom_api_protocol.h" #include "atom/browser/atom_browser_client.h" #include "atom/browser/atom_browser_context.h" #include "atom/browser/atom_browser_main_p...
Mark standard scheme as safe scheme
Mark standard scheme as safe scheme
C++
mit
thomsonreuters/electron,jhen0409/electron,twolfson/electron,miniak/electron,rajatsingla28/electron,aliib/electron,gabriel/electron,thompsonemerson/electron,biblerule/UMCTelnetHub,gabriel/electron,biblerule/UMCTelnetHub,electron/electron,jhen0409/electron,seanchas116/electron,tonyganch/electron,gerhardberger/electron,vo...
fe1fb1336b44bb073125aa4b42f12baa316e9fea
techlibs/xilinx/synth_xilinx.cc
techlibs/xilinx/synth_xilinx.cc
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * 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 ...
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * 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 ...
Add Xilinx negedge FFs to synth_xilinx dffinit call, fixes #873
Add Xilinx negedge FFs to synth_xilinx dffinit call, fixes #873 Signed-off-by: Clifford Wolf <b28e7ff75903c06de987a1eb75ea100a79c89e3a@clifford.at>
C++
isc
cliffordwolf/yosys,cliffordwolf/yosys,SymbiFlow/yosys,YosysHQ/yosys,SymbiFlow/yosys,SymbiFlow/yosys,SymbiFlow/yosys,cliffordwolf/yosys,cliffordwolf/yosys,cliffordwolf/yosys,antmicro/yosys,YosysHQ/yosys,antmicro/yosys,YosysHQ/yosys,cliffordwolf/yosys,antmicro/yosys,cliffordwolf/yosys,YosysHQ/yosys,antmicro/yosys,YosysHQ...
f903e13d9e8f39afbb53beb2823342a0fa902ab7
cpp/GraphColoring/source/main.cpp
cpp/GraphColoring/source/main.cpp
#include "../include/AdjacencyList.h" #include "../include/FileReader.h" #include <iostream> int main() { std::string base = "../../../../OneDrive/Documents/TU Delft/Research/Graphs/"; std::string path = base + "tiny/out.tiny"; AdjacencyList adjacencyList = FileReader::read(path); auto sorted = adjacencyList.g...
#include "../include/AdjacencyList.h" #include "../include/FileReader.h" #include <iostream> #include <string> #include <chrono> int main() { typedef std::chrono::high_resolution_clock Clock; typedef std::chrono::milliseconds ms; Clock::time_point start, finish; std::string base = "../../../../OneDrive/Documen...
Add std::chrono timing to main
Add std::chrono timing to main
C++
mit
leonoverweel/graph-coloring,leonoverweel/graph-coloring
9b92949189633416e723c308e59be89d0b9c806e
multivec/monolingual.hpp
multivec/monolingual.hpp
#pragma once #include "utils.hpp" class MonolingualModel { friend class BilingualModel; friend void save(ofstream& outfile, const MonolingualModel& model); friend void load(ifstream& infile, MonolingualModel& model); private: Config* const config; mat input_weights; mat output_weights; // out...
#pragma once #include "utils.hpp" class MonolingualModel { friend class BilingualModel; friend void save(ofstream& outfile, const MonolingualModel& model); friend void load(ifstream& infile, MonolingualModel& model); private: Config* const config; mat input_weights; mat output_weights; // out...
Add IDF consideration in similaritySentenceSyntax
Add IDF consideration in similaritySentenceSyntax Add IDF consideration in similaritySentenceSyntax
C++
apache-2.0
eske/word2vecpp-legacy,eske/multivec,eske/multivec,eske/word2vecpp-legacy,eske/multivec,eske/multivec,eske/word2vecpp-legacy,eske/word2vecpp-legacy,eske/word2vecpp-legacy,eske/multivec,eske/multivec
e8572158a66861efae8b3dcbc1cc28dcbd34a6d9
grab_display/zcacalc.cpp
grab_display/zcacalc.cpp
#include <string> #include "zca.hpp" #include "utilities_common.h" using namespace std; using namespace cv; int main(void) { vector<string> filePaths; GetFilePaths("/media/kjaget/84CA3305CA32F2D2/cygwin64/home/ubuntu/2015VisionCode/cascade_training/negative_images/framegrabber", ".png", filePaths); GetFi...
#include <string> #include "zca.hpp" #include "random_subimage.hpp" #include "utilities_common.h" using namespace std; using namespace cv; static void doZCA(const vector<Mat> &images, const Size &size, const float epsilon, const bool gcn, const string &id, int seed) { ZCA zca(images, size, epsilon, gcn); stringst...
Make more modular
Make more modular
C++
mit
FRC900/2016VisionCode,FRC900/2016VisionCode,FRC900/2016VisionCode,FRC900/2016VisionCode,FRC900/2016VisionCode,FRC900/2016VisionCode,FRC900/2016VisionCode
ea4f412d5da23212ab59c352e9b361d23ea38e40
Source/DebugCamera.cpp
Source/DebugCamera.cpp
//Alex Newman #include "DebugCamera.h" #include "EventManager.h" #include "World.h" #include <GLM/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/vector_angle.hpp> #include <GLFW/glfw3.h> #include <algorithm> #include <iostream> using namespace glm; float DebugCamera::zoomLevel =...
//Alex Newman #include "DebugCamera.h" #include "EventManager.h" #include "World.h" #include <GLM/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/vector_angle.hpp> #include <GLFW/glfw3.h> #include <algorithm> #include <iostream> using namespace glm; float DebugCamera::zoomLevel =...
Debug cam speed
Debug cam speed
C++
mit
MadReza/IslandAdventures,MadReza/IslandAdventures,MadReza/IslandAdventures,MadReza/IslandAdventures,MadReza/IslandAdventures,MadReza/IslandAdventures
55a23b2c6b38506f6f3f68e00aacd78afaab214c
test/extensions/filters/listener/common/fuzz/listener_filter_fakes.cc
test/extensions/filters/listener/common/fuzz/listener_filter_fakes.cc
#include "test/extensions/filters/listener/common/fuzz/listener_filter_fakes.h" namespace Envoy { namespace Extensions { namespace ListenerFilters { Network::IoHandle& FakeConnectionSocket::ioHandle() { return *io_handle_; } const Network::IoHandle& FakeConnectionSocket::ioHandle() const { return *io_handle_; } Net...
#include "test/extensions/filters/listener/common/fuzz/listener_filter_fakes.h" namespace Envoy { namespace Extensions { namespace ListenerFilters { Network::IoHandle& FakeConnectionSocket::ioHandle() { return *io_handle_; } const Network::IoHandle& FakeConnectionSocket::ioHandle() const { return *io_handle_; } Net...
test fails to build on MacOS due to unused parameters (#16454)
bugfix: test fails to build on MacOS due to unused parameters (#16454) Signed-off-by: Mike Schore <270e364e708f2af319f244c09ceba52a03dbd980@gmail.com>
C++
apache-2.0
envoyproxy/envoy,envoyproxy/envoy,envoyproxy/envoy,envoyproxy/envoy,envoyproxy/envoy,envoyproxy/envoy,lyft/envoy,lyft/envoy,envoyproxy/envoy,envoyproxy/envoy,lyft/envoy,envoyproxy/envoy,lyft/envoy,envoyproxy/envoy,envoyproxy/envoy,lyft/envoy,envoyproxy/envoy,lyft/envoy
b410db844dd44c14204a43c93f104f6816ba6474
src/singletons/emotemanager.cpp
src/singletons/emotemanager.cpp
#include "singletons/emotemanager.hpp" #include "application.hpp" #include "controllers/accounts/accountcontroller.hpp" using namespace chatterino::providers::twitch; using namespace chatterino::messages; namespace chatterino { namespace singletons { void EmoteManager::initialize() { getApp()->accounts->twitch....
#include "singletons/emotemanager.hpp" #include "application.hpp" #include "controllers/accounts/accountcontroller.hpp" namespace chatterino { namespace singletons { void EmoteManager::initialize() { getApp()->accounts->twitch.currentUserChanged.connect([this] { auto currentUser = getApp()->accounts->twi...
Remove old emoji parsing test code
Remove old emoji parsing test code it can be recovered from the repo if we decide to make a test suite eShrug
C++
mit
hemirt/chatterino2,hemirt/chatterino2,fourtf/chatterino2,fourtf/chatterino2,Cranken/chatterino2,Cranken/chatterino2,fourtf/chatterino2,Cranken/chatterino2,hemirt/chatterino2,hemirt/chatterino2,Cranken/chatterino2
65594cfb2121b7cff76e5be79f9f901266c4f5b8
ngxpp/NgxLoadBalance.hpp
ngxpp/NgxLoadBalance.hpp
// Copyright (c) 2015-2017 // Author: Chrono Law #ifndef _NGX_LOAD_BALANCE_HPP #define _NGX_LOAD_BALANCE_HPP #include "NgxPool.hpp" template<typename T, ngx_event_get_peer_pt get_peer, ngx_event_free_peer_pt free_peer = nullptr, ngx_http_upstream_rr_peer_data_t T::* ptr = &T::rrp> class Ngx...
// Copyright (c) 2015-2017 // Author: Chrono Law #ifndef _NGX_LOAD_BALANCE_HPP #define _NGX_LOAD_BALANCE_HPP #include "NgxPool.hpp" template<typename T, ngx_event_get_peer_pt get_peer, ngx_event_free_peer_pt free_peer = nullptr, ngx_http_upstream_rr_peer_data_t T::* ptr = &T::rrp> class Ngx...
fix nullptr warning in clang
fix nullptr warning in clang
C++
bsd-2-clause
chronolaw/ngx_cpp_dev,chronolaw/ngx_cpp_dev,chronolaw/ngx_cpp_dev
23e235bb3d2dc5ecbcd55956933b24baf33d0b76
test/acknowledgements_to_sql.cc
test/acknowledgements_to_sql.cc
/* ** Copyright 2012-2013 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distributed in the hope...
/* ** Copyright 2012-2013 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distributed in the hope...
Fix the 'live' acknowledgement test.
Fix the 'live' acknowledgement test.
C++
apache-2.0
centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker
b2910300d2e8474d3342ef478ada10fdd0b3c5cd
sw.cpp
sw.cpp
#ifdef SW_PRAGMA_HEADER #pragma sw header on void gen_stamp(NativeExecutedTarget &t) { auto tools_stamp_gen = THIS_PREFIX "." "primitives.tools.stamp_gen" "-" THIS_VERSION_DEPENDENCY; { auto d = t + tools_stamp_gen; d->Dummy = true; } auto out = t.BinaryPrivateDir / "stamp.h.in"; ...
#ifdef SW_PRAGMA_HEADER #pragma sw header on void gen_stamp(NativeExecutedTarget &t) { auto tools_stamp_gen = THIS_PREFIX "." "primitives.tools.stamp_gen" "-" THIS_VERSION_DEPENDENCY; { auto d = t + tools_stamp_gen; d->Dummy = true; } auto out = t.BinaryPrivateDir / "stamp.h.in"; ...
Comment out tests.
Comment out tests.
C++
mpl-2.0
egorpugin/primitives,egorpugin/primitives
c570772bce8dff8c997077ea375f31ebce6c73f8
sw.cpp
sw.cpp
void build(Solution &s) { auto &tess = s.addProject("google.tesseract", "master"); tess += Git("https://github.com/tesseract-ocr/tesseract", "", "{v}"); auto &libtesseract = tess.addTarget<LibraryTarget>("libtesseract"); { libtesseract.setChecks("libtesseract"); libtesseract.ExportAllS...
void build(Solution &s) { auto &tess = s.addProject("google.tesseract", "master"); tess += Git("https://github.com/tesseract-ocr/tesseract", "", "{v}"); auto &libtesseract = tess.addTarget<LibraryTarget>("libtesseract"); { libtesseract.setChecks("libtesseract"); libtesseract.ExportAllS...
Exclude missing include dir.
[sw] Exclude missing include dir.
C++
apache-2.0
tesseract-ocr/tesseract,UB-Mannheim/tesseract,stweil/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,stweil/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,stweil/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,stweil/tesseract,stweil/tesseract,...
b9b10751dcb34e755a2088931206d51c235cdb99
o3d/plugin/cross/main.cc
o3d/plugin/cross/main.cc
/* * Copyright 2009, 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/* * Copyright 2009, 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
Fix IE crash regression from r66344.
Fix IE crash regression from r66344. TEST=pending: build and load in IE BUG=none Review URL: http://codereview.chromium.org/5325002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@67296 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,ropik/chromium,...
3e60056c44dc7f7c7dd62302825720e10c9b942c
gui/src/TGFSComboBox.cxx
gui/src/TGFSComboBox.cxx
// @(#)root/gui:$Name: $:$Id: TGFSComboBox.cxx,v 1.3 2000/09/29 08:57:05 rdm Exp $ // Author: Fons Rademakers 19/01/98 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
// @(#)root/gui:$Name: $:$Id: TGFSComboBox.cxx,v 1.4 2000/10/04 23:40:07 rdm Exp $ // Author: Fons Rademakers 19/01/98 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
fix small memory leak.
fix small memory leak. git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@2089 27541ba8-7e3a-0410-8455-c3a389f83636
C++
lgpl-2.1
zzxuanyuan/root-compressor-dummy,root-mirror/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,perovic/root,Duraznos/root,pspe/root,buuck/root,agarciamontoro/root,sbinet/cxx-root,mattkretz/root,simonpf/root,jrtomps/root,omazapa/root,arch1tect0r/root,lgiommi/root,bbockelm/root,tc3t/qoot,CristinaCristescu/root,evgen...
b669c6091e1b512674afc92d173c8a21bb6bfb44
src/coordinate_transform.hpp
src/coordinate_transform.hpp
// // coordinate_transform.hpp // OpenTsiolkovsky // // Created by Takahiro Inagawa on 2015/11/28. // Copyright © 2015 Takahiro Inagawa. All rights reserved. // #ifndef coordinate_transform_hpp #define coordinate_transform_hpp #include <stdio.h> #include <iostream> #include "../lib/Eigen/Core" const double pi = ...
// // coordinate_transform.hpp // OpenTsiolkovsky // // Created by Takahiro Inagawa on 2015/11/28. // Copyright © 2015 Takahiro Inagawa. All rights reserved. // #ifndef coordinate_transform_hpp #define coordinate_transform_hpp #include <stdio.h> #include <iostream> #include "../lib/Eigen/Core" #include "../lib/Ei...
fix include
fix include
C++
mit
istellartech/OpenTsiolkovsky,istellartech/OpenTsiolkovsky,istellartech/OpenTsiolkovsky,istellartech/OpenTsiolkovsky,istellartech/OpenTsiolkovsky,istellartech/OpenTsiolkovsky
c239e0416d54c0a19b55a056fa1c92bbd400cac7
src/core/lib/surface/init.cc
src/core/lib/surface/init.cc
/* * * Copyright 2015 gRPC authors. * * 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 agree...
/* * * Copyright 2015 gRPC authors. * * 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 agree...
Initialize time as part of basic initialization.
Initialize time as part of basic initialization. `gpr_time_init` must happen in `do_basic_init`, because for normal initialization we may need the precise clock (e.g., if profilers are enabled). Otherwise, we will have an stack overflow. Fixes #18589
C++
apache-2.0
sreecha/grpc,jtattermusch/grpc,pszemus/grpc,vjpai/grpc,muxi/grpc,muxi/grpc,stanley-cheung/grpc,grpc/grpc,grpc/grpc,pszemus/grpc,grpc/grpc,pszemus/grpc,firebase/grpc,sreecha/grpc,jtattermusch/grpc,grpc/grpc,ctiller/grpc,ejona86/grpc,ctiller/grpc,donnadionne/grpc,nicolasnoble/grpc,firebase/grpc,stanley-cheung/grpc,nicola...
3a9db750bb48434321c2f5e43d9e6bc26dc29def
data_structures/patricia_trie.cpp
data_structures/patricia_trie.cpp
/* Copyright Eli Dupree and Isaac Dupree, 2011, 2012, 2013 This file is part of Lasercake. Lasercake is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Licens...
/* Copyright Eli Dupree and Isaac Dupree, 2011, 2012, 2013 This file is part of Lasercake. Lasercake is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Licens...
simplify insert()
patricia_trie: simplify insert()
C++
agpl-3.0
idupree/Lasercake,Lasercake/Lasercake,elidupree/Lasercake,elidupree/Lasercake,elidupree/Lasercake,elidupree/Lasercake,Lasercake/Lasercake,idupree/Lasercake,elidupree/Lasercake,idupree/Lasercake,idupree/Lasercake,idupree/Lasercake,elidupree/Lasercake,elidupree/Lasercake,Lasercake/Lasercake,idupree/Lasercake,idupree/Lase...
94067584aba85c85c27e0fdd95b6070c1ae570d5
tests/GenericConversionTest.cpp
tests/GenericConversionTest.cpp
/* This file is part of the Util library. Copyright (C) 2013 Benjamin Eikel <benjamin@eikel.org> This library is subject to the terms of the Mozilla Public License, v. 2.0. You should have received a copy of the MPL along with this library; see the file LICENSE. If not, you can obtain one at http://mozilla.org/...
/* This file is part of the Util library. Copyright (C) 2013 Benjamin Eikel <benjamin@eikel.org> This library is subject to the terms of the Mozilla Public License, v. 2.0. You should have received a copy of the MPL along with this library; see the file LICENSE. If not, you can obtain one at http://mozilla.org/...
Remove unused iterator
Remove unused iterator
C++
mpl-2.0
PADrend/Util
97c490d3698a08e3e7ba1cf001033ea263dbdd13
093.cpp
093.cpp
/* This solution draws ideas from how genetic algorithms can be used to determine combinations of operators and values to give some selected number. We consider arithmetic operations in Polish notation. We have a set of operators, A = {'.', '+', '-', '*', '/'} where '.' refers to a unary operator t...
/* This solution draws ideas from how genetic algorithms can be used to determine combinations of operators and values to give some selected number. We consider arithmetic operations in Polish notation. We have a set of operators, A = {'.', '+', '-', '*', '/'} where '.' refers to a unary operator t...
Enforce const correctness.
Enforce const correctness.
C++
mit
LeeYiyuan/projecteuler,LeeYiyuan/projecteuler
da684a6202ee2fea94fe243c50a5f67ae2d532f5
163.cpp
163.cpp
class Solution { public: /** * @paramn n: An integer * @return: An integer */ int numTrees(int n) { // write your code here int f[n+5],i,j; for (i=0;i<n+1;++i) f[i]=0; f[0]=1; f[1]=1; for (i=2;i<=n;++i){ for (j=0;j<i;++j) ...
Solve 163 in c++
Solve 163 in c++
C++
mit
jonathanxqs/lintcode,jonathanxqs/lintcode
f77e6a113576e7457bf1559bb74c7aedfa51aaa5
chrome/browser/extensions/extension_disabled_ui_browsertest.cc
chrome/browser/extensions/extension_disabled_ui_browsertest.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/files/file_path.h" #include "base/files/scoped_temp_dir.h" #include "chrome/app/chrome_command_ids.h" #include "chrome/browser/extensio...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/files/file_path.h" #include "base/files/scoped_temp_dir.h" #include "chrome/app/chrome_command_ids.h" #include "chrome/browser/extensio...
Disable flaky ExtensionDisabledGlobalErrorTest.UnknownReasonHigherPermissions test.
Disable flaky ExtensionDisabledGlobalErrorTest.UnknownReasonHigherPermissions test. BUG=246431 NOTRY=true TBR=yoz Review URL: https://chromiumcodereview.appspot.com/16338002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@203802 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,ondra-novak/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,anirudhSK/chromium,Just-D/chromium-1,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,Chilledheart/chromium,axinging/chromium-crosswalk,...
b961d642fd72e80821bf4ef3ca855953c83a5326
bench/ClearBench.cpp
bench/ClearBench.cpp
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // This benchmark attempts to measure the time to do a fullscreen clear, an axis-aligned partial // clear, and a clear restricted to an axis-aligned rounded rect. The fullscre...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // This benchmark attempts to measure the time to do a fullscreen clear, an axis-aligned partial // clear, and a clear restricted to an axis-aligned rounded rect. The fullscre...
Revert "Force flush in clear benchmarks"
Revert "Force flush in clear benchmarks" This reverts commit 75294fe3e8b43505cddcc0bee584f96daa099d99. Reason for revert: nanobench hangs on Perf-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Release-All Original change's description: > Force flush in clear benchmarks > > Bug: skia: > Change-Id: I9d373dbcf78c6fe52f...
C++
bsd-3-clause
HalCanary/skia-hc,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mir...
0f98c5a0ad3ddfada0b800a38edfa7bf9da710a7
chrome/browser/renderer_host/safe_browsing_resource_handler.cc
chrome/browser/renderer_host/safe_browsing_resource_handler.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" #include "base/logging.h" #include "chrome/browser/renderer_host/global_requ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" #include "base/logging.h" #include "chrome/browser/renderer_host/global_requ...
Initialize SafeBrowsingResourceHandler member.
Initialize SafeBrowsingResourceHandler member. BUG=None TEST=None CID=14296 Review URL: http://codereview.chromium.org/6469031 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@74808 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromi...
3f1ca23ca4e463784a187f265a1115172b63b8ba
bench/re2/common.hpp
bench/re2/common.hpp
// common re2 things #include <stdio.h> #include <re2/re2.h> #include <iostream> #include <string> #include <sys/time.h> #include <algorithm> #include <inttypes.h> using namespace std; #ifndef USE_UTF8 #define ENCODING_OPTION RE2::Options::EncodingLatin1 #else #define ENCODING_OPTION RE2::Options::EncodingUTF8 #...
// common re2 things #include <stdio.h> #include <re2/re2.h> #include <iostream> #include <string> #include <sys/time.h> #include <algorithm> #include <inttypes.h> using namespace std; #ifndef USE_UTF8 #define ENCODING_OPTION RE2::Options::EncodingLatin1 #else #define ENCODING_OPTION RE2::Options::EncodingUTF8 #...
read long lines
re2: read long lines
C++
mit
diku-kmc/kleenexlang,diku-kmc/kleenexlang,diku-kmc/kleenexlang,diku-kmc/repg,diku-kmc/repg,diku-kmc/repg,diku-kmc/repg,diku-kmc/repg,diku-kmc/repg,diku-kmc/kleenexlang,diku-kmc/kleenexlang,diku-kmc/kleenexlang
ff509545edb6a4daf7b940ab229aa65bbee6befa
chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc
chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" #include <string> #include "base/bind.h" #include "base/bind_helpers.h" #in...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" #include <string> #include "base/bind.h" #include "base/bind_helpers.h" #in...
Fix for flag-file covering Rollback reset option.
Fix for flag-file covering Rollback reset option. BUG=368844 Review URL: https://codereview.chromium.org/305153002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@273884 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
Pluto-tv/chromium-crosswalk,M4sse/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,ondra-novak/chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,axi...
b4caf2bb13b467a7f7b81134556e70d4f1b2717d
include/cybozu/zlib.hpp
include/cybozu/zlib.hpp
#pragma once /** @file @brief zlib compressor and decompressor class Copyright (C) 2009 Cybozu Labs, Inc., all rights reserved. */ #include <cybozu/exception.hpp> #include <cybozu/endian.hpp> #include <cybozu/stream_fwd.hpp> #include <assert.h> #include <zlib.h> #ifdef _MSC_VER #pragma comment(lib, "zlib.lib") #...
#pragma once /** @file @brief zlib compressor and decompressor class Copyright (C) 2009 Cybozu Labs, Inc., all rights reserved. */ #include <cybozu/exception.hpp> #include <cybozu/endian.hpp> #include <cybozu/stream_fwd.hpp> #include <assert.h> #include <zlib.h> #ifdef _MSC_VER #ifdef _DLL_CPPLIB #pragma comme...
select zlib_md.lib if _DLL_CPPLIB is defined
select zlib_md.lib if _DLL_CPPLIB is defined
C++
bsd-3-clause
herumi/cybozulib,herumi/cybozulib
812560d3349d555722f248a37a2503d0c8b4e1e8
include/dll/dyn_rbm.inl
include/dll/dyn_rbm.inl
//======================================================================= // Copyright (c) 2014-2016 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-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
Support input flattening
Support input flattening
C++
mit
wichtounet/dll,wichtounet/dll,wichtounet/dll
2859755bd3911bdd69ff75a99733f7d0a7f58989
excercise04/sort/quick/type_b.cpp
excercise04/sort/quick/type_b.cpp
#include "../quick.hpp" #include "../swap.hpp" void quick(int *data, const int size_of_data) { return quick(data, 0, size_of_data - 1); } void quick(int *data, const int start, const int end) { int size = end - start + 1; if(start >= end) return; /* Base case */ /* Conquer */ int pivot = partiti...
#include "../quick.hpp" #include "../swap.hpp" void quick(int *data, const int size_of_data) { return quick(data, 0, size_of_data - 1); } void quick(int *data, const int start, const int end) { int size = end - start + 1; if(start >= end) return; /* Base case */ /* Conquer */ int pivot = partiti...
Fix bug which variable name is not match
Fix bug which variable name is not match
C++
mit
kdzlvaids/algorithm_and_practice-pknu-2016,kdzlvaids/algorithm_and_practice-pknu-2016
e12689aca372ab4b2d317c84f6fba4a27ef490d3
tests/src/read_circuit_test.cpp
tests/src/read_circuit_test.cpp
#include "read_circuit.h" #include "circuit.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace qflex { namespace { using ::testing::Eq; using ::testing::Pointwise; // This circuit is missing the number of active qubits as its first line. constexpr char kMissingNumQubitsCircuit[] = R"( 0 h 0 0 h 1)"; co...
#include "read_circuit.h" #include "circuit.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace qflex { namespace { using ::testing::Eq; using ::testing::Pointwise; // This circuit is missing the number of active qubits as its first line. constexpr char kMissingNumQubitsCircuit[] = R"( 0 h 0 0 h 1)"; co...
Fix test.
Fix test.
C++
apache-2.0
ngnrsaa/qflex,ngnrsaa/qflex,ngnrsaa/qflex,ngnrsaa/qflex
e645ef2d47b66a6bb7be48b770a7ebaa296714cb
tests/test_member_iterator2.cpp
tests/test_member_iterator2.cpp
#include "catch.hpp" #include <utility> #include <type_traits> #include <iterator> #include <algorithm> #include <member_iterator.hpp> #include <forward_list> TEST_CASE("member_iterator based on ForwardIterator", "[member_iterator]") { struct mock { char c; int i; }; std::forward_l...
#include "catch.hpp" #include <utility> #include <type_traits> #include <iterator> #include <algorithm> #include <member_iterator.hpp> #include <forward_list> TEST_CASE("member_iterator based on ForwardIterator", "[member_iterator]") { struct mock { char c; int i; }; std::forward_l...
Test less than and greater than. modified: tests/test_member_iterator2.cpp
Test less than and greater than. modified: tests/test_member_iterator2.cpp
C++
mit
bergesenha/helene
2a904565e528a8a97d3e3886a59f17fd07ec1699
idl/source/prj/svidl.cxx
idl/source/prj/svidl.cxx
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform ...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform ...
Remove MTW leftover
Remove MTW leftover
C++
mpl-2.0
JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core
38b7c4f1b78044a4b127499743d24a2369fb445a
include/vcl/sysdata.hxx
include/vcl/sysdata.hxx
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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://mozil...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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://mozil...
Add CGContext field to SystemGraphicsData for iOS, too
Add CGContext field to SystemGraphicsData for iOS, too
C++
mpl-2.0
JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core
116d9f1e002fc5b79a8402f34018b4991a85fd80
include/VisitorUtils.hpp
include/VisitorUtils.hpp
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=====================================================...
Improve VisitorUtils to handle both void and non_void visitors
Improve VisitorUtils to handle both void and non_void visitors
C++
mit
wichtounet/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic
07fdf6adca585a2bbedbe082d5b947364f81a4b6
C++/intervalcover/intervalcover.cpp
C++/intervalcover/intervalcover.cpp
#include <stdio.h> #include <stdlib.h> #include <utility> #include <queue> #define pdd pair<double, double> #define pdi pair<double, int> using namespace std; // Should work, but there are still some bugs struct comp { bool operator() (const pdi &a, const pdi &b) { return a.first > b.first; } }; ve...
#include <stdio.h> #include <stdlib.h> #include <utility> #include <queue> #define pdd pair<double, double> #define pdi pair<double, int> using namespace std; // Should work, but there are still some bugs struct comp { bool operator() (const pdi &a, const pdi &b) { return a.first > b.first; } }; vec...
fix typo
fix typo
C++
mit
rvrheenen/OpenKattis,rvrheenen/OpenKattis,rvrheenen/OpenKattis,rvrheenen/OpenKattis,rvrheenen/OpenKattis,rvrheenen/OpenKattis,rvrheenen/OpenKattis
0d3ab07ad1863ad89785c3e66d4e1969eac98a29
CompilerStack.cpp
CompilerStack.cpp
/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed in the...
/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed in the...
Handle absence of Natspec doc and add option to solc
Handle absence of Natspec doc and add option to solc
C++
mit
ruchevits/solidity,shahankhatch/solidity,ethers/solidity,ruchevits/solidity,chriseth/solidity,LianaHus/solidity,arkpar/solidity,LefterisJP/solidity,ruchevits/solidity,vaporry/solidity,ruchevits/solidity,douglas-larocca/solidity,chriseth/solidity-doc-test,gluk256/solidity,debris/solidity
446be95b98fe3366b52df6adeacb6e2e16f0b90c
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...
fix error in oracle driver when shutting down the connection after ping
fix error in oracle driver when shutting down the connection after ping git-svn-id: 668645f5c615c5338f34c47d21d9e584f02cf8c0@153 8aebba32-5d12-0410-a889-bbfed4e15866
C++
lgpl-2.1
maekitalo/tntdb,OlafRadicke/tntdb,maekitalo/tntdb,OlafRadicke/tntdb
b026be19942d23c2607924c3d571ac6c921da434
CompoundAgent.cpp
CompoundAgent.cpp
/* * CompoundAgent.cpp * openc2e * * Created by Alyssa Milburn on Tue May 25 2004. * Copyright (c) 2004 Alyssa Milburn. All rights reserved. * * 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 S...
/* * CompoundAgent.cpp * openc2e * * Created by Alyssa Milburn on Tue May 25 2004. * Copyright (c) 2004 Alyssa Milburn. All rights reserved. * * 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 S...
fix crash
fix crash
C++
lgpl-2.1
crystalline/openc2e,crystalline/openc2e,bdonlan/openc2e,bdonlan/openc2e,crystalline/openc2e,ccdevnet/openc2e,bdonlan/openc2e,bdonlan/openc2e,crystalline/openc2e,crystalline/openc2e,ccdevnet/openc2e,ccdevnet/openc2e,ccdevnet/openc2e,ccdevnet/openc2e,ccdevnet/openc2e
658df475c35b473b3d0edb0b64de268903b703b1
src/input/ExtAtomFactory.cpp
src/input/ExtAtomFactory.cpp
/******************************************************************************* * Copyright 2016 Francesco Calimeri, Davide Fusca', Simona Perri and Jessica Zangari * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
/******************************************************************************* * Copyright 2016 Francesco Calimeri, Davide Fusca', Simona Perri and Jessica Zangari * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
Fix minor error message
Fix minor error message
C++
apache-2.0
DeMaCS-UNICAL/I-DLV,DeMaCS-UNICAL/I-DLV
551d2b7f510545c6e9548e8da0a982e0e648d7a3
E_Libs/StdLib.cpp
E_Libs/StdLib.cpp
// StdLib.cpp // This file is part of the EScript programming language (https://github.com/EScript) // // Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de> // Copyright (C) 2012 Benjamin Eikel <benjamin@eikel.org> // // Licensed under the MIT License. See LICENSE file for details. // ---------------------------...
// StdLib.cpp // This file is part of the EScript programming language (https://github.com/EScript) // // Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de> // Copyright (C) 2012 Benjamin Eikel <benjamin@eikel.org> // // Licensed under the MIT License. See LICENSE file for details. // ---------------------------...
Use _execv from process.h
VS: Use _execv from process.h See https://msdn.microsoft.com/en-us/library/886kc0as.aspx
C++
mit
EScript/EScript,EScript/EScript
7137277a3d9a612b2555e67f988a6b0aca9505c4
src/istream/sink_gstring.cxx
src/istream/sink_gstring.cxx
/* * author: Max Kellermann <mk@cm4all.com> */ #include "sink_gstring.hxx" #include "async.hxx" #include "istream.hxx" #include "pool.hxx" #include "util/Cast.hxx" #include <glib.h> struct sink_gstring { struct pool *pool; struct istream *input; GString *value; void (*callback)(GString *value, GE...
/* * author: Max Kellermann <mk@cm4all.com> */ #include "sink_gstring.hxx" #include "async.hxx" #include "istream_oo.hxx" #include "pool.hxx" #include "util/Cast.hxx" #include <glib.h> struct sink_gstring { struct pool *pool; struct istream *input; GString *value; void (*callback)(GString *value,...
use MakeIstreamHandler
istream/sink_gstring: use MakeIstreamHandler
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
441331f158a5b5530286226161cca576a4d715a8
core/temporary_buffer.hh
core/temporary_buffer.hh
/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef TEMPORARY_BUFFER_HH_ #define TEMPORARY_BUFFER_HH_ #include "deleter.hh" #include "util/eclipse.hh" // A temporary_buffer either points inside a larger buffer, or, if the requested size // is too large, or if the larger buffer is scattered, contains its own ...
/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef TEMPORARY_BUFFER_HH_ #define TEMPORARY_BUFFER_HH_ #include "deleter.hh" #include "util/eclipse.hh" // A temporary_buffer either points inside a larger buffer, or, if the requested size // is too large, or if the larger buffer is scattered, contains its own ...
fix missing exception
temporary_buffer: fix missing exception Since we switched temporary_buffer to malloc(), it now longer throws an exception after running out of memory, which leads to a segfault when referencing a null buffer.
C++
apache-2.0
slivne/seastar,joerg84/seastar,avikivity/scylla,stamhe/seastar,rentongzhang/scylla,justintung/scylla,respu/scylla,mixja/seastar,raphaelsc/seastar,kjniemi/seastar,jonathanleang/seastar,eklitzke/scylla,scylladb/scylla-seastar,phonkee/scylla,printedheart/seastar,raphaelsc/seastar,leejir/seastar,scylladb/scylla,raphaelsc/s...
e7285e80ca03432cab9f3a34078d72586fe2cfca
include/nomlib/types.hpp
include/nomlib/types.hpp
/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that ...
/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that ...
Remove useless data typedef 'bit'
Remove useless data typedef 'bit'
C++
bsd-2-clause
i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib
a8b279b1986efe8bd4a96ab3bc46674b391a0d9c
cpp/aizu/stable_sort.cpp
cpp/aizu/stable_sort.cpp
#include <iostream> #include <vector> using namespace std; int main() { int length, count = 0; cin >> length; vector<string> vector(length); for (int i = 0; i < length; i++) { cin >> vector[i]; } //sort logic cout << vector[0]; for (int i = 1; i < length; i++) { ...
#include <iostream> #include <vector> using namespace std; class Card { private: string name_; int value_; public: Card(string card) { name_ = card; value_ = stoi(card.substr(1, 1)); }; string name(){return name_;}; int value(){return value_;}; }; void bubbleSort(vector<...
Add bubbleSort() to stable sort.
Add bubbleSort() to stable sort.
C++
mit
itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground,itohiro73/playground
7b9c845c883b2d378587f83c9de9b5a3eb673554
include/signum/fixed.hpp
include/signum/fixed.hpp
/* * Copyright 2015 C. Brett Witherspoon */ #include <cmath> #include <limits> #include <type_traits> namespace signum { //! Convert a fixed-point type to a floating-point type template<typename Float, typename Fixed> Float fixed_to_floating(Fixed fixed) { static_assert( std::is_floating_point<Float>::value &...
/* * Copyright 2015 C. Brett Witherspoon */ #ifndef SIGNUM_FIXED_HPP_ #define SIGNUM_FIXED_HPP_ #include <cmath> #include <limits> #include <type_traits> namespace signum { //! Convert a fixed-point type to a floating-point type template<typename Float, typename Fixed> Float fixed_to_floating(Fixed fixed) { stat...
add include gaurds
fixed: add include gaurds
C++
isc
bwitherspoon/signum
a6dc94870ec87dd02ab3d9fce3711c9549f6a15b
gninasrc/gninagrid/molgridder.cpp
gninasrc/gninagrid/molgridder.cpp
/* * molgridder.cpp * * Created on: Apr 23, 2019 * Author: dkoes */ #include "molgridder.h" #include <libmolgrid/cartesian_grid.h> #include <boost/timer/timer.hpp> #include <boost/lexical_cast.hpp> using namespace std; using namespace libmolgrid; MolGridder::MolGridder(const gridoptions& opt) : dimen...
/* * molgridder.cpp * * Created on: Apr 23, 2019 * Author: dkoes */ #include "molgridder.h" #include <libmolgrid/cartesian_grid.h> #include <boost/timer/timer.hpp> #include <boost/lexical_cast.hpp> using namespace std; using namespace libmolgrid; MolGridder::MolGridder(const gridoptions& opt) : dimen...
fix segfault
fix segfault
C++
apache-2.0
gnina/gnina,gnina/gnina,gnina/gnina,gnina/gnina,gnina/gnina,gnina/gnina
1e701b2fdaa10672393c7196ee6a08caf5d89b20
mordor/streams/timeout.cpp
mordor/streams/timeout.cpp
// Copyright (c) 2010 - Mozy, Inc. #include "mordor/pch.h" #include "timeout.h" #include "mordor/exception.h" #include "mordor/socket.h" #include "mordor/timer.h" namespace Mordor { static void cancelReadLocal(Stream::ptr stream, bool &flag) { stream->cancelRead(); flag = true; } static void cancelWriteLo...
// Copyright (c) 2010 - Mozy, Inc. #include "mordor/pch.h" #include "timeout.h" #include "mordor/exception.h" #include "mordor/log.h" #include "mordor/socket.h" #include "mordor/timer.h" namespace Mordor { static Logger::ptr g_log = Log::lookup("mordor:streams:timeout"); static void cancelReadLocal(Stream::ptr st...
Make sure to cancel the timeout if a read/write fails.
Make sure to cancel the timeout if a read/write fails. Change-Id: I883a6af37b9dfcc4e6e6973f7a07102ee70d218b Reviewed-on: https://gerrit.dechocorp.com/4745 Reviewed-by: Jeremy Stanley <8cc48e55af0ea00a29d3ccf3190022dccfb4961b@decho.com> Reviewed-by: Russ Simons <c93a72122f3199b175c9b2766a6096fa95d517d4@decho.com>
C++
bsd-3-clause
mtanski/mordor,cgaebel/mordor,mtanski/mordor,adfin/mordor,mtanski/mordor,mozy/mordor,mozy/mordor,adfin/mordor,ccutrer/mordor,ccutrer/mordor,ccutrer/mordor,mozy/mordor,cgaebel/mordor,adfin/mordor
d887d0ba518b4181259b7dda8a501b23d4ba542a
hoomd/md/MolecularForceCompute.cc
hoomd/md/MolecularForceCompute.cc
// Copyright (c) 2009-2017 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: jglaser #include "MolecularForceCompute.h" #include "hoomd/CachedAllocator.h" #include "hoomd/Autotuner.h" #ifdef ENABLE_CUDA #include "Molecu...
// Copyright (c) 2009-2017 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: jglaser #include "MolecularForceCompute.h" #include "hoomd/CachedAllocator.h" #include "hoomd/Autotuner.h" #ifdef ENABLE_CUDA #include "Molecu...
add debug output
add debug output
C++
bsd-3-clause
joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue
6a9d3b5be3d171203791a355183d64c6b23093e0
COFF/PDB.cpp
COFF/PDB.cpp
//===- PDB.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- PDB.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Fix a bug where we continually re-follow type servers.
[lld] Fix a bug where we continually re-follow type servers. Originally this was intended to be set up so that when linking a PDB which refers to a type server, it would only visit the PDB once, and on subsequent visitations it would just skip it since all the records had already been added. Due to some C++ scoping i...
C++
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
d8adbff72f6648589d7699857ee8c65a80315033
kernel/fstdata.cc
kernel/fstdata.cc
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2022 Miodrag Milanovic <micko@yosyshq.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...
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2022 Miodrag Milanovic <micko@yosyshq.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...
Handle possible non-memory indexed data
Handle possible non-memory indexed data
C++
isc
YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys
2e9238157dd8ab55ba7a0e48cec986a35a3bc882
shims/graphics.cpp
shims/graphics.cpp
#include "graphics.h" #include <SDL.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif #define error(fmt, ...) _error(__LINE__, fmt, __VA_ARGS__) #define sdl_error(name, ...) _sdl_error(__LINE__, name) static void _error(long line, const char *fmt, ...); static void _sdl_error(long line, const char *name); s...
#include "graphics.h" #include <SDL.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif #define error(fmt, ...) _error(__LINE__, fmt, __VA_ARGS__) #define sdl_error(name, ...) _sdl_error(__LINE__, name) static void _error(long line, const char *fmt, ...); static void _sdl_error(long line, const char *name); s...
Add implementation for closegraph
Add implementation for closegraph
C++
mit
sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta
62771e0f36e2417c7c46c6cdaf78375186ba76fe
deal.II/examples/step-53/step-53.cc
deal.II/examples/step-53/step-53.cc
/* --------------------------------------------------------------------- * $Id$ * * Copyright (C) 2014 by the deal.II authors * * This file is part of the deal.II library. * * The deal.II library is free software; you can use it, redistribute * it, and/or modify it under the terms of the GNU Lesser General * P...
/* --------------------------------------------------------------------- * $Id$ * * Copyright (C) 2014 by the deal.II authors * * This file is part of the deal.II library. * * The deal.II library is free software; you can use it, redistribute * it, and/or modify it under the terms of the GNU Lesser General * P...
Copy Luca's example from tests/manifold/manifold_06.cc.
Copy Luca's example from tests/manifold/manifold_06.cc. git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@33178 0785d39b-7218-0410-832d-ea1e28bc413d
C++
lgpl-2.1
andreamola/dealii,natashasharma/dealii,lpolster/dealii,JaeryunYim/dealii,adamkosik/dealii,natashasharma/dealii,mtezzele/dealii,johntfoster/dealii,maieneuro/dealii,sairajat/dealii,kalj/dealii,gpitton/dealii,sairajat/dealii,shakirbsm/dealii,lue/dealii,lpolster/dealii,shakirbsm/dealii,spco/dealii,angelrca/dealii,nicolacav...
cefefc985f7f340c68eca91a34cfd22a60860c50
kmail/kmmimeparttree.cpp
kmail/kmmimeparttree.cpp
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include "kmmimeparttree.h" #include "kmreaderwin.h" #include "partNode.h" #include "kmkernel.h" #include "objecttreeparser.h" using KMail::ObjectTreeParser; #include <kdebug.h> #include <klocale.h> #include <kfiledialog.h> #include <kmessagebox.h> #include <kiconload...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include "kmmimeparttree.h" #include "kmreaderwin.h" #include "partNode.h" #include "kmmsgpart.h" #include "kmkernel.h" #include "objecttreeparser.h" using KMail::ObjectTreeParser; #include <kdebug.h> #include <klocale.h> #include <kfiledialog.h> #include <kmessagebox...
Save all _actual_ attachments. But Ingo is right this whole code should be moved to KMCommand, which I'm gonna do but for the time being, save the attachments and not all body parts.
Save all _actual_ attachments. But Ingo is right this whole code should be moved to KMCommand, which I'm gonna do but for the time being, save the attachments and not all body parts. svn path=/trunk/kdepim/; revision=236042
C++
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi