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
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
67k
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
722ba957248e0244b1585e824cea8564514c1b94
3,595
cpp
C++
global.cpp
ailabstw/PUMP
76425c490bed227d98cbccd8c48f6fa2eaf3e85d
[ "MIT" ]
1
2021-06-16T05:28:46.000Z
2021-06-16T05:28:46.000Z
global.cpp
ailabstw/PUMP
76425c490bed227d98cbccd8c48f6fa2eaf3e85d
[ "MIT" ]
null
null
null
global.cpp
ailabstw/PUMP
76425c490bed227d98cbccd8c48f6fa2eaf3e85d
[ "MIT" ]
null
null
null
#include <string.h> #include "global.h" struct controlVariablesStruct controlVariables; std::map<std::pair<uint64_t, uint64_t>, uint64_t> activeMemoryBlockFromFramework; std::map<uint64_t, uint64_t> touchedMemoryBlockFromFramework; std::map<uint64_t, uint64_t> allocatedMemoryBlockFromFramework; std::map<uint64_t, ui...
37.061856
83
0.760501
ailabstw
722d6a144279e72fefc86064bd3345b5f02e7fe2
6,840
cpp
C++
FreeBSD/contrib/llvm/tools/lldb/source/Interpreter/OptionValuePathMappings.cpp
TigerBSD/FreeBSD-Custom-ThinkPad
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
4
2016-08-22T22:02:55.000Z
2017-03-04T22:56:44.000Z
FreeBSD/contrib/llvm/tools/lldb/source/Interpreter/OptionValuePathMappings.cpp
TigerBSD/FreeBSD-Custom-ThinkPad
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
21
2016-08-11T09:43:43.000Z
2017-01-29T12:52:56.000Z
FreeBSD/contrib/llvm/tools/lldb/source/Interpreter/OptionValuePathMappings.cpp
TigerBSD/TigerBSD
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
null
null
null
//===-- OptionValuePathMappings.cpp -----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
36.190476
134
0.48845
TigerBSD
723025a1ef0eeda1798b6627132eb46872ce35f5
5,292
cpp
C++
src/renderer/raycaster/geometry.cpp
lPrimemaster/Liquid
72c11bf96cccb3f93725f46f0e0756a1b732163c
[ "MIT" ]
null
null
null
src/renderer/raycaster/geometry.cpp
lPrimemaster/Liquid
72c11bf96cccb3f93725f46f0e0756a1b732163c
[ "MIT" ]
null
null
null
src/renderer/raycaster/geometry.cpp
lPrimemaster/Liquid
72c11bf96cccb3f93725f46f0e0756a1b732163c
[ "MIT" ]
null
null
null
#include "geometry.h" #include "../../utils/fileloader.h" #include "accelerator/bvh.h" #include <unordered_map> #include <chrono> internal std::unordered_map<std::string, Geometry*> GeometryRegistry; bool Triangle::hit(const TriangleMesh* mesh, const Ray* r, f32 tmin, f32 tmax, HitRecord* rec) const { Vector3 e1...
29.4
118
0.590703
lPrimemaster
7233365a4f07ac8a42fbc79a3b28d9b5f7c0c39e
4,512
cpp
C++
src/test_board.cpp
kwmsmith/bot-rhadamanthus
437b6033f90879d1fff591c11301d45b048a1d68
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2017-03-04T16:56:55.000Z
2017-03-04T16:56:55.000Z
src/test_board.cpp
kwmsmith/bot-rhadamanthus
437b6033f90879d1fff591c11301d45b048a1d68
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/test_board.cpp
kwmsmith/bot-rhadamanthus
437b6033f90879d1fff591c11301d45b048a1d68
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#include "board.h" #include "gtest/gtest.h" #include <climits> #include <cstdio> #include <type_traits> TEST(BoardTest, std_layout) { EXPECT_TRUE(std::is_standard_layout<Board>::value); } // TEST(BoardTest, trivially_copyable) { // EXPECT_TRUE(std::is_trivially_copyable<Board>::value); // } TEST(BoardTest, Insta...
25.206704
100
0.657801
kwmsmith
72372cd66527e1d39402ddf3bc250a2ef264c0ac
5,973
hpp
C++
Firmware/core/gpio/gpio.hpp
OstapFerensovych/BMW-K1200LT-ABS-Conversion
17442f79261a0d5e28f52b9f0572f02a01dd9092
[ "MIT" ]
3
2021-02-21T14:50:38.000Z
2021-12-19T21:52:39.000Z
Firmware/core/gpio/gpio.hpp
OstapFerensovych/BMW-K1200LT-ABS-Conversion
17442f79261a0d5e28f52b9f0572f02a01dd9092
[ "MIT" ]
null
null
null
Firmware/core/gpio/gpio.hpp
OstapFerensovych/BMW-K1200LT-ABS-Conversion
17442f79261a0d5e28f52b9f0572f02a01dd9092
[ "MIT" ]
null
null
null
#pragma once #include <stm32f0xx.h> #include <cstdint> #include <tuple> #include "platform.hpp" namespace gpio { enum class port { a = 0, b = 1, c = 2, f = 3, _max_ports, }; enum class mode : uint8_t { input = 0, gp_out = 1, af_io = 2, analog = 3, }; enum class drive : uint8_t { push_pull =...
24.8875
112
0.642391
OstapFerensovych
72382e9cb808aa08ec3e0760d27e35010340f6fa
594
cc
C++
src/multio/server/MultioServer.cc
dvuckovic/multio
36d2e4e4aa9f874f255efbde74642e5a514e8d76
[ "Apache-2.0" ]
null
null
null
src/multio/server/MultioServer.cc
dvuckovic/multio
36d2e4e4aa9f874f255efbde74642e5a514e8d76
[ "Apache-2.0" ]
null
null
null
src/multio/server/MultioServer.cc
dvuckovic/multio
36d2e4e4aa9f874f255efbde74642e5a514e8d76
[ "Apache-2.0" ]
1
2021-09-06T13:39:10.000Z
2021-09-06T13:39:10.000Z
#include "MultioServer.h" #include "eckit/config/YAMLConfiguration.h" #include "eckit/filesystem/PathName.h" #include "multio/LibMultio.h" #include "multio/server/Transport.h" namespace multio { namespace server { MultioServer::MultioServer(const eckit::Configuration& config) : transport_{TransportFactory::ins...
24.75
90
0.728956
dvuckovic
723830f505bee4d71bf6bae7a07ee64cf6745e5b
11,917
cpp
C++
compiler/extensions/cpp/runtime/test/zserio/BitSizeOfCalculatorTest.cpp
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
2
2019-02-06T17:50:24.000Z
2019-11-20T16:51:34.000Z
compiler/extensions/cpp/runtime/test/zserio/BitSizeOfCalculatorTest.cpp
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
1
2019-11-25T16:25:51.000Z
2019-11-25T18:09:39.000Z
compiler/extensions/cpp/runtime/test/zserio/BitSizeOfCalculatorTest.cpp
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
#include "zserio/BitSizeOfCalculator.h" #include "zserio/CppRuntimeException.h" #include "gtest/gtest.h" namespace zserio { TEST(BitSizeOfCalculatorTest, GetBitSizeOfVarInt16) { EXPECT_EQ(1*8, getBitSizeOfVarInt16(0)); EXPECT_EQ(1*8, getBitSizeOfVarInt16( INT64_C(1) << (0) )); EXPECT_EQ(1*8, getBitSiz...
48.840164
99
0.617773
PeachOS
72387090613af587b0dc810b2c438a8618a64787
382
cpp
C++
Vjudge_Contest/Neam_Cheater.cpp
Sowmik23/All-Codes
212ef0d940fa84624bb2972a257768a830a709a3
[ "MIT" ]
5
2021-02-14T17:48:21.000Z
2022-01-24T14:29:44.000Z
Vjudge_Contest/Neam_Cheater.cpp
Sowmik23/All-Codes
212ef0d940fa84624bb2972a257768a830a709a3
[ "MIT" ]
null
null
null
Vjudge_Contest/Neam_Cheater.cpp
Sowmik23/All-Codes
212ef0d940fa84624bb2972a257768a830a709a3
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int t,n,x,y,ans; cin>>t; while(t--) { cin>>n; int a[n]; for(int i=0;i<n;i++) { cin>>a[i]; } ans=a[0]; if(n>1) { int i=1; while(1) { if(i>=n) break; x=ans; y=a[i]; ans=x^y; x=ans; i++; } } if(ans==0...
10.611111
29
0.434555
Sowmik23
7239546831e0ba248bcc427c224de2ef22e45b14
3,151
cpp
C++
test_package/test.cpp
jpilet/mediagraph
fa3986ef91ad0ec8d0e379f2818140df7854a139
[ "BSD-3-Clause" ]
null
null
null
test_package/test.cpp
jpilet/mediagraph
fa3986ef91ad0ec8d0e379f2818140df7854a139
[ "BSD-3-Clause" ]
8
2020-02-25T13:55:37.000Z
2020-10-05T13:08:48.000Z
test_package/test.cpp
jpilet/mediagraph
fa3986ef91ad0ec8d0e379f2818140df7854a139
[ "BSD-3-Clause" ]
1
2020-02-26T09:59:04.000Z
2020-02-26T09:59:04.000Z
#include <mediagraph/graph.h> #include <mediagraph/stream.h> #include <mediagraph/stream_reader.h> #include <iostream> struct MyData { std::string str; int64_t seq; }; namespace media_graph { namespace { template <> std::string typeName<MyData>() { return "MyData"; } } // namespace } // namespace medi...
27.163793
100
0.576325
jpilet
5cfa9e52270600562eee26b440b3436362f2232d
3,150
cpp
C++
FWDLL/Message.cpp
denleyhsiao/prism_mw_cpp
b17248faf7637aff4292c5498404b667511293bf
[ "MIT" ]
null
null
null
FWDLL/Message.cpp
denleyhsiao/prism_mw_cpp
b17248faf7637aff4292c5498404b667511293bf
[ "MIT" ]
null
null
null
FWDLL/Message.cpp
denleyhsiao/prism_mw_cpp
b17248faf7637aff4292c5498404b667511293bf
[ "MIT" ]
null
null
null
// Message.cpp: implementation of the Message class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "Afxtempl.h" #include "Message.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ///////////////////...
21.575342
121
0.631746
denleyhsiao
5cfaf825c700e948f576f668ada65b1417eafa7c
4,882
cpp
C++
Core/Utils/Utils_win.cpp
zenden2k/KeeneticRainmeterPlugin
fb8e61e161422acfa095215ed1237727e5a9f5f9
[ "MIT" ]
2
2021-05-01T14:08:48.000Z
2021-09-05T11:14:19.000Z
Core/Utils/Utils_win.cpp
zenden2k/KeeneticRainmeterPlugin
fb8e61e161422acfa095215ed1237727e5a9f5f9
[ "MIT" ]
null
null
null
Core/Utils/Utils_win.cpp
zenden2k/KeeneticRainmeterPlugin
fb8e61e161422acfa095215ed1237727e5a9f5f9
[ "MIT" ]
null
null
null
/* Image Uploader - free application for uploading images/files to the Internet Copyright 2007-2018 Sergey Svistunov (zenden2k@gmail.com) 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 ...
29.587879
132
0.633961
zenden2k
5cfe0e6f3c19d815a8c265b04f90373608438853
3,170
hpp
C++
Lib/Chip/MB9BF51xT.hpp
cjsmeele/Kvasir
c8d2acd8313ae52d78259ee2d409b963925f77d7
[ "Apache-2.0" ]
376
2015-07-17T01:41:20.000Z
2022-03-26T04:02:49.000Z
Lib/Chip/MB9BF51xT.hpp
cjsmeele/Kvasir
c8d2acd8313ae52d78259ee2d409b963925f77d7
[ "Apache-2.0" ]
59
2015-07-03T21:30:13.000Z
2021-03-05T11:30:08.000Z
Lib/Chip/MB9BF51xT.hpp
cjsmeele/Kvasir
c8d2acd8313ae52d78259ee2d409b963925f77d7
[ "Apache-2.0" ]
53
2015-07-14T12:17:06.000Z
2021-06-04T07:28:40.000Z
#pragma once #include <Chip/Unknown/Spansion/MB9BF51xT/FLASH_IF.hpp> #include <Chip/Unknown/Spansion/MB9BF51xT/CRG.hpp> #include <Chip/Unknown/Spansion/MB9BF51xT/CRTRIM.hpp> #include <Chip/Unknown/Spansion/MB9BF51xT/SWWDT.hpp> #include <Chip/Unknown/Spansion/MB9BF51xT/HWWDT.hpp> #include <Chip/Unknown/Spansion/MB9BF51...
51.129032
58
0.809464
cjsmeele
5cfe4f1990c4b5e9a6df1dfe7b308188aff29003
727
cpp
C++
Codeforces/div3#634/C.cpp
igortakeo/Solutions-CF
d945f0ae21c691120b69db78ff3d240b7dedc0a7
[ "MIT" ]
1
2020-05-25T15:32:23.000Z
2020-05-25T15:32:23.000Z
Codeforces/div3#634/C.cpp
igortakeo/Solutions-CF
d945f0ae21c691120b69db78ff3d240b7dedc0a7
[ "MIT" ]
null
null
null
Codeforces/div3#634/C.cpp
igortakeo/Solutions-CF
d945f0ae21c691120b69db78ff3d240b7dedc0a7
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define ll long long #define pii pair<int,int> #define fastcin ios_base::sync_with_stdio(false); cin.tie(NULL); using namespace std; int main(){ fastcin int t; cin >> t; while(t--){ int n; cin >> n; vector<int>v(n); int freq[n+1]; int d=0, ig=0; memset(freq, 0, siz...
14.836735
65
0.499312
igortakeo
cf0015e749c1fae912992594be4f700014607427
353
hpp
C++
.hemtt/template/addon/script_component.hpp
YonVclaw/xmarkers
1e9a72a43b1ef4f920e728b2ecf9d649591645a3
[ "MIT" ]
null
null
null
.hemtt/template/addon/script_component.hpp
YonVclaw/xmarkers
1e9a72a43b1ef4f920e728b2ecf9d649591645a3
[ "MIT" ]
null
null
null
.hemtt/template/addon/script_component.hpp
YonVclaw/xmarkers
1e9a72a43b1ef4f920e728b2ecf9d649591645a3
[ "MIT" ]
null
null
null
#define COMPONENT %%addon%% #include "\z\XMARK\addons\xmarkers\script_mod.hpp" // #define DEBUG_MODE_FULL // #define DISABLE_COMPILE_CACHE #ifdef DEBUG_ENABLED_%%ADDON%% #define DEBUG_MODE_FULL #endif #ifdef DEBUG_SETTINGS_OTHER #define DEBUG_SETTINGS DEBUG_SETTINGS_%%ADDON%% #endif #include "\z\XMARK\ad...
23.533333
53
0.767705
YonVclaw
cf01e392fba3f838a707b4b15cd7c7aa7c7590b4
4,426
hpp
C++
core/mmap_allocator.hpp
tamim-asif/lgraph-private
733bbcd9e14a9850580b51c011e33785ab758b9d
[ "BSD-3-Clause" ]
null
null
null
core/mmap_allocator.hpp
tamim-asif/lgraph-private
733bbcd9e14a9850580b51c011e33785ab758b9d
[ "BSD-3-Clause" ]
null
null
null
core/mmap_allocator.hpp
tamim-asif/lgraph-private
733bbcd9e14a9850580b51c011e33785ab758b9d
[ "BSD-3-Clause" ]
null
null
null
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #ifndef MMAP_ALLOCATOR_H #define MMAP_ALLOCATOR_H #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <cassert> #include <iostream> #define MMAPA_INIT_ENTRIES (1ULL << ...
26.189349
115
0.598961
tamim-asif
cf028816218e21cd905f9174bcc6db309bdafd79
1,188
cc
C++
apps/output_cpp/src/bc_main.cc
messinguelethomas/modified_green_marl
fc05b5e2bf7bf131015478f39d54c84e49d1239a
[ "DOC" ]
58
2015-02-06T00:50:43.000Z
2021-12-03T07:13:13.000Z
apps/output_cpp/src/bc_main.cc
messinguelethomas/modified_green_marl
fc05b5e2bf7bf131015478f39d54c84e49d1239a
[ "DOC" ]
1
2022-01-19T19:04:09.000Z
2022-01-19T19:04:09.000Z
apps/output_cpp/src/bc_main.cc
messinguelethomas/modified_green_marl
fc05b5e2bf7bf131015478f39d54c84e49d1239a
[ "DOC" ]
16
2015-02-18T01:30:57.000Z
2021-01-09T03:59:33.000Z
#include "common_main.h" #include "bc.h" // defined in generated #include "gm_rand.h" class my_main: public main_t { public: gm_node_seq* Seeds; float* BC; virtual ~my_main() { delete[] BC; delete Seeds; } my_main() { Seeds = NULL; BC = NULL; } virtual boo...
19.8
42
0.496633
messinguelethomas
cf029815b9d064889480f84e11f40c5f113ac1e0
778
cpp
C++
src/MFLOInstruction.cpp
dulvinw/MIPSSimulator
82325e56dccbd45a2257056362b955b6ef690c34
[ "MIT" ]
null
null
null
src/MFLOInstruction.cpp
dulvinw/MIPSSimulator
82325e56dccbd45a2257056362b955b6ef690c34
[ "MIT" ]
null
null
null
src/MFLOInstruction.cpp
dulvinw/MIPSSimulator
82325e56dccbd45a2257056362b955b6ef690c34
[ "MIT" ]
null
null
null
#include "MFLOInstruction.h" #include <iostream> #include <sstream> int MFLOInstruction::execute(int* registers, DataMap& data) { registers[_dest] = registers[LO_REGISTER_ADDRESS]; return _instructionId + NEXT_INSTRUCTION_OFFSET; } std::string MFLOInstruction::decode() { std::stringstream ss; ss << g...
26.827586
107
0.705656
dulvinw
cf05c2b2368f78a29b6858c9fbc00bc77a44fd5c
872
cpp
C++
code/cpp/MaxAndMin.cpp
analgorithmaday/analgorithmaday.github.io
d43f98803bc673f61334bff54eed381426ee902e
[ "MIT" ]
null
null
null
code/cpp/MaxAndMin.cpp
analgorithmaday/analgorithmaday.github.io
d43f98803bc673f61334bff54eed381426ee902e
[ "MIT" ]
null
null
null
code/cpp/MaxAndMin.cpp
analgorithmaday/analgorithmaday.github.io
d43f98803bc673f61334bff54eed381426ee902e
[ "MIT" ]
null
null
null
void getRange(int *arr, int size) { int min; int max; int start=0; if((size & 1) == 1) { min = arr[0]; max = arr[0]; start = 1; } else { if(arr[0] < arr[1]) { min = arr[0]; max = arr[1]; } else { min = arr[1]; ...
17.44
38
0.352064
analgorithmaday
cf0891fad83832f6c8c53f39916d17dba7c7e125
4,397
cc
C++
third_party/perfetto/src/tracing/core/ftrace_config.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/perfetto/src/tracing/core/ftrace_config.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/perfetto/src/tracing/core/ftrace_config.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
/* * Copyright (C) 2017 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...
37.262712
80
0.680237
zipated
cf08b895eb4e57974481e7d8d0d60809b410881c
10,307
cc
C++
Zapocet 2/test_g.cc
xchovanecv1/PS2
913c2cd7adf65fab2e4cf420aafa766b3e2232c7
[ "MIT" ]
null
null
null
Zapocet 2/test_g.cc
xchovanecv1/PS2
913c2cd7adf65fab2e4cf420aafa766b3e2232c7
[ "MIT" ]
null
null
null
Zapocet 2/test_g.cc
xchovanecv1/PS2
913c2cd7adf65fab2e4cf420aafa766b3e2232c7
[ "MIT" ]
null
null
null
/* Vytvorte casovu udalost (vramci prvych 30s), ktora rozpohybuje uzly v strede. (1b) Vytvorte funkciu ktorou zachytite zmenu CongestionWindow na triede TcpSocket (iba 1z3 app pouziva Tcp). (1b) Ak poklesne CongestionWindow zvyste rychlosti uzlov v strede. inak spomalte ;) (1b) Zachytte udalost (PhyRxDrop || Ph...
36.679715
180
0.644707
xchovanecv1
cf0be0062e0b13ba2351fafb12fa08a4c79a465c
5,896
cpp
C++
src/python/py_HDP.cpp
jonaschn/tomotopy
e37878ac3531a13e29317912298bf4b5f457521b
[ "MIT" ]
393
2019-05-11T16:43:30.000Z
2022-03-29T12:54:28.000Z
src/python/py_HDP.cpp
jonaschn/tomotopy
e37878ac3531a13e29317912298bf4b5f457521b
[ "MIT" ]
122
2019-05-22T07:08:31.000Z
2022-03-21T11:58:01.000Z
src/python/py_HDP.cpp
jonaschn/tomotopy
e37878ac3531a13e29317912298bf4b5f457521b
[ "MIT" ]
49
2019-06-05T09:04:30.000Z
2022-03-30T18:04:20.000Z
#include "../TopicModel/HDP.h" #include "module.h" #include "utils.h" using namespace std; static int HDP_init(TopicModelObject *self, PyObject *args, PyObject *kwargs) { size_t tw = 0, minCnt = 0, minDf = 0, rmTop = 0; tomoto::HDPArgs margs; PyObject* objCorpus = nullptr, *objTransform = nullptr; static const c...
39.306667
110
0.607531
jonaschn
cf0eb17b16e37f1c78dbfb1e17e277981762b8fc
403
cpp
C++
C and C++/Competitive Problem Solutions/CodeChef/NUKES.cpp
CustomUser47/Hacktoberfest2020
1b141fa5fb9fd0a170b40aca92cbd1d318cf17cd
[ "MIT" ]
null
null
null
C and C++/Competitive Problem Solutions/CodeChef/NUKES.cpp
CustomUser47/Hacktoberfest2020
1b141fa5fb9fd0a170b40aca92cbd1d318cf17cd
[ "MIT" ]
null
null
null
C and C++/Competitive Problem Solutions/CodeChef/NUKES.cpp
CustomUser47/Hacktoberfest2020
1b141fa5fb9fd0a170b40aca92cbd1d318cf17cd
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define ll long long #define vect vector<int> int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll a, n, k; cin>>a>>n>>k; int nuke[k] = {0}; for(int i = 0; i < k; i++){ nuke[i] = a % (n + 1); a = a / (n + 1); if(a == 0) break; ...
18.318182
31
0.459057
CustomUser47
cf13cb6a44c428d4b86f0af22da967cde9b7a858
4,605
cc
C++
o3d/core/cross/object_manager.cc
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
11
2015-03-20T04:08:08.000Z
2021-11-15T15:51:36.000Z
o3d/core/cross/object_manager.cc
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
null
null
null
o3d/core/cross/object_manager.cc
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
1
2020-04-13T05:45:10.000Z
2020-04-13T05:45:10.000Z
/* * Copyright 2009, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
32.429577
79
0.709446
rwatson
cf1498d674dd9b3949a47ed3b16fb53e85c84272
2,434
cpp
C++
libs/outcome/doc/src/snippets/policies.cpp
ztchu/boost_1_70_0
f86bf1a4ad9efe7b2d76e4878ea240ac35ca4250
[ "BSL-1.0" ]
32
2018-05-14T23:26:54.000Z
2020-06-14T10:13:20.000Z
libs/outcome/doc/src/snippets/policies.cpp
ztchu/boost_1_70_0
f86bf1a4ad9efe7b2d76e4878ea240ac35ca4250
[ "BSL-1.0" ]
79
2018-08-01T11:50:45.000Z
2020-11-17T13:40:06.000Z
libs/outcome/doc/src/snippets/policies.cpp
ztchu/boost_1_70_0
f86bf1a4ad9efe7b2d76e4878ea240ac35ca4250
[ "BSL-1.0" ]
14
2021-01-08T05:05:19.000Z
2022-03-27T14:56:56.000Z
#include "../../../include/boost/outcome.hpp" namespace outcome = BOOST_OUTCOME_V2_NAMESPACE; //! [abort_policy] struct abort_policy : outcome::policy::base { template <class Impl> static constexpr void wide_value_check(Impl &&self) { if(!base::_has_value(std::forward<Impl>(self))) std::abort(); } ...
27.348315
103
0.664749
ztchu
cf1b0f982a5c51036a6ace890f4d850295a55471
805
cpp
C++
CodeForces/Complete/800-899/839C-Journey.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
CodeForces/Complete/800-899/839C-Journey.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
CodeForces/Complete/800-899/839C-Journey.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
#include <cstdio> #include <vector> double averageLength(long node, const std::vector<std::vector<long> > &m, std::vector<bool> &been){ if(been[node]){return 0;} been[node] = 1; double num(0), den(0); for(long p = 0; p < m[node].size(); p++){ long cur = m[node][p]; if(been[cur]){contin...
22.361111
99
0.513043
Ashwanigupta9125
cf1ba43eb0f1a4da50c449565beeee8d2ee4d4b8
4,301
hpp
C++
src/Renderer.hpp
HilbertCurve/MIDI-fi
cfe9e43d3c84ec0fcc1d2c110c8332b167fbca4f
[ "Apache-2.0" ]
null
null
null
src/Renderer.hpp
HilbertCurve/MIDI-fi
cfe9e43d3c84ec0fcc1d2c110c8332b167fbca4f
[ "Apache-2.0" ]
null
null
null
src/Renderer.hpp
HilbertCurve/MIDI-fi
cfe9e43d3c84ec0fcc1d2c110c8332b167fbca4f
[ "Apache-2.0" ]
null
null
null
/* date = March 31st 2022 10:52 am */ #ifndef MIDIFI_RENDERER_HPP #define MIDIFI_RENDERER_HPP #include <glm/glm.hpp> #include "Utils.hpp" namespace MidiFi { namespace Renderer { /////////////////////// // Shaders /////////////////////// /** * A shader is a pair of programs that are executed on ...
22.87766
83
0.568007
HilbertCurve
cf1e74641ad881ee5fb40a7e26a4c52e9f13f9d4
498
cpp
C++
packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp
Denia-Vargas-Araya/ApartamentosR
3e62de9946efb5b6545ce431972f5cc790dae673
[ "MIT" ]
113
2018-07-12T07:49:33.000Z
2021-04-16T12:41:53.000Z
packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp
Denia-Vargas-Araya/ApartamentosR
3e62de9946efb5b6545ce431972f5cc790dae673
[ "MIT" ]
81
2018-03-01T18:05:41.000Z
2020-01-15T18:47:31.000Z
packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp
Denia-Vargas-Araya/ApartamentosR
3e62de9946efb5b6545ce431972f5cc790dae673
[ "MIT" ]
55
2017-05-20T12:42:19.000Z
2019-03-26T16:38:16.000Z
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*- // This is a rewrite of the 'Writing R Extensions' section 5.10.1 example #include <Rcpp.h> // using namespace Rcpp ; SEXP overhead_cpp(SEXP a, SEXP b) { return R_NilValue ; } extern "C" void R_init_overhead_1(DllInfo *info){ R_CallM...
22.636364
73
0.638554
Denia-Vargas-Araya
cf217ad36abf80dcdd19174a48ad7546ea61723f
552
cpp
C++
2021CCPC_val_final/Q1.cpp
Leon-Francis/AlgorithmPractice
bfff066da64ebbb00ecd33d94ebbe5bcc382867c
[ "MIT" ]
1
2020-10-07T12:03:12.000Z
2020-10-07T12:03:12.000Z
2021CCPC_val_final/Q1.cpp
Leon-Francis/AlgorithmPractice
bfff066da64ebbb00ecd33d94ebbe5bcc382867c
[ "MIT" ]
null
null
null
2021CCPC_val_final/Q1.cpp
Leon-Francis/AlgorithmPractice
bfff066da64ebbb00ecd33d94ebbe5bcc382867c
[ "MIT" ]
null
null
null
#include <stdio.h> using namespace std; long long labs(long long x) { if (x < 0) { return -x; } return x; } int main() { long long T; scanf("%lld", &T); long long A, B; for (long long i = 0; i < T; i++) { scanf("%lld%lld", &A, &B); long long C = A - B; ...
15.333333
37
0.36413
Leon-Francis
cf240d70e760c14fe01ee9c18b9db0b675ffa217
772
hh
C++
test/DBAL/DriverTest.hh
decouple/decouple.io
c841e905fbc8bd9507759a0ef6e56e1985c56c5a
[ "MIT" ]
null
null
null
test/DBAL/DriverTest.hh
decouple/decouple.io
c841e905fbc8bd9507759a0ef6e56e1985c56c5a
[ "MIT" ]
null
null
null
test/DBAL/DriverTest.hh
decouple/decouple.io
c841e905fbc8bd9507759a0ef6e56e1985c56c5a
[ "MIT" ]
null
null
null
<?hh // strict namespace Test\DBAL; use Decouple\Console\CLI\CLI; use Decouple\Test\TestCase; use Decouple\DBAL\DPDO\DPDOMySQLDriver; use Decouple\Registry\Paths; class DriverTest extends TestCase { public function __construct() {} public function execute(Paths $paths): void { $db_config = hack_require($paths->...
29.692308
70
0.647668
decouple
cf26dd7e25fcef3fff46825da9cab3aaad586b3f
2,340
cpp
C++
ivb-3-14/bykosvkyAS/lab2.cpp
bykovskyy/2014
474c6eb940978d4f323ef4dc2eac8e0360f19612
[ "BSD-2-Clause" ]
null
null
null
ivb-3-14/bykosvkyAS/lab2.cpp
bykovskyy/2014
474c6eb940978d4f323ef4dc2eac8e0360f19612
[ "BSD-2-Clause" ]
null
null
null
ivb-3-14/bykosvkyAS/lab2.cpp
bykovskyy/2014
474c6eb940978d4f323ef4dc2eac8e0360f19612
[ "BSD-2-Clause" ]
null
null
null
// 2.cpp вариант 7: #include "stdafx.h" #include <conio.h> #include <stdio.h> #include <iostream> #include <clocale> using namespace std; int main() { setlocale(LC_ALL, "Russian"); int i, j; /для циклов bool opt1 = false; //есть ли нули в матрицах bool opt2 = false; //Зададим размеры 2-х матриц ...
26.896552
98
0.406838
bykovskyy
cf27452c0f664212fde5611aaa396ea362b7201e
180,551
cpp
C++
csl/cslbase/cmfont-widths.cpp
arthurcnorman/general
5e8fef0cc7999fa8ab75d8fdf79ad5488047282b
[ "BSD-2-Clause" ]
null
null
null
csl/cslbase/cmfont-widths.cpp
arthurcnorman/general
5e8fef0cc7999fa8ab75d8fdf79ad5488047282b
[ "BSD-2-Clause" ]
null
null
null
csl/cslbase/cmfont-widths.cpp
arthurcnorman/general
5e8fef0cc7999fa8ab75d8fdf79ad5488047282b
[ "BSD-2-Clause" ]
null
null
null
// // cmfont-widths.cpp // Widths for characters in Computer Modern Fonts // // extracted from wxfonts/tfm // // // $Id: cmfont-widths.cpp 5331 2020-04-25 13:47:28Z arthurcnorman $ #include <stdint.h> typedef struct font_width { const char *name; int32_t checksum; int32_t designsize; int32_t charwidt...
67.169271
76
0.577626
arthurcnorman
cf29e2709db8fc6534b8a061cdd3efeb43d6beff
1,214
cpp
C++
examples/zoo/main.cpp
sinkarl/asp_db
8dc5b40257b438872a689f5894416ae80db7d7ca
[ "MIT" ]
null
null
null
examples/zoo/main.cpp
sinkarl/asp_db
8dc5b40257b438872a689f5894416ae80db7d7ca
[ "MIT" ]
null
null
null
examples/zoo/main.cpp
sinkarl/asp_db
8dc5b40257b438872a689f5894416ae80db7d7ca
[ "MIT" ]
null
null
null
/** * asp_db - db api of the project 'asp_therm' * =================================================================== * * zoo_example main * * =================================================================== * * Copyright (c) 2020 Mishutinski Yurii * * This library is distributed under the MIT License. * S...
23.803922
70
0.602142
sinkarl
cf2a9d7eea9ebb6abe5e6acffcfa85a09a4458f3
115
cpp
C++
tests/main.cpp
maksym-lepekh/cpp-primitivo
a39a3ccbf6a13427406a56ab9a1a3938555c61ee
[ "MIT" ]
null
null
null
tests/main.cpp
maksym-lepekh/cpp-primitivo
a39a3ccbf6a13427406a56ab9a1a3938555c61ee
[ "MIT" ]
null
null
null
tests/main.cpp
maksym-lepekh/cpp-primitivo
a39a3ccbf6a13427406a56ab9a1a3938555c61ee
[ "MIT" ]
null
null
null
#include <primitivo/p.hpp> #include <iostream> int main() { std::cout << p::text << std::endl; return 0; }
14.375
38
0.591304
maksym-lepekh
cf2dce3a11a3bc2cafa1bdffaf40e28ea4e62b8d
2,780
hpp
C++
sdk/include/xcLayerSheet.hpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
sdk/include/xcLayerSheet.hpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
sdk/include/xcLayerSheet.hpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
#pragma once #include "commctrl.h" #include "xframe.h" #include "vector" namespace Hxsoft{ namespace XFrame { #define XTabStyle int; #define XTabState int; #define LYSN_PRESELECTSHEET 0x0001; #define LYSN_SELECTEDSHEET 0x0002; #define LYSN_CLOSESHEET 0x0003; struct LYSNMHDR : public NMHDR { int nSheet; }...
26.226415
93
0.743525
qianxj
cf353a2fc4d340a971f6871327531bd2b31b89bf
19,271
hpp
C++
include/samurai/subset/node_op.hpp
tbellotti/samurai
b10fa2115d69eb184609103579ba433ff09891df
[ "BSD-3-Clause" ]
13
2021-01-07T19:23:42.000Z
2022-01-26T13:07:41.000Z
include/samurai/subset/node_op.hpp
gouarin/samurai
7ae877997e8b9bdb85b84acaabb3c0483ff78689
[ "BSD-3-Clause" ]
1
2021-07-04T17:30:47.000Z
2021-07-04T17:30:47.000Z
include/samurai/subset/node_op.hpp
gouarin/samurai
7ae877997e8b9bdb85b84acaabb3c0483ff78689
[ "BSD-3-Clause" ]
2
2021-01-07T15:54:49.000Z
2021-02-24T13:11:42.000Z
// Copyright 2021 SAMURAI TEAM. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #pragma once #include <memory> #include <type_traits> #include <xtensor/xexpression.hpp> #include <xtensor/xfixed.hpp> #include <xtl/xtype_traits.hpp> #include...
29.287234
107
0.587463
tbellotti
cf3b04ef40cccfe839c720ec1ecf609f50ba288b
520
cpp
C++
crack-data-structures-and-algorithms/leetcode/valid_palindrome_q125.cpp
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
20
2016-05-16T11:09:04.000Z
2021-12-08T09:30:33.000Z
crack-data-structures-and-algorithms/leetcode/valid_palindrome_q125.cpp
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
1
2018-12-30T09:55:31.000Z
2018-12-30T14:08:30.000Z
crack-data-structures-and-algorithms/leetcode/valid_palindrome_q125.cpp
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
11
2016-05-02T09:17:12.000Z
2021-12-08T09:30:35.000Z
#include <string> using namespace std; // 核心思路 // 因为题目说只考虑alphanumeric字符,所以开一个新的字符串只存符合的字符 // 然后就是简单的左右双指针扫描 class Solution { public: bool isPalindrome(string s) { string clean; for (auto ch : s) { if (isalnum(ch)) { clean += tolower(ch); } } ...
17.931034
43
0.453846
Watch-Later
cf3ceb9a690d8c7ca3a6b3f526433e435b10301f
3,159
hpp
C++
sdk/boost_1_30_0/boost/mpl/aux_/preprocessed/plain/list.hpp
acidicMercury8/xray-1.0
65e85c0e31e82d612c793d980dc4b73fa186c76c
[ "Linux-OpenIB" ]
10
2021-05-04T06:40:27.000Z
2022-01-20T20:24:28.000Z
sdk/boost_1_30_0/boost/mpl/aux_/preprocessed/plain/list.hpp
acidicMercury8/xray-1.0
65e85c0e31e82d612c793d980dc4b73fa186c76c
[ "Linux-OpenIB" ]
null
null
null
sdk/boost_1_30_0/boost/mpl/aux_/preprocessed/plain/list.hpp
acidicMercury8/xray-1.0
65e85c0e31e82d612c793d980dc4b73fa186c76c
[ "Linux-OpenIB" ]
2
2021-11-07T16:57:19.000Z
2021-12-05T13:17:12.000Z
// preprocessed version of 'boost/mpl/list.hpp' header // see the original for copyright information namespace boost { namespace mpl { template< typename T0 = void_, typename T1 = void_, typename T2 = void_ , typename T3 = void_, typename T4 = void_, typename T5 = void_ , typename T6 = void_, t...
24.3
76
0.600823
acidicMercury8
cf3d247eb6cfe75159784950a2513b695abd87d5
2,635
cpp
C++
KNN.cpp
Quanhaoli2641/MachineLearningVoter
244ed7dd18d0c497a903e3ada5fe3f9aa4ec18c7
[ "MIT" ]
4
2016-12-16T16:42:41.000Z
2017-01-27T23:49:33.000Z
KNN.cpp
Quanhaoli2641/MachineLearningVoter
244ed7dd18d0c497a903e3ada5fe3f9aa4ec18c7
[ "MIT" ]
null
null
null
KNN.cpp
Quanhaoli2641/MachineLearningVoter
244ed7dd18d0c497a903e3ada5fe3f9aa4ec18c7
[ "MIT" ]
null
null
null
#include <stdio.h> #include <string> #include <random> #include <math.h> #include "KNN.h" #include "Data.h" #include <iostream> using namespace std; using namespace DataEntries; // Calculates the Euclidean distance between two data entries namespace KNN { float getDistance (Data& trainingOne, Data& trainingTwo...
29.277778
92
0.566983
Quanhaoli2641
cf3dedbc00f74a523306a9d3ef01e12d157f5b15
19,635
cc
C++
Modules/Plexil/src/value/ValueType.cc
5nefarious/icarous
bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8
[ "Unlicense" ]
null
null
null
Modules/Plexil/src/value/ValueType.cc
5nefarious/icarous
bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8
[ "Unlicense" ]
null
null
null
Modules/Plexil/src/value/ValueType.cc
5nefarious/icarous
bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8
[ "Unlicense" ]
null
null
null
/* Copyright (c) 2006-2017, Universities Space Research Association (USRA). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright ...
25.835526
91
0.623326
5nefarious
cf3fd2ea2950e0728189fa09032dae6ede750ff7
479
cpp
C++
1022-Circle in Square.cpp
BRAINIAC2677/Lightoj-Solutions
e75f56b2cb4ef8f7e00de39fed447b1b37922427
[ "MIT" ]
null
null
null
1022-Circle in Square.cpp
BRAINIAC2677/Lightoj-Solutions
e75f56b2cb4ef8f7e00de39fed447b1b37922427
[ "MIT" ]
null
null
null
1022-Circle in Square.cpp
BRAINIAC2677/Lightoj-Solutions
e75f56b2cb4ef8f7e00de39fed447b1b37922427
[ "MIT" ]
null
null
null
/*BISMILLAH THE WHITE WOLF NO DREAM IS TOO BIG AND NO DREAMER IS TOO SMALL*/ #include <stdio.h> #include <math.h> using namespace std; int main() { double r; double sarea; double carea; double area; int t; scanf("%d", &t); for (int i = 1; i <= t; i++) { scanf("%lf", &r); ...
15.451613
49
0.48643
BRAINIAC2677
cf4140daca04d5b0a0c70c7b7b3c693772e54176
247
hpp
C++
case_studies/rwlocks.hpp
msullivan/rmc-compiler
e44888c0e27e76076d80517d53019f506fde145f
[ "MIT" ]
3
2016-03-10T08:42:27.000Z
2019-12-11T14:50:28.000Z
case_studies/rwlocks.hpp
msullivan/rmc-compiler
e44888c0e27e76076d80517d53019f506fde145f
[ "MIT" ]
null
null
null
case_studies/rwlocks.hpp
msullivan/rmc-compiler
e44888c0e27e76076d80517d53019f506fde145f
[ "MIT" ]
2
2019-01-17T23:19:30.000Z
2021-11-13T05:44:02.000Z
// Copyright (c) 2014-2017 Michael J. Sullivan // Use of this source code is governed by an MIT-style license that can be // found in the LICENSE file. #ifndef RWLOCKS_HEADER #define RWLOCKS_HEADER "rwlocks_sc.hpp" #endif #include RWLOCKS_HEADER
27.444444
74
0.773279
msullivan
cf41c4e118db454c8b329e3bbb11ec18a5663400
2,335
hpp
C++
BipModel/include/InterfaceView/PV__InterfaceView__portBase_xcommands_xMotion2D.hpp
ESROCOS/control-mc_watchdog
62ffb1f1843b0be0b780a0186f0d0ef7f27a58e5
[ "CECILL-B" ]
null
null
null
BipModel/include/InterfaceView/PV__InterfaceView__portBase_xcommands_xMotion2D.hpp
ESROCOS/control-mc_watchdog
62ffb1f1843b0be0b780a0186f0d0ef7f27a58e5
[ "CECILL-B" ]
null
null
null
BipModel/include/InterfaceView/PV__InterfaceView__portBase_xcommands_xMotion2D.hpp
ESROCOS/control-mc_watchdog
62ffb1f1843b0be0b780a0186f0d0ef7f27a58e5
[ "CECILL-B" ]
null
null
null
#ifndef INCLUDE_INTERFACEVIEW_PV____INTERFACEVIEW____PORTBASE__XCOMMANDS__XMOTION2D_HPP_ #define INCLUDE_INTERFACEVIEW_PV____INTERFACEVIEW____PORTBASE__XCOMMANDS__XMOTION2D_HPP_ #include <PortValue.hpp> #include <InterfaceView/PT__InterfaceView__portBase_xcommands_xMotion2D.hpp> class AtomExportData; class AtomExpor...
38.916667
147
0.796574
ESROCOS
cf440d6e4d7e5b9b60aa18c438ad6e86bcb49f53
1,946
cpp
C++
cpp/lib/fps_system/test/fps_system.unit_test.cpp
blakewoolbright/fps_platform
cd81f799432cfc3700c2dfda4e01fc6c154d53f9
[ "Unlicense" ]
null
null
null
cpp/lib/fps_system/test/fps_system.unit_test.cpp
blakewoolbright/fps_platform
cd81f799432cfc3700c2dfda4e01fc6c154d53f9
[ "Unlicense" ]
null
null
null
cpp/lib/fps_system/test/fps_system.unit_test.cpp
blakewoolbright/fps_platform
cd81f799432cfc3700c2dfda4e01fc6c154d53f9
[ "Unlicense" ]
null
null
null
#define BOOST_TEST_MODULE fps_system #include "fps_string/format.h" #include "fps_system/fps_system.h" #include <boost/test/unit_test.hpp> #include <thread> #include <iostream> using namespace fps ; BOOST_AUTO_TEST_CASE( fps_system__cpu ) { std::cout << "[ fps::system unit tests ]" << std::endl << "...
29.484848
95
0.612539
blakewoolbright
cf44917ab7d700a5e022b4a34a32bd1055dbf27d
2,224
cpp
C++
OrbitCore/src/Game/CompositeTree/Node.cpp
JusticesHand/orbit-engine
fd9bd160f6e54fb49a9e720f0c409ae5deb6e676
[ "MIT" ]
null
null
null
OrbitCore/src/Game/CompositeTree/Node.cpp
JusticesHand/orbit-engine
fd9bd160f6e54fb49a9e720f0c409ae5deb6e676
[ "MIT" ]
8
2017-09-05T04:12:03.000Z
2017-10-26T03:17:07.000Z
OrbitCore/src/Game/CompositeTree/Node.cpp
JusticesHand/orbit-engine
fd9bd160f6e54fb49a9e720f0c409ae5deb6e676
[ "MIT" ]
null
null
null
/*! @file Game/CompositeTree/Node.cpp */ #include "Game/CompositeTree/Node.h" #include "Game/CompositeTree/Visitor.h" #include "Render/Model.h" #include <glm/gtc/matrix_transform.hpp> using namespace Orbit; Node::Node(const std::string& name, const std::shared_ptr<Model>& model) : _name(name), _model(model) { } ...
16.597015
95
0.696942
JusticesHand
cf49ac5ac0a5ff633c1a6fc20fb5a59aee7dd4f2
1,584
cpp
C++
27. LeetCode Problems/MedianofTwoSortedArrays.cpp
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
225
2021-10-01T03:09:01.000Z
2022-03-11T11:32:49.000Z
27. LeetCode Problems/MedianofTwoSortedArrays.cpp
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
252
2021-10-01T03:45:20.000Z
2021-12-07T18:32:46.000Z
27. LeetCode Problems/MedianofTwoSortedArrays.cpp
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
911
2021-10-01T02:55:19.000Z
2022-02-06T09:08:37.000Z
#include <bits/stdc++.h> using namespace std; double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2){ if(nums1.size()>nums2.size()) return findMedianSortedArrays(nums2,nums1); int n=nums1.size(), m=nums2.size(); int lt=0, rt = n; while(lt<=rt) { ...
29.886792
93
0.491162
Ujjawalgupta42
cf4aea52b0be67acd6a760cb474aaf2d2361ef85
3,251
cpp
C++
src/CoreGuid.cpp
heikopanjas/ultraschall-core-model
6f3449adb7725c1e5273157e7d0ad6d92a89eaf6
[ "MIT" ]
null
null
null
src/CoreGuid.cpp
heikopanjas/ultraschall-core-model
6f3449adb7725c1e5273157e7d0ad6d92a89eaf6
[ "MIT" ]
null
null
null
src/CoreGuid.cpp
heikopanjas/ultraschall-core-model
6f3449adb7725c1e5273157e7d0ad6d92a89eaf6
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) The Ultraschall Project (http://ultraschall.fm) // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the ...
23.729927
80
0.64411
heikopanjas
cf4b8c475d232efdab0cec3ab93de9856a2bcfab
875
cpp
C++
acmicpc/1256.cpp
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
acmicpc/1256.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
acmicpc/1256.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
#include <iostream> #include <cstring> using namespace std; const int INF = 1e9+7; #define MAX 101 int n, m, k; int dp[MAX][MAX]; string ans; bool flag; int solve(int a, int b) { if (a == 0 || b == 0) return 1; if (~dp[a][b]) return dp[a][b]; dp[a][b] = min(INF, solve(a-1, b) + solve(a, b-1)); return dp[a]...
13.059701
52
0.489143
juseongkr
cf596fda970ff95615fcaec76006987f98297b67
12,656
cpp
C++
iot-protocols/amqp/classes/headerapi/amqpwrapper.cpp
mobius-software-ltd/iotbroker.cloud-cpp-client
c970b72d2fe4eb83859df902ae8e76d13941cf5e
[ "RSA-MD" ]
null
null
null
iot-protocols/amqp/classes/headerapi/amqpwrapper.cpp
mobius-software-ltd/iotbroker.cloud-cpp-client
c970b72d2fe4eb83859df902ae8e76d13941cf5e
[ "RSA-MD" ]
null
null
null
iot-protocols/amqp/classes/headerapi/amqpwrapper.cpp
mobius-software-ltd/iotbroker.cloud-cpp-client
c970b72d2fe4eb83859df902ae8e76d13941cf5e
[ "RSA-MD" ]
null
null
null
/** * Mobius Software LTD * Copyright 2015-2018, Mobius Software LTD * * This 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 2.1 of * the License, or (at your option) any later ve...
28.376682
92
0.63464
mobius-software-ltd
cf5a4a96541fa03e4bcd9696e94106052b85fac2
563
cpp
C++
Codeforces/HelpfulMaths.cpp
unobatbayar/codingbat
085c86f8f2f043cc020ba0f5fcc364d3f03de9e6
[ "MIT" ]
2
2018-10-28T16:56:20.000Z
2019-05-17T19:13:21.000Z
Codeforces/HelpfulMaths.cpp
unobatbayar/CodingBat
94044b6150df8ce7a4fbe42a47b168fbf2fede61
[ "MIT" ]
2
2022-02-22T04:23:15.000Z
2022-03-31T06:55:56.000Z
Codeforces/HelpfulMaths.cpp
unobatbayar/CodingBat
94044b6150df8ce7a4fbe42a47b168fbf2fede61
[ "MIT" ]
null
null
null
#include <iostream> // std::cout, std::cin #include <bits/stdc++.h> // includes all standard library using namespace std; int main() { string sum; cin >> sum; int length = (sum.length() + 1)/2; int numbers[length]; int count = 0; for(int i = 0; i<sum.length(); i++){ if(sum[i] != '+')...
18.766667
57
0.486679
unobatbayar
cf5d9093d1d04eda1c43bfd468533d60a2073b10
5,051
cpp
C++
src/tools/SimpleTraversabilityRadialLUT.cpp
skasperski/slam-maps
916c2ab77573162a17df2567cf6df16c300538bc
[ "BSD-2-Clause" ]
15
2016-05-20T05:21:45.000Z
2021-07-21T02:34:18.000Z
src/tools/SimpleTraversabilityRadialLUT.cpp
skasperski/slam-maps
916c2ab77573162a17df2567cf6df16c300538bc
[ "BSD-2-Clause" ]
19
2016-06-22T18:43:36.000Z
2021-09-28T15:20:31.000Z
src/tools/SimpleTraversabilityRadialLUT.cpp
skasperski/slam-maps
916c2ab77573162a17df2567cf6df16c300538bc
[ "BSD-2-Clause" ]
12
2017-03-10T10:19:46.000Z
2021-06-04T05:50:10.000Z
// // Copyright (c) 2015-2017, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH. // Copyright (c) 2015-2017, University of Bremen // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // ...
38.853846
190
0.639477
skasperski
cf66f8acd01b4d0d3d2558c3a53e79b28b442f18
1,295
cpp
C++
plugins/opengl/src/vertex/unset_buffer.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
plugins/opengl/src/vertex/unset_buffer.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
plugins/opengl/src/vertex/unset_buffer.cpp
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) #include <sge/opengl/context/object_fwd.hpp> #include <sge/opengl/context/use.hpp> #include <sge/op...
41.774194
93
0.744402
cpreh
cf6719432e57697170bbbcdebdff3d4ce1fe49dc
214
cpp
C++
src/split.cpp
vgteam/od
9e9c4811169760f64690e86619dbd1b088ec5955
[ "MIT" ]
60
2019-03-04T13:32:46.000Z
2021-02-23T02:32:54.000Z
src/split.cpp
vgteam/od
9e9c4811169760f64690e86619dbd1b088ec5955
[ "MIT" ]
120
2019-03-08T18:06:37.000Z
2021-03-18T09:12:16.000Z
src/split.cpp
vgteam/od
9e9c4811169760f64690e86619dbd1b088ec5955
[ "MIT" ]
18
2019-04-03T09:50:57.000Z
2021-02-23T14:55:55.000Z
#include "split.hpp" namespace odgi { std::vector<std::string> split(const std::string &s, char delim) { std::vector<std::string> elems; split(s, delim, std::back_inserter(elems)); return elems; } }
17.833333
66
0.658879
vgteam
cf679a04c6dc593e66ffe3a00728c0d68c0f3ff9
12,964
cpp
C++
src/sweepc/source/swp_condensation.cpp
sm453/MOpS
f1a706c6552bbdf3ceab504121a02391a1b51ede
[ "MIT" ]
3
2020-09-08T14:06:33.000Z
2020-12-04T07:52:19.000Z
src/sweepc/source/swp_condensation.cpp
sm453/MOpS
f1a706c6552bbdf3ceab504121a02391a1b51ede
[ "MIT" ]
null
null
null
src/sweepc/source/swp_condensation.cpp
sm453/MOpS
f1a706c6552bbdf3ceab504121a02391a1b51ede
[ "MIT" ]
3
2021-11-15T05:18:26.000Z
2022-03-01T13:51:20.000Z
/* Author(s): Matthew Celnik (msc37) Project: sweepc (population balance solver) Sourceforge: http://sourceforge.net/projects/mopssuite Copyright (C) 2008 Matthew S Celnik. File purpose: Implementation of the Condensation class declared in the swp_condensation.h header file. Lice...
31.77451
105
0.623804
sm453
cf67e9394991fb4ab11bd4270c3818fa07864387
4,326
cpp
C++
smolengine/src/Core/Engine.cpp
YellowDummy/SmolEngine
a5638f7592cc5f5f036c44bab33c51841969e9b1
[ "Apache-2.0" ]
16
2020-06-30T16:27:12.000Z
2021-09-09T15:38:03.000Z
smolengine/src/Core/Engine.cpp
YellowDummy/SmolEngine
a5638f7592cc5f5f036c44bab33c51841969e9b1
[ "Apache-2.0" ]
null
null
null
smolengine/src/Core/Engine.cpp
YellowDummy/SmolEngine
a5638f7592cc5f5f036c44bab33c51841969e9b1
[ "Apache-2.0" ]
2
2021-05-18T05:44:19.000Z
2021-08-24T09:37:11.000Z
#include "stdafx.h" #include "Core/Engine.h" #include "ECS/Systems/ScriptingSystem.h" #include "ECS/Components/Singletons/GraphicsEngineSComponent.h" #include "ECS/Components/Singletons/JobsSystemStateSComponent.h" #include <frostium/Common/DebugLog.h> #include <frostium/GraphicsContext.h> #include <frostium/Multithr...
22.768421
114
0.700416
YellowDummy
cf6c136ae76b45885c6329f4b9529c85f0a846ea
7,019
hpp
C++
src/map/three-stage-image-managers.hpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
2
2019-02-28T00:28:08.000Z
2019-10-20T14:39:48.000Z
src/map/three-stage-image-managers.hpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
null
null
null
src/map/three-stage-image-managers.hpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
null
null
null
// ---------------------------------------------------------------------------- // "THE BEER-WARE LICENSE" (Revision 42): // <ztn@zurreal.com> wrote this file. As long as you retain this notice you // can do whatever you want with this stuff. If we meet some day, and you think // this stuff is worth it, you can bu...
37.137566
101
0.66035
tilnewman
cf6e90dd779fe615795980913a26bb6874d6766d
1,892
hh
C++
bullet/src/EntityManagementFeatures.hh
vatanaksoytezer/ign-physics
e21c8c9f94d364a10f0671ec1eb347f2c32c3348
[ "ECL-2.0", "Apache-2.0" ]
39
2020-04-15T16:56:50.000Z
2022-03-23T19:53:01.000Z
bullet/src/EntityManagementFeatures.hh
vatanaksoytezer/ign-physics
e21c8c9f94d364a10f0671ec1eb347f2c32c3348
[ "ECL-2.0", "Apache-2.0" ]
265
2020-04-17T22:46:45.000Z
2022-03-30T21:34:29.000Z
bullet/src/EntityManagementFeatures.hh
vatanaksoytezer/ign-physics
e21c8c9f94d364a10f0671ec1eb347f2c32c3348
[ "ECL-2.0", "Apache-2.0" ]
26
2020-04-16T08:08:56.000Z
2022-01-12T07:47:34.000Z
/* * Copyright (C) 2021 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
28.666667
75
0.7537
vatanaksoytezer
cf6f03e439e0c5ed3a9a87663cb2daab90528044
14,680
cpp
C++
Povox/src/Povox/Renderer/VoxelRenderer.cpp
PowerOfNames/PonX
cac2c67168857409b40f9f76e9570868668370fd
[ "Apache-2.0" ]
null
null
null
Povox/src/Povox/Renderer/VoxelRenderer.cpp
PowerOfNames/PonX
cac2c67168857409b40f9f76e9570868668370fd
[ "Apache-2.0" ]
null
null
null
Povox/src/Povox/Renderer/VoxelRenderer.cpp
PowerOfNames/PonX
cac2c67168857409b40f9f76e9570868668370fd
[ "Apache-2.0" ]
null
null
null
#include "pxpch.h" #include "Povox/Renderer/VoxelRenderer.h" #include "Povox/Renderer/VertexArray.h" #include "Povox/Renderer/Shader.h" #include "Povox/Renderer/Texture.h" #include "Povox/Renderer/RenderCommand.h" #include "Povox/Renderer/Renderer2D.h" #include "Povox/Utility/Misc.h" #include <glm/gtc/matrix_transf...
34.060325
162
0.722207
PowerOfNames
cf728ead837fd4e28ad83d375637b3f3b05ceab8
3,108
cpp
C++
libjobject/ClassRegistryWindows.cpp
klemenm81/reflection
4b15a5d33c376414cb6a2ff0f57175d515b47c70
[ "Apache-2.0" ]
null
null
null
libjobject/ClassRegistryWindows.cpp
klemenm81/reflection
4b15a5d33c376414cb6a2ff0f57175d515b47c70
[ "Apache-2.0" ]
null
null
null
libjobject/ClassRegistryWindows.cpp
klemenm81/reflection
4b15a5d33c376414cb6a2ff0f57175d515b47c70
[ "Apache-2.0" ]
null
null
null
#include "ClassRegistry.h" #include "exceptions/InternalErrorException.h" #include <windows.h> #include <tchar.h> #include <dbghelp.h> #include <stdio.h> BOOL CALLBACK MyEnumSymbolsCallback(SYMBOL_INFO* pSymInfo, ULONG SymbolSize, PVOID UserContext) { std::vector<std::string>& classFactoryNames = *(reinterpret_ca...
26.793103
111
0.692728
klemenm81
cf74c455d43dd61ef5c0c3c31d9bb88ea3557ee2
3,578
cpp
C++
modules/bio_base/seqset_export_test.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
16
2021-07-14T23:32:31.000Z
2022-03-24T16:25:15.000Z
modules/bio_base/seqset_export_test.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-20T20:39:47.000Z
2021-09-16T20:57:59.000Z
modules/bio_base/seqset_export_test.cpp
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-15T19:38:35.000Z
2022-01-31T19:24:56.000Z
#include "modules/bio_base/dna_testutil.h" #include "modules/bio_base/seqset_testutil.h" #include "modules/bio_base/seqset_export.h" #include "modules/io/config.h" #include <gtest/gtest.h> #include <gmock/gmock.h> namespace { using namespace dna_testutil; using namespace testing; } // namespace class seqset_expor...
31.385965
88
0.712968
spiralgenetics
cf7815a2382d77de44a665c50ad6af7c14edfd86
2,032
cpp
C++
Netcode/Graphics/DX12/DX12ShaderCompiler.cpp
tyekx/netcode
c46fef1eeb33ad029d0c262d39309dfa83f76c4d
[ "MIT" ]
null
null
null
Netcode/Graphics/DX12/DX12ShaderCompiler.cpp
tyekx/netcode
c46fef1eeb33ad029d0c262d39309dfa83f76c4d
[ "MIT" ]
null
null
null
Netcode/Graphics/DX12/DX12ShaderCompiler.cpp
tyekx/netcode
c46fef1eeb33ad029d0c262d39309dfa83f76c4d
[ "MIT" ]
null
null
null
#include "DX12ShaderCompiler.h" #include <memory> #include <Netcode/HandleTypes.h> #include <Netcode/Utility.h> #include "DX12Common.h" #include "DX12Includes.h" #include <d3dcompiler.h> namespace Netcode::Graphics::DX12 { static const char * GetShaderVersion(ShaderType type) { switch(type) { case ShaderType::V...
33.866667
203
0.724902
tyekx
cf7873dc04cbfe5b744d9ee5989b4672708b9549
6,879
cpp
C++
src/passes/param-utils.cpp
sthagen/WebAssembly-binaryen
477ccde79e1196a973f40b633f2230a391b590af
[ "Apache-2.0" ]
35
2015-10-30T01:32:47.000Z
2015-11-12T13:23:30.000Z
src/passes/param-utils.cpp
sthagen/WebAssembly-binaryen
477ccde79e1196a973f40b633f2230a391b590af
[ "Apache-2.0" ]
1
2015-11-06T05:17:09.000Z
2015-11-11T21:50:00.000Z
src/passes/param-utils.cpp
sthagen/WebAssembly-binaryen
477ccde79e1196a973f40b633f2230a391b590af
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2022 WebAssembly Community Group participants * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
29.523605
80
0.618404
sthagen
cf78fbf3a30403757cf3a6f8e904e29af49c05c4
13,207
cc
C++
test/extensions/transport_sockets/tls/test_private_key_method_provider.cc
dong-qiu/envoy
e550d8fe66666ac9cf7e15dc28985565f2255a61
[ "Apache-2.0" ]
null
null
null
test/extensions/transport_sockets/tls/test_private_key_method_provider.cc
dong-qiu/envoy
e550d8fe66666ac9cf7e15dc28985565f2255a61
[ "Apache-2.0" ]
null
null
null
test/extensions/transport_sockets/tls/test_private_key_method_provider.cc
dong-qiu/envoy
e550d8fe66666ac9cf7e15dc28985565f2255a61
[ "Apache-2.0" ]
null
null
null
#include "test/extensions/transport_sockets/tls/test_private_key_method_provider.h" #include <memory> #include "envoy/api/api.h" #include "openssl/ssl.h" namespace Envoy { namespace Extensions { namespace PrivateKeyMethodProvider { void TestPrivateKeyConnection::delayed_op() { const std::chrono::milliseconds tim...
34.939153
100
0.682668
dong-qiu
cf7a51eb39090efc37a8cbc218f8674b95708b5c
2,966
cpp
C++
Source.cpp
kenjinote/INIFile
7c4006bc1054b7815cf87fd2a8b678c52234ddca
[ "MIT" ]
2
2017-10-29T15:00:06.000Z
2018-07-07T01:36:29.000Z
Source.cpp
kenjinote/INIFile
7c4006bc1054b7815cf87fd2a8b678c52234ddca
[ "MIT" ]
null
null
null
Source.cpp
kenjinote/INIFile
7c4006bc1054b7815cf87fd2a8b678c52234ddca
[ "MIT" ]
null
null
null
#pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #pragma comment(lib, "shlwapi") #include <windows.h> #include <shlwapi.h> TCHAR szClassName[] = TEXT("Window"); LRESULT...
27.211009
196
0.694538
kenjinote
cf80f50fc4932297b7eb2904d08061c20a6fb2aa
2,954
cpp
C++
src/http/http_connection.cpp
hsbyhub/libxco
e71f995839886c69e710ca5811403f025b8d0c4f
[ "MulanPSL-1.0" ]
3
2022-03-12T03:01:24.000Z
2022-03-23T11:02:48.000Z
src/http/http_connection.cpp
hsbyhub/libxco
e71f995839886c69e710ca5811403f025b8d0c4f
[ "MulanPSL-1.0" ]
null
null
null
src/http/http_connection.cpp
hsbyhub/libxco
e71f995839886c69e710ca5811403f025b8d0c4f
[ "MulanPSL-1.0" ]
1
2022-03-21T05:36:03.000Z
2022-03-21T05:36:03.000Z
/*================================================================* Copyright (C) 2021 All rights reserved, www.hsby.link. 文件名称:http_session.cc 创 建 者:汉森伯逸 创建日期:2021/12/30 *================================================================*/ #include "http/http_connection.h" #include "http/h...
29.247525
105
0.545701
hsbyhub
cf81b19407d8f9067110ded9557085cdfad08621
709
cpp
C++
acmicpcnet/2104.cpp
irresi/algostudy
489739d641d6e36bbedf86be6391d1db27456585
[ "MIT" ]
null
null
null
acmicpcnet/2104.cpp
irresi/algostudy
489739d641d6e36bbedf86be6391d1db27456585
[ "MIT" ]
null
null
null
acmicpcnet/2104.cpp
irresi/algostudy
489739d641d6e36bbedf86be6391d1db27456585
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll = long long; using pll = pair<ll,ll>; const int inf=1e9+3; #define all(x) (x).begin(),(x).end() #define sync() {ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0); //do not use ; ll sum[100003],arr[100003],ans,n; vector<pll> v; set<ll> lib; int main() { int i,j;...
21.484848
84
0.551481
irresi
cf81eb237624ea699f3ce181c30652a5980a9323
17,994
cpp
C++
simulation/simulation_interface/test/test_conversions.cpp
autocore-ai/scenario_simulator_v2
bb9569043e20649f0e4390e9225b6bb7b4de10b6
[ "Apache-2.0" ]
null
null
null
simulation/simulation_interface/test/test_conversions.cpp
autocore-ai/scenario_simulator_v2
bb9569043e20649f0e4390e9225b6bb7b4de10b6
[ "Apache-2.0" ]
null
null
null
simulation/simulation_interface/test/test_conversions.cpp
autocore-ai/scenario_simulator_v2
bb9569043e20649f0e4390e9225b6bb7b4de10b6
[ "Apache-2.0" ]
null
null
null
// Copyright 2015-2020 Tier IV, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
38.366738
100
0.73619
autocore-ai
cf8b7d4183916362f6840e937f3e33a8c970ead9
965
hh
C++
Buggy/EncoderTest/Encoder.hh
FJFranklin/cariot
9e4e93a7f4438c59fa6376dd792ddba44bd1fa6a
[ "MIT" ]
null
null
null
Buggy/EncoderTest/Encoder.hh
FJFranklin/cariot
9e4e93a7f4438c59fa6376dd792ddba44bd1fa6a
[ "MIT" ]
null
null
null
Buggy/EncoderTest/Encoder.hh
FJFranklin/cariot
9e4e93a7f4438c59fa6376dd792ddba44bd1fa6a
[ "MIT" ]
null
null
null
#include <Arduino.h> class Encoder { private: void (*ch_A_interrupt)(); void (*ch_B_interrupt)(); float (*synchronise)(unsigned long & last_elapsed, unsigned long & last_count); // returns latest elapsed time and pulse count float cpr; // counts per revolution = 4 * ppr float sense; // 1 for clockwise-is...
23.536585
128
0.676684
FJFranklin
cf8c59a6caec7321b2149329a82507a33d36ec8c
3,146
cpp
C++
source/data_model/cxx/src/core/array.cpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
2
2021-02-26T22:45:56.000Z
2021-05-02T10:28:48.000Z
source/data_model/cxx/src/core/array.cpp
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
262
2016-08-11T10:12:02.000Z
2020-10-13T18:09:16.000Z
source/data_model/cxx/src/core/array.cpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
1
2020-03-11T09:49:41.000Z
2020-03-11T09:49:41.000Z
#include "lue/core/array.hpp" #include <cassert> namespace lue { namespace data_model { Array::Array( hdf5::Group const& parent, std::string const& name): hdf5::Dataset{parent, name}, _memory_datatype{hdf5::memory_datatype(datatype())} { assert(id().is_valid()); } Array::Array( hdf5::Grou...
19.300613
104
0.698029
computationalgeography
cf949649599b786fcb2d1a94246b0f9bc3ef9250
19,909
cpp
C++
artifact/storm/src/storm-gspn/builder/JaniGSPNBuilder.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
null
null
null
artifact/storm/src/storm-gspn/builder/JaniGSPNBuilder.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
null
null
null
artifact/storm/src/storm-gspn/builder/JaniGSPNBuilder.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
1
2022-02-05T12:39:53.000Z
2022-02-05T12:39:53.000Z
#include "JaniGSPNBuilder.h" #include <memory> #include "storm/logic/Formulas.h" #include "storm/exceptions/InvalidModelException.h" namespace storm { namespace builder { storm::jani::Model* JaniGSPNBuilder::build(std::string const& automatonName) { storm::jani::ModelType modelType = storm::...
62.021807
278
0.595761
glatteis
cf95e70d63b50072c615440308962dca15b7cade
4,715
cpp
C++
patched-driver-sdk/customSDK/psw/ae/common/src/AEReportAttestationResponse.cpp
shwetasshinde24/Panoply
9a762c24dec61250d953d1769b070df7f0dd0317
[ "Apache-2.0" ]
30
2017-02-08T02:53:36.000Z
2022-03-24T14:26:17.000Z
linux-sdk/psw/ae/common/src/AEReportAttestationResponse.cpp
sslab-gatech/SGX-Shield
04b09dd6e5dc538fbc9533a2264ed4b8612b0f48
[ "MIT" ]
4
2017-05-25T00:39:02.000Z
2018-04-27T10:38:47.000Z
patched-driver-sdk/customSDK/psw/ae/common/src/AEReportAttestationResponse.cpp
shwetasshinde24/Panoply
9a762c24dec61250d953d1769b070df7f0dd0317
[ "Apache-2.0" ]
8
2017-10-31T11:12:35.000Z
2020-06-15T04:12:51.000Z
/* * Copyright (C) 2011-2016 Intel Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this li...
30.224359
128
0.736797
shwetasshinde24
cf9728bde11e8b4ad539ed3455745e2235894e6b
10,966
cpp
C++
dblab/problem_set/2017/sorted.cpp
jihwanK/personal_projects
6d03d95249f417c7d4fdf559262f1390f0f8c6eb
[ "MIT" ]
1
2020-08-07T01:30:45.000Z
2020-08-07T01:30:45.000Z
dblab/problem_set/2017/sorted.cpp
jihwanK/personal_projects
6d03d95249f417c7d4fdf559262f1390f0f8c6eb
[ "MIT" ]
null
null
null
dblab/problem_set/2017/sorted.cpp
jihwanK/personal_projects
6d03d95249f417c7d4fdf559262f1390f0f8c6eb
[ "MIT" ]
null
null
null
// Solution from ACRush, 2009 Code Jam #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <...
47.064378
179
0.62712
jihwanK
cf9fee90b018fad3d78644fef42f4ab203ed213c
2,638
hpp
C++
external/bsd/kyua-cli/lib/utils/defs.hpp
calmsacibis995/minix
dfba95598f553b6560131d35a76658f1f8c9cf38
[ "Unlicense" ]
null
null
null
external/bsd/kyua-cli/lib/utils/defs.hpp
calmsacibis995/minix
dfba95598f553b6560131d35a76658f1f8c9cf38
[ "Unlicense" ]
null
null
null
external/bsd/kyua-cli/lib/utils/defs.hpp
calmsacibis995/minix
dfba95598f553b6560131d35a76658f1f8c9cf38
[ "Unlicense" ]
null
null
null
// Copyright 2010 Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and...
41.21875
78
0.761941
calmsacibis995
cfa2db81638101ffbc92bb232039fecce047b30d
16,149
cpp
C++
Serverko/Srvk/Srvk/scriptmanager/pyscript.cpp
qframework/QFramework
9cef9261553e4486b535e07fdd16d51acc9ecd4a
[ "Apache-2.0" ]
2
2017-05-11T03:42:08.000Z
2022-01-11T02:26:50.000Z
Serverko/Srvk/Srvk/scriptmanager/pyscript.cpp
qframework/QFramework
9cef9261553e4486b535e07fdd16d51acc9ecd4a
[ "Apache-2.0" ]
null
null
null
Serverko/Srvk/Srvk/scriptmanager/pyscript.cpp
qframework/QFramework
9cef9261553e4486b535e07fdd16d51acc9ecd4a
[ "Apache-2.0" ]
null
null
null
/* Copyright 2012, Telum Slavonski Brod, Croatia. 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 writi...
26.004831
136
0.517246
qframework
cfa3dfd0af0e35abcda596de535bc522ae1fb42c
1,108
cpp
C++
PAT_B/B1011|A+B 和 C|.cpp
FunamiYui/PAT_Code_Akari
52e06689b6bf8177c43ab9256719258c47e80b25
[ "MIT" ]
null
null
null
PAT_B/B1011|A+B 和 C|.cpp
FunamiYui/PAT_Code_Akari
52e06689b6bf8177c43ab9256719258c47e80b25
[ "MIT" ]
null
null
null
PAT_B/B1011|A+B 和 C|.cpp
FunamiYui/PAT_Code_Akari
52e06689b6bf8177c43ab9256719258c47e80b25
[ "MIT" ]
null
null
null
#include <cstdio> #define ll long long int main() { int T; ll a, b, c; scanf("%d", &T); for (int i = 1; i <= T; i++) { scanf("%lld%lld%lld", &a, &b, &c); if (a + b > c) { printf("Case #%d: true\n", i); } else { printf("Case #%d: false\n", i); } ...
17.587302
81
0.411552
FunamiYui
cfa44f97261a3fc483d73ffec32cb241094440cd
23,301
hpp
C++
project/include/Alter/InstanceLevel.hpp
helixd2s/ZEON
b4b6394fa15e7a8ebeaa336d8bf6f45e2d096d46
[ "MIT" ]
null
null
null
project/include/Alter/InstanceLevel.hpp
helixd2s/ZEON
b4b6394fa15e7a8ebeaa336d8bf6f45e2d096d46
[ "MIT" ]
null
null
null
project/include/Alter/InstanceLevel.hpp
helixd2s/ZEON
b4b6394fa15e7a8ebeaa336d8bf6f45e2d096d46
[ "MIT" ]
null
null
null
#pragma once // #ifdef __cplusplus #include "./Core.hpp" #include "./Instance.hpp" #include "./Device.hpp" #include "./Resource.hpp" #include "./GeometryLevel.hpp" // #ifdef ALT_ENABLE_VMA #include "./MemoryAllocatorVma.hpp" #endif // namespace ANAMED { // class InstanceLevelObj : public BaseObj { public: ...
47.845996
314
0.696622
helixd2s
cfa48ad6c7b190e56690d7eee32d88aa91d4bb44
1,555
cpp
C++
sources/daemon/Point.cpp
InfiernoGamesStudio/KnightScript
bb88f570b25850e6efbbde19d90d86a5e5d1e040
[ "MIT" ]
null
null
null
sources/daemon/Point.cpp
InfiernoGamesStudio/KnightScript
bb88f570b25850e6efbbde19d90d86a5e5d1e040
[ "MIT" ]
null
null
null
sources/daemon/Point.cpp
InfiernoGamesStudio/KnightScript
bb88f570b25850e6efbbde19d90d86a5e5d1e040
[ "MIT" ]
null
null
null
#include <math.h> #include "../../headers/Maths/Point.hpp" void Points::Add( Point target, Point source, float scalar ) { target[ 0 ] = source[ 0 ] + scalar; target[ 1 ] = source[ 1 ] + scalar; } void Points::Add( Point target, Point one, Point two ) { target[ 0 ] = one[ 0 ] + two[ 0 ]; target[ 1 ] = one[ 1 ]...
25.080645
70
0.568489
InfiernoGamesStudio
bbbb41e2aac11a6f8ec31e605efe85c826259bde
596
hpp
C++
falcon/mpl/min_element.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
2
2018-02-02T14:19:59.000Z
2018-05-13T02:48:24.000Z
falcon/mpl/min_element.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
falcon/mpl/min_element.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
#ifndef FALCON_MPL_MIN_ELEMENT_HPP #define FALCON_MPL_MIN_ELEMENT_HPP #include <falcon/mpl/arg.hpp> #include <falcon/mpl/less.hpp> #include <falcon/mpl/begin_end.hpp> #include <falcon/mpl/aux_/min_element_impl.hpp> namespace falcon { namespace mpl { template<typename Sequence, typename Pred = less<arg<1>,arg<2>>> st...
20.551724
65
0.748322
jonathanpoelen
bbbf57f38682ed601e14d95f6124d0fb85d0306c
124
cc
C++
besch/reader/root_reader.cc
4ssfscker/node-sim
2bd3422fd645f415024907c9cf92697057cbc222
[ "Artistic-1.0", "MIT" ]
null
null
null
besch/reader/root_reader.cc
4ssfscker/node-sim
2bd3422fd645f415024907c9cf92697057cbc222
[ "Artistic-1.0", "MIT" ]
null
null
null
besch/reader/root_reader.cc
4ssfscker/node-sim
2bd3422fd645f415024907c9cf92697057cbc222
[ "Artistic-1.0", "MIT" ]
null
null
null
#include "root_reader.h" void root_reader_t::register_obj(obj_besch_t *&data) { delete_node(data); data = NULL; }
13.777778
52
0.693548
4ssfscker
bbc52a59f4c8f617921babcc29a38c9cc782b673
1,541
cpp
C++
SematEngine/SourceCode/RMaterial.cpp
paupedra/SematEngine
bcc264bb996436645f0c84e2c81da8949e5745be
[ "MIT" ]
2
2020-11-12T12:43:43.000Z
2020-12-05T17:57:12.000Z
SematEngine/SourceCode/RMaterial.cpp
paupedra/SematEngine
bcc264bb996436645f0c84e2c81da8949e5745be
[ "MIT" ]
null
null
null
SematEngine/SourceCode/RMaterial.cpp
paupedra/SematEngine
bcc264bb996436645f0c84e2c81da8949e5745be
[ "MIT" ]
null
null
null
//#include "Resource.h" #include "Application.h" #include "Random.h" #include "Config.h" #include "MFileSystem.h" #include "MResourceManager.h" #include "RMaterial.h" #include "RTexture.h" //#include "Dependecies/mmgr/mmgr.h" RMaterial::RMaterial() { resourceData.type = ResourceType::material; color = Color(1,1,1...
18.129412
63
0.716418
paupedra
bbc89f6df0d3ceb75ab5763cd55ebf8390db057d
1,570
cpp
C++
src/flamegpu/model/SubAgentData.cpp
ptheywood/FLAMEGPU2
a6373ce08ced38c7a76145a7a4854f1a604f1506
[ "MIT" ]
23
2021-03-25T14:17:10.000Z
2022-03-19T16:18:28.000Z
src/flamegpu/model/SubAgentData.cpp
ptheywood/FLAMEGPU2
a6373ce08ced38c7a76145a7a4854f1a604f1506
[ "MIT" ]
343
2017-01-02T17:51:12.000Z
2021-03-16T10:22:37.000Z
src/flamegpu/model/SubAgentData.cpp
ptheywood/FLAMEGPU2
a6373ce08ced38c7a76145a7a4854f1a604f1506
[ "MIT" ]
9
2017-01-03T20:01:42.000Z
2020-09-13T21:16:20.000Z
#include "flamegpu/model/SubAgentData.h" #include "flamegpu/model/SubAgentDescription.h" #include "flamegpu/model/AgentData.h" #include "flamegpu/model/ModelData.h" namespace flamegpu { bool SubAgentData::operator==(const SubAgentData &rhs) const { if (this == &rhs) // They point to same object return ...
40.25641
212
0.712739
ptheywood
bbccccacab237e20d31cdec2e0f3fd378b9c7364
483
hpp
C++
src/modules/osgUtil/generated_code/vector_less__osg_scope_ref_ptr_less_osgUtil_scope_RenderLeaf_greater___greater_.pypp.hpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osgUtil/generated_code/vector_less__osg_scope_ref_ptr_less_osgUtil_scope_RenderLeaf_greater___greater_.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osgUtil/generated_code/vector_less__osg_scope_ref_ptr_less_osgUtil_scope_RenderLeaf_greater___greater_.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #ifndef vector_less__osg_scope_ref_ptr_less_osgUtil_scope_RenderLeaf_greater___greater__hpp__pyplusplus_wrapper #define vector_less__osg_scope_ref_ptr_less_osgUtil_scope_RenderLeaf_greater___greater__hpp__pyplusplus_wrapper void register_vector_less__osg_scope_ref_ptr_less_osg...
53.666667
111
0.935818
JaneliaSciComp
bbd4e132e184875840ec5497deb4155bcbaca885
441
cpp
C++
src/Externals/spire/es-render/util/Shader.cpp
Nahusa/SCIRun
c54e714d4c7e956d053597cf194e07616e28a498
[ "MIT" ]
1
2019-05-30T06:00:15.000Z
2019-05-30T06:00:15.000Z
src/Externals/spire/es-render/util/Shader.cpp
manual123/SCIRun
3816b1dc4ebd0c5bd4539b7e50e08592acdac903
[ "MIT" ]
null
null
null
src/Externals/spire/es-render/util/Shader.cpp
manual123/SCIRun
3816b1dc4ebd0c5bd4539b7e50e08592acdac903
[ "MIT" ]
null
null
null
#include "Shader.hpp" #include "es-render/comp/StaticShaderMan.hpp" namespace ren { void addShaderVSFS(spire::CerealCore& core, uint64_t entityID, const std::string& shader) { std::weak_ptr<ren::ShaderMan> sm = core.getStaticComponent<ren::StaticShaderMan>()->instance_; if (std::shared_ptr<Shad...
27.5625
96
0.716553
Nahusa
bbd9446dc43c718120be2f67598109b9899bfab7
557
hpp
C++
Cpp/CppBasics/HomeLibrarySystem/AnalyzeHomeLibOfTheLecturer/book.hpp
NatanMeirov/ExperisAcademyBootcamp
6608ef5571e6dc4eb1f481695da3476ecd4f7547
[ "MIT" ]
null
null
null
Cpp/CppBasics/HomeLibrarySystem/AnalyzeHomeLibOfTheLecturer/book.hpp
NatanMeirov/ExperisAcademyBootcamp
6608ef5571e6dc4eb1f481695da3476ecd4f7547
[ "MIT" ]
null
null
null
Cpp/CppBasics/HomeLibrarySystem/AnalyzeHomeLibOfTheLecturer/book.hpp
NatanMeirov/ExperisAcademyBootcamp
6608ef5571e6dc4eb1f481695da3476ecd4f7547
[ "MIT" ]
null
null
null
#ifndef __BOOK_ITEM__ #define __BOOK_ITEM__ #include <string> // std::string #include "library_item.hpp" namespace homelib { class Book : public LibraryItem { public: Book(const std::string &a_title, const std::string &a_auther, unsigned short a_yearOfPublication); Book(const Book &a_other) = default; ...
18.566667
102
0.696589
NatanMeirov
bbda2eb4c3bc394d9b6441796529069304623d47
434
cpp
C++
src/reverse/WeakReference.cpp
rednek46/CyberEngineTweaks
961b1a573064770658d36831bc7534bd03ffeb44
[ "MIT" ]
null
null
null
src/reverse/WeakReference.cpp
rednek46/CyberEngineTweaks
961b1a573064770658d36831bc7534bd03ffeb44
[ "MIT" ]
null
null
null
src/reverse/WeakReference.cpp
rednek46/CyberEngineTweaks
961b1a573064770658d36831bc7534bd03ffeb44
[ "MIT" ]
null
null
null
#include "WeakReference.h" #include <RED4ext/REDreverse/Scripting/IScriptable.hpp> WeakReference::WeakReference(sol::state_view aView, WeakHandle aWeakHandle) : Type(aView, aWeakHandle.handle->GetClass()) , m_weakHandle(aWeakHandle) { } WeakReference::~WeakReference() { // Someday maybe actually free memo...
22.842105
75
0.758065
rednek46
bbdb31be0a0c7f778c121ee956e507aa162d27e3
4,043
cpp
C++
external/activemq-cpp-library-3.4.1/src/main/decaf/internal/util/concurrent/windows/MutexImpl.cpp
framos-gemini/giapi-glue-cc
f59e1ce572494b57aad6985f3233f0e51167bb42
[ "BSD-3-Clause" ]
null
null
null
external/activemq-cpp-library-3.4.1/src/main/decaf/internal/util/concurrent/windows/MutexImpl.cpp
framos-gemini/giapi-glue-cc
f59e1ce572494b57aad6985f3233f0e51167bb42
[ "BSD-3-Clause" ]
3
2017-06-14T15:21:50.000Z
2020-08-03T19:51:57.000Z
external/activemq-cpp-library-3.4.1/src/main/decaf/internal/util/concurrent/windows/MutexImpl.cpp
framos-gemini/giapi-glue-cc
f59e1ce572494b57aad6985f3233f0e51167bb42
[ "BSD-3-Clause" ]
3
2017-06-13T13:59:36.000Z
2021-02-09T02:01:14.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 You under the Apache License, Version 2.0 * (the "License"); you may ...
28.272727
80
0.564432
framos-gemini
bbdcf2bd2e42ad798009a270b09dfcfcf0c203c2
774
cpp
C++
Lab-6/Coin_Change_Greedy.cpp
Hitesh1309/DAA-Lab-Submissions
acaa495628ea3755a7602cf9d8ee35874bddbe88
[ "MIT" ]
1
2022-03-15T07:09:37.000Z
2022-03-15T07:09:37.000Z
Lab-6/Coin_Change_Greedy.cpp
Hitesh1309/DAA-Lab-Submissions
acaa495628ea3755a7602cf9d8ee35874bddbe88
[ "MIT" ]
null
null
null
Lab-6/Coin_Change_Greedy.cpp
Hitesh1309/DAA-Lab-Submissions
acaa495628ea3755a7602cf9d8ee35874bddbe88
[ "MIT" ]
1
2022-03-15T07:09:58.000Z
2022-03-15T07:09:58.000Z
#include<bits/stdc++.h> using namespace std; int main() { int n,t; cout<<"\nEnter the number of denominations: "; cin>>n; vector<int> change; map<int,int> result; change.push_back(1); // default denominations cout<<"\nEnter "<<n<<" denominations:\n"; for(int i=0;i<n;i++) { ...
16.125
54
0.494832
Hitesh1309
bbe0aa9f6b22b951f63e21ce47715d608e8f84e9
684
cpp
C++
Sources/AGEngine/Render/Buffer/UniformBuffer.cpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
47
2015-03-29T09:44:25.000Z
2020-11-30T10:05:56.000Z
Sources/AGEngine/Render/Buffer/UniformBuffer.cpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
313
2015-01-01T18:16:30.000Z
2015-11-30T07:54:07.000Z
Sources/AGEngine/Render/Buffer/UniformBuffer.cpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
9
2015-06-07T13:21:54.000Z
2020-08-25T09:50:07.000Z
#include <Render/Buffer/UniformBuffer.hh> namespace AGE { IBuffer const & UniformBuffer::bind() const { glBindBuffer(GL_UNIFORM_BUFFER, _id); return (*this); } IBuffer const & UniformBuffer::unbind() const { glBindBuffer(GL_UNIFORM_BUFFER, 0); return (*this); } GLenum UniformBuffer::mode() const { ...
19
89
0.711988
Another-Game-Engine
bbe1c85c15f3338dd206750fc674269a5db198cc
4,497
cpp
C++
custom_utilities/zdeprecated/domain_manager.cpp
ForeverDavid/isogeometric_application
4bc23241010a82aa38e845e0d3403e1cab28bc14
[ "MIT" ]
null
null
null
custom_utilities/zdeprecated/domain_manager.cpp
ForeverDavid/isogeometric_application
4bc23241010a82aa38e845e0d3403e1cab28bc14
[ "MIT" ]
null
null
null
custom_utilities/zdeprecated/domain_manager.cpp
ForeverDavid/isogeometric_application
4bc23241010a82aa38e845e0d3403e1cab28bc14
[ "MIT" ]
1
2021-12-25T08:31:06.000Z
2021-12-25T08:31:06.000Z
#include "domain_manager.h" namespace Kratos { void DomainManager::PrintInfo(std::ostream& rOStream) const { rOStream << "DomainManager in 2D"; } void DomainManager::PrintData(std::ostream& rOStream) const { rOStream << "X-coordinates:"; for(std::set<double>::const_iterato...
34.592308
135
0.502335
ForeverDavid
bbe4f4fc795d4a013c932677cacd152b208aa605
3,541
cpp
C++
lambda/lambda_arg.cpp
gymk/Study-CPP
f31b0fbd5ee961690fa7fdfe5c41e96c41c03997
[ "MIT" ]
1
2020-09-20T16:19:33.000Z
2020-09-20T16:19:33.000Z
lambda/lambda_arg.cpp
gymk/Study-CPP
f31b0fbd5ee961690fa7fdfe5c41e96c41c03997
[ "MIT" ]
1
2019-05-12T03:52:40.000Z
2019-05-12T10:10:24.000Z
lambda/lambda_arg.cpp
gymk/Study-CPP
f31b0fbd5ee961690fa7fdfe5c41e96c41c03997
[ "MIT" ]
1
2019-05-12T03:48:26.000Z
2019-05-12T03:48:26.000Z
#include <iostream> #include <array> struct MyStruct { MyStruct() { std::cout << "MyStruct 's Constructor invoked...\n"; } ~MyStruct() { std::cout << "MyStruct 's Destructor invoked...\n"; } MyStruct(const MyStruct&) { std::cout << "MyStruct 's Copy Constructor i...
31.900901
172
0.66196
gymk
bbe803dc4aebedb33cd48815632f2b5df5c208e7
4,670
cc
C++
docxbox/docx/docx_batch.cc
gyselroth/docxbox
ce7c4db5ef0d99f697b07cd086967c2bdb649f33
[ "MIT" ]
5
2020-04-07T08:32:17.000Z
2020-07-01T18:24:59.000Z
docxbox/docx/docx_batch.cc
gyselroth/docxbox
ce7c4db5ef0d99f697b07cd086967c2bdb649f33
[ "MIT" ]
56
2020-04-07T20:27:39.000Z
2020-07-09T15:38:30.000Z
docxbox/docx/docx_batch.cc
gyselroth/docxbox
ce7c4db5ef0d99f697b07cd086967c2bdb649f33
[ "MIT" ]
2
2020-04-08T11:17:18.000Z
2020-07-01T18:25:04.000Z
// Copyright (c) 2020 gyselroth GmbH // Licensed under the MIT License - https://opensource.org/licenses/MIT #include <docxbox/app/app.h> // forward-declaration #include <docxbox/docx/docx_batch.h> class docx_archive_replace; docx_batch::docx_batch(class docx_archive *archive, std::string json) { archive_ = arch...
29.1875
80
0.655032
gyselroth
bbe808e0cd948e130d157b1da1fbf4e9093b652a
789
cpp
C++
thirdparty/allocator/allocator.cpp
m110h/protopuddlepp
1aeae3ca6188e0e6e934f4275f77304b062dd78a
[ "MIT" ]
4
2020-05-27T01:46:39.000Z
2020-07-21T18:43:18.000Z
thirdparty/allocator/allocator.cpp
m110h/protopuddlepp
1aeae3ca6188e0e6e934f4275f77304b062dd78a
[ "MIT" ]
7
2020-05-10T09:01:48.000Z
2020-07-23T00:17:09.000Z
thirdparty/allocator/allocator.cpp
m110h/protopuddlepp
1aeae3ca6188e0e6e934f4275f77304b062dd78a
[ "MIT" ]
null
null
null
///////////////////////////////////////////////////////////////////////////// // Name: Allocator.cpp // Description: ... // Author: Mariano Trebino (https://github.com/mtrebi) // Modified by: Alexey Orlov (https://github.com/m110h) // Modified: 08/08/2020 // Licence: MIT licence ////////...
22.542857
99
0.499366
m110h
bbead81c5c133f48b173614fab836d87834a5b14
376
cxx
C++
src/capi/render_context.cxx
nshcat/gl_app
49b97f07f81dc252695a379c46213ad9c1d94e1a
[ "MIT" ]
1
2018-02-08T16:59:47.000Z
2018-02-08T16:59:47.000Z
src/capi/render_context.cxx
nshcat/roguelike
49b97f07f81dc252695a379c46213ad9c1d94e1a
[ "MIT" ]
null
null
null
src/capi/render_context.cxx
nshcat/roguelike
49b97f07f81dc252695a379c46213ad9c1d94e1a
[ "MIT" ]
null
null
null
#include <capi/render_context.h> #include <global_state.hxx> extern "C" { bool_t render_context_should_close() { return static_cast<bool_t>(global_state<render_context>().should_close()); } void render_context_begin_frame() { global_state<render_context>().begin_frame(); } void render_context_end_frame(...
17.904762
76
0.742021
nshcat
bbecdcfe91eff3c6738539ebaea673a0934a79f2
1,037
cpp
C++
examples/xtd.core.examples/io/directory_info/src/directory_info.cpp
BaderEddineOuaich/xtd
6f28634c7949a541d183879d2de18d824ec3c8b1
[ "MIT" ]
1
2022-02-25T16:53:06.000Z
2022-02-25T16:53:06.000Z
examples/xtd.core.examples/io/directory_info/src/directory_info.cpp
leanid/xtd
2e1ea6537218788ca08901faf8915d4100990b53
[ "MIT" ]
null
null
null
examples/xtd.core.examples/io/directory_info/src/directory_info.cpp
leanid/xtd
2e1ea6537218788ca08901faf8915d4100990b53
[ "MIT" ]
null
null
null
#include <xtd/xtd> using namespace xtd; using namespace xtd::io; int main() { directory_info di("."); console::write_line("full_name = {}", di.full_name()); console::write_line(" attributes = {}", di.attributes()); console::write_line(" creation_time = {}", di.creation_time()); console::write_line(" exis...
34.566667
86
0.65188
BaderEddineOuaich
bbeff9b632796c1faed268a785eb5be8d9e65fb6
2,598
cpp
C++
Project Mania/Source/World/Projectile.cpp
larsolm/Archives
18968c18b80777e589bc8a704b4375be2fff8eea
[ "MIT" ]
null
null
null
Project Mania/Source/World/Projectile.cpp
larsolm/Archives
18968c18b80777e589bc8a704b4375be2fff8eea
[ "MIT" ]
null
null
null
Project Mania/Source/World/Projectile.cpp
larsolm/Archives
18968c18b80777e589bc8a704b4375be2fff8eea
[ "MIT" ]
null
null
null
#include "Pch.h" #include "Collision/DynamicCollision.h" #include "Collision/LinearCollision.h" #include "World/Projectile.h" #include "Game/Game.h" #include <PargonAnimation.h> void Projectile::Initialize(Point2 position, Angle rotation) { ProjectedPosition = position; Position = Game()->World.GetRealPosition(posi...
28.866667
167
0.753657
larsolm
bbf08e2d8c5183aa86e7139a9bcbf65bab83f845
2,601
hpp
C++
src/ndnSIM/NFD/core/privilege-helper.hpp
NDNLink/NDN-Chord
cfabf8f56eea2c4ba47052ce145a939ebdc21e57
[ "MIT" ]
1
2021-09-07T04:12:15.000Z
2021-09-07T04:12:15.000Z
src/ndnSIM/NFD/core/privilege-helper.hpp
NDNLink/NDN-Chord
cfabf8f56eea2c4ba47052ce145a939ebdc21e57
[ "MIT" ]
null
null
null
src/ndnSIM/NFD/core/privilege-helper.hpp
NDNLink/NDN-Chord
cfabf8f56eea2c4ba47052ce145a939ebdc21e57
[ "MIT" ]
1
2020-07-15T06:21:03.000Z
2020-07-15T06:21:03.000Z
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2014-2018, Regents of the University of California, * Arizona Board of Regents, * Colorado State University, * University Pierre & Marie Curie, Sorbonne...
26.01
87
0.6609
NDNLink
bbf3eaa2914f24da3cc6041fc3634c0cd928f70b
1,518
cc
C++
B2G/gecko/toolkit/crashreporter/fileid/file_id.cc
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/toolkit/crashreporter/fileid/file_id.cc
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/toolkit/crashreporter/fileid/file_id.cc
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <string> #include <stdio.h> #include "common/linux/file_id.h" //TODO: move this somewhere common, this...
30.36
71
0.682477
wilebeast
bbf708e0f9229e22c1751272ac959cdefe859670
35,139
cpp
C++
src/qpl/time.cpp
DanielRabl/QPL
4b487a7d31eab511a961c100ed1985aa11f0572c
[ "Zlib" ]
5
2020-09-02T00:59:26.000Z
2021-08-21T19:14:40.000Z
src/qpl/time.cpp
DanielRabl/QPL
4b487a7d31eab511a961c100ed1985aa11f0572c
[ "Zlib" ]
null
null
null
src/qpl/time.cpp
DanielRabl/QPL
4b487a7d31eab511a961c100ed1985aa11f0572c
[ "Zlib" ]
2
2021-01-23T20:03:12.000Z
2021-08-21T19:15:58.000Z
#include <qpl/algorithm.hpp> #include <qpl/time.hpp> #include <qpl/string.hpp> #include <chrono> #include <algorithm> #include <ctime> #include <thread> namespace qpl { qpl::time qpl::time::clock_time() { return qpl::time{ static_cast<qpl::u64>( std::chrono::duration_cast<std::chrono::nanoseconds>(std::chro...
29.578283
273
0.642505
DanielRabl
bbf97c861e57bd138250dc38b646985b187887f0
1,796
hpp
C++
test/myarray.hpp
ShadowTeolog/StaticJSON
a3da99eae7fe48212cf193632724705c148e952b
[ "MIT" ]
158
2016-07-11T15:26:40.000Z
2022-01-01T14:12:32.000Z
test/myarray.hpp
ShadowTeolog/StaticJSON
a3da99eae7fe48212cf193632724705c148e952b
[ "MIT" ]
32
2016-07-12T09:28:40.000Z
2021-06-03T12:12:15.000Z
test/myarray.hpp
ShadowTeolog/StaticJSON
a3da99eae7fe48212cf193632724705c148e952b
[ "MIT" ]
31
2016-07-12T01:58:29.000Z
2021-12-08T10:12:02.000Z
#include <deque> #include <staticjson/staticjson.hpp> // This class is used to test custom conversion functions in StaticJSON. template <class T> class Array { private: T* m_data; size_t m_size; public: explicit Array() : m_data(nullptr), m_size(0) {} explicit Array(size_t size) : m_size(size) { m_da...
24.60274
93
0.565145
ShadowTeolog
bbfd2865dd2e103ed56881bd0b0541dcdb354ba6
2,921
cpp
C++
tests/src/NanoWinPrivateProfileTestTools.cpp
openlab-vn-ua/NanoWin32
5d9d2349ca551766213f5e2dcdbed4cc43c91052
[ "MIT" ]
9
2017-09-28T11:37:36.000Z
2021-03-30T14:30:23.000Z
tests/src/NanoWinPrivateProfileTestTools.cpp
openlab-vn-ua/NanoWin32
5d9d2349ca551766213f5e2dcdbed4cc43c91052
[ "MIT" ]
3
2019-11-22T12:09:40.000Z
2020-06-19T16:11:26.000Z
tests/src/NanoWinPrivateProfileTestTools.cpp
openlab-vn-ua/NanoWin32
5d9d2349ca551766213f5e2dcdbed4cc43c91052
[ "MIT" ]
1
2020-04-25T10:13:01.000Z
2020-04-25T10:13:01.000Z
#include <stdio.h> #ifdef __linux #include <unistd.h> #endif #include "NanoWinPrivateProfileTestTools.h" #include "NanoWinStrConvert.h" #ifdef __linux char TestINIFileName[] = "test.ini"; // foreward slash replace test as well wchar_t TestINIFileNameW[] = L"тест.ini"; // foreward slash replace test as well #else...
18.142857
84
0.588497
openlab-vn-ua
0101418ff9a619efb58190d40c9b3056354de9e6
2,120
hpp
C++
experimental/Pomdog.Experimental/UI/UIEventDispatcher.hpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
experimental/Pomdog.Experimental/UI/UIEventDispatcher.hpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
experimental/Pomdog.Experimental/UI/UIEventDispatcher.hpp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2015 mogemimi. // Distributed under the MIT license. See LICENSE.md file for details. #ifndef POMDOG_UIEVENTDISPATCHER_83873A91_HPP #define POMDOG_UIEVENTDISPATCHER_83873A91_HPP #include "UIView.hpp" #include "PointerPoint.hpp" #include "PointerEventType.hpp" #include "detail/SubscribeRequestDis...
28.266667
116
0.768396
bis83