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 |
|---|---|---|---|---|---|---|---|---|---|
ddff43275d41109c2acb07aa6dd52e114bafca11 | content/renderer/scheduler/renderer_scheduler.cc | content/renderer/scheduler/renderer_scheduler.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 "content/renderer/scheduler/renderer_scheduler.h"
#include "content/renderer/scheduler/null_renderer_scheduler.h"
namespace content {
Renderer... | // 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 "content/renderer/scheduler/renderer_scheduler.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop_proxy.h"
#include "con... | Enable the RendererScheduler by default. | content: Enable the RendererScheduler by default.
BUG=391005
Review URL: https://codereview.chromium.org/704933002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#303625}
| C++ | bsd-3-clause | TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,dednal/chromium.src,Jonekee/chromium.src,Jonekee/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,ltilve/chromium,Pluto... |
c77cf1bb3ca798fc164b94c41d58d1d7ecdefe09 | gns/test_util/random_number.cc | gns/test_util/random_number.cc | #include "gns/test_util/random_number.h"
namespace gns {
namespace test_util {
RandomNumber::RandomNumber(const size_t seed)
: engine_(), distribution_()
{
}
double RandomNumber::operator()()
{
return distribution_(engine_);
}
double RandomNumber::operator()(const double min, const double max)
... | #include "gns/test_util/random_number.h"
namespace gns {
namespace test_util {
RandomNumber::RandomNumber(const size_t seed)
: engine_(), distribution_()
{
engine_.seed(seed);
}
double RandomNumber::operator()()
{
return distribution_(engine_);
}
double RandomNumber::operator()(const double m... | Fix error in Travic CI | Fix error in Travic CI
| C++ | mit | i05nagai/generalized_niederreiter_sequence,i05nagai/generalized_niederreiter_sequence |
82c14a797c077287a694cc4b3bd3ed31d19eed85 | Xcode/ESP/src/examples/user_touche.cpp | Xcode/ESP/src/examples/user_touche.cpp | /** @example user_touche.cpp
Touche example.
*/
#include <ESP.h>
BinaryIntArraySerialStream stream(0, 115200, 160);
GestureRecognitionPipeline pipeline;
void setup()
{
useInputStream(stream);
pipeline.addFeatureExtractionModule(TimeseriesBuffer(1, 160));
pipeline.setClassifier(SVM(SVM::POLY_KERNEL... | /** @example user_touche.cpp
Touche example.
*/
#include <ESP.h>
BinaryIntArraySerialStream stream(0, 115200, 160);
GestureRecognitionPipeline pipeline;
void setup()
{
useInputStream(stream);
pipeline.setClassifier(SVM(SVM::POLY_KERNEL, SVM::C_SVC, false, true, true, 0.1, 1.0, 0, 0.5, 2));
usePipe... | Remove Touche feature extraction module. | Remove Touche feature extraction module.
It didn’t actually do anything. It was just because we display high
dimensional features as snapshots of a single point in time.
| C++ | bsd-3-clause | damellis/ESP,damellis/ESP |
343f0203ce426adcde436eb21fd57a4624459a3d | src/liblogger/Logger.cpp | src/liblogger/Logger.cpp | #include "Logger.h"
#include <iostream>
//
// (plesslie)
// posix_time_zone is just parsing the "-XX" portion and subtracting that from UTC meaning
// that it isn't adjusting for daylight savings time. not sure how to fix that, and I don't
// really care for now.
//
Logger::Logger() : ss_(), tz_(new boost::local_time... | #include "Logger.h"
#include <iostream>
//
// (plesslie)
// posix_time_zone is just parsing the "-XX" portion and subtracting that from UTC meaning
// that it isn't adjusting for daylight savings time. not sure how to fix that, and I don't
// really care for now.
//
Logger::Logger() : ss_(), tz_(new boost::local_time... | Fix delete ordering for input/output facets | Fix delete ordering for input/output facets
| C++ | mit | selavy/word-brain-solver |
81e1253dd2dcc5751396032bf5611c7e83249d9a | PluginHelpers/PluginHelpers.cpp | PluginHelpers/PluginHelpers.cpp | // PluginHelpers.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "pluginhelpers.h"
////////////////////////////////////////////////////////////////////////////////////////////////
using namespace Abstractspoon::Tdl::PluginHelpers;
///////////////////////////////////////... | // PluginHelpers.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "pluginhelpers.h"
////////////////////////////////////////////////////////////////////////////////////////////////
using namespace Abstractspoon::Tdl::PluginHelpers;
///////////////////////////////////////... | Use legacy font rendering for consistency | Use legacy font rendering for consistency
| C++ | epl-1.0 | abstractspoon/ToDoList_Plugins,abstractspoon/ToDoList_Plugins,abstractspoon/ToDoList_Plugins |
699d79da1008d586791d69203bf1c46c285e15be | tensorflow_lite_support/cc/task/core/error_reporter.cc | tensorflow_lite_support/cc/task/core/error_reporter.cc | /* Copyright 2020 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 2020 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... | Fix bug where it was assuming that error messages won't contain format strings. | Fix bug where it was assuming that error messages won't contain format strings.
It was passing a C string to the tflite::logging_internal::MinimalLogger::Log() function, which takes a format string and arguments, but wasn't using "%s".
As a result, the error message was being interpreted as a format string,
which coul... | C++ | apache-2.0 | tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support,tensorflow/tflite-support |
745f4dd816aeea5a2a2ba5f8dbf8f80df3a46bdf | example/example.cpp | example/example.cpp |
#include <stdlib.h>
#include <string>
// include the sql parser
#include "SQLParser.h"
// contains printing utilities
#include "sqlhelper.h"
int main(int argc, char *argv[]) {
if (argc <= 1) {
fprintf(stderr, "Usage: ./example \"SELECT * FROM test;\"\n");
return -1;
}
std::string query =... |
#include <stdlib.h>
#include <string>
// include the sql parser
#include "SQLParser.h"
// contains printing utilities
#include "sqlhelper.h"
int main(int argc, char *argv[]) {
if (argc <= 1) {
fprintf(stderr, "Usage: ./example \"SELECT * FROM test;\"\n");
return -1;
}
std::string query =... | Check NULL value of result. | Check NULL value of result.
| C++ | mit | timzimmermann/sql-parser,timzimmermann/sql-parser,timzimmermann/sql-parser,timzimmermann/sql-parser,timzimmermann/sql-parser,timzimmermann/sql-parser |
c00324f3bc4f5b445f4eb7ba5f2a63459026db2f | gpu/command_buffer/client/gles2_lib.cc | gpu/command_buffer/client/gles2_lib.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 "../client/gles2_lib.h"
#include "../common/thread_local.h"
namespace gles2 {
namespace {
gpu::ThreadLocalKey g_gl_context_key;
} // namesp... | // 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 "../client/gles2_lib.h"
#include "../common/thread_local.h"
namespace gles2 {
// TODO(kbr): the use of this anonymous namespace core dumps t... | Work around bug in gcc's name mangling causing linker to crash on Mac OS X. | Work around bug in gcc's name mangling causing linker to crash on Mac
OS X.
BUG=40845
TEST=none
TBR=gman
Review URL: http://codereview.chromium.org/2079003
git-svn-id: http://src.chromium.org/svn/trunk/src@47225 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: ae8adbcc1f483d676036368d627f4a464561a2df | C++ | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
2d8cf1a8c58963ba2773f83e32363adbe2d796cb | src/service_name.cpp | src/service_name.cpp | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... | Fix compile error when using test_ukvm.sh | Fix compile error when using test_ukvm.sh
Moved `extern "C"` to correct location. Otherwise, when executing `./test_ukvm.sh` the following compile error is generated:
```
includeos/src/service_name.cpp:24:8: error: expected unqualified-id before string constant
extern "C"
^
``` | C++ | apache-2.0 | mnordsletten/IncludeOS,mnordsletten/IncludeOS,AnnikaH/IncludeOS,AnnikaH/IncludeOS,alfred-bratterud/IncludeOS,AnnikaH/IncludeOS,mnordsletten/IncludeOS,alfred-bratterud/IncludeOS,AnnikaH/IncludeOS,hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,alfred-bratterud/IncludeOS,hioa-cs/IncludeOS,hioa-cs/Inclu... |
f6836c0af850d3cbce4c54885f6c4468210aa04c | OrionUO/OrionApplication.cpp | OrionUO/OrionApplication.cpp | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** OrionApplication.cpp
**
** Copyright (C) August 2016 Hotride
**
****... | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** OrionApplication.cpp
**
** Copyright (C) August 2016 Hotride
**
****... | Return update ever 50 ms (if idle) | Return update ever 50 ms (if idle)
| C++ | mit | Hotride/OrionUO,Hotride/OrionUO,Hotride/OrionUO |
f2fc281b00d58ad7dcf50f2da5927316f1fa9a3a | src/osgSim/BlinkSequence.cpp | src/osgSim/BlinkSequence.cpp | //C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield
// Distributed under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation.
//
// All software using osgSim must be GPL'd or excempted via the
// purchase of the Open Scene Graph Professional... | //C++ header - Open Scene Graph Simulation - Copyright (C) 1998-2002 Robert Osfield
// Distributed under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation.
//
// All software using osgSim must be GPL'd or excempted via the
// purchase of the Open Scene Graph Professional... | Fix for compile problems under IRIX. | Fix for compile problems under IRIX.
| C++ | lgpl-2.1 | jtorresfabra/osg,openscenegraph/osg,marchelbling/osg,marchelbling/osg,scrawl/osg,jtorresfabra/osg,scrawl/osg,artoolkit/osg,openscenegraph/osg,scrawl/osg,artoolkit/osg,marchelbling/osg,artoolkit/osg,artoolkit/osg,tomasthoresen/osg,tomasthoresen/osg,jtorresfabra/osg,marchelbling/osg,openscenegraph/osg,scrawl/osg,tomastho... |
43619e309e8a912aaf57011937121c77d2b5c16a | src/runtime/windows_get_symbol.cpp | src/runtime/windows_get_symbol.cpp | #include "runtime_internal.h"
#ifdef BITS_64
#define WIN32API
#else
#define WIN32API __stdcall
#endif
extern "C" {
WIN32API void *LoadLibrary(const char *);
WIN32API void *GetProcAddress(void *, const char *);
WEAK void *halide_get_symbol(const char *name) {
return GetProcAddress(NULL, name);
}
WEAK void *hali... | #include "runtime_internal.h"
#ifdef BITS_64
#define WIN32API
#else
#define WIN32API __stdcall
#endif
extern "C" {
WIN32API void *LoadLibraryA(const char *);
WIN32API void *GetProcAddress(void *, const char *);
WEAK void *halide_get_symbol(const char *name) {
return GetProcAddress(NULL, name);
}
WEAK void *hal... | Fix missing LoadLibrary symbol on windows. | Fix missing LoadLibrary symbol on windows.
| C++ | mit | dougkwan/Halide,fengzhyuan/Halide,lglucin/Halide,kenkuang1213/Halide,rodrigob/Halide,aam/Halide,tdenniston/Halide,myrtleTree33/Halide,fengzhyuan/Halide,jiawen/Halide,damienfir/Halide,fengzhyuan/Halide,dougkwan/Halide,mcanthony/Halide,dan-tull/Halide,adasworks/Halide,damienfir/Halide,adasworks/Halide,delcypher/Halide,ro... |
31ee1df70ee6e6f31376658170a25d1df42ebe84 | src/tests/FileOperations.cpp | src/tests/FileOperations.cpp | #include "FileOperations.h"
#include <QFile>
#include <QtGlobal>
template <class InputIterator1, class InputIterator2>
bool FileOperations::equal(InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2) {
while ((first1 != last1) && (first2 != last2)) {
... | #include "FileOperations.h"
#include <QFile>
#include <QtGlobal>
bool FileOperations::filesEqual(const QString& filePath1,
const QString& filePath2) {
bool equivalent = false;
QFile file1(filePath1);
QFile file2(filePath2);
if (file1.exists() && file2.exists()) {
file1.ope... | Use QFile to do file comparison | Use QFile to do file comparison
| C++ | mit | adolby/Kryvos,adolby/Kryvos,adolby/Kryvos |
0b3e0bd60faca7602bf19a9eba78479ff1cceffb | chrome/browser/extensions/extension_get_views_apitest.cc | chrome/browser/extensions/extension_get_views_apitest.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
#if defined(TOOLKI... | // 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/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
IN_PROC_BROWSER_TE... | Enable ExtensionApiTest.GetViews on all platforms. | Enable ExtensionApiTest.GetViews on all platforms.
BUG=none
TEST=passes everywhere
Review URL: http://codereview.chromium.org/8520013
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@110104 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | hgl888/chromium-crosswalk-efl,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,robclark/chromium,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,anirudh... |
d191a42d6e36abb1c5ad46c948f8cd92063f7eec | sdk-remote/src/libuco/urbi-main.cc | sdk-remote/src/libuco/urbi-main.cc | /*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/// \file libuco/urbi-main.cc
#... | /*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/// \file libuco/urbi-main.cc
#... | Call libport::program_initialize in every entry point. | Call libport::program_initialize in every entry point.
* src/libuco/urbi-main.cc: Here.
| C++ | bsd-3-clause | aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi |
da86b623ac22c4086f0587ed011c387f521e842f | apps/rtc-blinker/main.cpp | apps/rtc-blinker/main.cpp | #include "gpio.h"
#include "nvic.h"
#include "driver/timer.hpp"
extern "C" void __cxa_pure_virtual() {
while (1);
}
namespace {
int counter = 0;
void toggle_leds() {
++counter;
auto gpio_n = 17 + (counter & 3);
gpio_toggle(0, (1 << gpio_n));
}
}
int main(void) {
nvic_init();
auto* rtc = ... | #include "gpio.h"
#include "nvic.h"
#include "driver/timer.hpp"
#include "memio.h"
namespace {
int counter = 0;
void toggle_leds(int) {
auto gpio_n = 17 + (counter++ & 3);
gpio_toggle(0, (1 << gpio_n));
}
}
int main(void) {
nvic_init();
gpio_set_option(0, (1 << 17) | (1 << 18) | (1 << 19) | (1 <<... | Use new API in rtc-blinker app | Use new API in rtc-blinker app
The rtc-blinker app now uses new event API for RTC and also
new API for GPIO.
| C++ | apache-2.0 | google/cortex-demos,google/cortex-demos,google/cortex-demos,google/cortex-demos |
88f30dee6ca6d99e46d4ce61f691fb3dff4ae7c8 | test/CXX/temp/temp.decls/temp.variadic/p4.cpp | test/CXX/temp/temp.decls/temp.variadic/p4.cpp | // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
template<typename... Types> struct Tuple;
// FIXME: Many more bullets to go
// In a template-argument-list (14.3); the pattern is a template-argument.
template<typename ...Types>
struct tuple_of_refs {
typedef Tuple<Types& ...> types;
};
Tuple<int&, float&> *... | // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
template<typename... Types> struct tuple;
// FIXME: Many more bullets to go
// In a template-argument-list (14.3); the pattern is a template-argument.
template<typename ...Types>
struct tuple_of_refs {
typedef tuple<Types& ...> types;
};
tuple<int&, float&> *... | Test template instantiation of pack expansions where the parameter pack is in a nested-name-specifier | Test template instantiation of pack expansions where the parameter pack is in a nested-name-specifier
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@122282 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-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,apple/swift-cl... |
11c8e31cad33cca2d0486a44f668c4dc642bece4 | sysinfo.cc | sysinfo.cc | #include <iostream>
#include <limits.h>
#include <thread>
#include <unistd.h>
int main() {
char name[_POSIX_HOST_NAME_MAX + 1];
gethostname(name, sizeof(name));
std::cout << "Host name: " << name << std::endl;
unsigned int cores = std::thread::hardware_concurrency();
std::cout << "Total cores: " <... | #include <iostream>
#include <limits.h>
#include <thread>
int main() {
unsigned int cores = std::thread::hardware_concurrency();
std::cout << "Total cores: " << cores << std::endl;
return 0;
}
| Fix Windows build issues by removing posix only code. | Fix Windows build issues by removing posix only code.
| C++ | apache-2.0 | mikemadden42/modern_cc |
09b7d1ef6121d88c074f81a963c29448a99958cf | ionGraphics/Uniforms.cpp | ionGraphics/Uniforms.cpp |
#include "Uniforms.h"
namespace ion
{
namespace Graphics
{
template <>
EValueType IUniformTyped<float>::GetType() const
{
return EValueType::Float;
}
template <>
EValueType IUniformTyped<vec2f>::GetType() const
{
return EValueType::Float2;
}
template <>
EValueType... |
#include "Uniforms.h"
namespace ion
{
namespace Graphics
{
template <>
EValueType IUniformTyped<float>::GetType() const
{
return EValueType::Float;
}
template <>
EValueType IUniformTyped<vec2f>::GetType() const
{
return EValueType::Float2;
}
template <>
EValueType... | Add support for uint uniforms | Add support for uint uniforms
| C++ | mit | iondune/ionEngine,iondune/ionEngine |
80674dde2219fd5a4400daba245b454de95218c1 | apps/test/framework/c++/cppComponent/Hello.cpp | apps/test/framework/c++/cppComponent/Hello.cpp |
#include <legato.h>
#include <thread>
#include <string>
#include <list>
#include <iostream>
#ifndef MUST_BE_DEFINED
#error MUST_BE_DEFINED was not defined.
#endif
COMPONENT_INIT
{
LE_INFO("Hello world, from thread 1.");
std::thread newThread([]()
{
le_thread_InitLegatoThreadData("threa... |
#include <legato.h>
#include <thread>
#include <string>
#include <list>
#include <iostream>
#ifndef MUST_BE_DEFINED
#error MUST_BE_DEFINED was not defined.
#endif
COMPONENT_INIT
{
LE_INFO("Hello world, from thread 1.");
std::thread newThread([]()
{
le_thread_InitLegatoThreadData("threa... | Fix klocwork issues with uninitialized variables in the "apps" module. | Fix klocwork issues with uninitialized variables in the "apps" module.
Resolves: LE-9400
Change-Id: I4500613cf3d1f7f849b3f0b74ca6f5b3485757c3
| C++ | mpl-2.0 | legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af |
a574244f6d9b092b7941abbdb346291a790c6474 | StatModules/HM3/Src/HM3/HM3Pointers.cpp | StatModules/HM3/Src/HM3/HM3Pointers.cpp | #include "HM3Pointers.h"
HM3Pointers::HM3Pointers(HM3Version version)
{
Setup(version);
}
HM3Pointers::~HM3Pointers()
{
}
void HM3Pointers::Setup(HM3Version version)
{
uint8_t** difficultyPtr = nullptr;
uint8_t** timePtr = nullptr;
switch (version)
{
case HM3_GOG:
m_Stats = (HM3Stats*)0x0... | #include "HM3Pointers.h"
struct DataAddresses
{
uint32_t Stats;
uint32_t DifficultyPtr;
uint32_t TimePtr;
};
static const DataAddresses DataVersions[]
{
{ 0x00000000, 0x00000000, 0x00000000 }, // Unknown version
{ 0x009B2538, 0x0081F83C, 0x0081F820 }, // Steam
{ 0x009B3B38, 0x0082083C, 0x00820820 }... | Improve structure of encoding different version addresses | Improve structure of encoding different version addresses
| C++ | mit | OrfeasZ/Statman,OrfeasZ/Statman,OrfeasZ/Statman |
52b0f337eb578bb39696ec8e666e21b29ffb088c | src/DeviceInterfaces/Networking.Sntp/nf_networking_sntp.cpp | src/DeviceInterfaces/Networking.Sntp/nf_networking_sntp.cpp | //
// Copyright (c) 2018 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_networking_sntp.h"
static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
Library_nf_networking_sntp_nanoFramework_Networking_Sntp::Start___STATIC__VOID,
... | //
// Copyright (c) 2018 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_networking_sntp.h"
static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
Library_nf_networking_sntp_nanoFramework_Networking_Sntp::Start___STATIC__VOID,
... | Update nanoFramework.Networking.Sntp version to 1.0.2-preview-049 ***NO_CI*** | Update nanoFramework.Networking.Sntp version to 1.0.2-preview-049 ***NO_CI***
| C++ | mit | nanoframework/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter |
fdd44e5feb3ba0cd7dab1a8d1d408b5881bf33dd | src/Engine/Component/Script.cpp | src/Engine/Component/Script.cpp | #include "Script.hpp"
using namespace Component;
Script::Script(Entity* entity) : SuperComponent(entity) {
}
Json::Value Script::Save() const {
Json::Value component;
return component;
}
void Script::Load(const Json::Value& node) {
}
| #include "Script.hpp"
using namespace Component;
Script::Script(Entity* entity) : SuperComponent(entity) {
}
Json::Value Script::Save() const {
Json::Value component;
component["placeholderValue"] = "";
return component;
}
void Script::Load(const Json::Value& node) {
}
| Add placeholder value to script component | Add placeholder value to script component
| C++ | mit | Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/HymnToBeauty,Chainsawkitten/HymnToBeauty |
8fed4b47e4de40665ed9abd4247abbaa0fc2d006 | Isosurface.cpp | Isosurface.cpp | #include "Isosurface.h"
Vector3D Isosurface::gradientAt(float x, float y, float z) const
{
const float epsilon = 0.0001;
float dx = valueAt(x + epsilon, y, z) - valueAt(x - epsilon, y, z);
float dy = valueAt(x, y + epsilon, z) - valueAt(x, y - epsilon, z);
float dz = valueAt(x, y, z + epsilon) - value... | #include "Isosurface.h"
Vector3D Isosurface::gradientAt(float x, float y, float z) const
{
const float epsilon = 0.0001;
float dx = valueAt(x + epsilon, y, z) - valueAt(x - epsilon, y, z);
float dy = valueAt(x, y + epsilon, z) - valueAt(x, y - epsilon, z);
float dz = valueAt(x, y, z + epsilon) - value... | Fix a brace style inconsistency | Fix a brace style inconsistency
| C++ | mit | Calvin-L/MarchingTetrahedrons,Calvin-L/MarchingTetrahedrons |
942da68b34b095fca18e138d322867165d1d7fde | chrome/browser/extensions/extension_webnavigation_apitest.cc | chrome/browser/extensions/extension_webnavigation_apitest.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
IN_PROC_BROWSER_T... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
IN_PROC_BROWSER_T... | Disable ExtensionApiTest.WebNavigationEvents1, flakily exceeds test timeout | Disable ExtensionApiTest.WebNavigationEvents1, flakily exceeds test timeout
TBR=jochen
BUG=72165
TEST=browser_tests
Review URL: http://codereview.chromium.org/6286142
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@73975 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | zcbenz/cefode-chromium,hujiajie/pa-chromium,ltilve/chromium,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,nacl-webkit/ch... |
705c1e2290001c7e82df429533b3b8742a8902f2 | test/test_suite.cpp | test/test_suite.cpp | #include "mettle.hpp"
using namespace mettle;
suite<suites_list> test_suite("test suite", [](auto &_) {
_.test("create a test suite", [](suites_list &suites) {
suite<> inner("inner test suite", [](auto &_){
_.test("inner test", []() {});
}, suites);
expect(suites, array(&inner));
});
_.test(... | #include "mettle.hpp"
using namespace mettle;
suite<suites_list> test_suite("test suite", [](auto &_) {
_.test("create a test suite", [](suites_list &suites) {
suite<> inner("inner test suite", [](auto &_){
_.test("inner test", []() {});
}, suites);
expect(suites, array(&inner));
});
_.test(... | Test that test suites with broken initializers don't get added to the list of suites | Test that test suites with broken initializers don't get added to the list of suites
| C++ | bsd-3-clause | jimporter/mettle,jimporter/mettle |
6c78ea1ed63dc80a4194d133e3ce87f6c5f7bd4e | content/renderer/scheduler/renderer_scheduler.cc | content/renderer/scheduler/renderer_scheduler.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 "content/renderer/scheduler/renderer_scheduler.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop_proxy.h"
#include "con... | // 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 "content/renderer/scheduler/renderer_scheduler.h"
#include "content/renderer/scheduler/null_renderer_scheduler.h"
namespace content {
Renderer... | Revert "content: Enable the RendererScheduler by default." | Revert "content: Enable the RendererScheduler by default."
This reverts commit ddff43275d41109c2acb07aa6dd52e114bafca11.
Speculative revert to see if it fixes Debug layout test failures:
inspector/console/console-format.html
http/tests/appcache/fallback.html
e.g., http://build.chromium.org/p/chromium.webkit/builders/... | C++ | bsd-3-clause | mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,dednal/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,dednal/chromium.src,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-cro... |
ae9b8c7ea1d4a262f68c5c9c867a818ed83733f4 | project/src/platform/windows/snow_windows_window_sdl2.cpp | project/src/platform/windows/snow_windows_window_sdl2.cpp | /*
Copyright Sven Bergström 2014
created for snow https://github.com/underscorediscovery/snow
MIT license
*/
#ifdef HX_WINDOWS
#include <windows.h>
#include "SDL.h"
#include "SDL_syswm.h"
namespace snow {
namespace platform {
namespace window {
void load_icon(SDL_Window* _windo... | /*
Copyright Sven Bergström 2014
created for snow https://github.com/underscorediscovery/snow
MIT license
*/
#ifdef HX_WINDOWS
#include <windows.h>
#include "SDL.h"
#include "SDL_syswm.h"
namespace snow {
namespace platform {
namespace window {
void load_icon(SDL_Window* _windo... | Fix msvc windows 64 build; Add windows 64 bit prebuilt lib | Fix msvc windows 64 build; Add windows 64 bit prebuilt lib
| C++ | mit | underscorediscovery/snow,mrcdk/snow,mrcdk/snow,mrcdk/snow,snowkit/snow,mrcdk/snow,underscorediscovery/snow,mrcdk/snow,snowkit/snow,snowkit/snow,underscorediscovery/snow,mrcdk/snow |
60598ef45201bdfa76c32297197b1e55854d2a3d | src/blockingcall_test.cpp | src/blockingcall_test.cpp | // Copyright 2019 The Marl Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | // Copyright 2019 The Marl Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | Fix TSAN issue with BlockingCall test. | Fix TSAN issue with BlockingCall test.
The mutex was being unlocked on the a different thread, causing TSAN upset.
| C++ | apache-2.0 | google/marl,google/marl,google/marl,google/marl |
953e93e68f650dbe2896ac13fbe10d6830f59be0 | TimeSeriesStatistics/src/TimeSeriesStatisticsDemo.cpp | TimeSeriesStatistics/src/TimeSeriesStatisticsDemo.cpp | //============================================================================
// Name : TimeSeriesStatisticsDemo.cpp
// Author : Dominik Skoda <skoda@d3s.mff.cuni.cz>
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//==================================... | //============================================================================
// Name : TimeSeriesStatisticsDemo.cpp
// Author : Dominik Skoda <skoda@d3s.mff.cuni.cz>
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//==================================... | Test of the tnc function. | Test of the tnc function. | C++ | apache-2.0 | d3scomp/TimeSeriesStatistics,d3scomp/TimeSeriesStatistics,d3scomp/TimeSeriesStatistics,d3scomp/TimeSeriesStatistics |
ed6c20e48d547bdda5c68ba1b8f79a16916683ab | test/libcxx/memory/aligned_allocation_macro.pass.cpp | test/libcxx/memory/aligned_allocation_macro.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Disable the aligned allocation test on old mac versions instead of XFAILing it | Disable the aligned allocation test on old mac versions instead of XFAILing it
It looks like this test XPASSes when the deployment target is older than
the OS of the system the test is running on. It looks like we run the
tests with -mmacosx-version-min=10.12, and that makes the test expect to
fail, but it passes.
gi... | C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
5d6d8bce983a6614a956ed81816914386d08e4b4 | src/main.cpp | src/main.cpp | #include "application.h"
#include "mainwindow.h"
#include <QApplication>
#include <QMainWindow>
int main(int argc, char *argv[])
{
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
app.setOrganizationName("lpd8-editor");
app.setApplicationName("lpd8-editor");... | #include "application.h"
#include "mainwindow.h"
#include <QApplication>
#include <QMainWindow>
int main(int argc, char *argv[])
{
#if QT_VERSION >= 0x050600
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication app(argc, argv);
app.setOrganizationName("lpd8-editor");
app.se... | Enable HiDPI rendering if supported | Enable HiDPI rendering if supported
| C++ | mit | charlesfleche/lpd8-editor,charlesfleche/lpd8-editor |
dd57b39db6eea9bd57041b33821311550483ec64 | test/mvcol_tests.cc | test/mvcol_tests.cc | /* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
#include "../lib.hh"
#include "catch.hpp"
using namespace vick;
using vick::move::mvcol;
TEST_CASE("mvcol", "[mvcol]") {
contents contents({"asert"});
visual_setup _;
mvcol(contents, 3);
CHECK... | /* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
#include "../lib.hh"
#include "catch.hpp"
using namespace vick;
using vick::move::mvcol;
TEST_CASE("mvcol", "[mvcol]") {
contents contents({"asert"});
visual_setup _;
mvcol(contents, 3);
CHECK... | Fix testing same condition twice (copy paste) | Fix testing same condition twice (copy paste)
| C++ | mpl-2.0 | czipperz/vick-move |
9b42afdccc9f4b32ed4f83492f87e2cd0518f9f3 | test/CXX/over/over.match/over.match.funcs/over.match.copy/p1.cpp | test/CXX/over/over.match/over.match.funcs/over.match.copy/p1.cpp | // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s -verify
namespace ExplicitConv {
struct X { }; // expected-note 2{{candidate constructor}}
struct Y {
explicit operator X() const;
};
void test(const Y& y) {
X x(static_cast<X>(y));
X x2((X)y);
X x3 = y; // expected-error{{no viable conversion fr... | // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s -verify
namespace ExplicitConv {
struct X { }; // expected-note 2{{candidate constructor}}
struct Y {
explicit operator X() const;
};
void test(const Y& y) {
X x(static_cast<X>(y));
X x2((X)y);
X x3 = y; // expected-error{{no viable conversion fr... | Add test for C++ DR899. | Add test for C++ DR899.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@151411 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
0fb9666edbf2f43a97f355f6a1921e810c6b501d | src/VBE/system/sdl2/StorageImpl.cpp | src/VBE/system/sdl2/StorageImpl.cpp | #include <fstream>
#include <VBE/system/sdl2/StorageImpl.hpp>
// static
std::unique_ptr<std::istream> StorageImpl::openAsset(const std::string& filename) {
// Open in binary mode so Windows doesn't change LF to CRLF,
// which will corrupt binary files such as images.
return std::unique_ptr<std::istream>(new std::i... | #include <fstream>
#include <VBE/system/sdl2/StorageImpl.hpp>
#include <VBE/system/Log.hpp>
// static
std::unique_ptr<std::istream> StorageImpl::openAsset(const std::string& filename) {
// Open in binary mode so Windows doesn't change LF to CRLF,
// which will corrupt binary files such as images.
std::ifstream* st... | Check that assets are opened properly. | Check that assets are opened properly.
| C++ | mit | Towerthousand/VBE |
bf0ed8ffbaa8cde57a0d9885cbcd22082928338b | lib/imul.tas.cpp | lib/imul.tas.cpp | #include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
#if IMUL_EARLY_EXITS
b <- c == 0
d <- d &~ b // d = (c == 0) ? 0 : d
b <- d == 0
p <- @+L_done & b + p
#endif
o <- o - 3
h -> [o + (3 - 0)]
i -> [o + (3 - 1)]
j -> [o + (3 - 2)]
b <... | #include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
o <- o - 3
h -> [o + (3 - 0)]
i -> [o + (3 - 1)]
j -> [o + (3 - 2)]
b <- 0
h <- 1
j <- d >> 31 // save sign bit in j
d <- d ^ j // adjust multiplier
d <- d - j
L_top:
// us... | Remove optimization dependent on cpp | Remove optimization dependent on cpp
| C++ | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
0fe1e7f2fa3f4e0ebe1f6936643583f2a3751cbf | lib/imul.tas.cpp | lib/imul.tas.cpp | #include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
#if IMUL_EARLY_EXITS
b <- c == 0
d <- d &~ b // d = (c == 0) ? 0 : d
b <- d <> 0
jzrel(b, L_done)
#endif
pushall(h,i,j)
b <- 0
h <- 1
j <- d >> 31 // save sign bit in j
j <- -j ... | #include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
#if IMUL_EARLY_EXITS
b <- c == 0
d <- d &~ b // d = (c == 0) ? 0 : d
b <- d <> 0
jzrel(b, L_done)
#endif
pushall(h,i,j)
b <- 0
h <- 1
j <- d >>> 31 // save sign bit in j
d <- d ^... | Use arithmetic right-shift in imul | Use arithmetic right-shift in imul
| C++ | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
ab15a7cad4140954a4a4a946ff7d7fc65d005363 | test/tcframe/runner/RunnerTests.cpp | test/tcframe/runner/RunnerTests.cpp | #include "gmock/gmock.h"
#include "tcframe/experimental/runner.hpp"
using ::testing::Test;
namespace tcframe {
class FakeProblem : public BaseProblem {
protected:
void InputFormat() {}
};
class FakeGenerator : public BaseGenerator<FakeProblem> {};
class RunnerTests : public Test {
protected:
int argc = 1;... | #include "gmock/gmock.h"
#include "tcframe/experimental/runner.hpp"
using ::testing::Test;
namespace tcframe {
class FakeProblem : public BaseProblem {
protected:
void InputFormat() {}
};
class FakeGenerator : public BaseGenerator<FakeProblem> {};
class RunnerTests : public Test {
protected:
int argc = 1;... | Use safer cast from const char* literal to char* | Use safer cast from const char* literal to char*
| C++ | mit | ia-toki/tcframe,ia-toki/tcframe,fushar/tcframe,fushar/tcframe,tcframe/tcframe,tcframe/tcframe |
c9a687d927e07aad1eab655ee271e00cb93adbd7 | compiler/main/version.cpp | compiler/main/version.cpp | /*
* Copyright 2004-2014 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtain a copy of the License at
* ... | /*
* Copyright 2004-2014 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
* ... | Fix boolean expectation from strcmp. | Fix boolean expectation from strcmp.
| C++ | apache-2.0 | chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,Cor... |
1532259fcae8712777e1cedefc91224ee60a6aaa | src/test/fuzz/parse_hd_keypath.cpp | src/test/fuzz/parse_hd_keypath.cpp | // Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/fuzz.h>
#include <util/bip32.h>
void test_one_input(const std::vector<uint8_t>& buffer)
{
const std:... | // Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <util/bip32.h>
#i... | Add fuzzing coverage for FormatHDKeypath(...) and WriteHDKeypath(...) | tests: Add fuzzing coverage for FormatHDKeypath(...) and WriteHDKeypath(...)
| C++ | mit | achow101/bitcoin,n1bor/bitcoin,jlopp/statoshi,instagibbs/bitcoin,n1bor/bitcoin,AkioNak/bitcoin,AkioNak/bitcoin,anditto/bitcoin,jambolo/bitcoin,tecnovert/particl-core,AkioNak/bitcoin,MeshCollider/bitcoin,jamesob/bitcoin,Sjors/bitcoin,sstone/bitcoin,practicalswift/bitcoin,rnicoll/bitcoin,anditto/bitcoin,apoelstra/bitcoin... |
a45549ef25b441d348f96ecd7f55fa8775f5c06c | base/cancellation_flag.cc | base/cancellation_flag.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 "base/cancellation_flag.h"
#include "base/logging.h"
namespace base {
void CancellationFlag::Set() {
#if !defined(NDEBUG)
DCHECK(set_on_... | // 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/cancellation_flag.h"
#include "base/logging.h"
namespace base {
void CancellationFlag::Set() {
#if !defined(NDEBUG)
DCHECK_EQ(set_... | Replace a DCHECK with DCHECK_EQ. | Replace a DCHECK with DCHECK_EQ.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2919013
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@52429 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-li... |
3ae2abb11ef7224ab84a5cfb23a5703e5af4f85a | unittests/Support/TimeValueTest.cpp | unittests/Support/TimeValueTest.cpp | //===- llvm/unittest/Support/TimeValueTest.cpp - Time Value tests ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- llvm/unittest/Support/TimeValueTest.cpp - Time Value tests ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use the overloaded std::abs rather than C's abs(int) to address Clang's -Wabsolute-value | Use the overloaded std::abs rather than C's abs(int) to address Clang's -Wabsolute-value
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@202286 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chub... |
af1ee53ecdb3753741bbfb962a179a663f298afa | src/version.cpp | src/version.cpp | /******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that ... | /******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that ... | Add conditional preprocessor for nomlib's install prefix under Windows | Add conditional preprocessor for nomlib's install prefix under Windows
| C++ | bsd-2-clause | i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib |
26be0bdececdb5e1a746ab10083d8edfeaa909ad | app/open-nsynth/src/main.cpp | app/open-nsynth/src/main.cpp | /*
Copyright 2017 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 law or agreed to in wri... | /*
Copyright 2017 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 law or agreed to in wri... | Decrease window size to use less screen space | Decrease window size to use less screen space
Removes large black empty rectangle that draws over CLI + X server (if installed). | C++ | apache-2.0 | googlecreativelab/open-nsynth-super,googlecreativelab/open-nsynth-super,googlecreativelab/open-nsynth-super,googlecreativelab/open-nsynth-super |
82865e241a7d4f22ab53c0bb4dc971695a8cd39a | Sources/Rosetta/Tasks/SimpleTasks/ReturnHandTask.cpp | Sources/Rosetta/Tasks/SimpleTasks/ReturnHandTask.cpp | // This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Actions/Generic.hpp>
#include <Rosetta/Tasks... | // This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Actions/Generic.hpp>
#include <Rosetta/Tasks... | Correct nullptr problem (change 'm_target' to 'entity') | fix: Correct nullptr problem (change 'm_target' to 'entity')
| C++ | mit | Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp |
2a73f7181e404b361ebfb0efbcc0427db2d90564 | libkroll/utils/platform_utils.cpp | libkroll/utils/platform_utils.cpp | /**
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "utils.h"
#include <cstdio>
namespace UTILS_NS
{
namespace PlatformUtils
{
std::string GetFirstMACAddress()
... | /**
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "utils.h"
#include <stdio.h>
#include <string.h>
namespace UTILS_NS
{
namespace PlatformUtils
{
std::string ... | Fix build error on Linux. | Fix build error on Linux.
| C++ | apache-2.0 | appcelerator/kroll,appcelerator/kroll,appcelerator/kroll |
d0410c9367485f33c73b90c90c5a5a935bc82279 | solver.cpp | solver.cpp | #include "fnv_param.hpp"
#include "fnv_algo.hpp"
#include "constraint.hpp"
#include "fnv_solver.hpp"
#include <vector>
#include <iostream>
#include <boost/foreach.hpp>
int main(int argc, char** argv)
{
const std::vector<FNVParam> fnvParams = FNVParam::getAll();
const std::vector<FNVAlgo> fnvAlgos = FNVAlgo::getAll... | #include "fnv_param.hpp"
#include "fnv_algo.hpp"
#include "constraint.hpp"
#include "fnv_solver.hpp"
#include <vector>
#include <iostream>
#include <boost/foreach.hpp>
int main(int argc, char** argv)
{
const std::vector<FNVParam> fnvParams = FNVParam::getAll();
const std::vector<FNVAlgo> fnvAlgos = FNVAlgo::getAll... | Add slightly more spacing in output. | Add slightly more spacing in output.
Monotone-Parent: 6b99470e62e578d124e0fbbf7a434da82aeb3a5b
Monotone-Revision: 605fe263cd8d7dada4205b576819b218d4ddb8df
| C++ | mit | FrancisRussell/fnv_solver |
9708884c31741fb9db1059b39c2d14155821005e | webrtc/test/fuzzers/rtcp_receiver_fuzzer.cc | webrtc/test/fuzzers/rtcp_receiver_fuzzer.cc | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Update rtcp receiver fuzzer to use generic function IncomingPacket(const uint8_t* packet, size_t size) instead of implementation specific IncomingRTCPPacket(PacketInfo* out, Parser* in) This would allow switch parse implementation | Update rtcp receiver fuzzer to use generic function
IncomingPacket(const uint8_t* packet, size_t size)
instead of implementation specific
IncomingRTCPPacket(PacketInfo* out, Parser* in)
This would allow switch parse implementation
BUG=webrtc:5260
R=stefan@webrtc.org
Review URL: https://codereview.webrtc.org/233464300... | C++ | bsd-3-clause | TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc |
319437f457af59fa2efec6640d1e5565f4a45b3f | test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp | test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp | // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o - %s -triple x86_64-apple-darwin10 | FileCheck %s
// RUN: %clang_cc1 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10
// RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10
// RUN: diff %t.ll %t-c++11.ll
// rdar://12897704
s... | // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10
// RUN: FileCheck %s < %t-c++11.ll
// RUN: %clang_cc1 -std=c++98 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10
// RUN: diff %t.ll %t-c++11.ll
// rdar://12897704
struct sAFSearchPos {
unsigned char *pos;
u... | Add -std=c++98 to the test and minor improvment in addition. | Add -std=c++98 to the test and minor improvment in addition.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@172221 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,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,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
496bb8c672b22ce832c887ad255246ae15fbf2cc | challenge-0020.cpp | challenge-0020.cpp | #include <algorithm>
#include <cctype>
#include <fstream>
#include <iostream>
#include <string>
int main(int argc, char ** argv)
{
std::ifstream input{argv[1]};
std::string line;
std::getline(input, line);
while(input)
{
std::for_each(std::begin(line), std::end(line), [](char c) {
... | #include <algorithm>
#include <cctype>
#include <fstream>
#include <iostream>
#include <string>
int main(int argc, char ** argv)
{
std::ifstream input{argv[1]};
std::string line;
std::getline(input, line);
while(input)
{
std::transform(std::begin(line), std::end(line), std::begin(line), []... | Use transform instead of for_each | Use transform instead of for_each
| C++ | mit | snewell/codeeval,snewell/codeeval |
db6203c8062d52954d4b860e38af891b8f0789c9 | examples/clients/MinimalInit.cpp | examples/clients/MinimalInit.cpp | /** @file
@brief Implementation
@date 2014
@author
Ryan Pavlik
<ryan@sensics.com>
<http://sensics.com>
*/
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Version 2.0)
// Internal Includes
#include <ogvr/Clie... | /** @file
@brief Implementation
@date 2014
@author
Ryan Pavlik
<ryan@sensics.com>
<http://sensics.com>
*/
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Version 2.0)
// Internal Includes
#include <ogvr/Clie... | Add mainloop to minimal init | Add mainloop to minimal init
| C++ | apache-2.0 | d235j/OSVR-Core,Armada651/OSVR-Core,d235j/OSVR-Core,feilen/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,leemichaelRazer/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,d235j/OSVR-Core,d235j/OSVR-Core,leemichaelRazer/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core... |
cfa3b8123abb9262c1b000f7745a2f5eda4384eb | src/assets/minigltf.cpp | src/assets/minigltf.cpp | /*
* Copyright (C) 2016 Luke San Antonio
* All rights reserved.
*/
// Include the implementation first so that it actually works. We have to do
// this because our header file includes the header as well, we might as well
// put the implementation here.
#define TINYGLTF_LOADER_IMPLEMENTATION
#define STB_IMAGE_IMPLE... | /*
* Copyright (C) 2016 Luke San Antonio
* All rights reserved.
*/
// Include the implementation first so that it actually works. We have to do
// this because our header file includes the header as well, we might as well
// put the implementation here.
#define TINYGLTF_LOADER_IMPLEMENTATION
#define STB_IMAGE_IMPLE... | Print debugging information from tinygltfloader | Print debugging information from tinygltfloader
This happens even if the parse is successful now.
| C++ | bsd-3-clause | RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine |
c7f86ce0e73e8041d55b7a61417cb0329cc21344 | noudar-core/src/CPlainFileLoader.cpp | noudar-core/src/CPlainFileLoader.cpp | //
// Created by monty on 08/12/16.
//
#include <string>
#include <iostream>
#include <fstream>
#include "IFileLoaderDelegate.h"
#include "CPlainFileLoader.h"
namespace Knights {
std::string CPlainFileLoader::loadFileFromPath( const std::string& path ) {
std::string entry;
std::ifstream fileToLoad(path);
char... | //
// Created by monty on 08/12/16.
//
#include <string>
#include <iostream>
#include <fstream>
#include "IFileLoaderDelegate.h"
#include "CPlainFileLoader.h"
namespace Knights {
std::string CPlainFileLoader::loadFileFromPath( const std::string& path ) {
std::string entry;
std::ifstream fileToLoad(path);
char... | Replace the += operator with push_back on file loading operations | Replace the += operator with push_back on file loading operations
| C++ | bsd-2-clause | TheFakeMontyOnTheRun/noudar-core,TheFakeMontyOnTheRun/noudar-core |
7eb4d153c0724a6581a3cd4834e30b3bd4d36dda | src/plugins/picture/picturemodel.cpp | src/plugins/picture/picturemodel.cpp | #include "picturemodel.h"
#include <QFile>
PictureModel::PictureModel(QObject *parent)
: MediaModel(MediaModel::Picture, parent)
{
QHash<int, QByteArray> roleNames = MediaModel::roleNames();
setRoleNames(roleNames);
}
PictureModel::~PictureModel()
{
}
QVariant PictureModel::data(MediaInfo *mediaInfo, in... | #include "picturemodel.h"
#include <QFile>
#include <QImageReader>
PictureModel::PictureModel(QObject *parent)
: MediaModel(MediaModel::Picture, parent)
{
QHash<int, QByteArray> roleNames = MediaModel::roleNames();
setRoleNames(roleNames);
}
PictureModel::~PictureModel()
{
}
QVariant PictureModel::data(... | Use ImageReader to read the images | Use ImageReader to read the images
| C++ | bsd-3-clause | qtmediahub/sasquatch,qtmediahub/sasquatch,qtmediahub/sasquatch |
f875b5e9bd0e215faa952b9d6855e70ca6b3e68b | Xcode/ESP/src/examples/user_touche.cpp | Xcode/ESP/src/examples/user_touche.cpp | /** @example user_touche.cpp
Touche example.
*/
#include <ESP.h>
BinaryIntArraySerialStream stream(0, 115200, 160);
GestureRecognitionPipeline pipeline;
void setup()
{
useInputStream(stream);
pipeline.addFeatureExtractionModule(TimeseriesBuffer(1, 160));
usePipeline(pipeline);
} | /** @example user_touche.cpp
Touche example.
*/
#include <ESP.h>
BinaryIntArraySerialStream stream(0, 115200, 160);
GestureRecognitionPipeline pipeline;
void setup()
{
useInputStream(stream);
pipeline.addFeatureExtractionModule(TimeseriesBuffer(1, 160));
pipeline.setClassifier(SVM(SVM::POLY_KERNEL... | Add SVM classifier to Touche example. | Add SVM classifier to Touche example.
It seems to do some (very) basic recognition successfully, so I’m
saying that this fixes #245, although I think it still needs lots of
work.
| C++ | bsd-3-clause | damellis/ESP,damellis/ESP |
62aa45fd8474c3071f0507ae7697fd64d3079803 | simulator/kernel/t/unit_test.cpp | simulator/kernel/t/unit_test.cpp | /**
* Unit tests for base kernel class
* @author Vyacheslav Kompan kompan.vo@phystech.edu
* Copyright 2018 MIPT-MIPS
*/
#include "../kernel.h"
// Catch2
#include <catch.hpp>
TEST_CASE( "Kernel: Execute nothing")
{
CHECK( Kernel::create_dummy_kernel()->execute() == Trap::SYSCALL);
CHECK( Kernel::create_con... | /**
* Unit tests for base kernel class
* @author Vyacheslav Kompan kompan.vo@phystech.edu
* Copyright 2018 MIPT-MIPS
*/
#include "../kernel.h"
#include <catch.hpp>
TEST_CASE( "Kernel: Execute nothing")
{
CHECK( Kernel::create_dummy_kernel()->execute() == Trap::SYSCALL);
CHECK( Kernel::create_configured_ke... | Add unit tests for dummy kernel | Add unit tests for dummy kernel | C++ | mit | MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015 |
28cd97d2804d2a53fd1ccadaa4f2a83bc5f14092 | examples/hello_world.cc | examples/hello_world.cc | // Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/
#include <string>
#include <iostream>
#include <pegtl.hh>
namespace hello
{
struct prefix : pegtl::string< 'H', 'e', 'l', 'l', 'o', ',', ' ' > {};
struct name : pegtl::plus< p... | // Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/
#include <string>
#include <iostream>
#include <pegtl.hh>
namespace hello
{
struct prefix : pegtl::string< 'H', 'e', 'l', 'l', 'o', ',', ' ' > {};
struct name : pegtl::plus< p... | Use top-level must<> instead of seq<> | Use top-level must<> instead of seq<>
| C++ | mit | nlyan/PEGTL,abduld/PEGTL,ColinH/PEGTL,kneth/PEGTL,ColinH/PEGTL,kneth/PEGTL |
583e95b66768437aa7edf0afd38757a4589f49b8 | tests/test_triangle.cpp | tests/test_triangle.cpp | #include "helper.h"
#include "../lib/triangle.h"
#include <catch.hpp>
TEST_CASE("Test Triangle normal", "[triangle]")
{
static constexpr int NUM_SAMPLES = 100;
for (int j = 0; j < NUM_SAMPLES; ++j) {
Triangle triangle = random_triangle();
Vec normal = triangle.normal;
// Verify unit... | #include "helper.h"
#include "../lib/triangle.h"
#include <catch.hpp>
TEST_CASE("Test Triangle normal", "[triangle]")
{
static constexpr int NUM_SAMPLES = 100;
for (int j = 0; j < NUM_SAMPLES; ++j) {
Triangle triangle = random_triangle();
Vec normal = triangle.normal;
// Verify unit... | Test normal interpolation for triangle. | Test normal interpolation for triangle.
Former-commit-id: a46fef6e00bf1abf590189b3de39bab42928540b | C++ | apache-2.0 | blacklab/renderer,turner-renderer/turner,turner-renderer/turner,jeschkies/renderer,jeschkies/renderer,turner-renderer/turner,turner-renderer/turner |
ffa43f6dd976d716a897ff3f6a7b23674f9b5fc7 | xchainer/device_test.cc | xchainer/device_test.cc | #include "xchainer/device.h"
#include <future>
#include <gtest/gtest.h>
#include "xchainer/error.h"
namespace xchainer {
TEST(DeviceTest, SetCurrentDevice) {
Device cpu = {"cpu"};
Device cuda = {"cuda"};
auto device = GetCurrentDevice();
SetCurrentDevice("cpu");
ASSERT_EQ(cpu, GetCurrentDevice(... | #include "xchainer/device.h"
#include <future>
#include <gtest/gtest.h>
#include "xchainer/error.h"
namespace xchainer {
// Device must be POD (plain old data) to be used as a thread local variable safely.
// ref. https://google.github.io/styleguide/cppguide.html#Static_and_Global_Variables
static_assert(std::is_po... | Add tests to check Device is POD | Add tests to check Device is POD
| C++ | mit | ktnyt/chainer,jnishi/chainer,chainer/chainer,okuta/chainer,hvy/chainer,chainer/chainer,keisuke-umezawa/chainer,keisuke-umezawa/chainer,hvy/chainer,chainer/chainer,wkentaro/chainer,ktnyt/chainer,hvy/chainer,ktnyt/chainer,wkentaro/chainer,okuta/chainer,jnishi/chainer,keisuke-umezawa/chainer,hvy/chainer,ktnyt/chainer,tker... |
372ed5c3c3418c83a689d3829d2ef85782b16d93 | 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 [... | Revert "Update debug info test for schema change made to LLVM." | Revert "Update debug info test for schema change made to LLVM."
This reverts commit 5035c483b7fcbf0fa2a7afba24fa35a10995d195.
This schema change wasn't necessary after all. I'm going ith a different
solution that will hopefully use space more conservatively.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@17821... | C++ | apache-2.0 | llvm-mirror/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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
ce701829671820689aef7fd6d74ab909d63092f2 | CPUFriend/kern_start.cpp | CPUFriend/kern_start.cpp | //
// kern_start.cpp
// CPUFriend
//
// Copyright © 2017 Vanilla. All rights reserved.
//
#include <Headers/plugin_start.hpp>
#include <Headers/kern_api.hpp>
#include "kern_cpuf.hpp"
static CPUFriendPlugin cpuf;
static const char *bootargOff[] {
"-cpufoff"
};
static const char *bootargDebug[] {
"-cpufdbg"
}... | //
// kern_start.cpp
// CPUFriend
//
// Copyright © 2017 Vanilla. All rights reserved.
//
#include <Headers/plugin_start.hpp>
#include <Headers/kern_api.hpp>
#include "kern_cpuf.hpp"
static CPUFriendPlugin cpuf;
static const char *bootargOff[] {
"-cpufoff"
};
static const char *bootargDebug[] {
"-cpufdbg"
}... | Update plugin requirements for 1.2.0 | Update plugin requirements for 1.2.0
| C++ | bsd-3-clause | PMheart/CPUFriend,PMheart/CPUFriend |
e02e32734ca4dbdc9296e37433ca96f616892868 | remoting/host/capturer.cc | remoting/host/capturer.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/capturer.h"
namespace remoting {
Capturer::Capturer()
: width_(0),
height_(0),
pixel_format_(PixelFormatInva... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/capturer.h"
namespace remoting {
Capturer::Capturer()
: width_(0),
height_(0),
pixel_format_(PixelFormatInva... | Fix undefined assignment evaluation order in remoting::Capturer::FinishCapture. | Coverity: Fix undefined assignment evaluation order in remoting::Capturer::FinishCapture.
CID=10878
BUG=none
TEST=builds
Review URL: http://codereview.chromium.org/2847010
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@50012 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,robclark/chromium,hgl888/chromium-crosswa... |
ee531491a8affe19a6a0476e62dc141707564006 | Firmware/AnalogAccel.cpp | Firmware/AnalogAccel.cpp | #include <avr/io.h>
#include <avr/interrupt.h>
#include "AnalogAccel.h"
volatile Axis currentAxis = X;
ISR(ANALOG_COMP_vect) //To be executed once analog compare is completed
{
//Do stuff...
}
AnalogAccel::AnalogAccel()
{
}
AnalogAccel::~AnalogAccel()
{
}
volatile Axis& AnalogAccel::currentAxis_ = currentAxis;
| #include <avr/io.h>
#include <avr/interrupt.h>
#include <util/atomic.h>
#include "AnalogAccel.h"
volatile Axis currentAxis = X;
ISR(ANALOG_COMP_vect) //To be executed once analog compare is completed
{
//Do stuff...
}
AnalogAccel::AnalogAccel()
{
//Prescaler of 64 (12MHz / 64 == 187.5 kHz),
//recommended value is... | Set ADC control registers in constructor | Set ADC control registers in constructor
| C++ | bsd-3-clause | Icosanol/ModelRocketAHRS |
1a3771202989c484356e0b211605ae85b59651f0 | src/signature.cpp | src/signature.cpp | /*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include <cstring>
#include <qitype/signature.hpp>
namespace qi {
bool qi::Signature::isConvertibleTo(const qi::Signature& b) const
{
if (size() != b.size())
return false;
static const char numeric[] = "bcCwWiIlLfd";
static con... | /*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include <cstring>
#include <qitype/signature.hpp>
namespace qi {
bool qi::Signature::isConvertibleTo(const qi::Signature& b) const
{
if (size() != b.size())
return false;
static const char numeric[] = "bcCwWiIlLfd";
static con... | Fix a lolbug, it never worked and returned true always. | Signature::isConvertibleTo: Fix a lolbug, it never worked and returned true always.
Change-Id: I93ae42a1b36d175311b940af0baf9a4e3b61f83a
Reviewed-on: http://gerrit.aldebaran.lan:8080/7221
Reviewed-by: cgestes <ddb78fe00abb42f91254c16a0860e38eb0781789@aldebaran-robotics.com>
Tested-by: mnottale <e3ccf1b6558404e921a21fa... | C++ | bsd-3-clause | aldebaran/libqi,aldebaran/libqi,vbarbaresi/libqi,aldebaran/libqi,bsautron/libqi |
14eda969f35ee4ac3e412b9781827e02751a3abf | src/modem/stream-command.cpp | src/modem/stream-command.cpp | #include "modem/commands.h"
namespace firebase {
namespace modem {
bool StreamCommand::execute(const String& command,
InputStream* in, OutputStream* out) {
if (in == nullptr || out == nullptr) {
return false;
}
if (command != "BEGIN_STREAM") {
return false;
}
std::strin... | #include "modem/commands.h"
namespace firebase {
namespace modem {
bool StreamCommand::execute(const String& command,
InputStream* in, OutputStream* out) {
if (in == nullptr || out == nullptr) {
return false;
}
if (command != "BEGIN_STREAM") {
return false;
}
std::strin... | Add json parsing to modem streaming | Add json parsing to modem streaming
| C++ | apache-2.0 | gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino |
100e09d11e770ae604baf678cb009c4b0c9bd2c4 | src/server/views/helpers.cpp | src/server/views/helpers.cpp | #include "helpers.h"
using namespace std;
void sendFail(UserHandler * handler, int errorcode, string topic, string message){
JsonDict answer;
JsonBool b = JsonBool(false);
JsonString s = JsonString(message);
answer.add("success", &b);
answer.add("reason", &s);
handler->writeToClient(topic, &a... | #include "helpers.h"
using namespace std;
void sendFail(UserHandler * handler, int errorcode, string topic, string message){
JsonDict answer;
JsonBool b = JsonBool(false);
JsonString s = JsonString(message);
JsonInt i = JsonInt(errorcode);
answer.add("success", &b);
answer.add("reason", &s);
... | Add an error code with sendFail | Add an error code with sendFail
| C++ | mit | C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209,C4ptainCrunch/info-f-209 |
b21d44ad546e0d814a59b8eac35597925d15d4d9 | src/swganh/scripting/python_script.cc | src/swganh/scripting/python_script.cc |
#include "python_script.h"
#include <cstdio>
#include <fstream>
#include <iterator>
#include <boost/log/trivial.hpp>
#include <boost/python.hpp>
#include <Python.h>
using namespace boost::python;
using namespace std;
using namespace swganh::scripting;
PythonScript::PythonScript(const string& filename)
: f... |
#include "python_script.h"
#include <cstdio>
#include <fstream>
#include <iterator>
#include <boost/log/trivial.hpp>
#include <boost/python.hpp>
#include <Python.h>
using namespace boost::python;
using namespace std;
using namespace swganh::scripting;
PythonScript::PythonScript(const string& filename)
: f... | Add the current directory to the path. | Add the current directory to the path.
| C++ | mit | anhstudios/swganh,anhstudios/swganh,anhstudios/swganh |
56fe17e400beb3c503444cdd85764ffcdc828148 | SettingsUI/UIUtils.cpp | SettingsUI/UIUtils.cpp | #include "UIUtils.h"
#include <sstream>
#include "Settings.h"
std::vector<CPropertyPage *> UIUtils::pages = { };
CString UIUtils::Capitalize(std::wstring in) {
CString cstr(in.c_str());
return UIUtils::Capitalize(cstr);
}
CString UIUtils::Capitalize(CString in) {
CString newString(in);
CString firs... | #include "UIUtils.h"
#include <sstream>
#include "Settings.h"
std::vector<CPropertyPage *> UIUtils::pages = { };
CString UIUtils::Capitalize(std::wstring in) {
CString cstr(in.c_str());
return UIUtils::Capitalize(cstr);
}
CString UIUtils::Capitalize(CString in) {
CString newString(in);
CString firs... | Add method to determine if the given prop page should save the settings | Add method to determine if the given prop page should save the settings
This avoids constantly re-writing the settings XML file
| C++ | bsd-2-clause | Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX |
a16e37822ca1360aab221d0ca6bf5baa6a005779 | src/benchmark.cpp | src/benchmark.cpp | /* For symbol_thingey */
#define BOOST_CHRONO_VERSION 2
#include <boost/chrono/chrono.hpp>
#include <boost/chrono/chrono_io.hpp>
#define FUTURE_TRACE 0
#include <cps/future.h>
#include <iostream>
using namespace cps;
int
main(void)
{
auto start = boost::chrono::high_resolution_clock::now();
const int count = 1000... | /* For symbol_thingey */
#include <chrono>
#define FUTURE_TRACE 0
#include <cps/future.h>
#include <iostream>
using namespace cps;
int
main(void)
{
auto start = std::chrono::high_resolution_clock::now();
const int count = 100000;
for(int i = 0; i < count; ++i) {
auto f = future<std::string>::create_shared();
... | Use std::chrono, to cleanse last vestiges of boost | Use std::chrono, to cleanse last vestiges of boost
| C++ | mit | tm604/cps-future,tm604/cps-future |
bd4dd5c33a13587b7d095960f7646b00ac82b90e | lib/System/AIX/Path.cpp | lib/System/AIX/Path.cpp | //===- llvm/System/AIX/Path.cpp - AIX Path Implementation -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------------------... | //===- llvm/System/AIX/Path.cpp - AIX Path Implementation -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------------------... | Move a warning comment to where it should have been in the first place. | Move a warning comment to where it should have been in the first place.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16088 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drive... |
f8356d165d4a89a2c02d4ad5e16641f0275f81b7 | src/core/s3dcv/src/image_operation/input_output_adapter.cpp | src/core/s3dcv/src/image_operation/input_output_adapter.cpp | #include "s3d/cv/image_operation/input_output_adapter.h"
#include "s3d/cv/image_operation/image_operations.h"
namespace s3d {
namespace image_operation {
InputOutputAdapter::InputOutputAdapter(gsl::not_null<ImageOperations*> imageOperations)
: operations_{imageOperations} {}
void InputOutputAdapter::setInputImage... | #include "s3d/cv/image_operation/input_output_adapter.h"
#include "s3d/cv/image_operation/image_operations.h"
namespace s3d {
namespace image_operation {
InputOutputAdapter::InputOutputAdapter(gsl::not_null<ImageOperations*> imageOperations)
: operations_{imageOperations} {}
void InputOutputAdapter::setInputImage... | Fix ubuntu build fail tuple init list | Fix ubuntu build fail tuple init list
| C++ | bsd-3-clause | hugbed/OpenS3D,hugbed/OpenS3D,hugbed/OpenS3D,hugbed/OpenS3D |
45fad20d83ef6c49cc94f71024bbb453c17ef8c4 | cc/modules/ximgproc/ximgproc.cc | cc/modules/ximgproc/ximgproc.cc | #ifdef HAVE_XIMGPROC
#include "ximgproc.h"
#include "SuperpixelSEEDS.h"
#include "SuperpixelSLIC.h"
#include "SuperpixelLSC.h"
NAN_MODULE_INIT(XImgproc::Init) {
SuperpixelSEEDS::Init(target);
SuperpixelSLIC::Init(target);
SuperpixelLSC::Init(target);
}
#endif // HAVE_XIMGPROC | #ifdef HAVE_XIMGPROC
#include "ximgproc.h"
#include "SuperpixelSEEDS.h"
#include "SuperpixelSLIC.h"
#include "SuperpixelLSC.h"
NAN_MODULE_INIT(XImgproc::Init) {
SuperpixelSEEDS::Init(target);
#if OPENCV_MINOR_VERSION > 0
SuperpixelSLIC::Init(target);
SuperpixelLSC::Init(target);
#endif
}
#endif // HAVE_XIMGPROC | Check for opencv version before using SuperpixelLSC/SLIC | Check for opencv version before using SuperpixelLSC/SLIC
| C++ | mit | justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs,justadudewhohacks/opencv4nodejs |
447d43f023eb5d98c39a8337d13794ad55b204d0 | src/influxdb-cpp-rest/input_sanitizer.cpp | src/influxdb-cpp-rest/input_sanitizer.cpp | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//
// 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 ca... | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//
// 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 ca... | Allow dot and slash as message identifier | Allow dot and slash as message identifier
| C++ | mpl-2.0 | d-led/influxdb-cpp-rest,d-led/influxdb-cpp-rest,d-led/influxdb-cpp-rest,d-led/influxdb-cpp-rest |
64454e798fa34867b324ededa0ab6688db64e424 | src/publish_fromfile.cpp | src/publish_fromfile.cpp | #include "ros/ros.h"
#include "std_msgs/String.h"
#include "geometry_msgs/Twist.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "publish_fromfile");
ros::NodeHandle pubFromFileHandle;
ros::Publisher pubFromFileObj = pubFromFileHandle.advertise<geometry_msgs::Twist>("publish_fromfile",100);
/*!
... | // ROS includes
#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include "ros/console.h"
#include "std_msgs/String.h"
// misc includes
#include "yaml-cpp/yaml.h"
int main(int argc, char **argv)
{
// local variables for configurable params
double rate_param;
int msg_buffer_len=100;
std::string topic_nam... | Add ros console logging, implement params for ROS properties | Add ros console logging, implement params for ROS properties
| C++ | bsd-2-clause | shayden--/cuarl_util,shayden--/cuarl_util |
d193a5b4bb154d24942521a4267d64f7b63582c1 | cppcache/src/Version.cpp | cppcache/src/Version.cpp | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Revert "GEODE-5968: move protocol to the last release of Geode" | Revert "GEODE-5968: move protocol to the last release of Geode"
This reverts commit 5c29ba8b518594221aa4f285f39673a0d2fe6867.
This reverts commit c36abe5803b30dade41155b8a9bae04c81542929.
| C++ | apache-2.0 | pivotal-jbarrett/geode-native,pivotal-jbarrett/geode-native,pivotal-jbarrett/geode-native,pivotal-jbarrett/geode-native,pivotal-jbarrett/geode-native,pivotal-jbarrett/geode-native,pivotal-jbarrett/geode-native |
4f12b0987053f9560ef034c297e939d2b7416bd1 | cMentatFactory.cpp | cMentatFactory.cpp | /**
Responsible for creating and destroying the mentat reference
*/
#include "d2tmh.h"
cMentatFactory::cMentatFactory() {
type = -1;
}
void cMentatFactory::deleteCurrent() {
switch (type) {
case ATREIDES:
delete (cAtreidesMentat *)Mentat;
break;
case HARKONNEN:
delete (cAtreidesMentat *)Mentat;
br... | /**
Responsible for creating and destroying the mentat reference
*/
#include "d2tmh.h"
cMentatFactory::cMentatFactory() {
type = -1;
}
void cMentatFactory::deleteCurrent() {
switch (type) {
case ATREIDES:
delete (cAtreidesMentat *)Mentat;
break;
case HARKONNEN:
delete (cHarkonnenMentat *)Mentat;
b... | Fix deletion of Mentats in MentatFactory | Fix deletion of Mentats in MentatFactory
| C++ | mit | 166MMX/Dune-II---The-Maker,166MMX/Dune-II---The-Maker,166MMX/Dune-II---The-Maker,166MMX/Dune-II---The-Maker |
4bf38e3c9290990f34b6a4885056555b970dfb17 | src/Engine/Shader/ShaderProgram.cpp | src/Engine/Shader/ShaderProgram.cpp | #include "ShaderProgram.hpp"
#include "Shader.hpp"
ShaderProgram::ShaderProgram(std::initializer_list<const Shader*> shaders) {
shaderProgram = glCreateProgram();
for (auto shader : shaders)
glAttachShader(shaderProgram, shader->GetShaderID());
glLinkProgram(shaderProgram);
}
ShaderProgram::~ShaderProgram() {... | #include "ShaderProgram.hpp"
#include "Shader.hpp"
ShaderProgram::ShaderProgram(std::initializer_list<const Shader*> shaders) {
shaderProgram = glCreateProgram();
for (const Shader* shader : shaders)
glAttachShader(shaderProgram, shader->GetShaderID());
glLinkProgram(shaderProgram);
for (const Shader*... | Detach shaders after linking shader program. | Detach shaders after linking shader program.
| C++ | mit | Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine |
9bf1f76771e04c20cb8a0f1c3d1938bdb965882e | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp | // Copyright 2015 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "testing/embedder_test.h"
#include "testing/gtest/include/gtest/gtest.h"
class FPDFParserEmbeddertest : public EmbedderTest {
};
TEST_F(FPDFParserEmb... | // Copyright 2015 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "../../../testing/embedder_test.h"
#include "testing/gtest/include/gtest/gtest.h"
class FPDFParserEmbeddertest : public EmbedderTest {
};
TEST_F(FPDF... | Update the path of header file to avoid a compiling error in chrome | Update the path of header file to avoid a compiling error in chrome
BUG=N/A
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1059233005
| C++ | bsd-3-clause | chenjian-rits/HelloWorld,duanhjlt/pdfium,nathanstitt/pdfium,csharpengineer/pdfium-code,was4444/pdfium,wwxxyx/pdfium0,pwaller/pdfium,pwaller/pdfium,azunite/pdf_clone,rouault/pdfium,andoma/pdfium,bradh/pdfium,wwxxyx/pdfium0,bradh/pdfium,csharpengineer/pdfium-code,duanhjlt/pdfium,azunite/libpdfium,azunite/libpdfium,wwxxyx... |
222299ffb12ea8ee5cfa0f49909a6a204bb7d6e8 | chrome/browser/app_modal_dialog_queue.cc | chrome/browser/app_modal_dialog_queue.cc | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/app_modal_dialog_queue.h"
#include "chrome/browser/browser_list.h"
void AppModalDialogQueue::AddDialog(AppModalDialog*... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/app_modal_dialog_queue.h"
#include "chrome/browser/browser_list.h"
void AppModalDialogQueue::AddDialog(AppModalDialog*... | Set active_dialog_ before showing it, since showing a dialog can sometimes actually move to the next one in the queue instead. | Set active_dialog_ before showing it, since showing a dialog can sometimes
actually move to the next one in the queue instead.
BUG=26398
TEST=Make sure alert/confirm boxes work properly. Make sure a background
tab that shows a (delayed) alert box works. Same with a background
browser. Especially make sure http... | C++ | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
620459f60b6422bcbd12d199380499df3041124f | src/Commands/AutonomousCommandGroup.cpp | src/Commands/AutonomousCommandGroup.cpp | #include "AutonomousCommandGroup.h"
#include "../RobotMap.h"
AutonomousCommandGroup::AutonomousCommandGroup()
{
}
| #include "AutonomousCommandGroup.h"
#include "RaiseContainer.h"
#include "DownContainer.h"
#include "RaiseTrash.h"
#include "DownTrash.h"
#include "MoveContainer.h"
#include "../RobotMap.h"
AutonomousCommandGroup::AutonomousCommandGroup()
{
AddSequential(new RaiseTrash());
AddSequential(new DownTrash());
AddSequen... | Set order of Autonomous Commands in CommandGroup | Set order of Autonomous Commands in CommandGroup | C++ | epl-1.0 | tokyotechnicalsamurai/shougun |
29b75635d99a4b02079dd4c683e8c9ea71e98fd2 | src/allocators/global_sbrk_allocator.cc | src/allocators/global_sbrk_allocator.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 "allocators/global_sbrk_allocator.h"
#include <sys/mman.h> // mmap
#include "log.h"
uin... | // 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 "allocators/global_sbrk_allocator.h"
#include <sys/mman.h> // mmap
#include "log.h"
uin... | Add large sbrk support for 32 bit platforms. | Add large sbrk support for 32 bit platforms.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C++ | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc |
50feee17846b6abbc6f960894869636197d99e15 | runtime/vm/version_in.cc | runtime/vm/version_in.cc | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/version.h"
#include "vm/cpu.h"
#include "vm/os.h"
namespace dart {
// TODO(iposva): Avo... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/atomic.h"
#include "vm/cpu.h"
#include "vm/os.h"
#include "vm/version.h"
namespace... | Use atomic to avoid racy version string initialization | [vm] Use atomic to avoid racy version string initialization
This addresses an already existent TODO in the code.
Issue https://github.com/dart-lang/sdk/issues/46610
TEST=This fixes TSAN reports on iso-stress builder.
Change-Id: Ie21c0a17ae51070783da9bc934ef2827acde6378
Reviewed-on: https://dart-review.googlesource.... | C++ | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
c6ca7345fbe67ac3b1ea5a23b75daea5a019814f | test/lsan/TestCases/link_turned_off.cc | test/lsan/TestCases/link_turned_off.cc | // Test for disabling LSan at link-time.
// RUN: LSAN_BASE="use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
// RUN: %env_lsan_opts=$LSAN_BASE %run %t
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t foo 2>&1 | FileCheck %s
#include <sanitizer/lsan_interface.h>
int argc_copy;
extern "C" {
int __attribute__(... | // Test for disabling LSan at link-time.
// RUN: LSAN_BASE="use_stacks=0:use_registers=0"
// RUN: %clangxx_lsan %s -o %t
// RUN: %env_lsan_opts=$LSAN_BASE %run %t
// RUN: %env_lsan_opts=$LSAN_BASE not %run %t foo 2>&1 | FileCheck %s
//
// UNSUPPORTED: darwin
#include <sanitizer/lsan_interface.h>
int argc_copy;
exter... | Revert "Prevent DCE on __lsan_is_turned_off and re-enable test case" | Revert "Prevent DCE on __lsan_is_turned_off and re-enable test case"
This doesn't fix the failing test. Leave in the comment and the
attribute, since the used attribute is still required.
This partially reverts commit r312824
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@312827 91177308-0d34-0410-b5e6-96231b3... | C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
ccc9fa1030015995af6842eb228d335fd261d68d | source/microbit/main.cpp | source/microbit/main.cpp | #include "MicroBit.h"
extern "C" {
void mp_run(void);
void microbit_display_event(void);
}
static void event_listener(MicroBitEvent evt) {
if (evt.value == MICROBIT_DISPLAY_EVT_ANIMATION_COMPLETE) {
microbit_display_event();
}
}
void app_main() {
/*
// debugging: print memory layout
... | #include "MicroBit.h"
extern "C" {
void mp_run(void);
void microbit_display_event(void);
}
static void event_listener(MicroBitEvent evt) {
if (evt.value == MICROBIT_DISPLAY_EVT_ANIMATION_COMPLETE) {
microbit_display_event();
}
}
void app_main() {
/*
// debugging: print memory layout
... | Update to use new DAL feature where stack is not paged. | Update to use new DAL feature where stack is not paged.
| C++ | mit | JoeGlancy/micropython,JoeGlancy/micropython,JoeGlancy/micropython |
036ac84766541ce762fe98f823bd4cad1d341236 | programs/utils/bts_key_info.cpp | programs/utils/bts_key_info.cpp | #include <bts/blockchain/address.hpp>
#include <bts/blockchain/pts_address.hpp>
#include <bts/blockchain/types.hpp>
#include <bts/utilities/key_conversion.hpp>
#include <fc/crypto/elliptic.hpp>
#include <fc/io/json.hpp>
#include <fc/reflect/variant.hpp>
#include <fc/filesystem.hpp>
#include <fc/variant_object.hpp>
#inc... | #include <bts/blockchain/address.hpp>
#include <bts/blockchain/pts_address.hpp>
#include <bts/blockchain/types.hpp>
#include <bts/utilities/key_conversion.hpp>
#include <fc/crypto/elliptic.hpp>
#include <fc/io/json.hpp>
#include <fc/reflect/variant.hpp>
#include <fc/filesystem.hpp>
#include <fc/variant_object.hpp>
#inc... | Fix compile errors on win32, update Qt submodule to fix compile errors there | Fix compile errors on win32, update Qt submodule to fix compile errors there
| C++ | unlicense | bitshares/devshares,bitshares/bitshares-0.x,jakeporter/Bitshares,jakeporter/Bitshares,bitshares/devshares,bitshares/devshares,RemitaBit/Remitabit,frrp/bitshares,RemitaBit/Remitabit,jakeporter/Bitshares,bitshares/bitshares,RemitaBit/Remitabit,camponez/bitshares,bitshares/bitshares,bitshares/bitshares-0.x,frrp/bitshares,... |
1466b2eb0b545241b3abd5bcf229bcb0494da6b2 | tensorflow/core/kernels/cwise_op_tan.cc | tensorflow/core/kernels/cwise_op_tan.cc | /* Copyright 2015 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 2015 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... | Add complex support for tan | Add complex support for tan
At the moment tan in tensorflow supports float and double, but
not complex types.
This fix adds the support for tan, and removes related TODO in
the test
Signed-off-by: Yong Tang <765086fe2e0c1f980161f127fec596800f327f62@outlook.com>
| C++ | apache-2.0 | karllessard/tensorflow,hehongliang/tensorflow,kobejean/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,annarev/tensorflow,gunan/tensorflow,jhseu/tensorflow,... |
3c0e1645e4af715fe45c983c5baa57f47059858d | testmain.cpp | testmain.cpp | #include <cstring>
#include <iostream>
#include <UnitTest++/UnitTest++.h>
#include <UnitTest++/TestReporterStdout.h>
using std::cerr;
using std::endl;
using std::strcmp;
/*
Function object returning true for a specified test name
*/
struct MatchTestName {
const char * const tname;
MatchTestName (const char* t... | #include <cstring>
#include <iostream>
#include <UnitTest++/UnitTest++.h>
#include <UnitTest++/TestReporterStdout.h>
using std::cerr;
using std::endl;
using std::strcmp;
/*
Function object returning true for a specified test name
*/
struct MatchTestName {
const char * const tname;
MatchTestName (const char* t... | Update documentation for main() in tester | Update documentation for main() in tester
| C++ | mit | CMPT276-2016spring/phaser,CMPT276-2016spring/phaser,CMPT276-2016spring/phaser |
ef5742a65fc00ff0c7e2c14e527e0cebe1e73583 | src/autowiring/test/MentionsVariousOtherTypes.cpp | src/autowiring/test/MentionsVariousOtherTypes.cpp | // Copyright (C) 2012-2016 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "MentionsVariousOtherTypes.hpp"
#include <autowiring/autowiring.h>
MentionsVariousOtherTypes::MentionsVariousOtherTypes(void) {
AutoRequired<AutoPacketFactory>();
}
| // Copyright (C) 2012-2016 Leap Motion, Inc. All rights reserved.
#include "MentionsVariousOtherTypes.hpp"
#include <autowiring/autowiring.h>
MentionsVariousOtherTypes::MentionsVariousOtherTypes(void) {
AutoRequired<AutoPacketFactory>();
}
| Remove PCH that seems to hit a rogue extern "C" on Travis | Remove PCH that seems to hit a rogue extern "C" on Travis
| C++ | apache-2.0 | leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring |
069824bec728deb5433bc6a963264fd7a128f023 | src/autowiring/auto_id.cpp | src/autowiring/auto_id.cpp | // Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "auto_id.h"
using namespace autowiring;
// Index that will be given to the next auto_id instance. Zero is reserved.
static int s_index = 1;
const auto_id_block auto_id_t<void>::s_block{
0,
&typeid(void),
&typeid(s<v... | // Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "auto_id.h"
using namespace autowiring;
// Index that will be given to the next auto_id instance. Zero is reserved.
static int s_index = 1;
const auto_id_block auto_id_t<void>::s_block{
0,
&typeid(void),
&typeid(s<v... | Use initializer syntax to satisfy clang | Use initializer syntax to satisfy clang
| C++ | apache-2.0 | leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring |
2eb47e6fc88f68d62f9c2ed9ff723f329d1fb57b | comb_SWEEP_D2_main.cpp | comb_SWEEP_D2_main.cpp | #include "comb.h"
int main()
{
// for(int i=0;i<6;i++){
sweep(20*2*pi,0.7*2*pi,1,400000,1000,1/pow(10,10),0,10,16,50,600,15,0,0.001,"Gaussian");
sweep(20*2*pi,0.7*2*pi,1,400000,1000,1/pow(10,10),0,10,17,50,600,15,0,0.001,"Gaussian");
// }
//gamma2(Hz),line width(GHz),sweep steps, total steps, power(uW... | #include "comb.h"
#include <ctime>
int main()
{
fstream file1;
file1.open("./Data/result.txt",ios::out | ios::trunc);
file1<<"Function\t"<<"Order\t"<<"Steps\t"<<endl;
for(int i=1;i<6;i++){
for(int j=1;j<4;j++){
time_t T1 = clock(),T2;
sweep(20*2*pi,0.7*2*pi,1,400000,1000,1/pow(10,10),0,10,12-i,10*... | Add benchmark feature in main functin. | Add benchmark feature in main functin.
| C++ | mit | imrehg/bloch,imrehg/bloch,imrehg/bloch,imrehg/bloch |
7667f2bb697f188f9d65896cc2c64115297dcc50 | src/mock/unittest_utils.cc | src/mock/unittest_utils.cc | #include "mock/unittest_utils.hpp"
#include <stdlib.h>
#include "errors.hpp"
#include <boost/bind.hpp>
#include "arch/timing.hpp"
#include "arch/runtime/starter.hpp"
#include "utils.hpp" // randint
namespace mock {
temp_file_t::temp_file_t(const char *tmpl) {
size_t len = strlen(tmpl);
filename.... | #include "mock/unittest_utils.hpp"
#include <stdlib.h>
#include "errors.hpp"
#include <boost/bind.hpp>
#include "arch/timing.hpp"
#include "arch/runtime/starter.hpp"
#include "utils.hpp" // randint
namespace mock {
temp_file_t::temp_file_t(const char *tmpl) {
size_t len = strlen(tmpl);
filename.... | Make let_stuff_happen() wait longer under valgrind. | Make let_stuff_happen() wait longer under valgrind.
| C++ | apache-2.0 | elkingtonmcb/rethinkdb,grandquista/rethinkdb,greyhwndz/rethinkdb,wojons/rethinkdb,catroot/rethinkdb,mbroadst/rethinkdb,jmptrader/rethinkdb,sontek/rethinkdb,wkennington/rethinkdb,mbroadst/rethinkdb,tempbottle/rethinkdb,marshall007/rethinkdb,RubenKelevra/rethinkdb,rrampage/rethinkdb,greyhwndz/rethinkdb,AntouanK/rethinkdb... |
9e5322d23aec76413313825e377985ae63c433a5 | src/test/miner_tests.cpp | src/test/miner_tests.cpp | #include <boost/test/unit_test.hpp>
#include "../uint256.h"
extern void SHA256Transform(void* pstate, void* pinput, const void* pinit);
BOOST_AUTO_TEST_SUITE(miner_tests)
BOOST_AUTO_TEST_CASE(sha256transform_equality)
{
unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e52... | #include <boost/test/unit_test.hpp>
#include "../uint256.h"
extern void SHA256Transform(void* pstate, void* pinput, const void* pinit);
BOOST_AUTO_TEST_SUITE(miner_tests)
BOOST_AUTO_TEST_CASE(sha256transform_equality)
{
unsigned int pSHA256InitState[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e52... | Fix miner_test unit test bug | Fix miner_test unit test bug
| C++ | mit | ionomy/ion,CTRoundTable/Encrypted.Cash,MeshCollider/bitcoin,alecalve/bitcoin,vcoin-project/vcoincore,CoinGame/BCEShadowNet,kleetus/bitcoin,djpnewton/bitcoin,Tetpay/bitcoin,particl/particl-core,experiencecoin/experiencecoin,Rav3nPL/polcoin,Rav3nPL/doubloons-08,5mil/Tradecoin,MazaCoin/maza,bfroemel/smallchange,ctwiz/star... |
c5fc244d55c0ff8e8350bb4fe2f85f80d169595c | test/Driver/XRay/xray-shared-noxray.cpp | test/Driver/XRay/xray-shared-noxray.cpp | // RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s -###
// 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 -### -DMAIN
// RUN: %clangxx -static -o /dev/null -v -fxray-instrume... | // RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s -###
// 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 -### -DMAIN
// RUN: %clangxx -static -o /dev/null -v -fxray-instrume... | Revert part of r. 325746 D43378 | Revert part of r. 325746 D43378
test/Driver/XRay/xray-shared-noxray.cpp fails on !Linux hosts.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@325748 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
b3b874819921a35406c9bdb0a649727909796a8b | src/ZulipAboutDialog.cpp | src/ZulipAboutDialog.cpp | #include "ZulipAboutDialog.h"
#include "ui_ZulipAboutDialog.h"
#include "Config.h"
#include <QFile>
#include <QDebug>
ZulipAboutDialog::ZulipAboutDialog(QWidget *parent) :
QDialog(parent), m_ui(new Ui::ZulipAboutDialog)
{
m_ui->setupUi(this);
QFile html(":/about.html");
if (!html.open(QIODevice::Rea... | #include "ZulipAboutDialog.h"
#include "ui_ZulipAboutDialog.h"
#include "Config.h"
#include "ZulipApplication.h"
#include "ZulipWindow.h"
#include <QFile>
#include <QDebug>
ZulipAboutDialog::ZulipAboutDialog(QWidget *parent) :
QDialog(parent), m_ui(new Ui::ZulipAboutDialog)
{
m_ui->setupUi(this);
connec... | Fix Terms URL in about dialog to open in browser | Fix Terms URL in about dialog to open in browser
| C++ | apache-2.0 | zofuthan/zulip-desktop,zofuthan/zulip-desktop,zofuthan/zulip-desktop,zofuthan/zulip-desktop,zofuthan/zulip-desktop,zofuthan/zulip-desktop,zofuthan/zulip-desktop |
b0d1a0656d85ad59cbc1c51fbd21291d27f989b2 | source/dataset/ProxyImage.cpp | source/dataset/ProxyImage.cpp | #include "ProxyImage.h"
#include "StringHelper.h"
#include <sprite2/S2_Texture.h>
namespace gum
{
ProxyImage::ProxyImage(int id, int w, int h, int format)
{
Init(id, w, h, format);
}
ProxyImage::~ProxyImage()
{
// m_id = 0; // avoid release in Image
// // managed by other
}
void ProxyImage::Init(int i... | #include "ProxyImage.h"
#include "StringHelper.h"
#include <sprite2/S2_Texture.h>
namespace gum
{
ProxyImage::ProxyImage(int id, int w, int h, int format)
{
Init(id, w, h, format);
}
ProxyImage::~ProxyImage()
{
m_id = 0; // avoid release in Image
// managed by other
}
void ProxyImage::Init(int id, int... | Revert "[FIXED] proxy img dtor" | Revert "[FIXED] proxy img dtor"
This reverts commit 626c82e812fe5dcb218a8dbbd021b04c2ed605ce.
| C++ | mit | xzrunner/gum,xzrunner/gum |
8c704d6a7b2c0f94bd3c26c0e8e7888917ed02bd | src/api/HttpClientmbedTLS.cpp | src/api/HttpClientmbedTLS.cpp | #include "HttpClient.h"
#include <mbedtls/ssl.h>
#include <mbedtls/x509.h>
namespace ceema {
CURLcode HttpClient::ssl_ctx_callback_mbedtls(CURL *curl, void *ssl_ctx, void *client_ptr) {
HttpClient& client = *static_cast<HttpClient*>(client_ptr);
if (client.m_cert.empty()) {
return CUR... | #include "HttpClient.h"
#include <mbedtls/ssl.h>
#include <mbedtls/x509.h>
namespace ceema {
CURLcode HttpClient::ssl_ctx_callback_mbedtls(CURL *curl, void *ssl_ctx, void *client_ptr) {
HttpClient& client = *static_cast<HttpClient*>(client_ptr);
if (client.m_cert.empty()) {
return CUR... | Fix error in size for parsing the certificate by mbedtls_x509_crt_parse | Fix error in size for parsing the certificate by mbedtls_x509_crt_parse
| C++ | apache-2.0 | hbruintjes/ceema,hbruintjes/ceema |
7ea447caa919ac7576d5892bfabdada568c116d6 | ext/siren/src/common.cpp | ext/siren/src/common.cpp | #include "common.h"
void siren_ary_to_xyz(VALUE ary, Standard_Real& x, Standard_Real& y, Standard_Real& z)
{
x = 0.0; y = 0.0; z = 0.0;
Check_Type(ary, T_ARRAY);
int len = RARRAY_LEN(ary);
if (len > 0) {
x = NUM2DBL(RARRAY_AREF(ary, 0));
}
if (len > 1) {
y = NUM2DBL(RARRAY_AREF(ary, 1));
}
if... | #include "common.h"
void siren_ary_to_xyz(VALUE ary, Standard_Real& x, Standard_Real& y, Standard_Real& z)
{
x = 0.0; y = 0.0; z = 0.0;
int len = RARRAY_LEN(ary);
if (len > 0) {
x = NUM2DBL(RARRAY_AREF(ary, 0));
}
if (len > 1) {
y = NUM2DBL(RARRAY_AREF(ary, 1));
}
if (len > 2) {
z = NUM2DBL(... | Fix bug. support implicit cast Vec to Array again. | Fix bug. support implicit cast Vec to Array again.
| C++ | mit | dyama/ruby-siren,dyama/ruby-siren,dyama/ruby-siren,dyama/ruby-siren |
9481def8a641e13824933da94b5d912492a020d1 | App/Console/Source/Main.cpp | App/Console/Source/Main.cpp | #include "KAI/Console/Console.h"
#include <iostream>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
using namespace std;
USING_NAMESPACE_KAI
//static Color _color;
int main(int argc, char **argv)
{
KAI_UNUSED_2(argc, argv);
cout << "pyro v0.1" << endl;
Console console;
console.SetLang... | #include <KAI/Console/Console.h>
#include <iostream>
using namespace std;
USING_NAMESPACE_KAI
int main(int argc, char **argv)
{
KAI_UNUSED_2(argc, argv);
cout << "KAI v0.1" << endl;
Console console;
console.SetLanguage(Language::Pi);
// the higher the number, the greater the verbosity of debug output
Proces... | Remove explicit WIN32 references from Console app. | Remove explicit WIN32 references from Console app.
Former-commit-id: 1621bff1d97d47fe91419641ff983a6ec3ee5626
Former-commit-id: ecc138236b570f5dc9f92082f539917fb2b53460
Former-commit-id: a34bc0c537cfba14b168de78b2e2ded3f0f5f3c0 | C++ | mit | cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI |
c10b76b26890d1fcc8136f2845f4f4ac4cdcc6f5 | Tests/TestPhysics/Behaviours/Rotate.cpp | Tests/TestPhysics/Behaviours/Rotate.cpp | #include "Rotate.hpp"
#include "../../../Libraries/bullet3/src/LinearMath/btTransform.h"
#include <Scenes/Entity.hpp>
#include <Engine/Engine.hpp>
#include <Physics/Colliders/Collider.hpp>
#include <Maths/Maths.hpp>
namespace test
{
Rotate::Rotate(const Vector3 &direction, const int &test) :
m_direction(direction)... | #include "Rotate.hpp"
#include <bullet/LinearMath/btTransform.h>
#include <Scenes/Entity.hpp>
#include <Engine/Engine.hpp>
#include <Physics/Colliders/Collider.hpp>
#include <Maths/Maths.hpp>
namespace test
{
Rotate::Rotate(const Vector3 &direction, const int &test) :
m_direction(direction),
m_test(test),
m_ro... | Fix tests include for bullet | Fix tests include for bullet
It was trying to point to the git submodule, causing a build error if using system libs.
| C++ | mit | Equilibrium-Games/Flounder,Equilibrium-Games/Flounder,Equilibrium-Games/Flounder |
4ecb33ecde85f9db8a3fb279370b537932f8987f | lib/libport/cli.cc | lib/libport/cli.cc | #include <iostream>
#include "libport/cli.hh"
#include "libport/sysexits.hh"
#include "libport/program-name.hh"
namespace libport
{
void
usage_error (const std::string& opt, const std::string& err)
{
std::cerr << program_name << ": " << opt << ": " << err << std::endl
<< libport::exit (EX_USAGE);
}... | #include <iostream>
#include "libport/cli.hh"
#include "libport/sysexits.hh"
#include "libport/program-name.hh"
namespace libport
{
void
usage_error (const std::string& opt, const std::string& err)
{
std::cerr
<< program_name << ": " << opt << ": " << err
<< std::endl
<< "Try `" << program... | Improve error message on bad options. | Improve error message on bad options.
* lib/libport/cli.cc: here.
| C++ | bsd-3-clause | aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport,aldebaran/libport |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.