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 |
|---|---|---|---|---|---|---|---|---|---|
b54685628948eddd1e33a4b9a70792d0d1590875 | src/ofp/yaml/ycontrollermaxlen.cpp | src/ofp/yaml/ycontrollermaxlen.cpp | // Copyright 2014-present Bill Fisher. All rights reserved.
#include "ofp/yaml/yllvm.h"
#include "ofp/yaml/ycontrollermaxlen.h"
using namespace ofp;
using ofp::yaml::EnumConverterSparse;
#define OFP_NAME(s) \
{ OFPCML_##s, #s }
OFP_BEGIN_IGNORE_GLOBAL_CONSTRUCTOR
static std::pair<OFPControllerMaxLen, llvm::Strin... | // Copyright 2014-present Bill Fisher. All rights reserved.
#include "ofp/yaml/yllvm.h"
#include "ofp/yaml/ycontrollermaxlen.h"
using namespace ofp;
using ofp::yaml::EnumConverterSparse;
#define OFP_NAME(s) \
{ OFPCML_##s, #s }
OFP_BEGIN_IGNORE_GLOBAL_CONSTRUCTOR
static std::pair<OFPControllerMaxLen, llvm::Strin... | Add 'MAX' to ControllerMaxLen enum set. | Add 'MAX' to ControllerMaxLen enum set.
| C++ | mit | byllyfish/libofp,byllyfish/libofp,byllyfish/libofp,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr |
7af31ae824382d704e68daf4ef7478fe11433d00 | lib/lsan/lsan_linux.cc | lib/lsan/lsan_linux.cc | //=-- lsan_linux.cc -------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //=-- lsan_linux.cc -------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix missing sanitizer platform include | Fix missing sanitizer platform include
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@298884 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 |
a28f0f8ea9b58a2efd02618cfd2f68f50e201c48 | lib/src/compiler/evaluation/functions/alert.cc | lib/src/compiler/evaluation/functions/alert.cc | #include <puppet/compiler/evaluation/functions/alert.hpp>
#include <puppet/compiler/evaluation/functions/call_context.hpp>
#include <puppet/compiler/evaluation/scope.hpp>
#include <puppet/logging/logger.hpp>
using namespace std;
using namespace puppet::runtime;
namespace puppet { namespace compiler { namespace evalua... | #include <puppet/compiler/evaluation/functions/alert.hpp>
#include <puppet/compiler/evaluation/functions/call_context.hpp>
#include <puppet/compiler/evaluation/scope.hpp>
#include <puppet/logging/logger.hpp>
using namespace std;
using namespace puppet::runtime;
namespace puppet { namespace compiler { namespace evalua... | Remove output of scope without a resource from logging functions. | Remove output of scope without a resource from logging functions.
When the logging functions are used from a scope without a resource (i.e. not
compiling a catalog), then they print "Scope(main)" for the scope.
This commit removes that prefix so only the logged messages come through.
| C++ | apache-2.0 | peterhuene/puppetcpp |
6de9edefdf249af36008b12b8c45d46826f69879 | test/Driver/android-standalone.cpp | test/Driver/android-standalone.cpp | // Test header and library paths when Clang is used with Android standalone
// toolchain.
//
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: -target arm-linux-androideabi \
// RUN: -B%S/Inputs/basic_android_tree \
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
// RUN: | File... | // Test header and library paths when Clang is used with Android standalone
// toolchain.
//
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: -target arm-linux-androideabi \
// RUN: -B%S/Inputs/basic_android_tree \
// RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \
// RUN: | File... | Fix test failure on Windowns. | Fix test failure on Windowns.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@163112 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
7625b7e2046db247b0d50ee0a976f88d9031a48d | chrome/browser/default_plugin_uitest.cc | chrome/browser/default_plugin_uitest.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/basictypes.h"
#include "base/file_path.h"
#include "build/build_config.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrom... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/basictypes.h"
#include "base/file_path.h"
#include "build/build_config.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrom... | Disable DefaultPluginUITest::DefaultPluginLoadTest on windows as it crashes. | Disable DefaultPluginUITest::DefaultPluginLoadTest on windows as it crashes.
BUG=57952
TEST=none
TBR=thakis@chromium.org
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@61501 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | yitian134/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-c... |
c4b580b59351882b0bfc0a94e0b1a1d0e32e3451 | test/CodeGenCXX/debug-info-namespace.cpp | test/CodeGenCXX/debug-info-namespace.cpp | // RUN: %clang -g -S -fverbose-asm %s -o - | FileCheck %s
// CHECK: TAG_namespace
namespace A {
enum numbers {
ZERO,
ONE
};
}
using namespace A;
numbers n;
| // RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
namespace A {
int i;
}
// CHECK: [[FILE:![0-9]*]] = {{.*}} ; [ DW_TAG_file_type ] [{{.*}}/test/CodeGenCXX/debug-info-namespace.cpp]
// CHECK: [[VAR:![0-9]*]] = {{.*}}, metadata [[NS:![0-9]*]], metadata !"i", {{.*}} ; [ DW_TAG_variable ] [i]
// CHECK: [[NS]] = {{... | Make front-end debug info namespace test frontend-only & more specific without overconstraining it | Make front-end debug info namespace test frontend-only & more specific without overconstraining it
The backend portion of this test will be committed to LLVM's test suite.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@177485 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
e7d3af54737b7787c92ea03588dd4301b29d0899 | lib/Support/PluginLoader.cpp | lib/Support/PluginLoader.cpp | //===-- PluginLoader.cpp - Implement -load command line option ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- PluginLoader.cpp - Implement -load command line option ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix for PR2881: fix a small leak exposed by valgrind, using a ManagedStatic. | Fix for PR2881: fix a small leak exposed by valgrind, using a ManagedStatic.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@57984 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GP... |
abf9fdf98f1afd3184aa670e167fcaa837916c5a | src/BracketedSentenceWidget.cpp | src/BracketedSentenceWidget.cpp | #include "BracketedSentenceWidget.hh"
#include <QDebug>
#include <QPainter>
#include <QTextEdit>
#include <QSettings>
BracketedSentenceWidget::BracketedSentenceWidget(QWidget *parent)
:
QTextEdit(parent),
d_stylesheet(":/stylesheets/bracketed-sentence.xsl"),
d_transformer(d_stylesheet)
{
QFontMetrics ... | #include "BracketedSentenceWidget.hh"
#include <QDebug>
#include <QPainter>
#include <QTextEdit>
#include <QSettings>
BracketedSentenceWidget::BracketedSentenceWidget(QWidget *parent)
:
QTextEdit(parent),
d_stylesheet(":/stylesheets/bracketed-sentence.xsl"),
d_transformer(d_stylesheet)
{
QFontMetrics ... | Use document font in BracketedWindow. | Use document font in BracketedWindow.
| C++ | lgpl-2.1 | rug-compling/dact,evdmade01/dact,evdmade01/dact,rug-compling/dact,evdmade01/dact |
30a9da00e931a0bd4669caeaeafc49325ecf5321 | src/mpi/main.cpp | src/mpi/main.cpp | #include <boost/mpi.hpp>
#include <iostream>
#include <string>
#include <set>
#include <boost/serialization/string.hpp>
#include "InstrumentFactories.h"
#include "Stochastic.h"
#include "Ising.h"
#include "Measurement.h"
namespace mpi = boost::mpi;
int main(int argc, char* argv[])
{
mpi::environment env(argc, ar... | #include <boost/mpi.hpp>
#include <iostream>
#include <string>
#include <set>
#include <boost/serialization/string.hpp>
#include "InstrumentFactories.h"
#include "Stochastic.h"
#include "Ising.h"
#include "Measurement.h"
namespace mpi = boost::mpi;
int main(int argc, char* argv[])
{
mpi::environment env(argc, ar... | Use correct bound for static work allocation. | Use correct bound for static work allocation.
| C++ | mit | marblar/demon,marblar/demon,marblar/demon,marblar/demon |
fb0feaaa87739ba85b5556639e571a2121b40799 | mimosa/git/tree.cc | mimosa/git/tree.cc | #include "tree.hh"
#include "tree-entry.hh"
namespace mimosa
{
namespace git
{
Tree::Tree(git_repository * repo,
const git_oid * id)
: tree_(nullptr)
{
if (id)
git_tree_lookup(&tree_, repo, id);
}
Tree::Tree(git_repository * repo,
const git_oid... | #include "tree.hh"
#include "tree-entry.hh"
namespace mimosa
{
namespace git
{
Tree::Tree(git_repository * repo,
const git_oid * id)
: tree_(nullptr)
{
if (id)
git_tree_lookup(&tree_, repo, id);
}
Tree::Tree(git_repository * repo,
const git_oid... | Fix compilation against recent libigt2 | Fix compilation against recent libigt2
| C++ | mit | abique/mimosa,abique/mimosa |
f2c2ac08b606a07a4de9e6071e9ae47a6d6f5792 | src/timermanager.cpp | src/timermanager.cpp | #include "stdafx.h"
#include <dukat/timermanager.h>
namespace dukat
{
Timer* TimerManager::create_timer(float interval, std::function<void(void)> callback, bool recurring)
{
auto timer = std::make_unique<Timer>(++last_id, interval, callback, recurring);
auto res = timer.get();
timers.pu... | #include "stdafx.h"
#include <dukat/timermanager.h>
namespace dukat
{
Timer* TimerManager::create_timer(float interval, std::function<void(void)> callback, bool recurring)
{
auto timer = std::make_unique<Timer>(++last_id, interval, callback, recurring);
auto res = timer.get();
timers.pu... | Fix timer manager update loop | Fix timer manager update loop
| C++ | mit | bdamer/dukat,bdamer/dukat |
36890172473858b789b63b273224258db5e29548 | bindings/python/Trajectory.cpp | bindings/python/Trajectory.cpp | /*
* Chemharp, an efficient IO library for chemistry file formats
* Copyright (C) 2015 Guillaume Fraux
*
* 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/
*/
#includ... | /*
* Chemharp, an efficient IO library for chemistry file formats
* Copyright (C) 2015 Guillaume Fraux
*
* 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/
*/
#includ... | Update the Python interface with the new names | Update the Python interface with the new names
| C++ | bsd-3-clause | lscalfi/chemfiles,lscalfi/chemfiles,chemfiles/chemfiles,chemfiles/chemfiles,lscalfi/chemfiles,lscalfi/chemfiles,Luthaf/Chemharp,chemfiles/chemfiles,Luthaf/Chemharp,chemfiles/chemfiles,Luthaf/Chemharp |
42d3e9d818d4827ae001c50dd190fd477ffce593 | examples/xorg-gtest.cpp | examples/xorg-gtest.cpp | /*****************************************************************************
*
* X testing environment - Google Test environment feat. dummy x server
*
* Copyright (C) 2011 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public Lic... | #include <xorg/gtest/test.h>
using namespace xorg::testing;
/**
* @example xorg-gtest.cpp
*
* This is an example for using the fixture
* xorg::testing::Test for your own tests. Please
* make sure that you have the X.org dummy display
* driver installed on your system and that you execute
* the test with root p... | Remove license header from example | Remove license header from example
It clutters up the example and is unnecessary for such a small file.
| C++ | mit | freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest |
6e995228d8387d0a955ba77189578a6b018e38c1 | core/how_to_scan_images/ReduceColours.cpp | core/how_to_scan_images/ReduceColours.cpp | // Copyright 2015 Matt Heard
// http://mattheard.net
// matt@mattheard.net
// @mattheard
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
int main(int argc, char **argv) {
using std::string;
const int expectedNumArgs = 3;
if (argc != expectedNumArgs) {
const string cmdName = "Co... | // Copyright 2015 Matt Heard
// http://mattheard.net
// matt@mattheard.net
// @mattheard
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
using cv::Mat;
Mat buildLookUpTable(const int divideWith) {
return Mat();
}
int main(int argc, char **argv) {
using std::string;
const int expected... | Add call to build lookup table | Add call to build lookup table
| C++ | mit | MattHeard/OpenCV-Tutorials |
9e0b05bbc4bb88d1b34fb2147429dc4ad7bd25cd | tensorflow/compiler/tf2xla/xla_gpu_backend.cc | tensorflow/compiler/tf2xla/xla_gpu_backend.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... | Enable Sort for the XLA GPU backend. | Enable Sort for the XLA GPU backend.
We now have an implementation of sort for the XLA GPU backend.
PiperOrigin-RevId: 206537201
| C++ | apache-2.0 | aam-at/tensorflow,aselle/tensorflow,dancingdan/tensorflow,kevin-coder/tensorflow-fork,AnishShah/tensorflow,Bismarrck/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,asimshankar/tensorflow,arborh/tensorflow,ageron/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,ppwwyyx... |
7886347b2db00aacc798b1aef46ba6ab55122703 | collection/fenwick.cpp | collection/fenwick.cpp | #include <bits/stdc++.h>
using namespace std;
struct Fenwick {
vector<int> data;
int len;
Fenwick(int l) {
len = l;
data.assign(l + 1, 0);
}
void update(int at, int by) {
while (at < len) {
data[at] += by;
at |= (at + 1);
}
}
int query(int at) {
int res = 0;
while (at >= 0) {
res += dat... | #include <bits/stdc++.h>
using namespace std;
class Fenwick {
private:
vector<int> data;
vector<int> dataMul;
int len;
bool range;
void internalUpdate(int at, int mul, int add) {
while (at < len) {
dataMul[at] += mul;
data[at] += add;
at |= (at + 1);
}
}
int queryStd(int at) {
int res = 0;
... | Add range update to Fenwick | Add range update to Fenwick
| C++ | mit | jamesjaya/mylib |
1f5ae42dfc6d7483cc8b8e6ab3701cdfb78d97ad | main.cpp | main.cpp | /* Main Process for CLI tlisp */
/* Compile using g++ -std=c++11 -Wall main.cpp -o tlisp */
#include <iostream>
#include <string>
#include <iomanip>
/* OSX / Linux Libraries */
// #include <readline.h>
// #include <editline/history.h>
using std::cin;
using std::cout;
using std::endl;
using std::setw;
using std::stri... | /* Main Process for CLI tlisp */
/* Compile using g++ -std=c++11 -Wall main.cpp -o tlisp */
#include <iostream>
#include <iomanip>
#include <string.h>
/* OSX / Linux Libraries */
// #include <readline.h>
// #include <editline/history.h>
using std::cin;
using std::cout;
using std::endl;
using std::setw;
void remove_... | Add function to remove whitespace from input buffer. | Add function to remove whitespace from input buffer.
| C++ | mit | georobGWJ/tlisp,georobGWJ/tlisp |
1aa3fb20bcff8214a7e6d55ffff0cfaef611d158 | src/PAL/COM/sockets/ssl/mbedTLS/ssl_write_internal.cpp | src/PAL/COM/sockets/ssl/mbedTLS/ssl_write_internal.cpp | //
// Copyright (c) 2018 The nanoFramework project contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <ssl.h>
#include "mbedtls.h"
int ssl_write_internal( int sd, const char* data, size_t req_len)
{
... | //
// Copyright (c) 2018 The nanoFramework project contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <ssl.h>
#include "mbedtls.h"
int ssl_write_internal( int sd, const char* data, size_t req_len)
{
... | Tidy code to follow guidelines | Tidy code to follow guidelines
Signed-off-by: José Simões <1616ff7a83d123f98f8f38fa2524eab406644781@eclo.solutions>
| C++ | mit | nanoframework/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter |
e2bbd39a1acf94c8749c51f047f7552314ebc72f | interface/src/main.cpp | interface/src/main.cpp | #include "ofMain.h"
#include "ofApp.h"
#include <stdlib.h>
int main(int argc, char* argv[]){
if (argc < 2) {
exit(1);
return 0;
} else {
ofSetupOpenGL(1024,768,OF_FULLSCREEN);
ofRunApp(new ofApp(argv[1]));
}
}
| #include "ofMain.h"
#include "ofApp.h"
#include <iostream>
#include <stdlib.h>
int main(int argc, char* argv[]){
if (argc < 2) {
cerr << "Usage: interface <socket path>";
exit(1);
return 0;
} else {
ofSetupOpenGL(1024,768,OF_FULLSCREEN);
ofRunApp(new ofApp(argv[1]));
... | Add error message for missing socket. | Add error message for missing socket.
| C++ | mit | jtrudell/photobooth,bmt/photobooth,jtrudell/photobooth,bmt/photobooth,bmt/photobooth,bmt/photobooth,jtrudell/photobooth,jtrudell/photobooth,jtrudell/photobooth,bmt/photobooth |
f50ce7f13782d83449b8f2f4beef8af8aef6d818 | Analyser/Static/AppleII/StaticAnalyser.cpp | Analyser/Static/AppleII/StaticAnalyser.cpp | //
// StaticAnalyser.cpp
// Clock Signal
//
// Created by Thomas Harte on 14/04/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#include "StaticAnalyser.hpp"
#include "Target.hpp"
Analyser::Static::TargetList Analyser::Static::AppleII::GetTargets(const Media &media, const std::string &, TargetPlatfo... | //
// StaticAnalyser.cpp
// Clock Signal
//
// Created by Thomas Harte on 14/04/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#include "StaticAnalyser.hpp"
#include "Target.hpp"
Analyser::Static::TargetList Analyser::Static::AppleII::GetTargets(const Media &media, const std::string &, TargetPlatfo... | Upgrade to an Enhanced IIe if hard drives are present. | Upgrade to an Enhanced IIe if hard drives are present.
| C++ | mit | TomHarte/CLK,TomHarte/CLK,TomHarte/CLK,TomHarte/CLK,TomHarte/CLK |
e5fb5c6108573b463bbed5ee0ea6841ccc9e45f5 | BALLS/BALLS/ui/docks/OpenGLStateWidget.cpp | BALLS/BALLS/ui/docks/OpenGLStateWidget.cpp | #include "precompiled.hpp"
#include "ui/docks/OpenGLStateWidget.hpp"
#include "gl/OpenGLPointers.hpp"
namespace balls {
OpenGLStateWidget::OpenGLStateWidget(OpenGLPointers& gl, QWidget* parent)
: QWidget(parent),
m_blendState(gl),
m_clipOptions(gl),
m_colorOptions(gl),
m_depthOptions(gl),
m_geo... | #include "precompiled.hpp"
#include "ui/docks/OpenGLStateWidget.hpp"
#include "gl/OpenGLPointers.hpp"
namespace balls {
OpenGLStateWidget::OpenGLStateWidget(OpenGLPointers& gl, QWidget* parent)
: QWidget(parent),
m_blendState(gl),
m_clipOptions(gl),
m_colorOptions(gl),
m_depthOptions(gl),
m_geo... | Add the OpenGL state objects to the property manager | Add the OpenGL state objects to the property manager
| C++ | apache-2.0 | JesseTG/BALLS,JesseTG/BALLS,JesseTG/BALLS |
be73bac7621fe0b76ae75dc7bf01e55da07d0f9c | Proffy/Proffy/DebugOutputCallbacks.cpp | Proffy/Proffy/DebugOutputCallbacks.cpp | /*
Copyright (C) 2008 Paul Richards.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This pro... | /*
Copyright (C) 2008 Paul Richards.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This pro... | Fix typo spotted by Phil. Still doesn't fix the assertion. | Fix typo spotted by Phil. Still doesn't fix the assertion.
git-svn-id: 8f4169f362aa98d77d2b69c890b9cda3cf6a6d2c@451 8e395407-42ff-0310-94d9-ec183df6106f
| C++ | isc | pauldoo/scratch,pauldoo/scratch,pauldoo/proffy,pauldoo/scratch,pauldoo/scratch,pauldoo/scratch,pauldoo/proffy,pauldoo/scratch,pauldoo/scratch,pauldoo/scratch,pauldoo/scratch,pauldoo/scratch,pauldoo/scratch,pauldoo/proffy,pauldoo/scratch,pauldoo/scratch,pauldoo/racepoint,pauldoo/scratch |
3a913db58b1542431765507ee236e033f4758e2a | unittests/DriverTests/UniversalDriverTest.cpp | unittests/DriverTests/UniversalDriverTest.cpp | //===- lld/unittest/UniversalDriverTest.cpp -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- lld/unittest/UniversalDriverTest.cpp -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix unit test now that 'ld' is host specific | Fix unit test now that 'ld' is host specific
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@217114 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld |
bc1cb4d84ae9b54c98fcdb41070526ee34b475bc | chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc | chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc | // Copyright 2014 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/api/guest_view/guest_view_internal_api.h"
#include "chrome/browser/guest_view/guest_view_manager.h"
#include "chrome/... | // Copyright 2014 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/api/guest_view/guest_view_internal_api.h"
#include "chrome/browser/guest_view/guest_view_manager.h"
#include "chrome/... | Remove a hard CHECK when allocating instance ID would fail. | Remove a hard CHECK when allocating instance ID would fail.
A CHECK here seems too intrusive to me, I've changed it
to send error response instead.
A compromised renderer should not take down the whole browser process.
BUG=364141
Test=None, internal clean up.
Review URL: https://codereview.chromium.org/345983002
gi... | C++ | bsd-3-clause | jaruba/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,dednal/chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Chilledheart/chromium,dednal/chromium.src,hgl888/chromium-crosswalk-efl,dednal/chromium.src,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.s... |
17d5245bd79c8f26cea984e1f8930e23920ee560 | Main.cpp | Main.cpp | // Native C++ Libraries
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
// C++ Interpreter Libraries
#include <Console.h>
#include <Varible.h>
#include <Include.h>
using namespace std;
int main()
{
RESTART:
string input = "";
getline(cin, input);
goto RESTART;
}
| // Native C++ Libraries
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
// C++ Interpreter Libraries
#include <Console.h>
#include <Varible.h>
#include <Include.h>
using namespace std;
int main()
{
RESTART:
string input = "";
ConsoleOutCheck(input);
CheckForInt(input);
CheckForIntAfte... | Add some missing function initializers. | Add some missing function initializers.
These functions are used to take data from the string input and read the
C++ code from it.
| C++ | mit | Project-CPP/CPP-Interpreter |
a2db1a98f59bbd440637b00a617cd7131c932ac5 | settings.cpp | settings.cpp | #include "settings.h"
int N_POLY_POINTS = 6;
int N_COLOR_VAR = 5;
int N_POS_VAR = 10;
int SHAPE_OPT_FREQ = 0;
int GUI_REFRESH_RATE = 1;
int AUTOFOCUS_RES = 2;
int N_CORES = 4;
int FOCUS_LEFT=0, FOCUS_RIGHT=100, FOCUS_TOP=0, FOCUS_BOTTOM=100;
int POLYS_MIN=5, POLYS_MAX=150000;
// Rates of mutation in % of odds per g... | #include "settings.h"
int N_POLY_POINTS = 6;
int N_COLOR_VAR = 5;
int N_POS_VAR = 10;
int SHAPE_OPT_FREQ = 0;
int GUI_REFRESH_RATE = 1;
int AUTOFOCUS_RES = 2;
int N_CORES = 4;
int FOCUS_LEFT=0, FOCUS_RIGHT=100, FOCUS_TOP=0, FOCUS_BOTTOM=100;
int POLYS_MIN=15000, POLYS_MAX=150000;
// Rates of mutation in % of odds p... | Disable new mutations for the moment | Disable new mutations for the moment
Keep piling polys in master until we have a decent replacement.
| C++ | mit | tux3/Evolve,tux3/Evolve |
7a437dae36c44b1125dd1237aff8db6e2810273a | settings.cpp | settings.cpp | #include "settings.h"
int N_POLY_POINTS = 6;
int N_COLOR_VAR = 5;
int N_POS_VAR = 10;
int SHAPE_OPT_FREQ = 0;
int GUI_REFRESH_RATE = 1;
int AUTOFOCUS_RES = 2;
int N_CORES = 4;
int FOCUS_LEFT=0, FOCUS_RIGHT=100, FOCUS_TOP=0, FOCUS_BOTTOM=100;
int POLYS_MIN=5, POLYS_MAX=100;
// Rates of mutation in % of odds per gene... | #include "settings.h"
int N_POLY_POINTS = 6;
int N_COLOR_VAR = 5;
int N_POS_VAR = 10;
int SHAPE_OPT_FREQ = 0;
int GUI_REFRESH_RATE = 1;
int AUTOFOCUS_RES = 2;
int N_CORES = 4;
int FOCUS_LEFT=0, FOCUS_RIGHT=100, FOCUS_TOP=0, FOCUS_BOTTOM=100;
int POLYS_MIN=5, POLYS_MAX=150000;
// Rates of mutation in % of odds per g... | Set sane(r) default poly min/max limits | Set sane(r) default poly min/max limits
| C++ | mit | tux3/Evolve,tux3/Evolve |
30562e0a2095638e832f852b132af0be523bb948 | main.cpp | main.cpp | #include "kronrodLaurieGautschi.h"
#include "kronrodPiessensBurkardt.h"
#include <iostream>
#include <iomanip>
using namespace Kronrod;
using namespace Eigen;
using namespace std;
int main()
{
Array<double,Dynamic,2> ans;
int n = 10;
ans = multiPrecisionKronrod(n);
cout << "Laurie/Gautschi:" << endl... | #include "kronrodLaurieGautschi.h"
#include "kronrodPiessens.h"
#include <iostream>
#include <iomanip>
using namespace Kronrod;
using namespace Eigen;
using namespace std;
int main()
{
Array<double,Dynamic,2> ans;
int n = 10;
ans = multiPrecisionKronrod(n);
cout << "Laurie/Gautschi:" << endl;
co... | Correct error introduced by file rename. | Correct error introduced by file rename.
| C++ | mpl-2.0 | tbs1980/NumericalIntegration,tbs1980/NumericalIntegration,tbs1980/NumericalIntegration |
424bd5284d548311876089aa938f84206e594e39 | main.cpp | main.cpp | #include <stdio.h>
#include "video.h"
int main(int argc, char* argv[])
{
if (argc < 3)
{
printf("missing filename\n");
exit(0);
}
gst_init (NULL,NULL);
int k;
sscanf(argv[2], "%d", &k);
for (int q = 0; q < k; q++) {
video testvideo(argv[1]);
while (testvideo.getvisible())
{
testvideo.update();
}
... | /* Copyright 2014, Adrien Destugues <pulkomandy@pulkomandy.tk>
* Distributed under the terms of the MIT license
*/
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "video.h"
int main(int argc, char* argv[])
{
if (argc < 3)
{
printf("missing filename\n");
exit(EXIT_FAILURE);
}
g... | Print maxrss before playing each video. | Print maxrss before playing each video.
| C++ | mit | pulkomandy/gstreamer-leaktest |
884afcf551a5cc6491a9f97396e5f10e47618af9 | examples/company.cpp | examples/company.cpp | #include "company.hpp"
#include <ref/DescriptorsImpl.ipp>
template class ref::ClassDescriptorImpl< example::Company >;
| #include "company.hpp"
#include <ref/DescriptorsImpl.ipp>
template struct ref::ClassDescriptorImpl< example::Company >;
| Fix compilation error with clang. | Fix compilation error with clang.
| C++ | mit | asenac/refcpp |
63ddb4b32b74ade76730b721ea8553baf39211c5 | test/tsan/strerror_r.cc | test/tsan/strerror_r.cc | // RUN: %clangxx_tsan -O1 -DTEST_ERROR=ERANGE %s -o %t && %run %t 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-SYS %s
// RUN: %clangxx_tsan -O1 -DTEST_ERROR=-1 %s -o %t && not %run %t 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-USER %s
#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#... | // RUN: %clangxx_tsan -O1 -DTEST_ERROR=ERANGE %s -o %t && %run %t 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-SYS %s
// RUN: %clangxx_tsan -O1 -DTEST_ERROR=-1 %s -o %t && not %run %t 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-USER %s
#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#... | Fix tsan test for Darwin. NFCI. | Fix tsan test for Darwin. NFCI.
On Darwin, strerror_r returns an int, not a char*. I don't think this
test really depends on what strerror_r returns, so I've used something
else in place of the result of the call to strerror_r.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@304941 91177308-0d34-0410-b5e6-96231b... | C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
b5ea91c8c4e64a937ba1f8239faa4ec017d49058 | test/CXX/conv/conv.prom/p4.cpp | test/CXX/conv/conv.prom/p4.cpp | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
enum X : short { A, B };
extern decltype(+A) x;
extern int x;
enum Y : long { C, D };
extern decltype(+C) y;
extern long y;
// An enum with a fixed underlying type has an integral promotion to that type,
// and to its promoted type.
enum B : bool { false_, true_... | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
enum X : short { A, B };
extern decltype(+A) x;
extern int x;
enum Y : long { C, D };
extern decltype(+C) y;
extern long y;
// An enum with a fixed underlying type has an integral promotion to that type,
// and to its promoted type.
enum B : bool { false_, true_... | Fix up after r163846. Sorry! | Fix up after r163846. Sorry!
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@163849 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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
3ddbb8a5ac5f3c406f12772129e6558173ad70d4 | pang.cpp | pang.cpp | #include "Game.h"
int main(int argc, char** argv) { // A * token followed by another * token in this case is a pointer to a pointer. In this case, argv is a pointer to an array of char*. It is equivalent to (int argc, char* argv[]).
Game::Start();
return 0;
}
| #include "Game.h"
#include <SFML/Graphics.hpp>
int main(int argc, char** argv) { // A * token followed by another * token in this case is a pointer to a pointer. In this case, argv is a pointer to an array of char*. It is equivalent to (int argc, char* argv[]).
Game::Start();
return 0;
}
| Change style of the code and file name | Change style of the code and file name
| C++ | mit | jessicaphuong/pong-clone |
000559c78a65074ccc5f404df2ce0e6ed14ce810 | all/native/renderers/utils/GLResource.cpp | all/native/renderers/utils/GLResource.cpp | #include "GLResource.h"
#include "renderers/utils/GLResourceManager.h"
#include <thread>
namespace carto {
GLResource::~GLResource() {
}
bool GLResource::isValid() const {
if (_manager.lock()) {
return true;
}
return false;
}
GLResource::GLResource(cons... | #include "GLResource.h"
#include "renderers/utils/GLResourceManager.h"
#include <thread>
namespace carto {
GLResource::~GLResource() {
}
bool GLResource::isValid() const {
if (auto manager = _manager.lock()) {
return manager->getGLThreadId() != std::thread::id();
}
re... | Make lost GL context checking more robust, fixes thread race between layers and renderers | Make lost GL context checking more robust, fixes thread race between layers and renderers
| C++ | bsd-3-clause | CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk |
1e58ba06fc9b857bd09bb2bbe0f9ab88d7a79a5a | bibrone/tests/test_systime.cpp | bibrone/tests/test_systime.cpp | #include <paparazzi/SysTime.h>
#include <unistd.h>
#include <iostream>
void printCallBack (uint8_t a) {
std::cout << "Call !" << std::endl ;
}
int main () {
SysTime *systime = SysTime::getSysTime () ;
tid_t mainID = systime->registerTimer (0.5, printCallBack);
tid_t stopID = systime->registerTi... | #include "../src/SysTime.h"
#include <unistd.h>
#include <iostream>
void printCallBack (uint8_t a) {
std::cout << "Call !" << std::endl ;
}
int main () {
SysTime *systime = SysTime::getSysTime () ;
tid_t mainID = systime->registerTimer (0.5, printCallBack);
tid_t stopID = systime->registerTimer... | Update folder include for SysTime.h. | Update folder include for SysTime.h. | C++ | apache-2.0 | Holt59/Project-Matthew,Holt59/Project-Matthew,Holt59/Project-Matthew,Holt59/Project-Matthew |
887c80ec10c0f64df9769ac09201889125cde18d | test/libcxx/modules/clocale_exports.sh.cpp | test/libcxx/modules/clocale_exports.sh.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.
//
//===----------------------------------------... | Mark test as unsupported in C++03 | Mark test as unsupported in C++03
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@287417 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
78523bf98fd3ab97a77c0e07f5c57ede82af8c3e | test/output/test_type_name.cpp | test/output/test_type_name.cpp | #include <mettle.hpp>
using namespace mettle;
struct my_type {};
namespace my_namespace {
struct another_type {};
}
suite<> test_type_name("type_name()", [](auto &_) {
_.test("primitives", []() {
expect(type_name<int>(), equal_to("int"));
expect(type_name<int &>(), equal_to("int &"));
expect(type_nam... | #include <mettle.hpp>
using namespace mettle;
struct my_type {};
namespace my_namespace {
struct another_type {};
}
suite<> test_type_name("type_name()", [](auto &_) {
_.test("primitives", []() {
expect(type_name<int>(), equal_to("int"));
expect(type_name<int &>(), regex_match("int\\s*&"));
expect(ty... | Use regex_match to be more flexible with checking type_name's result | Use regex_match to be more flexible with checking type_name's result
| C++ | bsd-3-clause | jimporter/mettle,jimporter/mettle |
2d4c77a6f1371bf93d9e17de94d6ef96e0732aff | src/tests/auth_stub.cpp | src/tests/auth_stub.cpp | /*
* The MIT License (MIT)
*
* Copyright (c) <2016> <Stephan Gatzka>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights t... | /*
* The MIT License (MIT)
*
* Copyright (c) <2016> <Stephan Gatzka>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights t... | Correct function prototype of stub function. | Correct function prototype of stub function.
| C++ | mit | gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet |
93e2fa488740a68604a4069ac61eba398de7275d | test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp | test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp | // RUN: %clang_cc1 -std=c++11 %s -verify
class X0 {
void explicit_capture() {
int foo;
(void)[foo, foo] () {}; // expected-error {{'foo' can appear only once}}
(void)[this, this] () {}; // expected-error {{'this' can appear only once}}
(void)[=, foo] () {}; // expected-error {{'&' must precede a cap... | // RUN: %clang_cc1 -std=c++11 %s -verify
class X0 {
void explicit_capture() {
int foo;
(void)[foo, foo] () {}; // expected-error {{'foo' can appear only once}}
(void)[this, this] () {}; // expected-error {{'this' can appear only once}}
(void)[=, foo] () {}; // expected-error {{'&' must precede a cap... | Add a lambda example from the working draft. | Add a lambda example from the working draft.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@150239 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
68ce888781a163fdf52bd77e3707bcfbc9e49243 | need-hug/cpp/Main.cpp | need-hug/cpp/Main.cpp | #include <need-hug-lib/hpp/NeedHugGame.hpp>
#include <need-hug-lib/hpp/ReturnCode/ReturnCodeConverter.hpp>
#include <iostream>
int main(int argc, char** argv)
{
using namespace NeedHug;
ReturnCode returnCode = ReturnCode::Continue;
while(returnCode == NeedHug::ReturnCode::Continue)
{
// When the code reaches he... | #include <need-hug-lib/hpp/NeedHugGame.hpp>
#include <need-hug-lib/hpp/ReturnCode/ReturnCodeConverter.hpp>
#include <iostream>
int main(int argc, char** argv)
{
using namespace NeedHug;
ReturnCode returnCode = ReturnCode::Continue;
while (returnCode == NeedHug::ReturnCode::Continue)
{
// When the code reaches h... | Add pause before exit on windows systems | Add pause before exit on windows systems
| C++ | mit | Poelsa/need-hug,Poelsa/need-hug |
536e89b0c80c6121c9e875ed320f8637019a82b0 | json/testparsestring.cpp | json/testparsestring.cpp | #include <iostream>
#include <iomanip> // for std::setw
#include <nlohmann/json.hpp>
using json = nlohmann::json;
bool parse_and_dump(const char* text, json& result)
{
// parse and serialize JSON
result = json::parse(text);
//std::cout << std::setw(4) << j_complete << "\n\n";
return true;
}
int test... | #include <iostream>
#include <iomanip> // for std::setw
#include <nlohmann/json.hpp>
bool parse_and_dump(const char* text, nlohmann::json& result)
{
using json = nlohmann::json;
// parse and serialize JSON
result = json::parse(text);
//std::cout << std::setw(4) << j_complete << "\n\n";
return tru... | UPDATE json, add some message for details | UPDATE json, add some message for details
| C++ | mit | ericosur/myqt,ericosur/myqt,ericosur/myqt,ericosur/myqt,ericosur/myqt,ericosur/myqt |
8bd418e9c4584d77ba02e07ba3f20aa8544fb5f2 | syzygy/pe/export_dll.cc | syzygy/pe/export_dll.cc | // Copyright 2010 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2010 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Make the implicit cast of size_t to int explicit | Make the implicit cast of size_t to int explicit
BUG=
Review-Url: https://codereview.chromium.org/2107263002
| C++ | apache-2.0 | google/syzygy,google/syzygy,google/syzygy,Eloston/syzygy,google/syzygy,Eloston/syzygy |
b8096e69fa183c6facc254b7c7b78cb5099dd770 | base/test_file_util_mac.cc | base/test_file_util_mac.cc | // Copyright (c) 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/test_file_util.h"
#include "base/logging.h"
namespace file_util {
bool EvictFileFromSystemCache(const FilePath& file) {
// TODO(po... | // Copyright (c) 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/test_file_util.h"
#include "base/logging.h"
namespace file_util {
bool EvictFileFromSystemCache(const FilePath& file) {
// There i... | Change the stub for file_util::EvictFileFromSystemCache | Change the stub for file_util::EvictFileFromSystemCache
I don't think there is a way to get something out of the UBC once it's in,
so for now I'm just making this api return true so it won't fail unittests.
I have email out to Amit incase he has any ideas.
Review URL: http://codereview.chromium.org/42333
git-svn-id:... | C++ | bsd-3-clause | Jonekee/chromium.src,ChromiumWebApps/chromium,keishi/chromium,ltilve/chromium,hgl888/chromium-crosswalk,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,pozdnyakov/chromium-crosswalk,M4sse/chr... |
74a540985df068c507cf6c66295b9b3d84b6731e | operator_presence/OpenGLOperatorOculusRiftRenderer.cpp | operator_presence/OpenGLOperatorOculusRiftRenderer.cpp | #include "stdafx.h"
#include "OpenGLOperatorOculusRiftRenderer.h"
namespace operator_view
{
namespace opengl
{
OperatorOculusRiftRenderer::OperatorOculusRiftRenderer(std::shared_ptr<IOperatorRenderer> operatorRendererToDecorate)
: IOperatorOculusRiftRenderer(operatorRendererToDecorate)
{ }
void OperatorOc... | #include "stdafx.h"
#include "OpenGLOperatorOculusRiftRenderer.h"
namespace operator_view
{
namespace opengl
{
OperatorOculusRiftRenderer::OperatorOculusRiftRenderer(std::shared_ptr<IOperatorRenderer> operatorRendererToDecorate)
: IOperatorOculusRiftRenderer(operatorRendererToDecorate)
{ }
void OperatorOc... | Add a comment about eye resolution parameters in case of operator HMD renderer | Add a comment about eye resolution parameters in case of operator HMD renderer
| C++ | mit | aesir84/operator_presence |
e5c8f5f684e68d7a6688148ac3850d5484eb24ff | test/Driver/XRay/xray-shared-noxray.cpp | test/Driver/XRay/xray-shared-noxray.cpp | // RUN: %clangxx -shared -fPIC -o /dev/null -v -fxray-instrument %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=SHARED
// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s 2>&1 -DMAIN | \
// RUN: FileCheck %s --check-prefix=STATIC
//
// SHARED-NOT: {{clang_rt\.xray-}}
// STATIC: {{clang_rt\.xray-}}
//... | // RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=SHARED
// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s 2>&1 -DMAIN | \
// RUN: FileCheck %s --check-prefix=STATIC
//
// SHARED-NOT: {{clang_rt\.xray-}}
// STATIC: {{clang_rt\.xray-}}
//
// RE... | Remove -fPIC from shared build test. | [XRay] Remove -fPIC from shared build test.
Follow-up to D38226.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@314190 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
9896baeb5a142beefbdde96ed99ee95383fcbea2 | fpcmp/fpcmp.cpp | fpcmp/fpcmp.cpp | //===- fpcmp.cpp - A fuzzy "cmp" that permits floating point noise --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- fpcmp.cpp - A fuzzy "cmp" that permits floating point noise --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Remove unnecessary uses of <iostream>. | Remove unnecessary uses of <iostream>.
git-svn-id: a4a6f32337ebd29ad4763b423022f00f68d1c7b7@101338 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-3-clause | lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx |
1671a96294593d0b7161f284b0c2c24f85b29a42 | src/SenseKit/Logging.cpp | src/SenseKit/Logging.cpp | #include "Logging.h"
#include <SenseKit/sensekit_types.h>
INITIALIZE_LOGGING
namespace sensekit {
void initialize_logging(const char* logFilePath)
{
const char TRUE_STRING[] = "true";
el::Loggers::addFlag(el::LoggingFlag::CreateLoggerAutomatically);
el::Loggers::addFlag(el::LoggingF... | #include "Logging.h"
#include <SenseKit/sensekit_types.h>
INITIALIZE_LOGGING
namespace sensekit {
void initialize_logging(const char* logFilePath)
{
const char TRUE_STRING[] = "true";
el::Loggers::addFlag(el::LoggingFlag::CreateLoggerAutomatically);
el::Loggers::addFlag(el::LoggingF... | Change logging level to show >=INFO severity | Change logging level to show >=INFO severity
| C++ | apache-2.0 | orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra,orbbec/astra |
17ca632d3aac023ec8dab0463b9337d73fb80369 | src/Native/search_strstr.cpp | src/Native/search_strstr.cpp | // 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 "stdafx.h"
#include "search_strstr.h"
StrStrSearch::StrStrSearch()
: pattern_(NULL),
patternLen_(0) {
}
void StrStrSear... | // 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 "stdafx.h"
#include "search_strstr.h"
#include <algorithm>
StrStrSearch::StrStrSearch()
: pattern_(NULL),
patternLen_(0)... | Fix strstr search (using std::search instead) | Fix strstr search (using std::search instead)
| C++ | bsd-3-clause | chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium |
15b253253dd0c816d40af64f68ad0d895730452d | tools/lld/lld.cpp | tools/lld/lld.cpp | //===- tools/lld/lld.cpp - Linker Driver Dispatcher -----------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | //===- tools/lld/lld.cpp - Linker Driver Dispatcher -----------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | Fix spelling error in comment. | NFC: Fix spelling error in comment.
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@248768 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld |
6a6579ac2dbb30ca5f86481cbdfe699ee76a47fe | views/controls/menu/menu_config_gtk.cc | views/controls/menu/menu_config_gtk.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 "views/controls/menu/menu_config.h"
#include "grit/app_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/re... | // 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 "views/controls/menu/menu_config.h"
#include "grit/app_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/re... | Increase the base font size for touch ui | Increase the base font size for touch ui
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6519034
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@77349 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,adobe/chromium... |
e01b1542a5af633419252a44f30732454a289d0c | MS4/kernel/cpu/herm/herm_padded.cpp | MS4/kernel/cpu/herm/herm_padded.cpp | #include "herm_padded.h"
#ifdef __FULL_HERM
#define __(a) a
#else
#define __(a)
#endif
// Very simple. Only for even sizes.
void herm_padded_inplace(complexd * data, int size, int pitch){
int
pad = pitch - size
// the same as (size-1)*(pitch+1)
, dataend = size * pitch - pad - 1;
;
complexd
... | #include "herm_padded.h"
#ifndef MOVE_TO_TOP
// Very simple. Only for even sizes.
void herm_padded_inplace(complexd * data, int size, int pitch){
int
pad = pitch - size
// the same as (size-1)*(pitch+1)
, dataend = size * pitch - pad - 1
, jmp = pad + size / 2
;
complexd
* pv0 = data... | Make hermitianizer move the data to the left half of the imagef. | Make hermitianizer move the data to the left half of the imagef.
| C++ | apache-2.0 | SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC |
d10b770148892e70e44cb2b958e79c73ac97da77 | src/LongestValidParentheses.cpp | src/LongestValidParentheses.cpp | #include "LongestValidParentheses.hpp"
#include <stack>
#include <vector>
#include <algorithm>
using namespace std;
int LongestValidParentheses::longestValidParentheses(string s)
{
if (s.size() < 2) return 0;
vector<int> dp(s.size(), 0);
for (int i = 1; i < s.size(); i++) {
if (s[i] == '(') dp[i] = 0;
... | #include "LongestValidParentheses.hpp"
#include <stack>
#include <vector>
#include <algorithm>
using namespace std;
int LongestValidParentheses::longestValidParentheses(string s)
{
if (s.size() < 2) return 0;
vector<int> dp(s.size(), 0);
int ret = 0;
for (int i = 1; i < s.size(); i++) {
if (s[i] == '(')... | Improve DP solution for Problem 32 Longest Valid Parentheses | Improve DP solution for Problem 32 Longest Valid Parentheses
| C++ | mit | yanzhe-chen/leetcode |
175387274ce9ecd69f86d71944a7e954315d941b | plugin/textfile.cpp | plugin/textfile.cpp | #include "textfile.h"
#include <QFile>
TextFile::TextFile(QObject *parent) :
QObject(parent),
mValid(false)
{
}
QString TextFile::text() const
{
return mText;
}
QString TextFile::source() const
{
return mSource;
}
void TextFile::setSource(const QString &file)
{
mValid = false;
mSource = file... | #include "textfile.h"
#include <QFile>
#include <QTextStream>
TextFile::TextFile(QObject *parent) :
QObject(parent),
mValid(false)
{
}
QString TextFile::text() const
{
return mText;
}
QString TextFile::source() const
{
return mSource;
}
void TextFile::setSource(const QString &file)
{
mValid = fa... | Read the text file using QTextStream so that it is encoding-aware | Read the text file using QTextStream so that it is encoding-aware
| C++ | apache-2.0 | meego-tablet-ux/meego-app-im,meego-tablet-ux/meego-app-im |
c8aa36b16d069252dbea54a7cf4390f03554ea7a | src/WerkVersion/Main.cpp | src/WerkVersion/Main.cpp |
/*
* Copyright (c) 2015-2018 Agalmic Ventures LLC (www.agalmicventures.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* ri... |
/*
* Copyright (c) 2015-2018 Agalmic Ventures LLC (www.agalmicventures.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* ri... | Add verbose flag to WerkVersion to show operating system name | Add verbose flag to WerkVersion to show operating system name
| C++ | mit | AgalmicVentures/Werk,AgalmicVentures/Werk |
7bd5a19263674de94feee69679390230881cf700 | spec/ccspec_spec.cc | spec/ccspec_spec.cc | #include <iostream>
#include <ccspec.h>
using std::cout;
using ccspec::core::formatters::DocumentationFormatter;
using ccspec::core::ExampleGroup;
using ccspec::core::Reporter;
namespace spec {
namespace matchers {
extern ExampleGroup* eq_spec;
} // namespace matchers
} // namespace spec
int main() {
using nam... | #include <iostream>
#include <ccspec.h>
using std::cout;
using ccspec::core::formatters::DocumentationFormatter;
using ccspec::core::ExampleGroup;
using ccspec::core::Reporter;
namespace spec {
namespace matchers {
extern ExampleGroup* eq_spec;
} // namespace matchers
} // namespace spec
int main() {
using nam... | Return exit code based on test result | Return exit code based on test result
| C++ | mit | tempbottle/ccspec,zhangsu/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,tempbottle/ccspec,zhangsu/ccspec,michaelachrisco/ccspec,zhangsu/ccspec,michaelachrisco/ccspec |
f2020c06a3c0718c8f62eeb06863b32cb6a354fe | core/test/ab-test-linear-memory.cpp | core/test/ab-test-linear-memory.cpp | #include <Ab/Config.hpp>
#include <Ab/LinearMemory.hpp>
#include <Ab/Test/BasicTest.hpp>
#include <gtest/gtest.h>
namespace Ab::Test {
class LinearMemoryTest : public BasicTest {};
TEST_F(LinearMemoryTest, init_and_kill) { LinearMemory m; }
TEST_F(LinearMemoryTest, grow_three_times) {
LinearMemory m;
for (std::si... | #include <Ab/Config.hpp>
#include <Ab/LinearMemory.hpp>
#include <gtest/gtest.h>
namespace Ab::Test {
TEST(LinearMemoryTest, init_and_kill) { LinearMemory m; }
TEST(LinearMemoryTest, grow_three_times) {
LinearMemory m;
for (std::size_t i = 0; i < 3; i++) {
m.grow();
}
}
} // namespace Ab::Test
| Remove basic test from linear memory test | Remove basic test from linear memory test
Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
| C++ | apache-2.0 | ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab |
6b8dfd56512a667eb84d8c6412bb9e7a4e90faae | tests/libport/hmac-sha1.cc | tests/libport/hmac-sha1.cc | /*
* Copyright (C) 2009, 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <libport/base64.hh... | /*
* Copyright (C) 2009, 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <libport/config.h>... | Disable hmac_sha1 test when SSL is not enabled | Disable hmac_sha1 test when SSL is not enabled
* tests/libport/hmac-sha1.cc: here.
| C++ | bsd-3-clause | aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport |
62f7e9cc4c1898c3f39c9a82575f3bdc15defb1a | experiments/unordered_maps/memory_manager.cpp | experiments/unordered_maps/memory_manager.cpp | #include "memory_manager.hpp"
#include <malloc.h>
#include <new>
void CustomMemoryManager::Start() {
this->numberOfAllocations = 0;
this->peakAllocatedBytes = 0;
this->allocatedBytes = 0;
this->totalAllocatedBytes = 0;
}
void CustomMemoryManager::Stop(Result *result) {
result->num_allocs = this->numberOfAl... | #include "memory_manager.hpp"
#include <malloc.h>
#include <new>
void CustomMemoryManager::Start() {
this->numberOfAllocations = 0;
this->peakAllocatedBytes = 0;
this->allocatedBytes = 0;
this->totalAllocatedBytes = 0;
}
void CustomMemoryManager::Stop(Result *result) {
result->num_allocs = this->numberOfAl... | Use _msize instead of malloc_usable_size on Windows | Use _msize instead of malloc_usable_size on Windows
| C++ | mit | antaljanosbenjamin/miscellaneous,antaljanosbenjamin/miscellaneous |
d19c88071be2389debabf9f80173c8a1244f945b | src/util/validation.cpp | src/util/validation.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2021 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util/validation.h"
#include ... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2021 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util/validation.h"
#include ... | Format CValidationState properly in all cases | Format CValidationState properly in all cases
FormatStateMessage does not properly handle the case where
CValidationState::IsValid() returns true. Use "Valid" for the state in
this case. | C++ | mit | PIVX-Project/PIVX,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX,Darknet-Crypto/Darknet,Darknet-Crypto/Darknet,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX,PIVX-Project/PIVX |
52c9217712abfaf62a598e9018f66800de763ea5 | examples/adc.cpp | examples/adc.cpp | #include "board.h"
#include <aery32/all.h>
using namespace aery;
#define ADC_PINMASK_ALLCHAN (0xff << 21)
int main(void)
{
int errno;
uint16_t result; /* conversion result in bits */
double volt; /* conversion in volts */
init_board();
gpio_init_pin(LED, GPIO_OUTPUT);
gpio_init_pins(porta, ADC_PINMASK_ALL... | #include "board.h"
#include <aery32/all.h>
using namespace aery;
#define ADC_PINMASK_ALLCHAN (0xff << 21)
int main(void)
{
int errno;
uint16_t result; /* conversion result in bits */
double volt; /* conversion in volts */
init_board();
gpio_init_pin(LED, GPIO_OUTPUT);
gpio_init_pins(porta, ADC_PINMASK_ALL... | Fix ADC track and hold formula | Fix ADC track and hold formula
Atmel confirmed that there is a minimum 3 clock cycles for t/h. The
previous formula in the datasheet was a typo.
| C++ | bsd-3-clause | denravonska/aery32,aery32/aery32,aery32/aery32,denravonska/aery32 |
1d35a2c8731e8952b524bf2608743b262c00f57b | src/distributed_queue.cc | src/distributed_queue.cc | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "distributed_queue.h"
#include "common.h"
#include "runtime_vars.h"
#include "spinlock-inl... | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "distributed_queue.h"
#include "common.h"
#include "runtime_vars.h"
#include "spinlock-inl... | Remove some unsed locks. InitModule is not called concurrently anymore. | Remove some unsed locks. InitModule is not called concurrently anymore.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C++ | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc |
5d58f7fb9a32b712bc3d0dadea26a92c8b8e19b4 | chrome/renderer/net/prescient_networking_dispatcher.cc | chrome/renderer/net/prescient_networking_dispatcher.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 "chrome/renderer/net/prescient_networking_dispatcher.h"
#include "chrome/common/render_messages.h"
#include "content/public/renderer/render_thre... | // 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 "chrome/renderer/net/prescient_networking_dispatcher.h"
#include "base/metrics/field_trial.h"
#include "chrome/common/render_messages.h"
#includ... | Enable pre-connect via {mouse,gesture}-event triggers to limited users controlled by Finch. | Enable pre-connect via {mouse,gesture}-event triggers to limited users controlled by Finch.
BUG=240959
Review URL: https://chromiumcodereview.appspot.com/15725006
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@203120 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | patrickm/chromium.src,ltilve/chromium,Chilledheart/chromium,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,chuan9/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,ondra-novak/chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,mohamed... |
a4ef9015f4f3b7e4447f0aa1d70387c0eba9f27c | value.cpp | value.cpp | #include "Manager.h"
#include "Value.h"
#include "api.h"
Value * newValue(uint8_t valueType, uint64_t valueId)
{
Value * tmp = (Value *)malloc(sizeof(Value));
*tmp = (struct Value){0};
tmp->valueType = valueType;
tmp->valueId = valueId;
return tmp;
}
void freeValue(Value * value)
{
free(value);
}
| #include <stdlib.h>
#include "Manager.h"
#include "Value.h"
#include "api.h"
Value * newValue(uint8_t valueType, uint64_t valueId)
{
Value * tmp = (Value *)malloc(sizeof(Value));
*tmp = (struct Value){0};
tmp->valueType = valueType;
tmp->valueId = valueId;
return tmp;
}
void freeValue(Value * value)
{
fr... | Include stdlib, since it seems to be necessary, | Include stdlib, since it seems to be necessary,
| C++ | mit | ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave,ninjasphere/go-openzwave |
c4edc5a9128b193b171272a3eaed056fef56da89 | test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp | test/libcxx/thread/thread.mutex/thread_safety_lock_guard.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.
//
//===----------------------------------------... | Use std::scoped_lock only for C++17 and newer | Use std::scoped_lock only for C++17 and newer
This fixes a test failure caused by D53049.
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@344192 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
5ea78f179425a0fbc78101ecd82ca36f86bbba33 | MQWeb/src/JSONView.cpp | MQWeb/src/JSONView.cpp | /*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licence at:
... | /*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licence at:
... | Add headers for not caching JSON views on the client | Add headers for not caching JSON views on the client
| C++ | mit | fbraem/mqweb,fbraem/mqweb,fbraem/mqweb |
f6435094e02b76bc43d4bd2def79121140ace72f | spec/ccspec_spec.cc | spec/ccspec_spec.cc | #include <iostream>
#include "ccspec.h"
using std::cout;
using ccspec::core::formatters::DocumentationFormatter;
using ccspec::core::ExampleGroup;
using ccspec::core::Reporter;
namespace spec {
namespace matchers {
extern ExampleGroup* eq_spec;
} // namespace matchers
} // namespace spec
int main() {
using na... | #include <iostream>
#include "ccspec.h"
using std::cout;
using ccspec::core::formatters::DocumentationFormatter;
using ccspec::core::ExampleGroup;
using ccspec::core::Reporter;
namespace spec {
namespace matchers {
extern ExampleGroup* eq_spec;
} // namespace matchers
} // namespace spec
int main() {
Document... | Remove using namespace to silence linter | Remove using namespace to silence linter
| C++ | mit | michaelachrisco/ccspec,michaelachrisco/ccspec,zhangsu/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,zhangsu/ccspec,tempbottle/ccspec,tempbottle/ccspec,zhangsu/ccspec |
d58cf123822a3d80134a7762cccde8d4ab2325b7 | test/C++Frontend/2007-07-04-NestedCatches.cpp | test/C++Frontend/2007-07-04-NestedCatches.cpp | // RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | \
// RUN: ignore grep {eh\.selector.*One.*Two.*Three.*Four.*Five.*Six.*null} | \
// RUN: wc -l | grep {\[02\]}
extern void X(void);
struct One {};
struct Two {};
struct Three {};
struct Four {};
struct Five {};
struct Six {};
static void A(void) throw ()
{
... | // RUN: %llvmgxx %s -S -O2 -o - | \
// RUN: ignore grep {eh\.selector.*One.*Two.*Three.*Four.*Five.*Six.*null} | \
// RUN: wc -l | grep {\[01\]}
extern void X(void);
struct One {};
struct Two {};
struct Three {};
struct Four {};
struct Five {};
struct Six {};
static void A(void) throw ()
{
X();
}
st... | Fix this test: llvm-gcc-4.2 optimizes almost everything away, resulting in zero matches, while llvm-gcc-4.1 manages to remove one pointless selector changing the number of matches. | Fix this test: llvm-gcc-4.2 optimizes almost everything away,
resulting in zero matches, while llvm-gcc-4.1 manages to
remove one pointless selector changing the number of matches.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@41494 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llv... |
d4494681ef9dd76d8168e8a96af5473fb58e2e79 | test/CodeGenCXX/cxx1y-deduced-return-type.cpp | test/CodeGenCXX/cxx1y-deduced-return-type.cpp | // RUN: %clang_cc1 -std=c++1y -emit-llvm %s -o - | FileCheck %s
// CHECK: @x = global {{.*}} zeroinitializer
// CHECK: define {{.*}} @_Z1fv
inline auto f() {
int n = 0;
// CHECK: load i32
// CHECK: store i32
// CHECK: ret
return [=] () mutable { return ++n; };
}
auto x = f();
template<typename T> auto *g(... | // RUN: %clang_cc1 -std=c++1y -triple x86_64-linux-gnu -emit-llvm %s -o - | FileCheck %s
// CHECK: @x = global {{.*}} zeroinitializer
// CHECK: define {{.*}} @_Z1fv
inline auto f() {
int n = 0;
// CHECK: load i32
// CHECK: store i32
// CHECK: ret
return [=] () mutable { return ++n; };
}
auto x = f();
temp... | Add missing triple to CodeGen test. | Add missing triple to CodeGen test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@181679 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
3671dd8b5dc2c17130db2b9322982874322bac5c | sm_timing/test/TestNsecTimeUtilities.cpp | sm_timing/test/TestNsecTimeUtilities.cpp | #include <gtest/gtest.h>
#include <sm/timing/NsecTimeUtilities.hpp>
TEST( NsetTimeTestSuite, testChronoConversion ) {
std::chrono::system_clock::time_point tp1 = std::chrono::system_clock::now();
sm::timing::NsecTime ns1 = sm::timing::chronoToNsec( tp1 );
std::chrono::system_clock::time_point tp2 = sm::timing::... | #include <cstdlib>
#include <gtest/gtest.h>
#include <sm/timing/NsecTimeUtilities.hpp>
TEST( NsetTimeTestSuite, testChronoConversion ) {
std::chrono::system_clock::time_point tp1 = std::chrono::system_clock::now();
sm::timing::NsecTime ns1 = sm::timing::chronoToNsec( tp1 );
std::chrono::system_clock::time_point... | Use std::abs to ease Jenkins warning | Use std::abs to ease Jenkins warning
| C++ | bsd-3-clause | ethz-asl/Schweizer-Messer,ethz-asl/Schweizer-Messer,ethz-asl/Schweizer-Messer,ethz-asl/Schweizer-Messer |
c63c85f7c2c71a496cfab1b7d2676b3ee16c07b5 | Binary_Search_Tree/C++/mike168m/binaryseachtreetest.cpp | Binary_Search_Tree/C++/mike168m/binaryseachtreetest.cpp | #include <iostream>
#include "binarysearchtree.h"
int main() {
BinarySearchTree<int> tree;
tree.insert(0);
tree.insert(4);
tree.insert(3);
tree.insert(2);
tree.insert(1);
if (tree.contains(1)) {
std::cout << "Item found" << std::endl;
}
int max = tree.findMax();
int m... | #include <iostream>
#include "binarysearchtree.h"
// test binary search tree
int main() {
BinarySearchTree<int> tree;
tree.insert(0);
tree.insert(4);
tree.insert(3);
tree.insert(2);
tree.insert(1);
if (tree.contains(1)) {
std::cout << "Item found" << std::endl;
}
int max... | Add Binary Search Tree in C++ | Add Binary Search Tree in C++
| C++ | mit | n1ghtmare/Algorithm-Implementations,n1ghtmare/Algorithm-Implementations,kennyledet/Algorithm-Implementations,pravsingh/Algorithm-Implementations,kennyledet/Algorithm-Implementations,kennyledet/Algorithm-Implementations,pravsingh/Algorithm-Implementations,pravsingh/Algorithm-Implementations,kennyledet/Algorithm-Implemen... |
5035c483b7fcbf0fa2a7afba24fa35a10995d195 | test/CodeGenCXX/debug-info-namespace.cpp | test/CodeGenCXX/debug-info-namespace.cpp | // RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
namespace A {
#line 1 "foo.cpp"
namespace B {
int i;
}
}
// CHECK: [[FILE:![0-9]*]] {{.*}}debug-info-namespace.cpp"
// CHECK: [[VAR:![0-9]*]] = {{.*}}, metadata [[NS:![0-9]*]], metadata !"i", {{.*}} ; [ DW_TAG_variable ] [i]
// CHECK: [[NS]] = {{.*}}, metadata [... | // RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
namespace A {
#line 1 "foo.cpp"
namespace B {
int i;
}
}
// CHECK: [[FILE:![0-9]*]] {{.*}}debug-info-namespace.cpp"
// CHECK: [[VAR:![0-9]*]] = {{.*}}, metadata [[NS:![0-9]*]], metadata !"i", {{.*}} ; [ DW_TAG_variable ] [i]
// CHECK: [[NS]] = {{.*}}, metadata [... | Update debug info test for schema change made to LLVM. | Update debug info test for schema change made to LLVM.
This accounts for the addition of another field to DIScopes that will be used
to store a list of DIImportedModules in the future.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@178100 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
026b76932605bb80ed235ae28d3d786a7449b34b | src/Engine/Component/Listener.cpp | src/Engine/Component/Listener.cpp | #include "Listener.hpp"
using namespace Component;
Listener::Listener(Entity* entity) : SuperComponent(entity) {
}
Json::Value Listener::Save() const {
return Json::Value();
}
void Listener::Load(const Json::Value& node) {
}
| #include "Listener.hpp"
using namespace Component;
Listener::Listener(Entity* entity) : SuperComponent(entity) {
}
Json::Value Listener::Save() const {
Json::Value component;
component["placeholderValue"] = "";
return component;
}
void Listener::Load(const Json::Value& node) {
}
| Add placeholder value so listener node isn't null. | Add placeholder value so listener node isn't null.
| C++ | mit | Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine |
d71d31261afced1254f9ad017d59901176aa3607 | chrome/browser/iframe_uitest.cc | chrome/browser/iframe_uitest.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 "base/basictypes.h"
#include "base/file_path.h"
#include "build/build_config.h"
#include "chrome/test/ui/ui_test.h"
#include "net/base/net_ut... | // 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 "base/basictypes.h"
#include "base/file_path.h"
#include "build/build_config.h"
#include "chrome/test/ui/ui_test.h"
#include "net/base/net_ut... | Mark IFrameTest.InEmptyFrame FAILS_ on OS_CHROMEOS. | Mark IFrameTest.InEmptyFrame FAILS_ on OS_CHROMEOS.
BUG=100101
TEST=Failures expected on ChromeOS.
TBR=oshima
Review URL: http://codereview.chromium.org/8248004
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@105155 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,adobe/... |
800a357fca8e5572f97759537850994c2e6ee209 | Caprica/main.cpp | Caprica/main.cpp |
#include <ostream>
#include <boost/filesystem.hpp>
#include <papyrus/parser/PapyrusParser.h>
#include <papyrus/PapyrusScript.h>
#include <pex/PexWriter.h>
int main(int argc, char* argv[])
{
if (argc != 2) {
printf("Invoke like: caprica.exe myFile.psc");
}
#ifdef NDEBUG
try {
#endif
std::string file =... |
#include <ostream>
#include <string>
#include <boost/filesystem.hpp>
#include <papyrus/parser/PapyrusParser.h>
#include <papyrus/PapyrusScript.h>
#include <pex/PexWriter.h>
void compileScript(std::string filename) {
auto parser = new caprica::papyrus::parser::PapyrusParser(filename);
auto a = parser->parseScrip... | Allow passing either a directory name or a filename to the compiler. | Allow passing either a directory name or a filename to the compiler.
| C++ | mit | Orvid/Caprica,Orvid/Caprica |
a9059ec9f948437ddbbbb136e8a5e0cfe210b7e8 | src/Native/search_regex.cpp | src/Native/search_regex.cpp | // 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 "stdafx.h"
#include <regex>
#include "search_regex.h"
RegexSearch::RegexSearch()
: pattern_(NULL),
patternLen_(0),
... | // 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 "stdafx.h"
#include <regex>
#include "search_regex.h"
RegexSearch::RegexSearch()
: pattern_(NULL),
patternLen_(0),
... | Implement search result using regex_iterator. | Implement search result using regex_iterator.
| C++ | bsd-3-clause | chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium |
db4d7e96ca525e981800d22df8328f48dead5366 | test/std/utilities/any/any.class/any.cons/default.pass.cpp | test/std/utilities/any/any.class/any.cons/default.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.
//
//===----------------------------------------... | Improve constexpr tests for std::any | Improve constexpr tests for std::any
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@280777 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
1f9433df51564b3383bc2b11914ba682930d7730 | introduction/load_save_image/ConvertToGrey.cpp | introduction/load_save_image/ConvertToGrey.cpp | // Copyright 2015 Matt Heard
// http://mattheard.net
// matt@mattheard.net
// @mattheard
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
int main(int argc, char **argv) {
using std::string;
const int expectedNumArgs = 2;
if (argc != expectedNumArgs) {
const string cmdName = "Co... | // Copyright 2015 Matt Heard
// http://mattheard.net
// matt@mattheard.net
// @mattheard
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
using cv::Mat;
// TODO(mattheard): Implement me
Mat convertToGrey(const Mat &src) {
return Mat();
}
int main(int argc, char **argv) {
using std::string... | Add call to conversion fn | Add call to conversion fn
| C++ | mit | MattHeard/OpenCV-Tutorials |
12dd900b05efcda96104a8900f04240f09709ba2 | chrome/browser/extensions/extension_bookmarks_apitest.cc | chrome/browser/extensions/extension_bookmarks_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, Bookmarks) {
// TODO(erikkay) no initial state fo... | // 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"
// TODO(brettw) bug 19866: this test is disabled because it is flaky.
IN_PROC_BROWSER_TEST_F... | Disable the Bookmarks ExtensionAPITest becuase it is flaky. | Disable the Bookmarks ExtensionAPITest becuase it is flaky.
Review URL: http://codereview.chromium.org/173149
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@23877 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 |
03f2898be8499a09bb6117af92ecad96227e37a4 | src/anh/plugin/platform/win32_library.cc | src/anh/plugin/platform/win32_library.cc |
#ifdef WIN32
#include "anh/plugin/platform/win32_library.h"
#include <exception>
#include <sstream>
#include <Windows.h>
#include <boost/filesystem.hpp>
using namespace anh::plugin;
using namespace boost::filesystem;
using namespace platform;
using namespace std;
shared_ptr<Win32Library> Win32Library::Load(std::... |
#ifdef WIN32
#include "anh/plugin/platform/win32_library.h"
#include <exception>
#include <sstream>
#include <Windows.h>
#include <boost/filesystem.hpp>
using namespace anh::plugin;
using namespace boost::filesystem;
using namespace platform;
using namespace std;
shared_ptr<Win32Library> Win32Library::Load(std::... | Use the newer v3 api for boost filesystem | Use the newer v3 api for boost filesystem
| C++ | mit | anhstudios/swganh,anhstudios/swganh,anhstudios/swganh |
79ef51a7786612e15c20149a53d0a1ae01676fb8 | test/boostTest.cpp | test/boostTest.cpp | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | Fix Windows warning for boost in solidity tests. We need this fixed before we can enable warnings-as-errors. | Fix Windows warning for boost in solidity tests.
We need this fixed before we can enable warnings-as-errors.
| C++ | mit | ruchevits/solidity,ruchevits/solidity,ruchevits/solidity,ruchevits/solidity |
4add1d86baff381cfbddeb700f86e21e37e37f68 | AppleALC/kern_start.cpp | AppleALC/kern_start.cpp | //
// kern_start.cpp
// AppleALC
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
#include <Headers/plugin_start.hpp>
#include <Headers/kern_api.hpp>
#include "kern_alc.hpp"
static AlcEnabler alc;
static const char *bootargOff[] {
"-alcoff",
"-x"
};
static const char *bootargDebug[] {
"-alcdbg"
}... | //
// kern_start.cpp
// AppleALC
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
#include <Headers/plugin_start.hpp>
#include <Headers/kern_api.hpp>
#include "kern_alc.hpp"
static AlcEnabler alc;
static const char *bootargOff[] {
"-alcoff"
};
static const char *bootargDebug[] {
"-alcdbg"
};
stat... | Update plugin requirements for 1.2.0 | Update plugin requirements for 1.2.0 | C++ | bsd-3-clause | Dwarven/AppleALC,vit9696/AppleALC,Dwarven/AppleALC,vit9696/AppleALC,vit9696/AppleALC,Dwarven/AppleALC |
4c8e6514e9010e43d9897f9b53b7a690999c8835 | Source/core/animation/css/CSSTransitionData.cpp | Source/core/animation/css/CSSTransitionData.cpp | // Copyright 2014 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 "core/animation/css/CSSTransitionData.h"
#include "core/animation/Timing.h"
namespace blink {
CSSTransitionData::CSSTransi... | // Copyright 2014 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 "core/animation/css/CSSTransitionData.h"
#include "core/animation/Timing.h"
namespace blink {
CSSTransitionData::CSSTransi... | Change fill mode of transitions to backwards not both | Animations: Change fill mode of transitions to backwards not both
This change allows CSS transitions to be replayed via the AnimationPlayer
API and not prevent new transitions from being triggered.
BUG=437102
Review URL: https://codereview.chromium.org/761033002
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@... | C++ | bsd-3-clause | jtg-gg/blink,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,jtg-gg/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,jtg-gg/blink,XiaosongWei/blink-crosswa... |
ec96f953bc457dc7eb97972a08d0839d783c6aba | JASP-Common/appinfo.cpp | JASP-Common/appinfo.cpp | //
// Copyright (C) 2016 University of Amsterdam
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// This progr... | //
// Copyright (C) 2016 University of Amsterdam
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// This progr... | Update Application Info for JASP 0.7.5.1 | Update Application Info for JASP 0.7.5.1
| C++ | agpl-3.0 | jasp-stats/jasp-desktop,TimKDJ/jasp-desktop,jasp-stats/jasp-desktop,FransMeerhoff/jasp-desktop,vankesteren/jasp-desktop,fdabl/jasp-desktop,raviselker/jasp-desktop,vankesteren/jasp-desktop,fdabl/jasp-desktop,vankesteren/jasp-desktop,TimKDJ/jasp-desktop,TimKDJ/jasp-desktop,FransMeerhoff/jasp-desktop,AlexanderLyNL/jasp-de... |
5432ff22f0486cb96c95716638d1824417ca52c9 | test/CodeGen/tbaa-for-vptr.cpp | test/CodeGen/tbaa-for-vptr.cpp | // RUN: %clang_cc1 -emit-llvm -o - -O1 %s | FileCheck %s
// Check that we generate TBAA for vtable pointer loads and stores.
struct A {
virtual int foo() const ;
virtual ~A();
};
void CreateA() {
new A;
}
void CallFoo(A *a) {
a->foo();
}
// CHECK: %vtable = load {{.*}} !tbaa !0
// CHECK: store {{.*}} !tbaa !... | // RUN: %clang_cc1 -emit-llvm -o - -O1 %s | FileCheck %s
// Check that we generate TBAA for vtable pointer loads and stores.
struct A {
virtual int foo() const ;
virtual ~A();
};
void CreateA() {
new A;
}
void CallFoo(A *a) {
a->foo();
}
// CHECK: %{{.*}} = load {{.*}} !tbaa !0
// CHECK: store {{.*}} !tbaa !... | Fix test failure in release mode. | [tests] Fix test failure in release mode.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@153460 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
355e50a7986ff396735b18c5b8526b5e6db244eb | mordor/common/streams/stream.cpp | mordor/common/streams/stream.cpp | // Copyright (c) 2009 - Decho Corp.
#include "mordor/common/pch.h"
#include "stream.h"
#include <string.h>
size_t
Stream::write(const char *sz)
{
return write(sz, strlen(sz));
}
size_t
Stream::write(const void *b, size_t len)
{
Buffer buf;
buf.copyIn(b, len);
return write(buf, len);
}
std::string
... | // Copyright (c) 2009 - Decho Corp.
#include "mordor/common/pch.h"
#include "stream.h"
#include <string.h>
size_t
Stream::write(const char *sz)
{
return write(sz, strlen(sz));
}
size_t
Stream::write(const void *b, size_t len)
{
Buffer buf;
buf.copyIn(b, len);
return write(buf, len);
}
std::string
... | Fix a signedness warning on Darwin | Fix a signedness warning on Darwin
| C++ | bsd-3-clause | ccutrer/mordor,mozy/mordor,mozy/mordor,mtanski/mordor,cgaebel/mordor,adfin/mordor,mozy/mordor,mtanski/mordor,mtanski/mordor,adfin/mordor,ccutrer/mordor,adfin/mordor,cgaebel/mordor,ccutrer/mordor |
8544a96c1f90c1e93e93f93c91de74551b73a32a | driver.cpp | driver.cpp | #include <iostream>
#include "Student.h"
int main(int argc, char **argv){
Student c("Joe Schmoe", 12345);
std::cout << c.getNumber() << ": " << c.getName() << std::endl;
int num_grades = c.getNumGrades();
float * grades = c.getGrades();
for(int i=0; i<num_grades; i++){
std::cout << grades[i] << "\t";
}
std::... | #include <iostream>
#include "Student.h"
int main(int argc, char **argv){
Student c("Joe Schmoe", 12345);
std::cout << c.getNumber() << ": " << c.getName() << std::endl;
int num_grades = c.getNumGrades();
float * grades = c.getGrades();
for(int i=0; i<num_grades; i++){
std::cout << grades[i] << "\t";
}
std::... | Add code section for Big Five usage. | Add code section for Big Five usage.
| C++ | mit | irawoodring/CIS263_BigFiveExample |
41d57ed0c20922613b2b7ee34a8a1608f5330d92 | unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp | unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp | //===-- GDBRemoteTestUtils.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- GDBRemoteTestUtils.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix compilation failure in unit tests on Windows. | Fix compilation failure in unit tests on Windows.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@346999 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb |
2593da9751ac4ab5c5a17888cbc31a7d594036b9 | src/Game/Core/Board.cpp | src/Game/Core/Board.cpp | //
// Created by Sam on 9/25/2017.
//
#include "../../../include/Game/Core/Board.h"
#include "../../../include/Game/Core/Card.h"
#include "../../../include/Game/Derived/Card/Creature.h"
#include "../../../include/Game/Derived/Containers/CreatureZone.h"
#include "../../../include/Game/Derived/Containers/Deck.h"
#includ... | //
// Created by Sam on 9/25/2017.
//
#include "../../../include/Game/Core/Board.h"
#include "../../../include/Game/Core/Card.h"
#include "../../../include/Game/Derived/Card/Creature.h"
#include "../../../include/Game/Derived/Containers/CreatureZone.h"
#include "../../../include/Game/Derived/Containers/Deck.h"
#includ... | Initialize all the board properties | Initialize all the board properties
| C++ | apache-2.0 | maspe36/WhispererEngine,maspe36/WhispererEngine |
7221eae007b03f481f773a0cd947995cbceb2467 | lib/private/frame.cpp | lib/private/frame.cpp | #include "frame.hpp"
namespace ph {
Frame::Frame(QWebFrame *frame, QObject *parent): QObject(parent) {
p_frame = frame;
}
Frame::~Frame() {}
QByteArray Frame::toHtml() {
return p_frame->toHtml().toUtf8();
}
QByteArray Frame::captureImage(const char *format, int quality) {
p_frame->page()->setViewportS... | #include "frame.hpp"
namespace ph {
Frame::Frame(QWebFrame *frame, QObject *parent): QObject(parent) {
p_frame = frame;
}
Frame::~Frame() {}
QByteArray Frame::toHtml() {
return p_frame->toHtml().toUtf8();
}
QByteArray Frame::captureImage(const char *format, int quality) {
p_frame->page()->setViewportS... | Set correctly a format on page capture. | Set correctly a format on page capture.
| C++ | lgpl-2.1 | ChrisHughes/phantompy,niwinz/phantompy,ChrisHughes/phantompy,ChrisHughes/phantompy,niwinz/phantompy,ChrisHughes/phantompy,niwinz/phantompy |
37b7416ad8b1ddf15aab4f34d2593a6dedf3de7b | src/util/FileHelper.cpp | src/util/FileHelper.cpp | /*
* FileHelper.cpp
*
* Created on: 08.06.2016
* Author: hartung
*/
#include <boost/filesystem.hpp>
#include "util/FileHelper.hpp"
namespace Util
{
std::string FileHelper::find(const std::string & path, const std::string & fileName, const bool & recursive)
{
namespace fs = boost::filesyste... | /*
* FileHelper.cpp
*
* Created on: 08.06.2016
* Author: hartung
*/
#include <boost/filesystem.hpp>
#include "util/FileHelper.hpp"
namespace Util
{
std::string FileHelper::find(const std::string & path, const std::string & fileName, const bool & recursive)
{
namespace fs = boost::filesyste... | Make it a absolute path | Make it a absolute path
| C++ | bsd-3-clause | marchartung/ParallelFMU |
9589735401230d3126e02d790c94be38b5674fc6 | model/src/VM.cpp | model/src/VM.cpp | #include "VM.hpp"
#include <fstream>
#include <iterator>
#include "IoDevice.hpp"
namespace model
{
VM::VM( IoDevice& ioDevice )
: m_ioDevice{ ioDevice }
, m_cpu{ m_mmu, m_ioDevice, m_rng }
{
}
bool VM::loadRom( const std::string& fileName )
{
std::ifstream in{ fileName, std::ios::binary };
if ( in.is_open... | #include "VM.hpp"
#include <fstream>
#include <iterator>
#include "IoDevice.hpp"
namespace model
{
VM::VM( IoDevice& ioDevice )
: m_ioDevice{ ioDevice }
, m_cpu{ m_mmu, m_ioDevice, m_rng }
{
}
bool VM::loadRom( const std::string& fileName )
{
std::ifstream in{ fileName, std::ios::binary };
if ( in.is_open... | Return false when failing to open a file | Return false when failing to open a file
| C++ | mit | benvenutti/core8,benvenutti/core8 |
c0e5043e485cee85b6f1562a124f41bba4e49604 | test/asan/TestCases/Windows/intercept_strdup.cc | test/asan/TestCases/Windows/intercept_strdup.cc | // RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <string.h>
#include <malloc.h>
int main() {
char *ptr = _strdup("Hello");
int subscript = 1;
ptr[subscript] = '3';
printf("%s\n", ptr);
fflush(0);
// CHECK: H3llo
subscript = -1;
ptr[subscript] = 42;... | // RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <string.h>
#include <malloc.h>
int main() {
char *ptr = _strdup("Hello");
int subscript = 1;
ptr[subscript] = '3';
printf("%s\n", ptr);
fflush(0);
// CHECK: H3llo
subscript = -1;
ptr[subscript] = 42;... | Update this test yet again, this time based on a nice consecutive pair of lines provided with the filecheck output from the previous run. I'll probably give up after this and get someone with a Windows build to help me out. | Update this test yet again, this time based on a nice consecutive pair
of lines provided with the filecheck output from the previous run. I'll
probably give up after this and get someone with a Windows build to help
me out.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@271784 91177308-0d34-0410-b5e6-96231b3b80d... | C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
b15be0d10216abdc83c48cc60bcb3e2a73a962cd | test/Parser/cxx-attributes.cpp | test/Parser/cxx-attributes.cpp | // RUN: %clang_cc1 -fsyntax-only -verify %s
class c {
virtual void f1(const char* a, ...)
__attribute__ (( __format__(__printf__,2,3) )) = 0;
virtual void f2(const char* a, ...)
__attribute__ (( __format__(__printf__,2,3) )) {}
};
| // RUN: %clang_cc1 -fsyntax-only -verify %s
class c {
virtual void f1(const char* a, ...)
__attribute__ (( __format__(__printf__,2,3) )) = 0;
virtual void f2(const char* a, ...)
__attribute__ (( __format__(__printf__,2,3) )) {}
};
| Convert this file to not have Windows line endings -- likely committed from Windows without svn:eol-style=native. | Convert this file to not have Windows line endings -- likely committed from
Windows without svn:eol-style=native.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@110308 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
b6a23f31ba4f24d8f7b3323a209cb73192ab0c67 | src/integrityctl.cpp | src/integrityctl.cpp | // Copyright 2015 Nikita Chudinov
#include <iostream>
#include "argument_parser.h"
#include "daemon.h"
#include "ipc.h"
int main(int argc, char *argv[]) {
ArgumentParser arguments(argc, argv);
switch (arguments.GetMode()) {
case ArgumentParser::START:
Daemon::Start();
break;
... | // Copyright 2015 Nikita Chudinov
#include <iostream>
#include "argument_parser.h"
#include "daemon.h"
#include "ipc.h"
int main(int argc, char *argv[]) {
ArgumentParser arguments(argc, argv);
int status = 0;
switch (arguments.GetMode()) {
case ArgumentParser::START:
Daemon::Start();
... | Return non-zero status on error | Return non-zero status on error
| C++ | mit | Monory/file-integrity,Monory/file-integrity |
05fec8c68d5345d060f82803d7bb9279747c78f0 | math/Sphere.cpp | math/Sphere.cpp | #include "./Sphere.hpp"
#include "./misc.hpp"
#include <algorithm>
#include <cmath>
namespace yks {
Optional<float> intersect(const vec3& origin, float radius, const Ray& r) {
const vec3 o = r.origin - origin;
const vec3 v = r.direction;
float t1, t2;
const int solutions = solve_quadratic(dot(v, v), 2*dot(o... | #include "./Sphere.hpp"
#include "./misc.hpp"
#include <algorithm>
#include <cmath>
namespace yks {
Optional<float> intersect(const vec3& origin, float radius, const Ray& r) {
const vec3 o = r.origin - origin;
const vec3 v = r.direction;
float t1, t2;
const int solutions = solve_quadratic(dot(v, v), 2*dot(o... | Optimize sphere sampling code using trig identity | Optimize sphere sampling code using trig identity
| C++ | apache-2.0 | yuriks/libyuriks,yuriks/libyuriks,yuriks/super-match-5-dx,yuriks/super-match-5-dx |
6dd9710c0b672a141d6aa41a0c65d34dd1603a61 | src/state/main_menu_state.cpp | src/state/main_menu_state.cpp | #include "main_menu_state.hpp"
#include "game_state.hpp"
namespace Quoridor {
MainMenuState::MainMenuState()
{
}
MainMenuState::~MainMenuState()
{
}
void MainMenuState::handle_events(StateManager *stm, std::shared_ptr<UI::UIImpl> ui)
{
UI::Event ev;
if (ui->poll_event(&ev)) {
switch (ev) {
c... | #include "main_menu_state.hpp"
#include "start_game_state.hpp"
namespace Quoridor {
MainMenuState::MainMenuState()
{
}
MainMenuState::~MainMenuState()
{
}
void MainMenuState::handle_events(StateManager *stm,
std::shared_ptr<UI::UIImpl> ui)
{
UI::Event ev;
if (ui->poll_event(&ev)) {
switch (e... | Fix state switching in main menu. | Fix state switching in main menu.
| C++ | mit | sfod/quoridor |
7a26d87c9fef90d2d87ec7138b12db9efb2a11fd | test/libcxx/diagnostics/nodiscard_extensions.fail.cpp | test/libcxx/diagnostics/nodiscard_extensions.fail.cpp | // -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// 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.
//
//===-------------------------... | // -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// 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.
//
//===-------------------------... | Mark [[nodiscard]] tests unsupported on GCC prior to 7.0 | Mark [[nodiscard]] tests unsupported on GCC prior to 7.0
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@342821 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
455ac0e010173f770b19996c3a78a1d1d9700827 | src/runtime/destructors.cpp | src/runtime/destructors.cpp | #include "runtime_internal.h"
#define INLINE inline __attribute__((weak)) __attribute__((always_inline)) __attribute__((used))
extern "C" {
INLINE void call_destructor(void *user_context, void (*fn)(void *user_context, void *object), void **object) {
// Call the function
if (*object) {
fn(user_contex... | #include "runtime_internal.h"
#define INLINE inline __attribute__((weak)) __attribute__((always_inline)) __attribute__((used))
extern "C" {
INLINE void call_destructor(void *user_context, void (*fn)(void *user_context, void *object), void **object) {
void *o = *object;
*object = NULL;
// Call the functio... | Set stack slot to null before calling destructor | Set stack slot to null before calling destructor
Just in case the destructor block gets branched to somehow.
Former-commit-id: 9ff4f3dc9d6b8de56f5a54f33f2c3eb6f989ec51 | C++ | mit | Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide |
77404b578d758714a013d8419af3cfe72992f9d7 | src/vw/Core/System.cc | src/vw/Core/System.cc | #include <vw/Core/System.h>
#include <vw/Core/Cache.h>
#include <vw/Core/Log.h>
#include <vw/Core/Settings.h>
#include <vw/Core/Stopwatch.h>
namespace {
vw::RunOnce core_once = VW_RUNONCE_INIT;
vw::Cache* cache_ptr = 0;
vw::Settings* settings_ptr = 0;
vw::Log* log_ptr = 0;
vw::... | #include <vw/Core/System.h>
#include <vw/Core/Cache.h>
#include <vw/Core/Log.h>
#include <vw/Core/Settings.h>
#include <vw/Core/Stopwatch.h>
#define FUNC(Name, Type, Code) \
namespace { \
vw::RunOnce Name ## _once = VW_RUNONCE_INIT; \
Type* Name ## _ptr... | Work around the cache->settings->cache deadlock | Work around the cache->settings->cache deadlock
| C++ | apache-2.0 | DougFirErickson/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,fengzhyuan/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,DougFirErickson/visionworkbench,AveRapina/visionworkbench,AveRapina/visionworkbench,DougFirErickson/visionworkbench,AveRapina/visionworkbench,fengzhyuan/vi... |
3baa9e431a86994170deb88839517dae6e5fa6ef | chrome/app/chrome_watcher_command_line_unittest_win.cc | chrome/app/chrome_watcher_command_line_unittest_win.cc | // Copyright (c) 2014 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/app/chrome_watcher_command_line_win.h"
#include <windows.h>
#include "base/command_line.h"
#include "base/files/file_path.h"
#inclu... | // Copyright (c) 2014 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/app/chrome_watcher_command_line_win.h"
#include <windows.h>
#include "base/command_line.h"
#include "base/files/file_path.h"
#inclu... | Fix a unittest that was leaking a HANDLE due to base::Process refactoring. | Fix a unittest that was leaking a HANDLE due to base::Process refactoring.
BUG=
Review URL: https://codereview.chromium.org/920483003
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#317407}
| C++ | bsd-3-clause | TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,ltilve/chromium,Chilledheart/chromium,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,Chilledheart/chromium,Pluto-t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.