hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
9603f5ed110e157362f45ee4f58cb664d4919beb
3,149
cc
C++
src/automaton/tests/crypto/test_Keccak_256_cryptopp.cc
automaton-network/automaton
34f6df278dc71d11340084c3487564ab58b04c2e
[ "MIT" ]
2
2018-12-19T18:01:14.000Z
2019-03-29T12:54:41.000Z
src/automaton/tests/crypto/test_Keccak_256_cryptopp.cc
automaton-network/automaton
34f6df278dc71d11340084c3487564ab58b04c2e
[ "MIT" ]
3
2018-12-20T17:44:31.000Z
2020-03-25T16:45:04.000Z
src/automaton/tests/crypto/test_Keccak_256_cryptopp.cc
automaton-network/automaton
34f6df278dc71d11340084c3487564ab58b04c2e
[ "MIT" ]
2
2020-03-12T13:33:10.000Z
2020-03-22T00:48:51.000Z
#include <cryptopp/cryptlib.h> #include <cryptopp/keccak.h> #include <cryptopp/hex.h> #include <cryptopp/filters.h> #include <string> #include "automaton/core/crypto/cryptopp/Keccak_256_cryptopp.h" #include "automaton/core/crypto/hash_transformation.h" #include "automaton/core/io/io.h" #include "gtest/gtest.h" usin...
34.988889
89
0.755478
automaton-network
960634c731a2413e1e4df7fb0f6868ec71e19018
1,715
cxx
C++
Testing/selxDataManager.cxx
FBerendsen/SuperElastix-1
69d97589e34f6f2109621e917792ce18e32442fe
[ "Apache-2.0" ]
null
null
null
Testing/selxDataManager.cxx
FBerendsen/SuperElastix-1
69d97589e34f6f2109621e917792ce18e32442fe
[ "Apache-2.0" ]
null
null
null
Testing/selxDataManager.cxx
FBerendsen/SuperElastix-1
69d97589e34f6f2109621e917792ce18e32442fe
[ "Apache-2.0" ]
null
null
null
/*========================================================================= * * Copyright Leiden University Medical Center, Erasmus University Medical * Center and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
30.087719
101
0.674636
FBerendsen
96082fb730247b5c8f489914f0b3486bb74308f9
1,489
cpp
C++
msgexchange/src/main/cpp/msgexchange/tests/json.cpp
Plex-VDR-HDHomerun/androidtv-example-plexdvrinput
9c374d451301101eeeb73cd9fa696a4c2bf08f5c
[ "Apache-2.0" ]
82
2015-07-14T22:16:45.000Z
2022-03-16T00:09:52.000Z
msgexchange/src/main/cpp/msgexchange/tests/json.cpp
Plex-VDR-HDHomerun/androidtv-example-plexdvrinput
9c374d451301101eeeb73cd9fa696a4c2bf08f5c
[ "Apache-2.0" ]
63
2015-07-08T20:10:22.000Z
2022-03-19T13:32:24.000Z
msgexchange/src/main/cpp/msgexchange/tests/json.cpp
Plex-VDR-HDHomerun/androidtv-example-plexdvrinput
9c374d451301101eeeb73cd9fa696a4c2bf08f5c
[ "Apache-2.0" ]
46
2015-07-15T00:59:10.000Z
2021-12-13T14:59:55.000Z
#include "msgjson.h" #include "msgpacket.h" #include <iostream> int main(int agrc, char* argv[]) { std::string json = "{\n" "\"msgid\": 23,\n" "\"type\": 2,\n" "\"packet\":\n" " [\n" " { \"name\": \"param1\", \"type\": \"string\", \"value\": \"string1\" },\n" " { \"name\": \"para...
33.088889
82
0.425789
Plex-VDR-HDHomerun
9609947f949f294eb4177f7f3593162b38fd812d
2,801
cpp
C++
WindowBottom.cpp
jjzhang166/SPlayer-Qt-Framework4
1eceb28c31c2b51933cfdeb4e91ee30371dd58d4
[ "MIT" ]
12
2018-08-14T07:37:23.000Z
2020-12-29T09:57:12.000Z
WindowBottom.cpp
jjzhang166/SPlayer-Qt-Framework4
1eceb28c31c2b51933cfdeb4e91ee30371dd58d4
[ "MIT" ]
null
null
null
WindowBottom.cpp
jjzhang166/SPlayer-Qt-Framework4
1eceb28c31c2b51933cfdeb4e91ee30371dd58d4
[ "MIT" ]
9
2019-03-27T00:44:53.000Z
2022-03-19T10:48:38.000Z
#include "WindowBottom.h" //播放、停止等主界面底部视图的效果呈现 WindowBottom::WindowBottom(QWidget *parent):BaseWidget(parent) { QImage image; m_pRunTimeLen = new QLabel(this); m_pRunTimeLen->setText("00:00:00"); m_pRunTimeLen->setMouseTracking(true); m_pSign = new QLabel(this); m_pSign->setText("/"); m_pTo...
32.952941
124
0.689754
jjzhang166
9609b68b248bbcf6790467bdbacdb5302ab865da
1,396
cpp
C++
Chapter-6-Functions/Review Questions and Exercises/Programming Challenges/23.cpp
jesushilarioh/C-Plus-Plus
bbff921460ac4267af48558f040c7d82ccf42d5e
[ "MIT" ]
3
2019-10-28T01:12:46.000Z
2021-10-16T09:16:31.000Z
Chapter-6-Functions/Review Questions and Exercises/Programming Challenges/23.cpp
jesushilarioh/C-Plus-Plus
bbff921460ac4267af48558f040c7d82ccf42d5e
[ "MIT" ]
null
null
null
Chapter-6-Functions/Review Questions and Exercises/Programming Challenges/23.cpp
jesushilarioh/C-Plus-Plus
bbff921460ac4267af48558f040c7d82ccf42d5e
[ "MIT" ]
4
2020-04-10T17:22:17.000Z
2021-11-04T14:34:00.000Z
/************************************************************ * * 23. Prime Number List * * Use the isPrime function that you wrote in Programming * Challenge 22 in a program that stores a list of all * the prime numbers from 1 through 100 in a file. * * Jesus Hilario Hernandez * December...
22.885246
63
0.437679
jesushilarioh
960d1fd91f48fbeb3609a53dcb4c3fdb9b09bf4d
476
cc
C++
sieve2015/src/tst_sieve_bit_table.cc
mhdeleglise/Gh
21a0b9bd53ae9de17f8b99040cac95cd6e1897e4
[ "MIT" ]
null
null
null
sieve2015/src/tst_sieve_bit_table.cc
mhdeleglise/Gh
21a0b9bd53ae9de17f8b99040cac95cd6e1897e4
[ "MIT" ]
null
null
null
sieve2015/src/tst_sieve_bit_table.cc
mhdeleglise/Gh
21a0b9bd53ae9de17f8b99040cac95cd6e1897e4
[ "MIT" ]
null
null
null
#include<mylib.h> #include"../Include/sieve_slices.h" int main(int argc, char* argv[]) { long32 wsize = (argc==2)? atoi(argv[1]) : 100; presieved_primes::init_prime_table(1000,3); cout << "Sieve par tranche avec crible d'Eratosthène automatique\n"; sieve_by_slice<bit_table,long64> sl(2,1,wsize,0,6, AUTO_SIEVE...
25.052632
70
0.644958
mhdeleglise
96113c99cfc4100aa3f391017decfe684b6e18bf
2,397
cc
C++
rest/testing/rest_request_binding_test.cc
kstepanmpmg/mldb
f78791cd34d01796705c0f173a14359ec1b2e021
[ "Apache-2.0" ]
665
2015-12-09T17:00:14.000Z
2022-03-25T07:46:46.000Z
rest/testing/rest_request_binding_test.cc
tomzhang/mldb
a09cf2d9ca454d1966b9e49ae69f2fe6bf571494
[ "Apache-2.0" ]
797
2015-12-09T19:48:19.000Z
2022-03-07T02:19:47.000Z
rest/testing/rest_request_binding_test.cc
matebestek/mldb
f78791cd34d01796705c0f173a14359ec1b2e021
[ "Apache-2.0" ]
103
2015-12-25T04:39:29.000Z
2022-02-03T02:55:22.000Z
/** rest_request_binding_test.cc Jeremy Barnes, 31 March 2015 Copyright (c) 2015 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "mldb/rest/res...
29.592593
94
0.576971
kstepanmpmg
9612a3d737b10d4151ab74e2225092d3c96e75ac
1,421
cpp
C++
lib/FuzzingCommon/DummyFuzzingSolver.cpp
delcypher/jfs
d38b3685e878bf552da52b9410b53dd2adcfdfd1
[ "MIT" ]
192
2018-01-08T03:28:28.000Z
2019-06-18T02:52:39.000Z
lib/FuzzingCommon/DummyFuzzingSolver.cpp
mc-imperial/jfs
d38b3685e878bf552da52b9410b53dd2adcfdfd1
[ "MIT" ]
24
2019-08-28T18:15:09.000Z
2020-12-07T03:56:45.000Z
lib/FuzzingCommon/DummyFuzzingSolver.cpp
delcypher/jfs
d38b3685e878bf552da52b9410b53dd2adcfdfd1
[ "MIT" ]
14
2018-01-08T06:58:39.000Z
2019-04-08T08:40:52.000Z
//===----------------------------------------------------------------------===// // // JFS // // Copyright 2017-2018 Daniel Liew // // This file is distributed under the MIT license. // See LICENSE.txt for details. // //===-------------------------------------------------------------...
29
80
0.627727
delcypher
961569204d83b05767f48e91acd8cd62dd6563b8
1,588
hpp
C++
include/mbgl/geometry/geometry.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
2
2017-02-28T22:41:54.000Z
2020-02-13T20:54:55.000Z
include/mbgl/geometry/geometry.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
null
null
null
include/mbgl/geometry/geometry.hpp
free1978/mapbox-gl-native
2a50fccd24e762d0de5a53bac358e5ddfea8d213
[ "BSD-2-Clause" ]
null
null
null
#ifndef MBGL_GEOMETRY_GEOMETRY #define MBGL_GEOMETRY_GEOMETRY #include <mbgl/util/pbf.hpp> #include <mbgl/util/noncopyable.hpp> #include <cstdlib> namespace mbgl { class Geometry : private util::noncopyable { public: inline explicit Geometry(pbf& data); enum command : uint8_t { end = 0, mo...
20.358974
71
0.493703
free1978
9617e0b6a859f09ae2edac9f830c28ff03cd67c9
4,998
cpp
C++
lib/cover/cover.cpp
spookey/full_power
a1c603da0ec552d15ee79ff1806e32619424a332
[ "MIT" ]
null
null
null
lib/cover/cover.cpp
spookey/full_power
a1c603da0ec552d15ee79ff1806e32619424a332
[ "MIT" ]
null
null
null
lib/cover/cover.cpp
spookey/full_power
a1c603da0ec552d15ee79ff1806e32619424a332
[ "MIT" ]
null
null
null
#include "cover.hpp" Cover::Cover(Cable& txt, Shell& exe, Flash& ini) : txt(txt), exe(exe), ini(ini) {} void Cover::setup(void) { if (!WiFi.mode(WIFI_STA)) { this->txt.sos("wifi error", true); } this->apply(); this->exe.add(this, &Cover::cmd_dialup, "wdial", "wifi dialup"); this->exe.add(this, &Cover:...
35.446809
70
0.572429
spookey
9618fb5b56c5f7b01859f9a2fe962bfff9f6c53a
1,684
cpp
C++
apis/rest/services/pkduck_service/code/Joiner/Verifier/LargeTokenGreedyVerifier.cpp
qcri/data_civilizer_system
3c732e3e8c65ea9ee4a44569b0d031bc2c17f946
[ "MIT" ]
6
2019-05-09T04:24:06.000Z
2021-04-17T16:01:02.000Z
apis/rest/services/pkduck_service/code/Joiner/Verifier/LargeTokenGreedyVerifier.cpp
qcri/data_civilizer_system
3c732e3e8c65ea9ee4a44569b0d031bc2c17f946
[ "MIT" ]
1
2020-10-08T11:19:03.000Z
2020-10-08T11:19:03.000Z
apis/rest/services/pkduck_service/code/Joiner/Verifier/LargeTokenGreedyVerifier.cpp
qcri/data_civilizer_system
3c732e3e8c65ea9ee4a44569b0d031bc2c17f946
[ "MIT" ]
3
2019-07-09T17:18:44.000Z
2021-05-26T13:52:16.000Z
// // Created by Wenbo Tao on 1/16/17. // #include "../PolynomialJoiner.h" using namespace std; double PolynomialJoiner::large_token_get_similarity(int x, int y) { // cout << endl; // cout << cells[x] << endl << cells[y] << endl; // for (auto c : edges) // cout << c.first.first << " " << c.first.second << " & " << c...
24.764706
112
0.558789
qcri
961a80fab4c34c5d50cfbb2aabb1c5c8c59f5a4f
8,222
cpp
C++
gui/tool-bar.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
gui/tool-bar.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
gui/tool-bar.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // 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 a...
27.406667
80
0.658721
lukas-ke
961ad0caa3d86b36395e7f5d15f6cec868c12577
6,404
cpp
C++
Chapter07/sim/test/simulation.cpp
PacktPublishing/Hands-On-Embedded-Programming-with-CPP-17
a9e11ab66bbe1e022c3c620b58e8599305dfaa64
[ "MIT" ]
37
2019-03-04T14:01:19.000Z
2022-03-27T22:53:49.000Z
Chapter07/sim/test/simulation.cpp
PacktPublishing/Hands-On-Embedded-Programming-with-CPP-17
a9e11ab66bbe1e022c3c620b58e8599305dfaa64
[ "MIT" ]
1
2019-03-11T13:40:13.000Z
2020-09-21T05:31:23.000Z
Chapter07/sim/test/simulation.cpp
PacktPublishing/Hands-On-Embedded-Programming-with-CPP-17
a9e11ab66bbe1e022c3c620b58e8599305dfaa64
[ "MIT" ]
16
2019-03-08T15:27:01.000Z
2021-12-27T08:45:32.000Z
/* simulation.cpp - Main file for the BMaC simulation and validation framework. Revision 0 Features: - Notes: - 2018/09/18, Maya Posch */ #include "config.h" #include "building.h" #include "nodes.h" #include <nymph/nymph.h> #include <thread> #include <condition_variable> #include <mutex> s...
31.860697
97
0.733604
PacktPublishing
961da7e11f5eb214302d009f5624b574a4979a27
414
hpp
C++
trader/tools/PreprocessorOptions.hpp
joshuakarbi/trader
07f3ecf1f0eefd800464e2dfe9ee27b58c15254f
[ "MIT" ]
11
2019-01-10T19:34:14.000Z
2019-09-24T05:30:03.000Z
trader/tools/PreprocessorOptions.hpp
joshuakarbi/trader
07f3ecf1f0eefd800464e2dfe9ee27b58c15254f
[ "MIT" ]
8
2019-01-10T21:18:23.000Z
2019-02-12T20:11:56.000Z
trader/tools/PreprocessorOptions.hpp
joshuakarbi/trader
07f3ecf1f0eefd800464e2dfe9ee27b58c15254f
[ "MIT" ]
2
2019-01-10T19:37:10.000Z
2019-07-12T01:49:18.000Z
#include <exception> // override rapidjson assertions to throw exceptions instead // this is better #ifndef RAPIDJSON_ASSERT #define RAPIDJSON_ASSERT(x) if(!(x)){ \ throw std::runtime_error("ERROR: rapidjson internal assertion failure: " #x); } #endif // required for paper trading vs. real url to be used #define P...
24.352941
81
0.743961
joshuakarbi
961f692429d76baf5718cf982737112e10d238e1
301
cpp
C++
starter_kits/C++/hlt/dropoff.cpp
johnnykwwang/Halite-III
dd16463f1f13d652e7172e82687136f2217bb427
[ "MIT" ]
2
2018-11-15T14:04:26.000Z
2018-11-19T01:54:01.000Z
starter_kits/C++/hlt/dropoff.cpp
johnnykwwang/Halite-III
dd16463f1f13d652e7172e82687136f2217bb427
[ "MIT" ]
5
2021-02-08T20:26:47.000Z
2022-02-26T04:28:33.000Z
starter_kits/C++/hlt/dropoff.cpp
johnnykwwang/Halite-III
dd16463f1f13d652e7172e82687136f2217bb427
[ "MIT" ]
1
2018-11-22T14:58:12.000Z
2018-11-22T14:58:12.000Z
#include "dropoff.hpp" #include "input.hpp" std::shared_ptr<hlt::Dropoff> hlt::Dropoff::_generate(hlt::PlayerId player_id) { hlt::EntityId dropoff_id; int x; int y; hlt::get_sstream() >> dropoff_id >> x >> y; return std::make_shared<hlt::Dropoff>(player_id, dropoff_id, x, y); }
25.083333
80
0.664452
johnnykwwang
9620151bddeb826f190047268d1a0e3323664403
2,121
cpp
C++
Projetos/Aula16/main.cpp
chaua/programacao-avancada
4f580006d6e7e79e1bb6b32a62702eda3daa5874
[ "MIT" ]
15
2018-04-05T00:15:01.000Z
2022-03-26T00:08:32.000Z
Projetos/Aula16/main.cpp
chaua/programacao-avancada
4f580006d6e7e79e1bb6b32a62702eda3daa5874
[ "MIT" ]
null
null
null
Projetos/Aula16/main.cpp
chaua/programacao-avancada
4f580006d6e7e79e1bb6b32a62702eda3daa5874
[ "MIT" ]
7
2018-03-23T00:11:56.000Z
2020-05-05T02:55:44.000Z
#include <iostream> #include <fstream> #include <string> #include "data.h" #include "data_dao.h" using namespace std; // ARQUIVOS // - Caminho Absoluto: // - Realiza a busca do arquivo a partir da raiz do sistema operacional // - Utiliza o caminho inteiro do arquivo // - Precisa conhecer a estrutura ...
25.554217
76
0.548326
chaua
9624eae0b5701a399486623f869dece64200ee7c
3,545
cpp
C++
implementations/memory_io/janice_io_memory.cpp
Noblis/INVSC-janice
82373b84b5faa0fb483c059c639e08de4b7c37cc
[ "MIT" ]
8
2017-07-03T10:06:00.000Z
2021-02-12T02:03:11.000Z
implementations/memory_io/janice_io_memory.cpp
Noblis/INVSC-janice
82373b84b5faa0fb483c059c639e08de4b7c37cc
[ "MIT" ]
45
2017-06-30T15:57:47.000Z
2018-08-07T19:55:56.000Z
implementations/memory_io/janice_io_memory.cpp
Noblis/INVSC-janice
82373b84b5faa0fb483c059c639e08de4b7c37cc
[ "MIT" ]
8
2018-02-06T19:46:22.000Z
2020-04-09T14:17:33.000Z
#include <janice_io_memory.h> #include <janice_io_memory_utils.hpp> namespace { struct JaniceMediaIteratorStateType { JaniceImage image; bool at_end; }; JaniceError is_video(JaniceMediaIterator*, bool* video) { *video = false; return JANICE_SUCCESS; } JaniceError get_frame_rate(JaniceMediaIterator*...
24.280822
101
0.686037
Noblis
9625e830e78799ddfc9788441147b41f31784393
383
cpp
C++
test/scope.cpp
heavywatal/cxxwtl
c5eedd06201cfb99fd2020a107ad85a24146d293
[ "MIT" ]
null
null
null
test/scope.cpp
heavywatal/cxxwtl
c5eedd06201cfb99fd2020a107ad85a24146d293
[ "MIT" ]
3
2017-11-07T10:28:28.000Z
2018-10-30T13:28:21.000Z
test/scope.cpp
heavywatal/cxxwtl
c5eedd06201cfb99fd2020a107ad85a24146d293
[ "MIT" ]
1
2018-04-16T05:52:04.000Z
2018-04-16T05:52:04.000Z
#include <wtl/scope.hpp> #include <iostream> void rvalue() { auto atexit = wtl::scope_exit([]{std::cout << "rvalue exit\n";}); std::cout << "rvalue body\n"; } void lvalue() { auto func = []{std::cout << "lvalue exit\n";}; auto atexit = wtl::scope_exit(std::move(func)); std::cout << "lvalue body\n...
18.238095
69
0.563969
heavywatal
96282217dad5b4fddac78d4b0c004db3aaba69e8
33,880
cpp
C++
src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2021-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
44.34555
100
0.600266
benety
962838e95ebe6d5e3228d1f25cf29ebd9f2dfc13
240
hpp
C++
src/modules/CustomPrinter.hpp
NobodyXu/swaystatus
18d131631ac25a92a78630e033e89d751ebe3306
[ "MIT" ]
18
2021-02-16T09:06:42.000Z
2021-12-09T19:08:02.000Z
src/modules/CustomPrinter.hpp
NobodyXu/swaystatus
18d131631ac25a92a78630e033e89d751ebe3306
[ "MIT" ]
18
2021-02-23T06:46:22.000Z
2021-07-26T06:10:13.000Z
src/modules/CustomPrinter.hpp
NobodyXu/swaystatus
18d131631ac25a92a78630e033e89d751ebe3306
[ "MIT" ]
1
2021-07-27T03:14:48.000Z
2021-07-27T03:14:48.000Z
#ifndef __swaystatus_CustomPrinter_HPP__ # define __swaystatus_CustomPrinter_HPP__ # include "Base.hpp" namespace swaystatus::modules { std::unique_ptr<Base> makeCustomPrinter(void *config); } /* namespace swaystatus::modules */ #endif
21.818182
54
0.795833
NobodyXu
9628f2598883bdefd15c3295e6e4514d01cff0af
8,569
hpp
C++
include/MCTS/MCTS.hpp
gress2/symreg
345071111bf2f030ff42d7f1325151abf78eca12
[ "MIT" ]
null
null
null
include/MCTS/MCTS.hpp
gress2/symreg
345071111bf2f030ff42d7f1325151abf78eca12
[ "MIT" ]
null
null
null
include/MCTS/MCTS.hpp
gress2/symreg
345071111bf2f030ff42d7f1325151abf78eca12
[ "MIT" ]
null
null
null
#pragma once #include <algorithm> #include <fstream> #include <iostream> #include <map> #include <memory> #include <queue> #include <random> #include <unordered_map> #include <vector> #include "brick.hpp" #include "dataset.hpp" #include "loss.hpp" #include "training_example.hpp" #include "util.hpp" #include "MCTS/sc...
26.204893
81
0.681993
gress2
9629f9d70026d388f8545461a22d80a34ff43cdb
4,364
cpp
C++
scratch/projects/folds/xMiuriOri2.cpp
tingelst/versor
c831231e5011cfd1f62da8948cff7956d2f6670b
[ "BSD-3-Clause" ]
null
null
null
scratch/projects/folds/xMiuriOri2.cpp
tingelst/versor
c831231e5011cfd1f62da8948cff7956d2f6670b
[ "BSD-3-Clause" ]
null
null
null
scratch/projects/folds/xMiuriOri2.cpp
tingelst/versor
c831231e5011cfd1f62da8948cff7956d2f6670b
[ "BSD-3-Clause" ]
null
null
null
/* * ===================================================================================== * * Filename: xMiuriOri2.cpp * * Description: * * Version: 1.0 * Created: 12/02/2013 15:37:40 * Revision: none * Compiler: gcc * * Author: Pablo Colapinto (), wolftyp...
20.780952
88
0.463336
tingelst
962aa251123eb7fb2b26abbdccd127e06b9aa338
4,707
hpp
C++
src/ngraph/runtime/cpu/pass/cpu_fusion.hpp
tzerrell/ngraph
b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd
[ "Apache-2.0" ]
null
null
null
src/ngraph/runtime/cpu/pass/cpu_fusion.hpp
tzerrell/ngraph
b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd
[ "Apache-2.0" ]
null
null
null
src/ngraph/runtime/cpu/pass/cpu_fusion.hpp
tzerrell/ngraph
b02b0812745ca1cb5f73d426ae9e0ad729eb0bbd
[ "Apache-2.0" ]
null
null
null
//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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://w...
34.357664
100
0.657106
tzerrell
962d70afa2544d720e5a2e0830405f1eb4df0a0c
1,433
hpp
C++
Diploma/core/GameProcess/forpawn.hpp
float-cat/diploma
e33d7ae173745e413d374c5b664e295491ac7b55
[ "Apache-2.0" ]
null
null
null
Diploma/core/GameProcess/forpawn.hpp
float-cat/diploma
e33d7ae173745e413d374c5b664e295491ac7b55
[ "Apache-2.0" ]
null
null
null
Diploma/core/GameProcess/forpawn.hpp
float-cat/diploma
e33d7ae173745e413d374c5b664e295491ac7b55
[ "Apache-2.0" ]
null
null
null
#ifndef FORPAWN_HPP #define FORPAWN_HPP #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <string.h> /* for memset() (on some compilers) */ #if defined __WIN32__ || defined _WIN32 || defined WIN32 #include <malloc.h> #endif #include "amx/amx.h" #include "amx/amxgc.h" #includ...
29.244898
108
0.747383
float-cat
962e94b12283063a27ffba950be9649d720e9f72
944
cc
C++
src/ui/a11y/lib/semantics/tests/mocks/mock_semantic_tree_service_factory.cc
dahlia-os/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
10
2020-12-28T17:04:44.000Z
2022-03-12T03:20:43.000Z
src/ui/a11y/lib/semantics/tests/mocks/mock_semantic_tree_service_factory.cc
dahlia-os/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
src/ui/a11y/lib/semantics/tests/mocks/mock_semantic_tree_service_factory.cc
dahliaOS/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/ui/a11y/lib/semantics/tests/mocks/mock_semantic_tree_service_factory.h" namespace accessibility_test { std::unique_ptr<a11y::SemanticTreeSe...
41.043478
93
0.779661
dahlia-os
96335137b48dde4b2aea5a746e46240bcb2b8698
7,495
cpp
C++
simulation/Simulation.cpp
walachey/football-worldcup-simulator
36e6f80e3498b4a4dc7b8bf18d45af6c95a8fbe7
[ "MIT" ]
1
2018-08-14T08:15:47.000Z
2018-08-14T08:15:47.000Z
simulation/Simulation.cpp
walachey/football-worldcup-simulator
36e6f80e3498b4a4dc7b8bf18d45af6c95a8fbe7
[ "MIT" ]
2
2020-01-22T07:17:46.000Z
2020-01-22T07:17:54.000Z
simulation/Simulation.cpp
walachey/football-worldcup-simulator
36e6f80e3498b4a4dc7b8bf18d45af6c95a8fbe7
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Simulation.h" #include <thread> #include <chrono> namespace sim { Simulation *Simulation::singleton = nullptr; void Simulation::reset() { assert(Simulation::singleton == nullptr); Simulation::singleton = this; numberOfThreads = 1; tournamentID = 0; randomSeed = (unsigned int)std:...
29.050388
117
0.70567
walachey
96359e08953c89a1257ab5bb4a5ad9ad776019bc
40,016
cc
C++
src/sst/core/config.cc
jleidel/sst-core
b4931c2e971c929be53020986f14a53257686be1
[ "BSD-3-Clause" ]
null
null
null
src/sst/core/config.cc
jleidel/sst-core
b4931c2e971c929be53020986f14a53257686be1
[ "BSD-3-Clause" ]
null
null
null
src/sst/core/config.cc
jleidel/sst-core
b4931c2e971c929be53020986f14a53257686be1
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2009-2021 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2021, NTESS // All rights reserved. // // This file is part of the SST software package. For license // information, see the LICENSE file in the ...
33.797297
120
0.580643
jleidel
963ce0e2c4978bd9501a55fe22131ebff42e7a01
3,539
cpp
C++
Jamma/src/Main.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
Jamma/src/Main.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
Jamma/src/Main.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////// // // Copyright(c) 2018-2019 Matt Jones // Subject to the MIT license, see LICENSE file. // /////////////////////////////////////////////////////////// #include "Main.h" #include "Window.h" #include "PathUtils.h" #include "../io/TextReadWriter.h" #include ".....
21.579268
102
0.659226
malisimo
963d0d1765710ef2ae61413d844f2c50676cccab
31,913
cpp
C++
CUSES/sources/CUSESImpl.cpp
metatoaster/cellml-api
d7baf9038e42859fa96117db6c9644f9f09ecf8b
[ "W3C" ]
1
2016-10-19T14:48:20.000Z
2016-10-19T14:48:20.000Z
CUSES/sources/CUSESImpl.cpp
metatoaster/cellml-api
d7baf9038e42859fa96117db6c9644f9f09ecf8b
[ "W3C" ]
1
2016-12-05T09:20:14.000Z
2016-12-05T18:08:05.000Z
CUSES/sources/CUSESImpl.cpp
metatoaster/cellml-api
d7baf9038e42859fa96117db6c9644f9f09ecf8b
[ "W3C" ]
14
2015-07-27T13:45:54.000Z
2022-02-02T05:19:53.000Z
#define IN_CUSES_MODULE #define MODULE_CONTAINS_CUSES #include "CUSESImpl.hpp" #include "CUSESBootstrap.hpp" #include "IfaceAnnoTools.hxx" #include "AnnoToolsBootstrap.hpp" #include <algorithm> #include <cmath> #undef max CDAUserBaseUnit::CDAUserBaseUnit(iface::cellml_api::Units* aBaseUnits) throw() : mBaseUnits(a...
26.999154
126
0.595713
metatoaster
963dcd8af32b7cb003615fae9eff7ef1218cdbf1
9,674
cpp
C++
openmp/libomptarget/src/interop.cpp
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
openmp/libomptarget/src/interop.cpp
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
openmp/libomptarget/src/interop.cpp
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
//===---------------interop.cpp - Implementation of interop directive -----===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
33.707317
80
0.627352
LaudateCorpus1
963e4d0e22135ee1429632178a985b4b2f90042d
6,138
cpp
C++
lib/common/utils.cpp
grayed/tmdcalc
3f592831ff084a3fca993d36f2cf7bb68b4892b9
[ "0BSD" ]
null
null
null
lib/common/utils.cpp
grayed/tmdcalc
3f592831ff084a3fca993d36f2cf7bb68b4892b9
[ "0BSD" ]
null
null
null
lib/common/utils.cpp
grayed/tmdcalc
3f592831ff084a3fca993d36f2cf7bb68b4892b9
[ "0BSD" ]
null
null
null
/* * Copyright (c) 2017 Artem Lipatov <artem.lipatov@mail.ru> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS"...
24.070588
129
0.544314
grayed
9640e1097c204a196f850ce686d3ad76fd9b5e4d
1,048
hpp
C++
src/CError.hpp
Vince0789/SA-MP-MySQL
9524fcc9088004948770ddd6e05a6074581d3095
[ "BSD-3-Clause" ]
182
2015-01-17T09:55:05.000Z
2022-03-30T13:08:48.000Z
src/CError.hpp
Tuise233/SA-MP-MySQL
a8113cd3a7b5dcee1002622c5901ff78e3e6e3fe
[ "BSD-3-Clause" ]
226
2015-01-01T12:22:11.000Z
2022-02-18T20:36:37.000Z
src/CError.hpp
Tuise233/SA-MP-MySQL
a8113cd3a7b5dcee1002622c5901ff78e3e6e3fe
[ "BSD-3-Clause" ]
149
2015-01-05T16:42:45.000Z
2022-03-26T22:04:24.000Z
#pragma once #include <string> #include <fmt/format.h> using std::string; template<typename T> class CError { using ErrorType = typename T::Error; public: CError() : m_Type(ErrorType::NONE) { } CError(ErrorType type, string &&msg) : m_Type(type), m_Message(std::move(msg)) { } template<typename... Args> ...
16.903226
69
0.659351
Vince0789
96426cac91895b6fb6f18f1d448a9c9bc780717d
889
cpp
C++
demo/util/gl.cpp
coxm/b2draw
e1dc391243161e8f4a88a05fa590f1804cd84e03
[ "MIT" ]
null
null
null
demo/util/gl.cpp
coxm/b2draw
e1dc391243161e8f4a88a05fa590f1804cd84e03
[ "MIT" ]
null
null
null
demo/util/gl.cpp
coxm/b2draw
e1dc391243161e8f4a88a05fa590f1804cd84e03
[ "MIT" ]
null
null
null
#include <iostream> #include <GL/glew.h> #include "./gl.h" namespace demo { std::string getLog( GLuint const handle, decltype(glGetShaderiv) writeLength, decltype(glGetShaderInfoLog) writeLog ) { GLint length{0}; writeLength(handle, GL_INFO_LOG_LENGTH, &length); std::string log(length, '\0'); if (length > ...
18.142857
69
0.716535
coxm
9644b8367042090055f72412600c5c3445ee6bd0
1,188
cpp
C++
src/prod/src/ServiceModel/ProvisionedFabricCodeVersionQueryResultItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/ServiceModel/ProvisionedFabricCodeVersionQueryResultItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/ServiceModel/ProvisionedFabricCodeVersionQueryResultItem.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
31.263158
117
0.714646
vishnuk007
9647fe7c5acc92e8db0b91caa67a37662d46364d
2,141
cc
C++
flare/testing/redis_mock_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
868
2021-05-28T04:00:22.000Z
2022-03-31T08:57:14.000Z
flare/testing/redis_mock_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
33
2021-05-28T08:44:47.000Z
2021-09-26T13:09:21.000Z
flare/testing/redis_mock_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
122
2021-05-28T08:22:23.000Z
2022-03-29T09:52:09.000Z
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless req...
33.453125
80
0.726296
AriCheng
964a78c866872ed3ebf3a5f76e755e953c6044af
784
cpp
C++
Recursion/39. Combination Sum/Soluition.cpp
VarunSAthreya/LeetCode-Solutions
aeab92df5bca208c2442ffdb1487fe5e3aadb3de
[ "MIT" ]
1
2021-11-24T16:20:32.000Z
2021-11-24T16:20:32.000Z
Recursion/39. Combination Sum/Soluition.cpp
VarunSAthreya/LeetCode-Solutions
aeab92df5bca208c2442ffdb1487fe5e3aadb3de
[ "MIT" ]
null
null
null
Recursion/39. Combination Sum/Soluition.cpp
VarunSAthreya/LeetCode-Solutions
aeab92df5bca208c2442ffdb1487fe5e3aadb3de
[ "MIT" ]
3
2021-09-03T15:14:12.000Z
2022-03-07T04:04:32.000Z
class Solution { public: vector<vector<int>> combinationSum(vector<int> &candidates, int target) { vector<vector<int>> res; if (candidates.size() == 0) return res; vector<int> ds; solve(candidates, target, res, ds, 0); return res; } void solve(vector<i...
26.133333
103
0.510204
VarunSAthreya
964b7c2a1766b0e59fbd0bd4056b47e5937579db
8,721
cpp
C++
expressions/aggregation/AggregationHandleCount.cpp
spring-operator/quickstep
3e98776002eb5db7154031fd6ef1a7f000a89d81
[ "Apache-2.0" ]
31
2016-01-20T05:43:46.000Z
2022-02-07T09:14:06.000Z
expressions/aggregation/AggregationHandleCount.cpp
spring-operator/quickstep
3e98776002eb5db7154031fd6ef1a7f000a89d81
[ "Apache-2.0" ]
221
2016-01-20T18:25:10.000Z
2016-06-26T02:58:12.000Z
expressions/aggregation/AggregationHandleCount.cpp
spring-operator/quickstep
3e98776002eb5db7154031fd6ef1a7f000a89d81
[ "Apache-2.0" ]
17
2016-01-20T04:00:21.000Z
2019-03-12T02:41:25.000Z
/** * Copyright 2011-2015 Quickstep Technologies LLC. * Copyright 2015 Pivotal Software, Inc. * Copyright 2016, Quickstep Research Group, Computer Sciences Department, * University of Wisconsin—Madison. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
38.082969
96
0.728816
spring-operator
964cd89b95b7fcf7e07190110fc208074d425ec7
376
cpp
C++
kikilib/TimerEventService.cpp
YukangLiu/kikilib
a6b5d43e720186ac290eb9953f9c03ce4bb5386b
[ "MIT" ]
46
2019-12-05T16:35:59.000Z
2022-03-26T14:23:19.000Z
kikilib/TimerEventService.cpp
WoBuShiXiaoKang/kikilib
a6b5d43e720186ac290eb9953f9c03ce4bb5386b
[ "MIT" ]
1
2019-12-11T08:02:04.000Z
2019-12-19T14:28:05.000Z
kikilib/TimerEventService.cpp
WoBuShiXiaoKang/kikilib
a6b5d43e720186ac290eb9953f9c03ce4bb5386b
[ "MIT" ]
8
2019-12-06T11:08:19.000Z
2022-03-05T02:30:51.000Z
//@Author Liu Yukang #include "TimerEventService.h" using namespace kikilib; TimerEventService::TimerEventService(Socket& sock, EventManager* evMgr) : EventService(sock, evMgr) { } TimerEventService::TimerEventService(Socket&& sock, EventManager* evMgr) : EventService(std::move(sock), evMgr) { } void TimerEventS...
20.888889
72
0.757979
YukangLiu
965810bd0b47a5e8a4cbdff646c20d655fce0973
6,344
cpp
C++
Wing.cpp
ancientlore/wing
7a86926729a72f603b1ea43a4dd5c2e45a230c64
[ "MIT" ]
1
2021-09-19T21:48:40.000Z
2021-09-19T21:48:40.000Z
Wing.cpp
ancientlore/wing
7a86926729a72f603b1ea43a4dd5c2e45a230c64
[ "MIT" ]
null
null
null
Wing.cpp
ancientlore/wing
7a86926729a72f603b1ea43a4dd5c2e45a230c64
[ "MIT" ]
null
null
null
// Wing.cpp : main source file for Wing.exe // #include "stdafx.h" #include <atlframe.h> #include <atlctrls.h> #include <atldlgs.h> #include "resource.h" #include "LayeredWindow.h" volatile bool gTimeToQuit = false; typedef struct { UCHAR Ttl; UCHAR Tos; UCHAR Flags; UCHAR OptionsSize; PUCH...
26
183
0.667718
ancientlore
96587cb1c68e59df4c3d6b3530134f2a29171f51
7,625
cpp
C++
platform/wm/rhodes/MapView/WmGraphics.cpp
mensfeld/rhodes
2962610a314ed563a0b7c83fcae6136913a1b033
[ "MIT" ]
173
2015-01-02T11:14:08.000Z
2022-03-05T09:54:54.000Z
platform/wm/rhodes/MapView/WmGraphics.cpp
sdwood/rhodes
8228aa40708dcbcc1d3967a479d1d84364022255
[ "MIT" ]
263
2015-01-05T04:35:22.000Z
2021-09-07T06:00:02.000Z
platform/wm/rhodes/MapView/WmGraphics.cpp
sdwood/rhodes
8228aa40708dcbcc1d3967a479d1d84364022255
[ "MIT" ]
77
2015-01-12T20:57:18.000Z
2022-02-17T15:15:14.000Z
/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * 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 ...
26.202749
107
0.687344
mensfeld
9659a1d55c8d410e0f909cb9c9dbdeac8964cafb
285
cc
C++
9_Palindrome_Number/Solution.cc
Samukawa-T1/LeetCode-Diary
551329796e7b6e8f9176d8cf85dc658b9211b7e9
[ "Apache-2.0" ]
null
null
null
9_Palindrome_Number/Solution.cc
Samukawa-T1/LeetCode-Diary
551329796e7b6e8f9176d8cf85dc658b9211b7e9
[ "Apache-2.0" ]
null
null
null
9_Palindrome_Number/Solution.cc
Samukawa-T1/LeetCode-Diary
551329796e7b6e8f9176d8cf85dc658b9211b7e9
[ "Apache-2.0" ]
null
null
null
class Solution { public: bool isPalindrome(int x){ if(x < 0 || (x % 10 == 0 && x != 0)) { return false; } int rev_last = 0; while(x > rev_last) { rev_last = rev_last * 10 + x % 10; x /= 10; } return x == rev_last || x == rev_last/10; } };
19
45
0.477193
Samukawa-T1
965a8b567a6db0c4dbb4aa4a9f8a2776971ad3d6
1,298
hpp
C++
tests/performance/point_type.hpp
Roboauto/spatial
fe652631eb5ec23a719bf1788c68cbd67060e12b
[ "BSL-1.0" ]
7
2015-12-07T02:10:23.000Z
2022-01-01T05:39:05.000Z
tests/performance/point_type.hpp
Roboauto/spatial
fe652631eb5ec23a719bf1788c68cbd67060e12b
[ "BSL-1.0" ]
1
2021-01-28T15:07:42.000Z
2021-01-28T15:07:42.000Z
tests/performance/point_type.hpp
Roboauto/spatial
fe652631eb5ec23a719bf1788c68cbd67060e12b
[ "BSL-1.0" ]
2
2016-08-31T13:30:18.000Z
2021-07-07T07:22:03.000Z
// -*- C++ -*- #ifndef SPATIAL_EXAMPLE_POINT_TYPE_HPP #define SPATIAL_EXAMPLE_POINT_TYPE_HPP #include <algorithm> // std::fill struct point3_type { typedef double value_type; point3_type() { } explicit point3_type (double value) { std::fill(values, values + 3, value); } template <typename Distribution> ex...
30.904762
74
0.680277
Roboauto
965d8d71bdd8505b358e260cade2aa310043de9a
18,870
cpp
C++
src/mailews/src/MailEwsSyncTodoTask.cpp
stonewell/exchange-ews-thunderbird
7b8cc41621ff29deb4145ad905344fecd60ccb0c
[ "MIT" ]
17
2016-02-24T15:13:04.000Z
2022-03-31T22:07:20.000Z
src/mailews/src/MailEwsSyncTodoTask.cpp
stonewell/exchange-ews-thunderbird
7b8cc41621ff29deb4145ad905344fecd60ccb0c
[ "MIT" ]
3
2016-02-24T20:05:09.000Z
2017-04-18T04:23:56.000Z
src/mailews/src/MailEwsSyncTodoTask.cpp
stonewell/exchange-ews-thunderbird
7b8cc41621ff29deb4145ad905344fecd60ccb0c
[ "MIT" ]
8
2018-06-01T08:32:35.000Z
2021-07-01T01:22:20.000Z
#include "nsXPCOMCIDInternal.h" #include "nsThreadUtils.h" #include "nsServiceManagerUtils.h" #include "nsIMsgIncomingServer.h" #include "nsIMsgFolder.h" #include "nsArrayUtils.h" #include "nsIMutableArray.h" #include "nsComponentManagerUtils.h" #include "nsIVariant.h" #include "calBaseCID.h" #include "calITodo.h" #in...
26.803977
102
0.646211
stonewell
965e7396c18b7b129e0c8d1faf86c7cf438fad03
312
cpp
C++
src/sources/logging/fileloggerimplementation.cpp
rkolovanov/qt-game-rpg
6fc105481181d246d01db9a5e5a8e5bad04da75f
[ "MIT" ]
1
2021-06-28T18:43:29.000Z
2021-06-28T18:43:29.000Z
src/sources/logging/fileloggerimplementation.cpp
rkolovanov/qt-game-rpg
6fc105481181d246d01db9a5e5a8e5bad04da75f
[ "MIT" ]
null
null
null
src/sources/logging/fileloggerimplementation.cpp
rkolovanov/qt-game-rpg
6fc105481181d246d01db9a5e5a8e5bad04da75f
[ "MIT" ]
null
null
null
#include "sources/logging/fileloggerimplementation.h" #include "sources/application/time.h" namespace logging { void FileLoggerImplementation::log(std::ostream& stream, const std::ostringstream& message) { stream << "[" << application::Time().getCurrentDateTime() << "] " << message.str() << "\n"; } };
24
95
0.695513
rkolovanov
965eebc8e617ec09fab004c08669a4b7772f6b16
137,455
cpp
C++
src/uscxml/transform/ChartToPromela.cpp
sradomski/uscxml
b8ba0e7c31f397a66f9d509ff20a85b33619475a
[ "W3C", "BSD-2-Clause" ]
null
null
null
src/uscxml/transform/ChartToPromela.cpp
sradomski/uscxml
b8ba0e7c31f397a66f9d509ff20a85b33619475a
[ "W3C", "BSD-2-Clause" ]
null
null
null
src/uscxml/transform/ChartToPromela.cpp
sradomski/uscxml
b8ba0e7c31f397a66f9d509ff20a85b33619475a
[ "W3C", "BSD-2-Clause" ]
null
null
null
/** * @file * @author 2012-2014 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de) * @copyright Simplified BSD * * @cond * This program is free software: you can redistribute it and/or modify * it under the terms of the FreeBSD license as published by the FreeBSD * project. * * This program is ...
38.427453
222
0.630694
sradomski
96612d790217efb5f7cdcedda512e8fffc06ad98
2,840
cpp
C++
math/power_of_two.cpp
Phonbopit/C-Plus-Plus
37a29008e6b77921a97a89ca8b7fd9e700aeccd0
[ "MIT" ]
2
2022-02-21T06:59:21.000Z
2022-02-21T06:59:24.000Z
math/power_of_two.cpp
Phonbopit/C-Plus-Plus
37a29008e6b77921a97a89ca8b7fd9e700aeccd0
[ "MIT" ]
null
null
null
math/power_of_two.cpp
Phonbopit/C-Plus-Plus
37a29008e6b77921a97a89ca8b7fd9e700aeccd0
[ "MIT" ]
1
2022-03-10T11:13:20.000Z
2022-03-10T11:13:20.000Z
/** * @file * @brief Implementation to check whether a number is a power of 2 or not. * * @details * This algorithm uses bit manipulation to check if a number is a power of 2 or * not. * * ### Algorithm * Let the input number be n, then the bitwise and between n and n-1 will let us * know whether the number i...
26.542056
80
0.616197
Phonbopit
96630164ccb876c0a4cea1fee916558013e2eae4
4,445
hpp
C++
include/xaos/detail/function.hpp
grisumbras/xaos
9d8a93911b9284a826ad43ba133a2febf960481c
[ "BSL-1.0" ]
null
null
null
include/xaos/detail/function.hpp
grisumbras/xaos
9d8a93911b9284a826ad43ba133a2febf960481c
[ "BSL-1.0" ]
null
null
null
include/xaos/detail/function.hpp
grisumbras/xaos
9d8a93911b9284a826ad43ba133a2febf960481c
[ "BSL-1.0" ]
null
null
null
#ifndef XAOS_DETAIL_FUNCTION_HPP #define XAOS_DETAIL_FUNCTION_HPP #include <xaos/detail/backend_pointer.hpp> #include <xaos/detail/function_alloc.hpp> #include <xaos/detail/function_overloads.hpp> #include <boost/core/empty_value.hpp> #include <boost/mp11/algorithm.hpp> #include <boost/mp11/list.hpp> #include <boost...
30.033784
79
0.728459
grisumbras
96666edbd8b62ccc00d0e736df792c1f29a392b4
1,695
hpp
C++
i23dSFM/stl/indexed_sort.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
null
null
null
i23dSFM/stl/indexed_sort.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
null
null
null
i23dSFM/stl/indexed_sort.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
1
2019-02-18T09:49:32.000Z
2019-02-18T09:49:32.000Z
// Copyright (c) 2012, 2013 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #ifndef I23DSFM_STL_INDEXED_SORT_H #define I23DSFM_STL_INDEXED_SORT_H n...
25.298507
101
0.658997
zyxrrr
966a393e324b20538af1df465413e035a8bfd3ab
3,157
cpp
C++
YorozuyaGSLib/source/CAsyncLogger.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/CAsyncLogger.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/CAsyncLogger.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <CAsyncLogger.hpp> START_ATF_NAMESPACE CAsyncLogger::CAsyncLogger() { using org_ptr = void (WINAPIV*)(struct CAsyncLogger*); (org_ptr(0x1403bda40L))(this); }; void CAsyncLogger::ctor_CAsyncLogger() { using org_ptr = void (WINAPIV*)(struct CAsyncLogger*); (o...
33.585106
145
0.623377
lemkova
966dbc1cc970c3fed8bcd1675bf4f04820057090
13,597
cpp
C++
source/glannotations/source/States/SplineState.cpp
dgimb89/glannotations
df687dbae1906cdb08c7b10cb006c025c4ba6406
[ "MIT" ]
null
null
null
source/glannotations/source/States/SplineState.cpp
dgimb89/glannotations
df687dbae1906cdb08c7b10cb006c025c4ba6406
[ "MIT" ]
null
null
null
source/glannotations/source/States/SplineState.cpp
dgimb89/glannotations
df687dbae1906cdb08c7b10cb006c025c4ba6406
[ "MIT" ]
null
null
null
#include <glannotations/States/SplineState.h> #include <glannotations/Renderer/AbstractRenderer.h> #include <glannotations/AbstractAnnotation.h> #include <glannotations/States/StateInterpolation.h> #include <glm/gtx/rotate_vector.hpp> #include <glm/gtx/vector_angle.hpp> #include <iostream> #include <math.h> glannota...
32.296912
146
0.762815
dgimb89
966e73f6d241e6fedffd21ef27bebb3bfc9b294f
476
hpp
C++
Engine/src/ecs/components/Renderable.hpp
dabbertorres/LinuxOpenGL
0dba561244d720e64bea4c839c95db036d479bdf
[ "MIT" ]
null
null
null
Engine/src/ecs/components/Renderable.hpp
dabbertorres/LinuxOpenGL
0dba561244d720e64bea4c839c95db036d479bdf
[ "MIT" ]
1
2016-05-05T00:51:58.000Z
2016-05-05T00:51:58.000Z
Engine/src/ecs/components/Renderable.hpp
dabbertorres/LinuxOpenGL
0dba561244d720e64bea4c839c95db036d479bdf
[ "MIT" ]
null
null
null
#ifndef DBR_ENG_ECS_RENDERABLE_HPP #define DBR_ENG_ECS_RENDERABLE_HPP #include "Graphics/Types.hpp" #include "ecs/Component.hpp" namespace dbr { namespace eng { namespace ecs { class Renderable : public Component { public: Renderable(Id id, gfx::H...
17
61
0.548319
dabbertorres
96718ec412d1399e1c17c97b461e1635829bfd2d
255
hpp
C++
lab07/3.2_vehicle/vehicle/Car.hpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
null
null
null
lab07/3.2_vehicle/vehicle/Car.hpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
18
2018-02-07T07:10:18.000Z
2018-05-23T08:11:28.000Z
lab07/3.2_vehicle/vehicle/Car.hpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
null
null
null
#pragma once #include "CarBrand.h" template <typename CVehicle> class CCar : public CVehicle { public: using Brand = CarBrand; CCar(size_t seatsCount, Brand brand); Brand GetBrand() const override; private: Brand m_brand; }; #include "Car.ipp"
12.142857
38
0.72549
AlexanderFadeev
96757bc5087d3d70310677625ff2655dca99cae4
1,093
cc
C++
Replicator/tests/DBAccessTestWrapper.cc
mhocouchbase/couchbase-lite-core
8a527a066b703c8865b4e61cbd9e3d41d81ba5ef
[ "Apache-2.0" ]
null
null
null
Replicator/tests/DBAccessTestWrapper.cc
mhocouchbase/couchbase-lite-core
8a527a066b703c8865b4e61cbd9e3d41d81ba5ef
[ "Apache-2.0" ]
null
null
null
Replicator/tests/DBAccessTestWrapper.cc
mhocouchbase/couchbase-lite-core
8a527a066b703c8865b4e61cbd9e3d41d81ba5ef
[ "Apache-2.0" ]
null
null
null
// // DBAccessTestWrapper.cc // // Copyright (C) 2020 Jens Alfke. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // ...
31.228571
80
0.756633
mhocouchbase
9675dfae28287c0efd9e911cd002c91a2cf54f50
2,267
hpp
C++
src/utils/block.hpp
ktrianta/jacobi-svd-evd
8162562c631c3d1541e23b1fa38ec7600a5032af
[ "MIT" ]
3
2019-03-09T14:22:26.000Z
2021-04-24T05:40:44.000Z
src/utils/block.hpp
ktrianta/jacobi-svd-evd
8162562c631c3d1541e23b1fa38ec7600a5032af
[ "MIT" ]
35
2019-03-17T14:02:55.000Z
2019-06-12T13:15:19.000Z
src/utils/block.hpp
ktrianta/jacobi-svd-evd
8162562c631c3d1541e23b1fa38ec7600a5032af
[ "MIT" ]
4
2019-03-09T14:22:30.000Z
2020-09-28T19:36:42.000Z
#pragma once #include <cstdlib> #include "matrix.hpp" // perform C = AB void mult_block(struct matrix_t Amat, size_t blockA_row, size_t blockA_col, struct matrix_t Bmat, size_t blockB_row, size_t blockB_col, struct matrix_t Cmat, size_t blockC_row, size_t blockC_col, size_t block_size); // perform D = ...
70.84375
120
0.672695
ktrianta
9677f50e8b4a0e1aaf745c93fdbeb30a58c31a15
995
cpp
C++
test/HasherTest.cpp
hdc-arizona/MediatedCubes
bf5d9cdec18eeea9903717a7299cc93ed644af1d
[ "MIT" ]
null
null
null
test/HasherTest.cpp
hdc-arizona/MediatedCubes
bf5d9cdec18eeea9903717a7299cc93ed644af1d
[ "MIT" ]
null
null
null
test/HasherTest.cpp
hdc-arizona/MediatedCubes
bf5d9cdec18eeea9903717a7299cc93ed644af1d
[ "MIT" ]
null
null
null
#include <boost/test/unit_test.hpp> #include "Hasher.h" BOOST_AUTO_TEST_SUITE(HasherTest) BOOST_AUTO_TEST_CASE(UpdateDoesNotCommuteWithConcat) { Hasher h; Hasher g; h.update(1); h.update(2); g.update(12); BOOST_CHECK(h.digest() != g.digest()); } BOOST_AUTO_TEST_CASE(CopyProducesIdentical) { Hasher h; h....
14.632353
53
0.694472
hdc-arizona
9679b0ab04f8dfedb329c8aa0d72085a7c26fa22
5,991
cpp
C++
tcb/src/v20180608/model/DescribeCloudBaseRunServerDomainNameResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tcb/src/v20180608/model/DescribeCloudBaseRunServerDomainNameResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tcb/src/v20180608/model/DescribeCloudBaseRunServerDomainNameResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
34.431034
132
0.698381
suluner
9679c785626b7b81aa1da6d3092fe2867f87aef5
2,391
cpp
C++
Medium/3-longestsubnorep.cpp
mzhou08/Leetcode
b186f6cb4ecc6efb30d4da96be7f3ca15d7c4e59
[ "Apache-2.0" ]
null
null
null
Medium/3-longestsubnorep.cpp
mzhou08/Leetcode
b186f6cb4ecc6efb30d4da96be7f3ca15d7c4e59
[ "Apache-2.0" ]
null
null
null
Medium/3-longestsubnorep.cpp
mzhou08/Leetcode
b186f6cb4ecc6efb30d4da96be7f3ca15d7c4e59
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <string> #include <vector> using namespace std; /* Submission Statistics: Runtime: 132 ms, faster than 11.94% of C++ online submissions for Longest Substring Without Repeating Characters. Memory Usage: 104.4 MB, less than 9.22% of C++ online submissions for Longest Substring Without Repea...
30.653846
117
0.495609
mzhou08
9679ec86b80d94cf8f31dda3a9705ef7ce836464
526
cpp
C++
63.cpp
bodhiye/Offer
c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c
[ "MIT" ]
1
2018-05-08T01:35:49.000Z
2018-05-08T01:35:49.000Z
63.cpp
bodhiye/Offer
c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c
[ "MIT" ]
null
null
null
63.cpp
bodhiye/Offer
c723210d3052bebd6cd9adfc2959c4aa2b8a2e0c
[ "MIT" ]
1
2021-07-24T02:15:42.000Z
2021-07-24T02:15:42.000Z
#include <iostream> #include <vector> #include <algorithm> using namespace std; vector<int> v; int n; void Insert(int num) { v.push_back(num); n = v.size(); for (int i = n - 1; i > 0 && v[i] < v[i - 1]; --i) swap(v[i], v[i - 1]); } double GetMedian() { return (v[(n - 1) >> 1] + v[n >> 1]) / ...
16.4375
54
0.480989
bodhiye
967adb093c66db540c2858b60c1f7d13d6b68e81
575
cpp
C++
Problems/bamboo.cpp
idcodeoverflow/ACMSolvedProblems
aa5ab61e231d871125dd6401edd692d209059ff7
[ "MIT" ]
null
null
null
Problems/bamboo.cpp
idcodeoverflow/ACMSolvedProblems
aa5ab61e231d871125dd6401edd692d209059ff7
[ "MIT" ]
null
null
null
Problems/bamboo.cpp
idcodeoverflow/ACMSolvedProblems
aa5ab61e231d871125dd6401edd692d209059ff7
[ "MIT" ]
null
null
null
#include <stdio.h> #include <math.h> #define EP 0.001 #define IN 0.00001 int t = 0, i = 0; double h = 0.0, d = 0.0, s = 0.0; double obtener_c() { double c = 0.0, a = 0.0, b = 0.0, A = 0.0, B = 0.0; for(A = 0.00; A < 1.0; A += IN) { a = A * h; b = (1.0 - A) * h; if(a < b) c = sqrt(b * b - a * a); else c...
15.972222
52
0.446957
idcodeoverflow
967d120b5ae8b09b1288d1eea9d8a330f4b30149
687
cpp
C++
Zork/globals.cpp
Mefiso/zork
1eb26348f88edcd1cb168ce8061c5ccd5610d1f3
[ "MIT" ]
null
null
null
Zork/globals.cpp
Mefiso/zork
1eb26348f88edcd1cb168ce8061c5ccd5610d1f3
[ "MIT" ]
null
null
null
Zork/globals.cpp
Mefiso/zork
1eb26348f88edcd1cb168ce8061c5ccd5610d1f3
[ "MIT" ]
null
null
null
#include "globals.h" //using namespace std; // ------------------------------------------------- bool Same(const string& a, const string& b) { return _stricmp(a.c_str(), b.c_str()) == 0; } bool Same(const char* a, const string& b) { return _stricmp(a, b.c_str()) == 0; } bool Same(const string& a, const char* b) {...
17.175
60
0.554585
Mefiso
9681341aeca47a0444b1ae3e72e447cba5b786ab
1,767
hh
C++
src/c++/include/reference/Seed.hh
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
13
2018-02-09T22:59:39.000Z
2021-11-29T06:33:22.000Z
src/c++/include/reference/Seed.hh
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
17
2018-01-26T11:36:07.000Z
2022-02-03T18:48:43.000Z
src/c++/include/reference/Seed.hh
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
4
2018-10-19T20:00:00.000Z
2020-10-29T14:44:06.000Z
/** ** Isaac Genome Alignment Software ** Copyright (c) 2010-2017 Illumina, Inc. ** All rights reserved. ** ** This software is provided under the terms and conditions of the ** GNU GENERAL PUBLIC LICENSE Version 3 ** ** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3 ** along with ...
26.772727
175
0.710243
Illumina
9681401242d880547108b3a6efc748f5bbeafd16
408
hpp
C++
include/RED4ext/Scripting/Natives/Generated/ent/VertexAnimationMapperSourceType.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
42
2020-12-25T08:33:00.000Z
2022-03-22T14:47:07.000Z
include/RED4ext/Scripting/Natives/Generated/ent/VertexAnimationMapperSourceType.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
38
2020-12-28T22:36:06.000Z
2022-02-16T11:25:47.000Z
include/RED4ext/Scripting/Natives/Generated/ent/VertexAnimationMapperSourceType.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
20
2020-12-28T22:17:38.000Z
2022-03-22T17:19:01.000Z
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> namespace RED4ext { namespace ent { enum class VertexAnimationMapperSourceType : uint32_t { FloatTrack = 0, TranslationX = 1, TranslationY = 2, TranslationZ = 3, RotationQuatX = 4, RotationQuatY = 5, ...
18.545455
57
0.683824
jackhumbert
96818053ea161b7b0fc284b9617776c30bc8af05
334
hpp
C++
include/mio/unordered_set.hpp
inie0722/mio
205411c2a24fe216c9f981b6a974cdb0118f7560
[ "BSL-1.0" ]
null
null
null
include/mio/unordered_set.hpp
inie0722/mio
205411c2a24fe216c9f981b6a974cdb0118f7560
[ "BSL-1.0" ]
null
null
null
include/mio/unordered_set.hpp
inie0722/mio
205411c2a24fe216c9f981b6a974cdb0118f7560
[ "BSL-1.0" ]
null
null
null
#pragma once #include <parallel_hashmap/phmap.h> namespace mio { template <class T, class Hash = phmap::priv::hash_default_hash<T>, class Eq = phmap::priv::hash_default_eq<T>, class Alloc = phmap::priv::Allocator<T>> using unordered_set = phmap::node_hash_set<T, Hash,...
27.833333
67
0.628743
inie0722
96833ec3bc2d8527cfd2174dd8522061a28d225b
23,120
cxx
C++
model_server/ui_browser/src/SetsUI.cxx
kit-transue/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
2
2015-11-24T03:31:12.000Z
2015-11-24T16:01:57.000Z
model_server/ui_browser/src/SetsUI.cxx
radtek/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
null
null
null
model_server/ui_browser/src/SetsUI.cxx
radtek/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
1
2019-05-19T02:26:08.000Z
2019-05-19T02:26:08.000Z
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
22.868447
153
0.627119
kit-transue
9683818f3d590400aa4d5b74a6a713ade34d187d
1,453
cpp
C++
led_tutorial/src/rgb_led.cpp
PigeonSensei/raspberry_pi_ros_tutorial
07f824bf43f304ebe328f1e557ca7fa5c9cad44c
[ "MIT" ]
null
null
null
led_tutorial/src/rgb_led.cpp
PigeonSensei/raspberry_pi_ros_tutorial
07f824bf43f304ebe328f1e557ca7fa5c9cad44c
[ "MIT" ]
null
null
null
led_tutorial/src/rgb_led.cpp
PigeonSensei/raspberry_pi_ros_tutorial
07f824bf43f304ebe328f1e557ca7fa5c9cad44c
[ "MIT" ]
3
2021-11-15T00:34:08.000Z
2022-02-28T09:55:38.000Z
#include <ros/ros.h> #include <wiringPi.h> #include "led_tutorial/SetRGBDigital.h" bool R = true; bool G = true; bool B = true; bool SetRGBDigitalCallBack(led_tutorial::SetRGBDigital::Request &req, led_tutorial::SetRGBDigital::Response &res) { R = req.R; G = req.G; B = req.B; res....
21.367647
117
0.623538
PigeonSensei
9684557bcc67e9f71e660d7bbc9c531861c1b1e8
14,199
cxx
C++
Rendering/OpenGL2/vtkOpenGLTexture.cxx
vovythevov/VTK
565751995d1dd2d1eec821d5e34564ec4c21acc8
[ "BSD-3-Clause" ]
null
null
null
Rendering/OpenGL2/vtkOpenGLTexture.cxx
vovythevov/VTK
565751995d1dd2d1eec821d5e34564ec4c21acc8
[ "BSD-3-Clause" ]
null
null
null
Rendering/OpenGL2/vtkOpenGLTexture.cxx
vovythevov/VTK
565751995d1dd2d1eec821d5e34564ec4c21acc8
[ "BSD-3-Clause" ]
null
null
null
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLTexture.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software...
28.627016
90
0.573209
vovythevov
96876780bfc31d4afa27bc75d31ba62b9af5b9fe
1,567
hpp
C++
include/tweedledee/quil/ast/nodes/decl_parameter.hpp
boschmitt/tweedledee
a7f5041681350601469b38311b9654e2c22643c0
[ "MIT" ]
4
2018-07-21T08:11:56.000Z
2019-05-30T20:06:43.000Z
include/tweedledee/quil/ast/nodes/decl_parameter.hpp
boschmitt/tweedledee
a7f5041681350601469b38311b9654e2c22643c0
[ "MIT" ]
null
null
null
include/tweedledee/quil/ast/nodes/decl_parameter.hpp
boschmitt/tweedledee
a7f5041681350601469b38311b9654e2c22643c0
[ "MIT" ]
1
2019-05-15T14:11:28.000Z
2019-05-15T14:11:28.000Z
/*------------------------------------------------------------------------------------------------- | This file is distributed under the MIT License. | See accompanying file /LICENSE for details. *------------------------------------------------------------------------------------------------*/ #pragma once #include "...
24.484375
99
0.627313
boschmitt
9687d82b43d145ca22f54e7219ac6f0a49256427
1,665
cpp
C++
1098/main.cpp
Heliovic/PAT_Solutions
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
2
2019-03-18T12:55:38.000Z
2019-09-07T10:11:26.000Z
1098/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
1098/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
#include <cstdio> #include <algorithm> #include <cstring> #define MAX_N 128 using namespace std; int orignum[MAX_N]; int tempnum[MAX_N]; int destnum[MAX_N]; int N; bool check() { for (int i = 1 ; i <= N; i++) if (destnum[i] != tempnum[i]) return false; return true; } bool insertion() { ...
17.526316
54
0.417417
Heliovic
9688129e4a14381f93a0b48d31e79c9e24055d28
9,785
hpp
C++
include/Nazara/Audio/OpenAL.hpp
AntoineJT/NazaraEngine
e0b05a7e7a2779e20a593b4083b4a881cc57ce14
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
null
null
null
include/Nazara/Audio/OpenAL.hpp
AntoineJT/NazaraEngine
e0b05a7e7a2779e20a593b4083b4a881cc57ce14
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
null
null
null
include/Nazara/Audio/OpenAL.hpp
AntoineJT/NazaraEngine
e0b05a7e7a2779e20a593b4083b4a881cc57ce14
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
null
null
null
// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Audio module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_OPENAL_HPP #define NAZARA_OPENAL_HPP #ifdef NAZARA_AUDIO_OPENAL #include <Nazara/Prerequisites.hpp> #include <Naz...
50.699482
100
0.79489
AntoineJT
96891869ad7149c5ddad7a946e73f1393c97b885
4,613
cpp
C++
src/kernels/cpu/reference/convolution.cpp
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
src/kernels/cpu/reference/convolution.cpp
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
src/kernels/cpu/reference/convolution.cpp
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
/* Copyright 2019-2021 Canaan Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
49.074468
147
0.567743
louareg
9693badc7f320eb7039e8e3a88284724ad3000a1
23,341
cc
C++
src/amuse/community/smalln/src/smallN_unpert.cc
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
src/amuse/community/smalln/src/smallN_unpert.cc
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
src/amuse/community/smalln/src/smallN_unpert.cc
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
// Functions to handle partial or full unperturbed motion in smallN. // Structure shamelessly cribbed from Starlab::hdyn_unpert.C by the // author. Retained Starlab data structures to simplify code // importation. // // Author: Steve McMillan. // // Externally visible functions: // // real get_tidal_potential(hdyn *b...
30.273671
80
0.626537
rknop
969452b93ed569757597907bf483de31098dec8d
518
cpp
C++
TESTS/mbedmicro-mbed/static_assert/main.cpp
pradeep-gr/mbed-os5-onsemi
576d096f2d9933c39b8a220f486e9756d89173f2
[ "Apache-2.0" ]
7
2017-01-15T16:37:41.000Z
2021-08-10T02:14:04.000Z
TESTS/mbedmicro-mbed/static_assert/main.cpp
pradeep-gr/mbed-os5-onsemi
576d096f2d9933c39b8a220f486e9756d89173f2
[ "Apache-2.0" ]
1
2018-05-18T10:50:02.000Z
2018-05-18T10:50:02.000Z
TESTS/mbedmicro-mbed/static_assert/main.cpp
pradeep-gr/mbed-os5-onsemi
576d096f2d9933c39b8a220f486e9756d89173f2
[ "Apache-2.0" ]
9
2017-04-27T07:54:26.000Z
2021-08-10T02:14:05.000Z
#include <stdio.h> #include <stdint.h> #include "mbed_toolchain.h" #include "greentea-client/test_env.h" #include "unity.h" #include "utest.h" using namespace utest::v1; void no_test() {} utest::v1::status_t test_setup(const size_t number_of_cases) { GREENTEA_SETUP(5, "default_auto"); return verbose_test_se...
19.185185
62
0.722008
pradeep-gr
f7b2d83e65c0ecda36a39fc44adf55e2c50a6c75
1,443
cpp
C++
ex02-find-extremes/ExtremesMain.cpp
kglogins/bitl-ds-workspace-cpp
0999247f3da9f63d77faebbdef7ba2c6a554f9dd
[ "MIT" ]
null
null
null
ex02-find-extremes/ExtremesMain.cpp
kglogins/bitl-ds-workspace-cpp
0999247f3da9f63d77faebbdef7ba2c6a554f9dd
[ "MIT" ]
null
null
null
ex02-find-extremes/ExtremesMain.cpp
kglogins/bitl-ds-workspace-cpp
0999247f3da9f63d77faebbdef7ba2c6a554f9dd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <sstream> #include <iomanip> #include "Student.h" using namespace std; using namespace ds_course; Student getMin(Student *ss, int count); Student getMax(Student *ss, int count); int main() { int studentsCount; cin >> studentsCount; Studen...
19.5
91
0.580735
kglogins
f7b40faeb419b286769eec39622a9b1cac460944
6,485
cpp
C++
Gpufit/tests/Gauss_Fit_1D.cpp
sriharijayaram5/Gpufit
468ffbce6e6ff98632951af5e027c88c332bc1e0
[ "MIT" ]
228
2017-08-10T17:46:44.000Z
2022-03-29T07:06:06.000Z
Gpufit/tests/Gauss_Fit_1D.cpp
sriharijayaram5/Gpufit
468ffbce6e6ff98632951af5e027c88c332bc1e0
[ "MIT" ]
90
2017-08-14T11:41:19.000Z
2022-03-30T12:22:59.000Z
Gpufit/tests/Gauss_Fit_1D.cpp
sriharijayaram5/Gpufit
468ffbce6e6ff98632951af5e027c88c332bc1e0
[ "MIT" ]
76
2017-08-16T15:20:08.000Z
2022-03-16T06:28:38.000Z
#define BOOST_TEST_MODULE Gpufit #include "Gpufit/gpufit.h" #include <boost/test/included/unit_test.hpp> #include <array> #include <cmath> template<std::size_t n_points, std::size_t n_parameters> void generate_gauss_1d( std::array< REAL, n_points >& values, std::array< REAL, n_points >& x_data, std::arr...
31.480583
84
0.615112
sriharijayaram5
f7b747f64abc6d158a6f781eec3c64a96b511b81
1,218
hpp
C++
src/3rd party/boost/boost/python/detail/construct.hpp
OLR-xray/OLR-3.0
b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611
[ "Apache-2.0" ]
8
2016-01-25T20:18:51.000Z
2019-03-06T07:00:04.000Z
src/3rd party/boost/boost/python/detail/construct.hpp
OLR-xray/OLR-3.0
b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611
[ "Apache-2.0" ]
null
null
null
src/3rd party/boost/boost/python/detail/construct.hpp
OLR-xray/OLR-3.0
b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611
[ "Apache-2.0" ]
3
2016-02-14T01:20:43.000Z
2021-02-03T11:19:11.000Z
// Copyright David Abrahams 2002. Permission to copy, use, // modify, sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided // "as is" without express or implied warranty, and with no claim as // to its suitability for any purpose. #ifndef CONSTR...
27.681818
69
0.697865
OLR-xray
f7b8f01a1a001a3314d1d9bb7234a9b98b3fa2b0
1,436
cpp
C++
1101-9999/1654. Minimum Jumps to Reach Home.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
1101-9999/1654. Minimum Jumps to Reach Home.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
1101-9999/1654. Minimum Jumps to Reach Home.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
class Solution { public: int minimumJumps(vector<int> &forbidden, int a, int b, int x) { // int left = min(0,x-2*a-1); // int right = x+2*b+1; int left = -1; int right = 4001; unordered_set<int> f; for (auto &n : forbidden) { f.insert(n); } unordered_set<string> visited; ...
24.758621
106
0.460306
erichuang1994
f7b9ee44466ed3833737d5f7c3e5ee900edc6df8
399
cpp
C++
CodeChef/Easy/E0053.cpp
Mohammed-Shoaib/HackerRank-Problems
ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b
[ "MIT" ]
54
2019-05-13T12:13:09.000Z
2022-02-27T02:59:00.000Z
CodeChef/Easy/E0053.cpp
Mohammed-Shoaib/HackerRank-Problems
ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b
[ "MIT" ]
2
2020-10-02T07:16:43.000Z
2020-10-19T04:36:19.000Z
CodeChef/Easy/E0053.cpp
Mohammed-Shoaib/HackerRank-Problems
ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b
[ "MIT" ]
20
2020-05-26T09:48:13.000Z
2022-03-18T15:18:27.000Z
// Problem Code: J7 #include <iostream> #include <iomanip> #include <cmath> using namespace std; double theBestBox(int P, int S) { double a, b, V; a = (P - sqrt(pow(P, 2) - 24*S))/12.0; b = (P/4.0 - 2*a); V = pow(a, 2) * b; return V; } int main(){ int T, P, S; cout << fixed << setprecision(2); cin >> T; wh...
15.346154
39
0.546366
Mohammed-Shoaib
f7baccebe3c3db9e5caa1ebe34234daa79056103
347
cpp
C++
Source/modio/Private/Schemas/ModioInstalledMod.cpp
rproepp/UE4Plugin
fea28dd683bce081a57f3346c74c3fee26e76ace
[ "MIT" ]
12
2021-03-26T07:49:10.000Z
2022-03-30T10:24:24.000Z
Source/modio/Private/Schemas/ModioInstalledMod.cpp
colorstheforce/modio-ue4
374241e232269398465cd659b41488933ba42a39
[ "MIT" ]
2
2021-07-15T16:15:33.000Z
2021-11-14T09:18:17.000Z
Source/modio/Private/Schemas/ModioInstalledMod.cpp
colorstheforce/modio-ue4
374241e232269398465cd659b41488933ba42a39
[ "MIT" ]
2
2021-06-11T21:45:56.000Z
2022-03-18T06:30:00.000Z
// Copyright 2020 modio. All Rights Reserved. // Released under MIT. #include "Schemas/ModioInstalledMod.h" void InitializeInstalledMod(FModioInstalledMod &installed_mod, const ModioInstalledMod &modio_installed_mod) { installed_mod.Path = UTF8_TO_TCHAR(modio_installed_mod.path); InitializeMod(installed_mod.Mod, ...
34.7
108
0.821326
rproepp
f7bdc65129288c8bda92e00828a0ec72e4bf69bf
1,682
hpp
C++
include/fixed_containers/string_literal.hpp
alexkaratarakis/fixed-containers
f845532e9cc5f79a651e22a679ff4a77b5e4967a
[ "MIT" ]
32
2021-06-29T03:07:49.000Z
2022-03-30T06:13:09.000Z
include/fixed_containers/string_literal.hpp
alexkaratarakis/fixed-containers
f845532e9cc5f79a651e22a679ff4a77b5e4967a
[ "MIT" ]
1
2021-11-10T20:20:04.000Z
2021-11-22T22:49:25.000Z
include/fixed_containers/string_literal.hpp
alexkaratarakis/fixed-containers
f845532e9cc5f79a651e22a679ff4a77b5e4967a
[ "MIT" ]
4
2021-10-11T02:47:57.000Z
2022-01-23T18:38:45.000Z
#pragma once #include <cassert> #include <cstddef> #include <string_view> namespace fixed_containers { /** * Fully constexpr implementation of a compile-time literal null-terminated string. * StringLiteral is trivially_copyable and standard_layout. Furthermore, all functions are * constexpr. * * Compare: * <ul>...
29.508772
94
0.670036
alexkaratarakis
f7c3eb87e6c02fedf1319f2c1e43eaabae102c57
2,641
cpp
C++
src/galfunc/Functions.cpp
ranjeethmahankali/GeomAlgoLib
21f1374f5a6adf8daa207999a4354ecad5254b5f
[ "Apache-2.0" ]
9
2020-06-03T10:27:01.000Z
2021-06-03T16:18:35.000Z
src/galfunc/Functions.cpp
ranjeethmahankali/GeomAlgoLib
21f1374f5a6adf8daa207999a4354ecad5254b5f
[ "Apache-2.0" ]
null
null
null
src/galfunc/Functions.cpp
ranjeethmahankali/GeomAlgoLib
21f1374f5a6adf8daa207999a4354ecad5254b5f
[ "Apache-2.0" ]
2
2020-03-18T05:20:13.000Z
2021-02-17T17:15:07.000Z
#include <string> #include <boost/python/class.hpp> #include <boost/python/import.hpp> #include <galcore/Annotations.h> #include <galcore/Circle2d.h> #include <galcore/Line.h> #include <galcore/Types.h> #include <galcore/Util.h> #include <galfunc/Functions.h> #include <galfunc/MapMacro.h> #include <galfunc/TypeHelper...
23.371681
83
0.670579
ranjeethmahankali
f7c4e11ab51a34b8c28c7793f568b2fb27a348c3
1,034
cpp
C++
UVa 11503 - Virtual Friends/sample/11503 - Virtual Friends.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 11503 - Virtual Friends/sample/11503 - Virtual Friends.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 11503 - Virtual Friends/sample/11503 - Virtual Friends.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
#include <stdio.h> #include <map> #include <iostream> #include <algorithm> using namespace std; int r[100005], p[100005]; void init(int n) { for(int i = 0; i <= n; i++) r[i] = 1, p[i] = i; } int findp(int x) { return p[x] == x ? x : (p[x]=findp(p[x])); } int joint(int x, int y) { x = findp(x), y = f...
21.541667
46
0.376209
tadvi
f7c4e3bf0308c996f826b4fa1fb4ba17ef1a22e1
1,111
cpp
C++
src/svgdom/elements/gradients.cpp
JaimeIvanCervantes/svgdom
8339d6d84a573cbeb0e235f4c828f4f898d67a6c
[ "MIT" ]
null
null
null
src/svgdom/elements/gradients.cpp
JaimeIvanCervantes/svgdom
8339d6d84a573cbeb0e235f4c828f4f898d67a6c
[ "MIT" ]
null
null
null
src/svgdom/elements/gradients.cpp
JaimeIvanCervantes/svgdom
8339d6d84a573cbeb0e235f4c828f4f898d67a6c
[ "MIT" ]
null
null
null
#include "gradients.hpp" #include <utki/debug.hpp> #include "../util.hxx" #include "../visitor.hpp" using namespace svgdom; const std::string gradient::stop_element::tag = "stop"; const std::string linear_gradient_element::tag = "linearGradient"; const std::string radial_gradient_element::tag = "radialGradient"; v...
21.784314
66
0.729973
JaimeIvanCervantes
f7c52caee377985e78b6f39eeea27ff6b7251b1c
420
cpp
C++
Engine/Source/Editor/UnrealEd/Private/SoundCueGraph.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Editor/UnrealEd/Private/SoundCueGraph.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Editor/UnrealEd/Private/SoundCueGraph.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. ///////////////////////////////////////////////////// // USoundCueGraph #include "UnrealEd.h" #include "SoundDefinitions.h" #include "Sound/SoundCue.h" USoundCueGraph::USoundCueGraph(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) ...
22.105263
75
0.67619
PopCap
f7c7864fc4a01ff355ded3d2c7f3d68fca70942b
930
hpp
C++
include/t9/timer.hpp
yweweler/cpp-t9
179e58c473f95fc84edc45f7f69392b40eb047c0
[ "MIT" ]
1
2019-09-22T08:08:14.000Z
2019-09-22T08:08:14.000Z
include/t9/timer.hpp
yweweler/cpp-t9
179e58c473f95fc84edc45f7f69392b40eb047c0
[ "MIT" ]
1
2019-03-29T12:19:23.000Z
2019-03-29T12:19:23.000Z
include/t9/timer.hpp
yweweler/cpp-t9
179e58c473f95fc84edc45f7f69392b40eb047c0
[ "MIT" ]
null
null
null
// T9 performance profiling timers -*- C++ -*- // Copyright (C) 2019 Yves-Noel Weweler. // All Rights Reserved. // // Licensed under the MIT License. // See LICENSE file in the project root for full license information. #ifndef CPP_T9_TIMER_HPP #define CPP_T9_TIMER_HPP #include <iostream> #include <chrono> using na...
18.979592
85
0.689247
yweweler
f7c842142c324965ab1574612727cd99a68a97ad
2,418
cpp
C++
CsPlugin/Source/CsCore/Public/Managers/Sense/CsSenseInfo.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
2
2019-03-17T10:43:53.000Z
2021-04-20T21:24:19.000Z
CsPlugin/Source/CsCore/Public/Managers/Sense/CsSenseInfo.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
CsPlugin/Source/CsCore/Public/Managers/Sense/CsSenseInfo.cpp
closedsum/core
c3cae44a177b9684585043a275130f9c7b67fef0
[ "Unlicense" ]
null
null
null
// Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved. #include "Managers/Sense/CsSenseInfo.h" #include "CsCore.h" #include "Managers/Sense/CsSensingObject.h" // ICsSenseInfo #pragma region const FCsSensedObject& FCsSenseInfo::GetObject() const { return Object; } void FCsSenseInfo::SetObject(ICsSensedO...
23.940594
84
0.696857
closedsum
f7c88deaa67ea3c09d7696b87401ea312e7601b9
63,244
cpp
C++
src/js/frontend/FoldConstants.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
149
2018-12-23T09:08:00.000Z
2022-02-02T09:18:38.000Z
src/js/frontend/FoldConstants.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
null
null
null
src/js/frontend/FoldConstants.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
56
2018-12-23T18:11:40.000Z
2021-11-30T13:18:17.000Z
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
32.349872
116
0.60586
fengjixuchui
f7cb2b54a8491271663c4b9d4b25c7c89fb86598
6,558
cpp
C++
src/main.cpp
DawidPietrykowski/GPURayTracer
66f150441d68587ddb3d4d73a7620310c5e26959
[ "MIT" ]
null
null
null
src/main.cpp
DawidPietrykowski/GPURayTracer
66f150441d68587ddb3d4d73a7620310c5e26959
[ "MIT" ]
null
null
null
src/main.cpp
DawidPietrykowski/GPURayTracer
66f150441d68587ddb3d4d73a7620310c5e26959
[ "MIT" ]
null
null
null
#include <array> #include <string> #include <vector> #include <iostream> #include <ComputeEngine.h> #include "Utils.h" #include "DataStructures.h" #include "Config.h" #include "Scene.h" #define UPDATE_OBJECT_BUFFERS 0 void UpdateKeys(ComputeEngine& renderer, CameraData& camera, std::vector<SceneObject>& objects, Sh...
33.28934
166
0.660415
DawidPietrykowski
f7ccc8fc1b326c450e3792c6f82a27abe7234e7b
585
cpp
C++
Data Structures/Arrays/11. BUGGY Merge two Sorted arrays without using extra space.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Data Structures/Arrays/11. BUGGY Merge two Sorted arrays without using extra space.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Data Structures/Arrays/11. BUGGY Merge two Sorted arrays without using extra space.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
#include<iostream> #include<cstring> #include<cstdlib> using namespace std; // Given an array of m+n elements , second array has n elements. // THIS CODE IS BUGGY void print(int *a){ for(int i=0;i<10;i++) cout<<a[i]<<" "; } void mergeArrays(int *a,int *b){ int la = 10; int lb = 5; int start = lb; int i,j,n=la; for(i=...
13.604651
64
0.552137
Ashwanigupta9125
f7cdb776f05cded77cea56aa65bec9d95207d44c
1,647
cpp
C++
src/ButtonInfoBar.cpp
xaviarmengol/M5Stack-GUI
ae7ad8897a0d695b0784f4a25cc5469c9e8a14ce
[ "MIT" ]
71
2018-03-17T17:38:48.000Z
2022-02-18T04:43:41.000Z
src/ButtonInfoBar.cpp
xaviarmengol/M5Stack-GUI
ae7ad8897a0d695b0784f4a25cc5469c9e8a14ce
[ "MIT" ]
6
2018-09-03T18:47:51.000Z
2021-01-18T10:03:33.000Z
src/ButtonInfoBar.cpp
xaviarmengol/M5Stack-GUI
ae7ad8897a0d695b0784f4a25cc5469c9e8a14ce
[ "MIT" ]
20
2018-04-28T23:06:31.000Z
2022-02-17T23:56:14.000Z
#include "ButtonInfoBar.h" using namespace Codingfield::UI; void ButtonInfoBar::SetButtonAText(const std::string& t) { if(btnAText != t) { oldBtnAText = btnAText; btnAText = t; } } void ButtonInfoBar::SetButtonBText(const std::string& t) { if(btnBText != t) { oldBtnBText = btnBText; btnBText = ...
26.564516
96
0.663024
xaviarmengol
f7d03a1dfca8fdb87023a96b83d76e980731f132
230
cpp
C++
src/system/libroot/posix/string/ffs.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
2
2021-06-05T20:29:57.000Z
2021-06-20T10:46:56.000Z
src/system/libroot/posix/string/ffs.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
null
null
null
src/system/libroot/posix/string/ffs.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
null
null
null
/* * Copyright 2020, Adrien Destugues <pulkomandy@pulkomandy.tk>. * Distributed under the terms of the MIT License. */ // find first (least significant) set bit extern "C" int ffs(int value) { return __builtin_ffs(value); }
17.692308
63
0.717391
Kirishikesan
f7d173e94c252ca127e58a36ec96a85202fd959c
6,737
hpp
C++
include/engine/script/luascriptsystem.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
include/engine/script/luascriptsystem.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
include/engine/script/luascriptsystem.hpp
eXl-Nic/eXl
a5a0f77f47db3179365c107a184bb38b80280279
[ "MIT" ]
null
null
null
/* Copyright 2009-2021 Nicolas Colombe 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, distribute...
32.863415
460
0.658008
eXl-Nic
f7d189fd792cf2f5f514da97367a04b17e389bca
1,349
cpp
C++
Demo/src/main.cpp
billy4479/BillyEngine
df7d519f740d5862c4743872dbf89b3654eeb423
[ "MIT" ]
1
2021-09-05T20:50:59.000Z
2021-09-05T20:50:59.000Z
Demo/src/main.cpp
billy4479/sdl-tests
df7d519f740d5862c4743872dbf89b3654eeb423
[ "MIT" ]
null
null
null
Demo/src/main.cpp
billy4479/sdl-tests
df7d519f740d5862c4743872dbf89b3654eeb423
[ "MIT" ]
null
null
null
#include <BillyEngine.hpp> #include "FPSCounter.hpp" #include "MouseChaser.hpp" #include "Spawner.hpp" #include "SpinningQuad.hpp" int main() { BillyEngine::AppConfig appConfig; appConfig.Maximized = true; appConfig.AssetsPath = "assets"; BillyEngine::Application app(appConfig); app.LoadFont("Open...
32.119048
80
0.644181
billy4479
f7d2d0746c75afa58e6d8203f21176da0de199d4
6,181
cpp
C++
jam/src/Mesh.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
jam/src/Mesh.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
jam/src/Mesh.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
/********************************************************************************** * * Mesh.cpp * * This file is part of Jam * * Copyright (c) 2014-2019 Giovanni Zito. * Copyright (c) 2014-2019 Jam contributors (cf. AUTHORS.md) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of t...
25.861925
114
0.671089
gzito
f7d7049d6742e27e9e4a4d22bbf965c17bba297a
3,607
hh
C++
t6/src/SWE_WavePropagationBlockCuda.hh
PhuNH/hpc-aa
c1d184ec7c04b6ce7078c22d7a03091a95a4a2be
[ "MIT" ]
1
2020-05-11T18:28:17.000Z
2020-05-11T18:28:17.000Z
t6/src/SWE_WavePropagationBlockCuda.hh
PhuNH/hpc-aa
c1d184ec7c04b6ce7078c22d7a03091a95a4a2be
[ "MIT" ]
null
null
null
t6/src/SWE_WavePropagationBlockCuda.hh
PhuNH/hpc-aa
c1d184ec7c04b6ce7078c22d7a03091a95a4a2be
[ "MIT" ]
null
null
null
/** * @file * This file is part of SWE. * * @author Alexander Breuer (breuera AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Dipl.-Math._Alexander_Breuer) * @author Sebastian Rettenberger (rettenbs AT in.tum.de, http://www5.in.tum.de/wiki/index.php/Sebastian_Rettenberger,_M.Sc.) * * @section LICENSE * * SW...
39.206522
125
0.73191
PhuNH
f7d970d0ec992544da3f6ca5196ae68e4bd81195
7,381
hpp
C++
Old/tests/fept_test.hpp
waterswims/MC_HAMR
eb0492bc12a6eb67ec1709e5b59bdd53ee999892
[ "MIT" ]
1
2021-08-02T23:14:45.000Z
2021-08-02T23:14:45.000Z
Old/tests/fept_test.hpp
waterswims/MC_HAMR
eb0492bc12a6eb67ec1709e5b59bdd53ee999892
[ "MIT" ]
null
null
null
Old/tests/fept_test.hpp
waterswims/MC_HAMR
eb0492bc12a6eb67ec1709e5b59bdd53ee999892
[ "MIT" ]
1
2021-08-02T23:14:45.000Z
2021-08-02T23:14:45.000Z
#ifndef _FEPTTEST #define _FEPTTEST #include "test_functions.hpp" /////////////////////////////////////////////////////// // FePt model tests - 3D /////////////////////////////////////////////////////// TEST(FePt, 3d_energy_zero_field) { field_3d_h field = gen_3d_heis_fm(1, 0, 0); ham_FePt hamil; hamil.i...
27.438662
62
0.606151
waterswims
f7dbce953e61954bc8871fe27a97e70b08f5e4d2
3,757
cc
C++
src/mesh/mesh_moab/test/test_hex_2x2x1.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
1
2021-02-23T18:34:47.000Z
2021-02-23T18:34:47.000Z
src/mesh/mesh_moab/test/test_hex_2x2x1.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
null
null
null
src/mesh/mesh_moab/test/test_hex_2x2x1.cc
ajkhattak/amanzi
fed8cae6af3f9dfa5984381d34b98401c3b47655
[ "RSA-MD" ]
null
null
null
#include <iostream> #include "Epetra_Map.h" #include "mpi.h" #include "UnitTest++.h" #include "AmanziComm.hh" #include "../Mesh_MOAB.hh" TEST(MOAB_HEX_2x2x1) { int i, j, k, nc, nf, nv; Amanzi::AmanziMesh::Entity_ID_List faces, cnodes, fnodes; std::vector<int> facedirs; std::vector<Amanzi::AmanziGeometry::Po...
25.910345
92
0.519031
ajkhattak
f7e0c6d004b5f8e9f0805e3566a8a2c6f6d75b4c
935
cpp
C++
Broccoli/src/Broccoli/Renderer/Texture.cpp
tross2552/broccoli
d7afc472e076fa801d0e7745e209553b73c34486
[ "Apache-2.0" ]
1
2021-08-03T01:38:41.000Z
2021-08-03T01:38:41.000Z
Broccoli/src/Broccoli/Renderer/Texture.cpp
tross2552/broccoli
d7afc472e076fa801d0e7745e209553b73c34486
[ "Apache-2.0" ]
null
null
null
Broccoli/src/Broccoli/Renderer/Texture.cpp
tross2552/broccoli
d7afc472e076fa801d0e7745e209553b73c34486
[ "Apache-2.0" ]
null
null
null
#include "brclpch.h" #include "Texture.h" #include "Renderer.h" #include "Platform/OpenGL/OpenGLTexture2D.h" namespace brcl { std::unique_ptr<Texture2D> Texture2D::Create(uint32_t width, uint32_t height) { switch (renderer::GetAPI()) { case RendererAPI::API::None: BRCL_CORE_ASSERT(false, "RendererAPI::No...
26.714286
123
0.727273
tross2552
f7e46bdfad7e6ac25dfba5aeb2c6ae0fa1f3440d
5,216
cpp
C++
OSS13 Server/Sources/Player/PlayerCommandsProcessor.cpp
edge-fortress/OSS-13
eaf8f000b0049656939a82a38e5d6fc836178bde
[ "MIT" ]
21
2019-05-07T23:39:11.000Z
2021-11-16T13:08:36.000Z
OSS13 Server/Sources/Player/PlayerCommandsProcessor.cpp
edge-fortress/OSS-13
eaf8f000b0049656939a82a38e5d6fc836178bde
[ "MIT" ]
52
2019-04-28T21:42:10.000Z
2021-08-06T07:56:55.000Z
OSS13 Server/Sources/Player/PlayerCommandsProcessor.cpp
edge-fortress/OSS-13
eaf8f000b0049656939a82a38e5d6fc836178bde
[ "MIT" ]
5
2019-05-09T16:03:53.000Z
2021-07-27T08:48:02.000Z
#include "PlayerCommandsProcessor.h" #include "Player.h" #include <Game.h> #include <IScriptEngine.h> #include <World/Objects/Object.hpp> #include <World/Objects/Control.hpp> #include <Shared/ErrorHandling.h> #include <Shared/Network/Protocol/ServerToClient/Commands.h> using namespace std::string_literals; PlayerC...
37.797101
135
0.786235
edge-fortress
f7e8b11ae57f39a2e2bbadad65377a146cf1e02d
570
cpp
C++
Classes/Hole.cpp
khanhdrag9/TetrisHole
d2773cb9da0756c4d8a2f0e8ef7823fb7de8584c
[ "MIT" ]
null
null
null
Classes/Hole.cpp
khanhdrag9/TetrisHole
d2773cb9da0756c4d8a2f0e8ef7823fb7de8584c
[ "MIT" ]
null
null
null
Classes/Hole.cpp
khanhdrag9/TetrisHole
d2773cb9da0756c4d8a2f0e8ef7823fb7de8584c
[ "MIT" ]
null
null
null
#include "Hole.h" #include "Skill.h" #include "Board.h" #include "Templates.h" Hole::Hole(): _spriteNode(nullptr), _boardParrent(nullptr), _skill(nullptr) { _spriteNode = Node::create(); } Hole::~Hole() { CC_SAFE_DELETE(_spriteNode); _boardParrent = nullptr; _skill = nullptr; } void Hole::useSkill(fl...
15.405405
70
0.659649
khanhdrag9
f7e8b64b0a7a4fe217770f73ffee035b4abcf3b0
871
cpp
C++
Snippets/lazy-segtree.cpp
KerakTelor86/CP-Stuff
31269195a913d55826fd2e34b091d0cd186c7af9
[ "Unlicense" ]
null
null
null
Snippets/lazy-segtree.cpp
KerakTelor86/CP-Stuff
31269195a913d55826fd2e34b091d0cd186c7af9
[ "Unlicense" ]
null
null
null
Snippets/lazy-segtree.cpp
KerakTelor86/CP-Stuff
31269195a913d55826fd2e34b091d0cd186c7af9
[ "Unlicense" ]
null
null
null
int n; vector<ll> seg,lazy; void propagate(int idx,int l,int r) { if(!lazy[idx]) return; int lc=(idx<<1)+1,rc=lc+1; seg[idx]+=(r-l+1)*lazy[idx]; if(l!=r) { lazy[lc]+=lazy[idx]; lazy[rc]+=lazy[idx]; } lazy[idx]=0; } void update(int u,int v,int w,int idx=0,int l=0,int...
18.934783
58
0.482204
KerakTelor86