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 |
|---|---|---|---|---|---|---|---|---|---|
c54f98634e9ca8e2a8fd57b028160261f8102bc6 | src/tests/TestHelpers.cpp | src/tests/TestHelpers.cpp | #include "catch.hpp"
#include "../Config.h"
#include "../ProgramOptions.h"
TEST_CASE( "parseColor")
{
REQUIRE((helpers::parseColor("0,0,0") == Config::Color{0, 0, 0}));
REQUIRE((helpers::parseColor("255,255,255") == Config::Color{255, 255, 255}));
REQUIRE((helpers::parseColor(" 255 , 255 , 255 ") == C... | #include "catch.hpp"
#include "../Config.h"
#include "../ProgramOptions.h"
TEST_CASE( "parseColor")
{
REQUIRE((helpers::parseColor("0,0,0") == Config::Color{0, 0, 0}));
REQUIRE((helpers::parseColor("255,255,255") == Config::Color{255, 255, 255}));
REQUIRE((helpers::parseColor(" 255 , 255 , 255 ") == C... | Fix travis build | Fix travis build
| C++ | mit | vladimirgamalian/fontbm,vladimirgamalian/fontbm,vladimirgamalian/fontbm |
74b3ccae52fe5a74c1d9d3845d4fdb4353d6244b | src/tools/PaletteTool.cpp | src/tools/PaletteTool.cpp | #include "tools/PaletteTool.h"
#include "MainFrame.h"
#include "coloroutputs.h"
#include <wx/confbase.h>
#include <wx/toolbar.h>
#include <wx/statusbr.h>
#include <wx/dataview.h>
#include <wx/brush.h>
#include <wx/dc.h>
#include <wx/artprov.h>
#include <wx/msgdlg.h>
#include <wx/filedlg.h>
#include <wx/wfstream.h>
#... | #include "tools/PaletteTool.h"
#include "MainFrame.h"
#include "coloroutputs.h"
#include <wx/confbase.h>
#include <wx/toolbar.h>
#include <wx/statusbr.h>
#include <wx/dataview.h>
#include <wx/brush.h>
#include <wx/dc.h>
#include <wx/artprov.h>
#include <wx/msgdlg.h>
#include <wx/filedlg.h>
#include <wx/wfstream.h>
#... | Fix save/load of palettes (proper unicode support still missing). | Fix save/load of palettes (proper unicode support still missing).
| C++ | mit | nielssp/colorgrab,Acolarh/colorgrab,nielssp/colorgrab,Acolarh/colorgrab |
bb2c425104f3786d03e656eb09b4e5ef6b4f9ea2 | examples/array_iteration_basics.cpp | examples/array_iteration_basics.cpp | /**
* @file
*
* @brief Demonstrates iteration over an array and type check functions
*
*/
#include <exception>
#include <iostream>
// jsoncpp
#include <valijson/adapters/jsoncpp_adapter.hpp>
#include <valijson/utils/jsoncpp_utils.hpp>
// RapidJSON
#include <valijson/adapters/rapidjson_adapter.hpp>
#include <val... | /**
* @file
*
* @brief Demonstrates iteration over an array, and how to use type check functions
*/
#include <iostream>
// jsoncpp
#include <valijson/adapters/jsoncpp_adapter.hpp>
#include <valijson/utils/jsoncpp_utils.hpp>
// RapidJSON
#include <valijson/adapters/rapidjson_adapter.hpp>
#include <valijson/utils/... | Improve array_iteration_basics example | Improve array_iteration_basics example
| C++ | bsd-2-clause | tristanpenman/valijson,tristanpenman/valijson |
935d5bc3dd45a10d1545363c9b1f6185ac5e0ae8 | examples/commandlineoutput/main.cpp | examples/commandlineoutput/main.cpp |
#include <GL/glew.h>
#include <iostream>
#include <iomanip>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glow/Error.h>
#include <glow/Uniform.h>
#include <glow/Program.h>
#include <glow/Shader.h>
#include <glow/Buffer.h>
#include <glow/Query.h>
#include <... |
#include <GL/glew.h>
#include <iostream>
#include <iomanip>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glow/Error.h>
#include <glow/Uniform.h>
#include <glow/Program.h>
#include <glow/Shader.h>
#include <glow/Buffer.h>
#include <glow/Query.h>
#include <... | Fix warnings for master | Fix warnings for master
| C++ | mit | j-o/globjects,hpi-r2d2/globjects,j-o/globjects,j-o/globjects,cginternals/globjects,j-o/globjects,hpi-r2d2/globjects,cginternals/globjects |
80821abd6410f47130fc031b15e9ac220de5b1b9 | tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.cc | tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.cc | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Make RemoveTrivialPassthrough preserve minmax-related info | Make RemoveTrivialPassthrough preserve minmax-related info
PiperOrigin-RevId: 215487633
| C++ | apache-2.0 | petewarden/tensorflow,karllessard/tensorflow,renyi533/tensorflow,seanli9jan/tensorflow,jbedorf/tensorflow,frreiss/tensorflow-fred,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,frreiss/tensorflow-fred,alshedivat/tensorflow,dancingdan/tensorflow,petewarden/tensorflow,tensorflow/te... |
bc760707c802f98d8a4c2a2814604ddc94c035b4 | eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp | eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/eval/test/eval_fixture.h>
#include <vespa/eval/eval/test/gen_spec.h>
#include <vespa/eval/instr... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/eval/test/eval_fixture.h>
#include <vespa/eval/eval/test/gen_spec.h>
#include <vespa/eval/instr... | check inplace better | check inplace better
| 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 |
805d04378d8352487940afbf01c51d632646c35f | webkit/appcache/appcache_group.cc | webkit/appcache/appcache_group.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/appcache/appcache_group.h"
#include <algorithm>
#include "base/logging.h"
#include "base/message_loop.h"
#include "webkit/appcache/... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/appcache/appcache_group.h"
#include <algorithm>
#include "base/logging.h"
#include "base/message_loop.h"
#include "webkit/appcache/... | Fix a refcounting memory bug. | Fix a refcounting memory bug.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/552222
git-svn-id: http://src.chromium.org/svn/trunk/src@37466 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: a861a6b11967fd92e14981d8f134b7496b591373 | C++ | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
3c6fb4ef318931c2932d9d40d416e64c74679088 | copasi/UI/CQTSSATimeScaleWidget.cpp | copasi/UI/CQTSSATimeScaleWidget.cpp | // Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQTSSATimeScaleWidget.cpp,v $
// $Revision: 1.1 $
// $Name: $
// $Author: akoenig $
// $Date: 2008/02/24 17:33:04 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML... | // Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQTSSATimeScaleWidget.cpp,v $
// $Revision: 1.2 $
// $Name: $
// $Author: gauges $
// $Date: 2008/07/01 11:09:50 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML ... | Remove extra qualifiers to compile with SunCC. | Remove extra qualifiers to compile with SunCC.
| C++ | artistic-2.0 | copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI |
469278bb2f37d77149104657b6b2d0becdfc9238 | parser/parserTemplates.cpp | parser/parserTemplates.cpp | //MIT License
//Copyright 2017 Patrick Laughrea
#include "parser.hpp"
#include "containerSwitcher.hpp"
#include "errors.hpp"
#include "paramDocumentIncluder.hpp"
#include "patternsContainers.hpp"
#include "utils/utilsWebss.hpp"
using namespace std;
using namespace webss;
const char ERROR_NO_DEFAULT[] = "no default v... | //MIT License
//Copyright 2017 Patrick Laughrea
#include "parser.hpp"
#include "containerSwitcher.hpp"
#include "errors.hpp"
#include "paramDocumentIncluder.hpp"
#include "patternsContainers.hpp"
#include "utils/utilsWebss.hpp"
using namespace std;
using namespace webss;
const char ERROR_NO_DEFAULT[] = "no default v... | Remove unnecessary code | Remove unnecessary code
Code related to having a template tuple after a template has been removed.
This feature was removed when the expand operator was introduced.
| C++ | mit | pat-laugh/websson-libraries,Pat-Laugh/WebssonProjects |
d63c8ed15625b7192879107b18fd30d517936e2a | penguinRush/Background.cpp | penguinRush/Background.cpp | #include "Background.hpp"
Background::Background(){
sprites = std::vector<sf::Sprite> (constant::qttBackgrounds);
textures = std::vector<sf::Texture> (constant::qttBackgrounds+1);
secondSprites = std::vector<sf::Sprite> (constant::qttBackgrounds);
textures[0].loadFromFile("res/background.png");
t... | #include "Background.hpp"
Background::Background(){
sprites = std::vector<sf::Sprite> (constant::qttBackgrounds);
textures = std::vector<sf::Texture> (constant::qttBackgrounds+1);
secondSprites = std::vector<sf::Sprite> (constant::qttBackgrounds);
textures[0].loadFromFile("res/background.png");
t... | Update Background.cpp | Update Background.cpp | C++ | mit | DigitalPenguinGames/KHack,Pinkii-/KHack,Pinkii-/KHack,DigitalPenguinGames/KHack |
f8f0df840e3e1552c63d86e28476d293baf75de1 | fflas-ffpack/fflas/fflas_freivalds.inl | fflas-ffpack/fflas/fflas_freivalds.inl | /* fflas/fflas_freivalds.inl
* Copyright (C) 2014 Jean-Guillaume Dumas
*
* Written by Jean-Guillaume Dumas <Jean-Guillaume.Dumas@imag.fr>
*
*
* ========LICENCE========
* This file is part of the library FFLAS-FFPACK.
*
* FFLAS-FFPACK is free software: you can redistribute it and/or modify
* it under the terms... | /* fflas/fflas_freivalds.inl
* Copyright (C) 2014 Jean-Guillaume Dumas
*
* Written by Jean-Guillaume Dumas <Jean-Guillaume.Dumas@imag.fr>
*
*
* ========LICENCE========
* This file is part of the library FFLAS-FFPACK.
*
* FFLAS-FFPACK is free software: you can redistribute it and/or modify
* it under the terms... | fix possible future bug with transposes in freivalds | fix possible future bug with transposes in freivalds
| C++ | lgpl-2.1 | linbox-team/fflas-ffpack,linbox-team/fflas-ffpack,linbox-team/fflas-ffpack |
75275a5596d60a53c5c9bc1550d384e9a5de8891 | codecs/mozjpeg/dec/mozjpeg_dec.cpp | codecs/mozjpeg/dec/mozjpeg_dec.cpp | #include <emscripten/bind.h>
#include <emscripten/val.h>
#include "config.h"
#include "jpeglib.h"
extern "C" {
#include "cdjpeg.h"
}
using namespace emscripten;
thread_local const val Uint8ClampedArray = val::global("Uint8ClampedArray");
thread_local const val ImageData = val::global("ImageData");
val decode(std::s... | #include <emscripten/bind.h>
#include <emscripten/val.h>
#include "config.h"
#include "jpeglib.h"
extern "C" {
#include "cdjpeg.h"
}
using namespace emscripten;
thread_local const val Uint8ClampedArray = val::global("Uint8ClampedArray");
thread_local const val ImageData = val::global("ImageData");
val decode(std::s... | Update codecs/mozjpeg/dec/mozjpeg_dec.cpp | Update codecs/mozjpeg/dec/mozjpeg_dec.cpp
Co-authored-by: Ingvar Stepanyan <62070607b8a20742f77a132d590706c0c02d8f9a@google.com> | C++ | apache-2.0 | GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh |
65a2fa1d95d94787564fb08e80c3e784ee72285e | copasi/plot/CPlotSpecification.cpp | copasi/plot/CPlotSpecification.cpp | /* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/plot/CPlotSpecification.cpp,v $
$Revision: 1.7 $
$Name: $
$Author: gauges $
$Date: 2004/08/10 10:58:56 $
End CVS Header */
#include "model/CModel.h"
#include "CPlotSpecification.h"
CPlotSpecification::CPlotSpecification... | /* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/plot/CPlotSpecification.cpp,v $
$Revision: 1.8 $
$Name: $
$Author: ssahle $
$Date: 2004/12/17 14:49:17 $
End CVS Header */
#include "model/CModel.h"
#include "CPlotSpecification.h"
CPlotSpecification::CPlotSpecification... | put the curves in the object hierarchy | put the curves in the object hierarchy
| C++ | artistic-2.0 | jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI |
305f327590dd56c76ff61d25bbbe43ba62d45ea0 | core/roscpp/src/libros/service.cpp | core/roscpp/src/libros/service.cpp | /*
* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of condi... | /*
* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of condi... | Fix ros::service::exists() to set the TCP connection it's using to synchronous (#2737) | Fix ros::service::exists() to set the TCP connection it's using to synchronous (#2737)
Add probe header to ros::service::exists() to prevent rospy from complaining about a failed inbound connection (#802)
| C++ | bsd-3-clause | ros/ros,ros/ros,ros/ros |
3ee0127044a10a27576332f596d11b9baf5c816e | core/src/oned/ODDataBarReader.cpp | core/src/oned/ODDataBarReader.cpp | /*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
* Copyright 2020 Axel Waggershauser
*/
// SPDX-License-Identifier: Apache-2.0
#include "ODDataBarReader.h"
#include "BarcodeFormat.h"
#include "DecoderResult.h"
#include "GTIN.h"
#include "ODDataBarCommon.h"
#include "Result.h"
#include <unordered_set>
... | /*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
* Copyright 2020 Axel Waggershauser
*/
// SPDX-License-Identifier: Apache-2.0
#include "ODDataBarReader.h"
#include "BarcodeFormat.h"
#include "DecoderResult.h"
#include "GTIN.h"
#include "ODDataBarCommon.h"
#include "Result.h"
#include <unordered_set>
... | comment typo | ODDataBarReader: comment typo
| C++ | apache-2.0 | nu-book/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp |
20b771c7eaa62dcfd58f2c9fa5c4e8660b72d579 | cpp/tests/unit-tests/UtilTest.cpp | cpp/tests/unit-tests/UtilTest.cpp | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 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 - 2017 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... | Add remaining tests for Util.h | [C++] Add remaining tests for Util.h
| C++ | apache-2.0 | bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr |
94666d616188d23fb377be7d072552f5d03fc8c5 | crawler/main/signal.generator.cpp | crawler/main/signal.generator.cpp | /* Blink Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include... | /* Blink Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include... | Update signal.generator.cpp | Update signal.generator.cpp | C++ | mit | RobotTeam2/esp32.crawler,RobotTeam2/esp32.crawler,RobotTeam2/esp32.crawler,RobotTeam2/esp32.crawler |
7e1617b1a80a2edad10aa4a0212918ea1d46724d | yahttp/router.cpp | yahttp/router.cpp | /* @file
* @brief Concrete implementation of Router
*/
#include "yahttp.hpp"
#include "router.hpp"
namespace YaHTTP {
typedef funcptr::tuple<int,int> TDelim;
// router is defined here.
YaHTTP::Router Router::router;
void Router::map(const std::string& method, const std::string& url, THandlerFunction handl... | /* @file
* @brief Concrete implementation of Router
*/
#include "yahttp.hpp"
#include "router.hpp"
namespace YaHTTP {
typedef funcptr::tuple<int,int> TDelim;
// router is defined here.
YaHTTP::Router Router::router;
void Router::map(const std::string& method, const std::string& url, THandlerFunction handl... | Add route name to request, pretty print routes, encode URL parameters | Add route name to request, pretty print routes, encode URL parameters
| C++ | mit | cmouse/yahttp,cmouse/yahttp,cmouse/yahttp |
3175d088d0a878926bac2cc6021037b5049912ea | yahttp/router.hpp | yahttp/router.hpp | #ifndef _YAHTTP_ROUTER_HPP
#define _YAHTTP_ROUTER_HPP 1
/* @file
* @brief Defines router class and support structures
*/
#ifdef HAVE_CXX11
#include <functional>
#include <tuple>
#define HAVE_CPP_FUNC_PTR
#define IGNORE std::ignore
namespace funcptr = std;
#else
#ifdef HAVE_BOOST
#include <boost/function.hpp>
#includ... | #ifndef _YAHTTP_ROUTER_HPP
#define _YAHTTP_ROUTER_HPP 1
/* @file
* @brief Defines router class and support structures
*/
#ifdef HAVE_CXX11
#include <functional>
#include <tuple>
#define HAVE_CPP_FUNC_PTR
#define IGNORE std::ignore
namespace funcptr = std;
#else
#ifdef HAVE_BOOST
#include <boost/function.hpp>
#includ... | Add clear method to clear routes | router: Add clear method to clear routes
| C++ | mit | cmouse/yahttp,cmouse/yahttp,cmouse/yahttp |
d96eda42e531eabf57d4d16288d2a8af680af4ca | PWGDQ/dielectron/macrosLMEE/AddTask_shin_pPb.C | PWGDQ/dielectron/macrosLMEE/AddTask_shin_pPb.C | AliAnalysisTask *AddTask_shin_pPb(){
//get the current analysis manager
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTask_shin_pPb", "No analysis manager found.");
return 0;
}
//Do we have an MC handler?
Bool_t hasMC=(AliAnalysisManager::GetAn... | AliAnalysisTask *AddTask_shin_pPb(){
//get the current analysis manager
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTask_shin_pPb", "No analysis manager found.");
return 0;
}
//Do we have an MC handler?
Bool_t hasMC=(AliAnalysisManager::GetAn... | update ShinIchi's Add Task | update ShinIchi's Add Task
| C++ | bsd-3-clause | pchrista/AliPhysics,mkrzewic/AliPhysics,dmuhlhei/AliPhysics,dmuhlhei/AliPhysics,sebaleh/AliPhysics,mvala/AliPhysics,amatyja/AliPhysics,kreisl/AliPhysics,mvala/AliPhysics,adriansev/AliPhysics,amatyja/AliPhysics,fcolamar/AliPhysics,kreisl/AliPhysics,fbellini/AliPhysics,preghenella/AliPhysics,adriansev/AliPhysics,carstooo... |
42913fb3f6429c37f5dd3cfc289b25e426306049 | core/src/processing/failover.cc | core/src/processing/failover.cc | /*
** Copyright 2011 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed in the hope that... | /*
** Copyright 2011 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed in the hope that... | Fix dead lock on failover unload. | Fix dead lock on failover unload.
git-svn-id: a49aa41e49c69a6ab6ef43f172843a2fef6cb475@978 7c7d615a-03b3-410d-a316-1135b1bd9499
| C++ | apache-2.0 | centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker |
2aad0b4854aaab6bfbb568106bef851b81cba7b3 | Video.cpp | Video.cpp | #include "Video.h"
Video::Video(Memory *memory, CPU *cpu) {
this->memory = memory;
this->cpu = cpu;
this->createSDLWindow();
this->resetFrameBuffer();
this->renderGame();
this->scanlineCounter = MAX_VIDEO_CYCLES;
}
void Video::updateGraphics(short cycles) {
// printVideoRegistersState();
... | #include "Video.h"
Video::Video(Memory *memory, CPU *cpu) {
this->memory = memory;
this->cpu = cpu;
this->createSDLWindow();
this->resetFrameBuffer();
this->renderGame();
this->scanlineCounter = MAX_VIDEO_CYCLES;
}
void Video::updateGraphics(short cycles) {
// printVideoRegistersState();
... | Set mode HBLANK properly in LCD STATUS register. | Set mode HBLANK properly in LCD STATUS register.
| C++ | mit | Jonazan2/PatBoy,Jonazan2/PatBoy,Jonazan2/PatBoy,Jonazan2/PatBoy,Jonazan2/PatBoy |
9d9de40c48c9db02c9b42bea1295a7a92ff6015a | src/apps/calibrate_vignetting_response/calibrate_vignetting_response.cpp | src/apps/calibrate_vignetting_response/calibrate_vignetting_response.cpp | /******************************************************************************
* Copyright (c) 2016 Sergey Alexandrov
*
* 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 restricti... | /******************************************************************************
* Copyright (c) 2016 Sergey Alexandrov
*
* 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 restricti... | Use green color from Brewer palette in vignetting calibration app | Use green color from Brewer palette in vignetting calibration app
| C++ | mit | taketwo/radical,taketwo/radical,taketwo/radical |
0ad713261cbd03e02ce6116f571b53b4985ea506 | mzn2fzn.cpp | mzn2fzn.cpp | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <guido.tack@monash.edu>
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <guido.tack@monash.edu>
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... | Add switch for old/new flatzinc | Add switch for old/new flatzinc
| C++ | mpl-2.0 | nathanielbaxter/libminizinc,nathanielbaxter/libminizinc,tias/libminizinc,jjdekker/libminizinc,jjdekker/libminizinc,jjdekker/libminizinc,nathanielbaxter/libminizinc,nathanielbaxter/libminizinc,jjdekker/libminizinc,tias/libminizinc |
46519997e46f5088d627e537086cab14e8e14e6d | cores/arduino/stdlib_noniso.cpp | cores/arduino/stdlib_noniso.cpp | /*
core_esp8266_noniso.c - nonstandard (but usefull) conversion functions
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publ... | /*
core_esp8266_noniso.c - nonstandard (but usefull) conversion functions
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publ... | fix overflow problem | dtostrf: fix overflow problem
JIRA: ATLEDGE-315
| C++ | lgpl-2.1 | sgbihu/corelibs-arduino101,sgbihu/corelibs-arduino101,sgbihu/corelibs-arduino101,eriknyquist/corelibs-arduino101,01org/corelibs-arduino101,SidLeung/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,bigdinotech/corelibs-arduino101,linrjing/corelibs-arduino101,sandeepmistry/corelibs-arduino101,yashaswini-hanji/cor... |
81ebcdcf9d0b5e229f67a5caae9d1fee625030ff | RobotControlSotfware/RobotControl/src/controlmanager/mapdata/StartingPoint.cpp | RobotControlSotfware/RobotControl/src/controlmanager/mapdata/StartingPoint.cpp | //------------------------------------------------------------------------------------------------
// File: StartingPoint.cpp
// Project: LG Exec Ed Program
// Versions:
// 1.0 April 2017 - initial version
// Send and receives OpenCV Mat Images in a UDP message commpressed as Jpeg images
//----------------------------... | //------------------------------------------------------------------------------------------------
// File: StartingPoint.cpp
// Project: LG Exec Ed Program
// Versions:
// 1.0 April 2017 - initial version
// Send and receives OpenCV Mat Images in a UDP message commpressed as Jpeg images
//----------------------------... | reset postion 수정 | reset postion 수정
| C++ | apache-2.0 | orderlatte/mazerobot,orderlatte/mazerobot,orderlatte/mazerobot,orderlatte/mazerobot |
a916f7f5e9bbc096e7c6fab18be01b8013a39fe1 | lib/Frontend/ModuleDependencyCollector.cpp | lib/Frontend/ModuleDependencyCollector.cpp | //===--- ModuleDependencyCollector.cpp - Collect module dependencies ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- ModuleDependencyCollector.cpp - Collect module dependencies ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use toUppercase from include/clang/Basic/CharInfo.h | [CrashReproducer] Use toUppercase from include/clang/Basic/CharInfo.h
Use toUppercase instead of ::toupper()
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@265632 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
03da4f32fe82891ca7b9cfa6b0b707f34953d2fb | PWGDQ/dielectron/macrosLMEE/AddTask_rbailhac_ElectronEfficiencyV2_PbPb.C | PWGDQ/dielectron/macrosLMEE/AddTask_rbailhac_ElectronEfficiencyV2_PbPb.C | AliAnalysisTaskElectronEfficiencyV2* AddTask_rbailhac_ElectronEfficiencyV2_PbPb(Bool_t getFromAlien = kFALSE,
TString cFileName ="Config_rbailhac_ElectronEfficiencyV2_PbPb.C",
UInt_t trigger = AliVEvent::kINT7,
Bool_t rejpileup = kTRUE,
const Int_t CenMin = 0,
const In... | AliAnalysisTaskElectronEfficiencyV2* AddTask_rbailhac_ElectronEfficiencyV2_PbPb(Bool_t getFromAlien = kFALSE,
TString cFileName ="Config_rbailhac_ElectronEfficiencyV2_PbPb.C",
UInt_t trigger = AliVEvent::kINT7,
Bool_t rejpileup = kTRUE,
const Int_t CenMin = 0,
const In... | Fix single pte bins | Fix single pte bins
| C++ | bsd-3-clause | mpuccio/AliPhysics,rihanphys/AliPhysics,amaringarcia/AliPhysics,AMechler/AliPhysics,alisw/AliPhysics,alisw/AliPhysics,pchrista/AliPhysics,adriansev/AliPhysics,amaringarcia/AliPhysics,alisw/AliPhysics,dmuhlhei/AliPhysics,adriansev/AliPhysics,fcolamar/AliPhysics,rihanphys/AliPhysics,mpuccio/AliPhysics,alisw/AliPhysics,lc... |
6f3b16d9e63a63775d5f97c465f4a9a6d97b9c58 | unittests/Host/FileSystemTest.cpp | unittests/Host/FileSystemTest.cpp | //===-- FileSystemTest.cpp --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- FileSystemTest.cpp --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix signature in test to match rL346453 | [lldb] Fix signature in test to match rL346453
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@346478 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb |
82691cb185e6a0b3657efc444d74e42412eaf00a | Texture/Texture.cpp | Texture/Texture.cpp | /*
openfx-arena - https://github.com/olear/openfx-arena
Copyright (c) 2015, Ole-André Rodlie <olear@fxarena.net>
Copyright (c) 2015, FxArena DA <mail@fxarena.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions... | /*
openfx-arena - https://github.com/olear/openfx-arena
Copyright (c) 2015, Ole-André Rodlie <olear@fxarena.net>
Copyright (c) 2015, FxArena DA <mail@fxarena.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions... | add some params | Texture: add some params
| C++ | bsd-3-clause | MrKepzie/openfx-arena,MrKepzie/openfx-arena,MrKepzie/openfx-arena |
da442b4d59d0d2d18c63d3df1dde6f735480a9bd | Tipster/Tipster.cpp | Tipster/Tipster.cpp | /*
* Copyright 2015 Vale Tolpegin <valetolpegin@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Tipster.h"
#include <Application.h>
#include <Catalog.h>
#include <Directory.h>
#include <Entry.h>
#include <File.h>
#include <FindDirectory.h>
#include <Path.h>
#include ... | /*
* Copyright 2015 Vale Tolpegin <valetolpegin@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Tipster.h"
#include <Application.h>
#include <Catalog.h>
#include <Directory.h>
#include <Entry.h>
#include <File.h>
#include <FindDirectory.h>
#include <Path.h>
#include ... | Fix issues when no file is found on system | Fix issues when no file is found on system
| C++ | mit | HaikuArchives/Tipster,hannahyp/Tipster |
dba7e4cfe09e52ae7e6d298b0119b524d71724f0 | PbniHash.cpp | PbniHash.cpp | // PbniHash.cpp : PBNI class
#define _CRT_SECURE_NO_DEPRECATE
#include "PbniHash.h"
#include "libhashish.h"
// default constructor
PbniHash::PbniHash()
{
}
PbniHash::PbniHash( IPB_Session * pSession )
:m_pSession( pSession )
{
struct hi_init_set hi_set;
hi_set_zero(&hi_set);
hi_set_bucket_size... | // PbniHash.cpp : PBNI class
#define _CRT_SECURE_NO_DEPRECATE
#include "PbniHash.h"
#include "libhashish.h"
// default constructor
PbniHash::PbniHash()
{
}
PbniHash::PbniHash( IPB_Session * pSession )
:m_pSession( pSession )
{
struct hi_init_set hi_set;
hi_set_zero(&hi_set);
hi_set_bucket_size... | clean up (bis) | clean up (bis)
| C++ | mit | sebkirche/pbnihash,sebkirche/pbnihash,sebkirche/pbnihash |
49c43ac1d33146620a7288827f8a4da01f53be39 | C++/continuous-subarray-sum-ii.cpp | C++/continuous-subarray-sum-ii.cpp | // Time: O(n)
// Space: O(n)
class Solution {
public:
/**
* @param A an integer array
* @return A list of integers includes the index of
* the first number and the index of the last number
*/
vector<int> continuousSubarraySumII(vector<int>& A) {
if (A.empty()) {
... | // Time: O(n)
// Space: O(n)
class Solution {
public:
/**
* @param A an integer array
* @return A list of integers includes the index of
* the first number and the index of the last number
*/
vector<int> continuousSubarraySumII(vector<int>& A) {
if (A.empty()) {
... | Update continuous-subarray-sum-ii.cpp | Update continuous-subarray-sum-ii.cpp | C++ | mit | kamyu104/LintCode,jaredkoontz/lintcode,jaredkoontz/lintcode,kamyu104/LintCode,kamyu104/LintCode,jaredkoontz/lintcode |
c90d47e9bf27ef4d814eaee3f2f1abb2f1a813ec | NaoTHSoccer/Source/Motion/Engine/InverseKinematicsMotion/Motions/IKParameters.cpp | NaoTHSoccer/Source/Motion/Engine/InverseKinematicsMotion/Motions/IKParameters.cpp | /**
* @file IKParameters.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* Implement of parameters for IK motion
*/
#include "IKParameters.h"
IKParameters::IKParameters()
:ParameterList("IKParameters")
{
PARAMETER_REGISTER(footOffsetY) = 0;
// stand parameter
PARAMETER_REGISTER(stan... | /**
* @file IKParameters.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* Implement of parameters for IK motion
*/
#include "IKParameters.h"
IKParameters::IKParameters()
:ParameterList("IKParameters")
{
PARAMETER_REGISTER(footOffsetY) = 0;
// stand parameter
PARAMETER_REGISTER(stan... | make bodyPitch angle | bugfix: make bodyPitch angle
| C++ | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
85cb28f40ba5f925ba0105489f1435a5ea4528ab | content/child/runtime_features.cc | content/child/runtime_features.cc | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/child/runtime_features.h"
#include "base/command_line.h"
#include "content/public/common/content_switches.h"
#include "third_party/WebK... | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/child/runtime_features.h"
#include "base/command_line.h"
#include "content/public/common/content_switches.h"
#include "third_party/WebK... | Disable the Web Notification API on Android. | Disable the Web Notification API on Android.
Now that we always compile in the code, make sure that we don't
accidentally expose the API to websites.
BUG=115320
Review URL: https://chromiumcodereview.appspot.com/23514027
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@220937 0039d316-1c4b-4281-b951-d872f2087c9... | C++ | bsd-3-clause | mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,dushu1203/chromium.src,Chilledheart/chromium,littlstar/chromium.src,Chrom... |
d72958ecda785cf10edb5a40f9314c229add9b0b | src/mlpack/methods/logistic_regression/logistic_regression_main.cpp | src/mlpack/methods/logistic_regression/logistic_regression_main.cpp | /**
* @file logistic_regression_main.cpp
* @author Ryan Curtin
*
* Main executable for logistic regression.
*/
#include <mlpack/core.hpp>
#include "logistic_regression.hpp"
#include <mlpack/core/optimizers/sgd/sgd.hpp>
using namespace std;
using namespace mlpack;
using namespace mlpack::regression;
using namespa... | /**
* @file logistic_regression_main.cpp
* @author Ryan Curtin
*
* Main executable for logistic regression.
*/
#include <mlpack/core.hpp>
#include "logistic_regression.hpp"
#include <mlpack/core/optimizers/sgd/sgd.hpp>
using namespace std;
using namespace mlpack;
using namespace mlpack::regression;
using namespa... | Fix confusion in error message | Fix confusion in error message
The error message was "missing output_model",
while the variable used for detecting it was "outputFile",
which refers to the testing output, rather than the model output. | C++ | bsd-3-clause | darcyliu/mlpack,darcyliu/mlpack,theranger/mlpack,ajjl/mlpack,palashahuja/mlpack,ranjan1990/mlpack,palashahuja/mlpack,theranger/mlpack,ajjl/mlpack,palashahuja/mlpack,ajjl/mlpack,darcyliu/mlpack,ranjan1990/mlpack,theranger/mlpack,ranjan1990/mlpack |
338f5127c4d40c5c6a40b130e83b41e42ed8bdf7 | test/TestPolarDecoder.cpp | test/TestPolarDecoder.cpp | #include <gtest/gtest.h>
#include <cstdlib>
#include "FEC/Polar.h"
TEST(PolarDecoderTest, CorruptedPacket) {
constexpr std::size_t N = 2048u;
constexpr std::size_t M = 2048u;
constexpr std::size_t K = 1024u;
using TestDataIndices = Thiemar::Polar::PolarCodeConstructor<N, M, K, -2>::data_index_sequence;... | #include <gtest/gtest.h>
#include <cstdlib>
#include "FEC/Polar.h"
TEST(PolarDecoderTest, CorruptedPacket) {
constexpr std::size_t N = 1024u;
constexpr std::size_t M = 1024u;
constexpr std::size_t K = 512u;
using TestDataIndices = Thiemar::Polar::PolarCodeConstructor<N, M, K, -2>::data_index_sequence;
... | Update corrupted packet test cases | Update corrupted packet test cases
| C++ | mit | thiemar/fec,thiemar/fec,thiemar/fec |
944c80e14407bf49b75d50052fa15459524bfd8f | test/compile_function.cpp | test/compile_function.cpp | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE compile_function
#include <boost/test/unit_test.hpp>
#include "../src/compile_function.hpp"
#include "../src/core_unique_ids.hpp"
#include "../src/error/compile_exception.hpp"
#include "state_utils.hpp"
#include <llvm/IR/Function.h>
#include <llvm/IR/DerivedTypes... | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE compile_function
#include <boost/test/unit_test.hpp>
#include "../src/compile_function.hpp"
#include "../src/core_unique_ids.hpp"
#include "../src/error/compile_exception.hpp"
#include "state_utils.hpp"
#include <llvm/IR/Function.h>
#include <llvm/IR/DerivedTypes... | refactor test, add alloca/store/load test | refactor test, add alloca/store/load test
| C++ | mit | mbid/asm-lisp |
9eaf7a6f859546b50de2b21eb5f451df46887c98 | test/cpp/util/cli_call.cc | test/cpp/util/cli_call.cc | /*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | /*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | fix truncate bug in grpc_cli | fix truncate bug in grpc_cli
| C++ | apache-2.0 | zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc,zhimingxie/grpc |
dd5726b7f0f0db9095a593c96e300b195e663649 | test/server_json_test.cpp | test/server_json_test.cpp | /*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-... | /*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-... | Fix tests value checkings | Fix tests value checkings
Change-Id: Ic0cc0c580d5418e005f47caaf39a2ae83025e9d8
| C++ | lgpl-2.1 | lulufei/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-media-server,lulufei/kurento-media-server |
f6777cd5d3418657bd7605660393aaeb950cacb7 | Rendering/Core/vtkCompositePolyDataMapper2.cxx | Rendering/Core/vtkCompositePolyDataMapper2.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCompositePolyDataMapper2.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCompositePolyDataMapper2.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... | include <algorithm> for std::max | vtkCompositePolyDataMapper2: include <algorithm> for std::max
Change-Id: I48c0bb972929e51945d9563088b8633f371fa64f
| C++ | bsd-3-clause | SimVascular/VTK,msmolens/VTK,hendradarwin/VTK,demarle/VTK,berendkleinhaneveld/VTK,ashray/VTK-EVM,jmerkow/VTK,jmerkow/VTK,sumedhasingla/VTK,candy7393/VTK,johnkit/vtk-dev,johnkit/vtk-dev,gram526/VTK,mspark93/VTK,ashray/VTK-EVM,hendradarwin/VTK,demarle/VTK,msmolens/VTK,sankhesh/VTK,sankhesh/VTK,candy7393/VTK,ashray/VTK-EV... |
c3bb5f222ff404ec7dcba16ddc3c4246c7ee5d4f | test/applications/elliptic/phasefield/phasefield_patch_operator.cpp | test/applications/elliptic/phasefield/phasefield_patch_operator.cpp | #include <test/catch.hpp>
#include <applications/elliptic/phasefield/phasefield_patch_operator.h>
#include <test/utils/DomainReader.h>
#include <ThunderEgg/ValVector.h>
#include <ThunderEgg/BiLinearGhostFiller.h>
#include <ThunderEgg/DomainTools.h>
using namespace std;
using namespace ThunderEgg;
TEST_CASE("default l... | #include <test/catch.hpp>
#include <applications/elliptic/phasefield/phasefield_patch_operator.h>
#include <test/utils/DomainReader.h>
#include <ThunderEgg/ValVector.h>
#include <ThunderEgg/BiLinearGhostFiller.h>
#include <ThunderEgg/DomainTools.h>
using namespace std;
using namespace ThunderEgg;
TEST_CASE("default l... | fix test | fix test
| C++ | bsd-2-clause | ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw |
2e1cc0de9f4f20d47f76458aefc710015cad8cc1 | tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp | tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Comme... | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Comme... | add comments/spec. to one UT case. | add comments/spec. to one UT case.
| C++ | lgpl-2.1 | kaltsi/qt-mobility,tmcguire/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,kaltsi/qt-mobility,KDE/android-qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,tmcguire/qt-mobility,KDE/android-qt-mobility,enthought/qt-mobilit... |
2f98f68badbc1f198fb22541da11a283200d1578 | searchcore/src/vespa/searchcore/proton/matching/unpacking_iterators_optimizer.cpp | searchcore/src/vespa/searchcore/proton/matching/unpacking_iterators_optimizer.cpp | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "unpacking_iterators_optimizer.h"
#include <vespa/log/log.h>
LOG_SETUP(".matching.unpacking_iterators_optimizer");
#include "querynodes.h"
#include <vespa/vespalib/util/classname.h>
#include <ves... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "unpacking_iterators_optimizer.h"
#include <vespa/log/log.h>
LOG_SETUP(".matching.unpacking_iterators_optimizer");
#include "querynodes.h"
#include <vespa/vespalib/util/classname.h>
#include <ves... | Remove redundant move. | Remove redundant move.
| 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 |
b87f34fd44a367e413f7b33b064acec2beff5ec0 | sirius-suite/regex/pthread/main.cpp | sirius-suite/regex/pthread/main.cpp | #include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <pthread.h>
#include "slre.h"
#include "../../utils/timer.h"
#include "../../utils/memoryman.h"
#define MAXCAPS 1000000
#define EXPRESSIONS 100
#define QUESTIONS 200
/*... | #include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <pthread.h>
#include "slre.h"
#include "../../utils/timer.h"
#include "../../utils/memoryman.h"
#define MAXCAPS 1000000
#define EXPRESSIONS 100
#define QUESTIONS 200
/*... | fix resource leak | sirius-suite/regex/pthread/main.cpp: fix resource leak
Close opended files before return.
Signed-off-by: Danny Al-Gaaf <473e39ac77cf392f0dd9bacde8409de76c14d006@bisect.de>
| C++ | bsd-3-clause | claritylab/sirius,hoehnp/sirius,hoehnp/sirius,claritylab/sirius,claritylab/sirius,hoehnp/sirius,claritylab/sirius,hoehnp/sirius,hoehnp/sirius,claritylab/sirius,claritylab/sirius,hoehnp/sirius,hoehnp/sirius,claritylab/sirius |
109fefd92d74f33ec7efe36ad3791726099a5c16 | data-structures/chain/chain.cpp | data-structures/chain/chain.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include "Myexception.h"
#include "chain.h"
using namespace std;
void chain :: readAndStoreFromFile(char* fileName)
{
//This function reads integers from the file given by fileName then store them in the chain
ifstream infile(fileName) ;
string line;
w... | #include <iostream>
#include <fstream>
#include <sstream>
#include "Myexception.h"
#include "chain.h"
using namespace std;
void chain :: readAndStoreFromFile(char* fileName)
{
//This function reads integers from the file given by fileName then store them in the chain
ifstream infile(fileName) ;
string line;
w... | Update chain.cpp | Update chain.cpp | C++ | mit | atthehotcorner/coursework,atthehotcorner/coursework,atthehotcorner/coursework |
29d315d16f9521defe5c96d81fb29d4a4d166bd9 | chrome/browser/chromeos/login/webui_login_display_host.cc | chrome/browser/chromeos/login/webui_login_display_host.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/webui_login_display_host.h"
#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/s... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/webui_login_display_host.h"
#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/s... | Remove unnecessary NOTREACHED in WebUILoginDisplayHost::Observe | chromeos: Remove unnecessary NOTREACHED in WebUILoginDisplayHost::Observe
There should no be NOTREACHED in this method since BaseLoginDisplayHost::Observe() is handling other types of notifications.
BUG=145838
TEST=successfully login with debug build
Review URL: https://chromiumcodereview.appspot.com/10907020
git-s... | C++ | bsd-3-clause | M4sse/chromium.src,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,dednal/chromium.src,Chilledheart/chromium,patrickm/chromium.src,zcbe... |
db7ecc7a4653caa21e074f8dd135f624bbe1b44d | pakfile.cpp | pakfile.cpp | #include "pakfile.h"
#include <stdexcept>
#include <iterator>
#include <algorithm>
#include <cstring>
#if defined(_MSC_VER)
# pragma warning(disable: 4996)
# pragma warning(disable: 4244)
#endif
namespace scpak
{
void BinaryReader::readBytes(int size, byte buf[])
{
for (int i=0; i<size; ++i)
... | #include "pakfile.h"
#include <stdexcept>
#include <iterator>
#include <algorithm>
#include <cstring>
#if defined(_MSC_VER)
# pragma warning(disable: 4996)
# pragma warning(disable: 4244)
#endif
namespace scpak
{
void BinaryReader::readBytes(int size, byte buf[])
{
for (int i=0; i<size; ++i)
... | fix bugs | fix bugs
| C++ | mit | qnnnnez/scpak |
9a03e1c65425d55bb078eba10cf76f77d7ba22da | tests/TestHttpRequest.cpp | tests/TestHttpRequest.cpp | // Copyright Paul Dardeau, SwampBits LLC 2014
// BSD License
#include "TestHttpRequest.h"
#include "HttpRequest.h"
#include "MockSocket.h"
// Modeled after tests from:
// http://subversion.assembla.com/svn/opencats/trunk/cats-0.9.2/lib/simpletest/test/http_test.php
static const std::string GET_PATH = "http://a.valid... | // Copyright Paul Dardeau, SwampBits LLC 2014
// BSD License
#include "TestHttpRequest.h"
#include "HttpRequest.h"
#include "MockSocket.h"
// Modeled after tests from:
// http://subversion.assembla.com/svn/opencats/trunk/cats-0.9.2/lib/simpletest/test/http_test.php
static const std::string GET_PATH = "http://a.valid... | add todo markers for un-implemented tests | add todo markers for un-implemented tests
| C++ | bsd-3-clause | pauldardeau/misere |
30201f32a0d7b07172d6a63b8ab7b66ae5a99307 | plugins/ufs/ufs-plugin.cpp | plugins/ufs/ufs-plugin.cpp | #include <functional>
#include <sstream>
#include <string>
#include <sampgdk/core.h>
#include <sampgdk/plugin.h>
#include "ufs.h"
namespace {
class UFSPlugin: public ThisPlugin {
public:
UFSPlugin(): loaded_stuff_(false) {}
void LoadStuff() {
if (!loaded_stuff_) {
ufs::UFS::Instance().LoadPlugins();
... | #include <functional>
#include <sstream>
#include <string>
#include <sampgdk/core.h>
#include <sampgdk/plugin.h>
#include "ufs.h"
namespace {
bool can_load_stuff = false;
class UFSPlugin: public ThisPlugin {
public:
UFSPlugin(): loaded_stuff_(false) {}
void LoadStuff() {
if (!loaded_stuff_) {
ufs::UFS... | Move stuff loading to ProcessTick() | Move stuff loading to ProcessTick()
Since according to my findings all "normal" scripts are loaded in just one
server tick, we can detect when the last script got loaded.
| C++ | apache-2.0 | Zeex/sampgdk,Zeex/sampgdk,WopsS/sampgdk,WopsS/sampgdk,WopsS/sampgdk,Zeex/sampgdk |
5481dd36a4c66f7406337d5ee9fb131b2200fbba | Coloration/main.cxx | Coloration/main.cxx | // Copyright(c) 2016, Kitware SAS
// www.kitware.fr
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met :
//
// 1. Redistributions of source code must retain the above copyright notice,
// this lis... | // Copyright(c) 2016, Kitware SAS
// www.kitware.fr
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met :
//
// 1. Redistributions of source code must retain the above copyright notice,
// this lis... | Add new array to store the number of projected depth map for each mesh point | [COLORATION] Add new array to store the number of projected depth map for each mesh point
| C++ | bsd-3-clause | tcoulange/CudaDepthMapIntegration |
ce30542dbaa3e6f5e68b742a34cda993a351e15d | test/attitude.cpp | test/attitude.cpp | #include <cstdio>
#include <stdexcept>
#include <matrix/math.hpp>
#include "test_macros.hpp"
using namespace matrix;
template class Quaternion<float>;
template class Euler<float>;
template class Dcm<float>;
int main()
{
double eps = 1e-6;
// check data
Eulerf euler_check(0.1f, 0.2f, 0.3f);
Quatf q_... | #include <cstdio>
#include <stdexcept>
#include <matrix/math.hpp>
#include "test_macros.hpp"
using namespace matrix;
template class Quaternion<float>;
template class Euler<float>;
template class Dcm<float>;
int main()
{
double eps = 1e-6;
// check data
Eulerf euler_check(0.1f, 0.2f, 0.3f);
Quatf q_... | Fix output for unit test. | Fix output for unit test.
| C++ | bsd-3-clause | PX4/Matrix,PX4/Matrix,PX4/Matrix |
76777b1d4a2edef94a41704777d6043857931f93 | 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... | clear before load to avoid segfault | RobotStateVisualization: clear before load to avoid segfault
rviz::Robot deletes its complete SceneNode structure in the `load()` method.
However, `RobotStateVisualization::render_shapes_` keeps raw pointers
to some of these nodes (the attached objects), so these should be cleared
to avoid broken pointers.
Additional... | C++ | bsd-3-clause | davetcoleman/moveit,davetcoleman/moveit,davetcoleman/moveit,ros-planning/moveit,ros-planning/moveit,ros-planning/moveit,davetcoleman/moveit,ros-planning/moveit,ros-planning/moveit |
a1db7c7f684646b54fc424336afa08313c0813e9 | lib/src/utils.hpp | lib/src/utils.hpp | /* Copyright (C) 2016-2019 INRA
*
* 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 to use, copy, modify, merge, publish,
* ... | /* Copyright (C) 2016-2019 INRA
*
* 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 to use, copy, modify, merge, publish,
* ... | remove constexpr trim functions | utils: remove constexpr trim functions
On appveyor image, mingw64 for both 32 and 64 bits seems use no
constexpr std::string_view find_[first_|last_][not_]_of functions.
| C++ | mit | quesnel/baryonyx,quesnel/baryonyx,quesnel/baryonyx |
b58e1fc57387e57f79545d39fcb964e0bc7fff97 | test/diagonal.cpp | test/diagonal.cpp | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ... | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ... | Add missing template keyword | Add missing template keyword
| C++ | bsd-3-clause | madlib/eigen,madlib/eigen,madlib/eigen,madlib/eigen |
36390239b686a7a1824d0844f4dcaab6690f38a3 | Pi.cpp | Pi.cpp | #include <cstdio>
#include <cstdlib>
#include <mpi.h>
#include <cstring>
#include <cassert>
const int SHIFT = 32;
const unsigned long long BASE = (unsigned long long)1 << SHIFT;
int VALID = 1000000;
int LEN = VALID / 8 + 2;
void add(unsigned long long dest[], unsigned src[]) {
for (int i = LEN - 1; i >= 0; i--)
if ... | #include <cstdio>
#include <cstdlib>
#include <mpi.h>
#include <cstring>
#include <cassert>
const int SHIFT = 32;
const unsigned long long BASE = (unsigned long long)1 << SHIFT;
int VALID = 1000000;
int LEN = VALID / 8 + 2;
void add(unsigned long long dest[], unsigned src[]) {
for (int i = LEN - 1; i >= 0; i--)
if ... | change BBP to BF formula | change BBP to BF formula
| C++ | mit | Lw-Cui/PI,Lw-Cui/PI,Lw-Cui/PI |
c56ff195318c8cb4276ee59d1a9b215431f851b3 | Source/Noesis.Javascript/JavascriptContext.cpp | Source/Noesis.Javascript/JavascriptContext.cpp | ////////////////////////////////////////////////////////////////////////////////////////////////////
// File: JavascriptContext.cpp
//
// Copyright 2010 Noesis Innovation Inc. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that th... | ////////////////////////////////////////////////////////////////////////////////////////////////////
// File: JavascriptContext.cpp
//
// Copyright 2010 Noesis Innovation Inc. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that th... | Fix warnings about using old string manipulation functions. | Fix warnings about using old string manipulation functions.
| C++ | bsd-2-clause | JavascriptNet/Javascript.Net,JavascriptNet/Javascript.Net |
5c72d8904cbb3aa32c578470086cc10cdc9b271f | re2jit/threads.cc | re2jit/threads.cc | #include <stdlib.h>
#include <string.h>
#include "threads.h"
static struct rejit_thread_t *rejit_thread_acquire(struct rejit_threadset_t *r)
{
struct rejit_thread_t *t;
if (r->free) {
t = r->free;
r->free = t->next;
return t;
}
t = (struct rejit_thread_t *) malloc(sizeof(str... | #include <stdlib.h>
#include <string.h>
#include "threads.h"
static struct rejit_thread_t *rejit_thread_acquire(struct rejit_threadset_t *r)
{
struct rejit_thread_t *t;
if (r->free) {
t = r->free;
r->free = t->next;
return t;
}
t = (struct rejit_thread_t *) malloc(sizeof(str... | Fix a typo. | Fix a typo.
`thread_match` should return *1* if everything's OK.
| C++ | mit | pyos/re2jit,pyos/re2jit,pyos/re2jit |
9636a3399376e98b89c1e8fa9beff52904db8c93 | redis/commands.cc | redis/commands.cc | /*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* 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... | /*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* 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... | fix use-after-free crash in "exists" command | redis: fix use-after-free crash in "exists" command
A missing "&" caused the key stored in a long-living command to be copied
and the copy quickly freed - and then used after freed.
This caused the test test_strings.py::test_exists_multiple_existent_key for
this feature to frequently crash.
Fixes #6469
Signed-off-by... | C++ | agpl-3.0 | avikivity/scylla,scylladb/scylla,avikivity/scylla,scylladb/scylla,avikivity/scylla,scylladb/scylla,scylladb/scylla |
f2636e0ef1edc2d71839d8ae7eedb0a412f02604 | test/geometry_encoding.cpp | test/geometry_encoding.cpp | #include "catch.hpp"
#include "encoding_util.hpp"
// https://github.com/mapbox/mapnik-vector-tile/issues/36
TEST_CASE( "test 1a", "should round trip without changes" ) {
mapnik::geometry::point g(0,0);
std::string expected(
"move_to(0,0)\n"
);
CHECK(compare(g) == expected);
}
/*
TEST_CASE( "test... | #include "catch.hpp"
#include "encoding_util.hpp"
#include <mapnik/geometry_correct.hpp>
#include <mapnik/geometry_unique.hpp>
// https://github.com/mapbox/mapnik-vector-tile/issues/36
TEST_CASE( "test 1a", "should round trip without changes" ) {
mapnik::geometry::point g(0,0);
std::string expected(
"move... | call mapnik::geometry_unique(geom) to remove coincident points | call mapnik::geometry_unique(geom) to remove coincident points
| C++ | bsd-3-clause | mapbox/mapnik-vector-tile,landsurveyorsunited/mapnik-vector-tile,mapbox/mapnik-vector-tile,mapbox/mapnik-vector-tile,tomhughes/mapnik-vector-tile,landsurveyorsunited/mapnik-vector-tile,landsurveyorsunited/mapnik-vector-tile,tomhughes/mapnik-vector-tile,tomhughes/mapnik-vector-tile,tomhughes/mapnik-vector-tile,mapbox/ma... |
0f3195680b07eb0eef2376b49ba0f451c699df28 | libgearman/run.cc | libgearman/run.cc | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... | Fix issue around when we re-enter loop for GEARMAN_TASK_STATE_EXCEPTION (this is now correct... but the original code was fine as well). | Fix issue around when we re-enter loop for GEARMAN_TASK_STATE_EXCEPTION (this is now correct... but the original code was fine as well).
| C++ | bsd-3-clause | dm/gearmand,beeksiwaais/gearmand,dm/gearmand,beeksiwaais/gearmand,dm/gearmand,beeksiwaais/gearmand,beeksiwaais/gearmand,dm/gearmand |
64665f99375e269217f91f853af59864eb2b7f59 | test/lex/single_tokens.cpp | test/lex/single_tokens.cpp | #include <gtest/gtest.h>
#include <fp/diagnostic/print/to_ostream.h>
#include <fp/lex/tokenize.h>
namespace fp::lex {
template <token EXPECTED_TOKEN>
void assert_single_token(std::string_view source_str) {
std::string_view name = token_name(EXPECTED_TOKEN);
diagnostic::report report;
fp::source_file file... | #include <gtest/gtest.h>
#include <fp/diagnostic/print/to_ostream.h>
#include <fp/lex/tokenize.h>
namespace fp::lex {
template <token EXPECTED_TOKEN>
void assert_single_token(std::string_view source_str) {
std::string_view name = token_name(EXPECTED_TOKEN);
diagnostic::report report;
fp::source_file file... | Fix single tokens test | Fix single tokens test
| C++ | apache-2.0 | sosz/fp,sosz/fp |
f19bb1753a22a8982a4e8f7d7d59a4914659791b | Code/IO/itkGDCMSeriesFileNames.cxx | Code/IO/itkGDCMSeriesFileNames.cxx | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkGDCMSeriesFileNames.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright... | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkGDCMSeriesFileNames.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright... | add null pointer check | BUG: add null pointer check
| C++ | apache-2.0 | LucasGandel/ITK,heimdali/ITK,blowekamp/ITK,daviddoria/itkHoughTransform,fedral/ITK,rhgong/itk-with-dom,msmolens/ITK,cpatrick/ITK-RemoteIO,heimdali/ITK,eile/ITK,CapeDrew/DCMTK-ITK,fuentesdt/InsightToolkit-dev,CapeDrew/DITK,BRAINSia/ITK,cpatrick/ITK-RemoteIO,fedral/ITK,malaterre/ITK,atsnyder/ITK,ajjl/ITK,zachary-williams... |
cfeb515256aade71cc44191f74120d1a2cc6a015 | aeron-driver/src/main/cpp/media/InetAddress.cpp | aeron-driver/src/main/cpp/media/InetAddress.cpp | /*
* Copyright 2015 Real Logic 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 law or agreed to ... | /*
* Copyright 2015 Real Logic 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 law or agreed to ... | Fix random failure in getaddrinfo lookup. | [C++]: Fix random failure in getaddrinfo lookup.
| C++ | apache-2.0 | mikeb01/Aeron,gkamal/Aeron,real-logic/Aeron,galderz/Aeron,oleksiyp/Aeron,oleksiyp/Aeron,real-logic/Aeron,galderz/Aeron,mikeb01/Aeron,galderz/Aeron,tbrooks8/Aeron,oleksiyp/Aeron,tbrooks8/Aeron,mikeb01/Aeron,gkamal/Aeron,real-logic/Aeron,tbrooks8/Aeron,EvilMcJerkface/Aeron,EvilMcJerkface/Aeron,EvilMcJerkface/Aeron,galder... |
956fa518a7cd213e3023691b33747448931a3d7a | tests/unit/test_child.cpp | tests/unit/test_child.cpp | /*
* Copyright (c) 2018, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | /*
* Copyright (c) 2018, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | update test_child to use Clear() instead of memset (#4248) | [tests] update test_child to use Clear() instead of memset (#4248)
| C++ | bsd-3-clause | lanyuwen/openthread,jwhui/openthread,chshu/openthread,librasungirl/openthread,bukepo/openthread,srickardti/openthread,abtink/openthread,jwhui/openthread,librasungirl/openthread,openthread/openthread,chshu/openthread,lanyuwen/openthread,srickardti/openthread,lanyuwen/openthread,openthread/openthread,bukepo/openthread,jw... |
8af91146c45d1be0026c5d208e5d48a83f3e68dd | test/unit/text/shaping.cpp | test/unit/text/shaping.cpp | #include "catch.hpp"
#include <mapnik/text/icu_shaper.hpp>
#include <mapnik/text/harfbuzz_shaper.hpp>
#include <mapnik/text/font_library.hpp>
#include <mapnik/unicode.hpp>
namespace {
void test_shaping( mapnik::font_set const& fontset, mapnik::face_manager& fm,
std::vector<std::tuple<unsigned, unsig... | #include "catch.hpp"
#include <mapnik/text/icu_shaper.hpp>
#include <mapnik/text/harfbuzz_shaper.hpp>
#include <mapnik/text/font_library.hpp>
#include <mapnik/unicode.hpp>
namespace {
void test_shaping( mapnik::font_set const& fontset, mapnik::face_manager& fm,
std::vector<std::tuple<unsigned, unsig... | add an extra test | add an extra test
| C++ | lgpl-2.1 | naturalatlas/mapnik,tomhughes/mapnik,mapnik/mapnik,lightmare/mapnik,lightmare/mapnik,tomhughes/mapnik,naturalatlas/mapnik,tomhughes/mapnik,naturalatlas/mapnik,mapnik/mapnik,lightmare/mapnik,naturalatlas/mapnik,tomhughes/mapnik,mapnik/mapnik,mapnik/mapnik,lightmare/mapnik |
9812b44c624ea00596b7a4c3022b6e98340e7c77 | net.cc | net.cc | /*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*
*/
#include "net.hh"
#include <utility>
using std::move;
namespace net {
constexpr size_t packet::internal_data_size;
void packet::linearize(size_t at_frag, size_t desired_size) {
size_t nr_frags = 0;
size_t accum_size = 0;
while (accum_size < desired... | /*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*
*/
#include "net.hh"
#include <utility>
using std::move;
namespace net {
constexpr size_t packet::internal_data_size;
void packet::linearize(size_t at_frag, size_t desired_size) {
size_t nr_frags = 0;
size_t accum_size = 0;
while (accum_size < desired... | add missing interface:: and l3_protocol:: send() functions | net: add missing interface:: and l3_protocol:: send() functions
| C++ | agpl-3.0 | tempbottle/scylla,syuu1228/seastar,raphaelsc/seastar,kjniemi/seastar,guiquanz/scylla,bowlofstew/scylla,chunshengster/seastar,capturePointer/scylla,rluta/scylla,scylladb/scylla,gwicke/scylla,kjniemi/scylla,tempbottle/scylla,linearregression/scylla,dreamsxin/seastar,kangkot/scylla,koolhazz/seastar,asias/scylla,bowlofstew... |
d102a4d533454c5149d79e2f81723e23958a4200 | nw.cpp | nw.cpp | // Copyright (c) 2010 The Chromium Embedded Framework 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 <cstdlib>
#include <stdio.h>
#include <sstream>
#include <string>
#include "base/file_util.h"
#include "base/json/json_fi... | // Copyright (c) 2010 The Chromium Embedded Framework 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 <cstdlib>
#include <stdio.h>
#include <sstream>
#include <string>
#include "base/file_util.h"
#include "base/json/json_fi... | Use string16 when manipulating FilePath and string | Use string16 when manipulating FilePath and string
| C++ | mit | dougmolineux/nw.js,Sunggil/nw.js,advisory/nw.js,zhangtianye/node-webkit,sumyfly/nw.js,initialjk/node-webkit,wakermahmud/nw.js,angeliaz/nw.js,alex-zhang/nw.js,techlabs28/nw.js,luiseduardohdbackup/nw.js,baiwyc119/nw.js,wakermahmud/nw.js,amoylel/nw.js,chinakids/nw.js,artBrown/nw.js,angeliaz/nw.js,iesus17/nw.js,VolosSoftwa... |
cdc921b6699580f801fb7a0d0c43182c1ae0bce0 | core/src/wallet/algorand/operations/AlgorandOperation.cpp | core/src/wallet/algorand/operations/AlgorandOperation.cpp | /*
* AlgorandOperation
*
* Created by Rémi Barjon on 12/05/2020.
*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ledger
*
* 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 r... | /*
* AlgorandOperation
*
* Created by Rémi Barjon on 12/05/2020.
*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ledger
*
* 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 r... | Fix Opt in detection for axfer transaction (#58) | Fix Opt in detection for axfer transaction (#58)
| C++ | mit | LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core |
09f32fc0eb5eaf7fc18c6f342a5c34d8075856ce | tests/ExtruderPlanTest.cpp | tests/ExtruderPlanTest.cpp | //Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <numeric> //For calculating averages.
#include <gtest/gtest.h>
#include "../src/LayerPlan.h" //Code under test.
namespace cura
{
/*!
* A fixture containing some sets of GCodePaths to test with.
*/
class ... | //Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <numeric> //For calculating averages.
#include <gtest/gtest.h>
#include "../src/LayerPlan.h" //Code under test.
namespace cura
{
/*!
* A fixture containing some sets of GCodePaths to test with.
*/
class ... | Use isTravelPath on the GCodePathConfig instead of checking multiple types | Use isTravelPath on the GCodePathConfig instead of checking multiple types
This should break less often if we add new types of paths.
Contributes to issue CURA-7279.
| C++ | agpl-3.0 | Ultimaker/CuraEngine,Ultimaker/CuraEngine |
acc509a77b6deeed0b3994a933d5cde291e17df6 | tests/auto/bic/tst_bic.cpp | tests/auto/bic/tst_bic.cpp | /****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No... | /****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No... | Add usefull debug output to the bic test | Add usefull debug output to the bic test
| C++ | lgpl-2.1 | radekp/qt,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,radekp/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,radekp/qt,pruiz/wkhtmltopdf-qt,radekp/qt,pruiz/wkhtmltopdf-qt,radekp/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtml... |
950c831d4562e8c835bf76051282bff09b2b5d08 | tests/test_ivfpq_codec.cpp | tests/test_ivfpq_codec.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 <cstdio>
#include <cstdlib>
#include <random>
#include <gtest/gtest.h>
#include <faiss/IndexIVFPQ.h>
#include <faiss/In... | /**
* 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 <cstdio>
#include <cstdlib>
#include <random>
#include <omp.h>
#include <gtest/gtest.h>
#include <faiss/IndexIVFPQ.h>
... | Fix number of threads in test_ivfpq_codec when running in sandcastle | Fix number of threads in test_ivfpq_codec when running in sandcastle
Summary: When running in a heavily parallelized env, the test becomes very slow and causes timeouts. Here we reduce the nb of threads.
Reviewed By: wickedfoo, Ben0mega
Differential Revision: D25921771
fbshipit-source-id: 1e0aacbb3e4f6e8f33ec893984... | C++ | mit | facebookresearch/faiss,facebookresearch/faiss,facebookresearch/faiss,facebookresearch/faiss |
3cab8f39e7caab74294ccba6c9a81c19475a31cf | GALGO-1.0/src/GeneticAlgorithm.hpp | GALGO-1.0/src/GeneticAlgorithm.hpp | //=================================================================================================
// Copyright (C) 2017 Olivier Mallet - All Rights Reserved
//=================================================================================================
#ifndef GENETICALGO... | //=================================================================================================
// Copyright (C) 2017 Olivier Mallet - All Rights Reserved
//=================================================================================================
#ifndef GENETICALGO... | Update GeneticAlgorithm.hpp | Update GeneticAlgorithm.hpp | C++ | mit | olmallet81/GALGO-2.0 |
83a2ffd953272159c41dc079a33a0a8ada977710 | IO/Infovis/vtkNewickTreeReader.cxx | IO/Infovis/vtkNewickTreeReader.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkNewickTreeReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkNewickTreeReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... | fix lingering off-by-one error | fix lingering off-by-one error
The arrays added to the EdgeData and VertexData of the newly
created tree were one tuple larger than they should have been.
Change-Id: I4a33585a98f274ecfeb69c66ced5244a895f6fad
| C++ | bsd-3-clause | gram526/VTK,berendkleinhaneveld/VTK,keithroe/vtkoptix,sumedhasingla/VTK,msmolens/VTK,sankhesh/VTK,keithroe/vtkoptix,jmerkow/VTK,hendradarwin/VTK,gram526/VTK,keithroe/vtkoptix,sumedhasingla/VTK,SimVascular/VTK,sankhesh/VTK,jmerkow/VTK,candy7393/VTK,jmerkow/VTK,demarle/VTK,johnkit/vtk-dev,gram526/VTK,mspark93/VTK,mspark9... |
f34e568fc6c4b62df7b9af87fa828d250704643a | tree/src/TBranchClones.cxx | tree/src/TBranchClones.cxx | // @(#)root/tree:$Name: $:$Id: TBranchClones.cxx,v 1.3 2000/09/29 07:51:12 brun Exp $
// Author: Rene Brun 11/02/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | // @(#)root/tree:$Name: $:$Id: TBranchClones.cxx,v 1.4 2000/12/04 16:45:09 brun Exp $
// Author: Rene Brun 11/02/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Fix a bug in TBranchClones.cxx in case the class in the TClonesArray has a member that is a multi-dim array (thanks Emmanuel Gangler) | Fix a bug in TBranchClones.cxx in case the class in the TClonesArray
has a member that is a multi-dim array (thanks Emmanuel Gangler)
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@1145 27541ba8-7e3a-0410-8455-c3a389f83636
| C++ | lgpl-2.1 | tc3t/qoot,omazapa/root-old,perovic/root,gbitzes/root,esakellari/root,beniz/root,esakellari/my_root_for_test,bbockelm/root,perovic/root,omazapa/root-old,esakellari/my_root_for_test,tc3t/qoot,davidlt/root,mkret2/root,karies/root,gbitzes/root,esakellari/root,root-mirror/root,vukasinmilosevic/root,dfunke/root,krafczyk/root... |
a149b82b135f8970813293339f566a473a0283c0 | modules/SofaBoundaryCondition/SofaBoundaryCondition_test/FixedConstraint_test.cpp | modules/SofaBoundaryCondition/SofaBoundaryCondition_test/FixedConstraint_test.cpp | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | Increase the test strengh to detect more efficiently the defect. | [FixedConstraint_test] Increase the test strengh to detect more efficiently the defect.
| C++ | lgpl-2.1 | FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa,Anatoscope/sofa,FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa,Anatoscope/sofa,Anatoscope/sofa,FabienPean/sofa,FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa |
729ce18f5ed1c2dffb59604f71d44395e93f80c8 | core/base/v7/inc/ROOT/TLogger.hxx | core/base/v7/inc/ROOT/TLogger.hxx | /// \file ROOT/TLogger.h
/// \ingroup Base ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-03-29
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/***********************************************************************... | /// \file ROOT/TLogger.h
/// \ingroup Base ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-03-29
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/***********************************************************************... | Clarify that log emission needs to be locked. | Clarify that log emission needs to be locked.
| C++ | lgpl-2.1 | olifre/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,karies/root,olifre/root,karies/root,karies/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,karies/root,karies/ro... |
b8e4b183a430cc3cfdc7e2aea69c81b2725eb8e6 | DXCompress/main.cpp | DXCompress/main.cpp | //
// main.cpp
// DXCompress
//
// Created by Oliver Kahrmann on 08.05.11.
// Copyright 2011 DHELIXSoft. All rights reserved.
//
#include <iostream>
#include <string>
#include <fstream>
#include <math.h>
#include <deque>
#include <stack>
using namespace std;
class area {
long pos;
long length;
};
void ... | //
// main.cpp
// DXCompress
//
// Created by Oliver Kahrmann on 08.05.11.
// Copyright 2011 DHELIXSoft, Licensed under MIT:
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Oliver Kahrmann
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docu... | Apply license | Apply license
| C++ | mit | founderio/DXCompress |
0a88a08670917331ce76c23123e150e649e7bee4 | test/tcpcli.ut.cc | test/tcpcli.ut.cc | #include <handy/conn.h>
#include <handy/logging.h>
#include "test_harness.h"
using namespace std;
using namespace handy;
TcpConnPtr connectto(EventBase* base, const char* host, short port) {
TcpConnPtr con1 = TcpConn::createConnection(base, host, port);
if (!con1) {
return NULL;
}
con1->onStat... | #include <handy/conn.h>
#include <handy/logging.h>
#include "test_harness.h"
using namespace std;
using namespace handy;
TcpConnPtr connectto(EventBase* base, const char* host, short port) {
TcpConnPtr con1 = TcpConn::createConnection(base, host, port);
if (!con1) {
return NULL;
}
con1->onStat... | test for travis update | test for travis update
| C++ | bsd-2-clause | tempbottle/handy,busyluo/handy,denis1008/handy,denis1008/handy,yedf/handy,yedf/handy,yedf/handy,busyluo/handy,tempbottle/handy,tempbottle/handy,busyluo/handy |
5519bb024c188cc5445ffed11b8cc1538c562ada | test/testBone.cpp | test/testBone.cpp | #include "TestPrologue.h"
#include <cal3d/bone.h>
#include <cal3d/corebone.h>
#include <cal3d/coreskeleton.h>
#include <cal3d/mixer.h>
#include <cal3d/skeleton.h>
#include <cal3d/streamops.h>
static cal3d::RotateTranslate makeTranslation(float x, float y, float z) {
return cal3d::RotateTranslate(CalQuaternion(), C... | #include "TestPrologue.h"
#include <cal3d/bone.h>
#include <cal3d/corebone.h>
#include <cal3d/coreskeleton.h>
#include <cal3d/mixer.h>
#include <cal3d/skeleton.h>
#include <cal3d/streamops.h>
static cal3d::RotateTranslate makeTranslation(float x, float y, float z) {
return cal3d::RotateTranslate(CalQuaternion(), C... | Test coverage for multiple replace animations followed by a non-replace animation | Test coverage for multiple replace animations followed by a non-replace animation
git-svn-id: febc42a3fd39fb08e5ae2b2182bc5ab0a583559c@121511 07c76cb3-cb09-0410-85de-c24d39f1912e
| C++ | lgpl-2.1 | imvu/cal3d,imvu/cal3d,imvu/cal3d,imvu/cal3d |
8479a2f914eb0a2f47c3b26a78fe908af91c699c | include/cybozu/random_generator.hpp | include/cybozu/random_generator.hpp | #pragma once
/**
@file
@brief pseudrandom generator
@author MITSUNARI Shigeo(@herumi)
@license modified new BSD license
http://opensource.org/licenses/BSD-3-Clause
*/
#include <cybozu/exception.hpp>
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "advapi32.lib"... | #pragma once
/**
@file
@brief pseudrandom generator
@author MITSUNARI Shigeo(@herumi)
@license modified new BSD license
http://opensource.org/licenses/BSD-3-Clause
*/
#include <cybozu/exception.hpp>
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "advapi32.lib"... | add shuffle | add shuffle
| C++ | bsd-3-clause | herumi/cybozulib,herumi/cybozulib |
ad913b93634335f653b285c07e13df3a1e23bf64 | include/libtorrent/torrent_info.hpp | include/libtorrent/torrent_info.hpp | /*
Copyright (c) 2003-2008, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | /*
Copyright (c) 2003-2008, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | remove (deprecated) non-const files() from torrent_info since it opens a loop-hole to modifying the filenames without preserving the original ones | remove (deprecated) non-const files() from torrent_info since it opens a loop-hole to modifying the filenames without preserving the original ones
git-svn-id: c39a6fcb73c71bf990fd9353909696546eb40440@3113 a83610d8-ad2a-0410-a6ab-fc0612d85776
| C++ | bsd-3-clause | john-peterson/libtorrent-old,john-peterson/libtorrent-old,john-peterson/libtorrent-old,mirror/libtorrent,mirror/libtorrent,mirror/libtorrent,mirror/libtorrent,john-peterson/libtorrent-old,john-peterson/libtorrent-old,mirror/libtorrent,mirror/libtorrent,john-peterson/libtorrent-old |
fef75d556fa1242118e9daba4181bb9eba3bac91 | test/optimisationAlgorithm/trajectoryBasedAlgorithm/testHillClimbing.cpp | test/optimisationAlgorithm/trajectoryBasedAlgorithm/testHillClimbing.cpp | // Catch
#include <catch.hpp>
// C++ Standard Library
#include <memory>
#include <iostream>
// Armadillo
#include <armadillo>
// HOP
#include <hop>
class TestHillClimbing : public hop::HillClimbing {
public:
TestHillClimbing(
const std::shared_ptr<hop::OptimisationProblem> optimisationProblem)
:... | // Catch
#include <catch.hpp>
// C++ Standard Library
#include <memory>
#include <iostream>
// Armadillo
#include <armadillo>
// HOP
#include <hop>
class TestHillClimbing : public hop::HillClimbing {
public:
TestHillClimbing(
const std::shared_ptr<hop::OptimisationProblem> optimisationProblem)
:... | Use std::vector<arma::Col<double>> for dynamic amounts of Columns | devel: Use std::vector<arma::Col<double>> for dynamic amounts of Columns
| C++ | mit | SebastianNiemann/Mantella,SebastianNiemann/Mantella,Mantella/Mantella,Mantella/Mantella,Mantella/Mantella,SebastianNiemann/Mantella |
2c8733588d9195ae348f5238533481fd88c54de9 | Modules/ImageStatistics/Testing/mitkImageStatisticsContainerTest.cpp | Modules/ImageStatistics/Testing/mitkImageStatisticsContainerTest.cpp | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | Correct StatisticNamesTest | Correct StatisticNamesTest
| C++ | bsd-3-clause | MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK |
60ae42493dd777e39067647f5a5fbffb7547b667 | modules/common/adapters/adapter_manager.cc | modules/common/adapters/adapter_manager.cc | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | Fix switch case fall-through. | Common: Fix switch case fall-through.
| C++ | apache-2.0 | wanglei828/apollo,ApolloAuto/apollo,wanglei828/apollo,xiaoxq/apollo,ycool/apollo,wanglei828/apollo,ycool/apollo,jinghaomiao/apollo,ycool/apollo,ApolloAuto/apollo,wanglei828/apollo,ycool/apollo,ApolloAuto/apollo,jinghaomiao/apollo,xiaoxq/apollo,ApolloAuto/apollo,wanglei828/apollo,xiaoxq/apollo,ApolloAuto/apollo,xiaoxq/a... |
a3f16016e52f8bdce88c63e99be23323d188bf78 | demo2/src/demo/object/transform.cpp | demo2/src/demo/object/transform.cpp | // transform.cpp
#include "transform.h"
#include <glm/gtc/matrix_transform.hpp>
namespace demo
{
namespace obj
{
// CONSTANTS
const glm::vec3 Transform::FORWARD( glm::vec3( 0, 0, -1 ) );
const glm::vec3 Transform::UP( glm::vec3( 0, 1, 0 ) );
const glm::vec3 Transform::RIGHT( glm::vec3( -1, 0, 0 ) );
const glm::vec3... | // transform.cpp
#include "transform.h"
#include <glm/gtc/matrix_transform.hpp>
namespace demo
{
namespace obj
{
// CONSTANTS
const glm::vec3 Transform::FORWARD( glm::vec3( 0, 0, -1 ) );
const glm::vec3 Transform::UP( glm::vec3( 0, 1, 0 ) );
const glm::vec3 Transform::RIGHT( glm::vec3( -1, 0, 0 ) );
const glm::vec3... | Fix bug where rotations were being performed in radians instead of degrees. | Fix bug where rotations were being performed in radians instead of degrees.
| C++ | mit | invaderjon/demo,invaderjon/demo |
33ee301f8bd8e83abf6dea43b3a7d17173c913f1 | src/Bull/Core/Image/ImageLoader.cpp | src/Bull/Core/Image/ImageLoader.cpp | #include <stb_image/stb_image.h>
#include <Bull/Core/Image/ImageLoader.hpp>
#include <Bull/Core/IO/OutStringStream.hpp>
#include <Bull/Core/Log/Log.hpp>
#include <Bull/Core/Utility/CleanupCallback.hpp>
namespace Bull
{
int ImageLoader::read(void* user, char* data, int size)
{
InStream* stream = reinte... | #include <stb_image/stb_image.h>
#include <Bull/Core/Image/ImageLoader.hpp>
#include <Bull/Core/IO/OutStringStream.hpp>
#include <Bull/Core/Log/Log.hpp>
#include <Bull/Core/Utility/CleanupCallback.hpp>
namespace Bull
{
int ImageLoader::read(void* user, char* data, int size)
{
InStream* stream = reinte... | Fix build | [Core/ImageLoader] Fix build
| C++ | mit | siliace/Bull |
aedc861f7b20a2df374ac2265400690b15e57d71 | opencog/reasoning/RuleEngine/rule-engine-src/pln/ForwardChainPatternMatchCB.cc | opencog/reasoning/RuleEngine/rule-engine-src/pln/ForwardChainPatternMatchCB.cc | /*
* ForwardChainPatternMatchCB.cc
*
* Copyright (C) 2014 Misgana Bayetta
*
* Author: Misgana Bayetta <misgana.bayetta@gmail.com> Sept 2014
*
* 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 Softw... | /*
* ForwardChainPatternMatchCB.cc
*
* Copyright (C) 2014 Misgana Bayetta
*
* Author: Misgana Bayetta <misgana.bayetta@gmail.com> Sept 2014
*
* 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 Softw... | Simplify ForwardChainPatternMatchCB::{node_match,link_match} | Simplify ForwardChainPatternMatchCB::{node_match,link_match}
| C++ | agpl-3.0 | cosmoharrigan/opencog,andre-senna/opencog,roselleebarle04/opencog,rodsol/opencog,ceefour/opencog,shujingke/opencog,kinoc/opencog,inflector/atomspace,cosmoharrigan/atomspace,sanuj/opencog,eddiemonroe/atomspace,eddiemonroe/opencog,TheNameIsNigel/opencog,ceefour/opencog,printedheart/opencog,gavrieltal/opencog,jswiergo/ato... |
a6136b7156fb8ed9b5ed3fc27296096ea0d5c99e | lib/Target/ARM/ARMTargetMachine.cpp | lib/Target/ARM/ARMTargetMachine.cpp | //===-- ARMTargetMachine.cpp - Define TargetMachine for ARM ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- ARMTargetMachine.cpp - Define TargetMachine for ARM ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Resolve this GCC warning: ARMTargetMachine.cpp:53: error: control reaches end of non-void function | Resolve this GCC warning:
ARMTargetMachine.cpp:53: error: control reaches end of non-void function
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@114992 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror... |
cf72b8e0f6fdc945978b3a7ce47949e0b30ab45c | Source/Core/Module/CrossScript.cpp | Source/Core/Module/CrossScript.cpp | #include "CrossScript.h"
#include "../Driver/Profiler/Optick/optick.h"
#include <utility>
using namespace PaintsNow;
CrossRoutine::CrossRoutine(IScript::RequestPool* p, IScript::Request::Ref r) : pool(p), ref(r) {}
CrossRoutine::~CrossRoutine() {
Clear();
}
void CrossRoutine::Clear() {
if (ref) {
IScript::Reque... | #include "CrossScript.h"
#include "../Driver/Profiler/Optick/optick.h"
#include <utility>
using namespace PaintsNow;
CrossRoutine::CrossRoutine(IScript::RequestPool* p, IScript::Request::Ref r) : pool(p), ref(r) {}
CrossRoutine::~CrossRoutine() {
Clear();
}
void CrossRoutine::Clear() {
if (ref) {
IScript::Reque... | Fix request leak on CrossScript. | Fix request leak on CrossScript.
| C++ | mit | paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow,paintdream/PaintsNow |
869c785c7128b55450a26694eb63f3c254ae9b1d | xplat/Sonar/SonarWebSocketImpl.cpp | xplat/Sonar/SonarWebSocketImpl.cpp | /*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#include "SonarWebSocketImpl.h"
#include "SonarStep.h"
#include "ConnectionContextStore.h"
#include "Log.h"
#include <folly/String.... | /*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#include "SonarWebSocketImpl.h"
#include "SonarStep.h"
#include "ConnectionContextStore.h"
#include "Log.h"
#include <folly/String.... | Store empty connection_config in legacy CSR requests | Store empty connection_config in legacy CSR requests
Summary:
Versions of flipper from before 7th August 2018 don't return any response, so we don't store any connection_config.json file.
To keep the functionality the same as with up-to-date app versions, when this happens, store an empty config file ("{}").
Reviewed... | C++ | mit | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper |
7fd83937a27ac717321ecea02522072e91e55a9d | src/accessible/accessibleobject.cpp | src/accessible/accessibleobject.cpp | /*
Copyright 2012 Frederik Gladhorn <gladhorn@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or ... | /*
Copyright 2012 Frederik Gladhorn <gladhorn@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or ... | Make use of shared data pointer. | Make use of shared data pointer.
| C++ | lgpl-2.1 | KDE/libkdeaccessibilityclient,KDE/libkdeaccessibilityclient |
9f43820076845c023813920cda41069e5549b842 | vm/free_list_allocator.hpp | vm/free_list_allocator.hpp | namespace factor {
struct allocator_room {
cell size;
cell occupied_space;
cell total_free;
cell contiguous_free;
cell free_block_count;
};
template <typename Block> struct free_list_allocator {
cell size;
cell start;
cell end;
free_list free_blocks;
mark_bits state;
free_list_allocator(cell si... | namespace factor {
struct allocator_room {
cell size;
cell occupied_space;
cell total_free;
cell contiguous_free;
cell free_block_count;
};
template <typename Block> struct free_list_allocator {
cell size;
cell start;
cell end;
free_list free_blocks;
mark_bits state;
free_list_allocator(cell si... | Revert "vm: don't use implicit this. thanks to Jon Harper for the report." | Revert "vm: don't use implicit this. thanks to Jon Harper for the report."
My bad. A buggy compiler is a buggy compiler. Not a good workaround.
This reverts commit 1602e5094c836e6081cc5f0139c0cab6b740debb.
| C++ | bsd-2-clause | factor/factor,tgunr/factor,bpollack/factor,mrjbq7/factor,nicolas-p/factor,mrjbq7/factor,bjourne/factor,slavapestov/factor,nicolas-p/factor,bpollack/factor,AlexIljin/factor,slavapestov/factor,factor/factor,slavapestov/factor,nicolas-p/factor,bpollack/factor,nicolas-p/factor,slavapestov/factor,bjourne/factor,factor/facto... |
fefd2c2497086408d4a81d09594055a35ca81ac6 | ArcGISRuntimeSDKQt_CppSamples/EditData/AddFeaturesFeatureService/AddFeaturesFeatureService.cpp | ArcGISRuntimeSDKQt_CppSamples/EditData/AddFeaturesFeatureService/AddFeaturesFeatureService.cpp | // [WriteFile Name=AddFeaturesFeatureService, Category=EditData]
// [Legal]
// Copyright 2016 Esri.
// 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... | // [WriteFile Name=AddFeaturesFeatureService, Category=EditData]
// [Legal]
// Copyright 2016 Esri.
// 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... | Tag code as snippet. | Tag code as snippet.
| C++ | apache-2.0 | Esri/arcgis-runtime-samples-qt,Esri/arcgis-runtime-samples-qt,Esri/arcgis-runtime-samples-qt,Esri/arcgis-runtime-samples-qt |
b3e3be31b68375e09d66e1e1358028a6599360cf | QActiveResource.cpp | QActiveResource.cpp | /*
* Copyright (C) 2010, Directed Edge, Inc. | Licensed under the MPL and LGPL
*/
#include "QActiveResource.h"
#include <QXmlStreamReader>
#include <QStringList>
#include <QDateTime>
#include <QDebug>
#include <curl/curl.h>
using namespace QActiveResource;
static size_t writer(void *ptr, size_t size, size_t nmemb,... | /*
* Copyright (C) 2010, Directed Edge, Inc. | Licensed under the MPL and LGPL
*/
#include "QActiveResource.h"
#include <QXmlStreamReader>
#include <QStringList>
#include <QDateTime>
#include <QDebug>
#include <curl/curl.h>
using namespace QActiveResource;
static const QString QActiveResourceClassKey = "QActiveRes... | Adjust for the fact that we stick an extra key in | Adjust for the fact that we stick an extra key in | C++ | lgpl-2.1 | directededge/QActiveResource,directededge/QActiveResource,directededge/QActiveResource |
aa74fa359665e705eef0f7ff7d1de7c1075f6b79 | chrome/browser/ui/views/find_bar_host_aura.cc | chrome/browser/ui/views/find_bar_host_aura.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/find_bar_host.h"
#include "base/logging.h"
#include "ui/base/events/event.h"
void FindBarHost::AudibleAlert() {
#i... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/find_bar_host.h"
#include "base/logging.h"
#include "ui/base/events/event.h"
void FindBarHost::AudibleAlert() {
#i... | Remove NOTIMPLEMENTED() in FindBarHost::AudibleAlert() for ChromeOS. | Remove NOTIMPLEMENTED() in FindBarHost::AudibleAlert() for ChromeOS.
BUG=None
TEST=None
R=jennyz,jamescook
TBR=sky
Review URL: https://chromiumcodereview.appspot.com/23819045
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@222422 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,anirudhSK/chromium,dushu1203/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,ondra-novak/c... |
a45c394f050c6c276a418bad1faf466ec7a072ed | WebCore/kwq/KWQRenderTreeDebug.cpp | WebCore/kwq/KWQRenderTreeDebug.cpp | /*
* Copyright (C) 2003 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | /*
* Copyright (C) 2003 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | Fix build error. | Fix build error.
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@5010 bbb929c8-8fbe-4397-9dbb-9b2b20218538 | C++ | bsd-3-clause | primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs |
cb817931a01446268f912fcee0890ff3ed9082a0 | workbench/src/counters.cpp | workbench/src/counters.cpp | //=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | //=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | Use the new helpers | Use the new helpers
| C++ | mit | wichtounet/etl,wichtounet/etl |
7b1c973884a93d95d5bf6e4df7d34eecacb20b8b | api/api.hh | api/api.hh | /*
* Copyright 2015 Cloudius Systems
*/
#pragma once
#include "http/httpd.hh"
#include "json/json_elements.hh"
#include "database.hh"
#include "service/storage_proxy.hh"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include "api/a... | /*
* Copyright 2015 Cloudius Systems
*/
#pragma once
#include "http/httpd.hh"
#include "json/json_elements.hh"
#include "database.hh"
#include "service/storage_proxy.hh"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include "api/a... | Add doc directory parameter to the http context | API: Add doc directory parameter to the http context
Adding a parameter to the http context so it will not be hard coded and
could be configured.
Signed-off-by: Amnon Heiman <ed5fc74c4692051ad0b19749fd7cea6ec2d74b9e@cloudius-systems.com>
| C++ | agpl-3.0 | guiquanz/scylla,glommer/scylla,phonkee/scylla,victorbriz/scylla,shaunstanislaus/scylla,guiquanz/scylla,kangkot/scylla,duarten/scylla,capturePointer/scylla,acbellini/scylla,shaunstanislaus/scylla,asias/scylla,avikivity/scylla,tempbottle/scylla,capturePointer/scylla,raphaelsc/scylla,senseb/scylla,wildinto/scylla,scylladb... |
9104ed99e542e291a6484c6d451e73286b6225c6 | rrd/src/output.cc | rrd/src/output.cc | /*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed in the hope... | /*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distributed in the hope... | fix the double slash issue. This refs #4126. | RRD: fix the double slash issue. This refs #4126.
| C++ | apache-2.0 | centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.