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
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
8567a7d469c661f801c378faf104dddee93794f1
2,000
cpp
C++
app/src/App.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
app/src/App.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
app/src/App.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
#include "App.h" #include "IAppConfiguration.h" #include "ConfigurationFile.h" #include "SingleRunHandler.h" #include "TextGui.h" #include <cassert> #include <variant> namespace balcony_watering_system { namespace app { using ::balcony_watering_system::configuration::IAppConfiguration; using ::balcony_watering_syst...
24.691358
78
0.7015
85696b81b51a00bf54ab18b733ba63df7b15bcd2
1,710
hpp
C++
include/put.hpp
Leonardo2718/btrio
67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7
[ "BSL-1.0" ]
null
null
null
include/put.hpp
Leonardo2718/btrio
67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7
[ "BSL-1.0" ]
null
null
null
include/put.hpp
Leonardo2718/btrio
67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7
[ "BSL-1.0" ]
null
null
null
/** * Copyright Leonardo Banderali 2017 - 2017. * 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) */ #ifndef PUT_HPP #define PUT_HPP #include "format.hpp" #include "put_utils.hpp" #include ...
31.666667
130
0.580117
856a124ab0f9a59e5777d742161ef3d253753311
2,143
hpp
C++
gearoenix/render/engine/gx-rnd-eng-configuration.hpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
35
2018-01-07T02:34:38.000Z
2022-02-09T05:19:03.000Z
gearoenix/render/engine/gx-rnd-eng-configuration.hpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
111
2017-09-20T09:12:36.000Z
2020-12-27T12:52:03.000Z
gearoenix/render/engine/gx-rnd-eng-configuration.hpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
5
2020-02-11T11:17:37.000Z
2021-01-08T17:55:43.000Z
#ifndef GEAROENIX_RENDER_ENGINE_CONFIGURATION_HPP #define GEAROENIX_RENDER_ENGINE_CONFIGURATION_HPP #include "../../core/gx-cr-build-configuration.hpp" #include "../../core/gx-cr-static.hpp" #include "../../math/gx-math-numeric.hpp" #include "../../system/gx-sys-log.hpp" #include <cstdint> namespace gearoenix::render:...
43.734694
133
0.74475
856a8b2d450d1f93a9bdf07f813386f156422476
360
cc
C++
src/gb/utils/test.cc
jonatan-ekstrom/FreshBoy
228302e720f4a8fe4bf5c911e86588e412c0ce0a
[ "MIT" ]
3
2021-11-30T20:37:33.000Z
2022-01-06T20:26:52.000Z
src/gb/utils/test.cc
jonatan-ekstrom/FreshBoy
228302e720f4a8fe4bf5c911e86588e412c0ce0a
[ "MIT" ]
null
null
null
src/gb/utils/test.cc
jonatan-ekstrom/FreshBoy
228302e720f4a8fe4bf5c911e86588e412c0ce0a
[ "MIT" ]
null
null
null
#include "types.h" namespace { /* Compile time test to verify that integers are at least 32-bits wide. */ using namespace gb; constexpr uint BitCount() { auto i{static_cast<uint>(-1)}; uint count{0}; while (i != 0) { i >>= 1; ++count; } return count; } static_assert(BitCount() >...
16.363636
74
0.594444
856d5d809dcc6ae46e6a30adca8435263c6eb802
5,172
hpp
C++
lib/poplin/ConvolutionInternal.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
95
2020-07-06T17:11:23.000Z
2022-03-12T14:42:28.000Z
lib/poplin/ConvolutionInternal.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
null
null
null
lib/poplin/ConvolutionInternal.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
14
2020-07-15T12:32:57.000Z
2022-01-26T14:58:45.000Z
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #ifndef _ConvolutionInternal_hpp_ #define _ConvolutionInternal_hpp_ #include "CanonicalConvParams.hpp" #include "ConvOptions.hpp" #include "ConvPlan.hpp" #include <poplin/Convolution.hpp> namespace poplin { struct ConvProgramTree; struct ConvIndices { unsi...
43.462185
80
0.607695
85701f1cad53f89ee8392100a78788862b8f9e2e
568
cpp
C++
mytools/asm/SymbolTable.cpp
kingnak/nand2tetris
120be8f04251b88e519f1bac838c40fd4c1b68e1
[ "MIT" ]
null
null
null
mytools/asm/SymbolTable.cpp
kingnak/nand2tetris
120be8f04251b88e519f1bac838c40fd4c1b68e1
[ "MIT" ]
null
null
null
mytools/asm/SymbolTable.cpp
kingnak/nand2tetris
120be8f04251b88e519f1bac838c40fd4c1b68e1
[ "MIT" ]
null
null
null
#include "SymbolTable.h" using namespace std; void SymbolTable::addFixedEntry(const string &symbol, int16_t address) { m_map.insert(make_pair(symbol, address)); } int16_t SymbolTable::addVariableEntry(const std::string &symbol) { m_map.insert(make_pair(symbol, m_nextVariable)); return m_nextVariable++; } bool Sy...
21.037037
70
0.742958
8572d407a4dd363db5f244fdc0af278010b6e859
7,484
hpp
C++
src/v8bind/class.hpp
ayles/V8Bind
1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1
[ "MIT" ]
1
2021-12-30T15:08:40.000Z
2021-12-30T15:08:40.000Z
src/v8bind/class.hpp
ayles/V8Bind
1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1
[ "MIT" ]
1
2020-02-05T21:52:17.000Z
2020-02-07T19:21:37.000Z
src/v8bind/class.hpp
ayles/v8bind
1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1
[ "MIT" ]
null
null
null
// // Created by selya on 01.09.2019. // #ifndef SANDWICH_V8B_CLASS_HPP #define SANDWICH_V8B_CLASS_HPP #include <v8bind/type_info.hpp> #include <v8.h> #include <unordered_map> #include <type_traits> #include <memory> #include <vector> #include <cstddef> #include <tuple> #define V8B_IMPL inline namespace v8b { cl...
30.672131
107
0.685863
85750cdbde250c45b6e2d90232d5dc0ee76e96d3
97
hpp
C++
led-blink/src/main.hpp
ikapoz/stm32
9efc2a099f55bddaf85b68cc51fb6a31b48538b7
[ "MIT" ]
null
null
null
led-blink/src/main.hpp
ikapoz/stm32
9efc2a099f55bddaf85b68cc51fb6a31b48538b7
[ "MIT" ]
null
null
null
led-blink/src/main.hpp
ikapoz/stm32
9efc2a099f55bddaf85b68cc51fb6a31b48538b7
[ "MIT" ]
null
null
null
#pragma once #ifdef __cplusplus extern "C" { #endif int app_main(); #ifdef __cplusplus } #endif
9.7
18
0.721649
8577dbdb44873d3aeac351497f36cae3f4e7427f
7,204
cpp
C++
build/moc/moc_QGeoMapReplyQGC.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
1
2018-11-07T06:10:53.000Z
2018-11-07T06:10:53.000Z
build/moc/moc_QGeoMapReplyQGC.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
null
null
null
build/moc/moc_QGeoMapReplyQGC.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
1
2018-11-07T06:10:47.000Z
2018-11-07T06:10:47.000Z
/**************************************************************************** ** Meta object code from reading C++ file 'QGeoMapReplyQGC.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************...
37.520833
143
0.619933
8579f3e5972a232be71939234deb4ac789e9a895
2,938
cpp
C++
VEngine/src/VEngine/renderer/Camera.cpp
Parsif/VEngine
a31bdb1479c4dabe6a5eb808008600e736164180
[ "MIT" ]
null
null
null
VEngine/src/VEngine/renderer/Camera.cpp
Parsif/VEngine
a31bdb1479c4dabe6a5eb808008600e736164180
[ "MIT" ]
null
null
null
VEngine/src/VEngine/renderer/Camera.cpp
Parsif/VEngine
a31bdb1479c4dabe6a5eb808008600e736164180
[ "MIT" ]
null
null
null
#include "precheader.h" #include "Camera.h" #include "events/Input.h" #include "events/MouseEvents.h" #include "events/WindowEvents.h" namespace vengine { Camera::Camera(const float fov, const float near_z, const float far_z) : m_fov(fov), m_near_z(near_z), m_far_z(far_z) { m_view = glm::lookAt(m_eye, m_target,...
27.203704
110
0.711368
857ae7cf007fc227368d641f38355a3595b44729
9,406
cpp
C++
Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp
tony2u/Medusa
d4ac8181a693bc796681880e09aac3fdba9aaaaf
[ "MIT" ]
143
2015-11-18T01:06:03.000Z
2022-03-30T03:08:54.000Z
Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp
tony2u/Medusa
d4ac8181a693bc796681880e09aac3fdba9aaaaf
[ "MIT" ]
1
2019-10-23T13:00:40.000Z
2019-10-23T13:00:40.000Z
Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp
tony2u/Medusa
d4ac8181a693bc796681880e09aac3fdba9aaaaf
[ "MIT" ]
45
2015-11-18T01:17:59.000Z
2022-03-05T12:29:45.000Z
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #include "MedusaCorePreCompiled.h" #include "SirenCustomClass.h" #include "Core/Log/Log.h" #include "Core/Siren/Schema/SirenTextParser.h" #include "Core/Siren/Schema/...
20.995536
81
0.683606
857c687f5a3fb5a4d7c6253a1cf4d02f0952edaa
5,353
cc
C++
src/common.cc
leeleoo/thmclrx
5ccd8f12b2005bbd0779f86da07b191a17311233
[ "MIT" ]
176
2015-01-08T05:06:00.000Z
2022-03-14T01:59:46.000Z
src/common.cc
leeleoo/thmclrx
5ccd8f12b2005bbd0779f86da07b191a17311233
[ "MIT" ]
8
2015-01-19T07:45:44.000Z
2019-10-17T10:09:44.000Z
src/common.cc
XadillaX/thmclrx
d93782a1e97f6172f154c2da2fe06dd0445a6a3f
[ "MIT" ]
21
2015-01-06T06:47:25.000Z
2021-01-05T03:41:32.000Z
/** * * ▄▄▄▄▀ ▄ █ █▀▄▀█ ▄█▄ █ █▄▄▄▄ ▄ ,ae, * ▀▀▀ █ █ █ █ █ █ █▀ ▀▄ █ █ ▄▀ ▀▄ █ ,88888e * █ ██▀▀█ █ ▄ █ █ ▀ █ █▀▀▌ █ ▀ ,a888b.9888888i * █ █ █ █ █ █▄ ▄▀ ███▄ █ █ ▄ █ 888888888888888 * ▀ █ █ ▀███▀ ▀ █ █ ▀▄ 888...
29.905028
92
0.538763
858156c4a69e019492ae396a919ada2eeb498a54
10,215
cp
C++
Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007 Cyrus Daboo. 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 ...
26.671018
136
0.697112
3fecdd79de1733a32cee4b0aeeb25f3540d62d3d
59
hpp
C++
common/gl.hpp
Legion-Engine/Test_GL
43e08fd92d2a2a903beea45440f4b4e170d72c6d
[ "MIT" ]
null
null
null
common/gl.hpp
Legion-Engine/Test_GL
43e08fd92d2a2a903beea45440f4b4e170d72c6d
[ "MIT" ]
null
null
null
common/gl.hpp
Legion-Engine/Test_GL
43e08fd92d2a2a903beea45440f4b4e170d72c6d
[ "MIT" ]
null
null
null
#pragma once #include <glad/glad.h> #include <glfw/glfw3.h>
19.666667
23
0.728814
3fed14833aafb089456a5d2b22176efd49dbc25b
10,836
hpp
C++
include/indri/IndexWriter.hpp
whuang022nccu/IndriLab
24d13dca14c7c447a4acedb45d7d1ef83551f6ac
[ "Apache-2.0" ]
2
2020-02-16T07:46:47.000Z
2020-11-23T06:50:19.000Z
include/indri/IndexWriter.hpp
whuang022nccu/IndriLab
24d13dca14c7c447a4acedb45d7d1ef83551f6ac
[ "Apache-2.0" ]
null
null
null
include/indri/IndexWriter.hpp
whuang022nccu/IndriLab
24d13dca14c7c447a4acedb45d7d1ef83551f6ac
[ "Apache-2.0" ]
null
null
null
/*========================================================================== * Copyright (c) 2004 University of Massachusetts. All Rights Reserved. * * Use of the Lemur Toolkit for Language Modeling and Information Retrieval * is subject to the terms of the software license set forth in the LICENSE * file include...
42.661417
241
0.646272
3fefa01f509a52b2ee96998c7e1c504c92d065ea
9,731
cpp
C++
src/CameraCalibration.cpp
Humhu/calotypes
a05a809b3b27983332c24d8fb04cb71f47e96763
[ "BSD-2-Clause" ]
1
2019-01-18T14:59:39.000Z
2019-01-18T14:59:39.000Z
src/CameraCalibration.cpp
Humhu/calotypes
a05a809b3b27983332c24d8fb04cb71f47e96763
[ "BSD-2-Clause" ]
null
null
null
src/CameraCalibration.cpp
Humhu/calotypes
a05a809b3b27983332c24d8fb04cb71f47e96763
[ "BSD-2-Clause" ]
null
null
null
#include "calotypes/CameraCalibration.h" #include "calotypes/KernelDensityEstimation.hpp" #include "calotypes/ImportanceResampling.hpp" #include <opencv2/calib3d.hpp> #include <Eigen/Dense> namespace calotypes { bool CompareDataName( const CameraTrainingData& a, const CameraTrainingData& b ) { if( a.name.size() == ...
39.237903
124
0.692324
3ff0bb90561856f23ebcfa2a58beb0ed0faecf78
1,390
cpp
C++
src/mason/al/al_buffer.cpp
ROTARTSI82/Mason
ee5dccc51b2b36288b4115d55b65106cf16ebb58
[ "Apache-2.0" ]
null
null
null
src/mason/al/al_buffer.cpp
ROTARTSI82/Mason
ee5dccc51b2b36288b4115d55b65106cf16ebb58
[ "Apache-2.0" ]
null
null
null
src/mason/al/al_buffer.cpp
ROTARTSI82/Mason
ee5dccc51b2b36288b4115d55b65106cf16ebb58
[ "Apache-2.0" ]
null
null
null
// // Created by 25granty on 10/14/19. // #include "mason/al/al_buffer.h" #include "stb/stb_vorbis.c" // Has to be included in the c++ source file or else we die from linker errors. namespace mason::al { // TODO: Add proper error checking here (Hopefully I'll get unlazy later) al_buffer::al_buffer(const std...
28.958333
120
0.556115
3ff64f73d4f352d9cf6f49c55efff6685977e14e
3,143
hpp
C++
include/abc/tagged_type.hpp
mabaro/abc
db636953f3438e6861458c0aa33642381bc4711d
[ "MIT" ]
null
null
null
include/abc/tagged_type.hpp
mabaro/abc
db636953f3438e6861458c0aa33642381bc4711d
[ "MIT" ]
3
2020-10-18T00:06:28.000Z
2020-10-18T00:10:14.000Z
include/abc/tagged_type.hpp
mabaro/abc
db636953f3438e6861458c0aa33642381bc4711d
[ "MIT" ]
null
null
null
#pragma once #include <iostream> #include <type_traits> namespace abc { template <typename T, typename TTag, int64_t DefaultValue> class tagged_type { static_assert(std::is_trivial<T>::value, "Only trivial types are supported"); T m_value; public: using value_t = T; using this_t = tagged_type<T...
31.747475
92
0.620108
3ff75190ab38a045eb6491e1e7b248615fd7d474
1,251
cpp
C++
Sources/Backend/hermes/db/HMMailDBAddToSavedRecipientsOperation.cpp
packagesdev/dejalu
3ca934c98a24757f837ffcfab8e374a783e3f970
[ "BSD-3-Clause" ]
611
2017-12-29T08:17:40.000Z
2020-06-15T06:26:41.000Z
Sources/Backend/hermes/db/HMMailDBAddToSavedRecipientsOperation.cpp
packagesdev/dejalu
3ca934c98a24757f837ffcfab8e374a783e3f970
[ "BSD-3-Clause" ]
57
2018-01-09T09:26:36.000Z
2020-07-07T22:43:41.000Z
Sources/Backend/hermes/db/HMMailDBAddToSavedRecipientsOperation.cpp
packagesdev/dejalu
3ca934c98a24757f837ffcfab8e374a783e3f970
[ "BSD-3-Clause" ]
47
2018-01-02T11:29:41.000Z
2020-04-28T02:35:53.000Z
// DejaLu // Copyright (c) 2015 Hoa V. DINH. All rights reserved. #include "HMMailDBAddToSavedRecipientsOperation.h" #include "HMMailDB.h" using namespace hermes; using namespace mailcore; MailDBAddToSavedRecipientsOperation::MailDBAddToSavedRecipientsOperation() { mAddresses = NULL; mRowID = -1; mAllSa...
22.339286
83
0.784173
3ff7fec602af276513c5a52036f5d5617a70dd3e
3,451
hpp
C++
include/snd/misc.hpp
colugomusic/snd
3ecb87581870b14e62893610d027516aea48ff3c
[ "MIT" ]
18
2020-08-26T11:33:50.000Z
2021-04-13T15:57:28.000Z
include/snd/misc.hpp
colugomusic/snd
3ecb87581870b14e62893610d027516aea48ff3c
[ "MIT" ]
1
2021-05-16T17:11:57.000Z
2021-05-16T17:25:17.000Z
include/snd/misc.hpp
colugomusic/snd
3ecb87581870b14e62893610d027516aea48ff3c
[ "MIT" ]
null
null
null
#pragma once #ifndef _USE_MATH_DEFINES # define _USE_MATH_DEFINES #endif #include <algorithm> #include <cmath> #pragma warning(push, 0) #include <DSP/MLDSPOps.h> #pragma warning(pop) #include "convert.hpp" namespace snd { constexpr auto PI = 3.14159265358979f; constexpr float DENORMAL_DC = 1e-25f; inline void f...
17.880829
90
0.616923
3ffb9128a689f3b9ddcb15655694c5b5e7f34cab
666
cc
C++
chapter3/ex3-39.cc
guojing0/cpp-primer
b0e36982d1323395aaca9bd9be09f383c130b645
[ "MIT" ]
1
2015-03-15T00:35:51.000Z
2015-03-15T00:35:51.000Z
chapter3/ex3-39.cc
guojing0/cpp-primer
b0e36982d1323395aaca9bd9be09f383c130b645
[ "MIT" ]
null
null
null
chapter3/ex3-39.cc
guojing0/cpp-primer
b0e36982d1323395aaca9bd9be09f383c130b645
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <cstring> using namespace std; int main(int argc, char const *argv[]) { string s1 = "Happy day", s2 = "Bad cat"; const char ch1[] = "Know yourself", ch2[] = "Know thyself"; if (s1 > s2) { cout << "String s1 is larger."; } else if (s2 < s1) { ...
21.483871
63
0.509009
3ffff9d5c8c0ef3a22ccb14c0ed1f99df13a2d68
3,241
cc
C++
services/data_decoder/public/cpp/safe_json_parser_impl.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
services/data_decoder/public/cpp/safe_json_parser_impl.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
services/data_decoder/public/cpp/safe_json_parser_impl.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/data_decoder/public/cpp/safe_json_parser_impl.h" #include "base/callback.h" #include "base/sequenced_task_runner.h" #include "base/str...
37.686047
80
0.701944
b203c07bc6768841c65461f3783e765da3896ea0
385
cpp
C++
lessons/03-loops/src/problem1_sol.cpp
chemphys/LearnCPP
025a6e043c6eadb61324c261168bbd0478d9690b
[ "BSD-3-Clause" ]
null
null
null
lessons/03-loops/src/problem1_sol.cpp
chemphys/LearnCPP
025a6e043c6eadb61324c261168bbd0478d9690b
[ "BSD-3-Clause" ]
null
null
null
lessons/03-loops/src/problem1_sol.cpp
chemphys/LearnCPP
025a6e043c6eadb61324c261168bbd0478d9690b
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <cstdlib> int main(int argc, char** argv) { if (argc != 2) { std::cout << "Usage: " << argv[0] << " <number>\n"; return 1; } int nmax = atoi(argv[1]); int sum_num = 0; for (int i = 3; i < 1000; i++) { if (i % 3 == 0 || i % 5 == 0) { sum_num += i; } } ...
16.041667
55
0.467532
b204c5bc971170676d5d06fdf68655dbdae8aae5
2,119
cpp
C++
src/clock.cpp
JoakimLindbom/JLmod
d4ef1f0fd376492a32b229e054a63dcc32ea317f
[ "BSD-3-Clause" ]
10
2018-01-10T20:29:22.000Z
2020-07-06T21:23:02.000Z
src/clock.cpp
JoakimLindbom/vcvrack
d4ef1f0fd376492a32b229e054a63dcc32ea317f
[ "BSD-3-Clause" ]
5
2018-02-25T13:57:19.000Z
2020-04-01T16:07:41.000Z
src/clock.cpp
JoakimLindbom/vcvrack
d4ef1f0fd376492a32b229e054a63dcc32ea317f
[ "BSD-3-Clause" ]
null
null
null
#include "clock.hpp" #include <functional> Clock::Clock() { reset(); } void Clock::reset() { step = -1.0; } bool Clock::isReset() { return step == -1.0; } double Clock::getStep() { return step; } void Clock::setSampleRate(double inSampleRate) { sampleRate = inSampleRate; // TODO: Cascade to sub ...
23.285714
123
0.577631
b20538b53f06da71e3a0e4464c2f782d82060ba8
418
cpp
C++
app.cpp
retorillo/appveyor-playground
d30895cf7267bdd2083bde81b4e4cfc2ceede940
[ "CC0-1.0" ]
null
null
null
app.cpp
retorillo/appveyor-playground
d30895cf7267bdd2083bde81b4e4cfc2ceede940
[ "CC0-1.0" ]
null
null
null
app.cpp
retorillo/appveyor-playground
d30895cf7267bdd2083bde81b4e4cfc2ceede940
[ "CC0-1.0" ]
null
null
null
#include "app.h" int CALLBACK WinMain(HINSTANCE i, HINSTANCE p, LPSTR c, int n) { auto foobar = combine(L"C:\\foo\\bar", L"..\\bar"); MessageBoxW(NULL, foobar.c_str(), L"test", MB_OK); return foobar != L"C:\\foo\\bar"; } std::wstring combine(std::wstring l, std::wstring r) { WCHAR* b; PathAllocCombine(l.c_st...
27.866667
71
0.648325
b210cb39035f896fe4d384077122acac90cd9c66
5,714
cc
C++
Ops/Resampler.cc
daiktas/ROOT-TF-pipeline
cffd86e6f1699a33fc003c65db91c18f047e1f3d
[ "Apache-2.0" ]
1
2020-07-07T17:54:33.000Z
2020-07-07T17:54:33.000Z
Ops/Resampler.cc
daiktas/ROOT-TF-pipeline
cffd86e6f1699a33fc003c65db91c18f047e1f3d
[ "Apache-2.0" ]
1
2020-07-07T12:51:16.000Z
2020-07-07T21:46:05.000Z
Ops/Resampler.cc
matt-komm/pyhep20_tfpipeline
42b09fa59ff0e5fc564f6c6c1a67e7347be6c6ac
[ "Apache-2.0" ]
1
2019-12-06T09:28:00.000Z
2019-12-06T09:28:00.000Z
/*=================================================================== Copyright 2019 Matthias Komm, Vilius Cepaitis, Robert Bainbridge, Alex Tapper, Oliver Buchmueller. 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....
34.841463
102
0.542177
b211ac48afa6c04fada1656cfece38f02864b3d2
378
cpp
C++
C++/helloworld.cpp
Fernal73/LearnCpp
100aa80e447fe7735d7f8217c2ec72ae32ed1c7f
[ "MIT" ]
null
null
null
C++/helloworld.cpp
Fernal73/LearnCpp
100aa80e447fe7735d7f8217c2ec72ae32ed1c7f
[ "MIT" ]
null
null
null
C++/helloworld.cpp
Fernal73/LearnCpp
100aa80e447fe7735d7f8217c2ec72ae32ed1c7f
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { cout << "Content-type:text/html\r\n\r\n"; cout << "<html>\n"; cout << "<head>\n"; cout << "<title>Hello World - First CGI Program</title>\n"; cout << "</head>\n"; cout << "<body>\n"; cout << "<h2>Hello World! This is my first CGI program</h2>\n"; c...
21
65
0.55291
b21b574fc52d3864c1521d6debd65513a99026cd
2,746
cpp
C++
Astar.cpp
SquareSponge722/GPSTool
93fa468217dee08e79434388e21e98b67d5062f6
[ "MulanPSL-1.0" ]
1
2021-06-13T20:25:08.000Z
2021-06-13T20:25:08.000Z
Astar.cpp
SquareSponge722/GPSTool
93fa468217dee08e79434388e21e98b67d5062f6
[ "MulanPSL-1.0" ]
1
2021-06-13T20:40:23.000Z
2021-06-14T09:15:50.000Z
Astar.cpp
SquareSponge722/GPSTool
93fa468217dee08e79434388e21e98b67d5062f6
[ "MulanPSL-1.0" ]
null
null
null
#include <cstdio> #include <cstdlib> #include <cmath> #include <algorithm> #include <queue> #include <vector> using namespace std; // FENCE = 5 EDGE = 4 const int N = 10010; const double ES = 1.1; struct point{ int x,y; point(){} point(int X,int Y){ x = X,y = Y; } }; struct step{ int x...
22.325203
101
0.525856
b21f138767985f93ea54c90c4a329af757e4b679
21,664
cpp
C++
master/autotools-book-files/autotools/book/flaim-ch8-10/xflaim/util/basictestsrv.cpp
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/autotools-book-files/autotools/book/flaim-ch8-10/xflaim/util/basictestsrv.cpp
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/autotools-book-files/autotools/book/flaim-ch8-10/xflaim/util/basictestsrv.cpp
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
//------------------------------------------------------------------------------ // Desc: This is the main implementation of BasicTest component of our unit // test suite. It handles basic operations such as: creating a db, // deleting a db, backup and restore and add and remove nodes. // Tabs: 3 // // Copyright (...
22.106122
80
0.646326
b21fad152dad1f22d6cee9b9d96e55a10d96cc84
4,323
cpp
C++
gsi_openssh/source/contrib/win32/win32compat/lsa/Base64.cpp
eunsungc/globus_toolkit-6.0.1430141288-RAMSES
910400858b3fc414d848580da90a4a4a370148f4
[ "Apache-2.0" ]
1
2016-09-27T01:35:12.000Z
2016-09-27T01:35:12.000Z
gsi_openssh/source/contrib/win32/win32compat/lsa/Base64.cpp
eunsungc/globus_toolkit-6.0.1430141288-RAMSES
910400858b3fc414d848580da90a4a4a370148f4
[ "Apache-2.0" ]
10
2015-08-26T20:52:57.000Z
2017-03-04T11:09:37.000Z
gsi_openssh/source/contrib/win32/win32compat/lsa/Base64.cpp
eunsungc/globus_toolkit-6.0.1430141288-RAMSES
910400858b3fc414d848580da90a4a4a370148f4
[ "Apache-2.0" ]
null
null
null
/* * Author: NoMachine <developers@nomachine.com> * * Copyright (c) 2009, 2013 NoMachine * All rights reserved * * Support functions and system calls' replacements needed to let the * software run on Win32 based operating systems. * * Redistribution and use in source and binary forms, with or without * modifi...
20.985437
76
0.578071
b2215701198ec1c13461b9cc8e1b700f2dc4a5c2
607
cpp
C++
Array/zhanchengguo/0716-移动零/moveZeroes.cpp
JessonYue/LeetCodeLearning
3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79
[ "MIT" ]
39
2020-05-31T06:14:39.000Z
2021-01-09T11:06:39.000Z
Array/zhanchengguo/0716-移动零/moveZeroes.cpp
JessonYue/LeetCodeLearning
3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79
[ "MIT" ]
7
2020-06-02T11:04:14.000Z
2020-06-11T14:11:58.000Z
Array/zhanchengguo/0716-移动零/moveZeroes.cpp
JessonYue/LeetCodeLearning
3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79
[ "MIT" ]
20
2020-05-31T06:21:57.000Z
2020-10-01T04:48:38.000Z
#include <iostream> #include <vector> using namespace std; void moveZeroes(vector<int> &nums); int main() { int a[] = {0, 0, 1}; vector<int> vv(a, a + 3); moveZeroes(vv); for (int i = 0; i < vv.size(); ++i) { printf("values is %d\n", vv[i]); } return 0; } /** * 思路:先把所有的非0数据保持原有顺序,之后...
18.393939
47
0.482702
b22265f87e1f27dfb73ffb679ab6f2f80419c57d
1,122
cpp
C++
Runtime/src/ad_stack.cpp
astrotuna201/dlvm-core
fb8823bb1c59f8e6b28491b9bc1e26c60938c436
[ "Apache-2.0" ]
98
2018-01-27T03:00:33.000Z
2021-05-20T05:27:23.000Z
Runtime/src/ad_stack.cpp
astrotuna201/dlvm-core
fb8823bb1c59f8e6b28491b9bc1e26c60938c436
[ "Apache-2.0" ]
23
2018-01-27T06:34:34.000Z
2021-07-31T19:49:42.000Z
Runtime/src/ad_stack.cpp
astrotuna201/dlvm-core
fb8823bb1c59f8e6b28491b9bc1e26c60938c436
[ "Apache-2.0" ]
17
2018-02-01T16:49:07.000Z
2021-06-17T12:53:40.000Z
// // ad_stack.cpp // DLVM // // Copyright 2016-2018 The DLVM Team. // // 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 r...
24.933333
76
0.713012
b222c618f036fe9c3bf3b1683957d3d9fb2f8f26
788
cpp
C++
src/log.cpp
DuinoDu/MotionDetection
da9ba307948882fe66910f3936743309fda07fbc
[ "MIT" ]
1
2017-07-12T09:01:40.000Z
2017-07-12T09:01:40.000Z
src/log.cpp
DuinoDu/MotionDetection
da9ba307948882fe66910f3936743309fda07fbc
[ "MIT" ]
null
null
null
src/log.cpp
DuinoDu/MotionDetection
da9ba307948882fe66910f3936743309fda07fbc
[ "MIT" ]
null
null
null
#include "../include/log.h" void Log(const char * szLog) { #if defined(DEBUG_OUTPUT_LOG) OutputDebugStringA(szLog); OutputDebugStringA("\n"); #else return; #endif /* SYSTEMTIME st; GetLocalTime(&st); FILE *fp; fp = fopen("mlog.txt", "at"); fprintf(fp, "MyLogInfo: %d:%...
21.297297
96
0.579949
b2278b98545dec581081afdf28a8433cbab546af
302
hpp
C++
src/cpp3ds/Graphics/CitroHelpers.hpp
cpp3ds/cpp3ds
7813714776e2134bd75b9f3869ed142c1d4eeaaf
[ "MIT" ]
98
2015-08-26T16:49:29.000Z
2022-03-03T10:15:43.000Z
src/cpp3ds/Graphics/CitroHelpers.hpp
Naxann/cpp3ds
1932e798306ec6d910c6a5b9e85e9d8f02fb815f
[ "MIT" ]
10
2016-02-26T21:30:51.000Z
2020-07-12T20:48:09.000Z
src/cpp3ds/Graphics/CitroHelpers.hpp
Naxann/cpp3ds
1932e798306ec6d910c6a5b9e85e9d8f02fb815f
[ "MIT" ]
15
2015-10-16T06:22:37.000Z
2020-10-01T08:52:48.000Z
#pragma once #include <citro3d.h> void CitroInit(size_t commandBufferSize); void CitroDestroy(); void CitroBindUniforms(shaderProgram_s* program); void CitroUpdateMatrixStacks(); C3D_MtxStack* CitroGetProjectionMatrix(); C3D_MtxStack* CitroGetModelviewMatrix(); C3D_MtxStack* CitroGetTextureMatrix();
27.454545
49
0.831126
b2293fb20f8db2b783e1324c9e1b5f698dc193f7
2,366
cpp
C++
apps/gadgetron/connection/nodes/common/Serialization.cpp
roopchansinghv/gadgetron
fb6c56b643911152c27834a754a7b6ee2dd912da
[ "MIT" ]
1
2022-02-22T21:06:36.000Z
2022-02-22T21:06:36.000Z
apps/gadgetron/connection/nodes/common/Serialization.cpp
apd47/gadgetron
073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2
[ "MIT" ]
null
null
null
apps/gadgetron/connection/nodes/common/Serialization.cpp
apd47/gadgetron
073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2
[ "MIT" ]
null
null
null
#include <iomanip> #include "Serialization.h" #include "io/primitives.h" #include "MessageID.h" using namespace Gadgetron::Core; namespace Gadgetron::Server::Connection::Nodes { Serialization::Serialization( Readers readers, Writers writers ) : readers(std::move(readers)), writers(...
32.861111
110
0.558749
b22d96ce16a46e20c9a9b9c05ea235799addebaa
3,041
cpp
C++
common/test_libs/arduino_sim/ArduinoSim.cpp
sienna0127/VentilatorSoftware
73e65d8b00c29617b64430cff921afa597096bf8
[ "Apache-2.0" ]
null
null
null
common/test_libs/arduino_sim/ArduinoSim.cpp
sienna0127/VentilatorSoftware
73e65d8b00c29617b64430cff921afa597096bf8
[ "Apache-2.0" ]
null
null
null
common/test_libs/arduino_sim/ArduinoSim.cpp
sienna0127/VentilatorSoftware
73e65d8b00c29617b64430cff921afa597096bf8
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020, RespiraWorks 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, software d...
30.108911
79
0.70832
b232ff0864a1fb74f21167279cd5dbaf6a09b3e1
226
cpp
C++
Server/game/src/main.cpp
fatihsahinn/Metin2-Coin-System
cf4427fa74ee37f3a699301272c3f5cc18c8015a
[ "MIT" ]
null
null
null
Server/game/src/main.cpp
fatihsahinn/Metin2-Coin-System
cf4427fa74ee37f3a699301272c3f5cc18c8015a
[ "MIT" ]
null
null
null
Server/game/src/main.cpp
fatihsahinn/Metin2-Coin-System
cf4427fa74ee37f3a699301272c3f5cc18c8015a
[ "MIT" ]
null
null
null
// Add File İnclude #ifdef ENABLE_FATIH_SAHIN_REDCOIN_SYSTEM #include "RedCoinManager.h" #endif // Find CPrivManager priv_manager; //Add below #ifdef ENABLE_FATIH_SAHIN_REDCOIN_SYSTEM CRedCoinManager RedCoinManager; #endif
18.833333
40
0.827434
b23885ece11a149f98a639c53ec6a016954c6167
1,139
cpp
C++
codechef/BINIM2/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codechef/BINIM2/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codechef/BINIM2/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: 21-10-2018 22:40:38 * solution_verdict: Accepted language: C++14 * run...
30.783784
111
0.369622
b23c37009fd8fb21a79a37d2a980d31f16e19b66
3,835
cpp
C++
src/036_valid_sudoku.cpp
llife09/leetcode
f5bd6bc7819628b9921441d8362f62123ab881b7
[ "MIT" ]
1
2019-09-01T22:54:39.000Z
2019-09-01T22:54:39.000Z
src/036_valid_sudoku.cpp
llife09/leetcode
f5bd6bc7819628b9921441d8362f62123ab881b7
[ "MIT" ]
6
2019-07-19T07:16:42.000Z
2019-07-26T08:21:31.000Z
src/036_valid_sudoku.cpp
llife09/leetcode
f5bd6bc7819628b9921441d8362f62123ab881b7
[ "MIT" ]
null
null
null
/* Valid Sudoku URL: https://leetcode.com/problems/valid-sudoku Tags: ['hash-table'] ___ Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules : 1. Each row must contain the digits `1-9` without repetition. 2. Each column must contain the digits `...
30.19685
80
0.393481
b23d918b6b8841b218baedbc00d97ead1298d0f9
191
hpp
C++
src/Input.hpp
RichardMarks/proto
68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01
[ "MIT" ]
null
null
null
src/Input.hpp
RichardMarks/proto
68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01
[ "MIT" ]
null
null
null
src/Input.hpp
RichardMarks/proto
68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01
[ "MIT" ]
null
null
null
#ifndef INPUT_H #define INPUT_H namespace proto { class Config; class Input { public: Input(Config& config); ~Input(); }; } // !namespace proto #endif // !INPUT_H
10.611111
28
0.602094
b23e0884e156046a6e20dc29f642df205a4f990e
888
cpp
C++
src/prod/src/api/wrappers/ComClientSettingsResult.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/api/wrappers/ComClientSettingsResult.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/api/wrappers/ComClientSettingsResult.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
26.909091
98
0.653153
b2402af98fb294e4e193cec4112358712acd635c
54,548
hpp
C++
ch_frb_io.hpp
CHIMEFRB/ch_frb_io
1c283cda329c16cd04cf79d9d520a2076f748c9d
[ "MIT" ]
null
null
null
ch_frb_io.hpp
CHIMEFRB/ch_frb_io
1c283cda329c16cd04cf79d9d520a2076f748c9d
[ "MIT" ]
17
2016-06-15T22:55:57.000Z
2020-09-25T18:15:40.000Z
ch_frb_io.hpp
CHIMEFRB/ch_frb_io
1c283cda329c16cd04cf79d9d520a2076f748c9d
[ "MIT" ]
3
2017-01-12T11:42:19.000Z
2019-01-14T23:54:44.000Z
#ifndef _CH_FRB_IO_HPP #define _CH_FRB_IO_HPP #if (__cplusplus < 201103) && !defined(__GXX_EXPERIMENTAL_CXX0X__) #error "This source file needs to be compiled with C++11 support (g++ -std=c++11)" #endif #include <queue> #include <string> #include <vector> #include <map> #include <unordered_set> #include <unordered_ma...
44.240065
161
0.705507
b240b483f53d28c2668fc46cb5c62b6ffad27663
1,886
cpp
C++
src/src/expr/evaluter_term.cpp
Yukikamome316/MineCode
65ffbd06a05f09c11cbd43c4de934f97eaffca6d
[ "MIT" ]
17
2020-12-07T10:58:03.000Z
2021-09-10T05:49:38.000Z
src/src/expr/evaluter_term.cpp
Yukikamome316/MineCode
65ffbd06a05f09c11cbd43c4de934f97eaffca6d
[ "MIT" ]
2
2021-05-16T18:45:36.000Z
2021-10-20T13:02:35.000Z
src/src/expr/evaluter_term.cpp
Yukikamome316/MineCode
65ffbd06a05f09c11cbd43c4de934f97eaffca6d
[ "MIT" ]
8
2021-01-11T09:11:21.000Z
2021-09-02T17:52:46.000Z
#include <eval.h> #include <parserCore.h> #include <parserTypes.h> #include <stmtProcessor.h> #include <syntaxError.h> #include <util.h> using namespace parserTypes; void eval::Term(parserCore *that, term obj, int dest) { int offs = that->Asm->stack_offset; struct offset { enum Type { MUL, DIV, MOD }; Ty...
25.835616
74
0.513256
b2411423bc7e25d4234db41cf608539f3f65ffc3
651
cpp
C++
Basic_info.cpp
justinluuvn/Store-Management
af90d0eae58d950aa15c24846f408402db0aaf66
[ "Unlicense" ]
null
null
null
Basic_info.cpp
justinluuvn/Store-Management
af90d0eae58d950aa15c24846f408402db0aaf66
[ "Unlicense" ]
null
null
null
Basic_info.cpp
justinluuvn/Store-Management
af90d0eae58d950aa15c24846f408402db0aaf66
[ "Unlicense" ]
null
null
null
#include "Basic_info.h" #include <cstring> #include <cstdio> using namespace std; Basic_info::Basic_info() { strcpy(this->name, "unknown"); strcpy(this->id, "unkonwn"); strcpy(this->category, "unkonwn"); } Basic_info::Basic_info(char* name, char* id, char* cat) { strcpy(this->name, name); strcpy(t...
19.147059
88
0.625192
b24196bd16bdfd814ffbd78e8699c51537e3e760
1,148
cc
C++
source/RasqalQueryResults.cc
SynBioDex/libSBOL
50fb77cec1b043ede08ed315cfac6958e80b9d2f
[ "Apache-2.0" ]
12
2016-05-06T08:50:00.000Z
2021-07-09T21:02:56.000Z
source/RasqalQueryResults.cc
SynBioDex/libSBOL
50fb77cec1b043ede08ed315cfac6958e80b9d2f
[ "Apache-2.0" ]
178
2016-01-19T19:12:50.000Z
2020-06-14T08:12:52.000Z
source/RasqalQueryResults.cc
SynBioDex/libSBOL
50fb77cec1b043ede08ed315cfac6958e80b9d2f
[ "Apache-2.0" ]
8
2016-03-14T15:10:59.000Z
2019-07-29T20:14:50.000Z
#include <stdio.h> #include "RasqalQueryResults.hh" void RasqalQueryResults::loadBindingResults() { if(m_results == NULL) { return; } while(!rasqal_query_results_finished(m_results)) { int i; std::map<std::string, rasqal_literal *> bindingResults; for(i = 0; i < r...
24.956522
92
0.60453
b24543063e7a8606e02d514248c669a3d9159efa
3,344
cpp
C++
PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
null
null
null
PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
null
null
null
PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
null
null
null
#include "Precompiled.hpp" #include "RigidBody2d.hpp" #include "Engine/Cog.hpp" #include "Engine/Space.hpp" #include "PhysicsSpace2d.hpp" #include "Utilities/ZeroUtilities.hpp" namespace Physics2d { //-------------------------------------------------------------------RigidBody2d ZilchDefineType(RigidBody2d, builde...
20.9
90
0.75299
b24a19eccd5f0b3602553c5b847d171bd60627ec
743
cpp
C++
intermediate/funciones/vectorParamsFunctions.cpp
eduardorasgado/CppZerotoAdvance2018
909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f
[ "MIT" ]
1
2019-06-20T17:51:10.000Z
2019-06-20T17:51:10.000Z
intermediate/funciones/vectorParamsFunctions.cpp
eduardorasgado/CppZerotoAdvance2018
909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f
[ "MIT" ]
2
2018-10-01T08:14:01.000Z
2018-10-06T05:27:26.000Z
intermediate/funciones/vectorParamsFunctions.cpp
eduardorasgado/CppZerotoAdvance2018
909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f
[ "MIT" ]
1
2018-10-05T10:54:10.000Z
2018-10-05T10:54:10.000Z
/* PASO DE PARAMETROS TIPO VECTOR Parametros de la funcion: void nombreDeFuncion(tipo nombreArreglo[], int tamañoArreglo); Llamada a la funcion: nombreDeFuncion(nombreArreglo, tamañoArreglo); */ #include <iostream> using namespace std; void sqrtVector(int vect[], int N); void showVector(int vect[], int N); int ...
17.690476
70
0.64603
b24fdc9bd6f32d5eddd556105561518396f867f4
2,453
cpp
C++
src/world/csvr/Parser.cpp
desktopgame/ofxPlanet
fe364e83f4c0ec0f169df63ce989a88ae6328c07
[ "BSD-2-Clause", "MIT" ]
3
2020-02-24T14:19:20.000Z
2021-05-17T11:25:07.000Z
src/world/csvr/Parser.cpp
desktopgame/ofxPlanet
fe364e83f4c0ec0f169df63ce989a88ae6328c07
[ "BSD-2-Clause", "MIT" ]
1
2020-02-25T09:20:34.000Z
2020-02-25T09:38:49.000Z
src/world/csvr/Parser.cpp
desktopgame/ofxPlanet
fe364e83f4c0ec0f169df63ce989a88ae6328c07
[ "BSD-2-Clause", "MIT" ]
1
2021-08-14T07:12:42.000Z
2021-08-14T07:12:42.000Z
#include "parser.hpp" #include <cctype> #include <iostream> #include <sstream> #include <stdexcept> namespace ofxPlanet { namespace csvr { Parser::Parser() : tables() {} void Parser::parse(const std::string& source) { int start = 0; while (true) { Table table; int read ...
33.148649
77
0.416633
b2506097ff0fe500e6be1b5f819e94c3a7b1d673
467
cpp
C++
C++/isPalindrome.cpp
xtt129/LeetCode
1afa893d38e2fce68e4677b34169c0f0262b6fac
[ "MIT" ]
2
2020-04-08T17:57:43.000Z
2021-11-07T09:11:51.000Z
C++/isPalindrome.cpp
xtt129/LeetCode
1afa893d38e2fce68e4677b34169c0f0262b6fac
[ "MIT" ]
null
null
null
C++/isPalindrome.cpp
xtt129/LeetCode
1afa893d38e2fce68e4677b34169c0f0262b6fac
[ "MIT" ]
8
2018-03-13T18:20:26.000Z
2022-03-09T19:48:11.000Z
// Time Complexity: O(n) // Space Complexity: O(1) class Solution { public: bool isPalindrome(int x) { if(x < 0) return false; int d = 1; for(; x / d >= 10 ; d *= 10); for(; x > 0; x = (x % d) / 10, d /= 100) { int q = x / d;...
20.304348
54
0.329764
b250704696796f07757187ddd0f347e9fd3a5209
2,052
hh
C++
src/ui/win32/bindings/NumericUpDownBinding.hh
Jamiras/RAIntegration
ccf3dea24d81aefdcf51535f073889d03272b259
[ "MIT" ]
71
2018-04-15T13:02:43.000Z
2022-03-26T11:19:18.000Z
src/ui/win32/bindings/NumericUpDownBinding.hh
Jamiras/RAIntegration
ccf3dea24d81aefdcf51535f073889d03272b259
[ "MIT" ]
309
2018-04-15T12:10:59.000Z
2022-01-22T20:13:04.000Z
src/ui/win32/bindings/NumericUpDownBinding.hh
Jamiras/RAIntegration
ccf3dea24d81aefdcf51535f073889d03272b259
[ "MIT" ]
17
2018-04-17T16:09:31.000Z
2022-03-04T08:49:03.000Z
#ifndef RA_UI_WIN32_NUMERICUPDOWNBINDING_H #define RA_UI_WIN32_NUMERICUPDOWNBINDING_H #pragma once #include "NumericTextBoxBinding.hh" namespace ra { namespace ui { namespace win32 { namespace bindings { class NumericUpDownBinding : public NumericTextBoxBinding { public: explicit NumericUpDownBinding(ViewModelBa...
24.428571
86
0.63499
b25105172d2e9011cadedc603ee297e5479a770a
3,220
cc
C++
ash/wm/cursor_manager.cc
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
5
2018-03-10T13:08:42.000Z
2021-07-26T15:02:11.000Z
ash/wm/cursor_manager.cc
sanyaade-mobiledev/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
ash/wm/cursor_manager.cc
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/wm/cursor_manager.h" #include "ash/shell.h" #include "ash/wm/image_cursors.h" #include "base/logging.h" #include "ui/aura/root_window.h...
25.967742
73
0.735714
b25451f79ccd6a2b2420e0d7196676082dedbb56
362
hpp
C++
core/LinearActivation.hpp
CltKitakami/NeuralNetwork
78f2ba1cc38b16d94c10341fe3c5afd8f684db7e
[ "MIT" ]
null
null
null
core/LinearActivation.hpp
CltKitakami/NeuralNetwork
78f2ba1cc38b16d94c10341fe3c5afd8f684db7e
[ "MIT" ]
null
null
null
core/LinearActivation.hpp
CltKitakami/NeuralNetwork
78f2ba1cc38b16d94c10341fe3c5afd8f684db7e
[ "MIT" ]
null
null
null
#ifndef _LINEARACTIVATION_HPP_ #define _LINEARACTIVATION_HPP_ #include "Activation.hpp" namespace nn { class LinearActivation : public Activation { public: virtual ~LinearActivation() = default; virtual void forward(MatrixType &) override {} virtual void backward(MatrixType &x) override { x = MatrixType::One...
14.48
47
0.729282
b25824e6fb60d6b05fe6dffe0cd2c46d1313748e
3,461
cc
C++
comparison_to_iSS/steinheimer_to_music_converter.cc
doliinychenko/microcanonical_cooper_frye
4fb66d789b45096db73ddf8f1dfcfa9f0b9554a8
[ "BSD-3-Clause" ]
5
2019-05-20T16:15:45.000Z
2021-07-31T10:33:44.000Z
comparison_to_iSS/steinheimer_to_music_converter.cc
doliinychenko/microcanonical_cooper_frye
4fb66d789b45096db73ddf8f1dfcfa9f0b9554a8
[ "BSD-3-Clause" ]
null
null
null
comparison_to_iSS/steinheimer_to_music_converter.cc
doliinychenko/microcanonical_cooper_frye
4fb66d789b45096db73ddf8f1dfcfa9f0b9554a8
[ "BSD-3-Clause" ]
null
null
null
/* * Purpose: Converts Steinheimer format to MUSIC format. * Compiling: g++ -Wall -Wextra -std=c++11 -O3 -o converter steinheimer_to_music_converter.cc * Running: ./converter input_file output_file */ #include <cmath> #include <fstream> #include <iostream> #include <string> #include <sstream> int main(int arg...
39.329545
93
0.526149
b258a92d14a33205982860ce6fcfc512805b1cfa
26,537
cpp
C++
Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp
iscalab/PCIe_FPGA_Accel
bd601ac5b212583fd6329721ff21a857ae45a0d6
[ "MIT" ]
5
2018-12-11T03:17:17.000Z
2021-11-17T06:30:50.000Z
Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp
dbakoyiannis/PCIe_FPGA_Accel
1980073afba12c0d3d6accb95066c591e428180a
[ "MIT" ]
null
null
null
Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp
dbakoyiannis/PCIe_FPGA_Accel
1980073afba12c0d3d6accb95066c591e428180a
[ "MIT" ]
2
2021-04-04T08:47:03.000Z
2021-04-27T12:32:48.000Z
/******************************************************************************* * Filename: acceleration_scheduler_sg_xdma.cpp * Author: Dimitrios Bakoyiannis <d.bakoyiannis@gmail.com> * License: * * MIT License * * Copyright (c) [2018] [Dimitrios Bakoyiannis] * * Permission is hereby granted, free of charge, to...
52.548515
187
0.703885
b25a1b236fc30eaab045d725f376a0574901735e
1,027
cpp
C++
src/logging/serial_logger.cpp
abkfenris/gage-particle
0f70bea48c2f2cfaa195eb4513e557b6c1c48f4f
[ "MIT" ]
null
null
null
src/logging/serial_logger.cpp
abkfenris/gage-particle
0f70bea48c2f2cfaa195eb4513e557b6c1c48f4f
[ "MIT" ]
26
2019-11-22T16:31:08.000Z
2021-07-19T21:35:10.000Z
src/logging/serial_logger.cpp
abkfenris/gage-particle
0f70bea48c2f2cfaa195eb4513e557b6c1c48f4f
[ "MIT" ]
null
null
null
#include "logging/serial_logger.h" void SerialLogger::setup() { Serial.begin(); last_update_ms = millis() - update_interval_ms; } void SerialLogger::loop() { if (millis() - last_update_ms >= update_interval_ms) { last_update_ms = millis(); persist_values(); } } void SerialLogger:...
18.672727
70
0.627069
b25f39b9c350db8114d85c4c171a568e8d87cdd3
5,936
cpp
C++
src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp
SemenMartynov/SPbPU_SystemProgramming
151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e
[ "MIT" ]
null
null
null
src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp
SemenMartynov/SPbPU_SystemProgramming
151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e
[ "MIT" ]
null
null
null
src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp
SemenMartynov/SPbPU_SystemProgramming
151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e
[ "MIT" ]
null
null
null
#include <windows.h> #include <stdio.h> #include <conio.h> #include <tchar.h> #include <strsafe.h> #include "logger.h" #define BUFSIZE 512 DWORD WINAPI InstanceThread(LPVOID); int _tmain(int argc, _TCHAR* argv[]) { //Init log initlog(argv[0]); _tprintf(_T("Server is started.\n\n")); BOOL fCo...
37.1
89
0.6656
b25f7506808265a2fb90971ef604c067e438b69e
7,410
cpp
C++
src/visualmsi.cpp
OpenGene/VisualMSI
4cbc272002d6a5b30b0c208fbf7b5a6860da0d17
[ "MIT" ]
33
2018-11-07T06:19:55.000Z
2021-10-16T04:13:51.000Z
src/visualmsi.cpp
OpenGene/VisualMSI
4cbc272002d6a5b30b0c208fbf7b5a6860da0d17
[ "MIT" ]
3
2019-05-19T11:42:06.000Z
2021-09-01T06:08:58.000Z
src/visualmsi.cpp
OpenGene/VisualMSI
4cbc272002d6a5b30b0c208fbf7b5a6860da0d17
[ "MIT" ]
13
2018-11-09T03:47:58.000Z
2021-05-18T00:43:09.000Z
#include "visualmsi.h" #include "bamutil.h" #include "jsonreporter.h" #include "htmlreporter.h" #include "reference.h" VisualMSI::VisualMSI(Options *opt){ mOptions = opt; } VisualMSI::~VisualMSI(){ for(int m=0; m<mMsiTargetsTumor.size(); m++) delete mMsiTargetsTumor[m]; for(int m=0; m<mMsiTargetsN...
34.147465
125
0.574359
b261584d02f89b87c0729209149505d5b65840ad
13,157
cpp
C++
NextEngine/src/graphics/renderer/terrain.cpp
CompilerLuke/NextEngine
aa1a8e9d9370bce004dba00854701597cab74989
[ "MIT" ]
1
2021-09-10T18:19:16.000Z
2021-09-10T18:19:16.000Z
NextEngine/src/graphics/renderer/terrain.cpp
CompilerLuke/NextEngine
aa1a8e9d9370bce004dba00854701597cab74989
[ "MIT" ]
null
null
null
NextEngine/src/graphics/renderer/terrain.cpp
CompilerLuke/NextEngine
aa1a8e9d9370bce004dba00854701597cab74989
[ "MIT" ]
2
2020-04-02T06:46:56.000Z
2021-06-17T16:47:57.000Z
#include "core/profiler.h" #include "ecs/ecs.h" #include "graphics/renderer/terrain.h" #include "graphics/assets/assets.h" #include "graphics/assets/model.h" #include "components/transform.h" #include "components/terrain.h" #include "components/camera.h" #include "graphics/assets/material.h" #include "graphics/renderer...
43.566225
170
0.769628
b2642858a73238ff8445a18e6e02ffdb615c548a
342
cpp
C++
minerva/common/common.cpp
jjzhang166/minerva
7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f
[ "Apache-2.0" ]
561
2015-04-05T02:50:00.000Z
2022-03-04T09:05:16.000Z
minerva/common/common.cpp
jjzhang166/minerva
7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f
[ "Apache-2.0" ]
35
2015-04-05T12:46:45.000Z
2016-06-14T00:58:17.000Z
minerva/common/common.cpp
jjzhang166/minerva
7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f
[ "Apache-2.0" ]
161
2015-04-15T05:47:34.000Z
2022-01-25T16:01:20.000Z
#include "./common.h" #include <cstdarg> #include <dmlc/logging.h> namespace minerva { namespace common { void FatalError(char const* format, ...) { char buffer[4096]; va_list va; va_start(va, format); vsprintf(buffer, format, va); va_end(va); LOG(FATAL) << buffer; abort(); } } // namespace common } ...
16.285714
42
0.660819
b26433de2a3b299b75f9277741cbcf77c18d0bb2
5,248
cpp
C++
src/libminc/MincCastRegister.cpp
RcSepp/minc
8add46095ba7990ca636a6e6c266dda4148052fd
[ "MIT" ]
null
null
null
src/libminc/MincCastRegister.cpp
RcSepp/minc
8add46095ba7990ca636a6e6c266dda4148052fd
[ "MIT" ]
null
null
null
src/libminc/MincCastRegister.cpp
RcSepp/minc
8add46095ba7990ca636a6e6c266dda4148052fd
[ "MIT" ]
null
null
null
#include "minc_api.hpp" InheritanceCast::InheritanceCast(MincObject* fromType, MincObject* toType, MincKernel* kernel) : MincCast(fromType, toType, kernel) { } int InheritanceCast::getCost() const { return 0; } MincCast* InheritanceCast::derive() const { return nullptr; } TypeCast::TypeCast(MincObject* fromType,...
31.238095
121
0.688453
b26527d03ec717ccb01c9a61e85e359f363b29ba
6,146
cpp
C++
elem.cpp
soulofmachines/QtCue
035148f32fa1ca08ded9eca2fa6810c235d4831c
[ "MIT" ]
null
null
null
elem.cpp
soulofmachines/QtCue
035148f32fa1ca08ded9eca2fa6810c235d4831c
[ "MIT" ]
null
null
null
elem.cpp
soulofmachines/QtCue
035148f32fa1ca08ded9eca2fa6810c235d4831c
[ "MIT" ]
null
null
null
#include "elem.hpp" QComboBox *file_list() { QStringList string = QStringList() << "BINARY" << "MOTOROLA" << "AIFF" << "WAVE" << "MP3"; QComboBox* combo = new QComboBox(); combo->addItems(string); return combo; } QComboBox *track_list() { QStringList string...
30.884422
108
0.441263
05ce411b110055dbdd846fce6dcd281fc9086eef
7,134
cpp
C++
engine/Engine.Core/src/core/resource/ResourceManager.cpp
ZieIony/Ghurund
be84166ef0aba5556910685b7a3b754b823da556
[ "MIT" ]
66
2018-12-16T21:03:36.000Z
2022-03-26T12:23:57.000Z
engine/Engine.Core/src/core/resource/ResourceManager.cpp
ZieIony/Ghurund
be84166ef0aba5556910685b7a3b754b823da556
[ "MIT" ]
57
2018-04-24T20:53:01.000Z
2021-02-21T12:14:20.000Z
engine/Engine.Core/src/core/resource/ResourceManager.cpp
ZieIony/Ghurund
be84166ef0aba5556910685b7a3b754b823da556
[ "MIT" ]
7
2019-07-16T08:25:25.000Z
2022-03-21T08:29:46.000Z
#include "ghcpch.h" #include "ResourceManager.h" #include "core/Timer.h" #include "core/logging/Formatter.h" #include "core/reflection/TypeBuilder.h" namespace Ghurund::Core { Status ResourceManager::loadInternal(Loader& loader, Resource& resource, const FilePath& path, const ResourceFormat* format, LoadOption op...
39.854749
171
0.581161
05d1ac22327335fe17703d3be4a530ea8bc67348
1,944
hpp
C++
test/examples/code/3rdparty/assimp/detail/ph.hpp
maikebing/vpp
efa6c32f898e103d749764ce3a0b7dc29d6e9a51
[ "BSD-2-Clause" ]
null
null
null
test/examples/code/3rdparty/assimp/detail/ph.hpp
maikebing/vpp
efa6c32f898e103d749764ce3a0b7dc29d6e9a51
[ "BSD-2-Clause" ]
null
null
null
test/examples/code/3rdparty/assimp/detail/ph.hpp
maikebing/vpp
efa6c32f898e103d749764ce3a0b7dc29d6e9a51
[ "BSD-2-Clause" ]
null
null
null
/* Copyright SOFT-ERG (Przemek Kuczmierczyk) 2016 All Rights Reserved. THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS THE PROPERTY OF SOFT-ERG (Przemek Kuczmierczyk) AND IS SUBJECT TO LICENSE TERMS. */ // ---------------------------------------------------------...
21.6
81
0.64249
05d31ac2b37312671d2275ca84dd41fca9cdea6a
445
cc
C++
src/main.cc
rsanchezm98/sudoku-solver
4b7580105acb4dda50ca24c69be09f89826f39a4
[ "MIT" ]
null
null
null
src/main.cc
rsanchezm98/sudoku-solver
4b7580105acb4dda50ca24c69be09f89826f39a4
[ "MIT" ]
null
null
null
src/main.cc
rsanchezm98/sudoku-solver
4b7580105acb4dda50ca24c69be09f89826f39a4
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include "sudoku.hpp" int main(int argc, char** argv) { if(argc < 2) { std::cout << "Please, rerun the program with a filename...\n"; return 0; } std::string filename = argv[1]; filename = "../sudoku_files/" + filename; size_t table_size = ...
22.25
70
0.58427
05d487dc83be83fe591a9cb01fd315bc83ee3151
4,405
hh
C++
libsrc/pylith/friction/obsolete/StaticFriction.hh
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
libsrc/pylith/friction/obsolete/StaticFriction.hh
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
libsrc/pylith/friction/obsolete/StaticFriction.hh
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
// -*- C++ -*- // // ---------------------------------------------------------------------- // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://...
30.804196
78
0.640863
05dda52b7ccff9a05c23d3d9775c558c95b45a49
1,517
cpp
C++
Userland/Libraries/LibDSP/Keyboard.cpp
kleinesfilmroellchen/serenity
f34f3ef7d64de6433418eb5f7442bb5f3dd2e2a3
[ "BSD-2-Clause" ]
3
2021-09-07T00:07:12.000Z
2021-12-19T13:29:36.000Z
Userland/Libraries/LibDSP/Keyboard.cpp
kleinesfilmroellchen/serenity
f34f3ef7d64de6433418eb5f7442bb5f3dd2e2a3
[ "BSD-2-Clause" ]
1
2021-10-17T14:46:24.000Z
2021-11-27T14:57:52.000Z
Userland/Libraries/LibDSP/Keyboard.cpp
kleinesfilmroellchen/serenity
f34f3ef7d64de6433418eb5f7442bb5f3dd2e2a3
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2021, kleines Filmröllchen <malu.bertsch@gmail.com>. * * SPDX-License-Identifier: BSD-2-Clause */ #include "Keyboard.h" #include "Music.h" #include "TrackManager.h" #include <AK/Error.h> #include <AK/NumericLimits.h> namespace LibDSP { void Keyboard::set_keyboard_note(u8 pitch, Keyboard::Switc...
25.711864
86
0.676335
05df2f5286bb59dc5bd3272f3a3aa1a53af432b7
2,825
hpp
C++
external/swak/libraries/simpleFunctionObjects/DataStructures/TimeClone/TimeCloneList.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/swak/libraries/simpleFunctionObjects/DataStructures/TimeClone/TimeCloneList.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/swak/libraries/simpleFunctionObjects/DataStructures/TimeClone/TimeCloneList.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright: ICE Stroemungsfoschungs GmbH Copyright held by original author ------------------------------------------------------------------------------- License This file is based on CAELUS. CAELUS is free software: you can redis...
25.917431
99
0.504425
05e3e38e2b358720cf85efb9805fa60b9adc7b79
1,301
cpp
C++
CipherTools/PluginSupport/PIDocManager.cpp
kuustudio/CipherTools
d99e707eab0515424ebe3555bb15dfbdc1782575
[ "MIT" ]
2
2019-09-02T16:28:10.000Z
2020-08-19T09:29:51.000Z
PluginSupport/PIDocManager.cpp
SurrealSky/CipherManager
b0b4f3e58d148ee285a279cea46171ef9ef6cb00
[ "MIT" ]
null
null
null
PluginSupport/PIDocManager.cpp
SurrealSky/CipherManager
b0b4f3e58d148ee285a279cea46171ef9ef6cb00
[ "MIT" ]
1
2021-07-03T02:49:46.000Z
2021-07-03T02:49:46.000Z
#include "stdafx.h" #include "PIDocManager.h" IMPLEMENT_DYNAMIC(CPIDocManager, CDocManager) CPIDocManager::CPIDocManager(void) { } CPIDocManager::~CPIDocManager(void) { } #ifdef _DEBUG void CPIDocManager::AssertValid() const { CDocManager::AssertValid(); } void CPIDocManager::Dump(CDumpContext& dc) const { CDo...
19.41791
83
0.730208
05e9a3513b14c65f8e38da89e82964b50b0346a4
1,379
cc
C++
src/remoting/host/vlog_net_log.cc
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
9
2018-09-21T05:36:12.000Z
2021-11-15T15:14:36.000Z
remoting/host/vlog_net_log.cc
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
remoting/host/vlog_net_log.cc
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/vlog_net_log.h" #include "base/json/json_writer.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "ba...
25.072727
73
0.69108
05ea5e7204956392ba3c8588a4bf5e18c83b93bf
943
cc
C++
poj/2/2457.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
1
2015-04-17T09:54:23.000Z
2015-04-17T09:54:23.000Z
poj/2/2457.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
null
null
null
poj/2/2457.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <queue> using namespace std; int main() { int N, K; scanf("%d %d", &N, &K); vector<vector<int> > g(K); for (int i = 0; i < N; i++) { int a, b; scanf("%d %d", &a, &b); --a; --b; g[a].push_back(b); } queue<int> q; vector<int> prev(K, -1); prev...
20.06383
91
0.45175
05ecd9a4730d8fc3ddf87fa7056e3259c50ea78f
1,191
cpp
C++
transition_fixer.cpp
rclim95/TransitionFixer
cb2974917c3fc1e8b4c115406c92e692565a2e3e
[ "MIT" ]
null
null
null
transition_fixer.cpp
rclim95/TransitionFixer
cb2974917c3fc1e8b4c115406c92e692565a2e3e
[ "MIT" ]
null
null
null
transition_fixer.cpp
rclim95/TransitionFixer
cb2974917c3fc1e8b4c115406c92e692565a2e3e
[ "MIT" ]
null
null
null
#include "transition_fixer.h" #include <iostream> #include <system_error> #include <string> #include <sstream> #include <Windows.h> #include "event_log.h" #include "utils.h" namespace { constexpr LPCWSTR PROGMAN_NAME = L"Progman"; constexpr UINT DEFAULT_TIMEOUT = 500; constexpr UINT WM_ENABLE_ACTIVEDESKTOP = WM_...
23.352941
91
0.701092
05edb2d789e67f3c9d902a64ab32b4664fc0b4f3
12,624
cpp
C++
AircraftDynamicsTestFramework/TrajectoryFromFile.cpp
sbowman-mitre/FMACM
510e8c23291425c56a387fadf4ba2b41a07e094d
[ "Apache-2.0" ]
null
null
null
AircraftDynamicsTestFramework/TrajectoryFromFile.cpp
sbowman-mitre/FMACM
510e8c23291425c56a387fadf4ba2b41a07e094d
[ "Apache-2.0" ]
null
null
null
AircraftDynamicsTestFramework/TrajectoryFromFile.cpp
sbowman-mitre/FMACM
510e8c23291425c56a387fadf4ba2b41a07e094d
[ "Apache-2.0" ]
null
null
null
// **************************************************************************** // NOTICE // // This is the copyright work of The MITRE Corporation, and was produced // for the U. S. Government under Contract Number DTFAWA-10-C-00080, and // is subject to Federal Aviation Administration Acquisition Management // System...
27.503268
143
0.680925
05ee05c2da497334d5f35a2006f15402eff776df
1,440
cpp
C++
boboleetcode/Play-Leetcode-master/0937-Reorder-Log-File/cpp-0937/main.cpp
yaominzh/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2021-03-25T05:26:55.000Z
2021-04-20T03:33:24.000Z
boboleetcode/Play-Leetcode-master/0937-Reorder-Log-File/cpp-0937/main.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
boboleetcode/Play-Leetcode-master/0937-Reorder-Log-File/cpp-0937/main.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
/// Source : https://leetcode.com/problems/reorder-log-files/ /// Author : liuyubobobo /// Time : 2018-11-11 #include <iostream> #include <vector> using namespace std; /// Using Custom Class and overloading < operator to sort /// Time Complexity: O(nlogn) /// Space Complexity: O(n) class Solution { private: ...
20.571429
88
0.528472
05ee17328426ba2b9b46434fa8d306717f5edb28
793
cpp
C++
Private/RHIInstance.cpp
cyj0912/RHI
70205931d4bdf716acaec02389b9933f72ab6c58
[ "BSD-2-Clause" ]
8
2019-05-11T06:59:10.000Z
2022-01-30T12:48:38.000Z
Private/RHIInstance.cpp
cyj0912/RHI
70205931d4bdf716acaec02389b9933f72ab6c58
[ "BSD-2-Clause" ]
null
null
null
Private/RHIInstance.cpp
cyj0912/RHI
70205931d4bdf716acaec02389b9933f72ab6c58
[ "BSD-2-Clause" ]
2
2019-04-23T02:59:08.000Z
2019-05-27T22:19:28.000Z
#include "RHIInstance.h" #ifdef RHI_IMPL_DIRECT3D11 #include "Direct3D11/DeviceD3D11.h" #elif defined(RHI_IMPL_VULKAN) #include "Vulkan/DeviceVk.h" #endif namespace RHI { extern void InitRHIInstance(); extern void ShutdownRHIInstance(); static thread_local CDevice::Ref CurrDevice; CInstance& CInstance::Get() { ...
22.027778
75
0.760404
05ee5a8bee6a009cee9280c7b62d81e9d27a6228
1,436
cpp
C++
VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp
danjoconnell/VideoScriptEditor
1d836e0cbe6e5afc56bdeb17ff834da308d752b0
[ "MIT" ]
null
null
null
VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp
danjoconnell/VideoScriptEditor
1d836e0cbe6e5afc56bdeb17ff834da308d752b0
[ "MIT" ]
null
null
null
VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp
danjoconnell/VideoScriptEditor
1d836e0cbe6e5afc56bdeb17ff834da308d752b0
[ "MIT" ]
1
2021-02-04T16:43:57.000Z
2021-02-04T16:43:57.000Z
#include "pch.h" #include <string> #include "AviSynthEnvironment.h" #include <system_error> namespace VideoScriptEditor::PreviewRenderer::Unmanaged { using namespace VideoScriptEditor::Unmanaged; AviSynthEnvironment::AviSynthEnvironment() : AviSynthEnvironmentBase() { if (!CreateScriptEnvironment(...
27.09434
128
0.638579
05f2da41f5bd8713c9a218fa5c8d7d7a351847c1
3,876
cpp
C++
orbwebai/common/src/common.cpp
HungMingWu/ncnn_example
6604eab8d76a5e49280e3f840847c84244c0fb2b
[ "MIT" ]
1
2022-03-28T12:45:43.000Z
2022-03-28T12:45:43.000Z
orbwebai/common/src/common.cpp
HungMingWu/ncnn_example
6604eab8d76a5e49280e3f840847c84244c0fb2b
[ "MIT" ]
null
null
null
orbwebai/common/src/common.cpp
HungMingWu/ncnn_example
6604eab8d76a5e49280e3f840847c84244c0fb2b
[ "MIT" ]
null
null
null
#include <assert.h> #include <math.h> #include <vector> #include <algorithm> #include <iostream> #include <orbwebai/structure.h> #include <orbwebai/structure_operator.h> #include <common/common.h> namespace orbwebai { namespace face { float CalculateSimilarity( const std::vector<float>& feature1, const std::...
34
108
0.680599
05f3ab142aa6e830e78f51725f90b93050b2ef4a
1,615
cpp
C++
src/Alias.cpp
irov/GOAP
f8d5f061537019fccdd143b232aa8a869fdb0b2d
[ "MIT" ]
14
2016-10-07T21:53:02.000Z
2021-12-13T02:57:19.000Z
src/Alias.cpp
irov/GOAP
f8d5f061537019fccdd143b232aa8a869fdb0b2d
[ "MIT" ]
null
null
null
src/Alias.cpp
irov/GOAP
f8d5f061537019fccdd143b232aa8a869fdb0b2d
[ "MIT" ]
4
2016-09-01T10:06:29.000Z
2021-12-13T02:57:20.000Z
/* * Copyright (C) 2017-2019, Yuriy Levchenko <irov13@mail.ru> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "GOAP/Alias.h" #include "GOAP/SourceInterface.h" #include "GOAP/Cook.h" #include "GOAP/Exception.h" namespace GOAP { ...
26.47541
82
0.430341
05f426ef899df9cabd8a310697ee86808e2508cc
17,589
cpp
C++
src/Engine/imgui/imgui_impl_gl3.cpp
ennis/autograph-pipelines
afc66ef60bf99fca26d200bd7739528e1bf3ed8c
[ "MIT" ]
1
2021-04-24T12:29:42.000Z
2021-04-24T12:29:42.000Z
src/Engine/imgui/imgui_impl_gl3.cpp
ennis/autograph-pipelines
afc66ef60bf99fca26d200bd7739528e1bf3ed8c
[ "MIT" ]
null
null
null
src/Engine/imgui/imgui_impl_gl3.cpp
ennis/autograph-pipelines
afc66ef60bf99fca26d200bd7739528e1bf3ed8c
[ "MIT" ]
null
null
null
// ImGui GLFW binding with OpenGL3 + shaders // In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture // identifier. Read the FAQ about ImTextureID in imgui.cpp. // You can copy and use unmodified imgui_impl_* files in your project. See // main.cpp for an example of using this. If you use this bindi...
37.107595
80
0.669907
05f5d52656a4bcfcc7f70162b7b08a51e588f8e3
5,924
cpp
C++
test/unit/models/TransactionFilterTest.cpp
BlockChain-Station/enjin-cpp-sdk
3af1cd001d7e660787bbfb2e2414a96f5a95a228
[ "Apache-2.0" ]
12
2021-09-28T14:37:22.000Z
2022-03-04T17:54:11.000Z
test/unit/models/TransactionFilterTest.cpp
BlockChain-Station/enjin-cpp-sdk
3af1cd001d7e660787bbfb2e2414a96f5a95a228
[ "Apache-2.0" ]
null
null
null
test/unit/models/TransactionFilterTest.cpp
BlockChain-Station/enjin-cpp-sdk
3af1cd001d7e660787bbfb2e2414a96f5a95a228
[ "Apache-2.0" ]
8
2021-11-05T18:56:55.000Z
2022-01-10T11:14:24.000Z
/* Copyright 2021 Enjin Pte. Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
34.847059
282
0.597569
05f790145ef637d2fc34def20229d1b4dd39267e
459
cpp
C++
UILIB/DX9Line.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
27
2020-11-12T19:24:54.000Z
2022-03-27T23:10:45.000Z
UILIB/DX9Line.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
2
2020-11-02T06:30:39.000Z
2022-02-23T18:39:55.000Z
UILIB/DX9Line.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
3
2021-08-16T00:21:08.000Z
2022-02-23T19:19:36.000Z
#include "DX9Line.h" #include "d3dx9math.h" DX9Line::DX9Line(LPD3DXLINE pLine ): m_pLine( pLine ) { } DX9Line::~DX9Line() { m_pLine->Release(); } HRESULT DX9Line::Draw( POINTF* pVertexList, DWORD verCount, DWORD Colour ) { D3DXVECTOR2* vecs = new D3DXVECTOR2[verCount]; for( DWORD i = 0; i < verCount; i++ ) { ve...
19.125
74
0.673203
05fe51c8a269bea1e2878e19ef2aacb2ef355d47
207
cpp
C++
CodeBlocks/Codeforces/Solved/Codeforces4A.cpp
ash1247/DocumentsWindows
66f65b5170a1ba766cfae08b7104b63ab87331c2
[ "MIT" ]
null
null
null
CodeBlocks/Codeforces/Solved/Codeforces4A.cpp
ash1247/DocumentsWindows
66f65b5170a1ba766cfae08b7104b63ab87331c2
[ "MIT" ]
null
null
null
CodeBlocks/Codeforces/Solved/Codeforces4A.cpp
ash1247/DocumentsWindows
66f65b5170a1ba766cfae08b7104b63ab87331c2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> int main(void) { int input; scanf("%d", &input); if((input + 1) % 2 == 0 || input > 2 == 0) printf("NO\n"); else printf("YES\n"); return 0; }
12.9375
46
0.449275
05fe5c9ee22dbd27f57753b554100284933be8a6
5,915
cc
C++
src/third_party/chromium/src/base/file_util.cc
jlmucb/cloudproxy
b5aa0b619bc454ba4dd183ab1c6c8298a3b9d8c1
[ "Apache-2.0" ]
34
2015-03-10T09:58:23.000Z
2021-08-12T21:42:28.000Z
src/third_party/chromium/src/base/file_util.cc
virginwidow/cloudproxy
b5aa0b619bc454ba4dd183ab1c6c8298a3b9d8c1
[ "Apache-2.0" ]
53
2015-06-09T21:07:41.000Z
2016-12-15T00:14:53.000Z
src/third_party/chromium/src/base/file_util.cc
jethrogb/cloudproxy
fcf90a62bf09c4ecc9812117d065954be8a08da5
[ "Apache-2.0" ]
17
2015-06-09T21:29:23.000Z
2021-03-26T15:35:18.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This code is adapted from Chromium. For the original, see: // https://code.google.com/p/chromium/codesearch#chromium/src/ // The code has been modi...
28.4375
78
0.661369
af0087a7e85abdf54d4f22d5fb776247e8f8c5db
3,491
cpp
C++
cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp
aungpaing98/cmpf
6dc561895946c8faa5b15c72d2590990ac7d3e9f
[ "Apache-2.0" ]
3
2021-12-23T15:36:37.000Z
2022-02-28T15:05:35.000Z
cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp
aungpaing98/cmpf
6dc561895946c8faa5b15c72d2590990ac7d3e9f
[ "Apache-2.0" ]
1
2022-01-12T15:33:42.000Z
2022-01-12T15:33:42.000Z
cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp
aungpaing98/cmpf
6dc561895946c8faa5b15c72d2590990ac7d3e9f
[ "Apache-2.0" ]
1
2022-01-10T04:47:13.000Z
2022-01-10T04:47:13.000Z
/************************************************************************ Copyright 2021 Phone Thiha Kyaw 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/license...
37.138298
112
0.691492
af04effcd92a2963645f7475b5a05bf9cd15440e
6,021
cpp
C++
LiteCppDB/LiteCppDB/ObjectId.cpp
pnadan/LiteCppDB
cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2
[ "MIT" ]
2
2019-07-18T06:30:33.000Z
2020-01-23T17:40:36.000Z
LiteCppDB/LiteCppDB/ObjectId.cpp
pnadan/LiteCppDB
cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2
[ "MIT" ]
null
null
null
LiteCppDB/LiteCppDB/ObjectId.cpp
pnadan/LiteCppDB
cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "BsonValue.h" #include <functional> #include <random> #include <sstream> #include "ObjectId.h" #include <gsl\gsl> namespace LiteCppDB { #pragma region Properties // Get timestamp int32_t ObjectId::getTimestamp() noexcept { return this->mTimestamp; } void ObjectId::setTimestamp(in...
23.892857
98
0.680618
af0a3817e818a47eb04b4bd4d953565af9c173f0
348
hpp
C++
include/cereal/size_type.hpp
VaderY/cereal
b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a
[ "BSD-3-Clause" ]
null
null
null
include/cereal/size_type.hpp
VaderY/cereal
b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a
[ "BSD-3-Clause" ]
null
null
null
include/cereal/size_type.hpp
VaderY/cereal
b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <cstdint> #include <cereal/macros.hpp> namespace cereal { // ------------------------------------------------------------------------------------------------- using size_type = CEREAL_SIZE_TYPE; // ---------------------------------------------------------------------------------------------...
20.470588
100
0.304598
af0fce98bb2f00f6f1c531b9a680a347f47dd3c7
4,343
hpp
C++
math/utility/fn.hpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
1
2017-08-11T19:12:24.000Z
2017-08-11T19:12:24.000Z
math/utility/fn.hpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
11
2018-07-07T20:09:44.000Z
2020-02-16T22:45:09.000Z
math/utility/fn.hpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
null
null
null
//------------------------------------------------------------ // snakeoil (c) Alexis Constantin Link // Distributed under the MIT license //------------------------------------------------------------ #ifndef _SNAKEOIL_MATH_UTILITY_FUNCTION_HPP_ #define _SNAKEOIL_MATH_UTILITY_FUNCTION_HPP_ #include "../typedefs.h" n...
28.019355
79
0.474557
af106a6d6819243d90ef0a285d8bbd2765c91efa
8,786
cc
C++
src/init.cc
lightsighter/Legion-SNAP
922c14dd68b6ed2e8fb84a213b2d2d4f67e33113
[ "Apache-2.0" ]
2
2017-12-11T16:31:10.000Z
2019-09-16T21:19:14.000Z
src/init.cc
lightsighter/Legion-SNAP
922c14dd68b6ed2e8fb84a213b2d2d4f67e33113
[ "Apache-2.0" ]
null
null
null
src/init.cc
lightsighter/Legion-SNAP
922c14dd68b6ed2e8fb84a213b2d2d4f67e33113
[ "Apache-2.0" ]
2
2017-06-01T16:26:04.000Z
2020-09-27T11:06:59.000Z
/* Copyright 2017 NVIDIA Corporation * * The U.S. Department of Energy funded the development of this software * under subcontract B609478 with Lawrence Livermore National Security, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
36.915966
85
0.503756
af1130ae08cae69f83aa8589451a7aa94b454f9f
1,347
cpp
C++
src/calc/Checksum.cpp
bander9289/StratifyAPI
9b45091aa71a4e5718047438ea4044c1fdc814a3
[ "MIT" ]
2
2016-05-21T03:09:19.000Z
2016-08-27T03:40:51.000Z
src/calc/Checksum.cpp
bander9289/StratifyAPI
9b45091aa71a4e5718047438ea4044c1fdc814a3
[ "MIT" ]
75
2017-10-08T22:21:19.000Z
2020-03-30T21:13:20.000Z
src/calc/Checksum.cpp
StratifyLabs/StratifyLib
975a5c25a84296fd0dec64fe4dc579cf7027abe6
[ "MIT" ]
5
2018-03-27T16:44:09.000Z
2020-07-08T16:45:55.000Z
/*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights. #include <cstdio> #include "calc/Checksum.hpp" using namespace calc; u8 Checksum::calc_zero_sum(const u8 * data, int size){ int i; u8 sum = 0; int count = size/sizeof(u8) - 1; for(i=0; i < count; i++){ sum += da...
20.104478
100
0.644395
af11adfc5ebd185ea6fb7dfa00beeff452fdfca1
1,597
cpp
C++
SharedUtility/DataReader/BaseLibsvmReader.cpp
ELFairyhyuk/ova-gpu-svm
78610da3d0ae4c1fb60b629d1ed3fd824f878234
[ "Apache-1.1" ]
null
null
null
SharedUtility/DataReader/BaseLibsvmReader.cpp
ELFairyhyuk/ova-gpu-svm
78610da3d0ae4c1fb60b629d1ed3fd824f878234
[ "Apache-1.1" ]
null
null
null
SharedUtility/DataReader/BaseLibsvmReader.cpp
ELFairyhyuk/ova-gpu-svm
78610da3d0ae4c1fb60b629d1ed3fd824f878234
[ "Apache-1.1" ]
null
null
null
/* * BaseLibsvmReader.cpp * * Created on: 6 May 2016 * Author: Zeyi Wen * @brief: definition of some basic functions for reading data in libsvm format */ #include <iostream> #include <assert.h> #include <sstream> #include <stdio.h> #include "BaseLibsvmReader.h" using std::istringstream; /** * @brief: g...
21.581081
127
0.66938
af18b4f76e16b8e93b0df54d2a950c84afa2c2b4
94,520
cpp
C++
player_mp.cpp
darkoppressor/huberts-island-adventure-mouse-o-war
9ff8d9e2c2b388bf762a0e463238794fb0233df8
[ "MIT" ]
null
null
null
player_mp.cpp
darkoppressor/huberts-island-adventure-mouse-o-war
9ff8d9e2c2b388bf762a0e463238794fb0233df8
[ "MIT" ]
null
null
null
player_mp.cpp
darkoppressor/huberts-island-adventure-mouse-o-war
9ff8d9e2c2b388bf762a0e463238794fb0233df8
[ "MIT" ]
null
null
null
/* Copyright (c) 2012-2013 Cheese and Bacon Games, LLC */ /* See the file docs/COPYING.txt for copying permission. */ #include "player_mp.h" #include "enumerations.h" #include "shot_data.h" #include "world.h" #include "counters.h" #include "collision.h" #include "score.h" #include "mirror.h" #include "render.h" #inclu...
40.811744
243
0.513764
af19a928b1a8c576a437ad0ca9799287405ae88d
445
cpp
C++
src/collection/CollectionInterface.cpp
christian-esken/mediawarp
0c0d2423175774421c4b78b36693e29f6146af6b
[ "Apache-2.0" ]
null
null
null
src/collection/CollectionInterface.cpp
christian-esken/mediawarp
0c0d2423175774421c4b78b36693e29f6146af6b
[ "Apache-2.0" ]
null
null
null
src/collection/CollectionInterface.cpp
christian-esken/mediawarp
0c0d2423175774421c4b78b36693e29f6146af6b
[ "Apache-2.0" ]
null
null
null
/* * CollectionInterface.cpp * * Created on: 13.01.2015 * Author: chris */ #include "CollectionInterface.h" #include <exception> CollectionInterface::CollectionInterface(int collectionId) : collectionId(collectionId) { } CollectionInterface::~CollectionInterface() { } std::vector<shared_ptr<MediaItem> ...
17.8
90
0.74382
af2196db2443b3566ae1eb91d8c17b7d3c5769ae
4,719
cpp
C++
src/socketinputstream.cpp
MacroGu/log4cxx_gcc_4_8
c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e
[ "Apache-2.0" ]
1
2016-10-06T20:09:32.000Z
2016-10-06T20:09:32.000Z
src/socketinputstream.cpp
MacroGu/log4cxx_gcc_4_8
c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e
[ "Apache-2.0" ]
null
null
null
src/socketinputstream.cpp
MacroGu/log4cxx_gcc_4_8
c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2003,2004 The Apache Software Foundation. * * 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...
26.071823
81
0.665395
af255f912b93241b53f81655757ed8fd380199cf
8,298
cc
C++
src/distribution/PairOfDistributions.cc
NOAA-EMC/ioda
366ce1aa4572dde7f3f15862a2970f3dd3c82369
[ "Apache-2.0" ]
1
2021-06-09T16:11:50.000Z
2021-06-09T16:11:50.000Z
src/distribution/PairOfDistributions.cc
NOAA-EMC/ioda
366ce1aa4572dde7f3f15862a2970f3dd3c82369
[ "Apache-2.0" ]
null
null
null
src/distribution/PairOfDistributions.cc
NOAA-EMC/ioda
366ce1aa4572dde7f3f15862a2970f3dd3c82369
[ "Apache-2.0" ]
3
2021-06-09T16:12:02.000Z
2021-11-14T09:19:25.000Z
/* * (C) Crown copyright 2021, Met Office * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #include "ioda/distribution/PairOfDistributions.h" #include <boost/make_unique.hpp> #include "oops/util/DateTime.h" ...
30.847584
92
0.641962
af2ae618822789d926e55512bd0cbb68f9dc399a
25,648
cpp
C++
Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
231
2018-01-28T00:06:56.000Z
2022-03-31T21:39:56.000Z
Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
9
2016-02-10T10:46:16.000Z
2017-12-06T17:27:51.000Z
Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp
domydev/Dark-Basic-Pro
237fd8d859782cb27b9d5994f3c34bc5372b6c04
[ "MIT" ]
66
2018-01-28T21:54:52.000Z
2022-02-16T22:50:57.000Z
// include definition #define _CRT_SECURE_NO_DEPRECATE #include "cnetwork.h" // Defines for this code #define SAFE_RELEASE( p ) { if ( p ) { ( p )->Release ( ); ( p ) = NULL; } } #define SAFE_DELETE_ARRAY( p ) { if ( p ) { delete [ ] ( p ); ( p ) = NULL; } } // GUID Value GUID DPCREATE_GUID = { 0x7d2f0893, 0xb...
25.828802
167
0.641181
af2b2eab5bf69267a5a5b88c20040e6a4c5ef77e
675
cpp
C++
UVa 1363 - Joseph's Problem/sample/1363 - Joseph's Problem.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 1363 - Joseph's Problem/sample/1363 - Joseph's Problem.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 1363 - Joseph's Problem/sample/1363 - Joseph's Problem.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
#include <stdio.h> int main() { long long n, k; while(scanf("%lld %lld", &n, &k) == 2) { long long l = 1, r, div; long long ret = 0; while(l <= k) { div = k/l; r = k/div; // d = div if(r > n) r = n; long long a0 = k%l, d = -d...
21.774194
53
0.374815
af3019e4478edc645d728c9c5f62f8061f4d6a8d
18,321
cpp
C++
project/src/main.cpp
celine98/computer-animation
f5ebdea802888ea9efcf8bffa111a9548e95c568
[ "MIT" ]
null
null
null
project/src/main.cpp
celine98/computer-animation
f5ebdea802888ea9efcf8bffa111a9548e95c568
[ "MIT" ]
null
null
null
project/src/main.cpp
celine98/computer-animation
f5ebdea802888ea9efcf8bffa111a9548e95c568
[ "MIT" ]
null
null
null
/** Objectives: - Complete rigid transform interpolation in the function evaluate_local function in file skeleton.cpp - Complete the Linear Blend Skinning computation in the function skinning.cpp */ #include "vcl/vcl.hpp" #include <iostream> #include "forest.hpp" using namespace vcl; //for patronus and spell ...
25.987234
158
0.727253
af30f8bb5bc055f1be18c4b6dd569f56c27a7f0c
184
cpp
C++
old_src/example_server/main.cpp
InsightCenterNoodles/NoodlesPlusPlus
3396e530a5948416fd364cc9ffa3f5bcbb8abc3b
[ "MIT" ]
null
null
null
old_src/example_server/main.cpp
InsightCenterNoodles/NoodlesPlusPlus
3396e530a5948416fd364cc9ffa3f5bcbb8abc3b
[ "MIT" ]
null
null
null
old_src/example_server/main.cpp
InsightCenterNoodles/NoodlesPlusPlus
3396e530a5948416fd364cc9ffa3f5bcbb8abc3b
[ "MIT" ]
null
null
null
#include "plotty.h" #include <QCoreApplication> int main(int argc, char* argv[]) { auto app = QCoreApplication(argc, argv); Plotty plotty(50000); return app.exec(); }
14.153846
44
0.652174
af314665d27de3c965b1cdad16acd9bdcf07c943
959
cpp
C++
tests/cpp/nontype_template_args.201411.cpp
eggs-cpp/sd-6
d7ba0c08acf7c1c817baa1ea53f488d02394858a
[ "BSL-1.0" ]
7
2015-03-03T18:33:02.000Z
2018-08-31T08:26:01.000Z
tests/cpp/nontype_template_args.201411.cpp
eggs-cpp/sd-6
d7ba0c08acf7c1c817baa1ea53f488d02394858a
[ "BSL-1.0" ]
null
null
null
tests/cpp/nontype_template_args.201411.cpp
eggs-cpp/sd-6
d7ba0c08acf7c1c817baa1ea53f488d02394858a
[ "BSL-1.0" ]
null
null
null
// Eggs.SD-6 // // Copyright Agustin K-ballo Berge, Fusion Fenix 2015 // // 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) int x; int arr[10]; void fun() {} struct s { static int sm; } so; template <typename T, T*> ...
21.311111
79
0.698644
af3243cdf44db04240e5caaeeb6c906616f39c47
14,615
cpp
C++
src/intcomp/AbbreviationCodegen.cpp
WebAssembly/decompressor-prototype
44075ebeef75b950fdd9c0cd0b369928ef05a09c
[ "Apache-2.0" ]
11
2016-07-08T20:43:29.000Z
2021-05-09T21:43:34.000Z
src/intcomp/AbbreviationCodegen.cpp
DalavanCloud/decompressor-prototype
44075ebeef75b950fdd9c0cd0b369928ef05a09c
[ "Apache-2.0" ]
62
2016-06-07T15:21:24.000Z
2017-05-18T15:51:04.000Z
src/intcomp/AbbreviationCodegen.cpp
DalavanCloud/decompressor-prototype
44075ebeef75b950fdd9c0cd0b369928ef05a09c
[ "Apache-2.0" ]
5
2016-06-07T15:05:32.000Z
2020-01-06T17:21:43.000Z
// -*- C++ -*- */ // // Copyright 2016 WebAssembly Community Group participants // // 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 // // ...
33.36758
80
0.67376
af32802b9e92115193ac6365f68c26580d39cc78
1,473
cpp
C++
string/simplify_path.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
1
2015-07-15T07:31:42.000Z
2015-07-15T07:31:42.000Z
string/simplify_path.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
null
null
null
string/simplify_path.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <bits/stl_stack.h> using namespace std; /** * Given an absolute path for a file (Unix-style), simplify it. * For example, * path = "/home/", => "/home" * path = "/a/./b/../../c/", => "/c" * Corner Cases: * • Did you consider the case where path = "/../"? In this...
27.277778
102
0.441955