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
488734c888c59e686a0da790371c263afdcbcd0d
2,710
cpp
C++
src/configuration/expr/compute_ternary.cpp
Damdoshi/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
38
2016-07-30T09:35:19.000Z
2022-03-04T10:13:48.000Z
src/configuration/expr/compute_ternary.cpp
Elania-Marvers/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
15
2017-02-12T19:20:52.000Z
2021-06-09T09:30:52.000Z
src/configuration/expr/compute_ternary.cpp
Elania-Marvers/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
12
2016-10-06T09:06:59.000Z
2022-03-04T10:14:00.000Z
// Jason Brillante "Damdoshi" // Hanged Bunny Studio 2014-2018 // // Lapin library #include "lapin_private.h" bool expr_compute_ternary(Expression &exp, bool dry, SmallConf *root, SmallConf *local, SmallConf *artif, SmallConf *param) { if (exp.is_const) ...
26.31068
82
0.61107
Damdoshi
488a5f636b595d52badc25017d05d9afeee5bdc5
137
hpp
C++
baseclass/headers/testPattern.hpp
HxHexa/quang-advCG-raytracer
605f7dfcc9237f331d456646b7653ad0f26c0cc4
[ "MIT" ]
null
null
null
baseclass/headers/testPattern.hpp
HxHexa/quang-advCG-raytracer
605f7dfcc9237f331d456646b7653ad0f26c0cc4
[ "MIT" ]
null
null
null
baseclass/headers/testPattern.hpp
HxHexa/quang-advCG-raytracer
605f7dfcc9237f331d456646b7653ad0f26c0cc4
[ "MIT" ]
null
null
null
/**/ #include "pattern.hpp" class TestPattern : public Pattern { public: TestPattern(); Color patternAt(Tuple); };
13.7
36
0.59854
HxHexa
488eb4ea9eb47e3e7ad94b15d5a0b24006881669
438
cpp
C++
UVa/10370 - Above Average.cpp
geniustanley/problem-solving
2b83c5c8197fa8fe2277367027b392a2911d4a28
[ "Apache-2.0" ]
1
2018-11-21T07:36:16.000Z
2018-11-21T07:36:16.000Z
UVa/10370 - Above Average.cpp
geniustanley/problem-solving
2b83c5c8197fa8fe2277367027b392a2911d4a28
[ "Apache-2.0" ]
null
null
null
UVa/10370 - Above Average.cpp
geniustanley/problem-solving
2b83c5c8197fa8fe2277367027b392a2911d4a28
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> int main(void) { int T, n, sum, ans; int num[1005]; double average; scanf("%d", &T); while(T--) { scanf("%d", &n); sum = 0; ans = 0; for(int i = 0; i < n; i++) { scanf("%d", &num[i]); sum += num[i]; } average = (double)sum/n; for(int i = 0; i <...
14.129032
42
0.429224
geniustanley
4890b57d04bd8cde59c176d6584e2822b2f0ae7c
1,497
hpp
C++
lib/luwra/types/pushable.hpp
jonmortiboy/luwra
71264e49103f8633ee5225dab1f4567a7f3672a2
[ "BSD-3-Clause" ]
186
2015-06-20T00:38:04.000Z
2022-02-19T16:08:33.000Z
lib/luwra/types/pushable.hpp
jonmortiboy/luwra
71264e49103f8633ee5225dab1f4567a7f3672a2
[ "BSD-3-Clause" ]
17
2015-07-09T10:23:02.000Z
2022-01-19T17:34:44.000Z
lib/luwra/types/pushable.hpp
jonmortiboy/luwra
71264e49103f8633ee5225dab1f4567a7f3672a2
[ "BSD-3-Clause" ]
21
2015-07-05T12:59:48.000Z
2020-07-20T18:50:43.000Z
/* Luwra * Minimal-overhead Lua wrapper for C++ * * Copyright (C) 2016, Ole Krüger <ole@vprsm.de> */ #ifndef LUWRA_TYPES_PUSHABLE_H_ #define LUWRA_TYPES_PUSHABLE_H_ #include "../common.hpp" #include "../values.hpp" #include "../stack.hpp" #include <utility> #include <memory> LUWRA_NS_BEGIN namespace internal {...
19.697368
90
0.713427
jonmortiboy
48930bdb106b028921a0afe23bcd10f003b6993c
541
cpp
C++
src/glCompact/threadContextGroup_.cpp
PixelOfDeath/glCompact
68334cc9c3aa20255e8986ad1ee5fa8e23df354d
[ "MIT" ]
null
null
null
src/glCompact/threadContextGroup_.cpp
PixelOfDeath/glCompact
68334cc9c3aa20255e8986ad1ee5fa8e23df354d
[ "MIT" ]
null
null
null
src/glCompact/threadContextGroup_.cpp
PixelOfDeath/glCompact
68334cc9c3aa20255e8986ad1ee5fa8e23df354d
[ "MIT" ]
null
null
null
#include "glCompact/threadContextGroup_.hpp" namespace glCompact { #ifdef GLCOMPACT_MULTIPLE_CONTEXT_GROUP thread_local ContextGroup_* __restrict threadContextGroup_; #else static char contextGroupMem[sizeof(ContextGroup_)] alignas(ContextGroup_); ...
45.083333
125
0.64695
PixelOfDeath
4895b449b8a1ea8118e69b15504c731ddae33732
16,163
cpp
C++
src/types/quamodbusrtuserialclient.cpp
juangburgos/QUaModbusClient
e1ac862e723cfdf9e6127d395fb7c614829e2154
[ "MIT" ]
26
2019-08-19T18:18:51.000Z
2022-03-24T12:56:30.000Z
src/types/quamodbusrtuserialclient.cpp
ManfredHerrmann/QUaModbusClient
38a3ec715db0336d4c26398084bef22ab5ca5072
[ "MIT" ]
2
2019-08-25T03:45:59.000Z
2021-01-21T12:06:55.000Z
src/types/quamodbusrtuserialclient.cpp
ManfredHerrmann/QUaModbusClient
38a3ec715db0336d4c26398084bef22ab5ca5072
[ "MIT" ]
9
2019-09-10T14:31:40.000Z
2021-09-28T05:37:54.000Z
#include "quamodbusrtuserialclient.h" #include <QSerialPortInfo> #ifdef QUA_ACCESS_CONTROL #include <QUaPermissions> #endif // QUA_ACCESS_CONTROL QUaModbusRtuSerialClient::QUaModbusRtuSerialClient(QUaServer *server) : QUaModbusClient(server) { // set defaults type ()->setDataTypeEnum(QMetaEnum::fro...
35.838137
145
0.7313
juangburgos
489eea62bd2b9e266f41e6b0e4b9477aa9a1ad0a
6,023
cpp
C++
qt_project/MainWindow.cpp
hejiangda/DaDaXiuXiu
ed2aeba3517065ed552d17acd43c66863143a867
[ "MIT" ]
1
2020-03-18T02:34:32.000Z
2020-03-18T02:34:32.000Z
qt_project/MainWindow.cpp
hejiangda/DaDaXiuXiu
ed2aeba3517065ed552d17acd43c66863143a867
[ "MIT" ]
null
null
null
qt_project/MainWindow.cpp
hejiangda/DaDaXiuXiu
ed2aeba3517065ed552d17acd43c66863143a867
[ "MIT" ]
null
null
null
#include "MainWindow.h" #include "ui_MainWindow.h" #include <QFileInfo> #include <QDir> MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWindow), addFlg(0), t1ok(false), t2ok(false), t3ok(false) { ui->setupUi(this); connect(&MT1, SIGNAL(WhiteDisplay(QPixmap)), ...
27.377273
95
0.506724
hejiangda
48a271564b47fbb9c429f0585ab527e5c81a5a93
15,795
hpp
C++
include/kip/elements.hpp
kei10in/kip
23d83ffa4f40431ef8bd6983e928ae889bfc3872
[ "MIT" ]
null
null
null
include/kip/elements.hpp
kei10in/kip
23d83ffa4f40431ef8bd6983e928ae889bfc3872
[ "MIT" ]
null
null
null
include/kip/elements.hpp
kei10in/kip
23d83ffa4f40431ef8bd6983e928ae889bfc3872
[ "MIT" ]
null
null
null
#ifndef KIP_ELEMENTS_HPP_ #define KIP_ELEMENTS_HPP_ #include <string> #include <unordered_map> #include <vector> #include "kip/xml-ns.hpp" namespace kip { struct static_object { std::string const empty_string; xml::qname const empty_qname; static_object() {} }; static static_object const& statics() { sta...
22.090909
92
0.686103
kei10in
48a5561aa1275dd9a3126832a3e1371e13c8d865
247
hpp
C++
src/util.hpp
torque-project/rev
245561f9028d65c88029e4a4bc705f6a0a18da4c
[ "MIT" ]
1
2016-03-01T14:22:31.000Z
2016-03-01T14:22:31.000Z
src/util.hpp
torque-project/rev
245561f9028d65c88029e4a4bc705f6a0a18da4c
[ "MIT" ]
null
null
null
src/util.hpp
torque-project/rev
245561f9028d65c88029e4a4bc705f6a0a18da4c
[ "MIT" ]
null
null
null
#pragma once namespace rev { inline std::string replace(const std::string& s, char a, char b) { std::string out(s); int pos = 0; while ((pos = out.find(a)) != std::string::npos) { out[pos] = b; } return out; } }
14.529412
68
0.54251
torque-project
48a6b33d998c26470ff236c60ab2f19627b5f541
1,563
cpp
C++
src/c/rfc822/CMessageParser.cpp
readdle/mailcore2
cf95a1587cebd5b2257e6b6fa0e34149a4d70394
[ "BSD-3-Clause" ]
3
2019-07-16T13:19:50.000Z
2020-01-06T10:42:23.000Z
src/c/rfc822/CMessageParser.cpp
readdle/mailcore2
cf95a1587cebd5b2257e6b6fa0e34149a4d70394
[ "BSD-3-Clause" ]
15
2018-12-11T14:00:48.000Z
2021-12-21T17:42:42.000Z
src/c/rfc822/CMessageParser.cpp
readdle/mailcore2
cf95a1587cebd5b2257e6b6fa0e34149a4d70394
[ "BSD-3-Clause" ]
2
2015-05-26T18:07:22.000Z
2017-04-04T10:01:17.000Z
#include "CMessageParser.h" #include "CBase+Private.h" #include <MailCore/MCCore.h> #include <MailCore/MCDefines.h> #include <MailCore/MCAttachment.h> #include <MailCore/MCMessageHeader.h> #include <MailCore/MCHTMLRenderer.h> #include <MailCore/MCHTMLBodyRendererTemplateCallback.h> #include "CData.h" #include "CAbstr...
36.348837
143
0.849648
readdle
48a8472b0de1d1e4264a77a96151090f3bc491c7
193
cpp
C++
kattis/zoo/zoo.cpp
pi-guy-in-the-sky/competitive-programming
e079f6caf07b5de061ea4f56218f9b577e49a965
[ "MIT" ]
null
null
null
kattis/zoo/zoo.cpp
pi-guy-in-the-sky/competitive-programming
e079f6caf07b5de061ea4f56218f9b577e49a965
[ "MIT" ]
null
null
null
kattis/zoo/zoo.cpp
pi-guy-in-the-sky/competitive-programming
e079f6caf07b5de061ea4f56218f9b577e49a965
[ "MIT" ]
1
2020-10-25T05:46:57.000Z
2020-10-25T05:46:57.000Z
#include <iostream> #include <string> using namespace std; int main() { int n; string cin >> n; while (n > 0) { for (int i = 0; i < n; i++) cin >> n; } }
12.866667
35
0.455959
pi-guy-in-the-sky
48aa101eddb97f962211341a51bb8ad0a307b828
2,787
cpp
C++
test/net/test_address_manager.cpp
EPI-ONE/epic
c314cab526641c00d49e51e08ec0793f1a6c171b
[ "MIT" ]
24
2019-10-14T14:35:32.000Z
2021-11-28T02:06:26.000Z
test/net/test_address_manager.cpp
EPI-ONE/epic
c314cab526641c00d49e51e08ec0793f1a6c171b
[ "MIT" ]
3
2019-10-14T14:29:07.000Z
2020-01-21T14:48:49.000Z
test/net/test_address_manager.cpp
EPI-ONE/epic
c314cab526641c00d49e51e08ec0793f1a6c171b
[ "MIT" ]
4
2020-04-09T09:12:50.000Z
2021-06-15T13:41:42.000Z
// Copyright (c) 2019 EPI-ONE Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <gtest/gtest.h> #include "address_manager.h" class TestAddressManager : public testing::Test { public: AddressManager a...
31.314607
70
0.717976
EPI-ONE
48abc277e66474d520ca9e1938c3ea96b918c2eb
1,484
cpp
C++
cpp/segment_trees/segtree2d_min.cpp
petuhovskiy/Templates-CP
7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e
[ "MIT" ]
8
2016-06-05T19:19:27.000Z
2019-05-14T10:33:37.000Z
cpp/segment_trees/segtree2d_min.cpp
petuhovskiy/Templates-CP
7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e
[ "MIT" ]
2
2017-02-21T12:38:27.000Z
2018-01-28T20:05:00.000Z
cpp/segment_trees/segtree2d_min.cpp
petuhovskiy/Templates-CP
7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e
[ "MIT" ]
6
2015-12-26T21:12:17.000Z
2022-03-26T21:40:17.000Z
class segtree{ public: int n; // array size vector<int> t; void build(vector<int> &v) { // build the tree for (int i = n; i < 2 * n; i++) t[i] = v[i - n]; for (int i = n - 1; i > 0; --i) t[i] = min(t[i<<1], t[i<<1|1]); } void build(segtree &t1, segtree &t2) { // build the tree ...
26.035088
71
0.402291
petuhovskiy
48ac16a9362fecb2a66229ae8ae4449c8816d748
1,002
cpp
C++
Benchmarks/UnorderedMap/UMapAllocBench.cpp
adamhutchings/HackySTL
624a0cdc92b297f52588190d3a693d6923b7a4e7
[ "MIT" ]
33
2020-11-20T14:58:25.000Z
2022-03-04T10:04:08.000Z
Benchmarks/UnorderedMap/UMapAllocBench.cpp
adamhutchings/HackySTL
624a0cdc92b297f52588190d3a693d6923b7a4e7
[ "MIT" ]
8
2021-01-05T23:18:32.000Z
2022-02-22T18:25:37.000Z
Benchmarks/UnorderedMap/UMapAllocBench.cpp
HackyTeam/HackySTL
2496c7e110a218d09c73005b5a39d15b380ce354
[ "MIT" ]
6
2021-01-05T22:02:57.000Z
2022-02-22T18:34:22.000Z
#include <benchmark/benchmark.h> #include "../../cpp/UnorderedMap.hpp" static void MapBufAlloc(benchmark::State& state) { hsd::uchar buf[4096]{}; for(auto _ : state) { hsd::buffered_allocator<hsd::uchar> alloc{buf, 4096}; hsd::unordered_map<size_t, size_t, hsd::hash<size_t, size_t>, hsd::b...
24.439024
106
0.5998
adamhutchings
48b1be830bec6aabb243a2c8faf705c2ee737be9
3,784
cpp
C++
src/reconstruct/weno5.cpp
luminoctum/athena-crm
525ad5d1c442f9f6d66f2307eed88cd6fb723810
[ "BSD-3-Clause" ]
null
null
null
src/reconstruct/weno5.cpp
luminoctum/athena-crm
525ad5d1c442f9f6d66f2307eed88cd6fb723810
[ "BSD-3-Clause" ]
null
null
null
src/reconstruct/weno5.cpp
luminoctum/athena-crm
525ad5d1c442f9f6d66f2307eed88cd6fb723810
[ "BSD-3-Clause" ]
null
null
null
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //===============================...
37.098039
102
0.512421
luminoctum
48b5fbbb2924f7f6f143de57bc188593f3db3097
432
cpp
C++
linear-list/array/climbing_stairs.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
1
2015-07-15T07:31:42.000Z
2015-07-15T07:31:42.000Z
linear-list/array/climbing_stairs.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
null
null
null
linear-list/array/climbing_stairs.cpp
zhangxin23/leetcode
4c8fc60e59448045a3e880caaedd0486164e68e7
[ "MIT" ]
null
null
null
/** *You are climbing a stair case. It takes n steps to reach to the top. *Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? * */ class Solution { public: int climbStairs(int n) { int prev = 0; int cur = 1; for(int i = 1; i <= n; i++) { ...
22.736842
98
0.513889
zhangxin23
48b7d4bd1fafc82dd2fd9a8c0364ea416fb66cda
164
cpp
C++
atcoder/abc86_a.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
3
2018-01-08T02:52:51.000Z
2021-03-03T01:08:44.000Z
atcoder/abc86_a.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
null
null
null
atcoder/abc86_a.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
1
2020-08-13T18:07:35.000Z
2020-08-13T18:07:35.000Z
#include <bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; printf("%s\n", (a % 2 != 0 && b % 2 != 0) ? "Odd" : "Even"); return 0; }
18.222222
62
0.47561
cosmicray001
48bfd7aa35f34e02e3032c71d380f1497af2dfc3
744
cpp
C++
src/lib/word_loader.cpp
michielgoethals/word-blaster-solution
58720caeeda16356b32ade501add2e018a3b755d
[ "MIT" ]
null
null
null
src/lib/word_loader.cpp
michielgoethals/word-blaster-solution
58720caeeda16356b32ade501add2e018a3b755d
[ "MIT" ]
null
null
null
src/lib/word_loader.cpp
michielgoethals/word-blaster-solution
58720caeeda16356b32ade501add2e018a3b755d
[ "MIT" ]
3
2020-06-03T10:01:22.000Z
2020-10-02T11:26:18.000Z
#include "word_loader.h" #include <fstream> #include <iostream> namespace WordBlasterTheGame { void WordLoader::load(WordList * words, std::string filename) { // Load from file - see https://oop-cpp.netlify.app/09-file-streams/#reading-from-a-file // File stream object std::ifstream file; file.open...
24
92
0.620968
michielgoethals
48c1139d6b2aef6f5c0145f943bc1d3c135b6c10
2,751
cpp
C++
lib/primesieve/src/PreSieve.cpp
KrishnaPrasath/primecount
16e6f70643c45aaac8a96aa127f21b1ed1a51063
[ "BSD-2-Clause" ]
1
2019-11-10T18:45:48.000Z
2019-11-10T18:45:48.000Z
lib/primesieve/src/PreSieve.cpp
KrishnaPrasath/primecount
16e6f70643c45aaac8a96aa127f21b1ed1a51063
[ "BSD-2-Clause" ]
null
null
null
lib/primesieve/src/PreSieve.cpp
KrishnaPrasath/primecount
16e6f70643c45aaac8a96aa127f21b1ed1a51063
[ "BSD-2-Clause" ]
null
null
null
/// /// @file PreSieve.cpp /// @brief Pre-sieve multiples of small primes to speed up /// the sieve of Eratosthenes. /// /// Copyright (C) 2018 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <prim...
25.95283
79
0.671029
KrishnaPrasath
48c3ff7071457459aaa9ff43e137fcb2f82e27f3
517
hpp
C++
include/sigma/graphics/cubemap.hpp
siegelaaron94/engine
e09985b37de8d3d671878b9e0385e8d73cd0f441
[ "MIT" ]
3
2017-03-30T03:08:48.000Z
2018-07-27T17:48:41.000Z
include/sigma/graphics/cubemap.hpp
siegelaaron94/engine
e09985b37de8d3d671878b9e0385e8d73cd0f441
[ "MIT" ]
34
2016-12-28T18:04:22.000Z
2017-06-01T07:32:48.000Z
include/sigma/graphics/cubemap.hpp
siegelaaron94/engine
e09985b37de8d3d671878b9e0385e8d73cd0f441
[ "MIT" ]
1
2017-05-13T05:45:01.000Z
2017-05-13T05:45:01.000Z
#ifndef SIGMA_GRAPHICS_CUBEMAP_HPP #define SIGMA_GRAPHICS_CUBEMAP_HPP #include <sigma/config.hpp> #include <sigma/graphics/texture.hpp> #include <array> namespace sigma { namespace graphics { struct cubemap { enum class face : unsigned int { POSITIVE_X, NEGATIVE_X, PO...
18.464286
54
0.618956
siegelaaron94
48c67e2ad26fdc3c2748e7b63e2b0b6d4dc41aa2
3,287
cpp
C++
src/HumdrumFileContent-timesig.cpp
johnnymac647/humlib
c67954045fb5570915d6a1c75d9a1e36cc9bdf93
[ "BSD-2-Clause" ]
19
2016-06-18T02:03:56.000Z
2022-02-23T17:26:32.000Z
src/HumdrumFileContent-timesig.cpp
johnnymac647/humlib
c67954045fb5570915d6a1c75d9a1e36cc9bdf93
[ "BSD-2-Clause" ]
43
2017-03-09T07:32:12.000Z
2022-03-23T20:18:35.000Z
src/HumdrumFileContent-timesig.cpp
johnnymac647/humlib
c67954045fb5570915d6a1c75d9a1e36cc9bdf93
[ "BSD-2-Clause" ]
5
2019-11-14T22:24:02.000Z
2021-09-07T18:27:21.000Z
// // Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu> // Creation Date: Wed Nov 30 22:27:57 PST 2016 // Last Modified: Wed Nov 30 22:28:03 PST 2016 // Filename: HumdrumFileContent-timesig.cpp // URL: https://github.com/craigsapp/humlib/blob/master/src/HumdrumFileContent-timesig.cpp // Syntax:...
26.087302
100
0.628841
johnnymac647
48c8cc9758779b2a17818786c04154910b6436d0
204
cpp
C++
CodeForces/StonesontheTable.cpp
mysterio0801/CP
68983c423a42f98d6e9bf5375bc3f936e980d631
[ "MIT" ]
null
null
null
CodeForces/StonesontheTable.cpp
mysterio0801/CP
68983c423a42f98d6e9bf5375bc3f936e980d631
[ "MIT" ]
null
null
null
CodeForces/StonesontheTable.cpp
mysterio0801/CP
68983c423a42f98d6e9bf5375bc3f936e980d631
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; string str; cin>>str; int count = 0; for(int i = 1; i < n; i++){ if(str[i] == str[i-1]){ count++; } } cout<<count; }
12.75
28
0.529412
mysterio0801
48c9d6686ef4c99b92b07ded20964e49ad020417
2,372
cpp
C++
src/maze.cpp
carolinafsilva/Pacman
e7c5c1c448d4888bdf1c6e72e9a542bdebe65720
[ "MIT" ]
null
null
null
src/maze.cpp
carolinafsilva/Pacman
e7c5c1c448d4888bdf1c6e72e9a542bdebe65720
[ "MIT" ]
null
null
null
src/maze.cpp
carolinafsilva/Pacman
e7c5c1c448d4888bdf1c6e72e9a542bdebe65720
[ "MIT" ]
null
null
null
#include "maze.hpp" glm::vec2 Maze::getCenter(glm::vec3 position) { return glm::vec2(position.x + position.z / 2, position.y + position.z / 2); } int Maze::getDotsRemaining() { return this->dotsRemaining; } void Maze::decrementDotsRemaining() { this->dotsRemaining -= 1; } glm::ivec2 Maze::pixelToBlock(glm::vec2 ce...
23.485149
80
0.580523
carolinafsilva
48d8f8775f3a096dcde034aee4c13a4a099db4cd
115
cpp
C++
source/qt_Kviewer/s4KlogicItem.cpp
chinsaiki/s4-gui
c8a11aad28150da71127b89370bea9b7e2530fee
[ "MIT" ]
null
null
null
source/qt_Kviewer/s4KlogicItem.cpp
chinsaiki/s4-gui
c8a11aad28150da71127b89370bea9b7e2530fee
[ "MIT" ]
null
null
null
source/qt_Kviewer/s4KlogicItem.cpp
chinsaiki/s4-gui
c8a11aad28150da71127b89370bea9b7e2530fee
[ "MIT" ]
null
null
null
#include "qt_Kviewer/s4KlogicItem.h" #include "qt_Kviewer/s4Kinstrument_scene.h" namespace S4{ namespace QT{ } }
12.777778
43
0.773913
chinsaiki
48d9dfad5c420c628d213b122d110468a011f4dc
5,937
cpp
C++
test/psim/core/state_field_test.cpp
kylekrol/psim
a4817117189f0f5597452076e6e138f70f51d4e8
[ "MIT" ]
5
2020-04-11T06:53:46.000Z
2022-01-05T05:39:11.000Z
test/psim/core/state_field_test.cpp
kylekrol/psim
a4817117189f0f5597452076e6e138f70f51d4e8
[ "MIT" ]
201
2019-09-05T03:46:21.000Z
2022-01-08T04:44:16.000Z
test/psim/core/state_field_test.cpp
kylekrol/psim
a4817117189f0f5597452076e6e138f70f51d4e8
[ "MIT" ]
10
2019-10-12T17:24:34.000Z
2022-02-25T01:20:14.000Z
/** @file test/psim/core/state_field_test.cpp * @author Kyle Krol */ #include <gtest/gtest.h> #include <psim/core/state_field.hpp> #include <psim/core/state_field_lazy.hpp> #include <psim/core/state_field_valued.hpp> #include <psim/core/types.hpp> #include <stdexcept> TEST(StateField, TestCast) { psim::StateFi...
27.359447
80
0.644096
kylekrol
48ddb84cca2894ad7aecd0a9483cae2a49f8e7c8
422
cpp
C++
999_Practice_Set_2/Day_004/041_decimal_to_binary.cpp
Gandham-Srinithya/Data-Structure-and-Algorithms
177d03105188c83a157947ca9870bf8037e92528
[ "MIT" ]
126
2019-12-22T17:49:08.000Z
2021-12-14T18:45:51.000Z
999_Practice_Set_2/Day_004/041_decimal_to_binary.cpp
Gandham-Srinithya/Data-Structure-and-Algorithms
177d03105188c83a157947ca9870bf8037e92528
[ "MIT" ]
7
2019-12-25T18:03:41.000Z
2021-02-20T06:25:27.000Z
999_Practice_Set_2/Day_004/041_decimal_to_binary.cpp
Gandham-Srinithya/Data-Structure-and-Algorithms
177d03105188c83a157947ca9870bf8037e92528
[ "MIT" ]
54
2019-12-26T06:28:39.000Z
2022-02-01T05:04:43.000Z
#include <iostream> using namespace std; int decimalToBinary(int decimal) { int x = 1; int binary=0; while(x <= decimal) { x*=2; } x/=2; while(x>0) { int last = decimal/x; decimal-=last*x; x/=2; binary*=10; binary+=last; } retur...
12.057143
35
0.483412
Gandham-Srinithya
48e402a279e54f54ab56e5d057de0f3300f6cece
9,435
cpp
C++
src/project/SEProjectProj.cpp
ysbing/voo
329d6a72ede6dd5903ca4d824bb3c49a5502f5c3
[ "Apache-2.0" ]
56
2022-01-29T04:52:27.000Z
2022-03-31T06:52:15.000Z
src/project/SEProjectProj.cpp
jumpingfrog0/VOO
af191ece986f997cf98f85016aa7288c323210c3
[ "Apache-2.0" ]
null
null
null
src/project/SEProjectProj.cpp
jumpingfrog0/VOO
af191ece986f997cf98f85016aa7288c323210c3
[ "Apache-2.0" ]
16
2022-01-29T04:52:39.000Z
2022-03-31T07:48:53.000Z
#include "SEProjectProj.h" #include <QDebug> #include <QDir> #include <QFile> #include <QFileInfo> #include <QJsonDocument> #include <QJsonObject> #include <QTextStream> #include <QTimer> #include <QUrl> #include <QUuid> #include <QtGlobal> #include "SEProject.h" #include "base/http/SEHttpClient.h" #include "base/ut...
30.047771
108
0.630207
ysbing
48e7e68b78f7409dcf2aa8a0d06ed1180f1852ab
3,575
cc
C++
inet/src/inet/networklayer/common/L3Tools.cc
ntanetani/quisp
003f85746266d2eb62c66883e5b965b654672c70
[ "BSD-3-Clause" ]
null
null
null
inet/src/inet/networklayer/common/L3Tools.cc
ntanetani/quisp
003f85746266d2eb62c66883e5b965b654672c70
[ "BSD-3-Clause" ]
null
null
null
inet/src/inet/networklayer/common/L3Tools.cc
ntanetani/quisp
003f85746266d2eb62c66883e5b965b654672c70
[ "BSD-3-Clause" ]
1
2021-07-02T13:32:40.000Z
2021-07-02T13:32:40.000Z
// // Copyright (C) 2017 OpenSim Ltd. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser 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 i...
33.101852
141
0.75049
ntanetani
48ea917edb1ea6085842e06dcf134ff0055369a5
3,951
cpp
C++
src/Audio.cpp
noloitering/NoSFX
0ed636db4c403c7cb8a6ffb1714db2b46d105329
[ "Zlib" ]
null
null
null
src/Audio.cpp
noloitering/NoSFX
0ed636db4c403c7cb8a6ffb1714db2b46d105329
[ "Zlib" ]
null
null
null
src/Audio.cpp
noloitering/NoSFX
0ed636db4c403c7cb8a6ffb1714db2b46d105329
[ "Zlib" ]
null
null
null
#include "Audio.h" using namespace NoSFX; AudioManager::AudioManager(std::shared_ptr< Music > music, float vol, float pitch, bool play) { InitAudioDevice(); if ( vol >= 1 ) { volume.master = 1; } else if ( vol > 0 ) { volume.master = vol; } else { volume.master = 0; } SetMasterVolume(volume.master); ...
16.060976
108
0.660086
noloitering
48f0b52da3268d26c99b9e6a2e3b98518b135c5e
428
cpp
C++
DearPyGui/src/core/PythonUtilities/mvPythonExceptions.cpp
iqxd/DearPyGui
ad6209cb9b7e2a6466a49ce71a438d1d349f0374
[ "MIT" ]
null
null
null
DearPyGui/src/core/PythonUtilities/mvPythonExceptions.cpp
iqxd/DearPyGui
ad6209cb9b7e2a6466a49ce71a438d1d349f0374
[ "MIT" ]
null
null
null
DearPyGui/src/core/PythonUtilities/mvPythonExceptions.cpp
iqxd/DearPyGui
ad6209cb9b7e2a6466a49ce71a438d1d349f0374
[ "MIT" ]
null
null
null
#define PY_SSIZE_T_CLEAN #include <Python.h> #include <frameobject.h> #include <string> #include "mvPythonTranslator.h" #include "mvGlobalIntepreterLock.h" namespace Marvel { void ThrowPythonException(const std::string& message) { std::string fullMessage = "Line: %d \t" + message; int line = PyFrame_GetLineNu...
19.454545
59
0.742991
iqxd
f70b496324744403c23597e19012e584c08a599b
667
cpp
C++
parser/src/Simp.cpp
AnZhuoKaiFaZhe/ctl2snf
935574f871e05068c9931d2444cfd50759fae0bc
[ "MIT" ]
null
null
null
parser/src/Simp.cpp
AnZhuoKaiFaZhe/ctl2snf
935574f871e05068c9931d2444cfd50759fae0bc
[ "MIT" ]
null
null
null
parser/src/Simp.cpp
AnZhuoKaiFaZhe/ctl2snf
935574f871e05068c9931d2444cfd50759fae0bc
[ "MIT" ]
null
null
null
// // Created by mzy on 2021-06-03. // #include "Simp.hpp" Tree<ASTNode>* simp(Tree<ASTNode>* n,Tree<ASTNode>* l,Tree<ASTNode>* r){ switch (n->root.type) { case NodeType_t::LogicAnd: if(l->root.type==NodeType_t::True || r->root.type==NodeType_t::False)return r; if(l->root.t...
33.35
91
0.574213
AnZhuoKaiFaZhe
f70f523674c5a3c39d45f96b8253a261d75537c6
1,891
cpp
C++
Engine/WindowInspector.cpp
elliotjb/CulverinEngine-Project3
cc386713dd786e2a52cc9b219a0d701a9398f202
[ "MIT" ]
2
2018-01-20T18:17:22.000Z
2018-01-20T18:17:28.000Z
Engine/WindowInspector.cpp
TempName0/TempMotor3D_P3
cc386713dd786e2a52cc9b219a0d701a9398f202
[ "MIT" ]
null
null
null
Engine/WindowInspector.cpp
TempName0/TempMotor3D_P3
cc386713dd786e2a52cc9b219a0d701a9398f202
[ "MIT" ]
1
2018-06-16T16:12:11.000Z
2018-06-16T16:12:11.000Z
#include "Application.h" #include "WindowInspector.h" #include "ModuleWindow.h" #include "GameObject.h" #include "Component.h" Inspector::Inspector() : WindowManager() { active.push_back(Active()); name = "Inspector"; } Inspector::~Inspector() { active.clear(); selected_object = nullptr; } bool Inspector::Start(...
17.190909
69
0.707562
elliotjb
f71847bfbead41a06b5b9259c735f6bbc0405553
575
cpp
C++
Codeforces/1038A - Equality.cpp
naimulcsx/online-judge-solutions
0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f
[ "MIT" ]
null
null
null
Codeforces/1038A - Equality.cpp
naimulcsx/online-judge-solutions
0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f
[ "MIT" ]
null
null
null
Codeforces/1038A - Equality.cpp
naimulcsx/online-judge-solutions
0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); #ifndef ONLINE_JUDGE freopen("files/input.txt", "r", stdin); freopen("files/output.txt", "w", stdout); #endif int n, k; cin >> n >> k; string s; cin >> s; map<char, int> freq; for (int...
21.296296
73
0.518261
naimulcsx
f71c1bb2d46372b72552be3a8b8d3cfb43d3a2bc
11,580
cpp
C++
src/model/test/Blind_GTest.cpp
muehleisen/OpenStudio
3bfe89f6c441d1e61e50b8e94e92e7218b4555a0
[ "blessing" ]
354
2015-01-10T17:46:11.000Z
2022-03-29T10:00:00.000Z
src/model/test/Blind_GTest.cpp
muehleisen/OpenStudio
3bfe89f6c441d1e61e50b8e94e92e7218b4555a0
[ "blessing" ]
3,243
2015-01-02T04:54:45.000Z
2022-03-31T17:22:22.000Z
src/model/test/Blind_GTest.cpp
jmarrec/OpenStudio
5276feff0d8dbd6c8ef4e87eed626bc270a19b14
[ "blessing" ]
157
2015-01-07T15:59:55.000Z
2022-03-30T07:46:09.000Z
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
45.411765
125
0.75924
muehleisen
f72726336c53431cac227d0e2884a824c6cddd5f
344
cpp
C++
libraries/glua/glua_api_types.cpp
tiaotiao00/HSR00qianbao
a88afebeb98e786389f369447bcf9c3a2a352cfa
[ "MIT" ]
66
2017-09-29T07:09:59.000Z
2020-01-12T06:45:08.000Z
libraries/glua/glua_api_types.cpp
tiaotiao00/HSR00qianbao
a88afebeb98e786389f369447bcf9c3a2a352cfa
[ "MIT" ]
5
2017-12-13T13:12:05.000Z
2018-01-18T10:34:02.000Z
libraries/glua/glua_api_types.cpp
tiaotiao00/HSR00qianbao
a88afebeb98e786389f369447bcf9c3a2a352cfa
[ "MIT" ]
11
2017-12-05T07:02:05.000Z
2018-01-28T02:52:50.000Z
#include <glua/glua_api_types.h> #include <glua/hsrcore_lua_api.h> GluaModuleByteStream::GluaModuleByteStream() { is_bytes = false; contract_level = CONTRACT_LEVEL_TEMP; contract_state = CONTRACT_STATE_VALID; } GluaModuleByteStream::~GluaModuleByteStream() { contract_apis.clear(); offline_apis.clear(); contract...
20.235294
45
0.793605
tiaotiao00
f729b82eed46a2762653e8db87479c1ff28d01fe
30,395
cpp
C++
src/MuiTextArea.cpp
kritzikratzi/ofxMightyUI
63eaa7fcc8739e019f27500f68c4129a18be5434
[ "MIT" ]
52
2015-02-19T21:22:19.000Z
2022-01-24T07:59:07.000Z
src/MuiTextArea.cpp
kritzikratzi/ofxMightyUI
63eaa7fcc8739e019f27500f68c4129a18be5434
[ "MIT" ]
5
2016-05-22T16:39:57.000Z
2020-09-19T20:29:20.000Z
src/MuiTextArea.cpp
kritzikratzi/ofxMightyUI
63eaa7fcc8739e019f27500f68c4129a18be5434
[ "MIT" ]
14
2015-05-19T10:04:52.000Z
2021-05-12T09:07:22.000Z
/* * TextArea.cpp * * Text TextArea * - Supports vertical and horizontal alignments * - Call commit() after changing text, fontSize, fontName or any of the other variables (except bounds!). * - fg variable affects text color (no commit needed) * - Only support multiline */ #include "MuiTextArea.h" #inclu...
30.857868
190
0.676921
kritzikratzi
f72fbfb118491d9658517a41feba8e1f12c5e7f8
529
cpp
C++
baekjoon/2156.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
1
2019-07-15T00:27:37.000Z
2019-07-15T00:27:37.000Z
baekjoon/2156.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
null
null
null
baekjoon/2156.cpp
3-24/Competitive-Programming
8cb3b85bf89db2c173cb0b136de27f2983f335fc
[ "MIT" ]
null
null
null
#include <stdio.h> #include <iostream> #include <algorithm> using namespace std; int main(){ int n; scanf("%d",&n); int arr[n+1],D[n+1],i; for (i=0;i<n;i++){ scanf("%d",&arr[i]); } for (i=0;i<n;i++){ if (i==0){D[i] = arr[0];} else if (i==1){D[i] = arr[0]+arr[1];} ...
22.041667
73
0.425331
3-24
f730000977e3f3c5d38f1cc8f45305e50d49f622
10,155
cpp
C++
osrMain/DX11RenderMain.cpp
OSRTeam/OpenSoundRefenation
3118ea723a2ba94af33ab34bc65eafbd52f7169a
[ "Apache-2.0", "MIT" ]
9
2019-01-17T13:11:06.000Z
2022-02-22T10:38:16.000Z
osrMain/DX11RenderMain.cpp
OSRTeam/OpenSoundRefenation
3118ea723a2ba94af33ab34bc65eafbd52f7169a
[ "Apache-2.0", "MIT" ]
null
null
null
osrMain/DX11RenderMain.cpp
OSRTeam/OpenSoundRefenation
3118ea723a2ba94af33ab34bc65eafbd52f7169a
[ "Apache-2.0", "MIT" ]
3
2019-08-09T16:01:37.000Z
2020-08-08T09:58:02.000Z
/********************************************************* * Copyright (C) VERTVER, 2018. All rights reserved. * OpenSoundRefenation - WINAPI open-source DAW * MIT-License ********************************************************** * Module Name: OSR User Interface *******************************************************...
31.055046
144
0.742885
OSRTeam
f730c11c7760a16388ec888a459f61c0e1f8fb1f
4,565
cpp
C++
markcore/ut/use_markcore.cpp
unihykes/monk
d5ad969fea75912d4aad913adf945f78ec4df60e
[ "Apache-2.0" ]
2
2018-03-27T02:46:03.000Z
2018-05-24T02:49:17.000Z
markcore/ut/use_markcore.cpp
six-th/monk
d5ad969fea75912d4aad913adf945f78ec4df60e
[ "Apache-2.0" ]
null
null
null
markcore/ut/use_markcore.cpp
six-th/monk
d5ad969fea75912d4aad913adf945f78ec4df60e
[ "Apache-2.0" ]
null
null
null
/*************************************************************************************************** LICENSE: 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...
24.153439
146
0.62322
unihykes
f73c165749ddd353556967b987f6ac880665b7e8
2,887
cpp
C++
libStat3rd/Statistical/RegressionFactory.cpp
EnjoMitch/EnjoLib
321167146657cba1497a9d3b4ffd71430f9b24b3
[ "BSD-3-Clause" ]
3
2021-06-14T15:36:46.000Z
2022-02-28T15:16:08.000Z
libStat3rd/Statistical/RegressionFactory.cpp
EnjoMitch/EnjoLib
321167146657cba1497a9d3b4ffd71430f9b24b3
[ "BSD-3-Clause" ]
1
2021-07-17T07:52:15.000Z
2021-07-17T07:52:15.000Z
libStat3rd/Statistical/RegressionFactory.cpp
EnjoMitch/EnjoLib
321167146657cba1497a9d3b4ffd71430f9b24b3
[ "BSD-3-Clause" ]
3
2021-07-12T14:52:38.000Z
2021-11-28T17:10:33.000Z
#include "RegressionFactory.hpp" using namespace EnjoLib; RegressionFactory::RegressionFactory() { //ctor } RegressionFactory::~RegressionFactory() { //dtor } /* #include "RegressionRegression3.hpp" #include "RegressionMKL.hpp" #include "RegressionNumpy.hpp" #include "RegressionNewmat10.hpp" */ /* Corrade::C...
31.725275
125
0.764808
EnjoMitch
f73e335112f0fe4fc726fb6f647602c6cc30e053
2,671
cpp
C++
MidiNote.cpp
christofmuc/juce-utils
e5d7e0b4ac6f3c0d43d3f3cff779f5f8e72275e4
[ "MIT" ]
10
2020-02-28T21:00:25.000Z
2021-11-18T03:24:57.000Z
MidiNote.cpp
christofmuc/juce-utils
e5d7e0b4ac6f3c0d43d3f3cff779f5f8e72275e4
[ "MIT" ]
null
null
null
MidiNote.cpp
christofmuc/juce-utils
e5d7e0b4ac6f3c0d43d3f3cff779f5f8e72275e4
[ "MIT" ]
null
null
null
/* * MIT License * * Copyright (c) 2019-2021 Christof Ruch * * 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, cop...
30.701149
121
0.70161
christofmuc
f7451eb7c142df31100dcc499730a8cf2a995ae5
6,424
hpp
C++
src/math/Quaternion.hpp
jmitchell24/cpp-utility-lib
76e7bae9f07b741c409a282604a999ab86fc0702
[ "Apache-2.0" ]
null
null
null
src/math/Quaternion.hpp
jmitchell24/cpp-utility-lib
76e7bae9f07b741c409a282604a999ab86fc0702
[ "Apache-2.0" ]
null
null
null
src/math/Quaternion.hpp
jmitchell24/cpp-utility-lib
76e7bae9f07b741c409a282604a999ab86fc0702
[ "Apache-2.0" ]
null
null
null
// Copyright 2013, James Mitchell, All rights reserved. #pragma once #include "../Types.hpp" #include "../string/Types.hpp" #include "../string/Segment.hpp" #include "../typetraits/CallTraits.hpp" #include "Matrix4x4.hpp" #include "Vector4D.hpp" namespace util { template <typename N> struct QuatN { ...
29.603687
119
0.475716
jmitchell24
f74657909e9fe922540ca914440d658265313dca
12,286
cpp
C++
src/ADBDriverDLL/src/DriverNetSyncInternal.cpp
ClnViewer/ADB-Android-Viewer
c619fe626ab390b656893974700a0b6379159c03
[ "MIT" ]
9
2019-05-20T12:06:36.000Z
2022-03-24T19:11:06.000Z
src/ADBDriverDLL/src/DriverNetSyncInternal.cpp
ClnViewer/ADB-Android-Viewer
c619fe626ab390b656893974700a0b6379159c03
[ "MIT" ]
null
null
null
src/ADBDriverDLL/src/DriverNetSyncInternal.cpp
ClnViewer/ADB-Android-Viewer
c619fe626ab390b656893974700a0b6379159c03
[ "MIT" ]
3
2020-07-06T04:51:33.000Z
2021-07-26T20:08:02.000Z
/* MIT License Android remote Viewer, GUI ADB tools Android Viewer developed to view and control your android device from a PC. ADB exchange Android Viewer, support scale view, input tap from mouse, input swipe from keyboard, save/copy screenshot, etc.. Copyright (c) 2016-2019 PS GitHub: ...
34.222841
121
0.479652
ClnViewer
f7469e5417a8f33a50284c86f9afc5f6645c102e
828
cpp
C++
dynamic_programming/lis.cpp
fredbr/algorithm-implementations
19da93dc4632cbba91f6014e821f9b08b4e00248
[ "CC0-1.0" ]
13
2018-08-23T22:11:23.000Z
2021-06-10T04:15:09.000Z
dynamic_programming/lis.cpp
fredbr/algorithm-implementations
19da93dc4632cbba91f6014e821f9b08b4e00248
[ "CC0-1.0" ]
null
null
null
dynamic_programming/lis.cpp
fredbr/algorithm-implementations
19da93dc4632cbba91f6014e821f9b08b4e00248
[ "CC0-1.0" ]
3
2019-09-06T17:44:38.000Z
2019-09-10T12:41:35.000Z
#include <bits/stdc++.h> using namespace std; template <int sz> struct Bit { int b[sz]; void upd(int x, int val) { for (int i = x; i < sz; i += i&-i) b[i] = max(b[i], val); } int get(int x) { int ans = 0; for (int i = x; i; i -= i&-i) ans = max(ans, b[i]); return ans; } }; template <typename T...
13.57377
64
0.487923
fredbr
f749e3d3d41dd78a9d9ab0ab2eab30651c9d0bee
4,522
cpp
C++
Core/JPetParamAndDataFactory/JPetParamAndDataFactory.cpp
Alvarness/j-pet-framework
899ab32bf9a7f4daecaf8ed2dd7c8bc8922e73bd
[ "Apache-2.0" ]
null
null
null
Core/JPetParamAndDataFactory/JPetParamAndDataFactory.cpp
Alvarness/j-pet-framework
899ab32bf9a7f4daecaf8ed2dd7c8bc8922e73bd
[ "Apache-2.0" ]
null
null
null
Core/JPetParamAndDataFactory/JPetParamAndDataFactory.cpp
Alvarness/j-pet-framework
899ab32bf9a7f4daecaf8ed2dd7c8bc8922e73bd
[ "Apache-2.0" ]
null
null
null
/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable la...
35.606299
216
0.776648
Alvarness
f74ea99d4c989d55cac6a245af0ad5e75f2ecb0d
3,451
cpp
C++
day3/src/p2.cpp
aeden/aoc2021
ca0e796169d5ca86f899e72d0754914445aacfb0
[ "MIT" ]
1
2021-12-01T13:08:14.000Z
2021-12-01T13:08:14.000Z
day3/src/p2.cpp
aeden/aoc2021
ca0e796169d5ca86f899e72d0754914445aacfb0
[ "MIT" ]
null
null
null
day3/src/p2.cpp
aeden/aoc2021
ca0e796169d5ca86f899e72d0754914445aacfb0
[ "MIT" ]
1
2021-12-07T21:12:57.000Z
2021-12-07T21:12:57.000Z
#include <iostream> #include <fstream> #include <string> #include <vector> #include <bitset> using namespace std; const int SAMPLE_BITS= 5; const int DATA_BITS = 12; const int BIT_LENGTH = DATA_BITS; vector<string> read_data(string filename) { ifstream infile; infile.open(filename); vector<string> data; if...
24.475177
109
0.631991
aeden
f750452af42344d188eeaf8749b027c3a3cb454b
1,503
cpp
C++
src/c/basetypes/CData.cpp
readdle/mailcore2
cf95a1587cebd5b2257e6b6fa0e34149a4d70394
[ "BSD-3-Clause" ]
3
2019-07-16T13:19:50.000Z
2020-01-06T10:42:23.000Z
src/c/basetypes/CData.cpp
readdle/mailcore2
cf95a1587cebd5b2257e6b6fa0e34149a4d70394
[ "BSD-3-Clause" ]
15
2018-12-11T14:00:48.000Z
2021-12-21T17:42:42.000Z
src/c/basetypes/CData.cpp
readdle/mailcore2
cf95a1587cebd5b2257e6b6fa0e34149a4d70394
[ "BSD-3-Clause" ]
2
2015-05-26T18:07:22.000Z
2017-04-04T10:01:17.000Z
#include "CData.h" #include "MailCore/MCCore.h" #include "CBase+Private.h" #include <typeinfo> #define nativeType mailcore::Data #define structName CData C_SYNTHESIZE_CONSTRUCTOR() C_SYNTHESIZE_COBJECT_CAST() CData CData_dataWithBytes(const char* bytes, unsigned int length) { CData result; result.instance =...
27.327273
67
0.754491
readdle
f754cb95c833b09b3c816ce4c13d717bb9752ab5
1,923
cpp
C++
src/device/Device.cpp
open-aquarium/open-aquarium-embedded
04470926ae052b862c87340560335032e8c30be4
[ "MIT" ]
null
null
null
src/device/Device.cpp
open-aquarium/open-aquarium-embedded
04470926ae052b862c87340560335032e8c30be4
[ "MIT" ]
1
2021-03-14T23:57:56.000Z
2021-03-14T23:57:56.000Z
src/device/Device.cpp
open-aquarium/open-aquarium-embedded
04470926ae052b862c87340560335032e8c30be4
[ "MIT" ]
null
null
null
#include "Device.h" /*Device::Device() { }*/ uint16_t Device::getFreeSRAM() { return (int) SP - (int) (__brkval == 0 ? (int)&__heap_start : (int)__brkval); } uint16_t Device::getSRAMUsage() { return this->getTotalSRAM() - this->getFreeSRAM(); } uint16_t Device::getTotalSRAM() { // return 8192; // 8 KB ret...
21.852273
152
0.668747
open-aquarium
f755ba950f073011290e4045bc51832a4c1a1318
431
cpp
C++
binary_GA/binary_GA_utils.cpp
donRumata03/PowerfulGA
e4e2370287a7b654caf92adac8a64a39e23468c9
[ "MIT" ]
3
2020-04-11T10:48:01.000Z
2021-02-09T11:43:12.000Z
binary_GA/binary_GA_utils.cpp
donRumata03/PowerfulGA
e4e2370287a7b654caf92adac8a64a39e23468c9
[ "MIT" ]
6
2020-12-03T15:37:45.000Z
2020-12-09T11:02:37.000Z
binary_GA/binary_GA_utils.cpp
donRumata03/PowerfulGA
e4e2370287a7b654caf92adac8a64a39e23468c9
[ "MIT" ]
1
2021-04-25T21:50:09.000Z
2021-04-25T21:50:09.000Z
#include "binary_GA_utils.h" namespace binary_GA { population generate_population(const pms& ranges, size_t amount) { } void mutate(genome& target_genome, const vector<double>& sigmas, double target_gene_number) { } vector<vector<double>> select_matting_pool(const population& genomes, const vector<dou...
16.576923
118
0.742459
donRumata03
f756340b057918c4f1874c68657acdcd6657e851
14,521
cpp
C++
m2qt/m2qt_callback.cpp
ttuna/m2qt
614cc86765ccb2e096bf2bfbe12d03e311ec657f
[ "MIT" ]
null
null
null
m2qt/m2qt_callback.cpp
ttuna/m2qt
614cc86765ccb2e096bf2bfbe12d03e311ec657f
[ "MIT" ]
null
null
null
m2qt/m2qt_callback.cpp
ttuna/m2qt
614cc86765ccb2e096bf2bfbe12d03e311ec657f
[ "MIT" ]
null
null
null
#include "m2qt_callback.h" #include "m2qt_messageparser.h" #include <QCryptographicHash> #include <QJsonObject> #include <QTextStream> #include <QDebug> using namespace M2QT; namespace { static CallbackHelper* helper = new M2QT::CallbackHelper(); // ----------------------------------------------------------------...
38.930295
162
0.547621
ttuna
f75df7015a3e5ca381fb59d593d466148d724304
692
cpp
C++
Leetcode_challenges/Day15/canSquare.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
Leetcode_challenges/Day15/canSquare.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
Leetcode_challenges/Day15/canSquare.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
#include<iostream> #include<bits/stdc++.h> using namespace std; bool getSets(vector<int> &nums,vector<int> &r,int i){ if(i == nums.size()){ return !r[0] && !r[1] && !r[2] && !r[3]; } for(int j=0;j<r.size();j++){ r[j] -= nums[i]; if(getSets(nums,r,i+1)){ return tr...
20.352941
53
0.479769
vishwajeet-hogale
f766180031763498659c8b4c461d6bad09bcfd61
3,079
cpp
C++
bridge/runtime/src/main/native/jni/InputReaderMirrorImpl.cpp
asakusafw/asakusafw-m3bp
ffb811da0055ff75f13e73ee4eedb261a46988e0
[ "Apache-2.0" ]
1
2016-12-13T07:50:36.000Z
2016-12-13T07:50:36.000Z
bridge/runtime/src/main/native/jni/InputReaderMirrorImpl.cpp
asakusafw/asakusafw-m3bp
ffb811da0055ff75f13e73ee4eedb261a46988e0
[ "Apache-2.0" ]
153
2016-04-01T08:20:15.000Z
2022-02-09T22:30:46.000Z
bridge/runtime/src/main/native/jni/InputReaderMirrorImpl.cpp
asakusafw/asakusafw-m3bp
ffb811da0055ff75f13e73ee4eedb261a46988e0
[ "Apache-2.0" ]
6
2016-04-01T07:31:57.000Z
2017-03-17T03:15:47.000Z
/* * Copyright 2011-2021 Asakusa Framework Team. * * 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 ...
36.654762
128
0.713868
asakusafw
f768e730e3f441c605bfca00f3f57825f33554f4
2,691
cpp
C++
src/vectorMagnitudeDirection.cpp
D-K-E/udacity-linear-algebra
8494440627a48ca13e1d2ec166cb1939639155e0
[ "MIT" ]
null
null
null
src/vectorMagnitudeDirection.cpp
D-K-E/udacity-linear-algebra
8494440627a48ca13e1d2ec166cb1939639155e0
[ "MIT" ]
null
null
null
src/vectorMagnitudeDirection.cpp
D-K-E/udacity-linear-algebra
8494440627a48ca13e1d2ec166cb1939639155e0
[ "MIT" ]
null
null
null
/* Vector Operations Program Author: Kaan Purpose: Implement addition, subtraction, and scalar multiplication Usage: Run the program, enter the vectors. */ // Declare Packages ------------ #include <vector> #include <iostream> #include <assert.h> #include <math.h> // End of Declare Packages ----- // Functi...
28.935484
83
0.616128
D-K-E
f76ad5a740f87e4d795898f335907769b4d51388
945
cpp
C++
src/standard-release/commits/iconventional.cpp
Symbitic/standard-release
335cc62979be076f50c311336bb954fe0adc71c9
[ "MIT" ]
null
null
null
src/standard-release/commits/iconventional.cpp
Symbitic/standard-release
335cc62979be076f50c311336bb954fe0adc71c9
[ "MIT" ]
null
null
null
src/standard-release/commits/iconventional.cpp
Symbitic/standard-release
335cc62979be076f50c311336bb954fe0adc71c9
[ "MIT" ]
null
null
null
#include "iconventional.h" /* https://www.npmjs.com/package/conventional-changelog-writer */ using namespace StandardRelease; IConventionalCommit::IConventionalCommit() : m_valid(false) , m_error() , m_commits() , m_semver() { } IConventionalCommit::~IConventionalCommit() {} void IConventionalComm...
17.830189
82
0.731217
Symbitic
f7738133bf9137aae741ad00a0af999d084ecfdb
28,509
cpp
C++
StarEngine/jni/Helpers/Helpers.cpp
madhubandubey9/StarEngine
1d0adcf8cfd50bc223be6f333c4f2a0af5260b27
[ "MIT" ]
455
2015-02-04T01:39:12.000Z
2022-03-18T17:28:34.000Z
StarEngine/jni/Helpers/Helpers.cpp
madhubandubey9/StarEngine
1d0adcf8cfd50bc223be6f333c4f2a0af5260b27
[ "MIT" ]
1
2016-12-25T09:14:12.000Z
2016-12-25T14:48:27.000Z
StarEngine/jni/Helpers/Helpers.cpp
madhubandubey9/StarEngine
1d0adcf8cfd50bc223be6f333c4f2a0af5260b27
[ "MIT" ]
117
2015-01-30T10:13:54.000Z
2022-03-08T03:46:42.000Z
#include "Helpers.h" #include "..\Logger.h" #include "FilePath.h" #include <iostream> #include <fstream> #include <string> #include <locale> #include <clocale> #include <vector> #ifdef _WIN32 #include <windows.h> #endif #ifdef ANDROID #include "HelpersAndroid.h" #include "../StarEngine.h" #endif nam...
24.366667
98
0.627837
madhubandubey9
f773d8954bf9f8e6fb62b9055d5df53a3eaa91ad
10,893
cpp
C++
Source/Urho3D/Scene/CameraViewport.cpp
vinhig/rbfx
884de45c623d591f346a2abd5e52edaa84bcc137
[ "MIT" ]
441
2018-12-26T14:50:23.000Z
2021-11-05T03:13:27.000Z
Source/Urho3D/Scene/CameraViewport.cpp
vinhig/rbfx
884de45c623d591f346a2abd5e52edaa84bcc137
[ "MIT" ]
221
2018-12-29T17:40:23.000Z
2021-11-06T21:41:55.000Z
Source/Urho3D/Scene/CameraViewport.cpp
vinhig/rbfx
884de45c623d591f346a2abd5e52edaa84bcc137
[ "MIT" ]
101
2018-12-29T13:08:10.000Z
2021-11-02T09:58:37.000Z
// // Copyright (c) 2017-2020 the rbfx project. // // 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, mer...
36.069536
129
0.623061
vinhig
f777337c6d45ab6c2c4ba104b4d345eb58a51e70
4,613
cpp
C++
3C1V_Donkey_Kong/DonkeyKong_Solution/Source/ModuleEnemies.cpp
unaidiaz/pryecto1
aa074c32587e8207cb89d6634391bb43aa9a4657
[ "BSD-3-Clause" ]
2
2020-05-20T15:48:29.000Z
2020-08-17T03:35:56.000Z
3C1V_Donkey_Kong/DonkeyKong_Solution/Source/ModuleEnemies.cpp
unaidiaz/proyecto1
aa074c32587e8207cb89d6634391bb43aa9a4657
[ "BSD-3-Clause" ]
null
null
null
3C1V_Donkey_Kong/DonkeyKong_Solution/Source/ModuleEnemies.cpp
unaidiaz/proyecto1
aa074c32587e8207cb89d6634391bb43aa9a4657
[ "BSD-3-Clause" ]
null
null
null
#include "ModuleEnemies.h" #include "Application.h" #include"ModulePlayer.h" #include "ModuleRender.h" #include "ModuleTextures.h" #include "ModuleAudio.h" #include "SceneLevel4.h" #include"Enemy_Barril.h" #include"Enemy_Barrilazul.h" #include "Enemy.h" #include "Enemy_Llama.h" #include "Enemy_Kong.h" #include "muelle...
20.686099
95
0.656406
unaidiaz
f77a0206d669785a0f6b7d2be5174d9d9277d9de
2,728
hpp
C++
app/Snapper.hpp
isonil/survival
ecb59af9fcbb35b9c28fd4fe29a4628f046165c8
[ "MIT" ]
1
2017-05-12T10:12:41.000Z
2017-05-12T10:12:41.000Z
app/Snapper.hpp
isonil/Survival
ecb59af9fcbb35b9c28fd4fe29a4628f046165c8
[ "MIT" ]
null
null
null
app/Snapper.hpp
isonil/Survival
ecb59af9fcbb35b9c28fd4fe29a4628f046165c8
[ "MIT" ]
1
2019-01-09T04:05:36.000Z
2019-01-09T04:05:36.000Z
#ifndef APP_SNAPPER_HPP #define APP_SNAPPER_HPP #include "engine/util/Vec3.hpp" #include <array> namespace app { class Structure; class StructureDef; class Snapper { public: static std::vector <std::pair <engine::FloatVec3, engine::FloatVec3>> trySnap(const Structure &first, const StructureDef &secondDef, cons...
40.117647
266
0.707845
isonil
f77ff8aa7082cd461fe2b307bd8f25f60a792a47
6,971
cpp
C++
modules/web/fcgiCHAT.cpp
omnidynmc/openapi
7c28179859125efb8c945d0c44543194e6bcd09f
[ "MIT" ]
null
null
null
modules/web/fcgiCHAT.cpp
omnidynmc/openapi
7c28179859125efb8c945d0c44543194e6bcd09f
[ "MIT" ]
null
null
null
modules/web/fcgiCHAT.cpp
omnidynmc/openapi
7c28179859125efb8c945d0c44543194e6bcd09f
[ "MIT" ]
null
null
null
#include <fcgi_stdio.h> #include <list> #include <fstream> #include <queue> #include <cstdlib> #include <cstdio> #include <cstring> #include <new> #include <iostream> #include <string> #include <exception> #include <stdio.h> #include <unistd.h> #include <time.h> #include <mysql++.h> #include <openframe/openframe.h>...
32.273148
111
0.527901
omnidynmc
f782d31f58d0659025581dbf9d78ec3776d5b27b
1,404
hpp
C++
src/common/deserializer.hpp
adlerjohn/ech-cpp-dev
60584994266b1c83e997e831238d14f5bd015e5a
[ "Apache-2.0" ]
2
2020-06-01T00:30:12.000Z
2020-06-05T18:41:48.000Z
src/common/deserializer.hpp
adlerjohn/ech-cpp-dev
60584994266b1c83e997e831238d14f5bd015e5a
[ "Apache-2.0" ]
null
null
null
src/common/deserializer.hpp
adlerjohn/ech-cpp-dev
60584994266b1c83e997e831238d14f5bd015e5a
[ "Apache-2.0" ]
1
2020-06-05T18:33:28.000Z
2020-06-05T18:33:28.000Z
#pragma once // System includes #include <cstddef> // Library includes #include "crypto/byteset.hpp" namespace ech { namespace deserializer { /** * Move bytes from the serialized representation directly into a byteset container. * @tparam T Type of byteset. * @param serial Serialized representation (will get mod...
22.645161
95
0.689459
adlerjohn
f786d644e7ad3bc178847d7615ea71bb0031e382
1,637
cc
C++
dreal/util/math.cc
soonhokong/dreal4
573e613560f5dce9ad54a2f685e060fe447310c7
[ "Apache-2.0" ]
104
2017-12-07T18:17:35.000Z
2022-03-31T06:58:13.000Z
dreal/util/math.cc
soonhokong/dreal4
573e613560f5dce9ad54a2f685e060fe447310c7
[ "Apache-2.0" ]
250
2017-09-01T01:32:45.000Z
2022-03-29T04:08:00.000Z
dreal/util/math.cc
soonhokong/dreal4
573e613560f5dce9ad54a2f685e060fe447310c7
[ "Apache-2.0" ]
16
2018-01-07T07:40:11.000Z
2022-03-24T05:01:11.000Z
/* Copyright 2017 Toyota Research Institute 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 agre...
27.745763
78
0.672572
soonhokong
f7942f03328ecfd2ca4febc685efc7f233f1a4ed
964
cpp
C++
Codigos de ejercicios en cpp/Programa 12.cpp
EulisesBrazon/ejercicios-c-
700235bced91bc6f508ca6d203ea7ee7c241006c
[ "Apache-2.0" ]
null
null
null
Codigos de ejercicios en cpp/Programa 12.cpp
EulisesBrazon/ejercicios-c-
700235bced91bc6f508ca6d203ea7ee7c241006c
[ "Apache-2.0" ]
null
null
null
Codigos de ejercicios en cpp/Programa 12.cpp
EulisesBrazon/ejercicios-c-
700235bced91bc6f508ca6d203ea7ee7c241006c
[ "Apache-2.0" ]
null
null
null
#include<iostream> #include<stdio.h> #include<conio.h> using namespace std; int main() { double L1,L2,L3,n=1,Mayor; cout<<"Ingrese el primer lado del triangulo"<<endl; cin>>L1; cout<<"Ingrese el segundo lado del triangulo"<<endl; cin>>L2; cout<<"Ingrese el tercer lado del triangulo"<<endl; cin>>L3; if((L1>L2)&&...
17.851852
53
0.572614
EulisesBrazon
f799755e7e47dcb07d48be5193db428cbaf2a490
18,648
hpp
C++
c++/include/serial/objectiter.hpp
OpenHero/gblastn
a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8
[ "MIT" ]
31
2016-12-09T04:56:59.000Z
2021-12-31T17:19:10.000Z
c++/include/serial/objectiter.hpp
OpenHero/gblastn
a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8
[ "MIT" ]
6
2017-03-10T17:25:13.000Z
2021-09-22T15:49:49.000Z
c++/include/serial/objectiter.hpp
OpenHero/gblastn
a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8
[ "MIT" ]
20
2015-01-04T02:15:17.000Z
2021-12-03T02:31:43.000Z
#ifndef OBJECTITER__HPP #define OBJECTITER__HPP /* $Id: objectiter.hpp 358154 2012-03-29 15:05:12Z gouriano $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This softwa...
30.321951
80
0.673155
OpenHero
f79e4d3d0d08758c029c1a0777b72963507d59c7
480
cpp
C++
abc073/abc073_c.cpp
crazystylus/AtCoderPractice
8e0f56a9b3905e11f83f351af66af5bfed8606b2
[ "MIT" ]
null
null
null
abc073/abc073_c.cpp
crazystylus/AtCoderPractice
8e0f56a9b3905e11f83f351af66af5bfed8606b2
[ "MIT" ]
null
null
null
abc073/abc073_c.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; /////////////////// int n; void solve() { int a; unordered_map<int, bool> hm; cin >> n; rep(i, n) { cin...
17.777778
45
0.50625
crazystylus
f7a1768f3a9de02f8d54c2d4d98edc0f542d978a
38,078
cpp
C++
OCVWarp.cpp
hn-88/OCVWarp
8cae8dc544bad18bc91a2c6635b6edb96985b4bc
[ "MIT" ]
2
2020-04-01T02:43:13.000Z
2020-06-28T13:52:03.000Z
OCVWarp.cpp
hn-88/OCVWarp
8cae8dc544bad18bc91a2c6635b6edb96985b4bc
[ "MIT" ]
13
2020-04-01T08:06:50.000Z
2021-01-16T15:47:15.000Z
OCVWarp.cpp
hn-88/OCVWarp
8cae8dc544bad18bc91a2c6635b6edb96985b4bc
[ "MIT" ]
null
null
null
#ifdef _WIN64 #include "windows.h" #endif /* * OCVWarp.cpp * * Warps video files using the OpenCV framework. * Appends F to the filename and saves as default codec (DIVX avi) in the same folder. * * first commit: * Hari Nandakumar * 25 Jan 2020 * * */ //#define _WIN64 //#define __unix__ // references...
31.391591
131
0.582489
hn-88
f7a80c45731ec94d5a40e0d75f2160402e045f44
35,386
hpp
C++
src/include/core/smileComponent.hpp
elinjammal/opensmile
0ae2da44e61744ff1aaa9bae2b95d747febb08de
[ "W3C" ]
245
2020-10-24T16:27:13.000Z
2022-03-31T03:01:11.000Z
src/include/core/smileComponent.hpp
elinjammal/opensmile
0ae2da44e61744ff1aaa9bae2b95d747febb08de
[ "W3C" ]
41
2021-01-13T11:30:42.000Z
2022-01-14T14:36:11.000Z
src/include/core/smileComponent.hpp
elinjammal/opensmile
0ae2da44e61744ff1aaa9bae2b95d747febb08de
[ "W3C" ]
43
2020-12-11T15:28:19.000Z
2022-03-20T11:55:58.000Z
/*F*************************************************************************** * This file is part of openSMILE. * * Copyright (c) audEERING GmbH. All rights reserved. * See the file COPYING for details on license terms. ***************************************************************************E*/ #ifndef __SM...
44.122195
196
0.667072
elinjammal
f7ac1e5c5a31bd4a849b3f88bd138a9e3dcc5a8b
2,065
cpp
C++
Camera.cpp
KarmaiSAYIn/recapp
c1a968214b4cf1b4d8befd1c72bedf64e1fc0813
[ "BSD-3-Clause" ]
null
null
null
Camera.cpp
KarmaiSAYIn/recapp
c1a968214b4cf1b4d8befd1c72bedf64e1fc0813
[ "BSD-3-Clause" ]
null
null
null
Camera.cpp
KarmaiSAYIn/recapp
c1a968214b4cf1b4d8befd1c72bedf64e1fc0813
[ "BSD-3-Clause" ]
null
null
null
#include "Camera.h" #include "Graphics.h" #include "Mouse.h" #include "Keyboard.h" #include "Math.h" Camera::Camera(CoordinateTransformer& transformer) : transformer(transformer) { } Camera::Camera(CoordinateTransformer& transformer, float initScale, float fScaleRate) : scale(initScale), fScaleRat...
24.011628
187
0.658596
KarmaiSAYIn
f7ae0c8fd7880c2d6ad29f9153352aa439f2413f
5,073
cpp
C++
comms/Cluster.cpp
dehilsterlexis/eclide-1
0c1685cc7165191b5033d450c59aec479f01010a
[ "Apache-2.0" ]
8
2016-08-29T13:34:18.000Z
2020-12-04T15:20:36.000Z
comms/Cluster.cpp
dehilsterlexis/eclide-1
0c1685cc7165191b5033d450c59aec479f01010a
[ "Apache-2.0" ]
221
2016-06-20T19:51:48.000Z
2022-03-29T20:46:46.000Z
comms/Cluster.cpp
dehilsterlexis/eclide-1
0c1685cc7165191b5033d450c59aec479f01010a
[ "Apache-2.0" ]
13
2016-06-24T15:59:31.000Z
2022-01-01T11:48:20.000Z
#include "StdAfx.h" #include "cluster.h" #include "dali.h" #include "SoapUtil.h" #include "clib.h" #include "cache.h" #include "logger.h" #if _COMMS_VER < 68200 using namespace WsTopology; #elif _COMMS_VER < 700000 #else using namespace WsEnvironment; #endif namespace Topology { class CCluster : public ICluster, publ...
23.705607
177
0.609698
dehilsterlexis
f7aff1b047ae5b6528120ba97234e36b3b80cd50
1,073
cpp
C++
leetcode/25-reverse-nodes-in-k-group.cpp
01nomagic/Algorithms
b184aa12141f5127baa55502d3ea47ccd1f97ba8
[ "MIT" ]
2
2021-03-27T03:23:20.000Z
2021-08-11T12:54:17.000Z
leetcode/25-reverse-nodes-in-k-group.cpp
01nomagic/Algorithms
b184aa12141f5127baa55502d3ea47ccd1f97ba8
[ "MIT" ]
null
null
null
leetcode/25-reverse-nodes-in-k-group.cpp
01nomagic/Algorithms
b184aa12141f5127baa55502d3ea47ccd1f97ba8
[ "MIT" ]
null
null
null
struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(nullptr) {} }; class Solution { public: ListNode* reverseKGroup(ListNode* head, int k) { if (k <= 1) { return head; } int count = 0; ListNode* prev = nullptr; ListNode* curr = head; ListNode* start = nullptr...
20.634615
50
0.444548
01nomagic
fc92921f2bf8f6aa4b09393a636bf28f83f695f5
3,415
cpp
C++
Sources/Commands/command_gpt.cpp
c3358/ntfstool
08d6efc1298cb223fe9f24c3849e1aad08c5a45f
[ "MIT" ]
1
2021-07-28T12:54:08.000Z
2021-07-28T12:54:08.000Z
Sources/Commands/command_gpt.cpp
c3358/ntfstool
08d6efc1298cb223fe9f24c3849e1aad08c5a45f
[ "MIT" ]
null
null
null
Sources/Commands/command_gpt.cpp
c3358/ntfstool
08d6efc1298cb223fe9f24c3849e1aad08c5a45f
[ "MIT" ]
null
null
null
#include "Utils/buffer.h" #include "Drive/disk.h" #include "Utils/utils.h" #include "Utils/table.h" #include "options.h" #include "Utils/constant_names.h" #include <intrin.h> #include <distorm.h> #include <algorithm> #include <cstdint> #include <string> #include <iostream> #include <iomanip> #include <memory> #includ...
39.252874
156
0.619619
c3358
fca2d673f1bd6033962931ca4fb614844d32c1cb
1,203
cpp
C++
Advanced/AA1112/AA1112/main.cpp
Eric-Ma-C/PAT-Advanced
ea8b46a780a04b46ab35ebd06c4bf19c3a664380
[ "MIT" ]
null
null
null
Advanced/AA1112/AA1112/main.cpp
Eric-Ma-C/PAT-Advanced
ea8b46a780a04b46ab35ebd06c4bf19c3a664380
[ "MIT" ]
null
null
null
Advanced/AA1112/AA1112/main.cpp
Eric-Ma-C/PAT-Advanced
ea8b46a780a04b46ab35ebd06c4bf19c3a664380
[ "MIT" ]
null
null
null
#include<stdio.h> #include<string.h> #include<vector> #include<map> #include<algorithm> using namespace std; //33min typedef struct item{ int id; char c; }item; map<char,item> m; bool cmp(item i1,item i2){ return i1.id<i2.id; } int main(){ int k; scanf("%d",&k); char c[1100]; scanf("%s",c); int len=strlen(c); ...
16.256757
41
0.545303
Eric-Ma-C
fca5f7db5e1d0888f1f6cb018a432e69d0cbae84
4,161
cpp
C++
pwiz/analysis/peakdetect/FeatureDetectorPeakel.cpp
edyp-lab/pwiz-mzdb
d13ce17f4061596c7e3daf9cf5671167b5996831
[ "Apache-2.0" ]
11
2015-01-08T08:33:44.000Z
2019-07-12T06:14:54.000Z
pwiz/analysis/peakdetect/FeatureDetectorPeakel.cpp
shze/pwizard-deb
4822829196e915525029a808470f02d24b8b8043
[ "Apache-2.0" ]
61
2015-05-27T11:20:11.000Z
2019-12-20T15:06:21.000Z
pwiz/analysis/peakdetect/FeatureDetectorPeakel.cpp
shze/pwizard-deb
4822829196e915525029a808470f02d24b8b8043
[ "Apache-2.0" ]
4
2016-02-03T09:41:16.000Z
2021-08-01T18:42:36.000Z
// // $Id: FeatureDetectorPeakel.cpp 2051 2010-06-15 18:39:13Z chambm $ // // // Original author: Darren Kessner <darren@proteowizard.org> // // Copyright 2009 Center for Applied Molecular Medicine // University of Southern California, Los Angeles, CA // // Licensed under the Apache License, Version 2.0 (the "License...
30.372263
101
0.703677
edyp-lab
fcaa3a2c93594ac917a81701873ba6034802252b
605
cpp
C++
HurdleRace.cpp
d3cod3monk78/hackerrank
8f3174306754d04d07b42d5c7a95ab32abf17fa1
[ "MIT" ]
null
null
null
HurdleRace.cpp
d3cod3monk78/hackerrank
8f3174306754d04d07b42d5c7a95ab32abf17fa1
[ "MIT" ]
null
null
null
HurdleRace.cpp
d3cod3monk78/hackerrank
8f3174306754d04d07b42d5c7a95ab32abf17fa1
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #include <vector> #include <cstdlib> #include <string> #include <string.h> using namespace std; int getDose(vector<int> arr , int k) { int n = (int)arr.size(); sort(arr.begin() , arr.end()); int dose = 0; if(arr[n-1] < k) { return 0; } for(int i = 0; i < n; i++) { if(arr[i] > k && do...
15.921053
40
0.538843
d3cod3monk78
fcab4e92faabc89cc4c415859b2405ba992271b6
475
cpp
C++
src/customlabel.cpp
cvlabbonn/hand_2d_gt_viewer
457e0929fdeee740b8940a791299ed8541124a83
[ "MIT" ]
1
2018-03-16T22:40:16.000Z
2018-03-16T22:40:16.000Z
src/customlabel.cpp
cvlabbonn/hand_2d_gt_viewer
457e0929fdeee740b8940a791299ed8541124a83
[ "MIT" ]
null
null
null
src/customlabel.cpp
cvlabbonn/hand_2d_gt_viewer
457e0929fdeee740b8940a791299ed8541124a83
[ "MIT" ]
3
2015-10-05T22:48:40.000Z
2018-06-28T11:51:09.000Z
#include "customlabel.h" CustomLabel::CustomLabel( QWidget *parent ) : QLabel( parent ){ } void CustomLabel::mouseMoveEvent( QMouseEvent *ev ){ this->mouse_X = ev->x(); this->mouse_Y = ev->y(); emit mouse_position(); } void CustomLabel::mousePressEvent( QMouseEvent *ev ){ emit mouse_pressed(); ...
16.964286
53
0.671579
cvlabbonn
fcabd41951052a1b7b4bbac628f49aa173b2857c
2,901
cpp
C++
src/tests/merger_tests/handleInputs.cpp
danguenther/spfe-framework
f1f91330e136727edc12b8b0a07723a4059fa039
[ "MIT" ]
null
null
null
src/tests/merger_tests/handleInputs.cpp
danguenther/spfe-framework
f1f91330e136727edc12b8b0a07723a4059fa039
[ "MIT" ]
null
null
null
src/tests/merger_tests/handleInputs.cpp
danguenther/spfe-framework
f1f91330e136727edc12b8b0a07723a4059fa039
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <merger.h> #include <fstream> #define OUTPUT_FILE_HANDLE_INPUTS "src/tests/merger_tests/test_files/output.txt" using namespace std; /** * tests if the testInputs function writes the correct line in the file on the given parameters * @param current S if it is Server input, C if it ...
29.30303
120
0.653223
danguenther
fcad23e944161f11f6431ff1e042c7a230780bf4
1,576
cc
C++
Boss2D/addon/webrtc-jumpingyang001_for_boss/audio/time_interval_unittest.cc
Yash-Wasalwar-07/Boss2D
37c5ba0f1c83c89810359a207cabfa0905f803d2
[ "MIT" ]
null
null
null
Boss2D/addon/webrtc-jumpingyang001_for_boss/audio/time_interval_unittest.cc
Yash-Wasalwar-07/Boss2D
37c5ba0f1c83c89810359a207cabfa0905f803d2
[ "MIT" ]
null
null
null
Boss2D/addon/webrtc-jumpingyang001_for_boss/audio/time_interval_unittest.cc
Yash-Wasalwar-07/Boss2D
37c5ba0f1c83c89810359a207cabfa0905f803d2
[ "MIT" ]
null
null
null
/* * Copyright 2017 The WebRTC 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 contributing ...
32.163265
88
0.73731
Yash-Wasalwar-07
fcafece3bb6298fe79c3e6612780ec3dd6896c44
6,687
cpp
C++
src/shell/main.cpp
georgebrock/task
00204e01912aeb9e39b94ac7ba16562fdd5b5f2c
[ "MIT" ]
1
2017-10-13T06:00:59.000Z
2017-10-13T06:00:59.000Z
src/shell/main.cpp
georgebrock/task
00204e01912aeb9e39b94ac7ba16562fdd5b5f2c
[ "MIT" ]
null
null
null
src/shell/main.cpp
georgebrock/task
00204e01912aeb9e39b94ac7ba16562fdd5b5f2c
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // taskwarrior - a command line task list manager. // // Copyright 2006-2014, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated docume...
27.072874
86
0.546583
georgebrock
fcb2af36e9fbc3010949d35ecbaf2a91c66f9b99
6,668
hpp
C++
Yannq/GroundState/SRMat.hpp
cecri/yannq
b78c1f86a255059f06b34dd5e538449e7261d0ee
[ "BSD-3-Clause" ]
null
null
null
Yannq/GroundState/SRMat.hpp
cecri/yannq
b78c1f86a255059f06b34dd5e538449e7261d0ee
[ "BSD-3-Clause" ]
null
null
null
Yannq/GroundState/SRMat.hpp
cecri/yannq
b78c1f86a255059f06b34dd5e538449e7261d0ee
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <Eigen/Core> #include <Eigen/Dense> #include <Eigen/IterativeLinearSolvers> #include <tbb/tbb.h> #include "Utilities/Utility.hpp" #include "Observables/Energy.hpp" #include "./utils.hpp" namespace yannq { template<typename Machine, typename Hamiltonian> class SRMat; } //namespace yannq namespa...
25.257576
140
0.704109
cecri
fcb7afc3dd48dec66ac6bd54cf2bfb8bdf601d19
4,311
hh
C++
FTPD.hh
shuLhan/libvos
831491b197fa8f267fd94966d406596896e6f25c
[ "BSD-3-Clause" ]
1
2017-09-14T13:31:16.000Z
2017-09-14T13:31:16.000Z
FTPD.hh
shuLhan/libvos
831491b197fa8f267fd94966d406596896e6f25c
[ "BSD-3-Clause" ]
null
null
null
FTPD.hh
shuLhan/libvos
831491b197fa8f267fd94966d406596896e6f25c
[ "BSD-3-Clause" ]
5
2015-04-11T02:59:06.000Z
2021-03-03T19:45:39.000Z
// // Copyright 2009-2017 M. Shulhan (ms@kilabit.info). All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #ifndef _LIBVOS_FTP_DAEMON_HH #define _LIBVOS_FTP_DAEMON_HH 1 #include <signal.h> #include "List.hh" #include "FTPD_client.hh" #includ...
26.127273
73
0.714683
shuLhan
fcbd46787c604435feefb34f3e5d2956c2767a25
1,251
hpp
C++
samal_lib/include/samal_lib/Forward.hpp
VayuDev/samal
edb67289b7a1160f917be9bd44cd734f9d865460
[ "MIT" ]
2
2021-02-26T07:39:08.000Z
2021-03-30T21:13:47.000Z
samal_lib/include/samal_lib/Forward.hpp
VayuDev/samal
edb67289b7a1160f917be9bd44cd734f9d865460
[ "MIT" ]
null
null
null
samal_lib/include/samal_lib/Forward.hpp
VayuDev/samal
edb67289b7a1160f917be9bd44cd734f9d865460
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <map> #include <string> namespace samal { class ASTNode; class DeclarationNode; class ModuleRootNode; class IdentifierNode; class ExpressionNode; class FunctionDeclarationNode; class ScopeNode; class BinaryExpressionNode; class IfExpressionNode; class FunctionCallExpressionNod...
22.339286
110
0.86251
VayuDev
fcc1c532c62e71f6a7d57621b2ea985d06e10195
503
cpp
C++
contest/yukicoder/117.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
7
2018-04-14T14:55:51.000Z
2022-01-31T10:49:49.000Z
contest/yukicoder/117.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
5
2018-04-14T14:28:49.000Z
2019-05-11T02:22:10.000Z
contest/yukicoder/117.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
null
null
null
#include "math/combination.hpp" #include "math/mint.hpp" int main() { Combination<Mint> comb(2000000); int t(in); for (int i = 0; i < t; ++i) { char c(in); in.ignore(); int n(in); in.ignore(); int k(in); in.ignore(); switch (c) { case 'C': cout << comb.combination(n, k) << e...
18.62963
53
0.506958
not522
fcca9422e1650a79a21ea1229a005305f60a50a6
1,112
cpp
C++
volume_I/acm_1010.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
volume_I/acm_1010.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
volume_I/acm_1010.cpp
raidenluikang/acm.timus.ru
9b7c99eb03959acff9dd96326eec642a2c31ed04
[ "MIT" ]
null
null
null
// acm.timus.ru 1010. Discrete Function. #include <cstdio> char buffer[ (1 << 21) ]; char const * o ; void initRead() { unsigned n; n = fread(buffer, 1, sizeof(buffer ) - 2, stdin); buffer[n] = '\0'; o = buffer; } unsigned readInt() { unsigned u = 0; while(*o && *o <= 32)++o; while(*o >='0' && *o <= '...
13.39759
62
0.455036
raidenluikang
fcdddbe53f12e9c893f9c69c6640f84b8ee5bdc3
8,490
cpp
C++
source/deps/illa/filter_bilinear.cpp
poppeman/Pictus
0e58285b89292d0b221ab4d09911ef439711cc59
[ "MIT" ]
73
2015-01-19T17:38:26.000Z
2022-02-15T06:16:08.000Z
source/deps/illa/filter_bilinear.cpp
poppeman/Pictus
0e58285b89292d0b221ab4d09911ef439711cc59
[ "MIT" ]
75
2015-01-01T17:32:24.000Z
2018-10-18T08:19:08.000Z
source/deps/illa/filter_bilinear.cpp
poppeman/Pictus
0e58285b89292d0b221ab4d09911ef439711cc59
[ "MIT" ]
18
2015-01-05T04:57:18.000Z
2022-03-06T01:35:10.000Z
#include "filter_bilinear.h" #include "filter_int.h" #define BSHIFT 11 #define BSHIFTx2 22 #define BMUL 2048 namespace Filter { namespace Scale { using namespace Geom; namespace Internal { void set_contrib(std::vector<Contrib>& contrib, uint32_t i, uint32_t max_i, uint32_t max_coord, uint32_t ofs) { ui...
50.236686
179
0.657362
poppeman
fce515526f796e03db673d3b9aafc044fb77f35e
233
cpp
C++
test/main.cpp
MaLarsson/umlaut
b02222127a9e7362b57403f58a8519cd8b6bf826
[ "BSL-1.0" ]
1
2018-06-24T13:47:42.000Z
2018-06-24T13:47:42.000Z
test/main.cpp
MaLarsson/umlaut
b02222127a9e7362b57403f58a8519cd8b6bf826
[ "BSL-1.0" ]
6
2018-09-25T10:56:38.000Z
2018-11-01T15:30:08.000Z
test/main.cpp
MaLarsson/umlaut
b02222127a9e7362b57403f58a8519cd8b6bf826
[ "BSL-1.0" ]
null
null
null
// Copyright Marcus Larsson 2018 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #define CATCH_CONFIG_MAIN #include <catch2/catch.hpp>
29.125
81
0.772532
MaLarsson
fce574e659d0b82b5776bc44304c12270e0f1fde
598
cpp
C++
test/srpc/RpcCommandTest.cpp
mark-online/sne
92190c78a1710778acf16dd3a83af064db5c269b
[ "MIT" ]
null
null
null
test/srpc/RpcCommandTest.cpp
mark-online/sne
92190c78a1710778acf16dd3a83af064db5c269b
[ "MIT" ]
null
null
null
test/srpc/RpcCommandTest.cpp
mark-online/sne
92190c78a1710778acf16dd3a83af064db5c269b
[ "MIT" ]
null
null
null
#include "SrpcTestPCH.h" #include "DummyRpcCommand.h" #include <sne/test/StreamFixture.h> using namespace sne; using namespace sne::srpc; /** * @class RpcCommandTest * * RpcCommand test */ class RpcCommandTest : public test::BitStreamFixture { }; TEST_F(RpcCommandTest, testMarshal) { DummyRpcCommand rpcCommand...
18.121212
53
0.683946
mark-online
fce84a743286189e8b4c054c752a7df8d32bb883
1,595
cpp
C++
tests/test_bhtool.cpp
butchhoward/bhtool
9d8099aafacb9aeb619298e63c5858ea1f1a5ea4
[ "MIT" ]
null
null
null
tests/test_bhtool.cpp
butchhoward/bhtool
9d8099aafacb9aeb619298e63c5858ea1f1a5ea4
[ "MIT" ]
null
null
null
tests/test_bhtool.cpp
butchhoward/bhtool
9d8099aafacb9aeb619298e63c5858ea1f1a5ea4
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include <bhtool/bhtool.hpp> #include <bhtool/stderrred.hpp> #include <bhtool/repo.hpp> #include "utils_test.hpp" using namespace bhtool; int some_command_fn(int, char *[]) { return 99; }; TEST( utilities, find_cmd_function_from_command ) { Commands cmds = { {std::string("some_...
26.583333
75
0.721003
butchhoward
fce867ac3e96f919d6c81e19bebcaaebaaea5805
3,790
cpp
C++
src/fileinfo/file_presentation/getters/iterative_getter/iterative_subtitle_getter/symbol_tables_json_getter.cpp
lukasdurfina/retdec
7d6b8882690ff73c2bd7f209db10c5c091fa0359
[ "MIT", "Zlib", "BSD-3-Clause" ]
1
2020-03-28T02:38:53.000Z
2020-03-28T02:38:53.000Z
src/fileinfo/file_presentation/getters/iterative_getter/iterative_subtitle_getter/symbol_tables_json_getter.cpp
lukasdurfina/retdec
7d6b8882690ff73c2bd7f209db10c5c091fa0359
[ "MIT", "Zlib", "BSD-3-Clause" ]
null
null
null
src/fileinfo/file_presentation/getters/iterative_getter/iterative_subtitle_getter/symbol_tables_json_getter.cpp
lukasdurfina/retdec
7d6b8882690ff73c2bd7f209db10c5c091fa0359
[ "MIT", "Zlib", "BSD-3-Clause" ]
null
null
null
/** * @file src/fileinfo/file_presentation/getters/iterative_getter/iterative_subtitle_getter/symbol_tables_json_getter.cpp * @brief Methods of SymbolTablesJsonGetter class. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include "retdec/utils/string.h" #include "retdec/fileformat/utils/co...
34.144144
147
0.789446
lukasdurfina
fcf2d2fc5bb54a81ccb16b50204549b899d35625
2,752
hpp
C++
include/alflib/core/common.hpp
Alfret/AlfLibCpp
15bf07d31b0772a23904967f85495cbb2121f391
[ "MIT" ]
null
null
null
include/alflib/core/common.hpp
Alfret/AlfLibCpp
15bf07d31b0772a23904967f85495cbb2121f391
[ "MIT" ]
9
2019-06-19T19:35:34.000Z
2019-07-03T16:10:20.000Z
include/alflib/core/common.hpp
Alfret/AlfLibCpp
15bf07d31b0772a23904967f85495cbb2121f391
[ "MIT" ]
null
null
null
// MIT License // // Copyright (c) 2019 Filip Björklund // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
30.241758
80
0.583576
Alfret
fcf45f872213ed73003eda32c58d01fe6e9e9e6f
36,241
cpp
C++
gb++/src/Sharp/Sharp.cpp
dfrias100/gb-plus-plus
e5c48f18ab24315f1a5c70789cd3c1cae9428baf
[ "MIT" ]
null
null
null
gb++/src/Sharp/Sharp.cpp
dfrias100/gb-plus-plus
e5c48f18ab24315f1a5c70789cd3c1cae9428baf
[ "MIT" ]
null
null
null
gb++/src/Sharp/Sharp.cpp
dfrias100/gb-plus-plus
e5c48f18ab24315f1a5c70789cd3c1cae9428baf
[ "MIT" ]
null
null
null
#include "Sharp.hpp" #include "../Memory/Memory.hpp" #include <iostream> #include <iomanip> Sharp::Sharp(Memory* _MemoryBus) { MemoryBus = _MemoryBus; Suspended = false; HaltBug = false; // These are the register values when the PC is at // $0100 after the boot ROM is unmapped from memory PC = 0x0100; AF = 0x0...
13.145085
99
0.603101
dfrias100
fcf7dd033191d34e26c8ff85621d5edfd177377f
178
hpp
C++
src/parser/sql-stmt/NotImplemented/CreateIndex.hpp
TrueFinch/KappaDBMS
f4f9e91c52ae33f929e6db458a713a98a9958da3
[ "Apache-2.0" ]
2
2018-10-29T05:38:27.000Z
2018-12-05T15:32:16.000Z
src/parser/sql-stmt/NotImplemented/CreateIndex.hpp
TrueFinch/KappaDBMS
f4f9e91c52ae33f929e6db458a713a98a9958da3
[ "Apache-2.0" ]
null
null
null
src/parser/sql-stmt/NotImplemented/CreateIndex.hpp
TrueFinch/KappaDBMS
f4f9e91c52ae33f929e6db458a713a98a9958da3
[ "Apache-2.0" ]
null
null
null
#pragma once #include "Instruction.hpp" namespace cmd { class CreateIndex : public Instruction { public: CreateIndex() : Instruction(CREATE_INDEX) {} }; } // namespace cmd
12.714286
46
0.719101
TrueFinch
fcfc146114073eed0b5c33f3e1197d85925cfbad
546
cpp
C++
side_projects/meh.cpp
mohsend/Magnificent-University-projects
4b0f9df939a60ace45eeccb331db85af77d83ee9
[ "MIT" ]
null
null
null
side_projects/meh.cpp
mohsend/Magnificent-University-projects
4b0f9df939a60ace45eeccb331db85af77d83ee9
[ "MIT" ]
null
null
null
side_projects/meh.cpp
mohsend/Magnificent-University-projects
4b0f9df939a60ace45eeccb331db85af77d83ee9
[ "MIT" ]
null
null
null
/* * meh */ #include <iostream> #include <cstdint> using namespace std; int main(int argc, char **argv) { uint64_t meh = 0xFFFFFFFFFFFFFFFF; uint64_t age; cout << "meh = " << meh << endl; cout << "How old are you? "; cin >> age; cout << "meh per year = " << meh / age << endl; cout << "meh per month = " << me...
23.73913
70
0.540293
mohsend
fcfcb12990a02ce4a9227554af03bb56abd58491
1,223
cpp
C++
ToDoTick/MainPage.xaml.cpp
HumorLogic/To-Do-Tick
377c651f63b51f64178b42121e71961f9df26e99
[ "Apache-2.0" ]
null
null
null
ToDoTick/MainPage.xaml.cpp
HumorLogic/To-Do-Tick
377c651f63b51f64178b42121e71961f9df26e99
[ "Apache-2.0" ]
null
null
null
ToDoTick/MainPage.xaml.cpp
HumorLogic/To-Do-Tick
377c651f63b51f64178b42121e71961f9df26e99
[ "Apache-2.0" ]
null
null
null
// // MainPage.xaml.cpp // MainPage 类的实现。 // #include "pch.h" #include "MainPage.xaml.h" #include<chrono> #include<thread> using namespace ToDoTick; using namespace Platform; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Windows::UI::Xaml; using namespace Win...
23.519231
109
0.740801
HumorLogic
1e01dd6fa61eee60c906dc22edb364794e675b1a
10,563
hpp
C++
src/eyelib/window/event.hpp
lucas137/eyelib
e88eaea6dd2c2e4b365d178f67869a3cd47751a5
[ "MIT" ]
null
null
null
src/eyelib/window/event.hpp
lucas137/eyelib
e88eaea6dd2c2e4b365d178f67869a3cd47751a5
[ "MIT" ]
null
null
null
src/eyelib/window/event.hpp
lucas137/eyelib
e88eaea6dd2c2e4b365d178f67869a3cd47751a5
[ "MIT" ]
null
null
null
//===========================================================================// /* MIT License Copyright (c) 2019 Nathan Lucas 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 rest...
39.710526
83
0.518981
lucas137
1e03dc884a7253fb4f979fff0ade588bf574bd4b
7,292
cxx
C++
portaudio/bindings/cpp/source/portaudiocpp/System.cxx
gergocs/cpmpvoice
f438efcddf10ef3d3e0664eca5ace81367629235
[ "Apache-2.0" ]
393
2021-07-04T20:27:15.000Z
2021-09-21T10:44:47.000Z
portaudio/bindings/cpp/source/portaudiocpp/System.cxx
gergocs/cpmpvoice
f438efcddf10ef3d3e0664eca5ace81367629235
[ "Apache-2.0" ]
41
2021-07-05T17:31:57.000Z
2021-09-14T03:51:01.000Z
portaudio/bindings/cpp/source/portaudiocpp/System.cxx
gergocs/cpmpvoice
f438efcddf10ef3d3e0664eca5ace81367629235
[ "Apache-2.0" ]
32
2021-07-05T12:34:57.000Z
2021-08-15T21:18:54.000Z
#include "portaudiocpp/System.hxx" #include <cstddef> #include <cassert> #include "portaudiocpp/HostApi.hxx" #include "portaudiocpp/Device.hxx" #include "portaudiocpp/Stream.hxx" #include "portaudiocpp/Exception.hxx" #include "portaudiocpp/SystemHostApiIterator.hxx" #include "portaudiocpp/SystemDeviceIterator.hxx" n...
23.675325
90
0.475453
gergocs
1e0516f8ddeaf90d4434c1e03eaf9fb150c014c7
8,298
hh
C++
libsrc/pylith/fekernels/DispVel.hh
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
libsrc/pylith/fekernels/DispVel.hh
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
libsrc/pylith/fekernels/DispVel.hh
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
/* -*- C++ -*- * * ---------------------------------------------------------------------- * * Brad T. Aagaard, U.S. Geological Survey * Charles A. Williams, GNS Science * Matthew G. Knepley, University of Chicago * * This code was developed as part of the Computational Infrastructure * for Geodynamics (http:*g...
33.595142
97
0.532056
Grant-Block
1e094e2118b8258d7b7588c3de488b00eea31286
248
cc
C++
tests/day12_tests.cc
LesnyRumcajs/advent-of-cpp-2015
3301f31fdcca3aeddae6691ce15b0eb712a7c867
[ "MIT" ]
null
null
null
tests/day12_tests.cc
LesnyRumcajs/advent-of-cpp-2015
3301f31fdcca3aeddae6691ce15b0eb712a7c867
[ "MIT" ]
null
null
null
tests/day12_tests.cc
LesnyRumcajs/advent-of-cpp-2015
3301f31fdcca3aeddae6691ce15b0eb712a7c867
[ "MIT" ]
null
null
null
#define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include "../src/day12.h" TEST_CASE("Day12::part1", "[]") { REQUIRE(6 == day12::sumAllNumbers("{\"a\":2,\"b\":4}")); REQUIRE(3 == day12::sumAllNumbers("{\"a\":{\"b\":4},\"c\":-1}")); }
27.555556
69
0.564516
LesnyRumcajs
1f6117402c993c00fa7ca45af41be702e691c75e
6,080
cpp
C++
examples/promps_hsmm_ball_viterbi.cpp
DiegoAE/BOSD
a7ce88462c64c540ba2922d16eb6f7eba8055b47
[ "MIT" ]
19
2019-05-03T05:31:43.000Z
2022-01-08T18:14:31.000Z
examples/promps_hsmm_ball_viterbi.cpp
DiegoAE/BOSD
a7ce88462c64c540ba2922d16eb6f7eba8055b47
[ "MIT" ]
2
2019-02-14T15:29:34.000Z
2020-06-04T10:14:54.000Z
examples/promps_hsmm_ball_viterbi.cpp
DiegoAE/BOSD
a7ce88462c64c540ba2922d16eb6f7eba8055b47
[ "MIT" ]
1
2019-07-01T07:44:09.000Z
2019-07-01T07:44:09.000Z
#include <armadillo> #include <boost/program_options.hpp> #include <HSMM.hpp> #include <json.hpp> #include <ProMPs_emission.hpp> using namespace arma; using namespace hsmm; using namespace robotics; using namespace std; using json = nlohmann::json; namespace po = boost::program_options; field<mat> fromMatToField(cons...
38.974359
82
0.611678
DiegoAE
1f6b282c287f4b512b2321af5a36faa2bb891294
9,097
cpp
C++
DrunkEngine/GameObject.cpp
MarcFly/Fly3D-Engine
e8da09a63c7c3d991b8f25c346798ee230593e78
[ "Unlicense" ]
null
null
null
DrunkEngine/GameObject.cpp
MarcFly/Fly3D-Engine
e8da09a63c7c3d991b8f25c346798ee230593e78
[ "Unlicense" ]
3
2018-09-27T17:00:14.000Z
2018-12-19T13:30:25.000Z
DrunkEngine/GameObject.cpp
MarcFly/Fly3D-Engine
e8da09a63c7c3d991b8f25c346798ee230593e78
[ "Unlicense" ]
null
null
null
#include "GameObject.h" #include "Application.h" #include "ComponentMaterial.h" #include "ComponentMesh.h" #include "ComponentCamera.h" #include "ResourceMesh.h" #include "ComponentBillboard.h" #include "ComponentSkeleton.h" #include "ComponentAnimation.h" // Creation of Root Node from a file GameObject::GameObject() ...
25.410615
119
0.68616
MarcFly
1f6d36c2e537f1d9ec41d98de0578c5e6520cc65
321
cpp
C++
src/ResLoader/data_mgr.cpp
wu1274704958/vulkan_demo
545e00a1fae98e0ff179115887dfa7669b56ccde
[ "MIT" ]
null
null
null
src/ResLoader/data_mgr.cpp
wu1274704958/vulkan_demo
545e00a1fae98e0ff179115887dfa7669b56ccde
[ "MIT" ]
null
null
null
src/ResLoader/data_mgr.cpp
wu1274704958/vulkan_demo
545e00a1fae98e0ff179115887dfa7669b56ccde
[ "MIT" ]
1
2021-12-27T08:40:07.000Z
2021-12-27T08:40:07.000Z
#include <data_mgr.hpp> #include <resource_mgr.hpp> #include <log.hpp> #include <sundry.hpp> #include <serialization.hpp> #include <assimp/scene.h> #include <fileop.hpp> using namespace dbg::literal; //--------------------------------------------------------------------------------------------------------------------...
29.181818
119
0.470405
wu1274704958
1f7b0bfdd5712791868cee25dc91ae687f6177ed
5,023
cpp
C++
testing_environmen/testing_environmen/src/shadows/shadow.cpp
llGuy/gamedev
16aa203934fd767926c58558e021630288556399
[ "MIT" ]
null
null
null
testing_environmen/testing_environmen/src/shadows/shadow.cpp
llGuy/gamedev
16aa203934fd767926c58558e021630288556399
[ "MIT" ]
4
2018-12-24T11:16:53.000Z
2018-12-24T11:20:29.000Z
testing_environmen/testing_environmen/src/shadows/shadow.cpp
llGuy/gamedev
16aa203934fd767926c58558e021630288556399
[ "MIT" ]
null
null
null
/*#include "shadow.h" auto shadow_handler::get_projection(void) -> glm::mat4 & { return projection_matrix; } auto shadow_handler::get_depth_map(void) -> texture & { return depth_map; } auto shadow_handler::get_fbo(void) -> framebuffer & { return depth_fbo; } auto shadow_handler::get_shaders(void) -> program & { return...
39.865079
153
0.724069
llGuy