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
e2bdbc50e549bfb226810973b8bf1226419c5cf0
14,845
cpp
C++
implementations/ugene/src/libs_3rdparty/QSpec/src/primitives/GTWidget.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
implementations/ugene/src/libs_3rdparty/QSpec/src/primitives/GTWidget.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
implementations/ugene/src/libs_3rdparty/QSpec/src/primitives/GTWidget.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2017 UniPro <[email protected]> * http://ugene.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 Foundation; either version 2 * ...
36.564039
164
0.658201
r-barnes
e2c17b66012062aa9824c0ee97aea7250fc91417
1,817
cc
C++
tools/traceline/traceline/assembler_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/traceline/traceline/assembler_unittest.cc
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/traceline/traceline/assembler_unittest.cc
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright (c) 2009 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 <stdio.h> #include "assembler.h" int main(int argc, char** argv) { char buf[1024]; CodeBuffer cb(buf); // Branching tests first so ...
21.630952
73
0.636214
zealoussnow
e2c2581c230d99a85295d58416f984ae1d900bc8
1,348
cpp
C++
tests/transform/Dct.cpp
ulikoehler/aquila
d5e3bde3c8d07678a95f225b657a7bb23d0c4730
[ "MIT" ]
361
2015-01-06T20:12:35.000Z
2022-03-29T01:58:49.000Z
tests/transform/Dct.cpp
ulikoehler/aquila
d5e3bde3c8d07678a95f225b657a7bb23d0c4730
[ "MIT" ]
30
2015-01-13T12:17:13.000Z
2021-06-03T14:12:10.000Z
tests/transform/Dct.cpp
ulikoehler/aquila
d5e3bde3c8d07678a95f225b657a7bb23d0c4730
[ "MIT" ]
112
2015-01-14T12:01:00.000Z
2022-03-29T06:42:00.000Z
#include "aquila/global.h" #include "aquila/transform/Dct.h" #include "UnitTest++/UnitTest++.h" #include <cstddef> #include <vector> SUITE(Dct) { TEST(AlternatingOnes) { const std::size_t SIZE = 4; const double testArray[SIZE] = {1.0, -1.0, 1.0, -1.0}; std::vector<double> vec(testArray...
26.96
67
0.575668
ulikoehler
e2c5da21e0c4be2c2cdde04b62a614c9b5c97567
605
cpp
C++
Game/Source/Boss.cpp
BooStarGamer/Makers-Vs-Players-v2
db7f32e978f682e55f9d2542ac5879f7137e40ff
[ "MIT" ]
null
null
null
Game/Source/Boss.cpp
BooStarGamer/Makers-Vs-Players-v2
db7f32e978f682e55f9d2542ac5879f7137e40ff
[ "MIT" ]
null
null
null
Game/Source/Boss.cpp
BooStarGamer/Makers-Vs-Players-v2
db7f32e978f682e55f9d2542ac5879f7137e40ff
[ "MIT" ]
null
null
null
#include "Boss.h" #include "App.h" #include "Textures.h" Boss::Boss() : Entity(EntityType::BOSS) { } Boss::Boss(BossClass bClass) : Entity(EntityType::BOSS) { bossClass = bClass; // LIFE -> ((x / 1.5) + 20) // STRG -> ((x / 2) + 8) // DEFS -> ((x / 4) + 2) nose // EXPR -> expActLvl + expNextLvl / 2 } Boss::~Bos...
16.805556
93
0.634711
BooStarGamer
e2c6d4dcf2ef538a5ee27808e7c3a82e63a97086
20,493
cxx
C++
resip/stack/Contents.cxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
1
2019-04-15T14:10:58.000Z
2019-04-15T14:10:58.000Z
resip/stack/Contents.cxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
null
null
null
resip/stack/Contents.cxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
2
2019-10-31T09:11:09.000Z
2021-09-17T01:00:49.000Z
#include <vector> #if defined(HAVE_CONFIG_H) #include "config.h" #endif #include "resip/stack/Contents.hxx" #include "rutil/ParseBuffer.hxx" #include "rutil/Logger.hxx" #include "resip/stack/OctetContents.hxx" #include "rutil/MD5Stream.hxx" #include "rutil/WinLeakCheck.hxx" using namespace resip; using namespace std...
28.0342
108
0.611819
dulton
e2c7250919917ab7e48d5f7a5ccb8bdb691ee30b
11,209
cpp
C++
droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp
MorS25/cvg_quadrotor_swarm
da75d02049163cf65fd7305bc46a16359a851c7c
[ "BSD-3-Clause" ]
null
null
null
droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp
MorS25/cvg_quadrotor_swarm
da75d02049163cf65fd7305bc46a16359a851c7c
[ "BSD-3-Clause" ]
null
null
null
droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp
MorS25/cvg_quadrotor_swarm
da75d02049163cf65fd7305bc46a16359a851c7c
[ "BSD-3-Clause" ]
null
null
null
////////////////////////////////////////////////////// // potencialFieldMap.cpp // // Created on: Jul 3, 2013 // Author: joselusl // // Last modification on: Oct 26, 2013 // Author: joselusl // ////////////////////////////////////////////////////// #include "potencialFieldMap.h" using namespace std; ...
21.514395
164
0.646356
MorS25
e2d33d0bd8b5d9b6fde3a5f8833ffda6bd1ff5a2
8,973
cc
C++
gazebo/rendering/selection_buffer/SelectionBuffer.cc
siconos/gazebo-siconos
612f6a78184cb95d5e7a6898c42003c4109ae3c6
[ "ECL-2.0", "Apache-2.0" ]
5
2017-07-14T19:36:51.000Z
2020-04-01T06:47:59.000Z
gazebo/rendering/selection_buffer/SelectionBuffer.cc
siconos/gazebo-siconos
612f6a78184cb95d5e7a6898c42003c4109ae3c6
[ "ECL-2.0", "Apache-2.0" ]
20
2017-07-20T21:04:49.000Z
2017-10-19T19:32:38.000Z
gazebo/rendering/selection_buffer/SelectionBuffer.cc
siconos/gazebo-siconos
612f6a78184cb95d5e7a6898c42003c4109ae3c6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2012-2016 Open Source Robotics Foundation * * 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...
32.046429
80
0.674134
siconos
e2d957adf0fc88c1af7466201525729df6da168a
731
cpp
C++
Cpp_Programs/lougu/oj/P1008.cpp
xiazeyu/OI_Resource
1de0ab9a84ee22ae4edb612ddeddc712c3c38e56
[ "Apache-2.0" ]
2
2018-10-01T09:03:35.000Z
2019-05-24T08:53:06.000Z
Cpp_Programs/lougu/oj/P1008.cpp
xiazeyu/OI_Resource
1de0ab9a84ee22ae4edb612ddeddc712c3c38e56
[ "Apache-2.0" ]
null
null
null
Cpp_Programs/lougu/oj/P1008.cpp
xiazeyu/OI_Resource
1de0ab9a84ee22ae4edb612ddeddc712c3c38e56
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <iostream> using namespace std; bool check(int a, int b, int c){ if((a > 999) || (b > 999) || (c > 999)) return false; int i; int t[10] = {0}; t[a % 10] = 1; t[(a % 100) / 10] = 1; t[a / 100] = 1; t[b % 10] = 1; t[(b % 100) / 10] = 1; ...
17
58
0.347469
xiazeyu
e2db74577ced00a689d0405635de3263496311e0
3,775
cpp
C++
algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp
shivamacs/LeetCode
f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a
[ "MIT" ]
null
null
null
algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp
shivamacs/LeetCode
f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a
[ "MIT" ]
null
null
null
algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp
shivamacs/LeetCode
f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a
[ "MIT" ]
null
null
null
/* Source - https://leetcode.com/problems/course-schedule-ii/ Author - Shivam Arora */ #include <bits/stdc++.h> using namespace std; bool dfs(vector<vector<int>>& graph, unordered_set<int>& visited, vector<bool>& recStack, stack<int>& st, int src) { visited.insert(src); recStack[src] = true; for(in...
24.673203
116
0.509934
shivamacs
e2dd208984ed94df4115b83769db56f19d659153
4,586
cpp
C++
services/sms_receive_indexer.cpp
openharmony-gitee-mirror/telephony_sms_mms
4f5eee78093bea8ca3198d54b5999ef889b52b19
[ "Apache-2.0" ]
null
null
null
services/sms_receive_indexer.cpp
openharmony-gitee-mirror/telephony_sms_mms
4f5eee78093bea8ca3198d54b5999ef889b52b19
[ "Apache-2.0" ]
null
null
null
services/sms_receive_indexer.cpp
openharmony-gitee-mirror/telephony_sms_mms
4f5eee78093bea8ca3198d54b5999ef889b52b19
[ "Apache-2.0" ]
1
2021-09-13T12:07:15.000Z
2021-09-13T12:07:15.000Z
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
23.639175
111
0.73986
openharmony-gitee-mirror
e2ddc96b8f612c794049531c117810a073c8de18
4,671
cpp
C++
app/genCSV.cpp
yukatayu/tentee_image_similarity
ae787c1b530483b30fdd152dbe51e8b50a1d9c5b
[ "MIT" ]
9
2020-05-07T17:30:04.000Z
2020-07-22T02:11:45.000Z
app/genCSV.cpp
yukatayu/tentee_image_similarity
ae787c1b530483b30fdd152dbe51e8b50a1d9c5b
[ "MIT" ]
null
null
null
app/genCSV.cpp
yukatayu/tentee_image_similarity
ae787c1b530483b30fdd152dbe51e8b50a1d9c5b
[ "MIT" ]
null
null
null
#include <iostream> #include <map> #include <vector> #include <utility> #include <string> #include <algorithm> #include <fstream> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <opencv2/opencv.hpp> #include <opencv2/features2d.hpp> #include <illust_image_similarity.hpp> using namespace illust_im...
32.213793
107
0.61079
yukatayu
e2de3d31e386a752773e0ca890b7840b971b84b9
43
cpp
C++
morse/DotNet/cellImageBuilders/Processes.cpp
jonnyzzz/phd-project
beab8615585bd52ef9ee1c19d1557e8c933c047a
[ "Apache-2.0" ]
1
2019-12-24T15:52:45.000Z
2019-12-24T15:52:45.000Z
morse/DotNet/cellImageBuilders/Processes.cpp
jonnyzzz/phd-project
beab8615585bd52ef9ee1c19d1557e8c933c047a
[ "Apache-2.0" ]
null
null
null
morse/DotNet/cellImageBuilders/Processes.cpp
jonnyzzz/phd-project
beab8615585bd52ef9ee1c19d1557e8c933c047a
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "Processes.h"
14.333333
22
0.72093
jonnyzzz
e2e0191f848a36905cd9e826c939e59b0ed66ac0
335
cc
C++
nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc
sepehr-laal/nofx
7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e
[ "MIT" ]
null
null
null
nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc
sepehr-laal/nofx
7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e
[ "MIT" ]
null
null
null
nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc
sepehr-laal/nofx
7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e
[ "MIT" ]
null
null
null
#include "nofx_ofGetUsingCustomTextureWrap.h" #include "ofTexture.h" namespace nofx { namespace ClassWrappers { NAN_METHOD(nofx_ofGetUsingCustomTextureWrap) { NanReturnValue(ofGetUsingCustomTextureWrap()); } // !nofx_ofGetUsingCustomTextureWrap } // !namespace ClassWrappers } // ...
25.769231
52
0.722388
sepehr-laal
e2e31c6b3373fb7ce53c18dcc608b4c927e31ddf
21,317
cpp
C++
kwset.cpp
h4ck3rm1k3/php-fss-FastStringSearch
2093d69f1b951add5354e5b722842edd9854d8cb
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
kwset.cpp
h4ck3rm1k3/php-fss-FastStringSearch
2093d69f1b951add5354e5b722842edd9854d8cb
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
kwset.cpp
h4ck3rm1k3/php-fss-FastStringSearch
2093d69f1b951add5354e5b722842edd9854d8cb
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
/* kwset.c - search for any of a set of keywords. Copyright 1989, 1998, 2000, 2005 Free Software Foundation, Inc. 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, or (at ...
27.05203
77
0.599381
h4ck3rm1k3
e2e3b44726b15ea0fa6726997db88f50fdcb0b6c
5,867
cpp
C++
src/sorting_network.cpp
afnaanhashmi/smt-switch
73dd8ccf3c737e6bcf214d9f967df4a16b437eb8
[ "BSD-3-Clause" ]
49
2018-02-20T12:47:28.000Z
2021-08-14T17:06:19.000Z
src/sorting_network.cpp
afnaanhashmi/smt-switch
73dd8ccf3c737e6bcf214d9f967df4a16b437eb8
[ "BSD-3-Clause" ]
117
2017-06-30T18:26:02.000Z
2021-08-17T19:50:18.000Z
src/sorting_network.cpp
afnaanhashmi/smt-switch
73dd8ccf3c737e6bcf214d9f967df4a16b437eb8
[ "BSD-3-Clause" ]
21
2019-10-10T22:22:03.000Z
2021-07-22T14:15:10.000Z
/********************* */ /*! \file sorting_network.cpp ** \verbatim ** Top contributors (to current version): ** Makai Mann ** This file is part of the smt-switch project. ** Copyright (c) 2020 by the authors listed in the file AUTHORS ** in the top-level source...
26.309417
122
0.63593
afnaanhashmi
e2eb0f892f50f04886c4aa27d03cc01a76b60bcd
2,264
cpp
C++
zap/src/zap.cpp
colugomusic/blockhead_fx
e03f493b76f8747aea5522d214f3e8c3bb404110
[ "MIT" ]
null
null
null
zap/src/zap.cpp
colugomusic/blockhead_fx
e03f493b76f8747aea5522d214f3e8c3bb404110
[ "MIT" ]
null
null
null
zap/src/zap.cpp
colugomusic/blockhead_fx
e03f493b76f8747aea5522d214f3e8c3bb404110
[ "MIT" ]
null
null
null
#include <rack++/module/smooth_param.h> #include <rack++/module/channel.h> #include <snd/misc.h> #include "zap.h" using namespace rack; using namespace std::placeholders; Zap::Zap() : BasicStereoEffect("Zap") { param_spread_ = add_smooth_param(0.0f, "Spread"); param_spread_->set_transform([](const ml::...
29.025641
79
0.699647
colugomusic
e2edde13f8bd56ca97d153ea6c610c7940641ed8
5,174
hpp
C++
eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp
lonfr/eagleye
8c5880827cd41ce62b6f2a1e2f10e90351bab19b
[ "BSD-3-Clause" ]
329
2020-03-19T00:41:00.000Z
2022-03-31T05:52:33.000Z
eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp
yxw027/eagleye
b5eab2fd162841d7be17ef320faf0bbd4f9627c4
[ "BSD-3-Clause" ]
22
2020-03-20T09:14:19.000Z
2022-03-24T23:47:55.000Z
eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp
yxw027/eagleye
b5eab2fd162841d7be17ef320faf0bbd4f9627c4
[ "BSD-3-Clause" ]
79
2020-03-19T03:08:29.000Z
2022-03-09T00:54:03.000Z
// 1 tab = 8 spaces /** * ID: GoogleEarthPath.hpp * EDITED: 23-09-2014 * AUTOR: Andres Gongora * * +------ Description: -----------------------------------------------------------+ * | | * | Class to store GPS coordinates in a Google Earth compatible KML file. | * | This can then be loaded a...
32.3375
111
0.473521
lonfr
e2f0970a4793179463cf01ac6c1cd4a28c13fce6
294
cpp
C++
codeforces/contests/round/622-div2/b.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
4
2020-10-05T19:24:10.000Z
2021-07-15T00:45:43.000Z
codeforces/contests/round/622-div2/b.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
codeforces/contests/round/622-div2/b.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
#include <cpplib/stdinc.hpp> int32_t main(){ desync(); int t; cin >> t; while(t--){ int n, x, y; cin >> n >> x >> y; int lo = min(n, 1+max((int)0, (x+y)-n)); int hi = min(n, x+y-1); cout << lo << ' ' << hi << endl; } return 0; }
18.375
48
0.394558
tysm
e2f1d06519c6d2cd8e39dd1e185e10a2c047a274
4,112
cc
C++
tests/test_puzzle_private.cc
joshleeb/Sudoku
4e20ea1e7b1f39280b44bb1f0101c1bc4378f5cc
[ "MIT" ]
null
null
null
tests/test_puzzle_private.cc
joshleeb/Sudoku
4e20ea1e7b1f39280b44bb1f0101c1bc4378f5cc
[ "MIT" ]
null
null
null
tests/test_puzzle_private.cc
joshleeb/Sudoku
4e20ea1e7b1f39280b44bb1f0101c1bc4378f5cc
[ "MIT" ]
null
null
null
#include <vector> #include <catch/catch.hpp> #define private public #include "../src/puzzle.h" SCENARIO("getting available moves", "[puzzle]") { GIVEN("a puzzle with a valid 9x9 board") { std::vector<int> expected_moves{}; puzzle new_puzzle(std::vector<int>{ 5, 3, -1, -1, 7, -1, -1...
31.875969
79
0.514835
joshleeb
e2f2ef30eee8ee1f57f2d867a14644b8ba1910f4
939
cpp
C++
third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLineClamp.cpp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLineClamp.cpp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLineClamp.cpp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// 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 "core/css/properties/CSSPropertyAPIWebkitLineClamp.h" #include "core/css/parser/CSSPropertyParserHelpers.h" class CSSParserLocalContext; namesp...
33.535714
78
0.765708
metux
e2f4e5d6fd6503f904d0b2a84f5d395f65b78a0c
473
cpp
C++
C++/Sorting/insertion_sort.cpp
mrjayantk237/Hacktober_Fest_2021
6dcd022a7116b81310534dcd0da8d66c185ac410
[ "MIT" ]
21
2021-10-02T14:14:33.000Z
2022-01-12T16:27:49.000Z
C++/Sorting/insertion_sort.cpp
mrjayantk237/Hacktober_Fest_2021
6dcd022a7116b81310534dcd0da8d66c185ac410
[ "MIT" ]
11
2021-10-03T15:02:56.000Z
2021-10-30T17:42:37.000Z
C++/Sorting/insertion_sort.cpp
mrjayantk237/Hacktober_Fest_2021
6dcd022a7116b81310534dcd0da8d66c185ac410
[ "MIT" ]
64
2021-10-02T09:20:19.000Z
2021-10-31T20:21:01.000Z
#include <iostream> using namespace std; int main(void) { int n; cin >> n; int a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 1; i < n; i++) { int temp = a[i]; int j = i - 1; while (j >= 0 && a[j] > temp) { a[j + 1] = ...
15.766667
37
0.312896
mrjayantk237
e2f70fecbc94632b3e8635ec2962c9468f336e2a
2,588
cpp
C++
Olimpiada/2013/betasah.cpp
rlodina99/Learn_cpp
0c5bd9e6c52ca21e2eb95eb91597272ddc842c08
[ "MIT" ]
null
null
null
Olimpiada/2013/betasah.cpp
rlodina99/Learn_cpp
0c5bd9e6c52ca21e2eb95eb91597272ddc842c08
[ "MIT" ]
null
null
null
Olimpiada/2013/betasah.cpp
rlodina99/Learn_cpp
0c5bd9e6c52ca21e2eb95eb91597272ddc842c08
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <climits> using namespace std; int main(){ ifstream f("betasah.in"); int n,d,k; f >> n >> d >> k; int mat[n][n]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ mat[i][j]=0; } } for(int i=0;i<n;i++){ for(int j=n-1;j>i;j--){ mat[i][j]=9; } } in...
15.046512
38
0.362056
rlodina99
e2f97cc2ae6712cf8bf511039949bd6b92a0ce39
111
cpp
C++
src/MileStone.cpp
arpit/Helios
433692e7ed8b4be2c7fe29781f18d0f9b68c5ee3
[ "MIT" ]
1
2017-10-21T04:27:19.000Z
2017-10-21T04:27:19.000Z
src/MileStone.cpp
arpit/Helios
433692e7ed8b4be2c7fe29781f18d0f9b68c5ee3
[ "MIT" ]
null
null
null
src/MileStone.cpp
arpit/Helios
433692e7ed8b4be2c7fe29781f18d0f9b68c5ee3
[ "MIT" ]
null
null
null
// // MileStone.cpp // StartupsViz // // Created by Mathur, Arpit on 7/18/13. // // #include "MileStone.h"
11.1
40
0.603604
arpit
e2fd2b9e121b52834370eaba288ccfb959c9505a
1,405
hpp
C++
source/oc/ocEngine/Components/ocComponentAllocator.hpp
mackron/openchernobyl
47c854ce37e1c361b184e29a59e4881a6faa387c
[ "BSD-3-Clause" ]
2
2021-05-24T21:18:13.000Z
2021-12-20T07:21:20.000Z
source/oc/ocEngine/Components/ocComponentAllocator.hpp
openchernobyl/openchernobyl
47c854ce37e1c361b184e29a59e4881a6faa387c
[ "BSD-3-Clause" ]
null
null
null
source/oc/ocEngine/Components/ocComponentAllocator.hpp
openchernobyl/openchernobyl
47c854ce37e1c361b184e29a59e4881a6faa387c
[ "BSD-3-Clause" ]
null
null
null
// Copyright (C) 2018 David Reid. See included LICENSE file. typedef ocComponent* (* ocCreateComponentProc)(ocEngineContext* pEngine, ocComponentType type, ocWorldObject* pObject, void* pUserData); typedef void (* ocDeleteComponentProc)(ocComponent* pComponent, void* pUserData); struct ocComponentAllocatorIns...
37.972973
175
0.814235
mackron
e2fd49c1a4ad988db34e8acb9d050ed78d2ee2bb
6,653
cpp
C++
book_samples/opencl_interop/my_vx_tensor_map_impl.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
220
2016-03-20T00:48:58.000Z
2022-03-31T09:46:21.000Z
book_samples/opencl_interop/my_vx_tensor_map_impl.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
28
2016-06-16T19:17:41.000Z
2021-09-16T16:19:18.000Z
book_samples/opencl_interop/my_vx_tensor_map_impl.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
84
2016-03-24T01:13:07.000Z
2022-03-22T04:37:03.000Z
/* * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and...
35.57754
110
0.620171
jwinarske
c3b3be02cd5e6b18b4c670130f18b31ae9fcae99
20,235
cxx
C++
test/unit/config/config_test.cxx
ANSAKsoftware/ansak-lib
93eff12a50464f3071b27c8eb16336f93d0d04c6
[ "BSD-2-Clause" ]
null
null
null
test/unit/config/config_test.cxx
ANSAKsoftware/ansak-lib
93eff12a50464f3071b27c8eb16336f93d0d04c6
[ "BSD-2-Clause" ]
null
null
null
test/unit/config/config_test.cxx
ANSAKsoftware/ansak-lib
93eff12a50464f3071b27c8eb16336f93d0d04c6
[ "BSD-2-Clause" ]
null
null
null
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2015, Arthur N. Klassen // 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. Redistributions...
35.437828
91
0.586064
ANSAKsoftware
c3b63176a0f1f33169a106afa3ff6f16cfedada4
1,770
hpp
C++
modules/sdk/include/nt2/sdk/config/compiler/report.hpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/sdk/include/nt2/sdk/config/compiler/report.hpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/sdk/include/nt2/sdk/config/compiler/report.hpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
/******************************************************************************* * Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II * Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI * * Distributed under the Boost Software License, Version 1.0. * ...
35.4
80
0.472881
brycelelbach
c3b899b877daa6a822136cf309b6e165c4c3e3dc
2,820
cpp
C++
sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp
wirx6/LLGL
2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee
[ "BSD-3-Clause" ]
null
null
null
sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp
wirx6/LLGL
2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee
[ "BSD-3-Clause" ]
null
null
null
sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp
wirx6/LLGL
2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee
[ "BSD-3-Clause" ]
null
null
null
/* * D3D12CommandContext.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "D3D12CommandContext.h" #include "../D3D12Resource.h" #include "../../DXCommon/DXCore.h" namespace LLGL { void D3D12CommandContext::Set...
27.647059
122
0.669149
wirx6
c3b9a85b1d2b939baf36f5aa43b50e021a7dc906
115
hpp
C++
gtrc_vehicles/CfgAmmo.hpp
kzfoxx/GTRC-Framework
e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6
[ "MIT" ]
null
null
null
gtrc_vehicles/CfgAmmo.hpp
kzfoxx/GTRC-Framework
e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6
[ "MIT" ]
null
null
null
gtrc_vehicles/CfgAmmo.hpp
kzfoxx/GTRC-Framework
e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6
[ "MIT" ]
null
null
null
class CfgAmmo { class BulletBase; class Gatling_30mm_HE_Plane_CAS_01_F: BulletBase { caliber = 6; }; };
16.428571
52
0.695652
kzfoxx
c3bba75286889988256e08f90493166842347443
7,911
cpp
C++
src/Mesh.cpp
akoylasar/PBR
17e6197fb5357220e2f1454898a18f8890844d4d
[ "MIT" ]
null
null
null
src/Mesh.cpp
akoylasar/PBR
17e6197fb5357220e2f1454898a18f8890844d4d
[ "MIT" ]
null
null
null
src/Mesh.cpp
akoylasar/PBR
17e6197fb5357220e2f1454898a18f8890844d4d
[ "MIT" ]
null
null
null
/* * Copyright (c) Fouad Valadbeigi ([email protected]) */ #include "Mesh.hpp" #include <cmath> #include "Debug.hpp" namespace Akoylasar { constexpr double kTwoPi = Neon::kPi * 2.0; std::unique_ptr<Mesh> Mesh::buildSphere(double radius, unsigned int hSegments, ...
36.456221
137
0.551511
akoylasar
c3bc07d4fdcc84118cefbbc09dcf758bd40f825b
2,567
cpp
C++
NaoTHSoccer/Source/Cognition/Modules/Behavior/XABSLBehaviorControl/Symbols/PathSymbols.cpp
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
NaoTHSoccer/Source/Cognition/Modules/Behavior/XABSLBehaviorControl/Symbols/PathSymbols.cpp
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
NaoTHSoccer/Source/Cognition/Modules/Behavior/XABSLBehaviorControl/Symbols/PathSymbols.cpp
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
/** * @file PathSymbols.cpp * * @author <a href="mailto:[email protected]">Yigit Can Akcay</a> */ #include "PathSymbols.h" void PathSymbols::registerSymbols(xabsl::Engine& engine) { // PathPlanner2018Routine engine.registerEnumElement("path2018.routine", "path2018.routine.none", static_cast<...
45.035088
160
0.781457
BerlinUnited
c3c0b8d89474801267ed5e37059dfe1f44fc8778
730
cpp
C++
src/utils/InetUtils.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
4
2021-09-12T00:13:04.000Z
2022-02-19T11:18:33.000Z
src/utils/InetUtils.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
null
null
null
src/utils/InetUtils.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
null
null
null
#include "InetUtils.h" //----------------------------------------------------------------------------- #ifdef _WIN32 #include <winsock2.h> #else #include <arpa/inet.h> #endif //----------------------------------------------------------------------------- namespace ratel { //-----------------------------------...
30.416667
80
0.217808
GbaLog
c3c2d1148cb620429b9719256d6d9f3ddf63bfaa
3,800
hpp
C++
src/decoders/novatel/api/separator.hpp
novatel/novatel_edie
d212681f1952704e50e9c8977891dd024c3338ae
[ "MIT" ]
3
2021-05-04T21:14:18.000Z
2021-07-23T17:19:54.000Z
src/decoders/novatel/api/separator.hpp
novatel/novatel_edie
d212681f1952704e50e9c8977891dd024c3338ae
[ "MIT" ]
1
2022-03-07T18:04:18.000Z
2022-03-07T18:04:18.000Z
src/decoders/novatel/api/separator.hpp
novatel/novatel_edie
d212681f1952704e50e9c8977891dd024c3338ae
[ "MIT" ]
2
2021-05-04T21:18:25.000Z
2021-06-24T08:51:43.000Z
//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020 NovAtel Inc. // // 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 restrictio...
34.862385
122
0.629737
novatel
c3c872072f41504807f429c006e910bd912f2276
7,574
cpp
C++
without_vtk.cpp
Harold2017/texture_mapping
c8aca1e9d30fd53e1f15be937aec2c53993bc371
[ "MIT" ]
1
2022-01-10T07:51:40.000Z
2022-01-10T07:51:40.000Z
without_vtk.cpp
Harold2017/texture_mapping
c8aca1e9d30fd53e1f15be937aec2c53993bc371
[ "MIT" ]
null
null
null
without_vtk.cpp
Harold2017/texture_mapping
c8aca1e9d30fd53e1f15be937aec2c53993bc371
[ "MIT" ]
null
null
null
// // Created by Harold on 2021/11/17. // #pragma warning(disable : 4996) #pragma warning(disable : 4819) #include <boost/filesystem.hpp> #include <boost/thread/thread.hpp> #include <pcl/common/transforms.h> #include <pcl/features/normal_3d.h> #include <pcl/io/obj_io.h> #include <pcl/io/ply_io.h> #include <pcl/kdtre...
30.175299
194
0.632691
Harold2017
c3cb58cdc2d1f73b3dd9d6d5ca786bdfef916b08
2,134
hxx
C++
main/vcl/inc/unx/salstd.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/vcl/inc/unx/salstd.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/vcl/inc/unx/salstd.hxx
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...
28.837838
79
0.676664
Grosskopf
c3cd2c2feb1535207804a141f2d25998822e240a
993
cpp
C++
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut
aabedb5cb108513173951a5fc86ad589e7c8ccbc
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut
aabedb5cb108513173951a5fc86ad589e7c8ccbc
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut
aabedb5cb108513173951a5fc86ad589e7c8ccbc
[ "MIT" ]
null
null
null
#include "tic_tac_toe_manager.h" TicTacToeManager::TicTacToeManager(TicTacToeData & data) { games = data.get_games(); for (auto& game : games) { update_winner_count(game->get_winner()); } } void TicTacToeManager::save_game(unique_ptr<TicTacToe> & game) { update_winner_count(game->get_winner()); games.push_b...
16.55
69
0.632427
acc-cosc-1337-spring-2020
c3ce1e2623ad89e78d9d3b8d43b3f82b4a3530b8
1,809
cpp
C++
src/res/animation.cpp
crockeo/cpp-whatisthisgame
90fe2f69f380635050aa746f280288aa0b7c5f54
[ "MIT" ]
null
null
null
src/res/animation.cpp
crockeo/cpp-whatisthisgame
90fe2f69f380635050aa746f280288aa0b7c5f54
[ "MIT" ]
1
2015-02-02T02:08:02.000Z
2015-02-02T04:48:27.000Z
src/res/animation.cpp
crockeo/cpp-whatisthisgame
90fe2f69f380635050aa746f280288aa0b7c5f54
[ "MIT" ]
null
null
null
#include "animation.hpp" ////////// // Code // // Calculating the current frame index. unsigned int Animation::calcCurrentFrameIndex() const { int frame = this->timer->getTime() / frameLength; if (frame >= this->textures.size()) return this->textures.size() - 1; return frame; } // Creating a new ...
31.736842
89
0.688778
crockeo
c3cf5d9e6bcddc9dd28be593bfab79b214d31f3a
885
cpp
C++
src/LWM2MObject.cpp
Tanganelli/LWM2MEmbedded
19a2c5d4edc84a0d91e388b5a789fda8e6142956
[ "MIT" ]
1
2018-04-03T14:58:12.000Z
2018-04-03T14:58:12.000Z
src/LWM2MObject.cpp
Tanganelli/LWM2MEmbedded
19a2c5d4edc84a0d91e388b5a789fda8e6142956
[ "MIT" ]
1
2017-03-21T14:58:16.000Z
2017-03-23T12:28:09.000Z
src/LWM2MObject.cpp
Tanganelli/LWM2MEmbedded
19a2c5d4edc84a0d91e388b5a789fda8e6142956
[ "MIT" ]
null
null
null
// // Created by jacko on 20/01/17. // #include "LWM2MObject.h" char *LWM2MObject::getObjectName() const { return ObjectName; } void LWM2MObject::setObjectName(char *ObjectName) { LWM2MObject::ObjectName = ObjectName; } ObjectIDType LWM2MObject::getObjectID() const { return ObjectID; } void LWM2MObject...
21.071429
75
0.728814
Tanganelli
c3d326ab78155934dfa9180a0789d3b8f2f6b7c6
1,139
cpp
C++
src/erhe/scene/viewport.cpp
tksuoran/erhe
07d1ea014e1675f6b09bff0d9d4f3568f187e0d8
[ "Apache-2.0" ]
36
2021-05-03T10:47:49.000Z
2022-03-19T12:54:03.000Z
src/erhe/scene/viewport.cpp
tksuoran/erhe
07d1ea014e1675f6b09bff0d9d4f3568f187e0d8
[ "Apache-2.0" ]
29
2020-05-17T08:26:31.000Z
2022-03-27T08:52:47.000Z
src/erhe/scene/viewport.cpp
tksuoran/erhe
07d1ea014e1675f6b09bff0d9d4f3568f187e0d8
[ "Apache-2.0" ]
2
2022-01-24T09:24:37.000Z
2022-01-31T20:45:36.000Z
#include "erhe/scene/viewport.hpp" #include "erhe/scene/log.hpp" #include "erhe/toolkit/math_util.hpp" namespace erhe::scene { auto Viewport::unproject( const glm::mat4 world_from_clip, const glm::vec3 window, const float depth_range_near, const float depth_range_far ) const -> std::optional<g...
24.234043
50
0.653205
tksuoran
c3d4c33e716e4cdf985d257ad205ba50d2611cf5
14,473
cxx
C++
PROPOSAL/private/PROPOSAL/scattering/Coefficients.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
PROPOSAL/private/PROPOSAL/scattering/Coefficients.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
PROPOSAL/private/PROPOSAL/scattering/Coefficients.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#include "PROPOSAL/scattering/Coefficients.h" //----------------------------------------------------------------------------// //-----------------------------Coefficients-----------------------------------// //---for calculating the power series approximation of the moliere function---// //---------------------------...
66.695853
101
0.453396
hschwane
c3d5eccc073a19a5adb856e00c78d3e4d7a410af
8,567
cpp
C++
LMS7002M/lms7suite/controlPanelGUI/fft/PlotUpdateThread.cpp
myriadrf/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
14
2015-01-16T17:01:05.000Z
2020-10-31T17:52:53.000Z
LMS7002M/lms7suite/controlPanelGUI/fft/PlotUpdateThread.cpp
serojik91/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
null
null
null
LMS7002M/lms7suite/controlPanelGUI/fft/PlotUpdateThread.cpp
serojik91/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
12
2015-02-01T23:32:31.000Z
2021-01-09T16:34:51.000Z
/** @file PlotUpdateThread.cpp @author Lime Microsystems @brief Class for updating fft data plots */ #include "PlotUpdateThread.h" #include <stdio.h> #include "pnlFFTviewer.h" #include "CommonUtilities.h" #include "SamplesCollector.h" #include <vector> #include <wx/time.h> using namespace std; const int CHANNEL_COUNT...
34.967347
159
0.514883
myriadrf
c3daccd7cb4ce0df04859e39032c133934ccc4d2
77,794
cpp
C++
src/vm/vm8051.cpp
koalajack/koalachain
84b5d5351072947f79f982ca24666047e955df3d
[ "MIT" ]
null
null
null
src/vm/vm8051.cpp
koalajack/koalachain
84b5d5351072947f79f982ca24666047e955df3d
[ "MIT" ]
null
null
null
src/vm/vm8051.cpp
koalajack/koalachain
84b5d5351072947f79f982ca24666047e955df3d
[ "MIT" ]
null
null
null
// ComDirver.cpp: implementation of the CComDirver class. // ////////////////////////////////////////////////////////////////////// #include "vm8051.h" #include <stdio.h> #include <string.h> #include <assert.h> #include "hash.h" #include "key.h" #include "main.h" #include <openssl/des.h> #include <vector> #include "...
22.138304
117
0.639098
koalajack
c3debfa947362fdc46cb23f328eb5e9f0e5ce3cf
3,561
cpp
C++
src/CoordinateAxes.cpp
sosswald/gpu-coverage
da36062272244573abd938996d8cb6ecd25a55e7
[ "BSD-3-Clause" ]
2
2018-09-17T15:21:06.000Z
2020-03-27T11:57:04.000Z
src/CoordinateAxes.cpp
sosswald/gpu-coverage
da36062272244573abd938996d8cb6ecd25a55e7
[ "BSD-3-Clause" ]
null
null
null
src/CoordinateAxes.cpp
sosswald/gpu-coverage
da36062272244573abd938996d8cb6ecd25a55e7
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2018, Stefan Osswald * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of cond...
35.969697
89
0.693906
sosswald
c3e22d21312e99e2f44ae8bab67b83bd52ad148d
4,403
cpp
C++
plugin/plugin_guide/snippets/dicom_menus/milxQtDICOMPlugin.cpp
aneube/smili-spine
3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b
[ "BSD-2-Clause" ]
17
2015-03-09T19:22:07.000Z
2021-05-24T20:25:08.000Z
plugin/plugin_guide/snippets/dicom_menus/milxQtDICOMPlugin.cpp
aneube/smili-spine
3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b
[ "BSD-2-Clause" ]
16
2015-08-20T03:30:15.000Z
2019-10-22T12:21:14.000Z
plugin/plugin_guide/snippets/dicom_menus/milxQtDICOMPlugin.cpp
aneube/smili-spine
3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b
[ "BSD-2-Clause" ]
11
2015-06-22T00:11:01.000Z
2021-12-26T21:29:52.000Z
#include "milxQtDICOMPlugin.h" #include <qplugin.h> milxQtDICOMPlugin::milxQtDICOMPlugin(QObject *theParent) : milxQtPluginInterface(theParent) { ///Up cast parent to milxQtMain MainWindow = qobject_cast<milxQtMain *>(theParent); //~ threaded = false; //~ dockable = false; //~ consoleWindow = fal...
23.8
116
0.691801
aneube
c3e4981b41e0c9b7d965a3bbdabb4985ca86dbe3
548
cpp
C++
excercise_book/task_1_1/main.cpp
bartekpacia/cpp-training
ec0b6c3ca4d2590e05df647d597ced94fed922af
[ "MIT" ]
null
null
null
excercise_book/task_1_1/main.cpp
bartekpacia/cpp-training
ec0b6c3ca4d2590e05df647d597ced94fed922af
[ "MIT" ]
null
null
null
excercise_book/task_1_1/main.cpp
bartekpacia/cpp-training
ec0b6c3ca4d2590e05df647d597ced94fed922af
[ "MIT" ]
null
null
null
/** * Task 1.1 * Write a program calculating area of the rectangle. The * values of sides a and b are float, so is the area. Display * the result with precision of two decimal places. **/ #include <iomanip> #include <iostream> using namespace std; int main() { float a, b, area; cout << "Enter side a" <<...
19.571429
61
0.587591
bartekpacia
c3ef135143b457c16bc80960ba3b059435f2efb5
6,127
cpp
C++
src/burner/win32/memcard.cpp
tt-arcade/fba-pi
10407847a98f0d315b05e44f0ecf01824f4558aa
[ "Apache-2.0" ]
null
null
null
src/burner/win32/memcard.cpp
tt-arcade/fba-pi
10407847a98f0d315b05e44f0ecf01824f4558aa
[ "Apache-2.0" ]
null
null
null
src/burner/win32/memcard.cpp
tt-arcade/fba-pi
10407847a98f0d315b05e44f0ecf01824f4558aa
[ "Apache-2.0" ]
null
null
null
// Memory card support module #include "burner.h" static TCHAR szMemoryCardFile[MAX_PATH]; int nMemoryCardStatus = 0; int nMemoryCardSize; static int nMinVersion; static bool bMemCardFC1Format; static int MakeOfn() { memset(&ofn, 0, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = hScrnWnd; ofn.lps...
19.764516
99
0.651053
tt-arcade
c3f115478d76be5a926b96e26b94ac3fae57330a
1,027
cpp
C++
Dataset/Leetcode/train/13/208.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/13/208.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/13/208.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: int XXX(string s) { if(s.find("IV")!=s.npos) s = s.replace(s.find("IV"),2,"a"); if (s.find("IX") != s.npos) s = s.replace(s.find("IX"), 2, "b"); if (s.find("XL") != s.npos) s = s.replace(s.find("XL"), 2, "c"); if (s.find("XC") != s.npos) s = s.replace(s.find("XC"), 2, "d"); ...
16.046875
38
0.447907
kkcookies99
c3f73f9cba29aeb9b9bb27693805d0b332995276
2,933
hpp
C++
include/jbr/reg/var/perm/Rights.hpp
j-bruel/Register
4fa991ed86fedb3883514031e51dc62057d0abd0
[ "MIT" ]
null
null
null
include/jbr/reg/var/perm/Rights.hpp
j-bruel/Register
4fa991ed86fedb3883514031e51dc62057d0abd0
[ "MIT" ]
null
null
null
include/jbr/reg/var/perm/Rights.hpp
j-bruel/Register
4fa991ed86fedb3883514031e51dc62057d0abd0
[ "MIT" ]
1
2019-05-06T14:12:44.000Z
2019-05-06T14:12:44.000Z
//! //! @file jbr/reg/var/perm/Rights.hpp //! @author jbruel //! @date 30/07/19 //! #ifndef JBR_CREGISTER_REGISTER_VAR_PERM_RIGHTS_HPP # define JBR_CREGISTER_REGISTER_VAR_PERM_RIGHTS_HPP # include <jbr/reg/Permission.hpp> //! //! @namespace jbr::reg::var::perm //! namespace jbr::reg::var::perm { //! //! @st...
38.592105
122
0.475963
j-bruel
c3fa7a9f74907ae5ec230fd9742c729e637b4c31
446
cpp
C++
solutions/leetcode/944. Delete Columns to Make Sorted.cpp
MohanedAshraf/competitive-programming
234dc6113b39462c64a2719cd1071f3d99655508
[ "MIT" ]
1
2021-08-12T14:53:37.000Z
2021-08-12T14:53:37.000Z
solutions/leetcode/944. Delete Columns to Make Sorted.cpp
MohanedAshraf/competitive-programming
234dc6113b39462c64a2719cd1071f3d99655508
[ "MIT" ]
null
null
null
solutions/leetcode/944. Delete Columns to Make Sorted.cpp
MohanedAshraf/competitive-programming
234dc6113b39462c64a2719cd1071f3d99655508
[ "MIT" ]
null
null
null
static int __=[](){std::ios::sync_with_stdio(false);return 1000;}(); class Solution { public: int minDeletionSize(vector<string>& strs) { int c = 0 , n = strs.size() , m = strs[0].size() ; for(int i= 0 ; i<m ; i++) for(int j = 0; j<n-1 ; j++ ) if(strs[j...
24.777778
68
0.392377
MohanedAshraf
c3ff4561c82896407cd33ef4b603f6fbcf689245
601
cc
C++
pressureCtrlAlg/bagSimModel.cc
gerth2/piUserInterface
9b79cbe71654c404894eac511e54581d4d9cf8ab
[ "MIT" ]
null
null
null
pressureCtrlAlg/bagSimModel.cc
gerth2/piUserInterface
9b79cbe71654c404894eac511e54581d4d9cf8ab
[ "MIT" ]
null
null
null
pressureCtrlAlg/bagSimModel.cc
gerth2/piUserInterface
9b79cbe71654c404894eac511e54581d4d9cf8ab
[ "MIT" ]
null
null
null
#include "bagSimModel.h" #define Ts 0.01 #define PWM_TO_POS_SCALE 0.01 #define BAG_MAX_VOL 1.0 #define BAG_MIN_VOL 0.25 //Expected flow vs. Pressure // PSI 2 5 10 15 20 25 30 // kPa 13.7 34.5 68.9 103 138 172 206 // Flow (CFM) 40.5 63.5 79.6 108 126 144 162...
22.259259
83
0.625624
gerth2
7f010c257f9e8d50c312d8d5dd31661136ac1ee7
243
cpp
C++
Basic/Check Whether a Number is Even or Odd/SolutionByRegi.cpp
Mdanish777/Programmers-Community
b5ca9582fc1cd4337baa7077ff62130a1052583f
[ "MIT" ]
2
2019-09-21T21:18:13.000Z
2019-09-28T14:26:56.000Z
Basic/Check Whether a Number is Even or Odd/SolutionByRegi.cpp
Mdanish777/Programmers-Community
b5ca9582fc1cd4337baa7077ff62130a1052583f
[ "MIT" ]
14
2019-09-23T07:25:27.000Z
2019-09-30T09:35:01.000Z
Basic/Check Whether a Number is Even or Odd/SolutionByRegi.cpp
Mdanish777/Programmers-Community
b5ca9582fc1cd4337baa7077ff62130a1052583f
[ "MIT" ]
13
2019-09-21T16:43:56.000Z
2019-09-30T15:28:33.000Z
#include <iostream> #include <string> bool IsEven(int num) { return (num % 2 == 0); } int main() { int num; std::cout << "Enter a number: "; std::cin >> num; std::cout << num << " is " << (IsEven(num) ? "Even" : "Odd") << "\n"; }
16.2
71
0.514403
Mdanish777
7f016362cc0d9f086ec0a4838d2dbe0579de879f
905
cpp
C++
Week13/natsia_and_good_arrays.cpp
princesinghtomar/Competitive-Programming
a0df818dfa56267fdde59bd1862d0b78f6e069c4
[ "MIT" ]
3
2020-11-11T13:45:40.000Z
2021-07-20T11:53:34.000Z
Week13/natsia_and_good_arrays.cpp
princesinghtomar/Competitive-Programming
a0df818dfa56267fdde59bd1862d0b78f6e069c4
[ "MIT" ]
11
2020-10-03T14:26:35.000Z
2021-10-30T15:26:40.000Z
Week13/natsia_and_good_arrays.cpp
princesinghtomar/Competitive-Programming
a0df818dfa56267fdde59bd1862d0b78f6e069c4
[ "MIT" ]
12
2020-05-12T08:39:54.000Z
2021-10-30T14:56:27.000Z
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin>>t; while(t--){ int n; cin >> n; int sindex = 0,k=0; long int arr[n]; long int brr[n][4]; for(int i=0;i<n;i++){ cin>>arr...
23.815789
104
0.345856
princesinghtomar
7f074d834191471a61d7643bb518b3420de42043
10,520
cpp
C++
qtdeclarative/src/quick/designer/qquickdesignercustomobjectdata.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
qtdeclarative/src/quick/designer/qquickdesignercustomobjectdata.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
qtdeclarative/src/quick/designer/qquickdesignercustomobjectdata.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtQuick module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid comme...
36.655052
164
0.684411
wgnet
7f0adede716cb763e559b3e8d4533efb7a003b74
524
cpp
C++
Payoffs.cpp
ThibaultLacharme/tddc_pde_solver
c735ff4aff8a9cba33ed86c59b1fcd569745b74f
[ "BSD-3-Clause" ]
null
null
null
Payoffs.cpp
ThibaultLacharme/tddc_pde_solver
c735ff4aff8a9cba33ed86c59b1fcd569745b74f
[ "BSD-3-Clause" ]
null
null
null
Payoffs.cpp
ThibaultLacharme/tddc_pde_solver
c735ff4aff8a9cba33ed86c59b1fcd569745b74f
[ "BSD-3-Clause" ]
null
null
null
#include "Payoffs.hpp" #include <algorithm> namespace dauphine { Payoffs::Payoffs() { } // For other products add the corresponding function at maturity, if there are more arguments than the spot and strike adjust the function in Boundaries too double Payoffs::call(double spot, double strike) ...
22.782609
160
0.627863
ThibaultLacharme
7f0baa544b7b060deb320c8cf061d5094f8be324
1,026
cpp
C++
src/tools/character_padding.cpp
bidfx/bidfx-api-cpp
9f178178a90355f57477f27277f470c910263696
[ "Apache-2.0" ]
5
2020-06-13T08:26:53.000Z
2022-02-25T19:32:55.000Z
src/tools/character_padding.cpp
bidfx/bidfx-api-cpp
9f178178a90355f57477f27277f470c910263696
[ "Apache-2.0" ]
2
2020-03-08T16:07:46.000Z
2020-04-15T08:26:08.000Z
src/tools/character_padding.cpp
bidfx/bidfx-api-cpp
9f178178a90355f57477f27277f470c910263696
[ "Apache-2.0" ]
1
2020-06-13T10:52:46.000Z
2020-06-13T10:52:46.000Z
/** Copyright 2019 BidFX 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 w...
27
117
0.703704
bidfx
7f17e6c64789dd102403d3119f4f4374d892b6c0
250
cpp
C++
Programs/14 Recursion/basics/power.cpp
Lord-Lava/DSA-CPP-Apna-College
077350c2aa900bb0cdb137ece2b95be58ccd76a8
[ "MIT" ]
5
2021-04-04T18:39:14.000Z
2021-12-18T09:31:55.000Z
Programs/14 Recursion/basics/power.cpp
Lord-Lava/DSA-CPP-Apna-College
077350c2aa900bb0cdb137ece2b95be58ccd76a8
[ "MIT" ]
null
null
null
Programs/14 Recursion/basics/power.cpp
Lord-Lava/DSA-CPP-Apna-College
077350c2aa900bb0cdb137ece2b95be58ccd76a8
[ "MIT" ]
1
2021-09-26T11:01:26.000Z
2021-09-26T11:01:26.000Z
#include<iostream> using namespace std; int power(int n, int p){ if(p==0){ return 1; } int prevPower= power(n,p-1); return n*prevPower; } int main(){ int n,p; cin>>n>>p; cout<<power(n,p)<<endl; return 0; }
12.5
32
0.536
Lord-Lava
7f18fbfcc1328db12e9a61606cc699f7a6e45aa8
1,909
cpp
C++
DirectXGame/DirectXCore/Sprite.cpp
nguyenlamlll/DirectX-11-Game
560ae6d9b44cef7882c5fc93192160fae7da791d
[ "MIT" ]
2
2018-09-13T06:15:57.000Z
2021-09-08T02:32:11.000Z
DirectXGame/DirectXCore/Sprite.cpp
nguyenlamlll/DirectX-11-Game
560ae6d9b44cef7882c5fc93192160fae7da791d
[ "MIT" ]
17
2018-09-11T09:37:22.000Z
2018-12-04T07:56:49.000Z
DirectXGame/DirectXCore/Sprite.cpp
nguyenlamlll/DirectX-11-Game
560ae6d9b44cef7882c5fc93192160fae7da791d
[ "MIT" ]
1
2021-11-29T05:12:48.000Z
2021-11-29T05:12:48.000Z
#include "stdafx.h" #include "Sprite.h" using Microsoft::WRL::ComPtr; using namespace DirectXCore; Sprite::Sprite() { } Sprite::Sprite(DirectXCore::DeviceResources * _deviceResource, const wchar_t * _charPath, float _scale) { //pivot.x = float(spriteDesc.Width / 2); pivot.x = 0; //pivot.y = float(spriteDesc.Heigh...
26.887324
173
0.698271
nguyenlamlll
7f191646403c7c058cf767d25184395b8d0a7d88
6,270
cpp
C++
build/cpp/src/verb/core/SurfacePoint.cpp
harmanpa/verb
f18a6db8d9e47b65d7cbf2d954a9dc42f611abd9
[ "MIT" ]
null
null
null
build/cpp/src/verb/core/SurfacePoint.cpp
harmanpa/verb
f18a6db8d9e47b65d7cbf2d954a9dc42f611abd9
[ "MIT" ]
null
null
null
build/cpp/src/verb/core/SurfacePoint.cpp
harmanpa/verb
f18a6db8d9e47b65d7cbf2d954a9dc42f611abd9
[ "MIT" ]
null
null
null
// Generated by Haxe 4.1.4 #include <hxcpp.h> #ifndef INCLUDED_verb_core_SurfacePoint #include <verb/core/SurfacePoint.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_959611cb896c5e6e_146_new,"verb.core.SurfacePoint","new",0xb12daa55,"verb.core.SurfacePoint.new","verb/core/Intersections.hx",146,0x2e2a0454) HX_LOCAL_STACK_FRA...
35.423729
178
0.713397
harmanpa
7f1be9275d460561032e326da3d1e606d6dc1290
967
cpp
C++
src/Calibrate.cpp
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
src/Calibrate.cpp
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
src/Calibrate.cpp
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
#include <Zivid/HandEye/Calibrate.h> #include <ZividPython/Calibrate.h> #include <ZividPython/CalibrationResidual.h> #include <ZividPython/Matrix.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> namespace py = pybind11; namespace ZividPython { void wrapClass(pybind11::class_<Zivid::HandEye::Calibrati...
33.344828
113
0.68666
kontramind
7f1e039ff387c51c40d914d25c573aef36a51a2b
24,259
cpp
C++
Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
51
2020-12-26T18:17:16.000Z
2022-03-15T04:29:35.000Z
Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
null
null
null
Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
4
2020-12-28T07:24:39.000Z
2021-12-29T12:09:37.000Z
// // FILE NAME: CQCIGKit_DriverClient.cpp // // AUTHOR: Dean Roddey // // CREATED: 11/16/2001 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://o...
30.668774
93
0.513294
MarkStega
7f205320f9c7145eca5fbd3fc58c41693d413567
20,948
cpp
C++
libraries/plugins/chain/chain_plugin_full.cpp
SophiaTX/SophiaTx-Blockchain
c964691c020962ad1aba8263c0d8a78a9fa27e45
[ "MIT" ]
8
2018-07-25T20:42:43.000Z
2019-03-11T03:14:09.000Z
libraries/plugins/chain/chain_plugin_full.cpp
SophiaTX/SophiaTx-Blockchain
c964691c020962ad1aba8263c0d8a78a9fa27e45
[ "MIT" ]
13
2018-07-25T17:41:28.000Z
2019-01-25T13:38:11.000Z
libraries/plugins/chain/chain_plugin_full.cpp
SophiaTX/SophiaTx-Blockchain
c964691c020962ad1aba8263c0d8a78a9fa27e45
[ "MIT" ]
11
2018-07-25T14:34:13.000Z
2019-05-03T13:29:37.000Z
#include <sophiatx/chain/database/database_exceptions.hpp> #include <sophiatx/chain/genesis_state.hpp> #include <sophiatx/plugins/chain/chain_plugin_full.hpp> #include <sophiatx/chain/database/database.hpp> #include <sophiatx/utilities/benchmark_dumper.hpp> #include <sophiatx/chain/get_config.hpp> #include <sophiat...
36.880282
271
0.634142
SophiaTX
7f2672a9bfddd5ff0a2e8882dce80949e5b10ef8
3,419
cc
C++
Unittests/DictTest.cc
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
5
2020-06-30T05:06:40.000Z
2021-05-24T08:38:33.000Z
Unittests/DictTest.cc
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
null
null
null
Unittests/DictTest.cc
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
2
2015-10-01T18:28:20.000Z
2020-09-09T16:25:27.000Z
#include "Python.h" #include "gtest/gtest.h" class DictWatcherTest : public testing::Test { protected: DictWatcherTest() { Py_NoSiteFlag = true; Py_Initialize(); this->globals_ = PyDict_New(); this->builtins_ = PyDict_New(); } ~DictWatcherTest() { Py_DECREF(t...
29.222222
79
0.687335
ianloic
7f26a584009c9e5e484626852f8a51d27adebacd
958
cpp
C++
C++/problem0922.cpp
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
C++/problem0922.cpp
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
C++/problem0922.cpp
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <vector> #include <map> #include <set> #include <algorithm> #include <cmath> #include <ctime> #include <cstdlib> #include <windows.h> #include <string> #include <numeric> using namespace std; class Solution { public: vector<int> sortArrayByParityII(vector<int>& A) {...
19.16
53
0.44572
1050669722
7f2b8949ecb55a42e2a90caccb8bb55269b7af1e
2,486
cpp
C++
test/channel/main_channel_udp1.cpp
oudream/ccxx
7746ef93b48bf44157048a43c4878152fe6a4d2b
[ "MIT" ]
39
2015-12-09T09:28:46.000Z
2021-11-16T12:57:25.000Z
test/channel/main_channel_udp1.cpp
oudream/ccxx
7746ef93b48bf44157048a43c4878152fe6a4d2b
[ "MIT" ]
1
2020-10-17T02:23:42.000Z
2020-10-17T02:23:42.000Z
test/channel/main_channel_udp1.cpp
oudream/ccxx
7746ef93b48bf44157048a43c4878152fe6a4d2b
[ "MIT" ]
8
2018-05-29T12:48:13.000Z
2022-02-27T01:45:57.000Z
/* cxtest_channel_udp1 -lip 10.32.50.57 -lport 5555 -rip 10.32.50.57 -rport 5556 cxtest_channel_udp1 -lip 10.32.50.57 -lport 5556 -rip 10.32.50.57 -rport 5555 /**/ #include <ccxx/ccxx.h> using namespace std; class UdpSubject : public CxIChannelSubject { public: UdpSubject(){ mRecvTotalTimes = 0; ...
28.906977
153
0.662912
oudream
7f2ce710398c6aa5fc53cac0665671b65a6e8174
1,648
cc
C++
src/Gateway.cc
Swair/Function-Distributed-Network
55c2c9caa2b6de6c06c99009b2063703601e7956
[ "Apache-2.0" ]
null
null
null
src/Gateway.cc
Swair/Function-Distributed-Network
55c2c9caa2b6de6c06c99009b2063703601e7956
[ "Apache-2.0" ]
null
null
null
src/Gateway.cc
Swair/Function-Distributed-Network
55c2c9caa2b6de6c06c99009b2063703601e7956
[ "Apache-2.0" ]
null
null
null
#include "Gateway.h" Gateway& Gateway::getInstance() { static Gateway gw; return gw; } Gateway::Gateway() {} Gateway::~Gateway() {} void Gateway::reg(const std::string& method, std::function<void(std::string&, const std::string&)> func) { routeTable_[method] = func; } void Gateway::route(std::string& ...
24.969697
105
0.508495
Swair
b526587f2318c6c9d871d46e423e6b483563a1b5
326
cpp
C++
Dataset/Leetcode/test/110/451.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/110/451.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/110/451.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: bool flag=true; bool XXX(TreeNode* root) { int l=dfs(root); return flag; } int dfs(TreeNode* root){ if(root==NULL) return 0; int l=dfs(root->left); int r=dfs(root->right); if(abs(l-r)>1) flag=false; return max(l,r)+1; ...
19.176471
35
0.509202
kkcookies99
b5290f40d62908ad95681d974cbce979eb8641f5
252
cpp
C++
Game/Client/WXClient/Network/PacketHandler/GCMySelfEquipmentListHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/GCDetailEquipmentListHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/GCDetailEquipmentListHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "GCDetailEquipmentList.h" uint GCDetailEquipmentListHandler :: Execute( GCDetailEquipmentList* pPacket, Player* pPlayer ) { __ENTER_FUNCTION return PACKET_EXE_CONTINUE ; __LEAVE_FUNCTION return PACKET_EXE_ERROR ; }
16.8
96
0.801587
hackerlank
b529f379479b6a73c191611f277d3980470cabd8
1,091
cpp
C++
usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp
juneharold/USACO
a96b54f68e7247c61044f3c0d9e7260952c508e2
[ "MIT" ]
null
null
null
usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp
juneharold/USACO
a96b54f68e7247c61044f3c0d9e7260952c508e2
[ "MIT" ]
null
null
null
usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp
juneharold/USACO
a96b54f68e7247c61044f3c0d9e7260952c508e2
[ "MIT" ]
null
null
null
// 롤 케이크 #include <iostream> #include <algorithm> #include <string> using namespace std; int main() { int L, N; cin >> L; cin >> N; int ranges[2000] = {}; for (int i=0; i<2*N; i++) { cin >> ranges[i]; } // number of cake int max_expected=0; int max_received=0; // nu...
20.584906
49
0.463795
juneharold
b52d3581cedf7fffe7a94047630d9129e71c264c
137
hh
C++
Include/Luce/AI/Configuration.hh
kmc7468/luce
6f71407f250dbc0428ceba33aeef345cc601db34
[ "MIT" ]
23
2017-02-09T11:48:01.000Z
2017-04-08T10:19:21.000Z
Include/Luce/AI/Configuration.hh
kmc7468/luce
6f71407f250dbc0428ceba33aeef345cc601db34
[ "MIT" ]
null
null
null
Include/Luce/AI/Configuration.hh
kmc7468/luce
6f71407f250dbc0428ceba33aeef345cc601db34
[ "MIT" ]
null
null
null
#ifndef LUCE_HEADER_AI_CONFIGURATION_HH #define LUCE_HEADER_AI_CONFIGURATION_HH #include <Luce/AI/Configuration/ComputeByCpu.hh> #endif
22.833333
48
0.868613
kmc7468
b52e9446ef1467cbc1e66fbabf752e1a26e6ef91
4,119
cpp
C++
Tests/BasicsTest/TestAVX2.cpp
mfkiwl/RayRenderer-dp4a
b57696b23c795f0ca1199e8f009b7a12b88da13a
[ "MIT" ]
18
2018-10-22T10:30:20.000Z
2021-12-10T06:29:39.000Z
Tests/BasicsTest/TestAVX2.cpp
mfkiwl/RayRenderer-dp4a
b57696b23c795f0ca1199e8f009b7a12b88da13a
[ "MIT" ]
null
null
null
Tests/BasicsTest/TestAVX2.cpp
mfkiwl/RayRenderer-dp4a
b57696b23c795f0ca1199e8f009b7a12b88da13a
[ "MIT" ]
4
2019-06-04T14:04:43.000Z
2021-07-16T01:41:48.000Z
#include "pch.h" #if COMMON_COMPILER_GCC # pragma GCC push_options # pragma GCC target("avx2") #elif COMMON_COMPILER_CLANG # pragma clang attribute push (__attribute__((target("avx2"))), apply_to=function) #endif namespace avx2 { using namespace common; #define COMMON_SIMD_LV 200 #include "common/simd/SIMD.hpp"...
48.458824
152
0.70017
mfkiwl
b531574b7fbbf60c47356dc23f1ef5ad56585873
5,537
cpp
C++
src/TowerEntity.cpp
Smokey1105/Strife.SingleplayerDemo
586865f66e7b08a6e16385fe400c3dd2fe886489
[ "NCSA" ]
null
null
null
src/TowerEntity.cpp
Smokey1105/Strife.SingleplayerDemo
586865f66e7b08a6e16385fe400c3dd2fe886489
[ "NCSA" ]
null
null
null
src/TowerEntity.cpp
Smokey1105/Strife.SingleplayerDemo
586865f66e7b08a6e16385fe400c3dd2fe886489
[ "NCSA" ]
null
null
null
#include "TowerEntity.hpp" #include "Engine.hpp" #include "PlayerEntity.hpp" #include "FireballEntity.hpp" #include "CastleEntity.hpp" #include "ObstacleComponent.hpp" #include "Components/RigidBodyComponent.hpp" #include "Components/SpriteComponent.hpp" #include "Physics/PathFinding.hpp" #include "Net/ReplicationMana...
25.753488
110
0.609536
Smokey1105
b5367526a850ce69445f5e2e3ae88b3cc0395ba2
444
cpp
C++
partners_api/ads/google_ads.cpp
vicpopov/omim
664b458998fb0f2405f68ae830c2798e027b2dcc
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
partners_api/ads/google_ads.cpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
partners_api/ads/google_ads.cpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#include "partners_api/ads/google_ads.hpp" namespace { #if defined(OMIM_OS_IPHONE) auto const kSearchbannerId = "mobile-app-mapsme"; #elif defined(OMIM_OS_ANDROID) auto const kSearchbannerId = "mobile-app-mapsme"; #else auto const kSearchbannerId = "dummy"; #endif } // namespace namespace ads { std::string Goo...
17.076923
51
0.734234
vicpopov
b5400e1794ee4d2bbfcf0b5fba231f428da08d3b
4,401
cpp
C++
ilwiscoreui/models/workspacemodel.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
ilwiscoreui/models/workspacemodel.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
ilwiscoreui/models/workspacemodel.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
#include <QSqlQuery> #include <QSqlRecord> #include <QSqlError> #include "kernel.h" #include "ilwiscontext.h" #include "workspacemodel.h" WorkSpaceModel::WorkSpaceModel(const QString &name, QObject *parent) : CatalogModel( Ilwis::Resource("ilwis://internalcatalog/workspaces/" + name,itWORKSPACE),parent) { } WorkS...
32.843284
134
0.601
ridoo
b540a7da19f87979c62edb01e97ca03fe259f786
4,445
cc
C++
gnuradio-3.7.13.4/gr-blocks/lib/udp_sink_impl.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-blocks/lib/udp_sink_impl.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-blocks/lib/udp_sink_impl.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
/* -*- c++ -*- */ /* * Copyright 2007-2010,2013 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at y...
29.633333
99
0.59775
v1259397
b540c007a1b8eae68ab5d008e6367ee34bc0f2f1
874
cpp
C++
tests/test_postgres.cpp
shakfu/prolog
9d6621e3e723b0bd899bd963fe4a4125cf57671c
[ "Unlicense" ]
null
null
null
tests/test_postgres.cpp
shakfu/prolog
9d6621e3e723b0bd899bd963fe4a4125cf57671c
[ "Unlicense" ]
null
null
null
tests/test_postgres.cpp
shakfu/prolog
9d6621e3e723b0bd899bd963fe4a4125cf57671c
[ "Unlicense" ]
null
null
null
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include <iostream> #include <pqxx/pqxx> #include "doctest.h" int test_db() { // Connect to the database. pqxx::connection c{"postgresql://sa@localhost/sa"}; std::cout << "Connected to " << c.dbname() << '\n'; // Start a transaction. pqxx::work W{c}; ...
25.705882
59
0.606407
shakfu
b5411852752a697187ec98f85ca8f93b27502af6
297
cpp
C++
Demos3/BasicDemoConsole/main.cpp
jackoalan/bullet3
4276b2f06aa652a00b798666ae68013fc6c950e3
[ "Zlib" ]
5
2015-07-28T09:07:57.000Z
2020-09-24T16:49:45.000Z
Demos3/BasicDemoConsole/main.cpp
jackoalan/bullet3
4276b2f06aa652a00b798666ae68013fc6c950e3
[ "Zlib" ]
null
null
null
Demos3/BasicDemoConsole/main.cpp
jackoalan/bullet3
4276b2f06aa652a00b798666ae68013fc6c950e3
[ "Zlib" ]
null
null
null
#include <stdio.h> #include "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h" int main(int argc, char* argv[]) { BasicDemoPhysicsSetup physicsSetup; GraphicsPhysicsBridge br; physicsSetup.initPhysics(br); physicsSetup.stepSimulation(1./60.); physicsSetup.exitPhysics(); printf("hello\n"); }
21.214286
56
0.750842
jackoalan
b542c209363518732ebf5fa53cb22732a7b7bb82
521
cpp
C++
oop/hw4/main.cpp
vMihtarska/fmi
3a3413ff410648ea9dcc00ba394dc216b1ba5df3
[ "MIT" ]
null
null
null
oop/hw4/main.cpp
vMihtarska/fmi
3a3413ff410648ea9dcc00ba394dc216b1ba5df3
[ "MIT" ]
null
null
null
oop/hw4/main.cpp
vMihtarska/fmi
3a3413ff410648ea9dcc00ba394dc216b1ba5df3
[ "MIT" ]
1
2016-01-20T19:02:10.000Z
2016-01-20T19:02:10.000Z
#include <iostream> #include "Employee.h" #include "Specialist.h" int main() { Employee g; g.SetName("VASI"); g.SetAddress("JK ZAPAD"); g.SetEGN("9508110056"); g.SetDepartment("IT"); g.SetSalary(100); g.Print(); Employee c(g); c.Print(); Employee m; m = g; m.Print(); Specialist x; x.SetName("VASI"); x.S...
14.885714
28
0.635317
vMihtarska
b5471770a3d009f4980cce0666488fe6b57f0b3d
1,080
hpp
C++
include/gui/slider.hpp
MartinKondor/Rule
1e5b7f611a2252112d091f27952fa5180e5fad19
[ "BSD-3-Clause" ]
null
null
null
include/gui/slider.hpp
MartinKondor/Rule
1e5b7f611a2252112d091f27952fa5180e5fad19
[ "BSD-3-Clause" ]
null
null
null
include/gui/slider.hpp
MartinKondor/Rule
1e5b7f611a2252112d091f27952fa5180e5fad19
[ "BSD-3-Clause" ]
null
null
null
#ifndef SLIDER_HPP #define SLIDER_HPP #include <SFML/Graphics.hpp> #include "config.hpp" #include "utils.hpp" extern Config CONFIG; class Slider { /** A Slider. Example usage: ``` Slider slider(100, 100, gameFont); slider.create(20, 450); slider.setSliderValue(235); ... slider...
20.377358
109
0.675926
MartinKondor
b551b82b7cfd1c3bd1322d08423e3d745eff3f89
1,284
hpp
C++
libraries/chain/include/graphene/chain/is_authorized_asset.hpp
EDCBlockchain/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
12
2019-10-31T13:24:21.000Z
2021-12-29T22:02:22.000Z
libraries/chain/include/graphene/chain/is_authorized_asset.hpp
DONOVA28/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
null
null
null
libraries/chain/include/graphene/chain/is_authorized_asset.hpp
DONOVA28/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
11
2019-07-24T12:46:29.000Z
2021-11-27T04:41:48.000Z
// see LICENSE.txt #pragma once #include <map> #include <typeindex> #include <typeinfo> namespace graphene { namespace chain { class account_object; class asset_object; class database; namespace detail { bool _is_authorized_asset(const database& d, const account_object& acct, const asset_object& asset_obj); } // ...
21.04918
109
0.707165
EDCBlockchain
b551f72109fe10ceb9b8a4495fa3bdc20b116af0
181
cpp
C++
apps/src/videostitch-studio-gui/src/videostitcher/globalpostprodcontroller.cpp
tlalexander/stitchEm
cdff821ad2c500703e6cb237ec61139fce7bf11c
[ "MIT" ]
182
2019-04-19T12:38:30.000Z
2022-03-20T16:48:20.000Z
apps/src/videostitch-studio-gui/src/videostitcher/globalpostprodcontroller.cpp
doymcc/stitchEm
20693a55fa522d7a196b92635e7a82df9917c2e2
[ "MIT" ]
107
2019-04-23T10:49:35.000Z
2022-03-02T18:12:28.000Z
apps/src/videostitch-studio-gui/src/videostitcher/globalpostprodcontroller.cpp
doymcc/stitchEm
20693a55fa522d7a196b92635e7a82df9917c2e2
[ "MIT" ]
59
2019-06-04T11:27:25.000Z
2022-03-17T23:49:49.000Z
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "globalpostprodcontroller.hpp" template class GlobalControllerImpl<PostProdStitcherController>;
25.857143
64
0.812155
tlalexander
b5540a76ef968039f9bb0b1b4f004503836c27c4
1,127
hpp
C++
main_server/src/entities/parking_slot/parking_slot.hpp
GrassoMichele/uPark
d96310c165c3efa9b0251c51ababe06639c4570a
[ "MIT" ]
null
null
null
main_server/src/entities/parking_slot/parking_slot.hpp
GrassoMichele/uPark
d96310c165c3efa9b0251c51ababe06639c4570a
[ "MIT" ]
null
null
null
main_server/src/entities/parking_slot/parking_slot.hpp
GrassoMichele/uPark
d96310c165c3efa9b0251c51ababe06639c4570a
[ "MIT" ]
null
null
null
#ifndef PARKING_SLOT #define PARKING_SLOT #include <iostream> class ParkingSlot{ private: int id; int number; int id_parking_lot; int id_vehicle_type; bool reserved_disability; public: ParkingSlot(); ParkingSlot(int id); ParkingSlot(int id, int ...
26.209302
107
0.628217
GrassoMichele
b557c25ffa9d5306eaaaeb39bee702d02cacda66
6,834
hpp
C++
include/pkmn/types/class_with_attributes.hpp
ncorgan/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
4
2017-06-10T13:21:44.000Z
2019-10-30T21:20:19.000Z
include/pkmn/types/class_with_attributes.hpp
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
12
2017-04-05T11:13:34.000Z
2018-06-03T14:31:03.000Z
include/pkmn/types/class_with_attributes.hpp
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
2
2019-01-22T21:02:31.000Z
2019-10-30T21:20:20.000Z
/* * Copyright (c) 2017-2018 Nicholas Corgan ([email protected]) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #ifndef PKMN_CLASS_WITH_ATTRIBUTES_HPP #define PKMN_CLASS_WITH_ATTRIBUTES_HPP #include <pkmn/types/attribute_engine.h...
39.275862
90
0.567603
ncorgan
b55996a5dcbe09175c97dccc3a46f70f57def379
1,491
cpp
C++
cpp/test/test_prefix128.cpp
0xflotus/ipaddress
0d53ff453ec901e408ef28435802318282e43ccc
[ "MIT" ]
11
2017-09-28T09:14:28.000Z
2021-11-01T07:24:41.000Z
cpp/test/test_prefix128.cpp
0xflotus/ipaddress
0d53ff453ec901e408ef28435802318282e43ccc
[ "MIT" ]
1
2016-08-31T06:55:54.000Z
2016-08-31T06:55:54.000Z
cpp/test/test_prefix128.cpp
0xflotus/ipaddress
0d53ff453ec901e408ef28435802318282e43ccc
[ "MIT" ]
4
2016-08-31T06:45:32.000Z
2021-05-13T10:31:03.000Z
#include <cascara/cascara.hpp> using namespace cascara; #include "../src/prefix128.hpp" #include "../src/crunchy.hpp" using namespace ipaddress; class Prefix128Test { public: std::vector<std::pair<size_t, Crunchy>> u128_hash; }; Prefix128Test setup() { Prefix128Test p128t; p128t.u128...
29.235294
109
0.60161
0xflotus
b559f6970bb54e4e750405f64b34fb16553d1021
8,652
cpp
C++
Socket/IncomingMessageHandler.cpp
Kaptnik/CIS-687-RemoteTestHarness
3a1466d4b71cef7bee2791020a2902d3e658fb64
[ "MIT" ]
null
null
null
Socket/IncomingMessageHandler.cpp
Kaptnik/CIS-687-RemoteTestHarness
3a1466d4b71cef7bee2791020a2902d3e658fb64
[ "MIT" ]
null
null
null
Socket/IncomingMessageHandler.cpp
Kaptnik/CIS-687-RemoteTestHarness
3a1466d4b71cef7bee2791020a2902d3e658fb64
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////// // IncomingMessageHandler.cpp - A class that handles incoming messages // // ver 1.0 // // Karthik Umashankar, CSE687 - Object Oriented Design, Summer 2018 // //////////////////////////////////////////////////////////...
32.526316
157
0.654877
Kaptnik
b55bbe41b23916a348b6e2d5146b9e5a83197e9d
8,360
cpp
C++
Engine/Source/Runtime/ApplicationCore/Private/Mac/MacConsoleOutputDevice.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/Runtime/ApplicationCore/Private/Mac/MacConsoleOutputDevice.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/Runtime/ApplicationCore/Private/Mac/MacConsoleOutputDevice.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "MacConsoleOutputDevice.h" #include "Misc/App.h" #include "Misc/CoreDelegates.h" #include "Misc/ConfigCacheIni.h" #include "MacApplication.h" #include "MacPlatformApplicationMisc.h" #include "Misc/OutputDeviceHelper.h" #include "Misc/ScopeLock.h" #i...
29.75089
180
0.71244
windystrife
b55be79846204fcc7725da9029f1c2ecec9edf9a
1,029
cpp
C++
C++/dnf_sort.cpp
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
C++/dnf_sort.cpp
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
C++/dnf_sort.cpp
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
#include <bits/stdc++.h> using namespace std; //this sorting algorithm is for sorting 0s,1s and 2s //we have to traverse the whole array or vector //so the time complexity becomes O(n) void dnfsort(vector<int>&v){ int n = v.size(); //here we will be having three pointers //forb iterating through the v...
19.788462
52
0.47619
ayushyado
b55f75814e6ddfa4e911f9b69ec6adf31340e725
7,949
cpp
C++
src/MD5/MD5.cpp
mykhailok01/RS5_Implementation
4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1
[ "MIT" ]
null
null
null
src/MD5/MD5.cpp
mykhailok01/RS5_Implementation
4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1
[ "MIT" ]
null
null
null
src/MD5/MD5.cpp
mykhailok01/RS5_Implementation
4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1
[ "MIT" ]
null
null
null
#include "MD5.hpp" #include <climits> #include <cassert> #include <sstream> #include <vector> #include <iostream> #include <limits> #include <bitset> using Chunk = std::array<std::uint32_t, 16>;// 512 bit constexpr size_t CHUNK_SIZE = sizeof(Chunk::value_type) * 16; constexpr auto BITS_CHUNK_SIZE = static_cast<std::uin...
34.71179
118
0.602592
mykhailok01
b55fbdbfacd906739e63e2851b93ebfc455b8733
1,443
cpp
C++
cpp/opendnp3/src/opendnp3/objects/Group51.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/objects/Group51.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/objects/Group51.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
3
2016-07-13T18:54:13.000Z
2021-04-12T13:30:39.000Z
// // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | | // | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_| // |_| \_|\___/ |______\__,_|_|\...
24.05
77
0.559252
tarm
b5623319810028e4069c7445e0129611ab599b5a
11,007
hpp
C++
src/core/utils/maybe.hpp
lowkey42/BanishedBlaze
71e66f444a84bea1eca3639de3f3ff1f79e385d1
[ "MIT" ]
null
null
null
src/core/utils/maybe.hpp
lowkey42/BanishedBlaze
71e66f444a84bea1eca3639de3f3ff1f79e385d1
[ "MIT" ]
null
null
null
src/core/utils/maybe.hpp
lowkey42/BanishedBlaze
71e66f444a84bea1eca3639de3f3ff1f79e385d1
[ "MIT" ]
null
null
null
/** simple wrapper for optional values or references ************************* * * * Copyright (c) 2014 Florian Oetke * * This file is distributed under the MIT License * * ...
25.187643
123
0.600073
lowkey42
b5630a7c5a980b93057022c640b102796a94a44f
8,802
cpp
C++
src/mesh/store/nodestore.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
1
2021-09-16T10:15:50.000Z
2021-09-16T10:15:50.000Z
src/mesh/store/nodestore.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
null
null
null
src/mesh/store/nodestore.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
null
null
null
#include "store.h" #include "nodestore.h" #include "statisticsstore.h" #include "mesh/mesh.h" #include "esinfo/mpiinfo.h" #include "esinfo/meshinfo.h" #include "basis/containers/point.h" #include "basis/containers/serializededata.h" #include "basis/utilities/packing.h" using namespace mesio; NodeStore::NodeStore()...
27.592476
141
0.658828
It4innovations
b56965082b5113142dd9d4e0dc2e936303a05c20
2,054
hpp
C++
falcon/utility/temporary_set.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
2
2018-02-02T14:19:59.000Z
2018-05-13T02:48:24.000Z
falcon/utility/temporary_set.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
falcon/utility/temporary_set.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
#ifndef FALCON_UTILITYTEMPORARY_SET_HPP #define FALCON_UTILITYTEMPORARY_SET_HPP #include <falcon/utility/move.hpp> #include <falcon/c++/noexcept.hpp> #include <falcon/c++/reference.hpp> #include <falcon/functional/operators.hpp> #if __cplusplus >= 201103L # include <type_traits> #endif namespace falcon { ///\brief M...
25.04878
97
0.74148
jonathanpoelen
b56a3466b5195036e43924f472b337d6a6b914a6
4,071
hpp
C++
qubus/include/qubus/pattern/binary_operator.hpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
qubus/include/qubus/pattern/binary_operator.hpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
qubus/include/qubus/pattern/binary_operator.hpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
#ifndef QUBUS_PATTERN_BINARY_OPERATOR_HPP #define QUBUS_PATTERN_BINARY_OPERATOR_HPP #include <qubus/IR/binary_operator_expr.hpp> #include <qubus/pattern/variable.hpp> #include <qubus/pattern/any.hpp> #include <qubus/pattern/value.hpp> #include <utility> #include <functional> namespace qubus { namespace pattern { te...
23.807018
103
0.688529
qubusproject
b56d896e4139c6fd4fa5337d66ec4dd83567bef5
3,142
hpp
C++
include/cppgit2/fetch.hpp
jhasse/cppgit2
7c069680bcfa70686053bc1f573524813c1f206f
[ "MIT" ]
84
2020-03-22T14:03:37.000Z
2022-01-04T05:51:55.000Z
include/cppgit2/fetch.hpp
jhasse/cppgit2
7c069680bcfa70686053bc1f573524813c1f206f
[ "MIT" ]
7
2020-03-27T21:36:13.000Z
2020-12-05T23:41:25.000Z
include/cppgit2/fetch.hpp
jhasse/cppgit2
7c069680bcfa70686053bc1f573524813c1f206f
[ "MIT" ]
18
2020-04-25T09:55:17.000Z
2022-03-06T23:20:43.000Z
#pragma once #include <cppgit2/libgit2_api.hpp> #include <cppgit2/proxy.hpp> #include <cppgit2/strarray.hpp> #include <git2.h> #include <string> #include <vector> namespace cppgit2 { class fetch : public libgit2_api { public: class options : public libgit2_api { public: options() : c_ptr_(nullptr) { aut...
29.364486
80
0.669955
jhasse
b56f1995d8b993312a57a37084c760cfcd038b1c
740
cpp
C++
src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp
sereilly/MixedReality-SpectatorView
a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9
[ "MIT" ]
165
2019-06-19T18:41:20.000Z
2022-03-16T12:17:02.000Z
src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp
sereilly/MixedReality-SpectatorView
a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9
[ "MIT" ]
297
2019-06-18T19:01:43.000Z
2022-03-31T00:11:07.000Z
src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp
sereilly/MixedReality-SpectatorView
a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9
[ "MIT" ]
108
2019-06-17T22:44:08.000Z
2022-03-18T05:44:57.000Z
#include "pch.h" #include "SpectatorView.WinRTExtensions.h" // Because Marshal.GetObjectForIUnknown does not work when using the .NET Native compiler with IInspectable // objects, this method allows managed code to explicitly specify a type for the marshaller to query for. // Example usage from managed code for marsh...
52.857143
125
0.797297
sereilly
b5704f6293dea12047ce0271d638fae94aac3a22
4,707
cc
C++
solver_bank.cc
frenebo/SOAX
c6aacd1ce9d919a205a712a4db8f0ab8a1ecacd1
[ "BSD-3-Clause" ]
8
2015-09-14T00:37:59.000Z
2020-12-30T22:47:34.000Z
solver_bank.cc
frenebo/SOAX
c6aacd1ce9d919a205a712a4db8f0ab8a1ecacd1
[ "BSD-3-Clause" ]
3
2015-05-14T15:48:50.000Z
2020-12-30T17:46:14.000Z
solver_bank.cc
frenebo/SOAX
c6aacd1ce9d919a205a712a4db8f0ab8a1ecacd1
[ "BSD-3-Clause" ]
9
2015-09-14T11:35:51.000Z
2021-12-14T23:38:47.000Z
/** * Copyright (c) 2015, Lehigh University * All rights reserved. * See COPYING for license. * * This file implements the solvers for linear system for SOAX. */ #include "./solver_bank.h" namespace soax { SolverBank::SolverBank() : alpha_(0.01), beta_(0.1), gamma_(2.0) {} SolverBank::~SolverBank() { this->...
31.172185
75
0.647546
frenebo
b5722f716ca8c1cf400982c86e5c78912e13ed10
2,776
cpp
C++
src/ofxNode.cpp
lpestl/ofxGraphVisualization
218e67b2519eed5050f09f51e31260690fe4eacc
[ "MIT" ]
null
null
null
src/ofxNode.cpp
lpestl/ofxGraphVisualization
218e67b2519eed5050f09f51e31260690fe4eacc
[ "MIT" ]
null
null
null
src/ofxNode.cpp
lpestl/ofxGraphVisualization
218e67b2519eed5050f09f51e31260690fe4eacc
[ "MIT" ]
null
null
null
#include "ofxNode.h" #include <random> #include "ofxTweener.h" void ofxNode::setup(std::shared_ptr<ofRectangle> boundRect, std::shared_ptr<ofxTrueTypeFontUC> font) { captureFont_ = font; boundRect_ = boundRect; position_.set(ofRandom(boundRect_->getMinX(), boundRect_->getMaxX()), ofRandom(boundRect_->getMinY(), bo...
22.208
167
0.674352
lpestl
b5729bc51e2f1e778024289cec93bc0e1651c438
639
cc
C++
system_info/system_info_cellular_network_desktop.cc
sstolinski/tizen-extensions-crosswalk
749cf5285bf1c9c04a4ce9f3880a744dcf221a69
[ "Apache-2.0", "BSD-3-Clause" ]
1
2016-11-21T21:21:19.000Z
2016-11-21T21:21:19.000Z
system_info/system_info_cellular_network_desktop.cc
sstolinski/tizen-extensions-crosswalk
749cf5285bf1c9c04a4ce9f3880a744dcf221a69
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
system_info/system_info_cellular_network_desktop.cc
sstolinski/tizen-extensions-crosswalk
749cf5285bf1c9c04a4ce9f3880a744dcf221a69
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "system_info/system_info_cellular_network.h" const std::string SysInfoCellularNetwork::name_ = "CELLULAR_NETWORK"; void SysInfoCellularNetwork...
37.588235
73
0.730829
sstolinski
b57442bec007ffc6c7f2cb92d52dffcd43e3c08c
2,574
hpp
C++
engine/include/ph/sdl/Mouse.hpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/include/ph/sdl/Mouse.hpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/include/ph/sdl/Mouse.hpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
// Copyright (c) Peter Hillerström (skipifzero.com, [email protected]) // For other contributors see Contributors.txt // // 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. //...
34.783784
99
0.628205
PetorSFZ
b57989b723bd246a6624c126ca4f3f2acf401fcf
1,125
cpp
C++
IGC/AdaptorOCL/cif/cif/import/cif_main.cpp
kurapov-peter/intel-graphics-compiler
98f7c938df0617912288385d243d6918135f0713
[ "Intel", "MIT" ]
440
2018-01-30T00:43:22.000Z
2022-03-24T17:28:37.000Z
IGC/AdaptorOCL/cif/cif/import/cif_main.cpp
kurapov-peter/intel-graphics-compiler
98f7c938df0617912288385d243d6918135f0713
[ "Intel", "MIT" ]
225
2018-02-02T03:10:47.000Z
2022-03-31T10:50:37.000Z
IGC/AdaptorOCL/cif/cif/import/cif_main.cpp
kurapov-peter/intel-graphics-compiler
98f7c938df0617912288385d243d6918135f0713
[ "Intel", "MIT" ]
138
2018-01-30T08:15:11.000Z
2022-03-22T14:16:39.000Z
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "cif/common/cif.h" #include "cif/import/library_api.h" #include "cif/impor...
30.405405
80
0.657778
kurapov-peter
b579e2c62547c27f052a384b37705400e2b6f822
507
hpp
C++
osc-seq-cpp/src/ui_elements/text_elt.hpp
Acaruso/osc-seq-cpp
14d2d5ce0fdad8d183e19781a279f9442db9c79f
[ "MIT" ]
null
null
null
osc-seq-cpp/src/ui_elements/text_elt.hpp
Acaruso/osc-seq-cpp
14d2d5ce0fdad8d183e19781a279f9442db9c79f
[ "MIT" ]
null
null
null
osc-seq-cpp/src/ui_elements/text_elt.hpp
Acaruso/osc-seq-cpp
14d2d5ce0fdad8d183e19781a279f9442db9c79f
[ "MIT" ]
null
null
null
#pragma once #include <functional> #include <string> #include <SDL.h> #include <SDL_ttf.h> #include "../store/coord.hpp" #include "../store/store.hpp" void text_elt(std::string text, Coord& coord, Store& store, int z_coord = 1); void text_elt(std::string text, FC_Font* font, Coord& coord, Store& store, int z_coord...
21.125
92
0.676529
Acaruso