commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
b6075360deb86d444c0df453389414eaee39f9fe | coding/coding_tests/mem_file_writer_test.cpp | coding/coding_tests/mem_file_writer_test.cpp | #include "../../base/SRC_FIRST.hpp"
#include "../../testing/testing.hpp"
#include "../writer.hpp"
#include "../../base/macros.hpp"
UNIT_TEST(MemWriterEmpty)
{
vector<char> data;
{
MemWriter< vector<char> > writer(data);
}
TEST(data.empty(), (data));
}
UNIT_TEST(MemWriterSimple)
{
vector<char> data;
M... | #include "../../base/SRC_FIRST.hpp"
#include "../../testing/testing.hpp"
#include "../writer.hpp"
#include "../file_writer.hpp"
#include "../../base/macros.hpp"
UNIT_TEST(MemWriterEmpty)
{
vector<char> data;
{
MemWriter< vector<char> > writer(data);
}
TEST(data.empty(), (data));
}
UNIT_TEST(MemWriterSi... | Test for FileWriter (not enough disk space). | Test for FileWriter (not enough disk space).
| C++ | apache-2.0 | andrewshadura/omim,augmify/omim,felipebetancur/omim,AlexanderMatveenko/omim,andrewshadura/omim,AlexanderMatveenko/omim,yunikkk/omim,mgsergio/omim,goblinr/omim,programming086/omim,Zverik/omim,therearesomewhocallmetim/omim,Komzpa/omim,sidorov-panda/omim,guard163/omim,mpimenov/omim,felipebetancur/omim,Transtech/omim,Udjin... |
10da8d59a3ae6b4b34565bd450fbc6c64ba4ae95 | base/test/launcher/unit_test_launcher_ios.cc | base/test/launcher/unit_test_launcher_ios.cc | // Copyright 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 "base/test/launcher/unit_test_launcher.h"
namespace base {
int LaunchUnitTests(int argc,
char** argv,
c... | // Copyright 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 "base/test/launcher/unit_test_launcher.h"
namespace base {
int LaunchUnitTests(int argc,
char** argv,
c... | Add newline to end of file. | Add newline to end of file.
Fix [-Werror,-Wnewline-eof] error in base/test/unit_test_launcher_ios.cc
BUG=None
TEST=None
Review URL: https://codereview.chromium.org/25997003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@227517 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,chuan9/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,Chilledheart/chromium,Just-D/chromium-1,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Jonekee/chromi... |
cfbfcaeb36274102bfe3a8c03297ef9f5540058a | Target.cpp | Target.cpp | /*
* Author: Laurent Goderre
*/
#include <stdio.h>
#include <Arduino.h>
#include "Target.h"
//-------------------------------------
// TODO: CALIBRATE THESE FOR SERVOS
const int servoOffPosition = 150;
const int servoOnPosition = 400;
//-------------------------------------
const String showingStr = "Showing targe... | /*
* Author: Laurent Goderre
*/
#include <stdio.h>
#include <Arduino.h>
#include "Target.h"
//-------------------------------------
// TODO: CALIBRATE THESE FOR SERVOS
const int servoOffPosition = 150;
const int servoOnPosition = 400;
//-------------------------------------
const String showingStr = "Showing targe... | Use target hide method instead of custom code on initialization | Use target hide method instead of custom code on initialization
| C++ | mit | LaurentGoderre/arduino_practice_target,9thLegionMilsim/arduino_practice_target |
5316922053cfb101718e4fc5da7643cbaad4e5ba | chrome/browser/net/async_dns_field_trial.cc | chrome/browser/net/async_dns_field_trial.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/net/async_dns_field_trial.h"
#include "base/metrics/field_trial.h"
#include "build/build_config.h"
#include "chrome/common/c... | // 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/net/async_dns_field_trial.h"
#include "base/metrics/field_trial.h"
#include "build/build_config.h"
#include "chrome/common/c... | Extend async DNS field trial to other supported platforms. | [net/dns] Extend async DNS field trial to other supported platforms.
BUG=143454
' will be ignored, and an empty message aborts the commit.
R=cbentzel@chromium.org
Review URL: https://codereview.chromium.org/10968036
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@158024 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ondra-novak/chromium.src,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-pr... |
2948f0a3a8e98f34f4bcb3bb75cdb34bd7acdb56 | common/application_info_win.cc | common/application_info_win.cc | #include "common/application_info.h"
namespace brightray {
std::string GetApplicationName() {
return std::string();
}
std::string GetApplicationVersion() {
return std::string();
}
}
| #include "common/application_info.h"
#include "base/file_version_info.h"
#include "base/memory/scoped_ptr.h"
#include "base/utf_string_conversions.h"
namespace brightray {
std::string GetApplicationName() {
auto info = make_scoped_ptr(FileVersionInfo::CreateFileVersionInfoForModule(GetModuleHandle(nullptr)));
re... | Set the user agent string correctly on Windows | Set the user agent string correctly on Windows
We use the main executable's ProductName and FileVersion resources to build the
user agent string.
| C++ | mit | atom/brightray,lakshmi-srinivas/brightray,paulcbetts/brightray,deepak1556/brightray,tejaspathak/brightray,bbondy/brightray,brave/brightray,hokein/brightray,lakshmi-srinivas/brightray,bbondy/brightray,tejaspathak/brightray,paulcbetts/brightray,lakshmi-srinivas/brightray,brave/brightray,atom/brightray,hokein/brightray,de... |
0ff18f5b4c4d4b645e340503c8d37e10f1c71c2d | src/main.cpp | src/main.cpp | #include <ncurses.h>
#include <string>
using namespace std;
void menuShow();
void menuAdd(int pos, string str);
void menuDone();
int main() {
/*
* init term
*/
initscr();
cbreak();
noecho();
clear();
/*
* init title
*/
menuShow();
refresh();
while(true);
... | #include <ncurses.h>
#include <string>
using namespace std;
void menuShow(string title);
void menuAdd(int pos, string str);
void menuDone();
int main() {
/*
* init term
*/
initscr();
cbreak();
noecho();
clear();
/*
* init title
*/
menuShow("TERMINAL QUEST");
... | Use dynamic str rather than static in priv fn | Use dynamic str rather than static in priv fn
| C++ | mit | jm-janzen/termq,jm-janzen/termq,jm-janzen/termq |
cdc8ba7e702f4fb61ef1141329ca63dfa69e1da1 | tests/posix.cpp | tests/posix.cpp | /* Copyright (c) 2010 David Bender assigned to Benegon Enterprises LLC
* See the file LICENSE for full license information. */
#include <errno.h>
#include "posix.hh"
FD_Reader::FD_Reader(int fd) throw()
: _fd(fd), _errno(0)
{
}
FD_Reader::~FD_Reader() throw(){
/* Assume file is read only; don't really care about ... | /* Copyright (c) 2010 David Bender assigned to Benegon Enterprises LLC
* See the file LICENSE for full license information. */
#include <errno.h>
#include <unistd.h>
#include "posix.hh"
FD_Reader::FD_Reader(int fd) throw()
: _fd(fd), _errno(0)
{
}
FD_Reader::~FD_Reader() throw(){
/* Assume file is read only; don'... | Add include line that may be required on some platforms | Add include line that may be required on some platforms
| C++ | mit | codehero/benejson,codehero/benejson,codehero/benejson,codehero/benejson |
20300ce8741ca9a10e21468391fdd6c4c7233567 | CodeAdapter/Transform.cpp | CodeAdapter/Transform.cpp | #include "Transform.h"
BEGIN_NAMESPACE_CA_DRAWING
Transform::Transform()
: position(0, 0)
, scale(1, 1)
, angle(0)
{
}
Transform::~Transform()
{
}
//###########################################################################
void Transform::addTransform(const Transform& other)
{
position += other.positi... | #include "Transform.h"
BEGIN_NAMESPACE_CA_DRAWING
Transform::Transform()
: position(0, 0)
, scale(1, 1)
, angle(0)
{
}
Transform::~Transform()
{
}
//###########################################################################
void Transform::addTransform(const Transform& other)
{
position += other.positi... | Delete unnecessary code in transform class. | Delete unnecessary code in transform class.
| C++ | mit | NeuroWhAI/CodeAdapter,NeuroWhAI/CodeAdapter |
bf84eb2a108977d29c84461efe93121966636705 | kded/main.cpp | kded/main.cpp | /*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> *
* *
* This program is free software; you can redistribute it ... | /*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> *
* *
* This program is free software; you can redistribute it ... | Use QApplication and set KScreen backend to XRandR | Use QApplication and set KScreen backend to XRandR
| C++ | lgpl-2.1 | davidedmundson/test,davidedmundson/test,davidedmundson/test |
eee0aa4c87acbe425dd5851c76ce80212ae955b4 | src/get_focused_window_windows.cc | src/get_focused_window_windows.cc | // Copyright 2014 Toggl Desktop developers.
#include <windows.h>
#include <psapi.h>
#pragma comment(lib, "psapi.lib")
#include <time.h>
#include <string>
static const int kFilenameBufferSize = 255;
template <class string_type>
inline typename string_type::value_type *WriteInto(string_type *str,
size_t length... | // Copyright 2014 Toggl Desktop developers.
#include <windows.h>
#include <psapi.h>
#pragma comment(lib, "psapi.lib")
#include <time.h>
static const int kFilenameBufferSize = 255;
template <class string_type>
inline typename string_type::value_type *WriteInto(string_type *str,
size_t length_with_null) {
... | Add missing string include for win32 | Add missing string include for win32
| C++ | bsd-3-clause | codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop |
0f147e472e2471dda1ba4654a5bda966b7c6a3a8 | chrome/common/net/test_url_fetcher_factory.cc | chrome/common/net/test_url_fetcher_factory.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/net/test_url_fetcher_factory.h"
TestURLFetcher::TestURLFetcher(int id,
const GURL& url,
... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/net/test_url_fetcher_factory.h"
TestURLFetcher::TestURLFetcher(int id,
const GURL& url,
... | Fix compile failure on GCC | Fix compile failure on GCC
BUG=54274
TEST=none
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@65426 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,rogerwang/chromium,anirudhSK/chromium,chuan9/chromium-crosswalk,dushu1203/chromium.src,Chilledheart/chromium,M4sse/chromium.src,Joneke... |
77c4c4da24a7dc4906eed82a8f0944dee9e2367f | lib/CodeGen/Passes.cpp | lib/CodeGen/Passes.cpp | //===-- Passes.cpp - Target independent code generation passes ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- Passes.cpp - Target independent code generation passes ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Put variable name to a separate line. | Put variable name to a separate line.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@15108 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm... |
b4b9fd9a759a28ccf17faa17e82b679faef08f8a | groups/csa/csamisc/csamisc_anonymousnamespaceinheader.cpp | groups/csa/csamisc/csamisc_anonymousnamespaceinheader.cpp | // csamisc_anonymousnamespaceinheader.t.cpp -*-C++-*-
// -----------------------------------------------------------------------------
// Copyright 2011 Dietmar Kuehl http://www.dietmar-kuehl.de
// Distributed under the Boost Software License, Version 1.0. (See file
// LICENSE_... | // csamisc_anonymousnamespaceinheader.t.cpp -*-C++-*-
// -----------------------------------------------------------------------------
// Copyright 2011 Dietmar Kuehl http://www.dietmar-kuehl.de
// Distributed under the Boost Software License, Version 1.0. (See file
// LICENSE_... | Check should be for component header, not not toplevel. | Check should be for component header, not not toplevel.
| C++ | mit | yahiahisham14/bde_verify,bloomberg/bde_verify,seanlth/bde_verify,seanlth/bde_verify,yahiahisham14/bde_verify,yahiahisham14/bde_verify,bloomberg/bde_verify,seanlth/bde_verify,bloomberg/bde_verify,seanlth/bde_verify,yahiahisham14/bde_verify,bloomberg/bde_verify,bloomberg/bde_verify |
f78a75e2ecad43f9e30298c16e84c898b2441073 | src/omnicore/test/version_tests.cpp | src/omnicore/test/version_tests.cpp | #include "omnicore/version.h"
#include "config/bitcoin-config.h"
#include <string>
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(omnicore_version_tests)
BOOST_AUTO_TEST_CASE(version_comparison)
{
BOOST_CHECK(OMNICORE_VERSION > 900300); // Master Core v0.0.9.3
}
/**
* The following tests are very ... | #include "omnicore/version.h"
#include "config/bitcoin-config.h"
#include <string>
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(omnicore_version_tests)
BOOST_AUTO_TEST_CASE(version_comparison)
{
BOOST_CHECK(OMNICORE_VERSION > 900300); // Master Core v0.0.9.3
}
/**
* The following tests are very ... | Update unit tests for rc3 | Update unit tests for rc3
| C++ | mit | OmniLayer/omnicore,OmniLayer/omnicore,OmniLayer/omnicore,OmniLayer/omnicore,OmniLayer/omnicore,OmniLayer/omnicore |
992eee26704daa9b29b96f694575dac10add9c35 | emscriptenwrapper.cpp | emscriptenwrapper.cpp | #include <memory>
#include "view.h"
#include "dummyfrequencyprovider.h"
#include "frequencyprovider.h"
#include <emscripten.h>
#include <SDL/SDL.h>
extern "C" {
EMSCRIPTEN_KEEPALIVE
int run_fmv_with_frequency_provider(int width, int height) {
std::shared_ptr<FMV::FrequencyProvider> provider(FMV::cre... | #include <array>
#include <memory>
#include "view.h"
#include "frequencyprovider.h"
#include <emscripten.h>
#include <SDL/SDL.h>
namespace {
class ModifiableFrequencyProvider :
public FMV::FrequencyProvider
{
public:
static std::array<float, 255> frequencyData;
public:
... | Allow for frequencies to be modified | Allow for frequencies to be modified
| C++ | lgpl-2.1 | smspillaz/fmv,smspillaz/fmv,smspillaz/fmv |
9b4d648a30f120aa6158413fbbeaa8442a4c2c0d | webkit/glue/resource_loader_bridge.cc | webkit/glue/resource_loader_bridge.cc | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "config.h"
#include "webkit/glue/resource_loader_bridge.h"
#include "net/http/http_response_headers.h"
namespace webkit_glue {
Re... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "config.h"
#include "webkit/glue/resource_loader_bridge.h"
#include "webkit/glue/webappcachecontext.h"
#include "net/http/http_resp... | Fix an issue found by purify with my previous submission. | Fix an issue found by purify with my previous submission.
Review URL: http://codereview.chromium.org/62122
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@13324 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C++ | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
e457b8020d685b95731cc1f7b3c8f2f9d04e545e | src/trusted/plugin/browser_utils.cc | src/trusted/plugin/browser_utils.cc | /*
* Copyright 2008 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
// Portable interface for browser interaction - API invariant portions.
#include "base/rand_util_c.h"
#include "native_client/src/include/n... | /*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// Portable interface for browser interaction - API invariant portions.
#include "base/rand_util_c.h"
#include "native_client/src/trust... | Fix Chromium build breakage introduced by r6280 | Fix Chromium build breakage introduced by r6280
r6280 removed nacl_elf.h but did not update a file that #included it
that is only used in the Chromium build. We remove this unneeded #include,
plus a couple of others.
BUG=http://code.google.com/p/chromium/issues/detail?id=91482
TEST=compile this file on its own
Revi... | C++ | bsd-3-clause | nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client |
cff5618d4e847b9f13e1f051d56e09ee00cfb089 | testing/libfuzzer/pdf_css_fuzzer.cc | testing/libfuzzer/pdf_css_fuzzer.cc | // Copyright 2016 The PDFium 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 <memory>
#include "core/fxcrt/cfx_retain_ptr.h"
#include "core/fxcrt/fx_string.h"
#include "xfa/fde/css/cfde_csssyntaxparser.h"
#include "xfa/fde/... | // Copyright 2016 The PDFium 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 <memory>
#include "core/fxcrt/cfx_retain_ptr.h"
#include "core/fxcrt/fx_string.h"
#include "xfa/fde/css/cfde_csssyntaxparser.h"
#include "xfa/fde/... | Fix CSS fuzzer input size | Fix CSS fuzzer input size
Currently we use the size provided by clusterfuzz when initializing the
css syntax parser. This maybe incorrect as the CFX_WideString may have a
different count after converting to UTF. Use the wide string length instead
of the provided size.
We need to guard against strings that convert to ... | C++ | bsd-3-clause | DrAlexx/pdfium,DrAlexx/pdfium,DrAlexx/pdfium,DrAlexx/pdfium |
5aa4d72cb6818e742326fa68e05103a3a5893b89 | Sources/Rosetta/Enchants/Power.cpp | Sources/Rosetta/Enchants/Power.cpp | // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Rosetta/Enchants/Power.hpp>
namespace RosettaStone
{
std::o... | // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Rosetta/Enchants/Power.hpp>
namespace RosettaStone
{
std::o... | Add code to reset 'm_aura' in ClearData() method | fix: Add code to reset 'm_aura' in ClearData() method
| C++ | mit | Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp |
f14d63c2597f8f2d9a180a333f829c847b6134f7 | src/mjolnir/directededgebuilder.cc | src/mjolnir/directededgebuilder.cc | #include "mjolnir/directededgebuilder.h"
namespace valhalla {
namespace mjolnir {
// Default constructor
DirectedEdgeBuilder::DirectedEdgeBuilder()
: speed_(0),
length_(0) {
}
// Sets the length of the edge in kilometers.
void DirectedEdgeBuilder::length(const float length) {
length_ = length;
}
// Sets... | #include "mjolnir/directededgebuilder.h"
namespace valhalla {
namespace mjolnir {
// Default constructor
DirectedEdgeBuilder::DirectedEdgeBuilder()
: DirectedEdge() {
}
// Sets the length of the edge in kilometers.
void DirectedEdgeBuilder::length(const float length) {
length_ = length;
}
// Sets the end node o... | Fix derived constructor to call base class constructor | Fix derived constructor to call base class constructor
| C++ | mit | fsaric/mjolnir,fsaric/mjolnir,fsaric/mjolnir |
fb88e4da2f163758a4bfe9c544543b5604aa2a12 | src/Genes/Pawn_Advancement_Gene.cpp | src/Genes/Pawn_Advancement_Gene.cpp | #include "Genes/Pawn_Advancement_Gene.h"
#include <string>
#include "Game/Board.h"
#include "Pieces/Piece.h"
#include "Utility.h"
Pawn_Advancement_Gene::Pawn_Advancement_Gene() : Gene(0.0)
{
}
Pawn_Advancement_Gene::~Pawn_Advancement_Gene()
{
}
double Pawn_Advancement_Gene::score_board(const Board& board, Color pe... | #include "Genes/Pawn_Advancement_Gene.h"
#include <string>
#include "Game/Board.h"
#include "Pieces/Piece.h"
#include "Utility.h"
Pawn_Advancement_Gene::Pawn_Advancement_Gene() : Gene(0.0)
{
}
Pawn_Advancement_Gene::~Pawn_Advancement_Gene()
{
}
double Pawn_Advancement_Gene::score_board(const Board& board, Color pe... | Fix incorrect comment in Pawn Advancement Gene | Fix incorrect comment in Pawn Advancement Gene
| C++ | mit | MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess |
9dbc9a34f148dc169fed7e0b98f60cdf1397c6d1 | examples/example11/glc_declarativeview.cpp | examples/example11/glc_declarativeview.cpp | /*
* glc_declarativeview.cpp
*
* Created on: 22/04/2013
* Author: laumaya
*/
#include <QGLWidget>
#include <GLC_Context>
#include "glc_declarativeview.h"
GLC_DeclarativeView::GLC_DeclarativeView(QWidget *pParent)
: QDeclarativeView(pParent)
{
QDeclarativeView::setViewport(new QGLWidget(new GLC_Co... | /*
* glc_declarativeview.cpp
*
* Created on: 22/04/2013
* Author: laumaya
*/
#include <QGLWidget>
#include <GLC_Context>
#include "glc_declarativeview.h"
GLC_DeclarativeView::GLC_DeclarativeView(QWidget *pParent)
: QDeclarativeView(pParent)
{
QDeclarativeView::setViewport(new QGLWidget(new GLC_Co... | Fix a bug on Windows which cause a crash. | Fix a bug on Windows which cause a crash.
| C++ | lgpl-2.1 | 3drepo/GLC_lib |
eb1b99198901cf52af8236342d07c057478d28cd | tools/mugen-converter/src/test/main.cpp | tools/mugen-converter/src/test/main.cpp | #include <iostream>
#include <Python.h>
#include "character.h"
using namespace std;
static int error(const std::string & message){
std::cout << message << std::endl;
//PyErr_Print();
return -1;
}
int main(int argc, char ** argv){
if (argc > 1){
Py_Initialize();
/* NOTE need... | #include <iostream>
#include <Python.h>
#include "character.h"
using namespace std;
static int error(const std::string & message){
std::cout << message << std::endl;
//PyErr_Print();
return -1;
}
int main(int argc, char ** argv){
if (argc > 1){
Py_Initialize();
/* NOTE need... | Correct usage line, no need to include .py in module name. | Correct usage line, no need to include .py in module name.
git-svn-id: 39e099a8ed5324aded674b764a67f7a08796d9a7@5904 662fdd30-d327-0410-a531-f549c87e1e9e
| C++ | bsd-3-clause | Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown |
1440a41dd61afd698cfc7f2f3c2b917d4dc0a2a1 | be/src/sparrow/state-store-main.cc | be/src/sparrow/state-store-main.cc | // Copyright (c) 2012 Cloudera, Inc. All rights reserved.
//
// This file contains the main() function for the state store process,
// which exports the Thrift service StateStoreService.
#include <glog/logging.h>
#include <gflags/gflags.h>
#include "sparrow/state-store-service.h"
#include "util/cpu-info.h"
DEFINE_in... | // Copyright (c) 2012 Cloudera, Inc. All rights reserved.
//
// This file contains the main() function for the state store process,
// which exports the Thrift service StateStoreService.
#include <glog/logging.h>
#include <gflags/gflags.h>
#include <iostream>
#include "common/status.h"
#include "sparrow/state-store-s... | Allow configuraiton of state-store log dir / name. Also add debug webserver to state-store. | IMP-241: Allow configuraiton of state-store log dir / name. Also add debug webserver to state-store.
| C++ | apache-2.0 | caseyching/Impala,AtScaleInc/Impala,kapilrastogi/Impala,caseyching/Impala,lirui-intel/Impala,rampage644/impala-cut,lnliuxing/Impala,henryr/Impala,bowlofstew/Impala,cloudera/recordservice,gerashegalov/Impala,theyaa/Impala,placrosse/ImpalaToGo,ibmsoe/ImpalaPPC,cchanning/Impala,gistic/PublicSpatialImpala,cchanning/Impala,... |
65601d9e400a7354482d0e147d20437406df54c6 | src/ofp/mptablestats.cpp | src/ofp/mptablestats.cpp | // Copyright 2014-present Bill Fisher. All rights reserved.
#include "ofp/mptablestats.h"
#include "ofp/writable.h"
#include "ofp/constants.h"
#include "ofp/log.h"
#include "ofp/validation.h"
using namespace ofp;
void MPTableStatsBuilder::write(Writable *channel) {
UInt8 version = channel->version();
if (versio... | // Copyright 2014-present Bill Fisher. All rights reserved.
#include "ofp/mptablestats.h"
#include "ofp/writable.h"
#include "ofp/constants.h"
#include "ofp/log.h"
#include "ofp/validation.h"
using namespace ofp;
void MPTableStatsBuilder::write(Writable *channel) {
UInt8 version = channel->version();
if (versio... | Fix writing of v5 REPLY.TABLE. | Fix writing of v5 REPLY.TABLE.
| C++ | mit | byllyfish/oftr,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr,byllyfish/libofp,byllyfish/oftr,byllyfish/libofp,byllyfish/libofp |
623cfe03d77ae9651fc1b494986b0eea8fa9f372 | src/logging_android.cc | src/logging_android.cc | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Make our CHECK logging more useful on the target... | Make our CHECK logging more useful on the target...
...by always including the filename and line number, like on the host.
We might want to only do this for CHECKs eventually, but right now
knowing exactly where the output is coming from is more useful than
brevity.
Change-Id: I24f3e6a43c3bc8279b4248ec4e67071b2c2471c... | C++ | apache-2.0 | treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst |
a1340347f7b41ba017176c12d899b37df7304508 | console/main.cpp | console/main.cpp | /*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> *
* *
* This program is free software; you can redistribute it ... | /*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> *
* *
* This program is free software; you can redistribute it ... | Include stdlib (getenv and setenv) | Include stdlib (getenv and setenv)
| C++ | lgpl-2.1 | davidedmundson/test,davidedmundson/test,davidedmundson/test |
6f2a07819cc3d1a232beb7732ff2ccf53e8712bc | lib/sampling.cpp | lib/sampling.cpp | #include "sampling.h"
namespace {
static constexpr float M_2PI = 2.f * M_PI;
}
namespace sampling {
__thread static xorshift64star<float> uniform{4};
std::pair<Vec, float> hemisphere() {
// draw coordinates
float u1 = uniform();
float u2 = uniform();
// u1 is cos(theta)
auto z = u1;
auto ... | #include "sampling.h"
namespace {
static constexpr float M_2PI = 2.f * M_PI;
__thread static xorshift64star<float> uniform{4};
}
namespace sampling {
std::pair<Vec, float> hemisphere() {
// draw coordinates
float u1 = uniform();
float u2 = uniform();
// u1 is cos(theta)
auto z = u1;
auto r... | Move RNG to anonymous namespace. | Move RNG to anonymous namespace.
Former-commit-id: d2fb354ba4ceff14c48bc0e4fb48def0825a604a | C++ | apache-2.0 | turner-renderer/turner,jeschkies/renderer,jeschkies/renderer,blacklab/renderer,turner-renderer/turner,turner-renderer/turner,turner-renderer/turner |
90289c41f71caeaa86ed23e139670401526f35b9 | test/test-tuishogi.cpp | test/test-tuishogi.cpp | #include <cppcutter.h>
#include "tuishogi.cpp"
namespace tuishogi {
void
test_isMated(void)
{
using namespace osl;
NumEffectState state((SimpleState(HIRATE)));
bool mated = isMated(state);
cut_assert_false(mated);
}
} // namespace tuishogi
| #include <cppcutter.h>
#include "tuishogi.cpp"
namespace tuishogi {
void
test_showState(void)
{
// Arrange
using namespace osl;
std::stringbuf string_out;
std::streambuf* std_out = std::cout.rdbuf(&string_out);
NumEffectState state((SimpleState(HIRATE)));
const char* expected = "\
P1-KY-KE-GI-KI-OU-KI-GI... | Add a test of "showState()" | Add a test of "showState()"
| C++ | mit | myokoym/tuishogi,myokoym/tuishogi |
630f340f8f958b2c48e341cfad49a7177dae55c4 | test/C++Frontend/2005-02-19-BitfieldStructCrash.cpp | test/C++Frontend/2005-02-19-BitfieldStructCrash.cpp | // RUN: %llvmgxx -S %s -o -
struct QChar {unsigned short X; QChar(unsigned short); } ;
struct Command {
Command(QChar c) : c(c) {}
unsigned int type : 4;
QChar c;
};
Command X(QChar('c'));
| // RUN: %llvmgxx -S %s -o -
struct QChar {unsigned short X; QChar(unsigned short); } ;
struct Command {
Command(QChar c) : c(c) {}
unsigned int type : 4;
QChar c;
};
Command X(QChar('c'));
void Foo(QChar );
void bar() { Foo(X.c); }
| Make this testcase harder, to test the read case as well. | Make this testcase harder, to test the read case as well.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@20245 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swif... |
c4dcd41c7d7531f824051c9193ae40b2680878e5 | ouzel/scene/ModelData.cpp | ouzel/scene/ModelData.cpp | // Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "ModelData.hpp"
#include "core/Engine.hpp"
#include "utils/Utils.hpp"
namespace ouzel
{
namespace scene
{
bool ModelData::init(Box3 newBoundingBox,
const std::vector<uint32_t> indices... | // Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "ModelData.hpp"
#include "core/Engine.hpp"
#include "utils/Utils.hpp"
namespace ouzel
{
namespace scene
{
bool ModelData::init(Box3 newBoundingBox,
const std::vector<uint32_t> indices... | Check the result of the init methods | Check the result of the init methods
| C++ | unlicense | elvman/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elnormous/ouzel |
b5785156315284fcbfecf996f6303b4263309618 | test/CodeGenCXX/castexpr-basepathsize-threshold.cpp | test/CodeGenCXX/castexpr-basepathsize-threshold.cpp | // RUN: %clang_cc1 %s -emit-llvm-only -o -
// https://bugs.llvm.org/show_bug.cgi?id=38356
// We only check that we do not crash.
// ASAN increases stack usage, so we are hitting stack overflow before reaching
// recursive template instantiation limit.
// XFAIL: darwin && asan
template <typename a, a b(unsigned), int... | // RUN: %clang_cc1 %s -emit-llvm-only -o -
// https://bugs.llvm.org/show_bug.cgi?id=38356
// We only check that we do not crash.
// This test can exceed stack usage in some configurations, so unless we can
// properly handle that don't run it.
// REQUIRES: thread_support
template <typename a, a b(unsigned), int c, u... | Fix a passing XFAIL test | Fix a passing XFAIL test
Now that we can gracefully handle stack exhaustion, this test was passing in
darwin && asan. Instead, just unsupport it when threading is unavailable.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@370270 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang |
0ad4cbbd10454e79999a702e875e9bc14f5ba171 | src/server/server.cpp | src/server/server.cpp | #include "server.h"
using namespace std;
void thread_loop(UserHandler * handler) {
while (!handler->isReady()) {
usleep(10000);
}
try {
handler->loop();
}
catch (...) {
try {
JsonDict answer;
JsonString s = JsonString("Unknown error");
... | #include "server.h"
using namespace std;
void thread_loop(UserHandler * handler) {
while (!handler->isReady()) {
usleep(10000);
}
try {
handler->loop();
}
catch (...) {
try {
JsonDict answer;
answer.add("Error", new JsonString("Unknown error"));
... | Fix non head json allocation | Fix non head json allocation
| C++ | mit | C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209 |
84959efee40ef0288ccdd4ae1f4dd08dd497875d | test/Layout/itanium-union-bitfield.cpp | test/Layout/itanium-union-bitfield.cpp | // RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \
// RUN: | FileCheck %s
union A {
int f1: 3;
A();
};
A::A() {}
union B {
char f1: 35;
B();
};
B::B() {}
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union A
// CHECK-NEXT: 0 | ... | // RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \
// RUN: | FileCheck %s
union A {
int f1: 3;
A();
};
A::A() {}
union B {
char f1: 35;
B();
};
B::B() {}
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union A
// CHECK-NEXT: 0 | ... | Test case B: fixed check rule | Test case B: fixed check rule
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@220272 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
721542e63541426d001938355eda5523692eb286 | src/signals.cc | src/signals.cc | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <csignal>
#include <ncurses.h>
#include <cstdlib>
#include "signals.hh"
extern "C" void myexit(int i) {... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <csignal>
#include <ncurses.h>
#include <cstdlib>
#include "signals.hh"
extern "C" {
static void myexit... | Use block `extern "C"` so can make function `static` | Use block `extern "C"` so can make function `static`
| C++ | mpl-2.0 | czipperz/vick,czipperz/vick |
57dd603406218f46868893f7bb47fec855ada108 | test/Index/reparsed-live-issue.cpp | test/Index/reparsed-live-issue.cpp | // RUN: CINDEXTEST_EDITING=1 LIBCLANG_DISABLE_CRASH_RECOVERY=1 c-index-test -test-load-source-reparse 2 none -remap-file-0=%S/Inputs/reparse-issue.h,%S/Inputs/reparse-issue.h-0 -remap-file-1=%S/Inputs/reparse-issue.h,%S/Inputs/reparse-issue.h-1 -- %s 2>&1 | FileCheck %s
#include "Inputs/reparse-issue.h"
// CHECK: repa... | // RUN: env CINDEXTEST_EDITING=1 LIBCLANG_DISABLE_CRASH_RECOVERY=1 c-index-test -test-load-source-reparse 2 none -remap-file-0=%S/Inputs/reparse-issue.h,%S/Inputs/reparse-issue.h-0 -remap-file-1=%S/Inputs/reparse-issue.h,%S/Inputs/reparse-issue.h-1 -- %s 2>&1 | FileCheck %s
#include "Inputs/reparse-issue.h"
// CHECK: ... | Add missing "env" so that test added in r327322 passes on Windows bots. | Add missing "env" so that test added in r327322 passes on Windows bots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@327354 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
7a75415adb5872b865df53ee43ecf2cf56d50590 | chrome/browser/extensions/extension_storage_apitest.cc | chrome/browser/extensions/extension_storage_apitest.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Storage) {
ASSERT_TRUE(RunExtensionTest("storage"... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
// This test is disabled. See bug 25746
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_St... | Disable ExtensionApiTest.Storage because it crashes the browser_tests too. | Disable ExtensionApiTest.Storage because it crashes the browser_tests too.
BUG:25746
Review URL: http://codereview.chromium.org/328024
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@30021 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,jar... |
aba32fd8d09e4d617d8310b6aa83191198ddd399 | excercise04/sort/quick.cpp | excercise04/sort/quick.cpp | #include <stdio.h>
#include <string.h> /* memcpy() */
#include <stdlib.h> /* rand() */
#include "quick.hpp"
#include "swap.hpp"
void quick(int *data, const int size_of_data)
{
return quick(data, 0, size_of_data - 1);
}
void quick(int *data, const int start, const int end)
{
int size = end - start + 1;
if... | #include <stdio.h>
#include <string.h> /* memcpy() */
#include <stdlib.h> /* rand() */
#include "quick.hpp"
#include "swap.hpp"
void quick(int *data, const int size_of_data)
{
return quick(data, 0, size_of_data - 1);
}
void quick(int *data, const int start, const int end)
{
if(start >= end) return; /* Base c... | Remove variable 'size' (not used) | Remove variable 'size' (not used)
| C++ | mit | kdzlvaids/algorithm_and_practice-pknu-2016,kdzlvaids/algorithm_and_practice-pknu-2016 |
98588c8fc66440781a65630d51d3920bedb2a2d0 | doc/examples/ecdsa.cpp | doc/examples/ecdsa.cpp | #include <botan/botan.h>
#include <botan/ecdsa.h>
#include <memory>
#include <iostream>
using namespace Botan;
int main()
{
try
{
std::auto_ptr<RandomNumberGenerator> rng(
RandomNumberGenerator::make_rng());
EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.8");
std::... | #include <botan/botan.h>
#include <botan/ecdsa.h>
#include <memory>
#include <iostream>
using namespace Botan;
int main()
{
try
{
std::auto_ptr<RandomNumberGenerator> rng(
RandomNumberGenerator::make_rng());
EC_Domain_Params params = get_EC_Dom_Pars_by_oid("1.3.132.0.8");
std... | Correct OID for ECDSA param | Correct OID for ECDSA param
| C++ | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/... |
9106df53c6d24d3ad3800fe6a4006b9461c9fd8b | src/main.cpp | src/main.cpp | #include "sparse_matrix.hpp" // SparseMatrix
#include "parser.hpp" // getRows, parsePuzzle
int main(int argc, char **argv) {
std::string puzzle =
"-----------0-\n"
"-----------00\n"
"----00--0000-\n"
"00000000000--\n"
"00000000000--\n"
"0000000000---\n"
"00000000-----\n"
"0000000------\... | #include "sparse_matrix.hpp" // SparseMatrix
#include "parser.hpp" // getRows, parsePuzzle
constexpr char puzzle28[] =
"-00--0000-\n"
"00--000000\n"
"00--000000\n"
"000--00000\n"
"00000--000\n"
"000000--00\n"
"000000--00\n"
"-0000--00-";
constexpr char puzzle42[] =
"-----------0-\n"
"------... | Add more hardcoded puzzles and a TODO. | Add more hardcoded puzzles and a TODO.
| C++ | mit | altayhunter/Pentomino-Puzzle-Solver,altayhunter/Pentomino-Puzzle-Solver |
653bb3d64057f11c5c9a8f539ba57be549097cee | src/wallet/test/wallet_test_fixture.cpp | src/wallet/test/wallet_test_fixture.cpp | #include "wallet/test/wallet_test_fixture.h"
#include "rpc/server.h"
#include "wallet/db.h"
#include "wallet/wallet.h"
WalletTestingSetup::WalletTestingSetup(const std::string& chainName):
TestingSetup(chainName)
{
bitdb.MakeMock();
bool fFirstRun;
pwalletMain = new CWallet("wallet_test.dat");
pw... | // Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/test/wallet_test_fixture.h"
#include "rpc/server.h"
#include "wallet/db.h"
#include "wallet/wallet.h"
WalletTes... | Add copyright header to wallet_text_fixture.cpp | Add copyright header to wallet_text_fixture.cpp
I created the file but forgot to add this header.
| C++ | mit | Kogser/bitcoin,r8921039/bitcoin,yenliangl/bitcoin,MarcoFalke/bitcoin,dscotese/bitcoin,peercoin/peercoin,sebrandon1/bitcoin,argentumproject/argentum,fsb4000/bitcoin,dgarage/bc2,nbenoit/bitcoin,spiritlinxl/BTCGPU,bitcoinec/bitcoinec,zcoinofficial/zcoin,RHavar/bitcoin,guncoin/guncoin,21E14/bitcoin,svost/bitcoin,litecoin-p... |
e34026519d8505e3e6fcd4f5cd1669c52125eb66 | folly/executors/test/GlobalCPUExecutorTest.cpp | folly/executors/test/GlobalCPUExecutorTest.cpp | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | Remove dead includes in folly/executors | Remove dead includes in folly/executors
Reviewed By: Orvid
Differential Revision: D38385209
fbshipit-source-id: 1d962f7b7f21ef7892727ec5d3ed315dfba06951
| C++ | apache-2.0 | facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly |
d24d18b9e3f4f98bd820ae1f25a7c9b5c5fac0f3 | chrome/browser/extensions/extension_storage_apitest.cc | chrome/browser/extensions/extension_storage_apitest.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Storage) {
ASSERT_TRUE(RunExtensionTest("storage"... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#if defined(OS_LINUX)
// See http://crbug.com/42943.
#define MAYBE_Storage FLAKY_Storage
#el... | Mark ExtensionApiTest.Storage as flaky. BUG=42943 TEST=none TBR=rafaelw | [Linux] Mark ExtensionApiTest.Storage as flaky.
BUG=42943
TEST=none
TBR=rafaelw
Review URL: http://codereview.chromium.org/1810012
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@46083 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C++ | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
c6db986ac17e929b766c4715436670a261b3c985 | chrome/browser/extensions/extension_storage_apitest.cc | chrome/browser/extensions/extension_storage_apitest.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Storage) {
ASSERT_TRUE(RunExtensionTest("storage"... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#if defined(OS_WIN)
// Always fails on Windows after r110181: http://crbug.com/104419.
#defi... | Mark ExtensionApiTest.Storage as failing, it always fails on Windows after r110181. | Mark ExtensionApiTest.Storage as failing, it always fails on Windows after r110181.
BUG=104419
TEST=none
Review URL: http://codereview.chromium.org/8573032
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@110244 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gav... |
135d82811172c6f3c9f51135820a3a950337f0c4 | display/graphics/VRGraphicsWindowNode.cpp | display/graphics/VRGraphicsWindowNode.cpp | /*
* Copyright Regents of the University of Minnesota, 2016. This software is released under the following license: http://opensource.org/licenses/
* Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu).
*
* Code author(s):
* Dan Orban (dtorban)... | /*
* Copyright Regents of the University of Minnesota, 2016. This software is released under the following license: http://opensource.org/licenses/
* Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu).
*
* Code author(s):
* Dan Orban (dtorban)... | Clear current context for window. | Clear current context for window.
| C++ | bsd-3-clause | ivlab/MinVR2,tsgouros/MinVR2,ivlab/MinVR2,ivlab/MinVR,tsgouros/MinVR2,tsgouros/MinVR2,ivlab/MinVR,ivlab/MinVR2 |
b10d9a116e8c0d3aa60d4adf3ea63f795f83ff09 | Structures/BinaryTree.cpp | Structures/BinaryTree.cpp | #include <iostream>
using namespace std;
struct node {
int val = 0;
node * l = nullptr;
node * r = nullptr;
};
inline node* build(node *head, int value){
node *son = new node;
son->val = value;
if (head == nullptr) return son;
node * aux = head, * nxt = head;
while(nxt != nullptr){
aux = nxt;
if... | #include <bits/stdc++.h>
using namespace std;
struct node{
int val;
node *left;
node *right;
node( int v ){
val = v;
left = nullptr;
right = nullptr;
}
node* insert(node *n, int val){
if(n == nullptr ) return new node(val);
if(n->val > val) n->left = insert(n->left, val);
else n->right = insert(n->ri... | Create useful binary tree, add some assets. | Create useful binary tree, add some assets.
| C++ | mit | xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book,xdanielsb/Marathon-book |
6136f5bce981c485fc7b27df8152e8641be9d90b | source/gloperate/source/input/AbstractEventProvider.cpp | source/gloperate/source/input/AbstractEventProvider.cpp |
#include <gloperate/input/AbstractEventProvider.h>
#include <gloperate/input/AbstractEvent.h>
#include <gloperate/navigation/AbstractMapping.h>
namespace gloperate
{
AbstractEventProvider::AbstractEventProvider()
{
}
AbstractEventProvider::~AbstractEventProvider()
{
for (AbstractMapping * mapping : m_mapping... |
#include <gloperate/input/AbstractEventProvider.h>
#include <gloperate/input/AbstractEvent.h>
#include <gloperate/navigation/AbstractMapping.h>
namespace gloperate
{
AbstractEventProvider::AbstractEventProvider()
{
}
AbstractEventProvider::~AbstractEventProvider()
{
// Unregister from mappings
// Note: ... | Fix crash on shutdown caused by a dependency loop | Fix crash on shutdown caused by a dependency loop
| C++ | mit | p-otto/gloperate,lanice/gloperate,cginternals/gloperate,lanice/gloperate,Beta-Alf/gloperate,cginternals/gloperate,hpicgs/gloperate,j-o/gloperate,hpicgs/gloperate,lanice/gloperate,p-otto/gloperate,lanice/gloperate,j-o/gloperate,Beta-Alf/gloperate,Beta-Alf/gloperate,hpicgs/gloperate,Beta-Alf/gloperate,j-o/gloperate,Beta-... |
e56b5a5256dcb7f791ad3d68703fe51123ce3513 | tools/seec-trace-view/Annotations.cpp | tools/seec-trace-view/Annotations.cpp | //===- tools/seec-trace-view/Annotations.cpp ------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | //===- tools/seec-trace-view/Annotations.cpp ------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | Check that annotations.xml documents match our expectations. | Check that annotations.xml documents match our expectations.
| C++ | mit | mheinsen/seec,seec-team/seec,mheinsen/seec,seec-team/seec,seec-team/seec,seec-team/seec,mheinsen/seec,seec-team/seec,mheinsen/seec,mheinsen/seec |
2c867c0f15d9ca07a159bb424c0af5c1a69b07f5 | src/default_benchmarks.cpp | src/default_benchmarks.cpp | /*
* Copyright © 2017 Collabora Ltd.
*
* This file is part of vkmark.
*
* vkmark is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any late... | /*
* Copyright © 2017 Collabora Ltd.
*
* This file is part of vkmark.
*
* vkmark is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 2.1 of the License, or (at your option) any late... | Add cel shading scene to default bencharks | main: Add cel shading scene to default bencharks
| C++ | lgpl-2.1 | vkmark/vkmark,vkmark/vkmark,vkmark/vkmark |
74a3dc292d3e48e74836fb953fe793b65e652c54 | demos/embedded/anomaly/src/webview.cpp | demos/embedded/anomaly/src/webview.cpp | #include "webview.h"
#include <QPaintEvent>
WebView::WebView(QWidget *parent)
: QWebView(parent)
, inLoading(false)
{
connect(this, SIGNAL(loadStarted()), this, SLOT(newPageLoading()));
connect(this, SIGNAL(loadFinished(bool)), this, SLOT(pageLoaded(bool)));
}
void WebView::paintEvent(QPaintEvent *ev... | #include "webview.h"
#include <QPaintEvent>
#include <QWebFrame>
WebView::WebView(QWidget *parent)
: QWebView(parent)
, inLoading(false)
{
connect(this, SIGNAL(loadStarted()), this, SLOT(newPageLoading()));
connect(this, SIGNAL(loadFinished(bool)), this, SLOT(pageLoaded(bool)));
page()->setPreferr... | Change the prefered content size of the anomaly browser | Change the prefered content size of the anomaly browser
Having the prefered content size equals to the screen size gives
some bad layout on devices.
| C++ | lgpl-2.1 | pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-q... |
431ccd0612f3341332ee34676e8d9fa84fcb8479 | topcoder/SRM/145/ImageDithering/ImageDithering/main.cpp | topcoder/SRM/145/ImageDithering/ImageDithering/main.cpp | #include <iostream>
#include <vector>
#include <assert.h>
using namespace std;
class ImageDithering {
public:
int count(string dithered, vector<string> screen) {
unsigned d[26];
for (int i = 0; i < 26; i++) {
d[i] = 0;
}
for (unsigned i = 0; i < dithered.length(); i++) {
d[dithered[i] - '... | #include <iostream>
#include <vector>
#include <assert.h>
using namespace std;
class ImageDithering {
public:
int count(string dithered, vector<string> screen) {
unsigned d[26];
for (int i = 0; i < 26; i++) {
d[i] = 0;
}
for (unsigned i = 0; i < dithered.length(); i++) {
d[dithered[i] - '... | Fix SRM 144, Div 2, Problem ImageDithering | Fix SRM 144, Div 2, Problem ImageDithering
- previously without system test checks
- replaced '0' with 'A' for dithered variable
| C++ | mit | mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming |
0340603cbf76992b3818ce23a6b012c8c2146575 | src/ScopedLock.cpp | src/ScopedLock.cpp |
#include <libclientserver.h>
ScopedLock::ScopedLock(Mutex *m) {
m_mutex = m;
m_mutex->Lock();
m_locked = true;
}
ScopedLock::ScopedLock(Mutex *m, std::function<void()> ErrorHandler) :
m_mutex(m)
{
if (m->TryLock()) {
ErrorHandler();
}
m_locked = true;
}
ScopedLock::~ScopedLock() ... |
#include <libclientserver.h>
ScopedLock::ScopedLock(Mutex *m) :
m_mutex(m)
{
m_mutex->Lock();
m_locked = true;
}
ScopedLock::ScopedLock(Mutex *m, std::function<void()> ErrorHandler) :
m_mutex(m)
{
if (m->TryLock()) {
ErrorHandler();
}
m_locked = true;
}
ScopedLock::~ScopedLock() ... | Move m_mutex to init list | Move m_mutex to init list
| C++ | mit | mistralol/libclientserver,mistralol/libclientserver |
c11f5b35265c7a5e8e94e45c7e4928485de8fdf4 | cpp/geometria/rotating_calipers/polygon_diam.cpp | cpp/geometria/rotating_calipers/polygon_diam.cpp | ll rotatingCalipers(){
int ans = 0;
int i = 0, j = dn.size()-1;
while(i < (int)up.size() - 1 || j > 0){
// Entrou aqui: up[i] e dn[j] eh um antipodal pair
ans = max(ans, dist2(up[i],dn[j]));
if(i == (int)up.size()-1) j--;
else if(j == 0) i++;
else{
// Verifica qual o menor angulo a ser rotaciona... | ll rotatingCalipers(){
int ans = 0;
int i = 0, j = dn.size()-1;
while(i < (int)up.size() - 1 || j > 0){
// Entrou aqui: up[i] e dn[j] eh um antipodal pair
ans = max(ans, dist2(up[i],dn[j]));
if(i == (int)up.size()-1) j--;
else if(j == 0) i++;
else{
// Verifica qual o menor angulo a ser rotaciona... | Revert "Alterando uma func (usando funcoes do CP3)" | Revert "Alterando uma func (usando funcoes do CP3)"
This reverts commit 746ce1d335d4c23920b02f56431817e9f72e4ffc.
| C++ | unlicense | alvarob/ref_maratonas,alvarob/ref_maratonas |
811a72af88f5122024640db99af0a06607ea63e0 | targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS/usb_stdio.cpp | targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS/usb_stdio.cpp | /* mbed Microcontroller Library
* Copyright (c) 2021 ARM Limited
* Copyright (c) 2021 Embedded Planet, Inc.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | /* mbed Microcontroller Library
* Copyright (c) 2021 ARM Limited
* Copyright (c) 2021 Embedded Planet, Inc.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... | Remove requirement for USB library if not required | EP_ATLAS: Remove requirement for USB library if not required
Move inclusion of USB header file within the existing
conditional pre-processor directive so the USB library
is not required if USB stdio console is disable
| C++ | apache-2.0 | mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed |
a093d2fca40b81ef4eeee9085c360f534ab0a684 | src/demos/vehicle/m113/M113_SimpleDriveline.cpp | src/demos/vehicle/m113/M113_SimpleDriveline.cpp | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | Fix case in name of included header | Fix case in name of included header
| C++ | bsd-3-clause | jcmadsen/chrono,amelmquist/chrono,projectchrono/chrono,jcmadsen/chrono,rserban/chrono,rserban/chrono,projectchrono/chrono,rserban/chrono,dariomangoni/chrono,amelmquist/chrono,rserban/chrono,tjolsen/chrono,andrewseidl/chrono,amelmquist/chrono,jcmadsen/chrono,Milad-Rakhsha/chrono,andrewseidl/chrono,armanpazouki/chrono,jc... |
5de23c54939b6e13047b014a504c17af6b131300 | Capu/src/util/ConsoleLogAppender.cpp | Capu/src/util/ConsoleLogAppender.cpp | #include "capu/util/ConsoleLogAppender.h"
#include "capu/util/LogMessage.h"
#include "capu/os/Console.h"
#include <stdio.h>
namespace capu
{
ConsoleLogAppender::~ConsoleLogAppender()
{
}
void ConsoleLogAppender::logMessage(const LogMessage& logMessage)
{
m_logMutex.lock();
switch(... | #include "capu/util/ConsoleLogAppender.h"
#include "capu/util/LogMessage.h"
#include "capu/os/Console.h"
#include "capu/os/Time.h"
#include <stdio.h>
namespace capu
{
ConsoleLogAppender::~ConsoleLogAppender()
{
}
void ConsoleLogAppender::logMessage(const LogMessage& logMessage)
{
m_logMute... | Add timestamp to console log output | Add timestamp to console log output
Print absolute system time in seconds as float with millisecond
precision
Change-Id: Ie81dcd0b2f9a1b38cbf6fb8965dc765535ea1c76
| C++ | apache-2.0 | bmwcarit/capu,bmwcarit/capu |
6a87880cb590e05d6dd7492141503447dd894a17 | Magick++/fuzz/encoder_fuzzer.cc | Magick++/fuzz/encoder_fuzzer.cc | #include <cstdint>
#include <Magick++/Blob.h>
#include <Magick++/Image.h>
#include "utils.cc"
#define FUZZ_ENCODER_STRING_LITERAL_X(name) FUZZ_ENCODER_STRING_LITERAL(name)
#define FUZZ_ENCODER_STRING_LITERAL(name) #name
#ifndef FUZZ_ENCODER
#define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL_X(FUZZ_IMAGEMAGICK_ENCODER)... | #include <cstdint>
#include <Magick++/Blob.h>
#include <Magick++/Image.h>
#include "utils.cc"
#define FUZZ_ENCODER_STRING_LITERAL_X(name) FUZZ_ENCODER_STRING_LITERAL(name)
#define FUZZ_ENCODER_STRING_LITERAL(name) #name
#ifndef FUZZ_ENCODER
#define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL_X(FUZZ_IMAGEMAGICK_ENCODER)... | Handle the null encoder properly in the encoder fuzz | Handle the null encoder properly in the encoder fuzz
Credit OSS-Fuzz | C++ | apache-2.0 | Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick |
0bdadd490ba04c47832162f7d1ffcdbb4a3d3ec1 | excercise05/03.cpp | excercise05/03.cpp | #include <stdio.h>
#include "../excercise04/make_random_data/make_random_data.hpp"
#include "../excercise04/sort/quicksort.hpp"
int get_index_smallest(const int k, int *data, const int start, const int end)
{
if(k < 0 || k > end) return -1; /* Base case */
int p = partition(data, start, end);
if(k == 0) ... | #include <stdio.h>
#include "../excercise04/make_random_data/make_random_data.hpp"
#include "../excercise04/sort/quicksort.hpp"
int quickselection(const int k, int *data, const int start, const int end)
{
if(start >= end) return data[start];
int pivot = partition(data, start, end);
int p = pivot - start;... | Change the entire logic of Quickselect | Change the entire logic of Quickselect
| C++ | mit | kdzlvaids/algorithm_and_practice-pknu-2016,kdzlvaids/algorithm_and_practice-pknu-2016 |
c2302e8e2eb6d5b51c273bdd4986c7b61867da32 | test/testsupport/perf_test_histogram_writer_no_protobuf.cc | test/testsupport/perf_test_histogram_writer_no_protobuf.cc | /*
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Fix compile error when rtc_enable_protobuf is false | Fix compile error when rtc_enable_protobuf is false
When configuring without protobuf this test fails to compile with the error:
perf_test_histogram_writer_no_protobuf.cc:20:1: error: non-void function does not return a value
Bug: None
Change-Id: I8e2676ee4b5284eac08e648fc43bdfc585fc5d64
Reviewed-on: https://webrtc-r... | C++ | bsd-3-clause | TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc |
ab3a4c90287d7af4b210c8e8128690465a602282 | compiler/traversals/findTypeVariables.cpp | compiler/traversals/findTypeVariables.cpp | #include "findTypeVariables.h"
#include "type.h"
#include "symbol.h"
#include "symtab.h"
FindVariableType::FindVariableType(Vec<VariableType*>* init_variableTypes) {
variableTypes = init_variableTypes;
}
void FindVariableType::preProcessSymbol(Symbol* symbol) {
if (dynamic_cast<TypeSymbol*>(symbol)) {
forv_Ve... | #include "findTypeVariables.h"
#include "type.h"
#include "symbol.h"
#include "symtab.h"
FindVariableType::FindVariableType(Vec<VariableType*>* init_variableTypes) {
found = false;
variableTypes = init_variableTypes;
}
void FindVariableType::preProcessSymbol(Symbol* symbol) {
if (dynamic_cast<TypeSymbol*>(symbo... | Fix uninitialized variable which was causing valgrind failures. (the "found" variable was not initialised to "false"). | Fix uninitialized variable which was causing valgrind failures.
(the "found" variable was not initialised to "false").
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@3054 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| C++ | apache-2.0 | CoryMcCartan/chapel,hildeth/chapel,sungeunchoi/chapel,chizarlicious/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/cha... |
36807d54d9b8755a374f3012bdebabe177c06f44 | workdir/ScopeAnalysis/LORAnalysis/SDACalculatePositions.cpp | workdir/ScopeAnalysis/LORAnalysis/SDACalculatePositions.cpp | #include "./SDACalculatePositions.h"
SDACalculatePositions::SDACalculatePositions(const char* name, const char* title,
const char* in_file_suffix, const char* out_file_suffix, const double threshold,
const double positionCut)
: JPetCommonAnalysisModule( name, title, in_file_suffix, out_file_suf... | #include "./SDACalculatePositions.h"
SDACalculatePositions::SDACalculatePositions(const char* name, const char* title,
const char* in_file_suffix, const char* out_file_suffix, const double threshold,
const double positionCut)
: JPetCommonAnalysisModule( name, title, in_file_suffix, out_file_suf... | Add proper cut on position | Add proper cut on position
| C++ | mit | wictus/PhDFramework,wictus/PhDFramework,wictus/PhDFramework,wictus/PhDFramework,wictus/PhDFramework |
6bae1f4b44874299dd7a54abde25c5224479bb8b | brightray/browser/browser_main_parts.cc | brightray/browser/browser_main_parts.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-CHROMIUM file.
#include "browser/browser_main_parts.h"
#include "browser/browser_context.h"
#include "browser/web_ui_controller_factory.h"
#include "net/pr... | // 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-CHROMIUM file.
#include "browser/browser_main_parts.h"
#include "browser/browser_context.h"
#include "browser/web_ui_controller_factory.h"
#include "net/pr... | Set up a native screen on Windows | Set up a native screen on Windows
This is needed to prevent a crash inside aura::WindowTreeHost::InitCompositor.
| C++ | mit | electron/electron,tonyganch/electron,miniak/electron,Floato/electron,shiftkey/electron,shiftkey/electron,gerhardberger/electron,gerhardberger/electron,seanchas116/electron,renaesop/electron,wan-qy/electron,bpasero/electron,renaesop/electron,seanchas116/electron,the-ress/electron,shiftkey/electron,the-ress/electron,gerh... |
b8811ad2ca62f1cbd907751c5e7154848cf9f831 | test/libcxx/memory/aligned_allocation_macro.pass.cpp | test/libcxx/memory/aligned_allocation_macro.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Handle AppleClang 9 and 10 in XFAILs for aligned allocation tests | [libcxx] Handle AppleClang 9 and 10 in XFAILs for aligned allocation tests
I forgot that those don't behave like Clang trunk, again.
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@349427 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
0f7b3036c4fa2d86f4bbc249530aec51a842b2dc | tools/mugen-converter/src/generator.cpp | tools/mugen-converter/src/generator.cpp | #include "generator.h"
#include <iostream>
#include <fstream>
using namespace Mugen;
CharacterGenerator::CharacterGenerator(const std::string & filename):
filename(filename){
}
CharacterGenerator::~CharacterGenerator(){
}
void CharacterGenerator::output(const std::string & file){
Mugen::PythonStream out;
o... | #include "generator.h"
#include <iostream>
#include <fstream>
using namespace Mugen;
CharacterGenerator::CharacterGenerator(const std::string & filename):
filename(filename){
}
CharacterGenerator::~CharacterGenerator(){
}
void CharacterGenerator::output(const std::string & file){
Mugen::PythonStream out;
o... | Indent code to more or less visualize the indentation of the outputed python code. | Indent code to more or less visualize the indentation of the outputed python code.
git-svn-id: 39e099a8ed5324aded674b764a67f7a08796d9a7@5819 662fdd30-d327-0410-a531-f549c87e1e9e
| C++ | bsd-3-clause | Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown,Sevalecan/paintown,boyjimeking/paintown |
070a4198d605dd3ea24bfe07387d0305f79ed503 | quic/masque/masque_utils.cc | quic/masque/masque_utils.cc | // Copyright 2019 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 "quic/masque/masque_utils.h"
namespace quic {
ParsedQuicVersionVector MasqueSupportedVersions() {
QuicVersionInitializeSupportForIetfDraft();... | // Copyright 2019 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 "quic/masque/masque_utils.h"
namespace quic {
ParsedQuicVersionVector MasqueSupportedVersions() {
QuicVersionInitializeSupportForIetfDraft();... | Support all HTTP/3 versions in MASQUE | Support all HTTP/3 versions in MASQUE
This means we'll use h3,h3-29 instead of just h3, and
that'll help simplify IETF MASQUE interop events.
This code is not used in production.
PiperOrigin-RevId: 360223566
Change-Id: I519f6785e130075cb1ed75fcc45f0b3160f3c1b2
| C++ | bsd-3-clause | google/quiche,google/quiche,google/quiche,google/quiche |
28485232e411b4a296f629bcabd3904dbb9cd7be | test/FixIt/fixit.cpp | test/FixIt/fixit.cpp | // RUN: %clang_cc1 -pedantic -fixit %s -o - | %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ -
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should
compile cleanly w... | // RUN: %clang_cc1 -pedantic -Wall -fixit %s -o - | %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x c++ -
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should
compi... | Make this fix-it test case actually fail when there is a problem; add a test for access declarations and remove a (broken) test for removal of default arguments. | Make this fix-it test case actually fail when there is a problem; add
a test for access declarations and remove a (broken) test for removal
of default arguments.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@95032 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... |
5e90a53a67135bb6c64b84d4a3c481d529a30eb9 | src/driver/servo_krs/src/servo_krs_node.cpp | src/driver/servo_krs/src/servo_krs_node.cpp | #include<ros/ros.h>
#include<ics3/ics>
#include<servo_msgs/IdBased.h>
ics::ICS3* driver {nullptr};
ros::Publisher pub;
void move(const servo_msgs::IdBased::ConstPtr& msg) {
servo_msgs::IdBased result;
result.id = msg->id;
try {
result.angle = driver->move(msg->id, ics::Angle::newDegree(msg->angle));
pub... | #include<ros/ros.h>
#include<servo_msgs/IdBased.h>
#include<ics3/ics>
ics::ICS3* driver {nullptr};
ros::Publisher pub;
void move(const servo_msgs::IdBased::ConstPtr& msg) {
servo_msgs::IdBased result;
result.id = msg->id;
try {
result.angle = driver->move(msg->id, ics::Angle::newDegree(msg->angle));
pub... | Update servo_krs for runtime speed | Update servo_krs for runtime speed
あと使う時に変数を宣言しろの教えの通り、NodeHandleの宣言を遅らせた
ぶっちゃけ短すぎて最適化する余地がなくて悲しみ。
| C++ | mit | agrirobo/arcsys2,agrirobo/arcsys2 |
4698dc9fbe31781ff7e04dd4cdb72f16fbbea32e | src/Watermark/View/WatermarkDataFactory.cpp | src/Watermark/View/WatermarkDataFactory.cpp | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "WatermarkDataFactory.h"
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
WatermarkDataFactory::WatermarkDataFactory(const std::string& appName,
con... | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "WatermarkDataFactory.h"
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
WatermarkDataFactory::WatermarkDataFactory(const std::string& appName,
con... | Fix for MPLY-7058. Buddy: Paul | Fix for MPLY-7058. Buddy: Paul
| C++ | bsd-2-clause | eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/ee... |
4ed438099c616c4e21e9a6099b8f27fbc9eb3011 | chrome/browser/app_modal_dialog_queue.cc | chrome/browser/app_modal_dialog_queue.cc | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/app_modal_dialog_queue.h"
#include "chrome/browser/browser_list.h"
void AppModalDialogQueue::AddDialog(AppModalDialog*... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/app_modal_dialog_queue.h"
#include "chrome/browser/browser_list.h"
void AppModalDialogQueue::AddDialog(AppModalDialog*... | Set active_dialog_ before showing it, since showing a dialog can sometimes actually move to the next one in the queue instead. | Set active_dialog_ before showing it, since showing a dialog can sometimes
actually move to the next one in the queue instead.
BUG=26398
TEST=Make sure alert/confirm boxes work properly. Make sure a background
tab that shows a (delayed) alert box works. Same with a background
browser. Especially make sure http... | C++ | bsd-3-clause | zcbenz/cefode-chromium,anirudhSK/chromium,Chilledheart/chromium,Chilledheart/chromium,timopulkkinen/BubbleFish,jaruba/chromium.src,bright-sparks/chromium-spacewalk,ltilve/chromium,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,ChromiumWebApps/chromium,markYoungH/chromium.src,hgl88... |
9ac5dc98057f26f0fdcdaf4898f80fee413aa60e | src/driver/servo_krs/src/servo_krs_node.cpp | src/driver/servo_krs/src/servo_krs_node.cpp | #include<ros/ros.h>
#include<servo_msgs/IdBased.h>
#include<ics3/ics>
ics::ICS3* driver {nullptr};
ros::Publisher pub;
void move(const servo_msgs::IdBased::ConstPtr& msg) {
servo_msgs::IdBased result;
try {
result.angle = driver->move(msg->id, ics::Angle::newDegree(msg->angle));
result.id = msg->id;
p... | #include<ros/ros.h>
#include<servo_msgs/IdBased.h>
#include<ics3/ics>
ics::ICS3* driver {nullptr};
ros::Publisher pub;
void move(const servo_msgs::IdBased::ConstPtr& msg) {
servo_msgs::IdBased result;
try {
result.angle = driver->move(msg->id, ics::Angle::newDegree(msg->angle));
result.id = msg->id;
p... | Add message of reading path | Add message of reading path
| C++ | mit | agrirobo/arcsys2,agrirobo/arcsys2 |
887b4773cb96ff0f80be8e72d5e63ad1bec63f83 | modules/ti.App/linux/linux_app_binding.cpp | modules/ti.App/linux/linux_app_binding.cpp | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include <kroll/kroll.h>
#include "../app_binding.h"
namespace ti
{
void AppBinding::Restart(const ValueList& args,... | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include <kroll/kroll.h>
#include "../app_binding.h"
namespace ti
{
void AppBinding::Restart(const ValueList& args,... | Throw an exception when App.restart fails on Linux. | Throw an exception when App.restart fails on Linux.
| C++ | apache-2.0 | wyrover/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,appcelerator/titanium_desktop,jvkops/titanium_desktop,jvkops/titanium_desktop,jvkops/titanium_desktop,appcelerator/titanium_desktop,jvkops/titanium_desktop,appcelerator/titanium_desktop,wyrover/titanium_desktop,appcelerat... |
6bce6ae92aa868bbee81f204931699043e36257a | wangle/client/persistence/test/TestUtil.cpp | wangle/client/persistence/test/TestUtil.cpp | #include <wangle/client/persistence/test/TestUtil.h>
namespace wangle {
std::string getPersistentCacheFilename() {
char filename[] = "/tmp/fbtls.XXXXXX";
int fd = mkstemp(filename);
close(fd);
EXPECT_TRUE(unlink(filename) != -1);
return std::string(filename);
}
}
| /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <wa... | Handle tmp dir on Android | Handle tmp dir on Android
Summary:
There is no universally accessible tmpdir on Android which
means mkstemp fails. This diff calls a function that the test runner
should provide to fill a valid temporary directory.
Reviewed By: yangchi
Differential Revision: D2842034
fb-gh-sync-id: 186c931ddf4424cb482c8fbd728ae3787... | C++ | bsd-3-clause | Dalzhim/wangle,facebook/wangle,facebook/wangle,Dalzhim/wangle,facebook/wangle |
a99754d59f6716deba1bd4715a143550208b1b29 | base/thread_local_posix.cc | base/thread_local_posix.cc | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/thread_local.h"
#include <pthread.h>
#include "base/logging.h"
namespace base {
// static
void ThreadLocalPlatform::AllocateSl... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/thread_local.h"
#include <pthread.h>
#include "base/logging.h"
namespace base {
// static
void ThreadLocalPlatform::AllocateSl... | Fix a typo that broke the posix build. | Fix a typo that broke the posix build.
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@1681 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | dednal/chromium.src,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,dednal/chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,robclark/chromium,Chilled... |
19678c4e00053047761990a79d1358cae5073f85 | src/platform/x86_pc/rand.cpp | src/platform/x86_pc/rand.cpp | #include <kernel/rng.hpp>
#include <kernel/cpuid.hpp>
#include <kernel/os.hpp>
#include <arch.hpp>
#include <kprint>
extern "C" void intel_rdrand(uint64_t*);
extern "C" void intel_rdseed(uint64_t*);
static void fallback_entropy(uint64_t* res)
{
uint64_t clock = (uint64_t) res;
// this is horrible, better solution ... | #include <kernel/rng.hpp>
#include <kernel/cpuid.hpp>
#include <kernel/os.hpp>
#include <arch.hpp>
#include <kprint>
extern "C" void intel_rdrand(uint64_t*);
extern "C" void intel_rdseed(uint64_t*);
static void fallback_entropy(uint64_t* res)
{
uint64_t clock = (uint64_t) res;
// this is horrible, better solution ... | Add missing returns in RNG init, and fail avoid TSC with solo5 | x86: Add missing returns in RNG init, and fail avoid TSC with solo5
| C++ | apache-2.0 | hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,alfred-bratterud/IncludeOS,hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,AndreasAakesson/IncludeOS,AndreasAakesson/IncludeOS,alfred-bratterud/IncludeOS,AnnikaH/IncludeOS,alfred-bratterud/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,mnordslet... |
dd6cec16e91983651a73ec8a4aadfcfb5bf23fc1 | test/Sema/cxx-namespace.cpp | test/Sema/cxx-namespace.cpp | // RUN: clang -fsyntax-only -verify %s
namespace A { // expected-error {{error: previous definition is here}}
int A;
void f() { A = 0; }
}
void f() { A = 0; } // expected-error {{error: unexpected namespace name 'A': expected expression}}
int A; // expected-error {{error: redefinition of 'A' as different k... | // RUN: clang -fsyntax-only -verify %s
namespace A { // expected-error {{error: previous definition is here}}
int A;
void f() { A = 0; }
}
void f() { A = 0; } // expected-error {{error: unexpected namespace name 'A': expected expression}}
int A; // expected-error {{error: redefinition of 'A' as different kind of ... | Convert CFLF to LF. CRLF was causing this test to fail under Mac OS X. | Convert CFLF to LF. CRLF was causing this test to fail under Mac OS X.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@50388 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
5f54d0c7484a504e8bed70e5930d10275c120606 | src/tests/test-getusername.cpp | src/tests/test-getusername.cpp | #include <unistd.h>
#include <gtest/gtest.h>
#include "getusername.h"
TEST(GetUserName,simple)
{
// allocate a WCHAR_T buffer to receive username
DWORD lpnSize = 64;
WCHAR_T lpBuffer[lpnSize];
BOOL result = GetUserName(lpBuffer, &lpnSize);
// GetUserName returns 1 on success
ASSERT_EQ(1, result);
// get expe... | #include <string>
#include <vector>
#include <unistd.h>
#include <gtest/gtest.h>
#include <scxcorelib/scxstrencodingconv.h>
#include "getusername.h"
using std::string;
using std::vector;
using SCXCoreLib::Utf16leToUtf8;
TEST(GetUserName,simple)
{
// allocate a WCHAR_T buffer to receive username
DWORD lpnSize = 64;
... | Test UTF-16 output of GetUserName | Test UTF-16 output of GetUserName
| C++ | mit | daxian-dbw/PowerShell,bmanikm/PowerShell,kmosher/PowerShell,bingbing8/PowerShell,PaulHigin/PowerShell,KarolKaczmarek/PowerShell,TravisEz13/PowerShell,jsoref/PowerShell,PaulHigin/PowerShell,bmanikm/PowerShell,jsoref/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,PaulHigin/PowerShell,daxian-dbw/PowerShell,bingbi... |
26e42a768446b61035f1540d132374c6bef1e8a2 | lib/ubsan/ubsan_init_standalone.cc | lib/ubsan/ubsan_init_standalone.cc | //===-- ubsan_init_standalone.cc ------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- ubsan_init_standalone.cc ------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add missing header that defines SANITIZER_CAN_USE_PREINIT_ARRAY | [UBSan] Add missing header that defines SANITIZER_CAN_USE_PREINIT_ARRAY
Otherwise this compile definition was undefined, and .preinit_array
was never used on the platforms that support it.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@237045 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
8b320c034faacffa253da56d829635a4aa51f276 | opencv_detector/src/lib/filter/binary_threshold.cpp | opencv_detector/src/lib/filter/binary_threshold.cpp | #include "binary_threshold.h"
namespace TooManyPeeps {
BinaryThreshold::BinaryThreshold(const cv::Mat& original, cv::Mat& result, int threshold)
: ProcessFilter(original, result) {
this->threshold = threshold;
}
BinaryThreshold::BinaryThreshold(cv::Mat& image, int threshold)
: BinaryThreshold(origi... | #include "binary_threshold.h"
namespace TooManyPeeps {
BinaryThreshold::BinaryThreshold(const cv::Mat& original, cv::Mat& result, int threshold)
: ProcessFilter(original, result) {
this->threshold = threshold;
}
BinaryThreshold::BinaryThreshold(cv::Mat& image, int threshold)
: BinaryThreshold(image... | Fix wrong constructor argument in binary thresh | Fix wrong constructor argument in binary thresh
| C++ | mit | 99-bugs/toomanypeeps,99-bugs/toomanypeeps,99-bugs/toomanypeeps |
268c056b33bbebcacf329974e6d88467b1b90d1b | modules/ti.Network/osx/osx_network_status.cpp | modules/ti.Network/osx/osx_network_status.cpp | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009, 2010 Appcelerator, Inc. All Rights Reserved.
*/
#include "../network_status.h"
#include <SystemConfiguration/SCNetworkReachability.h>
namespace ti
{
void Net... | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009, 2010 Appcelerator, Inc. All Rights Reserved.
*/
#include "../network_status.h"
#include <SystemConfiguration/SCNetworkReachability.h>
namespace ti
{
static S... | Clean up allocated memory during shutdown in OS X NetworkStatus. | Clean up allocated memory during shutdown in OS X NetworkStatus.
| C++ | apache-2.0 | jvkops/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,appcelerator/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,jvkops/titanium_desktop,jvkops/titanium_desktop,wyrover/titanium_desktop,wyrover/titanium_desktop,appcelerator/titanium_deskto... |
2c030a419d511c1003776e3a4d2870eddf869b86 | brightray/common/content_client.cc | brightray/common/content_client.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-CHROMIUM file.
#include "common/content_client.h"
#include "common/application_info.h"
#include "base/stringprintf.h"
#include "base/string_util.h"
#inclu... | // 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-CHROMIUM file.
#include "common/content_client.h"
#include "common/application_info.h"
#include "base/stringprintf.h"
#include "base/string_util.h"
#inclu... | Update for webkit header moves | Update for webkit header moves
| C++ | mit | Floato/electron,the-ress/electron,Floato/electron,wan-qy/electron,thomsonreuters/electron,bpasero/electron,the-ress/electron,miniak/electron,wan-qy/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,rajatsingla28/electron,rajatsingla28/electron,rreimann/electron,rreimann/electron,biblerule/UMCTeln... |
f03a7b5e659de2387a3f16226443e8390d2da59d | chrome/browser/ui/webui/print_preview_ui.cc | chrome/browser/ui/webui/print_preview_ui.cc | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/print_preview_ui.h"
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/print_preview_ui.h"
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/... | Print Preview: Fix typo from r78639. | Print Preview: Fix typo from r78639.
BUG=76707
TEST=page count initialized correctly in print preview.
R=arv@chromium.org
Review URL: http://codereview.chromium.org/6688041
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@78747 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | mogoweb/chromium-crosswalk,littlstar/chromium.src,hujiajie/pa-chromium,Just-D/chromium-1,Chilledheart/chromium,rogerwang/chromium,Chilledheart/chromium,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,robclark/chromium,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,timopulkkinen/BubbleF... |
7b652b9653a7a0d02b0f40e86d66ad6b6655afbd | libpatlms/src/util/remove_file.cpp | libpatlms/src/util/remove_file.cpp | #include <patlms/util/remove_file.h>
#include <patlms/util/detail/cant_remove_file_exception.h>
#include <string>
#include <cstring>
#include <cerrno>
#include <boost/log/trivial.hpp>
using namespace std;
namespace util
{
void RemoveFile(const std::string &path, detail::SystemInterfacePtr system) {
BOOST_LOG_TRIV... | #include <patlms/util/remove_file.h>
#include <patlms/util/detail/cant_remove_file_exception.h>
#include <string>
#include <cstring>
#include <cerrno>
#include <boost/log/trivial.hpp>
using namespace std;
namespace util
{
void RemoveFile(const std::string &path, detail::SystemInterfacePtr system) {
BOOST_LOG_TRIV... | Fix debug messages in library when removing file | Fix debug messages in library when removing file
| C++ | mit | chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas |
13d216ab4d5e8a21a61ec5e1a5d835c237df076d | src/tokenizer/generic_tokenizer_factory.cpp | src/tokenizer/generic_tokenizer_factory.cpp | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If... | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2016 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If... | Add explicit conversion to bool. | Add explicit conversion to bool.
Required by standard and g++ 5.0.
| C++ | mpl-2.0 | ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita |
a36b037646390b22b9f4764bd67ed7ebe9bcd027 | src/planner/main_action_planner/src/send_posture.cpp | src/planner/main_action_planner/src/send_posture.cpp | #include "impl_send_posture.hpp"
#include "servo_msgs/KrsServoDegree.h"
std::map<std::string, const SendPosture*> SendPostureFactory::sends;
const SendPosture* SendPostureFactory::get(const std::string& name, ros::NodeHandle& nh) {
std::map<std::string, const SendPosture*>::const_iterator found_it = sends.find(nam... | #include "impl_send_posture.hpp"
#include "algorithm"
#include "servo_msgs/KrsServoDegree.h"
std::map<std::string, const SendPosture*> SendPostureFactory::sends;
const SendPosture* SendPostureFactory::get(const std::string& name, ros::NodeHandle& nh) {
std::map<std::string, const SendPosture*>::const_iterator fou... | Implement krs send posture method. | Implement krs send posture method.
| C++ | mit | agrirobo/arcsys2,agrirobo/arcsys2 |
4524e9e4e8897039d6a0433e5472b7b93089c0ae | source/Pictus/reg_language_translator.cpp | source/Pictus/reg_language_translator.cpp | #include "reg_language_translator.h"
#include "orz/types.h"
namespace Reg {
namespace Internal {
// TODO: Centralize (de)serialization the same way as for keyboard events
boost::optional<LanguageTranslator::external_type> LanguageTranslator::get_value(internal_type const sval) {
if (sval == "English") {
r... | #include "reg_language_translator.h"
#include "orz/types.h"
namespace Reg {
namespace Internal {
// TODO: Centralize (de)serialization the same way as for keyboard events
boost::optional<LanguageTranslator::external_type> LanguageTranslator::get_value(internal_type const sval) {
if (sval == "English") {
r... | Fix compile errors on Linux | Fix compile errors on Linux
| C++ | mit | poppeman/Pictus,poppeman/Pictus,poppeman/Pictus |
5d31f67eb3974b2ab0b72de5a7c430b8fe146156 | src/mesh_node.cpp | src/mesh_node.cpp | #include "./mesh_node.h"
#include <string>
#include "./graphics/gl.h"
MeshNode::MeshNode(std::string assetFilename, int meshIndex,
std::shared_ptr<Graphics::Mesh> mesh,
Eigen::Matrix4f transformation)
: assetFilename(assetFilename), meshIndex(meshIndex), mesh(mesh),
transfor... | #include "./mesh_node.h"
#include <string>
#include "./graphics/gl.h"
MeshNode::MeshNode(std::string assetFilename, int meshIndex,
std::shared_ptr<Graphics::Mesh> mesh,
Eigen::Matrix4f transformation)
: assetFilename(assetFilename), meshIndex(meshIndex), mesh(mesh),
transfor... | Update bounding box in MeshNode::setTransformation. | Update bounding box in MeshNode::setTransformation.
| C++ | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
07fec59c45da5f8d6582fb15da3368c19c955a0a | test/test_json.cpp | test/test_json.cpp | #include <fstream>
#include <iostream>
#include "person.pb.h"
//#include "../pb2json.h"
#include <pb2json.h>
using namespace std;
int main(int argc,char *argv[])
{
// Test 1: read binary PB from a file and convert it to JSON
ifstream fin("dump",ios::binary);
fin.seekg(0,ios_base::end);
size_t len = fin.tellg();
... | #include <fstream>
#include <iostream>
#include "person.pb.h"
//#include "../pb2json.h"
#include <pb2json.h>
using namespace std;
int main(int argc,char *argv[])
{
// Test 1: read binary PB from a file and convert it to JSON
ifstream fin("dump",ios::binary);
fin.seekg(0,ios_base::end);
size_t len = fin.tellg();
... | Add test translate protobuf object to json directly | Add test translate protobuf object to json directly
| C++ | mit | iguchunhui/pb2json,iguchunhui/pb2json,shafreeck/pb2json,shafreeck/pb2json |
d782b7df4630450c760f4483f6cc8c62686a319f | tests/dailyfileappendertest/dailyfileappendertest.cpp | tests/dailyfileappendertest/dailyfileappendertest.cpp | #include "log4qt/dailyfileappender.h"
#include "log4qt/simplelayout.h"
#include <QTemporaryDir>
#include <QtTest/QtTest>
using Log4Qt::DailyFileAppender;
class DailyFileAppenderTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void init();
void cleanup();
void testFileCreation();
private:
QTe... | #include "log4qt/dailyfileappender.h"
#include "log4qt/loggingevent.h"
#include "log4qt/simplelayout.h"
#include <QTemporaryDir>
#include <QtTest/QtTest>
using Log4Qt::DailyFileAppender;
class DailyFileAppenderTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void init();
void cleanup();
void test... | Add test for simple append using DailyFileAppender | Add test for simple append using DailyFileAppender
| C++ | apache-2.0 | MEONMedical/Log4Qt,MEONMedical/Log4Qt |
b9b8dcd2cf38a121661f446ea68c668f176453de | test/RCBTest.cpp | test/RCBTest.cpp | #include <fstream>
#include "rang.hpp"
int main()
{
std::cout << rang::fg::blue << "\nShould be blue";
std::ofstream out("out.txt");
std::streambuf *coutbuf = std::cout.rdbuf();
std::cout.rdbuf(out.rdbuf());
std::string word = "not blue";
std::cout << "START " << rang::fg::blue << word << " END";
std::cout.rd... | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "rang.hpp"
#include <fstream>
#include <string>
std::string RCB(std::string input)
{
std::ofstream out("out.txt");
std::streambuf *coutbuf = std::cout.rdbuf();
std::cout.rdbuf(out.rdbuf());
std::cout << rang::fg::blue << input << rang::style::reset;
std:... | Add a simple write-then-read test | Add a simple write-then-read test
| C++ | unlicense | agauniyal/rang,agauniyal/rang |
f2e5eb9352fcb27bbc6af89c8f67a58fea0a30cf | remoting/host/event_executor_mac.cc | remoting/host/event_executor_mac.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/event_executor_mac.h"
namespace remoting {
EventExecutorMac::EventExecutorMac(Capturer* capturer)
: EventExecutor(capturer... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/event_executor_mac.h"
#include "remoting/protocol/messages_decoder.h"
namespace remoting {
EventExecutorMac::EventExecutorM... | Fix build break on mac. TBR=ajwong | Fix build break on mac.
TBR=ajwong
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@61726 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ltilve/chromium,markYoungH/chromium.src,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,rogerwang/chromium,hujiajie/pa-chromium,M4sse/chromium.src,robclark/chromium,Just-D/chr... |
6e98efd1f3787a80ff2ad381ff3837a6221e4105 | tests/ppapi_browser/crash/ppapi_crash_via_exit_call.cc | tests/ppapi_browser/crash/ppapi_crash_via_exit_call.cc | // Copyright (c) 2011 The Native Client 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 "native_client/src/shared/platform/nacl_check.h"
#include "native_client/tests/ppapi_test_lib/test_interface.h"
namespace {
// This wi... | // Copyright (c) 2011 The Native Client 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 <unistd.h>
#include "native_client/src/shared/platform/nacl_check.h"
#include "native_client/tests/ppapi_test_lib/test_interface.h"
na... | Add include for unistd.h for _exit. Otherwise, the exit test won't build w/ pnacl. | Add include for unistd.h for _exit.
Otherwise, the exit test won't build w/ pnacl.
R= polina@google.com,dspringer@google.com
BUG=
TEST= ./scons platform=x86-32 bitcode=1 run_ppapi_crash_browser_test
Review URL: http://codereview.chromium.org/7453063
git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@6282 fcba33aa-... | C++ | bsd-3-clause | nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client |
316bb1188f1645ca1bacad71c008ab98f3932015 | test/std/thread/futures/futures.task/futures.task.members/ctor2.fail.cpp | test/std/thread/futures/futures.task/futures.task.members/ctor2.fail.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Fix diagnostic in verify test to match new Clang output | Fix diagnostic in verify test to match new Clang output
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@307450 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
33bf1f2afba1af5de2762c0d7ca1a7466cc670bf | test/CodeGenCXX/microsoft-abi-try-throw.cpp | test/CodeGenCXX/microsoft-abi-try-throw.cpp | // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -mconstructor-aliases -fcxx-exceptions -fexceptions -fno-rtti -DTRY | FileCheck %s -check-prefix=TRY
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -mconstructor-aliases -fcxx-exceptions -fexceptions -fno-rtti -DTHROW | FileCheck %s -check-prefi... | // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -mconstructor-aliases -fcxx-exceptions -fexceptions -fno-rtti -DTRY | FileCheck %s -check-prefix=TRY
// FIXME: Disabled until catch IRgen change lands.
// RUNX: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -mconstructor-aliases -fcxx-exceptions -fexce... | Disable a Clang test until the begincatch change lands | Disable a Clang test until the begincatch change lands
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@231087 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
3c32e4c557833a874b3f1ac2497eb68a07fdfd1b | tuto-samples/fastarduino/softuart_2_istream.cpp | tuto-samples/fastarduino/softuart_2_istream.cpp | #include <fastarduino/soft_uart.h>
constexpr const board::InterruptPin RX = board::InterruptPin::D0_PD0_PCI2;
#define PCI_NUM 2
REGISTER_UART_PCI_ISR(RX, PCI_NUM)
// Buffers for UARX
static const uint8_t INPUT_BUFFER_SIZE = 64;
static char input_buffer[INPUT_BUFFER_SIZE];
int main()
{
board::init();
sei();
... | #include <fastarduino/soft_uart.h>
constexpr const board::InterruptPin RX = board::InterruptPin::D0_PD0_PCI2;
#define PCI_NUM 2
REGISTER_UARX_PCI_ISR(RX, PCI_NUM)
// Buffers for UARX
static const uint8_t INPUT_BUFFER_SIZE = 64;
static char input_buffer[INPUT_BUFFER_SIZE];
int main()
{
board::init();
sei();
... | Fix tutorial SW UART example | Fix tutorial SW UART example
| C++ | lgpl-2.1 | jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib |
2c1b9c3fa3d920aa6ccf843b40c1eb0f1ad04d58 | test/SemaCXX/return-noreturn.cpp | test/SemaCXX/return-noreturn.cpp | // RUN: %clang_cc1 %s -fsyntax-only -verify -Wmissing-noreturn -Wno-unreachable-code
// A destructor may be marked noreturn and should still influence the CFG.
namespace PR6884 {
struct abort_struct {
abort_struct() {} // Make this non-POD so the destructor is invoked.
~abort_struct() __attribute__((noreturn... | // RUN: %clang_cc1 %s -fsyntax-only -verify -Wmissing-noreturn -Wno-unreachable-code
// A destructor may be marked noreturn and should still influence the CFG.
namespace PR6884 {
struct abort_struct {
abort_struct() {} // Make this non-POD so the destructor is invoked.
~abort_struct() __attribute__((noreturn... | Update test case, with comment to later investigate the correct behavior. Now the behavior is at least consistent. | Update test case, with comment to later investigate the correct behavior. Now the behavior is at least consistent.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@112335 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
1c17b2425b34fbfd12caa3c6ce570aaeaca048a9 | src/log/LoggerFactory.cpp | src/log/LoggerFactory.cpp | #include <log4cpp/Category.hh>
#include <log4cpp/Appender.hh>
#include <log4cpp/OstreamAppender.hh>
#include <log4cpp/Layout.hh>
#include <log4cpp/PatternLayout.hh>
#include <log4cpp/Priority.hh>
#include "LoggerFactory.h"
using namespace Log;
bool LoggerFactory::isCreated = false;
log4cpp::Category *LoggerFactory::... | #include <log4cpp/Category.hh>
#include <log4cpp/Appender.hh>
#include <log4cpp/OstreamAppender.hh>
#include <log4cpp/Layout.hh>
#include <log4cpp/PatternLayout.hh>
#include <log4cpp/Priority.hh>
#include "LoggerFactory.h"
using namespace Log;
bool LoggerFactory::isCreated = false;
log4cpp::Category *LoggerFactory::... | Change logging level to INFO (DEBUG is slowing down the execution too much). | Change logging level to INFO (DEBUG is slowing down the execution too much).
| C++ | agpl-3.0 | janvojt/ffwdnet,janvojt/ffwdnet,janvojt/ffwdnet |
65192b8d2d30dbb76947d37f41cfb79c23da0c13 | src/nvcore/FileSystem.cpp | src/nvcore/FileSystem.cpp | // This code is in the public domain -- castano@gmail.com
#include "FileSystem.h"
#include <nvcore/nvcore.h>
#if NV_OS_WIN32
#include <direct.h>
#else
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#endif
using namespace nv;
bool FileSystem::exists(const char * path)
{
#if NV_OS... | // This code is in the public domain -- castano@gmail.com
#include "FileSystem.h"
#include <nvcore/nvcore.h>
#if NV_OS_WIN32
#include <direct.h>
#else
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#endif
using namespace nv;
bool FileSystem::exists(const char * path)
{
#if NV_OS... | Implement exists with access instead of stat. | Implement exists with access instead of stat.
git-svn-id: bd2008fbba0f7d30fd6598b54f2cd88503fdd2e4@802 95f4ed2b-212e-0410-8b90-d31948207fce
| C++ | mit | svn2github/nvidia-texture-tools,casseveritt/nvidia-texture-tools,salamanderrake/nvidia-texture-tools,hymerman/nvidia-texture-tools,hymerman/nvidia-texture-tools,svn2github/nvidia-texture-tools,salamanderrake/nvidia-texture-tools,hymerman/nvidia-texture-tools,salamanderrake/nvidia-texture-tools,hymerman/nvidia-texture-t... |
08be1803eecb5ae464440812ea06e79b21289053 | util/thread_status_util_debug.cc | util/thread_status_util_debug.cc | // Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <atomic>
#include "ro... | // Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <atomic>
#include "ro... | Fix bad performance in debug mode | Fix bad performance in debug mode
Summary:
See github issue 574: https://github.com/facebook/rocksdb/issues/574
Basically when we're running in DEBUG mode we're calling `usleep(0)` on
every mutex lock. I bisected the issue to
https://reviews.facebook.net/D36963. Instead of calling sleep(0), this
diff just avoids call... | C++ | bsd-3-clause | anagav/rocksdb,norton/rocksdb,makelivedotnet/rocksdb,geraldoandradee/rocksdb,JackLian/rocksdb,bbiao/rocksdb,rDSN-Projects/rocksdb.replicated,norton/rocksdb,caijieming-baidu/rocksdb,tsheasha/rocksdb,IMCG/RcoksDB,makelivedotnet/rocksdb,ryneli/rocksdb,JoeWoo/rocksdb,wenduo/rocksdb,dkorolev/rocksdb,Vaisman/rocksdb,lgscofie... |
dd9956fc3ec075de35fc19d92ce4dd11b7834f13 | tensorflow/compiler/tf2xla/kernels/replica_id_op.cc | tensorflow/compiler/tf2xla/kernels/replica_id_op.cc | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Remove the fallback to the old bridge for tf.XlaReplicaId | Remove the fallback to the old bridge for tf.XlaReplicaId
PiperOrigin-RevId: 409854723
Change-Id: I6d099e1874c56f24ada98b81036e14647af50c76
| C++ | apache-2.0 | yongtang/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tens... |
3607f8640d952cc65ec9b4c3647755fe70cb5330 | test/std/containers/sequences/vector/vector.cons/assign_size_value.pass.cpp | test/std/containers/sequences/vector/vector.cons/assign_size_value.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Remove some debugging printout lines. No functionality change. | Remove some debugging printout lines. No functionality change.
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@236949 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.