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
1bc7b8c185e324531565eeba6c95d22399831e91
946
hpp
C++
include/flexgrep/File.hpp
RudiBik/flexgrep
d7bb07350693f129481572f41639df95f8a03261
[ "BSD-3-Clause" ]
4
2022-02-11T18:43:55.000Z
2022-02-19T09:50:09.000Z
include/flexgrep/File.hpp
RudiBik/flexgrep
d7bb07350693f129481572f41639df95f8a03261
[ "BSD-3-Clause" ]
null
null
null
include/flexgrep/File.hpp
RudiBik/flexgrep
d7bb07350693f129481572f41639df95f8a03261
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2022, Rudi Bikschentajew // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #pragma once #include <filesystem> #include <fstream> #include <vector> namespace lg { class File { public: s...
19.708333
72
0.552854
RudiBik
1bca2fd3e4c70252f81cff8a7fabf2fd49f0a231
13,970
cpp
C++
editor/src/AssetLibrary.cpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
editor/src/AssetLibrary.cpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
editor/src/AssetLibrary.cpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
#include "AssetLibrary.hpp" #include <filesystem> #include "doctest/doctest.h" #include "rapidjson/document.h" #include "rapidjson/stringbuffer.h" #include "rapidjson/writer.h" #include "Core/Core.hpp" #include "System/Filesystem.hpp" #include "EditorConstants.hpp" #include "EditorProject.hpp" n...
28.165323
128
0.70315
aleksigron
1bcb1cb6c4e8948df4b9bb51f9847702f22a7ec0
12,085
hxx
C++
include/bdd_mma_srmp_base.hxx
aabbas90/BDD
abab0c746a22ae04e8ca5ceacbec1d8f75b758bb
[ "BSD-2-Clause" ]
4
2021-03-20T11:29:15.000Z
2022-03-22T10:43:14.000Z
include/bdd_mma_srmp_base.hxx
aabbas90/BDD
abab0c746a22ae04e8ca5ceacbec1d8f75b758bb
[ "BSD-2-Clause" ]
null
null
null
include/bdd_mma_srmp_base.hxx
aabbas90/BDD
abab0c746a22ae04e8ca5ceacbec1d8f75b758bb
[ "BSD-2-Clause" ]
3
2021-03-31T15:26:20.000Z
2022-03-24T08:58:01.000Z
#pragma once #include "bdd_mma_base.hxx" #include "time_measure_util.h" #include <vector> #include <array> #include <iostream> namespace LPMP { // base class for min marginal averaging with SRMP-like distribution of excess costs template<typename BDD_OPT_BASE> class bdd_mma_srmp_base : public bdd_mma...
48.14741
214
0.611502
aabbas90
1bcd13774bbc3c7f38a487e382445b11db9d1e6c
778
cpp
C++
src/MisakiSuperLimited.cpp
willow-micro/WX-for-MWX
ad5147a06f5e3c741726b3d743f6f7bb6d3c2e94
[ "MIT" ]
null
null
null
src/MisakiSuperLimited.cpp
willow-micro/WX-for-MWX
ad5147a06f5e3c741726b3d743f6f7bb6d3c2e94
[ "MIT" ]
null
null
null
src/MisakiSuperLimited.cpp
willow-micro/WX-for-MWX
ad5147a06f5e3c741726b3d743f6f7bb6d3c2e94
[ "MIT" ]
null
null
null
// -*- coding:utf-8-unix -*- /*! @file MisakiSuperLimited.cpp @author Takuma Kawamura <kawa@macbook-pro-2015.local> @date Mon Jan 18 01:31:24 2021 @brief Convert UTF-16 to Limited Misaki Font (JIS 0208 Row 1, 2, 3, 4, 5 and 8) Bitmap Array */ #include "MisakiSuperLimited.hpp" uint8_t* MisakiSuperLimit...
25.933333
122
0.706941
willow-micro
1bcf1db76042fcd39f84f36ad80ec1ee10762b0b
2,384
hpp
C++
src/main/Game/Enemy/Enemy.hpp
mak1a/SivComponent
1043cde67a5dc14f2d4e0128aecfee7f54ed7002
[ "MIT" ]
1
2021-01-24T08:55:59.000Z
2021-01-24T08:55:59.000Z
src/main/Game/Enemy/Enemy.hpp
mak1a/SivComponent
1043cde67a5dc14f2d4e0128aecfee7f54ed7002
[ "MIT" ]
2
2021-01-24T06:12:12.000Z
2021-01-24T14:37:10.000Z
src/main/Game/Enemy/Enemy.hpp
mak1a/SivComponent
1043cde67a5dc14f2d4e0128aecfee7f54ed7002
[ "MIT" ]
null
null
null
 #pragma once #include "../../../PhotonComponent/PhotonComponent.hpp" #include "./../../../ComponentEngine/ComponentEngine.hpp" class EnemyManager; class PlayerManager; class PlayerCore; void ResetEnemyNumber(); namespace DataName::Enemy { constexpr nByte Type = 0; constexpr nByte posX = 1; constexpr n...
