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
dfac013e2cde596978dd01eea4a823cefd6bbb31
1,041
cpp
C++
STRINGS/Convert String to LowerCase .cpp
snanacha/Coding-questions
18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d
[ "MIT" ]
null
null
null
STRINGS/Convert String to LowerCase .cpp
snanacha/Coding-questions
18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d
[ "MIT" ]
1
2021-03-30T14:00:56.000Z
2021-03-30T14:00:56.000Z
STRINGS/Convert String to LowerCase .cpp
snanacha/Coding-questions
18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d
[ "MIT" ]
null
null
null
Change the string /* Convert String to LowerCase School Accuracy: 80.57% Submissions: 4374 Points: 0 Given a string S. The task is to convert characters of string to lowercase. Example 1: Input: S = "ABCddE" Output: "abcdde" Explanation: A, B, C and E are converted to a, b, c and E thus all uppercase cha...
22.148936
146
0.666667
snanacha
dfb8b72a82bb8e0540adb3836caa05eadf363dd5
5,598
cpp
C++
src/send_recv.cpp
enp1s0/shmpi
08d573cfdd7c0652c3d514884c9c1c642e4cc913
[ "MIT" ]
null
null
null
src/send_recv.cpp
enp1s0/shmpi
08d573cfdd7c0652c3d514884c9c1c642e4cc913
[ "MIT" ]
null
null
null
src/send_recv.cpp
enp1s0/shmpi
08d573cfdd7c0652c3d514884c9c1c642e4cc913
[ "MIT" ]
null
null
null
#include <cassert> #include <thread> #include <shmpi/shmpi.hpp> int shmpi::shmpi_send ( shmpi::buffer* const buffer, const std::size_t offset_arg, const std::size_t count, const MPI_Datatype data_type, const int dest, const int tag, MPI_Comm comm ) { const auto buffer_count = buffer->get_buffer_count(...
29.005181
118
0.711683
enp1s0
dfbaabfaab63a43fbb34ed35306d1ce49f04d167
2,974
cpp
C++
src/core/parsers/message/token_scanner.cpp
tinganho/lya
d956220da76d5658e8e2c0654db2068427463c60
[ "Apache-2.0" ]
1
2020-06-04T06:57:31.000Z
2020-06-04T06:57:31.000Z
src/core/parsers/message/token_scanner.cpp
tinganho/lya
d956220da76d5658e8e2c0654db2068427463c60
[ "Apache-2.0" ]
6
2018-01-05T02:55:59.000Z
2018-01-09T03:29:55.000Z
src/core/parsers/message/token_scanner.cpp
tinganho/lya
d956220da76d5658e8e2c0654db2068427463c60
[ "Apache-2.0" ]
null
null
null
// // Created by Tingan Ho on 2017-11-06. // #include <glibmm/ustring.h> #include <memory> #include "token_scanner.h" #include "syntaxes.h" #include "diagnostics/diagnostics.h" using namespace Lya::core::diagnostics; using namespace Lya::lib::types; using namespace Lya::lib::utils; namespace Lya::core::parsers::mess...
22.70229
97
0.654674
tinganho
dfbc2bbda90919250353bd56da1c6a15fd3f8b56
2,131
hpp
C++
src/backend/graph_compiler/core/src/compiler/config/context.hpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
src/backend/graph_compiler/core/src/compiler/config/context.hpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
src/backend/graph_compiler/core/src/compiler/config/context.hpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright 2020-2022 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://...
33.825397
81
0.680432
wuxun-zhang
dfbeea734da4cfaf8372908ec4e6e8d614b2de90
6,978
hpp
C++
modules/haxm/src/common/interface/hax_types.hpp
dmiller423/virt86
f6cedb78dc55b8ea1b8ca4b53209a58a49b5bd60
[ "MIT" ]
148
2019-02-19T11:05:28.000Z
2022-02-26T11:57:05.000Z
modules/haxm/src/common/interface/hax_types.hpp
dmiller423/virt86
f6cedb78dc55b8ea1b8ca4b53209a58a49b5bd60
[ "MIT" ]
16
2019-02-19T02:51:48.000Z
2019-12-11T21:17:12.000Z
modules/haxm/src/common/interface/hax_types.hpp
dmiller423/virt86
f6cedb78dc55b8ea1b8ca4b53209a58a49b5bd60
[ "MIT" ]
17
2019-02-19T04:05:33.000Z
2021-05-02T12:14:13.000Z
/* * Copyright (c) 2011 Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the fol...
38.766667
92
0.648037
dmiller423
dfc6192adf49382bc2eea0871d47c6adde41586e
1,272
hpp
C++
include/asmith/genetic-algorithm/optimisation_problem.hpp
asmith-git/genetic-algorithm
90f66b562233b5a4ff687ff905db46575a2456b5
[ "Apache-2.0" ]
null
null
null
include/asmith/genetic-algorithm/optimisation_problem.hpp
asmith-git/genetic-algorithm
90f66b562233b5a4ff687ff905db46575a2456b5
[ "Apache-2.0" ]
null
null
null
include/asmith/genetic-algorithm/optimisation_problem.hpp
asmith-git/genetic-algorithm
90f66b562233b5a4ff687ff905db46575a2456b5
[ "Apache-2.0" ]
null
null
null
// Copyright 2017 Adam Smith // 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 writin...
35.333333
88
0.758648
asmith-git
dfcb68e61d0836ce410aba647e9b1ba55b96b1db
245
cpp
C++
gohbcalc/gohbcalc.cpp
skapix/ohbcalc
627ec6964268ce93d33032cff6f1813496881f78
[ "MIT" ]
1
2018-02-18T06:38:54.000Z
2018-02-18T06:38:54.000Z
gohbcalc/gohbcalc.cpp
skapix/ohbcalc
627ec6964268ce93d33032cff6f1813496881f78
[ "MIT" ]
null
null
null
gohbcalc/gohbcalc.cpp
skapix/ohbcalc
627ec6964268ce93d33032cff6f1813496881f78
[ "MIT" ]
null
null
null
#include "CalculatorWindow.h" #include <QApplication> #include <memory> using namespace std; int main(int argc, char *argv[]) { QApplication app(argc, argv); auto window = make_unique<CalculatorWindow>(); window->show(); app.exec(); }
17.5
48
0.702041
skapix
dfcc98e08f4028cbaf65113757a66dd8be982f1d
1,776
cpp
C++
atcoder/joi/JOI_012_yo/d.cpp
zaurus-yusya/atcoder
5fc345b3da50222fa1366d1ce52ae58799488cef
[ "MIT" ]
3
2020-05-27T16:27:12.000Z
2021-01-27T12:47:12.000Z
atcoder/joi/JOI_012_yo/d.cpp
zaurus-yusya/Competitive-Programming
c72e13a11f76f463510bd4a476b86631d9d1b13a
[ "MIT" ]
null
null
null
atcoder/joi/JOI_012_yo/d.cpp
zaurus-yusya/Competitive-Programming
c72e13a11f76f463510bd4a476b86631d9d1b13a
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> typedef long long ll; typedef long double ld; #define rep(i,n) for(ll i=0;i<(n);i++) #define repr(i,n) for(ll i=(n-1);i>=0;i--) #define all(x) x.begin(),x.end() #define br cout << "\n"; using namespace std; const long long INF = 1e10; const long long MOD = 1e9+7; using Graph = vector<vector<ll>...
26.909091
95
0.433559
zaurus-yusya
2545f63337f6332eb93d262cb455b8a074b1502c
285
cpp
C++
day5/prob5-1/main.cpp
ToruTakefusa/C-Practice
a81fb30eecd0d65aa7078124258e444b5a2bf3e0
[ "MIT" ]
null
null
null
day5/prob5-1/main.cpp
ToruTakefusa/C-Practice
a81fb30eecd0d65aa7078124258e444b5a2bf3e0
[ "MIT" ]
null
null
null
day5/prob5-1/main.cpp
ToruTakefusa/C-Practice
a81fb30eecd0d65aa7078124258e444b5a2bf3e0
[ "MIT" ]
null
null
null
#include <iostream> #include "function.h" using namespace std; int main() { int m = 3, n = 1; cout << "The max of " << m << " and " << n <<" is " << Function::max(m, n) << endl; cout << "The min of " << m << " and " << n << " is " << Function::min(m, n) << endl; return 0; }
23.75
86
0.494737
ToruTakefusa
2547fd128dec4c1801b6ef1a284b9824816804b7
6,450
hpp
C++
include/tagreader.hpp
dda119141/mp3tags
c75818e4fd6341f2c0c0b482f5c6eb1809b382aa
[ "MIT" ]
1
2020-08-01T21:51:05.000Z
2020-08-01T21:51:05.000Z
include/tagreader.hpp
dda119141/mp3tags
c75818e4fd6341f2c0c0b482f5c6eb1809b382aa
[ "MIT" ]
1
2020-05-01T11:52:59.000Z
2020-05-01T11:52:59.000Z
include/tagreader.hpp
dda119141/mp3tags
c75818e4fd6341f2c0c0b482f5c6eb1809b382aa
[ "MIT" ]
null
null
null
// Copyright(c) 2020-present, Moge & contributors. // Email: dda119141@gmail.com // Distributed under the MIT License (http://opensource.org/licenses/MIT) #ifndef _TAG_READER #define _TAG_READER #include <id3v2_common.hpp> #include <id3v2_v40.hpp> #include <id3v2_v30.hpp> #include <id3v2_v00.hpp> #include <id3v1.hpp>...
30.28169
91
0.58093
dda119141
2548f15afc9141f5d0376189a7ce5e0bbdbc0aa6
683
hpp
C++
tesla/base/Noncopyable.hpp
liuheng/tesla
da406aa9744618314a3dab99d8eb698b32234cbd
[ "MIT" ]
null
null
null
tesla/base/Noncopyable.hpp
liuheng/tesla
da406aa9744618314a3dab99d8eb698b32234cbd
[ "MIT" ]
null
null
null
tesla/base/Noncopyable.hpp
liuheng/tesla
da406aa9744618314a3dab99d8eb698b32234cbd
[ "MIT" ]
null
null
null
/* * * Author * Thomas Liu * Date * 4/17/2014 * Description * Noncopyable, copyed from boost::noncopyable.hpp * I don't want to include boost if <tr1> exists * * Licensed under the Apache License, Version 2.0 * */ #ifndef TESLA_BASE_NONCOPYABLE_HPP #define TESLA_BASE_NONCOPYABLE_HPP namesp...
17.512821
56
0.692533
liuheng
254b10bb9e8eb88df26dfc8ba4c94048b8fc8c27
8,307
cpp
C++
src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_high_prophet_barim.cpp
forgottenlands/ForgottenCore406
5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1
[ "OpenSSL" ]
null
null
null
src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_high_prophet_barim.cpp
forgottenlands/ForgottenCore406
5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1
[ "OpenSSL" ]
null
null
null
src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_high_prophet_barim.cpp
forgottenlands/ForgottenCore406
5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1
[ "OpenSSL" ]
null
null
null
/* * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * 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 Founda...
32.704724
143
0.559648
forgottenlands
254cb7b4a331c600d8dfbfe8bc2e526c5ddfecc5
497
cpp
C++
VACSS/sources/VACSSBootstrapJava.cpp
metatoaster/cellml-api
d7baf9038e42859fa96117db6c9644f9f09ecf8b
[ "W3C" ]
1
2016-10-19T14:48:20.000Z
2016-10-19T14:48:20.000Z
VACSS/sources/VACSSBootstrapJava.cpp
metatoaster/cellml-api
d7baf9038e42859fa96117db6c9644f9f09ecf8b
[ "W3C" ]
1
2016-12-05T09:20:14.000Z
2016-12-05T18:08:05.000Z
VACSS/sources/VACSSBootstrapJava.cpp
metatoaster/cellml-api
d7baf9038e42859fa96117db6c9644f9f09ecf8b
[ "W3C" ]
14
2015-07-27T13:45:54.000Z
2022-02-02T05:19:53.000Z
#include <exception> #include "pick-jni.h" #include "j2pVACSS.hxx" #include "VACSSBootstrap.hpp" #include "Utilities.hxx" extern "C" { JWRAP_PUBLIC_PRE jobject Java_cellml_1bootstrap_VACSSBootstrap_createVACSService(JNIEnv* env, jclass clazz) JWRAP_PUBLIC_POST; } jobject Java_cellml_1bootstrap_VACSSBootstrap_createVA...
33.133333
141
0.818913
metatoaster
255158e13e44296d47f07ca5721017a7c792fcb1
1,969
cpp
C++
sources/UseCases/JNI_Sampling/f2/function2.cpp
alrinach/ARISS
b84ace8412ebb037d7c1690ee488c111aef57b64
[ "CECILL-B", "MIT" ]
null
null
null
sources/UseCases/JNI_Sampling/f2/function2.cpp
alrinach/ARISS
b84ace8412ebb037d7c1690ee488c111aef57b64
[ "CECILL-B", "MIT" ]
null
null
null
sources/UseCases/JNI_Sampling/f2/function2.cpp
alrinach/ARISS
b84ace8412ebb037d7c1690ee488c111aef57b64
[ "CECILL-B", "MIT" ]
null
null
null
/* * Use case JNI_Template function2.cpp */ #include "CBasefunction.h" #include <iostream> int main(int argc, char *argv[]) { int redemarrage = atoi(argv[7]); int position = atoi(argv[6]); GUI_ARINC_partition("Partition2", position, redemarrage); int nbarg = argc; char **argument = new char*[argc]...
37.150943
88
0.562214
alrinach
255686deebe130e69adedc60fda42e28ac5ebd78
730
cpp
C++
lessons/week9/testy/test_guistyle.cpp
Wiladams/sr
4151ddc8303a78e44b0921d9dea0617dd412a7db
[ "MIT" ]
1
2020-03-25T22:02:46.000Z
2020-03-25T22:02:46.000Z
lessons/week9/testy/test_guistyle.cpp
Wiladams/sr
4151ddc8303a78e44b0921d9dea0617dd412a7db
[ "MIT" ]
null
null
null
lessons/week9/testy/test_guistyle.cpp
Wiladams/sr
4151ddc8303a78e44b0921d9dea0617dd412a7db
[ "MIT" ]
2
2020-02-06T01:59:27.000Z
2020-02-10T01:22:41.000Z
/* Test the guistyle object. The guistyle object draws the raised and sunken rectangles that are typical of UI elements such as buttons and sliders. */ #include "p5.hpp" #include "guistyle.hpp" GUIStyle gs; void draw() { background(colors.pink); gs.setBorderWidth(4); gs.drawSunkenRect(10, 1...
19.72973
64
0.657534
Wiladams
2557a7ff3d8082672289297ac348180a32fb6168
10,474
cpp
C++
Connector/CmdMsg.cpp
openlastchaos/lastchaos-source-server
935b770fa857e67b705717d154b11b717741edeb
[ "Apache-2.0" ]
null
null
null
Connector/CmdMsg.cpp
openlastchaos/lastchaos-source-server
935b770fa857e67b705717d154b11b717741edeb
[ "Apache-2.0" ]
null
null
null
Connector/CmdMsg.cpp
openlastchaos/lastchaos-source-server
935b770fa857e67b705717d154b11b717741edeb
[ "Apache-2.0" ]
1
2022-01-17T09:34:39.000Z
2022-01-17T09:34:39.000Z
#include <boost/format.hpp> #include "stdhdrs.h" #include "Server.h" #include "../ShareLib/DBCmd.h" #include "CmdMsg.h" void LoginRepMsg(CNetMsg::SP& msg, MSG_CONN_ERRORCODE errcode, const char* id, CUser* user) { msg->Init(MSG_CONN_REP); RefMsg(msg) << (unsigned char)MSG_CONN_LOGIN_REP << id << (unsigned c...
24.761229
158
0.673477
openlastchaos
2557e99c2ce1a1d9e3e4ab2d113d67c7c1fe71b6
16,571
cpp
C++
pxr/imaging/plugin/hdOSPRay/basisCurves.cpp
ospray/hdOSPRay
b7b9dff23d3f2df71d4b5ca1028c970bfdc2669b
[ "Apache-2.0" ]
93
2019-02-27T17:25:12.000Z
2022-03-30T02:20:11.000Z
pxr/imaging/plugin/hdOSPRay/basisCurves.cpp
ospray/hdOSPRay
b7b9dff23d3f2df71d4b5ca1028c970bfdc2669b
[ "Apache-2.0" ]
14
2019-03-15T12:23:16.000Z
2021-11-15T23:32:00.000Z
pxr/imaging/plugin/hdOSPRay/basisCurves.cpp
ospray/hdOSPRay
b7b9dff23d3f2df71d4b5ca1028c970bfdc2669b
[ "Apache-2.0" ]
9
2019-03-11T14:47:49.000Z
2022-01-16T00:50:45.000Z
// // Copyright 2021 Intel // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Tra...
38.899061
80
0.576791
ospray
25595e212acbae9095fa2df568ae2e27e042a1a2
1,981
cpp
C++
demo/vel_pkg/src/move_vel.cpp
KeKe0114/Team204
12a64614a6c8e477d2054bd1b44295ecc691894d
[ "MIT" ]
1
2020-05-16T10:30:43.000Z
2020-05-16T10:30:43.000Z
demo/vel_pkg/src/move_vel.cpp
dzh19990407/Team204
39d61db5a1d5abcff63f45d50a14c1d7c8277dd2
[ "MIT" ]
23
2020-03-08T05:22:09.000Z
2020-06-07T02:40:56.000Z
demo/vel_pkg/src/move_vel.cpp
dzh19990407/Team204
39d61db5a1d5abcff63f45d50a14c1d7c8277dd2
[ "MIT" ]
11
2020-03-08T02:51:59.000Z
2020-06-07T15:08:32.000Z
#include <ros/ros.h> #include <std_msgs/Float32MultiArray.h> #include <std_msgs/String.h> #include <std_msgs/Int32.h> #include <sensor_msgs/LaserScan.h> #include <geometry_msgs/Twist.h> static ros::Publisher vel_pub; static ros::Subscriber sub_sr; bool lock; geometry_msgs::Twist Move_and_turn(double x, double z) { ...
19.048077
67
0.636547
KeKe0114
255ca03db4054a6e9cca7a750c283cd666293209
18,762
cpp
C++
Sources/Plugins/Model_X/SDKMESHModelReader.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/Model_X/SDKMESHModelReader.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/Model_X/SDKMESHModelReader.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
/*============================================================================= SDKMESHModelReader.cpp Project: Sonata Engine Author: Julien Delezenne =============================================================================*/ #include "SDKMESHModelReader.h" namespace SE_X { #define SE_LOGNOTICE(message) Logger:...
31.21797
238
0.756316
jdelezenne
255debcd83e9999811a34cd7433bc04b85f8e126
1,191
cpp
C++
aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionDecisionAttributes.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionDecisionAttributes.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-swf/source/model/CompleteWorkflowExecutionDecisionAttributes.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/swf/model/CompleteWorkflowExecutionDecisionAttributes.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils...
19.85
120
0.768262
Neusoft-Technology-Solutions
255e96207ab8a1385e940cc6b2d1456ccd66a67c
3,004
hpp
C++
srook/algorithm/sorting/odd_even_sort.hpp
falgon/srookCppLibraries
ebcfacafa56026f6558bcd1c584ec774cc751e57
[ "MIT" ]
1
2018-07-01T07:54:37.000Z
2018-07-01T07:54:37.000Z
srook/algorithm/sorting/odd_even_sort.hpp
falgon/srookCppLibraries
ebcfacafa56026f6558bcd1c584ec774cc751e57
[ "MIT" ]
null
null
null
srook/algorithm/sorting/odd_even_sort.hpp
falgon/srookCppLibraries
ebcfacafa56026f6558bcd1c584ec774cc751e57
[ "MIT" ]
null
null
null
// Copyright (C) 2011-2020 Roki. Distributed under the MIT License #ifndef INCLUDED_SROOK_ALGORITHM_ODD_EVEN_SORT_HPP #define INCLUDED_SROOK_ALGORITHM_ODD_EVEN_SORT_HPP #ifdef _MSC_VER # if _MSC_VER > 1000 # pragma once # endif #endif #include <srook/algorithm/detail/config.hpp> #include <srook/type_traits/...
36.192771
116
0.740346
falgon
255e9d7110e1f6301c9e0cfd51e6090fab7f45ae
537
cpp
C++
src/engine/texture_manager.cpp
LorenzoDiStefano/CppEngine2D
1985b5ce92452aed73ed7b719cf555dabd9e9367
[ "MIT" ]
null
null
null
src/engine/texture_manager.cpp
LorenzoDiStefano/CppEngine2D
1985b5ce92452aed73ed7b719cf555dabd9e9367
[ "MIT" ]
null
null
null
src/engine/texture_manager.cpp
LorenzoDiStefano/CppEngine2D
1985b5ce92452aed73ed7b719cf555dabd9e9367
[ "MIT" ]
null
null
null
#include "texture_manager.hpp" namespace engine { texture_manager::texture_manager() : m_stored_texture{ 0 }, m_renderer{ NULL } { } void texture_manager::set_renderer(gfx::my_renderer* renderer) { this->m_renderer = renderer; } //return index of texture int texture_manager::load_texture(const std::string& p...
24.409091
83
0.743017
LorenzoDiStefano
256425ecac572a9272b81f402129e0f16835e682
2,171
hpp
C++
include/codegen/include/UnityEngine/EventSystems/ExecuteEvents_--c.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/UnityEngine/EventSystems/ExecuteEvents_--c.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/UnityEngine/EventSystems/ExecuteEvents_--c.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:39 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.Object #include "System/Object.hpp" // Including type...
42.568627
120
0.721787
Futuremappermydud
256b36811e459d3e3a7bbba144ffde399f61e83b
1,065
cc
C++
src/page_close_button.cc
jeff-cn/doogie
1b4ed74adecbae773b51e674d298e3d5b09e4244
[ "MIT" ]
291
2017-07-19T22:32:25.000Z
2022-02-16T03:03:21.000Z
charts/doogie-0.7.8/src/page_close_button.cc
hyq5436/playground
828b9d2266dbb7d0311e2e73b295fcafb101d94f
[ "MIT" ]
81
2017-09-06T15:46:27.000Z
2020-11-30T14:12:11.000Z
charts/doogie-0.7.8/src/page_close_button.cc
hyq5436/playground
828b9d2266dbb7d0311e2e73b295fcafb101d94f
[ "MIT" ]
29
2017-09-18T19:14:50.000Z
2022-01-24T06:03:17.000Z
#include "page_close_button.h" #include "util.h" namespace doogie { PageCloseButton::PageCloseButton(QTreeWidget* tree, QWidget* parent) : QToolButton(parent), tree_(tree) { setCheckable(true); setIcon(Util::CachedIcon(":/res/images/fontawesome/times.png")); setText("Close"); setAutoRaise(true); } void ...
24.767442
70
0.698592
jeff-cn
256d516f1d4f134513cf915f3e6db399923b47f4
3,242
cpp
C++
BattleSimGame/src/ExamplesLayer.cpp
Saduras/BattleSimGame
e0d0d198a6b410ce3368f053cac87b34ff55c922
[ "Apache-2.0" ]
null
null
null
BattleSimGame/src/ExamplesLayer.cpp
Saduras/BattleSimGame
e0d0d198a6b410ce3368f053cac87b34ff55c922
[ "Apache-2.0" ]
null
null
null
BattleSimGame/src/ExamplesLayer.cpp
Saduras/BattleSimGame
e0d0d198a6b410ce3368f053cac87b34ff55c922
[ "Apache-2.0" ]
null
null
null
#include "ExamplesLayer.h" #include <Engine/Renderer/Material.h> #include <Engine/Renderer/Mesh.h> #include <Engine/Renderer/Sprite.h> static void CreateQuadRenderExample(Engine::Scene* scene) { ENG_TRACE("QuadRenderExample"); // Create resources Engine::AssetRegistry::Add("mesh/quad", new Engine::Mesh(Engine::Pr...
28.690265
88
0.685379
Saduras
256da37ba23454c4feb78ea576cbd32d9ed4a43f
168
cpp
C++
BOJ/16000~16999/16500~16599/16504.cpp
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/16000~16999/16500~16599/16504.cpp
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/16000~16999/16500~16599/16504.cpp
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; long long N,a,S; int main() { cin >> N; for(int x=0; x<N*N; x++) { cin >> a; S+=a; } cout<<S; }
15.272727
30
0.458333
shinkeonkim
256f923d97e7b8977bb4bc04a33327ad39471149
1,247
cc
C++
Logger/FileWriter.cc
jwillemsen/sidecar
941d9f3b84d05ca405df1444d4d9fd0bde03887f
[ "MIT" ]
null
null
null
Logger/FileWriter.cc
jwillemsen/sidecar
941d9f3b84d05ca405df1444d4d9fd0bde03887f
[ "MIT" ]
null
null
null
Logger/FileWriter.cc
jwillemsen/sidecar
941d9f3b84d05ca405df1444d4d9fd0bde03887f
[ "MIT" ]
null
null
null
// -*- C++ -*- #include <fcntl.h> #include <iostream> #include <unistd.h> // for ::close #include "Writers.h" using namespace Logger; using namespace Logger::Writers; File::File(const Formatters::Formatter::Ref& formatter, const std::string& path, bool append, mode_t mode, bool flushAfterUse) : Write...
18.893939
106
0.579791
jwillemsen
2570bf51db189f1c3ebcf4c384a4312d6478bcc3
1,412
cpp
C++
IonSymbolTable.cpp
wukakuki/ion-hash-cpp
94d35c6d44bb208e09b0eb5402d9c93af2b3337a
[ "Apache-2.0" ]
2
2021-08-09T05:57:50.000Z
2021-08-09T19:27:23.000Z
IonSymbolTable.cpp
wukakuki/ion-hash-cpp
94d35c6d44bb208e09b0eb5402d9c93af2b3337a
[ "Apache-2.0" ]
null
null
null
IonSymbolTable.cpp
wukakuki/ion-hash-cpp
94d35c6d44bb208e09b0eb5402d9c93af2b3337a
[ "Apache-2.0" ]
null
null
null
/* Copyright (C) Siqi.Wu - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Written by Siqi.Wu <lion547016@gmail.com>, July 2021 */ #include "IonSymbolTable.h" #include "IonWriter.h" #include "ionc/ion.h" #include <cstdlib> #ifndef ION_OK #define ION_OK(x) if (x) { ...
22.774194
125
0.664306
wukakuki
2571f2e26b340aec51f6b0e31451c29c37ee2e0e
306
cpp
C++
Engine/Source/Runtime/Engine/Private/Commandlets/Commandlet.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Engine/Private/Commandlets/Commandlet.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Engine/Private/Commandlets/Commandlet.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "EnginePrivate.h" #include "Commandlets/Commandlet.h" UCommandlet::UCommandlet(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { IsServer = true; IsClient = true; IsEditor = true; ShowErrorCount = true; }
21.857143
69
0.764706
PopCap
257ba66d9da773ca868b7d1312cb3fec62143177
6,274
cc
C++
progprojet/trial/general/Vecteur3D.cc
YoussefSaied/MagneticFrustration
d3df5a70f4926540b97695170d85b15b8d895890
[ "MIT" ]
1
2020-12-18T15:39:49.000Z
2020-12-18T15:39:49.000Z
progprojet/trial/general/Vecteur3D.cc
YoussefSaied/MagneticFrustration
d3df5a70f4926540b97695170d85b15b8d895890
[ "MIT" ]
null
null
null
progprojet/trial/general/Vecteur3D.cc
YoussefSaied/MagneticFrustration
d3df5a70f4926540b97695170d85b15b8d895890
[ "MIT" ]
null
null
null
#include <iostream> #include "Vecteur3D.h" #include <cmath> #include "Aleatoire.h" using namespace std; // random utilisé dans la méthode random_vector() random_device generator; uniform_int_distribution<int> distribution(0, 10); // constructeurs Vecteur3D:: Vecteur3D(double x, double y, double z) : x(x), y(y), z(z...
22.89781
120
0.583201
YoussefSaied
257c2a8b0c80fb8b96fcf1f8d66bdc939336ad18
2,913
cpp
C++
solutions/integer-to-english-words/solution.cpp
locker/leetcode
bf34a697de47aaf32823224d054f9a45613ce180
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
solutions/integer-to-english-words/solution.cpp
locker/leetcode
bf34a697de47aaf32823224d054f9a45613ce180
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
solutions/integer-to-english-words/solution.cpp
locker/leetcode
bf34a697de47aaf32823224d054f9a45613ce180
[ "BSD-2-Clause-FreeBSD" ]
1
2019-08-30T06:53:23.000Z
2019-08-30T06:53:23.000Z
#include <cassert> #include <iostream> #include <string> #include <utility> using namespace std; class Solution { private: string numberLessThanTwentyToWord(int num) { assert(num >= 0); assert(num < 20); static const char *numToWord[] = { [0] = "Zero", [1] = "One", [2] = "Two", [3] = "Three", ...
22.937008
85
0.577755
locker
257e74fce27fd7bb75e222d8ca6989c8b88b5d53
11,541
cpp
C++
src/main/cpp/auton.cpp
RaidersRobotics5561/SwerveDrive2_2022
b21ecc272270b909ed58e65ce6e9241b99d85cc1
[ "BSD-3-Clause" ]
null
null
null
src/main/cpp/auton.cpp
RaidersRobotics5561/SwerveDrive2_2022
b21ecc272270b909ed58e65ce6e9241b99d85cc1
[ "BSD-3-Clause" ]
null
null
null
src/main/cpp/auton.cpp
RaidersRobotics5561/SwerveDrive2_2022
b21ecc272270b909ed58e65ce6e9241b99d85cc1
[ "BSD-3-Clause" ]
1
2022-02-02T01:45:57.000Z
2022-02-02T01:45:57.000Z
/* Auton.cpp Created on: Feb 28, 2021 Author: 5561 Changes: 2021-02-28 -> Beta */ #include <math.h> #include "control_pid.hpp" #include "Lookup.hpp" #include "Const.hpp" #include <frc/DriverStation.h> // #include "BallHandler.hpp" double distanceTarget; int theCoolerInteger; double V_autonTimer = 0;...
34.044248
138
0.494585
RaidersRobotics5561
257f704e634247c7e4d0be070f88bb0dac9d8080
10,011
cpp
C++
FlexProxy/FlexServer/src/FlexServer/Forwarder.cpp
carlcc/FlexProxy
a9b6a11e44e75979409608317c19c3da7cc10def
[ "Apache-2.0" ]
null
null
null
FlexProxy/FlexServer/src/FlexServer/Forwarder.cpp
carlcc/FlexProxy
a9b6a11e44e75979409608317c19c3da7cc10def
[ "Apache-2.0" ]
null
null
null
FlexProxy/FlexServer/src/FlexServer/Forwarder.cpp
carlcc/FlexProxy
a9b6a11e44e75979409608317c19c3da7cc10def
[ "Apache-2.0" ]
null
null
null
#include "FlexServer/Forwarder.h" #include "FlexCommon/Log.h" #include "FlexCommon/MiscUtils.h" #include "FlexCommon/Time.h" #include <chrono> #define FORARDER_L_INFO(fmt, ...) L_INFO(fmt " ({})", ##__VA_ARGS__, id_) #define FORARDER_L_ERROR(fmt, ...) L_ERROR(fmt " ({})", ##__VA_ARGS__, id_) #define FORARDER_SCOPE_EXI...
37.077778
149
0.528419
carlcc
257fb2ea69ae1ea1b16895697efcac76a15f6fb4
2,857
cpp
C++
thirdparty/ULib/examples/workflow/validation.cpp
liftchampion/nativejson-benchmark
6d575ffa4359a5c4230f74b07d994602a8016fb5
[ "MIT" ]
null
null
null
thirdparty/ULib/examples/workflow/validation.cpp
liftchampion/nativejson-benchmark
6d575ffa4359a5c4230f74b07d994602a8016fb5
[ "MIT" ]
null
null
null
thirdparty/ULib/examples/workflow/validation.cpp
liftchampion/nativejson-benchmark
6d575ffa4359a5c4230f74b07d994602a8016fb5
[ "MIT" ]
null
null
null
// validation.cpp #include <ulib/string.h> #undef PACKAGE #define PACKAGE "validation" #undef ARGS #define ARGS "" #define U_OPTIONS \ "purpose \"program for workflow validation...\"\n" \ "option c config 1 \"path of configuration file\" \"\"\n" #include "action.h" class Application : public Action { public: ...
40.239437
133
0.466923
liftchampion
257fc8096472fe90ab89ddd93e88157d474d9119
811
cpp
C++
leetcode/leetcode_0198_easy_house_robber/main.v01.cpp
friskit-china/leetcode-cn-repo
5f428e77f9d3f79da3e670a38b86d85bd58c81b2
[ "MIT" ]
null
null
null
leetcode/leetcode_0198_easy_house_robber/main.v01.cpp
friskit-china/leetcode-cn-repo
5f428e77f9d3f79da3e670a38b86d85bd58c81b2
[ "MIT" ]
null
null
null
leetcode/leetcode_0198_easy_house_robber/main.v01.cpp
friskit-china/leetcode-cn-repo
5f428e77f9d3f79da3e670a38b86d85bd58c81b2
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: int rob(vector<int>& nums) { if (nums.size() == 0){ return 0; }else if (nums.size() == 1){ return nums[0]; }else if (nums.size() == 2){ return max(nums[0], nums[1]); ...
24.575758
72
0.454994
friskit-china
2580576a6f3cfa08a43f7f685f588146a186471e
1,666
cpp
C++
src/services/log.cpp
viniciusferrao/cloysterhpc
a7b51ce2e2110e21f2720a40d5b6a2c521158937
[ "Apache-2.0" ]
4
2021-10-10T22:38:54.000Z
2022-03-03T01:13:44.000Z
src/services/log.cpp
viniciusferrao/cloysterhpc
a7b51ce2e2110e21f2720a40d5b6a2c521158937
[ "Apache-2.0" ]
null
null
null
src/services/log.cpp
viniciusferrao/cloysterhpc
a7b51ce2e2110e21f2720a40d5b6a2c521158937
[ "Apache-2.0" ]
1
2021-10-30T20:29:27.000Z
2021-10-30T20:29:27.000Z
// // Created by Vinícius Ferrão on 23/11/21. // #include "log.h" #include <spdlog/sinks/stdout_color_sinks.h> #include <memory> void Log::init(Level level) { auto stderrSink = std::make_shared<spdlog::sinks::stderr_color_sink_mt>(); stderrSink->set_pattern("%^[%Y-%m-%d %H:%M:%S.%e] %v%$"); std::vector<...
30.290909
78
0.567227
viniciusferrao
258484b6b5323071919f84c5c9adabc2e3bdbd48
2,883
hpp
C++
buffer/queue_buffer.hpp
ORNL-QCI/armish-fireplace
69a270a3f468a9d44f65b6abd77d3dcdd4ca6f91
[ "BSD-3-Clause" ]
1
2020-06-18T23:09:10.000Z
2020-06-18T23:09:10.000Z
buffer/queue_buffer.hpp
ORNL-QCI/armish-fireplace
69a270a3f468a9d44f65b6abd77d3dcdd4ca6f91
[ "BSD-3-Clause" ]
null
null
null
buffer/queue_buffer.hpp
ORNL-QCI/armish-fireplace
69a270a3f468a9d44f65b6abd77d3dcdd4ca6f91
[ "BSD-3-Clause" ]
1
2020-06-18T23:10:30.000Z
2020-06-18T23:10:30.000Z
#ifndef _BUFFER_QUEUE_BUFFER_HPP #define _BUFFER_QUEUE_BUFFER_HPP #include <common.hpp> #include "buffer_item.hpp" #include <condition_variable> #include <mutex> #include <queue> #include <thread> namespace buffer { /** * \brief A threadsafe FIFO buffer. */ class queue_buffer { private: typedef std::unique_...
20.592857
84
0.635796
ORNL-QCI
258671241fa45cb435baa3942436e876f0047ea6
1,683
hxx
C++
include/kry/Utility.hxx
rcgoodfellow/kry
29b0616d92c514b015eab4a93ad2c2c04d412190
[ "BSD-2-Clause" ]
null
null
null
include/kry/Utility.hxx
rcgoodfellow/kry
29b0616d92c514b015eab4a93ad2c2c04d412190
[ "BSD-2-Clause" ]
null
null
null
include/kry/Utility.hxx
rcgoodfellow/kry
29b0616d92c514b015eab4a93ad2c2c04d412190
[ "BSD-2-Clause" ]
null
null
null
/****************************************************************************** * libKrylov * ========= * Utility.hxx contians usefull stuff used throught libKrylov * * 19 August 2014 * ~ ry * ***************************************************************************/ #ifndef KRY_UTILITY_HXX #define KRY_UTILITY...
23.054795
79
0.63161
rcgoodfellow
25894e16fa3cb98e6c14015eae93fd0b1d2fbf80
727
hpp
C++
src/org/apache/poi/util/CloseIgnoringInputStream.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/util/CloseIgnoringInputStream.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/util/CloseIgnoringInputStream.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /POI/java/org/apache/poi/util/CloseIgnoringInputStream.java #pragma once #include <java/io/fwd-POI.hpp> #include <org/apache/poi/util/fwd-POI.hpp> #include <java/io/FilterInputStream.hpp> struct default_init_tag; class poi::util::CloseIgnoringInputStream : public ::java::io::FilterInputStream ...
20.771429
77
0.716644
pebble2015
258b9b4618d953bdab9588c12770e0dd06eca672
529
cc
C++
chromium/testing/libfuzzer/fuzzers/vp9_parser_fuzzer.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
27
2016-04-27T01:02:03.000Z
2021-12-13T08:53:19.000Z
chromium/testing/libfuzzer/fuzzers/vp9_parser_fuzzer.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
2
2017-03-09T09:00:50.000Z
2017-09-21T15:48:20.000Z
chromium/testing/libfuzzer/fuzzers/vp9_parser_fuzzer.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
17
2016-04-27T02:06:39.000Z
2019-12-18T08:07:00.000Z
// Copyright (c) 2015 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/filters/vp9_parser.h" // Entry point for LibFuzzer. extern "C" int LLVMFuzzerTestOneInput(const unsigned char* data, size_t size) { ...
27.842105
79
0.701323
wedataintelligence
258f1f55267eb2a53e3239281bedf52ffecdcec0
1,182
cpp
C++
PL7 F/main.cpp
DFTF-PConsole/EA-PLs-Algoritmos-LEI-2021
bd33f4943fc8c602f113daaf689d393f7436c518
[ "MIT" ]
null
null
null
PL7 F/main.cpp
DFTF-PConsole/EA-PLs-Algoritmos-LEI-2021
bd33f4943fc8c602f113daaf689d393f7436c518
[ "MIT" ]
null
null
null
PL7 F/main.cpp
DFTF-PConsole/EA-PLs-Algoritmos-LEI-2021
bd33f4943fc8c602f113daaf689d393f7436c518
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> int calc (int listaPosObjetos [], int numObjetosN, int rangeGuardaM); int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); int numCasos, numObjetosN, rangeGuardaM, i, j, res; std::cin >> numCasos; for (i=0; i < numCasos; i++) { ...
22.730769
70
0.590525
DFTF-PConsole
259210636ee812b511e7b876d9b48592722bfc9b
644
cpp
C++
src/v8-extensions/array-buffer-allocator.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
9,088
2017-08-08T22:28:16.000Z
2019-05-05T14:57:12.000Z
src/v8-extensions/array-buffer-allocator.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
172
2017-08-09T21:32:15.000Z
2019-05-03T21:21:05.000Z
src/v8-extensions/array-buffer-allocator.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
370
2017-08-09T04:58:14.000Z
2019-04-13T18:59:29.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "v8-extensions-macros.h" #if !(V8_VERSION_CHECK_FOR_ARRAY_BUFFER_ALLOCATOR) #include "array-buffer-allocator.h" #include <cstring> #include <stdlib.h> #include <v8.h> using namespace napa::v8_extensions; void*...
22.206897
66
0.748447
localh0rzd
25936507865b3b7a0913e35ff5badc10e553c8b4
783
hpp
C++
FlicsFacts/Controller/shareresponsesformatter.hpp
pgulotta/FlicsFacts-2
a4c5cccd839793478d46e6eb32ef1233a9c723ae
[ "MIT" ]
null
null
null
FlicsFacts/Controller/shareresponsesformatter.hpp
pgulotta/FlicsFacts-2
a4c5cccd839793478d46e6eb32ef1233a9c723ae
[ "MIT" ]
null
null
null
FlicsFacts/Controller/shareresponsesformatter.hpp
pgulotta/FlicsFacts-2
a4c5cccd839793478d46e6eb32ef1233a9c723ae
[ "MIT" ]
null
null
null
#pragma once #include "../FlicsFacts/fam/qqmlobjectlistmodel.hpp" #include <../FlicsFacts/Model/movieresponse.hpp> #include <QObject> #include <vector> #include <iterator> #include <memory> class QString; class ShareResponsesFormatter final : public QObject { Q_OBJECT public slots: signals: p...
24.46875
86
0.733078
pgulotta
2593df2f2156d693248704867e41a81b6020084d
3,631
cc
C++
RAVL2/Core/System/StringList.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/Core/System/StringList.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/Core/System/StringList.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
23.888158
87
0.536767
isuhao
25968da7615c317e9215785ac7dc7cdd982ca6a2
6,041
cc
C++
src/monitor.cc
sails/saf
0af8ab73062e8c2adbb3412533cc64a0b291b7d6
[ "MIT" ]
8
2015-01-26T20:03:35.000Z
2022-03-22T14:32:48.000Z
src/monitor.cc
sails/saf
0af8ab73062e8c2adbb3412533cc64a0b291b7d6
[ "MIT" ]
null
null
null
src/monitor.cc
sails/saf
0af8ab73062e8c2adbb3412533cc64a0b291b7d6
[ "MIT" ]
9
2015-05-22T03:28:20.000Z
2022-03-23T08:59:57.000Z
// Copyright (C) 2014 sails Authors. // All rights reserved. // // Official git repository and contact information can be found at // https://github.com/sails/sails and http://www.sailsxu.com/. // // Filename: monitor.cc // // Author: sailsxu <sailsxu@gmail.com> // Created: 2014-10-20 17:14:50 #include "src/monitor.h"...
29.183575
79
0.673398
sails
259822ff0331442e788c6b6a349f999ad8b4d4be
1,101
cc
C++
src/shared/platform_linux.cc
URUSCG-LLC/fletch
35967b56cecce8fd5ae96a0d85ca318272ee69a0
[ "BSD-3-Clause" ]
null
null
null
src/shared/platform_linux.cc
URUSCG-LLC/fletch
35967b56cecce8fd5ae96a0d85ca318272ee69a0
[ "BSD-3-Clause" ]
null
null
null
src/shared/platform_linux.cc
URUSCG-LLC/fletch
35967b56cecce8fd5ae96a0d85ca318272ee69a0
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE.md file. #if defined(FLETCH_TARGET_OS_LINUX) #include <errno.h> #include <stdlib.h> #include <unistd.h> #in...
28.230769
78
0.705722
URUSCG-LLC
259824b9db342cd728f1885ec099400f396493b3
622
cpp
C++
AtCoder/ABC/ABC-134/SolveE.cpp
MonadicDavidHuang/CompetitiveProgramming
b5b6f39a1be05d257f8ea8e504dd910cc624b153
[ "MIT" ]
null
null
null
AtCoder/ABC/ABC-134/SolveE.cpp
MonadicDavidHuang/CompetitiveProgramming
b5b6f39a1be05d257f8ea8e504dd910cc624b153
[ "MIT" ]
null
null
null
AtCoder/ABC/ABC-134/SolveE.cpp
MonadicDavidHuang/CompetitiveProgramming
b5b6f39a1be05d257f8ea8e504dd910cc624b153
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; using ll = long long int; const int MAX = (int)(1e5 + 5); const ll INF = (ll)(1e10 + 5); const int MAX_N = (int)(1e5 + 5); int n; ll a[MAX_N]; multiset<ll> mst; int main(void) { // Here your code ! scanf("%d", &n); for (int i = 0; i < n; ++i) { scanf("%lld"...
15.170732
44
0.506431
MonadicDavidHuang
259a5971339ae9b32e8c52e42993b4f7fd252dca
2,832
cpp
C++
chatroom/server.cpp
huangsunyang/shiyanlou
0b42f783d6aae639c1b0c2a33883a94e127038f7
[ "MIT" ]
30
2017-05-24T06:24:29.000Z
2020-12-18T11:09:53.000Z
chatroom/server.cpp
huangsunyang/shiyanlou
0b42f783d6aae639c1b0c2a33883a94e127038f7
[ "MIT" ]
null
null
null
chatroom/server.cpp
huangsunyang/shiyanlou
0b42f783d6aae639c1b0c2a33883a94e127038f7
[ "MIT" ]
15
2017-05-24T06:24:33.000Z
2020-04-21T11:32:36.000Z
#include "utility.h" int main() { struct sockaddr_in serverAddr; serverAddr.sin_family = PF_INET; serverAddr.sin_port = htons(SERVER_PORT); serverAddr.sin_addr.s_addr = inet_addr(SERVER_IP); int listener = socket(PF_INET, SOCK_STREAM, 0); if (listener < 0) { perror("Listener"); ...
30.782609
112
0.509181
huangsunyang
259eadc0c0ff46277b7f59ef63bfb81e6e836607
4,275
cpp
C++
dds/DCPS/transport/framework/TransportInst.cpp
binary42/OCI
08191bfe4899f535ff99637d019734ed044f479d
[ "MIT" ]
null
null
null
dds/DCPS/transport/framework/TransportInst.cpp
binary42/OCI
08191bfe4899f535ff99637d019734ed044f479d
[ "MIT" ]
null
null
null
dds/DCPS/transport/framework/TransportInst.cpp
binary42/OCI
08191bfe4899f535ff99637d019734ed044f479d
[ "MIT" ]
null
null
null
/* * $Id: TransportInst.cpp 5770 2012-08-17 21:04:27Z harrisb $ * * * Distributed under the OpenDDS License. * See: http://www.opendds.org/license.html */ #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/ #include "TransportInst.h" #include "TransportImpl.h" #include "TransportExcepti...
35.330579
119
0.698947
binary42
259f1e13786bfbe41bb48dcc949b9c0d102b8fa2
538
cpp
C++
Acun3D/Spotlight.cpp
Catchouli-old/Acun3D
1a34791d30528a442d9734de31b0bcac86cb32d5
[ "MIT" ]
1
2018-11-15T18:53:44.000Z
2018-11-15T18:53:44.000Z
Acun3D/Spotlight.cpp
Catchouli-old/Acun3D
1a34791d30528a442d9734de31b0bcac86cb32d5
[ "MIT" ]
null
null
null
Acun3D/Spotlight.cpp
Catchouli-old/Acun3D
1a34791d30528a442d9734de31b0bcac86cb32d5
[ "MIT" ]
null
null
null
#include "Spotlight.h" namespace a3d { Spotlight::Spotlight(Vector position, Vector direction, Colour colour, float fov, float exponent) : Light(LightTypes::SPOT, colour), _position(position), _direction(direction), _fov(fov), _exponent(exponent) { } const Vector& Spotlight::getPosition() const { retur...
17.354839
98
0.702602
Catchouli-old
259fc8d5efb83f4124ff3a448975d8a10fab8089
6,402
cpp
C++
model_tools/src/model_quantization.cpp
ishine/bolt
ea734231f7085898ba5ca10da6d02da38058a705
[ "MIT" ]
722
2019-12-02T13:07:19.000Z
2022-03-24T08:55:38.000Z
model_tools/src/model_quantization.cpp
ishine/bolt
ea734231f7085898ba5ca10da6d02da38058a705
[ "MIT" ]
89
2019-12-04T13:46:25.000Z
2022-03-28T02:52:27.000Z
model_tools/src/model_quantization.cpp
ishine/bolt
ea734231f7085898ba5ca10da6d02da38058a705
[ "MIT" ]
137
2019-12-03T08:41:58.000Z
2022-03-18T19:54:59.000Z
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation the rights to u...
47.422222
150
0.564667
ishine
25a0c2a2dbd9340f81b6f37fd2ac62d508561991
12,941
cxx
C++
smtk/extension/qt/qtModelOperationWidget.cxx
yumin/SMTK
d280f10c5b70953b2a0196f71832955c7fc75e7f
[ "BSD-3-Clause-Clear" ]
null
null
null
smtk/extension/qt/qtModelOperationWidget.cxx
yumin/SMTK
d280f10c5b70953b2a0196f71832955c7fc75e7f
[ "BSD-3-Clause-Clear" ]
4
2016-11-10T15:49:51.000Z
2017-02-06T23:24:16.000Z
smtk/extension/qt/qtModelOperationWidget.cxx
yumin/SMTK
d280f10c5b70953b2a0196f71832955c7fc75e7f
[ "BSD-3-Clause-Clear" ]
null
null
null
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
36.2493
102
0.64145
yumin
25a52f3c5a1d23b4e36fd418256f4e2482cf130a
1,709
hh
C++
aegir-brewd/src/GPIO.hh
gczuczy/aegir
1275ca41bfe4a56347eb2531211df4c70933fb96
[ "BSD-3-Clause" ]
null
null
null
aegir-brewd/src/GPIO.hh
gczuczy/aegir
1275ca41bfe4a56347eb2531211df4c70933fb96
[ "BSD-3-Clause" ]
11
2020-06-04T20:31:02.000Z
2022-02-26T01:39:26.000Z
aegir-brewd/src/GPIO.hh
gczuczy/aegir
1275ca41bfe4a56347eb2531211df4c70933fb96
[ "BSD-3-Clause" ]
1
2020-12-10T19:19:41.000Z
2020-12-10T19:19:41.000Z
/* Basic C++ wrapper for libgpio */ #ifndef GPIO_HH #define GPIO_HH #include <sys/types.h> #include <libgpio.h> #include <string> #include <map> #include <vector> #include "Exception.hh" namespace aegir { enum class PINState: uint8_t { Off=0, On=1, Pulsate=2, Unknown=255 }; cl...
18.78022
56
0.574605
gczuczy
25a5464f1646714e89d1f2238694da8a8850d8d1
3,798
cpp
C++
Space Harrier Clone/GameScene.cpp
BrunoAOR/Space-Harrier-Clone
35465ad2d421f69a75a02855627c8ea726b248c6
[ "MIT" ]
12
2018-12-07T16:05:02.000Z
2021-09-06T01:46:50.000Z
Space Harrier Clone/GameScene.cpp
BrunoAOR/Space-Harrier-Clone
35465ad2d421f69a75a02855627c8ea726b248c6
[ "MIT" ]
null
null
null
Space Harrier Clone/GameScene.cpp
BrunoAOR/Space-Harrier-Clone
35465ad2d421f69a75a02855627c8ea726b248c6
[ "MIT" ]
1
2020-06-03T03:37:27.000Z
2020-06-03T03:37:27.000Z
#include "GameScene.h" #include "Engine/API.h" #include "Engine/GameObject.h" #include "Engine/Transform.h" #include "Engine/Behaviour.h" #include "Engine/Sprite.h" #include "Engine/Vector2.h" #include "gameData.h" #include "FloorManager.h" #include "DarkLineinfo.h" #include "FloorObjectsFactory.h" #include "Backgroun...
26.193103
118
0.71169
BrunoAOR
25aa44984a1a5b6a8455e2cc7912cf0c0bf3cc3e
617
hpp
C++
Include/Injector/Graphics/Pipeline/DiffuseGpuPipeline.hpp
InjectorGames/Inject
09e74a83c287b81fd8272c10d6bae2b1aa785c0e
[ "BSD-3-Clause" ]
2
2019-12-10T16:26:58.000Z
2020-04-17T11:47:42.000Z
Include/Injector/Graphics/Pipeline/DiffuseGpuPipeline.hpp
InjectorGames/Inject
09e74a83c287b81fd8272c10d6bae2b1aa785c0e
[ "BSD-3-Clause" ]
28
2020-08-17T12:39:50.000Z
2020-11-16T20:42:50.000Z
Include/Injector/Graphics/Pipeline/DiffuseGpuPipeline.hpp
InjectorGames/InjectorEngine
09e74a83c287b81fd8272c10d6bae2b1aa785c0e
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "Injector/Mathematics/Vector4.hpp" namespace Injector { class DiffuseGpuPipeline { public: virtual const FloatVector4& getObjectColor() const = 0; virtual void setObjectColor(const FloatVector4& color) = 0; virtual const FloatVector4& getAmbientColor() const = 0; virtual void setAmbi...
28.045455
68
0.76175
InjectorGames
25ac395c76e5e39c1b36fe24d38740f89cb5553e
1,916
cpp
C++
runtime/thread/semaphore.cpp
braiam/ROCm-OpenCL-Runtime
a66edda66d98923e61fe97596c632eac743e63ed
[ "MIT" ]
1
2021-11-11T04:11:32.000Z
2021-11-11T04:11:32.000Z
runtime/thread/semaphore.cpp
braiam/ROCm-OpenCL-Runtime
a66edda66d98923e61fe97596c632eac743e63ed
[ "MIT" ]
null
null
null
runtime/thread/semaphore.cpp
braiam/ROCm-OpenCL-Runtime
a66edda66d98923e61fe97596c632eac743e63ed
[ "MIT" ]
1
2021-11-11T04:11:26.000Z
2021-11-11T04:11:26.000Z
// // Copyright (c) 2008,2010 Advanced Micro Devices, Inc. All rights reserved. // #include "thread/semaphore.hpp" #include "thread/thread.hpp" #if defined(_WIN32) || defined(__CYGWIN__) #include <windows.h> #else // !_WIN32 #include <semaphore.h> #include <errno.h> #endif // !_WIN32 namespace amd { Semaphore::Se...
21.772727
85
0.608038
braiam
25ad3c8caffa3d545b376fdebb96c1aa69f8aee2
798
hpp
C++
src/ast/include/unary_operation_expr.hpp
bfeip/Lain
3df115167dbb0eb8147b225a24bb72b6c0920c64
[ "MIT" ]
5
2017-03-28T00:36:54.000Z
2019-08-06T00:05:44.000Z
src/ast/include/unary_operation_expr.hpp
bfeip/Lain
3df115167dbb0eb8147b225a24bb72b6c0920c64
[ "MIT" ]
4
2017-03-28T01:36:05.000Z
2017-04-17T20:34:46.000Z
src/ast/include/unary_operation_expr.hpp
bfeip/Lain
3df115167dbb0eb8147b225a24bb72b6c0920c64
[ "MIT" ]
null
null
null
#ifndef UNARY_OPERATION_EXPR_HPP #define UNARY_OPERATION_EXPR_HPP #include "ast_shared.hpp" #include "expr.hpp" #include "operation_type.hpp" class UnaryOperationExpr : virtual public Expr { private: std::unique_ptr<Expr> operand; OperationType op; public: UnaryOperationExpr() = delete; UnaryOperationExpr(Sco...
29.555556
101
0.716792
bfeip
25ad8377a0154a392757548948a22ff013caff50
988
cc
C++
solutions/codeforces/contest/94/b.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
4
2020-11-07T14:38:02.000Z
2022-01-03T19:02:36.000Z
solutions/codeforces/contest/94/b.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
1
2019-04-17T06:55:14.000Z
2019-04-17T06:55:14.000Z
solutions/codeforces/contest/94/b.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
null
null
null
/* ID: zhaowei10 TASK: LANG: C++14 */ #include "bits/stdc++.h" using namespace std; #ifdef LOCAL #include "../../_library/cc/debug.h" #define FILE "test" #else #define debug(...) 0 #define FILE "" #endif int main() { cin.tie(nullptr)->sync_with_stdio(false); if (fopen(FILE ".in", "r")) { freopen(FILE ".in", ...
18.641509
56
0.448381
zwliew
25ae0da3413de84735a70c76d68d862e6525e0ae
2,303
cpp
C++
products/gooeyfi_core/src/GooeyFiButton.cpp
cbtek/GooeyFi
f900d8465959f3ad73d2d4d528091afbe7570bb7
[ "MIT" ]
1
2018-01-23T14:59:28.000Z
2018-01-23T14:59:28.000Z
products/gooeyfi_core/src/GooeyFiButton.cpp
cbtek/GooeyFi
f900d8465959f3ad73d2d4d528091afbe7570bb7
[ "MIT" ]
null
null
null
products/gooeyfi_core/src/GooeyFiButton.cpp
cbtek/GooeyFi
f900d8465959f3ad73d2d4d528091afbe7570bb7
[ "MIT" ]
null
null
null
/* GooeyFiButton.cpp MIT License Copyright (c) 2016 cbtek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modif...
23.742268
78
0.721233
cbtek
25bab4577369ee85445bb570dbd12573ef9a15c3
9,062
cpp
C++
src/TestTool/TestTeletext.cpp
qtlmovie/qtlmovie
082ad5ea6522a02d5ac0d86f23cdd6152edff613
[ "BSD-2-Clause" ]
8
2016-08-09T14:05:58.000Z
2020-09-05T14:43:36.000Z
src/TestTool/TestTeletext.cpp
qtlmovie/qtlmovie
082ad5ea6522a02d5ac0d86f23cdd6152edff613
[ "BSD-2-Clause" ]
15
2016-08-09T14:11:21.000Z
2022-01-15T23:39:07.000Z
src/TestTool/TestTeletext.cpp
qtlmovie/qtlmovie
082ad5ea6522a02d5ac0d86f23cdd6152edff613
[ "BSD-2-Clause" ]
1
2017-08-26T22:08:58.000Z
2017-08-26T22:08:58.000Z
//---------------------------------------------------------------------------- // // Copyright (c) 2013-2017, Thierry Lelegard // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistri...
35.537255
154
0.536526
qtlmovie
25bbfb56745fb8732ccd1877d0f1a6ce595a1b46
13,779
cc
C++
ja2/Build/Laptop/Insurance.cc
gtrafimenkov/ja2-vanilla-cp
961076add8175afa845cbd6c33dbf9cd78f61a0c
[ "BSD-Source-Code" ]
null
null
null
ja2/Build/Laptop/Insurance.cc
gtrafimenkov/ja2-vanilla-cp
961076add8175afa845cbd6c33dbf9cd78f61a0c
[ "BSD-Source-Code" ]
null
null
null
ja2/Build/Laptop/Insurance.cc
gtrafimenkov/ja2-vanilla-cp
961076add8175afa845cbd6c33dbf9cd78f61a0c
[ "BSD-Source-Code" ]
null
null
null
#include "Laptop/Insurance.h" #include "Directories.h" #include "Laptop/InsuranceContract.h" #include "Laptop/InsuranceText.h" #include "Laptop/Laptop.h" #include "Local.h" #include "SGP/ButtonSystem.h" #include "SGP/Font.h" #include "SGP/HImage.h" #include "SGP/Line.h" #include "SGP/VObject.h" #include "SGP/VSurface....
39.25641
100
0.782713
gtrafimenkov
25c21ba065b3113f4bff89de7d8ee2c178457871
3,267
cpp
C++
test/utils/round_trip.cpp
mathisloge/mapnik-vector-tile
57d183482bf84e90072c2975829f3190bb62e19f
[ "BSD-3-Clause" ]
247
2015-01-06T07:05:59.000Z
2022-03-10T09:34:22.000Z
test/utils/round_trip.cpp
mathisloge/mapnik-vector-tile
57d183482bf84e90072c2975829f3190bb62e19f
[ "BSD-3-Clause" ]
210
2015-01-09T05:38:25.000Z
2021-04-27T10:43:24.000Z
test/utils/round_trip.cpp
mathisloge/mapnik-vector-tile
57d183482bf84e90072c2975829f3190bb62e19f
[ "BSD-3-Clause" ]
86
2015-01-06T01:04:35.000Z
2021-11-21T11:52:27.000Z
// test utils #include "round_trip.hpp" // mapnik-vector-tile #include "vector_tile_processor.hpp" #include "vector_tile_strategy.hpp" #include "vector_tile_geometry_decoder.hpp" // mapnik #include <mapnik/feature_factory.hpp> #include <mapnik/memory_datasource.hpp> // std #include <exception> // libprotobuf #pragm...
34.755319
113
0.665136
mathisloge
25c6ead1068b0c55c14367d6a25390dece3f8fa8
2,035
cpp
C++
runtime/pass/EmitCodes.cpp
easywave/easy-just-in-time
6360bdcff1943b93fb92e71b8bbe5844f6c897ab
[ "BSD-3-Clause" ]
null
null
null
runtime/pass/EmitCodes.cpp
easywave/easy-just-in-time
6360bdcff1943b93fb92e71b8bbe5844f6c897ab
[ "BSD-3-Clause" ]
null
null
null
runtime/pass/EmitCodes.cpp
easywave/easy-just-in-time
6360bdcff1943b93fb92e71b8bbe5844f6c897ab
[ "BSD-3-Clause" ]
1
2021-11-29T01:10:25.000Z
2021-11-29T01:10:25.000Z
#include <easy/runtime/RuntimePasses.h> #include <easy/runtime/BitcodeTracker.h> #include <llvm/IR/Module.h> #include <llvm/IR/Function.h> #include <llvm/IR/Constant.h> #include <llvm/IR/Constants.h> #include <llvm/IR/InstIterator.h> #include <llvm/IR/IRBuilder.h> #include <llvm/Linker/Linker.h> #include <llvm/ADT/Smal...
25.123457
71
0.637838
easywave
5ad4686d6d1c3860be8a6f1e03a9b55c8e9b2ac1
444
cpp
C++
src/software/ai/intent/stop_intent_test.cpp
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/software/ai/intent/stop_intent_test.cpp
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/software/ai/intent/stop_intent_test.cpp
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
#include "software/ai/intent/stop_intent.h" #include <gtest/gtest.h> #include <string.h> // For equality operators, we only check for cases not covered in the Primitive tests, // since Intents inherit from Primitives TEST(StopIntentTest, test_equality_operator_intents_equal) { StopIntent stop_intent = StopI...
29.6
86
0.763514
jonl112
5ad541951a0097601d6a6d2b3350270114cc5b93
2,434
cpp
C++
string_input.cpp
darkoppressor/vendor-trash
371c032fe92a1259cf821015541008a6011952ab
[ "CC-BY-4.0" ]
null
null
null
string_input.cpp
darkoppressor/vendor-trash
371c032fe92a1259cf821015541008a6011952ab
[ "CC-BY-4.0" ]
null
null
null
string_input.cpp
darkoppressor/vendor-trash
371c032fe92a1259cf821015541008a6011952ab
[ "CC-BY-4.0" ]
null
null
null
/* Copyright (c) 2011 Kevin Wells */ /* Vendor Trash may be freely redistributed. See license for details. */ #include "string_input.h" #include "variables.h" #include "sdl.h" #include "quit.h" using namespace std; string_input::string_input(){ str="Vendor"; text=NULL; SDL_EnableUNICODE(SDL_ENABLE);/**...
38.03125
138
0.612983
darkoppressor
5ad87d43cdc303e8bbd0461a3b02471c01a5ab44
289
cpp
C++
EntityComponentSystem/PbrRenderer/ModelResource.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
EntityComponentSystem/PbrRenderer/ModelResource.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
EntityComponentSystem/PbrRenderer/ModelResource.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
#include "ModelResource.hpp" void renderer::ModelResource::load() { _model = std::make_unique<Model>(getPath()); } renderer::Model* renderer::ModelResource::getModel() { return _model.get(); } const renderer::Model* renderer::ModelResource::getModel() const { return _model.get(); }
20.642857
66
0.719723
Spheya
5ad8ce0ad3510e13f3f813eda9426a37939b0232
580
cc
C++
ExampleWorkspace/ExampleLibC/src/class-c.cc
nidegen/Tart
030bae172e9c2bb59020a6ccc29dfa7b928ce3f7
[ "MIT" ]
null
null
null
ExampleWorkspace/ExampleLibC/src/class-c.cc
nidegen/Tart
030bae172e9c2bb59020a6ccc29dfa7b928ce3f7
[ "MIT" ]
null
null
null
ExampleWorkspace/ExampleLibC/src/class-c.cc
nidegen/Tart
030bae172e9c2bb59020a6ccc29dfa7b928ce3f7
[ "MIT" ]
null
null
null
#include "class-c.h" #include <iostream> #include <unordered_set> ClassC::ClassC() { is_true_ = true; std::cout << "Class C initialized, activation is: " << is_true_ << '\n'; std::cout << "ExampleLibC was copiled with C++ version " << __cplusplus << std::endl; std::cout << "ExampleLibC TART_TARGET_OS is: " <<...
30.526316
87
0.656897
nidegen
5ad8e5b1b7244e23e80cf401837e0f16fde8d22e
2,889
cpp
C++
Edu CF R25/B.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
Edu CF R25/B.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
Edu CF R25/B.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for(ll i=a;i<b;i++) #define re(i,b) for(ll i=0;i<b;i++) #define repr(i,n) for(ll i=n-1;i>=0;i--) #define ll long long #define ld long double #define llu long long unsigned #define pll std::pair<ll, ll> #defin...
19.787671
88
0.421253
parthlathiya
5adafdca2d08620deb01d8b13702aca27d335996
761
cpp
C++
hackerrank/maxsubarray/solution.cpp
SamProkopchuk/coding-problems
fa0ca2c05ac90e41945de1a5751e5545a8459ac4
[ "MIT" ]
null
null
null
hackerrank/maxsubarray/solution.cpp
SamProkopchuk/coding-problems
fa0ca2c05ac90e41945de1a5751e5545a8459ac4
[ "MIT" ]
null
null
null
hackerrank/maxsubarray/solution.cpp
SamProkopchuk/coding-problems
fa0ca2c05ac90e41945de1a5751e5545a8459ac4
[ "MIT" ]
null
null
null
#include <algorithm> #include <climits> #include <iostream> #include <vector> typedef signed long long ll; #define FOR(x, to) for (x = 0; x < (to); ++x) #define FORR(x, arr) for (auto& x : arr) using namespace std; int main() { int t, n, i, x, cursum, maxsubarr, maxsubseq, largest; cin >> t; wh...
23.060606
57
0.549277
SamProkopchuk
5adf04c2bf659fb1a62381cc221426548fb1fcec
3,453
cpp
C++
PlatformIO/lib/RdDebugLoopTimer/DebugLoopTimer.cpp
TheFactory22/RBotFirmware
cb7ea74869189f015578cb31ddc0516c72f1ea00
[ "MIT" ]
15
2017-03-05T00:38:23.000Z
2022-02-15T17:27:48.000Z
PlatformIO/lib/RdDebugLoopTimer/DebugLoopTimer.cpp
DanalEstes/RBotFirmware
4f90f4652a7ac9ff04b0baeeaa439b1882c19220
[ "MIT" ]
8
2018-01-01T16:57:43.000Z
2020-04-04T23:08:48.000Z
EspSw/BusRaiderEsp32/lib/RdDebugLoopTimer/DebugLoopTimer.cpp
robdobsn/BusRaider
691e7882a06408208ca2abece5e7c4bcb4b4fa45
[ "MIT" ]
14
2017-08-07T06:09:54.000Z
2021-12-03T01:27:21.000Z
// Debug Loop timer // Used in a void loop() in Arduino / Particle to output a debug string // periodically and indicate loop time // Rob Dobson 2017 #include "ArduinoLog.h" #include "DebugLoopTimer.h" void DebugLoopTimer::service() { // Monitor how long it takes to go around loop if (_lastLoopStartValid) ...
30.289474
138
0.59861
TheFactory22
5ae04154c910e9c54570deec663d7db166df89a3
731
cpp
C++
client/sdlwrap/SdlSound.cpp
fvazquezf/7542_TpFinal
1699d9cf97794186f7e41d3bb2d33ba9239eaa3f
[ "MIT" ]
null
null
null
client/sdlwrap/SdlSound.cpp
fvazquezf/7542_TpFinal
1699d9cf97794186f7e41d3bb2d33ba9239eaa3f
[ "MIT" ]
null
null
null
client/sdlwrap/SdlSound.cpp
fvazquezf/7542_TpFinal
1699d9cf97794186f7e41d3bb2d33ba9239eaa3f
[ "MIT" ]
null
null
null
#include "SdlSound.h" SdlSound::SdlSound(const std::string &soundPath) : effect(Mix_LoadWAV(soundPath.c_str())) { if (!effect) { throw Exception("SdlSound: ", Mix_GetError()); } } SdlSound::~SdlSound() { if (effect != nullptr) { Mix_FreeChunk(effect); } } SdlSound::SdlSound(SdlSound &...
19.236842
58
0.601915
fvazquezf
5ae63bf0abeb5131d2947a797e28be60d7d0bb61
641
cpp
C++
YorozuyaGSLib/source/_attack_skill_result_zocl.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/_attack_skill_result_zocl.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/_attack_skill_result_zocl.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <_attack_skill_result_zocl.hpp> START_ATF_NAMESPACE _attack_skill_result_zocl::_attack_skill_result_zocl() { using org_ptr = void (WINAPIV*)(struct _attack_skill_result_zocl*); (org_ptr(0x1400eed50L))(this); }; void _attack_skill_result_zocl::ctor__attack_skill_result_zocl() ...
30.52381
75
0.698908
lemkova
5ae831dfdb6a4baa77461d60a22d13714c3eae6d
692
cpp
C++
tests/std/utility.cpp
AlCash07/ACTL
15de4e2783d8e39dbd8e10cd635aaab328ca4f5b
[ "BSL-1.0" ]
17
2018-08-22T06:48:20.000Z
2022-02-22T21:20:09.000Z
tests/std/utility.cpp
AlCash07/ACTL
15de4e2783d8e39dbd8e10cd635aaab328ca4f5b
[ "BSL-1.0" ]
null
null
null
tests/std/utility.cpp
AlCash07/ACTL
15de4e2783d8e39dbd8e10cd635aaab328ca4f5b
[ "BSL-1.0" ]
null
null
null
// Copyright 2019 Oleksandr Bacherikov. // // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). #include <actl/io/device/memory.hpp> #include <actl/std/utility.hpp> #include "test.hpp" using namespace ac::io; TEST_CA...
23.066667
77
0.611272
AlCash07
5ae9a899e453b0c591d3fa8f49e993d740cc8588
735
cpp
C++
tlx/timestamp.cpp
mullovc/tlx
e7c17b5981cbd7912b689fa0ad993e18424e26fe
[ "BSL-1.0" ]
284
2017-02-26T08:49:15.000Z
2022-03-30T21:55:37.000Z
tlx/timestamp.cpp
xiao2mo/tlx
b311126e670753897c1defceeaa75c83d2d9531a
[ "BSL-1.0" ]
24
2017-09-05T21:02:41.000Z
2022-03-07T10:09:59.000Z
tlx/timestamp.cpp
xiao2mo/tlx
b311126e670753897c1defceeaa75c83d2d9531a
[ "BSL-1.0" ]
62
2017-02-23T12:29:27.000Z
2022-03-31T07:45:59.000Z
/******************************************************************************* * tlx/timestamp.cpp * * Part of tlx - http://panthema.net/tlx * * Copyright (C) 2019 Timo Bingmann <tb@panthema.net> * * All rights reserved. Published under the Boost Software License, Version 1.0 *********************************...
28.269231
80
0.451701
mullovc
5aea94dbf1a332c0bde67c48cfa530baca832597
271
cpp
C++
task5/MockConfiguration.cpp
hasherezade/mastercoder2014
cc9e201fa8e5c7b2b8b085a777b10b70e4827705
[ "BSD-3-Clause" ]
9
2015-09-27T10:35:02.000Z
2021-12-26T13:21:35.000Z
task5/MockConfiguration.cpp
hasherezade/mastercoder2014
cc9e201fa8e5c7b2b8b085a777b10b70e4827705
[ "BSD-3-Clause" ]
null
null
null
task5/MockConfiguration.cpp
hasherezade/mastercoder2014
cc9e201fa8e5c7b2b8b085a777b10b70e4827705
[ "BSD-3-Clause" ]
6
2016-03-25T07:02:36.000Z
2022-02-24T06:28:16.000Z
#include "MockConfiguration.h" DistanceType MockConfiguration::getDistnanceType() { return currentType; } void MockConfiguration::useJaroWinkler() { currentType = JARO_WINKLER; } void MockConfiguration::useLevenshtein() { currentType = LEVENSHTEIN; }
16.9375
51
0.745387
hasherezade
5aeaec4a5297df0998d978f6c58a4bb4614728dd
15,231
cpp
C++
src/orz/ssl/aes.cpp
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
src/orz/ssl/aes.cpp
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
src/orz/ssl/aes.cpp
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
// // Created by lby on 2018/1/15. // #include "orz/ssl/aes.h" #include "orz/utils/log.h" #ifndef ORZ_WITH_OPENSSL #include <cstring> #include <cstdint> #include <cassert> #include <memory> #else // ORZ_WITH_OPENSSL #include <openssl/aes.h> #include <memory> #include <cstring> #endif // !ORZ_WITH_OPENSSL nam...
36.701205
115
0.55433
ViewFaceCore
5aebd39ecd2063eadc43241eb6177b5810862f50
3,182
cpp
C++
dkk_lib/src/Communicator.cpp
mjf-89/DistributedKernelKmeans
ca6daa81cd51a0f2400a111c5d10a9ef144f1574
[ "MIT" ]
null
null
null
dkk_lib/src/Communicator.cpp
mjf-89/DistributedKernelKmeans
ca6daa81cd51a0f2400a111c5d10a9ef144f1574
[ "MIT" ]
null
null
null
dkk_lib/src/Communicator.cpp
mjf-89/DistributedKernelKmeans
ca6daa81cd51a0f2400a111c5d10a9ef144f1574
[ "MIT" ]
null
null
null
#include <stdlib.h> #include "Communicator.h" #include "DistributedArray2D.h" namespace DKK{ Communicator::Communicator(int *argc, char*** argv) { MPI_Init(argc, argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &size); dsps = (int*)malloc(sizeof(int)*size); cnts = (int*)malloc(sizeof(...
25.869919
118
0.714645
mjf-89
5af39e0a103be2f95f20ae701bb4c5c528617591
8,136
inl
C++
H3API/lib/h3api/H3Allocator/H3Allocator.inl
pawel54321/H3Plugins
737739beabb8c80f393ee480949c1e37b3c61507
[ "MIT" ]
45
2019-06-13T15:41:59.000Z
2022-03-20T06:04:42.000Z
H3API/lib/h3api/H3Allocator/H3Allocator.inl
pawel54321/H3Plugins
737739beabb8c80f393ee480949c1e37b3c61507
[ "MIT" ]
20
2020-04-06T14:09:42.000Z
2021-12-14T04:21:52.000Z
H3API/lib/h3api/H3Allocator/H3Allocator.inl
pawel54321/H3Plugins
737739beabb8c80f393ee480949c1e37b3c61507
[ "MIT" ]
9
2019-06-13T15:42:03.000Z
2021-02-10T12:03:30.000Z
////////////////////////////////////////////////////////////////////// // // // Created by RoseKavalier: // // rosekavalierhc@gmail.com // // Created: 20...
24.286567
106
0.660767
pawel54321
5af6666e50842e290dae73c96e019c40f81b4ec2
54
hpp
C++
src/boost_flyweight_intermodule_holder_fwd.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_flyweight_intermodule_holder_fwd.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_flyweight_intermodule_holder_fwd.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/flyweight/intermodule_holder_fwd.hpp>
27
53
0.851852
miathedev
5af9a2d526e0e51979038537849c5aaf511dcacd
4,572
cpp
C++
boost_polygon_geometry/gtl_poly_serialize.cpp
mmccoo/nerd_mmccoo
dc5a152105d65673679ef37ea5d1f7607e4f3b2c
[ "Apache-2.0" ]
45
2017-06-21T07:46:04.000Z
2022-02-21T01:39:02.000Z
boost_polygon_geometry/gtl_poly_serialize.cpp
zxh1986123/nerd_mmccoo
dc5a152105d65673679ef37ea5d1f7607e4f3b2c
[ "Apache-2.0" ]
5
2018-02-08T19:29:23.000Z
2021-01-14T09:27:18.000Z
boost_polygon_geometry/gtl_poly_serialize.cpp
zxh1986123/nerd_mmccoo
dc5a152105d65673679ef37ea5d1f7607e4f3b2c
[ "Apache-2.0" ]
23
2018-02-12T21:18:11.000Z
2022-01-21T23:04:51.000Z
#include <gtl_poly_serialize.h> #include <fstream> #include <iostream> #include <boost/serialization/vector.hpp> #include <boost/serialization/nvp.hpp> #include <boost/serialization/version.hpp> #include <boost/serialization/tracking.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarch...
24.847826
108
0.531934
mmccoo
5afa112bf2c5007dde353b142e2a1c3d5389df56
12,284
cpp
C++
src/render/Mesh/Mesh.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/render/Mesh/Mesh.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/render/Mesh/Mesh.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
#include <algorithm> #include <mtt/render/DrawPlan/DrawPlanBuildInfo.h> #include <mtt/render/Mesh/Mesh.h> #include <mtt/utilities/Abort.h> using namespace mtt; Mesh::Mesh(LogicalDevice& device) noexcept: _device(device), _verticesNumber(0), _extraData(*this, device) { } void Mesh::setVerticesNumber(uint32_t n...
31.020202
117
0.611771
AluminiumRat
5afb05a4fe9a26d58f4c401f15e1e3d4984342a0
8,347
cc
C++
hackt_docker/hackt/src/main/flatten.cc
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/main/flatten.cc
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/main/flatten.cc
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
/** \file "main/flatten.cc" Converts HAC source code to an object file (pre-unrolled). This file was born from "art++2obj.cc" in earlier revision history. $Id: flatten.cc,v 1.13 2010/03/11 18:39:26 fang Exp $ */ #include <iostream> #include <list> #include <string> #include <map> #include <cstdio> #include "comm...
26.925806
80
0.631604
broken-wheel
5afb68e26d41d86305c9b1cf928edec865011281
2,873
cpp
C++
ace/tao/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
46
2015-12-04T17:12:58.000Z
2022-03-11T04:30:49.000Z
ace/tao/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
null
null
null
ace/tao/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
23
2016-10-24T09:18:14.000Z
2022-02-25T02:11:35.000Z
// -*- C++ -*- // server.cpp,v 1.4 2001/03/08 16:30:56 parsons Exp #include "test_i.h" ACE_RCSID(Application_Test, server, "server.cpp,v 1.4 2001/03/08 16:30:56 parsons Exp") static const char *ior_output_file = "iorfile"; static int write_ior_to_file (const char *ior) { FILE *output_file = ACE_OS::fo...
25.882883
88
0.46119
tharindusathis
5afea09aa078656c0e23733fcf47dbb3836992ef
2,840
cpp
C++
plugins/vungle/desktop/src/cpp/DesktopLuaLibVungle.cpp
mikolajgucki/ae-engine
c4953feb74853b01b39b45b3bce23c10f6f74db0
[ "MIT" ]
1
2021-02-23T09:36:42.000Z
2021-02-23T09:36:42.000Z
plugins/vungle/desktop/src/cpp/DesktopLuaLibVungle.cpp
mikolajgucki/ae-engine
c4953feb74853b01b39b45b3bce23c10f6f74db0
[ "MIT" ]
null
null
null
plugins/vungle/desktop/src/cpp/DesktopLuaLibVungle.cpp
mikolajgucki/ae-engine
c4953feb74853b01b39b45b3bce23c10f6f74db0
[ "MIT" ]
null
null
null
#include <sstream> #include "DesktopLuaLibVungle.h" using namespace std; using namespace ae; namespace ae { namespace vungle { /** * \brief The alarm which fires 'ad-playable-changed' event. */ class AdPlayableChangedAlarm:public ::ae::engine::TimerAlarm { /// The Vungle Lua library. ...
23.666667
69
0.597887
mikolajgucki
8500ccba47ab05b65a53675e3628afe36e76b0a7
516
hpp
C++
src/dto/DTOs.hpp
bhorn/example-yuv-websocket-stream
5c77d2eb5387096bbbd37035dcb9818d762c9206
[ "Apache-2.0" ]
6
2020-05-25T20:14:24.000Z
2021-11-22T10:04:44.000Z
src/dto/DTOs.hpp
bhorn/example-yuv-websocket-stream
5c77d2eb5387096bbbd37035dcb9818d762c9206
[ "Apache-2.0" ]
2
2020-05-26T00:12:37.000Z
2021-12-04T01:34:24.000Z
src/dto/DTOs.hpp
bhorn/example-yuv-websocket-stream
5c77d2eb5387096bbbd37035dcb9818d762c9206
[ "Apache-2.0" ]
2
2020-08-28T08:54:46.000Z
2021-08-11T00:14:26.000Z
#ifndef DTOs_hpp #define DTOs_hpp #include "oatpp/core/macro/codegen.hpp" #include "oatpp/core/Types.hpp" #include OATPP_CODEGEN_BEGIN(DTO) namespace dtov0 { class MessageDto : public oatpp::DTO { DTO_INIT(MessageDto, DTO); DTO_FIELD(Int32, statusCode); DTO_FIELD(String, message); }; class ErrorDto : publ...
14.742857
39
0.724806
bhorn
850f95b7364694ea316bd346ba56db0dde99441c
542
cpp
C++
Codeforces/242B.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
null
null
null
Codeforces/242B.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
null
null
null
Codeforces/242B.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
1
2020-10-06T09:17:33.000Z
2020-10-06T09:17:33.000Z
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long int l[n]; long int r[n]; long int pos[2]; long diff = -1; int position,ans; long int t1,t2; for(int i=0;i<n;i++){ cin >> t1 >> t2; l[i] = t1; r[i] = t2; } for(int i=0;i<n;i++){ if(r[i] - l[i] > diff){ d...
11.291667
37
0.450185
Benson1198
850ff9ecf7a6555290655f6526c569958b87788b
14,427
cxx
C++
main/svx/source/table/tableundo.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/svx/source/table/tableundo.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/svx/source/table/tableundo.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
25.716578
122
0.532266
Grosskopf
851755d7ea46190639b69440738b3aff69732eb3
709
cpp
C++
007-Reverse-Integer/solution_test.cpp
johnhany/leetcode
453a86ac16360e44893262e04f77fd350d1e80f2
[ "Apache-2.0" ]
3
2019-05-27T06:47:32.000Z
2020-12-22T05:57:10.000Z
007-Reverse-Integer/solution_test.cpp
johnhany/leetcode
453a86ac16360e44893262e04f77fd350d1e80f2
[ "Apache-2.0" ]
null
null
null
007-Reverse-Integer/solution_test.cpp
johnhany/leetcode
453a86ac16360e44893262e04f77fd350d1e80f2
[ "Apache-2.0" ]
5
2020-04-01T10:26:04.000Z
2022-02-05T18:21:01.000Z
#define BOOST_TEST_MODULE SolutionTest #include "solution.hpp" #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_SUITE(SolutionSuite) BOOST_AUTO_TEST_CASE(PlainTest1) { int input = 123; int results = Solution().reverse(input); int expected = 321; BOOST_CHECK_EQUAL(resu...
19.162162
44
0.726375
johnhany
85180c6429c58df77f31b7a75be1f87b9721304f
2,544
cc
C++
gcs/constraints/element.cc
ciaranm/glasgow-constraint-solver
39d925c776474743a51a80492585db3a07801908
[ "MIT" ]
5
2021-08-13T11:36:49.000Z
2022-02-09T11:13:04.000Z
gcs/constraints/element.cc
ciaranm/glasgow-constraint-solver
39d925c776474743a51a80492585db3a07801908
[ "MIT" ]
null
null
null
gcs/constraints/element.cc
ciaranm/glasgow-constraint-solver
39d925c776474743a51a80492585db3a07801908
[ "MIT" ]
null
null
null
/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <gcs/constraints/element.hh> #include <gcs/constraints/comparison.hh> #include <gcs/state.hh> #include <gcs/propagators.hh> #include <gcs/integer.hh> #include <util/for_each.hh> #include <algorithm> using namespace gcs; using std::max; using std::min; using...
35.333333
152
0.646226
ciaranm
851988557ba3f490b8de173c1b200dd20e5ec525
350
hpp
C++
src/OutputResult.hpp
oleksandrkozlov/touch-typing
e38f315fa979ab66539c0a6a47796b5e6cabe0a2
[ "MIT" ]
1
2020-10-10T14:04:15.000Z
2020-10-10T14:04:15.000Z
src/OutputResult.hpp
oleksandrkozlov/touch-typing
e38f315fa979ab66539c0a6a47796b5e6cabe0a2
[ "MIT" ]
37
2020-04-19T12:37:03.000Z
2021-06-06T09:33:37.000Z
src/OutputResult.hpp
oleksandrkozlov/touch-typing
e38f315fa979ab66539c0a6a47796b5e6cabe0a2
[ "MIT" ]
null
null
null
#ifndef TOUCH_TYPING_OUTPUT_RESULT_HPP #define TOUCH_TYPING_OUTPUT_RESULT_HPP namespace touch_typing { struct OutputResult { enum class Answer { Wrong, Correct, Backspace, }; int expectedSymbol; int enteredSymbol; Answer answer; }; } // namespace touch_typing #endif // T...
16.666667
40
0.708571
oleksandrkozlov
851f75527c4ea90256872bcb9d8dc1241b753182
7,678
cc
C++
content/browser/devtools/devtools_target_registry.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
content/browser/devtools/devtools_target_registry.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
content/browser/devtools/devtools_target_registry.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2017 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/browser/devtools/devtools_target_registry.h" #include "base/task_runner.h" #include "base/threading/thread_checker.h" #include "content...
35.711628
80
0.7205
zipated
85249aaee3eec536883222f4cb24cdf87abaf217
3,602
cpp
C++
src/objects/joystick.cpp
soulik/LuaSDL-2.0
092684f042de7671a6ee21aaa417e1190b986762
[ "Unlicense", "MIT" ]
10
2016-06-16T12:35:21.000Z
2021-11-14T18:32:41.000Z
src/objects/joystick.cpp
soulik/LuaSDL-2.0
092684f042de7671a6ee21aaa417e1190b986762
[ "Unlicense", "MIT" ]
null
null
null
src/objects/joystick.cpp
soulik/LuaSDL-2.0
092684f042de7671a6ee21aaa417e1190b986762
[ "Unlicense", "MIT" ]
null
null
null
#include "objects/joystick.hpp" #include "objects/haptic.hpp" #include <lua.hpp> namespace LuaSDL { int Joystick::getAxis(State & state, SDL_Joystick * joystick) { Stack * stack = state.stack; stack->push<int>( SDL_JoystickGetAxis( joystick, stack->to<int>(1))); return 1; } int Joystick::getBall(Stat...
25.546099
81
0.686008
soulik
8524eb85cb862a64b5e5d48f45f69be8b7d5288c
5,169
cpp
C++
src/relabel_to_front.cpp
FamousCake/flow
77f134f74996225f679a1b9d796b7328ad6e1867
[ "MIT" ]
null
null
null
src/relabel_to_front.cpp
FamousCake/flow
77f134f74996225f679a1b9d796b7328ad6e1867
[ "MIT" ]
null
null
null
src/relabel_to_front.cpp
FamousCake/flow
77f134f74996225f679a1b9d796b7328ad6e1867
[ "MIT" ]
null
null
null
#include "inc/relabel_to_front.h" using namespace std; RelabelToFront::RelabelToFront(const ResidualNetwork &A) : E(ResidualNetwork(A)) { this->Source = E.getSource(); this->Sink = E.getSink(); this->VertexCount = E.getCount(); this->PushCount = 0; this->RelabelCount = 0; this->DischargeCount...
22.184549
86
0.549236
FamousCake
85261618b4f7eb39d943d1c8063ae6e1e79b3b8d
3,085
hpp
C++
FFG_EXT/include/FFG_XML.hpp
GarrettGutierrez1/FFG_Engine
ba61887f6db2bdc947118b50beb3388d49eeaad4
[ "Apache-2.0" ]
null
null
null
FFG_EXT/include/FFG_XML.hpp
GarrettGutierrez1/FFG_Engine
ba61887f6db2bdc947118b50beb3388d49eeaad4
[ "Apache-2.0" ]
null
null
null
FFG_EXT/include/FFG_XML.hpp
GarrettGutierrez1/FFG_Engine
ba61887f6db2bdc947118b50beb3388d49eeaad4
[ "Apache-2.0" ]
null
null
null
#ifndef FFG_EXT_XML_H_INCLUDED #define FFG_EXT_XML_H_INCLUDED #include <boost/property_tree/xml_parser.hpp> #include <boost/property_tree/ptree.hpp> #include <string> #include <vector> /***************************************************************************//** * A class that represents an XML tag. * * Exampl...
44.071429
99
0.294003
GarrettGutierrez1
852cb9a8406af1f1e3ae63037f10878bcdba303a
2,029
cpp
C++
src/SaveGame/SaveGameHandler.cpp
Perchindroid/DigimonVPet
75ae638fb19a5b5d7073589734aa43f8a20813a4
[ "MIT" ]
23
2021-02-17T06:37:42.000Z
2022-03-31T23:16:39.000Z
src/SaveGame/SaveGameHandler.cpp
Perchindroid/DigimonVPet
75ae638fb19a5b5d7073589734aa43f8a20813a4
[ "MIT" ]
3
2021-03-09T14:39:48.000Z
2022-03-22T12:27:52.000Z
src/SaveGame/SaveGameHandler.cpp
Perchindroid/DigimonVPet
75ae638fb19a5b5d7073589734aa43f8a20813a4
[ "MIT" ]
13
2021-03-23T05:35:32.000Z
2022-03-21T12:01:38.000Z
#include "SaveGameHandler.h" void SaveGameHandler::loadDigimon(Digimon* digimon) { digimon->setDigimonIndex(EEPROM.readUShort(ADRESS_DIGIMONINDEX)); digimon->setState(EEPROM.readByte(ADDRESS_STATE)); digimon->setAge(EEPROM.readUShort(ADDRESS_AGE)); digimon->setWeight(EEPROM.readUShort(ADDRESS_WEIGHT));...
52.025641
76
0.780187
Perchindroid
852ced3651dbabe577a0de3dd6fbbfe85a4259ea
4,185
cpp
C++
src/libs/test/main.cpp
jdmclark/gorc
a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8
[ "Apache-2.0" ]
97
2015-02-24T05:09:24.000Z
2022-01-23T12:08:22.000Z
src/libs/test/main.cpp
annnoo/gorc
1889b4de6380c30af6c58a8af60ecd9c816db91d
[ "Apache-2.0" ]
8
2015-03-27T23:03:23.000Z
2020-12-21T02:34:33.000Z
src/libs/test/main.cpp
annnoo/gorc
1889b4de6380c30af6c58a8af60ecd9c816db91d
[ "Apache-2.0" ]
10
2016-03-24T14:32:50.000Z
2021-11-13T02:38:53.000Z
#include <string> #include "test.hpp" #include "strings.hpp" #include "stream_reporter.hpp" namespace test { std::shared_ptr<test::reporter> test_reporter; std::string test_suite_name; std::string test_case_name; bool test_passing; void run_case(int &failures, std::string const...
32.695313
79
0.455675
jdmclark
852f79e1d35f914d3475d46eb01873679266c680
1,138
cpp
C++
src/game/shared/neotokyo/neo_bloomcontroller.cpp
L-Leite/neotokyo-re
a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a
[ "Unlicense" ]
4
2017-08-29T15:39:53.000Z
2019-06-04T07:37:48.000Z
src/game/shared/neotokyo/neo_bloomcontroller.cpp
Ochii/neotokyo
a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a
[ "Unlicense" ]
null
null
null
src/game/shared/neotokyo/neo_bloomcontroller.cpp
Ochii/neotokyo
a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a
[ "Unlicense" ]
1
2021-08-10T20:01:00.000Z
2021-08-10T20:01:00.000Z
#include "cbase.h" #include "neo_bloomcontroller.h" CNeoBloomController* g_pMapBloomController = nullptr; IMPLEMENT_NETWORKCLASS_ALIASED( NeoBloomController, DT_NeoBloomController ) BEGIN_NETWORK_TABLE( CNeoBloomController, DT_NeoBloomController ) #ifdef CLIENT_DLL RecvPropFloat( RECVINFO( m_BloomAmount ) ), #else...
21.884615
80
0.771529
L-Leite
85307d422933be16fb72ca1365745675bb2ae260
3,422
cpp
C++
tech/Script/integration/Lua/ScriptHelper.cpp
nbtdev/teardrop
fa9cc8faba03a901d1d14f655a04167e14cd08ee
[ "MIT" ]
null
null
null
tech/Script/integration/Lua/ScriptHelper.cpp
nbtdev/teardrop
fa9cc8faba03a901d1d14f655a04167e14cd08ee
[ "MIT" ]
null
null
null
tech/Script/integration/Lua/ScriptHelper.cpp
nbtdev/teardrop
fa9cc8faba03a901d1d14f655a04167e14cd08ee
[ "MIT" ]
null
null
null
/****************************************************************************** Copyright (c) 2015 Teardrop Games 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 wit...
26.122137
79
0.612215
nbtdev
85345d674214a8563cd900b3eb931918829d9976
763
cpp
C++
CodeBlocks/UVA/Solved/UVA11498.cpp
ash1247/DocumentsWindows
66f65b5170a1ba766cfae08b7104b63ab87331c2
[ "MIT" ]
null
null
null
CodeBlocks/UVA/Solved/UVA11498.cpp
ash1247/DocumentsWindows
66f65b5170a1ba766cfae08b7104b63ab87331c2
[ "MIT" ]
null
null
null
CodeBlocks/UVA/Solved/UVA11498.cpp
ash1247/DocumentsWindows
66f65b5170a1ba766cfae08b7104b63ab87331c2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main( void ) { int t, q, n, m, x, y; cin >> q; while( q != 0) { t = q; cin >> n >> m; while(t--) { cin >> x >> y; if( x == n | y == m) { cout << "divisa\n"; ...
17.340909
36
0.23329
ash1247
8537876ce305c795677117a8f1588eea4371b6a7
45,986
cpp
C++
ExternalCode/antimony/src/module-cellml.cpp
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
1
2021-01-07T13:12:51.000Z
2021-01-07T13:12:51.000Z
ExternalCode/antimony/src/module-cellml.cpp
dhlee4/Tinkercell_new
c4d1848bbb905f0e1f9e011837268ac80aff8711
[ "BSD-3-Clause" ]
7
2020-04-12T22:25:46.000Z
2020-04-13T07:50:40.000Z
ExternalCode/antimony/src/module-cellml.cpp
daniel-anavaino/tinkercell
7896a7f809a0373ab3c848d25e3691d10a648437
[ "BSD-3-Clause" ]
2
2020-04-12T21:57:01.000Z
2020-04-12T21:59:29.000Z
#ifndef NCELLML #include "cellmlx.h" #include <TeLICeMService.hpp> #include <IfaceAnnoTools.hxx> #include <IfaceCUSES.hxx> #include <CUSESBootstrap.hpp> void Module::LoadCellMLModel(iface::cellml_api::Model* model, std::vector<iface::cellml_api::CellMLComponent*> top_components) { assert(m_cellmlcomponent==NULL); ...
40.695575
281
0.666572
dhlee4