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
e1d0521998e7d86dd2046322a0b1cf991fec24c9
25,356
cpp
C++
unittests/collection/TransactionalSetTest.cpp
zavadovsky/stingraykit
33e6587535325f08769bd8392381d70d4d316410
[ "0BSD" ]
24
2015-03-04T16:30:03.000Z
2022-02-04T15:03:42.000Z
unittests/collection/TransactionalSetTest.cpp
zavadovsky/stingraykit
33e6587535325f08769bd8392381d70d4d316410
[ "0BSD" ]
null
null
null
unittests/collection/TransactionalSetTest.cpp
zavadovsky/stingraykit
33e6587535325f08769bd8392381d70d4d316410
[ "0BSD" ]
7
2015-04-08T12:22:58.000Z
2018-06-14T09:58:45.000Z
#include <stingraykit/collection/ForEach.h> #include <stingraykit/collection/TransactionalSet.h> #include <stingraykit/signal/ValueFromSignalObtainer.h> #include <gtest/gtest.h> using namespace stingray; namespace { struct DiffCollector { std::set<int> Added; std::set<int> Removed; void Do(const shared_ptr...
34.126514
174
0.710798
zavadovsky
e1d2b7456e3a4f3a1c1adaba06dbd6496ae5dbe1
1,904
cpp
C++
src/game/client/WorldDimsProxy.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
6
2022-01-23T09:40:33.000Z
2022-03-20T20:53:25.000Z
src/game/client/WorldDimsProxy.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
null
null
null
src/game/client/WorldDimsProxy.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
1
2022-02-06T21:05:23.000Z
2022-02-06T21:05:23.000Z
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include "materialsystem/imaterialproxy.h" #include "materialsystem/imaterial.h" #include "materialsystem/imaterialvar.h"...
25.386667
97
0.673845
cstom4994
e1d2d8e48252c17ebf9c04c3403ee04a65bebcbb
8,878
cpp
C++
src/sdk/protocol/ftp.cpp
southbear-club/aru
24a3b28d9a168c28435e9cb5b5c10a2e404042a8
[ "MIT" ]
2
2021-10-21T12:25:23.000Z
2021-10-22T00:38:35.000Z
src/sdk/protocol/ftp.cpp
southbear-club/aru
24a3b28d9a168c28435e9cb5b5c10a2e404042a8
[ "MIT" ]
null
null
null
src/sdk/protocol/ftp.cpp
southbear-club/aru
24a3b28d9a168c28435e9cb5b5c10a2e404042a8
[ "MIT" ]
null
null
null
/** * Copyright © 2021 <wotsen>. * * 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, * ...
28.273885
96
0.596531
southbear-club
e1d3ba04b133d9d887011c65c2f6b099623d3553
2,977
cpp
C++
201924/dec201924_2.cpp
jibsen/aocpp2019
99cda72f6477bde0731c5fc958eebbc2219d6fb3
[ "MIT" ]
2
2020-04-26T17:31:31.000Z
2020-10-03T00:54:16.000Z
201924/dec201924_2.cpp
jibsen/aocpp2019
99cda72f6477bde0731c5fc958eebbc2219d6fb3
[ "MIT" ]
null
null
null
201924/dec201924_2.cpp
jibsen/aocpp2019
99cda72f6477bde0731c5fc958eebbc2219d6fb3
[ "MIT" ]
null
null
null
// // Advent of Code 2019, day 24, part two // #include <algorithm> #include <array> #include <deque> #include <cstdint> #include <fstream> #include <iostream> #include <numeric> #include <string> #include <unordered_set> // 5x5 grid with border of zeroes to make indexing easier using Grid = std::array<std::array<int...
18.490683
81
0.533087
jibsen
e1d919880c54ffbf1ec3ca50b1a4a7290235570b
5,463
cpp
C++
src/python/py_imagecache.cpp
jimhourihan/oiio
8c56b85de41a9c25b27a991b58e773e5b097f613
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/python/py_imagecache.cpp
jimhourihan/oiio
8c56b85de41a9c25b27a991b58e773e5b097f613
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/python/py_imagecache.cpp
jimhourihan/oiio
8c56b85de41a9c25b27a991b58e773e5b097f613
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
// OpenImageIO Copyright 2008- Contributors to the OpenImageIO project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md #include "py_oiio.h" namespace PyOpenImageIO { // Make a special wrapper to help with the weirdo way we use create/destroy. class ImageCacheWr...
36.912162
79
0.541278
jimhourihan
e1dbe5778936ebed7b542f1b7a5020074e4bf64f
28,110
cpp
C++
demos/fps/src/fpsdemo.cpp
littleflylongbow/guichan
aac6dda283bf77d4f7838c4a11ca8fa6325837c4
[ "BSD-3-Clause" ]
16
2015-09-17T19:17:34.000Z
2022-01-27T20:35:51.000Z
demos/fps/src/fpsdemo.cpp
littleflylongbow/guichan
aac6dda283bf77d4f7838c4a11ca8fa6325837c4
[ "BSD-3-Clause" ]
4
2016-05-23T21:20:04.000Z
2017-09-27T06:52:05.000Z
demos/fps/src/fpsdemo.cpp
littleflylongbow/guichan
aac6dda283bf77d4f7838c4a11ca8fa6325837c4
[ "BSD-3-Clause" ]
9
2016-05-14T22:50:37.000Z
2018-11-20T10:51:11.000Z
/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / // / // /_/_ ...
30.992282
166
0.654109
littleflylongbow
e1de490408f803b0e7d83eeace335ba10333b58e
5,511
cpp
C++
Source/CQOR/search.cpp
mfaithfull/QOR
0fa51789344da482e8c2726309265d56e7271971
[ "BSL-1.0" ]
9
2016-05-27T01:00:39.000Z
2021-04-01T08:54:46.000Z
Source/CQOR/search.cpp
mfaithfull/QOR
0fa51789344da482e8c2726309265d56e7271971
[ "BSL-1.0" ]
1
2016-03-03T22:54:08.000Z
2016-03-03T22:54:08.000Z
Source/CQOR/search.cpp
mfaithfull/QOR
0fa51789344da482e8c2726309265d56e7271971
[ "BSL-1.0" ]
4
2016-05-27T01:00:43.000Z
2018-08-19T08:47:49.000Z
//search.cpp // Copyright Querysoft Limited 2013 // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license (the "Software") to use, reproduce, display, distribute, // execute, and transmit the Software...
32.22807
146
0.57231
mfaithfull
e1e0956deb7d9d9a41d27d82ef4d11467705118e
461
cpp
C++
test/src/ctz_test.cpp
MatsuTaku/libbo
e139e1bd81898f22a903a7d43018c93ae2722601
[ "Unlicense" ]
null
null
null
test/src/ctz_test.cpp
MatsuTaku/libbo
e139e1bd81898f22a903a7d43018c93ae2722601
[ "Unlicense" ]
null
null
null
test/src/ctz_test.cpp
MatsuTaku/libbo
e139e1bd81898f22a903a7d43018c93ae2722601
[ "Unlicense" ]
null
null
null
// // Created by 松本拓真 on 2019/11/09. // #include "gtest/gtest.h" #include "bo/ctz.hpp" namespace { constexpr int N = 1<<16; uint64_t rand64() { return uint64_t(random()) | (uint64_t(random()) << 32); } } TEST(Ctz, 64) { for (int i = 0; i < N; i++) { auto val = rand64(); int ctz = 64; for (int j =...
13.969697
57
0.492408
MatsuTaku
e1e279c899340f93353d2387fa7276c2626f8a97
694
cpp
C++
Demo Code/exceptions_example/monkey.cpp
pranavas11/CS162-Introduction-to-CS-II
c17c5c1f844de1be4a49646201d77717394dfdbc
[ "MIT" ]
null
null
null
Demo Code/exceptions_example/monkey.cpp
pranavas11/CS162-Introduction-to-CS-II
c17c5c1f844de1be4a49646201d77717394dfdbc
[ "MIT" ]
null
null
null
Demo Code/exceptions_example/monkey.cpp
pranavas11/CS162-Introduction-to-CS-II
c17c5c1f844de1be4a49646201d77717394dfdbc
[ "MIT" ]
null
null
null
#include <iostream> #include "monkey.h" using namespace std; // This Monkey constructor shows how we can invoke an alternate Animal constructor when the Monkey is created. // It also uses a member initialization list for longest_jump. Monkey::Monkey(string name) : Animal(name, 104), longest_jump(5) { cout << "Default...
33.047619
110
0.704611
pranavas11
e1e406ee1b4f81ba3c31541f115ca6840aee6ff9
7,506
hpp
C++
INCLUDE/Vcl/xslprod.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
1
2022-01-13T01:03:55.000Z
2022-01-13T01:03:55.000Z
INCLUDE/Vcl/xslprod.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
INCLUDE/Vcl/xslprod.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'XSLProd.pas' rev: 6.00 #ifndef XSLProdHPP #define XSLProdHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include <WebComp.h...
45.490909
273
0.74114
earthsiege2
e1e5061464cf0db057e886bfba02a2790b84a139
351
hpp
C++
code/source/physics/b2_fixtureuserdata.hpp
crafn/clover
586acdbcdb34c3550858af125e9bb4a6300343fe
[ "MIT" ]
12
2015-01-12T00:19:20.000Z
2021-08-05T10:47:20.000Z
code/source/physics/b2_fixtureuserdata.hpp
crafn/clover
586acdbcdb34c3550858af125e9bb4a6300343fe
[ "MIT" ]
null
null
null
code/source/physics/b2_fixtureuserdata.hpp
crafn/clover
586acdbcdb34c3550858af125e9bb4a6300343fe
[ "MIT" ]
null
null
null
#ifndef CLOVER_PHYSICS_B2_FIXTUREUSERDATA_HPP #define CLOVER_PHYSICS_B2_FIXTUREUSERDATA_HPP #include "build.hpp" namespace clover { namespace physics { class Fixture; class RigidFixture; struct B2FixtureUserData { B2FixtureUserData():owner(nullptr){} Fixture* owner; }; } // physics } // clover #endif // CLOVER_...
16.714286
47
0.797721
crafn
e1ea32d3be81cf50ce0a7f5b3d2570ee674e7cd8
13,853
cpp
C++
tools/asg-hevc/src/frame_reorder.cpp
VickyZengg/MediaSDK
924da6d0664e77cef46eeef7821694dad140b8df
[ "MIT" ]
782
2017-04-04T15:50:34.000Z
2022-03-31T05:15:00.000Z
tools/asg-hevc/src/frame_reorder.cpp
VickyZengg/MediaSDK
924da6d0664e77cef46eeef7821694dad140b8df
[ "MIT" ]
1,260
2017-04-04T18:48:37.000Z
2022-03-31T01:53:25.000Z
tools/asg-hevc/src/frame_reorder.cpp
VickyZengg/MediaSDK
924da6d0664e77cef46eeef7821694dad140b8df
[ "MIT" ]
538
2017-04-05T00:19:25.000Z
2022-03-31T09:43:35.000Z
// Copyright (c) 2018-2019 Intel Corporation // // 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,...
29.727468
177
0.567314
VickyZengg
e1ee0881d2f63c75bfda109f803494e3604e4d8b
8,354
cpp
C++
src/core/crypto/MasterCredential.cpp
da2ce7/opentxs
03a61c7a65b1dc27ffaa13da1adc053d67ec0ab0
[ "MIT" ]
null
null
null
src/core/crypto/MasterCredential.cpp
da2ce7/opentxs
03a61c7a65b1dc27ffaa13da1adc053d67ec0ab0
[ "MIT" ]
null
null
null
src/core/crypto/MasterCredential.cpp
da2ce7/opentxs
03a61c7a65b1dc27ffaa13da1adc053d67ec0ab0
[ "MIT" ]
null
null
null
/************************************************************ * * OPEN TRANSACTIONS * * Financial Cryptography and Digital Cash * Library, Protocol, API, Server, CLI, GUI * * -- Anonymous Numbered Accounts. * -- Untraceable Digital Cash. * -- Triple-Signed Receipts...
30.600733
80
0.673091
da2ce7
e1ef5179ba0a90abe26d9efff7f1e0cb8c1764f4
3,229
cpp
C++
src/graph/flow/flow min cost.cpp
developer4fun/CompetitiveProgramming
4d3deec1ec1ecb473d31bc3b59fae17524132a54
[ "MIT" ]
1
2022-02-14T14:14:21.000Z
2022-02-14T14:14:21.000Z
src/graph/flow/flow min cost.cpp
developer4fun/CompetitiveProgramming
4d3deec1ec1ecb473d31bc3b59fae17524132a54
[ "MIT" ]
8
2021-03-21T13:38:24.000Z
2021-12-05T02:35:13.000Z
src/graph/flow/flow min cost.cpp
developer4fun/CompetitiveProgramming
4d3deec1ec1ecb473d31bc3b59fae17524132a54
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; const int N = (100 + 5) << 1; const int M = N * (N + 5); class member { public: double x, y, s; member (const int _x, const int _y, const double _s) : x(_x), y(_y), s(_s) {} double dist (const member other) { return sqrt((x - other.x) * (x - oth...
34.72043
134
0.522453
developer4fun
e1f0459f7cb3587f49af82a197e39cd1a38fd519
3,457
cpp
C++
common/BackMem.cpp
cjang/chai
7faba752cc4491d1b30590abef21edc4efffa0f6
[ "Unlicense" ]
11
2015-06-12T19:54:14.000Z
2021-11-26T10:45:18.000Z
common/BackMem.cpp
cjang/chai
7faba752cc4491d1b30590abef21edc4efffa0f6
[ "Unlicense" ]
null
null
null
common/BackMem.cpp
cjang/chai
7faba752cc4491d1b30590abef21edc4efffa0f6
[ "Unlicense" ]
null
null
null
// Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0 #include <stdlib.h> #include "BackMem.hpp" #include "MemCallback.hpp" #include "PrecType.hpp" using namespace std; namespace chai_internal { BackMem::BackMem(const size_t W, const size_t H, const size_...
22.594771
79
0.588082
cjang
e1f45b56acf4661dc7c0d7dcc2c93d53107c9c30
6,536
cpp
C++
Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/responderchain.cpp
dcliche/studioengine
1a18d373b26575b040d014ae2650a1aaeb208a89
[ "Apache-2.0" ]
null
null
null
Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/responderchain.cpp
dcliche/studioengine
1a18d373b26575b040d014ae2650a1aaeb208a89
[ "Apache-2.0" ]
null
null
null
Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/responderchain.cpp
dcliche/studioengine
1a18d373b26575b040d014ae2650a1aaeb208a89
[ "Apache-2.0" ]
null
null
null
// // responderchain.cpp // MDStudio // // Created by Daniel Cliche on 2014-05-23. // Copyright (c) 2014-2021 Daniel Cliche. All rights reserved. // #include "responderchain.h" #include <assert.h> #include "draw.h" #define RESPONDER_CHAIN_DEBUG 0 #define RESPONDER_CHAIN_DEBUG_EVENTS 0 using namespace MDStudio;...
34.765957
120
0.513617
dcliche
e1f713179d2d89d389c043840d7c64d95bd6eb20
1,770
cpp
C++
Baekjoon/1018.cpp
YEAjiJUNG/AlgorithmPractice
720abd9bb3bf1eeadf57402379fdf30921f7c333
[ "Apache-2.0" ]
1
2021-05-21T02:23:38.000Z
2021-05-21T02:23:38.000Z
Baekjoon/1018.cpp
YEAjiJUNG/AlgorithmPractice
720abd9bb3bf1eeadf57402379fdf30921f7c333
[ "Apache-2.0" ]
null
null
null
Baekjoon/1018.cpp
YEAjiJUNG/AlgorithmPractice
720abd9bb3bf1eeadf57402379fdf30921f7c333
[ "Apache-2.0" ]
null
null
null
#include <iostream> #define INT_MAX 2147483647 using namespace std; int comp(char** a, char b[8][8], int st_i, int st_j) { int count = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { //cout << a[i][j] << " " << b[i+st_i][j+st_j] << endl; if (a[i+st_i][j+st_j] != ...
20.344828
66
0.316949
YEAjiJUNG
e1fe2bce223189adfc4ea84fbce91ab8393d3a23
6,745
hh
C++
client/comm/downloader.hh
tinoryj/MetaDedup
361e957e2dad23294670a203ca0b2d58af57b88b
[ "MIT" ]
1
2020-06-15T11:45:30.000Z
2020-06-15T11:45:30.000Z
client/comm/downloader.hh
tinoryj/MetaDedup
361e957e2dad23294670a203ca0b2d58af57b88b
[ "MIT" ]
1
2020-08-01T11:57:20.000Z
2021-04-12T05:59:04.000Z
client/comm/downloader.hh
tinoryj/MetaDedup
361e957e2dad23294670a203ca0b2d58af57b88b
[ "MIT" ]
null
null
null
/* * downloader.hh */ #ifndef __DOWNLOADER_HH__ #define __DOWNLOADER_HH__ #include <arpa/inet.h> #include <cstring> #include <errno.h> #include <fcntl.h> #include <iostream> #include <netinet/in.h> #include <openssl/evp.h> #include <openssl/sha.h> #include <pthread.h> #include <resolv.h> #include <stdio.h> #include...
23.020478
94
0.635434
tinoryj
c008de3c915a9d10fb27c40a18ba0e4862c060d8
1,616
hpp
C++
source/powerups/SpeedUPPowerUP.hpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
source/powerups/SpeedUPPowerUP.hpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
source/powerups/SpeedUPPowerUP.hpp
Stephouuu/Epitech-Bomberman
8650071a6a21ba2e0606e4d8e38794de37bdf39f
[ "Unlicense" ]
null
null
null
// // SpeedUPPowerUP.hpp for indie in /home/galibe_s/irrlicht/irrlicht-1.8.3/test // // Made by stephane galibert // Login <galibe_s@epitech.net> // // Started on Sun May 8 18:34:04 2016 stephane galibert // Last update Sat Jun 4 20:25:42 2016 avelin_j // #ifndef _SPEEDUPPOWERUP_HPP_ # define _SPEEDUPPOWERUP_HPP_...
31.686275
96
0.711634
Stephouuu
c00980cb1c8c3582ba602460d01dd23707d8a3fc
536
cpp
C++
src/loss/kldivergence.cpp
rkuang9/messier-neural-network
24be18b5b4b02b3b881c45a5aaa5e3cf1567c3e3
[ "MIT" ]
null
null
null
src/loss/kldivergence.cpp
rkuang9/messier-neural-network
24be18b5b4b02b3b881c45a5aaa5e3cf1567c3e3
[ "MIT" ]
null
null
null
src/loss/kldivergence.cpp
rkuang9/messier-neural-network
24be18b5b4b02b3b881c45a5aaa5e3cf1567c3e3
[ "MIT" ]
null
null
null
// // Created by R on 12/8/2021. // #include "include/loss/kldivergence.hpp" namespace net { namespace loss { double KLDivergence::loss(const ColumnVector &a, const ColumnVector &expected) { return (expected.array() * (expected.array() / a.array()).log10()).sum(); } ...
23.304348
96
0.576493
rkuang9
c00dc60ee63d9478a1974c0853adfb10ac696283
10,358
hh
C++
src/include/SchemaData.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
src/include/SchemaData.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
src/include/SchemaData.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
// SchemaData.hh // // Copyright 2018 Jeffrey Kintscher <websurfer@surf2c.net> // // 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...
50.526829
152
0.535818
websurfer5
c00e1ddd0d7ebc79e0408c493bbc8b11a54eb6c5
1,500
cpp
C++
algorithms/c++/dijkstra.cpp
siddhantgore/hacktoberfest
d9b2e0483414d0b124e2c8c7c347aef46683d968
[ "Apache-2.0" ]
3
2021-10-03T17:03:41.000Z
2022-02-15T15:18:32.000Z
algorithms/c++/dijkstra.cpp
siddhantgore/hacktoberfest
d9b2e0483414d0b124e2c8c7c347aef46683d968
[ "Apache-2.0" ]
8
2021-10-02T14:09:31.000Z
2021-10-08T07:54:15.000Z
algorithms/c++/dijkstra.cpp
siddhantgore/hacktoberfest
d9b2e0483414d0b124e2c8c7c347aef46683d968
[ "Apache-2.0" ]
25
2021-10-02T10:30:12.000Z
2021-10-10T04:01:56.000Z
#include <iostream> #include <climits> using namespace std; void dijkstra(int **input, int n, int e){ bool visited[n]; int distance[n]; for(int i = 0; i < n; i++){ visited[i] = false; distance[i] = INT_MAX; } distance[0] = 0; int count = 0; while(count < n -...
21.126761
87
0.394
siddhantgore
c00e42aa928a5feebb7550714000212a29b8411a
5,744
cpp
C++
source/android/prJNIAdverts.cpp
pmac1965/proteus
53f366be90739f456c64f09cbec565a0e97b2629
[ "Apache-2.0" ]
1
2019-01-27T14:47:10.000Z
2019-01-27T14:47:10.000Z
source/android/prJNIAdverts.cpp
pmac1965/proteus
53f366be90739f456c64f09cbec565a0e97b2629
[ "Apache-2.0" ]
null
null
null
source/android/prJNIAdverts.cpp
pmac1965/proteus
53f366be90739f456c64f09cbec565a0e97b2629
[ "Apache-2.0" ]
null
null
null
/** * prJNIAdverts.cpp * * Copyright 2014 Paul Michael McNab * * 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 req...
26.716279
108
0.478935
pmac1965
17016e3e5613b396186e81cda068992efa343a26
1,177
cpp
C++
test/unit-test/Classes/TestSCWatchString.cpp
kevinwu1024/SpeedCC
7b32e3444236d8aebf8198ebc3fede8faf201dee
[ "MIT" ]
7
2018-03-10T02:01:49.000Z
2021-09-14T15:42:10.000Z
test/unit-test/Classes/TestSCWatchString.cpp
kevinwu1024/SpeedCC
7b32e3444236d8aebf8198ebc3fede8faf201dee
[ "MIT" ]
null
null
null
test/unit-test/Classes/TestSCWatchString.cpp
kevinwu1024/SpeedCC
7b32e3444236d8aebf8198ebc3fede8faf201dee
[ "MIT" ]
1
2018-03-10T02:01:58.000Z
2018-03-10T02:01:58.000Z
/**************************************************************************** Copyright (c) 2017-2020 Kevin Wu (Wu Feng) github: http://github.com/kevinwu1024 Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a...
30.179487
81
0.64486
kevinwu1024
17075d4ac92d823e914d709f2045660032f1fecd
389
hpp
C++
StickWatch/src/ArduinoJson_6.2.0-beta/ArduinoJson/Polyfills/type_traits/is_array.hpp
stahifpv/StickWatch
b9f2b3824e62b4e2366859559dbb19a531560758
[ "Apache-2.0" ]
83
2019-01-24T01:32:21.000Z
2022-02-20T06:54:43.000Z
src/ArduinoJson_6.2.0-beta/ArduinoJson/Polyfills/type_traits/is_array.hpp
sysdl132/m5stack-stickwatch
968087b9f1b06e64e45699b0f4ac22ffb3e6f2a9
[ "Apache-2.0" ]
5
2019-02-18T12:19:31.000Z
2020-04-26T01:37:47.000Z
src/ArduinoJson_6.2.0-beta/ArduinoJson/Polyfills/type_traits/is_array.hpp
sysdl132/m5stack-stickwatch
968087b9f1b06e64e45699b0f4ac22ffb3e6f2a9
[ "Apache-2.0" ]
27
2019-01-26T14:12:14.000Z
2022-02-28T14:38:14.000Z
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2018 // MIT License #pragma once namespace ArduinoJson { namespace Internals { template <typename T> struct is_array : false_type {}; template <typename T> struct is_array<T[]> : true_type {}; template <typename T, size_t N> struct is_array<T[N]> :...
19.45
38
0.727506
stahifpv
170a2eb40ebba99f4e65173f364aa6d3f9a7ac1a
621
cpp
C++
igvc_perception/src/pointcloud_filter/raycast_filter/raycast_filter_config.cpp
jiajunmao/igvc-software
ea1b11d9bb20e85e5f47aa03f930e9b65877d80c
[ "MIT" ]
100
2015-01-28T23:53:27.000Z
2022-01-27T05:31:36.000Z
igvc_perception/src/pointcloud_filter/raycast_filter/raycast_filter_config.cpp
jiajunmao/igvc-software
ea1b11d9bb20e85e5f47aa03f930e9b65877d80c
[ "MIT" ]
600
2015-01-11T20:27:06.000Z
2022-02-20T21:53:01.000Z
igvc_perception/src/pointcloud_filter/raycast_filter/raycast_filter_config.cpp
jiajunmao/igvc-software
ea1b11d9bb20e85e5f47aa03f930e9b65877d80c
[ "MIT" ]
157
2015-01-29T00:02:27.000Z
2022-01-13T01:12:20.000Z
#include <parameter_assertions/assertions.h> #include <pointcloud_filter/raycast_filter/raycast_filter_config.h> namespace pointcloud_filter { RaycastFilterConfig::RaycastFilterConfig(const ros::NodeHandle &nh) { ros::NodeHandle child_nh{ nh, "raycast_filter" }; assertions::getParam(child_nh, "end_distance", end_...
36.529412
75
0.793881
jiajunmao
170b9e6726e71a2c5929a6f0ec31f2f544b83bfa
382
hh
C++
Cassie_Example/opt_two_step/periodic/c_code/include/frost/gen/swing_toe_linear_velocity_z_LeftStance.hh
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
Cassie_Example/opt_two_step/periodic/c_code/include/frost/gen/swing_toe_linear_velocity_z_LeftStance.hh
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
Cassie_Example/opt_two_step/periodic/c_code/include/frost/gen/swing_toe_linear_velocity_z_LeftStance.hh
prem-chand/Cassie_CFROST
da4bd51442f86e852cbb630cc91c9a380a10b66d
[ "BSD-3-Clause" ]
null
null
null
/* * Automatically Generated from Mathematica. * Fri 5 Nov 2021 09:03:19 GMT-04:00 */ #ifndef SWING_TOE_LINEAR_VELOCITY_Z_LEFTSTANCE_HH #define SWING_TOE_LINEAR_VELOCITY_Z_LEFTSTANCE_HH namespace frost { namespace gen { void swing_toe_linear_velocity_z_LeftStance(double *p_output1, const double *var1);...
23.875
91
0.782723
prem-chand
170c8c00a69932d2fca7c4e8778c7e14f2a702e4
1,077
cpp
C++
Data Structures/Trees/Binary/tree.cpp
QasimWani/Data-Structures-and-Algorithms
14a85c121267c207fb1c7808ce5afbdc10172d16
[ "MIT" ]
34
2020-08-11T18:18:05.000Z
2022-03-01T15:23:19.000Z
Data Structures/Trees/Binary/tree.cpp
QasimWani/Data-Structures-and-Algorithms
14a85c121267c207fb1c7808ce5afbdc10172d16
[ "MIT" ]
null
null
null
Data Structures/Trees/Binary/tree.cpp
QasimWani/Data-Structures-and-Algorithms
14a85c121267c207fb1c7808ce5afbdc10172d16
[ "MIT" ]
6
2020-08-11T19:00:46.000Z
2022-03-01T15:23:20.000Z
#include <iostream> #include <cstdlib> #include "Tree.h" using namespace std; Tree::Tree() { root = NULL; temp = NULL; current = NULL; } Tree::nodePtr Tree::newNode(nodePtr root, int data) { if(root == NULL) { root = getNode(data); return root; } if(data <= root->data) ...
15.169014
51
0.54039
QasimWani
17100009f6b414ec587ad60899e3a87a6f1dac6f
225
cpp
C++
sumofdigrec.cpp
rupeish/basic_c_programs
5aa8f3d5994f5d5dcc0d2fdc0d6acd8ea90eab23
[ "Apache-2.0" ]
null
null
null
sumofdigrec.cpp
rupeish/basic_c_programs
5aa8f3d5994f5d5dcc0d2fdc0d6acd8ea90eab23
[ "Apache-2.0" ]
null
null
null
sumofdigrec.cpp
rupeish/basic_c_programs
5aa8f3d5994f5d5dcc0d2fdc0d6acd8ea90eab23
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int sum(int n) { if(n==0) { return 0; } else { return n%10 + sum(n/10); } } int main() { int n,r; cin>>n; r=sum(n); cout<<r; return 0; }
9.782609
32
0.466667
rupeish
1713134f444783d4663968d508cb44fb3bbabdcf
201
cc
C++
docxbox/helper/helper_numeric.cc
LucasBornhauser/docxbox
1a198374c92b71b713e45ea71f5567854699d37d
[ "MIT" ]
null
null
null
docxbox/helper/helper_numeric.cc
LucasBornhauser/docxbox
1a198374c92b71b713e45ea71f5567854699d37d
[ "MIT" ]
null
null
null
docxbox/helper/helper_numeric.cc
LucasBornhauser/docxbox
1a198374c92b71b713e45ea71f5567854699d37d
[ "MIT" ]
null
null
null
// Copyright (c) 2020 gyselroth GmbH #include <cstdio> #include <cstdint> #include "helper_numeric.h" namespace helper { bool Numeric::IsEven(int n) { return n % 2 == 0; } } // namespace helper
14.357143
36
0.676617
LucasBornhauser
1715ac758f1f28298011512cbd33ad640c6ae8e2
30,181
cpp
C++
Engine/source/T3D/lighting/reflectionProbe.cpp
Parcons/Torque3D
516163fd5debea9c91b558046d858f5f56fc198d
[ "MIT" ]
null
null
null
Engine/source/T3D/lighting/reflectionProbe.cpp
Parcons/Torque3D
516163fd5debea9c91b558046d858f5f56fc198d
[ "MIT" ]
null
null
null
Engine/source/T3D/lighting/reflectionProbe.cpp
Parcons/Torque3D
516163fd5debea9c91b558046d858f5f56fc198d
[ "MIT" ]
null
null
null
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
29.882178
240
0.684735
Parcons
1718f0f0c3e11269171165cb174bab98602a3024
2,062
cpp
C++
aws-cpp-sdk-signer/source/model/PutSigningProfileRequest.cpp
grujicbr/aws-sdk-cpp
bdd43c178042f09c6739645e3f6cd17822a7c35c
[ "Apache-2.0" ]
1
2020-03-11T05:36:20.000Z
2020-03-11T05:36:20.000Z
aws-cpp-sdk-signer/source/model/PutSigningProfileRequest.cpp
novaquark/aws-sdk-cpp
a0969508545bec9ae2864c9e1e2bb9aff109f90c
[ "Apache-2.0" ]
null
null
null
aws-cpp-sdk-signer/source/model/PutSigningProfileRequest.cpp
novaquark/aws-sdk-cpp
a0969508545bec9ae2864c9e1e2bb9aff109f90c
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
24.258824
100
0.748303
grujicbr
171d926562f1d35bc4987968ca4419a052528324
1,345
cpp
C++
userspace/gui/TrayIcon.cpp
scross99/bandwidth-monitor
79bc5a6d5ad4a47bf08edf2d6e6f34a6e2805aaf
[ "MIT" ]
null
null
null
userspace/gui/TrayIcon.cpp
scross99/bandwidth-monitor
79bc5a6d5ad4a47bf08edf2d6e6f34a6e2805aaf
[ "MIT" ]
null
null
null
userspace/gui/TrayIcon.cpp
scross99/bandwidth-monitor
79bc5a6d5ad4a47bf08edf2d6e6f34a6e2805aaf
[ "MIT" ]
null
null
null
#include <sstream> #include <string> #include <iostream> #include <QtGui> #include <common/Bandwidth.hpp> #include <common/Display.hpp> #include <common/ULong.hpp> #include <gui/TrayIcon.h> #include <gui/Window.h> TrayIcon::TrayIcon(Window& window) : window_(window){ QAction * quitAction = new QAction(tr("&Quit")...
24.454545
146
0.717472
scross99
171e1aaccff6ac80ceb3cf65e689a0638ffd4fe6
31,948
cpp
C++
src/test/versionbits_tests.cpp
minblock/picscoin
db81f0f3468a131685fd27b1ea3f51028e1e87e7
[ "MIT" ]
2
2019-07-13T00:29:52.000Z
2020-02-13T17:24:29.000Z
src/test/versionbits_tests.cpp
minblock/picscoin
db81f0f3468a131685fd27b1ea3f51028e1e87e7
[ "MIT" ]
2
2019-03-05T10:03:26.000Z
2021-12-18T17:33:26.000Z
src/test/versionbits_tests.cpp
newworld121/anticcpcoin
2067411dad3cb08a58dfa84cabe164c09f7e65b4
[ "MIT" ]
1
2019-05-08T17:40:58.000Z
2019-05-08T17:40:58.000Z
// Copyright (c) 2014-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> #include <chainparams.h> #include <consensus/params.h> #include <test/util/setup_common.h> #include <valid...
56.64539
186
0.6653
minblock
17208473fc923f31fa2f3f519f8a0087d4c0e65c
4,752
hpp
C++
include/pfs/io/unix_file.hpp
semenovf/io-lib
6e008d0eac584194333f055c90d4810f0bbb74f6
[ "MIT" ]
null
null
null
include/pfs/io/unix_file.hpp
semenovf/io-lib
6e008d0eac584194333f055c90d4810f0bbb74f6
[ "MIT" ]
null
null
null
include/pfs/io/unix_file.hpp
semenovf/io-lib
6e008d0eac584194333f055c90d4810f0bbb74f6
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2019 Vladislav Trifochkin // // This file is part of [pfs-io](https://github.com/semenovf/pfs-io) library. // // Changelog: // 2019.10.15 Initial version ///////////////////////////////////////////////////////////////...
24.621762
80
0.570497
semenovf
1721f66e653ce7114bcd0c2072fdb9b893bb9632
732
hpp
C++
Drain/Drain/PointStroke.hpp
maxrchung/Drain
291162fe8256e84551cfb094178e22734c8892b6
[ "MIT" ]
1
2018-06-05T05:30:16.000Z
2018-06-05T05:30:16.000Z
Drain/Drain/PointStroke.hpp
maxrchung/Drain
291162fe8256e84551cfb094178e22734c8892b6
[ "MIT" ]
null
null
null
Drain/Drain/PointStroke.hpp
maxrchung/Drain
291162fe8256e84551cfb094178e22734c8892b6
[ "MIT" ]
null
null
null
#pragma once #include "Stroke.hpp" class PointStroke : public Stroke { public: explicit PointStroke(const Vector2& startPosition); float calculateLength() const; Vector2 getEndPosition() const; Vector2 getStartPosition() const; void createPoints(const Vector2& position, const float scale); void createSprites(cons...
29.28
64
0.736339
maxrchung
17246a21baf63ddc37832e28847fdeacc76af9b1
12,816
hpp
C++
src/Providers/UNIXProviders/FileSystem/UNIX_FileSystem_FREEBSD.hpp
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
1
2020-10-12T09:00:09.000Z
2020-10-12T09:00:09.000Z
src/Providers/UNIXProviders/FileSystem/UNIX_FileSystem_FREEBSD.hpp
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
null
null
null
src/Providers/UNIXProviders/FileSystem/UNIX_FileSystem_FREEBSD.hpp
brunolauze/openpegasus-providers-old
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
[ "MIT" ]
null
null
null
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
22.211438
93
0.757491
brunolauze
17250a4d0df1ee8604c3bc2a4f57f15e5eaaaf0a
4,211
cpp
C++
src/lines/provider/lines_provider.cpp
AlexCasual/rvisioncase
ebe8d933dcb842fcd5276f27197152187f2c4a6b
[ "MIT" ]
null
null
null
src/lines/provider/lines_provider.cpp
AlexCasual/rvisioncase
ebe8d933dcb842fcd5276f27197152187f2c4a6b
[ "MIT" ]
null
null
null
src/lines/provider/lines_provider.cpp
AlexCasual/rvisioncase
ebe8d933dcb842fcd5276f27197152187f2c4a6b
[ "MIT" ]
null
null
null
#include "lines_provider.hpp" namespace rvision { lines_provider::lines_provider(const std::unordered_map<std::string, std::uint32_t>& sports, const std::string& host, const std::string& api, const std::string& db, std::shared_ptr<rvision::core::logger> logger) : m_host(host), m_api(api), m_logger(logger), m_db(db,...
24.062857
212
0.651152
AlexCasual
172558dec95966d9307adb18541a44ddd035e41e
5,422
cpp
C++
src/gpu/effects/GrSimpleTextureEffect.cpp
glennw/skia
79aa9354837bc195b83fa041b9632ea628e6f7d0
[ "BSD-3-Clause" ]
null
null
null
src/gpu/effects/GrSimpleTextureEffect.cpp
glennw/skia
79aa9354837bc195b83fa041b9632ea628e6f7d0
[ "BSD-3-Clause" ]
null
null
null
src/gpu/effects/GrSimpleTextureEffect.cpp
glennw/skia
79aa9354837bc195b83fa041b9632ea628e6f7d0
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrSimpleTextureEffect.h" #include "gl/GrGLEffect.h" #include "gl/GrGLEffectMatrix.h" #include "gl/GrGLSL.h" #include "gl/GrGLTexture.h" #include "GrTBackendEffectFac...
42.031008
100
0.597197
glennw
17271f1d53abafbadfa7eb7fc4ff500b9d28ed08
4,998
cpp
C++
Hydrodynamix/Test/ModelFileTest/ModelFileTest.cpp
fechbmaster/particleengine
742558f331aebabbab76869f12185c03529ade7c
[ "MIT" ]
null
null
null
Hydrodynamix/Test/ModelFileTest/ModelFileTest.cpp
fechbmaster/particleengine
742558f331aebabbab76869f12185c03529ade7c
[ "MIT" ]
null
null
null
Hydrodynamix/Test/ModelFileTest/ModelFileTest.cpp
fechbmaster/particleengine
742558f331aebabbab76869f12185c03529ade7c
[ "MIT" ]
null
null
null
/* * The MIT License (MIT) * * Copyright (c) 2015 Hydrodynamix * * 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 * t...
33.77027
167
0.628651
fechbmaster
1729a5a6aeb090d3b44888575e5787d2882c6627
640
cpp
C++
cpp/p80.cpp
voltrevo/project-euler
0db5451f72b1353b295e56f928c968801e054444
[ "MIT" ]
null
null
null
cpp/p80.cpp
voltrevo/project-euler
0db5451f72b1353b295e56f928c968801e054444
[ "MIT" ]
null
null
null
cpp/p80.cpp
voltrevo/project-euler
0db5451f72b1353b295e56f928c968801e054444
[ "MIT" ]
null
null
null
#include <cassert> #include <iostream> #include "gmpxx.h" int main() { int s = 2; mpz_class twoHundredZeros = 1; for (int i = 0; i != 200; ++i) twoHundredZeros *= 10; mpz_class sum = 0; for (int i = 2; i != 100; ++i) { if (i == s * s) { ++s; ...
16.410256
53
0.3875
voltrevo
172bbf5137fc9c9b94ef7b3a3beaee2555a0778e
8,406
hpp
C++
Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_ParserSrc_.hpp
MarkStega/CIDLib
82014e064eef51cad998bf2c694ed9c1c8cceac6
[ "MIT" ]
216
2019-03-09T06:41:28.000Z
2022-02-25T16:27:19.000Z
Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_ParserSrc_.hpp
MarkStega/CIDLib
82014e064eef51cad998bf2c694ed9c1c8cceac6
[ "MIT" ]
9
2020-09-27T08:00:52.000Z
2021-07-02T14:27:31.000Z
Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_ParserSrc_.hpp
MarkStega/CIDLib
82014e064eef51cad998bf2c694ed9c1c8cceac6
[ "MIT" ]
29
2019-03-09T10:12:24.000Z
2021-03-03T22:25:29.000Z
// // FILE NAME: CIDMacroEng_ParserSrc_.hpp // // AUTHOR: Dean Roddey // // CREATED: 01/27/2003 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://op...
33.225296
80
0.500595
MarkStega
172f12eb5ca18ab0cb238685952332bd9835f717
1,782
hpp
C++
inst/include/spress/utils.hpp
UFOKN/spress
8073fde53ced4f006634f761e6f90517ccf2f229
[ "MIT" ]
1
2021-12-09T22:16:27.000Z
2021-12-09T22:16:27.000Z
inst/include/spress/utils.hpp
UFOKN/spress
8073fde53ced4f006634f761e6f90517ccf2f229
[ "MIT" ]
null
null
null
inst/include/spress/utils.hpp
UFOKN/spress
8073fde53ced4f006634f761e6f90517ccf2f229
[ "MIT" ]
null
null
null
#pragma once #ifndef _SPRESS_UTILS_H_ #define _SPRESS_UTILS_H_ #include <vector> #include <algorithm> #include <numeric> #include "grid.hpp" using std::abs; using std::size_t; using std::vector; namespace spress { namespace utils { /** * Get the index of the closest value in a vector from some other value. * @par...
23.76
78
0.622896
UFOKN
1734e56fdbe0794dc580522b33c7fe6e24d6de92
1,180
cpp
C++
Codeforces 230B.cpp
Jvillegasd/Codeforces
ffdd2d5db1dabc7ff76f8f92270c79233a77b933
[ "MIT" ]
null
null
null
Codeforces 230B.cpp
Jvillegasd/Codeforces
ffdd2d5db1dabc7ff76f8f92270c79233a77b933
[ "MIT" ]
null
null
null
Codeforces 230B.cpp
Jvillegasd/Codeforces
ffdd2d5db1dabc7ff76f8f92270c79233a77b933
[ "MIT" ]
null
null
null
#include <iostream> #include <math.h> #include <string.h> using namespace std; bool prime[1000010]; void sieveOfErathostenes(){ memset(prime, true, sizeof(prime)); prime[0] = prime[1] = false; for(int i = 2; i < 1000010; i++){ if(prime[i]){ for (int j = 2*i; j < 1000010; j+=i) prime[j...
29.5
103
0.605932
Jvillegasd
17356006a2c6ce36842cf1b17118361d024ed742
651
cpp
C++
1502_can_make_arithmetic_progression/can_make_arithmetic_progression.cpp
Mengsen-W/algorithm
66216b8601e416343a2cc191bd0f2f12eb282262
[ "BSD-3-Clause" ]
null
null
null
1502_can_make_arithmetic_progression/can_make_arithmetic_progression.cpp
Mengsen-W/algorithm
66216b8601e416343a2cc191bd0f2f12eb282262
[ "BSD-3-Clause" ]
null
null
null
1502_can_make_arithmetic_progression/can_make_arithmetic_progression.cpp
Mengsen-W/algorithm
66216b8601e416343a2cc191bd0f2f12eb282262
[ "BSD-3-Clause" ]
null
null
null
/* * @Author: Mengsen.Wang * @Date: 2021-02-18 09:45:30 * @Last Modified by: Mengsen.Wang * @Last Modified time: 2021-02-18 09:48:07 */ #include <algorithm> #include <cassert> #include <vector> using namespace std; bool can_make_arithmetic_progression(vector<int>& arr) { sort(arr.begin(), arr.end()); const ...
21.7
56
0.632873
Mengsen-W
1739631ca9bf8c46c05611c72ac024c73afd5e98
3,392
cpp
C++
src/repair.cpp
clockley/watchdogd
7f03ad9a7317a11f246d29bce411d1e50265aa0e
[ "Apache-2.0" ]
17
2016-03-22T12:20:07.000Z
2022-01-24T17:49:39.000Z
src/repair.cpp
clockley/watchdogd
7f03ad9a7317a11f246d29bce411d1e50265aa0e
[ "Apache-2.0" ]
1
2021-10-04T17:35:13.000Z
2021-10-05T16:55:46.000Z
src/repair.cpp
clockley/watchdogd
7f03ad9a7317a11f246d29bce411d1e50265aa0e
[ "Apache-2.0" ]
1
2021-12-05T13:23:26.000Z
2021-12-05T13:23:26.000Z
/* * Copyright 2013-2020 Christian Lockley * * 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 agr...
19.836257
87
0.622052
clockley
1740a260ffe7fd01c161f2ccf194740a4c237842
3,342
cpp
C++
GCode/Dialog.cpp
sinzens/GCode
5341a603b6cda956aed52646e2747f56532f8570
[ "OLDAP-2.5" ]
1
2020-09-26T11:14:01.000Z
2020-09-26T11:14:01.000Z
GCode/Dialog.cpp
sinzens/GCode
5341a603b6cda956aed52646e2747f56532f8570
[ "OLDAP-2.5" ]
null
null
null
GCode/Dialog.cpp
sinzens/GCode
5341a603b6cda956aed52646e2747f56532f8570
[ "OLDAP-2.5" ]
null
null
null
#include "Dialog.h" #include "ui_Dialog.h" #include "MainWindow.h" #include "OptionWindow.h" #include <QMouseEvent> #include <QDebug> #include <QPainter> typedef void doNothing; Dialog::Dialog(QWidget* parent, ParentType parentType_) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); this->p...
23.702128
86
0.633453
sinzens
1746c7d23694fa18825adb8401bd27b7d52683a7
5,046
cpp
C++
boost/boost_1_56_0/libs/geometry/test/algorithms/transform.cpp
cooparation/caffe-android
cd91078d1f298c74fca4c242531989d64a32ba03
[ "BSD-2-Clause-FreeBSD" ]
3
2018-11-02T07:15:32.000Z
2018-12-15T19:56:59.000Z
boost/boost_1_56_0/libs/geometry/test/algorithms/transform.cpp
cooparation/caffe-android
cd91078d1f298c74fca4c242531989d64a32ba03
[ "BSD-2-Clause-FreeBSD" ]
2
2017-11-18T21:24:03.000Z
2020-03-11T12:39:57.000Z
boost/boost_1_56_0/libs/geometry/test/algorithms/transform.cpp
cooparation/caffe-android
cd91078d1f298c74fca4c242531989d64a32ba03
[ "BSD-2-Clause-FreeBSD" ]
3
2017-01-02T14:11:37.000Z
2019-12-20T13:42:13.000Z
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic L...
32.554839
91
0.67281
cooparation
1746c7fd995941c1e5fd5d2ab4dc51f2294b9cf5
6,272
cpp
C++
telnetpp/src/detail/parse_helper.cpp
CalielOfSeptem/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
1
2017-03-30T14:31:33.000Z
2017-03-30T14:31:33.000Z
telnetpp/src/detail/parse_helper.cpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
telnetpp/src/detail/parse_helper.cpp
HoraceWeebler/septem
fe7a615eb6c279d3746ee78de8864b5e07bf7e3e
[ "MIT" ]
null
null
null
#include "telnetpp/detail/parse_helper.hpp" #include "telnetpp/detail/lambda_visitor.hpp" #include "telnetpp/protocol.hpp" #include <cassert> namespace telnetpp { namespace detail { namespace { //* ========================================================================= /// \brief Given a set of elements, either ap...
29.866667
79
0.451212
CalielOfSeptem
175094dea7905304ddbbcc33c8cfa5202e238503
1,547
hpp
C++
Kernel/include/Projector.hpp
Asmmax/CurveProjector
88597f7f780cc1503f6fa597955d45e5e8c745b1
[ "MIT" ]
null
null
null
Kernel/include/Projector.hpp
Asmmax/CurveProjector
88597f7f780cc1503f6fa597955d45e5e8c745b1
[ "MIT" ]
null
null
null
Kernel/include/Projector.hpp
Asmmax/CurveProjector
88597f7f780cc1503f6fa597955d45e5e8c745b1
[ "MIT" ]
null
null
null
#pragma once #include "ApproxDouble.hpp" #include "Point.hpp" #include "Segment.hpp" #include <vector> #include <list> /** * Struct defines a projection data such as segment number, projection param and point. */ struct Projection { unsigned int segmentId; ApproxDouble param; Point point; }; /** * Class is res...
24.951613
98
0.734971
Asmmax
1753762eec762bdbd93f75d80262c3d582fde498
499
cpp
C++
VRExpansionPlugin/Source/VRExpansionPlugin/Private/VRGripInterface.cpp
FishingCactus/VRExpansionPlugin
045adea6751723df5d7e5d2520e0e9bdbd413fae
[ "MIT" ]
240
2019-10-14T09:12:41.000Z
2022-03-29T19:49:00.000Z
VRExpansionPlugin/Source/VRExpansionPlugin/Private/VRGripInterface.cpp
FishingCactus/VRExpansionPlugin
045adea6751723df5d7e5d2520e0e9bdbd413fae
[ "MIT" ]
17
2020-07-08T12:53:59.000Z
2022-03-31T17:35:45.000Z
VRExpansionPlugin/Source/VRExpansionPlugin/Private/VRGripInterface.cpp
FishingCactus/VRExpansionPlugin
045adea6751723df5d7e5d2520e0e9bdbd413fae
[ "MIT" ]
58
2020-06-08T06:50:37.000Z
2022-03-11T18:53:24.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "VRGripInterface.h" #include "UObject/ObjectMacros.h" #include "UObject/Interface.h" UVRGripInterface::UVRGripInterface(const class FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { } void IVRG...
29.352941
181
0.797595
FishingCactus
1753ded48d2be3f6333f60e096c023ebc0298d28
1,194
cpp
C++
DeleteDuplicateinList.cpp
ChenliangLi205/NowCoder
44e79800b56410d1094f18fbb656fadf724b7b21
[ "MIT" ]
null
null
null
DeleteDuplicateinList.cpp
ChenliangLi205/NowCoder
44e79800b56410d1094f18fbb656fadf724b7b21
[ "MIT" ]
null
null
null
DeleteDuplicateinList.cpp
ChenliangLi205/NowCoder
44e79800b56410d1094f18fbb656fadf724b7b21
[ "MIT" ]
null
null
null
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ListNode* deleteDuplication(ListNode* pHead) { if(pHead == nullptr) return pHead; ListNode* cur = pHead, * prev=nullptr; map<int, int> node...
23.411765
63
0.374372
ChenliangLi205
17576d15e2aaaa770f97a3913fdf329e6fd3a8b7
4,946
hpp
C++
firmware/library/L3_Application/graphics.hpp
Adam-D-Sanchez/SJSU-Dev2
ecb5bb01912f6f85a76b6715d0e72f2d3062ceed
[ "Apache-2.0" ]
null
null
null
firmware/library/L3_Application/graphics.hpp
Adam-D-Sanchez/SJSU-Dev2
ecb5bb01912f6f85a76b6715d0e72f2d3062ceed
[ "Apache-2.0" ]
null
null
null
firmware/library/L3_Application/graphics.hpp
Adam-D-Sanchez/SJSU-Dev2
ecb5bb01912f6f85a76b6715d0e72f2d3062ceed
[ "Apache-2.0" ]
null
null
null
#pragma once #include <algorithm> #include <cmath> #include <cstddef> #include <cstdint> #include "L2_HAL/displays/pixel_display.hpp" #include "third_party/font8x8/font8x8_basic.h" #include "utility/log.hpp" class Graphics { public: explicit Graphics(PixelDisplayInterface * display) : display_(display), col...
25.626943
80
0.51941
Adam-D-Sanchez
175cd70df6e668df8941ccb2566e6864ac71e23f
1,021
cpp
C++
3DEngine2/src/rendering/PixelShader.cpp
rainnymig/ThreeDeeEngine-2
3f4c00cbf1c816072a020d850095295da6c29ccb
[ "BSD-3-Clause" ]
null
null
null
3DEngine2/src/rendering/PixelShader.cpp
rainnymig/ThreeDeeEngine-2
3f4c00cbf1c816072a020d850095295da6c29ccb
[ "BSD-3-Clause" ]
null
null
null
3DEngine2/src/rendering/PixelShader.cpp
rainnymig/ThreeDeeEngine-2
3f4c00cbf1c816072a020d850095295da6c29ccb
[ "BSD-3-Clause" ]
null
null
null
#include "pch.h" #include "rendering/PixelShader.h" namespace tde { PixelShader::PixelShader(LPCWSTR aPsPath, ID3D11Device* apDevice) { Microsoft::WRL::ComPtr<ID3DBlob> pPixelShaderBlob; D3DReadFileToBlob(aPsPath, pPixelShaderBlob.ReleaseAndGetAddressOf()); apDevice->CreatePixelShader( pPixelShaderBlob->Get...
22.688889
72
0.742409
rainnymig
17612fe9f3de5d876233491e52e9f9d0cc0671c9
2,302
cpp
C++
CppHit/Sword64/AA-Pt4/ac44.cpp
nemOoO-wang/CPPHit
79e17c1c1a07ad312f52b0eb9b611a81176b53b8
[ "MIT" ]
null
null
null
CppHit/Sword64/AA-Pt4/ac44.cpp
nemOoO-wang/CPPHit
79e17c1c1a07ad312f52b0eb9b611a81176b53b8
[ "MIT" ]
null
null
null
CppHit/Sword64/AA-Pt4/ac44.cpp
nemOoO-wang/CPPHit
79e17c1c1a07ad312f52b0eb9b611a81176b53b8
[ "MIT" ]
null
null
null
// // ac44.cpp // CppHit // // Created by 王镓洲 on 2018/10/7. // Copyright © 2018 王镓洲. All rights reserved. // // 汇编语言中有一种移位指令叫做循环左移(ROL),现在有个简单的任务,就是用字符串模拟这个指令的运算结果。对于一个给定的字符序列S,请你把其循环左移K位后的序列输出。例如,字符序列S=”abcXYZdef”,要求输出循环左移3位后的结果,即“XYZdefabc” #include <stdio.h> # pragma mark - 字符串翻转 YX=(XTYT)T /* 无力吐槽你们的做法了,这种A...
24.752688
156
0.455691
nemOoO-wang
1762ede6f3496b4dd0bba1348afe66a0817c8486
3,133
cpp
C++
ConvertVideo/Window.cpp
kielnow/PGC_ConvertVideo
0e67cab69857bb753f584a0fe183a3144b00f66a
[ "MIT" ]
null
null
null
ConvertVideo/Window.cpp
kielnow/PGC_ConvertVideo
0e67cab69857bb753f584a0fe183a3144b00f66a
[ "MIT" ]
null
null
null
ConvertVideo/Window.cpp
kielnow/PGC_ConvertVideo
0e67cab69857bb753f584a0fe183a3144b00f66a
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Window.h" using namespace zen; wstring Window::gClassName = L"zen::WindowClass"; Window::DESC Window::DEFAULT_DESC = { L"New Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, false, }; Window::Window(const DESC &desc) { cre...
17.902857
125
0.713374
kielnow
1763213697df8c72a65e775d065ba404ae028592
15,903
cpp
C++
src/engine/ticker.cpp
TurkMvc/lol
c3fb98c6f371e4648891b59b4adc6cb95ae73451
[ "WTFPL" ]
null
null
null
src/engine/ticker.cpp
TurkMvc/lol
c3fb98c6f371e4648891b59b4adc6cb95ae73451
[ "WTFPL" ]
null
null
null
src/engine/ticker.cpp
TurkMvc/lol
c3fb98c6f371e4648891b59b4adc6cb95ae73451
[ "WTFPL" ]
null
null
null
// // Lol Engine // // Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net> // // Lol Engine is free software. It comes without any warranty, to // the extent permitted by applicable law. You can redistribute it // and/or modify it under the terms of the Do What the Fuck You Want // to Public License, Version 2, a...
27.138225
123
0.538641
TurkMvc
1764aa6a74ea1a01fee24fee16239c0dd7537ba8
17
cc
C++
src/main/c++/novemberizing/io.cc
iticworld/reactive-lib
9ab761376776e759390fa417d50921ec6e8a898a
[ "Apache-2.0" ]
1
2020-10-10T11:57:15.000Z
2020-10-10T11:57:15.000Z
src/main/c++/novemberizing/io.cc
iticworld/reactive-lib
9ab761376776e759390fa417d50921ec6e8a898a
[ "Apache-2.0" ]
null
null
null
src/main/c++/novemberizing/io.cc
iticworld/reactive-lib
9ab761376776e759390fa417d50921ec6e8a898a
[ "Apache-2.0" ]
null
null
null
#include "io.hh"
8.5
16
0.647059
iticworld
1765f8c6a807b6018b96dfaac1aae81e3078bc81
779
cpp
C++
src/main/cpp/Demo.cpp
DaltonMcCart/csc232-lab09
99d03060c692cbe96447df32d7a66c10ffdb318a
[ "MIT" ]
null
null
null
src/main/cpp/Demo.cpp
DaltonMcCart/csc232-lab09
99d03060c692cbe96447df32d7a66c10ffdb318a
[ "MIT" ]
null
null
null
src/main/cpp/Demo.cpp
DaltonMcCart/csc232-lab09
99d03060c692cbe96447df32d7a66c10ffdb318a
[ "MIT" ]
null
null
null
/** * CSC232 - Data Structures with C++ * Missouri State University, Spring 2019 * * @file Demo.cpp * @authors Jim Daehn <jdaehn@missouristate.edu> */ #include <cstdlib> #include <iostream> #include <fstream> #include <string> #include <vector> #include "HealthTracker.h" int main(int argc, char* argv[])...
20.5
63
0.602054
DaltonMcCart
17679664e9e2eb24012370caddc8a3c98e58dc56
13,256
cpp
C++
apps/HelloAndroidCamera2/jni/native.cpp
champyen/Halide
8c0dbba26971c4b2a0adbb4c45aac2688642401d
[ "MIT" ]
1
2021-08-16T13:10:03.000Z
2021-08-16T13:10:03.000Z
apps/HelloAndroidCamera2/jni/native.cpp
champyen/Halide
8c0dbba26971c4b2a0adbb4c45aac2688642401d
[ "MIT" ]
null
null
null
apps/HelloAndroidCamera2/jni/native.cpp
champyen/Halide
8c0dbba26971c4b2a0adbb4c45aac2688642401d
[ "MIT" ]
null
null
null
#include <jni.h> #include <android/log.h> #include <android/bitmap.h> #include <android/native_window_jni.h> #include <algorithm> #include <stdlib.h> #include <string.h> #include <time.h> #include "deinterleave.h" #include "edge_detect.h" #include "HalideRuntime.h" #include "HalideRuntimeOpenCL.h" #define LOGD(...) ...
36.822222
92
0.651403
champyen
176cf90dcbad9f4f9cb19b2bc14135209a8196f5
442
cpp
C++
800 Codeforces Solutions/71A_Way_Too_Long_Words.cpp
ShubhamRattra/Competitive-Coding-Section
f04f55a3413ed74611f6381bfbdaa65e9ecac076
[ "MIT" ]
null
null
null
800 Codeforces Solutions/71A_Way_Too_Long_Words.cpp
ShubhamRattra/Competitive-Coding-Section
f04f55a3413ed74611f6381bfbdaa65e9ecac076
[ "MIT" ]
null
null
null
800 Codeforces Solutions/71A_Way_Too_Long_Words.cpp
ShubhamRattra/Competitive-Coding-Section
f04f55a3413ed74611f6381bfbdaa65e9ecac076
[ "MIT" ]
null
null
null
//code by Nikhil Nagrale //nikhilnagrale2 on EveryPlatform else nknagrale #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(n--){ string s; cin>>s; if(s.length()>10){ string ans; ans.push_back(s.front()); ans+=to_string...
21.047619
48
0.504525
ShubhamRattra
176dc2251041e70a79cb0367f48f9da49daf530d
10,929
cpp
C++
codecs/tga.cpp
mattvchandler/asciiart
65eeb38aa42b98d49ce15bb2cc3a98950edb18cc
[ "MIT" ]
5
2020-06-02T18:05:43.000Z
2022-02-19T10:44:47.000Z
codecs/tga.cpp
mattvchandler/asciiart
65eeb38aa42b98d49ce15bb2cc3a98950edb18cc
[ "MIT" ]
null
null
null
codecs/tga.cpp
mattvchandler/asciiart
65eeb38aa42b98d49ce15bb2cc3a98950edb18cc
[ "MIT" ]
1
2021-11-29T15:32:54.000Z
2021-11-29T15:32:54.000Z
#include "tga.hpp" #include <stdexcept> #include "binio.hpp" struct Tga_data { bool rle_compressed {false}; enum class Color_type: std::uint8_t { indexed=1, color=2, grayscale=3 } color; std::uint16_t width {0}; std::uint16_t height {0}; std::uint8_t bpp {0}; bool bottom_to_top { true}; ...
33.018127
290
0.546802
mattvchandler
176ddfd7c7b40db1817564042e59b606cc911eda
2,148
cpp
C++
src/gameserver/module/_stdcommand.cpp
mage-game/metagame-server-engine
8b6eb0a258d6dae4330cb3be769de162874841ed
[ "MIT" ]
4
2021-12-16T13:57:26.000Z
2022-03-26T07:49:42.000Z
src/gameserver/module/_stdcommand.cpp
mage-game/metagame-server-engine
8b6eb0a258d6dae4330cb3be769de162874841ed
[ "MIT" ]
null
null
null
src/gameserver/module/_stdcommand.cpp
mage-game/metagame-server-engine
8b6eb0a258d6dae4330cb3be769de162874841ed
[ "MIT" ]
1
2022-03-26T07:49:46.000Z
2022-03-26T07:49:46.000Z
#include <string> #include <iostream> #include "iconfigmodule.h" #include "ilogmodule.h" #include "utility/configpath.h" #include "_stdcommand.h" #include "common/platform/thread/thread.h" #include "common/platform/thread/threadqueue.h" namespace stdcommandglobal { typedef _ThreadQueue<std::string> CommandQueue; ...
17.752066
95
0.731378
mage-game
176ef18e0ab88fa1180f74f287be5ecdea1573e7
2,522
cpp
C++
src/input/FuzzyMatch.cpp
MaximilianAzendorf/wassign
8c642e459f6566b4eedab40327351f9e79f3a504
[ "Apache-2.0" ]
3
2021-04-13T13:23:06.000Z
2021-07-22T12:45:07.000Z
src/input/FuzzyMatch.cpp
MaximilianAzendorf/wassign
8c642e459f6566b4eedab40327351f9e79f3a504
[ "Apache-2.0" ]
null
null
null
src/input/FuzzyMatch.cpp
MaximilianAzendorf/wassign
8c642e459f6566b4eedab40327351f9e79f3a504
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020 Maximilian Azendorf * * 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 ag...
24.25
107
0.598731
MaximilianAzendorf
17722467bd5b144c9e8d88f29c223dfa6e2837fb
15,604
cpp
C++
verilate/core-ver-src/decode/ori/decode.cpp
chao0502/aquila
48517c49470c53d1015b31358d128865d5b7b662
[ "BSD-3-Clause" ]
null
null
null
verilate/core-ver-src/decode/ori/decode.cpp
chao0502/aquila
48517c49470c53d1015b31358d128865d5b7b662
[ "BSD-3-Clause" ]
null
null
null
verilate/core-ver-src/decode/ori/decode.cpp
chao0502/aquila
48517c49470c53d1015b31358d128865d5b7b662
[ "BSD-3-Clause" ]
null
null
null
#include "decode.h" #define instruction_count 65 int main() { //cout<<"1"; //initial(); char* a = (char*)malloc(35); strcpy(a,"00000010010001111000010100010011"); cout<<a<<endl; //riscv_decode(a); } void riscv_decode(char* bin_code_tra) { //待修正:不能讓func回傳string char* bin_code = (char*...
29.778626
98
0.511984
chao0502
177578d34c425313f846380c32bc5d7e2e553af0
76,641
cpp
C++
utility/utility.cpp
jhu-lcsr/sp_segmenter
4f6713c633ee2b1aaf48f614d05bcef1da4a9b02
[ "BSD-2-Clause" ]
33
2016-04-01T04:22:55.000Z
2019-08-23T13:43:05.000Z
utility/utility.cpp
jhu-lcsr/sp_segmenter
4f6713c633ee2b1aaf48f614d05bcef1da4a9b02
[ "BSD-2-Clause" ]
3
2017-08-14T14:09:18.000Z
2018-09-23T20:38:57.000Z
utility/utility.cpp
jhu-lcsr/sp_segmenter
4f6713c633ee2b1aaf48f614d05bcef1da4a9b02
[ "BSD-2-Clause" ]
26
2016-11-07T06:03:14.000Z
2019-09-20T01:39:23.000Z
#include "sp_segmenter/utility/utility.h" double get_wall_time(){ struct timeval time; if (gettimeofday(&time,NULL)){ // Handle error return 0; } return (double)time.tv_sec + (double)time.tv_usec * .000001; } /***************************************************************************...
32.879022
234
0.553359
jhu-lcsr
ed007ece4cd08cc6b714753466031338802fd573
178
cpp
C++
C++/uri2234.cpp
AugustoDipNiloy/Uri-Solution
7f455395bbbe55edce8d12afd80fa5ebd03d17a1
[ "MIT" ]
1
2020-11-09T17:06:43.000Z
2020-11-09T17:06:43.000Z
C++/uri2234.cpp
AugustoDipNiloy/Uri-Solution
7f455395bbbe55edce8d12afd80fa5ebd03d17a1
[ "MIT" ]
null
null
null
C++/uri2234.cpp
AugustoDipNiloy/Uri-Solution
7f455395bbbe55edce8d12afd80fa5ebd03d17a1
[ "MIT" ]
2
2020-07-29T09:33:29.000Z
2020-08-02T08:44:36.000Z
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b; cin >> a >> b; cout << fixed << setprecision(2) << (a * 1.0) / b << endl; return 0; }
13.692308
62
0.511236
AugustoDipNiloy
ed0203faceb9e72237681950925a449a4bf8dce5
10,257
cpp
C++
Geometry_Images/cpp/src/utils.cpp
hx-w/paper-implementations
eb865bb7f37cf62899beb18dd0f05069edbe19eb
[ "MIT" ]
null
null
null
Geometry_Images/cpp/src/utils.cpp
hx-w/paper-implementations
eb865bb7f37cf62899beb18dd0f05069edbe19eb
[ "MIT" ]
null
null
null
Geometry_Images/cpp/src/utils.cpp
hx-w/paper-implementations
eb865bb7f37cf62899beb18dd0f05069edbe19eb
[ "MIT" ]
null
null
null
#ifndef __UTILS__ #define __UTILS__ #include <math.h> #include "typedef.hpp" /** * Convert an x pixel coordinate into an x image coordinate * xPixel: an x pixel coordinate */ float p2i_x(int xPixel) { return (2 / (float)GW) * xPixel + 1 / (float)GW - 1; } /** * Convert a y pixel coordinate into a y image coor...
29.991228
189
0.565078
hx-w
ed0367f153c431c015003ae7d3360b5d6bdf3a56
2,737
cpp
C++
Game/Source/GameObjects/Planetoid.cpp
Crewbee/Space-Racer-OpenGL
1b089a853d525095a0187cf35a5be9d0b728efc1
[ "CC0-1.0" ]
null
null
null
Game/Source/GameObjects/Planetoid.cpp
Crewbee/Space-Racer-OpenGL
1b089a853d525095a0187cf35a5be9d0b728efc1
[ "CC0-1.0" ]
null
null
null
Game/Source/GameObjects/Planetoid.cpp
Crewbee/Space-Racer-OpenGL
1b089a853d525095a0187cf35a5be9d0b728efc1
[ "CC0-1.0" ]
null
null
null
#include "GamePCH.h" #include "GameObjects/GameObject.h" #include "Planetoid.h" #include "GameObjects/Player.h" #include "GameObjects/GameCamera.h" #include "GameObjects/DebrisSpawner.h" #include "Scenes/Scene.h" #include "Scenes/LightingScene.h" #include "Mesh/Mesh.h" #include "Mesh/Material.h" #include "Helpers/R...
21.896
147
0.727439
Crewbee
ed0605f592fba5484f9c12fc8377365a06fc005e
5,335
hpp
C++
Heine.hpp
Daisuke-Kanaizumi/q-special-functions
91aafafe125d864931e640cbe6993d9d61a32126
[ "MIT" ]
5
2017-02-03T20:55:10.000Z
2020-11-23T12:26:00.000Z
Heine.hpp
Daisuke-Kanaizumi/q-special-functions
91aafafe125d864931e640cbe6993d9d61a32126
[ "MIT" ]
1
2017-03-07T04:32:20.000Z
2017-09-05T01:48:57.000Z
Heine.hpp
Daisuke-Kanaizumi/q-special-functions
91aafafe125d864931e640cbe6993d9d61a32126
[ "MIT" ]
null
null
null
// Author: Daisuke Kanaizumi // Affiliation: Department of Applied Mathematics, Waseda University // Date: March 3rd, 2017 // This program was made in order to calculate the Heine hypergeometric function // 2\phi1(a,b,c,q,z), this is a q extension of Gaussian hypergeometric function // reference // Fredrik Johansson,...
37.836879
209
0.624367
Daisuke-Kanaizumi
ed11b5fb5a97e9a9a33c7bd2b288ff98472d5096
3,078
hpp
C++
Lib-ZeroG/src/ZeroG/d3d12/D3D12MemoryHeap.hpp
PetorSFZ/ZeroG
0e3330c2877c3dd840f2a7864b5767d53a92b97d
[ "Zlib" ]
null
null
null
Lib-ZeroG/src/ZeroG/d3d12/D3D12MemoryHeap.hpp
PetorSFZ/ZeroG
0e3330c2877c3dd840f2a7864b5767d53a92b97d
[ "Zlib" ]
null
null
null
Lib-ZeroG/src/ZeroG/d3d12/D3D12MemoryHeap.hpp
PetorSFZ/ZeroG
0e3330c2877c3dd840f2a7864b5767d53a92b97d
[ "Zlib" ]
null
null
null
// Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se) // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for ...
36.211765
99
0.629305
PetorSFZ
ed11e1fdc354f3afd8ce1eb69c1f54ff74cc5ee7
614
cpp
C++
src/E/E_Log.cpp
ha1082104/KENS_2
7b0b9f805ad89df8e23cdc1fc7599119d600366d
[ "MIT" ]
null
null
null
src/E/E_Log.cpp
ha1082104/KENS_2
7b0b9f805ad89df8e23cdc1fc7599119d600366d
[ "MIT" ]
null
null
null
src/E/E_Log.cpp
ha1082104/KENS_2
7b0b9f805ad89df8e23cdc1fc7599119d600366d
[ "MIT" ]
1
2018-11-18T16:16:54.000Z
2018-11-18T16:16:54.000Z
/* * E_Log.cpp * * Created on: 2014. 11. 2. * Author: 근홍 */ #include <E/E_Log.hpp> namespace E { const char* Log::LEVEL_STR[LEVEL_COUNT] = { "ERR", "WARN", "LOG", "INFO", "DEBUG", }; int Log::defaultLevel = Log::LOG_LEVEL; Log::Log() { this->level = defaultLevel; } Log::Log(int level) { thi...
11.37037
55
0.587948
ha1082104
ed1aea2e4dae65a750891c461a94db4151382727
17,374
cpp
C++
Visual Mercutio/zBaseLib/PSS_FloatingToolBar.cpp
Jeanmilost/Visual-Mercutio
f079730005b6ce93d5e184bb7c0893ccced3e3ab
[ "MIT" ]
1
2022-01-31T06:24:24.000Z
2022-01-31T06:24:24.000Z
Visual Mercutio/zBaseLib/PSS_FloatingToolBar.cpp
Jeanmilost/Visual-Mercutio
f079730005b6ce93d5e184bb7c0893ccced3e3ab
[ "MIT" ]
2
2021-04-11T15:50:42.000Z
2021-06-05T08:23:04.000Z
Visual Mercutio/zBaseLib/PSS_FloatingToolBar.cpp
Jeanmilost/Visual-Mercutio
f079730005b6ce93d5e184bb7c0893ccced3e3ab
[ "MIT" ]
2
2021-01-08T00:55:18.000Z
2022-01-31T06:24:18.000Z
/**************************************************************************** * ==> PSS_FloatingToolBar -------------------------------------------------* **************************************************************************** * Description : Provides a generic floating toolbar * * Devel...
33.933594
133
0.516346
Jeanmilost
ed1b25497adf194089eeb57c81da681a08b49b2c
248
cpp
C++
Userland/Libraries/LibWeb/HTML/TextMetrics.cpp
densogiaichned/serenity
99c0b895fed02949b528437d6b450d85befde7a5
[ "BSD-2-Clause" ]
6
2021-07-05T15:01:19.000Z
2022-03-24T04:42:43.000Z
Userland/Libraries/LibWeb/HTML/TextMetrics.cpp
densogiaichned/serenity
99c0b895fed02949b528437d6b450d85befde7a5
[ "BSD-2-Clause" ]
2
2022-01-11T13:08:35.000Z
2022-01-12T19:27:53.000Z
Userland/Libraries/LibWeb/HTML/TextMetrics.cpp
densogiaichned/serenity
99c0b895fed02949b528437d6b450d85befde7a5
[ "BSD-2-Clause" ]
1
2020-03-16T21:37:46.000Z
2020-03-16T21:37:46.000Z
/* * Copyright (c) 2021, sin-ack <sin-ack@protonmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "TextMetrics.h" namespace Web::HTML { RefPtr<TextMetrics> TextMetrics::create() { return adopt_ref(*new TextMetrics()); } }
14.588235
55
0.677419
densogiaichned
ed1b439470350a2c66a77746e8e6c61ca53a5384
392
cpp
C++
Repasar/uam/pila.cpp
juliandavidmr/UVA
797d3482725eecff77c82a280528a48996ab5791
[ "MIT" ]
2
2016-08-05T01:51:07.000Z
2016-10-08T16:24:43.000Z
Repasar/uam/pila.cpp
juliandavidmr/UVA
797d3482725eecff77c82a280528a48996ab5791
[ "MIT" ]
null
null
null
Repasar/uam/pila.cpp
juliandavidmr/UVA
797d3482725eecff77c82a280528a48996ab5791
[ "MIT" ]
null
null
null
#include <list> #include <iostream> #include <algorithm> using namespace std; int main() { list<int> s; int num, cont=5; while(cont--) { cin>>num; s.push_back(num); } sort(s.begin(), s.end()); for(list<int>::reverse_iterator i = s.rbegin(); i!=s.rend...
14
70
0.459184
juliandavidmr
ed1d4194f6b2259f6c8b3321dc73bd471a5de7bf
1,672
cpp
C++
Problem Set 1/Echo Client.cpp
ShubhamAvasthi/ud923-introduction-to-operating-systems
0dc21bd7d9f09f5565f7c273cd17882f19275e7d
[ "MIT" ]
null
null
null
Problem Set 1/Echo Client.cpp
ShubhamAvasthi/ud923-introduction-to-operating-systems
0dc21bd7d9f09f5565f7c273cd17882f19275e7d
[ "MIT" ]
null
null
null
Problem Set 1/Echo Client.cpp
ShubhamAvasthi/ud923-introduction-to-operating-systems
0dc21bd7d9f09f5565f7c273cd17882f19275e7d
[ "MIT" ]
null
null
null
// Compilation Command: g++ "Echo Client.cpp" -o "Echo Client" -lwsock32 #include <iostream> #include <winsock2.h> const char* server_address = "127.0.0.1"; const u_short server_port = 8888; int main() { std::cout << "Initialising Winsock...\n"; WSADATA wsa; if (WSAStartup(MAKEWORD(2, 2), &wsa)) { std::cout <<...
24.588235
87
0.64055
ShubhamAvasthi
ed1e4307325ab3f28039f01178950aaa7d1338e2
6,308
cpp
C++
tc 160+/MagicalGirlLevelTwoDivOne.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/MagicalGirlLevelTwoDivOne.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/MagicalGirlLevelTwoDivOne.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; enum { ODD=1, EVEN=2 }; const int mod = 1000000007; int dp[2][1024]; int bc[1024]; int add_mod(int a, ...
37.547619
317
0.397115
ibudiselic
ed203fbe6e077f5d3b177a8993946a1b30cc2c9a
44
hpp
C++
src/boost_spirit_home_x3_version.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_spirit_home_x3_version.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_spirit_home_x3_version.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/spirit/home/x3/version.hpp>
22
43
0.772727
miathedev
ed2438c931fb055c37704f497561fc7e1a4429f7
2,776
cpp
C++
debugger/src/libdbg64g/services/exec/cmd/cmd_read.cpp
qshan/riscv_vhdl
ccf68cd3c685499356605cfc80f01454ee5b98e1
[ "BSD-2-Clause" ]
1
2021-03-14T21:50:38.000Z
2021-03-14T21:50:38.000Z
debugger/src/libdbg64g/services/exec/cmd/cmd_read.cpp
qshan/riscv_vhdl
ccf68cd3c685499356605cfc80f01454ee5b98e1
[ "BSD-2-Clause" ]
null
null
null
debugger/src/libdbg64g/services/exec/cmd/cmd_read.cpp
qshan/riscv_vhdl
ccf68cd3c685499356605cfc80f01454ee5b98e1
[ "BSD-2-Clause" ]
null
null
null
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief Read/write memory. */ #include "cmd_read.h" namespace debugger { CmdRead::CmdRead(ITap *tap, ISocInfo *info) : ICommand ("read", tap, info) { briefDescr_.mak...
29.531915
86
0.551153
qshan
ed28226c8787ba6b1f9fa9b589f173b712e3385c
583
cpp
C++
Source/Runtime/Engine/Private/2D/Transform.cpp
godole/GameEngineProgramming
d2e0b2cd1da2ef3971b7f2711d94702c8710ca4b
[ "MIT" ]
null
null
null
Source/Runtime/Engine/Private/2D/Transform.cpp
godole/GameEngineProgramming
d2e0b2cd1da2ef3971b7f2711d94702c8710ca4b
[ "MIT" ]
null
null
null
Source/Runtime/Engine/Private/2D/Transform.cpp
godole/GameEngineProgramming
d2e0b2cd1da2ef3971b7f2711d94702c8710ca4b
[ "MIT" ]
null
null
null
#include "Precompiled.h" using namespace CK::DD; Matrix3x3 Transform::GetModelingMatrix() const { Matrix3x3 translateMat(Vector3::UnitX, Vector3::UnitY, Vector3(Position)); Matrix3x3 rotationMat( Vector3(Right, false), Vector3(Up, false), Vector3::UnitZ); Matrix3x3 scaleMat(Vector3::UnitX * Sc...
22.423077
89
0.692967
godole
ed2f18dcedf99535344c2281defad73ee82124a7
1,067
hpp
C++
mr/iza810/raspi_utility/include/motor_serial.hpp
Kitasola/robocon_2019b
43acfa88fb49ddeb7ec9e15976854936a71e92b6
[ "MIT" ]
5
2020-01-24T08:05:01.000Z
2020-08-03T04:51:52.000Z
mr/iza810/raspi_utility/include/motor_serial.hpp
Kitasola/robocon_2019b
43acfa88fb49ddeb7ec9e15976854936a71e92b6
[ "MIT" ]
null
null
null
mr/iza810/raspi_utility/include/motor_serial.hpp
Kitasola/robocon_2019b
43acfa88fb49ddeb7ec9e15976854936a71e92b6
[ "MIT" ]
1
2020-07-15T05:43:48.000Z
2020-07-15T05:43:48.000Z
#ifndef ARRC_RASPI_MOTOR_SERIAL_HPP #define ARRC_RASPI_MOTOR_SERIAL_HPP #include "pigpiod.hpp" #include "serial.hpp" #include <fstream> #include <mutex> #include <queue> #include <string> #include <thread> namespace arrc_raspi { struct SendDataFormat { unsigned char id; unsigned char cmd; short argData; }; clas...
24.25
75
0.72821
Kitasola
ed2fa9cfe00a18b138f3468065e7a1d32c3b3901
8,466
cpp
C++
src/animator.cpp
wiggocd/conanimator
79d821c18dff8412bf4d64a2366ebd90bc46ec3c
[ "MIT" ]
null
null
null
src/animator.cpp
wiggocd/conanimator
79d821c18dff8412bf4d64a2366ebd90bc46ec3c
[ "MIT" ]
null
null
null
src/animator.cpp
wiggocd/conanimator
79d821c18dff8412bf4d64a2366ebd90bc46ec3c
[ "MIT" ]
null
null
null
/* * Visual animator base classes */ #include <cstdlib> #include <curses.h> #include <unistd.h> #include <cstring> #include <vector> #include <thread> #include <future> #include <string> // Program headers #include <animator.hpp> #include <clock.hpp> #include <maths.hpp> #include <stdscr.hpp> // Base animator prov...
33.070313
119
0.512639
wiggocd
ed31df7a48d386c1d95ca1d845ba3224a08bbf02
3,452
cc
C++
demos/23_list/23_list_01.cc
chanchann/workflow_annotation
f986e65af82a91d9257a655ba7a4ece272b89c26
[ "MIT" ]
66
2021-10-17T11:54:11.000Z
2022-03-29T13:05:02.000Z
demos/23_list/23_list_01.cc
xjchilli/workflow_annotation
e91795aa91ee6c0d40f1ca0edd7e9c1338479e77
[ "MIT" ]
1
2021-11-24T18:37:18.000Z
2021-11-29T12:49:47.000Z
demos/23_list/23_list_01.cc
xjchilli/workflow_annotation
e91795aa91ee6c0d40f1ca0edd7e9c1338479e77
[ "MIT" ]
17
2021-09-27T03:47:50.000Z
2022-03-22T08:22:12.000Z
#include "list.h" #include <stdio.h> #include <vector> #include <cassert> struct Task { struct list_head entry_list; int val; }; void test01() { fprintf(stderr, "test01\n"); // struct list_head list_test = LIST_HEAD_INIT(list_test); LIST_HEAD(list_test); assert(list_empty(&list_test)...
24.48227
100
0.590382
chanchann
ed3a3070bbf83113de9a5bffcb2600611888ca83
2,386
cpp
C++
Codeforces/1562D2/solution.cpp
caando/Competitive-Programming-Archive
589781a23bda39aedf5fc437bf9b97c264fd3736
[ "MIT" ]
5
2021-09-09T09:16:29.000Z
2022-01-08T11:28:12.000Z
Codeforces/1562D2/solution.cpp
zjk2606/Competitive-Programming-Archive
589781a23bda39aedf5fc437bf9b97c264fd3736
[ "MIT" ]
1
2021-09-09T09:16:26.000Z
2021-09-11T04:00:36.000Z
Codeforces/1562D2/solution.cpp
zjk2606/Competitive-Programming-Archive
589781a23bda39aedf5fc437bf9b97c264fd3736
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vii = vector<pii>; using vll = vector<pll>; #define fi first #define se second #define sz(c) ((int)(c).size()) #define all(c) (c).begin(), (c).e...
25.655914
69
0.402347
caando
ed3da9e958a61b4035a2d248bd28f7d80d4b47c1
1,525
cpp
C++
src/vu2/src/vu_id.cpp
Terebinth/freefalcon-central
c28d807183ab447ef6a801068aa3769527d55deb
[ "BSD-2-Clause" ]
117
2015-01-13T14:48:49.000Z
2022-03-16T01:38:19.000Z
src/vu2/src/vu_id.cpp
darongE/freefalcon-central
c28d807183ab447ef6a801068aa3769527d55deb
[ "BSD-2-Clause" ]
4
2015-05-01T13:09:53.000Z
2017-07-22T09:11:06.000Z
src/vu2/src/vu_id.cpp
darongE/freefalcon-central
c28d807183ab447ef6a801068aa3769527d55deb
[ "BSD-2-Clause" ]
78
2015-01-13T09:27:47.000Z
2022-03-18T14:39:09.000Z
/** sfr: VU_ID implementation * I took this out of apitypes header as any change in it resulted in almost everything * being compiled again. */ #include "vutypes.h" // where declaration is VU_ID::VU_ID() : creator_(0), num_(0) { } VU_ID::VU_ID(VU_SESSION_ID sessionpart, VU_ID_NUMBER idpart): creator_(sessionpart)...
17.134831
97
0.558033
Terebinth
ed3ef3147c1214ce2e4da4ce3e63a645b0a96d47
1,645
cpp
C++
Engine/Source/Core/RHI/OpenGL/OpenGLRendererAPI.cpp
rbetik12/RightEngine
d7db7605da0e33b8ae696429b4085e154fd9c2fa
[ "MIT" ]
null
null
null
Engine/Source/Core/RHI/OpenGL/OpenGLRendererAPI.cpp
rbetik12/RightEngine
d7db7605da0e33b8ae696429b4085e154fd9c2fa
[ "MIT" ]
1
2021-10-17T20:51:00.000Z
2022-03-07T23:37:07.000Z
Engine/Source/Core/RHI/OpenGL/OpenGLRendererAPI.cpp
rbetik12/RightEngine
d7db7605da0e33b8ae696429b4085e154fd9c2fa
[ "MIT" ]
null
null
null
#include "OpenGLRendererAPI.hpp" #include "Renderer.hpp" using namespace RightEngine; namespace { int DepthTestEnumToGLEnum(DepthTestMode mode) { switch (mode) { case DepthTestMode::LESS: return GL_LESS; case DepthTestMode::LEQUAL: return...
21.089744
75
0.666869
rbetik12
ed43096b71b4105b980f02d8a75da5dc614e2965
29,087
cpp
C++
Ipopt-3.12.7/Ipopt/src/Algorithm/IpDefaultIterateInitializer.cpp
MikeBMW/CarND-MPC-Project
81e6e92de2768dce9fbfd1848de6f4465d468a0e
[ "MIT" ]
9
2020-07-09T06:40:31.000Z
2022-03-28T02:50:21.000Z
third-party/CoinIpopt/Ipopt/src/Algorithm/IpDefaultIterateInitializer.cpp
WatsonZhouAnda/Cheetah-Software
05e416fb26f968300826f0deb0953be9afb22bfe
[ "MIT" ]
null
null
null
third-party/CoinIpopt/Ipopt/src/Algorithm/IpDefaultIterateInitializer.cpp
WatsonZhouAnda/Cheetah-Software
05e416fb26f968300826f0deb0953be9afb22bfe
[ "MIT" ]
5
2020-12-01T01:41:12.000Z
2022-01-04T01:21:49.000Z
// Copyright (C) 2004, 2008 International Business Machines and others. // All Rights Reserved. // This code is published under the Eclipse Public License. // // $Id: IpDefaultIterateInitializer.cpp 2339 2013-06-22 10:21:26Z stefan $ // // Authors: Carl Laird, Andreas Waechter IBM 2004-09-23 #include ...
40.34258
131
0.616358
MikeBMW
ed4479a535e412ef011b2152b4bd14a4a2fd939b
611
cpp
C++
Solutions/1-50/15/Solution.cpp
kitegi/Edmonton
774c9b2f72e7b2c6a3bc1b3329ef227ef39adf9d
[ "Unlicense" ]
2
2021-07-16T13:30:10.000Z
2021-07-16T18:17:40.000Z
Solutions/1-50/15/Solution.cpp
kitegi/Edmonton
774c9b2f72e7b2c6a3bc1b3329ef227ef39adf9d
[ "Unlicense" ]
null
null
null
Solutions/1-50/15/Solution.cpp
kitegi/Edmonton
774c9b2f72e7b2c6a3bc1b3329ef227ef39adf9d
[ "Unlicense" ]
1
2021-04-16T22:56:07.000Z
2021-04-16T22:56:07.000Z
#include <boost/multiprecision/cpp_int.hpp> #include <iostream> using namespace std; using boost::multiprecision::cpp_int; /* The lattice in this problem is just a very cleverly disguised combinatorics question. So we just need to calculate the factorials. */ // Generate the n'th term for the factorial se...
22.62963
132
0.654664
kitegi
ed45f606f13b52c71fd7d1070b9f2259a683fa1f
7,478
cpp
C++
Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp
Pecon/Torque3D-1
81777348c8ab2fa49cbc534315294c3bee7ae3aa
[ "MIT" ]
4
2017-01-16T23:52:00.000Z
2021-08-15T17:50:20.000Z
Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp
Pecon/Torque3D-1
81777348c8ab2fa49cbc534315294c3bee7ae3aa
[ "MIT" ]
1
2019-01-10T06:48:31.000Z
2019-01-10T06:48:31.000Z
Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp
Pecon/Torque3D-1
81777348c8ab2fa49cbc534315294c3bee7ae3aa
[ "MIT" ]
1
2018-03-08T03:40:00.000Z
2018-03-08T03:40:00.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
33.383929
113
0.669564
Pecon
ed481dcf4633c4a486408b0123174255caa4f164
3,425
cpp
C++
G53GRA.Framework/G53GRA.Framework/Code/Island.cpp
LukeDeBeneducci/G53_Graphics
066ad6493d8ea4e093a219898ab1c1c4d30b0463
[ "MIT" ]
1
2021-04-07T12:36:20.000Z
2021-04-07T12:36:20.000Z
G53GRA.Framework/G53GRA.Framework/Code/Island.cpp
LukeDeBeneducci/G53_Graphics
066ad6493d8ea4e093a219898ab1c1c4d30b0463
[ "MIT" ]
null
null
null
G53GRA.Framework/G53GRA.Framework/Code/Island.cpp
LukeDeBeneducci/G53_Graphics
066ad6493d8ea4e093a219898ab1c1c4d30b0463
[ "MIT" ]
null
null
null
#include "Island.h" void Island::Display() { // Draws a 3d polygon for the Island from GL_POLYGON and GL_QUADS glPushMatrix(); glPushAttrib(GL_ALL_ATTRIB_BITS); glDisable(GL_COLOR_MATERIAL); float greyDiffuse[] = { 0.42f,0.48f,0.55f,1.0f }; // Set grey colour float specular[] = { 1.0f,1.0f,1.0f,1.0f }; // whi...
31.422018
88
0.55854
LukeDeBeneducci
ed4f8b06659f34448fffb8d61a2dea56e37ef1d3
777
hpp
C++
libs/fnd/memory/include/bksge/fnd/memory/construct_at.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/fnd/memory/include/bksge/fnd/memory/construct_at.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/fnd/memory/include/bksge/fnd/memory/construct_at.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file construct_at.hpp * * @brief construct_at を定義 * * @author myoukaku */ #ifndef BKSGE_FND_MEMORY_CONSTRUCT_AT_HPP #define BKSGE_FND_MEMORY_CONSTRUCT_AT_HPP #include <bksge/fnd/config.hpp> #include <utility> namespace bksge { template <typename T, typename... Args> inline BKSGE_CXX1...
25.9
114
0.697555
myoukaku
ed517ad1aba9e4662067d27d6811ddff7daf4a83
4,990
cpp
C++
src/ui/debugControls.cpp
etiam/db
3e54c9a6760cfb2fe6e893f5f15d6f70e47e1076
[ "Apache-2.0" ]
2
2018-07-31T13:47:48.000Z
2018-08-03T00:44:34.000Z
src/ui/debugControls.cpp
etiam/db
3e54c9a6760cfb2fe6e893f5f15d6f70e47e1076
[ "Apache-2.0" ]
null
null
null
src/ui/debugControls.cpp
etiam/db
3e54c9a6760cfb2fe6e893f5f15d6f70e47e1076
[ "Apache-2.0" ]
null
null
null
/* * debugControls.cpp * * Created on: May 15, 2018 * Author: jasonr */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <QIcon> #include <QAction> #include "core/global.h" #include "core/signals.h" #include "gdb/global.h" #include "gdb/commands.h" #include "mainWindow.h" #include "debugControl...
31.783439
88
0.643888
etiam
ed56f8b4f1c26c6bda7100f1e320b3f1445c79d0
405
hpp
C++
3rdParty/occa/include/occa/lang/transforms/exprTransform.hpp
krowe-alcf/nekBench
d314ca6b942076620dd7dab8f11df97be977c5db
[ "BSD-3-Clause" ]
4
2020-02-26T19:33:16.000Z
2020-12-06T07:50:11.000Z
3rdParty/occa/include/occa/lang/transforms/exprTransform.hpp
krowe-alcf/nekBench
d314ca6b942076620dd7dab8f11df97be977c5db
[ "BSD-3-Clause" ]
12
2020-05-13T03:50:11.000Z
2021-09-16T16:26:06.000Z
3rdParty/occa/include/occa/lang/transforms/exprTransform.hpp
krowe-alcf/nekBench
d314ca6b942076620dd7dab8f11df97be977c5db
[ "BSD-3-Clause" ]
10
2020-03-02T15:55:02.000Z
2021-12-03T02:44:10.000Z
#ifndef OCCA_LANG_TRANSFORMS_EXPRTRANSFORM_HEADER #define OCCA_LANG_TRANSFORMS_EXPRTRANSFORM_HEADER #include <occa/types.hpp> namespace occa { namespace lang { class exprNode; class exprTransform { public: udim_t validExprNodeTypes; exprTransform(); virtual exprNode* transformExprNo...
16.875
62
0.711111
krowe-alcf
ed5dbb6ac12b65b8ffde58d56dbcb1080f60782d
4,489
cpp
C++
performance/lns/performance.cpp
jtodd440/universal
3d8c946691be0dca091579da34f91ced82e1136a
[ "MIT" ]
null
null
null
performance/lns/performance.cpp
jtodd440/universal
3d8c946691be0dca091579da34f91ced82e1136a
[ "MIT" ]
null
null
null
performance/lns/performance.cpp
jtodd440/universal
3d8c946691be0dca091579da34f91ced82e1136a
[ "MIT" ]
null
null
null
// performance.cpp : performance benchmarking for abitrary fixed-precision logarithmic numbers // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <iostream> #include <string> #include <chron...
40.441441
165
0.730675
jtodd440
ed5e2c9204060d0d2e3294cebbdde95196770cb4
1,395
cpp
C++
DummyPlayers.cpp
cppSA/Assignment7
9725d5958e2134386f5ab58b4ec8a5adc75fcf3d
[ "MIT" ]
null
null
null
DummyPlayers.cpp
cppSA/Assignment7
9725d5958e2134386f5ab58b4ec8a5adc75fcf3d
[ "MIT" ]
null
null
null
DummyPlayers.cpp
cppSA/Assignment7
9725d5958e2134386f5ab58b4ec8a5adc75fcf3d
[ "MIT" ]
null
null
null
/** *cpp file of classes XYPlayer,YXPlayer,IllegalPlayer and ExceptionPlayer *Author Erel Segal-Halevi *From https://github.com/erelsgl/ariel-cpp-5778/tree/master/week06-inheritance/homework *Version 1.0 **/ //library #include "DummyPlayers.h" const Coordinate XYPlayer::play(const Board& board) { for (uint ...
24.051724
88
0.603584
cppSA
ed5e92e85584c4d12b46141bb6ea71711599667c
1,640
cpp
C++
src/engine/mt/osx/task.cpp
OndraVoves/LumixEngine
b7040d7a5b9dc1c6bc78e5e6d9b33b7f585c435f
[ "MIT" ]
3
2021-05-27T10:43:33.000Z
2021-05-27T10:44:02.000Z
src/engine/mt/osx/task.cpp
OndraVoves/LumixEngine
b7040d7a5b9dc1c6bc78e5e6d9b33b7f585c435f
[ "MIT" ]
null
null
null
src/engine/mt/osx/task.cpp
OndraVoves/LumixEngine
b7040d7a5b9dc1c6bc78e5e6d9b33b7f585c435f
[ "MIT" ]
3
2021-05-27T10:44:15.000Z
2021-11-18T09:20:10.000Z
#include "engine/lux.h" #include "platform/task.h" #include <pthread.h> namespace Lux { namespace MT { const unsigned int STACK_SIZE = 0x8000; struct TaskImpl { pthread_t m_id; unsigned int m_affinity_mask; unsigned int m_priority; volatile bool m_is_running; volatile bool m_force_exit; vo...
20
96
0.64878
OndraVoves
ed635ec68062176cc2ebfb0232032f6a6125df45
9,020
cpp
C++
ruby/audio/asio.cpp
13824125580/higan
fbdd3f980b65412c362096579869ae76730e4118
[ "Intel", "ISC" ]
10
2019-12-19T01:19:41.000Z
2021-02-18T16:30:29.000Z
ruby/audio/asio.cpp
13824125580/higan
fbdd3f980b65412c362096579869ae76730e4118
[ "Intel", "ISC" ]
null
null
null
ruby/audio/asio.cpp
13824125580/higan
fbdd3f980b65412c362096579869ae76730e4118
[ "Intel", "ISC" ]
null
null
null
#include <nall/windows/registry.hpp> #include "asio.hpp" struct AudioASIO : AudioDriver { static AudioASIO* instance; AudioASIO& self = *this; AudioASIO(Audio& super) : AudioDriver(super) { instance = this; } ~AudioASIO() { terminate(); } auto create() -> bool override { super.setDevice(hasDevices().fir...
31.985816
123
0.656319
13824125580
ed680b2d12c01bdf82b12d230af76583b19073a1
1,016
cpp
C++
src/basics/trio.cpp
roryk/octopus
0ec2839c33b846107278696ee04ce6d7d0f69a54
[ "MIT" ]
null
null
null
src/basics/trio.cpp
roryk/octopus
0ec2839c33b846107278696ee04ce6d7d0f69a54
[ "MIT" ]
null
null
null
src/basics/trio.cpp
roryk/octopus
0ec2839c33b846107278696ee04ce6d7d0f69a54
[ "MIT" ]
null
null
null
// Copyright (c) 2015-2020 Daniel Cooke // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #include "trio.hpp" #include <utility> #include <stdexcept> namespace octopus { // public member methods Trio::Trio(Mother mother, Father father, Child child) : mother_ {std::mov...
20.734694
96
0.691929
roryk
ed688879db62dd3a1c4580ab25b508708ef74178
8,619
cpp
C++
src/gui/tabs/tabevents_t.cpp
henryiii/spatial-model-editor
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
[ "MIT" ]
1
2021-04-19T10:23:58.000Z
2021-04-19T10:23:58.000Z
src/gui/tabs/tabevents_t.cpp
henryiii/spatial-model-editor
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
[ "MIT" ]
418
2020-10-08T07:42:27.000Z
2022-03-08T12:10:52.000Z
src/gui/tabs/tabevents_t.cpp
henryiii/spatial-model-editor
2138d03ae4c7cc353b40324dfd1a3e763d7085d9
[ "MIT" ]
2
2021-09-02T11:20:38.000Z
2021-10-13T14:05:32.000Z
#include "catch_wrapper.hpp" #include "model.hpp" #include "model_test_utils.hpp" #include "qplaintextmathedit.hpp" #include "qt_test_utils.hpp" #include "tabevents.hpp" #include <QComboBox> #include <QLabel> #include <QLineEdit> #include <QListWidget> #include <QPushButton> using namespace sme::test; TEST_CASE("TabE...
41.839806
78
0.649959
henryiii
ed6ce764f3d8b2ae848137bb024e972b41e09335
2,031
cpp
C++
lib/node_add_on/win/wrap/customized_ui_components_wrap/customized_annotation_obj_wrap.cpp
pramesywaraj/zoom-react-electron-implementation
94583834fe47dd29309114733c904ddcafdf928e
[ "MIT" ]
null
null
null
lib/node_add_on/win/wrap/customized_ui_components_wrap/customized_annotation_obj_wrap.cpp
pramesywaraj/zoom-react-electron-implementation
94583834fe47dd29309114733c904ddcafdf928e
[ "MIT" ]
null
null
null
lib/node_add_on/win/wrap/customized_ui_components_wrap/customized_annotation_obj_wrap.cpp
pramesywaraj/zoom-react-electron-implementation
94583834fe47dd29309114733c904ddcafdf928e
[ "MIT" ]
null
null
null
#include "sdk_wrap.h" #include "customized_annotation_obj_wrap.h" BEGIN_ZOOM_SDK_NAMESPACE ICustomizedAnnotationObjWrap::~ICustomizedAnnotationObjWrap() { UnInit(); } // This wrapper doesn't follow the standard pattern. It's expected to be created by the customized annotation controller. // So the controller will c...
41.44898
128
0.833087
pramesywaraj