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
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
35969c7d3d5bf587b5c69a49b5535fe6a20368a1
4,970
hpp
C++
libraries/app/include/scorum/app/detail/advertising_api.hpp
scorum/scorum
1da00651f2fa14bcf8292da34e1cbee06250ae78
[ "MIT" ]
53
2017-10-28T22:10:35.000Z
2022-02-18T02:20:48.000Z
libraries/app/include/scorum/app/detail/advertising_api.hpp
Scorum/Scorum
fb4aa0b0960119b97828865d7a5b4d0409af7876
[ "MIT" ]
38
2017-11-25T09:06:51.000Z
2018-10-31T09:17:22.000Z
libraries/app/include/scorum/app/detail/advertising_api.hpp
Scorum/Scorum
fb4aa0b0960119b97828865d7a5b4d0409af7876
[ "MIT" ]
27
2018-01-08T19:43:35.000Z
2022-01-14T10:50:42.000Z
#pragma once #include <scorum/chain/services/advertising_property.hpp> #include <scorum/chain/services/account.hpp> #include <scorum/chain/services/budgets.hpp> #include <scorum/chain/services/dynamic_global_property.hpp> #include <scorum/app/scorum_api_objects.hpp> #include <scorum/app/advertising_api.hpp> #include <...
34.275862
115
0.673441
35972edb385c1a9e30366229bdfbc43456f337c7
5,286
cpp
C++
WebRtcWrapper/webrtc.PeerConnectionObserver.cpp
eidosmontreal/winrtc
4011f5a9e1924ff16ed6decd7a494a15db27e391
[ "MIT" ]
1
2021-12-30T10:01:15.000Z
2021-12-30T10:01:15.000Z
WebRtcWrapper/webrtc.PeerConnectionObserver.cpp
eidosmontreal/winrtc
4011f5a9e1924ff16ed6decd7a494a15db27e391
[ "MIT" ]
null
null
null
WebRtcWrapper/webrtc.PeerConnectionObserver.cpp
eidosmontreal/winrtc
4011f5a9e1924ff16ed6decd7a494a15db27e391
[ "MIT" ]
1
2022-02-28T02:29:38.000Z
2022-02-28T02:29:38.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // clang-format off #include "pch.h" #include "webrtc.PeerConnectionObserver.h" #include "webrtc.PeerConnectionObserver.g.cpp" // clang-format on #include "webrtc.IceCandidate.h" #include "webrtc.RtpTransceiver.h" namespace winrt::Microsoft::...
30.205714
120
0.79493
359b6f223ae30af473858429465ad694eddf411e
6,256
cpp
C++
Day1/build/iOS/Preview/src/iOS.QuartzCore.g.cpp
sauvikatinnofied/ExploringFuse
cc272d55c7221d88ba773494f571b6528e5279f8
[ "Apache-2.0" ]
null
null
null
Day1/build/iOS/Preview/src/iOS.QuartzCore.g.cpp
sauvikatinnofied/ExploringFuse
cc272d55c7221d88ba773494f571b6528e5279f8
[ "Apache-2.0" ]
null
null
null
Day1/build/iOS/Preview/src/iOS.QuartzCore.g.cpp
sauvikatinnofied/ExploringFuse
cc272d55c7221d88ba773494f571b6528e5279f8
[ "Apache-2.0" ]
null
null
null
// This file was generated based on '(multiple files)'. // WARNING: Changes might be lost if you edit this file directly. #include <iOS.QuartzCore.CATransform3D.h> #include <Uno.Double.h> namespace g{ namespace iOS{ namespace QuartzCore{ // ../../../../../../../usr/local/share/uno/Packages/Experimental.iOS/0.24.0/st...
57.394495
538
0.646739
359d83a58dc46b4fa80fded4f093ab723cb9d5a4
1,516
cpp
C++
cplus/Day-Month-Year.cpp
chtld/Programming-and-Algorithm-Course
669f266fc97db9050013ffbb388517667de33433
[ "MIT" ]
2
2019-06-10T11:50:06.000Z
2019-10-14T08:00:41.000Z
cplus/Day-Month-Year.cpp
chtld/Programming-and-Algorithm-Course
669f266fc97db9050013ffbb388517667de33433
[ "MIT" ]
null
null
null
cplus/Day-Month-Year.cpp
chtld/Programming-and-Algorithm-Course
669f266fc97db9050013ffbb388517667de33433
[ "MIT" ]
null
null
null
#include<iostream> int days = 0; int getDayOfWeek(); int getYear(); int getMonth(bool isLeapYear); int main(){ int year = 0, month = 0, dayOfWeek = 0; bool isLeapYear = true; char week[7][10] = {"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}; while ((std::c...
23.323077
71
0.511214
359dc15ccb18eb076d57ac1e794a721ab27c673f
215,144
cpp
C++
libraries/wallet/wallet.cpp
LianshuOne/yoyow-core
fba1274b79f85110febd66aab428473ad75148a7
[ "MIT" ]
1
2019-06-11T09:00:42.000Z
2019-06-11T09:00:42.000Z
libraries/wallet/wallet.cpp
LianshuOne/yoyow-core
fba1274b79f85110febd66aab428473ad75148a7
[ "MIT" ]
null
null
null
libraries/wallet/wallet.cpp
LianshuOne/yoyow-core
fba1274b79f85110febd66aab428473ad75148a7
[ "MIT" ]
null
null
null
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
43.577881
299
0.600835
359fec4dd90b2814e7c0cdaf08cbbe014cf48301
815
cc
C++
net/tools/quic/quic_reliable_client_stream.cc
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
9
2018-09-21T05:36:12.000Z
2021-11-15T15:14:36.000Z
net/tools/quic/quic_reliable_client_stream.cc
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-12-13T19:44:12.000Z
2021-12-13T19:44:12.000Z
net/tools/quic/quic_reliable_client_stream.cc
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:52:03.000Z
2022-02-13T17:58:45.000Z
// Copyright (c) 2012 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 "net/tools/quic/quic_reliable_client_stream.h" using std::string; namespace net { namespace tools { // Sends body data to the server and r...
29.107143
76
0.727607
35a0a0730d0aeb6b2ecb3c9d65ff6946c738f578
1,420
cc
C++
chrome/browser/media/webrtc/webrtc_log_util.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
chrome/browser/media/webrtc/webrtc_log_util.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
chrome/browser/media/webrtc/webrtc_log_util.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 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 "chrome/browser/media/webrtc/webrtc_log_util.h" #include <vector> #include "base/bind.h" #include "base/task/post_task.h" #include "base/task/t...
38.378378
79
0.759155
35a1c9c73db14a968467b53838fd69dd9f31900f
2,721
cpp
C++
Arduino/lib/Machine/Machine.cpp
Kike10hd/ExpendeMax
c0d38a3af2c6df33d9838ac6c9579d110870d1fc
[ "CNRI-Python", "RSA-MD" ]
null
null
null
Arduino/lib/Machine/Machine.cpp
Kike10hd/ExpendeMax
c0d38a3af2c6df33d9838ac6c9579d110870d1fc
[ "CNRI-Python", "RSA-MD" ]
null
null
null
Arduino/lib/Machine/Machine.cpp
Kike10hd/ExpendeMax
c0d38a3af2c6df33d9838ac6c9579d110870d1fc
[ "CNRI-Python", "RSA-MD" ]
null
null
null
#include <Arduino.h> #include "protothreads.h" #include "Machine.h" void Machine::inizialice(Led red, Led green, Servo servo, Joystick joy, Adafruit_SSD1306 oled) { this->_red = red; this->_green = green; this->_servo = servo; this->_joy = joy; this->_oled = oled; this->_servo.write(0); this->_point = 0; this...
21.425197
96
0.629915
35a7a08561f25f446421101cf82034e46321f4f9
503
cpp
C++
src/lpp_client.cpp
logpicker/prototype
0a25fccc24a8e298dee9bae240fcd73a4e5d185e
[ "MIT" ]
null
null
null
src/lpp_client.cpp
logpicker/prototype
0a25fccc24a8e298dee9bae240fcd73a4e5d185e
[ "MIT" ]
null
null
null
src/lpp_client.cpp
logpicker/prototype
0a25fccc24a8e298dee9bae240fcd73a4e5d185e
[ "MIT" ]
null
null
null
#include "logpicker_t.hpp" #include "types.hpp" #include "logpicker_t.hpp" #include "log.hpp" #include "cert.hpp" #include "utils.hpp" int main() { cert_t cert = read_cert_from_disk("/home/leen/Projects/TU_BS/misc/LogPicker/lpp/data/github/DER/github.com"); hash_t hash = hash_certificate(cert); std::cout ...
26.473684
113
0.658052
35a8f8a2e57d67bf9ee9fd02b644b79bf7480f8d
2,006
cpp
C++
src/AutoVersionTest.cpp
adamyg/libappupdater
a9dd531499cc87046347d9710574b459e5d541f3
[ "MIT" ]
1
2021-12-22T07:52:39.000Z
2021-12-22T07:52:39.000Z
src/AutoVersionTest.cpp
adamyg/libappupdater
a9dd531499cc87046347d9710574b459e5d541f3
[ "MIT" ]
null
null
null
src/AutoVersionTest.cpp
adamyg/libappupdater
a9dd531499cc87046347d9710574b459e5d541f3
[ "MIT" ]
null
null
null
// // // #include <gtest/gtest.h> #include "AutoVersion.h" TEST(AutoVersionTest, ParsesUpstreamOnly) { AutoVersion v("1"); EXPECT_EQ(0, v.Epoch()); EXPECT_STREQ("1", v.Upstream()); EXPECT_STREQ("0", v.Revision()); } TEST(AutoVersionTest, ParsesEpochs) { AutoVersion v("1:2.0.1"); EXPECT_EQ(1, ...
25.717949
68
0.631107
35b0d73ad5bd33b850e20510997f61490a994c66
1,508
cpp
C++
src/provider/widgets/auditlogbrowserdialog.cpp
KDE/kuserfeedback
7dea960e4e83a5a002ad9d3fd53ad32c9b46e96c
[ "MIT", "BSD-3-Clause" ]
7
2017-04-26T07:00:24.000Z
2020-07-30T10:19:36.000Z
src/provider/widgets/auditlogbrowserdialog.cpp
KDE/kuserfeedback
7dea960e4e83a5a002ad9d3fd53ad32c9b46e96c
[ "MIT", "BSD-3-Clause" ]
null
null
null
src/provider/widgets/auditlogbrowserdialog.cpp
KDE/kuserfeedback
7dea960e4e83a5a002ad9d3fd53ad32c9b46e96c
[ "MIT", "BSD-3-Clause" ]
3
2017-06-17T19:16:07.000Z
2021-12-13T20:40:51.000Z
/* SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org> SPDX-License-Identifier: MIT */ #include "auditlogbrowserdialog.h" #include "ui_auditlogbrowserdialog.h" #include <auditloguicontroller.h> #include <QDateTime> #include <QPushButton> using namespace KUserFeedback; AuditLogBrowserDialog::Audit...
26.928571
139
0.744695
35b4271fe40b17a31882ef7de3665b6288a65975
782
hpp
C++
src/main/include/Configuration.hpp
Apophis5006/Subsystem-Library
7537637a166a8f161b95d0cae3152f02c87d61de
[ "MIT" ]
1
2022-02-15T01:03:05.000Z
2022-02-15T01:03:05.000Z
src/main/include/Configuration.hpp
Apophis5006/Subsystem-Library
7537637a166a8f161b95d0cae3152f02c87d61de
[ "MIT" ]
null
null
null
src/main/include/Configuration.hpp
Apophis5006/Subsystem-Library
7537637a166a8f161b95d0cae3152f02c87d61de
[ "MIT" ]
null
null
null
//-------------------Joysticks---------------- #define DRIVE_STICK 0 #define STEER_STICK 1 //-------------------Drivetrain--------------- #define SWERVE_DISTANCE_FRONT 10 //distance between swerve drives from front to back (inches) #define SWERVE_DISTANCE_SIDE 10 //distance between swerve drives from side to side (inc...
26.965517
93
0.713555
35b4e0dce88084df4ceabb3d7fdedcaacce3fa5f
8,498
cpp
C++
Boost/Boost/errorHandling/boost_system.cpp
goodspeed24e/Programming
ae73fad022396ea03105aad83293facaeea561ae
[ "MIT" ]
1
2021-03-12T19:29:33.000Z
2021-03-12T19:29:33.000Z
Boost/Boost/errorHandling/boost_system.cpp
goodspeed24e/Programming
ae73fad022396ea03105aad83293facaeea561ae
[ "MIT" ]
1
2019-03-13T01:36:12.000Z
2019-03-13T01:36:12.000Z
Boost/Boost/errorHandling/boost_system.cpp
goodspeed24e/Programming
ae73fad022396ea03105aad83293facaeea561ae
[ "MIT" ]
null
null
null
/* Boost.System is a small library defining four classes to identify errors. boost::system::error_code is the most basic class and represents operating system specific errors. Since operating systems typically enumerate errors, boost::system::error_code saves an error code in a variable of type int. The following e...
40.084906
94
0.751589
35b549edc2bb88298d2a8d909de8118dade9ba15
3,156
hpp
C++
src/rolmodl/hpp/Tex.hpp
maximsmol/rolmodl
fb41b7f9f4669eea84ce6f1574cdf1be9b6f072f
[ "MIT" ]
1
2022-02-19T21:34:42.000Z
2022-02-19T21:34:42.000Z
src/rolmodl/hpp/Tex.hpp
maximsmol/rolmodl
fb41b7f9f4669eea84ce6f1574cdf1be9b6f072f
[ "MIT" ]
null
null
null
src/rolmodl/hpp/Tex.hpp
maximsmol/rolmodl
fb41b7f9f4669eea84ce6f1574cdf1be9b6f072f
[ "MIT" ]
1
2021-12-07T09:33:42.000Z
2021-12-07T09:33:42.000Z
#pragma once #include "forwarddecl/Tex.hpp" #include "forwarddecl/Ren.hpp" #include "Base.hpp" #include "PixelFmt.hpp" #include "Geom.hpp" namespace rolmodl { enum class TextureType { Static, Lock, Ren }; namespace textureType::unsafe { constexpr TextureType fromSDLEnum(const int a) noexcept { if...
24.276923
80
0.631179
35b6f05cadc93c6f3b411fef9c45d921c05c49ba
761
hpp
C++
include/instance.hpp
0x280/ImNimation
bdd8f78ef3bba9ca4c0c3b094ea349a40508e2f5
[ "Unlicense" ]
2
2022-03-04T10:05:29.000Z
2022-03-26T14:09:08.000Z
include/instance.hpp
0x280/ImNimation
bdd8f78ef3bba9ca4c0c3b094ea349a40508e2f5
[ "Unlicense" ]
null
null
null
include/instance.hpp
0x280/ImNimation
bdd8f78ef3bba9ca4c0c3b094ea349a40508e2f5
[ "Unlicense" ]
null
null
null
#pragma once #include <Windows.h> #include <thread> #include <condition_variable> #include <mutex> #pragma warning( push ) #pragma warning( disable: 26495 ) #pragma warning( disable: 4005 ) #include <d3d11.h> #pragma warning( pop ) using namespace std::chrono_literals; class Instance { private: inline static Ins...
20.567568
51
0.718791
35b8397827a7b1f9700a9f9b2bba950c91fa569c
906
cpp
C++
10282.cpp
felikjunvianto/kfile-uvaoj-submissions
5bd8b3b413ca8523abe412b0a0545f766f70ce63
[ "MIT" ]
null
null
null
10282.cpp
felikjunvianto/kfile-uvaoj-submissions
5bd8b3b413ca8523abe412b0a0545f766f70ce63
[ "MIT" ]
null
null
null
10282.cpp
felikjunvianto/kfile-uvaoj-submissions
5bd8b3b413ca8523abe412b0a0545f766f70ce63
[ "MIT" ]
null
null
null
#include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <utility> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make_pair #define pi 2*acos(0.0) #de...
18.12
85
0.610375
35bfa942cddd463f93d90460ef7b939aae562857
1,972
cpp
C++
soruce/main.cpp
juyuanmao/pick-ghost
c0e9713d63c1428a93e64dd33497cb97a37758c1
[ "Unlicense" ]
null
null
null
soruce/main.cpp
juyuanmao/pick-ghost
c0e9713d63c1428a93e64dd33497cb97a37758c1
[ "Unlicense" ]
null
null
null
soruce/main.cpp
juyuanmao/pick-ghost
c0e9713d63c1428a93e64dd33497cb97a37758c1
[ "Unlicense" ]
null
null
null
// // main.cpp // pick-ghost // // Created by Ju Yuanmao on 2017/7/15. // Copyleft // #include <iostream> #include <fstream> #include <algorithm> #include "randi.hpp" #include "cards.hpp" #include "player.hpp" using std::cin; using std::cout; using std::endl; int main(int argc, const char * argv[]) { std::of...
21.911111
62
0.399594
35c17388680166e4bd3c03c481724aa2ec6cba04
6,640
cpp
C++
src/unused/SceneData.cpp
rampart5555/ark
1399679feac89a84d3597e377992e90756e27dd0
[ "Apache-2.0" ]
null
null
null
src/unused/SceneData.cpp
rampart5555/ark
1399679feac89a84d3597e377992e90756e27dd0
[ "Apache-2.0" ]
null
null
null
src/unused/SceneData.cpp
rampart5555/ark
1399679feac89a84d3597e377992e90756e27dd0
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <osgDB/ReadFile> #include <osgDB/WriteFile> #include <osg/io_utils> #include <osg/UserDataContainer> #include <osg/ValueObject> #include "SceneData.h" #include "AssetsManager.h" #include "Logging.h" static void build_scene_data(const char *osgt_file) { char buf[20]; osg::Group *roo...
31.923077
106
0.578313
35c7abdfd708fda0bc43202b6a43ad8a27732f1e
391,712
cxx
C++
tools/MuPad/example_gmm_objective_mex_d10_K25.cxx
dsyme/ADBench
87af0219a568807f8432754688ceb636efac12c6
[ "MIT" ]
58
2019-12-30T16:22:01.000Z
2022-01-23T12:26:51.000Z
tools/MuPad/example_gmm_objective_mex_d10_K25.cxx
dsyme/ADBench
87af0219a568807f8432754688ceb636efac12c6
[ "MIT" ]
112
2019-05-25T07:26:58.000Z
2019-12-28T13:55:33.000Z
tools/MuPad/example_gmm_objective_mex_d10_K25.cxx
dsyme/ADBench
87af0219a568807f8432754688ceb636efac12c6
[ "MIT" ]
22
2020-03-12T16:37:55.000Z
2022-02-23T10:14:37.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #line 2 "au_autodiff_generate_template.cpp" #include <math.h> #include "au_mex.h" // Autogenerated by au_ccode // FROM: f // au_autodiff_template.cpp - outline code for au_autodiff* // awf@microsoft.com, Dec 13 void mlx_function(mlx_inputs& ...
43.933603
25,081
0.669681
35cd08b80a1bb8dc98393a6ba045867b13c82f21
20,924
cpp
C++
ZF/ZFCore/zfsrc/ZFCore/ZFObjectDef/ZFObjectObserver.cpp
ZFFrameworkDist/ZFFramework
6b498e7b95ee6d6aaa28d8369eef8c2ff94daaf7
[ "MIT" ]
57
2016-06-12T11:05:55.000Z
2021-05-22T13:12:17.000Z
ZF/ZFCore/zfsrc/ZFCore/ZFObjectDef/ZFObjectObserver.cpp
ZFFrameworkDist/ZFFramework
6b498e7b95ee6d6aaa28d8369eef8c2ff94daaf7
[ "MIT" ]
null
null
null
ZF/ZFCore/zfsrc/ZFCore/ZFObjectDef/ZFObjectObserver.cpp
ZFFrameworkDist/ZFFramework
6b498e7b95ee6d6aaa28d8369eef8c2ff94daaf7
[ "MIT" ]
20
2016-05-26T04:47:37.000Z
2020-12-13T01:39:39.000Z
#include "ZFObjectCore.h" #include "ZFObjectImpl.h" #include "ZFCore/ZFSTLWrapper/zfstl_string.h" #include "ZFCore/ZFSTLWrapper/zfstl_map.h" #include "ZFCore/ZFSTLWrapper/zfstl_deque.h" ZF_NAMESPACE_GLOBAL_BEGIN // ============================================================ // ZFListenerData void ZFListenerData::ob...
29.721591
136
0.554626
35d2173ca2be59980e583a529b38a31d63fc9d25
341
cpp
C++
sheldon_behaviors/take_object_behavior/src/behavior_plugin.cpp
zwartepoester/sheldon
7001551b65cd5b595a0a93e58528198d3d1e5553
[ "Apache-2.0" ]
1
2021-01-02T18:17:52.000Z
2021-01-02T18:17:52.000Z
sheldon_behaviors/take_object_behavior/src/behavior_plugin.cpp
zwartepoester/sheldon
7001551b65cd5b595a0a93e58528198d3d1e5553
[ "Apache-2.0" ]
null
null
null
sheldon_behaviors/take_object_behavior/src/behavior_plugin.cpp
zwartepoester/sheldon
7001551b65cd5b595a0a93e58528198d3d1e5553
[ "Apache-2.0" ]
4
2017-09-16T03:56:01.000Z
2018-09-19T02:15:57.000Z
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved #include <pluginlib/class_list_macros.h> #include <behavior_common/behavior.h> PYTHON_BEHAVIOR_PLUGIN(take_object_behavior, "TAKE_OBJECT"); PLUGINLIB_EXPORT_CLASS(take_object_behavior, behavior_comm...
37.888889
78
0.821114
35db1fde2e1f3b753bde44f9c864d80b8bd50157
28,340
cpp
C++
src/CamMonitor/CamMonitor/LiveTab.cpp
infinicam/infinicam-samples
47c9c0dd79e1991d17fbcff91f49ab15a69c519a
[ "MIT" ]
null
null
null
src/CamMonitor/CamMonitor/LiveTab.cpp
infinicam/infinicam-samples
47c9c0dd79e1991d17fbcff91f49ab15a69c519a
[ "MIT" ]
null
null
null
src/CamMonitor/CamMonitor/LiveTab.cpp
infinicam/infinicam-samples
47c9c0dd79e1991d17fbcff91f49ab15a69c519a
[ "MIT" ]
1
2020-12-23T04:38:56.000Z
2020-12-23T04:38:56.000Z
#include "stdafx.h" #include "LiveTab.h" #include "resource.h" #include "AppDefine.h" #include "CamMonitor.h" #include "cih.h" #include "ChildView.h" #include "SelectCameraDialog.h" #include "SaveLiveDialog.h" #include "Util.h" IMPLEMENT_DYNAMIC(CLiveTab, CBaseTab) CLiveTab::CLiveTab(CWnd* pParent) : CBaseTab(CLive...
24.347079
123
0.749365
e3028bc70fab84b4590d18f85286390ff3a83e29
1,797
hpp
C++
include/engine/utils/timing/Profiler.hpp
Ghabriel/CppGameArchitecture
1212cf1e140ba78d72f2aea2aff56ec8c3e23293
[ "Apache-2.0" ]
6
2018-08-05T21:45:23.000Z
2021-10-30T19:48:34.000Z
include/engine/utils/timing/Profiler.hpp
Ghabriel/CppGameArchitecture
1212cf1e140ba78d72f2aea2aff56ec8c3e23293
[ "Apache-2.0" ]
null
null
null
include/engine/utils/timing/Profiler.hpp
Ghabriel/CppGameArchitecture
1212cf1e140ba78d72f2aea2aff56ec8c3e23293
[ "Apache-2.0" ]
1
2021-11-01T20:15:38.000Z
2021-11-01T20:15:38.000Z
#ifndef UTILS_TIMING_PROFILER_HPP #define UTILS_TIMING_PROFILER_HPP #include <chrono> namespace engine::utils { /** * \brief Provides a simple way to profile arbitrary code. */ class Profiler { public: /** * \brief Starts a time measurement. */ void start() { ...
26.820896
83
0.558152
e30649c2f07dd51ddd50ac43a2e71ebf3206462c
1,176
cpp
C++
chapter12/StrBlob_VS2017/StrBlob/StrBlob.cpp
kingmax/cpp
b0c3abcfc77094421d906695a4ac167463a43b92
[ "Apache-2.0" ]
null
null
null
chapter12/StrBlob_VS2017/StrBlob/StrBlob.cpp
kingmax/cpp
b0c3abcfc77094421d906695a4ac167463a43b92
[ "Apache-2.0" ]
null
null
null
chapter12/StrBlob_VS2017/StrBlob/StrBlob.cpp
kingmax/cpp
b0c3abcfc77094421d906695a4ac167463a43b92
[ "Apache-2.0" ]
null
null
null
#include "StrBlob.h" StrBlob::StrBlob() : data(std::make_shared<std::vector<std::string>>()) {}; StrBlob::StrBlob(std::initializer_list<std::string> il) : data(std::make_shared<std::vector<std::string>>(il)) { } void StrBlob::check(StrBlob::size_type sz, const std::string &msg) const { if (sz >= data->size()) th...
17.043478
110
0.668367
e309c1e95eee4987d9f7c0a8851787e62ea609c2
573
cpp
C++
AIPaddle.cpp
deviant-zairus/pong
ae76c13c5801212051749bfcc967d231c1821920
[ "Apache-2.0" ]
null
null
null
AIPaddle.cpp
deviant-zairus/pong
ae76c13c5801212051749bfcc967d231c1821920
[ "Apache-2.0" ]
null
null
null
AIPaddle.cpp
deviant-zairus/pong
ae76c13c5801212051749bfcc967d231c1821920
[ "Apache-2.0" ]
null
null
null
#include "AIPaddle.h" #include "Ball.h" AIPaddle::AIPaddle(Ball* ball) : Paddle(irr::core::vector3df(25.0f, 0.0f, 0.0f)) { this->_ball = ball; } AIPaddle::~AIPaddle() { } bool AIPaddle::Update(float deltaTime, InputHandler* ih) { irr::core::vector3df ballPos = this->_ball->GetPosition(); irr::core::vector3df myP...
21.222222
80
0.673647
e30afdc6cf6d5316ced351011cd5310134ba338e
465
cpp
C++
src/28-bucket-sort/cpp/main.cpp
MichaelZalla/data-structures-review
4ef1a70cf28031160eafc81fe3557791c58aed32
[ "MIT" ]
null
null
null
src/28-bucket-sort/cpp/main.cpp
MichaelZalla/data-structures-review
4ef1a70cf28031160eafc81fe3557791c58aed32
[ "MIT" ]
null
null
null
src/28-bucket-sort/cpp/main.cpp
MichaelZalla/data-structures-review
4ef1a70cf28031160eafc81fe3557791c58aed32
[ "MIT" ]
null
null
null
#include <vector> #include "../../utils/cpp/Assert.h" #include "../../utils/cpp/PrintVector.h" #include "./BucketSort.h" int main(int argc, char** argv) { int unsorted[] = { 5,5,1,2,4,5,1,4,2,4,2,3,1,2,4,5,1 }; int sorted[] = { 1,1,1,1,2,2,2,2,3,4,4,4,4,5,5,5,5 }; int n = sizeof(unsorted)/sizeof(int); std::vec...
19.375
69
0.606452
e30f3f758f7d2715d8c7ab767c757482e7f5cd5c
852
cpp
C++
src/misaxx/core/misa_parameter_base.cpp
applied-systems-biology/misaxx-core
23d5523b75ef1a8870fba7a0363af2106924ca5f
[ "BSD-2-Clause" ]
null
null
null
src/misaxx/core/misa_parameter_base.cpp
applied-systems-biology/misaxx-core
23d5523b75ef1a8870fba7a0363af2106924ca5f
[ "BSD-2-Clause" ]
null
null
null
src/misaxx/core/misa_parameter_base.cpp
applied-systems-biology/misaxx-core
23d5523b75ef1a8870fba7a0363af2106924ca5f
[ "BSD-2-Clause" ]
null
null
null
/** * Copyright by Ruman Gerst * Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge * https://www.leibniz-hki.de/en/applied-systems-biology.html * HKI-Center for Systems Biology of Infection * Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Insitute (HKI) *...
40.571429
158
0.74061
e3114210a4b46d76da8a8768405a17bd976435f6
407
hpp
C++
fts/fts_share/fts_define.hpp
iihiro/FHE-Table-Search
a035cf9af311a8cb123a08d5d1378acd739df4a4
[ "Apache-2.0" ]
2
2020-07-19T15:54:42.000Z
2020-08-20T06:35:05.000Z
fts/fts_share/fts_define.hpp
yamanalab/FHE-Table-Search
0104ace6e91409730cc6a58481a0f8459892d6dc
[ "Apache-2.0" ]
2
2020-07-09T01:41:40.000Z
2020-08-18T03:24:38.000Z
fts/fts_share/fts_define.hpp
iihiro/FHE-Table-Search
a035cf9af311a8cb123a08d5d1378acd739df4a4
[ "Apache-2.0" ]
1
2020-01-21T05:16:28.000Z
2020-01-21T05:16:28.000Z
#ifndef FTS_DEFINE_HPP #define FTS_DEFINE_HPP #define FTS_TIMEOUT_SEC (60) #define FTS_RETRY_INTERVAL_USEC (2000000) #define FTS_DEFAULT_MAX_CONCURRENT_QUERIES 128 #define FTS_DEFAULT_MAX_RESULTS 128 #define FTS_DEFAULT_MAX_RESULT_LIFETIME_SEC 50000 #define FTS_LUTFILE_EXT "csv" #define FTS_LUT_POSSIBLE_INPUT_NUM_O...
23.941176
49
0.847666
e3136bb114d10a8599817c9a4b4a0b2273a949b4
1,288
cpp
C++
src/main/cpp/wpiliblua/dashboard.cpp
bvisness/FRCLuaTest
64fae7f258013af10d5d359fedf5c8902214730a
[ "BSD-3-Clause" ]
1
2021-11-11T23:18:58.000Z
2021-11-11T23:18:58.000Z
src/main/cpp/wpiliblua/dashboard.cpp
frc-2175/2021Lua
64fae7f258013af10d5d359fedf5c8902214730a
[ "BSD-3-Clause" ]
null
null
null
src/main/cpp/wpiliblua/dashboard.cpp
frc-2175/2021Lua
64fae7f258013af10d5d359fedf5c8902214730a
[ "BSD-3-Clause" ]
null
null
null
// Automatically generated by bindings.c. DO NOT EDIT. #include <wpi/StringRef.h> #include <wpi/ArrayRef.h> #include <frc/smartdashboard/SmartDashboard.h> #include "luadef.h" LUAFUNC void SmartDashboard_PutNumber(const char* keyName, double value) { frc::SmartDashboard::PutNumber((wpi::StringRef)keyName,...
40.25
130
0.738354
e31434cb7ae51ebbbc0295413f7cbdb6a0fda312
8,424
cpp
C++
src/argss/modules/akeys.cpp
cstrahan/argss
cc595bd9a1e4a2c079ea181ff26bdd58d9e65ace
[ "BSD-2-Clause" ]
1
2015-02-12T01:24:04.000Z
2015-02-12T01:24:04.000Z
src/argss/modules/akeys.cpp
cstrahan/argss
cc595bd9a1e4a2c079ea181ff26bdd58d9e65ace
[ "BSD-2-Clause" ]
null
null
null
src/argss/modules/akeys.cpp
cstrahan/argss
cc595bd9a1e4a2c079ea181ff26bdd58d9e65ace
[ "BSD-2-Clause" ]
null
null
null
///////////////////////////////////////////////////////////////////////////// // ARGSS - Copyright (c) 2009 - 2010, Alejandro Marzini (vgvgf) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // ar...
47.061453
78
0.647317
e3150079d1432cceb4c51ea2bda9e1f9307372bf
520
hpp
C++
library/ATF/_pvp_order_view_end_zoclInfo.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/_pvp_order_view_end_zoclInfo.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/_pvp_order_view_end_zoclInfo.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <_pvp_order_view_end_zocl.hpp> START_ATF_NAMESPACE namespace Info { using _pvp_order_view_end_zoclsize2_ptr = int (WINAPIV*)(struct _pvp_order_...
34.666667
135
0.776923
e31570afb71316f7e4160f8369a6fe6a8f742191
1,457
cpp
C++
src/bullet.cpp
Harrand/Asteroids-Topaz
ce549802b0360f2554f4f6189d6ca0a486c4c928
[ "Apache-2.0" ]
null
null
null
src/bullet.cpp
Harrand/Asteroids-Topaz
ce549802b0360f2554f4f6189d6ca0a486c4c928
[ "Apache-2.0" ]
null
null
null
src/bullet.cpp
Harrand/Asteroids-Topaz
ce549802b0360f2554f4f6189d6ca0a486c4c928
[ "Apache-2.0" ]
null
null
null
// // Created by Harrand on 25/08/2018. // #include "bullet.hpp" #include "entity_manager.hpp" Bullet::Bullet(Vector2F position, Vector2F velocity, const Texture* bullet_texture, EntityManager& manager, DynamicSprite* shooter): DynamicSprite(1.0f, position, 0.0f, {Bullet::bullet_size, Bullet::bullet_size}, bullet_tex...
34.690476
313
0.716541
e319f162f2ac133c1961311e5cfbf7466a3f887a
8,669
cpp
C++
src/vertexcover.cpp
manighahrmani/PACE2017-min-fill
496fffc8b61b3507611ab118f211dc06457e0855
[ "MIT" ]
1
2020-05-29T15:47:16.000Z
2020-05-29T15:47:16.000Z
src/vertexcover.cpp
manighahrmani/PACE2017-min-fill
496fffc8b61b3507611ab118f211dc06457e0855
[ "MIT" ]
null
null
null
src/vertexcover.cpp
manighahrmani/PACE2017-min-fill
496fffc8b61b3507611ab118f211dc06457e0855
[ "MIT" ]
1
2020-05-29T15:47:21.000Z
2020-05-29T15:47:21.000Z
#include "vertexcover.hpp" #include "graph.hpp" #include "timer.hpp" #include "global.hpp" #include <vector> #include <queue> #include <cassert> #include <iostream> #include <cstring> #include <algorithm> #include <map> #define F first #define S second using namespace std; namespace VertexCover { int uu[maxN]; int...
20.160465
85
0.484139
e31cc4ed04daf4742c02d2081185cffe9397ed0c
3,136
cpp
C++
src/DataTransmit.cpp
jellysheep/spheresim
8475371f987c3c68ade1116ee7824adcfe702d35
[ "BSD-3-Clause" ]
1
2015-03-20T15:09:53.000Z
2015-03-20T15:09:53.000Z
src/DataTransmit.cpp
jellysheep/spheresim
8475371f987c3c68ade1116ee7824adcfe702d35
[ "BSD-3-Clause" ]
null
null
null
src/DataTransmit.cpp
jellysheep/spheresim
8475371f987c3c68ade1116ee7824adcfe702d35
[ "BSD-3-Clause" ]
null
null
null
/** \file * \author Max Mertens <max.mail@dameweb.de> * \section LICENSE * Copyright (c) 2013, Max Mertens. * All rights reserved. * This file is licensed under the "BSD 3-Clause License". * Full license text is under the file "LICENSE" provided with this code. */ #include "Sphere.hpp" #include "DataTransmit.hpp...
21.333333
76
0.661352
e321181c29b25910e4fcaec2e4a55f7475ca0b53
6,706
cpp
C++
ecmascript/interpreter/frame_handler.cpp
openharmony-sig-ci/ark_js_runtime
72fcff4c114fd8323c9a5d1a835efeac043e9a72
[ "Apache-2.0" ]
null
null
null
ecmascript/interpreter/frame_handler.cpp
openharmony-sig-ci/ark_js_runtime
72fcff4c114fd8323c9a5d1a835efeac043e9a72
[ "Apache-2.0" ]
null
null
null
ecmascript/interpreter/frame_handler.cpp
openharmony-sig-ci/ark_js_runtime
72fcff4c114fd8323c9a5d1a835efeac043e9a72
[ "Apache-2.0" ]
1
2021-09-13T12:12:04.000Z
2021-09-13T12:12:04.000Z
/* * Copyright (c) 2021 Huawei Device 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 required by applicable law ...
33.19802
94
0.700268
e3232cb7da6a0da1723a513c5499943d2cb043e1
1,277
hpp
C++
include/meevax/kernel/stack.hpp
yamacir-kit/meevax
ff9449a16380eac727c914a33449e9b3a7597b8e
[ "Apache-2.0" ]
13
2018-11-27T02:06:58.000Z
2022-01-01T16:07:12.000Z
include/meevax/kernel/stack.hpp
yamacir-kit/meevax
ff9449a16380eac727c914a33449e9b3a7597b8e
[ "Apache-2.0" ]
89
2017-11-24T23:58:06.000Z
2022-02-06T14:54:01.000Z
include/meevax/kernel/stack.hpp
yamacir-kit/meevax
ff9449a16380eac727c914a33449e9b3a7597b8e
[ "Apache-2.0" ]
4
2017-12-22T15:45:46.000Z
2020-01-12T19:50:45.000Z
/* Copyright 2018-2021 Tatsuya Yamasaki. 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 agree...
26.061224
75
0.703994
e326c9f13c30636263244c06e30fc48f88dbb966
1,716
cpp
C++
dialog.cpp
mguludag/QtIFW_Frontend
1f670e4e633ed5fc92412d523a7365c6b16ade58
[ "BSL-1.0" ]
11
2020-12-28T13:53:16.000Z
2022-03-29T04:19:32.000Z
dialog.cpp
mguludag/QtIFW_Frontend
1f670e4e633ed5fc92412d523a7365c6b16ade58
[ "BSL-1.0" ]
null
null
null
dialog.cpp
mguludag/QtIFW_Frontend
1f670e4e633ed5fc92412d523a7365c6b16ade58
[ "BSL-1.0" ]
1
2020-12-28T13:53:24.000Z
2020-12-28T13:53:24.000Z
/***************************************************************************** * dialog.cpp * * Created: 12/20/2020 2020 by mguludag * * Copyright 2020 mguludag. All rights reserved. * * This file may be distributed under the terms of GNU Public License version * 3 (GPL v3) as defined by the Free Softwa...
39
80
0.626457
e327f8aaa69d6be9637dd6975423007026dd67e8
59
cpp
C++
src/base/shape.cpp
wzhhh123/SimpleRT
e2ff1a2773eecbc388568fdc2b5c20ead45d262d
[ "Apache-2.0" ]
null
null
null
src/base/shape.cpp
wzhhh123/SimpleRT
e2ff1a2773eecbc388568fdc2b5c20ead45d262d
[ "Apache-2.0" ]
null
null
null
src/base/shape.cpp
wzhhh123/SimpleRT
e2ff1a2773eecbc388568fdc2b5c20ead45d262d
[ "Apache-2.0" ]
null
null
null
#include "shape.h" FLOAT Shape::Area() { return 0; }
6.555556
33
0.576271
e32921ab796018ed3107d779fbe74a96a7df96b3
5,673
cpp
C++
src/stream_transformer_payload_to_payload.cpp
luibass92/mqttraffic-warden
a421b04aff99927e92f0bda4c0543af91abef6c5
[ "MIT" ]
null
null
null
src/stream_transformer_payload_to_payload.cpp
luibass92/mqttraffic-warden
a421b04aff99927e92f0bda4c0543af91abef6c5
[ "MIT" ]
null
null
null
src/stream_transformer_payload_to_payload.cpp
luibass92/mqttraffic-warden
a421b04aff99927e92f0bda4c0543af91abef6c5
[ "MIT" ]
null
null
null
#include "stream_transformer_payload_to_payload.h" #include <iostream> #include "cast.h" #include "exceptions.h" #include "json_utilities.h" #include "spdlog/spdlog.h" #include "utilities.h" namespace tw { void StreamTransformerPayloadToPayload::setup(const nlohmann::json& p_json) { if (!is_valid_setup(p_json)) {...
36.365385
80
0.624008
e32967d92a125756460bf2a3ea5989ca1e3dba94
285
cpp
C++
beaker/decl.cpp
thehexia/beaker2
ca6c563c51be4a08d78e4eda007967bc4ae812a2
[ "Apache-2.0" ]
null
null
null
beaker/decl.cpp
thehexia/beaker2
ca6c563c51be4a08d78e4eda007967bc4ae812a2
[ "Apache-2.0" ]
null
null
null
beaker/decl.cpp
thehexia/beaker2
ca6c563c51be4a08d78e4eda007967bc4ae812a2
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2015 Andrew Sutton // All rights reserved #include "decl.hpp" #include "type.hpp" Function_type const* Function_decl::type() const { return cast<Function_type>(Decl::type()); } Type const* Function_decl::return_type() const { return type()->return_type(); }
13.571429
43
0.705263
e32c1ce60e57de950f6115d4dabe6096d7616f2a
382
cpp
C++
Lowercase villains/main.cpp
ThusharaX/Algothon-Entrance-Test-2021
f4e743286ed66b3b25dbfde16b6c418b4fe56c16
[ "MIT" ]
null
null
null
Lowercase villains/main.cpp
ThusharaX/Algothon-Entrance-Test-2021
f4e743286ed66b3b25dbfde16b6c418b4fe56c16
[ "MIT" ]
null
null
null
Lowercase villains/main.cpp
ThusharaX/Algothon-Entrance-Test-2021
f4e743286ed66b3b25dbfde16b6c418b4fe56c16
[ "MIT" ]
null
null
null
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { string word; int strLen = 0; int count = 0; getline (cin, word); strLen = word.length(); for (int i = 0; i < strLen+1; i++) { if (islower(word[i])) { ...
14.692308
40
0.526178
e32d0195642344abdc5e1f7144acfba601f3fb66
8,475
cc
C++
src/ActProdXSecData.cc
UniversityofWarwick/ACTIVIA
bbd0dfa71337602f94d911fa5101a440e8c16606
[ "BSL-1.0" ]
1
2020-11-04T08:32:23.000Z
2020-11-04T08:32:23.000Z
src/ActProdXSecData.cc
UniversityofWarwick/ACTIVIA
bbd0dfa71337602f94d911fa5101a440e8c16606
[ "BSL-1.0" ]
null
null
null
src/ActProdXSecData.cc
UniversityofWarwick/ACTIVIA
bbd0dfa71337602f94d911fa5101a440e8c16606
[ "BSL-1.0" ]
1
2020-11-04T08:32:30.000Z
2020-11-04T08:32:30.000Z
// Class for defining the production cross-section data for // a specific target isotope. It stores a map of ActXSecGraphs // for the target isotope. #include "Activia/ActProdXSecData.hh" #include "Activia/ActBeamSpectrum.hh" #include "Activia/ActProdNuclideList.hh" #include "Activia/ActProdNuclide.hh" #include "Activ...
30.706522
92
0.688732
e3326e1d70ba23df0af2595682eeb96335c58dd9
1,145
cpp
C++
tests/benchmark/src/main.cpp
typesAreSpaces/AXDInterpolator
e0759c806480ff54b7a4f878e007b534a71dad44
[ "MIT" ]
null
null
null
tests/benchmark/src/main.cpp
typesAreSpaces/AXDInterpolator
e0759c806480ff54b7a4f878e007b534a71dad44
[ "MIT" ]
1
2021-06-24T18:55:46.000Z
2021-06-24T18:55:46.000Z
tests/benchmark/src/main.cpp
typesAreSpaces/AXDInterpolator
e0759c806480ff54b7a4f878e007b534a71dad44
[ "MIT" ]
null
null
null
#include "UAutomizerFileReader.h" #include <sys/stat.h> inline bool exists_file (const std::string& name) { struct stat buffer; return (stat (name.c_str(), &buffer) == 0); } int main(int argc, char * argv[]){ if(argc != 6){ std::cerr << "Invalid number of inputs.\n"; return 0; } // argv[1] -> ...
20.818182
67
0.583406
e33317d73edf89d40fd046ce25f1f608f05a5438
2,754
cpp
C++
Board.cpp
ahmadabed1/messageboard-b
05b154801690250737f56a31b71359ae71c0cdbb
[ "MIT" ]
null
null
null
Board.cpp
ahmadabed1/messageboard-b
05b154801690250737f56a31b71359ae71c0cdbb
[ "MIT" ]
null
null
null
Board.cpp
ahmadabed1/messageboard-b
05b154801690250737f56a31b71359ae71c0cdbb
[ "MIT" ]
null
null
null
#include <iostream> #include "Board.hpp" using namespace std; using namespace ariel; const char defaultChar = '_'; namespace ariel { void Board::update(unsigned int row, unsigned int col, bool flag, unsigned int num){ if(this->maxR!=0 || this->minR!=INT32_MAX || this->maxC!=0 || this->minC!=INT32_MAX)...
23.142857
93
0.439361
e3350eedf98cd11ade84d8706ee7ac6f3ac32187
346
cpp
C++
5659.删除字符串两端相同字符后的最短长度/minimumLength.cpp
YichengZhong/Top-Interview-Questions
124828d321f482a0eaa30012b3706267487bfd24
[ "MIT" ]
1
2019-10-21T14:40:39.000Z
2019-10-21T14:40:39.000Z
5659.删除字符串两端相同字符后的最短长度/minimumLength.cpp
YichengZhong/Top-Interview-Questions
124828d321f482a0eaa30012b3706267487bfd24
[ "MIT" ]
null
null
null
5659.删除字符串两端相同字符后的最短长度/minimumLength.cpp
YichengZhong/Top-Interview-Questions
124828d321f482a0eaa30012b3706267487bfd24
[ "MIT" ]
1
2020-11-04T07:33:34.000Z
2020-11-04T07:33:34.000Z
class Solution { public: int minimumLength(string s) { int l = 0, r = s.size() - 1; while(l < r) { if(s[l]!=s[r]) break; while(l<r-1 && s[l+1]==s[r])l++; while(r>l+1 && s[r-1]==s[l])r--; if(r-l+1>=2&&l<s.size()-1){l++;r--;} } ...
21.625
48
0.358382
e337577a783f4092f5d786c771233083f63ddc04
1,316
hpp
C++
src/time_advance.hpp
ckendrick/asgard
ed4fc90d240466e9ca0473071e8f64f84ad14462
[ "MIT" ]
null
null
null
src/time_advance.hpp
ckendrick/asgard
ed4fc90d240466e9ca0473071e8f64f84ad14462
[ "MIT" ]
null
null
null
src/time_advance.hpp
ckendrick/asgard
ed4fc90d240466e9ca0473071e8f64f84ad14462
[ "MIT" ]
null
null
null
#pragma once #include "batch.hpp" #include "boundary_conditions.hpp" #include "distribution.hpp" #include "kronmult.hpp" #include "program_options.hpp" #include "tensors.hpp" #include "timer.hpp" #include <mutex> // this function executes a time step using the current solution // vector x (in host_space). // on exit, ...
41.125
80
0.6231
e337c22c4c1c20ba19d6e4f5eb50e92950a8c5a7
8,818
cxx
C++
simplify/src/ModifySrc.cxx
kit-transue/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
2
2015-11-24T03:31:12.000Z
2015-11-24T16:01:57.000Z
simplify/src/ModifySrc.cxx
radtek/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
null
null
null
simplify/src/ModifySrc.cxx
radtek/software-emancipation-discover
bec6f4ef404d72f361d91de954eae9a3bd669ce3
[ "BSD-2-Clause" ]
1
2019-05-19T02:26:08.000Z
2019-05-19T02:26:08.000Z
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
23.961957
90
0.48934
e33862ce3570187180e966f9528856dfc2184844
926
cpp
C++
cpp/templates/25187583_single.cpp
berquist/eg
4c368b12eaaffcf0af8032f10348cf8bc1c3957a
[ "Unlicense" ]
null
null
null
cpp/templates/25187583_single.cpp
berquist/eg
4c368b12eaaffcf0af8032f10348cf8bc1c3957a
[ "Unlicense" ]
null
null
null
cpp/templates/25187583_single.cpp
berquist/eg
4c368b12eaaffcf0af8032f10348cf8bc1c3957a
[ "Unlicense" ]
null
null
null
#include <complex> #include <tuple> #include <type_traits> #include <vector> // Question: https://stackoverflow.com/questions/25187323/how-can-i-get-the-innermost-template-parameter-type // adapted from https://stackoverflow.com/a/25187583 template<typename T> struct inner_impl { using type = T; }; template<tem...
24.368421
109
0.699784
e3393fcf86a950ee192dfa381e4be20d3f3dfb74
55
hpp
C++
misc/tower.hpp
reubn/symfonisk
559ae842a159734ab5f1dc33b80a394577b3b576
[ "MIT" ]
1
2020-05-14T20:52:56.000Z
2020-05-14T20:52:56.000Z
misc/tower.hpp
reubn/symfonisk
559ae842a159734ab5f1dc33b80a394577b3b576
[ "MIT" ]
null
null
null
misc/tower.hpp
reubn/symfonisk
559ae842a159734ab5f1dc33b80a394577b3b576
[ "MIT" ]
null
null
null
extern void loopTower(ConfigurableSettings& settings);
27.5
54
0.854545
e33ae9b05e963577dceb99300623f4577c4e1bc0
2,616
cc
C++
CalibPPS/ESProducers/plugins/PrintTotemDAQMapping.cc
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibPPS/ESProducers/plugins/PrintTotemDAQMapping.cc
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibPPS/ESProducers/plugins/PrintTotemDAQMapping.cc
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
/**************************************************************************** * * This is a part of TOTEM offline software. * Authors: * Jan Kašpar (jan.kaspar@gmail.com) * ****************************************************************************/ #include "FWCore/Framework/interface/one/EDAnalyzer.h" #inc...
40.246154
114
0.59633
e33e420a4ac7ced8bdea543120a6f2f766a0d193
3,511
hpp
C++
generator/road_access_generator.hpp
vmihaylenko/omim
00087f340e723fc611cbc82e0ae898b9053b620a
[ "Apache-2.0" ]
null
null
null
generator/road_access_generator.hpp
vmihaylenko/omim
00087f340e723fc611cbc82e0ae898b9053b620a
[ "Apache-2.0" ]
1
2019-05-14T15:26:55.000Z
2019-05-16T11:00:33.000Z
generator/road_access_generator.hpp
vmihaylenko/omim
00087f340e723fc611cbc82e0ae898b9053b620a
[ "Apache-2.0" ]
null
null
null
#pragma once #include "generator/collector_interface.hpp" #include "generator/feature_builder.hpp" #include "generator/intermediate_elements.hpp" #include "generator/osm_element.hpp" #include "routing/road_access.hpp" #include "routing/vehicle_mask.hpp" #include <array> #include <cstdint> #include <fstream> #include...
30.267241
98
0.767588
e33e59c48289d6f00ecb5a7a86acfab1568e6907
3,074
cpp
C++
src/base/Uri.cpp
webosose/com.webos.service.intent
5e10a5affe450f0bb1eea197c92c65c884874427
[ "Apache-2.0" ]
null
null
null
src/base/Uri.cpp
webosose/com.webos.service.intent
5e10a5affe450f0bb1eea197c92c65c884874427
[ "Apache-2.0" ]
null
null
null
src/base/Uri.cpp
webosose/com.webos.service.intent
5e10a5affe450f0bb1eea197c92c65c884874427
[ "Apache-2.0" ]
1
2021-06-19T14:46:13.000Z
2021-06-19T14:46:13.000Z
// Copyright (c) 2020-2021 LG Electronics, 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...
26.730435
120
0.52635
e34857efb9134554d767f7548f519dbb3a161ba2
8,179
cpp
C++
src/main.cpp
ak1211/m5stack-azure-iot
179a474acde159c689ab359dba804c886402794a
[ "MIT" ]
null
null
null
src/main.cpp
ak1211/m5stack-azure-iot
179a474acde159c689ab359dba804c886402794a
[ "MIT" ]
null
null
null
src/main.cpp
ak1211/m5stack-azure-iot
179a474acde159c689ab359dba804c886402794a
[ "MIT" ]
null
null
null
// Copyright (c) 2021 Akihiro Yamamoto. // Licensed under the MIT License <https://spdx.org/licenses/MIT.html> // See LICENSE file in the project root for full license information. // #include "credentials.h" #include "iothub_client.hpp" #include "peripherals.hpp" #include <ArduinoOTA.h> #include <M5Core2.h> #...
28.106529
80
0.643477
e34bcf849e9e1153293bfc6d958987ee9d211b80
7,494
cc
C++
imglib/imgtrace.cc
gitter-badger/iulib
b2b66dbcbbbfcb4aac0784ea9f07db998077dbc1
[ "Apache-2.0" ]
19
2015-01-22T09:53:53.000Z
2019-05-16T09:01:23.000Z
imglib/imgtrace.cc
bygreencn/iulib
75072ef90585bdc503f66ef682a7a585e394298e
[ "Apache-2.0" ]
2
2016-10-20T00:56:10.000Z
2017-07-06T14:40:31.000Z
imglib/imgtrace.cc
bygreencn/iulib
75072ef90585bdc503f66ef682a7a585e394298e
[ "Apache-2.0" ]
14
2015-01-09T01:33:52.000Z
2019-02-03T03:58:41.000Z
// -*- C++ -*- // Copyright 2006-2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz // or its licensors,as applicable. // Copyright 1995-2005 Thomas M. Breuel // // You may not use this file except under the terms of the accompanying license. // // Licensed under the Apache License,Version 2.0 (the "Lice...
29.976
84
0.475047
e350dd64000e7be1b0395f4ca64d97228808c94b
2,518
cpp
C++
openbr/plugins/metadata/croprect.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
1,883
2015-01-04T07:04:24.000Z
2022-03-30T13:33:37.000Z
openbr/plugins/metadata/croprect.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
272
2015-01-02T09:53:20.000Z
2022-03-29T08:04:33.000Z
openbr/plugins/metadata/croprect.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
718
2015-01-02T18:51:07.000Z
2022-03-29T08:10:53.000Z
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2012 The MITRE Corporation * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * y...
44.964286
111
0.534154
e351892e77f867273d711f5895538a2bef0775de
2,133
hpp
C++
series2_workbench/hyp_sys_1d/include/ancse/boundary_condition.hpp
BeatHubmann/19H-AdvNCSE
3979f768da933de82bd6ab29bbf31ea9fc31e501
[ "MIT" ]
1
2020-01-05T22:38:47.000Z
2020-01-05T22:38:47.000Z
series2_handout/hyp_sys_1d/include/ancse/boundary_condition.hpp
BeatHubmann/19H-AdvNCSE
3979f768da933de82bd6ab29bbf31ea9fc31e501
[ "MIT" ]
null
null
null
series2_handout/hyp_sys_1d/include/ancse/boundary_condition.hpp
BeatHubmann/19H-AdvNCSE
3979f768da933de82bd6ab29bbf31ea9fc31e501
[ "MIT" ]
1
2019-12-08T20:43:27.000Z
2019-12-08T20:43:27.000Z
#ifndef HYPSYS1D_BOUNDARY_CONDITION_HPP #define HYPSYS1D_BOUNDARY_CONDITION_HPP #include <Eigen/Dense> #include <memory> /// Interface for enforcing boundary conditions through ghost-cells. class BoundaryCondition { public: // BoundaryCondition is an abstract base class. It needs a virtual // destructor. ...
30.042254
73
0.662916
e352a93167800c714270a7844e7efbd780891caf
1,319
cc
C++
media/mojo/mojom/encoded_audio_buffer_traits.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
media/mojo/mojom/encoded_audio_buffer_traits.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
media/mojo/mojom/encoded_audio_buffer_traits.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 2021 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 "media/mojo/mojom/encoded_audio_buffer_traits.h" #include "mojo/public/cpp/base/time_mojom_traits.h" namespace mojo { // static bool StructTra...
29.977273
78
0.709629
e358559a3caa8d098753bf701165bc2bc379231c
1,250
cpp
C++
BinarySearchTree/BinarySearchTree/BinarySearchTree.cpp
epoll31/DataStructuresCpp
bfd93bad226bb5175d6b74f8dd9beb60150bb055
[ "MIT" ]
null
null
null
BinarySearchTree/BinarySearchTree/BinarySearchTree.cpp
epoll31/DataStructuresCpp
bfd93bad226bb5175d6b74f8dd9beb60150bb055
[ "MIT" ]
null
null
null
BinarySearchTree/BinarySearchTree/BinarySearchTree.cpp
epoll31/DataStructuresCpp
bfd93bad226bb5175d6b74f8dd9beb60150bb055
[ "MIT" ]
null
null
null
#include <iostream> #include "BinarySearchTree.h" #include <vector> int main() { BinarySearchTree<int> tree; //tree.Add(4); //tree.Add(2); //tree.Add(6); //tree.Add(1); //tree.Add(3); //tree.Add(5); //tree.Add(7); tree.Add(25); tree.Add(15); tree.Add(50); tree.Add(10); tree.Add(22); tree.Add(35); tree...
19.230769
73
0.5936
e358d037e97c4c009f282a6b167ec8697d69edf7
3,734
cc
C++
conf_crawler/url_dedup/static_dedup.cc
WinterW/crawler_cpp
e0c8dba77233005b1ab13731d1cbcce274b70778
[ "Apache-2.0" ]
null
null
null
conf_crawler/url_dedup/static_dedup.cc
WinterW/crawler_cpp
e0c8dba77233005b1ab13731d1cbcce274b70778
[ "Apache-2.0" ]
null
null
null
conf_crawler/url_dedup/static_dedup.cc
WinterW/crawler_cpp
e0c8dba77233005b1ab13731d1cbcce274b70778
[ "Apache-2.0" ]
2
2020-09-12T13:50:38.000Z
2020-09-16T15:55:14.000Z
/** * @Copyright 2011 GanJi Inc. * @file ganji/crawler/conf_crawler/url_dedup/static_dedup.cc * @namespace ganji::crawler::conf_crawler::dedup * @version 1.0 * @author lisizhong * @date 2012-03-31 * * 改动程序后, 请使用tools/cpplint/cpplint.py 检查代码是否符合编码规范! * 遵循的编码规范请参考: http://google-styleguide.googlecode.com/...
23.192547
80
0.676219
e35ace38829eb4a5af369c76826cb2dab3632292
12,095
cpp
C++
android/android_42/base/media/jni/android_media_Utils.cpp
yakuizhao/intel-vaapi-driver
b2bb0383352694941826543a171b557efac2219b
[ "MIT" ]
null
null
null
android/android_42/base/media/jni/android_media_Utils.cpp
yakuizhao/intel-vaapi-driver
b2bb0383352694941826543a171b557efac2219b
[ "MIT" ]
null
null
null
android/android_42/base/media/jni/android_media_Utils.cpp
yakuizhao/intel-vaapi-driver
b2bb0383352694941826543a171b557efac2219b
[ "MIT" ]
null
null
null
/* * Copyright 2011, The Android Open Source Project * * 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 applica...
29.864198
80
0.553038
e35c628b3eeac3e0f91da81da735969654f27612
3,184
cpp
C++
src/common/traversal.cpp
neuged/nexus
51b22b4bcf04c37c1c400f06ad07bd28c5a7b96c
[ "MIT" ]
null
null
null
src/common/traversal.cpp
neuged/nexus
51b22b4bcf04c37c1c400f06ad07bd28c5a7b96c
[ "MIT" ]
null
null
null
src/common/traversal.cpp
neuged/nexus
51b22b4bcf04c37c1c400f06ad07bd28c5a7b96c
[ "MIT" ]
null
null
null
/* Nexus Copyright(C) 2012 - Federico Ponchio ISTI - Italian National Research Council - Visual Computing Lab 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 ...
23.240876
68
0.697236
e35dab71a80c6647065063a1917a3fd189f69d4f
685
cpp
C++
cpp/tests/RemoveDuplicatesFromSortedArrayIITest.cpp
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
4
2018-03-05T02:27:16.000Z
2021-03-15T14:19:44.000Z
cpp/tests/RemoveDuplicatesFromSortedArrayIITest.cpp
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
null
null
null
cpp/tests/RemoveDuplicatesFromSortedArrayIITest.cpp
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
2
2018-07-22T10:32:10.000Z
2018-10-20T03:14:28.000Z
#include "RemoveDuplicatesFromSortedArrayII.h" #include "gtest/gtest.h" using namespace lcpp; TEST(RemoveDuplicatesFromSortedArrayII, Solution81_1) { std::vector<int> Nums1{1, 1, 1, 2, 2, 3}; const int Size1 = 5; ASSERT_EQ(Size1, Solution80_1().removeDuplicates(Nums1)); const std::vector<int> Expected1{1, 1, ...
38.055556
79
0.687591
e3607de65830fbfb4162683c6b99e87abfd468f3
3,168
cpp
C++
cpp/src/opendnp3/LogTypes.cpp
cverges/adnp3
2a07f364bec8f1ad46e33cc8b6b8ef37b9005f3a
[ "MS-PL", "Naumen", "Condor-1.1", "Apache-1.1" ]
2
2016-08-31T23:03:06.000Z
2017-07-26T01:57:01.000Z
cpp/src/opendnp3/LogTypes.cpp
dupes/dnp3-automatak
08348d21738ae93e9a7f02ec46933934b6b463af
[ "Naumen", "Condor-1.1", "Apache-1.1", "MS-PL" ]
null
null
null
cpp/src/opendnp3/LogTypes.cpp
dupes/dnp3-automatak
08348d21738ae93e9a7f02ec46933934b6b463af
[ "Naumen", "Condor-1.1", "Apache-1.1", "MS-PL" ]
1
2020-01-20T08:23:27.000Z
2020-01-20T08:23:27.000Z
// // Licensed to Green Energy Corp (www.greenenergycorp.com) under one or // more contributor license agreements. See the NOTICE file distributed // with this work for additional information regarding copyright ownership. // Green Energy Corp licenses this file to you under the Apache License, // Version 2.0 (the "Li...
25.344
79
0.718119
e3616c347f069bbae2093bca66d1b14e91cd1a34
565
cpp
C++
396.cpp
pengzhezhe/LeetCode
305ec0c5b4cb5ea7cd244b3308132dee778138bc
[ "Apache-2.0" ]
null
null
null
396.cpp
pengzhezhe/LeetCode
305ec0c5b4cb5ea7cd244b3308132dee778138bc
[ "Apache-2.0" ]
null
null
null
396.cpp
pengzhezhe/LeetCode
305ec0c5b4cb5ea7cd244b3308132dee778138bc
[ "Apache-2.0" ]
null
null
null
// // Created by pzz on 2022/4/22. // #include <iostream> #include <algorithm> #include <vector> using namespace std; class Solution { public: int maxRotateFunction(vector<int> &nums) { int n = nums.size(); int numSum = 0, f = 0; for (int i = 0; i < n; i++) { numSum += nums[i...
17.121212
46
0.446018
e36299db653d094110285453e6f864c66fdce7fa
510
cpp
C++
usage/cl_11_array_no_exception_of_out_index.cpp
conncui/CProject
f2786e8cfad1b590154af9167cbc218332e4e71f
[ "Apache-2.0" ]
null
null
null
usage/cl_11_array_no_exception_of_out_index.cpp
conncui/CProject
f2786e8cfad1b590154af9167cbc218332e4e71f
[ "Apache-2.0" ]
null
null
null
usage/cl_11_array_no_exception_of_out_index.cpp
conncui/CProject
f2786e8cfad1b590154af9167cbc218332e4e71f
[ "Apache-2.0" ]
null
null
null
# include <iostream> using namespace std; void test_1(); void test_2(); int main() { // test_1(); test_2(); } void test_1(){ int a[2]; a[0] = 1; a[1] = 2; int i = 2; a[i] = 10; for (int i = 0; i <=2; i++){ cout << a[i] << " "; } cout << endl; for (int i = 0; ...
12.75
33
0.401961
e362d27fd7885d9acd562aac7fc0d89a0a335bb3
1,869
cpp
C++
kernel/kernel/worker.cpp
heatd/Onyx
404fce9c89a1d4ab561b5be63bd9bc68a6c9d91d
[ "MIT" ]
44
2017-02-16T20:48:09.000Z
2022-03-14T17:58:57.000Z
kernel/kernel/worker.cpp
heatd/Onyx
404fce9c89a1d4ab561b5be63bd9bc68a6c9d91d
[ "MIT" ]
72
2017-02-16T20:22:10.000Z
2022-03-31T21:17:06.000Z
kernel/kernel/worker.cpp
heatd/Onyx
404fce9c89a1d4ab561b5be63bd9bc68a6c9d91d
[ "MIT" ]
10
2017-04-07T19:20:14.000Z
2021-12-16T03:31:14.000Z
/* * Copyright (c) 2017 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #include <stdlib.h> #include <string.h> #include <errno.h> #include <onyx/worker.h> #include <onyx/scheduler.h> #include <onyx/thread.h> #i...
22.25
79
0.708935
e365db498c6099afa4cad6311ab653c85460ca15
239
cpp
C++
chapter3/Proj325.cpp
basstal/CPPPrimer
6366965657f873ac62003cf0a30a3fdb26c09351
[ "MIT" ]
null
null
null
chapter3/Proj325.cpp
basstal/CPPPrimer
6366965657f873ac62003cf0a30a3fdb26c09351
[ "MIT" ]
null
null
null
chapter3/Proj325.cpp
basstal/CPPPrimer
6366965657f873ac62003cf0a30a3fdb26c09351
[ "MIT" ]
null
null
null
#include<vector> #include<iostream> using namespace::std; int main() { vector<unsigned> v(11,0); unsigned score; auto it = v.begin(); while(cin>>score) ++*(it + score/10); for(auto &w:v) cout<<w<<" "; cout<<endl; return 0; }
14.058824
26
0.610879
e3669fd03da8bba8f9fe97c2e9e0c35a0cca2e07
10,556
cpp
C++
lib/BitArray.cpp
kampersanda/cda-tries
9f372f4e004d7f91e387297dfc7a0d2798c82779
[ "MIT" ]
4
2017-09-15T23:53:19.000Z
2021-03-31T02:21:18.000Z
lib/BitArray.cpp
kampersanda/cda-tries
9f372f4e004d7f91e387297dfc7a0d2798c82779
[ "MIT" ]
null
null
null
lib/BitArray.cpp
kampersanda/cda-tries
9f372f4e004d7f91e387297dfc7a0d2798c82779
[ "MIT" ]
2
2020-04-22T23:24:12.000Z
2021-03-01T11:06:52.000Z
#include "BitArray.hpp" namespace { constexpr uint8_t SELECT_TABLE[9][256] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
35.069767
74
0.390678
e36af33ce8839e9f0975f24dc9ad01e5b9f19012
7,772
cpp
C++
blast/src/util/transmissionrw.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/util/transmissionrw.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/util/transmissionrw.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
/* $Id: transmissionrw.cpp 583834 2019-04-02 19:20:44Z sadyrovr $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Governm...
25.735099
93
0.636902
e36bea23d6e7313090a246cc8882686e9d7d6b70
7,690
hpp
C++
Combinatorics.hpp
moble/SphericalFunctions
fbefb67a8c07f67cdc42b7e2a535078dd3543602
[ "MIT" ]
6
2016-02-23T07:25:56.000Z
2021-01-22T04:54:23.000Z
lib/SphericalFunctions/Combinatorics.hpp
mtortora/chiralDFT
d5ea5e940d6bc72d96fd9728d042de1e09d3ef85
[ "MIT" ]
null
null
null
lib/SphericalFunctions/Combinatorics.hpp
mtortora/chiralDFT
d5ea5e940d6bc72d96fd9728d042de1e09d3ef85
[ "MIT" ]
2
2017-02-07T05:28:32.000Z
2019-09-29T00:33:49.000Z
// Copyright (c) 2014, Michael Boyle // See LICENSE file for details #ifndef COMBINATORICS_HPP #define COMBINATORICS_HPP #include <vector> #include <cmath> #ifdef DEBUG #include <iostream> #include "Errors.hpp" #endif namespace SphericalFunctions { const int ellMax = 32; const double epsilon = 1.0e-14; clas...
36.794258
114
0.642783
e36cf94d6f0dfa569ccdf34744f802dd5b933c03
4,572
cpp
C++
src/multimedia/AudioOutObject.cpp
0of/WebOS-Magna
a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511
[ "Apache-2.0" ]
1
2016-03-26T13:25:08.000Z
2016-03-26T13:25:08.000Z
src/multimedia/AudioOutObject.cpp
0of/WebOS-Magna
a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511
[ "Apache-2.0" ]
null
null
null
src/multimedia/AudioOutObject.cpp
0of/WebOS-Magna
a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511
[ "Apache-2.0" ]
null
null
null
#include "AudioOutObject.h" #include "AudioOutObject_p.h" namespace Magna{ namespace MultiMedia{ AudioOutObject & AudioOutObject::getAudioOutObject(){ static AudioOutObject o; return o; } AudioOutObject::AudioOutObject() :m_data( new PrivateData( *this ) ){ } ...
27.709091
129
0.554243
e3717fa7cf16cda5b6a3b951c2a5298affb407ec
5,617
cpp
C++
src/generic_cubic_gadget/generic_cubic_gadget.cpp
AntoineRondelet/libsnark-playground
a67e20379decf42ae4b6189900ff0001e3936fc9
[ "MIT" ]
8
2018-08-31T08:51:30.000Z
2021-05-10T17:30:34.000Z
src/generic_cubic_gadget/generic_cubic_gadget.cpp
AntoineRondelet/libsnark-playground
a67e20379decf42ae4b6189900ff0001e3936fc9
[ "MIT" ]
1
2018-09-03T20:57:49.000Z
2018-09-03T20:57:49.000Z
src/generic_cubic_gadget/generic_cubic_gadget.cpp
AntoineRondelet/libsnark-playground
a67e20379decf42ae4b6189900ff0001e3936fc9
[ "MIT" ]
4
2018-08-31T08:51:33.000Z
2021-04-04T01:56:33.000Z
/* * While the "cubic_gadget" aims to provide a circuit for the statement: * (E) x**3 + x + 5 = 35 * This gadget ("generic_cubic_gagdet") is more generic, and provides a circuit for the statement: * (E') A*x**3 + B*x**2 + C*x + D = E * where, A, B, C, D, and E are fields elements of the field we are working on (Fi...
34.460123
100
0.582339
e3728c5be08255e4dfa725d8da087daeb3de8b98
66,271
cpp
C++
B2G/gecko/js/src/ion/IonCaches.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/js/src/ion/IonCaches.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/js/src/ion/IonCaches.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99: * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #i...
34.002565
117
0.630351
e3747249d8bc1d18aba1920d752546bc0aedd0ac
1,599
hpp
C++
components/scream/src/share/field/field_property_checks/field_upper_bound_check.hpp
ngam/scream
676f7469b9b33120cb0810c3ab8d9a214746286b
[ "BSD-3-Clause" ]
22
2018-12-12T17:44:55.000Z
2022-03-11T03:47:38.000Z
components/scream/src/share/field/field_property_checks/field_upper_bound_check.hpp
ngam/scream
676f7469b9b33120cb0810c3ab8d9a214746286b
[ "BSD-3-Clause" ]
1,440
2018-07-10T16:49:55.000Z
2022-03-31T22:41:25.000Z
components/scream/src/share/field/field_property_checks/field_upper_bound_check.hpp
ngam/scream
676f7469b9b33120cb0810c3ab8d9a214746286b
[ "BSD-3-Clause" ]
24
2018-11-12T15:43:53.000Z
2022-03-30T18:10:52.000Z
#ifndef SCREAM_FIELD_UPPER_BOUND_CHECK_HPP #define SCREAM_FIELD_UPPER_BOUND_CHECK_HPP #include "share/field/field_property_checks/field_within_interval_check.hpp" #include "ekat/util/ekat_math_utils.hpp" namespace scream { // This field property check returns true if all data in a given field are // bounded above b...
34.76087
110
0.74359
e3779febe31176a42fc57f1b3bd9031e6c082404
1,155
cpp
C++
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Majority_Element/Majority_Element.cpp
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Majority_Element/Majority_Element.cpp
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Majority_Element/Majority_Element.cpp
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
/* A majority element in an array arr of size n is an element that appears more than n/2 times. Example: N = 9, arr = {1, 2, 2, 2, 4, 2, 2, 1, 5} Majority Element = 2 as count[2] = 5 which is greater than n/2 i.e 4 */ #include<bits/stdc++.h> using namespace std; int checkMajorityElement(int arr[], int N) { map<i...
19.25
53
0.548052
e37a971eb35e30e821bbcf805c8b0f41d2501931
1,651
cpp
C++
string-test/main.cpp
tsmoreland/cpp-misc
a82b9206bafbf67b8b5bdddab54328e49dacadd6
[ "MIT" ]
null
null
null
string-test/main.cpp
tsmoreland/cpp-misc
a82b9206bafbf67b8b5bdddab54328e49dacadd6
[ "MIT" ]
null
null
null
string-test/main.cpp
tsmoreland/cpp-misc
a82b9206bafbf67b8b5bdddab54328e49dacadd6
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <Windows.h> #include <processenv.h> #include <algorithm> #include <ranges> int main(int argc, char** argv) { if (argc < 2) { std::cout << "insufficient args\n"; } std::string const arg{argv[1]}; std::string env_path{}; env_path.reserve(2048); ...
31.75
126
0.540279
e37c905fe4d4832904103614d131bce6ec4073b7
14,808
cpp
C++
src/tools.cpp
teamclouday/VkSelfLearn
da9ee713cedcbf9a7f6bb3ae8c8340817b56e2a1
[ "MIT" ]
null
null
null
src/tools.cpp
teamclouday/VkSelfLearn
da9ee713cedcbf9a7f6bb3ae8c8340817b56e2a1
[ "MIT" ]
null
null
null
src/tools.cpp
teamclouday/VkSelfLearn
da9ee713cedcbf9a7f6bb3ae8c8340817b56e2a1
[ "MIT" ]
null
null
null
#include "tools.hpp" extern GLOB_VARS globVar; bool isDeviceSuitable(VkPhysicalDevice device) { QueueFamilyIndices indices = findQueueFamilies(device); bool indiceComplete = indices.graphicsFamilyFound && indices.presentFamilyFound; bool extensionSupport = checkDeviceExtensionSupport(device); bool swa...
42.188034
148
0.761345
e37d586f11df6440712c0b38140276ac072d136c
3,799
cpp
C++
17_2_FEB17/MAKETRI.cpp
parthlathiya/Codechef_Submissions
d404129e4a59c4df10eace61541f48263c32480c
[ "MIT" ]
null
null
null
17_2_FEB17/MAKETRI.cpp
parthlathiya/Codechef_Submissions
d404129e4a59c4df10eace61541f48263c32480c
[ "MIT" ]
null
null
null
17_2_FEB17/MAKETRI.cpp
parthlathiya/Codechef_Submissions
d404129e4a59c4df10eace61541f48263c32480c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define forall(i,a,b) for(int i=a;i<b;i++) #define miN(a,b) ( (a) < (b) ? (a) : (b)) #define maX(a,b) ( (a) > (b) ? (a) : (b)) #define ll long long int #define llu long long unsigned #define mod 1000000007 struct in...
21.833333
65
0.304817
be68afb1ab95db17e9a228499bfd1ee3c09c62c8
4,982
cpp
C++
samples/cpp/windows/console/samples/translation_samples.cpp
wiazur/cognitive-services-speech-sdk
f9807b1079f3a85f07cbb6d762c6b5449d536027
[ "MIT" ]
null
null
null
samples/cpp/windows/console/samples/translation_samples.cpp
wiazur/cognitive-services-speech-sdk
f9807b1079f3a85f07cbb6d762c6b5449d536027
[ "MIT" ]
null
null
null
samples/cpp/windows/console/samples/translation_samples.cpp
wiazur/cognitive-services-speech-sdk
f9807b1079f3a85f07cbb6d762c6b5449d536027
[ "MIT" ]
null
null
null
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #include "stdafx.h" // <toplevel> #include <string> #include <vector> #include <speechapi_cxx.h> using namespace std; using namespace Microsoft::CognitiveSer...
37.458647
132
0.653754
be6b6527f236cafe21149bc0329c3881d6c0c9c2
864
cpp
C++
EasyCppTest/BsonSerializer.cpp
Thalhammer/EasyCpp
6b9886fecf0aa363eaf03741426fd3462306c211
[ "MIT" ]
3
2018-02-06T05:12:41.000Z
2020-05-12T20:57:32.000Z
EasyCppTest/BsonSerializer.cpp
Thalhammer/EasyCpp
6b9886fecf0aa363eaf03741426fd3462306c211
[ "MIT" ]
41
2016-07-11T12:19:10.000Z
2017-08-08T07:43:12.000Z
EasyCppTest/BsonSerializer.cpp
Thalhammer/EasyCpp
6b9886fecf0aa363eaf03741426fd3462306c211
[ "MIT" ]
2
2019-08-02T10:24:36.000Z
2020-09-11T01:45:12.000Z
#include <gtest/gtest.h> #include <Serialize/BsonSerializer.h> using namespace EasyCpp; namespace EasyCppTest { TEST(BsonSerializer, BuildDocument) { Bundle b; b.set("hello", "world"); Serialize::BsonSerializer bson; auto result = bson.serialize(b); ASSERT_EQ(result.size(), 22); ASSERT_EQ(result, std::s...
30.857143
138
0.662037
be6c4eaf37d60ba75fab79da7107d6dc40176665
1,330
cpp
C++
Hackerrank/Algorithms/Implementation/emas_supercomputer.cpp
ritwik1503/Competitive-Coding-1
ffefe5f8b299c623af1ef01bf024af339401de0b
[ "MIT" ]
29
2016-09-02T04:48:59.000Z
2016-09-08T18:13:05.000Z
Hackerrank/Algorithms/Implementation/emas_supercomputer.cpp
ritwik1503/Competitive-Coding-1
ffefe5f8b299c623af1ef01bf024af339401de0b
[ "MIT" ]
2
2016-09-02T05:20:02.000Z
2016-10-13T06:31:31.000Z
Hackerrank/Algorithms/Implementation/emas_supercomputer.cpp
ritwik1503/Competitive-Coding-1
ffefe5f8b299c623af1ef01bf024af339401de0b
[ "MIT" ]
7
2017-04-01T20:07:03.000Z
2020-10-16T12:28:54.000Z
#include "bits/stdc++.h" using namespace std; # define MOD 1000000007 int main() { int i,j,k,l,m,n,r=0,c=0,ans=0; scanf("%d %d",&n,&m); char a[20][20]; for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf(" %c",&a[i][j]); } } for (int x = 1; x <= n; x++) { for (int y = 1;y <= m; y++){ int r =...
27.708333
76
0.240602
be7344d2191bacb706b24cdc4ce662ada7cefe20
33,709
cc
C++
test/service_recorder_test.cc
epgdatacapbon/mirakc-arib
f50851ac1869599e95dcbefe115624b95e8274de
[ "Apache-2.0", "MIT" ]
null
null
null
test/service_recorder_test.cc
epgdatacapbon/mirakc-arib
f50851ac1869599e95dcbefe115624b95e8274de
[ "Apache-2.0", "MIT" ]
null
null
null
test/service_recorder_test.cc
epgdatacapbon/mirakc-arib
f50851ac1869599e95dcbefe115624b95e8274de
[ "Apache-2.0", "MIT" ]
null
null
null
#include <memory> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <tsduck/tsduck.h> #include "ring_file_sink.hh" #include "service_recorder.hh" #include "test_helper.hh" namespace { constexpr size_t kNumBuffers = 2; constexpr size_t kNumChunks = 2; constexpr size_t kChunkSize = RingFileSink::kBufferSize ...
38.218821
88
0.531164
be74d9f31957871c5ec0ed8e2688577af6d8c731
3,484
cpp
C++
src/core/parsing/ll1_definition_analyzer.cpp
cxc6922/vegetable_script
e6906cc7c733d217d33537d5d30a94f84f94e956
[ "MIT" ]
null
null
null
src/core/parsing/ll1_definition_analyzer.cpp
cxc6922/vegetable_script
e6906cc7c733d217d33537d5d30a94f84f94e956
[ "MIT" ]
null
null
null
src/core/parsing/ll1_definition_analyzer.cpp
cxc6922/vegetable_script
e6906cc7c733d217d33537d5d30a94f84f94e956
[ "MIT" ]
null
null
null
#include "./ll1_definition_analyzer.h" #include "./ll1_expression_analyzer.h" #include "./ll1_statement_analyzer.h" namespace vegetable_script { bool Ll1DefinitionAnalyzer::Parse(Lexer* lexer, Definition::Ptr* definition, Exception* exception) { return ParseDefinition(lexer, definition, exception); } boo...
30.034483
124
0.641504
be7537cdbac94fb91e2b4b0ab7ef40b6bd78b3c4
1,643
cpp
C++
Algorithms/Dynamic Programming/The Longest Common Subsequence/solution.cpp
kitarp29/ds-algo-solutions
c06effdaec2ff014248ca399268934cd8a639b5a
[ "MIT" ]
48
2020-12-04T17:48:47.000Z
2022-02-26T17:56:52.000Z
Algorithms/Dynamic Programming/The Longest Common Subsequence/solution.cpp
kitarp29/ds-algo-solutions
c06effdaec2ff014248ca399268934cd8a639b5a
[ "MIT" ]
465
2020-12-04T02:12:56.000Z
2021-12-07T16:09:51.000Z
Algorithms/Dynamic Programming/The Longest Common Subsequence/solution.cpp
kitarp29/ds-algo-solutions
c06effdaec2ff014248ca399268934cd8a639b5a
[ "MIT" ]
199
2020-12-04T02:39:56.000Z
2021-12-07T10:10:50.000Z
#include <iostream> #include <algorithm> #include <iterator> #include <vector> using namespace std; #define N 111 // upper bound on n and m int A[N]; int B[N]; int f[N][N]; vector<int> res; //first we're going to create a table which calculates the length of the Largest Common Subsequence which is done in the main() ...
31
136
0.529519
be763134536426ecf7084093584e54cbce837787
343
hpp
C++
cpp/minsk/include/minsk/analysis/binding/nodes/expressions/unary/kind.hpp
Phytolizer/Minsk
5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c
[ "MIT" ]
null
null
null
cpp/minsk/include/minsk/analysis/binding/nodes/expressions/unary/kind.hpp
Phytolizer/Minsk
5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c
[ "MIT" ]
1
2022-03-23T03:34:48.000Z
2022-03-24T06:47:30.000Z
cpp/minsk/include/minsk/analysis/binding/nodes/expressions/unary/kind.hpp
Phytolizer/Minsk
5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c
[ "MIT" ]
null
null
null
#ifndef MINSK_ANALYSIS_BINDING_NODES_EXPRESSIONS_UNARY_KIND_HPP #define MINSK_ANALYSIS_BINDING_NODES_EXPRESSIONS_UNARY_KIND_HPP namespace minsk::analysis::binding { enum class bound_unary_operator_kind { identity, negation, logical_negation, bitwise_negation, }; } #endif // MINSK_ANALYSIS_BINDING_NODES_EXPR...
21.4375
65
0.854227
be76932b86247e733145e24159a40c3f80deeb2e
13,694
cxx
C++
graalvm/transactions/fork/narayana/blacktie/tx/src/main/cpp/HttpTxManager.cxx
nmcl/wfswarm-example-arjuna-old
c2344f4780cd59caf37dd806e492efe1973ad2ff
[ "Apache-2.0" ]
1
2019-05-23T18:19:26.000Z
2019-05-23T18:19:26.000Z
graalvm/transactions/fork/narayana/blacktie/tx/src/main/cpp/HttpTxManager.cxx
nmcl/scratch
2a068fa6eb2f14c5338a332d3b624d5c91c42c07
[ "Apache-2.0" ]
65
2016-01-24T19:44:46.000Z
2022-02-09T01:00:07.000Z
graalvm/transactions/fork/narayana/blacktie/tx/src/main/cpp/HttpTxManager.cxx
nmcl/wfswarm-example-arjuna
c2344f4780cd59caf37dd806e492efe1973ad2ff
[ "Apache-2.0" ]
1
2019-05-02T14:23:43.000Z
2019-05-02T14:23:43.000Z
/* * JBoss, Home of Professional Open Source * Copyright 2011, Red Hat, Inc., and others contributors as indicated * by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishin...
29.13617
114
0.659997
be7a877749ef68ad816e2b0d816e9dfc2b1451ee
5,384
cpp
C++
src/ProtocolCompat.cpp
zsalab/ilms7
7b64b450fcb0999f6f3d08c004017e0c3d81aa38
[ "BSD-3-Clause" ]
null
null
null
src/ProtocolCompat.cpp
zsalab/ilms7
7b64b450fcb0999f6f3d08c004017e0c3d81aa38
[ "BSD-3-Clause" ]
null
null
null
src/ProtocolCompat.cpp
zsalab/ilms7
7b64b450fcb0999f6f3d08c004017e0c3d81aa38
[ "BSD-3-Clause" ]
null
null
null
/******************************************************************************* * Copyright (C) 2004-2011 Intel Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistribut...
31.121387
144
0.664747
be7c81fda2431801fa41313c1d4a8df4fecbe8bd
4,066
cpp
C++
dbms/src/Storages/MergeTree/SimpleMergeSelector.cpp
rudneff/ClickHouse
3cb59b92bccbeb888d136f7c6e14b622382c0434
[ "Apache-2.0" ]
null
null
null
dbms/src/Storages/MergeTree/SimpleMergeSelector.cpp
rudneff/ClickHouse
3cb59b92bccbeb888d136f7c6e14b622382c0434
[ "Apache-2.0" ]
null
null
null
dbms/src/Storages/MergeTree/SimpleMergeSelector.cpp
rudneff/ClickHouse
3cb59b92bccbeb888d136f7c6e14b622382c0434
[ "Apache-2.0" ]
null
null
null
#include <DB/Storages/MergeTree/SimpleMergeSelector.h> #include <DB/Common/interpolate.h> #include <cmath> namespace DB { namespace { /** Estimates best set of parts to merge within passed alternatives. */ struct Estimator { using Iterator = SimpleMergeSelector::PartsInPartition::const_iterator; void consider...
28.236111
126
0.715691
be7df6dd1c4e64c658312aab616f39e541c3669d
571
hpp
C++
libs/plugin/include/sge/plugin/declare_iterator.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/plugin/include/sge/plugin/declare_iterator.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/plugin/include/sge/plugin/declare_iterator.hpp
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) #ifndef SGE_PLUGIN_DECLARE_ITERATOR_HPP_INCLUDED #define SGE_PLUGIN_DECLARE_ITERATOR_HPP_INCLUDED ...
35.6875
99
0.789842
be7fb5335f3eda9c48d12d50908772b6474463c7
788
cpp
C++
2017.8.12/a.cpp
1980744819/ACM-code
a697242bc963e682e552e655e3d78527e044e854
[ "Apache-2.0" ]
null
null
null
2017.8.12/a.cpp
1980744819/ACM-code
a697242bc963e682e552e655e3d78527e044e854
[ "Apache-2.0" ]
null
null
null
2017.8.12/a.cpp
1980744819/ACM-code
a697242bc963e682e552e655e3d78527e044e854
[ "Apache-2.0" ]
null
null
null
#include<cstdio> #include<string> #include<cstring> #include<cstdlib> #include<cmath> #include<iostream> #include<algorithm> #include<vector> #include<queue> #include<map> #include<set> #include<stack> #define ll long long #define read(a) scanf("%d",&a); using namespace std; char s[1010]; int main(){ freopen("test.txt...
16.416667
31
0.572335
be86f72bd1f1212dee0c5a70f20d545ed6264096
4,366
cpp
C++
yasc/protector.cpp
ChanJLee/jni-protector
c2673e4ae8c54868f1673c511bb76d96e39dd354
[ "Apache-2.0" ]
null
null
null
yasc/protector.cpp
ChanJLee/jni-protector
c2673e4ae8c54868f1673c511bb76d96e39dd354
[ "Apache-2.0" ]
null
null
null
yasc/protector.cpp
ChanJLee/jni-protector
c2673e4ae8c54868f1673c511bb76d96e39dd354
[ "Apache-2.0" ]
1
2021-07-23T02:51:21.000Z
2021-07-23T02:51:21.000Z
#ifdef __cplusplus extern "C" { #endif const char SO_FILE_VERSION[] __attribute__((section(".bugly_version"))) = "<1.1.0>"; #ifdef __cplusplus } #endif #include <stdlib.h> #include <string.h> #include <jni.h> #include <stdio.h> #include <dirent.h> #include "protector.h" #include <sstream> #include <sys/types.h> #inc...
22.389744
124
0.579936
be87cf60c0f5f5afdf4cd80fc26190f3f9fb351c
5,623
cpp
C++
config-window.cpp
kmzbrnoI/xn-lib-cpp-qt
176ef47adff3db81c745febb4c8c4d1549199762
[ "Apache-2.0" ]
null
null
null
config-window.cpp
kmzbrnoI/xn-lib-cpp-qt
176ef47adff3db81c745febb4c8c4d1549199762
[ "Apache-2.0" ]
10
2018-10-18T13:31:26.000Z
2021-02-23T20:28:16.000Z
config-window.cpp
kmzbrnoI/xn-lib-cpp-qt
176ef47adff3db81c745febb4c8c4d1549199762
[ "Apache-2.0" ]
null
null
null
#include <QSerialPortInfo> #include <QMessageBox> #include "lib-main.h" /* Implementations of GUI functions from lib-main.h */ namespace Xn { void LibMain::guiInit() { QObject::connect(form.ui.cb_interface_type, SIGNAL(currentIndexChanged(int)), this, SLOT(cb_interface_type_changed(int))); QObject::connect(...
30.394595
99
0.699627
be887f825a7bb0fc8afeb7845cdb25670b291458
4,320
cc
C++
m3/epoll.cc
Barkhausen-Institut/M3-musl
d57e48aa0f99349c8f6e56fdcaea4588c8e858e9
[ "MIT" ]
null
null
null
m3/epoll.cc
Barkhausen-Institut/M3-musl
d57e48aa0f99349c8f6e56fdcaea4588c8e858e9
[ "MIT" ]
null
null
null
m3/epoll.cc
Barkhausen-Institut/M3-musl
d57e48aa0f99349c8f6e56fdcaea4588c8e858e9
[ "MIT" ]
null
null
null
/* * Copyright (C) 2022 Nils Asmussen, Barkhausen Institut * * This file is part of M3 (Microkernel-based SysteM for Heterogeneous Manycores). * * M3 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Founda...
28.993289
96
0.583102
be8addff449010803fd33fbc107d3a0a7504c351
1,730
hpp
C++
apps/MatrixGenerator/TranslationObject.hpp
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
13
2015-09-15T17:28:25.000Z
2022-03-22T20:26:47.000Z
apps/MatrixGenerator/TranslationObject.hpp
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
41
2015-08-25T07:50:55.000Z
2022-03-21T16:20:37.000Z
apps/MatrixGenerator/TranslationObject.hpp
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
9
2015-09-14T20:52:07.000Z
2022-03-08T12:18:18.000Z
/* * TranslationObject.hpp * * Created on: Apr 20, 2017 * Author: scsmdk */ #ifndef TRANSLATIONOBJECT_HPP_ #define TRANSLATIONOBJECT_HPP_ #include <vector> #include <iostream> #include "Coordinates.hpp" #include "Mesh.hpp" #include "pugixml.hpp" namespace TwoDLib { struct Translation { double _v; do...
26.615385
135
0.726012
be8decd271b23fec17ea31015c559bfd90c1b25d
4,135
cc
C++
c++-stl/random-number-engines.cc
deyuan/coding-practice
82bdf719397507601e582ab6d5693e4e50e96a3a
[ "MIT" ]
null
null
null
c++-stl/random-number-engines.cc
deyuan/coding-practice
82bdf719397507601e582ab6d5693e4e50e96a3a
[ "MIT" ]
null
null
null
c++-stl/random-number-engines.cc
deyuan/coding-practice
82bdf719397507601e582ab6d5693e4e50e96a3a
[ "MIT" ]
null
null
null
// Copyright (c) 2018 Deyuan Guo. All rights reserved. // This file is subject to the terms and conditions defined // in file 'LICENSE' in this source code package. #include <iostream> #include <random> // Engine: std::random_device // Algorithm: True-RNG if entropy() is non-zero, pseudo-RNG otherwise // Note: Non-de...
40.539216
80
0.58549
be8f4fbddf3eb14e918029580a5b26d6f85709c6
27,641
cpp
C++
src/thread_locaity_info.cpp
nosheenzaza/java-thread-locality-profiler
2e862b8632e84b677eb84492eef456e04735dac2
[ "Unlicense" ]
null
null
null
src/thread_locaity_info.cpp
nosheenzaza/java-thread-locality-profiler
2e862b8632e84b677eb84492eef456e04735dac2
[ "Unlicense" ]
null
null
null
src/thread_locaity_info.cpp
nosheenzaza/java-thread-locality-profiler
2e862b8632e84b677eb84492eef456e04735dac2
[ "Unlicense" ]
null
null
null
/* * thread_Locality_info * * Purpose: A profiling agent than can be plugged to JVM to monitor field * accesses and modifications by threads. * * Usage: Please refer to the included Makefile for compilation information, * and for a sample usage case, refer to run_tests_with_agent.sh * * Author: Noshe...
33.46368
88
0.600412
be9382e0028be1e8abf2be05a94625d75b012b59
1,972
cpp
C++
src/plugins/monocle/plugins/postrus/postrus.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
120
2015-01-22T14:10:39.000Z
2021-11-25T12:57:16.000Z
src/plugins/monocle/plugins/postrus/postrus.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
8
2015-02-07T19:38:19.000Z
2017-11-30T20:18:28.000Z
src/plugins/monocle/plugins/postrus/postrus.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
33
2015-02-07T16:59:55.000Z
2021-10-12T00:36:40.000Z
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE...
19.919192
83
0.646552
be9aea33c1dd3e5e41e625280ea311c225213135
752
cpp
C++
engine/calculators/source/RangedPhysicalDamageCalculator.cpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
engine/calculators/source/RangedPhysicalDamageCalculator.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
engine/calculators/source/RangedPhysicalDamageCalculator.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#include "RangedPhysicalDamageCalculator.hpp" RangedPhysicalDamageCalculator::RangedPhysicalDamageCalculator(const PhaseOfMoonType new_pom) : PhysicalDamageCalculator(AttackType::ATTACK_TYPE_RANGED, new_pom) { } int RangedPhysicalDamageCalculator::get_statistic_based_damage_modifier(CreaturePtr attacking_creature) { ...
25.931034
103
0.785904
be9c5052b288578c0fc376c780e021103f05883e
285
hpp
C++
include/flexui/Layout/TextLayoutObject.hpp
mlomb/flexui
242790aa13b057e25b276b6a3df79a30735c2548
[ "MIT" ]
23
2020-12-20T01:41:56.000Z
2021-11-14T20:26:40.000Z
include/flexui/Layout/TextLayoutObject.hpp
mlomb/flexui
242790aa13b057e25b276b6a3df79a30735c2548
[ "MIT" ]
2
2020-12-23T16:29:55.000Z
2021-11-29T05:35:12.000Z
include/flexui/Layout/TextLayoutObject.hpp
mlomb/flexui
242790aa13b057e25b276b6a3df79a30735c2548
[ "MIT" ]
4
2020-12-23T16:02:25.000Z
2021-09-30T08:37:51.000Z
#pragma once #include "flexui/Layout/LayoutObject.hpp" namespace flexui { class Text; class TextLayoutObject : public LayoutObject { public: TextLayoutObject(Text* text); ~TextLayoutObject(); Text* getTextNode() const { return m_Text; } private: Text* m_Text; }; }
13.571429
47
0.708772
be9fe7b42a35e45684e70f7b6325144722d5bcf5
967
hpp
C++
algorithms/p475/475.hpp
baishuai/leetcode_go
440ff08cf15e03ee64b3aa18370af1f75e958d18
[ "Apache-2.0" ]
9
2017-06-05T15:10:35.000Z
2021-06-08T03:10:46.000Z
algorithms/p475/475.hpp
baishuai/leetcode
440ff08cf15e03ee64b3aa18370af1f75e958d18
[ "Apache-2.0" ]
3
2017-07-12T14:08:39.000Z
2017-10-11T03:08:15.000Z
algorithms/p475/475.hpp
baishuai/leetcode_go
440ff08cf15e03ee64b3aa18370af1f75e958d18
[ "Apache-2.0" ]
1
2017-07-21T03:51:51.000Z
2017-07-21T03:51:51.000Z
#ifndef LEETCODE_475_HPP #define LEETCODE_475_HPP #include <iostream> #include <queue> #include <algorithm> #include <vector> #include <unordered_map> #include <unordered_set> #include <set> #include <numeric> #include <stack> #include <string> using namespace std; class Solution { public: int findRadius(vector...
24.794872
75
0.567735