hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
adb4eba36eb9e7cd126de48d4492187c97bd7231
751
cc
C++
hierarchy/project/dut.cc
zzzDavid/SystemC-Examples
e79e393af499606b0a8036ccfc133923d90d92db
[ "MIT" ]
null
null
null
hierarchy/project/dut.cc
zzzDavid/SystemC-Examples
e79e393af499606b0a8036ccfc133923d90d92db
[ "MIT" ]
null
null
null
hierarchy/project/dut.cc
zzzDavid/SystemC-Examples
e79e393af499606b0a8036ccfc133923d90d92db
[ "MIT" ]
null
null
null
#include "dut.h" void dut::thread1() { { HLS_DEFINE_PROTOCOL("reset"); finish.write(0); find_max_x_out.reset(); find_max_return_in.reset(); wait(); } while( true ) { i: for (sc_int<32> i = 0; i < 4; ++i) { A[(i * 2)] = (A[(i * 2)] + 1); } C_x: for (sc_int<32> x = 0; x < 10...
25.896552
117
0.491345
zzzDavid
adb52401b7c370bdb1a9bd60e1b2319590a5c63c
1,344
cpp
C++
solved-uva/12700.cpp
Maruf-Tuhin/Online_Judge
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
1
2019-03-31T05:47:30.000Z
2019-03-31T05:47:30.000Z
solved-uva/12700.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
solved-uva/12700.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #include<fstream> #include<string> #include<vector> #include<queue> #include<map> #include<algorithm> #include<set> #include<sstream> #include<stack> using namespace std; main() { char a[10000]; int tc,t=1; ...
22.4
51
0.385417
Maruf-Tuhin
adb7203997295844fed728ace5f01dff593c6b9a
241
cpp
C++
C++/floyd_algo.cpp
PushpneetSingh/Hello-world
def0f44737e02fb40063cd347e93e456658e2532
[ "MIT" ]
1,428
2018-10-03T15:15:17.000Z
2019-03-31T18:38:36.000Z
C++/floyd_algo.cpp
PushpneetSingh/Hello-world
def0f44737e02fb40063cd347e93e456658e2532
[ "MIT" ]
1,162
2018-10-03T15:05:49.000Z
2018-10-18T14:17:52.000Z
C++/floyd_algo.cpp
PushpneetSingh/Hello-world
def0f44737e02fb40063cd347e93e456658e2532
[ "MIT" ]
3,909
2018-10-03T15:07:19.000Z
2019-03-31T18:39:08.000Z
#include <bits/stdc++.h> int n; int g[101][101]; int main() { puts("Enter graph size"); scanf("%d", &n); puts("Enter graph as adjacency matrix"); for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) scanf("%d", &g[i][j]); }
17.214286
41
0.514523
PushpneetSingh
adb7dd056e3e9bf0996f499adf4409decd0dad2e
2,287
cpp
C++
src/taesooLib/MainLib/OgreFltk/LineStrip.cpp
jackthgu/K-AR_HYU_Deform_Simulation
e7c275c8948e1fe3e800ab37b17aa8406b147277
[ "MIT" ]
null
null
null
src/taesooLib/MainLib/OgreFltk/LineStrip.cpp
jackthgu/K-AR_HYU_Deform_Simulation
e7c275c8948e1fe3e800ab37b17aa8406b147277
[ "MIT" ]
null
null
null
src/taesooLib/MainLib/OgreFltk/LineStrip.cpp
jackthgu/K-AR_HYU_Deform_Simulation
e7c275c8948e1fe3e800ab37b17aa8406b147277
[ "MIT" ]
null
null
null
// LineSegment.cpp: implementation of the LineSegment class. // ////////////////////////////////////////////////////////////////////// //#include "stdrenderer.h" #include "stdafx.h" #ifndef NO_OGRE #include "../BaseLib/math/mathclass.h" #include "LineStrip.h" //#include "RenderStateManager.h" #include <OgreSceneNode....
19.715517
102
0.638828
jackthgu
adbdac9bd89cc32f2ea168461c2e7726a776d24c
671
cpp
C++
common/tests/MathTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
3
2021-07-01T14:31:06.000Z
2022-03-29T20:41:21.000Z
common/tests/MathTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
null
null
null
common/tests/MathTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
null
null
null
#include "MathTest.h" #include "math_util.h" using namespace math; TEST_F(MathTest, modular_inverse) { ASSERT_EQ(modularInverse(75, 119315717514047), 106588707645882); ASSERT_EQ(modularInverse(33, 119315717514047), 3615627803456); } TEST_F(MathTest, power_test) { ASSERT_EQ(modular_power(41443368465112, 1...
29.173913
95
0.76006
alexandru-andronache
adc3810adafa5d197de88f793d8c0a885ecf474d
3,210
cpp
C++
datastructures/singlylinkedlists/clone_random_ptr.cpp
oishikm12/cpp-collection
4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97
[ "MIT" ]
5
2021-05-17T12:32:42.000Z
2021-12-12T21:09:55.000Z
datastructures/singlylinkedlists/clone_random_ptr.cpp
oishikm12/cpp-collection
4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97
[ "MIT" ]
null
null
null
datastructures/singlylinkedlists/clone_random_ptr.cpp
oishikm12/cpp-collection
4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97
[ "MIT" ]
1
2021-05-13T20:29:57.000Z
2021-05-13T20:29:57.000Z
#include <iostream> #include <vector> #include <unordered_map> using namespace std; class Node { public: int data; Node *next, *arb; Node(int val = 0, Node *lfwd = NULL, Node *larb = NULL) : data(val), next(lfwd), arb(larb) {}; ~Node() { delete arb, delete next; } }; int main() { ...
26.097561
102
0.557009
oishikm12
adc4ce449c1d15228c35f8504c32441ade82be89
177
hpp
C++
shared/detail/no_move.hpp
playday3008/herby
3ab4594588c4776182f18edf89d461adef583614
[ "MIT" ]
null
null
null
shared/detail/no_move.hpp
playday3008/herby
3ab4594588c4776182f18edf89d461adef583614
[ "MIT" ]
null
null
null
shared/detail/no_move.hpp
playday3008/herby
3ab4594588c4776182f18edf89d461adef583614
[ "MIT" ]
null
null
null
#pragma once namespace shared::detail { class NoMove { protected: NoMove() = default; NoMove(NoMove&&) = delete; protected: NoMove& operator=(NoMove&&) = delete; }; }
14.75
39
0.661017
playday3008
add4903b28375f62b0e238a8bc98fcdc019e3cdf
4,083
cc
C++
test/type_traits_test.cc
malirod/value-or-error
e7498e94c407e4cd8a265ac9b3892c083ee47689
[ "MIT" ]
1
2019-04-10T17:58:34.000Z
2019-04-10T17:58:34.000Z
test/type_traits_test.cc
malirod/value-or-error
e7498e94c407e4cd8a265ac9b3892c083ee47689
[ "MIT" ]
null
null
null
test/type_traits_test.cc
malirod/value-or-error
e7498e94c407e4cd8a265ac9b3892c083ee47689
[ "MIT" ]
null
null
null
// Copyright [2019] <Malinovsky Rodion> (rodionmalino@gmail.com) #include "type_traits.h" #include <catch2/catch.hpp> #include <sstream> namespace { class Foo {}; class Bar { public: static void serialize(std::ostream& os) { os << "this-is-bar"; } }; template <typename T> class Wrapper { public: explicit Wra...
29.586957
75
0.660789
malirod
add9054d1556bf31dcae5640252164af1ab9a529
378
cpp
C++
codeforces/1266b.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
1
2020-04-04T14:56:12.000Z
2020-04-04T14:56:12.000Z
codeforces/1266b.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
codeforces/1266b.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll=long long; void solve() { ll n; cin >> n; if (n > 14) { ll x = n%14; if (0<x && x<7) { cout << "YES\n"; return; } } cout << "NO\n"; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); in...
15.75
37
0.460317
sogapalag
addbdfb463f81878740ac216fce0ed23b83846a8
29,359
cc
C++
test/dct_test.cc
LaudateCorpus1/libvpx
0ffb0761f4513504d85972105b25a14d6ff00692
[ "BSD-3-Clause" ]
2
2021-08-08T16:26:44.000Z
2022-03-07T01:38:08.000Z
test/dct_test.cc
LaudateCorpus1/libvpx
0ffb0761f4513504d85972105b25a14d6ff00692
[ "BSD-3-Clause" ]
null
null
null
test/dct_test.cc
LaudateCorpus1/libvpx
0ffb0761f4513504d85972105b25a14d6ff00692
[ "BSD-3-Clause" ]
4
2021-06-03T10:06:50.000Z
2022-03-17T19:31:27.000Z
/* * Copyright (c) 2017 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
39.781843
80
0.628904
LaudateCorpus1
adddb5d2e2fcc585921f8df6e8db126bd989bbb1
8,336
cxx
C++
main/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/drawinglayer/source/primitive3d/sdrcubeprimitive3d.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
38.063927
151
0.68846
Grosskopf
ade4684b84d7d892ff5d6739af7c577cd02999b6
735
cpp
C++
Remixed/Win32Window.cpp
LukeRoss00/Revive
09b1c59dfbff8abc06194809ec680b990b2cf21c
[ "MIT" ]
1
2021-10-18T19:43:06.000Z
2021-10-18T19:43:06.000Z
Remixed/Win32Window.cpp
LukeRoss00/Revive
09b1c59dfbff8abc06194809ec680b990b2cf21c
[ "MIT" ]
null
null
null
Remixed/Win32Window.cpp
LukeRoss00/Revive
09b1c59dfbff8abc06194809ec680b990b2cf21c
[ "MIT" ]
1
2020-02-03T22:45:41.000Z
2020-02-03T22:45:41.000Z
#include "Win32Window.h" #include <Windows.h> #include <thread> extern HMODULE revModule; static LRESULT CALLBACK WindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { return DefWindowProcW(hWnd, Msg, wParam, lParam); } Win32Window::Win32Window() { WNDCLASSW wc; memset(&wc, 0, sizeof(wc)); wc.hInstanc...
20.416667
89
0.727891
LukeRoss00
ade655eac7a18a742a4cdeaa2ccab5583b49ab04
1,224
cpp
C++
Util/NameValuePair.cpp
okean/cpputils
812cf41f04d66c28a5eb46dedab6e782c49e0f7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2019-08-30T02:34:29.000Z
2019-08-30T02:34:29.000Z
Util/NameValuePair.cpp
okean/cpputils
812cf41f04d66c28a5eb46dedab6e782c49e0f7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
Util/NameValuePair.cpp
okean/cpputils
812cf41f04d66c28a5eb46dedab6e782c49e0f7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#include "stdafx.h" #include "NameValuePair.h" #include <Util/Text.h> using namespace Util; NameValuePair::NameValuePair( const std::string & name, const std::string & value) : _name(name) , _value(value) { } NameValuePair::NameValuePair( const std::string &str, const char & separator, bo...
17
65
0.615196
okean
adea92422e1a2b55016a5fa66efe26f56f82b9c0
9,077
hpp
C++
source/colors.hpp
Xett/gba-modern
8b74fcf78d49c156dc4ffa6c4adba8fd812004dd
[ "MIT" ]
null
null
null
source/colors.hpp
Xett/gba-modern
8b74fcf78d49c156dc4ffa6c4adba8fd812004dd
[ "MIT" ]
null
null
null
source/colors.hpp
Xett/gba-modern
8b74fcf78d49c156dc4ffa6c4adba8fd812004dd
[ "MIT" ]
1
2020-11-20T03:12:02.000Z
2020-11-20T03:12:02.000Z
//-------------------------------------------------------------------------------- // colors.hpp //-------------------------------------------------------------------------------- // Contains a list of colors //-------------------------------------------------------------------------------- #pragma once #include <cstd...
53.081871
99
0.645588
Xett
adec19b875bb6aca9e652cbc18c3112b711967d0
766
cpp
C++
comp/cses/intro/g_knights.cpp
imbush/practice
05116375a7361fb0acc477a22ff0745e41aad825
[ "MIT" ]
null
null
null
comp/cses/intro/g_knights.cpp
imbush/practice
05116375a7361fb0acc477a22ff0745e41aad825
[ "MIT" ]
null
null
null
comp/cses/intro/g_knights.cpp
imbush/practice
05116375a7361fb0acc477a22ff0745e41aad825
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; typedef long long ll; int main() { ll n; ll sum = 0; cin >> n; cout << sum << "\n"; for (ll i = 2; i <= n; i ++) { sum += (2 * i - 1) * (2 * i - 2) / 2; // The outside interactions if (i > 2) { sum -= 4; } sum +=...
23.212121
78
0.292428
imbush
adec9a93e349f2f3f7fd0bce130dac2c0a0b65de
8,350
cpp
C++
lib/MatrixClasses/IndexMatrix.cpp
xschrodingerscat/kspaceFirstOrder
99f326d420a5488693bcf9fdd633d2eff7447cca
[ "RSA-MD" ]
null
null
null
lib/MatrixClasses/IndexMatrix.cpp
xschrodingerscat/kspaceFirstOrder
99f326d420a5488693bcf9fdd633d2eff7447cca
[ "RSA-MD" ]
null
null
null
lib/MatrixClasses/IndexMatrix.cpp
xschrodingerscat/kspaceFirstOrder
99f326d420a5488693bcf9fdd633d2eff7447cca
[ "RSA-MD" ]
null
null
null
/** * @file IndexMatrix.cpp * * @author Jiri Jaros \n * Faculty of Information Technology \n * Brno University of Technology \n * jarosjir@fit.vutbr.cz * * @brief The implementation file containing the class for 64b integer index matrices. * * @version kspaceFirs...
36.462882
120
0.513293
xschrodingerscat
aded0bbb8448758eec5804031cc7045fe01f7c7f
960
cpp
C++
src/Airmap/services/telemetry.cpp
dlech/qgroundcontrol
72065fff2f0e9a8ccb5b55bf6c023956f5a102dc
[ "Apache-2.0" ]
2,133
2015-01-04T03:10:22.000Z
2022-03-31T01:51:07.000Z
src/Airmap/services/telemetry.cpp
dlech/qgroundcontrol
72065fff2f0e9a8ccb5b55bf6c023956f5a102dc
[ "Apache-2.0" ]
6,166
2015-01-02T18:47:42.000Z
2022-03-31T03:44:10.000Z
src/Airmap/services/telemetry.cpp
dlech/qgroundcontrol
72065fff2f0e9a8ccb5b55bf6c023956f5a102dc
[ "Apache-2.0" ]
2,980
2015-01-01T03:09:18.000Z
2022-03-31T04:13:55.000Z
#include <Airmap/services/telemetry.h> #include <airmap/flight.h> std::shared_ptr<airmap::services::Telemetry> airmap::services::Telemetry::create(const std::shared_ptr<Dispatcher>& dispatcher, const std::shared_ptr<airmap::Client>& client) { retu...
45.714286
127
0.638542
dlech
aded5e6bfc57c45c06c80910e053eb380b33da18
208
cpp
C++
Source/MultiplayerLab/MultiplayerLab.cpp
AnupamSahu/UnrealMultiplayerLab
fae050ffa1589154e3a073de34e95988f569e105
[ "MIT" ]
null
null
null
Source/MultiplayerLab/MultiplayerLab.cpp
AnupamSahu/UnrealMultiplayerLab
fae050ffa1589154e3a073de34e95988f569e105
[ "MIT" ]
null
null
null
Source/MultiplayerLab/MultiplayerLab.cpp
AnupamSahu/UnrealMultiplayerLab
fae050ffa1589154e3a073de34e95988f569e105
[ "MIT" ]
null
null
null
// Copyright Epic Games, Inc. All Rights Reserved. #include "MultiplayerLab.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, MultiplayerLab, "MultiplayerLab" );
29.714286
90
0.802885
AnupamSahu
adef6dd29f07ea7b0e0f5acb5072ee99d2e3cee6
6,307
cpp
C++
Plugins/org.mitk.lancet.robot/src/api/vega/capisample/CAPIcommon/src/SystemAlert.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
null
null
null
Plugins/org.mitk.lancet.robot/src/api/vega/capisample/CAPIcommon/src/SystemAlert.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2021-12-22T10:19:02.000Z
2021-12-22T10:19:02.000Z
Plugins/org.mitk.lancet.robot/src/api/vega/capisample/CAPIcommon/src/SystemAlert.cpp
zhaomengxiao/MITK_lancet
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------- // // Copyright (C) 2017, Northern Digital Inc. All rights reserved. // // All Northern Digital Inc. ("NDI") Media and/or Sample Code and/or Sample Code // Documentation (collectively referred to as "Sample Code") is licensed and provided...
39.173913
95
0.738386
zhaomengxiao
adf150a7a496cb2e1bfaed8ffb0aaf227e5deedb
2,399
cpp
C++
adept/StackStorageOrig.cpp
yairchu/Adept-2
3b4f898c74139618464ccd8e8df0934aed9ed6a2
[ "Apache-2.0" ]
131
2016-07-06T04:06:49.000Z
2022-03-19T22:34:47.000Z
adept/StackStorageOrig.cpp
yairchu/Adept-2
3b4f898c74139618464ccd8e8df0934aed9ed6a2
[ "Apache-2.0" ]
19
2016-06-20T20:20:23.000Z
2022-02-15T14:55:01.000Z
adept/StackStorageOrig.cpp
yairchu/Adept-2
3b4f898c74139618464ccd8e8df0934aed9ed6a2
[ "Apache-2.0" ]
31
2017-10-07T00:07:49.000Z
2022-03-05T17:51:17.000Z
/* StackStorageOrig.cpp -- Original storage of stacks using STL containers Copyright (C) 2014-2015 University of Reading Author: Robin Hogan <r.j.hogan@ecmwf.int> This file is part of the Adept library. The Stack class inherits from a class providing the storage (and interface to the storage) for ...
27.895349
75
0.67278
yairchu
adf2be6fccab7a20a6f7bfe7eaa3ed009a3b2420
8,223
cc
C++
tutorial/4_graphics/transparency.cc
tdelame/Graphics-Origin
27b7d6ac72c4cb1858fc85dc18fe864de1496c6d
[ "MIT" ]
null
null
null
tutorial/4_graphics/transparency.cc
tdelame/Graphics-Origin
27b7d6ac72c4cb1858fc85dc18fe864de1496c6d
[ "MIT" ]
null
null
null
tutorial/4_graphics/transparency.cc
tdelame/Graphics-Origin
27b7d6ac72c4cb1858fc85dc18fe864de1496c6d
[ "MIT" ]
null
null
null
/* Created on: May 22, 2016 * Author: T. Delame (tdelame@gmail.com) */ /** * The main differences between the files of this application and the one of * the tutorial 3_simple_gl_applications are: * - the definition of a transparent windows renderable, that we will use to * have some transparency in the scen...
39.917476
143
0.670801
tdelame
adf6aec19503004f072eefc7932978ecd9b307fc
1,328
cpp
C++
Prova di Esame/TerzoFile/main.cpp
LucaMazzei88/CefiCourse
1ed516b6cdbd72fd5197c7fe876005fbb27dea71
[ "Apache-2.0" ]
null
null
null
Prova di Esame/TerzoFile/main.cpp
LucaMazzei88/CefiCourse
1ed516b6cdbd72fd5197c7fe876005fbb27dea71
[ "Apache-2.0" ]
null
null
null
Prova di Esame/TerzoFile/main.cpp
LucaMazzei88/CefiCourse
1ed516b6cdbd72fd5197c7fe876005fbb27dea71
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <stdlib.h> #include <stdio.h> #include <set> #include <vector> using namespace std; vector<int>* leggiFile(FILE* id); int main() { FILE* dato1=fopen("dato1.txt","r"); FILE* dato2=fopen("dato2.txt","r"); if(dato1==NULL ||dato2==NULL){ cout<<"File non trovato"<<endl; ...
24.592593
74
0.584337
LucaMazzei88
adf6bd3fa78b9c2fb46fc743bbbaf44636634a9c
518
cpp
C++
src/gamebase/src/impl/geom/Intersection.cpp
TheMrButcher/opengl_lessons
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
1
2016-10-25T21:15:16.000Z
2016-10-25T21:15:16.000Z
src/gamebase/src/impl/geom/Intersection.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
375
2016-06-04T11:27:40.000Z
2019-04-14T17:11:09.000Z
src/gamebase/src/impl/geom/Intersection.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
null
null
null
/** * Copyright (c) 2018 Slavnejshev Filipp * This file is licensed under the terms of the MIT license. */ #include <stdafx.h> #include <gamebase/impl/geom/Intersection.h> namespace gamebase { namespace impl { bool isPointInTriangle(const Vec2& point, const Vec2& p1, const Vec2& p2, const Vec2& p3) { floa...
24.666667
72
0.596525
TheMrButcher
adfa7dbafd88f6becdb57d74e732da0f1d411aaa
484
cxx
C++
source/opengl/vao.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
2
2016-07-22T10:09:21.000Z
2017-09-16T06:50:01.000Z
source/opengl/vao.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
14
2016-08-13T22:45:56.000Z
2018-12-16T03:56:36.000Z
source/opengl/vao.cxx
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
null
null
null
#include <extlibs/fmt.hpp> #include <opengl/vao.hpp> namespace opengl { VAO& VAO::operator=(VAO&& other) { vao_ = other.vao_; debug_check = MOVE(other.debug_check); other.vao_ = 0; return *this; } std::string VAO::to_string() const { return fmt::sprintf("(VAO) NUM_BUFFERS: %li, raw: %u", VAO::NUM_B...
15.612903
91
0.657025
bjadamson
adfabe803f73d3dd23e56d1cfe6923e2a641435b
4,415
cpp
C++
tests/comm/interface/component/BroadcastTests.cpp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
3
2021-06-24T10:20:12.000Z
2021-07-18T14:43:19.000Z
tests/comm/interface/component/BroadcastTests.cpp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
2
2021-07-22T15:31:03.000Z
2021-07-28T14:27:28.000Z
tests/comm/interface/component/BroadcastTests.cpp
thorbenlouw/CUP-CFD
d06f7673a1ed12bef24de4f1b828ef864fa45958
[ "MIT" ]
1
2021-07-22T15:24:24.000Z
2021-07-22T15:24:24.000Z
/* * @file * @author University of Warwick * @version 1.0 * * @section LICENSE * * @section DESCRIPTION * */ #define BOOST_TEST_MODULE Broadcast #include <boost/test/unit_test.hpp> #include <boost/test/output_test_stream.hpp> #include <stdexcept> #include "Broadcast.h" #include "mpi.h" #include <iostream> #i...
23.994565
79
0.655266
thorbenlouw
adfc8d2d3a732dcc06a337515b55c77d75e36db1
9,701
cpp
C++
thermal/main.cpp
naohaq/pezy-mokumoku
aede78653c401db30cccf1b891e27587098c8b55
[ "BSD-3-Clause" ]
null
null
null
thermal/main.cpp
naohaq/pezy-mokumoku
aede78653c401db30cccf1b891e27587098c8b55
[ "BSD-3-Clause" ]
null
null
null
thermal/main.cpp
naohaq/pezy-mokumoku
aede78653c401db30cccf1b891e27587098c8b55
[ "BSD-3-Clause" ]
null
null
null
/*! * @author Naoyuki MORITA * @date 2019 * @copyright BSD-3-Clause */ #define __CL_ENABLE_EXCEPTIONS #include <CL/cl.hpp> #include <cassert> #include <cstdio> #include <fstream> #include <iostream> #include <random> #include <sstream> #include <stdexcept> #include <vector> #include "sim_conf.hh" #includ...
32.122517
139
0.608082
naohaq
adfd79ba9cd318052834c7a076229dd164210e01
3,386
cpp
C++
Problemas/Problemas de programacion dinamica/Atravesar_Cuadracity/Solucion/Atravesar_Cuadracity_OPT.cpp
AlexCabezas2018/Algoritmia
12b2b20168e598852ac66e01a6004a0701cf9c95
[ "MIT" ]
4
2019-01-26T11:14:14.000Z
2019-10-28T19:16:12.000Z
Problemas/Problemas de programacion dinamica/Atravesar_Cuadracity/Solucion/Atravesar_Cuadracity_OPT.cpp
AlexCabezas2018/Algoritmia
12b2b20168e598852ac66e01a6004a0701cf9c95
[ "MIT" ]
null
null
null
Problemas/Problemas de programacion dinamica/Atravesar_Cuadracity/Solucion/Atravesar_Cuadracity_OPT.cpp
AlexCabezas2018/Algoritmia
12b2b20168e598852ac66e01a6004a0701cf9c95
[ "MIT" ]
1
2019-10-28T23:21:16.000Z
2019-10-28T23:21:16.000Z
// Alejandro Cabezas Garriguez // TAIS26 #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <string> #include <algorithm> /* El problema consiste en encontrar el numero de caminos que logran llevar desde el punto de inicio que se encuentra en la esquina superior izquierda, al fina...
32.247619
115
0.676019
AlexCabezas2018
adfe157ae35807feeabcdda6024fdda6890c9af2
400
cpp
C++
BOJ/13000~13999/13300~13399/13305.cpp
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/13000~13999/13300~13399/13305.cpp
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/13000~13999/13300~13399/13305.cpp
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> #define for1(s,n) for(int i = s; i < n; i++) using namespace std; typedef long long ll; ll N, ans, mn; ll dis[110000]; ll cost[110000]; int main() { ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin >> N; for1(1, N) cin >> dis[i]; for1(0, N) cin >> cost[i]; mn = cost[0]; for1...
16.666667
49
0.5425
shinkeonkim
bc0634f0d6a1b93ce95416974212c5e847037331
1,647
cpp
C++
os/arch/i386/gdt.cpp
akiszka/anthrax-os
2d7f1e88041b4f381240fdcd4b7888eada393738
[ "MIT" ]
null
null
null
os/arch/i386/gdt.cpp
akiszka/anthrax-os
2d7f1e88041b4f381240fdcd4b7888eada393738
[ "MIT" ]
null
null
null
os/arch/i386/gdt.cpp
akiszka/anthrax-os
2d7f1e88041b4f381240fdcd4b7888eada393738
[ "MIT" ]
null
null
null
#include <string.hpp> #include <stdio.hpp> #include "gdt.hpp" struct gdt::descriptor _gdt [gdt::MAX_DESCRIPTORS]; struct gdt::gdtr _gdtr; void gdt::set_descriptor(u16 i, u32 base, u32 limit, u8 access, u8 flags) { if (i > MAX_DESCRIPTORS) return; // null out the descriptor memset ((void*)&_gdt[i], 0, siz...
27
83
0.649666
akiszka
bc0726d090d95743a93a458774f400b7d2276d54
2,064
hpp
C++
Source/opennwa/details/Configuration.hpp
jusito/WALi-OpenNWA
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
[ "MIT" ]
15
2015-03-07T17:25:57.000Z
2022-02-04T20:17:00.000Z
src/wpds/Source/opennwa/details/Configuration.hpp
ucd-plse/mpi-error-prop
4367df88bcdc4d82c9a65b181d0e639d04962503
[ "BSD-3-Clause" ]
1
2018-03-03T05:58:55.000Z
2018-03-03T12:26:10.000Z
src/wpds/Source/opennwa/details/Configuration.hpp
ucd-plse/mpi-error-prop
4367df88bcdc4d82c9a65b181d0e639d04962503
[ "BSD-3-Clause" ]
15
2015-09-25T17:44:35.000Z
2021-07-18T18:25:38.000Z
#ifndef wali_nwa_CONFIGURATION_HPP #define wali_nwa_CONFIGURATION_HPP #include "opennwa/NwaFwd.hpp" #include <ios> #include <vector> namespace opennwa { namespace details { struct Configuration { State state; std::vector<State> callPredecessors; ...
32.25
121
0.492248
jusito
bc07c94749494a504e4323ca678a90a6227c25d9
503
cpp
C++
HackerRank/November/WeekOfCode1/ArmyGame.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
HackerRank/November/WeekOfCode1/ArmyGame.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
HackerRank/November/WeekOfCode1/ArmyGame.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> typedef long long ll; const int mod = 1e9 + 7; const int MAX = 1e5 + 7; using namespace std; typedef vector<int> vi; int n, m; int main() { #ifndef ONLINE_JUDGE freopen("/Users/seeva92/Workspace/Contests/1.txt", "r", stdin); freopen("/Users/seeva92/Workspace/Contests/2.txt", "w", stdout); #en...
19.346154
65
0.59841
seeva92
bc0e84aca9c719b8018288132238535ebbd65f30
1,424
cpp
C++
message-broker/src/user-cache.cpp
Spheniscida/cHaTTP
6f8cdb2a466bc83af5e0e0e8ddd764aba6ff6747
[ "MIT" ]
4
2015-03-14T10:17:31.000Z
2020-08-08T17:53:54.000Z
message-broker/src/user-cache.cpp
Spheniscida/cHaTTP
6f8cdb2a466bc83af5e0e0e8ddd764aba6ff6747
[ "MIT" ]
null
null
null
message-broker/src/user-cache.cpp
Spheniscida/cHaTTP
6f8cdb2a466bc83af5e0e0e8ddd764aba6ff6747
[ "MIT" ]
2
2016-04-08T15:56:06.000Z
2018-12-08T21:03:50.000Z
# include "user-cache.hpp" # include "error.hpp" void UserCache::addForUser(const std::string& user_name, const chattp::PersistenceResponse::UserLocation& loc) { if ( global_broker_settings.getClusteredMode() ) return; lock_guard<mutex> lock(map_mutex); if ( debugging_mode ) debug_log("Added user locat...
26.867925
139
0.734551
Spheniscida
bc10c589f3a9cbaaba5c38e031359d43e7b98148
1,400
cpp
C++
Source/Factions/Private/Factions/FactionAgentInterface.cpp
budgidiere/FactionsExtension
9edfb2a3fd4d49d01dce5584afe9cb21af72eb75
[ "Apache-2.0" ]
49
2018-04-15T13:39:40.000Z
2022-03-30T18:59:30.000Z
Source/Factions/Private/Factions/FactionAgentInterface.cpp
budgidiere/FactionsExtension
9edfb2a3fd4d49d01dce5584afe9cb21af72eb75
[ "Apache-2.0" ]
9
2019-01-06T14:18:50.000Z
2021-07-02T21:49:42.000Z
Source/Factions/Private/Factions/FactionAgentInterface.cpp
budgidiere/FactionsExtension
9edfb2a3fd4d49d01dce5584afe9cb21af72eb75
[ "Apache-2.0" ]
18
2018-04-24T21:11:49.000Z
2022-03-18T09:06:34.000Z
// Copyright 2015-2016 Piperift. All Rights Reserved. #include "FactionAgentInterface.h" //----------------------------------------------------------------------// // UGenericTeamAgentInterface //----------------------------------------------------------------------// UFactionAgentInterface::UFactionAgentInterface(...
28.571429
95
0.715714
budgidiere
bc148d3b926a72bee2b4821e02d134c1fd1a48ea
208
hpp
C++
source/code/programs/puzzles/advent_of_code/2018/day5.hpp
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
33
2019-05-30T07:43:32.000Z
2021-12-30T13:12:32.000Z
source/code/programs/puzzles/advent_of_code/2018/day5.hpp
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
371
2019-05-16T15:23:50.000Z
2021-09-04T15:45:27.000Z
source/code/programs/puzzles/advent_of_code/2018/day5.hpp
UniLang/compiler
c338ee92994600af801033a37dfb2f1a0c9ca897
[ "MIT" ]
6
2019-08-22T17:37:36.000Z
2020-11-07T07:15:32.000Z
#pragma once #include "utilities.hpp" #include "systems.hpp" #include "md5.hpp" class Day5{ public: static void Go(); private: static void Try(std::string s, unsigned int i, std::string & answer); };
12.235294
78
0.6875
luxe
bc153dedf9c9b8c6c95512f5d2b97654370fdac0
200,671
inl
C++
2d_samples/pmj02_175.inl
st-ario/rayme
315c57c23f4aa4934a8a80e84e3243acd3400808
[ "MIT" ]
1
2021-12-10T23:35:04.000Z
2021-12-10T23:35:04.000Z
2d_samples/pmj02_175.inl
st-ario/rayme
315c57c23f4aa4934a8a80e84e3243acd3400808
[ "MIT" ]
null
null
null
2d_samples/pmj02_175.inl
st-ario/rayme
315c57c23f4aa4934a8a80e84e3243acd3400808
[ "MIT" ]
null
null
null
{std::array<float,2>{0.929466844f, 0.574518383f}, std::array<float,2>{0.479066133f, 0.436022788f}, std::array<float,2>{0.140452042f, 0.855014622f}, std::array<float,2>{0.690937757f, 0.108673006f}, std::array<float,2>{0.548150361f, 0.988475919f}, std::array<float,2>{0.00603156351f, 0.245992929f}, std::array<float,2>{0.3...
48.991943
52
0.73465
st-ario
bc154ae4d5ece2af7ba91abdd138f8c283ebe290
15,149
hh
C++
ms-utils/properties/Combust.hh
nasa/gunns
248323939a476abe5178538cd7a3512b5f42675c
[ "NASA-1.3" ]
18
2020-01-23T12:14:09.000Z
2022-02-27T22:11:35.000Z
ms-utils/properties/Combust.hh
nasa/gunns
248323939a476abe5178538cd7a3512b5f42675c
[ "NASA-1.3" ]
39
2020-11-20T12:19:35.000Z
2022-02-22T18:45:55.000Z
ms-utils/properties/Combust.hh
nasa/gunns
248323939a476abe5178538cd7a3512b5f42675c
[ "NASA-1.3" ]
7
2020-02-10T19:25:43.000Z
2022-03-16T01:10:00.000Z
#ifndef Combust_EXISTS #define Combust_EXISTS /** @file @brief Combustion Model declarations @defgroup TSM_UTILITIES_PROPERTIES_COMBUST Chemical Combustion Model Base Class @ingroup TSM_UTILITIES_PROPERTIES @copyright Copyright 2019 United States Government as represented by the Administrator of the ...
58.042146
171
0.521751
nasa
bc154cb2af5e2d832e892627f11e6c4338a213ad
1,010
hpp
C++
src/exception/ih/exc_exception_impl.hpp
lpea/cppinclude
dc126c6057d2fe30569e6e86f66d2c8eebb50212
[ "MIT" ]
177
2020-08-24T19:20:35.000Z
2022-03-27T01:58:04.000Z
src/exception/ih/exc_exception_impl.hpp
lpea/cppinclude
dc126c6057d2fe30569e6e86f66d2c8eebb50212
[ "MIT" ]
15
2020-08-30T17:59:42.000Z
2022-01-12T11:14:10.000Z
src/exception/ih/exc_exception_impl.hpp
lpea/cppinclude
dc126c6057d2fe30569e6e86f66d2c8eebb50212
[ "MIT" ]
11
2020-09-17T23:31:10.000Z
2022-03-04T13:15:21.000Z
#pragma once #include "exception/api/exc_exception.hpp" #include <string> //------------------------------------------------------------------------------ namespace exception { //------------------------------------------------------------------------------ template< class _BaseException > class ExceptionImpl : pu...
19.056604
80
0.513861
lpea
bc1ae6e705632231c294b8dd336b86741e180244
1,616
cpp
C++
data/test/cpp/1788aee13eadd4ae5dbac58168e1734537d7ed28BoxData.cpp
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/cpp/1788aee13eadd4ae5dbac58168e1734537d7ed28BoxData.cpp
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/cpp/1788aee13eadd4ae5dbac58168e1734537d7ed28BoxData.cpp
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
#include "BoxData.h" BoxException::BoxException() : logic_error("Box is already full.\n") { } BoxData::BoxData() : load(0.0), seqNum(0) {} BoxData::BoxData(int _seqNum) : load(0.0), seqNum(_seqNum) {} int BoxData::getSeqNum() const { return seqNum; } list<double> BoxData::getLoads() const { return loads; } void...
19.011765
79
0.647277
harshp8l
bc1d61c2049a61b127416f92f3660dc2994e42d3
1,147
hpp
C++
Server Lib/Game Server/PANGYA_DB/cmd_delete_rental.hpp
CCasusensa/SuperSS-Dev
6c6253b0a56bce5dad150c807a9bbf310e8ff61b
[ "MIT" ]
23
2021-10-31T00:20:21.000Z
2022-03-26T07:24:40.000Z
Server Lib/Game Server/PANGYA_DB/cmd_delete_rental.hpp
CCasusensa/SuperSS-Dev
6c6253b0a56bce5dad150c807a9bbf310e8ff61b
[ "MIT" ]
5
2021-10-31T18:44:51.000Z
2022-03-25T18:04:26.000Z
Server Lib/Game Server/PANGYA_DB/cmd_delete_rental.hpp
CCasusensa/SuperSS-Dev
6c6253b0a56bce5dad150c807a9bbf310e8ff61b
[ "MIT" ]
18
2021-10-20T02:31:56.000Z
2022-02-01T11:44:36.000Z
// Arquivo cmd_delete_rental.hpp // Criado em 10/06/2018 as 17:42 por Acrisio // Defini��o da classe CmdDeleteRental #pragma once #ifndef _STDA_CMD_DELETE_RENTAL_HPP #define _STDA_CMD_DELETE_RENTAL_HPP #include "../../Projeto IOCP/PANGYA_DB/pangya_db.h" namespace stdA { class CmdDeleteRental : public pangya_db { ...
27.97561
121
0.735833
CCasusensa
bc23277ac662ec37d8fd672d602836d87bcdfcc8
963
cpp
C++
Week 4/practise/seven.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
Week 4/practise/seven.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
Week 4/practise/seven.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; bool sameSet(int[], int[]); int main() { int a[] = {1,12,15,18, 4,16, 9, 7, 4}; int b[] = { 7, 9, 16, 4, 1}; bool isSame = sameSet(a, b); // if(isSame){ // cout<<"the arrays are identical"<<endl; // } // else{ // cout<<"the arrays are not ...
22.395349
54
0.433022
sugamkarki
bc23b9096d20ba6e4c233ed1cd2b8b15bc151f5f
7,970
cc
C++
src/cxx/mr/libmr1d/MR1D_MMT.cc
sfarrens/cosmostat
a475315cda06dca346095a1e83cb6ad23979acae
[ "MIT" ]
null
null
null
src/cxx/mr/libmr1d/MR1D_MMT.cc
sfarrens/cosmostat
a475315cda06dca346095a1e83cb6ad23979acae
[ "MIT" ]
null
null
null
src/cxx/mr/libmr1d/MR1D_MMT.cc
sfarrens/cosmostat
a475315cda06dca346095a1e83cb6ad23979acae
[ "MIT" ]
null
null
null
/******************************************************************************* ** ** UNIT ** ** Version: 3.2 ** ** Author: Jean-Luc Starck ** ** Date: 96/06/13 ** ** File: MR1D_Transf.cc ** ***************************************************************************** ** ** DESCRIPTION 1D wave...
29.301471
114
0.453701
sfarrens
bc243bbf7fc9f745bffffab32bd1666691158c6f
743
cpp
C++
900C.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
null
null
null
900C.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
null
null
null
900C.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
2
2020-10-03T04:52:14.000Z
2020-10-03T05:19:12.000Z
#include<bits/stdc++.h> using namespace std; typedef long long int ll; void solve(){ ll n; cin >> n; ll a[n], cnt[n+1] = {0}; for(ll i = 0; i < n; ++i) cin >> a[i]; set<ll> s; for(ll i = 0; i < n; ++i){ s.insert(a[i]); auto x = s.upper_bound(a[i]); ll k = *s.rbegin(); ...
22.515152
46
0.421265
basuki57
bc252b5469713877182d11c71e96442d6629fce8
2,492
hpp
C++
src/core/lib/core_reflection/utilities/object_handle_reflection_utils.hpp
wgsyd/wgtf
d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed
[ "BSD-3-Clause" ]
28
2016-06-03T05:28:25.000Z
2019-02-14T12:04:31.000Z
src/core/lib/core_reflection/utilities/object_handle_reflection_utils.hpp
karajensen/wgtf
740397bcfdbc02bc574231579d57d7c9cd5cc26d
[ "BSD-3-Clause" ]
null
null
null
src/core/lib/core_reflection/utilities/object_handle_reflection_utils.hpp
karajensen/wgtf
740397bcfdbc02bc574231579d57d7c9cd5cc26d
[ "BSD-3-Clause" ]
14
2016-06-03T05:52:27.000Z
2019-03-21T09:56:03.000Z
#ifndef OBJECT_HANDLE_STORAGE_REFLECTED_CAST_HPP #define OBJECT_HANDLE_STORAGE_REFLECTED_CAST_HPP #include "core_object/i_object_handle_storage.hpp" #include "core_reflection/reflection_dll.hpp" #include "core_reflection/object/object_handle.hpp" namespace wgt { class IDefinitionManager; class TypeId; class ObjectH...
31.948718
107
0.802568
wgsyd
bc26b90c04ba5f21ea297bb48845e064717c014a
112
cpp
C++
src/IceRay/geometry/_pure/_pure.cpp
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
2
2020-09-04T12:27:15.000Z
2022-01-17T14:49:40.000Z
src/IceRay/geometry/_pure/_pure.cpp
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
null
null
null
src/IceRay/geometry/_pure/_pure.cpp
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
1
2020-09-04T12:27:52.000Z
2020-09-04T12:27:52.000Z
#include "./_base.cpp" #include "./general/general.cpp" #include "./uvw.cpp" #include "./transform.cpp"
16
33
0.633929
dmilos
bc26de50827ca6bb101e9e58fa8300b9d9b94441
519
cpp
C++
lib/src/Utils/Platform.cpp
ProjectPhysX/OpenCL-SDK
f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1
[ "Apache-2.0" ]
null
null
null
lib/src/Utils/Platform.cpp
ProjectPhysX/OpenCL-SDK
f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1
[ "Apache-2.0" ]
1
2021-11-16T16:30:14.000Z
2021-11-19T13:01:43.000Z
lib/src/Utils/Platform.cpp
ProjectPhysX/OpenCL-SDK
f3e8600cfb6c0266c121d7e1f8b2e5dba9c5fab1
[ "Apache-2.0" ]
null
null
null
#include <CL/Utils/Platform.hpp> bool cl::util::supports_extension(const cl::Platform& platform, const cl::string& extension) { return platform.getInfo<CL_PLATFORM_EXTENSIONS>().find(extension) != cl::string::npos; } bool cl::util::platform_version_contains(const cl::Plat...
34.6
76
0.626204
ProjectPhysX
bc2a6f7aa29e5b6bf350b84a196514ed9cf3182a
3,080
hpp
C++
include/owlcpp/rdf/map_node_literal_crtpb.hpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
10
2017-12-21T05:20:40.000Z
2021-09-18T05:14:01.000Z
include/owlcpp/rdf/map_node_literal_crtpb.hpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
2
2017-12-21T07:31:54.000Z
2021-06-23T08:52:35.000Z
include/owlcpp/rdf/map_node_literal_crtpb.hpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
7
2016-02-17T13:20:31.000Z
2021-11-08T09:30:43.000Z
/** @file "/owlcpp/include/owlcpp/rdf/map_node_literal_crtpb.hpp" part of owlcpp project. @n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt. @n Copyright Mikhail K Levin 2012 *******************************************************************************/ #ifndef MAP_NODE_LITERAL_CRT...
32.421053
85
0.637338
GreyMerlin
bc2c61975a9bcad5f5af9b7607ec4b46f24d92cf
110,302
cc
C++
test/smoke/issue_apps_001/lulesh.cc
illuhad/aomp
94078df8f6f1eb9ff54dd535a8c980b21526e74a
[ "Apache-2.0" ]
13
2016-12-17T03:13:09.000Z
2020-11-17T17:32:14.000Z
test/smoke/issue_apps_001/lulesh.cc
illuhad/aomp
94078df8f6f1eb9ff54dd535a8c980b21526e74a
[ "Apache-2.0" ]
2
2019-12-09T16:24:26.000Z
2019-12-09T16:27:55.000Z
test/smoke/issue_apps_001/lulesh.cc
illuhad/aomp
94078df8f6f1eb9ff54dd535a8c980b21526e74a
[ "Apache-2.0" ]
1
2016-12-21T22:59:03.000Z
2016-12-21T22:59:03.000Z
/******************************************************************************* Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of so...
33.323867
134
0.522701
illuhad
bc2e3c852eef5d81ebc7f5c703f3b3d087b4dabb
13,191
cpp
C++
flatdata-cpp/test/BackwardCompatibilityTest.cpp
gferon/flatdata
8839fb36be105e496fea8acc3fc907ae878dd063
[ "Apache-2.0" ]
140
2018-01-26T21:59:38.000Z
2022-02-17T10:23:29.000Z
flatdata-cpp/test/BackwardCompatibilityTest.cpp
gferon/flatdata
8839fb36be105e496fea8acc3fc907ae878dd063
[ "Apache-2.0" ]
114
2018-01-26T17:49:20.000Z
2021-11-26T13:27:08.000Z
flatdata-cpp/test/BackwardCompatibilityTest.cpp
gferon/flatdata
8839fb36be105e496fea8acc3fc907ae878dd063
[ "Apache-2.0" ]
22
2018-01-26T16:51:24.000Z
2021-04-27T13:32:44.000Z
/** * Copyright (c) 2018 HERE Europe B.V. * See the LICENSE file in the root of this project for license details. */ #include "test_structures.hpp" #include <flatdata/flatdata.h> #include "catch.hpp" #include <array> namespace flatdata { using namespace test_structures; using namespace test_structures::backward_...
39.258929
100
0.596543
gferon
bc2efaaec69fe78cba8e47f7a322b20769a42df5
1,659
cpp
C++
leetcode/leetcode101.cpp
KevinYang515/C-Projects
1bf95a09a0ffc18102f12263c9163619ce6dba55
[ "MIT" ]
null
null
null
leetcode/leetcode101.cpp
KevinYang515/C-Projects
1bf95a09a0ffc18102f12263c9163619ce6dba55
[ "MIT" ]
null
null
null
leetcode/leetcode101.cpp
KevinYang515/C-Projects
1bf95a09a0ffc18102f12263c9163619ce6dba55
[ "MIT" ]
null
null
null
#include "TreeNode.h" #include <iostream> #include <vector> #include <queue> using namespace std; bool isSymmetric_r(TreeNode* root); bool helper_r(TreeNode* left, TreeNode* right); bool isSymmetric_i(TreeNode* root); int main(){ vector<TreeNode*> root_v = {new TreeNode(1, new TreeNode(2, new TreeNode(3), new Tr...
27.65
151
0.590717
KevinYang515
bc2fec11cba95a1405674cf6de30b8a67e523a78
267
hpp
C++
Algorithm_C/Algorithm_C/First/TwoNumbersWithSum/TwoNumbersWithSum.hpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
2
2021-06-26T08:07:04.000Z
2021-08-03T06:05:40.000Z
Algorithm_C/Algorithm_C/First/TwoNumbersWithSum/TwoNumbersWithSum.hpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
null
null
null
Algorithm_C/Algorithm_C/First/TwoNumbersWithSum/TwoNumbersWithSum.hpp
chm994483868/HMDailyLearningRecord
95ff0a5347927ce4527bcdd70374e5be22bfc60d
[ "MIT" ]
null
null
null
// // TwoNumbersWithSum.hpp // Algorithm_C // // Created by HM C on 2020/7/25. // Copyright © 2020 CHM. All rights reserved. // #ifndef TwoNumbersWithSum_hpp #define TwoNumbersWithSum_hpp #include <stdio.h> #include <cstdio> #endif /* TwoNumbersWithSum_hpp */
16.6875
46
0.715356
chm994483868
bc30ffb02e458ea9d4e0258a82520a81628673ef
7,200
cpp
C++
mainwindow.cpp
Sage-of-Mirrors/Qt-Wind-Waker-Song-Editor
2acf1eb790cde67368bb950f35e70ab93eabb911
[ "MIT" ]
1
2020-02-01T18:55:23.000Z
2020-02-01T18:55:23.000Z
mainwindow.cpp
Sage-of-Mirrors/Qt-Wind-Waker-Song-Editor
2acf1eb790cde67368bb950f35e70ab93eabb911
[ "MIT" ]
null
null
null
mainwindow.cpp
Sage-of-Mirrors/Qt-Wind-Waker-Song-Editor
2acf1eb790cde67368bb950f35e70ab93eabb911
[ "MIT" ]
null
null
null
#include "mainwindow.h" #include "ui_mainwindow.h" #include <iostream> #include <QtWidgets/QGraphicsView> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->setWindowFlags(Qt::MSWindowsFixedSizeDialogHint); notes[0] = QPixmap(":/images/...
29.149798
94
0.640556
Sage-of-Mirrors
bc3179909b54464c1c9f35348232bd976393a55f
1,711
cpp
C++
src/lib/file.cpp
bunsanorg/bacs_system
22149ecfaac913b820dbda52933bf8ea9fecd723
[ "Apache-2.0" ]
null
null
null
src/lib/file.cpp
bunsanorg/bacs_system
22149ecfaac913b820dbda52933bf8ea9fecd723
[ "Apache-2.0" ]
null
null
null
src/lib/file.cpp
bunsanorg/bacs_system
22149ecfaac913b820dbda52933bf8ea9fecd723
[ "Apache-2.0" ]
null
null
null
#include <bacs/system/file.hpp> #include <bunsan/filesystem/fstream.hpp> namespace bacs { namespace system { namespace file { std::string read(const boost::filesystem::path &path, const bacs::file::Range &range) { std::string data; bunsan::filesystem::ifstream fin(path, std::ios::binary); BUNS...
30.017544
79
0.611923
bunsanorg
bc336cc94eac64bb0476caa4d364444886e37ec1
2,140
cpp
C++
src/MapGenerator/randomMine.cpp
KujouRinka/minesweeper
c75fdbb874283c5440d534102fed6f894070a873
[ "MIT" ]
3
2021-04-24T02:45:36.000Z
2021-05-31T16:05:17.000Z
src/MapGenerator/randomMine.cpp
KujouRinka/minesweeper
c75fdbb874283c5440d534102fed6f894070a873
[ "MIT" ]
null
null
null
src/MapGenerator/randomMine.cpp
KujouRinka/minesweeper
c75fdbb874283c5440d534102fed6f894070a873
[ "MIT" ]
null
null
null
// // Created by KujouRinka on 2021/4/5. // #include <random> #include <ctime> #include "MapGenerator.h" /** * Use random library to generate some mines. * Write a totally initialize map to Controller::minefield * * @param emptyField * A pointer of MField which just initialize map size. * */ void MapGenerator::...
31.940299
92
0.589252
KujouRinka
bc336ef3da0e6263d2bb98e9e28c1c31075b1636
17,450
cc
C++
AICamera/app/src/main/cpp/caffe2/opt/onnxifi_transformer.cc
blackxer/AICamera
4f0a6a09a2288da2ec7140744b5c2862df114c78
[ "MIT" ]
1
2020-01-10T02:56:03.000Z
2020-01-10T02:56:03.000Z
AICamera/app/src/main/cpp/caffe2/opt/onnxifi_transformer.cc
blackxer/AICamera
4f0a6a09a2288da2ec7140744b5c2862df114c78
[ "MIT" ]
null
null
null
AICamera/app/src/main/cpp/caffe2/opt/onnxifi_transformer.cc
blackxer/AICamera
4f0a6a09a2288da2ec7140744b5c2862df114c78
[ "MIT" ]
null
null
null
#include "caffe2/opt/onnxifi_transformer.h" #include <iostream> #include <unordered_set> #include "onnx/proto_utils.h" #include "caffe2/core/context.h" #include "caffe2/core/logging.h" #include "caffe2/core/operator.h" #include "caffe2/core/tensor.h" #include "caffe2/onnx/onnx_exporter.h" #include "caffe...
35.539715
81
0.649169
blackxer
bc3ce65d17dfd65960afc03af7e989a4dc3fc12b
1,347
cpp
C++
ecc-20203-csci-146+147/Anagram/by_sort.cpp
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
ecc-20203-csci-146+147/Anagram/by_sort.cpp
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
ecc-20203-csci-146+147/Anagram/by_sort.cpp
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
#include "constants.hpp" #include <string> std::string filterByCompare(std::string s, char pivot, bool keepGreater) { if (s.empty()) { return s; } else if (keepGreater == (s.front() > pivot)) { return s.front() + filterByCompare(s.substr(1), pivot, keepGreater); } else { return filterByCompare(s.substr(1), pi...
23.631579
74
0.678545
Floozutter
bc3d3b22d19f0b526f9405baab70642786e03aa2
492
cpp
C++
shanghai/src/system/taskqueue.cpp
yappy/DollsK
77bf420a87076b67d3b3be780c940ab4ca82303a
[ "MIT" ]
null
null
null
shanghai/src/system/taskqueue.cpp
yappy/DollsK
77bf420a87076b67d3b3be780c940ab4ca82303a
[ "MIT" ]
58
2016-08-06T19:37:52.000Z
2021-02-23T17:22:14.000Z
shanghai/src/system/taskqueue.cpp
yappy/DollsK
77bf420a87076b67d3b3be780c940ab4ca82303a
[ "MIT" ]
2
2019-02-07T04:31:52.000Z
2020-04-16T23:43:51.000Z
#include "taskqueue.h" namespace shanghai { namespace system { namespace { using mtx_guard = std::lock_guard<std::mutex>; } // namespace void TaskQueue::Enqueue(TaskFunc &&func) { mtx_guard lock(m_mtx); m_queue.emplace_back(func); } TaskQueue::TaskFunc TaskQueue::PopFront() { mtx_guard lock(m_mtx); if (!m_queu...
15.870968
47
0.693089
yappy
bc40e87e6b3b8780161cd36ad72967eb7340391d
318
cpp
C++
src/color.cpp
rubot813/wsp_solver
a2918ad2eb37c083d1af405f298bc014303c62aa
[ "Apache-2.0" ]
null
null
null
src/color.cpp
rubot813/wsp_solver
a2918ad2eb37c083d1af405f298bc014303c62aa
[ "Apache-2.0" ]
null
null
null
src/color.cpp
rubot813/wsp_solver
a2918ad2eb37c083d1af405f298bc014303c62aa
[ "Apache-2.0" ]
1
2021-01-04T20:19:47.000Z
2021-01-04T20:19:47.000Z
#include "color.h" std::string color_to_string( color_e c ) { std::string str; switch ( c ) { case empty: str = "empty"; break; case red: str = "red"; break; case green: str = "green"; break; case blue: str = "blue"; break; default: str = "unknown. add to color_to_string"; } return str; }
13.826087
42
0.603774
rubot813
bc4327620163a0bcda1c9ed1d07c09220c0fdc3c
127
hpp
C++
shared/shared.hpp
Binary-Song/MetaParser
fb59cecfd11aef81d1afad1261a6c58c8ef11d6b
[ "MIT" ]
null
null
null
shared/shared.hpp
Binary-Song/MetaParser
fb59cecfd11aef81d1afad1261a6c58c8ef11d6b
[ "MIT" ]
null
null
null
shared/shared.hpp
Binary-Song/MetaParser
fb59cecfd11aef81d1afad1261a6c58c8ef11d6b
[ "MIT" ]
null
null
null
#ifndef _SHARED_H_ #define _SHARED_H_ #include "rules.hpp" #include "utils.hpp" #include "local_path.hpp" #endif // _SHARED_H_
18.142857
25
0.76378
Binary-Song
a4b946cafcc06834e5d16d00cb773748aa7e5198
494
cpp
C++
Bit Manipulation/AllRepeatingExcept2.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
Bit Manipulation/AllRepeatingExcept2.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
Bit Manipulation/AllRepeatingExcept2.cpp
Ankitlenka26/IP2021
99322c9c84a8a9c9178a505afbffdcebd312b059
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<string> using namespace std; int main(){ int n ; cin >> n ; int *arr = new int[n]; int xxory = 0; for(int i=0 ;i<n ;i++){ cin >> arr[i]; xxory ^= arr[i]; } int rmsb = xxory & (-xxory); int x =0 , y=0 ; for(int i=0 ;i<n ;i++){ if((arr[i] & rmsb) == 0){ ...
14.529412
30
0.47166
Ankitlenka26
a4ba033482131cb18e1bd1265d6d5bdf85ea2fb9
720
cpp
C++
src/cpp_solver/Solver/GroupNodes/CubeNode.cpp
pabloqb2000/py-rubik_solver
c1cf83fa62b6ff0dce9859fe59296c85a57f8d3f
[ "Apache-2.0" ]
3
2021-09-11T14:44:40.000Z
2021-12-28T00:51:02.000Z
src/cpp_solver/Solver/GroupNodes/CubeNode.cpp
pabloqb2000/py-rubik_solver
c1cf83fa62b6ff0dce9859fe59296c85a57f8d3f
[ "Apache-2.0" ]
null
null
null
src/cpp_solver/Solver/GroupNodes/CubeNode.cpp
pabloqb2000/py-rubik_solver
c1cf83fa62b6ff0dce9859fe59296c85a57f8d3f
[ "Apache-2.0" ]
4
2021-09-12T02:29:24.000Z
2021-12-18T13:39:46.000Z
#include "CubeNode.h" /** * Create a CubeNode from a Cube * @param cube base cube */ CubeNode::CubeNode (const Cube& cube) : Cube(cube) { this->moveStack.push(Cube::MOVE::NONE); } /** * Store move in stack * Move using a move index. */ Cube& CubeNode::move(MOVE ind) { this->moveStack.push(ind); retu...
15.652174
52
0.627778
pabloqb2000
a4bf875f72ff042ef64f8b7c02b264a4d299675b
1,944
cpp
C++
tst/integration/test_kernel_specifications.cpp
lanl/PANACEA
9779bdb6dcc3be41ea7b286ae55a21bb269e0339
[ "BSD-3-Clause" ]
null
null
null
tst/integration/test_kernel_specifications.cpp
lanl/PANACEA
9779bdb6dcc3be41ea7b286ae55a21bb269e0339
[ "BSD-3-Clause" ]
null
null
null
tst/integration/test_kernel_specifications.cpp
lanl/PANACEA
9779bdb6dcc3be41ea7b286ae55a21bb269e0339
[ "BSD-3-Clause" ]
null
null
null
// Local private PANACEA includes #include "kernels/kernel_specifications.hpp" #include "io/file_io_factory.hpp" // Public PANACEA includes #include "panacea/file_io.hpp" // Third party includes #include <catch2/catch.hpp> using namespace std; using namespace panacea; TEST_CASE("Testing:kernel specifications writ...
37.384615
78
0.742798
lanl
a4c3b43bdd7f9e3a1ce9eff51400362eb8ad8ca4
624
cxx
C++
attic/src/tests/compose_test.cxx
yamasdais/asaki-yumemishi
d6220e489da613a634e6ce474a869f5d2932f89d
[ "BSL-1.0" ]
null
null
null
attic/src/tests/compose_test.cxx
yamasdais/asaki-yumemishi
d6220e489da613a634e6ce474a869f5d2932f89d
[ "BSL-1.0" ]
8
2017-09-28T14:39:37.000Z
2021-03-09T22:55:55.000Z
attic/src/tests/compose_test.cxx
yamasdais/asaki-yumemishi
d6220e489da613a634e6ce474a869f5d2932f89d
[ "BSL-1.0" ]
null
null
null
#include <utility> #include <type_traits> #include <gtest/gtest.h> #include <fmp/primitive.hpp> #include <fmp/values.hpp> #include <fmp_test.hpp> using namespace fmp; using cr0 = curry<noarg>; using cr1 = curry<id>; using cr2 = curry<std::add_const>; using ComposeTypeTarget = ::testing::Types< p<true_type, appl...
23.111111
72
0.724359
yamasdais
a4c66ffbdfb868b312f1fa8cfaea023e1e8d26d4
115
hpp
C++
Include/FishEngine/Internal/LogType.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
240
2017-02-17T10:08:19.000Z
2022-03-25T14:45:29.000Z
Include/FishEngine/Internal/LogType.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
2
2016-10-12T07:08:38.000Z
2017-04-05T01:56:30.000Z
Include/FishEngine/Internal/LogType.hpp
yushroom/FishEngine_-Experiment
81e4c06f20f6b94dc561b358f8a11a092678aeeb
[ "MIT" ]
39
2017-03-02T09:40:07.000Z
2021-12-04T07:28:53.000Z
#pragma once namespace FishEngine { enum class LogType { Error, Assert, Warning, Log, Exception }; }
8.214286
20
0.652174
yushroom
a4c8656abe5470fe626dc0f7c71adec0637a2076
1,343
cpp
C++
00057_insert-interval/191231-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
6
2019-10-23T01:07:29.000Z
2021-12-05T01:51:16.000Z
00057_insert-interval/191231-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
null
null
null
00057_insert-interval/191231-1.cpp
yanlinlin82/leetcode
ddcc0b9606d951cff9c08d1f7dfbc202067c8d65
[ "MIT" ]
1
2021-12-03T06:54:57.000Z
2021-12-03T06:54:57.000Z
// https://leetcode-cn.com/problems/insert-interval/ #include <cstdio> #include <vector> using namespace std; class Solution { public: vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) { insert(intervals, newInterval[0], newInterval[1]); return intervals; } private: void in...
23.561404
90
0.511541
yanlinlin82
a4cc9162e73775f0d512cd6923e17ada0ff79bfb
141
hpp
C++
linux/include/common.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
1
2021-02-22T15:06:39.000Z
2021-02-22T15:06:39.000Z
linux/include/common.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
null
null
null
linux/include/common.hpp
BaronKhan/gitgudcommit
cfc5f20339c61f3928871bea375608f7eefb8138
[ "MIT" ]
1
2021-02-22T15:06:41.000Z
2021-02-22T15:06:41.000Z
#ifndef GITGUD_COMMON_HPP_ #define GITGUD_COMMON_HPP_ #include <string> namespace GitGud { std::string exec(const char* cmd); } #endif
10.846154
36
0.751773
BaronKhan
a4ccacded3b5dc2f4c41430e27fdadb755ac6598
2,081
cpp
C++
mod/memlite/watcher/watcher.cpp
kniz/wrd
a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6
[ "MIT" ]
7
2019-03-12T03:04:32.000Z
2021-12-26T04:33:44.000Z
mod/memlite/watcher/watcher.cpp
kniz/wrd
a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6
[ "MIT" ]
25
2016-09-23T16:36:19.000Z
2019-02-12T14:14:32.000Z
mod/memlite/watcher/watcher.cpp
kniz/World
13b0c8c7fdc6280efcb2135dc3902754a34e6d06
[ "MIT" ]
null
null
null
#include "watcher.hpp" namespace wrd { WRD_DEF_ME(watcher, chunk) me::watcher() : chunk(sizeof(watchCell), false) {} watchCell& me::operator[](widx n) { return get(n); } watchCell& me::operator[](id newId) { return get(newId); } watchCell& me::get(widx n) { return *(watchCell*)_get(n); } w...
31.059701
99
0.560308
kniz
a4d21d9bd36d3a10c25892080190fbccf0e3438b
5,643
cpp
C++
src/direct_method/mask.cpp
pariasm/estadeo-seq
2198df08b50cc7f4fc1fdbf43387eb166e3627ac
[ "BSD-2-Clause" ]
null
null
null
src/direct_method/mask.cpp
pariasm/estadeo-seq
2198df08b50cc7f4fc1fdbf43387eb166e3627ac
[ "BSD-2-Clause" ]
null
null
null
src/direct_method/mask.cpp
pariasm/estadeo-seq
2198df08b50cc7f4fc1fdbf43387eb166e3627ac
[ "BSD-2-Clause" ]
null
null
null
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2015, Javier Sánchez Pérez <jsan...
25.65
76
0.460748
pariasm
a4d276c676749f1e6f8f89edc865fc560d5578e9
4,337
cpp
C++
src/ioHandler.cpp
JonasRock/ARXML_LanguageServer
f31cc0b2ca9233ac544cf10aee6d799ea9e55320
[ "Apache-2.0" ]
1
2021-09-11T06:28:35.000Z
2021-09-11T06:28:35.000Z
src/ioHandler.cpp
JonasRock/ARXML_LanguageServer
f31cc0b2ca9233ac544cf10aee6d799ea9e55320
[ "Apache-2.0" ]
1
2022-01-27T08:47:22.000Z
2022-01-27T12:23:57.000Z
src/ioHandler.cpp
JonasRock/ARXML_LanguageServer
f31cc0b2ca9233ac544cf10aee6d799ea9e55320
[ "Apache-2.0" ]
null
null
null
#include "ioHandler.hpp" #include <iostream> #include <string> #include <thread> #include <chrono> #include "boost/asio.hpp" #include "boost/lexical_cast.hpp" using namespace boost; lsp::IOHandler::IOHandler(const std::string &address, uint32_t port) : ioc_(), endpoint_(asio::ip::address::from_string(address), ...
34.696
207
0.646991
JonasRock
a4d5561da07e8715abdf458003a5f3d084d0eade
2,783
cpp
C++
Geometry/Geometry.cpp
odanado/ProconLib
b90e4109466c71d4ffac42f218f51b695104e37f
[ "MIT" ]
null
null
null
Geometry/Geometry.cpp
odanado/ProconLib
b90e4109466c71d4ffac42f218f51b695104e37f
[ "MIT" ]
1
2018-01-26T12:37:28.000Z
2018-01-26T12:37:28.000Z
Geometry/Geometry.cpp
odanado/ProconLib
b90e4109466c71d4ffac42f218f51b695104e37f
[ "MIT" ]
null
null
null
#include <complex> #include <vector> #include <cmath> #include <utility> #include <cassert> #include <cmath> const double EPS=1e-10; #define equals(a, b) (fabs((a)-(b))<EPS) #define X real() #define Y imag() using namespace std; typedef complex<double> Point; typedef complex<double> Vector; struct Segment { Po...
21.742188
64
0.610133
odanado
a4d6621ecad3bd7488a8c90008a95c519c982242
2,183
cpp
C++
2016/main_pancakes.cpp
RomainBrault/GoogleCodeJam
d11bafaf77943c275fac4f08ab95b1f97788dea0
[ "MIT" ]
null
null
null
2016/main_pancakes.cpp
RomainBrault/GoogleCodeJam
d11bafaf77943c275fac4f08ab95b1f97788dea0
[ "MIT" ]
null
null
null
2016/main_pancakes.cpp
RomainBrault/GoogleCodeJam
d11bafaf77943c275fac4f08ab95b1f97788dea0
[ "MIT" ]
null
null
null
#include <fstream> #include <iostream> #include <string> #include <vector> #include <algorithm> #include <functional> #define CHECK_STREAM(S, E) do { \ if (!(S)) goto E; \ } while (0) #define CHECK_END_STREAM(S, E) do { \ (S).ignore(2); \ if (!(S).eof()) goto E; \ } while (0) inline auto flip(auto && beg...
26.950617
80
0.479157
RomainBrault
a4d681f2d4408dbbe823cfcdebc3ccd9f2e2586f
1,163
cpp
C++
src/NcursesGraphcisDriver.cpp
gangz/Tetris
782b7cb530638997d160df7e3e34c91f7391fa50
[ "MIT" ]
null
null
null
src/NcursesGraphcisDriver.cpp
gangz/Tetris
782b7cb530638997d160df7e3e34c91f7391fa50
[ "MIT" ]
1
2019-06-27T03:14:48.000Z
2019-06-29T15:18:34.000Z
src/NcursesGraphcisDriver.cpp
gangz/Tetris
782b7cb530638997d160df7e3e34c91f7391fa50
[ "MIT" ]
null
null
null
#include "NcursesGraphcisDriver.h" #include <ncurses.h> #include <assert.h> NcursesGraphcisDriver::NcursesGraphcisDriver() { initscr(); noecho(); cbreak(); /* Line buffering disabled. pass on everything */ keypad(stdscr,true); box(stdscr,ACS_VLINE,ACS_HLINE); } NcursesGraphcisDriver::~NcursesGraphcisDriver() { ...
21.943396
72
0.703353
gangz
a4d73ea0c383ab42039fbad01d85bd1ac3a23674
1,932
cpp
C++
AbusLabeler/ABUSAlg.cpp
doublechenching/AbusLabeler
7aad0fa424a0f9a38e5b68bab4908bf4db8f9615
[ "MIT" ]
6
2018-09-08T07:46:51.000Z
2019-06-14T08:36:56.000Z
AbusLabeler/ABUSAlg.cpp
doublechenching/AbusLabeler
7aad0fa424a0f9a38e5b68bab4908bf4db8f9615
[ "MIT" ]
null
null
null
AbusLabeler/ABUSAlg.cpp
doublechenching/AbusLabeler
7aad0fa424a0f9a38e5b68bab4908bf4db8f9615
[ "MIT" ]
1
2018-08-04T07:44:17.000Z
2018-08-04T07:44:17.000Z
#include "stdafx.h" #include "ABUSAlg.h" #include <math.h> static const double PI = 3.1415928; ABUSAlg::ABUSAlg(int paddingLen) { m_paddingLen = paddingLen; m_alpha = 20; m_radius = 2500; } void ABUSAlg::DSC2D(cv::Mat &dsc_image, cv::Mat org_image, int method) { // padding array cv::Mat padedImage(cv::Size(org_...
27.211268
97
0.650104
doublechenching
a4d9a62f30604c37da3eedac837a6eed2eabf64c
3,126
cpp
C++
Source/URoboSim/Private/ROSCommunication/RROSClient.cpp
K4R-IAI/URoboSim
0b8769761ce77fe493f37e1ec488ed50d66402ec
[ "BSD-3-Clause" ]
1
2021-04-11T13:03:58.000Z
2021-04-11T13:03:58.000Z
Source/URoboSim/Private/ROSCommunication/RROSClient.cpp
artnie/URoboSim
0b8769761ce77fe493f37e1ec488ed50d66402ec
[ "BSD-3-Clause" ]
null
null
null
Source/URoboSim/Private/ROSCommunication/RROSClient.cpp
artnie/URoboSim
0b8769761ce77fe493f37e1ec488ed50d66402ec
[ "BSD-3-Clause" ]
null
null
null
#include "ROSCommunication/RROSClient.h" #include "TimerManager.h" void URROSClient::Init(UObject* InOwner, TSharedPtr<FROSBridgeHandler> InHandler) { ROSHandler = InHandler; Init(InOwner); } void URROSClient::Init(UObject* InOwner, TArray<FString>* OutArray, TSharedPtr<FROSBridgeHandler> InHandler) { ROSHandler =...
42.821918
227
0.805182
K4R-IAI
a4dda335d79f0268e4833541a4751f64cd1999ca
1,024
cpp
C++
Algorithms/07-Greedy/Jim_and_the_Orders/main.cpp
christosg88/hackerrank
21bc44aac842325ad0a48265658f7674984aeff2
[ "MIT" ]
null
null
null
Algorithms/07-Greedy/Jim_and_the_Orders/main.cpp
christosg88/hackerrank
21bc44aac842325ad0a48265658f7674984aeff2
[ "MIT" ]
null
null
null
Algorithms/07-Greedy/Jim_and_the_Orders/main.cpp
christosg88/hackerrank
21bc44aac842325ad0a48265658f7674984aeff2
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <tuple> #include <algorithm> int main() { int num_customers; std::cin >> num_customers; // (serve_time, customer_number) // serve_time == order_number + preparation_time std::vector<std::pair<int, int>> serve_order; for (int customer_number = 1; ...
28.444444
123
0.582031
christosg88
a4e36ded1889c1218d51deccfe08aab87005f88d
189
hpp
C++
vendor/bindgen/tests/headers/class_use_as.hpp
mrkatebzadeh/rust-ibverbs
c0ea14f0e35be179a0370a7312b5fa07032adb27
[ "Apache-2.0", "MIT" ]
null
null
null
vendor/bindgen/tests/headers/class_use_as.hpp
mrkatebzadeh/rust-ibverbs
c0ea14f0e35be179a0370a7312b5fa07032adb27
[ "Apache-2.0", "MIT" ]
null
null
null
vendor/bindgen/tests/headers/class_use_as.hpp
mrkatebzadeh/rust-ibverbs
c0ea14f0e35be179a0370a7312b5fa07032adb27
[ "Apache-2.0", "MIT" ]
1
2021-02-02T10:49:21.000Z
2021-02-02T10:49:21.000Z
/** * <div rustbindgen="true" replaces="whatever"></div> */ struct whatever_replacement { int replacement; }; struct whatever { int b; }; struct container { whatever c; };
11.8125
53
0.62963
mrkatebzadeh
a4e4ba0b5570bbe6bb7f74f259b530c997fb6833
32,798
cc
C++
lib/jxl/dec_reconstruct.cc
xann16/jpeg-xl
3f44ccc40341a579dd3d6d2878901ffab2137a1c
[ "Apache-2.0" ]
1
2021-08-05T12:14:05.000Z
2021-08-05T12:14:05.000Z
lib/jxl/dec_reconstruct.cc
xann16/jpeg-xl
3f44ccc40341a579dd3d6d2878901ffab2137a1c
[ "Apache-2.0" ]
null
null
null
lib/jxl/dec_reconstruct.cc
xann16/jpeg-xl
3f44ccc40341a579dd3d6d2878901ffab2137a1c
[ "Apache-2.0" ]
null
null
null
// Copyright (c) the JPEG XL Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
41.255346
80
0.621806
xann16
a4e6db96a8e708d2569e88055483edc164ef76ca
2,059
cpp
C++
src/plugins/azoth/plugins/vader/proto/balancer.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
120
2015-01-22T14:10:39.000Z
2021-11-25T12:57:16.000Z
src/plugins/azoth/plugins/vader/proto/balancer.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
8
2015-02-07T19:38:19.000Z
2017-11-30T20:18:28.000Z
src/plugins/azoth/plugins/vader/proto/balancer.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
33
2015-02-07T16:59:55.000Z
2021-10-12T00:36:40.000Z
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE...
20.79798
83
0.58135
Maledictus
a4e8b7dc052667dccaa504aed9b3441a363974c3
1,662
cc
C++
flens/examples/lapack-getrf.cc
stip/FLENS
80495fa97dda42a0acafc8f83fc9639ae36d2e10
[ "BSD-3-Clause" ]
98
2015-01-26T20:31:37.000Z
2021-09-09T15:51:37.000Z
flens/examples/lapack-getrf.cc
stip/FLENS
80495fa97dda42a0acafc8f83fc9639ae36d2e10
[ "BSD-3-Clause" ]
16
2015-01-21T07:43:45.000Z
2021-12-06T12:08:36.000Z
flens/examples/lapack-getrf.cc
stip/FLENS
80495fa97dda42a0acafc8f83fc9639ae36d2e10
[ "BSD-3-Clause" ]
31
2015-01-05T08:06:45.000Z
2022-01-26T20:12:00.000Z
#include <cxxstd/iostream.h> /// /// With header __flens.cxx__ all of FLENS gets included. /// /// :links: __flens.cxx__ -> file:flens/flens.cxx #include <flens/flens.cxx> using namespace std; using namespace flens; typedef double T; int main() { /// /// Define some convenient typedef for the matrix ty...
23.408451
77
0.522262
stip
a4e9b924a9fe069555a61aa7d774c4df75ddae20
83,368
cpp
C++
inetcore/setup/active/inseng/cifcomp.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetcore/setup/active/inseng/cifcomp.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetcore/setup/active/inseng/cifcomp.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "inspch.h" #include "inseng.h" #include "insobj.h" #include "util2.h" #define MAX_VALUE_LEN 256 #define MAX_SMALL_BUF 64 #define NO_ENTRY "" #define UNINSTALL_BRANCH "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall" char g_pBuffer[BUFFERSIZE]; #define NUM_RETRIES 2 HINSTANCE C...
30.980305
159
0.596776
npocmaka
a4eaa9a6ff7ac962595c673154e98ef94fffc738
10,193
cpp
C++
parser/parserStrings.cpp
pat-laugh/websson-libraries
c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2
[ "MIT" ]
null
null
null
parser/parserStrings.cpp
pat-laugh/websson-libraries
c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2
[ "MIT" ]
33
2017-04-25T21:53:59.000Z
2017-07-14T13:30:29.000Z
parser/parserStrings.cpp
pat-laugh/websson-libraries
c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2
[ "MIT" ]
null
null
null
//MIT License //Copyright 2017-2018 Patrick Laughrea #include "parserStrings.hpp" #include "containerSwitcher.hpp" #include "errors.hpp" #include "unicode.hpp" #include "utils/constants.hpp" #include "utils/utilsWebss.hpp" #include "various/utils.hpp" using namespace std; using namespace various; using namespace webs...
25.546366
121
0.700186
pat-laugh
a4eb1b20d2814fedc55ee88bc1a150b027c6304f
114,708
cpp
C++
Source/tests/functional/crypto/hash/sha_tests.cpp
ProtonMail/cpp-openpgp
b47316c51357b8d15eb3bcc376ea5e59a6a9a108
[ "MIT" ]
5
2019-10-30T06:10:10.000Z
2020-04-25T16:52:06.000Z
Source/tests/functional/crypto/hash/sha_tests.cpp
ProtonMail/cpp-openpgp
b47316c51357b8d15eb3bcc376ea5e59a6a9a108
[ "MIT" ]
null
null
null
Source/tests/functional/crypto/hash/sha_tests.cpp
ProtonMail/cpp-openpgp
b47316c51357b8d15eb3bcc376ea5e59a6a9a108
[ "MIT" ]
2
2019-11-27T23:47:54.000Z
2020-01-13T16:36:03.000Z
// // sha_tests.cpp // OpenPGP // // Created by Yanfeng Zhang on 10/28/16. // // The MIT License // // Copyright (c) 2019 Proton Technologies AG // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal //...
104.85192
279
0.777322
ProtonMail
a4ed388e1a35ea3899a428244fa7415158f48e85
389
cpp
C++
BOJ_problem/1612.cpp
Geol2/PSCode
adaa6d3c7712caa8cc0ce9b00711e5d866907ddc
[ "MIT" ]
null
null
null
BOJ_problem/1612.cpp
Geol2/PSCode
adaa6d3c7712caa8cc0ce9b00711e5d866907ddc
[ "MIT" ]
null
null
null
BOJ_problem/1612.cpp
Geol2/PSCode
adaa6d3c7712caa8cc0ce9b00711e5d866907ddc
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; if(!(n % 2 && n % 5)) return cout << -1 << '\n',0; for(int i=1, j = 0;;i++){ j = (10 * j + 1) % n; if(!(j % n)) { ...
17.681818
54
0.401028
Geol2
a4efc43444a28275ec4bda268ec5458df99759a2
2,777
cpp
C++
src/win32/Splitter.cpp
NullPopPoLab/Play--Framework
ab4594f9ef548f1476c9017e122a05dfb91cc9d3
[ "BSD-2-Clause" ]
35
2015-02-19T20:11:05.000Z
2021-11-05T12:55:07.000Z
src/win32/Splitter.cpp
NullPopPoLab/Play--Framework
ab4594f9ef548f1476c9017e122a05dfb91cc9d3
[ "BSD-2-Clause" ]
24
2015-07-19T04:51:29.000Z
2022-03-31T00:36:45.000Z
src/win32/Splitter.cpp
Thunder07/Play--Framework
b0c8487656492f237f6613fccadbb8011b61bd4d
[ "BSD-2-Clause" ]
22
2015-02-16T03:36:00.000Z
2022-01-23T13:15:00.000Z
#include "win32/Splitter.h" #include <cassert> #define CLSNAME _T("CSplitter") using namespace Framework; using namespace Framework::Win32; CSplitter::CSplitter(HWND parentWnd, const RECT& rect, HCURSOR cursor, unsigned int edgePosition) : m_cursor(cursor) , m_edgePosition(edgePosition) { m_child[0] = ...
21.695313
129
0.686712
NullPopPoLab
a4f2e3ed5215ed1211b6d81f823a6bcf844e5a6a
2,502
cpp
C++
examples/two_to_one_multi_put.cpp
abwilson/LowLatency
cefc780eccb0426f8fe99f5f59dce347c98f13aa
[ "MIT" ]
31
2015-06-26T16:38:18.000Z
2022-03-01T03:28:08.000Z
examples/two_to_one_multi_put.cpp
abwilson/LowLatency
cefc780eccb0426f8fe99f5f59dce347c98f13aa
[ "MIT" ]
1
2015-07-25T22:36:40.000Z
2015-07-25T22:36:40.000Z
examples/two_to_one_multi_put.cpp
abwilson/LowLatency
cefc780eccb0426f8fe99f5f59dce347c98f13aa
[ "MIT" ]
9
2015-06-26T18:44:31.000Z
2019-09-04T15:13:31.000Z
/* The MIT License (MIT) Copyright (c) 2015 Norman Wilson - Volcano Consultancy Ltd 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...
28.758621
78
0.659073
abwilson
a4f4431c70b2a43799ea38c3ffc08ec6f2fcccf4
6,475
cpp
C++
src/SnakeBlocks.cpp
fmaterak/Linux_terminal
35ccdd6e472880fa8765dba7f3d56809732ba98f
[ "MIT" ]
null
null
null
src/SnakeBlocks.cpp
fmaterak/Linux_terminal
35ccdd6e472880fa8765dba7f3d56809732ba98f
[ "MIT" ]
null
null
null
src/SnakeBlocks.cpp
fmaterak/Linux_terminal
35ccdd6e472880fa8765dba7f3d56809732ba98f
[ "MIT" ]
null
null
null
#include "SnakeBlocks.hpp" template<typename T> terminal::SnakeBlocks<T>::Iterator::Iterator(SnakeBlocks<T>& container, std::size_t block_idx): container(&container), block_idx(block_idx) { try { resolve(); } catch (std::out_of_range) { block = nullptr; } } template<typename T> typ...
28.777778
120
0.563398
fmaterak
a4f9dbc59e2b9d4b27fc43e532da1cafd97266a7
1,763
cc
C++
coela_utility/src/unit_tests/numerical_accuracy_tests.cc
timstaley/coelacanth
d8adc49bac5dac54fdce600ea0260c526ce361af
[ "BSD-2-Clause" ]
1
2020-10-22T03:08:45.000Z
2020-10-22T03:08:45.000Z
coela_utility/src/unit_tests/numerical_accuracy_tests.cc
timstaley/coelacanth
d8adc49bac5dac54fdce600ea0260c526ce361af
[ "BSD-2-Clause" ]
null
null
null
coela_utility/src/unit_tests/numerical_accuracy_tests.cc
timstaley/coelacanth
d8adc49bac5dac54fdce600ea0260c526ce361af
[ "BSD-2-Clause" ]
null
null
null
#include <UnitTest++/UnitTest++.h> #include <stdexcept> #include <iostream> #include <limits> //using namespace coela; using namespace std; SUITE(numerical_accuracy) { TEST(Notify_Suite_Has_Been_Run) { cout << "*** \""<<UnitTest::CurrentTest::Details()->suiteName <<"\" unit tests running ...
27.123077
110
0.612592
timstaley
a4fa956d4caeae0ee4f7c680cad929dd0162e9c5
4,459
cpp
C++
examples/05 resources.cpp
theacodes/PhoenixCore
3953384f9cd84c5775dd23bd60b25ac8d6b6405b
[ "Zlib", "MIT" ]
2
2019-09-09T08:56:18.000Z
2020-12-28T03:52:54.000Z
examples/05 resources.cpp
theacodes/PhoenixCore
3953384f9cd84c5775dd23bd60b25ac8d6b6405b
[ "Zlib", "MIT" ]
null
null
null
examples/05 resources.cpp
theacodes/PhoenixCore
3953384f9cd84c5775dd23bd60b25ac8d6b6405b
[ "Zlib", "MIT" ]
1
2022-01-03T23:27:07.000Z
2022-01-03T23:27:07.000Z
/*! Resource example. In this example we will explore phoenix's resources. It will show how to define custom resources and manipulate them. */ #include "Phoenix.h" using namespace phoenix; using namespace boost; /*! The first thing we'll do is define our resource. We'll simply make a...
30.541096
117
0.559542
theacodes
a4fb2e597ae1e7671eff7bd4923e53351ec0f321
4,161
cpp
C++
C_CPP/huf/Huf.cpp
dengchongsen/study_codes
29d74c05d340117f76aafcc320766248a0f8386b
[ "MulanPSL-1.0" ]
null
null
null
C_CPP/huf/Huf.cpp
dengchongsen/study_codes
29d74c05d340117f76aafcc320766248a0f8386b
[ "MulanPSL-1.0" ]
null
null
null
C_CPP/huf/Huf.cpp
dengchongsen/study_codes
29d74c05d340117f76aafcc320766248a0f8386b
[ "MulanPSL-1.0" ]
null
null
null
#include<iostream> #include<string> #include<cstring> using namespace std; const int MaxW = 9999999; // 假设结点权值不超过9999999 // 定义huffman树结点类 class HuffNode { public: int weight; // 权值 int parent; // 父结点下标 int leftchild; // 左孩子下标 int rightchild; // 右孩子下标 }; // 定义赫夫曼树类 class HuffMan { private: ...
24.333333
92
0.485701
dengchongsen
a4ff03c671f411a6f871481ddc60d65aef354318
6,233
cpp
C++
raw-examples/win32/iocp/server.cpp
paoqi1997/pqnet
3413916bdc355b0a4eea8ef934a3ff658b047b19
[ "BSD-3-Clause" ]
null
null
null
raw-examples/win32/iocp/server.cpp
paoqi1997/pqnet
3413916bdc355b0a4eea8ef934a3ff658b047b19
[ "BSD-3-Clause" ]
null
null
null
raw-examples/win32/iocp/server.cpp
paoqi1997/pqnet
3413916bdc355b0a4eea8ef934a3ff658b047b19
[ "BSD-3-Clause" ]
null
null
null
#include <cstdio> #include <cstring> #include <iostream> #include <thread> #include <vector> #include <winsock2.h> unsigned int PORT = 12488; enum io_operation { IO_READ, IO_WRITE }; struct io_context { OVERLAPPED overlapped; SOCKET sockfd; WSABUF wsabuf; char buf[1024]; io_operation opT...
30.257282
101
0.562811
paoqi1997
3500afd76a8b827c41147dd7325507dbea660361
7,021
cpp
C++
redemption/projects/redemption_configs/redemption_src/configs/config.cpp
DianaAssistant/DIANA
6a4c51c1861f6a936941b21c2c905fc291c229d7
[ "MIT" ]
null
null
null
redemption/projects/redemption_configs/redemption_src/configs/config.cpp
DianaAssistant/DIANA
6a4c51c1861f6a936941b21c2c905fc291c229d7
[ "MIT" ]
null
null
null
redemption/projects/redemption_configs/redemption_src/configs/config.cpp
DianaAssistant/DIANA
6a4c51c1861f6a936941b21c2c905fc291c229d7
[ "MIT" ]
null
null
null
/* 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 later version. This program is distributed in the hope that it will ...
34.757426
97
0.661587
DianaAssistant
3504bf93294f9dc54d8f1354720610da8690d345
2,961
cpp
C++
Engine/Source/ThirdParty/PhysX/APEX_1.4/common/src/ApexAssetAuthoring.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/ThirdParty/PhysX/APEX_1.4/common/src/ApexAssetAuthoring.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/ThirdParty/PhysX/APEX_1.4/common/src/ApexAssetAuthoring.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
/* * Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
24.471074
155
0.710233
windystrife
350774fcc5897c066f5d9f9caf9a6a5d2bf356b9
267
hpp
C++
src/query/iexpression.hpp
kele/graphbase
7f2eaced4b3ed8324f35edcc84c2eb774bb87ed3
[ "MIT" ]
null
null
null
src/query/iexpression.hpp
kele/graphbase
7f2eaced4b3ed8324f35edcc84c2eb774bb87ed3
[ "MIT" ]
3
2018-07-02T07:39:57.000Z
2019-10-11T20:20:09.000Z
src/query/iexpression.hpp
kele/graphbase
7f2eaced4b3ed8324f35edcc84c2eb774bb87ed3
[ "MIT" ]
null
null
null
#pragma once #include <memory> #include "query/value/value.hpp" namespace query { class Environment; class IExpression { public: virtual value::Value eval(std::shared_ptr<const Environment> env) const = 0; virtual ~IExpression() {} }; } // namespace query
14.052632
78
0.715356
kele
350ab8b5e014c5d547ac5476b978725611e30897
224
cpp
C++
test/Euler.test.cpp
yuruhi/library
fecbd92ec6c6997d50bf954c472ac4bfeff74de5
[ "Apache-2.0" ]
null
null
null
test/Euler.test.cpp
yuruhi/library
fecbd92ec6c6997d50bf954c472ac4bfeff74de5
[ "Apache-2.0" ]
6
2021-01-05T07:39:05.000Z
2021-01-05T07:44:31.000Z
test/Euler.test.cpp
yuruhi/library
fecbd92ec6c6997d50bf954c472ac4bfeff74de5
[ "Apache-2.0" ]
null
null
null
#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/library/6/NTL/all/NTL_1_D" #include "./../math/Euler.cpp" #include <iostream> using namespace std; int main() { long long x; cin >> x; cout << Euler(x) << '\n'; }
22.4
84
0.660714
yuruhi
350ca14ce5336a585ca7af5df5bac767f04a9cad
434
cpp
C++
references/aoapc-book/BeginningAlgorithmContests/bookcodes/ch9/knapsack.cpp
voleking/ICPC
fc2cf408fa2607ad29b01eb00a1a212e6d0860a5
[ "MIT" ]
68
2017-10-08T04:44:23.000Z
2019-08-06T20:15:02.000Z
BAC/bookcodes/ch9/knapsack.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
null
null
null
BAC/bookcodes/ch9/knapsack.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
18
2017-05-31T02:52:23.000Z
2019-07-05T09:18:34.000Z
#include<cstdio> #include<algorithm> using namespace std; #define MAXN 1000 #define MAXC 100000 int V[MAXN], W[MAXN]; int d[MAXN][MAXC]; int main() { int n, C; for(int i = 0; i < n; i++) scanf("%d%d", &V[i], &W[i]); for(int i = n; i >= 1; i--) for(int j = 0; j <= C; j++) { d[i][j] = (i==n ? 0 : d...
18.083333
54
0.470046
voleking
350cb92fabca413724cf4333b82dcf1add3b5c8a
1,282
cpp
C++
adagucserverEC/CDBFileScannerCleanFiles.cpp
ernstdevreede/adaguc-server
3516bf1a2ea6abb4f2e85e72944589dfcc990f7c
[ "Apache-2.0" ]
1
2019-08-21T11:03:09.000Z
2019-08-21T11:03:09.000Z
adagucserverEC/CDBFileScannerCleanFiles.cpp
ernstdevreede/adaguc-server
3516bf1a2ea6abb4f2e85e72944589dfcc990f7c
[ "Apache-2.0" ]
null
null
null
adagucserverEC/CDBFileScannerCleanFiles.cpp
ernstdevreede/adaguc-server
3516bf1a2ea6abb4f2e85e72944589dfcc990f7c
[ "Apache-2.0" ]
null
null
null
#include "CDBFileScanner.h" #include "CDBFactory.h" #include "CDebugger.h" #include "CReporter.h" #include "adagucserver.h" #include "CNetCDFDataWriter.h" #include <set> int CDBFileScanner::cleanFiles(CDataSource *dataSource, int scanFlags) { CDBDebug("Cleanfiles"); CDBAdapter * dbAdapter = CDBFactory::getDBAdapte...
33.736842
111
0.694228
ernstdevreede
350fc45e7301eee359f4c11ffddf9ecf82b98dc2
163
cpp
C++
source/horizon/list/ListSeparator.cpp
NightYoshi370/Aether
87d2b81f5d3143e39c363a9c81c195d440d7a4e8
[ "MIT" ]
9
2020-05-06T20:23:22.000Z
2022-01-19T10:37:46.000Z
libs/Aether/source/horizon/list/ListSeparator.cpp
tkgstrator/SeedHack
227566d993bdea7a2851a8fc664b539186509697
[ "MIT" ]
11
2020-03-22T03:40:50.000Z
2020-06-09T00:53:13.000Z
libs/Aether/source/horizon/list/ListSeparator.cpp
tkgstrator/SeedHack
227566d993bdea7a2851a8fc664b539186509697
[ "MIT" ]
6
2020-05-03T06:59:36.000Z
2020-07-15T04:21:59.000Z
#include "Aether/horizon/list/ListSeparator.hpp" namespace Aether { ListSeparator::ListSeparator(unsigned int h) : Element() { this->setH(h); } };
23.285714
62
0.668712
NightYoshi370
35132acfc0d51ccf43049f550dd95b92d859183f
3,705
cpp
C++
lib/src/spec/priv/specwriterimpl.cpp
SMillerDev/apngasm
259640f81f0798fd1ca3cc513d77cf86d64376c4
[ "Zlib" ]
195
2015-01-05T19:27:31.000Z
2022-03-16T00:52:21.000Z
lib/src/spec/priv/specwriterimpl.cpp
SMillerDev/apngasm
259640f81f0798fd1ca3cc513d77cf86d64376c4
[ "Zlib" ]
47
2015-04-09T15:29:01.000Z
2022-03-27T00:11:34.000Z
lib/src/spec/priv/specwriterimpl.cpp
SMillerDev/apngasm
259640f81f0798fd1ca3cc513d77cf86d64376c4
[ "Zlib" ]
27
2015-02-05T02:09:08.000Z
2021-11-23T21:25:32.000Z
#include "specwriterimpl.h" #include "../../apngasm.h" #include "../../listener/apngasmlistener.h" #include <sstream> #include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/xml_parser.hpp> namespace apngasm { namespace spec { namespace priv { // Initialize AbstractSpecWriterImpl ob...
35.625
124
0.584076
SMillerDev
3513471e95f6adc1a2279ec2d81cdebd56c049e3
2,070
cpp
C++
pagetry.cpp
Maou-Senpai/referenCe
839837d88053c96f31ae37356316ca7b30adb95e
[ "MIT" ]
null
null
null
pagetry.cpp
Maou-Senpai/referenCe
839837d88053c96f31ae37356316ca7b30adb95e
[ "MIT" ]
null
null
null
pagetry.cpp
Maou-Senpai/referenCe
839837d88053c96f31ae37356316ca7b30adb95e
[ "MIT" ]
null
null
null
#include "pagetry.h" // Initializes dictionaries PageTry::PageTry() { exceptionTerms = new std::vector<dictionary *>; dictionaryFiller(":/txt/content/exceptionTerms.txt", exceptionTerms); } // FUNCTION NAME: showPage() // // PARAMETERS: None // // RETURN VALUE: None // // CALLS TO: mainwindow.u...
26.538462
190
0.65942
Maou-Senpai
3516fad3d30dc56c974bf8d7aeaf7173589bb227
6,302
cpp
C++
screenbot/CommandHandler.cpp
daemon/monkeybot
50bf65674daefa12bfc002771243360bb1d07481
[ "Unlicense" ]
null
null
null
screenbot/CommandHandler.cpp
daemon/monkeybot
50bf65674daefa12bfc002771243360bb1d07481
[ "Unlicense" ]
null
null
null
screenbot/CommandHandler.cpp
daemon/monkeybot
50bf65674daefa12bfc002771243360bb1d07481
[ "Unlicense" ]
null
null
null
#include "CommandHandler.h" #include "Bot.h" #include "Random.h" #include "Client.h" #include "Util.h" #include "Commands/Commands.h" #include "Tokenizer.h" #include <iostream> #include <thread> #include <regex> #include <sstream> void CommandHandler::AddPermission(const std::string& player, const std::string& permi...
31.989848
134
0.668518
daemon
3518252fdd433b3e218c657df7e838946b0a22df
16,534
cpp
C++
src/sound/al_Ambisonics.cpp
AlloSphere-Research-Group/al_lib
94d23fe71b79d3464a658f16ca34c2040e6d7334
[ "BSD-3-Clause" ]
26
2018-11-05T23:29:43.000Z
2022-03-17T18:16:49.000Z
src/sound/al_Ambisonics.cpp
yangevelyn/allolib
1654be795b6515c058eb8243751b903a2aa6efdc
[ "BSD-3-Clause" ]
41
2018-01-19T18:34:41.000Z
2022-01-27T23:52:01.000Z
src/sound/al_Ambisonics.cpp
yangevelyn/allolib
1654be795b6515c058eb8243751b903a2aa6efdc
[ "BSD-3-Clause" ]
11
2018-01-05T16:42:19.000Z
2022-01-27T22:08:01.000Z
#include "al/sound/al_Ambisonics.hpp" #include <string.h> #ifdef USE_GAMMA #include "scl.h" #define COS gam::scl::cosT8 #define SIN gam::scl::sinT7 #define WRAP(phase) phase = gam::scl::wrapPhase(phase) #else #include <cmath> #define COS cos #define SIN sin #define WRAP(phase) #endif namespace al { static const dou...
30.904673
80
0.538345
AlloSphere-Research-Group