commit stringlengths 40 40 | old_file stringlengths 2 205 | new_file stringlengths 2 205 | old_contents stringlengths 0 32.9k | new_contents stringlengths 1 38.9k | subject stringlengths 3 9.4k | message stringlengths 6 9.84k | lang stringlengths 3 13 | license stringclasses 13
values | repos stringlengths 6 115k |
|---|---|---|---|---|---|---|---|---|---|
35dc54d16594ebafe1c84d678b3d1ab91f34c44c | framework/src/auxkernels/BuildArrayVariableAux.C | framework/src/auxkernels/BuildArrayVariableAux.C | //* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#in... | //* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#in... | Use clang-format to make code lines longer | Use clang-format to make code lines longer
| C++ | lgpl-2.1 | lindsayad/moose,harterj/moose,idaholab/moose,lindsayad/moose,laagesen/moose,lindsayad/moose,SudiptaBiswas/moose,jessecarterMOOSE/moose,harterj/moose,dschwen/moose,sapitts/moose,bwspenc/moose,jessecarterMOOSE/moose,milljm/moose,idaholab/moose,andrsd/moose,nuclear-wizard/moose,jessecarterMOOSE/moose,harterj/moose,jesseca... |
612212ef791faa756d89a93d6a93e530c3de95fe | yahttp/utility.hpp | yahttp/utility.hpp | #ifndef _YAHTTP_UTILITY_HPP
#define _YAHTTP_UTILITY_HPP 1
#include <string>
#include <algorithm>
#include <cstdio>
namespace YaHTTP {
class Utility {
public:
static std::string decodeURL(const std::string& component) {
std::string result = component;
size_t pos1,pos2;
pos2 = 0;
... | #ifndef _YAHTTP_UTILITY_HPP
#define _YAHTTP_UTILITY_HPP 1
#include <string>
#include <algorithm>
#include <cstdio>
namespace YaHTTP {
class Utility {
public:
static std::string decodeURL(const std::string& component) {
std::string result = component;
size_t pos1,pos2;
pos2 = 0;
... | fix off by one in parameter parser | fix off by one in parameter parser
| C++ | mit | cmouse/yahttp,cmouse/yahttp,cmouse/yahttp |
5d5601c42982482552b9cde144558ddce9f789da | fuzz/FuzzDrawFunctions.cpp | fuzz/FuzzDrawFunctions.cpp | /*
* Copyright 2016 Mozilla Foundation
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Fuzz.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkImage.h"
#include "SkLayerRasterizer.h"
#include "SkPath.h"
#include "SkSurface.h"
#include "S... | /*
* Copyright 2016 Mozilla Foundation
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Fuzz.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkImage.h"
#include "SkLayerRasterizer.h"
#include "SkPath.h"
#include "SkSurface.h"
#include "S... | Make sure fuzzer can't pick an illegal colortype | Make sure fuzzer can't pick an illegal colortype
BUG=skia:6216
Change-Id: Ifb0a0a1e634bb291c586d2094401ec10349dcd0e
Reviewed-on: https://skia-review.googlesource.com/8817
Reviewed-by: Herb Derby <9e12a3d2bbf73546e47cc9958f6ba8f3215b7eaf@google.com>
Commit-Queue: Kevin Lubick <7cdab2cfab351f23814786ba39716e90eed69047@... | C++ | bsd-3-clause | google/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/ski... |
d32b454c5b7fec2bc64b4480819701fb526a8652 | features/storage/blockdevice/MBRBlockDevice.cpp | features/storage/blockdevice/MBRBlockDevice.cpp | /* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* 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 require... | /* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* 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 require... | Align writes to blockdevice write size in MBRBlockDevice | Align writes to blockdevice write size in MBRBlockDevice
| C++ | apache-2.0 | kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,c1728p9/mbed-os,kjbracey-arm/mbed,c1728p9/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,c1728p9/mbed-os,andcor02/mbed-os,mbedmicro/mbed,mbedmic... |
4ef4e419844282e87a0b6633211e3cbaef1ca3a9 | firmware/node_firmware/lib/MeshNet/src/node.cpp | firmware/node_firmware/lib/MeshNet/src/node.cpp | #include "node.hpp"
#include "common.hpp"
Node::Node(uint8_t node_id, const uint8_t *key)
: radio(CE_PIN, CS_PIN), network(radio), mesh(radio, network),
node_id(node_id), key(key), session(micros()), own_id(0), other_id(0),
last_pong(millis()) {}
void Node::init() {
mesh.setNodeID(0);
mesh.begin()... | #include "node.hpp"
#include "common.hpp"
Node::Node(uint8_t node_id, const uint8_t *key)
: radio(CE_PIN, CS_PIN), network(radio), mesh(radio, network),
node_id(node_id), key(key), session(micros()), own_id(0), other_id(0),
last_pong(millis()) {}
void Node::init() {
mesh.setNodeID(node_id);
mesh.b... | Fix that nodeid was never set | Fix that nodeid was never set
Signed-off-by: Jan Losinski <577c4104c61edf9f052c616c0c23e67bef4a9955@wh2.tu-dresden.de>
| C++ | bsd-3-clause | janLo/automation_mesh,janLo/automation_mesh,janLo/automation_mesh |
a41d60240f925b7085a27f59c24c81c3b78d9a22 | pic32/cores/pic32/main.cpp | pic32/cores/pic32/main.cpp | //************************************************************************
//* main.c
//*
//* Arduino core files for PIC32
//* Copyright (c) 2010, 2011 by Mark Sproul
//*
//*
//************************************************************************
//* this code is based on code Copyright (c) 2005-2006 David A. Me... | //************************************************************************
//* main.c
//*
//* Arduino core files for PIC32
//* Copyright (c) 2010, 2011 by Mark Sproul
//*
//*
//************************************************************************
//* this code is based on code Copyright (c) 2005-2006 David A. Me... | Fix for issue #345 : serialEventRun compiler warning in main.cpp | Fix for issue #345 : serialEventRun compiler warning in main.cpp
| C++ | apache-2.0 | adamwolf/chipKIT-core,EmbeddedMan/chipKIT-core,adamwolf/chipKIT-core,adamwolf/chipKIT-core,adamwolf/chipKIT-core,EmbeddedMan/chipKIT-core,adamwolf/chipKIT-core,ricklon/chipKIT-core,pontech/chipKIT-core,pontech/chipKIT-core,EmbeddedMan/chipKIT-core,chipKIT32/chipkit-core,EmbeddedMan/chipKIT-core,chipKIT32/chipkit-core,m... |
e6992da2aa979daa870fad91cc53c20b20652e5e | framework/JPetParamManager/JPetParamManager.cpp | framework/JPetParamManager/JPetParamManager.cpp | #include "JPetParamManager.h"
#include <TFile.h>
#include <boost/property_tree/xml_parser.hpp>
using namespace std;
JPetParamManager::JPetParamManager():
fBank(0)
{
/* */
}
JPetParamManager::~JPetParamManager()
{
if (fBank) {
delete fBank;
fBank = 0;
}
}
/// @param DBConfigFile configuration file ... | #include "JPetParamManager.h"
#include <TFile.h>
#include <boost/property_tree/xml_parser.hpp>
using namespace std;
JPetParamManager::JPetParamManager():
fBank(0)
{
/* */
}
JPetParamManager::~JPetParamManager()
{
if (fBank) {
delete fBank;
fBank = 0;
}
}
/// @param DBConfigFile configuration file ... | Change xml configuration file name. | Change xml configuration file name.
Former-commit-id: 5c9c6aab5d2ed7c82f11d7f3ad5e4afcc1795a69 | C++ | apache-2.0 | kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework |
ff0a2295cb450dc369ced93e2f1018499a886341 | framework/src/media/streaming/audio_encoder.cpp | framework/src/media/streaming/audio_encoder.cpp | /******************************************************************
*
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | /******************************************************************
*
* Copyright 2018 Samsung Electronics 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
*
* ... | Remove unnecessary TODO comment in audio encoder | framework/media: Remove unnecessary TODO comment in audio encoder
| C++ | apache-2.0 | an4967/TizenRT,jsdosa/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,davidfather/TizenRT,pillip8282/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,JeonginKim/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,davidfather... |
673e2154a85dc87468bc4dcd822e29f6838dee9b | tests/test_coro.cpp | tests/test_coro.cpp | #include <atomic>
#include <asyncply/cmd.h>
#include <asyncply/parallel.h>
#include <asyncply/run.h>
#include <asyncply/algorithm.h>
#include <gtest/gtest.h>
class CoroTest : testing::Test { };
using namespace asyncply;
TEST(CoroTest, Test1)
{
std::vector<std::string> lines;
cmd(find("../.."), grep("test_"), out(l... | #include <atomic>
#include <asyncply/cmd.h>
#include <asyncply/parallel.h>
#include <asyncply/run.h>
#include <asyncply/algorithm.h>
#include <gtest/gtest.h>
class CoroTest : testing::Test { };
using namespace asyncply;
TEST(CoroTest, Test1)
{
std::vector<std::string> lines;
cmd(find("../.."), grep("test_"), out(l... | Update test_coro.cpp | Update test_coro.cpp | C++ | cc0-1.0 | makiolo/asyncply,makiolo/asyncply,makiolo/asyncply,makiolo/async-ply |
02931751c1b0aab6c404b58513b0f6388343254d | source/Plugins/Process/Linux/SingleStepCheck.cpp | source/Plugins/Process/Linux/SingleStepCheck.cpp | //===-- SingleStepCheck.cpp ----------------------------------- -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- SingleStepCheck.cpp ----------------------------------- -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix Linux Buildbot. | Fix Linux Buildbot.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@302874 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb |
6a15b8e40aab99646c3bbcdc9b66bf90b6035274 | tools/fpcollect.cpp | tools/fpcollect.cpp | #include <iostream>
#include <dirent.h>
#include <sys/stat.h>
//#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <fileref.h>
#include <tag.h>
#include "chromaprint.h"
#include "fingerprinter.h"
#include "fingerprinter_configuration.h"
#include "fingerprint_compressor.h"
#include "base64.h"... | #include <iostream>
#include <dirent.h>
#include <sys/stat.h>
//#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <fileref.h>
#include <tag.h>
#include "chromaprint.h"
#include "fingerprinter.h"
#include "fingerprinter_configuration.h"
#include "fingerprint_compressor.h"
#include "base64.h"... | Add an option to filter files by modification date | Add an option to filter files by modification date | C++ | lgpl-2.1 | lalinsky/chromaprint,capcomvertigo/chromaprint,vonwenm/chromaprint,capcomvertigo/chromaprint,vonwenm/chromaprint,lalinsky/chromaprint |
4d2d165b70235f44a56e1868d454e6753228084e | include/Sieve.hpp | include/Sieve.hpp | ///
/// @file Sieve.hpp
/// @brief The Sieve class is a highly optimized sieve of
/// Eratosthenes implementation with 30 numbers per byte
/// i.e. the 8 bits of each byte correspond to the offsets
/// { 1, 7, 11, 13, 17, 19, 23, 29 }. This Sieve also
/// skips multiples of 2, 3, 5 using wh... | ///
/// @file Sieve.hpp
/// @brief The Sieve class is a highly optimized sieve of
/// Eratosthenes implementation with 30 numbers per byte
/// i.e. the 8 bits of each byte correspond to the offsets
/// { 1, 7, 11, 13, 17, 19, 23, 29 }. This Sieve also
/// skips multiples of 2, 3, 5 using wh... | Remove unused method | Remove unused method
| C++ | bsd-2-clause | kimwalisch/primecount,kimwalisch/primecount,kimwalisch/primecount |
7e1de0c7255363d345c7245e54871c3e941a3c83 | plugin/hdCycles/points.cpp | plugin/hdCycles/points.cpp | // Copyright 2020 Tangent Animation
//
// 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 Tangent Animation
//
// 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 points warnings | fix points warnings
| C++ | apache-2.0 | tangent-opensource/hdBlackbird,tangent-opensource/hdBlackbird,tangent-opensource/hdBlackbird |
8929e8f824f080b6ac4ad39bf0be4026a227fec0 | src/stream.cpp | src/stream.cpp | /*
* ALURE OpenAL utility library
* Copyright (C) 2009 by Chris Robinson.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... | /*
* ALURE OpenAL utility library
* Copyright (C) 2009 by Chris Robinson.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... | Combine two error paths | Combine two error paths
| C++ | mit | NickNick/alure,NickNick/alure,NickNick/alure |
1e975290e61248d1c1c70faa84f09dcce5442091 | include/stack.hpp | include/stack.hpp | #ifndef stack_cpp
#define stack_cpp
#pragma once
#include <iostream>
#include <memory>
class bitset
{
public:
explicit
bitset(size_t size) /*strong*/;
bitset(bitset const & other) = delete;
auto operator =(bitset const & other)->bitset & = delete;
bitset(bitset && other) = delete;
auto operato... | #ifndef stack_cpp
#define stack_cpp
#pragma once
#include <iostream>
#include <memory>
class bitset
{
public:
explicit
bitset(size_t size) /*strong*/;
bitset(bitset const & other) = delete;
auto operator =(bitset const & other)->bitset & = delete;
bitset(bitset && other) = delete;
auto operato... | Update stack.hpp | Update stack.hpp | C++ | mit | DANTEpolaris/stack |
880daa6b2e54ac513aa05acd15c9e6cfbdbc1fcf | src/stream.cpp | src/stream.cpp | #include "stream.h"
#include <cassert>
#include <limits>
#include <cstring> // for memcpy
namespace Akumuli {
StreamError::StreamError(std::string line, int pos)
: line_(line)
, pos_(pos)
{
}
const char* StreamError::what() const throw() {
return line_.c_str();
}
std::string StreamError::get_bottom_lin... | #include "stream.h"
#include <cassert>
#include <limits>
#include <cstring> // for memcpy
namespace Akumuli {
StreamError::StreamError(std::string line, int pos)
: line_(line)
, pos_(pos)
{
}
const char* StreamError::what() const throw() {
return line_.c_str();
}
std::string StreamError::get_bottom_lin... | Fix respstream_test | Fix respstream_test
| C++ | apache-2.0 | akumuli/Akumuli,akumuli/Akumuli,akumuli/Akumuli,akumuli/Akumuli |
211e25f931f770255a49cdf3c3600869ee269853 | include/stack.hpp | include/stack.hpp | #include <iostream>
#include <mutex>
#include <thread>
#include <memory>
using namespace std;
template <typename T>
class stack
{
public:
stack();/*noexept*/
stack(const stack<T> &);/*strong*/
size_t count() const; /*noexcept*/
void print()const;/*noexcept*/
void push(T const &); /*strong*/
void swap(stack<T>&)... | #include <iostream>
#include <mutex>
#include <thread>
#include <memory>
using namespace std;
template <typename T>
class stack
{
public:
stack();/*noexept*/
stack(const stack<T> &);/*strong*/
size_t count() const; /*noexcept*/
void print()const;/*noexcept*/
void push(T const &); /*strong*/
void swap(stack<T>&)... | Update stack.hpp | Update stack.hpp | C++ | mit | rtv22/stack |
386936874b716af0e8187d587328c3c2a204ac9b | include/token.hxx | include/token.hxx | #ifndef TOKEN_HXX_LGIKOUIZ
#define TOKEN_HXX_LGIKOUIZ
#include "id.hxx"
#include "string.hxx"
namespace miniml
{
/// Abstract class for tokens.
struct Token
{
enum class Type; ///< Token types.
virtual Type type() const = 0; ///< What type of token is this?
virtual ~Token() {}
/// Make an a... | #ifndef TOKEN_HXX_LGIKOUIZ
#define TOKEN_HXX_LGIKOUIZ
#include "id.hxx"
#include "string.hxx"
namespace miniml
{
/// Abstract class for tokens.
struct Token
{
enum class Type; ///< Token types.
virtual Type type() const = 0; ///< What type of token is this?
virtual ~Token() {}
/// Make an a... | Use raw pointers for Token because Lemon is C | Use raw pointers for Token because Lemon is C
| C++ | bsd-3-clause | andy-morris/miniml |
32bfa7759d9af8b9cd4a535ac5c01d52acc28f75 | iRODS/server/api/src/rsDataObjPhymv.cpp | iRODS/server/api/src/rsDataObjPhymv.cpp | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#include "dataObjPhymv.h"
#include "reFuncDefs.hpp"
#include "dataObjRepl.h"
#include "dataObjOpr.hpp"
#include "rodsLog.h"
#include "objMetaOpr.hpp"
#include "... | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#include "dataObjPhymv.h"
#include "reFuncDefs.hpp"
#include "dataObjRepl.h"
#include "dataObjOpr.hpp"
#include "rodsLog.h"
#include "objMetaOpr.hpp"
#include "... | validate source resource | [#2821] validate source resource
| C++ | bsd-3-clause | PaulVanSchayck/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,janiheikkinen/irods,PaulVanSchayck/irods,janiheikkinen/irods,PaulVanSchayck/irods,PaulVanSchayck/irods,janiheikkinen/irods,janiheikkinen/irods,janiheikkinen/irods,janiheikkinen/irods,PaulVanSchayck/irods,janiheikkin... |
6f2f52c9b35c775d3d4e917a2112290831b5314d | include/config.cpp | include/config.cpp | /**
* @file config.CPP
* @brief Config file loader
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details Load config file to run the engine
*/
#include "config.hpp"
#include "configloader.hpp"
namespace cossb {
namespace base {
config::config():_doc(nullptr)
{
}
config::~config()
... | /**
* @file config.CPP
* @brief Config file loader
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details Load config file to run the engine
*/
#include "config.hpp"
namespace cossb {
namespace base {
config::config():_doc(nullptr)
{
}
config::~config()
{
if(!_dependency.empty())
... | clean up the source | clean up the source | C++ | mit | bhhwang/cossb,bhhwang/cossb,bhhwang/cossb |
cd1c6227c1c91ec6fb7bcbdbbf97cc47dd1e0b2d | cpp/src/parquet/arrow/arrow-reader-writer-benchmark.cc | cpp/src/parquet/arrow/arrow-reader-writer-benchmark.cc | // 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... | Add benchmark for boolean Arrow column I/O | PARQUET-1094: Add benchmark for boolean Arrow column I/O
Author: Uwe L. Korn <uwe@apache.org>
Closes #391 from xhochy/PARQUET-1094 and squashes the following commits:
089bb3c [Uwe L. Korn] PARQUET-1094: Add benchmark for boolean Arrow column I/O
Change-Id: I2bb6a0894d13ce0c67f592cae069e09255d8d0e6
| C++ | apache-2.0 | majetideepak/arrow,itaiin/arrow,kou/arrow,pcmoritz/arrow,wesm/arrow,xhochy/arrow,cpcloud/arrow,icexelloss/arrow,cpcloud/arrow,laurentgo/arrow,cpcloud/arrow,apache/arrow,icexelloss/arrow,pcmoritz/arrow,icexelloss/arrow,itaiin/arrow,pcmoritz/arrow,icexelloss/arrow,apache/arrow,itaiin/arrow,wesm/arrow,xhochy/arrow,icexell... |
231daf9977e221a50d0150140c451d49ad224aee | ASCOfficeOdfFileW/source/utils.cpp | ASCOfficeOdfFileW/source/utils.cpp | /*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its ... | /*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its ... | Fix build | Fix build
| C++ | agpl-3.0 | ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core,ONLYOFFICE/core |
aa84a3ea41a20632ddd9f671779e0601505412bb | kicad/commandframe.cpp | kicad/commandframe.cpp | /*****************************************************/
/* commandframe.cpp: window handling comman buttons */
/*****************************************************/
#include "fctsys.h"
#include "common.h"
#include "kicad.h"
#include "macros.h"
#define BITMAP wxBitmap
// ------------------------------... | /*****************************************************/
/* commandframe.cpp: window handling comman buttons */
/*****************************************************/
#include "fctsys.h"
#include "common.h"
#include "kicad.h"
#include "macros.h"
#define BITMAP wxBitmap
// ------------------------------------------... | set eol-style native on new file | set eol-style native on new file | C++ | lgpl-2.1 | hellamps/kicad,hellamps/kicad,hellamps/kicad,hellamps/kicad,hellamps/kicad |
3cd7b6d332e26a157cb95409225005316813c9aa | kmailcvt/filter_oe.cxx | kmailcvt/filter_oe.cxx | /***************************************************************************
filter_oe.cxx - Outlook Express mail import
-------------------
begin : Sat Feb 1 2003
copyright : (C) 2003 by Laurence Anderson
email ... | /***************************************************************************
filter_oe.cxx - Outlook Express mail import
-------------------
begin : Sat Feb 1 2003
copyright : (C) 2003 by Laurence Anderson
email ... | Fix description | Fix description
svn path=/trunk/kdepim/; revision=204887
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
bb3175cfca7f2064b3bf075aa429f92c2474f430 | src/CheckpointOutput.cpp | src/CheckpointOutput.cpp | /*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.70
Copyright (C) 2018 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
*****************... | /*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.70
Copyright (C) 2018 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
*****************... | print enable, freq, and file | print enable, freq, and file
| C++ | mit | GOMC-WSU/GOMC,GOMC-WSU/GOMC,GOMC-WSU/GOMC,GOMC-WSU/GOMC,GOMC-WSU/GOMC |
cfd15cc8c1c004dd5da9966c8bc191b26576f450 | src/coins.cpp | src/coins.cpp | // Copyright (c) 2012-2015 The Bitcoin Core developers
// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "consensus/consensus.h"
#include "me... | // Copyright (c) 2012-2015 The Bitcoin Core developers
// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "consensus/consensus.h"
#include "me... | Add missing cs_utxo locks in coins.cpp | Add missing cs_utxo locks in coins.cpp
| C++ | mit | Bitcoin-com/BUcash,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Bitcoin-com/BUcash,Bitcoin-com/BUcash,BitcoinUnlimited/BitcoinUnlimited,Bitcoin-com/BUcash,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimi... |
db2fd9c0c3e5cad4c5a99497e226f3ec970cbcad | src/IceCompileServer.cpp | src/IceCompileServer.cpp | //===- subzero/src/IceCompileServer.cpp - Compile server ------------------===//
//
// The Subzero Code Generator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------... | //===- subzero/src/IceCompileServer.cpp - Compile server ------------------===//
//
// The Subzero Code Generator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------... | Fix pnacl-sz to return with staus 0 in report_fatal_error. | Fix pnacl-sz to return with staus 0 in report_fatal_error.
Fixes pnacl-sz to return with exit status 0 in report_fatal_error, if
command line flag --exit-status is specified. The importance of this
is that it allows afl-fuzz to not report the mutation as a crash.
In addition, afl-fuzz doesn't record crash paths in it... | C++ | apache-2.0 | bkaradzic/SwiftShader,bkaradzic/SwiftShader,google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,google/swiftshader,bkaradzic/SwiftShader,google/swiftshader |
d8ae4ccaaf704d78735deaeff8ddb8fb9b351229 | test/ffi_tests.cc | test/ffi_tests.cc | #include <stdlib.h>
#include "v8.h"
#include "node.h"
#include "node_buffer.h"
using namespace v8;
using namespace node;
namespace {
/*
* Test struct definition used in the test harness functions below.
*/
typedef struct box {
int width;
int height;
} _box;
/*
* Accepts a struct by value, and returns a stru... | #include <stdlib.h>
#include "v8.h"
#include "node.h"
#include "node_buffer.h"
using namespace v8;
using namespace node;
namespace {
/*
* Test struct definition used in the test harness functions below.
*/
typedef struct box {
int width;
int height;
} _box;
/*
* Accepts a struct by value, and returns a stru... | update ffi_tests.cc for node >= v0.9.4 | update ffi_tests.cc for node >= v0.9.4
| C++ | mit | Icenium/node-ffi,node-ffi/node-ffi,paulcbetts/node-ffi,unbornchikken/node-ffi,craigcomstocks/node-ffi,unrealsolver/node-ffi,unbornchikken/node-ffi,skoky/node-ffi,lzpfmh/node-ffi,paulcbetts/node-ffi,unbornchikken/node-ffi,skoky/node-ffi,lzpfmh/node-ffi,node-ffi/node-ffi,node-ffi/node-ffi,skoky/node-ffi,paulcbetts/node-f... |
caf33a2d48b0887609e9fcbdc3cbe57c5308322a | include/forest.hpp | include/forest.hpp | #pragma once
#include "data.hpp"
#include "settings.hpp"
#include "tree.hpp"
#include "random.hpp"
#include "Kabsch.hpp"
#include <vector>
#include <random>
#include <ctime>
#include <cstdint>
#include <Eigen/Geometry>
#include "opencv2/opencv.hpp"
namespace ISUE {
namespace RelocForests {
class Forest {
... | #pragma once
#include "data.hpp"
#include "settings.hpp"
#include "tree.hpp"
#include "random.hpp"
#include "Kabsch.hpp"
#include <vector>
#include <random>
#include <ctime>
#include <cstdint>
#include <Eigen/Geometry>
#include "opencv2/opencv.hpp"
namespace ISUE {
namespace RelocForests {
class Forest {
... | Put points in matrices. | Put points in matrices.
| C++ | mit | ISUE/relocforests |
a39504a2d149e2c6fe18ef82bfdd722b7d77712a | indra/llcorehttp/examples/http_texture_load.cpp | indra/llcorehttp/examples/http_texture_load.cpp | /**
* @file http_texture_load.cpp
* @brief Texture download example for core-http library
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2012, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... | /**
* @file http_texture_load.cpp
* @brief Texture download example for core-http library
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2012, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... | Fix for linux/mac builds. | Fix for linux/mac builds.
| C++ | lgpl-2.1 | gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm |
73edffed5fd22a9d500be088195d32a9acf35829 | functors.hpp | functors.hpp | #include <atomic>
#include <map>
#include <set>
#include "block.hpp"
#include "hash.hpp"
struct processFunctor_t {
virtual ~processFunctor_t () {}
virtual bool initialize (const char*) {
return false;
}
virtual void operator() (const Block&) = 0;
};
struct whitelisted_t : processFunctor_t {
std::set<hash256_... | #include <atomic>
#include <map>
#include <set>
#include "block.hpp"
#include "hash.hpp"
struct processFunctor_t {
virtual ~processFunctor_t () {}
virtual bool initialize (const char*) {
return false;
}
virtual void operator() (const Block&) = 0;
};
struct whitelisted_t : processFunctor_t {
std::vector<hash2... | use sorted vectors for high performance lookups | functors: use sorted vectors for high performance lookups
| C++ | isc | dcousens/fast-dat-parser,dcousens/fast-dat-parser,dcousens/fast-dat-parser |
b416f6f7d139237b212909fb755c820ddff31f4b | asc/TCPString.hpp | asc/TCPString.hpp | # pragma once
# include <Siv3D.hpp>
namespace asc
{
using namespace s3d;
/// <summary>
/// 𑗎M\ TCPClient, TCPServer
/// </summary>
/// <remarks>
/// M UTF-8 ōs܂B
/// </remarks>
template<class Socket>
class TCPString : public Socket
{
public:
/// <summary>
/// 1 ǂݍ݂܂B
/// </summary>
/// <param na... | # pragma once
# include <Siv3D.hpp>
namespace asc
{
using namespace s3d;
/// <summary>
/// 𑗎M\ TCPClient, TCPServer
/// </summary>
/// <remarks>
/// M UTF-8 ōs܂B
/// </remarks>
template<class Socket>
class TCPString : public Socket
{
public:
/// <summary>
/// 1 ǂݍ݂܂B
/// </summary>
/// <param na... | Add comment. | Add comment.
| C++ | unlicense | ChunChunMorning/AscTCPString |
ef4db6602a9ed14b500e4fd5a3fd34a6858885ee | include/ellis_private/codec/obd/pid.hpp | include/ellis_private/codec/obd/pid.hpp | /*
* @file codec/elm327.hpp
*
* @brief Ellis ELM327 codec C++ header.
*/
#pragma once
#ifndef ELLIS_CODEC_PID_HPP_
#define ELLIS_CODEC_PID_HPP_
#include <cstdint>
#include <memory>
namespace ellis {
namespace obd {
/** Gets a string describing a PID from a PID value.
*
* @param pid a PID
*
* @return a stri... | /*
* @file codec/elm327.hpp
*
* @brief Ellis ELM327 codec C++ header.
*/
#pragma once
#ifndef ELLIS_CODEC_PID_HPP_
#define ELLIS_CODEC_PID_HPP_
#include <cstdint>
#include <memory>
namespace ellis {
namespace obd {
/** Gets a string describing a PID from a PID value.
*
* @param pid a PID
*
* @return a stri... | fix doc issue | obd: fix doc issue
| C++ | mit | project-ellis/ellis,project-ellis/ellis |
e40d14f4a9c42ed6bf93f701f6e872acadf40a6f | C++/summary-ranges.cpp | C++/summary-ranges.cpp | // Time: O(n)
// Space: O(1)
class Solution {
public:
vector<string> summaryRanges(vector<int>& nums) {
vector<string> ranges;
if (nums.empty()) {
return ranges;
}
int start = nums[0], end = nums[0];
for (int i = 1; i <= nums.size(); ++i) {
if (i < ... | // Time: O(n)
// Space: O(1)
class Solution {
public:
vector<string> summaryRanges(vector<int>& nums) {
vector<string> ranges;
if (nums.empty()) {
return ranges;
}
int start = nums[0], end = nums[0];
for (int i = 1; i <= nums.size(); ++i) {
if (i < ... | Update summary-ranges.cpp | Update summary-ranges.cpp | C++ | mit | tudennis/LeetCode---kamyu104-11-24-2015,tudennis/LeetCode---kamyu104-11-24-2015,githubutilities/LeetCode,yiwen-luo/LeetCode,kamyu104/LeetCode,jaredkoontz/leetcode,yiwen-luo/LeetCode,yiwen-luo/LeetCode,yiwen-luo/LeetCode,githubutilities/LeetCode,jaredkoontz/leetcode,githubutilities/LeetCode,githubutilities/LeetCode,gith... |
15356f63203742b462cb40aed547c93c24545a39 | include/mapnik/text/harfbuzz_shaper.hpp | include/mapnik/text/harfbuzz_shaper.hpp | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2013 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2013 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | handle wchar_t UChar typedef on windows | handle wchar_t UChar typedef on windows
| C++ | lgpl-2.1 | sebastic/python-mapnik,whuaegeanse/mapnik,cjmayo/mapnik,Airphrame/mapnik,whuaegeanse/mapnik,pnorman/mapnik,lightmare/mapnik,stefanklug/mapnik,jwomeara/mapnik,sebastic/python-mapnik,yohanboniface/python-mapnik,qianwenming/mapnik,qianwenming/mapnik,Airphrame/mapnik,tomhughes/mapnik,tomhughes/mapnik,mapnik/python-mapnik,y... |
9e203b609d53db27a4bb03df51c848e69200fb92 | io/pipe_simple.cc | io/pipe_simple.cc | #include <common/buffer.h>
#include <event/action.h>
#include <event/callback.h>
#include <event/event_system.h>
#include <io/pipe.h>
#include <io/pipe_simple.h>
/*
* PipeSimple is a pipe which passes data through a processing function and
* which provides no discipline -- it will always immediately signal that it... | #include <common/buffer.h>
#include <event/action.h>
#include <event/callback.h>
#include <event/event_system.h>
#include <io/pipe.h>
#include <io/pipe_simple.h>
/*
* PipeSimple is a pipe which passes data through a processing function and
* which provides no discipline -- it will always immediately signal that it... | Fix buffering of unhandled data. | Fix buffering of unhandled data.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@400 4068ffdb-0463-0410-8185-8cc71e3bd399
| C++ | bsd-2-clause | diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy,splbio/wanproxy,diegows/wanproxy |
a5f72562ace8048a841b0b335f9078866093f872 | implementations/MaxMSP/jcom.ramp~/jcom.ramp~.cpp | implementations/MaxMSP/jcom.ramp~/jcom.ramp~.cpp | /*
* tt.ramp~
* External object for Max/MSP
*
* Example project for TTBlue
* Copyright © 2008 by Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "TTClassWrapperMax.h"
#include "ext.h" // Max Header
#include... | /*
* tt.ramp~
* External object for Max/MSP
*
* Example project for TTBlue
* Copyright © 2008 by Timothy Place
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "TTClassWrapperMax.h"
#include "ext.h" // Max Header
#include... | build fix (no longer using obsolete macro. | jcom.ramp~: build fix (no longer using obsolete macro.
| C++ | bsd-3-clause | jamoma/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,jamoma/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,eriser/JamomaCore,jamoma/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,eriser/JamomaCore,eriser/JamomaCore,jamoma/JamomaCore,eriser/JamomaCore,eriser/JamomaCore |
3753b0dd922915113bf64a03c54cd7b74e2f0d0a | src/MMGSafariPayload.hpp | src/MMGSafariPayload.hpp | //
// MMGSafariPayload.hpp
//
// Copyright (c) 2013 MacGeneration. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, ... | //
// MMGSafariPayload.hpp
//
// Copyright (c) 2013 MacGeneration. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, ... | Remove missing nl warning | Remove missing nl warning
| C++ | bsd-2-clause | gfxcc/MacGPusher,MacGeneration/MacGPusher |
d5fefe2440639933bb0bf4b1083d03d2b59a9cb2 | backend/utils.cpp | backend/utils.cpp | #include <cstdint>
#include <stdexcept>
#include <string>
#include "utils.h"
std::string lc3::utils::udecToBin(uint32_t value, uint32_t num_bits)
{
char * bits = new char[num_bits + 1];
for(uint32_t i = 0; i < num_bits; i += 1) {
bits[num_bits - i - 1] = (value & 1) + '0';
value >>= 1;
}
... | #include <algorithm>
#include <cstdint>
#include <stdexcept>
#include <string>
#include "utils.h"
std::string lc3::utils::udecToBin(uint32_t value, uint32_t num_bits)
{
char * bits = new char[num_bits + 1];
for(uint32_t i = 0; i < num_bits; i += 1) {
bits[num_bits - i - 1] = (value & 1) + '0';
... | Add missing include | [back] Add missing include
| C++ | mit | chiragsakhuja/lc3v2,chiragsakhuja/lc3v2,chiragsakhuja/lc3v2,chiragsakhuja/lc3v2,chiragsakhuja/lc3v2,chiragsakhuja/lc3v2 |
b11887c6ef9e976a50d1162caefebb4bafe347d8 | tree/src/TLeafL.cxx | tree/src/TLeafL.cxx | // @(#)root/tree:$Id$
// Author: Rene Brun 12/01/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/tree:$Id$
// Author: Rene Brun 12/01/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | correct typo in comment | correct typo in comment
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@21655 27541ba8-7e3a-0410-8455-c3a389f83636
| C++ | lgpl-2.1 | bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT |
f81e3923664c22d94c1adf2fe86f5d744cff0fd9 | indra/llmessage/tests/llavatarnamecache_test.cpp | indra/llmessage/tests/llavatarnamecache_test.cpp | /**
* @file llavatarnamecache_test.cpp
* @author James Cook
* @brief LLAvatarNameCache test cases.
*
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it und... | /**
* @file llavatarnamecache_test.cpp
* @author James Cook
* @brief LLAvatarNameCache test cases.
*
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it und... | Standardize test name to match class name on LLAvatarNameCache | Standardize test name to match class name on LLAvatarNameCache
| C++ | lgpl-2.1 | gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm |
10708c4a89241a923522897dddaa42b8a67501aa | lib/Driver/HostInfo.cpp | lib/Driver/HostInfo.cpp | //===--- HostInfo.cpp - Host specific information -----------------------*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- HostInfo.cpp - Host specific information -----------------------*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix use after free, found by Benjamin Kramer. | Fix use after free, found by Benjamin Kramer.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@72333 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
81095614ffb19cdb7e8d95dee6593e32eae4e649 | include/depthai-shared/datatype/RawTrackedFeatures.hpp | include/depthai-shared/datatype/RawTrackedFeatures.hpp | #pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
#include <vector>
#include "DatatypeEnum.hpp"
#include "RawBuffer.hpp"
#include "RawFeatureTrackerConfig.hpp"
#include "depthai-shared/common/Point2f.hpp"
namespace dai {
/**
* TrackedFeatures structure
*
*/
struct TrackedFeatures {
/**
* x, y... | #pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
#include <vector>
#include "DatatypeEnum.hpp"
#include "RawBuffer.hpp"
#include "RawFeatureTrackerConfig.hpp"
#include "depthai-shared/common/Point2f.hpp"
namespace dai {
/**
* TrackedFeature structure
*
*/
struct TrackedFeature {
/**
* x, y p... | Rename TrackedFeatures to TrackeFeature; disable some field due to serializer overhead | Rename TrackedFeatures to TrackeFeature; disable some field due to serializer overhead
| C++ | mit | luxonis/depthai-shared |
a562cf75bd2dfbd8ec7954e3ebdf2dcca781e489 | programs/ping/src/main.cpp | programs/ping/src/main.cpp | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=================================================================... | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=================================================================... | Add debug mode to ping | Add debug mode to ping
| C++ | mit | wichtounet/thor-os,wichtounet/thor-os |
6ce8b01d3707dbf6c7c5399bdc068749a2a11dc7 | include/traits.hpp | include/traits.hpp | #pragma once
#include <type_traits>
namespace aaa {
template<typename Container>
using value_type = typename Container::value_type;
template<typename Iterator>
using value_type_i = typename std::iterator_traits<Iterator>::value_type;
template<typename Container>
using iterator = typename Container::iterator;
temp... | #pragma once
#include <type_traits>
namespace aaa {
template<typename Container>
using value_type = typename Container::value_type;
template<typename Iterator>
using value_type_i = typename std::iterator_traits<Iterator>::value_type;
template<typename Container>
using iterator = typename Container::iterator;
temp... | Remove unnecessary typename | Remove unnecessary typename
| C++ | mit | mabur/aaa,mabur/aaa,mabur/aaa |
ab9a563a28f4c085ab80e7eb73911302159f8480 | input-context/glibdbusimserverproxy.cpp | input-context/glibdbusimserverproxy.cpp | /* * This file is part of meego-im-framework *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This library ... | /* * This file is part of meego-im-framework *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This library ... | Use QMetaType::Type instead of QVariant::Type. | Changes: Use QMetaType::Type instead of QVariant::Type.
RevBy: Jon Nordby
Details: Silences a compile warning.
| C++ | lgpl-2.1 | jpetersen/framework,sil2100/maliit-framework,RHawkeyed/framework,RHawkeyed/framework,binlaten/framework,Elleo/framework,Elleo/framework,sil2100/maliit-framework,sil2100/maliit-framework,sil2100/maliit-framework,jpetersen/framework |
b50d0ca40036a858378cf24b1f3cd7e32e8e8ec5 | base/file_util.cc | base/file_util.cc | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/file_util.h"
#include <stdio.h>
#include <fstream>
#include "base/logging.h"
#include "base/string_util.h"
#include "unicode/un... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/file_util.h"
#include <stdio.h>
#include <fstream>
#include "base/logging.h"
#include "base/string_util.h"
#include "unicode/un... | Fix another crasher in Spell Checker related to file IO. Issue=3039 Review URL: http://codereview.chromium.org/7528 | Fix another crasher in Spell Checker related to file IO.
Issue=3039
Review URL: http://codereview.chromium.org/7528
git-svn-id: http://src.chromium.org/svn/trunk/src@3659 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 8112b79bdb9d79ba91212d5e64acb1b26f022c54 | 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... |
faf697d4bbccca3b646ee8d406eb13924b3cf13a | include/wrapper.hh | include/wrapper.hh | #ifndef _WRAPPER_HH_
#define _WRAPPER_HH_
#include "node.h"
#include "nan.h"
#include "socket.hh"
class Wrapper : public Nan::ObjectWrap {
static const int MAX_RECEIVE_BUFFER_SIZE = 2048;
static Nan::Persistent<v8::Function> constructor;
Socket *socket;
explicit Wrapper(v8::Local<v8::Object> options);
~Wrappe... | #ifndef _WRAPPER_HH_
#define _WRAPPER_HH_
#include "node.h"
#include "nan.h"
#include "socket.hh"
class Wrapper : public Nan::ObjectWrap {
static const int MAX_RECEIVE_BUFFER_SIZE = 2048;
static Nan::Persistent<v8::Function> constructor;
Nan::Persistent<v8::Function> onSendCallback;
Nan::Persistent<v8::Function... | Add member variables for storing onRecv and onSend callbacks | Add member variables for storing onRecv and onSend callbacks
| C++ | mit | piskorzj/node-packet-socket,piskorzj/node-packet-socket,piskorzj/node-packet-socket |
261c41f664a2a5e887ed5df5e3f078e9bafd5054 | Engine/system/api/x11api.cpp | Engine/system/api/x11api.cpp | #include "x11api.h"
#ifdef __LINUX__
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <X11/keysymdef.h>
#include <X11/Xutil.h>
//#include <GL/glx.h> //FIXME
#include <Tempest/Event>
#include <Tempest/TextCodec>
#include <Tempest/Window>
#include <atomic>
#include <stdexce... | #include "x11api.h"
#ifdef __LINUX__
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <X11/keysymdef.h>
#include <X11/Xutil.h>
//#include <GL/glx.h> //FIXME
#include <Tempest/Event>
#include <Tempest/TextCodec>
#include <Tempest/Window>
#include <atomic>
#include <stdexce... | Fix crash on Linux | Fix crash on Linux
Try/OpenGothic#48
| C++ | mit | Try/Tempest,Try/Tempest,Try/Tempest,Try/Tempest |
1e967ccf9e4a10fd78058677cbca9ba7093213bf | header/CThreadPool_Ret.hpp | header/CThreadPool_Ret.hpp | #ifndef CTHREADPOOL_RET
#define CTHREADPOOL_RET
#include<thread> //thread::hardware_concurrency
#include<type_traits> //result_of_t
#include<unordered_map>
#include<utility> //forward, move
#include"../../lib/header/thread/CThreadRingBuf.hpp"
#include"CThreadPoolItem_Ret.hpp"
namespace nThread
{
//1. a fixed-sized th... | #ifndef CTHREADPOOL_RET
#define CTHREADPOOL_RET
#include<thread> //thread::hardware_concurrency
#include<type_traits> //result_of_t
#include<unordered_map>
#include<utility> //forward, move
#include"../../lib/header/thread/CThreadRingBuf.hpp"
#include"CThreadPoolItem_Ret.hpp"
namespace nThread
{
//1. a fixed-sized th... | update (exception safety) | update (exception safety)
| C++ | mit | Fdhvdu/ThreadPool |
d561ea5c852269a3945570d4f99e278a6ffeaa5a | header/tool/CAlloc_obj.hpp | header/tool/CAlloc_obj.hpp | #ifndef CALLOC_OBJ
#define CALLOC_OBJ
#include<memory>
#include<type_traits>
#include<utility>
namespace nTool
{
template<class T,class Alloc>
class CAlloc_obj
{
public:
using allocator_type=Alloc;
using value_type=T;
using reference=value_type&;
using const_reference=const value_type&;
u... | #ifndef CALLOC_OBJ
#define CALLOC_OBJ
#include<memory>
#include<type_traits>
#include<utility>
namespace nTool
{
template<class T,class Alloc>
class CAlloc_obj
{
public:
using allocator_type=Alloc;
using value_type=T;
using reference=value_type&;
using const_reference=const value_type&;
u... | add noexcept | add noexcept
| C++ | mit | Fdhvdu/lib |
7e45c901fa8988cd7352728b46579800a38a765e | Core/Debug.cc | Core/Debug.cc | /* Copyright (c) 2011-2012 Stanford University
* Copyright (c) 2014 Diego Ongaro
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE ... | /* Copyright (c) 2011-2012 Stanford University
* Copyright (c) 2014 Diego Ongaro
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE ... | Change debug log to have human-readable dates/times | Change debug log to have human-readable dates/times
was:
1423693530.354292 Server/RaftConsensus.cc:871 in init() NOTICE[1:evloop]: My server ID is 1
now:
2015-02-11 22:28:20.258285 Server/RaftConsensus.cc:871 in init() NOTICE[1:evloop]: My server ID is 1
Close #87: debug log format should have human-readable date
| C++ | isc | tempbottle/logcabin,gaoning777/logcabin,tempbottle/logcabin,logcabin/logcabin,logcabin/logcabin,gaoning777/logcabin,chaozh/logcabin,TigerZhang/logcabin,dankenigsberg/logcabin,dankenigsberg/logcabin,chaozh/logcabin,TigerZhang/logcabin,gaoning777/logcabin,gaoning777/logcabin,TigerZhang/logcabin,chaozh/logcabin,TigerZhang... |
1cacd6e89a43cc070e61cff324cec8bfbcec61f9 | glx/main.cpp | glx/main.cpp | /*
* Code adapted from:
* https://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_(GLX)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/gl.h>
#include <GL/glx.h>
#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
#defi... | /*
* Code adapted from:
* https://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_(GLX)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include "common/error.h"
#define GLX_CONTEXT_MAJ... | use fail() for error handling | glx: use fail() for error handling
| C++ | apache-2.0 | mkollaro/opengl_snippets |
d2e413e8abe3d1f48ac2a229c69bb075fe94041f | EXP1/Draw.cxx | EXP1/Draw.cxx | void Draw(string s_Exo, string s_Run)
{
gStyle->SetOptStat(0);
string s_TFile_Cyclus = s_Exo + "/" + s_Run + "/cyclus.root";
string s_TFile_Class = s_Exo + "/" + s_Run + "/Scenario.root";
cout<<s_TFile_Cyclus<<endl;
cout<<s_TFile_Class<<endl;
TFile *FCy = new TFile(s_TFile_Cyclus.c_str());
TFile *FCl = new TFile(s_... | int Draw(string s_Code1, string s_Code2, string s_Exo1, string s_Exo2, string s_Run1, string s_Run2)
{
gROOT->Reset()
gStyle->SetOptStat(0);
cout<<endl<<"----------------------------------"<<endl;
cout<<"USAGE : "<<endl;
cout<<".x Draw.cxx(\"code1\",\"code2\",\"Ex1\",\"Ex2\",\"Run1\",\"Run2\")"<<endl;
cout<<"EXAMPLE :... | Update Draw script | Update Draw script
| C++ | bsd-3-clause | fcci2017/exercice |
d31b0de6d463a9381f82ac4c82244fb1f0de2f02 | projects/src/simbicycle.hh | projects/src/simbicycle.hh | #include <cmath>
#include <type_traits>
#include <boost/math/special_functions/round.hpp>
#include "bicycle/kinematic.h"
#include "kalman.h"
/*
* Member function definitions of sim::Bicycle template class.
* See simbicycle.h for template class declaration.
*/
namespace sim {
#define OBSERVER_FUNCTION(return_type) ... | #include <cmath>
#include <type_traits>
#include <boost/math/special_functions/round.hpp>
#include "bicycle/kinematic.h"
#include "kalman.h"
/*
* Member function definitions of sim::Bicycle template class.
* See simbicycle.h for template class declaration.
*/
namespace sim {
#define OBSERVER_FUNCTION(return_type) ... | Set roll angle after normalization | Set roll angle after normalization
| C++ | bsd-2-clause | oliverlee/phobos,oliverlee/phobos,oliverlee/phobos,oliverlee/phobos |
0126bf2a7819f287f05a566772cb522d4ad504e0 | cvmfs/publish/repository_transaction.cc | cvmfs/publish/repository_transaction.cc | /**
* This file is part of the CernVM File System.
*/
#include "cvmfs_config.h"
#include "publish/repository.h"
#include <string>
#include "backoff.h"
#include "catalog_mgr_ro.h"
#include "catalog_mgr_rw.h"
#include "directory_entry.h"
#include "logging.h"
#include "manifest.h"
#include "publish/except.h"
#include... | /**
* This file is part of the CernVM File System.
*/
#include "cvmfs_config.h"
#include "publish/repository.h"
#include <string>
#include "backoff.h"
#include "catalog_mgr_ro.h"
#include "catalog_mgr_rw.h"
#include "directory_entry.h"
#include "logging.h"
#include "manifest.h"
#include "publish/except.h"
#include... | Remove spurious warning on transaction | [publish] Remove spurious warning on transaction
| C++ | bsd-3-clause | DrDaveD/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs |
5529b7dccc13af9021a7e8e99a683ee3048c3ef3 | gm/gamma.cpp | gm/gamma.cpp | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SkGradientShader.h"
DEF_SIMPLE_GM(gamma, canvas, 500, 200) {
SkPaint p;
const SkScalar sz = 50.0f;
const int szI... | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SkGradientShader.h"
DEF_SIMPLE_GM(gamma, canvas, 500, 200) {
SkPaint p;
const SkScalar sz = 50.0f;
const int szI... | Remove unmatched restore call in gamma GM | Remove unmatched restore call in gamma GM
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1917303002
Review URL: https://codereview.chromium.org/1917303002
| C++ | bsd-3-clause | HalCanary/skia-hc,tmpvar/skia.cc,google/skia,google/skia,tmpvar/skia.cc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,google/skia,HalCanary/skia-hc,tmpvar/skia.cc,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,ao... |
ec0b326272cc52f8f6f297cd6e44dd75245cadb8 | src/delta.hpp | src/delta.hpp | #ifndef __DELTA_HPP_INCLUDED__
#define __DELTA_HPP_INCLUDED__
#include <string>
namespace dafs
{
struct Delta
{
std::string filename;
std::string difference;
};
}
#endif
| #ifndef __DELTA_HPP_INCLUDED__
#define __DELTA_HPP_INCLUDED__
#include <string>
namespace dafs
{
//
// Edits to files are represented by delta objects. It contains all the
// necessary data to update the file from one version to the next.
//
struct Delta
{
std::string filename;
... | Add delta struct comment | Add delta struct comment
| C++ | mit | dgkimura/dafs,dgkimura/dafs |
9d0ecbdb31d9745bddb1a4f486dd9df825e9fc3e | lib/SIL/MemLocation.cpp | lib/SIL/MemLocation.cpp | //===------------------------- MemLocation.cpp ----------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | //===------------------------- MemLocation.cpp ----------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | Correct the wrongly used function in MemLocation | Correct the wrongly used function in MemLocation
| C++ | apache-2.0 | khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift,khizkhiz/swift |
c10281e01394521592ae7d45c8098935c7ef0ed5 | src/cpp/session/modules/SessionPlumberViewer.cpp | src/cpp/session/modules/SessionPlumberViewer.cpp | /*
* SessionPlumberViewer.cpp
*
* Copyright (C) 2009-18 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public ... | /*
* SessionPlumberViewer.cpp
*
* Copyright (C) 2009-18 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public ... | fix option for current plumber viewer type | fix option for current plumber viewer type
| C++ | agpl-3.0 | JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio |
b6f3769c7098ac010914b44040c1d7975bb919ac | ui/gfx/skia_util.cc | ui/gfx/skia_util.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/skia_util.h"
#include "base/i18n/char_iterator.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/inc... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/skia_util.h"
#include "base/i18n/char_iterator.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/inc... | Simplify the implementation of RectToSkIRect() function. | gfx: Simplify the implementation of RectToSkIRect() function.
R=pkasting@chromium.org
TBR=sky@chromium.org
Review URL: https://codereview.chromium.org/10943023
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@157686 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | dednal/chromium.src,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,ondra-novak/chromium.src,littlstar/chromium.src,chuan9/chromium-crosswalk,ltilve/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,dednal/chromium.src,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,Fir... |
e2769ac10a86fcfb588824166fc16c36dcfc5c2c | test/msan/fork.cc | test/msan/fork.cc | // Test that chained origins are fork-safe.
// Run a number of threads that create new chained origins, then fork
// and verify that origin reads do not deadlock in the child process.
// RUN: %clangxx_msan -std=c++11 -fsanitize-memory-track-origins=2 -g -m64 -O3 %s -o %t
// RUN: MSAN_OPTIONS=store_context_size=1000,or... | // Test that chained origins are fork-safe.
// Run a number of threads that create new chained origins, then fork
// and verify that origin reads do not deadlock in the child process.
// RUN: %clangxx_msan -std=c++11 -fsanitize-memory-track-origins=2 -g -m64 -O3 %s -o %t
// RUN: MSAN_OPTIONS=store_context_size=1000,or... | Fix fork test on centos-6.5. | [msan] Fix fork test on centos-6.5.
Missing <atomic> header.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@217142 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
2f9041b84244e5b0039ef4901c20b646f2ceaaf0 | src/editor.cc | src/editor.cc | #include "editor.hh"
#include "exception.hh"
#include "utils.hh"
#include "register.hh"
#include "register_manager.hh"
#include "utf8_iterator.hh"
#include <array>
namespace Kakoune
{
Editor::Editor(Buffer& buffer)
: m_buffer(&buffer),
m_edition_level(0),
m_selections(buffer)
{
m_selections.pus... | #include "editor.hh"
#include "exception.hh"
#include "utils.hh"
#include "register.hh"
#include "register_manager.hh"
#include "utf8_iterator.hh"
#include <array>
namespace Kakoune
{
Editor::Editor(Buffer& buffer)
: m_buffer(&buffer),
m_edition_level(0),
m_selections(buffer)
{
m_selections.pus... | fix warning | Editor: fix warning
| C++ | unlicense | jjthrash/kakoune,rstacruz/kakoune,jkonecny12/kakoune,lenormf/kakoune,Somasis/kakoune,danielma/kakoune,danielma/kakoune,casimir/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,occivink/kakoune,jjthrash/kakoune,jjthrash/kakoune,elegios/kakoune,danr/kakoune,Asenar/kakoune,zakgreant/kakoune,alexherbo2/kakoune,occivink/kakoun... |
49d20aebb203e49c870cdab30a4d64a6eaf5e6dc | src/app/pluginloader.cpp | src/app/pluginloader.cpp | /*
* Copyright (C) 2008-2014 The Communi Project
*
* This example is free, and not covered by the LGPL license. There is no
* restriction applied to their modification, redistribution, using and so on.
* You can study them, modify them, use them in your own program - either
* completely or partially.
*/
#includ... | /*
* Copyright (C) 2008-2014 The Communi Project
*
* This example is free, and not covered by the LGPL license. There is no
* restriction applied to their modification, redistribution, using and so on.
* You can study them, modify them, use them in your own program - either
* completely or partially.
*/
#includ... | Fix plugin loading on Windows | Fix plugin loading on Windows
| C++ | bsd-3-clause | jpnurmi/communi-desktop,gdamjan/communi-desktop,sevanteri/communi-desktop,communi/communi-desktop,communi/communi-desktop |
d9214750877b212f73d25f769a432e63d0bf4538 | src/bicycle/kinematic.cc | src/bicycle/kinematic.cc | #include <cmath>
#include "bicycle/kinematic.h"
#include "constants.h"
namespace {
template <typename E>
constexpr uint8_t index(E e) {
return static_cast<uint8_t>(e);
}
} // namespace
namespace model {
BicycleKinematic::BicycleKinematic(const second_order_matrix_t& M, const second_order_matrix_t&... | #include <cmath>
#include "bicycle/kinematic.h"
#include "constants.h"
namespace {
template <typename E>
constexpr uint8_t index(E e) {
return static_cast<uint8_t>(e);
}
} // namespace
namespace model {
BicycleKinematic::BicycleKinematic(const second_order_matrix_t& M, const second_order_matrix_t&... | Fix yaw update in kinematic bicycle state update | Fix yaw update in kinematic bicycle state update
| C++ | bsd-2-clause | oliverlee/bicycle,oliverlee/bicycle |
15a8eac238bbb308a2ef1b42294bb60cc795ab11 | test/src/main.cpp | test/src/main.cpp | #include <Arduino.h>
#include "lcd.h"
#include "xpins.h"
const uint32_t kDebounceMs = 100;
const uint32_t kFlashMs = 1000;
const uint16_t kToneHz = 1000;
const uint32_t kToneMs = 300;
DECLARE_KBUTTON_PINS();
DECLARE_KLED_PINS();
DECLARE_KSPEAKER_PIN();
DECLARE_LCD();
#if USE_LAMP
DECLARE_KLAMP_PIN();
#endif
bool b... | #include <Arduino.h>
#include "lcd.h"
#include "xpins.h"
const uint32_t kDebounceMs = 100;
const uint32_t kFlashMs = 1000;
const uint16_t kToneHz = 1000;
const uint32_t kToneMs = 300;
DECLARE_KBUTTON_PINS();
DECLARE_KLED_PINS();
DECLARE_KSPEAKER_PIN();
DECLARE_LCD();
#if USE_LAMP
DECLARE_KLAMP_PIN();
#endif
bool b... | Fix v0 build | Fix v0 build
| C++ | mit | iley/kamaji,iley/kamaji,iley/kamaji,iley/kamaji,iley/kamaji |
8f82e73206c2707be84631aefdc188319931b844 | deal.II/lac/source/petsc_matrix_base.cc | deal.II/lac/source/petsc_matrix_base.cc | //---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2004, 2005 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the file deal.II... | //---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2004, 2005 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the file deal.II... | Make something an AssertThrow again that needs to be. | Make something an AssertThrow again that needs to be.
git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@10605 0785d39b-7218-0410-832d-ea1e28bc413d
| C++ | lgpl-2.1 | naliboff/dealii,pesser/dealii,sriharisundar/dealii,maieneuro/dealii,andreamola/dealii,kalj/dealii,pesser/dealii,natashasharma/dealii,lpolster/dealii,naliboff/dealii,ESeNonFossiIo/dealii,flow123d/dealii,kalj/dealii,maieneuro/dealii,maieneuro/dealii,shakirbsm/dealii,pesser/dealii,JaeryunYim/dealii,mtezzele/dealii,angelrc... |
d9ae637306b20374cb237303116517d7cb48acef | xchainer/python/array.cc | xchainer/python/array.cc | #include "xchainer/python/array.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include <vector>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/array_index.h"
#include "xchainer/constant.h"
#include "xchainer/con... | #include "xchainer/python/array.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include <vector>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/array_index.h"
#include "xchainer/constant.h"
#include "xchainer/con... | Add old behavior back | Add old behavior back
| C++ | mit | pfnet/chainer,ktnyt/chainer,keisuke-umezawa/chainer,hvy/chainer,niboshi/chainer,jnishi/chainer,wkentaro/chainer,ktnyt/chainer,niboshi/chainer,niboshi/chainer,jnishi/chainer,chainer/chainer,keisuke-umezawa/chainer,keisuke-umezawa/chainer,hvy/chainer,wkentaro/chainer,jnishi/chainer,chainer/chainer,niboshi/chainer,hvy/cha... |
c4e1851f4284e21d65177185382bfbfc173070c5 | util/ddv_socket.cpp | util/ddv_socket.cpp | #include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
bool socketError = false;
int DDV_Listen(int port){
int s = socket(AF_INET, SOCK_STREAM, 0);
struct sockaddr_in addr;
addr.sin_family = AF_INET;
addr.sin_port = ... | #include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
bool socketError = false;
int DDV_Listen(int port){
int s = socket(AF_INET, SOCK_STREAM, 0);
struct sockaddr_in addr;
addr.sin_family = AF_INET;
addr.sin_port = ... | Fix voor afsluiten verbinding... | Fix voor afsluiten verbinding...
| C++ | unlicense | rbouqueau/mistserver,rbouqueau/mistserver,DDVTECH/mistserver,rbouqueau/mistserver,DDVTECH/mistserver,rbouqueau/mistserver,DDVTECH/mistserver,rbouqueau/mistserver,DDVTECH/mistserver,DDVTECH/mistserver |
1903c56ef8386f9692ec96c7efff5a9f5a91681b | xchainer/python/array.cc | xchainer/python/array.cc | #include "xchainer/python/array.h"
#include <algorithm>
#include <cstdint>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include "xchainer/array.h"
#include "xchainer/dtype.h"
#include "xchainer/error.h"
#include "xchainer/python/common.h"
namespace xchainer {
namespace py = pybind11;
namespace {
... | #include "xchainer/python/array.h"
#include <algorithm>
#include <cstdint>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include "xchainer/array.h"
#include "xchainer/dtype.h"
#include "xchainer/error.h"
#include "xchainer/python/common.h"
namespace xchainer {
namespace py = pybind11;
namespace {
... | Fix get_grad() | Fix get_grad()
| C++ | mit | ktnyt/chainer,hvy/chainer,hvy/chainer,okuta/chainer,okuta/chainer,jnishi/chainer,wkentaro/chainer,chainer/chainer,keisuke-umezawa/chainer,ktnyt/chainer,pfnet/chainer,keisuke-umezawa/chainer,niboshi/chainer,okuta/chainer,wkentaro/chainer,okuta/chainer,ktnyt/chainer,jnishi/chainer,chainer/chainer,jnishi/chainer,niboshi/c... |
561bd2c5be72b54718ab02048381ed7b37c606d4 | xcodec/xcodec_decoder.cc | xcodec/xcodec_decoder.cc | #include <common/buffer.h>
#include <common/endian.h>
#include <xcodec/xcdb.h>
#include <xcodec/xchash.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_decoder.h>
XCodecDecoder::XCodecDecoder(XCodec *codec)
: log_("/xcodec/decoder"),
database_(codec->database_),
backref_()
{ }
XCodecDecoder::~XCodecDecoder(... | #include <common/buffer.h>
#include <common/endian.h>
#include <xcodec/xcdb.h>
#include <xcodec/xchash.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_decoder.h>
XCodecDecoder::XCodecDecoder(XCodec *codec)
: log_("/xcodec/decoder"),
database_(codec->database_),
backref_()
{ }
XCodecDecoder::~XCodecDecoder(... | Remove hash printing code. | Remove hash printing code.
| C++ | bsd-2-clause | wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy |
ee76c4fc3ee512f25ec17fa75152a0d93494fd01 | xcodec/xcodec_encoder.cc | xcodec/xcodec_encoder.cc | #include <common/buffer.h>
#include <common/endian.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_cache.h>
#include <xcodec/xcodec_encoder.h>
#include <xcodec/xcodec_hash.h>
struct candidate_symbol {
bool set_;
unsigned offset_;
uint64_t symbol_;
};
XCodecEncoder::XCodecEncoder(XCodecCache *cache)
: log_("... | #include <common/buffer.h>
#include <common/endian.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_cache.h>
#include <xcodec/xcodec_encoder.h>
#include <xcodec/xcodec_hash.h>
struct candidate_symbol {
bool set_;
unsigned offset_;
uint64_t symbol_;
};
XCodecEncoder::XCodecEncoder(XCodecCache *cache)
: log_("... | Add a comment and reformat a nearby one. | Add a comment and reformat a nearby one.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@760 4068ffdb-0463-0410-8185-8cc71e3bd399
| C++ | bsd-2-clause | splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,splbio/wanproxy |
18fc2d6fcd8458d6f06b5eb521da90319ee457e5 | chrome/browser/extensions/default_apps.cc | chrome/browser/extensions/default_apps.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/default_apps.h"
#include "base/command_line.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/co... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/default_apps.h"
#include "base/command_line.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/co... | Remove component extensions Calendar and Docs | Remove component extensions Calendar and Docs
BUG=http://code.google.com/p/chromium-os/issues/detail?id=8662
TEST=manual
Review URL: http://codereview.chromium.org/4411001
git-svn-id: http://src.chromium.org/svn/trunk/src@65079 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 337c93d205a718ab611b63106790a5fa5... | 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... |
4cdc8839345987817219acd53a5e6b902930821c | lib/IR/LLVMContext.cpp | lib/IR/LLVMContext.cpp | //===-- LLVMContext.cpp - Implement LLVMContext ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- LLVMContext.cpp - Implement LLVMContext ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix unused variable warnings | Fix unused variable warnings
Differential Revision: https://reviews.llvm.org/D35280
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@307740 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llv... |
80d7a9babcb9ee413ef52258099b6c03e3ad6b55 | main.cpp | main.cpp | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "SampleDaemon.h"
#include <iostream>
#include <boost/program_options.hpp>
/* The simplest usage of the library.
*/
... | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "SampleDaemon.h"
#include <iostream>
#include <boost/program_options.hpp>
/* The simplest usage of the library.
*/
... | Modify demo application | Modify demo application
| C++ | apache-2.0 | Rayer/DropBot |
0312feea028037641f02bddd025a48a689993c7e | main.cpp | main.cpp |
#include <cstdio>
#include <GL/glew.h>
#include <GL/glut.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
static void redisplay_all(void);
// viewing angle
float phi = 0, theta = 0;
// glut window identifiers
int w_main, w_scene, w_performance, w_light, w_heightmap, w_conemap, w_te... |
#include <cstdio>
#include <GL/glew.h>
#include <GL/glut.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include <cmath>
#include <png.h>
void use_shader(bool draw_performance);
static void redisplay_all(void);
bool loadPngImage(char *name, int &outWidth, int &outHeight, int &outC... | update main.cpp | update main.cpp
| C++ | mit | iljakuklic/gpu-raycast-experiment |
6c370203ea88b4e8b00ed3d879554effb44241e8 | main.cpp | main.cpp | #include <iostream>
#include <cassert>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include "vulkanwrapper/Instance.hpp"
#include "vulkanwrapper/Device.hpp"
using namespace std;
void errorCallback(int error, const char *description)
{
cerr << error << ": " << description << endl;
}
void * getInstanceProcA... | #include <iostream>
#include <cassert>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include "vulkanwrapper/Instance.hpp"
#include "vulkanwrapper/Device.hpp"
using namespace std;
void errorCallback(int error, const char *description)
{
cerr << error << ": " << description << endl;
}
VKAPI_ATTR VkBool32 VKA... | Debug report | Debug report
| C++ | mit | chbaker0/vulkan-engine |
9ad4b825cfff37f0de9acb11438a28f1c01178c8 | structs/stn.cc | structs/stn.cc | #include "stn.hpp"
#include <utility>
#include <cassert>
#include <cstdio>
Stn::Stn(unsigned int num) {
grow(num+1);
nodes[0].tozero = nodes[0].fromzero = 0;
}
Stn::Stn(const Stn &o) : nodes(o.nodes.size()), undos(o.undos.size()) {
for (unsigned int i = 0; i < o.nodes.size(); i++) {
Node &n = nodes[i];
n.id = ... | #include "stn.hpp"
#include <utility>
#include <cassert>
#include <cstdio>
Stn::Stn(unsigned int num) {
grow(num+1);
nodes[0].tozero = nodes[0].fromzero = 0;
}
Stn::Stn(const Stn &o) : nodes(o.nodes.size()), undos(o.undos.size()) {
for (unsigned int i = 0; i < o.nodes.size(); i++) {
Node &n = nodes[i];
n.id = ... | Use the correct formats when printing the STN. | Use the correct formats when printing the STN.
| C++ | mit | eaburns/search,eaburns/search,eaburns/search,skiesel/search,skiesel/search,skiesel/search |
ce20c5ff7ac85d2214f3f70d41733a967eae56eb | include/hexer/Mathpair.hpp | include/hexer/Mathpair.hpp | /*****************************************************************************
(c) 2013 Hobu, Inc. hobu.inc@gmail.com
Author: Andrew Bell andrew.bell.ia at gmail.com
This is free software; you can redistribute and/or modify it under the
terms of the GNU Lesser General Licence as published by the Free... | /*****************************************************************************
(c) 2013 Hobu, Inc. hobu.inc@gmail.com
Author: Andrew Bell andrew.bell.ia at gmail.com
This is free software; you can redistribute and/or modify it under the
terms of the GNU Lesser General Licence as published by the Free... | initialize a member with value 0 by using T's constructor, not a double | initialize a member with value 0 by using T's constructor, not a double
| C++ | lgpl-2.1 | gadomski/hexer,gadomski/hexer,gadomski/hexer,gadomski/hexer |
6a256afef1a954a46b82f9deb79376b19c53a8b9 | include/jmsg/pqxxutils.hpp | include/jmsg/pqxxutils.hpp | #pragma once
#include <pqxx/row>
#include <pqxx/prepared_statement>
#include "jmsg_types.hpp"
/// pq key list for fs_param_cfg
#define PQKL_fs_param_cfg "seqn,name,ver,fusion_mode,lfti,rfti,align_mode,x_focus,y_focus,ecf_redress,auto_mag,vangle_limit,hangle_limit,clr_mag,clr_time,clr_pos,position,gap,overlap,pre_mag... | #pragma once
#include <pqxx/result>
#include <pqxx/prepared_statement>
#include "jmsg_types.hpp"
/// pq key list for fs_param_cfg
#define PQKL_fs_param_cfg "seqn,name,ver,fusion_mode,lfti,rfti,align_mode,x_focus,y_focus,ecf_redress,auto_mag,vangle_limit,hangle_limit,clr_mag,clr_time,clr_pos,position,gap,overlap,pre_... | use result agains row | pqxx: use result agains row
Signed-off-by: Yi Qingliang <36380975b124e1c123f6f25e4b18a8f5e5597b95@gmail.com>
| C++ | apache-2.0 | walkthetalk/libem,walkthetalk/libem,walkthetalk/libem |
f5270a32516bf44f31bb124052887cce4be057ff | include/sot/core/device.hh | include/sot/core/device.hh | /*
* Copyright 2010,
* Florent Lamiraux
*
* CNRS
*
* This file is part of sot-core.
* sot-core is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your op... | /*
* Copyright 2010,
* Florent Lamiraux
*
* CNRS
*
* This file is part of sot-core.
* sot-core is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your op... | Make Device destructor virual. | Make Device destructor virual.
| C++ | bsd-2-clause | stack-of-tasks/sot-core,stack-of-tasks/sot-core,stack-of-tasks/sot-core |
40a1e8e43a3936e154ecf6ee0e45b38a5d617e8a | include/wtl/filesystem.hpp | include/wtl/filesystem.hpp | #pragma once
#ifndef WTL_FILESYSTEM_HPP_
#define WTL_FILESYSTEM_HPP_
#if defined(_WIN32)
#include <direct.h>
#else
#include <sys/stat.h>
#include <unistd.h>
#endif
#include <cerrno>
#include <stdexcept>
#include <string>
namespace wtl {
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////... | #pragma once
#ifndef WTL_FILESYSTEM_HPP_
#define WTL_FILESYSTEM_HPP_
#if defined(_WIN32)
#include <direct.h>
#else
#include <sys/stat.h>
#include <unistd.h>
#endif
#include <cerrno>
#include <stdexcept>
#include <string>
#include <regex>
namespace wtl {
/////////1/////////2/////////3/////////4/////////5////////... | Add class fs::path | :sparkles: Add class fs::path
| C++ | mit | heavywatal/cxxwtils |
4ee5c69e36d4de8afd9ff5dd88c31fb9c5a6cbb9 | KTp/Models/contacts-list-model.cpp | KTp/Models/contacts-list-model.cpp | /*
* Copyright (C) 2012 David Edmundson <kde@davidedmundson.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ver... | /*
* Copyright (C) 2012 David Edmundson <kde@davidedmundson.co.uk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ver... | Update model when contact is moved to a group | Update model when contact is moved to a group
REVIEW: 108018
| C++ | lgpl-2.1 | KDE/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals |
bada14828f203a2a618401a269b883712e75744e | KTp/Widgets/add-contact-dialog.cpp | KTp/Widgets/add-contact-dialog.cpp | /*
* Add contact dialog
*
* Copyright (C) 2011 David Edmundson <kde@davidedmundson.co.uk>
* Copyright (C) 2012 George Kiagiadakis <kiagiadakis.george@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published b... | /*
* Add contact dialog
*
* Copyright (C) 2011 David Edmundson <kde@davidedmundson.co.uk>
* Copyright (C) 2012 George Kiagiadakis <kiagiadakis.george@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published b... | Set window title & icon | AddContactDialog: Set window title & icon
| C++ | lgpl-2.1 | leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals |
ba1bc60542a1a4c7ade1a563465328a3fdde1fc7 | lib/Target/Mips/MipsMachineFunction.cpp | lib/Target/Mips/MipsMachineFunction.cpp | //===-- MipsMachineFunctionInfo.cpp - Private data used for Mips ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- MipsMachineFunctionInfo.cpp - Private data used for Mips ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add missing #include <raw_ostream.h> | MipsMachineFunction.cpp: Add missing #include <raw_ostream.h>
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@191597 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirr... |
6f17aa70264006a37519db7dd10245dd54eb34bc | utils/src/Utils.cpp | utils/src/Utils.cpp | /* Copyright(C)
* For free
* All right reserved
*
*/
/**
* @file Utils.cpp
* @brief 常用工具实现
* @author highway-9, 787280310@qq.com
* @version 0.1.0
* @date 2015-11-28
*/
#include "Utils.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>... | /* Copyright(C)
* For free
* All right reserved
*
*/
/**
* @file Utils.cpp
* @brief 常用工具实现
* @author highway-9, 787280310@qq.com
* @version 0.1.0
* @date 2015-11-28
*/
#include "Utils.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>... | 优化 Utils | 优化 Utils
| C++ | mit | chxuan/easyrpc,chxuan/easyrpc,chxuan/easyrpc,chxuan/easyrpc |
6b867fd7c9f11eac7e632677e75c0d58ff3db58a | lib/qtcamresolution.cpp | lib/qtcamresolution.cpp | /*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012-2014 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of t... | /*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012-2014 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of t... | fix logic in isValid() | qtcamresolution: fix logic in isValid()
fps is invalid if it is -1 but 0 is allowed (even though it will not make GStreamer happy)
| C++ | lgpl-2.1 | mlehtima/cameraplus,foolab/cameraplus,alinelena/cameraplus,mlehtima/cameraplus,alinelena/cameraplus,mer-hybris-kis3/cameraplus,mer-hybris-kis3/cameraplus,foolab/cameraplus,mer-hybris-kis3/cameraplus,foolab/cameraplus,alinelena/cameraplus,mer-hybris-kis3/cameraplus,mlehtima/cameraplus,alinelena/cameraplus,foolab/camerap... |
4fb1e9e498278362b8de76d30c45b68631949a7d | Logic/not.cpp | Logic/not.cpp | #include "not.h"
Not::Not(QGraphicsItem *parent) : GraphicElement(1,1,1,1,parent) {
setOutputsOnTop(true);
setPixmap( ":/basic/not.png" );
updatePorts();
setPortName("NOT");
}
Not::~Not() {
}
void Not::updateLogic() {
char res = ! inputs().first()->value();
if(!isValid()) {
res = -1;
}
outputs()... | #include "not.h"
Not::Not(QGraphicsItem *parent) : UnitOperation(1,1,1,1,parent) {
setOutputsOnTop(true);
setPixmap( ":/basic/not.png" );
updatePorts();
setPortName("NOT");
}
Not::~Not() {
}
void Not::updateLogic() {
char res = ! inputs().first()->value();
if(!isValid()) {
res = -1;
}
outputs().... | Update not.cpp | Update not.cpp | C++ | bsd-2-clause | sanjivch/dyncm,sanjivch/dyncm,sanjivch/dyncm |
cb1c5262710103d4c8702a463e7076410d035b30 | src/ofApp.cpp | src/ofApp.cpp | #include "ofApp.h"
void nebulaEye::setup()
{
sender.setup(OSC_IP, OSC_PORT);
video.setup();
flow.setup();
bgSub.setup();
contour.setup();
zone.setup();
displayGuiGrp.setName("display");
displayGuiGrp.add(showGui.set("show this menu",true));
displayGuiGrp.add(showVideo.set("show video",true));
disp... | #include "ofApp.h"
void nebulaEye::setup()
{
sender.setup(OSC_IP, OSC_PORT);
video.setup();
flow.setup();
bgSub.setup();
contour.setup();
zone.setup();
displayGuiGrp.setName("display");
displayGuiGrp.add(showGui.set("show this menu",true));
displayGuiGrp.add(showVideo.set("show video",true));
disp... | fix flow writing in csv | fix flow writing in csv
| C++ | mit | avilleret/nebula-eye |
c41b57e23bcb48f1edba1cce7491c9ecf0b9b4a0 | Parallel/vtkPRandomGraphSource.cxx | Parallel/vtkPRandomGraphSource.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPRandomGraphSource.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPRandomGraphSource.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | Use LazyAddEdge rather than AddEdge to add the random edges to the graph, which provides a huge performance Boost for large graphs. | PERF: Use LazyAddEdge rather than AddEdge to add the random edges to the
graph, which provides a huge performance Boost for large graphs.
| C++ | bsd-3-clause | spthaolt/VTK,msmolens/VTK,hendradarwin/VTK,SimVascular/VTK,berendkleinhaneveld/VTK,cjh1/VTK,spthaolt/VTK,aashish24/VTK-old,spthaolt/VTK,sumedhasingla/VTK,gram526/VTK,gram526/VTK,jmerkow/VTK,SimVascular/VTK,cjh1/VTK,daviddoria/PointGraphsPhase1,biddisco/VTK,sankhesh/VTK,jmerkow/VTK,demarle/VTK,naucoin/VTKSlicerWidgets,a... |
c8c749784853f912e4bf50405af74a13c1862a5f | mix_lib/source/computer.cpp | mix_lib/source/computer.cpp | #include <mix/computer.h>
#include <mix/command_processor.h>
#include <mix/computer_listener.h>
#include "internal/helpers.hpp"
using namespace mix;
Computer::Computer(IComputerListener* listener /*= nullptr*/)
: ra_{}
, rx_{}
, rindexes_{}
, rj_{}
, rip_{}
, comparison_state_{ComparisonIndicator... | #include <mix/computer.h>
#include <mix/command_processor.h>
#include <mix/computer_listener.h>
#include "internal/helpers.hpp"
using namespace mix;
Computer::Computer(IComputerListener* listener /*= nullptr*/)
: ra_{}
, rx_{}
, rindexes_{}
, rj_{}
, rip_{}
, comparison_state_{ComparisonIndicator... | Fix order of member initialization in Computer | Fix order of member initialization in Computer
| C++ | mit | grishavanika/mix,grishavanika/mix,grishavanika/mix |
b3b59529a94410502bb063978c1ecfdfed470844 | src/queue.hpp | src/queue.hpp | #ifndef queue_hpp
#define queue_hpp
#include "util.hpp"
/* FIFO
*/
template<class T>
class Queue{
public:
Queue(){
size = 0;
start = nullptr;
end = nullptr;
}
~Queue(){
clear();
}
void clear(){
while (!isEmpty()) {
Node<T> * tempStart = sta... | #ifndef queue_hpp
#define queue_hpp
#include "util.hpp"
#include <deque>
/* FIFO */
template<class T>
class Queue{
public:
Queue() {
}
~Queue(){
clear();
}
void clear(){
Q.clear();
}
bool isEmpty(){
return Q.empty();
}
int getSize(){
return Q.siz... | Use deque<T> in standard library | Use deque<T> in standard library
TODO: Use deque or queue everywhere and remove queue.hpp
| C++ | mit | Inndy/libabc |
d699bfbf106bc5052fddc2c9e00fe776a1cb1ba7 | src/ray/id.cc | src/ray/id.cc | #include "ray/id.h"
#include <limits.h>
#include <random>
#include "ray/constants.h"
#include "ray/status.h"
namespace ray {
UniqueID::UniqueID(const plasma::UniqueID &from) {
std::memcpy(&id_, from.data(), kUniqueIDSize);
}
UniqueID UniqueID::from_random() {
UniqueID id;
uint8_t *data = id.mutable_data();
... | #include "ray/id.h"
#include <limits.h>
#include <random>
#include "ray/constants.h"
#include "ray/status.h"
namespace ray {
UniqueID::UniqueID(const plasma::UniqueID &from) {
std::memcpy(&id_, from.data(), kUniqueIDSize);
}
UniqueID UniqueID::from_random() {
UniqueID id;
uint8_t *data = id.mutable_data();
... | Use hashing function that takes into account all UniqueID bytes (#2174) | Use hashing function that takes into account all UniqueID bytes (#2174)
| C++ | apache-2.0 | atumanov/ray,robertnishihara/ray,pcmoritz/ray-1,stephanie-wang/ray,ujvl/ray-ng,pcmoritz/ray-1,richardliaw/ray,pcmoritz/ray-1,ray-project/ray,ray-project/ray,stephanie-wang/ray,richardliaw/ray,richardliaw/ray,richardliaw/ray,stephanie-wang/ray,pcmoritz/ray-1,ray-project/ray,ray-project/ray,atumanov/ray,stephanie-wang/ra... |
9eec0f2d185bff5c3cd0ffbd5b9c17a55c387a33 | libDySySim/SimBlock.cpp | libDySySim/SimBlock.cpp | #include "SimBlock.h"
#include <iostream>
double dysysim::SimTime::delta_t = 1;
double dysysim::SimTime::t = 0;
std::map<int, dysysim::SimBlock *> dysysim::SimBlock::allSimBlocks_s;
bool dysysim::SimBlock::idIsUnique(int id)
{
if (allSimBlocks_s.find(id) == end(allSimBlocks_s)) {
return true;
}
std::c... | #include "SimBlock.h"
#include <iostream>
double dysysim::SimTime::delta_t = 1;
double dysysim::SimTime::t = 0;
std::map<int, dysysim::SimBlock *> dysysim::SimBlock::allSimBlocks_s;
bool dysysim::SimBlock::idIsUnique(int id)
{
if (allSimBlocks_s.find(id) == end(allSimBlocks_s)) {
return true;
}
std::c... | Solve typo | Solve typo
| C++ | mit | josokw/Fuzzy,josokw/Fuzzy,josokw/Fuzzy |
2be7a31c3c4719da3d6e77849c7957399d78d556 | libcaf_core/caf/all.hpp | libcaf_core/caf/all.hpp | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Update includes in all.hpp | Update includes in all.hpp
| C++ | bsd-3-clause | actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework |
a0aedac69b3c8e2c3bb065b7cb0ed38d6b1f50f5 | libcaf_net/src/host.cpp | libcaf_net/src/host.cpp | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Fix build on Windows | Fix build on Windows
| C++ | bsd-3-clause | actor-framework/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework |
495213e040b7b34254c57971f8833a0069084604 | python/fixfmt/functions.cc | python/fixfmt/functions.cc | #include <cassert>
#include <cmath>
#include <string>
#include "fixfmt/text.hh"
#include "py.hh"
using namespace py;
using std::string;
//------------------------------------------------------------------------------
// FIXME: Add docstrings.
namespace {
template<typename TYPE>
ref<Object> analyze_float(Module* m... | #include <cassert>
#include <cmath>
#include <limits>
#include <string>
#include "fixfmt/text.hh"
#include "py.hh"
using namespace py;
using std::string;
//------------------------------------------------------------------------------
// FIXME: Add docstrings.
namespace {
template<typename TYPE>
ref<Object> analy... | Add missing include. | Add missing include.
| C++ | apache-2.0 | alexhsamuel/fixfmt,alexhsamuel/fixfmt |
343165b1dc9188b0d591682b2a1ad23651b96cab | src/types.cpp | src/types.cpp | #include <iostream>
#include <algorithm>
#include "types.h"
namespace bpftrace {
std::ostream &operator<<(std::ostream &os, Type type)
{
os << typestr(type);
return os;
}
std::ostream &operator<<(std::ostream &os, const SizedType &type)
{
if (type.type == Type::cast)
{
os << type.cast_type;
}
else i... | #include <iostream>
#include <algorithm>
#include "types.h"
namespace bpftrace {
std::ostream &operator<<(std::ostream &os, Type type)
{
os << typestr(type);
return os;
}
std::ostream &operator<<(std::ostream &os, const SizedType &type)
{
if (type.type == Type::cast)
{
os << type.cast_type;
}
else i... | Add missing ProbeType::watchpoint to probetypeName function | Add missing ProbeType::watchpoint to probetypeName function
I'll call it in next change and it would fail on watchpoint.
Signed-off-by: Jiri Olsa <2c6594f608aa3d41e98d48846a6328831f7084ad@kernel.org>
| C++ | apache-2.0 | iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace |
ace2378e5eeb7af394a07f9bfca4acd14789d776 | src/world.cpp | src/world.cpp | /******************************
** Tsunagari Tile Engine **
** world.cpp **
** Copyright 2011 OmegaSDG **
******************************/
#include <Gosu/Utility.hpp>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "area.h"
#include "entity.h"
#include "log.h"
#include "resourcer.h"
... | /******************************
** Tsunagari Tile Engine **
** world.cpp **
** Copyright 2011 OmegaSDG **
******************************/
#include <Gosu/Utility.hpp>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "area.h"
#include "entity.h"
#include "log.h"
#include "resourcer.h"
... | remove free of shared_ptr | remove free of shared_ptr
| C++ | mit | pariahsoft/TsunagariC,pariahsoft/Tsunagari,pariahsoft/TsunagariC,pariahsoft/Tsunagari,pariahsoft/TsunagariC,pmer/TsunagariC,pmer/TsunagariC,pariahsoft/Tsunagari,pariahsoft/Tsunagari,pmer/TsunagariC |
2a49d598998386086b0f542fae378fe91bd1904a | chrome/browser/ui/zoom/zoom_controller.cc | chrome/browser/ui/zoom/zoom_controller.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/zoom/zoom_controller.h"
#include "chrome/browser/ui/sad_tab.h"
#include "chrome/browser/ui/zoom/zoom_event_manager.h"
#in... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/zoom/zoom_controller.h"
#include "chrome/browser/ui/sad_tab.h"
#include "chrome/browser/ui/zoom/zoom_event_manager.h"
#in... | Fix ZoomController crash on kiosk launching. | Fix ZoomController crash on kiosk launching.
BUG=418214
Review URL: https://codereview.chromium.org/609983002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#297094}
| C++ | bsd-3-clause | Fireblend/chromium-crosswalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,markYoungH/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,dednal/chromium.src,dednal/chromium.src,Jonekee/chromium.src,moham... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.