22.074074
114
0.64094
mak1a
1bd2a3375e6b7ee42aad8121772b7690d0f71c41
170
cpp
C++
Common/bin/project_template_verilog/dpi_private/.src.cpp
testdrive-profiling-master/profiles
6e3854874366530f4e7ae130000000812eda5ff7
[ "BSD-3-Clause" ]
null
null
null
Common/bin/project_template_verilog/dpi_private/.src.cpp
testdrive-profiling-master/profiles
6e3854874366530f4e7ae130000000812eda5ff7
[ "BSD-3-Clause" ]
null
null
null
Common/bin/project_template_verilog/dpi_private/.src.cpp
testdrive-profiling-master/profiles
6e3854874366530f4e7ae130000000812eda5ff7
[ "BSD-3-Clause" ]
null
null
null
#include "dpi_common.h" DPI_FUNCTION void Test_ALU(const svBitVecVal* A, svBitVecVal* O) { const int& iA = *(const int*)A; int& iO = *(int*)O; iO = iA + 3; }
18.888889
64
0.611765
testdrive-profiling-master
1bd6b682411826d1e26bfa5a4d867e3c0ab8aa5d
1,446
cpp
C++
Source/NGMP/main.cpp
gnoailles/ArbitraryPrecision
4d320bca78b61a5ce99972574d6484a7d598f76e
[ "MIT" ]
null
null
null
Source/NGMP/main.cpp
gnoailles/ArbitraryPrecision
4d320bca78b61a5ce99972574d6484a7d598f76e
[ "MIT" ]
null
null
null
Source/NGMP/main.cpp
gnoailles/ArbitraryPrecision
4d320bca78b61a5ce99972574d6484a7d598f76e
[ "MIT" ]
null
null
null
#include <iostream> #include "NGMP.h" int main() { uint32_t prime[64] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xC90FDAA2, 0x2168C234, 0xC4C6628B, 0x80DC1CD1, 0x29024E08, 0x8A67CC74, 0x020BBEA6, 0x3B139B22, 0x514A0879, 0x8E3404DD, 0xEF9519B3, 0xCD3A431B, 0x302B0A6D, 0xF25F1437, 0x4FE1356D...
32.863636
61
0.652835
gnoailles
1bd7219fbbc277b2faa6cf280911f5e3cf2a5248
1,039
hpp
C++
include/affinity.hpp
f-tischler/affinity
48856696b5e89c676a04d46b25b6694e8655853c
[ "Apache-2.0" ]
null
null
null
include/affinity.hpp
f-tischler/affinity
48856696b5e89c676a04d46b25b6694e8655853c
[ "Apache-2.0" ]
null
null
null
include/affinity.hpp
f-tischler/affinity
48856696b5e89c676a04d46b25b6694e8655853c
[ "Apache-2.0" ]
null
null
null
/** * demangle.hpp - * @author: Jonathan Beard, BoB R (2noodle) * @version: Sat, March 28 2020 * * Copyright 2020 RaftLib * * 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: * * ...
24.162791
75
0.72666
f-tischler
1bd74865e9c53e674187d6fdee1e1501dfe98bfb
4,437
cpp
C++
src/MushGame/MushGameLogicLocal.cpp
mushware/adanaxis-core-app
679ac3e8a122e059bb208e84c73efc19753e87dd
[ "MIT" ]
9
2020-11-02T17:20:40.000Z
2021-12-25T15:35:36.000Z
src/MushGame/MushGameLogicLocal.cpp
mushware/adanaxis-core-app
679ac3e8a122e059bb208e84c73efc19753e87dd
[ "MIT" ]
2
2020-06-27T23:14:13.000Z
2020-11-02T17:28:32.000Z
src/MushGame/MushGameLogicLocal.cpp
mushware/adanaxis-core-app
679ac3e8a122e059bb208e84c73efc19753e87dd
[ "MIT" ]
1
2021-05-12T23:05:42.000Z
2021-05-12T23:05:42.000Z
//%Header { /***************************************************************************** * * File: src/MushGame/MushGameLogicLocal.cpp * * Copyright: Andy Southgate 2002-2007, 2020 * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation f...
27.73125
109
0.691458
mushware
1bd800a4b493983e8cc0d74a7081149b347b1e3a
1,558
hh
C++
src/kt84/openmesh/base/NormalCurvature.hh
honoriocassiano/skbar
e2a8fca752f5a2f9d9a32f19cbe1f9032a0e1ac4
[ "MIT" ]
null
null
null
src/kt84/openmesh/base/NormalCurvature.hh
honoriocassiano/skbar
e2a8fca752f5a2f9d9a32f19cbe1f9032a0e1ac4
[ "MIT" ]
5
2020-09-01T12:16:28.000Z
2020-09-01T12:21:41.000Z
src/kt84/openmesh/base/NormalCurvature.hh
honoriocassiano/skbar
e2a8fca752f5a2f9d9a32f19cbe1f9032a0e1ac4
[ "MIT" ]
null
null
null
#pragma once /* Implementation of the following paper: Chen-shi Dong, Guo-zhao Wang Curvatures estimation on triangular mesh Journal of Zhejiang University Science August 2005, Volume 6, Issue 1 Supplement, pp 128-136 DOI: 10.1007/BF02887228 http://www.zju.edu.cn/jzu...
31.795918
138
0.594352
honoriocassiano
1bd8a6bc090ba9b196f76c4c78a383bd6670cd29
857
cpp
C++
mariongiciel/main.cpp
auzou/mariongiciel
bf5679d7218e39ffef52eea483a9742a35334f2e
[ "Unlicense" ]
null
null
null
mariongiciel/main.cpp
auzou/mariongiciel
bf5679d7218e39ffef52eea483a9742a35334f2e
[ "Unlicense" ]
null
null
null
mariongiciel/main.cpp
auzou/mariongiciel
bf5679d7218e39ffef52eea483a9742a35334f2e
[ "Unlicense" ]
null
null
null
/** * \file main.cpp * \brief Run APP * \author Auzou * \version 0.1 * \date last update : 28/09/2007 * * Run QApplication singleton \link https://doc.qt.io/qt-5/qapplication.html \endlink * Run \link mariongiciel::core::DirManagement::initDirsEnv() \endlink to ensure that the folder environment exists * */ ...
25.205882
115
0.688448
auzou
1bd8e3c1eb0a661da1b9a00157039d055020c011
8,340
cpp
C++
bin/test-libsept/test_NPTerm.cpp
vdods/sept
08ee1faf1af4feb0dc440a3002eb8cc52681f946
[ "Apache-2.0" ]
null
null
null
bin/test-libsept/test_NPTerm.cpp
vdods/sept
08ee1faf1af4feb0dc440a3002eb8cc52681f946
[ "Apache-2.0" ]
null
null
null
bin/test-libsept/test_NPTerm.cpp
vdods/sept
08ee1faf1af4feb0dc440a3002eb8cc52681f946
[ "Apache-2.0" ]
null
null
null
// 2020.04.17 - Victor Dods #include <lvd/test.hpp> #include "req.hpp" #include "sept/ArrayType.hpp" #include "sept/ArrayTerm.hpp" #include "sept/NPTerm.hpp" #include "sept/NPType.hpp" LVD_TEST_BEGIN(300__NPTerm__basics) // First, compare exact identity of the singletons involved. LVD_TEST_REQ_EQ(&sept::abst...
42.55102
92
0.752278
vdods
1bda4249330f4eb5adde510356b04a4fdb16bc26
398
cpp
C++
src/Tile.cpp
David-Parker/GameBoy-Emulator
5999bb83cacd78e04ce7d25314c11ce19e144124
[ "MIT" ]
8
2021-12-21T01:39:54.000Z
2022-01-26T11:24:39.000Z
src/Tile.cpp
David-Parker/GameBoy-Emulator
5999bb83cacd78e04ce7d25314c11ce19e144124
[ "MIT" ]
null
null
null
src/Tile.cpp
David-Parker/GameBoy-Emulator
5999bb83cacd78e04ce7d25314c11ce19e144124
[ "MIT" ]
1
2021-12-21T01:40:24.000Z
2021-12-21T01:40:24.000Z
#include "Tile.h" Byte Tile::GetPixel(Memory* pMemory, Address data, int x, int y) { int pixelNum = (y * 8) + x; Byte upperIdx = (pixelNum / 8) * 2; Byte lowerIdx = upperIdx + 1; Byte upper = pMemory->Read(data + upperIdx); Byte lower = pMemory->Read(data + lowerIdx); Byte bitIndex = 1 << (7 - ...
30.615385
71
0.582915
David-Parker
1bdb5e59c6d28ac9cee645151779d18d9c5f1e24
8,529
cpp
C++
engines/Engine_OpenGl.cpp
icaroslb/jogo_espiao
02773f81f900c3c6b99de62f431032227272bfec
[ "MIT" ]
null
null
null
engines/Engine_OpenGl.cpp
icaroslb/jogo_espiao
02773f81f900c3c6b99de62f431032227272bfec
[ "MIT" ]
null
null
null
engines/Engine_OpenGl.cpp
icaroslb/jogo_espiao
02773f81f900c3c6b99de62f431032227272bfec
[ "MIT" ]
null
null
null
#include "Engine_OpenGl.h" Engine_OpenGl::Engine_OpenGl () { glEnable( GL_PROGRAM_POINT_SIZE ); glEnable( GL_BLEND ); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } /*===============================================================================================================================*/ unsigned in...
42.014778
158
0.501466
icaroslb
1be15a33f558dd936ae75f0ff2285a1e64fc98c8
1,961
cc
C++
index_tests/declaration_vs_definition/method.cc
Gei0r/cquery
6ff8273e8b8624016f9363f444acfee30c4bbf64
[ "MIT" ]
null
null
null
index_tests/declaration_vs_definition/method.cc
Gei0r/cquery
6ff8273e8b8624016f9363f444acfee30c4bbf64
[ "MIT" ]
null
null
null
index_tests/declaration_vs_definition/method.cc
Gei0r/cquery
6ff8273e8b8624016f9363f444acfee30c4bbf64
[ "MIT" ]
null
null
null
class Foo { void declonly(); virtual void purevirtual() = 0; void def(); }; void Foo::def() {} /* OUTPUT: { "includes": [], "skipped_by_preprocessor": [], "types": [{ "id": 0, "usr": 15041163540773201510, "detailed_name": "Foo", "short_name": "Foo", "kind": ...
22.284091
50
0.399286
Gei0r
1be2ce253a378930f25c5f0eca4b163a9760acb5
2,681
cpp
C++
plugins/gui/src/selection_details_widget/details_section_widget.cpp
emsec/HAL
608e801896e1b5254b28ce0f29d4d898b81b0f77
[ "MIT" ]
407
2019-04-26T10:45:52.000Z
2022-03-31T15:52:30.000Z
plugins/gui/src/selection_details_widget/details_section_widget.cpp
emsec/HAL
608e801896e1b5254b28ce0f29d4d898b81b0f77
[ "MIT" ]
219
2019-04-29T16:42:01.000Z
2022-03-11T22:57:41.000Z
plugins/gui/src/selection_details_widget/details_section_widget.cpp
emsec/HAL
608e801896e1b5254b28ce0f29d4d898b81b0f77
[ "MIT" ]
53
2019-05-02T21:23:35.000Z
2022-03-11T19:46:05.000Z
#include "gui/gui_globals.h" #include "gui/selection_details_widget/details_section_widget.h" #include "gui/selection_details_widget/details_table_utilities.h" #include <QVBoxLayout> #include <QHeaderView> namespace hal { DetailsSectionWidget::DetailsSectionWidget(QWidget* content, const QString &txt, QWidget *pa...
27.639175
102
0.614696
emsec
1be53feda5153123d0327e5d39215c652b89ec2a
1,054
cc
C++
problems/lt123.cc
jaxonwang/my_leetcode
f55c664050a27f583abeb534564b5c3af48f6192
[ "MIT" ]
null
null
null
problems/lt123.cc
jaxonwang/my_leetcode
f55c664050a27f583abeb534564b5c3af48f6192
[ "MIT" ]
null
null
null
problems/lt123.cc
jaxonwang/my_leetcode
f55c664050a27f583abeb534564b5c3af48f6192
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: int maxProfit(vector<int>& prices) { if(prices.size()<=1) return 0; int left[prices.size()]; int right[prices.size()]; int min_p=prices[0]; left[0] = 0; for (in...
23.954545
57
0.481025
jaxonwang
1bec0c452b81a148cf6df91fc51ce177d9e0b419
22,444
cpp
C++
plugins/cusolver/backend/CusolverHandler_refactorization.cpp
nicholaspiantadosi/GVirtuS
ab5d2a1127f29d199921588961fed278e1dbab3b
[ "Apache-2.0" ]
null
null
null
plugins/cusolver/backend/CusolverHandler_refactorization.cpp
nicholaspiantadosi/GVirtuS
ab5d2a1127f29d199921588961fed278e1dbab3b
[ "Apache-2.0" ]
null
null
null
plugins/cusolver/backend/CusolverHandler_refactorization.cpp
nicholaspiantadosi/GVirtuS
ab5d2a1127f29d199921588961fed278e1dbab3b
[ "Apache-2.0" ]
null
null
null
/* * gVirtuS -- A GPGPU transparent virtualization component. * * Copyright (C) 2009-2010 The University of Napoli Parthenope at Naples. * * This file is part of gVirtuS. * * gVirtuS is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
40.881603
183
0.69092
nicholaspiantadosi
1beee29c78a7c62a7bc11a2ab29550d1aaee8bf5
1,284
cpp
C++
src/test.cpp
nth-eye/ChessEngine-cpp
de54602a5b1436016cb0205336ac047064997db8
[ "BSD-3-Clause" ]
null
null
null
src/test.cpp
nth-eye/ChessEngine-cpp
de54602a5b1436016cb0205336ac047064997db8
[ "BSD-3-Clause" ]
null
null
null
src/test.cpp
nth-eye/ChessEngine-cpp
de54602a5b1436016cb0205336ac047064997db8
[ "BSD-3-Clause" ]
null
null
null
#include "test.h" #include "engine.h" #include "log.h" #include <cstring> void test_perft(const char *file_name, size_t depth) { Engine engine; uint64_t line_cnt = 0; uint64_t correct_nodes = 0; char line[256]; char *words[16]; FILE *fp = fopen(file_name, "r"); while (fgets(line,...
23.777778
93
0.52648
nth-eye
1beef31fae8ba57335f5dda27afd7fafd3ede6f7
345
cpp
C++
apps/wail/WailWall/src/TweetProvider.cpp
eraly5555/Hub
e890f841f16988c642cf6390fa31c3c5ae82773d
[ "MIT" ]
2
2015-12-01T16:33:43.000Z
2016-04-07T03:43:32.000Z
apps/wail/WailWall/src/TweetProvider.cpp
eraly5555/Hub
e890f841f16988c642cf6390fa31c3c5ae82773d
[ "MIT" ]
null
null
null
apps/wail/WailWall/src/TweetProvider.cpp
eraly5555/Hub
e890f841f16988c642cf6390fa31c3c5ae82773d
[ "MIT" ]
3
2020-02-17T14:36:18.000Z
2021-08-09T12:02:59.000Z
#include "TweetProvider.h" TweetProvider::TweetProvider(int providerKind) :kind_of_provider(providerKind) { } void TweetProvider::addListener(TweetProviderListener* l) { listeners.push_back(l); } void TweetProvider::onNewTweet(const rtt::Tweet& tweet) { for(int i = 0; i < listeners.size(); ++i) { listeners[i]-...
20.294118
59
0.730435
eraly5555
1bf205d5e604203d7d74ea7ccd8be8d97587a91a
6,966
cpp
C++
roxe.cdt/roxe_llvm/lib/CodeGen/RegUsageInfoCollector.cpp
APFDev/actc
be5c1c0539d30a3745a725b0027767448ef8e1f6
[ "MIT" ]
5
2021-01-13T03:34:00.000Z
2021-09-09T05:42:18.000Z
roxe.cdt/roxe_llvm/lib/CodeGen/RegUsageInfoCollector.cpp
APFDev/actc
be5c1c0539d30a3745a725b0027767448ef8e1f6
[ "MIT" ]
1
2020-05-16T06:30:28.000Z
2020-05-16T06:37:55.000Z
roxe.cdt/roxe_llvm/lib/CodeGen/RegUsageInfoCollector.cpp
APFDev/actc
be5c1c0539d30a3745a725b0027767448ef8e1f6
[ "MIT" ]
6
2020-01-06T11:18:54.000Z
2020-01-07T09:32:18.000Z
//===-- RegUsageInfoCollector.cpp - Register Usage Information Collector --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
35.005025
80
0.678582
APFDev
1bf6c18551e57d5809e2bb938ae3aeda3c634112
120
cc
C++
modules/ugdk-core/src/filesystem/sdlfile.cc
uspgamedev/ugdk
95885a70df282a8e8e6e5c72b28a7f2f21bf7e99
[ "Zlib" ]
11
2015-03-06T13:14:32.000Z
2020-06-09T23:34:28.000Z
modules/ugdk-core/src/filesystem/sdlfile.cc
uspgamedev/ugdk
95885a70df282a8e8e6e5c72b28a7f2f21bf7e99
[ "Zlib" ]
62
2015-01-04T05:47:40.000Z
2018-06-15T17:00:25.000Z
modules/ugdk-core/src/filesystem/sdlfile.cc
uspgamedev/ugdk
95885a70df282a8e8e6e5c72b28a7f2f21bf7e99
[ "Zlib" ]
2
2017-04-05T20:35:49.000Z
2017-07-30T03:44:02.000Z
#include <filesystem/sdlfile.h> namespace ugdk { namespace filesystem { } // namespace filesystem } // namespace ugdk
15
31
0.741667
uspgamedev
1bf728ceb464e0e0ee8eb4d6b5f3dafe62f6af17
528
hpp
C++
math/lagrange_interpolation.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
math/lagrange_interpolation.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
math/lagrange_interpolation.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
#pragma once #include<vector> /** * @brief ラグランジュ補完(連続点->一点) */ template<typename T> T lagrange_interpolation(std::vector<T>v,long long n){ long long k=v.size(); if(n<k)return v[n]; std::vector<T> tmp1(k+1,1),tmp2(k+1,1); T ans=0; for(int i=0;i<k;++i)tmp1[i]=(i?tmp1[i-1]:T(1))*(n-i); for(int ...
27.789474
105
0.526515
hotman78
400b1bdefbade3c7e5d35fd0616c72b0d16da983
8,412
cpp
C++
FakeMath/FakeMath/tests/Vec3/Vector3ComponentTest.cpp
FakeEngine/FakeMath
ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e
[ "Apache-2.0" ]
null
null
null
FakeMath/FakeMath/tests/Vec3/Vector3ComponentTest.cpp
FakeEngine/FakeMath
ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e
[ "Apache-2.0" ]
null
null
null
FakeMath/FakeMath/tests/Vec3/Vector3ComponentTest.cpp
FakeEngine/FakeMath
ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e
[ "Apache-2.0" ]
3
2021-02-28T13:54:40.000Z
2021-04-27T14:58:33.000Z
#include "Vector3ComponentTest.h" #include "../../src/Core/Test.h" namespace FakeVector3Tests { int test_is_one_true() { FakeVec3f v(1.0f, 1.0f, 1.0f); bool expected = true; FakeTimer timer("FakeVector3Tests::test_is_one_true"); bool result = v.IsOne(); timer.Stop(); if (!assert_equal(timer, expected...
19.161731
68
0.664408
FakeEngine
400c60251c1c8863b820a12f7e482f84b66b9e7f
47,412
cpp
C++
software/build-gui-Qt_5_12_8_qt5_temporary-Profile/app/controls_MainHeader_qml.cpp
wajo10/Ventilator
ff6678d8c2b7037113f0947fb2d91b6b07fff7b9
[ "Apache-2.0" ]
null
null
null
software/build-gui-Qt_5_12_8_qt5_temporary-Profile/app/controls_MainHeader_qml.cpp
wajo10/Ventilator
ff6678d8c2b7037113f0947fb2d91b6b07fff7b9
[ "Apache-2.0" ]
null
null
null
software/build-gui-Qt_5_12_8_qt5_temporary-Profile/app/controls_MainHeader_qml.cpp
wajo10/Ventilator
ff6678d8c2b7037113f0947fb2d91b6b07fff7b9
[ "Apache-2.0" ]
null
null
null
// /controls/MainHeader.qml namespace QmlCacheGeneratedCode { namespace _controls_MainHeader_qml { extern const unsigned char qmlData alignas(16) [] = { 0x71,0x76,0x34,0x63,0x64,0x61,0x74,0x61, 0x20,0x0,0x0,0x0,0x8,0xc,0x5,0x0, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0xd4,0x29,0x0,0x0,0x31,0x30,0x31,0x37, 0x39,0x39,0x66,0x38...
35.172107
53
0.745128
wajo10
400d68d590b9b6b459d49eae322b4e3a4184fdc8
1,579
cpp
C++
C++/LeetCode/0130.cpp
spycedcoffee/DSA
1e559ed5251a2005cc2815438d865f0293f4cd44
[ "MIT" ]
4
2021-08-28T19:16:50.000Z
2022-03-04T19:46:31.000Z
C++/LeetCode/0130.cpp
spycedcoffee/DSA
1e559ed5251a2005cc2815438d865f0293f4cd44
[ "MIT" ]
8
2021-10-29T19:10:51.000Z
2021-11-03T12:38:00.000Z
C++/LeetCode/0130.cpp
spycedcoffee/DSA
1e559ed5251a2005cc2815438d865f0293f4cd44
[ "MIT" ]
4
2021-09-06T05:53:07.000Z
2021-12-24T10:31:40.000Z
class Solution { public: void dfs(vector<vector<char>>& board, int i, int j, char c){ //base conditions if(i < 0 || j < 0 || i >= board.size() || j >= board[0].size() || board[i][j] != 'O') return; //update character value b...
27.701754
64
0.347688
spycedcoffee
400f17bc633c7e298e6ed50f864762f1dafea355
685
cpp
C++
C++ OOP/Friend functions/ComputerStore/ComputerStore/Laptop.cpp
BorisLechev/-University
c6a29bc7438733adb9f5818a9674f546187db555
[ "MIT" ]
null
null
null
C++ OOP/Friend functions/ComputerStore/ComputerStore/Laptop.cpp
BorisLechev/-University
c6a29bc7438733adb9f5818a9674f546187db555
[ "MIT" ]
1
2022-03-02T09:56:43.000Z
2022-03-02T09:56:43.000Z
C++ OOP/Friend functions/ComputerStore/ComputerStore/Laptop.cpp
BorisLechev/University
c6a29bc7438733adb9f5818a9674f546187db555
[ "MIT" ]
null
null
null
#include "pch.h" #include "Laptop.h" #include<iostream> using namespace std; Laptop::Laptop() : Computer() { batteryTime = 0; weight = 0; } Laptop::Laptop(float _speed, int _ram, int _hdd, int BatteryTime, float Weight) : Computer(_speed, _ram, _hdd) { SetBatteryTime(BatteryTime); SetWeight(Weight); } void L...
15.930233
79
0.690511
BorisLechev
4016db169068c64652d98ddeab6bca34d15e8639
2,073
cpp
C++
lib/har/src/coords.cpp
Ocead/HAR
341738dd6d513573635f4d6c51b9c7bd8abfcc2b
[ "BSD-2-Clause" ]
2
2020-09-11T18:11:10.000Z
2020-10-20T17:25:38.000Z
lib/har/src/coords.cpp
Ocead/HAR
341738dd6d513573635f4d6c51b9c7bd8abfcc2b
[ "BSD-2-Clause" ]
null
null
null
lib/har/src/coords.cpp
Ocead/HAR
341738dd6d513573635f4d6c51b9c7bd8abfcc2b
[ "BSD-2-Clause" ]
null
null
null
// // Created by Johannes on 03.06.2020. // #include <array> #include <sstream> #include <har/coords.hpp> #include <har/types.hpp> using namespace har::exception; invalid_direction::invalid_direction(std::string source, direction_t dir) : exception(std::move(source), "invalid_direction in " + source + ":\n\...
24.104651
86
0.485287
Ocead
4018af2e9ce03b7a1cd065e3db24fb672d59b41a
49
hpp
C++
src/boost_mpl_map_aux__erase_key_impl.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_mpl_map_aux__erase_key_impl.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_mpl_map_aux__erase_key_impl.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/mpl/map/aux_/erase_key_impl.hpp>
24.5
48
0.795918
miathedev
401a899d156034afb4daca10e67be8e09a70a04f
5,353
hpp
C++
STREAM/src/host/stream_benchmark.hpp
beiwang2003/HPCC_FPGA
9430e49f0bb9da11335eca87e54579a694f5ecba
[ "MIT" ]
15
2020-11-14T18:33:41.000Z
2022-03-19T12:57:35.000Z
STREAM/src/host/stream_benchmark.hpp
beiwang2003/HPCC_FPGA
9430e49f0bb9da11335eca87e54579a694f5ecba
[ "MIT" ]
7
2020-07-01T20:05:51.000Z
2021-06-30T11:14:51.000Z
STREAM/src/host/stream_benchmark.hpp
beiwang2003/HPCC_FPGA
9430e49f0bb9da11335eca87e54579a694f5ecba
[ "MIT" ]
7
2021-02-23T17:54:18.000Z
2022-03-04T06:19:40.000Z
/* Copyright (c) 2019 Marius Meyer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
24.221719
120
0.668971
beiwang2003
401ea9a76f144ef0e30c4a4680a8eb9f7df56bc7
4,048
cpp
C++
source/scene/MeshAkg.cpp
erickjung/aika3d
16400c796e169b2c6ca84974b6536583d2d8ceec
[ "MIT" ]
1
2017-10-11T04:05:45.000Z
2017-10-11T04:05:45.000Z
source/scene/MeshAkg.cpp
erickjung/aika3d
16400c796e169b2c6ca84974b6536583d2d8ceec
[ "MIT" ]
null
null
null
source/scene/MeshAkg.cpp
erickjung/aika3d
16400c796e169b2c6ca84974b6536583d2d8ceec
[ "MIT" ]
null
null
null
// Copyright (c) 2007-2016 Erick Jung // // This code is distributed under the terms and conditions of the MIT license. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restricti...
32.126984
83
0.730484
erickjung
4021b0a346b7106d717fe6c18f996308bcf1f295
512
cpp
C++
JEngine/src/JEngine/Renderer/Light/Light.cpp
peter-819/JEngine
f4362cdaa5e781e3a973cf84b604bd055b1b3880
[ "Apache-2.0" ]
1
2020-06-01T05:24:16.000Z
2020-06-01T05:24:16.000Z
JEngine/src/JEngine/Renderer/Light/Light.cpp
peter-819/JEngine
f4362cdaa5e781e3a973cf84b604bd055b1b3880
[ "Apache-2.0" ]
null
null
null
JEngine/src/JEngine/Renderer/Light/Light.cpp
peter-819/JEngine
f4362cdaa5e781e3a973cf84b604bd055b1b3880
[ "Apache-2.0" ]
null
null
null
#include "JEpch.h" #include "Light.h" namespace JEngine { void Light::setLight( glm::vec3 LightPosition, float AmbientLightScalar, float DiffuseLightScalar, float SpecularLightRadius, float SpecularLightPow ) { this->LightPosition = LightPosition, this->AmbientLightScalar = AmbientLightScalar, this->...
23.272727
50
0.765625
peter-819
4030ae6a95c8a2b9ded3d1cf1f0994ae76d7325c
5,906
cpp
C++
main.cpp
matferib/tabuleiro-virtual
e6445327e2840faa6a89c9883e395a229ba2bd0f
[ "CC-BY-3.0" ]
4
2015-03-03T21:39:52.000Z
2020-08-01T23:39:43.000Z
main.cpp
matferib/tabuleiro-virtual
e6445327e2840faa6a89c9883e395a229ba2bd0f
[ "CC-BY-3.0" ]
null
null
null
main.cpp
matferib/tabuleiro-virtual
e6445327e2840faa6a89c9883e395a229ba2bd0f
[ "CC-BY-3.0" ]
1
2015-03-14T09:25:28.000Z
2015-03-14T09:25:28.000Z
/** @file main.cpp o inicio de tudo. Responsavel por instanciar a interface grafica principal. */ #if ANDROID #include <android_native_app_glue.h> #endif #include <iostream> #include <memory> #include <stdexcept> #if USAR_GFLAGS #include <gflags/gflags.h> #endif #include <QDir> #include <QLocale> #include <Qt> #incl...
29.093596
122
0.707078
matferib
4033894aa69603d136a9bcf003917559a6a7adc6
1,189
cpp
C++
test/main.cpp
xue2sheng/spaghettiCode
6a2f3e52044b60fdc704573d624114457ce2af2c
[ "MIT" ]
null
null
null
test/main.cpp
xue2sheng/spaghettiCode
6a2f3e52044b60fdc704573d624114457ce2af2c
[ "MIT" ]
null
null
null
test/main.cpp
xue2sheng/spaghettiCode
6a2f3e52044b60fdc704573d624114457ce2af2c
[ "MIT" ]
null
null
null
#define BOOST_TEST_MAIN #define BOOST_TEST_MODULE UnitTest #include <boost/test/unit_test.hpp> #include <boost/sml.hpp> #include <cassert> #include "spaghettiCode.h" #include "logic.h" #include "utils/sml2plantuml.h" namespace sml = boost::sml; namespace test = spaghettiCode; // just logging something ( --log_leve...
24.265306
75
0.656854
xue2sheng
4036ec61b6802cce03ef5aba7a9deb85beba9fbf
729
cpp
C++
mem_search/main.cpp
visuve/RandFile
b433bb708de8a71e7379803c2d091c104c2740fc
[ "Beerware" ]
null
null
null
mem_search/main.cpp
visuve/RandFile
b433bb708de8a71e7379803c2d091c104c2740fc
[ "Beerware" ]
null
null
null
mem_search/main.cpp
visuve/RandFile
b433bb708de8a71e7379803c2d091c104c2740fc
[ "Beerware" ]
null
null
null
#include "mem_search.hpp" #include <iostream> int main(int argc, char* argv[]) { if (argc < 3) { std::cerr << "Usage " << argv[0] << " <process-name> <value>" << std::endl; return EXIT_FAILURE; } try { std::string_view process_name = argv[1]; std::string_view value_to_search = argv[2]; uint64_t add...
20.828571
86
0.625514
visuve
4039487446eb2f7c165f670245ab4d5116e887ba
1,027
cpp
C++
src/Subsystems/Intake/Intake.cpp
Overture-7421/InsertRobotNameCode2022
debb1ff5d609e643e12c7a28dc17193670fcec14
[ "BSD-3-Clause" ]
1
2022-01-31T19:12:53.000Z
2022-01-31T19:12:53.000Z
src/Subsystems/Intake/Intake.cpp
Overture-7421/InsertRobotNameCode2022
debb1ff5d609e643e12c7a28dc17193670fcec14
[ "BSD-3-Clause" ]
null
null
null
src/Subsystems/Intake/Intake.cpp
Overture-7421/InsertRobotNameCode2022
debb1ff5d609e643e12c7a28dc17193670fcec14
[ "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 "Intake.h" #include <frc/smartdashboard/SmartDashboard.h> Intake::Intake() { intakeMotor.SetStatusFramePerio...
31.121212
110
0.759494
Overture-7421
4039d5b45096d49b53fe9632592a0f6ee415e363
2,179
cc
C++
src/stats.cc
nbdd0121/TLBSim
24d76875b7dda51687e54cbfe9080b0218e95ab6
[ "BSD-2-Clause" ]
9
2019-05-16T15:12:13.000Z
2021-06-19T12:25:27.000Z
src/stats.cc
nbdd0121/TLBSim
24d76875b7dda51687e54cbfe9080b0218e95ab6
[ "BSD-2-Clause" ]
null
null
null
src/stats.cc
nbdd0121/TLBSim
24d76875b7dda51687e54cbfe9080b0218e95ab6
[ "BSD-2-Clause" ]
1
2020-11-25T07:30:55.000Z
2020-11-25T07:30:55.000Z
/* * SPDX-License-Identifier: BSD-2-Clause * Copyright (c) 2019, Gary Guo */ #include <cstdio> #include "api.h" #include "config.h" #include "stats.h" __attribute__((visibility("default"))) uint64_t tlbsim_instret; __attribute__((visibility("default"))) uint64_t tlbsim_minstret; namespace tlbsim { atomic_u64_t ...
28.671053
104
0.647086
nbdd0121
40437a279d34d1a0e59bc05bbda77dde19584ed3
13,982
cpp
C++
sakura_core/types/CType_Java.cpp
zlatantan/sakura
a722f9c86f2860606b3f9e7dc79bb169294cfaea
[ "Zlib" ]
1
2019-03-15T16:55:33.000Z
2019-03-15T16:55:33.000Z
sakura_core/types/CType_Java.cpp
zlatantan/sakura
a722f9c86f2860606b3f9e7dc79bb169294cfaea
[ "Zlib" ]
null
null
null
sakura_core/types/CType_Java.cpp
zlatantan/sakura
a722f9c86f2860606b3f9e7dc79bb169294cfaea
[ "Zlib" ]
null
null
null
/*! @file */ /* Copyright (C) 2008, 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...
27.577909
168
0.575168
zlatantan
4049e2d877b4fd48687aa38f6e7e81a21c582186
565
cpp
C++
snmp_client.cpp
rfrandse/phosphor-snmp
ce714f4080c5ac1c9e0861520e1243ecbbb3b918
[ "Apache-2.0" ]
null
null
null
snmp_client.cpp
rfrandse/phosphor-snmp
ce714f4080c5ac1c9e0861520e1243ecbbb3b918
[ "Apache-2.0" ]
null
null
null
snmp_client.cpp
rfrandse/phosphor-snmp
ce714f4080c5ac1c9e0861520e1243ecbbb3b918
[ "Apache-2.0" ]
null
null
null
#include "snmp_client.hpp" #include "snmp_conf_manager.hpp" namespace phosphor { namespace network { namespace snmp { Client::Client(sdbusplus::bus::bus& bus, const char* objPath, ConfManager& parent, const std::string& address, uint16_t port) : Ifaces(bus, objPath, true), parent(parent) { ...
18.225806
80
0.677876
rfrandse
404b0bef436688d78621d5c7483ef1ae54d2b7d1
2,328
cpp
C++
app/core/src/pickle/app_core/main.cpp
komiga/pickle
b39b186d3c66955ade255543e4c96d2a16044d50
[ "MIT" ]
2
2018-06-02T15:11:12.000Z
2021-02-08T17:27:21.000Z
app/core/src/pickle/app_core/main.cpp
komiga/pickle
b39b186d3c66955ade255543e4c96d2a16044d50
[ "MIT" ]
null
null
null
app/core/src/pickle/app_core/main.cpp
komiga/pickle
b39b186d3c66955ade255543e4c96d2a16044d50
[ "MIT" ]
null
null
null
#line 2 "pickle/app_core/main.cpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ #include <pickle/app_core/config.hpp> #include <pickle/app_core/types.hpp> #include <pickle/app_core/internal.hpp> #include <togo/core/utility/utility.hpp> #include <togo/core/log/log.hpp> #include <togo...
23.515152
72
0.719502
komiga
404c42d211649d5928d9aee0942c9ca4905d83ce
3,309
cpp
C++
tests/unit/plugins/keras_support/resize_operation.cpp
Yeahhhh/phylanx
b6b0843f9b2e54c6d0abea24c04321414d2b67b9
[ "BSL-1.0" ]
1
2019-08-17T21:19:57.000Z
2019-08-17T21:19:57.000Z
tests/unit/plugins/keras_support/resize_operation.cpp
tapaswenipathak/phylanx
62859f2b25d31ba469df64801401c996261163a9
[ "BSL-1.0" ]
null
null
null
tests/unit/plugins/keras_support/resize_operation.cpp
tapaswenipathak/phylanx
62859f2b25d31ba469df64801401c996261163a9
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2019 Shahrzad Shirzad // Copyright (c) 2019 Hartmut Kaiser // // 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) #include <phylanx/phylanx.hpp> #include <hpx/hpx_main.hpp> #include <hpx/util/lightwei...
45.958333
80
0.410698
Yeahhhh
4056036fdd58cabd740f68bbabcd4235a1e04e08
4,855
cpp
C++
util/background_thread_clock_source.cpp
RedBeard0531/mongo_utils
402c2023df7d67609ce9da8e405bf13cdd270e20
[ "Apache-2.0" ]
1
2018-03-14T21:48:43.000Z
2018-03-14T21:48:43.000Z
util/background_thread_clock_source.cpp
RedBeard0531/mongo_utils
402c2023df7d67609ce9da8e405bf13cdd270e20
[ "Apache-2.0" ]
null
null
null
util/background_thread_clock_source.cpp
RedBeard0531/mongo_utils
402c2023df7d67609ce9da8e405bf13cdd270e20
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2016 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
35.181159
100
0.663646
RedBeard0531
4056120691669b9a58fe3af44f64fee5d90ab691
3,190
cpp
C++
src/backends/backendsCommon/test/layerTests/FillTestImpl.cpp
Srivathsav-max/armnn-clone
af2daa6526623c91ee97f7141be4d1b07de92a48
[ "MIT" ]
1
2022-03-31T18:21:59.000Z
2022-03-31T18:21:59.000Z
src/backends/backendsCommon/test/layerTests/FillTestImpl.cpp
Elm8116/armnn
e571cde8411803aec545b1070ed677e481f46f3f
[ "MIT" ]
null
null
null
src/backends/backendsCommon/test/layerTests/FillTestImpl.cpp
Elm8116/armnn
e571cde8411803aec545b1070ed677e481f46f3f
[ "MIT" ]
null
null
null
// // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "FillTestImpl.hpp" #include <DataTypeUtils.hpp> #include <armnnTestUtils/TensorCopyUtils.hpp> #include <armnnTestUtils/WorkloadTestUtils.hpp> #include <armnnTestUtils/TensorHelpers.hpp> template<armnn::...
40.379747
116
0.726019
Srivathsav-max
40570a90c6bffdb2b84250b8eb2d0ea92d04af90
5,401
cpp
C++
test/test_06.cpp
asherikov/oru_walk_module
96a58b331b7d3011f414cc9b1643b44b80ea8710
[ "BSD-2-Clause" ]
9
2016-02-21T14:23:27.000Z
2021-07-30T13:27:24.000Z
test/test_06.cpp
asherikov/oru_walk_module
96a58b331b7d3011f414cc9b1643b44b80ea8710
[ "BSD-2-Clause" ]
null
null
null
test/test_06.cpp
asherikov/oru_walk_module
96a58b331b7d3011f414cc9b1643b44b80ea8710
[ "BSD-2-Clause" ]
5
2015-06-23T16:30:21.000Z
2018-08-20T11:39:32.000Z
/** * @file * @author Alexander Sherikov */ #include <iostream> #include <fstream> #include <cstdio> #include <limits> #include <cmath> // abs, M_PI #include <cstring> //strcmp #include "WMG.h" #include "smpc_solver.h" #include "nao_igm.h" #include "leg2joints.h" #include "joints_sensors_id.h" using namespace ...
31.770588
162
0.50361
asherikov
4059781100360e022c0f9f6b9fa1f7f2027488d1
9,387
cc
C++
src/ArtificialViscosity/FiniteVolumeViscosity.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/ArtificialViscosity/FiniteVolumeViscosity.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/ArtificialViscosity/FiniteVolumeViscosity.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
//---------------------------------Spheral++----------------------------------// // A finite-volume based viscosity. Assumes you have constructred the // tessellation in the state. // // Created by JMO, Tue Aug 13 09:43:37 PDT 2013 //----------------------------------------------------------------------------// #incl...
38.004049
109
0.569404
markguozhiming
405b2285a681d2f09d9b9cc381d787c0286cdd92
211
hpp
C++
src/vectorized_sort.hpp
Tabasz/quick-AVX-512-sort
a614e76040640359b2c256c41367dbbad68c63ab
[ "MIT" ]
null
null
null
src/vectorized_sort.hpp
Tabasz/quick-AVX-512-sort
a614e76040640359b2c256c41367dbbad68c63ab
[ "MIT" ]
null
null
null
src/vectorized_sort.hpp
Tabasz/quick-AVX-512-sort
a614e76040640359b2c256c41367dbbad68c63ab
[ "MIT" ]
null
null
null
#ifndef AVX512_SORT_HPP #define AVX512_SORT_HPP //sorting network with avx512 void sorting_network512(int *arr, int n); //quicksort with avx512 void quicksort512(int *arr, int n); #endif /* AVX512_SORT_HPP */
21.1
41
0.772512
Tabasz
4061c68b3dfaca1b5a4ce6db6cab22cc121a88b9
2,936
cpp
C++
tests/test_client_server.cpp
lpcvoid/cpp-net-lib
e9961392b847cb39143d6b08dd2406361aff027c
[ "MIT" ]
10
2021-11-25T09:53:30.000Z
2022-03-04T07:21:38.000Z
tests/test_client_server.cpp
lpcvoid/cpp-net-lib
e9961392b847cb39143d6b08dd2406361aff027c
[ "MIT" ]
1
2021-11-24T10:49:21.000Z
2021-11-24T10:49:21.000Z
tests/test_client_server.cpp
lpcvoid/cpp-net-lib
e9961392b847cb39143d6b08dd2406361aff027c
[ "MIT" ]
2
2021-11-27T02:57:18.000Z
2021-11-28T08:55:14.000Z
#include "../doctest/doctest/doctest.h" #include "../src/netlib.hpp" #include <iostream> #include <random> #include <atomic> #include <sstream> using namespace std::chrono_literals; static const std::string hello_msg = "hello!"; static const std::vector<uint8_t> client_message = {1, 2, 3}; extern uint16_t test_port;...
35.373494
137
0.690395
lpcvoid
4062cdc1ef5848359255be6a7b9e64417042fe87
1,843
cpp
C++
LeetCode/Problems/0448_Find_All_Numbers_Disappeared_in_an_Array/find_all_numbers_disappeared_in_an_array.cpp
jocodoma/coding-interview-prep
f7f06be0bc5687c376b753ba3fa46b07412eeb80
[ "MIT" ]
null
null
null
LeetCode/Problems/0448_Find_All_Numbers_Disappeared_in_an_Array/find_all_numbers_disappeared_in_an_array.cpp
jocodoma/coding-interview-prep
f7f06be0bc5687c376b753ba3fa46b07412eeb80
[ "MIT" ]
null
null
null
LeetCode/Problems/0448_Find_All_Numbers_Disappeared_in_an_Array/find_all_numbers_disappeared_in_an_array.cpp
jocodoma/coding-interview-prep
f7f06be0bc5687c376b753ba3fa46b07412eeb80
[ "MIT" ]
null
null
null
class Solution { public: vector<int> findDisappearedNumbers(vector<int>& nums) { // return bruteForce(nums); // return hashMap(nums); return arrayIndex(nums); } // time complexity: O(n^2), space complexity: O(1) vector<int> bruteForce(vector<int>& nums){ int length = num...
29.253968
133
0.492675
jocodoma
4064616b39d00b2112f7abc11e211213124820cc
3,717
cpp
C++
es-core/src/anim/StoryboardAnimator.cpp
anthonycaccese/351elec-emulationstation
bba829baf40747564617a58c98eaeb40a89701ff
[ "Apache-2.0", "MIT" ]
1
2020-12-31T12:51:04.000Z
2020-12-31T12:51:04.000Z
es-core/src/anim/StoryboardAnimator.cpp
anthonycaccese/351elec-emulationstation
bba829baf40747564617a58c98eaeb40a89701ff
[ "Apache-2.0", "MIT" ]
null
null
null
es-core/src/anim/StoryboardAnimator.cpp
anthonycaccese/351elec-emulationstation
bba829baf40747564617a58c98eaeb40a89701ff
[ "Apache-2.0", "MIT" ]
1
2021-01-08T09:17:01.000Z
2021-01-08T09:17:01.000Z
#include "StoryboardAnimator.h" #include "PowerSaver.h" StoryboardAnimator::StoryboardAnimator(GuiComponent* comp, ThemeStoryboard* storyboard) { mHasInitialProperties = false; mPaused = true; mComponent = comp; mStoryBoard = storyboard; mRepeatCount = 0; mCurrentTime = 0; } StoryboardAnimator::~StoryboardAnima...
18.964286
88
0.681733
anthonycaccese
40661b10ae85891f205155b0dcc2156a14a7cc35
541
cpp
C++
Model-View/TableModel/main.cpp
BigWhiteCat/Qt-QML
7d601721db535167ea257e8baffc1de83cc0aa15
[ "MIT" ]
null
null
null
Model-View/TableModel/main.cpp
BigWhiteCat/Qt-QML
7d601721db535167ea257e8baffc1de83cc0aa15
[ "MIT" ]
null
null
null
Model-View/TableModel/main.cpp
BigWhiteCat/Qt-QML
7d601721db535167ea257e8baffc1de83cc0aa15
[ "MIT" ]
null
null
null
#include <QApplication> #include <QTableView> #include "CiteModel.h" int main(int argc, char **argv) { QApplication app(argc, argv); QStringList cites; cites << "KaiFeng" << "ShangHai" << "ZhengZhou" << "QingDao" << "NingBo" << "Xi'an" << "HaiE...
19.321429
44
0.584104
BigWhiteCat
4069ff451cc4055cbf1b92a6e625d22a62819210
4,687
cpp
C++
console.cpp
hydrabus/hydratool
95a3dbdbf183f6b84703517b5e83f097baf40ee9
[ "BSD-3-Clause" ]
27
2017-07-25T19:10:33.000Z
2022-01-29T21:44:03.000Z
console.cpp
hydrabus/hydratool
95a3dbdbf183f6b84703517b5e83f097baf40ee9
[ "BSD-3-Clause" ]
3
2017-07-25T17:59:25.000Z
2020-02-21T07:23:03.000Z
console.cpp
hydrabus/hydratool
95a3dbdbf183f6b84703517b5e83f097baf40ee9
[ "BSD-3-Clause" ]
2
2021-04-28T19:25:40.000Z
2021-09-24T21:53:09.000Z
#include <QtWidgets> #include "console.h" #include <QScrollBar> //#include <QtCore/QDebug> Console::Console(QWidget *parent) : QPlainTextEdit(parent) { lineNumberArea = new LineNumberArea(this); updateLineNumberAreaWidth(0); highlightCurrentLine(); //document()->setMaximumBlockCount(100); ...
25.752747
97
0.653296
hydrabus
406e2ca3ca600d5a9b097249457578cc83219338
1,912
cpp
C++
cpp/sowcpp/src/binsearch.cpp
newnix/Forge
6d18105460fabc20592ed3c29813173cdb57d512
[ "BSD-3-Clause-Clear" ]
null
null
null
cpp/sowcpp/src/binsearch.cpp
newnix/Forge
6d18105460fabc20592ed3c29813173cdb57d512
[ "BSD-3-Clause-Clear" ]
null
null
null
cpp/sowcpp/src/binsearch.cpp
newnix/Forge
6d18105460fabc20592ed3c29813173cdb57d512
[ "BSD-3-Clause-Clear" ]
null
null
null
// Binary search example found on p. 456 #include <iostream> using namespace std; // Function prototype int binarySearch(const int [], int, int); const int SIZE = 20; int main() { // Array with employee ids sorted in ascending order // Binary searches only work when the array is sorted int idNums[SIZE] = {101, 142...
28.537313
87
0.666841
newnix
4070068f3c718a54124a91076943f2ef07098ef2
80,658
cxx
C++
PWGPP/EMCAL/AliAnalysisTaskEMCALPi0CalibSelection.cxx
eciesla/AliPhysics
a9a6dc33c8793ea999348c57cebbce445797e8e4
[ "BSD-3-Clause" ]
null
null
null
PWGPP/EMCAL/AliAnalysisTaskEMCALPi0CalibSelection.cxx
eciesla/AliPhysics
a9a6dc33c8793ea999348c57cebbce445797e8e4
[ "BSD-3-Clause" ]
null
null
null
PWGPP/EMCAL/AliAnalysisTaskEMCALPi0CalibSelection.cxx
eciesla/AliPhysics
a9a6dc33c8793ea999348c57cebbce445797e8e4
[ "BSD-3-Clause" ]
1
2018-09-22T01:09:25.000Z
2018-09-22T01:09:25.000Z
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee,...
41.215125
253
0.624588
eciesla
40831775a4379a7dcc33b9c29071957b1f4cc7b6
498
cpp
C++
Elysian/src/Elysian/Core/Application.cpp
Kainev/Elysian
6dcb2d2e1ccf3b82abdfd1d271c204723fdec003
[ "MIT" ]
1
2020-03-27T10:07:20.000Z
2020-03-27T10:07:20.000Z
Elysian/src/Elysian/Core/Application.cpp
Kainev/Elysian
6dcb2d2e1ccf3b82abdfd1d271c204723fdec003
[ "MIT" ]
null
null
null
Elysian/src/Elysian/Core/Application.cpp
Kainev/Elysian
6dcb2d2e1ccf3b82abdfd1d271c204723fdec003
[ "MIT" ]
null
null
null
#include "Elysian/Core/pch.h" #include "Elysian/Core/application.h" #include <GLFW/glfw3.h> namespace Elysian { Application* Application::s_instance = nullptr; Application::Application(const std::string& name) { s_instance = this; } Application::~Application() { } void Application::exit() { m_running ...
15.090909
50
0.680723
Kainev
40851ce8930e385bbd84bfb16379ee1d4c113ae1
6,719
cc
C++
cxx/python/algorithms/basic_py.cc
seisman/mspass
11bd292a778a2a0d8470734239a7347fe4a1c0a7
[ "BSD-3-Clause" ]
1
2021-10-18T10:02:13.000Z
2021-10-18T10:02:13.000Z
cxx/python/algorithms/basic_py.cc
seisman/mspass
11bd292a778a2a0d8470734239a7347fe4a1c0a7
[ "BSD-3-Clause" ]
null
null
null
cxx/python/algorithms/basic_py.cc
seisman/mspass
11bd292a778a2a0d8470734239a7347fe4a1c0a7
[ "BSD-3-Clause" ]
null
null
null
#include <pybind11/pybind11.h> #include <mspass/algorithms/algorithms.h> #include <mspass/algorithms/Butterworth.h> #include <mspass/utility/Metadata.h> namespace mspass { namespace mspasspy { namespace py=pybind11; using namespace std; using namespace mspass::seismic; using namespace mspass::algorithms; PYBIND11_M...
41.732919
132
0.694597
seisman
408a449d1deec21190dfcee2bfbd94f9ceb260ea
4,026
cpp
C++
gmtl-0.6.1/Test/TestSuite/TestCases/AABoxOpsTest.cpp
Glitch0011/QuadTree-Example
3558c999f68475bc98b8fa33b0f6d14076c9ec48
[ "MIT" ]
null
null
null
gmtl-0.6.1/Test/TestSuite/TestCases/AABoxOpsTest.cpp
Glitch0011/QuadTree-Example
3558c999f68475bc98b8fa33b0f6d14076c9ec48
[ "MIT" ]
null
null
null
gmtl-0.6.1/Test/TestSuite/TestCases/AABoxOpsTest.cpp
Glitch0011/QuadTree-Example
3558c999f68475bc98b8fa33b0f6d14076c9ec48
[ "MIT" ]
null
null
null
// GMTL is (C) Copyright 2001-2010 by Allen Bierbaum // Distributed under the GNU Lesser General Public License 2.1 with an // addendum covering inlined code. (See accompanying files LICENSE and // LICENSE.addendum or http://www.gnu.org/copyleft/lesser.txt) #include "AABoxOpsTest.h" #include "../Suites.h" #include <cp...
32.467742
135
0.569796
Glitch0011
408e24c3cf0c1e43255ca8663573376b9c94dc39
6,968
cpp
C++
src/Utils/window.cpp
AlexanderVeselov/RayTracing
d6df361c1054a1ebaf67c82805c44f94a4cda7c7
[ "MIT" ]
90
2017-08-06T10:13:59.000Z
2022-03-19T09:49:43.000Z
src/Utils/window.cpp
AlexanderVeselov/RayTracing
d6df361c1054a1ebaf67c82805c44f94a4cda7c7
[ "MIT" ]
2
2017-06-08T02:16:56.000Z
2020-03-24T01:10:48.000Z
src/Utils/window.cpp
AlexanderVeselov/RayTracing
d6df361c1054a1ebaf67c82805c44f94a4cda7c7
[ "MIT" ]
15
2017-08-06T12:58:54.000Z
2022-03-31T05:45:46.000Z
/***************************************************************************** MIT License Copyright(c) 2021 Alexander Veselov Permission is hereby granted, free of charge, to any person obtaining a copy of this softwareand associated documentation files(the "Software"), to deal in the Software without restricti...
28.096774
112
0.636625
AlexanderVeselov
408ed88518a1306ad3073900ae3aaa4871dad3a3
1,381
cpp
C++
Deitel/Chapter13/exercises/13.13/Triangle.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
19
2019-09-15T12:23:51.000Z
2020-06-18T08:31:26.000Z
Deitel/Chapter13/exercises/13.13/Triangle.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
15
2021-12-07T06:46:03.000Z
2022-01-31T07:55:32.000Z
Deitel/Chapter13/exercises/13.13/Triangle.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
13
2019-06-29T02:58:27.000Z
2020-05-07T08:52:22.000Z
/* * ===================================================================================== * * Filename: Triangle.cpp * * Description: Exercise 13.13 - Shape Hierarchy * 2D Triangle * * Version: 1.0 * Created: 17/08/16 17:54:55 * Revision: none * Compi...
25.109091
88
0.491673
SebastianTirado
408eeee4b6aada47deb9e577ac2dad788cf2aa4d
797
cpp
C++
LeetCode/Problems/Algorithms/#1638_CountSubstringsThatDifferByOneCharacter_sol4_greedy_O(N^3)_time_O(1)_extra_space_4ms_6.5MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#1638_CountSubstringsThatDifferByOneCharacter_sol4_greedy_O(N^3)_time_O(1)_extra_space_4ms_6.5MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#1638_CountSubstringsThatDifferByOneCharacter_sol4_greedy_O(N^3)_time_O(1)_extra_space_4ms_6.5MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: int countSubstrings(string s, string t) { const int N = s.length(); const int M = t.length(); int answer = 0; for(int startPos = 0; startPos < N; ++startPos){ for(int i = 0; i < M; ++i){ int rightCnt = 0; ...
31.88
88
0.3601
Tudor67
4090b2b19eb2e2768db1661642135cefde72e394
1,490
cpp
C++
common-src/log/vs_editor_log_definitions.cpp
Selur/vsViewer
1331e7bdf287e902a34dfa1948915af63aee7fac
[ "MIT" ]
3
2019-09-10T03:43:36.000Z
2022-01-05T23:53:22.000Z
common-src/log/vs_editor_log_definitions.cpp
Selur/vsViewer
1331e7bdf287e902a34dfa1948915af63aee7fac
[ "MIT" ]
null
null
null
common-src/log/vs_editor_log_definitions.cpp
Selur/vsViewer
1331e7bdf287e902a34dfa1948915af63aee7fac
[ "MIT" ]
null
null
null
#include "vs_editor_log_definitions.h" #include "styled_log_view_core.h" #include <VapourSynth.h> #include <map> #include <algorithm> //============================================================================== const char LOG_STYLE_ERROR[] = "error"; const char LOG_STYLE_DEBUG[] = "debug"; const char LOG_STYLE_...
29.8
80
0.636242
Selur
4096c4f5a5d108a458bcddd0a1b5a3d26871dcdb
3,891
cpp
C++
src/main.cpp
betasheet/diffingo
285d21b16c118155e5c149b20fcb20a20276f3d7
[ "MIT" ]
null
null
null
src/main.cpp
betasheet/diffingo
285d21b16c118155e5c149b20fcb20a20276f3d7
[ "MIT" ]
null
null
null
src/main.cpp
betasheet/diffingo
285d21b16c118155e5c149b20fcb20a20276f3d7
[ "MIT" ]
null
null
null
/* * main.cpp * * Distributed under the MIT License (MIT). * * Copyright (c) 2015 Eric Seckler * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including withou...
37.057143
80
0.640709
betasheet
409cdcb4df69b0888372e910ed07aac2f6c81deb
9,559
cpp
C++
native/graphics/render_light_manager.cpp
49View/event_horizon
9b78c9318e1a785384ab01eb4d90e79f0192c6ad
[ "BSD-3-Clause" ]
null
null
null
native/graphics/render_light_manager.cpp
49View/event_horizon
9b78c9318e1a785384ab01eb4d90e79f0192c6ad
[ "BSD-3-Clause" ]
7
2021-09-02T05:58:24.000Z
2022-02-27T07:06:43.000Z
native/graphics/render_light_manager.cpp
49View/event_horizon
9b78c9318e1a785384ab01eb4d90e79f0192c6ad
[ "BSD-3-Clause" ]
2
2020-02-06T02:05:15.000Z
2021-11-25T11:35:14.000Z
#include "render_light_manager.h" #include <core/math/spherical_harmonics.h> #include <core/math/anim.h> #include <core/descriptors/uniform_names.h> #include <graphics/shadowmap_manager.h> #include <graphics/program_uniform_set.h> void LightBase::toggleLightIntensity( float _intensity ) { goingUpToggle(); Tim...
41.202586
150
0.709907
49View
40a0513adb95f3f1390954c3bc0346a3f83219f5
2,487
hpp
C++
flightros/include/flightros/pilot/circuit_pilot.hpp
aerostack2-developers/flightmare
2a7dd999391c70c12805ae7b2ae06e21da026185
[ "MIT" ]
null
null
null
flightros/include/flightros/pilot/circuit_pilot.hpp
aerostack2-developers/flightmare
2a7dd999391c70c12805ae7b2ae06e21da026185
[ "MIT" ]
null
null
null
flightros/include/flightros/pilot/circuit_pilot.hpp
aerostack2-developers/flightmare
2a7dd999391c70c12805ae7b2ae06e21da026185
[ "MIT" ]
null
null
null
#ifndef CIRCUIT_PILOT_HPP_ #define CIRCUIT_PILOT_HPP_ #include <Eigen/Dense> #include <memory> // ros #include <cv_bridge/cv_bridge.h> #include <nav_msgs/msg/odometry.hpp> #include <rclcpp/rclcpp.hpp> #include "as2_core/node.hpp" // flightlib #include "flightlib/bridges/unity_bridge.hpp" #include "flightlib/common...
29.607143
74
0.773221
aerostack2-developers
40a1bc3b85362c25b4af39f9203a4c3d021848c3
6,370
cpp
C++
src/mfx/pi/ParamStateSet.cpp
mikelange49/pedalevite
a81bd8a6119c5920995ec91b9f70e11e9379580e
[ "WTFPL" ]
null
null
null
src/mfx/pi/ParamStateSet.cpp
mikelange49/pedalevite
a81bd8a6119c5920995ec91b9f70e11e9379580e
[ "WTFPL" ]
null
null
null
src/mfx/pi/ParamStateSet.cpp
mikelange49/pedalevite
a81bd8a6119c5920995ec91b9f70e11e9379580e
[ "WTFPL" ]
null
null
null
/***************************************************************************** ParamStateSet.cpp Author: Laurent de Soras, 2016 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under t...
22.041522
91
0.632653
mikelange49
40a3ab9e6c010b72773549f970ff3a5b527f07e3
839
cpp
C++
main.cpp
pbouamriou/TestLua
528641b41e6467cacbfafc2a39445fecc7df5672
[ "MIT" ]
null
null
null
main.cpp
pbouamriou/TestLua
528641b41e6467cacbfafc2a39445fecc7df5672
[ "MIT" ]
null
null
null
main.cpp
pbouamriou/TestLua
528641b41e6467cacbfafc2a39445fecc7df5672
[ "MIT" ]
null
null
null
extern "C" { #include <lua.h> #include <lualib.h> #include <lauxlib.h> } #include <iostream> #include <sstream> #include "test1.h" #include "test2.h" int error(lua_State* state) { std::cout << "Error, Top : " << lua_gettop(state) << std::endl; std::cout << lua_tostring(state, 1) << std::endl; return 0; ...
19.068182
68
0.615018
pbouamriou
40a8a80f6b78e59026625aa625caec6b47ae9227
370
cpp
C++
c03/ex3_42.cpp
qzhang0/CppPrimer
315ef879bd4d3b51d594e33b049adee0d47e4c11
[ "MIT" ]
null
null
null
c03/ex3_42.cpp
qzhang0/CppPrimer
315ef879bd4d3b51d594e33b049adee0d47e4c11
[ "MIT" ]
null
null
null
c03/ex3_42.cpp
qzhang0/CppPrimer
315ef879bd4d3b51d594e33b049adee0d47e4c11
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <cstring> using std::cout; using std::endl; using std::vector; int main() { vector<int> ivec{0, 1, 2, 3, 4}; auto sz = ivec.size(); int ia[sz]; int i = 0; for (auto it = ivec.begin(); it != ivec.end(); it++) { ia[i++] = *it; } ...
16.086957
58
0.494595
qzhang0
40ab696325bbd0782216592c8ba95d975be82cc6
2,126
cpp
C++
Src/AppsDev/Hardware/device/device.cpp
zc110747/embed_manage_system
f7ec87277405ac380d5d5cb3e20240afcd505740
[ "MIT" ]
null
null
null
Src/AppsDev/Hardware/device/device.cpp
zc110747/embed_manage_system
f7ec87277405ac380d5d5cb3e20240afcd505740
[ "MIT" ]
null
null
null
Src/AppsDev/Hardware/device/device.cpp
zc110747/embed_manage_system
f7ec87277405ac380d5d5cb3e20240afcd505740
[ "MIT" ]
null
null
null
/* * device.cpp * * Created on: 2021 Dec 11 15:08:05 */ #include "device.hpp" namespace USR_DEVICE { device::device(std::string dev) { dev_str = dev; device_fd = open(dev_str.c_str(), O_RDWR); if(device_fd < 0) { printf("device driver %s open ...
21.474747
70
0.440734
zc110747
40ad101a70c4242d64c303f886e8998ada6a8162
2,993
hpp
C++
include/stlcache/policy_lfuagingstar.hpp
ueberaccelerate/stlcache
cd5fd2a1ac0ee38d147dbc3cc3c6ac7087814f0c
[ "BSL-1.0" ]
95
2015-01-18T13:37:26.000Z
2022-03-05T16:27:41.000Z
include/stlcache/policy_lfuagingstar.hpp
ueberaccelerate/stlcache
cd5fd2a1ac0ee38d147dbc3cc3c6ac7087814f0c
[ "BSL-1.0" ]
6
2018-05-17T13:15:59.000Z
2020-10-02T16:03:35.000Z
include/stlcache/policy_lfuagingstar.hpp
ueberaccelerate/stlcache
cd5fd2a1ac0ee38d147dbc3cc3c6ac7087814f0c
[ "BSL-1.0" ]
31
2015-03-18T20:51:49.000Z
2021-06-11T10:31:47.000Z
// // Copyright (C) 2011-2017 Denis V Chapligin, Martin Hrabovsky // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef STLCACHE_POLICY_LFUAGINGSTAR_HPP_INCLUDED #define STLCACHE_POLICY_LFUAGINGSTAR_HPP_INC...
45.348485
225
0.72135
ueberaccelerate
40b0d9c62eb3d98e08113789ac14da30e13c15a4
590
cpp
C++
ayaka_rasterizer/core/texture.cpp
Xayahp/ayaka
df421639f1df9e6112290726a1dd70fdf3ac2ab9
[ "MIT" ]
2
2021-06-22T08:25:25.000Z
2021-06-26T11:46:01.000Z
ayaka_rasterizer/core/texture.cpp
Xayahp/ayaka
df421639f1df9e6112290726a1dd70fdf3ac2ab9
[ "MIT" ]
null
null
null
ayaka_rasterizer/core/texture.cpp
Xayahp/ayaka
df421639f1df9e6112290726a1dd70fdf3ac2ab9
[ "MIT" ]
null
null
null
#include "texture.h" using namespace ayakaras; Texture::Texture() { inited = false; width = 0; height = 0; } Texture::Texture(const std::string &name) { image_data = cv::imread(name); cv::cvtColor(image_data, image_data, cv::COLOR_RGB2BGR); width = image_data.cols; height = image_data.row...
21.851852
63
0.644068
Xayahp
40b7d971f2a2c3882e904876dd6290eec4470161
1,089
cpp
C++
307.range-sum-query-mutable.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
307.range-sum-query-mutable.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
307.range-sum-query-mutable.cpp
bsmsnd/LeetCode-CharlieChen
db72f0a3463c9e723aac800cdbe38218b36aa639
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=307 lang=cpp * * [307] Range Sum Query - Mutable */ class NumArray { public: // const int N = 100000; // limit fir array size int n; vector<int> tree; NumArray(vector<int>& nums) { n = nums.size(); tree.resize(n * 2); for (int i = 0; i < n;...
22.22449
68
0.422406
bsmsnd
40b87f78a8b9dc49a15ce875ceb53c9cad22b8a2
3,210
hpp
C++
include/dict/detail/deduction_guides.hpp
StephanDollberg/dict
a2d6f5e8056c66903cf330eb7db7780d2bb2bc23
[ "MIT" ]
8
2015-11-09T19:27:08.000Z
2020-03-06T08:10:20.000Z
include/dict/detail/deduction_guides.hpp
StephanDollberg/dict
a2d6f5e8056c66903cf330eb7db7780d2bb2bc23
[ "MIT" ]
8
2015-11-07T10:24:10.000Z
2020-03-05T23:22:01.000Z
include/dict/detail/deduction_guides.hpp
StephanDollberg/dict
a2d6f5e8056c66903cf330eb7db7780d2bb2bc23
[ "MIT" ]
null
null
null
namespace detail { template <class InputIt> using iter_key_t = std::remove_const_t< typename std::iterator_traits<InputIt>::value_type::first_type>; template <class InputIt> using iter_val_t = typename std::iterator_traits<InputIt>::value_type::second_type; template <class InputIt> using iter_to_alloc_t = ...
41.153846
80
0.662928
StephanDollberg
40b896024a36ea7863c82148d946955f4b51d954
1,310
cpp
C++
src/utility/helper.cpp
Jebbly/Basic-Raytracer
03d519af8d27665d3ca7c55bfeccb5b8fdbe4944
[ "MIT" ]
5
2020-03-02T03:09:22.000Z
2022-03-21T19:36:06.000Z
src/utility/helper.cpp
Jebbly/Basic-Raytracer
03d519af8d27665d3ca7c55bfeccb5b8fdbe4944
[ "MIT" ]
null
null
null
src/utility/helper.cpp
Jebbly/Basic-Raytracer
03d519af8d27665d3ca7c55bfeccb5b8fdbe4944
[ "MIT" ]
null
null
null
#include "utility/helper.h" // equality comparison bool utility::equals(double a, double b) { if (std::abs(a - b) < constants::EPSILON) return true; else return false; } // intersection helper functions std::array<double, 2> utility::check_axis(double origin, double direction, double min, double max) { ...
22.20339
112
0.59313
Jebbly
40ba468eb3eb5e7ee03d721f59b7064db4bc0494
6,001
cc
C++
srcs/apt-1.0.9.2/cmdline/apt-config.cc
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
null
null
null
srcs/apt-1.0.9.2/cmdline/apt-config.cc
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
2
2015-11-21T02:30:20.000Z
2015-11-21T02:30:35.000Z
srcs/apt-1.0.9.2/cmdline/apt-config.cc
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
null
null
null
// -*- mode: cpp; mode: fold -*- // Description /*{{{*/ // $Id: apt-config.cc,v 1.11 2003/01/11 07:18:44 jgg Exp $ /* ###################################################################### APT Config - Program to manipulate APT configuration files This program will parse a config file and then do s...
33.903955
121
0.554408
Ziul
8ad7e835ba4cdc0de5971fadb56f4a3565f98f07
7,737
cpp
C++
math/TestPowRoot.cpp
willcode/PothosComms
6c6ae8ccb6a9c996a67e2ca646aff79c74bb83fa
[ "BSL-1.0" ]
14
2017-10-28T08:40:08.000Z
2022-03-19T06:08:55.000Z
math/TestPowRoot.cpp
BelmY/PothosComms
9aa48b827b3813b3ba2b98773f3359b30ebce346
[ "BSL-1.0" ]
22
2015-08-25T21:18:13.000Z
2016-12-31T02:23:47.000Z
math/TestPowRoot.cpp
pothosware/pothos-comms
cff998cca2c9610d3e7e5480fd4fc692c13d3066
[ "BSL-1.0" ]
13
2018-01-03T15:29:44.000Z
2022-03-19T06:09:00.000Z
// Copyright (c) 2020 Nicholas Corgan // SPDX-License-Identifier: BSL-1.0 #include "common/Testing.hpp" #include <Pothos/Framework.hpp> #include <Pothos/Proxy.hpp> #include <Pothos/Testing.hpp> #include <algorithm> #include <cstring> #include <iostream> #include <type_traits> #include <vector> // // Utility code //...
28.340659
174
0.57826
willcode
8ad970e1a03b10f2b0eeb69d3e869b63bc2d4894
275
hpp
C++
Utils/GpUtils.hpp
ITBear/GpCore2
7ae6d9d93aae55e2b3060077b5bb9d5f07e59ee4
[ "MIT" ]
null
null
null
Utils/GpUtils.hpp
ITBear/GpCore2
7ae6d9d93aae55e2b3060077b5bb9d5f07e59ee4
[ "MIT" ]
1
2020-06-19T18:38:40.000Z
2020-06-19T18:38:40.000Z
Utils/GpUtils.hpp
ITBear/GpCore2
7ae6d9d93aae55e2b3060077b5bb9d5f07e59ee4
[ "MIT" ]
6
2020-06-04T07:32:59.000Z
2021-05-17T15:41:30.000Z
#pragma once #include "Streams/GpStreams.hpp" #include "RAII/GpRAIIutils.hpp" #include "Pragma/GpPragmaUtils.hpp" #include "File/GpFileUtils.hpp" #include "Errno/GpErrno.hpp" #include "Encoders/GpEncoders.hpp" #include "Timers/GpTimers.hpp" #include "Fn/GpFn.hpp"
25
36
0.745455
ITBear
8ade043f88b9978f49358787fb5686bb93809244
10,129
cpp
C++
FPSInject_Template/FPSInject.cpp
caellach/OGL-3DVision-Wrapper
aeeee0acd2278eb346f94ac25ec5bdc69b5b6ed5
[ "MIT" ]
15
2015-02-07T14:23:17.000Z
2022-02-09T20:51:16.000Z
FPSInject_Template/FPSInject.cpp
caellach/OGL-3DVision-Wrapper
aeeee0acd2278eb346f94ac25ec5bdc69b5b6ed5
[ "MIT" ]
5
2015-02-07T14:40:08.000Z
2019-09-03T06:33:48.000Z
FPSInject_Template/FPSInject.cpp
caellach/OGL-3DVision-Wrapper
aeeee0acd2278eb346f94ac25ec5bdc69b5b6ed5
[ "MIT" ]
1
2015-07-11T15:59:11.000Z
2015-07-11T15:59:11.000Z
#include <Windows.h> #include <string> #include <TlHelp32.h> #include "Psapi.h" #include "FPSInject.h" static void *toggleAddress; static DWORD pid; /// @brief DLL EXPORT specific access exports extern "C" __declspec(dllexport) FPSInject* __cdecl create_object() { return new FPSInject(); } /// ---------------------...
33.319079
259
0.58219
caellach
8ae2606a88e5f65f5be257dd936c3213a964da90
118
hpp
C++
src/app/queries.hpp
vanill4Sky/aconitum
fe0449376995d469f9dcfff524f3e36ba2097f5c
[ "MIT" ]
null
null
null
src/app/queries.hpp
vanill4Sky/aconitum
fe0449376995d469f9dcfff524f3e36ba2097f5c
[ "MIT" ]
null
null
null
src/app/queries.hpp
vanill4Sky/aconitum
fe0449376995d469f9dcfff524f3e36ba2097f5c
[ "MIT" ]
null
null
null
#pragma once #include <entt/fwd.hpp> namespace aco { bool has_active_state(entt::registry& reg, entt::entity e); }
11.8
59
0.720339
vanill4Sky
8ae43a65a9a154041bc2db5d3b89181672663959
2,982
cpp
C++
Server/include/commands/help.cpp
radu781/Train-manager
74f41dc7f3a61df56f670956b7d65d89e956ee4d
[ "MIT" ]
null
null
null
Server/include/commands/help.cpp
radu781/Train-manager
74f41dc7f3a61df56f670956b7d65d89e956ee4d
[ "MIT" ]
null
null
null
Server/include/commands/help.cpp
radu781/Train-manager
74f41dc7f3a61df56f670956b7d65d89e956ee4d
[ "MIT" ]
null
null
null
#include "help.hpp" #include "communication/commandparser.hpp" Help::Help(const Command *other, const std::vector<std::string> *command) : Command(other, command) { } std::string Help::execute() { if (command->size() == 1) return "Supported commands:\n\ \ttoday [start] [dest] (get today's ...
42
95
0.671026
radu781
8aeb72a3e3f8bb36ff30570d6cc8b14a2d3fbbd8
2,646
cc
C++
SysUtils/src/PackagePathMgr.cc
sam7k9621/ManagerUtils
7b9317df002b3df6f23ae9e559d35bb1fc15b6f6
[ "MIT" ]
null
null
null
SysUtils/src/PackagePathMgr.cc
sam7k9621/ManagerUtils
7b9317df002b3df6f23ae9e559d35bb1fc15b6f6
[ "MIT" ]
null
null
null
SysUtils/src/PackagePathMgr.cc
sam7k9621/ManagerUtils
7b9317df002b3df6f23ae9e559d35bb1fc15b6f6
[ "MIT" ]
null
null
null
/******************************************************************************* * * Filename : PackagePathMgr.cc * Description : One Line descrption of file contents * Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ] * *******************************************************************************/...
28.76087
84
0.413832
sam7k9621
8aed4419323db297cc0e29f7f21bbeda9b4448f4
3,104
hpp
C++
src/core/console_user_server/include/connection_manager.hpp
vmax77/Karabiner-Elements
525c970622e9cbdf789481e9b5979521ec9e6189
[ "Unlicense" ]
1
2021-02-07T20:48:23.000Z
2021-02-07T20:48:23.000Z
src/core/console_user_server/include/connection_manager.hpp
vmax77/Karabiner-Elements
525c970622e9cbdf789481e9b5979521ec9e6189
[ "Unlicense" ]
null
null
null
src/core/console_user_server/include/connection_manager.hpp
vmax77/Karabiner-Elements
525c970622e9cbdf789481e9b5979521ec9e6189
[ "Unlicense" ]
null
null
null
#pragma once #include "constants.hpp" #include "logger.hpp" #include "notification_center.hpp" #include "receiver.hpp" #include "session.hpp" class connection_manager final { public: connection_manager(const connection_manager&) = delete; connection_manager(void) : exit_loop_(false), ...
32.333333
140
0.596327
vmax77
8aed5af0d51ad7afbcf4a138d4d71427366b2ac7
3,531
hpp
C++
libraries/chain/include/graphene/chain/protocol/file.hpp
ypenghui6test/cocos-mainnet
2dbfa903a6dceb3d3ec421481aa4b8c3896dcbe7
[ "MIT" ]
29
2021-02-04T22:26:34.000Z
2021-02-18T17:31:13.000Z
libraries/chain/include/graphene/chain/protocol/file.hpp
CocosBlockchainExpedition/cocos-mainnet
e0dc376c191f9b18a3a86f7705bfd0e0ca67cb5b
[ "MIT" ]
3
2020-02-10T11:06:02.000Z
2020-03-18T07:24:08.000Z
libraries/chain/include/graphene/chain/protocol/file.hpp
CocosBlockchainExpedition/cocos-mainnet
e0dc376c191f9b18a3a86f7705bfd0e0ca67cb5b
[ "MIT" ]
3
2019-12-11T07:16:41.000Z
2019-12-12T09:37:05.000Z
// created by zhangfan // the operation about file #pragma once #include <graphene/chain/protocol/base.hpp> namespace graphene { namespace chain { //create file struct create_file_operation : public base_operation { struct fee_parameters_type { uint64_t fee = GRAPHENE_BLOCKCHAIN_PRECISION...
42.035714
118
0.727273
ypenghui6test
8af38dcd2ee698d1507d08acb754eb57e888c710
48,982
cpp
C++
unittest/createtables.cpp
Olde-Skuul/burgerlib
80848a4dfa17c5c05095ecea14a9bd87f86dfb9d
[ "Zlib" ]
115
2015-01-18T17:29:30.000Z
2022-01-30T04:31:48.000Z
unittest/createtables.cpp
Olde-Skuul/burgerlib
80848a4dfa17c5c05095ecea14a9bd87f86dfb9d
[ "Zlib" ]
9
2015-01-22T04:53:38.000Z
2015-01-31T13:52:40.000Z
unittest/createtables.cpp
Olde-Skuul/burgerlib
80848a4dfa17c5c05095ecea14a9bd87f86dfb9d
[ "Zlib" ]
9
2015-01-23T20:06:46.000Z
2020-05-20T16:06:00.000Z
/*************************************** Functions to create the generated source code for Burgerlib Copyright (c) 1995-2017 by Rebecca Ann Heineman <becky@burgerbecky.com> It is released under an MIT Open Source license. Please see LICENSE for license details. Yes, you can use it in a commercial tit...
27.456278
229
0.643236
Olde-Skuul
c103fa54a716ab83ec4c3a0ea011aad8fcf2f18d
844
cpp
C++
C++_Practice/19_BasicDataType.cpp
TuringGu/RELearning
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
[ "MIT" ]
null
null
null
C++_Practice/19_BasicDataType.cpp
TuringGu/RELearning
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
[ "MIT" ]
null
null
null
C++_Practice/19_BasicDataType.cpp
TuringGu/RELearning
a44813d6ae0416631bf5b345a7606cdf3d1a3ffe
[ "MIT" ]
null
null
null
#include <iostream> int main() { // Variable declare (C++11 standard) int nNumber1 = 5; int nNumber2 = { 10 }; int nNumber3 = {}; int nRet = { nNumber1 + nNumber2 + nNumber3 }; // Base System // 0x 0 0b // 0x4d2 == 1234 == 02322 == 0b010011010010 // Singed Unsinged Long int uNumber4 = 5u; long LNumber5 =...
21.1
47
0.61019
TuringGu
c106ab110693affcdcd45f970c76a201a21c3f9e
264
hpp
C++
src/libs/libold/base/text/exception.hpp
jdmclark/gorc
a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8
[ "Apache-2.0" ]
97
2015-02-24T05:09:24.000Z
2022-01-23T12:08:22.000Z
src/libs/libold/base/text/exception.hpp
annnoo/gorc
1889b4de6380c30af6c58a8af60ecd9c816db91d
[ "Apache-2.0" ]
8
2015-03-27T23:03:23.000Z
2020-12-21T02:34:33.000Z
src/libs/libold/base/text/exception.hpp
annnoo/gorc
1889b4de6380c30af6c58a8af60ecd9c816db91d
[ "Apache-2.0" ]
10
2016-03-24T14:32:50.000Z
2021-11-13T02:38:53.000Z
#pragma once #include "libold/base/exception.hpp" namespace gorc { namespace text { class text_exception : public exception { }; class invalid_numeric_conversion_exception : public exception { }; class tokenizer_assertion_exception : public exception { }; } }
18.857143
66
0.772727
jdmclark
c10d5e7bcd37568ab4e80b5f45a8b0a1047d4c28
1,487
cpp
C++
unidad1/clase-18-02-2019/control.cpp
zequequiel/Programacion-Orientada-a-Objetos
551c1711dce0375de4129b9b6e12a432b3fad174
[ "MIT" ]
1
2019-03-07T16:28:39.000Z
2019-03-07T16:28:39.000Z
unidad1/clase-18-02-2019/control.cpp
zequequiel/Programacion-Orientada-a-Objetos
551c1711dce0375de4129b9b6e12a432b3fad174
[ "MIT" ]
null
null
null
unidad1/clase-18-02-2019/control.cpp
zequequiel/Programacion-Orientada-a-Objetos
551c1711dce0375de4129b9b6e12a432b3fad174
[ "MIT" ]
1
2019-03-07T16:28:43.000Z
2019-03-07T16:28:43.000Z
/* AUTOR: Ezequiel Arceo May PROPÓSITO: Mostrar el uso de sentencias de control. USO: ejecute, no requiere datos de entrada */ #include <iostream> // Lee desde y escribe hacia la consola #include <string> // Permite trabajar con cadenas en forma simple using namespace std; ...
32.326087
129
0.561533
zequequiel
c11024ad1f58ee889d2b6c9d2da03a52892b5303
588
cpp
C++
Source/Scene.cpp
Nickelium/Rasterizer
76673ec0ab9eb472e1bb097a2b98effe8e5668e6
[ "MIT" ]
14
2019-02-08T10:14:36.000Z
2022-02-05T20:37:30.000Z
Source/Scene.cpp
dimutch833/Rasterizer
76673ec0ab9eb472e1bb097a2b98effe8e5668e6
[ "MIT" ]
null
null
null
Source/Scene.cpp
dimutch833/Rasterizer
76673ec0ab9eb472e1bb097a2b98effe8e5668e6
[ "MIT" ]
1
2019-12-02T17:10:47.000Z
2019-12-02T17:10:47.000Z
#include "Scene.h" #include "Maths.h" Scene::Scene() { BuildScene(); } std::vector<Object>& Scene::GetObjects() { return objects; } void Scene::AddObject(Object& object) { objects.push_back(std::move(object)); } void Scene::Update(float dt) { for (Object& object : objects) { //object.SetPosition(Vector3f(3....
15.076923
91
0.654762
Nickelium
c112ba7db03e59ece2b23a3a8ed23d5cfc77b0f7
1,390
cpp
C++
longestCommonPrefix014.cpp
zhoufrederic/leetcode
c208bc4890aa2797338ec3f273125103f9883558
[ "MIT" ]
null
null
null
longestCommonPrefix014.cpp
zhoufrederic/leetcode
c208bc4890aa2797338ec3f273125103f9883558
[ "MIT" ]
null
null
null
longestCommonPrefix014.cpp
zhoufrederic/leetcode
c208bc4890aa2797338ec3f273125103f9883558
[ "MIT" ]
null
null
null
// // Created by zibo on 19-6-20. // /* * 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入: ["flower","flow","flight"] 输出: "fl" 示例 2: 输入: ["dog","racecar","car"] 输出: "" 解释: 输入不存在公共前缀。 说明: 所有输入只包含小写字母 a-z 。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/longest-common-prefix 著作权归领扣网络所有。商业转载请联系官方授权,非商业转...
16.162791
64
0.492806
zhoufrederic
c112f8627dd3782a685aaea2bf0153bc6e587cf2
1,577
cpp
C++
solved-codeforces/the_redback/contest/401/b/5987555.cpp
Maruf-Tuhin/Online_Judge
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
1
2019-03-31T05:47:30.000Z
2019-03-31T05:47:30.000Z
solved-codeforces/the_redback/contest/401/b/5987555.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
solved-codeforces/the_redback/contest/401/b/5987555.cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
/** * @author : Maruf Tuhin * @School : CUET CSE 11 * @Topcoder : the_redback * @CodeForces : the_redback * @UVA : the_redback * @link : http://www.fb.com/maruf.2hin */ #include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream...
18.337209
48
0.427394
Maruf-Tuhin
c113c8187ad0ed403f567fdcc7dc96f09c228b92
689
cpp
C++
sample/delivery_man_sleep.cpp
ppaulweber/libhayai
9bdca1c693e950ab2cb17c4ef885792c3c530234
[ "Apache-2.0" ]
337
2015-02-08T09:53:20.000Z
2022-03-09T19:07:34.000Z
sample/delivery_man_sleep.cpp
ppaulweber/libhayai
9bdca1c693e950ab2cb17c4ef885792c3c530234
[ "Apache-2.0" ]
44
2015-01-07T15:54:32.000Z
2020-01-10T04:32:24.000Z
sample/delivery_man_sleep.cpp
ppaulweber/libhayai
9bdca1c693e950ab2cb17c4ef885792c3c530234
[ "Apache-2.0" ]
59
2015-01-09T15:00:53.000Z
2020-07-13T23:21:52.000Z
#include <hayai.hpp> #ifdef _WIN32 #ifndef NOMINMAX #define NOMINMAX #endif #include <windows.h> inline void msleep(unsigned int duration) { Sleep(duration); } #else #include <unistd.h> inline void msleep(unsigned int duration) { usleep(duration * 1000); } #endif // The delivery man need some sleep sometim...
14.978261
46
0.686502
ppaulweber
c116409236aa4840a9be8728df509bace2b9b147
781
hpp
C++
SOLVER/src/core/boundary/ABC/ClaytonSolid.hpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
8
2020-06-05T01:13:20.000Z
2022-02-24T05:11:50.000Z
SOLVER/src/core/boundary/ABC/ClaytonSolid.hpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
24
2020-10-21T19:03:38.000Z
2021-11-17T21:32:02.000Z
SOLVER/src/core/boundary/ABC/ClaytonSolid.hpp
nicklinyi/AxiSEM-3D
cd11299605cd6b92eb867d4109d2e6a8f15e6b4d
[ "MIT" ]
5
2020-06-21T11:54:22.000Z
2021-06-23T01:02:39.000Z
// // ClaytonSolid.hpp // AxiSEM3D // // Created by Kuangdai Leng on 7/29/19. // Copyright © 2019 Kuangdai Leng. All rights reserved. // // Clayton-Enquist ABC for solid points #ifndef ClaytonSolid_hpp #define ClaytonSolid_hpp // point #include <memory> class SolidPoint; class ClaytonSolid { public: // con...
18.162791
57
0.644046
nicklinyi
c11889aa07227a2a0d9e4622905618ba7ab5305b
2,108
cpp
C++
Shadow.cpp
ChrSacher/MyEngine
8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8
[ "Apache-2.0" ]
2
2015-10-27T21:36:59.000Z
2017-03-17T21:52:19.000Z
Shadow.cpp
ChrSacher/MyEngine
8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8
[ "Apache-2.0" ]
null
null
null
Shadow.cpp
ChrSacher/MyEngine
8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8
[ "Apache-2.0" ]
null
null
null
#include "Shadow.h" ShadowMapFBO::ShadowMapFBO(unsigned int ShadowWidth, unsigned int ShadowHeight,unsigned int WindowWidth, unsigned int WindowHeight,Vector3 LightDirection,bool enabled) { fbo.init(Vector2((float)ShadowWidth,(float)ShadowHeight)); lightDirection = LightDirection; depthProjectionMatrix = Matrix...
26.024691
167
0.73482
ChrSacher
c11890401457ea1c8acdbe5eee2d383d52eb1563
431
cpp
C++
02_constexpr_function/main.cpp
BorisSchaeling/boost-meta-programming-2020
1bb70e88070953daa4bc19f91f891b43583df06e
[ "BSL-1.0" ]
null
null
null
02_constexpr_function/main.cpp
BorisSchaeling/boost-meta-programming-2020
1bb70e88070953daa4bc19f91f891b43583df06e
[ "BSL-1.0" ]
null
null
null
02_constexpr_function/main.cpp
BorisSchaeling/boost-meta-programming-2020
1bb70e88070953daa4bc19f91f891b43583df06e
[ "BSL-1.0" ]
null
null
null
#include <array> #include <algorithm> #include <iterator> #include <cstdint> #include <cassert> template <typename Sequence> constexpr auto index_of(const Sequence& seq, int val) { auto it = std::find(std::begin(seq), std::end(seq), val); return it != std::end(seq) ? std::distance(std::begin(seq), it) : -1; } int m...
21.55
70
0.638051
BorisSchaeling
c119083314c2387f490b0d02cbb1e8135e553358
1,078
cpp
C++
src/QtFinderApp.cpp
paopaol/QtFinder
e71d7b5f3eba56d1039ca3c6ad912712f51bebad
[ "MIT" ]
1
2019-09-04T06:24:36.000Z
2019-09-04T06:24:36.000Z
src/QtFinderApp.cpp
paopaol/QtFinder
e71d7b5f3eba56d1039ca3c6ad912712f51bebad
[ "MIT" ]
null
null
null
src/QtFinderApp.cpp
paopaol/QtFinder
e71d7b5f3eba56d1039ca3c6ad912712f51bebad
[ "MIT" ]
null
null
null
#include "QtFinderApp.h" #include "QtFinderApp_p.h" QtFinderApp::QtFinderApp(QWidget *parent) : QWidget(parent) { d_ptr.reset(new QtFinderAppPrivate(this)); } QtFinderApp::~QtFinderApp() noexcept {} void QtFinderApp::setFinderTool(AbstractQtFinderToolPtr &finderTool) { Q_ASSERT(finderTool); Q_D(QtFinderApp); ...
25.666667
80
0.752319
paopaol
c11cb0df83296072a373cf1bb83628918330076c
3,398
hpp
C++
Book.hpp
scriptingdubbo/fresh
c76a6e4bbe54c5f977c7f8017d98857a498bb2bf
[ "MIT" ]
null
null
null
Book.hpp
scriptingdubbo/fresh
c76a6e4bbe54c5f977c7f8017d98857a498bb2bf
[ "MIT" ]
null
null
null
Book.hpp
scriptingdubbo/fresh
c76a6e4bbe54c5f977c7f8017d98857a498bb2bf
[ "MIT" ]
null
null
null
#pragma once // include guard #include <iostream> #include <string> class Book { // Insertion and Extraction Operators friend std::ostream & operator<<( std::ostream & stream, Book const & book ); friend std::istream & operator>>( std::istream & stream, Book...
58.586207
187
0.521189
scriptingdubbo
c11e12226745660329f011569dca40e83f8b2bd9
3,155
cpp
C++
src/homework/05_functions/func.cpp
acc-cosc-1337-fall-2021/acc-cosc-1337-fall-2021-csupapo
a70b1b826fd3b50a25449dddb698e2caed91dac3
[ "MIT" ]
null
null
null
src/homework/05_functions/func.cpp
acc-cosc-1337-fall-2021/acc-cosc-1337-fall-2021-csupapo
a70b1b826fd3b50a25449dddb698e2caed91dac3
[ "MIT" ]
null
null
null
src/homework/05_functions/func.cpp
acc-cosc-1337-fall-2021/acc-cosc-1337-fall-2021-csupapo
a70b1b826fd3b50a25449dddb698e2caed91dac3
[ "MIT" ]
null
null
null
//Include statements #include<iostream> #include "func.h" using std::cout; using std::cin; using std::string; // Global Variables string dna; // GC Content Function double get_gc_content(const string& dna) { int c_count = 0; int g_count = 0; double sum_count; double gc_content; for (int i = 0...
21.758621
101
0.48019
acc-cosc-1337-fall-2021
c12248c702a6ced5b64415b1d374779aa3b80caa
1,480
cpp
C++
Week4/C - Idempotents/C - Idempotents/main.cpp
coolspring1293/Algorithm_2015_Later
7be91b0711d430245c52f351f339864853896f90
[ "MIT" ]
1
2015-11-30T12:34:04.000Z
2015-11-30T12:34:04.000Z
Week4/C - Idempotents/C - Idempotents/main.cpp
coolspring1293/Algorithm_2015_Later
7be91b0711d430245c52f351f339864853896f90
[ "MIT" ]
null
null
null
Week4/C - Idempotents/C - Idempotents/main.cpp
coolspring1293/Algorithm_2015_Later
7be91b0711d430245c52f351f339864853896f90
[ "MIT" ]
null
null
null
// // main.cpp // C - Idempotents // // Created by Kieran Will on 10/21/15. // Copyright © 2015 Kieran Will. All rights reserved. // #include <iostream> #include <algorithm> #define MSIZE 31643 using namespace std; using std::cin; using std::cout; int m[MSIZE], _count = 0; bool flg[MSIZE]; void gcd(int a,int ...
19.220779
67
0.391216
coolspring1293
c122f520c117fe745f30c1b91ca606ed2b13413f
789
cpp
C++
MobaJuiceEngine/Engine/src/events/IPointerMouseDown.cpp
JohnHonkanen/mobajuiceengine
43a6b0311bb4893958535d10f6fd997557825fb8
[ "Unlicense" ]
null
null
null
MobaJuiceEngine/Engine/src/events/IPointerMouseDown.cpp
JohnHonkanen/mobajuiceengine
43a6b0311bb4893958535d10f6fd997557825fb8
[ "Unlicense" ]
null
null
null
MobaJuiceEngine/Engine/src/events/IPointerMouseDown.cpp
JohnHonkanen/mobajuiceengine
43a6b0311bb4893958535d10f6fd997557825fb8
[ "Unlicense" ]
null
null
null
#include "events\IPointerMouseDown.h" #include "core\GameEngine.h" namespace Engine { namespace Events { bool IPointerMouseDown::Condition(glm::ivec2 position, EventData data) { bool pointerInBounds = Contains(position); if (pointerInBounds) { mouse0Down = data.mouseButton0; mouse1Down = data.mo...
18.348837
85
0.638783
JohnHonkanen
c1276d3de6ae31f78467463f5d370af45f9bd21c
1,161
cpp
C++
p225_Implement_Stack_using_Queues/p225.cpp
Song1996/Leetcode
ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb
[ "MIT" ]
null
null
null
p225_Implement_Stack_using_Queues/p225.cpp
Song1996/Leetcode
ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb
[ "MIT" ]
null
null
null
p225_Implement_Stack_using_Queues/p225.cpp
Song1996/Leetcode
ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include <vector> #include <stack> #include <map> #include <queue> #include <string> #include <assert.h> #include <algorithm> using namespace std; class MyStack { public: queue<int> q; /** Initialize your data structure here. */ MyStack() { } /** ...
18.140625
76
0.439276
Song1996
c12e21f45ba75dcc0f3226f61e0637b06c85cfe3
3,116
hpp
C++
mdal/frmts/mdal_ugrid.hpp
jmkerloch/MDAL
e3d9dc666fe84e0f71384c9e6c1cbabd9115fffc
[ "MIT" ]
112
2018-04-10T09:15:35.000Z
2022-03-23T17:03:23.000Z
mdal/frmts/mdal_ugrid.hpp
jmkerloch/MDAL
e3d9dc666fe84e0f71384c9e6c1cbabd9115fffc
[ "MIT" ]
277
2018-04-10T11:40:53.000Z
2022-03-13T06:23:15.000Z
mdal/frmts/mdal_ugrid.hpp
jmkerloch/MDAL
e3d9dc666fe84e0f71384c9e6c1cbabd9115fffc
[ "MIT" ]
43
2018-04-26T00:03:22.000Z
2022-03-25T06:36:17.000Z
/* MDAL - Mesh Data Abstraction Library (MIT License) Copyright (C) 2019 Peter Petrik (zilolv at gmail dot com) */ #ifndef MDAL_UGRID_HPP #define MDAL_UGRID_HPP #include <map> #include <string> #include <stddef.h> #include "mdal_cf.hpp" #include "mdal_driver.hpp" namespace MDAL { /** * Driver of UGRID file f...
38.469136
100
0.620988
jmkerloch
c12eb79f89612e285f75b0c60b6305bf830f32b0
134,055
cpp
C++
src/GafferCycles/IECoreCyclesPreview/Renderer.cpp
Lukanoski/GafferCycles
8a5d1b8ff5d7b2e377e6e06a723fcf668a0383eb
[ "BSD-3-Clause" ]
77
2018-10-19T01:43:56.000Z
2022-01-05T01:32:37.000Z
src/GafferCycles/IECoreCyclesPreview/Renderer.cpp
Lukanoski/GafferCycles
8a5d1b8ff5d7b2e377e6e06a723fcf668a0383eb
[ "BSD-3-Clause" ]
57
2019-02-03T22:02:59.000Z
2022-01-07T04:25:47.000Z
src/GafferCycles/IECoreCyclesPreview/Renderer.cpp
Lukanoski/GafferCycles
8a5d1b8ff5d7b2e377e6e06a723fcf668a0383eb
[ "BSD-3-Clause" ]
10
2019-04-09T11:34:13.000Z
2021-08-09T07:26:24.000Z
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2021, Alex Fuller. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributio...
31.168333
187
0.66701
Lukanoski