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 |
|---|---|---|---|---|---|---|---|---|---|
5a2dc432b1ee3bab1d47306d84acef4ad32b2f2a | src/assert.cpp | src/assert.cpp | /*
Copyright (c) 2007-2015, 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-2015, 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 ... | remove windows version from code file | remove windows version from code file
because it should be in the build files
| C++ | bsd-3-clause | jpetso/libtorrent,jpetso/libtorrent,jpetso/libtorrent,jpetso/libtorrent |
2b338b71c09f971b55114d8d4d553be63c513486 | include/s2s/decode.hpp | include/s2s/decode.hpp | #include "dynet/nodes.h"
#include "dynet/exec.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
#include "dynet/rnn.h"
#include "dynet/gru.h"
#include "dynet/lstm.h"
#include "dynet/fast-lstm.h"
#include "dynet/dict.h"
#include "dynet/expr.h"
#include <iostream>
#include <fstream>
#incl... | #include "dynet/nodes.h"
#include "dynet/exec.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
#include "dynet/rnn.h"
#include "dynet/gru.h"
#include "dynet/lstm.h"
#include "dynet/fast-lstm.h"
#include "dynet/dict.h"
#include "dynet/expr.h"
#include <iostream>
#include <fstream>
#incl... | include bug fixed. | include bug fixed.
| C++ | mit | kamigaito/seq2seq-baseline-dynet,kamigaito/seq2seq-baseline-dynet |
2b974df956116b37f9774fc477a7c522448717e6 | src/ast/loc.hh | src/ast/loc.hh | /*
* Copyright (C) 2007-2011, 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.
*/
/**
** \file ast/loc.hh
*... | /*
* Copyright (C) 2007-2012, 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.
*/
/**
** \file ast/loc.hh
*... | remove gratuitous dependency. | remove gratuitous dependency.
* src/ast/loc.hh: here.
| C++ | bsd-3-clause | urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi |
52730422d16e987776866a0cc319012695213956 | src/lunar_shared_type.cpp | src/lunar_shared_type.cpp | #include "lunar_shared_type.hpp"
namespace lunar {
extern "C" {
/*
* memory layout of shared type:
* +--------------------------------------+ <- malloc and free here
* | reference count |
* | (64 bits) |
* +--------------------------------------+ <- make_shared_ty... | #include "lunar_shared_type.hpp"
#include <stdint.h>
namespace lunar {
extern "C" {
/*
* memory layout of shared type:
* +--------------------------------------+ <- malloc and free here
* | reference count |
* | (64 bits) |
* +------------------------------------... | fix for Linux | fix for Linux
| C++ | bsd-3-clause | ytakano/tsukuyomi,ytakano/tsukuyomi |
674c0e2fa0bfb1eed7ba12b3e773160e191e0f97 | src/base64.cpp | src/base64.cpp | /*
* Copyright (c) 1996 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | /*
* Copyright (c) 1996 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | Fix portability issue with base64 decoder | Fix portability issue with base64 decoder
| C++ | bsd-2-clause | SerialKeyManager/SKM-Client-API-CPP,SerialKeyManager/SKM-Client-API-CPP |
caf397aa886de9e86836632df2f776899006f817 | src/nixsection.cc | src/nixsection.cc | #include "nixsection.h"
#include "mex.h"
#include <nix.hpp>
#include "nixgen.h"
#include "handle.h"
#include "arguments.h"
#include "struct.h"
#include "nix2mx.h"
namespace nixsection {
static mxArray* array_from_value(nix::Value v)
{
mxArray *res;
nix::DataType dtype = v.type();
switch (dtype) {
... | #include "nixsection.h"
#include "mex.h"
#include <nix.hpp>
#include "nixgen.h"
#include "handle.h"
#include "arguments.h"
#include "struct.h"
#include "nix2mx.h"
namespace nixsection {
static mxArray* array_from_value(nix::Value v)
{
mxArray *res;
nix::DataType dtype = v.type();
switch (dtype) {
... | fix value array size | nixsection: fix value array size
Used section's size not value's
| C++ | bsd-3-clause | mpsonntag/nix-mx,mpsonntag/nix-mx |
1aeb85c65cd1240b99ca3764821266c2f0187cc4 | src/node-midi.cpp | src/node-midi.cpp | #include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
#include <queue>
#include <uv.h>
#include "lib/RtMidi/RtMidi.h"
#include "lib/RtMidi/RtMidi.cpp"
using namespace node;
class NodeMidiOutput : ObjectWrap
{
private:
RtMidiOut* out;
public:
static v8::Persistent<v8::FunctionTemplate> s_ct;
sta... | #include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
#include <queue>
#include <uv.h>
#include "lib/RtMidi/RtMidi.h"
#include "lib/RtMidi/RtMidi.cpp"
using namespace node;
class NodeMidiOutput : ObjectWrap
{
private:
RtMidiOut* out;
public:
static v8::Persistent<v8::FunctionTemplate> s_ct;
sta... | check port number before trying to open | check port number before trying to open
Conflicts:
src/node-midi.cpp
| C++ | mit | szymonkaliski/node-midi,drewish/node-midi,Cycling74/node-midi,szymonkaliski/node-midi,drewish/node-midi,justinlatimer/node-midi,Cycling74/node-midi,Cycling74/node-midi,drewish/node-midi,julianduque/node-midi,szymonkaliski/node-midi,drewish/node-midi,justinlatimer/node-midi,brandly/node-midi,julianduque/node-midi,julian... |
a9bddf581b98ac0041e05529726e2016b33e4f45 | include/wtl/string.hpp | include/wtl/string.hpp | #pragma once
#ifndef WTL_STRING_HPP_
#define WTL_STRING_HPP_
#include <string>
#include <vector>
namespace wtl {
template <class T> inline T
sto(const std::string& s) {return s;}
template <> inline const char*
sto(const std::string& s) {return s.c_str();}
template <> inline bool
sto<bool>(const std::string&) {retu... | #pragma once
#ifndef WTL_STRING_HPP_
#define WTL_STRING_HPP_
#include <string>
#include <vector>
namespace wtl {
template <class T> inline T
sto(const std::string& s) {return s;}
template <> inline const char*
sto(const std::string& s) {return s.c_str();}
template <> inline bool
sto<bool>(const std::string&) {retu... | Rename and refactor replace() in string.hpp | :boom: Rename and refactor replace() in string.hpp
| C++ | mit | heavywatal/cxxwtils |
bda8a2ad95ff26ef4b9b1844272a6907464c9a94 | src/ntpclient.cpp | src/ntpclient.cpp | // Copyright (c) 2018 alex v
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "ntpclient.h"
#include "random.h"
#include "timedata.h"
#include "util.h"
using namespace boost;
using namespace boost::asio;
int64_t CNtpCl... | // Copyright (c) 2018 alex v
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "ntpclient.h"
#include "random.h"
#include "timedata.h"
#include "util.h"
using namespace boost;
using namespace boost::asio;
int64_t CNtpCl... | Rewrite logic | Rewrite logic | C++ | mit | navcoindev/navcoin-core,navcoindev/navcoin-core,navcoindev/navcoin-core,navcoindev/navcoin-core,navcoindev/navcoin-core,navcoindev/navcoin-core |
6193600cd4f68ec9bdcfe2a5e22dc9c9b1eb5f8c | src/binding.cc | src/binding.cc | #include <math.h>
#include <sstream>
#include <string>
#include "nan.h"
#include "point.h"
#include "hunk.h"
#include "patch.h"
using namespace v8;
static Nan::Persistent<String> row_string;
static Nan::Persistent<String> column_string;
static Nan::Maybe<Point> PointFromJS(Nan::MaybeLocal<Object> maybe_object) {
L... | #include <cmath>
#include <sstream>
#include <string>
#include "nan.h"
#include "point.h"
#include "hunk.h"
#include "patch.h"
using namespace v8;
static Nan::Persistent<String> row_string;
static Nan::Persistent<String> column_string;
static Nan::Maybe<Point> PointFromJS(Nan::MaybeLocal<Object> maybe_object) {
Lo... | Fix compiler errors on travis | Fix compiler errors on travis
| C++ | mit | atom/atom-patch,atom/superstring,atom/superstring,atom/superstring,atom/superstring,atom/atom-patch,atom/atom-patch,atom/superstring,atom/atom-patch,nathansobo/atom-patch |
ddde3819d664a986e3c530e08f0c29e5c7c2bfa9 | scene/gui/texture_rect.cpp | scene/gui/texture_rect.cpp | /*************************************************************************/
/* texture_rect.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | /*************************************************************************/
/* texture_rect.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | Fix TextureRect::flip_* when used with atlas texture | Fix TextureRect::flip_* when used with atlas texture
Fix #37526
(cherry picked from commit fb2d2dd5d01f7f695728658b2f3e8af89bf992d9)
| C++ | mit | ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot |
d90458a933dadee3a9802b115d8541ff8ff3aee9 | src/osd/OSDMap.cc | src/osd/OSDMap.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... | set type 0 to 'osd' | osdmap: set type 0 to 'osd'
Signed-off-by: Sage Weil <6dd34506bbd5e58221bbb3e4732d97c91f02277b@newdream.net>
| C++ | lgpl-2.1 | ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph |
9e223c3ab59cab896e7d7993b47a12e5fed6eb4c | src/metric/map_metric.hpp | src/metric/map_metric.hpp | #ifndef LIGHTGBM_METRIC_MAP_METRIC_HPP_
#define LIGHTGBM_METRIC_MAP_METRIC_HPP_
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/metric.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <sstream>
#include <vector>
namespace LightGBM {
class MapMetric:public Metric {
publi... | #ifndef LIGHTGBM_METRIC_MAP_METRIC_HPP_
#define LIGHTGBM_METRIC_MAP_METRIC_HPP_
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/metric.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <sstream>
#include <vector>
namespace LightGBM {
class MapMetric:public Metric {
publi... | remove a unused variable. | remove a unused variable. | C++ | mit | microsoft/LightGBM,henry0312/LightGBM,microsoft/LightGBM,Laurae2/LightGBM,microsoft/LightGBM,henry0312/LightGBM,henry0312/LightGBM,henry0312/LightGBM,microsoft/LightGBM,microsoft/LightGBM,Laurae2/LightGBM,henry0312/LightGBM,Laurae2/LightGBM,Laurae2/LightGBM,Laurae2/LightGBM |
b4568a97dabaec27d12e78458db283610587ccc5 | src/pito/pito.cpp | src/pito/pito.cpp | #include <rbutil/conf/cmd/command_line.hpp>
#include <pito/interceptor/application.hpp>
#include <pito/config.hpp>
#include <iostream>
#define PITO_PROGRAM_VERSION "0.9.1"
namespace pito {
namespace jail = interceptor::jail;
namespace cmd_line = rb::util::conf::cmd;
using rb::util::conf::value;
bool verbose = fals... | #include <rbutil/conf/cmd/command_line.hpp>
#include <pito/interceptor/application.hpp>
#include <pito/config.hpp>
#include <iostream>
#define PITO_PROGRAM_VERSION "0.9.1"
namespace pito {
namespace jail = interceptor::jail;
namespace cmd_line = rb::util::conf::cmd;
using rb::util::conf::value;
bool verbose = fals... | use default help | use default help
git-svn-id: 45c2c4a2387ab509d51a0462740e0050158f91df@158 10163329-09b4-48c1-bceb-0bacdf617a99
| C++ | mit | ohjames/pito,ohjames/pito,ohjames/pito |
fb1e8e4f5296d374e0aafdccaddbed91b7327b1b | src/prefix_key.cc | src/prefix_key.cc | #include <ncurses.h>
#include "show_message.hh"
#include "prefix_key.hh"
char prefix_key_times_ten;
static boost::optional< std::shared_ptr<change> > handle(contents& contents, boost::optional<int> op, int n) {
int orig = op ? op.get() : 0;
char c = getch();
if(c == prefix_key_times_ten && orig != 0) {
... | #include <ncurses.h>
#include "show_message.hh"
#include "prefix_key.hh"
char prefix_key_times_ten;
static boost::optional< std::shared_ptr<change> > handle(contents& contents, boost::optional<int> op, int n) {
int total = n + (op ? op.get() : 0) * 10;
show_message(std::to_string(total) + "-");
char c = ... | Fix ``prefix_key.cc::handle()`` to be simpler and actually work as intended | Fix ``prefix_key.cc::handle()`` to be simpler and actually work as intended
| C++ | mpl-2.0 | czipperz/vick,czipperz/vick |
0784d1f389d707e29c50f4479f692b942181174c | src/nvtt/tests/stress.cpp | src/nvtt/tests/stress.cpp | // Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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 ... | // Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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 ... | Improve stress test to detect errors in the output. | Improve stress test to detect errors in the output.
git-svn-id: bd2008fbba0f7d30fd6598b54f2cd88503fdd2e4@442 95f4ed2b-212e-0410-8b90-d31948207fce
| C++ | mit | salamanderrake/nvidia-texture-tools,hymerman/nvidia-texture-tools,casseveritt/nvidia-texture-tools,salamanderrake/nvidia-texture-tools,svn2github/nvidia-texture-tools,casseveritt/nvidia-texture-tools,svn2github/nvidia-texture-tools,svn2github/nvidia-texture-tools,hymerman/nvidia-texture-tools,salamanderrake/nvidia-text... |
a1a8f6c5917103afe08ed7298e33e285f6d76ff9 | src/physics/fem_physics.C | src/physics/fem_physics.C | // The libMesh Finite Element Library.
// Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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 ... | // The libMesh Finite Element Library.
// Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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 ... | Use accessor API for FEMContext. | Use accessor API for FEMContext.
| C++ | lgpl-2.1 | Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh,Mbewu/libmesh |
7216540843d8919da305792d4f4bfbf509c17e61 | fast_akaze/akaze/akaze.cpp | fast_akaze/akaze/akaze.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... | Add a debug message in AKAZE_Impl2::AKAZE_Impl2 | Add a debug message in AKAZE_Impl2::AKAZE_Impl2
The message confirms AKAZE2 is really called.
| C++ | bsd-3-clause | h2suzuki/fast_akaze,h2suzuki/fast_akaze |
9e4adbdaf7f590125181eb2e7cde6235118fcd35 | test/multithread.cc | test/multithread.cc | #include <mcx/memcached.h>
#include <muduo/base/Atomic.h>
#include <muduo/base/Logging.h>
#include <muduo/base/Thread.h>
#include <muduo/base/CountDownLatch.h>
#include <muduo/net/EventLoop.h>
#include <boost/bind.hpp>
#include <stdio.h>
using namespace mcx;
using namespace muduo;
using namespace muduo::net;
EventLo... | #include <mcx/memcached.h>
#include <muduo/base/Atomic.h>
#include <muduo/base/Logging.h>
#include <muduo/base/Thread.h>
#include <muduo/base/CountDownLatch.h>
#include <muduo/net/EventLoop.h>
#include <boost/bind.hpp>
#include <stdio.h>
using namespace mcx;
using namespace muduo;
using namespace muduo::net;
EventLo... | Add test_get test_store test_mget flags | Add test_get test_store test_mget flags
| C++ | bsd-3-clause | zieckey/mcx,zieckey/mcx,zieckey/mcx |
94e4b671f3859745f39bfdd9bb36a7cec32c67d0 | include/chaiscript/dispatchkit/dispatchkit.hpp | include/chaiscript/dispatchkit/dispatchkit.hpp | // This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009, Jonathan Turner (jturner@minnow-lang.org)
// and Jason Turner (lefticus@gmail.com)
// http://www.chaiscript.com
#ifndef __dispatchkit_hpp__
#define __dispatchkit_hpp__
#include <typeinfo>
#include <string>
#include... | // This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009, Jonathan Turner (jturner@minnow-lang.org)
// and Jason Turner (lefticus@gmail.com)
// http://www.chaiscript.com
#ifndef __dispatchkit_hpp__
#define __dispatchkit_hpp__
#include <typeinfo>
#include <string>
#include... | Make sure to invalidate the cache when a new function name is added | Make sure to invalidate the cache when a new function name is added
| C++ | bsd-3-clause | bradparks/ChaiScript__cplusplus_scripting_language,bradparks/ChaiScript__cplusplus_scripting_language,bradparks/ChaiScript__cplusplus_scripting_language,kamilzubair/ChaiScript,lefticus/ChaiScript,kamilzubair/ChaiScript,kamilzubair/ChaiScript,lefticus/ChaiScript,lefticus/ChaiScript |
b658853124f85d0350c294dd37f2d0d574d50e97 | src/bridge.cpp | src/bridge.cpp | /*
* D-Bus AT-SPI, Qt Adaptor
*
* Copyright 2008-2011 Nokia Corporation and/or its subsidiary(-ies).
* Copyright 2008, 2009 Codethink Ltd.
*
* 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 Softwa... | /*
* D-Bus AT-SPI, Qt Adaptor
*
* Copyright 2008-2011 Nokia Corporation and/or its subsidiary(-ies).
* Copyright 2008, 2009 Codethink Ltd.
*
* 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 Softwa... | Return the correct root object. | Return the correct root object.
| C++ | lgpl-2.1 | KDE/qtatspi,KDE/qtatspi,KDE/qtatspi |
faf91b678d053cdbd20b41779b4e61193d6f033a | src/buffer.cpp | src/buffer.cpp | /**
* @author See Contributors.txt for code contributors and overview of BadgerDB.
*
* @section LICENSE
* Copyright (c) 2012 Database Group, Computer Sciences Department, University of Wisconsin-Madison.
*/
/**
* @author Databases Project 3 (Buffer Manager): Charles Conley, Josh Cordell, Bryce Greiber
*/
#i... | /**
* @author See Contributors.txt for code contributors and overview of BadgerDB.
*
* @section LICENSE
* Copyright (c) 2012 Database Group, Computer Sciences Department, University of Wisconsin-Madison.
*/
/**
* @author Databases Project 3 (Buffer Manager): Charles Conley, Josh Cordell, Bryce Greiber
*/
#i... | fix int to uint32_t warning | fix int to uint32_t warning
| C++ | apache-2.0 | CharlesConley/DBProject3 |
7a53954417b8c3e3ecf0c757b480e1346bb77067 | tutorials/math/exampleMultiRoot.C | tutorials/math/exampleMultiRoot.C | /// \file
/// \ingroup tutorial_math
/// \notebook -nodraw
/// Example of using multiroot finder based on GSL algorithm.
/// Find the root of Rosenbrock system of equations:
/// \f[
/// f1(x,y) = a(1-x)
/// \f]
/// \f[
/// f2(x,y) = b(y-x^2)
/// \f]
/// with:
/// \f[
/// a = 1, b=10
/// \f]
///
/// The MultiRootFinder ... | /// \file
/// \ingroup tutorial_math
/// \notebook -nodraw
/// Example of using multiroot finder based on GSL algorithm.
/// Find the root of Rosenbrock system of equations:
/// \f[
/// f1(x,y) = a(1-x)
/// \f]
/// \f[
/// f2(x,y) = b(y-x^2)
/// \f]
/// with:
/// \f[
/// a = 1, b=10
/// \f]
///
/// The MultiRootFinder ... | Move the preprocessor directives out of the function body. | Move the preprocessor directives out of the function body.
| C++ | lgpl-2.1 | thomaskeck/root,satyarth934/root,olifre/root,satyarth934/root,bbockelm/root,beniz/root,gbitzes/root,zzxuanyuan/root,beniz/root,pspe/root,simonpf/root,buuck/root,karies/root,agarciamontoro/root,gganis/root,bbockelm/root,BerserkerTroll/root,beniz/root,gbitzes/root,bbockelm/root,buuck/root,zzxuanyuan/root,Y--/root,Y--/roo... |
86a45e1e2d5ef2d166c4ae8e28d07c61352d7729 | src/main.cpp | src/main.cpp | #include <iostream>
#include "shell.cpp"
#include <boost/tokenizer.hpp>
#include <vector>
using namespace std;
using namespace boost;
void print_parse(vector<vector<string> > vec)
{
if(vec.size() == 0)
{
cout << "Empty vector\n";
cout << endl;
return;
}
for(unsigned i = 0; i < vec.size(); ++i)
{
for(uns... | #include <iostream>
#include "shell.cpp"
#include <boost/tokenizer.hpp>
#include <vector>
using namespace std;
using namespace boost;
void print_parse(vector<vector<string> > vec)
{
if(vec.size() == 0)
{
cout << "Empty vector\n";
cout << endl;
return;
}
for(unsigned i = 0; i < vec.size(); ++i)
{
for(uns... | Update main.cpp | Update main.cpp
check hanging parenthesis | C++ | bsd-3-clause | kcole002/rshell,kcole002/rshell |
f3cdc1ba2d8449aed9f4e219c1d0ef72d6e97f36 | input/inputmanager.cpp | input/inputmanager.cpp | /******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2010 Kim Jung Nissen <jungnissen@gmail.com>
* Copyright (C) 2010 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or... | /******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2010 Kim Jung Nissen <jungnissen@gmail.com>
* Copyright (C) 2010 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or... | Enable mouse tracking so we always get mouse move events. | Input: Enable mouse tracking so we always get mouse move events.
| C++ | lgpl-2.1 | KDE/gluon,KDE/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,KDE/gluon,pranavrc/example-gluon |
b7a5a1a46d1d4d30fab704b08a74a3e581556395 | content/browser/child_process_security_policy.cc | content/browser/child_process_security_policy.cc | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/child_process_security_policy.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/platform_file.h"
#inc... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/child_process_security_policy.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
... | Add UMA stats for per-child file permissions count | Add UMA stats for per-child file permissions count
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8569006
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@111112 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chro... |
2554c1b81bb8c40e1989025c6f18e7935720b156 | src/randomenv.cpp | src/randomenv.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <randomenv.h>
#include <crypto/sha512.h>
#include <support/cleanse.h>
#... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <r... | Gather additional entropy from the environment | Gather additional entropy from the environment
This based on code by Gregory Maxwell.
| C++ | mit | AkioNak/bitcoin,rnicoll/bitcoin,GroestlCoin/GroestlCoin,MeshCollider/bitcoin,jonasschnelli/bitcoin,jlopp/statoshi,MarcoFalke/bitcoin,monacoinproject/monacoin,sstone/bitcoin,Sjors/bitcoin,monacoinproject/monacoin,pstratem/bitcoin,mruddy/bitcoin,sipsorcery/bitcoin,apoelstra/bitcoin,ahmedbodi/vertcoin,fujicoin/fujicoin,do... |
50a544f354d770744bc18c0c30d5db86b7fcdaaf | include/dll/watcher.hpp | include/dll/watcher.hpp | //=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | //=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | Update the display for gradient clipping | Update the display for gradient clipping
| C++ | mit | wichtounet/dll,wichtounet/dll,wichtounet/dll |
49356220cf6ddb32536bf49043913489becb4fdd | src/rapidjson.cpp | src/rapidjson.cpp | #include <limits>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <lua.hpp>
// __SSE2__ and __SSE4_2__ are recognized by gcc, clang, and the Intel compiler.
// We use -march=native with gmake to enable -msse2 and -msse4.2, if supported.
#if defined(__SSE4_2__)
# define RAPIDJSON_SSE42
#elif defined... | #include <limits>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <lua.hpp>
// __SSE2__ and __SSE4_2__ are recognized by gcc, clang, and the Intel compiler.
// We use -march=native with gmake to enable -msse2 and -msse4.2, if supported.
#if defined(__SSE4_2__)
# define RAPIDJSON_SSE42
#elif defined... | Refactor json_decode. | Refactor json_decode.
| C++ | mit | xpol/lua-rapidjson,xpol/lua-rapidjson |
f0072bf8b89e0280e5b86b721e37a3960227a24a | wsgi_boost/request_handlers.cpp | wsgi_boost/request_handlers.cpp | /*
Request handlers for WSGI apps and static files
Copyright (c) 2016 Roman Miroshnychenko <romanvm@yandex.ua>
License: MIT, see License.txt
*/
#include "request_handlers.h"
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/copy.hpp>
#include <fstre... | /*
Request handlers for WSGI apps and static files
Copyright (c) 2016 Roman Miroshnychenko <romanvm@yandex.ua>
License: MIT, see License.txt
*/
#include "request_handlers.h"
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/copy.hpp>
#include <fstre... | Add some comments | Add some comments
| C++ | mit | romanvm/WsgiBoostServer,romanvm/WsgiBoostServer,romanvm/WsgiBoostServer,romanvm/WsgiBoostServer |
28717a8a60e6877eda842944393efa4c0ad2e006 | lib/Analysis/DomPrinter.cpp | lib/Analysis/DomPrinter.cpp | //===- DomPrinter.cpp - DOT printer for the dominance trees ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- DomPrinter.cpp - DOT printer for the dominance trees ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | fix some problems with ID definitions, which will hopefully fix the build bots. | fix some problems with ID definitions, which will hopefully fix the build bots.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@84399 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-2-clause | chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,l... |
d07e29712544000b65cc036677d4752961e815b6 | exec.cc | exec.cc | // Copyright 2015 Google Inc. All rights reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2015 Google Inc. All rights reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Stop using an uninitialized value | [C++] Stop using an uninitialized value
| C++ | apache-2.0 | google/kati,google/kati,google/kati,danw/kati,danw/kati,danw/kati,google/kati,danw/kati,danw/kati,google/kati,danw/kati |
cfbb3b64e2cb915a578125dc5dfaee628f05ffa4 | include/etl/context.hpp | include/etl/context.hpp | //=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | //=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | Add access by type | Add access by type
| C++ | mit | wichtounet/etl,wichtounet/etl |
8bcdd304eb520c23580f68430079c92d77de82ca | include/inpal_prime.hpp | include/inpal_prime.hpp | //
// inpal_prime.hpp
// Inverse Palindrome Library
//
// Created by Bryan Triana on 7/21/16.
// Copyright © 2016 Inverse Palindrome. All rights reserved.
//
#ifndef inpal_prime_hpp
#define inpal_prime_hpp
#include <vector>
#include <string>
namespace inpal
{
namespace prime
{
//general purpose ... | //
// inpal_prime.hpp
// Inverse Palindrome Library
//
// Created by Bryan Triana on 7/21/16.
// Copyright © 2016 Inverse Palindrome. All rights reserved.
//
#ifndef inpal_prime_hpp
#define inpal_prime_hpp
#include <vector>
#include <string>
namespace inpal
{
namespace prime
{
//general purpose ... | Update inpal_prime.hpp | Update inpal_prime.hpp | C++ | mit | InversePalindrome/Prime-Numbers |
3e044403e1acaaef7038d8891caa04a5e0c5a21c | gm/texteffects.cpp | gm/texteffects.cpp | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkFlattenableBuffers.h"
#include "SkLayerRasterizer.h"
#include "SkBlurMaskFilter.h"
static void r0(SkLayerRasterizer* rast, SkPaint& p) {
p.set... | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkFlattenableBuffers.h"
#include "SkLayerRasterizer.h"
#include "SkBlurMaskFilter.h"
static void r0(SkLayerRasterizer* rast, SkPaint& p) {
p.set... | adjust size to match the content | adjust size to match the content
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@5052 2bbb7eff-a529-9590-31e7-b0007b416f81
| C++ | bsd-3-clause | invisiblek/android_external_skia,FusionSP/external_chromium_org_third_party_skia,Tesla-Redux/android_external_skia,HalCanary/skia-hc,xzzz9097/android_external_skia,Samsung/skia,F-AOSP/platform_external_skia,ominux/skia,PAC-ROM/android_external_skia,wildermason/external_skia,AOSP-YU/platform_external_skia,MinimalOS-AOSP... |
8954dfc468836a3080ae0a0f55c937ad4f35da89 | include/rank_filter.hxx | include/rank_filter.hxx | #ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <deque>
#include <cassert>
#include <functional>
#include <iostream>
#include <boost/container/set.hpp>
#include <boost/container/node_allocator.hpp>
#include <vigra/multi_array.hxx>
namespace rank_filter
{
template<class I1,
class I2>
inline void... | #ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <iostream>
#include <vigra/multi_array.hxx>
#include "rank_filter_base.hxx"
namespace rank_filter
{
template<unsigned int N,
class T1, class S1,
class T2, class S2,
typename std::enable_if<(N == 1), int>::type = 0>
inline void lineR... | Include the base header file here so as to reuse the API it provides. | include/rank_filter.hxx: Include the base header file here so as to reuse the API it provides.
| C++ | bsd-3-clause | jakirkham/rank_filter,DudLab/rank_filter,nanshe-org/rank_filter,jakirkham/rank_filter,nanshe-org/rank_filter,jakirkham/rank_filter,nanshe-org/rank_filter,DudLab/rank_filter,DudLab/rank_filter |
1633311d3f9e4e2c32d16734219a3b58eb85dbe2 | gnelib/src/GNE.cpp | gnelib/src/GNE.cpp | /* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*... | /* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*... | Increment build no | Increment build no
| C++ | lgpl-2.1 | gillius/gnelib,gillius/gnelib |
3be523ed3ab62dbc1be6971355ebc95830f4183c | net/krb5auth/src/TKSocket.cxx | net/krb5auth/src/TKSocket.cxx | // @(#)root/krb5auth:$Id$
// Author: Maarten Ballintijn 27/10/2003
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <netinet/in.h>
#ifndef WIN32
# include <unistd.h>
#endif
#include "TKSocket.h"
#include "TSocket.h"
#include "TError.h"
extern "C" {
// missing from "krb5.h"
extern int krb5_... | // @(#)root/krb5auth:$Id$
// Author: Maarten Ballintijn 27/10/2003
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <netinet/in.h>
#ifndef WIN32
# include <unistd.h>
#endif
#include "TKSocket.h"
#include "TSocket.h"
#include "TError.h"
extern "C" {
// missing from "krb5.h"
extern int krb5_... | Fix register warning. | Fix register warning.
| C++ | lgpl-2.1 | tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot,tc3t/qoot |
605c7bac6cd2581093362a74c753fa56f2b24206 | src/main.cpp | src/main.cpp | #include "mswin.h"
#include "model.h"
#include "random.h"
#include "cmdline.h"
#include "graphics.h"
#include "config.h"
#include "maths.h"
#include "memory.h"
#define IDT_TIMER 1
struct window_struct_t
{
model_t model;
HDC hdc;
HGLRC hglrc;
LARGE_INTEGER last_performance_count;
POINT initial_cursor_positio... | #include "mswin.h"
#include "model.h"
#include "random.h"
#include "cmdline.h"
#include "graphics.h"
#include "config.h"
#include "maths.h"
#include "memory.h"
#define IDT_TIMER 1
struct window_struct_t
{
model_t model;
HDC hdc;
HGLRC hglrc;
LARGE_INTEGER last_performance_count;
POINT initial_cursor_positio... | Use tick count as random seed. | Use tick count as random seed.
| C++ | apache-2.0 | bustercopley/polymorph,bustercopley/polymorph |
1ce54e2b31d1a15d741d8da9e94cb7bfbccbfedd | src/main.cpp | src/main.cpp | # include "module.hpp"
#include "parse_state.hpp"
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
istream_iterator<char> begin{std::cin};
istream_iterator<char> end{};
parse_state<istream_iterator<char>> state{begin, end, "command line"};
try
{
parse_f... | # include "module.hpp"
#include "parse_state.hpp"
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
istream_iterator<char> begin{std::cin};
istream_iterator<char> end{};
parse_state<istream_iterator<char>> state{begin, end, 1};
try
{
parse_file(state);
... | fix main | fix main
| C++ | mit | mbid/asm-lisp |
3f9eca796e77f4105a32fdde69110895947a6da5 | xchainer/routines/connection.cc | xchainer/routines/connection.cc | #include "xchainer/routines/connection.h"
#include <cstdint>
#include <vector>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/constant.h"
#include "xchainer/device.h"
#include "xchainer/error.h"
#include "xchainer/routines/math.h"
#include "xchainer/stack_vector.h"
namespace xchainer ... | #include "xchainer/routines/connection.h"
#include <cstdint>
#include <vector>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/constant.h"
#include "xchainer/device.h"
#include "xchainer/error.h"
#include "xchainer/routines/math.h"
#include "xchainer/stack_vector.h"
namespace xchainer ... | remove unused warning | remove unused warning
| C++ | mit | okuta/chainer,hvy/chainer,okuta/chainer,niboshi/chainer,keisuke-umezawa/chainer,wkentaro/chainer,hvy/chainer,okuta/chainer,chainer/chainer,chainer/chainer,ktnyt/chainer,okuta/chainer,niboshi/chainer,chainer/chainer,niboshi/chainer,pfnet/chainer,wkentaro/chainer,hvy/chainer,ktnyt/chainer,jnishi/chainer,ktnyt/chainer,jni... |
e298d7cc58e8d16234c7ba16ac7ab15c2057d736 | lib/Support/GraphWriter.cpp | lib/Support/GraphWriter.cpp | //===-- GraphWriter.cpp - Implements GraphWriter support routines ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- GraphWriter.cpp - Implements GraphWriter support routines ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix viewCFG on Linux. | Fix viewCFG on Linux.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@96834 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-2-clause | chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/ll... |
0d5274da7d6c26d74b6ec78a68693cee80eb44a1 | learn_cxx/learnTrait_access-different-name.cpp | learn_cxx/learnTrait_access-different-name.cpp | #include <math.h>
#include <stdio.h>
//#include <utility>
/////////////////////////////////////////////////////////////////////////////
// 0) primary type
typedef double mtype;
/////////////////////////////////////////////////////////////////////////////
// 1) basic structure (Various)
struct plane_point {
double ... | #include <math.h>
#include <stdio.h>
//#include <utility>
/////////////////////////////////////////////////////////////////////////////
// 0) primary type
typedef double mtype;
/////////////////////////////////////////////////////////////////////////////
// 1) basic structure (Various)
struct plane_point {
double ... | add references doc | add references doc
| C++ | unlicense | yangrongwei/ray-simple,yangrongwei/ray-simple,yangrongwei/ray-simple,yangrongwei/ray-simple,yangrongwei/ray-simple |
4eb14382f61f789b4dc899233f14fa805c29c683 | server/types/MediaSink.cpp | server/types/MediaSink.cpp | /*
* MediaSink.cpp - Kurento Media Server
*
* Copyright (C) 2013 Kurento
* Contact: Miguel París Díaz <mparisdiaz@gmail.com>
* Contact: José Antonio Santos Cadenas <santoscadenas@kurento.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | /*
* MediaSink.cpp - Kurento Media Server
*
* Copyright (C) 2013 Kurento
* Contact: Miguel París Díaz <mparisdiaz@gmail.com>
* Contact: José Antonio Santos Cadenas <santoscadenas@kurento.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | Add an intermediate element to allow loopback connections | Add an intermediate element to allow loopback connections
Change-Id: I217c574cb1f536f7a448444072cabbed231639a9
| C++ | lgpl-2.1 | TribeMedia/kurento-media-server,todotobe1/kurento-media-server,Kurento/kurento-media-server,shelsonjava/kurento-media-server,mparis/kurento-media-server,mparis/kurento-media-server,lulufei/kurento-media-server,todotobe1/kurento-media-server,Kurento/kurento-media-server,shelsonjava/kurento-media-server,lulufei/kurento-m... |
f2e8249c0106c4643ab5d9a715b15fd8dcf6362d | test/serializer.cpp | test/serializer.cpp | #include <catch/catch.hpp>
#include <cmath>
#include <limits>
#include <RaPsCallion/serializer.h>
namespace rapscallion {
namespace test {
void test(const std::string& inStr, const double in, const std::ptrdiff_t expected_size = -1) {
GIVEN("the real number " + inStr) {
WHEN("we serialize it") {
Serialize... | #include <catch/catch.hpp>
#include <cmath>
#include <limits>
#include <RaPsCallion/serializer.h>
namespace rapscallion {
namespace test {
struct byte_view
{
constexpr byte_view() = default;
byte_view(const Deserializer& d)
: first(reinterpret_cast<const char*>(d.ptr))
, last (reinterpret_cast<const char... | Add serialization format expectations to test | Add serialization format expectations to test
To pin the format and to document the requirement that we want floats
containing just the (implicit) one in the fraction to encode with a 0x01
byte for its fraction.
| C++ | mit | dascandy/rapscallion |
9e756a6b6cb78a50b71899a40ef95252621fd353 | test/test_astar.cpp | test/test_astar.cpp | #include <gtest/gtest.h>
#include "simple_graph/list_graph.hpp"
#include "simple_graph/astar.hpp"
namespace {
class ListGraphUndirectedTest : public ::testing::Test {
protected:
simple_graph::ListGraph<false, std::pair<float, float>, float> g;
};
static float dist(const simple_graph::ListGraph<false, std::pair<f... | #include <gtest/gtest.h>
#include "simple_graph/list_graph.hpp"
#include "simple_graph/astar.hpp"
namespace {
class ListGraphUndirectedTest : public ::testing::Test {
protected:
simple_graph::ListGraph<false, std::pair<float, float>, float> g;
};
static float dist(const simple_graph::ListGraph<false, std::pair<f... | Change lambda capture in A* tests | Change lambda capture in A* tests
| C++ | mit | sfod/simple-graph |
415138a1d3aec51bd56f261e8eba1cd4399dd30e | test/test_swarm.cpp | test/test_swarm.cpp | /*
Copyright (c) 2008, 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) 2008, 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... | print less in test_swarm.cpp | print less in test_swarm.cpp
git-svn-id: 4f0141143c3c635d33f1b9f02fcb2b6c73e45c89@5482 a83610d8-ad2a-0410-a6ab-fc0612d85776
| C++ | bsd-3-clause | halorgium/libtorrent,halorgium/libtorrent,halorgium/libtorrent,archos-sa/libtorrent-avp,archos-sa/libtorrent-avp,halorgium/libtorrent,halorgium/libtorrent,archos-sa/libtorrent-avp,archos-sa/libtorrent-avp,archos-sa/libtorrent-avp,halorgium/libtorrent,archos-sa/libtorrent-avp |
7c7700f216d36c8db5bef557757dc81ff99b578f | test/testconfig.cpp | test/testconfig.cpp |
#include <Python.h>
#include <cstdio>
#include "plictests.h"
TEST_GROUP(Config)
{
void teardown()
{
/* Remove all log files generated in ./misc/output: */
PyRun_SimpleString("import os;import glob;\
[os.remove(logFile) for logFile in glob.glob('misc/output/*.log')]");
... |
#include <Python.h>
#include <cstdio>
#include "plictests.h"
TEST_GROUP(Config)
{
void teardown()
{
/* Remove all log files generated in ./misc/output: */
PyRun_SimpleString("import os;import glob;\
[os.remove(logFile) for logFile in glob.glob('misc/output/*.log')]");
... | remove forgotten curly brace | remove forgotten curly brace
| C++ | mit | lubgr/plic,lubgr/plic,lubgr/plic,lubgr/plic |
3ecb8d259b22e186cf7f31910c3e76a657ae0dd3 | src/rpcclient.cpp | src/rpcclient.cpp | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcclient.h"
#include "rpcprotocol.h"
#include "util.h"
#include "ui_interfa... | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcclient.h"
#include "rpcprotocol.h"
#include "util.h"
#include "ui_interfa... | remove include of chainparams.h | remove include of chainparams.h
chainparams.h has not been used in this cpp file already, consider to remove it for clean. | C++ | mit | Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,Infernoman/crowncoin,syscoin/syscoin,syscoin/syscoin,domob1812/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,syscoin/syscoin,Crowndev/crowncoin,syscoi... |
a1201b1e39b59f9cbfc5f569eaa5f593c9122346 | lib/http/HttpWorker.cpp | lib/http/HttpWorker.cpp | /* <src/HttpWorker.cpp>
*
* This file is part of the x0 web server project and is released under GPL-3.
* http://www.xzero.io/
*
* (c) 2009-2013 Christian Parpart <trapni@gmail.com>
*/
#include <x0/http/HttpWorker.h>
#include <x0/http/HttpRequest.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpConnectio... | /* <src/HttpWorker.cpp>
*
* This file is part of the x0 web server project and is released under GPL-3.
* http://www.xzero.io/
*
* (c) 2009-2013 Christian Parpart <trapni@gmail.com>
*/
#include <x0/http/HttpWorker.h>
#include <x0/http/HttpRequest.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpConnectio... | Revert "[http] HttpWorker: code cleanup" | Revert "[http] HttpWorker: code cleanup"
This reverts commit d43c204724817b731872fd5715201464f4c0adb1.
| C++ | mit | xzero/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,xzero/x0,xzero/x0,christianparpart/x0,xzero/x0 |
28e10e5d872d193e5ba55546bf0bffd5ce3b8a04 | src/simulator.cpp | src/simulator.cpp | /**
** Copyright 2014 Rico Antonio Felix
**
** 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 ... | /**
** Copyright 2014 Rico Antonio Felix
**
** 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 ... | Update simulator.cpp | Update simulator.cpp | C++ | apache-2.0 | RicoAntonioFelix/TELEVISION-SIMULATOR |
00a9cdfc908651c7cc6483b1549c6b9617e2a75d | src/context.hh | src/context.hh | #ifndef context_hh_INCLUDED
#define context_hh_INCLUDED
#include "window.hh"
#include "user_interface.hh"
namespace Kakoune
{
class InputHandler;
// A Context is used to access non singleton objects for various services
// in commands.
//
// The Context object links an InputHandler, an Editor (which may be a Window... | #ifndef context_hh_INCLUDED
#define context_hh_INCLUDED
#include "window.hh"
#include "user_interface.hh"
namespace Kakoune
{
class InputHandler;
// A Context is used to access non singleton objects for various services
// in commands.
//
// The Context object links an InputHandler, an Editor (which may be a Window... | remove some unused code | Context: remove some unused code
| C++ | unlicense | ekie/kakoune,mawww/kakoune,flavius/kakoune,zakgreant/kakoune,occivink/kakoune,jkonecny12/kakoune,danr/kakoune,rstacruz/kakoune,elegios/kakoune,casimir/kakoune,elegios/kakoune,occivink/kakoune,Asenar/kakoune,alexherbo2/kakoune,casimir/kakoune,alpha123/kakoune,occivink/kakoune,jkonecny12/kakoune,jjthrash/kakoune,occivink... |
c752864b8101aa582883fdc5404fc7e5196a8bfc | src/subprocess.cc | src/subprocess.cc | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Fix missing POLLRDHUP constant on older systems. | Fix missing POLLRDHUP constant on older systems.
Attempting to compile with g++ 4.1.2 failed because the POLLRDHUP
constant was not defined when <poll.h> is included.
| C++ | apache-2.0 | jimon/ninja,ctiller/ninja,hnney/ninja,TheOneRing/ninja,metti/ninja,autopulated/ninja,ThiagoGarciaAlves/ninja,TheOneRing/ninja,ikarienator/ninja,colincross/ninja,moroten/ninja,juntalis/ninja,Maratyszcza/ninja-pypi,jimon/ninja,dendy/ninja,nocnokneo/ninja,hnney/ninja,martine/ninja,barak/ninja,syntheticpp/ninja,sxlin/dist_... |
7b325c36081ab56ce90d95c48323441c0d73348c | src/ui/Window.cpp | src/ui/Window.cpp | #include "Window.h"
#include <QtGui>
#include "ui_MainWindow.h"
#if defined Q_OS_MAC
#include "../OSXLocal.h"
#endif
#include "../Settings.h"
#include "../Hearthstone.h"
Window::Window()
: mUI( new Ui::MainWindow )
{
mUI->setupUi( this );
setWindowFlags( (Qt::Tool | Qt::CustomizeWindowHint | Qt::WindowCloseB... | #include "Window.h"
#include <QtGui>
#include "ui_MainWindow.h"
#if defined Q_OS_MAC
#include "../OSXLocal.h"
#endif
#include "../Settings.h"
#include "../Hearthstone.h"
Window::Window()
: mUI( new Ui::MainWindow )
{
mUI->setupUi( this );
setWindowFlags( (Qt::Tool | Qt::CustomizeWindowHint | Qt::WindowCloseB... | Remove redundand code. | Remove redundand code.
| C++ | lgpl-2.1 | BOSSoNe0013/track-o-bot,BOSSoNe0013/track-o-bot |
79116975c4fd7c766308bc86f2c969d2c6a620f1 | src/util_linux.cc | src/util_linux.cc | #include "util.h"
namespace doogie {
bool Util::OpenContainingFolder(const QString& path) {
QFileInfo info(path);
return QDesktopServices::openUrl(
QUrl::fromLocalFile(info.isDir() ? path : info.path()));
}
QString Util::ExePath() {
QFileInfo pfi(QString::fromLatin1("/proc/%1/exe").arg(getpid()));
if (!p... | #include "util.h"
#include <unistd.h>
namespace doogie {
bool Util::OpenContainingFolder(const QString& path) {
QFileInfo info(path);
return QDesktopServices::openUrl(
QUrl::fromLocalFile(info.isDir() ? path : info.path()));
}
QString Util::ExePath() {
QFileInfo pfi(QString::fromLatin1("/proc/%1/exe").arg... | Fix import for getpid | Fix import for getpid
| C++ | mit | cretz/doogie,cretz/doogie,cretz/doogie,cretz/doogie |
0f1a9bc77eb62f4f1b21f9c6527a165b331e5f03 | src/finder.cpp | src/finder.cpp | #include "zlib-custom.h"
#include "system.h"
#include "finder.h"
using namespace vm;
namespace {
const char*
append(System* s, const char* a, const char* b, const char* c)
{
unsigned al = strlen(a);
unsigned bl = strlen(b);
unsigned cl = strlen(c);
char* p = static_cast<char*>(s->allocate(al + bl + cl + 1));... | #include "zlib-custom.h"
#include "system.h"
#include "finder.h"
using namespace vm;
namespace {
const char*
append(System* s, const char* a, const char* b, const char* c)
{
unsigned al = strlen(a);
unsigned bl = strlen(b);
unsigned cl = strlen(c);
char* p = static_cast<char*>(s->allocate(al + bl + cl + 1));... | remove debug logging | remove debug logging
| C++ | isc | getlantern/avian,lostdj/avian,joshuawarner32/avian,ucdseniordesign/avian,lostdj/avian,lwahlmeier/avian,bgould/avian,dicej/avian,badlogic/avian,MaartenR/avian,joshuawarner32/avian,ucdseniordesign/avian,marcinolawski/avian,lwahlmeier/avian,badlogic/avian,bgould/avian,MaartenR/avian,bigfatbrowncat/avian-pack.avian,marcino... |
a4f66441cf4e20f23568c1bc8f303f9882ee2dc3 | src/zk_client.cpp | src/zk_client.cpp | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distri... | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distri... | implement connecting to arbitrary zookeeper nodes in connection config | implement connecting to arbitrary zookeeper nodes in connection config
| C++ | apache-2.0 | betable/scribe,traviscrawford/scribe,betable/scribe,betable/scribe,betable/scribe,kovyrin/scribe,kovyrin/scribe,traviscrawford/scribe,kovyrin/scribe,traviscrawford/scribe,traviscrawford/scribe,kovyrin/scribe,traviscrawford/scribe,betable/scribe,kovyrin/scribe,traviscrawford/scribe |
8f0016b3ce858be150dfa87bf3e4a34cb118534c | src/gui/app.cc | src/gui/app.cc | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gui/app.h"
#include <boost/process/search_path.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
#include <wx/config.h>
#in... | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gui/app.h"
#include <boost/process/search_path.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
#include <wx/config.h>
#in... | Clean up working directory at startup, not at closing | Clean up working directory at startup, not at closing
| C++ | mit | flintproject/Flint,flintproject/Flint |
e282b76880691183477caaecdc473b5416468d0c | src/itimer.cpp | src/itimer.cpp | /*
* Copyright 2018 Andrei Pangin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2018 Andrei Pangin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Add an error message if ITIMER_PROF is not supported | #286: Add an error message if ITIMER_PROF is not supported
| C++ | apache-2.0 | jvm-profiling-tools/async-profiler,jvm-profiling-tools/async-profiler,apangin/async-profiler,apangin/async-profiler,apangin/async-profiler,jvm-profiling-tools/async-profiler,apangin/async-profiler,jvm-profiling-tools/async-profiler,jvm-profiling-tools/async-profiler |
4f0f86fed90cd2fcdba12d2597546c9fa22429f4 | libvast/src/command.cpp | libvast/src/command.cpp | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | Improve trace log output of command | Improve trace log output of command
| C++ | bsd-3-clause | mavam/vast,vast-io/vast,mavam/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,vast-io/vast,mavam/vast |
381a121fcbbfd5f15e03fbd290a75e4bc9fba45d | linc/linc_timestamp.cpp | linc/linc_timestamp.cpp | #include "./linc_timestamp.h"
#include <sys/time.h>
#include <stdint.h>
#ifdef HX_LINUX
#include <unistd.h>
#include <stdio.h>
#endif
#ifdef HX_MACOS
#include <mach/mach_time.h>
#include <mach-o/dyld.h>
#include <CoreServices/CoreServices.h>
#endif
#ifdef IPHONE
#include <QuartzCore/QuartzCo... | #include "./linc_timestamp.h"
// Originally adapted for snow from nme
// https://github.com/underscorediscovery/snow
// https://github.com/haxenme/nme
#include <sys/time.h>
#include <stdint.h>
#ifdef HX_LINUX
#include <unistd.h>
#include <stdio.h>
#endif
#ifdef HX_MACOS
#include <mach/mach_time.h>
#... | Update linc_timestamp.cpp | Update linc_timestamp.cpp | C++ | mit | snowkit/linc_timestamp |
5586c020c9b9819062306522b76b09561d91d50e | src/memory.cpp | src/memory.cpp | //===------------------------ memory.cpp ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===------------------------ memory.cpp ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Fix memory leak in converting weak_ptr to shared_ptr | Fix memory leak in converting weak_ptr to shared_ptr
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@147298 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
7462a70d714ff507d6a7c59228b23ec8d7584754 | src/net_tcp.cc | src/net_tcp.cc | /* Copyright (c) 2009-2010 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | /* Copyright (c) 2009-2010 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | Fix build with TCP_NET | Fix build with TCP_NET
| C++ | isc | behnamm/cs244b_project,IMCG/RamCloud,mrdiegoa/ramcloud,DavidLi2010/ramcloud,DavidLi2010/ramcloud,taschik/ramcloud-load-manager,taschik/ramcloud,matrix207/RAMCloud,QingkaiLu/RAMCloud,behnamm/cs244b_project,Frank-Wu/RamCloud,rstutsman/RAMCloud,SMatsushi/RAMCloud,taschik/ramcloud-load-manager,taschik/ramcloud-load-manager... |
4eace75d2ff12d0329d0fca962150d783e332c14 | sound/tag.hpp | sound/tag.hpp | #pragma once
//=====================================================================//
/*! @file
@brief Audio タグ・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//============... | #pragma once
//=====================================================================//
/*! @file
@brief Audio タグ・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//============... | clear for apic-struct | update: clear for apic-struct
| C++ | bsd-3-clause | hirakuni45/RX,hirakuni45/RX,hirakuni45/RX,hirakuni45/RX |
2ea4b12b7121c2fb891d1051c33d3d5abd10f8eb | Common/DataModel/Testing/Cxx/TestCompositeDataSets.cxx | Common/DataModel/Testing/Cxx/TestCompositeDataSets.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: TestCompositeDataSets.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 sof... | /*=========================================================================
Program: Visualization Toolkit
Module: TestCompositeDataSets.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 sof... | Make Bill less unhappy; test more. | Make Bill less unhappy; test more.
Change-Id: Ib74174d7767a68740acee8a403cc0d7402c6a4dc
| C++ | bsd-3-clause | johnkit/vtk-dev,jmerkow/VTK,mspark93/VTK,demarle/VTK,hendradarwin/VTK,johnkit/vtk-dev,aashish24/VTK-old,msmolens/VTK,hendradarwin/VTK,SimVascular/VTK,SimVascular/VTK,ashray/VTK-EVM,SimVascular/VTK,aashish24/VTK-old,sankhesh/VTK,SimVascular/VTK,berendkleinhaneveld/VTK,johnkit/vtk-dev,gram526/VTK,jmerkow/VTK,mspark93/VTK... |
4452ff76b79b3a9acdcd15ba6e751117889db3fb | paddle/fluid/framework/details/op_handle_base.cc | paddle/fluid/framework/details/op_handle_base.cc | // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... | // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... | Fix CPU compile | Fix CPU compile
| C++ | apache-2.0 | chengduoZH/Paddle,chengduoZH/Paddle,putcn/Paddle,baidu/Paddle,jacquesqiao/Paddle,tensor-tang/Paddle,luotao1/Paddle,Canpio/Paddle,reyoung/Paddle,QiJune/Paddle,putcn/Paddle,PaddlePaddle/Paddle,lcy-seso/Paddle,PaddlePaddle/Paddle,pkuyym/Paddle,reyoung/Paddle,PaddlePaddle/Paddle,lcy-seso/Paddle,baidu/Paddle,putcn/Paddle,ch... |
8845d406a45a0765c6ffb62705568b58a8e61756 | wfs-fuse/wfs-fuse.cpp | wfs-fuse/wfs-fuse.cpp | #define FUSE_USE_VERSION 31
#include <fuse.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <assert.h>
#include <string>
#include <wfslib/WfsLib.h>
static std::shared_ptr<Wfs> wfs;
static int wfs_getattr(const char *path, struct stat *stbuf) {
memset(stbu... | #define FUSE_USE_VERSION 31
#include <fuse.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <assert.h>
#include <string>
#include <mutex>
#include <wfslib/WfsLib.h>
static std::shared_ptr<Wfs> wfs;
struct locked_stream {
std::unique_ptr<File::stream> stre... | Create the file stream on file opening (much faster reading) | wfs-fuse: Create the file stream on file opening (much faster reading)
| C++ | mit | koolkdev/wfslib,koolkdev/wfslib |
9c67381dbc48e9814fc05d6b38065069fe3307f9 | gm/strokerect.cpp | gm/strokerect.cpp | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkPath.h"
#define STROKE_WIDTH SkIntToScalar(20)
static void draw_path(SkCanvas* canvas, const SkPath& path, const SkRect&... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkPath.h"
#define STROKE_WIDTH SkIntToScalar(20)
static void draw_path(SkCanvas* canvas, const SkPath& path, const SkRect&... | Enlarge strokerect GM size to reveal hidden content GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2126723002 | Enlarge strokerect GM size to reveal hidden content
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2126723002
Review-Url: https://codereview.chromium.org/2126723002
| C++ | bsd-3-clause | Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_exte... |
c85a337fe2c6d883b0102c21dac358d0e952407c | x_client.cpp | x_client.cpp | #include "x_client.hpp"
x_client::x_client(x_connection & c, const xcb_window_t & window)
: _c(c), _window(window)
{
_c.register_handler(XCB_CONFIGURE_NOTIFY, this);
_c.update_input(_window, XCB_EVENT_MASK_STRUCTURE_NOTIFY);
update_geometry();
get_net_wm_desktop();
update_parent_window();
update_name_wi... | #include "x_client.hpp"
x_client::x_client(x_connection & c, const xcb_window_t & window)
: _c(c), _window(window)
{
_c.register_handler(XCB_CONFIGURE_NOTIFY, this);
_c.update_input(_window, XCB_EVENT_MASK_STRUCTURE_NOTIFY);
update_geometry();
get_net_wm_desktop();
update_parent_window();
update_name_wi... | Rename variable | Rename variable
| C++ | bsd-3-clause | jotrk/x-choyce,jotrk/x-choyce |
a42ed48e843bd9a4300b9bceaabbe00db92234f0 | gm/ycbcrimage.cpp | gm/ycbcrimage.cpp | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
// This test only works with the Vulkan backend.
#ifdef SK_VULKAN
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "include/co... | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
// This test only works with the Vulkan backend.
#ifdef SK_VULKAN
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "include/co... | Fix a double free problem in YCbCrImageGM::createYCbCrImage() | Fix a double free problem in YCbCrImageGM::createYCbCrImage()
If SkImage::MakeFromTexture() fails, the reelase_ycbcrhelper will
also be called, so ycbcrHelper.release() should be always called.
Change-Id: I104e02155da653bcb465723cbead595f16459fca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379848
Commi... | C++ | bsd-3-clause | google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,ao... |
acc2e2ad6d229af016e4b6030763950d268f5417 | sql/sql_db.cc | sql/sql_db.cc | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ve... | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ve... | Remove .TMD files on DROP DATABASE. | Remove .TMD files on DROP DATABASE.
| C++ | lgpl-2.1 | flynn1973/mariadb-aix,natsys/mariadb_10.2,davidl-zend/zenddbi,flynn1973/mariadb-aix,natsys/mariadb_10.2,flynn1973/mariadb-aix,flynn1973/mariadb-aix,slanterns/server,ollie314/server,davidl-zend/zenddbi,davidl-zend/zenddbi,ollie314/server,flynn1973/mariadb-aix,davidl-zend/zenddbi,natsys/mariadb_10.2,ollie314/server,david... |
6f646b9d5538c4e9809f2cdcddadeb972317abad | src/Graph.cxx | src/Graph.cxx | #include "lwtnn/Graph.hh"
#include "lwtnn/Exceptions.hh"
#include "lwtnn/Stack.hh"
#include <set>
namespace lwt {
// Sources
VectorSource::VectorSource(const std::vector<VectorXd>&& vv):
m_inputs(std::move(vv))
{
}
VectorXd VectorSource::at(size_t index) const {
if (index >= m_inputs.size()) {
... | #include "lwtnn/Graph.hh"
#include "lwtnn/Exceptions.hh"
#include "lwtnn/Stack.hh"
#include <set>
namespace lwt {
// Sources
VectorSource::VectorSource(const std::vector<VectorXd>&& vv):
m_inputs(std::move(vv))
{
}
VectorXd VectorSource::at(size_t index) const {
if (index >= m_inputs.size()) {
... | Fix pedantic compiler warnings | Fix pedantic compiler warnings
| C++ | mit | jwsmithers/lwtnn,lwtnn/lwtnn,jwsmithers/lwtnn,jwsmithers/lwtnn,lwtnn/lwtnn,lwtnn/lwtnn |
77bb3dc462d2a34e5657c1e83fb0f1fb211e1e75 | Visualization_Library_SDK/src/vlGraphics/Rendering.cpp | Visualization_Library_SDK/src/vlGraphics/Rendering.cpp | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary.com ... | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary.com ... | check gl errors when context is active. | check gl errors when context is active. | C++ | bsd-2-clause | Wulfire/visualizationlibrary,MicBosi/visualizationlibrary,Wulfire/visualizationlibrary,MicBosi/visualizationlibrary,MicBosi/visualizationlibrary,Wulfire/visualizationlibrary |
2a0fb4ffdc5c2852362059c89ab247eefef2cf14 | SDK/src/NDK/LuaBinding_SDK.cpp | SDK/src/NDK/LuaBinding_SDK.cpp | // Copyright (C) 2016 Jrme Leclercq, Arnaud Cadot
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <NDK/LuaBinding.hpp>
#include <NDK/LuaAPI.hpp>
namespace Ndk
{
/*!
* \brief Binds SDK module to Lua
*/
void LuaBindi... | // Copyright (C) 2016 Jrme Leclercq, Arnaud Cadot
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <NDK/LuaBinding.hpp>
#include <NDK/LuaAPI.hpp>
namespace Ndk
{
/*!
* \brief Binds SDK module to Lua
*/
void LuaBindi... | Fix Entity::Enable default argument | Sdk/Binding: Fix Entity::Enable default argument
Former-commit-id: 82181122fca24b99e78ba927c71ce9237b1b3674 [formerly ef758ac2d0aac925dbcd6e72effc21b9effa83c0] [formerly 2555ac6b28f36b220aea76f2aeb0012536665058 [formerly b28da55971c4db17ddbf7fd6bacd8c03d02ffcbd]]
Former-commit-id: 8a84469ff40d37e114fbdee8c3fa16a3748c... | C++ | mit | DigitalPulseSoftware/NazaraEngine |
02eb5b8f1204d8ee80d487ef79f9aaba03df8984 | plugins/input/shape/shape_io.cpp | plugins/input/shape/shape_io.cpp | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | check if multiple parts are interior rings or separate polygons. Currently only test if first coordinate inside exterior ring and assume first ring is exterior. | shape: check if multiple parts are interior rings or separate
polygons. Currently only test if first coordinate inside exterior
ring and assume first ring is exterior.
If this approach is not robust enough we can calculate ring orientations
instead. Shape file convention is: CW - exterior, CCW - interior.
very simple... | C++ | lgpl-2.1 | qianwenming/mapnik,rouault/mapnik,whuaegeanse/mapnik,tomhughes/python-mapnik,qianwenming/mapnik,lightmare/mapnik,garnertb/python-mapnik,Uli1/mapnik,pramsey/mapnik,sebastic/python-mapnik,naturalatlas/mapnik,rouault/mapnik,mapycz/mapnik,sebastic/python-mapnik,Airphrame/mapnik,stefanklug/mapnik,jwomeara/mapnik,pramsey/map... |
8c9d7399a65d31d1c1098165233ff3c4940715f8 | plugins/latex/latexguiclient.cpp | plugins/latex/latexguiclient.cpp | /*
latexguiclient.cpp - Kopete LaTeX plugin
Copyright (c) 2003-2005 by Olivier Goffart <ogoffart@kde.org>
Kopete (c) 2003-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... | /*
latexguiclient.cpp - Kopete LaTeX plugin
Copyright (c) 2003-2005 by Olivier Goffart <ogoffart@kde.org>
Kopete (c) 2003-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... | Enable html text in latex preview message | Enable html text in latex preview message
svn path=/trunk/KDE/kdenetwork/kopete/; revision=1203888
| C++ | lgpl-2.1 | josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete |
a9b36c942fad35cc8fa821c97589910f1f12e152 | chrome/browser/process_singleton_win.cc | chrome/browser/process_singleton_win.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/process_singleton.h"
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/process_singleton.h"
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/... | Move the window destruction and registration out of cleanup and into BrowserProcessImpl::EndSession to make sure it happens after profiles are written out. | Move the window destruction and registration out of cleanup and into BrowserProcessImpl::EndSession to make sure it happens after profiles are written out.
BUG=127607
TEST=Run on slow computer, open three or more profiles, exit from wrench menu, immediately open chrome again. There should be no reports of profile corr... | C++ | bsd-3-clause | Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,markYoungH/chromium.src,jaruba/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,krieger-od/nwjs_ch... |
1e28e5ee56739a717494392b2a7a2566d280fc75 | src/Image.cpp | src/Image.cpp | /**
* Bob Somers
* rsomers@calpoly.edu
* CPE 473, Winter 2010
* Cal Poly, San Luis Obispo
*/
#include "Image.h"
Image::Image(int width, int height)
{
_width = width;
_height = height;
_max = 1.0;
_pixmap = (Color*)malloc(sizeof(Color) * _width * _height);
}
Image::~Image()
{
free(_pixmap);
... | /**
* Bob Somers
* rsomers@calpoly.edu
* CPE 473, Winter 2010
* Cal Poly, San Luis Obispo
*/
#include "Image.h"
Image::Image(int width, int height)
{
_width = width;
_height = height;
_max = 1.0;
_pixmap = (Color*)malloc(sizeof(Color) * _width * _height);
}
Image::~Image()
{
free(_pixmap);
... | Fix image pixel calculation | Fix image pixel calculation
| C++ | apache-2.0 | raulcesar/RayTracer,marczych/RayTracer,marczych/RayTracer,raulcesar/RayTracer,marczych/RayTracer,raulcesar/RayTracer,raulcesar/RayTracer,marczych/RayTracer,marczych/RayTracer |
55774a90caac46dd9b540557aa8d9c47c86c2fba | tree/dataframe/test/datasource_more.cxx | tree/dataframe/test/datasource_more.cxx | #include <ROOT/RDataFrame.hxx>
#include <ROOT/RMakeUnique.hxx>
#include <TROOT.h>
#include <TSystem.h>
#include "RNonCopiableColumnDS.hxx"
#include "RStreamingDS.hxx"
#include "RArraysDS.hxx"
#include "ROOTUnitTestSupport.h"
#include "gtest/gtest.h"
using namespace ROOT::RDF;
TEST(RNonCopiableColumnDS, UseNonCopiab... | #include <ROOT/RDataFrame.hxx>
#include <ROOT/RMakeUnique.hxx>
#include <TROOT.h>
#include <TSystem.h>
#include "RNonCopiableColumnDS.hxx"
#include "RStreamingDS.hxx"
#include "RArraysDS.hxx"
#include "ROOTUnitTestSupport.h"
#include "gtest/gtest.h"
using namespace ROOT::RDF;
TEST(RNonCopiableColumnDS, UseNonCopiab... | Fix datasource_more test failures on Windows | [DF] Fix datasource_more test failures on Windows
| C++ | lgpl-2.1 | olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root |
bde0599aeb75994997a1df722224e7ddcf7b2b46 | tree/forest/v7/inc/ROOT/RForestUtil.hxx | tree/forest/v7/inc/ROOT/RForestUtil.hxx | /// \file ROOT/RForestUtil.hxx
/// \ingroup Forest ROOT7
/// \author Jakob Blomer <jblomer@cern.ch>
/// \date 2018-10-04
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/************************************************************... | /// \file ROOT/RForestUtil.hxx
/// \ingroup Forest ROOT7
/// \author Jakob Blomer <jblomer@cern.ch>
/// \date 2018-10-04
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/************************************************************... | define ClusterIndex_t | [forest] define ClusterIndex_t
| C++ | lgpl-2.1 | root-mirror/root,olifre/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,karies/root,root-mirror/root,root-mirror/root,karies/root,olifre/root,olifre/root,karies/ro... |
16350a730f515c675d9e61439722b193913f0a84 | Siv3D/src/Siv3D/Font/CFont.cpp | Siv3D/src/Siv3D/Font/CFont.cpp | //-----------------------------------------------
//
// 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.
//
//-----------------------------------------------
# include <Siv3D/Font.hpp>
# include <Siv3D/Er... | //-----------------------------------------------
//
// 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.
//
//-----------------------------------------------
# include <Siv3D/Font.hpp>
# include <Siv3D/Er... | Add GLSL ES 3.0 Font Shader File Loading to CFont | [共通] Add GLSL ES 3.0 Font Shader File Loading to CFont
| C++ | mit | Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D,Siv3D/OpenSiv3D |
a9b23f0bd6bfde8fa0da95c8972c240e12473f5f | src/pbview.cpp | src/pbview.cpp | #include "pbview.h"
#include <cstdio>
#include <cstring>
#include <curses.h>
#include <iostream>
#include <sstream>
#include "config.h"
#include "configcontainer.h"
#include "dllist.h"
#include "download.h"
#include "formatstring.h"
#include "help.h"
#include "logger.h"
#include "pbcontroller.h"
#include "poddlthread... | #include "pbview.h"
#include <cstdio>
#include <cstring>
#include <curses.h>
#include <iostream>
#include <sstream>
#include "config.h"
#include "configcontainer.h"
#include "dllist.h"
#include "download.h"
#include "formatstring.h"
#include "help.h"
#include "logger.h"
#include "pbcontroller.h"
#include "poddlthread... | Fix spacer formatter in podlist-format | Fix spacer formatter in podlist-format
The problem was two-fold:
1. a typo: the code was copy-pasted from FeedListFormaction, and
"feeds:w" wasn't changed to "dls:s". I checked, and there are no
other typos of this kind in this file;
2. the first time the loop is run, the widgets aren't painted yet, so
they... | C++ | mit | newsboat/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat |
21cd751111e32f54995bed5aa0de0db85cfb8681 | libsrc/spatialdata/spatialdb/UserFunctionDB.cc | libsrc/spatialdata/spatialdb/UserFunctionDB.cc | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
/... | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
/... | Add ios include to avoid Python/gcc issue. | Add ios include to avoid Python/gcc issue.
| C++ | mit | geodynamics/spatialdata,geodynamics/spatialdata,geodynamics/spatialdata,geodynamics/spatialdata |
c1b71d930486145072710a62b7756e8de4255e03 | projects/libusb/libusb_fuzzer.cc | projects/libusb/libusb_fuzzer.cc | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | fix build and fuzzer. (#6259) | libusb: fix build and fuzzer. (#6259)
| C++ | apache-2.0 | google/oss-fuzz,skia-dev/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,googlefonts/oss-fuzz,robertswiecki/oss-fuzz,google/oss-fuzz,googlefonts/oss-fuzz,googlefonts/oss-fuzz,skia-dev/oss-fuzz,google/oss-fuzz,robertswiecki/oss-fuzz,google/oss-fuzz,googlefonts/oss-fuzz,googlefonts/oss-fuzz,googlefonts/oss-fuzz,go... |
781ca4e4ebd35dba5012a86ef68921d0b6b9d74b | content/browser/streams/stream_registry.cc | content/browser/streams/stream_registry.cc | // Copyright (c) 2013 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 "content/browser/streams/stream_registry.h"
#include "content/browser/streams/stream.h"
namespace content {
namespace {
// The maximum siz... | // Copyright (c) 2013 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 "content/browser/streams/stream_registry.h"
#include "content/browser/streams/stream.h"
namespace content {
namespace {
// The maximum siz... | Fix DCHECK caused by updating total_memory_usage_ for cloned streams. | Fix DCHECK caused by updating total_memory_usage_ for cloned streams.
BUG=240603
Review URL: https://chromiumcodereview.appspot.com/23726048
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@224586 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | Just-D/chromium-1,jaruba/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,Fireblend/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,fujunwei/chromiu... |
b0b6f4f7d1724b832c663bab791e7cc329bcc953 | src/reader.cpp | src/reader.cpp | /////////////////////////////////////////////////////////////////////////////
// This file is part of EasyRPG.
//
// EasyRPG 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, o... | /////////////////////////////////////////////////////////////////////////////
// This file is part of EasyRPG.
//
// EasyRPG 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, o... | Remove some leaks. | Remove some leaks.
| C++ | mit | glynnc/liblcf,Ghabry/easyrpg-liblcf,carstene1ns/easyrpg-liblcf,EasyRPG/liblcf,EasyRPG/liblcf,Ghabry/easyrpg-liblcf,glynnc/liblcf,Ghabry/easyrpg-liblcf,carstene1ns/easyrpg-liblcf,Zegeri/liblcf,carstene1ns/easyrpg-liblcf,fdelapena/easyrpg-liblcf,fdelapena/easyrpg-liblcf,glynnc/liblcf,fdelapena/easyrpg-liblcf,EasyRPG/libl... |
41bebecd181863f239cfdc11d4ddb05c53534ab7 | ionGUI/CGUIManager.cpp | ionGUI/CGUIManager.cpp |
#include <ionConfig.h>
#ifdef _ION_CONFIG_USE_GWEN
#include "CGUIManager.h"
#include "OpenGL3Font.h"
Gwen::Font * LoadFont(Gwen::UnicodeString const & File, float const Size)
{
Gwen::Font * Font = new Gwen::Font();
Font->facename = File;
Font->size = Size;
return Font;
}
CGUIManager::CGUI... |
#include <ionConfig.h>
#ifdef _ION_CONFIG_USE_GWEN
#include "CGUIManager.h"
#include "OpenGL3Font.h"
Gwen::Font * LoadFont(Gwen::UnicodeString const & File, float const Size)
{
Gwen::Font * Font = new Gwen::Font();
Font->facename = File;
Font->size = Size;
return Font;
}
CGUIManager::CGUI... | Update CGUIManager to use ion::GL | Update CGUIManager to use ion::GL
| C++ | mit | iondune/ionEngine,iondune/ionEngine |
5cbdcfb46300296e31a6624fe98d28620711ae36 | mtp/mtpz/TrustedApp.cpp | mtp/mtpz/TrustedApp.cpp | /*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015-2020 Vladimir Menshakov
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License,
or... | /*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015-2020 Vladimir Menshakov
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License,
or... | fix crash if no keys present | fix crash if no keys present
| C++ | lgpl-2.1 | whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux,whoozle/android-file-transfer-linux |
aa8b3ffc5f23611f6f2f33ccbb5551f32cc4a0b8 | client_demo/netlicensing_client_demo.cc | client_demo/netlicensing_client_demo.cc | #include <iostream>
#include <random>
#include <ctime>
#include <sstream>
#include "netlicensing/netlicensing.h"
#include "netlicensing/constants.h"
int main(int argc, char* argv[]) {
using namespace netlicensing;
std::string licensee_number = "IR2Q7A5P3";
if (argc > 1) {
licensee_number = argv[1];
}
std::... | #include <iostream>
#include <random>
#include <ctime>
#include <sstream>
#include <string>
#include "netlicensing/netlicensing.h"
#include "netlicensing/constants.h"
int main(int argc, char* argv[]) {
using namespace netlicensing;
std::string licensee_number;
if (argc > 1) {
licensee_number = argv[1];
}
s... | FIx netlicensing_client_demo | FIx netlicensing_client_demo
| C++ | apache-2.0 | Labs64/NetLicensingClient-cpp,Labs64/NetLicensingClient-cpp |
2360428ff826fa27a8104335114668613543a2eb | 3RVX/OSD/VolumeOSD.cpp | 3RVX/OSD/VolumeOSD.cpp | #include "VolumeOSD.h"
#include "..\SoundPlayer.h"
#include <string>
#include "..\HotkeyInfo.h"
#include "..\LanguageTranslator.h"
#include "..\MeterWnd\Meters\CallbackMeter.h"
#include "..\Monitor.h"
#include "..\Skin.h"
#include "..\SkinManager.h"
#include "..\Slider\VolumeSlider.h"
#include "..\MeterWnd\LayeredWn... | #include "VolumeOSD.h"
#include "..\SoundPlayer.h"
#include <string>
#include "..\HotkeyInfo.h"
#include "..\LanguageTranslator.h"
#include "..\MeterWnd\Meters\CallbackMeter.h"
#include "..\Monitor.h"
#include "..\Skin.h"
#include "..\SkinManager.h"
#include "..\Slider\VolumeSlider.h"
#include "..\MeterWnd\LayeredWn... | Reformat for 80 char limit | Reformat for 80 char limit
| C++ | bsd-2-clause | malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX |
045f70a8de8bb21cc6a3deef44cd2d2af5c16d4b | tests/test_qios.cpp | tests/test_qios.cpp | /*
* Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#ifdef WIN32
# include <process.h> // for getpid
#else
# include <unistd.h> // for getpid
#endif
#include <cstdio>
#include <gtest/gtest.h>
#in... | /*
* Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#ifdef WIN32
# include <process.h> // for getpid
#else
# include <unistd.h> // for getpid
#endif
#include <cstdio>
#include <gtest/gtest.h>
#in... | use locale correct paths | test_qios: use locale correct paths
| C++ | bsd-3-clause | bsautron/libqi,aldebaran/libqi,vbarbaresi/libqi,aldebaran/libqi,aldebaran/libqi |
a6472e5bf26d1b0e445fc95fc4b3293cc740fe02 | tests/lexerTest.cpp | tests/lexerTest.cpp | #include <gtest/gtest.h>
#include <vector>
#include "utils/util.hpp"
#include "lexer.hpp"
#include "token.hpp"
class LexerTest: public ::testing::Test {
protected:
Lexer lx = Lexer();
const std::vector<Token>& getTokens(std::string code) {
return lx.tokenize(code, "<lexer-test>").getTokens();
}
};
TEST_F(L... | #include <gtest/gtest.h>
#include <vector>
#include "utils/util.hpp"
#include "lexer.hpp"
#include "token.hpp"
class LexerTest: public ::testing::Test {
protected:
Lexer lx = Lexer();
const std::vector<Token>& getTokens(std::string code) {
return lx.tokenize(code, "<lexer-test>").getTokens();
}
};
TEST_F(L... | Change fixme to todo | Change fixme to todo
| C++ | mit | slak44/Xylene,slak44/test-lang |
a629af4d1e28d1be9d0715dc463eb76e6fcbe144 | extensions/CuteHMI.2/include/cutehmi/CuteHMI.hpp | extensions/CuteHMI.2/include/cutehmi/CuteHMI.hpp | #ifndef H_MODULES_CUTEHMI__1_INCLUDE_CUTEHMI_CUTEHMI_HPP
#define H_MODULES_CUTEHMI__1_INCLUDE_CUTEHMI_CUTEHMI_HPP
#include "internal/common.hpp"
#include "PopupBridge.hpp"
#include "NotificationManager.hpp"
#include <QObject>
namespace cutehmi {
/**
* %CuteHMI singleton. This is a cornerstone object, which acts as... | #ifndef H_MODULES_CUTEHMI__1_INCLUDE_CUTEHMI_CUTEHMI_HPP
#define H_MODULES_CUTEHMI__1_INCLUDE_CUTEHMI_CUTEHMI_HPP
#include "internal/common.hpp"
#include "PopupBridge.hpp"
#include "NotificationManager.hpp"
#include <QObject>
namespace cutehmi {
/**
* %CuteHMI singleton. This is a cornerstone object, which acts as... | Update documentation. | Update documentation.
| C++ | mit | michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI,michpolicht/CuteHMI |
84840c2d10dc26b40813389d5937d38246707736 | host/cv/main_2.cpp | host/cv/main_2.cpp | /**
* OpenCV (OCV) - Video capture on BBB
*
* GOAL:
* This program takes continuous images from the host camera and detect a circular
* object of specific color. The color and other configuration are provided as
* input argument to the program.
*
* INPUT:
* The program takes two arguments:
* - The video device node (... | /**
* OpenCV (OCV) - Video capture on BBB
*
* GOAL:
* This program takes continuous images from the host camera and detect a circular
* object of specific color. The color and other configuration are provided as
* input argument to the program.
*
* INPUT:
* The program takes two arguments:
* - The video device node (... | Make car stop if he rotates 360 degrees and doesn't find ball | Make car stop if he rotates 360 degrees and doesn't find ball
| C++ | mit | EliHar/mr_robot,EliHar/mr_robot,EliHar/mr_robot,EliHar/mr_robot,EliHar/mr_robot,EliHar/mr_robot,EliHar/mr_robot |
2d4b789c09a1b20f652c2ff13ab60501cb9d0f09 | modules/control/controller/controller_agent.cc | modules/control/controller/controller_agent.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | refactor controller creation process. | control: refactor controller creation process.
| C++ | apache-2.0 | startcode/apollo,startcode/apollo,startcode/apollo,startcode/apollo,startcode/apollo,startcode/apollo |
f114a9bb4ea1169ce9ad59938403aabca105fdee | tests/skia_test.cpp | tests/skia_test.cpp | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "CrashHandler.h"
#include "OverwriteLine.h"
#include "Resources.h"
#include "SkAtomics.h"
#include "SkCommonFlags.h"
#include "SkGraphics.h"
#include "SkOSFile.h"
#in... | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "CrashHandler.h"
#include "OverwriteLine.h"
#include "Resources.h"
#include "SkAtomics.h"
#include "SkCommonFlags.h"
#include "SkGraphics.h"
#include "SkOSFile.h"
#in... | fix mac all build | fix mac all build
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2394943002
Review-Url: https://codereview.chromium.org/2394943002
| C++ | bsd-3-clause | google/skia,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/skia,google/skia,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,Hikari... |
4f3704c713f0dfaa2507c8faa5dc0b58e8fdc15f | src/alert.cpp | src/alert.cpp | //
// Alert system
//
#include <algorithm>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/foreach.hpp>
#include <map>
#include "alert.h"
#include "key.h"
#include "net.h"
#include "sync.h"
#include "ui_interface.h"
using namespace std;
map<uint256,... | //
// Alert system
//
#include <algorithm>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/foreach.hpp>
#include <map>
#include "alert.h"
#include "key.h"
#include "net.h"
#include "sync.h"
#include "ui_interface.h"
using namespace std;
map<uint256,... | Revert alert keys | Revert alert keys
| C++ | mit | worldcoinproject/worldcoin-v0.8,coinkeeper/2015-06-22_19-19_worldcoin,WorldcoinGlobal/WorldcoinLegacy,qreatora/worldcoin-v0.8,WorldcoinGlobal/WorldcoinLegacy,worldcoinproject/worldcoin-v0.8,worldcoinproject/worldcoin-v0.8,qreatora/worldcoin-v0.8,coinkeeper/2015-06-22_19-19_worldcoin,WorldcoinGlobal/WorldcoinLegacy,qrea... |
fcb6a6ed3cefe078c918f7b8ec79714a08a34c76 | amgcl/io/mm.hpp | amgcl/io/mm.hpp | #ifndef AMGCL_IO_MM_HPP
#define AMGCL_IO_MM_HPP
/*
The MIT License
Copyright (c) 2012-2017 Denis Demidov <dennis.demidov@gmail.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 restri... | #ifndef AMGCL_IO_MM_HPP
#define AMGCL_IO_MM_HPP
/*
The MIT License
Copyright (c) 2012-2017 Denis Demidov <dennis.demidov@gmail.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 restri... | Fix MatrixMarket writer | Fix MatrixMarket writer
| C++ | mit | ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl |
bf41b184cc8ccd661b97c63754b9a9f57a820fe7 | src/scanner.cc | src/scanner.cc | /*
This file is part of the Findd project from University of Poitiers (FR).
Copyright (C) 2012
Florian Mhun <florian.mhun@gmail.com>
Sara Ressam <sara.ressam@gmail.com>
Bastien Nouhant <bastien.nouhant@gmail.com>
Jérôme Cornet <jerome.cornet@etu.univ-poitiers.fr>
Redistribution and use in source and binar... | /*
This file is part of the Findd project from University of Poitiers (FR).
Copyright (C) 2012
Florian Mhun <florian.mhun@gmail.com>
Sara Ressam <sara.ressam@gmail.com>
Bastien Nouhant <bastien.nouhant@gmail.com>
Jérôme Cornet <jerome.cornet@etu.univ-poitiers.fr>
Redistribution and use in source and binar... | fix : total bytes scanned was incremented with the same file size for each iteration | fix : total bytes scanned was incremented with the same file size for each iteration
| C++ | bsd-3-clause | floomoon/findd,fmhun/findd,fmhun/findd,fmhun/findd,floomoon/findd,fmhun/findd,floomoon/findd,floomoon/findd |
cd5a372cd18fe71cfa8428be59e355d82f34000d | passes/pmgen/test_pmgen.cc | passes/pmgen/test_pmgen.cc | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... | Add help() call | Add help() call
| C++ | isc | antmicro/yosys,cliffordwolf/yosys,antmicro/yosys,cliffordwolf/yosys,cliffordwolf/yosys,SymbiFlow/yosys,cliffordwolf/yosys,YosysHQ/yosys,cliffordwolf/yosys,cliffordwolf/yosys,SymbiFlow/yosys,SymbiFlow/yosys,SymbiFlow/yosys,antmicro/yosys,YosysHQ/yosys,YosysHQ/yosys,YosysHQ/yosys,cliffordwolf/yosys,SymbiFlow/yosys,YosysH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.