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
9ffaec0614573805d3d7129634bb5aa45c0e43ab
2,217
cpp
C++
GeeksForGeeks/C Plus Plus/Clone_a_linked_list_with_next_and_random_pointer.cpp
ankit-sr/Competitive-Programming
3397b313b80a32a47cfe224426a6e9c7cf05dec2
[ "MIT" ]
4
2021-06-19T14:15:34.000Z
2021-06-21T13:53:53.000Z
GeeksForGeeks/C Plus Plus/Clone_a_linked_list_with_next_and_random_pointer.cpp
ankit-sr/Competitive-Programming
3397b313b80a32a47cfe224426a6e9c7cf05dec2
[ "MIT" ]
2
2021-07-02T12:41:06.000Z
2021-07-12T09:37:50.000Z
GeeksForGeeks/C Plus Plus/Clone_a_linked_list_with_next_and_random_pointer.cpp
ankit-sr/Competitive-Programming
3397b313b80a32a47cfe224426a6e9c7cf05dec2
[ "MIT" ]
3
2021-06-19T15:19:20.000Z
2021-07-02T17:24:51.000Z
/* Problem Statement: ----------------- You are given a special linked list with N nodes where each node has a next pointer pointing to its next node. You are also given M random pointers , where you will be given M number of pairs denoting two nodes a and b i.e. a->arb = b. Example 1: --------- Input: N = 4, M = 2 ...
30.791667
178
0.657194
ankit-sr
9ffaecc6c4ea86e1a20329fec4048fea56651658
2,286
cpp
C++
Source/SmallFileCache.cpp
sawickiap/RegEngine
613c31fd60558a75c5b8902529acfa425fc97b2a
[ "MIT" ]
11
2022-01-02T22:50:42.000Z
2022-02-15T09:10:25.000Z
Source/SmallFileCache.cpp
sawickiap/RegEngine
613c31fd60558a75c5b8902529acfa425fc97b2a
[ "MIT" ]
null
null
null
Source/SmallFileCache.cpp
sawickiap/RegEngine
613c31fd60558a75c5b8902529acfa425fc97b2a
[ "MIT" ]
null
null
null
#include "BaseUtils.hpp" #include "SmallFileCache.hpp" #include "Streams.hpp" #include <unordered_map> constexpr size_t MAX_CACHED_FILE_SIZE = 128llu * 1024; SmallFileCache* g_SmallFileCache; class SmallFileCachePimpl { public: struct Entry { std::filesystem::file_time_type m_LastWriteT...
28.222222
93
0.636045
sawickiap
9ffc6e16ab71d34af19ff24340ae85f67bed6e2f
6,516
cpp
C++
src/Pipe.cpp
JesseMaurais/SGe
f73bd03d30074a54642847b05f82151128481371
[ "MIT" ]
1
2017-04-20T06:27:36.000Z
2017-04-20T06:27:36.000Z
src/Pipe.cpp
JesseMaurais/SGe
f73bd03d30074a54642847b05f82151128481371
[ "MIT" ]
null
null
null
src/Pipe.cpp
JesseMaurais/SGe
f73bd03d30074a54642847b05f82151128481371
[ "MIT" ]
null
null
null
#include <SDL2/SDL_config.h> #include <cstdio> #include "Pipe.hpp" #include "System.hpp" #include "SDL.hpp" namespace { constexpr int R = 0, W = 1; auto & dataR(SDL_RWops *ops) { return ops->hidden.unknown.data1; } auto & dataW(SDL_RWops *ops) { return ops->hidden.unknown.data2; } SDL_RWops *Rops(SDL_RW...
17.658537
86
0.581185
JesseMaurais
b002b1e42cf40a9c28a3ed67dd7c308d6a190e04
12,087
cpp
C++
utl/tests/testinc_opts.cpp
mathiasrw/ptarmigan
69b26470310daa24f95cb83eefde8e539eff6d96
[ "Apache-2.0" ]
143
2017-07-22T12:12:00.000Z
2022-02-09T09:46:26.000Z
utl/tests/testinc_opts.cpp
mathiasrw/ptarmigan
69b26470310daa24f95cb83eefde8e539eff6d96
[ "Apache-2.0" ]
534
2017-09-02T13:45:32.000Z
2020-06-15T09:26:33.000Z
utl/tests/testinc_opts.cpp
mathiasrw/ptarmigan
69b26470310daa24f95cb83eefde8e539eff6d96
[ "Apache-2.0" ]
31
2017-09-29T00:11:33.000Z
2021-06-17T08:24:37.000Z
//////////////////////////////////////////////////////////////////////// //FAKE関数 //FAKE_VALUE_FUNC(int, external_function, int); //////////////////////////////////////////////////////////////////////// class opts: public testing::Test { protected: virtual void SetUp() { //RESET_FAKE(external_function) ...
27.85023
91
0.519815
mathiasrw
b0066e9e5b7323234ae0883608eea07b4a4a4a19
3,911
cpp
C++
Framework/Source/Raytracing/RtRenderContext.cpp
zhaijialong/Falcor
afdd9125283c90374694ed35875144fde81e9312
[ "BSD-3-Clause" ]
null
null
null
Framework/Source/Raytracing/RtRenderContext.cpp
zhaijialong/Falcor
afdd9125283c90374694ed35875144fde81e9312
[ "BSD-3-Clause" ]
null
null
null
Framework/Source/Raytracing/RtRenderContext.cpp
zhaijialong/Falcor
afdd9125283c90374694ed35875144fde81e9312
[ "BSD-3-Clause" ]
null
null
null
/*************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of sourc...
52.851351
133
0.719509
zhaijialong
b009757e8a15058298b9b5577687040de0f2071e
652
hpp
C++
source/ui/scene/gameScene.hpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
source/ui/scene/gameScene.hpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
source/ui/scene/gameScene.hpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
/* ** gameScene.hpp for ui in /home/escoba_j/Downloads/irrlicht-1.8.3/ui/scene ** ** Made by Joffrey Escobar ** Login <escoba_j@epitech.net> ** ** Started on Mon May 30 17:40:41 2016 Joffrey Escobar */ #ifndef GAMESCENE_HPP #define GAMESCENE_HPP #include "ASubLayout.hpp" class gameScene : public ASubLayout { publ...
20.375
75
0.731595
Stephouuu
b00ac45f3e1226074714987a920916ae6433e5a1
15,615
cpp
C++
FlyEngine/Source/ResourceManager.cpp
rogerta97/FlyEngine
33abd70c5b4307cd552e2b6269b401772b4327ba
[ "MIT" ]
null
null
null
FlyEngine/Source/ResourceManager.cpp
rogerta97/FlyEngine
33abd70c5b4307cd552e2b6269b401772b4327ba
[ "MIT" ]
null
null
null
FlyEngine/Source/ResourceManager.cpp
rogerta97/FlyEngine
33abd70c5b4307cd552e2b6269b401772b4327ba
[ "MIT" ]
null
null
null
#include "ResourceManager.h" #include "Texture.h" #include "ImageImporter.h" #include "MyFileSystem.h" #include "AudioClip.h" #include "MusicTrack.h" #include "AudioImporter.h" #include "FontImporter.h" #include "imgui.h" #include "Font.h" #include <string> #include "mmgr.h" #include <assert.h> ResourceManager* Res...
25.938538
123
0.724111
rogerta97
b00b91ebfdb2c85c3eb8a32444b5bb9f3507c5ff
9,781
cpp
C++
libmultidisplay/ctp_legacy/native/drm_hdcp.cpp
zenfone-6/android_device_asus_a600cg
1073b3cae60b0e877c47f33048a7979bf3a96428
[ "Apache-2.0" ]
1
2021-11-21T21:47:02.000Z
2021-11-21T21:47:02.000Z
libmultidisplay/ctp_legacy/native/drm_hdcp.cpp
zenfone-6/android_device_asus_a600cg
1073b3cae60b0e877c47f33048a7979bf3a96428
[ "Apache-2.0" ]
null
null
null
libmultidisplay/ctp_legacy/native/drm_hdcp.cpp
zenfone-6/android_device_asus_a600cg
1073b3cae60b0e877c47f33048a7979bf3a96428
[ "Apache-2.0" ]
6
2016-03-01T16:25:22.000Z
2022-03-02T03:54:14.000Z
/* * Copyright (c) 2012-2013, Intel Corporation. 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 r...
26.944904
186
0.632144
zenfone-6
b00e0338dafeaab0355cf19a60c34a3373c0e46a
10,541
cpp
C++
src/CGNetwork/cgprofile.cpp
Tpimp/play-zone
a967baf72eb70614bf83198e9b2ea55082f17438
[ "BSD-3-Clause" ]
null
null
null
src/CGNetwork/cgprofile.cpp
Tpimp/play-zone
a967baf72eb70614bf83198e9b2ea55082f17438
[ "BSD-3-Clause" ]
null
null
null
src/CGNetwork/cgprofile.cpp
Tpimp/play-zone
a967baf72eb70614bf83198e9b2ea55082f17438
[ "BSD-3-Clause" ]
null
null
null
#include "cgprofile.h" #include <QCryptographicHash> #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include "cgserver.h" CGProfile::CGProfile(QQuickItem *parent) : QQuickItem(parent) { mServer = CGServer::globalServer(); connect(mServer, &CGServer::setProfileData,this,&CGProfile::setUse...
23.372506
100
0.582298
Tpimp
b0174c361a2f6e3ee8b6ebd8a09ef7f934f21b7c
7,976
hpp
C++
src/ibeo_8l_sdk/src/ibeosdk/Time.hpp
tomcamp0228/ibeo_ros2
ff56c88d6e82440ae3ce4de08f2745707c354604
[ "MIT" ]
1
2020-06-19T11:01:49.000Z
2020-06-19T11:01:49.000Z
include/ibeosdk/Time.hpp
chouer19/enjoyDriving
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
[ "MIT" ]
null
null
null
include/ibeosdk/Time.hpp
chouer19/enjoyDriving
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
[ "MIT" ]
2
2020-06-19T11:01:48.000Z
2020-10-29T03:07:14.000Z
//====================================================================== /*! \file Time.hpp * * \copydoc Copyright * \author Jan Christian Dittmer (jcd) * \date Jul 4, 2012 *///------------------------------------------------------------------- #ifndef IBEOSDK_TIME_HPP_SEEN #define IBEOSDK_TIME_HPP_SEEN //======...
35.292035
143
0.592026
tomcamp0228
b01dec264401e6587f3f7c4bd34455ba91473664
5,066
cpp
C++
vishnucommon/json/PropertyGroups.cpp
gmrvvis/VishnuCommon
44a6c51528d0b6a93e847802c5b58df82fc9ad2c
[ "MIT" ]
null
null
null
vishnucommon/json/PropertyGroups.cpp
gmrvvis/VishnuCommon
44a6c51528d0b6a93e847802c5b58df82fc9ad2c
[ "MIT" ]
null
null
null
vishnucommon/json/PropertyGroups.cpp
gmrvvis/VishnuCommon
44a6c51528d0b6a93e847802c5b58df82fc9ad2c
[ "MIT" ]
null
null
null
/* * Copyright (c) 2018-2019 GMRV/URJC. * * Authors: Gonzalo Bayo Martinez <gonzalo.bayo@urjc.es> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of his software and associated documentation files (the "Software"), to deal * in the Software without restriction, including with...
28.948571
80
0.685946
gmrvvis
b028ea50ce27a675c7abfa20e2068f0a45dfea11
2,451
hpp
C++
Nacro/SDK/FN_PartyFinderListItem_parameters.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
11
2021-08-08T23:25:10.000Z
2022-02-19T23:07:22.000Z
Nacro/SDK/FN_PartyFinderListItem_parameters.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
1
2022-01-01T22:51:59.000Z
2022-01-08T16:14:15.000Z
Nacro/SDK/FN_PartyFinderListItem_parameters.hpp
Milxnor/Nacro
eebabf662bbce6d5af41820ea0342d3567a0aecc
[ "BSD-2-Clause" ]
8
2021-08-09T13:51:54.000Z
2022-01-26T20:33:37.000Z
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function PartyFinderLi...
28.835294
152
0.707058
Milxnor
b028eeab41e673ea97b51c68d42d49436b0c96c8
433
cpp
C++
codeforce/E54/B.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
5
2019-03-17T01:33:19.000Z
2021-06-25T09:50:45.000Z
codeforce/E54/B.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
null
null
null
codeforce/E54/B.cpp
heiseish/Competitive-Programming
e4dd4db83c38e8837914562bc84bc8c102e68e34
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long ll; bool is(ll n) { if (n%2==0) return false; for (ll i = 3; i * i <= n;i+=2) { if (n%i==0) return false; } return true; } int main() { ll n; cin >> n; if (is(n)) printf("1\n"); else if (n%2==0) printf("%lld\n", n/2); else { for (int i = 2; i...
16.653846
40
0.484988
heiseish
b0349898d9f32c718b9d263b0c44857fa7eb4b78
4,168
cpp
C++
Assignment 3/main.cpp
John-Ghaly88/ProgrammingIII_CPP_Course
4a6d37d192d0035e07771e7586308623a3f28377
[ "MIT" ]
null
null
null
Assignment 3/main.cpp
John-Ghaly88/ProgrammingIII_CPP_Course
4a6d37d192d0035e07771e7586308623a3f28377
[ "MIT" ]
null
null
null
Assignment 3/main.cpp
John-Ghaly88/ProgrammingIII_CPP_Course
4a6d37d192d0035e07771e7586308623a3f28377
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; class Article{ public: int numberOfArticel, orderDuration; string description; double costPrice; Article(string n, string d, string c, string o){ numberOfArticel = stoi(n); description = d; costPrice = stod(c); orderDuration...
29.985612
110
0.554223
John-Ghaly88
b03752f309df09d4042ea083b10c84b97e652c37
695
cpp
C++
cpp/data-structure/union-find.cpp
luckylat/luckYrat_library
c77bd6ac070db8c929c3d7419eaa73805793108c
[ "CC0-1.0" ]
null
null
null
cpp/data-structure/union-find.cpp
luckylat/luckYrat_library
c77bd6ac070db8c929c3d7419eaa73805793108c
[ "CC0-1.0" ]
4
2021-10-16T10:47:13.000Z
2021-11-17T06:34:09.000Z
cpp/data-structure/union-find.cpp
luckylat/luckYrat_library
c77bd6ac070db8c929c3d7419eaa73805793108c
[ "CC0-1.0" ]
null
null
null
struct UnionFind { int n; vector<int> par; vector<int> size_; UnionFind(int n_) : n(n_), par((size_t)n_), size_((size_t)n_,1){ for(int i = 0; n > i; i++)par[i] = i; } int root(int x){ if(par[x] == x)return x; return par[x] = root(par[x]); } void unite(int a,int b){ int ra = root(a); ...
18.289474
66
0.496403
luckylat
b037e015508784d4e138eb5b1d31fef84a215f12
677
cpp
C++
C++/LeetCode/0091.cpp
spycedcoffee/DSA
1e559ed5251a2005cc2815438d865f0293f4cd44
[ "MIT" ]
4
2021-08-28T19:16:50.000Z
2022-03-04T19:46:31.000Z
C++/LeetCode/0091.cpp
spycedcoffee/DSA
1e559ed5251a2005cc2815438d865f0293f4cd44
[ "MIT" ]
8
2021-10-29T19:10:51.000Z
2021-11-03T12:38:00.000Z
C++/LeetCode/0091.cpp
spycedcoffee/DSA
1e559ed5251a2005cc2815438d865f0293f4cd44
[ "MIT" ]
4
2021-09-06T05:53:07.000Z
2021-12-24T10:31:40.000Z
class Solution { public: int numDecodings(string s) { if(s[0] == '0') return 0; int point1 = 0; int point2 = 0; int ch = 1; for(int i = s.length() - 1; i >= 0; i--){ point2 = point1; point1 = ch; ...
21.15625
64
0.289513
spycedcoffee
b03873653e7dbafc89b242aba774ec9ffcc8fbe6
19,609
cpp
C++
src/appointment.cpp
NuLL3rr0r/samsungdforum-ir
f293631bbb7b96f854e7b89b286251d56ea70690
[ "MIT", "Unlicense" ]
null
null
null
src/appointment.cpp
NuLL3rr0r/samsungdforum-ir
f293631bbb7b96f854e7b89b286251d56ea70690
[ "MIT", "Unlicense" ]
null
null
null
src/appointment.cpp
NuLL3rr0r/samsungdforum-ir
f293631bbb7b96f854e7b89b286251d56ea70690
[ "MIT", "Unlicense" ]
null
null
null
/********************************** * = Header File Inclusion = **********************************/ #include <unordered_map> #include <boost/format.hpp> #include <boost/lexical_cast.hpp> #include <Wt/WApplication> #include <Wt/WComboBox> #include <Wt/WContainerWidget> #include <Wt/WDialog> #include <Wt/WGridLayout>...
31.3744
116
0.566577
NuLL3rr0r
b03ca5160c5012407da0b2178725738feb436158
606
cpp
C++
Bio.cpp
SubhamChoudhury/E-Lab-Object-Oriented-Programming
b94b6c25bc41a9d11d06e2cefeba7be7d583b335
[ "MIT" ]
2
2020-09-09T09:27:45.000Z
2021-05-11T17:59:35.000Z
Bio.cpp
SubhamChoudhury/E-Lab-Object-Oriented-Programming
b94b6c25bc41a9d11d06e2cefeba7be7d583b335
[ "MIT" ]
1
2020-09-16T20:34:36.000Z
2020-09-16T20:38:37.000Z
Bio.cpp
SubhamChoudhury/E-Lab-Object-Oriented-Programming
b94b6c25bc41a9d11d06e2cefeba7be7d583b335
[ "MIT" ]
15
2019-08-01T03:49:25.000Z
2021-10-07T06:08:22.000Z
#include <iostream> using namespace std; class student { public: int rollnumber, mark1, mark2; void getdet1() { cin >> rollnumber; cin >> mark1 >> mark2; } }; class sports { public: int mark3; void getdet2() { cin >> mark3; } }; class statement : public student, public sports { public: vo...
15.15
64
0.575908
SubhamChoudhury
b0403fdd503b27edd43428b0fd39059b82553bfc
3,866
cxx
C++
dcwapd.arrisxb3/tr181_configuration_provider.cxx
ewsi/dcwapd
7faad274fff41de58f1678cdc2c10c34a05981f2
[ "Apache-2.0" ]
null
null
null
dcwapd.arrisxb3/tr181_configuration_provider.cxx
ewsi/dcwapd
7faad274fff41de58f1678cdc2c10c34a05981f2
[ "Apache-2.0" ]
7
2019-09-25T15:45:40.000Z
2020-07-04T16:02:46.000Z
dcwapd.arrisxb3/tr181_configuration_provider.cxx
ewsi/dcwapd
7faad274fff41de58f1678cdc2c10c34a05981f2
[ "Apache-2.0" ]
1
2019-09-17T17:35:24.000Z
2019-09-17T17:35:24.000Z
#include "./tr181_configuration_provider.h" #include "ccspwrapper/tr181_collection_registry.h" #include "dcw/dcwlog.h" #include <cstring> Tr181ConfigurationProvider::Tr181ConfigurationProvider() : _stationTelemetry(_singleNetwork), _ccspAbstractor("dcwapd.ccsp.cfg.xml", *this), Xb3(_singleNetwork, _ccspAbstr...
32.216667
130
0.755044
ewsi
b044d6e87799bd12afb1357043ed4ef81fb6a52d
1,271
cpp
C++
Doom/src/Doom/FileDialogs/FileDialogs.cpp
Shturm0weak/OpenGL_Engine
6e6570f8dd9000724274942fff5a100f0998b780
[ "MIT" ]
126
2020-10-20T21:39:53.000Z
2022-01-25T14:43:44.000Z
Doom/src/Doom/FileDialogs/FileDialogs.cpp
Shturm0weak/2D_OpenGL_Engine
6e6570f8dd9000724274942fff5a100f0998b780
[ "MIT" ]
2
2021-01-07T17:29:19.000Z
2021-08-14T14:04:28.000Z
Doom/src/Doom/FileDialogs/FileDialogs.cpp
Shturm0weak/2D_OpenGL_Engine
6e6570f8dd9000724274942fff5a100f0998b780
[ "MIT" ]
16
2021-01-09T09:08:40.000Z
2022-01-25T14:43:46.000Z
#include "pch.h" #include "FileDialogs.h" #include <sstream> #include <commdlg.h> std::optional<std::string> Doom::FileDialogs::OpenFile(const char* filter) { OPENFILENAMEA ofn; CHAR szFile[260] = { 0 }; ZeroMemory(&ofn, sizeof(OPENFILENAME)); ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = glfwGetWin32Wi...
31
74
0.737215
Shturm0weak
b04b67a4acc949e8bda6b37225dae5735bd6c651
16,487
cpp
C++
detection/src/asms/colotracker.cpp
yongheng1991/multiple_object_tracking_in_RGB-D_camera_network
88143b437df2198a50ef7b223db58ed35b0bcfa4
[ "BSD-3-Clause" ]
1
2021-05-14T08:48:43.000Z
2021-05-14T08:48:43.000Z
detection/src/asms/colotracker.cpp
yongheng1991/multiple_object_tracking_in_RGB-D_camera_network
88143b437df2198a50ef7b223db58ed35b0bcfa4
[ "BSD-3-Clause" ]
null
null
null
detection/src/asms/colotracker.cpp
yongheng1991/multiple_object_tracking_in_RGB-D_camera_network
88143b437df2198a50ef7b223db58ed35b0bcfa4
[ "BSD-3-Clause" ]
null
null
null
#include "open_ptrack/asms/colotracker.h" #include <iostream> #include <fstream> void ColorTracker::init(cv::Mat & img, int x1, int y1, int x2, int y2) { im1 = cv::Mat( img.rows, img.cols, CV_8UC1 ); im2 = cv::Mat( img.rows, img.cols, CV_8UC1 ); im3 = cv::Mat( img.rows, img.cols, CV_8UC1 ); //boundary...
31.46374
143
0.510827
yongheng1991
b053530e4184652fd53cba035bd19de4dbba1bbb
171
hpp
C++
include/DefaultConstructible.hpp
jharmer95/cpp_named_concepts
6cf81562f893b03baf365d5a9dc8b3f0f828fd1a
[ "CC0-1.0" ]
null
null
null
include/DefaultConstructible.hpp
jharmer95/cpp_named_concepts
6cf81562f893b03baf365d5a9dc8b3f0f828fd1a
[ "CC0-1.0" ]
null
null
null
include/DefaultConstructible.hpp
jharmer95/cpp_named_concepts
6cf81562f893b03baf365d5a9dc8b3f0f828fd1a
[ "CC0-1.0" ]
null
null
null
#pragma once #include <type_traits> namespace concepts { template<typename T> concept DefaultConstructible = std::is_default_constructible_v<T>; } // namespace concepts
17.1
66
0.795322
jharmer95
b05567b443dac3a182659a082d26c6f3cf55f145
2,763
cpp
C++
app/src/main/jni/SourceFiles/Vertices.cpp
simonides/OpenGL_ES_Example
be193e2dcc5c308cc8341b27e0051b347878670a
[ "Apache-2.0" ]
null
null
null
app/src/main/jni/SourceFiles/Vertices.cpp
simonides/OpenGL_ES_Example
be193e2dcc5c308cc8341b27e0051b347878670a
[ "Apache-2.0" ]
null
null
null
app/src/main/jni/SourceFiles/Vertices.cpp
simonides/OpenGL_ES_Example
be193e2dcc5c308cc8341b27e0051b347878670a
[ "Apache-2.0" ]
null
null
null
// // Created by Simon on 15.04.2016. // #include "../HeaderFiles/Vertices.h" const GLfloat cubeColoredVertex[] = { // X y z u v r g b //back -1, -1, -1, 1.0f, 1.0f, 1.f, 0.f, 0.f, +1, -1, -1, 0.0f, 1.0f, 1.f, 0.f, 0.f, +1, +1, -1, 0.0f, 0.0f,...
32.127907
55
0.336229
simonides
b056edf7320c15d9f6c5f0fdea9eaebbf41b03a7
422
cpp
C++
src/engine/sound.cpp
nekitu/shmup
2d2c24ff8a0fc363dbac261be52a6664d586a46a
[ "MIT" ]
2
2019-03-05T13:10:14.000Z
2019-11-28T11:02:00.000Z
src/engine/sound.cpp
nekitu/shmup
2d2c24ff8a0fc363dbac261be52a6664d586a46a
[ "MIT" ]
13
2020-02-05T10:08:45.000Z
2020-05-08T00:43:13.000Z
src/engine/sound.cpp
nekitu/shmup
2d2c24ff8a0fc363dbac261be52a6664d586a46a
[ "MIT" ]
null
null
null
#include "sound.h" #include <SDL_mixer.h> #include "resources/sound_resource.h" namespace engine { bool Sound::play(int loops) { if (!soundResource) return false; if (Mix_PlayChannel((int)channel, soundResource->wave, loops) == -1) return false; return true; } void Sound::stop() { Mix_Hal...
14.551724
70
0.656398
nekitu
b0585d4146358f7b86fc3ea99c932ecc4129e36a
260
cpp
C++
QCURL.cpp
quantumcheese/CFRaii
397b38ba5138cd3896ce4d9842918e7fb57e0198
[ "MIT" ]
3
2015-01-05T00:57:03.000Z
2015-11-09T14:08:40.000Z
QCURL.cpp
quantumcheese/CFRaii
397b38ba5138cd3896ce4d9842918e7fb57e0198
[ "MIT" ]
null
null
null
QCURL.cpp
quantumcheese/CFRaii
397b38ba5138cd3896ce4d9842918e7fb57e0198
[ "MIT" ]
null
null
null
/* * QCURL.cpp * CFRaii * * Copyright (c) 2009-2010 Richard A. Brown * * See license.txt for licensing terms and conditions. */ #include "QCURL.h" BEGIN_QC_NAMESPACE void QCURL::show() const { #ifndef NDEBUG CFShow(url); #endif } END_QC_NAMESPACE
12.380952
54
0.688462
quantumcheese
b05febfd4ca05121787ac43ab391d49fbf37c5c5
11,066
cpp
C++
examples/DSP module plugin demo/Source/PluginProcessor.cpp
jpcima/DISTRHO-JUCE
08c983c6dc718b7bbdba8c0625d7a4ee2a837f4c
[ "ISC" ]
1
2020-10-23T05:31:32.000Z
2020-10-23T05:31:32.000Z
examples/DSP module plugin demo/Source/PluginProcessor.cpp
pierreguillot/JUCE-LV2
b12aa69c81f496d07066a603b5320601aa93fcc0
[ "ISC" ]
null
null
null
examples/DSP module plugin demo/Source/PluginProcessor.cpp
pierreguillot/JUCE-LV2
b12aa69c81f496d07066a603b5320601aa93fcc0
[ "ISC" ]
null
null
null
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End...
38.557491
154
0.624345
jpcima
b064449e68eee31da68fc94e8f901c7a360f2ec0
3,049
cpp
C++
Necromancer/Necromancer.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
Necromancer/Necromancer.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
Necromancer/Necromancer.cpp
myffx36/RenderingEngine
38df29966b3126744fb40c2a97775ae44cea92f9
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Necromancer.h" #include "PIL.h" #include "RenderingEngine.h" #include "PhysicsEngine.h" #include "AnimationEngine.h" #include "GameWorld.h" #include "HID.h" //#include "ScriptInterpreter.h" #include "Timer.h" #include "Logger.h" #include "Configuration.h" #include "PILFactory.h" namespa...
25.198347
72
0.725156
myffx36
b06c67a001e98f5124c2f0acdecba1d20b8f06ef
2,546
cpp
C++
Builder/main.cpp
dominhhai/CppDesignPatterns
61d218f26ef00533346b2db31694eb8470f83358
[ "MIT" ]
3
2018-10-25T06:49:40.000Z
2018-10-26T03:47:00.000Z
Builder/main.cpp
dominhhai/CppDesignPatterns
61d218f26ef00533346b2db31694eb8470f83358
[ "MIT" ]
1
2018-10-26T03:46:50.000Z
2018-10-26T03:46:50.000Z
Builder/main.cpp
dominhhai/CppDesignPatterns
61d218f26ef00533346b2db31694eb8470f83358
[ "MIT" ]
1
2020-05-19T03:15:19.000Z
2020-05-19T03:15:19.000Z
#include <iostream> #include <memory> #include <string> #include <vector> class Packing { public: virtual std::string Pack() = 0; }; class Item { public: virtual std::string Name() = 0; virtual Packing* DoPacking() = 0; virtual float Price() = 0; }; class Wrapper : public Packing { public: std::string P...
20.047244
68
0.604478
dominhhai
b0705e3ffe0a9c79cf8b59ba34df7016acc3552d
505
cpp
C++
SimCore/model/Ecu/Ecu.cpp
kino-6/BuiltInSystemSimulator
63d447f89c0c9166b93a96844d2d103f9d00a4b2
[ "Apache-2.0" ]
null
null
null
SimCore/model/Ecu/Ecu.cpp
kino-6/BuiltInSystemSimulator
63d447f89c0c9166b93a96844d2d103f9d00a4b2
[ "Apache-2.0" ]
null
null
null
SimCore/model/Ecu/Ecu.cpp
kino-6/BuiltInSystemSimulator
63d447f89c0c9166b93a96844d2d103f9d00a4b2
[ "Apache-2.0" ]
null
null
null
#include "Ecu.h" Ecu::Ecu(void){ this->Reset(); } Ecu::~Ecu(void) { } void Ecu::Main() { this->timer->Main(); this->task->Main(this->timer); this->chip->Main(); this->power->Main(); } void Ecu::Reset(){ this->timer = new Timer(); this->task = new Task(); this->chip = new Chip(); ...
14.428571
34
0.510891
kino-6
b071dad3d818b885f1f2af6b7f4a5bb31d8c4de1
7,413
hpp
C++
src/batteries/assert.hpp
tonyastolfi/batteries
67349930e54785f44eab84f1e56da6c78c66a5f9
[ "Apache-2.0" ]
1
2022-01-04T20:28:17.000Z
2022-01-04T20:28:17.000Z
src/batteries/assert.hpp
mihir-thakkar/batteries
67349930e54785f44eab84f1e56da6c78c66a5f9
[ "Apache-2.0" ]
2
2020-06-04T14:02:24.000Z
2020-06-04T14:03:18.000Z
src/batteries/assert.hpp
mihir-thakkar/batteries
67349930e54785f44eab84f1e56da6c78c66a5f9
[ "Apache-2.0" ]
1
2022-01-03T20:24:31.000Z
2022-01-03T20:24:31.000Z
// Copyright 2021-2022 Anthony Paul Astolfi // #pragma once #ifdef BOOST_STACKTRACE_USE_NOOP #undef BOOST_STACKTRACE_USE_NOOP #endif // BOOST_STACKTRACE_USE_NOOP #include <batteries/config.hpp> #include <batteries/hint.hpp> #include <batteries/int_types.hpp> #include <batteries/type_traits.hpp> #include <batteries/u...
43.605882
110
0.550924
tonyastolfi
b07e4c0ebd57d3040c30631fb447f6fca731fb41
102,088
cpp
C++
I want to go/Library/Il2cppBuildCache/WebGL/il2cppOutput/Il2CppCCalculateFieldValues1.cpp
Bithellio/IWantToGo
966c8b941c386827f78e37d514b5ae4155ab3037
[ "Apache-2.0" ]
null
null
null
I want to go/Library/Il2cppBuildCache/WebGL/il2cppOutput/Il2CppCCalculateFieldValues1.cpp
Bithellio/IWantToGo
966c8b941c386827f78e37d514b5ae4155ab3037
[ "Apache-2.0" ]
null
null
null
I want to go/Library/Il2cppBuildCache/WebGL/il2cppOutput/Il2CppCCalculateFieldValues1.cpp
Bithellio/IWantToGo
966c8b941c386827f78e37d514b5ae4155ab3037
[ "Apache-2.0" ]
null
null
null
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> // System.Collections.Generic.List`1<ResolutionItem> struct List_1_tFCF114D2CBC4A3284C0B982FF61972A503FD5775; // System.Collections.Generic.List`1<UnityEngine.U2D.IK.Solver2D> stru...
51.611729
224
0.850149
Bithellio
b087206405424fdfca134449f6bfc091f097af9a
5,644
cpp
C++
09-sorting-and-searching-arrays/9.08-parallel-arrays/old-solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
2
2020-09-04T22:06:06.000Z
2020-09-09T04:00:25.000Z
09-sorting-and-searching-arrays/9.08-parallel-arrays/old-solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
14
2020-08-24T01:44:36.000Z
2021-01-01T08:44:17.000Z
09-sorting-and-searching-arrays/9.08-parallel-arrays/old-solution.cpp
trangnart/cis22a
498a7b37d12a13efa7749849dc95d9892d1786be
[ "MIT" ]
1
2020-09-04T22:13:13.000Z
2020-09-04T22:13:13.000Z
/* FUNCTIONS, FILES, and ARRAYS Project Exam Statistics // Trang Tran */ #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; const int MAX_SIZE = 100; void printWelcomeMesg(); string genOutputFileName(string fileName); bool getNameAndScore(string line, string& name...
25.309417
92
0.613926
trangnart
b08adccc7a7bd90f021d8c1dec25ae0b0e58a818
4,302
hpp
C++
include/chucho/sliding_numbered_file_roller.hpp
mexicowilly/Chucho
f4235420437eb2078ab592540c0d729b7b9a3c10
[ "Apache-2.0" ]
4
2016-12-06T05:33:29.000Z
2017-12-17T17:04:25.000Z
include/chucho/sliding_numbered_file_roller.hpp
mexicowilly/Chucho
f4235420437eb2078ab592540c0d729b7b9a3c10
[ "Apache-2.0" ]
147
2016-09-05T14:00:46.000Z
2021-08-24T14:43:07.000Z
include/chucho/sliding_numbered_file_roller.hpp
mexicowilly/Chucho
f4235420437eb2078ab592540c0d729b7b9a3c10
[ "Apache-2.0" ]
4
2017-11-08T04:12:39.000Z
2022-01-04T06:40:16.000Z
/* * Copyright 2013-2021 Will Mason * * 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 applicab...
30.94964
121
0.676662
mexicowilly
b08c39d9daaa0a2a80ad4d1f78c6eaafc83c3a41
156
cpp
C++
Source/Game/GameState/GameState.cpp
Crazykingjammy/bkbotz
6cdaa4164ff02e40f2909982f6dacad161c7d6cf
[ "Unlicense" ]
null
null
null
Source/Game/GameState/GameState.cpp
Crazykingjammy/bkbotz
6cdaa4164ff02e40f2909982f6dacad161c7d6cf
[ "Unlicense" ]
null
null
null
Source/Game/GameState/GameState.cpp
Crazykingjammy/bkbotz
6cdaa4164ff02e40f2909982f6dacad161c7d6cf
[ "Unlicense" ]
null
null
null
#include "gamestate.h" void CBaseGameState::ChangeState(Game* game,CBaseGameState* newstate) { //Change the games State. game->ChangeState(newstate); }
17.333333
69
0.75641
Crazykingjammy
b08c8b41c3af49dc91ec344776e54101dda7da9e
96,312
cpp
C++
Tests/SweepHangTests.cpp
erwinbonsma/BusyBeaverFinder
e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f
[ "MIT" ]
null
null
null
Tests/SweepHangTests.cpp
erwinbonsma/BusyBeaverFinder
e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f
[ "MIT" ]
null
null
null
Tests/SweepHangTests.cpp
erwinbonsma/BusyBeaverFinder
e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f
[ "MIT" ]
null
null
null
// // SweepHangTests.cpp // BusyBeaverFinder // // Created by Erwin on 03/02/19. // Copyright © 2019 Erwin Bonsma. // #include <stdio.h> #include "catch.hpp" #include "ExhaustiveSearcher.h" #include "SweepHangDetector.h" TEST_CASE( "5x5 Sweep Hang tests", "[hang][sweep][regular][5x5]" ) { ExhaustiveSearcher ...
44.527046
100
0.562433
erwinbonsma
b08f5946ab7db9285e6f3add63dbf35929a189b5
8,778
cpp
C++
sample/src/DX12/renderer.cpp
GPUOpen-Effects/FidelityFX-ParallelSort
0c539948c8d196ae338d91efbc8ca495f1ea0d1d
[ "MIT" ]
49
2020-11-25T04:57:33.000Z
2022-03-22T07:58:35.000Z
sample/src/DX12/renderer.cpp
fstrugar/FidelityFX-ParallelSort
c5bea6cd7f599645ca7a4a1bc8d2c6964c57b528
[ "MIT" ]
1
2021-10-06T14:00:33.000Z
2021-10-06T14:00:33.000Z
sample/src/DX12/renderer.cpp
fstrugar/FidelityFX-ParallelSort
c5bea6cd7f599645ca7a4a1bc8d2c6964c57b528
[ "MIT" ]
3
2021-06-01T23:18:01.000Z
2021-12-18T00:40:02.000Z
// samplerenderer.cpp // // Copyright(c) 2021 Advanced Micro Devices, Inc.All rights reserved. // 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 limita...
43.455446
182
0.65254
GPUOpen-Effects
b0915349f9635b369aa3e76a465ffbc2788bd99d
1,057
cpp
C++
Sid's Levels/Level - 3/Greedy Algorithms/Minimum Number Of Arrows To Burst Balloons.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
14
2021-08-22T18:21:14.000Z
2022-03-08T12:04:23.000Z
Sid's Levels/Level - 3/Greedy Algorithms/Minimum Number Of Arrows To Burst Balloons.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
1
2021-10-17T18:47:17.000Z
2021-10-17T18:47:17.000Z
Sid's Levels/Level - 3/Greedy Algorithms/Minimum Number Of Arrows To Burst Balloons.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
5
2021-09-01T08:21:12.000Z
2022-03-09T12:13:39.000Z
class Solution { public: int findMinArrowShots(vector<vector<int>>& points) { //OM GAN GANAPATHAYE NAMO NAMAH //JAI SHRI RAM //JAI BAJRANGBALI //AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA int i = 0, j = 0; vector<pair<int, int>> p; for(...
32.030303
153
0.476821
Tiger-Team-01
b09e252b9d36fea142944a040a23d090bd82b066
714
cpp
C++
src/EndGameState.cpp
syanush/rhotetris
4f85da828e966a2679e8160c5f810cde6b19419c
[ "MIT" ]
null
null
null
src/EndGameState.cpp
syanush/rhotetris
4f85da828e966a2679e8160c5f810cde6b19419c
[ "MIT" ]
null
null
null
src/EndGameState.cpp
syanush/rhotetris
4f85da828e966a2679e8160c5f810cde6b19419c
[ "MIT" ]
null
null
null
#include "EndGameState.hpp" #include "Helpers.hpp" using namespace RhoTetris; EndGameState::EndGameState(Game& game) : GameState(game) { setText(); } void EndGameState::update(sf::Time Delta) {} void EndGameState::draw(sf::RenderWindow& window) { window.draw(m_text); } void EndGameState::setText() { m_text.setF...
26.444444
74
0.72409
syanush
b09e59187645f77d2478a35e2d526ee21b39260c
700
cpp
C++
directfire_github/trunk/uilib/actions/scaleeffectaction.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
1
2015-08-12T04:05:33.000Z
2015-08-12T04:05:33.000Z
directfire_github/trunk/uilib/actions/scaleeffectaction.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
directfire_github/trunk/uilib/actions/scaleeffectaction.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
#include "scaleeffectaction.h" #include "../base/touchnode.h" namespace uilib { ScaleEffectAction::ScaleEffectAction() { } ScaleEffectAction::~ScaleEffectAction() { } void ScaleEffectAction::doAction(TouchNode *node,bool enable) { if(m_running == enable){ return; } m_running = enable; if(m_ru...
21.875
107
0.651429
zhwsh00
b09f6926118a73305d49d87d9ae42aa504bc8ccc
12,912
hpp
C++
ZetaChain/source/include/io/serialisation.hpp
FTLChain/BlockchainCpp
504cdf344e168d15572f328d400def08a1f1fac2
[ "MIT" ]
1
2020-02-02T19:42:39.000Z
2020-02-02T19:42:39.000Z
ZetaChain/source/include/io/serialisation.hpp
FTLChain/BlockchainCpp
504cdf344e168d15572f328d400def08a1f1fac2
[ "MIT" ]
14
2017-09-29T13:45:21.000Z
2020-06-16T22:37:01.000Z
ZetaChain/source/include/io/serialisation.hpp
FTLChain/BlockchainCpp
504cdf344e168d15572f328d400def08a1f1fac2
[ "MIT" ]
null
null
null
#pragma once /* MIT License Copyright (c) 2017 ZetaChain_Native 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, ...
38.774775
152
0.721035
FTLChain
b0a9be86f1491a8017f246b4f2baa37d056ef2fd
6,092
hpp
C++
cplus/libcfint/cfintobj/CFIntTopProjectEditObj.hpp
msobkow/cfint_2_13
63ff9dfc85647066d0c8d61469ada572362e2b48
[ "Apache-2.0" ]
null
null
null
cplus/libcfint/cfintobj/CFIntTopProjectEditObj.hpp
msobkow/cfint_2_13
63ff9dfc85647066d0c8d61469ada572362e2b48
[ "Apache-2.0" ]
null
null
null
cplus/libcfint/cfintobj/CFIntTopProjectEditObj.hpp
msobkow/cfint_2_13
63ff9dfc85647066d0c8d61469ada572362e2b48
[ "Apache-2.0" ]
null
null
null
#pragma once // Description: C++18 edit object instance specification for CFInt TopProject. /* * org.msscf.msscf.CFInt * * Copyright (c) 2020 Mark Stephen Sobkow * * MSS Code Factory CFInt 2.13 Internet Essentials * * Copyright 2020-2021 Mark Stephen Sobkow * * This file is part of MSS Code Factory. * ...
34.224719
112
0.761162
msobkow
b0aa3ade2a70b5ecd0ddb16e4fa03311770790fe
1,393
hpp
C++
src/detail/ilog2.hpp
nicolastagliani/memory
4016412f422bc8c53d266081ab5744caceec502c
[ "Zlib" ]
1
2018-11-01T02:42:01.000Z
2018-11-01T02:42:01.000Z
src/detail/ilog2.hpp
nicolastagliani/memory
4016412f422bc8c53d266081ab5744caceec502c
[ "Zlib" ]
null
null
null
src/detail/ilog2.hpp
nicolastagliani/memory
4016412f422bc8c53d266081ab5744caceec502c
[ "Zlib" ]
1
2019-11-16T20:52:21.000Z
2019-11-16T20:52:21.000Z
// Copyright (C) 2015-2016 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #ifndef FOONATHAN_MEMORY_SRC_DETAIL_ILOG2_HPP_INCLUDED #define FOONATHAN_MEMORY_SRC_DETAIL_ILOG2_HPP_INCLUDED #include "...
30.282609
74
0.613065
nicolastagliani
b0acbb072efd130a19d43b860630a5dfe83fe219
1,209
cpp
C++
src/time/time_slice_gps.cpp
sp2ong/si5351-beacon
1b92bfee80663b89928faf0b14387a88bacd918a
[ "MIT" ]
null
null
null
src/time/time_slice_gps.cpp
sp2ong/si5351-beacon
1b92bfee80663b89928faf0b14387a88bacd918a
[ "MIT" ]
null
null
null
src/time/time_slice_gps.cpp
sp2ong/si5351-beacon
1b92bfee80663b89928faf0b14387a88bacd918a
[ "MIT" ]
null
null
null
// // Author: Alexander Sholohov <ra9yer@yahoo.com> // // License: MIT // #include "time_slice_gps.h" #include "rtc_datetime.h" #include <Stream.h> //--------------------------------------------------------------------------------- TimeSliceGPS::TimeSliceGPS(Stream& serial) : m_gpsDataExtract(serial) , m_valid...
22.811321
83
0.428453
sp2ong
b0af2ac429ad4a452350e5e58b17bc1cbaa24c8d
773
hpp
C++
libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
ircluzar/BizhawkLegacy-Vanguard
cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e
[ "MIT" ]
null
null
null
libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
ircluzar/BizhawkLegacy-Vanguard
cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e
[ "MIT" ]
null
null
null
libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
ircluzar/BizhawkLegacy-Vanguard
cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e
[ "MIT" ]
null
null
null
class SDD1 { public: void init(); void load(); void unload(); void power(); void reset(); uint8 mmio_read(unsigned addr); void mmio_write(unsigned addr, uint8 data); uint8 rom_read(unsigned addr); uint8 mcu_read(unsigned addr); void mcu_write(unsigned addr, uint8 data); void serialize(serialize...
20.891892
63
0.672704
ircluzar
b0b000093adb642f54735ea2a74fe24287fb0e96
8,291
cpp
C++
Engine/Output/File/FileStatic.cpp
gregory-vovchok/YEngine
e28552e52588bd90db01dd53e5fc817d0a26d146
[ "BSD-2-Clause" ]
null
null
null
Engine/Output/File/FileStatic.cpp
gregory-vovchok/YEngine
e28552e52588bd90db01dd53e5fc817d0a26d146
[ "BSD-2-Clause" ]
null
null
null
Engine/Output/File/FileStatic.cpp
gregory-vovchok/YEngine
e28552e52588bd90db01dd53e5fc817d0a26d146
[ "BSD-2-Clause" ]
1
2020-12-04T08:57:03.000Z
2020-12-04T08:57:03.000Z
#include "File.h" #include <stdio.h> #include <io.h> #include <stdarg.h> #include <windows.h> bool File::_IsExist(StringANSI _pathToFile) { if(access(_pathToFile.c_str(), 0) == 0) { return true; } return false; } bool File::_CreateFile(StringANSI _pathToFile) { if(_IsExist(_pathToFile)) { return true; ...
15.129562
117
0.643228
gregory-vovchok
b0b348de18d63bf8d117f4d56cce92132db6995f
2,779
cc
C++
SDL2pp/Rect.cc
Ritan/libSDL2pp
466d9a1683c155ae7cabf67870983e0fe04574ee
[ "Zlib" ]
null
null
null
SDL2pp/Rect.cc
Ritan/libSDL2pp
466d9a1683c155ae7cabf67870983e0fe04574ee
[ "Zlib" ]
null
null
null
SDL2pp/Rect.cc
Ritan/libSDL2pp
466d9a1683c155ae7cabf67870983e0fe04574ee
[ "Zlib" ]
null
null
null
/* libSDL2pp - C++ wrapper for libSDL2 Copyright (C) 2013 Dmitry Marakasov <amdmi3@amdmi3.ru> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to u...
20.137681
76
0.654552
Ritan
b0b79cce1ac1108fbe7231b4a4cfec719081fb68
2,657
cpp
C++
constrdestr.cpp
jollie-fin/cpp_lessons
f7aed25215b890236660ec2b9a63a41ba65d978e
[ "MIT" ]
null
null
null
constrdestr.cpp
jollie-fin/cpp_lessons
f7aed25215b890236660ec2b9a63a41ba65d978e
[ "MIT" ]
null
null
null
constrdestr.cpp
jollie-fin/cpp_lessons
f7aed25215b890236660ec2b9a63a41ba65d978e
[ "MIT" ]
null
null
null
#include <map> #include <set> #include <string> #include <iostream> #include <deque> struct Obj { Obj() { i_ = current_id_++; std::cout << "Construct Obj(" << i_ << ")\n"; } Obj(const Obj& obj) { i_ = current_id_++; std::cout << "Construct Obj(" << i_ << ") from Obj...
18.19863
80
0.461423
jollie-fin
b0b7b9cc6b240d485ab97b3be250e625f2725c82
8,084
cpp
C++
Button.cpp
jrullan/Touchscreen_GUI
6512ef057f4bbe674b0c01d3739304f0a65f533a
[ "MIT" ]
2
2015-06-30T17:08:32.000Z
2020-05-26T18:07:30.000Z
Button.cpp
jrullan/Touchscreen_GUI
6512ef057f4bbe674b0c01d3739304f0a65f533a
[ "MIT" ]
null
null
null
Button.cpp
jrullan/Touchscreen_GUI
6512ef057f4bbe674b0c01d3739304f0a65f533a
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////// // Button.cpp // Implementation of the Class Button // Created on: 02-Mar-2015 9:17:12 PM /////////////////////////////////////////////////////////// /* * Sensible defaults mods: * 1. Provide simple constructor, no parameters * 2. Allow to...
23.568513
135
0.62766
jrullan
b0b86610e0e469bdcdd3845db6e3c6aa3cd2453e
10,385
hpp
C++
mpmissions/Altis_Life.Altis/dialog/smartphone.hpp
Mateuus/A3UndeadBRLife
2c4558c3cf66795bcfa126e3fe460a9b671d3ca9
[ "OpenSSL" ]
null
null
null
mpmissions/Altis_Life.Altis/dialog/smartphone.hpp
Mateuus/A3UndeadBRLife
2c4558c3cf66795bcfa126e3fe460a9b671d3ca9
[ "OpenSSL" ]
null
null
null
mpmissions/Altis_Life.Altis/dialog/smartphone.hpp
Mateuus/A3UndeadBRLife
2c4558c3cf66795bcfa126e3fe460a9b671d3ca9
[ "OpenSSL" ]
null
null
null
class smartphone { idd = 90000; movingEnable = false; enableSimulation = false; class controlsBackground { class Life_RscPicture_1200: Life_RscPictureKeepAspect{ idc = 1200; text = "icons\Background.paa"; x = -0.0625; y = -0.3; w = 1.1375; h = 1.5; colorBackground[] = {0, 0, 0, 0}; }; class Life_R...
29.841954
232
0.63091
Mateuus
b0bb3b25e1e4d5899ce7a828510dabbd1f9964f6
3,431
hpp
C++
rtb/base/include/base/json/Json.hpp
SMelanko/rtb
9bc909ea1ea169043661f2c89cb91415fec73065
[ "MIT" ]
null
null
null
rtb/base/include/base/json/Json.hpp
SMelanko/rtb
9bc909ea1ea169043661f2c89cb91415fec73065
[ "MIT" ]
null
null
null
rtb/base/include/base/json/Json.hpp
SMelanko/rtb
9bc909ea1ea169043661f2c89cb91415fec73065
[ "MIT" ]
1
2018-12-31T21:52:19.000Z
2018-12-31T21:52:19.000Z
#pragma once #include "base/stl/String.hpp" #include "base/Type.hpp" #include <rapidjson/document.h> #include <fmt/format.h> namespace json { using Document = rapidjson::Document; using Object = rapidjson::Value; json::Document Str2Json(base::StringView str); template<class T> void ExtBool(const json::Object& j,...
29.076271
110
0.578257
SMelanko
b0bd295fa9381d383e32799b94cb1ed12aa80e84
302
cpp
C++
toy_compiler/munster/ast/decl/dot_decl.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
toy_compiler/munster/ast/decl/dot_decl.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
toy_compiler/munster/ast/decl/dot_decl.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
#include <toy_compiler/munster/ast/decl/dot_decl.hpp> namespace munster::ast { dot_decl::dot_decl(const std::string& lexeme, const source_location& location) : decl{lexeme, location} {} auto dot_decl::to_string() const -> std::string { return "dot_decl"; } } // namespace munster::ast
27.454545
83
0.705298
Wmbat
b0be422c7ce645a8d0c9d8a5e55bd7ccb7146312
1,286
cpp
C++
N0239-Sliding-Window-Maximum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
null
null
null
N0239-Sliding-Window-Maximum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
null
null
null
N0239-Sliding-Window-Maximum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
2
2022-01-25T05:31:31.000Z
2022-02-26T07:22:23.000Z
// // main.cpp // LeetCode-Solution // // Created by Loyio Hex on 3/1/22. // #include <iostream> #include <chrono> #include <vector> #include <queue> using namespace std; using namespace std::chrono; class Solution { public: vector<int> maxSlidingWindow(vector<int>& nums, int k){ int len = nums.size()...
23.381818
74
0.540435
loyio
b0c03be262009bc94b875ea9c452bc95b26b89cf
2,000
cpp
C++
Graphs/Hopcroft-Karp.cpp
4eyes4u/Algorithms
afd8363ee39e5b7c499741f56922f16f4f50dc09
[ "MIT" ]
2
2019-02-16T13:13:40.000Z
2019-03-19T20:05:42.000Z
Graphs/Hopcroft-Karp.cpp
4eyes4u/Algorithms
afd8363ee39e5b7c499741f56922f16f4f50dc09
[ "MIT" ]
null
null
null
Graphs/Hopcroft-Karp.cpp
4eyes4u/Algorithms
afd8363ee39e5b7c499741f56922f16f4f50dc09
[ "MIT" ]
1
2020-07-03T06:15:41.000Z
2020-07-03T06:15:41.000Z
/* Name: Hopcroft-Karp algorithm Time complexity: O(M * sqrt(N)) Space complexity: O(N + M) * * * Test problem: https://www.spoj.com/problems/MATCHING/ */ #include <vector> #include <iostream> #include <queue> const int N = 1e5 + 10; const int INF = 1e9; // NONE is sentinel for unpaired nodes const int ...
21.505376
66
0.4415
4eyes4u
b0c250756c8a7941663028640a1e00abff96e269
45,648
cpp
C++
src/cli.cpp
tschiemer/midimessage
d4cd58712a8f2db0c0b8326db64f913ca24165ba
[ "MIT" ]
1
2021-12-21T17:08:25.000Z
2021-12-21T17:08:25.000Z
src/cli.cpp
tschiemer/midimessage
d4cd58712a8f2db0c0b8326db64f913ca24165ba
[ "MIT" ]
null
null
null
src/cli.cpp
tschiemer/midimessage
d4cd58712a8f2db0c0b8326db64f913ca24165ba
[ "MIT" ]
1
2021-11-05T16:43:46.000Z
2021-11-05T16:43:46.000Z
/** * */ #include <stdio.h> //#include <cstdarg> #include <stdlib.h> //#include <stdlib.h> //#include <string.h> #include <string.h> #include <unistd.h> #include <getopt.h> #include <sys/time.h> #include <time.h> #include <util-hex.h> #include <midimessage/midimessage.h> #include <midimessage/stringifier.h> #inclu...
41.878899
652
0.556717
tschiemer
b0c2eefad0385367e54922a37c72185354cc7853
2,870
cpp
C++
game/scripts/CollisionTracker.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
2
2017-11-08T16:27:25.000Z
2018-08-10T09:08:35.000Z
game/scripts/CollisionTracker.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
null
null
null
game/scripts/CollisionTracker.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
4
2017-11-08T16:25:30.000Z
2021-05-23T06:14:59.000Z
#include "CollisionTracker.h" USING_NAMESPACE_ALA; ALA_CLASS_SOURCE_1(CollisionTracker, ala::GameObjectComponent) CollisionTracker::CollisionTracker( ala::GameObject* gameObject, const std::string& name ) : GameObjectComponent( gameObject, name ), _collidedObjectFlags( 0 ), _collidedColliderFlags( 0 ) {} void Col...
34.578313
102
0.738676
Khuongnb1997
b0c3b7ca1633fc7b98c4b66ee1d1839f7d2682bd
2,675
cpp
C++
examples/04_execution_policies.cpp
JoelFilho/TDP
7609cca96afc60a29156d622756cb95b27aee7f2
[ "BSL-1.0" ]
81
2020-05-19T18:09:24.000Z
2022-03-21T12:29:41.000Z
examples/04_execution_policies.cpp
JoelFilho/TDP
7609cca96afc60a29156d622756cb95b27aee7f2
[ "BSL-1.0" ]
6
2020-05-20T22:27:20.000Z
2021-06-19T04:34:54.000Z
examples/04_execution_policies.cpp
JoelFilho/TDP
7609cca96afc60a29156d622756cb95b27aee7f2
[ "BSL-1.0" ]
2
2020-05-20T03:08:05.000Z
2021-03-25T09:05:09.000Z
#include <iostream> #include "tdp/pipeline.hpp" //--------------------------------------------------------------------------------------------------------------------- // This example shows how to use execution policies with TDP // // An execution policy defines the internal data structure utilized for thread communi...
42.460317
119
0.584299
JoelFilho
b0c5a7c44c00642aa70ba27256110af67366dccb
327
cpp
C++
2017-08-15/E.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
3
2018-04-02T06:00:51.000Z
2018-05-29T04:46:29.000Z
2017-08-15/E.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
2
2018-03-31T17:54:30.000Z
2018-05-02T11:31:06.000Z
2017-08-15/E.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
2
2018-10-07T00:08:06.000Z
2021-06-28T11:02:59.000Z
#include<bits/stdc++.h> using namespace std; #define pb push_back #define mkp make_pair #define fi first #define se second #define ll long long #define M 1000000007 #define all(a) a.begin(), a.end() int T, a; int main(){ scanf("%d", &T); while(T--){ scanf("%d", &a); printf("%d\n", (a - 1) / 2 + 2); } retur...
14.863636
35
0.608563
tangjz
b0c60846d340c6248c25ddb6de6d51e7740a7512
2,226
cpp
C++
tests/unit/ReturnedMessageTests.cpp
djsavic1988/rabbitmq-cxx
f1807fe82ddabe4c604b116fff8e84c45539d7e6
[ "MIT" ]
1
2021-05-17T07:51:24.000Z
2021-05-17T07:51:24.000Z
tests/unit/ReturnedMessageTests.cpp
djsavic1988/rabbitmq-cxx
f1807fe82ddabe4c604b116fff8e84c45539d7e6
[ "MIT" ]
null
null
null
tests/unit/ReturnedMessageTests.cpp
djsavic1988/rabbitmq-cxx
f1807fe82ddabe4c604b116fff8e84c45539d7e6
[ "MIT" ]
null
null
null
/* Project: rabbitmq-cxx <https://github.com/djsavic1988/rabbitmq-cxx> Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2021 Djordje Savic <djordje.savic.1988@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this...
34.246154
156
0.769542
djsavic1988
b0c8d9b8a08fb65b1d5fb741e3bc058c5acbae5a
2,392
cpp
C++
tests/testVerlet.cpp
cmoser8892/MoleDymCode
9077289a670c6cb0ed9e1daac5a03b51c83bc6fb
[ "MIT" ]
null
null
null
tests/testVerlet.cpp
cmoser8892/MoleDymCode
9077289a670c6cb0ed9e1daac5a03b51c83bc6fb
[ "MIT" ]
null
null
null
tests/testVerlet.cpp
cmoser8892/MoleDymCode
9077289a670c6cb0ed9e1daac5a03b51c83bc6fb
[ "MIT" ]
null
null
null
// // Created by cm on 06.05.21. // #include <gtest/gtest.h> #include "Headerfiles/verlet.h" /** * Info: * Use EXPECT_NEAR or ASSERT_NEAR bc double!! */ TEST(VerletTest, IntegratorCheckConstantForceXYZDirectionSingleAtom) { //single Atom test int nbAtoms = 1; Positions_t positions(3,nbAtoms); Velo...
27.181818
79
0.63587
cmoser8892
37df4ad8f38bbbebb2b6161fa2f8c3d68c075a8c
1,894
cpp
C++
src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/objectdetection/PointCloudWorker.cpp
AppliedAutonomyOffenburg/AADC_2015_A2O
19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac
[ "BSD-4-Clause" ]
1
2018-09-09T21:39:29.000Z
2018-09-09T21:39:29.000Z
src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/objectdetection/PointCloudWorker.cpp
TeamAutonomousCarOffenburg/A2O_2015
19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac
[ "BSD-4-Clause" ]
null
null
null
src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/objectdetection/PointCloudWorker.cpp
TeamAutonomousCarOffenburg/A2O_2015
19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac
[ "BSD-4-Clause" ]
1
2016-04-05T06:34:08.000Z
2016-04-05T06:34:08.000Z
#include "PointCloudWorker.h" #define FRAMES_PER_SECOND 2 typedef std::chrono::duration<int, std::ratio<1, FRAMES_PER_SECOND>> frame_duration; using namespace A2O; using namespace pcl; PointCloudWorker::PointCloudWorker(IResource *resource) : _resource(resource) { } PointCloudWorker::~PointCloudWorker() { } vo...
26.676056
85
0.705385
AppliedAutonomyOffenburg
37e2673f2999bd31119a861aafa20330ee138ccc
701
cpp
C++
Part_DepoisonerState.cpp
sknjpn/SyLife
b215cba87096db52ac63931db64c967f906b9172
[ "MIT" ]
5
2022-01-05T10:04:40.000Z
2022-01-11T13:23:43.000Z
Part_DepoisonerState.cpp
sknjpn/SyLife
b215cba87096db52ac63931db64c967f906b9172
[ "MIT" ]
1
2022-01-05T10:51:42.000Z
2022-01-05T13:25:41.000Z
Part_DepoisonerState.cpp
sknjpn/SyLife
b215cba87096db52ac63931db64c967f906b9172
[ "MIT" ]
null
null
null
#include "Part_DepoisonerState.h" #include "CellState.h" #include "PartConfig.h" #include "Part_DepoisonerAsset.h" #include "World.h" Part_DepoisonerState::Part_DepoisonerState( const std::shared_ptr<PartConfig>& partConfig) : PartState(partConfig) , m_Part_DepoisonerAsset(std::dynamic_pointer_cast<Part_D...
36.894737
120
0.787447
sknjpn
37ed7b523f4dc9697c7f99da7152d2297a5c44c8
608
cpp
C++
MMOCoreORB/src/server/zone/objects/creature/ai/bt/NonDeterministicBehavior.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/src/server/zone/objects/creature/ai/bt/NonDeterministicBehavior.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/src/server/zone/objects/creature/ai/bt/NonDeterministicBehavior.cpp
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
/* * NonDeterministicBehavior.cpp * * Created on: Jun 11, 2014 * Author: swgemu */ #include "NonDeterministicBehavior.h" NonDeterministicBehavior::NonDeterministicBehavior(AiAgent* _agent, const String& className) : CompositeBehavior(_agent, className) { } void NonDeterministicBehavior::start() { // thi...
21.714286
133
0.694079
V-Fib
37f23cd8f16088179f668b03ec66f38430db3276
162
cpp
C++
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch02/Exercise2.39.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch02/Exercise2.39.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
CppPrimer/CppPrimer-Exercises/CppPrimer-Ch02/Exercise2.39.cpp
alaxion/Learning
4b12b1603419252103cd933fdbfc4b2faffb6d00
[ "MIT" ]
null
null
null
// Exercise2.39.cpp // Ad // Compile the following code. #include <iostream> struct Foo { } int main() { // Pause std::cin.get(); return 0; }
10.8
31
0.561728
alaxion
37f5c617ea45fe410bc18b2cfdbddd49e86da526
750
hpp
C++
neat/phenotype/feed_forward.hpp
madcato/neat-libtorch
b486b01606a9a6951f595c6a17d6dd1a576afed0
[ "BSL-1.0" ]
null
null
null
neat/phenotype/feed_forward.hpp
madcato/neat-libtorch
b486b01606a9a6951f595c6a17d6dd1a576afed0
[ "BSL-1.0" ]
null
null
null
neat/phenotype/feed_forward.hpp
madcato/neat-libtorch
b486b01606a9a6951f595c6a17d6dd1a576afed0
[ "BSL-1.0" ]
null
null
null
#ifndef FEED_FORWARD_HPP_ #define FEED_FORWARD_HPP_ #include <memory> #include <torch/torch.h> #include <vector> #include "neat/unit.hpp" #include "neat/experiments/config.hpp" #include "neat/genotype/genome.hpp" class FeedForwardImpl: public torch::nn::Module { public: FeedForwardImpl(const Genome& genome, st...
23.4375
104
0.726667
madcato
37f64f9f66a727dfb9a4ec52ddc621a65b50bec2
485
cpp
C++
kactl/stress-tests/number-theory/ModSqrt.cpp
prince776/CodeBook
874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b
[ "CC0-1.0" ]
17
2021-01-25T12:07:17.000Z
2022-02-26T17:20:31.000Z
kactl/stress-tests/number-theory/ModSqrt.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
null
null
null
kactl/stress-tests/number-theory/ModSqrt.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
4
2021-02-28T11:13:44.000Z
2021-11-20T12:56:20.000Z
#include "../utilities/template.h" ll modpow(ll a, ll e, ll mod) { if (e == 0) return 1; ll x = modpow(a * a % mod, e >> 1, mod); return e & 1 ? x * a % mod : x; } #include "../../content/number-theory/ModSqrt.h" int main() { rep(p,2,10000) { rep(i,2,p) if (p % i == 0) goto next; rep(a,0,p) { if (p != 2 &...
20.208333
56
0.496907
prince776
37fcc57fb905dc1dc416279dc54350590d56ba33
417
cpp
C++
Common/src/interrupt_lock.cpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
Common/src/interrupt_lock.cpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
Common/src/interrupt_lock.cpp
foxostro/FlapjackOS
34bd2cc9b0983b917a089efe2055ca8f78d56d9a
[ "BSD-2-Clause" ]
null
null
null
#include <common/interrupt_lock.hpp> std::atomic<int> InterruptLock::count_{0}; static void nop() {} void (*InterruptLock::enable_interrupts)() = ::nop; void (*InterruptLock::disable_interrupts)() = ::nop; void InterruptLock::lock() { if (count_.fetch_add(1) == 0) { disable_interrupts(); } } void In...
18.954545
52
0.640288
foxostro
53010b31adb85b493126efb276e2c9c51e373cc7
305
hpp
C++
ParamedicCommander.hpp
avichai1221/WarGame
884002a45ce42a1d6e54193cb4cffc03c4d138cf
[ "MIT" ]
null
null
null
ParamedicCommander.hpp
avichai1221/WarGame
884002a45ce42a1d6e54193cb4cffc03c4d138cf
[ "MIT" ]
null
null
null
ParamedicCommander.hpp
avichai1221/WarGame
884002a45ce42a1d6e54193cb4cffc03c4d138cf
[ "MIT" ]
null
null
null
#include "Soldier.hpp" //namespace WarGame { class ParamedicCommander : public Soldier { public: explicit ParamedicCommander(int teamNum): Soldier(200, -1, teamNum) {} void attack (std::vector<std::vector<Soldier*>> &board, int first, int second) override ; }; //};
15.25
97
0.636066
avichai1221
53015506c754de23ffd5710da172d6e55b0dd625
2,075
hpp
C++
include/turbo/Component.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
2
2021-02-12T13:05:02.000Z
2021-02-22T14:25:00.000Z
include/turbo/Component.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
null
null
null
include/turbo/Component.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
null
null
null
#ifndef __TURBO_COMPONENT_HPP__ #define __TURBO_COMPONENT_HPP__ #include "debug_menus/Inspector.hpp" #include <vector> namespace turbo { class GameObject; /** * @brief Components who defines the behaviour of a GameObject */ class Component { public: /** * @brief Construct ...
24.702381
77
0.553253
mariusvn
530ff0e4c13d737d67847a8709a2b16f180d34c6
1,357
hpp
C++
__unit_tests/gv_base_unit_test/unit_test_stack.hpp
dragonsn/gv_game_engine
dca6c1fb1f8d96e9a244f157a63f8a69da084b0f
[ "MIT" ]
2
2018-12-03T13:17:31.000Z
2020-04-08T07:00:02.000Z
__unit_tests/gv_base_unit_test/unit_test_stack.hpp
dragonsn/gv_game_engine
dca6c1fb1f8d96e9a244f157a63f8a69da084b0f
[ "MIT" ]
null
null
null
__unit_tests/gv_base_unit_test/unit_test_stack.hpp
dragonsn/gv_game_engine
dca6c1fb1f8d96e9a244f157a63f8a69da084b0f
[ "MIT" ]
null
null
null
namespace unit_test_stack { void main(gvt_array< gv_string >& args) { { gvt_stack< int > array; GV_TEST_PRINT_FUNC(array.push(2), test_log()); GV_TEST_PRINT_FUNC(array.push(1), test_log()); GV_TEST_PRINT_FUNC(array.push(3), test_log()); GV_TEST_PRINT_FUNC(array.push(22), test_log()); // std::copy(array.be...
38.771429
109
0.68902
dragonsn
5311219ae58959ef49f0b4cda80eab3270e15931
2,775
cpp
C++
RenderingEngine/Mesh.cpp
Tidus-Zheng/ray-tracing
ebafcbafd15488ec16e94d7785ea79d3b0904529
[ "MIT" ]
null
null
null
RenderingEngine/Mesh.cpp
Tidus-Zheng/ray-tracing
ebafcbafd15488ec16e94d7785ea79d3b0904529
[ "MIT" ]
null
null
null
RenderingEngine/Mesh.cpp
Tidus-Zheng/ray-tracing
ebafcbafd15488ec16e94d7785ea79d3b0904529
[ "MIT" ]
null
null
null
#include "Mesh.h" #include "Scene.h" void Mesh::setupMesh() { glGenVertexArrays(1, &VAO); glGenBuffers(1, &VBO); glGenBuffers(1, &EBO); glBindVertexArray(VAO); glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(Vertex), &vertices[0], GL_STATIC_DRAW); glBindBuffer(GL_EL...
37
118
0.763604
Tidus-Zheng
5312d19f48d9bc3055e871c27d722498ce848720
919
cpp
C++
events/masterpiece_created_food.cpp
BenLubar/weblegends
0eea0239c57ffc2540adc4d312f446cafafeb2c5
[ "Zlib" ]
16
2018-02-05T17:44:12.000Z
2022-03-03T13:37:06.000Z
events/masterpiece_created_food.cpp
BenLubar/weblegends
0eea0239c57ffc2540adc4d312f446cafafeb2c5
[ "Zlib" ]
12
2017-10-25T13:25:22.000Z
2022-03-12T19:27:54.000Z
events/masterpiece_created_food.cpp
BenLubar/weblegends
0eea0239c57ffc2540adc4d312f446cafafeb2c5
[ "Zlib" ]
5
2017-10-25T13:30:45.000Z
2018-08-03T12:51:40.000Z
#include "../helpers_event.h" #include "df/history_event_masterpiece_created_foodst.h" #include "df/itemdef_foodst.h" void do_event(std::ostream & s, const event_context & context, df::history_event_masterpiece_created_foodst *event) { auto maker = df::historical_figure::find(event->maker); auto maker_entity ...
24.837838
115
0.621328
BenLubar
5316af963e84f336552cc7371f37632be366451c
3,877
cpp
C++
pose_state_time/src/examples/rotation_test.cpp
andreucm/btr-libs
a887a78fc4c63a74311e2745b810b8b0dd9f48cb
[ "BSD-2-Clause-FreeBSD" ]
1
2015-06-21T19:50:11.000Z
2015-06-21T19:50:11.000Z
pose_state_time/src/examples/rotation_test.cpp
beta-robots/btr-libs
a887a78fc4c63a74311e2745b810b8b0dd9f48cb
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pose_state_time/src/examples/rotation_test.cpp
beta-robots/btr-libs
a887a78fc4c63a74311e2745b810b8b0dd9f48cb
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#include <cstdlib> #include "rotation.h" int main(int argc, char** argv) { Crotation rt1, rt2, rt3; Cquaternion qt1; dlib::matrix<double,3,3> rM1; dlib::matrix<double,3,1> axis; double angle; unsigned ii,jj,kk; double euH, euP, euR; //euler angles; int testId = atoi(arg...
41.688172
163
0.354656
andreucm
5318df4a684b41ad4df96806afb0e062fe3295dd
577
cpp
C++
Source/GameObject.cpp
yuhongyi/HazelEngine
fad6eb1f42ad7ac06b8a0e9e2d3154147b3a7c9c
[ "MIT" ]
null
null
null
Source/GameObject.cpp
yuhongyi/HazelEngine
fad6eb1f42ad7ac06b8a0e9e2d3154147b3a7c9c
[ "MIT" ]
null
null
null
Source/GameObject.cpp
yuhongyi/HazelEngine
fad6eb1f42ad7ac06b8a0e9e2d3154147b3a7c9c
[ "MIT" ]
null
null
null
#include "Globals.h" #include "GameObject.h" GameObject::GameObject() : mId(-1), mPosition(-1.f, -1.f), mSize(0.f, 0.f) { } GameObject::GameObject(Vector2D size): mId(-1), mPosition(-1.f, -1.f), mSize(size) { } int GameObject::GetID() { return mId; } void GameObject::SetID(int id) { mId = id; } Vector2D Ga...
12.543478
50
0.684575
yuhongyi
531c08890565ae5fbcf5f3b9eb7a1579fa752078
521
cpp
C++
ConsoleCentre/CentreText.cpp
uaineteine/ConsoleCentre
fb4d25d14ea33bc55dc41f8bf4d7c83c55d4892b
[ "MIT" ]
null
null
null
ConsoleCentre/CentreText.cpp
uaineteine/ConsoleCentre
fb4d25d14ea33bc55dc41f8bf4d7c83c55d4892b
[ "MIT" ]
null
null
null
ConsoleCentre/CentreText.cpp
uaineteine/ConsoleCentre
fb4d25d14ea33bc55dc41f8bf4d7c83c55d4892b
[ "MIT" ]
null
null
null
#include "CentreText.h" void centreText(char * input, int consoleSize) { int l = strlen(input); int pos = (int)((consoleSize - l) / 2); for (int i = 0; i < pos; i++) cout << " "; cout << input << endl; } void centreText(char * input) { centreText(input, defConsoleSize); } void centreText(string input, int co...
17.965517
46
0.667946
uaineteine
531f0512da634f223450b2c7d9f5daaa2b90f999
2,226
hh
C++
nox/src/nox/netapps/authenticator/flow_fn_map.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/nox/netapps/authenticator/flow_fn_map.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/nox/netapps/authenticator/flow_fn_map.hh
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
/* Copyright 2008, 2009 (C) Nicira, Inc. * * This file is part of NOX. * * NOX is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
30.493151
87
0.704403
ayjazz
5321fded148608d23581ef9702c96cc16a25c029
3,118
hpp
C++
include/caffe/data_transformer.hpp
ChenglongChen/caffe-windows
c72d55e5258a05f88c02e8ae636838c43b11187f
[ "BSD-2-Clause" ]
110
2015-02-28T10:48:57.000Z
2020-01-30T14:34:39.000Z
include/caffe/data_transformer.hpp
ChenglongChen/caffe-windows
c72d55e5258a05f88c02e8ae636838c43b11187f
[ "BSD-2-Clause" ]
7
2015-05-21T00:25:02.000Z
2018-04-03T12:59:46.000Z
include/caffe/data_transformer.hpp
ChenglongChen/caffe-windows
c72d55e5258a05f88c02e8ae636838c43b11187f
[ "BSD-2-Clause" ]
64
2015-03-05T13:50:14.000Z
2019-09-16T11:24:32.000Z
#ifndef CAFFE_DATA_TRANSFORMER_HPP #define CAFFE_DATA_TRANSFORMER_HPP #include "caffe/common.hpp" #include "caffe/proto/caffe.pb.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/highgui/highgui_c.h> #include <opencv2/imgproc/imgproc.hpp> using namespace cv; namespace caff...
33.170213
85
0.635022
ChenglongChen
5322a91e4ff5540324dff3fb142e9898f90bee6d
10,726
cpp
C++
src/Texture.cpp
m-iDev-0792/HJGraphics
dedd324c6fd6a5b9549fcabad7e5225aefa15e00
[ "MIT" ]
3
2019-07-08T12:11:59.000Z
2019-07-10T13:23:14.000Z
src/Texture.cpp
m-iDev-0792/HJGraphics
dedd324c6fd6a5b9549fcabad7e5225aefa15e00
[ "MIT" ]
null
null
null
src/Texture.cpp
m-iDev-0792/HJGraphics
dedd324c6fd6a5b9549fcabad7e5225aefa15e00
[ "MIT" ]
1
2020-12-30T13:27:14.000Z
2020-12-30T13:27:14.000Z
// // Created by bytedance on 2021/6/19. // #define STB_IMAGE_IMPLEMENTATION #include "Texture.h" #include "stb/stb_image.h" /* * Implementation of Texture2D */ HJGraphics::Texture::Texture(GLuint _type,GLuint _texN) { type=_type; textureN=_texN; } HJGraphics::Texture::~Texture() { } /* * Implementation o...
39.725926
185
0.703711
m-iDev-0792
532b91581776db7560e14dd99ad7f06c05c2b7c0
2,535
hxx
C++
tfm/tfdum/ServerSubscriptionEvent.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
1
2019-04-15T14:10:58.000Z
2019-04-15T14:10:58.000Z
tfm/tfdum/ServerSubscriptionEvent.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
null
null
null
tfm/tfdum/ServerSubscriptionEvent.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
2
2019-10-31T09:11:09.000Z
2021-09-17T01:00:49.000Z
#if !defined ServerSubscriptionEvent_hxx #define ServerSubscriptionEvent_hxx #include "resip/stack/SipMessage.hxx" #include "tfm/Event.hxx" #include "tfm/tfdum/DumEvent.hxx" class DumUserAgent; typedef enum { ServerSubscription_Refresh, ServerSubscription_Published, ServerSubscription_Error, ServerSubscr...
26.684211
130
0.671006
dulton
53301a662c0912356694b6ed44f6610dd044c5ca
4,823
hpp
C++
include/nall/mosaic/parser.hpp
wareya/kotareci
14c87d1364d442456f93cebe73a288f85b79ba74
[ "Libpng" ]
4
2015-08-02T06:48:46.000Z
2017-10-15T14:46:35.000Z
nall/mosaic/parser.hpp
apollolux/hello-phoenix
71510b5f329804c525a9576fb0367fe8ab2487cd
[ "MIT" ]
null
null
null
nall/mosaic/parser.hpp
apollolux/hello-phoenix
71510b5f329804c525a9576fb0367fe8ab2487cd
[ "MIT" ]
null
null
null
#ifdef NALL_MOSAIC_INTERNAL_HPP namespace nall { namespace mosaic { struct parser { image canvas; //export from bitstream to canvas void load(bitstream& stream, uint64_t offset, context& ctx, unsigned width, unsigned height) { canvas.allocate(width, height); canvas.clear(ctx.paddingColor); parse(1,...
37.976378
128
0.552146
wareya
5330b94b5be962779212ce9869de6963ddc889cc
525
cpp
C++
make/glue/bullet/BulletCollision/CollisionShapes/btCollisionShape.cpp
blm768/BulletD
dac62f9f8dadd8eaf7169c58ac3a2b2fbc77cb92
[ "BSL-1.0" ]
3
2016-02-23T19:19:37.000Z
2020-01-20T13:05:15.000Z
make/glue/bullet/BulletCollision/CollisionShapes/btCollisionShape.cpp
MeinMein/BulletD
dac62f9f8dadd8eaf7169c58ac3a2b2fbc77cb92
[ "BSL-1.0" ]
1
2016-05-25T20:39:38.000Z
2016-05-25T21:21:46.000Z
make/glue/bullet/BulletCollision/CollisionShapes/btCollisionShape.cpp
blm768/BulletD
dac62f9f8dadd8eaf7169c58ac3a2b2fbc77cb92
[ "BSL-1.0" ]
null
null
null
#include <new> #include <BulletCollision/CollisionShapes/btCollisionShape.h> extern "C" void _glue_10827548791891431243(btCollisionShape* _this) { delete _this; } extern "C" void _glue_3352658093558691985(btCollisionShape* _this, float a0, btVector3& a1) { return _this->calculateLocalInertia(a0, a1); } extern "C" ...
27.631579
93
0.779048
blm768
533114fc8cb1758d7a57e6adb4ce8cda80bcaa99
9,691
cpp
C++
CesiumGltfReader/test/TestImageManipulation.cpp
SC-One/cesium-native
a8232ad039db1bb83ad2204c40c6dfb5d8207bb6
[ "Apache-2.0" ]
2
2021-10-02T17:45:12.000Z
2021-10-02T17:45:15.000Z
CesiumGltfReader/test/TestImageManipulation.cpp
SC-One/cesium-native
a8232ad039db1bb83ad2204c40c6dfb5d8207bb6
[ "Apache-2.0" ]
null
null
null
CesiumGltfReader/test/TestImageManipulation.cpp
SC-One/cesium-native
a8232ad039db1bb83ad2204c40c6dfb5d8207bb6
[ "Apache-2.0" ]
null
null
null
#include "CesiumGltf/ImageCesium.h" #include "CesiumGltf/ImageManipulation.h" #include <catch2/catch.hpp> #include <algorithm> using namespace CesiumGltf; TEST_CASE("ImageManipulation::unsafeBlitImage entire image") { size_t width = 10; size_t height = 10; size_t imagePixels = width * height; size_t bufferP...
29.01497
79
0.638943
SC-One
533653cbc99f4611e91dfaea752a763092af799f
224
cpp
C++
hiro/reference/widget/vertical-scroller.cpp
mp-lee/higan
c38a771f2272c3ee10fcb99f031e982989c08c60
[ "Intel", "ISC" ]
38
2018-04-05T05:00:05.000Z
2022-02-06T00:02:02.000Z
hiro/reference/widget/vertical-scroller.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
2
2015-10-06T14:59:48.000Z
2022-01-27T08:57:57.000Z
hiro/reference/widget/vertical-scroller.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
8
2018-04-16T22:37:46.000Z
2021-02-10T07:37:03.000Z
namespace phoenix { void pVerticalScroller::setLength(unsigned length) { } void pVerticalScroller::setPosition(unsigned position) { } void pVerticalScroller::constructor() { } void pVerticalScroller::destructor() { } }
14
56
0.763393
mp-lee
5337ccd9768e1f6fa072a5d765e6df411bfb6d93
1,364
cpp
C++
test_package/test_package.cpp
igor-sadchenko/conan-restclient-cpp
e82e92596dd92356c0c4acd99df0ffd9e21e9642
[ "MIT" ]
null
null
null
test_package/test_package.cpp
igor-sadchenko/conan-restclient-cpp
e82e92596dd92356c0c4acd99df0ffd9e21e9642
[ "MIT" ]
null
null
null
test_package/test_package.cpp
igor-sadchenko/conan-restclient-cpp
e82e92596dd92356c0c4acd99df0ffd9e21e9642
[ "MIT" ]
null
null
null
#include <iostream> #include <restclient-cpp/restclient.h> #define EXPECT_TRUE(arg) \ do { \ if(!(arg)) { \ std::cerr << "Unexpected false at " \ << __FILE__ << ", " << __LINE__ << ", " << __func__ << ": " << #arg << ": \033[31mFAILED\033[0m\n"; \ ...
31
125
0.535924
igor-sadchenko
533ae909406622ba2751b4c46ee7e66037e1b81a
2,964
cpp
C++
src/Circuit.cpp
4rzael/quantum-cuda
6c03d79f4ef68f6350e0659a1ef5a556d7915968
[ "MIT" ]
6
2018-07-05T12:22:01.000Z
2019-08-05T05:28:42.000Z
src/Circuit.cpp
4rzael/quantum-cuda
6c03d79f4ef68f6350e0659a1ef5a556d7915968
[ "MIT" ]
null
null
null
src/Circuit.cpp
4rzael/quantum-cuda
6c03d79f4ef68f6350e0659a1ef5a556d7915968
[ "MIT" ]
1
2018-11-14T17:58:11.000Z
2018-11-14T17:58:11.000Z
/** * @Author: Maxime Agor (4rzael) * @Date: Mon Jul 16 2018 * @Email: maxime.agor23@gmail.com * @Project: CUDA-Based Simulator of Quantum Systems * @Filename: Circuit.cpp * @Last modified by: 4rzael * @Last modified time: Mon Jul 16 2018, 23:09:20 * @License: MIT License */ #include <algorithm> #includ...
32.571429
119
0.639339
4rzael
533cd8d5968a07ae265b02c48b19967d32366403
93
cpp
C++
src/core/logging/debug_error.cpp
imnetcat/cout
f188c1b345b9c95f4bfcd5b928845465f048ff6e
[ "MIT" ]
2
2020-06-22T07:01:28.000Z
2020-09-08T18:16:23.000Z
src/core/logging/debug_error.cpp
imnetcat/email-client
f188c1b345b9c95f4bfcd5b928845465f048ff6e
[ "MIT" ]
48
2020-05-29T06:16:26.000Z
2020-09-10T07:29:39.000Z
src/core/logging/debug_error.cpp
imnetcat/cout
f188c1b345b9c95f4bfcd5b928845465f048ff6e
[ "MIT" ]
2
2020-05-03T08:00:41.000Z
2020-06-06T13:13:41.000Z
#include "debug_error.h" Cout::Core::Logging::DebugError::DebugError() : Error("[DEBUG]") { }
46.5
68
0.688172
imnetcat
5343a765b7998ccab45c7ae5cc1d1241c2cd238d
185
hpp
C++
src/trew/actions/Actor.hpp
yavl/pm
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
1
2021-04-07T11:15:03.000Z
2021-04-07T11:15:03.000Z
src/trew/actions/Actor.hpp
yavl/trewlib
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
null
null
null
src/trew/actions/Actor.hpp
yavl/trewlib
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
null
null
null
#pragma once namespace trew { class Action; class Actor { public: virtual ~Actor() = default; virtual void act(float dt) = 0; virtual void addAction(Action* action) = 0; }; }
16.818182
45
0.67027
yavl
5343c60dd5223fd84900d7afc5bd2ba20316e4fb
2,361
cpp
C++
00355_design-twitter/201108-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
6
2019-10-23T01:07:29.000Z
2021-12-05T01:51:16.000Z
00355_design-twitter/201108-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
null
null
null
00355_design-twitter/201108-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
1
2021-12-03T06:54:57.000Z
2021-12-03T06:54:57.000Z
// https://leetcode-cn.com/problems/design-twitter/ #include <iostream> #include <utility> #include <vector> #include <list> #include <unordered_set> #include <unordered_map> using namespace std; class Twitter { public: /** Initialize your data structure here. */ Twitter() { } /** Compose a new tweet....
27.776471
227
0.647607
yanlinlin82
5346ef52993bb699417d638c9859cd8aa0453dd7
4,161
hh
C++
src/sdk/valve/cmodelinfo.hh
numero69/sapphire-csgo-linux
51fa92b4295692af8026307a574a76cc7c3d3dfc
[ "MIT" ]
35
2019-10-05T15:37:03.000Z
2021-12-14T23:59:19.000Z
src/sdk/valve/cmodelinfo.hh
numero69/sapphire-csgo-linux
51fa92b4295692af8026307a574a76cc7c3d3dfc
[ "MIT" ]
1
2019-10-27T21:12:00.000Z
2019-10-27T21:12:00.000Z
src/sdk/valve/cmodelinfo.hh
numero69/sapphire-csgo-linux
51fa92b4295692af8026307a574a76cc7c3d3dfc
[ "MIT" ]
17
2019-10-06T14:19:37.000Z
2021-05-08T21:36:25.000Z
// // ruvi base // #pragma once // includes #include "sdk/memory/memory.hh" #include "sdk/vector/matrix3x4.hh" #include "sdk/vector/vector.hh" #include <string_view> struct model_t; class i_material; typedef float quaternion[4]; typedef float radian_euler[3]; struct mstudiobone_t { int name_index; inline co...
23.508475
78
0.656333
numero69
53495f590979cc66e517e3171fb33d2e012114a7
1,171
cpp
C++
src/xray/render/core/sources/res_input_layout.cpp
ixray-team/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
3
2021-10-30T09:36:14.000Z
2022-03-26T17:00:06.000Z
src/xray/render/core/sources/res_input_layout.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
null
null
null
src/xray/render/core/sources/res_input_layout.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:08.000Z
2022-03-26T17:00:08.000Z
//////////////////////////////////////////////////////////////////////////// // Created : 15.04.2010 // Author : Armen Abroyan // Copyright (C) GSC Game World - 2010 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include <xray/render/core/device.h> #include <xr...
30.815789
196
0.631939
ixray-team
534a82d8c6a982769797022e90b004fb6640d9c3
2,900
cpp
C++
test/api/src/api.cpp
bielskij/uCoroutine
321138dd11008254e648194c2b90e9865950a465
[ "MIT" ]
null
null
null
test/api/src/api.cpp
bielskij/uCoroutine
321138dd11008254e648194c2b90e9865950a465
[ "MIT" ]
null
null
null
test/api/src/api.cpp
bielskij/uCoroutine
321138dd11008254e648194c2b90e9865950a465
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // MIT License // // Copyright (c) 2021 Jaroslaw Bielski (bielski.j@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...
25.663717
97
0.687586
bielskij
c733b2b9fbcc48cfa3a80dc3c8f13fba4bcda580
930
cpp
C++
code/utils/communication/ClientCommandSender.cpp
ashmrtn/crashmonkey
ab21ec11f1b181f354c6ca8dc3f72804302173f8
[ "Apache-2.0" ]
160
2017-07-08T17:16:49.000Z
2022-02-23T03:07:05.000Z
code/utils/communication/ClientCommandSender.cpp
ashmrtn/crashmonkey
ab21ec11f1b181f354c6ca8dc3f72804302173f8
[ "Apache-2.0" ]
95
2017-07-11T04:58:12.000Z
2021-09-10T16:21:38.000Z
code/utils/communication/ClientCommandSender.cpp
ashmrtn/crashmonkey
ab21ec11f1b181f354c6ca8dc3f72804302173f8
[ "Apache-2.0" ]
30
2017-07-23T17:13:51.000Z
2021-11-30T10:06:12.000Z
#include <string> #include "ClientCommandSender.h" #include "ClientSocket.h" #include "SocketUtils.h" namespace fs_testing { namespace utils { namespace communication { using std::string; ClientCommandSender::ClientCommandSender( string socket_addr, SocketMessage::CmCommand send, SocketMessage::CmComman...
23.25
74
0.626882
ashmrtn
c735541f920a18f2cfc6d9ddf02ee79a0100238b
2,983
cpp
C++
src/obstacle_avoidance.cpp
anubhavparas/ros-walker-bot
7c352d17fd3fb3cf2713eb325b9fad28d56b2a69
[ "MIT" ]
null
null
null
src/obstacle_avoidance.cpp
anubhavparas/ros-walker-bot
7c352d17fd3fb3cf2713eb325b9fad28d56b2a69
[ "MIT" ]
null
null
null
src/obstacle_avoidance.cpp
anubhavparas/ros-walker-bot
7c352d17fd3fb3cf2713eb325b9fad28d56b2a69
[ "MIT" ]
1
2021-11-29T19:18:27.000Z
2021-11-29T19:18:27.000Z
/** * MIT License * * Copyright (c) 2021 Anubhav Paras * * 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, m...
34.287356
81
0.693932
anubhavparas
c73c57d3e9d4bcb9af63078d592e1e66de9e609c
947
hpp
C++
PPreflector/base_class.hpp
Petkr/PPreflection
9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805
[ "MIT" ]
null
null
null
PPreflector/base_class.hpp
Petkr/PPreflection
9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805
[ "MIT" ]
null
null
null
PPreflector/base_class.hpp
Petkr/PPreflection
9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805
[ "MIT" ]
null
null
null
#pragma once // clang-format off #include "pragma_push.hpp" #include "clang/AST/Type.h" #include "pragma_pop.hpp" // clang-format on #include "node_descriptor.hpp" namespace PPreflector { /// /// @brief Represents a base class declaration. /// /// class base_class : public node_descriptor<clang::Type, descriptor...
26.305556
74
0.732841
Petkr
c73dc6f83c692337febca4887fdfb35f3ff8f383
683
hpp
C++
libs/plugin/impl/include/sge/plugin/impl/manager_impl.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/plugin/impl/include/sge/plugin/impl/manager_impl.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/plugin/impl/include/sge/plugin/impl/manager_impl.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef SGE_PLUGIN_IMPL_MANAGER_IMPL_HPP_INCLUDED #define SGE_PLUGIN_IMPL_MANAGER_IMPL_HPP_INCLUDED...
31.045455
69
0.743777
cpreh
c74a8cd0151cf48ac1f2af62b149c1eea0d9acc9
13,182
cpp
C++
TGMarbles/AI/MoveRanker.cpp
toadgee/marbles
044f0f4eebe37ba72e0c99f2841f42a55fe20d70
[ "MIT" ]
null
null
null
TGMarbles/AI/MoveRanker.cpp
toadgee/marbles
044f0f4eebe37ba72e0c99f2841f42a55fe20d70
[ "MIT" ]
null
null
null
TGMarbles/AI/MoveRanker.cpp
toadgee/marbles
044f0f4eebe37ba72e0c99f2841f42a55fe20d70
[ "MIT" ]
null
null
null
#include "precomp.h" #include "Card.h" #include "DebugAssert.h" #include "Move.h" #include "Game.h" #include "ComputerPlayer.h" #include "MoveGenerator.h" #include "MoveRanker.h" #include "Board.h" // by creating a move ranker struct, we don't have to recalculate some of the same data over and over #define TGMMoveRank...
29.424107
136
0.716811
toadgee
c751c896dc2d1eab1f3bd1ed171809e224fa206e
17,760
cpp
C++
jtagclient/main.cpp
azonenberg/jtaghal-apps
53f9abc66a354df2d74cb253a81f1ee2d1780bb0
[ "BSD-3-Clause" ]
4
2018-07-04T11:35:32.000Z
2021-05-18T18:06:18.000Z
jtagclient/main.cpp
azonenberg/jtaghal-apps
53f9abc66a354df2d74cb253a81f1ee2d1780bb0
[ "BSD-3-Clause" ]
1
2018-03-21T11:17:00.000Z
2018-03-21T11:17:00.000Z
jtagclient/main.cpp
azonenberg/jtaghal-apps
53f9abc66a354df2d74cb253a81f1ee2d1780bb0
[ "BSD-3-Clause" ]
1
2018-03-21T10:40:29.000Z
2018-03-21T10:40:29.000Z
/*********************************************************************************************************************** * * * ANTIKERNEL v0.1 ...
26.389302
143
0.546059
azonenberg
c755986347597bb6e447e0f02da8bcb5b0de6403
134
hpp
C++
scripts/scripts/mulHLS/para.hpp
dicecco1/fpga_caffe
7a191704efd7873071cfef35772d7e7bf3e3cfd6
[ "Intel", "BSD-2-Clause" ]
134
2016-10-05T22:10:19.000Z
2022-03-26T07:13:55.000Z
scripts/scripts/mulHLS/para.hpp
honorpeter/fpga_caffe
7a191704efd7873071cfef35772d7e7bf3e3cfd6
[ "Intel", "BSD-2-Clause" ]
14
2016-11-20T21:16:38.000Z
2020-04-14T04:58:32.000Z
scripts/scripts/mulHLS/para.hpp
honorpeter/fpga_caffe
7a191704efd7873071cfef35772d7e7bf3e3cfd6
[ "Intel", "BSD-2-Clause" ]
58
2016-10-03T01:23:47.000Z
2021-11-24T12:17:30.000Z
#define HALF 1 #define NO_PARTITION 1 #define EXP_SIZE 7 #define MANT_SIZE 20 #define ROUND_NEAREST_MULT 1 #define ROUND_NEAREST_ADD 1
22.333333
28
0.828358
dicecco1
c7559f50ae41b6d365db68672eb06edd86b92af8
18,964
hpp
C++
Hittable.hpp
JohnHynes/Thesis
e4b5ed0cc4f5e1465d449db343eb429d2872bbe4
[ "MIT" ]
4
2021-02-19T23:48:35.000Z
2022-01-10T01:42:07.000Z
Hittable.hpp
JohnHynes/Thesis
e4b5ed0cc4f5e1465d449db343eb429d2872bbe4
[ "MIT" ]
1
2021-03-24T16:52:16.000Z
2021-03-24T16:52:16.000Z
Hittable.hpp
JohnHynes/Thesis
e4b5ed0cc4f5e1465d449db343eb429d2872bbe4
[ "MIT" ]
1
2021-04-19T14:16:09.000Z
2021-04-19T14:16:09.000Z
#ifndef GPU_RAY_TRACER_HITTABLE_HPP_ #define GPU_RAY_TRACER_HITTABLE_HPP_ #include <algorithm> #include <glm/geometric.hpp> #include <iostream> #include <iterator> #include <limits> #include "Preprocessor.hpp" #include "Random.hpp" #include "Ray.hpp" #include "constants.hpp" #include "types.hpp" struct hittable; st...
29.677621
80
0.625132
JohnHynes
c75925f41861b56bce60f427cd5b497814e84a87
4,629
cc
C++
trex/python/exception_helper.cc
miatauro/trex2-agent
d896f8335f3194237a8bba49949e86f5488feddb
[ "BSD-3-Clause" ]
null
null
null
trex/python/exception_helper.cc
miatauro/trex2-agent
d896f8335f3194237a8bba49949e86f5488feddb
[ "BSD-3-Clause" ]
null
null
null
trex/python/exception_helper.cc
miatauro/trex2-agent
d896f8335f3194237a8bba49949e86f5488feddb
[ "BSD-3-Clause" ]
null
null
null
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2015, Frederic Py. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
29.864516
85
0.650248
miatauro
c75d697783e9c9fbf5a2c6e33c70ed7edd33ce3a
13,114
cpp
C++
Universe/engine/src/core/math.cpp
SmirnovVyacheslav/Universe_1.0
6210c57664796f653c2fe54c737caf615b7b58c9
[ "Apache-2.0" ]
null
null
null
Universe/engine/src/core/math.cpp
SmirnovVyacheslav/Universe_1.0
6210c57664796f653c2fe54c737caf615b7b58c9
[ "Apache-2.0" ]
null
null
null
Universe/engine/src/core/math.cpp
SmirnovVyacheslav/Universe_1.0
6210c57664796f653c2fe54c737caf615b7b58c9
[ "Apache-2.0" ]
null
null
null
// Copyright: (C) 2021-2022 Vyacheslav Smirnov. All rights reserved. #include "math.h" namespace engine { float factorial(int n) { if (n == 0 || n == 1) return 1.0f; float result = 1.0f; for (int i = 1; i <= n; ++i) { result *= static_cast<float>(i); ...
28.949227
109
0.521351
SmirnovVyacheslav