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
d45036ea974dfdd4f7844d32cc2f3c295656276b
1,734
hpp
C++
engine/include/NullMessageManager.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
null
null
null
engine/include/NullMessageManager.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
null
null
null
engine/include/NullMessageManager.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
null
null
null
#include "IMessageManager.hpp" // This class does absolutely nothing. Its purpose is to provide an // implementation class for messages for creatures that are outside the // player's view map, and whose messages should not be displayed to the // screen. class NullMessageManager : public IMessageManager { public: ...
55.935484
208
0.802191
sidav
d4527e88a238f70a62e0c0fac333197790a25ac1
4,484
cpp
C++
ch10/10.exercise.04.stats.cpp
0p3r4t4/PPPUCPP2nd
cf1bd23bb22ee00a77172e43678b7eaa91f592e0
[ "MIT" ]
51
2017-03-24T06:08:11.000Z
2022-03-18T00:28:14.000Z
ch10/10.exercise.04.stats.cpp
0p3r4t4/PPPUCPP2nd
cf1bd23bb22ee00a77172e43678b7eaa91f592e0
[ "MIT" ]
1
2019-06-23T07:33:42.000Z
2019-12-12T13:14:04.000Z
ch10/10.exercise.04.stats.cpp
0p3r4t4/PPPUCPP2nd
cf1bd23bb22ee00a77172e43678b7eaa91f592e0
[ "MIT" ]
25
2017-04-07T13:22:45.000Z
2022-03-18T00:28:15.000Z
// 10.exercise.04.stats.cpp // // Modify the store_temp.cpp program from exercise 2 to include a temperature // suffix c for Celsius or f for Fahrenheit temperatures. Then modify the // temp_stats.cpp program to test each temperature, converting the Celsius // readings to Fahrenheit before putting them into the vec...
32.492754
79
0.646075
0p3r4t4
d455870df5c8308bce9621a38006dadc1dac3555
2,038
cpp
C++
particleContact.cpp
pestomerdes/pang_game
f99254a055faa89deb4f3b381a37f6f124cd2bf4
[ "Apache-2.0" ]
null
null
null
particleContact.cpp
pestomerdes/pang_game
f99254a055faa89deb4f3b381a37f6f124cd2bf4
[ "Apache-2.0" ]
null
null
null
particleContact.cpp
pestomerdes/pang_game
f99254a055faa89deb4f3b381a37f6f124cd2bf4
[ "Apache-2.0" ]
null
null
null
/* * Project name: Pang Game * Version 1 * Student : Albert Eduard Merino Pulido */ #include "particleContact.h" ParticleContact::ParticleContact(Particle * particle1, Particle * particle2, Vector3 contactNormal, double interpenetration) : particle1(particle1), particle2(particle2), contactNormal(contactNormal),...
36.392857
115
0.694308
pestomerdes
d458295691987c79f7d5cd20b31ed96a3d8f30f8
7,200
cpp
C++
build/Examples/5-SoundEffects/main.cpp
jcorks/Dynacoe
2d606620e8072d8ae76aa2ecdc31512ac90362d9
[ "Apache-2.0", "MIT", "Libpng", "FTL", "BSD-3-Clause" ]
1
2015-11-06T18:10:11.000Z
2015-11-06T18:10:11.000Z
build/Examples/5-SoundEffects/main.cpp
jcorks/Dynacoe
2d606620e8072d8ae76aa2ecdc31512ac90362d9
[ "Apache-2.0", "MIT", "Libpng", "FTL", "BSD-3-Clause" ]
8
2018-01-25T03:54:32.000Z
2018-09-17T01:55:35.000Z
build/Examples/5-SoundEffects/main.cpp
jcorks/Dynacoe
2d606620e8072d8ae76aa2ecdc31512ac90362d9
[ "Apache-2.0", "MIT", "Libpng", "FTL", "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu) All rights reserved. This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe) Dynacoe was released under the MIT License, as detailed below. Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
33.64486
89
0.647778
jcorks
d458698ce97cf5251e5e3105013291d31f0fa94a
3,294
cpp
C++
src/reservoir.cpp
shfiorenza/CyLaKS
f36ef87247dacc199ef82faa4110f2470f262197
[ "BSD-3-Clause" ]
null
null
null
src/reservoir.cpp
shfiorenza/CyLaKS
f36ef87247dacc199ef82faa4110f2470f262197
[ "BSD-3-Clause" ]
null
null
null
src/reservoir.cpp
shfiorenza/CyLaKS
f36ef87247dacc199ef82faa4110f2470f262197
[ "BSD-3-Clause" ]
1
2021-03-10T16:11:14.000Z
2021-03-10T16:11:14.000Z
#include "cylaks/reservoir.hpp" #include "cylaks/motor.hpp" #include "cylaks/protein.hpp" template class Reservoir<Motor>; template class Reservoir<Protein>; template <typename ENTRY_T> void Reservoir<ENTRY_T>::GenerateEntries(size_t n_entries) { reservoir_.resize(n_entries); active_entries_.resize(n_entries); ...
31.371429
79
0.680328
shfiorenza
d45aaf5a490ef055eb1bc318e67c641700870a57
3,413
cpp
C++
Daa_code/common/Flush_context.cpp
UoS-SCCS/ecc-daa
eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9
[ "BSD-2-Clause" ]
2
2020-02-28T10:40:12.000Z
2021-02-18T03:32:28.000Z
Daa_code/common/Flush_context.cpp
UoS-SCCS/ecc-daa
eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9
[ "BSD-2-Clause" ]
null
null
null
Daa_code/common/Flush_context.cpp
UoS-SCCS/ecc-daa
eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9
[ "BSD-2-Clause" ]
null
null
null
/******************************************************************************* * File: Flush_context.cpp * Description: Use TPM2_FlushContext to remove an object from transient memory * * Author: Chris Newton * * Created: Sunday 6 May 2018 * * (C) Copyright 2018, University of Surrey. * **************...
41.120482
80
0.487841
UoS-SCCS
d45b62c9c067160e8ae51eb845351e10bb6bb4d2
2,668
cpp
C++
tests/fft.cpp
ikraduya/cpp-fft-fscr
2fc542437053e7e3f4534474ddd48f89b48f5ff5
[ "MIT" ]
null
null
null
tests/fft.cpp
ikraduya/cpp-fft-fscr
2fc542437053e7e3f4534474ddd48f89b48f5ff5
[ "MIT" ]
null
null
null
tests/fft.cpp
ikraduya/cpp-fft-fscr
2fc542437053e7e3f4534474ddd48f89b48f5ff5
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <vector> #include <random> #include <algorithm> #include <limits> #include <complex> #include "fft-fscr.hpp" #include "matrix.hpp" namespace { using complex_d = std::complex<double>; constexpr double absoluteError = 0.00001; template<typename T> std::vector<T> generate_rando...
29.644444
115
0.691529
ikraduya
d461af2dbb55af61c6f9942508124469699a1d10
309
cpp
C++
MetroGame/adfdafsdf/ModelLoader.cpp
Kevintjeb/OpenCV-MetroGame
e3a88108576853c2f9f5a5901074b2d4a547cd39
[ "MIT" ]
null
null
null
MetroGame/adfdafsdf/ModelLoader.cpp
Kevintjeb/OpenCV-MetroGame
e3a88108576853c2f9f5a5901074b2d4a547cd39
[ "MIT" ]
null
null
null
MetroGame/adfdafsdf/ModelLoader.cpp
Kevintjeb/OpenCV-MetroGame
e3a88108576853c2f9f5a5901074b2d4a547cd39
[ "MIT" ]
null
null
null
#include "ModelLoader.h" ModelLoader::ModelLoader() { } ModelLoader::~ModelLoader() { } ObjModel * ModelLoader::getModel(int index) { if (models.size() < index) return nullptr; return models[index]; } void ModelLoader::insertModel(std::string pathfile) { models.push_back(new ObjModel(pathfile)); }
12.875
51
0.718447
Kevintjeb
d46277dccaa4234c994f6dc09289a02dd81c8e5c
68
cpp
C++
src/DesignPatterns/Factory.cpp
goodle06/SmallNN
51ed033b8a9d862b6f5418d1eba858ea06fe942c
[ "MIT" ]
null
null
null
src/DesignPatterns/Factory.cpp
goodle06/SmallNN
51ed033b8a9d862b6f5418d1eba858ea06fe942c
[ "MIT" ]
null
null
null
src/DesignPatterns/Factory.cpp
goodle06/SmallNN
51ed033b8a9d862b6f5418d1eba858ea06fe942c
[ "MIT" ]
null
null
null
#include <DesignPatterns/Factory.h> namespace DesignPatterns { }
9.714286
35
0.764706
goodle06
d467859154414e49993d6c7a3ddb17f2ccfa5ae3
1,869
cpp
C++
backup/2/csacademy/c++/check-square.cpp
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
21
2019-11-16T19:08:35.000Z
2021-11-12T12:26:01.000Z
backup/2/csacademy/c++/check-square.cpp
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
1
2022-02-04T16:02:53.000Z
2022-02-04T16:02:53.000Z
backup/2/csacademy/c++/check-square.cpp
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
4
2020-05-15T19:39:41.000Z
2021-10-30T06:40:31.000Z
// Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)...
31.677966
345
0.567683
yangyanzhan
d46c245145054403d85f9652d75b978db6832d37
4,412
hpp
C++
src/Kernel/Config.hpp
fcaillaud/SARAH
ca79c7d9449cf07eec9d5cc13293ec0c128defc1
[ "MIT" ]
null
null
null
src/Kernel/Config.hpp
fcaillaud/SARAH
ca79c7d9449cf07eec9d5cc13293ec0c128defc1
[ "MIT" ]
null
null
null
src/Kernel/Config.hpp
fcaillaud/SARAH
ca79c7d9449cf07eec9d5cc13293ec0c128defc1
[ "MIT" ]
null
null
null
/** * \file Config.hpp * \author fcaillaud * \version 0.1 * \date 28 Octobre 2013 * \brief Fichier implémentant un modèle BaseConfig et ses dérivés. * \details Une configuration permet de regrouper plusieurs données communes à un objet. * Ces attributs sont public afin de permettre à l'utilisate...
25.356322
132
0.62942
fcaillaud
d475f18f4d6ec9bdab99132732e80ab7973526e5
388
cpp
C++
c++/2222.cpp
AxlidinovJ/masalalar_C
ca48c0db29155016a729fbe23030d4a638175d9b
[ "MIT" ]
3
2021-12-02T20:28:27.000Z
2021-12-08T10:21:24.000Z
c++/2222.cpp
AxlidnovJ/masalalar_C
e0643137e115d7b9b26651a0d5acc24bc79f8d4f
[ "MIT" ]
null
null
null
c++/2222.cpp
AxlidnovJ/masalalar_C
e0643137e115d7b9b26651a0d5acc24bc79f8d4f
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main(){ string s,r[30],y;int k=0; cout<<"S="; getline(cin,s); for(int i=0; i<=s.length();i++){ if(s[i]==' '){ r[k] = y; k++; y = ""; }else{ y+=s[i]; } } r[k] = y;string d;int u=0; for(int i=0; i<=k; i++){ d = r[i]; for(int o=0; o<=d.length(); o++){ if(...
14.923077
35
0.440722
AxlidinovJ
d4770b16143736df0e07dd0b597eb414ba82be83
7,953
cpp
C++
src/libs/maxiSynths.cpp
fchungo/synth3f_modulos_cpp
9e678bb2fe924ca8343d6d49d1ebe74eeb8f28f4
[ "MIT" ]
null
null
null
src/libs/maxiSynths.cpp
fchungo/synth3f_modulos_cpp
9e678bb2fe924ca8343d6d49d1ebe74eeb8f28f4
[ "MIT" ]
null
null
null
src/libs/maxiSynths.cpp
fchungo/synth3f_modulos_cpp
9e678bb2fe924ca8343d6d49d1ebe74eeb8f28f4
[ "MIT" ]
null
null
null
// // maxiSynths.cpp // granular // // Created by Michael Grierson on 16/08/2015. // // #include "maxiSynths.h" maxiKick::maxiKick(){ maxiKick::envelope.setAttack(0); maxiKick::setPitch(200); maxiKick::envelope.setDecay(1); maxiKick::envelope.setSustain(1); maxiKick::envelope.setRelease(500); ...
14.921201
173
0.578147
fchungo
d47b5967ee63e7b228bbf3293e642340fa9e8b6f
15,692
cpp
C++
unit_tests/src/ArrayComparisonTest.cpp
mgorshkov/np
75c7adff38e7260371135839b547d5340f3ca367
[ "MIT" ]
null
null
null
unit_tests/src/ArrayComparisonTest.cpp
mgorshkov/np
75c7adff38e7260371135839b547d5340f3ca367
[ "MIT" ]
null
null
null
unit_tests/src/ArrayComparisonTest.cpp
mgorshkov/np
75c7adff38e7260371135839b547d5340f3ca367
[ "MIT" ]
null
null
null
/* C++ numpy-like template-based array implementation Copyright (c) 2022 Mikhail Gorshkov (mikhail.gorshkov@gmail.com) 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, includi...
29.663516
133
0.553021
mgorshkov
d481613f8e9f2e8d9124abfcf770d7ed36e7d74a
2,684
hpp
C++
src/resources/resource_library_interface.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
src/resources/resource_library_interface.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
src/resources/resource_library_interface.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
/* * TS Elements * Copyright 2015-2018 M. Newhouse * Released under the MIT license. */ #pragma once namespace ts { namespace resources { // The following class can be used to to expose resources in id-based resource libraries. // Examples include the texture and tile libraries. // The ContainerType m...
25.807692
104
0.637481
mnewhouse
d4877152c2b470eb1b5d5083318e85cd626023e9
889
cpp
C++
Top100LikedQuestions/94/solve1.cpp
GuoxiaWang/leetcodepractice
b96f7f59dcb233b673b64d3d4b7043c33334c556
[ "MIT" ]
null
null
null
Top100LikedQuestions/94/solve1.cpp
GuoxiaWang/leetcodepractice
b96f7f59dcb233b673b64d3d4b7043c33334c556
[ "MIT" ]
null
null
null
Top100LikedQuestions/94/solve1.cpp
GuoxiaWang/leetcodepractice
b96f7f59dcb233b673b64d3d4b7043c33334c556
[ "MIT" ]
null
null
null
//Given a binary tree, return the inorder traversal of its nodes' values. // //Example: // //Input: [1,null,2,3] // 1 // \ // 2 // / // 3 // //Output: [1,3,2] //Follow up: Recursive solution is trivial, could you do it iteratively? /** * Definition for a binary tree node. * struct TreeNode { * int ...
21.166667
73
0.487064
GuoxiaWang
d48cc8e6718c979e6f54c94c4a92c392f9ea861c
16,019
cc
C++
sysutil.cc
msharov/cwiclo
ff8e76bc8e726b93b48096b67560e3615f99e8ef
[ "0BSD" ]
2
2019-02-01T03:38:26.000Z
2021-04-13T13:03:08.000Z
sysutil.cc
msharov/cwiclo
ff8e76bc8e726b93b48096b67560e3615f99e8ef
[ "0BSD" ]
1
2019-12-04T07:04:19.000Z
2019-12-04T15:28:06.000Z
sysutil.cc
msharov/cwiclo
ff8e76bc8e726b93b48096b67560e3615f99e8ef
[ "0BSD" ]
3
2018-10-22T09:28:14.000Z
2020-08-06T10:43:25.000Z
// This file is part of the cwiclo project // // Copyright (c) 2018 by Mike Sharov <msharov@users.sourceforge.net> // This file is free software, distributed under the ISC License. #include "algo.h" #include "sysutil.h" #include "appl.h" #include <fcntl.h> #include <paths.h> #include <stdarg.h> #include <sys/stat.h> #...
27.810764
116
0.563643
msharov
d48ce6b1573ecb18c8ebc3a547bf08a40aa9c444
886
cpp
C++
RouterServer/Main.cpp
a654889339/FingerGuessGame
83673423bef882476e61d51a985d0ee27b62c155
[ "Apache-2.0" ]
1
2021-12-24T15:32:58.000Z
2021-12-24T15:32:58.000Z
RouterServer/Main.cpp
a654889339/FingerGuessGame
83673423bef882476e61d51a985d0ee27b62c155
[ "Apache-2.0" ]
null
null
null
RouterServer/Main.cpp
a654889339/FingerGuessGame
83673423bef882476e61d51a985d0ee27b62c155
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "RouterServer.h" RouterServer* g_pRouterServer = NULL; #ifdef WIN32 BOOL WINAPI ConsoleHandlerRoutine(DWORD dwCtrlType) { if (g_pRouterServer) { printf("Receive quit signal from console !\n"); g_pRouterServer->Quit(); } return true; } #endif int main(int a...
18.081633
55
0.626411
a654889339
d48cf0def016532e247d7be17d9ec2ba48ba853e
172
cpp
C++
Source/Sharing/Private/SharingSettings.cpp
PandoraEntertainment/Sharing
c49f86eea9da57a09651209ec4a8fe99cbe2b5c2
[ "MIT" ]
10
2016-11-28T00:22:20.000Z
2021-07-21T07:23:45.000Z
Source/Sharing/Private/SharingSettings.cpp
aussieburger/Sharing-android
b75659d1e17f3670ec2bf3b5a1d079daac7923ad
[ "MIT" ]
1
2018-03-27T09:56:15.000Z
2018-06-08T13:01:58.000Z
Source/Sharing/Private/SharingSettings.cpp
aussieburger/Sharing-android
b75659d1e17f3670ec2bf3b5a1d079daac7923ad
[ "MIT" ]
4
2017-01-11T02:35:55.000Z
2020-06-29T17:50:08.000Z
#include "SharingPrivatePCH.h" #include "SharingSettings.h" USharingSettings::USharingSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { }
21.5
79
0.825581
PandoraEntertainment
d48d6fcd6ebd091b623837f2d47b41e9f13882fc
11,033
cpp
C++
atframework/service/component/etcdcli/etcd_packer.cpp
asianhawk/atsf4g-co
63ef0623669674ec4ae0583578b8d75489bf9e86
[ "MIT" ]
1
2019-03-12T08:02:50.000Z
2019-03-12T08:02:50.000Z
atframework/service/component/etcdcli/etcd_packer.cpp
asianhawk/atsf4g-co
63ef0623669674ec4ae0583578b8d75489bf9e86
[ "MIT" ]
null
null
null
atframework/service/component/etcdcli/etcd_packer.cpp
asianhawk/atsf4g-co
63ef0623669674ec4ae0583578b8d75489bf9e86
[ "MIT" ]
null
null
null
#include <cstring> #include <algorithm/base64.h> #include <common/string_oprs.h> #include "etcd_packer.h" namespace atframe { namespace component { void etcd_packer::pack(const etcd_key_value &etcd_val, rapidjson::Value &json_val, rapidjson::Document &doc) { if (0 != etcd_val.crea...
40.413919
144
0.452733
asianhawk
d49a010b0ee543f2feb2d4d6ea14efeb79e2422a
832
cpp
C++
ch2/2.4.cpp
FWangTrading/Cpp-Primer-5th-Exercises
bce33ed38306485d503ff5117900ada9623bfbf4
[ "Apache-2.0" ]
545
2016-08-24T00:55:03.000Z
2022-03-29T22:59:24.000Z
ch2/2.4.cpp
FWangTrading/Cpp-Primer-5th-Exercises
bce33ed38306485d503ff5117900ada9623bfbf4
[ "Apache-2.0" ]
25
2017-06-05T18:45:56.000Z
2022-02-18T14:19:05.000Z
ch2/2.4.cpp
FWangTrading/Cpp-Primer-5th-Exercises
bce33ed38306485d503ff5117900ada9623bfbf4
[ "Apache-2.0" ]
260
2016-02-23T01:17:41.000Z
2022-03-26T08:35:54.000Z
#include <iostream> int main() { unsigned u = 10, u2 = 42; std::cout << u2 - u << std::endl; // 32 std::cout << u - u2 << std::endl; // 4294967264 = -32 + 4,294,967,296 int i = 10, i2 = 42; std::cout << i2 - i << std::endl; // 32 std::cout << i - i2 << std::endl; // -32 std::cout << i - u << std::en...
32
84
0.49399
FWangTrading
d49c1d3e7790f7f8ba8cc702c835cc6e791ebc52
211
cpp
C++
firmware/ClearMode.cpp
bespokegear/Power_Meter_Display_EA_LED_Matrix
61d538c21fefdf566b1cc10c8d4f824bfcbe6d80
[ "MIT" ]
null
null
null
firmware/ClearMode.cpp
bespokegear/Power_Meter_Display_EA_LED_Matrix
61d538c21fefdf566b1cc10c8d4f824bfcbe6d80
[ "MIT" ]
null
null
null
firmware/ClearMode.cpp
bespokegear/Power_Meter_Display_EA_LED_Matrix
61d538c21fefdf566b1cc10c8d4f824bfcbe6d80
[ "MIT" ]
null
null
null
#include <MutilaDebug.h> #include "ClearMode.h" #include "Matrix.h" ClearMode_ ClearMode; void ClearMode_::start(const char* data) { DBLN(F("ClearMode::start")); Matrix.clear(); Matrix.paint(); }
15.071429
40
0.672986
bespokegear
d49f9e5ce634786c05176cbaca03bfd10e6e1c38
12,427
cpp
C++
vendor/github.com/google/go-jsonnet/cpp-jsonnet/core/lexer_test.cpp
rich-jowett/kubeless
ab6f0c47e4dbcbc8226eb7e73f4897ff4e675a5f
[ "Apache-2.0" ]
68
2015-06-01T21:16:33.000Z
2022-01-18T15:19:36.000Z
vendor/github.com/google/go-jsonnet/cpp-jsonnet/core/lexer_test.cpp
rich-jowett/kubeless
ab6f0c47e4dbcbc8226eb7e73f4897ff4e675a5f
[ "Apache-2.0" ]
8
2021-03-02T01:46:37.000Z
2022-03-03T23:24:24.000Z
vendor/github.com/google/go-jsonnet/cpp-jsonnet/core/lexer_test.cpp
rich-jowett/kubeless
ab6f0c47e4dbcbc8226eb7e73f4897ff4e675a5f
[ "Apache-2.0" ]
13
2016-04-06T05:35:41.000Z
2018-11-03T15:34:55.000Z
/* Copyright 2015 Google 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 applicable law or agreed to in ...
36.125
100
0.513962
rich-jowett
d4a3acc3e92f2b454d35740b1719cb54ea2d97a7
623
cpp
C++
Cpp/abaaba.cpp
lixk28/Assignment
1128d041a111063be0dba1699ebcf4aa8a74e49c
[ "MIT" ]
null
null
null
Cpp/abaaba.cpp
lixk28/Assignment
1128d041a111063be0dba1699ebcf4aa8a74e49c
[ "MIT" ]
null
null
null
Cpp/abaaba.cpp
lixk28/Assignment
1128d041a111063be0dba1699ebcf4aa8a74e49c
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; void exchange(int *a, int *b) { int t = *a; *a = *b; *b = t; } int main() { int i, j, r, s, n, k = 0; cin >> n; int a[n]; while(k < n) cin >> a[k++]; i = n - 2; while(a[i] > a[i+1]) i = i -1; j =...
13.844444
31
0.313002
lixk28
d4a5fdfda2f318897169cb2524512941be549e45
7,161
cpp
C++
src/csv/CsvDatabase.cpp
StephanSchedler/hokee
6949c647913838f68423612a359e837858cd5c27
[ "MIT" ]
null
null
null
src/csv/CsvDatabase.cpp
StephanSchedler/hokee
6949c647913838f68423612a359e837858cd5c27
[ "MIT" ]
1
2021-11-22T19:17:44.000Z
2021-11-22T19:17:44.000Z
src/csv/CsvDatabase.cpp
StephanSchedler/hokee
6949c647913838f68423612a359e837858cd5c27
[ "MIT" ]
null
null
null
#include "csv/CsvDatabase.h" #include "InternalException.h" #include "Utils.h" #include "csv/CsvDate.h" #include "csv/CsvItem.h" #include "csv/CsvParser.h" #include "csv/CsvWriter.h" #include "html/HtmlGenerator.h" #include <fmt/format.h> #include <functional> #include <memory> #include <regex> #include <sstream> na...
26.921053
114
0.528697
StephanSchedler
d4a7d8b6bcaa912f17eab42809ec4cea2f618bf1
823
cpp
C++
simulator/src/core/Simulator.cpp
marlinprotocol/OpenWeaver
7a8c668cccc933d652fabe8a141e702b8a0fd066
[ "MIT" ]
60
2020-07-01T17:37:34.000Z
2022-02-16T03:56:55.000Z
simulator/src/core/Simulator.cpp
marlinpro/openweaver
0aca30fbda3121a8e507f48a52b718b5664a5bbc
[ "MIT" ]
5
2020-10-12T05:17:49.000Z
2021-05-25T15:47:01.000Z
simulator/src/core/Simulator.cpp
marlinpro/openweaver
0aca30fbda3121a8e507f48a52b718b5664a5bbc
[ "MIT" ]
18
2020-07-01T17:43:18.000Z
2022-01-09T14:29:08.000Z
#include "marlin/simulator/core/Simulator.hpp" namespace marlin { namespace simulator { Simulator Simulator::default_instance = Simulator(); Simulator::Simulator() {} void Simulator::add_event(Event<Simulator>* event) { if(!queue.is_empty() && event->get_tick() < queue.get_next_event()->get_tick()) { // Simulat...
19.595238
82
0.702309
marlinprotocol
d4a80ded0307aae7930bad9e4d740d7c2cfd8ecc
3,579
cpp
C++
editor/Picker.cpp
gan74/Yave
a35a68d388729d02f9793cc0fe9a530c010cf432
[ "MIT" ]
259
2016-12-02T03:06:19.000Z
2022-03-13T19:21:00.000Z
editor/Picker.cpp
gan74/Yave
a35a68d388729d02f9793cc0fe9a530c010cf432
[ "MIT" ]
3
2019-05-02T04:09:13.000Z
2021-12-27T02:27:33.000Z
editor/Picker.cpp
gan74/Yave
a35a68d388729d02f9793cc0fe9a530c010cf432
[ "MIT" ]
17
2019-01-04T10:07:23.000Z
2021-09-15T08:41:04.000Z
/******************************* Copyright (c) 2016-2021 Grégoire Angerand 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...
36.151515
132
0.718636
gan74
d4aa62dfa32e365a0afd54340772955058aeedaf
1,078
cpp
C++
timer.cpp
rshkurdalov/Shunior-Engine
86bc6651ec720a4ec69efe5fbb9174f11b14d60f
[ "BSD-3-Clause" ]
3
2021-03-25T06:32:30.000Z
2022-01-21T15:31:16.000Z
timer.cpp
rshkurdalov/Shunior-Engine
86bc6651ec720a4ec69efe5fbb9174f11b14d60f
[ "BSD-3-Clause" ]
null
null
null
timer.cpp
rshkurdalov/Shunior-Engine
86bc6651ec720a4ec69efe5fbb9174f11b14d60f
[ "BSD-3-Clause" ]
null
null
null
#include "timer.h" #include "os_api.h" set<timer *> timer_storage; timer::timer() { state = timer_state::inactive; } timer::~timer() { reset(); } void timer::run() { if(state == timer_state::active) return; else if(state == timer_state::inactive) trigger_time = now().value + period.value; ...
19.6
55
0.635436
rshkurdalov
d4ae17936fcaef477d063a99750892a202e83058
1,571
cpp
C++
tools/oni-particle-editor/src/entities/oni-particle-editor-entities-factory.cpp
sina-/granite
95b873bc545cd4925b5cea8c632a82f2d815be6e
[ "MIT" ]
2
2019-08-01T09:18:49.000Z
2020-03-26T05:59:52.000Z
tools/oni-particle-editor/src/entities/oni-particle-editor-entities-factory.cpp
sina-/granite
95b873bc545cd4925b5cea8c632a82f2d815be6e
[ "MIT" ]
null
null
null
tools/oni-particle-editor/src/entities/oni-particle-editor-entities-factory.cpp
sina-/granite
95b873bc545cd4925b5cea8c632a82f2d815be6e
[ "MIT" ]
1
2020-03-26T05:59:53.000Z
2020-03-26T05:59:53.000Z
#include <oni-particle-editor/entities/oni-particle-editor-entities-factory.h> #include <oni-core/util/oni-util-structure.h> #include <oni-core/entities/oni-entities-manager.h> #include <oni-core/math/oni-math-z-layer-manager.h> #include <oni-core/json/oni-json.h> #include <oni-core/entities/oni-entities-serialization...
52.366667
118
0.694462
sina-
d4afafbc99da6f2439082e9ef0ed62a6f4780c76
3,134
cpp
C++
tutorials/DataExchange/DataExchange.cpp
VincentPT/xscript
cea6ee9e8c5af87af75188695ffa89080dce49b8
[ "MIT" ]
null
null
null
tutorials/DataExchange/DataExchange.cpp
VincentPT/xscript
cea6ee9e8c5af87af75188695ffa89080dce49b8
[ "MIT" ]
null
null
null
tutorials/DataExchange/DataExchange.cpp
VincentPT/xscript
cea6ee9e8c5af87af75188695ffa89080dce49b8
[ "MIT" ]
null
null
null
/****************************************************************** * File: DataExchange.cpp * Description: Contains code for compiling, running C Lambda * scripting language. * See file DataExchange.c955 to understand * what the script does. * Author: Vincent Pham * *...
25.688525
101
0.64933
VincentPT
d4b2aa077fdc3c54c1af1ee61cc0bb1fe126ac0c
4,872
cpp
C++
src/SharedUtilities/RegistryUtils.cpp
ms-iot/device-management-bridge
8568b70ab8b3c4371748d5397b4d6712e2547f10
[ "MIT" ]
3
2018-08-01T23:00:04.000Z
2019-05-22T08:22:30.000Z
src/SharedUtilities/RegistryUtils.cpp
ms-iot/device-management-bridge
8568b70ab8b3c4371748d5397b4d6712e2547f10
[ "MIT" ]
null
null
null
src/SharedUtilities/RegistryUtils.cpp
ms-iot/device-management-bridge
8568b70ab8b3c4371748d5397b4d6712e2547f10
[ "MIT" ]
3
2018-08-01T22:30:58.000Z
2020-11-14T17:52:34.000Z
/* Copyright 2018 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense...
30.641509
184
0.723727
ms-iot
d4b596386b1c1ed1d1fd7173e66429e4b1c8e759
797
cpp
C++
90.子集 II/subsetsWithDup.cpp
YichengZhong/Top-Interview-Questions
124828d321f482a0eaa30012b3706267487bfd24
[ "MIT" ]
1
2019-10-21T14:40:39.000Z
2019-10-21T14:40:39.000Z
90.子集 II/subsetsWithDup.cpp
YichengZhong/Top-Interview-Questions
124828d321f482a0eaa30012b3706267487bfd24
[ "MIT" ]
null
null
null
90.子集 II/subsetsWithDup.cpp
YichengZhong/Top-Interview-Questions
124828d321f482a0eaa30012b3706267487bfd24
[ "MIT" ]
1
2020-11-04T07:33:34.000Z
2020-11-04T07:33:34.000Z
class Solution { public: vector<int> input; int SizeCount; vector<vector<int>> result; vector<int> vc; void dfs(int index) { if (vc.size() <= SizeCount) { result.push_back(vc); } for (int i = index; i < input.size(); i++) { ...
21.540541
59
0.42409
YichengZhong
d4b72b11a8a8d60c223917f5b8747ac260428251
9,449
cpp
C++
nematodeBurrowerUnit.cpp
nflorez89/MushroomGame
717293dee8a9ba5ac71f3b604f17a78d72ddce1d
[ "CC-BY-3.0" ]
null
null
null
nematodeBurrowerUnit.cpp
nflorez89/MushroomGame
717293dee8a9ba5ac71f3b604f17a78d72ddce1d
[ "CC-BY-3.0" ]
null
null
null
nematodeBurrowerUnit.cpp
nflorez89/MushroomGame
717293dee8a9ba5ac71f3b604f17a78d72ddce1d
[ "CC-BY-3.0" ]
null
null
null
#include "nematodeBurrowerUnit.h" //============================================================================= // constructor //============================================================================= NematodeBurrowerUnit::NematodeBurrowerUnit() : NematodeUnit() { //nematodeType = mushroomWarNS::BURROWER; } ...
33.154386
209
0.675839
nflorez89
d4c13d24c00755e1f63dd5c31c41a9b7aa9bb62b
175
cpp
C++
LyraEngine/src/init/single_header_init.cpp
zhuzhile08/lyra-engine
3b5de9e91a25642ce8f763c49b25dc443e0e36fd
[ "MIT" ]
null
null
null
LyraEngine/src/init/single_header_init.cpp
zhuzhile08/lyra-engine
3b5de9e91a25642ce8f763c49b25dc443e0e36fd
[ "MIT" ]
1
2022-03-13T19:48:33.000Z
2022-03-31T19:25:35.000Z
LyraEngine/src/init/single_header_init.cpp
zhuzhile08/lyra-engine
3b5de9e91a25642ce8f763c49b25dc443e0e36fd
[ "MIT" ]
null
null
null
#define VMA_IMPLEMENTATION #define TINYOBJLOADER_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #include <vk_mem_alloc.h> #include <tiny_obj_loader.h> #include <stb_image.h>
25
36
0.845714
zhuzhile08
d4c43a15d3b522468ec6e7453a1f05cad3f104ce
4,516
cpp
C++
CheckSurvey/Survey_Activity.cpp
kravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
2
2018-04-27T11:07:02.000Z
2020-04-24T06:53:21.000Z
CheckSurvey/Survey_Activity.cpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
CheckSurvey/Survey_Activity.cpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
//********************************************************* // Survey_Activity.cpp - read the survey activity //********************************************************* #include "CheckSurvey.hpp" //--------------------------------------------------------- // Survey_Activity //----------------------------------------...
25.22905
89
0.606732
kravitz
d4c5164e4ad3f349e39bcff3522bc90d29dd7d0e
402
cpp
C++
src/top.chenqwwq/leetcode/daily/_20220226/maximum-difference-between-increasing-elements.cpp
chenqwwq/_leetcode
a8055c53c9a68cedb1b57a56f98e83709448e4cb
[ "Apache-2.0" ]
null
null
null
src/top.chenqwwq/leetcode/daily/_20220226/maximum-difference-between-increasing-elements.cpp
chenqwwq/_leetcode
a8055c53c9a68cedb1b57a56f98e83709448e4cb
[ "Apache-2.0" ]
null
null
null
src/top.chenqwwq/leetcode/daily/_20220226/maximum-difference-between-increasing-elements.cpp
chenqwwq/_leetcode
a8055c53c9a68cedb1b57a56f98e83709448e4cb
[ "Apache-2.0" ]
null
null
null
// // Created by 陈炳鑫 on 2022/2/26. // #include "stdc++.h" #include "common.h" using namespace std; class Solution { public: int maximumDifference(vector<int> &nums) { int n = nums.size(); int ans = -1, p = 0; for (int i = 1; i < n; i++) { if (nums[i] > nums[p])ans = max(ans, ...
18.272727
68
0.482587
chenqwwq
d4c7894ad899bbce67da6a8be13b3094d6e8b465
2,687
cpp
C++
race_imagination/src/sim_wrapper_testclient.cpp
buzzer/tams_simulation
2fcad62a2bbf8f880a627ee546a8414374cdb9bb
[ "BSD-2-Clause" ]
null
null
null
race_imagination/src/sim_wrapper_testclient.cpp
buzzer/tams_simulation
2fcad62a2bbf8f880a627ee546a8414374cdb9bb
[ "BSD-2-Clause" ]
null
null
null
race_imagination/src/sim_wrapper_testclient.cpp
buzzer/tams_simulation
2fcad62a2bbf8f880a627ee546a8414374cdb9bb
[ "BSD-2-Clause" ]
null
null
null
#include "ros/ros.h" #include "race_imagination/Imagine.h" #include <cstdlib> int main(int argc, char **argv) { ros::init(argc, argv, "sim_wrapper_testclient"); ros::NodeHandle n; ros::ServiceClient client = n.serviceClient<race_imagination::Imagine>("imagination_srv"); race_imagination::Imagine srv_msg; s...
34.012658
92
0.756978
buzzer
d4c9384d169863addecdc7efe17e89a5c050f1ca
27,975
cpp
C++
ReferenceDesign/SampleQTHMI/HVAC/UI/HVACFrontView.cpp
zenghuan1/HMI_SDK_LIB
d0d03af04abe07f5ca087cabcbb1e4f4858f266a
[ "BSD-3-Clause" ]
8
2019-01-04T10:08:39.000Z
2021-12-13T16:34:08.000Z
ReferenceDesign/SampleQTHMI/HVAC/UI/HVACFrontView.cpp
zenghuan1/HMI_SDK_LIB
d0d03af04abe07f5ca087cabcbb1e4f4858f266a
[ "BSD-3-Clause" ]
33
2017-07-27T09:51:59.000Z
2018-07-13T09:45:52.000Z
ReferenceDesign/SampleQTHMI/HVAC/UI/HVACFrontView.cpp
JH-G/HMI_SDK_LIB
caa4eac66d1f3b76349ef5d6ca5cf7dd69fcd760
[ "BSD-3-Clause" ]
12
2017-07-28T02:54:53.000Z
2022-02-20T15:48:24.000Z
#include "HVAC/UI/HVACFrontView.h" #include "HMIFrameWork/log_interface.h" #include<unistd.h> #include <QFont> #include "HVAC/app/HVAC.h" #include "HMIFrameWork/HMIFrameWork.h" #include "HVAC/data/HVACData.h" HVACFrontView::HVACFrontView(QWidget *parent) :QWidget(parent) ,CView(HVAC::eViewId_Front_On) ,m_iH...
40.367965
165
0.678749
zenghuan1
d4c9e317deb2dde608aaf7a6150dde424e28cf77
6,582
cpp
C++
test/test_vector4.cpp
Worgaros/GPR5204_919
5e4f85d3cb57cd29cbfdc67dd70a7cb2720a91a1
[ "MIT" ]
null
null
null
test/test_vector4.cpp
Worgaros/GPR5204_919
5e4f85d3cb57cd29cbfdc67dd70a7cb2720a91a1
[ "MIT" ]
6
2021-02-15T14:37:05.000Z
2021-03-23T15:24:22.000Z
test/test_vector4.cpp
Worgaros/GPR5204_919
5e4f85d3cb57cd29cbfdc67dd70a7cb2720a91a1
[ "MIT" ]
9
2021-02-12T07:16:41.000Z
2021-04-26T14:36:44.000Z
/* MIT License Copyright (c) 2021 SAE Institute Geneva Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
28.008511
78
0.583713
Worgaros
d4cd603eb8a6424585ff974dfc27e76b3c2a4e4e
1,169
cpp
C++
examples/google-code-jam/JeffreyHui/C-small-attempt0.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/JeffreyHui/C-small-attempt0.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/JeffreyHui/C-small-attempt0.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
#include <algorithm> #include <cstdio> using namespace std; double dist[101], time[101]; int T; int N, Q; int E[101], S[101]; int D[101][101]; int U, V; int main (){ freopen ("C-small-attempt0.in", "r", stdin); freopen ("C-small-attempt0.out", "w", stdout); scanf("%d", &T); for (int i = 1; i <= T; i++)...
24.354167
77
0.403764
rbenic-fer
d4cec2aa243641b3ab92a07e28afdeca5881715f
3,591
cpp
C++
rex-utests/src/utests_math_vec4.cpp
WaleedYaser/rex
e0e1ab9b0df4da307d8bef90e5e5590a13627ad9
[ "MIT" ]
16
2021-12-12T00:17:46.000Z
2022-01-22T10:33:11.000Z
rex-utests/src/utests_math_vec4.cpp
WaleedYaser/rex
e0e1ab9b0df4da307d8bef90e5e5590a13627ad9
[ "MIT" ]
1
2021-12-15T23:25:55.000Z
2021-12-16T13:51:07.000Z
rex-utests/src/utests_math_vec4.cpp
WaleedYaser/rex
e0e1ab9b0df4da307d8bef90e5e5590a13627ad9
[ "MIT" ]
1
2021-12-12T23:08:42.000Z
2021-12-12T23:08:42.000Z
#include <rex-math/vec4.h> #include "doctest.h" TEST_CASE("[rex-math]: Vec4") { SUBCASE("init") { rex::math::V4 v = {}; CHECK(v.x == 0); CHECK(v.y == 0); CHECK(v.z == 0); CHECK(v.w == 0); v = {1.0f, 2.0f, 3.0f, 4.0f}; CHECK(v.x == 1.0f); CHECK(v.y == 2.0f); CHECK(v.z == 3.0f); CHECK(v.w == 4.0f...
21.763636
95
0.525202
WaleedYaser
d4d002d493275371ba92bf9f5284a14c02f0422c
5,128
cpp
C++
source/MaterialXTest/MaterialXGenArnold/GenArnold.cpp
muenstc/MaterialX
b8365086a738fddae683065d78f65410aacd0dc4
[ "BSD-3-Clause" ]
101
2017-08-08T12:08:01.000Z
2022-03-17T06:37:58.000Z
source/MaterialXTest/MaterialXGenArnold/GenArnold.cpp
testpassword/MaterialX
7c69782196b11fa43c67aee0707801983bb81e6c
[ "BSD-3-Clause" ]
1,002
2018-01-09T10:33:07.000Z
2022-03-31T18:35:04.000Z
source/MaterialXTest/MaterialXGenArnold/GenArnold.cpp
testpassword/MaterialX
7c69782196b11fa43c67aee0707801983bb81e6c
[ "BSD-3-Clause" ]
24
2018-01-05T20:16:36.000Z
2022-02-03T15:40:14.000Z
// // TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd. // All rights reserved. See LICENSE.txt for license. // #include <MaterialXTest/Catch/catch.hpp> #include <MaterialXTest/MaterialXGenOsl/GenOsl.h> #include <MaterialXTest/MaterialXGenShader/GenShaderUtil.h> #include <MaterialXFormat/File.h> ...
44.982456
147
0.685257
muenstc
d4db30b0758e57cc77bea4954f2a499e91ea9d65
1,170
cpp
C++
source/src/CPUutils.cpp
ninjaoflight/simulador-stack8086
7ece3095b66e7ece3bfa091c32e4eed3b82bad2c
[ "BSD-3-Clause" ]
null
null
null
source/src/CPUutils.cpp
ninjaoflight/simulador-stack8086
7ece3095b66e7ece3bfa091c32e4eed3b82bad2c
[ "BSD-3-Clause" ]
null
null
null
source/src/CPUutils.cpp
ninjaoflight/simulador-stack8086
7ece3095b66e7ece3bfa091c32e4eed3b82bad2c
[ "BSD-3-Clause" ]
null
null
null
#include "CPUutils.h" #include <sstream> #include <string> #include <iomanip> //en ambas funciones en VS se requiere un poco mas de espacio para //evitar que se detecte una corrupcion de memoria en modo depuracion //sin embargo en linux funciona perfectamente con el espacio adecuado std::string toHex(Register8 i) { ...
18.28125
69
0.664103
ninjaoflight
d4dbf1d93c3c5514cd5ca9e4922e9169e28b733c
5,468
cpp
C++
numerical_methods/brent_method_extrema.cpp
dvijaymanohar/C-Plus-Plus
c987381c25858f08d0fe9301712ab6c1a10b433f
[ "MIT" ]
null
null
null
numerical_methods/brent_method_extrema.cpp
dvijaymanohar/C-Plus-Plus
c987381c25858f08d0fe9301712ab6c1a10b433f
[ "MIT" ]
null
null
null
numerical_methods/brent_method_extrema.cpp
dvijaymanohar/C-Plus-Plus
c987381c25858f08d0fe9301712ab6c1a10b433f
[ "MIT" ]
null
null
null
/** * \file * \brief Find real extrema of a univariate real function in a given interval * using [Brent's method](https://en.wikipedia.org/wiki/Brent%27s_method). * * Refer the algorithm discoverer's publication * [online](https://maths-people.anu.edu.au/~brent/pd/rpb011i.pdf) and also * associated book: * > R....
22.318367
81
0.520117
dvijaymanohar
d4de44e3a3e7b630732852910bf2549c25099215
1,045
cpp
C++
TechnicalTest/Feature/Source/Feature/Private/GameInstance/FeatureGameInstance.cpp
TaoReiches/Tao
bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01
[ "Apache-2.0" ]
2
2020-09-30T15:17:32.000Z
2021-02-22T14:19:54.000Z
TechnicalTest/Feature/Source/Feature/Private/GameInstance/FeatureGameInstance.cpp
TaoReiches/Tao
bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01
[ "Apache-2.0" ]
null
null
null
TechnicalTest/Feature/Source/Feature/Private/GameInstance/FeatureGameInstance.cpp
TaoReiches/Tao
bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01
[ "Apache-2.0" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "GameInstance/FeatureGameInstance.h" #if PLATFORM_WINDOWS #include "Runtime/HeadMountedDisplay/Public/IHeadMountedDisplayModule.h" #include "WindowsAudioDevice/WindowsAudioDevices.h" #endif UFeatureGameInstance::UFeatureGameInst...
27.5
103
0.757895
TaoReiches
d4dfd50319510241e0a54798e77c87148f6159f6
49,360
cpp
C++
Common/arrangementviewcontroller.cpp
dcliche/studioengine
1a18d373b26575b040d014ae2650a1aaeb208a89
[ "Apache-2.0" ]
null
null
null
Common/arrangementviewcontroller.cpp
dcliche/studioengine
1a18d373b26575b040d014ae2650a1aaeb208a89
[ "Apache-2.0" ]
null
null
null
Common/arrangementviewcontroller.cpp
dcliche/studioengine
1a18d373b26575b040d014ae2650a1aaeb208a89
[ "Apache-2.0" ]
null
null
null
// // arrangementviewcontroller.cpp // MelobaseStation // // Created by Daniel Cliche on 2016-05-19. // Copyright (c) 2016-2021 Daniel Cliche. All rights reserved. // #include "arrangementviewcontroller.h" #include <math.h> #include <pasteboard.h> #include <responderchain.h> #include <algorithm> #include "helpe...
50.418795
120
0.60701
dcliche
d4dfe8949cb8e53e15ebcf64738f7cc82e43e13a
934
hpp
C++
tests/common.hpp
MarcoKoch/fpm
8ac4bd956242a831a8baaae0e7822a0a3fb01e29
[ "MIT" ]
265
2020-02-07T11:54:36.000Z
2022-03-23T15:59:13.000Z
tests/common.hpp
MarcoKoch/fpm
8ac4bd956242a831a8baaae0e7822a0a3fb01e29
[ "MIT" ]
22
2020-02-08T22:09:23.000Z
2022-03-19T15:09:56.000Z
tests/common.hpp
MarcoKoch/fpm
8ac4bd956242a831a8baaae0e7822a0a3fb01e29
[ "MIT" ]
34
2020-02-07T11:54:37.000Z
2022-03-25T20:21:19.000Z
#ifndef FPM_TESTS_COMMON_HPP #define FPM_TESTS_COMMON_HPP #include <fpm/fixed.hpp> #include <gtest/gtest.h> #include <iomanip> #include <ostream> namespace fpm { template <typename B, typename I, unsigned int F> void PrintTo(const fpm::fixed<B, I, F>& val, ::std::ostream* os) { auto f = os->flags(); *os << st...
30.129032
116
0.639186
MarcoKoch
d4e0539e5fd8149302818ed48f39347b3429d018
2,472
hpp
C++
src/terark/util/process.hpp
noobpwnftw/terark-zip
52ebf675787438d594b577c2dc04a1ab0f41f9f7
[ "BSD-3-Clause" ]
44
2020-12-21T05:14:38.000Z
2022-03-15T11:27:32.000Z
src/terark/util/process.hpp
noobpwnftw/terark-zip
52ebf675787438d594b577c2dc04a1ab0f41f9f7
[ "BSD-3-Clause" ]
2
2020-12-28T10:42:03.000Z
2021-05-21T07:22:47.000Z
src/terark/util/process.hpp
noobpwnftw/terark-zip
52ebf675787438d594b577c2dc04a1ab0f41f9f7
[ "BSD-3-Clause" ]
21
2020-12-22T09:40:16.000Z
2021-12-07T18:16:00.000Z
// // Created by leipeng on 2019-06-18. // #pragma once #include <stdio.h> #include <terark/config.hpp> #include <terark/io/FileStream.hpp> #include <terark/util/function.hpp> #include <thread> #include <memory> #include <utility> #include <future> namespace terark { TERARK_DLL_EXPORT int system_vfork(const char*);...
29.783133
93
0.695793
noobpwnftw
d4e18ddbc9ef314141da461a262fc3f711fba5c0
72
cpp
C++
cudaWrapper.cpp
eugesh/PoseEstimator2D
dae75487f8507ab9dde5c1a131e74840df6c8755
[ "MIT" ]
null
null
null
cudaWrapper.cpp
eugesh/PoseEstimator2D
dae75487f8507ab9dde5c1a131e74840df6c8755
[ "MIT" ]
null
null
null
cudaWrapper.cpp
eugesh/PoseEstimator2D
dae75487f8507ab9dde5c1a131e74840df6c8755
[ "MIT" ]
null
null
null
#include "cudaWrapper.h" cudaMatcherWrapper::cudaMatcherWrapper() { }
10.285714
40
0.763889
eugesh
d4e257990196dd7f52499de9d255beeccccea2d9
11,465
cpp
C++
src/nekrs.cpp
yslan/nekRS
eff5749af935f1d56f67c12244fa246fe696db8c
[ "BSD-3-Clause" ]
null
null
null
src/nekrs.cpp
yslan/nekRS
eff5749af935f1d56f67c12244fa246fe696db8c
[ "BSD-3-Clause" ]
null
null
null
src/nekrs.cpp
yslan/nekRS
eff5749af935f1d56f67c12244fa246fe696db8c
[ "BSD-3-Clause" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright (c) 2019, UCHICAGO ARGONNE, LLC. The UChicago Argonne, LLC as Operator of Argonne National Laboratory holds copyright in the Software. The copyright holder reserves all rights except those expressly granted to licensees, and U.S...
29.779221
94
0.640994
yslan
d4e7a32aee36c73ed5301b2004be14fd2c6e18e4
15,404
cpp
C++
src/gut_image/Image.cpp
Lehdari/GraphicsUtils
da1c02e6dc1c5541de593141003194d054f59724
[ "CC0-1.0" ]
2
2020-07-29T16:48:53.000Z
2020-08-20T10:49:03.000Z
src/gut_image/Image.cpp
Lehdari/GraphicsUtils
da1c02e6dc1c5541de593141003194d054f59724
[ "CC0-1.0" ]
null
null
null
src/gut_image/Image.cpp
Lehdari/GraphicsUtils
da1c02e6dc1c5541de593141003194d054f59724
[ "CC0-1.0" ]
null
null
null
// // Project: GraphicsUtils // File: Image.cpp // // Copyright (c) 2020 Miika 'Lehdari' Lehtimäki // You may use, distribute and modify this code under the terms // of the licence specified in file LICENSE which is distributed // with this source code package. // #include "Image.hpp" #include <stdexcept> #define STB...
29.91068
112
0.553493
Lehdari
d4ef36cefb77262eb106afc852ab286ca8424251
3,138
hpp
C++
lct/splay-base.hpp
NachiaVivias/library
73091ddbb00bc59328509c8f6e662fea2b772994
[ "CC0-1.0" ]
69
2020-11-06T05:21:42.000Z
2022-03-29T03:38:35.000Z
lct/splay-base.hpp
NachiaVivias/library
73091ddbb00bc59328509c8f6e662fea2b772994
[ "CC0-1.0" ]
21
2020-07-25T04:47:12.000Z
2022-02-01T14:39:29.000Z
lct/splay-base.hpp
NachiaVivias/library
73091ddbb00bc59328509c8f6e662fea2b772994
[ "CC0-1.0" ]
9
2020-11-06T11:55:10.000Z
2022-03-20T04:45:31.000Z
#pragma once template <typename Node> struct SplayTreeBase { using Ptr = Node *; template <typename... Args> Ptr my_new(const Args &... args) { return new Node(args...); } void my_del(Ptr p) { delete p; } bool is_root(Ptr t) { return !(t->p) || (t->p->l != t && t->p->r != t); } int size(Ptr t) cons...
22.255319
75
0.468133
NachiaVivias
d4f08acc6df5d269f33493ffc0ef4570431a63f7
2,379
cpp
C++
libnaucrates/src/operators/CDXLScalarPartListNullTest.cpp
khannaekta/gporca
94e509d0a2456851a2cabf02e933c3523946b87b
[ "ECL-2.0", "Apache-2.0" ]
1
2019-03-05T10:08:56.000Z
2019-03-05T10:08:56.000Z
libnaucrates/src/operators/CDXLScalarPartListNullTest.cpp
khannaekta/gporca
94e509d0a2456851a2cabf02e933c3523946b87b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
libnaucrates/src/operators/CDXLScalarPartListNullTest.cpp
khannaekta/gporca
94e509d0a2456851a2cabf02e933c3523946b87b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2017 Pivotal, Inc. // // Implementation of DXL Part list null test expression #include "naucrates/dxl/operators/CDXLScalarPartListNullTest.h" #include "naucrates/dxl/operators/CDXLNode.h" #include "nau...
20.508621
86
0.754519
khannaekta
d4f5d290a32bb3001e12df7829b3b9fa64d4c070
11,458
cpp
C++
src/search.cpp
Data-Structures-UFMG-2019-2/sample-web-crawler
6a09aa99bc48d76b38477d60717156aeb6e9808f
[ "MIT" ]
4
2021-02-23T12:43:52.000Z
2021-05-19T13:09:36.000Z
src/search.cpp
luizppa/web-crawler
6a09aa99bc48d76b38477d60717156aeb6e9808f
[ "MIT" ]
null
null
null
src/search.cpp
luizppa/web-crawler
6a09aa99bc48d76b38477d60717156aeb6e9808f
[ "MIT" ]
null
null
null
#include<fstream> #include<map> #include<vector> #include<set> #include<string> #include<sstream> #include<iostream> #include<algorithm> #include<chrono> #include "../include/log-utils.hpp" #include"../include/search.hpp" #include"../include/index-cell.hpp" #include"../include/term-sanitizer.hpp" #include"../include/d...
39.37457
164
0.575231
Data-Structures-UFMG-2019-2
d4f91a9b1e2f78ef9248ac979027bb38bf23b2e9
2,236
hpp
C++
competitiveProgramming/competitiveProgramming/Array/array.hpp
therahulgoel/competitiveProgramming
a09ccf6741f0e51821fad9cf038a2a9fe2122992
[ "MIT" ]
5
2017-08-16T10:14:22.000Z
2019-04-20T13:07:59.000Z
competitiveProgramming/competitiveProgramming/Array/array.hpp
therahulgoel/competitiveProgramming
a09ccf6741f0e51821fad9cf038a2a9fe2122992
[ "MIT" ]
null
null
null
competitiveProgramming/competitiveProgramming/Array/array.hpp
therahulgoel/competitiveProgramming
a09ccf6741f0e51821fad9cf038a2a9fe2122992
[ "MIT" ]
1
2019-10-12T17:04:50.000Z
2019-10-12T17:04:50.000Z
// // array.hpp // DS // // Created by Rahul Goel on 7/26/17. // Copyright © 2017 Rahul Goel. All rights reserved. // #ifndef array_hpp #define array_hpp #include <stdio.h> //1. To Left - Rotate given array of size n by d elements With Different methods - O(n) Time void array_rotateLeftBydElements(int arr[],int ...
38.551724
172
0.740161
therahulgoel
d4fa3cb8a1bd8cfa1e93bd2014734d0f4a0b66ac
549
cpp
C++
student.cpp
ve3344/StudentInfoSystem
73831735debfe1eda2a3542f3ea5ccf6210c33f7
[ "Apache-2.0" ]
null
null
null
student.cpp
ve3344/StudentInfoSystem
73831735debfe1eda2a3542f3ea5ccf6210c33f7
[ "Apache-2.0" ]
null
null
null
student.cpp
ve3344/StudentInfoSystem
73831735debfe1eda2a3542f3ea5ccf6210c33f7
[ "Apache-2.0" ]
null
null
null
#include "lesson.cpp" #include <string.h> using namespace std; class Student :public CounterClass{ public: int id; char name[24]; bool male; int age; int room; char phone[12+10]; Linklist<Lesson> lessons; public: Student() { } Student(int i,const char *nam,bool gen,int ag,...
15.685714
76
0.555556
ve3344
d4fc8427c7acee61db3db09d9cef7bfddedeb3c9
3,495
cpp
C++
lib/test/t_transformation.cpp
eidelen/linearAlgebra
a8467587f63dbe84dbff0372daa3d513405af80f
[ "MIT" ]
3
2018-10-10T00:39:54.000Z
2020-08-30T16:36:31.000Z
lib/test/t_transformation.cpp
eidelen/linearAlgebra
a8467587f63dbe84dbff0372daa3d513405af80f
[ "MIT" ]
null
null
null
lib/test/t_transformation.cpp
eidelen/linearAlgebra
a8467587f63dbe84dbff0372daa3d513405af80f
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include "matrix.hpp" TEST(Transformation, EchelonForm) { // Example matrix taken from // http://stattrek.com/matrix-algebra/echelon-transform.aspx#MatrixA double inData[9] = {0, 1, 2, 1, 2, 1, 2, 7, 8}; Matrix<double> in(3, 3, inData); double sollData[9] ...
27.093023
94
0.620887
eidelen
d4fc8eb10f4bb0a19ed5bd6fe8cf6abc2739f74f
6,219
cpp
C++
machine/nxp/imxrt1050-evkb/boot/machine.cpp
apexrtos/apex
9538ab2f5b974035ca30ca8750479bdefe153047
[ "0BSD" ]
15
2020-05-08T06:21:58.000Z
2021-12-11T18:10:43.000Z
machine/nxp/imxrt1050-evkb/boot/machine.cpp
apexrtos/apex
9538ab2f5b974035ca30ca8750479bdefe153047
[ "0BSD" ]
11
2020-05-08T06:46:37.000Z
2021-03-30T05:46:03.000Z
machine/nxp/imxrt1050-evkb/boot/machine.cpp
apexrtos/apex
9538ab2f5b974035ca30ca8750479bdefe153047
[ "0BSD" ]
5
2020-08-31T17:05:03.000Z
2021-12-08T07:09:00.000Z
#include <machine.h> #include "lpuart/early.h" #include <boot.h> #include <cpu/nxp/imxrt10xx/ccm.h> #include <cpu/nxp/imxrt10xx/dcdc.h> #include <cpu/nxp/imxrt10xx/iomuxc.h> #include <cpu/nxp/imxrt10xx/semc.h> #include <sys/include/arch/mmio.h> static const unsigned long LPUART1 = 0x40184000; /* * Setup machine sta...
26.576923
77
0.674063
apexrtos
d4fe6a21bfcefbf3f3a493d0ffaeb4c7dd9b3aae
1,989
cpp
C++
aws-cpp-sdk-storagegateway/source/model/ListAutomaticTapeCreationPoliciesResult.cpp
orinem/aws-sdk-cpp
f38413cc1f278689ef14e9ebdd74a489a48776be
[ "Apache-2.0" ]
1
2020-07-16T19:02:58.000Z
2020-07-16T19:02:58.000Z
aws-cpp-sdk-storagegateway/source/model/ListAutomaticTapeCreationPoliciesResult.cpp
novaquark/aws-sdk-cpp
a0969508545bec9ae2864c9e1e2bb9aff109f90c
[ "Apache-2.0" ]
null
null
null
aws-cpp-sdk-storagegateway/source/model/ListAutomaticTapeCreationPoliciesResult.cpp
novaquark/aws-sdk-cpp
a0969508545bec9ae2864c9e1e2bb9aff109f90c
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
36.833333
194
0.804927
orinem
be00a5c252f89040dbc3392bb5ce75b2e601ea93
559
hpp
C++
src/include/AST/while.hpp
allen880117/NCTU-compiler-f19-hw3
a8ab821ae4c2c3ba70ccff19d8aced6f8ea7c008
[ "MIT" ]
8
2020-12-04T04:47:56.000Z
2021-12-04T15:23:42.000Z
src/include/AST/while.hpp
allen880117/NCTU-compiler-f19-hw3
a8ab821ae4c2c3ba70ccff19d8aced6f8ea7c008
[ "MIT" ]
null
null
null
src/include/AST/while.hpp
allen880117/NCTU-compiler-f19-hw3
a8ab821ae4c2c3ba70ccff19d8aced6f8ea7c008
[ "MIT" ]
6
2020-12-02T07:18:13.000Z
2021-12-15T06:12:45.000Z
#pragma once #include "AST/ast.hpp" #include "visitor/visitor.hpp" class WhileNode : public ASTNodeBase { public: int line_number; // while int col_number; // while Node condition; // an expression node NodeList* body; // a list of statement nodes (zero or more) public: ...
25.409091
67
0.572451
allen880117
be0765b6ebbabb329b0c0cba5ef9a727de809878
5,328
cpp
C++
src/drivers/keyboard.cpp
Azer0s/fluxOS
06ab59e896e0aeb010cddef8182136730c7afc9d
[ "MIT" ]
3
2018-11-13T14:46:18.000Z
2019-05-22T11:04:02.000Z
src/drivers/keyboard.cpp
Azer0s/fluxOS
06ab59e896e0aeb010cddef8182136730c7afc9d
[ "MIT" ]
null
null
null
src/drivers/keyboard.cpp
Azer0s/fluxOS
06ab59e896e0aeb010cddef8182136730c7afc9d
[ "MIT" ]
null
null
null
#include <drivers/keyboard.h> extern "C"{ #include <stdio.h> #include <string.h> #include <stdlib.h> } #pragma region KeyboardLayout KeyboardLayout::KeyboardLayout(char* countrycode){ loadLayout(countrycode); } KeyboardLayout::~KeyboardLayout(){} void KeyboardLayout::loadLayout(char* countrycode){ ...
28.8
169
0.512575
Azer0s
be08742972d2567c16a837331ec27d0833a35d59
1,643
cpp
C++
contests/uva/uva-11827.cpp
leomaurodesenv/contest-codes
f7ae7e9d8c67e43dea7ac7dd71afce20d804f518
[ "MIT" ]
null
null
null
contests/uva/uva-11827.cpp
leomaurodesenv/contest-codes
f7ae7e9d8c67e43dea7ac7dd71afce20d804f518
[ "MIT" ]
null
null
null
contests/uva/uva-11827.cpp
leomaurodesenv/contest-codes
f7ae7e9d8c67e43dea7ac7dd71afce20d804f518
[ "MIT" ]
null
null
null
/* * Problema: 11827 - Maximum GCD * https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2927 */ #include <iostream> #include <iomanip> #include <cstdio> #include <cstdlib> #include <numeric> #include <string> #include <sstream> #include <iomanip> #include <locale> #include <...
22.506849
103
0.607425
leomaurodesenv
be0da6c9052e0d9dc6bd6a440f406df6b9586f54
2,009
inl
C++
build/fixmath/bounce/include/bounce/quickhull/qh_hull.inl
ChestnutGames/xLua
7bd9c66f0000b673b07ac9bfc9178c26acc9e284
[ "BSD-3-Clause" ]
26
2020-02-10T19:28:00.000Z
2021-09-23T22:36:37.000Z
include/bounce/quickhull/qh_hull.inl
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
null
null
null
include/bounce/quickhull/qh_hull.inl
demiurgestudios/bounce
9f8dcae52a074ba76088da9c94471366f6e4ca8f
[ "Zlib" ]
7
2020-01-22T20:42:33.000Z
2021-02-25T02:34:54.000Z
// qhHull.h // qhList template<class T> inline void qhList<T>::PushFront(T* link) { link->prev = NULL; link->next = head; if (head) { head->prev = link; } head = link; ++count; } template<class T> inline T* qhList<T>::Remove(T* link) { T* next = link->next; if (link->prev) { link->prev->next = link->n...
15.818898
60
0.672972
ChestnutGames
be0de337a6f8727a38ff98540ca8dab1f9274d67
3,257
cpp
C++
test/hand_test.cpp
northkill/sparrow
b8ea826087ab7d9998b2da407cebcd584ceca148
[ "MIT" ]
null
null
null
test/hand_test.cpp
northkill/sparrow
b8ea826087ab7d9998b2da407cebcd584ceca148
[ "MIT" ]
7
2020-04-24T02:05:02.000Z
2020-04-27T03:57:09.000Z
test/hand_test.cpp
northkill/sparrow
b8ea826087ab7d9998b2da407cebcd584ceca148
[ "MIT" ]
null
null
null
#include <algorithm> #include <vector> #include <boost/test/unit_test.hpp> #include <sparrow/hand.hpp> #include "./test_tileset.hpp" namespace spr = nk::sparrow; using tileset = spr::test::tileset; using tile = spr::tile< tileset >; using hand = spr::hand< tileset, std::vector >; BOOST_AUTO_TEST_SUITE (sparrow_hand...
25.445313
78
0.614062
northkill
be0e0d7537b1c4c22471f96ad8672389a5f781f1
2,510
hpp
C++
Unity/API/GameObject.hpp
YMY1666527646/IL2CPP_Resolver
6408513bb0b519ecca70bb510cac770963aca768
[ "Unlicense" ]
null
null
null
Unity/API/GameObject.hpp
YMY1666527646/IL2CPP_Resolver
6408513bb0b519ecca70bb510cac770963aca768
[ "Unlicense" ]
null
null
null
Unity/API/GameObject.hpp
YMY1666527646/IL2CPP_Resolver
6408513bb0b519ecca70bb510cac770963aca768
[ "Unlicense" ]
1
2021-12-16T03:53:31.000Z
2021-12-16T03:53:31.000Z
#pragma once namespace Unity { struct SGameObjectFunctions { void* m_pAddComponent = nullptr; void* m_pCreatePrimitive = nullptr; void* m_pFind = nullptr; void* m_pGetComponent = nullptr; void* m_pGetComponents = nullptr; void* m_pGetLayer = nullptr; void* m_pGetTransform = nullptr; void* m_pSetLayer...
26.421053
227
0.735458
YMY1666527646
be0e181a84a053c66e5a71b7e26be2a7e1c45d0d
2,938
hpp
C++
src/vector.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
3
2019-04-25T11:39:13.000Z
2022-01-30T22:24:08.000Z
src/vector.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
null
null
null
src/vector.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
1
2019-11-20T07:58:38.000Z
2019-11-20T07:58:38.000Z
#pragma once #include <ostream> #include <cmath> #include "types.hpp" #include "buffer.hpp" #include "opengl.hpp" namespace engine { class vector { public: vector(real x = 0.0f, real y = 0.0f, real z = 0.0f) : m_data{ x, y, z } {} real length() const { return std::sqrt(lengthSq()); } real lengthSq() const...
22.6
107
0.597686
mvorbrodt
be0fda6e6bce0f6ea5eee04d479986a30cda49ec
2,359
cpp
C++
src/NormalInvaderLaser.cpp
kurtjd/galaxy-raiders
1af6e41a81a4258f8d639f1b808e964094b1a09f
[ "MIT" ]
26
2015-12-19T18:51:39.000Z
2020-10-17T10:11:01.000Z
src/NormalInvaderLaser.cpp
kurtjd/galaxy-raiders
1af6e41a81a4258f8d639f1b808e964094b1a09f
[ "MIT" ]
1
2016-01-03T00:50:47.000Z
2016-01-03T00:50:47.000Z
src/NormalInvaderLaser.cpp
kurtjd/galaxy-raiders
1af6e41a81a4258f8d639f1b808e964094b1a09f
[ "MIT" ]
5
2016-01-02T15:50:54.000Z
2021-01-08T19:02:57.000Z
#include "NormalInvaderLaser.hpp" void NormalInvaderLaser::moveHPart() { unsigned h_part_y = this->h_part.getPosition().y; unsigned v_part_y = this->v_part.getPosition().y; if ((h_part_y >= (v_part_y + this->HEIGHT - this->THICKNESS)) && this->h_part_movedir == 1) this->h_part_movedir = -1; el...
31.453333
230
0.68546
kurtjd
be10d9c1526363f5140d4fddf37fbe1106cd8bef
7,821
cpp
C++
rev/core/window.cpp
Roman-Skabin/REV
adfa0a742525784d66f98ff5b0d157343e5f1cf4
[ "BSD-4-Clause" ]
2
2020-12-12T20:37:32.000Z
2022-01-06T22:20:30.000Z
rev/core/window.cpp
Roman-Skabin/REV
adfa0a742525784d66f98ff5b0d157343e5f1cf4
[ "BSD-4-Clause" ]
2
2020-02-22T21:27:59.000Z
2020-11-27T23:43:01.000Z
engine/core/window.cpp
Roman-Skabin/cengine
12c99a571246d3a7325d1d6a97e98d3c2c912bcb
[ "BSD-4-Clause" ]
null
null
null
// Copyright (c) 2020-2021, Roman-Skabin // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE.md file in the root directory of this source tree. #include "core/pch.h" #include "core/window.h" #include "core/input.h" #include "core/settings.h" #include "memory...
31.409639
177
0.605549
Roman-Skabin
be11909ad37b1fd579ec2527908676a8db2d9139
6,838
cpp
C++
src/engine/cpp/loaders/vox.cpp
jjbandit/bonsai
f6073484c14178aff6925eaf8caddf349174b27d
[ "WTFPL" ]
13
2017-04-12T16:26:46.000Z
2022-03-01T22:04:34.000Z
src/engine/cpp/loaders/vox.cpp
jjbandit/bonsai
f6073484c14178aff6925eaf8caddf349174b27d
[ "WTFPL" ]
null
null
null
src/engine/cpp/loaders/vox.cpp
jjbandit/bonsai
f6073484c14178aff6925eaf8caddf349174b27d
[ "WTFPL" ]
null
null
null
// NOTE(Jesse): These chunk identifiers are actually present in the file in the // reverse byte order.. ie. ID_VOX == "VOX " in the file. enum Chunk_ID { ID_NONE = 0, ID_VOX = ' XOV', ID_MAIN = 'NIAM', ID_PACK = 'KCAP', ID_SIZE = 'EZIS', ID_XYZI = 'IZYX', ID_RGBA = 'ABGR' }; inline u8 ReadChar(FILE* Fi...
25.420074
119
0.612314
jjbandit
be145ebc7e7cd7474f762a89ca216a2f9912a49a
1,671
cpp
C++
codeforces/codes/CF86D.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
1
2018-12-22T06:43:59.000Z
2018-12-22T06:43:59.000Z
codeforces/codes/CF86D.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
codeforces/codes/CF86D.cpp
Tony031218/OI
562f5f45d0448f4eab77643b99b825405a123d92
[ "MIT" ]
null
null
null
/************************************************************* * > File Name : CF86D.cpp * > Author : Tony * > Created Time : 2019/10/27 11:49:13 * > Algorithm : Mo's Algorithm **************************************************************/ #include <bits/stdc++.h> using namespace s...
25.318182
65
0.395572
Tony031218
be1582ede8dfa4556df22e67c1cd693f7928a0cc
1,944
hpp
C++
src/types.hpp
Immortale-dev/TreeQuo
f50e1a71c762ad5b9dea04076ae2bb46f51d54e0
[ "Intel" ]
11
2021-01-19T11:51:30.000Z
2021-01-30T12:53:09.000Z
src/types.hpp
Immortale-dev/TreeQuo
f50e1a71c762ad5b9dea04076ae2bb46f51d54e0
[ "Intel" ]
null
null
null
src/types.hpp
Immortale-dev/TreeQuo
f50e1a71c762ad5b9dea04076ae2bb46f51d54e0
[ "Intel" ]
2
2021-01-20T23:20:15.000Z
2021-01-21T14:03:16.000Z
#ifndef FOREST_TYPES_H #define FOREST_TYPES_H namespace forest{ enum class TREE_TYPES { KEY_STRING }; enum class LEAF_POSITION{ BEGIN, END, LOWER, UPPER }; namespace details{ namespace cache { struct tree_cache_ref_t; } enum class KEY_TYPES { STRING }; enum class NODE_TYPES { INTR, LEAF }; enum class ...
25.246753
70
0.752572
Immortale-dev
be191ccb90ed155af85226bdf232352a01d32f7b
17,472
cpp
C++
src/jitcat/CatClassDefinition.cpp
mvhooren/JitCat
8e05b51c5feda8fa9258ba443854b23c4ad8bf7c
[ "MIT" ]
14
2019-03-16T07:00:44.000Z
2021-10-20T23:36:51.000Z
src/jitcat/CatClassDefinition.cpp
mvhooren/JitCat
8e05b51c5feda8fa9258ba443854b23c4ad8bf7c
[ "MIT" ]
13
2019-11-22T12:43:55.000Z
2020-05-25T13:09:08.000Z
src/jitcat/CatClassDefinition.cpp
mvhooren/JitCat
8e05b51c5feda8fa9258ba443854b23c4ad8bf7c
[ "MIT" ]
1
2019-11-23T17:59:58.000Z
2019-11-23T17:59:58.000Z
/* This file is part of the JitCat library. Copyright (C) Machiel van Hooren 2019 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ #include "jitcat/CatClassDefinition.h" #include "jitcat/CatArgumentList.h" #include "jitcat/CatAssignmentOperator.h" #include "jitcat...
29.315436
195
0.771291
mvhooren
be1d826aafab1885bebf0ff39bc223d5742a2cfa
2,829
cpp
C++
src/Window.cpp
Thomas-Zorroche/Oryon
54237355055b262110346b33023d3cab63124fc0
[ "MIT" ]
null
null
null
src/Window.cpp
Thomas-Zorroche/Oryon
54237355055b262110346b33023d3cab63124fc0
[ "MIT" ]
null
null
null
src/Window.cpp
Thomas-Zorroche/Oryon
54237355055b262110346b33023d3cab63124fc0
[ "MIT" ]
null
null
null
#include "Window.hpp" #include <string.h> #include <iostream> namespace oryon { Window::Window(int argc, char** argv, const EventCallback& callback) { HandleArgs(argc, argv); _windowData.eventCallback = callback; } int Window::Init() { /* Initialize the library */ ...
26.194444
108
0.488865
Thomas-Zorroche
be21b220fbf4901658393055faa1561139e3c775
1,729
cpp
C++
test/integration-tests/journal/fake/mapper_mock.cpp
hsungyang/poseidonos
0f523b36ccf0d70726364395ea96ac6ae3b845c3
[ "BSD-3-Clause" ]
38
2021-04-06T03:20:55.000Z
2022-03-02T09:33:28.000Z
test/integration-tests/journal/fake/mapper_mock.cpp
hsungyang/poseidonos
0f523b36ccf0d70726364395ea96ac6ae3b845c3
[ "BSD-3-Clause" ]
19
2021-04-08T02:27:44.000Z
2022-03-23T00:59:04.000Z
test/integration-tests/journal/fake/mapper_mock.cpp
hsungyang/poseidonos
0f523b36ccf0d70726364395ea96ac6ae3b845c3
[ "BSD-3-Clause" ]
28
2021-04-08T04:39:18.000Z
2022-03-24T05:56:00.000Z
#include "test/integration-tests/journal/fake/mapper_mock.h" #include <thread> #include "src/event_scheduler/event.h" using ::testing::StrictMock; namespace pos { MockMapper::MockMapper(TestInfo* testInfo, IArrayInfo* info, IStateControl* iState) : Mapper(info, nullptr), testInfo(testInfo) { flushHandler.resi...
19
91
0.706189
hsungyang
be23d44d1bc7ce9a33157066c813bd2bee60cce3
14,176
cpp
C++
src/models/model_wpam_gpu/model_wpam_gpu.cpp
chingoduc/parallel-bayesian-toolbox
20c06a823c714a51a51e5b59c3232cd1260b0fa4
[ "BSD-4-Clause-UC" ]
1
2015-12-01T13:15:14.000Z
2015-12-01T13:15:14.000Z
src/models/model_wpam_gpu/model_wpam_gpu.cpp
chingoduc/parallel-bayesian-toolbox
20c06a823c714a51a51e5b59c3232cd1260b0fa4
[ "BSD-4-Clause-UC" ]
null
null
null
src/models/model_wpam_gpu/model_wpam_gpu.cpp
chingoduc/parallel-bayesian-toolbox
20c06a823c714a51a51e5b59c3232cd1260b0fa4
[ "BSD-4-Clause-UC" ]
null
null
null
#include "model_wpam_gpu.h" #include "noise_gauss_gpu.h" #include <math.h> #include <cuda.h> #include <cuda_runtime.h> void ModelWPAMGPU::setDescriptionTag(){ descriptionTag = "WPAM on GPU"; } frowvec ModelWPAMGPU::eval_gpu(float* values, int numberOfParticles) { frowvec evaluation; //printf("start evaluation ...
38.945055
120
0.722065
chingoduc
be2b4f6a846f39f811d2ec96958f96338ba6d25b
43,064
hpp
C++
Engine/Code/Engine/Renderer/Renderer.hpp
cugone/Abrams2022
54efe5fdd7d2d9697f005ee45a171ecea68d0df8
[ "MIT" ]
null
null
null
Engine/Code/Engine/Renderer/Renderer.hpp
cugone/Abrams2022
54efe5fdd7d2d9697f005ee45a171ecea68d0df8
[ "MIT" ]
20
2021-11-29T14:09:33.000Z
2022-03-26T20:12:44.000Z
Engine/Code/Engine/Renderer/Renderer.hpp
cugone/Abrams2022
54efe5fdd7d2d9697f005ee45a171ecea68d0df8
[ "MIT" ]
null
null
null
#pragma once #include "Engine/Core/Config.hpp" #include "Engine/Core/DataUtils.hpp" #include "Engine/Core/EngineSubsystem.hpp" #include "Engine/Core/ErrorWarningAssert.hpp" #include "Engine/Core/FileLogger.hpp" #include "Engine/Core/FileUtils.hpp" #include "Engine/Core/Image.hpp" #include "Engine/Core/JobSystem.hpp" #...
72.620573
377
0.771944
cugone
be2f97df9bfbd987d3ca2132f91567667611da97
4,341
cpp
C++
ftwrap.cpp
degarashi/resonant
f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a
[ "MIT" ]
null
null
null
ftwrap.cpp
degarashi/resonant
f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a
[ "MIT" ]
null
null
null
ftwrap.cpp
degarashi/resonant
f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a
[ "MIT" ]
null
null
null
#include "ftwrap.hpp" namespace rs { namespace { #undef __FTERRORS_H__ #define FT_ERRORDEF(e, v, s) {e, s}, #define FT_ERROR_START_LIST { #define FT_ERROR_END_LIST {0,0} }; const std::pair<int, const char*> c_ftErrors[] = #include FT_ERRORS_H } // ---------------------- FTError ---------------------- c...
31.007143
106
0.650081
degarashi
be314af3a6d12719203e843aa3951ef066c99a76
9,852
hh
C++
api/Stream.hh
quanghgx/avro-cpp
4c0044dcf16e1dc6ee06db8d0fea142330d67c97
[ "Apache-2.0" ]
null
null
null
api/Stream.hh
quanghgx/avro-cpp
4c0044dcf16e1dc6ee06db8d0fea142330d67c97
[ "Apache-2.0" ]
null
null
null
api/Stream.hh
quanghgx/avro-cpp
4c0044dcf16e1dc6ee06db8d0fea142330d67c97
[ "Apache-2.0" ]
null
null
null
/* * 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 ...
32.949833
141
0.636927
quanghgx
be39a3d47790950c43f02c1387f423e1988cf0c4
335
cpp
C++
lib/libc/tests/string/strxfrm.cpp
otaviopace/ananas
849925915b0888543712a8ca625318cd7bca8dd9
[ "Zlib" ]
52
2015-11-27T13:56:00.000Z
2021-12-01T16:33:58.000Z
lib/libc/tests/string/strxfrm.cpp
otaviopace/ananas
849925915b0888543712a8ca625318cd7bca8dd9
[ "Zlib" ]
4
2017-06-26T17:59:51.000Z
2021-09-26T17:30:32.000Z
lib/libc/tests/string/strxfrm.cpp
otaviopace/ananas
849925915b0888543712a8ca625318cd7bca8dd9
[ "Zlib" ]
8
2016-08-26T09:42:27.000Z
2021-12-04T00:21:05.000Z
#include <gtest/gtest.h> #include <string.h> TEST(string, strxfrm) { char s[] = "xxxxxxxxxxx"; EXPECT_EQ(12, strxfrm(NULL, "123456789012", 0)); EXPECT_EQ(12, strxfrm(s, "123456789012", 12)); EXPECT_EQ(10, strxfrm(s, "1234567890", 11)); EXPECT_EQ('1', s[0]); EXPECT_EQ('0', s[9]); EXPECT_EQ('...
23.928571
52
0.6
otaviopace
be3a99fcb9a6bacab969ae10bb5cf94187699d9a
2,705
cpp
C++
ThrowThingsTemplate/Vixen/source/vcore/vix_osutil.cpp
eric-fonseca/Throw-Things-at-Monsters
c92d9cd4e244d4ddb54b74e8508cba2b6408abb7
[ "MIT" ]
null
null
null
ThrowThingsTemplate/Vixen/source/vcore/vix_osutil.cpp
eric-fonseca/Throw-Things-at-Monsters
c92d9cd4e244d4ddb54b74e8508cba2b6408abb7
[ "MIT" ]
null
null
null
ThrowThingsTemplate/Vixen/source/vcore/vix_osutil.cpp
eric-fonseca/Throw-Things-at-Monsters
c92d9cd4e244d4ddb54b74e8508cba2b6408abb7
[ "MIT" ]
null
null
null
/* The MIT License(MIT) Copyright(c) 2014 Matt Guerrette 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, me...
26.009615
79
0.72939
eric-fonseca
be40ed9f97643d9ad8f4560bfc54aa27a6399c16
7,207
cpp
C++
DreamDaq/FIFOlib/myFIFOWriter.cpp
ivivarel/DREMTubes
ac768990b4c5e2c23d986284ed10189f31796b38
[ "MIT" ]
3
2021-07-22T12:17:48.000Z
2021-07-27T07:22:54.000Z
DreamDaq/FIFOlib/myFIFOWriter.cpp
ivivarel/DREMTubes
ac768990b4c5e2c23d986284ed10189f31796b38
[ "MIT" ]
38
2021-07-14T15:41:04.000Z
2022-03-29T14:18:20.000Z
DreamDaq/FIFOlib/myFIFOWriter.cpp
ivivarel/DREMTubes
ac768990b4c5e2c23d986284ed10189f31796b38
[ "MIT" ]
7
2021-07-21T12:00:33.000Z
2021-11-13T10:45:30.000Z
#include <cmath> #include <cstring> #include <iostream> #include "myFIFOWriter.h" #include "myFIFO-IOp.h" using namespace std; myFIFO::result myFIFOWriter::write(uint32_t* buf, updatable* updateinfo){ if(internalData->status!=myFIFO::LOCKEDFORWR && internalData->status!=myFIFO::UNLOCKED) return myFIFO::R...
26.30292
89
0.700569
ivivarel
be416eb534a7835eae06f6ba9578b623f542bf14
3,880
cpp
C++
SpatialGDK/Source/SpatialGDK/Private/SpatialView/EntityQuery.cpp
Bowbee/GDKPrebuilt
420b3fa19fdc36755a43e655c057b5624264407a
[ "MIT" ]
363
2018-07-30T12:57:42.000Z
2022-03-25T14:30:28.000Z
SpatialGDK/Source/SpatialGDK/Private/SpatialView/EntityQuery.cpp
Bowbee/GDKPrebuilt
420b3fa19fdc36755a43e655c057b5624264407a
[ "MIT" ]
1,634
2018-07-30T14:30:25.000Z
2022-03-03T01:55:15.000Z
SpatialGDK/Source/SpatialGDK/Private/SpatialView/EntityQuery.cpp
Bowbee/GDKPrebuilt
420b3fa19fdc36755a43e655c057b5624264407a
[ "MIT" ]
153
2018-07-31T13:45:02.000Z
2022-03-03T05:20:24.000Z
#include "SpatialView/EntityQuery.h" namespace SpatialGDK { EntityQuery::EntityQuery(const Worker_EntityQuery& Query) : ResultType(static_cast<Worker_ResultType>(Query.result_type)) { Constraints.Reserve(GetNestedConstraintCount(Query.constraint)); Constraints.Add(Query.constraint); StoreChildConstraints(Query.c...
32.605042
121
0.789433
Bowbee
be4185f679f72991c8a77b7a54ae3dfcadf5bbc1
2,405
cc
C++
tests/greaseweazle.cc
hpingel/fluxengine
d4db131d3c8541fa0d35bac8591e6dea192e8fd6
[ "MIT" ]
1
2021-04-05T17:40:50.000Z
2021-04-05T17:40:50.000Z
tests/greaseweazle.cc
hpingel/fluxengine
d4db131d3c8541fa0d35bac8591e6dea192e8fd6
[ "MIT" ]
null
null
null
tests/greaseweazle.cc
hpingel/fluxengine
d4db131d3c8541fa0d35bac8591e6dea192e8fd6
[ "MIT" ]
1
2021-04-06T17:04:28.000Z
2021-04-06T17:04:28.000Z
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include "globals.h" #include "fluxmap.h" #include "lib/usb/greaseweazle.h" static Bytes operator + (const Bytes& left, const Bytes& right) { Bytes output; ByteWriter bw(output); bw += left; bw += right; return output; } static Bytes opera...
21.863636
70
0.596674
hpingel
be425c0041b4d95ee6c2e267cd6772a4f34ba25a
2,836
cpp
C++
windows/checkbox.cpp
LeeDark/libui
244c837fc510fdbaa4427be6d6a4b48e58aa000f
[ "MIT" ]
9
2016-06-15T17:40:01.000Z
2021-05-24T08:28:40.000Z
windows/checkbox.cpp
LeeDark/libui
244c837fc510fdbaa4427be6d6a4b48e58aa000f
[ "MIT" ]
1
2018-07-17T07:09:17.000Z
2018-07-17T07:09:17.000Z
windows/checkbox.cpp
LeeDark/libui
244c837fc510fdbaa4427be6d6a4b48e58aa000f
[ "MIT" ]
2
2017-03-25T20:44:40.000Z
2018-02-05T22:37:20.000Z
// 7 april 2015 #include "uipriv_windows.hpp" struct uiCheckbox { uiWindowsControl c; HWND hwnd; void (*onToggled)(uiCheckbox *, void *); void *onToggledData; }; static BOOL onWM_COMMAND(uiControl *cc, HWND hwnd, WORD code, LRESULT *lResult) { uiCheckbox *c = uiCheckbox(cc); WPARAM check; if (code != BN_CLICK...
24.033898
151
0.745416
LeeDark
be44828226a660619c6cc488f5e7cc761f4cb609
9,942
cpp
C++
dnspod/src/v20210323/model/CreateDomainBatchRecord.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
dnspod/src/v20210323/model/CreateDomainBatchRecord.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
dnspod/src/v20210323/model/CreateDomainBatchRecord.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
28
2019-07-12T09:06:22.000Z
2022-03-30T08:04:18.000Z
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
27.848739
152
0.680648
suluner
be470339f135b6c6d7114957235c3a085a0b813f
724
hpp
C++
src/settings.hpp
Cuber01/sand-game
a6d46910b3a14041c02d80fc6ab154705de1b1f1
[ "MIT" ]
1
2021-10-31T20:09:20.000Z
2021-10-31T20:09:20.000Z
src/settings.hpp
Cuber01/sand-game
a6d46910b3a14041c02d80fc6ab154705de1b1f1
[ "MIT" ]
3
2021-10-17T16:13:19.000Z
2021-10-17T16:26:11.000Z
src/settings.hpp
Cuber01/sand-game
a6d46910b3a14041c02d80fc6ab154705de1b1f1
[ "MIT" ]
null
null
null
// slow mode //#define SLOW // counts and prints the amount of all currently running elements // #define DEBUG_STACK // use software rendering // #define SOFTWARE_RENDERING // size of the square drawn per cell (SCALE 4 = each cell is a 4x4 square) #define SCALE 2 // gravity factor #define GRAVITY 0.2 // max numbe...
22.625
79
0.748619
Cuber01
be474c38e01da02952e7a839404d2d855011f89a
8,673
cpp
C++
src/jrd/recsrc/ProcedureScan.cpp
aafemt/firebird
6f5617524996a8ef6eb721cc782d7fa3513b7d3b
[ "Condor-1.1" ]
null
null
null
src/jrd/recsrc/ProcedureScan.cpp
aafemt/firebird
6f5617524996a8ef6eb721cc782d7fa3513b7d3b
[ "Condor-1.1" ]
null
null
null
src/jrd/recsrc/ProcedureScan.cpp
aafemt/firebird
6f5617524996a8ef6eb721cc782d7fa3513b7d3b
[ "Condor-1.1" ]
null
null
null
/* * The contents of this file are subject to the Interbase Public * License Version 1.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.Inprise.com/IPL.html * * Software distributed under the License is distributed on an * ...
25.584071
97
0.69307
aafemt
be54856fdd1359d9dedb641608961957e9a3b947
2,570
hpp
C++
include/CellMap.hpp
byronmurg/pointless-freecell
b4d7cc9cc88fc28e0e920eeaa595ac78284a8f17
[ "MIT" ]
null
null
null
include/CellMap.hpp
byronmurg/pointless-freecell
b4d7cc9cc88fc28e0e920eeaa595ac78284a8f17
[ "MIT" ]
null
null
null
include/CellMap.hpp
byronmurg/pointless-freecell
b4d7cc9cc88fc28e0e920eeaa595ac78284a8f17
[ "MIT" ]
null
null
null
#ifndef _BOARD_POSITION_MAP_ #define _BOARD_POSITION_MAP_ #include <map> #include <functional> #include <Point.hpp> #include <Cell.hpp> template <class T> class _base_CellMap { public: _base_CellMap() : _map() {} typedef std::function<void(const Cell&,const T&)> CallbackType ; typedef Cell::Area BoardArea ; typ...
22.347826
78
0.69572
byronmurg
be5fba77cff904dffb9fb06a3b0734fd1be7d193
2,765
cpp
C++
setMatrixZeroes/matrix_zeroes.cpp
pitanyc/toy-problems
502ef2d2774373349aae7cffdaf287e5ca8613f9
[ "MIT" ]
null
null
null
setMatrixZeroes/matrix_zeroes.cpp
pitanyc/toy-problems
502ef2d2774373349aae7cffdaf287e5ca8613f9
[ "MIT" ]
null
null
null
setMatrixZeroes/matrix_zeroes.cpp
pitanyc/toy-problems
502ef2d2774373349aae7cffdaf287e5ca8613f9
[ "MIT" ]
null
null
null
/** * LEETCODE 73. Set Matrix Zeroes * * https://leetcode.com/problems/set-matrix-zeroes/ * * Given an m x n integer matrix matrix, if an element is 0, set its entire row * and column to 0's, and return the matrix. * * You must do it in place. */ #include <algorithm> #include <iostream> #include <set> #inclu...
23.235294
80
0.496203
pitanyc
be61482c66f304ead030ccccbd4a152f4b8d9d49
2,867
cpp
C++
src/sycl_lsh/mpi/timer.cpp
SC-SGS/Distributed_GPU_LSH_using_SYCL
a1763670fa4e9df8ac1df4ffcc89b0c5ceed36cb
[ "MIT" ]
4
2021-05-07T06:12:34.000Z
2021-12-28T14:23:00.000Z
src/sycl_lsh/mpi/timer.cpp
SC-SGS/Distributed_GPU_LSH_using_SYCL
a1763670fa4e9df8ac1df4ffcc89b0c5ceed36cb
[ "MIT" ]
null
null
null
src/sycl_lsh/mpi/timer.cpp
SC-SGS/Distributed_GPU_LSH_using_SYCL
a1763670fa4e9df8ac1df4ffcc89b0c5ceed36cb
[ "MIT" ]
1
2021-12-16T00:46:05.000Z
2021-12-16T00:46:05.000Z
/** * @file * @author Marcel Breyer * @date 2020-10-12 */ #include <sycl_lsh/detail/defines.hpp> #include <sycl_lsh/mpi/communicator.hpp> #include <sycl_lsh/mpi/timer.hpp> #include <sycl_lsh/mpi/type_cast.hpp> #include <mpi.h> #include <chrono> #include <fstream> #if defined(SYCL_LSH_BENCHMARK) std::ofstre...
34.963415
112
0.508546
SC-SGS
41580abad45f82837c2269ca3b41a7bac8a236f9
2,629
hpp
C++
src/xalanc/XalanTransformer/XalanDefaultDocumentBuilder.hpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
src/xalanc/XalanTransformer/XalanDefaultDocumentBuilder.hpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
src/xalanc/XalanTransformer/XalanDefaultDocumentBuilder.hpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
/* * Copyright 1999-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
25.038095
91
0.763028
rherardi
415d8dc15aec3630592faa6f6d3ffe46198182bb
4,232
cpp
C++
lecture8/Circular_RMQ.cpp
flavio-a/CPExercises
cfa8753f8c50be70a0e4e28ba14682e2472b6db3
[ "MIT" ]
null
null
null
lecture8/Circular_RMQ.cpp
flavio-a/CPExercises
cfa8753f8c50be70a0e4e28ba14682e2472b6db3
[ "MIT" ]
null
null
null
lecture8/Circular_RMQ.cpp
flavio-a/CPExercises
cfa8753f8c50be70a0e4e28ba14682e2472b6db3
[ "MIT" ]
null
null
null
// http://codeforces.com/problemset/problem/52/C /* Plain implementation of segment tree with lazy updates. Queries that wrap are handled as two different queries. */ #include <bits/stdc++.h> using namespace std; typedef struct { int min; int update; } minupdate; int updateSgtree(vector<minupdate> &sgtree, int ...
26.955414
124
0.525284
flavio-a
4165dbc6049c987f47c8c21fa0fbdd4e329cc9d3
2,895
cpp
C++
XOffice/src/XCell/src/XCellSheet.cpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
XOffice/src/XCell/src/XCellSheet.cpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
XOffice/src/XCell/src/XCellSheet.cpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
#include "StdAfx.h" #include "..\include\XCellSheet.hpp" #include "XCellSheetSvr.hpp" #include "GridDataSvr.hpp" #include "dwtable.hpp" #include "idwtable.hpp" namespace Hxsoft{ namespace XFrame{ namespace XOffice {namespace XCell { XCellSheet::XCellSheet(void) { m_Standalone = true; m_pSheetSvr = new XCellSheet...
24.327731
97
0.7019
qianxj
4173609fe629cd0ced120306b972d132cdf651dd
58,183
cpp
C++
src/seed_clusterer.cpp
code-s-witch/vg
aa0b37860b0ed64f582316dd9c277caba02ca052
[ "MIT" ]
2
2015-07-07T13:32:55.000Z
2016-05-03T00:09:20.000Z
src/seed_clusterer.cpp
code-s-witch/vg
aa0b37860b0ed64f582316dd9c277caba02ca052
[ "MIT" ]
2
2016-12-22T23:46:07.000Z
2021-07-28T17:49:50.000Z
src/seed_clusterer.cpp
code-s-witch/vg
aa0b37860b0ed64f582316dd9c277caba02ca052
[ "MIT" ]
1
2020-01-17T03:21:40.000Z
2020-01-17T03:21:40.000Z
#include "seed_clusterer.hpp" //#define DEBUG namespace vg { SnarlSeedClusterer::SnarlSeedClusterer( MinimumDistanceIndex& dist_index) : dist_index(dist_index){ }; vector<vector<size_t>> SnarlSeedClusterer::cluster_seeds ( vector<p...
47.073625
100
0.50764
code-s-witch
41757abc0031bd51b84e46c853d4df4e8c7f2864
2,515
cc
C++
fe-rep.cc
caladri/muttonda
30f556c9d2c76abdcb4ba7d0b4e07f8ecbc0109e
[ "BSD-2-Clause" ]
null
null
null
fe-rep.cc
caladri/muttonda
30f556c9d2c76abdcb4ba7d0b4e07f8ecbc0109e
[ "BSD-2-Clause" ]
null
null
null
fe-rep.cc
caladri/muttonda
30f556c9d2c76abdcb4ba7d0b4e07f8ecbc0109e
[ "BSD-2-Clause" ]
null
null
null
#include <sys/resource.h> #include <string.h> #include <unistd.h> #include <iostream> #include <string> #include <map> #include <set> #include <unordered_map> #include <unordered_set> #include <vector> #include "debugger.h" #include "expression.h" #include "function.h" #include "number.h" #include "parse.h" #include ...
19.346154
74
0.592843
caladri
4176cf95b005e27cd0e238741b35ff6fd369663f
3,221
cpp
C++
contests/leetcode-2019fall/e_1.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
23
2020-03-30T05:44:56.000Z
2021-09-04T16:00:57.000Z
contests/leetcode-2019fall/e_1.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
1
2020-05-10T15:04:05.000Z
2020-06-14T01:21:44.000Z
contests/leetcode-2019fall/e_1.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
6
2020-03-30T05:45:04.000Z
2020-08-13T10:01:39.000Z
#include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); return f * x; } struct TreeNod...
26.841667
96
0.451102
Nightwish-cn
41773b2897d2c9d443016de7204f354ef850e53f
1,508
cpp
C++
code/components/rage-allocator-five/src/ThreadAttachment.cpp
JamesEU/fivem
3baeddfd6550635774f8138d71067682e6ab97f7
[ "MIT" ]
12
2019-11-11T02:28:59.000Z
2022-03-08T14:47:35.000Z
code/components/rage-allocator-five/src/ThreadAttachment.cpp
FirstWiseman/fivem
5ebb6dfe826667c841027d6dbc7390e42abfb196
[ "MIT" ]
4
2022-02-14T13:27:41.000Z
2022-03-24T14:06:54.000Z
code/components/rage-allocator-five/src/ThreadAttachment.cpp
FirstWiseman/fivem
5ebb6dfe826667c841027d6dbc7390e42abfb196
[ "MIT" ]
3
2021-02-15T16:38:50.000Z
2021-12-09T08:54:34.000Z
/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include "StdInc.h" #include "Hooking.h" #include "sysAllocator.h" using rage::sysMemAllocator; // the global allocator entry s...
26.928571
133
0.696286
JamesEU
41783d720e287c4c48ba61e6b55141d24108c6c3
1,562
cpp
C++
focus_controller_ws/src/swiftnav_piksi/src/old_files/location.cpp
rajnikant1010/EVAutomation
a9e27e8916fd6dfc060dac1496a3b2f327ef6322
[ "BSD-2-Clause" ]
3
2019-06-13T02:41:49.000Z
2021-02-13T15:42:36.000Z
focus_controller_ws/src/swiftnav_piksi/src/old_files/location.cpp
rajnikant1010/EVAutomation
a9e27e8916fd6dfc060dac1496a3b2f327ef6322
[ "BSD-2-Clause" ]
null
null
null
focus_controller_ws/src/swiftnav_piksi/src/old_files/location.cpp
rajnikant1010/EVAutomation
a9e27e8916fd6dfc060dac1496a3b2f327ef6322
[ "BSD-2-Clause" ]
8
2017-02-24T02:17:28.000Z
2021-04-22T08:25:00.000Z
#include "ros/ros.h" #include <swiftnav_piksi/loc.h> #include <swiftnav_piksi/piksi_driver.h> #include <iostream> #include <math.h> #include <fstream> swiftnav_piksi::loc submsg; std::ofstream outFile; bool time_started = 0; double start_time = 0; void positionCallback(const nav_msgs::Odometry msg) { if(!time_start...
27.892857
163
0.652369
rajnikant1010
417d2ff41721d5d77ba01b5fb9f95ef845ed9ab2
2,498
cpp
C++
graph/strongly connected component/no-of-all-possible-path.cpp
StremCipher/important_source_code_new
536487a58392893b85a9c9e35cf22d4f41647d5f
[ "MIT" ]
null
null
null
graph/strongly connected component/no-of-all-possible-path.cpp
StremCipher/important_source_code_new
536487a58392893b85a9c9e35cf22d4f41647d5f
[ "MIT" ]
null
null
null
graph/strongly connected component/no-of-all-possible-path.cpp
StremCipher/important_source_code_new
536487a58392893b85a9c9e35cf22d4f41647d5f
[ "MIT" ]
null
null
null
/* CREATED BY STREAM_CIPHER feb-2021 */ // number of all possible path from 1 to n in a connected graph #include<bits/stdc++.h> using namespace std; void __print(long long x) {cerr << x;}void __print(unsigned long long x) {cerr << x;}void __print(long double x) {cerr << x;} void __print(char x) {cerr << '\'' <...
32.441558
125
0.578863
StremCipher
417ec3f75d620e2561e7c9471c292f9aa778b393
7,668
cxx
C++
src/andres/graphics/viewer-opengl.cxx
rempfler/efficient-mlt
653be91ae707ab9c766ed0c08c512b30c61c51ab
[ "MIT" ]
3
2018-02-19T18:42:24.000Z
2020-04-20T03:09:02.000Z
src/andres/graphics/viewer-opengl.cxx
rempfler/efficient-mlt
653be91ae707ab9c766ed0c08c512b30c61c51ab
[ "MIT" ]
null
null
null
src/andres/graphics/viewer-opengl.cxx
rempfler/efficient-mlt
653be91ae707ab9c766ed0c08c512b30c61c51ab
[ "MIT" ]
1
2020-05-23T17:26:09.000Z
2020-05-23T17:26:09.000Z
#include <cstddef> #include <fstream> #include <andres/graphics/graphics-hdf5.hxx> #include <andres/graphics/svg.hxx> #include <GL/glew.h> #include <GL/freeglut.h> using namespace std; typedef std::size_t size_type; typedef andres::graphics::Graphics<float, size_type> Graphics; typedef Graphics::PointType Point; ty...
27.288256
126
0.564684
rempfler