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 |
|---|---|---|---|---|---|---|---|---|---|
c4f73058fb142859cd59af14d5a4a8ebf7f9b165 | Modules/Filtering/DistanceMap/test/itkFastChamferDistanceImageFilterTest.cxx | Modules/Filtering/DistanceMap/test/itkFastChamferDistanceImageFilterTest.cxx | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | Fix warning C4789 from VisualStudio 11 | COMP: Fix warning C4789 from VisualStudio 11
The warning is:
itkfastchamferdistanceimagefiltertest.cxx(189): warning C4789: buffer 'inweights' of size 4 bytes will be overrun; 4 bytes will be written starting at offset 4
Change-Id: I60d072d8e204c896b291699723f0830fd03d8c57
| C++ | apache-2.0 | stnava/ITK,LucHermitte/ITK,hjmjohnson/ITK,blowekamp/ITK,jmerkow/ITK,malaterre/ITK,spinicist/ITK,jmerkow/ITK,fedral/ITK,PlutoniumHeart/ITK,fedral/ITK,biotrump/ITK,atsnyder/ITK,atsnyder/ITK,msmolens/ITK,BlueBrain/ITK,vfonov/ITK,blowekamp/ITK,ajjl/ITK,hendradarwin/ITK,BRAINSia/ITK,zachary-williamson/ITK,jmerkow/ITK,heimda... |
a3902f735fe8d8ead14a6971d4c47fe1f83e2478 | cpp/tests/unit-tests/mqtt/MqttMessagingSkeletonTest.cpp | cpp/tests/unit-tests/mqtt/MqttMessagingSkeletonTest.cpp | /*
* #%L
* %%
* Copyright (C) 2011 - 2016 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | /*
* #%L
* %%
* Copyright (C) 2011 - 2016 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | remove Variant usage in MqttMessagingSkeletonTest | [c++] remove Variant usage in MqttMessagingSkeletonTest
Change-Id: If592fe982d5d7389df712162d60adf9a86276b44
| C++ | apache-2.0 | bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,clive-jevons/joynr,clive-jevons/joynr,bmwcarit/joynr,bmwcarit/joynr,clive-jevons/joynr,bmwcarit/joynr,clive-jevons/joynr,clive-jevons/joynr,bmwcarit/joynr,clive-jevons/joynr |
60a12c2eac93d968e504ffc323c2678ca1d70564 | cpp/src/grids/protocol.cpp | cpp/src/grids/protocol.cpp | #include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_thread.h>
#include <SDL_net.h>
#include <json/writer.h>
#include <json/reader.h>
#include <json/value.h>
#include <grids/define.h>
#include <grids/protocol.h>
namespace Grids {
void Protocol::setEventCallback(gevent_callback_t cb, void *userData) { eventC... | #include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_thread.h>
#include <SDL_net.h>
#include <json/writer.h>
#include <json/reader.h>
#include <json/value.h>
#include <grids/define.h>
#include <grids/protocol.h>
namespace Grids {
void Protocol::setEventCallback(gevent_callback_t cb, void *userData) { eventC... | fix some protocol.cpp stuff, including getting the current threadid in a safer fashion and polling for socket data more correctly | fix some protocol.cpp stuff, including getting the current threadid in a safer fashion and polling for socket data more correctly
| C++ | bsd-3-clause | revmischa/grids,revmischa/grids |
0daedb772be0be8e86ea2639ab33893b3f6db679 | thrust/system/cuda/detail/memory.inl | thrust/system/cuda/detail/memory.inl | /*
* Copyright 2008-2011 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | /*
* Copyright 2008-2011 NVIDIA Corporation
*
* 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... | Add missing implementations of cuda::malloc & cuda::free. | Add missing implementations of cuda::malloc & cuda::free.
| C++ | apache-2.0 | rdmenezes/thrust,bfurtaw/thrust,levendlee/thrust,rdmenezes/thrust,h1arshad/thrust,julianromera/thrust,Vishwa07/thrust,malenie/thrust,hemmingway/thrust,allendaicool/thrust,h1arshad/thrust,lishi0927/thrust,bfurtaw/thrust,julianromera/thrust,levendlee/thrust,google-code-export/thrust,bfurtaw/thrust,allendaicool/thrust,rdm... |
9a4bdd734b215dab03e0385f4c6fb5409651e41e | case_studies/remote_push.hpp | case_studies/remote_push.hpp | // Copyright (c) 2014-2016 Michael J. Sullivan
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
#ifndef REMOTE_PUSH
#define REMOTE_PUSH
#include <atomic>
#include <cstdio>
#include <unistd.h>
#define REMOTE_PUSH_MPROTECT 0
#ifdef REMOTE_PUSH_MPROTECT
#include ... | // Copyright (c) 2014-2016 Michael J. Sullivan
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
#ifndef REMOTE_PUSH
#define REMOTE_PUSH
#include <atomic>
#include <cstdio>
#include <unistd.h>
#define REMOTE_PUSH_MPROTECT 0
#if REMOTE_PUSH_MPROTECT
#include <sy... | Fix total bustage in remote_push. | Fix total bustage in remote_push.
Two really stupid problems in remote_push:
1) I'm an idiot and you definitely can't use #ifdef to test a macro
that you disable by setting to zero.
2) clang is an idiot and emits a dmb for atomic_signal_fence even
though not emitting a dmb is literally the entire point of
ato... | C++ | mit | msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler |
ba33cdfc11d88afb4c2cad5862931e488ca4d365 | compiler/ipe/ipeDriver.cpp | compiler/ipe/ipeDriver.cpp | /*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtain a copy of the License at
*
*... | /*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtain a copy of the License at
*
*... | Update driver for new pass | Update driver for new pass
| C++ | apache-2.0 | hildeth/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCart... |
7e706eb266b834e6ff64e3029dd1ae6ff9f8a73c | hardware/msp430/cores/msp430/WMath.cpp | hardware/msp430/cores/msp430/WMath.cpp | /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Wiring project - http://wiring.org.co
Copyright (c) 2004-06 Hernando Barragan
Modified 13 August 2006, David A. Mellis for Arduino - http://www.arduino.cc/
This library is free software; you can redistribute it and/or
modify ... | /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Wiring project - http://wiring.org.co
Copyright (c) 2004-06 Hernando Barragan
Modified 13 August 2006, David A. Mellis for Arduino - http://www.arduino.cc/
This library is free software; you can redistribute it and/or
modify ... | Add random() and randomSeed() Use local random.c until msp430-libc supports random() and srandom() | Add random() and randomSeed()
Use local random.c until msp430-libc supports random() and srandom()
| C++ | lgpl-2.1 | i--storm/Energia,dvdvideo1234/Energia,DavidUser/Energia,meanbot/Energia,cevatbostancioglu/Energia,i--storm/Energia,croberts15/Energia,jadonk/Energia,danielohh/Energia,croberts15/Energia,croberts15/Energia,pasky/Energia,brianonn/Energia,qtonthat/Energia,dvdvideo1234/Energia,qtonthat/Energia,pasky/Energia,NoPinky/Energia... |
7e290fb96530bd14c4fb6f9f40eb692af5e2e21c | test/benchmark_test.cc | test/benchmark_test.cc | #include "benchmark/benchmark.h"
#include <assert.h>
#include <math.h>
#include <stdint.h>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <mutex>
#include <set>
#include <sstream>
#include <string>
#include <vector>
namespace {
int ATTRIBUTE_NOINLINE Factorial(uint32_t n) {
return (... | #include "benchmark/benchmark.h"
#include <assert.h>
#include <math.h>
#include <stdint.h>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <mutex>
#include <set>
#include <sstream>
#include <string>
#include <vector>
namespace {
#ifdef DEBUG
int ATTRIBUTE_NOINLINE Factorial(uint32_t n)... | Fix release builds | Fix release builds
| C++ | apache-2.0 | everbase/benchmark,LepelTsmok/benchmark,everbase/benchmark,everbase/benchmark,google/benchmark,efcs/benchmark,nickhutchinson/benchmark-cxx03,chemhack/benchmark,chandlerc/benchmark,nickhutchinson/benchmark,chemhack/benchmark,disconnect3d/benchmark,bowlofstew/benchmark,gezidan/benchmark,nickhutchinson/benchmark,ntx-/benc... |
0909ffc26ee1b616ae2ee9ed44aed64243433f33 | test/liblll/Parser.cpp | test/liblll/Parser.cpp | /*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed ... | /*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed ... | Fix the expectation about the parse | Fix the expectation about the parse
| C++ | mit | ruchevits/solidity,ruchevits/solidity,ruchevits/solidity,ruchevits/solidity |
63d16531603f9baa35a177a81cbfb111580ffebb | include/mapnik/grid_vertex_adapter.hpp | include/mapnik/grid_vertex_adapter.hpp | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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) 2015 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... | fix colliding names | fix colliding names
| C++ | lgpl-2.1 | mapycz/mapnik,mapycz/mapnik,mapycz/mapnik |
9325cfed9ecfbe19ceee54f59664a9b115f758c5 | includes/reflex/reflectable/macros.hpp | includes/reflex/reflectable/macros.hpp | #pragma once
#include "reflex/reflectable/reflectable.hpp"
//! convert value to string
#define __REFLEX_TO_STRING(val) #val
//! macro "overloading" (up to 3 args)
#define __REFLEX_GET_MACRO_3(_1, _2, _3, NAME, ...) NAME
//! macro "overloading" (up to 2 args)
#define __REFLEX_GET_MACRO_2(_1, _2, NAME, ...) NAME
//... | #pragma once
#include "reflex/reflectable/reflectable.hpp"
//! convert value to string
#define __REFLEX_TO_STRING(val) #val
//! macro "overloading" (up to 3 args)
#define __REFLEX_GET_MACRO_3(_1, _2, _3, NAME, ...) NAME
//! macro "overloading" (up to 2 args)
#define __REFLEX_GET_MACRO_2(_1, _2, NAME, ...) NAME
//... | remove extra space in macro.h | remove extra space in macro.h
| C++ | mit | Cylix/Reflex,Cylix/Reflex |
50f327073b49a83f0cf54b8d7f0f4363239b6559 | test/test_Exporter.cpp | test/test_Exporter.cpp | #include <sstream>
#include "gtest/gtest.h"
#include "../src/Exporter.hpp"
#include "../src/Assembler.hpp"
TEST(ExporterTest, exportCOETest) {
std::vector<std::string> instLiteral = {
"start:",
" add $t0, $zero, $zero",
" addi $t0, $t0, 15",
"loop: add $t1, $t0... | #include <sstream>
#include "gtest/gtest.h"
#include "../src/Exporter.hpp"
#include "../src/Assembler.hpp"
class ExporterTest: public ::testing::Test {
protected:
ExporterTest() {
std::vector<std::string> instLiteral = {
"start:",
" add $t0, $zero, $zero",
" ... | Add Exporter test fixture | Add Exporter test fixture
| C++ | mit | MForever78/CamelusMips |
de8e005f0415e2e3654d80a02cd9292b08cc3d41 | thrift/lib/cpp2/test/StreamingTest.cpp | thrift/lib/cpp2/test/StreamingTest.cpp | /*
* Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | remove stray doubled "//" in #include path | thrift/lib/cpp2/test/StreamingTest.cpp: remove stray doubled "//" in #include path
Summary: as above.
Reviewed By: yfeldblum
Differential Revision: D3021516
fb-gh-sync-id: 38a43eb0f9233dd6b5cc54b87ffe67f7606f6f8e
shipit-source-id: 38a43eb0f9233dd6b5cc54b87ffe67f7606f6f8e
| C++ | apache-2.0 | facebook/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,LinusU/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,facebook/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,facebook/fbthrift,Lin... |
bfbe1af8cadd2f8ce76f192fb4486c9cf7968ba4 | Modules/System/Src/tMachine.cpp | Modules/System/Src/tMachine.cpp | // tMachine.cpp
//
// Hardware ans OS access functions like querying supported instruction sets, number or cores, and computer name/ip
// accessors.
//
// Copyright (c) 2004-2006, 2017, 2019, 2020 Tristan Grimmer.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is... | // tMachine.cpp
//
// Hardware ans OS access functions like querying supported instruction sets, number or cores, and computer name/ip
// accessors.
//
// Copyright (c) 2004-2006, 2017, 2019, 2020 Tristan Grimmer.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is... | Include cstdlib for win build. | Include cstdlib for win build.
| C++ | isc | bluescan/tacent |
67d6a421e8095d67bdb165fabd2ec117811a2d85 | Multi-layer_Perceptron/main.cpp | Multi-layer_Perceptron/main.cpp | #include <omp.h>
#include <stdio.h>
#include <time.h>
#include "MLP.h"
void Read_MNIST(char training_set_images[], char training_set_labels[], char test_set_images[], char test_set_labels[], int number_training, int number_test, double **input, double **target_output){
FILE *file;
if(file = fopen(training... | #include <omp.h>
#include <stdio.h>
#include <time.h>
#include "MLP.h"
void Read_MNIST(char training_set_images[], char training_set_labels[], char test_set_images[], char test_set_labels[], int number_training, int number_test, double **input, double **target_output){
FILE *file;
if(file = fopen(training... | Update main.cpp | Update main.cpp | C++ | mit | paperrune/Neural-Networks,paperrune/Neural-Networks |
9d8056574968a47692a83d4ac20f3893a18a295c | OgreMain/src/OgreSerializer.cpp | OgreMain/src/OgreSerializer.cpp | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | Fix build on MinGW. | [OGRE-350] Fix build on MinGW.
| C++ | mit | OGRECave/ogre,RealityFactory/ogre,paroj/ogre,RealityFactory/ogre,OGRECave/ogre,paroj/ogre,paroj/ogre,RealityFactory/ogre,RealityFactory/ogre,paroj/ogre,OGRECave/ogre,OGRECave/ogre,RealityFactory/ogre,OGRECave/ogre,paroj/ogre |
e7473a5db5b4def4ceb6f07d0275c6734da8149e | PWG/EMCAL/AliEmcalSetupTask.cxx | PWG/EMCAL/AliEmcalSetupTask.cxx | // $Id$
//
// Task to setup emcal related global objects.
//
// Author: C.Loizides
#include "AliEmcalSetupTask.h"
#include <TClonesArray.h>
#include <TGeoGlobalMagField.h>
#include <TGeoManager.h>
#include <TRandom.h>
#include "AliAODEvent.h"
#include "AliAnalysisManager.h"
#include "AliCDBManager.h"
#include "AliEMCA... | // $Id$
//
// Task to setup emcal related global objects.
//
// Author: C.Loizides
#include "AliEmcalSetupTask.h"
#include <TClonesArray.h>
#include <TGeoGlobalMagField.h>
#include <TGeoManager.h>
#include <TRandom.h>
#include "AliAODEvent.h"
#include "AliAnalysisManager.h"
#include "AliCDBManager.h"
#include "AliEMCA... | Set EMCAL+DCAL geometry for 2015 | Set EMCAL+DCAL geometry for 2015
| C++ | bsd-3-clause | amatyja/AliPhysics,ppribeli/AliPhysics,rderradi/AliPhysics,adriansev/AliPhysics,kreisl/AliPhysics,btrzecia/AliPhysics,SHornung1/AliPhysics,lfeldkam/AliPhysics,rbailhac/AliPhysics,dmuhlhei/AliPhysics,carstooon/AliPhysics,mazimm/AliPhysics,dstocco/AliPhysics,pbatzing/AliPhysics,aaniin/AliPhysics,fcolamar/AliPhysics,aanii... |
d29394c1860fbdf8089508b8c822c310d88fdb41 | PWGPP/TRD/macros/makeTrending.C | PWGPP/TRD/macros/makeTrending.C | void makeTrending(const Char_t *fl, const Char_t *db = "$ALICE_ROOT/PWGPP/TRD/data/TRD.Trend.root", Bool_t relative=kFALSE)
{
gSystem->Load("libANALYSIS.so");
gSystem->Load("libANALYSISalice.so");
gSystem->Load("libTENDER.so");
gSystem->Load("libCORRFW.so");
gSystem->Load("libPWGPP.so");
gSystem->Load("libP... | void makeTrending(const Char_t *fl, Bool_t relative=kFALSE, const Char_t *db = "$ALICE_ROOT/PWGPP/TRD/data/TRD.Trend.root")
{
gSystem->Load("libANALYSIS.so");
gSystem->Load("libANALYSISalice.so");
gSystem->Load("libTENDER.so");
gSystem->Load("libCORRFW.so");
gSystem->Load("libPWGPP.so");
gSystem->Load("libP... | rearrange the order of input parameters | rearrange the order of input parameters
| C++ | bsd-3-clause | fbellini/AliPhysics,kreisl/AliPhysics,alisw/AliPhysics,rderradi/AliPhysics,mazimm/AliPhysics,btrzecia/AliPhysics,SHornung1/AliPhysics,SHornung1/AliPhysics,dmuhlhei/AliPhysics,yowatana/AliPhysics,mkrzewic/AliPhysics,AudreyFrancisco/AliPhysics,aaniin/AliPhysics,jgronefe/AliPhysics,nschmidtALICE/AliPhysics,pbatzing/AliPhy... |
8d9550d471d69a548b8adfb1c8c04b370bd18bf6 | python/stromx/imgutil/Image.cpp | python/stromx/imgutil/Image.cpp | /*
* Copyright 2011 Matthias Fuchs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2011 Matthias Fuchs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Fix file access enum in Python wrapper | Fix file access enum in Python wrapper
| C++ | apache-2.0 | sparsebase/stromx,sparsebase/stromx,uboot/stromx,uboot/stromx |
c9e14758bdb0ad65741afac57bbe7f9f82e9967f | dune/stuff/grid/periodicview.hh | dune/stuff/grid/periodicview.hh | // This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff/
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Tobias Leibner
#ifndef DUNE_STUFF_GRID_PERIODICVIEW_HH
#define DUNE_STUFF_G... | // This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff/
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Tobias Leibner
#ifndef DUNE_STUFF_GRID_PERIODICVIEW_HH
#define DUNE_STUFF_G... | fix errors, add bitset to choose periodic directions | [grid.periodicview] fix errors, add bitset to choose periodic directions
| C++ | bsd-2-clause | renemilk/DUNE-Stuff,renemilk/DUNE-Stuff,renemilk/DUNE-Stuff |
8a95a056f54164e19a90718ca4126611f2c0213c | api/java/jni/androidvideocapturer_jni.cc | api/java/jni/androidvideocapturer_jni.cc | /*
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | /*
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | Handle Android stop capturer race. | Handle Android stop capturer race.
With the current order of stop capture processing on Android,
OnMemoryBufferFrame and OnTextureFrame may be called halfway through
Stop(). They must therefore check for the case of a null capturer_.
There used to be such checks, but they were accidantally removed in
commit #12895, c... | C++ | bsd-3-clause | jchavanton/webrtc,jchavanton/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,jchavanton/webrtc,Alkalyne/webrtctrunk,jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk |
639916df705fe1cd818fbf7b44826c247510d86a | rcl/test/rcl/test_publisher.cpp | rcl/test/rcl/test_publisher.cpp | // Copyright 2015 Open Source Robotics Foundation, Inc.
//
// 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 appli... | // Copyright 2015 Open Source Robotics Foundation, Inc.
//
// 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 appli... | Add regression test for connext 'wrong type writer' error (#257) | Add regression test for connext 'wrong type writer' error (#257)
* Add regression test for connext 'wrong type writer' error
* Use osrf_testing_tools_cpp
| C++ | apache-2.0 | ros2/rcl,ros2/rcl |
41b585ca0e706a6d43ca185e88a609178e8629e7 | lib/Target/Sparc/SparcISelDAGToDAG.cpp | lib/Target/Sparc/SparcISelDAGToDAG.cpp | //===-- SparcISelDAGToDAG.cpp - A dag to dag inst selector for Sparc ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- SparcISelDAGToDAG.cpp - A dag to dag inst selector for Sparc ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use the correct types when matching ADDRri patterns from frame indexes. | Use the correct types when matching ADDRri patterns from frame indexes.
It doesn't seem like anybody is checking types this late in isel, so no
test case.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@179462 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-2-clause | chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift... |
f409f8134fa7222bc56f50a96cd541bb76ce75e9 | dalvikvm/dalvikvm.cc | dalvikvm/dalvikvm.cc | /*
* copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Add explicit dependency on algorithm | Add explicit dependency on algorithm
Change-Id: I3edb34b3c3a1e89a195db18ad8e6a71bc7b4a570
| C++ | apache-2.0 | treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst |
1552b1dd1586212c48d268e03f2ab99afb62cf74 | Week1/Prime-Factorization/primeFactorization.cpp | Week1/Prime-Factorization/primeFactorization.cpp | #include <cstdlib>
#include <iostream>
#include <algorithm>
#include <vector> // STL
#include <bitset> // STL
using namespace std;
vector<int> primes;
void sieve(int size) {
bitset<10000010> was;
was.set();
was[0] = was[1] = 0;
for (int i = 2; i <= size; i++)
if (was[i]) {
primes.push_back(i);
... | #include <cstdlib>
#include <iostream>
#include <algorithm>
#include <vector> // STL
#include <bitset> // STL
using namespace std;
vector<int> primes;
void sieve(int size) {
bitset<10000010> was;
was.set();
was[0] = was[1] = 0;
for (int i = 2; i <= size; i++)
if (was[i]) {
primes.push_back(i);
... | Update primeFactorization.cpp | Update primeFactorization.cpp | C++ | mit | NAU-ACM/ACM-ICPC-Preparation,NAU-ACM/ACM-ICPC-Preparation |
a472b2d26b6bf12f162d05827357cb3de4ba8e6c | modules/base/tests/unittests/volumevoronoi-test.cpp | modules/base/tests/unittests/volumevoronoi-test.cpp | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | Test for when throwing exceptions | Test for when throwing exceptions
| C++ | bsd-2-clause | inviwo/inviwo,inviwo/inviwo,inviwo/inviwo,inviwo/inviwo,inviwo/inviwo,inviwo/inviwo |
e53bd0aab2f7e011a84149d5b12d0ae010033879 | pin/pin_sim.cc | pin/pin_sim.cc | // Jonathan Eastep, Harshad Kasture, Jason Miller, Chris Celio, Charles Gruenwald,
// Nathan Beckmann, David Wentzlaff, James Psota
// 10.12.08
//
// Carbon Computer Simulator
//
// This simulator models future multi-core computers with thousands of cores.
// It runs on today's x86 multicores and will scale as more and... | // Jonathan Eastep, Harshad Kasture, Jason Miller, Chris Celio, Charles Gruenwald,
// Nathan Beckmann, David Wentzlaff, James Psota
// 10.12.08
//
// Carbon Computer Simulator
//
// This simulator models future multi-core computers with thousands of cores.
// It runs on today's x86 multicores and will scale as more and... | Remove old code for disabling perf model at start-up. Was interfering with new method and causing bugs. | [perf] Remove old code for disabling perf model at start-up. Was interfering with new method and causing bugs.
| C++ | mit | 8l/Graphite,nkawahara/Graphite,fhijaz/Graphite,mit-carbon/Graphite,victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,nkawahara/Graphite,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite-Cycle-Level,victorisildur/Graphite,8l/Graphite,victorisildur/Graphite,8l/Graphite,nkawahara/Graphite,fhijaz/Graphite,mit-carbon... |
dc20f9e56b60926f66fa3146561a2b2b1cd275a9 | tests/bits/gerold_1.cc | tests/bits/gerold_1.cc | //---------------------------- gerold_1.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2002, 2003, 2004 by the deal.II authors and Anna Schneebeli
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// ... | //---------------------------- gerold_1.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2002, 2003, 2004 by the deal.II authors and Anna Schneebeli
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// ... | Remove obsolete ; | Remove obsolete ;
git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@8788 0785d39b-7218-0410-832d-ea1e28bc413d
| C++ | lgpl-2.1 | spco/dealii,andreamola/dealii,JaeryunYim/dealii,rrgrove6/dealii,flow123d/dealii,andreamola/dealii,ESeNonFossiIo/dealii,adamkosik/dealii,ESeNonFossiIo/dealii,danshapero/dealii,sairajat/dealii,rrgrove6/dealii,naliboff/dealii,ibkim11/dealii,ibkim11/dealii,andreamola/dealii,shakirbsm/dealii,sairajat/dealii,pesser/dealii,na... |
5ab4514fecd4a271015e339169114054974d025d | tests/common_tests.cpp | tests/common_tests.cpp | //
// Created by thuanqin on 16/5/13.
//
#include "gtest/gtest.h"
#include <fstream>
#include <iostream>
#include <string>
#include "common/config.h"
const std::string config_file_name = "controller.cfg";
void generate_test_config_file() {
std::ofstream out;
out.open(config_file_name, std::ios::out);
if ... | //
// Created by thuanqin on 16/5/13.
//
#include "gtest/gtest.h"
#include <fstream>
#include <iostream>
#include <string>
#include "common/config.h"
const std::string config_file_name = "controller.cfg";
void generate_test_config_file() {
std::ofstream out;
out.open(config_file_name, std::ios::out);
if ... | use constant var | use constant var
| C++ | apache-2.0 | QthCN/opsguide_ogp |
ca0dfa0e6046ddd71bd57b72b857c5fad63efd00 | Code/Common/mvdImageViewManipulator.cxx | Code/Common/mvdImageViewManipulator.cxx | /*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licence_CeCILL_V2-en.... | /*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licence_CeCILL_V2-en.... | print indicies as integer | ENH: print indicies as integer
| C++ | apache-2.0 | orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB |
1959b81d34c92a2615c47a19051cd7c04def5ad5 | experimental/Pomdog.Experimental/Rendering/Renderer.hpp | experimental/Pomdog.Experimental/Rendering/Renderer.hpp | // Copyright (c) 2013-2017 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Graphics/detail/ForwardDeclarations.hpp"
#include "Pomdog/Math/Matrix4x4.hpp"
#include <memory>
namespace Pomdog {
class RenderCommand;
class RenderCommandProcessor;
class Renderer final {
public:
explicit Ren... | // Copyright (c) 2013-2017 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Graphics/detail/ForwardDeclarations.hpp"
#include "Pomdog/Math/Matrix4x4.hpp"
#include <memory>
namespace Pomdog {
class RenderCommand;
class RenderCommandProcessor;
class Renderer final {
public:
explicit Ren... | Make a PIMPL member private | Make a PIMPL member private
| C++ | mit | mogemimi/pomdog,mogemimi/pomdog,mogemimi/pomdog |
f4352c470175ed41328c85e93e9b2b7f1de18c08 | plotwidget.cpp | plotwidget.cpp | #include "plotwidget.h"
#include <QPainter>
#include "mytablemodel.h"
#include <QtMath>
#include <QTimer>
PlotWidget::PlotWidget(MyTableModel *table, QWidget *parent)
:QWidget(parent)
,m_table(table)
,m_shift(0)
,m_angle(0.5)
,m_timer(new QTimer())
{
connect(m_timer, SIGNAL(timeout()),
... | #include "plotwidget.h"
#include <QPainter>
#include "mytablemodel.h"
#include <QtMath>
#include <QTimer>
PlotWidget::PlotWidget(MyTableModel *table, QWidget *parent)
:QWidget(parent)
,m_table(table)
,m_shift(0)
,m_angle(0.5)
,m_timer(new QTimer())
{
connect(m_timer, SIGNAL(timeout()),
... | Add spaces between pies | Add spaces between pies
| C++ | mit | bogdanov-d-a/TableEditor |
98e31a2daa8392516f1a9125dfcf8df22ade3f7c | JPetTaskLoader/JPetTaskLoader.cpp | JPetTaskLoader/JPetTaskLoader.cpp | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | Remove cout call from JPetTaskLoader | Remove cout call from JPetTaskLoader
Former-commit-id: fcdb31bd03555d9b2832e164e91da0c4f1a9bd7b | C++ | apache-2.0 | kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework |
e81c832146d24a21428eb30570d4fb536b25476c | windows/src/SearchResultPoi/View/SearchResultPoiView.cpp | windows/src/SearchResultPoi/View/SearchResultPoiView.cpp | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "SearchResultPoiController.h"
#include "SearchResultPoiView.h"
#include "WindowsAppThreadAssertionMacros.h"
#include "SearchResultModelCLI.h"
#include "ReflectionHelpers.h"
using namespace ExampleApp::Helpers::ReflectionHelpers;
using namespace System;... | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "SearchResultPoiController.h"
#include "SearchResultPoiView.h"
#include "WindowsAppThreadAssertionMacros.h"
#include "SearchResultModelCLI.h"
#include "ReflectionHelpers.h"
#include "SearchVendorNames.h"
using namespace ExampleApp::Helpers::ReflectionHe... | add additional assert for Tours views creation on Windows - not yet implemented. Buddy: Vimmy | add additional assert for Tours views creation on Windows - not yet implemented.
Buddy: Vimmy
| C++ | bsd-2-clause | eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/w... |
698e8a7ff6315b2bb885f58cbbd0e7eb9e01c4ca | dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp | dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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... | Call MakeContextCurrent in PreRender | Call MakeContextCurrent in PreRender
When creating multiple NativeRenderSurface,
Dali didn't render from second RenderSurface.
Change-Id: I536e831bfbd6d2e5a2a1cb7e31ec5a505c91ca22
| C++ | apache-2.0 | dalihub/dali-adaptor,dalihub/dali-adaptor,dalihub/dali-adaptor,dalihub/dali-adaptor,dalihub/dali-adaptor |
9d3ab9719cdabea9e2f8a577c683d9d35bfe0686 | chrome/browser/extensions/extension_startup_browsertest.cc | chrome/browser/extensions/extension_startup_browsertest.cc | // Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "chr... | // Copyright (c) 2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "chr... | Mark ExtensionsLoadTest.Test as flaky on Win/Mac | Mark ExtensionsLoadTest.Test as flaky on Win/Mac
BUG=46301
TEST=greener tree
TBR=jcivelli
Review URL: http://codereview.chromium.org/2727007
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@49472 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian13... |
ef25a6b6f3f387a119ab9261f37479fe415702d4 | examples/xorg-gtest-example.cpp | examples/xorg-gtest-example.cpp | #include <xorg/gtest/xorg-gtest.h>
using namespace xorg::testing;
/**
* @example xorg-gtest-example.cpp
*
* This is an example for using the fixture
* xorg::testing::Test for your own tests. Please
* make sure that you have the X.org dummy display
* driver installed on your system and that you execute
* the te... | #include <xorg/gtest/xorg-gtest.h>
using namespace xorg::testing;
/**
* @example xorg-gtest-example.cpp
*
* This is an example for using the fixture
* xorg::testing::Test for your own tests. Please
* make sure that you have the X.org dummy display
* driver installed on your system and that you execute
* the te... | fix compiler warning | examples: fix compiler warning
../gtest/include/gtest/gtest.h:18470:136: warning: comparison between signed
and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Peter Hutterer <b9c50af7afa7642f6f854434cda9ffe54ece8b85@who-t.net>
| C++ | mit | freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest,freedesktop-unofficial-mirror/xorg__test__xorg-gtest |
2a3f6884746f920c07a736a7239b1501165759ee | chainx/AccountManager.cpp | chainx/AccountManager.cpp | This file is part of chainx blockchain
cpp-chainx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-chainx is distributed in the hope ... | This file is part of chainx blockchain
cpp-chainx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-chainx is distributed in the hope ... | Update AccountManager.cpp | Update AccountManager.cpp | C++ | mit | SmartChainX/ChainBlockchain,SmartChainX/ChainBlockchain,SmartChainX/ChainBlockchain,SmartChainX/ChainBlockchain |
84676eab0ba67bd5608e5b3aac2ad3f324b12e52 | toml/region.hpp | toml/region.hpp | #ifndef TOML11_REGION_H
#define TOML11_REGION_H
#include "exception.hpp"
#include <memory>
#include <algorithm>
#include <iterator>
#include <iostream>
namespace toml
{
namespace detail
{
// helper function to avoid std::string(0, 'c')
template<typename Iterator>
std::string make_string(Iterator first, Iterator last)... | #ifndef TOML11_REGION_H
#define TOML11_REGION_H
#include "exception.hpp"
#include <memory>
#include <algorithm>
#include <initializer_list>
#include <iterator>
#include <iostream>
namespace toml
{
namespace detail
{
// helper function to avoid std::string(0, 'c')
template<typename Iterator>
std::string make_string(It... | improve quality of error message | improve quality of error message
| C++ | mit | ToruNiina/toml11 |
3e94c85c59558699812ef6d062bcca875f15ea01 | android/jni/main.cpp | android/jni/main.cpp | // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
#include <jni.h>
#include "AppRunner.h"
#include "main.h"
#include <android/native_window.h>
#include <android/native_window_jni.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <pthread.h>
using namespace Eegeo::Android;
usi... | // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
#include <jni.h>
#include "AppRunner.h"
#include "main.h"
#include <android/native_window.h>
#include <android/native_window_jni.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <pthread.h>
using namespace Eegeo::Android;
usi... | Remove checkin of dev api key. | Remove checkin of dev api key.
| C++ | bsd-2-clause | eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/w... |
d88ed32f702853b4ea9f9b5c09d420d1ea99093f | test/match_results.cpp | test/match_results.cpp | #include <gtest/gtest.h>
#include "pcre2++/pcre2pp.h"
TEST(MatchResults, basic)
{
pcre2::smatch m;
EXPECT_FALSE(m.ready());
EXPECT_TRUE(m.empty());
EXPECT_EQ(0, m.size());
EXPECT_EQ(m.begin(), m.end());
EXPECT_EQ(m.cbegin(), m.cend());
}
| #include <gtest/gtest.h>
#include <string>
#include "pcre2++/pcre2pp.h"
TEST(MatchResults, basic)
{
pcre2::smatch m;
EXPECT_FALSE(m.ready());
EXPECT_TRUE(m.empty());
EXPECT_EQ(0, m.size());
EXPECT_EQ(m.begin(), m.end());
EXPECT_EQ(m.cbegin(), m.cend());
}
/**
* @see http://pubs.opengroup.org... | Test cases | Test cases
| C++ | mit | sjinks/pcre2pp,sjinks/pcre2pp,sjinks/pcre2pp |
c9a881ecc6f304b586bf13f54a7cff7119b04070 | test/val/val_primitives_test.cpp | test/val/val_primitives_test.cpp | // Copyright (c) 2017 LunarG Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | // Copyright (c) 2017 LunarG Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | Make a string parameter const ref | Make a string parameter const ref
| C++ | apache-2.0 | pierremoreau/SPIRV-Tools,dneto0/SPIRV-Tools,dneto0/SPIRV-Tools,LukasBanana/SPIRV-Tools,pierremoreau/SPIRV-Tools,LukasBanana/SPIRV-Tools,dneto0/SPIRV-Tools,pierremoreau/SPIRV-Tools,antiagainst/SPIRV-Tools,dneto0/SPIRV-Tools,pierremoreau/SPIRV-Tools,dneto0/SPIRV-Tools,pierremoreau/SPIRV-Tools,pierremoreau/SPIRV-Tools,ant... |
b51472214d6f8233664929fae4ca8e5f1f184c70 | test/test_normpath.cpp | test/test_normpath.cpp | //
// Created by 王晓辰 on 15/10/2.
//
#include "test_normpath.h"
#include <ftxpath.h>
#include "tester.h"
bool test_normpath_normal()
{
std::string path = "/a/b/c";
return path == ftxpath::normpath(path);
}
bool test_normpath_pardir()
{
std::string path = "../a/b/c/../..";
std::string normpath = "../a... | //
// Created by 王晓辰 on 15/10/2.
//
#include "test_normpath.h"
#include <ftxpath.h>
#include "tester.h"
bool test_normpath_normal()
{
std::string path = "/a/b/c";
#ifdef WIN32
path = "\\a\\b\\c";
#endif
return path == ftxpath::normpath(path);
}
bool test_normpath_pardir()
{
std::string path = "../a/b... | fix test normpath | fix test normpath
| C++ | bsd-2-clause | XiaochenFTX/ftxpath,XiaochenFTX/libpath |
c24d9118471f5de1e9a42f4d113d3d93f196aea3 | test/vp9_scale_test.cc | test/vp9_scale_test.cc | /*
* Copyright (c) 2017 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | /*
* Copyright (c) 2017 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | add C config | vp9_scale_test: add C config
Change-Id: I9dfe8255d1c096d246bf9719729f57dbae779ffc
| C++ | bsd-3-clause | ShiftMediaProject/libvpx,ShiftMediaProject/libvpx,webmproject/libvpx,webmproject/libvpx,webmproject/libvpx,ShiftMediaProject/libvpx,webmproject/libvpx,webmproject/libvpx,ShiftMediaProject/libvpx,ShiftMediaProject/libvpx,webmproject/libvpx |
0fc8f1f822b67a56c72dc574693ec439c47680e3 | tests/FontHostTest.cpp | tests/FontHostTest.cpp | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkPaint.h"
#include "SkFontStream.h"
#include "SkOSFile.h"
#include "SkStream.h"
#include "SkTypeface.h"
#include "SkEndian.h"
//#define DUMP_TABL... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkPaint.h"
#include "SkFontStream.h"
#include "SkOSFile.h"
#include "SkStream.h"
#include "SkTypeface.h"
#include "SkEndian.h"
//#define DUMP_TABL... | Disable charsToGlyphs test until Mac can pass. | Disable charsToGlyphs test until Mac can pass.
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@11960 2bbb7eff-a529-9590-31e7-b0007b416f81
| C++ | bsd-3-clause | nfxosp/platform_external_skia,MinimalOS/external_skia,MyAOSP/external_chromium_org_third_party_skia,samuelig/skia,nox/skia,akiss77/skia,mydongistiny/external_chromium_org_third_party_skia,Hybrid-Rom/external_skia,AndroidOpenDevelopment/android_external_skia,samuelig/skia,todotodoo/skia,MinimalOS/external_chromium_org_t... |
0b87d16699698ce46208087a9ea15389e66cd0a9 | tests/compound_test.cc | tests/compound_test.cc | /*
* Copyright (C) 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later... | /*
* Copyright (C) 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later... | Add unit tests | composite: Add unit tests
Signed-off-by: Duarte Nunes <a60e8b7496f7715d71354fe4c06dd24017025bf1@scylladb.com>
| C++ | agpl-3.0 | duarten/scylla,kjniemi/scylla,scylladb/scylla,raphaelsc/scylla,avikivity/scylla,avikivity/scylla,kjniemi/scylla,avikivity/scylla,raphaelsc/scylla,scylladb/scylla,kjniemi/scylla,scylladb/scylla,raphaelsc/scylla,duarten/scylla,duarten/scylla,scylladb/scylla |
67520ab61ec49b2aae0911bf7fe834125fb0651e | tests/pointer_test.cpp | tests/pointer_test.cpp | /* pointer_test.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 20 Apr 2014
FreeBSD-style copyright and disclaimer apply
Tests for pointer reflection.
Note: Disabled tests are the ones that are currently failing due to
lackluster pointer support.
\todo Pointers ar... | /* pointer_test.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 20 Apr 2014
FreeBSD-style copyright and disclaimer apply
Tests for pointer reflection.
Note: Disabled tests are the ones that are currently failing due to
lackluster pointer support.
\todo Pointers ar... | Clean up in aisle smartPtr. | Clean up in aisle smartPtr.
| C++ | bsd-2-clause | RAttab/reflect,Remotion/reflect,jkhoogland/reflect,Remotion/reflect,jkhoogland/reflect,RAttab/reflect |
ce3244862ba5d0e546d3030336439afc219c9d6c | CoreUI/Qmitk/QmitkRegisterClasses.cpp | CoreUI/Qmitk/QmitkRegisterClasses.cpp | /*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile: mitkPropertyManager.cpp,v $
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informati... | /*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile: mitkPropertyManager.cpp,v $
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informati... | use LOG_INFO for startup messages | STYLE: use LOG_INFO for startup messages
| C++ | bsd-3-clause | rfloca/MITK,lsanzdiaz/MITK-BiiG,NifTK/MITK,nocnokneo/MITK,fmilano/mitk,NifTK/MITK,danielknorr/MITK,iwegner/MITK,RabadanLab/MITKats,NifTK/MITK,nocnokneo/MITK,RabadanLab/MITKats,RabadanLab/MITKats,iwegner/MITK,RabadanLab/MITKats,iwegner/MITK,rfloca/MITK,NifTK/MITK,nocnokneo/MITK,rfloca/MITK,nocnokneo/MITK,iwegner/MITK,da... |
3eace7061b8a854b5d0566d15646302da57caf75 | src/native/sun_misc_Unsafe.cc | src/native/sun_misc_Unsafe.cc | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Tidy up some raw Object access cruft. | Tidy up some raw Object access cruft.
Change-Id: I42fee7eb1f549a795a6c83d3f971ed478e9e5ee5
| C++ | apache-2.0 | treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst |
aa9f38a66ef0f879a291607399f5e0493aed0123 | all/native/layers/SolidLayer.cpp | all/native/layers/SolidLayer.cpp | #include "SolidLayer.h"
#include "components/Exceptions.h"
#include "graphics/Bitmap.h"
#include "renderers/SolidRenderer.cpp"
#include "utils/Log.h"
#include <vector>
namespace carto {
SolidLayer::SolidLayer(const Color& color) :
Layer(),
_color(color),
_bitmap(),
_bitmapScale(1.... | #include "SolidLayer.h"
#include "components/Exceptions.h"
#include "graphics/Bitmap.h"
#include "renderers/SolidRenderer.h"
#include "utils/Log.h"
#include <vector>
namespace carto {
SolidLayer::SolidLayer(const Color& color) :
Layer(),
_color(color),
_bitmap(),
_bitmapScale(1.0f... | Fix build issue | Fix build issue
| C++ | bsd-3-clause | CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk,CartoDB/mobile-sdk |
558bc47fab19763ebad9b03f2f01ed83716a1fcb | include/util/datastream/topk/cms/TopKItemEstimation.hpp | include/util/datastream/topk/cms/TopKItemEstimation.hpp | /*
* @file TopKItemEstimation.hpp
* @author Kuilong Liu
* @date 2013.04.24
* @ TopKItem by count min sketch
*/
#ifndef IZENELIB_UTIL_TOPKITEM_ESTIMATION_H_
#define IZENELIB_UTIL_TOPKITEM_ESTIMATION_H_
#include <list>
#include <iterator>
#include <iostream>
#include <boost/unordered_map.hpp>
#include... | /*
* @file TopKItemEstimation.hpp
* @author Kuilong Liu
* @date 2013.04.24
* @ TopKItem by count min sketch
*/
#ifndef IZENELIB_UTIL_TOPKITEM_ESTIMATION_H_
#define IZENELIB_UTIL_TOPKITEM_ESTIMATION_H_
#include <list>
#include <iterator>
#include <iostream>
#include <boost/unordered_map.hpp>
#include... | fix a small bug | fix a small bug
| C++ | apache-2.0 | pombredanne/izenelib,izenecloud/izenelib,pombredanne/izenelib,pombredanne/izenelib,pombredanne/izenelib,izenecloud/izenelib,izenecloud/izenelib,izenecloud/izenelib |
4d6214383e8221f00850bae8b1805c58cd3738ec | raven.cpp | raven.cpp | #include "raven.h"
#include <QHostInfo>
#include <QDebug>
#include <QUrl>
#include <QNetworkRequest>
#include <QNetworkReply>
#define RAVEN_CLIENT_NAME QString("QRaven")
#define RAVEN_CLIENT_VERSION QString("0.1")
const static QNetworkRequest::Attribute RavenUuidAttribute
= static_cast<QNetworkRequest::Attribute... | #include "raven.h"
#include <QHostInfo>
#include <QDebug>
#include <QUrl>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QSysInfo>
#define RAVEN_CLIENT_NAME QString("QRaven")
#define RAVEN_CLIENT_VERSION QString("0.1")
const static QNetworkRequest::Attribute RavenUuidAttribute
= static_cast<QNetwo... | Send OS version and type using QSysInfo | Send OS version and type using QSysInfo
| C++ | mit | TruePositiveLab/qraven |
7c3b57dbf3098f0971b617478fa1ae42d83f9ca0 | libplugins/libintradisplayfilter/intradisplayfilter.cpp | libplugins/libintradisplayfilter/intradisplayfilter.cpp | #include "intradisplayfilter.h"
#include <QDebug>
#include <QMap>
#include <qmath.h>
/// Intra direction rotation degree
static qreal s_aiIntraRotation[] =
{
0, 0, ///< [0, 1] Planar, DC (Invalid)
225.00, 219.09, 213.27, 207.98, 202.11... | #include "intradisplayfilter.h"
#include <QDebug>
#include <QMap>
#include <qmath.h>
/// Intra direction rotation degree
static qreal s_aiIntraRotation[] =
{
0, 0, ///< [0, 1] Planar, DC (Invalid)
225.00, 219.09, 213.27, 207.98, 202.11... | improve intra filter (angular mode) | improve intra filter (angular mode)
| C++ | apache-2.0 | linqiaozhou/GitlHEVCAnalyzer,lheric/GitlHEVCAnalyzer,linqiaozhou/GitlHEVCAnalyzer,lheric/GitlHEVCAnalyzer,lheric/GitlHEVCAnalyzer,linqiaozhou/GitlHEVCAnalyzer |
41092135380beee467c38b6a36f2791e7b4d7803 | opencog/reasoning/pln/rules/auxiliary/SubsetEvalRule.cc | opencog/reasoning/pln/rules/auxiliary/SubsetEvalRule.cc | /*
* Copyright (C) 2002-2007 Novamente LLC
* Copyright (C) 2008 by Singularity Institute for Artificial Intelligence
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software ... | /*
* Copyright (C) 2002-2007 Novamente LLC
* Copyright (C) 2008 by Singularity Institute for Artificial Intelligence
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software ... | Use correct deletion on SubsetEvalRule. | Use correct deletion on SubsetEvalRule. | C++ | agpl-3.0 | jlegendary/opencog,williampma/opencog,inflector/opencog,TheNameIsNigel/opencog,eddiemonroe/opencog,UIKit0/atomspace,ceefour/atomspace,rohit12/opencog,Allend575/opencog,rohit12/opencog,ruiting/opencog,jswiergo/atomspace,ArvinPan/atomspace,virneo/atomspace,jlegendary/opencog,AmeBel/opencog,cosmoharrigan/atomspace,anitzki... |
f43a3af5291a5f3d4f96d9233f8a0c354f23872d | moveit_ros/visualization/rviz_plugin_render_tools/src/robot_state_visualization.cpp | moveit_ros/visualization/rviz_plugin_render_tools/src/robot_state_visualization.cpp | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... | attach objects to the corresponding link | attach objects to the corresponding link
instead of the robots root node, this will move them automatically
| C++ | bsd-3-clause | ros-planning/moveit,ros-planning/moveit,ros-planning/moveit,ros-planning/moveit,ros-planning/moveit |
6c8deaccda7f1d4aaa72184b366ec2b92929de40 | source/FAST/Algorithms/ModelBasedSegmentation/AppearanceModels/StepEdge/StepEdgeModel.cpp | source/FAST/Algorithms/ModelBasedSegmentation/AppearanceModels/StepEdge/StepEdgeModel.cpp | #include "StepEdgeModel.hpp"
#include "FAST/Data/Image.hpp"
#include "FAST/Algorithms/ModelBasedSegmentation/Shape.hpp"
namespace fast {
StepEdgeModel::StepEdgeModel() {
mLineLength = 0;
mLineSampleSpacing = 0;
}
typedef struct DetectedEdge {
int edgeIndex;
float uncertainty;
} DetectedEdge;
inline Detect... | #include "StepEdgeModel.hpp"
#include "FAST/Data/Image.hpp"
#include "FAST/Algorithms/ModelBasedSegmentation/Shape.hpp"
#include <boost/shared_array.hpp>
namespace fast {
StepEdgeModel::StepEdgeModel() {
mLineLength = 0;
mLineSampleSpacing = 0;
}
typedef struct DetectedEdge {
int edgeIndex;
float uncertain... | use boost shared array | use boost shared array
| C++ | bsd-2-clause | smistad/FAST,smistad/FAST,smistad/FAST |
cec70c8b4f07ecca295b8db45cc09198f54b9e7c | quic/congestion_control/CongestionControlFunctions.cpp | quic/congestion_control/CongestionControlFunctions.cpp | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <quic/congestion_control/CongestionControlFunctions.h>
#include <quic/QuicConstants.h>
#include <quic/common/TimeUtil.... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <quic/congestion_control/CongestionControlFunctions.h>
#include <quic/QuicConstants.h>
#include <quic/common/TimeUtil.... | Use microseconds in bandwidth and rtt and BDP calculations in Quic BBR | Use microseconds in bandwidth and rtt and BDP calculations in Quic BBR
Summary:
This was stupid. bytes/s * s is bytes. bytes/us * us is also bytes.
Thus there was no need to do the us to s conversion. The conversion also loses
accuracy and can lead to over-/under-flows.
Reviewed By: siyengar
Differential Revision: D... | C++ | mit | facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst,facebookincubator/mvfst |
94fedc41f3c6ef60647a6b81d1b5942a1be828fc | firmware/particle-functions.cpp | firmware/particle-functions.cpp | #include "particle-functions.h"
int DST_offset = -7;
void particleInit()
{
Particle.function ("ghData" , ghData);
Particle.function ("passProgram" , passProgramParam);
Particle.function ("motor" , motor);
Particle.function ("dst" , setDST);
setTimezone(DST_offset);
}
int ghData(String data)
{
... | #include "TimeAlarms/TimeAlarms.h"
#include "particle-functions.h"
#include "weather/weather.h"
#include "DualMC33926MotorShield/DualMC33926MotorShield.h"
// default startup values
int DST_offset = -7;
int AMsetback = 7;
int PMsetback = 15;
int dayProgram = 2;
int nightProgram = 4;
int targetVentPosition = 0;
int cur... | Update particle-functions.cpp | Update particle-functions.cpp | C++ | mit | geoffsharris/particle-functions |
bbf6ed9a97d7ced2d5f237190fded09546790fda | firmware/particle-functions.cpp | firmware/particle-functions.cpp | #include "particle-functions.h"
int DST_offset = -7;
void particleInit()
{
Particle.function ("ghData" , ghData);
Particle.function ("passProgram" , passProgramParam);
Particle.function ("motor" , motor);
Particle.function ("dst" , setDST);
setTimezone(DST_offset);
}
int ghData(String data)
{
... | #include "particle-functions.h"
int DST_offset = -7;
void particleInit()
{
Particle.function ("ghData" , ghData);
Particle.function ("passProgram" , passProgramParam);
Particle.function ("motor" , motor);
Particle.function ("dst" , setDST);
setTimezone(DST_offset);
}
int ghData(String data)
{
... | Update particle-functions.cpp | Update particle-functions.cpp | C++ | mit | geoffsharris/particle-functions |
808aa0f0497b36b99cd2584b33c7a9cb3a0bfe81 | src/CLR/Core/CLR_RT_HeapBlock_Timer.cpp | src/CLR/Core/CLR_RT_HeapBlock_Timer.cpp | //
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "Core.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
H... | //
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "Core.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
HR... | Fix exception thrown on Timer constructor (#1851) | Fix exception thrown on Timer constructor (#1851)
***NO_CI*** | C++ | mit | Eclo/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter,nanoframework/nf-interpreter,Eclo/nf-interpreter,nanoframework/nf-interpreter |
8d6294d566ba69d79e1bea8f936458784a63feb5 | src/platform/windows/file.cpp | src/platform/windows/file.cpp | #include "../file.h"
#include <yttrium/storage/source.h>
#include <yttrium/storage/temporary_file.h>
#include "../../storage/writer.h"
#include <system_error>
#include "windows.h"
namespace Yttrium
{
class FileSource final : public Source
{
public:
FileSource(uint64_t size, const std::string& name, HANDLE hand... | #include "../file.h"
#include <yttrium/storage/source.h>
#include <yttrium/storage/temporary_file.h>
#include "../../storage/writer.h"
#include <system_error>
#include "windows.h"
namespace Yttrium
{
class FileSource final : public Source
{
public:
FileSource(uint64_t size, const std::string& name, HANDLE hand... | Remove pointless TODO. | Remove pointless TODO.
| C++ | apache-2.0 | blagodarin/yttrium,blagodarin/yttrium |
c636fc2efed8ec16ce8e7ac6e86ccd4154db527d | src/plugins/coreplugin/id.cpp | src/plugins/coreplugin/id.cpp | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: http://www.qt-project.org/
**
**
** GNU Lesser General Public License Usage
**
** This file may be used under the terms... | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: http://www.qt-project.org/
**
**
** GNU Lesser General Public License Usage
**
** This file may be used under the terms... | Fix MSVC compiler warning about strdup | Core: Fix MSVC compiler warning about strdup
Fix
warning: C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup.
By just using qstrdup.
Change-Id: I40664b6ed763b27951d983ec13dcc638270a1beb
Reviewed-by: hjk <6fac1c92f5b9c7890a04d7f8a9d8912d16355eac@ovi.com>
| C++ | lgpl-2.1 | maui-packages/qt-creator,malikcjm/qtcreator,kuba1/qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,duythanhphan/qt-creator,maui-packages/qt-creator,farseerri/git_code,xianian/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,duythanhphan/qt-crea... |
0e23f0c674f95802bd9f5fb0e1ada65c1cae032e | base/trace_event_win_unittest.cc | base/trace_event_win_unittest.cc | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/trace_event.h"
#include <strstream>
#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/event_trace_consumer_win.h"
... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/trace_event.h"
#include <strstream>
#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/event_trace_consumer_win.h"
... | Mark TraceEventTest.Macros which has started mysteriously failing. | Mark TraceEventTest.Macros which has started mysteriously failing.
BUG=52388
TBR=mpcomplete
Review URL: http://codereview.chromium.org/3130025
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@56293 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yit... |
43cb3cee7030bb71eef9cf1ebf0c9f1ff43f63db | Rpr/WrapObject/CameraObject.cpp | Rpr/WrapObject/CameraObject.cpp | /**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without... | /**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without... | Fix gltf loading | Fix gltf loading
| C++ | mit | GPUOpen-LibrariesAndSDKs/RadeonProRender-Baikal,GPUOpen-LibrariesAndSDKs/RadeonProRender-Baikal,GPUOpen-LibrariesAndSDKs/RadeonProRender-Baikal |
b05e0c011ce0112f5ac647e5179457ba3d8c6a75 | game/apocresources/apocfont.cpp | game/apocresources/apocfont.cpp | #include "library/sp.h"
#include "game/apocresources/apocfont.h"
#include "framework/framework.h"
#include "framework/image.h"
#include "framework/palette.h"
#include <boost/locale.hpp>
namespace OpenApoc
{
sp<BitmapFont> ApocalypseFont::loadFont(tinyxml2::XMLElement *fontElement)
{
int spacewidth = 0;
int height... | #include "library/sp.h"
#include "game/apocresources/apocfont.h"
#include "framework/framework.h"
#include "framework/image.h"
#include "framework/palette.h"
#include <boost/locale.hpp>
namespace OpenApoc
{
sp<BitmapFont> ApocalypseFont::loadFont(tinyxml2::XMLElement *fontElement)
{
int spacewidth = 0;
int height... | Fix apocfont error print if multiple codepoints | Fix apocfont error print if multiple codepoints
It would print out an 'offset' that was actually an unset local int
| C++ | mit | steveschnepp/OpenApoc,Istrebitel/OpenApoc,Istrebitel/OpenApoc,FranciscoDA/OpenApoc,pmprog/OpenApoc,pmprog/OpenApoc,ShadowDancer/OpenApoc,ShadowDancer/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,FranciscoDA/OpenApoc |
f9dc1ffab25f50993024937c02bcc0bfd3592e42 | chrome/browser/debugger/debugger_node.cc | chrome/browser/debugger/debugger_node.cc | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/debugger/debugger_node.h"
#include "base/process_util.h"
#include "base/string_util.h"
#include "chrome/browser/browser... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/debugger/debugger_node.h"
#include "base/process_util.h"
#include "base/string_util.h"
#include "chrome/browser/browser... | Fix Linux build | Fix Linux build
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@16654 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-... |
e2fbaeb2784c1b9cf19c335d46abdc1e1be2f17f | mcppalloc_bitmap/mcppalloc_bitmap/include/mcppalloc/mcppalloc_bitmap/integer_block_impl.hpp | mcppalloc_bitmap/mcppalloc_bitmap/include/mcppalloc/mcppalloc_bitmap/integer_block_impl.hpp | #pragma once
#include "integer_block.hpp"
#include <limits>
#include <mcpputil/mcpputil/intrinsics.hpp>
#include <mcpputil/mcpputil/unsafe_cast.hpp>
#include <numeric>
namespace mcppalloc::bitmap::details
{
template <size_t Quads>
MCPPALLOC_ALWAYS_INLINE void integer_block_t<Quads>::clear() noexcept
{
::std::... | #pragma once
#include "integer_block.hpp"
#include <limits>
#include <mcpputil/mcpputil/intrinsics.hpp>
#include <mcpputil/mcpputil/unsafe_cast.hpp>
#include <numeric>
#include <immintrin.h>
namespace mcppalloc::bitmap::details
{
template <size_t Quads>
MCPPALLOC_ALWAYS_INLINE void integer_block_t<Quads>::clear() n... | Fix AVX | Fix AVX
| C++ | mit | garyfurnish/mcppalloc |
c443af66651ada4f9221c6f7d479b23880ff9651 | src/profiling/memory/socket_listener.cc | src/profiling/memory/socket_listener.cc | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Fix cleanup of profiling state. | profiling: Fix cleanup of profiling state.
This allows to profile the same process after it has finished profiling.
A resource was left behind that made it appear like the process was
still being profiled.
Change-Id: I73e402dff7b9d91e82433ac1aa1a590e00a3f78d | C++ | apache-2.0 | google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto |
e3a4d3dbf00b0f82fed13dbd7cb15157d4af81c5 | questions/layout-iterator-adapter-31546511/main.cpp | questions/layout-iterator-adapter-31546511/main.cpp | #include <QLayout>
#include <QDebug>
#include <QPointer>
#include <utility>
template<class WT> class IterableLayoutAdapter;
template<typename WT>
class LayoutIterator {
QPointer<QLayout> m_layout;
int m_index;
friend class IterableLayoutAdapter<WT>;
LayoutIterator(QLayout * layout, int dir) :
m_layo... | // https://github.com/KubaO/stackoverflown/tree/master/questions/layout-iterator-adapter-31546511
#include <QLayout>
#include <QDebug>
#include <QPointer>
#include <utility>
template<class> class IterableLayoutAdapter;
template<typename WT>
class LayoutIterator {
QPointer<QLayout> m_layout;
int m_index;
frie... | Support constant iteration. | Support constant iteration.
| C++ | unlicense | KubaO/stackoverflown,KubaO/stackoverflown,KubaO/stackoverflown |
9055c70fd555eb2cfc4b8313688521ac89537d7a | src/providers/verbs/completionqueue.cpp | src/providers/verbs/completionqueue.cpp | // Copyright 2016 Peter Georg
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | // Copyright 2016 Peter Georg
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | Improve error message | Improve error message
| C++ | apache-2.0 | pjgeorg/pMR,pjgeorg/pMR,pjgeorg/pMR |
147a4508fba63fbec05cc8fde115088e94b8496c | common/network/network.cc | common/network/network.cc | #include <queue>
#include "transport.h"
#include "core.h"
#include "network.h"
#include "log.h"
#define LOG_DEFAULT_RANK (_transport->ptCommID())
#define LOG_DEFAULT_MODULE NETWORK
// -- NetQueue -- //
//
// A priority queue for network packets.
struct NetQueueEntry
{
NetPacket packet;
UInt64 time;
};
... | #include <queue>
#include "transport.h"
#include "core.h"
#include "network.h"
#include "log.h"
#define LOG_DEFAULT_RANK (_transport->ptCommID())
#define LOG_DEFAULT_MODULE NETWORK
// -- NetQueue -- //
//
// A priority queue for network packets.
struct NetQueueEntry
{
NetPacket packet;
UInt64 time;
};
... | Revert "[network] Don't delete _transport. This is wrong, but for some reason necessary \?\!" | Revert "[network] Don't delete _transport. This is wrong, but for some reason necessary \?\!"
This reverts commit aaf9b2bc3eddbed34902bde4b16ad0a1c4234f7a.
| C++ | mit | mit-carbon/Graphite,mit-carbon/Graphite,8l/Graphite,victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,8l/Graphite,fhijaz/Graphite,victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,nkawahara/Graphite,8l/Graphite,fhijaz/Graphite,mit-carbon/Graphite,nkawahara/Graphite,fhijaz/Graphite,nkawahara/Graphi... |
bd6346f62d9a3638893f6344a684d65459bef93d | source/common/network/transport_socket_options_impl.cc | source/common/network/transport_socket_options_impl.cc | #include "common/network/transport_socket_options_impl.h"
#include "common/common/scalar_to_byte_vector.h"
#include "common/common/utility.h"
#include "common/network/application_protocol.h"
#include "common/network/upstream_server_name.h"
namespace Envoy {
namespace Network {
void TransportSocketOptionsImpl::hashKey... | #include "common/network/transport_socket_options_impl.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "common/common/scalar_to_byte_vector.h"
#include "common/common/utility.h"
#include "common/network/application_protocol.h"
#include "common/network/upstream_server_name.h"
name... | use std::move instead of constructing a copy (#9415) | misc: use std::move instead of constructing a copy (#9415)
Signed-off-by: Derek Argueta <7ca26d8611d7a7954bc67eac5286d36c49081bac@pinterest.com> | C++ | apache-2.0 | envoyproxy/envoy,lizan/envoy,lizan/envoy,istio/envoy,lyft/envoy,jrajahalme/envoy,lyft/envoy,istio/envoy,lizan/envoy,envoyproxy/envoy-wasm,istio/envoy,lyft/envoy,jrajahalme/envoy,jrajahalme/envoy,eklitzke/envoy,eklitzke/envoy,envoyproxy/envoy,lyft/envoy,envoyproxy/envoy-wasm,istio/envoy,lizan/envoy,envoyproxy/envoy-wasm... |
760d732487e7fb1794bd1727ed4aab93cb2bd055 | source/image_processing/computed_field_ImageFilter.cpp | source/image_processing/computed_field_ImageFilter.cpp | /*******************************************************************************
FILE : computed_field_binaryThresholdFilter.c
LAST MODIFIED : 9 September 2006
DESCRIPTION :
Wraps itk::MeanImageFilter
==============================================================================*/
/* ***** BEGIN LICENSE BLOCK *****
... | /*******************************************************************************
FILE : computed_field_ImageFilter.cpp
LAST MODIFIED : 9 September 2006
DESCRIPTION :
Wraps itk::MeanImageFilter
==============================================================================*/
/* ***** BEGIN LICENSE BLOCK *****
* Versio... | Fix up header comment. | Fix up header comment.
| C++ | mpl-2.0 | cmiss/cmgui,cmiss/cmgui |
18dc6384d4f030f690e7b061b9e26f0c96f2ca91 | src/shrpx_spdy_downstream_connection.cc | src/shrpx_spdy_downstream_connection.cc | /*
* Spdylay - SPDY Library
*
* Copyright (c) 2012 Tatsuhiro Tsujikawa
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights... | /*
* Spdylay - SPDY Library
*
* Copyright (c) 2012 Tatsuhiro Tsujikawa
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights... | Remove x-forwarded-proto header from SPDY downstream | shrpx: Remove x-forwarded-proto header from SPDY downstream
SPDY frame has :scheme header field, so x-forwarded-proto is not
necessary.
| C++ | mit | lukw00/nghttp2,mixianghang/spdylay,dxq-git/nghttp2,wzyboy/nghttp2,serioussam/nghttp2,lukw00/nghttp2,wzyboy/nghttp2,yuki-kodama/nghttp2,thinred/nghttp2,serioussam/nghttp2,bxshi/nghttp2,ohyeah521/nghttp2,wzyboy/nghttp2,ohyeah521/nghttp2,thinred/nghttp2,lukw00/nghttp2,minhoryang/nghttp2,bxshi/nghttp2,ahnan4arch/spdylay,ic... |
914805101317fa490890146e29ae68654506aa94 | example/src/render.cpp | example/src/render.cpp | #include "physics.h"
#include "player.h"
#include "render.h"
#include "shader.h"
#include "input.h"
#include "planet.h"
#include "gui.h"
#include <atomic>
#include <glm/gtc/matrix_transform.hpp>
#define GL3_PROTOTYPES 1
#include <GL/glew.h>
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2... | #include "physics.h"
#include "player.h"
#include "render.h"
#include "shader.h"
#include "input.h"
#include "planet.h"
#include "gui.h"
#include <atomic>
#include <glm/gtc/matrix_transform.hpp>
#define GL3_PROTOTYPES 1
#include <GL/glew.h>
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2... | Change resources asset dir | Change resources asset dir
| C++ | apache-2.0 | rohdesamuel/cubez,rohdesamuel/cubez,rohdesamuel/cubez,rohdesamuel/cubez |
cb15dc7c051be082323b7add3cd39092284efd2e | searchsummary/src/tests/docsummary/matched_elements_filter/matched_elements_filter_test.cpp | searchsummary/src/tests/docsummary/matched_elements_filter/matched_elements_filter_test.cpp | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/document/datatype/documenttype.h>
#include <vespa/document/datatype/arraydatatype.h>
#include <vespa/document/datatype/mapdatatype.h>
#include <vespa/document/fieldvalue/stringfieldvalue.h>
#include... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/document/datatype/documenttype.h>
#include <vespa/document/datatype/arraydatatype.h>
#include <vespa/document/datatype/mapdatatype.h>
#include <vespa/document/datatype/weightedsetdatatype.h>
#includ... | Extend matched elements filter unit test to test weighted set. | Extend matched elements filter unit test to test weighted set.
| C++ | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
ca9945366df595470807cbb8b3b5da0b8bc608f9 | tests/test_solver1.cpp | tests/test_solver1.cpp | #include <vector>
#include <iostream>
#include <iterator>
#include <Spark/SparseLinearSolvers.hpp>
#include <dfesnippets/blas/Blas.hpp>
#include <Eigen/Sparse>
using Td = Eigen::Triplet<double>;
using Md = Eigen::SparseMatrix<double>;
Md one(int m) {
std::vector<Td> nnzs;
for (int i = 0; i < m; i++)
nnzs.pu... | #include <vector>
#include <iostream>
#include <iterator>
#include <Spark/SparseLinearSolvers.hpp>
#include <dfesnippets/blas/Blas.hpp>
#include <Eigen/Sparse>
using Td = Eigen::Triplet<double>;
using Md = Eigen::SparseMatrix<double>;
Md one(int m) {
std::vector<Td> nnzs;
for (int i = 0; i < m; i++)
nnzs.pu... | Remove unused template argument. | Remove unused template argument.
| C++ | mit | caskorg/cask,caskorg/cask,caskorg/cask,caskorg/cask,caskorg/cask |
86c363dc9c3e21c4fe53d737b4d7efbbeccdeeb2 | code/ylikuutio/ontology/compute_task.cpp | code/ylikuutio/ontology/compute_task.cpp | // Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2020 Antti Nuortimo.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or ... | // Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2020 Antti Nuortimo.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or ... | use `std::holds_alternative`. | `ComputeTask::render`: use `std::holds_alternative`.
| C++ | agpl-3.0 | nrz/ylikuutio,nrz/ylikuutio,nrz/ylikuutio,nrz/ylikuutio |
667577b6450008601d1b4b6df79cfb6a0902793b | Source/Task/WaitTimer_win32.cpp | Source/Task/WaitTimer_win32.cpp | #include "pch.h"
#include "WaitTimer.h"
class WaitTimerImpl
{
public:
WaitTimerImpl()
: m_timer(nullptr)
{}
~WaitTimerImpl()
{
if (m_timer != nullptr)
{
SetThreadpoolTimer(m_timer, nullptr, 0, 0);
WaitForThreadpoolTimerCallbacks(m_timer, TRUE);
... | #include "pch.h"
#include "WaitTimer.h"
class WaitTimerImpl
{
public:
WaitTimerImpl()
: m_timer(nullptr)
{}
~WaitTimerImpl()
{
if (m_timer != nullptr)
{
SetThreadpoolTimer(m_timer, nullptr, 0, 0);
WaitForThreadpoolTimerCallbacks(m_timer, TRUE);
... | Fix overflow in timer (#419) | Fix overflow in timer (#419)
| C++ | mit | lubeltra/libHttpClient,lubeltra/libHttpClient,jasonsandlin/libHttpClient,jasonsandlin/libHttpClient,lubeltra/libHttpClient,jasonsandlin/libHttpClient,jasonsandlin/libHttpClient,lubeltra/libHttpClient,jasonsandlin/libHttpClient,lubeltra/libHttpClient |
9341ff0feb67582df10f16d685db5d34a5c4160d | interpreter/cling/lib/Interpreter/InterpreterCallbacks.cpp | interpreter/cling/lib/Interpreter/InterpreterCallbacks.cpp | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vvasilev@cern.ch>
//------------------------------------------------------------------------------
#include "cling/Interpreter/InterpreterCallback... | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vvasilev@cern.ch>
//------------------------------------------------------------------------------
#include "cling/Interpreter/InterpreterCallback... | Remove extra newline. | Remove extra newline.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@48528 27541ba8-7e3a-0410-8455-c3a389f83636
| C++ | lgpl-2.1 | bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT |
fe3d52942348329b310817d860b438dce262cb3b | Sources/Interface/Interface.cpp | Sources/Interface/Interface.cpp | /*************************************************************************
> File Name: Interface.cpp
> Project Name: Hearthstone++
> Author: Young-Joong Kim
> Purpose: Interface for Hearthstone Game Agent
> Created Time: 2017/10/24
> Copyright (c) 2017, Young-Joong Kim
******************************************... | /*************************************************************************
> File Name: Interface.cpp
> Project Name: Hearthstone++
> Author: Young-Joong Kim
> Purpose: Interface for Hearthstone Game Agent
> Created Time: 2017/10/24
> Copyright (c) 2017, Young-Joong Kim
******************************************... | Update Interface - Handling MainEndStructure | Update Interface - Handling MainEndStructure
| C++ | mit | Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp |
88a69518b392e5c3291134abf1b299c55ebcd8ed | bootstrap/src/nanyc-unittest.cpp | bootstrap/src/nanyc-unittest.cpp | #include <nanyc/library.h>
#include <nanyc/program.h>
#include <yuni/yuni.h>
#include <yuni/core/getopt.h>
#include <yuni/core/string.h>
#include <yuni/io/filename-manipulation.h>
#include <yuni/datetime/timestamp.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <memory>
#include "libnanyc.h"
na... | #include <nanyc/library.h>
#include <nanyc/program.h>
#include <yuni/yuni.h>
#include <yuni/core/getopt.h>
#include <yuni/core/string.h>
#include <yuni/io/filename-manipulation.h>
#include <yuni/datetime/timestamp.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <memory>
#include "libnanyc.h"
na... | add overall statistics (total, passing, failed) | unittests: add overall statistics (total, passing, failed)
| C++ | mpl-2.0 | nany-lang/nanyc,nany-lang/nany,nany-lang/nany,nany-lang/nanyc,nany-lang/nany,nany-lang/nanyc |
11361bb54d3ba47bac36073d8618de8bd11e5303 | src/states/gameplay_state.cpp | src/states/gameplay_state.cpp | // Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Fix the fader not rendering correctly in gameplay. | Fix the fader not rendering correctly in gameplay.
The fader needs to set up an orthographic projection on the screen to
correctly fade in and out, which was missing in the gameplay state.
Tested on Linux and Android.
Change-Id: I6990a9204bc8ef4b2f9bae7b0eaf3bbf78da46fd
| C++ | apache-2.0 | google/zooshi,google/zooshi,google/zooshi,google/zooshi,google/zooshi |
9ab6973b37b665c64e71552076f9c3fff3f27404 | qNewton/J2qNewton.cc | qNewton/J2qNewton.cc | #include <kv/Heine.hpp>
#include <kv/qAiry.hpp>
#include <kv/qBessel.hpp>
#include <cmath>
typedef kv::interval<double> itv;
typedef kv::complex< kv::interval<double> > cp;
using namespace std;
int main()
{
cout.precision(17);
int n=50;
itv x,nu,q;
q="0.7";
nu=2.5;
x=3.5;
for(int i=1;i<=n;i++){
x=x-kv... | #include <kv/Heine.hpp>
#include <kv/qAiry.hpp>
#include <kv/qBessel.hpp>
#include <cmath>
typedef kv::interval<double> itv;
typedef kv::complex< kv::interval<double> > cp;
using namespace std;
int main()
{
cout.precision(17);
int n=50;
itv x,nu,q;
q="0.7";
nu=2.5;
x=3.5;
for(int i=1;i<=n;i++){
x=x-kv... | Update J2qNewton.cc | Update J2qNewton.cc | C++ | mit | Daisuke-Kanaizumi/q-special-functions,Daisuke-Kanaizumi/q-special-functions |
01d8b653400e4e0c393c4e2bc3ba41addbde9af7 | tools/LuminoCLI/BuildCommand.cpp | tools/LuminoCLI/BuildCommand.cpp |
#include "../../src/LuminoEngine/src/Asset/AssetArchive.hpp"
#include "../../src/LuminoEngine/src/Shader/UnifiedShader.hpp"
#include "EnvironmentSettings.hpp"
#include "Workspace.hpp"
#include "Project.hpp"
#include "BuildCommand.hpp"
#include "FxcCommand.hpp"
int BuildCommand::execute(Workspace* workspace, ... |
#include "../../src/LuminoEngine/src/Asset/AssetArchive.hpp"
#include "../../src/LuminoEngine/src/Shader/UnifiedShader.hpp"
#include "EnvironmentSettings.hpp"
#include "Workspace.hpp"
#include "Project.hpp"
#include "BuildCommand.hpp"
#include "FxcCommand.hpp"
int BuildCommand::execute(Workspace* workspace, ... | copy assets | copy assets
| C++ | mit | lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino |
6c521dd2fd8b8470cdf9a17b80bd402026249870 | core/foundation/inc/ROOT/RMakeUnique.hxx | core/foundation/inc/ROOT/RMakeUnique.hxx | /// \file ROOT/RMakeUnique.h
/// \ingroup Base StdExt
/// \author Danilo Piparo
/// \date 2017-09-22
/*************************************************************************
* Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | /// \file ROOT/RMakeUnique.h
/// \ingroup Base StdExt
/// \author Danilo Piparo
/// \date 2017-09-22
/*************************************************************************
* Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Simplify the test for std::make_unique | Simplify the test for std::make_unique
The required version of Visual Studio always ship with make_unique. Thanks Enrico Guiraud for the suggestion.
| C++ | lgpl-2.1 | root-mirror/root,karies/root,root-mirror/root,zzxuanyuan/root,karies/root,olifre/root,zzxuanyuan/root,zzxuanyuan/root,zzxuanyuan/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,zzxuanyuan/root,zzxuanyuan/root,olifre/root,zzxuanyuan/root,olifre/root,root-mirror/root,zzxuanyuan/root,root-mirror... |
3435ebf7167c48a599ab5e29b59a7bd9bc56436d | src/qt-compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp | src/qt-compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp | /****************************************************************************
**
** This file is part of QtCompositor**
**
** Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
**
** Contact: Nokia Corporation qt-info@nokia.com
**
** You may use this file under the terms of the BSD... | /****************************************************************************
**
** This file is part of QtCompositor**
**
** Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
**
** Contact: Nokia Corporation qt-info@nokia.com
**
** You may use this file under the terms of the BSD... | Add missing QWindow include | Add missing QWindow include
Fix compile error ("waylandeglintegration.cpp:84:27: error: "
"invalid use of incomplete type 'struct QWindow'")
Change-Id: Ic87ee8a6fe67329d0e1e9a4a96fda05952093f8f
Reviewed-by: Samuel Rødal <99126055f8d73e4355b075213322026fa8c060bd@nokia.com>
| C++ | lgpl-2.1 | ntanibata/qtwayland,ntanibata/qtwayland,Tofee/qtwayland,ntanibata/qtwayland,locusf/qtwayland-1,locusf/qtwayland-1,locusf/qtwayland-1,Tofee/qtwayland,Tofee/qtwayland,locusf/qtwayland-1 |
6e413c29393f3ce486e326259ccafc30c21b014a | fs/device.cpp | fs/device.cpp | ////////////////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @date 21.08.2016
///
/// @copyright This file is a part of cosmos OS. All rights reserved.
///
///////////////////////////////////////////////////////////////////////////... | ////////////////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @date 21.08.2016
///
/// @copyright This file is a part of cosmos OS. All rights reserved.
///
///////////////////////////////////////////////////////////////////////////... | Make default Device::init() set intialized flag. | fs: Make default Device::init() set intialized flag.
| C++ | bsd-2-clause | ksejdak/cosmos,ksejdak/cosmos,ksejdak/cosmos |
60f0abf4ad8e17e898646811f3e5d4aaadf6fbba | platform/shared/common/PosixThreadImpl.cpp | platform/shared/common/PosixThreadImpl.cpp | #include "common/PosixThreadImpl.h"
extern "C"
{
void* rho_nativethread_start();
void rho_nativethread_end(void*);
}
namespace rho
{
namespace common
{
IMPLEMENT_LOGCLASS(CPosixThreadImpl, "RhoThread");
CPosixThreadImpl::CPosixThreadImpl()
:m_stop_wait(false)
{
#if defined(OS_ANDROID)
// Android has no pthr... | #include "common/PosixThreadImpl.h"
extern "C"
{
void* rho_nativethread_start();
void rho_nativethread_end(void*);
}
namespace rho
{
namespace common
{
IMPLEMENT_LOGCLASS(CPosixThreadImpl, "RhoThread");
CPosixThreadImpl::CPosixThreadImpl()
:m_stop_wait(false)
{
#if defined(OS_ANDROID)
// Android has no pthr... | Fix thread wait on POSIX (iPhone, Android) | Fix thread wait on POSIX (iPhone, Android)
| C++ | mit | jdrider/rhodes,UIKit0/rhodes,jdrider/rhodes,UIKit0/rhodes,jdrider/rhodes,louisatome/rhodes,nosolosoftware/rhodes,UIKit0/rhodes,nosolosoftware/rhodes,rhosilver/rhodes-1,jdrider/rhodes,UIKit0/rhodes,louisatome/rhodes,UIKit0/rhodes,nosolosoftware/rhodes,jdrider/rhodes,UIKit0/rhodes,nosolosoftware/rhodes,rhosilver/rhodes-1... |
9c41f147a2440557532b23318aedc2cac19ec977 | include/Bull/Core/Assets/AssetLoader.hpp | include/Bull/Core/Assets/AssetLoader.hpp | #ifndef BULL_CORE_ASSETS_ASSETLOADER_HPP
#define BULL_CORE_ASSETS_ASSETLOADER_HPP
#include <vector>
#include <Bull/Core/Thread/Thread.hpp>
namespace Bull
{
template <typename T>
class BULL_CORE_API AssetLoader
{
private:
class Worker : public Runnable
{
public:
/... | #ifndef BULL_CORE_ASSETS_ASSETLOADER_HPP
#define BULL_CORE_ASSETS_ASSETLOADER_HPP
#include <vector>
#include <Bull/Core/Thread/Thread.hpp>
namespace Bull
{
template <typename T>
class BULL_CORE_API AssetLoader
{
private:
class Worker : public Runnable
{
public:
/... | Fix documentation | [Core/AssetLoader] Fix documentation
| C++ | mit | siliace/Bull |
3addf9a5594fdfc48618aac00d8bd1a9b5b33fe7 | Modules/Python/Testing/mitkCopyToPythonAsItkImageTest.cpp | Modules/Python/Testing/mitkCopyToPythonAsItkImageTest.cpp | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | fix typo | fix typo
| C++ | bsd-3-clause | danielknorr/MITK,danielknorr/MITK,NifTK/MITK,lsanzdiaz/MITK-BiiG,danielknorr/MITK,NifTK/MITK,MITK/MITK,rfloca/MITK,danielknorr/MITK,NifTK/MITK,rfloca/MITK,NifTK/MITK,MITK/MITK,fmilano/mitk,nocnokneo/MITK,iwegner/MITK,RabadanLab/MITKats,danielknorr/MITK,iwegner/MITK,RabadanLab/MITKats,iwegner/MITK,RabadanLab/MITKats,MIT... |
9e3ec47f9da17324a177120347fc42348da80c6c | SofaKernel/framework/sofa/helper/system/PluginManager.cpp | SofaKernel/framework/sofa/helper/system/PluginManager.cpp | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2016 INRIA, USTL, UJF, CNRS, MGH *
* *
... | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2016 INRIA, USTL, UJF, CNRS, MGH *
* *
... | fix to include debug plugin on msvc | fix to include debug plugin on msvc
| C++ | lgpl-2.1 | hdeling/sofa,FabienPean/sofa,FabienPean/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,Anatoscope/sofa,Anatoscope/sofa,hdeling/sofa,hdeli... |
3d4e16af84161e1b1db39ae9363a39675b56a2d3 | src/modules/engines/software_ddraw/evas_ddraw_main.cpp | src/modules/engines/software_ddraw/evas_ddraw_main.cpp | #include "evas_common.h"
#include "evas_engine.h"
int
evas_software_ddraw_init (HWND window,
int depth,
int fullscreen,
Outbuf *buf)
{
DDSURFACEDESC surface_desc;
DDPIXELFORMAT pixel_format;
HRESULT res;
int ... | #include "evas_common.h"
#include "evas_engine.h"
int
evas_software_ddraw_init (HWND window,
int depth,
int fullscreen,
Outbuf *buf)
{
DDSURFACEDESC surface_desc;
DDPIXELFORMAT pixel_format;
HRESULT res;
int ... | optimize ddraw engine : when locking a surface, don't allow Windows to suspend operations. expedite runs with around 7 points more than without those flags on my computer | optimize ddraw engine : when locking a surface, don't allow Windows
to suspend operations. expedite runs with around 7 points more than
without those flags on my computer
git-svn-id: 6d771e449150288cc513807b7f4d2af31e9482bd@39316 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C++ | bsd-2-clause | TizenChameleon/uifw-evas,TizenChameleon/evas,nashidau/Evas-Next,TizenChameleon/evas,TizenChameleon/evas,nashidau/Evas-Next,TizenChameleon/uifw-evas,TizenChameleon/uifw-evas,TizenChameleon/uifw-evas,nashidau/Evas-Next,TizenChameleon/evas |
cf3e94bb7f540ca48b569363b31f9c42669a97de | WangscapeTest/TestModuleGroup.cpp | WangscapeTest/TestModuleGroup.cpp | #include <gtest/gtest.h>
#include <ModuleFactories.h>
class TestModuleGroup : public ::testing::Test {
protected:
Reseedable rs;
TestModuleGroup() :
rs(makePlaceholder())
{
};
~TestModuleGroup() {};
};
TEST_F(TestModuleGroup, TestGetValue)
{
rs.module->GetValue(0.,1.,2.);
}
TEST_F(T... | #include <gtest/gtest.h>
#include <ModuleFactories.h>
class TestModuleGroup : public ::testing::Test {
protected:
Reseedable rs;
TestModuleGroup() :
rs(makePlaceholder())
{
// The current placeholder is a Reseedable,
// but it's not a ModuleGroup.
// Maybe these tests shoul... | Fix reseed test | Fix reseed test
| C++ | mit | Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape |
16d81abb09cc5a15d98a140de025ee63dd76e6f1 | protocols/oscar/oscarsocket/oscarmessage.cpp | protocols/oscar/oscarsocket/oscarmessage.cpp |
#include <qregexp.h>
#include <qstylesheet.h>
#include <kdebug.h>
#include "oscarmessage.h"
#include "rtf2html.h"
OscarMessage::OscarMessage()
{
timestamp = QDateTime::currentDateTime();
}
void OscarMessage::setText(const QString &txt, MessageFormat format)
{
if(format == AimHtml)
{
kdDebug(14151) << k_funcinf... |
#include <qregexp.h>
#include <qstylesheet.h>
#include <kdebug.h>
#include "oscarmessage.h"
#include "rtf2html.h"
OscarMessage::OscarMessage()
{
timestamp = QDateTime::currentDateTime();
}
void OscarMessage::setText(const QString &txt, MessageFormat format)
{
if(format == AimHtml)
{
kdDebug(14151) << k_funcinf... | Simplify font tag mangling regexp. No longer needs minimal matching. No longer breaks on nested font tags. Should be marginally faster now too :) Matt: I figured you might want this in oscar_rewrite, so... CCMAIL: matt@matt.rogers.name | Simplify font tag mangling regexp. No longer needs minimal matching. No
longer breaks on nested font tags. Should be marginally faster now too :)
Matt: I figured you might want this in oscar_rewrite, so...
CCMAIL: matt@matt.rogers.name
svn path=/trunk/kdenetwork/kopete/; revision=352144
| C++ | lgpl-2.1 | josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136 |
5f609d1685c85d6fb58ea9969bb66cab50bf81ae | sdlpp.hpp | sdlpp.hpp | #pragma once
#include <SDL.h>
#include <sstream>
#include <functional>
namespace sdl
{
class Error: public std::runtime_error
{
public:
using std::runtime_error::runtime_error;
};
class Init
{
public:
template <typename ...Args>
Init(Args... args)
{
auto res = SDL_Init(args...);
... | /*
This source file is part of sdlpp (C++ wrapper for SDL2)
Copyright (c) 2017 Anton Te
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the right... | Add copyright text and reformat | Add copyright text and reformat
| C++ | mit | antonte/sdlpp |
6cded74c62a79c4245890d8718cba8fc9831b2f0 | src/schedules/examples/thread_per_process_schedule.cxx | src/schedules/examples/thread_per_process_schedule.cxx | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "thread_per_process_schedule.h"
#include <vistk/pipeline/pipeline.h>
#include <vist... | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "thread_per_process_schedule.h"
#include <vistk/pipeline/pipeline.h>
#include <vist... | Implement the function to run until completion | Implement the function to run until completion
| C++ | bsd-3-clause | mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,Kitware/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,mathstuf/sprokit,linus-sherrill/sprokit |
8cbbabf519e4809f8e701cc47fc697d1a98f3ff6 | src/Comparison.cpp | src/Comparison.cpp | #include "Comparison.h"
#define _USE_MATH_DEFINES
#include <cmath>
#define SQR(x) ((x)*(x))
#define DegToRad(x) ((x)*M_PI/180)
namespace ColorSpace {
double EuclideanComparison::Compare(IColorSpace *a, IColorSpace *b) {
Rgb rgb_a;
Rgb rgb_b;
a->ToRgb(&rgb_a);
b->ToRgb(&rgb_b);
return sqrt(SQR(rgb_a.r - r... | #include "Comparison.h"
#define _USE_MATH_DEFINES
#include <cmath>
#define SQR(x) ((x)*(x))
#define DegToRad(x) ((x)*M_PI/180)
namespace ColorSpace {
double EuclideanComparison::Compare(IColorSpace *a, IColorSpace *b) {
Rgb rgb_a;
Rgb rgb_b;
a->ToRgb(&rgb_a);
b->ToRgb(&rgb_b);
return sqrt(SQR(rgb_a.r - r... | fix precission bug | fix precission bug
| C++ | mit | berendeanicolae/ColorSpace,berendeanicolae/ColorSpace,berendeanicolae/ColorSpace |
7d7dd991f5cd39dacd1e6acba1e015526baab860 | src/Connection.cpp | src/Connection.cpp | #include "Connection.hpp"
#include <iostream>
#include <math.h>
#include <QtWidgets/QtWidgets>
#include "Node.hpp"
#include "NodeData.hpp"
#include "FlowScene.hpp"
#include "FlowGraphicsView.hpp"
#include "NodeGeometry.hpp"
#include "NodeGraphicsObject.hpp"
#include "ConnectionState.hpp"
#include "ConnectionGeomet... | #include "Connection.hpp"
#include <iostream>
#include <math.h>
#include <QtWidgets/QtWidgets>
#include "Node.hpp"
#include "NodeData.hpp"
#include "FlowScene.hpp"
#include "FlowGraphicsView.hpp"
#include "NodeGeometry.hpp"
#include "NodeGraphicsObject.hpp"
#include "ConnectionState.hpp"
#include "ConnectionGeomet... | Fix code formatting | Fix code formatting
| C++ | bsd-3-clause | schumacb/nodeeditor,paceholder/nodeeditor,mtbrobotanist/nodeeditor |
368fec381b8ad85a1b6c9ef41a6f217011837329 | VisualizationBase/src/declarative/AnchorLayoutElement.cpp | VisualizationBase/src/declarative/AnchorLayoutElement.cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | Simplify the placement computation iteration. | Simplify the placement computation iteration.
| C++ | bsd-3-clause | Vaishal-shah/Envision,patrick-luethi/Envision,dimitar-asenov/Envision,mgalbier/Envision,mgalbier/Envision,Vaishal-shah/Envision,BalzGuenat/Envision,dimitar-asenov/Envision,mgalbier/Envision,BalzGuenat/Envision,dimitar-asenov/Envision,Vaishal-shah/Envision,mgalbier/Envision,Vaishal-shah/Envision,Vaishal-shah/Envision,Ba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.