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 |
|---|---|---|---|---|---|---|---|---|---|
cedb52abad4bfd5a13dc82b6d3994d26a550dff0 | main.cpp | main.cpp | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* main.cpp
*
* author: ISHII 2bit
* mail: 2bit@backspace.tokyo
*
* ... | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* main.cpp
*
* author: ISHII 2bit
* mail: 2bit@backspace.tokyo
*
* ... | update test | update test
| C++ | mit | 2bbb/bit_by_bit |
4ed02e7a72251ee398404ad56c5529e9c4722172 | IMU/main/MPU9250.cpp | IMU/main/MPU9250.cpp | /*
* MPU9250.cpp
*
* Created on: 7. 9. 2017
* Author: michp
*/
#include "MPU9250.h"
namespace flyhero {
MPU9250& MPU9250::Instance() {
static MPU9250 instance;
return instance;
}
MPU9250::MPU9250() {
this->spi = NULL;
this->rx_buffer = NULL;
this->a_fsr = ACCEL_FSR_NOT_SET;
th... | /*
* MPU9250.cpp
*
* Created on: 7. 9. 2017
* Author: michp
*/
#include "MPU9250.h"
namespace flyhero {
MPU9250& MPU9250::Instance() {
static MPU9250 instance;
return instance;
}
MPU9250::MPU9250() {
this->spi = NULL;
this->rx_buffer = NULL;
this->a_fsr = ACCEL_FSR_NOT_SET;
th... | Fix MPU9250 spi_reg_write causing StoreProhibited error | Fix MPU9250 spi_reg_write causing StoreProhibited error | C++ | mit | michprev/flyhero-esp32,michprev/flyhero-esp32 |
d01ad7a42397dc171056434ae981332215b34d5f | ITS/ITSSDDGAINda.cxx | ITS/ITSSDDGAINda.cxx | /*
- Contact: - prino@to.infn.it
- Link: - http://www.to.infn.it/~prino/alice/RawData/run11173.date
- Run Type: - PULSER_RUN
- DA Type: - LDC
- Number of events needed: >15
- Input Files: - SDDbase_step1_ddl*c*_sid*.data
- Output Files: - SDDbase_ddl*c*_sid*.data
- Trigger types used:
*/
/////////////////////////////... | /*
- Contact: - prino@to.infn.it
- Link: - http://www.to.infn.it/~prino/alice/RawData/run11173.date
- Run Type: - PULSER_RUN
- DA Type: - LDC
- Number of events needed: >15
- Input Files: - SDDbase_step1_ddl*c*_sid*.data
- Output Files: - SDDbase_ddl*c*_sid*.data
- Trigger types used:
*/
/////////////////////////////... | Fix compilation error in AMORE part (F. Prino) | Fix compilation error in AMORE part (F. Prino)
| C++ | bsd-3-clause | jgrosseo/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,mkrzewic/AliRoot,miranov25/AliRoot,miranov25/AliRoot,jgrosseo/AliRoot,alisw/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,jgrosseo/AliRoot,ecalvovi/AliRoot,alisw/AliRoot,shahor02/AliRoot,mkrzewic/AliRoot,jgrosseo/AliRoot,shahor02/AliRoot,ALICEHLT/AliRoot,... |
e2ec125abfc0f9773a4988ed3ab375b592322c8b | main.cpp | main.cpp | #include <fstream>
#include <iostream>
#include <math.h>
#include "SuperCap.hpp"
#include "DCCon_out.hpp"
#include "LoadApp.hpp"
#include "LionBat.hpp"
#include "DischargeProcess.hpp"
#include "ChargeProcess.hpp"
#include "main.hpp"
#include "powersource.hpp"
using namespace std;
int main(){
supcapacitor sp;
lionb... | #include <fstream>
#include <iostream>
#include <math.h>
#include "SuperCap.hpp"
#include "DCCon_out.hpp"
#include "LoadApp.hpp"
#include "LionBat.hpp"
#include "DischargeProcess.hpp"
#include "ChargeProcess.hpp"
#include "main.hpp"
#include "powersource.hpp"
using namespace std;
int main(){
supcapacitor sp;
lionb... | Add different power charging status | Add different power charging status
| C++ | mit | eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES,eroicaleo/HEES |
68deff506c4c43e4872fcf5b80d273b0bc723755 | main.cpp | main.cpp | #include <iostream>
#include <cstddef> // std::size_t
#include <cassert>
#include "common.h"
#include GLUT_INCLUDE
#include "Gyroid.h"
#include "Sphere.h"
#include "Decimate.h"
GLuint preDecimate(const Isosurface& surface,
float xMin, float xMax,
float yMin, float yMax,
... | #include <iostream>
#include <cstddef> // std::size_t
#include <cassert>
#include "common.h"
#include GLUT_INCLUDE
#include "Gyroid.h"
#include "Sphere.h"
#include "Decimate.h"
GLuint preDecimate(const Isosurface& surface,
float xMin, float xMax,
float yMin, float yMax,
... | Improve mouse handling when the program starts | Improve mouse handling when the program starts
| C++ | mit | Calvin-L/MarchingTetrahedrons,Calvin-L/MarchingTetrahedrons |
2d4c77a6f1371bf93d9e17de94d6ef96e0732aff | src/tests/auth_stub.cpp | src/tests/auth_stub.cpp | /*
* The MIT License (MIT)
*
* Copyright (c) <2016> <Stephan Gatzka>
*
* 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 t... | /*
* The MIT License (MIT)
*
* Copyright (c) <2016> <Stephan Gatzka>
*
* 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 t... | Correct function prototype of stub function. | Correct function prototype of stub function.
| C++ | mit | gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet |
99fc78f2cae591a81a91cabb94f7cf04ae68c5d3 | webkit/port/bindings/v8/V8WorkerCustom.cpp | webkit/port/bindings/v8/V8WorkerCustom.cpp | // Copyright (c) 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | // Copyright (c) 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | Fix worker constructor so that nested worker can be created. Review URL: http://codereview.chromium.org/67093 | Fix worker constructor so that nested worker can be created.
Review URL: http://codereview.chromium.org/67093
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@13619 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| 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 |
902c97ceda8f32d77fafd8de978fe1128ff20bc4 | code/Valuations.cpp | code/Valuations.cpp | #include "Valuations.h"
#include <iostream>
namespace NF
{
std::vector<double> generate_valuations
(const BooleanLattice& bl, DNest4::RNG& rng)
{
std::vector<double> v(bl.size());
for(size_t i=0; i<v.size(); ++i)
v[i] = 1000.0*rng.randn();
return v;
}
std::vector<d... | #include "Valuations.h"
#include <iostream>
namespace NF
{
std::vector<double> generate_valuations
(const BooleanLattice& bl, DNest4::RNG& rng)
{
std::vector<double> v(bl.size());
// Generate some values
for(size_t i=0; i<v.size(); ++i)
v[i] = 1000.0*rng.randn();
... | Allow duplicate values | Allow duplicate values
| C++ | mit | eggplantbren/NumericalFoundations |
a75baec888c7f2ade04d7a8990cbbf114cf595b8 | src/VariablesAnnotator.cpp | src/VariablesAnnotator.cpp | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | //=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=====================================================... | Fix the condition | Fix the condition
| C++ | mit | wichtounet/eddic,vogelsgesang/eddic,wichtounet/eddic,vogelsgesang/eddic,vogelsgesang/eddic,wichtounet/eddic |
51ab596d44c5d55828b372a820840a1040676e48 | src/core/lib/iomgr/error.cc | src/core/lib/iomgr/error.cc | /*
*
* Copyright 2016 gRPC 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 required by applicable law or agree... | /*
*
* Copyright 2016 gRPC 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 required by applicable law or agree... | remove unnecessary conversion (#31342) | remove unnecessary conversion (#31342)
| C++ | apache-2.0 | stanley-cheung/grpc,grpc/grpc,stanley-cheung/grpc,stanley-cheung/grpc,stanley-cheung/grpc,stanley-cheung/grpc,stanley-cheung/grpc,stanley-cheung/grpc,grpc/grpc,grpc/grpc,jtattermusch/grpc,grpc/grpc,jtattermusch/grpc,jtattermusch/grpc,jtattermusch/grpc,stanley-cheung/grpc,stanley-cheung/grpc,jtattermusch/grpc,grpc/grpc,... |
ff30a20738726922e1889f99000e23980b9c9c62 | Source/PLT/SDL2/Bitmap.cpp | Source/PLT/SDL2/Bitmap.cpp | //------------------------------------------------------------------------------
// Copyright (c) 2016 John D. Haughton
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | //------------------------------------------------------------------------------
// Copyright (c) 2016 John D. Haughton
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | Fix SDL2_image.h header issue | Fix SDL2_image.h header issue
| C++ | mit | AnotherJohnH/Platform,AnotherJohnH/Platform,AnotherJohnH/Platform,AnotherJohnH/Platform |
8b570aa5c6698800b061f29a6cbfb2bf6d71158e | src/Mod/Assembly/App/Item.cpp | src/Mod/Assembly/App/Item.cpp | /***************************************************************************
* Copyright (c) 2010 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | /***************************************************************************
* Copyright (c) 2010 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | Update Item with new UUID tool | Update Item with new UUID tool
| C++ | lgpl-2.1 | jriegel/FreeCAD,jriegel/FreeCAD,jriegel/FreeCAD,jriegel/FreeCAD,jriegel/FreeCAD |
e077c3425c8e14cee382c618728e54839a86eb7f | agent-ovs/src/SwitchConnection.cpp | agent-ovs/src/SwitchConnection.cpp | /*
* Copyright (c) 2014 Cisco Systems, Inc. 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,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
#include <s... | /*
* Copyright (c) 2014 Cisco Systems, Inc. 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,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
#include <s... | Set format value properly while setting packet-in format | Set format value properly while setting packet-in format
The format value is expected in big-endian, so OVS was responding
with OFPBRC_EPERM to set packet-in format requests.
Change-Id: I49b65fa96c5aad8c3b26874a6e364d3dcf64f19e
Signed-off-by: Amit Bose <ff20ef5e867c1c3e42e8554d0ec886fe13a3a6cf@noironetworks.com>
| C++ | epl-1.0 | opendaylight/opflex,mhrobinson/opflex,opendaylight/opflex,mhrobinson/opflex,mhrobinson/opflex,mhrobinson/opflex,opendaylight/opflex,opendaylight/opflex |
bf5dd4170ffe2b3858280c233caf2053ee47c2c7 | bench/PicturePlaybackBench.cpp | bench/PicturePlaybackBench.cpp | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Benchmark.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkPaint.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
#include "SkPoint.h"
#include "SkRe... | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Benchmark.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkPaint.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
#include "SkPoint.h"
#include "SkRa... | Add benchmark to compare different BBH query patterns. | Add benchmark to compare different BBH query patterns.
On my laptop:
maxrss loops min median mean max stddev samples config bench
37M 1 14ms 14.2ms 14.6ms 18.2ms 9% ▁█▁▁▁▁▂▂▂▁ gpu tiled_playback_tilegrid_tiled
40M 1 17ms 17.2ms 17.2ms 17.6ms 1% ▆▃▁█▄▇▂▁▁▁ gpu tiled_playback_tilegrid_random
40M 1 14.6ms 14.9ms... | C++ | bsd-3-clause | MonkeyZZZZ/platform_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,scroggo/skia,chenlian2015/skia_from_google,PAC-ROM/android_external_skia,Infinitive-OS/platform_external_skia,ominux/skia,HalCanary/skia-hc,qrealka/skia-hc,YUPlayGodDev/platform_external_skia,samuelig/skia,AOSPB/external_skia,OneRom/exter... |
bc88c959840f6db596e2fd8a8d318e99d3a68825 | backends/gpu/lib/pass/pass.cc | backends/gpu/lib/pass/pass.cc | // Copyright 2020 The TensorFlow Runtime 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 required by applicable ... | // Copyright 2020 The TensorFlow Runtime 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 required by applicable ... | Fix `populateTfrtConversionPatterns` implementation signature. | Fix `populateTfrtConversionPatterns` implementation signature.
PiperOrigin-RevId: 372440937
| C++ | apache-2.0 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime |
4c14c6f82c81dc2783f59445f56c63777765ad9e | src/api/bindings_common.cc | src/api/bindings_common.cc | // Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 righ... | // Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 righ... | handle return v8 value correctly | handle return v8 value correctly
or it will crash in v8 win dbg
| C++ | mit | zhaosichao/nw.js,M4sse/nw.js,ezshine/nw.js,mcdongWang/nwjs_Chinese,jqk6/nw.js,amoylel/nw.js,xzmagic/nw.js,angeliaz/nw.js,chengky/nw.js,parksangkil/nw.js,luisbrito/nw.js,tshinnic/nw.js,Jonekee/nw.js,chinakids/nw.js,wpsmith/nw.js,GabrielNicolasAvellaneda/nw.js,yshyee/nw.js,iesus17/nw.js,trojanspike/nw.js,kurainooni/nw.js... |
9c5c7506056bdacdee8f23584efa4d5fdc76563e | src/backend/concurrency/optimistic_transaction_manager.cpp | src/backend/concurrency/optimistic_transaction_manager.cpp | //===----------------------------------------------------------------------===//
//
// PelotonDB
//
// transaction_manager.cpp
//
// Identification: src/backend/concurrency/optimistic_transaction_manager.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===------------... | //===----------------------------------------------------------------------===//
//
// PelotonDB
//
// transaction_manager.cpp
//
// Identification: src/backend/concurrency/optimistic_transaction_manager.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===------------... | fix bug | fix bug
| C++ | apache-2.0 | larryxiao/peloton,ranxian/peloton,larryxiao/peloton,amaliujia/CMUDB-peloton,ranxian/peloton,larryxiao/peloton,amaliujia/CMUDB-peloton,omegaga/peloton,amaliujia/CMUDB-peloton,larryxiao/peloton-1,omegaga/peloton,omegaga/peloton,larryxiao/peloton-1,ranxian/peloton,larryxiao/peloton-1,omegaga/peloton,amaliujia/CMUDB-peloto... |
889bb7993a1ca97636400bc44ce3cebc8b5ef82b | kernel/src/shell.cpp | kernel/src/shell.cpp | #include <cstddef>
#include <array>
#include "types.hpp"
#include "keyboard.hpp"
#include "kernel_utils.hpp"
#include "console.hpp"
#include "shell.hpp"
#include "timer.hpp"
#include "utils.hpp"
namespace {
//Declarations of the different functions
void reboot_command(const char* params);
void help_command(const ch... | #include <cstddef>
#include <array>
#include "types.hpp"
#include "keyboard.hpp"
#include "kernel_utils.hpp"
#include "console.hpp"
#include "shell.hpp"
#include "timer.hpp"
#include "utils.hpp"
namespace {
//Declarations of the different functions
void reboot_command(const char* params);
void help_command(const ch... | Use printf | Use printf
| C++ | mit | wichtounet/thor-os,wichtounet/thor-os |
958f66a4dec63ab4003070806b889f0a4d41bb5a | benchmarks/data/io_benches.cpp | benchmarks/data/io_benches.cpp | /*******************************************************************************
* benchmarks/data/file_read_write.cpp
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Tobias Sturm <mail@tobiassturm.de>
*
* This file has no license. Only Chuck Norris can compile it.
*******************************************... | /*******************************************************************************
* benchmarks/data/file_read_write.cpp
*
* Part of Project Thrill.
*
* Copyright (C) 2015 Tobias Sturm <mail@tobiassturm.de>
*
* This file has no license. Only Chuck Norris can compile it.
*******************************************... | make block size configureable in io experiment | make block size configureable in io experiment
| C++ | bsd-2-clause | manpen/thrill,manpen/thrill,manpen/thrill,manpen/thrill,manpen/thrill |
2fa9eb84f876aefa49a15c2a5ab259cbb13497a3 | src/util/StringUtil.hxx | src/util/StringUtil.hxx | /*
* Copyright (C) 2009-2015 Max Kellermann <max@duempel.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditi... | /*
* Copyright (C) 2009-2015 Max Kellermann <max@duempel.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditi... | add missing cast | util/StringUtil: add missing cast | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
576d8b8eec10ee2eb8e8a63c5b432f02b7790b36 | DecoratorTest.cpp | DecoratorTest.cpp | #include "stdafx.h"
#include "DecoratorTest.h"
#include "AutoPacket.h"
#include "AutoPacketFactory.h"
#include "AutoPacketListener.h"
#include "FilterPropertyExtractor.h"
#include "TestFixtures/Decoration.h"
using namespace std;
TEST_F(DecoratorTest, VerifyCorrectExtraction) {
vector<const type_info*> v;
// Run ... | #include "stdafx.h"
#include "DecoratorTest.h"
#include "AutoPacket.h"
#include "AutoPacketFactory.h"
#include "AutoPacketListener.h"
#include "FilterPropertyExtractor.h"
#include "TestFixtures/Decoration.h"
using namespace std;
TEST_F(DecoratorTest, VerifyCorrectExtraction) {
vector<const type_info*> v;
// Run ... | Fix inverted conditional check in autowiring decorator test | Fix inverted conditional check in autowiring decorator test
| C++ | apache-2.0 | codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring |
f426680ada62e19c4c7fa220d385a23154c4ad6a | natus/misc.hpp | natus/misc.hpp | /*
* Copyright (c) 2010 Nathaniel McCallum <nathaniel@natemccallum.com>
*
* 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
* ... | /*
* Copyright (c) 2010 Nathaniel McCallum <nathaniel@natemccallum.com>
*
* 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
* ... | add the NT_CHECK_ARGUMENTS() macro for misc.hpp | add the NT_CHECK_ARGUMENTS() macro for misc.hpp
| C++ | mit | Natus/natus,Natus/natus,Natus/natus,Natus/natus |
4ef41de71e48ac5eb52d7c5e917c879d8bc61e38 | src/utility/FPECheck.cc | src/utility/FPECheck.cc | /***
DEVSIM
Copyright 2013 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 2013 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... | Use cenv, C++-11 for FPE handling | Use cenv, C++-11 for FPE handling
| C++ | apache-2.0 | devsim/devsim,devsim/devsim,devsim/devsim |
f5f07d8b8b9b89949d79411596d9d1a75453133f | Server/Core.cpp | Server/Core.cpp | #include "Core.h"
#include <Windows.h>
#include <Shlwapi.h>
#include <map>
#include <cstdio>
#include <mutex>
#pragma comment(lib, "Shlwapi.lib")
std::wstring g_audioPath;
std::wstring g_beatmapPath;
std::map<std::wstring, std::wstring> g_songCached;
std::mut... | #include "Core.h"
#include <Windows.h>
#include <Shlwapi.h>
#include <map>
#include <cstdio>
#include <mutex>
#pragma comment(lib, "Shlwapi.lib")
std::wstring g_audioPath;
std::wstring g_beatmapPath;
std::map<std::wstring, std::wstring> g_songCached;
std::mut... | 주석처리한부분 주석해제 | 주석처리한부분 주석해제
| C++ | mit | sunghwan2789/osu-Lyrics,sunghwan2789/osu-Lyrics,sunghwan2789/osu-Lyrics |
7a2bb054043031b53de87ba0da620303fdb9f289 | core/src/api_impl/BigIntImpl.cpp | core/src/api_impl/BigIntImpl.cpp | /*
*
* BigIntImpl
* ledger-core
*
* Created by Pierre Pollastri on 04/11/2016.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the So... | /*
*
* BigIntImpl
* ledger-core
*
* Created by Pierre Pollastri on 04/11/2016.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the So... | Fix api::BigInt::fromLong declaration | Fix api::BigInt::fromLong declaration
| C++ | mit | LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core |
17755389f2386941d45261a0833fbf6d6dff499d | WumpusWorld/PrologTest.cpp | WumpusWorld/PrologTest.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <SWI-cpp.h>
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <vector>
#include "programpath.h"
#define WORLD_LEN 6
using namespace std;
typedef struct point {
int x;
int y;
} Point;
typedef enum entity {
OURO,
... | #define _CRT_SECURE_NO_WARNINGS
#include <SWI-cpp.h>
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <vector>
#include "programpath.h"
#define WORLD_LEN 6
using namespace std;
typedef struct point {
int x;
int y;
} Point;
typedef enum entity {
OURO,
... | Fix index problem with obstacle deletion | Fix index problem with obstacle deletion
| C++ | mit | hugogrochau/wumpus-world |
23fbef9e447639febb8410e3d1f6ac5b13e93408 | src/arch/arm/stacktrace.cc | src/arch/arm/stacktrace.cc | /*
* Copyright (c) 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
* notice, ... | /*
* Copyright (c) 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
* notice, ... | implement the ProcessInfo methods | ARM: implement the ProcessInfo methods
| C++ | bsd-3-clause | andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin |
028fdf8371d7019332644a395f9006de6f340ee8 | src/cauthtool.cc | src/cauthtool.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2009 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2009 Sage Weil <sage@newdream.net>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General ... | add simpler '--cap key val' syntax | cauthtool: add simpler '--cap key val' syntax
This lets you avoid creating a temp filename and doing '--caps filename'.
Instead, add each cap individually, like
--cap mon 'allow *' --cap mds 'allow' --cap osd 'allow rwx'
Signed-off-by: Sage Weil <6dd34506bbd5e58221bbb3e4732d97c91f02277b@newdream.net>
| C++ | lgpl-2.1 | ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph |
1f8fa4ef0533e0049a263fd1a29cf8ebd36ad321 | graph/bron_kerbosch.cc | graph/bron_kerbosch.cc | // Copyright 2009 Google Inc. All Rights Reserved.
// Author: lperron@google.com (Laurent Perron)
#include <algorithm>
#include <vector>
#include "base/callback.h"
#include "base/util.h"
#include "graph/graph.h"
namespace operations_research {
namespace {
// TODO(user) : rewrite this algorithm without the recursi... | // Copyright 2010 Google
// 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,... | fix license | fix license
| C++ | apache-2.0 | hj3938/or-tools,AlperSaltabas/OR_Tools_Google_API,2947721120/curly-hockeypuck,2947721120/curly-hockeypuck,ThatRfernand/or-tools,ds0nt/or-tools,linsicai/or-tools,or-tools/or-tools,2947721120/or-tools,lfiaschi/or-tools,AlperSaltabas/OR_Tools_Google_API,KapecK/or-tools,ThatRfernand/or-tools,lfiaschi/or-tools,pbomta/or-too... |
afd226524dd3b32677c35c05e1bd6fb6c41c575b | src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/latch_wr_vref.C | src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/latch_wr_vref.C | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/latch_wr_vref.C $ */
... | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/latch_wr_vref.C $ */
... | Add pos API to be shared among controllers, move generic files to utils | Add pos API to be shared among controllers, move generic files to utils
Change-Id: I960fa560d3c61191925b32e514c1202deaa8481f
Original-Change-Id: I7daedddf83c6a34f28417c97a28e78d88ec5c9af
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37562
Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ib... | C++ | apache-2.0 | open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot |
39da61b7a25b54d5d5b587867b41c2835a7c640e | src/compiler.cpp | src/compiler.cpp | /*
* Copyright (c) 2017, Rauli Laine
* 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) 2017, Rauli Laine
* 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... | Fix infinite loop in comment parsing | Fix infinite loop in comment parsing
If line comment does not end with line terminator, parsing such comment
will currently result in infinite loops. I really need to write parser
tests soon.
| C++ | unknown | RauliL/plorth,RauliL/plorth,RauliL/plorth,RauliL/plorth,peelonet/plorth |
fbc21b4d284c2c30d7ec6e6a830467430df7df0d | Brain.cpp | Brain.cpp | #include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/foreach.hpp>
#include <cfloat>
#include <map>
#include "Brain.h"
#define TEMP_HYSTERESIS 0.5
Brain::Brain(MHEDatabase *db, MHEHardDevContainer *hardDevContainer, int refreshInSeconds, MHEMobileNotify *notify)
: _db(db),... | #include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/foreach.hpp>
#include <cfloat>
#include <map>
#include "Brain.h"
#define TEMP_HYSTERESIS 0.5
Brain::Brain(MHEDatabase *db, MHEHardDevContainer *hardDevContainer, int refreshInSeconds, MHEMobileNotify *notify)
: _db(db),... | Fix logger name. | Fix logger name.
| C++ | mit | Teka101/MyHomeEvents,Teka101/MyHomeEvents,Teka101/MyHomeEvents,Teka101/MyHomeEvents,Teka101/MyHomeEvents |
98d4344f4e75a2660f5f80540653fcc083c0228a | cpp/src/neighbors/flat_store.hpp | cpp/src/neighbors/flat_store.hpp | //
// nn_index.hpp
// Dig
//
// Created by DB on 2016-9-15
// Copyright (c) 2016 DB. All rights reserved.
//
#ifndef __FLAT_STORE_HPP
#define __FLAT_STORE_HPP
#include <memory>
#include "assert.h"
#include "Dense"
#include "nn_search.hpp"
#include "array_utils.hpp"
namespace nn {
// SELF: pick up by havin... | //
// nn_index.hpp
// Dig
//
// Created by DB on 2016-9-15
// Copyright (c) 2016 DB. All rights reserved.
//
#ifndef __FLAT_STORE_HPP
#define __FLAT_STORE_HPP
#include <memory>
#include "assert.h"
#include "Dense"
#include "nn_search.hpp"
#include "array_utils.hpp"
namespace nn {
// ==========================... | add row() accessor to RowArrays + better CRTP via type traits | add row() accessor to RowArrays + better CRTP via type traits
| C++ | mit | dblalock/dig,dblalock/dig,dblalock/dig |
be9854fa7a5eedf43581ce3b180d5439b429e42e | PotreeConverter/src/PotreeConverter.cpp | PotreeConverter/src/PotreeConverter.cpp |
#include <boost/filesystem.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include "PotreeConverter.h"
#include "stuff.h"
#include "LASPointReader.h"
#include "PTXPointReader.h"
#include "PotreeException.h"
#include "PotreeWriter.h"
#include "LASPointWriter.hpp"
#include "BINPointWriter.hpp"
#include "BINPoint... |
#include <boost/filesystem.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "PotreeConverter.h"
#include "stuff.h"
#include "LASPointReader.h"
#include "PTXPointReader.h"
#include "PotreeException.h"... | write input file meta data to sources.json | write input file meta data to sources.json
| C++ | bsd-2-clause | potree/PotreeConverter,potree/PotreeConverter,potree/PotreeConverter,potree/PotreeConverter,potree/PotreeConverter,potree/PotreeConverter,potree/PotreeConverter |
a33b34767d46aed1b029e48e462aa376b925ab48 | src/vw/FileIO/GdalIO.cc | src/vw/FileIO/GdalIO.cc | #include <vw/FileIO/GdalIO.h>
#include <vw/Core/Exception.h>
#include <vw/Core/Log.h>
static void CPL_STDCALL gdal_error_handler(CPLErr eErrClass, int nError, const char *pszErrorMsg) {
vw::MessageLevel lvl;
switch(eErrClass) {
case CE_Debug:
case CE_Warning:
lvl = vw::WarningMessage;
break;
... | #include <vw/FileIO/GdalIO.h>
#include <vw/Core/Exception.h>
#include <vw/Core/Log.h>
static void CPL_STDCALL gdal_error_handler(CPLErr eErrClass, int nError, const char *pszErrorMsg) {
vw::MessageLevel lvl;
switch(eErrClass) {
case CE_Debug:
case CE_Warning:
lvl = vw::WarningMessage;
break;
... | make sure mem gdal writer sets some necessary options | make sure mem gdal writer sets some necessary options
| C++ | apache-2.0 | DougFirErickson/visionworkbench,AveRapina/visionworkbench,DougFirErickson/visionworkbench,DougFirErickson/visionworkbench,fengzhyuan/visionworkbench,AveRapina/visionworkbench,fengzhyuan/visionworkbench,fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,fengzhyuan/visionworkbench,DougFirErickson/visionworkbench,... |
d8738e75ae9c4547e1463914af3b6eafda9e0f05 | paxos/group.cc | paxos/group.cc | // Copyright (c) 2016 Mirants Lu. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "paxos/group.h"
#include <unistd.h>
#include "util/mutexlock.h"
#include "paxos/node_util.h"
namespace skywalker {
Group::Group(uint32_t group_id, ... | // Copyright (c) 2016 Mirants Lu. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "paxos/group.h"
#include <unistd.h>
#include "util/mutexlock.h"
#include "paxos/node_util.h"
namespace skywalker {
Group::Group(uint32_t group_id, ... | fix master propose | fix master propose
| C++ | bsd-3-clause | QiumingLu/skywalker,QiumingLu/skywalker |
f7fda09b599ae1d27152535eb285e4819542ae83 | src/wx/main_toolbar.cpp | src/wx/main_toolbar.cpp | /*
* This file is part of Poedit (http://poedit.net)
*
* Copyright (C) 2014-2016 Vaclav Slavik
*
* 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 wi... | /*
* This file is part of Poedit (http://poedit.net)
*
* Copyright (C) 2014-2016 Vaclav Slavik
*
* 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 wi... | Fix Windows 10 toolbar for high-contrast themes | Fix Windows 10 toolbar for high-contrast themes
| C++ | mit | alexhenrie/poedit,PKRoma/poedit,c72578/poedit,nawawi/poedit,BenKeyFSI/poedit,vslavik/poedit,c72578/poedit,c72578/poedit,PKRoma/poedit,alexhenrie/poedit,nawawi/poedit,BenKeyFSI/poedit,vslavik/poedit,nawawi/poedit,nawawi/poedit,PKRoma/poedit,BenKeyFSI/poedit,nawawi/poedit,alexhenrie/poedit,BenKeyFSI/poedit,alexhenrie/poe... |
ff113a74bf9479e37c3dcab52c3893a000d2b37a | src/xmppproxystream.cpp | src/xmppproxystream.cpp |
#include <xmppproxystream.h>
#include <xmppproxy.h>
#include <sys/socket.h>
#include <arpa/inet.h>
//#include <netinet/in.h>
//#include <netdb.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include <string.h>
using namespace std;
/**
* Конструктор
*/
XMPPProxyStream::XMPPProxyStream(... |
#include <xmppproxystream.h>
#include <xmppproxy.h>
#include <sys/socket.h>
#include <arpa/inet.h>
//#include <netinet/in.h>
//#include <netdb.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include <string.h>
using namespace std;
/**
* Конструктор
*/
XMPPProxyStream::XMPPProxyStream(... | fix время блокировки 1 сек | fix время блокировки 1 сек
| C++ | mit | WST/mawar,WST/mawar |
93e2fa488740a68604a4069ac61eba398de7275d | test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp | test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp | // RUN: %clang_cc1 -std=c++11 %s -verify
class X0 {
void explicit_capture() {
int foo;
(void)[foo, foo] () {}; // expected-error {{'foo' can appear only once}}
(void)[this, this] () {}; // expected-error {{'this' can appear only once}}
(void)[=, foo] () {}; // expected-error {{'&' must precede a cap... | // RUN: %clang_cc1 -std=c++11 %s -verify
class X0 {
void explicit_capture() {
int foo;
(void)[foo, foo] () {}; // expected-error {{'foo' can appear only once}}
(void)[this, this] () {}; // expected-error {{'this' can appear only once}}
(void)[=, foo] () {}; // expected-error {{'&' must precede a cap... | Add a lambda example from the working draft. | Add a lambda example from the working draft.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@150239 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
65b0194d0db553fec1e60c59e8d5487315a4a731 | include/config_third.hpp | include/config_third.hpp | //=======================================================================
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#ifndef WORD_SPOTTER_CONFIG_THIRD_HPP
#define WO... | //=======================================================================
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#ifndef WORD_SPOTTER_CONFIG_THIRD_HPP
#define WO... | Disable elastic augmentation | Disable elastic augmentation
| C++ | mit | wichtounet/word_spotting,wichtounet/word_spotting,wichtounet/word_spotting |
6e1723b85a1b601313e965e73d6da7bb4bb3445a | src/abaclade/io/text/file.cxx | src/abaclade/io/text/file.cxx | /* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Softwar... | /* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Softwar... | Replace ::getenv() with std::getenv() | Replace ::getenv() with std::getenv()
| C++ | lgpl-2.1 | raffaellod/lofty,raffaellod/lofty |
39cffde579b370b2c8b5905c4a34fee3b4a130e1 | src/abc-testing/test_case.cxx | src/abc-testing/test_case.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... | Add missing this from ABC_TRACE_FN | Add missing this from ABC_TRACE_FN
| C++ | lgpl-2.1 | raffaellod/lofty,raffaellod/lofty |
cb7662f6749d5f327137c2a40e963ab4f1eb3990 | include/hpp/core/path.hh | include/hpp/core/path.hh | //
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at yo... | //
// Copyright (c) 2014 CNRS
// Authors: Florent Lamiraux
//
// This file is part of hpp-core
// hpp-core is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at yo... | Fix warnings generated by BOOST_CONCEPT_ASSERT. | Fix warnings generated by BOOST_CONCEPT_ASSERT.
| C++ | bsd-2-clause | humanoid-path-planner/hpp-core |
2bc7c4e568a78babce8bfd38012c8084b3f2157a | include/nod/DiscBase.hpp | include/nod/DiscBase.hpp | #ifndef __NOD_DISC_BASE__
#define __NOD_DISC_BASE__
#include <vector>
#include <memory>
#include <string>
#include <unordered_map>
#include <stdio.h>
#include <stdint.h>
#include <functional>
#include "Util.hpp"
#include "IDiscIO.hpp"
#include "IFileIO.hpp"
namespace nod
{
using FProgress = std::function<void(size_t... | #ifndef __NOD_DISC_BASE__
#define __NOD_DISC_BASE__
#include <vector>
#include <memory>
#include <string>
#include <unordered_map>
#include <stdio.h>
#include <stdint.h>
#include <functional>
#include "Util.hpp"
#include "IDiscIO.hpp"
#include "IFileIO.hpp"
namespace nod
{
using FProgress = std::function<void(size_t... | Add DiscBase::getPartitionNodeCount | Add DiscBase::getPartitionNodeCount
| C++ | mit | AxioDL/NODLib,RetroView/NODLib,AxioDL/NODLib,RetroView/NODLib |
9ecac28a5f3e7464dad912151b94fa5e4bfc605f | Sorting/HeapSort.cpp | Sorting/HeapSort.cpp | /*
Heap Sort :
Uses an array-implemented heap to sort a list of integers.
This is a comparison based sorting algorithm which separates the input into a
sorted and unsorted region and iteratively shrinks the unsorted region by taking
the maximum(or minimum if descending order) element and moving... | /*
Heap sort
---------
A comparison-based sorting algorithm that uses an array-implemented heap to
sort a list of integers.
Time complexity
---------------
O(N * log(N)), where N is the number of elements.
Space complexity
----------------
O(1).
*/
#include <ios... | Simplify and refactor code | Simplify and refactor code
| C++ | mit | eskeype/Algos,faheel/Algos,faheel/Algos |
6b8fac3cb043e444f3c05af0a2605ec781abbfb9 | includes/AxisInertia.hpp | includes/AxisInertia.hpp | #ifndef COFFEE_MILL_AXIS_INERTIA
#define COFFEE_MILL_AXIS_INERTIA
#include "mathematics/LinearAlgebra.hpp"
#include <vector>
namespace coffeemill
{
class AxisInertia
{
public:
AxisInertia(): calculated(false){}
AxisInertia(const std::vector<std::pair<Realvec, double>> data)
... | #ifndef COFFEE_MILL_AXIS_INERTIA
#define COFFEE_MILL_AXIS_INERTIA
#include "mathematics/LinearAlgebra.hpp"
#include <vector>
namespace coffeemill
{
class AxisInertia
{
public:
AxisInertia(): calculated(false){}
AxisInertia(const std::vector<std::pair<Realvec, double>>& data)
... | enable AxisInertia to get vector<Realvec> | modify: enable AxisInertia to get vector<Realvec>
| C++ | mit | ToruNiina/Coffee-mill,ToruNiina/Coffee-mill |
afa694feffdef47312c04080affb01803389e0b7 | browser/permission_manager.cc | browser/permission_manager.cc | // Copyright (c) 2015 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-CHROMIUM file.
#include "browser/permission_manager.h"
#include "base/callback.h"
#include "content/public/browser/child_process_security_policy.h"
#includ... | // Copyright (c) 2015 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-CHROMIUM file.
#include "browser/permission_manager.h"
#include "base/callback.h"
#include "content/public/browser/child_process_security_policy.h"
#includ... | Rename PERMISSION_STATUS enum value | Rename PERMISSION_STATUS enum value
| C++ | mit | atom/brightray,atom/brightray,brave/brightray,brave/brightray |
32bd676bb33105818e18759ccbb0a109ad29a5a5 | src/arch/wasm/long-double.cpp | src/arch/wasm/long-double.cpp | #ifdef __wasm__
#include <type_traits>
#include <cstdint>
namespace {
struct Tetra
{
[[gnu::mode(TF)]] typedef float Real;
unsigned __int128 mantissa: 112;
unsigned int exp : 15;
unsigned int sign: 1;
Tetra(Real);
explicit operator Real() const;
explicit operator __int128() const;
... | #ifdef __wasm__
#include <cstdint>
namespace {
struct Tetra
{
[[gnu::mode(TF)]] typedef float Real;
unsigned __int128 mantissa: 112;
unsigned int exp : 15;
unsigned int sign: 1;
Tetra(Real);
explicit operator Real() const;
explicit operator __int128() const;
explicit operator bool... | Remove #include <type_traits> because it is no longer tested if long double is quadruple precision | Remove #include <type_traits> because it is no longer tested if long double is quadruple precision
| C++ | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic |
226244508734c2408ad57d1188fd5513f315e653 | radiosity.cpp | radiosity.cpp | #include "trace.h"
#include "lib/output.h"
#include "lib/image.h"
#include "lib/lambertian.h"
#include "lib/range.h"
#include "lib/runtime.h"
#include "lib/triangle.h"
#include "lib/stats.h"
#include "lib/xorshift.h"
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // O... | #include "trace.h"
#include "lib/output.h"
#include "lib/image.h"
#include "lib/lambertian.h"
#include "lib/range.h"
#include "lib/runtime.h"
#include "lib/triangle.h"
#include "lib/stats.h"
#include "lib/xorshift.h"
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // O... | Simplify e method. | Simplify e method.
Former-commit-id: 392b44f6e081e9d214865ab33d53339c8d060654 | C++ | apache-2.0 | turner-renderer/turner,turner-renderer/turner,blacklab/renderer,turner-renderer/turner,jeschkies/renderer,turner-renderer/turner,jeschkies/renderer |
830281b9eeb7b939676d338c505a79fc6cf6582b | indexer/cell_coverer.hpp | indexer/cell_coverer.hpp | #pragma once
#include "cell_id.hpp"
#include "../std/queue.hpp"
#include "../std/vector.hpp"
inline bool IntersectsHoriz(CoordT x1, CoordT y1, CoordT x2, CoordT y2,
CoordT y, CoordT l, CoordT r)
{
CoordT d = (y1 - y) * (y2 - y);
if (d > 0) return false;
CoordT x = x1 + (x2 - x1) * ... | #pragma once
#include "cell_id.hpp"
#include "../std/queue.hpp"
#include "../std/vector.hpp"
inline bool IntersectsHoriz(CoordT x1, CoordT y1, CoordT x2, CoordT y2,
CoordT y, CoordT l, CoordT r)
{
CoordT d = (y1 - y) * (y2 - y);
if (d > 0) return false;
CoordT x = x1 + (x2 - x1) * ... | Remove commented-out CoverPolygon(). | Remove commented-out CoverPolygon().
| C++ | apache-2.0 | augmify/omim,stangls/omim,darina/omim,programming086/omim,bykoianko/omim,wersoo/omim,Saicheg/omim,UdjinM6/omim,stangls/omim,Zverik/omim,Zverik/omim,goblinr/omim,darina/omim,dobriy-eeh/omim,UdjinM6/omim,felipebetancur/omim,albertshift/omim,VladiMihaylenko/omim,alexzatsepin/omim,ygorshenin/omim,programming086/omim,gardst... |
df897d02b62ff9e43d062a695f9660aed3425183 | indexer/indexer_main.cpp | indexer/indexer_main.cpp | //
// indexer_main.cpp
// Argos
//
// Created by Windoze on 12-7-5.
// Copyright (c) 2012 0d0a.com. All rights reserved.
//
#include <fstream>
#include <boost/program_options.hpp>
#include "index.h"
#include "parser.h"
using namespace std;
using namespace argos;
using namespace argos::common;
using namespace argo... | //
// indexer_main.cpp
// Argos
//
// Created by Windoze on 12-7-5.
// Copyright (c) 2012 0d0a.com. All rights reserved.
//
#include <fstream>
#include <boost/program_options.hpp>
#include "index.h"
#include "parser.h"
using namespace std;
using namespace argos;
using namespace argos::common;
using namespace argo... | Allow indexer to update existing index | Allow indexer to update existing index
| C++ | bsd-2-clause | pombredanne/Argos,pombredanne/Argos,windoze/Argos,windoze/Argos,pombredanne/Argos |
13432ebfb78b9c73f86dd06a1a5ec24c66c5edca | include/caffe/blob.hpp | include/caffe/blob.hpp | // Copyright 2014 BVLC and contributors.
#ifndef CAFFE_BLOB_HPP_
#define CAFFE_BLOB_HPP_
#include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
template <typename Dtype>
class Blob {
public:
Blob()
: num_(0), channels_(0), height_(0), width_(0), coun... | // Copyright 2014 BVLC and contributors.
#ifndef CAFFE_BLOB_HPP_
#define CAFFE_BLOB_HPP_
#include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
template <typename Dtype>
class Blob {
public:
Blob()
: num_(0), channels_(0), height_(0), width_(0), coun... | Fix parameter orders in declaration of Reshape | Fix parameter orders in declaration of Reshape
| C++ | bsd-2-clause | nicodjimenez/caffe,minghuam/caffe,gogartom/caffe-textmaps,gnina/gnina,tackgeun/caffe,suixudongi8/caffe,shuimulinxi/caffe,gogartom/caffe-textmaps,vibhav-vineet/caffe,tackgeun/caffe,dylansun/caffe,xidianwlc/caffe,MoskalenkoViktor/caffe,shiquanwang/caffe,dculibrk/boosted_pooling,dylansun/caffe,gnina/gnina,audtlr24/caffe,l... |
aa0e449932f7a0db5b9146c1e747bd2cc527ab26 | lexlib/LexerBase.cxx | lexlib/LexerBase.cxx | // Scintilla source code edit control
/** @file LexerSimple.cxx
** A simple lexer with no state.
**/
// Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#... | // Scintilla source code edit control
/** @file LexerBase.cxx
** A simple lexer with no state.
**/
// Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#in... | Fix copy&paste error in comment. | Fix copy&paste error in comment.
| C++ | isc | windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla |
450ed4da9043895b5257d813a9038aaec58fbb47 | examples/wifi-echo/server/esp32/main/LEDWidget.cpp | examples/wifi-echo/server/esp32/main/LEDWidget.cpp | /*
*
* Copyright (c) 2018 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | /*
*
* Copyright (c) 2018 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | Remove leftover code in LEDWidget.cpp (#1681) | Remove leftover code in LEDWidget.cpp (#1681)
| C++ | apache-2.0 | nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,... |
0d9dbff776062f621ea981c15ef02d7087567d80 | src/audio_io/winmm_output.cpp | src/audio_io/winmm_output.cpp | #include <audio_io/audio_io.hpp>
#include <audio_io/audio_io_private.hpp>
#include <functional>
#include <string>
#include <vector>
#include <memory>
#include <utility>
#include <mutex>
#include <map>
#include <string.h>
#include <algorithm>
#include <thread>
#include <chrono>
#include <windows.h>
#include <mmreg.h> //... | #include <audio_io/audio_io.hpp>
#include <audio_io/audio_io_private.hpp>
#include <functional>
#include <string>
#include <vector>
#include <memory>
#include <utility>
#include <mutex>
#include <map>
#include <string.h>
#include <algorithm>
#include <thread>
#include <chrono>
#include <windows.h>
#include <mmreg.h> //... | Insert a call to waveOutReset, making the thread shutdown happen faster. | Insert a call to waveOutReset, making the thread shutdown happen faster.
| C++ | unlicense | camlorn/audio_io,camlorn/audio_io,libaudioverse/audio_io,libaudioverse/audio_io |
9ba68b2714e8ab9a6f3ed755096c95d5918e895d | lib/Basic/Module.cpp | lib/Basic/Module.cpp | //===--- Module.cpp - Describe a module -----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- Module.cpp - Describe a module -----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Handle [extern_c] attribute in module printer | Handle [extern_c] attribute in module printer
I'm not sure why we have OS.indent(Indent+2) for the system attribute,
but presumably we want the same behaviour for all attributes...
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@225802 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
107dccc9772f2cb2e2a906d546f18280c611d76a | apps/qtViewer/ModelViewer.cpp | apps/qtViewer/ModelViewer.cpp | // ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | // ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | Fix initial fullscreen in qtViewer | Fix initial fullscreen in qtViewer
| C++ | apache-2.0 | wilsonCernWq/ospray,wilsonCernWq/ospray,favreau/OSPRay,ospray/OSPRay,favreau/OSPRay,favreau/OSPRay,ospray/OSPRay,wilsonCernWq/ospray,MengjiaoH/ospray,Twinklebear/OSPRay,Twinklebear/OSPRay,favreau/OSPRay,MengjiaoH/ospray,ospray/OSPRay,Twinklebear/OSPRay,MengjiaoH/ospray,Twinklebear/OSPRay,MengjiaoH/ospray,MengjiaoH/ospr... |
6325406afa60d5d98a2c4e349fb92e994b33fbab | src/backend/MemoryManager.cpp | src/backend/MemoryManager.cpp | /*******************************************************
* Copyright (c) 2014, 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) 2014, 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
**********************************************... | Exit early when destructor is called on empty arrays. | Exit early when destructor is called on empty arrays.
This should speed things up when a lot of buffers are
present in the MemoryManager.
| C++ | bsd-3-clause | marbre/arrayfire,bkloppenborg/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,shehzan10/arrayfire,shehzan10/arrayfire,munnybearz/arrayfire,marbre/arrayfire,shehzan10/arrayfire,merlin-ext/arrayfire,victorv/arrayfire,umar456/arrayfire,victorv/arrayfire,marbre/arrayfire,ghisvail/arrayfire,arrayfire/arrayfire,ghisvail/ar... |
f21b8c360e66527911258828a86c280c842202f4 | test.cpp | test.cpp | #include <string>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include "json11.hpp"
#include <cassert>
#include <list>
#include <set>
#include <unordered_map>
using namespace json11;
using std::string;
// Check that Json has the properties we want.
#include <type_traits>
#define CHECK_... | #include <string>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include "json11.hpp"
#include <cassert>
#include <list>
#include <set>
#include <unordered_map>
using namespace json11;
using std::string;
// Check that Json has the properties we want.
#include <type_traits>
#define CHECK_... | add malformed comment tests. | add malformed comment tests.
add 3 testes for:
- unended multi-line comment,
- malformed single-line comment,
- trailing slash
| C++ | mit | dropbox/json11,githubwoniu/json11,githubwoniu/json11 |
e05d7f238f7b4be025430c823a3e4a7064da3c99 | Parser/spirit.cpp | Parser/spirit.cpp | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==================================================... | #include "parserPrivate.h"
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
namespace phx = boost::phoenix;
typedef struct localMonome
{
std::string coefficientBegin;
std::string coefficientEnd;
uint x_expon... | Clean up the few remaining parts from the original code, nothing from it remaining here anyway | Clean up the few remaining parts from the original code, nothing from it remaining here anyway
| C++ | bsd-3-clause | Taiki-San/Polybob,Taiki-San/Polybob |
1ea6230c7d3e441ea8a2961bc1fcd107a79cfed8 | ProcReadTimer.cpp | ProcReadTimer.cpp | #include <thread>
#include <future>
#include <algorithm>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "ProcFd.h"
#include "ProcNet.h"
#include "InodeIpHelper.h"
#include "ProcNetPublisher.h"
#include "Duration.h"
#include "ProcReadTimer.h"
using nam... | #include <thread>
#include <future>
#include <algorithm>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "ProcFd.h"
#include "ProcNet.h"
#include "InodeIpHelper.h"
#include "ProcNetPublisher.h"
#include "Duration.h"
#include "ProcReadTimer.h"
using nam... | Use std::equal for comparing sockets inode vectors | Use std::equal for comparing sockets inode vectors
| C++ | mit | zulhilmizainuddin/nettomon,zulhilmizainuddin/nettomon,zulhilmizainuddin/nettomon,zulhilmizainuddin/nettomon |
1113da43569d2cfc1ac3afbcd62e833da215989b | inc/fastuidraw/util/fastuidraw_memory.hpp | inc/fastuidraw/util/fastuidraw_memory.hpp | /*!
* \file fastuidraw_memory.hpp
* \brief file fastuidraw_memory.hpp
*
* Adapted from: WRATHNew.hpp and WRATHmemory.hpp of WRATH:
*
* Copyright 2013 by Nomovok Ltd.
* Contact: info@nomovok.com
* This Source Code Form is subject to the
* terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was ... | /*!
* \file fastuidraw_memory.hpp
* \brief file fastuidraw_memory.hpp
*
* Adapted from: WRATHNew.hpp and WRATHmemory.hpp of WRATH:
*
* Copyright 2013 by Nomovok Ltd.
* Contact: info@nomovok.com
* This Source Code Form is subject to the
* terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was ... | use std:: instead of global :: for malloc, calloc, realloc and free and also note that in doxytags | fastuidraw/util: use std:: instead of global :: for malloc, calloc, realloc and free and also note that in doxytags
| C++ | mpl-2.0 | 01org/fastuidraw,01org/fastuidraw |
68ce888781a163fdf52bd77e3707bcfbc9e49243 | need-hug/cpp/Main.cpp | need-hug/cpp/Main.cpp | #include <need-hug-lib/hpp/NeedHugGame.hpp>
#include <need-hug-lib/hpp/ReturnCode/ReturnCodeConverter.hpp>
#include <iostream>
int main(int argc, char** argv)
{
using namespace NeedHug;
ReturnCode returnCode = ReturnCode::Continue;
while(returnCode == NeedHug::ReturnCode::Continue)
{
// When the code reaches he... | #include <need-hug-lib/hpp/NeedHugGame.hpp>
#include <need-hug-lib/hpp/ReturnCode/ReturnCodeConverter.hpp>
#include <iostream>
int main(int argc, char** argv)
{
using namespace NeedHug;
ReturnCode returnCode = ReturnCode::Continue;
while (returnCode == NeedHug::ReturnCode::Continue)
{
// When the code reaches h... | Add pause before exit on windows systems | Add pause before exit on windows systems
| C++ | mit | Poelsa/need-hug,Poelsa/need-hug |
c62a65517c9ed14545a5a5223354af74aedce5fc | Include/COMInterface.inl | Include/COMInterface.inl | #pragma once
#include "COMInterface.hpp"
#include <cassert>
#include <utility>
#ifndef _WIN64
#error This files is meant to be included only in Windows builds.
#endif
using GUID = _GUID;
struct IUnknown
{
public:
virtual long QueryInterface(const GUID& interfaceID, void** object) = 0;
virtual unsigned long AddR... | #pragma once
#include "COMInterface.hpp"
#include <cassert>
#include <utility>
#ifndef _WIN64
#error This files is meant to be included only in Windows builds.
#endif
using GUID = _GUID;
struct IUnknown
{
public:
virtual long QueryInterface(const GUID& interfaceID, void** object) = 0;
virtual unsigned long AddR... | Remove extraneous `static` keyword | Remove extraneous `static` keyword | C++ | unlicense | GuildMasterInfinite/CPP-Utilities |
739f18f67dc59e869a2a1ccf657e1487e151d896 | include/visionaray/detail/pathtracing.inl | include/visionaray/detail/pathtracing.inl | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#include "../math/vector.h"
#include "../get_area.h"
#include "../get_surface.h"
#include "../result_record.h"
#include "../sampling.h"
#include "../spectrum.h"
#include "../surface_interaction.h"
#include "../traverse.h"
#ifdef _... | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#include "../math/vector.h"
#include "../get_area.h"
#include "../get_surface.h"
#include "../result_record.h"
#include "../sampling.h"
#include "../spectrum.h"
#include "../surface_interaction.h"
#include "../traverse.h"
#ifdef _... | Set heatmap scale from outside | Set heatmap scale from outside
| C++ | mit | szellmann/visionaray,szellmann/visionaray |
00c144ff48df1c2b7a00bb5e16f59aad5e31bbf5 | WhisperHost.cpp | WhisperHost.cpp | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | fix #1366 | fix #1366
| C++ | mit | CJentzsch/webthree,gluk256/webthree,gluk256/webthree,LianaHus/webthree,LianaHus/webthree,CJentzsch/webthree |
b1bb995e3f894717f9f636801ab707a0dca667ac | Rudder/Rudder.cpp | Rudder/Rudder.cpp | #include <Adafruit_HMC5883_U.h>
#include "Arduino.h"
#include "Calculations.h"
#include "Rudder.h"
#include "Boat.h"
using namespace std;
extern Adafruit_HMC5883_Unified rudderCompass;
int rudderAddr = 6;
float getCompass()
{
sensors_event_t event;
Calculations::tcaselect(rudderAddr);
rudderCompass.getEve... | #include <Adafruit_HMC5883_U.h>
#include "Arduino.h"
#include "Calculations.h"
#include "Rudder.h"
#include "Boat.h"
using namespace std;
extern Adafruit_HMC5883_Unified rudderCompass;
int rudderAddr = 6;
float getCompass()
{
sensors_event_t event;
Calculations::tcaselect(rudderAddr);
rudderCompass.getEve... | Fix starboard/port mixup | Fix starboard/port mixup
| C++ | mit | johngroves/SCOUT,johngroves/SCOUT |
286f9250a666360811c67280247feafbecfb0b4b | c-cpp/09_queue/array_queue.hpp | c-cpp/09_queue/array_queue.hpp | /**
* Created by Liam Huang (Liam0205) on 2018/10/10.
*/
#ifndef QUEUE_ARRAY_QUEUE_HPP_
#define QUEUE_ARRAY_QUEUE_HPP_
template <typename T>
class ArrayQueue {
private:
T* items_ = nullptr;
size_t capacity_ = 0;
size_t head_ = 0;
size_t tail_ = 0;
public:
ArrayQueue() = delet... | /**
* Created by Liam Huang (Liam0205) on 2018/10/10.
*/
#ifndef QUEUE_ARRAY_QUEUE_HPP_
#define QUEUE_ARRAY_QUEUE_HPP_
template <typename T>
class ArrayQueue {
private:
T* items_ = nullptr;
size_t capacity_ = 0;
size_t head_ = 0;
size_t tail_ = 0;
public:
ArrayQueue() = delet... | fix typo [other -> rhs]. | [09_queue] fix typo [other -> rhs].
| C++ | apache-2.0 | wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo |
a8d13f91083a6e99fd20228a4d5866f43987b298 | Code/GraphMol/FileParsers/MolFileWriter.cpp | Code/GraphMol/FileParsers/MolFileWriter.cpp | // $Id$
//
// Copyright (C) 2003-2006 Rational Discovery LLC
//
// @@ All Rights Reserved @@
//
#include "FileParsers.h"
#include "MolFileStereochem.h"
#include <RDGeneral/Invariant.h>
#include <GraphMol/RDKitQueries.h>
#include <fstream>
namespace RDKit{
//*************************************
//
// Ever... | // $Id$
//
// Copyright (C) 2003-2006 Rational Discovery LLC
//
// @@ All Rights Reserved @@
//
#include "FileParsers.h"
#include "MolFileStereochem.h"
#include <RDGeneral/Invariant.h>
#include <GraphMol/RDKitQueries.h>
#include <fstream>
namespace RDKit{
//*************************************
//
// Ever... | remove a compiler warning | remove a compiler warning
git-svn-id: 931ab4487dc05a11552de95f7d42b8249ade56b7@463 a5045d30-4826-4484-9c7f-6e55a06ddc77
| C++ | bsd-3-clause | rdkit/rdkit-orig,rdkit/rdkit-orig,rdkit/rdkit-orig,rdkit/rdkit-orig,rdkit/rdkit-orig,rdkit/rdkit-orig,rdkit/rdkit-orig,rdkit/rdkit-orig |
6e48b504572b90ef42e569efc5c1f624ed010a11 | protocols/libwebqq/src/impl/webqq_login.cpp | protocols/libwebqq/src/impl/webqq_login.cpp | #include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <regex>
#include <cstdint>
#include <iterator>
#include <algorithm>
#include <openssl/md5.h>
#include <openssl/rsa.h>
#include <openssl/engine.h>
#include "webqq_login.hpp"
namespace webqq {
namespace qqimpl {
namespace detail {
/... | #include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <regex>
#include <cstdint>
#include <iterator>
#include <algorithm>
#include <openssl/md5.h>
#include <openssl/rsa.h>
#include "webqq_login.hpp"
namespace webqq {
namespace qqimpl {
namespace detail {
/**
* I hacked the javascript... | fix for engine.h | fix for engine.h
| C++ | agpl-3.0 | avplayer/avbot,upsoft/avbot,upsoft/avbot,upsoft/avbot,upsoft/avbot,stone-jin/avbot,stone-jin/avbot,avplayer/avbot,stone-jin/avbot,upsoft/avbot,avplayer/avbot,avplayer/avbot,stone-jin/avbot,stone-jin/avbot,avplayer/avbot |
4fc016d1d38849030d46864f298c6a8f1f4da6ad | Core/DataStructures/mitkPropertyManager.cpp | Core/DataStructures/mitkPropertyManager.cpp | #include "mitkPropertyManager.h"
#include "mitkBoolProperty.h"
mitk::PropertyManager::PropertyManager() {
std::cout << "ctor PropertyManager" << std::endl;
m_DefaultPropertyNameSet.insert(std::string("visible"));
}
const mitk::PropertyManager::PropertyNameSet& mitk::PropertyManager::GetDefaultPropertyNames() {
... | #include "mitkPropertyManager.h"
#include "mitkProperties.h"
mitk::PropertyManager::PropertyManager() {
std::cout << "ctor PropertyManager" << std::endl;
m_DefaultPropertyNameSet.insert(std::string("visible"));
}
const mitk::PropertyManager::PropertyNameSet& mitk::PropertyManager::GetDefaultPropertyNames() {
... | fix mitkBoolProperty | fix mitkBoolProperty
| C++ | bsd-3-clause | lsanzdiaz/MITK-BiiG,fmilano/mitk,lsanzdiaz/MITK-BiiG,danielknorr/MITK,fmilano/mitk,fmilano/mitk,RabadanLab/MITKats,iwegner/MITK,rfloca/MITK,MITK/MITK,nocnokneo/MITK,NifTK/MITK,NifTK/MITK,danielknorr/MITK,lsanzdiaz/MITK-BiiG,NifTK/MITK,RabadanLab/MITKats,MITK/MITK,iwegner/MITK,nocnokneo/MITK,danielknorr/MITK,nocnokneo/M... |
703f126af719266709ae9d832ce16812b5dc7193 | src/camera/ofStableCam.cpp | src/camera/ofStableCam.cpp | #include "ofStableCam.h"
#include "ofMath.h"
#include "ofUtils.h"
// #include <iostream>
// when an ofStableCam is moving due to momentum, this keeps it
// from moving forever by assuming small values are zero.
float minDifference = 0.1e-5f;
// this is the default on windows os
unsigned long doubleclickTime = 200;
... | #include "ofStableCam.h"
#include "ofMath.h"
#include "ofUtils.h"
// #include <iostream>
// when an ofStableCam is moving due to momentum, this keeps it
// from moving forever by assuming small values are zero.
float minDifference = 0.1e-5f;
// this is the default on windows os
unsigned long doubleclickTime = 200;
... | Fix z-axis movement update (should only impact camera, not target) | Fix z-axis movement update (should only impact camera, not target)
| C++ | mpl-2.0 | xionluhnis/risepath |
6b96cf68f1e243779d51d2217b2c746c862894fe | src/chemkit/pluginmanager.cpp | src/chemkit/pluginmanager.cpp | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binar... | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binar... | Fix memory leak in PluginManager | Fix memory leak in PluginManager
This fixes a memory leak in the PluginManager class when
removing and deleting plugins. Previously the dynamic library
for the plugin wasn't being closed and deleted.
| C++ | bsd-3-clause | kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit |
510ba4eda4e221a7514eea84398eacb1e6bae0ea | xs/src/libslic3r/IO.cpp | xs/src/libslic3r/IO.cpp | #include "IO.hpp"
#include <stdexcept>
#include <fstream>
#include <functional>
#include <iostream>
#include <boost/filesystem.hpp>
#include <boost/nowide/fstream.hpp>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
namespace Slic3r { namespace IO {
const std::map<ExportFormat,std::string> extensio... | #include "IO.hpp"
#include <stdexcept>
#include <fstream>
#include <functional>
#include <iostream>
#include <boost/filesystem.hpp>
#include <boost/nowide/fstream.hpp>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
namespace Slic3r { namespace IO {
const std::map<ExportFormat,std::string> extensio... | Call repair() before trying to export object (because it tries to generate shared vertices and that method is apparently fragile). | Call repair() before trying to export object (because it tries to generate shared vertices and that method is apparently fragile).
| C++ | agpl-3.0 | alexrj/Slic3r,alexrj/Slic3r,curieos/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,alexrj/Slic3r,curieos/Slic3r,alexrj/Slic3r,alexrj/Slic3r,curieos/Slic3r,pieis2pi/Slic3r,curieos/Slic3r,curieos/Slic3r,alexrj/Slic3r,curieos/Slic3r |
100bd9f9d683094ef9e9939cfb786045d10018fd | src/common/mprpc/rpc_util.hpp | src/common/mprpc/rpc_util.hpp | // Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License version 2.... | // Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License version 2.... | Fix rpc_util include guard naming | Fix rpc_util include guard naming
| C++ | lgpl-2.1 | rimms/jubatus_core,Asuka52/jubatus,kmaehashi/jubatus,mathn/jubatus,jubatus/jubatus,kmaehashi/jubatus_core,gintenlabo/jubatus,kumagi/jubatus_core,rimms/jubatus,jubatus/jubatus,elkingtonmcb/jubatus,mathn/jubatus,gintenlabo/jubatus,roselleebarle04/jubatus,roselleebarle04/jubatus,kmaehashi/jubatus_core,kmaehashi/jubatus_co... |
28befb4c534a428f2612475571f567dafa10a512 | src/compat/glibcxx_compat.cpp | src/compat/glibcxx_compat.cpp | #include <cstddef>
#include <istream>
#include <stdexcept>
#include <typeinfo>
#ifndef _GLIBCXX_USE_NOEXCEPT
#define _GLIBCXX_USE_NOEXCEPT throw()
#endif
namespace std {
const char* bad_exception::what() const throw()
{
return "std::bad_exception";
}
const char* bad_cast::what() const throw()
{
return "std:... | #include <cstddef>
#include <istream>
#include <stdexcept>
#include <typeinfo>
#ifndef _GLIBCXX_USE_NOEXCEPT
#define _GLIBCXX_USE_NOEXCEPT throw()
#endif
namespace std {
const char* bad_exception::what() const throw()
{
return "std::bad_exception";
}
const char* bad_cast::what() const throw()
{
return "std:... | add symbol for upcoming gcc 4.9's libstdc++ | build: add symbol for upcoming gcc 4.9's libstdc++
| C++ | mit | brishtiteveja/sherlockcoin,jarymoth/dogecoin,Exceltior/dogecoin,brishtiteveja/sherlockcoin,haisee/dogecoin,brishtiteveja/sherlockcoin,marklai9999/Taiwancoin,koharjidan/dogecoin,Domer85/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,langerhans/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,langerhans/dogecoin,koharjidan/d... |
3c34cf9bc0c6c471ab1d6a446716f7fe5aa25735 | xchainer/dtype_test.cc | xchainer/dtype_test.cc | #include "xchainer/dtype.h"
#include <gtest/gtest.h>
#include <type_traits>
namespace xchainer {
namespace {
// Check if DtypeToType and TypeToDtype are inverses of each other.
template <Dtype dtype>
constexpr bool kDtypeMappingTest = dtype == TypeToDtype<DtypeToType<dtype>>;
static_assert(kDtypeMappingTest<Dtype::... | #include "xchainer/dtype.h"
#include <type_traits>
#include <gtest/gtest.h>
namespace xchainer {
namespace {
// Check if DtypeToType and TypeToDtype are inverses of each other.
template <Dtype dtype>
constexpr bool kDtypeMappingTest = dtype == TypeToDtype<DtypeToType<dtype>>;
static_assert(kDtypeMappingTest<Dtype:... | fix order of includes to follow google style guide | fix order of includes to follow google style guide
| C++ | mit | ktnyt/chainer,niboshi/chainer,niboshi/chainer,wkentaro/chainer,niboshi/chainer,chainer/chainer,chainer/chainer,chainer/chainer,chainer/chainer,jnishi/chainer,jnishi/chainer,ktnyt/chainer,pfnet/chainer,jnishi/chainer,okuta/chainer,keisuke-umezawa/chainer,jnishi/chainer,hvy/chainer,hvy/chainer,hvy/chainer,keisuke-umezawa... |
7a6365a65caf450f18bf8671b158e85a0a6d436d | lib/Target/AVR/AVRInstrumentFunctions.cpp | lib/Target/AVR/AVRInstrumentFunctions.cpp | //===-- AVRInstrumentFunctions.cpp - Insert instrumentation for testing ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- AVRInstrumentFunctions.cpp - Insert instrumentation for testing ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add argument indices to the instrumention hook functions | [AVR] Add argument indices to the instrumention hook functions
This allows the instrumention hook functions to do better
pretty-printing.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@289793 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llv... |
0b6c8e597fe75739361f80b94a6355c60a2a503f | sawbuck/image_util/disassembler_unittest.cc | sawbuck/image_util/disassembler_unittest.cc | // Copyright 2011 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2011 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Fix an error I forgot to add to the previous CL. | Fix an error I forgot to add to the previous CL.
BUG=None
TEST=None
Review URL: http://codereview.appspot.com/3972042
git-svn-id: db59699583a60be9a535cd09cdc9132301867226@150 15e8cca8-e42c-11de-a347-f34a4f72eb7d
| C++ | apache-2.0 | ericmckean/syzygy,pombreda/syzygy,ericmckean/syzygy,supriyantomaftuh/syzygy,ericmckean/syzygy,pombreda/syzygy,sebmarchand/syzygy,ericmckean/syzygy,sebmarchand/syzygy,wangming28/syzygy,wangming28/syzygy,pombreda/syzygy,google/syzygy,google/syzygy,google/syzygy,sebmarchand/syzygy,supriyantomaftuh/syzygy,sebmarchand/syzyg... |
49f201214055c8eaffa3eef91b87c4997afadc45 | lib/Transforms/IPO/FunctionResolution.cpp | lib/Transforms/IPO/FunctionResolution.cpp | //===- FunctionResolution.cpp - Resolve declarations to implementations ---===//
//
// Loop over the functions that are in the module and look for functions that
// have the same name. More often than not, there will be things like:
//
// declare void %foo(...)
// void %foo(int, int) { ... }
//
// because of the... | //===- FunctionResolution.cpp - Resolve declarations to implementations ---===//
//
// Loop over the functions that are in the module and look for functions that
// have the same name. More often than not, there will be things like:
//
// declare void %foo(...)
// void %foo(int, int) { ... }
//
// because of the... | Fix a bug resolving sprintf(...) to sprintf(char*, char*, ...) | Fix a bug resolving sprintf(...) to sprintf(char*, char*, ...)
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5446 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-... |
d802f7e29067a33c2e9db841d5b8052ef474d856 | lib/Transforms/Utils/LowerAllocations.cpp | lib/Transforms/Utils/LowerAllocations.cpp | //===- LowerAllocations.cpp - Reduce malloc & free insts to calls ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- LowerAllocations.cpp - Reduce malloc & free insts to calls ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Update comments to new-style syntax. | Update comments to new-style syntax.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@79263 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap... |
de1e73c6f2af5b9561c9a90b13db986d76cc06dd | lib/models/embed.cpp | lib/models/embed.cpp | #include <models/embed.hpp>
#include <vector>
#include <models/entity.hpp>
#include <models/embed_author.hpp>
#include <models/embed_field.hpp>
#include <models/embed_footer.hpp>
#include <models/embed_image.hpp>
#include <models/embed_video.hpp>
#include <models/embed_thumbnail.hpp>
#include <models/embed_provider.h... | #include <models/embed.hpp>
#include <vector>
#include <models/entity.hpp>
#include <models/embed_author.hpp>
#include <models/embed_field.hpp>
#include <models/embed_footer.hpp>
#include <models/embed_image.hpp>
#include <models/embed_video.hpp>
#include <models/embed_thumbnail.hpp>
#include <models/embed_provider.h... | Fix missing assignment in embed model | Fix missing assignment in embed model
| C++ | mit | FiniteReality/disccord,FiniteReality/disccord |
b2f3e2cf100088a9635692683322531d38157298 | src/firstpersoncontrol.cpp | src/firstpersoncontrol.cpp | #include "firstpersoncontrol.hpp"
#include "input.hpp"
#include "spatial.hpp"
gst::FirstPersonControl::FirstPersonControl()
: FirstPersonControl(false, 2.8f, 5.0f)
{
}
gst::FirstPersonControl::FirstPersonControl(bool freelook, float rotation_speed, float movement_speed)
: freelook(freelook),
rotation_s... | #include "firstpersoncontrol.hpp"
#include "input.hpp"
#include "spatial.hpp"
gst::FirstPersonControl::FirstPersonControl()
: FirstPersonControl(false, 2.8f, 5.0f)
{
}
gst::FirstPersonControl::FirstPersonControl(bool freelook, float rotation_speed, float movement_speed)
: freelook(freelook),
rotation_s... | change behaviour for translating on the y-axis in first-person controls freelook mode | change behaviour for translating on the y-axis in first-person controls freelook mode
| C++ | mit | mharrys/gust,mharrys/gust,mharrys/gust |
e5f6f89663a3c92fef762a59bb346bc13436c793 | src/hdf5/DataArrayHDF5.cpp | src/hdf5/DataArrayHDF5.cpp | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>
#include <nix... | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>
#include <nix... | use non-templt. DataSet::create | DA::polyCoeff: use non-templt. DataSet::create
| C++ | bsd-3-clause | stoewer/nix |
9df07c30ae1343725a06fb28dd46eb2b0d12e50a | src/include/miopen/env.hpp | src/include/miopen/env.hpp | #ifndef GUARD_MIOPEN_ENV_HPP
#define GUARD_MIOPEN_ENV_HPP
#include <cstdlib>
#include <cstring>
namespace miopen {
/// \todo Rework: Case-insensitive string compare, ODR, (?) move to .cpp
// Declare a cached environment variable
#define MIOPEN_DECLARE_ENV_VAR(x) struct x { static const char* value() { return #x; }}... | #ifndef GUARD_MIOPEN_ENV_HPP
#define GUARD_MIOPEN_ENV_HPP
#include <cstdlib>
#include <cstring>
#include <vector>
#include <string>
namespace miopen {
/// \todo Rework: Case-insensitive string compare, ODR, (?) move to .cpp
// Declare a cached environment variable
#define MIOPEN_DECLARE_ENV_VAR(x) struct x { static... | Store env variables as string | Store env variables as string
| C++ | mit | ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen |
be5f94f90a740bfc93506d40c47fcdc56c7dbdb9 | src/input/sdl/joystick.cpp | src/input/sdl/joystick.cpp | #ifdef USE_SDL
#include <SDL.h>
#include "joystick.h"
void SDLJoystick::poll(){
/* TODO */
}
JoystickInput SDLJoystick::readAll(){
/* TODO */
JoystickInput ok;
return ok;
}
SDLJoystick::~SDLJoystick(){
if (joystick){
SDL_JoystickClose(joystick);
}
}
SDLJoystick::SDLJoystick():
joyst... | #ifdef USE_SDL
#include <SDL.h>
#include "joystick.h"
void SDLJoystick::poll(){
/* TODO */
}
static bool read_button(SDL_Joystick * joystick, int button){
return SDL_JoystickGetButton(joystick, button);
}
JoystickInput SDLJoystick::readAll(){
JoystickInput input;
if (joystick){
int buttons =... | read buttons/axis in sdl joystick | read buttons/axis in sdl joystick
git-svn-id: 39e099a8ed5324aded674b764a67f7a08796d9a7@4171 662fdd30-d327-0410-a531-f549c87e1e9e
| C++ | bsd-3-clause | boyjimeking/paintown,boyjimeking/paintown,boyjimeking/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown,boyjimeking/paintown,Sevalecan/paintown,Sevalecan/paintown |
4101c6142203aa80f7b6abb6349e13e82e39dc1c | src/io/ByteOrderValues.cpp | src/io/ByteOrderValues.cpp | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence... | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence... | Fix building with DEBUG_BYTEORDER_VALUES=1 in ByteOrderValues.cpp | Fix building with DEBUG_BYTEORDER_VALUES=1 in ByteOrderValues.cpp
Add missing includes and missing std::
Fixes #863
| C++ | lgpl-2.1 | mwtoews/libgeos,mwtoews/libgeos,libgeos/libgeos,libgeos/libgeos,mwtoews/libgeos,libgeos/libgeos,mwtoews/libgeos,mwtoews/libgeos,mwtoews/libgeos,libgeos/libgeos,mwtoews/libgeos,libgeos/libgeos |
708ceec1d9ed10dc4b83cf10680420a16124700a | src/libmettle/cmd_line.cpp | src/libmettle/cmd_line.cpp | #include <mettle/driver/cmd_line.hpp>
#include <cassert>
#include <cstdint>
#include <regex>
#include <sstream>
#include <stdexcept>
#include <boost/program_options.hpp>
#include <mettle/driver/log/brief.hpp>
#include <mettle/driver/log/verbose.hpp>
#include <mettle/detail/string_algorithm.hpp>
#ifndef _WIN32
# in... | #include <mettle/driver/cmd_line.hpp>
#include <cassert>
#include <cstdint>
#include <regex>
#include <sstream>
#include <stdexcept>
#include <boost/program_options.hpp>
#include <mettle/driver/log/brief.hpp>
#include <mettle/driver/log/verbose.hpp>
#include <mettle/detail/string_algorithm.hpp>
#ifndef _WIN32
# in... | Simplify -c argument (now equivalent to --color=always) | Simplify -c argument (now equivalent to --color=always)
| C++ | bsd-3-clause | jimporter/mettle,jimporter/mettle |
bfb60d9409b66fe444b5b9bb321810317247e396 | libcard/src/deck.cpp | libcard/src/deck.cpp | #include <card/deck.hpp>
#include <algorithm>
namespace cg {
Deck::Deck(std::string&& name) : m_name(name), m_cards() {}
void Deck::shuffle() {
std::shuffle(m_cards.begin(), m_cards.end(),
std::mt19937{std::random_device{}()});
}
}
| #include <card/deck.hpp>
#include <algorithm>
#include <random>
namespace cg {
Deck::Deck(std::string&& name) : m_name(name), m_cards() {}
void Deck::shuffle() {
std::shuffle(m_cards.begin(), m_cards.end(),
std::mt19937{std::random_device{}()});
}
}
| Fix compilation | Fix compilation
| C++ | apache-2.0 | Mizux/cardgame |
1b0acc309ff2b5135b313308fb1ce276a8c95097 | libcpu/interface.cpp | libcpu/interface.cpp | /*
* libcpu: interface.cpp
*
* This is the interface to the client.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/LinkAllPasses.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/TargetSelect... | /*
* libcpu: interface.cpp
*
* This is the interface to the client.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/LinkAllPasses.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/TargetSelect... | Kill calls to llvm::Module::dump() | llvm: Kill calls to llvm::Module::dump()
Linker says no:
/usr/bin/ld: ../../libcpu/libcpu.so: undefined reference to `llvm::Module::dump() const'
| C++ | bsd-2-clause | libcpu/libcpu,libcpu/libcpu,libcpu/libcpu,libcpu/libcpu |
5f0e5044473e14a914104f3c2c949af0adacbc05 | src/ngx_rewrite_options.cc | src/ngx_rewrite_options.cc | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | support mapProxyDomain | options: support mapProxyDomain
| C++ | apache-2.0 | pagespeed/ngx_pagespeed,digideskio/ngx_pagespeed,wanrui/ngx_pagespeed,pagespeed/ngx_pagespeed,wanrui/ngx_pagespeed,digideskio/ngx_pagespeed,0x0mar/ngx_pagespeed,0x0mar/ngx_pagespeed |
c24915fa465a733bc3e304d527978b61065ad70c | Server/src/ServerPub.cpp | Server/src/ServerPub.cpp | #include "ServerPub.hpp"
#include "Protocol.hpp"
#include "DataBuffer.hpp"
namespace RhIO {
ServerPub::ServerPub(std::string endpoint) :
_context(1),
_socket(_context, ZMQ_PUB),
_isWritingTo1(true),
_queue1Bool(),
_queue1Int(),
_queue1Float(),
_queue1Str(),
_queue1Stream(),
_queue1... | #include "ServerPub.hpp"
#include "Protocol.hpp"
#include "DataBuffer.hpp"
#ifdef VISION_COMPONENT
#define WATERMARK 10
#else
#define WATERMARK 0
#endif
namespace RhIO {
ServerPub::ServerPub(std::string endpoint) :
_context(1),
_socket(_context, ZMQ_PUB),
_isWritingTo1(true),
_queue1Bool(),
_queu... | disable watermark if novision | disable watermark if novision
| C++ | mit | Rhoban/RhIO |
a6d4af14696316009e63a8108d16d1fcb5646cf3 | json.cpp | json.cpp | /** Copyright (c) 2013, Sean Kasun */
#include <QFile>
#include <QtCore>
#include "./json.h"
enum Token {
TokenNULL,
TokenTRUE,
TokenFALSE,
TokenString,
TokenNumber,
TokenObject,
TokenArray,
TokenObjectClose,
TokenArrayClose,
TokenKeySeparator,
TokenValueSeparator
};
class JSONHelper {
public:
... | /** Copyright (c) 2013, Sean Kasun */
#include <QFile>
#include <QtCore>
#include "./json.h"
enum Token {
TokenNULL,
TokenTRUE,
TokenFALSE,
TokenString,
TokenNumber,
TokenObject,
TokenArray,
TokenObjectClose,
TokenArrayClose,
TokenKeySeparator,
TokenValueSeparator
};
class JSONHelper {
public:
... | fix access out of boundary when json file is completely empty | fix access out of boundary when json file is completely empty
| C++ | bsd-2-clause | mrkite/minutor,EtlamGit/minutor,EtlamGit/minutor,EtlamGit/minutor,EtlamGit/minutor,mrkite/minutor,EtlamGit/minutor,mrkite/minutor,mrkite/minutor,mrkite/minutor |
4a79f77b2ed88dc8f0a58a237413552a0f7306f7 | konbu.hh | konbu.hh | /* You can use one of the both BSD 3-Clause License or GNU Lesser General Public License 3.0 for this source. */
/* BSD 3-Clause License:
* Copyright (c) 2013 - 2021, kazunobu watatsu.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided ... | /* You can use one of the both BSD 3-Clause License or GNU Lesser General Public License 3.0 for this source. */
/* BSD 3-Clause License:
* Copyright (c) 2013 - 2021, kazunobu watatsu.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided ... | fix qr. | fix qr. | C++ | bsd-3-clause | bitsofcotton/conv_check |
d8d4ae3a785b586d0719be541294f0f5ec8aa2f1 | main.cpp | main.cpp | ae4761e1-4b02-11e5-8184-28cfe9171a43 | ae52d0fd-4b02-11e5-ac8d-28cfe9171a43 | Put the thingie in the thingie | Put the thingie in the thingie | C++ | apache-2.0 | haosdent/jcgroup,haosdent/jcgroup |
9ffb27beaa0c18aa1224d073bd9ecf69297b4c02 | main.cpp | main.cpp | #include <string>
#include "pongobj.h"
#include "pongstring.h"
#include "sysio.h"
#include "pongproperties.h"
#include "pongtrigger.h"
#include "mainautomation.h"
using pong::PString;
using pong::PRect;
using pong::PKProperty;
using pong::PGProperty;
using pong::PGTrigger;
using pong::sys::SOut;
using pong::sys::SInIn... | #include <string>
#include "pongobj.h"
#include "pongstring.h"
#include "sysio.h"
#include "pongproperties.h"
#include "pongtrigger.h"
#include "mainautomation.h"
using pong::PString;
using pong::PRect;
using pong::PKProperty;
using pong::PGProperty;
using pong::PGTrigger;
using pong::sys::SOut;
using pong::sys::SInIn... | Rearrange objects | Rearrange objects
| C++ | mit | pauis/pipong |
747e3c4b3de6436c562066aa9cbade322765926d | main.cpp | main.cpp | //
// main.cpp
//
// Basic BST class implementation with insert, search, remove, recursive inorder print,
// and iterative inorder print.
//
// Created by Christopher Gleeson on 12/21/15.
// Copyright © 2015 Christopher Gleeson. All rights reserved.
//
#include <iostream>
#include <stack>
#include <cassert>
stru... | //
// main.cpp
// C++ClassBST
//
// Basic BST class implementation with insert, search, remove, recursive inorder print,
// and iterative inorder print.
//
// The data type of value in the leaf struct is templateized.
//
// Created by Christopher Gleeson on 12/21/15.
// Copyright © 2015 Christopher Gleeson. All ... | Update to main.cpp | Update to main.cpp
Refactored the struct/class definitions to use a template type for the value data type, class can now be used for any numeric data type (int, float, etc...) | C++ | mit | randomInteger/CPlusPlus-BST |
d2e8613aa89cfe64fc23271165789f37551ab088 | main.cpp | main.cpp | #include <iostream>
#include <vector>
#include "GrappaContext.hpp"
#include <time.h>
#include <iomanip>
using std::cout;
struct int_container {
int64_t a;
int64_t b;
};
struct double_container {
double a;
double b;
};
int add(const int& a, const int& b) {
return a + b;
}
int main(int argc, cha... | #include <iostream>
#include <vector>
#include "GrappaContext.hpp"
#include <time.h>
#include <iomanip>
using std::cout;
struct int_container {
int64_t a;
int64_t b;
};
struct double_container {
double a;
double b;
};
int add(const int& a, const int& b) {
return a + b;
}
int main(int argc, cha... | Print milliseconds in addition to seconds | Print milliseconds in addition to seconds
| C++ | bsd-3-clause | EntilZha/GrappaRDD |
8e66392e790384a4a09f6a0ed1257fbc76f94899 | main.cpp | main.cpp | #include<iostream>
using namespace std;
void main()
{
cout<<"Hello world github 2016-11-24."<<endl;
}
| #include<iostream>
using namespace std;
void main()
{
cout<<"Hello world github in 2016-11-24."<<endl;
int n;
cin>>n;
return;
}
| Update main.cpp | Update main.cpp
add and modify some line text | C++ | apache-2.0 | zhangqingzhi/HelloWorld |
23a70ad4ff24de5a1e2f2e350683f7e075f80c8f | main.cpp | main.cpp | #include <iostream>
#include <unistd.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "tile.h"
#include "loader.h"
struct s_window_state {
int width;
int height;
} window_state;
double latitude = 50.356718;
double longitude = 7.599485;
bool left_mouse_down = false;
bool rig... | #include <iostream>
#include <unistd.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "tile.h"
#include "loader.h"
struct s_window_state {
int width;
int height;
} window_state;
double latitude = 50.356718;
double longitude = 7.599485;
bool left_mouse_down = false;
bool rig... | Switch from a hardcoded constant to a define | Switch from a hardcoded constant to a define
Improves the understandibility. Also switch to 65° because it looks better.
| C++ | mit | egore/slippymap3d,egore/slippymap3d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.