hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
7ed02d68dd213deeafc9942003012d4865f18e14
10,429
hh
C++
extern/glow/src/glow/objects/Program.hh
huzjkevin/portal_maze_zgl
efb32b1c3430f20638c1401095999ecb4d0af5aa
[ "MIT" ]
null
null
null
extern/glow/src/glow/objects/Program.hh
huzjkevin/portal_maze_zgl
efb32b1c3430f20638c1401095999ecb4d0af5aa
[ "MIT" ]
null
null
null
extern/glow/src/glow/objects/Program.hh
huzjkevin/portal_maze_zgl
efb32b1c3430f20638c1401095999ecb4d0af5aa
[ "MIT" ]
null
null
null
#pragma once #include <glow/common/gltypeinfo.hh> #include <glow/common/macro_join.hh> #include <glow/common/nodiscard.hh> #include <glow/common/non_copyable.hh> #include <glow/common/property.hh> #include <glow/common/shared.hh> #include <glow/gl.hh> #include <glow/util/LocationMapping.hh> #include "NamedObject.hh...
36.592982
122
0.698149
huzjkevin
7ed08d18a4a54352dac118c13d60f2c6715f9bb7
1,092
cc
C++
leetcode/p6.cc
lhyqie/lhyqie.github.io
d986ac4afddf169a07d4f1de95bcc737368e212b
[ "MIT" ]
null
null
null
leetcode/p6.cc
lhyqie/lhyqie.github.io
d986ac4afddf169a07d4f1de95bcc737368e212b
[ "MIT" ]
null
null
null
leetcode/p6.cc
lhyqie/lhyqie.github.io
d986ac4afddf169a07d4f1de95bcc737368e212b
[ "MIT" ]
null
null
null
#include "common.h" class Solution { public: string longestPalindrome(string s) { int start = 0, max_len = 1; for(int i = 0; i < s.size(); i++){ int len1 = expandAroundCenter(s, i, i); int len2 = expandAroundCenter(s, i, i+1); int len = std::max(len1, len2); if(std::max(len1, len2) > ...
30.333333
112
0.494505
lhyqie
7ed9e9e405f5aad41a90800b91beedbb009328e9
769
hpp
C++
include/Version.hpp
marcosivni/dicomlib
dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7
[ "BSD-3-Clause" ]
null
null
null
include/Version.hpp
marcosivni/dicomlib
dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7
[ "BSD-3-Clause" ]
null
null
null
include/Version.hpp
marcosivni/dicomlib
dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7
[ "BSD-3-Clause" ]
null
null
null
/************************************************************************ * DICOMLIB * Copyright 2003 Sunnybrook and Women's College Health Science Center * Implemented by Trevor Morgan (morgan@sten.sunnybrook.utoronto.ca) * * See LICENSE.txt for copyright and licensing info. ******************************************...
26.517241
74
0.642393
marcosivni
7edaec75b0cf2648a7cee0b07f42f61f99fa1368
389
cpp
C++
cppcode/201710_12/reference.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
cppcode/201710_12/reference.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
cppcode/201710_12/reference.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main() { int a=1; int &b=a; int c=b; b=2; cout<<"a="<<a<<",b="<<b<<",c="<<c<<endl; int d[]={1,2,3,4,5}; int(&e)[5]=d; for(int i=0;i<sizeof(d)/sizeof(d[0]);i++) { e[i]=e[i]*10+e[i]; } for(int i=0;i<sizeof(d)/sizeof(...
16.913043
45
0.411311
jiedou
7edf5e50fc97e2e4a115438d0fe06804eb043f50
1,648
hpp
C++
graph_tree/reroot.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
graph_tree/reroot.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
graph_tree/reroot.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
#pragma once #include<vector> /** * @brief 全方位木DP */ template<typename T,typename F,typename Fix> struct reroot{ std::vector<std::vector<long long>>g; std::vector<int>p_list; std::vector<T>p_table; std::vector<bool>p_checked; std::vector<map<int,T>>table; std::vector<T>ans; T e; F f;...
25.353846
107
0.462985
hotman78
7ee4b87260e8806d0a41f06e5a6ee005bf9bf864
1,963
cpp
C++
apps/opencs/view/doc/operations.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/opencs/view/doc/operations.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/opencs/view/doc/operations.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
#include "operations.hpp" #include <QVBoxLayout> #include <QHBoxLayout> #include "operation.hpp" CSVDoc::Operations::Operations() { /// \todo make widget height fixed (exactly the height required to display all operations) setFeatures (QDockWidget::NoDockWidgetFeatures); QWidget *widgetContainer = new ...
28.042857
104
0.620479
Bodillium
7ee4c63995bffaf76d26ee7753c7496bf6dd7647
10,720
cpp
C++
evs/src/v2/model/ListSnapshotsRequest.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
5
2021-03-03T08:23:43.000Z
2022-02-16T02:16:39.000Z
evs/src/v2/model/ListSnapshotsRequest.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
null
null
null
evs/src/v2/model/ListSnapshotsRequest.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
7
2021-02-26T13:53:35.000Z
2022-03-18T02:36:43.000Z
#include "huaweicloud/evs/v2/model/ListSnapshotsRequest.h" namespace HuaweiCloud { namespace Sdk { namespace Evs { namespace V2 { namespace Model { ListSnapshotsRequest::ListSnapshotsRequest() { offset_ = 0; offsetIsSet_ = false; limit_ = 0; limitIsSet_ = false; name_ = ""; nameIsSet_ = f...
24.814815
116
0.673134
yangzhaofeng
7ee5dd311a7c3ec42cf4eae373c6b0f129fb3ffa
2,332
cpp
C++
School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp
SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming
ab1ca0d0d2187b561750d547e155e768951d29a0
[ "MIT" ]
null
null
null
School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp
SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming
ab1ca0d0d2187b561750d547e155e768951d29a0
[ "MIT" ]
null
null
null
School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp
SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming
ab1ca0d0d2187b561750d547e155e768951d29a0
[ "MIT" ]
null
null
null
# include <bits/stdc++.h> # define F first # define S second # define mp make_pair // everything go according to my plan # define pb push_back # define sz(a) (int)(a.size()) # define vec vector // shimkenttin kyzdary, dzyn, dzyn, dzyn... # define y1 Y_U_NO_y1 # define left Y_U_NO_left # define right Y_U...
19.433333
73
0.496998
SuperPuperMegaUltraEpicGoldenHacker
7ee62dc712cbf004e7453a3de916c97755ceec2b
2,417
cpp
C++
src/zone/call-task.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
9,088
2017-08-08T22:28:16.000Z
2019-05-05T14:57:12.000Z
src/zone/call-task.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
172
2017-08-09T21:32:15.000Z
2019-05-03T21:21:05.000Z
src/zone/call-task.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
370
2017-08-09T04:58:14.000Z
2019-04-13T18:59:29.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // See: https://groups.google.com/forum/#!topic/nodejs/onA0S01INtw #ifdef BUILDING_NODE_EXTENSION #include <node.h> #endif #include "call-task.h" #include <module/core-modules/napa/call-context-wrap.h> #include <napa/log...
38.365079
128
0.695904
localh0rzd
7ee9248ee9f8bd45268bfd3793b758401e95d653
1,892
cpp
C++
SimuVar/Is_Number.cpp
TheArquitect/SimuVar
b6f4965af938706f6de1497494362c4b5c87d01e
[ "BSD-2-Clause" ]
null
null
null
SimuVar/Is_Number.cpp
TheArquitect/SimuVar
b6f4965af938706f6de1497494362c4b5c87d01e
[ "BSD-2-Clause" ]
null
null
null
SimuVar/Is_Number.cpp
TheArquitect/SimuVar
b6f4965af938706f6de1497494362c4b5c87d01e
[ "BSD-2-Clause" ]
null
null
null
/** File : Is_Number.cpp Author : Menashe Rosemberg Created : 2019.02.19 Version: 20190219.1 Check if a string is a number Copyright (c) 2019 TheArquitect (Menashe Rosemberg) rosemberg@ymail.com Redistribution and use in source and binary forms, with or without modification...
44
94
0.708774
TheArquitect
7ef3b326accd80455c869d530b44fecb228876a2
1,124
hpp
C++
src/Message.hpp
relaxtakenotes/xenos
24d19b683e85df54f56cd9a5b2c6416b86e1325d
[ "MIT" ]
4
2021-12-14T13:32:10.000Z
2022-03-08T23:14:58.000Z
src/Message.hpp
relaxtakenotes/xenos
24d19b683e85df54f56cd9a5b2c6416b86e1325d
[ "MIT" ]
1
2021-10-20T14:09:51.000Z
2021-10-20T14:09:51.000Z
src/Message.hpp
relaxtakenotes/xenos
24d19b683e85df54f56cd9a5b2c6416b86e1325d
[ "MIT" ]
null
null
null
#pragma once #include "stdafx.h" #include "Log.h" class Message { enum MsgType { Error, Warning, Info, Question, }; public: static void ShowError( HWND parent, const std::wstring& msg, const std::wstring& title = L"Error" ) { Show( msg, title, Error, parent...
22.938776
109
0.573843
relaxtakenotes
7d0aa05c46f1372bd499f5ec56029f30c8b6d2df
1,072
cpp
C++
Source/UModEditor/SUModPalette.cpp
StoneLineDevTeam/UMod
e57e41b95d8cdcc4479965453ac86e5116178795
[ "BSD-4-Clause" ]
21
2015-09-03T13:17:55.000Z
2022-03-28T15:55:42.000Z
Source/UModEditor/SUModPalette.cpp
StoneLineDevTeam/UMod
e57e41b95d8cdcc4479965453ac86e5116178795
[ "BSD-4-Clause" ]
24
2015-09-19T18:03:30.000Z
2018-12-21T10:53:01.000Z
Source/UModEditor/SUModPalette.cpp
StoneLineDevTeam/UMod
e57e41b95d8cdcc4479965453ac86e5116178795
[ "BSD-4-Clause" ]
17
2015-09-03T13:18:04.000Z
2021-11-24T02:14:11.000Z
#include "UModEditor.h" #include "SUModPalette.h" void SUModPalette::Construct(const FArguments& Args) { /*ChildSlot [ //Creating the button that adds a new item on the list when pressed SNew(SScrollBox) + SScrollBox::Slot() [ //The actual list view creation + SScrollBox::Slot() [ SAssignNew(List...
23.822222
128
0.726679
StoneLineDevTeam
7d0c6614694712d3b9099d1ddf3df2b30ef9d34d
11,175
cpp
C++
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
dalihub/dali-toolk
980728a7e35b8ddd28f70c090243e8076e21536e
[ "Apache-2.0", "BSD-3-Clause" ]
7
2016-11-18T10:26:51.000Z
2021-01-28T13:51:59.000Z
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
dalihub/dali-toolk
980728a7e35b8ddd28f70c090243e8076e21536e
[ "Apache-2.0", "BSD-3-Clause" ]
13
2020-07-15T11:33:03.000Z
2021-04-09T21:29:23.000Z
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
dalihub/dali-toolk
980728a7e35b8ddd28f70c090243e8076e21536e
[ "Apache-2.0", "BSD-3-Clause" ]
10
2019-05-17T07:15:09.000Z
2021-05-24T07:28:08.000Z
/* * Copyright (c) 2020 Samsung Electronics Co., 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...
30.955679
214
0.747383
dalihub
7d10dd6416879b3113cbbcf6fc45aee5d1edc9f8
2,847
cpp
C++
example/tutorial.cpp
anarthal/mysql-asio
13d3615464f41222052d9ad8fa0c86bcdddee537
[ "BSL-1.0" ]
47
2019-10-21T14:54:39.000Z
2020-07-06T19:36:58.000Z
example/tutorial.cpp
anarthal/mysql-asio
13d3615464f41222052d9ad8fa0c86bcdddee537
[ "BSL-1.0" ]
5
2020-03-05T12:03:02.000Z
2020-07-06T18:18:35.000Z
example/tutorial.cpp
anarthal/mysql-asio
13d3615464f41222052d9ad8fa0c86bcdddee537
[ "BSL-1.0" ]
4
2020-03-05T11:28:55.000Z
2020-05-20T09:06:21.000Z
// // Copyright (c) 2019-2022 Ruben Perez Hidalgo (rubenperez038 at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "boost/mysql/connection.hpp" #include <boost/asio/ip/tcp.hpp> #inclu...
29.05102
92
0.645592
anarthal
7d1125330c9522ef1fd250f11ab7a4f8dbb1bc06
3,497
cpp
C++
CNN/activation_test.cpp
suiyili/projects
29b4ab0435c8994809113c444b3dea4fff60b75c
[ "MIT" ]
null
null
null
CNN/activation_test.cpp
suiyili/projects
29b4ab0435c8994809113c444b3dea4fff60b75c
[ "MIT" ]
null
null
null
CNN/activation_test.cpp
suiyili/projects
29b4ab0435c8994809113c444b3dea4fff60b75c
[ "MIT" ]
null
null
null
#ifdef TEST #include <catch2/catch_test_macros.hpp> #include <catch2/catch_approx.hpp> #include "activation_mock.hpp" #include "layer_mock.hpp" #include "test_value.hpp" #include "value_factory_mock.hpp" #include <array> #include <forward_list> #include <future> #include <numeric> using namespace Catch; namespace c...
32.37963
79
0.547612
suiyili
7d12722e884fe5221263bcfc371a702b1c0ca7bf
1,832
cpp
C++
tests/depthai_pybind11_tests.cpp
4ndr3aR/depthai-python
b4fe1211d19280b2f2be8a43912ea818f6f4b5b3
[ "MIT" ]
182
2020-06-25T00:27:12.000Z
2022-03-31T05:06:04.000Z
tests/depthai_pybind11_tests.cpp
4ndr3aR/depthai-python
b4fe1211d19280b2f2be8a43912ea818f6f4b5b3
[ "MIT" ]
206
2020-07-28T22:32:14.000Z
2022-03-31T13:57:59.000Z
tests/depthai_pybind11_tests.cpp
4ndr3aR/depthai-python
b4fe1211d19280b2f2be8a43912ea818f6f4b5b3
[ "MIT" ]
102
2020-08-06T23:02:35.000Z
2022-03-24T19:43:30.000Z
/* tests/pybind11_tests.cpp -- pybind example plugin Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "depthai_pybind11_tests.hpp" #include <functional> #include <...
32.714286
98
0.736354
4ndr3aR
7d16eb73ad5ad9f95d96c26644eecb823e05d550
26,472
cc
C++
Ghidra/rulecompile.cc
fjqisba/E-Decompiler
f598c4205d8b9e4d29172dab0bb2672c75e48af9
[ "MIT" ]
74
2021-03-04T08:12:43.000Z
2022-03-14T13:50:20.000Z
Ghidra/rulecompile.cc
fjqisba/E-Decompiler
f598c4205d8b9e4d29172dab0bb2672c75e48af9
[ "MIT" ]
10
2021-03-05T09:52:10.000Z
2021-07-05T13:48:33.000Z
Ghidra/rulecompile.cc
fjqisba/E-Decompiler
f598c4205d8b9e4d29172dab0bb2672c75e48af9
[ "MIT" ]
15
2021-04-06T14:22:39.000Z
2022-03-29T13:14:47.000Z
/* ### * IP: GHIDRA * * 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 ...
26.183976
124
0.624169
fjqisba
7d1b701c9c52c0c08dbe982a77322b9a4b100356
263
cpp
C++
include-engine/utility.cpp
sgorsten/include-engine
67af882e24beba73ad44621397993e1b6818cf5b
[ "Unlicense" ]
47
2017-03-27T12:37:02.000Z
2021-05-31T12:34:01.000Z
include-engine/utility.cpp
sgorsten/include-engine
67af882e24beba73ad44621397993e1b6818cf5b
[ "Unlicense" ]
3
2017-03-27T12:46:28.000Z
2018-03-24T16:05:05.000Z
include-engine/utility.cpp
sgorsten/include-engine
67af882e24beba73ad44621397993e1b6818cf5b
[ "Unlicense" ]
4
2017-09-05T11:22:40.000Z
2020-05-07T13:17:31.000Z
#include "utility.h" ///////////////// // fail_fast() // ///////////////// #include <Windows.h> #include <iostream> void fail_fast() { if(IsDebuggerPresent()) DebugBreak(); std::cerr << "fail_fast() called." << std::endl; std::exit(EXIT_FAILURE); }
17.533333
52
0.547529
sgorsten
7d20aaa9218edb194a674a4700ca96d0bde3c7d5
1,120
cpp
C++
source/problem0003.cpp
quisseh/project-euler-solutions
68a7d0c1c6cff7a80d6afca7f3542715ee4339eb
[ "MIT" ]
1
2015-12-19T03:48:46.000Z
2015-12-19T03:48:46.000Z
source/problem0003.cpp
quisseh/project-euler-solutions
68a7d0c1c6cff7a80d6afca7f3542715ee4339eb
[ "MIT" ]
null
null
null
source/problem0003.cpp
quisseh/project-euler-solutions
68a7d0c1c6cff7a80d6afca7f3542715ee4339eb
[ "MIT" ]
null
null
null
/* * Largest prime factor * * Problem 3 * * Created by quisseh on 11/2/15. */ #include "problem0003.h" /* * A number will have at most one prime factor * greater than its square root. So loop through * potential prime factors of [target], and * if one is found, reduce [target] by the current * [factor]. If...
32.941176
119
0.608036
quisseh
7d277e232f3c927894e50b38bf10455e88f25aac
14
hpp
C++
src/arrays.hpp
radio-rogal/c-pointers
a4036d0b8ee982f924463dd2fa79afcca7da9d72
[ "Apache-2.0" ]
null
null
null
src/arrays.hpp
radio-rogal/c-pointers
a4036d0b8ee982f924463dd2fa79afcca7da9d72
[ "Apache-2.0" ]
null
null
null
src/arrays.hpp
radio-rogal/c-pointers
a4036d0b8ee982f924463dd2fa79afcca7da9d72
[ "Apache-2.0" ]
null
null
null
void arrays();
14
14
0.714286
radio-rogal
7d3060c0d0ec2fa7ab587beb1e24987212f8d78a
2,625
cpp
C++
Chapter10/testBSPDE1.cpp
alamlam1982/fincpp
470469d35d90fc0fde96f119e329aedbc5f68f89
[ "CECILL-B" ]
null
null
null
Chapter10/testBSPDE1.cpp
alamlam1982/fincpp
470469d35d90fc0fde96f119e329aedbc5f68f89
[ "CECILL-B" ]
null
null
null
Chapter10/testBSPDE1.cpp
alamlam1982/fincpp
470469d35d90fc0fde96f119e329aedbc5f68f89
[ "CECILL-B" ]
null
null
null
// testBSPDE1.cpp // // Testing 1 factor BS model. // // (C) Datasim Education BV 2005 // #include "fdmdirector.cpp" #include "arraymechanisms.cpp" #include <iostream> #include <string> using namespace std; #include "exceldriver.cpp" void printOneExcel(Vector<double, long> & x, Vector<double, long>& func...
16.719745
79
0.629333
alamlam1982
7d3e7c50c315d62a9e01aa1befec07345b2ea650
140
cpp
C++
module8/quiz.cpp
canmenzo/CppExamples
e569edbedeb9ac1afec7b33602ce32014cbe2b05
[ "MIT" ]
null
null
null
module8/quiz.cpp
canmenzo/CppExamples
e569edbedeb9ac1afec7b33602ce32014cbe2b05
[ "MIT" ]
null
null
null
module8/quiz.cpp
canmenzo/CppExamples
e569edbedeb9ac1afec7b33602ce32014cbe2b05
[ "MIT" ]
null
null
null
//quiz.cpp #include <iostream> using namespace std; int main() { char c = 'x'; char *pC = &c; cout << ++(*pC) << endl; }
11.666667
26
0.492857
canmenzo
7d44240b68e343d7452b77f8ac30aafaa0bddca4
494
cpp
C++
flame/toSystem.cpp
ChaosKit/ChaosKit
e7cba03db1ae34160868656ea357c7166ae1d84a
[ "Apache-2.0" ]
3
2021-01-09T17:25:18.000Z
2021-07-11T00:04:22.000Z
flame/toSystem.cpp
ChaosKit/ChaosKit
e7cba03db1ae34160868656ea357c7166ae1d84a
[ "Apache-2.0" ]
1
2021-03-21T13:17:04.000Z
2021-03-21T14:03:46.000Z
flame/toSystem.cpp
ChaosKit/ChaosKit
e7cba03db1ae34160868656ea357c7166ae1d84a
[ "Apache-2.0" ]
1
2020-04-03T16:32:53.000Z
2020-04-03T16:32:53.000Z
#include "toSystem.h" namespace chaoskit::flame { core::TransformSystem toTransformSystem(const System& system) { return {toTransform(system), toParams(system)}; } core::CameraSystem toCameraSystem(const System& system) { core::CameraSystem result{toTransformSystem(system)}; auto cameraTransform = toCameraTra...
23.52381
75
0.742915
ChaosKit
7d472d0cf518b331645510c063203095f8a14064
1,544
cpp
C++
TP1/ex7.cpp
biromiro/feup-cal
d0fe01603e13729a5b91ca2758d8db5aafd2a13c
[ "MIT" ]
null
null
null
TP1/ex7.cpp
biromiro/feup-cal
d0fe01603e13729a5b91ca2758d8db5aafd2a13c
[ "MIT" ]
null
null
null
TP1/ex7.cpp
biromiro/feup-cal
d0fe01603e13729a5b91ca2758d8db5aafd2a13c
[ "MIT" ]
2
2021-04-11T17:31:16.000Z
2021-04-27T14:04:44.000Z
#include "exercises.h" #include <algorithm> #include <vector> #include <numeric> double minimumAverageCompletionTime(std::vector<unsigned int> tasks, std::vector<unsigned int> &orderedTasks) { sort(tasks.begin(), tasks.end()); /* What they want you to do do { permutations.push_back(tasks); }...
28.072727
111
0.619819
biromiro
7d489a715ea88a71eb316a2f9d76283ec7a3169a
67,258
cpp
C++
Visualization/JuceLibraryCode/BinaryData.cpp
opendragon/Core_MPlusM
c82bb00761551a86abe50c86e0df1f247704c848
[ "BSD-3-Clause" ]
null
null
null
Visualization/JuceLibraryCode/BinaryData.cpp
opendragon/Core_MPlusM
c82bb00761551a86abe50c86e0df1f247704c848
[ "BSD-3-Clause" ]
null
null
null
Visualization/JuceLibraryCode/BinaryData.cpp
opendragon/Core_MPlusM
c82bb00761551a86abe50c86e0df1f247704c848
[ "BSD-3-Clause" ]
null
null
null
/* ==================================== JUCER_BINARY_RESOURCE ==================================== This is an auto-generated file: Any edits you make may be overwritten! */ namespace BinaryData { //================== PDOicon.ico ================== static const unsigned char temp_binary_data_0[] = { 0,...
201.371257
254
0.597624
opendragon
7d494e85ccd5ee6a0140412d8217faae1735c7f7
15,433
cpp
C++
src/engine/components/collider/collidermath.cpp
senaademr/CS1950UFinal
efb1d223e68ee02b1386cb8a97200db6faad893d
[ "MIT" ]
null
null
null
src/engine/components/collider/collidermath.cpp
senaademr/CS1950UFinal
efb1d223e68ee02b1386cb8a97200db6faad893d
[ "MIT" ]
null
null
null
src/engine/components/collider/collidermath.cpp
senaademr/CS1950UFinal
efb1d223e68ee02b1386cb8a97200db6faad893d
[ "MIT" ]
null
null
null
#include "collidermath.h" #include "cylindercollider.h" #include "spherecollider.h" #include "boxcollider.h" #include "compoundcollider.h" #include "engine/components/transformcomponent.h" #include "engine/components/physicscomponent.h" #include "engine/components/collisioncomponent.h" #include "engine/basics/gameobj...
36.142857
123
0.694227
senaademr
7d4a266a5b7ad0d0c4cd35de51f121afff7cfadf
6,674
cpp
C++
data/reddit/extract_train.cpp
Sanzo00/NeutronStarLite
57d92d1f7f6cd55c55a83ca086096a710185d531
[ "Apache-2.0" ]
38
2022-03-09T10:29:08.000Z
2022-03-30T13:56:16.000Z
data/reddit/extract_train.cpp
Sanzo00/NeutronStarLite
57d92d1f7f6cd55c55a83ca086096a710185d531
[ "Apache-2.0" ]
3
2022-03-09T10:55:27.000Z
2022-03-17T02:53:58.000Z
data/reddit/extract_train.cpp
Sanzo00/NeutronStarLite
57d92d1f7f6cd55c55a83ca086096a710185d531
[ "Apache-2.0" ]
6
2022-03-10T07:41:31.000Z
2022-03-21T06:36:31.000Z
#include <iostream> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <cstdlib> #include <string.h> #include <cstring> using namespace std; int generate_Mask(int vertices,std::string mask_file){ FILE *fp_mask; fp_mask=fopen(mask_file.c_str(),"w"); for(int i=0;i<vertices;i++){ int a=...
30.336364
79
0.526521
Sanzo00
7d4a3b1a7ab527c9acc73bb0b253608a9dc3274c
1,751
hpp
C++
LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/Common/LogDefines.hpp
wis1906/letsgo-ar-space-generation
02d888a44bb9eb112f308356ab42720529349338
[ "MIT" ]
null
null
null
LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/Common/LogDefines.hpp
wis1906/letsgo-ar-space-generation
02d888a44bb9eb112f308356ab42720529349338
[ "MIT" ]
null
null
null
LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/Common/LogDefines.hpp
wis1906/letsgo-ar-space-generation
02d888a44bb9eb112f308356ab42720529349338
[ "MIT" ]
null
null
null
// ======================================================================================== // ApproxMVBB // Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz // (døt) ch> // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL w...
39.795455
114
0.5494
wis1906
7d552bfe40a9a06401a279e7d57c941c60e47bc7
271
cpp
C++
Shape/Triangle.cpp
AKoudounis/refactored-journey
81719c57104f14b141f0f7cd2aa805f9007ed79e
[ "MIT" ]
null
null
null
Shape/Triangle.cpp
AKoudounis/refactored-journey
81719c57104f14b141f0f7cd2aa805f9007ed79e
[ "MIT" ]
null
null
null
Shape/Triangle.cpp
AKoudounis/refactored-journey
81719c57104f14b141f0f7cd2aa805f9007ed79e
[ "MIT" ]
null
null
null
//Andreas Koudounis 40089191 #include "Triangle.h" Triangle::Triangle(Point* pt1, Point* pt2, Point* pt3) { p1 = pt1; p2 = pt2; p3 = pt3; } Triangle::~Triangle() { std::cout << "Triangle object deleted"; } void Triangle::print() const { }
12.318182
57
0.594096
AKoudounis
7d556cb8fda76759552fbb07b74ac1e8578d8717
1,632
cpp
C++
01.Introduction/01.Introduction/01.Introduction.cpp
zvet80/CppCourse
a8d488dba1ba649dfc6e6d906ed25e506ff30d99
[ "MIT" ]
null
null
null
01.Introduction/01.Introduction/01.Introduction.cpp
zvet80/CppCourse
a8d488dba1ba649dfc6e6d906ed25e506ff30d99
[ "MIT" ]
null
null
null
01.Introduction/01.Introduction/01.Introduction.cpp
zvet80/CppCourse
a8d488dba1ba649dfc6e6d906ed25e506ff30d99
[ "MIT" ]
null
null
null
// 01.Introduction.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> #include <array> using namespace std; void GetLowerUpper(string a) { int lower = 0; int upper = 0; int total = a.length(); for (int i = 0; i < total; i++) { if (int(a[i]) >...
19.902439
111
0.53125
zvet80
7d57e5f2f52270ca7a9a1e338350d563caeaa06d
8,942
cpp
C++
Source/MapperDefinitions.cpp
hamzahamidi/Xidi
d7585ecf23fd17dd5be4e69f63bae08aa0e96988
[ "BSD-3-Clause" ]
1
2021-06-05T00:22:08.000Z
2021-06-05T00:22:08.000Z
Source/MapperDefinitions.cpp
hamzahamidi/Xidi
d7585ecf23fd17dd5be4e69f63bae08aa0e96988
[ "BSD-3-Clause" ]
null
null
null
Source/MapperDefinitions.cpp
hamzahamidi/Xidi
d7585ecf23fd17dd5be4e69f63bae08aa0e96988
[ "BSD-3-Clause" ]
null
null
null
/***************************************************************************** * Xidi * DirectInput interface for XInput controllers. ***************************************************************************** * Authored by Samuel Grossman * Copyright (c) 2016-2021 ********************************************...
61.668966
184
0.576269
hamzahamidi
7d57ea775a493ae0c3d98bd36ba96118ff0b9eb7
1,434
cpp
C++
code/engine.vc2008/xrGame/autosave_manager.cpp
Rikoshet-234/xray-oxygen
eaac3fa4780639152684f3251b8b4452abb8e439
[ "Apache-2.0" ]
7
2018-03-27T12:36:07.000Z
2020-06-26T11:31:52.000Z
code/engine.vc2008/xrGame/autosave_manager.cpp
Rikoshet-234/xray-oxygen
eaac3fa4780639152684f3251b8b4452abb8e439
[ "Apache-2.0" ]
2
2018-05-26T23:17:14.000Z
2019-04-14T18:33:27.000Z
code/engine.vc2008/xrGame/autosave_manager.cpp
Rikoshet-234/xray-oxygen
eaac3fa4780639152684f3251b8b4452abb8e439
[ "Apache-2.0" ]
5
2020-10-18T11:55:26.000Z
2022-03-28T07:21:35.000Z
//////////////////////////////////////////////////////////////////////////// // Module : autosave_manager.cpp // Created : 04.11.2004 // Modified : 04.11.2004 // Author : Dmitriy Iassenev // Description : Autosave manager //////////////////////////////////////////////////////////////////////////// #include "stda...
25.157895
105
0.656206
Rikoshet-234
7d5a2e1d415c9db70ec9fbe0cbcce50dcf3b9933
12,540
cpp
C++
test/validators/validators_factory_test.cpp
itzaayush/jwt-cpp
d892ac9e6caa4ca6b7de546ccfe8a9f8764c0763
[ "MIT" ]
102
2016-09-02T03:57:05.000Z
2022-03-22T12:23:59.000Z
test/validators/validators_factory_test.cpp
itzaayush/jwt-cpp
d892ac9e6caa4ca6b7de546ccfe8a9f8764c0763
[ "MIT" ]
41
2017-01-26T14:57:40.000Z
2020-10-16T11:28:49.000Z
test/validators/validators_factory_test.cpp
itzaayush/jwt-cpp
d892ac9e6caa4ca6b7de546ccfe8a9f8764c0763
[ "MIT" ]
55
2017-02-11T22:27:14.000Z
2022-03-31T08:29:22.000Z
#include <fstream> #include <memory> #include <string> #include "./constants.h" #include "gtest/gtest.h" #include "jwt/hmacvalidator.h" #include "jwt/jwt.h" #include "jwt/messagevalidatorfactory.h" #include "jwt/nonevalidator.h" #include "jwt/rsavalidator.h" // Test for the various validators. TEST(parse_test, proper_...
35.625
93
0.589394
itzaayush
7d5d6898d50e1481b8849485887fa8d1a9f5aa9c
6,065
cpp
C++
tengine/tools/toyviewer.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
5
2015-07-03T18:42:32.000Z
2017-08-25T10:28:12.000Z
tengine/tools/toyviewer.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
null
null
null
tengine/tools/toyviewer.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
null
null
null
#include "toyviewer.h" #include <tinker_platform.h> #include <files.h> #include <glgui/rootpanel.h> #include <glgui/menu.h> #include <glgui/filedialog.h> #include <glgui/checkbox.h> #include <models/models.h> #include <tinker/application.h> #include <renderer/game_renderingcontext.h> #include <renderer/game_renderer....
23.060837
107
0.716076
BSVino
7d5f50a48f7e26b4301ed55a2c8703c9ffafe22b
2,428
cpp
C++
SiteData.cpp
RCjig/pw_manager
ed4da0ebccb6ab20813598ecf5731f0411f274e6
[ "Apache-2.0" ]
null
null
null
SiteData.cpp
RCjig/pw_manager
ed4da0ebccb6ab20813598ecf5731f0411f274e6
[ "Apache-2.0" ]
null
null
null
SiteData.cpp
RCjig/pw_manager
ed4da0ebccb6ab20813598ecf5731f0411f274e6
[ "Apache-2.0" ]
null
null
null
#include "SiteData.h" #include <ios> #include <iostream> using namespace std; static int callback(void * used, int argc, char ** argv, char ** szColName) { // set pointer structs values select_wrapper * encSelect = (select_wrapper *) used; encSelect->password = string(argv[0]); // get rid of warning if (0 ...
25.291667
92
0.645387
RCjig
7d5f54a7c49337653bb4f4e20ceed3b0b7ae30ed
6,300
cpp
C++
src/orbital/graphics/Graphics.cpp
JohannesMP/orbital
9dca53deb6989fbe4c5171c4e9517c2e548ea3fa
[ "MIT" ]
null
null
null
src/orbital/graphics/Graphics.cpp
JohannesMP/orbital
9dca53deb6989fbe4c5171c4e9517c2e548ea3fa
[ "MIT" ]
null
null
null
src/orbital/graphics/Graphics.cpp
JohannesMP/orbital
9dca53deb6989fbe4c5171c4e9517c2e548ea3fa
[ "MIT" ]
1
2018-10-23T23:53:00.000Z
2018-10-23T23:53:00.000Z
// // Created by jim on 24.01.18. // #include "Graphics.h" #include <glm/gtx/matrix_transform_2d.hpp> #include <orbital/math/elementary.h> #include <orbital/common/convert.h> Graphics::Graphics( size_t const rows, size_t cols ) { if (0 == rows) { throw std::runtime_error{"graphics cann...
20.257235
115
0.61
JohannesMP
7d661387415c9fd340937d5049995710e681adb0
2,017
inl
C++
Common/DyMath/Include/Math/Common/Inline/XGlobalUtilities/GetBiggerType.inl
liliilli/DianYing
6e19f67e5d932e346a0ce63a648bed1a04ef618e
[ "MIT" ]
4
2019-03-17T19:46:54.000Z
2019-12-09T20:11:01.000Z
Common/DyMath/Include/Math/Common/Inline/XGlobalUtilities/GetBiggerType.inl
liliilli/DianYing
6e19f67e5d932e346a0ce63a648bed1a04ef618e
[ "MIT" ]
11
2019-06-09T13:53:27.000Z
2020-02-09T09:47:28.000Z
Common/DyMath/Include/Math/Common/Inline/XGlobalUtilities/GetBiggerType.inl
liliilli/DianYing
6e19f67e5d932e346a0ce63a648bed1a04ef618e
[ "MIT" ]
1
2019-06-04T15:20:18.000Z
2019-06-04T15:20:18.000Z
#pragma once /// /// MIT License /// Copyright (c) 2018-2019 Jongmin Yun /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUT...
38.056604
86
0.752603
liliilli
de097b69e3439a94ca773bf913638ce2add4e97a
115,226
cpp
C++
Source/Decoda/Decoda/LuaInject/LuaDll.cpp
KoSukeWork/BabeLua
0904f8ba15174fcfe88d75e37349c4f4f15403ef
[ "MIT" ]
null
null
null
Source/Decoda/Decoda/LuaInject/LuaDll.cpp
KoSukeWork/BabeLua
0904f8ba15174fcfe88d75e37349c4f4f15403ef
[ "MIT" ]
null
null
null
Source/Decoda/Decoda/LuaInject/LuaDll.cpp
KoSukeWork/BabeLua
0904f8ba15174fcfe88d75e37349c4f4f15403ef
[ "MIT" ]
1
2020-12-07T13:47:47.000Z
2020-12-07T13:47:47.000Z
/* Decoda Copyright (C) 2007-2013 Unknown Worlds Entertainment, Inc. This file is part of Decoda. Decoda is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any...
31.534209
185
0.63523
KoSukeWork
de0b01b7a122dc6a5665f7aa8c2ea7043f687258
1,065
cpp
C++
backends/mysql/factory.cpp
staticlibs/lookaside_soci
b3326cff7d4cf2dc122179eb8b988f2521944550
[ "BSL-1.0" ]
null
null
null
backends/mysql/factory.cpp
staticlibs/lookaside_soci
b3326cff7d4cf2dc122179eb8b988f2521944550
[ "BSL-1.0" ]
null
null
null
backends/mysql/factory.cpp
staticlibs/lookaside_soci
b3326cff7d4cf2dc122179eb8b988f2521944550
[ "BSL-1.0" ]
null
null
null
// // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton // MySQL backend copyright (C) 2006 Pawel Aleksander Fedorynski // 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) // #define SOCI_MYSQL_SOURCE ...
23.152174
68
0.728638
staticlibs
de1512531606f78f11f625dbbea6669b2579e2e4
1,843
cpp
C++
CK2ToEU4/Source/Mappers/MonumentsMapper/BuildTriggerBuilder.cpp
Zemurin/CK2ToEU4
f28971fb877497cc4117689d1600a8721466c365
[ "MIT" ]
3
2020-05-06T21:50:00.000Z
2022-03-15T19:16:19.000Z
CK2ToEU4/Source/Mappers/MonumentsMapper/BuildTriggerBuilder.cpp
Zemurin/CK2ToEU4
f28971fb877497cc4117689d1600a8721466c365
[ "MIT" ]
3
2022-02-01T19:35:02.000Z
2022-03-02T17:34:16.000Z
CK2ToEU4/Source/Mappers/MonumentsMapper/BuildTriggerBuilder.cpp
Zemurin/CK2ToEU4
f28971fb877497cc4117689d1600a8721466c365
[ "MIT" ]
1
2020-05-06T21:50:04.000Z
2020-05-06T21:50:04.000Z
#include "BuildTriggerBuilder.h" #include "CommonRegexes.h" #include "ParserHelpers.h" #include <iomanip> mappers::BuildTriggerBuilder::BuildTriggerBuilder() { registerKeys(); clearRegisteredKeywords(); } mappers::BuildTriggerBuilder::BuildTriggerBuilder(std::istream& theStream) { registerKeys(); parseStream(theS...
37.612245
120
0.708627
Zemurin
de1762591476a9ae30810597e9db0c6e6f0d2d72
3,001
hpp
C++
include/paal/greedy/knapsack_unbounded_two_app.hpp
Kommeren/AA
e537b58d50e93d4a72709821b9ea413008970c6b
[ "BSL-1.0" ]
null
null
null
include/paal/greedy/knapsack_unbounded_two_app.hpp
Kommeren/AA
e537b58d50e93d4a72709821b9ea413008970c6b
[ "BSL-1.0" ]
null
null
null
include/paal/greedy/knapsack_unbounded_two_app.hpp
Kommeren/AA
e537b58d50e93d4a72709821b9ea413008970c6b
[ "BSL-1.0" ]
1
2021-02-24T06:23:56.000Z
2021-02-24T06:23:56.000Z
//======================================================================= // Copyright (c) 2013 Piotr Wygocki // // 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) //=================================================...
37.049383
99
0.682439
Kommeren
de186757d5f211e9eefcc8284dab4f7f0f29630d
1,920
hpp
C++
include/clotho/cuda/sampling/random_sample_sequence.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:27:57.000Z
2022-01-25T23:26:54.000Z
include/clotho/cuda/sampling/random_sample_sequence.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:12:42.000Z
2015-06-23T12:41:00.000Z
include/clotho/cuda/sampling/random_sample_sequence.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// Copyright 2015 Patrick Putnam // // 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...
32.542373
80
0.657292
putnampp
de1bc3d98cf3febde5e05f2ab8b3ce6f4fabfdc4
2,739
cpp
C++
src/ssd/NVM_Transaction_Flash.cpp
rakeshnadig/MQSIM_Fine_Grained_Mapping_Reference
61546ccbae3ecd4312757cb54ac9af5a0d01e9ae
[ "MIT" ]
null
null
null
src/ssd/NVM_Transaction_Flash.cpp
rakeshnadig/MQSIM_Fine_Grained_Mapping_Reference
61546ccbae3ecd4312757cb54ac9af5a0d01e9ae
[ "MIT" ]
null
null
null
src/ssd/NVM_Transaction_Flash.cpp
rakeshnadig/MQSIM_Fine_Grained_Mapping_Reference
61546ccbae3ecd4312757cb54ac9af5a0d01e9ae
[ "MIT" ]
null
null
null
#include "NVM_Transaction_Flash.h" #include "assert.h" namespace SSD_Components { NVM_Transaction_Flash::NVM_Transaction_Flash( Transaction_Source_Type source, Transaction_Type type, stream_id_type stream_id, unsigned int data_size_in_byte, LPA_type lpa, PPA_type ppa, User_Request* user_requ...
22.08871
70
0.700256
rakeshnadig
de1cad88979b70e2929438d25bd08990d0b61807
571
cpp
C++
Hackerrank/Ice Cream Parlor.cpp
SurgicalSteel/Competitive-Programming
3662b676de94796f717b25dc8d1b93c6851fb274
[ "MIT" ]
14
2016-02-11T09:26:13.000Z
2022-03-27T01:14:29.000Z
Hackerrank/Ice Cream Parlor.cpp
SurgicalSteel/Competitive-Programming
3662b676de94796f717b25dc8d1b93c6851fb274
[ "MIT" ]
null
null
null
Hackerrank/Ice Cream Parlor.cpp
SurgicalSteel/Competitive-Programming
3662b676de94796f717b25dc8d1b93c6851fb274
[ "MIT" ]
7
2016-10-25T19:29:35.000Z
2021-12-05T18:31:39.000Z
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int tc,m,n,temp; scanf("%d",&tc); for(int i=0;i<tc;i++) { vector<int> v; cin>>m>>n; for(int x=0;x<n;x++) { cin>>temp; v....
19.033333
42
0.401051
SurgicalSteel
de1d06e0de9697325f3340fbd3fbeb80b7bd7893
499
cpp
C++
app/src/main/cpp/src/meshes/sphere.cpp
danielesteban/GLTest
62f9e45adc1073d3d8ad5072266dc8a353f6e421
[ "MIT" ]
3
2018-01-01T14:27:29.000Z
2019-01-20T03:14:41.000Z
app/src/main/cpp/src/meshes/sphere.cpp
danielesteban/GLTest
62f9e45adc1073d3d8ad5072266dc8a353f6e421
[ "MIT" ]
null
null
null
app/src/main/cpp/src/meshes/sphere.cpp
danielesteban/GLTest
62f9e45adc1073d3d8ad5072266dc8a353f6e421
[ "MIT" ]
null
null
null
#include "sphere.hpp" void Sphere::init(btDiscreteDynamicsWorld *world, Model *model, const btVector3 position) { Mesh::init(world, model, position, btQuaternion(0.0f, 0.0f, 0.0f, 1.0f), btScalar(5.0f)); albedo = glm::vec4( (float) rand() / (float) RAND_MAX, (float) rand() / (float) RAND_MAX, (float) r...
29.352941
91
0.661323
danielesteban
de20076bcede28ced3262762f5efb7d754b21b9f
2,441
cpp
C++
ICPC/UESTC_kanna_prpr training - 2017-11-21 /h.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
ICPC/UESTC_kanna_prpr training - 2017-11-21 /h.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
ICPC/UESTC_kanna_prpr training - 2017-11-21 /h.cpp
emengdeath/acmcode
cc1b0e067464e754d125856004a991d6eb92a2cd
[ "MIT" ]
null
null
null
#include<iostream> #include<algorithm> #include<cstdio> #define N 1000000 using namespace std; int f[N][2],size[N]; int n,tot; int g[N],d[N],a[N][4],fa[N],b[N]; struct node{ int x,l,r; }c[N]; int sum; void ins(int x,int y){ a[++sum][0]=y,a[sum][1]=g[x],g[x]=sum; } void dfs(int x){ size[x]=1; for (int i=g[x];i;i=a[...
19.373016
74
0.436706
emengdeath
de24e400710212eb9a22f123a370205a326213a9
1,424
cpp
C++
src/States/Menu/MainMenu.cpp
BertilBraun/MyClone
9573084e9a561b91995683ba016088174414a545
[ "MIT" ]
4
2019-01-10T18:39:53.000Z
2022-01-15T21:38:28.000Z
src/States/Menu/MainMenu.cpp
BOTOrtwin/MyClone
9573084e9a561b91995683ba016088174414a545
[ "MIT" ]
14
2018-09-30T21:48:35.000Z
2018-10-05T08:46:40.000Z
src/States/Menu/MainMenu.cpp
BOTOrtwin/MyClone
9573084e9a561b91995683ba016088174414a545
[ "MIT" ]
1
2019-12-23T19:35:54.000Z
2019-12-23T19:35:54.000Z
#include "MainMenu.h" #include "Utils/ToggleKey.h" #include "Application.h" #include "MenuWorldSelect.h" MainMenu::MainMenu(Application& applic) : StateBase(applic), background(glm::vec2(0.5f, 0.5f), glm::vec2(1, 1), "GUI/background.jpg", (*app->getWindow())) { buttons.emplace_back(glm::vec2(0.5f, 0.4f), glm::vec2...
27.921569
172
0.67486
BertilBraun
de27a6c8f9bbc73849ed220220a0e518f1332b0c
10,225
cpp
C++
OpenGL3DRendering/src/Renderer/Renderer.cpp
Sarius587/OpenGL3DRendering
fb87593a2c36c473ae5665fba6f16cfb55461b21
[ "Apache-2.0" ]
1
2020-06-01T06:35:39.000Z
2020-06-01T06:35:39.000Z
OpenGL3DRendering/src/Renderer/Renderer.cpp
Sarius587/OpenGL3DRendering
fb87593a2c36c473ae5665fba6f16cfb55461b21
[ "Apache-2.0" ]
null
null
null
OpenGL3DRendering/src/Renderer/Renderer.cpp
Sarius587/OpenGL3DRendering
fb87593a2c36c473ae5665fba6f16cfb55461b21
[ "Apache-2.0" ]
null
null
null
#include "oglpch.h" #include "Renderer.h" #include "RendererAPI.h" #include "Framebuffer.h" namespace OpenGLRendering { struct MeshInfo { Ref<VertexArray> VertexArray; Ref<Material> Material; glm::mat4 ModelMatrix; }; struct RendererData { Ref<Camera> Camera; Ref<Cubemap> Cubemap; Ref<Shader> PBR...
36.3879
200
0.757653
Sarius587
de2e81e9973c5234f6acbefde666cdf584e596e1
6,211
cc
C++
src/STP.cc
VadimNvr/SDN_RunOS
74df09f78f8672f144a283823b24de3106f8e419
[ "Apache-2.0" ]
null
null
null
src/STP.cc
VadimNvr/SDN_RunOS
74df09f78f8672f144a283823b24de3106f8e419
[ "Apache-2.0" ]
null
null
null
src/STP.cc
VadimNvr/SDN_RunOS
74df09f78f8672f144a283823b24de3106f8e419
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2015 Applied Research Center for Computer Networks * * 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 b...
28.62212
88
0.596844
VadimNvr
de3d806a2ca4d876c343358a63de74ae59c8d1e9
1,096
hpp
C++
Octree/OctreeLeaf.hpp
kashinoleg/Octree
3eef96c1dc2b0369eb72e56b20e8fc7feca9d1e5
[ "ICU" ]
null
null
null
Octree/OctreeLeaf.hpp
kashinoleg/Octree
3eef96c1dc2b0369eb72e56b20e8fc7feca9d1e5
[ "ICU" ]
null
null
null
Octree/OctreeLeaf.hpp
kashinoleg/Octree
3eef96c1dc2b0369eb72e56b20e8fc7feca9d1e5
[ "ICU" ]
null
null
null
#pragma once #include "OctreeArray.hpp" #include "OctreeCell.hpp" #include "OctreeBranch.hpp" /** * outer node implementation of an octree cell.stores pointers to items. */ namespace hxa { class OctreeLeaf : public OctreeCell { private: OctreeArray<const void*> items_m; public: OctreeLeaf(); OctreeLeaf(const ...
34.25
130
0.75365
kashinoleg
de432f1072702f047a9ff38adc61b3285afe52ba
412
hpp
C++
src/Generator.hpp
ageorgiev97/yat
293adda152025d7c7bfbb2e982aa9d2ff5a461d9
[ "Apache-2.0" ]
1
2019-12-11T21:50:13.000Z
2019-12-11T21:50:13.000Z
src/Generator.hpp
ageorgiev97/yat
293adda152025d7c7bfbb2e982aa9d2ff5a461d9
[ "Apache-2.0" ]
4
2019-11-30T21:55:18.000Z
2019-11-30T23:00:08.000Z
src/Generator.hpp
ageorgiev97/yat
293adda152025d7c7bfbb2e982aa9d2ff5a461d9
[ "Apache-2.0" ]
null
null
null
#pragma once #include <memory> #include <unordered_map> #include "Llvm.hpp" #include "Expressions.hpp" #include "Statements.hpp" #include "Scope.hpp" #include "Function.hpp" namespace yat { extern llvm::LLVMContext GlobalContext; extern std::unique_ptr<llvm::Module> GlobalModule; extern std::unordered_...
19.619048
63
0.742718
ageorgiev97
de43e22d76b73a49cbfe76e8f08efcf00e7cedbe
3,766
cpp
C++
python/src/distance/edge_edge.cpp
ipc-sim/ipc-toolk
81873d0288810e30166d871419da4104329860e3
[ "MIT" ]
61
2020-08-04T21:08:25.000Z
2022-02-25T02:24:31.000Z
python/src/distance/edge_edge.cpp
dbelgrod/ipc-toolkit
0b7ca9b5f867db63bd68dd02ce54a9d00b0fc337
[ "MIT" ]
2
2020-10-12T05:54:40.000Z
2021-10-10T18:39:30.000Z
python/src/distance/edge_edge.cpp
dbelgrod/ipc-toolkit
0b7ca9b5f867db63bd68dd02ce54a9d00b0fc337
[ "MIT" ]
7
2020-11-26T12:47:38.000Z
2022-03-25T04:55:49.000Z
#include <pybind11/pybind11.h> #include <pybind11/eigen.h> #include <ipc/distance/distance_type.hpp> #include <ipc/distance/edge_edge.hpp> #include "../utils.hpp" namespace py = pybind11; using namespace ipc; void define_edge_edge_distance_functions(py::module_& m) { m.def( "edge_edge_distance", ...
34.87037
78
0.568508
ipc-sim
de49013ba0bb5819c9de5d827f8a9f5731b10d95
1,843
cpp
C++
SGPLibraryCode/modules/sgp_particle/core/sgp_SPARK_Emitter.cpp
phoenixzz/VoronoiMapGen
5afd852f8bb0212baba9d849178eb135f62df903
[ "MIT" ]
11
2017-03-03T03:31:15.000Z
2019-03-01T17:09:12.000Z
SGPLibraryCode/modules/sgp_particle/core/sgp_SPARK_Emitter.cpp
phoenixzz/VoronoiMapGen
5afd852f8bb0212baba9d849178eb135f62df903
[ "MIT" ]
null
null
null
SGPLibraryCode/modules/sgp_particle/core/sgp_SPARK_Emitter.cpp
phoenixzz/VoronoiMapGen
5afd852f8bb0212baba9d849178eb135f62df903
[ "MIT" ]
2
2017-03-03T03:31:17.000Z
2021-05-27T21:50:43.000Z
Emitter::Emitter() : Registerable(), Transformable(), zone( &getDefaultZone() ), full(true), tank(-1), flow(0.0f), forceMin(0.0f), forceMax(0.0f), fraction( random(0.0f,1.0f) ), active(true) {} Zone& Emitter::getDefaultZone() { static PointZone defaultZone; return defaultZone; } void Emitter::registerChil...
17.721154
71
0.689094
phoenixzz
de4bb4c00d0cac29cdc3be2ad9870fa1e1ae63dc
1,414
hpp
C++
src/meshInfo/geometry.hpp
guhanfeng/HSF
d2f091e990bb5a18473db0443872e37de6b6a83f
[ "Apache-2.0" ]
null
null
null
src/meshInfo/geometry.hpp
guhanfeng/HSF
d2f091e990bb5a18473db0443872e37de6b6a83f
[ "Apache-2.0" ]
null
null
null
src/meshInfo/geometry.hpp
guhanfeng/HSF
d2f091e990bb5a18473db0443872e37de6b6a83f
[ "Apache-2.0" ]
null
null
null
/** * @file: compute.hpp * @author: Liu Hongbin * @brief: * @date: 2019-11-28 10:39:09 * @last Modified by: lenovo * @last Modified time: 2019-11-28 16:13:43 */ #ifndef GEOMETRY_HPP #define GEOMETRY_HPP #include <cmath> #include "utilities.hpp" namespace HSF { // face area scalar calculateQUADArea(const Array<s...
27.72549
73
0.729137
guhanfeng
de4dc80505f378ad0c688b4bd30bc1c4e8f56282
21,265
cpp
C++
hackathon/zhi/mapping3D_swc/mapping3D_swc_plugin.cpp
RivuletStudio/vaa3d_tools
58c267d4731df9a71e596200c45e9634aea8491c
[ "MIT" ]
null
null
null
hackathon/zhi/mapping3D_swc/mapping3D_swc_plugin.cpp
RivuletStudio/vaa3d_tools
58c267d4731df9a71e596200c45e9634aea8491c
[ "MIT" ]
1
2016-12-03T05:33:13.000Z
2016-12-03T05:33:13.000Z
hackathon/zhi/mapping3D_swc/mapping3D_swc_plugin.cpp
RivuletStudio/vaa3d_tools
58c267d4731df9a71e596200c45e9634aea8491c
[ "MIT" ]
null
null
null
/* mapping3D_swc_plugin.cpp * This is a test plugin, you can use it as a demo. * 2015-6-25 : by Zhi Zhou */ #include "v3d_message.h" #include <vector> #include "mapping3D_swc_plugin.h" #include "openSWCDialog.h" #include "../neurontracing_mip/my_surf_objs.h" #include "../neurontracing_mip/smooth_curve.h" #include ...
33.541009
162
0.452104
RivuletStudio
de4f2c08e0ce27edb82f5bf71f7a60466fea9d61
3,530
cpp
C++
android-31/java/security/cert/CertificateFactory.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/java/security/cert/CertificateFactory.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/java/security/cert/CertificateFactory.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../io/InputStream.hpp" #include "../../../JString.hpp" #include "../Provider.hpp" #include "./CRL.hpp" #include "./CertPath.hpp" #include "./Certificate.hpp" #include "./CertificateFactorySpi.hpp" #include "./CertificateFactory.hpp" namespace java::security::cert { // Fields // QJniObject forward Cer...
27.364341
118
0.724363
YJBeetle
de53b158c280826d87aad3d27c95fcec1b745b1a
4,999
cc
C++
modules/canbus/vehicle/wey/protocol/fail_241.cc
Shokoofeh/apollo
71d6ea753b4595eb38cc54d6650c8de677b173df
[ "Apache-2.0" ]
2
2019-02-21T05:52:59.000Z
2019-07-27T03:24:16.000Z
modules/canbus/vehicle/wey/protocol/fail_241.cc
Shokoofeh/apollo
71d6ea753b4595eb38cc54d6650c8de677b173df
[ "Apache-2.0" ]
null
null
null
modules/canbus/vehicle/wey/protocol/fail_241.cc
Shokoofeh/apollo
71d6ea753b4595eb38cc54d6650c8de677b173df
[ "Apache-2.0" ]
1
2021-12-03T23:30:00.000Z
2021-12-03T23:30:00.000Z
/****************************************************************************** * Copyright 2019 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
41.658333
80
0.625925
Shokoofeh
de584d8d2205e07aa38d7dcf7a51f33f803960b8
4,690
cpp
C++
drivers/I2C_SPI/AusExGroveI2cTouchSensor/src/AusExGroveI2cTouchSensor.cpp
houtbrion/AusEx
fd74cbab4281da6ba4f285412f2d1f53f40206c9
[ "Apache-1.1" ]
null
null
null
drivers/I2C_SPI/AusExGroveI2cTouchSensor/src/AusExGroveI2cTouchSensor.cpp
houtbrion/AusEx
fd74cbab4281da6ba4f285412f2d1f53f40206c9
[ "Apache-1.1" ]
null
null
null
drivers/I2C_SPI/AusExGroveI2cTouchSensor/src/AusExGroveI2cTouchSensor.cpp
houtbrion/AusEx
fd74cbab4281da6ba4f285412f2d1f53f40206c9
[ "Apache-1.1" ]
null
null
null
#include "AusExGroveI2cTouchSensor.h" /* * */ AUSEX_GROVE_I2C_TOUCH_SENSOR_CLASS::AUSEX_GROVE_I2C_TOUCH_SENSOR_CLASS(TwoWire *theWire, int32_t sensorID ){ _i2c_if=theWire; _sensorID=sensorID; } bool AUSEX_GROVE_I2C_TOUCH_SENSOR_CLASS::begin(uint32_t addr){ _i2c_addr=addr; _i2c_if->begin(); mpr121Setup();...
30.258065
142
0.724733
houtbrion
de5b72aaeb5f997dd3537633617d4e1a3bcdc334
533
hpp
C++
src/include/XESystem.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
11
2017-01-17T15:02:25.000Z
2020-11-27T16:54:42.000Z
src/include/XESystem.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
9
2016-10-23T20:15:38.000Z
2018-02-06T11:23:17.000Z
src/include/XESystem.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
2
2019-08-29T10:23:51.000Z
2020-04-03T06:08:34.000Z
#ifndef XE_INTERFACE_SYSTEM_HPP #define XE_INTERFACE_SYSTEM_HPP //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// //#include <XESystem/gkDebugger.h> #include <XESystem/SystemConfig.hpp> //#include <ThirdParty/plog/Log.h> // //INITIALIZE...
28.052632
60
0.420263
devxkh
de5ce2395e0a1a352fadf0042b3eec426822b9f2
1,106
hh
C++
nel/src/memory.hh
jwebb68/nel
a5bfe9038921448da52cdeeba45984a54d79423c
[ "MIT" ]
null
null
null
nel/src/memory.hh
jwebb68/nel
a5bfe9038921448da52cdeeba45984a54d79423c
[ "MIT" ]
null
null
null
nel/src/memory.hh
jwebb68/nel
a5bfe9038921448da52cdeeba45984a54d79423c
[ "MIT" ]
null
null
null
#ifndef NEL_MEMORY_HH #define NEL_MEMORY_HH #include <cstdint> // uint8_t #include <cstddef> // size_t #include <utility> // std::move, std::swap namespace nel { void memcpy(uint8_t *const d, uint8_t const *const s, size_t const n) noexcept; void memset(uint8_t *const d, uint8_t const s, size_t const n) noexcept; v...
20.109091
79
0.618445
jwebb68
de60633e2d2eb8f8099ed123e45c1e17d7d1892b
227
hpp
C++
CCP4M_Old/include/ProjectManagement/ProjectFileGenerator.hpp
Electrux/CCPP-Code
3c5e5b866cf050c11bced9651b112eb31dd2465d
[ "BSD-3-Clause" ]
6
2019-08-29T23:31:17.000Z
2021-11-14T20:35:47.000Z
CCP4M_Old/include/ProjectManagement/ProjectFileGenerator.hpp
Electrux/CCPP-Code
3c5e5b866cf050c11bced9651b112eb31dd2465d
[ "BSD-3-Clause" ]
null
null
null
CCP4M_Old/include/ProjectManagement/ProjectFileGenerator.hpp
Electrux/CCPP-Code
3c5e5b866cf050c11bced9651b112eb31dd2465d
[ "BSD-3-Clause" ]
1
2019-09-01T12:22:58.000Z
2019-09-01T12:22:58.000Z
#ifndef PROJECTFILEGENERATOR_HPP #define PROJECTFILEGENERATOR_HPP #include "ProjectData.hpp" #include "FSFuncs.hpp" #include "ConfigMgr.hpp" int GenerateProjectFiles( ProjectData & data ); #endif // PROJECTFILEGENERATOR_HPP
20.636364
47
0.810573
Electrux
de6207b4dcb7fcfddaae34e792c0b597dfc72b3a
3,378
hpp
C++
include/RaZ/Math/MathUtils.hpp
Sausty/RaZ
211cc1c0c4a7374520a3141fc069b7717e2e5e0f
[ "MIT" ]
null
null
null
include/RaZ/Math/MathUtils.hpp
Sausty/RaZ
211cc1c0c4a7374520a3141fc069b7717e2e5e0f
[ "MIT" ]
null
null
null
include/RaZ/Math/MathUtils.hpp
Sausty/RaZ
211cc1c0c4a7374520a3141fc069b7717e2e5e0f
[ "MIT" ]
null
null
null
#pragma once #ifndef RAZ_MATHUTILS_HPP #define RAZ_MATHUTILS_HPP #include <algorithm> #include <cassert> #include <type_traits> namespace Raz::MathUtils { /// Computes the linear interpolation between two values, according to a coefficient. /// \tparam T Type to compute the interpolation with. /// \param min Minimu...
43.87013
149
0.65897
Sausty
de62423217435b714daacef3ad51497d1a4d690a
3,286
hpp
C++
Axis.CommonLibrary/domain/elements/DoF.hpp
renato-yuzup/axis-fem
2e8d325eb9c8e99285f513b4c1218ef53eb0ab22
[ "MIT" ]
2
2021-07-23T08:49:54.000Z
2021-07-29T22:07:30.000Z
Axis.CommonLibrary/domain/elements/DoF.hpp
renato-yuzup/axis-fem
2e8d325eb9c8e99285f513b4c1218ef53eb0ab22
[ "MIT" ]
null
null
null
Axis.CommonLibrary/domain/elements/DoF.hpp
renato-yuzup/axis-fem
2e8d325eb9c8e99285f513b4c1218ef53eb0ab22
[ "MIT" ]
null
null
null
/// <summary> /// Contains the definition for the class axis::domain::elements::DoF. /// </summary> /// <author>Renato T. Yamassaki</author> #pragma once #include "foundation/Axis.CommonLibrary.hpp" #include "foundation/memory/pointer.hpp" #include "nocopy.hpp" namespace axis { namespace domain { namespace boundary_...
30.146789
101
0.673767
renato-yuzup
de69117248769fece90923ed8a531e23e9866066
316
cpp
C++
atcoder/abc116/A.cpp
SashiRin/protrode
c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c
[ "MIT" ]
1
2019-08-03T13:42:16.000Z
2019-08-03T13:42:16.000Z
atcoder/abc116/A.cpp
SashiRin/protrode
c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c
[ "MIT" ]
null
null
null
atcoder/abc116/A.cpp
SashiRin/protrode
c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MOD = 1e9 + 7; typedef vector<ll> vll; int main() { vector<int> nums(3); for (int i = 0; i < 3; ++i) { cin >> nums[i]; } sort(nums.begin(), nums.end()); cout << nums[0] * nums[1] / 2 << endl; return 0; }
18.588235
42
0.53481
SashiRin
de69d155868cb9b451780809dc5173551ad2facf
1,188
cpp
C++
洛谷/模拟/P1042.cpp
codehuanglei/-
933a55b5c5a49163f12e0c39b4edfa9c4f01678f
[ "MIT" ]
null
null
null
洛谷/模拟/P1042.cpp
codehuanglei/-
933a55b5c5a49163f12e0c39b4edfa9c4f01678f
[ "MIT" ]
null
null
null
洛谷/模拟/P1042.cpp
codehuanglei/-
933a55b5c5a49163f12e0c39b4edfa9c4f01678f
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; const int MAX = 65535; int arr[MAX] = {0}; char ch; int main(){ for(int i = 1;cin >> ch && ch != 'E'; i++){ if(ch == 'W'){ arr[i] = 1; } if(ch == 'L'){ arr[i] = 2; } } int w = 0, l = 0; for(int i = 1; 1;...
20.842105
47
0.244108
codehuanglei
de6a14af5c852ebfe2b51977061ef15749adf264
1,662
hpp
C++
Source/wali/include/wali/LongestSaturatingPathSemiring.hpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
15
2015-03-07T17:25:57.000Z
2022-02-04T20:17:00.000Z
Source/wali/include/wali/LongestSaturatingPathSemiring.hpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
1
2018-03-03T05:58:55.000Z
2018-03-03T12:26:10.000Z
Source/wali/include/wali/LongestSaturatingPathSemiring.hpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
15
2015-09-25T17:44:35.000Z
2021-07-18T18:25:38.000Z
#ifndef WALI_LONGESTSATURATING_PATH_SEMIRING_HPP #define WALI_LONGESTSATURATING_PATH_SEMIRING_HPP #include "wali/SemElem.hpp" #include "wali/MergeFn.hpp" #include "wali/ref_ptr.hpp" #include "wali/Key.hpp" #include <set> namespace wali { /// This is a funny domain. But maybe it'll be useful? I just use it for ...
24.086957
93
0.561372
jusito
de6b176e78f826c786378659d8757f9f98fae5fa
560
cpp
C++
Chapter_9/overloading_variadic_non-template.cpp
wagnerhsu/packt-CPP-Templates-Up-and-Running
2dcede8bb155d609a1b8d9765bfd4167e3a57289
[ "MIT" ]
null
null
null
Chapter_9/overloading_variadic_non-template.cpp
wagnerhsu/packt-CPP-Templates-Up-and-Running
2dcede8bb155d609a1b8d9765bfd4167e3a57289
[ "MIT" ]
null
null
null
Chapter_9/overloading_variadic_non-template.cpp
wagnerhsu/packt-CPP-Templates-Up-and-Running
2dcede8bb155d609a1b8d9765bfd4167e3a57289
[ "MIT" ]
null
null
null
#include <iostream> void foo(int val1, int val2) { std::cout << "From non-template" << std::endl; std::cout << val1 << " " << val2 << std::endl; } template<typename T> void foo(T val1, T val2) { std::cout << "From non-variadic" << std::endl; std::cout << val1 << " " << val2 << std::endl; } template<typ...
19.310345
50
0.55
wagnerhsu
de6bec73380ead55000e692d1463d900d1472f4a
12,254
cc
C++
src/trace_processor/args_table_unittest.cc
zakerinasab/perfetto
7f86589d1522ce8bfc59f6b569ca52496a53eb79
[ "Apache-2.0" ]
null
null
null
src/trace_processor/args_table_unittest.cc
zakerinasab/perfetto
7f86589d1522ce8bfc59f6b569ca52496a53eb79
[ "Apache-2.0" ]
null
null
null
src/trace_processor/args_table_unittest.cc
zakerinasab/perfetto
7f86589d1522ce8bfc59f6b569ca52496a53eb79
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2018 The Android Open Source Project * * 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...
39.025478
80
0.71952
zakerinasab
de6d301d3637b7189e571f714ed564941bae1ff9
127,143
cpp
C++
src/plugProjectKandoU/vsGameSection.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
33
2021-12-08T11:10:59.000Z
2022-03-26T19:59:37.000Z
src/plugProjectKandoU/vsGameSection.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
6
2021-12-22T17:54:31.000Z
2022-01-07T21:43:18.000Z
src/plugProjectKandoU/vsGameSection.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
2
2022-01-04T06:00:49.000Z
2022-01-26T07:27:28.000Z
#include "Game/VsGameSection.h" #include "types.h" /* Generated from dpostproc .section .ctors, "wa" # 0x80472F00 - 0x804732C0 .4byte __sinit_vsGameSection_cpp .section .rodata # 0x804732E0 - 0x8049E220 .global lbl_8047FF98 lbl_8047FF98: .4byte 0x00000000 .4byte 0x00000000 ...
21.726418
109
0.596313
projectPiki
de6d3617beacfb1559a28d796d311db01954a766
687
cpp
C++
CastleDoctrine/gameSource/sharedServerSecret.cpp
PhilipLudington/CastleDoctrine
443f2b6b0215a6d71515c8887c99b4322965622e
[ "Unlicense" ]
1
2020-01-16T00:07:11.000Z
2020-01-16T00:07:11.000Z
CastleDoctrine/gameSource/sharedServerSecret.cpp
PhilipLudington/CastleDoctrine
443f2b6b0215a6d71515c8887c99b4322965622e
[ "Unlicense" ]
null
null
null
CastleDoctrine/gameSource/sharedServerSecret.cpp
PhilipLudington/CastleDoctrine
443f2b6b0215a6d71515c8887c99b4322965622e
[ "Unlicense" ]
2
2019-09-17T12:08:20.000Z
2020-09-26T00:54:48.000Z
// you can replace this string before building the client in order to // match the shared secret that the server is expecting. // Please don't abuse your power to do this. // Remember that this is an indie game made entirely by one guy and being // run on a shoestring budget server. Making a truly "secure" game, whe...
36.157895
134
0.755459
PhilipLudington
de70f85d4eeb1240a8026a6a5965668e45e018c7
4,633
cpp
C++
Samples/Simple.cpp
QtExcel/QSimpleXlsxWriter
da96975bfd089fcb779fd871c9075e097a8373c0
[ "MIT" ]
13
2019-02-15T06:16:30.000Z
2022-02-17T04:58:49.000Z
Samples/Simple.cpp
umaysahan/QSimpleXlsxWriter
da96975bfd089fcb779fd871c9075e097a8373c0
[ "MIT" ]
1
2019-01-13T07:12:26.000Z
2019-01-13T09:58:27.000Z
Samples/Simple.cpp
umaysahan/QSimpleXlsxWriter
da96975bfd089fcb779fd871c9075e097a8373c0
[ "MIT" ]
6
2019-07-19T01:45:48.000Z
2021-03-17T09:57:59.000Z
#include <cstdio> #include <cstdlib> #include <ctime> #include <iostream> #include <vector> #include <Xlsx/Workbook.h> #ifdef _WIN32 #include <windows.h> #endif #ifdef QT_CORE_LIB #include <QDateTime> #endif using namespace SimpleXlsx; int main() { setlocale( LC_ALL, "" ); time_t CurTime = time( NULL ); ...
37.666667
103
0.690481
QtExcel
de73b5485234ba8ed43297cd580bd6f40f60d4bd
572
cc
C++
atcoder/arc/007/b_maigo_no_cd_case.cc
boobam0618/competitive-programming
0341bd8bb240b1ed0d84cc60db91508242fc867b
[ "MIT" ]
null
null
null
atcoder/arc/007/b_maigo_no_cd_case.cc
boobam0618/competitive-programming
0341bd8bb240b1ed0d84cc60db91508242fc867b
[ "MIT" ]
32
2019-08-15T09:16:48.000Z
2020-02-09T16:23:30.000Z
atcoder/arc/007/b_maigo_no_cd_case.cc
boobam0618/competitive-programming
0341bd8bb240b1ed0d84cc60db91508242fc867b
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> int main() { int cd_case_num, listen_cd_num; std::cin >> cd_case_num >> listen_cd_num; std::vector<int> cds(cd_case_num); for (int i = 0; i < cd_case_num; ++i) { cds.at(i) = i + 1; } int current = 0; for (int i = 0; i < listen_cd_num; ++i) { int listen_cd; ...
22
43
0.536713
boobam0618
de742378fbcc59e333009e743335a1b22585d443
2,594
cpp
C++
outdated/tests/io_copy.cpp
pjsaksa/x0
96b69e5a54b006e3d929b9934c2708f7967371bb
[ "MIT" ]
24
2016-07-10T08:05:11.000Z
2021-11-16T10:53:48.000Z
outdated/tests/io_copy.cpp
pjsaksa/x0
96b69e5a54b006e3d929b9934c2708f7967371bb
[ "MIT" ]
14
2015-04-12T10:45:26.000Z
2016-06-28T22:27:50.000Z
outdated/tests/io_copy.cpp
pjsaksa/x0
96b69e5a54b006e3d929b9934c2708f7967371bb
[ "MIT" ]
4
2016-10-05T17:51:38.000Z
2020-04-20T07:45:23.000Z
// This file is part of the "x0" project, http://xzero.io/ // (c) 2009-2018 Christian Parpart <christian@parpart.family> // // Licensed under the MIT License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of // the License at: http://opensource.org/licenses/...
30.162791
80
0.543562
pjsaksa
de77a51807f0b0b0d4e3577cd24d13557acf9458
324
cpp
C++
pgf+/src/reader/Expr.cpp
egladil/mscthesis
d6f0c9b1b1e73b749894405372f2edf01e746920
[ "BSD-2-Clause" ]
1
2019-05-03T18:00:39.000Z
2019-05-03T18:00:39.000Z
pgf+/src/reader/Expr.cpp
egladil/mscthesis
d6f0c9b1b1e73b749894405372f2edf01e746920
[ "BSD-2-Clause" ]
null
null
null
pgf+/src/reader/Expr.cpp
egladil/mscthesis
d6f0c9b1b1e73b749894405372f2edf01e746920
[ "BSD-2-Clause" ]
null
null
null
// // Expr.cpp // pgf+ // // Created by Emil Djupfeldt on 2012-06-26. // Copyright (c) 2012 Chalmers University of Technology. All rights reserved. // #include <gf/reader/Expr.h> namespace gf { namespace reader { Expr::Expr() { } Expr::~Expr() { } ...
15.428571
78
0.509259
egladil
de7b08cf91b5e5aaed7f68e56832ea58dac9d4de
6,995
cpp
C++
src/Ainur/AinurState1.cpp
g1257/PsimagLite
1cdeb4530c66cd41bd0c59af9ad2ecb1069ca010
[ "Unlicense" ]
8
2015-08-19T16:06:52.000Z
2021-12-05T02:37:47.000Z
src/Ainur/AinurState1.cpp
g1257/PsimagLite
1cdeb4530c66cd41bd0c59af9ad2ecb1069ca010
[ "Unlicense" ]
5
2016-02-02T20:28:21.000Z
2019-07-08T22:56:12.000Z
src/Ainur/AinurState1.cpp
g1257/PsimagLite
1cdeb4530c66cd41bd0c59af9ad2ecb1069ca010
[ "Unlicense" ]
5
2016-04-29T17:28:00.000Z
2019-11-22T03:33:19.000Z
#include "AinurState.h" #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include "AinurDoubleOrFloat.h" namespace PsimagLite { struct MyProxyFor { static void convert(long unsigne...
26.396226
94
0.59371
g1257
de7e28964c63dffd7045225e1a0544cf61653e85
1,539
cpp
C++
Algorithms/Search/SherlockandArray/Solution.cpp
4ngelica/HackerRank
61c4269168a9b35c98840e40637fe87c9735356c
[ "MIT" ]
1,122
2017-03-22T03:52:28.000Z
2022-03-31T06:01:39.000Z
Algorithms/Search/SherlockandArray/Solution.cpp
4ngelica/HackerRank
61c4269168a9b35c98840e40637fe87c9735356c
[ "MIT" ]
100
2017-03-15T20:01:28.000Z
2021-07-12T14:42:21.000Z
Algorithms/Search/SherlockandArray/Solution.cpp
4ngelica/HackerRank
61c4269168a9b35c98840e40637fe87c9735356c
[ "MIT" ]
799
2017-03-19T21:28:30.000Z
2022-03-26T16:58:54.000Z
/* Problem : https://www.hackerrank.com/challenges/sherlock-and-array C++ 14 Approach : This is quite a straight forward problem. All elements of the input array is set to the sum of all the elements upto that point of the input array, i.e. arr[i] = Sum(arr[j]) for 0 <= j <=i < n ...
27
84
0.492528
4ngelica
de80f917f17f259dc54dffe14f6d3605eb249fb5
17,753
cpp
C++
src/drivers/liberatr.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
33
2015-08-10T11:13:47.000Z
2021-08-30T10:00:46.000Z
src/drivers/liberatr.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
13
2015-08-25T03:53:08.000Z
2022-03-30T18:02:35.000Z
src/drivers/liberatr.cpp
gameblabla/mame_nspire
83dfe1606aba906bd28608f2cb8f0754492ac3da
[ "Unlicense" ]
40
2015-08-25T05:09:21.000Z
2022-02-08T05:02:30.000Z
#include "../vidhrdw/liberatr.cpp" /*************************************************************************** Liberator Memory Map (for the main set, the other one is rearranged) (from the schematics/manual) HEX R/W D7 D6 D5 D4 D3 D2 D2 D0 function ---------+-----+------------------------+----------...
38.260776
129
0.506788
gameblabla
de8502cf617a9e2c2736d3751817269a7292a8a9
12,174
cpp
C++
PeerIOSerialControl.cpp
TGit-Tech/PeerIOSerialControl
cdb79f906e359fbc7fab934b918cb54dc61b1810
[ "MIT" ]
null
null
null
PeerIOSerialControl.cpp
TGit-Tech/PeerIOSerialControl
cdb79f906e359fbc7fab934b918cb54dc61b1810
[ "MIT" ]
null
null
null
PeerIOSerialControl.cpp
TGit-Tech/PeerIOSerialControl
cdb79f906e359fbc7fab934b918cb54dc61b1810
[ "MIT" ]
null
null
null
/************************************************************************//** * @file PeerIOSerialControl.cpp * @brief Arduino Peer IO-Control through Serial Port Communications. * @authors * tgit23 1/2017 Original ******************************************************************************/ #in...
38.894569
107
0.496632
TGit-Tech
de8726d230ba89163f05f0b03924340a6d8bb824
23,188
cc
C++
Source/Util/sort.cc
AryaFaramarzi/CS220-dmfb-synthesis-skeleton
6b592516025f6c2838f269dcf2ca1696d9de5ab8
[ "MIT" ]
3
2018-11-03T06:17:08.000Z
2020-08-12T05:26:47.000Z
Source/Util/sort.cc
AryaFaramarzi/CS220-dmfb-synthesis-skeleton
6b592516025f6c2838f269dcf2ca1696d9de5ab8
[ "MIT" ]
null
null
null
Source/Util/sort.cc
AryaFaramarzi/CS220-dmfb-synthesis-skeleton
6b592516025f6c2838f269dcf2ca1696d9de5ab8
[ "MIT" ]
6
2019-09-03T23:58:04.000Z
2021-07-09T02:33:47.000Z
/*------------------------------------------------------------------------------* * (c)2016, All Rights Reserved. * * ___ ___ ___ * * /__/\ / /\ / /\ * * \ \:\ / /:/ / /::\ * * ...
40.048359
161
0.522684
AryaFaramarzi
de881f7d037ca8a76ffc7fc942e14eab26df3e32
1,996
hpp
C++
src/backend/vm/value_type.hpp
korelang/kore
9fc06176406c2de2524382dff7e0d7d8e619c457
[ "BSD-3-Clause" ]
null
null
null
src/backend/vm/value_type.hpp
korelang/kore
9fc06176406c2de2524382dff7e0d7d8e619c457
[ "BSD-3-Clause" ]
null
null
null
src/backend/vm/value_type.hpp
korelang/kore
9fc06176406c2de2524382dff7e0d7d8e619c457
[ "BSD-3-Clause" ]
null
null
null
#ifndef KORE_VALUE_TYPE_HPP #define KORE_VALUE_TYPE_HPP #include <ostream> #include "frontend/internal_value_types.hpp" namespace kore { enum class ValueTag { Bool, I32, I64, F32, F64, Str, }; /// The types for the vm's runtime values implemented /// a...
21.695652
68
0.483467
korelang
de8c886e2035c324bea7a1866f17e9a904d69b14
1,252
cpp
C++
Sources/Plugins/RenderSystem_GL/GLSLShaderSystem.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/RenderSystem_GL/GLSLShaderSystem.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/RenderSystem_GL/GLSLShaderSystem.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
/*============================================================================= GLSLShaderSystem.cpp Project: Sonata Engine Author: Julien Delezenne =============================================================================*/ #include "GLSLShaderSystem.h" #include "GLSLShaderProgram.h" namespace SE_GL { GLSLShade...
16.25974
79
0.654952
jdelezenne
de8e04438ca08bec9df7cb3a061fa0504539a8dc
166
hxx
C++
src/Providers/UNIXProviders/PolicyRepositoryInPolicyRepository/UNIX_PolicyRepositoryInPolicyRepository_FREEBSD.hxx
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
1
2020-10-12T09:00:09.000Z
2020-10-12T09:00:09.000Z
src/Providers/UNIXProviders/PolicyRepositoryInPolicyRepository/UNIX_PolicyRepositoryInPolicyRepository_FREEBSD.hxx
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
null
null
null
src/Providers/UNIXProviders/PolicyRepositoryInPolicyRepository/UNIX_PolicyRepositoryInPolicyRepository_FREEBSD.hxx
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
null
null
null
#ifdef PEGASUS_OS_FREEBSD #ifndef __UNIX_POLICYREPOSITORYINPOLICYREPOSITORY_PRIVATE_H #define __UNIX_POLICYREPOSITORYINPOLICYREPOSITORY_PRIVATE_H #endif #endif
13.833333
59
0.885542
brunolauze
de8eef4f62e1f6780b1848fb0668b12182336276
2,211
hpp
C++
source/LibFgBase/src/FgPlatform.hpp
denim2x/FaceGenBaseLibrary
52317cf96984a47d7f2d0c5471230d689404101c
[ "MIT" ]
null
null
null
source/LibFgBase/src/FgPlatform.hpp
denim2x/FaceGenBaseLibrary
52317cf96984a47d7f2d0c5471230d689404101c
[ "MIT" ]
null
null
null
source/LibFgBase/src/FgPlatform.hpp
denim2x/FaceGenBaseLibrary
52317cf96984a47d7f2d0c5471230d689404101c
[ "MIT" ]
null
null
null
// // Copyright (c) 2019 Singular Inversions Inc. (facegen.com) // Use, modification and distribution is subject to the MIT License, // see accompanying file LICENSE.txt or facegen.com/base_library_license.txt // // Compile target platform and compiler specific definitions. // // ANSI defines: // _DATE_ // _FI...
28.346154
107
0.645862
denim2x
de93720a3eeb3d97501c06306f636429ddda6bfa
1,743
cpp
C++
utils/logging.cpp
XMrVertigoX/xXx_CPP
550f04ccb2ff772e5c8cd632c9a748a001533077
[ "MIT" ]
null
null
null
utils/logging.cpp
XMrVertigoX/xXx_CPP
550f04ccb2ff772e5c8cd632c9a748a001533077
[ "MIT" ]
null
null
null
utils/logging.cpp
XMrVertigoX/xXx_CPP
550f04ccb2ff772e5c8cd632c9a748a001533077
[ "MIT" ]
null
null
null
#include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include <FreeRTOS.h> #include <task.h> #include "logging.hpp" static const size_t bytesPerLine = 16; static inline uint32_t ticks2ms(TickType_t ticks) { return (ticks * portTICK_PERIOD_MS); } static inline uint32_t getSeconds(TickTy...
21.256098
58
0.526104
XMrVertigoX
de9e74434fd6c5d27832ea6734411238fe56fa67
3,741
cpp
C++
src/lib/adatafield.cpp
leaderit/ananas-qt4
6830bf5074b316582a38f6bed147a1186dd7cc95
[ "MIT" ]
1
2021-03-16T21:47:41.000Z
2021-03-16T21:47:41.000Z
src/lib/adatafield.cpp
leaderit/ananas-qt4
6830bf5074b316582a38f6bed147a1186dd7cc95
[ "MIT" ]
null
null
null
src/lib/adatafield.cpp
leaderit/ananas-qt4
6830bf5074b316582a38f6bed147a1186dd7cc95
[ "MIT" ]
null
null
null
/**************************************************************************** ** $Id: adatafield.cpp,v 1.1 2008/11/05 21:16:28 leader Exp $ ** ** Code file of the Ananas database field of Ananas ** Designer and Engine applications ** ** Created : 20031201 ** ** Copyright (C) 2003-2004 Leader InfoTech. All rights reser...
17.481308
83
0.636995
leaderit
dea3383bbe1211dcd2b00cfdb3f8141f81f6f04d
1,841
cpp
C++
src/r3.endlesss/endlesss/toolkit.exchange.cpp
Unbundlesss/OUROVEON
34dda511eda2a28b8522a724cfc9500a7914ea03
[ "MIT" ]
6
2022-01-27T20:33:17.000Z
2022-02-16T18:29:43.000Z
src/r3.endlesss/endlesss/toolkit.exchange.cpp
Unbundlesss/OUROVEON
34dda511eda2a28b8522a724cfc9500a7914ea03
[ "MIT" ]
4
2022-01-30T16:16:53.000Z
2022-02-20T20:07:25.000Z
src/r3.endlesss/endlesss/toolkit.exchange.cpp
Unbundlesss/OUROVEON
34dda511eda2a28b8522a724cfc9500a7914ea03
[ "MIT" ]
null
null
null
// _______ _______ ______ _______ ___ ___ _______ _______ _______ // | | | | __ \ | | | ___| | | | // | - | | | < - | | | ___| - | | // |_______|_______|___|__|_______|\_____/|_______|_______|__|____| // ishani.org 2022 e.t.c. ...
30.180328
100
0.568169
Unbundlesss
dea4093891cf1c0ad10fac75f2675e11f486d4f5
596
cpp
C++
src/src/clonetest.cpp
yangkaioppen/imgpp
2212e8c80fc770a9bb24fed396ca43031de9e10f
[ "MIT" ]
1
2020-05-12T07:35:39.000Z
2020-05-12T07:35:39.000Z
src/src/clonetest.cpp
yangkaioppen/imgpp
2212e8c80fc770a9bb24fed396ca43031de9e10f
[ "MIT" ]
2
2020-04-22T05:27:47.000Z
2020-12-26T07:38:45.000Z
src/src/clonetest.cpp
yangkaioppen/imgpp
2212e8c80fc770a9bb24fed396ca43031de9e10f
[ "MIT" ]
2
2020-04-20T05:55:12.000Z
2020-05-25T16:41:16.000Z
#include <imgpp/imgpp.hpp> int main() { // Test clone { imgpp::Img image(2, 2, 1, 1, 32, true, true, 1); image.ROI().At<float>(0, 0) = 1.0f; image.ROI().At<float>(0, 1) = 2.0f; image.ROI().At<float>(1, 0) = 3.0f; image.ROI().At<float>(1, 1) = 4.0f; imgpp::Img clone = image.Clone(); // M...
25.913043
100
0.541946
yangkaioppen
dea7bc77e719900abb506b3e47c937bd055b51e0
791
cpp
C++
9/969. Pancake Sorting.cpp
eagleoflqj/LeetCode
ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9
[ "MIT" ]
null
null
null
9/969. Pancake Sorting.cpp
eagleoflqj/LeetCode
ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9
[ "MIT" ]
1
2021-12-25T10:33:23.000Z
2022-02-16T00:34:05.000Z
9/969. Pancake Sorting.cpp
eagleoflqj/LeetCode
ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9
[ "MIT" ]
null
null
null
class Solution { public: vector<int> pancakeSort(vector<int>& arr) { int n = arr.size(); vector<int> index(n), ret; for(int i = 0; i < n; ++i) index[arr[i] - 1] = i; for(int i = n - 1; i > 0; --i) if(index[i] != i) { // AxBy ret.push_back(index...
31.64
53
0.380531
eagleoflqj
deacc28df8e4bcbba836c34c03bcf73c69eb7f6c
12,706
cpp
C++
src/Device/VertexProcessor.cpp
opersys/bbb-platform_external_swiftshader
54561baf5b7bd68e572326bf99a0c7ae1ecd76a2
[ "Apache-2.0" ]
null
null
null
src/Device/VertexProcessor.cpp
opersys/bbb-platform_external_swiftshader
54561baf5b7bd68e572326bf99a0c7ae1ecd76a2
[ "Apache-2.0" ]
null
null
null
src/Device/VertexProcessor.cpp
opersys/bbb-platform_external_swiftshader
54561baf5b7bd68e572326bf99a0c7ae1ecd76a2
[ "Apache-2.0" ]
null
null
null
// Copyright 2016 The SwiftShader Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required b...
27.681917
171
0.730364
opersys
deb01d3a6b355ab470ed94ce35a2df080e5f3df1
160
cpp
C++
system/system.cpp
firngrod/firnlibs
a8fbdd22ec3b0a9497b809e8b86092e0affea995
[ "MIT" ]
null
null
null
system/system.cpp
firngrod/firnlibs
a8fbdd22ec3b0a9497b809e8b86092e0affea995
[ "MIT" ]
null
null
null
system/system.cpp
firngrod/firnlibs
a8fbdd22ec3b0a9497b809e8b86092e0affea995
[ "MIT" ]
null
null
null
#include "system.hpp" #include <thread> namespace FirnLibs{ namespace System{ int GetProcessorCount() { return std::thread::hardware_concurrency(); } }}
11.428571
45
0.725
firngrod
deb21c7ff38d279093e60fc31fdf79e46e950c16
7,714
cpp
C++
media_driver/agnostic/common/codec/hal/codechal_mmc_decode_vp8.cpp
xinfengz/media-driver
310104a4693c476a215de13e7e9fabdf2afbad0a
[ "Intel", "BSD-3-Clause", "MIT" ]
1
2019-09-26T23:48:34.000Z
2019-09-26T23:48:34.000Z
media_driver/agnostic/common/codec/hal/codechal_mmc_decode_vp8.cpp
xinfengz/media-driver
310104a4693c476a215de13e7e9fabdf2afbad0a
[ "Intel", "BSD-3-Clause", "MIT" ]
null
null
null
media_driver/agnostic/common/codec/hal/codechal_mmc_decode_vp8.cpp
xinfengz/media-driver
310104a4693c476a215de13e7e9fabdf2afbad0a
[ "Intel", "BSD-3-Clause", "MIT" ]
1
2017-12-11T03:28:35.000Z
2017-12-11T03:28:35.000Z
/* * Copyright (c) 2017, Intel Corporation * * 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, publis...
39.558974
112
0.717267
xinfengz
deb2487da9f4648a10b685865133c036e41c6b66
2,191
cpp
C++
src/application_item.cpp
haiziyan/mayo
330099948bb8626a56d138c62509d85f7f0e1d94
[ "BSD-2-Clause" ]
null
null
null
src/application_item.cpp
haiziyan/mayo
330099948bb8626a56d138c62509d85f7f0e1d94
[ "BSD-2-Clause" ]
null
null
null
src/application_item.cpp
haiziyan/mayo
330099948bb8626a56d138c62509d85f7f0e1d94
[ "BSD-2-Clause" ]
1
2022-03-10T03:28:53.000Z
2022-03-10T03:28:53.000Z
/**************************************************************************** ** Copyright (c) 2019, Fougue Ltd. <http://www.fougue.pro> ** All rights reserved. ** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt ****************************************************************************/ #includ...
26.083333
77
0.63487
haiziyan
deb3f64aa62ff8b78015a35cd2871c9c185f0ac7
250
inl
C++
node_modules/lzz-gyp/lzz-source/util_GetIdent.inl
SuperDizor/dizornator
9f57dbb3f6af80283b4d977612c95190a3d47900
[ "ISC" ]
3
2019-09-18T16:44:33.000Z
2021-03-29T13:45:27.000Z
node_modules/lzz-gyp/lzz-source/util_GetIdent.inl
SuperDizor/dizornator
9f57dbb3f6af80283b4d977612c95190a3d47900
[ "ISC" ]
null
null
null
node_modules/lzz-gyp/lzz-source/util_GetIdent.inl
SuperDizor/dizornator
9f57dbb3f6af80283b4d977612c95190a3d47900
[ "ISC" ]
2
2019-03-29T01:06:38.000Z
2019-09-18T16:44:34.000Z
// util_GetIdent.inl // #ifdef LZZ_ENABLE_INLINE #define LZZ_INLINE inline #else #define LZZ_INLINE #endif namespace util { LZZ_INLINE util::Ident getIdent (util::String const & str) { return getIdent (str.c_str ()); } } #undef LZZ_INLINE
14.705882
60
0.72
SuperDizor
630c2a572b4cfece5fbe93d893400196dc33c44d
870
cpp
C++
Chapter10/chapter10-7.cpp
kozborn/programing-principles-and-practise-using-cpp
7fefba8765e26af83f138e660861fe5b90adcda4
[ "MIT" ]
null
null
null
Chapter10/chapter10-7.cpp
kozborn/programing-principles-and-practise-using-cpp
7fefba8765e26af83f138e660861fe5b90adcda4
[ "MIT" ]
null
null
null
Chapter10/chapter10-7.cpp
kozborn/programing-principles-and-practise-using-cpp
7fefba8765e26af83f138e660861fe5b90adcda4
[ "MIT" ]
null
null
null
#include "../std_lib_facilities.h" void skip_to_int() { if (cin.fail()) { cin.clear(); char ch; while (cin >> ch && !isdigit(ch)); if (!cin) error("Brak danych"); cin.unget(); } } int get_int() { int n = 0; while(true) { if(cin >> n) return n; cout << "That was n...
19.333333
95
0.472414
kozborn
630c477e15b064e58df18997b45b2ffc5d52c4b4
5,703
cpp
C++
main.cpp
SirDifferential/minimal_movidius
73dc436c6151c022963108fb82b9262a838b0d95
[ "MIT" ]
1
2017-10-02T17:32:32.000Z
2017-10-02T17:32:32.000Z
main.cpp
SirDifferential/minimal_movidius
73dc436c6151c022963108fb82b9262a838b0d95
[ "MIT" ]
null
null
null
main.cpp
SirDifferential/minimal_movidius
73dc436c6151c022963108fb82b9262a838b0d95
[ "MIT" ]
null
null
null
#include <mvnc.h> #include <vector> #include <stdio.h> #include <string> #include <chrono> #include <unistd.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #include "movidiusdevice.h" const int req_width = 227; const int req_height = 227; const bool show_perfs = false; const bool show_results = false; int...
28.373134
108
0.568122
SirDifferential
63167cdbb65ffc9ba73e31706bb4da5db6ed509d
360
hpp
C++
include/uitsl/mpi/MpiGuard.hpp
perryk12/conduit
3ea055312598353afd465536c8e04cdec1111c8c
[ "MIT" ]
null
null
null
include/uitsl/mpi/MpiGuard.hpp
perryk12/conduit
3ea055312598353afd465536c8e04cdec1111c8c
[ "MIT" ]
1
2020-10-22T20:41:05.000Z
2020-10-22T20:41:05.000Z
include/uitsl/mpi/MpiGuard.hpp
perryk12/conduit
3ea055312598353afd465536c8e04cdec1111c8c
[ "MIT" ]
null
null
null
#pragma once #ifndef UITSL_MPI_MPIGUARD_HPP_INCLUDE #define UITSL_MPI_MPIGUARD_HPP_INCLUDE #include <functional> #include "audited_routines.hpp" #include "mpi_utils.hpp" namespace uitsl { struct MpiGuard { MpiGuard() { uitsl::mpi_init(); } ~MpiGuard() { UITSL_Finalize(); } }; } // namespace uitsl #endif //...
15.652174
48
0.75
perryk12
6322f86fbb23198e86f7584e107ffe8c1f1ca165
807
cpp
C++
talent/talent.cpp
chenhongqiao/OI-Solutions
009a3c4b713b62658b835b52e0f61f882b5a6ffe
[ "MIT" ]
1
2020-12-15T20:25:21.000Z
2020-12-15T20:25:21.000Z
talent/talent.cpp
chenhongqiao/OI-Solutions
009a3c4b713b62658b835b52e0f61f882b5a6ffe
[ "MIT" ]
null
null
null
talent/talent.cpp
chenhongqiao/OI-Solutions
009a3c4b713b62658b835b52e0f61f882b5a6ffe
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct cow { long long w, t; }; cow c[255]; long long dp[1000005]; int main() { //freopen("talent.in", "r", stdin); //freopen("talent.out", "w", stdout); int n, wl; cin >> n >> wl; for (int i = 1; i <= n; i++) { long long w, t; ci...
19.214286
56
0.385378
chenhongqiao
632dee063f996faac35d807afc63239a68a815dc
4,867
hpp
C++
src/gui/src/core/interfaces/impl/iota-wallet.hpp
MatthewDarnell/iota-simplewallet
aa3449bae3023e292ad47a9fa72213e279367b7a
[ "MIT" ]
1
2020-11-19T07:18:44.000Z
2020-11-19T07:18:44.000Z
src/gui/src/core/interfaces/impl/iota-wallet.hpp
MatthewDarnell/iota-simplewallet
aa3449bae3023e292ad47a9fa72213e279367b7a
[ "MIT" ]
null
null
null
src/gui/src/core/interfaces/impl/iota-wallet.hpp
MatthewDarnell/iota-simplewallet
aa3449bae3023e292ad47a9fa72213e279367b7a
[ "MIT" ]
null
null
null
// Copyright (c) 2018-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef IOTAWALLET_HPP #define IOTAWALLET_HPP #include <interfaces/wallet.h> #include <interfaces/handler.h> #include <QObj...
41.598291
157
0.757345
MatthewDarnell
632e3acbee7d6ebcf18f3270d5b4b6e42b4da882
24
hpp
C++
modules/renderer/include/texture.hpp
hpnrep6/3DModelViewer
4437d9b798fe75f3f6eae33488edc73dda4aaca0
[ "MIT" ]
null
null
null
modules/renderer/include/texture.hpp
hpnrep6/3DModelViewer
4437d9b798fe75f3f6eae33488edc73dda4aaca0
[ "MIT" ]
null
null
null
modules/renderer/include/texture.hpp
hpnrep6/3DModelViewer
4437d9b798fe75f3f6eae33488edc73dda4aaca0
[ "MIT" ]
null
null
null
namespace JRenderer { }
8
21
0.75
hpnrep6
633d51fd67d2c7625b3d1550c471b3612264fa25
5,646
cpp
C++
src/Kernel/ResourceImageData.cpp
irov/Mengine
b76e9f8037325dd826d4f2f17893ac2b236edad8
[ "MIT" ]
39
2016-04-21T03:25:26.000Z
2022-01-19T14:16:38.000Z
src/Kernel/ResourceImageData.cpp
irov/Mengine
b76e9f8037325dd826d4f2f17893ac2b236edad8
[ "MIT" ]
23
2016-06-28T13:03:17.000Z
2022-02-02T10:11:54.000Z
src/Kernel/ResourceImageData.cpp
irov/Mengine
b76e9f8037325dd826d4f2f17893ac2b236edad8
[ "MIT" ]
14
2016-06-22T20:45:37.000Z
2021-07-05T12:25:19.000Z
#include "ResourceImageData.h" #include "Interface/ImageCodecInterface.h" #include "Interface/CodecServiceInterface.h" #include "Interface/ConfigServiceInterface.h" #include "Kernel/Logger.h" #include "Kernel/DocumentHelper.h" #include "Kernel/ConstString.h" #include "Kernel/AssertionMemoryPanic.h" #include "Kernel/F...
35.961783
135
0.505136
irov