hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
a2b0ec13c962e69c833e00d65520b8fd008cab14
1,204
cpp
C++
semaphore/semA.cpp
chengwenwu/IPC
2e01f397d15b2d2911f3494fc98c9ca5e8d274a9
[ "MIT" ]
null
null
null
semaphore/semA.cpp
chengwenwu/IPC
2e01f397d15b2d2911f3494fc98c9ca5e8d274a9
[ "MIT" ]
null
null
null
semaphore/semA.cpp
chengwenwu/IPC
2e01f397d15b2d2911f3494fc98c9ca5e8d274a9
[ "MIT" ]
null
null
null
#include <iostream> #include "sem.hpp" using namespace std; int main() { // 获取共享内存 int shmId = shmget(ftok(SHM_FILE, PROJ_ID), SHM_SIZE, IPC_CREAT | IPC_EXCL | 0666); if (shmId == -1) { perror("shmget:"); return 0; } // 绑定共享内存地址 char *shmMemory = (char *)shmat(shmId, NULL, 0);...
19.737705
87
0.516611
chengwenwu
a2b4e7193801736e204ef14cc464d9dae226c518
21,840
cpp
C++
src/TextWriter.cpp
arielscarpinelli/pianogame
abca8a622afa4bb1b63aa1c457a0d36488033b4f
[ "MIT" ]
null
null
null
src/TextWriter.cpp
arielscarpinelli/pianogame
abca8a622afa4bb1b63aa1c457a0d36488033b4f
[ "MIT" ]
null
null
null
src/TextWriter.cpp
arielscarpinelli/pianogame
abca8a622afa4bb1b63aa1c457a0d36488033b4f
[ "MIT" ]
null
null
null
// Copyright (c)2007 Nicholas Piegdon // See license.txt for license information #include <map> #include "TextWriter.h" #include "Renderer.h" #include "PianoGameError.h" #include "os_graphics.h" #ifdef WIN32 // TODO: This should be deleted at shutdown static std::map<int, HFONT> font_handle_lookup; st...
37.142857
155
0.479533
arielscarpinelli
a2ba91162019f55ab5b9a0e888c613abf75fdb30
509
cpp
C++
Vector-Erase.cpp
arnav-tandon/HackerRankChallenges
4dddbe42044ba1673ceaed6ccfd026df89cdb8dc
[ "MIT" ]
null
null
null
Vector-Erase.cpp
arnav-tandon/HackerRankChallenges
4dddbe42044ba1673ceaed6ccfd026df89cdb8dc
[ "MIT" ]
null
null
null
Vector-Erase.cpp
arnav-tandon/HackerRankChallenges
4dddbe42044ba1673ceaed6ccfd026df89cdb8dc
[ "MIT" ]
null
null
null
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int n, x, p, q, r; cin >> n; vector<int> a; for(int i = 0; i < n; ++i){ cin >> x; a.push_back(x); } cin >> p; a.erase(a.begin() + (p - 1)); ...
18.851852
53
0.440079
arnav-tandon
a2baf8fd519740ff9d83bda7facdefaad64f1177
2,629
cpp
C++
src/setshowinfo.cpp
mahuifa/DesktopTime
067bd36a42d7349d8905c2bf81a74b6a1f895f05
[ "Apache-2.0" ]
1
2022-03-20T15:29:15.000Z
2022-03-20T15:29:15.000Z
src/setshowinfo.cpp
mahuifa/DesktopTime
067bd36a42d7349d8905c2bf81a74b6a1f895f05
[ "Apache-2.0" ]
null
null
null
src/setshowinfo.cpp
mahuifa/DesktopTime
067bd36a42d7349d8905c2bf81a74b6a1f895f05
[ "Apache-2.0" ]
null
null
null
#include "setshowinfo.h" #include "ui_setshowinfo.h" #include <QFileDialog> #include <qdebug.h> #include "head.h" SetShowInfo::SetShowInfo(QWidget *parent) : QWidget(parent), ui(new Ui::SetShowInfo) { ui->setupUi(this); this->setWindowTitle("显示设置"); for(int i = 1; i < 100; i++) { ui-...
20.700787
75
0.617725
mahuifa
a2bd2cc7f04e5d37e3d0958fb038281b963f26a1
7,738
cpp
C++
IOSServer/Decomp.cpp
satadriver/GoogleServiceServer
7d6e55d2f9a189301dd68821c920d0a0e300322a
[ "Apache-2.0" ]
null
null
null
IOSServer/Decomp.cpp
satadriver/GoogleServiceServer
7d6e55d2f9a189301dd68821c920d0a0e300322a
[ "Apache-2.0" ]
null
null
null
IOSServer/Decomp.cpp
satadriver/GoogleServiceServer
7d6e55d2f9a189301dd68821c920d0a0e300322a
[ "Apache-2.0" ]
null
null
null
#include <windows.h> #include "iosServer.h" #include "PublicFunction.h" #include "CryptoUtils.h" #include "Coder.h" #include "FileOperator.h" int DisposePrefixZip(char * filename,char * dstfilename) { lstrcpyA(dstfilename, filename); int fnlen = lstrlenA(dstfilename); for (int i = 0; i < fnlen - 4 + 1; i ++) { ...
25.123377
156
0.676402
satadriver
a2bdb1e951c5b6a99024734de3fa57d343ca12e4
1,780
hpp
C++
include/view/view.hpp
modern-cpp-examples/match3
bb1f4de11db9e92b6ebdf80f1afe9245e6f86b7e
[ "BSL-1.0" ]
166
2016-04-27T19:01:00.000Z
2022-03-27T02:16:55.000Z
include/view/view.hpp
Fuyutsubaki/match3
bb1f4de11db9e92b6ebdf80f1afe9245e6f86b7e
[ "BSL-1.0" ]
4
2016-05-19T07:47:38.000Z
2018-03-22T04:33:00.000Z
include/view/view.hpp
Fuyutsubaki/match3
bb1f4de11db9e92b6ebdf80f1afe9245e6f86b7e
[ "BSL-1.0" ]
17
2016-05-18T21:17:39.000Z
2022-03-20T22:37:14.000Z
// // Copyright (c) 2016 Krzysztof Jusiak (krzysztof at jusiak dot net) // // 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) // #pragma once #include "config.hpp" #include "view/icanvas.hpp" namespace match3 { c...
28.253968
80
0.651685
modern-cpp-examples
a2c5c26adb1d42ddc624f3d00c7333a20e7b2e03
673
cpp
C++
1128/main.cpp
Heliovic/PAT_Solutions
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
2
2019-03-18T12:55:38.000Z
2019-09-07T10:11:26.000Z
1128/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
1128/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
#include <cstdio> #include <algorithm> #define MAX_N 1024 using namespace std; int pos[MAX_N]; int K, N; int main() { scanf("%d", &K); L1: while (K--) { scanf("%d", &N); for (int i = 0; i < N; i++) scanf("%d", &pos[i]); for (int i = 0; i < N; i++) { ...
16.825
75
0.325409
Heliovic
a2c8029c8c782c30b83c0d09ab05553b9cc210a8
213
cpp
C++
Recursion/NestedRecursion/main.cpp
rsghotra/AbdulBari
2d2845608840ddda6e5153ec91966110ca7e25f5
[ "Apache-2.0" ]
1
2020-12-02T09:21:52.000Z
2020-12-02T09:21:52.000Z
Recursion/NestedRecursion/main.cpp
rsghotra/AbdulBari
2d2845608840ddda6e5153ec91966110ca7e25f5
[ "Apache-2.0" ]
null
null
null
Recursion/NestedRecursion/main.cpp
rsghotra/AbdulBari
2d2845608840ddda6e5153ec91966110ca7e25f5
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int fun(int n) { if(n>100) { return n - 10; } return fun(fun(n+11)); } int main() { int r; r = fun(1); cout << r << endl; return 0; }
12.529412
26
0.488263
rsghotra
a2ca4c13f1112c460ba577ab92c6e14ce5fc2bc8
3,982
cpp
C++
src/system/libroot/add-ons/icu/ICUCategoryData.cpp
axeld/haiku
e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4
[ "MIT" ]
4
2016-03-29T21:45:21.000Z
2016-12-20T00:50:38.000Z
src/system/libroot/add-ons/icu/ICUCategoryData.cpp
axeld/haiku
e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4
[ "MIT" ]
null
null
null
src/system/libroot/add-ons/icu/ICUCategoryData.cpp
axeld/haiku
e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4
[ "MIT" ]
3
2018-12-17T13:07:38.000Z
2021-09-08T13:07:31.000Z
/* * Copyright 2010-2011, Oliver Tappe, zooey@hirschkaefer.de. * Distributed under the terms of the MIT License. */ #include "ICUCategoryData.h" #include <string.h> #include <unicode/uchar.h> namespace BPrivate { namespace Libroot { ICUCategoryData::ICUCategoryData(pthread_key_t tlsKey) : fThreadLocalStora...
23.151163
77
0.741336
axeld
a2cf8e32027366a348ac340ac7a8fb437954ad21
709
cpp
C++
src/tests/test_uuids.cpp
ondra-novak/couchit
10af4464327dcc2aeb470fe2db7fbd1594ff1b0d
[ "MIT" ]
4
2017-03-20T22:14:10.000Z
2018-03-21T09:24:32.000Z
src/tests/test_uuids.cpp
ondra-novak/couchit
10af4464327dcc2aeb470fe2db7fbd1594ff1b0d
[ "MIT" ]
null
null
null
src/tests/test_uuids.cpp
ondra-novak/couchit
10af4464327dcc2aeb470fe2db7fbd1594ff1b0d
[ "MIT" ]
null
null
null
/* * test_uuids.cpp * * Created on: 10. 3. 2016 * Author: ondra */ #include <iostream> #include <set> #include <chrono> #include <thread> #include "../couchit/couchDB.h" #include "test_common.h" #include "testClass.h" namespace couchit { using namespace json; static void genFastUUIDS(std::ostream &pr...
16.488372
62
0.651622
ondra-novak
a2cfb318bdb4cf5e13a620e544f649b8661f2adc
966
cpp
C++
source/vmalloc.cpp
EthanArmbrust/snes9xgx
4e11dc00b3672fe4f0979317cca35ce97d1c2d09
[ "Xnet", "X11" ]
294
2016-07-09T01:13:19.000Z
2022-03-28T02:59:29.000Z
source/vmalloc.cpp
EthanArmbrust/snes9xgx
4e11dc00b3672fe4f0979317cca35ce97d1c2d09
[ "Xnet", "X11" ]
173
2016-07-30T16:20:25.000Z
2022-02-20T10:46:45.000Z
source/vmalloc.cpp
EthanArmbrust/snes9xgx
4e11dc00b3672fe4f0979317cca35ce97d1c2d09
[ "Xnet", "X11" ]
167
2016-07-19T20:33:43.000Z
2022-03-15T18:09:15.000Z
/**************************************************************************** * Snes9x Nintendo Wii/Gamecube Port * * emu_kidid 2015-2018 * * vmalloc.cpp * * GC VM memory allocator ***************************************************************************/ #ifdef USE_VM #include <ogc/machine/asm.h> #include ...
19.32
77
0.610766
EthanArmbrust
a2d36653fd6175ddc06d4d8b07e6f0e828a579e7
1,018
hpp
C++
src/sort_test.hpp
loryruta/gpu-radix-sort
39a973e46834dd7f06a8855e95aa3b3cc7e1709e
[ "MIT" ]
6
2021-11-11T09:12:10.000Z
2022-03-05T15:56:16.000Z
src/sort_test.hpp
rutay/parallel-radix-sort
39a973e46834dd7f06a8855e95aa3b3cc7e1709e
[ "MIT" ]
null
null
null
src/sort_test.hpp
rutay/parallel-radix-sort
39a973e46834dd7f06a8855e95aa3b3cc7e1709e
[ "MIT" ]
1
2021-11-09T06:51:18.000Z
2021-11-09T06:51:18.000Z
#pragma once #include "generated/radix_sort.hpp" namespace rgc::radix_sort { class array_compare { private: program m_program; GLuint m_errors_counter; GLuint m_error_marks_buf; public: array_compare(size_t max_arr_len); ~array_compare(); GLuint compare(GLuint arr_1, GLuint arr_2, size_t arr_len); ...
17.551724
69
0.753438
loryruta
a2d42874d1c5b9c1d5f9474430caee9552b111fc
3,683
cpp
C++
Algorithm/src/algorithm/leetcode/two_sum.cpp
elloop/algorithm
5485be0aedbc18968f775cff9533a2d444dbdcb5
[ "MIT" ]
15
2015-11-04T12:53:23.000Z
2021-08-10T09:53:12.000Z
Algorithm/src/algorithm/leetcode/two_sum.cpp
elloop/algorithm
5485be0aedbc18968f775cff9533a2d444dbdcb5
[ "MIT" ]
null
null
null
Algorithm/src/algorithm/leetcode/two_sum.cpp
elloop/algorithm
5485be0aedbc18968f775cff9533a2d444dbdcb5
[ "MIT" ]
6
2015-11-13T10:17:01.000Z
2020-05-14T07:25:48.000Z
#include <map> #include <string> #include <cstring> #include <iostream> #include <vector> #include "inc.h" #include "valid_parentheses.h" #include "rotate_array.h" #include "title_to_number.h" #include "trailing_zeroes.h" #include "column_to_title.h" #include "compare_version.h" #include "intersection_of_linklist.h" #i...
22.053892
96
0.555797
elloop
a2d8479782400383e3d78a74f87c83433c137a8a
5,500
cpp
C++
src/bls12_381/curve.cpp
gtfierro/jedi-pairing
07791509e7702094118eba34337868a646363dc2
[ "BSD-3-Clause" ]
4
2020-10-27T09:38:17.000Z
2021-11-01T07:05:34.000Z
src/bls12_381/curve.cpp
gtfierro/jedi-pairing
07791509e7702094118eba34337868a646363dc2
[ "BSD-3-Clause" ]
null
null
null
src/bls12_381/curve.cpp
gtfierro/jedi-pairing
07791509e7702094118eba34337868a646363dc2
[ "BSD-3-Clause" ]
2
2021-08-09T06:27:46.000Z
2021-08-09T19:55:07.000Z
/* * Copyright (c) 2018, Sam Kumar <samkumar@cs.berkeley.edu> * Copyright (c) 2018, University of California, Berkeley * 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. Redistribution...
37.671233
100
0.613818
gtfierro
a2d84d1679838c077a221790b77f4531e41ae4a5
5,695
cpp
C++
modules/task_3/kudriavtsev_a_radix_sort/main.cpp
Vodeneev/pp_2020_autumn_math
9b7e5ec56e09474c9880810a6124e3e416bb7e16
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/kudriavtsev_a_radix_sort/main.cpp
Vodeneev/pp_2020_autumn_math
9b7e5ec56e09474c9880810a6124e3e416bb7e16
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/kudriavtsev_a_radix_sort/main.cpp
Vodeneev/pp_2020_autumn_math
9b7e5ec56e09474c9880810a6124e3e416bb7e16
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2020 Kudriavtsev Alexander #include <gtest-mpi-listener.hpp> #include <gtest/gtest.h> #include <vector> #include <algorithm> #include "./ops_mpi.h" TEST(Parallel_Operations_MPI, Test_Seq_20) { int rank; MPI_Comm_rank(MPI_COMM_WORLD, &rank); std::vector<int> vec1; const int n = 20; if (...
29.35567
78
0.565233
Vodeneev
a2d900c3523fdbbf7d57d2733c2c8c653159e676
33,925
cpp
C++
SimpleSvmHook/Logging.cpp
zanzo420/SimpleSvmHook
7cef39ffad9c15a31615a9b032b910011b3bdb1b
[ "MIT" ]
194
2018-07-02T11:43:47.000Z
2022-03-24T01:50:07.000Z
SimpleSvmHook/Logging.cpp
zanzo420/SimpleSvmHook
7cef39ffad9c15a31615a9b032b910011b3bdb1b
[ "MIT" ]
7
2018-09-18T17:33:25.000Z
2022-03-19T04:13:22.000Z
SimpleSvmHook/Logging.cpp
zanzo420/SimpleSvmHook
7cef39ffad9c15a31615a9b032b910011b3bdb1b
[ "MIT" ]
55
2018-07-29T19:12:47.000Z
2022-01-20T13:09:20.000Z
/*! @file Logging.cpp @brief Implements interfaces to logging functions. @details This file is migrated from an old codebase and does not always align with a coding style used in the rest of files. @author Satoshi Tanda @copyright Copyright (c) 2018-2019, Satoshi Tanda. All rights reserv...
25.373972
100
0.608018
zanzo420
a2d9fb0c35da66d6d5f3f1caf14a1e5def905d43
3,820
cpp
C++
core/src/UI/UIFrameConstraint.cpp
hhsaez/crimild
e3efee09489939338df55e8af9a1f9ddc01301f7
[ "BSD-3-Clause" ]
36
2015-03-12T10:42:36.000Z
2022-01-12T04:20:40.000Z
core/src/UI/UIFrameConstraint.cpp
hhsaez/crimild
e3efee09489939338df55e8af9a1f9ddc01301f7
[ "BSD-3-Clause" ]
1
2015-12-17T00:25:43.000Z
2016-02-20T12:00:57.000Z
core/src/UI/UIFrameConstraint.cpp
hhsaez/crimild
e3efee09489939338df55e8af9a1f9ddc01301f7
[ "BSD-3-Clause" ]
6
2017-06-17T07:57:53.000Z
2019-04-09T21:11:24.000Z
/* * Copyright (c) 2002-present, H. Hernán Saez * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this ...
24.33121
105
0.66466
hhsaez
a2da62d6cf8d8a0430ec9314853678048dca5350
8,973
cpp
C++
src/ofApp.cpp
clovistessier/kinect-hand-tracker-osc
4dfcfe3e0ed0c625644bb158d83033d5b8dab724
[ "MIT" ]
null
null
null
src/ofApp.cpp
clovistessier/kinect-hand-tracker-osc
4dfcfe3e0ed0c625644bb158d83033d5b8dab724
[ "MIT" ]
null
null
null
src/ofApp.cpp
clovistessier/kinect-hand-tracker-osc
4dfcfe3e0ed0c625644bb158d83033d5b8dab724
[ "MIT" ]
null
null
null
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup() { ofSetLogLevel(OF_LOG_VERBOSE); // enable depth->video image calibration kinect.setRegistration(true); kinect.init(); //kinect.init(true); // shows infrared instead of RGB video...
30.416949
119
0.513875
clovistessier
a2dd9ceaf0f037a2a325fdce8675ad0d1eff1c25
5,023
cpp
C++
cat/src/v20180409/model/UpdateProbeTaskConfigurationListRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
cat/src/v20180409/model/UpdateProbeTaskConfigurationListRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
cat/src/v20180409/model/UpdateProbeTaskConfigurationListRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
27.905556
104
0.720884
suluner
a2e3dfa6d740f7f8e49746e83d1d67d011e6d7a9
2,977
cpp
C++
src/ecckd/read_spectrum.cpp
ecmwf-ifs/ecckd
6115f9b8e29a55cb0f48916857bdc77fec41badd
[ "Apache-2.0" ]
null
null
null
src/ecckd/read_spectrum.cpp
ecmwf-ifs/ecckd
6115f9b8e29a55cb0f48916857bdc77fec41badd
[ "Apache-2.0" ]
null
null
null
src/ecckd/read_spectrum.cpp
ecmwf-ifs/ecckd
6115f9b8e29a55cb0f48916857bdc77fec41badd
[ "Apache-2.0" ]
null
null
null
// read_spectrum.cpp - Read a profile of spectral optical depth // // Copyright (C) 2019- ECMWF. // // This software is licensed under the terms of the Apache Licence Version 2.0 // which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. // // In applying this licence, ECMWF does not waive the privileges a...
33.829545
84
0.660396
ecmwf-ifs
a2e5c3e9fe23c448048b9172336d81df9c1b2f02
6,313
cc
C++
src/operators/test/operator_advdiff_surface.cc
fmyuan/amanzi
edb7b815ae6c22956c8519acb9d87b92a9915ed4
[ "RSA-MD" ]
37
2017-04-26T16:27:07.000Z
2022-03-01T07:38:57.000Z
src/operators/test/operator_advdiff_surface.cc
fmyuan/amanzi
edb7b815ae6c22956c8519acb9d87b92a9915ed4
[ "RSA-MD" ]
494
2016-09-14T02:31:13.000Z
2022-03-13T18:57:05.000Z
src/operators/test/operator_advdiff_surface.cc
fmyuan/amanzi
edb7b815ae6c22956c8519acb9d87b92a9915ed4
[ "RSA-MD" ]
43
2016-09-26T17:58:40.000Z
2022-03-25T02:29:59.000Z
/* Operators Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Author: Konstantin Lipnikov (lipnikov@lanl.gov) */ #include <cstdlib...
34.124324
123
0.685728
fmyuan
a2e7a249e78fa4d3b3edc478f44e4b482371cc90
399
cpp
C++
hw4-jasonsie88-master/src/lib/AST/return.cpp
jasonsie88/Intro._to_Compiler_Design
228205241fcba7eb3407ec72936a52b0266671bb
[ "MIT" ]
null
null
null
hw4-jasonsie88-master/src/lib/AST/return.cpp
jasonsie88/Intro._to_Compiler_Design
228205241fcba7eb3407ec72936a52b0266671bb
[ "MIT" ]
null
null
null
hw4-jasonsie88-master/src/lib/AST/return.cpp
jasonsie88/Intro._to_Compiler_Design
228205241fcba7eb3407ec72936a52b0266671bb
[ "MIT" ]
null
null
null
#include "AST/return.hpp" #include "visitor/AstNodeVisitor.hpp" ReturnNode::ReturnNode(const uint32_t line, const uint32_t col,ExpressionNode *new_p_ret_val) :AstNode{line, col}, m_ret_val(new_p_ret_val){} void ReturnNode::accept(AstNodeVisitor &p_visitor){ p_visitor.visit(*this); } void ReturnNode::vi...
28.5
93
0.759398
jasonsie88
0c029c40830e8334546c12956a738db707fc4389
604
cpp
C++
testsuite/foreach.cpp
mr-j0nes/RaftLib
19b2b5401365ba13788044bfbcca0820f48b650a
[ "Apache-2.0" ]
759
2016-05-23T22:40:00.000Z
2022-03-25T09:05:41.000Z
testsuite/foreach.cpp
Myicefrog/RaftLib
5ff105293bc851ed73bdfd8966b15d0cadb45eb0
[ "Apache-2.0" ]
111
2016-05-24T02:30:14.000Z
2021-08-16T15:11:53.000Z
testsuite/foreach.cpp
Myicefrog/RaftLib
5ff105293bc851ed73bdfd8966b15d0cadb45eb0
[ "Apache-2.0" ]
116
2016-05-31T08:03:05.000Z
2022-03-01T00:54:31.000Z
#include <cassert> #include <iostream> #include <cstdint> #include <cstdlib> #include <vector> #include <iterator> #include <raft> #include <raftio> int main() { const auto arr_size( 1000 ); using type_t = std::int32_t; type_t *arr = (type_t*) malloc( sizeof( type_t ) * arr_size ); for( type_t i( 0 ); i < ...
19.483871
65
0.577815
mr-j0nes
0c0be1417faa6d5fce8942a0e43d9fa420df59f7
198
cpp
C++
chap01_flow_control/practice03/02.cpp
kdzlvaids/problem_solving-pknu-2016
6a9e64f31f0d17c949e2b640fbd0a7628d1e5ece
[ "MIT" ]
null
null
null
chap01_flow_control/practice03/02.cpp
kdzlvaids/problem_solving-pknu-2016
6a9e64f31f0d17c949e2b640fbd0a7628d1e5ece
[ "MIT" ]
null
null
null
chap01_flow_control/practice03/02.cpp
kdzlvaids/problem_solving-pknu-2016
6a9e64f31f0d17c949e2b640fbd0a7628d1e5ece
[ "MIT" ]
null
null
null
#include <stdio.h> #include <math.h> int main(void) { int num; printf("Enter num= "); scanf("%d", &num); printf("Result: %d\n", (int)sqrt(num) * (int)sqrt(num)); return 0; }
13.2
60
0.535354
kdzlvaids
0c0f57ed3a90897a3ab1010f4959333b6233ef25
9,766
cpp
C++
source/housys/test/hou/sys/test_file.cpp
DavideCorradiDev/houzi-game-engine
d704aa9c5b024300578aafe410b7299c4af4fcec
[ "MIT" ]
2
2018-04-12T20:59:20.000Z
2018-07-26T16:04:07.000Z
source/housys/test/hou/sys/test_file.cpp
DavideCorradiDev/houzi-game-engine
d704aa9c5b024300578aafe410b7299c4af4fcec
[ "MIT" ]
null
null
null
source/housys/test/hou/sys/test_file.cpp
DavideCorradiDev/houzi-game-engine
d704aa9c5b024300578aafe410b7299c4af4fcec
[ "MIT" ]
null
null
null
// Houzi Game Engine // Copyright (c) 2018 Davide Corradi // Licensed under the MIT license. #include "hou/test.hpp" #include "hou/sys/test_data.hpp" #include "hou/sys/file.hpp" #include "hou/sys/sys_exceptions.hpp" using namespace hou; using namespace testing; namespace { class test_file : public Test { public:...
21.654102
78
0.693017
DavideCorradiDev
0c137e475906bda531b9c20539a798caea1e9b61
8,503
cpp
C++
src/cui-1.0.4/FORIS/FORIS.cpp
MaiReo/crass
11579527090faecab27f98b1e221172822928f57
[ "BSD-3-Clause" ]
1
2021-07-21T00:58:45.000Z
2021-07-21T00:58:45.000Z
src/cui-1.0.4/FORIS/FORIS.cpp
MaiReo/crass
11579527090faecab27f98b1e221172822928f57
[ "BSD-3-Clause" ]
null
null
null
src/cui-1.0.4/FORIS/FORIS.cpp
MaiReo/crass
11579527090faecab27f98b1e221172822928f57
[ "BSD-3-Clause" ]
null
null
null
#include <windows.h> #include <tchar.h> #include <crass_types.h> #include <acui.h> #include <cui.h> #include <package.h> #include <resource.h> #include <cui_error.h> #include <stdio.h> #include <zlib.h> #include <utility.h> /* 接口数据结构: 表示cui插件的一般信息 */ struct acui_information FORIS_cui_information = { _T("STACK"), /...
24.363897
100
0.66553
MaiReo
0c1a12519fa813eaadd222f93c3a8b005d870d26
821
cc
C++
gui/components/gui_colorbox.cc
BradenButler/simutrans
86f29844625119182896e0e08d7b775bc847758d
[ "Artistic-1.0" ]
292
2015-01-04T20:33:57.000Z
2022-03-21T21:36:25.000Z
gui/components/gui_colorbox.cc
BradenButler/simutrans
86f29844625119182896e0e08d7b775bc847758d
[ "Artistic-1.0" ]
32
2018-01-31T11:11:16.000Z
2022-03-03T14:37:58.000Z
gui/components/gui_colorbox.cc
BradenButler/simutrans
86f29844625119182896e0e08d7b775bc847758d
[ "Artistic-1.0" ]
126
2015-01-05T10:27:14.000Z
2022-03-05T14:08:50.000Z
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "gui_colorbox.h" #include "../gui_theme.h" #include "../../display/simgraph.h" gui_colorbox_t::gui_colorbox_t(PIXVAL c) { color = c; max_size = scr_size(scr_size::inf.w, D_INDICATOR_HEIGHT); } scr_size g...
23.457143
130
0.752741
BradenButler
0c30ba7788d872e1aa541f6a0b167b4fb51ea633
7,272
cpp
C++
Overlay/src/Loader.cpp
narindertamber66/https-github.com-acidicoala-ScreamAPI
4f7e0dfae3be99526dc21b3eed91ae2231f1a209
[ "0BSD" ]
null
null
null
Overlay/src/Loader.cpp
narindertamber66/https-github.com-acidicoala-ScreamAPI
4f7e0dfae3be99526dc21b3eed91ae2231f1a209
[ "0BSD" ]
null
null
null
Overlay/src/Loader.cpp
narindertamber66/https-github.com-acidicoala-ScreamAPI
4f7e0dfae3be99526dc21b3eed91ae2231f1a209
[ "0BSD" ]
null
null
null
#include "pch.h" #include "Loader.h" #include "Overlay.h" #include <fstream> #include <future> #include <Config.h> // Instructions on how to build libcurl on Windows can be found here: // https://www.youtube.com/watch?reload=9&v=q_mXVZ6VJs4 #pragma comment(lib,"Ws2_32.lib") #pragma comment(lib,"Wldap32.lib") #pragma c...
32.609865
106
0.738036
narindertamber66
0c35d1e8e44f5d8b9e7bd8c00e97fe10fc7c2e6a
1,325
cpp
C++
test/result.cpp
elpescado/core-jsonrpc
12f85727168086a0a964aa9b934cd62f360c4cc3
[ "MIT" ]
null
null
null
test/result.cpp
elpescado/core-jsonrpc
12f85727168086a0a964aa9b934cd62f360c4cc3
[ "MIT" ]
null
null
null
test/result.cpp
elpescado/core-jsonrpc
12f85727168086a0a964aa9b934cd62f360c4cc3
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include "result.h" #include <json/value.h> using namespace core::jsonrpc; TEST(ResultTest, TestConstructor) { Json::Value id(5); Result res(id); ASSERT_EQ(id, res.id()); ASSERT_EQ(ResultState::None, res.state()); ASSERT_THROW(res.result(), std::invalid_argument); } TEST(ResultTest, ...
18.150685
61
0.693585
elpescado
0c38056fb841e231d209450010e13fbe78092b17
764
cpp
C++
Projects/CoX/Servers/MapServer/MapTemplate.cpp
teronis84/Segs
71ac841a079fd769c3a45836ac60f34e4fff32b9
[ "BSD-3-Clause" ]
null
null
null
Projects/CoX/Servers/MapServer/MapTemplate.cpp
teronis84/Segs
71ac841a079fd769c3a45836ac60f34e4fff32b9
[ "BSD-3-Clause" ]
null
null
null
Projects/CoX/Servers/MapServer/MapTemplate.cpp
teronis84/Segs
71ac841a079fd769c3a45836ac60f34e4fff32b9
[ "BSD-3-Clause" ]
null
null
null
/* * Super Entity Game Server Project * http://segs.sf.net/ * Copyright (c) 2006 - 2016 Super Entity Game Server Team (see Authors.txt) * This software is licensed! (See License.txt for details) * */ #include "MapTemplate.h" #include "MapInstance.h" MapTemplate::MapTemplate(const std::string &/*template_filena...
25.466667
120
0.697644
teronis84
0c3b4d5e2326499867cf563347d0eeb19a0658e8
558
cpp
C++
src/cricketer.cpp
tomdodd4598/UCL-PHAS0100-CandamirTilesExample1
8a324462d93db49a6a2c88fb382bca110c7ec611
[ "MIT" ]
null
null
null
src/cricketer.cpp
tomdodd4598/UCL-PHAS0100-CandamirTilesExample1
8a324462d93db49a6a2c88fb382bca110c7ec611
[ "MIT" ]
null
null
null
src/cricketer.cpp
tomdodd4598/UCL-PHAS0100-CandamirTilesExample1
8a324462d93db49a6a2c88fb382bca110c7ec611
[ "MIT" ]
null
null
null
#include "cricketer.hpp" #include "equipment.hpp" #include <string> namespace cricket { std::string Cricketer::equipment_string() const { std::string str = "["; bool begin = true; for (auto& e : equipment_list) { if (begin) { begin = false; } ...
19.241379
53
0.399642
tomdodd4598
0c41a2e57c2817dfdfec15bff79f24721e569092
171,616
cpp
C++
AIPDebug/Display-Interface/w_conf.cpp
Bluce-Song/Master-AIP
1757ab392504d839de89460da17630d268ff3eed
[ "Apache-2.0" ]
null
null
null
AIPDebug/Display-Interface/w_conf.cpp
Bluce-Song/Master-AIP
1757ab392504d839de89460da17630d268ff3eed
[ "Apache-2.0" ]
null
null
null
AIPDebug/Display-Interface/w_conf.cpp
Bluce-Song/Master-AIP
1757ab392504d839de89460da17630d268ff3eed
[ "Apache-2.0" ]
null
null
null
#include "w_conf.h" #include "ui_w_conf.h" static bool Clicked = true; /****************************************************************************** * version: 1.0 * author: link * date: 2015.12.30 * brief: 设置界面初始化 *****************************************************************************...
36.772231
110
0.486184
Bluce-Song
0c429aff8c66779da4ad1f05c1768aa976621b05
12,024
hpp
C++
include/ShaderWriter/VecTypes/Swizzle.hpp
jarrodmky/ShaderWriter
ee9ce00a003bf544f8c8f23b5c07739e21cb3754
[ "MIT" ]
148
2018-10-11T16:51:37.000Z
2022-03-26T13:55:08.000Z
include/ShaderWriter/VecTypes/Swizzle.hpp
jarrodmky/ShaderWriter
ee9ce00a003bf544f8c8f23b5c07739e21cb3754
[ "MIT" ]
30
2019-11-30T11:43:07.000Z
2022-01-25T21:09:47.000Z
include/ShaderWriter/VecTypes/Swizzle.hpp
jarrodmky/ShaderWriter
ee9ce00a003bf544f8c8f23b5c07739e21cb3754
[ "MIT" ]
8
2020-04-17T13:18:30.000Z
2021-11-20T06:24:44.000Z
/* See LICENSE file in root folder */ #ifndef ___SDW_Swizzle_H___ #define ___SDW_Swizzle_H___ #include "ShaderWriter/BaseTypes/Bool.hpp" #define Writer_UseSwizzle 0 #if defined( RGB ) # undef RGB #endif namespace sdw { #if Writer_UseSwizzle template< typename Input, typename Output > struct Swizzle : public Ou...
33.586592
167
0.747006
jarrodmky
0c48d3843cc045a691df4fb5fa11b824127a990c
2,155
cpp
C++
ares/gba/system/system.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
153
2020-07-25T17:55:29.000Z
2021-10-01T23:45:01.000Z
ares/gba/system/system.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
245
2021-10-08T09:14:46.000Z
2022-03-31T08:53:13.000Z
ares/gba/system/system.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
44
2020-07-25T08:51:55.000Z
2021-09-25T16:09:01.000Z
#include <gba/gba.hpp> namespace ares::GameBoyAdvance { auto enumerate() -> vector<string> { return { "[Nintendo] Game Boy Advance", "[Nintendo] Game Boy Player", }; } auto load(Node::System& node, string name) -> bool { if(!enumerate().find(name)) return false; return system.load(node, name); } Sch...
21.336634
80
0.64826
CasualPokePlayer
0c4989d25a814a669fb015108e6a2955c27aac80
1,759
cc
C++
squid/squid3-3.3.8.spaceify/src/tests/testStore.cc
spaceify/spaceify
4296d6c93cad32bb735cefc9b8157570f18ffee4
[ "MIT" ]
4
2015-01-20T15:25:34.000Z
2017-12-20T06:47:42.000Z
squid/squid3-3.3.8.spaceify/src/tests/testStore.cc
spaceify/spaceify
4296d6c93cad32bb735cefc9b8157570f18ffee4
[ "MIT" ]
4
2015-05-15T09:32:55.000Z
2016-02-18T13:43:31.000Z
squid/squid3-3.3.8.spaceify/src/tests/testStore.cc
spaceify/spaceify
4296d6c93cad32bb735cefc9b8157570f18ffee4
[ "MIT" ]
null
null
null
#define SQUID_UNIT_TEST 1 #include "squid.h" #include "testStore.h" #include "Store.h" CPPUNIT_TEST_SUITE_REGISTRATION( testStore ); int TestStore::callback() { return 1; } StoreEntry* TestStore::get(const cache_key*) { return NULL; } void TestStore::get(String, void (*)(StoreEntry*, void*), void*) {} voi...
15.163793
59
0.682206
spaceify
0c4ba09acd9004f5019125826d45f4490b9acaba
4,657
cpp
C++
sslpod/src/v20190605/model/CreateDomainRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
sslpod/src/v20190605/model/CreateDomainRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
sslpod/src/v20190605/model/CreateDomainRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
28
2019-07-12T09:06:22.000Z
2022-03-30T08:04:18.000Z
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
23.882051
91
0.703028
suluner
0c4e705ba82a61bd92b2df479ae3e571b063c3ac
1,079
cpp
C++
client/Classes/Model/Effects/DefenceEffect.cpp
plankes-projects/BaseWar
693f7d02fa324b917b28be58d33bb77a18d77f26
[ "Apache-2.0" ]
60
2015-01-03T07:31:14.000Z
2021-12-17T02:39:17.000Z
client/Classes/Model/Effects/DefenceEffect.cpp
plankes-projects/BaseWar
693f7d02fa324b917b28be58d33bb77a18d77f26
[ "Apache-2.0" ]
1
2018-08-17T09:59:30.000Z
2018-08-17T09:59:30.000Z
client/Classes/Model/Effects/DefenceEffect.cpp
plankes-projects/BaseWar
693f7d02fa324b917b28be58d33bb77a18d77f26
[ "Apache-2.0" ]
27
2015-01-22T06:55:10.000Z
2021-12-17T02:39:23.000Z
/* * Attack.cpp * * Created on: May 18, 2013 * Author: planke */ #include "DefenceEffect.h" #include "../Units/Unit.h" DefenceEffect::~DefenceEffect() { } DefenceEffect::DefenceEffect(float timeInMilliseconds, float increasedHPInPercent, float increasedDefenseInPercent) : Effect(timeInMilliseconds, NOT...
26.317073
117
0.762743
plankes-projects
31b1283cb103db9834c630868c49bcf8acde0ec2
2,109
cc
C++
src/logtrace.cc
Gear2D/gear2d
7a9c9c479cbd8f15e5ce9050a43b041d60e8ab63
[ "MIT" ]
4
2015-05-15T06:30:23.000Z
2018-06-17T22:34:07.000Z
src/logtrace.cc
Gear2D/gear2d
7a9c9c479cbd8f15e5ce9050a43b041d60e8ab63
[ "MIT" ]
null
null
null
src/logtrace.cc
Gear2D/gear2d
7a9c9c479cbd8f15e5ce9050a43b041d60e8ab63
[ "MIT" ]
null
null
null
#include "logtrace.h" #ifdef ANDROID void logtrace::initandroidlog() { static bool initialized = false; if (!initialized) { std::cout.rdbuf(new androidbuf); initialized = true; } } #endif /* logtrace static calls */ std::ostream *& logtrace::logstream() { static std::ostream * stream = ...
26.037037
108
0.62826
Gear2D
31bc1a58d99ba272d9042fc85b1bff354fd28044
1,119
cpp
C++
EZOJ/1721.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
6
2019-09-30T16:11:00.000Z
2021-11-01T11:42:33.000Z
EZOJ/1721.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
4
2017-11-21T08:17:42.000Z
2020-07-28T12:09:52.000Z
EZOJ/1721.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
4
2017-07-26T05:54:06.000Z
2020-09-30T13:35:38.000Z
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> using namespace std; inline bool is_num(char c){ return c>='0'&&c<='9'; } inline int ni(){ int i=0;char c; while(!is_num(c=getchar())); while(i=i*10-'0'+c,is_num(c=getchar())); return i; } const int N=10000010; int prime[N],ptop=0,mu[N],la...
20.345455
57
0.549598
sshockwave
31c2c5f20495c3b6a74d21eb34910702277df60c
4,518
hpp
C++
src/centurion/math/vector3.hpp
twantonie/centurion
198b80f9e8a29da2ae7d3c15e48ffa1a046165c3
[ "MIT" ]
126
2020-12-05T00:05:56.000Z
2022-03-30T15:15:03.000Z
src/centurion/math/vector3.hpp
twantonie/centurion
198b80f9e8a29da2ae7d3c15e48ffa1a046165c3
[ "MIT" ]
46
2020-12-27T14:25:22.000Z
2022-01-26T13:58:11.000Z
src/centurion/math/vector3.hpp
twantonie/centurion
198b80f9e8a29da2ae7d3c15e48ffa1a046165c3
[ "MIT" ]
13
2021-01-20T20:50:18.000Z
2022-03-25T06:59:03.000Z
#ifndef CENTURION_VECTOR3_HEADER #define CENTURION_VECTOR3_HEADER #include <ostream> // ostream #include <string> // string, to_string #include "../compiler/features.hpp" #if CENTURION_HAS_FEATURE_FORMAT #include <format> // format #endif // CENTURION_HAS_FEATURE_FORMAT namespace cen { /// \addtogroup math ...
24.160428
94
0.671536
twantonie
31c395f56ebf021b843d39a805f7d24ab94733b0
4,328
cpp
C++
src/FalconEngine/Graphics/Renderer/Resource/Texture.cpp
Lywx/FalconEngine
c4d1fed789218d1994908b8dbbcd6c01961f9ef2
[ "MIT" ]
6
2017-04-17T12:34:57.000Z
2019-10-19T23:29:59.000Z
src/FalconEngine/Graphics/Renderer/Resource/Texture.cpp
Lywx/FalconEngine
c4d1fed789218d1994908b8dbbcd6c01961f9ef2
[ "MIT" ]
null
null
null
src/FalconEngine/Graphics/Renderer/Resource/Texture.cpp
Lywx/FalconEngine
c4d1fed789218d1994908b8dbbcd6c01961f9ef2
[ "MIT" ]
2
2019-12-30T08:28:04.000Z
2020-08-05T09:58:53.000Z
#include <FalconEngine/Graphics/Renderer/Resource/Texture.h> #include <FalconEngine/Core/Exception.h> #include <FalconEngine/Graphics/Renderer/Renderer.h> #include <FalconEngine/Content/StbLibGuardBegin.h> #define STB_IMAGE_IMPLEMENTATION #include <stb/stb_image.h> #include <FalconEngine/Content/StbLibGuardEnd.h> na...
22.081633
85
0.628466
Lywx
31c8f60900a92de6d519e7caa3f4a3546b425799
1,877
cpp
C++
Week 8/Assignment 8_2.cpp
BenM-OC/CS10A
65823fae5c5fa45942cb942450126aca9294e22e
[ "MIT" ]
null
null
null
Week 8/Assignment 8_2.cpp
BenM-OC/CS10A
65823fae5c5fa45942cb942450126aca9294e22e
[ "MIT" ]
null
null
null
Week 8/Assignment 8_2.cpp
BenM-OC/CS10A
65823fae5c5fa45942cb942450126aca9294e22e
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; // The purpose of this program is to prompt the user for a number, and then provide the user with the sum of all squares between zero and the number they've entered int main() { int sumOfSquares = 0; int calcLoopCounter = 0; int userTopNumber; //User inputs the max number...
37.54
263
0.732019
BenM-OC
31cb1ee9c2f7fa49713fd79cfebf07be2cbe60dc
12,950
cpp
C++
src/plugins/lmp/plugins/ppl/tracksselectordialog.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
120
2015-01-22T14:10:39.000Z
2021-11-25T12:57:16.000Z
src/plugins/lmp/plugins/ppl/tracksselectordialog.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
8
2015-02-07T19:38:19.000Z
2017-11-30T20:18:28.000Z
src/plugins/lmp/plugins/ppl/tracksselectordialog.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...
28.152174
114
0.643012
Maledictus
31d2b445465a692fd314c9af51918c773d81c991
559
cpp
C++
purenessscopeserver/FrameCore/CppUnit/Unit_BaseConnectClient.cpp
freeeyes/PSS
cb6dac549f2fa36c9838b5cb183ba010d56978e3
[ "Apache-2.0" ]
213
2015-01-08T05:58:52.000Z
2022-03-22T01:23:37.000Z
purenessscopeserver/FrameCore/CppUnit/Unit_BaseConnectClient.cpp
volute24/PSS
cb6dac549f2fa36c9838b5cb183ba010d56978e3
[ "Apache-2.0" ]
33
2015-09-11T02:52:03.000Z
2021-04-12T01:23:48.000Z
purenessscopeserver/FrameCore/CppUnit/Unit_BaseConnectClient.cpp
volute24/PSS
cb6dac549f2fa36c9838b5cb183ba010d56978e3
[ "Apache-2.0" ]
126
2015-01-08T06:21:05.000Z
2021-11-19T08:19:12.000Z
#include "Unit_BaseConnectClient.h" #ifdef _CPPUNIT_TEST void CUnit_BaseConnectClient::setUp(void) { m_u2CommandID = 0x1003; } void CUnit_BaseConnectClient::tearDown(void) { m_u2CommandID = 0; } void CUnit_BaseConnectClient::Test_Common_Send_ConnectError(void) { ACE_INET_Addr objAddrServer; CPostSer...
19.964286
100
0.774597
freeeyes
31d7740a1cc8ecda041ab5376d9f5d20eebe6147
799
cpp
C++
lib/mutexp.cpp
williamledda/CPPosix
235e990731c7cade43a1105dce6705329c56adbe
[ "MIT" ]
null
null
null
lib/mutexp.cpp
williamledda/CPPosix
235e990731c7cade43a1105dce6705329c56adbe
[ "MIT" ]
null
null
null
lib/mutexp.cpp
williamledda/CPPosix
235e990731c7cade43a1105dce6705329c56adbe
[ "MIT" ]
null
null
null
/* * mutexp.cpp * * Created on: 11 gen 2018 * Author: william */ #include "mutexp.h" #include <iostream> namespace cpposix { MutexP::MutexP() { /*Both returns always zero. No error check is needed*/ pthread_mutexattr_init(&this->mtx_attr); pthread_mutex_init(&this->mtx, &this->mtx_attr); } MutexP::~M...
18.581395
63
0.674593
williamledda
31dbc824948a7a31ecce7e3b96ba48db77e33a51
880
cpp
C++
source/toy/gadget/HexCharToInt.cpp
ToyAuthor/ToyBox
f517a64d00e00ccaedd76e33ed5897edc6fde55e
[ "Unlicense" ]
4
2017-07-06T22:18:41.000Z
2021-05-24T21:28:37.000Z
source/toy/gadget/HexCharToInt.cpp
ToyAuthor/ToyBox
f517a64d00e00ccaedd76e33ed5897edc6fde55e
[ "Unlicense" ]
null
null
null
source/toy/gadget/HexCharToInt.cpp
ToyAuthor/ToyBox
f517a64d00e00ccaedd76e33ed5897edc6fde55e
[ "Unlicense" ]
1
2020-08-02T13:00:38.000Z
2020-08-02T13:00:38.000Z
#include "toy/gadget/HexCharToInt.hpp" #if TOY_OPTION_RELEASE #include "toy/Oops.hpp" #else #include "toy/Exception.hpp" #endif namespace toy{ namespace gadget{ int HexCharToInt(const char code) { if ( code<'0' ) { #if TOY_OPTION_RELEASE toy::Oops(TOY_MARK); return 0; #else throw toy::Exception(TOY_...
14.915254
38
0.589773
ToyAuthor
31dbffd6b5779c68ec93537e13f905efda9a14ec
1,757
cpp
C++
src/cppLinqUnitTest/emptyTest.cpp
paolosev/cpplinq
9d631e852ebb8f3a0f134524fb82abccd799a361
[ "Apache-2.0" ]
null
null
null
src/cppLinqUnitTest/emptyTest.cpp
paolosev/cpplinq
9d631e852ebb8f3a0f134524fb82abccd799a361
[ "Apache-2.0" ]
null
null
null
src/cppLinqUnitTest/emptyTest.cpp
paolosev/cpplinq
9d631e852ebb8f3a0f134524fb82abccd799a361
[ "Apache-2.0" ]
null
null
null
// Copyright 2012 Paolo Severini // // 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...
33.788462
112
0.627775
paolosev
31dd567dedb65314795c4b49818e6c1d792f0827
18,443
cpp
C++
library/src/Json.cpp
StratifyLabs/JsonAPI
82283d2571452d75468d508db19c328f052ecac7
[ "MIT" ]
null
null
null
library/src/Json.cpp
StratifyLabs/JsonAPI
82283d2571452d75468d508db19c328f052ecac7
[ "MIT" ]
null
null
null
library/src/Json.cpp
StratifyLabs/JsonAPI
82283d2571452d75468d508db19c328f052ecac7
[ "MIT" ]
null
null
null
// Copyright 2016-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md #include <type_traits> #if USE_PRINTER #include "sys/Printer.hpp" #endif //#include "sys/Sys.hpp" #include <printer/Printer.hpp> #include <var/StackString.hpp> #include <var/StringView.hpp> #include <var/Tokenizer.hpp> #include "json/Json.h...
24.922973
80
0.643659
StratifyLabs
31e293a3b1575e0b4889caef9ddfba87b7e9e515
2,349
cpp
C++
board/fpga/net_reliable/tx_arbiter/tb.cpp
WukLab/Clio
7908c3a022fd356cd54616630fcddf59f7f3fd95
[ "MIT" ]
46
2021-12-02T04:45:23.000Z
2022-03-21T08:19:07.000Z
board/fpga/net_reliable/tx_arbiter/tb.cpp
WukLab/Clio
7908c3a022fd356cd54616630fcddf59f7f3fd95
[ "MIT" ]
null
null
null
board/fpga/net_reliable/tx_arbiter/tb.cpp
WukLab/Clio
7908c3a022fd356cd54616630fcddf59f7f3fd95
[ "MIT" ]
2
2022-03-17T04:00:53.000Z
2022-03-20T14:06:25.000Z
/* * Copyright (c) 2020,Wuklab, UCSD. */ #include "arbiter_64.hpp" #include <uapi/gbn.h> #define MAX_CYCLE 50 struct net_axis_64 build_gbn_header(ap_uint<8> type, ap_uint<SEQ_WIDTH> seqnum, ap_uint<1> last) { struct net_axis_64 pkt; pkt.data(7, 0) = type; pkt.data(8 + SEQ_WIDTH - 1, 8) = seqnum; pkt.da...
27
79
0.689229
WukLab
31e36365fa9475874f775caf70baa488eacc3cc0
588
hpp
C++
include/MCL/Screenshot.hpp
mattoverby/mclapp
e17cdf5ce1fb22f3061d46c26978ea9c60371841
[ "MIT" ]
null
null
null
include/MCL/Screenshot.hpp
mattoverby/mclapp
e17cdf5ce1fb22f3061d46c26978ea9c60371841
[ "MIT" ]
null
null
null
include/MCL/Screenshot.hpp
mattoverby/mclapp
e17cdf5ce1fb22f3061d46c26978ea9c60371841
[ "MIT" ]
null
null
null
// Copyright Matt Overby 2021. // Distributed under the MIT License. #ifndef MCL_SCREENSHOT_HPP #define MCL_SCREENSHOT_HPP 1 #include <igl/opengl/glfw/Viewer.h> namespace mcl { class Screenshot { public: int frame_counter; bool render_background; bool rendered_init; Screenshot() : frame_counter(0), render_b...
18.375
71
0.738095
mattoverby
31e4de8ace3e37b2951c4690b3af0bb105b0c50a
966
cpp
C++
src/Root.cpp
syoch/wiiu-libgu
6744c46c9522c1a6def23aa613e8b759c50064c4
[ "MIT" ]
1
2021-02-26T15:49:54.000Z
2021-02-26T15:49:54.000Z
src/Root.cpp
syoch/wiiu-libgui
6744c46c9522c1a6def23aa613e8b759c50064c4
[ "MIT" ]
null
null
null
src/Root.cpp
syoch/wiiu-libgui
6744c46c9522c1a6def23aa613e8b759c50064c4
[ "MIT" ]
null
null
null
#include <Root.hpp> #include <DrawWrapper.hpp> #include <mc/internal/std/string.hpp> void GUI::Root::draw_line(DrawPoint start, DrawPoint end) { GUI::draw_line(start, end); } void GUI::Root::draw_rect(DrawPoint start, DrawPoint end) { GUI::draw_rect(start, end); } void GUI::Root::draw_rect(DrawPoint A, DrawPo...
23.560976
85
0.682195
syoch
31e4fc1d129b7959afb1ac46924c6898167485fb
1,970
hpp
C++
cpp/timeSerie/sources/sparseTimeSerie.hpp
jxtopher/quick-codes
577711394f3f338c061f1e53df875d958c645071
[ "Apache-2.0" ]
null
null
null
cpp/timeSerie/sources/sparseTimeSerie.hpp
jxtopher/quick-codes
577711394f3f338c061f1e53df875d958c645071
[ "Apache-2.0" ]
null
null
null
cpp/timeSerie/sources/sparseTimeSerie.hpp
jxtopher/quick-codes
577711394f3f338c061f1e53df875d958c645071
[ "Apache-2.0" ]
null
null
null
/// /// @file sparseTimeSerie.hpp /// @author Jxtopher /// @brief /// @version 0.1 /// @date 2019-11-09 /// /// @copyright Copyright (c) 2019 /// /// #include <iostream> #include <map> #include "timeSerie.hpp" template <typename TYPE_VALUES> class SparseTimeSerie : public TimeSerie { public: SparseTimeSerie(...
28.142857
155
0.560406
jxtopher
31e54d8e5561952e08a33f4e57e87e915b0154dd
540
hpp
C++
flare/include/flare/exceptions/missing_file_exception.hpp
taehyub/flare_cpp
7731bc0bcf2ce721f103586a48f74aa5c12504e8
[ "MIT" ]
14
2019-04-29T15:17:24.000Z
2020-12-30T12:51:05.000Z
flare/include/flare/exceptions/missing_file_exception.hpp
taehyub/flare_cpp
7731bc0bcf2ce721f103586a48f74aa5c12504e8
[ "MIT" ]
null
null
null
flare/include/flare/exceptions/missing_file_exception.hpp
taehyub/flare_cpp
7731bc0bcf2ce721f103586a48f74aa5c12504e8
[ "MIT" ]
6
2019-04-29T15:17:25.000Z
2021-11-16T03:20:59.000Z
#ifndef _FLARE_MISSINGFILEEXCEPTION_HPP_ #define _FLARE_MISSINGFILEEXCEPTION_HPP_ #include <exception> #include <string> namespace flare { class MissingFileException : public std::exception { std::string m_Message; std::string m_Filename; public: MissingFileException(const std::string& msg, const std::stri...
18
115
0.709259
taehyub
31e5ee3abf51f0f9a819a5a9406f79dee4d4a305
728
cpp
C++
src/test/test_sensors.cpp
sj0897/my-ARIAC-competition-2021
fbaa26430d5c37444464a3c04d44d80cf11c5ef1
[ "BSD-3-Clause" ]
null
null
null
src/test/test_sensors.cpp
sj0897/my-ARIAC-competition-2021
fbaa26430d5c37444464a3c04d44d80cf11c5ef1
[ "BSD-3-Clause" ]
null
null
null
src/test/test_sensors.cpp
sj0897/my-ARIAC-competition-2021
fbaa26430d5c37444464a3c04d44d80cf11c5ef1
[ "BSD-3-Clause" ]
null
null
null
#include<memory> #include <ros/ros.h> #include "sensors.h" int main(int argc, char **argv){ ros::init(argc, argv, "test_sensors"); ros::NodeHandle nh; auto logical_camera_bins0 = std::make_unique<LogicalCamera>(&nh, "logical_camera_bins0"); auto logical_camera_station2 = std::make_unique<LogicalCame...
30.333333
99
0.722527
sj0897
31eaed72f7e10018a0e4cfabc9f0d5ebed075fa8
81
cxx
C++
test/itkEmptyTest.cxx
bloyl/DiffusionImagingTK
0516d32b7b0d41ed161134812746ef02aab000de
[ "Apache-2.0" ]
4
2016-01-09T19:02:28.000Z
2017-07-31T19:41:32.000Z
test/itkEmptyTest.cxx
bloyl/DiffusionImagingTK
0516d32b7b0d41ed161134812746ef02aab000de
[ "Apache-2.0" ]
null
null
null
test/itkEmptyTest.cxx
bloyl/DiffusionImagingTK
0516d32b7b0d41ed161134812746ef02aab000de
[ "Apache-2.0" ]
2
2016-08-06T00:58:26.000Z
2019-02-18T01:03:13.000Z
#include <cstdlib> int itkEmptyTest( int , char ** ) { return EXIT_SUCCESS; }
11.571429
33
0.666667
bloyl
31ef33265c56b7126138f4d0838d0ebae8ea6d53
6,025
cpp
C++
ui/renderer/yas_ui_renderer_dependency.cpp
objective-audio/ui
cabf854b290c8df8c7e2f22f0f026b32c4173208
[ "MIT" ]
2
2017-06-07T18:30:29.000Z
2019-04-29T07:18:53.000Z
ui/renderer/yas_ui_renderer_dependency.cpp
objective-audio/ui
cabf854b290c8df8c7e2f22f0f026b32c4173208
[ "MIT" ]
null
null
null
ui/renderer/yas_ui_renderer_dependency.cpp
objective-audio/ui
cabf854b290c8df8c7e2f22f0f026b32c4173208
[ "MIT" ]
null
null
null
// // yas_ui_renderer_dependency.cpp // #include "yas_ui_renderer_dependency.h" #include <cpp_utils/yas_fast_each.h> #include <cpp_utils/yas_stl_utils.h> using namespace yas; using namespace yas::ui; bool tree_updates::is_any_updated() const { return this->node_updates.flags.any() || this->mesh_updates.flags.a...
35.02907
119
0.657095
objective-audio
31f25ebc84f723d81883b742fb6a4ae198d3e15e
849
cpp
C++
Love-Babbar-450-In-CPPTest/10_stack_and_queues/06_check_expression_has_balanced_paranthesis_or_not.cpp
harshanu11/Love-Babbar-450-In-CSharp
0dc3bef3e66e30abbc04f7bbf21c7319b41803e1
[ "MIT" ]
null
null
null
Love-Babbar-450-In-CPPTest/10_stack_and_queues/06_check_expression_has_balanced_paranthesis_or_not.cpp
harshanu11/Love-Babbar-450-In-CSharp
0dc3bef3e66e30abbc04f7bbf21c7319b41803e1
[ "MIT" ]
null
null
null
Love-Babbar-450-In-CPPTest/10_stack_and_queues/06_check_expression_has_balanced_paranthesis_or_not.cpp
harshanu11/Love-Babbar-450-In-CSharp
0dc3bef3e66e30abbc04f7bbf21c7319b41803e1
[ "MIT" ]
null
null
null
///* // link: https://practice.geeksforgeeks.org/problems/parenthesis-checker2744/1 // // ref: 3_string/16_balanced_paranthesis.cpp //*/ // // //// ----------------------------------------------------------------------------------------------------------------------- // //bool ispar(string x) //{ // stack<ch...
29.275862
127
0.294464
harshanu11
31fa920c4e936e21b2a65498e4fe02eaebabea0b
180
hpp
C++
Contract/EOS/payout/backup/dawn/config.hpp
flyq/dapp-rosetta
0b66f1798c68cd23211105cca363ae1e8eca6876
[ "MIT" ]
21
2019-01-24T12:43:33.000Z
2021-12-20T02:03:22.000Z
Contract/EOS/payout/backup/dawn/config.hpp
flyq/dapp-rosetta
0b66f1798c68cd23211105cca363ae1e8eca6876
[ "MIT" ]
1
2021-12-19T18:15:15.000Z
2022-02-09T04:50:32.000Z
Contract/EOS/payout/backup/dawn/config.hpp
flyq/dapp-rosetta
0b66f1798c68cd23211105cca363ae1e8eca6876
[ "MIT" ]
13
2019-02-14T01:56:26.000Z
2020-09-25T02:52:18.000Z
#pragma once #define EOS_SYMBOL S(4, EOS) #define CTN_SYMBOL S(4, CTN) #define TOKEN_SYMBOL CTN_SYMBOL #define TOKEN_CONTRACT N(dacincubator) const uint128_t MAGNITUDE = 1ll<<32;
25.714286
38
0.783333
flyq
31fc2b6f8b6de5b495c159665d76f617211ff59f
525
cpp
C++
src/main/cpp/commands/IntakePneumaticCommand.cpp
GHawk1124/apex-rapid-react-2022
c5b0c6be47e577dbda91046cd0e6713a82100dc6
[ "BSD-3-Clause" ]
null
null
null
src/main/cpp/commands/IntakePneumaticCommand.cpp
GHawk1124/apex-rapid-react-2022
c5b0c6be47e577dbda91046cd0e6713a82100dc6
[ "BSD-3-Clause" ]
null
null
null
src/main/cpp/commands/IntakePneumaticCommand.cpp
GHawk1124/apex-rapid-react-2022
c5b0c6be47e577dbda91046cd0e6713a82100dc6
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "commands/IntakePneumaticCommand.h" IntakePneumaticCommand::IntakePneumaticCommand(IntakeSubsystem* subsystem)...
27.631579
74
0.773333
GHawk1124
ee02766ed6384328bfdae557ed0707e100be17e3
1,677
cpp
C++
src/api/systeminfo.cpp
CommitteeOfZero/noidget
1ba0b37f7552c1659a8a7c8dd62893c9eece702a
[ "MIT" ]
null
null
null
src/api/systeminfo.cpp
CommitteeOfZero/noidget
1ba0b37f7552c1659a8a7c8dd62893c9eece702a
[ "MIT" ]
null
null
null
src/api/systeminfo.cpp
CommitteeOfZero/noidget
1ba0b37f7552c1659a8a7c8dd62893c9eece702a
[ "MIT" ]
null
null
null
#include "systeminfo.h" #include "apihost.h" #include <api/exception.h> #include <QScriptValue> #include <QScriptValueList> #include <QProcessEnvironment> namespace api { SystemInfo::SystemInfo(ApiHost* parent) : QObject(parent) {} SystemInfo::~SystemInfo() {} void SystemInfo::setupScriptObject(QScriptValue& o) { ...
24.661765
87
0.717352
CommitteeOfZero
ee07604693912d01e39210b9cd403747b98e8ec8
546
cpp
C++
problems/cf_1453_b.cpp
datasakura/informatika
71272271931b610f89eaf85ab89c199758d4a032
[ "MIT" ]
null
null
null
problems/cf_1453_b.cpp
datasakura/informatika
71272271931b610f89eaf85ab89c199758d4a032
[ "MIT" ]
null
null
null
problems/cf_1453_b.cpp
datasakura/informatika
71272271931b610f89eaf85ab89c199758d4a032
[ "MIT" ]
1
2020-10-01T06:23:52.000Z
2020-10-01T06:23:52.000Z
#include <iostream> #include <vector> using namespace std; int main() { int tests; cin >> tests; while (tests--) { int n; cin >> n; vector<int> a(n); for (int& i : a) cin >> i; long long ans0 = 0; for (int i = 1; i < n; i++) ans0 += abs(a[i] - a[i - 1]); long long ans = ans0 - max(abs(a[1] - a[...
18.827586
73
0.454212
datasakura
ee0c62cf6e3dc93ec85c02d35a6db9ea93175f5f
370
cpp
C++
codes/HDU/hdu4969.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/HDU/hdu4969.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/HDU/hdu4969.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <cstring> #include <cmath> #include <algorithm> using namespace std; int main () { int cas; double v1, v2, r, d; scanf("%d", &cas); while (cas--) { scanf("%lf%lf%lf%lf", &v1, &v2, &r, &d); double t = r / v1 * asin(v1 / v2); double l = t * v2; printf("%s\n", l > d ? "Why give up...
17.619048
70
0.562162
JeraKrs
ee153f9c0c41b83f72f69abc8d043bd57c568509
6,206
hpp
C++
packages/monte_carlo/core/src/MonteCarlo_SimulationPhotonProperties.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/core/src/MonteCarlo_SimulationPhotonProperties.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/monte_carlo/core/src/MonteCarlo_SimulationPhotonProperties.hpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_SimulationPhotonProperties.hpp //! \author Alex Robinson, Luke Kersting //! \brief Simulation photon properties class decl. //! //---------------------------------------------------------------------------// #if...
32.15544
82
0.753626
lkersting
ee16e13195ca2c8b41142afcf549e62fc88c8c89
1,184
cpp
C++
mr/iza810/raspi_utility/src/pigpiod.cpp
Kitasola/robocon_2019b
43acfa88fb49ddeb7ec9e15976854936a71e92b6
[ "MIT" ]
5
2020-01-24T08:05:01.000Z
2020-08-03T04:51:52.000Z
mr/iza810/raspi_utility/src/pigpiod.cpp
Kitasola/robocon_2019b
43acfa88fb49ddeb7ec9e15976854936a71e92b6
[ "MIT" ]
null
null
null
mr/iza810/raspi_utility/src/pigpiod.cpp
Kitasola/robocon_2019b
43acfa88fb49ddeb7ec9e15976854936a71e92b6
[ "MIT" ]
1
2020-07-15T05:43:48.000Z
2020-07-15T05:43:48.000Z
#include "../include/pigpiod.hpp" #include <pigpiod_if2.h> using namespace arrc_raspi; Pigpiod::Pigpiod() { gpio_handle_ = pigpio_start(const_cast<char *>(PIGPIOD_HOST), const_cast<char *>(PIGPIOD_PORT)); } void Pigpiod::write(int pin, int level) { gpio_write(gpio_handle_, pin, leve...
25.73913
74
0.658784
Kitasola
ee1994105c0e9e1d3518b9991e8e425f342516be
1,313
cpp
C++
designpattern/AbstractFactory.cpp
armsword/CppSkills
162a83f78d3d2c8607559e03d683c90d3198cab1
[ "MIT" ]
1
2015-04-29T14:32:38.000Z
2015-04-29T14:32:38.000Z
designpattern/AbstractFactory.cpp
armsword/CppSkills
162a83f78d3d2c8607559e03d683c90d3198cab1
[ "MIT" ]
null
null
null
designpattern/AbstractFactory.cpp
armsword/CppSkills
162a83f78d3d2c8607559e03d683c90d3198cab1
[ "MIT" ]
null
null
null
/* 工厂方法模式也有缺点,每增加一种产品,就需要增加一个对象的工厂。如果这家公司发展迅速,推出了很多新的处理器核,那么就要新开设相应的新工厂。在C++实现中,就是要定义一个个的工厂类。显然,相比简单工厂模式,工厂方法模式需要更多的类定义。 */ /* 既然有了简单工厂模式和工厂方法模式,为什么还要有抽象工厂模式呢?它到底有什么作用呢?还是举例子,这家公司的技术不断进步,不仅可以生产单核处理器,也能生产多喝处理器。现在简单工厂模式和工厂方法模式都鞭长莫及。抽象工厂模式登场了。它的定义为提供一个创建一系列相关或相互依赖对象的接口,而无需指定它们具体的类。 */ // 单核 class SingleCore { pub...
19.308824
156
0.722011
armsword
ee1b41e2b6c7a61390118b514e29f7220f8dade9
4,301
hpp
C++
src/vlGraphics/DistanceLODEvaluator.hpp
pasenau/VisualizationLibrary
2fcf1808475aebd4862f40377754be62a7f77a52
[ "BSD-2-Clause" ]
1
2017-06-29T18:25:11.000Z
2017-06-29T18:25:11.000Z
src/vlGraphics/DistanceLODEvaluator.hpp
pasenau/VisualizationLibrary
2fcf1808475aebd4862f40377754be62a7f77a52
[ "BSD-2-Clause" ]
null
null
null
src/vlGraphics/DistanceLODEvaluator.hpp
pasenau/VisualizationLibrary
2fcf1808475aebd4862f40377754be62a7f77a52
[ "BSD-2-Clause" ]
1
2021-01-01T10:43:33.000Z
2021-01-01T10:43:33.000Z
/**************************************************************************************/ /* */ /* Visualization Library */ /* http://visualizationlibrary.org ...
48.875
156
0.468961
pasenau
ee2c4a08c044cded2c9bd8d6a0a2fadb397e35ba
9,547
cpp
C++
src/frontends/lean/operator_info.cpp
codyroux/lean0.1
0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef
[ "Apache-2.0" ]
1
2019-06-08T15:02:03.000Z
2019-06-08T15:02:03.000Z
src/frontends/lean/operator_info.cpp
codyroux/lean0.1
0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef
[ "Apache-2.0" ]
null
null
null
src/frontends/lean/operator_info.cpp
codyroux/lean0.1
0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef
[ "Apache-2.0" ]
null
null
null
/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "util/rc.h" #include "library/io_state_stream.h" #include "frontends/lean/operator_info.h" #include "frontends/lean/frontend.h" namespace lean { /...
41.150862
124
0.658531
codyroux
0c524a156ce45e1050bf490928af9185b4a1197a
1,096
hpp
C++
SDK/ARKSurvivalEvolved_FeedingTrough_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_FeedingTrough_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_FeedingTrough_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_FeedingTrough_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //-----------------------------------------------------------...
26.095238
179
0.603102
2bite
0c5579e83da9607ae2c95691f28f89ca1f057427
5,490
cpp
C++
src/qt/qtbase/examples/qpa/windows/window.cpp
power-electro/phantomjs-Gohstdriver-DIY-openshift
a571d301a9658a4c1b524d07e15658b45f8a0579
[ "BSD-3-Clause" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
src/qt/qtbase/examples/qpa/windows/window.cpp
power-electro/phantomjs-Gohstdriver-DIY-openshift
a571d301a9658a4c1b524d07e15658b45f8a0579
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtbase/examples/qpa/windows/window.cpp
power-electro/phantomjs-Gohstdriver-DIY-openshift
a571d301a9658a4c1b524d07e15658b45f8a0579
[ "BSD-3-Clause" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as follow...
27.178218
113
0.645902
power-electro
0c5657582846cb797ddcaa56ac88e7b01bed3456
5,256
cpp
C++
src/propagation.cpp
cgilmour/dd-opentracing-cpp
c83c6a5dc72029d13ab0d64a7222fb139a1889f1
[ "Apache-2.0" ]
null
null
null
src/propagation.cpp
cgilmour/dd-opentracing-cpp
c83c6a5dc72029d13ab0d64a7222fb139a1889f1
[ "Apache-2.0" ]
null
null
null
src/propagation.cpp
cgilmour/dd-opentracing-cpp
c83c6a5dc72029d13ab0d64a7222fb139a1889f1
[ "Apache-2.0" ]
null
null
null
#include "propagation.h" #include <algorithm> namespace ot = opentracing; namespace datadog { namespace opentracing { namespace { // Header names for trace data. const std::string trace_id_header = "x-datadog-trace-id"; const std::string parent_id_header = "x-datadog-parent-id"; // Header name prefix for OpenTraci...
33.692308
98
0.671994
cgilmour
0c5b8a12c288cd2d0fd22368b928cebf0c476b3a
4,213
cpp
C++
owGameWMO/WMO_PortalsController.cpp
adan830/OpenWow
9b6e9c248bd185b1677fe616d2a3a81a35ca8894
[ "Apache-2.0" ]
null
null
null
owGameWMO/WMO_PortalsController.cpp
adan830/OpenWow
9b6e9c248bd185b1677fe616d2a3a81a35ca8894
[ "Apache-2.0" ]
null
null
null
owGameWMO/WMO_PortalsController.cpp
adan830/OpenWow
9b6e9c248bd185b1677fe616d2a3a81a35ca8894
[ "Apache-2.0" ]
1
2020-05-11T13:32:49.000Z
2020-05-11T13:32:49.000Z
#include "stdafx.h" // Include #include "WMO.h" #include "WMO_Base_Instance.h" // General #include "WMO_PortalsController.h" // Additional #include "WMO_Group_Instance.h" CWMO_PortalsController::CWMO_PortalsController(const WMO* _parentWMO) : m_ParentWMO(_parentWMO) { for (auto& it : m_ParentWMO->m_PortalReferenc...
22.173684
168
0.682886
adan830
0c5f006f2cf1a2fcfc16d43162a30ba4c5900f13
694
cpp
C++
PATA1050.cpp
Geeks-Z/PAT-Advanced-Level-Practice
6b25d07ae602310215e46c951638b93080b382bf
[ "MIT" ]
null
null
null
PATA1050.cpp
Geeks-Z/PAT-Advanced-Level-Practice
6b25d07ae602310215e46c951638b93080b382bf
[ "MIT" ]
null
null
null
PATA1050.cpp
Geeks-Z/PAT-Advanced-Level-Practice
6b25d07ae602310215e46c951638b93080b382bf
[ "MIT" ]
null
null
null
/* * @Descripttion: https://blog.csdn.net/DayDream_x/article/details/104362662/ * @version: 1.0 * @Author: Geeks_Z * @Date: 2021-05-31 17:07:22 * @LastEditors: Geeks_Z * @LastEditTime: 2021-05-31 17:07:44 */ //⽤cha[256]数组变量标记str1出现过的字符为true,str2出现过的字符为false, //输出str1的时候根据cha[str1[i]]是否为true,如果是true就输出 #include <...
19.828571
77
0.592219
Geeks-Z
0c63454c8fd021902141ae6784d729ff5dd384cc
2,123
hh
C++
include/NeuTrackingAction.hh
kwierman/Argon40Conversion
3c94209cd8036f846f7e3903bb41d35bcd85c2c0
[ "MIT" ]
null
null
null
include/NeuTrackingAction.hh
kwierman/Argon40Conversion
3c94209cd8036f846f7e3903bb41d35bcd85c2c0
[ "MIT" ]
null
null
null
include/NeuTrackingAction.hh
kwierman/Argon40Conversion
3c94209cd8036f846f7e3903bb41d35bcd85c2c0
[ "MIT" ]
null
null
null
#ifndef NeuTrackingAction_hh_ #define NeuTrackingAction_hh_ #include "NeuRootOutput.hh" #include "G4UserTrackingAction.hh" #include "globals.hh" namespace NeuFlux { /*! \class NeuTrackingAction \ingroup NeuFlux \brief Header file for defining the actions to take at the beginning and end of a tr...
23.32967
92
0.661799
kwierman
0c635191d64cfa0639fea9185cb642a34789d1f3
808
cpp
C++
Zerojudge/d618.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
9
2017-10-08T16:22:03.000Z
2021-08-20T09:32:17.000Z
Zerojudge/d618.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
null
null
null
Zerojudge/d618.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
2
2018-01-15T16:35:44.000Z
2019-03-21T18:30:04.000Z
#include <iostream> #include <cstdio> #include <string> using namespace std; int main() { string s; int t,state; cin>>t; for(int i=1;i<=t;++i) { cin>>s; state=s[0]-'0'; for(int j=1;j<s.size();++j) { if(state==2) { ...
22.444444
60
0.355198
w181496
0c66869100aab4eff2cd244d1ee5a5da6802ed71
8,892
hpp
C++
relacy/stdlib/pthread.hpp
pereckerdal/relacy
05d8a8fbb0b3600ff5bf34da0bab2bb148dff059
[ "BSD-3-Clause" ]
1
2020-05-30T13:06:12.000Z
2020-05-30T13:06:12.000Z
relacy/stdlib/pthread.hpp
pereckerdal/relacy
05d8a8fbb0b3600ff5bf34da0bab2bb148dff059
[ "BSD-3-Clause" ]
null
null
null
relacy/stdlib/pthread.hpp
pereckerdal/relacy
05d8a8fbb0b3600ff5bf34da0bab2bb148dff059
[ "BSD-3-Clause" ]
null
null
null
/* Relacy Race Detector * Copyright (c) 2008-2013, Dmitry S. Vyukov * All rights reserved. * This software is provided AS-IS with no warranty, either express or implied. * This software is distributed under a license and may not be copied, * modified or distributed except as expressly authorized under the *...
24.977528
125
0.752024
pereckerdal
0c6ba9bf5a78c36b40a2bc1c771ea0c842ae02f8
4,192
cpp
C++
sakura_core/util/format.cpp
zlatantan/sakura
a722f9c86f2860606b3f9e7dc79bb169294cfaea
[ "Zlib" ]
1
2019-03-15T16:55:33.000Z
2019-03-15T16:55:33.000Z
sakura_core/util/format.cpp
zlatantan/sakura
a722f9c86f2860606b3f9e7dc79bb169294cfaea
[ "Zlib" ]
null
null
null
sakura_core/util/format.cpp
zlatantan/sakura
a722f9c86f2860606b3f9e7dc79bb169294cfaea
[ "Zlib" ]
null
null
null
/*! @file */ /* Copyright (C) 2007, kobake This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial ap...
22.297872
99
0.595181
zlatantan
0c6ceb1940734cd71aefbb108f367a8cafd1abb3
3,423
cpp
C++
src/lib/init.cpp
lucteo/concore
ffbc3b8cead7498ddad601dcf357fa72529f81ad
[ "MIT" ]
52
2020-05-23T21:34:33.000Z
2022-02-23T03:06:50.000Z
src/lib/init.cpp
lucteo/concore
ffbc3b8cead7498ddad601dcf357fa72529f81ad
[ "MIT" ]
null
null
null
src/lib/init.cpp
lucteo/concore
ffbc3b8cead7498ddad601dcf357fa72529f81ad
[ "MIT" ]
2
2021-05-06T18:41:25.000Z
2021-07-24T03:50:42.000Z
#include "concore/init.hpp" #include "concore/low_level/spin_mutex.hpp" #include "concore/detail/platform.hpp" #include "concore/detail/likely.hpp" #include "concore/detail/library_data.hpp" #include "concore/detail/exec_context.hpp" #include <mutex> #define __IMPL__CONCORE_USE_CXX_ABI CONCORE_CPP_COMPILER(gcc) || CO...
26.952756
95
0.715746
lucteo
0c6eb2e404923c73a81c117c51c8c746243191d2
491
cpp
C++
chapter-12/12.17.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-12/12.17.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
chapter-12/12.17.cpp
zero4drift/Cpp-Primer-5th-Exercises
d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f
[ "MIT" ]
null
null
null
// int ix = 1024, *pi = &ix. *pi2 = new int(2048); // typedef unique_ptr<int> IntP; // a: IntP p0(ix); illegal, unique_ptr must be binded to a ptr which is the return value of operator 'new'. // b: IntP p1(pi); illegal, same reason as a. // c: IntP p2(pi2); legal, but pi2 may become a dangling pointer. // d: IntP p3(&...
49.1
107
0.659878
zero4drift
0c7118e140840ec289a924ba09e009b60764842f
1,146
cpp
C++
Source/TacticalVRCore/Private/Weapon/Component/TVRAttachPoint_Muzzle.cpp
Tomura/TacticalVRCorePlugin
8c8ade8a33b68751cd73a51ddfdd098823197503
[ "MIT" ]
8
2021-12-20T01:04:23.000Z
2022-03-28T02:55:34.000Z
Source/TacticalVRCore/Private/Weapon/Component/TVRAttachPoint_Muzzle.cpp
Tomura/TacticalVRCorePlugin
8c8ade8a33b68751cd73a51ddfdd098823197503
[ "MIT" ]
null
null
null
Source/TacticalVRCore/Private/Weapon/Component/TVRAttachPoint_Muzzle.cpp
Tomura/TacticalVRCorePlugin
8c8ade8a33b68751cd73a51ddfdd098823197503
[ "MIT" ]
null
null
null
// This file is covered by the LICENSE file in the root of this plugin. #include "Weapon/Component/TVRAttachPoint_Muzzle.h" #include "Weapon/Attachments/WPNA_Muzzle.h" UTVRAttachPoint_Muzzle::UTVRAttachPoint_Muzzle(const FObjectInitializer& OI) : Super(OI) { CurrentAttachmentClass = nullptr; } bool UTVRAttachPoint_...
24.913043
100
0.787958
Tomura
0c7e449d9a76d4de261d1021b25def40d323d6fd
843
cpp
C++
PAT1040.cpp
Geeks-Z/PAT
c02f08f11c4a628203f8d2dccbd7fecfc0943b34
[ "MIT" ]
null
null
null
PAT1040.cpp
Geeks-Z/PAT
c02f08f11c4a628203f8d2dccbd7fecfc0943b34
[ "MIT" ]
null
null
null
PAT1040.cpp
Geeks-Z/PAT
c02f08f11c4a628203f8d2dccbd7fecfc0943b34
[ "MIT" ]
null
null
null
/* * @Descripttion: 有几个PAT * @version: 1.0 * @Author: Geeks_Z * @Date: 2021-04-30 14:40:53 * @LastEditors: Geeks_Z * @LastEditTime: 2021-05-08 11:30:38 */ #include <cstdio> #include <iostream> #include <string> using namespace std; const int mod = 1000000007; const int maxn = 100010; int main() { // freopen("i...
16.529412
45
0.476868
Geeks-Z
0c7f99cf703b44ea3817338b95a06c3aee761336
6,285
cpp
C++
connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp
qinwang13/CIAO
e69add1b5da8e9602bcc85d581ecbf1bd41c49a3
[ "DOC" ]
10
2016-07-20T00:55:50.000Z
2020-10-04T19:07:10.000Z
connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp
qinwang13/CIAO
e69add1b5da8e9602bcc85d581ecbf1bd41c49a3
[ "DOC" ]
13
2016-09-27T14:08:27.000Z
2020-11-11T10:45:56.000Z
connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp
qinwang13/CIAO
e69add1b5da8e9602bcc85d581ecbf1bd41c49a3
[ "DOC" ]
12
2016-04-20T09:57:02.000Z
2021-12-24T17:23:45.000Z
// -*- C++ -*- /** * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 * TAO and the TAO IDL Compiler have been developed by: * Center for Distributed Object Computing * Washington University * St. Louis, MO * USA * http://www.cs.wustl.edu/~schmidt/doc-center.html * and ...
23.62782
89
0.606046
qinwang13
0c81e9c6cdd0c7ffa40ae96cb31e06601cd9a962
3,374
hpp
C++
saga/saga/adaptors/utils/ini/ini.hpp
saga-project/saga-cpp
7376c0de0529e7d7b80cf08b94ec484c2e56d38e
[ "BSL-1.0" ]
5
2015-09-15T16:24:14.000Z
2021-08-12T11:05:55.000Z
saga/saga/adaptors/utils/ini/ini.hpp
saga-project/saga-cpp
7376c0de0529e7d7b80cf08b94ec484c2e56d38e
[ "BSL-1.0" ]
null
null
null
saga/saga/adaptors/utils/ini/ini.hpp
saga-project/saga-cpp
7376c0de0529e7d7b80cf08b94ec484c2e56d38e
[ "BSL-1.0" ]
3
2016-11-17T04:38:38.000Z
2021-04-10T17:23:52.000Z
// Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) // Copyright (c) 2009 João Abecasis // // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef _SAGA_INI_H_ #define...
31.240741
85
0.496147
saga-project
0c84a0e6e65d8b30939677ac795d81a0ca6776c2
386
hpp
C++
src/include/Window.hpp
sglyons2/edu-chat
0520c76903a84c1034ec6b83c51f162e195fe74f
[ "MIT" ]
null
null
null
src/include/Window.hpp
sglyons2/edu-chat
0520c76903a84c1034ec6b83c51f162e195fe74f
[ "MIT" ]
null
null
null
src/include/Window.hpp
sglyons2/edu-chat
0520c76903a84c1034ec6b83c51f162e195fe74f
[ "MIT" ]
null
null
null
#ifndef WINDOW_HPP #define WINDOW_HPP #include <ncurses.h> #include <vector> #include <string> struct Window { WINDOW *window; int height; int width; int begin_y; int begin_x; Window(int height, int width, int begin_y, int begin_x); ~Window(); void print(std::vector<std::string>& lines, bool boxed); void re...
17.545455
62
0.715026
sglyons2
0c8a7d9784c2b2b3f68921b1a452c4081c5ce82a
3,888
cpp
C++
util.cpp
tpruvot/skminer
2dd652461ed8dcce2137547b58376dc2107f6103
[ "Apache-2.0" ]
3
2015-10-22T03:11:03.000Z
2021-05-26T07:47:48.000Z
util.cpp
tpruvot/skminer
2dd652461ed8dcce2137547b58376dc2107f6103
[ "Apache-2.0" ]
null
null
null
util.cpp
tpruvot/skminer
2dd652461ed8dcce2137547b58376dc2107f6103
[ "Apache-2.0" ]
2
2017-07-14T19:21:17.000Z
2017-12-22T08:05:25.000Z
/* * Copyright 2010 Jeff Garzik * Copyright 2012-2014 pooler * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. S...
20.145078
77
0.635288
tpruvot
0c8c43c713088275106d5fbb860304d038893db2
12,668
cpp
C++
coreneuron/mpi/lib/mpispike.cpp
phoenixdong/CoreNeuron
ff80819b04d5cbe41d9dfc35608b55df961c5646
[ "BSD-3-Clause" ]
null
null
null
coreneuron/mpi/lib/mpispike.cpp
phoenixdong/CoreNeuron
ff80819b04d5cbe41d9dfc35608b55df961c5646
[ "BSD-3-Clause" ]
null
null
null
coreneuron/mpi/lib/mpispike.cpp
phoenixdong/CoreNeuron
ff80819b04d5cbe41d9dfc35608b55df961c5646
[ "BSD-3-Clause" ]
null
null
null
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # =============================================================================. */ #include "coreneuron/nrnconf.h" /* do not want the redef...
30.673123
100
0.570019
phoenixdong
0c8cffd5adea2a57dd600d70f915d4de39410f54
4,060
cpp
C++
DT3Core/Types/Memory/MemoryAllocatorTrace_cmd.cpp
9heart/DT3
4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e
[ "MIT" ]
3
2018-10-05T15:03:27.000Z
2019-03-19T11:01:56.000Z
DT3Core/Types/Memory/MemoryAllocatorTrace_cmd.cpp
pakoito/DT3
4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e
[ "MIT" ]
1
2016-01-28T14:39:49.000Z
2016-01-28T22:12:07.000Z
DT3Core/Types/Memory/MemoryAllocatorTrace_cmd.cpp
adderly/DT3
e2605be091ec903d3582e182313837cbaf790857
[ "MIT" ]
3
2016-01-25T16:44:51.000Z
2021-01-29T19:59:45.000Z
//============================================================================== /// /// File: MemoryAllocatorTrace_cmd.cpp /// /// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved. /// /// This file is subject to the terms and conditions defined in /// file 'LICENSE.txt', which ...
40.6
121
0.49064
9heart
0c905f8209cd7f77de147527063813523e9fe606
4,602
cc
C++
src/libcsg/modules/io/gmxtrajectoryreader.cc
vaidyanathanms/votca.csg
7af91bfecd620b820968956cd96ce7b3bce28a59
[ "Apache-2.0" ]
null
null
null
src/libcsg/modules/io/gmxtrajectoryreader.cc
vaidyanathanms/votca.csg
7af91bfecd620b820968956cd96ce7b3bce28a59
[ "Apache-2.0" ]
null
null
null
src/libcsg/modules/io/gmxtrajectoryreader.cc
vaidyanathanms/votca.csg
7af91bfecd620b820968956cd96ce7b3bce28a59
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unl...
29.312102
119
0.621034
vaidyanathanms
0c9393362bdc1167bcb1477e53f488fbeb0a6185
1,228
hpp
C++
ql/experimental/templatemodels/qgaussian/quasigaussianmodels.hpp
sschlenkrich/quantlib
ff39ad2cd03d06d185044976b2e26ce34dca470c
[ "BSD-3-Clause" ]
null
null
null
ql/experimental/templatemodels/qgaussian/quasigaussianmodels.hpp
sschlenkrich/quantlib
ff39ad2cd03d06d185044976b2e26ce34dca470c
[ "BSD-3-Clause" ]
null
null
null
ql/experimental/templatemodels/qgaussian/quasigaussianmodels.hpp
sschlenkrich/quantlib
ff39ad2cd03d06d185044976b2e26ce34dca470c
[ "BSD-3-Clause" ]
null
null
null
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2015 Sebastian Schlenkrich */ /*! \file quasigaussianmodels.hpp \brief bindings of templatised quasi Gaussian models */ #ifndef quantlib_templatequasigaussianmodels_hpp #define quantlib_templatequasigaussianmodels...
32.315789
109
0.799674
sschlenkrich
0c974dee941b748e38c15e52c5fc5a2e1a0767e4
736
hpp
C++
Boss/Msg/InternetOnline.hpp
3nprob/clboss
0435b6c074347ce82e490a5988534054e9d7348d
[ "MIT" ]
108
2020-10-01T17:12:40.000Z
2022-03-30T09:18:03.000Z
Boss/Msg/InternetOnline.hpp
3nprob/clboss
0435b6c074347ce82e490a5988534054e9d7348d
[ "MIT" ]
94
2020-10-03T13:40:30.000Z
2022-03-30T09:18:00.000Z
Boss/Msg/InternetOnline.hpp
3nprob/clboss
0435b6c074347ce82e490a5988534054e9d7348d
[ "MIT" ]
17
2020-10-29T13:27:59.000Z
2022-03-18T13:05:03.000Z
#ifndef BOSS_MSG_INTERNETONLINE_HPP #define BOSS_MSG_INTERNETONLINE_HPP namespace Boss { namespace Msg { /** struct Boss::Msg::InternetOnline * * @brief signals to everyone whether we are * online or not. * * @desc Broadcast whenever online-ness changes. * * At startup, we are considered offline, so the * fir...
24.533333
50
0.72962
3nprob
0ca2705b802f37d31871757c064c9bf7c0034271
1,104
cpp
C++
source/main_win64gl.cpp
Basez/Agnostik-Engine
10171bbeb73c590e75e9db5adf0135e0235f2884
[ "MIT" ]
7
2015-06-29T09:45:09.000Z
2017-06-06T08:14:09.000Z
source/main_win64gl.cpp
Basez/Agnostik-Engine
10171bbeb73c590e75e9db5adf0135e0235f2884
[ "MIT" ]
null
null
null
source/main_win64gl.cpp
Basez/Agnostik-Engine
10171bbeb73c590e75e9db5adf0135e0235f2884
[ "MIT" ]
null
null
null
#include "shared.hpp" #include "application.hpp" #include "render_api_gl.hpp" #include "config_manager.hpp" #include "os_utils.hpp" #define WIN32_LEAN_AND_MEAN #include <Windows.h> using namespace AGN; int WINAPI WinMain(HINSTANCE a_hInstance, HINSTANCE a_hPrevInstance, LPSTR a_lpCmdLine, int a_nShowCmd) { UNREFERE...
26.926829
118
0.788043
Basez
0ca616bef9af611edc84b8db2fe0f0bc671b81e0
146
cpp
C++
CWStore/CW_1/Task_3/HWTemple/HWTemple/initialization.cpp
Agesyne/HW
df9229c7f639f41ed85bae14b666bdaaf2e387b3
[ "MIT" ]
null
null
null
CWStore/CW_1/Task_3/HWTemple/HWTemple/initialization.cpp
Agesyne/HW
df9229c7f639f41ed85bae14b666bdaaf2e387b3
[ "MIT" ]
null
null
null
CWStore/CW_1/Task_3/HWTemple/HWTemple/initialization.cpp
Agesyne/HW
df9229c7f639f41ed85bae14b666bdaaf2e387b3
[ "MIT" ]
null
null
null
#include "pch.h" #include <iostream> int initNumber(char text[]) { int number = 0; printf("%s", text); scanf("%d", &number); return number; }
14.6
27
0.630137
Agesyne
0cab511c4195433c83ee5f153225ccf564c6fdcb
20,030
cpp
C++
GMan Map Maker/Unit2.cpp
JustoSenka/GMan-RPG-Game
d54f10093814fef7908e63f8419bd3fe59694d5d
[ "MIT" ]
null
null
null
GMan Map Maker/Unit2.cpp
JustoSenka/GMan-RPG-Game
d54f10093814fef7908e63f8419bd3fe59694d5d
[ "MIT" ]
null
null
null
GMan Map Maker/Unit2.cpp
JustoSenka/GMan-RPG-Game
d54f10093814fef7908e63f8419bd3fe59694d5d
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include <SysUtils.hpp> // If exist command here #include "Unit2.h" #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma res...
36.752294
127
0.522466
JustoSenka
0cafd91af3f1d372d401af345bc4533839eab7ab
10,259
cxx
C++
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterialLayerSet.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
3
2016-05-30T15:12:16.000Z
2022-03-22T08:11:13.000Z
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterialLayerSet.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterialLayerSet.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
null
null
null
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program 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 Fre...
28.497222
127
0.615167
EnEff-BIM
0cb357f43d5613478f4a975d5b5d8ec61c4b4c4c
3,256
cpp
C++
test/test02.cpp
subject721/flow-orchestrator
cadc646db5eece510c1dc1edf7bacf5060a7915c
[ "BSD-3-Clause" ]
3
2021-10-05T08:13:56.000Z
2022-02-07T22:41:03.000Z
test/test02.cpp
subject721/flow-orchestrator
cadc646db5eece510c1dc1edf7bacf5060a7915c
[ "BSD-3-Clause" ]
null
null
null
test/test02.cpp
subject721/flow-orchestrator
cadc646db5eece510c1dc1edf7bacf5060a7915c
[ "BSD-3-Clause" ]
1
2022-02-07T22:41:05.000Z
2022-02-07T22:41:05.000Z
/* * SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2021, Stefan Seitz * */ #include <common/common.hpp> #include <dpdk/dpdk_common.hpp> #include <flow_executor.hpp> class executor_test { public: executor_test() : executor(*this) {} void run_test(const std::vector< lcore_info >& available_lcore...
30.148148
119
0.610258
subject721
0cb706c5b94022177ade165039b90ff253dd2ca7
675
cpp
C++
Codeforces/459D.cpp
Alipashaimani/Competitive-programming
5d55567b71ea61e69a6450cda7323c41956d3cb9
[ "MIT" ]
null
null
null
Codeforces/459D.cpp
Alipashaimani/Competitive-programming
5d55567b71ea61e69a6450cda7323c41956d3cb9
[ "MIT" ]
null
null
null
Codeforces/459D.cpp
Alipashaimani/Competitive-programming
5d55567b71ea61e69a6450cda7323c41956d3cb9
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; constexpr int MAXN = 1e6 + 10; map <int, int> f1, f2, cnt; int n, a[MAXN], fw[MAXN]; long long ans = 0; void update (int i){ for (; i <= n; i += i&(-i)) ++fw[i]; } int query (int i) { int x = 0; for (--i; ~i+1; i -= i&(-i)) x += fw[i]; re...
17.763158
46
0.441481
Alipashaimani
0cbfb4a61188286604772331ea7b281a262932e4
314
cpp
C++
Source/Async/Utils.cpp
loudedtwist/cpp-task-loop
71795ad6916bf35ddca5dc04fd291d2affb2ffff
[ "MIT" ]
null
null
null
Source/Async/Utils.cpp
loudedtwist/cpp-task-loop
71795ad6916bf35ddca5dc04fd291d2affb2ffff
[ "MIT" ]
null
null
null
Source/Async/Utils.cpp
loudedtwist/cpp-task-loop
71795ad6916bf35ddca5dc04fd291d2affb2ffff
[ "MIT" ]
null
null
null
#include <Async/Utils.hpp> #include <chrono> namespace utils { unique_id GenerateTimestampID() { return (unique_id) std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::system_clock::now().time_since_epoch() + std::chrono::high_resolution_clock::now().time_since_epoch()) .count(); } }
22.428571
119
0.719745
loudedtwist
0cc076f8a92c4a68c1353295b8ed1a3953f66df2
2,085
cpp
C++
luogu/3804/me.cpp
jinzhengyu1212/Clovers
0efbb0d87b5c035e548103409c67914a1f776752
[ "MIT" ]
null
null
null
luogu/3804/me.cpp
jinzhengyu1212/Clovers
0efbb0d87b5c035e548103409c67914a1f776752
[ "MIT" ]
null
null
null
luogu/3804/me.cpp
jinzhengyu1212/Clovers
0efbb0d87b5c035e548103409c67914a1f776752
[ "MIT" ]
null
null
null
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;} int sub(int x...
28.175676
98
0.506475
jinzhengyu1212
0cc084f33ed98c9f36480c7082e9cff7a5c937a7
2,347
cpp
C++
policy.cpp
slist/cbapi-qt-demo
b44e31824a5b9973aa0ccff39c15ff7805902b8b
[ "MIT" ]
3
2020-09-14T19:39:53.000Z
2021-01-19T11:58:27.000Z
policy.cpp
slist/cbapi-qt-demo
b44e31824a5b9973aa0ccff39c15ff7805902b8b
[ "MIT" ]
null
null
null
policy.cpp
slist/cbapi-qt-demo
b44e31824a5b9973aa0ccff39c15ff7805902b8b
[ "MIT" ]
null
null
null
// Copyright 2020 VMware, Inc. // SPDX-License-Identifier: MIT #include "policy.h" #include "ui_policy.h" Policy::Policy(QWidget *parent) : QWidget(parent), ui(new Ui::Policy) { ui->setupUi(this); } Policy::~Policy() { delete ui; } void Policy::setName(const QString n) { name = n; ui->label_...
24.705263
113
0.633575
slist
0cc669d3fe485bedc8e1dbc9d9c4d2f1afaa24b7
2,333
cpp
C++
Problems/36_Valide_Sudoku/main.cpp
camelboat/LeetCode_Archive
c29d263e068752a9ad355925f326b56f672bb584
[ "MIT" ]
3
2019-09-21T16:25:44.000Z
2021-08-29T20:43:57.000Z
Problems/36_Valide_Sudoku/main.cpp
camelboat/LeetCode_Archive
c29d263e068752a9ad355925f326b56f672bb584
[ "MIT" ]
null
null
null
Problems/36_Valide_Sudoku/main.cpp
camelboat/LeetCode_Archive
c29d263e068752a9ad355925f326b56f672bb584
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: bool isValidSudoku(vector<vector<char>>& board) { vector<bool> base(27*9, false); for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { int tar = board[i][j] - ...
30.697368
86
0.328333
camelboat
0cc7cd6722f67bb702ca9abb75124bd8fa896670
2,236
hpp
C++
android-31/java/time/chrono/JapaneseDate.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/java/time/chrono/JapaneseDate.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/java/time/chrono/JapaneseDate.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#pragma once namespace java::io { class ObjectInputStream; } class JObject; class JString; namespace java::time { class Clock; } namespace java::time { class LocalDate; } namespace java::time { class LocalTime; } namespace java::time { class ZoneId; } namespace java::time::chrono { class JapaneseChronology; } n...
27.268293
153
0.731664
YJBeetle