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 |
|---|---|---|---|---|---|---|---|---|---|
2f82a5070e0144a3327140edfa317e391e955db5 | include/tao/seq/config.hpp | include/tao/seq/config.hpp | // Copyright (c) 2015-2017 Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/sequences/
#ifndef TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
#define TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
#if __cplusplus >= 201402L
#define TAOCPP_USE_STD_INTEGER_SEQUENCE
#if defined( _LIBCPP_VERSION )
#define TAO... | // Copyright (c) 2015-2018 Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/sequences/
#ifndef TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
#define TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
#include <utility>
#ifndef TAOCPP_USE_STD_INTEGER_SEQUENCE
#if defined( __cpp_lib_integer_sequence ) || ( defi... | Improve detection for integer_sequence | Improve detection for integer_sequence
| C++ | mit | taocpp/sequences,taocpp/sequences |
19403026f36144e16eb4ad832d046ecc73ee2bf1 | include/zmsg/zmsg_heat.hpp | include/zmsg/zmsg_heat.hpp | #pragma once
#include "zmsg_types.hpp"
namespace zmsg {
template<>
struct zmsg<mid_t::heat_start> {
public:
uint32_t Material;
shrink_tube_t Fiberlen;
bool Heatctl;
uint16_t heat_time; /// unit: second
int16_t heat_temp; /// unit: degree Celsius
int16_t finish_temp; //... | #pragma once
#include "zmsg_types.hpp"
namespace zmsg {
template<>
struct zmsg<mid_t::heat_start> {
public:
uint32_t Material;
shrink_tube_t Fiberlen;
bool Heatctl;
uint16_t heat_time; /// unit: second
int16_t heat_temp; /// unit: degree Celsius
int16_t finish_temp; //... | modify zmsg heat_start | modify zmsg heat_start
| C++ | apache-2.0 | walkthetalk/libem,walkthetalk/libem,walkthetalk/libem |
1d586fb5ab7fdf776423d8da27ee6bdb6da04ef8 | src/json_writer.cpp | src/json_writer.cpp | #include "json_writer.hpp"
#include <limits>
#include <cmath>
// TODO: test putc_unlocked (EOF) and snprintf (length if unlimited) output
namespace zizany {
static
void
fputs_unlocked(const char *str, FILE *output) {
while (*str != 0)
putc_unlocked(*str++, output);
}
json_writ... | #include "json_writer.hpp"
#include <limits>
#include <cmath>
// TODO: test putc_unlocked (EOF) and snprintf (length if unlimited) output
namespace zizany {
static
void
fputs_unlocked_(const char *str, FILE *output) {
while (*str != 0)
putc_unlocked(*str++, output);
}
json_wri... | Rename fputs_unlocked because of conflict with gnu stdio.h | Rename fputs_unlocked because of conflict with gnu stdio.h
| C++ | mit | kmichel/zizany,kmichel/zizany |
7f381db4513daba8fcd380084db97906915e9fb9 | src/node-midi.cpp | src/node-midi.cpp | #include <nan.h>
#include <queue>
#include <uv.h>
#include "lib/RtMidi/RtMidi.h"
#include "lib/RtMidi/RtMidi.cpp"
class NodeMidiOutput : public Nan::ObjectWrap
{
private:
RtMidiOut* out;
public:
static Nan::Persistent<v8::FunctionTemplate> s_ct;
static void Init(v8::Handle<v8::Object> target)
{
... | #include <nan.h>
#include <queue>
#include <uv.h>
#include "lib/RtMidi/RtMidi.h"
#include "lib/RtMidi/RtMidi.cpp"
class NodeMidiOutput : public Nan::ObjectWrap
{
private:
RtMidiOut* out;
public:
static Nan::Persistent<v8::FunctionTemplate> s_ct;
static void Init(v8::Local<v8::Object> target)
{
... | Fix errors and deprecations for node 12. | Fix errors and deprecations for node 12.
| C++ | mit | Cycling74/node-midi,Cycling74/node-midi,justinlatimer/node-midi,Cycling74/node-midi,justinlatimer/node-midi,justinlatimer/node-midi,Cycling74/node-midi,Cycling74/node-midi,Cycling74/node-midi |
076851b74bee39d0c911a344063f5e4731dda28a | modules/gui/skins2/utils/var_tree.cpp | modules/gui/skins2/utils/var_tree.cpp | /*****************************************************************************
* var_tree.cpp
*****************************************************************************
* Copyright (C) 2005 the VideoLAN team
* $Id$
*
* Authors: Antoine Cellerier <dionoea@videolan.org>
* Clément Stenac <zorglub@videol... | /*****************************************************************************
* var_tree.cpp
*****************************************************************************
* Copyright (C) 2005 the VideoLAN team
* $Id$
*
* Authors: Antoine Cellerier <dionoea@videolan.org>
* Clément Stenac <zorglub@videol... | fix forgotten initialization in copy constructor | skins2: fix forgotten initialization in copy constructor
This bug was unnoticed because this constructor is only called in a situation
where really copying from origin or leaving it to the compiler to set it via
the default constructor leads to the same result (an empty list). Yet, this
was a bug.
It may solve trac #... | C++ | lgpl-2.1 | vlc-mirror/vlc-2.1,xkfz007/vlc,shyamalschandra/vlc,shyamalschandra/vlc,krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,xkfz007/vlc,krichter722/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,krichter722/vlc,vlc-mirro... |
bcd15752e30f713525614cec7fc3cabbb250319d | src/child_manager.cxx | src/child_manager.cxx | /*
* Central manager for child processes.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "child_manager.hxx"
#include "crash.hxx"
#include "pool.hxx"
#include "spawn/ExitListener.hxx"
#include "event/TimerEvent.hxx"
#include "event/DeferEvent.hxx"
#include "event/SignalEvent.hxx"
#include "event/Callback.h... | /*
* Central manager for child processes.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "child_manager.hxx"
#include "crash.hxx"
#include "pool.hxx"
#include "spawn/ExitListener.hxx"
#include "event/TimerEvent.hxx"
#include "event/SignalEvent.hxx"
#include "event/Callback.hxx"
#include "system/clock.h"
#i... | remove defer_event, obsolete | child_manager: remove defer_event, obsolete | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
2e393ab83362743ba1825ad4b31d4a2925c606b4 | modules/superres/src/frame_source.cpp | modules/superres/src/frame_source.cpp | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | Fix return value VideoFrameSource_GPU | superres: Fix return value VideoFrameSource_GPU
superres module fails to compile with the following error messages:
[100%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o
/opencv-2.4.10/modules/superres/src/frame_source.cpp: In function 'cv::Ptr<cv::superres::FrameS... | C++ | apache-2.0 | opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv |
c9953e57301ed46b5082e1170e6609c8d7c1d5d5 | src/osuar_ground_station/osuar_vision/src/squares.cpp | src/osuar_ground_station/osuar_vision/src/squares.cpp | // The "Square Detector" program.
// It loads several images sequentially and tries to find squares in
// each image
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <ro... | // The "Square Detector" program.
// It loads several images sequentially and tries to find squares in
// each image
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <ro... | Add maximum square area threshold. | Add maximum square area threshold.
| C++ | lgpl-2.1 | osuar/iarc,osuar/iarc,osuar/iarc,osuar/iarc,osuar/iarc,osuar/iarc |
077fc1dfa8cf5712b9e5c1a5a92e62cc9f208dcd | chrome/browser/extensions/extension_bookmark_manager_apitest.cc | chrome/browser/extensions/extension_bookmark_manager_apitest.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/... | Tag ExtensionApiTest.BookmarkManagerEditDisabled flaky. | Tag ExtensionApiTest.BookmarkManagerEditDisabled flaky.
TBR=joaodasilva@chromium.org
BUG=79335
TEST=none
Review URL: http://codereview.chromium.org/6836012
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@81417 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C++ | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
891f4c265344b4ac56803544eca3ef59892f24ae | cccallcc.hpp | cccallcc.hpp | #ifndef __CCCALLCC_HPP__
#define __CCCALLCC_HPP__
#include <functional>
#include <memory>
#include <unistd.h>
template <typename T>
class cont {
public:
typedef std::function<T (cont<T>)> call_cc_arg;
static T call_cc(call_cc_arg f);
void operator()(const T &x) {
m_impl_ptr->invoke(x);
}
pr... | #ifndef __CCCALLCC_HPP__
#define __CCCALLCC_HPP__
#include <functional>
#include <memory>
#include <unistd.h>
template <typename T>
class cont {
public:
typedef std::function<T (cont<T>)> call_cc_arg;
static T call_cc(call_cc_arg f);
void operator()(const T &x) {
m_impl_ptr->invoke(x);
}
pr... | deal with comparison signedness | deal with comparison signedness
If sizeof(T) is more than the max ssize_t then we have other problems,
like the stack-allocated buffer.
| C++ | bsd-3-clause | kmcallister/cccallcc,kmcallister/cccallcc |
682cdd2ccfe630491b15855b280dadcbd4b5a6c1 | src/numerics/distributed_vector.C | src/numerics/distributed_vector.C | // $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2007 Benjamin S. Kirk, John W. Peterson
// 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 ... | // $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2007 Benjamin S. Kirk, John W. Peterson
// 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 ... | Use Real instead of double where appropriate | Use Real instead of double where appropriate
git-svn-id: ffc1bc5b3feaf8644044862cc38c386ade156493@2613 434f946d-2f3d-0410-ba4c-cb9f52fb0dbf
| C++ | lgpl-2.1 | certik/libmesh,certik/libmesh,certik/libmesh,certik/libmesh,certik/libmesh,certik/libmesh,certik/libmesh |
f54a23364dc46cce010b3b694486605b83da98a5 | src/common/id_gen.hpp | src/common/id_gen.hpp | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include <queue>
namespace redc
{
template <typename id_type>
struct ID_Gen
{
using queue_type = std::queue<id_type>;
id_type count = 0;
queue_type removed_id_queue;
inline id_type get();
inline void remove(id... | /*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#pragma once
#include <vector>
namespace redc
{
template <typename id_type>
struct ID_Gen
{
id_type get();
id_type peek();
void remove(id_type id);
bool is_removed(id_type id);
bool is_valid(id_type id);
id_type reser... | Clean up ID_Gen | Clean up ID_Gen
It is no longer mostly inline and no longer publicly flaunting its
implementation. It is being used in the Scene struct to manage the indices of
objects currently valid in a pre-allocated contiguous array of them.
| C++ | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
5739d78831e56bb908335fd9a91da758f60b836e | Rendering/Testing/Cxx/TestScenePicker.cxx | Rendering/Testing/Cxx/TestScenePicker.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: TestScenePicker.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 ... | /*=========================================================================
Program: Visualization Toolkit
Module: TestScenePicker.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 ... | Check and warn when renderwindow is not capable of doing visible cell/point selection. | BUG: Check and warn when renderwindow is not capable of doing visible cell/point selection.
| C++ | bsd-3-clause | sankhesh/VTK,berendkleinhaneveld/VTK,biddisco/VTK,arnaudgelas/VTK,berendkleinhaneveld/VTK,cjh1/VTK,msmolens/VTK,Wuteyan/VTK,biddisco/VTK,cjh1/VTK,daviddoria/PointGraphsPhase1,demarle/VTK,spthaolt/VTK,aashish24/VTK-old,aashish24/VTK-old,Wuteyan/VTK,mspark93/VTK,hendradarwin/VTK,gram526/VTK,ashray/VTK-EVM,candy7393/VTK,k... |
b682adaee9fa9e360e428db2d71328c2d8d7fbed | src/tools/qtcreatorcrashhandler/crashhandlersetup.cpp | src/tools/qtcreatorcrashhandler/crashhandlersetup.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 fil... | /**************************************************************************
**
** 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 fil... | Handle signal SIGABRT | CrashHandler: Handle signal SIGABRT
This signal is generated if abort() is called. This happens e.g.
1. if there is an attempt to call a pure virtual method
2. if Qt detects an uncaught exception or printing a message fails
(qlogging.cpp, qt_message())
Change-Id: I6a1d8f094a884ebc6bfc6a1fc168aea8afe825b5
Rev... | C++ | lgpl-2.1 | kuba1/qtcreator,xianian/qt-creator,malikcjm/qtcreator,kuba1/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,omniacreator/qtcreator,maui-packages/qt-creator,xianian/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,farseerri/git_code,xianian/qt-creator,martyone/sa... |
70f2a1f9850faac9cccca7083a7477e80c38d093 | src/tracing/processors/timed_stream_vcd_processor.cpp | src/tracing/processors/timed_stream_vcd_processor.cpp |
#include "tvs/tracing/processors/timed_stream_vcd_processor.h"
#include "tvs/tracing/processors/timed_stream_processor_base.h"
#include "tvs/utils/assert.h"
#include "tvs/utils/report.h"
#include "tvs/tracing/report_msgs.h"
#include <cstdint>
#include <map>
namespace tracing {
char const*
vcd_stream_container_ba... |
#include "tvs/tracing/processors/timed_stream_vcd_processor.h"
#include "tvs/tracing/processors/timed_stream_processor_base.h"
#include "tvs/utils/assert.h"
#include "tvs/utils/report.h"
#include "tvs/tracing/report_msgs.h"
#include <cstdint>
#include <map>
namespace tracing {
char const*
vcd_stream_container_ba... | print final timestamp in VCD file | vcd: print final timestamp in VCD file
| C++ | apache-2.0 | offis/libtvs,offis/libtvs |
beb41cd5e257f2d2eb0cea64426c01fe21840b29 | core/propertyBag/accountPropertyBag.cpp | core/propertyBag/accountPropertyBag.cpp | #include <core/stdafx.h>
#include <core/propertyBag/accountPropertyBag.h>
#include <core/mapi/mapiFunctions.h>
#include <core/mapi/mapiMemory.h>
#include <core/mapi/account/actMgmt.h>
namespace propertybag
{
accountPropertyBag::accountPropertyBag(std::wstring lpwszProfile, LPOLKACCOUNT lpAccount)
{
m_lpwszProfile ... | #include <core/stdafx.h>
#include <core/propertyBag/accountPropertyBag.h>
#include <core/mapi/mapiFunctions.h>
#include <core/mapi/mapiMemory.h>
#include <core/mapi/account/actMgmt.h>
namespace propertybag
{
accountPropertyBag::accountPropertyBag(std::wstring lpwszProfile, LPOLKACCOUNT lpAccount)
{
m_lpwszProfile ... | implement GetProps | implement GetProps
| C++ | mit | stephenegriffin/mfcmapi,stephenegriffin/mfcmapi,stephenegriffin/mfcmapi |
0b78219cd31194d423d23d404c349a188b019d43 | src/osvr/Common/ClientContext.cpp | src/osvr/Common/ClientContext.cpp | /** @file
@brief Implementation
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the L... | /** @file
@brief Implementation
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the L... | Add a context shut down message | Add a context shut down message
| C++ | apache-2.0 | feilen/OSVR-Core,godbyk/OSVR-Core,leemichaelRazer/OSVR-Core,d235j/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,feilen/OSVR-Core,OSVR/OSVR-Core,d235j/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,feilen/OSVR-Core,OSVR/O... |
c345b192c37e897464bf65f04fe1f6837c3fb76d | src/curl.cpp | src/curl.cpp | /*
* Copyright (C) 2009 Toni Gundogdu.
*
* This file is part of cclive.
*
* cclive 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
* vers... | /*
* Copyright (C) 2009 Toni Gundogdu.
*
* This file is part of cclive.
*
* cclive 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
* vers... | Make const. | Make const.
| C++ | agpl-3.0 | legatvs/cclive,legatvs/cclive,legatvs/cclive |
8f073382bb6a9b3998a74e6b58654476b77b4c86 | src/core/SkShader.cpp | src/core/SkShader.cpp | /* libs/graphics/sgl/SkShader.cpp
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE... | /* libs/graphics/sgl/SkShader.cpp
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE... | fix off-by-1 in alpha in colorshader setup don't promise HasSpan16 if we're supposed to dither | fix off-by-1 in alpha in colorshader setup
don't promise HasSpan16 if we're supposed to dither
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@526 2bbb7eff-a529-9590-31e7-b0007b416f81
| C++ | bsd-3-clause | AsteroidOS/android_external_skia,Purity-Lollipop/platform_external_skia,OptiPop/external_skia,chenlian2015/skia_from_google,TeamEOS/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,Fusion-Rom/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_th... |
40e6f72c138755554e329cd36b2116aaf3f3d11c | atom/browser/atom_download_manager_delegate.cc | atom/browser/atom_download_manager_delegate.cc | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/atom_download_manager_delegate.h"
#include <string>
#include "atom/browser/api/atom_api_download_item.h"
#include "atom/browser/atom_browser_context.h"
#includ... | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/atom_download_manager_delegate.h"
#include <string>
#include "atom/browser/api/atom_api_download_item.h"
#include "atom/browser/atom_browser_context.h"
#includ... | Add DownloadInterruptReason param to DownloadTargetCallback | Add DownloadInterruptReason param to DownloadTargetCallback
| C++ | mit | brave/electron,brave/muon,brave/electron,brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/muon,brave/electron,brave/muon |
f661a0013f73cb8d45c3f0999fea15686dcd2993 | Samples/SSDPServer/Sources/SSDPServer.cpp | Samples/SSDPServer/Sources/SSDPServer.cpp | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <mutex>
#include <iostream>
#include "Stroika/Foundation/Characters/Format.h"
#include "Stroika/Foundation/Execution/CommandLine.h"
#include "Stroika/Foundation/Exec... | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <mutex>
#include <iostream>
#include "Stroika/Foundation/Characters/Format.h"
#include "Stroika/Foundation/Execution/CommandLine.h"
#include "Stroika/Foundation/Exec... | use new UPnP::MungePrimaryMacAddrIntoBaseDeviceID () in SSDPServer Sample code so we get unique addrs in testing SSDPServer | use new UPnP::MungePrimaryMacAddrIntoBaseDeviceID () in SSDPServer Sample code so we get unique addrs in testing SSDPServer
| C++ | mit | SophistSolutions/Stroika,SophistSolutions/Stroika,SophistSolutions/Stroika,SophistSolutions/Stroika,SophistSolutions/Stroika |
3dff7620355597df0ddad435869fe9f31784f7c4 | Code/Numerics/itkSingleValuedVnlCostFunctionAdaptor.cxx | Code/Numerics/itkSingleValuedVnlCostFunctionAdaptor.cxx | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSingleValuedVnlCostFunctionAdaptor.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See I... | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSingleValuedVnlCostFunctionAdaptor.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See I... | fix crash | ENH: fix crash
| C++ | apache-2.0 | hinerm/ITK,zachary-williamson/ITK,PlutoniumHeart/ITK,BlueBrain/ITK,msmolens/ITK,fuentesdt/InsightToolkit-dev,itkvideo/ITK,wkjeong/ITK,hjmjohnson/ITK,spinicist/ITK,BlueBrain/ITK,PlutoniumHeart/ITK,vfonov/ITK,LucasGandel/ITK,fedral/ITK,fuentesdt/InsightToolkit-dev,Kitware/ITK,Kitware/ITK,Kitware/ITK,GEHC-Surgery/ITK,hine... |
0e0d716684f90e1ba5f34dc7ad961bc323b711ed | src/3rdparty/phonon/mmf/videoplayer.cpp | src/3rdparty/phonon/mmf/videoplayer.cpp | /* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
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 or 3 of the Lice... | /* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
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 or 3 of the Lice... | Remove an unimplementable TODO. | Remove an unimplementable TODO.
MvpuoOpenComplete's TInt aError doesn't map to Phonon::ErrorType.
| C++ | lgpl-2.1 | igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,radekp/qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,pr... |
9325a42e23fb7decca2c70276b870f45a1ec76e8 | elang/lir/transforms/register_allocation_pass.cc | elang/lir/transforms/register_allocation_pass.cc | // Copyright 2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/lir/transforms/register_allocation_pass.h"
#include "elang/lir/editor.h"
#include "elang/lir/instructions.h"
#include "elang/lir/literals.h"
#in... | // Copyright 2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/lir/transforms/register_allocation_pass.h"
#include "elang/lir/editor.h"
#include "elang/lir/instructions.h"
#include "elang/lir/literals.h"
#in... | Make |RegisterAssignmentsPass| to discard phi-instructions after converting SSA form to normal form. | elang/lir/transforms: Make |RegisterAssignmentsPass| to discard phi-instructions after converting SSA form to normal form.
| C++ | apache-2.0 | eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang |
0ef1cc556ad75a0952ebf838fed629238715e6bf | src/Editor/GUI/VerticalScrollLayout.cpp | src/Editor/GUI/VerticalScrollLayout.cpp | #include "VerticalScrollLayout.hpp"
#include <Engine/Geometry/Rectangle.hpp>
#include <Engine/Manager/Managers.hpp>
#include <Engine/Manager/ResourceManager.hpp>
#include <Engine/Util/Input.hpp>
using namespace GUI;
VerticalScrollLayout::VerticalScrollLayout(Widget* parent) : Container(parent) {
rectangle = Mana... | #include "VerticalScrollLayout.hpp"
#include <Engine/Geometry/Rectangle.hpp>
#include <Engine/Manager/Managers.hpp>
#include <Engine/Manager/ResourceManager.hpp>
#include <Engine/Util/Input.hpp>
using namespace GUI;
VerticalScrollLayout::VerticalScrollLayout(Widget* parent) : Container(parent) {
rectangle = Mana... | Fix vertical scroll layout | Fix vertical scroll layout
| C++ | mit | Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/HymnToBeauty,Chainsawkitten/HymnToBeauty |
8d578e9f5a91aafcabebb2c5515012d62dfa1f7e | src/file.cpp | src/file.cpp | /*
Copyright (c) 2003, Arvid Norberg
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 conditions and the f... | /*
Copyright (c) 2003, Arvid Norberg
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 conditions and the f... | set all permission bits on files and let umask handle reducing permissions | set all permission bits on files and let umask handle reducing permissions
git-svn-id: a9fe57c6430a6997a38eed96ede4af2f77d6b776@2553 a83610d8-ad2a-0410-a6ab-fc0612d85776
| C++ | bsd-3-clause | chongyc/libtorrent,chongyc/libtorrent,chongyc/libtorrent,chongyc/libtorrent |
c7286e13e4489a1b2acb7be5d2832fba09d33c75 | src/device/device.cpp | src/device/device.cpp | /*
* Copyright 2011-2013 Blender Foundation
*
* 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 ag... | /*
* Copyright 2011-2013 Blender Foundation
*
* 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 ag... | Fix typo in flags check | Fix typo in flags check
| C++ | apache-2.0 | tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird |
bb6a0a65a4eada4c148fe5fffe9b62fa8ef4ec7a | core/src/tangram.cpp | core/src/tangram.cpp | #include "tangram.h"
#include "platform.h"
#include "scene/scene.h"
#include "scene/sceneLoader.h"
#include "style/style.h"
#include "text/fontContext.h"
#include "labels/labels.h"
#include "tile/tileManager.h"
#include "tile/tile.h"
#include "gl/error.h"
#include "gl/shaderProgram.h"
#include "scene/skybox.h"
#includ... | #include "tangram.h"
#include "platform.h"
#include "scene/scene.h"
#include "scene/sceneLoader.h"
#include "style/style.h"
#include "text/fontContext.h"
#include "labels/labels.h"
#include "tile/tileManager.h"
#include "tile/tile.h"
#include "gl/error.h"
#include "gl/shaderProgram.h"
#include "scene/skybox.h"
#includ... | use std::bitset for Debug options | use std::bitset for Debug options
- further reading for anyone missing the bit twiddling:
https://graphics.stanford.edu/~seander/bithacks.html
| C++ | mit | tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,xvilan/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,xvilan/tangram-es,tangrams/tangram-es,tangrams/tangram-es,cleeus/tangram-es,tangrams/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,xvil... |
7f7f3688b86b8c9092f7a5b188b32a66e39e8b30 | src/lb/ExpectMonitor.cxx | src/lb/ExpectMonitor.cxx | /*
* Copyright 2007-2017 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-2017 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... | use class SocketDescriptor | lb/ExpectMonitor: use class SocketDescriptor | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
37bcae036ed8cac947baf9334a565cc862d118b1 | framework/src/utils/MonotoneCubicInterpolation.C | framework/src/utils/MonotoneCubicInterpolation.C | /****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | /****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC ... | Fix minor spacing issue in constructor. | Fix minor spacing issue in constructor.
| C++ | lgpl-2.1 | yipenggao/moose,milljm/moose,yipenggao/moose,liuwenf/moose,harterj/moose,bwspenc/moose,stimpsonsg/moose,idaholab/moose,milljm/moose,yipenggao/moose,sapitts/moose,nuclear-wizard/moose,YaqiWang/moose,andrsd/moose,liuwenf/moose,backmari/moose,YaqiWang/moose,sapitts/moose,bwspenc/moose,idaholab/moose,andrsd/moose,laagesen/... |
7142cebcdd7b0e63a5b567d7eda5a5cfe3d8ccc5 | src/orbwordindex.cc | src/orbwordindex.cc | /*****************************************************************************
* Copyright (C) 2014 Visualink
*
* Authors: Adrien Maglo <adrien@visualink.io>
*
* This file is part of Pastec.
*
* Pastec is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License ... | /*****************************************************************************
* Copyright (C) 2014 Visualink
*
* Authors: Adrien Maglo <adrien@visualink.io>
*
* This file is part of Pastec.
*
* Pastec is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License ... | Make sure training is marked as not started when creating word indexer instance | Make sure training is marked as not started when creating word indexer instance
| C++ | apache-2.0 | Wedjaa/node-orbidx,Wedjaa/node-orbidx,Wedjaa/node-orbidx,Wedjaa/node-orbidx |
f08a56b16a6bdb5e143e99d82473bbd0347b2c0d | src/Platforms/Borland/UtestPlatform.cpp | src/Platforms/Borland/UtestPlatform.cpp | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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... | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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... | Update UtestPlatform.cpp | Update UtestPlatform.cpp
removed gcc pragma directive | C++ | bsd-3-clause | basvodde/cpputest,offa/cpputest,basvodde/cpputest,basvodde/cpputest,cpputest/cpputest,offa/cpputest,offa/cpputest,cpputest/cpputest,offa/cpputest,cpputest/cpputest,cpputest/cpputest,basvodde/cpputest |
08320755cc87236230927fc9abdbd513d00fe2be | src/game.cpp | src/game.cpp | #include "game.hpp"
#include "exception.hpp"
namespace Quoridor {
// order in which pawns are adding
// pawns rotates according to their indexes: 0 -> 1 -> 2 -> 3 -> 0 -> ...
static const std::vector<int> pawn_idx_list = {0, 2, 1, 3};
Game::Game(int board_size) : board_size_(board_size), pawn_data_list_(),
cur_p... | #include "game.hpp"
#include "exception.hpp"
namespace Quoridor {
// order in which pawns are adding
// pawns rotates according to their indexes: 0 -> 1 -> 2 -> 3 -> 0 -> ...
static const std::vector<int> pawn_idx_list = {0, 2, 1, 3};
Game::Game(int board_size) : board_size_(board_size), pawn_data_list_(),
cur_p... | Fix issue #13: pawn can move through the wall | Fix issue #13: pawn can move through the wall
| C++ | mit | sfod/quoridor |
381b56cd572d3ca85efec4ddebea4af3953845a7 | src/glob.cpp | src/glob.cpp | #include <cstring>
#include <cstdlib>
#include <iostream>
#include <stdint.h>
#include <string>
#include "FS.hpp"
#include "sass.h"
#include <libgen.h>
// return version of libsass we are linked against
extern "C" const char* ADDCALL libsass_get_version() {
return libsass_version();
}
// create a cust... | #include <cstring>
#include <cstdlib>
#include <iostream>
#include <stdint.h>
#include <string>
#include "FS.hpp"
#include "sass.h"
#include <libgen.h>
// return version of libsass we are linked against
extern "C" const char* ADDCALL libsass_get_version() {
return libsass_version();
}
// create a cust... | Fix memory leak in `glob_importer` | Fix memory leak in `glob_importer`
The matcher was never deleted.
Allocate it on stack instead.
| C++ | mit | mgreter/libsass-glob |
dec78d58f49ed6f4e2975115ffd2c04c916d2fea | src/engine/Object.cpp | src/engine/Object.cpp | #include "Object.hpp"
Object::Object() {}
Object::Object(const Object::Type & type, const std::string& meshPath, const std::vector<std::pair<std::string, bool>>& texturesPaths, const std::vector<std::pair<std::string, bool>>& cubemapPaths, bool castShadows) {
_material = static_cast<int>(type);
_castShadow = cast... | #include "Object.hpp"
Object::Object() {}
Object::Object(const Object::Type & type, const std::string& meshPath, const std::vector<std::pair<std::string, bool>>& texturesPaths, const std::vector<std::pair<std::string, bool>>& cubemapPaths, bool castShadows) {
_material = static_cast<int>(type);
_castShadow = cast... | remove uneeded element array buffer binding. | Object: remove uneeded element array buffer binding.
Former-commit-id: 111ffd61291b8ac7015f86420ec672bec4e87804 | C++ | mit | kosua20/GL_Template,kosua20/GL_Template |
6488b5749e45bbaef09480a636f184f59ad85057 | src/gzip.cpp | src/gzip.cpp | /*
Copyright (c) 2007-2014, Arvid Norberg
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 conditions and ... | /*
Copyright (c) 2007-2014, Arvid Norberg
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 conditions and ... | fix inflate_gzip export for unit test | fix inflate_gzip export for unit test
git-svn-id: 4f0141143c3c635d33f1b9f02fcb2b6c73e45c89@9926 a83610d8-ad2a-0410-a6ab-fc0612d85776
| C++ | bsd-3-clause | svn2github/libtorrent-rasterbar-trunk,svn2github/libtorrent-rasterbar-trunk,svn2github/libtorrent-rasterbar-trunk,svn2github/libtorrent-rasterbar-trunk |
9ef938362557eac870a57396f94b550b7a8534e1 | src/ics3.cpp | src/ics3.cpp | #include"ics3/ics3.hpp"
#include"core.hpp"
#include"ics3/eeprom.hpp"
#include"ics3/parameter.hpp"
#include"ics3/id.hpp"
inline uint16_t getReceiveAngle(const std::vector<uint8_t>& rx) noexcept {
return static_cast<uint16_t>((rx[4] << 7) | rx[5]);
}
ics::ICS3::ICS3(const std::string& path, const Baudrate& baudrate)... | #include"ics3/ics3.hpp"
#include"core.hpp"
#include"ics3/eeprom.hpp"
#include"ics3/parameter.hpp"
#include"ics3/id.hpp"
inline uint16_t getReceiveAngle(const std::vector<uint8_t>& rx) noexcept {
return static_cast<uint16_t>((rx[4] << 7) | rx[5]);
}
ics::ICS3::ICS3(const std::string& path, const Baudrate& baudrate)... | Remove static of vector on ics methods for memory | Remove static of vector on ics methods for memory
| C++ | bsd-2-clause | forno/libics3,forno/libics3 |
04eb628fc631d456acca3da79c96a6e820afaf57 | src/ifgt.hpp | src/ifgt.hpp | // fgt — fast Gauss transforms
// Copyright (C) 2016 Peter J. Gadomski <pete.gadomski@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... | // fgt — fast Gauss transforms
// Copyright (C) 2016 Peter J. Gadomski <pete.gadomski@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... | Add pragma once to ifgt.hpp | Add pragma once to ifgt.hpp
| C++ | lgpl-2.1 | gadomski/fgt,gadomski/fgt,gadomski/fgt |
74e96c9e3f675685e289ecb7792dc39cf2da3944 | src/eth/StratumEth.cc | src/eth/StratumEth.cc | /*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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, me... | /*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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, me... | Fix build errors with Boost 1.72 | Fix build errors with Boost 1.72
Boost 1.72 changed return type of endian buffer data() method to
unsigned char* so a cast is needed.
| C++ | mit | btccom/btcpool,btccom/btcpool,btccom/btcpool,btccom/btcpool,btccom/btcpool,btccom/btcpool,btccom/btcpool,btccom/btcpool |
5b891894d7ca8396ee75eb909d2c08036363e18a | src/export_cfg_md.cpp | src/export_cfg_md.cpp | #include "export_cfg_md.h"
#include "atoms_md.h"
#include "elements.h"
#include "print.h"
using namespace MAPP_NS;
/*--------------------------------------------
--------------------------------------------*/
ExportCFGMD::ExportCFGMD(const std::string& __pattern,int __nevery,
std::string* user_vec_names,size_t nuser... | #include "export_cfg_md.h"
#include "atoms_md.h"
#include "elements.h"
#include "print.h"
using namespace MAPP_NS;
/*--------------------------------------------
--------------------------------------------*/
ExportCFGMD::ExportCFGMD(const std::string& __pattern,int __nevery,
std::string* user_vec_names,size_t nuser... | clean up | clean up
| C++ | mit | sinamoeini/mapp4py,sinamoeini/mapp4py,sinamoeini/mapp4py,sinamoeini/mapp4py |
38e508853c9b89c75affbdc559f3b0017e99119c | src/filters/Stats.cpp | src/filters/Stats.cpp | /******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* ... | /******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* ... | add bounds check | add bounds check
| C++ | bsd-3-clause | verma/PDAL,Sciumo/PDAL,mtCarto/PDAL,lucadelu/PDAL,DougFirErickson/PDAL,Sciumo/PDAL,lucadelu/PDAL,verma/PDAL,Sciumo/PDAL,mpgerlek/PDAL-old,verma/PDAL,jwomeara/PDAL,mtCarto/PDAL,verma/PDAL,radiantbluetechnologies/PDAL,mtCarto/PDAL,boundlessgeo/PDAL,DougFirErickson/PDAL,mtCarto/PDAL,mpgerlek/PDAL-old,DougFirErickson/PDAL,... |
dbc6472e943ab482f926af5608500d5ac3994284 | src/autowiring/test/CoreContextTest.cpp | src/autowiring/test/CoreContextTest.cpp | // Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include <autowiring/AutoInjectable.h>
#include <autowiring/ContextEnumerator.h>
#include <algorithm>
#include <set>
#include THREAD_HEADER
#include FUTURE_HEADER
class CoreContextTest:
public testing::Test
{};
class Foo{};
class ... | // Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include <autowiring/AutoInjectable.h>
#include <autowiring/ContextEnumerator.h>
#include <algorithm>
#include <set>
#include THREAD_HEADER
#include FUTURE_HEADER
class CoreContextTest:
public testing::Test
{};
class Foo{};
class ... | Add test to verify recursive context initiation | Add test to verify recursive context initiation
| C++ | apache-2.0 | codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring |
d2e15db7fa953fe36c230c01059003d45fbbf36c | src/masternodeconfig.cpp | src/masternodeconfig.cpp |
#include "net.h"
#include "masternodeconfig.h"
#include "util.h"
CMasternodeConfig masternodeConfig;
void CMasternodeConfig::add(std::string alias, std::string ip, std::string privKey, std::string txHash, std::string outputIndex) {
CMasternodeEntry cme(alias, ip, privKey, txHash, outputIndex);
entries.push_b... |
#include "net.h"
#include "masternodeconfig.h"
#include "util.h"
CMasternodeConfig masternodeConfig;
void CMasternodeConfig::add(std::string alias, std::string ip, std::string privKey, std::string txHash, std::string outputIndex) {
CMasternodeEntry cme(alias, ip, privKey, txHash, outputIndex);
entries.push_b... | fix #4 for masternode.conf | fix #4 for masternode.conf
| C++ | mit | syfares/Transfercoin,syfares/Transfercoin,bryceweiner/mojocoin,MinuteManReserve/mmr-core,bryceweiner/mojocoin,Infernoman/Transfercoin,bryceweiner/mojocoin,transferdev/Transfercoin,bryceweiner/mojocoin,syfares/Transfercoin,transferdev/Transfercoin,aspaas/ion,aspaas/ion,transferdev/Transfercoin,aspaas/ion,aspaas/ion,tran... |
8fa16e47f88975b577fe1cafce1a366b78b2c340 | lib/CodeGen/VirtRegMap.cpp | lib/CodeGen/VirtRegMap.cpp | //===-- llvm/CodeGen/VirtRegMap.cpp - Virtual Register Map ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | //===-- llvm/CodeGen/VirtRegMap.cpp - Virtual Register Map ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | Clear maps right after basic block is processed. | Clear maps right after basic block is processed.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@11892 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/l... |
9aa8b317c4dcfb719652a02d5d88d6d708264c58 | Siv3D/include/Siv3D/Windows/Libraries.hpp | Siv3D/include/Siv3D/Windows/Libraries.hpp | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/Platform.hpp>
... | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/Platform.hpp>
... | fix missing library | [Windows] fix missing library
| C++ | mit | Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D |
aa9cf75ae0698f620fc1bfdaae0ed325194c1c49 | Source/core/layout/TextRunConstructor.cpp | Source/core/layout/TextRunConstructor.cpp | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | Fix crash in constructTextRun when string is null | Fix crash in constructTextRun when string is null
This patch guards constructTextRun() variations from null strings.
Recent optimizations in constructTextRun call String::is8bit(),
string::characters8(), and LayoutText::characters8(), all which can
make null references against null strings.
BUG=465214
Review URL: h... | C++ | bsd-3-clause | kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/bli... |
ad05100b6bcabeb2b21e25d3e9c2c7b50c444262 | src/misc/parser_base.hpp | src/misc/parser_base.hpp | /*
* Copyright (C) 2015-2017 Nagisa Sekiguchi
*
* 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 ... | /*
* Copyright (C) 2015-2017 Nagisa Sekiguchi
*
* 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 ... | fix parser error message | fix parser error message
| C++ | apache-2.0 | sekiguchi-nagisa/ydsh,sekiguchi-nagisa/ydsh,sekiguchi-nagisa/ydsh |
0a9068780501887dd731c60e441139c5caefa92d | examples/tagwriter.cpp | examples/tagwriter.cpp | /* Copyright (C) 2004 Scott Wheeler <wheeler@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | /* Copyright (C) 2004 Scott Wheeler <wheeler@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | add options R, I, D for replace/insert/delete of arbitrary tags | add options R, I, D for replace/insert/delete of arbitrary tags
| C++ | lgpl-2.1 | TsudaKageyu/taglib,i80and/taglib,TsudaKageyu/taglib,taglib/taglib,i80and/taglib,TsudaKageyu/taglib,taglib/taglib,dlz1123/taglib,pbhd/taglib,black78/taglib,black78/taglib,taglib/taglib,dlz1123/taglib,dlz1123/taglib,black78/taglib,Distrotech/taglib,pbhd/taglib,Distrotech/taglib,i80and/taglib,Distrotech/taglib,pbhd/taglib |
74926702b3d5db4ae607f9029abd9209dac43e9d | DungeonsOfNoudar486/DOS-version/WindowOperationsDOS.cpp | DungeonsOfNoudar486/DOS-version/WindowOperationsDOS.cpp | #include <stdio.h>
#include <stdlib.h>
#include <osmesa.h>
#include <conio.h> // For kbhit, getch, textmode (console access)
#include <dpmi.h> // For __dpmi_int (mouse access)
#include <go32.h> // For _dos_ds (VRAM access)
#include <sys/movedata.h> // For movedata (VRAM access)
#include <cstdlib... | #include <stdio.h>
#include <stdlib.h>
#include <osmesa.h>
#include <conio.h> // For kbhit, getch, textmode (console access)
#include <dpmi.h> // For __dpmi_int (mouse access)
#include <go32.h> // For _dos_ds (VRAM access)
#include <sys/movedata.h> // For movedata (VRAM access)
#include <cstdlib... | Add greeting at exit | Add greeting at exit
| C++ | bsd-2-clause | TheFakeMontyOnTheRun/dungeons-of-noudar,TheFakeMontyOnTheRun/dungeons-of-noudar |
d09d3d8bcb9c3762e7ad9a22c79bd7f698a68c52 | test/TestGroup.cpp | test/TestGroup.cpp | // Copyright © 2013,2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@b... | // Copyright © 2013,2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@b... | comment about self assignment test | TestGroup: comment about self assignment test
| C++ | bsd-3-clause | stoewer/nix |
0819c343b64c7772d5e76ee6cb05855d4e7dcd03 | src/runtime/qnames/QNamesImpl.cpp | src/runtime/qnames/QNamesImpl.cpp | /**
* @copyright
* ========================================================================
* Copyright FLWOR Foundation
* ========================================================================
*
* @author Sorin Nasoi (sorin.nasoi@ipdevel.ro)
* @file runtime/qnames/QNamesImpl.cpp
*
*/
#include "store/api/i... | /**
* @copyright
* ========================================================================
* Copyright FLWOR Foundation
* ========================================================================
*
* @author Sorin Nasoi (sorin.nasoi@ipdevel.ro)
* @file runtime/qnames/QNamesImpl.cpp
*
*/
#include "store/api/i... | Fix in the resolve-QName. | Fix in the resolve-QName. | C++ | apache-2.0 | 28msec/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,28msec/zorba,28msec/zorba,bgarrels/zorba,28msec/zorba,cezarfx/zorba,bgarrels/zorba,cezarfx/zorba,bgarrels/zorba,bgarrels/zorba,cezarfx/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,28msec/zorba,c... |
09edf9a2f0c3f25569f84f9537c432afe23b9892 | demo_perceptron.cc | demo_perceptron.cc | // Demo for Chapter 1. Rosenblatt's Perceptron.
#include <iostream>
#include <fstream>
#include "dataset.hh"
#include "perceptron.hh"
using namespace std;
int N_ITERS = 100;
int main(int argc, char *argv[]) {
if (argc != 3) {
cerr << "Usage: demo_perceptron train.data test.data\n";
exit(-1);
... | // Demo for Chapter 1. Rosenblatt's Perceptron.
#include <iostream>
#include <fstream>
#include "dataset.hh"
#include "perceptron.hh"
using namespace std;
int N_ITERS = 100;
int main(int argc, char *argv[]) {
if (argc != 3) {
cerr << "Usage: demo_perceptron train.data test.data\n";
exit(-1);
... | fix demo_perceptron.cc | fix demo_perceptron.cc
| C++ | mit | astanin/notch,astanin/notch,astanin/notch |
197ff79a8cd64d9eb059f0022e95ff74fceb8cf6 | lib/VMCore/SymbolTable.cpp | lib/VMCore/SymbolTable.cpp | //===-- SymbolTable.cpp - Implement the SymbolTable class -------------------=//
//
// This file implements the SymbolTable class for the VMCore library.
//
//===----------------------------------------------------------------------===//
#include "llvm/SymbolTable.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Modul... | //===-- SymbolTable.cpp - Implement the SymbolTable class -------------------=//
//
// This file implements the SymbolTable class for the VMCore library.
//
//===----------------------------------------------------------------------===//
#include "llvm/SymbolTable.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Modul... | Fix bug: Assembler/2002-12-15-GlobalResolve.ll | Fix bug: Assembler/2002-12-15-GlobalResolve.ll
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5039 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,ll... |
1489d537fb44536befab42f87cfe7f41ff4189a2 | src/mapnik_logger.cpp | src/mapnik_logger.cpp | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General P... | fix get_format return policy | fix get_format return policy
| C++ | lgpl-2.1 | mapnik/python-mapnik,mapycz/python-mapnik,garnertb/python-mapnik,tomhughes/python-mapnik,tomhughes/python-mapnik,mapycz/python-mapnik,mapnik/python-mapnik,davenquinn/python-mapnik,garnertb/python-mapnik,garnertb/python-mapnik,davenquinn/python-mapnik,davenquinn/python-mapnik,tomhughes/python-mapnik,mapnik/python-mapnik |
d3ce9b0324d98d30e572d2db8357061bc4078072 | src/mcrl2-greybox.cpp | src/mcrl2-greybox.cpp | #include <config.h>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <memory>
#include <string>
#include <set>
#include <vector>
#include <stack>
#include <mcrl2/atermpp/aterm_init.h>
#include <mcrl2/lps/ltsmin.h>
extern "C" {
#include <assert.h>
#include <limits.h>
#include <popt.h>
#include <... | #include <config.h>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <memory>
#include <string>
#include <set>
#include <vector>
#include <stack>
#include <mcrl2/atermpp/aterm_init.h>
#include <mcrl2/lps/ltsmin.h>
extern "C" {
#include <assert.h>
#include <limits.h>
#include <popt.h>
#include <... | Initialize Aterms using correct stack bottom | Initialize Aterms using correct stack bottom | C++ | bsd-3-clause | Sybe/composition,utwente-fmt/ltsmin,vbloemen/ltsmin,Meijuh/ltsmin,buschko/ltsmin,alaarman/ltsmin,trolando/ltsmin,thedobs/LTSmin,utwente-fmt/ltsmin,vbloemen/ltsmin,trolando/ltsmin,trolando/ltsmin,lordqwerty/ltsmin,buschko/ltsmin,Sybe/composition,utwente-fmt/ltsmin,Meijuh/ltsmin,utwente-fmt/ltsmin,Meijuh/ltsmin,buschko/l... |
2925ee18bab0e53dcbec32b1cd107f6ff55f9f30 | ext/common/Logging.cpp | ext/common/Logging.cpp | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2014 Phusion
*
* "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2015 Phusion
*
* "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | Truncate paths in logging strings (to 3 chars) to reduce redundant info. Closes GH #1383 | Truncate paths in logging strings (to 3 chars) to reduce redundant info.
Closes GH #1383
| C++ | mit | clemensg/passenger,kewaunited/passenger,clemensg/passenger,cgvarela/passenger,kewaunited/passenger,cgvarela/passenger,phusion/passenger,antek-drzewiecki/passenger,kewaunited/passenger,phusion/passenger,kewaunited/passenger,antek-drzewiecki/passenger,phusion/passenger,clemensg/passenger,clemensg/passenger,phusion/passen... |
5d478e839937f70ed509efc63032b6247155eb7c | src/mem/cache/mshr.cc | src/mem/cache/mshr.cc | /*
* Copyright (c) 2012 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 of the func... | /*
* Copyright (c) 2012 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 of the func... | Fix MSHR print format | mem: Fix MSHR print format
This patch fixes an incorrect print format string by adding an
additional string element.
| 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 |
b9477255059de5ab9c804672d694ae4636533b14 | cegui/src/CEGUIRenderedStringTextComponent.cpp | cegui/src/CEGUIRenderedStringTextComponent.cpp | /***********************************************************************
filename: CEGUIRenderedStringTextComponent.cpp
created: 25/05/2009
author: Paul Turner
*************************************************************************/
/**************************************************************... | /***********************************************************************
filename: CEGUIRenderedStringTextComponent.cpp
created: 25/05/2009
author: Paul Turner
*************************************************************************/
/**************************************************************... | Fix the split alogorithm used in the text components for RenderedString (for better word-wrapping results). | Fix the split alogorithm used in the text components for RenderedString (for better word-wrapping results).
| C++ | mit | arkana-fts/cegui,arkana-fts/cegui,arkana-fts/cegui,RealityFactory/CEGUI,RealityFactory/CEGUI,cbeck88/cegui-mirror,cbeck88/cegui-mirror,arkana-fts/cegui,arkana-fts/cegui,RealityFactory/CEGUI,RealityFactory/CEGUI,cbeck88/cegui-mirror,cbeck88/cegui-mirror,cbeck88/cegui-mirror,RealityFactory/CEGUI |
5306572979ffe658cadea51eb0a28cbef3664a01 | src/mock/iostream.cxx | src/mock/iostream.cxx | /* -*- coding: utf-8; mode: c++; tab-width: 3 -*-
Copyright 2011, 2012, 2013
Raffaello D. Di Napoli
This file is part of Application-Building Components (henceforth referred to as ABC).
ABC is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by t... | /* -*- coding: utf-8; mode: c++; tab-width: 3 -*-
Copyright 2011, 2012, 2013
Raffaello D. Di Napoli
This file is part of Application-Building Components (henceforth referred to as ABC).
ABC is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by t... | Remove duplicate comments already in the header file | Remove duplicate comments already in the header file
| C++ | lgpl-2.1 | raffaellod/lofty,raffaellod/lofty |
978fddba98c952302f45a05a45040bd3afaa2ff9 | lib/dat/cursor-factory.cpp | lib/dat/cursor-factory.cpp | /* -*- c-basic-offset: 2 -*- */
/* Copyright(C) 2011 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,... | /* -*- c-basic-offset: 2 -*- */
/* Copyright(C) 2011 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,... | change to throw an exception if a given reference is invalid. | change to throw an exception if a given reference is invalid.
| C++ | lgpl-2.1 | naoa/groonga,komainu8/groonga,naoa/groonga,cosmo0920/groonga,redfigure/groonga,redfigure/groonga,myokoym/groonga,redfigure/groonga,groonga/groonga,hiroyuki-sato/groonga,hiroyuki-sato/groonga,komainu8/groonga,kenhys/groonga,hiroyuki-sato/groonga,groonga/groonga,redfigure/groonga,cosmo0920/groonga,cosmo0920/groonga,myoko... |
2421ec292eafe1cbf57ffb894e2f34298f443328 | src/core/kext/util/ListHookedDevice.cpp | src/core/kext/util/ListHookedDevice.cpp | #include <IOKit/hid/IOHIDKeys.h>
#include "ListHookedDevice.hpp"
#include "NumHeldDownKeys.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace {
void
reset(void)
{
NumHeldDownKeys::reset();
}
}
bool
HookedDevice::isIgnoreDevice(IOHIDevice* dev)
{
if (! dev) return false;
// -... | #include <IOKit/hid/IOHIDKeys.h>
#include "ListHookedDevice.hpp"
#include "NumHeldDownKeys.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace {
void
reset(void)
{
NumHeldDownKeys::reset();
}
}
bool
HookedDevice::isIgnoreDevice(IOHIDevice* dev)
{
if (! dev) return false;
// -... | add dummy example @ HookedDevice::isIgnoreDevice | add dummy example @ HookedDevice::isIgnoreDevice
| C++ | unlicense | runarbu/Karabiner,muramasa64/Karabiner,miaotaizi/Karabiner,e-gaulue/Karabiner,miaotaizi/Karabiner,muramasa64/Karabiner,chzyer-dev/Karabiner,tekezo/Karabiner,wataash/Karabiner,e-gaulue/Karabiner,chzyer-dev/Karabiner,miaotaizi/Karabiner,tekezo/Karabiner,runarbu/Karabiner,astachurski/Karabiner,astachurski/Karabiner,tekezo... |
3d35146b78174db8735f41d9b1f63369aee08d89 | src/main.cpp | src/main.cpp | #include <Arduino.h>
#include <ZumoMotors.h>
#include <Pushbutton.h>
#include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
/*
* This example uses the ZumoMotors library to follow a black line.
*/
#define LED_PIN 13
#define NUM_SENSORS 6 // number of sensors used
#define NUM_SA... | #include <Arduino.h>
#include <ZumoMotors.h>
#include <Pushbutton.h>
#include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
/*
* This example uses the ZumoMotors library to follow a black line.
* The
*/
#define LED_PIN 13
#define NUM_SENSORS 6 // number of sensors used
#defin... | Complete PID controller for line follower | Complete PID controller for line follower
| C++ | mit | ogail/zumo-line-follower |
d329ef2505542fcd137c8ac610ccd39a89a28ce2 | chrome/browser/diagnostics/diagnostics_main.cc | chrome/browser/diagnostics/diagnostics_main.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/diagnostics/diagnostics_main.h"
#include "app/app_paths.h"
#include "base/basictypes.h"
#include "base/command_line.h"
#incl... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/diagnostics/diagnostics_main.h"
#if defined(OS_POSIX)
#include <stdio.h>
#include <unistd.h>
#endif
#include "app/app_paths... | implement diagnostics mode console output. | Posix: implement diagnostics mode console output.
BUG=42894,42345
TEST=chrome --diagnostics
Review URL: http://codereview.chromium.org/2115001
git-svn-id: http://src.chromium.org/svn/trunk/src@47348 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 9e09bee2e4330c1ba5f24e1a1975cca5c2c3f80a | C++ | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
a318df5971718a4657473d0a760bb476699118f1 | chrome/browser/download/download_extensions.cc | chrome/browser/download/download_extensions.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <set>
#include <string>
#include "chrome/browser/download/download_extensions.h"
#include "base/string_util.h"
#include "net/base/mime_util... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <set>
#include <string>
#include "chrome/browser/download/download_extensions.h"
#include "base/string_util.h"
#include "net/base/mime_util... | Tweak dangerous list based on (hopefully) final round of discussions. I think we have the balance about right now. | Tweak dangerous list based on (hopefully) final round of discussions. I think
we have the balance about right now.
BUG=67577
TEST=NONE
Review URL: http://codereview.chromium.org/6035005
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@69916 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,yiti... |
9106df53c6d24d3ad3800fe6a4006b9461c9fd8b | src/main.cpp | src/main.cpp | #include "sparse_matrix.hpp" // SparseMatrix
#include "parser.hpp" // getRows, parsePuzzle
int main(int argc, char **argv) {
std::string puzzle =
"-----------0-\n"
"-----------00\n"
"----00--0000-\n"
"00000000000--\n"
"00000000000--\n"
"0000000000---\n"
"00000000-----\n"
"0000000------\... | #include "sparse_matrix.hpp" // SparseMatrix
#include "parser.hpp" // getRows, parsePuzzle
constexpr char puzzle28[] =
"-00--0000-\n"
"00--000000\n"
"00--000000\n"
"000--00000\n"
"00000--000\n"
"000000--00\n"
"000000--00\n"
"-0000--00-";
constexpr char puzzle42[] =
"-----------0-\n"
"------... | Add more hardcoded puzzles and a TODO. | Add more hardcoded puzzles and a TODO.
| C++ | mit | altayhunter/Pentomino-Puzzle-Solver,altayhunter/Pentomino-Puzzle-Solver |
4b38f232855ccbcceda710a4cb925db0bd3e04a4 | src/neural/neuron.cpp | src/neural/neuron.cpp | #include "neural/neuron.hpp"
/*
* Neuron Class implementation
*/
// Constructors
neural::Neuron::Neuron(const neural::activation_func *afunc):
m_ineuron(new NeuronData(afunc))
{
}
neural::Neuron neural::Neuron::input_neuron()
{
return Neuron(&neural::af::zero);
}
// Getters
double neural::Neuron::get_bi... | #include "neural/neuron.hpp"
/*
* Neuron Class implementation
*/
// Constructors
neural::Neuron::Neuron(const neural::activation_func *afunc):
m_ineuron(new NeuronData(afunc))
{
}
neural::Neuron neural::Neuron::input_neuron()
{
return Neuron(&neural::af::zero);
}
// Getters
double neural::Neuron::get_bi... | fix learning computation. | neural: fix learning computation.
Signed-off-by: Victor Berger <f9b08f8e7fafc600b4001b40e111bccb07507c72@m4x.org>
| C++ | mit | vberger/BrainVolve |
732c223167396aa84870cfad0d739247668c9dbf | src/main.cpp | src/main.cpp | //Includes all the headers necessary to use the most common public pieces of the ROS system.
#include <ros/ros.h>
//Use image_transport for publishing and subscribing to images in ROS
#include <image_transport/image_transport.h>
//Use cv_bridge to convert between ROS and OpenCV Image formats
#include <cv_bridge/cv_brid... | //Includes all the headers necessary to use the most common public pieces of the ROS system.
#include <ros/ros.h>
//Use image_transport for publishing and subscribing to images in ROS
#include <image_transport/image_transport.h>
//Use cv_bridge to convert between ROS and OpenCV Image formats
#include <cv_bridge/cv_brid... | Add image separation | Add image separation
| C++ | mit | grappigegovert/ROS-linerider |
0c21729b8ed145035ee8b0848b6de5b47caf30b0 | src/main.cpp | src/main.cpp | #include <iostream>
#include <string>
#include <vector>
#include <chrono>
#include "io.h"
#include "pattern_search.h"
using std::cout;
using std::string;
using std::vector;
const int cPatternMaxLength = 128;
const int cNRuns = 100;
void printUsage() {
cout
<< "Usage: PatternSearchApp path pattern\n"
<< "A... | #include <iostream>
#include <string>
#include <vector>
#include <chrono>
#include "io_utils.h"
#include "pattern_search.h"
using std::cout;
using std::string;
using std::vector;
const int cPatternMaxLength = 128;
const int cNRuns = 100;
void printUsage() {
cout
<< "Usage: PatternSearchApp path pattern\n"
... | Fix include typo | Fix include typo
| C++ | bsd-3-clause | fsrajer/eset-challenge |
cabf50bce6465b8329ee9b650c928dbea95ccef2 | src/main.cpp | src/main.cpp | #include <common.h>
#include <Parser.h>
#include <Tokenizer.h>
#include <TextLoader.h>
#include <PatternMatch.h>
#include <Configuration.h>
#include <ErrorProcessor.h>
#include <PatternsFileProcessor.h>
using namespace Lspl;
using namespace Lspl::Text;
using namespace Lspl::Parser;
using namespace Lspl::Pattern;
using... | #include <common.h>
#include <Parser.h>
#include <Tokenizer.h>
#include <TextLoader.h>
#include <PatternMatch.h>
#include <Configuration.h>
#include <ErrorProcessor.h>
#include <PatternsFileProcessor.h>
using namespace Lspl;
using namespace Lspl::Text;
using namespace Lspl::Parser;
using namespace Lspl::Pattern;
using... | print variants in main | print variants in main
| C++ | mit | al-pacino/LSPL-3,al-pacino/LSPL-2,al-pacino/LSPL-2,al-pacino/LSPL-3 |
27ac0766b6e54b7247511b53370f87429be71b96 | src/main.cpp | src/main.cpp | /*
* Copyright (C) 2015 juztamau5
*
* 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, publis... | /*
* Copyright (C) 2015 juztamau5
*
* 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, publis... | Implement main() function that forwards cmd args to go-ipfs | Implement main() function that forwards cmd args to go-ipfs
| C++ | mit | juztamau5/libipfs,juztamau5/libipfs |
2435f0510c86cff25455b5d3b59f82dcbfb25981 | src/main.cpp | src/main.cpp | #include <fstream>
#include "vec3.h"
using namespace std;
int main()
{
int nx = 200;
int ny = 100;
ofstream myfile;
myfile.open ("image.ppm");
myfile << "P3\n" << nx << " " << ny << "\n255\n";
for (int j = ny-1; j >= 0 ; j--) {
for (int i = 0; i < nx; i++) {
float r = float(i) / float(nx);
... | #include <fstream>
#include "vec3.h"
using namespace std;
int main()
{
int nx = 200;
int ny = 100;
ofstream myfile;
myfile.open ("image.ppm");
myfile << "P3\n" << nx << " " << ny << "\n255\n";
for (int j = ny-1; j >= 0 ; j--) {
for (int i = 0; i < nx; i++) {
vec3 col(float(i) / float(nx), float... | Update main to use vector | Update main to use vector
| C++ | mit | corragon/cpp-raytracer |
e55763d72e42b44d7f6ab16f5259ecabc26fd950 | src/main.cpp | src/main.cpp | #include <iostream>
#include <thread>
#include <time.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "../sdk/stb/stb_image_write.h"
// おおよそ30秒毎に、レンダリングの途中経過をbmpかpngで連番(000.png, 001.png, ...) で出力してください。
// 4分33秒以内に自動で終了してください。
#define WIDTH 256
#define HEIGHT 256
#define OUTPUT_INTERVAL 30
#define F... | #include <iostream>
#include <thread>
#include <time.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "../sdk/stb/stb_image_write.h"
// おおよそ30秒毎に、レンダリングの途中経過をbmpかpngで連番(000.png, 001.png, ...) で出力してください。
// 4分33秒以内に自動で終了してください。
#define WIDTH 256
#define HEIGHT 256
#define OUTPUT_INTERVAL 30
#define F... | Update main.cpp | Update main.cpp | C++ | mit | imagirelab/raytracingcamp5,imagirelab/raytracingcamp5,imagirelab/raytracingcamp5 |
f17fea0a83defa931681483de6877bd8e58a7707 | src/pass/place_device.cc | src/pass/place_device.cc | /*!
* Copyright (c) 2016 by Contributors
* \file place_device.cc
* \brief Inference the device of each operator given known information.
* Insert a copy node automatically when there is a cross device.
*/
#include <nnvm/pass.h>
#include <nnvm/op_attr_types.h>
#include <nnvm/graph_attr_types.h>
namespace nnvm {
... | /*!
* Copyright (c) 2016 by Contributors
* \file place_device.cc
* \brief Inference the device of each operator given known information.
* Insert a copy node automatically when there is a cross device.
*/
#include <nnvm/pass.h>
#include <nnvm/op_attr_types.h>
#include <nnvm/graph_attr_types.h>
namespace nnvm {
... | Make placedevice compatible with backward op (#88) | [PASS] Make placedevice compatible with backward op (#88)
| C++ | apache-2.0 | ZihengJiang/nnvm,jermainewang/nnvm,piiswrong/nnvm,ZihengJiang/nnvm,ZihengJiang/nnvm,piiswrong/nnvm,imai-lm/nnvm,jermainewang/nnvm,imai-lm/nnvm,jermainewang/nnvm,imai-lm/nnvm,piiswrong/nnvm |
d6358bb2382ebe706f5fbf82a0bd4124737d2a29 | src/main.cpp | src/main.cpp | //#include <windows.h>
#include <iostream>
#include "global.h"
#include "Map.h"
#include "Character.h"
using namespace std;
void menu();
void game();
int text(void *);
void options();
void about();
void gamePaused();
void loadImages();
void releaseImages();
int callcontrol(void *);
int callAction... | //#include <windows.h>
#include <iostream>
#include "global.h"
#include "Map.h"
#include "Character.h"
using namespace std;
void menu();
void game();
int text(void *);
void options();
void about();
void gamePaused();
void loadImages();
void releaseImages();
int callcontrol(void *);
int callAction... | Refactor menu and options | Refactor menu and options
| C++ | mit | belinhacbr/Bomberman |
f69b4de8352fb64be3bd8997bd0cf9f69e0490ce | tree/treeplayer/test/dataframe/dataframe_snapshot.cxx | tree/treeplayer/test/dataframe/dataframe_snapshot.cxx | #include "ROOT/TDataFrame.hxx"
#include "ROOT/TSeq.hxx"
#include "TFile.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TTree.h"
#include "gtest/gtest.h"
#include <limits>
#include <memory>
using namespace ROOT::Experimental; // TDataFrame
using namespace ROOT::Experimental::TDF; // TInterface
using namespace... | #include "ROOT/TDataFrame.hxx"
#include "ROOT/TSeq.hxx"
#include "TFile.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TTree.h"
#include "gtest/gtest.h"
#include <limits>
#include <memory>
using namespace ROOT::Experimental; // TDataFrame
using namespace ROOT::Experimental::TDF; // TInterface
using namespace... | Add test for Snapshotting of branches with custom titles | [TDF] Add test for Snapshotting of branches with custom titles
| C++ | lgpl-2.1 | olifre/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,karies/root,karies/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,karies/root,karies/root,olifre/root,olifre/root,root-mirror/root,olifre/root,root-mirr... |
fa8bf8ff214ecfb6fec28d39a47be74e5fcc00a6 | src/passes/Directize.cpp | src/passes/Directize.cpp | /*
* Copyright 2019 WebAssembly Community Group participants
*
* 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... | /*
* Copyright 2019 WebAssembly Community Group participants
*
* 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... | Remove forgotten call_ref-related logic in Directize. NFC (#4233) | Remove forgotten call_ref-related logic in Directize. NFC (#4233)
We moved call_ref out of there, but it was still checking for the possible
presence of call_refs (using the feature), which means that even if we had
no valid tables to optimize on, we'd scan the whole module. | C++ | apache-2.0 | WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen,WebAssembly/binaryen |
09de6999d368ee952da3cb4f3aa122cb198f4bda | tutorial/lesson_06_realizing_over_shifted_domains.cpp | tutorial/lesson_06_realizing_over_shifted_domains.cpp | // Halide tutorial lesson 6.
// This lesson demonstrates how to evaluate a Func over a domain that
// does not start at (0, 0).
// This lesson can be built by invoking the command:
// make tutorial_lesson_06_realizing_over_shifted_domains
// in a shell with the current directory at the top of the halide source tre... | // Halide tutorial lesson 6.
// This lesson demonstrates how to evaluate a Func over a domain that
// does not start at (0, 0).
// This lesson can be built by invoking the command:
// make tutorial_lesson_06_realizing_over_shifted_domains
// in a shell with the current directory at the top of the halide source tre... | Update lesson_06_realizing_over_shifted_domains.cpp | Update lesson_06_realizing_over_shifted_domains.cpp
Fix compile command on linux
Former-commit-id: 768e804335650bb9232fa5afd749ae8aa7d10548 | C++ | mit | darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide |
9317620dcadfd953a6c2f0f06ea9903603da2047 | examples/fft_verify.cpp | examples/fft_verify.cpp | #include <vexcl/vexcl.hpp>
#include <vexcl/fft.hpp>
#include <random>
#include <fftw3.h>
using namespace vex;
float hsum(cl_float2 a) { return a.s[0] + a.s[1]; }
#include <random>
std::vector<cl_float2> random_vec(size_t n, float range) {
std::vector<cl_float2> data(n);
std::default_random_engine gen;
... | #include <vexcl/vexcl.hpp>
#include <vexcl/fft.hpp>
#include <random>
#include <fftw3.h>
using namespace vex;
typedef double T;
typedef cl_vector_of<T, 2>::type T2;
std::vector<cl_double2> random_vec(size_t n) {
std::vector<cl_double2> data(n);
for(size_t i = 0 ; i < n ; i++) {
data[i].s[0] = 1.0 * r... | Verify float/double CLFFT against double FFTw | Verify float/double CLFFT against double FFTw
| C++ | mit | Poulpy21/vexcl,kapadia/vexcl,kapadia/vexcl,ddemidov/vexcl,Poulpy21/vexcl,ddemidov/vexcl,Poulpy21/vexcl |
895af0ad492132de063db8c9e8e0684f452986c0 | src/plang/Redirector.cpp | src/plang/Redirector.cpp | //
// Copyright (C) 2011 Mateusz Loskot <mateusz@loskot.net>
// 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)
//
// Blog article: http://mateusz.loskot.net/?p=2819
#include <pdal/pdal_internal.hpp>
#ifdef PDAL_HA... | //
// Copyright (C) 2011 Mateusz Loskot <mateusz@loskot.net>
// 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)
//
// Blog article: http://mateusz.loskot.net/?p=2819
#include <pdal/pdal_internal.hpp>
#ifdef PDAL_HA... | clean up some const_cast'able warnings | clean up some const_cast'able warnings
| C++ | bsd-3-clause | Sciumo/PDAL,verma/PDAL,lucadelu/PDAL,mtCarto/PDAL,mtCarto/PDAL,DougFirErickson/PDAL,jwomeara/PDAL,boundlessgeo/PDAL,DougFirErickson/PDAL,lucadelu/PDAL,radiantbluetechnologies/PDAL,mpgerlek/PDAL-old,radiantbluetechnologies/PDAL,mpgerlek/PDAL-old,DougFirErickson/PDAL,boundlessgeo/PDAL,Sciumo/PDAL,verma/PDAL,DougFirEricks... |
c40b62f9066bedffcbcc17b2203524a15719a9ab | src/platformer/world.cpp | src/platformer/world.cpp | #include "world.h"
#include "animation.h"
#include "background.h"
#include "camera.h"
#include "util/bitmap.h"
#include "util/debug.h"
#include "util/file-system.h"
#include "util/load_exception.h"
#include "util/token.h"
#include "util/tokenreader.h"
using namespace std;
using namespace Platformer;
World::World(co... | #include "world.h"
#include "animation.h"
#include "background.h"
#include "camera.h"
#include "util/bitmap.h"
#include "util/debug.h"
#include "util/file-system.h"
#include "util/load_exception.h"
#include "util/token.h"
#include "util/tokenreader.h"
using namespace std;
using namespace Platformer;
World::World(co... | Remove space from out text. | Remove space from out text.
git-svn-id: 39e099a8ed5324aded674b764a67f7a08796d9a7@5235 662fdd30-d327-0410-a531-f549c87e1e9e
| C++ | bsd-3-clause | boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown |
ac5e8685a779014a23dd7f0f52cf10b6bdd44e29 | examples/subscriber.cpp | examples/subscriber.cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Tavendo GmbH
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documenta... | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Tavendo GmbH
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documenta... | Fix invalid type conversion in publish example | Fix invalid type conversion in publish example
The publish example was not working correctly because
the the subscriber was trying to receive the event
argument as an integer instead of a as a string.
Resolves: #64 #80
| C++ | apache-2.0 | tavendo/AutobahnCpp,tavendo/AutobahnCpp |
9398575340f944fa35436193174a01ea1ac7b41b | src/main.cpp | src/main.cpp | #include <iostream>
#include "TestFramework/TestFramework.h"
#include "Tests/TestExample.h"
#include "Tests/PulseMessageWrapper/TestPulseMessageWrapper.h"
#include "Tests/HeightMeasurementStatemachine/TestHeightMeasurementStatemachine.h"
#include "TestFramework/TestSuite.h"
<<<<<<< HEAD
#include "LightSystemTest.h"
===... | #include <iostream>
#include "TestFramework/TestFramework.h"
#include "Tests/TestExample.h"
#include "Tests/PulseMessageWrapper/TestPulseMessageWrapper.h"
#include "Tests/HeightMeasurementStatemachine/TestHeightMeasurementStatemachine.h"
#include "TestFramework/TestSuite.h"
#include "LightSystemTest.h"
#include "Tests/... | Fix stray merge headers | Fix stray merge headers
| C++ | mit | ReneHerthel/ConveyorBelt,ReneHerthel/ConveyorBelt |
82c2b5896821ba6d2b1c3c988f7175c4d6e52609 | src/feeders/routeFeeder/routeFeeder.cpp | src/feeders/routeFeeder/routeFeeder.cpp | #include <stdio.h>
#include <sysexits.h> // portablish exit values.
#include <stdlib.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <string.h>
#include <assert.h>
#include <string>
#include <client.h> // we are a c... | #include <stdio.h>
#include <sysexits.h> // portablish exit values.
#include <stdlib.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <string.h>
#include <assert.h>
#include <string>
#include <client.h> // we are a c... | Make sure the Messages are still around by the time the sendMessage threads wakes up and sends the messages. The non-blocking nature of sendMessage() should be documented. Also, maybe we should add a blocking version (or Client setting). | Make sure the Messages are still around by the time the sendMessage threads wakes up and sends the messages. The non-blocking nature of sendMessage() should be documented. Also, maybe we should add a blocking version (or Client setting).
| C++ | agpl-3.0 | akbardotinfo/watcher-visualization,akbardotinfo/watcher-visualization,akbardotinfo/watcher-visualization,akbardotinfo/watcher-visualization,akbardotinfo/watcher-visualization |
8746ab178fdad9e0f44f7330084e29432b57143e | PWG4/macros/ConfigAnalysisGammaDirect.C | PWG4/macros/ConfigAnalysisGammaDirect.C | /* $Id: $ */
/* $Log$ */
//------------------------------------
// Configuration macro example:
//
// Do prompt photon analysis with ESDs
// Gamma in PHOS,
// for EMCAL, PHOS by EMCAL where necessary
//
// Author : Gustavo Conesa Balbastre (INFN-LNF)
//------------------------------------
AliAnaMaker* ConfigAnalysi... | /* $Id:$ */
//------------------------------------
// Configuration macro example:
//
// Do prompt photon analysis with ESDs
// Gamma in PHOS,
// for EMCAL, PHOS by EMCAL where necessary
//
// Author : Gustavo Conesa Balbastre (INFN-LNF)
//------------------------------------
AliAnaMaker* ConfigAnalysis()
{
//
... | correct typo | correct typo
| C++ | bsd-3-clause | miranov25/AliRoot,ecalvovi/AliRoot,ecalvovi/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,shahor02/AliRoot,coppedis/AliRoot,ALICEHLT/AliRoot,coppedis/AliRoot,shahor02/AliRoot,coppedis/AliRoot,miranov25/AliRoot,alisw/AliRoot,mkrzewic/AliRoot,ALICEHLT/AliRoot,ALICEHLT/AliRoot... |
1263fc8d764f412c3cb35f1d546706e14474b9bc | src/proxy_handler.cxx | src/proxy_handler.cxx | /*
* Serve HTTP requests from another HTTP/AJP server.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "handler.hxx"
#include "bp_connection.hxx"
#include "bp_instance.hxx"
#include "request.hxx"
#include "request_forward.hxx"
#include "http_server/Request.hxx"
#include "http_cache.hxx"
#include "http_respo... | /*
* Serve HTTP requests from another HTTP/AJP server.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "handler.hxx"
#include "bp_connection.hxx"
#include "bp_instance.hxx"
#include "request.hxx"
#include "request_forward.hxx"
#include "ResourceLoader.hxx"
#include "http_server/Request.hxx"
#include "http_r... | use ResourceLoader | proxy_handler: use ResourceLoader | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
b27b567e40165a9a9f09d85e39ebd4ff5a4e4cdc | src/qt/marketbrowser.cpp | src/qt/marketbrowser.cpp | #include "marketbrowser.h"
#include "ui_marketbrowser.h"
#include "main.h"
#include "wallet.h"
#include "base58.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include <QDesktopServices>
#include <sstream>
#include <string>
using namespace json_spirit;
const QString kBaseUrl = "https://bzlcoin.org... | #include "marketbrowser.h"
#include "ui_marketbrowser.h"
#include "main.h"
#include "wallet.h"
#include "base58.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include <QDesktopServices>
#include <sstream>
#include <string>
using namespace json_spirit;
const QString kBaseUrl = "https://bzlcoin.org... | Update marketbrowser.cpp | Update marketbrowser.cpp | C++ | mit | bzlcoin/bzlcoin,bzlcoin/bzlcoin,bzlcoin/bzlcoin,bzlcoin/bzlcoin,bzlcoin/bzlcoin |
2ceac627c5430727110b91495369bd71dabc73be | src/qt/optionsdialog.cpp | src/qt/optionsdialog.cpp | #include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "netbase.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "optionsmodel.h"
#include "qt/decoration.h"
#include "init.h"
#include "miner.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
Options... | #include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "netbase.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "optionsmodel.h"
#include "qt/decoration.h"
#include "init.h"
#include "miner.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
#include... | Disable close confirmation windows on macOS. | Disable close confirmation windows on macOS.
| C++ | mit | caraka/gridcoinresearch,gridcoin/Gridcoin-Research,gridcoin/Gridcoin-Research,caraka/gridcoinresearch,gridcoin/Gridcoin-Research,caraka/gridcoinresearch,caraka/gridcoinresearch,gridcoin/Gridcoin-Research,caraka/gridcoinresearch,gridcoin/Gridcoin-Research,gridcoin/Gridcoin-Research,caraka/gridcoinresearch |
884c4c9e65ea98d8a033c23ebe24945c6eab2991 | src/qt/miningpage.cpp | src/qt/miningpage.cpp | #include "miningpage.h"
#include "ui_miningpage.h"
MiningPage::MiningPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::MiningPage)
{
ui->setupUi(this);
setFixedSize(400, 420);
minerActive = false;
minerProcess = new QProcess(this);
minerProcess->setProcessChannelMode(QProcess::MergedCh... | #include "miningpage.h"
#include "ui_miningpage.h"
MiningPage::MiningPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::MiningPage)
{
ui->setupUi(this);
setFixedSize(400, 420);
minerActive = false;
minerProcess = new QProcess(this);
minerProcess->setProcessChannelMode(QProcess::MergedCh... | Fix minerd filepath to work on windows. | Fix minerd filepath to work on windows.
| C++ | mit | SmeltFool/Wonker,Peer3/homework,djtms/ltc,GeekBrony/ponycoin-old,Peer3/homework,SmeltFool/Wonker,coinkeeper/2015-06-22_18-42_litecoin,djtms/ltc,SmeltFool/Wonker,SmeltFool/Yippe-Hippe,AsteraCoin/AsteraCoin,coblee/litecoin-old,coblee/litecoin-old,tatafiore/mycoin,coblee/litecoin-old,SmeltFool/Yippe-Hippe,SmeltFool/Yippe-... |
0c1912527f743a97e7fbdf4eca9148edb538afd6 | src/qt/styleSheet.cpp | src/qt/styleSheet.cpp | #include <qt/styleSheet.h>
#include <QFile>
#include <QWidget>
#include <QApplication>
#include <QStyleFactory>
#include <QProxyStyle>
#include <QListView>
#include <QComboBox>
#include <QMessageBox>
#include <QPushButton>
#include <QPainter>
#include <QLineEdit>
#include <QtGlobal>
#include <QSettings>
static const ... | #include <qt/styleSheet.h>
#include <QFile>
#include <QWidget>
#include <QApplication>
#include <QStyleFactory>
#include <QProxyStyle>
#include <QListView>
#include <QComboBox>
#include <QMessageBox>
#include <QPushButton>
#include <QPainter>
#include <QLineEdit>
#include <QtGlobal>
#include <QSettings>
static const ... | Change the default theme to light blue | Change the default theme to light blue
| C++ | mit | qtumproject/qtum,qtumproject/qtum,qtumproject/qtum,qtumproject/qtum,qtumproject/qtum,qtumproject/qtum,qtumproject/qtum |
d4cc20d13bb839f4305c70e1db971a8f5a6f1f68 | src/rl/mdl/Spherical.cpp | src/rl/mdl/Spherical.cpp | //
// Copyright (c) 2009, Markus Rickert
// 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 condit... | //
// Copyright (c) 2009, Markus Rickert
// 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 condit... | Check for zero quaternion in Joint::normalize() | Check for zero quaternion in Joint::normalize()
| C++ | bsd-2-clause | roboticslibrary/rl |
b99701b002b6825a032a0adf684ee5b0e85c5e3f | src/runner/at-handler.hh | src/runner/at-handler.hh | /*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef RUNNER_AT_HANDLER_HH
#def... | /*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef RUNNER_AT_HANDLER_HH
#def... | Comment changes. | Comment changes.
| C++ | bsd-3-clause | aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi |
ec8cfa52cbf0d1f0b3799ef0bb1a6feac4b677b7 | src/mesh.cpp | src/mesh.cpp | #include "./mesh.h"
#include <QDebug>
#include <string>
#include "./gl.h"
Mesh::Mesh(Gl *gl, aiMesh *mesh, aiMaterial *material)
: gl(gl), shaderProgram(gl, ":shader/phong.vert", ":shader/phong.frag")
{
for (unsigned int i = 0; i < material->mNumProperties; ++i)
{
auto property = material->mProperties[i];
... | #include "./mesh.h"
#include <QDebug>
#include <string>
#include "./gl.h"
Mesh::Mesh(Gl *gl, aiMesh *mesh, aiMaterial *material)
: gl(gl), shaderProgram(gl, ":shader/phong.vert", ":shader/phong.frag")
{
/*
for (unsigned int i = 0; i < material->mNumProperties; ++i)
{
auto property = material->mProperties[i... | Disable debug output for materials. | Disable debug output for materials.
| C++ | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
cfce09877082664f856a9fef267be06b45077b99 | src/script/script.cpp | src/script/script.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// File contains modifications by: The Gulden developers
// All modifications:
... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// File contains modifications by: The Gulden developers
// All modifications:
... | Resolve a minor fixme | QA: Resolve a minor fixme
| C++ | mit | nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official |
84e33cfc841f7f97f49fb1485cb64a6d8dd0a133 | src/script/script.cpp | src/script/script.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script.h"
#include "tinyformat.h"
#include "utilstrencodings.h"
using... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script.h"
#include "tinyformat.h"
#include "utilstrencodings.h"
using... | Format script.cpp | Format script.cpp
| C++ | mit | cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,ftrader-bitcoinabc/bitcoin-abc,cculianu/bitcoin-abc,ftrader-bitcoinabc/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,ftrader-bitcoinabc/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,cculianu/bitcoin-abc,cculianu/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,ftrader-bitcoinabc/bitcoin-abc,Bitcoin-ABC/bitc... |
9b35d7cb015fe3154c4aa11dc63ffc7eb6937e5f | src/ninja.cc | src/ninja.cc | #include "ninja.h"
#include <getopt.h>
#include <limits.h>
#include <stdio.h>
#include "build.h"
#include "build_log.h"
#include "parsers.h"
#include "graphviz.h"
// Import browse.py as binary data.
asm(
".data\n"
"browse_data_begin:\n"
".incbin \"src/browse.py\"\n"
"browse_data_end:\n"
);
// Declare the symbols de... | #include "ninja.h"
#include <getopt.h>
#include <limits.h>
#include <stdio.h>
#include "build.h"
#include "build_log.h"
#include "parsers.h"
#include "graphviz.h"
// Import browse.py as binary data.
asm(
".data\n"
"browse_data_begin:\n"
".incbin \"src/browse.py\"\n"
"browse_data_end:\n"
);
// Declare the symbols de... | refactor main | refactor main
| C++ | apache-2.0 | ignatenkobrain/ninja,nico/ninja,metti/ninja,bradking/ninja,ukai/ninja,PetrWolf/ninja,synaptek/ninja,tychoish/ninja,sorbits/ninja,mgaunard/ninja,metti/ninja,pcc/ninja,sxlin/dist_ninja,glensc/ninja,mohamed/ninja,pcc/ninja,jhanssen/ninja,guiquanz/ninja,autopulated/ninja,tfarina/ninja,jsternberg/ninja,sgraham/ninja,maximus... |
a24b2bfb9051318f6dec3c54eba4972d09817e1c | DataFactory.cpp | DataFactory.cpp | #include "DataFactory.h"
// Must defined corresponding static members ...
/*
DataFactory * DataFactory::_instance = NULL;
*/
std::map<DataType,CreatorBase<AbstractData>*>
DataFactory::_map = std::map<DataType,CreatorBase<AbstractData>*>();
UserDataType::UserDataType(){
a="";
};
UserDataType::UserDataType(std::s... | #include "DataFactory.h"
// Must defined corresponding static members ...
/*
DataFactory * DataFactory::_instance = NULL;
*/
std::map<DataType,CreatorBase<AbstractData>*>
DataFactory::_map = std::map<DataType,CreatorBase<AbstractData>*>();
UserDataType::UserDataType(){
a="";
};
UserDataType::UserDataType(const ... | fix missing ctor | fix missing ctor | C++ | mit | tryingsomestuff/pilot,tryingsomestuff/pilot |
57d11153188dbe2a0b8f97baffcebcec5b4614fb | test/testbench.cpp | test/testbench.cpp | /* ------------------------------------------------------------------------------
* MIT License
*
* Copyright (c) 2017 Yann Herklotz Grave
*
* 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 Soft... | /* ------------------------------------------------------------------------------
* MIT License
*
* Copyright (c) 2017 Yann Herklotz Grave
*
* 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 Soft... | Update testbench.cpp | Update testbench.cpp | C++ | mit | ymherklotz/YAGE,ymherklotz/YAGE,ymherklotz/YAGE |
0653da2f9fd76d33cc8b9023748ea77a5a1326f4 | src/test.cpp | src/test.cpp | #include "lex_config.h"
#include "test.h"
#include "token.h"
#include "symseg.h"
#include "lex.h"
#ifdef TEST_ON
/*
* Simple Test Framework
*/
#define EXPECT_EQ_BASE(equality,expect,actual,format) \
do { \
test_count++; \
if (equality){ \
test_pass++;\
}else{ \
main_ret = 1; \
fprint... | #include "lex_config.h"
#include "test.h"
#include "token.h"
#include "symseg.h"
#include "lex.h"
/*
* Simple Test Framework
*/
#define EXPECT_EQ_BASE(equality,expect,actual,format) \
do { \
test_count++; \
if (equality){ \
test_pass++;\
}else{ \
main_ret = 1; \
fprintf(stderr,"%s:%... | remove a macro | remove a macro
| C++ | mit | Jameeeees/LambCompiler,Jameeeees/LambCompiler,Jameeeees/LambCompiler |
b4446b1cc570b12607681f7b17e7b79700f917fc | src/test.cpp | src/test.cpp | #include <libunittest/all.hpp>
#include "transwarp.h"
#include <fstream>
using transwarp::make_task;
COLLECTION(test_transwarp) {
void make_test_one_task(std::size_t threads) {
const int value = 42;
auto f1 = [value]{ return value; };
auto task = make_task(f1);
task->finalize();
task->set_paral... | #include <libunittest/all.hpp>
#include "transwarp.h"
using transwarp::make_task;
COLLECTION(test_transwarp) {
void make_test_one_task(std::size_t threads) {
const int value = 42;
auto f1 = [value]{ return value; };
auto task = make_task(f1);
task->finalize();
task->set_parallel(threads);
A... | remove unused header | remove unused header | C++ | mit | bloomen/transwarp,bloomen/transwarp,bloomen/transwarp |
c1de51ba8439ae00ba01665f361691ada39e3946 | src/util.cpp | src/util.cpp |
#include <fstream>
#ifdef PLATFORM_WINDOWS
#include <windows.h>
#include <Winerror.h>
#include <shlobj.h>
#elif defined(PLATFORM_OSX)
#include <mach-o/dyld.h>
#else
#include <unistd.h>
#include <linux/limits.h>
#endif
#include "util.hpp"
#include "config.hpp"
void replace_substr(std::string &tagetStr, const std::s... |
#include <fstream>
#include "config.hpp"
#if defined(PLATFORM_WINDOWS)
#include <windows.h>
#include <Winerror.h>
#include <shlobj.h>
#elif defined(PLATFORM_OSX)
#include <mach-o/dyld.h>
#else
#include <unistd.h>
#include <linux/limits.h>
#endif
#include "util.hpp"
#include "config.hpp"
void replace_substr(std::st... | Fix preprocessor issues. | Fix preprocessor issues.
| C++ | bsd-2-clause | mdsitton/atlas-test,mdsitton/atlas-test |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.