hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
c450fac68fa8df9625a6f1af5e900b7cee05546e
424
cpp
C++
tests/src/string_ifind.cpp
scaryrawr/mtl
eea8e9c6662b613dc5098a2cb442a7b1522bf8f0
[ "MIT" ]
null
null
null
tests/src/string_ifind.cpp
scaryrawr/mtl
eea8e9c6662b613dc5098a2cb442a7b1522bf8f0
[ "MIT" ]
null
null
null
tests/src/string_ifind.cpp
scaryrawr/mtl
eea8e9c6662b613dc5098a2cb442a7b1522bf8f0
[ "MIT" ]
null
null
null
#include <mtl/string.hpp> #include <gtest/gtest.h> TEST(StringIFind, RawString) { const char *str{"Hello World"}; ASSERT_EQ(mtl::string::ifind(str, "world"), 6); } TEST(StringIFind, BasicString) { std::string str{"Hello World"}; ASSERT_EQ(mtl::string::ifind(str, "world"), 6); } TEST(StringIFind, Stri...
21.2
51
0.658019
scaryrawr
c452f423deb6313cd02bcba1fc8e104f0091c11e
30
hpp
C++
src/boost_mpl_next.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_mpl_next.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_mpl_next.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/mpl/next.hpp>
15
29
0.733333
miathedev
c4545d26f42e20282c276664e20c31c163072b06
10,794
cc
C++
lite/kernels/apu/bridges/elementwise_ops.cc
wanglei91/Paddle-Lite
8b2479f4cdd6970be507203d791bede5a453c09d
[ "Apache-2.0" ]
1,799
2019-08-19T03:29:38.000Z
2022-03-31T14:30:50.000Z
lite/kernels/apu/bridges/elementwise_ops.cc
wanglei91/Paddle-Lite
8b2479f4cdd6970be507203d791bede5a453c09d
[ "Apache-2.0" ]
3,767
2019-08-19T03:36:04.000Z
2022-03-31T14:37:26.000Z
lite/kernels/apu/bridges/elementwise_ops.cc
wanglei91/Paddle-Lite
8b2479f4cdd6970be507203d791bede5a453c09d
[ "Apache-2.0" ]
798
2019-08-19T02:28:23.000Z
2022-03-31T08:31:54.000Z
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
35.98
78
0.55642
wanglei91
c459882e7b80214d0930a4a7dea9843803f5011d
6,872
hpp
C++
examples/select/select.hpp
stevenybw/thrill
a2dc05035f4e24f64af0a22b60155e80843a5ba9
[ "BSD-2-Clause" ]
609
2015-08-27T11:09:24.000Z
2022-03-28T21:34:05.000Z
examples/select/select.hpp
tim3z/thrill
f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa
[ "BSD-2-Clause" ]
109
2015-09-10T21:34:42.000Z
2022-02-15T14:46:26.000Z
examples/select/select.hpp
tim3z/thrill
f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa
[ "BSD-2-Clause" ]
114
2015-08-27T14:54:13.000Z
2021-12-08T07:28:35.000Z
/******************************************************************************* * examples/select/select.hpp * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2016 Lorenz Hübschle-Schneider <lorenz@4z2.de> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. **...
34.532663
80
0.565192
stevenybw
c46636ba7931107aa21b40388ac3342be1672f56
5,064
cpp
C++
src/RageSurface_Load.cpp
graemephi/etterna
b984fe493d9f7ac84a35af3e6f80f16607aceb09
[ "MIT" ]
null
null
null
src/RageSurface_Load.cpp
graemephi/etterna
b984fe493d9f7ac84a35af3e6f80f16607aceb09
[ "MIT" ]
null
null
null
src/RageSurface_Load.cpp
graemephi/etterna
b984fe493d9f7ac84a35af3e6f80f16607aceb09
[ "MIT" ]
null
null
null
#include "global.h" #include "ActorUtil.h" #include "RageFile.h" #include "RageLog.h" #include "RageSurface_Load.h" #include "RageSurface_Load_BMP.h" #include "RageSurface_Load_GIF.h" #include "RageSurface_Load_JPEG.h" #include "RageSurface_Load_PNG.h" #include "RageUtil.h" #include <set> static RageSurface* TryOpenF...
32.883117
77
0.720577
graemephi
c47621d6b4f0c61a6c33fc2c834f9f42419536c9
5,217
cpp
C++
OGDF/src/ogdf/fileformats/xml/Lexer.cpp
shahnidhi/MetaCarvel
f3bea5fdbbecec4c9becc6bbdc9585a939eb5481
[ "MIT" ]
13
2017-12-21T03:35:41.000Z
2022-01-31T13:45:25.000Z
OGDF/src/ogdf/fileformats/xml/Lexer.cpp
shahnidhi/MetaCarvel
f3bea5fdbbecec4c9becc6bbdc9585a939eb5481
[ "MIT" ]
7
2017-09-13T01:31:24.000Z
2021-12-14T00:31:50.000Z
OGDF/src/ogdf/fileformats/xml/Lexer.cpp
shahnidhi/MetaCarvel
f3bea5fdbbecec4c9becc6bbdc9585a939eb5481
[ "MIT" ]
15
2017-09-07T18:28:55.000Z
2022-01-18T14:17:43.000Z
/** \file * \brief Implementation of simple XML lexer. * * \author Łukasz Hanuszczak * * \par License: * This file is part of the Open Graph Drawing Framework (OGDF). * * \par * Copyright (C)<br> * See README.txt in the root directory of the OGDF installation for details. * * \par * This program is free so...
17.989655
77
0.608396
shahnidhi
c476b9e173ab8d68f2fbd673567f74289990e62d
10,017
cc
C++
src/ir/auth_logic/souffle_emitter_test.cc
Cypher1/raksha
0f52f108ceb8bc7b8be36a7bf8e9662188c57551
[ "Apache-2.0" ]
null
null
null
src/ir/auth_logic/souffle_emitter_test.cc
Cypher1/raksha
0f52f108ceb8bc7b8be36a7bf8e9662188c57551
[ "Apache-2.0" ]
null
null
null
src/ir/auth_logic/souffle_emitter_test.cc
Cypher1/raksha
0f52f108ceb8bc7b8be36a7bf8e9662188c57551
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2022 Google 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 ...
37.943182
193
0.745932
Cypher1
c47eff3d038eac49c6ebcbd7d03ce34182bdc98b
296
cpp
C++
test/suits/nav/test_atcproceduresid.cpp
ignmiz/ATC_Console
549dd67a007cf54b976e33fed1581f30beb08b06
[ "Intel", "MIT" ]
5
2018-01-08T22:20:07.000Z
2021-06-19T17:42:29.000Z
test/suits/nav/test_atcproceduresid.cpp
ignmiz/ATC_Console
549dd67a007cf54b976e33fed1581f30beb08b06
[ "Intel", "MIT" ]
null
null
null
test/suits/nav/test_atcproceduresid.cpp
ignmiz/ATC_Console
549dd67a007cf54b976e33fed1581f30beb08b06
[ "Intel", "MIT" ]
2
2017-08-07T23:07:42.000Z
2021-05-09T13:02:39.000Z
#include "test_atcproceduresid.h" void Test_ATCProcedureSID::test_constructObject() { ATCProcedureSID foo("NAME", "CODE", "01"); QVERIFY(foo.getName() == "NAME"); QVERIFY(foo.getAirport() == "CODE"); QVERIFY(foo.getRunwayID() == "01"); QVERIFY(foo.getFixListSize() == 0); }
24.666667
49
0.652027
ignmiz
c47f8acd78f5f6aeff4c10ffae4bba33d5089c6f
2,623
cpp
C++
qt/qt_common/qtoglcontext.cpp
keksikex/omim
cf75e55bc6d96f3488af9d5977c4bee422a366c3
[ "Apache-2.0" ]
null
null
null
qt/qt_common/qtoglcontext.cpp
keksikex/omim
cf75e55bc6d96f3488af9d5977c4bee422a366c3
[ "Apache-2.0" ]
null
null
null
qt/qt_common/qtoglcontext.cpp
keksikex/omim
cf75e55bc6d96f3488af9d5977c4bee422a366c3
[ "Apache-2.0" ]
null
null
null
#include "qt/qt_common/qtoglcontext.hpp" #include "base/assert.hpp" #include "base/logging.hpp" #include "base/macros.hpp" #include "base/math.hpp" #include "base/stl_add.hpp" #include "drape/glfunctions.hpp" namespace qt { namespace common { // QtRenderOGLContext ----------------------------------------------------...
21.325203
100
0.682043
keksikex
c48275d7bd69f5f138c89b4a20251267a824a99d
290
cpp
C++
sand_box_6.cpp
gwamoniak/Cpp
b1815464412f8d282f578cbf3ecc4b07a480b7d3
[ "MIT" ]
null
null
null
sand_box_6.cpp
gwamoniak/Cpp
b1815464412f8d282f578cbf3ecc4b07a480b7d3
[ "MIT" ]
null
null
null
sand_box_6.cpp
gwamoniak/Cpp
b1815464412f8d282f578cbf3ecc4b07a480b7d3
[ "MIT" ]
1
2022-01-16T16:29:05.000Z
2022-01-16T16:29:05.000Z
#include <utility> #include <iostream> #include <algorithm> #include <vector> #include <memory_resource> constexpr double pow(const double x, std::size_t y) { return y!= 1 ? x*pow(x,y-1) :x; } int main() { auto out = pow(3.0,6); std::cout << out << '\n'; return 0; }
13.181818
52
0.6
gwamoniak
c48b98599f5edb14b0f9b2711498878829315744
167,604
cpp
C++
src/parser.cpp
giag3/peng-utils
f0883ffbf3b422de2e0ea326861114b1f5809037
[ "MIT" ]
1
2022-03-28T11:20:50.000Z
2022-03-28T11:20:50.000Z
src/parser.cpp
giag3/peng-utils
f0883ffbf3b422de2e0ea326861114b1f5809037
[ "MIT" ]
null
null
null
src/parser.cpp
giag3/peng-utils
f0883ffbf3b422de2e0ea326861114b1f5809037
[ "MIT" ]
null
null
null
#include "parser/parser.hpp" #include "error_handler/error_handler.hpp" #include "assembler/assembler.hpp" #include "error_handler/console.hpp" #include "compiler/assembly_shortcuts.hpp" #if (UTILITY == COMPILER) #include "compiler/assembly_shortcuts.hpp" #include "compiler/variable.hpp" #endif // Use assembl...
39.5479
288
0.468545
giag3
c48cfba9d42cfb4716984d276820d78152cc8c38
10,864
cpp
C++
src/megaobd.cpp
ConnorRigby/megaobd
b1434444991e512237a81a54ee39f87fc3dd063d
[ "MIT" ]
null
null
null
src/megaobd.cpp
ConnorRigby/megaobd
b1434444991e512237a81a54ee39f87fc3dd063d
[ "MIT" ]
null
null
null
src/megaobd.cpp
ConnorRigby/megaobd
b1434444991e512237a81a54ee39f87fc3dd063d
[ "MIT" ]
1
2021-04-16T09:56:13.000Z
2021-04-16T09:56:13.000Z
#include "OBD9141sim.h" #include <AltSoftSerial.h> #include <CRC32.h> // OBD constants #define OBD_TX_PIN 9 #define OBD_RX_PIN 8 AltSoftSerial OBD_SERIAL; OBD9141sim OBD; CRC32 CRC; // Megasquirt Constants #define MEGASQUIRT_SERIAL Serial const uint8_t CMD_A_PAYLOAD[7] = {0x0, 0x1, 0x41, 0xD3, 0xD9, 0x9E, 0x8B}; enu...
25.928401
195
0.657861
ConnorRigby
c48e2c67895bfaf6a4505b02335a24157fb46692
7,949
cpp
C++
LTSketchbook/libraries/LT_PMBUS/LT_FaultLog.cpp
LinduinoBob/Linduino
a6465b549ee8daee4eec11c36cabf5487bd2a3bc
[ "FSFAP" ]
null
null
null
LTSketchbook/libraries/LT_PMBUS/LT_FaultLog.cpp
LinduinoBob/Linduino
a6465b549ee8daee4eec11c36cabf5487bd2a3bc
[ "FSFAP" ]
null
null
null
LTSketchbook/libraries/LT_PMBUS/LT_FaultLog.cpp
LinduinoBob/Linduino
a6465b549ee8daee4eec11c36cabf5487bd2a3bc
[ "FSFAP" ]
null
null
null
/*! LTC PMBus Support: API for a shared LTC Fault Log @verbatim This API is shared with Linduino and RTOS code. End users should code to this API to enable use of the PMBus code without modifications. @endverbatim Copyright 2018(c) Analog Devices, Inc. All rights reserved. Redistribution and u...
25.977124
116
0.662473
LinduinoBob
c48f8537943766823af0757390ae7330b5a663fc
1,604
hpp
C++
include/dish2/viz/artists/TaxaArtist.hpp
schregardusc/dishtiny
b0b1841a457a955fa4c22f36a050d91f12484f9e
[ "MIT" ]
1
2021-02-12T23:53:55.000Z
2021-02-12T23:53:55.000Z
include/dish2/viz/artists/TaxaArtist.hpp
schregardusc/dishtiny
b0b1841a457a955fa4c22f36a050d91f12484f9e
[ "MIT" ]
null
null
null
include/dish2/viz/artists/TaxaArtist.hpp
schregardusc/dishtiny
b0b1841a457a955fa4c22f36a050d91f12484f9e
[ "MIT" ]
null
null
null
#pragma once #ifndef DISH2_VIZ_ARTISTS_TAXAARTIST_HPP_INCLUDE #define DISH2_VIZ_ARTISTS_TAXAARTIST_HPP_INCLUDE #include <string> #include "../../spec/Spec.hpp" #include "../border_colormaps/TaxaBorderColorMap.hpp" #include "../fill_colormaps/IsAliveColorMap.hpp" #include "../fill_colormaps/KinGroupIDGrayscaleFillCol...
22.277778
64
0.747506
schregardusc
c490e76884dcc19d44bbdc4fee5099ed5becb757
5,990
cc
C++
servlib/cmd/DiscoveryCommand.cc
LeoIannacone/dtn
b7ee725bb147e29cc05ac8790b1d24efcd9f841e
[ "Apache-2.0" ]
2
2017-10-29T11:15:47.000Z
2019-09-15T13:43:25.000Z
servlib/cmd/DiscoveryCommand.cc
LeoIannacone/dtn
b7ee725bb147e29cc05ac8790b1d24efcd9f841e
[ "Apache-2.0" ]
null
null
null
servlib/cmd/DiscoveryCommand.cc
LeoIannacone/dtn
b7ee725bb147e29cc05ac8790b1d24efcd9f841e
[ "Apache-2.0" ]
3
2015-03-27T05:56:05.000Z
2020-01-02T22:18:02.000Z
/* * Copyright 2006 Baylor University * * 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 a...
27.603687
82
0.539399
LeoIannacone
c491824e4c2d94f6e0cb1902c7fb9ca02e48d2c9
2,293
hpp
C++
private/inc/avb_watchdog/IasWatchdogResult.hpp
tnishiok/AVBStreamHandler
7621daf8c9238361e030fe35188b921ee8ea2466
[ "BSL-1.0", "BSD-3-Clause" ]
13
2018-09-26T13:32:35.000Z
2021-05-20T10:01:12.000Z
private/inc/avb_watchdog/IasWatchdogResult.hpp
tnishiok/AVBStreamHandler
7621daf8c9238361e030fe35188b921ee8ea2466
[ "BSL-1.0", "BSD-3-Clause" ]
23
2018-10-03T22:45:21.000Z
2020-03-05T23:40:12.000Z
private/inc/avb_watchdog/IasWatchdogResult.hpp
tnishiok/AVBStreamHandler
7621daf8c9238361e030fe35188b921ee8ea2466
[ "BSL-1.0", "BSD-3-Clause" ]
22
2018-09-14T03:55:34.000Z
2021-12-07T01:13:27.000Z
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #ifndef IAS_MONITORING_AND_LIFECYCLE_WATCHDOG_IAS_WATCHDOG_RESULT_HPP #define IAS_MONITORING_AND_LIFECYCLE_WATCHDOG_IAS_WATCHDOG_RESULT_HPP #include "media_transport/avb_streamhandler_api/IasAvbStreamHa...
32.295775
115
0.764065
tnishiok
c497352f239e93012d3d811519f38cd17a7264a1
17,127
cpp
C++
src/shogun/io/HDF5File.cpp
rka97/shogun
93d7afa8073fcb5a9f3d9e6492a6fd3c8a2e48be
[ "BSD-3-Clause" ]
null
null
null
src/shogun/io/HDF5File.cpp
rka97/shogun
93d7afa8073fcb5a9f3d9e6492a6fd3c8a2e48be
[ "BSD-3-Clause" ]
null
null
null
src/shogun/io/HDF5File.cpp
rka97/shogun
93d7afa8073fcb5a9f3d9e6492a6fd3c8a2e48be
[ "BSD-3-Clause" ]
null
null
null
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: Soeren Sonnenburg, Soumyajit De, Viktor Gal, Thoralf Klein, * Evan Shelhamer, Bjoern Esser, Abhinav Agarwalla */ #include <shogun/lib/config.h> #ifdef HAVE_HDF5 #include <stdio.h> #include <string.h> #include ...
38.144766
96
0.688795
rka97
7bcf92faf4120d40cff902712e7f64451cdc89aa
93
cpp
C++
tools/stb_image.cpp
ShirokoSama/ShadingSandbox
b407aea1c018bcb46061f3d165c9671d2cb3c139
[ "MIT" ]
null
null
null
tools/stb_image.cpp
ShirokoSama/ShadingSandbox
b407aea1c018bcb46061f3d165c9671d2cb3c139
[ "MIT" ]
null
null
null
tools/stb_image.cpp
ShirokoSama/ShadingSandbox
b407aea1c018bcb46061f3d165c9671d2cb3c139
[ "MIT" ]
1
2019-12-05T11:50:24.000Z
2019-12-05T11:50:24.000Z
// // Created by Srf on 2017/10/5. // #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h"
18.6
32
0.731183
ShirokoSama
7bd161d94216488999bf33ab627feddf42b5fb37
5,785
cpp
C++
KFPlugin/KFMongo/KFMongoReadExecute.cpp
282951387/KFrame
5d6e953f7cc312321c36632715259394ca67144c
[ "Apache-2.0" ]
1
2021-04-26T09:31:32.000Z
2021-04-26T09:31:32.000Z
KFPlugin/KFMongo/KFMongoReadExecute.cpp
282951387/KFrame
5d6e953f7cc312321c36632715259394ca67144c
[ "Apache-2.0" ]
null
null
null
KFPlugin/KFMongo/KFMongoReadExecute.cpp
282951387/KFrame
5d6e953f7cc312321c36632715259394ca67144c
[ "Apache-2.0" ]
null
null
null
#include "KFMongoReadExecute.hpp" namespace KFrame { KFResult< uint64 >::UniqueType KFMongoReadExecute::Count( const std::string& table ) { Poco::MongoDB::Database db( _database ); auto request = db.createQueryRequest( "$cmd" ); request->setNumberToReturn( 1 ); request->selecto...
37.322581
149
0.429213
282951387
7bd412bb28a07a8106fed187fdc54dffd0c6f1db
10,601
cpp
C++
Crisp/ShadingLanguage/Reflection.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
6
2017-09-14T03:26:49.000Z
2021-09-18T05:40:59.000Z
Crisp/ShadingLanguage/Reflection.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
Crisp/ShadingLanguage/Reflection.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
#include "Reflection.hpp" #include <optional> #include <fstream> #include <IO/FileUtils.hpp> #include "Lexer.hpp" #include "Parser.hpp" #include <spdlog/spdlog.h> namespace crisp::sl { namespace { uint32_t getPushConstantFieldOffset(const StructFieldDeclaration& field) { for (con...
42.06746
150
0.541175
FallenShard
7bd504d6d506758db9a3b977f982ca32290ce900
12,170
cpp
C++
src/common/pfs.cpp
xackery/eqx
777685a6f793014116855805d719899cfa4169d8
[ "MIT" ]
null
null
null
src/common/pfs.cpp
xackery/eqx
777685a6f793014116855805d719899cfa4169d8
[ "MIT" ]
null
null
null
src/common/pfs.cpp
xackery/eqx
777685a6f793014116855805d719899cfa4169d8
[ "MIT" ]
null
null
null
#include "pfs.h" #include "pfs_crc.h" #include "compression.h" #include <algorithm> #include <cctype> #include <cstring> #include <tuple> #include <errno.h> #include "log_macros.h" #define MAX_BLOCK_SIZE 8192 // the client will crash if you make this bigger, so don't. #define ReadFromBuffer(type, var, buffer, idx) if...
28.635294
153
0.694577
xackery
7bd77c37429090f62d3db356b42a313c37f22fee
10,358
cpp
C++
third party/openRTMFP-Cumulus/CumulusLib/sources/RTMFPServer.cpp
Patrick-Bay/SocialCastr
888a57ca63037e566f6c0bf03a646ae91b484086
[ "MIT" ]
5
2015-04-30T09:08:30.000Z
2018-08-13T05:00:39.000Z
third party/openRTMFP-Cumulus/CumulusLib/sources/RTMFPServer.cpp
Patrick-Bay/SocialCastr
888a57ca63037e566f6c0bf03a646ae91b484086
[ "MIT" ]
null
null
null
third party/openRTMFP-Cumulus/CumulusLib/sources/RTMFPServer.cpp
Patrick-Bay/SocialCastr
888a57ca63037e566f6c0bf03a646ae91b484086
[ "MIT" ]
null
null
null
/* Copyright 2010 OpenRTMFP This program 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. This program is distributed in...
28.070461
187
0.708728
Patrick-Bay
7be001f583ac88d094026d147a65c3162eb98336
948
hpp
C++
mpllibs/metamonad/v1/do_.hpp
sabel83/mpllibs
8e245aedcf658fe77bb29537aeba1d4e1a619a19
[ "BSL-1.0" ]
70
2015-01-15T09:05:15.000Z
2021-12-08T15:49:31.000Z
mpllibs/metamonad/v1/do_.hpp
sabel83/mpllibs
8e245aedcf658fe77bb29537aeba1d4e1a619a19
[ "BSL-1.0" ]
4
2015-06-18T19:25:34.000Z
2016-05-13T19:49:51.000Z
mpllibs/metamonad/v1/do_.hpp
sabel83/mpllibs
8e245aedcf658fe77bb29537aeba1d4e1a619a19
[ "BSL-1.0" ]
5
2015-07-10T08:18:09.000Z
2021-12-01T07:17:57.000Z
#ifndef MPLLIBS_METAMONAD_V1_DO__HPP #define MPLLIBS_METAMONAD_V1_DO__HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 2010. // 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 <mpllibs/met...
24.307692
78
0.682489
sabel83
7be17250bb5a5867e9d12b70e22cd0236963a20c
944
cpp
C++
Duet Editor/Particle.cpp
mvandevander/duetgame
6fd083d22b0eab9e7988e0ba46a6ec10757b7720
[ "MIT" ]
9
2016-03-18T23:59:24.000Z
2022-02-09T01:09:56.000Z
Duet Editor/Particle.cpp
mvandevander/duetgame
6fd083d22b0eab9e7988e0ba46a6ec10757b7720
[ "MIT" ]
null
null
null
Duet Editor/Particle.cpp
mvandevander/duetgame
6fd083d22b0eab9e7988e0ba46a6ec10757b7720
[ "MIT" ]
null
null
null
#include "Particle.hpp" #include <math.h> Particle::Particle(float x, float y, float w, float h, float rot, int max_life, float xv, float yv, float xa, float ya, float rotv, float rota, float widthv, float widtha, float heightv, float heighta) { this->x = x; this->y = y; this->w = w; this->h = ...
20.977778
202
0.551907
mvandevander
7be21384a3b260f692196cd770af695389efdf5b
7,885
cpp
C++
lib/logic/factpp/data_range.cpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
null
null
null
lib/logic/factpp/data_range.cpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
null
null
null
lib/logic/factpp/data_range.cpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
null
null
null
/** @file "/owlcpp/lib/logic/factpp/data_range.cpp" part of owlcpp project. @n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt. @n Copyright Mikhail K Levin 2013 *******************************************************************************/ #include "data_range.hpp" #include "data_in...
32.582645
85
0.554344
GreyMerlin
7be24e7ed66ad99bc669d42a4ad779741098c477
24
cpp
C++
src/grape/tensor.cpp
sunnythree/JaverNN
8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b
[ "BSD-2-Clause" ]
19
2019-11-09T08:51:21.000Z
2022-03-25T07:55:45.000Z
src/grape/tensor.cpp
sunnythree/JaverNN
8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b
[ "BSD-2-Clause" ]
null
null
null
src/grape/tensor.cpp
sunnythree/JaverNN
8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b
[ "BSD-2-Clause" ]
7
2019-11-19T14:20:43.000Z
2022-03-25T18:36:34.000Z
namespace Grape{ }
3
16
0.583333
sunnythree
7be6cda482acbf4120e764d2e5b3621154112962
1,390
cpp
C++
src/cpp/226. Invert Binary Tree.cpp
yjjnls/D.S.A-Leet
be19c3ccc1f704e75590786fdfd4cd3ab4818d4f
[ "MIT" ]
222
2018-09-25T08:46:31.000Z
2022-02-07T12:33:42.000Z
src/cpp/226. Invert Binary Tree.cpp
yjjnls/D.S.A-Leet
be19c3ccc1f704e75590786fdfd4cd3ab4818d4f
[ "MIT" ]
1
2017-11-23T04:39:48.000Z
2017-11-23T04:39:48.000Z
src/cpp/226. Invert Binary Tree.cpp
yjjnls/D.S.A-Leet
be19c3ccc1f704e75590786fdfd4cd3ab4818d4f
[ "MIT" ]
12
2018-10-05T03:16:05.000Z
2020-12-19T04:25:33.000Z
/* Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia: This problem was inspired by this original tweet by Max Howell: Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so...
18.533333
131
0.5
yjjnls
7be6ea2e235a3c7e1f21663f18f5768eefa94172
1,936
cpp
C++
Source/FactoryGame/Buildables/FGBuildableTradingPost.cpp
iam-Legend/Project-Assembly
1ff3587704232d5e330515bc0d2aceb64ff09a7f
[ "MIT" ]
null
null
null
Source/FactoryGame/Buildables/FGBuildableTradingPost.cpp
iam-Legend/Project-Assembly
1ff3587704232d5e330515bc0d2aceb64ff09a7f
[ "MIT" ]
null
null
null
Source/FactoryGame/Buildables/FGBuildableTradingPost.cpp
iam-Legend/Project-Assembly
1ff3587704232d5e330515bc0d2aceb64ff09a7f
[ "MIT" ]
null
null
null
// This file has been automatically generated by the Unreal Header Implementation tool #include "FGBuildableTradingPost.h" AFGBuildableTradingPost::AFGBuildableTradingPost(){ } void AFGBuildableTradingPost::GetLifetimeReplicatedProps( TArray<FLifetimeProperty>& OutLifetimeProps) const{ } void AFGBuildableTradingPost:...
69.142857
112
0.845558
iam-Legend
7be76930a2d6cbc28e5a47e0443d13cee4afb2a2
1,219
cpp
C++
EntityComponentSystem/PbrRenderer/Material.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
EntityComponentSystem/PbrRenderer/Material.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
EntityComponentSystem/PbrRenderer/Material.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
#include "Material.hpp" renderer::MaterialTexture::MaterialTexture(const Texture* texture) : _texture(texture) {} renderer::MaterialTexture::MaterialTexture(float value) : _textureOwner(true) { auto tex = new Texture(); const uint8_t byteVal = uint8_t(value * 255.0f); tex->loadFromMemory(&byteVal, 1, 1, 1); _te...
25.395833
111
0.73913
Spheya
7be7e3a9791d159ff8ed1d8d403e49dc34097259
4,029
cc
C++
cc/test-settings-v1.cc
acorg/acmacs-base
a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049
[ "MIT" ]
null
null
null
cc/test-settings-v1.cc
acorg/acmacs-base
a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049
[ "MIT" ]
null
null
null
cc/test-settings-v1.cc
acorg/acmacs-base
a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049
[ "MIT" ]
null
null
null
#include <iostream> #include "acmacs-base/settings-v1.hh" // ---------------------------------------------------------------------- struct AAAtPos : public acmacs::settings::v1::object { acmacs::settings::v1::field<size_t> diverse_index_threshold{this, "diverse_index_threshold", 3}; acmacs::settings::v1...
41.96875
137
0.542318
acorg
7beb2cb601e9c1c7329936e53f4a86066dfeea24
8,301
cpp
C++
src/solver/LevMarqGaussNewtonSolver.cpp
neophack/steam
28f0637e3ae4ff2c21ad12b2331c535e9873c997
[ "BSD-3-Clause" ]
null
null
null
src/solver/LevMarqGaussNewtonSolver.cpp
neophack/steam
28f0637e3ae4ff2c21ad12b2331c535e9873c997
[ "BSD-3-Clause" ]
null
null
null
src/solver/LevMarqGaussNewtonSolver.cpp
neophack/steam
28f0637e3ae4ff2c21ad12b2331c535e9873c997
[ "BSD-3-Clause" ]
null
null
null
////////////////////////////////////////////////////////////////////////////////////////////// /// \file LevMarqGaussNewtonSolver.cpp /// /// \author Sean Anderson, ASRL ////////////////////////////////////////////////////////////////////////////////////////////// #include <steam/solver/LevMarqGaussNewtonSolver.hpp> ...
40.691176
170
0.54909
neophack
7bf07c22a67edd7d4b8d6b643289a500931acee5
1,963
hpp
C++
include/xul/lua/io/lua_message_packet_pipe.hpp
hindsights/xul
666ce90742a9919d538ad5c8aad618737171e93b
[ "MIT" ]
2
2018-03-16T07:06:48.000Z
2018-04-02T03:02:14.000Z
include/xul/lua/io/lua_message_packet_pipe.hpp
hindsights/xul
666ce90742a9919d538ad5c8aad618737171e93b
[ "MIT" ]
null
null
null
include/xul/lua/io/lua_message_packet_pipe.hpp
hindsights/xul
666ce90742a9919d538ad5c8aad618737171e93b
[ "MIT" ]
1
2019-08-12T05:15:29.000Z
2019-08-12T05:15:29.000Z
#pragma once #include <xul/io/codec/message_packet_pipe.hpp> #include <xul/lua/lua_utility.hpp> #include <xul/log/log.hpp> namespace xul { class lua_message_packet_pipe { public: static const luaL_Reg* get_methods() { static const luaL_Reg url_request_functions[] = { { "new", &...
26.527027
91
0.669384
hindsights
7bf1e848e0abb491cc33d48d9f674e40421a4bb1
1,303
cpp
C++
DesignPattern/Creational/Builder/Builder.cpp
lostcoder0812/DesignPattern
c2ddee1ad7f4996ce6cb101a994ebaa192b7d3ce
[ "MIT" ]
null
null
null
DesignPattern/Creational/Builder/Builder.cpp
lostcoder0812/DesignPattern
c2ddee1ad7f4996ce6cb101a994ebaa192b7d3ce
[ "MIT" ]
null
null
null
DesignPattern/Creational/Builder/Builder.cpp
lostcoder0812/DesignPattern
c2ddee1ad7f4996ce6cb101a994ebaa192b7d3ce
[ "MIT" ]
null
null
null
#include "Builder.h" #include <iostream> using namespace std; Product::Product() { ProducePart(); cout<<"return a product"<<endl; } Product::~Product() { } void Product::ProducePart() { cout<<"build part of product.."<<endl; } ProductPart::ProductPart() { //cout<<"build productpart.."<<endl; } Produ...
15.890244
58
0.679969
lostcoder0812
7bf66aa3fc73f2f32b1e1f7988a03ac0d00df831
4,256
cc
C++
arcane/src/arcane/mesh/GhostLayerMng.cc
JeromeDuboisPro/framework
d88925495e3787fdaf640c29728dcac385160188
[ "Apache-2.0" ]
null
null
null
arcane/src/arcane/mesh/GhostLayerMng.cc
JeromeDuboisPro/framework
d88925495e3787fdaf640c29728dcac385160188
[ "Apache-2.0" ]
null
null
null
arcane/src/arcane/mesh/GhostLayerMng.cc
JeromeDuboisPro/framework
d88925495e3787fdaf640c29728dcac385160188
[ "Apache-2.0" ]
null
null
null
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- //----------------------------------------------------------------------------- // Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: Apache-2...
35.466667
102
0.390038
JeromeDuboisPro
7bfc9c9692accf77ebdcced6a2db22ba8979b873
5,356
cpp
C++
Cpp/SDK/W_Marker_Request_functions.cpp
MrManiak/Squad-SDK
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
[ "Apache-2.0" ]
1
2020-08-15T08:31:55.000Z
2020-08-15T08:31:55.000Z
Cpp/SDK/W_Marker_Request_functions.cpp
MrManiak/Squad-SDK
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
[ "Apache-2.0" ]
2
2020-08-15T08:43:56.000Z
2021-01-15T05:04:48.000Z
Cpp/SDK/W_Marker_Request_functions.cpp
MrManiak/Squad-SDK
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
[ "Apache-2.0" ]
2
2020-08-10T12:05:42.000Z
2021-02-12T19:56:10.000Z
// Name: S, Version: b #include "../SDK.h" #ifdef _MSC_VER #pragma pack(push, 0x01) #endif /*!!HELPER_DEF!!*/ /*!!DEFINE!!*/ namespace UFT { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- // ...
31.321637
176
0.740291
MrManiak
d00b9d8d7344ff904c32a720495edaf7a4c57d70
20,026
cpp
C++
Platformer 2D/Motor2D/j1Player.cpp
Scarzard/Game_Development_HO
fe3441c23df03c15120d159671f0cd41d7b8c370
[ "MIT" ]
null
null
null
Platformer 2D/Motor2D/j1Player.cpp
Scarzard/Game_Development_HO
fe3441c23df03c15120d159671f0cd41d7b8c370
[ "MIT" ]
null
null
null
Platformer 2D/Motor2D/j1Player.cpp
Scarzard/Game_Development_HO
fe3441c23df03c15120d159671f0cd41d7b8c370
[ "MIT" ]
1
2018-11-18T21:30:45.000Z
2018-11-18T21:30:45.000Z
#include "p2Log.h" #include "j1Player.h" #include "j1App.h" #include "j1Render.h" #include "j1Window.h" #include "j1Textures.h" #include "j1Map.h" #include "p2Log.h" #include <string> #include "j1Input.h" #include "j1Collision.h" #include "j1Scene.h" #include "Brofiler/Brofiler.h" #include <math.h> j1Player::j1Player...
28.897547
195
0.647159
Scarzard
d0170188157eab7993fe3f2abc6975a63324cf66
3,629
hpp
C++
smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp
droidware-ai/SMACC2
1aa0680f71c1b22f06e1a9b129a0a42b36911139
[ "Apache-2.0" ]
48
2021-05-28T01:33:20.000Z
2022-03-24T03:16:03.000Z
smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp
droidware-ai/SMACC2
1aa0680f71c1b22f06e1a9b129a0a42b36911139
[ "Apache-2.0" ]
75
2021-06-25T22:11:21.000Z
2022-03-30T13:05:38.000Z
smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp
droidware-ai/SMACC2
1aa0680f71c1b22f06e1a9b129a0a42b36911139
[ "Apache-2.0" ]
14
2021-06-16T12:10:57.000Z
2022-03-01T18:23:27.000Z
// Copyright 2021 RobosoftAI 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...
32.990909
116
0.712869
droidware-ai
d018b1683a2f79ab756a843d34e3d70cb55aed71
1,542
cpp
C++
src/nxcraft/protocol/socket.cpp
ConsoleLogLuke/NXCraft
9d53df6143c050d3e8be8d7a717f0dc6069bc00a
[ "MIT" ]
4
2020-08-29T10:20:18.000Z
2022-01-18T23:03:44.000Z
src/nxcraft/protocol/socket.cpp
ConsoleLogLuke/NXCraft
9d53df6143c050d3e8be8d7a717f0dc6069bc00a
[ "MIT" ]
null
null
null
src/nxcraft/protocol/socket.cpp
ConsoleLogLuke/NXCraft
9d53df6143c050d3e8be8d7a717f0dc6069bc00a
[ "MIT" ]
null
null
null
#include "socket.hpp" #include <vector> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> namespace nxcraft { namespace protocol { bool Socket::init() { sockfd = socket(AF_INET, SOCK_STREAM, 0); return sockfd >= 0; } bool Socket::connect(std::string address, int port) { struct socka...
23.723077
83
0.616732
ConsoleLogLuke
d024d1fc9dcb16580496307490682952fe8af3cf
10,233
cpp
C++
Algorithm/cloth/graph/GraphsSewing.cpp
dolphin-li/ClothDesigner
82b186d6db320b645ac67a4d32d7746cc9bdd391
[ "MIT" ]
32
2016-12-13T05:49:12.000Z
2022-02-04T06:15:47.000Z
Algorithm/cloth/graph/GraphsSewing.cpp
dolphin-li/ClothDesigner
82b186d6db320b645ac67a4d32d7746cc9bdd391
[ "MIT" ]
2
2019-07-30T02:01:16.000Z
2020-03-12T15:06:51.000Z
Algorithm/cloth/graph/GraphsSewing.cpp
dolphin-li/ClothDesigner
82b186d6db320b645ac67a4d32d7746cc9bdd391
[ "MIT" ]
18
2017-11-16T13:37:06.000Z
2022-03-11T08:13:46.000Z
#include "GraphsSewing.h" #include "AbstractGraphCurve.h" #include "tinyxml\tinyxml.h" namespace ldp { GraphsSewing::GraphsSewing() : AbstractGraphObject() { } GraphsSewing::~GraphsSewing() { clear(); } void GraphsSewing::clear() { auto tmp = m_firsts; tmp.insert(tmp.end(), m_seconds.begin(), m_second...
23.853147
115
0.637545
dolphin-li
d025f68139eeaa0b982334abd7b1084ec24cbb98
9,136
cc
C++
worker.cc
reedacartwright/sim1942
849a5da67c3925a448c0aaf02736067a8fd240a6
[ "MIT" ]
null
null
null
worker.cc
reedacartwright/sim1942
849a5da67c3925a448c0aaf02736067a8fd240a6
[ "MIT" ]
null
null
null
worker.cc
reedacartwright/sim1942
849a5da67c3925a448c0aaf02736067a8fd240a6
[ "MIT" ]
null
null
null
#include "worker.h" #include "sim1942.h" #include "rexp.h" #include <glibmm/timer.h> #include <iostream> #include <cassert> #include <array> Worker::Worker(int width, int height, double mu,int delay) : grid_width_{width}, grid_height_{height}, mu_{mu}, pop_a_{new pop_t(width*height)}, pop_b_{new pop_t(width*hei...
33.465201
130
0.50613
reedacartwright
d029db8f1e67ea83c4f02d187a9c7e822bed729e
10,375
cpp
C++
myodd/log/logfile.cpp
FFMG/myoddweb.piger
6c5e9dff6ab8e2e02d6990c1959450f087acf371
[ "MIT" ]
18
2016-03-04T15:44:24.000Z
2021-12-31T11:06:25.000Z
myodd/log/logfile.cpp
FFMG/myoddweb.piger
6c5e9dff6ab8e2e02d6990c1959450f087acf371
[ "MIT" ]
49
2016-02-29T17:59:52.000Z
2019-05-05T04:59:26.000Z
myodd/log/logfile.cpp
FFMG/myoddweb.piger
6c5e9dff6ab8e2e02d6990c1959450f087acf371
[ "MIT" ]
2
2016-07-30T10:17:12.000Z
2016-08-11T20:31:46.000Z
#include "stdafx.h" #include "log.h" #include "logfile.h" #include <io.h> #include <chrono> #include "../math/math.h" #include "../files/files.h" // the maxfile size we want to use. static size_t MAX_FILE_SIZE_IN_MEGABYTES = 5; static const MYODD_CHAR* LogFile_default_Prefix = _T("myodd"); static const MYODD_CHAR* ...
24.880096
134
0.586602
FFMG
d02abc89cb014d4c0f855ffb737f5786d45a8535
2,132
cpp
C++
NITIKA.cpp
yashji9/COMPETITIVE-PROGRAMMING
5c7a255be9b01001ddcde8ca4e6ff4bcb1c62f0f
[ "MIT" ]
2
2018-01-18T13:39:48.000Z
2018-09-18T09:27:07.000Z
NITIKA.cpp
yashji9/COMPETITIVE-PROGRAMMING
5c7a255be9b01001ddcde8ca4e6ff4bcb1c62f0f
[ "MIT" ]
null
null
null
NITIKA.cpp
yashji9/COMPETITIVE-PROGRAMMING
5c7a255be9b01001ddcde8ca4e6ff4bcb1c62f0f
[ "MIT" ]
2
2018-09-30T19:12:02.000Z
2018-10-01T09:31:55.000Z
#include<iostream> #include<string.h> #include<ctype.h> using namespace std; int main() { int t; cin>>t; cin.ignore(); while(t--) { string s; getline(cin,s); char name[12],c,ch1,ch2; int c1=0; for(int i=0;s[i]!='\0';i++) { ...
21.535354
52
0.229362
yashji9
d02fa762e7c129999f73e53a95ced23af429a711
34,360
cpp
C++
src/algorithms/three_edge_connected_components.cpp
meredith705/libsnarls
1ebeb57a56a5bcd311055ee79ac008bbfa7b0adf
[ "MIT" ]
null
null
null
src/algorithms/three_edge_connected_components.cpp
meredith705/libsnarls
1ebeb57a56a5bcd311055ee79ac008bbfa7b0adf
[ "MIT" ]
null
null
null
src/algorithms/three_edge_connected_components.cpp
meredith705/libsnarls
1ebeb57a56a5bcd311055ee79ac008bbfa7b0adf
[ "MIT" ]
1
2021-10-06T19:09:58.000Z
2021-10-06T19:09:58.000Z
#include "snarls/algorithms/three_edge_connected_components.hpp" #include <structures/union_find.hpp> #include <limits> #include <cassert> #include <iostream> #include <sstream> //#define debug namespace snarls { namespace algorithms { using namespace std; void three_edge_connected_component_merges_dense(size_t n...
47.855153
138
0.472934
meredith705
d035a85216f35451abf857aec3f1e70f4c974c4e
2,663
cpp
C++
CodechefCodes/MSTICK.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
CodechefCodes/MSTICK.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
CodechefCodes/MSTICK.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define ll long long int #define loop(k) for(i=0;i<k;++i) #define loop2(k,l) for(j=k;j<l;++j) #define mod 100000000 using namespace std; int main() { std::ios_base::sync_with_stdio(false);//cin.tie(NULL); ll t=1,i=0,j=0; //cin>>t; while(t--){ int n;cin>>n; ll a[n]; ...
25.605769
68
0.38528
debashish05
d03813c0a96da1a770e70bf10fc0e8e94b666430
1,913
hpp
C++
C++ Development Root/SourceCode/Domain/Subscription/SubscriptionHandler.hpp
Dpham181/CPSC-462-GROUP-2
36f55ec4980e2e98d58f1f0a63ecc5070d7faa47
[ "MIT" ]
1
2021-05-19T06:35:15.000Z
2021-05-19T06:35:15.000Z
C++ Development Root/SourceCode/Domain/Subscription/SubscriptionHandler.hpp
Dpham181/CPSC-462-GROUP-2
36f55ec4980e2e98d58f1f0a63ecc5070d7faa47
[ "MIT" ]
null
null
null
C++ Development Root/SourceCode/Domain/Subscription/SubscriptionHandler.hpp
Dpham181/CPSC-462-GROUP-2
36f55ec4980e2e98d58f1f0a63ecc5070d7faa47
[ "MIT" ]
null
null
null
#pragma once #include <any> #include <memory> // unique_ptr #include <stdexcept> // runtime_error #include <string> #include <vector> // domain_error, runtime_error #include "TechnicalServices/Persistence/PersistenceHandler.hpp" namespace Domain::Subscription { using TechnicalServices::Persistence::UserCr...
39.854167
177
0.723471
Dpham181
d03816ec0b0945bc98e9139da6daa3df998bcf13
4,617
cpp
C++
common/filesystem.cpp
Thalhammer/pve-simple-container
bfe7e72961fe6ae350587c71c71ef1be8e5fd5f5
[ "MIT" ]
1
2020-05-12T03:17:51.000Z
2020-05-12T03:17:51.000Z
common/filesystem.cpp
Thalhammer/pve-simple-container
bfe7e72961fe6ae350587c71c71ef1be8e5fd5f5
[ "MIT" ]
6
2018-09-08T13:00:49.000Z
2019-02-12T13:43:23.000Z
common/filesystem.cpp
Thalhammer/pve-simple-container
bfe7e72961fe6ae350587c71c71ef1be8e5fd5f5
[ "MIT" ]
null
null
null
#include "filesystem.h" #include <cstdlib> #include <experimental/filesystem> #include <fstream> #include <unistd.h> #include <sys/types.h> #include <pwd.h> #include "string_helper.h" #include <regex> namespace fs = std::experimental::filesystem; namespace pvesc { namespace common { std::string filesystem::create_...
31.408163
150
0.632012
Thalhammer
d03b4fa828cf3f58853c1f36b32e379562622a20
755
cpp
C++
C_C++_Projects/BAPS Contest/charlie/drunkenbinary.cpp
sunjerry019/RandomCodes
4402604aaeee63bb1ce6fa962c496b438bb17e50
[ "MIT" ]
null
null
null
C_C++_Projects/BAPS Contest/charlie/drunkenbinary.cpp
sunjerry019/RandomCodes
4402604aaeee63bb1ce6fa962c496b438bb17e50
[ "MIT" ]
null
null
null
C_C++_Projects/BAPS Contest/charlie/drunkenbinary.cpp
sunjerry019/RandomCodes
4402604aaeee63bb1ce6fa962c496b438bb17e50
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; long long arr[1000000]; int r(int x){ long long ans; if(x==0) ans=1; else if(x<1000000&&arr[x]!=-1) return arr[x]; else if(x%2==1) ans=r(x/2); else ans=r(x/2)+r(x/2-1); if(x<1000000) arr[x]=ans; return ans; } int main(){ int n,tc;...
18.414634
47
0.490066
sunjerry019
d03bb81d8ae81df9c7ffa78f6931d124b66881d9
1,542
hpp
C++
include/Framework/Button.hpp
AdlanSADOU/SDL_Space
b8c72b50942b939be0207d8ecd9c924d1124ceb7
[ "Unlicense" ]
1
2020-08-20T17:42:11.000Z
2020-08-20T17:42:11.000Z
include/Framework/Button.hpp
AdlanSADOU/SDL_Space
b8c72b50942b939be0207d8ecd9c924d1124ceb7
[ "Unlicense" ]
null
null
null
include/Framework/Button.hpp
AdlanSADOU/SDL_Space
b8c72b50942b939be0207d8ecd9c924d1124ceb7
[ "Unlicense" ]
null
null
null
/* ** EPITECH PROJECT, 2020 ** SDL_Space ** File description: ** Button */ #ifndef BUTTON_HPP_ #define BUTTON_HPP_ #include "Entity.hpp" enum buttonState { IDLE, HOVER, CLICKED }; class Button : public Entity { public: Button(); Button(SDL_Renderer *renderer);...
25.7
96
0.568093
AdlanSADOU
d04040dee2c4d38af49b4f205f073a872d53cc66
2,548
cpp
C++
src/parser/mode/createCoroutine.cpp
tositeru/watagashi
d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4
[ "MIT" ]
null
null
null
src/parser/mode/createCoroutine.cpp
tositeru/watagashi
d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4
[ "MIT" ]
null
null
null
src/parser/mode/createCoroutine.cpp
tositeru/watagashi
d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4
[ "MIT" ]
null
null
null
#include "createCoroutine.h" #include "../line.h" #include "../enviroment.h" #include "normal.h" namespace parser { IParseMode::Result CreateCoroutineParseMode::parse(Enviroment& env, Line& line) { if (line.length() <= 0) { return Result::Continue; } switch (env.currentScope().type()) { cas...
32.666667
127
0.658163
tositeru
d040ad32d8e9a8dd8265530692d9ab8983b35d8c
3,410
cpp
C++
library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp
VietAnh14/native
8f9f23c2ff21ac14c69745556e04aaec36dbcd13
[ "Zlib" ]
1
2018-12-12T13:04:09.000Z
2018-12-12T13:04:09.000Z
library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp
vothaosontlu/native
2b8d062ce6db66dfdaa8b17087ba32455c9531e8
[ "Zlib" ]
null
null
null
library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp
vothaosontlu/native
2b8d062ce6db66dfdaa8b17087ba32455c9531e8
[ "Zlib" ]
null
null
null
/** * Copyright (c) 2016 Food Tiny Project. 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 condition...
50.147059
88
0.758651
VietAnh14
d04267cbcfaddd0dc0bef5714ec0988d668d1593
9,854
cpp
C++
src/d3d10/d3d10_texture.cpp
lacc97/dxvk
5fe8d823a03cc1c90361a4e89c385cefee8cbcf6
[ "Zlib" ]
8,148
2017-10-29T10:51:20.000Z
2022-03-31T12:52:51.000Z
src/d3d10/d3d10_texture.cpp
lacc97/dxvk
5fe8d823a03cc1c90361a4e89c385cefee8cbcf6
[ "Zlib" ]
2,270
2017-12-04T12:08:13.000Z
2022-03-31T19:56:41.000Z
src/d3d10/d3d10_texture.cpp
lacc97/dxvk
5fe8d823a03cc1c90361a4e89c385cefee8cbcf6
[ "Zlib" ]
732
2017-11-28T13:08:15.000Z
2022-03-31T21:05:59.000Z
#include "d3d10_texture.h" #include "d3d10_device.h" #include "../d3d11/d3d11_device.h" #include "../d3d11/d3d11_context.h" #include "../d3d11/d3d11_texture.h" namespace dxvk { HRESULT STDMETHODCALLTYPE D3D10Texture1D::QueryInterface( REFIID riid, void** pp...
28.562319
76
0.608382
lacc97
d043f0dce85f1f9137d6821d5215a3bbe781b19e
620
cpp
C++
src/libtoast/tests/toast_test_env.cpp
jrs584/toast
c0e2a9296348a22075271236457ad5c23713af82
[ "BSD-2-Clause" ]
29
2017-03-23T04:51:32.000Z
2022-02-10T13:17:42.000Z
src/libtoast/tests/toast_test_env.cpp
jrs584/toast
c0e2a9296348a22075271236457ad5c23713af82
[ "BSD-2-Clause" ]
362
2016-05-06T18:26:35.000Z
2022-03-30T16:39:46.000Z
src/libtoast/tests/toast_test_env.cpp
jrs584/toast
c0e2a9296348a22075271236457ad5c23713af82
[ "BSD-2-Clause" ]
37
2016-05-20T09:31:03.000Z
2022-02-24T13:56:27.000Z
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by // a BSD-style license that can be found in the LICENSE file. #include <toast_test.hpp> TEST_F(TOASTenvTest, print) { auto & env = toast::Environment::get(); env.print(); } ...
25.833333
69
0.670968
jrs584
d0457573445856636cd6e94e29860fd552c2194e
479
cpp
C++
RedWolfTests/src/FixedQueueTest.cpp
DavidePistilli173/RedWolf
1ca752c8e4c6becfb9de942d6059f6076384f3af
[ "Apache-2.0" ]
null
null
null
RedWolfTests/src/FixedQueueTest.cpp
DavidePistilli173/RedWolf
1ca752c8e4c6becfb9de942d6059f6076384f3af
[ "Apache-2.0" ]
null
null
null
RedWolfTests/src/FixedQueueTest.cpp
DavidePistilli173/RedWolf
1ca752c8e4c6becfb9de942d6059f6076384f3af
[ "Apache-2.0" ]
null
null
null
#include "RedWolf/utility.hpp" #include <RedWolf/gl/Buffer.hpp> #include <gtest/gtest.h> constexpr size_t fqt_max_queue_size{ 1024 }; constexpr size_t fqt_max_iterations{ 2 * fqt_max_queue_size }; TEST(FixedQueue, SizeAfterPush) { /* Create a queue. */ rw::FixedQueue<int, fqt_max_queue_size> q; /* Push mor...
23.95
62
0.688935
DavidePistilli173
d046219048613d784aa0c0cdc68adf8af518af96
18,852
cc
C++
wrappers/7.0.0/vtkImageBlendWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
6
2016-02-03T12:48:36.000Z
2020-09-16T15:07:51.000Z
wrappers/7.0.0/vtkImageBlendWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
4
2016-02-13T01:30:43.000Z
2020-03-30T16:59:32.000Z
wrappers/7.0.0/vtkImageBlendWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
null
null
null
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkThreadedImageAlgorithmWrap.h" #include "vtkImageBlendWrap.h" #include "vtkObjectWrap.h" #include "vtkAlgorithmOutputWrap.h" #include "vtkDat...
31.36772
112
0.719977
axkibe
d04cabc98f292b5118db2465877acdb1ec1fb338
13,727
cpp
C++
Source/Scripting/bsfScript/Generated/BsScriptDepthOfFieldSettings.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
1,745
2018-03-16T02:10:28.000Z
2022-03-26T17:34:21.000Z
Source/Scripting/bsfScript/Generated/BsScriptDepthOfFieldSettings.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
395
2018-03-16T10:18:20.000Z
2021-08-04T16:52:08.000Z
Source/Scripting/bsfScript/Generated/BsScriptDepthOfFieldSettings.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
267
2018-03-17T19:32:54.000Z
2022-02-17T16:55:50.000Z
//********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsScriptDepthOfFieldSettings.generated.h" #include "BsMonoMe...
38.45098
152
0.810811
bsf2dev
d050bad08ff6baef46c9ae0185335ff561245b97
2,077
cpp
C++
PrettyEngine/src/engine/Events/Input.cpp
cristi191096/Pretty_Engine
53a5d305b3de5786223e3ad6775199dbc7b5e90c
[ "Apache-2.0" ]
null
null
null
PrettyEngine/src/engine/Events/Input.cpp
cristi191096/Pretty_Engine
53a5d305b3de5786223e3ad6775199dbc7b5e90c
[ "Apache-2.0" ]
null
null
null
PrettyEngine/src/engine/Events/Input.cpp
cristi191096/Pretty_Engine
53a5d305b3de5786223e3ad6775199dbc7b5e90c
[ "Apache-2.0" ]
1
2021-04-16T09:10:46.000Z
2021-04-16T09:10:46.000Z
#include "pepch.h" #include "Input.h" #include "engine\Core\Context.h" #include "Platform\OpenGL\GLInput.h" namespace PrettyEngine { bool InternalInput::m_Keys[MAX_KEYS]; bool InternalInput::m_MouseButtons[MAX_BUTTONS]; uint InternalInput::m_Mods = 0; Vector2 InternalInput::m_MousePosition = Vector2(0, 0); n...
14.423611
58
0.649013
cristi191096
d052a85a353cc0d92ab2f297471868b8907d4e6e
562
cpp
C++
examples/q0_basics/src/objects/Cat.cpp
ubc333/library
069d68e822992950739661f5f7a7bdffe8d425d4
[ "MIT" ]
null
null
null
examples/q0_basics/src/objects/Cat.cpp
ubc333/library
069d68e822992950739661f5f7a7bdffe8d425d4
[ "MIT" ]
null
null
null
examples/q0_basics/src/objects/Cat.cpp
ubc333/library
069d68e822992950739661f5f7a7bdffe8d425d4
[ "MIT" ]
null
null
null
#include "Cat.h" #include <string> Cat::Cat(std::string name, int age) : Animal(name, age) { // pass the name and age to the parent constructor // initialize anything else unique to Cat } Cat::~Cat() { // clear any dynamic memory unique to Cat } // Override "Speak" std::string Cat::speak() { retur...
22.48
109
0.624555
ubc333
d053cde7f47f41ecae161805137b82bd4fdc4c9a
1,439
cpp
C++
tests/stopwatch_test.cpp
cameronbroe/libstopwatch
e050a2f20caf66d18c9473d2a31f501e783ab679
[ "MIT" ]
null
null
null
tests/stopwatch_test.cpp
cameronbroe/libstopwatch
e050a2f20caf66d18c9473d2a31f501e783ab679
[ "MIT" ]
null
null
null
tests/stopwatch_test.cpp
cameronbroe/libstopwatch
e050a2f20caf66d18c9473d2a31f501e783ab679
[ "MIT" ]
null
null
null
#include <catch2/catch.hpp> #include <iostream> #include "stopwatch.h" TEST_CASE("Testing single task stopwatch", "[multi-file:stopwatch]") { stopwatch::Stopwatch stopwatch; SECTION("should execute a task at 5 ticks") { bool five_ticks_ran = false; auto five_ticks = [&five_ticks_ran]() { ...
30.617021
73
0.608756
cameronbroe
d05726041161b0a56f6c0fcaf1a4fb75ec047fea
571
cpp
C++
src/ndhist/stats/mean.cpp
martwo/ndhist
193cef3585b5d0277f0721bb9c3a1e78cc67cf1f
[ "BSD-2-Clause" ]
null
null
null
src/ndhist/stats/mean.cpp
martwo/ndhist
193cef3585b5d0277f0721bb9c3a1e78cc67cf1f
[ "BSD-2-Clause" ]
null
null
null
src/ndhist/stats/mean.cpp
martwo/ndhist
193cef3585b5d0277f0721bb9c3a1e78cc67cf1f
[ "BSD-2-Clause" ]
null
null
null
/** * $Id$ * * Copyright (C) * 2015 - $Date$ * Martin Wolf <ndhist@martin-wolf.org> * * This file is distributed under the BSD 2-Clause Open Source License * (See LICENSE file). * */ #include <boost/python.hpp> #include <ndhist/stats/expectation.hpp> #include <ndhist/stats/mean.hpp> namespace bp = boost...
17.30303
70
0.672504
martwo
d05a883ddf9c9707c89ad87fd2660c45d3b9ae24
10,981
cc
C++
src/tools/detector_repeatability.cc
jackyspeed/libmv
aae2e0b825b1c933d6e8ec796b8bb0214a508a84
[ "MIT" ]
160
2015-01-16T19:35:28.000Z
2022-03-16T02:55:30.000Z
src/tools/detector_repeatability.cc
rgkoo/libmv-blender
cdf65edbb80d8904e2df9a20116d02546df93a81
[ "MIT" ]
3
2015-04-04T17:54:35.000Z
2015-12-15T18:09:03.000Z
src/tools/detector_repeatability.cc
rgkoo/libmv-blender
cdf65edbb80d8904e2df9a20116d02546df93a81
[ "MIT" ]
51
2015-01-12T08:38:12.000Z
2022-02-19T06:37:25.000Z
// Copyright (c) 2010 libmv 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 // rights to use, copy, modify, merge, publish...
34.315625
79
0.63282
jackyspeed
d0652089a44a2e967f114c79d7184a24b5410986
1,310
cpp
C++
problems/592.fraction-addition-and-subtraction.cpp
bigfishi/leetcode
3e512f2822a742349384a0bdd7954696f5867683
[ "MIT" ]
null
null
null
problems/592.fraction-addition-and-subtraction.cpp
bigfishi/leetcode
3e512f2822a742349384a0bdd7954696f5867683
[ "MIT" ]
null
null
null
problems/592.fraction-addition-and-subtraction.cpp
bigfishi/leetcode
3e512f2822a742349384a0bdd7954696f5867683
[ "MIT" ]
null
null
null
// 中等 需要用到求最大公约数,需要注意越界,另外,提交错了一次,因为没考虑分子分母为10的情况 typedef long long llong; class Solution { int calcGcd(llong x, llong y) { int z = y; while (z) { y = x%y; x = z; z = y; } return x; } void calcFraction(int& x, int& y, int x2, int y2) { llong tx = x*y2 + x2*y; llong ty = y*y2; int c = calcGcd...
20.793651
75
0.478626
bigfishi
d07799f859fdd5946f514a4a8014043e145777cf
4,468
cc
C++
src/planereel/main.cc
grendello/notcursespp
bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31
[ "BSD-3-Clause" ]
null
null
null
src/planereel/main.cc
grendello/notcursespp
bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31
[ "BSD-3-Clause" ]
null
null
null
src/planereel/main.cc
grendello/notcursespp
bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31
[ "BSD-3-Clause" ]
1
2020-02-13T02:00:06.000Z
2020-02-13T02:00:06.000Z
#include <cstdlib> #include <clocale> #include <sstream> #include <getopt.h> #include <iostream> #include <ncpp/NotCurses.hh> #include <ncpp/PanelReel.hh> #include <ncpp/NCKey.hh> using namespace ncpp; // FIXME ought be able to get pr from tablet, methinks? static PanelReel* PR; class TabletCtx { public: Tablet...
21.68932
104
0.591316
grendello
d07a4890c416de6063c444d8d564eee1b8990a9d
4,544
cc
C++
crawl-ref/source/misc.cc
ricobadico/crawl
4b524a92c8bf23403f40adf829a1419efde1a0ee
[ "CC0-1.0" ]
5
2019-11-18T11:05:13.000Z
2021-04-08T15:49:06.000Z
crawl-ref/source/misc.cc
ricobadico/crawl
4b524a92c8bf23403f40adf829a1419efde1a0ee
[ "CC0-1.0" ]
null
null
null
crawl-ref/source/misc.cc
ricobadico/crawl
4b524a92c8bf23403f40adf829a1419efde1a0ee
[ "CC0-1.0" ]
5
2019-11-20T14:28:02.000Z
2021-09-17T14:47:55.000Z
/** * @file * @brief Misc functions. **/ #include "AppHdr.h" #include "misc.h" #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #ifdef UNIX #include <unistd.h> #endif #include "database.h" #include "english.h" #include "items.h" #include "libutil.h" #include "monster.h" #include "state...
22.49505
79
0.578345
ricobadico
4ee3fdadfd9b232f59bcc391252582692619b014
735
cpp
C++
3. Longest Substring Without Repeating Characters.cpp
TIAN-2001/leetcode
90374b976a1db24c0cb4ebf25593aad0207e3706
[ "Apache-2.0" ]
null
null
null
3. Longest Substring Without Repeating Characters.cpp
TIAN-2001/leetcode
90374b976a1db24c0cb4ebf25593aad0207e3706
[ "Apache-2.0" ]
null
null
null
3. Longest Substring Without Repeating Characters.cpp
TIAN-2001/leetcode
90374b976a1db24c0cb4ebf25593aad0207e3706
[ "Apache-2.0" ]
null
null
null
// sliding window / two pointers class Solution { public: int lengthOfLongestSubstring(string s) { int res = 0; if(s.length() == 0) return res; int left = 0; int right = 0; unordered_map<char,int> mp; char c; while(right < s.lengt...
22.96875
62
0.334694
TIAN-2001
4ee600fac45e55d775f4ed0e974b4dafa265f1c4
2,216
cc
C++
src/logkafka/file_position_entry.cc
Qihoo360/logkafka
f329b5a9806e0b0f716884759edbe54e72e4dec0
[ "MIT" ]
568
2015-06-23T07:41:50.000Z
2022-03-30T11:32:05.000Z
src/logkafka/file_position_entry.cc
Qihoo360/logkafka
f329b5a9806e0b0f716884759edbe54e72e4dec0
[ "MIT" ]
26
2015-09-27T07:25:31.000Z
2021-07-25T13:30:09.000Z
src/logkafka/file_position_entry.cc
Qihoo360/logkafka
f329b5a9806e0b0f716884759edbe54e72e4dec0
[ "MIT" ]
138
2015-06-23T07:41:50.000Z
2021-12-13T02:31:40.000Z
/////////////////////////////////////////////////////////////////////////// // // logkafka - Collect logs and send lines to Apache Kafka v0.8+ // /////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2015 Qihoo 360 Technology Co., Ltd. All rights reserved. // // Licensed under ...
30.777778
75
0.603791
Qihoo360
4ee9a23806391c6723a2a998e4565d221823d456
337
hpp
C++
src/graphics/TestWindow.hpp
TobiasNienhaus/npp
ff6023ad5c160240cbaa029dce065b2cdf58ae74
[ "MIT" ]
null
null
null
src/graphics/TestWindow.hpp
TobiasNienhaus/npp
ff6023ad5c160240cbaa029dce065b2cdf58ae74
[ "MIT" ]
null
null
null
src/graphics/TestWindow.hpp
TobiasNienhaus/npp
ff6023ad5c160240cbaa029dce065b2cdf58ae74
[ "MIT" ]
null
null
null
// // Created by Tobias on 1/5/2021. // #ifndef NPP_TESTWINDOW_HPP #define NPP_TESTWINDOW_HPP #include "Win32Context.hpp" class TestWindow : public Win32Context<TestWindow> { public: [[nodiscard]] LPCWSTR class_name() const override; LRESULT handle_message(UINT msg, WPARAM wp, LPARAM lp) override; }; #endif // NP...
19.823529
65
0.759644
TobiasNienhaus
4eea6555b105295ce9dad341ada76a386bc7f836
2,539
cpp
C++
src/anytime.cpp
erdos-project/frenet-optimal-trajectory-planner
ba0cb5662a0e2ea668b1c2b2951c0f6b84f44f5b
[ "Apache-2.0" ]
null
null
null
src/anytime.cpp
erdos-project/frenet-optimal-trajectory-planner
ba0cb5662a0e2ea668b1c2b2951c0f6b84f44f5b
[ "Apache-2.0" ]
null
null
null
src/anytime.cpp
erdos-project/frenet-optimal-trajectory-planner
ba0cb5662a0e2ea668b1c2b2951c0f6b84f44f5b
[ "Apache-2.0" ]
1
2020-03-07T01:49:50.000Z
2020-03-07T01:49:50.000Z
#include "AnytimeFrenetOptimalTrajectory.h" #include "FrenetPath.h" #include "py_cpp_struct.h" #include <iostream> #include <assert.h> #include <unistd.h> using namespace std; int main() { double wx [25] = {132.67, 128.67, 124.67, 120.67, 116.67, 112.67, 108.67, 104.67, 101.43, 97.77, 94.84...
24.413462
90
0.493895
erdos-project
4eeb627169bedae2d2155591f0d9cbfc63e7cb55
2,824
cpp
C++
vm/external_libs/llvm/tools/llvmc2/llvmc.cpp
marnen/rubinius
05b3f9789d01bada0604a7f09921c956bc9487e7
[ "BSD-3-Clause" ]
1
2016-05-08T16:58:14.000Z
2016-05-08T16:58:14.000Z
vm/external_libs/llvm/tools/llvmc2/llvmc.cpp
taf2/rubinius
493bfa2351fc509ca33d3bb03991c2e9c2b6dafa
[ "BSD-3-Clause" ]
null
null
null
vm/external_libs/llvm/tools/llvmc2/llvmc.cpp
taf2/rubinius
493bfa2351fc509ca33d3bb03991c2e9c2b6dafa
[ "BSD-3-Clause" ]
null
null
null
//===--- llvmc.cpp - The LLVM Compiler Driver ------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open // Source License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
27.417476
80
0.549929
marnen
4ef2b7d19d0802d49f65ebbc5eddc3e341ee57eb
717
cpp
C++
src/propagation/types/value_context_ordering.cpp
RMGiroux/clangmetatool
38071867d56a9c5dfa4fac1eb298b8058a026acd
[ "Apache-2.0" ]
null
null
null
src/propagation/types/value_context_ordering.cpp
RMGiroux/clangmetatool
38071867d56a9c5dfa4fac1eb298b8058a026acd
[ "Apache-2.0" ]
null
null
null
src/propagation/types/value_context_ordering.cpp
RMGiroux/clangmetatool
38071867d56a9c5dfa4fac1eb298b8058a026acd
[ "Apache-2.0" ]
null
null
null
#include "value_context_ordering.h" namespace clangmetatool { namespace propagation { namespace types { void ValueContextOrdering::print(std::ostream &stream, Value value) { switch (value) { case ValueContextOrdering::CONTROL_FLOW_MERGE: stream << "Control flow merge"; break; case ValueContextOrdering::...
23.129032
80
0.728033
RMGiroux
4ef3bd8789d4e15e40a9dccdc5743feff5a98df6
519
cpp
C++
src/util/nm_log.cpp
nolmoonen/pbr
c5ed37795c8e67de1716762206fe7c58e9079ac0
[ "MIT" ]
null
null
null
src/util/nm_log.cpp
nolmoonen/pbr
c5ed37795c8e67de1716762206fe7c58e9079ac0
[ "MIT" ]
null
null
null
src/util/nm_log.cpp
nolmoonen/pbr
c5ed37795c8e67de1716762206fe7c58e9079ac0
[ "MIT" ]
null
null
null
#include "nm_log.hpp" const char *const nm_log::LEVEL_NAMES[] = { "TRACE", "INFO ", "WARN ", "ERROR" }; log_level_e nm_log::m_level = LOG_TRACE; void nm_log::set_log_level(log_level_e t_level) { m_level = t_level; } void nm_log::log(log_level_e t_level, const char *t_format, ...) { if (t_level >= m_...
21.625
64
0.624277
nolmoonen
4ef3d0ae2a286a4ee6a1f5480b6113fdbe4af7e5
1,303
cpp
C++
src/main.cpp
dancol90/wifi-led-clock
d4d391226ddc26ff92fd894e184c5348953b3bfa
[ "MIT" ]
2
2018-10-10T12:37:05.000Z
2018-12-07T22:36:42.000Z
src/main.cpp
dancol90/wifi-led-clock
d4d391226ddc26ff92fd894e184c5348953b3bfa
[ "MIT" ]
null
null
null
src/main.cpp
dancol90/wifi-led-clock
d4d391226ddc26ff92fd894e184c5348953b3bfa
[ "MIT" ]
null
null
null
/* Drivers (still services): - [OK] Led display - [OK] Time - [OK] WiFi - [OK] File System List of needed services: - [OK] Scroll management - [OK] Configuration (over SPIFFS) - [OK*] HTTP Server (?) - [OK] NTP - MQTT handling */ #include <Arduino.h> #include "Service.hpp" #include "dr...
19.447761
43
0.6132
dancol90
4ef4d8b1a1af8be443fee78f25a6ba05823fccf0
3,226
cpp
C++
cpp/varint/leveldb/varint.cpp
yyyshi/asshole_algorithm
270460f2afcdb7a00a08979053e8cfb80ef93b5b
[ "Apache-2.0" ]
null
null
null
cpp/varint/leveldb/varint.cpp
yyyshi/asshole_algorithm
270460f2afcdb7a00a08979053e8cfb80ef93b5b
[ "Apache-2.0" ]
null
null
null
cpp/varint/leveldb/varint.cpp
yyyshi/asshole_algorithm
270460f2afcdb7a00a08979053e8cfb80ef93b5b
[ "Apache-2.0" ]
null
null
null
// encode char* EncodeVarint32(char* dst, uint32_t v) { // Operate on characters as unsigneds uint8_t* ptr = reinterpret_cast<uint8_t*>(dst); static const int B = 128; if (v < (1 << 7)) { *(ptr++) = v; } else if (v < (1 << 14)) { *(ptr++) = v | B; *(ptr++) = v >> 7; } else if (v < (1 << 21)) { ...
26.442623
79
0.534408
yyyshi
4ef77cb8295f8f1e90370c72d417ed17e70c0bd2
537
hpp
C++
engine/generators/crypts/include/ICryptLayoutStrategy.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
null
null
null
engine/generators/crypts/include/ICryptLayoutStrategy.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
null
null
null
engine/generators/crypts/include/ICryptLayoutStrategy.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
null
null
null
#pragma once #include <tuple> #include "common.hpp" #include "Directions.hpp" #include "Map.hpp" // Interface for defining crypt layout strategies. These operate on a // given map and crypt boundary, producing the characteristic look of the // crypt: pillars, rooms, a central vault, etc. class ICryptLayoutStrategy { ...
29.833333
130
0.772812
sidav
f600003f47e60792dabea9657b35e02919c55e2e
2,956
hpp
C++
common/SoapySSDPEndpoint.hpp
bastille-attic/SoapyRemote
63664b890ccfe2d5472901b879b1593aacc92ef1
[ "BSL-1.0" ]
null
null
null
common/SoapySSDPEndpoint.hpp
bastille-attic/SoapyRemote
63664b890ccfe2d5472901b879b1593aacc92ef1
[ "BSL-1.0" ]
null
null
null
common/SoapySSDPEndpoint.hpp
bastille-attic/SoapyRemote
63664b890ccfe2d5472901b879b1593aacc92ef1
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2015-2016 Josh Blum // SPDX-License-Identifier: BSL-1.0 #pragma once #include "SoapyRPCSocket.hpp" #include <string> #include <csignal> //sig_atomic_t #include <mutex> #include <vector> #include <memory> class SoapyHTTPHeader; struct SoapySSDPEndpointData; /*! * Service an SSDP endpoint to: * keep...
31.784946
116
0.715832
bastille-attic
f60875c75cf897e0084395bae0c133aa63f02728
1,145
cpp
C++
src/tmp/student.cpp
asankagit/wacms
f6ecf9e1c740417a934acb8f6c53e2bb3388b5ee
[ "MIT" ]
5
2021-10-14T07:27:31.000Z
2022-01-04T17:20:15.000Z
src/tmp/student.cpp
asankagit/wacms
f6ecf9e1c740417a934acb8f6c53e2bb3388b5ee
[ "MIT" ]
null
null
null
src/tmp/student.cpp
asankagit/wacms
f6ecf9e1c740417a934acb8f6c53e2bb3388b5ee
[ "MIT" ]
null
null
null
// similar to MyClass, in this we are testing header file usage #include <student.h> #include "emscripten/bind.h" using namespace emscripten; Student::Student() { } void Student::setName(std::string name) { this->name = name; } const std::string& Student::getName() { for(int i=0; i<10000; i++) { ...
21.203704
70
0.637555
asankagit
f60aebecafaaaf52fe9d95041c392350f6185103
1,531
cpp
C++
common/comline.cpp
yalehwy/linepw
8e22ffaa49fa49dca44a6a8d6e38a16a64a41aa0
[ "Apache-2.0" ]
null
null
null
common/comline.cpp
yalehwy/linepw
8e22ffaa49fa49dca44a6a8d6e38a16a64a41aa0
[ "Apache-2.0" ]
null
null
null
common/comline.cpp
yalehwy/linepw
8e22ffaa49fa49dca44a6a8d6e38a16a64a41aa0
[ "Apache-2.0" ]
null
null
null
#include "comline.hpp" #define MOVESPACE 1 ComLine::ComLine() { map = new std::map<std::string, std::string>; } ComLine::~ComLine() { if (map) { delete map; map = nullptr; } } std::map<std::string, std::string>* ComLine::getKeyValue(int argc, char* argv[]) { for (int i = 1; i < argc; i++) { ...
21.263889
71
0.546048
yalehwy
f6121cfdbab82fc640601de7f28d2d1300055ee8
8,281
cpp
C++
examples/prepared_statement.cpp
tstrutz/sqlite_orm
1ee0a8653fe57ed4d4f69b5a65839b1861c41d32
[ "BSD-3-Clause" ]
1,566
2016-12-20T15:31:04.000Z
2022-03-31T18:17:34.000Z
examples/prepared_statement.cpp
tstrutz/sqlite_orm
1ee0a8653fe57ed4d4f69b5a65839b1861c41d32
[ "BSD-3-Clause" ]
620
2017-01-06T13:53:35.000Z
2022-03-31T12:05:50.000Z
examples/prepared_statement.cpp
tstrutz/sqlite_orm
1ee0a8653fe57ed4d4f69b5a65839b1861c41d32
[ "BSD-3-Clause" ]
274
2017-01-07T05:34:24.000Z
2022-03-27T18:22:47.000Z
/** * There are two member functions in storage_t class which you need to use to operate with * prepared statements: storage_t::prepare and storage_t::execute. * Also if you need to rebind arguments just use get<N>(statement) = ... syntax * just like you do with std::tuple. * Once a statement is prepared it h...
39.433333
115
0.567685
tstrutz
f6158dae5583f50ddac7a7d1cd73e8f50a57350b
3,903
cpp
C++
7th_100/problem650.cpp
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
7th_100/problem650.cpp
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
7th_100/problem650.cpp
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
1
2021-11-02T12:08:46.000Z
2021-11-02T12:08:46.000Z
// Problem: https://projecteuler.net/problem=650 // g++ problem650.cpp -I$HOME/pari/include/ -L$HOME/pari/lib -lpari -O3 #include<pari/pari.h> #include<iostream> #include<vector> #include<cmath> #include<unordered_map> #include<functional> using namespace std; #define endl "\n" typedef int64_t i64; const i64 N = ...
22.958824
96
0.539329
takekoputa
f61998985015980fbba5f72e69a6f51ebff9ea8e
13,031
cpp
C++
QP/v5.4.2/qpcpp/examples/lwip/arm-cm/lwip_ek-lm3s6965/lwipmgr.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
QP/v5.4.2/qpcpp/examples/lwip/arm-cm/lwip_ek-lm3s6965/lwipmgr.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
QP/v5.4.2/qpcpp/examples/lwip/arm-cm/lwip_ek-lm3s6965/lwipmgr.cpp
hyller/GladiatorCots
36a69df68675bb40b562081c531e6674037192a8
[ "Unlicense" ]
null
null
null
//**************************************************************************** // Product: lwIP-Manager Active Object // Last Updated for Version: 5.4.0 // Date of the Last Update: 2015-05-12 // // Q u a n t u m L e a P s // --------------------------- // in...
37.771014
78
0.514159
hyller
f619fc1aac3f323fb765aa700b3ab4e0cfd251b2
2,027
hpp
C++
src/configure/Platform.hpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
1
2015-11-13T10:37:35.000Z
2015-11-13T10:37:35.000Z
src/configure/Platform.hpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
19
2015-02-10T17:18:58.000Z
2015-07-11T11:31:08.000Z
src/configure/Platform.hpp
hotgloupi/configure
888cf725c93df5a1cf01794cc0a581586a82855c
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <iosfwd> #include <string> namespace configure { class Platform { public: enum class Vendor { unknown, pc, apple, }; enum class Arch { unknown, x86, x86_64, }; enum class SubArch { unknown, }; enum class OS { unknown, windows, linux, osx, ...
20.896907
71
0.660582
hotgloupi
f61eada41d605c8284e0bbb196d25322ae8faab8
2,103
cc
C++
common/config.cc
yonsei-icsl/nebula
12bc2440978018d27996df6b97180056dddefa6c
[ "BSD-3-Clause" ]
5
2020-02-13T04:12:41.000Z
2021-02-08T04:53:55.000Z
common/config.cc
yonsei-icsl/Nebula
12bc2440978018d27996df6b97180056dddefa6c
[ "BSD-3-Clause" ]
1
2020-10-29T10:59:08.000Z
2020-12-31T04:04:58.000Z
common/config.cc
yonsei-icsl/Nebula
12bc2440978018d27996df6b97180056dddefa6c
[ "BSD-3-Clause" ]
2
2021-03-21T02:45:40.000Z
2022-03-10T12:31:06.000Z
#include <algorithm> #include <assert.h> #include <cstdlib> #include <fstream> #include <iostream> #include <locale> #include "config.h" #include "utils.h" namespace nebula { // Configuration section section_config_t::section_config_t(std::string m_name) : name(m_name) { } section_config_t::~section_config_t() {...
26.620253
94
0.603899
yonsei-icsl
f622a2d64454d726a5561d310bfe9e66cbfc56c8
289
hpp
C++
engine/src/Resources/ImageData.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
14
2017-10-17T16:20:20.000Z
2021-12-21T14:49:00.000Z
engine/src/Resources/ImageData.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
engine/src/Resources/ImageData.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
1
2019-05-12T13:50:23.000Z
2019-05-12T13:50:23.000Z
#pragma once #include <cstddef> #include "Math/Vec2.hpp" struct ImageData { unsigned char* imageData; size_t imageDataSize; Vec2i imageSize; unsigned int pixelFormat; unsigned int componentDataType; size_t compressedSize; bool compressed; ImageData(); };
13.761905
33
0.705882
aleksigron
f624d363ac3f6f847615772a93146521aeef640b
804
cpp
C++
bls_sig.cpp
ANSIIRU/BLS12_381-small_memory_c-
6109d56c38a4c9243dcbcd0464b50feaa2f70a89
[ "Unlicense" ]
null
null
null
bls_sig.cpp
ANSIIRU/BLS12_381-small_memory_c-
6109d56c38a4c9243dcbcd0464b50feaa2f70a89
[ "Unlicense" ]
null
null
null
bls_sig.cpp
ANSIIRU/BLS12_381-small_memory_c-
6109d56c38a4c9243dcbcd0464b50feaa2f70a89
[ "Unlicense" ]
null
null
null
#include "my_pairing.h" #include <stdio.h> void KeyGen(const char* s, EC_Fp2* pub, EC_Fp2* Q) { G2_SCM(pub, s, Q); // pub = sQ // printf("pub=\n"); // EC_Fp2_print(pub); } void SignGen(EC_Fp *sign, const char* s, const char *m) { EC_Fp Hm; hash_to_curve(&Hm,m); // EC_Fp_from_Mont(&Hm); //...
21.72973
61
0.588308
ANSIIRU
f629287e0571ed47dd294ebfb0d6cda890b59810
2,283
cpp
C++
codeforces/N - Wires/Wrong answer on test 1.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/N - Wires/Wrong answer on test 1.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/N - Wires/Wrong answer on test 1.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Oct/27/2019 19:37 * solution_verdict: Wrong answer on test 1 language: GNU C++14 * run...
28.5375
111
0.412615
kzvd4729
f62b23f95c442075e0a6cadee50fc25b565bf479
4,132
cpp
C++
src/download.cpp
toyobayashi/evm-windows
5734cfe8555ccc492671e15bc30b54467681c749
[ "MIT" ]
null
null
null
src/download.cpp
toyobayashi/evm-windows
5734cfe8555ccc492671e15bc30b54467681c749
[ "MIT" ]
null
null
null
src/download.cpp
toyobayashi/evm-windows
5734cfe8555ccc492671e15bc30b54467681c749
[ "MIT" ]
null
null
null
#include <sstream> #include <math.h> #include <time.h> #include "download.h" #include <curl/curl.h> #include <iostream> #include "path.hpp" //static size_t onDataString(void* buffer, size_t size, size_t nmemb, progressInfo * userp) { // const char* d = (const char*)buffer; // // userp->headerString.append(d, size * ...
27.731544
110
0.644966
toyobayashi
f62f1a39f186141cf5bcc647a9be7668ac6314ad
7,801
cpp
C++
app/src/main/engine/android/esutil_android.cpp
qige023/learning-opengles3-android
cbe0742637a6eeed41c76756021913cc570cc30e
[ "MIT" ]
10
2015-05-06T17:59:51.000Z
2019-12-03T10:08:23.000Z
app/src/main/engine/android/esutil_android.cpp
qige023/OpenGL-ES3-Programming-On-Android
cbe0742637a6eeed41c76756021913cc570cc30e
[ "MIT" ]
null
null
null
app/src/main/engine/android/esutil_android.cpp
qige023/OpenGL-ES3-Programming-On-Android
cbe0742637a6eeed41c76756021913cc570cc30e
[ "MIT" ]
null
null
null
// // This file contains the Android implementation of the windowing functions. #include <android/log.h> #include <android/keycodes.h> #include <android/input.h> #include <android_native_app_glue.h> #include <time.h> #include <iostream> #include <stdexcept> using std::cout; using std::cerr; using std::endl; #incl...
31.329317
145
0.596077
qige023
f6350a75839dd98d27716a02d3fc370e117f9ddf
1,002
cpp
C++
include/h3api/H3AdventureMap/H3MapMine.cpp
Patrulek/H3API
91f10de37c6b86f3160706c1fdf4792f927e9952
[ "MIT" ]
14
2020-09-07T21:49:26.000Z
2021-11-29T18:09:41.000Z
include/h3api/H3AdventureMap/H3MapMine.cpp
Day-of-Reckoning/H3API
a82d3069ec7d5127b13528608d5350d2b80d57be
[ "MIT" ]
2
2021-02-12T15:52:31.000Z
2021-02-12T16:21:24.000Z
include/h3api/H3AdventureMap/H3MapMine.cpp
Day-of-Reckoning/H3API
a82d3069ec7d5127b13528608d5350d2b80d57be
[ "MIT" ]
8
2021-02-12T15:52:41.000Z
2022-01-31T15:28:10.000Z
////////////////////////////////////////////////////////////////////// // // // Created by RoseKavalier: // // rosekavalierhc@gmail.com // // Created or last upda...
33.4
70
0.398204
Patrulek
f63801e52141d3566d949e3eabc9309d3d2ec863
987
hpp
C++
src/point.hpp
xyl1t/Cidr
48ee260ec4871eddb795ccc0f3aa1fddfc2cd0aa
[ "MIT" ]
6
2020-09-10T17:44:49.000Z
2021-03-14T16:41:11.000Z
src/point.hpp
xyl1t/Cidr
48ee260ec4871eddb795ccc0f3aa1fddfc2cd0aa
[ "MIT" ]
1
2021-07-22T20:25:00.000Z
2021-11-27T19:44:35.000Z
src/point.hpp
xyl1t/Cidr
48ee260ec4871eddb795ccc0f3aa1fddfc2cd0aa
[ "MIT" ]
null
null
null
/******************************** * Project: Cidr * * File: point.hpp * * Date: 12.9.2020 * ********************************/ #ifndef CIDR_POINT_HPP #define CIDR_POINT_HPP #include "tensorMath.hpp" // TODO: ADD CONSTURCTORS! // In order to keep the code "consice" I just ...
21.456522
94
0.616008
xyl1t
f63979213498b360b480d39e0eb915fec6641e5c
4,595
hpp
C++
Kuplung/kuplung/objects/ObjectsManager.hpp
supudo/Kuplung
f0e11934fde0675fa531e6dc263bedcc20a5ea1a
[ "Unlicense" ]
14
2017-02-17T17:12:40.000Z
2021-12-22T01:55:06.000Z
Kuplung/kuplung/objects/ObjectsManager.hpp
supudo/Kuplung
f0e11934fde0675fa531e6dc263bedcc20a5ea1a
[ "Unlicense" ]
null
null
null
Kuplung/kuplung/objects/ObjectsManager.hpp
supudo/Kuplung
f0e11934fde0675fa531e6dc263bedcc20a5ea1a
[ "Unlicense" ]
1
2019-10-15T08:10:10.000Z
2019-10-15T08:10:10.000Z
// // ObjectsManager.hpp // Kuplung // // Created by Sergey Petrov on 12/3/15. // Copyright © 2015 supudo.net. All rights reserved. // #ifndef ObjectsManager_hpp #define ObjectsManager_hpp #include <functional> #include <map> #include <string> #include <vector> #include <glm/glm.hpp> #include "kuplung/objects/Obj...
36.181102
146
0.796953
supudo
f64dec40bd138e76dd99b023fda095d959fab0c3
149
cpp
C++
libng/core/src/libng_core/ui/platform/mac/MacWindow.cpp
gapry/libng
8fbf927e5bb73f105bddbb618430d3e1bf2cf877
[ "MIT" ]
null
null
null
libng/core/src/libng_core/ui/platform/mac/MacWindow.cpp
gapry/libng
8fbf927e5bb73f105bddbb618430d3e1bf2cf877
[ "MIT" ]
null
null
null
libng/core/src/libng_core/ui/platform/mac/MacWindow.cpp
gapry/libng
8fbf927e5bb73f105bddbb618430d3e1bf2cf877
[ "MIT" ]
null
null
null
#include <libng_core/ui/platform/mac/MacWindow.hpp> namespace libng { MacWindow::MacWindow() { } MacWindow::~MacWindow() { } } // namespace libng
13.545455
51
0.711409
gapry
f64e1d74027d448ea856d893613a9544aa81cacb
46,045
cpp
C++
hi_scripting/scripting/ScriptProcessorModules.cpp
Matt-Dub/HISE
ae2dd1653e1c8d749a9088edcd573de6252b0b96
[ "Intel" ]
null
null
null
hi_scripting/scripting/ScriptProcessorModules.cpp
Matt-Dub/HISE
ae2dd1653e1c8d749a9088edcd573de6252b0b96
[ "Intel" ]
null
null
null
hi_scripting/scripting/ScriptProcessorModules.cpp
Matt-Dub/HISE
ae2dd1653e1c8d749a9088edcd573de6252b0b96
[ "Intel" ]
null
null
null
/* =========================================================================== * * This file is part of HISE. * Copyright 2016 Christoph Hart * * HISE 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 Foun...
28.248466
154
0.738473
Matt-Dub
f65649ca1352400cf3cc53daee9b4085b521cf68
572
cpp
C++
hackerrank/non-divisible-subset/solution.cpp
SamProkopchuk/coding-problems
fa0ca2c05ac90e41945de1a5751e5545a8459ac4
[ "MIT" ]
null
null
null
hackerrank/non-divisible-subset/solution.cpp
SamProkopchuk/coding-problems
fa0ca2c05ac90e41945de1a5751e5545a8459ac4
[ "MIT" ]
null
null
null
hackerrank/non-divisible-subset/solution.cpp
SamProkopchuk/coding-problems
fa0ca2c05ac90e41945de1a5751e5545a8459ac4
[ "MIT" ]
null
null
null
#include <iostream> #include <unordered_map> using namespace std; int main() { int n, mod, temp, res; cin >> n >> mod; unordered_map<int, int> remcount; for (int posrem = 0; posrem < mod; posrem++) { // Simple defaultdict-like behavior remcount[posrem] = 0; } for (int c = 0; c < n; c++) { cin ...
22.88
64
0.547203
SamProkopchuk
f657235d328c6925462f7c4b577082034446ce78
1,758
cc
C++
tsdf_plusplus/src/core/segment.cc
TheMangalex/tsdf-plusplus
aefb7fa40b53475ce424d5082b3045587bbb5de3
[ "MIT" ]
91
2021-05-18T03:15:18.000Z
2022-03-28T01:53:02.000Z
tsdf_plusplus/src/core/segment.cc
ali-robot/tsdf-plusplus
602f2aeec267a82ac3c5d88ef3eabba2ea2f3c04
[ "MIT" ]
4
2021-05-18T06:10:20.000Z
2022-01-25T11:38:33.000Z
tsdf_plusplus/src/core/segment.cc
cmrobotics/tsdf-plusplus
9cb15273b2bd5e7b13f67ef563856d2f92cd34dd
[ "MIT" ]
16
2021-05-18T02:17:48.000Z
2022-03-07T02:57:01.000Z
// Copyright (c) 2020- Margarita Grinvald, Autonomous Systems Lab, ETH Zurich // Licensed under the MIT License (see LICENSE for details) #include "tsdf_plusplus/core/segment.h" #include <pcl/common/centroid.h> Segment::Segment(const pcl::PointCloud<InputPointType>& pointcloud_pcl, const voxblox::Tr...
33.169811
79
0.661547
TheMangalex
f65767d98e7cbc5ab4836a02bd29a882e9f2f24a
183
cpp
C++
src/GameOptions.cpp
ceilingfans/pnut-butta
d2f5d6f1f1379b4324d2b58edf102e30a6b792cb
[ "MIT" ]
null
null
null
src/GameOptions.cpp
ceilingfans/pnut-butta
d2f5d6f1f1379b4324d2b58edf102e30a6b792cb
[ "MIT" ]
null
null
null
src/GameOptions.cpp
ceilingfans/pnut-butta
d2f5d6f1f1379b4324d2b58edf102e30a6b792cb
[ "MIT" ]
null
null
null
#include "GameOptions.hpp" bool isValidOption(const GameOptions& opt) { return opt.playerCount > 0 && opt.substringLength >= 2 && !opt.options.empty() && opt.options.size() >= 2; }
30.5
108
0.693989
ceilingfans
f658eb874ea759e96055caee9956cd764bbd35c7
3,889
cpp
C++
Libraries/xcassets/Sources/Asset/CubeTextureSet.cpp
djgalloway/xcbuild
936df10e59e5f5d531efca8bd48e445d88e78e0c
[ "BSD-2-Clause-NetBSD" ]
9
2018-04-30T23:18:27.000Z
2021-06-20T15:13:38.000Z
Libraries/xcassets/Sources/Asset/CubeTextureSet.cpp
djgalloway/xcbuild
936df10e59e5f5d531efca8bd48e445d88e78e0c
[ "BSD-2-Clause-NetBSD" ]
null
null
null
Libraries/xcassets/Sources/Asset/CubeTextureSet.cpp
djgalloway/xcbuild
936df10e59e5f5d531efca8bd48e445d88e78e0c
[ "BSD-2-Clause-NetBSD" ]
4
2018-10-10T19:44:17.000Z
2020-01-12T11:56:31.000Z
/** Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. */ #include <xcassets/Ass...
28.807407
87
0.568527
djgalloway
f65967a614d415e3dd4256e6d33476b1d14e53de
2,729
hpp
C++
include/tudocomp/compressors/MTFCompressor.hpp
dominiKoeppl/tudocomp
b5512f85f6b3408fb88e19c08899ec4c2716c642
[ "ECL-2.0", "Apache-2.0" ]
17
2017-03-04T13:04:49.000Z
2021-12-03T06:58:20.000Z
include/tudocomp/compressors/MTFCompressor.hpp
dominiKoeppl/tudocomp
b5512f85f6b3408fb88e19c08899ec4c2716c642
[ "ECL-2.0", "Apache-2.0" ]
27
2016-01-22T18:31:37.000Z
2021-11-27T10:50:40.000Z
include/tudocomp/compressors/MTFCompressor.hpp
dominiKoeppl/tudocomp
b5512f85f6b3408fb88e19c08899ec4c2716c642
[ "ECL-2.0", "Apache-2.0" ]
16
2017-03-14T12:46:51.000Z
2021-06-25T18:19:50.000Z
#pragma once #include <tudocomp/util.hpp> #include <tudocomp/Compressor.hpp> #include <tudocomp/Env.hpp> #include <numeric> #include <tudocomp/def.hpp> namespace tdc { /** * Encodes a character 'v' by Move-To-Front Coding * Needs and modifies a lookup table storing the last-used characters */ template<class valu...
28.427083
168
0.698791
dominiKoeppl
2cf243e0ff44f73c7888a0199c24ba62cea38e16
3,101
cpp
C++
src/thunderbots/software/ai/hl/stp/evaluation/calc_best_shot.cpp
FSXAC/Software
3754f5ec2c513906f66a05d4399aca516d03ba9f
[ "MIT" ]
null
null
null
src/thunderbots/software/ai/hl/stp/evaluation/calc_best_shot.cpp
FSXAC/Software
3754f5ec2c513906f66a05d4399aca516d03ba9f
[ "MIT" ]
null
null
null
src/thunderbots/software/ai/hl/stp/evaluation/calc_best_shot.cpp
FSXAC/Software
3754f5ec2c513906f66a05d4399aca516d03ba9f
[ "MIT" ]
null
null
null
#include "ai/hl/stp/evaluation/calc_best_shot.h" #include "geom/util.h" namespace Evaluation { std::pair<Point, Angle> calcBestShotOnEnemyGoal(const Field &f, const std::vector<Point> &obstacles, const Point &p...
37.361446
88
0.538858
FSXAC
2cf3c08183e51e9c16b5bc6a416df1032a818c7e
98
cpp
C++
core/utilities.cpp
evias/web-irc-docbot
ffc05223eb580a363188dc361938d23b141c6091
[ "BSD-3-Clause" ]
1
2021-08-28T01:42:34.000Z
2021-08-28T01:42:34.000Z
core/utilities.cpp
evias/web-irc-docbot
ffc05223eb580a363188dc361938d23b141c6091
[ "BSD-3-Clause" ]
null
null
null
core/utilities.cpp
evias/web-irc-docbot
ffc05223eb580a363188dc361938d23b141c6091
[ "BSD-3-Clause" ]
1
2015-03-24T15:45:04.000Z
2015-03-24T15:45:04.000Z
#include "utilities.hpp" using namespace std; using namespace evias; using namespace utilities;
14
26
0.795918
evias
2cfe0fd3dda379a720e73736d58c1f0a8eb56baf
103
cpp
C++
src/uniform-initialization-too-few-initializers.cpp
zzlc/cxx11tests
d471b3f8b96548c762be6b7e410abe56a57811ae
[ "MIT" ]
48
2015-01-06T20:50:45.000Z
2021-02-15T02:48:32.000Z
src/uniform-initialization-too-few-initializers.cpp
zzlc/cxx11tests
d471b3f8b96548c762be6b7e410abe56a57811ae
[ "MIT" ]
3
2016-01-19T15:02:19.000Z
2019-04-29T08:51:13.000Z
src/uniform-initialization-too-few-initializers.cpp
zzlc/cxx11tests
d471b3f8b96548c762be6b7e410abe56a57811ae
[ "MIT" ]
24
2015-02-13T17:40:04.000Z
2019-12-03T06:59:03.000Z
// Check if too few initializers are supported struct Point3D { int x, y, z; }; Point3D p = {1, 2};
14.714286
46
0.640777
zzlc
2cfe6152d781ead5b251bb4a0c32fc277b8a1c1b
965
cpp
C++
oli/vii2018puzzle/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
oli/vii2018puzzle/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
12
2019-09-04T10:38:24.000Z
2019-12-08T18:09:41.000Z
oli/vii2018puzzle/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<int> pieces(n); for(int i = 0; i < n; i++) { cin >> pieces[i]; } int res = 0; for(int i = 0; i < n - 1; i++) { for(int j = i + 1; j < n; j++) { bo...
16.929825
44
0.288083
rockoanna