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
cc6056ef40a2d7da465703d1418ceddd61814b9d
14,006
cpp
C++
main.cpp
LeonardoBanegas99/P3Examen-1_LeonardoBanegas
c194b51a532a83f36f846ead5727d015e446103f
[ "MIT" ]
null
null
null
main.cpp
LeonardoBanegas99/P3Examen-1_LeonardoBanegas
c194b51a532a83f36f846ead5727d015e446103f
[ "MIT" ]
null
null
null
main.cpp
LeonardoBanegas99/P3Examen-1_LeonardoBanegas
c194b51a532a83f36f846ead5727d015e446103f
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include "Piezas.h" using namespace std; void ImprimirTablero(Piezas***); bool win(Piezas***,string,string); int main(){ bool end = false; string nombre1; string nombre2; cout << "Bienvenidos" << endl; cout << "Ingrese Nombre del Jugador 1: " << endl; cin >> nombre1; cout...
25.889094
69
0.487862
LeonardoBanegas99
cc62001e42fe56ed06559029a2e389ad7c7e5b4f
38,071
cpp
C++
Sources/Tools/EPI/GUI/GuiDocument.moc.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
2
2015-04-16T01:05:53.000Z
2019-08-26T07:38:43.000Z
Sources/Tools/EPI/GUI/GuiDocument.moc.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
null
null
null
Sources/Tools/EPI/GUI/GuiDocument.moc.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of ...
37.178711
168
0.535
benkaraban
cc64df48b21af64704a038db920cbc4f0990ef55
3,227
cpp
C++
source/pipeline/pipeline.cpp
AlejandroC1983/cvrtgi
9894fc79d4036a0490dbc194b9d04654574f16d4
[ "Apache-2.0" ]
2
2022-03-25T00:37:25.000Z
2022-03-26T00:13:53.000Z
source/pipeline/pipeline.cpp
AlejandroC1983/cvrtgi
9894fc79d4036a0490dbc194b9d04654574f16d4
[ "Apache-2.0" ]
null
null
null
source/pipeline/pipeline.cpp
AlejandroC1983/cvrtgi
9894fc79d4036a0490dbc194b9d04654574f16d4
[ "Apache-2.0" ]
1
2022-03-02T21:11:29.000Z
2022-03-02T21:11:29.000Z
/* Copyright 2022 Alejandro Cosin & Gustavo Patow 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 in writ...
29.605505
160
0.546638
AlejandroC1983
cc64eab01773c383aac25adff2bfb7f94eedb2ea
2,346
cpp
C++
src/database/overlay/SoXipOverlayActions.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
2
2020-05-21T07:06:07.000Z
2021-06-28T02:14:34.000Z
src/database/overlay/SoXipOverlayActions.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
null
null
null
src/database/overlay/SoXipOverlayActions.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
6
2016-03-21T19:53:18.000Z
2021-06-08T18:06:03.000Z
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
24.185567
81
0.731032
OpenXIP
cc666ef44115c1682dd31a2d49c8c0d1b494e3ed
6,940
cpp
C++
src/source_pipewire.cpp
folkertvanheusden/constatus
7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6
[ "Apache-2.0" ]
5
2021-07-15T11:39:25.000Z
2022-02-25T06:14:58.000Z
src/source_pipewire.cpp
folkertvanheusden/constatus
7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6
[ "Apache-2.0" ]
2
2021-09-27T11:13:42.000Z
2021-10-10T01:02:39.000Z
src/source_pipewire.cpp
folkertvanheusden/constatus
7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6
[ "Apache-2.0" ]
2
2021-06-11T09:19:47.000Z
2022-02-18T22:22:01.000Z
// (C) 2017-2021 by folkert van heusden, released under Apache License v2.0 // // Based on example code from https://docs.pipewire.org/page_tutorial5.html #include "config.h" #if HAVE_PIPEWIRE == 1 #include <assert.h> #include <stdio.h> #include <cstring> #include <unistd.h> #include "error.h" #include "http_client.h...
30.844444
306
0.697695
folkertvanheusden
cc66ddeabb6ca48ebaca18e0316bd7db6abd3bd5
8,624
cpp
C++
PIPS-NLP/Test/parmodel1yk.cpp
jalving/PIPS
62f664237447c7ce05a62552952c86003d90e68f
[ "BSD-3-Clause-LBNL" ]
65
2016-02-04T18:03:39.000Z
2022-03-24T08:59:38.000Z
PIPS-NLP/Test/parmodel1yk.cpp
jalving/PIPS
62f664237447c7ce05a62552952c86003d90e68f
[ "BSD-3-Clause-LBNL" ]
34
2015-11-17T04:26:51.000Z
2020-09-24T16:00:22.000Z
PIPS-NLP/Test/parmodel1yk.cpp
jalving/PIPS
62f664237447c7ce05a62552952c86003d90e68f
[ "BSD-3-Clause-LBNL" ]
26
2015-10-15T20:27:52.000Z
2021-07-14T08:13:34.000Z
#include "./Drivers/parallelPipsNlp_C_Callback.h" #include "mpi.h" #include "global_var.h" #include <iostream> #include <cassert> #include <math.h> #ifdef TIMING double timeFromAMPL; double probGenTime; double PartSolver_GenTime; double PartSolver_SolTime; double PartSolver_FactTime; int call_sol_Times; ...
24.089385
179
0.521452
jalving
cc69d87c904b813395052ed05afb0050213c16d3
1,310
cc
C++
weblayer/browser/tts_environment_android_impl.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
weblayer/browser/tts_environment_android_impl.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
weblayer/browser/tts_environment_android_impl.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2020 The Chromium 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 "weblayer/browser/tts_environment_android_impl.h" #include "base/callback.h" namespace weblayer { TtsEnvironmentAndroidImpl::TtsEnvironmentAnd...
35.405405
78
0.780916
zealoussnow
cc6fc419f654e8f2841d67a3330699198cf3ef59
10,308
cpp
C++
pugl/pugl_win.cpp
thunderox/stegosaurus
dc8fd7a2d213358db00eadea6a25c323b7925098
[ "0BSD" ]
13
2016-05-05T12:07:04.000Z
2021-08-03T17:10:00.000Z
pugl/pugl_win.cpp
thunderox/stegosaurus
dc8fd7a2d213358db00eadea6a25c323b7925098
[ "0BSD" ]
14
2016-09-09T14:25:32.000Z
2021-07-27T18:20:14.000Z
pugl/pugl_win.cpp
thunderox/stegosaurus
dc8fd7a2d213358db00eadea6a25c323b7925098
[ "0BSD" ]
8
2016-09-09T14:32:16.000Z
2020-06-19T04:03:28.000Z
/* Copyright 2012-2014 David Robillard <http://drobilla.net> Permission to use, copy, modify, and/or 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. THIS SOFTWARE IS PROVIDED "AS IS" AND...
23.588101
77
0.705957
thunderox
cc730640681fe676b5dca79343d6e9b592bd51eb
7,781
cpp
C++
tools/Daemon.cpp
highinit/hiaux
39af5d9572ab4a16177fa31756cc0e0369090a3e
[ "BSD-2-Clause" ]
null
null
null
tools/Daemon.cpp
highinit/hiaux
39af5d9572ab4a16177fa31756cc0e0369090a3e
[ "BSD-2-Clause" ]
null
null
null
tools/Daemon.cpp
highinit/hiaux
39af5d9572ab4a16177fa31756cc0e0369090a3e
[ "BSD-2-Clause" ]
null
null
null
#include "Daemon.h" void Daemon::fallDown(std::string _s) { std::cout << _s << std::endl; exit(1); } void Daemon::onFinished() { } void Daemon::parseConfig(const std::string &_config_file) { try { m_config = LoadConf::load(_config_file, m_required_params, m_optional_params); } catch (const std::string s) ...
21.201635
113
0.629868
highinit
cc76d590d6be67978a7183a651032ae18135e3fd
3,438
cpp
C++
interface/cli/cli.cpp
Jayveer/Gcx
28b3926ad1b441e9e93b9db5e24c1b578a595e38
[ "MIT" ]
5
2021-10-20T23:49:01.000Z
2022-03-15T17:53:39.000Z
interface/cli/cli.cpp
Jayveer/Gcx
28b3926ad1b441e9e93b9db5e24c1b578a595e38
[ "MIT" ]
null
null
null
interface/cli/cli.cpp
Jayveer/Gcx
28b3926ad1b441e9e93b9db5e24c1b578a595e38
[ "MIT" ]
null
null
null
#include "cli.h" CLI::CLI(int argc, char** argv) { this->argc = argc; this->argv = argv; } CLI::~CLI() { } void CLI::processCommands() { while (currentArg < 4 && isCommand(argv[currentArg])) { setCommand(argv[currentArg]); currentArg++; } } void CLI::setCommand(char* arg) { if (!strcmp(arg, "-MGS4") || !...
21.354037
117
0.646306
Jayveer
cc78de2e14edd5a2e5225b2e65aece866d9edf2f
328,825
inl
C++
src/ucd/composition.g.inl
libogonek/ogonek
46b7edbf6b7ff89892f5ba25494749b442e771b3
[ "CC0-1.0" ]
25
2016-10-21T12:37:23.000Z
2021-02-22T05:46:46.000Z
src/ucd/composition.g.inl
libogonek/ogonek
46b7edbf6b7ff89892f5ba25494749b442e771b3
[ "CC0-1.0" ]
null
null
null
src/ucd/composition.g.inl
libogonek/ogonek
46b7edbf6b7ff89892f5ba25494749b442e771b3
[ "CC0-1.0" ]
4
2016-09-05T10:23:18.000Z
2020-07-09T19:37:37.000Z
// Ogonek // // Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. // // You s...
407.971464
720
0.452955
libogonek
cc7cc66411182f0cb4d8c7007a0f6cddb171495b
1,588
cpp
C++
plugins/generationRulesTool/generator/generatorForComplexIdentifierNode.cpp
anastasia143/qreal
9bd224b41e569c9c50ab88848a5746a010c65ad7
[ "Apache-2.0" ]
39
2015-01-26T16:18:43.000Z
2021-12-20T23:36:41.000Z
plugins/generationRulesTool/generator/generatorForComplexIdentifierNode.cpp
anastasia143/qreal
9bd224b41e569c9c50ab88848a5746a010c65ad7
[ "Apache-2.0" ]
1,248
2019-02-21T19:32:09.000Z
2022-03-29T16:50:04.000Z
plugins/generationRulesTool/generator/generatorForComplexIdentifierNode.cpp
anastasia143/qreal
9bd224b41e569c9c50ab88848a5746a010c65ad7
[ "Apache-2.0" ]
58
2015-03-03T12:57:28.000Z
2020-05-09T15:54:42.000Z
/* Copyright 2007-2015 QReal Research Group * * 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...
41.789474
100
0.799118
anastasia143
cc81d02666e9db790a2d94ac45cd231550657bde
2,130
cpp
C++
TP3/self_assembly_dfs_stack_wrong.cpp
Mael-zys/INF280
a4e4ce3de847d0eeadd5e52da7ec3c5dac6016c9
[ "MIT" ]
null
null
null
TP3/self_assembly_dfs_stack_wrong.cpp
Mael-zys/INF280
a4e4ce3de847d0eeadd5e52da7ec3c5dac6016c9
[ "MIT" ]
null
null
null
TP3/self_assembly_dfs_stack_wrong.cpp
Mael-zys/INF280
a4e4ce3de847d0eeadd5e52da7ec3c5dac6016c9
[ "MIT" ]
null
null
null
//DFS to detect if a cycle exists #include<stdlib.h> #include<iostream> #include<vector> #include<unordered_map> #include<string> #include<stack> #include<unordered_set> using namespace std; //change the molecule type from string to int, if t = A+, change it to 0, t = A-, change it to 1; int moleculeType(string t) { ...
25.97561
109
0.479343
Mael-zys
cc848079a7406796427702df563ac9f327669fa0
2,496
cpp
C++
acmicpc/cpp/3190.cpp
hyeongyun0916/Algorithm
75f77b2500bb08f24706a8be26497aeeebd2da4f
[ "MIT" ]
1
2018-12-21T01:33:05.000Z
2018-12-21T01:33:05.000Z
acmicpc/cpp/3190.cpp
hyeongyun0916/Algorithm
75f77b2500bb08f24706a8be26497aeeebd2da4f
[ "MIT" ]
null
null
null
acmicpc/cpp/3190.cpp
hyeongyun0916/Algorithm
75f77b2500bb08f24706a8be26497aeeebd2da4f
[ "MIT" ]
null
null
null
#include <iostream> #include <queue> #include <tuple> #include <set> #include <vector> #include <string> #include <map> using namespace std; // template class priority_queue<Node>; struct Point { int x; int y; Point(int _x, int _y) : x(_x), y(_y) {} bool operator<(const Point &rhs) const { ...
20.129032
107
0.469551
hyeongyun0916
cc8629e79590ebec8119007671166d3648e2a614
9,268
cpp
C++
foedus_code/tests-core/src/foedus/xct/test_xct_mcs_impl_ww.cpp
sam1016yu/cicada-exp-sigmod2017
64e582370076b2923d37b279d1c32730babc15f8
[ "Apache-2.0" ]
null
null
null
foedus_code/tests-core/src/foedus/xct/test_xct_mcs_impl_ww.cpp
sam1016yu/cicada-exp-sigmod2017
64e582370076b2923d37b279d1c32730babc15f8
[ "Apache-2.0" ]
null
null
null
foedus_code/tests-core/src/foedus/xct/test_xct_mcs_impl_ww.cpp
sam1016yu/cicada-exp-sigmod2017
64e582370076b2923d37b279d1c32730babc15f8
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP. * 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 2 of the License, or (at your option) * any later versi...
30.486842
96
0.620954
sam1016yu
cc872e8ea2f7054c7effdcc76a6ad5d32afcac1f
174
hpp
C++
summer-librender/scene/gltf.hpp
imallett/summer-renderer
ab7709c0da0df4b5bfde497d59d621728b86eef9
[ "MIT" ]
4
2019-12-12T04:57:11.000Z
2020-07-07T16:43:25.000Z
summer-librender/scene/gltf.hpp
imallett/summer-renderer
ab7709c0da0df4b5bfde497d59d621728b86eef9
[ "MIT" ]
null
null
null
summer-librender/scene/gltf.hpp
imallett/summer-renderer
ab7709c0da0df4b5bfde497d59d621728b86eef9
[ "MIT" ]
null
null
null
#pragma once #include "../stdafx.hpp" namespace Summer { namespace Scene { class SceneGraph; SceneGraph* load_new_gltf(std::string const& path); }}
10.235294
52
0.637931
imallett
cc8904b43773f833ff389dc2c6020dd0ce752fdd
922
cpp
C++
compat.cpp
learnopx/ops-openbfdd
b14fd8d7c9cb0af05f555b840da0bc1cca478ae5
[ "BSD-3-Clause" ]
59
2015-01-14T15:49:52.000Z
2022-03-04T21:54:47.000Z
compat.cpp
learnopx/ops-openbfdd
b14fd8d7c9cb0af05f555b840da0bc1cca478ae5
[ "BSD-3-Clause" ]
3
2015-06-19T12:13:30.000Z
2020-08-10T16:08:36.000Z
compat.cpp
learnopx/ops-openbfdd
b14fd8d7c9cb0af05f555b840da0bc1cca478ae5
[ "BSD-3-Clause" ]
31
2015-01-01T20:40:50.000Z
2021-05-24T09:04:38.000Z
/************************************************************** * Copyright (c) 2010-2013, Dynamic Network Services, Inc. * Jake Montgomery (jmontgomery@dyn.com) & Tom Daly (tom@dyn.com) * Distributed under the FreeBSD License - see LICENSE ***************************************************************/ #include "stan...
27.117647
64
0.62039
learnopx
cc894738a55bcc7209709df3ac3ca31665cf4a48
466
cpp
C++
src/inspector_editor.cpp
darilrt/ImTex
5512f40d45e3551f35981906771755b857aa7766
[ "MIT" ]
null
null
null
src/inspector_editor.cpp
darilrt/ImTex
5512f40d45e3551f35981906771755b857aa7766
[ "MIT" ]
null
null
null
src/inspector_editor.cpp
darilrt/ImTex
5512f40d45e3551f35981906771755b857aa7766
[ "MIT" ]
null
null
null
#include "inspector_editor.h" #include "node_editor.h" #include "node.h" InspectorEditor::InspectorEditor(NodeEditor* _nodeEditor) { open = true; title = "Inspector"; nodeEditor = _nodeEditor; } void InspectorEditor::OnDraw() { if (nodeEditor->selectedNodes.size()) { nodeEditor->sele...
20.26087
59
0.654506
darilrt
cc8c05160a42b7015ab7e78223d988649fcec9c5
4,776
cpp
C++
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp
eklipse2k8/XamlBehaviors
bbb557689ae40b2786c68ad6c9be7219a22b4563
[ "MIT" ]
null
null
null
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp
eklipse2k8/XamlBehaviors
bbb557689ae40b2786c68ad6c9be7219a22b4563
[ "MIT" ]
null
null
null
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp
eklipse2k8/XamlBehaviors
bbb557689ae40b2786c68ad6c9be7219a22b4563
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "BehaviorCollection.h" namespace winrt { using namespace Windows::ApplicationModel; using namespace Windows::Foundation::Collections; using na...
25.269841
133
0.651801
eklipse2k8
cc934eef2dcf518daf8b6127e1117d8e2d36691a
79,849
hpp
C++
include/hana23/move_only_function.hpp
zhihaoy/polyfill-23
4195f2860fa0edd9755839444bbc0c1e16d1ece6
[ "Apache-2.0" ]
6
2022-01-17T19:31:06.000Z
2022-01-22T22:05:43.000Z
include/hana23/move_only_function.hpp
zhihaoy/polyfill-23
4195f2860fa0edd9755839444bbc0c1e16d1ece6
[ "Apache-2.0" ]
4
2022-01-18T02:31:46.000Z
2022-02-03T09:35:41.000Z
include/hana23/move_only_function.hpp
zhihaoy/polyfill-23
4195f2860fa0edd9755839444bbc0c1e16d1ece6
[ "Apache-2.0" ]
1
2022-01-18T01:48:48.000Z
2022-01-18T01:48:48.000Z
#ifndef HANA23_MOVE_ONLY_FUNCTION_HPP #define HANA23_MOVE_ONLY_FUNCTION_HPP #include "utility/move_only_function.hpp" #include <functional> #include <iostream> #include <memory> #include <type_traits> #include <utility> #include <cassert> #include <cstddef> namespace hana23 { template <typename T> class move_only_fu...
34.152695
316
0.710053
zhihaoy
cc93d87c175ab694c886fc41f376dcbed40487e5
378
cpp
C++
Beginner/P1837.cpp
Muntaha-Islam0019/URI-Online-Judge-Solutions
9db9cdfffe81378512e406eb14cd8525f0e013c3
[ "MIT" ]
1
2019-08-28T21:19:21.000Z
2019-08-28T21:19:21.000Z
Beginner/P1837.cpp
Muntaha-Islam0019/URI-Online-Judge-Solutions
9db9cdfffe81378512e406eb14cd8525f0e013c3
[ "MIT" ]
null
null
null
Beginner/P1837.cpp
Muntaha-Islam0019/URI-Online-Judge-Solutions
9db9cdfffe81378512e406eb14cd8525f0e013c3
[ "MIT" ]
null
null
null
#include <stdio.h> int main() { int a,b,c,d,e,f,q,r; scanf("%d%d", &a, &b); if(a<0) { e=b; if(b<0) e=b*-1; for(r=0; r<e; r++) { f=a-r; if(f%b==0) break; } q=f/b; } else { q=a/b; ...
14
26
0.277778
Muntaha-Islam0019
cc95c403757a1f50087ed2999725d89e5c5424ed
980
cpp
C++
Application/src/Animation.cpp
kth0522/CS380_HW2
a182c0a71112160a94461fae21fd6ba0a2ab14dc
[ "MIT" ]
null
null
null
Application/src/Animation.cpp
kth0522/CS380_HW2
a182c0a71112160a94461fae21fd6ba0a2ab14dc
[ "MIT" ]
null
null
null
Application/src/Animation.cpp
kth0522/CS380_HW2
a182c0a71112160a94461fae21fd6ba0a2ab14dc
[ "MIT" ]
null
null
null
#include <Animation.hpp> Animation::Animation() { _objects = std::vector<Engine::RenderObject*>(); } Animation::~Animation() { _objects.clear(); } void Animation::AddObject(Engine::RenderObject* object) { _objects.push_back(object); } void Animation::Animate(Engine::Camera* cam, float deltaTime) { /...
28.823529
142
0.60102
kth0522
cc96872a0808fe25d9e825f28f5a9294c3fd128a
821
cpp
C++
src/litequarks/src/LQColor.cpp
valfvo/punyduck
53bf87babef39023574881b73f141611274b2842
[ "MIT" ]
2
2020-01-23T18:16:57.000Z
2022-03-09T15:01:49.000Z
src/litequarks/src/LQColor.cpp
valfvo/punyduck
53bf87babef39023574881b73f141611274b2842
[ "MIT" ]
null
null
null
src/litequarks/src/LQColor.cpp
valfvo/punyduck
53bf87babef39023574881b73f141611274b2842
[ "MIT" ]
2
2020-01-23T14:07:13.000Z
2020-04-01T00:48:48.000Z
#include <litequarks/LQColor.hpp> //constructeurs LQColor::LQColor() : m_r(0.0f), m_g(0.0f), m_b(0.0f), m_a(1.0f) { } LQColor::LQColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a) : m_r(r), m_g(g), m_b(b), m_a(a) { } LQColor::LQColor(GLint r, GLint g, GLint b, GLint a) : m_r(r/255.0f), m_g(g/255.0f), m_b(b/255.0f), m...
12.828125
60
0.610231
valfvo
cca3fa8afe6132e0df085b326f2e70d530071a65
734
hpp
C++
table/include/item.hpp
TheAspiringHacker/Asparserations
2962c685f5aa36fde966a1ea2a4549401c39ba37
[ "MIT" ]
12
2017-08-27T21:12:30.000Z
2018-09-17T05:42:42.000Z
table/include/item.hpp
TheAspiringHacker/Asparserations
2962c685f5aa36fde966a1ea2a4549401c39ba37
[ "MIT" ]
1
2021-06-16T20:44:33.000Z
2021-06-16T20:44:33.000Z
table/include/item.hpp
TheAspiringHacker/Asparserations
2962c685f5aa36fde966a1ea2a4549401c39ba37
[ "MIT" ]
1
2021-07-27T07:42:26.000Z
2021-07-27T07:42:26.000Z
#ifndef ASPARSERATIONS_TABLE_ITEM_H_ #define ASPARSERATIONS_TABLE_ITEM_H_ namespace asparserations { namespace grammar { class Production; class Symbol; class Token; } namespace table { struct Item { Item(const asparserations::grammar::Production&, unsigned short int, const asparser...
24.466667
74
0.701635
TheAspiringHacker
cca4600010be8a91934b65a6ce1975302385312d
935
cpp
C++
server/ThreadPrioWindows.cpp
kerel-fs/SoapyRemote
29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f
[ "BSL-1.0" ]
89
2015-09-13T14:48:08.000Z
2022-03-26T17:32:18.000Z
server/ThreadPrioWindows.cpp
kerel-fs/SoapyRemote
29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f
[ "BSL-1.0" ]
77
2015-09-17T05:50:45.000Z
2022-03-09T14:53:58.000Z
server/ThreadPrioWindows.cpp
kerel-fs/SoapyRemote
29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f
[ "BSL-1.0" ]
24
2015-09-26T04:54:36.000Z
2022-02-05T15:10:08.000Z
// Copyright (c) 2015-2015 Josh Blum // SPDX-License-Identifier: BSL-1.0 #include "ThreadPrioHelper.hpp" #include <windows.h> std::string setThreadPrio(const double prio) { int nPriority(THREAD_PRIORITY_NORMAL); if (prio > 0) { if (prio > +0.75) nPriority = THREAD_PRIORITY_TIME_CRITICAL; ...
32.241379
73
0.637433
kerel-fs
cca5e8690594ea81e225f275df6fca4da40ae123
802
cpp
C++
DynamicProgramming/LongestIncreSequence.cpp
sounishnath003/CPP-for-beginner
d4755ab4ae098d63c9a0666d8eb4d152106d4a20
[ "MIT" ]
4
2020-05-14T04:41:04.000Z
2021-06-13T06:42:03.000Z
DynamicProgramming/LongestIncreSequence.cpp
sounishnath003/CPP-for-beginner
d4755ab4ae098d63c9a0666d8eb4d152106d4a20
[ "MIT" ]
null
null
null
DynamicProgramming/LongestIncreSequence.cpp
sounishnath003/CPP-for-beginner
d4755ab4ae098d63c9a0666d8eb4d152106d4a20
[ "MIT" ]
null
null
null
#include<iostream> #include<bits/stdc++.h> using namespace std ; void calculateLIS(vector<int> &vect) { vector<vector<int>> LongestSequence(vect.size()) ; LongestSequence[0].push_back(vect[0]) ; for (size_t i = 1; i < vect.size(); i++) { for (size_t j = 0; j < i; j++) { ...
19.095238
57
0.458853
sounishnath003
cca8372077eeff99d09e5fc7b80353d9ace025d2
12,422
hpp
C++
libiwl/include/iwl/drawing/brush.hpp
dlarudgus20/ikh-widget-library
cdf25127d87d08cab6ddde13fb6d2860ab5f431d
[ "BSD-2-Clause" ]
null
null
null
libiwl/include/iwl/drawing/brush.hpp
dlarudgus20/ikh-widget-library
cdf25127d87d08cab6ddde13fb6d2860ab5f431d
[ "BSD-2-Clause" ]
null
null
null
libiwl/include/iwl/drawing/brush.hpp
dlarudgus20/ikh-widget-library
cdf25127d87d08cab6ddde13fb6d2860ab5f431d
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) 2014, Im Kyeong-Hyeon // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this // list of conditio...
38.81875
94
0.699887
dlarudgus20
ccad9ffa6def5558a8c19c58155f46c68de41e04
1,549
hpp
C++
fumarole_localization/include/pipeline/HistogramAnalysis.hpp
asadahmedde/advanced-project-2
748f8f9a575cf926646201cecb0e5a8d3bdaf377
[ "MIT" ]
null
null
null
fumarole_localization/include/pipeline/HistogramAnalysis.hpp
asadahmedde/advanced-project-2
748f8f9a575cf926646201cecb0e5a8d3bdaf377
[ "MIT" ]
null
null
null
fumarole_localization/include/pipeline/HistogramAnalysis.hpp
asadahmedde/advanced-project-2
748f8f9a575cf926646201cecb0e5a8d3bdaf377
[ "MIT" ]
null
null
null
// // HistogramAnalysis.hpp // Pipeline element that determines the heat intensity bins // Using the histogram of the intensities in the thermal image // // Note: Only supports a greyscale thermal image // #ifndef FUMAROLE_LOCALIZATION_HISTOGRAMANALYSIS_HPP #define FUMAROLE_LOCALIZATION_HISTOGRAMANALYSIS_HPP #include...
36.880952
194
0.721756
asadahmedde
ccb0038a8f788eb78b736b85b1628b2946d40c23
90,100
cpp
C++
src/types/String.cpp
pfedick/pplib
afd01f0df6e2e63bb12bfef0a0667464b0845d1f
[ "BSD-2-Clause" ]
1
2019-10-27T15:01:57.000Z
2019-10-27T15:01:57.000Z
src/types/String.cpp
pfedick/pplib
afd01f0df6e2e63bb12bfef0a0667464b0845d1f
[ "BSD-2-Clause" ]
5
2016-02-01T19:03:33.000Z
2022-02-06T15:27:01.000Z
src/types/String.cpp
pfedick/pplib
afd01f0df6e2e63bb12bfef0a0667464b0845d1f
[ "BSD-2-Clause" ]
1
2019-09-18T09:52:18.000Z
2019-09-18T09:52:18.000Z
/******************************************************************************* * This file is part of "Patrick's Programming Library", Version 7 (PPL7). * Web: http://www.pfp.de/ppl/ * * $Author$ * $Revision$ * $Date$ * $Id$ * ******************************************************************************* *...
25.654897
121
0.702897
pfedick
ccb1240004e6be6d3cc377304daa60bd98a3d1c2
128
cpp
C++
CodeBase/CodeBase/Module.cpp
Maxito-Personal-Projects/CodeBase
dc38e4c6d14db2394af515461c4f62937bc4d2c0
[ "MIT" ]
null
null
null
CodeBase/CodeBase/Module.cpp
Maxito-Personal-Projects/CodeBase
dc38e4c6d14db2394af515461c4f62937bc4d2c0
[ "MIT" ]
null
null
null
CodeBase/CodeBase/Module.cpp
Maxito-Personal-Projects/CodeBase
dc38e4c6d14db2394af515461c4f62937bc4d2c0
[ "MIT" ]
null
null
null
#include "Module.h" Module::Module(string _name, bool _active) { name = _name; active = _active; } Module::~Module() { }
8.533333
42
0.640625
Maxito-Personal-Projects
ccb2db85bf68ba4ea3b7eb01bf223124e896ac27
998
cpp
C++
test/src/test_derived_from.cpp
myoukaku/cpp14_concepts
71ad57009a0e7b2cac267a6880ad56a057cdbfff
[ "MIT" ]
null
null
null
test/src/test_derived_from.cpp
myoukaku/cpp14_concepts
71ad57009a0e7b2cac267a6880ad56a057cdbfff
[ "MIT" ]
null
null
null
test/src/test_derived_from.cpp
myoukaku/cpp14_concepts
71ad57009a0e7b2cac267a6880ad56a057cdbfff
[ "MIT" ]
null
null
null
/** * @file test_derived_from.cpp * * @brief derived_from のテスト * * @author myoukaku */ #include <cpp14_concepts.hpp> namespace derived_from_test { class A {}; class B: public A {}; class C: private A{}; static_assert(cpp14_concepts::derived_from<A, A> == true, ""); static_assert(cpp14...
29.352941
72
0.683367
myoukaku
ccb7181becd7803060703737b4efe8b2915e85e2
635
cpp
C++
obj.cpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
obj.cpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
obj.cpp
maxime-tournier/cpp
303def38a523f0e5699ef389182974f4f50d10fb
[ "MIT" ]
null
null
null
// -*- compile-command: "c++ -std=c++14 obj.cpp -o obj -lstdc++ -lm -g" -*- #include "obj.hpp" #include <fstream> #include <iostream> int main(int argc, char** argv) { obj::file f; if(argc <= 1) { std::cerr << "usage: " << argv[0] << " <objfile>" << std::endl; return 1; } const std::string filename...
18.676471
75
0.525984
maxime-tournier
ccb97042cd790460065b0b11e54e7eec357464a9
646
cpp
C++
Quick_Sort/C++/James-ZHANG/test_quick_sort.cpp
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
1,184
2015-01-01T14:11:29.000Z
2022-03-21T19:40:47.000Z
Quick_Sort/C++/James-ZHANG/test_quick_sort.cpp
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
89
2015-01-01T15:49:17.000Z
2021-12-05T19:11:38.000Z
Quick_Sort/C++/James-ZHANG/test_quick_sort.cpp
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
388
2015-01-02T03:26:17.000Z
2022-03-24T14:36:10.000Z
/* Test cases for quicksort */ #include "quick_sort.h" #include <iostream> #include <vector> #include <cstdlib> #include <ctime> using namespace std; int main() { srand(time(NULL)); //a trivial test case int myintp[] = {6, 7, 8, 9, 10, 5, 0, 1, 2, 3, 4}; vector<int> a(myintp, myintp + 11); quicksort<int>(a.beg...
20.1875
53
0.582043
Mynogs
ccbd4f0339fc544abc146669024ca550e2f8a528
848
cpp
C++
examples/apps/mstc/OpenThreadTalk/OtExtAddr.cpp
jjlee3/openthread
abba21bca6e1b07ca76b0241dfaf045e57396818
[ "BSD-3-Clause" ]
null
null
null
examples/apps/mstc/OpenThreadTalk/OtExtAddr.cpp
jjlee3/openthread
abba21bca6e1b07ca76b0241dfaf045e57396818
[ "BSD-3-Clause" ]
null
null
null
examples/apps/mstc/OpenThreadTalk/OtExtAddr.cpp
jjlee3/openthread
abba21bca6e1b07ca76b0241dfaf045e57396818
[ "BSD-3-Clause" ]
null
null
null
#include "pch.h" #include "Types.h" #include "OtDevice.h" #include "OtExtAddr.h" using namespace ot; ExtendedAddress::ExtendedAddress( const Device& dev) : ExtendedAddress{ dev.get() } { } ExtendedAddress::ExtendedAddress( otInstance* dev) : Memory{ ::otGetExtendedAddress(dev) } { if (res_ == inv...
20.190476
75
0.683962
jjlee3
ccc2130cec5daa2604d7251f6d2550b5d5aa8c8a
1,261
cpp
C++
src/sort/heapsort.cpp
mattlisle/algorithms-cpp
bb9fb7e04ac0b05249c0c59537a270774db94ce0
[ "MIT" ]
null
null
null
src/sort/heapsort.cpp
mattlisle/algorithms-cpp
bb9fb7e04ac0b05249c0c59537a270774db94ce0
[ "MIT" ]
null
null
null
src/sort/heapsort.cpp
mattlisle/algorithms-cpp
bb9fb7e04ac0b05249c0c59537a270774db94ce0
[ "MIT" ]
null
null
null
#include "sort.hpp" #include <vector> using namespace std; namespace sort { namespace { auto parent_idx(size_t idx) -> size_t { return (idx - 1) / 2; } auto left_idx(size_t idx) -> size_t { return 2 * idx + 1; } auto right_idx(size_t idx) -> size_t { return 2 * idx + 2; } void emplace_heap_elem(vector<int>* sourc...
25.22
75
0.620143
mattlisle
ccc2976f60a15def188ef4940dee3ed644efa4f3
3,915
cpp
C++
src/KeyJoy_Node.cpp
dgitz/icarus_rover_rc
2ec789d7757715d71fc6ec4ce90e15fdc8053f3e
[ "MIT" ]
null
null
null
src/KeyJoy_Node.cpp
dgitz/icarus_rover_rc
2ec789d7757715d71fc6ec4ce90e15fdc8053f3e
[ "MIT" ]
null
null
null
src/KeyJoy_Node.cpp
dgitz/icarus_rover_rc
2ec789d7757715d71fc6ec4ce90e15fdc8053f3e
[ "MIT" ]
null
null
null
/* Author: David Gitz Date: 7-March-2016 Purpose: Converts ros keyboard topic to joystick topic. Usage: See Launch_UserControl.launch */ //Includes all the headers necessary to use the most common public pieces of the ROS system. #include <ros/ros.h> //Include some useful constants for image encoding. Refer t...
25.756579
167
0.605109
dgitz
ccc3477508aed318dfc850a1f6c6b5433861a48d
1,572
hpp
C++
Strategy/Duck/RubberDuck.hpp
dambatbul/DesignPatterns
9aae245f7f5d1fb3e1ab2528c53ae2abc095437f
[ "BSD-3-Clause" ]
null
null
null
Strategy/Duck/RubberDuck.hpp
dambatbul/DesignPatterns
9aae245f7f5d1fb3e1ab2528c53ae2abc095437f
[ "BSD-3-Clause" ]
null
null
null
Strategy/Duck/RubberDuck.hpp
dambatbul/DesignPatterns
9aae245f7f5d1fb3e1ab2528c53ae2abc095437f
[ "BSD-3-Clause" ]
null
null
null
/* * ===================================================================================== * * Filename: RubberDuck.hpp * * Description: head first ch1 example - Duck model(Strategy Pattern) * * Version: 0.1 * Created: 2015년 10월 14일 22시 39분 54초 * Revision: none * Compil...
28.071429
90
0.400763
dambatbul
cccb1b5a373f039c0c771116dbdb605a6ef8bd46
1,180
cpp
C++
Source/Storm-Packager/include/CleanTask.cpp
SunlayGGX/Storm
83a34c14cc7d936347b6b8193a64cd13ccbf00a8
[ "MIT" ]
3
2021-11-27T04:56:12.000Z
2022-02-14T04:02:10.000Z
Source/Storm-Packager/include/CleanTask.cpp
SunlayGGX/Storm
83a34c14cc7d936347b6b8193a64cd13ccbf00a8
[ "MIT" ]
null
null
null
Source/Storm-Packager/include/CleanTask.cpp
SunlayGGX/Storm
83a34c14cc7d936347b6b8193a64cd13ccbf00a8
[ "MIT" ]
null
null
null
#include "CleanTask.h" #include "ConfigManager.h" #include "PackagerHelper.h" std::string_view StormPackager::CleanTask::getName() const { return "Cleaner"; } std::string StormPackager::CleanTask::prepare() { std::string result; const StormPackager::ConfigManager &configMgr = StormPackager::ConfigManager::ins...
22.692308
90
0.720339
SunlayGGX
ccd0e33bd8a9a63de6eeae6f23b7cb7f78f13fc3
4,399
cpp
C++
ares/ms/vdp/background.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
153
2020-07-25T17:55:29.000Z
2021-10-01T23:45:01.000Z
ares/ms/vdp/background.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
245
2021-10-08T09:14:46.000Z
2022-03-31T08:53:13.000Z
ares/ms/vdp/background.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
44
2020-07-25T08:51:55.000Z
2021-09-25T16:09:01.000Z
auto VDP::Background::setup(n9 voffset) -> void { if(!self.displayEnable()) return; latch.nameTableAddress = io.nameTableAddress; latch.hscroll = io.hscroll; latch.vscroll = io.vscroll; } auto VDP::Background::run(n8 hoffset, n9 voffset) -> void { output = {}; if(!self.displayEnable()) return; switch(sel...
33.325758
94
0.675381
CasualPokePlayer
ccd1cda7e958cdcb6d9dd672c189f1863bf254a5
1,697
cpp
C++
Sources/Backend/hermes/db/HMMailDBRemoveMessagesOperation.cpp
packagesdev/dejalu
3ca934c98a24757f837ffcfab8e374a783e3f970
[ "BSD-3-Clause" ]
611
2017-12-29T08:17:40.000Z
2020-06-15T06:26:41.000Z
Sources/Backend/hermes/db/HMMailDBRemoveMessagesOperation.cpp
packagesdev/dejalu
3ca934c98a24757f837ffcfab8e374a783e3f970
[ "BSD-3-Clause" ]
57
2018-01-09T09:26:36.000Z
2020-07-07T22:43:41.000Z
Sources/Backend/hermes/db/HMMailDBRemoveMessagesOperation.cpp
packagesdev/dejalu
3ca934c98a24757f837ffcfab8e374a783e3f970
[ "BSD-3-Clause" ]
47
2018-01-02T11:29:41.000Z
2020-04-28T02:35:53.000Z
// DejaLu // Copyright (c) 2015 Hoa V. DINH. All rights reserved. #include "HMMailDBRemoveMessagesOperation.h" #include "HMMailDB.h" #include "HMMailDBChanges.h" using namespace hermes; using namespace mailcore; MailDBRemoveMessagesOperation::MailDBRemoveMessagesOperation() { mFolderID = -1; mMessagesUids =...
23.901408
93
0.727755
packagesdev
ccd26c1dce1fcd871b16279991edb5f5920f7549
5,094
cpp
C++
USB Application2/Dll_USB_2/dllmain.cpp
abaelen/Arduino-Isochronous-USB
ff65cfcac11d617d310a70fdae59cd406724ed83
[ "MIT" ]
1
2021-03-16T01:52:58.000Z
2021-03-16T01:52:58.000Z
USB Application2/Dll_USB_2/dllmain.cpp
abaelen/Arduino-Isochronous-USB
ff65cfcac11d617d310a70fdae59cd406724ed83
[ "MIT" ]
null
null
null
USB Application2/Dll_USB_2/dllmain.cpp
abaelen/Arduino-Isochronous-USB
ff65cfcac11d617d310a70fdae59cd406724ed83
[ "MIT" ]
2
2021-04-30T21:58:45.000Z
2021-11-28T01:50:14.000Z
// dllmain.cpp : Defines the entry point for the DLL application. #include "pch.h" #include "USB.h" #include <vector> BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { cas...
38.590909
231
0.727719
abaelen
ccd4779032edc95413732dc11098337387991fdc
3,600
cc
C++
net/socket/tcp_socket.cc
kay1ess/allin-server
3be3a53ebd092ad645df4ba8b86f1f548585c6cc
[ "Apache-2.0" ]
null
null
null
net/socket/tcp_socket.cc
kay1ess/allin-server
3be3a53ebd092ad645df4ba8b86f1f548585c6cc
[ "Apache-2.0" ]
null
null
null
net/socket/tcp_socket.cc
kay1ess/allin-server
3be3a53ebd092ad645df4ba8b86f1f548585c6cc
[ "Apache-2.0" ]
null
null
null
/* * @Author: likai * @Date: 2022-01-14 19:19:46 * @Last Modified by: likai * @Last Modified time: 2022-01-25 15:57:34 * @Description: "" */ #include "socket/tcp_socket.h" #include <unistd.h> #include <fcntl.h> namespace net { TCPSocket::TCPSocket() { type_ = TCP_SOCKET; fd_ = socket(AF_INET, SOCK_STRE...
24.657534
75
0.566944
kay1ess
ccd834df773ce9c3dbc9d7ab40504c5dbe6cab1e
910
hpp
C++
src/stopwatch.hpp
bkmgit/jdock
9be15ab80fb976373220f060253d56736a84c44c
[ "Apache-2.0" ]
5
2020-04-26T03:57:56.000Z
2021-04-05T11:20:08.000Z
src/stopwatch.hpp
bkmgit/jdock
9be15ab80fb976373220f060253d56736a84c44c
[ "Apache-2.0" ]
3
2021-08-22T07:21:43.000Z
2021-08-23T06:07:10.000Z
src/stopwatch.hpp
bkmgit/jdock
9be15ab80fb976373220f060253d56736a84c44c
[ "Apache-2.0" ]
1
2021-08-22T07:07:00.000Z
2021-08-22T07:07:00.000Z
#pragma once #ifndef IDOCK_STOPWATCH_HPP #define IDOCK_STOPWATCH_HPP #include <chrono> #include <string> using namespace std; using namespace std::chrono; //! Represents a stopwatch. class stopwatch { public: //! Create a new stopwatch and start running immediately. static stopwatch start_new(); public: //! Const...
18.958333
74
0.738462
bkmgit
ccdbae880f3c2592fe22aa9769333914427d250e
636
hpp
C++
pomdog/experimental/magicavoxel/vox_model_exporter.hpp
mogemimi/pomdog
6dc6244d018f70d42e61c6118535cf94a9ee0618
[ "MIT" ]
163
2015-03-16T08:42:32.000Z
2022-01-11T21:40:22.000Z
pomdog/experimental/magicavoxel/vox_model_exporter.hpp
mogemimi/pomdog
6dc6244d018f70d42e61c6118535cf94a9ee0618
[ "MIT" ]
17
2015-04-12T20:57:50.000Z
2020-10-10T10:51:45.000Z
pomdog/experimental/magicavoxel/vox_model_exporter.hpp
mogemimi/pomdog
6dc6244d018f70d42e61c6118535cf94a9ee0618
[ "MIT" ]
21
2015-04-12T20:45:11.000Z
2022-01-14T20:50:16.000Z
// Copyright mogemimi. Distributed under the MIT license. #pragma once #include "pomdog/basic/conditional_compilation.hpp" #include "pomdog/basic/export.hpp" #include "pomdog/utility/errors.hpp" POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN #include <string> POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADER...
27.652174
68
0.81761
mogemimi
ccdbe80c4ba1f5f234ff0d7235574a615a323a5a
13,334
cpp
C++
ugene/src/plugins/GUITestBase/src/tests/common_scenarios/project/sequence_exporting/GTTestsProjectSequenceExporting.cpp
iganna/lspec
c75cba3e4fa9a46abeecbf31b5d467827cf4fec0
[ "MIT" ]
null
null
null
ugene/src/plugins/GUITestBase/src/tests/common_scenarios/project/sequence_exporting/GTTestsProjectSequenceExporting.cpp
iganna/lspec
c75cba3e4fa9a46abeecbf31b5d467827cf4fec0
[ "MIT" ]
null
null
null
ugene/src/plugins/GUITestBase/src/tests/common_scenarios/project/sequence_exporting/GTTestsProjectSequenceExporting.cpp
iganna/lspec
c75cba3e4fa9a46abeecbf31b5d467827cf4fec0
[ "MIT" ]
null
null
null
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2012 UniPro <ugene@unipro.ru> * http://ugene.unipro.ru * * 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...
43.575163
168
0.736238
iganna
ef993fcecaa64d83f55f475c3694534e128caf8a
3,559
hpp
C++
src/IRHandler.hpp
luis-rr/OpenCat
ac5e32abf4861c069be38ad5a9e5c629d4db753f
[ "MIT" ]
null
null
null
src/IRHandler.hpp
luis-rr/OpenCat
ac5e32abf4861c069be38ad5a9e5c629d4db753f
[ "MIT" ]
null
null
null
src/IRHandler.hpp
luis-rr/OpenCat
ac5e32abf4861c069be38ad5a9e5c629d4db753f
[ "MIT" ]
null
null
null
#include <IRremote.h> // abbreviation //gait/posture/function names #define K00 "d" // rest and shutdown all servos #define K01 "F" // forward #define K02 "g" // turn off gyro feedback to boost speed #define K10 "L" // left #define K11 "balance" // neutral stand up posture #define K12 "R" // right #defin...
25.978102
78
0.571509
luis-rr
ef99db031cfff3e49ac99826cfbde0e4d11243d9
483
cpp
C++
test/util/frame_checking_example.cpp
wavelab/wave_geometry
aabcad44a490fc6393b35e63db9ad8908cf46dec
[ "MIT" ]
112
2018-05-07T00:57:57.000Z
2022-03-30T12:14:07.000Z
test/util/frame_checking_example.cpp
wavelab/wave_geometry
aabcad44a490fc6393b35e63db9ad8908cf46dec
[ "MIT" ]
9
2018-08-02T20:10:49.000Z
2022-02-16T17:45:29.000Z
test/util/frame_checking_example.cpp
wavelab/wave_geometry
aabcad44a490fc6393b35e63db9ad8908cf46dec
[ "MIT" ]
13
2018-05-27T01:08:24.000Z
2022-03-22T13:46:31.000Z
#include "wave/geometry/geometry.hpp" int main() { struct BodyFrame; struct CameraFrame; struct WorldFrame; wave::RotationMFd<WorldFrame, BodyFrame> r1; wave::RotationMFd<CameraFrame, BodyFrame> r2; // Let's get the rotation between World and Camera (maybe) // wave::RotationMFd<WorldFrame...
30.1875
83
0.681159
wavelab
ef9a4ff43aade385ce00afee08a93178c4936f0f
19,975
cpp
C++
src-resources.wsjcpp/__data_sample_html_images_attack_svg_pathccf68d.cpp
freehackquest/fhq-jury-ad
c839eefe98e5a6ccec6b182417f13929ebfe733a
[ "MIT" ]
12
2018-09-28T10:57:10.000Z
2020-03-30T15:53:05.000Z
src-resources.wsjcpp/__data_sample_html_images_attack_svg_pathccf68d.cpp
freehackquest/fhq-jury-ad
c839eefe98e5a6ccec6b182417f13929ebfe733a
[ "MIT" ]
32
2018-09-28T14:10:51.000Z
2020-08-31T08:54:21.000Z
src-resources.wsjcpp/__data_sample_html_images_attack_svg_pathccf68d.cpp
freehackquest/fhq-jury-ad
c839eefe98e5a6ccec6b182417f13929ebfe733a
[ "MIT" ]
3
2018-09-28T14:21:41.000Z
2019-11-02T14:14:34.000Z
// automaticly generated by wsjcpp:v0.4.3 #include "__data_sample_html_images_attack_svg_pathccf68d.h" REGISTRY_WSJCPP_RESOURCE_FILE(RES___data_sample_html_images_attack_svg_pathccf68d) const std::string &RES___data_sample_html_images_attack_svg_pathccf68d::getFilename() const { static const std::string s = "./d...
93.779343
104
0.609412
freehackquest
ef9c11ee56ff6d3e6f0655633c26a7de91d38998
706
cpp
C++
test/operation/test_operation.cpp
hengxin/jepsen-in-cpp
561a336f736645930e9236b032937cd1b3cde693
[ "MIT" ]
null
null
null
test/operation/test_operation.cpp
hengxin/jepsen-in-cpp
561a336f736645930e9236b032937cd1b3cde693
[ "MIT" ]
null
null
null
test/operation/test_operation.cpp
hengxin/jepsen-in-cpp
561a336f736645930e9236b032937cd1b3cde693
[ "MIT" ]
null
null
null
#include "Operation.h" #include <iostream> using std::cout; using std::endl; using namespace jepsen; int main() { Operation::OPInfo info; Operation::OPInfo value; for (int i = 0; i < 5; i++) { Operation::OPInfo op; if (i % 2 == 0) { op["type"] = "r"; } else { ...
19.611111
50
0.497167
hengxin
efa144079eb7309cc41f1844b461f7e819986f32
1,707
hpp
C++
software/source/tasks/task_leds.hpp
salkinium/calirona
a25ec42240358d0a2da9c1706d54783703fac343
[ "BSD-2-Clause" ]
null
null
null
software/source/tasks/task_leds.hpp
salkinium/calirona
a25ec42240358d0a2da9c1706d54783703fac343
[ "BSD-2-Clause" ]
null
null
null
software/source/tasks/task_leds.hpp
salkinium/calirona
a25ec42240358d0a2da9c1706d54783703fac343
[ "BSD-2-Clause" ]
null
null
null
// coding: utf-8 #ifndef TASK_LEDS_HPP #define TASK_LEDS_HPP #include <xpcc/processing/periodic_timer.hpp> #include "hardware.hpp" namespace task { class Leds { public: Leds() : isBusy(false), isHeadphoneError(false), isMechanicalError(false) { } void inline initialize() { LED_Busy1::setOutput(xpcc::Gpio::...
15.518182
67
0.696544
salkinium
efa181fe69c9a2b48e89707dfa79fbc55d52237b
211
cpp
C++
Compiler/compilererror.cpp
beldmitr/i4004
f090bc91acbf88be119d72a80301cdcf57a8c159
[ "MIT" ]
7
2017-04-07T01:17:26.000Z
2021-11-02T06:08:45.000Z
Compiler/compilererror.cpp
beldmitr/i4004
f090bc91acbf88be119d72a80301cdcf57a8c159
[ "MIT" ]
null
null
null
Compiler/compilererror.cpp
beldmitr/i4004
f090bc91acbf88be119d72a80301cdcf57a8c159
[ "MIT" ]
1
2018-12-13T10:47:08.000Z
2018-12-13T10:47:08.000Z
#include "compilererror.h" CompilerError::CompilerError(unsigned int row, const std::string& message) { const_cast<unsigned int&>(this->row) = row; const_cast<std::string&>(this->message) = message; }
23.444444
74
0.7109
beldmitr
efa25af89065151261ee752098953192f4a31a02
985
cpp
C++
source/rectangle.cpp
antoniakk/programmiersprachen-aufgabenblatt-2
adcd0d5e00e40b5d857df4209492610f3ea226b3
[ "MIT" ]
null
null
null
source/rectangle.cpp
antoniakk/programmiersprachen-aufgabenblatt-2
adcd0d5e00e40b5d857df4209492610f3ea226b3
[ "MIT" ]
null
null
null
source/rectangle.cpp
antoniakk/programmiersprachen-aufgabenblatt-2
adcd0d5e00e40b5d857df4209492610f3ea226b3
[ "MIT" ]
null
null
null
#include "rectangle.hpp" Rectangle::Rectangle() : min_{0.0, 0.0}, max_{100.0, 100.0}, color_{} {}; Rectangle::Rectangle(Vec2 const& min, Vec2 const& max, Color const& color) : min_{min}, max_{max}, color_{color} {}; float Rectangle::circumfrence() const { return 2*((abs(max_.y - min_.y)+abs((max_.x) - (min_...
39.4
117
0.639594
antoniakk
efa51bde50cd099ba65ed62e1294083f103fd503
3,742
hpp
C++
Coin.hpp
jancarlsson/kapital
90f232e85b0f7b259eb56adf16f47c519be47ed8
[ "MIT" ]
4
2015-07-07T19:20:29.000Z
2017-12-02T12:56:47.000Z
Coin.hpp
jancarlsson/kapital
90f232e85b0f7b259eb56adf16f47c519be47ed8
[ "MIT" ]
null
null
null
Coin.hpp
jancarlsson/kapital
90f232e85b0f7b259eb56adf16f47c519be47ed8
[ "MIT" ]
4
2017-07-18T23:08:52.000Z
2019-07-23T20:30:35.000Z
#ifndef _KAPITAL_COIN_HPP_ #define _KAPITAL_COIN_HPP_ #include <cstdint> #include <istream> #include <ostream> #include <vector> #include <snarkfront.hpp> #include <kapital/AddressKey.hpp> #include <kapital/HashFunctions.hpp> namespace kapital { /////////////////////////////////////////////////////////////////////...
25.806897
80
0.596472
jancarlsson
efa779ae59681c9905d4d6a8c4d85b8f2a888d29
17,125
cc
C++
ChessAI/board.cc
cjporteo/chess-AI
2799108c8cd39e38de7e3ebeb50688dbe8d88637
[ "Unlicense" ]
null
null
null
ChessAI/board.cc
cjporteo/chess-AI
2799108c8cd39e38de7e3ebeb50688dbe8d88637
[ "Unlicense" ]
null
null
null
ChessAI/board.cc
cjporteo/chess-AI
2799108c8cd39e38de7e3ebeb50688dbe8d88637
[ "Unlicense" ]
null
null
null
#include "board.h" #include "chessPiece.h" #include "rook.h" #include "knight.h" #include "bishop.h" #include "queen.h" #include "king.h" #include "pawn.h" #include <iostream> #include <string> #include "textDisplay.h" using namespace std; Board::Board(): k_col(4), k_row(0), K_col(4), K_row(7), EP_row(-1), EP_col(-1),...
33.644401
112
0.519766
cjporteo
efa830d134a3cad1c33f07279ba5e05bdcdda85b
2,151
cpp
C++
course/Course_7/Source.cpp
catalinboja/catalinboja-cpp_2020
ff1d2dc8620ff722aef151c9c823ec20f766d5b2
[ "MIT" ]
4
2020-10-13T13:37:15.000Z
2021-07-10T15:40:40.000Z
course/Course_7/Source.cpp
catalinboja/catalinboja-cpp_2020
ff1d2dc8620ff722aef151c9c823ec20f766d5b2
[ "MIT" ]
null
null
null
course/Course_7/Source.cpp
catalinboja/catalinboja-cpp_2020
ff1d2dc8620ff722aef151c9c823ec20f766d5b2
[ "MIT" ]
7
2020-10-16T08:32:42.000Z
2021-03-02T14:38:28.000Z
#define _CRT_SECURE_NO_WARNINGS #include <iostream> using namespace std; class LenghtException { }; class Student { int id = 0; char* name = nullptr; float tuitionFee = 0; const static int MIN_LENGTH = 3; static float feesTotal; public: Student(int id, const char* name, float fee) { this->id = id; this->s...
19.378378
75
0.649465
catalinboja
efab6877684aa628caef771c3e4179d27b603989
9,583
cpp
C++
android/generated/glue/XobotOS.MarshalGlue.cpp
gordonjohnpatrick/XobotOS
888ed3b8cc8d8e0a54b1858bfa5a3572545f4d2f
[ "Apache-2.0" ]
263
2015-01-04T16:39:18.000Z
2022-01-05T17:52:38.000Z
android/generated/glue/XobotOS.MarshalGlue.cpp
DooMLoRD/XobotOS
f20db6295e878a2f298c5e3896528e240785805b
[ "Apache-2.0" ]
3
2015-09-06T09:06:39.000Z
2019-10-15T00:52:49.000Z
android/generated/glue/XobotOS.MarshalGlue.cpp
DooMLoRD/XobotOS
f20db6295e878a2f298c5e3896528e240785805b
[ "Apache-2.0" ]
105
2015-01-11T11:45:12.000Z
2022-02-22T07:26:36.000Z
#include "XobotOS.MarshalGlue.h" struct String_Struct { uint32_t _owner; uint32_t length; char16_t* ptr; }; void String_Helper::unwrap(NativeString& from, String_Struct* to) { to->_owner = 0x7380548b; to->length = from.length(); to->ptr = from.takeOwnership(); } String_Struct* String_Helper::unwrap(NativeStrin...
18.680312
83
0.734634
gordonjohnpatrick
efaf0ca6bc56550b985f70a6791d016be605e41c
428
cpp
C++
test/smoke/slices/slices.cpp
raramakr/aomp
9a224fe01ca8eff4209b8b79aa1fa15a18da65db
[ "Apache-2.0" ]
106
2019-02-05T13:07:36.000Z
2022-03-20T11:15:03.000Z
test/smoke/slices/slices.cpp
raramakr/aomp
9a224fe01ca8eff4209b8b79aa1fa15a18da65db
[ "Apache-2.0" ]
195
2019-02-26T23:42:40.000Z
2022-03-29T10:08:19.000Z
test/smoke/slices/slices.cpp
raramakr/aomp
9a224fe01ca8eff4209b8b79aa1fa15a18da65db
[ "Apache-2.0" ]
27
2019-05-17T10:33:28.000Z
2022-03-25T16:17:48.000Z
#include <stdio.h> #include <stdlib.h> const int N = 10; void foo(double *A) { #pragma omp target { A[0] = 1.0; } } int main() { double *A = (double *)malloc(sizeof(double) * N); for (int i = 0; i < N; i++) { A[i] = 0.0; } #pragma omp target data map(tofrom:A[0 : N]) {...
18.608696
54
0.425234
raramakr
efb41cbb7f41f01e2202f5222718e88c868443a2
1,153
cc
C++
ptools/xml2dict.cc
elam03/vmaf
cceae1fee29ec0269616e7c2364f1714a518b2c3
[ "Apache-2.0" ]
13
2017-07-06T12:38:39.000Z
2021-08-10T08:06:18.000Z
ptools/xml2dict.cc
elam03/vmaf
cceae1fee29ec0269616e7c2364f1714a518b2c3
[ "Apache-2.0" ]
2
2016-01-29T22:57:15.000Z
2021-08-29T19:07:09.000Z
ptools/xml2dict.cc
elam03/vmaf
cceae1fee29ec0269616e7c2364f1714a518b2c3
[ "Apache-2.0" ]
4
2017-07-24T01:50:42.000Z
2021-08-10T08:06:20.000Z
#include "xmltools.h" // Tool demonstrating how to convert from XML to Python Dictionaries int main (int argc, char **argv) { bool input_stdin = false; bool output_stdout = false; if (argc==1) { // use as filter: stdin and stdout input_stdin = true; output_stdout = true; } else if (argc==2) { ...
26.204545
86
0.633998
elam03
efb46c2b7b1ed6153c79cd0a08925d1d9c9e30b0
3,342
cpp
C++
directfire_github/trunk/gameui/battle.net/sys/spellintropage.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
1
2015-08-12T04:05:33.000Z
2015-08-12T04:05:33.000Z
directfire_github/trunk/gameui/battle.net/sys/spellintropage.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
directfire_github/trunk/gameui/battle.net/sys/spellintropage.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
#include "spellintropage.h" #include "gamecore/resource/resourcemgr.h" SpellIntroPage::SpellIntroPage() { m_scroll = 0; } SpellIntroPage::~SpellIntroPage() { } void SpellIntroPage::moveInItem() { BasSysPage::moveInItem(); } void SpellIntroPage::moveOutItem() { BasSysPage::moveOutItem(); } void SpellIntro...
33.757576
130
0.658887
zhwsh00
efb9600a91c6b89505828b21548db412ef9b4214
51,766
cpp
C++
Glop/GlopFrameBase.cpp
zorbathut/glop
762d4f1e070ce9c7180a161b521b05c45bde4a63
[ "BSD-3-Clause" ]
1
2016-06-28T18:19:30.000Z
2016-06-28T18:19:30.000Z
Glop/GlopFrameBase.cpp
zorbathut/glop
762d4f1e070ce9c7180a161b521b05c45bde4a63
[ "BSD-3-Clause" ]
null
null
null
Glop/GlopFrameBase.cpp
zorbathut/glop
762d4f1e070ce9c7180a161b521b05c45bde4a63
[ "BSD-3-Clause" ]
null
null
null
// Includes #include "GlopFrameBase.h" #include "GlopFrameWidgets.h" #include "GlopWindow.h" #include "OpenGl.h" #include <algorithm> using namespace std; #ifndef GLOP_LEAN_AND_MEAN // Constants const int kClipInfinity = 1000000000; const int kClipMinusInfinity = -kClipInfinity; // GlopFrame // ========= // Constru...
38.834209
99
0.670479
zorbathut
efbacafa33087140fee639bcbf225073d62199f8
311
hpp
C++
addons/modules/modules/addAction/prep.hpp
Krzyciu/A3CS
b7144fc9089b5ded6e37cc1fad79b1c2879521be
[ "MIT" ]
1
2020-06-07T00:45:49.000Z
2020-06-07T00:45:49.000Z
addons/modules/modules/addAction/prep.hpp
Krzyciu/A3CS
b7144fc9089b5ded6e37cc1fad79b1c2879521be
[ "MIT" ]
27
2020-05-24T11:09:56.000Z
2020-05-25T12:28:10.000Z
addons/modules/modules/addAction/prep.hpp
Krzyciu/A3CS
b7144fc9089b5ded6e37cc1fad79b1c2879521be
[ "MIT" ]
2
2020-05-31T08:52:45.000Z
2021-04-16T23:16:37.000Z
PREP_MODULE(addAction,execActionLocal); PREP_MODULE(addAction,execActionProgressLocal); PREP_MODULE(addAction,handleActionExecuted); PREP_MODULE(addAction,isActionOwner); PREP_MODULE(addAction,module); PREP_MODULE(addAction,moduleExec); PREP_MODULE(addAction,moduleExecLocal); PREP_MODULE(addAction,validate);
31.1
47
0.868167
Krzyciu
efbbac95b76395e81d856f30e02d6b304ebb52d9
461
cpp
C++
ContaCorrente.cpp
marcospatton/Avancando-com-C-plus-plus-Enum-templates-e-mais-recursos
080cf98887e8c6a5c594b0f5b4f63024273ca47f
[ "MIT" ]
null
null
null
ContaCorrente.cpp
marcospatton/Avancando-com-C-plus-plus-Enum-templates-e-mais-recursos
080cf98887e8c6a5c594b0f5b4f63024273ca47f
[ "MIT" ]
1
2021-12-30T16:12:17.000Z
2021-12-31T02:02:52.000Z
ContaCorrente.cpp
marcospatton/Avancando-com-C-plus-plus-Enum-templates-e-mais-recursos
080cf98887e8c6a5c594b0f5b4f63024273ca47f
[ "MIT" ]
null
null
null
#include "ContaCorrente.hpp" #include <iostream> ContaCorrente::ContaCorrente(std::string numero, Titular titular): Conta(numero, titular) { } void ContaCorrente::transferePara(Conta& destino, float valor) { auto resultado = sacar(valor); if (resultado.index() == 1) { destino.depositar(valor); ...
23.05
89
0.707158
marcospatton
efbc77f18d2bcd1098b166e05fd43487bb4c2566
2,958
cpp
C++
src/ChatManager.cpp
Raymonf/OpenFusion
243d3d623aac1e02d3b3e318f2383e22d33649af
[ "MIT" ]
null
null
null
src/ChatManager.cpp
Raymonf/OpenFusion
243d3d623aac1e02d3b3e318f2383e22d33649af
[ "MIT" ]
null
null
null
src/ChatManager.cpp
Raymonf/OpenFusion
243d3d623aac1e02d3b3e318f2383e22d33649af
[ "MIT" ]
null
null
null
#include "CNShardServer.hpp" #include "CNStructs.hpp" #include "ChatManager.hpp" #include "PlayerManager.hpp" void ChatManager::init() { REGISTER_SHARD_PACKET(P_CL2FE_REQ_SEND_FREECHAT_MESSAGE, chatHandler); REGISTER_SHARD_PACKET(P_CL2FE_REQ_PC_AVATAR_EMOTES_CHAT, emoteHandler); } void ChatManager::chatHandle...
51
173
0.759973
Raymonf
efbcfa2a73a209a198237bce3901c24642794da6
3,278
cpp
C++
GRAPHS/EASY/COVID19 - EASY.cpp
shresth12-jain/HacktoberFest2021
43bd5d99668c104f89f3efef5313e4ddadd9931a
[ "Apache-2.0" ]
11
2021-10-01T06:53:31.000Z
2022-02-05T20:36:20.000Z
GRAPHS/EASY/COVID19 - EASY.cpp
shresth12-jain/HacktoberFest2021
43bd5d99668c104f89f3efef5313e4ddadd9931a
[ "Apache-2.0" ]
37
2021-10-01T06:54:01.000Z
2021-10-20T18:02:31.000Z
GRAPHS/EASY/COVID19 - EASY.cpp
shresth12-jain/HacktoberFest2021
43bd5d99668c104f89f3efef5313e4ddadd9931a
[ "Apache-2.0" ]
110
2021-10-01T06:51:28.000Z
2021-10-31T18:00:55.000Z
/*COVID19 Easy Accuracy: 68.87% Submissions: 908 Points: 2 Given the N*M binary matrix, 1 represents the healthy person, and 0 represents a patient affected by a coronavirus. The task is to check the minimum time required for all persons to get affected. A patient at [i, j] cell affects a person at cell [i, j-1], ...
25.022901
302
0.461257
shresth12-jain
efbdda743ea2b9d9225a23718e2d23b020ec1407
2,227
cpp
C++
practice/235-lowest-common-ancestor-of-a-binary-search-tree/LeetCode_235_0144.cpp
manajay/algorithm-list
828b0baed25a743fdb010427f873b29af9587951
[ "MIT" ]
null
null
null
practice/235-lowest-common-ancestor-of-a-binary-search-tree/LeetCode_235_0144.cpp
manajay/algorithm-list
828b0baed25a743fdb010427f873b29af9587951
[ "MIT" ]
null
null
null
practice/235-lowest-common-ancestor-of-a-binary-search-tree/LeetCode_235_0144.cpp
manajay/algorithm-list
828b0baed25a743fdb010427f873b29af9587951
[ "MIT" ]
null
null
null
/** 给定一个二叉搜索树, 找到该树中两个指定节点的最近公共祖先。 百度百科中最近公共祖先的定义为:“对于有根树 T 的两个结点 p、q,最近公共祖先表示为一个结点 x,满足 x 是 p、q 的祖先且 x 的深度尽可能大(一个节点也可以是它自己的祖先)。” 例如,给定如下二叉搜索树:  root = [6,2,8,0,4,7,9,null,null,3,5]   示例 1: 输入: root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 8 输出: 6 解释: 节点 2 和节点 8 的最近公共祖先是 6。 示例 2: 输入: root = [6,2,8,0,4,7,9,n...
21.621359
94
0.533453
manajay
efcd23037c829711734cc835a991905248a61ddb
2,943
hpp
C++
fprime-sphinx-drivers/SPIDriverGeneric/test/ut/Tester.hpp
fprime-community/fprime-sphinx-drivers
ce9efa8564b0eeee46b75bdee79a41a4d0dfd65b
[ "Apache-2.0" ]
1
2021-02-22T12:34:25.000Z
2021-02-22T12:34:25.000Z
fprime-sphinx-drivers/SPIDriverGeneric/test/ut/Tester.hpp
fprime-community/fprime-sphinx-drivers
ce9efa8564b0eeee46b75bdee79a41a4d0dfd65b
[ "Apache-2.0" ]
2
2021-08-11T17:14:54.000Z
2021-09-09T22:31:19.000Z
fprime-sphinx-drivers/SPIDriverGeneric/test/ut/Tester.hpp
fprime-community/fprime-sphinx-drivers
ce9efa8564b0eeee46b75bdee79a41a4d0dfd65b
[ "Apache-2.0" ]
1
2021-05-19T02:04:10.000Z
2021-05-19T02:04:10.000Z
// ====================================================================== // \title SPIDriverGeneric/test/ut/Tester.hpp // \author bsoudry // \brief hpp file for SPIDriverGeneric test harness implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVE...
28.028571
83
0.447842
fprime-community
efd0597666b4a5f6b5547aa365bb15eb4c148396
5,793
hpp
C++
include/noarr/pipelines/HardwareManager.hpp
ParaCoToUl/noarr-pipelines
138f69065e40403a41b95103262b39f2e04dcab8
[ "MIT" ]
null
null
null
include/noarr/pipelines/HardwareManager.hpp
ParaCoToUl/noarr-pipelines
138f69065e40403a41b95103262b39f2e04dcab8
[ "MIT" ]
null
null
null
include/noarr/pipelines/HardwareManager.hpp
ParaCoToUl/noarr-pipelines
138f69065e40403a41b95103262b39f2e04dcab8
[ "MIT" ]
null
null
null
#ifndef NOARR_PIPELINES_HARDWARE_MANAGER_HPP #define NOARR_PIPELINES_HARDWARE_MANAGER_HPP #include <memory> #include <cassert> #include <vector> #include <map> #include <functional> #include <iostream> #include "noarr/pipelines/Device.hpp" #include "noarr/pipelines/Buffer.hpp" #include "noarr/pipelines/MemoryAllocato...
27.585714
85
0.617815
ParaCoToUl
efd6b61dc7ac44cc423b2a902ddce3facd3b07e9
3,229
cpp
C++
.LHP/.Lop11/.HSG/.T.Minh/Week 9/GPSF/GPSF/GPSF.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
.LHP/.Lop11/.HSG/.T.Minh/Week 9/GPSF/GPSF/GPSF.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
.LHP/.Lop11/.HSG/.T.Minh/Week 9/GPSF/GPSF/GPSF.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <cstdio> #include <string> #include <cstring> #define maxN 501 #define minA -99999999 #define cost(x, y) ((x) != (y) ? (maxa)(-1) : (maxa)2) typedef long maxn, maxa; maxn na, nb, mxa[maxN][maxN], mxb[maxN][maxN], fina, finb; std::string a, b, resa, resb; maxa f[maxN]...
30.462264
133
0.470115
sxweetlollipop2912
efd7a593ea132985ed5be5d133c2939c3395a054
19,557
hh
C++
include/click/nameinfo.hh
MacWR/Click-changed-for-ParaGraph
18285e5da578fbb7285d10380836146e738dee6e
[ "Apache-2.0" ]
129
2015-10-08T14:38:35.000Z
2022-03-06T14:54:44.000Z
include/click/nameinfo.hh
MacWR/Click-changed-for-ParaGraph
18285e5da578fbb7285d10380836146e738dee6e
[ "Apache-2.0" ]
241
2016-02-17T16:17:58.000Z
2022-03-15T09:08:33.000Z
include/click/nameinfo.hh
MacWR/Click-changed-for-ParaGraph
18285e5da578fbb7285d10380836146e738dee6e
[ "Apache-2.0" ]
61
2015-12-17T01:46:58.000Z
2022-02-07T22:25:19.000Z
// -*- c-basic-offset: 4; related-file-name: "../../lib/nameinfo.cc" -*- #ifndef CLICK_NAMEINFO_HH #define CLICK_NAMEINFO_HH #include <click/args.hh> #include <click/straccum.hh> CLICK_DECLS class Element; class NameDB; class ErrorHandler; class NameInfo { public: /** @brief Construct a NameInfo element. * ...
36.969754
102
0.684154
MacWR
efd827a27d7de1a4aabbaf54698c263ce1ff733c
1,298
cpp
C++
server/Common/Packets/GCBoxItemList.cpp
viticm/web-pap
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
[ "BSD-3-Clause" ]
3
2018-06-19T21:37:38.000Z
2021-07-31T21:51:40.000Z
server/Common/Packets/GCBoxItemList.cpp
viticm/web-pap
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
[ "BSD-3-Clause" ]
null
null
null
server/Common/Packets/GCBoxItemList.cpp
viticm/web-pap
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
[ "BSD-3-Clause" ]
13
2015-01-30T17:45:06.000Z
2022-01-06T02:29:34.000Z
#include "stdafx.h" #include "GCBoxItemList.h" using namespace Packets; BOOL GCBoxItemList::Read( SocketInputStream& iStream ) { __ENTER_FUNCTION iStream.Read((CHAR*)&m_ItemBoxID,sizeof(ObjID_t)); iStream.Read((CHAR*)(&m_ItemNumber), sizeof(BYTE)); iStream.Read((CHAR*)(&m_ItemBoxType),siz...
26.489796
84
0.617103
viticm
efd96a26edb3c0315e8d28081febd59935d735c6
2,110
hpp
C++
lib/sparse-bench/src/cpu/BenchmarkUtils.hpp
paul-g/spark
9e561d7a575c6a984660ba4afc476a0a7aa5264d
[ "MIT" ]
20
2015-12-02T22:31:37.000Z
2022-03-31T05:18:04.000Z
lib/sparse-bench/src/cpu/BenchmarkUtils.hpp
caskorg/cask
9e561d7a575c6a984660ba4afc476a0a7aa5264d
[ "MIT" ]
15
2018-02-02T10:07:08.000Z
2018-02-02T10:07:09.000Z
lib/sparse-bench/src/cpu/BenchmarkUtils.hpp
caskorg/cask
9e561d7a575c6a984660ba4afc476a0a7aa5264d
[ "MIT" ]
4
2016-07-02T09:36:33.000Z
2021-04-19T17:44:55.000Z
#ifndef SPARSEBENCH_BENCHMARKUTILS_HPP #define SPARSEBENCH_BENCHMARKUTILS_HPP #include <stdexcept> #include <sstream> #include <iostream> #include <vector> #include <cmath> #include <fstream> namespace sparsebench { namespace benchmarkutils { void checkFileExists(std::string file) { std::ifstream f{file}; if (!f...
25.421687
84
0.640758
paul-g
efda6ac30360adb4b5f2072ed64e5d44977d470c
2,553
cpp
C++
src/gameState.cpp
ECToo/knowledge
ed6a51b9c7a119f453acb8b1151cbf6aa43f3099
[ "MIT" ]
null
null
null
src/gameState.cpp
ECToo/knowledge
ed6a51b9c7a119f453acb8b1151cbf6aa43f3099
[ "MIT" ]
null
null
null
src/gameState.cpp
ECToo/knowledge
ed6a51b9c7a119f453acb8b1151cbf6aa43f3099
[ "MIT" ]
null
null
null
/* Copyright (c) 2008-2009 Rômulo Fernandes Machado <romulo@castorgroup.net> 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, co...
24.084906
77
0.738347
ECToo
efdde7bed3fec1d4a5cf43d9d6e7be54a4662808
880
cpp
C++
Day 18/A. Shuffle Hashing.cpp
shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress
0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166
[ "MIT" ]
4
2019-12-12T19:59:50.000Z
2020-01-20T15:44:44.000Z
Day 18/A. Shuffle Hashing.cpp
shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress
0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166
[ "MIT" ]
null
null
null
Day 18/A. Shuffle Hashing.cpp
shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress
0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166
[ "MIT" ]
null
null
null
// Question Link ---> http://codeforces.com/contest/1278/problem/A // Educational Codeforces Round 78 (Rated for Div. 2) // Day #18 #Contest 3 #include <iostream> #include <unordered_map> #include <vector> using namespace std; int main(void) { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ...
24.444444
80
0.515909
shtanriverdi
efde45ce10a40fd97905ed75cfe5151458fb4455
1,201
hpp
C++
mi/functional/minmax.hpp
tmichi/xendocast
482c7e668423c11b1cc0f6e2fa98bd3b582536a8
[ "MIT" ]
null
null
null
mi/functional/minmax.hpp
tmichi/xendocast
482c7e668423c11b1cc0f6e2fa98bd3b582536a8
[ "MIT" ]
1
2017-06-14T04:32:12.000Z
2017-06-14T04:32:12.000Z
mi/functional/minmax.hpp
tmichi/xendocast
482c7e668423c11b1cc0f6e2fa98bd3b582536a8
[ "MIT" ]
null
null
null
/** * @file minmax.hpp * @author Takashi Michikawa <michi@den.rcast.u-tokyo.ac.jp> */ #ifndef __MI_FUNCTIONAL_MINMAX_HPP__ #define __MI_FUNCTIONAL_MINMAX_HPP__ 1 #include <functional> #include <utility> namespace mi { template<typename T> class minmax : public std::unary_function<T, std:...
34.314286
91
0.442132
tmichi
efde5e4e9829544eead8997707f020fd282f1867
2,760
cc
C++
content/shell/browser/layout_test/layout_test_browser_context.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
content/shell/browser/layout_test/layout_test_browser_context.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/shell/browser/layout_test/layout_test_browser_context.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
// Copyright 2014 The Chromium 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 "content/shell/browser/layout_test/layout_test_browser_context.h" #include "base/bind.h" #include "base/command_line.h" #include "base/files/fil...
35.384615
85
0.791667
kjthegod
efde7110977a86b293a5cd6e5681d9739d9aff00
2,556
hpp
C++
INCLUDE/Vcl/idsntp.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
1
2022-01-13T01:03:55.000Z
2022-01-13T01:03:55.000Z
INCLUDE/Vcl/idsntp.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
INCLUDE/Vcl/idsntp.hpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'IdSNTP.pas' rev: 6.00 #ifndef IdSNTPHPP #define IdSNTPHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include <IdComponent....
25.818182
79
0.649061
earthsiege2
efdef98dbdb93630b13d6e6b9c2633375a97b07a
632
hpp
C++
OpenCV-Test/detect_cascade.hpp
AndriyBas/diploma2016
60b3d1034b229be1bdaf58be247847df2c13e6d7
[ "MIT" ]
null
null
null
OpenCV-Test/detect_cascade.hpp
AndriyBas/diploma2016
60b3d1034b229be1bdaf58be247847df2c13e6d7
[ "MIT" ]
null
null
null
OpenCV-Test/detect_cascade.hpp
AndriyBas/diploma2016
60b3d1034b229be1bdaf58be247847df2c13e6d7
[ "MIT" ]
null
null
null
// // detect_cascade.hpp // OpenCV-Test // // Created by Andriy Bas on 5/29/16. // Copyright © 2016 Andriy Bas. All rights reserved. // #ifndef detect_cascade_hpp #define detect_cascade_hpp #include "opencv2/objdetect/objdetect.hpp" #include "opencv2/highgui/highgui.hpp" #include <stdio.h> #include "detector.hp...
17.555556
53
0.696203
AndriyBas
efe0220428f6227351806e063f7a9927f7a6a4bd
12,813
cpp
C++
SDK/ARKSurvivalEvolved_Baryonyx_Character_BP_functions.cpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_Baryonyx_Character_BP_functions.cpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_Baryonyx_Character_BP_functions.cpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Baryonyx_Character_BP_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //------------------------------------------------------------...
35.493075
214
0.731679
2bite
efe0e12b479da21c52836c93629a5efa8fef1b68
1,407
cpp
C++
net/packethandler.cpp
dllexport/libtunosocks
6ffba81bf7e105ab92a1f09893856f8526d45978
[ "MIT" ]
1
2020-07-06T02:51:20.000Z
2020-07-06T02:51:20.000Z
net/packethandler.cpp
dllexport/libtunosocks
6ffba81bf7e105ab92a1f09893856f8526d45978
[ "MIT" ]
1
2021-08-06T11:22:33.000Z
2021-08-08T09:17:16.000Z
net/packethandler.cpp
dllexport/libtunosocks
6ffba81bf7e105ab92a1f09893856f8526d45978
[ "MIT" ]
2
2020-07-06T02:51:30.000Z
2021-08-06T11:04:17.000Z
#include "packethandler.h" #include "lwiphelper.h" #include "filter/udp_filter.h" #include <lwip/sockets.h> #include <lwip/ip4.h> #include <iostream> #include "udp/udphandler.h" const int PROTO_TCP = 6; const int PROTO_UDP = 17; const int PROTO_ICMP = 1; void PacketHandler::Input(void* packet, uint64_t size) { #i...
20.691176
62
0.643213
dllexport
efe12691c965cb1abb71efe65af3b171ad9eeae3
3,763
cpp
C++
src/cmd/cmdget.cpp
pirobtumen/Remember
5d218d9c0e353ff1df7695486c794288f1ba0a96
[ "MIT" ]
null
null
null
src/cmd/cmdget.cpp
pirobtumen/Remember
5d218d9c0e353ff1df7695486c794288f1ba0a96
[ "MIT" ]
null
null
null
src/cmd/cmdget.cpp
pirobtumen/Remember
5d218d9c0e353ff1df7695486c794288f1ba0a96
[ "MIT" ]
null
null
null
// ----------------------------------------------------------------------------- // // MIT License // // Copyright (c) 2016 Alberto Sola // // 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 ...
29.865079
97
0.513154
pirobtumen
efe74e071bfaeff40084e88f2d24da4169dacbc4
5,956
cpp
C++
test/unit/IRAssemblerTest.cpp
gdawg/redex
857c8dc08c93d2d768bff768dad3d1ff56750690
[ "MIT" ]
null
null
null
test/unit/IRAssemblerTest.cpp
gdawg/redex
857c8dc08c93d2d768bff768dad3d1ff56750690
[ "MIT" ]
null
null
null
test/unit/IRAssemblerTest.cpp
gdawg/redex
857c8dc08c93d2d768bff768dad3d1ff56750690
[ "MIT" ]
null
null
null
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include "IRAssembler.h" #include "RedexTest.h" struct IRAssemblerTest : public RedexTest {}; TEST_F(I...
22.223881
77
0.543318
gdawg
efeab3902b56717f0ab5e210968a7e0a0fcdcc6f
4,450
cc
C++
msg/Messenger.cc
liucxer/ceph-msg
2e5c18c0c72253b283bfd3d0576033c0b515ce55
[ "Apache-2.0" ]
null
null
null
msg/Messenger.cc
liucxer/ceph-msg
2e5c18c0c72253b283bfd3d0576033c0b515ce55
[ "Apache-2.0" ]
null
null
null
msg/Messenger.cc
liucxer/ceph-msg
2e5c18c0c72253b283bfd3d0576033c0b515ce55
[ "Apache-2.0" ]
null
null
null
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <netdb.h> #include "include/types.h" #include "include/random.h" #include "Messenger.h" #include "msg/simple/SimpleMessenger.h" #include "msg/async/AsyncMessenger.h" #ifdef HAVE_XIO #include "msg/xio/XioMessen...
26.646707
142
0.673933
liucxer
efebaa430427707190692ab04c7ef5413a21e8ed
8,628
cpp
C++
src/gpu_query_thread.cpp
blizzard4591/zeusUtilities
8d6fb5e6745f50d6f257fe3065b4cc32ae208c00
[ "MIT" ]
2
2020-09-07T14:09:43.000Z
2020-09-24T11:12:18.000Z
src/gpu_query_thread.cpp
blizzard4591/zeusUtilities
8d6fb5e6745f50d6f257fe3065b4cc32ae208c00
[ "MIT" ]
null
null
null
src/gpu_query_thread.cpp
blizzard4591/zeusUtilities
8d6fb5e6745f50d6f257fe3065b4cc32ae208c00
[ "MIT" ]
null
null
null
#include "gpu_query_thread.h" #include "gpu_query.h" #include <algorithm> #define GPU_DEBUG #undef GPU_DEBUG VOID ParseGpuEngineUtilizationCounter( _In_ PWSTR InstanceName, _In_ DOUBLE InstanceValue ) { std::wstring const wInstanceName(InstanceName, wcslen(InstanceName)); QString const qInstanceName...
30.814286
218
0.656699
blizzard4591
efeeacb2c305b970cff402cccdd90313d772ccee
387
cpp
C++
matu144.cpp
NewtonVan/Fxxk_Y0u_m47u
d303c7f13c074b5462ac8390a9ff94e546099fac
[ "MIT" ]
1
2020-09-26T16:47:16.000Z
2020-09-26T16:47:16.000Z
matu144.cpp
NewtonVan/Fxxk_Y0u_m47u
d303c7f13c074b5462ac8390a9ff94e546099fac
[ "MIT" ]
null
null
null
matu144.cpp
NewtonVan/Fxxk_Y0u_m47u
d303c7f13c074b5462ac8390a9ff94e546099fac
[ "MIT" ]
1
2020-09-26T16:47:40.000Z
2020-09-26T16:47:40.000Z
#include <iostream> #include <cstdio> using std::cin; using std::cout; using std::endl; int main() { int width= 0; cin>>width; if (0==width%2 || width< 1 || width >80){ cout<<"error"<<endl; } else{ for (int i= 0; 2*i< width; ++i){ for (int j= 0; j< i; ++j){ cout<<' '; } for (int j= 0; j< width-2...
12.9
42
0.498708
NewtonVan
eff294753d04a36fc640ef4f8644b8eb87e41022
2,392
cpp
C++
Tests/tst_test.cpp
reficul0/EncryptorDecryptor
3201f715f12b7bc362a84efe797ce200b76e4a95
[ "MIT" ]
null
null
null
Tests/tst_test.cpp
reficul0/EncryptorDecryptor
3201f715f12b7bc362a84efe797ce200b76e4a95
[ "MIT" ]
1
2020-11-02T10:45:59.000Z
2020-11-02T10:57:46.000Z
Tests/tst_test.cpp
reficul0/EncryptorDecryptor
3201f715f12b7bc362a84efe797ce200b76e4a95
[ "MIT" ]
1
2020-11-02T10:41:43.000Z
2020-11-02T10:41:43.000Z
#include <QtTest> #include <QCoreApplication> #include <QtTest/QtTest> #include <../6ifratorDe6ifrator/cesar_decryptor.h> #include <../6ifratorDe6ifrator/cesar_encryptor.h> #include <fstream> // add necessary includes here class Test : public QObject { Q_OBJECT public: Test() = default; ~Test() = defau...
21.168142
89
0.643813
reficul0
eff340f0db65a7f481de71e535f55849327e73df
4,640
cpp
C++
templates/linePolygonClipping.cpp
prakharvk/computer-graphics
ecec5bf03bfcbf79f3e5f61f4078534798d06145
[ "MIT" ]
null
null
null
templates/linePolygonClipping.cpp
prakharvk/computer-graphics
ecec5bf03bfcbf79f3e5f61f4078534798d06145
[ "MIT" ]
null
null
null
templates/linePolygonClipping.cpp
prakharvk/computer-graphics
ecec5bf03bfcbf79f3e5f61f4078534798d06145
[ "MIT" ]
null
null
null
#include<iostream.h> #include<conio.h> #include<graphics.h> //LINE CLIPPING : LIANG-BASKY void lineClippingLB(float x0=300, float y0=50, float x1=50, float y1=300, float xmin=100, float xmax=200, float ymin=100, float ymax=200) { double dx = x1 - x0; double dy = y1 - y0; float p[4], q[4]; p[0] = -dx;...
29.18239
138
0.537931
prakharvk
eff6e48e5691e512938560bf0be0227e1252a6e4
1,931
cpp
C++
src/TemporalFrequencyWidget.cpp
scribblemaniac/OUnit
f8a6e966b850a2c877660e24da51d7da0d4e97f6
[ "MIT" ]
null
null
null
src/TemporalFrequencyWidget.cpp
scribblemaniac/OUnit
f8a6e966b850a2c877660e24da51d7da0d4e97f6
[ "MIT" ]
null
null
null
src/TemporalFrequencyWidget.cpp
scribblemaniac/OUnit
f8a6e966b850a2c877660e24da51d7da0d4e97f6
[ "MIT" ]
null
null
null
#include "TemporalFrequencyWidget.h" #include "ui_TemporalFrequencyWidget.h" #include <QDebug> #include "ConversionUtilities.h" TemporalFrequencyWidget::TemporalFrequencyWidget(QApplication *app, QWidget *parent) : QWidget(parent), ui(new Ui::TemporalFrequencyWidget), m_app(app) { ui->setupUi(this); ...
37.862745
145
0.733299
scribblemaniac
eff8ff7599feefe8524bff005dff84ad873b288e
671
hpp
C++
Game/GUI/GUILabel.hpp
Mateusz00/Space-Invasion
a5c2b501454377f7496db91abbdebcb97ab3c814
[ "BSD-2-Clause" ]
null
null
null
Game/GUI/GUILabel.hpp
Mateusz00/Space-Invasion
a5c2b501454377f7496db91abbdebcb97ab3c814
[ "BSD-2-Clause" ]
1
2018-11-18T14:48:56.000Z
2018-11-26T19:21:07.000Z
Game/GUI/GUILabel.hpp
Mateusz00/2D-Fighter-Jet-Game
a5c2b501454377f7496db91abbdebcb97ab3c814
[ "BSD-2-Clause" ]
null
null
null
#ifndef GUILABEL_HPP #define GUILABEL_HPP #include "GUIObject.hpp" #include "../ResourcesID.hpp" #include <SFML/Graphics/Text.hpp> class GUILabel : public GUIObject { public: GUILabel(const std::string&, const FontHolder&); void setText(const std::string&...
27.958333
80
0.593145
Mateusz00
eff92c2f6b38001aa91b9f0d9c040671b941ef40
455
hpp
C++
arduino_communication/fun.hpp
fpeterek/master-slave-arduino-communcation
736d0db885af9b7d6ef7a6c0fbecb743509f4e7a
[ "MIT" ]
null
null
null
arduino_communication/fun.hpp
fpeterek/master-slave-arduino-communcation
736d0db885af9b7d6ef7a6c0fbecb743509f4e7a
[ "MIT" ]
null
null
null
arduino_communication/fun.hpp
fpeterek/master-slave-arduino-communcation
736d0db885af9b7d6ef7a6c0fbecb743509f4e7a
[ "MIT" ]
null
null
null
// // fun.hpp // arduino_communication // // Created by Filip Peterek on 02/02/2017. // Copyright © 2017 Filip Peterek. All rights reserved. // #ifndef fun_hpp #define fun_hpp #include <stdio.h> #include <cstring> template <typename funPtr> struct fun { char string[5]; funPtr function; fun(...
14.677419
56
0.586813
fpeterek
eff93fd4014e3978a7e56fe0c10bf2be13c84976
7,877
cpp
C++
src/wxTTM/Dialogs/MdEdit.cpp
ttm-tt/wxTTM
f9c75f05a564a0d82034412c1eb4c94d943e267f
[ "MIT" ]
null
null
null
src/wxTTM/Dialogs/MdEdit.cpp
ttm-tt/wxTTM
f9c75f05a564a0d82034412c1eb4c94d943e267f
[ "MIT" ]
null
null
null
src/wxTTM/Dialogs/MdEdit.cpp
ttm-tt/wxTTM
f9c75f05a564a0d82034412c1eb4c94d943e267f
[ "MIT" ]
null
null
null
/* Copyright (C) 2020 Christoph Theis */ // MdEdit.mdp : implementation file // #include "stdafx.h" #include "TT32App.h" #include "MdEdit.h" #include "GrStore.h" #include "InfoSystem.h" #include "Request.h" IMPLEMENT_DYNAMIC_CLASS(CMdEdit, CFormViewEx) BEGIN_EVENT_TABLE(CMdEdit, CFormViewEx) EVT_BUTTON(XRCID("A...
26.521886
131
0.582709
ttm-tt
56039914aaacc6b6256d8ed75c785c194058345a
1,502
hpp
C++
ultra/network/stream_packet.hpp
badryasuo/UltraDark
c9f60e3a754b051db33c29129f943807c6010b9e
[ "MIT" ]
null
null
null
ultra/network/stream_packet.hpp
badryasuo/UltraDark
c9f60e3a754b051db33c29129f943807c6010b9e
[ "MIT" ]
null
null
null
ultra/network/stream_packet.hpp
badryasuo/UltraDark
c9f60e3a754b051db33c29129f943807c6010b9e
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <time.h> #include <thread> #include "defines.h" #include "Encryption.hpp" #include "../ro_string.hpp" namespace u { /*- -----------------*/ /*- TCP stream_packet Class-*/ /*- -----------------*/ struct stream_packet { int size; stream_packet() : bytes(""), size(0) {} ...
24.225806
90
0.646471
badryasuo
560501d69b75a594a1fc601731a1fef37c233249
6,265
hpp
C++
third-party/Empirical/include/emp/web/init.hpp
koellingh/empirical-p53-simulator
aa6232f661e8fc65852ab6d3e809339557af521b
[ "MIT" ]
null
null
null
third-party/Empirical/include/emp/web/init.hpp
koellingh/empirical-p53-simulator
aa6232f661e8fc65852ab6d3e809339557af521b
[ "MIT" ]
null
null
null
third-party/Empirical/include/emp/web/init.hpp
koellingh/empirical-p53-simulator
aa6232f661e8fc65852ab6d3e809339557af521b
[ "MIT" ]
null
null
null
/** * @note This file is part of Empirical, https://github.com/devosoft/Empirical * @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md * @date 2015-2018. * * @file init.hpp * @brief Define Initialize() and other functions to set up Empirical to build Emscripten proj...
29.00463
104
0.648843
koellingh
56052fc0e88c08da5a3a0ab3a226e526ec88d9af
1,012
hpp
C++
boost/tti/detail/dptmf.hpp
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
1
2018-12-15T19:55:56.000Z
2018-12-15T19:55:56.000Z
boost/tti/detail/dptmf.hpp
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
null
null
null
boost/tti/detail/dptmf.hpp
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
null
null
null
// (C) Copyright Edward Diener 2011,2012 // Use, modification and distribution are subject to 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). #if !defined(BOOST_TTI_DETAIL_PTMF_HPP) #define BOOST_TTI_DETAIL_PTMF_HPP #include ...
21.531915
81
0.58498
smart-make
5608ff5408fef0fae625af2186170af3b073545d
2,441
cpp
C++
day05/ex05/ShrubberyCreationForm.cpp
psprawka/Cpp_Piscine
73fdb50d654c49587d7d3a2d475b1c57033c8dd4
[ "MIT" ]
1
2019-09-15T08:29:00.000Z
2019-09-15T08:29:00.000Z
day05/ex04/ShrubberyCreationForm.cpp
psprawka/Cpp_Piscine
73fdb50d654c49587d7d3a2d475b1c57033c8dd4
[ "MIT" ]
1
2019-09-15T08:28:48.000Z
2019-09-15T08:28:48.000Z
day05/ex05/ShrubberyCreationForm.cpp
psprawka/Cpp_Piscine
73fdb50d654c49587d7d3a2d475b1c57033c8dd4
[ "MIT" ]
1
2020-03-04T16:14:40.000Z
2020-03-04T16:14:40.000Z
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ShrubberyCreationForm.cpp :+: :+: :+: ...
42.086207
313
0.364605
psprawka
560a0d213236e2e5874888fd7f8bf5127b5b33fa
2,165
cpp
C++
LeetCode/ThousandOne/0407-trap_rain_water.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandOne/0407-trap_rain_water.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandOne/0407-trap_rain_water.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
#include "leetcode.hpp" /* 407. 接雨水 II 给定一个 m x n 的矩阵,其中的值均为正整数,代表二维高度图每个单元的高度,请计算图中形状最多能接多少体积的雨水。 说明: m 和 n 都是小于 110 的整数。每一个单位的高度都大于 0 且小于 20000。 示例: 给出如下 3x6 的高度图: [ [1,4,3,1,3,2], [3,2,1,3,2,4], [2,3,3,2,3,1] ] 返回 4。 */ // https://leetcode.com/problems/trapping-rain-water-ii/discuss/89495/How-to-get-the-solu...
20.046296
148
0.549192
Ginkgo-Biloba
560a32a00ace5820614137de57825c6428b39f5a
1,579
cpp
C++
trees/c++/04_1.cpp
amit-upadhyay-IT/proton
5a817cc12bfb26277b6542342a9f10bf629d34e9
[ "Apache-2.0" ]
null
null
null
trees/c++/04_1.cpp
amit-upadhyay-IT/proton
5a817cc12bfb26277b6542342a9f10bf629d34e9
[ "Apache-2.0" ]
null
null
null
trees/c++/04_1.cpp
amit-upadhyay-IT/proton
5a817cc12bfb26277b6542342a9f10bf629d34e9
[ "Apache-2.0" ]
null
null
null
/* * create a mirror tree of a binary tree * * */ #include<iostream> struct node { int data; node *left, *right; }; node* get_new_node(int data) { node* new_node = new node(); new_node->data = data; new_node->left = new_node->right = NULL; return new_node; } node* insert(node* root, int da...
17.351648
48
0.554782
amit-upadhyay-IT
560a622453fb4d8e9320e7764488426c351ab274
762
cpp
C++
Fudl/easy/solved/Next growing number.cpp
AhmedMostafa7474/Codingame-Solutions
da696a095c143c5d216bc06f6689ad1c0e25d0e0
[ "MIT" ]
1
2022-03-16T08:56:31.000Z
2022-03-16T08:56:31.000Z
Fudl/easy/solved/Next growing number.cpp
AhmedMostafa7474/Codingame-Solutions
da696a095c143c5d216bc06f6689ad1c0e25d0e0
[ "MIT" ]
2
2022-03-17T11:27:14.000Z
2022-03-18T07:41:00.000Z
Fudl/easy/solved/Next growing number.cpp
AhmedMostafa7474/Codingame-Solutions
da696a095c143c5d216bc06f6689ad1c0e25d0e0
[ "MIT" ]
6
2022-03-13T19:56:11.000Z
2022-03-17T12:08:22.000Z
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/ int main() { unsigned long long num; cin >> num; num++; string n = to_string(num); int p...
18.585366
59
0.524934
AhmedMostafa7474
561638a2166f4e9555d863c2de1fdb534a2a0a07
1,996
cpp
C++
src/spine_build_dict.cpp
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
src/spine_build_dict.cpp
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
src/spine_build_dict.cpp
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include "dynet/dict.h" #include <boost/functional/hash.hpp> #include <boost/program_options.hpp> #include <boost/serialization/unordered_set.hpp> #include <boost/program_options.hpp> #include "serialization.h" #include "utils.h" #include "spine_data.h" int main(int argc, char...
29.791045
93
0.660822
FilippoC
5617c92726412a5ecf7848e388795223ac20acc7
743
hpp
C++
src/rendering/mesh.hpp
Thanduriel/func-renderer
99582272d8e34cb6e2f6bc9735c8eba5076bb29c
[ "MIT" ]
1
2019-01-27T17:54:45.000Z
2019-01-27T17:54:45.000Z
src/rendering/mesh.hpp
Thanduriel/func-renderer
99582272d8e34cb6e2f6bc9735c8eba5076bb29c
[ "MIT" ]
null
null
null
src/rendering/mesh.hpp
Thanduriel/func-renderer
99582272d8e34cb6e2f6bc9735c8eba5076bb29c
[ "MIT" ]
null
null
null
#pragma once #include "vertexbuffer.hpp" namespace Graphic{ class Mesh { public: Mesh(); const VertexBuffer<>& GetVertices() const { return m_vertices; } const VertexBuffer<>& GetNormals() const { return m_normals; } const VertexBuffer<uint32_t, GL_ELEMENT_ARRAY_BUFFER>& GetIndices() const { return m_ind...
22.515152
97
0.736205
Thanduriel
561c419aeaaefcc75f5505d396a5f2cdf789c182
4,363
hpp
C++
nearest_centroid_classifier.hpp
clustifier/kaggle-lshtc
18350ff36350c401efea0338bd31819d039808fa
[ "MIT" ]
35
2015-01-02T09:09:40.000Z
2019-12-27T10:17:28.000Z
nearest_centroid_classifier.hpp
nagadomi/kaggle-lshtc
18350ff36350c401efea0338bd31819d039808fa
[ "MIT" ]
null
null
null
nearest_centroid_classifier.hpp
nagadomi/kaggle-lshtc
18350ff36350c401efea0338bd31819d039808fa
[ "MIT" ]
24
2015-01-02T09:10:34.000Z
2021-05-23T04:26:38.000Z
#ifndef NEAREST_CENTROID_CLASSIFIER_HPP #define NEAREST_CENTROID_CLASSIFIER_HPP #include "util.hpp" #include "inverted_index.hpp" class NearestCentroidClassifier { private: std::vector<fv_t> m_centroids; std::vector<int> m_centroid_labels; InvertedIndex m_inverted_index; static void vector_sum(fv_t &sum, ...
23.583784
73
0.613569
clustifier