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
fc39f8dfa8e2c14eb979d3dcc2e98825f4f00f24
3,084
cpp
C++
source/tracker/tracker.cpp
ponpiste/BitTorrent
cad7ac1af64ac3075ee1c7b0516458612b1f9a4c
[ "MIT" ]
1
2022-01-19T15:25:31.000Z
2022-01-19T15:25:31.000Z
source/tracker/tracker.cpp
ponpiste/BitTorrent
cad7ac1af64ac3075ee1c7b0516458612b1f9a4c
[ "MIT" ]
null
null
null
source/tracker/tracker.cpp
ponpiste/BitTorrent
cad7ac1af64ac3075ee1c7b0516458612b1f9a4c
[ "MIT" ]
1
2020-10-12T01:50:20.000Z
2020-10-12T01:50:20.000Z
#include "tracker/tracker.h" #include <stdlib.h> #include <time.h> #include <vector> #include "tracker/udp.h" #include "tracker/url.h" #include <algorithm> #include <stdexcept> #include "download/peer_id.h" #include "parsing/bencode.h" using namespace std; buffer tracker::build_conn_req_udp() { const int SIZE_CONN...
19.396226
82
0.645266
ponpiste
fc3a4806e7045c1da477929085774722c2fe0e4b
583
cpp
C++
geometria/orden.radial.cpp
AlgorithmCR/eldiego
f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f
[ "MIT" ]
31
2015-11-15T19:24:17.000Z
2018-09-27T01:45:24.000Z
geometria/orden.radial.cpp
AlgorithmCR/eldiego
f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f
[ "MIT" ]
23
2015-09-23T15:56:32.000Z
2016-05-04T02:48:16.000Z
geometria/orden.radial.cpp
AlgorithmCR/eldiego
f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f
[ "MIT" ]
7
2016-08-25T21:29:56.000Z
2018-07-22T03:39:51.000Z
struct Cmp{//orden total de puntos alrededor de un punto r pto r; Cmp(pto r):r(r) {} int cuad(const pto &a) const{ if(a.x > 0 && a.y >= 0)return 0; if(a.x <= 0 && a.y > 0)return 1; if(a.x < 0 && a.y <= 0)return 2; if(a.x >= 0 && a.y < 0)return 3; assert(a.x ==0 && a.y==0); return -1; } bool cmp(const p...
27.761905
62
0.548885
AlgorithmCR
fc3dc1daa50e1b7aff83bdc001d2deeded71d3a8
7,478
cpp
C++
base/string/format/scan_test.cpp
hjinlin/toft
ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441
[ "BSD-3-Clause" ]
264
2015-01-03T11:50:17.000Z
2022-03-17T02:38:34.000Z
base/string/format/scan_test.cpp
hjinlin/toft
ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441
[ "BSD-3-Clause" ]
12
2015-04-27T15:17:34.000Z
2021-05-01T04:31:18.000Z
base/string/format/scan_test.cpp
hjinlin/toft
ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441
[ "BSD-3-Clause" ]
128
2015-02-07T18:13:10.000Z
2022-02-21T14:24:14.000Z
// Copyright (c) 2013, The TOFT Authors. // All rights reserved. // // Author: CHEN Feng <chen3feng@gmail.com> // Created: 2013-02-06 #include "toft/base/string/format/scan.h" #include <math.h> #include <stdint.h> #include "thirdparty/gtest/gtest.h" namespace toft { TEST(Scan, Escape) { int n = 0; ASSERT_E...
23.815287
75
0.572078
hjinlin
fc402bfffe5fe870621af77a6755ff10bb13fb5e
49
hpp
C++
src/boost_type_traits_remove_volatile.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_type_traits_remove_volatile.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_type_traits_remove_volatile.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/type_traits/remove_volatile.hpp>
24.5
48
0.836735
miathedev
fc430bc77094a8d881350a93ed4f6b6d5b3d676b
2,238
cpp
C++
source/parse_globule.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/parse_globule.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/parse_globule.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
/* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and * others. For conditions of distribution and use see copyright notice in license.txt */ /*ParseGlobule parse parameters off the globule command */ #include "cddefines.h" #include "radius.h" #include "dense.h" #include "optimize.h" #in...
29.064935
89
0.699285
cloudy-astrophysics
fc4387bcd7722c348014d92ee2580001bd33c40a
2,894
cpp
C++
Engine/posttoantigate.cpp
vadkasevas/BAS
657f62794451c564c77d6f92b2afa9f5daf2f517
[ "MIT" ]
302
2016-05-20T12:55:23.000Z
2022-03-29T02:26:14.000Z
Engine/posttoantigate.cpp
chulakshana/BAS
955f5a41bd004bcdd7d19725df6ab229b911c09f
[ "MIT" ]
9
2016-07-21T09:04:50.000Z
2021-05-16T07:34:42.000Z
Engine/posttoantigate.cpp
chulakshana/BAS
955f5a41bd004bcdd7d19725df6ab229b911c09f
[ "MIT" ]
113
2016-05-18T07:48:37.000Z
2022-02-26T12:59:39.000Z
#include "posttoantigate.h" #include "every_cpp.h" #include <QMap> #include <QPixmap> #include <QBuffer> #include <QMapIterator> namespace BrowserAutomationStudioFramework { PostToAntigate::PostToAntigate(QObject *parent) : QObject(parent) { } void PostToAntigate::Post(const QString& id,const ...
25.165217
177
0.533172
vadkasevas
fc4540e3a67875ca07a322da13529cbacca1c3bb
4,461
cpp
C++
Source/mysql/main.cpp
inkneko-software/dao_generator
88f000622677a355a2807750c59dff73913777e9
[ "MIT" ]
null
null
null
Source/mysql/main.cpp
inkneko-software/dao_generator
88f000622677a355a2807750c59dff73913777e9
[ "MIT" ]
null
null
null
Source/mysql/main.cpp
inkneko-software/dao_generator
88f000622677a355a2807750c59dff73913777e9
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <fstream> #include <vector> #include <map> #include <boost/filesystem.hpp> #include <boost/regex.hpp> using namespace std; using namespace boost::filesystem; using namespace boost; void tableObjectGenerator(const path& output, pair<string, vector<pair<string, string>>> ta...
27.537037
123
0.557498
inkneko-software
fc4e5bb6b4221eb7761eeb3586ed0dd6f41406ba
1,247
hpp
C++
bulletgba/generator/data/code/__system/downline-rapidlaser.hpp
pqrs-org/BulletGBA
a294007902970242b496f2528b4762cfef22bc86
[ "Unlicense" ]
5
2020-03-24T07:44:49.000Z
2021-08-30T14:43:31.000Z
bulletgba/generator/data/code/__system/downline-rapidlaser.hpp
pqrs-org/BulletGBA
a294007902970242b496f2528b4762cfef22bc86
[ "Unlicense" ]
null
null
null
bulletgba/generator/data/code/__system/downline-rapidlaser.hpp
pqrs-org/BulletGBA
a294007902970242b496f2528b4762cfef22bc86
[ "Unlicense" ]
null
null
null
#ifndef GENERATED_67db08201e650091d0f4debd02149456_HPP #define GENERATED_67db08201e650091d0f4debd02149456_HPP #include "bullet.hpp" void stepfunc_4dc4ca4ba154013f98fc63fdd20fbaf2_e52a135e83b87469f9e45b4e6e7c5ead(BulletInfo *p); void stepfunc_c4d4e858c15e560b23a1b1a6a8131982_e52a135e83b87469f9e45b4e6e7c5ead(Bullet...
54.217391
104
0.907779
pqrs-org
fc4e8262880bafc08d6758cf504d733aa34672ff
235
cpp
C++
baekjoon/10950.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
1
2019-07-15T00:27:37.000Z
2019-07-15T00:27:37.000Z
baekjoon/10950.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
null
null
null
baekjoon/10950.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int a,b,t; cin >> t; while(t--){ cin >> a >> b; cout << a+b << endl; } return 0; }
15.666667
37
0.493617
3-24
fc542baa8ba1b139a29ffd0a31cddb8da15a8592
3,230
cpp
C++
LuoguCodes/P3275.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/P3275.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/P3275.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
// luogu-judger-enable-o2 #include <cmath> #include <cctype> #include <cstdio> #include <cstring> #include <cstdlib> #include <set> #include <map> #include <stack> #include <queue> #include <string> #include <vector> #include <numeric> #include <iomanip> #include <iostream> #include <algorithm> #define fn "gin" #define...
29.363636
129
0.464706
Anguei
fc579ca8240ee5300fd9cf3cda6f37fd6e6c3bdb
3,642
cpp
C++
rmf_traffic/test/unit/schedule/test_Region.cpp
0to1/rmf_traffic
0e641f779e9c7e6d69c316e905df5a51a2c124e1
[ "Apache-2.0" ]
10
2021-04-14T07:01:56.000Z
2022-02-21T02:26:58.000Z
rmf_traffic/test/unit/schedule/test_Region.cpp
0to1/rmf_traffic
0e641f779e9c7e6d69c316e905df5a51a2c124e1
[ "Apache-2.0" ]
63
2021-03-10T06:06:13.000Z
2022-03-25T08:47:07.000Z
rmf_traffic/test/unit/schedule/test_Region.cpp
0to1/rmf_traffic
0e641f779e9c7e6d69c316e905df5a51a2c124e1
[ "Apache-2.0" ]
10
2021-03-17T02:52:14.000Z
2022-02-21T02:27:02.000Z
/* * Copyright (C) 2021 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
28.232558
75
0.658155
0to1
fc585ecf2c219c09d0f397b31f280885d7861974
940
cc
C++
basic/mem_leak_tools/02_demo.cc
chanchann/littleMickle
f3a839d8ad55f483bbac4e4224dcd35234c5aa00
[ "MIT" ]
1
2021-03-16T02:13:12.000Z
2021-03-16T02:13:12.000Z
basic/mem_leak_tools/02_demo.cc
chanchann/littleMickle
f3a839d8ad55f483bbac4e4224dcd35234c5aa00
[ "MIT" ]
null
null
null
basic/mem_leak_tools/02_demo.cc
chanchann/littleMickle
f3a839d8ad55f483bbac4e4224dcd35234c5aa00
[ "MIT" ]
null
null
null
/* 申请的堆内存没有释放 + 对堆内存的访问越界 ==19218== Invalid write of size 4 ==19218== at 0x400547: fun() (in /home/ysy/thread/other/mem_leak_tools/test) ==19218== by 0x400558: main (in /home/ysy/thread/other/mem_leak_tools/test) ==19218== Address 0x5204068 is 0 bytes after a block of size 40 alloc'd ==19218== at 0x4C2DBF6: ...
29.375
79
0.657447
chanchann
fc590e68074fe23af6b7b3aa78deb8308310e7bd
6,288
cpp
C++
agusarov_task_1/trunk/func_sim/func_memory/func_memory.cpp
MIPT-ILab/mipt-mips-old-branches
a4e17025999b15d423601cf38a84234c5c037b33
[ "MIT" ]
1
2018-03-04T21:28:20.000Z
2018-03-04T21:28:20.000Z
agusarov_task_1/trunk/func_sim/func_memory/func_memory.cpp
MIPT-ILab/mipt-mips-old-branches
a4e17025999b15d423601cf38a84234c5c037b33
[ "MIT" ]
null
null
null
agusarov_task_1/trunk/func_sim/func_memory/func_memory.cpp
MIPT-ILab/mipt-mips-old-branches
a4e17025999b15d423601cf38a84234c5c037b33
[ "MIT" ]
null
null
null
/** * func_memory.cpp - the module implementing the concept of * programer-visible memory space accesing via memory address. * @author Alexander Titov <alexander.igorevich.titov@gmail.com> * Copyright 2012 uArchSim iLab project */ // Generic C #include <libelf.h> #include <cstdio> #include <unistd.h> #include <c...
22.618705
93
0.624046
MIPT-ILab
fc5918cc889c38079a7da84b81d62eb192aea889
1,122
hpp
C++
src/engine/Player.hpp
psettle/podracing
1a9c816bf8bb51910d0d2aa95c7c155553d9435e
[ "MIT" ]
1
2021-09-25T18:18:14.000Z
2021-09-25T18:18:14.000Z
src/engine/Player.hpp
psettle/podracing
1a9c816bf8bb51910d0d2aa95c7c155553d9435e
[ "MIT" ]
null
null
null
src/engine/Player.hpp
psettle/podracing
1a9c816bf8bb51910d0d2aa95c7c155553d9435e
[ "MIT" ]
null
null
null
#ifndef PLAYER_H #define PLAYER_H #include <iostream> #include <memory> #include <sstream> #include <string> #include <vector> #include "IPlayer.hpp" #include "Pod.hpp" #include "Vec2.hpp" class Player { public: Player(IPlayer& controller); void Setup(std::string const& data); void InitPods(Vec2 const& origin,...
26.714286
98
0.729947
psettle
fc5b366afc9e009472550f1b93cdc755688b5653
4,973
hxx
C++
src/core/func.hxx
LittleGreyCells/escheme-interpreter
4843c2615f7f576c52c1d56ba3b6b94795d8f584
[ "MIT" ]
null
null
null
src/core/func.hxx
LittleGreyCells/escheme-interpreter
4843c2615f7f576c52c1d56ba3b6b94795d8f584
[ "MIT" ]
null
null
null
src/core/func.hxx
LittleGreyCells/escheme-interpreter
4843c2615f7f576c52c1d56ba3b6b94795d8f584
[ "MIT" ]
null
null
null
#ifndef func_hxx #define func_hxx #include "sexpr.hxx" namespace escheme { bool booleanp( const SEXPR n ); bool notp( const SEXPR n ); bool boundp( const SEXPR n ); bool eof_objectp( const SEXPR n ); bool zerop( const SEXPR n ); bool positivep( const SEXPR n ); bool negativep( const SEXPR n ); bool oddp( const SEXPR...
19.57874
34
0.658355
LittleGreyCells
fc5f896f6381797404c1d869e34e855e70edbcc8
1,569
hpp
C++
swizzle/engine_src/gfx/gfxvk/VkContext.hpp
deathcleaver/swizzle
1a1cc114841ea7de486cf94c6cafd9108963b4da
[ "MIT" ]
2
2020-02-10T07:58:21.000Z
2022-03-15T19:13:28.000Z
swizzle/engine_src/gfx/gfxvk/VkContext.hpp
deathcleaver/swizzle
1a1cc114841ea7de486cf94c6cafd9108963b4da
[ "MIT" ]
null
null
null
swizzle/engine_src/gfx/gfxvk/VkContext.hpp
deathcleaver/swizzle
1a1cc114841ea7de486cf94c6cafd9108963b4da
[ "MIT" ]
null
null
null
#ifndef VK_CONTEXT_HPP #define VK_CONTEXT_HPP /* Include files */ #include <common/Common.hpp> #include <swizzle/gfx/Context.hpp> #include "VulkanInstance.hpp" #include "backend/VkContainer.hpp" /* Defines */ /* Typedefs/enums */ /* Forward Declared Structs/Classes */ /* Struct Declaration */ /* Class Declarati...
26.59322
135
0.715743
deathcleaver
fc60517761f49dadac2db1afb60374050fd4fb74
348
cpp
C++
OC_data/COCStr.cpp
coderand/oclf
9da0ffcf9a664bf8ab719090b5b93e34cfe0cec2
[ "MIT" ]
1
2018-02-02T06:31:53.000Z
2018-02-02T06:31:53.000Z
OC_data/COCStr.cpp
coderand/oclf
9da0ffcf9a664bf8ab719090b5b93e34cfe0cec2
[ "MIT" ]
null
null
null
OC_data/COCStr.cpp
coderand/oclf
9da0ffcf9a664bf8ab719090b5b93e34cfe0cec2
[ "MIT" ]
null
null
null
// This file is distributed under a MIT license. See LICENSE.txt for details. // // class COCStr // #include "common.h" bool COCStr::Cmp ( const char *pStr ) { return !strncmp( m_String, pStr, m_nLength ); } void COCStr::CopyTo ( char *pStr ) { memcpy( pStr, m_String, m_nLength ); ...
14.5
77
0.603448
coderand
fc6083aa4de81d28eeacb9897540bb045264c7e6
3,266
cpp
C++
VS/CPP/hli-stl-main/hli-stl-main.cpp
HJLebbink/high-level-intrinsics-lib
2bc028ea2a316081d1324e54cbf879e3ed84fc05
[ "MIT" ]
null
null
null
VS/CPP/hli-stl-main/hli-stl-main.cpp
HJLebbink/high-level-intrinsics-lib
2bc028ea2a316081d1324e54cbf879e3ed84fc05
[ "MIT" ]
null
null
null
VS/CPP/hli-stl-main/hli-stl-main.cpp
HJLebbink/high-level-intrinsics-lib
2bc028ea2a316081d1324e54cbf879e3ed84fc05
[ "MIT" ]
1
2020-11-06T12:59:42.000Z
2020-11-06T12:59:42.000Z
#ifdef _MSC_VER #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #if !defined(NOMINMAX) #define NOMINMAX 1 #endif #if !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS 1 #endif #endif #include <iostream> // for cout #include <stdlib.h> // for printf #include ...
31.403846
92
0.716779
HJLebbink
fc6731ebd1b2cadb29fa5efcf9f158964a322dca
1,061
hpp
C++
bark/world/evaluation/ltl/label_functions/rel_speed_label_function.hpp
GAIL-4-BARK/bark
1cfda9ba6e9ec5318fbf01af6b67c242081b516e
[ "MIT" ]
null
null
null
bark/world/evaluation/ltl/label_functions/rel_speed_label_function.hpp
GAIL-4-BARK/bark
1cfda9ba6e9ec5318fbf01af6b67c242081b516e
[ "MIT" ]
null
null
null
bark/world/evaluation/ltl/label_functions/rel_speed_label_function.hpp
GAIL-4-BARK/bark
1cfda9ba6e9ec5318fbf01af6b67c242081b516e
[ "MIT" ]
null
null
null
// Copyright (c) 2019 fortiss GmbH // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #ifndef BARK_WORLD_EVALUATION_LTL_LABELS_REL_SPEED_LABEL_FUNCTION_HPP_ #define BARK_WORLD_EVALUATION_LTL_LABELS_REL_SPEED_LABEL_FUNCTION_HPP_ #include <string> ...
30.314286
83
0.788878
GAIL-4-BARK
fc6efff6f8c4fbd1d6f7fe6fb3ea571875354e91
2,374
cpp
C++
BackendCommon/IProfilerServer.cpp
RaptDept/slimtune
a9a248a342a51d95b7c833bce5bb91bf3db987f3
[ "MIT" ]
26
2015-07-01T03:26:50.000Z
2018-02-06T06:00:38.000Z
BackendCommon/IProfilerServer.cpp
RaptDept/slimtune
a9a248a342a51d95b7c833bce5bb91bf3db987f3
[ "MIT" ]
null
null
null
BackendCommon/IProfilerServer.cpp
RaptDept/slimtune
a9a248a342a51d95b7c833bce5bb91bf3db987f3
[ "MIT" ]
7
2018-06-27T13:17:56.000Z
2020-05-02T16:59:24.000Z
/* * Copyright (c) 2007-2009 SlimDX Group * * 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, publis...
27.929412
111
0.726622
RaptDept
fc7273b2d3d76b4247d6a97a7a0cacbf277e923b
1,265
cpp
C++
graph-source-code/350-E/10332016.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/350-E/10332016.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/350-E/10332016.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: GNU C++ #include<bits/stdc++.h> using namespace std; int a[1010]; bool lab[1010]; vector<pair<int,int> > ans; bool use[1010][1010]; int p[1010]; int f(int x){ return x==p[x]?x:p[x]=f(p[x]); } int main(){ int n,m,K; scanf("%d%d%d",&n,&m,&K); if(K==n){ puts("-1"); ...
20.403226
54
0.361265
AmrARaouf
fc74122ce43a5f8ca0f655d209a32ecd6182480b
573
cpp
C++
dev/DynamicDependency/API/appmodel_packageinfo.cpp
ChrisGuzak/WindowsAppSDK
3f19ef0f438524af3c87fdad5f4fea555530c285
[ "CC-BY-4.0", "MIT" ]
2,002
2020-05-19T15:16:02.000Z
2021-06-24T13:28:05.000Z
dev/DynamicDependency/API/appmodel_packageinfo.cpp
ChrisGuzak/WindowsAppSDK
3f19ef0f438524af3c87fdad5f4fea555530c285
[ "CC-BY-4.0", "MIT" ]
1,065
2021-06-24T16:08:11.000Z
2022-03-31T23:12:32.000Z
dev/DynamicDependency/API/appmodel_packageinfo.cpp
ChrisGuzak/WindowsAppSDK
3f19ef0f438524af3c87fdad5f4fea555530c285
[ "CC-BY-4.0", "MIT" ]
106
2020-05-19T15:20:00.000Z
2021-06-24T15:03:57.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #include "pch.h" #include "appmodel_packageinfo.h" #include "MddDetourPackageGraph.h" LONG appmodel::GetPackageInfo2( PACKAGE_INFO_REFERENCE packageIn...
30.157895
109
0.745201
ChrisGuzak
fc7b100dd6b1016efebe4eb3fae602a9becd3af2
437
cpp
C++
ViAn/GUI/DrawingItems/penitem.cpp
NFCSKL/NFC-ViAn
ce04b78b4c9695374d71198f57d4236a5cad1525
[ "MIT" ]
1
2019-12-08T03:53:03.000Z
2019-12-08T03:53:03.000Z
ViAn/GUI/DrawingItems/penitem.cpp
NFCSKL/NFC-ViAn
ce04b78b4c9695374d71198f57d4236a5cad1525
[ "MIT" ]
182
2018-02-08T11:03:26.000Z
2019-06-27T15:27:47.000Z
ViAn/GUI/DrawingItems/penitem.cpp
NFCSKL/NFC-ViAn
ce04b78b4c9695374d71198f57d4236a5cad1525
[ "MIT" ]
null
null
null
#include "penitem.h" PenItem::PenItem(Pen* pen) : ShapeItem(PEN_ITEM) { m_pen = pen; setFlags(flags() | Qt::ItemIsDragEnabled); setText(0, pen->get_name()); const QIcon pen_icon(":/Icons/pen.png"); setIcon(0, pen_icon); map = QPixmap(16,16); update_shape_color(); update_show_icon(m_pen...
19.863636
50
0.636156
NFCSKL
fc7ce3da20e68bae2165bcaa8637d86f2f731cee
2,389
cpp
C++
src/util/lp/lp_primal_core_solver_instances.cpp
leodemoura/lean_clone
cc077554b584d39bab55c360bc12a6fe7957afe6
[ "Apache-2.0" ]
130
2016-12-02T22:46:10.000Z
2022-03-22T01:09:48.000Z
src/util/lp/lp_primal_core_solver_instances.cpp
soonhokong/lean
38607e3eb57f57f77c0ac114ad169e9e4262e24f
[ "Apache-2.0" ]
8
2017-05-03T01:21:08.000Z
2020-02-25T11:38:05.000Z
src/util/lp/lp_primal_core_solver_instances.cpp
soonhokong/lean
38607e3eb57f57f77c0ac114ad169e9e4262e24f
[ "Apache-2.0" ]
28
2016-12-02T22:46:20.000Z
2022-03-18T21:28:20.000Z
/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Lev Nachmanson */ #include <utility> #include <memory> #include <string> #include <vector> #include <functional> #include "util/lp/lar_solver.h" #include "util/lp/lp_prima...
103.869565
637
0.747175
leodemoura
fc7d1bbe8f2f2f97aee831d16ee95390c3b0c333
2,893
hpp
C++
headers/enduro2d/utils/module.hpp
NechukhrinN/enduro2d
774f120395885a6f0f21418c4de024e7668ee436
[ "MIT" ]
92
2018-08-07T14:45:33.000Z
2021-11-14T20:37:23.000Z
headers/enduro2d/utils/module.hpp
NechukhrinN/enduro2d
774f120395885a6f0f21418c4de024e7668ee436
[ "MIT" ]
43
2018-09-30T20:48:03.000Z
2020-04-20T20:05:26.000Z
headers/enduro2d/utils/module.hpp
NechukhrinN/enduro2d
774f120395885a6f0f21418c4de024e7668ee436
[ "MIT" ]
13
2018-08-08T13:45:28.000Z
2020-10-02T11:55:58.000Z
/******************************************************************************* * This file is part of the "Enduro2D" * For conditions of distribution and use, see copyright notice in LICENSE.md * Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com) ***************************************************...
29.222222
86
0.557553
NechukhrinN
fc7df3b3c2d60a8de39966901a3a2e4242e97de2
370
cpp
C++
tools/json-ast-exporter/src/main.cpp
TheoKant/cclyzer-souffle
dfcd01daa592a2356e36aaeaa9c933305c253cba
[ "MIT" ]
63
2016-02-06T21:06:40.000Z
2021-11-16T19:58:27.000Z
tools/json-ast-exporter/src/main.cpp
TheoKant/cclyzer-souffle
dfcd01daa592a2356e36aaeaa9c933305c253cba
[ "MIT" ]
11
2019-05-23T20:55:12.000Z
2021-12-08T22:18:01.000Z
tools/json-ast-exporter/src/main.cpp
TheoKant/cclyzer-souffle
dfcd01daa592a2356e36aaeaa9c933305c253cba
[ "MIT" ]
14
2016-02-21T17:12:36.000Z
2021-09-26T02:48:41.000Z
#include "ast_export.hpp" #include "Options.hpp" int main(int argc, char *argv[]) { using namespace cclyzer::ast_exporter; try { // Parse command line Options options(argc, argv); // Export AST in JSON form jsonexport::export_ast(options); } catch (int errorcode) ...
16.086957
42
0.583784
TheoKant
fc82d0036df81fb62197e707b6316d2f8db37882
2,182
hpp
C++
src/sysc/packages/boost/config/compiler/hp_acc.hpp
veeYceeY/systemc
1bd5598ed1a8cf677ebb750accd5af485bc1085a
[ "Apache-2.0" ]
194
2019-07-25T21:27:23.000Z
2022-03-22T00:08:06.000Z
src/sysc/packages/boost/config/compiler/hp_acc.hpp
veeYceeY/systemc
1bd5598ed1a8cf677ebb750accd5af485bc1085a
[ "Apache-2.0" ]
24
2019-12-03T18:26:07.000Z
2022-02-17T09:38:25.000Z
src/sysc/packages/boost/config/compiler/hp_acc.hpp
veeYceeY/systemc
1bd5598ed1a8cf677ebb750accd5af485bc1085a
[ "Apache-2.0" ]
64
2019-08-02T19:28:25.000Z
2022-03-30T10:21:22.000Z
// (C) Copyright John Maddock 2001 - 2003. // (C) Copyright Jens Maurer 2001 - 2003. // (C) Copyright Aleksey Gurtovoy 2002. // (C) Copyright David Abrahams 2002 - 2003. // (C) Copyright Toon Knapen 2003. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See ...
30.732394
94
0.754354
veeYceeY
fc87c7685cc79f6c4db4aebcc9f186b25c85e353
3,963
cpp
C++
src/x11/atoms.cpp
HughJass/polybar
a78edc667b2c347898787348c27322710d357ce6
[ "MIT" ]
6,283
2019-05-06T01:10:56.000Z
2022-03-31T23:42:59.000Z
src/x11/atoms.cpp
HughJass/polybar
a78edc667b2c347898787348c27322710d357ce6
[ "MIT" ]
997
2019-05-05T20:09:11.000Z
2022-03-31T22:58:40.000Z
src/x11/atoms.cpp
HughJass/polybar
a78edc667b2c347898787348c27322710d357ce6
[ "MIT" ]
506
2019-05-08T18:36:25.000Z
2022-03-25T03:04:39.000Z
#include "x11/atoms.hpp" #include <xcb/xcb.h> #include <xcb/xcb_atom.h> xcb_atom_t _NET_SUPPORTED; xcb_atom_t _NET_CURRENT_DESKTOP; xcb_atom_t _NET_ACTIVE_WINDOW; xcb_atom_t _NET_WM_NAME; xcb_atom_t _NET_WM_DESKTOP; xcb_atom_t _NET_WM_VISIBLE_NAME; xcb_atom_t _NET_WM_WINDOW_TYPE; xcb_atom_t _NET_WM_WINDOW_TYPE_DOCK; ...
47.746988
110
0.779208
HughJass
fc8c3b670af0d9055a5985eb3a9501ce91d7936b
3,561
cpp
C++
src/system/keyboard.cpp
SakuraLife/utility
b9bf26198917b6dc415520f74eb3eebf8aa8195e
[ "Unlicense" ]
2
2017-12-10T10:59:48.000Z
2017-12-13T04:11:14.000Z
src/system/keyboard.cpp
SakuraLife/utility
b9bf26198917b6dc415520f74eb3eebf8aa8195e
[ "Unlicense" ]
null
null
null
src/system/keyboard.cpp
SakuraLife/utility
b9bf26198917b6dc415520f74eb3eebf8aa8195e
[ "Unlicense" ]
null
null
null
#include"keyboard.hpp" #if defined(__linux__) #include<cstdio> #include<termios.h> #include<unistd.h> #include<fcntl.h> namespace utility { namespace system { namespace keyboard { char read_one_char() noexcept { using std::getchar; static termios __old, __new; tcgetat...
22.826923
74
0.508846
SakuraLife
fc8cae25931eb5d02501e6c69c2e012d9290587e
33,137
cpp
C++
Ca3DE/Server/Server.cpp
dns/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
3
2020-04-11T13:00:31.000Z
2020-12-07T03:19:10.000Z
Ca3DE/Server/Server.cpp
DNS/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
null
null
null
Ca3DE/Server/Server.cpp
DNS/Cafu
77b34014cc7493d6015db7d674439fe8c23f6493
[ "MIT" ]
1
2020-04-11T13:00:04.000Z
2020-04-11T13:00:04.000Z
/* Cafu Engine, http://www.cafu.de/ Copyright (c) Carsten Fuchs and other contributors. This project is licensed under the terms of the MIT license. */ #include "Server.hpp" #include "ServerWorld.hpp" #include "ClientInfo.hpp" #include "../GameInfo.hpp" #include "../NetConst.hpp" #include "../PlayerCommand.hpp" #inclu...
42.159033
204
0.600235
dns
475acc180a8a8ecd7f6d0ee5c09eca216228a616
477
cpp
C++
src/os/mock_os_functions.cpp
juruen/cavalieri
c3451579193fc8f081b6228ae295b463a0fd23bd
[ "MIT" ]
54
2015-01-14T21:11:56.000Z
2021-06-27T13:29:40.000Z
src/os/mock_os_functions.cpp
juruen/cavalieri
c3451579193fc8f081b6228ae295b463a0fd23bd
[ "MIT" ]
null
null
null
src/os/mock_os_functions.cpp
juruen/cavalieri
c3451579193fc8f081b6228ae295b463a0fd23bd
[ "MIT" ]
10
2015-07-15T05:09:34.000Z
2019-01-10T07:32:02.000Z
#include <os/mock_os_functions.h> #include <algorithm> ssize_t mock_os_functions::recv(int, void *buf, size_t len, int) { auto min = std::min(len, buffer.size()); std::copy(buffer.begin(), buffer.begin() + min, static_cast<char*>(buf)); return min; } ssize_t mock_os_functions::write(int, void *buf, size_t count...
29.8125
75
0.685535
juruen
475b396719f1106cc50c18ca28a10e414a6d9012
1,809
cpp
C++
hydrogels/theory/models/_cxx/engine.cpp
debeshmandal/brownian
bc5b2e00a04d11319c85e749f9c056b75b450ff7
[ "MIT" ]
3
2020-05-13T01:07:30.000Z
2021-02-12T13:37:23.000Z
hydrogels/theory/models/_cxx/engine.cpp
debeshmandal/brownian
bc5b2e00a04d11319c85e749f9c056b75b450ff7
[ "MIT" ]
24
2020-06-04T13:48:57.000Z
2021-12-31T18:46:52.000Z
hydrogels/theory/models/_cxx/engine.cpp
debeshmandal/brownian
bc5b2e00a04d11319c85e749f9c056b75b450ff7
[ "MIT" ]
1
2020-07-23T17:15:23.000Z
2020-07-23T17:15:23.000Z
#include <Python.h> #include "functions.hpp" #include "utils.hpp" static PyObject* engine_addNumbers(PyObject* self, PyObject* args) { // declare variables double n1, n2, result; // parse arguments if (!PyArg_ParseTuple(args, "dd", &n1, &n2)) { return NULL; }; // function here re...
25.842857
114
0.669431
debeshmandal
476035f1a5f85ea33f3730d25bc046f6d95450c4
6,510
cpp
C++
thirdparty/ULib/tests/ulib/http2/hdecode.cpp
liftchampion/nativejson-benchmark
6d575ffa4359a5c4230f74b07d994602a8016fb5
[ "MIT" ]
null
null
null
thirdparty/ULib/tests/ulib/http2/hdecode.cpp
liftchampion/nativejson-benchmark
6d575ffa4359a5c4230f74b07d994602a8016fb5
[ "MIT" ]
null
null
null
thirdparty/ULib/tests/ulib/http2/hdecode.cpp
liftchampion/nativejson-benchmark
6d575ffa4359a5c4230f74b07d994602a8016fb5
[ "MIT" ]
null
null
null
// hdecode.cpp #include <ulib/utility/http2.h> #undef PACKAGE #define PACKAGE "hdecode" #define ARGS "[dump file...]" // The file contains a dump of HPACK octets #define U_OPTIONS \ "purpose 'simple HPACK decoder'\n" \ "option e expect-error 1 '<ERR>' ''\n" \ "option d decoding-spec 1 'Spec format: <letter><size>...
25.529412
166
0.5
liftchampion
47636b833a9010110d14e0b9194c2b98f402cc3f
2,652
cpp
C++
raw-examples/my_epoll.cpp
Jayhello/handy-copy
f6b1be65a5372cb42e6479c0b413216a9a689e1f
[ "BSD-2-Clause" ]
null
null
null
raw-examples/my_epoll.cpp
Jayhello/handy-copy
f6b1be65a5372cb42e6479c0b413216a9a689e1f
[ "BSD-2-Clause" ]
null
null
null
raw-examples/my_epoll.cpp
Jayhello/handy-copy
f6b1be65a5372cb42e6479c0b413216a9a689e1f
[ "BSD-2-Clause" ]
null
null
null
// // Created by root on 18-11-21. // /* * Mainly test for server end. */ #include <sys/socket.h> #include <vector> #include <iostream> #include <netinet/in.h> #include <handy/handy.h> #include <arpa/inet.h> using namespace handy; using namespace std; /* * Note: Simple test for max socket num. */ void testMax...
21.737705
84
0.563725
Jayhello
4767a60e01d3a1b0bef6a71f7941455efc452fdf
1,028
cpp
C++
Sid's Levels/Level - 2/Graphs/BFS.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
14
2021-08-22T18:21:14.000Z
2022-03-08T12:04:23.000Z
Sid's Levels/Level - 2/Graphs/BFS.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
1
2021-10-17T18:47:17.000Z
2021-10-17T18:47:17.000Z
Sid's Levels/Level - 2/Graphs/BFS.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
5
2021-09-01T08:21:12.000Z
2022-03-09T12:13:39.000Z
class Solution { public: //Function to return Breadth First Traversal of given graph. void bfsHelper(vector<int> &bfs, bool visited[], vector<int> adj[], int src) { queue<int> q; q.push(src); visited[src] = true; while(!q.empty()) { int cur = q.front()...
25.7
80
0.474708
Tiger-Team-01
47692a35ba87389e363a8e763496408888586d82
1,463
cpp
C++
src/runtime_src/xdp/profile/plugin/vp_base/vp_base_plugin.cpp
houlz0507/XRT-1
1b66ba8a5031ac1f694b0686774218c0d7286c52
[ "Apache-2.0" ]
null
null
null
src/runtime_src/xdp/profile/plugin/vp_base/vp_base_plugin.cpp
houlz0507/XRT-1
1b66ba8a5031ac1f694b0686774218c0d7286c52
[ "Apache-2.0" ]
null
null
null
src/runtime_src/xdp/profile/plugin/vp_base/vp_base_plugin.cpp
houlz0507/XRT-1
1b66ba8a5031ac1f694b0686774218c0d7286c52
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2016-2020 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
26.6
76
0.688995
houlz0507
4769892825000c71007faa865c2f0155d8a2bcfc
1,953
cc
C++
Ex05_Prototype/src/1_document_manager/docmanager.cc
kks32/cpp-software-development
3ce0c66d812d9a166191a1007111501615c97a2c
[ "MIT" ]
64
2015-01-18T17:53:56.000Z
2022-03-06T11:37:25.000Z
Ex05_Prototype/src/1_document_manager/docmanager.cc
kks32/cpp-software-development
3ce0c66d812d9a166191a1007111501615c97a2c
[ "MIT" ]
null
null
null
Ex05_Prototype/src/1_document_manager/docmanager.cc
kks32/cpp-software-development
3ce0c66d812d9a166191a1007111501615c97a2c
[ "MIT" ]
24
2015-03-22T02:00:10.000Z
2022-01-18T13:17:26.000Z
#include <iostream> #include <vector> #include <algorithm> #include <functional> const int N = 4; // # of document types + 1 // Prototype class Document { public: virtual Document* clone() const = 0; virtual void store() const = 0; virtual ~Document() { } }; // Concrete prototypes : xmlDoc, plainDoc, ...
21.461538
76
0.623144
kks32
47705c1796084733843018e789d6030866a69d30
4,486
cpp
C++
source/polyvec/curve-tracer/measure_accuracy_polygon.cpp
ShnitzelKiller/polyfit
51ddc6365a794db1678459140658211cb78f65b1
[ "MIT" ]
27
2020-08-17T17:25:59.000Z
2022-03-01T05:49:12.000Z
source/polyvec/curve-tracer/measure_accuracy_polygon.cpp
ShnitzelKiller/polyfit
51ddc6365a794db1678459140658211cb78f65b1
[ "MIT" ]
4
2020-08-26T13:54:59.000Z
2020-09-21T07:19:22.000Z
source/polyvec/curve-tracer/measure_accuracy_polygon.cpp
ShnitzelKiller/polyfit
51ddc6365a794db1678459140658211cb78f65b1
[ "MIT" ]
5
2020-08-26T23:26:48.000Z
2021-01-04T09:06:07.000Z
// polyvec #include <polyvec/curve-tracer/measure_accuracy_polygon.hpp> #include <polyvec/curve-tracer/find-fitting-points.hpp> #include <polyvec/utils/matrix.hpp> #include <polyvec/curve-tracer/spline.hpp> #include <polyvec/utils/directions.hpp> // remove todo #include <polyvec/geom.hpp> // nop #include <polyvec/debu...
25.488636
94
0.664958
ShnitzelKiller
4773f6d904dd964414634842934b3ac94122ba3d
1,438
cpp
C++
PE/ch07/7.3.cpp
DustOfStars/CppPrimerPlus6
391e3ad76eaa99f331981cee72139d83115fc93d
[ "MIT" ]
null
null
null
PE/ch07/7.3.cpp
DustOfStars/CppPrimerPlus6
391e3ad76eaa99f331981cee72139d83115fc93d
[ "MIT" ]
null
null
null
PE/ch07/7.3.cpp
DustOfStars/CppPrimerPlus6
391e3ad76eaa99f331981cee72139d83115fc93d
[ "MIT" ]
null
null
null
/* * Here is a structure declaration: * struct box * { * char maker[40]; * float height; * float width; * float length; * float volume; * }; * a. Write a function that passes a box structure by value and that * displays the value of each member. * b. Write a function that passes the a...
23.193548
74
0.599444
DustOfStars
477c043a83046e8df11f1c09270247b327afbaf7
525
hpp
C++
src/picotorrent/sessionstate.hpp
kamyarpour/picotorrent
bc33ca2f84d95b431ff62bbeb64fcb8f15d94c73
[ "MIT" ]
1
2020-01-13T23:33:44.000Z
2020-01-13T23:33:44.000Z
src/picotorrent/sessionstate.hpp
kamyarpour/picotorrent
bc33ca2f84d95b431ff62bbeb64fcb8f15d94c73
[ "MIT" ]
null
null
null
src/picotorrent/sessionstate.hpp
kamyarpour/picotorrent
bc33ca2f84d95b431ff62bbeb64fcb8f15d94c73
[ "MIT" ]
null
null
null
#pragma once #include <map> #include <memory> #include <unordered_set> #include <libtorrent/fwd.hpp> #include <libtorrent/sha1_hash.hpp> namespace pt { struct SessionState { bool isSelected(libtorrent::sha1_hash const& hash); std::unordered_set<libtorrent::sha1_hash> pauseAfterChecking; ...
23.863636
77
0.712381
kamyarpour
4780cee7220596d117c7561435c2612e9579fab3
382
cpp
C++
exe6.cpp
priya29jps/top-100-code-in-cpp
22d9328217a7f2ecbd09e62e750d8cad37baf046
[ "Apache-2.0" ]
null
null
null
exe6.cpp
priya29jps/top-100-code-in-cpp
22d9328217a7f2ecbd09e62e750d8cad37baf046
[ "Apache-2.0" ]
null
null
null
exe6.cpp
priya29jps/top-100-code-in-cpp
22d9328217a7f2ecbd09e62e750d8cad37baf046
[ "Apache-2.0" ]
null
null
null
//problem in linear search #include<iostream> using namespace std; int linearSearch(int arry[],int n,int key) { for(int i=0;i<=n;i++) if(arry[i]==key){ return i; } return -1; } int main(){ int n; cin>>n; int arry[n]; for(int i=0;i<=n;i++) { cin>>arry[i]; } int ke...
11.9375
43
0.536649
priya29jps
4783265799cbd7bf20ce6043d7246983f38d937c
16,464
cc
C++
tensorflow/c/experimental/filesystem/plugins/s3/s3_filesystem_test.cc
eee4017/tensorflow
deba51f80e05775bb4cc83647b475802be58f1e4
[ "Apache-2.0" ]
null
null
null
tensorflow/c/experimental/filesystem/plugins/s3/s3_filesystem_test.cc
eee4017/tensorflow
deba51f80e05775bb4cc83647b475802be58f1e4
[ "Apache-2.0" ]
null
null
null
tensorflow/c/experimental/filesystem/plugins/s3/s3_filesystem_test.cc
eee4017/tensorflow
deba51f80e05775bb4cc83647b475802be58f1e4
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The TensorFlow 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 by applicable law or a...
34.807611
80
0.65786
eee4017
4784d18bb6726d8bb62bc800653c711e433dedde
34
cpp
C++
libs/gfxtk_core/src/gfxtk/VertexBufferLayout.cpp
NostalgicGhoul/gfxtk
6662d6d1b285e20806ecfef3cdcb620d6605e478
[ "BSD-2-Clause" ]
null
null
null
libs/gfxtk_core/src/gfxtk/VertexBufferLayout.cpp
NostalgicGhoul/gfxtk
6662d6d1b285e20806ecfef3cdcb620d6605e478
[ "BSD-2-Clause" ]
null
null
null
libs/gfxtk_core/src/gfxtk/VertexBufferLayout.cpp
NostalgicGhoul/gfxtk
6662d6d1b285e20806ecfef3cdcb620d6605e478
[ "BSD-2-Clause" ]
null
null
null
#include "VertexBufferLayout.hpp"
17
33
0.823529
NostalgicGhoul
478a0527bdc45ef2cfa205d878d9237ab61ce245
1,554
cpp
C++
GodGame/GodGame/SDLEngine/Renderers/RendererOpenGL/TextureOpenGL.cpp
NeutralNoise/GodGame
454c94e361868ca169ca1d9268ad6737fa8e1741
[ "MIT" ]
null
null
null
GodGame/GodGame/SDLEngine/Renderers/RendererOpenGL/TextureOpenGL.cpp
NeutralNoise/GodGame
454c94e361868ca169ca1d9268ad6737fa8e1741
[ "MIT" ]
null
null
null
GodGame/GodGame/SDLEngine/Renderers/RendererOpenGL/TextureOpenGL.cpp
NeutralNoise/GodGame
454c94e361868ca169ca1d9268ad6737fa8e1741
[ "MIT" ]
null
null
null
#include "TextureOpenGL.h" #include <iostream> #include <GL/glew.h> //#include <SDL2/SDL.h> //#include <SDL2/SDL_image.h> #define STB_IMAGE_IMPLEMENTATION #include <STB/stb_image.h> #include "ErrorOpenGL.h" Texture * TextureOpenGL::LoadTexture(const std::string & path) { unsigned char* m_LocalBuffer; //stbi_set_flip...
25.9
122
0.756113
NeutralNoise
478a2e65b1f8dc81c23d45027f87a26a5e7ac065
832
cc
C++
deprected/src/util/point.cc
RobertWeber1/cli
5cb67325610be41014403e9342dddbe942511c2b
[ "MIT" ]
null
null
null
deprected/src/util/point.cc
RobertWeber1/cli
5cb67325610be41014403e9342dddbe942511c2b
[ "MIT" ]
null
null
null
deprected/src/util/point.cc
RobertWeber1/cli
5cb67325610be41014403e9342dddbe942511c2b
[ "MIT" ]
null
null
null
#include "point.h" namespace CLI { namespace util { Point::Point( unsigned int x, unsigned int y ) : _x(x) , _y(y) {} Point::Point( Point const& point ) : _x( point.x() ) , _y( point.y() ) {} unsigned int Point::x() const { return _x; } unsigned int Point::y() const { return _y; } void Point::x( unsigned int n...
11.093333
57
0.623798
RobertWeber1
478bcdd1b72fef6c2dac52463c6c7beaddcb9f7d
1,804
cpp
C++
rel-lib/src/Logger.cpp
sscit/rel
d9e6815012334dfc4c99b8020ae42a9ca9860458
[ "MIT" ]
2
2020-12-26T20:18:46.000Z
2021-05-01T03:55:22.000Z
rel-lib/src/Logger.cpp
sscit/rel
d9e6815012334dfc4c99b8020ae42a9ca9860458
[ "MIT" ]
2
2021-01-04T00:01:51.000Z
2021-04-07T18:25:10.000Z
rel-lib/src/Logger.cpp
sscit/rel
d9e6815012334dfc4c99b8020ae42a9ca9860458
[ "MIT" ]
2
2021-01-03T00:32:20.000Z
2021-01-04T01:06:18.000Z
/* SPDX-License-Identifier: MIT */ /* Copyright (c) 2020-present Stefan Schlichthärle */ #include "Logger.h" Logger::Logger() : current_loglevel(LogLevel::WARNING) {} Logger::Logger(std::string const filename) : Logger() { file_access.open(filename); } Logger::~Logger() { if (file_access.is_open()) file_acc...
29.57377
75
0.533259
sscit
478dafe437dee50cd92e62e59ca5f1548d108f24
6,832
hpp
C++
src/ns.hpp
MilesLitteral/mtlpp
0915732f9bb958bea476c19b2d9de3637d857c92
[ "MIT" ]
1
2022-01-11T05:44:44.000Z
2022-01-11T05:44:44.000Z
src/ns.hpp
MilesLitteral/mtlpp
0915732f9bb958bea476c19b2d9de3637d857c92
[ "MIT" ]
null
null
null
src/ns.hpp
MilesLitteral/mtlpp
0915732f9bb958bea476c19b2d9de3637d857c92
[ "MIT" ]
null
null
null
/* * Copyright 2016-2017 Nikolay Aleksiev. All rights reserved. * License: https://github.com/naleksiev/mtlpp/blob/master/LICENSE */ #pragma once #include "defines.hpp" namespace ns { struct Handle { const void* ptr; }; class Object { public: ...
32.075117
158
0.525907
MilesLitteral
47a1a30bd4acc32ed3f845e767fda1a52c1cca1f
3,748
cpp
C++
modules/task_3/kulemin_p_linear_vertical_filtration/main.cpp
Stepakrap/pp_2021_autumn
716803a14183172337d51712fb28fe8e86891a3d
[ "BSD-3-Clause" ]
1
2021-12-09T17:20:25.000Z
2021-12-09T17:20:25.000Z
modules/task_3/kulemin_p_linear_vertical_filtration/main.cpp
Stepakrap/pp_2021_autumn
716803a14183172337d51712fb28fe8e86891a3d
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/kulemin_p_linear_vertical_filtration/main.cpp
Stepakrap/pp_2021_autumn
716803a14183172337d51712fb28fe8e86891a3d
[ "BSD-3-Clause" ]
3
2022-02-23T14:20:50.000Z
2022-03-30T09:00:02.000Z
// Copyright 2021 Zaytsev Mikhail #include <gtest/gtest.h> #include <vector> #include "./linear_vectrical_filtration.h" #include <gtest-mpi-listener.hpp> TEST(Parallel_Matrix_Multiplacition, mRows_Eq_mColumns_50) { int currentProcess; MPI_Comm_rank(MPI_COMM_WORLD, &currentProcess); std::vector<float> matr...
28.610687
78
0.68143
Stepakrap
47a1e56747c70b5c2eee49c012072302a80a848f
2,670
cpp
C++
synthts_et/lib/fsc/fsdata.cpp
martnoumees/synthts_et
8845b33514edef3e54ae0b45404615704c418142
[ "Unlicense" ]
19
2015-10-27T22:21:49.000Z
2022-02-07T11:54:35.000Z
synthts_vr/lib/fsc/fsdata.cpp
ikiissel/synthts_vr
33f2686dc9606aa95697ac0cf7e9031668bc34e8
[ "Unlicense" ]
8
2015-10-28T08:38:08.000Z
2021-03-25T21:26:59.000Z
synthts_vr/lib/fsc/fsdata.cpp
ikiissel/synthts_vr
33f2686dc9606aa95697ac0cf7e9031668bc34e8
[ "Unlicense" ]
11
2016-01-03T11:47:08.000Z
2021-03-17T18:59:54.000Z
#include "stdfsc.h" #include "fstype.h" #include "fsdata.h" #include "fstrace.h" #include "fsmemory.h" #include "fsutil.h" #define __FSDATAMAXOVERHEAD (50*1024) // 50K ////////////////////////////////////////////////////////////////////// // Construction/Destruction //////////////////////////////////////...
20.697674
101
0.646816
martnoumees
47a81afe6e0e20ccda4eeeec15d1792aed98e01a
490
hh
C++
libqpdf/qpdf/InsecureRandomDataProvider.hh
m-holger/qpdf
f1a9ba0c622deee0ed05004949b34f0126b12b6a
[ "Apache-2.0" ]
null
null
null
libqpdf/qpdf/InsecureRandomDataProvider.hh
m-holger/qpdf
f1a9ba0c622deee0ed05004949b34f0126b12b6a
[ "Apache-2.0" ]
3
2021-11-19T15:59:21.000Z
2021-12-10T20:44:33.000Z
libqpdf/qpdf/InsecureRandomDataProvider.hh
m-holger/qpdf
f1a9ba0c622deee0ed05004949b34f0126b12b6a
[ "Apache-2.0" ]
null
null
null
#ifndef INSECURERANDOMDATAPROVIDER_HH #define INSECURERANDOMDATAPROVIDER_HH #include <qpdf/RandomDataProvider.hh> class InsecureRandomDataProvider: public RandomDataProvider { public: InsecureRandomDataProvider(); virtual ~InsecureRandomDataProvider() = default; virtual void provideRandomData(unsigned c...
23.333333
68
0.783673
m-holger
47a9f49ecfd31535be660f54e9576575e7329bb5
1,687
cpp
C++
aech/src/ecs/engine.cpp
markomijolovic/aech
6e2ea36146596dff6f92e451a598aab535b03d3c
[ "BSD-3-Clause" ]
4
2021-05-25T13:58:30.000Z
2021-05-26T20:13:15.000Z
aech/src/ecs/engine.cpp
markomijolovic/aech
6e2ea36146596dff6f92e451a598aab535b03d3c
[ "BSD-3-Clause" ]
null
null
null
aech/src/ecs/engine.cpp
markomijolovic/aech
6e2ea36146596dff6f92e451a598aab535b03d3c
[ "BSD-3-Clause" ]
null
null
null
#include "engine.hpp" #include "camera.hpp" #include "directional_light.hpp" #include "light_probe.hpp" #include "mesh_filter.hpp" #include "point_light.hpp" #include "reflection_probe.hpp" #include "scene_node.hpp" #include "shading_tags.hpp" #include "shadow_caster.hpp" namespace aech { engine_t::engine_t() noexce...
27.209677
127
0.760522
markomijolovic
47b15c2740bd5087d10242354a76aab58a878d86
566
cpp
C++
riscv/llvm/3.5/cfe-3.5.0.src/test/Modules/macro-reexport/macro-reexport.cpp
tangyibin/goblin-core
1940db6e95908c81687b2b22ddd9afbc8db9cdfe
[ "BSD-3-Clause" ]
null
null
null
riscv/llvm/3.5/cfe-3.5.0.src/test/Modules/macro-reexport/macro-reexport.cpp
tangyibin/goblin-core
1940db6e95908c81687b2b22ddd9afbc8db9cdfe
[ "BSD-3-Clause" ]
null
null
null
riscv/llvm/3.5/cfe-3.5.0.src/test/Modules/macro-reexport/macro-reexport.cpp
tangyibin/goblin-core
1940db6e95908c81687b2b22ddd9afbc8db9cdfe
[ "BSD-3-Clause" ]
1
2021-03-24T06:40:32.000Z
2021-03-24T06:40:32.000Z
// RUN: rm -rf %t // RUN: %clang_cc1 -fsyntax-only -DD2 -I. %s -fmodules-cache-path=%t -verify // RUN: %clang_cc1 -fsyntax-only -DD2 -I. -fmodules %s -fmodules-cache-path=%t -verify // RUN: %clang_cc1 -fsyntax-only -DC1 -I. %s -fmodules-cache-path=%t -verify // RUN: %clang_cc1 -fsyntax-only -DC1 -I. -fmodules %s -fmodu...
40.428571
86
0.667845
tangyibin
47b3777228507d8e607d053d1b53f147fad2659b
2,420
cpp
C++
src/KRAverager.cpp
AFriemann/LowCarb
073e036a5fd6787943c4cbd76ab388dbd830e7d3
[ "MIT" ]
null
null
null
src/KRAverager.cpp
AFriemann/LowCarb
073e036a5fd6787943c4cbd76ab388dbd830e7d3
[ "MIT" ]
1
2018-12-15T13:57:26.000Z
2018-12-15T13:57:26.000Z
src/KRAverager.cpp
AFriemann/LowCarb
073e036a5fd6787943c4cbd76ab388dbd830e7d3
[ "MIT" ]
null
null
null
/** * @file KRAverager.cpp * @author see AUTHORS * @brief KRAverager definitions file. */ #include "KRAverager.hpp" KRAverager::KRAverager() {} KRAverager::KRAverager(int threshold){ this->threshold = threshold; this->use_threshold = true; } void KRAverager::add_force_constant_tuple(const double forc...
24.444444
115
0.604959
AFriemann
47b4e05940ac5f24462ab393bb1a8a52609d693f
6,663
cc
C++
board.cc
juliusikkala/Pack-Against-The-Machine
74fdf36ea7e9f0369e5b4a101f5e5aa43817c8ff
[ "MIT" ]
null
null
null
board.cc
juliusikkala/Pack-Against-The-Machine
74fdf36ea7e9f0369e5b4a101f5e5aa43817c8ff
[ "MIT" ]
null
null
null
board.cc
juliusikkala/Pack-Against-The-Machine
74fdf36ea7e9f0369e5b4a101f5e5aa43817c8ff
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2019 Julius Ikkala 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, ...
27.419753
79
0.579169
juliusikkala
47b518b1abc4f1f490c66a367ee50db7426244af
2,783
cpp
C++
Immortal/Platform/D3D12/GuiLayer.cpp
QSXW/Immortal
32adcc8609b318752dd97f1c14dc7368b47d47d1
[ "Apache-2.0" ]
6
2021-09-15T08:56:28.000Z
2022-03-29T15:55:02.000Z
Immortal/Platform/D3D12/GuiLayer.cpp
DaShi-Git/Immortal
e3345b4ff2a2b9d215c682db2b4530e24cc3b203
[ "Apache-2.0" ]
null
null
null
Immortal/Platform/D3D12/GuiLayer.cpp
DaShi-Git/Immortal
e3345b4ff2a2b9d215c682db2b4530e24cc3b203
[ "Apache-2.0" ]
4
2021-12-05T17:28:57.000Z
2022-03-29T15:55:05.000Z
#include "impch.h" #include "GuiLayer.h" #ifndef _UNICODE #define _UNICODE #endif #include <backends/imgui_impl_win32.h> #include <backends/imgui_impl_dx12.cpp> #include <backends/imgui_impl_glfw.h> #include <GLFW/glfw3.h> #include "Render/Render.h" #include "Barrier.h" #include "Event/ApplicationEvent.h" namespace...
25.3
91
0.683794
QSXW
47b55a245279ee6706aab62df9d1ad31bdf4374b
1,626
cpp
C++
cpp/example/interpolate.cpp
mustafabar/RedSeaInterpolation
5d40cbc6e54df7a867445e8fadd11f9f1cce8556
[ "MIT" ]
null
null
null
cpp/example/interpolate.cpp
mustafabar/RedSeaInterpolation
5d40cbc6e54df7a867445e8fadd11f9f1cce8556
[ "MIT" ]
null
null
null
cpp/example/interpolate.cpp
mustafabar/RedSeaInterpolation
5d40cbc6e54df7a867445e8fadd11f9f1cce8556
[ "MIT" ]
null
null
null
#include "referencefunctions.h" #include "interpolation.h" #include <cmath> #include <iostream> #include <random> void print_gradient(const Eigen::Vector3d &grad) { for (int i = 0; i < 3; i++) { std::cout << grad(i) << ' '; } std::cout << std::endl; } void print_hessian(const Eigen::Matrix3d &hess) { for...
23.911765
70
0.550431
mustafabar
47b9faa2f4d833ca5051111bf2f5b494edbebde7
17,617
cpp
C++
app/source/core/albumwrapper.cpp
iUltimateLP/NXGallery
0b9085c789478e28b67dcce0f4902f11e135522d
[ "MIT" ]
38
2020-05-10T14:03:25.000Z
2022-02-17T09:11:21.000Z
app/source/core/albumwrapper.cpp
iUltimateLP/NXGallery
0b9085c789478e28b67dcce0f4902f11e135522d
[ "MIT" ]
14
2020-05-15T18:47:19.000Z
2022-03-27T12:06:37.000Z
app/source/core/albumwrapper.cpp
iUltimateLP/NXGallery
0b9085c789478e28b67dcce0f4902f11e135522d
[ "MIT" ]
null
null
null
/* NXGallery for Nintendo Switch Made with love by Jonathan Verbeek (jverbeek.de) MIT License Copyright (c) 2020-2021 Jonathan Verbeek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
34.611002
152
0.675768
iUltimateLP
47bb95da3c24f525aecff41fd0ef971fad3c6114
586
cpp
C++
source/chapter_05/listings/listing_05_14_waiting.cpp
ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition
ce2c8fca379508929dfd24dce10eff2c09117999
[ "MIT" ]
null
null
null
source/chapter_05/listings/listing_05_14_waiting.cpp
ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition
ce2c8fca379508929dfd24dce10eff2c09117999
[ "MIT" ]
null
null
null
source/chapter_05/listings/listing_05_14_waiting.cpp
ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition
ce2c8fca379508929dfd24dce10eff2c09117999
[ "MIT" ]
null
null
null
/** * \file * listing_05_14_waiting.cpp * * \brief * Using clock() in a time-delay loop. */ #include <ctime> // describes clock() function, clock_t type #include <iostream> int main() { using namespace std; cout << "Enter the delay time, in seconds: "; float secs; cin >> secs; clock_t delay = secs * CLO...
20.206897
68
0.581911
ShinyGreenRobot
47bee0a2e539c092ccc7de0698b37716f69b4d28
722
cpp
C++
benchmark/benchmark.cpp
ortfero/pulse
08cd78c20f16101b553e4e15f1a04011bb32722c
[ "MIT" ]
null
null
null
benchmark/benchmark.cpp
ortfero/pulse
08cd78c20f16101b553e4e15f1a04011bb32722c
[ "MIT" ]
null
null
null
benchmark/benchmark.cpp
ortfero/pulse
08cd78c20f16101b553e4e15f1a04011bb32722c
[ "MIT" ]
null
null
null
#include <stdio.h> #include <pulse/pulse.hpp> #include <ubench/ubench.hpp> struct listener { }; // listener using slot_type = void(listener::*)(); bool flag = true; struct handler: listener { void slot() { flag = !flag; } }; // handler int main() { handler h; listener* l = &h; slot_type s = slo...
18.05
63
0.609418
ortfero
47bf81bc6c0b6c52ed41b6571e87789df5f4b611
5,009
cpp
C++
node_modules/ammo.js/bullet/Extras/CDTestFramework/Opcode/Ice/IceHPoint.cpp
Xielifen/three.js-master
58467f729243d90da4b758b0fe130eb40458bc39
[ "MIT" ]
8
2015-02-28T15:33:39.000Z
2019-06-12T19:59:34.000Z
node_modules/ammo.js/bullet/Extras/CDTestFramework/Opcode/Ice/IceHPoint.cpp
Xielifen/three.js-master
58467f729243d90da4b758b0fe130eb40458bc39
[ "MIT" ]
null
null
null
node_modules/ammo.js/bullet/Extras/CDTestFramework/Opcode/Ice/IceHPoint.cpp
Xielifen/three.js-master
58467f729243d90da4b758b0fe130eb40458bc39
[ "MIT" ]
5
2016-04-13T12:22:36.000Z
2022-01-14T19:18:52.000Z
/* * ICE / OPCODE - Optimized Collision Detection * http://www.codercorner.com/Opcode.htm * * Copyright (c) 2001-2008 Pierre Terdiman, pierre@codercorner.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from...
56.920455
244
0.345578
Xielifen
47cb9d0b97b1426b29f3e5e58983f1836f85c062
5,697
cpp
C++
src/server/tests/httpserv.cpp
Ooggle/MUSIC-exclamation-mark
55f4dd750d57227fac29d887d90e0c8ec2ad7397
[ "MIT" ]
7
2020-08-28T21:47:54.000Z
2021-01-01T17:54:27.000Z
src/server/tests/httpserv.cpp
Ooggle/MUSIC-exclamation-mark
55f4dd750d57227fac29d887d90e0c8ec2ad7397
[ "MIT" ]
null
null
null
src/server/tests/httpserv.cpp
Ooggle/MUSIC-exclamation-mark
55f4dd750d57227fac29d887d90e0c8ec2ad7397
[ "MIT" ]
1
2020-12-26T17:08:54.000Z
2020-12-26T17:08:54.000Z
#include <unistd.h> #include <regex.h> #include <stdio.h> #include <string.h> #include <iostream> #include <fstream> #include <filesystem> #include <string> #include <vector> #include "ServeurTcp.h" int regexTwo(std::string paramsSource); std::string getRequestLine(ServeurTcp *server) { uint8_t data = 0; std...
27.128571
154
0.583289
Ooggle
47d05694290c4feb5306e4ca153e7f48be286ece
7,758
cpp
C++
sourceCode/fairport/branch/ankopp/samples/nameprop/main.cpp
enrondata/pstsdk
70701d755f52412f0f21ed216968e314433a324e
[ "Apache-2.0" ]
6
2019-07-11T23:24:55.000Z
2021-08-03T16:31:12.000Z
sourceCode/fairport/trunk/samples/nameprop/main.cpp
Lingchar/pstsdk
70701d755f52412f0f21ed216968e314433a324e
[ "Apache-2.0" ]
null
null
null
sourceCode/fairport/trunk/samples/nameprop/main.cpp
Lingchar/pstsdk
70701d755f52412f0f21ed216968e314433a324e
[ "Apache-2.0" ]
4
2019-04-17T07:08:30.000Z
2020-10-12T22:35:19.000Z
#include <iostream> #include <iomanip> #include <string> #include <vector> #include "pstsdk/util/primitives.h" #include "pstsdk/ltp/propbag.h" #include "pstsdk/pst/pst.h" using namespace std; using namespace pstsdk; void pretty_print(const guid& g, bool special) { cout << "{" << hex << setw(8) ...
33.296137
143
0.526811
enrondata
47d4584ca3bb595c6f631bc4e0efb3c1e688ab7d
21,357
cpp
C++
cc/playground/sum_store-dir/FH_MicroTest.cpp
yangzheng2115/demofaster
8968db65cf60a68f61c55e1e9becdbf226dc8d36
[ "MIT" ]
null
null
null
cc/playground/sum_store-dir/FH_MicroTest.cpp
yangzheng2115/demofaster
8968db65cf60a68f61c55e1e9becdbf226dc8d36
[ "MIT" ]
null
null
null
cc/playground/sum_store-dir/FH_MicroTest.cpp
yangzheng2115/demofaster
8968db65cf60a68f61c55e1e9becdbf226dc8d36
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> #include <fstream> #include <numa.h> #include <experimental/filesystem> #include "../../src/device/tracer.h" #include <stdio.h> #include <stdlib.h> #include "../../src/core/faster.h" #include "../../src/core/address.h" #include "../../src/device/file_system_disk.h" #include "../.....
31.923767
118
0.565576
yangzheng2115
c51363e83136d67b82ce6d7ef937ed8359e3b71b
1,018
cpp
C++
c/template/Template_Reverse.cpp
WeAreChampion/notes
6c0f726d1003e5083d9cf1b75ac6905dc1c19c07
[ "Apache-2.0" ]
2
2018-11-17T15:36:00.000Z
2022-03-16T09:01:16.000Z
c/template/Template_Reverse.cpp
WeAreChampion/notes
6c0f726d1003e5083d9cf1b75ac6905dc1c19c07
[ "Apache-2.0" ]
null
null
null
c/template/Template_Reverse.cpp
WeAreChampion/notes
6c0f726d1003e5083d9cf1b75ac6905dc1c19c07
[ "Apache-2.0" ]
null
null
null
#include<iostream> using namespace std; template<class Type> void Reverse(Type array[], int length) { for(int i = 0; i < length / 2; i++) { Type temp; temp = array[i]; array[i] = array[length - 1 - i]; array[length - 1 - i] = temp; } } template<class Type> void Reverse(Type array[], int start, int end) { for...
22.130435
50
0.600196
WeAreChampion
c5149b1ab96144b9c0660b342b4cf0bb4b3ada12
19,329
cpp
C++
src/freeSurface.cpp
krenzland/FreeSurfaceLBM
5619edcf318623c3a4feac478db66663687bca94
[ "MIT" ]
8
2017-12-12T19:39:29.000Z
2022-02-03T13:37:53.000Z
src/freeSurface.cpp
krenzland/FreeSurfaceLBM
5619edcf318623c3a4feac478db66663687bca94
[ "MIT" ]
1
2020-07-23T13:51:06.000Z
2020-07-23T20:16:56.000Z
src/freeSurface.cpp
krenzland/FreeSurfaceLBM
5619edcf318623c3a4feac478db66663687bca94
[ "MIT" ]
3
2019-05-09T07:50:48.000Z
2020-11-05T12:28:43.000Z
#include "freeSurface.hpp" #include <iostream> #include <numeric> double computeFluidFraction(const std::vector<double> &fluidFraction, const std::vector<flag_t> &flags, int idx, const std::vector<double> &mass) { if (flags[idx] == flag_t::EMPTY) { return 0.0; } else if (fla...
47.143902
140
0.569197
krenzland
c515da3d7291436f423257dc94f38d5e3e9913b8
2,874
cpp
C++
tool/keyinfo.cpp
drypot/san-2.x
44e626793b1dc50826ba0f276d5cc69b7c9ca923
[ "MIT" ]
5
2019-12-27T07:30:03.000Z
2020-10-13T01:08:55.000Z
tool/keyinfo.cpp
drypot/san-2.x
44e626793b1dc50826ba0f276d5cc69b7c9ca923
[ "MIT" ]
null
null
null
tool/keyinfo.cpp
drypot/san-2.x
44e626793b1dc50826ba0f276d5cc69b7c9ca923
[ "MIT" ]
1
2020-07-27T22:36:40.000Z
2020-07-27T22:36:40.000Z
/* keyinfo.cpp 1995.08.18 */ #include <pub/config.hpp> #include <pub/common.hpp> #include <pub/misc.hpp> LRESULT CALLBACK _export WndProcpcs_main(HWND, UINT, WPARAM, LPARAM); void pcs_main() { HWND hWnd; MSG msg; WNDCLASS wndclass; wndclass.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;...
21.772727
134
0.691371
drypot
c51bd70ec717e6f7785a0665fb5ea391712fc42d
16,884
cpp
C++
tests/TestAppMain.cpp
jakjinak/jj
d1d49cd75a63b7ec2b2497ed061e8c1145ff2eb7
[ "MIT" ]
null
null
null
tests/TestAppMain.cpp
jakjinak/jj
d1d49cd75a63b7ec2b2497ed061e8c1145ff2eb7
[ "MIT" ]
null
null
null
tests/TestAppMain.cpp
jakjinak/jj
d1d49cd75a63b7ec2b2497ed061e8c1145ff2eb7
[ "MIT" ]
null
null
null
#include "jj/gui/application.h" #include "jj/gui/window.h" #include "jj/gui/textLabel.h" #include "jj/gui/textInput.h" #include "jj/gui/comboBox.h" #include "jj/gui/tree.h" #include "jj/gui/button.h" #include "jj/gui/sizer.h" #include "jj/stream.h" #include <sstream> #include "jj/directories.h" class myTreeThing : pub...
43.181586
252
0.529377
jakjinak
c5210172b004b41944ea57f390439356a017af8a
12,696
cpp
C++
M5StickTest-IoTHub/src/main.cpp
tkopacz/2019M5StickC
1435fb81c4b2b52315eca82f2c824db5c412d946
[ "MIT" ]
null
null
null
M5StickTest-IoTHub/src/main.cpp
tkopacz/2019M5StickC
1435fb81c4b2b52315eca82f2c824db5c412d946
[ "MIT" ]
null
null
null
M5StickTest-IoTHub/src/main.cpp
tkopacz/2019M5StickC
1435fb81c4b2b52315eca82f2c824db5c412d946
[ "MIT" ]
null
null
null
/** * A simple Azure IoT example for sending telemetry. * Watchdog * Interupt on GPIO * Read almost all parameters from M5StickC * Commands: start | stop, ledon | ledoff, delay {"ms":1000} */ #include <Arduino.h> #include <M5StickC.h> #include <WiFi.h> #include <ArduinoJson.h> #include "Esp32MQTTClient.h" #includ...
30.446043
171
0.625236
tkopacz
c52424c8d38cf9406241a25a52a4b317ab0f7fb3
20,372
cpp
C++
CastingEssentials/Modules/CameraTools.cpp
PazerOP/CastingEssentials
d0bd4265233a6fa8d428cdcba326ac0574354a03
[ "BSD-2-Clause" ]
30
2016-11-13T00:50:34.000Z
2022-01-28T04:16:19.000Z
CastingEssentials/Modules/CameraTools.cpp
PazerOP/CastingEssentials
d0bd4265233a6fa8d428cdcba326ac0574354a03
[ "BSD-2-Clause" ]
92
2016-11-11T18:33:02.000Z
2020-11-14T13:06:56.000Z
CastingEssentials/Modules/CameraTools.cpp
PazerOP/CastingEssentials
d0bd4265233a6fa8d428cdcba326ac0574354a03
[ "BSD-2-Clause" ]
12
2017-04-27T18:27:20.000Z
2022-03-16T08:45:35.000Z
#include "CameraTools.h" #include "Misc/CCvar.h" #include "Misc/HLTVCameraHack.h" #include "Modules/Camera/SimpleCameraSmooth.h" #include "Modules/CameraSmooths.h" #include "Modules/CameraState.h" #include "PluginBase/Entities.h" #include "PluginBase/HookManager.h" #include "PluginBase/Interfaces.h" #include "PluginBas...
28.452514
256
0.6828
PazerOP
c52514166be8497b2091345590192675581da905
2,434
hpp
C++
Camera.hpp
Adrijaned/oglPlaygorund
ce3c31669263545650efcc4b12dd22e6517ccaa7
[ "MIT" ]
null
null
null
Camera.hpp
Adrijaned/oglPlaygorund
ce3c31669263545650efcc4b12dd22e6517ccaa7
[ "MIT" ]
null
null
null
Camera.hpp
Adrijaned/oglPlaygorund
ce3c31669263545650efcc4b12dd22e6517ccaa7
[ "MIT" ]
null
null
null
// // Created by adrijarch on 5/11/19. // #ifndef OGLPLAYGROUND_CAMERA_HPP #define OGLPLAYGROUND_CAMERA_HPP #include <glm/glm.hpp> /** * OGL style camera for computing view matrix for use by shaders. */ class Camera { /** * Position of the camera itself in the source coordinate system. */ glm::vec3 posit...
26.456522
80
0.672555
Adrijaned
c52f1092a61bc918798d7d1d82e3255581c72fa1
2,158
cpp
C++
dictionary_std_vector/src/dictionary_std_vector.cpp
Arghnews/wordsearch_solver
cf25db64ca3d1facd9191aad075654f124f0d580
[ "MIT" ]
null
null
null
dictionary_std_vector/src/dictionary_std_vector.cpp
Arghnews/wordsearch_solver
cf25db64ca3d1facd9191aad075654f124f0d580
[ "MIT" ]
null
null
null
dictionary_std_vector/src/dictionary_std_vector.cpp
Arghnews/wordsearch_solver
cf25db64ca3d1facd9191aad075654f124f0d580
[ "MIT" ]
null
null
null
#include "wordsearch_solver/dictionary_std_vector/dictionary_std_vector.hpp" #include <fmt/format.h> #include <fmt/ostream.h> #include <fmt/ranges.h> #include <range/v3/view/all.hpp> #include <range/v3/view/transform.hpp> #include <algorithm> #include <cassert> #include <cstddef> #include <ostream> #include <string>...
30.394366
76
0.68165
Arghnews
c532c00b414b4ddb9685037a54ae024dc92ae6f4
3,943
cpp
C++
libcaf_core/test/node_id.cpp
jsiwek/actor-framework
06cd2836f4671725cb7eaa22b3cc115687520fc1
[ "BSL-1.0", "BSD-3-Clause" ]
4
2019-05-03T05:38:15.000Z
2020-08-25T15:23:19.000Z
libcaf_core/test/node_id.cpp
jsiwek/actor-framework
06cd2836f4671725cb7eaa22b3cc115687520fc1
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
libcaf_core/test/node_id.cpp
jsiwek/actor-framework
06cd2836f4671725cb7eaa22b3cc115687520fc1
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
39.43
80
0.503677
jsiwek
c533328548e5885b901f2ad1f6377d57a4c1c195
6,034
cpp
C++
code/src/utils/CommandLineParser.cpp
reuqlauQemoN/streamopenacc
c8d74dcea6b28e1038d76ab27fca5c23e21ecead
[ "Apache-1.1" ]
69
2015-07-02T05:25:29.000Z
2022-01-10T08:54:46.000Z
code/src/utils/CommandLineParser.cpp
xiaguoyang/streamDM-Cpp
0304d03393f6987596aa445a0506631655297e79
[ "Apache-1.1" ]
3
2015-08-15T06:42:17.000Z
2021-05-17T09:30:51.000Z
code/src/utils/CommandLineParser.cpp
xiaguoyang/streamDM-Cpp
0304d03393f6987596aa445a0506631655297e79
[ "Apache-1.1" ]
40
2015-07-02T06:03:26.000Z
2021-12-16T02:07:29.000Z
/* * Copyright (C) 2015 Holmes Team at HUAWEI Noah's Ark Lab. * * 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 ap...
23.118774
136
0.592973
reuqlauQemoN
c53412834662148177d1887ff675abd21587750b
519
hpp
C++
bullpen_sketch/state.hpp
estriz27/bullpen
11ee415d7f2b2b211a2c9e34a173e016f298b85c
[ "MIT" ]
null
null
null
bullpen_sketch/state.hpp
estriz27/bullpen
11ee415d7f2b2b211a2c9e34a173e016f298b85c
[ "MIT" ]
null
null
null
bullpen_sketch/state.hpp
estriz27/bullpen
11ee415d7f2b2b211a2c9e34a173e016f298b85c
[ "MIT" ]
null
null
null
#ifndef __STATE__ #define __STATE__ #include "person.hpp" #include <stdlib.h> #include <vector> #include <algorithm> class State{ //Has a vector of class Person std::vector<Person> people; public: State(std::vector<Person> people):people(people){} std::vector<Person> getInList(); std::vector<Person> getOutL...
21.625
92
0.739884
estriz27
c539f8932a5650fab69b759c1a2de0beda728576
4,151
hpp
C++
include/lemon/deprecated/old_hadoop.hpp
frodofine/lemon
f874857cb8f1851313257b25681ad2a254ada8dc
[ "BSD-3-Clause" ]
43
2018-07-21T22:08:48.000Z
2022-03-23T22:19:02.000Z
include/lemon/deprecated/old_hadoop.hpp
frodofine/lemon
f874857cb8f1851313257b25681ad2a254ada8dc
[ "BSD-3-Clause" ]
22
2018-08-01T19:13:11.000Z
2020-06-02T17:04:03.000Z
include/lemon/deprecated/old_hadoop.hpp
frodofine/lemon
f874857cb8f1851313257b25681ad2a254ada8dc
[ "BSD-3-Clause" ]
9
2018-07-21T19:13:55.000Z
2020-12-22T09:12:43.000Z
#ifndef OLD_HADOOP_HPP #define OLD_HADOOP_HPP #include <cassert> #include <cstdint> #include <fstream> #include <string> #include <vector> namespace lemon { namespace deprecated { class Hadoop { public: Hadoop(std::istream& stream) : stream_(stream) { initialize_(); } bool has_next() { return stream_.pee...
25.623457
89
0.544929
frodofine
c544e038a050d0f02a4c8bd73294457099d108a9
660
hpp
C++
include/SplayLibrary/Core/RenderWindow.hpp
Reiex/SplayLibrary
94b68f371ea4c662c84dfe2dd0a6d1625b60fb04
[ "MIT" ]
1
2021-12-14T21:36:39.000Z
2021-12-14T21:36:39.000Z
include/SplayLibrary/Core/RenderWindow.hpp
Reiex/SplayLibrary
94b68f371ea4c662c84dfe2dd0a6d1625b60fb04
[ "MIT" ]
null
null
null
include/SplayLibrary/Core/RenderWindow.hpp
Reiex/SplayLibrary
94b68f371ea4c662c84dfe2dd0a6d1625b60fb04
[ "MIT" ]
null
null
null
#pragma once #include <SplayLibrary/Core/types.hpp> namespace spl { class RenderWindow : public Window { public: RenderWindow(const uvec2& size, const std::string& title); RenderWindow(const RenderWindow& window) = delete; RenderWindow(RenderWindow&& window) = delete; const RenderWindo...
20.625
71
0.680303
Reiex
c5460a64ed3932f8d78a3dacd0971d66ec8f8c82
5,631
hpp
C++
core/include/component/ComponentManager.hpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
core/include/component/ComponentManager.hpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
core/include/component/ComponentManager.hpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
#pragma once #include "../assert.hpp" #include "../types.hpp" #include "./ComponentBase.hpp" #include "tools/Chrono.hpp" #include "tools/jsonTools.hpp" #include <cassert> #include <functional> #include <iostream> #include <memory> #include <unordered_map> #include <vector> namespace fa { class ComponentManager { ...
30.603261
78
0.604866
Floriantoine
c54a1e61064a6e382807f76565563f4de81af472
2,104
hpp
C++
include/sysmakeshift/detail/transaction.hpp
mbeutel/sysmakeshift
d6451315281b229222cb77f916c36b831acb054c
[ "BSL-1.0" ]
2
2020-11-15T14:09:17.000Z
2022-01-14T15:20:02.000Z
include/sysmakeshift/detail/transaction.hpp
mbeutel/sysmakeshift
d6451315281b229222cb77f916c36b831acb054c
[ "BSL-1.0" ]
2
2020-02-16T02:20:22.000Z
2020-02-16T20:49:03.000Z
include/sysmakeshift/detail/transaction.hpp
mbeutel/sysmakeshift
d6451315281b229222cb77f916c36b831acb054c
[ "BSL-1.0" ]
1
2021-09-02T07:44:42.000Z
2021-09-02T07:44:42.000Z
#ifndef INCLUDED_SYSMAKESHIFT_DETAIL_TRANSACTION_HPP_ #define INCLUDED_SYSMAKESHIFT_DETAIL_TRANSACTION_HPP_ #include <utility> // for move(), exchange() #include <type_traits> // for integral_constant<> namespace sysmakeshift { namespace detail { // TODO: Should this be in gsl-lite? B. Stroustrup rightf...
23.909091
163
0.710076
mbeutel
c54a6db60416ac3dcb710cdfae8fc0cd9c344f24
394
hpp
C++
common/cxx/adstutil_cxx/include/adstutil_cxx/make_array.hpp
csitarichie/someip_cyclone_dds_bridge
2ccaaa6e2484a938b08562497431df61ab23769f
[ "MIT" ]
null
null
null
common/cxx/adstutil_cxx/include/adstutil_cxx/make_array.hpp
csitarichie/someip_cyclone_dds_bridge
2ccaaa6e2484a938b08562497431df61ab23769f
[ "MIT" ]
null
null
null
common/cxx/adstutil_cxx/include/adstutil_cxx/make_array.hpp
csitarichie/someip_cyclone_dds_bridge
2ccaaa6e2484a938b08562497431df61ab23769f
[ "MIT" ]
null
null
null
#pragma once #include <array> namespace adst::common { template <typename... T> constexpr auto make_array(T&&... values) -> std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof...(T)> { return std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof.....
26.266667
102
0.64467
csitarichie
c54b7a848a2452a52969d35624503c2a453077a4
8,895
cpp
C++
src/ISOBMFF.cpp
Ultraschall/ultraschall-3
7e2479fc0eb877a9b4979bedaf92f95bad627073
[ "MIT" ]
11
2018-07-08T09:14:22.000Z
2019-11-08T02:54:42.000Z
src/ISOBMFF.cpp
Ultraschall/ultraschall-3
7e2479fc0eb877a9b4979bedaf92f95bad627073
[ "MIT" ]
17
2018-01-18T23:12:15.000Z
2019-02-03T07:47:51.000Z
src/ISOBMFF.cpp
Ultraschall/ultraschall-3
7e2479fc0eb877a9b4979bedaf92f95bad627073
[ "MIT" ]
4
2018-03-07T19:38:29.000Z
2019-01-10T09:04:05.000Z
//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) The Ultraschall Project (http://ultraschall.fm) // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the ...
33.821293
109
0.665318
Ultraschall
c54dedd28857f908927db90eab10f5938387c41e
1,430
hpp
C++
cppcache/integration-test/TimeBomb.hpp
alb3rtobr/geode-native
bab0b5238b6b7688645a935bbaa74532f0f4d9b8
[ "Apache-2.0" ]
null
null
null
cppcache/integration-test/TimeBomb.hpp
alb3rtobr/geode-native
bab0b5238b6b7688645a935bbaa74532f0f4d9b8
[ "Apache-2.0" ]
null
null
null
cppcache/integration-test/TimeBomb.hpp
alb3rtobr/geode-native
bab0b5238b6b7688645a935bbaa74532f0f4d9b8
[ "Apache-2.0" ]
null
null
null
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
28.039216
75
0.739161
alb3rtobr
c54e48b694238e9352bda8d66173e8da7373209b
1,541
cpp
C++
shape.cpp
anthony-bartman/Painting-Pixels
ec820fc1fa422c0d4ca10dedfe83d8a9bce61b92
[ "MIT" ]
null
null
null
shape.cpp
anthony-bartman/Painting-Pixels
ec820fc1fa422c0d4ca10dedfe83d8a9bce61b92
[ "MIT" ]
null
null
null
shape.cpp
anthony-bartman/Painting-Pixels
ec820fc1fa422c0d4ca10dedfe83d8a9bce61b92
[ "MIT" ]
null
null
null
/** * Anthony Bartman * Dr. Varnell * Computer Graphics: CS 3210 021 * 05/03/2020 * * Desc: * This file handles all of the shape method functions. */ #include "shape.h" /********************************************************* * Construction / Destruction *************************************************...
23.707692
74
0.491239
anthony-bartman
c55a096e83e4da80b2c6fd24b9ba7cd94c0f4319
1,139
cpp
C++
chapter11/ex09_binary_io.cpp
ClassAteam/stroustrup-ppp
ea9e85d4ea9890038eb5611c3bc82734c8706ce7
[ "MIT" ]
124
2018-06-23T10:16:56.000Z
2022-03-19T15:16:12.000Z
chapter11/ex09_binary_io.cpp
therootfolder/stroustrup-ppp
b1e936c9a67b9205fdc9712c42496b45200514e2
[ "MIT" ]
23
2018-02-08T20:57:46.000Z
2021-10-08T13:58:29.000Z
chapter11/ex09_binary_io.cpp
ClassAteam/stroustrup-ppp
ea9e85d4ea9890038eb5611c3bc82734c8706ce7
[ "MIT" ]
65
2019-05-27T03:05:56.000Z
2022-03-26T03:43:05.000Z
#include "../text_lib/std_lib_facilities.h" vector<int> binary_in(const string& fname) // read in a file and store as binary in vector { ifstream ifs {fname, ios_base::binary}; if (!ifs) error("can't read from file ", fname); vector<int> v; for (int x; ifs.read(as_bytes(x), sizeof(int)); ) ...
22.333333
58
0.604039
ClassAteam
c55c929cdfd49640ca3edc33507edc00a4002221
22,593
cpp
C++
src/OpcUaStackCore/Base/DataMemArray.cpp
gianricardo/OpcUaStack
ccdef574175ffe8b7e82b886abc5e5403968b280
[ "Apache-2.0" ]
108
2018-10-08T17:03:32.000Z
2022-03-21T00:52:26.000Z
src/OpcUaStackCore/Base/DataMemArray.cpp
gianricardo/OpcUaStack
ccdef574175ffe8b7e82b886abc5e5403968b280
[ "Apache-2.0" ]
287
2018-09-18T14:59:12.000Z
2022-01-13T12:28:23.000Z
src/OpcUaStackCore/Base/DataMemArray.cpp
gianricardo/OpcUaStack
ccdef574175ffe8b7e82b886abc5e5403968b280
[ "Apache-2.0" ]
32
2018-10-19T14:35:03.000Z
2021-11-12T09:36:46.000Z
/* Copyright 2017 Kai Huebl (kai@huebl-sgh.de) Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser Datei nur in Übereinstimmung mit der Lizenz erlaubt. Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0. Sofern nicht gemäß geltendem Recht vorgeschri...
24.909592
118
0.653565
gianricardo
c55d3b2b1b9849962d00f948cc8c4610eef73a73
426
cpp
C++
srcs/tc.common/byte_buffer.cpp
aoziczero/libtc
7f5afc2324bc91bf38e53b474d80804b48b546a5
[ "MIT" ]
null
null
null
srcs/tc.common/byte_buffer.cpp
aoziczero/libtc
7f5afc2324bc91bf38e53b474d80804b48b546a5
[ "MIT" ]
null
null
null
srcs/tc.common/byte_buffer.cpp
aoziczero/libtc
7f5afc2324bc91bf38e53b474d80804b48b546a5
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "byte_buffer.hpp" namespace tc { namespace buffer { position::position(void) : read(0), write(0) {} position::position(const position& rhs) : read(rhs.read), write(rhs.write) {} position& position::operator=(const position& rhs) { read = rhs.read; write = rhs.write; return *this;...
17.04
52
0.673709
aoziczero
c5616bc52ef596f1e13ae3119a9f081d71454c08
6,722
cpp
C++
RogueEngine/Source/LightingSystem.cpp
silferysky/RogueArcher
3c77696260f773a0b7adb88b991e09bb35069901
[ "FSFAP" ]
1
2019-06-18T20:07:47.000Z
2019-06-18T20:07:47.000Z
RogueEngine/Source/LightingSystem.cpp
silferysky/RogueArcher
3c77696260f773a0b7adb88b991e09bb35069901
[ "FSFAP" ]
null
null
null
RogueEngine/Source/LightingSystem.cpp
silferysky/RogueArcher
3c77696260f773a0b7adb88b991e09bb35069901
[ "FSFAP" ]
null
null
null
/* Start Header ************************************************************************/ /*! \file LightingSystem.cpp \project Exale \author Javier Foo, javier.foo, 440002318 (100%) \par javier.foo\@digipen.edu \date 3 April,2020 \brief This file contains the func...
35.566138
135
0.728652
silferysky
c5618218a5567b0c742550c8da8eb15e33e41a31
2,541
cpp
C++
src/system/boot/platform/riscv/mmu.cpp
X547/haiku
87555a1f4f2fdab7617c670ef0b5875698e5db63
[ "MIT" ]
2
2021-06-05T20:29:57.000Z
2021-06-20T10:46:56.000Z
src/system/boot/platform/riscv/mmu.cpp
X547/haiku
87555a1f4f2fdab7617c670ef0b5875698e5db63
[ "MIT" ]
null
null
null
src/system/boot/platform/riscv/mmu.cpp
X547/haiku
87555a1f4f2fdab7617c670ef0b5875698e5db63
[ "MIT" ]
null
null
null
/* * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. * Based on code written by Travis Geiselbrecht for NewOS. * * Distributed under the terms of the MIT License. */ #include "mmu.h" #include <boot/platform.h> #include <boot/stdio.h> #include <boot/kernel_args.h> #include <boot/stage2.h> #include <ar...
23.971698
111
0.748524
X547
c573887528dbd30b420c869862d371f8393ea45f
3,599
cpp
C++
src/gravity/grav3D.cpp
capybaras-only/cholla
e82d88440f530adca00e5acdb9ee0da9ba8874de
[ "MIT" ]
42
2016-07-19T02:07:16.000Z
2022-02-22T15:20:07.000Z
src/gravity/grav3D.cpp
capybaras-only/cholla
e82d88440f530adca00e5acdb9ee0da9ba8874de
[ "MIT" ]
34
2018-10-23T04:03:25.000Z
2022-03-24T15:23:36.000Z
src/gravity/grav3D.cpp
capybaras-only/cholla
e82d88440f530adca00e5acdb9ee0da9ba8874de
[ "MIT" ]
30
2016-04-14T17:52:34.000Z
2022-02-25T15:52:02.000Z
#ifdef GRAVITY #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include"../global.h" #include "../io.h" #include"grav3D.h" #ifdef PARALLEL_OMP #include "../parallel_omp.h" #endif Grav3D::Grav3D( void ){} void Grav3D::Initialize( Real x_min, Real y_min, Real z_min, Real Lx, Real Ly, Real Lz...
27.684615
239
0.684357
capybaras-only
c577745f7b251e3cc806bdab313a588d8658dd06
558
cpp
C++
gym/102343/A.cpp
albexl/codeforces-gym-submissions
2a51905c50fcf5d7f417af81c4c49ca5217d0753
[ "MIT" ]
1
2021-07-16T19:59:39.000Z
2021-07-16T19:59:39.000Z
gym/102343/A.cpp
albexl/codeforces-gym-submissions
2a51905c50fcf5d7f417af81c4c49ca5217d0753
[ "MIT" ]
null
null
null
gym/102343/A.cpp
albexl/codeforces-gym-submissions
2a51905c50fcf5d7f417af81c4c49ca5217d0753
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #ifdef Adrian #include "debug.h" #else #define debug(...) #endif typedef long long ll; typedef long double ld; typedef complex<ll> point; #define F first #define S second int main() { #ifdef Adrian freopen("a.txt", "r", stdin); //freopen("b.txt", "w", stdout); #e...
13.285714
42
0.605735
albexl
c57a3fca23220599107fc435834ed25300d0e4e8
3,492
hpp
C++
src/transformations.hpp
RedErr404/cprocessing
ab8ef25ea3e4bcd915f9c086b649696866ea77ca
[ "BSD-2-Clause" ]
12
2015-01-12T07:43:22.000Z
2022-03-08T06:43:20.000Z
src/transformations.hpp
RedErr404/cprocessing
ab8ef25ea3e4bcd915f9c086b649696866ea77ca
[ "BSD-2-Clause" ]
null
null
null
src/transformations.hpp
RedErr404/cprocessing
ab8ef25ea3e4bcd915f9c086b649696866ea77ca
[ "BSD-2-Clause" ]
7
2015-02-09T15:44:10.000Z
2019-07-07T11:48:10.000Z
#include "cprocessing.hpp" #ifndef CPROCESSING_TRANSFORMATIONS_ #define CPROCESSING_TRANSFORMATIONS_ using namespace cprocessing; namespace cprocessing { /// Applies a translation transformation void translate (double dx, double dy, double dz); void translate(double dx, double dy); /// Applies a sca...
36.757895
91
0.702463
RedErr404
c57c25237f51093201dc7a67043e3023da3bc325
3,002
cpp
C++
aws-cpp-sdk-kafkaconnect/source/model/CustomPluginRevisionSummary.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-kafkaconnect/source/model/CustomPluginRevisionSummary.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-kafkaconnect/source/model/CustomPluginRevisionSummary.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/kafkaconnect/model/CustomPluginRevisionSummary.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; name...
21.912409
121
0.747169
perfectrecall
c5816c489ad6d191622911f0ed29136689f2752d
2,767
cpp
C++
Eldritch-Source/Code/Libraries/3D/src/D3D9/d3d9vertexdeclaration.cpp
inferno986return/eldritch-mirror
fefdb06f392b3f8c17f0617a1101c503620bc6fd
[ "Zlib", "Unlicense" ]
91
2015-01-27T22:56:26.000Z
2022-03-25T13:33:18.000Z
Code/Libraries/3D/src/D3D9/d3d9vertexdeclaration.cpp
rohit-n/Eldritch
b1d2a200eac9c8026e696bdac1f7d2ca629dd38c
[ "Zlib" ]
2
2019-01-04T21:42:26.000Z
2019-01-06T14:34:08.000Z
Code/Libraries/3D/src/D3D9/d3d9vertexdeclaration.cpp
Neb-Software/mEldritch
7d07a845b3f04242ddf1f0abbad606c830ac8f20
[ "Zlib" ]
21
2015-04-06T17:41:17.000Z
2021-06-15T00:26:18.000Z
#include "core.h" #include "3d.h" #include "D3D9/d3d9vertexdeclaration.h" #include "map.h" #include "mathcore.h" #include <d3d9.h> D3D9VertexDeclaration::D3D9VertexDeclaration( IDirect3DDevice9* pD3DDevice ) : m_D3DDevice( pD3DDevice ) , m_VertexDeclaration( NULL ) , m_VertexSignature( 0 ) {} D3D9Vertex...
37.391892
90
0.733647
inferno986return
c58206d9926748e1736b9d349a8bbfbc97ea87e7
597
hpp
C++
Code/include/OE/Platform/Direct3D/D3DMesh.hpp
mlomb/OrbitEngine
41f053626f05782e81c2e48f5c87b04972f9be2c
[ "Apache-2.0" ]
21
2018-06-26T16:37:36.000Z
2022-01-11T01:19:42.000Z
Code/include/OE/Platform/Direct3D/D3DMesh.hpp
mlomb/OrbitEngine
41f053626f05782e81c2e48f5c87b04972f9be2c
[ "Apache-2.0" ]
null
null
null
Code/include/OE/Platform/Direct3D/D3DMesh.hpp
mlomb/OrbitEngine
41f053626f05782e81c2e48f5c87b04972f9be2c
[ "Apache-2.0" ]
3
2019-10-01T14:10:50.000Z
2021-11-19T20:30:18.000Z
#ifndef GRAPHICS_D3DMESH_HPP #define GRAPHICS_D3DMESH_HPP #include "OE/Graphics/API/Mesh.hpp" #include "OE/Platform/Direct3D/Direct3D.hpp" namespace OrbitEngine { namespace Graphics { class D3DMesh : public Mesh { public: D3DMesh(void* vertices, unsigned int vertexSize, VertexLayout* layout, const std::vector<un...
27.136364
117
0.768844
mlomb
c583f6f94f0adfcb7081ef318f16ef789d5ea72c
2,052
cpp
C++
src/unit_tests/engine/ut_aabb.cpp
OndraVoves/LumixEngine
b7040d7a5b9dc1c6bc78e5e6d9b33b7f585c435f
[ "MIT" ]
1
2020-10-28T10:29:21.000Z
2020-10-28T10:29:21.000Z
src/unit_tests/engine/ut_aabb.cpp
OndraVoves/LumixEngine
b7040d7a5b9dc1c6bc78e5e6d9b33b7f585c435f
[ "MIT" ]
null
null
null
src/unit_tests/engine/ut_aabb.cpp
OndraVoves/LumixEngine
b7040d7a5b9dc1c6bc78e5e6d9b33b7f585c435f
[ "MIT" ]
null
null
null
#include "engine/geometry.h" #include "engine/matrix.h" #include "unit_tests/suite/lumix_unit_tests.h" using namespace Lumix; void UT_aabb(const char* params) { AABB aabb1; AABB aabb2(Vec3(0, 0, 0), Vec3(1, 1, 1)); LUMIX_EXPECT(aabb2.min.x == 0); LUMIX_EXPECT(aabb2.min.y == 0); LUMIX_EXPECT(aabb2.min.z == 0);...
25.65
52
0.662768
OndraVoves
c58833ce649533cf2706a330c27a8f2a95d859e5
3,929
cpp
C++
VSDataReduction/VSSimplePedData.cpp
sfegan/ChiLA
916bdd95348c2df2ecc736511d5f5b2bfb4a831e
[ "BSD-3-Clause" ]
1
2018-04-17T14:03:36.000Z
2018-04-17T14:03:36.000Z
VSDataReduction/VSSimplePedData.cpp
sfegan/ChiLA
916bdd95348c2df2ecc736511d5f5b2bfb4a831e
[ "BSD-3-Clause" ]
null
null
null
VSDataReduction/VSSimplePedData.cpp
sfegan/ChiLA
916bdd95348c2df2ecc736511d5f5b2bfb4a831e
[ "BSD-3-Clause" ]
null
null
null
//-*-mode:c++; mode:font-lock;-*- /*! \file VSSimplePedData.hpp Simple pedestal data \author Stephen Fegan \n UCLA \n sfegan@astro.ucla.edu \n \version 1.0 \date 05/18/2005 $Id: VSSimplePedData.cpp,v 3.1 2007/12/04 18:05:0...
26.910959
73
0.611861
sfegan
c58e60d33e3f09717504d19cc55fa2fc2271b104
487
cpp
C++
abc068/abc068_b.cpp
crazystylus/AtCoderPractice
8e0f56a9b3905e11f83f351af66af5bfed8606b2
[ "MIT" ]
null
null
null
abc068/abc068_b.cpp
crazystylus/AtCoderPractice
8e0f56a9b3905e11f83f351af66af5bfed8606b2
[ "MIT" ]
null
null
null
abc068/abc068_b.cpp
crazystylus/AtCoderPractice
8e0f56a9b3905e11f83f351af66af5bfed8606b2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define rep(i, n) for (int i = 0; i < n; i++) const int mod = 1e9 + 7; // 10^9 + 7; const int N = 1e5 + 1; /////////////////// // multiply 1 with 2 till it is <= n int n, op; void solve() { op = 1; cin >> n; //...
21.173913
45
0.478439
crazystylus
c5953e50037c06f0fd50b203f3a246e6bf433296
1,625
hpp
C++
src/utility/debug_log.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
src/utility/debug_log.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
src/utility/debug_log.hpp
mnewhouse/tselements
bd1c6724018e862156948a680bb1bc70dd28bef6
[ "MIT" ]
null
null
null
/* * TS Elements * Copyright 2015-2018 M. Newhouse * Released under the MIT license. */ #pragma once #include "logger.hpp" #include <cstdint> namespace ts { namespace debug { struct DebugTag {}; using logger::flush; using logger::endl; namespace level { static const std::uint32_t ess...
18.895349
59
0.634462
mnewhouse
c59e1d492e86efd34c133c287d1548ea3bf637db
1,119
cpp
C++
pomodoro/logic-config.cpp
ximenpo/easy-pomodoro
c0eed81e824dc7348816f059f68a51ba0ddb0810
[ "MIT" ]
null
null
null
pomodoro/logic-config.cpp
ximenpo/easy-pomodoro
c0eed81e824dc7348816f059f68a51ba0ddb0810
[ "MIT" ]
null
null
null
pomodoro/logic-config.cpp
ximenpo/easy-pomodoro
c0eed81e824dc7348816f059f68a51ba0ddb0810
[ "MIT" ]
null
null
null
#include <stddef.h> #include <stdint.h> #include <string.h> #include "logic-config.h" size_t storage_load(uint8_t* begin, uint8_t* end); void storage_save(uint8_t* begin, uint8_t* end); void logic_config::init() { const char DEFAULT_SSID[] = "pomodoro"; const char DEFAULT_PASSWORDD[] = "88888888...
27.292683
74
0.679178
ximenpo
c5a0f36daed9457c007f555f9a83f6f2d18384ba
1,257
cpp
C++
kvm_gadget/src/kvm_mouse.cpp
pspglb/kvm
2dc3c4cc331dedaf5245e5c8a24bcba02b6ded32
[ "BSD-3-Clause" ]
26
2020-12-03T11:13:42.000Z
2022-03-25T05:36:33.000Z
kvm_gadget/src/kvm_mouse.cpp
mtlynch/kvm
f0128edd493a758197a683cbb40dd409d16235e5
[ "BSD-3-Clause" ]
4
2021-01-28T19:32:17.000Z
2021-06-01T15:01:42.000Z
kvm_gadget/src/kvm_mouse.cpp
mtlynch/kvm
f0128edd493a758197a683cbb40dd409d16235e5
[ "BSD-3-Clause" ]
8
2020-12-04T01:30:21.000Z
2021-12-01T11:19:11.000Z
// Copyright 2020 Christopher A. Taylor #include "kvm_mouse.hpp" #include "kvm_serializer.hpp" #include "kvm_logger.hpp" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> namespace kvm { static logger::Channel Logger("Gadget"); //-------------------------------...
19.640625
80
0.584726
pspglb
c5a6671cf32c952770c4dccef896eacc5755a6c4
7,831
cc
C++
framework/window/linux/x_window.cc
ans-hub/gdm_framework
4218bb658d542df2c0568c4d3aac813cd1f18e1b
[ "MIT" ]
1
2020-12-30T23:50:01.000Z
2020-12-30T23:50:01.000Z
framework/window/linux/x_window.cc
ans-hub/gdm_framework
4218bb658d542df2c0568c4d3aac813cd1f18e1b
[ "MIT" ]
null
null
null
framework/window/linux/x_window.cc
ans-hub/gdm_framework
4218bb658d542df2c0568c4d3aac813cd1f18e1b
[ "MIT" ]
null
null
null
// ************************************************************* // File: x_window.cc // Author: Novoselov Anton @ 2018 // URL: https://github.com/ans-hub/gdm_framework // ************************************************************* #include "x_window.h" // --public gdm::XWindow::XWindow() : disp_{ XOpenD...
24.395639
93
0.653556
ans-hub