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
12aaa1f523e7d7863e05204b6c41eeb1e63a610a
3,244
cpp
C++
ReviewTheMovie/common.cpp
fathurmh/MultiLinkedList
2343744155c934f24b46c5e4171a395cd143ed65
[ "MIT" ]
null
null
null
ReviewTheMovie/common.cpp
fathurmh/MultiLinkedList
2343744155c934f24b46c5e4171a395cd143ed65
[ "MIT" ]
null
null
null
ReviewTheMovie/common.cpp
fathurmh/MultiLinkedList
2343744155c934f24b46c5e4171a395cd143ed65
[ "MIT" ]
null
null
null
// include library c++ #include <conio.h> #include <iostream> #include <sstream> #include <string> #include <vector> // include library buatan #include "common.h" // using namespace using namespace std; // alokasi array 2 dimensi int *Allocate(int row, int col) { // instansiasi baris array int *arr = new int...
19.780488
90
0.532984
fathurmh
12ad891131d3699076a86ccfb91948b790002eb7
861
cpp
C++
HDU/Bestcoder/87/C/code.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
HDU/Bestcoder/87/C/code.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
HDU/Bestcoder/87/C/code.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstring> #define cls(a) memset(a,0,sizeof(a)) #define rg register #define rep(i,x,y) for(rg int i=(x);i<=(y);++i) #define per(i,x,y) for(rg int i=(x);i>=(y);--i) const int maxn=1e6+10,maxm=1e6+10; inline void up(int&x,int y){if(y>x)x=y;} using namespace std; int n,m,a[maxn],...
26.090909
86
0.557491
sjj118
12b3a8f7536adbc3e318bac566e8c329658d45d0
20,896
cpp
C++
FinalProject/src/preprocess.cpp
zuimrs/ImageProcess
8a699668c71e45e7910a6bfcb3ab0589d878cbfa
[ "MIT" ]
1
2018-06-20T12:29:52.000Z
2018-06-20T12:29:52.000Z
FinalProject/src/preprocess.cpp
zuimrs/ImageProcess
8a699668c71e45e7910a6bfcb3ab0589d878cbfa
[ "MIT" ]
null
null
null
FinalProject/src/preprocess.cpp
zuimrs/ImageProcess
8a699668c71e45e7910a6bfcb3ab0589d878cbfa
[ "MIT" ]
null
null
null
#include "preprocess.h" #include <iostream> #include <cmath> #include <algorithm> #define PI 3.14159265 #define gFilterx 5 #define gFiltery 5 #define sigma 1 #define threshold_low 100 #define threshold_high 120 #define theta_size 500 using namespace std; using namespace cimg_library; Preprocess::Preprocess(string in...
29.266106
123
0.496746
zuimrs
12ba26c5dee285dbb83297a364b73d1766fc7e38
21,042
cc
C++
src/Point_ClosedOrbitCheby.cc
PaulMcMillan-Astro/TorusLight
4a08998a5cc918b369414437ae8df109d7a926ee
[ "MIT" ]
1
2015-12-18T16:27:53.000Z
2015-12-18T16:27:53.000Z
src/Point_ClosedOrbitCheby.cc
PaulMcMillan-Astro/TorusLight
4a08998a5cc918b369414437ae8df109d7a926ee
[ "MIT" ]
null
null
null
src/Point_ClosedOrbitCheby.cc
PaulMcMillan-Astro/TorusLight
4a08998a5cc918b369414437ae8df109d7a926ee
[ "MIT" ]
null
null
null
/* * * C++ code written by Paul McMillan, 2008 * * e-mail: paul@astro.lu.se * * github: https://github.com/PaulMcMillan-Astro/Torus * */ #include "Point_ClosedOrbitCheby.h" #include "PJMNum.h" #include "...
32.826833
86
0.552134
PaulMcMillan-Astro
52127d9558484f9d16631508c3f8ca167a12b651
11,685
cpp
C++
main.cpp
tsoding/kkona
1957ce783d61490940a681abe1c904f3a7331690
[ "MIT" ]
5
2020-04-05T18:56:20.000Z
2020-04-13T05:44:02.000Z
main.cpp
tsoding/kkona
1957ce783d61490940a681abe1c904f3a7331690
[ "MIT" ]
null
null
null
main.cpp
tsoding/kkona
1957ce783d61490940a681abe1c904f3a7331690
[ "MIT" ]
null
null
null
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <SDL.h> #include <png.h> template <typename T> struct Rect { T x, y, w, h; }; using Rectf = Rect<float>; SDL_Rect rectf_for_sdl(Rectf rect) { return {(int) floorf(rect.x), (int) floorf(rect.y), (i...
26.986143
106
0.558922
tsoding
52166845003e90d0090f800b681e53cfb51b447c
307
cpp
C++
AtCoder/ABC079/A/abc079_a.cpp
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
1
2022-02-21T15:43:01.000Z
2022-02-21T15:43:01.000Z
AtCoder/ABC079/A/abc079_a.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
AtCoder/ABC079/A/abc079_a.cpp
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define int long long #define endl '\n' #define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0) using namespace std; signed main() { string n; cin >> n; if ((n[0] == n[1] && n[1] == n[2]) || (n[1] == n[2] && n[2] == n[3])) cout << "Yes"; else cout << "No"; }
30.7
88
0.543974
object-oriented-human
52177474559eeebe0f9989317ba0a2177a0c0060
67
cpp
C++
common/renderer/component/Component.cpp
damonwy/vk_launcher
ac06969c3429c5b1a49245ee75a275afa22480c8
[ "MIT" ]
null
null
null
common/renderer/component/Component.cpp
damonwy/vk_launcher
ac06969c3429c5b1a49245ee75a275afa22480c8
[ "MIT" ]
4
2020-12-29T00:16:39.000Z
2021-01-18T02:04:33.000Z
common/renderer/component/Component.cpp
damonwy/vk_launcher
ac06969c3429c5b1a49245ee75a275afa22480c8
[ "MIT" ]
null
null
null
// // Created by Daosheng Mu on 8/9/20. // #include "Component.h"
11.166667
36
0.626866
damonwy
5217abbca1119f5eb093537d6bd996ad91786692
384
cc
C++
ch04/simplenet/lib/gradient.cc
research-note/deep-learning-from-scratch-using-cpp
5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1
[ "MIT" ]
2
2021-08-15T12:38:41.000Z
2021-08-15T12:38:51.000Z
ch04/simplenet/lib/gradient.cc
research-note/deep-learning-from-scratch-using-modern-cpp
5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1
[ "MIT" ]
null
null
null
ch04/simplenet/lib/gradient.cc
research-note/deep-learning-from-scratch-using-modern-cpp
5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1
[ "MIT" ]
null
null
null
/* * Build gradient lib. * * Copyright Paran Lee * */ #include <iostream> #include "lib/gradient.hpp" template <typename F, typename T> T gradient(F f, T x) { const auto h = 1e-4; const auto hh = 2 * h; std::transform(x.begin(), x.end(), x.begin(), [f, h, hh](auto v) -> auto { re...
16.695652
49
0.510417
research-note
5218ced965d0b9d1c15bfad696ab2303f3afdf7c
3,085
hpp
C++
include/mindsp/window.hpp
nsdrozario/guitar-amp
bd11d613e11893632d51807fb4b7b08a348d3528
[ "MIT" ]
1
2022-03-31T18:35:26.000Z
2022-03-31T18:35:26.000Z
include/mindsp/window.hpp
nsdrozario/granite-amp
2f797581f36f733048c7c9c98bdfff82d6fbe1b9
[ "MIT" ]
6
2021-07-06T23:21:30.000Z
2021-08-15T03:26:27.000Z
include/mindsp/window.hpp
nsdrozario/granite-amp
2f797581f36f733048c7c9c98bdfff82d6fbe1b9
[ "MIT" ]
null
null
null
/* Copyright (c) 2021 Nathaniel D'Rozario Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
30.85
88
0.552026
nsdrozario
521c417b1daff8a28a7d0f6005b8e10ae6c179df
547
cpp
C++
NWNXLib/API/Linux/API/SJournalEntry.cpp
acaos/nwnxee-unified
0e4c318ede64028c1825319f39c012e168e0482c
[ "MIT" ]
1
2019-06-04T04:30:24.000Z
2019-06-04T04:30:24.000Z
NWNXLib/API/Linux/API/SJournalEntry.cpp
presscad/nwnee
0f36b281524e0b7e9796bcf30f924792bf9b8a38
[ "MIT" ]
null
null
null
NWNXLib/API/Linux/API/SJournalEntry.cpp
presscad/nwnee
0f36b281524e0b7e9796bcf30f924792bf9b8a38
[ "MIT" ]
1
2019-10-20T07:54:45.000Z
2019-10-20T07:54:45.000Z
#include "SJournalEntry.hpp" #include "API/Functions.hpp" #include "Platform/ASLR.hpp" namespace NWNXLib { namespace API { SJournalEntry::~SJournalEntry() { SJournalEntry__SJournalEntryDtor(this); } void SJournalEntry__SJournalEntryDtor(SJournalEntry* thisPtr) { using FuncPtrType = void(__attribute__((cdecl...
21.88
105
0.760512
acaos
521ec656a1d0999a32474e11f55f465aa8c60c07
3,131
cpp
C++
source/axPython.cpp
alxarsenault/axServer
cb5edf5a3d3010abe182e8c8b61bafbb8f3800f4
[ "MIT" ]
1
2015-10-18T07:48:20.000Z
2015-10-18T07:48:20.000Z
source/axPython.cpp
alxarsenault/axServer
cb5edf5a3d3010abe182e8c8b61bafbb8f3800f4
[ "MIT" ]
null
null
null
source/axPython.cpp
alxarsenault/axServer
cb5edf5a3d3010abe182e8c8b61bafbb8f3800f4
[ "MIT" ]
null
null
null
//#include <Python.h> //#include <iostream> //#include <unistd.h> //// https://docs.python.org/2/extending/embedding.html //#include <string> //#include <vector> //#include <stdio.h> #include "axPython.h" axPython::axPython(int argc, char* argv[]) { // std::cout << "axPython." << std::endl; Py_SetProgramName(...
26.533898
101
0.634941
alxarsenault
52208f052772c1c11b1322c7e8e002e64b4f5d10
5,959
cpp
C++
utility/DebugLog.cpp
salsanci/YRShell
7a6073651d2ddef0c258c9943a5f9fd88068a561
[ "MIT" ]
2
2017-09-09T15:18:44.000Z
2020-02-02T17:08:40.000Z
utility/DebugLog.cpp
salsanci/YRShell
7a6073651d2ddef0c258c9943a5f9fd88068a561
[ "MIT" ]
39
2017-10-19T00:44:17.000Z
2019-01-19T19:20:24.000Z
utility/DebugLog.cpp
salsanci/YRShell
7a6073651d2ddef0c258c9943a5f9fd88068a561
[ "MIT" ]
null
null
null
#include "DebugLog.h" void DebugLog::printHexLine( const char* P, int len) { int i, j; memset(c_buf, ' ', sizeof(c_buf)-1); c_buf[ sizeof( c_buf) - 1] = '\0'; for( j = i = 0; i < 16; P++, i++ ) { if( i >= len) { print( " "); } else { c_buf[ j++] = *P > 0x20 && ...
26.021834
134
0.523074
salsanci
522168d31a350d40e16c883515a64b194aed437f
3,136
cpp
C++
044_Scattering (light)/Renders/Material.cpp
HansWord/HansMemory
ae74b8d4f5ebc749508ce43250a604e364950203
[ "MIT" ]
null
null
null
044_Scattering (light)/Renders/Material.cpp
HansWord/HansMemory
ae74b8d4f5ebc749508ce43250a604e364950203
[ "MIT" ]
null
null
null
044_Scattering (light)/Renders/Material.cpp
HansWord/HansMemory
ae74b8d4f5ebc749508ce43250a604e364950203
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Material.h" Material::Material() : shader(NULL) , diffuseMap(NULL), specularMap(NULL), normalMap(NULL) , bShaderDelete(false) { buffer = new Buffer(); } Material::Material(wstring shaderFile) : diffuseMap(NULL), specularMap(NULL), normalMap(NULL) { assert(shaderFile.length() > 0); ...
18.778443
74
0.71588
HansWord
5222c1245620847883752cf0b2e098c5618357f9
1,175
cpp
C++
0023-merge-k-sorted-lists.cpp
Jamesweng/leetcode
1711a2a0e31d831e40137203c9abcba0bf56fcad
[ "Apache-2.0" ]
106
2019-06-08T15:23:45.000Z
2020-04-04T17:56:54.000Z
0023-merge-k-sorted-lists.cpp
Jamesweng/leetcode
1711a2a0e31d831e40137203c9abcba0bf56fcad
[ "Apache-2.0" ]
null
null
null
0023-merge-k-sorted-lists.cpp
Jamesweng/leetcode
1711a2a0e31d831e40137203c9abcba0bf56fcad
[ "Apache-2.0" ]
3
2019-07-13T05:51:29.000Z
2020-04-04T17:56:57.000Z
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ bool comp(const ListNode* a, const ListNode* b) { return a->val > b->val; } class Solution { public: ListNode* mergeKLists(vector<ListNode*>& lists) { ...
25.543478
60
0.417021
Jamesweng
522328eb7705d95a3badd8068af28f86285f4bd8
5,360
hpp
C++
libiop/bcs/merkle_tree.hpp
alexander-zw/libiop
a2ed2ec2f3e85f29b6035951553b02cb737c817a
[ "MIT" ]
null
null
null
libiop/bcs/merkle_tree.hpp
alexander-zw/libiop
a2ed2ec2f3e85f29b6035951553b02cb737c817a
[ "MIT" ]
null
null
null
libiop/bcs/merkle_tree.hpp
alexander-zw/libiop
a2ed2ec2f3e85f29b6035951553b02cb737c817a
[ "MIT" ]
null
null
null
/**@file ***************************************************************************** Merkle tree interfaces. Includes support for zero knowledge merkle trees, and set membership-proofs. ***************************************************************************** * @author This file is part of libiop (see A...
41.550388
91
0.649254
alexander-zw
5224e1fd85d9f81bf067d9db66b48c316fa4e594
1,608
hpp
C++
src/core/IList.hpp
clearlycloudy/concurrent
243246f3244cfaf7ffcbfc042c69980d96f988e4
[ "MIT" ]
9
2019-05-14T01:07:08.000Z
2020-11-12T01:46:11.000Z
src/core/IList.hpp
clearlycloudy/concurrent
243246f3244cfaf7ffcbfc042c69980d96f988e4
[ "MIT" ]
null
null
null
src/core/IList.hpp
clearlycloudy/concurrent
243246f3244cfaf7ffcbfc042c69980d96f988e4
[ "MIT" ]
null
null
null
#ifndef ILIST_HPP #define ILIST_HPP #include <utility> #include <functional> #include "IReclamation.hpp" #include "IConcurrency.hpp" #include "ISize.hpp" template< class T, template< class, trait_reclamation > class ContainerType, trait_size list_size_, trait_concurrency list_concurrency_, trait_method list_method_,...
40.2
190
0.682836
clearlycloudy
522695134f9df5b1b3a00a5de9b09f76b7d66d1a
1,536
inl
C++
Sources/SolarTears/Rendering/Vulkan/Scene/VulkanScene.inl
Sixshaman/SolarTears
97d07730f876508fce8bf93c9dc90f051c230580
[ "BSD-3-Clause" ]
4
2021-06-30T16:00:20.000Z
2021-10-13T06:17:56.000Z
Sources/SolarTears/Rendering/Vulkan/Scene/VulkanScene.inl
Sixshaman/SolarTears
97d07730f876508fce8bf93c9dc90f051c230580
[ "BSD-3-Clause" ]
null
null
null
Sources/SolarTears/Rendering/Vulkan/Scene/VulkanScene.inl
Sixshaman/SolarTears
97d07730f876508fce8bf93c9dc90f051c230580
[ "BSD-3-Clause" ]
null
null
null
template<typename SubmeshCallback> void RenderableScene::DrawStaticObjects(VkCommandBuffer commandBuffer, SubmeshCallback submeshCallback) const { for(uint32_t meshIndex = mStaticUniqueMeshSpan.Begin; meshIndex < mStaticUniqueMeshSpan.End; meshIndex++) { for(uint32_t submeshIndex = mSceneMeshes[meshIndex].FirstSubm...
59.076923
205
0.836589
Sixshaman
522ca8d4e556f77c0c963852a12cafa29e87de29
7,372
cpp
C++
mazerunner/source/Way.cpp
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
null
null
null
mazerunner/source/Way.cpp
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
3
2020-12-11T10:01:27.000Z
2022-02-13T22:12:05.000Z
mazerunner/source/Way.cpp
1pkg/dump
0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b
[ "MIT" ]
null
null
null
#include "Way.h" #include <stdlib.h> #include <time.h> int seed(int distance, int seed) { if (seed == 0) srand((int)time(NULL)); else srand(seed); return rand() % distance; } Way::Way(int width, int len) { this->width = width; this->len = len; } bool Way::gate_Checker(int wall, i...
21.492711
79
0.495252
1pkg
522dad0a3044d987186eda0ccec9ff2467291d47
681
cpp
C++
test/zisa/unit_test/flux/hllc.cpp
1uc/ZisaFVM
75fcedb3bece66499e011228a39d8a364b50fd74
[ "MIT" ]
null
null
null
test/zisa/unit_test/flux/hllc.cpp
1uc/ZisaFVM
75fcedb3bece66499e011228a39d8a364b50fd74
[ "MIT" ]
null
null
null
test/zisa/unit_test/flux/hllc.cpp
1uc/ZisaFVM
75fcedb3bece66499e011228a39d8a364b50fd74
[ "MIT" ]
1
2021-08-24T11:52:51.000Z
2021-08-24T11:52:51.000Z
// SPDX-License-Identifier: MIT // Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval #include <zisa/testing/testing_framework.hpp> #include <zisa/flux/hllc.hpp> #include <zisa/model/euler.hpp> #include <zisa/model/ideal_gas_eos.hpp> TEST_CASE("HLLC; consistency") { using eos_t = zisa::IdealGasEOS; using gravi...
25.222222
70
0.676946
1uc
52346b8c383fcf4cfb0397a308d50fd394c8ccdf
3,122
cpp
C++
test/voiceControlInterfaceTest.cpp
rubenacevedo3/cpp-RoboDogVoiceController
9583447574531c18a6346f49de460b52bc97bed4
[ "MIT" ]
null
null
null
test/voiceControlInterfaceTest.cpp
rubenacevedo3/cpp-RoboDogVoiceController
9583447574531c18a6346f49de460b52bc97bed4
[ "MIT" ]
null
null
null
test/voiceControlInterfaceTest.cpp
rubenacevedo3/cpp-RoboDogVoiceController
9583447574531c18a6346f49de460b52bc97bed4
[ "MIT" ]
null
null
null
/** *@author Ruben Acevedo *@file voiceControlInterfaceTest.cpp *@brief This is the ".cpp" file for testing the voiceControlInterface Class *@copyright [2017] Ruben Acevedo * * This file tests the voiceControlInterface Class using google test * */ /** * MIT License * * Copyright 2017 Ruben Acevedo * * Perm...
32.863158
80
0.741832
rubenacevedo3
523acc952caa31c8f2b044cd738427da6e0c6ee1
16,885
cpp
C++
TheEngineSample/RoomRayModel.cpp
natalieagus/Original-Binaural-Reverb
15cb56203c432d7768f6674b8e80ea3902c2ff11
[ "Zlib" ]
null
null
null
TheEngineSample/RoomRayModel.cpp
natalieagus/Original-Binaural-Reverb
15cb56203c432d7768f6674b8e80ea3902c2ff11
[ "Zlib" ]
null
null
null
TheEngineSample/RoomRayModel.cpp
natalieagus/Original-Binaural-Reverb
15cb56203c432d7768f6674b8e80ea3902c2ff11
[ "Zlib" ]
1
2018-12-16T15:03:53.000Z
2018-12-16T15:03:53.000Z
// // RoomRayModel.c // TheEngineSample // // Created by Hans on 6/11/15. // Copyright © 2015 A Tasty Pixel. All rights reserved. // #include "RoomRayModel.h" #include "assert.h" #include "string.h" #include "math.h" #include "FDN.h" RoomRayModel::RoomRayModel(){ numCorners = 0; } //Visibility check when se...
37.774049
218
0.579094
natalieagus
523d124075a4a5ecbaa4b0fd7003d0058aa6e3cf
12,371
cpp
C++
src/ObjEdit/(old)/OE_TexEd.cpp
rromanchuk/xptools
deff017fecd406e24f60dfa6aae296a0b30bff56
[ "X11", "MIT" ]
71
2015-12-15T19:32:27.000Z
2022-02-25T04:46:01.000Z
src/ObjEdit/(old)/OE_TexEd.cpp
rromanchuk/xptools
deff017fecd406e24f60dfa6aae296a0b30bff56
[ "X11", "MIT" ]
19
2016-07-09T19:08:15.000Z
2021-07-29T10:30:20.000Z
src/ObjEdit/(old)/OE_TexEd.cpp
rromanchuk/xptools
deff017fecd406e24f60dfa6aae296a0b30bff56
[ "X11", "MIT" ]
42
2015-12-14T19:13:02.000Z
2022-03-01T15:15:03.000Z
/* * Copyright (c) 2004, Laminar Research. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, ...
37.038922
138
0.671005
rromanchuk
52440254b28103248dafb8f5f404d1aa859146d6
1,161
cpp
C++
tests/piecetypetest.cpp
bsamseth/Goldfish
c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b
[ "MIT" ]
6
2019-01-23T03:13:36.000Z
2020-09-06T09:54:48.000Z
tests/piecetypetest.cpp
bsamseth/Goldfish
c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b
[ "MIT" ]
33
2015-12-28T08:48:01.000Z
2019-09-25T11:39:53.000Z
tests/piecetypetest.cpp
bsamseth/Goldfish
c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b
[ "MIT" ]
6
2018-08-06T14:05:11.000Z
2022-02-15T01:30:49.000Z
#include "piecetype.hpp" #include "gtest/gtest.h" using namespace goldfish; TEST(piecetypetest, test_values) { for (auto piecetype : PieceTypes::values) { EXPECT_EQ(piecetype, PieceTypes::values[piecetype]); } } TEST(piecetypetest, test_is_validPromotion) { EXPECT_TRUE(PieceTypes::is_valid_p...
33.171429
75
0.763135
bsamseth
524449190bc2a46790c6c8d6dcc26c611565ef8a
2,315
cp
C++
MacOS/Sources/Application/Address_Book/CAddressFieldMultiLine.cp
mbert/mulberry-main
6b7951a3ca56e01a7be67aa12e55bfeafc63950d
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
MacOS/Sources/Application/Address_Book/CAddressFieldMultiLine.cp
mtalexander/mulberry-main
fa6d96ca6ef4401308bddb56518651b4fd866def
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
MacOS/Sources/Application/Address_Book/CAddressFieldMultiLine.cp
mtalexander/mulberry-main
fa6d96ca6ef4401308bddb56518651b4fd866def
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007-2011 Cyrus Daboo. 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 Unle...
25.722222
104
0.710583
mbert
52460eeb9adc725637203e933192aa1e2ff4fe28
527
cpp
C++
Curso/AULA 43,44 e 45 - ARQUIVOS/exemplo/src/main.cpp
vandodiniz/CursoC--
ba979bae23292a59941437dee478f51e7e357abb
[ "MIT" ]
1
2022-03-07T21:40:38.000Z
2022-03-07T21:40:38.000Z
Curso/AULA 43,44 e 45 - ARQUIVOS/exemplo/src/main.cpp
vandodiniz/CursoC--
ba979bae23292a59941437dee478f51e7e357abb
[ "MIT" ]
null
null
null
Curso/AULA 43,44 e 45 - ARQUIVOS/exemplo/src/main.cpp
vandodiniz/CursoC--
ba979bae23292a59941437dee478f51e7e357abb
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <stdio.h> using namespace std; int main() { char seps[]=","; int camisa, pool; string linha; char *nome, *func; int maiorPool = 0; string maiorNome; fstream arquivo; arquivo.open("clash.txt",ios::in); if(arquivo.is_open()){ ...
17
51
0.552182
vandodiniz
524762c3f33652de9620a276dcfd14dc99f2c40e
3,971
cc
C++
lite/backends/nnadapter/nnadapter/src/operation/gather.cc
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
808
2018-04-17T17:43:12.000Z
2019-08-18T07:39:13.000Z
lite/backends/nnadapter/nnadapter/src/operation/gather.cc
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
728
2018-04-18T08:15:25.000Z
2019-08-16T07:14:43.000Z
lite/backends/nnadapter/nnadapter/src/operation/gather.cc
Danielmic/Paddle-Lite
8bf08425035cfae077754ac72629292fac7bb996
[ "Apache-2.0" ]
364
2018-04-18T17:05:02.000Z
2019-08-18T03:25:38.000Z
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
38.553398
80
0.712163
Danielmic
5247804ebba4a87ff0167d502f6f65835e7d783b
3,470
cpp
C++
test/unit_test/patterns/factory/unit_test_copy_factory.cpp
bvanessen/DiHydrogen
62e52e22184556a028750bb73d8aed92cedb8884
[ "ECL-2.0", "Apache-2.0" ]
3
2020-01-06T17:26:58.000Z
2021-12-11T01:17:43.000Z
test/unit_test/patterns/factory/unit_test_copy_factory.cpp
bvanessen/DiHydrogen
62e52e22184556a028750bb73d8aed92cedb8884
[ "ECL-2.0", "Apache-2.0" ]
7
2020-02-26T06:07:42.000Z
2022-02-15T22:51:36.000Z
test/unit_test/patterns/factory/unit_test_copy_factory.cpp
bvanessen/DiHydrogen
62e52e22184556a028750bb73d8aed92cedb8884
[ "ECL-2.0", "Apache-2.0" ]
6
2020-01-06T18:08:42.000Z
2021-07-26T14:53:07.000Z
//////////////////////////////////////////////////////////////////////////////// // Copyright 2019-2020 Lawrence Livermore National Security, LLC and other // DiHydrogen Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: Apache-2.0 ////////////////////////////////////////////...
25.703704
80
0.563112
bvanessen
5250d23eb93b67242ce7adcb1c49443d482be03b
1,177
cpp
C++
thdatwrapper.cpp
BearKidsTeam/thplayer
54db11c02ad5fb7b6534b93e5c2ef03ecb91bc03
[ "BSD-2-Clause" ]
13
2019-01-02T13:52:09.000Z
2022-01-30T10:17:01.000Z
thdatwrapper.cpp
BearKidsTeam/thplayer
54db11c02ad5fb7b6534b93e5c2ef03ecb91bc03
[ "BSD-2-Clause" ]
null
null
null
thdatwrapper.cpp
BearKidsTeam/thplayer
54db11c02ad5fb7b6534b93e5c2ef03ecb91bc03
[ "BSD-2-Clause" ]
1
2018-11-20T04:41:53.000Z
2018-11-20T04:41:53.000Z
#include "thdatwrapper.hpp" #include <cstdlib> #include <cstring> thDatWrapper::thDatWrapper(const char *datpath,unsigned ver) { thtk_error_t *e=NULL; datf=thtk_io_open_file(datpath,"rb",&e); thtk_error_free(&e); dat=thdat_open(ver,datf,&e); if(!dat) //just try the latest supported version instead { thtk_erro...
22.634615
60
0.724724
BearKidsTeam
525f30084180d15cc0be1cec8c6b4f3cc4d13a28
745
cpp
C++
oop_ex24.cpp
85105/HW
2161a1a7ac1082a85454672d359c00f2d42ef21f
[ "MIT" ]
null
null
null
oop_ex24.cpp
85105/HW
2161a1a7ac1082a85454672d359c00f2d42ef21f
[ "MIT" ]
null
null
null
oop_ex24.cpp
85105/HW
2161a1a7ac1082a85454672d359c00f2d42ef21f
[ "MIT" ]
null
null
null
/* oop_ex24.cpp dynamic 2D array using new and delete */ #include <iostream> using namespace std; void main() { // obtain the matrix size from user int size; cout << "Please input the size of the square matrix." << endl; cin >> size; // create the matrix using new int** m = new int*[size]; for (int i = 0; ...
16.555556
63
0.575839
85105
5263bf24530cc7230166ab82f9e372d55ef2963c
26
cpp
C++
source/vgraphics/opengl/unused/vix_glmodel.cpp
ritgraphics/VixenEngine
294a6c69b015ec8bce7920f604176e4f92ffba23
[ "MIT" ]
null
null
null
source/vgraphics/opengl/unused/vix_glmodel.cpp
ritgraphics/VixenEngine
294a6c69b015ec8bce7920f604176e4f92ffba23
[ "MIT" ]
3
2015-10-28T01:29:03.000Z
2015-11-10T15:20:02.000Z
source/vgraphics/opengl/unused/vix_glmodel.cpp
ritgraphics/VixenEngine
294a6c69b015ec8bce7920f604176e4f92ffba23
[ "MIT" ]
null
null
null
#include <vix_glmodel.h>
8.666667
24
0.730769
ritgraphics
5266eaf478d912daf91cd52c27e984db42cb1c43
688
cpp
C++
solved/PT07Y.cpp
mrpandey/spoj
d63378200806e595af2958b15e757383bed692cd
[ "WTFPL" ]
4
2018-04-23T18:37:09.000Z
2019-04-03T16:28:02.000Z
solved/PT07Y.cpp
mrpandey/spoj
d63378200806e595af2958b15e757383bed692cd
[ "WTFPL" ]
null
null
null
solved/PT07Y.cpp
mrpandey/spoj
d63378200806e595af2958b15e757383bed692cd
[ "WTFPL" ]
1
2021-07-01T03:54:33.000Z
2021-07-01T03:54:33.000Z
#include<iostream> #include<vector> #include<queue> using namespace std; int main(){ //ios::sync_with_stdio(false); int n, m; cin >> n >> m; if(n-m!=1) {cout << "NO\n"; return 0;} vector<vector<int> > adj(n, vector<int>()); int u, v; for(int i=0; i<m; i++){ cin >> u >> v; adj[u-1].push_back(v-1); adj[v-1]...
17.2
44
0.526163
mrpandey
5278d45c9ec457ca7bb2f5c797ad4bca1e02ebc1
20
cpp
C++
Ursa/src/ursapch.cpp
quiniks/Ursa
4f6c7c153d9d4c2ccb4c42f06d2fa88910d15c8c
[ "Apache-2.0" ]
null
null
null
Ursa/src/ursapch.cpp
quiniks/Ursa
4f6c7c153d9d4c2ccb4c42f06d2fa88910d15c8c
[ "Apache-2.0" ]
null
null
null
Ursa/src/ursapch.cpp
quiniks/Ursa
4f6c7c153d9d4c2ccb4c42f06d2fa88910d15c8c
[ "Apache-2.0" ]
null
null
null
#include "ursapch.h"
20
20
0.75
quiniks
5279fd930680f6b1642fd5eb1943d8bae0d1492a
2,350
cpp
C++
src/zk/connection_tests.cpp
vexingcodes/zookeeper-cpp
9dce1fce5370ecfdad713caf411a5ae9b851db33
[ "Apache-2.0" ]
126
2017-08-09T22:26:09.000Z
2022-01-21T22:39:46.000Z
src/zk/connection_tests.cpp
vexingcodes/zookeeper-cpp
9dce1fce5370ecfdad713caf411a5ae9b851db33
[ "Apache-2.0" ]
97
2017-08-09T23:08:41.000Z
2022-03-29T21:54:24.000Z
src/zk/connection_tests.cpp
vexingcodes/zookeeper-cpp
9dce1fce5370ecfdad713caf411a5ae9b851db33
[ "Apache-2.0" ]
38
2017-08-11T00:33:17.000Z
2021-05-13T09:19:27.000Z
#include <zk/tests/test.hpp> #include "connection.hpp" namespace zk { // This test is mostly to check that we still use the defaults. GTEST_TEST(connection_params_tests, defaults) { const auto res = connection_params::parse("zk://localhost/"); CHECK_EQ("zk", res.connection_schema()); CHECK_EQ(1U, res.hos...
29.375
99
0.680851
vexingcodes
527a4107bc4e574ccc3c8ac5610b866f797ccd82
6,209
hpp
C++
include/instr/instruction_set.hpp
jaller200/comp4300-project3
f2106f6acaf44a84b3cb305b7c8f345bf037efae
[ "BSL-1.0" ]
null
null
null
include/instr/instruction_set.hpp
jaller200/comp4300-project3
f2106f6acaf44a84b3cb305b7c8f345bf037efae
[ "BSL-1.0" ]
null
null
null
include/instr/instruction_set.hpp
jaller200/comp4300-project3
f2106f6acaf44a84b3cb305b7c8f345bf037efae
[ "BSL-1.0" ]
null
null
null
#pragma once #include "instr/instruction_handler.hpp" #include "instr/instruction_metadata.hpp" #include "instr/instruction_parser.hpp" #include "instr/instruction_type.hpp" #include "pipeline/execution_buffer.hpp" #include "pipeline/instruction_decode_buffer.hpp" #include "pipeline/instruction_fetch_buffer.hpp" #incl...
36.098837
193
0.692865
jaller200
527e58590ab1a684db26d01f832b8b83e76c5fa2
235
cpp
C++
Chapter12/Exercise75/Exercise75.cpp
Siddharth-Puhan/The-CPP-Workshop
220fbcf89d3d35b875ecadc885405984304ca9c6
[ "MIT" ]
86
2020-03-23T20:50:05.000Z
2022-02-19T21:41:38.000Z
Chapter12/Exercise75/Exercise75.cpp
Siddharth-Puhan/The-CPP-Workshop
220fbcf89d3d35b875ecadc885405984304ca9c6
[ "MIT" ]
7
2020-02-14T12:14:39.000Z
2021-12-27T09:15:01.000Z
Chapter12/Exercise75/Exercise75.cpp
Siddharth-Puhan/The-CPP-Workshop
220fbcf89d3d35b875ecadc885405984304ca9c6
[ "MIT" ]
66
2020-03-23T22:25:17.000Z
2022-02-01T09:01:41.000Z
#include <iostream> #include <vector> using namespace std; int main() { vector < int > vec = {1,2,3,4,5,6,7,8,9,10}; for (auto v: vec) { cout << v << " "; } cout << vec[3]; return 0; }
12.368421
48
0.451064
Siddharth-Puhan
528b90db80b723eace4d1fd5b780da15a9dc2686
2,748
cc
C++
Source/Content/Asset.cc
dkrutsko/OpenGL-Engine
2e61e6f9106a03915a21aba94c81af2360cc85bf
[ "Zlib" ]
3
2016-01-05T05:04:35.000Z
2020-01-08T22:17:14.000Z
Source/Content/Asset.cc
dkrutsko/OpenGL-Engine
2e61e6f9106a03915a21aba94c81af2360cc85bf
[ "Zlib" ]
null
null
null
Source/Content/Asset.cc
dkrutsko/OpenGL-Engine
2e61e6f9106a03915a21aba94c81af2360cc85bf
[ "Zlib" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // -------------------------------------------------------------------------- // // // // (C) 2012-2013 David Krutsko ...
32.329412
80
0.227074
dkrutsko
5290908f40b27ecb84dd434ea61817b34b578087
273
cpp
C++
Exercicios/Exercicios C - Uri #2/1070.cpp
yunger7/SENAI
85093e0ce3ed83e50dcd570d7c42b1dda4111929
[ "MIT" ]
1
2020-09-07T12:19:27.000Z
2020-09-07T12:19:27.000Z
Exercicios/Exercicios C - Uri #2/1070.cpp
yunger7/SENAI
85093e0ce3ed83e50dcd570d7c42b1dda4111929
[ "MIT" ]
null
null
null
Exercicios/Exercicios C - Uri #2/1070.cpp
yunger7/SENAI
85093e0ce3ed83e50dcd570d7c42b1dda4111929
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int x=0; scanf("%d",&x); if (x % 2 == 0){ x++; for (int c = 1; c <= 6; c++){ printf("%d\n",x); x += 2; } } else { for (int c = 1; c <= 6; c++){ printf("%d\n",x); x += 2; } } return 0; }
10.92
31
0.410256
yunger7
52a4dbe5f32625a9707455c1890d974e04646835
374
cpp
C++
cfi/call-wrong-num-func-vtable-stack.cpp
comparch-security/cpu-sec-bench
34506323a80637fae2a4d2add3bbbdaa4e6d8473
[ "MIT" ]
4
2021-11-12T03:41:54.000Z
2022-02-28T12:23:49.000Z
cfi/call-wrong-num-func-vtable-stack.cpp
comparch-security/cpu-sec-bench
34506323a80637fae2a4d2add3bbbdaa4e6d8473
[ "MIT" ]
null
null
null
cfi/call-wrong-num-func-vtable-stack.cpp
comparch-security/cpu-sec-bench
34506323a80637fae2a4d2add3bbbdaa4e6d8473
[ "MIT" ]
1
2021-11-29T08:38:28.000Z
2021-11-29T08:38:28.000Z
#include <cstdlib> #include "include/cfi.hpp" void fake_func() { exit(0); } int main() { Helper *orig = new Helper(); //create a fake vtable with 3 function pointers pfunc_t fake_vtable[3]; for(int i=0; i<3; i++) fake_vtable[i] = fake_func; // replace the vtable pointer write_vtable_pointer(orig,...
17
49
0.663102
comparch-security
52a5c046dd736f7f68106486587a68a59de74e22
958
cpp
C++
raygame/button.cpp
LegendaryyDoc/Inheritance
23b5d360209e1d4031e0c2f06a827a7ab6b6664f
[ "MIT" ]
null
null
null
raygame/button.cpp
LegendaryyDoc/Inheritance
23b5d360209e1d4031e0c2f06a827a7ab6b6664f
[ "MIT" ]
null
null
null
raygame/button.cpp
LegendaryyDoc/Inheritance
23b5d360209e1d4031e0c2f06a827a7ab6b6664f
[ "MIT" ]
null
null
null
#include "raylib.h" #include "button.h" void Button::Draw() { } bool Button::CheckForClick() { bool rtn = false; Vector2 cursor = GetMousePosition(); if (CheckCollisionPointRec(cursor, rec)) { if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) { currentFrame = 1; rtn= true; } else { currentFrame = 0; ...
15.966667
91
0.65762
LegendaryyDoc
52a634ae2ca0f5584870f7fc30931b47abe97c2b
9,764
cpp
C++
src/MushGame/MushGameUtil.cpp
mushware/adanaxis-core-app
679ac3e8a122e059bb208e84c73efc19753e87dd
[ "MIT" ]
9
2020-11-02T17:20:40.000Z
2021-12-25T15:35:36.000Z
src/MushGame/MushGameUtil.cpp
mushware/adanaxis-core-app
679ac3e8a122e059bb208e84c73efc19753e87dd
[ "MIT" ]
2
2020-06-27T23:14:13.000Z
2020-11-02T17:28:32.000Z
src/MushGame/MushGameUtil.cpp
mushware/adanaxis-core-app
679ac3e8a122e059bb208e84c73efc19753e87dd
[ "MIT" ]
1
2021-05-12T23:05:42.000Z
2021-05-12T23:05:42.000Z
//%Header { /***************************************************************************** * * File: src/MushGame/MushGameUtil.cpp * * Copyright: Andy Southgate 2002-2007, 2020 * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (...
31.701299
113
0.695924
mushware
52abcb2d2463f30400de695309b43093980da152
1,028
cpp
C++
UI/NewGameHUD/Widget/Widget_PressKey/SCpt_PressKey.cpp
Bornsoul/Revenger_JoyContinue
599716970ca87a493bf3a959b36de0b330b318f1
[ "MIT" ]
null
null
null
UI/NewGameHUD/Widget/Widget_PressKey/SCpt_PressKey.cpp
Bornsoul/Revenger_JoyContinue
599716970ca87a493bf3a959b36de0b330b318f1
[ "MIT" ]
null
null
null
UI/NewGameHUD/Widget/Widget_PressKey/SCpt_PressKey.cpp
Bornsoul/Revenger_JoyContinue
599716970ca87a493bf3a959b36de0b330b318f1
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "SCpt_PressKey.h" #include "WCpt_PressKey.h" #include "Widget_PressKeyItem.h" USCpt_PressKey::USCpt_PressKey() { PrimaryComponentTick.bCanEverTick = true; m_pWidgetComp_PressKey = CreateDefaultSubobject<UWCpt_PressKey>(TEXT("Wi...
20.979592
119
0.765564
Bornsoul
52abedf1089d41f26c66fdee47412282f04a64ba
22,784
cpp
C++
src/binfhe/lib/fhew.cpp
cs854paper58/PerfEvaFHE
4913920e20c3488556702bd15095cc2055fa381a
[ "BSD-2-Clause" ]
null
null
null
src/binfhe/lib/fhew.cpp
cs854paper58/PerfEvaFHE
4913920e20c3488556702bd15095cc2055fa381a
[ "BSD-2-Clause" ]
null
null
null
src/binfhe/lib/fhew.cpp
cs854paper58/PerfEvaFHE
4913920e20c3488556702bd15095cc2055fa381a
[ "BSD-2-Clause" ]
null
null
null
// @file fhew.cpp - FHEW scheme (RingGSW accumulator) implementation // The scheme is described in https://eprint.iacr.org/2014/816 and in // Daniele Micciancio and Yuriy Polyakov, "Bootstrapping in FHEW-like // Cryptosystems", Cryptology ePrint Archive, Report 2020/086, // https://eprint.iacr.org/2020/086. // // Full ...
36.689211
80
0.654231
cs854paper58
52ac0a177d59b88600e4f2ab5b7924807eee94ad
12,317
cpp
C++
HoodieScript/GameUtilities/PlayerUtilities.cpp
NamelessHoodie/HoodieScript
bc3b250af0a1c5dbf545779ba5ef11780edb299b
[ "MIT" ]
2
2021-12-16T22:53:45.000Z
2022-03-26T21:05:29.000Z
HoodieScript/GameUtilities/PlayerUtilities.cpp
NamelessHoodie/HoodieScript
bc3b250af0a1c5dbf545779ba5ef11780edb299b
[ "MIT" ]
null
null
null
HoodieScript/GameUtilities/PlayerUtilities.cpp
NamelessHoodie/HoodieScript
bc3b250af0a1c5dbf545779ba5ef11780edb299b
[ "MIT" ]
2
2022-01-13T19:27:52.000Z
2022-01-30T18:19:01.000Z
#include "pch.h" #include "PlayerUtilities.h" #include <Amir/player_network_session.h> #include "GameDebugClasses/game_data_man.h" #include "GameDebugClasses/world_chr_man.h" #include <script_runtime.h> namespace hoodie_script { void PlayerUtilities::clearInventory() { EquipGameData equipGameData = PlayerIns::getM...
36.548961
410
0.766177
NamelessHoodie
52acea0cd8473acad382677cc4855ea389d0c0f5
2,415
cpp
C++
CsPlugin/Source/CsCore/Public/Collision/Script/CsScriptLibrary_Collision.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
2
2019-03-17T10:43:53.000Z
2021-04-20T21:24:19.000Z
CsPlugin/Source/CsCore/Public/Collision/Script/CsScriptLibrary_Collision.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
CsPlugin/Source/CsCore/Public/Collision/Script/CsScriptLibrary_Collision.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. #include "Collision/Script/CsScriptLibrary_Collision.h" #include "CsCore.h" // Library #include "Library/CsLibrary_Property.h" #include "Object/CsLibrary_Object.h" // Cached #pragma region namespace NCsScriptLibraryCollision { namespace NCached { ...
32.2
195
0.804969
closedsum
52b2dbabe4832e3e3240b827e44c4c3c4d45b8a8
1,756
cpp
C++
PressureEngineCore/Src/Graphics/Particles/ParticleMaster.cpp
Playturbo/PressureEngine
6b023165fcaecb267e13cf5532ea26a8da3f1450
[ "MIT" ]
1
2017-09-13T13:29:27.000Z
2017-09-13T13:29:27.000Z
PressureEngineCore/Src/Graphics/Particles/ParticleMaster.cpp
Playturbo/PressureEngine
6b023165fcaecb267e13cf5532ea26a8da3f1450
[ "MIT" ]
null
null
null
PressureEngineCore/Src/Graphics/Particles/ParticleMaster.cpp
Playturbo/PressureEngine
6b023165fcaecb267e13cf5532ea26a8da3f1450
[ "MIT" ]
1
2019-01-18T07:16:59.000Z
2019-01-18T07:16:59.000Z
#include "ParticleMaster.h" namespace Pressure { std::map<ParticleTexture, std::list<Particle>> ParticleMaster::s_Particles; std::unique_ptr<ParticleRenderer> ParticleMaster::s_Renderer = nullptr; void ParticleMaster::init(Loader& loader, GLFWwindow* window) { s_Renderer = std::make_unique<ParticleRenderer>(loa...
27.4375
101
0.699886
Playturbo
52b2fdf2ce67c3f0b97c874549a2661d671b6dc4
1,393
cpp
C++
src/argos_lib/cpp/subsystems/swappable_controllers_subsystem.cpp
FRC1756-Argos/ArgosLib-Cpp
bd6f50329b9ddd1e603ee520b54c60d65f4fb6e7
[ "BSD-3-Clause" ]
null
null
null
src/argos_lib/cpp/subsystems/swappable_controllers_subsystem.cpp
FRC1756-Argos/ArgosLib-Cpp
bd6f50329b9ddd1e603ee520b54c60d65f4fb6e7
[ "BSD-3-Clause" ]
null
null
null
src/argos_lib/cpp/subsystems/swappable_controllers_subsystem.cpp
FRC1756-Argos/ArgosLib-Cpp
bd6f50329b9ddd1e603ee520b54c60d65f4fb6e7
[ "BSD-3-Clause" ]
null
null
null
/// \copyright Copyright (c) Argos FRC Team 1756. /// Open Source Software; you can modify and/or share it under the terms of /// the license file in the root directory of this project. #include "argos_lib/subsystems/swappable_controllers_subsystem.h" using namespace argos_lib; SwappableControl...
34.825
114
0.803302
FRC1756-Argos
52b64a8477f85d51f197e22e247e5e5eca124c96
952
cpp
C++
arrays/array_basics2.cpp
neerajsingh869/data-structures-and-algorithms
96087e68fdce743f90f75228af1c7d111f6b92b7
[ "MIT" ]
null
null
null
arrays/array_basics2.cpp
neerajsingh869/data-structures-and-algorithms
96087e68fdce743f90f75228af1c7d111f6b92b7
[ "MIT" ]
null
null
null
arrays/array_basics2.cpp
neerajsingh869/data-structures-and-algorithms
96087e68fdce743f90f75228af1c7d111f6b92b7
[ "MIT" ]
null
null
null
#include <iostream> #include <queue> using namespace std; void changes(int arr[], int n) { for (int i = 0; i < n; i++) { arr[i] = 10; } } int main() { int nums[] = {0, 1, 2, 3, 4, 5, 6, 7}; int n = sizeof(nums) / sizeof(nums[0]); // Before calling changes() for (int i = 0; i < n; i...
26.444444
86
0.563025
neerajsingh869
52b893a2537b9a4a29562dc015d3ad4b7f1ec5c1
576
cc
C++
src/math/Vector2.cc
shawndfl/game-sample
1937f4efb98e1ea5cc4f1124ba611b9626182d57
[ "MIT" ]
null
null
null
src/math/Vector2.cc
shawndfl/game-sample
1937f4efb98e1ea5cc4f1124ba611b9626182d57
[ "MIT" ]
null
null
null
src/math/Vector2.cc
shawndfl/game-sample
1937f4efb98e1ea5cc4f1124ba611b9626182d57
[ "MIT" ]
null
null
null
/* * Vector2.cc * * Created on: Aug 30, 2020 * Author: sdady */ #include "Vector2.h" #include "glad/glad.h" namespace bsk { /*************************************************/ Vector2::Vector2(): x(0), y(0) { } /*************************************************/ Vector2::Vector2(float x, float y) { t...
16.941176
51
0.369792
shawndfl
52b977559d59cd9245e09c35092a75cf4571f623
320
cpp
C++
src/h5viewer/main.cpp
martyngigg/h5view
2ab16840e0be132aca60f2815e9d45fab74c9ab1
[ "MIT" ]
null
null
null
src/h5viewer/main.cpp
martyngigg/h5view
2ab16840e0be132aca60f2815e9d45fab74c9ab1
[ "MIT" ]
3
2019-10-28T20:42:34.000Z
2020-03-08T09:38:54.000Z
src/h5viewer/main.cpp
martyngigg/h5view
2ab16840e0be132aca60f2815e9d45fab74c9ab1
[ "MIT" ]
null
null
null
#include <iostream> #include "h5view/h5view.hpp" using std::cerr; using std::cout; using h5view::first_object_name; int main(int argc, char **argv) { if(argc != 2) { cerr << "Usage: h5viewer filepath\n"; return 1; } std::cout << "First object name=" << first_object_name(argv[1]) << "\n"; return 0; }
18.823529
74
0.634375
martyngigg
52bba4b8a518acc0a303c2268558f9f7a9a5d643
3,530
cpp
C++
app/src/render/render_image.cpp
shuyanglin/antimony-interactive
4787dea233c62015babb0da5e299d9f41d500905
[ "MIT", "Unlicense" ]
null
null
null
app/src/render/render_image.cpp
shuyanglin/antimony-interactive
4787dea233c62015babb0da5e299d9f41d500905
[ "MIT", "Unlicense" ]
null
null
null
app/src/render/render_image.cpp
shuyanglin/antimony-interactive
4787dea233c62015babb0da5e299d9f41d500905
[ "MIT", "Unlicense" ]
null
null
null
#include <Python.h> #include <QCoreApplication> #include "render/render_image.h" #include "ui/viewport/depth_image.h" #include "fab/types/shape.h" #include "fab/util/region.h" #include "fab/tree/render.h" #include "fab/formats/png.h" RenderImage::RenderImage(Bounds b, QVector3D pos, float scale) : QObject(), bo...
28.699187
81
0.530312
shuyanglin
52bc0b38a7df65353149b6d577f1874c98f1a1ff
1,080
cpp
C++
svgimageprovider.cpp
user1095108/qtnanosvg
9260ed11c9ba7d711e87110723e11e0c5eb706e4
[ "Unlicense" ]
2
2021-09-07T04:33:48.000Z
2022-01-08T07:28:42.000Z
svgimageprovider.cpp
user1095108/qtnanosvg
9260ed11c9ba7d711e87110723e11e0c5eb706e4
[ "Unlicense" ]
1
2021-10-14T10:56:14.000Z
2021-10-14T10:56:14.000Z
svgimageprovider.cpp
user1095108/qtnanosvg
9260ed11c9ba7d711e87110723e11e0c5eb706e4
[ "Unlicense" ]
null
null
null
#include <QFile> #include <QPainter> #include "qtnanosvg.hpp" #include "nanosvg/src/nanosvg.h" #include "svgimageprovider.hpp" ////////////////////////////////////////////////////////////////////////////// SVGImageProvider::SVGImageProvider(): QQuickImageProvider(QQmlImageProviderBase::Pixmap) { } //////////////...
21.176471
78
0.496296
user1095108
1ebf0d559227f711f3d9cdecb096fb85ef3cc9cb
13,382
cpp
C++
gcpp/classes/ogetoptv.cpp
razzlefratz/MotleyTools
3c69c574351ce6f4b7e687c13278d4b6cbb200f3
[ "0BSD" ]
2
2015-10-15T19:32:42.000Z
2021-12-20T15:56:04.000Z
gcpp/classes/ogetoptv.cpp
razzlefratz/MotleyTools
3c69c574351ce6f4b7e687c13278d4b6cbb200f3
[ "0BSD" ]
null
null
null
gcpp/classes/ogetoptv.cpp
razzlefratz/MotleyTools
3c69c574351ce6f4b7e687c13278d4b6cbb200f3
[ "0BSD" ]
null
null
null
/*====================================================================* * * ogetoptv.cpp - implementation of the ogetoptv class. * * this is a posix compliant getoptv() function that supports absolutely * no extensions; visit the posix webpage that specifies this function * to learn more; * * <http://...
25.833977
110
0.453445
razzlefratz
1ebf66414def2e973c747bbf7321d75a8990a1b0
913
cpp
C++
Source/Bld.cpp
brigaudet/ERF
8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556
[ "BSD-3-Clause-LBNL" ]
3
2020-11-05T19:41:55.000Z
2021-04-23T01:00:17.000Z
Source/Bld.cpp
brigaudet/ERF
8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556
[ "BSD-3-Clause-LBNL" ]
98
2021-02-03T21:55:22.000Z
2022-03-31T05:14:42.000Z
Source/Bld.cpp
brigaudet/ERF
8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556
[ "BSD-3-Clause-LBNL" ]
12
2020-11-02T04:55:38.000Z
2021-11-12T22:42:57.000Z
#include <AMReX_LevelBld.H> #include "ERF.H" class ERFBld : public amrex::LevelBld { virtual void variableSetUp(); virtual void variableCleanUp(); virtual amrex::AmrLevel* operator()(); virtual amrex::AmrLevel* operator()( amrex::Amr& papa, int lev, const amrex::Geometry& level_geom, const amr...
16.303571
54
0.683461
brigaudet
1ec07297de92bed7558c678b21e7a15f83bfa95a
2,637
cpp
C++
Cpp/126.word-ladder-ii.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
1
2015-12-19T23:05:35.000Z
2015-12-19T23:05:35.000Z
Cpp/126.word-ladder-ii.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
null
null
null
Cpp/126.word-ladder-ii.cpp
zszyellow/leetcode
2ef6be04c3008068f8116bf28d70586e613a48c2
[ "MIT" ]
null
null
null
class Solution { public: vector<vector<string>> findLadders(string beginWord, string endWord, vector<string>& wordList) { vector<vector<string>> res; if (std::find(wordList.begin(), wordList.end(), endWord) == wordList.end()) return res; // preprocessing int L = beginWord.si...
39.954545
109
0.452408
zszyellow
1ec2ca85529a4eac8478593b8c3046ce4f17f0f1
3,344
cpp
C++
aoc21/code18.cpp
nakst/jam
1ddca72698d86eb300c616732f2b9d5989f2a2bc
[ "MIT" ]
3
2021-11-25T16:23:55.000Z
2022-03-03T03:35:15.000Z
aoc21/code18.cpp
nakst/jam
1ddca72698d86eb300c616732f2b9d5989f2a2bc
[ "MIT" ]
null
null
null
aoc21/code18.cpp
nakst/jam
1ddca72698d86eb300c616732f2b9d5989f2a2bc
[ "MIT" ]
null
null
null
#include "ds.h" #define OPEN (-1) #define CLOSE (-2) #define COMMA (-3) struct Number { Array<int> c; }; Array<Number> numbers = {}; Number Add(Number left, Number right) { Number x = {}; x.c.Add(OPEN); for (int i = 0; i < left.c.Length(); i++) { x.c.Add(left.c[i]); } x.c.Add(COMMA); for (int i = 0; i ...
16
59
0.453947
nakst
1ec32d29433f15fc3dee70892d16c3f2aa76d0f5
1,139
hpp
C++
editor/src/FilePickerDialog.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
editor/src/FilePickerDialog.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
editor/src/FilePickerDialog.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> #include <filesystem> namespace kokko { namespace editor { class FilePickerDialog { public: enum class Type { FileOpen, FileSave, FolderOpen, }; struct Descriptor { const char* popupTitle; const char* descriptionText; const char* actionButtonT...
17.523077
81
0.701493
aleksigron
1ec575e0ba9d494246a7a3391596c3f3253171f2
604
hpp
C++
src/framework/shared/inc/private/common/fxpkgioshared.hpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
994
2015-03-18T21:37:07.000Z
2019-04-26T04:04:14.000Z
src/framework/shared/inc/private/common/fxpkgioshared.hpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
13
2019-06-13T15:58:03.000Z
2022-02-18T22:53:35.000Z
src/framework/shared/inc/private/common/fxpkgioshared.hpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
350
2015-03-19T04:29:46.000Z
2019-05-05T23:26:50.000Z
/*++ Copyright (c) Microsoft Corporation Module Name: FxPkgIoShared.hpp Abstract: This file contains portion of FxPkgIo.hpp that is need in shared code. Author: Environment: Revision History: --*/ #ifndef _FXPKGIOSHARED_HPP_ #define _FXPKGIOSHARED_HPP_ enum FxIoStopProcessingForPowerAction { Fx...
16.324324
93
0.789735
IT-Enthusiast-Nepal
1ecd7463a2a9e13686fe60699bf7e5b6e21ece86
3,891
hpp
C++
c++/en/old_source_codes/nns_simuls/nns-3.0/nns-1.2/source_codes/Main.hpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
c++/en/old_source_codes/nns_simuls/nns-3.0/nns-1.2/source_codes/Main.hpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
c++/en/old_source_codes/nns_simuls/nns-3.0/nns-1.2/source_codes/Main.hpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#ifndef __MAIN_HPP_ #define __MAIN_HPP_ // For CSRN #include "ApiGnuplot.hpp" #include "ApiPostprocess.hpp" #include "BadukData.hpp" #include "Cnn.hpp" #include "CommandLineArguments.hpp" #include "Config.hpp" #include "ShellCommands.hpp" #include "Myiostream.hpp" // For reinforcement learning #include "Gr...
38.524752
90
0.66641
aimldl
1ee1015465fdb830af43912e70139f3691a2efa4
1,704
hpp
C++
3rdParty/detail/index_lsb_set.hpp
zero9178/cld
2899ade8045074c5ee939253d2d7f8067c46e72d
[ "MIT" ]
14
2020-10-16T08:29:32.000Z
2021-12-21T10:37:05.000Z
3rdParty/detail/index_lsb_set.hpp
zero9178/cld
2899ade8045074c5ee939253d2d7f8067c46e72d
[ "MIT" ]
null
null
null
3rdParty/detail/index_lsb_set.hpp
zero9178/cld
2899ade8045074c5ee939253d2d7f8067c46e72d
[ "MIT" ]
null
null
null
// BITSET2 // // Copyright Claas Bontus // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ClaasBontus/bitset2 // #ifndef BITSET2_INDEX_L...
28.4
117
0.61385
zero9178
1ee2d992c12ef1713e38aeac04e66ba6ac8e5d00
2,236
cpp
C++
src/SpreadsheetImpl.cpp
zhangf911/SPLib
57ae498f61abe9c14670a974340251cd67ca99fb
[ "BSD-2-Clause" ]
1
2015-11-06T03:40:44.000Z
2015-11-06T03:40:44.000Z
src/SpreadsheetImpl.cpp
amyvmiwei/SPLib
57ae498f61abe9c14670a974340251cd67ca99fb
[ "BSD-2-Clause" ]
null
null
null
src/SpreadsheetImpl.cpp
amyvmiwei/SPLib
57ae498f61abe9c14670a974340251cd67ca99fb
[ "BSD-2-Clause" ]
1
2020-12-16T03:20:45.000Z
2020-12-16T03:20:45.000Z
// File: SpreadsheetImpl.cpp // SpreadsheetImpl implementation file // #include "splib.h" #include "TableImpl.h" #include "splibint.h" #include <string.h> namespace splib { SpreadsheetImpl::SpreadsheetImpl() { } SpreadsheetImpl::~SpreadsheetImpl() { for (std::vector<Table*>::size_type i = 0; i ...
23.291667
73
0.580501
zhangf911
1ee399fb1e535109c68f9cab8d971597772bcae3
31,689
cc
C++
src/coordinator_node.cc
qian-long/TileDB-multinode
ba2a38b2cc6169935c73b76af8c53e8544c11300
[ "MIT" ]
null
null
null
src/coordinator_node.cc
qian-long/TileDB-multinode
ba2a38b2cc6169935c73b76af8c53e8544c11300
[ "MIT" ]
null
null
null
src/coordinator_node.cc
qian-long/TileDB-multinode
ba2a38b2cc6169935c73b76af8c53e8544c11300
[ "MIT" ]
null
null
null
#include <mpi.h> #include <string> #include <sstream> #include <cstring> #include <ostream> #include <iostream> #include <istream> #include <fstream> #include <algorithm> #include <cstdio> #include <functional> #include "assert.h" #include "coordinator_node.h" #include "csv_file.h" #include "debug.h" #include "hash_fun...
31.4375
144
0.678122
qian-long
1ee853fe5916fd89bba1a6a53ff83af9c68b963f
2,691
cpp
C++
vpnor/test/toc_flags.cpp
ibm-openbmc/hiomapd
8cef63e3a3652b25f6a310800c1e0bf09aeed4c6
[ "Apache-2.0" ]
14
2021-11-04T07:47:37.000Z
2022-03-21T10:10:30.000Z
vpnor/test/toc_flags.cpp
ibm-openbmc/hiomapd
8cef63e3a3652b25f6a310800c1e0bf09aeed4c6
[ "Apache-2.0" ]
17
2018-09-20T02:29:41.000Z
2019-04-05T04:43:11.000Z
vpnor/test/toc_flags.cpp
ibm-openbmc/hiomapd
8cef63e3a3652b25f6a310800c1e0bf09aeed4c6
[ "Apache-2.0" ]
9
2017-02-14T03:05:09.000Z
2019-01-07T20:39:42.000Z
// SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2018 IBM Corp. #include "config.h" #include "vpnor/table.hpp" #include <cassert> #include "common.h" #include "vpnor/ffs.h" static constexpr auto BLOCK_SIZE = 4 * 1024; static constexpr auto DATA_MASK = ((1 << 24) - 1); int main() { namespace vpnor = ope...
33.6375
74
0.679301
ibm-openbmc
1eeefdf0d07916c5eefbbf7e284b65503b3b4158
1,542
hpp
C++
gui/grid_widget.hpp
myra-b/ising
2e03e121e37ecf00411f4aaf3275fa9259dd40d3
[ "Apache-2.0" ]
3
2017-09-19T11:27:59.000Z
2019-05-09T08:46:07.000Z
gui/grid_widget.hpp
myrabiedermann/ising
2e03e121e37ecf00411f4aaf3275fa9259dd40d3
[ "Apache-2.0" ]
3
2017-11-14T23:13:39.000Z
2017-12-12T11:46:53.000Z
gui/grid_widget.hpp
myrabiedermann/ising
2e03e121e37ecf00411f4aaf3275fa9259dd40d3
[ "Apache-2.0" ]
1
2017-08-16T12:43:37.000Z
2017-08-16T12:43:37.000Z
#pragma once #ifdef QT_NO_DEBUG #ifndef QT_NO_DEBUG_OUTPUT #define QT_NO_DEBUG_OUTPUT #endif #endif #ifndef USE_MATH_DEFINES #define USE_MATH_DEFINES #endif // #include "global.hpp" #include "system/montecarlohost.hpp" #include "system/spinsystem.hpp" #include <QGraphicsView> #include <QGraphics...
21.71831
101
0.699741
myra-b
1ef2387c954bd00f8f4f0cea3ba1c849ce921e28
26,464
cpp
C++
Tools/GUILayer/UITypesBinding.cpp
yorung/XLE
083ce4c9d3fe32002ff5168e571cada2715bece4
[ "MIT" ]
1
2016-06-01T10:41:12.000Z
2016-06-01T10:41:12.000Z
Tools/GUILayer/UITypesBinding.cpp
yorung/XLE
083ce4c9d3fe32002ff5168e571cada2715bece4
[ "MIT" ]
null
null
null
Tools/GUILayer/UITypesBinding.cpp
yorung/XLE
083ce4c9d3fe32002ff5168e571cada2715bece4
[ "MIT" ]
null
null
null
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma warning(disable:4512) #include "UITypesBinding.h" #include "EngineForward.h" #include "ExportedNativeTypes.h" #include "../ToolsRig/M...
38.022989
130
0.599607
yorung
1ef4549004d79180e6d815c3e1c90e953ab6bd85
3,651
cpp
C++
src/main.cpp
dniklaus/wiring-adafruit-fram-spi-test
68d837325c512482d98f60414567764871a84fac
[ "MIT" ]
1
2021-01-07T13:10:17.000Z
2021-01-07T13:10:17.000Z
src/main.cpp
dniklaus/wiring-adafruit-fram-spi-test
68d837325c512482d98f60414567764871a84fac
[ "MIT" ]
null
null
null
src/main.cpp
dniklaus/wiring-adafruit-fram-spi-test
68d837325c512482d98f60414567764871a84fac
[ "MIT" ]
null
null
null
/* * main.cpp * * Created on: 15.03.2017 * Author: niklausd */ #include <Arduino.h> #include <SPI.h> #include <Adafruit_FRAM_SPI.h> // PlatformIO libraries #include <SerialCommand.h> // pio lib install 173, lib details see https://github.com/kroimon/Arduino-SerialCommand #include <Timer.h> // pio...
23.554839
116
0.676527
dniklaus
1ef4dd357e2c5781a5f96babebc9f2cbec703052
109
hpp
C++
src/include/randest/data_provider.hpp
renegat96/randest
29449ff61398526cc1b88a1f003ed8fddef14693
[ "MIT" ]
null
null
null
src/include/randest/data_provider.hpp
renegat96/randest
29449ff61398526cc1b88a1f003ed8fddef14693
[ "MIT" ]
null
null
null
src/include/randest/data_provider.hpp
renegat96/randest
29449ff61398526cc1b88a1f003ed8fddef14693
[ "MIT" ]
null
null
null
#include <randest/data_provider.tcc> #include <randest/mem_data.hpp> #include <randest/binary_file_data.hpp>
27.25
39
0.807339
renegat96
1ef53ec52f3b80be3446bc57cdd8442819d20fc5
3,867
cpp
C++
src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_meathook.cpp
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
1
2017-11-16T19:04:07.000Z
2017-11-16T19:04:07.000Z
src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_meathook.cpp
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
null
null
null
src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_meathook.cpp
mfooo/wow
3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d
[ "OpenSSL" ]
null
null
null
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * This program 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 2 of the License, or * (at your option) any l...
28.021739
92
0.653737
mfooo
1ef79654974ecb856f0578181f16a33f388ebd9c
10,181
hpp
C++
common/util/bindings.hpp
Depau/tablecloth
c073d88130eb0b50552a7cd1cf9bc1576b9936ec
[ "MIT" ]
38
2018-08-06T13:12:57.000Z
2020-12-07T22:18:48.000Z
common/util/bindings.hpp
Depau/tablecloth
c073d88130eb0b50552a7cd1cf9bc1576b9936ec
[ "MIT" ]
5
2018-11-02T09:56:03.000Z
2020-02-14T22:34:55.000Z
common/util/bindings.hpp
Depau/tablecloth
c073d88130eb0b50552a7cd1cf9bc1576b9936ec
[ "MIT" ]
5
2018-10-02T08:40:56.000Z
2020-02-11T00:55:39.000Z
#pragma once #include <memory> #include <variant> namespace cloth { template<typename T> struct owner { constexpr explicit owner(T* t) noexcept : _val(t) {} constexpr explicit operator T*() noexcept { return _val; } private: T* _val; }; } // namespace cloth /// Generate conversion...
36.754513
100
0.445732
Depau
1ef92e66563339e725e9db1ddd5944d44ce3bc82
1,548
cpp
C++
Source/OpenGL/GLBuffer.cpp
ShenMian/Graphics
729364ede3218a236051d3c1e74779021869d363
[ "Apache-2.0" ]
20
2021-12-10T05:45:00.000Z
2022-03-28T00:18:11.000Z
Source/OpenGL/GLBuffer.cpp
ShenMian/Graphics
729364ede3218a236051d3c1e74779021869d363
[ "Apache-2.0" ]
8
2021-12-10T08:55:03.000Z
2022-03-09T00:51:35.000Z
Source/OpenGL/GLBuffer.cpp
ShenMian/Graphics
729364ede3218a236051d3c1e74779021869d363
[ "Apache-2.0" ]
2
2021-11-13T12:02:29.000Z
2021-12-03T05:02:19.000Z
// Copyright 2021 ShenMian // License(Apache-2.0) #include "GLBuffer.h" #include "GLCheck.h" #include <cassert> #include <cstring> #include <unordered_map> namespace { std::unordered_map<Buffer::Type, uint32_t> GLType = { {Buffer::Type::Vertex, GL_ARRAY_BUFFER}, {Buffer::Type::Index, GL_ELEMENT_ARRAY_BUFFER}, {B...
18.428571
58
0.702842
ShenMian
1efaa02d80c4ec972f788dbdf9a4ee1d557db82e
10,545
cpp
C++
TVGameShow/software/CFGTOOLDlg.cpp
cuongquay/led-matrix-display
6dd0e3be9ee23862610dab7b0d40970c6900e5e4
[ "Apache-2.0" ]
null
null
null
TVGameShow/software/CFGTOOLDlg.cpp
cuongquay/led-matrix-display
6dd0e3be9ee23862610dab7b0d40970c6900e5e4
[ "Apache-2.0" ]
null
null
null
TVGameShow/software/CFGTOOLDlg.cpp
cuongquay/led-matrix-display
6dd0e3be9ee23862610dab7b0d40970c6900e5e4
[ "Apache-2.0" ]
1
2020-06-13T08:34:26.000Z
2020-06-13T08:34:26.000Z
// CFGTOOLDlg.cpp : implementation file // #include "stdafx.h" #include "CFGTOOL.h" #include "CFGTOOLDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define LOAD_DATA_MSG 1 #define MAX_DIGIT 12 BYTE buffer[MAX_DIGIT] = {0x00}...
24.811765
84
0.631958
cuongquay
4805c2f7327658e3143b07363565bc5f92c43818
4,790
cpp
C++
src/Semantic/check missing return.cpp
Kerndog73/STELA
11449b4bb440494f3ec4b1172b2688b5ec1bcd0a
[ "MIT" ]
10
2018-06-20T05:12:59.000Z
2021-11-23T02:56:04.000Z
src/Semantic/check missing return.cpp
Kerndog73/STELA
11449b4bb440494f3ec4b1172b2688b5ec1bcd0a
[ "MIT" ]
null
null
null
src/Semantic/check missing return.cpp
Kerndog73/STELA
11449b4bb440494f3ec4b1172b2688b5ec1bcd0a
[ "MIT" ]
null
null
null
// // check missing return.cpp // STELA // // Created by Indi Kernick on 12/12/18. // Copyright © 2018 Indi Kernick. All rights reserved. // #include "check missing return.hpp" #include "scope lookup.hpp" using namespace stela; namespace { class Visitor final : public ast::Visitor { public: explicit Visitor(...
25.343915
103
0.573695
Kerndog73
48060382023e744db14683300891dcbbbbc883d5
9,770
cpp
C++
Software/OOP/Version 2/Soccer_Simulation_v2/Classes/Camera.cpp
Brenocq/SoccerOpenRCJ
1711e251861c124e49df21abb63eb169569bea4f
[ "MIT" ]
2
2019-05-02T23:01:06.000Z
2019-05-11T01:29:06.000Z
Software/OOP/Version 2/Soccer_Simulation_v2/Classes/Camera.cpp
Brenocq/SoccerOpenRCJ
1711e251861c124e49df21abb63eb169569bea4f
[ "MIT" ]
null
null
null
Software/OOP/Version 2/Soccer_Simulation_v2/Classes/Camera.cpp
Brenocq/SoccerOpenRCJ
1711e251861c124e49df21abb63eb169569bea4f
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////// // Camera.cpp // Implementation of the Class Camera // Created on: 21-mar-2018 21:46:56 // Original author: Breno Queiroz /////////////////////////////////////////////////////////// #include "Camera.h" #if !defined(ARDUINO) #include <ios...
27.755682
156
0.649949
Brenocq
4806568eb5c5e9c717e90d55e0ec7a96409bd50e
5,465
hpp
C++
src/vlGraphics/EdgeUpdateCallback.hpp
zpc930/visualizationlibrary
c81fa75c720a3d04d295b977a1f5dc4624428b53
[ "BSD-2-Clause" ]
null
null
null
src/vlGraphics/EdgeUpdateCallback.hpp
zpc930/visualizationlibrary
c81fa75c720a3d04d295b977a1f5dc4624428b53
[ "BSD-2-Clause" ]
null
null
null
src/vlGraphics/EdgeUpdateCallback.hpp
zpc930/visualizationlibrary
c81fa75c720a3d04d295b977a1f5dc4624428b53
[ "BSD-2-Clause" ]
null
null
null
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://www.visualizationlibrary.org ...
47.112069
140
0.507045
zpc930
480779afd2cdd1dfb5a4ebd00e961fb057db8e51
3,344
cpp
C++
libraries/audio/src/AudioEffectOptions.cpp
ey6es/hifi
23f9c799dde439e4627eef45341fb0d53feff80b
[ "Apache-2.0" ]
1
2015-03-11T19:49:20.000Z
2015-03-11T19:49:20.000Z
libraries/audio/src/AudioEffectOptions.cpp
ey6es/hifi
23f9c799dde439e4627eef45341fb0d53feff80b
[ "Apache-2.0" ]
null
null
null
libraries/audio/src/AudioEffectOptions.cpp
ey6es/hifi
23f9c799dde439e4627eef45341fb0d53feff80b
[ "Apache-2.0" ]
null
null
null
// // AudioEffectOptions.cpp // libraries/audio/src // // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "AudioEffectOptions.h" static const QString MAX_ROOM_SIZE_HANDL...
37.573034
94
0.700957
ey6es
48081e868788e0ee93c3e3e089e42fab2d22bd84
720
cpp
C++
hiro/gtk/widget/icon-view-item.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
153
2020-07-25T17:55:29.000Z
2021-10-01T23:45:01.000Z
hiro/gtk/widget/icon-view-item.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
245
2021-10-08T09:14:46.000Z
2022-03-31T08:53:13.000Z
hiro/gtk/widget/icon-view-item.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
44
2020-07-25T08:51:55.000Z
2021-09-25T16:09:01.000Z
#if defined(Hiro_IconView) namespace hiro { auto pIconViewItem::construct() -> void { } auto pIconViewItem::destruct() -> void { } auto pIconViewItem::setIcon(const image& icon) -> void { if(auto parent = _parent()) { parent->setItemIcon(self().offset(), icon); } } auto pIconViewItem::setSelected(bool sele...
19.459459
66
0.663889
CasualPokePlayer
48096ad7d2fb39deb394920b266dff9a8c83229c
3,733
hpp
C++
include/bulk/partitionings/block.hpp
roelhem/Bulk
8a84bb8cf0a71a5d67ed6ffd818f072d9076630f
[ "MIT" ]
92
2016-05-11T14:26:04.000Z
2022-01-07T03:54:19.000Z
include/bulk/partitionings/block.hpp
roelhem/Bulk
8a84bb8cf0a71a5d67ed6ffd818f072d9076630f
[ "MIT" ]
6
2016-05-15T05:58:47.000Z
2020-11-25T15:29:26.000Z
include/bulk/partitionings/block.hpp
roelhem/Bulk
8a84bb8cf0a71a5d67ed6ffd818f072d9076630f
[ "MIT" ]
13
2016-05-14T11:14:14.000Z
2022-01-25T10:17:24.000Z
#include "partitioning.hpp" namespace bulk { /** * A block distribution. This equally block-distributes the first G axes. */ template <int D, int G = D> class block_partitioning : public rectangular_partitioning<D, G> { public: using rectangular_partitioning<D, G>::local_size; using rectangular_partitioning<D,...
29.864
78
0.587999
roelhem
4810dc57efded153cc58025a7b7ead6e5999d4e8
3,826
cpp
C++
SDKs/CryCode/3.6.15/CryEngine/CryAction/VehicleSystem/VehicleDamageBehaviorAISignal.cpp
amrhead/FireNET
34d439aa0157b0c895b20b2b664fddf4f9b84af1
[ "BSD-2-Clause" ]
4
2017-12-18T20:10:16.000Z
2021-02-07T21:21:24.000Z
SDKs/CryCode/3.8.1/CryEngine/CryAction/VehicleSystem/VehicleDamageBehaviorAISignal.cpp
amrhead/FireNET
34d439aa0157b0c895b20b2b664fddf4f9b84af1
[ "BSD-2-Clause" ]
null
null
null
SDKs/CryCode/3.8.1/CryEngine/CryAction/VehicleSystem/VehicleDamageBehaviorAISignal.cpp
amrhead/FireNET
34d439aa0157b0c895b20b2b664fddf4f9b84af1
[ "BSD-2-Clause" ]
3
2019-03-11T21:36:15.000Z
2021-02-07T21:21:26.000Z
/************************************************************************* Crytek Source File. Copyright (C), Crytek Studios, 2001-2006. ------------------------------------------------------------------------- $Id$ $DateTime$ Description: Implements a damage behavior which send an AI signal --------------------------...
26.943662
120
0.653424
amrhead
48125ad0a671cb50bf7bb151cdbd99db6bfeb1a6
3,835
cpp
C++
Advanced Algorithms and Complexity/Coping with NP-complete problems/maximise_weight.cpp
OssamaEls/Data-Structures-and-Algorithms
b6affc28a792f577010e666d565ec6cc7f0ecbfa
[ "MIT" ]
null
null
null
Advanced Algorithms and Complexity/Coping with NP-complete problems/maximise_weight.cpp
OssamaEls/Data-Structures-and-Algorithms
b6affc28a792f577010e666d565ec6cc7f0ecbfa
[ "MIT" ]
null
null
null
Advanced Algorithms and Complexity/Coping with NP-complete problems/maximise_weight.cpp
OssamaEls/Data-Structures-and-Algorithms
b6affc28a792f577010e666d565ec6cc7f0ecbfa
[ "MIT" ]
null
null
null
//Input Format.The first line contains an integer 𝑛 — the number of people in the company.The next line //contains 𝑛 numbers 𝑓𝑖 — the fun factors of each of the 𝑛 people in the company.Each of the next 𝑛−1 //lines describes the subordination structure.Everyone but for the CEO of the company has exactly one //dir...
29.5
116
0.59661
OssamaEls
4815fcc9841fd2f3e523841e8749cd62ecf0fd64
4,359
cpp
C++
tests/src/nearest_neighbors/visible_proximity_tests.cpp
falcowinkler/flockingbird
eed3e7cead4a37635625d1055fb0a830e6152d1b
[ "MIT" ]
2
2021-05-30T19:19:50.000Z
2021-08-29T05:58:21.000Z
tests/src/nearest_neighbors/visible_proximity_tests.cpp
falcowinkler/flockingbird
eed3e7cead4a37635625d1055fb0a830e6152d1b
[ "MIT" ]
null
null
null
tests/src/nearest_neighbors/visible_proximity_tests.cpp
falcowinkler/flockingbird
eed3e7cead4a37635625d1055fb0a830e6152d1b
[ "MIT" ]
1
2021-12-01T07:00:49.000Z
2021-12-01T07:00:49.000Z
#include "nearest_neighbors/nanoflann.hpp" #include "nearest_neighbors/visible_proximity.hpp" #include "utility/random_numbers.hpp" #include "gtest/gtest.h" #include <cmath> #include <cstdlib> #include <vector> using namespace nanoflann; using namespace flockingbird; class VisibleProximityTest : public ::testing::Tes...
36.325
99
0.666208
falcowinkler
4818223e907164f123db5669c2d9396977ef78db
3,431
cpp
C++
src/Library/Shaders/TransparencyShaderOp.cpp
aravindkrishnaswamy/rise
297d0339a7f7acd1418e322a30a21f44c7dbbb1d
[ "BSD-2-Clause" ]
1
2018-12-20T19:31:02.000Z
2018-12-20T19:31:02.000Z
src/Library/Shaders/TransparencyShaderOp.cpp
aravindkrishnaswamy/rise
297d0339a7f7acd1418e322a30a21f44c7dbbb1d
[ "BSD-2-Clause" ]
null
null
null
src/Library/Shaders/TransparencyShaderOp.cpp
aravindkrishnaswamy/rise
297d0339a7f7acd1418e322a30a21f44c7dbbb1d
[ "BSD-2-Clause" ]
null
null
null
////////////////////////////////////////////////////////////////////// // // TransparencyShaderOp.cpp - Implementation of the TransparencyShaderOp class // // Author: Aravind Krishnaswamy // Date of Birth: March 8, 2005 // Tabs: 4 // Comments: // // License Information: Please see the attached LICENSE.TXT file ...
33.637255
97
0.67269
aravindkrishnaswamy
481a1e888edeec4886eee0735473addf22e87086
11,722
cpp
C++
src/robot/devices/externalFileClass.cpp
1069B/Tower_Takeover
331a323216cd006a8cc3bc7a326ebe3a463e429f
[ "MIT" ]
null
null
null
src/robot/devices/externalFileClass.cpp
1069B/Tower_Takeover
331a323216cd006a8cc3bc7a326ebe3a463e429f
[ "MIT" ]
3
2019-07-26T15:56:19.000Z
2019-07-29T02:55:32.000Z
src/robot/devices/externalFileClass.cpp
1069B/Tower_Takeover
331a323216cd006a8cc3bc7a326ebe3a463e429f
[ "MIT" ]
null
null
null
#include "externalFileClass.hpp" bool ExternalFile::SDCardIsInserted(){ std::fstream m_file; m_file.open("/usd/.PROS_SD_Detection/SD_Card.txt", std::ios::app); m_file.close(); m_file.open("/usd/.PROS_SD_Detection/SD_Card.txt", std::ios::in); if(m_file.is_open()){ m_file.close(); return true; }...
35.095808
115
0.649548
1069B
481d74ac07a63be9e04420ce81ed6a85c7a87c44
551
cpp
C++
55. Jump Game| LIS variant.cpp
i-am-grut/Leetcode-top-interview-q
5f763f9a15558a1bfef62d860a4fe89326eee450
[ "MIT" ]
2
2021-06-25T07:26:30.000Z
2021-07-14T05:46:57.000Z
55. Jump Game| LIS variant.cpp
i-am-grut/Leetcode-top-interview-q
5f763f9a15558a1bfef62d860a4fe89326eee450
[ "MIT" ]
null
null
null
55. Jump Game| LIS variant.cpp
i-am-grut/Leetcode-top-interview-q
5f763f9a15558a1bfef62d860a4fe89326eee450
[ "MIT" ]
null
null
null
class Solution { public: bool canJump(vector<int>& nums) { int n=nums.size(); if(n==0 || n==1){ return true; } if(nums[0]==0){ return false; } bool dp[n]; dp[0]=true; //LIS for(int i=1;i<n;i++){ dp[...
20.407407
49
0.321234
i-am-grut
481eb51151b2c71d48f3439b321aff841c45f75f
6,222
cpp
C++
sunglasses/src/Physics/GJKAlgorithm.cpp
jonathanbuchanan/Sunglasses
ab82b66f32650a813234cee8963f9b598ef5c1c8
[ "MIT" ]
1
2016-04-01T02:21:27.000Z
2016-04-01T02:21:27.000Z
sunglasses/src/Physics/GJKAlgorithm.cpp
jonathanbuchanan/Sunglasses
ab82b66f32650a813234cee8963f9b598ef5c1c8
[ "MIT" ]
49
2015-07-08T13:48:06.000Z
2017-06-27T01:40:51.000Z
sunglasses/src/Physics/GJKAlgorithm.cpp
jonathanbuchanan/Sunglasses
ab82b66f32650a813234cee8963f9b598ef5c1c8
[ "MIT" ]
null
null
null
// Copyright 2016 Jonathan Buchanan. // This file is part of Sunglasses, which is licensed under the MIT License. // See LICENSE.md for details. #include <sunglasses/Physics/GJKAlgorithm.h> #include <iostream> namespace sunglasses { glm::vec3 getFarthestPointAlongAxis(PhysicsColliderMesh *mesh, glm::vec3 axis) { ...
29.628571
112
0.612022
jonathanbuchanan
481ed80201f82ef25036bd11ae8d6b31cc62cb4b
3,072
cpp
C++
artifact/storm/src/storm/utility/builder.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
null
null
null
artifact/storm/src/storm/utility/builder.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
null
null
null
artifact/storm/src/storm/utility/builder.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
1
2022-02-05T12:39:53.000Z
2022-02-05T12:39:53.000Z
#include <storm/models/sparse/StochasticTwoPlayerGame.h> #include "storm/utility/builder.h" #include "storm/models/sparse/Dtmc.h" #include "storm/models/sparse/Ctmc.h" #include "storm/models/sparse/Mdp.h" #include "storm/models/sparse/Pomdp.h" #include "storm/models/sparse/MarkovAutomaton.h" #include "storm/exception...
73.142857
320
0.681641
glatteis
48212a1472ffd40fc0488b5f9d61fc9fa7296d10
3,041
cpp
C++
libraries/chain/evaluator.cpp
1aerostorm/golos
06105e960537347bee7c4657e0b63c85adfff26f
[ "MIT" ]
8
2019-03-29T10:44:05.000Z
2019-11-01T12:06:57.000Z
libraries/chain/evaluator.cpp
1aerostorm/golos
06105e960537347bee7c4657e0b63c85adfff26f
[ "MIT" ]
63
2019-12-29T18:26:15.000Z
2021-08-25T13:14:25.000Z
libraries/chain/evaluator.cpp
1aerostorm/golos
06105e960537347bee7c4657e0b63c85adfff26f
[ "MIT" ]
5
2019-04-11T17:58:55.000Z
2019-10-27T16:24:21.000Z
#include <golos/chain/evaluator.hpp> #include <golos/chain/database.hpp> #include <golos/chain/account_object.hpp> #include <golos/chain/steem_objects.hpp> namespace golos { namespace chain { asset get_balance(const database& _db, const account_object &account, balance_type type, asset_symbol_type symbol) { ...
47.515625
124
0.542914
1aerostorm
48218bcc6c1635295fbbefa0cc4105edc15745de
719
cpp
C++
src/attic/BezierCurve.cpp
mgerhardy/myplayground
ad5ed00e7946108f2991ad9031096da161f2e6a7
[ "MIT" ]
1
2018-01-18T20:09:47.000Z
2018-01-18T20:09:47.000Z
src/attic/BezierCurve.cpp
mgerhardy/myplayground
ad5ed00e7946108f2991ad9031096da161f2e6a7
[ "MIT" ]
null
null
null
src/attic/BezierCurve.cpp
mgerhardy/myplayground
ad5ed00e7946108f2991ad9031096da161f2e6a7
[ "MIT" ]
null
null
null
#include "BezierCurve.h" #include "engine/common/Math.h" #include <assert.h> BezierCurve::BezierCurve () { } BezierCurve::~BezierCurve () { } float BezierCurve::lerp (const double a, const double b, const double t) { const double p = a + (b - a) * t; return p; } float BezierCurve::bezier (const Points& points, co...
17.975
72
0.641168
mgerhardy
4827b63227ac1ae126081fcbed824c8e9077ca0c
164,620
cpp
C++
vulkanon/generator/tmp/05-gen-callingvector/vulkanon/l0_boss5-left.cpp
pqrs-org/Vulkanon
3c161b83e64f18be2ba916055e5761fbc0b61028
[ "Unlicense" ]
5
2020-04-20T02:28:15.000Z
2021-12-05T22:04:06.000Z
vulkanon/generator/tmp/05-gen-callingvector/vulkanon/l0_boss5-left.cpp
pqrs-org/Vulkanon
3c161b83e64f18be2ba916055e5761fbc0b61028
[ "Unlicense" ]
null
null
null
vulkanon/generator/tmp/05-gen-callingvector/vulkanon/l0_boss5-left.cpp
pqrs-org/Vulkanon
3c161b83e64f18be2ba916055e5761fbc0b61028
[ "Unlicense" ]
null
null
null
extern const BulletStepFunc bullet_7381bc6f43eb422d458a2239f53566ea_8bfcd38de5961107785fdc25e687ca15[] = { stepfunc_efe2c0d124d296be77286f5d11e9f0b8_8bfcd38de5961107785fdc25e687ca15, stepfunc_0fdd59aa50ca3c3515c1b7e88bbab930_8bfcd38de5961107785fdc25e687ca15, NULL}; extern const BulletStepFunc bullet_7ec1b7e792d02c73b...
75.931734
107
0.973539
pqrs-org
4838143530d158a17848e6fbac3a0c84b9a5d0d1
1,545
cpp
C++
src/ioobject.cpp
abbyssoul/libcadence
c9a49d95df608497e9551f7d62169d0c78a48737
[ "Apache-2.0" ]
2
2020-04-24T15:07:33.000Z
2020-06-12T07:01:53.000Z
src/ioobject.cpp
abbyssoul/libcadence
c9a49d95df608497e9551f7d62169d0c78a48737
[ "Apache-2.0" ]
null
null
null
src/ioobject.cpp
abbyssoul/libcadence
c9a49d95df608497e9551f7d62169d0c78a48737
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Ivan Ryabov * * 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 ...
31.530612
80
0.616828
abbyssoul
4839df4259064d37c9fa66ac7ecc18fe920df6d9
559
cpp
C++
BAC/exercises/ch8/UVa10954.cpp
Anyrainel/aoapc-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
3
2017-08-15T06:00:01.000Z
2018-12-10T09:05:53.000Z
BAC/exercises/ch8/UVa10954.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
null
null
null
BAC/exercises/ch8/UVa10954.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
2
2017-09-16T18:46:27.000Z
2018-05-22T05:42:03.000Z
// UVa10954 Add All // Rujia Liu // 题意:有n个数的集合S,每次可以从S中删除两个数,然后把它们的和放回集合,直到剩一个数。每次操作的开销等于删除的两个数之和。求最小总开销。 // 算法:Huffman编码 #include<cstdio> #include<queue> using namespace std; int main() { int n, x; while(scanf("%d", &n) == 1 && n) { priority_queue<int, vector<int>, greater<int> > q; for(int i = 0; i < n; ...
22.36
72
0.531306
Anyrainel
483a6f49df9f84078f07a23dbc3ecfcc4034026c
348
cpp
C++
invertedNestedLoops2.cpp
yishenli/learncpp
734a3ef753b32a3252b731d7e370b808fcf79a6b
[ "MIT" ]
null
null
null
invertedNestedLoops2.cpp
yishenli/learncpp
734a3ef753b32a3252b731d7e370b808fcf79a6b
[ "MIT" ]
null
null
null
invertedNestedLoops2.cpp
yishenli/learncpp
734a3ef753b32a3252b731d7e370b808fcf79a6b
[ "MIT" ]
null
null
null
#include <iostream> int main() { const int max = 9; int outer = 1; while (outer <= max) { for (int i = 0; i < max - outer; ++i) { std::cout << " "; } int inner = 1; while (inner <= outer) { std::cout << inner << ' '; ++inner; } std::cout << '\n'; ++outer...
12.888889
41
0.408046
yishenli
c617798ac904d56e48a37c30273eadb25eee3ae2
6,897
cpp
C++
examples/logreg.cpp
haptork/easyLambda
2a8cae9c6e26517e301b5aa6f9c1518aa5a22417
[ "BSL-1.0" ]
537
2016-03-15T09:26:41.000Z
2022-01-18T02:44:56.000Z
examples/logreg.cpp
haptork/easyLambda
2a8cae9c6e26517e301b5aa6f9c1518aa5a22417
[ "BSL-1.0" ]
10
2016-03-15T11:56:00.000Z
2019-11-14T20:01:47.000Z
examples/logreg.cpp
haptork/easyLambda
2a8cae9c6e26517e301b5aa6f9c1518aa5a22417
[ "BSL-1.0" ]
55
2016-03-15T11:53:07.000Z
2020-12-27T02:53:21.000Z
/*! * @file * An example of logistic regression training and testing. * The data is taken from: * * command to run: * mpirung -n 4 ./bin/logreg "data/logreg/train.csv" * * For running on some different data-set specify the columns etc. in `fromFile` * Also change the `D` parameter and inFile variable. * Testi...
38.316667
80
0.46484
haptork
c61fefb57288bfadbe5fb89cf78c995d48351ae8
17,082
cpp
C++
src/core/graphics/basic_renderer.cpp
Caravetta/Engine
6e2490a68727dc731b466335499f3204490acc5f
[ "MIT" ]
2
2018-05-21T02:12:50.000Z
2019-04-23T20:56:00.000Z
src/core/graphics/basic_renderer.cpp
Caravetta/Engine
6e2490a68727dc731b466335499f3204490acc5f
[ "MIT" ]
12
2018-05-30T13:15:25.000Z
2020-02-02T21:29:42.000Z
src/core/graphics/basic_renderer.cpp
Caravetta/Engine
6e2490a68727dc731b466335499f3204490acc5f
[ "MIT" ]
2
2018-06-14T19:03:29.000Z
2018-12-30T07:37:22.000Z
#include "basic_renderer.h" #include "ecs.h" #include "gtx/string_cast.hpp" namespace Engine { char light_pass_vert[] = " \ #version 330 core\n \ ...
57.130435
136
0.406451
Caravetta
c6216a733e5a42023596134d2f5ad5324d3f092f
15,480
hpp
C++
include/Types.hpp
scribelang/scribe
8b82ed839e290c1204928dcd196237c6cd6000ba
[ "MIT" ]
2
2021-12-01T06:45:58.000Z
2021-12-01T07:30:52.000Z
include/Types.hpp
scribelang/scribe
8b82ed839e290c1204928dcd196237c6cd6000ba
[ "MIT" ]
null
null
null
include/Types.hpp
scribelang/scribe
8b82ed839e290c1204928dcd196237c6cd6000ba
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2022 Scribe Language Repositories 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, mod...
23.85208
93
0.691085
scribelang
c621ff4fd2aecfd1ca1209c8f0b71cc9d0d1689a
1,389
cpp
C++
test/function/scalar/asinpi.cpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
test/function/scalar/asinpi.cpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
test/function/scalar/asinpi.cpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
//================================================================================================== /*! Copyright 2015 NumScale SAS Copyright 2015 J.T. Lapreste Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //=====...
32.302326
100
0.595392
yaeldarmon
c622a8c7367790c9c0e76b440ce73da8ce00645d
1,719
cpp
C++
code/C/num2en.cpp
LingfengPang/C-C-learning
4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641
[ "MIT" ]
4
2021-04-16T02:20:25.000Z
2021-10-04T12:22:35.000Z
code/C/num2en.cpp
LingfengPang/C-C-learning
4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641
[ "MIT" ]
null
null
null
code/C/num2en.cpp
LingfengPang/C-C-learning
4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641
[ "MIT" ]
2
2022-01-08T06:30:20.000Z
2022-03-26T08:39:20.000Z
#include <iostream> #include <cmath> #include <string> using namespace std; int main(){ //num是一个两位数 int num; string res; cin >> num; if(num < 10||num>99){ return 0; } int _1stdig = num/10; int _2nddig = num%10; if(num == 10){ cout <<"ten"<<endl; } switch (...
22.038462
39
0.481094
LingfengPang
c6270adb490cf5d2a69bec5a9f03a03d22840976
627
hpp
C++
library/ATF/_trap_create_setdata.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/_trap_create_setdata.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/_trap_create_setdata.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <CPlayer.hpp> #include <_character_create_setdata.hpp> START_ATF_NAMESPACE #pragma pack(push, 8) struct _trap_create_setdata : _character_create_setda...
27.26087
108
0.708134
lemkova
c62ba82f26507c4449211900d7af3342ea19710f
854
cpp
C++
lab3/lab6/lab6/main.cpp
AlexBlack559/stllabs
8dd7bcf154c87631e125874dffa9d5189d1c14f9
[ "MIT" ]
null
null
null
lab3/lab6/lab6/main.cpp
AlexBlack559/stllabs
8dd7bcf154c87631e125874dffa9d5189d1c14f9
[ "MIT" ]
null
null
null
lab3/lab6/lab6/main.cpp
AlexBlack559/stllabs
8dd7bcf154c87631e125874dffa9d5189d1c14f9
[ "MIT" ]
null
null
null
// // main.cpp // lab6 // // Created by Alexander Chernyi on 29/09/2017. // Copyright © 2017 Alexander Chernyi. All rights reserved. // #include <iostream> #include <fstream> #include <streambuf> #include <vector> #include <set> using namespace std; struct Point { int x,y; }; struct Shape { int vetex_nu...
16.113208
101
0.591335
AlexBlack559
c632a0e5946095aca67f1f114964edc6bfc45080
14,720
cpp
C++
src/2ls/summary_checker_base.cpp
viktormalik/2ls
d35ccf73c34d48e6fbf9a25049cd9c77bc2cb02a
[ "BSD-4-Clause" ]
null
null
null
src/2ls/summary_checker_base.cpp
viktormalik/2ls
d35ccf73c34d48e6fbf9a25049cd9c77bc2cb02a
[ "BSD-4-Clause" ]
3
2017-09-15T14:43:44.000Z
2017-11-24T09:12:41.000Z
src/2ls/summary_checker_base.cpp
viktormalik/2ls
d35ccf73c34d48e6fbf9a25049cd9c77bc2cb02a
[ "BSD-4-Clause" ]
2
2017-09-18T09:41:22.000Z
2018-01-29T18:12:33.000Z
/*******************************************************************\ Module: Summary Checker Base Author: Peter Schrammel \*******************************************************************/ /// \file /// Summary Checker Base #include <iostream> #include <util/options.h> #include <util/i2string.h> #include <uti...
28.862745
80
0.68587
viktormalik
c634b533805e345840f1a76fbdcf6a21e52977b2
2,745
hpp
C++
aessparse.hpp
pibara/AESsparsepp
12c51fd93ea344e6a65715026fe5baa6c18c34ed
[ "BSD-3-Clause" ]
1
2019-04-30T05:40:55.000Z
2019-04-30T05:40:55.000Z
aessparse.hpp
pibara/AESsparsepp
12c51fd93ea344e6a65715026fe5baa6c18c34ed
[ "BSD-3-Clause" ]
null
null
null
aessparse.hpp
pibara/AESsparsepp
12c51fd93ea344e6a65715026fe5baa6c18c34ed
[ "BSD-3-Clause" ]
null
null
null
#ifndef _AESSPARSE_HPP #define _AESSPARSE_HPP namespace aessparse { //Interface for any type of sparse file implementation. struct abstract_sparse_file { //Low level read and write. virtual ssize_t read(void *buf, size_t count, off_t offset) = 0; virtual ssize_t write(const void *buf, size_t count...
45.75
125
0.704918
pibara
c637589e05691bfe79809edbeceb26fcd88d3765
1,972
cpp
C++
Other/CampusChapter1/GAMENUM.cpp
vinaysomawat/CodeChef-Solutions
9a0666a4f1badd593cd075f3beb05377e3c6657a
[ "MIT" ]
1
2020-04-12T01:39:10.000Z
2020-04-12T01:39:10.000Z
Other/CampusChapter1/GAMENUM.cpp
vinaysomawat/CodeChef-Solutions
9a0666a4f1badd593cd075f3beb05377e3c6657a
[ "MIT" ]
null
null
null
Other/CampusChapter1/GAMENUM.cpp
vinaysomawat/CodeChef-Solutions
9a0666a4f1badd593cd075f3beb05377e3c6657a
[ "MIT" ]
null
null
null
/* Contest: CodeChef March 2020 Cook-Off challange Problem link:https://www.codechef.com/CHPTRS01/problems/GAMENUM GitHub Solution Repository: https://github.com/vinaysomawat/CodeChef-Solutions Author: Vinay Somawat Author's Webpage: http://vinaysomawat.github.io/ Author's mail: vinaysomawat@ho...
21.204301
82
0.501014
vinaysomawat