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
5556856e69e58b93e63f1d6ae863a06e8f85eec1
1,160
cc
C++
src/node_linux.cc
cuijinyu/node-mechine-code
edd1a4f58f0baf49e272f85426a4afcc762e7ddc
[ "MIT" ]
11
2018-09-07T07:54:29.000Z
2022-01-26T03:23:10.000Z
src/node_linux.cc
cuijinyu/node-mechine-code
edd1a4f58f0baf49e272f85426a4afcc762e7ddc
[ "MIT" ]
null
null
null
src/node_linux.cc
cuijinyu/node-mechine-code
edd1a4f58f0baf49e272f85426a4afcc762e7ddc
[ "MIT" ]
1
2019-05-25T05:38:46.000Z
2019-05-25T05:38:46.000Z
#include "mechine_linux.cc" #include<node.h> #include<iostream> namespace demo { using std::cout; using std::endl; using v8::FunctionCallbackInfo; using v8::Isolate; using v8::Local; using v8::Object; using v8::String; using v8::Value; using v8::Exception; void Method(const FunctionCallbackInfo<Value>& args)...
32.222222
97
0.693966
555e005b05ac3829addccd594298ddd68e224ec4
14,462
cpp
C++
renderdoc/driver/gl/gl_replay_win32.cpp
yangzhengxing/renderdoc
214450227ea96df0b2b079632b1f20e23a3fd8fe
[ "MIT" ]
null
null
null
renderdoc/driver/gl/gl_replay_win32.cpp
yangzhengxing/renderdoc
214450227ea96df0b2b079632b1f20e23a3fd8fe
[ "MIT" ]
null
null
null
renderdoc/driver/gl/gl_replay_win32.cpp
yangzhengxing/renderdoc
214450227ea96df0b2b079632b1f20e23a3fd8fe
[ "MIT" ]
null
null
null
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2017 Baldur Karlsson * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...
27.704981
102
0.679021
555eb04b23df36f8bbe34884d1adb71ad6759a83
2,712
cpp
C++
src/camera/CameraParams.cpp
huskyroboticsteam/PY2020
cd6368d85866204dbdca6aefacac69059e780aa2
[ "Apache-2.0" ]
11
2019-10-03T01:17:16.000Z
2020-10-25T02:38:32.000Z
src/camera/CameraParams.cpp
huskyroboticsteam/PY2020
cd6368d85866204dbdca6aefacac69059e780aa2
[ "Apache-2.0" ]
53
2019-10-03T02:11:04.000Z
2021-06-05T03:11:55.000Z
src/camera/CameraParams.cpp
huskyroboticsteam/Resurgence
649f78103b6d76709fdf55bb38d08c0ff50da140
[ "Apache-2.0" ]
3
2019-09-20T04:09:29.000Z
2020-08-18T22:25:20.000Z
#include "CameraParams.h" #include <opencv2/core.hpp> namespace cam { ////////////// CONSTRUCTORS ////////////// CameraParams::CameraParams() { } void CameraParams::init(const cv::Mat& camera_matrix, const cv::Mat& dist_coeff, cv::Size image_size) { if (camera_matrix.size() != cv::Size(3, 3)) { throw std:...
26.851485
94
0.696165
5561aca0f75c7279a4e60441e8f0e6ae404732fd
9,253
cpp
C++
src/heuristics/rcHeuristics/RCModelFactory.cpp
Songtuan-Lin/pandaPIengine
be019b16fec6f679fa3db31b97ccbe9491769d65
[ "BSD-3-Clause" ]
5
2021-04-06T22:06:47.000Z
2021-07-20T14:56:13.000Z
src/heuristics/rcHeuristics/RCModelFactory.cpp
Songtuan-Lin/pandaPIengine
be019b16fec6f679fa3db31b97ccbe9491769d65
[ "BSD-3-Clause" ]
2
2021-04-07T12:17:39.000Z
2021-09-03T10:30:26.000Z
src/heuristics/rcHeuristics/RCModelFactory.cpp
Songtuan-Lin/pandaPIengine
be019b16fec6f679fa3db31b97ccbe9491769d65
[ "BSD-3-Clause" ]
6
2021-06-16T13:41:06.000Z
2022-03-30T07:13:18.000Z
/* * RCModelFactory.cpp * * Created on: 09.02.2020 * Author: dh */ #include "RCModelFactory.h" namespace progression { RCModelFactory::RCModelFactory(Model* htn) { this->htn = htn; } RCModelFactory::~RCModelFactory() { // TODO Auto-generated destructor stub } Model* RCModelFactory::getRCmodelSTRIPS() ...
28.915625
93
0.584675
5563e17227c0e9ac9e3f36e11978115c10de87cf
3,764
cpp
C++
src/vismethods/boxplot.cpp
jakobtroidl/Barrio
55c447325f2e83a21b39c54cdca37b2779d0569c
[ "MIT" ]
null
null
null
src/vismethods/boxplot.cpp
jakobtroidl/Barrio
55c447325f2e83a21b39c54cdca37b2779d0569c
[ "MIT" ]
3
2021-11-02T22:24:04.000Z
2021-11-29T18:01:51.000Z
src/vismethods/boxplot.cpp
jakobtroidl/Barrio
55c447325f2e83a21b39c54cdca37b2779d0569c
[ "MIT" ]
null
null
null
#include "boxplot.h" Boxplot::Boxplot(Boxplot* boxplot) { m_datacontainer = boxplot->m_datacontainer; m_global_vis_parameters = boxplot->m_global_vis_parameters; } Boxplot::Boxplot(GlobalVisParameters* visparams, DataContainer* datacontainer) { m_global_vis_parameters = visparams; m_datacontainer = datacontainer;...
24.283871
135
0.772848
5568cae4112ad35a5722916126cef4f92baa52be
5,227
hpp
C++
libmikroxml/mikroxml/mikroxml.hpp
rantingmong/svgrenderer
082879b448a2c241f69e383620b59e307298bb77
[ "MIT" ]
1
2021-03-29T19:30:47.000Z
2021-03-29T19:30:47.000Z
libmikroxml/mikroxml/mikroxml.hpp
rantingmong/svgrenderer
082879b448a2c241f69e383620b59e307298bb77
[ "MIT" ]
null
null
null
libmikroxml/mikroxml/mikroxml.hpp
rantingmong/svgrenderer
082879b448a2c241f69e383620b59e307298bb77
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <utki/Buf.hpp> #include <utki/Exc.hpp> namespace mikroxml{ class Parser{ enum class State_e{ IDLE, TAG, TAG_SEEK_GT, TAG_EMPTY, DECLARATION, DECLARATION_END, COMMENT, COMMENT_END, ATTRIBUTES, ATTRIBUTE_NAME, ATTRIBUTE_SEEK_TO_EQUALS, ATTRIBUTE_SEEK_TO_...
35.080537
132
0.726229
556b6070e185d3ad180455bf7f53800ef7ee2f7e
165
cpp
C++
319-bulb-switcher/319-bulb-switcher.cpp
shreydevep/DSA
688af414c1fada1b82a4b4e9506747352007c894
[ "MIT" ]
null
null
null
319-bulb-switcher/319-bulb-switcher.cpp
shreydevep/DSA
688af414c1fada1b82a4b4e9506747352007c894
[ "MIT" ]
null
null
null
319-bulb-switcher/319-bulb-switcher.cpp
shreydevep/DSA
688af414c1fada1b82a4b4e9506747352007c894
[ "MIT" ]
null
null
null
class Solution { public: int bulbSwitch(int n) { int cnt = 0; for(int i=1;i*i<=n;++i){ cnt++; } return cnt; } };
15
31
0.406061
556cc6b2535fd02c5d18fa71c1b6111a7f3fc091
6,003
cc
C++
webkit/fileapi/media/picasa/pmp_column_reader_unittest.cc
codenote/chromium-test
0637af0080f7e80bf7d20b29ce94c5edc817f390
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
webkit/fileapi/media/picasa/pmp_column_reader_unittest.cc
codenote/chromium-test
0637af0080f7e80bf7d20b29ce94c5edc817f390
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
webkit/fileapi/media/picasa/pmp_column_reader_unittest.cc
codenote/chromium-test
0637af0080f7e80bf7d20b29ce94c5edc817f390
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:25:45.000Z
2020-11-04T07:25:45.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 <algorithm> #include <vector> #include "base/file_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/media/picasa/p...
33.35
80
0.746294
5571b7ca836a9d01adde6967d32f705483a08ef8
5,851
cpp
C++
tests/unit_tests/libKitsunemimiCommon/statemachine_test.cpp
kitsudaiki/libKitsunemimiCommon
65c60deddf9fb813035fc2f3251c5ae5c8f7423f
[ "MIT" ]
null
null
null
tests/unit_tests/libKitsunemimiCommon/statemachine_test.cpp
kitsudaiki/libKitsunemimiCommon
65c60deddf9fb813035fc2f3251c5ae5c8f7423f
[ "MIT" ]
49
2020-08-24T18:09:35.000Z
2022-02-13T22:19:39.000Z
tests/unit_tests/libKitsunemimiCommon/statemachine_test.cpp
tobiasanker/libKitsunemimiCommon
d40d1314db0a6d7e04afded09cb4934e01828ac4
[ "MIT" ]
1
2020-08-29T14:30:41.000Z
2020-08-29T14:30:41.000Z
/** * @file statemachine_test.cpp * * @author Tobias Anker <tobias.anker@kitsunemimi.moe> * * @copyright MIT License */ #include "statemachine_test.h" #include <libKitsunemimiCommon/statemachine.h> namespace Kitsunemimi { Statemachine_Test::Statemachine_Test() : Kitsunemimi::CompareTestHelper("Stat...
26.595455
82
0.766194
5574c5de3bab02af2bbfed26f5cfe2ba8ae4a69e
5,927
cpp
C++
globe/globe_shader.cpp
MarkY-LunarG/LunarGlobe
d32a6145eebc68ad4d7e28bdd4fab88cbdd33545
[ "Apache-2.0" ]
2
2018-06-20T15:19:38.000Z
2018-07-13T15:13:30.000Z
globe/globe_shader.cpp
MarkY-LunarG/LunarGlobe
d32a6145eebc68ad4d7e28bdd4fab88cbdd33545
[ "Apache-2.0" ]
25
2018-07-27T23:02:01.000Z
2019-03-15T17:00:05.000Z
globe/globe_shader.cpp
MarkY-LunarG/LunarGravity
d32a6145eebc68ad4d7e28bdd4fab88cbdd33545
[ "Apache-2.0" ]
null
null
null
// // Project: LunarGlobe // SPDX-License-Identifier: Apache-2.0 // // File: globe/globe_shader.cpp // Copyright(C): 2018-2019; LunarG, Inc. // Author(s): Mark Young <marky@lunarg.com> // #include <cstring> #include <fstream> #include <string> #include <sstre...
40.047297
112
0.62578
55769a005a140f772cd2ea9a01a12416aa6e3b4f
15,261
cpp
C++
software/imageread/xi_input_image.cpp
yhyoung/CHaiDNN
1877a81e0d1b44773af455b0eab4399636bbc181
[ "Apache-2.0" ]
288
2018-03-23T01:41:40.000Z
2022-03-03T08:52:54.000Z
software/imageread/xi_input_image.cpp
yhyoung/CHaiDNN
1877a81e0d1b44773af455b0eab4399636bbc181
[ "Apache-2.0" ]
171
2018-03-25T11:03:23.000Z
2022-01-29T14:16:59.000Z
software/imageread/xi_input_image.cpp
yhyoung/CHaiDNN
1877a81e0d1b44773af455b0eab4399636bbc181
[ "Apache-2.0" ]
154
2018-03-23T01:31:33.000Z
2022-03-04T14:26:40.000Z
/*---------------------------------------------------- Copyright 2017 Xilinx, 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 app...
22.085384
180
0.636393
557844a4a767c4a1fe9f3add0d55c0b5b9079a2f
3,571
hh
C++
include/sot/tools/kinematic-planner.hh
Rascof/sot-tools
e529611574d12fc2239bd0cfcd83749243de8bc6
[ "BSD-2-Clause" ]
null
null
null
include/sot/tools/kinematic-planner.hh
Rascof/sot-tools
e529611574d12fc2239bd0cfcd83749243de8bc6
[ "BSD-2-Clause" ]
11
2017-02-01T19:26:29.000Z
2021-11-03T08:25:35.000Z
include/sot/tools/kinematic-planner.hh
Rascof/sot-tools
e529611574d12fc2239bd0cfcd83749243de8bc6
[ "BSD-2-Clause" ]
12
2015-01-21T08:21:23.000Z
2020-11-27T14:35:29.000Z
// // Copyright (C) 2016 LAAS-CNRS // // Author: Rohan Budhiraja // #ifndef SOT_TOOLS_KINEMATIC_PLANNER_HH #define SOT_TOOLS_KINEMATIC_PLANNER_HH /* STD */ #include <string> #include <sstream> #include <list> #include <complex> /* dynamic-graph */ #include <dynamic-graph/entity.h> #include <dynamic-graph/factory.h> ...
30.262712
113
0.738169
5578bfbd80af35e8b15a9510717a5a0cce4ba4cf
101
cc
C++
example/memcache/Item.cc
Conzxy/kanon
3440b0966153a0b8469e90b2a52df317aa4fe723
[ "MIT" ]
null
null
null
example/memcache/Item.cc
Conzxy/kanon
3440b0966153a0b8469e90b2a52df317aa4fe723
[ "MIT" ]
null
null
null
example/memcache/Item.cc
Conzxy/kanon
3440b0966153a0b8469e90b2a52df317aa4fe723
[ "MIT" ]
null
null
null
#include "Item.h" namespace memcache { std::atomic<u64> Item::s_cas_(0); } // namespace memcache
12.625
34
0.683168
5579482f0ec6190139c6f85f8691a06d2de5ff42
863
hpp
C++
plugins/opengl/include/sge/opengl/xrandr/set_resolution.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
plugins/opengl/include/sge/opengl/xrandr/set_resolution.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
plugins/opengl/include/sge/opengl/xrandr/set_resolution.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // 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 SGE_OPENGL_XRANDR_SET_RESOLUTION_HPP_INCLUDED #define SGE_OPENGL_XRANDR_SET_RESOLUTION_HPP_...
30.821429
61
0.74971
557a792be377471c08aeae8d211267379bea0f15
3,257
hpp
C++
tuo_units/TUO_Reg_Units_OPF_F.hpp
bc036/A3-TUO-Units
157f4f45317a19cf90d3f28b017b43de737f5bb3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
tuo_units/TUO_Reg_Units_OPF_F.hpp
bc036/A3-TUO-Units
157f4f45317a19cf90d3f28b017b43de737f5bb3
[ "Naumen", "Condor-1.1", "MS-PL" ]
44
2019-09-24T17:11:29.000Z
2021-08-14T18:37:15.000Z
tuo_units/TUO_Reg_Units_OPF_F.hpp
bc036/A3-TUO-Units
157f4f45317a19cf90d3f28b017b43de737f5bb3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
class O_T_TUO_Reg_Base_F:B_T_TUO_Reg_base_F { side=0; //OPF_F=0 BLU_F=1 IND_F=2 faction="TUO_T_OPF_F"; }; class O_A_TUO_Reg_base_F:B_A_TUO_Reg_base_F { side=0; //OPF_F=0 BLU_F=1 IND_F=2 faction="TUO_A_OPF_F"; }; class O_W_TUO_Reg_Base_F:B_W_TUO_Reg_base_F { side=0; //OPF_F=0 BLU_F=1 IND_F=2 faction="TUO_W_OPF_F";...
21.713333
51
0.760823
557b88c28caf8c1a8e0b49aea2e46c1ae215bf71
1,675
cpp
C++
test/cli/minions_coverage_test.cpp
seqan/minions
58339454f992264b73197f1bf8c94e8f4b1c3c2f
[ "BSD-3-Clause" ]
null
null
null
test/cli/minions_coverage_test.cpp
seqan/minions
58339454f992264b73197f1bf8c94e8f4b1c3c2f
[ "BSD-3-Clause" ]
16
2021-09-29T13:00:06.000Z
2022-03-07T13:34:16.000Z
test/cli/minions_coverage_test.cpp
MitraDarja/Comparison
58339454f992264b73197f1bf8c94e8f4b1c3c2f
[ "BSD-3-Clause" ]
1
2022-01-09T22:36:43.000Z
2022-01-09T22:36:43.000Z
#include "cli_test.hpp" TEST_F(cli_test, no_options) { cli_test_result result = execute_app("minions coverage"); std::string expected { "minions-coverage\n" "================\n" " Try -h or --help for more information.\n" }; EXPECT_EQ(result.exit_code, 0); EXPECT_EQ(r...
31.018519
131
0.665672
5353d7e9a41855906455824ecb59c9d4b6db1312
2,145
cpp
C++
Project3/assign3.cpp
jehalladay/Theory-of-Algorithms
fa35ed1a3c40e45a3b97c93a44e96532b91fb1b5
[ "MIT" ]
null
null
null
Project3/assign3.cpp
jehalladay/Theory-of-Algorithms
fa35ed1a3c40e45a3b97c93a44e96532b91fb1b5
[ "MIT" ]
null
null
null
Project3/assign3.cpp
jehalladay/Theory-of-Algorithms
fa35ed1a3c40e45a3b97c93a44e96532b91fb1b5
[ "MIT" ]
null
null
null
/* Project 3 - Hashtable and Heapsort James Halladay Theory of Algorithms 10/9/2021 This program will render a program that expect a command line argument being an input text file and an output text file name. The program will read the data in the input file (strings) and write ...
26.8125
107
0.634499
5355b6e7c24675c87cabae20b628a3dd5351c293
479
cpp
C++
linux/cmd.cpp
Universefei/f8snippet
408ae26cf666861e3aa0f58fbdd89a93b3fb1a4a
[ "Apache-2.0" ]
null
null
null
linux/cmd.cpp
Universefei/f8snippet
408ae26cf666861e3aa0f58fbdd89a93b3fb1a4a
[ "Apache-2.0" ]
null
null
null
linux/cmd.cpp
Universefei/f8snippet
408ae26cf666861e3aa0f58fbdd89a93b3fb1a4a
[ "Apache-2.0" ]
null
null
null
string exe_cmd(const string& cmd) { int t_ret = 0; string t_result = ""; t_result.resize(1024); FILE* fp = popen(cmd.c_str(), "r"); fgets(&t_result[0], t_result.capacity(), fp); pclose(fp); return t_result; } string get_md5(const string& file) { char buf[128] = {'\0'}; string cmd = "md5sum "; cmd....
21.772727
47
0.605428
535bd9c0458dc7dabf8371038d09169b5407e1f7
456
hpp
C++
net/include/HttpSecWebSocketKey.hpp
wangsun1983/Obotcha
2464e53599305703f5150df72bf73579a39d8ef4
[ "MIT" ]
27
2019-04-27T00:51:22.000Z
2022-03-30T04:05:44.000Z
net/include/HttpSecWebSocketKey.hpp
wangsun1983/Obotcha
2464e53599305703f5150df72bf73579a39d8ef4
[ "MIT" ]
9
2020-05-03T12:17:50.000Z
2021-10-15T02:18:47.000Z
net/include/HttpSecWebSocketKey.hpp
wangsun1983/Obotcha
2464e53599305703f5150df72bf73579a39d8ef4
[ "MIT" ]
1
2019-04-16T01:45:36.000Z
2019-04-16T01:45:36.000Z
#ifndef __OBOTCHA_HTTP_SEC_WEB_SOCKET_KEY_HPP__ #define __OBOTCHA_HTTP_SEC_WEB_SOCKET_KEY_HPP__ #include "Object.hpp" #include "StrongPointer.hpp" #include "String.hpp" #include "ArrayList.hpp" namespace obotcha { DECLARE_CLASS(HttpSecWebSocketKey) { public: _HttpSecWebSocketKey(); _HttpSecWebSocketKey(Str...
14.709677
47
0.739035
53613b5bf2676bb820155d844b791c3e0b582cbd
454
cpp
C++
modulo arithmetic/add_mult_modulo.cpp
SAURABH2000b/Cryptography-and-network-security
850be62ff56f7a6e180809776ace75ac165cb1c0
[ "MIT" ]
null
null
null
modulo arithmetic/add_mult_modulo.cpp
SAURABH2000b/Cryptography-and-network-security
850be62ff56f7a6e180809776ace75ac165cb1c0
[ "MIT" ]
null
null
null
modulo arithmetic/add_mult_modulo.cpp
SAURABH2000b/Cryptography-and-network-security
850be62ff56f7a6e180809776ace75ac165cb1c0
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int add_modulo(int a, int b, int N){ return (a+b)%N; } int mult_modulo(int a, int b, int N){ return (a*b)%N; } int main(){ int a=rand(), b=rand(); a=a%1000; b=b%1000; int add_modulo_result = add_modulo(a,b,342); int mult_modulo_result = mult_modul...
25.222222
59
0.636564
53660adb81cba86ca028a0122741d62a476cbbb9
1,342
cpp
C++
C++/HeapSort.cpp
patres270/AlgoLib
8b697e1e9348c559dcabdb6665e1031264c1032a
[ "MIT" ]
222
2016-07-17T17:28:19.000Z
2022-03-27T02:57:39.000Z
C++/HeapSort.cpp
patres270/AlgoLib
8b697e1e9348c559dcabdb6665e1031264c1032a
[ "MIT" ]
197
2016-10-24T16:47:42.000Z
2021-08-29T08:12:31.000Z
C++/HeapSort.cpp
patres270/AlgoLib
8b697e1e9348c559dcabdb6665e1031264c1032a
[ "MIT" ]
206
2016-05-18T17:08:14.000Z
2022-01-16T04:08:47.000Z
#include<bits/stdc++.h> using namespace std; #define rep(i,a,b,c) for(i=a;i<b;i+=c) #define repp(i,a,b,c) for(i=a;i>b;i+=c) //--------------------------------------Heapify void max_heapify(int *a, int i, int n) { int l=2*i+1; int r=2*i+2; int largest=0; if(l<=n and a[l]>a[i]) largest=l; ...
19.449275
49
0.467213
5368e5f9756762633f750c5c0ff8ef6f9882060e
1,151
cpp
C++
c++/zigzag_conversion.cpp
SongZhao/leetcode
4a2b4f554e91f6a2167b336f8a69b80fa9f3f920
[ "Apache-2.0" ]
null
null
null
c++/zigzag_conversion.cpp
SongZhao/leetcode
4a2b4f554e91f6a2167b336f8a69b80fa9f3f920
[ "Apache-2.0" ]
null
null
null
c++/zigzag_conversion.cpp
SongZhao/leetcode
4a2b4f554e91f6a2167b336f8a69b80fa9f3f920
[ "Apache-2.0" ]
null
null
null
/* The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string and make this conver...
20.192982
120
0.529105
536b253989e4c9c91ccb838702940a731c4b1c28
4,577
hpp
C++
include/foonathan/lex/token.hpp
foonathan/lex
2d0177d453f8c36afc78392065248de0b48c1e7d
[ "BSL-1.0" ]
142
2018-10-16T16:41:09.000Z
2021-12-13T20:04:50.000Z
include/foonathan/lex/token.hpp
foonathan/lex
2d0177d453f8c36afc78392065248de0b48c1e7d
[ "BSL-1.0" ]
null
null
null
include/foonathan/lex/token.hpp
foonathan/lex
2d0177d453f8c36afc78392065248de0b48c1e7d
[ "BSL-1.0" ]
10
2018-10-16T19:08:36.000Z
2021-03-19T14:36:29.000Z
// Copyright (C) 2018-2019 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #ifndef FOONATHAN_LEX_TOKEN_HPP_INCLUDED #define FOONATHAN_LEX_TOKEN_HPP_INCLUDED #include <foonathan/lex/spelling.hpp> ...
26.923529
100
0.59078
5378c2f15156a210d5184f7c0bf57ad0c60a2e74
195
hpp
C++
include/elasty/algorithm-type.hpp
yuki-koyama/elasty
67c7a15c1483fe1979b8b3af64be4f34e110c760
[ "MIT" ]
176
2019-04-27T00:45:37.000Z
2022-03-26T03:15:45.000Z
include/elasty/algorithm-type.hpp
yuki-koyama/elasty
67c7a15c1483fe1979b8b3af64be4f34e110c760
[ "MIT" ]
28
2019-04-27T00:00:49.000Z
2021-08-30T07:01:12.000Z
include/elasty/algorithm-type.hpp
yuki-koyama/elasty
67c7a15c1483fe1979b8b3af64be4f34e110c760
[ "MIT" ]
15
2019-04-27T01:09:58.000Z
2022-02-09T13:30:41.000Z
#ifndef ELASTY_ALGORITHM_TYPE_HPP #define ELASTY_ALGORITHM_TYPE_HPP namespace elasty { enum class AlgorithmType { Pbd, Xpbd }; } #endif // ELASTY_ALGORITHM_TYPE_HPP
13.928571
35
0.697436
537be64c75a2acd632f61bb9e80b6d443b077e80
2,219
cpp
C++
Filesystem/Problem36/main.cpp
vegemil/ModernCppChallengeStudy
52c2bb22c76ae3f3a883ae479cd70ac27513e78d
[ "MIT" ]
null
null
null
Filesystem/Problem36/main.cpp
vegemil/ModernCppChallengeStudy
52c2bb22c76ae3f3a883ae479cd70ac27513e78d
[ "MIT" ]
null
null
null
Filesystem/Problem36/main.cpp
vegemil/ModernCppChallengeStudy
52c2bb22c76ae3f3a883ae479cd70ac27513e78d
[ "MIT" ]
null
null
null
// 36. Deleting files older than a given date // Write a function that, given the path to a directory and a duration, deletes all // the entries (files or subdirectories) older than the specified duration, in a // recursive manner. The duration can represent anything, such as days, hours, // minutes, seconds, and so o...
28.448718
86
0.679585
537cb69b0923b19595b35018463da84a46573bfc
472
cpp
C++
Engine/Source/Misc/Singleton.cpp
wdrDarx/DEngine3
27e2de3b56b6d4c8705e8a0e36f5911d8651caa2
[ "MIT" ]
2
2022-01-11T21:15:31.000Z
2022-02-22T21:14:33.000Z
Engine/Source/Misc/Singleton.cpp
wdrDarx/DEngine3
27e2de3b56b6d4c8705e8a0e36f5911d8651caa2
[ "MIT" ]
null
null
null
Engine/Source/Misc/Singleton.cpp
wdrDarx/DEngine3
27e2de3b56b6d4c8705e8a0e36f5911d8651caa2
[ "MIT" ]
null
null
null
#include "Singleton.h" void SingletonCache::Store(const std::type_index& type, void* ptr) { //return; //using auto registers breaks this whole thing m_PointerCache[type] = ptr; } void* SingletonCache::Find(const std::type_index& type) { if(m_PointerCache.empty()) return nullptr; for (auto& pair : m_PointerCache)...
20.521739
74
0.724576
537e955672b76efb287ccd96dea5e70143e09d32
3,574
hpp
C++
chapter20/uncommentedString.hpp
not-sponsored/Sams-Cpp-in-24hrs-Exercises
2e63e2ca31f5309cc1d593f29c8b47037be150fb
[ "Fair" ]
2
2022-01-08T03:31:25.000Z
2022-03-09T01:21:54.000Z
chapter20/uncommentedString.hpp
not-sponsored/Sams-Cpp-in-24hrs-Exercises
2e63e2ca31f5309cc1d593f29c8b47037be150fb
[ "Fair" ]
null
null
null
chapter20/uncommentedString.hpp
not-sponsored/Sams-Cpp-in-24hrs-Exercises
2e63e2ca31f5309cc1d593f29c8b47037be150fb
[ "Fair" ]
1
2022-03-09T01:26:01.000Z
2022-03-09T01:26:01.000Z
/********************************************************* * * Part of the answer to exercise 1 in chapter 20 * * Modified 20.3 from Sams Teach Yourself C++ in 24 Hours by Rogers Cadenhead * and Jesse Liberty * * Compiled with g++ (GCC) 11.1.0 * *********************************************************/ #include <io...
21.023529
77
0.618355
538125a28def421e2038c7a531a082af2d91a2a8
4,127
cpp
C++
private/shell/cpls/srvwiz/dllreg.cpp
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
11
2017-09-02T11:27:08.000Z
2022-01-02T15:25:24.000Z
private/shell/cpls/srvwiz/dllreg.cpp
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
null
null
null
private/shell/cpls/srvwiz/dllreg.cpp
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
14
2019-01-16T01:01:23.000Z
2022-02-20T15:54:27.000Z
// dllreg.cpp -- autmatic registration and unregistration // #include "priv.h" #include <advpub.h> #include <comcat.h> // helper macros // ADVPACK will return E_UNEXPECTED if you try to uninstall (which does a registry restore) // on an INF section that was never installed. We uninstall sections that ma...
25.012121
92
0.580082
53830346afd4c02fa7869d8037de73ed1ec97ef6
11,459
cpp
C++
Plugins/SimpleMaterialUI/Source/SimpleMaterialUIEditor/Private/SmMarginCustomization.cpp
dfyzy/StealthTest
ff48d800ef073abd559048d81df7efd014c91cb7
[ "MIT" ]
null
null
null
Plugins/SimpleMaterialUI/Source/SimpleMaterialUIEditor/Private/SmMarginCustomization.cpp
dfyzy/StealthTest
ff48d800ef073abd559048d81df7efd014c91cb7
[ "MIT" ]
null
null
null
Plugins/SimpleMaterialUI/Source/SimpleMaterialUIEditor/Private/SmMarginCustomization.cpp
dfyzy/StealthTest
ff48d800ef073abd559048d81df7efd014c91cb7
[ "MIT" ]
null
null
null
#include "SmMarginCustomization.h" #include "PropertyHandle.h" #include "DetailLayoutBuilder.h" #include "Widgets/Input/SNumericEntryBox.h" #include "Editor.h" bool FSmMarginIdentifier::IsPropertyTypeCustomized(const IPropertyHandle& PropertyHandle) const { return PropertyHandle.IsValidHandle() && PropertyHandle.Get...
38.844068
174
0.761498
5384176a24be9a050c35188a1a18a9ebb667084b
9,232
cpp
C++
betteryao/OTExtension/util/Miracl/zzn3.cpp
bt3ze/pcflib
c66cdc5957818cd5b3754430046cad91ce1a921d
[ "BSD-2-Clause" ]
null
null
null
betteryao/OTExtension/util/Miracl/zzn3.cpp
bt3ze/pcflib
c66cdc5957818cd5b3754430046cad91ce1a921d
[ "BSD-2-Clause" ]
null
null
null
betteryao/OTExtension/util/Miracl/zzn3.cpp
bt3ze/pcflib
c66cdc5957818cd5b3754430046cad91ce1a921d
[ "BSD-2-Clause" ]
null
null
null
/*************************************************************************** * Copyright 2013 CertiVox IOM Ltd. * * This file i...
23.313131
93
0.476603
5388a234101dcf52c200eecd8a41f23fcd7d8291
843
cpp
C++
ThreeCharacters/CPP/main.cpp
hecate-xw/Miscellaneous
57c5ade630f1f1af2a5aae7f2541638380fc4876
[ "MIT" ]
null
null
null
ThreeCharacters/CPP/main.cpp
hecate-xw/Miscellaneous
57c5ade630f1f1af2a5aae7f2541638380fc4876
[ "MIT" ]
null
null
null
ThreeCharacters/CPP/main.cpp
hecate-xw/Miscellaneous
57c5ade630f1f1af2a5aae7f2541638380fc4876
[ "MIT" ]
1
2020-02-13T00:48:17.000Z
2020-02-13T00:48:17.000Z
#include <iostream> #include "PowMatrix.h" using namespace std; int main() { int n; cin >> n; /* // Method 1 int dp[n][2]; dp[0][0] = 3; dp[0][1] = 0; for(int i = 1; i < n; i++) { dp[i][0] = dp[i-1][0]*2 + dp[i-1][1]*2; dp[i][1] = dp[i-1][0]; } int sum = dp[n-1][0] +...
15.327273
47
0.465006
538a0884ca5e025ad80b5788b0faa5f47e118860
10,353
cpp
C++
Tools/GHGUITool/GHGUITool/GTGUINavigator.cpp
GoldenHammerSoftware/GH
757213f479c0fc80ed1a0f59972bf3e9d92b7526
[ "MIT" ]
null
null
null
Tools/GHGUITool/GHGUITool/GTGUINavigator.cpp
GoldenHammerSoftware/GH
757213f479c0fc80ed1a0f59972bf3e9d92b7526
[ "MIT" ]
null
null
null
Tools/GHGUITool/GHGUITool/GTGUINavigator.cpp
GoldenHammerSoftware/GH
757213f479c0fc80ed1a0f59972bf3e9d92b7526
[ "MIT" ]
null
null
null
// Copyright 2010 Golden Hammer Software #include "GTGUINavigator.h" #include "GTIdentifiers.h" #include "GHUtils/GHEventMgr.h" #include "GHUtils/GHMessage.h" #include "GHGUIMgr.h" #include "GHUtils/GHResourceFactory.h" #include "GHXMLObjFactory.h" #include "GHGUIPanel.h" #include "GHXMLNode.h" #include "GHGUIWidgetRen...
30.8125
120
0.729354
538caf7ead7dbf6749f84be2863944b174f89479
8,738
cc
C++
be/src/runtime/row-batch.cc
wangxnhit/impala
d7a37f00a515d6942ca28bd8cd84380bc8c93c5a
[ "Apache-2.0" ]
1
2016-06-08T06:22:28.000Z
2016-06-08T06:22:28.000Z
be/src/runtime/row-batch.cc
boorad/impala
108c5d8d39c45d49edfca98cd2d858352cd44d51
[ "Apache-2.0" ]
null
null
null
be/src/runtime/row-batch.cc
boorad/impala
108c5d8d39c45d49edfca98cd2d858352cd44d51
[ "Apache-2.0" ]
null
null
null
// Copyright 2012 Cloudera Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
39.718182
90
0.690776
538f7a95ec0fc797cd6c48bc656ddfa4e735e33c
2,837
hh
C++
deps/live555/include/MPEG2TransportStreamFramer.hh
robort-yuan/AI-EXPRESS
56f86d03afbb09f42c21958c8cd9f2f1c6437f48
[ "BSD-2-Clause" ]
98
2020-09-11T13:52:44.000Z
2022-03-23T11:52:02.000Z
deps/live555/include/MPEG2TransportStreamFramer.hh
robort-yuan/AI-EXPRESS
56f86d03afbb09f42c21958c8cd9f2f1c6437f48
[ "BSD-2-Clause" ]
8
2020-10-19T14:23:30.000Z
2022-03-16T01:00:07.000Z
deps/live555/include/MPEG2TransportStreamFramer.hh
robort-yuan/AI-EXPRESS
56f86d03afbb09f42c21958c8cd9f2f1c6437f48
[ "BSD-2-Clause" ]
28
2020-09-17T14:20:35.000Z
2022-01-10T16:26:00.000Z
/********** This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This ...
35.911392
90
0.767712
53901f30edf43af56736ef423811ad9ee2e3fdb5
2,728
cpp
C++
uppdev/MyDbase/dbRecordSet.cpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
2
2016-04-07T07:54:26.000Z
2020-04-14T12:37:34.000Z
uppdev/MyDbase/dbRecordSet.cpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
null
null
null
uppdev/MyDbase/dbRecordSet.cpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
null
null
null
#include "dbase.h" dbRecordSet::dbRecordSet() { ptr = 0; } void dbRecordSet::Reset() { recordSet.Clear(); ptr = 0; } void dbRecordSet::Add(int record, dbRecord &rec, Array<String> &orderField, Array<unsigned int> &ordStyle) { unsigned int j, n, f, l, p, k; k = orderField.GetCount(); #ifdef _WITH...
22.360656
109
0.595674
5393b719ef0294534bff4c75e8f68335bc127ddb
5,424
cpp
C++
SmallWorld/LibCpp/Graph.cpp
pchaigno/smallworld
8a22099753166b4fea0bf93a1a7298fed51fef8c
[ "MIT" ]
1
2018-11-08T17:20:56.000Z
2018-11-08T17:20:56.000Z
SmallWorld/LibCpp/Graph.cpp
pchaigno/smallworld
8a22099753166b4fea0bf93a1a7298fed51fef8c
[ "MIT" ]
null
null
null
SmallWorld/LibCpp/Graph.cpp
pchaigno/smallworld
8a22099753166b4fea0bf93a1a7298fed51fef8c
[ "MIT" ]
null
null
null
#include "Graph.h" /** * @returns The size of the graph. */ int Graph::size() const { return this->succs.size(); } /** * Checks if an unit can go from one point to all others of the map. * @param map The map. * @param size The size of the map. * @returns True if all squares of the map are accessible from one. ...
25.111111
103
0.599558
5396350bb63761ed2223415e6eb90979556befc4
45,917
cxx
C++
main/sal/qa/osl/socket/osl_Socket2.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sal/qa/osl/socket/osl_Socket2.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sal/qa/osl/socket/osl_Socket2.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
36.616427
264
0.673106
53988aa7ba416ddd19afa84395af5a3fae8bd86d
1,714
cpp
C++
test/quiver/disjoint_set.cpp
Fytch/Quiver
572c59bbc7aaef0e61318d6d0feaf5771b38cfdb
[ "MIT" ]
null
null
null
test/quiver/disjoint_set.cpp
Fytch/Quiver
572c59bbc7aaef0e61318d6d0feaf5771b38cfdb
[ "MIT" ]
1
2018-11-28T12:55:50.000Z
2018-11-28T12:55:50.000Z
test/quiver/disjoint_set.cpp
Fytch/Quiver
572c59bbc7aaef0e61318d6d0feaf5771b38cfdb
[ "MIT" ]
1
2018-08-19T16:48:23.000Z
2018-08-19T16:48:23.000Z
/* * Quiver - A graph theory library * Copyright (C) 2018 Josua Rieder (josua.rieder1996@gmail.com) * Distributed under the MIT License. * See the enclosed file LICENSE.txt for further information. */ #include <catch2/catch.hpp> #include <quiver.hpp> using namespace quiver; TEST_CASE("disjoint_set", "[quiver][fu...
23.805556
63
0.620187
5398b26338a516064b89ca836a8e8e18f2bf5567
2,366
hpp
C++
include/xtr/detail/align.hpp
uilianries/xtr
b1dccc51b024369e6c1a2f6d3fcf5f405735289b
[ "MIT" ]
10
2021-09-25T10:40:55.000Z
2022-03-19T01:05:05.000Z
include/xtr/detail/align.hpp
uilianries/xtr
b1dccc51b024369e6c1a2f6d3fcf5f405735289b
[ "MIT" ]
2
2021-09-24T12:59:08.000Z
2021-09-24T19:17:47.000Z
include/xtr/detail/align.hpp
uilianries/xtr
b1dccc51b024369e6c1a2f6d3fcf5f405735289b
[ "MIT" ]
1
2021-09-24T13:45:29.000Z
2021-09-24T13:45:29.000Z
// Copyright 2014, 2019 Chris E. Holloway // // 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, pu...
40.793103
81
0.707946
539a24d2037b6ea2b2309ec0dd0fdbb5473e839d
1,118
cpp
C++
src/gmp_integer_vector.cpp
dhruvdcoder/poly-metic
c8ec0ba30dd052c6b41a0cdeb58318d063cf9eac
[ "Apache-2.0" ]
1
2021-12-14T16:16:12.000Z
2021-12-14T16:16:12.000Z
src/gmp_integer_vector.cpp
dhruvdcoder/poly-metic
c8ec0ba30dd052c6b41a0cdeb58318d063cf9eac
[ "Apache-2.0" ]
3
2018-09-02T04:38:52.000Z
2018-09-09T20:14:16.000Z
src/gmp_integer_vector.cpp
dhruvdcoder/poly-metic
c8ec0ba30dd052c6b41a0cdeb58318d063cf9eac
[ "Apache-2.0" ]
null
null
null
// Copyright 2018 Dhruvesh Nikhilkumar Patel // // 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 appl...
29.421053
77
0.635957
539b28bd3fd509a516e0026b76ec38fb73d66154
795
cpp
C++
demo/ref_object.cpp
bianc2018/Sim
8c37f65d28b99598c1c75a650e4da36a460cf600
[ "MIT" ]
1
2021-01-19T15:25:25.000Z
2021-01-19T15:25:25.000Z
demo/ref_object.cpp
bianc2018/Sim
8c37f65d28b99598c1c75a650e4da36a460cf600
[ "MIT" ]
null
null
null
demo/ref_object.cpp
bianc2018/Sim
8c37f65d28b99598c1c75a650e4da36a460cf600
[ "MIT" ]
null
null
null
#include "Logger.hpp" #include "TaskPool.hpp" #include "RefObject.hpp" class faketype { public: faketype() { SIM_LINFO("faketype() "<<SIM_HEX(this)); } ~faketype() { SIM_LINFO("~faketype " << SIM_HEX(this)); } }; sim::RefObject<faketype> temp; void* run(void* pd) { sim::RefObject<faketype> ref = temp; SIM_...
17.666667
46
0.642767
539cff1c13cce4d0f9acdc2c642e1c8ccd143bf2
1,294
cc
C++
examples/RC/baseline/test_RC.cc
donghao2nanjing/PIDControl_and_RC
e5a96e834d41f8151e9a213f6d7797b2e71dbc07
[ "MIT" ]
11
2018-10-31T02:15:28.000Z
2021-02-26T04:14:33.000Z
examples/RC/baseline/test_RC.cc
donghao2nanjing/PIDControl_and_RC
e5a96e834d41f8151e9a213f6d7797b2e71dbc07
[ "MIT" ]
null
null
null
examples/RC/baseline/test_RC.cc
donghao2nanjing/PIDControl_and_RC
e5a96e834d41f8151e9a213f6d7797b2e71dbc07
[ "MIT" ]
12
2019-01-03T09:44:06.000Z
2021-02-26T04:14:39.000Z
#include <rc.h> #include <filter.h> #include <stdio.h> #include <math.h> #define TS 1e-4 // 100us control period #define NUM_ITERATIONS 20000 // 2 seconds float rc_buffer1[200]; float rc_buffer2[200]; float rc_buffer3[200]; Filter_t compensator; float filter_num[3] = {0, 0.00726436941467171, 0.00668055316076471}; fl...
24.415094
77
0.613601
53a00aa768d7073cafbf71f51d524ea23faded2c
669
cpp
C++
RapyutaTest.cpp
abhis2007/Algorithms-1
7637209c5aa52c1afd8be1884d018673d26f5c1f
[ "MIT" ]
26
2019-04-05T07:10:15.000Z
2022-01-08T02:35:19.000Z
RapyutaTest.cpp
abhis2007/Algorithms-1
7637209c5aa52c1afd8be1884d018673d26f5c1f
[ "MIT" ]
2
2019-04-25T15:47:54.000Z
2019-09-03T06:46:05.000Z
RapyutaTest.cpp
abhis2007/Algorithms-1
7637209c5aa52c1afd8be1884d018673d26f5c1f
[ "MIT" ]
8
2019-04-05T08:58:50.000Z
2020-07-03T01:53:58.000Z
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int arr[n + 1]; for (int i = 1; i <= n; ++i) { cin >> arr[i]; } int dp[n + 1][n + 1]; memset(dp, sizeof(dp), 0); int res = INT_MIN; dp[1][0] = 0; dp[1][1] = arr[1]; for (int i = 2; i <= n; ++i) { for (int j = 0; j <= i; +...
19.114286
73
0.355755
53a23198e743b9d58184647433429dd85d8499a8
5,867
cpp
C++
cpgf/src/scriptbind/gscriptbind.cpp
mousepawmedia/libdeps
b004d58d5b395ceaf9fdc993cfb00e91334a5d36
[ "BSD-3-Clause" ]
null
null
null
cpgf/src/scriptbind/gscriptbind.cpp
mousepawmedia/libdeps
b004d58d5b395ceaf9fdc993cfb00e91334a5d36
[ "BSD-3-Clause" ]
null
null
null
cpgf/src/scriptbind/gscriptbind.cpp
mousepawmedia/libdeps
b004d58d5b395ceaf9fdc993cfb00e91334a5d36
[ "BSD-3-Clause" ]
null
null
null
#include "cpgf/scriptbind/gscriptbind.h" #include "cpgf/gglobal.h" #include "../pinclude/gbindcommon.h" #include "../pinclude/gscriptbindapiimpl.h" namespace cpgf { GScriptObject::GScriptObject(const GScriptConfig & config) : config(config), owner(nullptr) { } GScriptObject::GScriptObject(const GS...
24.344398
116
0.705642
53a33854d47f89f9ee86688a4019783b5cf36ffc
569
cpp
C++
qt-creator-opensource-src-4.6.1/src/shared/qbs/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
Src/shared/qbs/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp
kevinlq/QSD
b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a
[ "MIT" ]
null
null
null
Src/shared/qbs/tests/auto/blackbox/testdata-qt/auto-qrc/main.cpp
kevinlq/QSD
b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
#include <QFile> #include <iostream> int main() { QFile resource1(":/thePrefix/resource1.txt"); if (!resource1.open(QIODevice::ReadOnly)) return 1; QFile resource2(":/thePrefix/resource2.txt"); if (!resource2.open(QIODevice::ReadOnly)) return 2; QFile resource3(":/theOtherPrefix/re...
29.947368
97
0.636204
53a6d540c52e63dc58070a971baff80f27fd0f77
2,388
cpp
C++
client/include/game/CCheckpoints.cpp
MayconFelipeA/sampvoiceatt
3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff
[ "MIT" ]
368
2015-01-01T21:42:00.000Z
2022-03-29T06:22:22.000Z
client/include/game/CCheckpoints.cpp
MayconFelipeA/sampvoiceatt
3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff
[ "MIT" ]
92
2019-01-23T23:02:31.000Z
2022-03-23T19:59:40.000Z
client/include/game/CCheckpoints.cpp
MayconFelipeA/sampvoiceatt
3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff
[ "MIT" ]
179
2015-02-03T23:41:17.000Z
2022-03-26T08:27:16.000Z
/* Plugin-SDK (Grand Theft Auto San Andreas) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CCheckpoints.h" unsigned int MAX_NUM_CHECKPOINTS = 32; unsigned int &CCheckpoints::NumActiveCPts = *...
45.923077
302
0.760888
53b09b21c521c6d5830ca64f950aa53d5bd17b6e
4,064
cc
C++
airec/src/model/ListItemsResult.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
airec/src/model/ListItemsResult.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
airec/src/model/ListItemsResult.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * Copyright 2009-2017 Alibaba Cloud 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...
40.237624
97
0.762549
53b778497d67824a758b505d8509133ac53883c4
5,833
hpp
C++
include/RavEngine/unordered_vector.hpp
Ravbug/RavEngine
73249827cb2cd3c938bb59447e9edbf7b6f0defc
[ "Apache-2.0" ]
48
2020-11-18T23:14:25.000Z
2022-03-11T09:13:42.000Z
include/RavEngine/unordered_vector.hpp
Ravbug/RavEngine
73249827cb2cd3c938bb59447e9edbf7b6f0defc
[ "Apache-2.0" ]
1
2020-11-17T20:53:10.000Z
2020-12-01T20:27:36.000Z
include/RavEngine/unordered_vector.hpp
Ravbug/RavEngine
73249827cb2cd3c938bb59447e9edbf7b6f0defc
[ "Apache-2.0" ]
3
2020-12-22T02:40:39.000Z
2021-10-08T02:54:22.000Z
#pragma once #include <vector> #include <phmap.h> #include <functional> namespace RavEngine { /** The Unordered Vector provides: - O(1) erase by iterator All other complexities for valid behaviors are identical to a regular vector. Elements must be moveable. Note that the order of elements cannot be guareneed. *...
27.64455
188
0.652323
53ba76c61e98337aadf73ebd3e280e4db93c4c91
1,827
cpp
C++
book/CH02/S16_Presenting_an_image.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
5
2019-03-02T16:29:15.000Z
2021-11-07T11:07:53.000Z
book/CH02/S16_Presenting_an_image.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
null
null
null
book/CH02/S16_Presenting_an_image.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
2
2018-07-10T18:15:40.000Z
2020-01-03T04:02:32.000Z
// // Created by aicdg on 2017/6/19. // // // Chapter: 02 Image Presentation // Recipe: 16 Presenting an image #include "S16_Presenting_an_image.h" namespace VKCookbook { bool PresentImage(VkQueue queue, std::vector<VkSemaphore> rendering_semaphores, std::vector<Prese...
41.522727
116
0.509031
53bf0759144880c94ad882e74dd18a42bbed8403
910
cpp
C++
lab2/Q1.cpp
jasonsie88/OOP-and-DS
fdf76d6e9b3c70e5c7a97401dfe93984b63e5e28
[ "MIT" ]
null
null
null
lab2/Q1.cpp
jasonsie88/OOP-and-DS
fdf76d6e9b3c70e5c7a97401dfe93984b63e5e28
[ "MIT" ]
null
null
null
lab2/Q1.cpp
jasonsie88/OOP-and-DS
fdf76d6e9b3c70e5c7a97401dfe93984b63e5e28
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; class Student { private: string name; string studentID; int score; public: Student(){ } Student(string name, string studentID, int score){ Student:: name=name; Student:: studentID=studentID; St...
21.162791
80
0.552747
53c1d1bfbc4f270184ff9e72daeba7920a071150
5,895
cpp
C++
source/QtCore/QFutureWatcherBaseSlots.cpp
kenny1818/qt4xhb
f62f40d8b17acb93761014317b52da9f919707d0
[ "MIT" ]
1
2021-03-07T10:44:03.000Z
2021-03-07T10:44:03.000Z
source/QtCore/QFutureWatcherBaseSlots.cpp
kenny1818/qt4xhb
f62f40d8b17acb93761014317b52da9f919707d0
[ "MIT" ]
null
null
null
source/QtCore/QFutureWatcherBaseSlots.cpp
kenny1818/qt4xhb
f62f40d8b17acb93761014317b52da9f919707d0
[ "MIT" ]
2
2020-07-19T03:28:08.000Z
2021-03-05T18:07:20.000Z
/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QFutureWatcherBaseSlots.h" QFutureWatcherBaseSlot...
26.917808
110
0.674979
53c3ed79cdbaac28d59dd1e13c36a9e10713d41b
6,671
cc
C++
alljoyn_js/jni/ScriptableObject.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
33
2018-01-12T00:37:43.000Z
2022-03-24T02:31:36.000Z
alljoyn_js/jni/ScriptableObject.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
1
2020-01-05T05:51:27.000Z
2020-01-05T05:51:27.000Z
alljoyn_js/jni/ScriptableObject.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
30
2017-12-13T23:24:00.000Z
2022-01-25T02:11:19.000Z
/* * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Apache License, Version 2.0...
32.227053
115
0.653275
53cc3cee63f5e72f8f8ef2ed867e47459b546d2b
8,973
cpp
C++
CGALib/src/Model.cpp
jorge-jcc/MarioCraftv2
f0870721685452b2b39df1004f4be26f2dfb3629
[ "Xnet", "X11" ]
null
null
null
CGALib/src/Model.cpp
jorge-jcc/MarioCraftv2
f0870721685452b2b39df1004f4be26f2dfb3629
[ "Xnet", "X11" ]
null
null
null
CGALib/src/Model.cpp
jorge-jcc/MarioCraftv2
f0870721685452b2b39df1004f4be26f2dfb3629
[ "Xnet", "X11" ]
null
null
null
/* * Model.cpp * * Created on: 13/09/2016 * Author: rey */ #include "Headers/Model.h" #include "Headers/TimeManager.h" #include "Headers/mathUtil.h" Model::Model() { this->aabb.mins.x = FLT_MAX; this->aabb.mins.y = FLT_MAX; this->aabb.mins.z = FLT_MAX; this->aabb.maxs.x = -FLT_MAX; thi...
36.77459
146
0.657528
53cffcce8f6c207095d511f4629668bd41857bb6
10,689
cpp
C++
iOS/G3MApp/G3MApp/G3MHUDDemoScene.cpp
AeroGlass/g3m
a21a9e70a6205f1f37046ae85dafc6e3bfaeb917
[ "BSD-2-Clause" ]
null
null
null
iOS/G3MApp/G3MApp/G3MHUDDemoScene.cpp
AeroGlass/g3m
a21a9e70a6205f1f37046ae85dafc6e3bfaeb917
[ "BSD-2-Clause" ]
null
null
null
iOS/G3MApp/G3MApp/G3MHUDDemoScene.cpp
AeroGlass/g3m
a21a9e70a6205f1f37046ae85dafc6e3bfaeb917
[ "BSD-2-Clause" ]
null
null
null
// // G3MHUDDemoScene.cpp // G3MApp // // Created by Diego Gomez Deck on 12/2/14. // Copyright (c) 2014 Igo Software SL. All rights reserved. // #include "G3MHUDDemoScene.hpp" //#include <G3MiOSSDK/G3MWidget.hpp> #include <G3MiOSSDK/MapBoxLayer.hpp> #include <G3MiOSSDK/LayerSet.hpp> #include <G3MiOSSDK/CanvasImag...
41.27027
116
0.477874
53d1654bd095104482205740dbd1d2022d6be557
1,346
hpp
C++
Hardware/src/hard/rpi_gpio.hpp
torunxxx001/BookCollectionSystem
cce2942e30c460949ba729db432f0efdd66f8465
[ "MIT" ]
null
null
null
Hardware/src/hard/rpi_gpio.hpp
torunxxx001/BookCollectionSystem
cce2942e30c460949ba729db432f0efdd66f8465
[ "MIT" ]
null
null
null
Hardware/src/hard/rpi_gpio.hpp
torunxxx001/BookCollectionSystem
cce2942e30c460949ba729db432f0efdd66f8465
[ "MIT" ]
null
null
null
/* 参考PDF[BCM2835-ARM-Peripherals.pdf] */ /* RaspberryPI用GPIO操作プログラム */ /* 対応表 PIN NAME 0 GPIO 2(SDA) 1 GPIO 3(SCL) 2 GPIO 4(GPCLK0) 3 GPIO 7(CE1) 4 GPIO 8(CE0) 5 GPIO 9(MISO) 6 GPIO 10(MOSI) 7 GPIO 11(SCLK) 8 GPIO 14(TXD) 9 GPIO 15(RXD) 10 GPIO 17 11 GPIO 18(PCM_CLK) 12 GPIO 22 13 GPIO 23 14 GPIO 24 15 GPIO 25 16 GP...
16.02381
54
0.732541
53d19d2e5ac46e190dc814d6c6e9592c5831fbe9
1,137
cpp
C++
src/query_tatami.cpp
LTLA/diet.scran
c274bf058e10c174a06a409af50fcad225d40f0d
[ "MIT" ]
null
null
null
src/query_tatami.cpp
LTLA/diet.scran
c274bf058e10c174a06a409af50fcad225d40f0d
[ "MIT" ]
null
null
null
src/query_tatami.cpp
LTLA/diet.scran
c274bf058e10c174a06a409af50fcad225d40f0d
[ "MIT" ]
null
null
null
#include "tatami/tatami.h" #include "Rcpp.h" #include "tatamize.h" //[[Rcpp::export(rng=false)]] Rcpp::IntegerVector tatami_dim(SEXP x) { auto ptr = extract_NumericMatrix(x); return Rcpp::IntegerVector::create(ptr->nrow(), ptr->ncol()); } //[[Rcpp::export(rng=false)]] Rcpp::NumericMatrix tatami_rows(SEXP x, R...
27.071429
94
0.648197
53d3d8fbf496c15a7e0b017d0d78183d4f70afc5
1,256
cpp
C++
Bit Manipulation/1835. Find XOR Sum of All Pairs Bitwise AND.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Bit Manipulation/1835. Find XOR Sum of All Pairs Bitwise AND.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Bit Manipulation/1835. Find XOR Sum of All Pairs Bitwise AND.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
/* We all know the distributive property that (a1+a2)*(b1+b2) = a1*b1 + a1*b2 + a2*b1 + a2*b2 Explanation Distributive property is similar for AND and XOR here. (a1^a2) & (b1^b2) = (a1&b1) ^ (a1&b2) ^ (a2&b1) ^ (a2&b2) (I wasn't aware of this at first either) 另一种思路, 如果所有arr2 中的数 第一个bit 是奇数个(求所有数第一位bit的xor),if ar...
26.723404
104
0.514331
53d43ebb01cd7590624edbe6e9033bcf44f6d4ad
291
cpp
C++
Graph/DSU.cpp
scortier/DSA-Complete-Sheet
925a5cb148d9addcb32192fe676be76bfb2915c7
[ "MIT" ]
1
2021-07-20T06:08:26.000Z
2021-07-20T06:08:26.000Z
Graph/DSU.cpp
scortier/DSA-Complete-Sheet
925a5cb148d9addcb32192fe676be76bfb2915c7
[ "MIT" ]
null
null
null
Graph/DSU.cpp
scortier/DSA-Complete-Sheet
925a5cb148d9addcb32192fe676be76bfb2915c7
[ "MIT" ]
null
null
null
#define MAX 20001 int par[MAX], sz[MAX]; void init(int v) { par[v] = v; sz[v] = 1; } int find(int v) { return v == par[v] ? v : par[v] = find(par[v]); } void join(int u, int v) { u = find(u), v = find(v); if(u != v) { if(sz[u] < sz[v]) swap(u, v); par[v] = u; sz[u] += sz[v]; } }
17.117647
48
0.484536
53d6db547db42be009f19c81dd2f8ad1d67d5f6a
1,070
cpp
C++
Pm2Service/Pm2Helper.cpp
thebecwar/PM2Service
594fdc39f734a425ccd61fd6132755f32882afb6
[ "MIT" ]
null
null
null
Pm2Service/Pm2Helper.cpp
thebecwar/PM2Service
594fdc39f734a425ccd61fd6132755f32882afb6
[ "MIT" ]
null
null
null
Pm2Service/Pm2Helper.cpp
thebecwar/PM2Service
594fdc39f734a425ccd61fd6132755f32882afb6
[ "MIT" ]
null
null
null
#include "Pm2Helper.h" #include "Process.h" #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <PathCch.h> #include <locale> #include <codecvt> #include <string> #include <sstream> void ConvertNarrowToWide(std::string& narrow, std::wstring& wide) { std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> c...
23.777778
94
0.692523
53d7aa80fd1ff968638b54548a45f3b42086a965
517
cpp
C++
unittest/tests/JsonTest/source/Application.cpp
Hurleyworks/Ketone
97c0c730a6e3155154a0ccb87a535e109dfa3c7d
[ "Apache-2.0" ]
1
2021-04-01T01:16:33.000Z
2021-04-01T01:16:33.000Z
unittest/tests/JsonTest/source/Application.cpp
Hurleyworks/Ketone
97c0c730a6e3155154a0ccb87a535e109dfa3c7d
[ "Apache-2.0" ]
null
null
null
unittest/tests/JsonTest/source/Application.cpp
Hurleyworks/Ketone
97c0c730a6e3155154a0ccb87a535e109dfa3c7d
[ "Apache-2.0" ]
null
null
null
#include "Jahley.h" #include <json.hpp> const std::string APP_NAME = "JsonTest"; #ifdef CHECK #undef CHECK #endif #define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" using json = nlohmann::json; class Application : public Jahley::App { public: Application(DesktopWindowSettings settings = DesktopWindowSe...
14.771429
98
0.709865
53d7f6e0454d6351e2ae3cdadf79ee85ae0b982e
265
cpp
C++
1480 Running Sum of 1d Array.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
1
2021-11-14T01:06:38.000Z
2021-11-14T01:06:38.000Z
1480 Running Sum of 1d Array.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
null
null
null
1480 Running Sum of 1d Array.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
null
null
null
class Solution { public: vector<int> runningSum(vector<int>& nums) { // input: nums array nums = [1,2,3,4] for(int i=1;i<nums.size();i++){ nums[i]=nums[i-1]+nums[i]; } return nums; } };
18.928571
47
0.441509
53d82a58d6860797fcbbc6ec091433cc8d8e9769
1,402
cpp
C++
FERMIONS/WILSON/LoopMacros.cpp
markmace/OVERLAP
2d26366aa862cbd36182db8ee3165d9fe4d3e704
[ "MIT" ]
1
2020-12-13T03:11:03.000Z
2020-12-13T03:11:03.000Z
FERMIONS/WILSON/LoopMacros.cpp
markmace/OVERLAP
2d26366aa862cbd36182db8ee3165d9fe4d3e704
[ "MIT" ]
null
null
null
FERMIONS/WILSON/LoopMacros.cpp
markmace/OVERLAP
2d26366aa862cbd36182db8ee3165d9fe4d3e704
[ "MIT" ]
null
null
null
#ifndef __LOOP_MACROS_CPP__ #define __LOOP_MACROS_CPP__ #define START_FERMION_LOOP(gMatrixCoupling) \ \ for(INT i=0;i<Nc;i++){ \ for(INT j=0;j<Nc;j++){ \ \ for(INT alpha=0;alpha<DiracAlgebra::SpinorComponents;alpha++){\ for(INT beta=0;beta<DiracAlgebra::SpinorComponents;beta++){ \ \ if(gMatrixCoupling[alpha][beta]!=0....
18.207792
78
0.702568
53dbaa396bff25abf48fc6ac3065b6f56a0bcd80
2,156
cpp
C++
sources/thelib/src/mediaformats/readers/mp4/atomhdlr.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
3
2020-07-30T19:41:00.000Z
2020-10-28T12:52:37.000Z
sources/thelib/src/mediaformats/readers/mp4/atomhdlr.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
null
null
null
sources/thelib/src/mediaformats/readers/mp4/atomhdlr.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
2
2020-05-11T03:19:00.000Z
2021-07-07T17:40:47.000Z
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
25.975904
90
0.678571
53dbd15883fca8e4fb9012fbe7b16ae78429f8df
1,255
cpp
C++
ansi-c/fix_symbol.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
ansi-c/fix_symbol.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
ansi-c/fix_symbol.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
/*******************************************************************\ Module: ANSI-C Linking Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include "fix_symbol.h" /*******************************************************************\ Function: ...
19.920635
69
0.449402
53de116229cda7fec51a86c23c78b472d07a9197
1,214
cc
C++
src/leaderboard.cc
CS126SP20/final-project-teresa622
38b1e943383fe9e71cfffb42460f855444754820
[ "MIT" ]
null
null
null
src/leaderboard.cc
CS126SP20/final-project-teresa622
38b1e943383fe9e71cfffb42460f855444754820
[ "MIT" ]
null
null
null
src/leaderboard.cc
CS126SP20/final-project-teresa622
38b1e943383fe9e71cfffb42460f855444754820
[ "MIT" ]
null
null
null
// // Created by Teresa Dong on 4/17/20. // #include <string> #include "mylibrary/leaderboard.h" #include "mylibrary/player.h" namespace tetris { LeaderBoard::LeaderBoard(const std::string& db_path) : db_{db_path} { db_ << "CREATE TABLE if not exists leaderboard (\n" " name TEXT NOT NULL,\n" "...
23.346154
73
0.623558
53de483523e0636452f358b5f0779fb78869303d
628
cpp
C++
LuoguOJ/Luogu 2661.cpp
tico88612/Solution-Note
31a9d220fd633c6920760707a07c9a153c2f76cc
[ "MIT" ]
1
2018-02-11T09:41:54.000Z
2018-02-11T09:41:54.000Z
LuoguOJ/Luogu 2661.cpp
tico88612/Solution-Note
31a9d220fd633c6920760707a07c9a153c2f76cc
[ "MIT" ]
null
null
null
LuoguOJ/Luogu 2661.cpp
tico88612/Solution-Note
31a9d220fd633c6920760707a07c9a153c2f76cc
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); using namespace std; const int MAXN=2e6+10; int disjoint[MAXN],dis[MAXN]={0},ans=2e6+10; int getjoint(int s){ if(disjoint[s]!=s){ int last=disjoint[s]; disjoint[s]=getjoint(disjoint[s]); dis[s]+=dis[last]; } return disjoint[s]; ...
17.942857
57
0.600318
53debfd17bffc22006b3728f7979ccc1a195d383
2,701
cpp
C++
graph-source-code/118-E/745508.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/118-E/745508.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/118-E/745508.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: GNU C++ #include <map> #include <set> #include <list> #include <stack> #include <cmath> #include <queue> #include <ctime> #include <cfloat> #include <vector> #include <string> #include <cstdio> #include <climits> #include <cstdlib> #include <cstring> #include <cassert> #include <iomanip> #includ...
20.007407
93
0.546835
53e19c7e9a43f973ed26aea01b09b554f826fbff
2,162
hpp
C++
src/camera.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
3
2019-04-25T11:39:13.000Z
2022-01-30T22:24:08.000Z
src/camera.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
null
null
null
src/camera.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
1
2019-11-20T07:58:38.000Z
2019-11-20T07:58:38.000Z
#pragma once #include <cassert> #include "types.hpp" #include "vector.hpp" #include "point.hpp" #include "matrix.hpp" #include "transforms.hpp" #define MIN_FOV 10.0f #define MAX_FOV 90.0f namespace engine { class camera { public: camera(real aspect, real fov = 60.0f, real _near = 1.0f, real _far = 100.0f, const...
21.405941
170
0.630897
53e2799cb3b28afcb8ae8d1a833700671f0aa9e3
1,177
cc
C++
debian/modules/ngx_pagespeed/src/ngx_list_iterator.cc
yosefadi/nginx
38840f728310017aefb1fb9e6ac4531e7ce01921
[ "BSD-2-Clause" ]
2
2015-05-19T08:13:20.000Z
2016-01-09T05:42:54.000Z
debian/modules/ngx_pagespeed/src/ngx_list_iterator.cc
yosefadi/nginx
38840f728310017aefb1fb9e6ac4531e7ce01921
[ "BSD-2-Clause" ]
null
null
null
debian/modules/ngx_pagespeed/src/ngx_list_iterator.cc
yosefadi/nginx
38840f728310017aefb1fb9e6ac4531e7ce01921
[ "BSD-2-Clause" ]
5
2015-01-20T20:20:47.000Z
2020-05-19T12:01:43.000Z
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
29.425
75
0.715378
53e769523deb7262b5987220848f596dd26ee00d
906
cpp
C++
BLEConstantCharacteristic.cpp
femtoduino/arduino-BLEPeripheral
eaedd3b9279f09f21e8c8db153af7c76096f754b
[ "MIT" ]
2
2015-05-27T00:37:37.000Z
2017-01-31T06:41:52.000Z
BLEConstantCharacteristic.cpp
femtoduino/arduino-BLEPeripheral
eaedd3b9279f09f21e8c8db153af7c76096f754b
[ "MIT" ]
null
null
null
BLEConstantCharacteristic.cpp
femtoduino/arduino-BLEPeripheral
eaedd3b9279f09f21e8c8db153af7c76096f754b
[ "MIT" ]
null
null
null
#include "BLEConstantCharacteristic.h" BLEConstantCharacteristic::BLEConstantCharacteristic(const char* uuid, const unsigned char value[], unsigned char length) : BLEFixedLengthCharacteristic(uuid, BLERead, (unsigned char)0) { this->_valueLength = this->_valueSize = length; this->_value = (unsigned char*)value; ...
32.357143
123
0.770419
53e8532ad79bf9a0704c56fe0263f884d7dc31cc
446
cpp
C++
643-maximum-average-subarray-i/643-maximum-average-subarray-i.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
643-maximum-average-subarray-i/643-maximum-average-subarray-i.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
643-maximum-average-subarray-i/643-maximum-average-subarray-i.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
class Solution { public: double findMaxAverage(vector<int>& nums, int k) { int sum=0; for(int i=0;i<k;i++){ sum+=nums[i]; } double avg=(double)sum/k; int i=0, j=k; while(j<nums.size()){ sum -= nums[i]; sum += nums[j]; do...
22.3
53
0.394619
53f20407d36b640aa7b0d498a7d180d06e7ac743
1,477
cpp
C++
linked-list/merge-sort-doublyLL.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
linked-list/merge-sort-doublyLL.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
linked-list/merge-sort-doublyLL.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct Node { int data; struct Node *next, *prev; }; Node *merge(Node *a, Node *b) { // Base cases if (!a) return b; if (!b) return a; if (a->data <= b->data) { a->next = merge(a->next, b); ...
19.181818
54
0.475288
53f50c53640f4dc2d832d2b71c9dd5101573236f
168
cpp
C++
vm/mterp/c/OP_DISPATCH_FF.cpp
ThirdProject/android_dalvik
6a9739380c73a0256f2484f2bcd0b8f908a2db52
[ "Apache-2.0" ]
null
null
null
vm/mterp/c/OP_DISPATCH_FF.cpp
ThirdProject/android_dalvik
6a9739380c73a0256f2484f2bcd0b8f908a2db52
[ "Apache-2.0" ]
null
null
null
vm/mterp/c/OP_DISPATCH_FF.cpp
ThirdProject/android_dalvik
6a9739380c73a0256f2484f2bcd0b8f908a2db52
[ "Apache-2.0" ]
null
null
null
HANDLE_OPCODE(OP_DISPATCH_FF) /* * Indicates extended opcode. Use next 8 bits to choose where to branch. */ DISPATCH_EXTENDED(INST_AA(inst)); OP_END
24
77
0.696429
53fa031c22b8eed150594efa271ddde6a8d2a68e
9,895
cpp
C++
src/c++/lib/alignment/matchSelector/BinningFragmentStorage.cpp
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
13
2018-02-09T22:59:39.000Z
2021-11-29T06:33:22.000Z
src/c++/lib/alignment/matchSelector/BinningFragmentStorage.cpp
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
17
2018-01-26T11:36:07.000Z
2022-02-03T18:48:43.000Z
src/c++/lib/alignment/matchSelector/BinningFragmentStorage.cpp
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
4
2018-10-19T20:00:00.000Z
2020-10-29T14:44:06.000Z
/** ** Isaac Genome Alignment Software ** Copyright (c) 2010-2017 Illumina, Inc. ** All rights reserved. ** ** This software is provided under the terms and conditions of the ** GNU GENERAL PUBLIC LICENSE Version 3 ** ** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3 ** along with ...
41.57563
145
0.703183
53fb4768f41b00844adfb9ec51edd9b7f4b37bdf
3,036
hpp
C++
src/OpenAnalysis/CallGraph/ManagerCallGraph.hpp
sriharikrishna/OpenAnalysis
0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc
[ "BSD-3-Clause" ]
null
null
null
src/OpenAnalysis/CallGraph/ManagerCallGraph.hpp
sriharikrishna/OpenAnalysis
0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc
[ "BSD-3-Clause" ]
null
null
null
src/OpenAnalysis/CallGraph/ManagerCallGraph.hpp
sriharikrishna/OpenAnalysis
0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc
[ "BSD-3-Clause" ]
null
null
null
/*! \file \brief Declarations of the AnnotationManager that generates a CallGraphStandard. \authors Arun Chauhan (2001 as part of Mint), Nathan Tallent, Michelle Strout, Priyadarshini Malusare \version $Id: ManagerCallGraphStandard.hpp,v 1.6 2004/11/19 19:21:50 mstrout Exp $ Copyright (c) 2002-2005, Rice U...
30.979592
103
0.600132
53fc218fdcd65dc427360ddb202a4d1c73c959e3
3,611
cpp
C++
geometry/src/capsule.cpp
Ludophonic/JigLib
541ec63b345ccf01e58cce49eb2f73c21eaf6aa6
[ "Zlib" ]
10
2016-06-01T12:54:45.000Z
2021-09-07T17:34:37.000Z
geometry/src/capsule.cpp
Ludophonic/JigLib
541ec63b345ccf01e58cce49eb2f73c21eaf6aa6
[ "Zlib" ]
null
null
null
geometry/src/capsule.cpp
Ludophonic/JigLib
541ec63b345ccf01e58cce49eb2f73c21eaf6aa6
[ "Zlib" ]
4
2017-05-03T14:03:03.000Z
2021-01-04T04:31:15.000Z
//============================================================== // Copyright (C) 2004 Danny Chapman // danny@rowlhouse.freeserve.co.uk //-------------------------------------------------------------- // /// @file capsule.cpp // //=====================================...
39.681319
112
0.546109
53fdbadfaa6215e4b01d0233392fe1f15fd914eb
244
cpp
C++
lib/cards/expansion_card.cpp
BioBoost/home_automator
acc77023003110bc18f376c5305dd26912b26a9a
[ "MIT" ]
null
null
null
lib/cards/expansion_card.cpp
BioBoost/home_automator
acc77023003110bc18f376c5305dd26912b26a9a
[ "MIT" ]
14
2018-08-19T09:03:06.000Z
2018-09-22T21:08:36.000Z
lib/cards/expansion_card.cpp
BioBoost/home_automator
acc77023003110bc18f376c5305dd26912b26a9a
[ "MIT" ]
null
null
null
#include "expansion_card.h" namespace BiosHomeAutomator { ExpansionCard::ExpansionCard(unsigned int id) { this->id = id; } ExpansionCard::~ExpansionCard(void) { } unsigned int ExpansionCard::get_id(void) { return id; } };
16.266667
49
0.684426
d87cc8d47fa687a1a4fa586a5d626144557df6fb
850
hpp
C++
poet/detail/utility.hpp
fmhess/libpoet
ca6a168a772a1452ac39745a851ba390e86fad30
[ "BSL-1.0" ]
1
2017-04-03T11:53:20.000Z
2017-04-03T11:53:20.000Z
poet/detail/utility.hpp
fmhess/libpoet
ca6a168a772a1452ac39745a851ba390e86fad30
[ "BSL-1.0" ]
null
null
null
poet/detail/utility.hpp
fmhess/libpoet
ca6a168a772a1452ac39745a851ba390e86fad30
[ "BSL-1.0" ]
null
null
null
// copyright (c) Frank Mori Hess <fmhess@users.sourceforge.net> 2008-04-13 // 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 _POET_DETAIL_UTILITY_HPP #define _POET_DETAIL_UTILITY_HPP #include <boost/...
21.25
75
0.685882
d886b626bba54bf7c1acdaf6800e7e362c9ca320
1,378
hpp
C++
GLSL-Pipeline/Toolkits/include/System/Func.hpp
GilFerraz/GLSL-Pipeline
d2fd965a4324e85b6144682f8104c306034057d6
[ "Apache-2.0" ]
null
null
null
GLSL-Pipeline/Toolkits/include/System/Func.hpp
GilFerraz/GLSL-Pipeline
d2fd965a4324e85b6144682f8104c306034057d6
[ "Apache-2.0" ]
null
null
null
GLSL-Pipeline/Toolkits/include/System/Func.hpp
GilFerraz/GLSL-Pipeline
d2fd965a4324e85b6144682f8104c306034057d6
[ "Apache-2.0" ]
null
null
null
#pragma once #include "DLL.hpp" #include <functional> namespace System { /** * \brief Encapsulates a method that has specified parameters and returns a value of the type specified by the TResult * parameter. Unlike in other .NET languages, the first paramenter correspondes to TResult. * \tpa...
23.758621
122
0.624819
d88756cddfe30e47e7f80e2cfebaaa7174008521
493
cc
C++
endo/module_wrap.cc
Qard/endo
6e3241b12e58344524711d4db4ed44d115fa8175
[ "MIT" ]
null
null
null
endo/module_wrap.cc
Qard/endo
6e3241b12e58344524711d4db4ed44d115fa8175
[ "MIT" ]
null
null
null
endo/module_wrap.cc
Qard/endo
6e3241b12e58344524711d4db4ed44d115fa8175
[ "MIT" ]
null
null
null
#include "module_wrap.h" namespace endo { ModuleWrap::ModuleWrap(Isolate* isolate, Local<Module> module, Local<String> url) : module_(isolate, module), url_(isolate, url) {}; bool ModuleWrap::operator==(Local<Module>& mod) { return module_.Get(Isolate::GetCurrent())->GetIdentityHash() == mod->GetIdentityHash...
22.409091
89
0.703854
d88790b0562948b7fa957ebf6c42c2c0eea6b303
2,542
cp
C++
Sources_Common/Application/Preferences/CSearchStyle.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
Sources_Common/Application/Preferences/CSearchStyle.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
Sources_Common/Application/Preferences/CSearchStyle.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 Unless re...
20.336
86
0.709284
d88b09f7941ed97b33f164ff59b9cd7a0be36365
606
hpp
C++
Helios/src/Game.hpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
Helios/src/Game.hpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
Helios/src/Game.hpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
#pragma once #include <SDL.h> #include <memory> #include "Texture.hpp" #include "Sprite.hpp" #include "Clock.hpp" #include "Input.hpp" #include "Event.hpp" #include "SceneStateMachine.hpp" #include "scenes/SceneSplashScreen.hpp" #include "scenes/SceneGame.hpp" namespace Helio { class Game { private: Event even...
15.947368
39
0.70132
d88f5accbe4168ea1013c8b0dca216ac0573e7fd
29,740
hpp
C++
include/CameraModels/CameraModelUtils.hpp
lukier/camera_models
90196141fa4749148b6a7b0adc7af19cb1971039
[ "BSD-3-Clause" ]
34
2016-11-13T22:17:50.000Z
2021-01-20T19:59:25.000Z
include/CameraModels/CameraModelUtils.hpp
lukier/camera_models
90196141fa4749148b6a7b0adc7af19cb1971039
[ "BSD-3-Clause" ]
null
null
null
include/CameraModels/CameraModelUtils.hpp
lukier/camera_models
90196141fa4749148b6a7b0adc7af19cb1971039
[ "BSD-3-Clause" ]
6
2016-11-14T00:45:56.000Z
2019-04-02T11:56:50.000Z
/** * **************************************************************************** * Copyright (c) 2015, Robert Lukierski. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributi...
46.323988
263
0.648857
d8918e5ce4cd1348ab24b3521eb4ec70ebe62e0a
2,657
cc
C++
euler/core/kernels/sample_edge_op.cc
HuangLED/euler
a56b5fe3fe56123af062317ca0b4160ce3b3ace9
[ "Apache-2.0" ]
2,829
2019-01-12T09:16:03.000Z
2022-03-29T14:00:58.000Z
euler/core/kernels/sample_edge_op.cc
HuangLED/euler
a56b5fe3fe56123af062317ca0b4160ce3b3ace9
[ "Apache-2.0" ]
331
2019-01-17T21:07:49.000Z
2022-03-30T06:38:17.000Z
euler/core/kernels/sample_edge_op.cc
HuangLED/euler
a56b5fe3fe56123af062317ca0b4160ce3b3ace9
[ "Apache-2.0" ]
578
2019-01-16T10:48:53.000Z
2022-03-21T13:41:34.000Z
/* Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
31.630952
80
0.666165
d894316a3388b78f662dc89b069e5ff4a9bf42f4
1,339
cpp
C++
src/lighting.cpp
armedturret/GlassWall
1ff438987d32be154ce81488a8f2729eaaf563ee
[ "MIT" ]
null
null
null
src/lighting.cpp
armedturret/GlassWall
1ff438987d32be154ce81488a8f2729eaaf563ee
[ "MIT" ]
null
null
null
src/lighting.cpp
armedturret/GlassWall
1ff438987d32be154ce81488a8f2729eaaf563ee
[ "MIT" ]
1
2018-12-23T01:46:41.000Z
2018-12-23T01:46:41.000Z
#include <lighting.h> GW::RenderEngine::Lighting::Lighting() { } GW::RenderEngine::Lighting::~Lighting() { } void GW::RenderEngine::Lighting::setDirectionalLight(const DirectionalLight & light) { m_directionalLight = light; } void GW::RenderEngine::Lighting::addPointLight(const PointLight & light) { m_pointLights...
21.253968
92
0.746826
d894353cd687d3ce761962c40144ad58c01ad041
1,234
cpp
C++
EngineAttempt0/project/src/engine/general/Transform.cpp
MEEMEEMAN/EngineAttempt0
2d470af8d19b8f90c03b1bcdee9ae64f3cddd7b6
[ "MIT" ]
null
null
null
EngineAttempt0/project/src/engine/general/Transform.cpp
MEEMEEMAN/EngineAttempt0
2d470af8d19b8f90c03b1bcdee9ae64f3cddd7b6
[ "MIT" ]
null
null
null
EngineAttempt0/project/src/engine/general/Transform.cpp
MEEMEEMAN/EngineAttempt0
2d470af8d19b8f90c03b1bcdee9ae64f3cddd7b6
[ "MIT" ]
null
null
null
#include "Transform.h" void Transform::UpdateTRS() { mat4 modelMatrix = mat4(1); modelMatrix = glm::translate(modelMatrix, position); modelMatrix = glm::rotate(modelMatrix, glm::radians(rotaiton.x), vec3(1, 0, 0)); modelMatrix = glm::rotate(modelMatrix, glm::radians(rotaiton.y), vec3(0, 1, 0)); modelMatrix = gl...
26.826087
81
0.703404
d89886f2c4165e5ace2f8f6e9b07abdfd2d5d458
233
cpp
C++
library/src/ButtonMatrix.cpp
StratifyLabs/LvglAPI
c869d5b38ad3aa148fa0801d12271f2d9a6043c5
[ "MIT" ]
1
2022-01-03T19:16:58.000Z
2022-01-03T19:16:58.000Z
library/src/ButtonMatrix.cpp
StratifyLabs/LvglAPI
c869d5b38ad3aa148fa0801d12271f2d9a6043c5
[ "MIT" ]
null
null
null
library/src/ButtonMatrix.cpp
StratifyLabs/LvglAPI
c869d5b38ad3aa148fa0801d12271f2d9a6043c5
[ "MIT" ]
null
null
null
#include "lvgl/ButtonMatrix.hpp" using namespace lvgl; LVGL_OBJECT_ASSERT_SIZE(ButtonMatrix); ButtonMatrix::ButtonMatrix(const char * name){ m_object = api()->btnmatrix_create(screen_object()); set_user_data(m_object,name); }
21.181818
54
0.776824
d8989ee0c5f697d49473166919b635c30401a505
15,067
cpp
C++
3rdparty/GPSTk/ext/apps/geomatics/relposition/ProcessRawData.cpp
mfkiwl/ICE
e660d031bb1bcea664db1de4946fd8781be5b627
[ "MIT" ]
50
2019-10-12T01:22:20.000Z
2022-02-15T23:28:26.000Z
3rdparty/GPSTk/ext/apps/geomatics/relposition/ProcessRawData.cpp
wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation
2f1ff054b7c5059da80bb3b2f80c05861a02cc36
[ "MIT" ]
null
null
null
3rdparty/GPSTk/ext/apps/geomatics/relposition/ProcessRawData.cpp
wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation
2f1ff054b7c5059da80bb3b2f80c05861a02cc36
[ "MIT" ]
14
2019-11-05T01:50:29.000Z
2021-08-06T06:23:44.000Z
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; ei...
38.338422
90
0.553727
d89a1419d316000ed182f6a183475ebeb0a06af7
23,275
cpp
C++
codecparsers/vp9parser.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
89
2015-01-09T10:31:13.000Z
2018-01-18T12:48:21.000Z
codecparsers/vp9parser.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
626
2015-01-12T00:01:26.000Z
2018-01-23T18:58:58.000Z
codecparsers/vp9parser.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
104
2015-01-12T04:02:09.000Z
2017-12-28T08:27:42.000Z
/* * Copyright 2016 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
34.17768
154
0.653792
d89c9b95521a33dca025ff45cb1e46b31018c3f0
2,137
cc
C++
design-pattern/creational/factory_method.cc
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
design-pattern/creational/factory_method.cc
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
design-pattern/creational/factory_method.cc
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2018-2022 curoky(cccuroky@gmail.com). * * This file is part of my-own-x. * See https://github.com/curoky/my-own-x for further info. * * 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...
28.493333
96
0.718297
d89f410ee574765481e3a36294c4bdb915b9e62a
2,261
cpp
C++
main.cpp
paramsingh/gameboy
b6e57d14e975975fb1cdb85634682918c54cdb43
[ "MIT" ]
31
2016-08-31T10:19:06.000Z
2022-01-11T00:04:21.000Z
main.cpp
paramsingh/gameboy
b6e57d14e975975fb1cdb85634682918c54cdb43
[ "MIT" ]
null
null
null
main.cpp
paramsingh/gameboy
b6e57d14e975975fb1cdb85634682918c54cdb43
[ "MIT" ]
18
2016-08-19T07:21:44.000Z
2022-03-19T14:35:45.000Z
#include <bits/stdc++.h> #include <SDL2/SDL.h> using namespace std; #include "cpu/cpu.hpp" #include "cpu/cpu.cpp" #include "ops/ops.hpp" #include "ops/ops.cpp" #include "gui/gui.hpp" #include "gui/gui.cpp" #include "gpu/gpu.hpp" #include "gpu/gpu.cpp" const int fps = 60; const int ticks_per_frame = 1000 / 60; // TODO...
21.330189
77
0.513047
d8a38e5258811eb165bc3e3898308603f0c05dfd
174
cpp
C++
node2/src/init.cpp
eirikeve/ttk4155-byggern
07f33b70ed5e02214705f81d2537371b538716eb
[ "MIT" ]
null
null
null
node2/src/init.cpp
eirikeve/ttk4155-byggern
07f33b70ed5e02214705f81d2537371b538716eb
[ "MIT" ]
null
null
null
node2/src/init.cpp
eirikeve/ttk4155-byggern
07f33b70ed5e02214705f81d2537371b538716eb
[ "MIT" ]
null
null
null
#include "../include/init.h" // void init() { // init_timer(); // init_uart(); // can_init(); // ADC_internal& adc_internal = ADC_internal::getInstance(); // }
19.333333
64
0.58046
d8a4014bf20f395ce43b7168392b63d604bc2586
346
cpp
C++
C++/sum-of-digits-in-the-minimum-number.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
C++/sum-of-digits-in-the-minimum-number.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
C++/sum-of-digits-in-the-minimum-number.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
// Time: O(n * l), l is the max length of numbers // Space: O(l) class Solution { public: int sumOfDigits(vector<int>& A) { int min_num = *min_element(A.begin(),A.end()); int total = 0; while (min_num) { total += min_num % 10; min_num /= 10; } return...
21.625
54
0.488439
d8ad75d32fe936031a6c65bbb6bc7d6318b204cc
4,244
cpp
C++
src/platform/lpc17xx/power.cpp
wangyanjunmsn/vi-firmware
a5940ab6c773457d4c41e80273ae0ce327164d60
[ "BSD-3-Clause" ]
148
2015-01-01T18:32:25.000Z
2022-03-05T12:02:24.000Z
src/platform/lpc17xx/power.cpp
wangyanjunmsn/vi-firmware
a5940ab6c773457d4c41e80273ae0ce327164d60
[ "BSD-3-Clause" ]
109
2015-02-11T16:33:49.000Z
2021-01-04T16:14:00.000Z
src/platform/lpc17xx/power.cpp
wangyanjunmsn/vi-firmware
a5940ab6c773457d4c41e80273ae0ce327164d60
[ "BSD-3-Clause" ]
89
2015-02-04T00:39:29.000Z
2021-10-03T00:01:17.000Z
#include "power.h" #include "util/log.h" #include "gpio.h" #include "lpc17xx_pinsel.h" #include "lpc17xx_clkpwr.h" #include "lpc17xx_wdt.h" #define POWER_CONTROL_PORT 2 #define POWER_CONTROL_PIN 13 #define PROGRAM_BUTTON_PORT 2 #define PROGRAM_BUTTON_PIN 12 namespace gpio = openxc::gpio; using openxc::gpio::GPIO_VA...
31.671642
85
0.723139
d8ad9b57ba96684e2d202bffd040cf4b8cd25d22
2,228
cpp
C++
src/time.cpp
kushaldalsania/haystack-cpp
95997ae2bca9ea096dc7e61c000291f3ac08d9d7
[ "AFL-3.0" ]
null
null
null
src/time.cpp
kushaldalsania/haystack-cpp
95997ae2bca9ea096dc7e61c000291f3ac08d9d7
[ "AFL-3.0" ]
null
null
null
src/time.cpp
kushaldalsania/haystack-cpp
95997ae2bca9ea096dc7e61c000291f3ac08d9d7
[ "AFL-3.0" ]
null
null
null
// // Copyright (c) 2015, J2 Innovations // Copyright (c) 2012 Brian Frank // Licensed under the Academic Free License version 3.0 // History: // 06 Jun 2011 Brian Frank Creation // 19 Aug 2014 Radu Racariu<radur@2inn.com> Ported to C++ // #include "time.hpp" #include <sstream> #include <ctime> ///////////////...
26.211765
98
0.480251
d8b3a99a7dacc8d1ee20bd5a58d8d53b7dd355e3
40,105
cpp
C++
geometrictools/utils/image_cpu.cpp
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
3
2020-11-07T18:12:50.000Z
2021-06-11T22:56:09.000Z
geometrictools/utils/image_cpu.cpp
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
geometrictools/utils/image_cpu.cpp
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
#include "image.h" #include "image_cpu.h" #include "transforms/interpolation.h" #include "utils/utilities.h" using namespace std; Interval roundIntervalToInt(const Interval& i) { Interval in = i.meet({0, 1}); float inf = in.inf * 255.0f; int inf_lower = floorf(inf); if (inf_lower == roundf(inf)) { inf ...
32.792314
187
0.522279
d8b48ddfbda489b7b393ff79497c2ac72d382948
2,095
cpp
C++
simulation/Rendering/Window.cpp
Terae/3D_Langton_Ant
017dadbe2962018db043bf50e8a6dcd49ade0eac
[ "MIT" ]
null
null
null
simulation/Rendering/Window.cpp
Terae/3D_Langton_Ant
017dadbe2962018db043bf50e8a6dcd49ade0eac
[ "MIT" ]
null
null
null
simulation/Rendering/Window.cpp
Terae/3D_Langton_Ant
017dadbe2962018db043bf50e8a6dcd49ade0eac
[ "MIT" ]
null
null
null
// // Created by benji on 10/11/16. // #include "Window.h" #include "Context.h" void glfwErrorCallback(int error, const char* description) { std::cerr << _RED("There was a glfw error : ") << description << _RED(" (" + std::to_string(error) + ")") << std::endl; } Window::Window(std::string title) { std::cou...
24.08046
123
0.681623
d8bab90ef5648fdbaf3215e78ab86b647e808d74
88
cpp
C++
src/core/Distributor.cpp
jozhalaj/gateway
49168dcbcf833da690048880bb33542ffbc90ce3
[ "BSD-3-Clause" ]
7
2018-06-09T05:55:59.000Z
2021-01-05T05:19:02.000Z
src/core/Distributor.cpp
jozhalaj/gateway
49168dcbcf833da690048880bb33542ffbc90ce3
[ "BSD-3-Clause" ]
1
2019-12-25T10:39:06.000Z
2020-01-03T08:35:29.000Z
src/core/Distributor.cpp
jozhalaj/gateway
49168dcbcf833da690048880bb33542ffbc90ce3
[ "BSD-3-Clause" ]
11
2018-05-10T08:29:05.000Z
2020-01-22T20:49:32.000Z
#include "core/Distributor.h" using namespace BeeeOn; Distributor::~Distributor() { }
11
29
0.738636
d8befa451c1a63907b4b8ddd0f23ce49f4c051be
862
cpp
C++
atcoder/B - Palindrome-philia/AC.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
atcoder/B - Palindrome-philia/AC.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
atcoder/B - Palindrome-philia/AC.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: 2019-12-08 18:03:30 * solution_verdict: AC language: C++14 (GCC 5.4.1) * run...
43.1
111
0.37123
d8bf6f2fc9a378f878a916d6e37e9a41f08a12af
1,313
cpp
C++
libdocscript/src/runtime/procedure/lambda_procedure.cpp
sotvokun/docscript
0718c8943e895672b9570524cd9eb7ff019d079f
[ "MIT" ]
1
2021-12-11T11:04:21.000Z
2021-12-11T11:04:21.000Z
libdocscript/src/runtime/procedure/lambda_procedure.cpp
sotvokun/docscript
0718c8943e895672b9570524cd9eb7ff019d079f
[ "MIT" ]
null
null
null
libdocscript/src/runtime/procedure/lambda_procedure.cpp
sotvokun/docscript
0718c8943e895672b9570524cd9eb7ff019d079f
[ "MIT" ]
null
null
null
#include "libdocscript/runtime/datatype.h" #include "libdocscript/runtime/procedure.h" #include "libdocscript/runtime/value.h" #include "libdocscript/runtime/environment.h" #include "libdocscript/interpreter.h" namespace libdocscript::runtime { // +--------------------+ // Constructor // +--------------------+ ...
25.745098
77
0.600914