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
de39e298f8f3c1a4fbbcf8a676f6e1c75e8ca450
5,173
hpp
C++
game_of_life/game_state.hpp
lyrahgames/cpp-basics-game-of-life
380b1c017ceaf7115a3823d0fad62057ff64a981
[ "MIT" ]
null
null
null
game_of_life/game_state.hpp
lyrahgames/cpp-basics-game-of-life
380b1c017ceaf7115a3823d0fad62057ff64a981
[ "MIT" ]
null
null
null
game_of_life/game_state.hpp
lyrahgames/cpp-basics-game-of-life
380b1c017ceaf7115a3823d0fad62057ff64a981
[ "MIT" ]
null
null
null
#pragma once #include <algorithm> #include <vector> namespace game_of_life { struct game_state { // enum type : int { dead = 0, alive = 1 }; using type = int; game_state() = default; game_state(const game_state&) = default; game_state& operator=(const game_state&) = default; game_state(game_state&&) = de...
41.055556
80
0.522521
lyrahgames
de3ad56f462be51279a3429a2fc808c49d08e857
3,087
cc
C++
window.cc
oliviazhouyumeng/groupProject
1fad68cb9ebc170329232b41dfd5d5f8de34ffdc
[ "MIT" ]
null
null
null
window.cc
oliviazhouyumeng/groupProject
1fad68cb9ebc170329232b41dfd5d5f8de34ffdc
[ "MIT" ]
null
null
null
window.cc
oliviazhouyumeng/groupProject
1fad68cb9ebc170329232b41dfd5d5f8de34ffdc
[ "MIT" ]
null
null
null
#include <X11/Xlib.h> #include <X11/Xutil.h> #include <iostream> #include <cstdlib> #include <string> #include <sstream> #include <unistd.h> #include "window.h" using namespace std; Xwindow::Xwindow(int width, int height): width(width), height(height) { d = XOpenDisplay(NULL); if (d == NULL) { cerr << "Canno...
28.063636
117
0.622287
oliviazhouyumeng
de4b8434cb3eac3a607fc6cba057e474216de748
599
hpp
C++
addons/backpacks/bussole/CfgVehicles.hpp
MrDj200/task-force-arma-3-radio
21bb54d5d0e0b31b0522dc67e6923edb9ad85247
[ "RSA-MD" ]
300
2015-01-14T11:19:48.000Z
2022-01-18T19:46:55.000Z
addons/backpacks/bussole/CfgVehicles.hpp
MrDj200/task-force-arma-3-radio
21bb54d5d0e0b31b0522dc67e6923edb9ad85247
[ "RSA-MD" ]
742
2015-01-07T05:25:39.000Z
2022-03-15T17:06:34.000Z
addons/backpacks/bussole/CfgVehicles.hpp
MrDj200/task-force-arma-3-radio
21bb54d5d0e0b31b0522dc67e6923edb9ad85247
[ "RSA-MD" ]
280
2015-01-01T08:58:00.000Z
2022-03-23T12:37:38.000Z
class TFAR_bussole: TFAR_Bag_Base { scope = PUBLIC; scopeCurator = PUBLIC; author = "Raspu"; displayName = CSTRING(Bussole); descriptionShort = CSTRING(Bussole_Desc); picture = QPATHTOF(bussole\ui\bussole_icon.paa); maximumLoad = 30; mass = 120; model=QPATHTOF(models\tf_bussole); ...
33.277778
87
0.69783
MrDj200
de4dd61dc1638c358b5572200d923f6face332a6
2,012
cpp
C++
A3/code/version5/version5.cpp
XiaoLing12138/cppwork
ffad5db10d4e839c11275c1b63014d35651e2921
[ "MIT" ]
null
null
null
A3/code/version5/version5.cpp
XiaoLing12138/cppwork
ffad5db10d4e839c11275c1b63014d35651e2921
[ "MIT" ]
null
null
null
A3/code/version5/version5.cpp
XiaoLing12138/cppwork
ffad5db10d4e839c11275c1b63014d35651e2921
[ "MIT" ]
null
null
null
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <iostream> #include <cstdio> #include <fstream> #include <iomanip> #include <ctime> #include <chrono> #include <thread> #include <malloc.h> #include <stdlib.h> using namespace std; int n; __global__ void vec_dot(float* a, float* b, double* resu...
22.10989
84
0.524354
XiaoLing12138
de4e5ac779e45c7e26d9b10770a48b0768ec57c2
248
cpp
C++
2017/J2.cpp
areskng/CCC
9069356d74f256898427714940581601bbcfeda3
[ "MIT" ]
null
null
null
2017/J2.cpp
areskng/CCC
9069356d74f256898427714940581601bbcfeda3
[ "MIT" ]
null
null
null
2017/J2.cpp
areskng/CCC
9069356d74f256898427714940581601bbcfeda3
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main(){ int N , K ; cin >> N >> K; int shiftySum = N; for (int i = 0; i < K ; i++){ N = N * 10; shiftySum += N; } cout << shiftySum << endl; return 0; }
12.4
33
0.447581
areskng
de51159260fdac889efbf043283d35fcb7663c9d
10,902
cpp
C++
PhaseCongruency/phase.cpp
RamilKadyrov/PhaseCongruency
381c84531d8220357494415cb22f6f34f90013f5
[ "Unlicense" ]
11
2018-08-04T00:57:14.000Z
2022-03-29T09:50:37.000Z
PhaseCongruency/phase.cpp
RamilKadyrov/PhaseCongruency
381c84531d8220357494415cb22f6f34f90013f5
[ "Unlicense" ]
null
null
null
PhaseCongruency/phase.cpp
RamilKadyrov/PhaseCongruency
381c84531d8220357494415cb22f6f34f90013f5
[ "Unlicense" ]
10
2019-04-11T13:52:43.000Z
2021-12-31T08:26:21.000Z
#include "phase.h" #include <opencv2/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace cv; // Rearrange the quadrants of Fourier image so that the origin is at // the image center void shiftDFT(InputArray _src, OutputArray _dst) { M...
30.623596
106
0.55953
RamilKadyrov
de54ac3b20092b165d30411661e8482be38a2b76
4,402
cpp
C++
Intro/program9/diamondJasonDowning.cpp
JasonD94/HighSchool
e37bb56b8149acc87cdb5e37ea619ab6db58fc29
[ "MIT" ]
null
null
null
Intro/program9/diamondJasonDowning.cpp
JasonD94/HighSchool
e37bb56b8149acc87cdb5e37ea619ab6db58fc29
[ "MIT" ]
null
null
null
Intro/program9/diamondJasonDowning.cpp
JasonD94/HighSchool
e37bb56b8149acc87cdb5e37ea619ab6db58fc29
[ "MIT" ]
null
null
null
#include <iostream.h> //in/out put #include <math.h> //math stuff like fabs (absolute value) main() { // So. Many. Comments... char a; //the char variable for the symbol int b,c,d,e,f; //variables for the for loops int x = 1; //variable for the do-while loop do...
34.124031
142
0.449796
JasonD94
de5665d9719557ebf23390bdc7d752e79ac983ef
12,381
cpp
C++
src/Native/libcryptonight/xmrig/crypto/astrobwt/AstroBWT.cpp
afiniel/miningcore
6fa7d3b1d6c85060984116d8161da0f5d384a70f
[ "MIT" ]
75
2021-12-08T11:33:26.000Z
2022-03-30T07:26:12.000Z
src/Native/libcryptonight/xmrig/crypto/astrobwt/AstroBWT.cpp
afiniel/miningcore
6fa7d3b1d6c85060984116d8161da0f5d384a70f
[ "MIT" ]
86
2021-12-08T14:13:56.000Z
2022-03-31T16:57:10.000Z
src/Native/libcryptonight/xmrig/crypto/astrobwt/AstroBWT.cpp
afiniel/miningcore
6fa7d3b1d6c85060984116d8161da0f5d384a70f
[ "MIT" ]
67
2021-12-07T21:44:12.000Z
2022-03-31T12:12:03.000Z
/* XMRig * Copyright (c) 2018 Lee Clagett <https://github.com/vtnerd> * Copyright (c) 2018-2019 tevador <tevador@gmail.com> * Copyright (c) 2000 Transmeta Corporation <https://github.com/intel/msr-tools> * Copyright (c) 2004-2008 H. Peter Anvin <https://github.co...
27.331126
152
0.612875
afiniel
de5bbe752d78eb8b6929fb9968948893409902d0
2,201
hpp
C++
src/core/screensnapshot.hpp
Wiladams/vdj
83a0f083e78955d83717e6008449a252d5b32766
[ "MIT" ]
null
null
null
src/core/screensnapshot.hpp
Wiladams/vdj
83a0f083e78955d83717e6008449a252d5b32766
[ "MIT" ]
null
null
null
src/core/screensnapshot.hpp
Wiladams/vdj
83a0f083e78955d83717e6008449a252d5b32766
[ "MIT" ]
null
null
null
#pragma once // ScreenSnapshot // // Take a snapshot of a portion of the screen and hold // it in a PixelMap (User32PixelMap) // A sampler2D interface is also provided so you can // either use the pixel oriented 'get()' function, or the // parametric 'getValue()' function. // // When constructed, a single snapshot is...
30.150685
106
0.626988
Wiladams
de5c54781385414af25a42e5ffc17dc351c02816
1,636
cc
C++
Framework/AppFilterModule.cc
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
Framework/AppFilterModule.cc
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
Framework/AppFilterModule.cc
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
//-------------------------------------------------------------------------- // File and Version Information: // $Id: AppFilterModule.cc 509 2010-01-14 15:18:55Z stroili $ // // Description: // Class AppFilterModule. This is the abstract parent for filter // modules, modules that can terminate processing of a sequence...
22.410959
76
0.52445
brownd1978
de5d7f7ee32aa2f3ae34ad93bfee41aefbd16919
686
cc
C++
Part-I-The-Basics/Chapter-07-By-Value-or-by-Reference/7.6-make-pair.cc
RingZEROtlf/Cpp-Templates-Complete-Guide
e5de63f89019b8d688a7807f88cb0d5f7028b345
[ "MIT" ]
null
null
null
Part-I-The-Basics/Chapter-07-By-Value-or-by-Reference/7.6-make-pair.cc
RingZEROtlf/Cpp-Templates-Complete-Guide
e5de63f89019b8d688a7807f88cb0d5f7028b345
[ "MIT" ]
null
null
null
Part-I-The-Basics/Chapter-07-By-Value-or-by-Reference/7.6-make-pair.cc
RingZEROtlf/Cpp-Templates-Complete-Guide
e5de63f89019b8d688a7807f88cb0d5f7028b345
[ "MIT" ]
null
null
null
#include <utility> #include <type_traits> int main() { auto b = std::make_pair(1, 2); } // C++98 template<typename T1, typename T2> std::pair<T1, T2> make_pair_98(T1 const& a, T2 const& b) { return std::pair<T1, T2>(a, b); } // C++03 template<typename T1, typename T2> std::pair<T1, T2> make_pair_03(T1 a, T2 b) {...
21.4375
56
0.604956
RingZEROtlf
de5df6535c5d8f100095ecf25fe2975f22b88ec7
5,108
cpp
C++
sfxvst/sfx_Flanger/SfxFlanger.cpp
Nocorupe/SimpleFxVst
a7e3a623dfa27d81c2d38c4a5a96b6c2364d486c
[ "MIT" ]
1
2021-12-12T19:45:05.000Z
2021-12-12T19:45:05.000Z
sfxvst/sfx_Flanger/SfxFlanger.cpp
Nocorupe/SimpleFxVst
a7e3a623dfa27d81c2d38c4a5a96b6c2364d486c
[ "MIT" ]
null
null
null
sfxvst/sfx_Flanger/SfxFlanger.cpp
Nocorupe/SimpleFxVst
a7e3a623dfa27d81c2d38c4a5a96b6c2364d486c
[ "MIT" ]
null
null
null
 #include "SfxFlanger.h" #define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> #include <memory> std::unique_ptr<SfxFlanger> gFxUniquePtr; AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { gFxUniquePtr = std::unique_ptr<SfxFlanger>(new SfxFlanger(audioMaster)); return gFxUni...
24.09434
108
0.667972
Nocorupe
de67ebe2141055a6c200a5875c016bdf673d9af6
733
hxx
C++
include/osram/extractor/files.hxx
ambasta/osram
5415b73292e1387fb1dbcab58296ea6fefab9075
[ "BSD-2-Clause" ]
1
2021-01-25T11:07:22.000Z
2021-01-25T11:07:22.000Z
include/osram/extractor/files.hxx
ambasta/osram
5415b73292e1387fb1dbcab58296ea6fefab9075
[ "BSD-2-Clause" ]
null
null
null
include/osram/extractor/files.hxx
ambasta/osram
5415b73292e1387fb1dbcab58296ea6fefab9075
[ "BSD-2-Clause" ]
null
null
null
#ifndef OSRAM_EXTRACTOR_FILES #define OSRAM_EXTRACTOR_FILES #include <filesystem> #include <osram/extractor/node_data_container.hxx> #include <osram/extractor/profile_properties.hxx> #include <osram/storage/serialization.hxx> #include <osram/storage/tar.hxx> namespace osram { namespace extractor { namespace files { ...
28.192308
73
0.751705
ambasta
de6960343dfc4513b199bed8fc9e5a682937c549
3,616
cpp
C++
mp/src/game/server/Mod/SF132_ItemRegister.cpp
hekar/luminousforts-2013
09f07df4def93fa0d774721375a6c7c9da26d71f
[ "Unlicense" ]
7
2019-02-04T01:17:26.000Z
2022-02-26T21:36:34.000Z
mp/src/game/server/Mod/SF132_ItemRegister.cpp
hekar/luminousforts-2013
09f07df4def93fa0d774721375a6c7c9da26d71f
[ "Unlicense" ]
11
2016-05-06T22:44:46.000Z
2016-05-06T22:45:03.000Z
mp/src/game/server/Mod/SF132_ItemRegister.cpp
hekar/luminousforts-2013
09f07df4def93fa0d774721375a6c7c9da26d71f
[ "Unlicense" ]
2
2016-06-28T11:34:53.000Z
2017-04-01T18:08:46.000Z
/* ***** BEGIN LICENSE BLOCK ***** Version: MPL 1.1/LGPL 2.1/GPL 2.0 The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with ... for the specific language governing rights and limitations under the License. The Original Code...
23.633987
111
0.674502
hekar
de705bbc96aa23ef890c778e8e602b45300a3394
645
cpp
C++
Playground3D/App.cpp
VasilStamatov/GraphicsLearning
8cf5dc57fedd809066472e96c8182153a1fa54d9
[ "MIT" ]
null
null
null
Playground3D/App.cpp
VasilStamatov/GraphicsLearning
8cf5dc57fedd809066472e96c8182153a1fa54d9
[ "MIT" ]
null
null
null
Playground3D/App.cpp
VasilStamatov/GraphicsLearning
8cf5dc57fedd809066472e96c8182153a1fa54d9
[ "MIT" ]
null
null
null
#include "App.h" #include <GameEngine\ScreenList.h> App::App() { } App::~App() { } // called on initialization void App::OnInit() { //set up the variables for the window creation m_gameName = "3D Playground"; m_screenWidth = 960; m_screenHeight = 540; m_windowFlags = GameEngine::WindowC...
18.970588
66
0.68062
VasilStamatov
de72963195858189b527e4600f49728cba336348
2,930
cpp
C++
Long/03_20/ADASHOP2.cpp
vinaysomawat/CodeChef-Solutions
9a0666a4f1badd593cd075f3beb05377e3c6657a
[ "MIT" ]
1
2020-04-12T01:39:10.000Z
2020-04-12T01:39:10.000Z
Long/03_20/ADASHOP2.cpp
vinaysomawat/CodeChef-Solutions
9a0666a4f1badd593cd075f3beb05377e3c6657a
[ "MIT" ]
null
null
null
Long/03_20/ADASHOP2.cpp
vinaysomawat/CodeChef-Solutions
9a0666a4f1badd593cd075f3beb05377e3c6657a
[ "MIT" ]
null
null
null
/* Contest: CodeChef March 2020 Long challange Problem link: https://www.codechef.com/MARCH20B/problems/ADASHOP2 Author: Vinay Somawat Author's Webpage: http://vinaysomawat.github.io/ */ #include<bits/stdc++.h> #define ll long long int using namespace std; bool isSafe(int r, int c) { if(r>0 && r<...
21.703704
69
0.468259
vinaysomawat
de7c4a2ae99c3b06f7bb0d7ee2d1e1fa7b112460
711
cpp
C++
transform3d.cpp
shadown/heap_history_viewer
bb51da640324df5637842d0250f1c741559d1d69
[ "MIT" ]
1
2021-08-03T21:06:09.000Z
2021-08-03T21:06:09.000Z
transform3d.cpp
whitehat42/heap_history_viewer
64666f57059e29cfc438a1885a0372af2b45c2f4
[ "MIT" ]
2
2019-11-19T10:00:02.000Z
2019-11-21T10:47:05.000Z
transform3d.cpp
whitehat42/heap_history_viewer
64666f57059e29cfc438a1885a0372af2b45c2f4
[ "MIT" ]
1
2019-11-18T23:05:50.000Z
2019-11-18T23:05:50.000Z
#include "transform3d.h" Transform3D::Transform3D() : dirty_(true), scale_(1.0, 1.0, 1.0) { } void Transform3D::translate(const QVector3D &dt) { dirty_ = true; translation_ += dt; } void Transform3D::scale(const QVector3D &ds) { dirty_ = true; scale_ *= ds; } void Transform3D::rotate(float angle, const QVec...
20.314286
70
0.682138
shadown
de805ada175db0cc2fe63b6332fcc67e902ffb01
526
cpp
C++
task3.cpp
Hung150/lab12
5065a9285295cf29aba089b2d6beff24bc5a538c
[ "Apache-2.0" ]
null
null
null
task3.cpp
Hung150/lab12
5065a9285295cf29aba089b2d6beff24bc5a538c
[ "Apache-2.0" ]
null
null
null
task3.cpp
Hung150/lab12
5065a9285295cf29aba089b2d6beff24bc5a538c
[ "Apache-2.0" ]
null
null
null
#include<iostream> #include<math.h> using namespace std; double rings(double r1,double r2){ return 3.14*(pow(r1,2)-pow(r2,2)); } int main(){ double r1,r2; cout<<"enter radius r1(r1>0): "; cin>>r1; cout<<"enter radius r2(0<r2<r1): "; cin>>r2; if(r1<0||r2<0){ cout<<"error(please enter r...
30.941176
103
0.579848
Hung150
de81aacd7516ae5cae0e7e196403419b5bfb8d2c
46
hpp
C++
src/boost_graph_parallel_algorithm.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_graph_parallel_algorithm.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_graph_parallel_algorithm.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/graph/parallel/algorithm.hpp>
23
45
0.804348
miathedev
de8d08cf5179a139cd5e204002a6aed961f510ca
3,364
cpp
C++
src/lib/HNReqWaitQueue.cpp
nottberg/libhnode2
51eef81213c3ead4edcb3d838bbb5773efbc7ca4
[ "MIT" ]
null
null
null
src/lib/HNReqWaitQueue.cpp
nottberg/libhnode2
51eef81213c3ead4edcb3d838bbb5773efbc7ca4
[ "MIT" ]
null
null
null
src/lib/HNReqWaitQueue.cpp
nottberg/libhnode2
51eef81213c3ead4edcb3d838bbb5773efbc7ca4
[ "MIT" ]
null
null
null
#include <unistd.h> #include <sys/eventfd.h> #include <iostream> #include <thread> #include <chrono> #include "HNReqWaitQueue.h" using namespace std::chrono_literals; HNReqWaitAction::HNReqWaitAction() { } HNReqWaitAction::~HNReqWaitAction() { } void HNReqWaitAction::prepare() { // Setup to begin waiting ...
18.585635
116
0.611177
nottberg
de8d684642e6008076e9bdc98f7e5965218a7034
4,711
cpp
C++
cetty-shiro/src/cetty/shiro/authc/WSSE.cpp
frankee/cetty2
62ac0cd1438275097e47a9ba471e72efd2746ded
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
26
2015-11-08T10:58:21.000Z
2021-02-25T08:27:26.000Z
cetty-shiro/src/cetty/shiro/authc/WSSE.cpp
frankee/cetty2
62ac0cd1438275097e47a9ba471e72efd2746ded
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
1
2019-02-18T08:46:17.000Z
2019-02-18T08:46:17.000Z
cetty-shiro/src/cetty/shiro/authc/WSSE.cpp
frankee/cetty2
62ac0cd1438275097e47a9ba471e72efd2746ded
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
8
2016-02-27T02:37:10.000Z
2021-09-29T05:25:00.000Z
/* * WSSE.cpp * * Created on: 2012-9-25 * Author: chenhl */ #include <cetty/shiro/authc/WSSE.h> #include <soci/soci.h> #include <soci/sqlite3/soci-sqlite3.h> #include <cetty/logging/LoggerHelper.h> #include <cetty/config/ConfigCenter.h> #include <cetty/util/StringUtil.h> namespace cetty { namespace shiro...
23.437811
70
0.558692
frankee
de947f74886394776c0b220f387e9fac2269f455
1,170
cpp
C++
Crisp/Renderer/VulkanBufferUtils.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
6
2017-09-14T03:26:49.000Z
2021-09-18T05:40:59.000Z
Crisp/Renderer/VulkanBufferUtils.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
Crisp/Renderer/VulkanBufferUtils.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
#include "VulkanBufferUtils.hpp" namespace crisp { std::unique_ptr<VulkanBuffer> createStagingBuffer(VulkanDevice* device, VkDeviceSize size, const void* data) { auto stagingBuffer = std::make_unique<VulkanBuffer>(device, size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT); ...
48.75
145
0.770085
FallenShard
de97d47313d638e4dccaeadd4374682077b373dd
6,576
hpp
C++
rete-reasoner/NodeBuilderHelper.hpp
sempr-tk/rete
a6fd29f50f9e6a259d40ac0850acff7874ccdba0
[ "BSD-3-Clause" ]
1
2021-12-04T21:29:04.000Z
2021-12-04T21:29:04.000Z
rete-reasoner/NodeBuilderHelper.hpp
sempr-tk/rete
a6fd29f50f9e6a259d40ac0850acff7874ccdba0
[ "BSD-3-Clause" ]
null
null
null
rete-reasoner/NodeBuilderHelper.hpp
sempr-tk/rete
a6fd29f50f9e6a259d40ac0850acff7874ccdba0
[ "BSD-3-Clause" ]
null
null
null
#ifndef RETE_PARSER_NODE_BUILDER_HELPER_HPP_ #define RETE_PARSER_NODE_BUILDER_HELPER_HPP_ #include <type_traits> #include "Argument.hpp" #include "../rete-core/Util.hpp" #include "../rete-core/builtins/NumberToNumberConversion.hpp" #include "../rete-core/builtins/NumberToStringConversion.hpp" namespace rete { namespa...
27.982979
83
0.613747
sempr-tk
de9847be95d64b33763b0713218bb0de959832da
435
hpp
C++
Miracle/src/Miracle/Graphics/Implementations/Vulkan/Queue.hpp
McFlyboy/Miracle
03a41bb8e24ecf2dfc18b5e3aee964640ec9a593
[ "MIT" ]
null
null
null
Miracle/src/Miracle/Graphics/Implementations/Vulkan/Queue.hpp
McFlyboy/Miracle
03a41bb8e24ecf2dfc18b5e3aee964640ec9a593
[ "MIT" ]
3
2021-12-10T23:19:29.000Z
2022-03-27T05:04:14.000Z
Miracle/src/Miracle/Graphics/Implementations/Vulkan/Queue.hpp
McFlyboy/Miracle
03a41bb8e24ecf2dfc18b5e3aee964640ec9a593
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> #include "Vulkan.hpp" namespace Miracle::Graphics::Implementations::Vulkan { class Queue { protected: vk::raii::Queue m_queue; Queue() : m_queue(nullptr) {} Queue( const vk::raii::Device& device, uint32_t queueFamilyIndex ) : m_queue(device.getQueue(queueFamilyInd...
16.111111
54
0.675862
McFlyboy
de9ca1442df3e923335d260ab7ce61e4ec6f2e0f
4,712
cpp
C++
Samples/HomeGroup/cpp/Scenario4_SearchUser.xaml.cpp
aspexkz/aspex1
157c9eb6127947e71458e473eb796f9585bc248e
[ "MIT" ]
3
2018-11-08T07:00:42.000Z
2019-01-09T12:16:07.000Z
Samples/HomeGroup/cpp/Scenario4_SearchUser.xaml.cpp
aspexkz/aspex1
157c9eb6127947e71458e473eb796f9585bc248e
[ "MIT" ]
4
2018-12-14T21:21:27.000Z
2019-01-07T20:15:17.000Z
Samples/HomeGroup/cpp/Scenario4_SearchUser.xaml.cpp
aspexkz/aspex1
157c9eb6127947e71458e473eb796f9585bc248e
[ "MIT" ]
2
2020-07-13T03:05:00.000Z
2021-08-11T15:16:12.000Z
// Copyright (c) Microsoft. All rights reserved. #include "pch.h" #include "Scenario4_SearchUser.xaml.h" using namespace SDKTemplate; using namespace Platform; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Windows::UI::Xaml; using namespace Windows:...
39.266667
163
0.627122
aspexkz
dea0792a88eb78219e2d6e9c62cddbfca0b6b7de
2,635
cpp
C++
tutorials/developers/tutorial_05/tutorial_05.cpp
BHafsa/tiramisu
555f48f38b7f3460819d1999e7af5c89457a4c58
[ "MIT" ]
null
null
null
tutorials/developers/tutorial_05/tutorial_05.cpp
BHafsa/tiramisu
555f48f38b7f3460819d1999e7af5c89457a4c58
[ "MIT" ]
null
null
null
tutorials/developers/tutorial_05/tutorial_05.cpp
BHafsa/tiramisu
555f48f38b7f3460819d1999e7af5c89457a4c58
[ "MIT" ]
null
null
null
#include <isl/set.h> #include <isl/union_map.h> #include <isl/union_set.h> #include <isl/ast_build.h> #include <isl/schedule.h> #include <isl/schedule_node.h> #include <tiramisu/debug.h> #include <tiramisu/core.h> #include <string.h> #include <Halide.h> /* Sequence of computations. for (i = 0; i < M; i++) S0(i) =...
27.164948
89
0.488805
BHafsa
dea34400b4aaaf9ba105d0b284c51f04ff3eedc7
3,113
hh
C++
src/hkl_controls.hh
maciejwlodek/blend
00c892363876692c5370def0e37a106ad5f7b07e
[ "BSD-3-Clause" ]
null
null
null
src/hkl_controls.hh
maciejwlodek/blend
00c892363876692c5370def0e37a106ad5f7b07e
[ "BSD-3-Clause" ]
null
null
null
src/hkl_controls.hh
maciejwlodek/blend
00c892363876692c5370def0e37a106ad5f7b07e
[ "BSD-3-Clause" ]
1
2019-01-24T16:14:56.000Z
2019-01-24T16:14:56.000Z
// hkl_controls.hh // // Selection controls for hkl_unmerge #ifndef HKL_CONTROLS_HEADER #define HKL_CONTROLS_HEADER #include "controls.hh" #include "range.hh" #include "InputAll.hh" namespace scala { //=================================================================== class file_select //! Various things to...
38.432099
99
0.685512
maciejwlodek
dea7ef91f9c8021c88fc83041fc9a92fbcd754f1
747
cpp
C++
C++ Competitive Programming/Algorithms/TwoPointerMethod.cpp
arcelioeperez/arcelioeperez
105775426e018c0d07238a78a7ceaef29cc715ed
[ "MIT" ]
2
2020-10-31T17:30:48.000Z
2020-11-09T02:29:15.000Z
C++ Competitive Programming/Algorithms/TwoPointerMethod.cpp
arcelioeperez/arcelioeperez
105775426e018c0d07238a78a7ceaef29cc715ed
[ "MIT" ]
null
null
null
C++ Competitive Programming/Algorithms/TwoPointerMethod.cpp
arcelioeperez/arcelioeperez
105775426e018c0d07238a78a7ceaef29cc715ed
[ "MIT" ]
null
null
null
/* Original Version used an array. This version uses a vector. */ #include <iostream> #include <vector> using namespace std; typedef vector<int> vect; bool pairsum(vect v, int X) { //second pointer int j = v.size() - 1; int i = 0; while (i < j) { //pair if (v[i] + v[j] == X) { return 1; ...
14.365385
59
0.516734
arcelioeperez
deab37f51b11de0332db6a699243bbd22acaef35
1,833
cpp
C++
CarreGameEngine/CarreGameEngine/src/AllStatesFSM.cpp
CordellSmith/ICT397Carre
5241a01f6443df8296344ae79e34bc1b1ac08441
[ "MIT" ]
1
2018-03-13T06:16:47.000Z
2018-03-13T06:16:47.000Z
CarreGameEngine/CarreGameEngine/src/AllStatesFSM.cpp
CordellSmith/ICT397Carre
5241a01f6443df8296344ae79e34bc1b1ac08441
[ "MIT" ]
3
2018-03-29T15:31:15.000Z
2018-05-15T05:54:55.000Z
CarreGameEngine/CarreGameEngine/src/AllStatesFSM.cpp
CordellSmith/ICT397Carre
5241a01f6443df8296344ae79e34bc1b1ac08441
[ "MIT" ]
null
null
null
/* * Implementation of AllStatesFSM.h file * Author - Jack Matters */ // Includes #include <iostream> #include "../headers/AllStatesFSM.h" /*****************************************Class Separator******************************************/ void MoveState::Enter(ComputerAI* compAI) { std::cout << "Entering 'Enter' s...
23.5
100
0.577196
CordellSmith
deb0d82febc2596d4bcd0db3983cd2fadc4182ed
1,544
cpp
C++
kernel/src/memory/memory_map.cpp
Andrispowq/HackOS
73b24450281abbbe5f37b8f2c02904d82a255c25
[ "Apache-2.0" ]
10
2020-12-10T16:36:41.000Z
2021-11-08T12:01:05.000Z
kernel/src/memory/memory_map.cpp
Andrispowq/HackOS
73b24450281abbbe5f37b8f2c02904d82a255c25
[ "Apache-2.0" ]
null
null
null
kernel/src/memory/memory_map.cpp
Andrispowq/HackOS
73b24450281abbbe5f37b8f2c02904d82a255c25
[ "Apache-2.0" ]
1
2020-10-02T05:42:21.000Z
2020-10-02T05:42:21.000Z
#include "memory_map.h" #include "memory/bios_memory_type.h" #include "memory/efi_memory_type.h" static MemoryMapEntry* usuableMemory[20]; static uint32_t usuableMemoryType = 0; static bool usuableMemoryGot = 0; extern bool fromUEFI; bool MemoryMap::IsUsuableMemory(size_t index) { if(index >= entryCount) {...
18.60241
55
0.584845
Andrispowq
deb634cf7118c2ff1d5b7e9a97a8406c4405a520
286
cpp
C++
docs/tema3/sesion20.10.02/conversion_grados.cpp
GabJL/FI2020
2541622ecc2ce4f4db66ae2006006827dac90217
[ "MIT" ]
null
null
null
docs/tema3/sesion20.10.02/conversion_grados.cpp
GabJL/FI2020
2541622ecc2ce4f4db66ae2006006827dac90217
[ "MIT" ]
null
null
null
docs/tema3/sesion20.10.02/conversion_grados.cpp
GabJL/FI2020
2541622ecc2ce4f4db66ae2006006827dac90217
[ "MIT" ]
null
null
null
// Ejemplo: conversor de grados celsius (centígrados) a farenheit #include <iostream> using namespace std; int main(){ double gradC, gradF; cout << "Que temperatura hace: "; cin >> gradC; gradF = 1.8*gradC + 32; cout << "En grados Farenheit son " << gradF << endl; return 0; }
19.066667
65
0.667832
GabJL
630cfc606e5090d193c3e280724216df7a96a56b
1,685
cpp
C++
engine/generators/crypts/source/PillarCryptLayoutStrategy.cpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
engine/generators/crypts/source/PillarCryptLayoutStrategy.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
engine/generators/crypts/source/PillarCryptLayoutStrategy.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#include "PillarCryptLayoutStrategy.hpp" #include "RNG.hpp" #include "PillarGeneratorFactory.hpp" using namespace std; void PillarCryptLayoutStrategy::create_layout(MapPtr map, const tuple<Coordinate, Coordinate, Coordinate>& stair_loc_and_room_boundary) { // Select a pillar type. PillarType pt = static_cast<Pill...
33.039216
154
0.673591
sidav
6314a22a18065179df18766d83892a75888f2858
1,152
cpp
C++
examples/register_service.cpp
limenghua/modulespp
3c336d3df5f5efe7e99edcac2c36d3b6d6b22c8a
[ "MIT" ]
1
2018-11-01T11:41:11.000Z
2018-11-01T11:41:11.000Z
examples/register_service.cpp
limenghua/modulespp
3c336d3df5f5efe7e99edcac2c36d3b6d6b22c8a
[ "MIT" ]
null
null
null
examples/register_service.cpp
limenghua/modulespp
3c336d3df5f5efe7e99edcac2c36d3b6d6b22c8a
[ "MIT" ]
null
null
null
// // Created by limenghua on 18-3-10. // #include <modulepp/application.h> #include <iostream> #include <memory> #include <ctime> using namespace modulepp; class time_service{ public: virtual std::time_t get_start_time() =0; }; class time_service_imp:public time_service{ public: time_service_imp(){ ...
18.580645
57
0.642361
limenghua
6315589d14120881ac81f0b8b9bdbec8718e3d4a
4,150
cpp
C++
openbarcode-cli/main.cpp
TrevorMellon/openbarcode
bb0be48d28dccf831e46e05d85dea6f48940587a
[ "MIT" ]
40
2016-02-18T18:47:04.000Z
2022-03-22T07:03:33.000Z
openbarcode-cli/main.cpp
TrevorMellon/openbarcode
bb0be48d28dccf831e46e05d85dea6f48940587a
[ "MIT" ]
3
2017-06-23T16:25:08.000Z
2017-10-26T15:54:41.000Z
openbarcode-cli/main.cpp
TrevorMellon/openbarcode
bb0be48d28dccf831e46e05d85dea6f48940587a
[ "MIT" ]
15
2017-06-16T22:36:56.000Z
2021-06-22T07:48:33.000Z
/** -------------------------------------------------------------------------------- - Module : main.cpp - Description : Example of cli usage of 1D and 2D C++ Barcode Library - Author : Tim Zaman, 18-FEB-2016 -------------------------------------------------------------------------------- - Copy...
35.169492
112
0.584096
TrevorMellon
631794c3d31933f511f1acf9bb05d2fc5e856440
693
cpp
C++
LeetCode/Problems/Algorithms/#1658_MinimumOperationsToReduceXToZero_sol1_greedy_maximum_contiguous_subarray_of_given_sum_O(N)_time_O(N)_extra_space_432ms_168.2MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#1658_MinimumOperationsToReduceXToZero_sol1_greedy_maximum_contiguous_subarray_of_given_sum_O(N)_time_O(N)_extra_space_432ms_168.2MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#1658_MinimumOperationsToReduceXToZero_sol1_greedy_maximum_contiguous_subarray_of_given_sum_O(N)_time_O(N)_extra_space_432ms_168.2MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: int minOperations(vector<int>& nums, int x) { const int N = nums.size(); const int EXPECTED_SUM = accumulate(nums.begin(), nums.end(), 0) - x; unordered_map<int, int> pos; int prefSum = 0; pos[prefSum] = -1; int maxSubarraySize = INT_M...
36.473684
89
0.50938
Tudor67
631af9ca41bb18bc92ef33281eda22d6f060dbb5
812
hpp
C++
EPSServer/rt.hpp
NuLL3rr0r/e-pooyasokhan-com-lcms
cf4b8cd0118a10bbecc4a1bb29c443385fa21e12
[ "MIT", "Unlicense" ]
null
null
null
EPSServer/rt.hpp
NuLL3rr0r/e-pooyasokhan-com-lcms
cf4b8cd0118a10bbecc4a1bb29c443385fa21e12
[ "MIT", "Unlicense" ]
null
null
null
EPSServer/rt.hpp
NuLL3rr0r/e-pooyasokhan-com-lcms
cf4b8cd0118a10bbecc4a1bb29c443385fa21e12
[ "MIT", "Unlicense" ]
null
null
null
#ifndef RT_HPP #define RT_HPP #include <memory> #include <mutex> namespace MyLib { class DB; } namespace EPSServer { class DBTables; class RT; } class EPSServer::RT { private: struct StorageStruct { std::string AppPath; }; typedef std::unique_ptr<StorageStruct> Storage_ptr; ...
16.571429
62
0.692118
NuLL3rr0r
631c0e4646faf234509b9e31d212ce3c38ce2fba
3,129
cpp
C++
OpenGLApplication/OpenGLApplication/src/core/Shader.cpp
deg3x/GraphicsPlayground
dd5eb70e4b74c1efa136a49ebef612c2d33a7765
[ "MIT" ]
null
null
null
OpenGLApplication/OpenGLApplication/src/core/Shader.cpp
deg3x/GraphicsPlayground
dd5eb70e4b74c1efa136a49ebef612c2d33a7765
[ "MIT" ]
null
null
null
OpenGLApplication/OpenGLApplication/src/core/Shader.cpp
deg3x/GraphicsPlayground
dd5eb70e4b74c1efa136a49ebef612c2d33a7765
[ "MIT" ]
null
null
null
#include "shader.h" #include <glad/glad.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <string> #include <iostream> #include <fstream> #include <sstream> Shader::Shader(const char* vertPath, const char* fragPath) { std::string vCode; std::string fCode; ReadCodeFromPath(vertPath, vCode); ReadC...
21.729167
93
0.716203
deg3x
631de76eabd43790169bbe4a4fdd4a48e03d65e6
488
cpp
C++
compute_dfxi.cpp
pushkarjain1991/Poisson_FEM
fa0f7d163f0ea858db4ad8235b3629b224ffec48
[ "BSD-3-Clause" ]
null
null
null
compute_dfxi.cpp
pushkarjain1991/Poisson_FEM
fa0f7d163f0ea858db4ad8235b3629b224ffec48
[ "BSD-3-Clause" ]
null
null
null
compute_dfxi.cpp
pushkarjain1991/Poisson_FEM
fa0f7d163f0ea858db4ad8235b3629b224ffec48
[ "BSD-3-Clause" ]
1
2019-04-02T17:16:46.000Z
2019-04-02T17:16:46.000Z
// // Created by Pushkar Kumar Jain on 3/21/17. // #include "Eigen/Dense" Eigen::MatrixXd compute_dfxi(double zi, double eta, int nnode, int ndim) { Eigen::MatrixXd dfxi(nnode, ndim); dfxi(0, 0) = -0.25 * (1 - eta); dfxi(1, 0) = 0.25 * (1 - eta); dfxi(2, 0) = 0.25 * (1 + eta); dfxi(3, 0) = -0.25 * ...
27.111111
74
0.495902
pushkarjain1991
6323d48ab1df01b40244925ce30bc3281e7206ca
8,330
cpp
C++
platform/usb/core/usb_std.cpp
andryblack/pcb-printer-firmware
da562d2da3c21b0d4776f2bbe5ce3e1e68be6755
[ "MIT" ]
1
2020-07-18T18:34:41.000Z
2020-07-18T18:34:41.000Z
platform/usb/core/usb_std.cpp
andryblack/pcb-printer-firmware
da562d2da3c21b0d4776f2bbe5ce3e1e68be6755
[ "MIT" ]
null
null
null
platform/usb/core/usb_std.cpp
andryblack/pcb-printer-firmware
da562d2da3c21b0d4776f2bbe5ce3e1e68be6755
[ "MIT" ]
1
2020-01-29T10:29:08.000Z
2020-01-29T10:29:08.000Z
#include "usb_std.h" static uint8_t data_buffer[64]; #ifdef USB_DEBUG static const char hex[] = "0123456789abcdef"; static void dump_mem(const void* data,uint32_t length) { const uint8_t* b = static_cast<const uint8_t*>(data); while (length) { char buf[32*3+4]; uint32_t l = length > 32 ? 32 : length; char* o...
21.304348
84
0.641537
andryblack
632d0d754083022521dbd08433cf1ebcc525d36e
1,469
cpp
C++
etc/limits.cpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
etc/limits.cpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
etc/limits.cpp
angusoutlook/OOProgrammingInCpp
42c66b2652d4814e4f8b31d060189bd853cce416
[ "FSFAP" ]
null
null
null
/* The following code example is taken from the book * "Object-Oriented Programming in C++" * by Nicolai M. Josuttis, Wiley, 2002 * * (C) Copyright Nicolai M. Josuttis 2002. * Permission to copy, use, modify, sell and distribute this software * is granted provided this copyright notice appears in all copies. * T...
31.934783
69
0.635126
angusoutlook
63307c1197d484818bbfe89f6d68667a6295d3c3
1,016
hpp
C++
kernel/include/drivers/keyboard.hpp
cekkr/thor-os
841b088eddc378ef38c98878a51958479dce4a31
[ "MIT" ]
null
null
null
kernel/include/drivers/keyboard.hpp
cekkr/thor-os
841b088eddc378ef38c98878a51958479dce4a31
[ "MIT" ]
null
null
null
kernel/include/drivers/keyboard.hpp
cekkr/thor-os
841b088eddc378ef38c98878a51958479dce4a31
[ "MIT" ]
null
null
null
//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //=================================================================...
24.190476
73
0.595472
cekkr
633808dcce20847ba8fd62a4f0c0ce7da0ed66d4
782
cpp
C++
leetcode/10. Regular Expression Matching/s1.cpp
zhuohuwu0603/leetcode_cpp_lzl124631x
6a579328810ef4651de00fde0505934d3028d9c7
[ "Fair" ]
787
2017-05-12T05:19:57.000Z
2022-03-30T12:19:52.000Z
leetcode/10. Regular Expression Matching/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
8
2020-03-16T05:55:38.000Z
2022-03-09T17:19:17.000Z
leetcode/10. Regular Expression Matching/s1.cpp
aerlokesh494/LeetCode
0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f
[ "Fair" ]
247
2017-04-30T15:07:50.000Z
2022-03-30T09:58:57.000Z
// OJ: https://leetcode.com/problems/regular-expression-matching/ // Author: github.com/lzl124631x // Time: O(MN) // Space: O(M) class Solution { private: inline bool matchChar(string &s, int i, string &p, int j) { return p[j] == '.' ? i < s.size() : s[i] == p[j]; } bool isMatch(string s, int i, str...
31.28
72
0.476982
zhuohuwu0603
633c04ed4e617290e48ba5c457a40df08baba7ed
821
hpp
C++
Solution/Header/ObjectSystem/Collision/BoxComponent.hpp
TeeNik/GameEngine
9a3893455f20e14f967e5df9b2168fa0f004c101
[ "MIT" ]
null
null
null
Solution/Header/ObjectSystem/Collision/BoxComponent.hpp
TeeNik/GameEngine
9a3893455f20e14f967e5df9b2168fa0f004c101
[ "MIT" ]
null
null
null
Solution/Header/ObjectSystem/Collision/BoxComponent.hpp
TeeNik/GameEngine
9a3893455f20e14f967e5df9b2168fa0f004c101
[ "MIT" ]
null
null
null
#pragma once #include "ObjectSystem/Component.hpp" #include "Physics/Collision.hpp" class Actor; enum CollisionObjectType { Static, Dynamic, }; class BoxComponent : public Component { public: BoxComponent(Actor* owner); virtual ~BoxComponent(); virtual void Update(float deltaTime) override; inline void SetObj...
20.525
81
0.749086
TeeNik
633ca2a14390a0554b23040ab9ab1da678e1b68b
3,419
cpp
C++
Experiment1/main.cpp
luciochen233/CSE398-Group-6
8479db088bb09695b7da1725637918706b7bac4d
[ "Unlicense" ]
null
null
null
Experiment1/main.cpp
luciochen233/CSE398-Group-6
8479db088bb09695b7da1725637918706b7bac4d
[ "Unlicense" ]
null
null
null
Experiment1/main.cpp
luciochen233/CSE398-Group-6
8479db088bb09695b7da1725637918706b7bac4d
[ "Unlicense" ]
1
2020-03-02T22:11:45.000Z
2020-03-02T22:11:45.000Z
#include "gpio.h" #include "pwm.h" #include "adc.h" #include <thread> #include <chrono> using namespace std; void task1(){ gpio g67(67); gpio g66(66); cout << "66's value" << endl; int p66 = 0; cin >> p66; g66.set_direction(0); // 0 is out g66.set_value(p66); cin.get(); cin.get(); cout << "change ...
24.775362
89
0.621819
luciochen233
633cb6452ddf54e3861f7c63f6eff88acf1e0d91
2,701
hh
C++
PacEmc/PacEmcDigi.hh
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
PacEmc/PacEmcDigi.hh
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
PacEmc/PacEmcDigi.hh
brownd1978/FastSim
05f590d72d8e7f71856fd833114a38b84fc7fd48
[ "Apache-2.0" ]
null
null
null
#ifndef PACEMCDIGI_HH #define PACEMCDIGI_HH #include <iostream> #include "AbsEnv/TwoCoordIndex.hh" #include "CLHEP/Geometry/HepPoint.h" #include <map> class GTrack; typedef std::map<const GTrack*, double> GTDouble ; class PacEmcDigi { public: enum WaveFormTime {InSigWin=0,OutOfSigWin}; PacEmcDigi(); PacEm...
30.011111
72
0.737505
brownd1978
633d417cadbfc601e51efbd2fef82a59faf884ec
2,728
cpp
C++
Src/Math/vector3.cpp
bouzi71/STM32LedCube
65a67e310789c21648115bd119ab56d1bc9c703d
[ "Apache-2.0" ]
1
2020-12-20T17:00:58.000Z
2020-12-20T17:00:58.000Z
Src/Math/vector3.cpp
bouzi71/STM32LedCube
65a67e310789c21648115bd119ab56d1bc9c703d
[ "Apache-2.0" ]
null
null
null
Src/Math/vector3.cpp
bouzi71/STM32LedCube
65a67e310789c21648115bd119ab56d1bc9c703d
[ "Apache-2.0" ]
null
null
null
// General #include "vector3.h" // Additional #include "matrix3x3.h" #include "matrix4x4.h" #include <cmath> /** Transformation of a vector by a 3x3 matrix */ Vector3 operator*(const Matrix3& pMatrix, const Vector3& pVector) { Vector3 res; res.x = pMatrix.a1 * pVector.x + pMatrix.a2 * pVector.y + pMatrix.a3 * pV...
19.076923
95
0.626466
bouzi71
6341a2d9edfd9ca8656087b62b67d4027c5a75d4
9,841
cpp
C++
orca_base/src/planner.cpp
pankhurivanjani/orca2
03c0b510a1750371d2080b0497ff3e402234cf94
[ "BSD-3-Clause" ]
null
null
null
orca_base/src/planner.cpp
pankhurivanjani/orca2
03c0b510a1750371d2080b0497ff3e402234cf94
[ "BSD-3-Clause" ]
null
null
null
orca_base/src/planner.cpp
pankhurivanjani/orca2
03c0b510a1750371d2080b0497ff3e402234cf94
[ "BSD-3-Clause" ]
null
null
null
#include "orca_base/planner.hpp" #include <random> using namespace orca; namespace orca_base { constexpr double MAX_POSE_ERROR = 0.6; //===================================================================================== // Utilities //======================================================================...
34.170139
118
0.606747
pankhurivanjani
6344f5114936fb774498a1e1350d60f948ea9976
357
cpp
C++
solutions/1426.find-n-unique-integers-sum-up-to-zero/1426.find-n-unique-integers-sum-up-to-zero.1577586729.cpp
nettee/leetcode
19aa8d54d64cce3679db5878ee0194fad95d8fa1
[ "MIT" ]
1
2021-01-14T06:01:02.000Z
2021-01-14T06:01:02.000Z
solutions/1426.find-n-unique-integers-sum-up-to-zero/1426.find-n-unique-integers-sum-up-to-zero.1577586729.cpp
nettee/leetcode
19aa8d54d64cce3679db5878ee0194fad95d8fa1
[ "MIT" ]
8
2018-03-27T11:47:19.000Z
2018-11-12T06:02:12.000Z
solutions/1426.find-n-unique-integers-sum-up-to-zero/1426.find-n-unique-integers-sum-up-to-zero.1577586729.cpp
nettee/leetcode
19aa8d54d64cce3679db5878ee0194fad95d8fa1
[ "MIT" ]
2
2020-04-30T09:47:01.000Z
2020-12-03T09:34:08.000Z
class Solution { public: vector<int> sumZero(int n) { if (n <= 0) { return vector<int>{0}; } vector<int> res; for (int i = 1; i <= n/2; i++) { res.push_back(i); res.push_back(-i); } if (n % 2 == 1) { res.push_back(0); ...
19.833333
40
0.380952
nettee
634607ba522912fc030e6693f82ecb6a7399b7ee
680
cpp
C++
src/AsyncMqttClient/Packets/Out/PubAck.cpp
sander1988/async-mqtt-client
89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5
[ "MIT" ]
697
2016-05-11T18:57:19.000Z
2022-03-28T11:06:16.000Z
src/AsyncMqttClient/Packets/Out/PubAck.cpp
crosaalive/async-mqtt-client
89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5
[ "MIT" ]
259
2016-05-11T19:07:55.000Z
2022-03-14T12:51:14.000Z
src/AsyncMqttClient/Packets/Out/PubAck.cpp
crosaalive/async-mqtt-client
89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5
[ "MIT" ]
256
2016-05-15T11:05:26.000Z
2022-03-18T13:25:59.000Z
#include "PubAck.hpp" using AsyncMqttClientInternals::PubAckOutPacket; PubAckOutPacket::PubAckOutPacket(PendingAck pendingAck) { _data[0] = pendingAck.packetType; _data[0] = _data[0] << 4; _data[0] = _data[0] | pendingAck.headerFlag; _data[1] = 2; _packetId = pendingAck.packetId; _data[2] = pendingAck.pac...
26.153846
68
0.711765
sander1988
63495b3d4f22716799f03146d219763bfaacc140
18,237
cpp
C++
firmware/electron/firmware/Debugging.cpp
opyh/liftsensor
0f2b8d284ba4f25d464db80840537e41d6603483
[ "MIT" ]
2
2017-04-21T20:27:43.000Z
2018-07-10T08:48:12.000Z
firmware/electron/firmware/Debugging.cpp
opyh/liftsensor
0f2b8d284ba4f25d464db80840537e41d6603483
[ "MIT" ]
null
null
null
firmware/electron/firmware/Debugging.cpp
opyh/liftsensor
0f2b8d284ba4f25d464db80840537e41d6603483
[ "MIT" ]
null
null
null
// MIT License // // Copyright (c) 2016 rickkas7 // // 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...
38.073069
146
0.752317
opyh
6354741684f875d315851742098ad7a92712fb8a
13,382
cpp
C++
src_main/dx9sdk/Utilities/Source/Maya/FxInternal.cpp
raxxor45/ValveSecurity
de512a0b596c0bc6b8dcd1bcf1d5309442757706
[ "MIT" ]
2
2019-09-16T02:42:38.000Z
2020-04-24T19:52:46.000Z
src_main/dx9sdk/Utilities/Source/Maya/FxInternal.cpp
raxxor45/ValveSecurity
de512a0b596c0bc6b8dcd1bcf1d5309442757706
[ "MIT" ]
null
null
null
src_main/dx9sdk/Utilities/Source/Maya/FxInternal.cpp
raxxor45/ValveSecurity
de512a0b596c0bc6b8dcd1bcf1d5309442757706
[ "MIT" ]
3
2018-10-22T11:45:38.000Z
2020-04-24T19:52:47.000Z
#include "pch.h" //this for FxInternal::DecodePlug only struct PathDecodeElement { PathDecodeElement() { IsArray= false; Index= 0; } CStringA Name; MFnAttribute Attribute; bool IsArray; int Index;//maya only supports 1d arrays }; FxInternal::FxInternal() : DXMAnchor() { Effect= NULL; DirectXShader::Act...
23.982079
171
0.696981
raxxor45
63547510c8b2e8bebae89ece37c346c1dea59eb5
5,439
cpp
C++
cpp/encrypter.cpp
TTFH/fsocietyM
84588d338c3e92c31733a6e46d0edb2351411344
[ "Unlicense" ]
10
2018-12-22T00:48:18.000Z
2022-03-17T10:19:30.000Z
cpp/encrypter.cpp
TTFH/fsocietyM
84588d338c3e92c31733a6e46d0edb2351411344
[ "Unlicense" ]
6
2019-05-01T17:02:16.000Z
2020-08-02T02:08:09.000Z
cpp/encrypter.cpp
TTFH/fsocietyM
84588d338c3e92c31733a6e46d0edb2351411344
[ "Unlicense" ]
4
2019-07-03T07:56:52.000Z
2021-09-07T15:06:09.000Z
#include <time.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include "../headers/aes.h" #include "../headers/random.h" #include "../headers/encrypter.h" #include <fileapi.h> bool isEncryptedFile(string file) { char* ext = strrchr(file, '.'); if (ext == NULL) return false; return ...
27.195
88
0.618864
TTFH
635c5b679e2961199b08551f3b81a2a7b94586de
2,947
cc
C++
7.mvp_triangle/main.cc
joone/opengl-wayland
76355d9fbe160c3991577fe206350d5f992a9395
[ "BSD-2-Clause" ]
5
2021-01-25T01:51:58.000Z
2022-03-18T22:50:10.000Z
7.mvp_triangle/main.cc
joone/opengl-wayland
76355d9fbe160c3991577fe206350d5f992a9395
[ "BSD-2-Clause" ]
null
null
null
7.mvp_triangle/main.cc
joone/opengl-wayland
76355d9fbe160c3991577fe206350d5f992a9395
[ "BSD-2-Clause" ]
null
null
null
// // Triangle example // // Shader code came from OpenGL(R) ES 3.0 Programming Guide, 2nd Edition // Simple_VertexShader.c #include "../common/matrix.h" #include "../common/display.h" #include "../common/wayland_platform.h" #include "../common/window.h" // #version 300 es const char* vertexShaderSource = "#versi...
31.351064
79
0.575161
joone
636218f89e7b529774742aa1706b236f87039c62
5,757
hh
C++
dune/fem/oseen/defaulttraits.hh
renemilk/DUNE-FEM-Oseen
2cc2a1a70f81469f13a2330be285960a13f78fdf
[ "BSD-2-Clause" ]
null
null
null
dune/fem/oseen/defaulttraits.hh
renemilk/DUNE-FEM-Oseen
2cc2a1a70f81469f13a2330be285960a13f78fdf
[ "BSD-2-Clause" ]
null
null
null
dune/fem/oseen/defaulttraits.hh
renemilk/DUNE-FEM-Oseen
2cc2a1a70f81469f13a2330be285960a13f78fdf
[ "BSD-2-Clause" ]
null
null
null
#ifndef DUNE_OSEEN_DEFAULTTRAITS_HH #define DUNE_OSEEN_DEFAULTTRAITS_HH #include <dune/fem/oseen/stab_coeff.hh> namespace Dune { template < class DiscreteModelImp > struct StokesTraits { //! discrete model type typedef DiscreteModelImp DiscreteModelType; //! volume quadrature type typedef typename Dis...
37.383117
92
0.800591
renemilk
636303201c283f7eb60f174f23a05bdd0e02ccb2
550
cpp
C++
include/hydro/engine/document/Query.cpp
hydraate/hydro
42037a8278dcfdca68fb5cceaf6988da861f0eff
[ "Apache-2.0" ]
null
null
null
include/hydro/engine/document/Query.cpp
hydraate/hydro
42037a8278dcfdca68fb5cceaf6988da861f0eff
[ "Apache-2.0" ]
null
null
null
include/hydro/engine/document/Query.cpp
hydraate/hydro
42037a8278dcfdca68fb5cceaf6988da861f0eff
[ "Apache-2.0" ]
null
null
null
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
21.153846
82
0.376364
hydraate
6363731b07ff9edbff2dc86c7a22351afb58a731
10,340
hh
C++
src/assert.hh
kwiberg/frz
8661247c70e89a671b2b412c8c4f4c3f329ef98d
[ "Apache-2.0" ]
null
null
null
src/assert.hh
kwiberg/frz
8661247c70e89a671b2b412c8c4f4c3f329ef98d
[ "Apache-2.0" ]
12
2021-02-24T22:48:56.000Z
2021-03-21T12:33:05.000Z
src/assert.hh
kwiberg/frz
8661247c70e89a671b2b412c8c4f4c3f329ef98d
[ "Apache-2.0" ]
null
null
null
/* Copyright 2021 Karl Wiberg Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
43.083333
80
0.518956
kwiberg
6363ce66c2e655f7fc2f8bfc7cbfe75bfc6823cc
505
cpp
C++
Baekjoon/11586.cpp
Twinparadox/AlgorithmProblem
0190d17555306600cfd439ad5d02a77e663c9a4e
[ "MIT" ]
null
null
null
Baekjoon/11586.cpp
Twinparadox/AlgorithmProblem
0190d17555306600cfd439ad5d02a77e663c9a4e
[ "MIT" ]
null
null
null
Baekjoon/11586.cpp
Twinparadox/AlgorithmProblem
0190d17555306600cfd439ad5d02a77e663c9a4e
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main(void) { int len, dir; string* arr; cin >> len; arr = new string[len]; for (int i = 0; i < len; i++) cin >> arr[i]; cin >> dir; if (dir == 1) { for (int i = 0; i < len; i++) cout << arr[i] << '\n'; } else if (dir == 2) { for (int i =...
15.30303
37
0.449505
Twinparadox
6365023689297229dd041f99da138214bda756b7
44,444
cc
C++
library/src/network/httpd/BP-HTTPdRequestHandlers.cc
jason-medeiros/blockparty
4b1aabe66b13ceac70d6e42feb796909f067df9a
[ "MIT" ]
1
2018-05-31T11:51:43.000Z
2018-05-31T11:51:43.000Z
library/src/network/httpd/BP-HTTPdRequestHandlers.cc
jason-medeiros/blockparty
4b1aabe66b13ceac70d6e42feb796909f067df9a
[ "MIT" ]
null
null
null
library/src/network/httpd/BP-HTTPdRequestHandlers.cc
jason-medeiros/blockparty
4b1aabe66b13ceac70d6e42feb796909f067df9a
[ "MIT" ]
null
null
null
/* * BP-HTTPdRequestHandlers.cc * * Created on: Jul 17, 2015 * Author: root */ #include "../../../include/BP-Main.h" // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%% Request Handlers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% //...
29.948787
183
0.652034
jason-medeiros
636d3ab4eab6fb30cd92e4c40431ccd5e90c6ee7
714
hpp
C++
include/Boots/Utils/algorithm.hpp
Plaristote/Boots
ba6bd74fd06c5b26f1e159c6c861d46992db1145
[ "BSD-3-Clause" ]
null
null
null
include/Boots/Utils/algorithm.hpp
Plaristote/Boots
ba6bd74fd06c5b26f1e159c6c861d46992db1145
[ "BSD-3-Clause" ]
null
null
null
include/Boots/Utils/algorithm.hpp
Plaristote/Boots
ba6bd74fd06c5b26f1e159c6c861d46992db1145
[ "BSD-3-Clause" ]
null
null
null
#ifndef BOOTS_ALGORITHM_HPP # define BOOTS_ALGORITHM_HPP namespace Algorithm { template<typename ARRAY, typename COMP_TYPE> int sorted_find(ARRAY& array, COMP_TYPE value, int index_first = 0, int index_last = -1) { int middle; if (index_last == -1) index_last = array.size(); middle = index_...
25.5
90
0.641457
Plaristote
636e9243514331fd227292026854ea7e4d3244fa
434
cpp
C++
ch09/ex9_31_1.cpp
yunongzhou/cppprimer
331cdc69f9063fca3466fda994a06de12387d0b3
[ "MIT" ]
2
2018-08-22T15:04:17.000Z
2018-08-26T16:05:59.000Z
ch09/ex9_31_1.cpp
yunongzhou/cppprimer
331cdc69f9063fca3466fda994a06de12387d0b3
[ "MIT" ]
null
null
null
ch09/ex9_31_1.cpp
yunongzhou/cppprimer
331cdc69f9063fca3466fda994a06de12387d0b3
[ "MIT" ]
null
null
null
#include<list> #include<iostream> using std::list; using std::cout; using std::endl; int main(){ list<int> intLst = {0, 1, 2, 3, 4, 5,6,7,8, 9}; auto iter = intLst.begin(); while(iter != intLst.end()){ if(*iter % 2){ iter = intLst.insert(iter, *iter); advance(iter, 2); } else{ iter...
16.692308
49
0.536866
yunongzhou
636f8da185f828c4020875e980033550be91d73f
856
cpp
C++
3dEngine/src/scene/ui/animation/UIAnimationFade.cpp
petitg1987/UrchinEngine
32d4b62b1ab7e2aa781c99de11331e3738078b0c
[ "MIT" ]
24
2015-10-05T00:13:57.000Z
2020-05-06T20:14:06.000Z
3dEngine/src/scene/ui/animation/UIAnimationFade.cpp
petitg1987/UrchinEngine
32d4b62b1ab7e2aa781c99de11331e3738078b0c
[ "MIT" ]
1
2019-11-01T08:00:55.000Z
2019-11-01T08:00:55.000Z
3dEngine/src/scene/ui/animation/UIAnimationFade.cpp
petitg1987/UrchinEngine
32d4b62b1ab7e2aa781c99de11331e3738078b0c
[ "MIT" ]
10
2015-11-25T07:33:13.000Z
2020-03-02T08:21:10.000Z
#include <scene/ui/animation/UIAnimationFade.h> namespace urchin { UIAnimationFade::UIAnimationFade(Widget& widget, float endFadeValue) : AbstractUIWidgetAnimation(widget), startFadeValue(1.0f), endFadeValue(endFadeValue), linearProgression(0.0f) { } void ...
29.517241
100
0.64486
petitg1987
63704121b38f62f2f2695d2627cf52236fa35403
5,013
cpp
C++
converter/net.cpp
soarqin/vita-mcheat
c4240e84bd19069567ca9a1f63178a76e9b4452f
[ "MIT" ]
20
2018-05-23T19:52:18.000Z
2021-05-11T16:11:41.000Z
converter/net.cpp
soarqin/vita-rxcheat
c4240e84bd19069567ca9a1f63178a76e9b4452f
[ "MIT" ]
9
2018-05-13T16:53:42.000Z
2019-01-13T09:06:06.000Z
converter/net.cpp
soarqin/vita-rxcheat
c4240e84bd19069567ca9a1f63178a76e9b4452f
[ "MIT" ]
1
2018-05-04T11:39:56.000Z
2018-05-04T11:39:56.000Z
#include "net.h" #include "uv.h" #include "ikcp.h" #include <list> #ifndef _WIN32 #include <ctime> uint32_t GetTickCount() { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (uint32_t)(ts.tv_sec * 1000 + ts.tv_nsec / 1000000); } #endif struct ClientContext { Client *client = nullptr...
30.198795
103
0.528027
soarqin
6372fe8fdc68eeb47e8479d9dd5c451b96bc6ae4
398
cpp
C++
Rocket/PlatformRender/OpenGL/GERender/OpenGLInstanceBuffer.cpp
rocketman123456/RocketGE
dd8b6de286ce5d2abebc55454fbdf67968558535
[ "Apache-2.0" ]
2
2020-12-06T23:16:46.000Z
2020-12-27T13:33:26.000Z
Rocket/PlatformRender/OpenGL/GERender/OpenGLInstanceBuffer.cpp
rocketman123456/RocketGE
dd8b6de286ce5d2abebc55454fbdf67968558535
[ "Apache-2.0" ]
null
null
null
Rocket/PlatformRender/OpenGL/GERender/OpenGLInstanceBuffer.cpp
rocketman123456/RocketGE
dd8b6de286ce5d2abebc55454fbdf67968558535
[ "Apache-2.0" ]
null
null
null
#include "GERender/OpenGLInstanceBuffer.h" namespace Rocket { template <typename T> OpenGLInstanceBuffer<T>::OpenGLInstanceBuffer(T *data, uint32_t count) : m_Count(count) { } template <typename T> void OpenGLInstanceBuffer<T>::Bind() const { } template <typename T> vo...
18.090909
74
0.648241
rocketman123456
637738505c05574bc7632a06bdf4b1a24fd6f68d
3,982
cpp
C++
src/geometry.cpp
rubenvanstaden/Magix
0b45955d98a57b15b021e3d2e99698972f874a2d
[ "CECILL-B" ]
null
null
null
src/geometry.cpp
rubenvanstaden/Magix
0b45955d98a57b15b021e3d2e99698972f874a2d
[ "CECILL-B" ]
null
null
null
src/geometry.cpp
rubenvanstaden/Magix
0b45955d98a57b15b021e3d2e99698972f874a2d
[ "CECILL-B" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <float.h> #include <iostream> #include <boost/filesystem.hpp> #include "boost/progress.hpp" #include <iostream> #include <stdexcept> #include "clipper.hpp" #include "sys.h" #include <unistd.h> using namespace ClipperLib; namespace fs = boost::filesy...
30.630769
124
0.53767
rubenvanstaden
6381c9f04f5e996b96906e2a214f41c673eeee7e
1,576
cpp
C++
codechef/nov 10/june LTIME97C/unpleasant ones.cpp
punnapavankumar9/coding-platforms
264803330f5b3857160ec809c0d79cba1aa479a3
[ "MIT" ]
null
null
null
codechef/nov 10/june LTIME97C/unpleasant ones.cpp
punnapavankumar9/coding-platforms
264803330f5b3857160ec809c0d79cba1aa479a3
[ "MIT" ]
null
null
null
codechef/nov 10/june LTIME97C/unpleasant ones.cpp
punnapavankumar9/coding-platforms
264803330f5b3857160ec809c0d79cba1aa479a3
[ "MIT" ]
null
null
null
#include <iostream> #include <bits/stdc++.h> #define endl "\n" #define setbits(x) __builtin_popcount(x) typedef long long ll; typedef unsigned long long ull; using namespace std; int score(int n){ int count = 0, mx = 0; while(n >0){ if(n & 1){ count++; }else{ count = 0; ...
21.297297
58
0.369289
punnapavankumar9
638260cda128c701efa74ee43012a772dde65b4e
6,389
hpp
C++
cpp-units/include/cpp-units/types/physicalQuantity.hpp
crdrisko/drychem
15de97f277a836fb0bfb34ac6489fbc037b5151f
[ "MIT" ]
1
2020-09-26T12:38:54.000Z
2020-09-26T12:38:54.000Z
cpp-units/include/cpp-units/types/physicalQuantity.hpp
crdrisko/cpp-units
15de97f277a836fb0bfb34ac6489fbc037b5151f
[ "MIT" ]
9
2020-10-05T12:53:12.000Z
2020-11-02T19:28:01.000Z
cpp-units/include/cpp-units/types/physicalQuantity.hpp
crdrisko/cpp-units
15de97f277a836fb0bfb34ac6489fbc037b5151f
[ "MIT" ]
1
2020-12-04T13:34:41.000Z
2020-12-04T13:34:41.000Z
// Copyright (c) 2020-2021 Cody R. Drisko. All rights reserved. // Licensed under the MIT License. See the LICENSE file in the project root for more information. // // Name: physicalQuantity.hpp // Author: crdrisko // Date: 03/03/2020-18:45:26 // Description: Defines the PhysicalQuantity class template with SI base uni...
38.487952
121
0.641571
crdrisko
63827e4706f09b344c2e934b4f951d41653a25b8
3,585
hpp
C++
rviz_default_plugins/test/rviz_default_plugins/publishers/map_publisher.hpp
EricCousineau-TRI/rviz
3344a8ed63b134549eeb82682f0dee76f53b7565
[ "BSD-3-Clause-Clear" ]
null
null
null
rviz_default_plugins/test/rviz_default_plugins/publishers/map_publisher.hpp
EricCousineau-TRI/rviz
3344a8ed63b134549eeb82682f0dee76f53b7565
[ "BSD-3-Clause-Clear" ]
null
null
null
rviz_default_plugins/test/rviz_default_plugins/publishers/map_publisher.hpp
EricCousineau-TRI/rviz
3344a8ed63b134549eeb82682f0dee76f53b7565
[ "BSD-3-Clause-Clear" ]
null
null
null
/* * Copyright (c) 2018, Bosch Software Innovations GmbH. * 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 * n...
35.147059
91
0.728591
EricCousineau-TRI
b0cc9274e69c3f5e49f0f0ba7bce47d2c23a127c
2,404
cpp
C++
server/modules/DirListing/DirListing.cpp
hotgloupi/zhttpd
0437ac2e34dde89abab26665df9cbee1777f1d44
[ "BSD-3-Clause" ]
2
2015-01-29T17:23:23.000Z
2015-09-21T17:45:22.000Z
server/modules/DirListing/DirListing.cpp
hotgloupi/zhttpd
0437ac2e34dde89abab26665df9cbee1777f1d44
[ "BSD-3-Clause" ]
null
null
null
server/modules/DirListing/DirListing.cpp
hotgloupi/zhttpd
0437ac2e34dde89abab26665df9cbee1777f1d44
[ "BSD-3-Clause" ]
null
null
null
#include "api/constants.hpp" #include "api/IBuffer.hpp" #include "api/IRequest.hpp" #include "api/IModuleManager.hpp" #include "api/IModule.hpp" #include "utils/Path.hpp" #include "utils/Logger.hpp" #include "utils/macros.hpp" #include "config.hpp" #include "DirListing.hpp" using namespace zhttpd; using namespace zh...
33.388889
118
0.481281
hotgloupi
b0d041fa41d037a303e0efbbaafce542213fd35f
632
cpp
C++
src/util/Point2D.cpp
manpreet-singh/Atlas
04cfbae52900a01ce33b49304c38455304f2c222
[ "MIT" ]
1
2020-05-04T09:36:39.000Z
2020-05-04T09:36:39.000Z
src/util/Point2D.cpp
manpreet-singh/Atlas
04cfbae52900a01ce33b49304c38455304f2c222
[ "MIT" ]
null
null
null
src/util/Point2D.cpp
manpreet-singh/Atlas
04cfbae52900a01ce33b49304c38455304f2c222
[ "MIT" ]
null
null
null
#include "util/Point2D.h" using namespace util; /** * Point Class Constructor * @param x X coordinate of cartesian point * @param y Y coordinate of cartesian point * @param slope Intended slope at this current point */ Point2D::Point2D(double x, double y, double slope) : mX(x), mY(y), mSlope(slope) {} /** * Poi...
16.631579
80
0.658228
manpreet-singh
b0d5edaf1d9e7e6cffc443f2098028f88a28a3b9
299
cpp
C++
src/user.cpp
lou000/IO_BugTracker
e4f9c1ba4eaa6eea185e1578facbc9e47ccc36ee
[ "MIT" ]
null
null
null
src/user.cpp
lou000/IO_BugTracker
e4f9c1ba4eaa6eea185e1578facbc9e47ccc36ee
[ "MIT" ]
null
null
null
src/user.cpp
lou000/IO_BugTracker
e4f9c1ba4eaa6eea185e1578facbc9e47ccc36ee
[ "MIT" ]
null
null
null
#include "user.h" User::User(int id, const QString &login, const QString &name, const QString &surname, const UserPosition &position, UserPermissionsFlags permisions) : m_id(id), m_login(login), m_name(name), m_surname(surname), m_position(position), m_permisions(permisions) { }
33.222222
115
0.722408
lou000
b0d984371c6076e3d87c55b937df357d7fead826
1,018
hpp
C++
sources/Block.hpp
PawelWorwa/SFMLris
525c29eefee2ec68512d3d320fb0e9aae95b9549
[ "MIT" ]
null
null
null
sources/Block.hpp
PawelWorwa/SFMLris
525c29eefee2ec68512d3d320fb0e9aae95b9549
[ "MIT" ]
4
2018-01-10T19:17:00.000Z
2018-01-10T20:21:27.000Z
sources/Block.hpp
PawelWorwa/SFMLris
525c29eefee2ec68512d3d320fb0e9aae95b9549
[ "MIT" ]
null
null
null
#ifndef SFMLRIS_BLOCK_HPP #define SFMLRIS_BLOCK_HPP #include <vector> #include "BlockType.hpp" #include "BlockPiece.hpp" // https://gamedev.stackexchange.com/questions/17974/how-to-rotate-blocks-in-tetris class Block { public: Block(); explicit Block(BlockType type); BlockType getBlockT...
25.45
83
0.624754
PawelWorwa
b0e06f6e9fa5d0ed60a4405ab3c1d94921280612
3,573
cpp
C++
GateServer/LClient.cpp
MBeanwenshengming/linuxgameserver
f03bf6ba0d625609c9654ddf0dc821386337e7dc
[ "MIT" ]
5
2018-04-02T07:16:20.000Z
2021-08-01T05:25:37.000Z
GateServer/LClient.cpp
MBeanwenshengming/linuxgameserver
f03bf6ba0d625609c9654ddf0dc821386337e7dc
[ "MIT" ]
null
null
null
GateServer/LClient.cpp
MBeanwenshengming/linuxgameserver
f03bf6ba0d625609c9654ddf0dc821386337e7dc
[ "MIT" ]
2
2015-08-21T07:31:41.000Z
2018-05-10T12:36:32.000Z
/* The MIT License (MIT) Copyright (c) <2010-2020> <wenshengming> 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...
24.8125
77
0.757067
MBeanwenshengming
b0e38879be1feb23002c0026952afaec49ff7e08
16,008
cpp
C++
ToolkitNF/Widgets/FileDialogBoxWidget.cpp
SlyVTT/Widget_NF_Nspire_and_PC
cdf921cc931eaa99ed765d1640253e060bc259cb
[ "MIT" ]
3
2021-08-06T19:16:58.000Z
2021-08-07T10:32:15.000Z
ToolkitNF/Widgets/FileDialogBoxWidget.cpp
SlyVTT/Widget_NF_Nspire_and_PC
cdf921cc931eaa99ed765d1640253e060bc259cb
[ "MIT" ]
null
null
null
ToolkitNF/Widgets/FileDialogBoxWidget.cpp
SlyVTT/Widget_NF_Nspire_and_PC
cdf921cc931eaa99ed765d1640253e060bc259cb
[ "MIT" ]
null
null
null
#include "FileDialogBoxWidget.hpp" #include "../Managers/KeyManager.hpp" #include "../Managers/MouseManager.hpp" #include "../Renderers/ScreenRenderer.hpp" #include "../Engines/ColorEngine.hpp" #include "../Engines/FontEngine.hpp" #include <stdio.h> #include <dirent.h> #include <string.h> std::string s...
35.337748
224
0.47595
SlyVTT
b0ee87030db89e4bc7f3def729e07a763006d07d
659
hpp
C++
src/monte/monte_Generator.hpp
psettle/madmax
74870137ae8c7c8664c5e128c1ecfedc7532041b
[ "MIT" ]
null
null
null
src/monte/monte_Generator.hpp
psettle/madmax
74870137ae8c7c8664c5e128c1ecfedc7532041b
[ "MIT" ]
null
null
null
src/monte/monte_Generator.hpp
psettle/madmax
74870137ae8c7c8664c5e128c1ecfedc7532041b
[ "MIT" ]
null
null
null
/** * Generate move sequences */ #pragma once #include <stdlib.h> #include "engine_Move.hpp" namespace monte { class Generator { public: Generator(double skill_fraction, double wait_fraction) : skill_fraction_(skill_fraction), wait_fraction_(wait_fraction) {} void GetSequence(Vector cons...
21.258065
81
0.666161
psettle
b0eeffae0480fff0272f8762a9d35eef21ce7861
911
cpp
C++
codelib/cipher.cpp
TissueRoll/admu-progvar-notebook
efd1c48872d40aeabe2b03af7b986bb831c062b1
[ "MIT" ]
null
null
null
codelib/cipher.cpp
TissueRoll/admu-progvar-notebook
efd1c48872d40aeabe2b03af7b986bb831c062b1
[ "MIT" ]
null
null
null
codelib/cipher.cpp
TissueRoll/admu-progvar-notebook
efd1c48872d40aeabe2b03af7b986bb831c062b1
[ "MIT" ]
null
null
null
#include <iostream> #include <string> char rot(char c, int k) { return (c - 'a' + k) % 26 + 'a'; } std::string cipher_a(std::string s, int key) { for (char &c : s) if ('a' <= c and c <= 'z') c = rot(c, key); return s; } char xor_c(char c, int key) { //std::cout<<c<<" "<<(c - 'a')<<" "<<((c - 'a') ^...
24.621622
99
0.518112
TissueRoll
b0f12ca22f0806f2afeccffe523f5b569a94ec99
451
cpp
C++
02. Bit Manipulation/05 One Odd Occurring/05 one odd occurring.cpp
VivekYadav105/Data-Structures-and-Algorithms
7287912da8068c9124e0bb89c93c4d52aa48c51f
[ "MIT" ]
190
2021-02-10T17:01:01.000Z
2022-03-20T00:21:43.000Z
02. Bit Manipulation/05 One Odd Occurring/05 one odd occurring.cpp
VivekYadav105/Data-Structures-and-Algorithms
7287912da8068c9124e0bb89c93c4d52aa48c51f
[ "MIT" ]
null
null
null
02. Bit Manipulation/05 One Odd Occurring/05 one odd occurring.cpp
VivekYadav105/Data-Structures-and-Algorithms
7287912da8068c9124e0bb89c93c4d52aa48c51f
[ "MIT" ]
27
2021-03-26T11:35:15.000Z
2022-03-06T07:34:54.000Z
#include<bits/stdc++.h> using namespace std; //find the element which occurs only once //trick 1 : xor of two same numbers gives zero //trick 2 : xor of zero with any number returns the number int oneOdd(int a[], int n)//time comp. O(n) { int X = 0; for (int i = 0; i < n; i++) { X = X ^ a[i]; } return X; } ...
16.703704
58
0.578714
VivekYadav105
b0f1e7c1ef0209d8e34ce4b198441511f472d917
13,115
cpp
C++
src/Misc/main.cpp
Scientific-Computing-BPHC/Meshfree_Adjoint_cpp
8afe99007b08e6a21563c44f09e972a260fb5b94
[ "MIT" ]
null
null
null
src/Misc/main.cpp
Scientific-Computing-BPHC/Meshfree_Adjoint_cpp
8afe99007b08e6a21563c44f09e972a260fb5b94
[ "MIT" ]
null
null
null
src/Misc/main.cpp
Scientific-Computing-BPHC/Meshfree_Adjoint_cpp
8afe99007b08e6a21563c44f09e972a260fb5b94
[ "MIT" ]
null
null
null
// Note, from test.cpp we have the solver to work without segfault issues for upto 8000 such Point Structs // And, here we don't have segfault upto 6000 points // So continue with the solver for 4k points instead of 40k points. Create a 4k version and run the solver // Match the Julia and C++m outputs for 4k points now...
24.020147
187
0.638277
Scientific-Computing-BPHC
b0f5bba2905b3d386f3fce1c7fbbf4aa9ef7f454
6,682
cxx
C++
IO/Cesium3DTiles/vtkCesium3DTilesWriter.cxx
QuanPengWang/VTK
6a2b5e8d4e6f5b2184ca7750b624af076b61dd1a
[ "BSD-3-Clause" ]
1
2019-05-31T14:00:53.000Z
2019-05-31T14:00:53.000Z
IO/Cesium3DTiles/vtkCesium3DTilesWriter.cxx
QuanPengWang/VTK
6a2b5e8d4e6f5b2184ca7750b624af076b61dd1a
[ "BSD-3-Clause" ]
null
null
null
IO/Cesium3DTiles/vtkCesium3DTilesWriter.cxx
QuanPengWang/VTK
6a2b5e8d4e6f5b2184ca7750b624af076b61dd1a
[ "BSD-3-Clause" ]
null
null
null
/*========================================================================= Program: Visualization Toolkit Module: vtkCesium3DTilesWriter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This so...
33.918782
99
0.63933
QuanPengWang
b0fac026320c3ea967d81a9500f70ac2a9e732c3
1,434
cc
C++
test/zbalance.cc
Thomas-Ulrich/core
1c7bc7ff994c3570ab22b96d37be0c4c993e5940
[ "BSD-3-Clause" ]
138
2015-01-05T15:50:20.000Z
2022-02-25T01:09:58.000Z
test/zbalance.cc
Thomas-Ulrich/core
1c7bc7ff994c3570ab22b96d37be0c4c993e5940
[ "BSD-3-Clause" ]
337
2015-08-07T18:24:58.000Z
2022-03-31T14:39:03.000Z
test/zbalance.cc
Thomas-Ulrich/core
1c7bc7ff994c3570ab22b96d37be0c4c993e5940
[ "BSD-3-Clause" ]
70
2015-01-17T00:58:41.000Z
2022-02-13T04:58:20.000Z
#include <apf.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apfZoltan.h> #include <gmi_null.h> #include <gmi_mesh.h> #include <parma.h> #include <PCU.h> #include <lionPrint.h> #include <pcu_util.h> #include <cstdlib> // exit and EXIT_FAILURE #ifdef HAVE_SIMMETRIX #include <gmi_sim.h> #include <SimUtil.h> #incl...
23.129032
80
0.687587
Thomas-Ulrich
b0fe1c0cdaab106469b8c5cd52618b9bb7d24467
1,434
cpp
C++
main.cpp
romixlab/pathplanner
5307f66dcfbc407c170fce0ffbdca00b5c3f1f10
[ "MIT" ]
null
null
null
main.cpp
romixlab/pathplanner
5307f66dcfbc407c170fce0ffbdca00b5c3f1f10
[ "MIT" ]
null
null
null
main.cpp
romixlab/pathplanner
5307f66dcfbc407c170fce0ffbdca00b5c3f1f10
[ "MIT" ]
null
null
null
#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QSettings> #include <QQuickStyle> #include <QQmlContext> #include "geopath.h" #include "linearpath.h" int main(int argc, char *argv[]) { QGuiApplication::setApplicationName("PathPlanner"); QGuiApplication::setOrganiza...
29.265306
79
0.677824
romixlab
7c00317dd1546fd5bb7d5078fc21296d986ea191
2,074
cpp
C++
CF R418/B.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
CF R418/B.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
CF R418/B.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for(ll i=a;i<b;i++) #define re(i,b) for(ll i=0;i<b;i++) #define repr(i,n) for(ll i=n-1;i>=0;i--) #define ll long long #define ld long double #define llu long long unsigned #define vll std::vector<ll> #define m...
19.383178
88
0.402122
parthlathiya
7c0bf84f97736616d0909385f8ee9a012d30dd08
3,719
hpp
C++
include/generics/aliveentity.hpp
murilobnt/vulnus
e350f227434306d5d3a7f4d9b22a5eb8d926b81a
[ "MIT" ]
13
2017-05-23T05:38:07.000Z
2022-03-26T16:08:47.000Z
include/generics/aliveentity.hpp
Murilo-Bento/Gnjk
e350f227434306d5d3a7f4d9b22a5eb8d926b81a
[ "MIT" ]
null
null
null
include/generics/aliveentity.hpp
Murilo-Bento/Gnjk
e350f227434306d5d3a7f4d9b22a5eb8d926b81a
[ "MIT" ]
1
2017-08-12T22:25:17.000Z
2017-08-12T22:25:17.000Z
#ifndef _ALIVEENTITY_HPP_ #define _ALIVEENTITY_HPP_ // # External #include <string> #include <SFML/Graphics.hpp> #include <iostream> // # Internal #include "structures/dynamicgrid.hpp" #include "structures/inttostring.hpp" #include "entities/clock/generictimehandler.hpp" #include "generics/spritedentity.hpp" #include...
21.373563
221
0.728153
murilobnt
7c10282b268505741b8a435ab27df08b634c52b8
588
cpp
C++
UVA01121.cpp
MaSteve/UVA-problems
3a240fcca02e24a9c850b7e86062f8581df6f95f
[ "MIT" ]
17
2015-12-08T18:50:03.000Z
2022-03-16T01:23:20.000Z
UVA01121.cpp
MaSteve/UVA-problems
3a240fcca02e24a9c850b7e86062f8581df6f95f
[ "MIT" ]
null
null
null
UVA01121.cpp
MaSteve/UVA-problems
3a240fcca02e24a9c850b7e86062f8581df6f95f
[ "MIT" ]
6
2017-04-04T18:16:23.000Z
2020-06-28T11:07:22.000Z
#include <iostream> #include <queue> using namespace std; int main() { int N, S; while (cin >> N >> S) { queue<int> q; int sum = 0, len = N + 2; for (int i = 0; i < N; i++) { int val; cin >> val; sum += val; q.push(val); while ...
21.777778
47
0.348639
MaSteve
7c1502e934a7bd42405b50b959a2d2d97d8dd5ab
5,884
hpp
C++
src/share/cf_utility.hpp
trueneu/Karabiner-Elements
1c6977e350b586562ac7dad46c830745cf71bb35
[ "Unlicense" ]
null
null
null
src/share/cf_utility.hpp
trueneu/Karabiner-Elements
1c6977e350b586562ac7dad46c830745cf71bb35
[ "Unlicense" ]
null
null
null
src/share/cf_utility.hpp
trueneu/Karabiner-Elements
1c6977e350b586562ac7dad46c830745cf71bb35
[ "Unlicense" ]
null
null
null
#pragma once #include "boost_defs.hpp" #include <CoreFoundation/CoreFoundation.h> #include <boost/optional.hpp> #include <mutex> #include <string> #include <thread> namespace krbn { class cf_utility final { public: template <typename T> class deleter final { public: using pointer = T; void operator()(T...
26.745455
107
0.551666
trueneu
7c1c561dce6664d0f453045c3168ff04507944f9
747
cpp
C++
Remove loop in Linked List.cpp
ramamutalik/DSA-450-QNA
ff6dad598f11400e91720878addfb489dff4adaa
[ "MIT" ]
null
null
null
Remove loop in Linked List.cpp
ramamutalik/DSA-450-QNA
ff6dad598f11400e91720878addfb489dff4adaa
[ "MIT" ]
null
null
null
Remove loop in Linked List.cpp
ramamutalik/DSA-450-QNA
ff6dad598f11400e91720878addfb489dff4adaa
[ "MIT" ]
null
null
null
void removeLoop(Node* head) { // code here // just remove the loop without losing any nodes Node* low=head; Node* high=head; while(low!=NULL&&high!=NULL&&high->next!=NULL){ high=high->next->next; low=low->next; if(low==high){ ...
24.096774
56
0.410977
ramamutalik
7c1dc9d375365a9fb2497cc28b402ff095e64156
105,035
hpp
C++
H3API/lib/h3api/H3Structures/H3Structures.hpp
X-Stuff/H3Plugins
325e7e518ff82b0345c6b55d00a5f7896b372527
[ "MIT" ]
null
null
null
H3API/lib/h3api/H3Structures/H3Structures.hpp
X-Stuff/H3Plugins
325e7e518ff82b0345c6b55d00a5f7896b372527
[ "MIT" ]
null
null
null
H3API/lib/h3api/H3Structures/H3Structures.hpp
X-Stuff/H3Plugins
325e7e518ff82b0345c6b55d00a5f7896b372527
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////////////////////// // // // Created by RoseKavalier: // // rosekavalierhc@gmail.com // // Created: 20...
24.990483
158
0.618546
X-Stuff
7c20bf014335ca54d23f752628b8e524852c556b
73,589
cpp
C++
tests/tests/smt_operation_time_tests.cpp
warrenween/steem
acf2af52e0e36502d586fc780ffbbf56316d8838
[ "MIT" ]
1
2020-01-15T09:18:19.000Z
2020-01-15T09:18:19.000Z
tests/tests/smt_operation_time_tests.cpp
warrenween/steem
acf2af52e0e36502d586fc780ffbbf56316d8838
[ "MIT" ]
null
null
null
tests/tests/smt_operation_time_tests.cpp
warrenween/steem
acf2af52e0e36502d586fc780ffbbf56316d8838
[ "MIT" ]
null
null
null
#if defined IS_TEST_NET #include <boost/test/unit_test.hpp> #include <steem/chain/steem_fwd.hpp> #include <steem/protocol/exceptions.hpp> #include <steem/protocol/hardfork.hpp> #include <steem/protocol/smt_util.hpp> #include <steem/chain/block_summary_object.hpp> #include <steem/chain/database.hpp> #include <steem...
44.898719
180
0.685605
warrenween
7c2578e03438b92d3f544517ff966bde7333b792
19,360
cpp
C++
help.cpp
lordgnu/wxPHP
368a75c893039e5eaa31bc1ee38e341991039f3f
[ "PHP-3.01" ]
1
2019-02-07T23:18:31.000Z
2019-02-07T23:18:31.000Z
help.cpp
lordgnu/wxPHP
368a75c893039e5eaa31bc1ee38e341991039f3f
[ "PHP-3.01" ]
null
null
null
help.cpp
lordgnu/wxPHP
368a75c893039e5eaa31bc1ee38e341991039f3f
[ "PHP-3.01" ]
null
null
null
/* * @author Mário Soares * @contributors Jefferson González * * @license * This file is part of wxPHP check the LICENSE file for information. * * @note * This file was auto-generated by the wxPHP source maker */ #include "php_wxwidgets.h" #include "appmanagement.h" #include "cfg.h" #include "bookctrl.h" #i...
22.857143
150
0.68311
lordgnu
7c27677bde4a78e8e6511d93aa320d6e2f104bbd
6,944
cpp
C++
convert2binary.cpp
huanzhang12/passcode-fix
823da5538951ef8f52497de5499aeb2494ceea1c
[ "BSD-3-Clause" ]
3
2016-10-02T07:12:28.000Z
2020-10-04T22:00:53.000Z
convert2binary.cpp
huanzhang12/passcode-fix
823da5538951ef8f52497de5499aeb2494ceea1c
[ "BSD-3-Clause" ]
null
null
null
convert2binary.cpp
huanzhang12/passcode-fix
823da5538951ef8f52497de5499aeb2494ceea1c
[ "BSD-3-Clause" ]
4
2017-01-12T21:16:00.000Z
2020-10-04T22:01:05.000Z
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <vector> #include <set> #include <errno.h> #include <assert.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include "block.h" #include "linear.h" #include "zlib/zlib.h" #define Malloc(type,n) (type *)malloc((n)*size...
21.974684
105
0.628168
huanzhang12
7c2770ee726c4901b7287ec15c6172b6e11f9b37
276
cpp
C++
src/Data/Container.cpp
InDieTasten/IDT.EXP
6d6229d5638297ba061b188edbbe394df33d70b0
[ "MIT" ]
null
null
null
src/Data/Container.cpp
InDieTasten/IDT.EXP
6d6229d5638297ba061b188edbbe394df33d70b0
[ "MIT" ]
56
2017-03-30T14:45:29.000Z
2017-03-30T14:46:29.000Z
src/Data/Container.cpp
InDieTasten-Legacy/--EXP-old-
6d6229d5638297ba061b188edbbe394df33d70b0
[ "MIT" ]
1
2015-05-08T19:23:51.000Z
2015-05-08T19:23:51.000Z
#include <Data\Container.hpp> Container::Container() : Attachable(), Taggable() { EXP::log("[Info]Container has been constructed: " + utils::tostring(this)); } Container::~Container() { EXP::log("[Info]Container has been destrcuted: " + utils::tostring(this)); }
25.090909
77
0.666667
InDieTasten
7c2c004b763b791b466a7c3062947b48e9dd31c0
1,685
cpp
C++
src/epcq.cpp
uis246/openFPGALoader
312b8d25659857301df17b4b4daa55a1fe3f23cb
[ "Apache-2.0" ]
505
2019-12-09T10:47:15.000Z
2022-03-31T09:04:10.000Z
src/epcq.cpp
uis246/openFPGALoader
312b8d25659857301df17b4b4daa55a1fe3f23cb
[ "Apache-2.0" ]
203
2019-12-06T10:57:48.000Z
2022-03-31T17:57:08.000Z
src/epcq.cpp
uis246/openFPGALoader
312b8d25659857301df17b4b4daa55a1fe3f23cb
[ "Apache-2.0" ]
106
2019-12-06T12:12:56.000Z
2022-03-31T10:38:11.000Z
// SPDX-License-Identifier: Apache-2.0 /* * Copyright (C) 2019 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> */ #include <stdio.h> #include <stdlib.h> #include <strings.h> #include "epcq.hpp" #define RD_STATUS_REG 0x05 # define STATUS_REG_WEL (0x01 << 1) # define STATUS_REG_WIP (0x01 <...
23.732394
82
0.67003
uis246
7c2cab8f9aab16a245807db4b6c82012a932fa8b
3,097
cpp
C++
example/multi_type_vector_element_block1.cpp
kohei101/multidimalgorithm
c479747d204b8953933fdbec9a88650a75b822b7
[ "MIT" ]
3
2018-10-08T16:30:06.000Z
2018-10-24T05:05:11.000Z
example/multi_type_vector_element_block1.cpp
kohei101/mdds
c479747d204b8953933fdbec9a88650a75b822b7
[ "MIT" ]
null
null
null
example/multi_type_vector_element_block1.cpp
kohei101/mdds
c479747d204b8953933fdbec9a88650a75b822b7
[ "MIT" ]
null
null
null
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * Copyright (c) 2020 Kohei Yoshida * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated document...
33.663043
79
0.646755
kohei101
7c2e1196a5a9c8d9e087b063fd37478f84f9a942
2,904
cpp
C++
ComputingSystems1/assignment4.cpp
benefacto/schoolwork
46d13a4c55fcae0ac4d9059ea4de1e22792efeed
[ "MIT" ]
null
null
null
ComputingSystems1/assignment4.cpp
benefacto/schoolwork
46d13a4c55fcae0ac4d9059ea4de1e22792efeed
[ "MIT" ]
null
null
null
ComputingSystems1/assignment4.cpp
benefacto/schoolwork
46d13a4c55fcae0ac4d9059ea4de1e22792efeed
[ "MIT" ]
null
null
null
#include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <iostream> #include <string> using namespace std; /* SERVER SECTION */ void ServerListenForClient() {} void ServerClientConnectsCreateThread() {} // for each client: void ServerNumberGeneration() {} v...
25.928571
60
0.710055
benefacto
7c3773d31dfaa90282f2f834ed64b686c60b7ad6
1,902
hpp
C++
src/color/cmy/get/yellow.hpp
dunkyp/color
2782a093cd316125aad318d1b2fdac0ad43e6953
[ "Apache-2.0" ]
null
null
null
src/color/cmy/get/yellow.hpp
dunkyp/color
2782a093cd316125aad318d1b2fdac0ad43e6953
[ "Apache-2.0" ]
null
null
null
src/color/cmy/get/yellow.hpp
dunkyp/color
2782a093cd316125aad318d1b2fdac0ad43e6953
[ "Apache-2.0" ]
null
null
null
#ifndef color_cmy_get_yellow #define color_cmy_get_yellow // ::color::get::yellow( c ) #include "../category.hpp" #include "../place/place.hpp" #include "../../generic/get/yellow.hpp" namespace color { namespace get { namespace constant { namespace cmy { namespace yellow { ...
23.195122
142
0.555731
dunkyp
7c391541dadd26db091364aa5c3f2064c87e7fb2
2,761
cpp
C++
XPath3/xpath/XPathStaticEnv.cpp
pschonefeld/XPath3Cpp
9b4c553be42f7039417de987d8bbd7762fe43376
[ "Apache-2.0" ]
null
null
null
XPath3/xpath/XPathStaticEnv.cpp
pschonefeld/XPath3Cpp
9b4c553be42f7039417de987d8bbd7762fe43376
[ "Apache-2.0" ]
null
null
null
XPath3/xpath/XPathStaticEnv.cpp
pschonefeld/XPath3Cpp
9b4c553be42f7039417de987d8bbd7762fe43376
[ "Apache-2.0" ]
1
2021-01-19T08:44:23.000Z
2021-01-19T08:44:23.000Z
#include "StdAfx.h" #include "xpathstaticenv.h" #include "EvalEngine.h" bool XPathFuncArity::operator == (XPathFuncArity other){ if(this->size()==0 && other.size()!=0) return false; if(this->size()!=other.size()) return false; else { int count = 0; while(count < (int) (this->size()-1) ){ if(*(this->at(count)...
32.869048
91
0.672945
pschonefeld
7c4111ac146bbb16d2ffbe2b4723c8baef37449a
628
cpp
C++
Sort - Insertion/Cpp/insertionSort.cpp
i-vishi/ds-and-algo
90a8635db9570eb17539201be29ec1cfd4b5ae18
[ "MIT" ]
1
2021-03-01T04:15:08.000Z
2021-03-01T04:15:08.000Z
Sort - Insertion/Cpp/insertionSort.cpp
i-vishi/ds-and-algo
90a8635db9570eb17539201be29ec1cfd4b5ae18
[ "MIT" ]
null
null
null
Sort - Insertion/Cpp/insertionSort.cpp
i-vishi/ds-and-algo
90a8635db9570eb17539201be29ec1cfd4b5ae18
[ "MIT" ]
null
null
null
/* Author: Vishal Gaur * Created: 03-01-2021 21:53:23 */ #include <bits/stdc++.h> using namespace std; // function to sort an array using insertion sort void insertionSort(vector<int> &a) { for (int i = 1; i < a.size(); i++) { for (int j = i; j > 0; j--) { if (a[j - 1] > a[j]) swap(a[j...
15.7
49
0.514331
i-vishi
7c42eca260f3b556d92f6bb043557b7e32715284
126
cpp
C++
configpanel.cpp
MaciekMr/raspi-alarm
afb737dff7bb761c76496a7a1a2530bbc7b05969
[ "Apache-2.0" ]
null
null
null
configpanel.cpp
MaciekMr/raspi-alarm
afb737dff7bb761c76496a7a1a2530bbc7b05969
[ "Apache-2.0" ]
null
null
null
configpanel.cpp
MaciekMr/raspi-alarm
afb737dff7bb761c76496a7a1a2530bbc7b05969
[ "Apache-2.0" ]
null
null
null
#include "configpanel.h" CConfigPanel::CConfigPanel(QWidget *parent):QWidget(parent){ } CConfigPanel::~CConfigPanel(){ }
11.454545
60
0.738095
MaciekMr
7c435eb637123c574162cb65184d7ee6d4c4883d
8,286
cpp
C++
collector/test/HostHeuristicsTest.cpp
kudz00/collector
73a5366e4d95bc33e85ed0d7578c74f0a2e8a0aa
[ "Apache-2.0" ]
1
2022-03-31T15:25:16.000Z
2022-03-31T15:25:16.000Z
collector/test/HostHeuristicsTest.cpp
kudz00/collector
73a5366e4d95bc33e85ed0d7578c74f0a2e8a0aa
[ "Apache-2.0" ]
4
2022-03-31T16:16:00.000Z
2022-03-31T23:24:33.000Z
collector/test/HostHeuristicsTest.cpp
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
null
null
null
/** collector A full notice with attributions is provided along with this source code. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is...
36.026087
266
0.770215
kudz00
7c448dff1b9c193b06f8127b3630c589176c108a
118
hpp
C++
include/dataStructures/tuple.hpp
AsulconS/LightingOpenGLTest
0bebadbe524f70f3961bde3e5bbd7357c0fa62e1
[ "MIT", "Zlib", "BSD-3-Clause" ]
1
2019-04-14T21:54:51.000Z
2019-04-14T21:54:51.000Z
include/dataStructures/tuple.hpp
AsulconS/A-B-Engine
0bebadbe524f70f3961bde3e5bbd7357c0fa62e1
[ "MIT", "Zlib", "BSD-3-Clause" ]
null
null
null
include/dataStructures/tuple.hpp
AsulconS/A-B-Engine
0bebadbe524f70f3961bde3e5bbd7357c0fa62e1
[ "MIT", "Zlib", "BSD-3-Clause" ]
null
null
null
#ifndef DSTR_TUPLE_H #define DSTR_TUPLE_H #include <tuple> #define Tuple std::tuple #endif // DSTR_TUPLE_H
13.111111
25
0.711864
AsulconS
7c46fca2813557afe6bd1a97413d417d374c12cc
177
hpp
C++
src/parsegen_std_stack.hpp
Aiteta/capp
a43c40788e53e28403dd62e576b17e933aac912d
[ "MIT" ]
3
2021-09-01T15:12:23.000Z
2022-03-28T09:01:05.000Z
src/parsegen_std_stack.hpp
Aiteta/capp
a43c40788e53e28403dd62e576b17e933aac912d
[ "MIT" ]
null
null
null
src/parsegen_std_stack.hpp
Aiteta/capp
a43c40788e53e28403dd62e576b17e933aac912d
[ "MIT" ]
null
null
null
#pragma once #include <stack> namespace parsegen { template <typename T> int isize(std::stack<T> const& s) { return static_cast<int>(s.size()); } } // namespace parsegen
13.615385
36
0.683616
Aiteta