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
0a85184cb7629532b469cb407b9f34e0992cf17f
OpenSim/Common/Test/testStorage.cpp
OpenSim/Common/Test/testStorage.cpp
/* -------------------------------------------------------------------------- * * OpenSim: testStorage.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
/* -------------------------------------------------------------------------- * * OpenSim: testStorage.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and simulation. * ...
Update test case comments
Update test case comments [ci skip] [appveyor skip]
C++
apache-2.0
opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core
6ac00a982914c709f38f36c91a32a185147379f5
source/qcan/qcan_defs.hpp
source/qcan/qcan_defs.hpp
//============================================================================// // File: qcan_defs.hpp // // Description: QCAN classes - Definitions // // ...
//============================================================================// // File: qcan_defs.hpp // // Description: QCAN classes - Definitions // // ...
Introduce symbols QCAN_LOCAL_SOCKET_MAX and QCAN_IF_SUPPORT_SPECIFIC_CONFIG
Introduce symbols QCAN_LOCAL_SOCKET_MAX and QCAN_IF_SUPPORT_SPECIFIC_CONFIG
C++
apache-2.0
canpie/CANpie,canpie/CANpie,JoTid/CANpie,JoTid/CANpie,canpie/CANpie,JoTid/CANpie
19c43416e3c488d84fa45a39a63c3af61be5ca6d
Charts/vtkOpenGLContextDevice3D.cxx
Charts/vtkOpenGLContextDevice3D.cxx
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLContextDevice3D.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 ...
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLContextDevice3D.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 ...
Fix valgrind error for unitialized ivar.
COMP: Fix valgrind error for unitialized ivar. Change-Id: Ic7a0459513258ab8c04786c33d7518a8e69b4cb8
C++
bsd-3-clause
msmolens/VTK,gram526/VTK,aashish24/VTK-old,biddisco/VTK,johnkit/vtk-dev,SimVascular/VTK,mspark93/VTK,demarle/VTK,aashish24/VTK-old,demarle/VTK,SimVascular/VTK,collects/VTK,SimVascular/VTK,demarle/VTK,keithroe/vtkoptix,jmerkow/VTK,SimVascular/VTK,candy7393/VTK,gram526/VTK,demarle/VTK,keithroe/vtkoptix,johnkit/vtk-dev,bi...
6052af05556e2f7ee6b8310abf8911dfc1d0b7ea
source/symbols/Symbol.cpp
source/symbols/Symbol.cpp
//------------------------------------------------------------------------------ // Symbol.h // Symbols for semantic analysis. // // File is under the MIT license; see LICENSE for details. //------------------------------------------------------------------------------ #include "slang/symbols/Symbol.h" #include <nlohm...
//------------------------------------------------------------------------------ // Symbol.h // Symbols for semantic analysis. // // File is under the MIT license; see LICENSE for details. //------------------------------------------------------------------------------ #include "slang/symbols/Symbol.h" #include <nlohm...
Fix Symbol::isDeclaredBefore when called on an instance symbol
Fix Symbol::isDeclaredBefore when called on an instance symbol
C++
mit
MikePopoloski/slang,MikePopoloski/slang
3e26756f1dfe1ddd1d7f5e458771c9bf79acb09a
src/base/types.hh
src/base/types.hh
/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * 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 * not...
/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * 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 * not...
Use constexpr in Cycles
base: Use constexpr in Cycles Declare the constructor and all of the operators that don't change the state of a Cycles instance as constexpr. This makes it possible to use Cycles as a static constant and allows the compiler to evaulate simple expressions at compile time. An unfortunate side-effect of this is that we c...
C++
bsd-3-clause
rallylee/gem5,SanchayanMaity/gem5,qizenguf/MLC-STT,KuroeKurose/gem5,powerjg/gem5-ci-test,gem5/gem5,rjschof/gem5,rallylee/gem5,sobercoder/gem5,briancoutinho0905/2dsampling,cancro7/gem5,Weil0ng/gem5,TUD-OS/gem5-dtu,rjschof/gem5,rallylee/gem5,SanchayanMaity/gem5,briancoutinho0905/2dsampling,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu...
7cb694bc2e443a817779b8363c187cf21b207e75
src/appleseed/renderer/kernel/rendering/localsampleaccumulationbuffer.cpp
src/appleseed/renderer/kernel/rendering/localsampleaccumulationbuffer.cpp
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization // ...
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization // ...
Improve pyramid construction in sample accumulation buffer
Improve pyramid construction in sample accumulation buffer
C++
mit
pjessesco/appleseed,Vertexwahn/appleseed,aiivashchenko/appleseed,dictoon/appleseed,pjessesco/appleseed,dictoon/appleseed,Vertexwahn/appleseed,aytekaman/appleseed,Biart95/appleseed,pjessesco/appleseed,gospodnetic/appleseed,Aakash1312/appleseed,luisbarrancos/appleseed,Aakash1312/appleseed,est77/appleseed,est77/appleseed,...
9fea039054ba3e1992e9f1f9bce45b4ef9fa2608
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...
increase offsetX
increase offsetX
C++
apache-2.0
BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH
d4b90aab7da51287276c4ba8cc57586e03ee143a
Code/IO/src/sitkImageFileReader.cxx
Code/IO/src/sitkImageFileReader.cxx
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
Update the full image information for every execute of the reader
Update the full image information for every execute of the reader The downside to this is that the extra copies will still occur with the procedural interface even though the copied data can not be used.
C++
apache-2.0
SimpleITK/SimpleITK,InsightSoftwareConsortium/SimpleITK,kaspermarstal/SimpleElastix,SimpleITK/SimpleITK,blowekamp/SimpleITK,InsightSoftwareConsortium/SimpleITK,SimpleITK/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,kaspermarstal/SimpleElastix,kaspermarstal/SimpleElastix,blowekamp/SimpleITK,blowekamp/SimpleIT...
bfd21e3f90079542e86596da2469871d47753aaa
ykman-gui/main.cpp
ykman-gui/main.cpp
#include <QApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <stdlib.h> #include <QtGlobal> #include <QtWidgets> int main(int argc, char *argv[]) { // Global menubar is broken for qt5 apps in Ubuntu Unity, see: // https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1323853 ...
#include <QApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <stdlib.h> #include <QtGlobal> #include <QtWidgets> int main(int argc, char *argv[]) { // Global menubar is broken for qt5 apps in Ubuntu Unity, see: // https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1323853 ...
Rewrite --help description to an imperative sentence
Rewrite --help description to an imperative sentence
C++
bsd-2-clause
Yubico/yubikey-manager-qt,Yubico/yubikey-manager-qt,Yubico/yubikey-manager-qt,Yubico/yubikey-manager-qt
15434d897fbd4991a862e431e9b4bbf1b7cab726
service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp
service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
Fix exception handling in Notification Manager Sample.
Fix exception handling in Notification Manager Sample. 1. handle exception for resource bind. 2. update multicast-request address. 3. clean up code. Change-Id: I9cf87319cf360aaa8b483b45be34b2d520597abf Signed-off-by: jyong2.kim <a7fda6cb43a99323e7403e06467da5520755bdcc@samsung.com> Reviewed-on: https://gerrit.iotivit...
C++
apache-2.0
WojciechLuczkow/iotivity,rzr/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,santais/iotivity_1.1,rzr/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,santais/iotivity,rzr/iotivity,santais/iotivity_1.1.0,kartben/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,WojciechL...
ef19bf318ff394bc0794206506bfc385c88e866d
C++/remove-invalid-parentheses.cpp
C++/remove-invalid-parentheses.cpp
// DFS solution. class Solution { public: vector<string> removeInvalidParentheses(string s) { // Calculate the minimum left and right parantheses to remove int left_removed = 0, right_removed = 0; for (const auto& c : s) { if (c == '(') { ++left_removed; ...
// Time: O(n * 2^n) // Space: O(n^2) // DFS solution. class Solution { public: vector<string> removeInvalidParentheses(string s) { // Calculate the minimum left and right parantheses to remove int left_removed = 0, right_removed = 0; for (const auto& c : s) { if (c == '(') { ...
Update remove-invalid-parentheses.cpp
Update remove-invalid-parentheses.cpp
C++
mit
kamyu104/LeetCode,yiwen-luo/LeetCode,kamyu104/LeetCode,jaredkoontz/leetcode,tudennis/LeetCode---kamyu104-11-24-2015,tudennis/LeetCode---kamyu104-11-24-2015,jaredkoontz/leetcode,yiwen-luo/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,yiwen-luo/LeetCode,kamyu104/LeetCode,jaredkoontz/leetcode,tudennis/LeetCode---kamyu1...
908f420abd0719db2c6308840c87fd5983f40cf1
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
//===----------- RPCUtilsTest.cpp - Unit tests the Orc RPC utils ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===----------- RPCUtilsTest.cpp - Unit tests the Orc RPC utils ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix unit-test breakage from r280016.
[ORC] Fix unit-test breakage from r280016. Void functions returning error now boolean convert to 'false' if they succeed. Unit tests updated to reflect this. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@280027 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen...
ac3030ca63717406f7600efd61b4988b4f6deece
include/eli/geom/surface/piecewise_cubic_spline_skinning_surface_creator.hpp
include/eli/geom/surface/piecewise_cubic_spline_skinning_surface_creator.hpp
/********************************************************************************* * Copyright (c) 2013 David D. Marshall <ddmarsha@calpoly.edu> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribut...
/********************************************************************************* * Copyright (c) 2013 David D. Marshall <ddmarsha@calpoly.edu> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribut...
Add tdisc member data to cubic skinner
Add tdisc member data to cubic skinner
C++
epl-1.0
ramcdona/Code-Eli
2a7026b797204e12a2d5316f34f3652cb420068f
Code/Common/mvdI18nApplication.cxx
Code/Common/mvdI18nApplication.cxx
/*========================================================================= Program: Monteverdi2 Language: C++ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See Copyright.txt for details. Monteverdi2 is distributed under the CeCILL licence version 2. See Licence_CeCILL_V2-en....
/*========================================================================= Program: Monteverdi2 Language: C++ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See Copyright.txt for details. Monteverdi2 is distributed under the CeCILL licence version 2. See Licence_CeCILL_V2-en....
remove tabs
STYLE: remove tabs
C++
apache-2.0
orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB
cc4608744d5c3f932cbb097112e4965b57381e1c
src/MissionManager/ComplexMissionItemTest.cc
src/MissionManager/ComplexMissionItemTest.cc
/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * *************************************...
/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * *************************************...
Update for cameraTrigger=true default
Update for cameraTrigger=true default
C++
agpl-3.0
kd0aij/qgroundcontrol,kd0aij/qgroundcontrol,kd0aij/qgroundcontrol,ethz-asl/qgc_asl,CornerOfSkyline/qgroundcontrol,Hunter522/qgroundcontrol,RedoXyde/PX4_qGCS,Hunter522/qgroundcontrol,RedoXyde/PX4_qGCS,kd0aij/qgroundcontrol,RedoXyde/PX4_qGCS,RedoXyde/PX4_qGCS,RedoXyde/PX4_qGCS,kd0aij/qgroundcontrol,CornerOfSkyline/qgroun...
35a9ea50b8b0ca1a45fba15ec5186496c1d49a7a
modules/perception/camera/lib/obstacle/postprocessor/location_refiner/location_refiner_obstacle_postprocessor.cc
modules/perception/camera/lib/obstacle/postprocessor/location_refiner/location_refiner_obstacle_postprocessor.cc
/****************************************************************************** * Copyright 2018 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 * * htt...
/****************************************************************************** * Copyright 2018 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 * * htt...
Fix lint
Fix lint
C++
apache-2.0
msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo
b061622bf84010f876effd92fd8bb8c3ff3a7e1f
tutorial/example.cpp
tutorial/example.cpp
#include<chrono> #include<iostream> #include<mutex> #include<random> #include<queue> #include<thread> #include"../header/CThreadPool.h" namespace { std::mutex mut; size_t get() { using namespace std; static mt19937 mu{static_cast<mt19937::result_type>(chrono::high_resolution_clock::now().time_since_epoch().cou...
#include<chrono> #include<iostream> #include<mutex> #include<random> #include<queue> #include<thread> #include"../header/CThreadPool.h" namespace { std::mutex mut; size_t get() { using namespace std; static mt19937 mu{static_cast<mt19937::result_type>(chrono::high_resolution_clock::now().time_since_epoch().cou...
add more information
add more information
C++
mit
Fdhvdu/ThreadPool
cf738cb1570f21d8df1272075ef9a6ea58b33c56
SOURCE/C++/Numbers/Calculator.cpp
SOURCE/C++/Numbers/Calculator.cpp
#include <iostream> #include <string> #include <ctype.h> #include <cstdlib> #include <stdexcept> class Calculator { private: std::string source; int pos; public: Calculator(std::string s) { source = s; pos = 0; }; // Utilities char peek() { return source[pos]; }; bool isNumber (char ch) { return isdi...
#include <iostream> #include <string> #include <ctype.h> #include <cstdlib> #include <stdexcept> class Calculator { private: std::string source; int pos; public: Calculator(std::string s) { source = s; pos = 0; }; // Utilities char peek() { return source[pos]; }; bool isNumber (char ch) { return isdi...
Update Calculator
Update Calculator
C++
mit
idunnowhy9000/Projects,idunnowhy9000/Projects,idunnowhy9000/Projects
6c4a02479d6ec5f415f414f696626c75f05f9d2c
servers/physics_2d/collision_solver_2d_sw.cpp
servers/physics_2d/collision_solver_2d_sw.cpp
/*************************************************************************/ /* collision_solver_2d_sw.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/*************************************************************************/ /* collision_solver_2d_sw.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
Fix how Line2D obtains the other object's supports
Fix how Line2D obtains the other object's supports Measure the distance from the line against the rotated object, not the rotated line, when obtaining the object's supports against a line. (cherry picked from commit 7e44682c0382779a6142a3cfa7c712d85d8ec928)
C++
mit
ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot
1eceed92f1bd33904963fc812860e4642f5dede3
share/qtcreator/templates/qt4project/main.cpp
share/qtcreator/templates/qt4project/main.cpp
#include <%QAPP_INCLUDE%> #include "%INCLUDE%" int main(int argc, char *argv[]) { QApplication a(argc, argv); %CLASS% w; #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) w.showMaximized(); #else w.show(); #endif return a.exec(); }
#include <%QAPP_INCLUDE%> #include "%INCLUDE%" int main(int argc, char *argv[]) { QApplication a(argc, argv); %CLASS% w; #if defined(Q_WS_S60) w.showMaximized(); #else w.show(); #endif return a.exec(); }
Remove special showMaximized case for Maemo 5
Remove special showMaximized case for Maemo 5 The Maemo 5 window manager already makes sure applications always run maximized. Reviewed-by: Robert Griebl
C++
lgpl-2.1
jonnor/qt-creator,duythanhphan/qt-creator,azat/qtcreator,azat/qtcreator,maui-packages/qt-creator,KDE/android-qt-creator,richardmg/qtcreator,darksylinc/qt-creator,danimo/qt-creator,bakaiadam/collaborative_qt_creator,sandsmark/qtcreator-minimap,ostash/qt-creator-i18n-uk,hdweiss/qt-creator-visualizer,syntheticpp/qt-creato...
51ddb1e236c2d403d940b98d099c20d1f9a2bd8a
graphics/size.h++
graphics/size.h++
/** * The MIT License (MIT) * * Copyright © 2017-2018 Ruben Van Boxem * * 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 * ...
/** * The MIT License (MIT) * * Copyright © 2017-2018 Ruben Van Boxem * * 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 * ...
Fix broken namespace.
Fix broken namespace.
C++
mit
rubenvb/skui,rubenvb/skui,skui-org/skui,skui-org/skui
14d4415c03c0fa427e1fd98c6d8ee83725a5454e
src/Search/SdkModel/SearchRefreshService.cpp
src/Search/SdkModel/SearchRefreshService.cpp
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "SearchRefreshService.h" #include "ISearchService.h" #include "ISearchQueryPerformer.h" #include "LatLongAltitude.h" #include "ICameraTransitionController.h" #include <algorithm> namespace ExampleApp { namespace Search { namespace SdkMo...
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "SearchRefreshService.h" #include "ISearchService.h" #include "ISearchQueryPerformer.h" #include "LatLongAltitude.h" #include "ICameraTransitionController.h" #include <algorithm> namespace ExampleApp { namespace Search { namespace SdkMo...
Fix for: MPLY-6870, interest point was not being set hence the difference between the view and interest point distance was not zero causing it to refresh first time around. Buddy: Scott
Fix for: MPLY-6870, interest point was not being set hence the difference between the view and interest point distance was not zero causing it to refresh first time around. Buddy: Scott
C++
bsd-2-clause
eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/ee...
16412186e028811d0ec6cc3c40b98da3743ba1c8
Source/Urho3D/Resource/JSONFile.cpp
Source/Urho3D/Resource/JSONFile.cpp
// // Copyright (c) 2008-2017 the Urho3D project. // // 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, mod...
// // Copyright (c) 2008-2017 the Urho3D project. // // 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, mod...
Allow trailing commas in JSON
Allow trailing commas in JSON
C++
mit
rokups/Urho3D,299299/Urho3D,299299/Urho3D,urho3d/Urho3D,fire/Urho3D-1,SirNate0/Urho3D,rokups/Urho3D,MeshGeometry/Urho3D,MonkeyFirst/Urho3D,SirNate0/Urho3D,cosmy1/Urho3D,codemon66/Urho3D,codedash64/Urho3D,victorholt/Urho3D,codemon66/Urho3D,codedash64/Urho3D,kostik1337/Urho3D,cosmy1/Urho3D,299299/Urho3D,xiliu98/Urho3D,ko...
332f1848240f2c557476b21e993d8b3910f32db5
base/hostinfo.cc
base/hostinfo.cc
/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * 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 * not...
/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * 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 * not...
format string did not match variable size -> stack corruption
format string did not match variable size -> stack corruption --HG-- extra : convert_revision : b7c5aaa9d1f1242cfe337d6555e476f622a2aa6d
C++
bsd-3-clause
samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,gem5/gem5,yb-kim/gemV,KuroeKurose/gem5,samueldotj/TeeRISC-Simulator,KuroeKurose/gem5,austinharris/gem5-riscv,joerocklin/gem5,powerjg/gem5-ci-test,markoshorro/gem5,austinharris/gem5-riscv,aclifton/cpeg853-gem5,yb-kim/gemV,joerocklin/gem5,samueldotj/TeeRISC-Simulator,ral...
b6eff47bac0a2745da6e3aa95ffa340eb71c7248
scene/3d/navigation_region_3d.cpp
scene/3d/navigation_region_3d.cpp
/*************************************************************************/ /* navigation_region_3d.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/*************************************************************************/ /* navigation_region_3d.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
Add NavigationMesh debug when navmesh is added later through scripts
Add NavigationMesh debug when navmesh is added later through scripts Add NavigationMesh debug when navmesh is added later through scripts
C++
mit
Shockblast/godot,josempans/godot,guilhermefelipecgs/godot,vkbsb/godot,ZuBsPaCe/godot,vkbsb/godot,sanikoyes/godot,akien-mga/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,Shockblast/godot,akien-mga/godot,pkowal1982/godot,pkowal1982/godot,firefly2442/godot,ZuBsPaCe/godot,Valentactive/god...
9d46685b650afa537b0afa203dd4ad3e37be7585
webkit/glue/webfilesystem_impl.cc
webkit/glue/webfilesystem_impl.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. #include "webkit/glue/webfilesystem_impl.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/logging.h" #include "net/base/fil...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in the // LICENSE file. #include "webkit/glue/webfilesystem_impl.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/logging.h" #include "net/base/fil...
Implement WebFileSystemImpl::directoryName. This is needed for directory upload (including webkit layout tests).
Implement WebFileSystemImpl::directoryName. This is needed for directory upload (including webkit layout tests). BUG=41762 TEST=webkit layout test fast/forms/input-file-directory-upload.html Review URL: http://codereview.chromium.org/2847056 git-svn-id: http://src.chromium.org/svn/trunk/src@52829 4ff67af0-8c30-449e...
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...
716b6b2dc8bc1c497495c276fa3e73418a341e49
chrome/browser/sync/test/integration/performance/passwords_sync_perf_test.cc
chrome/browser/sync/test/integration/performance/passwords_sync_perf_test.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome/browser/password_manager/password_store.h" #include "chrome/b...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome/browser/password_manager/password_store.h" #include "chrome/b...
Disable passwords perf test on Mac/Win
[Sync] Disable passwords perf test on Mac/Win BUG=105999 TEST= TBR=rsimha Review URL: http://codereview.chromium.org/8763015 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@112376 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,littlstar/chromium.src,nacl-webkit/chrome_deps,keishi/chromium,patrickm/chromium.src,dushu1203/chromium.src,hujiajie/pa-chromium,keishi/chromium,axinging/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,ltilve/chromium,ma...
7124c9b0875f8fa9ee8887050dc8508f2f0803a7
variants/units/zephyrus/unit_data.hpp
variants/units/zephyrus/unit_data.hpp
#ifndef UNIT_DATA_HPP_ #define UNIT_DATA_HPP_ #include "communication/communicator.hpp" #include "estimator/world_estimator.hpp" #include "estimator/atmospheric_location_estimator.hpp" #include "estimator/dcm_attitude_estimator.hpp" #include "filesystem/logger.hpp" #include "input/offboard_input_source.hpp" #include "...
#ifndef UNIT_DATA_HPP_ #define UNIT_DATA_HPP_ #include "communication/communicator.hpp" #include "estimator/world_estimator.hpp" #include "estimator/atmospheric_location_estimator.hpp" #include "estimator/dcm_attitude_estimator.hpp" #include "filesystem/logger.hpp" #include "input/ppm_input_source.hpp" #include "motor...
Use PPM input source.
Use PPM input source.
C++
mit
OSURoboticsClub/aerial_control,OSURoboticsClub/aerial_control,OSURoboticsClub/aerial_control
cf58f133d421befb8282fcd833402d21e1c5fdbf
vm/src/platform/ilib_os_interface.cpp
vm/src/platform/ilib_os_interface.cpp
/****************************************************************************** * Copyright (c) 2008 - 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution...
/****************************************************************************** * Copyright (c) 2008 - 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution...
Set bounding box for requested cores also if the box is bigger than number of requested cores.
Set bounding box for requested cores also if the box is bigger than number of requested cores. This fixes problems with allocating cores and knowing the central core id. The library does just the right thing by allocating the correct number of processes in the requested grid.
C++
epl-1.0
smarr/OmniVM,smarr/OmniVM,smarr/OmniVM,smarr/OmniVM,smarr/OmniVM,smarr/OmniVM,smarr/OmniVM,smarr/OmniVM
131e85e7fb1dfa7ff33761eb60440dbb84a72123
vtk/vtkXdmfRenderWindowInteractor.cxx
vtk/vtkXdmfRenderWindowInteractor.cxx
/*******************************************************************/ /* XDMF */ /* eXtensible Data Model and Format */ /* */ /* Id : Id */ /* Date : $Date$ */ /* ...
/*******************************************************************/ /* XDMF */ /* eXtensible Data Model and Format */ /* */ /* Id : Id */ /* Date : $Date$ */ /* ...
Improve checks for Win32
BUG: Improve checks for Win32
C++
bsd-3-clause
cjh1/Xdmf2,cjh1/Xdmf2,cjh1/Xdmf2
29e6a345e58aaab8f40b04d6850c930b4433e12a
src/app/clusters/bindings/BindingManager.cpp
src/app/clusters/bindings/BindingManager.cpp
/* * * Copyright (c) 2022 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
/* * * Copyright (c) 2022 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Fix compilation on newer clang. (#14868)
Fix compilation on newer clang. (#14868) There's a warning about thinking you are iterating without copying when you get copied anyway that this code was triggering.
C++
apache-2.0
nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhom...
4dbfca6923afc7738ac980dd95ebf279dea78128
src/api.cpp
src/api.cpp
/// /// @file api.cpp /// primecount's C++ API. /// /// Copyright (C) 2020 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primecount.hpp> #include <primecount-internal.hpp> #include <primesieve.hpp>...
/// /// @file api.cpp /// primecount's C++ API. /// /// Copyright (C) 2020 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primecount.hpp> #include <primecount-internal.hpp> #include <primesieve.hpp>...
Update comment
Update comment
C++
bsd-2-clause
kimwalisch/primecount,kimwalisch/primecount,kimwalisch/primecount
9f7a7a5e3afba6cec1d11ed8a7ee848c76140e06
You-DataStore-Tests/internal/internal_datastore_test.cpp
You-DataStore-Tests/internal/internal_datastore_test.cpp
#include "stdafx.h" #include "CppUnitTest.h" #include "../dummy_values.h" #include "internal/operations/erase_operation.h" #include "internal/operations/post_operation.h" #include "internal/operations/put_operation.h" #include "internal/internal_datastore.h" using Assert = Microsoft::VisualStudio::CppUnitTestFramewor...
#include "stdafx.h" #include "CppUnitTest.h" #include "../dummy_values.h" #include "internal/operations/erase_operation.h" #include "internal/operations/post_operation.h" #include "internal/operations/put_operation.h" #include "internal/internal_datastore.h" using Assert = Microsoft::VisualStudio::CppUnitTestFramewor...
Remove test that causes appveyor to crash
Remove test that causes appveyor to crash
C++
mit
cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main
5a9b43d48378fb0592811e9b340aabd3d8041ca6
win32gdk/src/TGWin32ProxyBase.cxx
win32gdk/src/TGWin32ProxyBase.cxx
// @(#)root/win32gdk:$Name: $:$Id: TGWin32ProxyBase.cxx,v 1.14 2004/05/10 15:06:35 brun Exp $ // Author: Valeriy Onuchin 08/08/2003 /************************************************************************* * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * * All rights reserved. ...
// @(#)root/win32gdk:$Name: $:$Id: TGWin32ProxyBase.cxx,v 1.15 2005/04/21 18:46:25 brun Exp $ // Author: Valeriy Onuchin 08/08/2003 /************************************************************************* * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * * All rights reserved. ...
Fix proposed by Bertrand that seems to fix several type of crashes under Windows when using the GL viewer.
Fix proposed by Bertrand that seems to fix several type of crashes under Windows when using the GL viewer. git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@12163 27541ba8-7e3a-0410-8455-c3a389f83636
C++
lgpl-2.1
dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT
fba9b4a9110862ae8d88f74259cd15c52bc03f4c
4/main.cpp
4/main.cpp
#include<mutex> #include<thread> #include<vector> #include<functional> #include<iostream> #include<atomic> //#include"GYAtomicInt.h" using std::thread; using std::cout; int g_i = 0; std::timed_mutex g_i_mutex = {}; std::unique_lock<std::timed_mutex> g_i_mutex_lock = { g_i_mutex, std::defer_lock }; //sai = simple atom...
#include<mutex> #include<thread> #include<vector> #include<functional> #include<iostream> #include<atomic> //#include"GYAtomicInt.h" using std::thread; using std::cout; int g_i = 0; std::timed_mutex g_i_mutex = {}; std::unique_lock<std::timed_mutex> g_i_mutex_lock = { g_i_mutex, std::defer_lock }; //sai = simple atom...
Update main.cpp
Update main.cpp
C++
mit
grandyossi/quiz-meytal,grandyossi/quiz-meytal
fdd66cd5344bdc4c3b7a8d3cd3ad875c35857408
src/MathEval/GaussFermi.cc
src/MathEval/GaussFermi.cc
/*** DEVSIM Copyright 2021 Devsim LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
/*** DEVSIM Copyright 2021 Devsim LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
improve initial guess, add journal reference
improve initial guess, add journal reference
C++
apache-2.0
devsim/devsim,devsim/devsim,devsim/devsim
d9c5d25e68cd77696ce986e7a1cd955d24fa4472
src/coco.cc
src/coco.cc
#include "coco.hh" #include <algorithm> #include <fstream> #include <functional> #include <iostream> #include <numeric> #include <regex> #include <stdexcept> #include <string> #include <vector> #include <tuple> #include <nanojson.hpp> #include <cmdline.h> #include "filter.hh" #include "ncurses.hh" #include "utf8.hh" ...
#include "coco.hh" #include <algorithm> #include <fstream> #include <functional> #include <iostream> #include <numeric> #include <regex> #include <stdexcept> #include <string> #include <vector> #include <tuple> #include <nanojson.hpp> #include <cmdline.h> #include "filter.hh" #include "ncurses.hh" #include "utf8.hh" ...
mark invisible choices as unselected
mark invisible choices as unselected
C++
mit
ys-nuem/coco,ys-nuem/coco
d298b34c19d8e91bf790eb391db729676dc1205d
glm/gtx/range.hpp
glm/gtx/range.hpp
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
Add detail namespace for number_of_elements
Add detail namespace for number_of_elements
C++
mit
hrehfeld/glm,hrehfeld/glm
28fde280db96df57d1b98e6928f061fcf474f4d0
dreal/api/test/api_test.cc
dreal/api/test/api_test.cc
#include "dreal/api/api.h" #include <cmath> #include <gtest/gtest.h> #include "dreal/solver/formula_evaluator.h" namespace dreal { namespace { class ApiTest : public ::testing::Test { protected: const Variable x_{"x", Variable::Type::CONTINUOUS}; const Variable y_{"y", Variable::Type::CONTINUOUS}; const Vari...
#include "dreal/api/api.h" #include <cmath> #include <gtest/gtest.h> #include "dreal/solver/formula_evaluator.h" namespace dreal { namespace { class ApiTest : public ::testing::Test { protected: const Variable x_{"x", Variable::Type::CONTINUOUS}; const Variable y_{"y", Variable::Type::CONTINUOUS}; const Vari...
Add IfThenElse tests
test(api): Add IfThenElse tests
C++
apache-2.0
dreal/dreal4,dreal/dreal4,dreal/dreal4,soonho-tri/dreal4,soonho-tri/dreal4,soonho-tri/dreal4,dreal/dreal4,soonho-tri/dreal4
db833d36e9e318252e01f9a7d4608702634e673c
xplat/Flipper/FlipperConnectionManagerImpl.cpp
xplat/Flipper/FlipperConnectionManagerImpl.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 "FlipperConnectionManagerImpl.h" #include "FlipperStep.h" #include "ConnectionContextStore.h" #include "Log.h" #include <f...
/* * 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 "FlipperConnectionManagerImpl.h" #include "FlipperStep.h" #include "ConnectionContextStore.h" #include "Log.h" #include <f...
Add max rsocket payload size
Add max rsocket payload size Summary: We're seeing some crashes when attempting to send payloads larger than are supported by rsocket. Instead of crashing, skip the message, but log it so we can see what it's containing. This is where the failure occurs: https://github.com/rsocket/rsocket-cpp/blob/master/rsocket/fram...
C++
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
e6e225e081ca1b2584d8b8ba4b795771aa7f3741
Engine/source/core/stringTable.cpp
Engine/source/core/stringTable.cpp
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
Fix for avoid a zero division on _StringTable::resize.
Fix for avoid a zero division on _StringTable::resize.
C++
mit
lukaspj/Speciality,Bloodknight/Torque3D,rextimmy/Torque3D,Azaezel/Torque3D,rextimmy/Torque3D,John3/Torque3D,Will-of-the-Wisp/Torque3D,Phantom139/Torque3D,ValtoGameEngines/Torque3D,JeffProgrammer/Torque3D,Duion/Torque3D,FITTeamIndecisive/Torque3D,aaravamudan2014/Torque3D,chaigler/Torque3D,FITTeamIndecisive/Torque3D,luka...
de06e3042dc0fdb836df963ae8387eca95f2d131
src/core/hooks.cc
src/core/hooks.cc
#include <string> #include <ccspec/core/hooks.h> #include <ccspec/core/example_group.h> namespace ccspec { namespace core { void before(std::string scope, Hook hook) { ExampleGroup* parent_group = groups_being_defined.top(); if (scope == "each" || scope == "example") parent_group->addBeforeEachHook(ho...
#include <string> #include <ccspec/core/hooks.h> #include <ccspec/core/example_group.h> namespace ccspec { namespace core { void before(std::string scope, Hook hook) { ExampleGroup* parent_group = groups_being_defined.top(); if (scope == "each" || scope == "example") parent_group->addBeforeEachHook(ho...
Correct after hook exception message
Correct after hook exception message
C++
mit
zhangsu/ccspec,tempbottle/ccspec,tempbottle/ccspec,michaelachrisco/ccspec,tempbottle/ccspec,zhangsu/ccspec,michaelachrisco/ccspec,michaelachrisco/ccspec,zhangsu/ccspec
b432d6600652b235053177270f86a3b4329caa43
src/OpenGL/HUDRenderer.cpp
src/OpenGL/HUDRenderer.cpp
// // WulfGame/OpenGL/HUDRenderer.cpp // Copyright (C) 2012 Lexi Robinson // This code is freely available under the MIT licence. // #include "OpenGL/HUDRenderer.h" using namespace Wulf::OpenGL; HUDRenderer::HUDRenderer() { // . . . } HUDRenderer::~HUDRenderer() { // . . . } void HUDRenderer::Setup(Wulf::Op...
// // WulfGame/OpenGL/HUDRenderer.cpp // Copyright (C) 2012 Lexi Robinson // This code is freely available under the MIT licence. // #include "OpenGL/HUDRenderer.h" using namespace Wulf::OpenGL; HUDRenderer::HUDRenderer() { // . . . } HUDRenderer::~HUDRenderer() { // . . . } void HUDRenderer::Setup(Wulf::Op...
Fix invalid texture usage
Fix invalid texture usage
C++
mit
Lexicality/Wulf2012,Lexicality/Wulf2012
8ba05fa1286816e4a1f7ca4317e6ad1e260de4a8
SSPSolution/AIDLL/AIHandler.cpp
SSPSolution/AIDLL/AIHandler.cpp
#include "AIHandler.h" #define SUCCESS 1 #define FAIL 0 AIHandler::AIHandler(){} AIHandler::~AIHandler(){} int AIHandler::Shutdown() { for (int i = 0; i < this->m_maxOfAIComponents; i++) { delete this->m_AIComponents.at(i); } return SUCCESS; } int AIHandler::Initialize(int max) { this->WaypointUpdated = false...
#include "AIHandler.h" #define SUCCESS 1 #define FAIL 0 AIHandler::AIHandler(){} AIHandler::~AIHandler(){} int AIHandler::Shutdown() { for (int i = 0; i < this->m_maxOfAIComponents; i++) { delete this->m_AIComponents.at(i); } return SUCCESS; } int AIHandler::Initialize(int max) { this->WaypointUpdated = false...
UPDATE Warning handled by initializing XMVECTOR
UPDATE Warning handled by initializing XMVECTOR
C++
apache-2.0
Chringo/SSP,Chringo/SSP
f777ecc332095def132138ed20afbf86f98ec5dc
SSPSolution/AIDLL/AIHandler.cpp
SSPSolution/AIDLL/AIHandler.cpp
#include "AIHandler.h" #define SUCCESS 1 #define FAIL 0 AIHandler::AIHandler(){} AIHandler::~AIHandler(){} int AIHandler::Shutdown() { for (int i = 0; i < this->m_maxOfAIComponents; i++) { delete this->m_AIComponents.at(i); } return SUCCESS; } int AIHandler::Initialize(int max) { this->WaypointUpdated = false...
#include "AIHandler.h" #define SUCCESS 1 #define FAIL 0 AIHandler::AIHandler(){} AIHandler::~AIHandler(){} int AIHandler::Shutdown() { for (int i = 0; i < this->m_maxOfAIComponents; i++) { delete this->m_AIComponents.at(i); } return SUCCESS; } int AIHandler::Initialize(int max) { this->WaypointUpdated = false...
UPDATE position calculations
UPDATE position calculations
C++
apache-2.0
Chringo/SSP,Chringo/SSP
a5e37addc8a4dbab343f1ee27b2d74ef62a6db54
id.cpp
id.cpp
#include "id.hpp" ID::ID() { init(Department(), 0, ""); } ID::ID(const ID& c) { copy(c); } ID& ID::operator= (const ID &c) { if (this == &c) return *this; copy(c); return *this; } ID::ID(string str) { string d, d1, d2, n, s; int num; long firstSpace, firstDigit, lastDigit, lastChar; // cout << "Parsed '" << ...
#include "id.hpp" ID::ID() { init(Department(), 0, ""); } ID::ID(const ID& c) { copy(c); } ID& ID::operator= (const ID &c) { if (this == &c) return *this; copy(c); return *this; } ID::ID(string str) { string d, d1, d2, n, s; int num; long firstSpace, firstDigit, lastDigit, lastChar; // cout << "Parsed '" << ...
Fix ID's comparison function
Fix ID's comparison function it doesn't matter if something is *less than* something else, as long as they are *equal*.
C++
agpl-3.0
hawkrives/gobbldygook,hawkrives/gobbldygook,hawkrives/gobbldygook
451dc7b46780bb80e388e9d219957ad9a698684e
Source/Graphics/Framebuffer.cpp
Source/Graphics/Framebuffer.cpp
#include "Shiny/ShinyAssert.h" #include "Shiny/Graphics/Context.h" #include "Shiny/Graphics/Framebuffer.h" #include "Shiny/Graphics/Texture.h" namespace Shiny { Framebuffer::Framebuffer(GLsizei attachmentWidth, GLsizei attachmentHeight, bool withDepthStencil, const std::vector<Tex::InternalFormat>& attachmentFormats...
#include "Shiny/ShinyAssert.h" #include "Shiny/Graphics/Context.h" #include "Shiny/Graphics/Framebuffer.h" #include "Shiny/Graphics/Texture.h" namespace Shiny { Framebuffer::Framebuffer(GLsizei attachmentWidth, GLsizei attachmentHeight, bool withDepthStencil, const std::vector<Tex::InternalFormat>& attachmentFormats...
Call glDrawBuffers() in framebuffer setup
Call glDrawBuffers() in framebuffer setup
C++
mit
aaronmjacobs/Shiny,aaronmjacobs/Shiny
7d64a2a4056704328211b6590888063700c29e6a
sdk-remote/src/liburbi/uclient.cc
sdk-remote/src/liburbi/uclient.cc
/*! \file uclient.cc **************************************************************************** * * Implementation of the URBI interface class * * Copyright (C) 2004-2009 Gostai S.A.S. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU...
/*! \file uclient.cc **************************************************************************** * * Implementation of the URBI interface class * * Copyright (C) 2004-2009 Gostai S.A.S. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU...
Revert "liburbi: don't send k2 commands to k1 server."
Revert "liburbi: don't send k2 commands to k1 server." This reverts commit d556fc579694b29784aa60556a518fabcea7da29.
C++
bsd-3-clause
urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi
b8547c3b7e0ecdab566dd1c941ae7a5e67066acd
xchainer/array_body_leak_detection.cc
xchainer/array_body_leak_detection.cc
#include "xchainer/array_body_leak_detection.h" #include <memory> #include <sstream> #include <vector> #include "xchainer/array.h" #include "xchainer/array_body.h" #include "xchainer/array_node.h" #include "xchainer/graph.h" namespace xchainer { namespace internal { ArrayBodyLeakTracker* ArrayBodyLeakDetectionScope...
#include "xchainer/array_body_leak_detection.h" #include <memory> #include <sstream> #include <vector> #include "xchainer/array.h" #include "xchainer/array_body.h" #include "xchainer/array_node.h" #include "xchainer/graph.h" namespace xchainer { namespace internal { ArrayBodyLeakTracker* ArrayBodyLeakDetectionScope...
Simplify the code
Simplify the code
C++
mit
tkerola/chainer,wkentaro/chainer,ktnyt/chainer,niboshi/chainer,okuta/chainer,chainer/chainer,jnishi/chainer,pfnet/chainer,okuta/chainer,chainer/chainer,niboshi/chainer,chainer/chainer,niboshi/chainer,keisuke-umezawa/chainer,ktnyt/chainer,okuta/chainer,hvy/chainer,jnishi/chainer,hvy/chainer,keisuke-umezawa/chainer,jnish...
75f9c64fd4290cbd0e35342df2043c7aab0305c6
src/main.cc
src/main.cc
// Copyright(c) 2016 - 2017 Federico Bolelli, Costantino Grana, Michele Cancilla, Lorenzo Baraldi and Roberto Vezzani // 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...
// Copyright(c) 2016 - 2017 Federico Bolelli, Costantino Grana, Michele Cancilla, Lorenzo Baraldi and Roberto Vezzani // 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...
Add checks in order to use inverted datasets
Add checks in order to use inverted datasets
C++
bsd-3-clause
prittt/YACCLAB,prittt/YACCLAB,prittt/YACCLAB,prittt/YACCLAB
6128464bc9621ba657892fd0a90bce92220db0c5
src/main.cc
src/main.cc
/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2011 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it and/or modify ...
/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2011 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it and/or modify ...
Add missing OS-guard
Add missing OS-guard
C++
agpl-3.0
mihadyuk/qgroundcontrol,catch-twenty-two/qgroundcontrol,dagoodma/qgroundcontrol,fizzaly/qgroundcontrol,mihadyuk/qgroundcontrol,dagoodma/qgroundcontrol,scott-eddy/qgroundcontrol,lis-epfl/qgroundcontrol,iidioter/qgroundcontrol,catch-twenty-two/qgroundcontrol,cfelipesouza/qgroundcontrol,iidioter/qgroundcontrol,TheIronBorn...
8f3868f1e2b1f4f2e9b22c876cae774d81425136
src/main.cc
src/main.cc
#include <stdlib.h> #include <time.h> #include <cassert> #include <functional> #include <iostream> #include <string> #include <variant> #include <vector> #include <mpd/connection.h> #include "args.h" #include "ashuffle.h" #include "getpass.h" #include "load.h" #include "mpd_client.h" #include "shuffle.h" using names...
#include <stdlib.h> #include <time.h> #include <cassert> #include <functional> #include <iostream> #include <string> #include <variant> #include <vector> #include <mpd/connection.h> #include "args.h" #include "ashuffle.h" #include "getpass.h" #include "load.h" #include "mpd_client.h" #include "shuffle.h" using names...
Use `window-size` tweak for shuffle chain window.
Use `window-size` tweak for shuffle chain window. Fixes #67.
C++
mit
Joshkunz/ashuffle
d7e78010bcc8b49c14eb4bc00524801d03c8d0a1
src/main.cc
src/main.cc
/** * @file main.cc * @brief gcsa_locate main program. * * Uses GCSA2 index to locate k-mers in the underlying graph. * * @author Ali Ghaffaari (\@cartoonist), <ali.ghaffaari@mpi-inf.mpg.de> * * @internal * Created: Thu Aug 03, 2017 04:37 * Organization: Max-Planck-Institut fuer Informati...
/** * @file main.cc * @brief gcsa_locate main program. * * Uses GCSA2 index to locate k-mers in the underlying graph. * * @author Ali Ghaffaari (\@cartoonist), <ali.ghaffaari@mpi-inf.mpg.de> * * @internal * Created: Thu Aug 03, 2017 04:37 * Organization: Max-Planck-Institut fuer Informati...
Include number of occurrences in USR1 signal report
Include number of occurrences in USR1 signal report
C++
mit
cartoonist/gcsa-locate,cartoonist/gcsa-locate
76f9feeb3f0bff9fa8cdb625ecd16a9e33f8ce67
FeatureComputation/opencv_hdf5.cpp
FeatureComputation/opencv_hdf5.cpp
#include <opencv/cv.h> #include <H5Cpp.h> #include <assert.h> using namespace cv; using namespace H5; using namespace std; static Size imsize; H5File create_feature_file(char *filename, const Mat &base_image) { imsize = base_image.size(); return H5File(filename, H5F_ACC_TRUNC); } H5File open_feature_file(cha...
#include <opencv/cv.h> #include <H5Cpp.h> #include <assert.h> using namespace cv; using namespace H5; using namespace std; static Size imsize; H5File create_feature_file(char *filename, const Mat &base_image) { imsize = base_image.size(); return H5File(filename, H5F_ACC_TRUNC); } H5File open_feature_file(cha...
handle reading ROIs correctly
handle reading ROIs correctly
C++
mit
Rhoana/rhoana,Rhoana/rhoana,Rhoana/rhoana,Rhoana/rhoana,Rhoana/rhoana,Rhoana/rhoana
c08cbfe532d3123cfcbbab865ff5048968f80e4b
net.hh
net.hh
#ifndef NETSOCK_HH #define NETSOCK_HH #include "descriptors.hh" #include "task.hh" namespace ten { int netconnect(int fd, const address &addr, unsigned ms); int netdial(int fd, const char *addr, uint16_t port); int netaccept(int fd, address &addr, int flags, unsigned ms); ssize_t netrecv(int fd, void *buf, size_t le...
#ifndef NETSOCK_HH #define NETSOCK_HH #include "descriptors.hh" #include "task.hh" namespace ten { int netconnect(int fd, const address &addr, unsigned ms); int netdial(int fd, const char *addr, uint16_t port); int netaccept(int fd, address &addr, int flags, unsigned ms); ssize_t netrecv(int fd, void *buf, size_t le...
add recvall
add recvall
C++
apache-2.0
toffaletti/libten,toffaletti/libten,toffaletti/libten,toffaletti/libten,toffaletti/libten
ab9447707d1a7a85945f1c6f775d7da960294f7f
CCJson.cpp
CCJson.cpp
/**************************************************************************** Copyright (c) Yassy https://github.com/yassy0413/cocos2dx-3.x-util ****************************************************************************/ #include "CCJson.h" #include <sstream> #include <iomanip> #include <external/json/writer.h> #i...
/**************************************************************************** Copyright (c) Yassy https://github.com/yassy0413/cocos2dx-3.x-util ****************************************************************************/ #include "CCJson.h" #include <sstream> #include <iomanip> #include <external/json/writer.h> #i...
add uint ccjson
add uint ccjson
C++
mit
yassy0413/cocos2dx-3.x-util,yassy0413/cocos2dx-3.x-util
9dff7e90b885d8bf16bdcedec8b07a3cd3d2f496
src/fmi4cpp/fmi2/import/FmiLibraryHelper.hpp
src/fmi4cpp/fmi2/import/FmiLibraryHelper.hpp
// // Created by laht on 24.09.18. // #ifndef FMI4CPP_FMILIBRARYHELPER_HPP #define FMI4CPP_FMILIBRARYHELPER_HPP #include <fmi4cpp/fmi2/import/FmiLibrary.hpp> namespace { DLL_HANDLE loadLibrary(const std::string libName) { #ifdef WIN32 return LoadLibrary(libName.c_str()); #else return dlopen(libN...
/* * The MIT License * * Copyright 2017-2018 Norwegian University of Technology * * 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 ...
add license header
add license header
C++
mit
NTNU-IHB/FMI4cpp,NTNU-IHB/FMI4cpp,NTNU-IHB/FMI4cpp
b6b238dcefc1db60d0d1741606619e6cd3a79362
Source/ModernGL-Framebuffer.cpp
Source/ModernGL-Framebuffer.cpp
#include "ModernGL.hpp" #include "OpenGL.hpp" PyObject * NewFramebuffer(PyObject * self, PyObject * args, PyObject * kwargs) { int width = 0; int height = 0; static const char * kwlist[] = {"width", "height", 0}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ii:NewFramebuffer", (char **)kwlist, &width, &heig...
#include "ModernGL.hpp" #include "OpenGL.hpp" PyObject * NewFramebuffer(PyObject * self, PyObject * args, PyObject * kwargs) { int width = 0; int height = 0; static const char * kwlist[] = {"width", "height", 0}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ii:NewFramebuffer", (char **)kwlist, &width, &heig...
read imp #8 + checks
read imp #8 + checks
C++
mit
cprogrammer1994/ModernGL,cprogrammer1994/ModernGL,cprogrammer1994/ModernGL
829fa6db38c43d468ce08359defa2762292c5efa
src/Setup/UpdateRunner.cpp
src/Setup/UpdateRunner.cpp
#include "stdafx.h" #include "unzip.h" #include "Resource.h" #include "UpdateRunner.h" #include <vector> void CUpdateRunner::DisplayErrorMessage(CString& errorMessage, wchar_t* logFile) { CTaskDialog dlg; TASKDIALOG_BUTTON buttons[] = { { 1, L"Open Setup Log", }, { 2, L"Close", }, }; // TODO: Something about ...
#include "stdafx.h" #include "unzip.h" #include "Resource.h" #include "UpdateRunner.h" #include <vector> void CUpdateRunner::DisplayErrorMessage(CString& errorMessage, wchar_t* logFile) { CTaskDialog dlg; TASKDIALOG_BUTTON buttons[] = { { 1, L"Open Setup Log", }, { 2, L"Close", }, }; // TODO: Something about ...
Fix C4101: Remove unreferenced local variable
Fix C4101: Remove unreferenced local variable
C++
mit
punker76/Squirrel.Windows,kenbailey/Squirrel.Windows,JonMartinTx/AS400Report,JonMartinTx/AS400Report,punker76/Squirrel.Windows,kenbailey/Squirrel.Windows,Squirrel/Squirrel.Windows,BloomBooks/Squirrel.Windows,JonMartinTx/AS400Report,kenbailey/Squirrel.Windows,punker76/Squirrel.Windows,Squirrel/Squirrel.Windows,BloomBook...
6ffef287348b75262139a4aa7ac221146e30132f
src/hex/noise.cpp
src/hex/noise.cpp
#include "common.h" #include "hex/noise.h" static float interpolate(float x1, float x2, float w) { return (1.0f - w) * x1 + w * x2; } PerlinNoise::PerlinNoise(int width, int height): grid_width(width), grid_height(height) { gradients = new float_vector *[height + 1]; for (int i = 0; i <= height; i++) { ...
#include "common.h" #include "hex/noise.h" static float interpolate(float x1, float x2, float w) { return (1.0f - w) * x1 + w * x2; } static float fade(float t) { // Approximate sigmoid function: 6t^5 - 15t^4 + 10t^3 return t * t * t * (t * (t * 6 - 15) + 10); } PerlinNoise::PerlinNoise(int width, int ...
Add fading to noise.
Add fading to noise.
C++
mit
ejrh/hex,ejrh/hex
9a72cd32901f88380e5e6f4818357f8926b23173
Source/core/dom/SelectorQuery.cpp
Source/core/dom/SelectorQuery.cpp
/* * Copyright (C) 2011 Apple 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 conditi...
/* * Copyright (C) 2011 Apple 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 conditi...
Use ElementTraversal in SelectorDataList::execute
Use ElementTraversal in SelectorDataList::execute Using ElementTraversal::firstWithin and ElementTraversal::next simplifies the code. This is a backport from WebKit 150099. Patch by Ryosuke Niwa. R=morrita@chromium.org Review URL: https://chromiumcodereview.appspot.com/15857007 git-svn-id: bf5cd6ccde378db821296732...
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
59ca4484ab03c6fed9d485f002c14ffa4a895f76
src/Win32/Config-win32.cpp
src/Win32/Config-win32.cpp
#include "../USB.h" #include "resource.h" #include "Config-win32.h" #include "../deviceproxy.h" #include "../usb-pad/padproxy.h" #include "../usb-mic/audiodeviceproxy.h" #include "../configuration.h" extern HINSTANCE hInst; extern bool configChanged; void SysMessageA(const char *fmt, ...) { va_list list; char tmp[5...
#include "../USB.h" #include "resource.h" #include "Config-win32.h" #include "../deviceproxy.h" #include "../usb-pad/padproxy.h" #include "../usb-mic/audiodeviceproxy.h" #include "../configuration.h" extern HINSTANCE hInst; extern bool configChanged; void SysMessageA(const char *fmt, ...) { va_list list; char tmp[5...
fix device list names
win32: fix device list names
C++
unlicense
jackun/USBqemu-wheel,jackun/USBqemu-wheel,jackun/USBqemu-wheel
0208df968ae68d0f9b6a9903b31411b331e9fe78
src/pow.cpp
src/pow.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The BitCore Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint256.h" #include "chain.h" #include "primiti...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The BitCore Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint256.h" #include "chain.h" #include "primiti...
Update pow.cpp
Update pow.cpp
C++
mit
LIMXTEC/BitCore,LIMXTEC/BitCore,LIMXTEC/BitCore,LIMXTEC/BitCore,LIMXTEC/BitCore,LIMXTEC/BitCore
a613f0fc17a47bbf433a3778d35147ebf22beb99
src/http_util.cxx
src/http_util.cxx
/* * Various utilities for working with HTTP objects. * * author: Max Kellermann <mk@cm4all.com> */ #include "http_util.hxx" #include "pool.hxx" #include "util/CharUtil.hxx" #include "util/StringView.hxx" #include <string.h> char ** http_list_split(struct pool *pool, const char *p) { enum { MAX_ITEMS = 64 };...
/* * Various utilities for working with HTTP objects. * * author: Max Kellermann <mk@cm4all.com> */ #include "http_util.hxx" #include "pool.hxx" #include "util/CharUtil.hxx" #include "util/StringView.hxx" #include <string.h> char ** http_list_split(struct pool *pool, const char *p) { enum { MAX_ITEMS = 64 };...
use struct StringView
http_util: use struct StringView
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
4f84af0856e7621c728e5a39addf9002097b6025
src/io/file-0.cpp
src/io/file-0.cpp
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
fix bug with touch() - mtime is optional argument
core/file-0: fix bug with touch() - mtime is optional argument
C++
mit
Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd
b08387613bd177c36c0740f9702c6ba3b4c5c520
src/label_data.cc
src/label_data.cc
/****************************************************************************** * Copyright (c) 2015 Jamis Hoo * Distributed under the MIT license * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) * * Project: * Filename: label_data.cc * Version: 1.0 * Author: Jamis Hoo...
/****************************************************************************** * Copyright (c) 2015 Jamis Hoo * Distributed under the MIT license * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) * * Project: * Filename: label_data.cc * Version: 1.0 * Author: Jamis Hoo...
add label data program
add label data program
C++
mit
JamisHoo/k-Means-with-Canopy-Clustering-MapReduce,JamisHoo/k-Means-with-Canopy-Clustering-MapReduce,JamisHoo/k-Means-with-Canopy-Clustering-MapReduce
362046685c63ea77ca62ff99fc9184573a51389c
src/libcsg/map.cc
src/libcsg/map.cc
/* * Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
/* * Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
fix max_bead_dist calc without positions
map: fix max_bead_dist calc without positions
C++
apache-2.0
votca/csg,votca/csg,votca/csg,votca/csg
949a1139096b9212ff2aee3ae1ee7cb1fb18b245
src/lts_remote.hh
src/lts_remote.hh
/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program i...
/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program i...
Add missing virtual destructor
Add missing virtual destructor
C++
lgpl-2.1
giantpinkwalrus/fMBT,giantpinkwalrus/fMBT,rseymour/fMBT,pablovirolainen/fMBT,violep01/fMBT,acozzette/fMBT,rseymour/fMBT,pyykkis/fMBT,acozzette/fMBT,CosminNiculae/fMBT,yoonkiss/fMBT,mlq/fMBT,yoonkiss/fMBT,yoonkiss/fMBT,pyykkis/fMBT,heivi/fMBT,violep01/fMBT,CosminNiculae/fMBT,violep01/fMBT,rseymour/fMBT,OMKR/fMBT,heivi/f...
faeaf3b0569508fa1c95b608fdc4b2ffa090cd03
Tutorial/Tutorial2/HelloWorld2.cpp
Tutorial/Tutorial2/HelloWorld2.cpp
#include "HelloWorld2.h" #include "NFComm/NFCore/NFCObject.h" bool HelloWorld2::Init() { //ʼ std::cout << "Hello, world2, Init" << std::endl; return true; } int HelloWorld2::OnPropertyCallBackEvent( const NFIDENTID& self, const std::string& strProperty, const NFIDataList& oldVarList, const N...
#include "HelloWorld2.h" #include "NFComm/NFCore/NFCObject.h" bool HelloWorld2::Init() { //ʼ std::cout << "Hello, world2, Init" << std::endl; return true; } int HelloWorld2::OnPropertyCallBackEvent( const NFIDENTID& self, const std::string& strProperty, const NFIDataList& oldVarList, const N...
add comments for tutorial2
add comments for tutorial2
C++
apache-2.0
zh423328/NFServer,zh423328/NFServer,xinst/NoahGameFrame,zh423328/NFServer,xinst/NoahGameFrame,xinst/NoahGameFrame,xinst/NoahGameFrame,xinst/NoahGameFrame,xinst/NoahGameFrame,xinst/NoahGameFrame,zh423328/NFServer,zh423328/NFServer,xinst/NoahGameFrame,zh423328/NFServer,zh423328/NFServer,zh423328/NFServer,xinst/NoahGameFr...
0cd31d39d353ac0ec418ccbef60f82a77aab7300
src/abc-testing/runner.cxx
src/abc-testing/runner.cxx
/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*- Copyright 2013 Raffaello D. Di Napoli This file is part of Application-Building Components (henceforth referred to as ABC). ABC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*- Copyright 2013 Raffaello D. Di Napoli This file is part of Application-Building Components (henceforth referred to as ABC). ABC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
Integrate abc::testing and ABC Make
Integrate abc::testing and ABC Make
C++
lgpl-2.1
raffaellod/lofty,raffaellod/lofty
ef66e176141408b558a14b66c1355268a638264f
tascore/services/interactionhandlers/eventgenerator/tastoucheventgenerator.cpp
tascore/services/interactionhandlers/eventgenerator/tastoucheventgenerator.cpp
/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (testabilitydriver@nokia.com) ** ** This file is part of Testability Driver Qt Agent ** ** If you have questio...
/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (testabilitydriver@nokia.com) ** ** This file is part of Testability Driver Qt Agent ** ** If you have questio...
reset counter when touch point ends
reset counter when touch point ends
C++
lgpl-2.1
rferrazz/cutedriver-agent_qt,mer-tools/qttas,ration/agent_qt,mer-tools/qttas,d0b3rm4n/agent_qt,ration/agent_qt,d0b3rm4n/agent_qt,rferrazz/cutedriver-agent_qt,rasjani/cutedriver-agent_qt,ration/agent_qt,mer-tools/qttas,rasjani/cutedriver-agent_qt,nomovok-opensource/cutedriver-agent_qt,ration/agent_qt,d0b3rm4n/agent_qt,m...
4da4e41e0e171e8f8204ee573a04d2170de173de
tensorflow/compiler/mlir/tools/kernel_gen/transforms/buffer_reuse_pass.cc
tensorflow/compiler/mlir/tools/kernel_gen/transforms/buffer_reuse_pass.cc
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
Use constexpr in a C++14-compliant way
[MLIR][KernelGen] Use constexpr in a C++14-compliant way PiperOrigin-RevId: 339883324 Change-Id: I9b8cbe92bfa2bd279be4d72ca9a40b894f7fcaa7
C++
apache-2.0
frreiss/tensorflow-fred,annarev/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,tensorflow...
a92fa56b4de87acf4f90cc93ff2697035209c3a1
TelepathyQt/Farstream/channel.cpp
TelepathyQt/Farstream/channel.cpp
/** * This file is part of TelepathyQt * * Copyright © 2009-2012 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright © 2009 Nokia Corporation * * 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 Sof...
/** * This file is part of TelepathyQt * * Copyright © 2009-2012 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright © 2009 Nokia Corporation * * 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 Sof...
Add some debug warnings in early returns
farstream: Add some debug warnings in early returns
C++
lgpl-2.1
freedesktop-unofficial-mirror/telepathy__telepathy-qt,freedesktop-unofficial-mirror/telepathy__telepathy-qt,TelepathyQt/telepathy-qt,special/telepathy-qt-upstream,tiagosh/telepathy-qt,TelepathyQt/telepathy-qt,special/telepathy-qt-upstream,TelepathyIM/telepathy-qt,tiagosh/telepathy-qt,TelepathyQt/telepathy-qt,freedeskto...
1cdac50af215da6d033099ded414716fd08f3c26
src/Nazara/Network/Win32/SocketPollerImpl.cpp
src/Nazara/Network/Win32/SocketPollerImpl.cpp
// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Network/Win32/SocketPollerImpl.hpp> #include <Nazara/Network/Debug.hpp> namespace Nz { SocketPollerImpl::SocketPollerImpl()...
// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Network/Win32/SocketPollerImpl.hpp> #include <Nazara/Network/Debug.hpp> namespace Nz { SocketPollerImpl::SocketPollerImpl()...
Fix RegisterSocket on Windows
Network/SocketPoller: Fix RegisterSocket on Windows
C++
mit
DigitalPulseSoftware/NazaraEngine
d839f60367b86489f22b229144c9794db6370ce5
factory.cpp
factory.cpp
/* This file is part of the KDE project Copyright (C) 2004-2005 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is ...
/* This file is part of the KDE project Copyright (C) 2004-2005 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is ...
correct trader syntax
correct trader syntax svn path=/trunk/KDE/kdelibs/phonon/; revision=525245
C++
lgpl-2.1
sandsmark/phonon-visualization-gsoc,sandsmark/phonon-visualization-gsoc,sandsmark/phonon-visualization-gsoc,sandsmark/phonon-visualization-gsoc
ee1036e988ffe0260a88a9665a7d7ab05e64e478
src/algebra/MatrixBase.cpp
src/algebra/MatrixBase.cpp
/*********************************************** * Author: Jun Jiang - jiangjun4@sina.com * Create: 2017-07-25 16:33 * Last modified : 2017-07-25 16:33 * Filename : Matrix.h * Description : Base Data Structure **********************************************/ #include "algebra/Matrix.h" #include "algebra/Ma...
/*********************************************** * Author: Jun Jiang - jiangjun4@sina.com * Create: 2017-07-25 16:33 * Last modified : 2017-07-25 16:33 * Filename : Matrix.h * Description : Base Data Structure **********************************************/ #include "algebra/Matrix.h" #include "algebra/Ma...
fix RandomMatrix bug
fix RandomMatrix bug
C++
apache-2.0
btbujiangjun/abcdl
f919c1253c2db0f2b2b26edc92a5f68c8702829f
examples/echo/testecho.cpp
examples/echo/testecho.cpp
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include "EchoIndicationWrapper.h" #include "EchoRequestProxy.h" #include "GeneratedTypes.h" #include "SwallowProxy.h" #define LOOP_COUNT 50 //1000 #define SEPARATE_EVENT_THREAD //#define USE_MUTEX_SYNC EchoReques...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include "EchoIndicationWrapper.h" #include "EchoRequestProxy.h" #include "GeneratedTypes.h" #include "SwallowProxy.h" #define LOOP_COUNT 50 //1000 //#define SEPARATE_EVENT_THREAD //#define USE_MUTEX_SYNC EchoRequ...
add pure timer test
add pure timer test
C++
mit
8l/connectal,cambridgehackers/connectal,csail-csg/connectal,chenm001/connectal,hanw/connectal,cambridgehackers/connectal,chenm001/connectal,csail-csg/connectal,csail-csg/connectal,cambridgehackers/connectal,chenm001/connectal,csail-csg/connectal,chenm001/connectal,8l/connectal,8l/connectal,cambridgehackers/connectal,ha...
a8c0f04697c5397c52b4b340b16b6a29b1338794
Tests/tests/gapi/directx_test.cpp
Tests/tests/gapi/directx_test.cpp
#include <Tempest/DirectX12Api> #include <Tempest/Except> #include <Tempest/Device> #include <Tempest/Fence> #include <Tempest/Pixmap> #include <Tempest/Log> #include <gtest/gtest.h> #include <gmock/gmock-matchers.h> #include "gapi_test_common.h" using namespace testing; using namespace Tempest; struct Vertex { f...
#include <Tempest/DirectX12Api> #include <Tempest/Except> #include <Tempest/Device> #include <Tempest/Fence> #include <Tempest/Pixmap> #include <Tempest/Log> #include <gtest/gtest.h> #include <gmock/gmock-matchers.h> #include "gapi_test_common.h" using namespace testing; using namespace Tempest; struct Vertex { f...
remove unused variables in test
remove unused variables in test
C++
mit
Try/Tempest,Try/Tempest,Try/Tempest,Try/Tempest
0753b08e1c7a25836f18f29558638aac1bf7ad67
examples/lennard_jones.cpp
examples/lennard_jones.cpp
// Petter Strandmark 2012. // // See http://doye.chem.ox.ac.uk/jon/structures/LJ/tables.150.html // for best known minima for N <= 150. // #include <functional> #include <iomanip> #include <iostream> #include <random> #include <spii/auto_diff_term.h> #include <spii/solver.h> #include <spii/solver-callbacks.h> using ...
// Petter Strandmark 2012. // // See http://doye.chem.ox.ac.uk/jon/structures/LJ/tables.150.html // for best known minima for N <= 150. // #include <functional> #include <iomanip> #include <iostream> #include <random> #include <spii/auto_diff_term.h> #include <spii/solver.h> #include <spii/solver-callbacks.h> using ...
Remove std:: from L-J example.
Remove std:: from L-J example.
C++
bsd-2-clause
yuhangwang/spii,PetterS/spii
1f4ca64074849757c387f5284056d42faa24afdd
Geometry/sign_test.cpp
Geometry/sign_test.cpp
#include "glog/logging.h" #include "gtest/gtest.h" #include "Geometry/Sign.hpp" namespace principia { namespace geometry { class SignTest : public testing::Test { protected: Sign const positive_ = Sign(1); Sign const negative_ = Sign(-1); }; TEST_F(SignTest, Integer) { LOG(INFO) << "JE SUIS LA!"; Sign cons...
#include "glog/logging.h" #include "gtest/gtest.h" #include "Geometry/Sign.hpp" namespace principia { namespace geometry { class SignTest : public testing::Test { protected: Sign const positive_ = Sign(1); Sign const negative_ = Sign(-1); }; TEST_F(SignTest, Integer) { Sign const positive(1); Sign const ne...
Remove silly trace.
Remove silly trace.
C++
mit
eggrobin/Principia,mockingbirdnest/Principia,Norgg/Principia,mockingbirdnest/Principia,eggrobin/Principia,Norgg/Principia,Norgg/Principia,mockingbirdnest/Principia,eggrobin/Principia,pleroy/Principia,Norgg/Principia,pleroy/Principia,pleroy/Principia,mockingbirdnest/Principia,pleroy/Principia
61eae72ac7c187aeb4bcc10b275a00fc1d4fdcd8
src/medGui/database/medDatabaseNavigator.cpp
src/medGui/database/medDatabaseNavigator.cpp
/* medDatabaseNavigator.cpp --- * * Author: Julien Wintz * Copyright (C) 2008 - Julien Wintz, Inria. * Created: Tue Dec 15 09:38:39 2009 (+0100) * Version: $Id$ * Last-Updated: Mon Jun 28 14:21:37 2010 (+0200) * By: Julien Wintz * Update #: 59 */ /* Commentary: * */ /* Change log: * */ #in...
/* medDatabaseNavigator.cpp --- * * Author: Julien Wintz * Copyright (C) 2008 - Julien Wintz, Inria. * Created: Tue Dec 15 09:38:39 2009 (+0100) * Version: $Id$ * Last-Updated: Mon Jun 28 14:21:37 2010 (+0200) * By: Julien Wintz * Update #: 59 */ /* Commentary: * */ /* Change log: * */ #in...
Correct patient menu disappearing when data removed from overlay buttons
Correct patient menu disappearing when data removed from overlay buttons
C++
bsd-3-clause
aabadie/medInria-public,aabadie/medInria-public,rdebroiz/medInria-public,aabadie/medInria-public,NicolasSchnitzler/medInria-public,rdebroiz/medInria-public,NicolasSchnitzler/medInria-public,NicolasSchnitzler/medInria-public,rdebroiz/medInria-public
b871dfa33c23ffe225edc4bf1c533909bfa7e54e
src/media/media_stream_devices_controller.cc
src/media/media_stream_devices_controller.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/nw/src/media/media_stream_devices_controller.h" #include "base/values.h" #include "content/nw/src/media/media_capture_devices_dispa...
// 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 "content/nw/src/media/media_stream_devices_controller.h" #include "base/values.h" #include "content/nw/src/media/media_capture_devices_dispa...
use media_id when doing screen capture
use media_id when doing screen capture Fix #1309
C++
mit
parksangkil/nw.js,Sunggil/nw.js,askdaddy/nw.js,markYoungH/nw.js,nwjs/nw.js,Arteris/nw.js,chinakids/nw.js,youprofit/nw.js,mvinan/nw.js,pztrick/nw.js,zhangtianye/node-webkit,Ivshti/node-webkit,fancycode/node-webkit,M4sse/nw.js,liu78778/node-webkit,ondra-novak/nw.js,PUSEN/nw.js,markYoungH/nw.js,xzmagic/nw.js,Jonekee/nw.js...
7b48aa4a9f2e79aaf9ff5253128f9a54482546db
Applications/Rasterization/otbRasterization.cxx
Applications/Rasterization/otbRasterization.cxx
/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT ...
/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT ...
remove unused variable, and catch by const-ref
WRG: remove unused variable, and catch by const-ref
C++
apache-2.0
orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB
acccf2da13203428211ddae120c39f4863cd80fb
src/sub.cpp
src/sub.cpp
/* * Copyright 2013-2016 Christian Lockley * * 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 o...
/* * Copyright 2013-2016 Christian Lockley * * 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 o...
initialize struct
initialize struct
C++
apache-2.0
clockley/watchdogd,clockley/watchdogd
a099f813869811e1599fdc289b74bc43b63735ed
src/api/unified/signal.cpp
src/api/unified/signal.cpp
/******************************************************* * Copyright (c) 2015, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
/******************************************************* * Copyright (c) 2015, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
Add approx1_*_v2 functions to the unified backend
Add approx1_*_v2 functions to the unified backend
C++
bsd-3-clause
9prady9/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,umar456/arrayfire,9prady9/arrayfire,umar456/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,9prady9/arrayfire,umar456/arrayfire,umar456/arrayfire
1af7465107ae4e90be48d53b60e07e9a62cc0994
src/utf8.hh
src/utf8.hh
#ifndef utf8_hh_INCLUDED #define utf8_hh_INCLUDED namespace Kakoune { namespace utf8 { using Codepoint = uint32_t; // returns an iterator to next character first byte template<typename Iterator> Iterator next(Iterator it) { if (*it++ & 0x80) while ((*(it) & 0xC0) == 0x80) ++it; return it...
#ifndef utf8_hh_INCLUDED #define utf8_hh_INCLUDED #include <cstdint> #include <cstddef> namespace Kakoune { namespace utf8 { using Codepoint = uint32_t; // returns an iterator to next character first byte template<typename Iterator> Iterator next(Iterator it) { if (*it++ & 0x80) while ((*(it) & 0xC0) =...
add dump(OutputIterator& it, Codepoint cp)
utf8: add dump(OutputIterator& it, Codepoint cp)
C++
unlicense
alpha123/kakoune,xificurC/kakoune,jkonecny12/kakoune,rstacruz/kakoune,occivink/kakoune,alpha123/kakoune,zakgreant/kakoune,elegios/kakoune,elegios/kakoune,lenormf/kakoune,Somasis/kakoune,casimir/kakoune,casimir/kakoune,danr/kakoune,lenormf/kakoune,Asenar/kakoune,zakgreant/kakoune,xificurC/kakoune,rstacruz/kakoune,alpha1...
07c4acd51410ff075ebfca4a202e721f50065333
src/pal/src/arch/arm/signalhandlerhelper.cpp
src/pal/src/arch/arm/signalhandlerhelper.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "pal/dbgmsg.h" SET_DEFAULT_DEBUG_CHANNEL(EXCEPT); // some headers have code with asserts, so do this first ...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "pal/dbgmsg.h" SET_DEFAULT_DEBUG_CHANNEL(EXCEPT); // some headers have code with asserts, so do this first ...
Use mcontext_t instead of sigcontext (#18983)
Use mcontext_t instead of sigcontext (#18983) The type of uc_mcontext has always been `mcontext_t`, but earlier versions of Glibc just typedef'ed this to `sigcontext`. Newer versions of Glibc (since 2.27) [introduced an explicit struct type](https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=sysdeps/unix/sysv/lin...
C++
mit
mmitche/coreclr,wtgodbe/coreclr,poizan42/coreclr,wtgodbe/coreclr,cshung/coreclr,krk/coreclr,cshung/coreclr,wtgodbe/coreclr,krk/coreclr,mmitche/coreclr,mmitche/coreclr,cshung/coreclr,cshung/coreclr,poizan42/coreclr,mmitche/coreclr,cshung/coreclr,krk/coreclr,poizan42/coreclr,poizan42/coreclr,wtgodbe/coreclr,krk/coreclr,m...
cbea82eac5a5973482152cfec224b95c194afa8c
C++/099_Recover_Binary_Search_Tree.cpp
C++/099_Recover_Binary_Search_Tree.cpp
//99. Recover Binary Search Tree /* *Two elements of a binary search tree (BST) are swapped by mistake. * *Recover the tree without changing its structure. * *Tag: Tree, Depth-first Search * *Author: Linsen Wu */ #include "stdafx.h" #include <vector> #include <algorithm> using namespace std; // Definition for a bina...
//99. Recover Binary Search Tree /* *Two elements of a binary search tree (BST) are swapped by mistake. * *Recover the tree without changing its structure. * *Tag: Tree, Depth-first Search * *Author: Linsen Wu */ #include "stdafx.h" #include <vector> #include <algorithm> using namespace std; // Definition f...
improve the format
improve the format
C++
mit
bssrdf/LeetCode-Sol-Res,bssrdf/LeetCode-Sol-Res,FreeTymeKiyan/LeetCode-Sol-Res,FreeTymeKiyan/LeetCode-Sol-Res
5d8f43cfffe99c13afd03f7cccb3d6c33379941e
chrome/browser/extensions/extensions_service_unittest.cc
chrome/browser/extensions/extensions_service_unittest.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <vector> #include "base/file_path.h" #include "base/file_util.h" #include "base/message_loop.h" #include "base/path_service.h" #include...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include <vector> #include "base/file_path.h" #include "base/file_util.h" #include "base/message_loop.h" #include "base/pat...
Fix extensions_service_unittest on Linux.
Fix extensions_service_unittest on Linux. I was getting failures which are not present on buildbot, I don't know why. But with these changes it should be more solid. This also prevents a segfault which I got (out of bounds array access). Review URL: http://codereview.chromium.org/13258 git-svn-id: dd90618784b6a4b323...
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
b92d7a418a2e56976db2d1153a68cc9e65f3b7f3
src/platform/3ds/tappy-plane/source/main.cpp
src/platform/3ds/tappy-plane/source/main.cpp
// // main.cpp // tappyplane // // Created by Stephen Gowen on 8/20/15. // Copyright (c) 2015 Gowen Game Dev. All rights reserved. // #include <string.h> #include <3ds.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "DSGameScreen.h" #include "Vector2D.h" #include "TouchEvent.h" #include "...
// // main.cpp // tappyplane // // Created by Stephen Gowen on 8/20/15. // Copyright (c) 2015 Gowen Game Dev. All rights reserved. // #include <string.h> #include <3ds.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "DSGameScreen.h" #include "Vector2D.h" #include "TouchEvent.h" #include "...
Revert "Removing commented lines"
Revert "Removing commented lines" This reverts commit 284a2550da13f41a9fa7a2c59d4ca91ba0b6e67c.
C++
mit
GowenGameDevOpenSource/tappy-plane,GowenGameDevOpenSource/tappy-plane,GowenGameDevOpenSource/tappy-plane,GowenGameDevOpenSource/tappy-plane
6be3ceb4010e287d9067bc40143dff8b4d3f863d
src/programs/libpfasst_swe_sphere/chooks.cpp
src/programs/libpfasst_swe_sphere/chooks.cpp
#include <mpi.h> #include "SphereDataVars.hpp" #include "SphereDataCtx.hpp" #include "ceval.hpp" extern "C" { void cecho_error(SphereData_Spectral* sd, int step) { // not implemented } void cecho_residual(SphereDataCtx *i_ctx, double i_norm, int i_current_proc) { // get the resi...
#include <mpi.h> #include "SphereDataVars.hpp" #include "SphereDataCtx.hpp" #include "ceval.hpp" extern "C" { void cecho_error(SphereData_Spectral* sd, int step) { // not implemented } void cecho_residual(SphereDataCtx *i_ctx, double i_norm, ...
Add Support for Output Frequency Flag -o
Add Support for Output Frequency Flag -o -o output_freq now affects the output frequency of libpfasst_swe_sphere: output_freq < 0 --> no output in between, only at final time step output_freq = 0 --> output at every time step output_freq > 0 --> output if (current_time mod output_freq) == 0 Also did some reformat...
C++
mit
schreiberx/sweet,schreiberx/sweet,schreiberx/sweet,schreiberx/sweet
c664c1c1a5d8196dd5a8c9397e60afeef4c06229
gi/pyp-topics/src/train-contexts.cc
gi/pyp-topics/src/train-contexts.cc
// STL #include <iostream> #include <fstream> #include <algorithm> #include <iterator> // Boost #include <boost/program_options/parsers.hpp> #include <boost/program_options/variables_map.hpp> #include <boost/scoped_ptr.hpp> // Local #include "pyp-topics.hh" #include "corpus.hh" #include "contexts_corpus.hh" #include ...
// STL #include <iostream> #include <fstream> #include <algorithm> #include <iterator> // Boost #include <boost/program_options/parsers.hpp> #include <boost/program_options/variables_map.hpp> #include <boost/scoped_ptr.hpp> // Local #include "pyp-topics.hh" #include "corpus.hh" #include "contexts_corpus.hh" #include ...
fix duplicate help argument
fix duplicate help argument git-svn-id: 357248c53bdac2d7b36f7ee045286eb205fcf757@605 ec762483-ff6d-05da-a07a-a48fb63a330f
C++
apache-2.0
kho/mr-cdec,agesmundo/FasterCubePruning,agesmundo/FasterCubePruning,agesmundo/FasterCubePruning,agesmundo/FasterCubePruning,kho/mr-cdec,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,kho/mr-cdec,pks/cdec-dtrain-legacy,kho/mr-cdec,pks/cdec-dtrain-legacy,pks/cdec-dtrain-legacy,agesmundo/FasterCubePruning,agesmundo/FasterC...
ea36e7a74c339e993177239484801d39979d6103
chrome/common/extensions/extension_manifests_unittest.cc
chrome/common/extensions/extension_manifests_unittest.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/scoped_ptr.h" #include "base/string_util.h" #inc...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/scoped_ptr.h" #include "base/string_util.h" #inc...
Enable ManifestTest.AppLaunchContainer as it should be passing now.
Enable ManifestTest.AppLaunchContainer as it should be passing now. BUG=47230 TEST=test passes TBR=robertshield Review URL: http://codereview.chromium.org/2844016 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@50553 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
yitian134/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,g...
66431fef6cc4c721cebc295b810f0e26b2b451e2
functor.cpp
functor.cpp
/** * Copyright © 2017 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
/** * Copyright © 2017 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Handle D-Bus exceptions
Handle D-Bus exceptions The is_method_error method is deprecated, remove and add try-catch to handler D-Bus exceptions around mapper call. Signed-off-by: George Liu <f124e69123cb985598dfa856ba74cb3263194267@inspur.com> Change-Id: I1a40b6550b51059e13a71676f5daeb3f637f9182
C++
apache-2.0
openbmc/phosphor-inventory-manager,openbmc/phosphor-inventory-manager
fde4e11fb06e18c07a2578cf64eadaeb9f2fd2f1
groups/csa/csabase/csabase_tool.cpp
groups/csa/csabase/csabase_tool.cpp
// csabase_tool.cpp -*-C++-*- #include <csabase_tool.h> #include <csabase_debug.h> #include <csabase_diagnostic_builder.h> #include <llvm/Option/ArgList.h> #include <llvm/Support/Allocator.h> #include <llvm/Support/Host.h> #include <llvm/Support/ManagedStatic.h> #inclu...
// csabase_tool.cpp -*-C++-*- #include <csabase_tool.h> #include <csabase_debug.h> #include <csabase_diagnostic_builder.h> #include <llvm/Option/ArgList.h> #include <llvm/Support/Allocator.h> #include <llvm/Support/Host.h> #include <llvm/Support/ManagedStatic.h> #inclu...
Handle -isystem like -I in compilation database
Handle -isystem like -I in compilation database
C++
apache-2.0
bloomberg/bde_verify,bloomberg/bde_verify,bloomberg/bde_verify,bloomberg/bde_verify,bloomberg/bde_verify
2508661759672d71b3a12eccdd2836c192139627
src/import/chips/p9/procedures/hwp/memory/lib/workarounds/mcbist_workarounds.C
src/import/chips/p9/procedures/hwp/memory/lib/workarounds/mcbist_workarounds.C
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/workarounds/mcbist_workarounds....
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/workarounds/mcbist_workarounds....
Change MCBIST 1R work around to actually check the pause bits
Change MCBIST 1R work around to actually check the pause bits Change-Id: If74067133ab901ab08860a26f7dc234a2c351c79 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34986 Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ibm.com> Tested-by: Hostboot CI <52521565bd8ea18a2b112942dce4f4220a97c2c8@...
C++
apache-2.0
Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot
8f36fa40109984baf6175835804d77daa0f093c2
steampy.cpp
steampy.cpp
//SteamPy #include <steam/steam_api.h> #include <steam/isteamfriends.h> #include <steam/isteamugc.h> #include <steam/isteamutils.h> #if defined _WIN32 extern "C" { //Steam __declspec(dllexport) bool SteamInit(void); //SteamFriends __declspec(dllexport) const char* GetPersonaName(void); __declspec(dllexpor...
//SteamPy #include <steam/steam_api.h> #include <steam/isteamfriends.h> #include <steam/isteamugc.h> #include <steam/isteamutils.h> #if defined _WIN32 extern "C" { //Steam __declspec(dllexport) bool SteamInit(void); //SteamFriends __declspec(dllexport) const char* GetPersonaName(void); __declspec(dllexpor...
complete steampy.cpp
complete steampy.cpp
C++
mit
Gramps/SteamworksForPython,Gramps/SteamworksForPython
684e10732087955b65549452a68d2ec41a2bdcf3
src/examples/standard_extractor_la-cupula.cpp
src/examples/standard_extractor_la-cupula.cpp
/* * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia 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 (FSF), either version...
/* * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia 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 (FSF), either version...
fix typo `startStopSilince` in la-cupula extractor
fix typo `startStopSilince` in la-cupula extractor Closes #3
C++
agpl-3.0
carthach/essentia,MTG/essentia,carthach/essentia,carthach/essentia,carthach/essentia,MTG/essentia,MTG/essentia,MTG/essentia,carthach/essentia,MTG/essentia
0164e2d3b433c2c9625ec0ec9777d30de53ba1b9
src/stan/lang/ast/type/double_block_type.hpp
src/stan/lang/ast/type/double_block_type.hpp
#ifndef STAN_LANG_AST_DOUBLE_BLOCK_TYPE_HPP #define STAN_LANG_AST_DOUBLE_BLOCK_TYPE_HPP #include <stan/lang/ast/node/offset_multiplier.hpp> #include <stan/lang/ast/node/range.hpp> namespace stan { namespace lang { /** * Double block var type. */ struct double_block_type { /** * Bounds constraints */ ran...
#ifndef STAN_LANG_AST_DOUBLE_BLOCK_TYPE_HPP #define STAN_LANG_AST_DOUBLE_BLOCK_TYPE_HPP #include <stan/lang/ast/node/offset_multiplier.hpp> #include <stan/lang/ast/node/range.hpp> namespace stan { namespace lang { /** * Double block var type. */ struct double_block_type { /** * Bounds constraints */ rang...
Update double_block_type.hpp
Update double_block_type.hpp
C++
bsd-3-clause
stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan
db24b78c33b00694a7cd98c787317fd687b76bf9
examples/libvroom.cpp
examples/libvroom.cpp
#include <iostream> #include <boost/log/core.hpp> #include <boost/log/expressions.hpp> #include <boost/log/trivial.hpp> #include <boost/log/utility/setup/common_attributes.hpp> #include <boost/log/utility/setup/console.hpp> #include "../src/routing/routed_wrapper.h" #include "../src/structures/vroom/input/input.h" #i...
#include <iostream> #include <boost/log/core.hpp> #include <boost/log/expressions.hpp> #include <boost/log/trivial.hpp> #include <boost/log/utility/setup/common_attributes.hpp> #include <boost/log/utility/setup/console.hpp> #include "../src/routing/routed_wrapper.h" #include "../src/structures/vroom/input/input.h" #i...
Adjust libvroom example.
Adjust libvroom example.
C++
bsd-2-clause
jcoupey/vroom,jcoupey/vroom,VROOM-Project/vroom,VROOM-Project/vroom,VROOM-Project/vroom