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
7f59a792e861fe8b3c29613d69c68f42d950603d
909
cpp
C++
test.cpp
JarnaChao09/Innovation_PL_Cpp
15de51227bf41bbde9f1df721fcf4812b3782346
[ "MIT" ]
null
null
null
test.cpp
JarnaChao09/Innovation_PL_Cpp
15de51227bf41bbde9f1df721fcf4812b3782346
[ "MIT" ]
null
null
null
test.cpp
JarnaChao09/Innovation_PL_Cpp
15de51227bf41bbde9f1df721fcf4812b3782346
[ "MIT" ]
null
null
null
// // Created by Jaran Chao on 10/13/21. // //#include "src/vm.h" //#include "src/debug.h" //#include "src/chunk.h" // // //int main() { // language::VM vm = language::VM(); // language::Chunk chunk = language::Chunk(); // // int constant = chunk.add_constant(1.2); // // chunk.write(language::OpCode::Consta...
23.921053
53
0.59846
JarnaChao09
7f5a28e15e6b126f81172ab35a63c2f7a0c766a0
2,189
cpp
C++
Tools/TSOSimulatorClient/TSOEdithEditor/TSOEdithEditor.cpp
daddesio/Niotso
66ce47351427fa37c683f61003e0d3aa6b84e4f7
[ "ISC" ]
10
2017-04-28T08:09:25.000Z
2022-03-28T11:08:18.000Z
Tools/TSOSimulatorClient/TSOEdithEditor/TSOEdithEditor.cpp
Fatbag/Niotso
66ce47351427fa37c683f61003e0d3aa6b84e4f7
[ "ISC" ]
null
null
null
Tools/TSOSimulatorClient/TSOEdithEditor/TSOEdithEditor.cpp
Fatbag/Niotso
66ce47351427fa37c683f61003e0d3aa6b84e4f7
[ "ISC" ]
4
2015-06-23T11:06:34.000Z
2017-01-17T03:50:08.000Z
/* TSOEdithEditor - TSOEdithEditorD.dll injector TSOEdithEditor.cpp - Copyright (c) 2012 Niotso Project <http://niotso.org/> Author(s): Fatbag <X-Fi6@phppoll.org> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided t...
42.096154
120
0.680676
daddesio
7f5d94403f00ebc5045b5241a3cea48b7b246687
6,391
cpp
C++
src/main.cpp
sensiml/nano33_data_capture
37a270324a2afa1c612c2ae65646b6dc6c7d8fd7
[ "BSD-3-Clause" ]
3
2021-04-20T23:34:13.000Z
2021-06-11T10:27:03.000Z
src/main.cpp
sensiml/nano33_data_capture
37a270324a2afa1c612c2ae65646b6dc6c7d8fd7
[ "BSD-3-Clause" ]
null
null
null
src/main.cpp
sensiml/nano33_data_capture
37a270324a2afa1c612c2ae65646b6dc6c7d8fd7
[ "BSD-3-Clause" ]
2
2020-12-31T23:55:38.000Z
2021-05-16T12:02:15.000Z
#include <Arduino.h> #include <ArduinoJson.h> #include <Arduino_LSM9DS1.h> //Include the library for 9-axis IMU #include "sensor_config.h" #if USE_BLE #include <ArduinoBLE.h> const char* nameOfPeripheral = "Nano 33 DCL"; const char* uuidOfService = "16480000-0525-4ad5-b4fb-6dd83f49546b"; const char* uuidOfConfig...
26.085714
99
0.634173
sensiml
7f63a3ef9d1dabd91c2d3c2c64a88252830ffa35
1,326
cpp
C++
src/MainWindow.cpp
mtbrobotanist/qt_ros_standalone
37e2a4fecb07fb72caf786923e546b937dd553fb
[ "MIT" ]
null
null
null
src/MainWindow.cpp
mtbrobotanist/qt_ros_standalone
37e2a4fecb07fb72caf786923e546b937dd553fb
[ "MIT" ]
null
null
null
src/MainWindow.cpp
mtbrobotanist/qt_ros_standalone
37e2a4fecb07fb72caf786923e546b937dd553fb
[ "MIT" ]
null
null
null
#include "MainWindow.h" #include <ros/ros.h> #include <geometry_msgs/Twist.h> MainWindow::MainWindow(): linear_scale(2), angular_scale(2), linear(0), angular(0), nh(new ros::NodeHandle) { widget.setupUi(this); pub_cmd_vel = nh->advertise<geometry_msgs::Twist>("/turtle1/cmd_vel", 1); ...
21.047619
77
0.661388
mtbrobotanist
7f68f5dfbda2740ba89d9752d17b6bf4088b2504
3,599
hpp
C++
autogate2/circuit.hpp
qcware/autogate
61d40b56aee374b97c5b3c32b4c1874756c87832
[ "MIT" ]
null
null
null
autogate2/circuit.hpp
qcware/autogate
61d40b56aee374b97c5b3c32b4c1874756c87832
[ "MIT" ]
null
null
null
autogate2/circuit.hpp
qcware/autogate
61d40b56aee374b97c5b3c32b4c1874756c87832
[ "MIT" ]
null
null
null
#pragma once #include "gate.hpp" #include <set> namespace autogate { typedef std::pair<size_t, std::vector<size_t>> circuit_key_t; class Circuit { public: Circuit() {} const std::map<circuit_key_t, Gate>& gates() const { return gates_; } const std::set<size_t> qubits() const { return qubits_; } const std::set<s...
32.423423
120
0.551542
qcware
7f6af34247657404b9d38f2ea363c7203428a294
10,026
cpp
C++
src/libroute/orthogonalconnectormanual.cpp
Abdugan1/AbduCharts
3241e26af5b468a6835f6022729e574e91a78fd1
[ "MIT" ]
null
null
null
src/libroute/orthogonalconnectormanual.cpp
Abdugan1/AbduCharts
3241e26af5b468a6835f6022729e574e91a78fd1
[ "MIT" ]
null
null
null
src/libroute/orthogonalconnectormanual.cpp
Abdugan1/AbduCharts
3241e26af5b468a6835f6022729e574e91a78fd1
[ "MIT" ]
null
null
null
#include "orthogonalconnectormanual.h" #include "orthogonalconnectorfunctions.h" #include "shapeinfo.h" #include "grid.h" #include "pointgraph.h" #include "astar.h" #include "node.h" #include <QGraphicsItem> #include <QPainterPath> #include <QSet> #include <QDebug> inline uint qHash(const QPointF &p) { return qHas...
35.935484
110
0.570816
Abdugan1
7f6b17a97b7502b62324db80c1bfe04c10b758c4
15,946
cc
C++
nccloud/fileop.cc
codingcai/degradedReadForEC
4bf9c075d704fc116eda9a7a115ff9a13f1f59c9
[ "BSD-3-Clause" ]
null
null
null
nccloud/fileop.cc
codingcai/degradedReadForEC
4bf9c075d704fc116eda9a7a115ff9a13f1f59c9
[ "BSD-3-Clause" ]
null
null
null
nccloud/fileop.cc
codingcai/degradedReadForEC
4bf9c075d704fc116eda9a7a115ff9a13f1f59c9
[ "BSD-3-Clause" ]
null
null
null
/** * @file fileop.cc * @author Henry Chen (chchen@cse.cuhk.edu.hk) * @brief Implements the Job and FileOp classes, and also job pipelining. * **/ /* =================================================================== Copyright (c) 2013, Henry C. H. Chen All rights reserved. Redistribution and use in source a...
30.200758
87
0.612128
codingcai
7f772383ac1d5add049cd8a2994be39306dae67e
4,895
cc
C++
flare/base/maybe_owning_test.cc
LiuYuHui/flare
f92cb6132e79ef2809fc0291a4923097ec84c248
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2021-05-29T04:04:17.000Z
2022-02-04T05:33:17.000Z
flare/base/maybe_owning_test.cc
LiuYuHui/flare
f92cb6132e79ef2809fc0291a4923097ec84c248
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
flare/base/maybe_owning_test.cc
LiuYuHui/flare
f92cb6132e79ef2809fc0291a4923097ec84c248
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2022-02-17T10:13:04.000Z
2022-02-17T10:13:04.000Z
// Copyright (C) 2019 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...
22.149321
80
0.678447
LiuYuHui
7f77fe3b87ed8f68e72b69eeb1241943920b38c4
1,801
cc
C++
pfio.cc
darrylhodgins/piface-node
8ef10874612e6215255918af4e19aba03272d8f8
[ "MIT" ]
14
2015-05-27T22:25:31.000Z
2019-02-11T17:30:06.000Z
pfio.cc
darrylhodgins/piface-node
8ef10874612e6215255918af4e19aba03272d8f8
[ "MIT" ]
11
2015-03-09T16:56:48.000Z
2019-10-23T17:44:58.000Z
pfio.cc
darrylhodgins/piface-node
8ef10874612e6215255918af4e19aba03272d8f8
[ "MIT" ]
12
2015-03-03T19:01:50.000Z
2019-09-04T22:34:34.000Z
#include <node.h> #include <nan.h> #include <v8.h> #include <libpiface-1.0/pfio.h> #include <string.h> using namespace v8; NAN_METHOD(PfioInit) { NanScope(); pfio_init(); NanReturnUndefined(); } NAN_METHOD(PfioDeinit) { NanScope(); pfio_deinit(); NanReturnUndefined(); } NAN_METHOD(PfioDigitalRead) { ...
18.760417
61
0.725708
darrylhodgins
7f7a61aedb80b858aac0b44e6fbaf34818ea1b3b
3,012
hpp
C++
src/problem/bp/bprow.hpp
ctjandra/ddopt-bounds
aaf7407da930503a17969cee71718ffcf0c1fe96
[ "MIT" ]
null
null
null
src/problem/bp/bprow.hpp
ctjandra/ddopt-bounds
aaf7407da930503a17969cee71718ffcf0c1fe96
[ "MIT" ]
null
null
null
src/problem/bp/bprow.hpp
ctjandra/ddopt-bounds
aaf7407da930503a17969cee71718ffcf0c1fe96
[ "MIT" ]
null
null
null
/** * Row for binary problem */ #ifndef BPROW_HPP_ #define BPROW_HPP_ #include "bpvar.hpp" #ifdef SOLVER_SCIP #include "scip/scip.h" #endif #include <vector> #include <iostream> #include "../../util/util.hpp" using namespace std; enum RowSense { SENSE_LE = 0, SENSE_GE }; /** * Row representing a constraint...
27.633028
128
0.653054
ctjandra
7f7f896eee633c4b6753c2b0e62cb0ba73ae51bd
67,472
cc
C++
src/utils/VectorTiles/vector_tile.pb.cc
Hemofektik/Druckwelle
d956ed0502d13db5b566e353ce5fa279e6136635
[ "Unlicense" ]
11
2016-02-26T23:00:34.000Z
2020-11-12T03:09:45.000Z
src/utils/VectorTiles/vector_tile.pb.cc
Hemofektik/Druckwelle
d956ed0502d13db5b566e353ce5fa279e6136635
[ "Unlicense" ]
null
null
null
src/utils/VectorTiles/vector_tile.pb.cc
Hemofektik/Druckwelle
d956ed0502d13db5b566e353ce5fa279e6136635
[ "Unlicense" ]
1
2018-07-10T19:24:28.000Z
2018-07-10T19:24:28.000Z
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: vector_tile.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "vector_tile.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/stubs/once.h> #inc...
31.886578
143
0.681423
Hemofektik
7f7f9097725b181ba925d8f48572ceea6c1b96a4
4,204
cpp
C++
src/harbour-zatraty.cpp
sailfish-os-apps/zatraty
0211a86875acbff87b288272bf80c28ca1cef17d
[ "Apache-2.0" ]
1
2017-03-01T20:12:31.000Z
2017-03-01T20:12:31.000Z
src/harbour-zatraty.cpp
sailfish-os-apps/zatraty
0211a86875acbff87b288272bf80c28ca1cef17d
[ "Apache-2.0" ]
6
2017-03-02T12:45:50.000Z
2019-02-14T09:28:01.000Z
src/harbour-zatraty.cpp
sailfish-os-apps/zatraty
0211a86875acbff87b288272bf80c28ca1cef17d
[ "Apache-2.0" ]
8
2017-03-01T20:25:12.000Z
2019-07-04T09:54:53.000Z
/* Copyright (C) 2013 Jolla Ltd. Contact: Thomas Perl <thomas.perl@jollamobile.com> All rights reserved. You may use this file under the terms of BSD license as follows: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ar...
39.660377
98
0.729305
sailfish-os-apps
7f837a9472b581e5cf58531c452c619dd97e0730
2,644
cpp
C++
source/node/Split.cpp
xzrunner/sop
80f84765548fde33d990663d4a4b8054bb6714d1
[ "MIT" ]
null
null
null
source/node/Split.cpp
xzrunner/sop
80f84765548fde33d990663d4a4b8054bb6714d1
[ "MIT" ]
null
null
null
source/node/Split.cpp
xzrunner/sop
80f84765548fde33d990663d4a4b8054bb6714d1
[ "MIT" ]
null
null
null
#include "sop/node/Split.h" #include "sop/node/Subnetwork.h" #include "sop/node/Blast.h" #include "sop/node/Output.h" #include "sop/NodeHelper.h" #include "sop/Evaluator.h" #include "sop/GeometryImpl.h" namespace { enum SubNodeIdx { SUB_BLAST_0 = 0, SUB_BLAST_1, SUB_OUTPUT_0, SUB_OUTPUT_1, SUB_MA...
25.423077
103
0.659607
xzrunner
7f86d757ae0961eee317a34c4564ecb1744e5ee0
15,131
cpp
C++
libs/fnd/variant/test/src/variant/unit_test_fnd_variant_assign_move.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/fnd/variant/test/src/variant/unit_test_fnd_variant_assign_move.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/fnd/variant/test/src/variant/unit_test_fnd_variant_assign_move.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file unit_test_fnd_variant_assign_move.cpp * * @brief variant& operator=(variant&&) のテスト * * @author myoukaku */ #include <bksge/fnd/variant/variant.hpp> #include <bksge/fnd/variant/variant_npos.hpp> #include <bksge/fnd/variant/get.hpp> #include <bksge/fnd/type_traits/is_move_assignable.hpp> ...
27.116487
94
0.664199
myoukaku
7f8bc970380058fa89e5060099fcf7e81b507f11
1,127
cpp
C++
Framework/Framework/src/lib/System/Button/Button.cpp
kanekona/MyFramework
9c5f6d597106e491aa0c8b2fe83b79c79ac3ae1e
[ "MIT" ]
null
null
null
Framework/Framework/src/lib/System/Button/Button.cpp
kanekona/MyFramework
9c5f6d597106e491aa0c8b2fe83b79c79ac3ae1e
[ "MIT" ]
null
null
null
Framework/Framework/src/lib/System/Button/Button.cpp
kanekona/MyFramework
9c5f6d597106e491aa0c8b2fe83b79c79ac3ae1e
[ "MIT" ]
null
null
null
#include "Button.h" #include "Input\Input.h" #include "ResourceManager\ResourceManager.h" #include "Collision\Collision.h" CButton::CButton(const CTransform& t) :back(true) { transform = t; tag = "Button"; layer = ELayer::Button; hitBase = new CBoxCollider(&transform); back.texture = CResourceManager::Get()->GetT...
17.075758
66
0.682343
kanekona
7f9982ea1bacb6be89b738c76b933060b41c1a1b
3,391
cpp
C++
CPlusPlus-Class/Zeus et compagnie/main.cpp
Ivok18/SAE921-GRP4100-CPlusPlus-Class-eyangniangate
9fc24247550271c4367aaf1ce482e34131dd42e4
[ "MIT" ]
null
null
null
CPlusPlus-Class/Zeus et compagnie/main.cpp
Ivok18/SAE921-GRP4100-CPlusPlus-Class-eyangniangate
9fc24247550271c4367aaf1ce482e34131dd42e4
[ "MIT" ]
null
null
null
CPlusPlus-Class/Zeus et compagnie/main.cpp
Ivok18/SAE921-GRP4100-CPlusPlus-Class-eyangniangate
9fc24247550271c4367aaf1ce482e34131dd42e4
[ "MIT" ]
null
null
null
/* Créer un programme permettant de gérer les arbres du jardin d'eden : Au jardin d'eden, il y a 2 types d’arbres : les arbres de vie , les arbres interdits Un fruit vital << biota >> pèse 21g en moyenne, une fruit interdit <<prohibeo>> pèse 2g en moyenne En pleine saison, un arbre de vie porte entre 40 et 50 biotas, u...
38.534091
163
0.72604
Ivok18
7fa4382ddde1c5b80ce4e1f01bb958297c73c866
767
hpp
C++
tests/commun.emit_test_api.hpp
kaynarov/commun.contracts
6e1482acd28cd2b33fc93ee5d6c88c7038bb0d44
[ "MIT" ]
null
null
null
tests/commun.emit_test_api.hpp
kaynarov/commun.contracts
6e1482acd28cd2b33fc93ee5d6c88c7038bb0d44
[ "MIT" ]
null
null
null
tests/commun.emit_test_api.hpp
kaynarov/commun.contracts
6e1482acd28cd2b33fc93ee5d6c88c7038bb0d44
[ "MIT" ]
1
2020-10-25T13:58:12.000Z
2020-10-25T13:58:12.000Z
#pragma once #include "test_api_helper.hpp" namespace eosio { namespace testing { struct commun_emit_api: base_contract_api { commun_emit_api(golos_tester* tester, name code) : base_contract_api(tester, code) {} action_result init(symbol_code commun_code) { return push(N(init), _code, args(...
26.448276
81
0.649283
kaynarov
7fa7872d429c40451597dee1a4a643fbae5ca3d1
1,869
hpp
C++
include/boost/simd/constant/pio_4lo.hpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
include/boost/simd/constant/pio_4lo.hpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
include/boost/simd/constant/pio_4lo.hpp
yaeldarmon/boost.simd
561316cc54bdc6353ca78f3b6d7e9120acd11144
[ "BSL-1.0" ]
null
null
null
//================================================================================================== /*! @file @copyright 2015 NumScale SAS @copyright 2015 J.T. Lapreste Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) ...
24.592105
100
0.600856
yaeldarmon
7fb60f58d15f16adc9a6a2f6e4694ec2ce1725d2
409
hpp
C++
mcpputil/include/mcpputil/mcpputil/container.hpp
garyfurnish/mcpputil
7eda34d3852515e21e76683e0884c0d3a11d1b5f
[ "MIT" ]
null
null
null
mcpputil/include/mcpputil/mcpputil/container.hpp
garyfurnish/mcpputil
7eda34d3852515e21e76683e0884c0d3a11d1b5f
[ "MIT" ]
null
null
null
mcpputil/include/mcpputil/mcpputil/container.hpp
garyfurnish/mcpputil
7eda34d3852515e21e76683e0884c0d3a11d1b5f
[ "MIT" ]
null
null
null
#pragma once #include <map> #include <vector> namespace mcpputil { template <typename T, typename allocator> using rebind_vector_t = typename ::std::vector<T, typename allocator::template rebind<T>::other>; template <typename K, typename V, typename Compare, typename allocator> using rebind_map_t = typename ::s...
37.181818
121
0.738386
garyfurnish
7fbded12e2c50addc67d87eba6bc873bffc6d94c
46,469
cpp
C++
src/floorplan/Floorplan.cpp
areong/CornerMacroPlacer
da6841c110a829b33bd705cda13fb371ca369007
[ "MIT" ]
2
2019-06-14T06:52:45.000Z
2019-10-14T11:21:07.000Z
src/floorplan/Floorplan.cpp
areong/CornerMacroPlacer
da6841c110a829b33bd705cda13fb371ca369007
[ "MIT" ]
1
2019-10-14T11:20:50.000Z
2019-10-16T11:04:00.000Z
src/floorplan/Floorplan.cpp
areong/CornerMacroPlacer
da6841c110a829b33bd705cda13fb371ca369007
[ "MIT" ]
null
null
null
#include "floorplan/Floorplan.h" #include <cstdlib> #include <algorithm> #include <fstream> #include "floorplan/Cell.h" #include "floorplan/Macro.h" #include "floorplan/Module.h" #include "floorplan/Net.h" #include "floorplan/Pin.h" #include "floorplan/Rectangle.h" #include "floorplan/Terminal.h" #include "utils/Matrix...
40.90581
157
0.47324
areong
7fca4aa9ef855c173e570eae72ee88ab2fa6bed7
318
hpp
C++
src/utils/visitor.hpp
TiWinDeTea/NinjaClown
fdd48e62466f11036fa0360fad2bcb182d6d3352
[ "MIT" ]
2
2020-04-10T14:39:00.000Z
2021-02-11T15:52:16.000Z
src/utils/visitor.hpp
TiWinDeTea/NinjaClown
fdd48e62466f11036fa0360fad2bcb182d6d3352
[ "MIT" ]
2
2019-12-17T08:50:20.000Z
2020-02-03T09:37:56.000Z
src/utils/visitor.hpp
TiWinDeTea/NinjaClown
fdd48e62466f11036fa0360fad2bcb182d6d3352
[ "MIT" ]
1
2020-08-19T03:06:52.000Z
2020-08-19T03:06:52.000Z
#ifndef NINJACLOWN_UTILS_VISITOR_HPP #define NINJACLOWN_UTILS_VISITOR_HPP namespace utils { template <typename... Visitors> struct visitor : Visitors... { explicit visitor(Visitors&&... visitors) : Visitors{std::move(visitors)}... {} using Visitors::operator()...; }; } #endif //NINJACLOWN_UTILS_VISITOR_HPP
24.461538
82
0.738994
TiWinDeTea
7fcbac4e89f3c445316067f25bd6577f1fac9f99
705
cpp
C++
Solutions/CF1543D2.cpp
SamuNatsu/icpc-solution
17facc464a042026ff117ab33b439e87615de74b
[ "MIT" ]
null
null
null
Solutions/CF1543D2.cpp
SamuNatsu/icpc-solution
17facc464a042026ff117ab33b439e87615de74b
[ "MIT" ]
null
null
null
Solutions/CF1543D2.cpp
SamuNatsu/icpc-solution
17facc464a042026ff117ab33b439e87615de74b
[ "MIT" ]
null
null
null
#include <cstdio> int t, n, k, r; int kxor(int a, int b) { int rtn = 0, p = 1, t1, t2; while (a || b) { t1 = a % k; t2 = b % k; a /= k; b /= k; rtn += (t1 - t2 + k) % k * p; p *= k; } return rtn; } int main() { scanf("%d", &t); while (t--) { ...
19.054054
47
0.300709
SamuNatsu
7fda2143cd9831eb6f15e6f97d053d7f20fb66e1
9,732
cpp
C++
tan/samples/src/RoomAcousticQT/QTObject/QTExportResponse.cpp
amono/TAN
690ed6a92c594f4ba3a26d1c8b77dbff386c9b04
[ "MIT" ]
128
2016-08-17T21:57:05.000Z
2022-03-30T17:44:36.000Z
tan/samples/src/RoomAcousticQT/QTObject/QTExportResponse.cpp
amono/TAN
690ed6a92c594f4ba3a26d1c8b77dbff386c9b04
[ "MIT" ]
8
2016-08-18T18:39:12.000Z
2021-11-12T19:10:30.000Z
tan/samples/src/RoomAcousticQT/QTObject/QTExportResponse.cpp
isabella232/TAN
690ed6a92c594f4ba3a26d1c8b77dbff386c9b04
[ "MIT" ]
30
2016-08-18T19:36:06.000Z
2022-03-30T17:28:31.000Z
// // MIT license // // Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved. // // 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 limit...
44.642202
270
0.804973
amono
8f151c0b23b3e46df5150a6e777ae23acee5a9eb
113
cpp
C++
src/player2/main.cpp
HackerSpaceMaringa/Checkers-Online
3dd7e8725f9fb44e170f6b1dbbebc9841651edaa
[ "BSD-2-Clause" ]
null
null
null
src/player2/main.cpp
HackerSpaceMaringa/Checkers-Online
3dd7e8725f9fb44e170f6b1dbbebc9841651edaa
[ "BSD-2-Clause" ]
null
null
null
src/player2/main.cpp
HackerSpaceMaringa/Checkers-Online
3dd7e8725f9fb44e170f6b1dbbebc9841651edaa
[ "BSD-2-Clause" ]
null
null
null
#include "Player2.h" int main(){ Player2 checkers; checkers.executeGame((char*)"none"); return 0; }
14.125
40
0.628319
HackerSpaceMaringa
8f19ed6bedbd034848a94c03e6c8789da4bb1b24
339
hpp
C++
fgs_image_proc_utils/include/fgs_image_proc_utils/viewer.hpp
fugashy/fgs_image_proc
47ae3ede8b792d248448e5040da6db2adf52603f
[ "MIT" ]
null
null
null
fgs_image_proc_utils/include/fgs_image_proc_utils/viewer.hpp
fugashy/fgs_image_proc
47ae3ede8b792d248448e5040da6db2adf52603f
[ "MIT" ]
null
null
null
fgs_image_proc_utils/include/fgs_image_proc_utils/viewer.hpp
fugashy/fgs_image_proc
47ae3ede8b792d248448e5040da6db2adf52603f
[ "MIT" ]
null
null
null
#ifndef FGS_IMAGE_PROC_UTILS_VIEWER_HPP_ #define FGS_IMAGE_PROC_UTILS_VIEWER_HPP_ #include <opencv2/core/core.hpp> namespace fgs { namespace image_proc_utils { class Viewer { public: explicit Viewer(const std::string& window_name); ~Viewer(); void Update(const cv::Mat& image); private: std::string window_na...
17.842105
50
0.761062
fugashy
8f1f48c0280f5cc2805a97e7a9b3feec9e59f392
11,954
cpp
C++
improcessing/preprocessimage.cpp
mguludag/QTextRecognizer
29dd7b746be831c01b6260ab20ca926f7ff835ca
[ "MIT" ]
25
2020-05-01T01:20:03.000Z
2022-01-19T02:48:12.000Z
improcessing/preprocessimage.cpp
mguludag/QTextRecognizer
29dd7b746be831c01b6260ab20ca926f7ff835ca
[ "MIT" ]
null
null
null
improcessing/preprocessimage.cpp
mguludag/QTextRecognizer
29dd7b746be831c01b6260ab20ca926f7ff835ca
[ "MIT" ]
7
2020-07-20T12:02:34.000Z
2022-01-06T03:09:31.000Z
/***************************************************************************** * preprocessimage.cpp * * Created: 5/28/2020 2020 by mguludag * * Copyright 2020 mguludag. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated docume...
34.851312
107
0.565334
mguludag
8f29c1d2d2415d4ea4fdaa7f8dcae345326dc229
669
cpp
C++
src/core-master/cpp/rom_curve_C25519.cpp
cri-lab-hbku/AIS_CAESAR
9283c65fbe961ba604aab0f3cb35ddea99277c34
[ "BSD-3-Clause" ]
72
2016-05-23T17:06:30.000Z
2021-12-17T16:34:32.000Z
src/core-master/cpp/rom_curve_C25519.cpp
cri-lab-hbku/AIS_CAESAR
9283c65fbe961ba604aab0f3cb35ddea99277c34
[ "BSD-3-Clause" ]
37
2016-11-30T14:53:10.000Z
2021-05-18T16:54:36.000Z
src/core-master/cpp/rom_curve_C25519.cpp
cri-lab-hbku/AIS_CAESAR
9283c65fbe961ba604aab0f3cb35ddea99277c34
[ "BSD-3-Clause" ]
28
2016-05-24T22:43:47.000Z
2021-11-10T17:52:36.000Z
#include "arch.h" #include "ecp_C25519.h" namespace C25519 { /* Curve 25519 */ #if CHUNK==16 #error Not supported #endif #if CHUNK==32 using namespace B256_29; const int CURVE_Cof_I=8; const BIG CURVE_Cof= {0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}; const int CURVE_A=486662; const BIG CURVE_Order= {0x1CF5D3ED,0x9318...
18.081081
94
0.756353
cri-lab-hbku
8f30f9dc570809ab66b64f921005ee30dfdbca16
1,218
cc
C++
src/raytrace/b3SplineArea.cc
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
null
null
null
src/raytrace/b3SplineArea.cc
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
null
null
null
src/raytrace/b3SplineArea.cc
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
1
2022-01-07T15:58:38.000Z
2022-01-07T15:58:38.000Z
/* ** ** $Filename: b3SplineArea.cc $ ** $Release: Dortmund 2001 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: Steffen A. Mork $ ** ** Blizzard III - Raytracing BSpline area ** ** (C) Copyright 2001 Steffen A. Mork ** All Rights Reserved ** ** ** */ /********************************************************...
30.45
95
0.283251
stmork
8f3f106cc01760ddfe03b1602c610bbcad62d5ab
592
cpp
C++
Source/Services/Rockets/RocketService.cpp
AzuxDario/Marsy
d7fb746250566377cd18a9651d6b74c2bef6c342
[ "MIT" ]
3
2020-06-23T20:08:48.000Z
2020-10-03T11:08:32.000Z
Source/Services/Rockets/RocketService.cpp
AzuxDario/Marsy
d7fb746250566377cd18a9651d6b74c2bef6c342
[ "MIT" ]
null
null
null
Source/Services/Rockets/RocketService.cpp
AzuxDario/Marsy
d7fb746250566377cd18a9651d6b74c2bef6c342
[ "MIT" ]
null
null
null
#include "RocketService.h" namespace Marsy { RocketService::RocketService(std::shared_ptr<IConnector> connector) : Service(connector) { } ServiceResponse<RocketModel> RocketService::getRocket(std::string id) { return getObject(apiRocketsUrl + "/" + id); } ServiceVectorRes...
24.666667
92
0.689189
AzuxDario
8f3fe8fff532c6c486ebd26097b1a095fd015257
8,848
cpp
C++
cpp/string/base64decode.cpp
haitongz/code
9b2f559aa57e5ad669611b2c68f041b389dcb49c
[ "Apache-2.0" ]
null
null
null
cpp/string/base64decode.cpp
haitongz/code
9b2f559aa57e5ad669611b2c68f041b389dcb49c
[ "Apache-2.0" ]
null
null
null
cpp/string/base64decode.cpp
haitongz/code
9b2f559aa57e5ad669611b2c68f041b389dcb49c
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <string.h> #include <iostream> #include <sstream> #include <sys/time.h> #include <stdint.h> #include "modp_b64.h" using namespace std; const int LOOP_COUNT = 100000; // http://blog.csdn.net/morewindows/article/details/11871429 static const uint8_t kBase64DecodeTable[256] ={ 0xff,0xff,0xff,0...
38.637555
1,275
0.6875
haitongz
8f4d947da1c6ad357855e0275f3c1b1ad3892173
5,829
cpp
C++
ModbusAbstractTcpMaster.cpp
joluxer/modbus-master-cxx
787ea5994b2a21b7f46fbf6c400b2d93c62b7271
[ "Zlib" ]
null
null
null
ModbusAbstractTcpMaster.cpp
joluxer/modbus-master-cxx
787ea5994b2a21b7f46fbf6c400b2d93c62b7271
[ "Zlib" ]
null
null
null
ModbusAbstractTcpMaster.cpp
joluxer/modbus-master-cxx
787ea5994b2a21b7f46fbf6c400b2d93c62b7271
[ "Zlib" ]
null
null
null
/* * ModbusAbstractTcpMaster.cpp * * Created on: 12.02.2016 * Author: lode */ #include "ModbusAbstractTcpMaster.h" #include "FormattedLog.h" #include <cassert> namespace Modbus { AbstractTcpMaster::AbstractTcpMaster(AbstractTimer& masterTimer) : AbstractMaster(masterTimer), serverPort{DefaultTcpPort},...
24.491597
139
0.669755
joluxer
8f4dc60901a2c28f9d043f5be89227831dff872d
4,922
cpp
C++
pytorch_impl/libs/native/py_krum/krum.cpp
sahareslami/Garfield
b620816fe88b2cb2cef4a889342e6b1ad32a0395
[ "MIT" ]
8
2021-02-03T15:13:44.000Z
2022-02-24T18:47:13.000Z
pytorch_impl/libs/native/py_krum/krum.cpp
sahareslami/Garfield
b620816fe88b2cb2cef4a889342e6b1ad32a0395
[ "MIT" ]
2
2021-09-13T14:36:10.000Z
2022-01-26T16:33:16.000Z
pytorch_impl/libs/native/py_krum/krum.cpp
sahareslami/Garfield
b620816fe88b2cb2cef4a889342e6b1ad32a0395
[ "MIT" ]
8
2020-12-12T12:53:53.000Z
2021-11-30T05:58:08.000Z
/** * @file krum.cpp * @author Sébastien Rouault <sebastien.rouault@alumni.epfl.ch> * * @section LICENSE * * Copyright © 2018-2019 École Polytechnique Fédérale de Lausanne (EPFL). * All rights reserved. * * @section DESCRIPTION * * Multi-Krum GAR, native C++ implementation. * * Based on the algorithm int...
36.731343
147
0.550183
sahareslami
8f52805094b8f78f38d1a1e3000c42607e1d1e59
1,005
cpp
C++
Phase-1/Day-5-BonusTest/4-PrimesOfPrimes.cpp
Gurubalan-GIT/Interview-Cell
d7097914423b302cecc80c5c5e6ff39e94116967
[ "MIT" ]
3
2019-05-17T16:14:53.000Z
2019-05-18T08:54:04.000Z
Phase-1/Day-5-BonusTest/4-PrimesOfPrimes.cpp
Gurubalan-GIT/Interview-Cell
d7097914423b302cecc80c5c5e6ff39e94116967
[ "MIT" ]
null
null
null
Phase-1/Day-5-BonusTest/4-PrimesOfPrimes.cpp
Gurubalan-GIT/Interview-Cell
d7097914423b302cecc80c5c5e6ff39e94116967
[ "MIT" ]
1
2019-05-18T00:37:52.000Z
2019-05-18T00:37:52.000Z
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int prime_check(int x){ int flag=0; for(int i=2;i<=sqrt(x);i++){ if(x%i==0){ flag=1; break; } } return flag; } int factSum(int n) { int res = 0...
18.272727
39
0.378109
Gurubalan-GIT
8f5a508544c2f33264818a3ee90f1a7b1b3aaa96
6,948
hpp
C++
include/spear/Forcefield.hpp
chopralab/spear
d45ffc907ab1730789413dd04afb347a26f35154
[ "BSD-3-Clause" ]
2
2019-07-28T07:57:02.000Z
2019-10-28T13:58:37.000Z
include/spear/Forcefield.hpp
chopralab/spear
d45ffc907ab1730789413dd04afb347a26f35154
[ "BSD-3-Clause" ]
null
null
null
include/spear/Forcefield.hpp
chopralab/spear
d45ffc907ab1730789413dd04afb347a26f35154
[ "BSD-3-Clause" ]
null
null
null
// Spear: Statistical Platform for Elucidating moleculAr Reactivity // Copyright (C) Purdue University -- BSD license #ifndef SPEAR_FORCEFIELD_HPP #define SPEAR_FORCEFIELD_HPP #include <unordered_map> #include <algorithm> #include <boost/functional/hash.hpp> #include "spear/exports.hpp" #include <iostream> namespa...
36.376963
127
0.510507
chopralab
8f615581bec62e7dbbde32d78881159eca6d71cf
10,085
cpp
C++
src/newGameLayout.cpp
HenadziMatuts/snake1
c5ecb731c25222b7b8e46803f9f26277ad48bc52
[ "MIT" ]
8
2017-08-31T16:43:10.000Z
2021-11-14T17:44:05.000Z
src/newGameLayout.cpp
HenadziMatuts/snake1
c5ecb731c25222b7b8e46803f9f26277ad48bc52
[ "MIT" ]
null
null
null
src/newGameLayout.cpp
HenadziMatuts/snake1
c5ecb731c25222b7b8e46803f9f26277ad48bc52
[ "MIT" ]
1
2020-03-19T19:46:56.000Z
2020-03-19T19:46:56.000Z
#include "newGameLayout.h" #include "game.h" #include "utilities.h" static UILayout* NewGameStartButtonEventHandler(SDL_Event *event, GameScreen **newScreen, void *userData) { NewGameSettings *settings = (NewGameSettings*)userData; UILayout *newLayout = nullptr; if (event->type == SDL_KEYUP) { switch (event->ke...
30.468278
118
0.73416
HenadziMatuts
8f64296f535946d4b12ae84fe06edf5398bea739
4,544
cpp
C++
json-parser003/json_value.cpp
syohex/cpp-study
598c2afbe77c6d4ba88f549d3e99f97b5bf81acb
[ "MIT" ]
null
null
null
json-parser003/json_value.cpp
syohex/cpp-study
598c2afbe77c6d4ba88f549d3e99f97b5bf81acb
[ "MIT" ]
null
null
null
json-parser003/json_value.cpp
syohex/cpp-study
598c2afbe77c6d4ba88f549d3e99f97b5bf81acb
[ "MIT" ]
null
null
null
#include "json_value.h" JsonValue::JsonValue() : JsonValue(JsonType::kNull) { } JsonValue::JsonValue(std::nullptr_t) : JsonValue(JsonType::kNull) { } JsonValue::JsonValue(JsonType type) : type_(type), u_({}) { switch (type_) { case JsonType::kBoolean: u_.boolean_ = false; break; case Json...
24.562162
83
0.6239
syohex
8f6caea38150aa26295e794ef6aee9bd11a90a1b
2,380
cpp
C++
src/plugin/vst3/MidiBusesInfo.cpp
hotwatermorning/Vst3SampleHost
405f8f9ca89467de46ee3fd9b819503e556022e7
[ "MIT" ]
19
2019-09-15T11:35:11.000Z
2021-12-02T12:27:09.000Z
src/plugin/vst3/MidiBusesInfo.cpp
hotwatermorning/Vst3SampleHost
405f8f9ca89467de46ee3fd9b819503e556022e7
[ "MIT" ]
3
2019-09-15T12:48:49.000Z
2019-09-18T10:43:19.000Z
src/plugin/vst3/MidiBusesInfo.cpp
hotwatermorning/Vst3SampleHost
405f8f9ca89467de46ee3fd9b819503e556022e7
[ "MIT" ]
1
2021-08-27T23:07:27.000Z
2021-08-27T23:07:27.000Z
#include "MidiBusesInfo.hpp" #include "BusUtil.hpp" NS_HWM_BEGIN using namespace Steinberg; void MidiBusesInfo::Initialize(IMidiBusesInfoOwner *owner, Vst::BusDirections dir) { dir_ = dir; owner_ = owner; assert(owner_); auto const media = Vst::MediaTypes::kEvent; auto comp = owner_->G...
25.591398
91
0.705462
hotwatermorning
8f73b9c6c0d43c78e4443cca439053f93e3df302
618
cpp
C++
ALGORITHMS/Binary Search/CodeStudio/Book_Allocation.cpp
compl3xX/ROAD-TO-DSA
2261c112135a51d9d88c4b57e6f062f6b32550a7
[ "MIT" ]
null
null
null
ALGORITHMS/Binary Search/CodeStudio/Book_Allocation.cpp
compl3xX/ROAD-TO-DSA
2261c112135a51d9d88c4b57e6f062f6b32550a7
[ "MIT" ]
null
null
null
ALGORITHMS/Binary Search/CodeStudio/Book_Allocation.cpp
compl3xX/ROAD-TO-DSA
2261c112135a51d9d88c4b57e6f062f6b32550a7
[ "MIT" ]
null
null
null
bool isPossible(vector<int> arr, int n, int m,int mid) { int studentCount=1; int pageSum=0; for(int i=0;i<n;i++) { if(pageSum+arr[i]<=mid) { pageSum+=arr[i]; } else { studentCount++; if(studentCount>m||arr[i]>mid) { return false; } pageSum=arr[i]; } } return true; } int alloca...
12.117647
54
0.530744
compl3xX
8f73d3905e1ad727d4b5fdd1e3983ac3b55d5905
687
cpp
C++
C_C++/oop_assignment/contest/week6Contest/Q1.cpp
oneofsunshine/program_learning
5afc2e5e6e7a6604d4bd9c8e102822e1cf751c0b
[ "Apache-2.0" ]
1
2018-02-10T03:53:45.000Z
2018-02-10T03:53:45.000Z
C_C++/oop_assignment/contest/week6Contest/Q1.cpp
oneofsunshine/program_learning
5afc2e5e6e7a6604d4bd9c8e102822e1cf751c0b
[ "Apache-2.0" ]
null
null
null
C_C++/oop_assignment/contest/week6Contest/Q1.cpp
oneofsunshine/program_learning
5afc2e5e6e7a6604d4bd9c8e102822e1cf751c0b
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <string> #include <cstring> using namespace std; template <class T> class myclass { // 在此处补充你的代码 public: T * p; int size; myclass(T * li, int l) { size = l; p = new T[size]; for(int i = 0; i < size; i++) p[i] = li[i]; } ~myclass(...
15.976744
40
0.484716
oneofsunshine
8f7eada04cecc9ea588ff81f394f386e883a3ebf
3,744
cpp
C++
src/entity-system/model/entities/entity-types/EntityType.cpp
inexorgame/entity-system
230a6f116fb02caeace79bc9b32f17fe08687c36
[ "MIT" ]
19
2018-10-11T09:19:48.000Z
2020-04-19T16:36:58.000Z
src/entity-system/model/entities/entity-types/EntityType.cpp
inexorgame-obsolete/entity-system-inactive
230a6f116fb02caeace79bc9b32f17fe08687c36
[ "MIT" ]
132
2018-07-28T12:30:54.000Z
2020-04-25T23:05:33.000Z
src/entity-system/model/entities/entity-types/EntityType.cpp
inexorgame-obsolete/entity-system-inactive
230a6f116fb02caeace79bc9b32f17fe08687c36
[ "MIT" ]
3
2019-03-02T16:19:23.000Z
2020-02-18T05:15:29.000Z
#include "EntityType.hpp" namespace inexor::entity_system { EntityType::EntityType(const std::string &ent_type_name) : GUIDBase(), TypeBase(ent_type_name) { } EntityType::EntityType(const xg::Guid &ent_type_GUID, const std::string &ent_type_name) : GUIDBase(ent_type_GUID), TypeBase(ent_type_name) { } EntityType::~E...
32.556522
138
0.700321
inexorgame
8f8cda1db1d579b67748a24c14414e29853f6a55
5,560
cpp
C++
MarlinServer/ServerTestset/TestCookies.cpp
zYg-sys/Marlin
eeabb4d324c5f8d253a50c106208bb833cb824e8
[ "MIT" ]
23
2016-09-16T11:25:54.000Z
2022-03-03T07:18:57.000Z
MarlinServer/ServerTestset/TestCookies.cpp
zYg-sys/Marlin
eeabb4d324c5f8d253a50c106208bb833cb824e8
[ "MIT" ]
26
2016-10-21T11:07:54.000Z
2022-03-05T18:27:03.000Z
MarlinServer/ServerTestset/TestCookies.cpp
zYg-sys/Marlin
eeabb4d324c5f8d253a50c106208bb833cb824e8
[ "MIT" ]
7
2018-09-11T12:17:46.000Z
2021-07-08T09:10:04.000Z
///////////////////////////////////////////////////////////////////////////////// // // SourceFile: TestCookies.cpp // // Marlin Server: Internet server/client // // Copyright (c) 2014-2021 ir. W.E. Huisman // All rights reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy // of ...
28.80829
103
0.605396
zYg-sys
8f98bbb262962d686bc59355abb568ae4aaa298e
2,260
hpp
C++
modules/core/exponential/include/nt2/exponential/functions/scalar/significants.hpp
psiha/nt2
5e829807f6b57b339ca1be918a6b60a2507c54d0
[ "BSL-1.0" ]
34
2017-05-19T18:10:17.000Z
2022-01-04T02:18:13.000Z
modules/core/exponential/include/nt2/exponential/functions/scalar/significants.hpp
psiha/nt2
5e829807f6b57b339ca1be918a6b60a2507c54d0
[ "BSL-1.0" ]
null
null
null
modules/core/exponential/include/nt2/exponential/functions/scalar/significants.hpp
psiha/nt2
5e829807f6b57b339ca1be918a6b60a2507c54d0
[ "BSL-1.0" ]
7
2017-12-02T12:59:17.000Z
2021-07-31T12:46:14.000Z
//============================================================================== // Copyright 2015 - J.T. Lapreste // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.tx...
36.451613
80
0.627876
psiha
8f9bd1d0e89ea7330afa0fb080df2bafffb445de
2,827
cpp
C++
Source/ProjectCleaner/Private/ProjectCleaner.cpp
irajsb/ProjectCleaner
7f625a65280a883a8d1c15349f7c2484cc5a443a
[ "MIT" ]
38
2021-01-13T01:18:14.000Z
2022-03-08T13:10:11.000Z
Source/ProjectCleaner/Private/ProjectCleaner.cpp
irajsb/ProjectCleaner
7f625a65280a883a8d1c15349f7c2484cc5a443a
[ "MIT" ]
31
2021-01-13T01:19:02.000Z
2022-02-24T02:01:33.000Z
Source/ProjectCleaner/Private/ProjectCleaner.cpp
irajsb/ProjectCleaner
7f625a65280a883a8d1c15349f7c2484cc5a443a
[ "MIT" ]
10
2020-11-22T02:12:44.000Z
2022-03-08T13:10:01.000Z
// Copyright 2021. Ashot Barkhudaryan. All Rights Reserved. #include "ProjectCleaner.h" #include "UI/ProjectCleanerStyle.h" #include "UI/ProjectCleanerMainUI.h" #include "UI/ProjectCleanerCommands.h" // Engine Headers #include "ToolMenus.h" #include "AssetToolsModule.h" #include "AssetRegistry/AssetRegistryModule.h" ...
30.074468
103
0.8104
irajsb
8fa60b18a882f2a4661005384d10b4d0f185e258
1,710
cc
C++
src/event.cc
cbpark/CLHCO
4f6f73dc7a3a4dc25bfc7d7be9d34d5dd59fb9f0
[ "BSD-3-Clause" ]
null
null
null
src/event.cc
cbpark/CLHCO
4f6f73dc7a3a4dc25bfc7d7be9d34d5dd59fb9f0
[ "BSD-3-Clause" ]
null
null
null
src/event.cc
cbpark/CLHCO
4f6f73dc7a3a4dc25bfc7d7be9d34d5dd59fb9f0
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2015, 2017, Chan Beom Park <cbpark@gmail.com> */ #include "event.h" #include <algorithm> #include <functional> #include <iomanip> namespace lhco { std::string RawEvent::show() const { std::string str = "RawEvent {" + header_.show() + ",["; for (const auto &o : objects_) { str += o.show() + ",...
25.909091
79
0.545029
cbpark
8fb8349945bb2a9ee108c9ddbb02d29f306e9761
3,931
cpp
C++
ConsoleApplication1/SceneMsaa.cpp
tanakatanaka/OpenGltest
a6bd25a4f1e3a485a732f22168792bcdf4ef4131
[ "MIT" ]
null
null
null
ConsoleApplication1/SceneMsaa.cpp
tanakatanaka/OpenGltest
a6bd25a4f1e3a485a732f22168792bcdf4ef4131
[ "MIT" ]
null
null
null
ConsoleApplication1/SceneMsaa.cpp
tanakatanaka/OpenGltest
a6bd25a4f1e3a485a732f22168792bcdf4ef4131
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "scenemsaa.h" #include <cstdio> #include <cstdlib> #include "glutils.h" #include "defines.h" using glm::vec3; #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform2.hpp> SceneMsaa::SceneMsaa() { width = 640; height = 480; } void SceneMsaa::initSce...
26.560811
116
0.584075
tanakatanaka
8fb8360316042ecefef24fdab1c5782b1c45ff29
2,137
hpp
C++
include/DREAM/Equations/Fluid/IonEquationTerm.hpp
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
include/DREAM/Equations/Fluid/IonEquationTerm.hpp
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
include/DREAM/Equations/Fluid/IonEquationTerm.hpp
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
#ifndef _DREAM_ION_EQUATION_TERM_HPP #define _DREAM_ION_EQUATION_TERM_HPP #include "DREAM/IonHandler.hpp" #include "FVM/Equation/EquationTerm.hpp" #include "FVM/Equation/MomentQuantity.hpp" #include "FVM/Grid/Grid.hpp" #include "FVM/Matrix.hpp" namespace DREAM { template<class T> class IonEquationTerm : publi...
36.844828
102
0.645297
chalmersplasmatheory
2632a624cc04f86cd66f4fdeeba34fc0dbbe3bc8
6,503
cpp
C++
tests/itkCalculatorT1ImageFilter_test.cpp
MRKonrad/OxShmolli2
abe020f4aa08c1037f04fe80e68f0651d03cccd1
[ "MIT" ]
7
2018-12-10T10:11:03.000Z
2021-03-11T14:40:40.000Z
tests/itkCalculatorT1ImageFilter_test.cpp
MRKonrad/OxShmolli2
abe020f4aa08c1037f04fe80e68f0651d03cccd1
[ "MIT" ]
10
2019-03-10T11:42:55.000Z
2021-12-10T15:39:41.000Z
tests/itkCalculatorT1ImageFilter_test.cpp
MRKonrad/OxShmolli2
abe020f4aa08c1037f04fe80e68f0651d03cccd1
[ "MIT" ]
3
2019-12-04T14:05:54.000Z
2022-02-26T00:24:38.000Z
/*! * \file itkOxT1ImageFilter_test.cpp * \author Konrad Werys * \date 2018/08/13 */ #include "CmakeConfigForTomato.h" #ifdef USE_ITK #ifdef USE_YAML #include "OxTestItkImagesFactory.h" #include "OxModelT1ThreeParam.h" #include "OxFitterAmoebaVnl.h" #include "OxSignCalculatorNoSign.h" #include "OxSignCalculatorR...
37.589595
98
0.772105
MRKonrad
263aae83f2c80d684da7dc4ded3adcb23655836d
1,068
cpp
C++
Useful Templete/segment_tree.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
Useful Templete/segment_tree.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
Useful Templete/segment_tree.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; const int N = 100000; // limit fir array size int n; int tree[2 * N]; // max size of tree // build the tree void build(int arr[]) { // insert leaf node in tree for (int i=0;i<n;i++) tree[n + i] = arr[i]; for (int i = n-1; i > 0; i--) tree[i] = tre...
19.071429
50
0.4897
bsmsnd
263ac4e94288a16371852aeb3ab4074c5724d575
6,276
hpp
C++
Producer.hpp
yohm/caravan-lib
5d78e23f3f2c96e61cd897c336225d950f12e745
[ "Apache-2.0" ]
1
2021-06-19T04:21:41.000Z
2021-06-19T04:21:41.000Z
Producer.hpp
yohm/caravan-lib
5d78e23f3f2c96e61cd897c336225d950f12e745
[ "Apache-2.0" ]
null
null
null
Producer.hpp
yohm/caravan-lib
5d78e23f3f2c96e61cd897c336225d950f12e745
[ "Apache-2.0" ]
null
null
null
// // Created by Yohsuke Murase on 2021/02/23. // #ifndef CARAVAN_LIB_PRODUCER_HPP #define CARAVAN_LIB_PRODUCER_HPP #include <iostream> #include <vector> #include <queue> #include <map> #include <set> #include <chrono> #include <mpi.h> #include "Base.hpp" #include "TaskResult.hpp" #include "Logger.hpp" namespace car...
35.258427
127
0.631294
yohm
263fe66c941ebfd9814eb2d2883f4fd7544d45e4
1,711
cpp
C++
BFS-DFS/11080.cpp
enricava/Competitive-Programming
ea39f5c74acc2202f3933f693f6d7f03f5435391
[ "MIT" ]
null
null
null
BFS-DFS/11080.cpp
enricava/Competitive-Programming
ea39f5c74acc2202f3933f693f6d7f03f5435391
[ "MIT" ]
null
null
null
BFS-DFS/11080.cpp
enricava/Competitive-Programming
ea39f5c74acc2202f3933f693f6d7f03f5435391
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <fstream> #include <algorithm> #include <vector> #include <cmath> #include <string> #include <utility> #include <queue> using namespace std; using vvi = vector<vector<int>>; void resolver(const vvi& g, int e) { vector<int> vis(g.size(), -1); queue<int> q;...
21.935897
81
0.544126
enricava
264903e555f68cef36320f67b9070cac4ba2a953
910
cpp
C++
problem_016.cpp
JlnZhou/ProjtecEuler
6bbc4cbed2bf6596346d6d84e07b5355a36304c9
[ "MIT" ]
null
null
null
problem_016.cpp
JlnZhou/ProjtecEuler
6bbc4cbed2bf6596346d6d84e07b5355a36304c9
[ "MIT" ]
null
null
null
problem_016.cpp
JlnZhou/ProjtecEuler
6bbc4cbed2bf6596346d6d84e07b5355a36304c9
[ "MIT" ]
null
null
null
/* Power digit sum 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? */ #include <iostream> using namespace std; int exponent = 1000; void doubling(int* table) { int to_add = 0; for (int i = 0; i < exponent - 1; i++) { table[i] *= 2; table[i...
16.545455
65
0.546154
JlnZhou
264a1842068ae26f542b19144b496842fbeb3aad
529
hpp
C++
test/algorithm/find_if.hpp
kvasir-io/MPL
59cd21381c3f3285939c0d32dbfe657398c52ec9
[ "BSL-1.0" ]
148
2017-03-02T21:11:44.000Z
2022-03-26T04:04:19.000Z
test/algorithm/find_if.hpp
kvasir-io/MPL
59cd21381c3f3285939c0d32dbfe657398c52ec9
[ "BSL-1.0" ]
37
2017-02-13T22:45:27.000Z
2021-03-28T16:26:33.000Z
test/algorithm/find_if.hpp
kvasir-io/MPL
59cd21381c3f3285939c0d32dbfe657398c52ec9
[ "BSL-1.0" ]
32
2017-03-06T21:34:25.000Z
2022-01-02T16:40:35.000Z
// Copyright Odin Holmes 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <kvasir/mpl/algorithm/find_if.hpp> #include <kvasir/mpl/functional/call.hpp> #include <kvasir/...
26.45
85
0.6862
kvasir-io
2650bd5f80dac1a213b20ea1e3f44526190b9d3e
3,199
cpp
C++
Hopur21Verkefni/MyComputerScienceList/services/cspersonservice.cpp
Hopur21/Hopur21
d7665bb03611bfa180b1e62088d9f2246b0e4d40
[ "MIT" ]
null
null
null
Hopur21Verkefni/MyComputerScienceList/services/cspersonservice.cpp
Hopur21/Hopur21
d7665bb03611bfa180b1e62088d9f2246b0e4d40
[ "MIT" ]
null
null
null
Hopur21Verkefni/MyComputerScienceList/services/cspersonservice.cpp
Hopur21/Hopur21
d7665bb03611bfa180b1e62088d9f2246b0e4d40
[ "MIT" ]
null
null
null
#include "cspersonservice.h" /* //Bool variablers are used in sorting to decide the order of sorting, DESCending and ASCending bool sortByNameDESCC(const CSPerson &lhs, const CSPerson &rhs) { return lhs.getName() > rhs.getName(); } bool sortByNameASCC(const CSPerson &lhs, const CSPerson &rhs) { return lhs.getName() < r...
36.352273
127
0.732104
Hopur21
2653f214507d5ec4ad83a6cf144ae257cd287537
1,465
cc
C++
problems/0XXX/00XX/009X/0094_binary_tree_inorder_traversal.cc
mohankarthik/leetcode
9a15200460425962b26867ed14416576f54e8ce5
[ "MIT" ]
null
null
null
problems/0XXX/00XX/009X/0094_binary_tree_inorder_traversal.cc
mohankarthik/leetcode
9a15200460425962b26867ed14416576f54e8ce5
[ "MIT" ]
null
null
null
problems/0XXX/00XX/009X/0094_binary_tree_inorder_traversal.cc
mohankarthik/leetcode
9a15200460425962b26867ed14416576f54e8ce5
[ "MIT" ]
null
null
null
#include "../../../../common/Includes.h" class Solution { private: vector<int> _recursive(TreeNode *root) { vector<int> ans; /* Preconditions */ if (!root) return ans; vector<int> left = _recursive(root->left); ans.insert(ans.end(), left.begin(), left.end()...
24.830508
58
0.464164
mohankarthik
26570a6557e89c7752c35703037d786e660716a1
328
hpp
C++
src/org/apache/poi/ss/usermodel/ShapeContainer.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/ss/usermodel/ShapeContainer.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/ss/usermodel/ShapeContainer.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /POI/java/org/apache/poi/ss/usermodel/ShapeContainer.java #pragma once #include <org/apache/poi/ss/usermodel/fwd-POI.hpp> #include <java/lang/Iterable.hpp> struct poi::ss::usermodel::ShapeContainer : public virtual ::java::lang::Iterable { // Generated static ::java::lang::Class *class...
21.866667
75
0.710366
pebble2015
266124dd33b5e26afaf1add2a61527727ed4276b
1,473
cpp
C++
Leet Code/Binary Tree Right Side View.cpp
Shubhrmcf07/Competitive-Coding-and-Interview-Problems
7281ea3163c0cf6938a3af7b54a8a14f97c97c0e
[ "MIT" ]
51
2020-02-24T11:14:00.000Z
2022-03-24T09:32:18.000Z
Leet Code/Binary Tree Right Side View.cpp
Shubhrmcf07/Competitive-Coding-and-Interview-Problems
7281ea3163c0cf6938a3af7b54a8a14f97c97c0e
[ "MIT" ]
3
2020-10-02T08:16:09.000Z
2021-04-17T16:32:38.000Z
Leet Code/Binary Tree Right Side View.cpp
Shubhrmcf07/Competitive-Coding-and-Interview-Problems
7281ea3163c0cf6938a3af7b54a8a14f97c97c0e
[ "MIT" ]
18
2020-04-24T15:33:36.000Z
2022-03-24T09:32:20.000Z
/* Leet Code */ /* Title - Binary Tree Right Side View */ /* Created By - Akash Modak */ /* Date - 29/09/2020 */ // Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. // Example: // Input: [1,2,3,null,5,null,4] // O...
26.781818
146
0.455533
Shubhrmcf07
266127b752ce56663f11e5093c55cdd7eb7967ad
2,187
cpp
C++
lib/src/common/time_difference.cpp
Timohan/prj-tg-ui-lib
e32c2f974bde1c613b5a18372088e2612d5ddfbc
[ "MIT" ]
null
null
null
lib/src/common/time_difference.cpp
Timohan/prj-tg-ui-lib
e32c2f974bde1c613b5a18372088e2612d5ddfbc
[ "MIT" ]
null
null
null
lib/src/common/time_difference.cpp
Timohan/prj-tg-ui-lib
e32c2f974bde1c613b5a18372088e2612d5ddfbc
[ "MIT" ]
null
null
null
/*! * \file * \brief file time_difference.cpp * * time difference class * * Copyright of Timo Hannukkala. All rights reserved. * * \author Timo Hannukkala <timohannukkala@hotmail.com> */ #include "time_difference.h" TimeDifference::TimeDifference() : m_addTime(0), m_paused(false) { clock_gettime(...
21.87
183
0.702789
Timohan
266364b5627d7f112e7ea28e19d037a2a232602b
3,506
hpp
C++
src/localization/ndt/include/ndt/constraints.hpp
ruvus/auto
25ae62d6e575cae40212356eed43ec3e76e9a13e
[ "Apache-2.0" ]
19
2021-05-28T06:14:21.000Z
2022-03-10T10:03:08.000Z
src/localization/ndt/include/ndt/constraints.hpp
ruvus/auto
25ae62d6e575cae40212356eed43ec3e76e9a13e
[ "Apache-2.0" ]
1
2021-05-23T16:45:11.000Z
2021-08-03T16:59:40.000Z
src/localization/ndt/include/ndt/constraints.hpp
ruvus/auto
25ae62d6e575cae40212356eed43ec3e76e9a13e
[ "Apache-2.0" ]
14
2021-05-29T14:59:17.000Z
2022-03-10T10:03:09.000Z
// Copyright 2021 Apex.AI, 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 to i...
32.165138
95
0.738734
ruvus
26697c9de82137cceb97440fd7a521a80ce6bc59
13,580
hpp
C++
compiler/src/ast/stmt/ast_flow.hpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
15
2017-08-15T20:46:44.000Z
2021-12-15T02:51:13.000Z
compiler/src/ast/stmt/ast_flow.hpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
null
null
null
compiler/src/ast/stmt/ast_flow.hpp
TuplexLanguage/tuplex
fc436c78224522663e40e09d36f83570fd76ba2d
[ "Apache-2.0" ]
1
2017-09-28T14:48:15.000Z
2017-09-28T14:48:15.000Z
#pragma once #include <vector> #include "ast_stmt_node.hpp" #include "ast_stmts.hpp" #include "ast/expr/ast_expr_node.hpp" class TxElseClauseNode : public TxStatementNode { public: TxStatementNode* body; TxElseClauseNode( const TxLocation& ploc, TxStatementNode* suite ) : TxStatementNode( ploc ...
46.033898
141
0.695582
TuplexLanguage
266d3d5dda9926e4da0c37884d934a62548c3573
3,433
cpp
C++
FormatCSV/FormatCSV.cpp
SonicYeager/CppPractice
05b80ac918648ba733ec5fce969eac4b2ae79b58
[ "MIT" ]
null
null
null
FormatCSV/FormatCSV.cpp
SonicYeager/CppPractice
05b80ac918648ba733ec5fce969eac4b2ae79b58
[ "MIT" ]
9
2020-10-26T10:14:46.000Z
2020-10-27T12:13:51.000Z
FormatCSV/FormatCSV.cpp
SonicYeager/CppPractice
05b80ac918648ba733ec5fce969eac4b2ae79b58
[ "MIT" ]
null
null
null
#include "FormatCSV.h" using Lines = std::vector<std::string>; struct Table { Table() = default; Table(const std::vector<std::string>& head, const std::vector<std::string>& seperation, const std::vector<std::vector<std::string>>& content) : head(head), seperation(seperation), content(content...
27.685484
161
0.594232
SonicYeager
266f1ba7f1b54432a713d56ddd584a18c608022b
526
cpp
C++
src/DabbleESP32/src/HomeAutomationModule.cpp
JuriShalkin/TTGO_TWatch_Library
d6643481c10a73963bd75a3bd4ee73d8683892dd
[ "MIT" ]
null
null
null
src/DabbleESP32/src/HomeAutomationModule.cpp
JuriShalkin/TTGO_TWatch_Library
d6643481c10a73963bd75a3bd4ee73d8683892dd
[ "MIT" ]
null
null
null
src/DabbleESP32/src/HomeAutomationModule.cpp
JuriShalkin/TTGO_TWatch_Library
d6643481c10a73963bd75a3bd4ee73d8683892dd
[ "MIT" ]
null
null
null
#define FROM_DABBLE_LIBRARY #include "DabbleESP32.h" #include "HomeAutomationModule.h" HomeAutomationModule::HomeAutomationModule():ModuleParent(HOMEAUTOMATION_ID){ } void HomeAutomationModule::processData(){ uint8_t pin = getDabbleInstance().getArgumentData(0)[0]; bool state = getDabbleInstance().getAr...
27.684211
78
0.714829
JuriShalkin
267b5095a6ff25ece23f8b71be1cfa3b0d5d305a
604
hpp
C++
src/core/animations/set.hpp
rexim/beatwave
d88db6d9f2f5def37d185e74870c5908beffc753
[ "MIT" ]
20
2015-12-19T16:17:01.000Z
2022-01-19T18:40:10.000Z
src/core/animations/set.hpp
rexim/beatwave
d88db6d9f2f5def37d185e74870c5908beffc753
[ "MIT" ]
99
2015-12-19T16:20:40.000Z
2017-03-03T15:47:23.000Z
src/core/animations/set.hpp
rexim/beatwave
d88db6d9f2f5def37d185e74870c5908beffc753
[ "MIT" ]
7
2015-12-21T09:41:08.000Z
2016-09-27T15:20:40.000Z
#ifndef CORE_ANIMATIONS_SET_HPP_ #define CORE_ANIMATIONS_SET_HPP_ #include <iostream> template <typename Value> class Set: public Animation<Value> { public: Set(const Value &value): m_value(value) {} virtual Value nextValue(const int32_t) override { return m_value; } virtual ...
16.324324
51
0.660596
rexim
267d44a60b9972560e76df949a769926543ca853
1,160
cpp
C++
src/Application.cpp
gsproduction727/ESN
84432a51ce14f73c53dcec2dec781e993f94dd34
[ "MIT" ]
null
null
null
src/Application.cpp
gsproduction727/ESN
84432a51ce14f73c53dcec2dec781e993f94dd34
[ "MIT" ]
null
null
null
src/Application.cpp
gsproduction727/ESN
84432a51ce14f73c53dcec2dec781e993f94dd34
[ "MIT" ]
null
null
null
#include <string> #include <iostream> #include <unordered_map> #include "ESN.hpp" // Entry Point int main (int argc, char* argv[]) { // Read the file std::string Path = "Example.esn"; std::string FileString; bool SuccessReadFile = ESN::ReadFile(Path,FileString); // FIle reading error handling ...
26.976744
90
0.593103
gsproduction727
267fec97a3c39aa866a366bacf2cc5d482d4dac5
7,715
cpp
C++
src/sensorctl/test_bench.cpp
lavataste/sensord
61448c28b17b6604bec17b29d260f4a65d90c5d2
[ "Apache-2.0" ]
null
null
null
src/sensorctl/test_bench.cpp
lavataste/sensord
61448c28b17b6604bec17b29d260f4a65d90c5d2
[ "Apache-2.0" ]
null
null
null
src/sensorctl/test_bench.cpp
lavataste/sensord
61448c28b17b6604bec17b29d260f4a65d90c5d2
[ "Apache-2.0" ]
null
null
null
/* * sensorctl * * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * 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 requir...
21.371191
93
0.636811
lavataste
2684583fa7733086d62e0971fc5a501dd1c13225
1,344
cpp
C++
library/2cumulative.cpp
zaurus-yusya/atcoder
5fc345b3da50222fa1366d1ce52ae58799488cef
[ "MIT" ]
3
2020-05-27T16:27:12.000Z
2021-01-27T12:47:12.000Z
library/2cumulative.cpp
zaurus-yusya/Competitive-Programming
c72e13a11f76f463510bd4a476b86631d9d1b13a
[ "MIT" ]
null
null
null
library/2cumulative.cpp
zaurus-yusya/Competitive-Programming
c72e13a11f76f463510bd4a476b86631d9d1b13a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> typedef long long ll; typedef long double ld; #define rep(i,n) for(ll i=0;i<(n);i++) #define repr(i,n) for(ll i=(n-1);i>=0;i--) #define all(x) x.begin(),x.end() #define br cout << "\n"; using namespace std; const long long INF = 1e10; const long long MOD = 1e9+7; using Graph = vector<vector<ll>...
26.88
95
0.493304
zaurus-yusya
26846087d46c329f6f45ecf3a57ddc992d4c4070
321
hpp
C++
falcon/utility/to_const.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
2
2018-02-02T14:19:59.000Z
2018-05-13T02:48:24.000Z
falcon/utility/to_const.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
falcon/utility/to_const.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
#ifndef FALCON_UTILITY_TO_CONST_HPP #define FALCON_UTILITY_TO_CONST_HPP #include <falcon/c++/noexcept.hpp> #include <falcon/c++/constexpr.hpp> namespace falcon { CPP_GLOBAL_CONSTEXPR struct to_const_t { template<typename T> const T& operator()(const T& x) const CPP_NOEXCEPT { return x; } } to_const; } #endif...
16.894737
52
0.757009
jonathanpoelen
26986a2a6c2fe4f669ac5f31e4c6b53f25553d38
1,006
hpp
C++
include/RED4ext/Scripting/Natives/Generated/game/AppearanceNameVisualTagsPreset_Entity.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
42
2020-12-25T08:33:00.000Z
2022-03-22T14:47:07.000Z
include/RED4ext/Scripting/Natives/Generated/game/AppearanceNameVisualTagsPreset_Entity.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
38
2020-12-28T22:36:06.000Z
2022-02-16T11:25:47.000Z
include/RED4ext/Scripting/Natives/Generated/game/AppearanceNameVisualTagsPreset_Entity.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> #include <RED4ext/Common.hpp> #include <RED4ext/CName.hpp> #include <RED4ext/DynArray.hpp> #include <RED4ext/ISerializable.hpp> #include <RED4ext/Scripting/Natives/Generated/game/AppearanceNameVisualTagsPreset_AppearanceTags.hpp...
32.451613
101
0.785288
jackhumbert
269e51bfc54cfd488c9b711f7e4c1e99dc6f1d8a
1,963
cpp
C++
tests/testProcessingList.cpp
semper24/HTTP-Server
1cb238385634ca17a5ee242d17e7d6926dc2bf21
[ "MIT" ]
null
null
null
tests/testProcessingList.cpp
semper24/HTTP-Server
1cb238385634ca17a5ee242d17e7d6926dc2bf21
[ "MIT" ]
null
null
null
tests/testProcessingList.cpp
semper24/HTTP-Server
1cb238385634ca17a5ee242d17e7d6926dc2bf21
[ "MIT" ]
null
null
null
/* ** EPITECH PROJECT, 2020 ** B-YEP-500-NAN-5-1-zia-arthur.bertaud ** File description: ** testProcessingList.cpp */ #include <criterion/criterion.h> #include <criterion/redirect.h> #include "processingList.hpp" Test(processSimpleAdd, processingList) { processingList processList; processList.add(moduleType:...
24.5375
71
0.746307
semper24
26a1c912231e5f331a7c59f94b4d3772450d2d81
886
hh
C++
Include/Zion/GangZone.hh
ZionMP/Zion
7266cc5df81644e54c2744fca7f31b24873b31e7
[ "BSD-2-Clause" ]
1
2021-10-14T05:25:47.000Z
2021-10-14T05:25:47.000Z
Include/Zion/GangZone.hh
ZionMP/Zion
7266cc5df81644e54c2744fca7f31b24873b31e7
[ "BSD-2-Clause" ]
null
null
null
Include/Zion/GangZone.hh
ZionMP/Zion
7266cc5df81644e54c2744fca7f31b24873b31e7
[ "BSD-2-Clause" ]
null
null
null
#pragma once #include "Base.hh" #include "Player.hh" #include "List.hh" #include <stdint.h> namespace Zion { class GangZone { public: GangZone(Vector2 min, Vector2 max); ~GangZone(); void FlashForAll(uint32_t color); void FlashForPlayer(Player *player, uint3...
26.058824
64
0.554176
ZionMP
26a20b09f64f3c1374e493041d230bbfc646b15f
2,569
cpp
C++
VDR/Source/Memory/ROMLayout/Specific/ManagerMulticoreLittleEndianNoUnit.cpp
rerunner/STCM_driver
8fef3dd7327812fd317fdb0e6fab8d36e345a505
[ "BSD-3-Clause" ]
null
null
null
VDR/Source/Memory/ROMLayout/Specific/ManagerMulticoreLittleEndianNoUnit.cpp
rerunner/STCM_driver
8fef3dd7327812fd317fdb0e6fab8d36e345a505
[ "BSD-3-Clause" ]
null
null
null
VDR/Source/Memory/ROMLayout/Specific/ManagerMulticoreLittleEndianNoUnit.cpp
rerunner/STCM_driver
8fef3dd7327812fd317fdb0e6fab8d36e345a505
[ "BSD-3-Clause" ]
null
null
null
/// /// @file VDR/Source/Memory/ROMLayout/Specific/ManagerMulticoreLittleEndianNoUnit.cpp /// /// @brief A ROM manager for the multicore little endian ROM layout, not implemented as a unit but as a singleton object. /// /// @author Dietmar Heidrich /// /// @par OWNER: Dietmar Heidrich /// /// @p...
29.193182
127
0.59167
rerunner
26a41b1d102c52f81e498494739bf56a0ab2621f
484
hpp
C++
gtkpp-Box.hpp
btryba/gtkpp
9849557e96aa61e09a9df85e5d03453fe6863842
[ "BSD-3-Clause" ]
null
null
null
gtkpp-Box.hpp
btryba/gtkpp
9849557e96aa61e09a9df85e5d03453fe6863842
[ "BSD-3-Clause" ]
null
null
null
gtkpp-Box.hpp
btryba/gtkpp
9849557e96aa61e09a9df85e5d03453fe6863842
[ "BSD-3-Clause" ]
null
null
null
#ifndef __GTKPP_BOX_HPP__ #define __GTKPP_BOX_HPP__ #include <gtkpp/gtkpp-Container.hpp> namespace gtkpp { class Box : public Container { public: Box(GtkOrientation orientation); Box(GtkOrientation orientation, int spacing); Box(GtkBox* original, bool callAddReference = true); ...
25.473684
103
0.67562
btryba
564be4b7b70a6691f953b32f3fd6c43f1e8cf7f2
5,743
cpp
C++
source/rendering/pipes/SelectionStencilPipe.cpp
RaygenEngine/Raygen
2e61afd35f594d06186c16397b536412ebf4298d
[ "MIT" ]
2
2021-01-27T15:49:04.000Z
2021-01-28T07:40:30.000Z
source/rendering/pipes/SelectionStencilPipe.cpp
RaygenEngine/Raygen
2e61afd35f594d06186c16397b536412ebf4298d
[ "MIT" ]
null
null
null
source/rendering/pipes/SelectionStencilPipe.cpp
RaygenEngine/Raygen
2e61afd35f594d06186c16397b536412ebf4298d
[ "MIT" ]
1
2021-03-07T23:17:31.000Z
2021-03-07T23:17:31.000Z
#include "SelectionStencilPipe.h" #include "editor/Editor.h" #include "rendering/assets/GpuAssetManager.h" #include "rendering/assets/GpuMesh.h" #include "rendering/assets/GpuShader.h" #include "rendering/pipes/StaticPipes.h" #include "rendering/scene/SceneCamera.h" #include "rendering/scene/SceneGeometry.h" #include ...
34.389222
116
0.767543
RaygenEngine
564cf856e57fd92bc55d4d712f363c596f82015e
409
cpp
C++
UVa/01585.cpp
axelgio01/cp
7a1c3490f913e4aea53e46bcfb5bb56c9b15605d
[ "MIT" ]
null
null
null
UVa/01585.cpp
axelgio01/cp
7a1c3490f913e4aea53e46bcfb5bb56c9b15605d
[ "MIT" ]
null
null
null
UVa/01585.cpp
axelgio01/cp
7a1c3490f913e4aea53e46bcfb5bb56c9b15605d
[ "MIT" ]
null
null
null
// https://onlinejudge.org/external/15/1585.pdf #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t; cin >> t; while (t--) { string s; cin >> s; int ans = 0, cur = 1; for (int i = 0; i < (int)s.size(); ++i) { if (s[i] == 'O') { ans +=...
17.782609
47
0.511002
axelgio01
564eab2c48ba41e98e49c9862136aa68af2574c3
326
cpp
C++
Data Structure/Tree/Top View.cpp
pranayspeed/HackerRank-Solutions-C-
54c3e1c567a96a22284ff079fb2c121ce68fe8b7
[ "MIT" ]
null
null
null
Data Structure/Tree/Top View.cpp
pranayspeed/HackerRank-Solutions-C-
54c3e1c567a96a22284ff079fb2c121ce68fe8b7
[ "MIT" ]
null
null
null
Data Structure/Tree/Top View.cpp
pranayspeed/HackerRank-Solutions-C-
54c3e1c567a96a22284ff079fb2c121ce68fe8b7
[ "MIT" ]
null
null
null
/* struct node { int data; node* left; node* right; }; */ void Left(node* n) { if(!n) return; Left(n->left); cout<< n->data<<" "; } void Right(node* n) { if(!n) return; cout<< n->data<<" "; Right(n->right); } void topView(node * root) { Left(root); Right(root->right); ...
10.516129
27
0.484663
pranayspeed
564f537e0656018847112bc4bed1686129722ef3
3,777
cc
C++
shared/cc/Log.cc
rgkirch/JWM
390fc92398758171e402529f8a6da4cce2a3efc6
[ "Apache-2.0" ]
177
2021-05-13T01:03:45.000Z
2021-08-30T18:45:58.000Z
shared/cc/Log.cc
rgkirch/JWM
390fc92398758171e402529f8a6da4cce2a3efc6
[ "Apache-2.0" ]
130
2021-05-18T13:43:08.000Z
2021-08-30T18:16:01.000Z
shared/cc/Log.cc
rgkirch/JWM
390fc92398758171e402529f8a6da4cce2a3efc6
[ "Apache-2.0" ]
13
2021-09-16T14:12:08.000Z
2022-03-21T00:58:01.000Z
#include "Log.hh" #include "impl/JNILocal.hh" #include "impl/Library.hh" #include "StringUTF16.hh" #include <cassert> #include <memory> #include <jni.h> namespace jwm { class LogListenerProxy { public: LogListenerProxy(JNIEnv* env, jobject listener) { _env = env; _listener = lis...
27.772059
159
0.613979
rgkirch
5650dcc81fba34b45f20dec376728d36f9c0e47e
905
cpp
C++
src/Sound.cpp
dubgames/DubBreakout
f69fd2c9cedfdfa7e0ddd64205f646be4aac3cec
[ "Apache-2.0" ]
null
null
null
src/Sound.cpp
dubgames/DubBreakout
f69fd2c9cedfdfa7e0ddd64205f646be4aac3cec
[ "Apache-2.0" ]
null
null
null
src/Sound.cpp
dubgames/DubBreakout
f69fd2c9cedfdfa7e0ddd64205f646be4aac3cec
[ "Apache-2.0" ]
null
null
null
#include "Sound.h" #include "IncludeSDL.h" #include "System.h" Mix_Chunk *paddleHitSound, *sideHitSound, *blockHitSound; void playSound(Mix_Chunk *sound) { if (Mix_PlayChannel(-1, sound, 0) < 0) { log_error("Unable to play sound"); } } void Sound_playPaddleHit() { playSound(paddleHitSound); } v...
20.111111
57
0.667403
dubgames
5651c870307b8a67aaa930051b008cb5527f57ce
1,413
cpp
C++
data/dailyCodingProblem888.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
2
2020-09-04T20:56:23.000Z
2021-06-11T07:42:26.000Z
data/dailyCodingProblem888.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
null
null
null
data/dailyCodingProblem888.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; /* Given a list of points, a central point, and an integer k, find the nearest k points from the central point. For example, given the list of points [(0, 0), (5, 4), (3, 1)], the central point (1, 2), and k = 2, return [(0, 0), (3, 1)]. */ struct PointDistance{ pair...
22.078125
72
0.571125
vidit1999
565299ffdc7131bf09b2fc34a0f0210b87145273
386
cc
C++
src/lapi_version.cc
blt4linux/blt4l
02822d3dd591b6e2d39f738a94f240e8bfce49dd
[ "BSD-2-Clause" ]
61
2016-04-08T22:43:41.000Z
2021-07-11T22:29:22.000Z
src/lapi_version.cc
blt4linux/blt4l
02822d3dd591b6e2d39f738a94f240e8bfce49dd
[ "BSD-2-Clause" ]
106
2016-04-08T18:03:50.000Z
2022-03-01T12:10:10.000Z
src/lapi_version.cc
blt4linux/blt4l
02822d3dd591b6e2d39f738a94f240e8bfce49dd
[ "BSD-2-Clause" ]
15
2016-04-13T17:33:29.000Z
2021-10-16T19:54:22.000Z
#include <blt/lapi.hh> #include <blt/hook.hh> #include <string> namespace blt { namespace lapi { static std::string PlatformName = "linux"; int /* lua fn - "blt_platform" */ blt_platform(lua_state* state) { lua_pushlstring(state, PlatformName.c_str(), PlatformName.length()); ...
16.782609
77
0.593264
blt4linux
565486d400b653e6cd87290637393589988523b4
3,425
cpp
C++
src/AdventOfCode2017/Day16-PermutationPromenade/DanceCoordinator.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2017/Day16-PermutationPromenade/DanceCoordinator.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2017/Day16-PermutationPromenade/DanceCoordinator.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
#include "DanceCoordinator.h" #include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h> __BEGIN_LIBRARIES_DISABLE_WARNINGS #include <algorithm> #include <numeric> #include <unordered_set> #include <tuple> __END_LIBRARIES_DISABLE_WARNINGS namespace AdventOfCode { namespace Year2017 { namespace Day16 { DanceCoordi...
38.055556
136
0.706569
dbartok
565a1d64c3774d11be5aee53f27fb09fdb0ff020
1,125
cpp
C++
plugins/opengl/src/egl/visual/base.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
plugins/opengl/src/egl/visual/base.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
plugins/opengl/src/egl/visual/base.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <sge/opengl/egl/visual/base.hpp> #include <sge/opengl/egl/visual/choose_config.hpp> #inclu...
38.793103
88
0.724444
cpreh
565d93203da3dbe595bef269a08bcd38b775f0fe
1,643
cpp
C++
Source/src/components/ComponentCanvas.cpp
AkitaInteractive/Hachiko-Engine
9d682ed7e00e1f6b889e6e73afa36f290cfb2222
[ "MIT" ]
4
2022-02-17T11:44:39.000Z
2022-03-10T02:20:05.000Z
Source/src/components/ComponentCanvas.cpp
AkitaInteractive/Hachiko-Engine
9d682ed7e00e1f6b889e6e73afa36f290cfb2222
[ "MIT" ]
26
2022-02-17T20:02:51.000Z
2022-03-31T22:52:14.000Z
Source/src/components/ComponentCanvas.cpp
AkitaInteractive/Hachiko-Engine
9d682ed7e00e1f6b889e6e73afa36f290cfb2222
[ "MIT" ]
null
null
null
#include "core/hepch.h" #include "ComponentCanvas.h" #include "ComponentTransform2D.h" #include "ComponentCamera.h" #include "ComponentCanvasRenderer.h" #include "modules/ModuleCamera.h" #include "debugdraw.h" Hachiko::ComponentCanvas::ComponentCanvas(GameObject* container) : Component(Type::CANVAS, container) {} ...
22.202703
92
0.658551
AkitaInteractive
56617acb41a6571079fe625741f055a8d647dee8
31,544
cpp
C++
kernel/src/system/drivers/disk/ide.cpp
Remco123/CactusOS
de4c61211c2908cf1a27d8ccbeb6340133772454
[ "MIT" ]
87
2019-03-04T21:16:20.000Z
2022-01-30T15:10:44.000Z
kernel/src/system/drivers/disk/ide.cpp
Remco123/CactusOS
de4c61211c2908cf1a27d8ccbeb6340133772454
[ "MIT" ]
5
2019-04-24T10:33:55.000Z
2021-06-13T09:46:28.000Z
kernel/src/system/drivers/disk/ide.cpp
Remco123/CactusOS
de4c61211c2908cf1a27d8ccbeb6340133772454
[ "MIT" ]
2
2020-11-13T08:56:09.000Z
2021-08-01T06:38:31.000Z
#include <system/drivers/disk/ide.h> #include <system/system.h> #include <system/tasking/scheduler.h> #include <system/tasking/lock.h> using namespace CactusOS; using namespace CactusOS::common; using namespace CactusOS::core; using namespace CactusOS::system; using namespace CactusOS::system::drivers; IDEInterruptHa...
37.330178
194
0.625856
Remco123
5665a295f14c6469da5f75e3ea95bddb50df7779
12,918
hpp
C++
include/seqan3/alphabet/detail/alphabet_base.hpp
Clemapfel/seqan3
7114024ccaa883364d47f9335d6b19525a1fa7a9
[ "BSD-3-Clause" ]
null
null
null
include/seqan3/alphabet/detail/alphabet_base.hpp
Clemapfel/seqan3
7114024ccaa883364d47f9335d6b19525a1fa7a9
[ "BSD-3-Clause" ]
null
null
null
include/seqan3/alphabet/detail/alphabet_base.hpp
Clemapfel/seqan3
7114024ccaa883364d47f9335d6b19525a1fa7a9
[ "BSD-3-Clause" ]
null
null
null
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
31.052885
118
0.639186
Clemapfel
56690adf4b10b65a5423200b6cf15e672408a09b
331
cpp
C++
src/rreil/sexpr/sexpr_visitor.cpp
gdslang/summy
bd450278f18859eb94d1f30b7b878bbb1b94c42c
[ "Apache-2.0" ]
null
null
null
src/rreil/sexpr/sexpr_visitor.cpp
gdslang/summy
bd450278f18859eb94d1f30b7b878bbb1b94c42c
[ "Apache-2.0" ]
null
null
null
src/rreil/sexpr/sexpr_visitor.cpp
gdslang/summy
bd450278f18859eb94d1f30b7b878bbb1b94c42c
[ "Apache-2.0" ]
null
null
null
/* * sexpr_visitor.cpp * * Created on: Feb 11, 2015 * Author: Julian Kranz */ #include <summy/rreil/sexpr/value_set_sexpr.h> #include <summy/rreil/sexpr/sexpr_visitor.h> void summy::rreil::sexpr_visitor::visit(value_set_sexpr *v) { if(value_set_callback != NULL) value_set_callback(v); else _def...
19.470588
61
0.691843
gdslang
566c459b238949bf12d89935e7cc6cdd7b7edd7f
917
cpp
C++
old application/application/src/ReSyLib/periphery/actor/LED.cpp
deeply-embedded/Servo
606b13cd079337dd5bba50827b623561fc578cae
[ "CC0-1.0" ]
null
null
null
old application/application/src/ReSyLib/periphery/actor/LED.cpp
deeply-embedded/Servo
606b13cd079337dd5bba50827b623561fc578cae
[ "CC0-1.0" ]
null
null
null
old application/application/src/ReSyLib/periphery/actor/LED.cpp
deeply-embedded/Servo
606b13cd079337dd5bba50827b623561fc578cae
[ "CC0-1.0" ]
1
2021-04-25T18:26:05.000Z
2021-04-25T18:26:05.000Z
// // Created by marc on 26.10.15. // #include "./LED.h" #include <memory> namespace RSL { /** * Constructor of the LED. */ LED::LED(const GPIOPin pin) { //TODO : Check if casting possible _gpio_d = move(unique_ptr<GPIO_Digital>(static_cast<GPIO_Digital*>(HWManager::getInstance().createGPIOResource(DIGITAL,pin).r...
15.810345
138
0.63904
deeply-embedded
5673315859b68aca301d9ed51223a17421d9ca1e
2,077
cpp
C++
tests/src/Interop/RefInt/RefIntNative.cpp
danmosemsft/coreclr
04a3d11e4eecec2a4b7dcc81ab1575a57e30e3e2
[ "MIT" ]
6
2017-09-22T06:55:45.000Z
2021-07-02T07:07:08.000Z
tests/src/Interop/RefInt/RefIntNative.cpp
danmosemsft/coreclr
04a3d11e4eecec2a4b7dcc81ab1575a57e30e3e2
[ "MIT" ]
2
2018-07-13T00:48:13.000Z
2019-02-27T16:19:30.000Z
tests/src/Interop/RefInt/RefIntNative.cpp
danmosemsft/coreclr
04a3d11e4eecec2a4b7dcc81ab1575a57e30e3e2
[ "MIT" ]
2
2019-02-03T12:50:05.000Z
2021-11-10T07:28:14.000Z
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include <xplatform.h> #include <stdio.h> #include <stdlib.h> const int iManaged = 10; const int iNative = 11; ex...
24.435294
95
0.742417
danmosemsft
56744a4d58b5dcef39ab15c599ef6742ccb9c8b2
1,562
cpp
C++
c++/leetcode/1146-Snapshot_Array-M.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
c++/leetcode/1146-Snapshot_Array-M.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
c++/leetcode/1146-Snapshot_Array-M.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
// 1146 Snapshot Array // https://leetcode.com/problems/snapshot-array // version: 1; create time: 2019-12-12 20:22:57; /* class SnapshotArray { private: int snap_id_; std::map<int, int> changes_; std::vector<std::map<int, int>> tree_vec_; public: SnapshotArray(int length) : snap_id_(0), changes_(), t...
21.39726
76
0.540973
levendlee
56748b9c90200e39616b3c55882b155437a9dfd2
607
cpp
C++
CodechefCodes/CK87MEDI.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
CodechefCodes/CK87MEDI.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
CodechefCodes/CK87MEDI.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
//Debashish Roy #include<bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define loop(k) for(i=0;i<k;++i) #define loop2(k) for(j=0;j<k;++j) #define mod 1000000007 using namespace std; int main() { std::ios::sync_with_stdio(false); cin.tie(NULL); int t=1,i=0,j=0; cin>>t; wh...
18.393939
37
0.484349
debashish05
5679001d59aa5fdc020968766659138fffe1eb6e
1,308
cpp
C++
AgataEngine/Renderer/IndexBuffer.cpp
Prz-Ellam/AgataEngine
3f4f7ad642ac1a8ceee97e8f02f22f792e009e23
[ "ADSL" ]
null
null
null
AgataEngine/Renderer/IndexBuffer.cpp
Prz-Ellam/AgataEngine
3f4f7ad642ac1a8ceee97e8f02f22f792e009e23
[ "ADSL" ]
null
null
null
AgataEngine/Renderer/IndexBuffer.cpp
Prz-Ellam/AgataEngine
3f4f7ad642ac1a8ceee97e8f02f22f792e009e23
[ "ADSL" ]
null
null
null
#include "IndexBuffer.h" #include <GL/glew.h> namespace Agata { IndexBuffer::IndexBuffer(const void* data, size_t size) { glGenBuffers(1, &m_ID); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_ID); glBufferData(GL_ELEMENT_ARRAY_BUFFER, size, data, GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); } In...
19.818182
76
0.737003
Prz-Ellam
567b782aefd4aa5b3148397b7c6b7832fa2a4883
2,341
cc
C++
helpers/src/camera.cc
danem/SimpleGL
aa9e1a1b5ac8de0a294b5e1f3e3146aec4de4251
[ "MIT" ]
3
2017-10-10T21:19:07.000Z
2022-01-14T02:15:03.000Z
helpers/src/camera.cc
danem/SimpleGL
aa9e1a1b5ac8de0a294b5e1f3e3146aec4de4251
[ "MIT" ]
null
null
null
helpers/src/camera.cc
danem/SimpleGL
aa9e1a1b5ac8de0a294b5e1f3e3146aec4de4251
[ "MIT" ]
null
null
null
#include <SimpleGL/utils.h> #include <SimpleGL/helpers/camera.h> #include "glm/ext.hpp" using namespace sgl; void CameraBase::updateViewMatrix () { viewMatrix = glm::lookAt(position, looking, up); } void CameraBase::update () { updateViewMatrix(); } float * CameraBase::getView () { return glm::value_ptr...
26.303371
105
0.658266
danem
56814c9a7108e85fa100db51603c8ba6aa53b8a1
1,375
cpp
C++
1200/00/1207b.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
1
2020-07-03T15:55:52.000Z
2020-07-03T15:55:52.000Z
1200/00/1207b.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
null
null
null
1200/00/1207b.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
3
2020-10-01T14:55:28.000Z
2021-07-11T11:33:58.000Z
#include <iostream> #include <set> #include <vector> void no_answer() { std::cout << -1 << '\n'; } void answer(const std::set<std::pair<size_t, size_t>>& v) { std::cout << v.size() << '\n'; for (const auto& x : v) std::cout << x.first << ' ' << x.second << '\n'; } void solve(size_t n, size_t m, ...
21.153846
83
0.413818
actium
5682c3c99b215e616c8de8f978962d9adbc51f0a
15,755
cpp
C++
GScroll/GScroll2.cpp
nbclark/gscroll
d1310723d2200557277d34156dbfb6eb5ac37224
[ "Apache-2.0" ]
null
null
null
GScroll/GScroll2.cpp
nbclark/gscroll
d1310723d2200557277d34156dbfb6eb5ac37224
[ "Apache-2.0" ]
null
null
null
GScroll/GScroll2.cpp
nbclark/gscroll
d1310723d2200557277d34156dbfb6eb5ac37224
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include <windows.h> #include <soundfile.h> #include <time.h> #include <notify.h> #include <atltime.h> #include <regext.h> #include "GScroll.h" #include "Sensor.h" #include "RPN.h" // Modes // 0 = disabled // 1 = scroll only // 2 = keydown only // 3 = smart mode LRESULT CALLBACK S...
25.493528
172
0.619803
nbclark
5687ebfbf545f1c62dfbd2ccea3d13dd2fdbef5e
2,918
cpp
C++
image_common/image_transport/src/camera_common.cpp
zhj-buffer/ROS2-driver-for-Realsense
936cf27be4e7dc3d699ff99499e72ea8638cc622
[ "Apache-2.0" ]
null
null
null
image_common/image_transport/src/camera_common.cpp
zhj-buffer/ROS2-driver-for-Realsense
936cf27be4e7dc3d699ff99499e72ea8638cc622
[ "Apache-2.0" ]
null
null
null
image_common/image_transport/src/camera_common.cpp
zhj-buffer/ROS2-driver-for-Realsense
936cf27be4e7dc3d699ff99499e72ea8638cc622
[ "Apache-2.0" ]
null
null
null
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2009, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
33.54023
82
0.67135
zhj-buffer
568b552c909804bc809a84ffd5d7910bb2c40156
740
cpp
C++
sem1/hw9/hw9.1/hw9.1/main.cpp
Daria-Donina/Homework
8853fb65c7a0ad62556a49d12908098af9caf7ed
[ "Apache-2.0" ]
1
2018-11-29T11:12:51.000Z
2018-11-29T11:12:51.000Z
sem1/hw9/hw9.1/hw9.1/main.cpp
Daria-Donina/Homework
8853fb65c7a0ad62556a49d12908098af9caf7ed
[ "Apache-2.0" ]
null
null
null
sem1/hw9/hw9.1/hw9.1/main.cpp
Daria-Donina/Homework
8853fb65c7a0ad62556a49d12908098af9caf7ed
[ "Apache-2.0" ]
null
null
null
#include "hashtable.h" #include "test.h" #include <fstream> #include <iostream> using namespace std; using namespace hashTable; int main() { test(); HashTable *hashTable = createHashtable(); ifstream inputData("inputData.txt"); if (!inputData) { return 1; } hashTable::add(inputData, hashTable); inputData....
23.125
94
0.697297
Daria-Donina
568de27e95b842081c99bfc1154ae8e7bc67cfe1
283
hpp
C++
sdk/include/XWordConer.hpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
sdk/include/XWordConer.hpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
sdk/include/XWordConer.hpp
qianxj/XExplorer
00e326da03ffcaa21115a2345275452607c6bab5
[ "MIT" ]
null
null
null
#pragma once namespace Hxsoft{ namespace XFrame{ namespace XOffice {namespace XWord { class XWordConer { public: XWordConer(void); ~XWordConer(void); public: RECT FRect; int SetFRect(RECT &rc); public: virtual int DoDraw(HDC hPaintDC,RECT * pDrawRect=NULL); }; }}}}
16.647059
70
0.710247
qianxj
5690d23cf23c2ccf6a0a05dcb4355329fe33a58f
30,176
cpp
C++
plainxlib/src/sprite.cpp
rustamserg/PLAINX
59b85f97918b9fe2091460ac6429fc1766e245c7
[ "MIT" ]
null
null
null
plainxlib/src/sprite.cpp
rustamserg/PLAINX
59b85f97918b9fe2091460ac6429fc1766e245c7
[ "MIT" ]
null
null
null
plainxlib/src/sprite.cpp
rustamserg/PLAINX
59b85f97918b9fe2091460ac6429fc1766e245c7
[ "MIT" ]
null
null
null
#include "plainx.h" #include "sprite.h" #define TS_NONE 0x00000001 #define TS_CREATED 0x00000002 #define TS_STRETCH 0x00000004 #define TS_ROTATE 0x00000008 CSprite::CSprite() { strcpy(m_szName, ""); strcpy(m_szData, ""); strcpy(m_szBlendData, ""); m_iColorKey = 0; m_bIsUseSysFontRM = FALSE; m_ptWPos...
24.836214
98
0.509842
rustamserg
56915422bcfda375510be4c22de4cfc4662a4f27
13,296
cpp
C++
bin/windows/cpp/obj/src/com/haxepunk/Mask.cpp
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
bin/windows/cpp/obj/src/com/haxepunk/Mask.cpp
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
bin/windows/cpp/obj/src/com/haxepunk/Mask.cpp
DrSkipper/twogames
916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b
[ "MIT" ]
null
null
null
#include <hxcpp.h> #ifndef INCLUDED_IMap #include <IMap.h> #endif #ifndef INCLUDED_Type #include <Type.h> #endif #ifndef INCLUDED_com_haxepunk_Entity #include <com/haxepunk/Entity.h> #endif #ifndef INCLUDED_com_haxepunk_HXP #include <com/haxepunk/HXP.h> #endif #ifndef INCLUDED_com_haxepunk_Mask #include <com/haxepunk/...
29.350993
607
0.687274
DrSkipper
569a394049e9a3f21e8ef742556d2802c5606ef2
5,008
cpp
C++
src/units.cpp
jusirkka/qutenav
09024f4506f12bfecdfe39cd9155583d71233e66
[ "ISC", "X11", "MIT" ]
2
2021-07-09T14:13:55.000Z
2022-02-11T06:41:03.000Z
src/units.cpp
jusirkka/qutenav
09024f4506f12bfecdfe39cd9155583d71233e66
[ "ISC", "X11", "MIT" ]
null
null
null
src/units.cpp
jusirkka/qutenav
09024f4506f12bfecdfe39cd9155583d71233e66
[ "ISC", "X11", "MIT" ]
2
2022-02-11T06:41:05.000Z
2022-03-17T09:29:46.000Z
/* -*- coding: utf-8-unix -*- * * File: src/units.cpp * * Copyright (C) 2021 Jukka Sirkka * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at you...
26.219895
91
0.69369
jusirkka
56a35a4318b1293744b98197601641be969ef7dd
401
cpp
C++
Andromeda/Threading/Mutex.cpp
DrakonPL/Andromeda-Lib
47cd3b74a736b21050222ef57c45e326304e85a6
[ "MIT", "Unlicense" ]
1
2020-04-01T12:19:48.000Z
2020-04-01T12:19:48.000Z
Andromeda/Threading/Mutex.cpp
DrakonPL/Andromeda-Lib
47cd3b74a736b21050222ef57c45e326304e85a6
[ "MIT", "Unlicense" ]
null
null
null
Andromeda/Threading/Mutex.cpp
DrakonPL/Andromeda-Lib
47cd3b74a736b21050222ef57c45e326304e85a6
[ "MIT", "Unlicense" ]
1
2020-12-25T18:15:37.000Z
2020-12-25T18:15:37.000Z
#include <Andromeda/Threading/Mutex.h> #ifdef ANDROMEDA_PC #include <Andromeda/Threading/Win32/WinMutex.h> #endif namespace Andromeda { namespace Threading { Mutex::Mutex() { #ifdef ANDROMEDA_PC _mutex = new WinMutex(); #endif } Mutex::~Mutex() { delete _mutex; } void Mutex::Lock() {...
11.457143
47
0.620948
DrakonPL
56a4717e18fb52779789b8ae0164014c2045c7ba
512
hpp
C++
CustomEngine/CustomEngine/Logic/Game.hpp
kaimelis/LuaGame
7a6220a90c00c539b515f36b563d1542b49c1d1b
[ "MIT" ]
null
null
null
CustomEngine/CustomEngine/Logic/Game.hpp
kaimelis/LuaGame
7a6220a90c00c539b515f36b563d1542b49c1d1b
[ "MIT" ]
null
null
null
CustomEngine/CustomEngine/Logic/Game.hpp
kaimelis/LuaGame
7a6220a90c00c539b515f36b563d1542b49c1d1b
[ "MIT" ]
1
2020-06-29T07:13:57.000Z
2020-06-29T07:13:57.000Z
#ifndef GAME_HPP #define GAME_HPP #include "../Core/Window/Window.hpp" #include"../Core/EventSystem/EventManager.hpp" #include "../Core/StateSystem/StateManager.hpp" #include "../SharedContext.hpp" #include <iostream> class Game { public: Game(); ~Game(); void Update(); void Render(); void LateUpdate(); sf::T...
16
47
0.71875
kaimelis