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 |
|---|---|---|---|---|---|---|---|---|---|
5a2ee77c36b53b226851f7c93ec05baffb088eb3 | core/src/builders/CacheBuilder.hpp | core/src/builders/CacheBuilder.hpp | #ifndef BUILDERS_CACHEBUILDER_HPP_DEFINED
#define BUILDERS_CACHEBUILDER_HPP_DEFINED
#include "builders/BuilderContext.hpp"
#include "builders/ElementBuilder.hpp"
#include "builders/EmptyBuilder.hpp"
#include "builders/MeshCache.hpp"
#include "entities/Node.hpp"
#include "entities/Way.hpp"
#include "entities/Area.hpp"
... | #ifndef BUILDERS_CACHEBUILDER_HPP_DEFINED
#define BUILDERS_CACHEBUILDER_HPP_DEFINED
#include "builders/BuilderContext.hpp"
#include "builders/ElementBuilder.hpp"
#include "builders/EmptyBuilder.hpp"
#include "builders/MeshCache.hpp"
#include "entities/Node.hpp"
#include "entities/Way.hpp"
#include "entities/Area.hpp"
... | fix issue with builder context for caching | core: fix issue with builder context for caching
| C++ | apache-2.0 | reinterpretcat/utymap,reinterpretcat/utymap,reinterpretcat/utymap |
f232f161332a6a11c387e18cba179c99783aa09f | cpp/src/test/utils/TestRanking.cpp | cpp/src/test/utils/TestRanking.cpp | #include <vector>
#include <gtest/gtest.h>
#include "../../main/utils/Ranking.h"
class DummyModel : public Model {
public:
DummyModel(){
scores.resize(20);
scores[9]=0.8;
scores[0]=0.6;
scores[4]=0.6;
scores[5]=0.6;
scores[8]=0.6;
scores[2]=0.5;
scores[3]=0.4;
... | #include <vector>
#include <gtest/gtest.h>
#include "../../main/utils/Ranking.h"
class DummyModel : public Model {
public:
DummyModel(){
scores.resize(20);
scores[9]=0.8;
scores[0]=0.6;
scores[4]=0.6;
scores[5]=0.6;
scores[8]=0.6;
scores[2]=0.5;
scores[3]=0.4;
... | fix TestRanking | fix TestRanking
| C++ | apache-2.0 | proto-n/Alpenglow,rpalovics/Alpenglow,proto-n/Alpenglow,proto-n/Alpenglow,rpalovics/Alpenglow,rpalovics/Alpenglow |
4b4ed354e8d6d14296d82ee32e2aa2a4a0ac0de1 | src/HomieNode.cpp | src/HomieNode.cpp | #include "HomieNode.h"
using namespace HomieInternals;
HomieNode::HomieNode(const char* id, const char* type, NodeInputHandler inputHandler, bool subscribeToAll)
: _inputHandler(inputHandler)
, _subscriptionsCount(0)
, _subscribeToAll(subscribeToAll) {
if (strlen(id) + 1 > MAX_NODE_ID_LENGTH || strlen(type) + 1 > M... | #include "HomieNode.h"
using namespace HomieInternals;
HomieNode::HomieNode(const char* id, const char* type, NodeInputHandler inputHandler, bool subscribeToAll)
: _inputHandler(inputHandler)
, _subscriptionsCount(0)
, _subscribeToAll(subscribeToAll) {
if (strlen(id) + 1 > MAX_NODE_ID_LENGTH || strlen(type) + 1 > M... | Allow individual subscribes along with global subscribe | Allow individual subscribes along with global subscribe
| C++ | mit | marvinroger/homie-esp8266,euphi/homie-esp8266,euphi/homie-esp8266,marvinroger/homie-esp8266,marvinroger/homie-esp8266,euphi/homie-esp8266,marvinroger/homie-esp8266,euphi/homie-esp8266 |
60bedadf1ea86aa519f409b591c4952651b9c64f | src/NodeArray.cpp | src/NodeArray.cpp | #include "NodeArray.h"
#include <glm/gtc/packing.hpp>
#include <algorithm>
#include <cassert>
#include <sstream>
using namespace std;
NodeArray::NodeArray() : size_method(SizeMethod::CONSTANT, 1.0f) {
}
std::string
NodeArray::getNodeLabel(int node_id) const {
string label, uname, name;
long long id = 0;
aut... | #include "NodeArray.h"
#include <glm/gtc/packing.hpp>
#include <algorithm>
#include <cassert>
#include <sstream>
using namespace std;
NodeArray::NodeArray() : size_method(SizeMethod::CONSTANT, 1.0f) {
}
std::string
NodeArray::getNodeLabel(int node_id) const {
string label, uname, name;
long long id = 0;
aut... | disable some code | disable some code
| C++ | mit | Sometrik/graphlib,Sometrik/graphlib |
dca6be41c11e9befaa3067564a2de124190c79fe | src/SSEServer.cpp | src/SSEServer.cpp | #include <stdlib.h>
#include <boost/foreach.hpp>
#include <boost/bind.hpp>
#include "Common.h"
#include "SSEServer.h"
#include "SSEClient.h"
#include "HTTPRequest.h"
#include "HTTPResponse.h"
#include "SSEEvent.h"
#include "SSEConfig.h"
#include "SSEChannel.h"
#include "InputSources/amqp/AmqpInputSource.h"
using names... | #include <stdlib.h>
#include <boost/foreach.hpp>
#include <boost/bind.hpp>
#include "Common.h"
#include "SSEServer.h"
#include "SSEClient.h"
#include "HTTPRequest.h"
#include "HTTPResponse.h"
#include "SSEEvent.h"
#include "SSEConfig.h"
#include "SSEChannel.h"
#include "InputSources/amqp/AmqpInputSource.h"
using names... | Set event path before compiling event. | Set event path before compiling event.
| C++ | mit | vgno/ssehub,olesku/ssehub,rexxars/ssehub,vgno/ssehub,sgulseth/ssehub,voldern/ssehub,sgulseth/ssehub,olesku/ssehub,voldern/ssehub,rexxars/ssehub |
dd7418914df40637288964da269690285627fade | test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp | test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Fix TEST_HAS_NO_EXCEPTIONS misspelling in the test suite. | Fix TEST_HAS_NO_EXCEPTIONS misspelling in the test suite.
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@271501 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
45fa39c40311d43b0754a26496461cbf70bb365e | src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp | src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | Fix usage of deprecated function. | QmlDesigner: Fix usage of deprecated function.
Change-Id: I5d6d6d99e5e61816b974e8b81dcce0e5063ce5e9
Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
| C++ | lgpl-2.1 | danimo/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,kuba1/qtcreator,farseerri/git_code,colede/qtcreator,danimo/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,colede/qtcreator,farseerri/git_code,danimo/qt-creator,xianian/qt-creator,maui-packages/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,kub... |
61dfa6b807cb8d9d3d5f62aa505813cc30a6e117 | packages/Search/examples/distributed_tree_driver/distributed_tree_driver.cpp | packages/Search/examples/distributed_tree_driver/distributed_tree_driver.cpp | /****************************************************************************
* Copyright (c) 2012-2019 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | /****************************************************************************
* Copyright (c) 2012-2019 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | Remove Teuchos::TimeMonitor and Comm from distributed search tree benchmark | Remove Teuchos::TimeMonitor and Comm from distributed search tree benchmark
| C++ | bsd-3-clause | ORNL-CEES/DataTransferKit,ORNL-CEES/DataTransferKit,Rombur/DataTransferKit,Rombur/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit,Rombur/DataTransferKit,ORNL-CEES/DataTransferKit |
a3098c0bccc72a6445fb18f691e88e3a43189eb5 | c++/main.cpp | c++/main.cpp | #include <iostream>
#include <vector>
#include <map>
// other function style
int square1(int x) {
return x * x;
}
auto square(int x) -> int {
return x * x;
}
// no return
void disp(const std::string& s) {
std::string buf = "disp: " + s + "\n";
printf(buf.c_str());
}
int abs1(int x) {
if (x >= 0)... | #include <iostream>
#include <vector>
#include <map>
// other function style
int square1(int x) {
return x * x;
}
auto square(int x) -> int {
return x * x;
}
// no return
void disp(const std::string& s) {
std::cout << "disp: " << s << std::endl;
}
void disp_int(int s) {
std::cout << s << std::endl;
... | Add algorithm | Add algorithm
| C++ | mit | yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program,yukihirai0505/tutorial-program |
f463dc9d32c69e5e1e7295a0df9cedeb8ecba5eb | Plugins/org.mitk.gui.qt.volumevisualization/src/internal/QmitkVolumeVisualizationView.cpp | Plugins/org.mitk.gui.qt.volumevisualization/src/internal/QmitkVolumeVisualizationView.cpp | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | Add vtk include needed for version check to work | Add vtk include needed for version check to work
| C++ | bsd-3-clause | iwegner/MITK,MITK/MITK,MITK/MITK,fmilano/mitk,RabadanLab/MITKats,fmilano/mitk,NifTK/MITK,fmilano/mitk,RabadanLab/MITKats,RabadanLab/MITKats,NifTK/MITK,NifTK/MITK,RabadanLab/MITKats,iwegner/MITK,iwegner/MITK,MITK/MITK,iwegner/MITK,MITK/MITK,RabadanLab/MITKats,NifTK/MITK,MITK/MITK,fmilano/mitk,fmilano/mitk,RabadanLab/MIT... |
5fe8c50f1ca8c59793462b7e1331667b0df39d22 | software/src/main.cpp | software/src/main.cpp | #include "DS18B20Temperature.h"
#include "HixConfig.h"
#include "HixMQTT.h"
#include "HixWebServer.h"
#include "secret.h"
#include <ArduinoOTA.h>
#include <FS.h>
#include <HixLED.h>
#include <HixPinDigitalInput.h>
#include <HixPinDigitalOutput.h>
#include <HixString.h>
#include <HixTimeout.h>
// runtime global variabl... | #include "DS18B20Temperature.h"
#include "HixConfig.h"
#include "HixMQTT.h"
#include "HixWebServer.h"
#include "secret.h"
#include <ArduinoOTA.h>
#include <FS.h>
#include <HixLED.h>
#include <HixPinDigitalInput.h>
#include <HixPinDigitalOutput.h>
#include <HixString.h>
#include <HixTimeout.h>
// runtime global variabl... | add input interupt begin | add input interupt begin
| C++ | mit | hixfield/ESP8266Power,hixfield/ESP8266Power |
3c8df403433be820521809c4735dd2a0a14db620 | source/FAST/Visualization/ComputationThread.cpp | source/FAST/Visualization/ComputationThread.cpp | #include "ComputationThread.hpp"
#include "SimpleWindow.hpp"
#include "View.hpp"
#include <QGLContext>
namespace fast {
ComputationThread::ComputationThread(QThread* mainThread) {
mIsRunning = false;
mStop = false;
mMainThread = mainThread;
}
void ComputationThread::addView(View* view) {
mViews.push_... | #include "ComputationThread.hpp"
#include "SimpleWindow.hpp"
#include "View.hpp"
#include <QGLContext>
namespace fast {
ComputationThread::ComputationThread(QThread* mainThread) {
mIsRunning = false;
mStop = false;
mMainThread = mainThread;
}
void ComputationThread::addView(View* view) {
mViews.push_... | Put ComputationThread to sleep if there is nothing for it to do | Put ComputationThread to sleep if there is nothing for it to do
| C++ | bsd-2-clause | smistad/FAST,smistad/FAST,smistad/FAST |
93712f903d3daf9ed18269de1637f0d37ccb36c6 | src/bp/Connection.cxx | src/bp/Connection.cxx | /*
* Copyright 2007-2020 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... | /*
* Copyright 2007-2020 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... | fix build without nghttp2 | bp/Connection: fix build without nghttp2
| C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
667f48b5ef5cdda883488cf5e07d75744d76c919 | src/build_log_test.cc | src/build_log_test.cc | #include "build_log.h"
#include "test.h"
struct BuildLogTest : public StateTestWithBuiltinRules {
virtual void SetUp() {
log_filename_ = tempnam(NULL, "ninja");
}
virtual void TearDown() {
unlink(log_filename_.c_str());
}
string log_filename_;
};
TEST_F(BuildLogTest, WriteRead) {
AssertParse(&st... | #include "build_log.h"
#include "test.h"
static const char kTestFilename[] = "BuildLogTest-tempfile";
struct BuildLogTest : public StateTestWithBuiltinRules {
virtual void SetUp() {
}
virtual void TearDown() {
unlink(kTestFilename);
}
};
TEST_F(BuildLogTest, WriteRead) {
AssertParse(&state_,
"build ou... | remove tempnam | remove tempnam
| C++ | apache-2.0 | automeka/ninja,drbo/ninja,pathscale/ninja,purcell/ninja,sorbits/ninja,cipriancraciun/ninja,maximuska/ninja,jhanssen/ninja,kimgr/ninja,jimon/ninja,dpwright/ninja,tychoish/ninja,nornagon/ninja,okuoku/ninja,guiquanz/ninja,glensc/ninja,fifoforlifo/ninja,maruel/ninja,mgaunard/ninja,dabrahams/ninja,kissthink/ninja,sgraham/ni... |
5b0786cea426485e51dc39675800759a182b51b8 | src/chaincoin-cli.cpp | src/chaincoin-cli.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#i... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#i... | Remove duplicate include | Remove duplicate include
| C++ | mit | chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin |
54aa7c43e7b45e06639dbd33d5c349c2531cf556 | src/AndroidClient.cpp | src/AndroidClient.cpp | #include <AndroidClient.h>
#include <jni.h>
#include <android/log.h>
#include <vector>
class AndroidClient : public HTTPClient {
public:
AndroidClient(JNIEnv * _env, const std::string & _user_agent, bool _enable_cookies, bool _enable_keepalive)
: HTTPClient(_user_agent, _enable_cookies, _enable_keepalive), env(_en... | #include <AndroidClient.h>
#include <jni.h>
#include <android/log.h>
#include <vector>
class AndroidClient : public HTTPClient {
public:
AndroidClient(JNIEnv * _env, const std::string & _user_agent, bool _enable_cookies, bool _enable_keepalive)
: HTTPClient(_user_agent, _enable_cookies, _enable_keepalive), env(_en... | Switch code placement with header and content gather | Switch code placement with header and content gather | C++ | mit | Sometrik/httpclient,Sometrik/httpclient |
879db6b562efee0f1f54128ab8f74d91585c4f85 | src/clientversion.cpp | src/clientversion.cpp | // Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' messa... | // Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' messa... | Rename ClientName | Rename ClientName | C++ | mit | Flurbos/Flurbo,Flurbos/Flurbo,Flurbos/Flurbo,Flurbos/Flurbo,Flurbos/Flurbo,Flurbos/Flurbo |
cfc702c27c87f9a4e05a09d3b1b3b5e8ac816e69 | src/cmd/whitelist.cpp | src/cmd/whitelist.cpp | #include "command.h"
#include "../CommandHandler.h"
#include "../OptionParser.h"
/* full name of the command */
CMDNAME("whitelist");
/* description of the command */
CMDDESCR("exempt websites from moderation");
/* command usage synopsis */
CMDUSAGE("$whitelist [-d] [SITE]");
/* whitelist: exempt websites from modera... | #include <string.h>
#include "command.h"
#include "../CommandHandler.h"
#include "../option.h"
#define MAX_URL 256
/* full name of the command */
_CMDNAME("whitelist");
/* description of the command */
_CMDDESCR("exempt websites from moderation");
/* command usage synopsis */
_CMDUSAGE("$whitelist [-d] [SITE]");
/* ... | Update whitelist command format | Update whitelist command format
| C++ | mit | frolv/lynxbot,frolv/osrs-twitch-bot,frolv/lynxbot,frolv/osrs-twitch-bot |
89eb7e771635c94025c1bcd50efc65a176f33579 | src/cincluder.cpp | src/cincluder.cpp | #pragma warning(push)
#pragma warning(disable:4996)
#pragma warning(disable:4244)
#pragma warning(disable:4291)
#pragma warning(disable:4146)
#include "clang/AST/AST.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/DeclVisitor.h"
#include "clang/Frontend/ASTConsumers.h"
#incl... | #pragma warning(push)
#pragma warning(disable:4996)
#pragma warning(disable:4244)
#pragma warning(disable:4291)
#pragma warning(disable:4146)
#include "clang/AST/AST.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/DeclVisitor.h"
#include "clang/Frontend/ASTConsumers.h"
#incl... | write .dot | write .dot
| C++ | bsd-3-clause | srz-zumix/cincluder |
a0b1ed85b41c9805872afbdbc8581e7954f2c49c | src/common/config.cpp | src/common/config.cpp | // Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as publish... | // Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as publish... | fix bug | fix bug
| C++ | lgpl-2.1 | rimms/jubatus,jubatus/jubatus,kmaehashi/jubatus_core,gintenlabo/jubatus_core,roselleebarle04/jubatus,gintenlabo/jubatus,kumagi/jubatus_core,jubatus/jubatus,gintenlabo/jubatus_core,gintenlabo/jubatus_core,roselleebarle04/jubatus,kumagi/jubatus_core,kmaehashi/jubatus,kmaehashi/jubatus_core,kmaehashi/jubatus_core,rimms/ju... |
1fb6d3e18285c8b96e3a33eff475bb95a9817734 | src/common/logging.cc | src/common/logging.cc | // Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yanshiguang02@baidu.com
#ifndef COMMON_LOGGING_H_
#define COMMON_LOGGING_H_
#include "logging.h"
#include <assert.h>
#include <boost/bind.... | // Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yanshiguang02@baidu.com
#ifndef COMMON_LOGGING_H_
#define COMMON_LOGGING_H_
#include "logging.h"
#include <assert.h>
#include <boost/bind.... | Update logging.cc | Update logging.cc
| C++ | bsd-3-clause | yvxiang/dfs,lylei/dfs,yvxiang/coverage_for_bfs,imotai/bfs,yvxiang/dfs,bluebore/dfs,baidu/bfs,yvxiang/dfs,baidu/bfs,lylei/dfs,bluebore/bfs,yvxiang/coverage_for_bfs,00k/ToyDFS,lylei/dfs,linyvxiang/dfs,myawan/bfs-1,baidu/bfs,imotai/bfs,yvxiang/coverage_for_bfs,myawan/bfs-1,linyvxiang/dfs,lylei/dfs,bluebore/bfs,myawan/bfs-... |
5f3cf53e2fa1afab831ae0e2ac3669c0b5a1d7ac | ds18b20_sensor/ds18b20_sensor.cpp | ds18b20_sensor/ds18b20_sensor.cpp | // Author: Brian Scully
// Copyright (c) 2016 Agponics
#include "ds18b20_sensor.h"
void CDs18b20Sensor::set_pin(int pin)
{
CDevice::set_pin(pin);
m_one_wire = OneWire(pin);
m_dt.setOneWire(&m_one_wire);
m_dt.begin();
m_device_cnt = m_dt.getDeviceCount();
if (m_device_cnt > MAX_PROBES)
... | // Author: Brian Scully
// Copyright (c) 2016 Agponics
#include "ds18b20_sensor.h"
void CDs18b20Sensor::set_pin(int pin)
{
CDevice::set_pin(pin);
m_one_wire = OneWire(pin);
m_dt.setOneWire(&m_one_wire);
m_dt.begin();
m_device_cnt = m_dt.getDeviceCount();
if (m_device_cnt > MAX_PROBES)
... | Remove ':' from DS18B20 status | Remove ':' from DS18B20 status
| C++ | artistic-2.0 | Agponics/arduinolibs,Agponics/arduinolibs |
9e6013809d63f3365023e6047fa31865db4e556d | src/cli/utils.cpp | src/cli/utils.cpp | /*
* (C) 2009,2010,2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "cli.h"
#include <botan/version.h>
#include <botan/auto_rng.h>
#include <botan/hash.h>
#include <botan/cpuid.h>
#include <botan/hex.h>
#if defined(BOTAN_HAS_BASE64_CODEC)
#include <botan/bas... | /*
* (C) 2009,2010,2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "cli.h"
#include <botan/version.h>
#include <botan/auto_rng.h>
#include <botan/hash.h>
#include <botan/cpuid.h>
#include <botan/hex.h>
#if defined(BOTAN_HAS_BASE64_CODEC)
#include <botan/bas... | Update rng cli - can make multiple requests | Update rng cli - can make multiple requests
| C++ | bsd-2-clause | randombit/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/... |
5a1e369d92ca5b344c916ce5df4c2c7a8d6523bd | src/Editor/Editor.cpp | src/Editor/Editor.cpp | #include "Editor.hpp"
#include "Util/EditorSettings.hpp"
#undef CreateDirectory
#include <Engine/Util/Input.hpp>
#include <Engine/Hymn.hpp>
#include <Engine/Manager/Managers.hpp>
#include <Engine/Manager/ScriptManager.hpp>
#include <Engine/Util/FileSystem.hpp>
#include <Engine/MainWindow.hpp>
#include <Engine/Compone... | #include "Editor.hpp"
#include "Util/EditorSettings.hpp"
#undef CreateDirectory
#include <Engine/Util/Input.hpp>
#include <Engine/Hymn.hpp>
#include <Engine/Manager/Managers.hpp>
#include <Engine/Manager/ScriptManager.hpp>
#include <Engine/Util/FileSystem.hpp>
#include <Engine/MainWindow.hpp>
#include <Engine/Compone... | Fix editor camera movement | Fix editor camera movement
| C++ | mit | Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/HymnToBeauty,Chainsawkitten/HymnToBeauty |
9a7202b2594c4a668a0c63e0cfa16052678e619e | engine/os/android/AndroidFile.cpp | engine/os/android/AndroidFile.cpp | /*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including withou... | /*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including withou... | clean code | clean code
| C++ | mit | mikymod/crown,dbartolini/crown,mikymod/crown,mikymod/crown,taylor001/crown,galek/crown,taylor001/crown,taylor001/crown,taylor001/crown,galek/crown,galek/crown,dbartolini/crown,galek/crown,dbartolini/crown,dbartolini/crown,mikymod/crown |
e20a29f3c6f96d2c9f5ac4a9c4959e8fe83df96b | src/JpegEnc/block.cpp | src/JpegEnc/block.cpp | #include "stdafx.h"
#include "block.h"
#include <cmath>
/**
Calculates the number of 8x8 blocks per row and number of rows from image dimensions.
@param[in] Width Width of the image.
@param[in] Height Height of the image.
@param[out] BlocksPerRow Number of blocks per row.
@param[out] RowCount... | #include "stdafx.h"
#include "block.h"
#include <cmath>
/**
Calculates the number of 8x8 blocks per row and number of rows from image dimensions.
@param[in] Width Width of the image.
@param[in] Height Height of the image.
@param[out] BlocksPerRow Number of blocks per row.
@param[out] RowCount... | Fix block reordering and extraction. | Fix block reordering and extraction.
| C++ | bsd-3-clause | dwarfcrank/yolo-dangerzone,dwarfcrank/yolo-dangerzone |
3a187b135b6bb492699e75da85f3fe0cfd0dea65 | fortune_weighted_points/__tests__/algorithm/test_helper/test_output_generator.cpp | fortune_weighted_points/__tests__/algorithm/test_helper/test_output_generator.cpp | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
using namespace std;
#include <algorithm>
#include <iostream>
#include <vector>
#include <set>
#include "fortune_weighted_points/algorithm/fortune.h"
#include "fortune_weighted_points/diagram/wsite.h"
#include "fortune_weighted_points/diagram/edge.h"
#include ... | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
using namespace std;
#include <algorithm>
#include <iostream>
#include <vector>
#include <set>
#include "fortune_weighted_points/algorithm/fortune.h"
#include "fortune_weighted_points/diagram/wsite.h"
#include "fortune_weighted_points/diagram/edge.h"
#include ... | Read n sites | Read n sites
| C++ | mit | matheusdallrosa/voronoi-diagram-construction,matheusdallrosa/voronoi-diagram-construction |
4e850fbbd9ba7667ddeed1fcec061230cd70e541 | src/core_read.cpp | src/core_read.cpp | // Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_io.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "... | // Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_io.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "... | update all vectore to std::vector in core_read.cpp | update all vectore to std::vector in core_read.cpp
| C++ | mit | bitcoinclassic/bitcoinclassic,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,zander/bitcoinclassic,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic |
53c6368dc223aed72e57f3aefdc7ad2ea1561403 | You-DataStore/datastore.cpp | You-DataStore/datastore.cpp | #include "stdafx.h"
#include "internal/internal_datastore.h"
#include "internal/operations/post_operation.h"
#include "internal/operations/put_operation.h"
#include "internal/operations/erase_operation.h"
#include "datastore.h"
namespace You {
namespace DataStore {
DataStore& DataStore::get() {
static DataStore ds;
... | #include "stdafx.h"
#include "internal/internal_datastore.h"
#include "internal/operations/post_operation.h"
#include "internal/operations/put_operation.h"
#include "internal/operations/erase_operation.h"
#include "datastore.h"
namespace You {
namespace DataStore {
DataStore& DataStore::get() {
static DataStore ds;
... | Load data during begin(), save data during notify() | Load data during begin(), save data during notify()
| C++ | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
d59836a785f459d342b03b1add4d4d0b2f99e296 | src/core/histogram.cc | src/core/histogram.cc | // Copyright (c) 2016 Alexander Gallego. All rights reserved.
//
#include "smf/histogram.h"
#include <cstdlib>
#include <hdr_histogram.h>
#include <hdr_histogram_log.h>
#include <iostream>
namespace smf {
seastar::lw_shared_ptr<histogram>
histogram::make_lw_shared(int64_t max_value) {
auto x = seastar::make_lw_sha... | // Copyright (c) 2016 Alexander Gallego. All rights reserved.
//
#include "smf/histogram.h"
#include <cstdlib>
#include <hdr_histogram.h>
#include <hdr_histogram_log.h>
#include <iostream>
namespace smf {
seastar::lw_shared_ptr<histogram>
histogram::make_lw_shared(int64_t max_value) {
auto x = seastar::make_lw_sha... | use constexpr | histogram: use constexpr
Signed-off-by: Noah Watkins <86ecd7d1c53cf33a85014f7cab78876cb4491020@gmail.com>
| C++ | agpl-3.0 | senior7515/smurf,senior7515/smurf,senior7515/smurf |
7599edffa9a2b3d4fc92b34cb88715a02fb19cf4 | src/idvaluemap.hh | src/idvaluemap.hh | #ifndef idvaluemap_hh_INCLUDED
#define idvaluemap_hh_INCLUDED
namespace Kakoune
{
template<typename _Id, typename _Value>
class idvaluemap
{
public:
typedef std::pair<_Id, _Value> value_type;
typedef std::vector<value_type> container_type;
typedef typename container_type::iterator iterator;
typedef ty... | #ifndef idvaluemap_hh_INCLUDED
#define idvaluemap_hh_INCLUDED
#include <vector>
#include "completion.hh"
namespace Kakoune
{
template<typename _Id, typename _Value>
class idvaluemap
{
public:
typedef std::pair<_Id, _Value> value_type;
typedef std::vector<value_type> container_type;
typedef typename conta... | add missing includes | idvaluemap: add missing includes
| C++ | unlicense | flavius/kakoune,danielma/kakoune,jjthrash/kakoune,lenormf/kakoune,rstacruz/kakoune,Asenar/kakoune,occivink/kakoune,ekie/kakoune,danielma/kakoune,flavius/kakoune,jkonecny12/kakoune,alpha123/kakoune,Somasis/kakoune,casimir/kakoune,zakgreant/kakoune,jjthrash/kakoune,casimir/kakoune,alexherbo2/kakoune,lenormf/kakoune,Somas... |
67a6f9549e4cd56cd29277598b9b9eff6078e1e6 | src/jobs_test.cpp | src/jobs_test.cpp | /**
* @author Andrew Stone <a@stoney.io>
* @copyright 2015 Andrew Stone
*
* This file is part of paratec and is released under the MIT License:
* http://opensource.org/licenses/MIT
*/
#include <atomic>
#include <iostream>
#include <sys/wait.h>
#include <thread>
#include "jobs.hpp"
#include "main.hpp"
#include "u... | /**
* @author Andrew Stone <a@stoney.io>
* @copyright 2015 Andrew Stone
*
* This file is part of paratec and is released under the MIT License:
* http://opensource.org/licenses/MIT
*/
#include <atomic>
#include <iostream>
#include <sys/wait.h>
#include <thread>
#include "jobs.hpp"
#include "main.hpp"
#include "u... | Add fail assertions, just in case | Add fail assertions, just in case
| C++ | mit | thatguystone/paratec,thatguystone/paratec |
804c57ca5429487ab212b395efd0656da2b2ace8 | src/c4/yml/common.hpp | src/c4/yml/common.hpp | #ifndef _C4_YML_COMMON_HPP_
#define _C4_YML_COMMON_HPP_
#include <cstddef>
#define RYML_INLINE inline
#ifndef C4_QUOTE
# define C4_QUOTE(x) #x
# define C4_XQUOTE(x) C4_QUOTE(x)
#endif
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4068/*unknown pragma*/)
#endif
#pragma GCC diagnosti... | #ifndef _C4_YML_COMMON_HPP_
#define _C4_YML_COMMON_HPP_
#include <cstddef>
#define RYML_INLINE inline
#ifndef C4_QUOTE
# define C4_QUOTE(x) #x
# define C4_XQUOTE(x) C4_QUOTE(x)
#endif
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4068/*unknown pragma*/)
#endif
#pragma GCC diagnosti... | add C4_ERROR_IF macros | add C4_ERROR_IF macros
| C++ | mit | biojppm/rapidyaml,biojppm/rapidyaml,biojppm/rapidyaml |
dcf888bf1262267ab54a423204770318147f6b2f | src/cli/OglSubmit.cpp | src/cli/OglSubmit.cpp | #include <ace/SOCK_Connector.h>
#include <ace/Get_Opt.h>
#include "Object.h"
#include "Commands.h"
#include "Connection.h"
#include "JobProxy.h"
#include "TaskProxy.h"
#include "Exception.h"
#include <iostream>
using namespace std;
using namespace ogl;
void print_help()
{
const char* help =
"Usage: ogls... | #include <ace/SOCK_Connector.h>
#include <ace/Get_Opt.h>
#include "Object.h"
#include "Commands.h"
#include "Connection.h"
#include "JobProxy.h"
#include "TaskProxy.h"
#include "Exception.h"
#include <iostream>
using namespace std;
using namespace ogl;
void print_help()
{
const char* help =
"Usage: ogls... | check task count | check task count
| C++ | mit | dma1982/ogl,dma1982/ogl |
3f0fc0f8e1538fa94c64702b0a25e5416f476998 | src/commands/Info.cpp | src/commands/Info.cpp | // cfiles, an analysis frontend for the Chemfiles library
// Copyright (C) Guillaume Fraux and contributors -- BSD license
#include <iostream>
#include <sstream>
#include <docopt/docopt.h>
#include <chemfiles.hpp>
#include "Info.hpp"
#include "Errors.hpp"
#include "utils.hpp"
using namespace chemfiles;
static cons... | // cfiles, an analysis frontend for the Chemfiles library
// Copyright (C) Guillaume Fraux and contributors -- BSD license
#include <iostream>
#include <sstream>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <docopt/docopt.h>
#include <chemfiles.hpp>
#include "Info.hpp"
#include "Errors.hpp"
#include "ut... | Convert Info to use fmt | Convert Info to use fmt
| C++ | mpl-2.0 | chemfiles/chrp,Luthaf/chrp |
bc184e7c0689b26e0c62d36d3cb701cce6236876 | src/common/cynara.cpp | src/common/cynara.cpp | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* 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
*
* ... | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* 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
*
* ... | Add app permissions to MANIFESTS bucket instead of default. | Add app permissions to MANIFESTS bucket instead of default.
Change-Id: Ic19078c83c7075717c3d6b3c10c8883944519e5f
Signed-off-by: Michal Eljasiewicz <eaedd677cdd57ca40a1b72ee4a298eae6d3de9e2@samsung.com>
| C++ | apache-2.0 | pohly/security-manager,Samsung/security-manager,pohly/security-manager,Samsung/security-manager,pohly/security-manager,Samsung/security-manager |
8bdc276bbc981e8dc7ccba726284a251994e6e22 | src/console-server.cc | src/console-server.cc | //#define ENABLE_DEBUG_TRACES
#include <libport/compiler.hh>
#include <libport/unistd.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <libport/cstring>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <libport/asio.hh>
#include <libport/cli.hh>
#include <libport/debug.hh>
#inc... | //#define ENABLE_DEBUG_TRACES
#include <libport/compiler.hh>
#include <libport/unistd.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <libport/cstring>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <libport/asio.hh>
#include <libport/cli.hh>
#include <libport/debug.hh>
#inc... | Improve command-line parsing to handle '--' and shebang mode. | main: Improve command-line parsing to handle '--' and shebang mode.
* src/console-server.cc (init): Use libport::OptionEnd to gather
all args after '--' or at the first non-option argument. Also
split argv[1] on ' ' if it contains spaces and starts with '-'.
| C++ | bsd-3-clause | urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi |
4968c3668e69058754834128e635524cca59b32a | src/console-server.cc | src/console-server.cc | //#define ENABLE_DEBUG_TRACES
#include "libport/compiler.hh"
#include "libport/unistd.h"
#include "libport/sysexits.hh"
#include "libport/windows.hh"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <boost/foreach.hpp>
#include "libport/cli.hh"
#include "libport/program-name.hh"
#include "libport... | //#define ENABLE_DEBUG_TRACES
#include <libport/compiler.hh>
#include <libport/unistd.h>
#include <libport/sysexits.hh>
#include <libport/windows.hh>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <boost/foreach.hpp>
#include <libport/cli.hh>
#include <libport/program-name.hh>
#include <libport... | Use <> for libport. | Use <> for libport.
* src/console-server.cc: Use include <> for libport headers.
| C++ | bsd-3-clause | urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi |
cf7a60947e372cdd0b7f3f19a024353439893a1c | C++/minimum-depth-of-binary-tree.cpp | C++/minimum-depth-of-binary-tree.cpp | // Time: O(n)
// Space: O(n)
/**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
public:
/**
* @param root: The root o... | // Time: O(n)
// Space: O(h)
/**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
public:
/**
* @param root: The root o... | Update minimum-depth-of-binary-tree.cpp | Update minimum-depth-of-binary-tree.cpp | C++ | mit | jaredkoontz/lintcode,kamyu104/LintCode,kamyu104/LintCode,jaredkoontz/lintcode,kamyu104/LintCode,jaredkoontz/lintcode |
d4d26f07dd3e82d83811f3f018460f364630e40c | C++Tutorials/Step_5/S5_Fibonacci.cpp | C++Tutorials/Step_5/S5_Fibonacci.cpp | #include <iostream>
using namespace std;
int Fibonacci(int n)
{
if (n==0)
return 0;
if (n==1)
return 1;
return( Fibonacci(n-2) + Fibonacci(n-1) );
}
int main(){
int n;
cout << "Enter a number" << endl;
cin >> n;
cout<< Fibonacci(n) << endl;
}
| //
// Program Name - S5_Fibonacci.cpp
// Series: GetOnToC++ Step: 5
//
// Purpose: This program uses recursion to return a Fibonacci number
//
// Compile: g++ S5_Fibonacci.cpp -o S5_Fibonacci
// Execute: ./S5_Fibonacci
//
// Created by Narayan Mahadevan on 18/08/13.
//
#include <iostream>
using namespace std;
i... | Update S5_Fibonacci.cpp | Update S5_Fibonacci.cpp | C++ | apache-2.0 | NarayanMahadevan/MakeTechEz |
bb2c0f577facd75547ee7277334a79250e8b83b9 | src/delegate/Glue.cxx | src/delegate/Glue.cxx | /*
* This helper library glues delegate_stock and delegate_client
* together.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "Glue.hxx"
#include "Client.hxx"
#include "Handler.hxx"
#include "Stock.hxx"
#include "stock/Item.hxx"
#include "stock/MapStock.hxx"
#include "lease.hxx"
#include "pool.hxx"
#includ... | /*
* This helper library glues delegate_stock and delegate_client
* together.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "Glue.hxx"
#include "Client.hxx"
#include "Handler.hxx"
#include "Stock.hxx"
#include "stock/Item.hxx"
#include "stock/MapStock.hxx"
#include "lease.hxx"
#include "pool.hxx"
struct... | include cleanup | delegate: include cleanup | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
999c14894fd39367443656bd9dbb61fd8f3c7075 | src/dev/dma_device.cc | src/dev/dma_device.cc | /*
* Copyright (c) 2012, 2015, 2017 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation... | /*
* Copyright (c) 2012, 2015, 2017 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation... | Fix OnIdle test in DmaReadFifo | dev: Fix OnIdle test in DmaReadFifo
OnIdle() is never called since DMA active check is completely
opposite to what it should be. old active status should be 'true'
and new active status should be false for OnIdle to be called
Change-Id: I94eca50edbe96113190837c7f6e50a0d061158a6
Reported-by: Rohit Kurup <0c088d13a22ab... | C++ | bsd-3-clause | gem5/gem5,sobercoder/gem5,TUD-OS/gem5-dtu,gem5/gem5,rallylee/gem5,sobercoder/gem5,sobercoder/gem5,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,gem5/gem5,sobercoder/gem5,rallylee/gem5,sobercoder/gem5,rallylee/gem5,rallylee/gem5,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,rallylee/gem5,rallylee/gem5,sobercoder/gem5,gem5/gem5,gem5/gem5,rallylee/g... |
7384cf4dbccf42b56cd88f16e2d8308e8280f13e | ada_server/SSLContainer.cpp | ada_server/SSLContainer.cpp | /**
* @file SSLContainer.cpp
*
* @brief implementation of SSLContainer class
*
* @author Matus Blaho
* @version 1.0
*/
#include "SSLContainer.h"
SSLContainer::SSLContainer(Loger *l)
{
l->WriteMessage(TRACE,"Entering " + this->_Name + "::Constructor");
this->_log=l;
this->container = new std::map <unsigned... | /**
* @file SSLContainer.cpp
*
* @brief implementation of SSLContainer class
*
* @author Matus Blaho
* @version 1.0
*/
#include "SSLContainer.h"
#include "ping.h"
SSLContainer::SSLContainer(Loger *l)
{
l->WriteMessage(TRACE,"Entering " + this->_Name + "::Constructor");
this->_log=l;
this->container = new ... | set gateway availability when connecting to server | ada_server: set gateway availability when connecting to server
A gateway is considered to be available on its connection
to the server. On the other hand, it is considered
unavailable when a gateway is not connected to the server.
Acked-by: Jan Viktorin <3eab6ac54c005c4408f608556a6663b7f2abede7@fit.vutbr.cz>
| C++ | bsd-3-clause | BeeeOn/server,BeeeOn/server,BeeeOn/server,BeeeOn/server |
fffb9c8a2cafb359b1a894ffdbe7e2aa8c2168ee | Contractor/EdgeBasedGraphFactory.cpp | Contractor/EdgeBasedGraphFactory.cpp | /*
open source routing machine
Copyright (C) Dennis Luxen, others 2010
This program 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
any later version.
This progr... | /*
open source routing machine
Copyright (C) Dennis Luxen, others 2010
This program 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
any later version.
This progr... | Correct counting of node-based edges | Correct counting of node-based edges | C++ | bsd-2-clause | KnockSoftware/osrm-backend,arnekaiser/osrm-backend,chaupow/osrm-backend,ramyaragupathy/osrm-backend,chaupow/osrm-backend,bjtaylor1/Project-OSRM-Old,nagyistoce/osrm-backend,ammeurer/osrm-backend,antoinegiret/osrm-backend,neilbu/osrm-backend,felixguendling/osrm-backend,bjtaylor1/Project-OSRM-Old,Project-OSRM/osrm-backend... |
e973859f374803f0d6a52dd83f64e825b4395186 | Cutelyst/Actions/REST/actionrest.cpp | Cutelyst/Actions/REST/actionrest.cpp | /*
* Copyright (C) 2013-2018 Daniel Nicoletti <dantti12@gmail.com>
*
* 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 lat... | /*
* Copyright (C) 2013-2018 Daniel Nicoletti <dantti12@gmail.com>
*
* 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 lat... | Allow ActionREST actions to be forwarded from other Controllers | REST: Allow ActionREST actions to be forwarded from other Controllers
| C++ | bsd-3-clause | cutelyst/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,buschmann23/cutelyst |
d6defdcdca1eeda83f007a3f29e72eab7cb6dae2 | agentserver/agentthread.cpp | agentserver/agentthread.cpp | /*
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later versio... | /*
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later versio... | Call run on runnable to make sure that actually something happens | Call run on runnable to make sure that actually something happens
svn path=/branches/work/akonadi-agentserver/; revision=1177889
| C++ | lgpl-2.1 | kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi |
d53f2096262951a777cb8299761e838babab4ab0 | format.cc | format.cc | /*
String formatting library for C++
Copyright (c) 2012, Victor Zverovich
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,... | /*
String formatting library for C++
Copyright (c) 2012, Victor Zverovich
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,... | Disable "secure" warnings in format.cc too. | Disable "secure" warnings in format.cc too. | C++ | bsd-2-clause | lightslife/cppformat,seungrye/cppformat,alabuzhev/fmt,lightslife/cppformat,dean0x7d/cppformat,seungrye/cppformat,cppformat/cppformat,cppformat/cppformat,nelson4722/cppformat,dean0x7d/cppformat,dean0x7d/cppformat,Jopie64/cppformat,alabuzhev/fmt,blaquee/cppformat,wangshijin/cppformat,Jopie64/cppformat,mojoBrendan/fmt,ala... |
2eebffcdcb65a32bfb8ee6183ae7fc971d4ac495 | src/Bull/Render/Context/Wgl/WglContext.cpp | src/Bull/Render/Context/Wgl/WglContext.cpp | #include <limits>
#include <Bull/Core/Exception/InternalError.hpp>
#include <Bull/Core/Support/Win32/Win32Error.hpp>
#include <Bull/Core/System/Library.hpp>
#include <Bull/Core/Utility/StringUtils.hpp>
#include <Bull/Render/Context/Wgl/WglContext.hpp>
#include <Bull/Render/Context/Wgl/WglCreateContextARB.hpp>
#includ... | #include <limits>
#include <Bull/Core/Exception/InternalError.hpp>
#include <Bull/Core/Support/Win32/Win32Error.hpp>
#include <Bull/Core/System/Library.hpp>
#include <Bull/Core/Utility/StringUtils.hpp>
#include <Bull/Render/Context/Wgl/WglContext.hpp>
#include <Bull/Render/Context/Wgl/WglCreateContextARB.hpp>
#includ... | Validate device context before create the render context | [Render/WglContext] Validate device context before create the render context
| C++ | mit | siliace/Bull |
9790c4fcd209f6616c4451164bc1e6427aa1569b | groups/bal/balm/balm_category.cpp | groups/bal/balm/balm_category.cpp | // balm_category.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | // balm_category.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | Update balm_category.cpp | Update balm_category.cpp | C++ | apache-2.0 | che2/bde,che2/bde,che2/bde,bloomberg/bde,bloomberg/bde,bloomberg/bde,che2/bde,bloomberg/bde,bloomberg/bde |
0581a4f8703bd7063b3f582b6e6d18a83d667af8 | C++/counting-bits.cpp | C++/counting-bits.cpp | // Time: O(n)
// Space: O(n)
class Solution {
public:
vector<int> countBits(int num) {
vector<int> res{0};
for (int i = 0, cnt = res.size();
res.size() <= num;
i = (i + 1) % cnt) {
if (i == 0) {
cnt = res.size();
}
res.e... | // Time: O(n)
// Space: O(n)
class Solution {
public:
vector<int> countBits(int num) {
vector<int> res{0};
for (int i = 1; i <= num; ++i) {
res.emplace_back(res[i >> 1] + (i & 1));
}
return res;
}
};
// Time: O(n)
// Space: O(n)
class Solution2 {
public:
vecto... | Update counting-bits.cpp | Update counting-bits.cpp | C++ | mit | yiwen-luo/LeetCode,yiwen-luo/LeetCode,githubutilities/LeetCode,kamyu104/LeetCode,kamyu104/LeetCode,kamyu104/LeetCode,yiwen-luo/LeetCode,githubutilities/LeetCode,jaredkoontz/leetcode,jaredkoontz/leetcode,githubutilities/LeetCode,kamyu104/LeetCode,yiwen-luo/LeetCode,githubutilities/LeetCode,jaredkoontz/leetcode,githubuti... |
a3f3255bf3d8cb4f35d351580eb867506a4874cb | C++/single-number.cpp | C++/single-number.cpp | // Time: O(n)
// Space: O(1)
class Solution {
public:
/**
* @param A: Array of integers.
* return: The single number.
*/
int singleNumber(vector<int> &A) {
int single = 0;
for (const auto& i : A) {
single ^= i;
}
return single;
}
};
| // Time: O(n)
// Space: O(1)
class Solution {
public:
/**
* @param A: Array of integers.
* return: The single number.
*/
int singleNumber(vector<int> &A) {
return accumulate(A.cbegin(), A.cend(), 0, std::bit_xor<int>());
}
};
class Solution2 {
public:
/**
* @param A: Array of integers... | Update single-number.cpp | Update single-number.cpp | C++ | mit | kamyu104/LintCode,jaredkoontz/lintcode,jaredkoontz/lintcode,kamyu104/LintCode,jaredkoontz/lintcode,kamyu104/LintCode |
0a23232a5fd1e0d4b6c4af0043a7139b07068db5 | depthview2/include/dv_vrdriver.hpp | depthview2/include/dv_vrdriver.hpp | #include "dvvirtualscreenmanager.hpp"
#include <QVector>
#include <QVector2D>
#include <QVector3D>
class QQuickItem;
class DV_VRDriver {
protected:
DVWindow* window;
/* Only used by subclasses. */
DV_VRDriver(DVWindow* w);
public:
virtual ~DV_VRDriver() = 0;
virtual bool render() = 0;
virtu... | #include "dvvirtualscreenmanager.hpp"
#include <QVector>
#include <QVector2D>
#include <QVector3D>
class QQuickItem;
class DV_VRDriver {
protected:
DVWindow* window;
/* Only used by subclasses. */
DV_VRDriver(DVWindow* w);
public:
virtual ~DV_VRDriver() = default;
virtual bool render() = 0;
... | Fix last commit not building on Windows. | Fix last commit not building on Windows.
| C++ | mit | chipgw/depthview2 |
3c348c2d3fcd6f8ea6553e3f81f6641c05d56c0e | src/core/film.cpp | src/core/film.cpp | /*
MIT License
Copyright (c) 2019 ZhuQian
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | /*
MIT License
Copyright (c) 2019 ZhuQian
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | fix a compile error | fix a compile error
| C++ | mit | zq317157782/Narukami,zq317157782/Narukami,zq317157782/Narukami |
594c061c603359ef9c5273e19e5eb9e7114a6a68 | 2019/src/day06.cpp | 2019/src/day06.cpp | #include <iostream>
#include <regex>
#include <queue>
#include <unordered_set>
#include "days.hpp"
namespace {
std::vector<std::pair<std::string, std::string>> read_orbits(std::istream &input) {
std::vector<std::pair<std::string, std::string>> result;
std::string buffer;
std::regex regex("... | #include <deque>
#include <iostream>
#include <unordered_map>
#include <vector>
#include "days.hpp"
namespace {
std::vector<std::pair<std::string, std::string>> read_orbits(std::istream &input) {
std::vector<std::pair<std::string, std::string>> result;
std::string name1, name2;
while (std:... | Replace regex with simpler string parsing. | Replace regex with simpler string parsing.
Remove the dependency on std::regex which is slow to both compile and
run. Saves about half the execution time.
| C++ | mit | bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adv... |
2ab8e5360ce2d5cb4f65894a19c7b05c5e0382c9 | src/find_includes.cpp | src/find_includes.cpp | #include "find_includes.hpp"
using std::shared_ptr;
using std::make_shared;
using std::static_pointer_cast;
using std::vector;
using std::set;
using std::map;
using std::move;
using std::string;
namespace backend {
find_includes::find_includes(const registry& reg)
: m_reg(reg), m_outer(true) {}
find_includes::r... | #include "find_includes.hpp"
using std::shared_ptr;
using std::make_shared;
using std::static_pointer_cast;
using std::vector;
using std::set;
using std::map;
using std::move;
using std::string;
namespace backend {
find_includes::find_includes(const registry& reg)
: m_reg(reg), m_outer(true) {}
find_includes::r... | Fix double include bug. | Fix double include bug.
| C++ | apache-2.0 | copperhead/copperhead-compiler,copperhead/copperhead-compiler,copperhead/copperhead-compiler |
8c723f3f326674de02841d50c9160155232c2662 | src/dbn_mnist.cpp | src/dbn_mnist.cpp | //=======================================================================
// Copyright (c) 2014 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 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================... | Use momentum | Use momentum
| C++ | mit | wichtounet/dll,wichtounet/dll,wichtounet/dll |
c4aaf4c7c98a01cde67413d2c17752ea5d175d53 | src/devicemanager.cpp | src/devicemanager.cpp | /*
Copyright (C) 2007-2008 Tanguy Krotoff <tkrotoff@gmail.com>
Copyright (C) 2008 Lukas Durfina <lukas.durfina@gmail.com>
Copyright (C) 2009 Fathi Boudra <fabo@kde.org>
Copyright (C) 2009-2010 vlc-phonon AUTHORS
Copyright (C) 2011 Harald Sitter <sitter@kde.org>
This library is free software; yo... | /*
Copyright (C) 2007-2008 Tanguy Krotoff <tkrotoff@gmail.com>
Copyright (C) 2008 Lukas Durfina <lukas.durfina@gmail.com>
Copyright (C) 2009 Fathi Boudra <fabo@kde.org>
Copyright (C) 2009-2010 vlc-phonon AUTHORS
Copyright (C) 2011 Harald Sitter <sitter@kde.org>
This library is free software; yo... | fix device check a bit | fix device check a bit
- less indention in the device check
- fix manual injection to not use untranslated strings, simply use the name
- a tad more debugging
| C++ | lgpl-2.1 | KDE/phonon-vlc,BinChengfei/phonon-vlc,KDE/phonon-vlc,BinChengfei/phonon-vlc,BinChengfei/phonon-vlc,KDE/phonon-vlc |
bc275825e3b11d6848efede381e4b869daf42ccd | src/Tools/Perf/Transpose/transpose_selector.cpp | src/Tools/Perf/Transpose/transpose_selector.cpp | #include <iostream>
#include <mipp.h>
#include "Tools/Exception/exception.hpp"
#ifdef __AVX2__
#include "transpose_AVX.h"
#elif defined(__SSE4_1__)
#include "transpose_SSE.h"
#endif
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
#include "transpose_NEON.h"
#endif
#include "transpose_selector.h"
bool aff3ct::tools... | #include <iostream>
#include <mipp.h>
#include "Tools/Exception/exception.hpp"
#ifdef __AVX2__
#include "transpose_AVX.h"
#elif defined(__SSE4_1__)
#include "transpose_SSE.h"
#endif
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
#include "transpose_NEON.h"
#endif
#include "transpose_selector.h"
bool aff3ct::tools... | Fix a bug in alignment control. | Fix a bug in alignment control.
| C++ | mit | aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct |
8b69e23e2801e32194d7ef9607bc02294b713847 | src/abaclade/exception-fault_converter-mach.cxx | src/abaclade/exception-fault_converter-mach.cxx | /* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 ver... | /* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 ver... | Move private globals out of abc namespace | Move private globals out of abc namespace
| C++ | lgpl-2.1 | raffaellod/lofty,raffaellod/lofty |
a1fa20c7dac8452a06c27d8fc0bf6ad17a12f5c7 | src/app/tests/integration/chip_im_initiator.cpp | src/app/tests/integration/chip_im_initiator.cpp | /*
*
* Copyright (c) 2020 Project CHIP 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 requir... | /*
*
* Copyright (c) 2020 Project CHIP 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 requir... | Fix wrong uint64_t print | Fix wrong uint64_t print
Problem:
Regression issue
Problem
../../src/app/tests/integration/chip_im_initiator.cpp:86:68: error: format specifies type 'unsigned long' but the argument has type 'chip::NodeId' (aka 'unsigned long long') [-Werror,-Wformat]
Summary of changes
Always use PRIu64 for printing uint64_t, inclu... | C++ | apache-2.0 | nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,... |
f791e5634ee193e7b5040a53581431759ff933c0 | src/chrono_gpu/physics/ChSystemGpuMesh_impl.cpp | src/chrono_gpu/physics/ChSystemGpuMesh_impl.cpp | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | Correct mesh default position initilization in ChSystemGpuMesh_impl | Correct mesh default position initilization in ChSystemGpuMesh_impl
| C++ | bsd-3-clause | Milad-Rakhsha/chrono,dariomangoni/chrono,projectchrono/chrono,Milad-Rakhsha/chrono,Milad-Rakhsha/chrono,projectchrono/chrono,dariomangoni/chrono,dariomangoni/chrono,dariomangoni/chrono,rserban/chrono,Milad-Rakhsha/chrono,rserban/chrono,rserban/chrono,projectchrono/chrono,dariomangoni/chrono,projectchrono/chrono,rserban... |
042b10e4ab905bb4296439d616968dff639f86d6 | src/gui/test_bemo.cpp | src/gui/test_bemo.cpp | #include <taichi/visual/gui.h>
#include <taichi/common/task.h>
TC_NAMESPACE_BEGIN
auto test_bemo = []() {
GUI gui("Bemo Test", 800, 400, false);
auto canvas = *gui.canvas;
real t = 0;
while (1) {
t += 0.02_f;
canvas.clear(Vector4(0.95));
for (int i = 0; i < 30; i++) {
canvas.circle(i * 10 ... | #include <taichi/visual/gui.h>
#include <taichi/common/task.h>
TC_NAMESPACE_BEGIN
auto test_bemo = []() {
GUI gui("Bemo Test", 800, 400, false);
auto canvas = *gui.canvas;
real t = 0;
while (1) {
t += 0.02_f;
canvas.clear(Vector4(0.95));
for (int i = 0; i < 30; i++) {
canvas.circle(i * 10 ... | Fix float compilation | Fix float compilation
| C++ | apache-2.0 | yuanming-hu/taichi,yuanming-hu/taichi,yuanming-hu/taichi,yuanming-hu/taichi |
4af94829b94a15c4dc51571a2ddf5a015a81d98a | tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc | tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Replace separate counter with llvm::enumerate. | Replace separate counter with llvm::enumerate.
PiperOrigin-RevId: 262194946
| C++ | apache-2.0 | tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,yongtang... |
7d73f09f1d699617244ec64decc02649d1662a5c | src/fs/server.cpp | src/fs/server.cpp | //#include "fused.h"
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <String.h>
#include <vector>
#include "microhttpd.h"
using std::vector;
using lepcpplib::String;
const short int kPort = 8888;
ssize_t f... | //#include "fused.h"
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <String.h>
#include <vector>
#include "microhttpd.h"
using std::vector;
using lepcpplib::String;
const short int kPort = 8888;
const int ... | refactor file serving. | refactor file serving.
| C++ | mit | praveenster/tagfs,praveenster/tagfs |
f6ce677acec0050119590fb319fc9452ba442a51 | IO/vtkDICOMImageReader.cxx | IO/vtkDICOMImageReader.cxx |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDICOMImageReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.t... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDICOMImageReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.t... | fix a few issues | fix a few issues
| C++ | bsd-3-clause | demarle/VTK,mspark93/VTK,sgh/vtk,sankhesh/VTK,sankhesh/VTK,jeffbaumes/jeffbaumes-vtk,berendkleinhaneveld/VTK,keithroe/vtkoptix,sgh/vtk,cjh1/VTK,hendradarwin/VTK,collects/VTK,mspark93/VTK,demarle/VTK,hendradarwin/VTK,sgh/vtk,candy7393/VTK,gram526/VTK,berendkleinhaneveld/VTK,candy7393/VTK,Wuteyan/VTK,keithroe/vtkoptix,ke... |
cc21fc73adac42c6f96fb4de1c584e1b6cf80587 | benchmarks/halide/edge_tiramisu.cpp | benchmarks/halide/edge_tiramisu.cpp | #include <tiramisu/tiramisu.h>
#define NN 8192
#define MM 8192
using namespace tiramisu;
int main(int argc, char* argv[])
{
tiramisu::init("edge_tiramisu");
var i("i", 0, NN-2), j("j", 0, MM-2), c("c", 0, 3);
input Img("Img", {c, j, i}, p_uint8);
// Layer I
/* Ring blur filter. */
computat... | #include <tiramisu/tiramisu.h>
#define NN 8192
#define MM 8192
using namespace tiramisu;
int main(int argc, char* argv[])
{
tiramisu::init("edge_tiramisu");
var i("i", 0, NN-2), j("j", 0, MM-2), c("c", 0, 3), i1("i1"), j1("j1"), i2("i2"), j2("j2");
input Img("Img", {c, j, i}, p_uint8);
// Layer I
... | Fix edge Tiramisu | Fix edge Tiramisu
| C++ | mit | rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/ISIR |
61623b1799bef6ebcc9052697d14760aff048ec2 | source/core/mining-manager/query-correction-submanager/QueryCorrectionSubmanager.cpp | source/core/mining-manager/query-correction-submanager/QueryCorrectionSubmanager.cpp | /**@file QueryCorrectionSubmanager.cpp
* @brief source file of Query Correction
* @author Jinglei Zhao&Jinli Liu
* @date 2009-08-21
* @details
* - Log
* - 2009.09.26 add new candidate generation
* - 2009.10.08 add new error model for english
* - 2009.11.27 add isEnglishWord() and isKoreanWord()... | /**@file QueryCorrectionSubmanager.cpp
* @brief source file of Query Correction
* @author Jinglei Zhao&Jinli Liu
* @date 2009-08-21
* @details
* - Log
* - 2009.09.26 add new candidate generation
* - 2009.10.08 add new error model for english
* - 2009.11.27 add isEnglishWord() and isKoreanWord()... | fix the file path for query-correction injection | fix the file path for query-correction injection
| C++ | apache-2.0 | pombredanne/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1r-ad-delivery,pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,pombredanne/sf1r-lite,izenecloud/sf1r-ad-delivery,izenecloud/sf1r-ad-delivery,izenecloud/sf1r-lite,pombredanne/sf1r-lite,pombredanne/sf1r-lite,izenecloud/sf1r-lite,izenecloud/sf1... |
a4aca9e1f1da96c195c1ec0ab143554c3aeedd77 | src/js_object.cpp | src/js_object.cpp | // Copyright (c) 2012 Plenluno All rights reserved.
#include "libj/js_object.h"
namespace libj {
class JsObjectImpl : public JsObject {
private:
static String::CPtr STR_OBJECT;
public:
static Ptr create() {
Ptr p(new JsObjectImpl());
return p;
}
void clear() {
map_->clear(... | // Copyright (c) 2012 Plenluno All rights reserved.
#include "libj/js_object.h"
namespace libj {
class JsObjectImpl : public JsObject {
public:
static Ptr create() {
Ptr p(new JsObjectImpl());
return p;
}
void clear() {
map_->clear();
}
Boolean containsKey(const Value& ... | remove unused variable | remove unused variable
| C++ | bsd-2-clause | plenluno/libj,tempbottle/libj,tempbottle/libj,plenluno/libj |
df210d138584fadbf903404c2ba36723041f4d4c | src/lda/model.cpp | src/lda/model.cpp | #include <microscopes/lda/model.hpp>
namespace microscopes {
namespace lda {
namespace detail {
// state(const std::vector<std::shared_ptr<models::hypers>> &hypers,
// const microscopes::lda::detail::GroupManager<group_type> &groups)
// : hypers_(hypers), groups_(groups)
// {
// }
}
}
} | #include <microscopes/lda/model.hpp>
namespace microscopes {
namespace lda {
}
} | Remove useless namespace | Remove useless namespace
| C++ | bsd-3-clause | datamicroscopes/lda,datamicroscopes/lda,datamicroscopes/lda |
c493546c32f8969b4ba1f508347f4759723a1f84 | include/boost/test/test_tools.hpp | include/boost/test/test_tools.hpp | // (C) Copyright Gennadiy Rozental 2001-2014.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
/// @file
/// @brief test tools compatibilit... | // (C) Copyright Gennadiy Rozental 2001-2014.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
/// @file
/// @brief test tools compatibilit... | Fix feature test of BOOST_NO_CXX11_VARIADIC_MACROS | Fix feature test of BOOST_NO_CXX11_VARIADIC_MACROS
Change b41a935 introduced regression failures due to preprocessor errors with respect to the && operator, leading to the following error:
../boost/test/test_tools.hpp:50:87: error: operator '&&' has no right operand
#if !BOOST_PP_VARIADICS || ((__cplusplus >= 201103... | C++ | mit | nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme |
158e411a9e76def48a3d2f63ccde38a51457a983 | include/mettle/matchers/death.hpp | include/mettle/matchers/death.hpp | #ifndef INC_METTLE_MATCHERS_DEATH_HPP
#define INC_METTLE_MATCHERS_DEATH_HPP
#include "core.hpp"
#include "result.hpp"
#include <sys/wait.h>
#include <unistd.h>
#include <system_error>
namespace mettle {
namespace detail {
template<typename T, typename U>
int get_status(T &&func, U &&terminate) {
pid_t pid;... | #ifndef INC_METTLE_MATCHERS_DEATH_HPP
#define INC_METTLE_MATCHERS_DEATH_HPP
#ifndef _WIN32
#include "core.hpp"
#include "result.hpp"
#include <sys/wait.h>
#include <unistd.h>
#include <system_error>
namespace mettle {
namespace detail {
template<typename T, typename U>
int get_status(T &&func, U &&terminate) ... | Disable the death tests on Windows for now | Disable the death tests on Windows for now
| C++ | bsd-3-clause | jimporter/mettle,jimporter/mettle |
9da26ac4adf2e81acf1e68d56fe8ee6f794cd9fa | parse/include/Ab/Parse/LineInfo.hpp | parse/include/Ab/Parse/LineInfo.hpp | #ifndef AB_PARSE_LINEINFO_HPP_
#define AB_PARSE_LINEINFO_HPP_
#include <Ab/Parse/Location.hpp>
#include <Ab/Assert.hpp>
#include <vector>
namespace Ab::Parse {
/// A table mapping file offsets into lines and column positions.
///
class LineInfo {
public:
LineInfo() {
// first line starts at zero.
store(0);
}
... | #ifndef AB_PARSE_LINEINFO_HPP_
#define AB_PARSE_LINEINFO_HPP_
#include <Ab/Parse/Location.hpp>
#include <Ab/Assert.hpp>
#include <vector>
namespace Ab::Parse {
/// A table mapping file offsets into lines and column positions.
///
class LineInfo {
public:
LineInfo() {
// first line starts at zero.
store(0);
}
... | Use AB_ASSERT, not C assert | Use AB_ASSERT, not C assert
Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
| C++ | apache-2.0 | ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab |
cad767de61dc53b9b297f08ee09cb5a3c0821782 | ConstantOptimiser.cpp | ConstantOptimiser.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... | Remove namespace prefixes. | Remove namespace prefixes.
| C++ | mit | ruchevits/solidity,ruchevits/solidity,ruchevits/solidity,ruchevits/solidity |
5233b53188a40bfc51f38990173d5d906534499a | eval/src/vespa/eval/tensor/dense/dense_matmul_function.cpp | eval/src/vespa/eval/tensor/dense/dense_matmul_function.cpp | // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "dense_matmul_function.h"
#include "dense_tensor_view.h"
#include <vespa/vespalib/objects/objectvisitor.h>
#include <vespa/eval/eval/value.h>
#include <vespa/eval/eval/operation.h>
#include <casser... | // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "dense_matmul_function.h"
#include "dense_tensor_view.h"
#include <vespa/vespalib/objects/objectvisitor.h>
#include <vespa/eval/eval/value.h>
#include <vespa/eval/eval/operation.h>
#include <casser... | use typify_invoke to select matmul implementation | use typify_invoke to select matmul implementation
* instead of a chain of select functions, use typify_invoke;
use partial specialization on a struct to handle the
double*double and float*float cases specially.
| C++ | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
116fa259d3f6e13c362319bad6e82cedefcd626b | History/Batch-Normalization/main.cpp | History/Batch-Normalization/main.cpp | #include <fstream>
#include <iostream>
#include <omp.h>
#include <stdio.h>
#include <string>
#include <time.h>
#include "Neural_Networks.h"
using namespace std;
void Read_MNIST(string training_set_images, string training_set_labels, string test_set_images, string test_set_labels, int number_training, int number_test... | #include <fstream>
#include <iostream>
#include <omp.h>
#include <stdio.h>
#include <string>
#include <time.h>
#include "Neural_Networks.h"
using namespace std;
void Read_MNIST(string training_set_images, string training_set_labels, string test_set_images, string test_set_labels, int number_training, int number_test... | Update main.cpp | Update main.cpp | C++ | mit | paperrune/Neural-Networks,paperrune/Neural-Networks |
2475afad21e8728d399eea3b588a4fb747ff445f | Hybrid/Testing/Cxx/TestCubeAxes3.cxx | Hybrid/Testing/Cxx/TestCubeAxes3.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: TestCubeAxes3.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is... | /*=========================================================================
Program: Visualization Toolkit
Module: TestCubeAxes3.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is... | Revise test comments. | Revise test comments.
Change-Id: I8ac872057a26273b90d7b198db23f75a2be2672c
| C++ | bsd-3-clause | biddisco/VTK,collects/VTK,collects/VTK,msmolens/VTK,keithroe/vtkoptix,msmolens/VTK,collects/VTK,hendradarwin/VTK,candy7393/VTK,candy7393/VTK,ashray/VTK-EVM,daviddoria/PointGraphsPhase1,sumedhasingla/VTK,hendradarwin/VTK,candy7393/VTK,msmolens/VTK,johnkit/vtk-dev,spthaolt/VTK,demarle/VTK,candy7393/VTK,keithroe/vtkoptix,... |
6da448d34273b0685c7d3a9dda72edd6f4bdd60b | crc_test.cpp | crc_test.cpp | #include "unit_tests.h"
#include "universal_crc.h"
//------------- tests for CRC_Type_helper -------------
int test_crc_type_helper_uint8(struct test_info_t *test_info)
{
TEST_INIT;
if(
sizeof(CRC_Type_helper< (1-1)/8 >::value_type) != sizeof(uint8_t) ||
sizeof(CRC_Type_helper< (2-1)/... | #include "unit_tests.h"
#include "universal_crc.h"
//------------- tests for CRC_Type_helper -------------
int test_crc_type_helper_uint8(struct test_info_t *test_info)
{
TEST_INIT;
if(
sizeof(CRC_Type_helper< (1-1)/8 >::value_type) != sizeof(uint8_t) ||
sizeof(CRC_Type_helper< (2-1)/... | add test for get_ref_in() | add test for get_ref_in()
| C++ | bsd-3-clause | KoynovStas/CRC_CPP_Template,KoynovStas/CRC_CPP_Template |
f327b0147f279eb2582762620632d7941c1f20e7 | crc_test.cpp | crc_test.cpp | #include "unit_tests.h"
#include "crc_t.h"
//------------- tests for CRC_t methods -------------
int test_crc_t_name(struct test_info_t *test_info)
{
TEST_INIT;
CRC_t crc;
if( crc.name != "CRC-32" )
return TEST_BROKEN;
return TEST_PASSED;
}
int test_crc_t_name_2(struct test_in... | #include "unit_tests.h"
#include "crc_t.h"
//------------- tests for CRC_t methods -------------
int test_crc_t_name(struct test_info_t *test_info)
{
TEST_INIT;
CRC_t crc;
if( crc.name != "CRC-32" )
return TEST_BROKEN;
return TEST_PASSED;
}
int test_crc_t_name_2(struct test_in... | add test to calculate the CRC-8/DVB-S2 | add test to calculate the CRC-8/DVB-S2
| C++ | bsd-3-clause | KoynovStas/CRC_CPP_Class,KoynovStas/CRC_CPP_Class |
ed67f908296f1e57b8cd3ac09351190a8094c527 | Bubble-Sort/BS.cpp | Bubble-Sort/BS.cpp | #include <iostream>
#include <array>
using namespace std;
/* // code below is learning `dangling pointer`
int* bubbleSort(){
int * arr = new int[3]; // avoid dangling pointer
for (int i =0 ; i <3; i++) arr[i] = i+1;
return arr;
}
int main(){
int* arr = bubbleSort();
for (int i = 0; i <3; i++){
cout << *... | #include <iostream>
#include <array>
using namespace std;
/* // code below is learning `dangling pointer`
int* bubbleSort(){
int * arr = new int[3]; // avoid dangling pointer
for (int i =0 ; i <3; i++) arr[i] = i+1;
return arr;
}
int main(){
int* arr = bubbleSort();
for (int i = 0; i <3; i++){
cout << *... | fix and finish | fix and finish
| C++ | apache-2.0 | ccqpein/Arithmetic-Exercises,ccqpein/Arithmetic-Exercises,ccqpein/Arithmetic-Exercises,ccqpein/Arithmetic-Exercises,ccqpein/Arithmetic-Exercises,ccqpein/Arithmetic-Exercises,ccqpein/Arithmetic-Exercises |
2e37a86957c222972811928696f874bc1284cbbf | src/cert/x509/x509self.cpp | src/cert/x509/x509self.cpp | /*
* PKCS #10/Self Signed Cert Creation
* (C) 1999-2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/x509self.h>
#include <botan/x509_ext.h>
#include <botan/x509_ca.h>
#include <botan/der_enc.h>
#include <botan/oids.h>
#include <botan/pipe.h>
#include <memory>
namespace Botan {
... | /*
* PKCS #10/Self Signed Cert Creation
* (C) 1999-2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/x509self.h>
#include <botan/x509_ext.h>
#include <botan/x509_ca.h>
#include <botan/der_enc.h>
#include <botan/oids.h>
#include <botan/pipe.h>
#include <memory>
namespace Botan {
... | Use X509::BER_encode. Saves 12 lines. Nice | Use X509::BER_encode. Saves 12 lines. Nice
| C++ | bsd-2-clause | randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,Rohde-Sch... |
fb2e9b95f4923521f874f8ea0ea6a355e909dc52 | src/mem/packet.cc | src/mem/packet.cc | /*
* Copyright (c) 2006 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, ... | /*
* Copyright (c) 2006 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, ... | Fix the flags for interrupt response messages. | X86: Fix the flags for interrupt response messages.
| C++ | bsd-3-clause | andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin |
5d3509342f54d9b194e4a96985b2017a8661fdde | src/messenger.cpp | src/messenger.cpp | #include "stdafx.h"
#include <dukat/messenger.h>
namespace dukat
{
void Messenger::trigger(const Message& message)
{
if (subscriptions.count(message.event))
{
for (auto r : subscriptions[message.event])
{
r->receive(message);
}
}
}
void Messenger::subscribe(Recipient * recipient, Event ev)
{
... | #include "stdafx.h"
#include <dukat/messenger.h>
namespace dukat
{
void Messenger::trigger(const Message& message)
{
if (subscriptions.count(message.event))
{
for (auto r : subscriptions[message.event])
{
r->receive(message);
}
}
}
void Messenger::subscribe(Recipient* recipient, Event ev)
{
... | Fix to messenger logic | Fix to messenger logic
| C++ | mit | bdamer/dukat,bdamer/dukat |
7c215105928f7b6ba7a1fe939799ad666fc83639 | src/myaccount.cpp | src/myaccount.cpp | /*
* Skaffari - a mail account administration web interface based on Cutelyst
* Copyright (C) 2017 Matthias Fehring <kontakt@buschmann23.de>
*
* This program 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 Fo... | /*
* Skaffari - a mail account administration web interface based on Cutelyst
* Copyright (C) 2017 Matthias Fehring <kontakt@buschmann23.de>
*
* This program 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 Fo... | check translatable strings (#7) | MyAccount: check translatable strings (#7)
| C++ | agpl-3.0 | Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari,Buschtrommel/Skaffari,Buschtrommel/Skaffari,Buschtrommel/Skaffari,Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari,Buschtrommel/Skaffari,Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari,Buschtrommel/Skaffari |
35ecf8815be97dbca765b940ad22d6d91dd09fa6 | src/Simulation/BFER/Iterative/BFER_ite.cpp | src/Simulation/BFER/Iterative/BFER_ite.cpp | #include "Tools/Exception/exception.hpp"
#include "Factory/Module/Coset/Coset.hpp"
#include "BFER_ite.hpp"
using namespace aff3ct;
using namespace aff3ct::simulation;
template <typename B, typename R, typename Q>
BFER_ite<B,R,Q>
::BFER_ite(const factory::BFER_ite::parameters ¶ms)
: BFER<B,R,Q>(params),
params... | #include "Tools/Exception/exception.hpp"
#include "Factory/Module/Coset/Coset.hpp"
#include "BFER_ite.hpp"
using namespace aff3ct;
using namespace aff3ct::simulation;
template <typename B, typename R, typename Q>
BFER_ite<B,R,Q>
::BFER_ite(const factory::BFER_ite::parameters ¶ms)
: BFER<B,R,Q>(params),
params... | Fix bad display in the statistics. | Fix bad display in the statistics.
| C++ | mit | aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct |
74b167ebeda5b49537273eff0527695ea6b5c68a | src/module-forward.cc | src/module-forward.cc | /*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010 Belledonne Communications SARL.
This program 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 t... | /*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010 Belledonne Communications SARL.
This program 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 t... | Fix invalid log | Fix invalid log
| C++ | agpl-3.0 | BelledonneCommunications/flexisip,biddyweb/flexisip,gale320/flexisip,biddyweb/flexisip,gale320/flexisip,biddyweb/flexisip,BelledonneCommunications/flexisip,biddyweb/flexisip,gale320/flexisip,gale320/flexisip,BelledonneCommunications/flexisip,BelledonneCommunications/flexisip |
a55b7c3fd3e8bec41a46d75413bf5f2ba8efad1b | src/modules/bspwm.cpp | src/modules/bspwm.cpp | #include <thread>
#include <vector>
#include <sstream>
#include <sys/socket.h>
#include "config.hpp"
#include "lemonbuddy.hpp"
#include "bar.hpp"
#include "modules/bspwm.hpp"
#include "utils/config.hpp"
#include "utils/io.hpp"
#include "utils/memory.hpp"
#include "utils/string.hpp"
using namespace modules;
using name... | #include <thread>
#include <vector>
#include <sstream>
#include <sys/socket.h>
#include "config.hpp"
#include "lemonbuddy.hpp"
#include "bar.hpp"
#include "modules/bspwm.hpp"
#include "utils/config.hpp"
#include "utils/io.hpp"
#include "utils/memory.hpp"
#include "utils/string.hpp"
using namespace modules;
using name... | Handle report strings with 3+ monitors | fix(bspwm): Handle report strings with 3+ monitors
Fixes jaagr/lemonbuddy#54
| C++ | mit | jaagr/lemonbuddy,jaagr/polybar,jaagr/lemonbuddy,jaagr/polybar,jaagr/polybar,jaagr/lemonbuddy |
20b511d890daf23a500e3d7106650641919c462c | src/nghttp2/Stock.cxx | src/nghttp2/Stock.cxx | /*
* Copyright 2007-2019 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 reta... | /*
* Copyright 2007-2019 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 reta... | add SSL filter to hashtable key | nghttp2/Stock: add SSL filter to hashtable key | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
0d0d649a3064ec736ce03ca23673fec2802305b8 | src/notary/Client.cpp | src/notary/Client.cpp | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "Client.hpp"
#define OT_METHOD "opentxs::notary::Cli... | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "Client.hpp"
#define OT_METHOD "opentxs::notary::Cli... | Update for opentxs api change | Update for opentxs api change
| C++ | agpl-3.0 | Open-Transactions/opentxs-notary |
dbb307b4ec0bc2ef2b7fa76e02f629d49323f9ac | src/pool/pool.hxx | src/pool/pool.hxx | /*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 reta... | /*
* Copyright 2007-2018 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 reta... | add constructor overload with second pool | pool/AutoRewindPool: add constructor overload with second pool
| C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
d4c550abd0216822f22c38dab03985a1197f923b | src/nova_renderer.cpp | src/nova_renderer.cpp | /*!
* \author ddubois
* \date 03-Sep-18.
*/
#include <future>
#include "nova_renderer.hpp"
#include "glslang/MachineIndependent/Initialize.h"
#include "loading/shaderpack/shaderpack_loading.hpp"
#if defined(NOVA_WINDOWS)
#include "render_engine/dx12/dx12_render_engine.hpp"
#endif
#include "debugging/renderdoc.h... | /*!
* \author ddubois
* \date 03-Sep-18.
*/
#include <array>
#include <future>
#include "nova_renderer.hpp"
#include "glslang/MachineIndependent/Initialize.h"
#include "loading/shaderpack/shaderpack_loading.hpp"
#if defined(NOVA_WINDOWS)
#include "render_engine/dx12/dx12_render_engine.hpp"
#endif
#include "debu... | Use std::array over c array | Use std::array over c array
| C++ | lgpl-2.1 | DethRaid/vulkan-mod,DethRaid/vulkan-mod,DethRaid/vulkan-mod |
0e9ecff508f015937ee4814ec1513b6bb5308f2b | src/qc-adaptor.cc | src/qc-adaptor.cc | /*
* ============================================================================
*
* Filename: qc-adaptor.cc
* Description: Trim adaptor read-through from reads
* License: LGPL-3+
* Author: Kevin Murray, spam@kdmurray.id.au
*
* =======================================================... | /*
* ============================================================================
*
* Filename: qc-adaptor.cc
* Description: Trim adaptor read-through from reads
* License: LGPL-3+
* Author: Kevin Murray, spam@kdmurray.id.au
*
* =======================================================... | Fix sign-comparison bug in AdaptorTrimPE | Fix sign-comparison bug in AdaptorTrimPE
| C++ | mpl-2.0 | kdmurray91/libqcpp,kdmurray91/libqcpp,kdmurray91/libqcpp,kdmurray91/libqcpp,kdmurray91/libqcpp |
5a1f2db8da6a098e41760ca77965ed0083ad636e | src/oldreader_api.cpp | src/oldreader_api.cpp | #include "oldreader_api.h"
#include <cstring>
#include <curl/curl.h>
#include <json.h>
#include <vector>
#include "config.h"
#include "strprintf.h"
#include "utils.h"
#define OLDREADER_LOGIN "https://theoldreader.com/accounts/ClientLogin"
#define OLDREADER_API_PREFIX "http://theoldreader.com/reader/api/0/"
#define O... | #include "oldreader_api.h"
#include <cstring>
#include <curl/curl.h>
#include <json.h>
#include <vector>
#include "config.h"
#include "strprintf.h"
#include "utils.h"
#define OLDREADER_LOGIN "https://theoldreader.com/accounts/ClientLogin"
#define OLDREADER_API_PREFIX "https://theoldreader.com/reader/api/0/"
#define ... | Use https for theoldreader.com URLs | Use https for theoldreader.com URLs | C++ | mit | der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat |
bb53a499eeaf81a9513c1db205196a0e0a3d5d38 | src/razors-v2.cpp | src/razors-v2.cpp | #include "estd.hpp"
#include "hstd.hpp"
#include "inlineshaders.hpp"
#include "razors-common.hpp"
#include "razorsV2.hpp"
#include "../gl3companion/glresource_types.hpp"
#include "../gl3companion/glinlines.hpp"
#include "../gl3texture/quad.hpp"
#include "../gl3texture/renderer.hpp"
#include <cmath>
static const doub... | #include "estd.hpp"
#include "hstd.hpp"
#include "inlineshaders.hpp"
#include "razors-common.hpp"
#include "razorsV2.hpp"
#include "../gl3companion/glresource_types.hpp"
#include "../gl3companion/glinlines.hpp"
#include "../gl3texture/quad.hpp"
#include "../gl3texture/renderer.hpp"
#include <cmath>
static const doub... | remove unused symbols | remove unused symbols
| C++ | mit | uucidl/exp.rendering-api,uucidl/exp.rendering-api,uucidl/exp.rendering-api |
713c7df486311a4b57ea319937e24cbb53043fdf | src/model_builder.cpp | src/model_builder.cpp |
#include "model_builder.hpp"
#include "model_basic_primitives.hpp"
#include "model_msh_save.hpp"
#include "model_scene.hpp"
#include "synced_cout.hpp"
#include <algorithm>
#include <iterator>
#include <string_view>
#include <tuple>
#include <fmt/format.h>
#include <gsl/gsl>
#include <tbb/tbb.h>
using namespace std:... |
#include "model_builder.hpp"
#include "model_basic_primitives.hpp"
#include "model_msh_save.hpp"
#include "model_scene.hpp"
#include "synced_cout.hpp"
#include <algorithm>
#include <iterator>
#include <string_view>
#include <tuple>
#include <fmt/format.h>
#include <gsl/gsl>
#include <tbb/tbb.h>
using namespace std:... | fix collision primitve naming | fix collision primitve naming
| C++ | mit | SleepKiller/swbf-unmunge |
b62e8a6773668a6c56358ae1e6f48d12d7e0bddf | src/phml/reach.cc | src/phml/reach.cc | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#include "reach.hh"
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <boost/functional/hash.hpp>
#incl... | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#include "reach.hh"
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <boost/functional/hash.hpp>
#incl... | Replace boost::ptr_set with std::set | Replace boost::ptr_set with std::set
| C++ | mit | flintproject/Flint,flintproject/Flint |
dc702f4fd61c1828f87509a09bf5609568ed89fc | src/packet_writer.cpp | src/packet_writer.cpp | /*
* Copyright (c) 2017, Matias Fontanini
* 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 ... | /*
* Copyright (c) 2017, Matias Fontanini
* 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 ... | use advertised_size to determine frame length | use advertised_size to determine frame length
| C++ | bsd-2-clause | mfontanini/libtins,mfontanini/libtins,UlfWetzker/libtins,UlfWetzker/libtins |
d2e56a5e9237dc9d597c0bb984bbe77ac348f63d | src/parser/uparser.hh | src/parser/uparser.hh | /*! \file uparser.hh
*******************************************************************************
File: uparser.h\n
Definition of the UParser class used to make flex/bison reentrant.
This file is part of
%URBI Kernel, version __kernelversion__\n
(c) Jean-Christophe Baillie, 2004-2005.
Permission to use, co... | /*! \file uparser.hh
*******************************************************************************
File: uparser.h\n
Definition of the UParser class used to make flex/bison reentrant.
This file is part of
%URBI Kernel, version __kernelversion__\n
(c) Jean-Christophe Baillie, 2004-2005.
Permission to use, co... | Remove dead comment. | Remove dead comment.
* src/parser/uparser.hh: here.
| C++ | bsd-3-clause | urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi |
c60d03831f0eecaf25d2bf97b27884ad1c646a78 | src/policy_newest.cpp | src/policy_newest.cpp | /*
The MIT License (MIT)
Copyright (c) 2014 Antonio SJ Musumeci <trapexit@spawn.link>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitat... | /*
The MIT License (MIT)
Copyright (c) 2014 Antonio SJ Musumeci <trapexit@spawn.link>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitat... | use gte rather than gt for mtime comparisons. fixes #91 | use gte rather than gt for mtime comparisons. fixes #91
| C++ | isc | tolotos-rgu/mergerfs,tolotos-rgu/mergerfs |
c263c971b01d95eeea23f8597f162af17b2daf6c | src/pSmartCar.cpp | src/pSmartCar.cpp | /*
* pSmartCar.cpp
*
* Author: petel__
* Copyright (c) 2014-2016 HKUST SmartCar Team
* Refer to LICENSE for details
*
*/
#include "pSmartCar.h"
#include <pResource.h>
using namespace std;
using namespace libsc;
using namespace libutil;
Button::Config getButtonConfig(const uint8_t id)
{
Button::Config confi... | /*
* pSmartCar.cpp
*
* Author: petel__
* Copyright (c) 2014-2016 HKUST SmartCar Team
* Refer to LICENSE for details
*
*/
#include "pSmartCar.h"
#include <pResource.h>
using namespace std;
using namespace libsc;
using namespace libutil;
Button::Config getButtonConfig(const uint8_t id)
{
Button::Config confi... | change pid controllers' setting | change pid controllers' setting | C++ | mit | hkust-smartcar/Magnetic16-T1,hkust-smartcar/Magnetic16,hkust-smartcar/Magnetic16,hkust-smartcar/Magnetic16-T1 |
81c19ebc5f94af2bbc2e3334142aa6792f41c3e7 | LargeBarrelAnalysisExtended/main.cpp | LargeBarrelAnalysisExtended/main.cpp | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable law... | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable law... | Correct comments in main.cpp | Correct comments in main.cpp
TESTS ARE NOT PASSING
| C++ | apache-2.0 | JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.