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
92ece188879a4cb37fad47d6afdc92ee51859ebb
4,009
cpp
C++
Code/System/Animation/AnimationSkeleton.cpp
JuanluMorales/KRG
f3a11de469586a4ef0db835af4bc4589e6b70779
[ "MIT" ]
419
2022-01-27T19:37:43.000Z
2022-03-31T06:14:22.000Z
Code/System/Animation/AnimationSkeleton.cpp
jagt/KRG
ba20cd8798997b0450491b0cc04dc817c4a4bc76
[ "MIT" ]
2
2022-01-28T20:35:33.000Z
2022-03-13T17:42:52.000Z
Code/System/Animation/AnimationSkeleton.cpp
jagt/KRG
ba20cd8798997b0450491b0cc04dc817c4a4bc76
[ "MIT" ]
20
2022-01-27T20:41:02.000Z
2022-03-26T16:16:57.000Z
#include "AnimationSkeleton.h" #include "System/Core/Drawing/DebugDrawing.h" //------------------------------------------------------------------------- namespace KRG::Animation { bool Skeleton::IsValid() const { return !m_boneIDs.empty() && ( m_boneIDs.size() == m_parentIndices.size() ) && ( m_boneID...
34.560345
142
0.568222
JuanluMorales
92eee549a041c35cb1e6f2f411ddf0b9b51527e8
1,453
hpp
C++
src/Core/Algorithm/ScalarField/ScalarField.hpp
nmellado/Radium-Engine
6e42e4be8d14bcd496371a5f58d483f7d03f9cf4
[ "Apache-2.0" ]
null
null
null
src/Core/Algorithm/ScalarField/ScalarField.hpp
nmellado/Radium-Engine
6e42e4be8d14bcd496371a5f58d483f7d03f9cf4
[ "Apache-2.0" ]
null
null
null
src/Core/Algorithm/ScalarField/ScalarField.hpp
nmellado/Radium-Engine
6e42e4be8d14bcd496371a5f58d483f7d03f9cf4
[ "Apache-2.0" ]
null
null
null
#ifndef SCALAR_FIELD_OPERATION #define SCALAR_FIELD_OPERATION #include <Core/Containers/VectorArray.hpp> #include <Core/Math/LinearAlgebra.hpp> #include <Core/Mesh/MeshTypes.hpp> namespace Ra { namespace Core { namespace Algorithm { // Defining a ScalarField over the mesh vertices typedef Eigen::Matrix< Scalar, Eig...
27.415094
118
0.759119
nmellado
92f4a5da6bd6a63349d2096e0e6c5f60b3637c9c
12,310
cpp
C++
ledger-core-bitcoin/test/fixtures/Fixtures.cpp
phaazon/lib-ledger-core
726009203f9b298e70b65c679ca92e99705dfc8c
[ "MIT" ]
null
null
null
ledger-core-bitcoin/test/fixtures/Fixtures.cpp
phaazon/lib-ledger-core
726009203f9b298e70b65c679ca92e99705dfc8c
[ "MIT" ]
null
null
null
ledger-core-bitcoin/test/fixtures/Fixtures.cpp
phaazon/lib-ledger-core
726009203f9b298e70b65c679ca92e99705dfc8c
[ "MIT" ]
null
null
null
#include <core/utils/Hex.hpp> #include <bitcoin/transactions/BitcoinLikeTransactionParser.hpp> #include "Fixtures.hpp" namespace ledger { namespace testing { core::api::ExtendedKeyAccountCreationInfo P2PKH_MEDIUM_XPUB_INFO( 0, {"main"}, {"44'/0'/0'"}, {"xpub6D4waFVPfPCpRvPkQd9A6n65z3hTp6T...
332.702703
7,035
0.831763
phaazon
92f5811a90b75bf13db2eb7ba698f51fb03b3157
2,727
cpp
C++
UiComponents/TextInput/TextInput.cpp
cross-platform/DSPatcher
80a14439eb9f93a2788711d6e5d898796c1b385e
[ "BSD-2-Clause" ]
27
2019-01-26T15:13:44.000Z
2021-11-17T04:00:08.000Z
UiComponents/TextInput/TextInput.cpp
cross-platform/DSPatcher
80a14439eb9f93a2788711d6e5d898796c1b385e
[ "BSD-2-Clause" ]
1
2018-01-09T19:52:58.000Z
2018-10-26T15:32:31.000Z
UiComponents/TextInput/TextInput.cpp
cross-platform/DSPatcher
80a14439eb9f93a2788711d6e5d898796c1b385e
[ "BSD-2-Clause" ]
9
2019-08-14T06:24:32.000Z
2021-11-17T04:00:09.000Z
/****************************************************************************** DSPatcher - Cross-Platform Graphical Tool for DSPatch Copyright (c) 2021, Marcus Tomlinson BSD 2-Clause License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following con...
29.641304
135
0.689036
cross-platform
92f77bc3df14e93ec50cea31df57f1704ac6a66a
3,675
hpp
C++
engine/subsystems/vulkan/se_vulkan_render_subsystem_framebuffer.hpp
grobermoldavan/SabrinaEngine
9a6f983500deb2d03cc2dcb5710407d01a62b2fd
[ "MIT" ]
null
null
null
engine/subsystems/vulkan/se_vulkan_render_subsystem_framebuffer.hpp
grobermoldavan/SabrinaEngine
9a6f983500deb2d03cc2dcb5710407d01a62b2fd
[ "MIT" ]
null
null
null
engine/subsystems/vulkan/se_vulkan_render_subsystem_framebuffer.hpp
grobermoldavan/SabrinaEngine
9a6f983500deb2d03cc2dcb5710407d01a62b2fd
[ "MIT" ]
null
null
null
#ifndef _SE_VULKAN_RENDER_SUBSYSTEM_FRAMEBUFFER_H_ #define _SE_VULKAN_RENDER_SUBSYSTEM_FRAMEBUFFER_H_ #include "se_vulkan_render_subsystem_base.hpp" #include "se_vulkan_render_subsystem_render_pass.hpp" #include "se_vulkan_render_subsystem_texture.hpp" #include "engine/containers.hpp" #define SE_VK_FRAMEBUFFER_MAX_TE...
36.75
119
0.670476
grobermoldavan
92f858b66625e0932e05fbf71d279d907ddc4808
3,928
cpp
C++
Source/Scripting/bsfScript/Generated/BsScriptGUISkin.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
1,745
2018-03-16T02:10:28.000Z
2022-03-26T17:34:21.000Z
Source/Scripting/bsfScript/Generated/BsScriptGUISkin.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
395
2018-03-16T10:18:20.000Z
2021-08-04T16:52:08.000Z
Source/Scripting/bsfScript/Generated/BsScriptGUISkin.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
267
2018-03-17T19:32:54.000Z
2022-02-17T16:55:50.000Z
//********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsScriptGUISkin.generated.h" #include "BsMonoMethod.h" #incl...
35.071429
124
0.754837
bsf2dev
92fa3674ee2f7fea341c55d1c902b53c12b307d0
605
cpp
C++
11743 Credit Check.cpp
zihadboss/UVA-Solutions
020fdcb09da79dc0a0411b04026ce3617c09cd27
[ "Apache-2.0" ]
86
2016-01-20T11:36:50.000Z
2022-03-06T19:43:14.000Z
11743 Credit Check.cpp
Mehedishihab/UVA-Solutions
474fe3d9d9ba574b97fd40ca5abb22ada95654a1
[ "Apache-2.0" ]
null
null
null
11743 Credit Check.cpp
Mehedishihab/UVA-Solutions
474fe3d9d9ba574b97fd40ca5abb22ada95654a1
[ "Apache-2.0" ]
113
2015-12-04T06:40:57.000Z
2022-02-11T02:14:28.000Z
#include <iostream> using namespace std; int main() { int T; cin >> T; while (T--) { int sum = 0; for (int i = 0; i < 4; ++i) { int num; cin >> num; for (int j = 0; j < 2; ++j) { sum +=...
16.805556
43
0.272727
zihadboss
92fa589eb087550944646b0a23ec5f65031f0372
5,628
cpp
C++
source/main_NG_MPI.cpp
jfbucas/PION
e0a66aa301e4d94d581ba4df078f1a3b82faab99
[ "BSD-3-Clause" ]
4
2020-08-20T11:31:22.000Z
2020-12-05T13:30:03.000Z
source/main_NG_MPI.cpp
Mapoet/PION
51559b18f700c372974ac8658a266b6a647ec764
[ "BSD-3-Clause" ]
null
null
null
source/main_NG_MPI.cpp
Mapoet/PION
51559b18f700c372974ac8658a266b6a647ec764
[ "BSD-3-Clause" ]
4
2020-08-20T14:33:19.000Z
2022-03-07T10:29:34.000Z
/// \file main_NG_MPI.cpp /// \brief Main program which sets up a NG grid and runs a MCMD sim. /// \author Jonathan Mackey /// /// /// Arguments: \<pion_NG_mpi\> \<icfile\> [override options]\n /// Parameters: /// - \<icfile\> Can be an ASCII text parameter-file for 1D and 2D shocktube /// test problems; otherwise sh...
30.586957
97
0.585821
jfbucas
92fc02a7f0ae016a38896b845ca1e8995a093ae3
609
cpp
C++
solutions/ugly-number/solution.cpp
locker/leetcode
bf34a697de47aaf32823224d054f9a45613ce180
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
solutions/ugly-number/solution.cpp
locker/leetcode
bf34a697de47aaf32823224d054f9a45613ce180
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
solutions/ugly-number/solution.cpp
locker/leetcode
bf34a697de47aaf32823224d054f9a45613ce180
[ "BSD-2-Clause-FreeBSD" ]
1
2019-08-30T06:53:23.000Z
2019-08-30T06:53:23.000Z
#include <iostream> #include <limits> using namespace std; class Solution { public: bool isUgly(int num) { if (num <= 0) return false; while (num % 2 == 0) num /= 2; while (num % 3 == 0) num /= 3; while (num % 5 == 0) num /= 5; return num == 1; } }; int main() { int input[] = { numeric_lim...
16.026316
39
0.528736
locker
92fcb5a33460a600221ccf5d59d48e463312e6fc
74,164
cpp
C++
all/native/packagemanager/PackageManager.cpp
mostafa-j13/mobile-sdk
60d51e4d37c7fb9558b1310345083c7f7d6b79e7
[ "BSD-3-Clause" ]
null
null
null
all/native/packagemanager/PackageManager.cpp
mostafa-j13/mobile-sdk
60d51e4d37c7fb9558b1310345083c7f7d6b79e7
[ "BSD-3-Clause" ]
null
null
null
all/native/packagemanager/PackageManager.cpp
mostafa-j13/mobile-sdk
60d51e4d37c7fb9558b1310345083c7f7d6b79e7
[ "BSD-3-Clause" ]
null
null
null
#ifdef _CARTO_PACKAGEMANAGER_SUPPORT #include "PackageManager.h" #include "core/BinaryData.h" #include "components/Exceptions.h" #include "projections/Projection.h" #include "projections/EPSG3857.h" #include "packagemanager/handlers/PackageHandler.h" #include "packagemanager/handlers/PackageHandlerFactory.h" #include ...
44.066548
268
0.581846
mostafa-j13
13041ee6b66fcc3f18590ff0753acb866e4b78cc
1,453
cpp
C++
higan/fc/cartridge/board/konami-vrc4.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
3
2016-03-23T01:17:36.000Z
2019-10-25T06:41:09.000Z
higan/fc/cartridge/board/konami-vrc4.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
null
null
null
higan/fc/cartridge/board/konami-vrc4.cpp
ameer-bauer/higan-097
a4a28968173ead8251cfa7cd6b5bf963ee68308f
[ "Info-ZIP" ]
null
null
null
struct KonamiVRC4 : Board { KonamiVRC4(Markup::Node& document) : Board(document), vrc4(*this) { settings.pinout.a0 = 1 << document["board/chip/pinout/a0"].natural(); settings.pinout.a1 = 1 << document["board/chip/pinout/a1"].natural(); } auto main() -> void { return vrc4.main(); } auto prg_read(...
24.216667
74
0.614591
ameer-bauer
13043340800ae1244402952870fed76f1fbbb04c
37,924
cpp
C++
cavelock/Hap/HapHttp.cpp
cavecafe/cavelock
5b015ecaa738ab782f7bef99fdb1c24a6cabf0bd
[ "MIT" ]
null
null
null
cavelock/Hap/HapHttp.cpp
cavecafe/cavelock
5b015ecaa738ab782f7bef99fdb1c24a6cabf0bd
[ "MIT" ]
null
null
null
cavelock/Hap/HapHttp.cpp
cavecafe/cavelock
5b015ecaa738ab782f7bef99fdb1c24a6cabf0bd
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2019 Gera Kazakov 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, d...
27.864805
156
0.601888
cavecafe
130494807ab2c4967617e3fb1aa05fbd274b5f97
1,442
cpp
C++
server/Common/Packets/GWAskChangeScene.cpp
viticm/web-pap
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
[ "BSD-3-Clause" ]
3
2018-06-19T21:37:38.000Z
2021-07-31T21:51:40.000Z
server/Common/Packets/GWAskChangeScene.cpp
viticm/web-pap
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
[ "BSD-3-Clause" ]
null
null
null
server/Common/Packets/GWAskChangeScene.cpp
viticm/web-pap
7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca
[ "BSD-3-Clause" ]
13
2015-01-30T17:45:06.000Z
2022-01-06T02:29:34.000Z
#include "stdafx.h" #include "GWAskChangeScene.h" BOOL GWAskChangeScene::Read( SocketInputStream& iStream ) { __ENTER_FUNCTION iStream.Read( (CHAR*)(&m_Status), sizeof(BYTE) ) ; iStream.Read( (CHAR*)(&m_PlayerID), sizeof(PlayerID_t) ) ; iStream.Read( (CHAR*)(&m_GUID), sizeof(GUID_t) ) ; iStream.R...
24.033333
69
0.669903
viticm
13054dee50887543d8d0d1f6e7e8efb2cb457bf1
282
cpp
C++
src/lib/zap/zap/toolchains/clang.cpp
chybz/zap
ccc67d85def09faa962e44b9e36ca414207d4ec3
[ "MIT" ]
null
null
null
src/lib/zap/zap/toolchains/clang.cpp
chybz/zap
ccc67d85def09faa962e44b9e36ca414207d4ec3
[ "MIT" ]
null
null
null
src/lib/zap/zap/toolchains/clang.cpp
chybz/zap
ccc67d85def09faa962e44b9e36ca414207d4ec3
[ "MIT" ]
null
null
null
#include <zap/toolchains/clang.hpp> namespace zap::toolchains { clang::clang( const zap::env_paths& ep, zap::toolchain_info&& ti, zap::executor& exec ) : gcc(ep, std::forward<zap::toolchain_info>(ti), exec) { scanner_.push_args({ "-w" }); } clang::~clang() {} }
14.842105
54
0.634752
chybz
130814635baaca6cbd79f9e45dd8ceea564e80ec
5,653
cpp
C++
examples/advection/parallel/main.cpp
nasailja/gensimcell
65726d0bfffff3f4dfd526a925974c32b37cec5e
[ "BSD-3-Clause" ]
null
null
null
examples/advection/parallel/main.cpp
nasailja/gensimcell
65726d0bfffff3f4dfd526a925974c32b37cec5e
[ "BSD-3-Clause" ]
null
null
null
examples/advection/parallel/main.cpp
nasailja/gensimcell
65726d0bfffff3f4dfd526a925974c32b37cec5e
[ "BSD-3-Clause" ]
null
null
null
/* Parallel program solving advection equation in a prescribed velocity field. Copyright 2014, 2015, 2016 Ilja Honkonen 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 ...
23.95339
80
0.718203
nasailja
130883db75cc7039b1094d9d29bc2f37e78f876c
628
hpp
C++
include/zax/fs.hpp
fcharlie/zax
041ad510635df85e5842036cd0319ea92f7f56ba
[ "MIT" ]
null
null
null
include/zax/fs.hpp
fcharlie/zax
041ad510635df85e5842036cd0319ea92f7f56ba
[ "MIT" ]
null
null
null
include/zax/fs.hpp
fcharlie/zax
041ad510635df85e5842036cd0319ea92f7f56ba
[ "MIT" ]
null
null
null
// #ifndef ZAX_FS_HPP #define ZAX_FS_HPP #ifdef _WIN32 #include <windows.h> #endif #include "zax.hpp" namespace zax::fs { #ifdef _WIN32 using native_handle = HANDLE; #define closedfd INVALID_HANDLE_VALUE #else using native_handle = int; constexpr auto closedfd = -1; #endif class File { public: File() = default; F...
18.470588
49
0.707006
fcharlie
13092d2198b0661dd944ce4cbb8f0edabf280965
2,217
cpp
C++
atspoles_algoritms.cpp
IvarsSaudinis/alkoritmi-un-datu-strukturas
d3856b1428894843f2c80f27661ca6fb86ded878
[ "MIT" ]
null
null
null
atspoles_algoritms.cpp
IvarsSaudinis/alkoritmi-un-datu-strukturas
d3856b1428894843f2c80f27661ca6fb86ded878
[ "MIT" ]
null
null
null
atspoles_algoritms.cpp
IvarsSaudinis/alkoritmi-un-datu-strukturas
d3856b1428894843f2c80f27661ca6fb86ded878
[ "MIT" ]
null
null
null
/* * Using Shuttle Sort algorithm, sort in ascending sort the list of random numbers stored in doubly linked list * -- * build with CLion/ch-0/183.5429.37/bin/cmake/linux/bin/cmake and little miracle */ #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; struct Saraksts ...
31.225352
140
0.602165
IvarsSaudinis
131899825c29a437322bf6e08b25c3bb9a558987
738
cpp
C++
simplefvm/src/MeshLoader/MeshContainer/CellsSizeDefiner.cpp
artvns/SimpleFvm
5a8eca332d6780e738c0bc6c8c2b787b47b5b20d
[ "MIT" ]
4
2022-01-03T08:45:55.000Z
2022-01-06T19:57:11.000Z
simplefvm/src/MeshLoader/MeshContainer/CellsSizeDefiner.cpp
artvns/SimpleFvm
5a8eca332d6780e738c0bc6c8c2b787b47b5b20d
[ "MIT" ]
null
null
null
simplefvm/src/MeshLoader/MeshContainer/CellsSizeDefiner.cpp
artvns/SimpleFvm
5a8eca332d6780e738c0bc6c8c2b787b47b5b20d
[ "MIT" ]
null
null
null
#include "CellsSizeDefiner.h" namespace meshloader { CellsSizeDefiner::CellsSizeDefiner() { } void CellsSizeDefiner::setCellsSize(Mesh& meshContainer, const double dx, const double dy) { for (size_t i = 0; i < meshContainer.ge...
32.086957
75
0.615176
artvns
131a53b9b5074e797947857ceef8798f660bc81a
2,961
hpp
C++
sparta/cache/DefaultAddrDecoder.hpp
knute-sifive/map
fb25626830a56ad68ab896bcd01929023ff31c48
[ "MIT" ]
null
null
null
sparta/cache/DefaultAddrDecoder.hpp
knute-sifive/map
fb25626830a56ad68ab896bcd01929023ff31c48
[ "MIT" ]
null
null
null
sparta/cache/DefaultAddrDecoder.hpp
knute-sifive/map
fb25626830a56ad68ab896bcd01929023ff31c48
[ "MIT" ]
null
null
null
#ifndef _SPA_CACHE_DEFAULT_ADDR_DECODER_IF_H__ #define _SPA_CACHE_DEFAULT_ADDR_DECODER_IF_H__ #include "cassert" #include "sparta/utils/MathUtils.hpp" #include "cache/AddrDecoderIF.hpp" namespace sparta { namespace cache { /* DefaultAddrDecoder: decodes a 64-bit address. * * Assumin...
42.913043
106
0.544748
knute-sifive
131dcba6ae1a31cca5f4c1cdd9b0a2130593cd07
1,109
hpp
C++
big-finish-downloader-gtk/include/libbf/gui/alert_box.hpp
Emersont1/big-finish-downloader
c6c754e65a827a500dad3c9d847fd723ce3e2fb4
[ "MIT" ]
1
2021-01-11T20:03:25.000Z
2021-01-11T20:03:25.000Z
big-finish-downloader-gtk/include/libbf/gui/alert_box.hpp
Emersont1/big-finish-downloader
c6c754e65a827a500dad3c9d847fd723ce3e2fb4
[ "MIT" ]
16
2021-01-08T23:22:02.000Z
2021-01-27T10:10:05.000Z
big-finish-downloader-gtk/include/libbf/gui/alert_box.hpp
Emersont1/big-finish-downloader
c6c754e65a827a500dad3c9d847fd723ce3e2fb4
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <gtk/gtk.h> //~~shamelessly stolen~~ adapted from aaronmjacobs/Boxer namespace libbf::gui::alert { /*! * Options for styles to apply to a message box */ enum class Style { Info = GTK_MESSAGE_INFO, Warning = GTK_MESSAGE_WARNING, Error = GTK_MESSAGE_ERROR, Que...
23.104167
81
0.688909
Emersont1
131e6b976ac90637b41ff52a96f02ffca4b2052f
5,003
hh
C++
lua/inc/com/centreon/broker/lua/luabinding.hh
centreon-lab/centreon-broker
b412470204eedc01422bbfd00bcc306dfb3d2ef5
[ "Apache-2.0" ]
40
2015-03-10T07:55:39.000Z
2021-06-11T10:13:56.000Z
lua/inc/com/centreon/broker/lua/luabinding.hh
centreon-lab/centreon-broker
b412470204eedc01422bbfd00bcc306dfb3d2ef5
[ "Apache-2.0" ]
297
2015-04-30T10:02:04.000Z
2022-03-09T13:31:54.000Z
lua/inc/com/centreon/broker/lua/luabinding.hh
centreon-lab/centreon-broker
b412470204eedc01422bbfd00bcc306dfb3d2ef5
[ "Apache-2.0" ]
29
2015-08-03T10:04:15.000Z
2021-11-25T12:21:00.000Z
/* ** Copyright 2018 Centreon ** ** 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 ...
37.901515
80
0.714171
centreon-lab
132098f1eb86814e03959b0f09210899844749ca
21,530
cpp
C++
winSys/edit.cpp
alec101/Ix
84143d737bdc4beabb3ff46e5c3bc98579f4e90a
[ "BSD-3-Clause" ]
null
null
null
winSys/edit.cpp
alec101/Ix
84143d737bdc4beabb3ff46e5c3bc98579f4e90a
[ "BSD-3-Clause" ]
null
null
null
winSys/edit.cpp
alec101/Ix
84143d737bdc4beabb3ff46e5c3bc98579f4e90a
[ "BSD-3-Clause" ]
null
null
null
#include "ix/ix.h" #include "ix/winSys/_privateDef.h" /* WHEN A CHAR IS DELETED, ALL IT'S DIECRITICALS MUST BE DELETED!!! TODO: -left->right right->left top->bottom, all should be basically done -bottom to top writing i don't think exists, but you never know... IDEEAS: -sound for keys? another sound for when a ...
27.357052
142
0.594984
alec101
1322c10c45ae0ce1149eff5f930ca22d3ee7e8d2
1,452
cpp
C++
codes/CodeForces/Round #333/cf601D.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/CodeForces/Round #333/cf601D.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/CodeForces/Round #333/cf601D.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
#include <cstdio> #include <cstring> #include <vector> #include <algorithm> using namespace std; const int maxn = 300005; const int SIGMA_SIZE = 26; typedef long long ll; int SZ = 0; struct Node { int sz, ch[SIGMA_SIZE]; Node () { memset(ch, 0, sizeof(ch)); } }nd[maxn<<1]; int newNode () { ++SZ; memset(nd[SZ].ch...
15.956044
54
0.500689
JeraKrs
132ff24748536db4ced4e3f630155c72286908d3
2,683
cpp
C++
c++/learncpp/7.x/main.cpp
jleopold28/snippets-and-notes
0a032ee6ecc31c1e626305464f6ca59bfec90275
[ "MIT" ]
null
null
null
c++/learncpp/7.x/main.cpp
jleopold28/snippets-and-notes
0a032ee6ecc31c1e626305464f6ca59bfec90275
[ "MIT" ]
null
null
null
c++/learncpp/7.x/main.cpp
jleopold28/snippets-and-notes
0a032ee6ecc31c1e626305464f6ca59bfec90275
[ "MIT" ]
null
null
null
#include <iostream> // array is the array to search over. // target is the value we're trying to determine exists or not. // min is the index of the lower bounds of the array we're searching. // max is the index of the upper bounds of the array we're searching. // binarySearch() should return the index of the target e...
35.773333
111
0.644428
jleopold28
1344a29fb06dbef9a35685f5542a4face8c8c2d3
369
cpp
C++
elastic-circuits/examples/order_test_1.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
46
2019-11-16T13:44:07.000Z
2022-03-12T14:28:44.000Z
elastic-circuits/examples/order_test_1.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
11
2020-05-12T17:20:51.000Z
2022-02-04T10:04:59.000Z
elastic-circuits/examples/order_test_1.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
22
2020-02-21T21:33:40.000Z
2022-02-24T06:50:41.000Z
//------------------------------------------------------------------------ // FIR //------------------------------------------------------------------------ void order_test(int Out[10]) { int i, j; int tmp = 0; for (i = 0; i < 10; i++) { tmp = 0; for (j = 0; j < 10; j++) { tmp...
20.5
74
0.195122
minseongg
13484b2d65807de00c93eae4e737217de43f0961
382
hpp
C++
networklib/include/networklib/https_read.hpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
networklib/include/networklib/https_read.hpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
networklib/include/networklib/https_read.hpp
zina1995/Twitter-API-C-Library
87b29c63b89be6feb05adbe05ebed0213aa67f9b
[ "MIT" ]
null
null
null
#ifndef NETWORKLIB_HTTPS_READ_HPP #define NETWORKLIB_HTTPS_READ_HPP #include <networklib/response.hpp> #include <networklib/socket.hpp> namespace network { /// Reads a Reponse from \p socket. /** \p socket should come from a call to `https_write(Request)`. */ [[nodiscard]] auto https_read(Socket socket) -> Response; ...
27.285714
67
0.76178
zina1995
134956da110729d74ea82ff7f0c5b09ddf58556f
5,374
cc
C++
shared_vs_unique_ptr/benchmark.cc
xysperi/benchmark
a1fd0bb10842329e1c17a25768d23e3d725f60ef
[ "MIT" ]
null
null
null
shared_vs_unique_ptr/benchmark.cc
xysperi/benchmark
a1fd0bb10842329e1c17a25768d23e3d725f60ef
[ "MIT" ]
null
null
null
shared_vs_unique_ptr/benchmark.cc
xysperi/benchmark
a1fd0bb10842329e1c17a25768d23e3d725f60ef
[ "MIT" ]
null
null
null
#include <benchmark/benchmark.h> #include <memory> #include <atomic> #include <boost/smart_ptr/intrusive_ptr.hpp> struct X { std::atomic<size_t> ref_cnt{0}; }; inline void intrusive_ptr_add_ref(X* x){ x->ref_cnt.fetch_add(1, std::memory_order_relaxed); } inline void intrusive_ptr_release(X* x){ if (x->ref_cnt....
27.558974
111
0.648493
xysperi
134b9f74de8ef7b16e053a9826450f320637db63
1,037
cpp
C++
GLFX/GLEffects/GUIManager.cpp
luca1337/GLFX
b6e6e18228d76d82d5080a4eb55434a4b7fec18d
[ "MIT" ]
null
null
null
GLFX/GLEffects/GUIManager.cpp
luca1337/GLFX
b6e6e18228d76d82d5080a4eb55434a4b7fec18d
[ "MIT" ]
null
null
null
GLFX/GLEffects/GUIManager.cpp
luca1337/GLFX
b6e6e18228d76d82d5080a4eb55434a4b7fec18d
[ "MIT" ]
null
null
null
#include "GUIManager.h" #include "GObjectHierarchy.h" #include "GToolBar.h" #include "GUIUtils.h" #include <GLFW/glfw3.h> namespace glfx::gui { auto GUIManager::Init(GLFWwindow* window) -> void { IMGUI_CHECKVERSION(); // todo: handle errors properly ImGui::CreateContext(); ImG...
23.044444
63
0.614272
luca1337
134cb153ed03a668f491f0588b78fef18ce44daf
2,794
cpp
C++
ops/FrictionResponse.cpp
parduino/MDOF
c4272ce52309383bd29c941e5e760ce441a8dae3
[ "BSD-2-Clause" ]
8
2019-03-05T16:25:10.000Z
2020-04-17T14:12:03.000Z
ops/FrictionResponse.cpp
parduino/MDOF
c4272ce52309383bd29c941e5e760ce441a8dae3
[ "BSD-2-Clause" ]
6
2017-05-16T22:08:40.000Z
2018-09-24T05:52:00.000Z
ops/FrictionResponse.cpp
parduino/MDOF
c4272ce52309383bd29c941e5e760ce441a8dae3
[ "BSD-2-Clause" ]
20
2017-03-21T17:31:32.000Z
2021-12-19T15:45:23.000Z
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
32.114943
130
0.540802
parduino
134ff642c03252d0c72f0abcc6983c4568ce2fe3
626
hpp
C++
bnb_sdk_manager/src/GlfwWindow.hpp
vadimVoloshanov/quickstart-desktop-cpp
a73dafce9668f57cc64d94411e68603f1d5a2a7a
[ "MIT" ]
null
null
null
bnb_sdk_manager/src/GlfwWindow.hpp
vadimVoloshanov/quickstart-desktop-cpp
a73dafce9668f57cc64d94411e68603f1d5a2a7a
[ "MIT" ]
null
null
null
bnb_sdk_manager/src/GlfwWindow.hpp
vadimVoloshanov/quickstart-desktop-cpp
a73dafce9668f57cc64d94411e68603f1d5a2a7a
[ "MIT" ]
null
null
null
#pragma once #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <string> #include <async++.h> class GlfwWindow { public: explicit GlfwWindow(const std::string& title); ~GlfwWindow(); void show(uint32_t width_hint, uint32_t height_hint); void run_main_loop(); [[nodiscard]] GLFWwindow* ge...
20.193548
72
0.688498
vadimVoloshanov
1350f5e0768a4df235ccb1d5902d5c199ecdbc1a
187
cpp
C++
OpenTESArena/src/World/MapInstance.cpp
Digital-Monk/OpenTESArena
95f0bdaa642ff090b94081795a53b00f10dc4b03
[ "MIT" ]
null
null
null
OpenTESArena/src/World/MapInstance.cpp
Digital-Monk/OpenTESArena
95f0bdaa642ff090b94081795a53b00f10dc4b03
[ "MIT" ]
null
null
null
OpenTESArena/src/World/MapInstance.cpp
Digital-Monk/OpenTESArena
95f0bdaa642ff090b94081795a53b00f10dc4b03
[ "MIT" ]
null
null
null
#include "MapInstance.h" void MapInstance::init(int levelCount) { this->levels.init(levelCount); } LevelInstance &MapInstance::getLevel(int index) { return this->levels.get(index); }
15.583333
47
0.743316
Digital-Monk
135200e5f1410044cd6f6f2eba3dca7b441ab846
1,548
hpp
C++
include/nbdl/detail/promise_join.hpp
ricejasonf/nbdl
ae63717c96ab2c36107bc17b2b00115f96e9d649
[ "BSL-1.0" ]
47
2016-06-20T01:41:24.000Z
2021-11-16T10:53:27.000Z
include/nbdl/detail/promise_join.hpp
ricejasonf/nbdl
ae63717c96ab2c36107bc17b2b00115f96e9d649
[ "BSL-1.0" ]
21
2015-11-12T23:05:47.000Z
2019-07-17T19:01:40.000Z
include/nbdl/detail/promise_join.hpp
ricejasonf/nbdl
ae63717c96ab2c36107bc17b2b00115f96e9d649
[ "BSL-1.0" ]
6
2015-11-12T21:23:29.000Z
2019-05-09T17:54:25.000Z
// // Copyright Jason Rice 2017 // 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 NBDL_DETAIL_PROMISE_JOIN_HPP #define NBDL_DETAIL_PROMISE_JOIN_HPP #include <nbdl/detail/wrap_promise.hpp> #include <nbdl...
27.642857
84
0.689276
ricejasonf
1352162527facd7fa0a1f86f9a3b862d632d9037
10,971
hpp
C++
examples/implicit/coupled.hpp
Pan-Maciek/iga-ads
4744829c98cba4e9505c5c996070119e73ba18fa
[ "MIT" ]
7
2018-01-19T00:19:19.000Z
2021-06-22T00:53:00.000Z
examples/implicit/coupled.hpp
Pan-Maciek/iga-ads
4744829c98cba4e9505c5c996070119e73ba18fa
[ "MIT" ]
66
2021-06-22T22:44:21.000Z
2022-03-16T15:18:00.000Z
examples/implicit/coupled.hpp
Pan-Maciek/iga-ads
4744829c98cba4e9505c5c996070119e73ba18fa
[ "MIT" ]
6
2017-04-13T19:42:27.000Z
2022-03-26T18:46:24.000Z
// SPDX-FileCopyrightText: 2015 - 2021 Marcin Łoś <marcin.los.91@gmail.com> // SPDX-License-Identifier: MIT #ifndef IMPLICIT_COUPLED_HPP #define IMPLICIT_COUPLED_HPP #include "ads/executor/galois.hpp" #include "ads/lin/dense_matrix.hpp" #include "ads/lin/dense_solve.hpp" #include "ads/output_manager.hpp" #include "ad...
35.163462
92
0.461763
Pan-Maciek
1353f08f993e62878458ac7d25b14b033bd00dbd
2,910
cpp
C++
libs/bimap/example/mi_to_b_path/hashed_indices.cpp
zyiacas/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
198
2015-01-13T05:47:18.000Z
2022-03-09T04:46:46.000Z
libs/bimap/example/mi_to_b_path/hashed_indices.cpp
sdfict/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
9
2015-01-28T16:33:19.000Z
2020-04-12T23:03:28.000Z
libs/bimap/example/mi_to_b_path/hashed_indices.cpp
sdfict/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
139
2015-01-15T20:09:31.000Z
2022-01-31T15:21:16.000Z
// Boost.Bimap // // Copyright (c) 2006-2007 Matias Capeletto // // 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) // Boost.Bimap Example //--------------------------------------------------------------...
30.631579
83
0.597595
zyiacas
135c78cda460225b910f634dce0ebd4504307064
17,423
cc
C++
psdaq/psdaq/eb/EbLfLink.cc
slac-lcls/pdsdata2
6e2ad4f830cadfe29764dbd280fa57f8f9edc451
[ "BSD-3-Clause-LBNL" ]
null
null
null
psdaq/psdaq/eb/EbLfLink.cc
slac-lcls/pdsdata2
6e2ad4f830cadfe29764dbd280fa57f8f9edc451
[ "BSD-3-Clause-LBNL" ]
null
null
null
psdaq/psdaq/eb/EbLfLink.cc
slac-lcls/pdsdata2
6e2ad4f830cadfe29764dbd280fa57f8f9edc451
[ "BSD-3-Clause-LBNL" ]
null
null
null
#include "EbLfLink.hh" #include "Endpoint.hh" #include "psdaq/service/fast_monotonic_clock.hh" #include <chrono> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> using namespace Pds; using namespace Pds::Fabrics; using namespace Pds::Eb; using ms_t = std::chrono::milliseconds; stati...
27.138629
94
0.557826
slac-lcls
135dbdadde91af3c2ebac66852267c7726a371b0
347
cpp
C++
competitive-programming/leetcode/Number-theory/add_digits.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
competitive-programming/leetcode/Number-theory/add_digits.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
competitive-programming/leetcode/Number-theory/add_digits.cpp
dushimsam/deep-dive-in-algorithms
0c6a04b3115ba789ab4aca68cce51c9a3c3a075a
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int digitSum(int n){ int sum = 0; while(n >= 10){ sum += (n % 10); n /= 10; } return sum+n; } int addDigits(int n){ int res = n; while(res >= 10){ res = digitSum(res); } return res; } int main(){ int n = 38; cout<<ad...
13.88
28
0.495677
dushimsam
135f3f0aa8b3948fa1c92ebfe3d776d9a9d1ebfb
1,718
cpp
C++
24.swap-nodes-in-pairs.cpp
meyash/LeetCode-Solutions
a9e064af64436e5a24bc3a2c93bd15d3c43f2391
[ "MIT" ]
1
2022-01-08T14:26:11.000Z
2022-01-08T14:26:11.000Z
24.swap-nodes-in-pairs.cpp
meyash/LeetCode-Solutions
a9e064af64436e5a24bc3a2c93bd15d3c43f2391
[ "MIT" ]
null
null
null
24.swap-nodes-in-pairs.cpp
meyash/LeetCode-Solutions
a9e064af64436e5a24bc3a2c93bd15d3c43f2391
[ "MIT" ]
null
null
null
/* * @lc app=leetcode id=24 lang=cpp * * [24] Swap Nodes in Pairs * * https://leetcode.com/problems/swap-nodes-in-pairs/description/ * * algorithms * Medium (52.34%) * Likes: 3141 * Dislikes: 199 * Total Accepted: 555K * Total Submissions: 1.1M * Testcase Example: '[1,2,3,4]' * * Given a linked li...
19.088889
75
0.528522
meyash
1361a37f4b1da97bb92190c9e2e46117ec901d0b
26,700
hh
C++
Kaskade/timestepping/limexWithoutJensHierarchicEst.hh
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
3
2019-07-03T14:03:31.000Z
2021-12-19T10:18:49.000Z
Kaskade/timestepping/limexWithoutJensHierarchicEst.hh
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
6
2020-02-17T12:01:30.000Z
2021-12-09T22:02:33.000Z
Kaskade/timestepping/limexWithoutJensHierarchicEst.hh
chenzongxiong/streambox
76f95780d1bf6c02731e39d8ac73937cea352b95
[ "Unlicense" ]
2
2020-12-03T04:41:18.000Z
2021-01-11T21:44:42.000Z
#ifndef LIMEX_HH #define LIMEX_HH #include <fstream> #include <iostream> #include <boost/timer/timer.hpp> #include "dune/istl/solvers.hh" #include "fem/embedded_errorest.hh" #include "fem/iterate_grid.hh" #include "fem/hierarchicErrorEstimator.hh" #include "fem/hierarchicspace.hh" #include "fem/istlinterface.hh" #...
36.827586
135
0.648315
chenzongxiong
1366afee72885e9cf2725973a9d8813df5c6595e
195,357
cpp
C++
p2cog.cpp
pullmoll/p2
ef205195c26a291fb91fda6639351a33e95d1c29
[ "BSD-3-Clause" ]
1
2019-12-17T16:20:50.000Z
2019-12-17T16:20:50.000Z
p2cog.cpp
pullmoll/p2emu
ef205195c26a291fb91fda6639351a33e95d1c29
[ "BSD-3-Clause" ]
null
null
null
p2cog.cpp
pullmoll/p2emu
ef205195c26a291fb91fda6639351a33e95d1c29
[ "BSD-3-Clause" ]
null
null
null
/**************************************************************************** * * P2 emulator Cog implementation * * Function bodies and comments generated from ":/P2 instruction set.csv" * * Copyright (C) 2019 Jürgen Buchmüller <pullmoll@t-online.de> * * Redistribution and use in source and binary forms, with ...
19.715107
132
0.523206
pullmoll
13677a90830216fa92966aa76e8d06cd51f35f15
2,579
cpp
C++
leetcode/problems/medium/662-maximum-width-of-binary-tree.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
leetcode/problems/medium/662-maximum-width-of-binary-tree.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
leetcode/problems/medium/662-maximum-width-of-binary-tree.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
/* Maximum Width of Binary Tree Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binary tree has the same structure as a full binary tree, but some nodes are null. The width of one level is defined as the length between the...
26.864583
227
0.570376
wingkwong
136ae6eb4cdb6c096f8edfeab8336e76d31aa048
176
hpp
C++
Structural/Bridge/include/TrainTravel.hpp
craviee/design-patterns-modern-cpp
39896c8a2491c5599f79afa65a07deda2e4e7dd7
[ "Unlicense" ]
3
2019-11-15T01:38:31.000Z
2020-04-21T13:04:19.000Z
Structural/Bridge/include/TrainTravel.hpp
craviee/design-patterns-modern-cpp
39896c8a2491c5599f79afa65a07deda2e4e7dd7
[ "Unlicense" ]
23
2019-11-29T09:13:42.000Z
2020-02-05T14:53:03.000Z
Structural/Bridge/include/TrainTravel.hpp
craviee/design-patterns-modern-cpp
39896c8a2491c5599f79afa65a07deda2e4e7dd7
[ "Unlicense" ]
null
null
null
#pragma once #include "TravelMethod.hpp" #include <iostream> class TrainTravel : public TravelMethod { public: TrainTravel() { price = 50; }; void startTravel(); };
14.666667
41
0.681818
craviee
136d2bad571633e9960bd3268798748c94c0d4cc
792
hpp
C++
OpenS4/Renderer/TransformationPipeline.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
3
2020-08-05T19:54:08.000Z
2021-06-11T12:21:51.000Z
OpenS4/Renderer/TransformationPipeline.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
null
null
null
OpenS4/Renderer/TransformationPipeline.hpp
MadShadow-/OpenS4
1b2f69d617406a2a49ed0511d93771d978b6bfc3
[ "MIT" ]
4
2020-07-20T13:25:13.000Z
2021-08-06T12:44:14.000Z
#pragma once #include "MatrixStack.hpp" namespace OpenS4::Renderer { class TransformationPipeline { OpenS4::Renderer::MatrixStack m_modelView; OpenS4::Renderer::MatrixStack m_projection; glm::mat4x4 m_mvp; public: OpenS4::Renderer::MatrixStack* getModelViewStack() { return &m_modelView; } Op...
23.294118
79
0.681818
MadShadow-
136ecd7cc9bb9b563fbfa5bdba36746079b3c3fe
1,986
hpp
C++
higan/ws/system/system.hpp
libretro-mirrors/higan
8617711ea2c201a33442266945dc7ed186e9d695
[ "Intel", "ISC" ]
2
2018-09-13T15:43:23.000Z
2020-07-15T01:59:04.000Z
higan/ws/system/system.hpp
libretro-mirrors/higan
8617711ea2c201a33442266945dc7ed186e9d695
[ "Intel", "ISC" ]
1
2018-04-29T19:45:14.000Z
2018-04-29T19:45:14.000Z
higan/ws/system/system.hpp
libretro-mirrors/higan
8617711ea2c201a33442266945dc7ed186e9d695
[ "Intel", "ISC" ]
null
null
null
struct System : IO { enum class Model : uint { WonderSwan, WonderSwanColor, SwanCrystal, PocketChallengeV2 }; auto loaded() const -> bool { return _loaded; } auto model() const -> Model { return _model; } auto color() const -> bool { return r.color; } auto planar() const -> bool { return r.format == 0; } a...
27.971831
102
0.653575
libretro-mirrors
136f22c19a7bea3cfa5b49f5ed831f5f77602776
57,555
cpp
C++
bfcp/server/conference.cpp
Issic47/bfcp
b0e78534f58820610df6133dc4043f902c001173
[ "BSD-3-Clause" ]
10
2015-08-05T06:07:41.000Z
2020-12-17T04:28:48.000Z
bfcp/server/conference.cpp
Issic47/bfcp
b0e78534f58820610df6133dc4043f902c001173
[ "BSD-3-Clause" ]
null
null
null
bfcp/server/conference.cpp
Issic47/bfcp
b0e78534f58820610df6133dc4043f902c001173
[ "BSD-3-Clause" ]
8
2015-11-27T13:22:30.000Z
2021-01-28T07:20:50.000Z
#include <bfcp/server/conference.h> #include <boost/bind.hpp> #include <muduo/base/Logging.h> #include <tinyxml2.h> #include <bfcp/common/bfcp_conn.h> #include <bfcp/server/floor.h> #include <bfcp/server/user.h> #include <bfcp/server/floor_request_node.h> namespace bfcp { namespace detail { class FloorRequestCmp {...
29.698142
93
0.692086
Issic47
137081ba4854c7315c8985ba7f8652a95ff39bd7
2,023
cpp
C++
src/dsp/PulseShaper.cpp
Chowdhury-DSP/ChowKick
632c6ee3ae9d43cbbc21e5d2e372ceee1f7d8cfb
[ "BSD-3-Clause" ]
92
2021-05-17T13:53:35.000Z
2022-03-30T00:57:53.000Z
src/dsp/PulseShaper.cpp
Chowdhury-DSP/ChowKick
632c6ee3ae9d43cbbc21e5d2e372ceee1f7d8cfb
[ "BSD-3-Clause" ]
19
2021-05-16T02:03:57.000Z
2021-11-17T09:40:42.000Z
src/dsp/PulseShaper.cpp
Chowdhury-DSP/ChowKick
632c6ee3ae9d43cbbc21e5d2e372ceee1f7d8cfb
[ "BSD-3-Clause" ]
10
2021-05-17T02:27:18.000Z
2022-03-30T00:57:51.000Z
#include "PulseShaper.h" using namespace ShaperTags; PulseShaper::PulseShaper (AudioProcessorValueTreeState& vts, double sampleRate) : c40 (0.015e-6f, (float) sampleRate, 0.029f) { decayParam = vts.getRawParameterValue (decayTag); sustainParam = vts.getRawParameterValue (sustainTag); } void PulseShaper::addP...
41.285714
125
0.490855
Chowdhury-DSP
13720b8a66bcf90a8925539c1c915c1265ae5a92
8,685
cpp
C++
samplevenmanager/samplevenmanager/VENImpl.cpp
AnalyticsFire/OpenADR-VEN-Library
621e410370c3b3b91a5973d1fc19094278eeff75
[ "Apache-2.0" ]
null
null
null
samplevenmanager/samplevenmanager/VENImpl.cpp
AnalyticsFire/OpenADR-VEN-Library
621e410370c3b3b91a5973d1fc19094278eeff75
[ "Apache-2.0" ]
3
2021-01-20T13:02:54.000Z
2021-02-19T14:05:34.000Z
samplevenmanager/samplevenmanager/VENImpl.cpp
AnalyticsFire/OpenADR-VEN-Library
621e410370c3b3b91a5973d1fc19094278eeff75
[ "Apache-2.0" ]
null
null
null
/* * VENImpl.cpp * * Created on: Jul 8, 2015 * Author: dupes */ #include "VENImpl.h" #include <iostream> #include <oadr/request/report/ReportHelper.h> #include <stdlib.h> using namespace std; namespace samplevenmanager { VENImpl::VENImpl(string venName, bool logToStdout) { el::Configurations conf; ...
31.467391
144
0.581577
AnalyticsFire
1373eff35dc1bb4a577ca1979c6d056c070a3100
3,716
cpp
C++
SerialPrograms/Source/CommonFramework/ImageMatch/ImageDiff.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
SerialPrograms/Source/CommonFramework/ImageMatch/ImageDiff.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
SerialPrograms/Source/CommonFramework/ImageMatch/ImageDiff.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
/* Image Diff * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #include <cmath> #include <smmintrin.h> #include "Common/Compiler.h" #include "Common/Cpp/Exceptions.h" #include "Common/Cpp/SIMDDebuggers.h" #include "Kernels/ImageStats/Kernels_ImagePixelSumSqr.h" #include "Kernels/Ima...
32.884956
92
0.662002
BlizzardHero
13746480cc2d4e0c0edc506092a0b5a3f40a53ba
1,604
cpp
C++
maratona_1/data_structure.cpp
eder-matheus/programming_marathons
93e5e8bd21402a59b6d8e4cdfee2f8f3f7c96ecd
[ "MIT" ]
null
null
null
maratona_1/data_structure.cpp
eder-matheus/programming_marathons
93e5e8bd21402a59b6d8e4cdfee2f8f3f7c96ecd
[ "MIT" ]
null
null
null
maratona_1/data_structure.cpp
eder-matheus/programming_marathons
93e5e8bd21402a59b6d8e4cdfee2f8f3f7c96ecd
[ "MIT" ]
1
2021-09-01T13:30:19.000Z
2021-09-01T13:30:19.000Z
// data structure - uri 1340 #include <iostream> #include <string> #include <stack> #include <queue> #define ADD_ELEMENT 1 #define REMOVE_ELEMENT 2 int main() { int cmd_count; int cmd, param; while (std::cin >> cmd_count) { bool is_stack = true; bool is_queue = true; bool is_prior_queue = true; ...
20.564103
49
0.535536
eder-matheus
137bec91d6c492eca71c6cc67b450771d8edf9fd
213
cpp
C++
src/autonet/test/AutoNetTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
87
2015-01-18T00:43:06.000Z
2022-02-11T17:40:50.000Z
src/autonet/test/AutoNetTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
274
2015-01-03T04:50:49.000Z
2021-03-08T09:01:09.000Z
src/autonet/test/AutoNetTest.cpp
CaseyCarter/autowiring
48e95a71308318c8ffb7ed1348e034fd9110f70c
[ "Apache-2.0" ]
15
2015-09-30T20:58:43.000Z
2020-12-19T21:24:56.000Z
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include <autotesting/gtest-all-guard.hpp> int main(int argc, const char* argv []) { return autotesting_main(argc, argv); }
26.625
65
0.71831
CaseyCarter
137c675b8a13eb396aed09c648230d3aabe5851d
2,857
cpp
C++
Chapter 06/18.cpp
jesushilarioh/Starting-Out-With-C-Programming-Challenges
34fd6ac3d95c4da934a739f8aeac9b3e078ef898
[ "MIT" ]
7
2019-08-03T10:36:55.000Z
2022-03-01T09:31:14.000Z
Chapter 06/18.cpp
jesushilarioh/Starting-Out-With-C-Programming-Challenges
34fd6ac3d95c4da934a739f8aeac9b3e078ef898
[ "MIT" ]
null
null
null
Chapter 06/18.cpp
jesushilarioh/Starting-Out-With-C-Programming-Challenges
34fd6ac3d95c4da934a739f8aeac9b3e078ef898
[ "MIT" ]
6
2019-07-04T05:59:19.000Z
2022-01-26T03:33:03.000Z
#include <iostream> using namespace std; double inputValidate(double, double); void getInfo(double &, double &, double &); void calcAndDisplay(double, double, double); int main() { const double CHARGE_PER_HOUR = 25.00; double num_of_rooms, price_per_gal, sqft_to_paint = 0; getInfo(n...
26.453704
63
0.553378
jesushilarioh
13829a09e7ed67423342e00b45f1b9f38f7a8aa1
3,003
hpp
C++
openstudiocore/src/cli/EmbeddedHelp.hpp
hellok-coder/OS-Testing
e9e18ad9e99f709a3f992601ed8d2e0662175af4
[ "blessing" ]
1
2019-11-12T02:07:03.000Z
2019-11-12T02:07:03.000Z
openstudiocore/src/cli/EmbeddedHelp.hpp
hellok-coder/OS-Testing
e9e18ad9e99f709a3f992601ed8d2e0662175af4
[ "blessing" ]
1
2019-02-04T23:30:45.000Z
2019-02-04T23:30:45.000Z
openstudiocore/src/cli/EmbeddedHelp.hpp
hellok-coder/OS-Testing
e9e18ad9e99f709a3f992601ed8d2e0662175af4
[ "blessing" ]
null
null
null
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
50.05
125
0.698302
hellok-coder
1387eab01b3800d188276007b4a92b463e91e631
162
hpp
C++
Algorithms/tree_t(G)/Correctness/randomTreeGenerator.hpp
lucaskeiler/AlgoritmosTCC
eccf14c2c872acb9e0728eb8948eee121b274f2e
[ "MIT" ]
null
null
null
Algorithms/tree_t(G)/Correctness/randomTreeGenerator.hpp
lucaskeiler/AlgoritmosTCC
eccf14c2c872acb9e0728eb8948eee121b274f2e
[ "MIT" ]
null
null
null
Algorithms/tree_t(G)/Correctness/randomTreeGenerator.hpp
lucaskeiler/AlgoritmosTCC
eccf14c2c872acb9e0728eb8948eee121b274f2e
[ "MIT" ]
null
null
null
#ifndef TREE_GENERATOR_HPP #define TREE_GENERATOR_HPP #include "tree.hpp" Graph* generate_random_tree(int n); void randomizePercolationLimit(Graph* g); #endif
16.2
41
0.808642
lucaskeiler
138b9304f6ab196ecd0861d5e30311e58c74eddf
5,271
hpp
C++
tpm_module/libhis_getpubkey.hpp
iadgovuser26/HIRS
4b461ebbabac5cd8ef54e562f597d65346c3c863
[ "Apache-2.0" ]
127
2018-09-07T15:45:45.000Z
2022-02-10T11:13:51.000Z
tpm_module/libhis_getpubkey.hpp
iadgovuser26/HIRS
4b461ebbabac5cd8ef54e562f597d65346c3c863
[ "Apache-2.0" ]
260
2018-09-07T19:08:25.000Z
2022-03-31T15:28:24.000Z
tpm_module/libhis_getpubkey.hpp
iadgovuser26/HIRS
4b461ebbabac5cd8ef54e562f597d65346c3c863
[ "Apache-2.0" ]
48
2018-09-23T09:13:20.000Z
2022-03-06T20:17:09.000Z
#ifndef libhis_getpubkey_hpp #define libhis_getpubkey_hpp #ifdef WINDOWS #include "tspi.h" #include "tss_error.h" #include "tss_defines.h" #endif #ifdef LINUX #include <tss/tspi.h> #include <tss/tss_error.h> #include <tss/tss_defines.h> #endif #include "libhis_exception.hpp" class libhis_getpubkey { public: l...
31.562874
124
0.743502
iadgovuser26
139069153eadeaafb5672cd87154d1c6af74317e
4,593
cpp
C++
cpp/oneapi/dal/table/common.cpp
mchernov-intel/daal
3342c0e2812e48d612da7ccfa845bd0168145fb7
[ "Apache-2.0" ]
null
null
null
cpp/oneapi/dal/table/common.cpp
mchernov-intel/daal
3342c0e2812e48d612da7ccfa845bd0168145fb7
[ "Apache-2.0" ]
4
2020-08-05T06:29:01.000Z
2020-08-18T16:28:04.000Z
cpp/oneapi/dal/table/common.cpp
mchernov-intel/daal
3342c0e2812e48d612da7ccfa845bd0168145fb7
[ "Apache-2.0" ]
2
2020-08-05T05:53:41.000Z
2020-08-05T06:00:33.000Z
/******************************************************************************* * Copyright 2020-2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
30.019608
100
0.680165
mchernov-intel
ca5ed5c99de5ffacee1fda856d91607064bc8d85
3,127
cpp
C++
Source/Shared/service_call_routed_handler.cpp
natiskan/xbox-live-api
9e7e51e0863b5983c2aa334a7b0db579b3bdf1de
[ "MIT" ]
118
2019-05-13T22:56:02.000Z
2022-03-16T06:12:39.000Z
Source/Shared/service_call_routed_handler.cpp
aspavlov/xbox-live-api
4bec6f92347d0ad6c85463b601821333de631e3a
[ "MIT" ]
31
2019-05-07T13:09:28.000Z
2022-01-26T10:02:59.000Z
Source/Shared/service_call_routed_handler.cpp
aspavlov/xbox-live-api
4bec6f92347d0ad6c85463b601821333de631e3a
[ "MIT" ]
48
2019-05-28T23:55:31.000Z
2021-12-22T03:47:56.000Z
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "service_call_routed_handler.h" #include "http_call_request_message_internal.h" #include "xsapi_utils.h" NAMESPACE_MICROSOFT_XBOX_SERVICES_CPP_BEGIN S...
26.5
101
0.676687
natiskan
ca5fad25cc1536cedb365efd03779db308de02a3
2,678
cpp
C++
Engine/GUI/gkGUIManager.cpp
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
1
2017-01-16T11:53:44.000Z
2017-01-16T11:53:44.000Z
Engine/GUI/gkGUIManager.cpp
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
null
null
null
Engine/GUI/gkGUIManager.cpp
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
null
null
null
/* ------------------------------------------------------------------------------- This file is part of gkGUIManager. http://gamekit.googlecode.com/ Copyright (c) 2012 Alberto Torres Ruiz Contributor(s): none yet. ------------------------------------------------------------------------------- This s...
28.489362
97
0.686706
slagusev
ca604a483b4c5f814e1012c44343a765d91447f4
1,460
cpp
C++
logfiletest/tests/KnownPlayersTest.cpp
maxperiod/aiongrindmeter2
91a54d7cb01957cd9e1439b89bbd03ddb63a76a7
[ "MIT" ]
2
2016-08-19T19:28:04.000Z
2021-04-18T04:48:44.000Z
logfiletest/tests/KnownPlayersTest.cpp
maxperiod/aiongrindmeter2
91a54d7cb01957cd9e1439b89bbd03ddb63a76a7
[ "MIT" ]
null
null
null
logfiletest/tests/KnownPlayersTest.cpp
maxperiod/aiongrindmeter2
91a54d7cb01957cd9e1439b89bbd03ddb63a76a7
[ "MIT" ]
null
null
null
#include "../model/KnownPlayers.h" #include "gtest/gtest.h" TEST(KnownPlayers, addPlayer1){ KnownPlayers players; EXPECT_FALSE(players.isPlayer("PublicLightBus")); players.addPlayer("PublicLightBus"); EXPECT_TRUE(players.isPlayer("PublicLightBus")); EXPECT_EQ("", players.getPlayerClass("PublicLightBus")); pla...
25.614035
59
0.764384
maxperiod
ca67ea5da51db24ed967d5f77e4d7709dfa85d35
1,621
cc
C++
src/load_balancer/lb_entry.cc
cuisonghui/tera
99a3f16de13dd454a64d64e938fcfeb030674d5f
[ "Apache-2.0", "BSD-3-Clause" ]
2,003
2015-07-13T08:36:45.000Z
2022-03-26T02:10:07.000Z
src/load_balancer/lb_entry.cc
a1e2w3/tera
dbcd28af792d879d961bf9fc7eb60de81b437646
[ "Apache-2.0", "BSD-3-Clause" ]
981
2015-07-14T00:03:24.000Z
2021-05-10T09:50:01.000Z
src/load_balancer/lb_entry.cc
a1e2w3/tera
dbcd28af792d879d961bf9fc7eb60de81b437646
[ "Apache-2.0", "BSD-3-Clause" ]
461
2015-07-14T02:53:35.000Z
2022-03-10T10:31:49.000Z
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "load_balancer/lb_entry.h" #include <string> #include "gflags/gflags.h" #include "glog/logging.h" #include "common/net/ip_address.h" #include "c...
25.328125
89
0.728563
cuisonghui
ca69449fec6c183ef4191b4396ea1d7790c69444
7,832
cpp
C++
sys_opt/multiple_process/src/host.cpp
zohourih/Vitis_Accel_Examples
faf1e3f9288ba40047acb7cb4747e8cb4a2f2eb2
[ "BSD-3-Clause" ]
null
null
null
sys_opt/multiple_process/src/host.cpp
zohourih/Vitis_Accel_Examples
faf1e3f9288ba40047acb7cb4747e8cb4a2f2eb2
[ "BSD-3-Clause" ]
null
null
null
sys_opt/multiple_process/src/host.cpp
zohourih/Vitis_Accel_Examples
faf1e3f9288ba40047acb7cb4747e8cb4a2f2eb2
[ "BSD-3-Clause" ]
null
null
null
/********** Copyright (c) 2019, Xilinx, Inc. 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 of source code must retain the above copyright notice, this list of conditions and the fol...
36.427907
101
0.580567
zohourih
ca69464a9aba7930efa09a2802a96b680b239b76
191
hpp
C++
include/utils.hpp
stereolabs/zed-tracking-viewer
7b634de51d68a5a46a8156c16a259586a8e6c46c
[ "MIT" ]
18
2016-09-29T16:05:26.000Z
2020-01-30T09:23:45.000Z
include/utils.hpp
stereolabs/zed-tracking-viewer
7b634de51d68a5a46a8156c16a259586a8e6c46c
[ "MIT" ]
10
2016-07-05T18:22:58.000Z
2017-07-28T21:40:26.000Z
include/utils.hpp
stereolabs/zed-tracking-viewer
7b634de51d68a5a46a8156c16a259586a8e6c46c
[ "MIT" ]
10
2016-08-29T05:59:30.000Z
2021-02-25T16:30:55.000Z
#ifndef __UTILS_HPP__ #define __UTILS_HPP__ #include <GL/glew.h> #include "GL/glut.h" /* OpenGL Utility Toolkit header */ #ifndef M_PI #define M_PI 3.141592653 #endif #endif
15.916667
60
0.691099
stereolabs
ca69e30937a9173f2083f55e5290ec93628ccf73
4,996
cc
C++
src/test/outmdsd/testbuflog.cc
panaji/fluentd-plugin-mdsd
6e7680b2e60afd9a5f33f477a7eb50fdea224ee8
[ "MIT" ]
20
2017-03-24T21:53:16.000Z
2021-12-22T22:19:42.000Z
src/test/outmdsd/testbuflog.cc
panaji/fluentd-plugin-mdsd
6e7680b2e60afd9a5f33f477a7eb50fdea224ee8
[ "MIT" ]
61
2017-01-12T21:22:11.000Z
2021-07-27T08:22:11.000Z
src/test/outmdsd/testbuflog.cc
panaji/fluentd-plugin-mdsd
6e7680b2e60afd9a5f33f477a7eb50fdea224ee8
[ "MIT" ]
17
2017-03-17T22:48:14.000Z
2021-07-27T04:08:32.000Z
#include <boost/test/unit_test.hpp> #include "BufferedLogger.h" #include "DjsonLogItem.h" #include "testutil.h" #include "MockServer.h" using namespace EndpointLog; BOOST_AUTO_TEST_SUITE(testbuflog) BOOST_AUTO_TEST_CASE(Test_BufferedLogger_Cstor_cache) { try { BufferedLogger b("/tmp/nosuchfile", 1, 1, 1,...
26.716578
94
0.66293
panaji
ca6a882fad6f92e0978e7daf3a16622a7a1cb67a
25,924
cpp
C++
Source/Anggur/Renderer/Renderer.cpp
NoorWachid/Anggur
73b14abb238f90d964b9764aa259d8483a5dc593
[ "MIT" ]
1
2021-06-07T06:29:43.000Z
2021-06-07T06:29:43.000Z
Source/Anggur/Renderer/Renderer.cpp
NoorWachid/Anggur
73b14abb238f90d964b9764aa259d8483a5dc593
[ "MIT" ]
null
null
null
Source/Anggur/Renderer/Renderer.cpp
NoorWachid/Anggur
73b14abb238f90d964b9764aa259d8483a5dc593
[ "MIT" ]
null
null
null
#include "Renderer.h" #include <Anggur/Helper/Log.h> #include <glad/glad.h> #define ANGGUR_DEBUG_TEXT_RECTS 1 namespace Anggur { struct Vertex { float position[2]; float color[4]; float texCoord[2]; float texIndex; static const size_t length = 9; }; Shader Renderer::batchShader; float* Rendere...
25.846461
201
0.543126
NoorWachid
ca7cf8f7f94ccb57322f9fa7393614ff7a6131bf
899
cpp
C++
libs/core/input/samples/mouse/sample_input_mouse_main.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/core/input/samples/mouse/sample_input_mouse_main.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/core/input/samples/mouse/sample_input_mouse_main.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file sample_input_mouse_main.cpp * * @brief マウス入力のサンプル * * @author myoukaku */ #include <bksge/core/input.hpp> #include <bksge/core/math.hpp> #include <iostream> int main() { bksge::MouseManager mouse; for (;;) { mouse.Update(); auto const& state = mouse.state(0); if (sta...
18.729167
50
0.586207
myoukaku
ca7d4a3a1c5391b14b40a27a73a855398a2fe8b7
1,065
cpp
C++
binary_search/binary_search/153_find_minimum_in_rotated_sorted_array.cpp
Hadleyhzy/data_structure_and_algorithm
0e610ba78dcb216323d9434a0f182756780ce5c0
[ "MIT" ]
1
2020-10-12T19:18:19.000Z
2020-10-12T19:18:19.000Z
binary_search/binary_search/153_find_minimum_in_rotated_sorted_array.cpp
Hadleyhzy/data_structure_and_algorithm
0e610ba78dcb216323d9434a0f182756780ce5c0
[ "MIT" ]
null
null
null
binary_search/binary_search/153_find_minimum_in_rotated_sorted_array.cpp
Hadleyhzy/data_structure_and_algorithm
0e610ba78dcb216323d9434a0f182756780ce5c0
[ "MIT" ]
1
2020-10-12T19:18:04.000Z
2020-10-12T19:18:04.000Z
// // 153_find_minimum_in_rotated_sorted_array.cpp // binary_search // // Created by Hadley on 08.08.20. // Copyright © 2020 Hadley. All rights reserved. // #include <stdio.h> #include <algorithm> #include <iostream> #include <vector> #include <string> #include <unordered_map> #include <stack> #include <cstring> #...
22.1875
70
0.490141
Hadleyhzy
ca7fe8faab4db6a745ca19bd210755ff85062973
4,314
cpp
C++
plugins/core/qAnimation/src/ViewInterpolate.cpp
ohanlonl/qCMAT
f6ca04fa7c171629f094ee886364c46ff8b27c0b
[ "BSD-Source-Code" ]
null
null
null
plugins/core/qAnimation/src/ViewInterpolate.cpp
ohanlonl/qCMAT
f6ca04fa7c171629f094ee886364c46ff8b27c0b
[ "BSD-Source-Code" ]
null
null
null
plugins/core/qAnimation/src/ViewInterpolate.cpp
ohanlonl/qCMAT
f6ca04fa7c171629f094ee886364c46ff8b27c0b
[ "BSD-Source-Code" ]
1
2019-02-03T12:19:42.000Z
2019-02-03T12:19:42.000Z
//########################################################################## //# # //# CLOUDCOMPARE PLUGIN: qAnimation # //# # //# This pr...
53.925
155
0.621929
ohanlonl
ca7ffcf02d80854f65a95f7ca88413fe1d1d33f8
1,264
hpp
C++
sprig/serialization/sprig/utility.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
2
2017-10-24T13:56:24.000Z
2018-09-28T13:21:22.000Z
sprig/serialization/sprig/utility.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
null
null
null
sprig/serialization/sprig/utility.hpp
bolero-MURAKAMI/Sprig
51ce4db4f4d093dee659a136f47249e4fe91fc7a
[ "BSL-1.0" ]
2
2016-04-12T03:26:06.000Z
2018-09-28T13:21:22.000Z
/*============================================================================= Copyright (c) 2010-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprig 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) ===...
27.478261
79
0.685918
bolero-MURAKAMI
ca803721a17b979fcb480f1e41eb285ddb9e9234
6,759
cpp
C++
bbruntime_dll/bbruntime_dll.cpp
cooljith91112/blitz3d_msvc2017
6c8e0f570bea314837cf71bc9ef016255c1d56b3
[ "Zlib" ]
169
2015-01-01T21:51:22.000Z
2022-03-31T04:43:37.000Z
bbruntime_dll/bbruntime_dll.cpp
quartexNOR/blitz3d
647f304ef81387d8235b084bb1d9cb7ba5ff139e
[ "Zlib" ]
2
2019-03-01T20:18:14.000Z
2022-01-01T17:50:00.000Z
bbruntime_dll/bbruntime_dll.cpp
quartexNOR/blitz3d
647f304ef81387d8235b084bb1d9cb7ba5ff139e
[ "Zlib" ]
83
2015-01-11T04:26:37.000Z
2022-03-21T07:38:25.000Z
#pragma warning( disable:4786 ) #include "bbruntime_dll.h" #include "../debugger/debugger.h" #ifdef PRODEMO #include "../shareprot/shareprot.h" #endif using namespace std; #include <map> #include <eh.h> #include <float.h> #include "../bbruntime/bbruntime.h" class DummyDebugger : public Debugger{ public: virtual...
22.160656
118
0.67007
cooljith91112
ca869b636ec9246c44585f420672f45664ac0b5a
7,061
hpp
C++
control/velocity_controller_holonomic.hpp
jlecoeur/MAVRIC_Library
56281851da7541d5c1199490a8621d7f18482be1
[ "BSD-3-Clause" ]
12
2016-07-12T10:26:47.000Z
2021-12-14T10:03:11.000Z
control/velocity_controller_holonomic.hpp
jlecoeur/MAVRIC_Library
56281851da7541d5c1199490a8621d7f18482be1
[ "BSD-3-Clause" ]
183
2015-01-22T12:35:18.000Z
2017-06-09T10:11:26.000Z
control/velocity_controller_holonomic.hpp
jlecoeur/MAVRIC_Library
56281851da7541d5c1199490a8621d7f18482be1
[ "BSD-3-Clause" ]
25
2015-02-03T15:15:48.000Z
2021-12-14T08:55:04.000Z
/******************************************************************************* * Copyright (c) 2009-2016, MAV'RIC Development Team * 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. R...
45.554839
159
0.615635
jlecoeur
ca8738af26b4b76ac7b3ca0adbcd6774bb95e168
17,300
cc
C++
src/api/assets/audio.cc
izzyaxel/Loft
809b4e3df2c2b08092c6b3a94073f4509240b4f2
[ "BSD-3-Clause" ]
null
null
null
src/api/assets/audio.cc
izzyaxel/Loft
809b4e3df2c2b08092c6b3a94073f4509240b4f2
[ "BSD-3-Clause" ]
null
null
null
src/api/assets/audio.cc
izzyaxel/Loft
809b4e3df2c2b08092c6b3a94073f4509240b4f2
[ "BSD-3-Clause" ]
null
null
null
#include "audio.hh" #include <ogg/ogg.h> #include <vorbis/codec.h> #include <commons/dataBuffer.hh> #include <commons/fileio.hh> #include <cstring> #include <cmath> float dBToVolume(float dB) { return powf(10.0f, 0.05f * dB); } float volumeTodB(float vol) { return 20.0f * log10f(vol); } AudioInfo decodeAudio(FILE...
31.627057
154
0.649653
izzyaxel
ca875961a51e9992462872ebf8581cc5c07c1141
3,655
cpp
C++
src/app/plugin/binding-chip/chip.cpp
balducci-apple/connectedhomeip
d5cbe865ee53557330941a3c4c243f40c3c7b400
[ "Apache-2.0" ]
1
2022-01-17T09:09:44.000Z
2022-01-17T09:09:44.000Z
src/app/plugin/binding-chip/chip.cpp
balducci-apple/connectedhomeip
d5cbe865ee53557330941a3c4c243f40c3c7b400
[ "Apache-2.0" ]
1
2020-07-27T16:12:51.000Z
2020-07-27T18:57:48.000Z
src/app/plugin/binding-chip/chip.cpp
balducci-apple/connectedhomeip
d5cbe865ee53557330941a3c4c243f40c3c7b400
[ "Apache-2.0" ]
2
2020-07-27T15:54:52.000Z
2021-05-25T16:13:07.000Z
/** * * Copyright (c) 2020 Project CHIP Authors * * 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 requi...
24.205298
117
0.746101
balducci-apple
ca88a4a87ee5efe553b0d9c38e76a232adcfd35a
24,274
hpp
C++
libraries/chain/include/betterchain/chain/apply_context.hpp
betterchainio/betterchain
29f82c25ae6812beaf09f8d7069932474bea9f8b
[ "MIT" ]
3
2018-01-18T07:12:34.000Z
2018-01-22T10:00:29.000Z
libraries/chain/include/betterchain/chain/apply_context.hpp
betterchainio/betterchain
29f82c25ae6812beaf09f8d7069932474bea9f8b
[ "MIT" ]
null
null
null
libraries/chain/include/betterchain/chain/apply_context.hpp
betterchainio/betterchain
29f82c25ae6812beaf09f8d7069932474bea9f8b
[ "MIT" ]
2
2018-01-30T01:03:10.000Z
2019-02-28T09:04:06.000Z
/** * @file * @copyright defined in BetterChain/LICENSE.txt */ #pragma once #include <betterchain/chain/block.hpp> #include <betterchain/chain/transaction.hpp> #include <betterchain/chain/transaction_metadata.hpp> #include <betterchain/chain/contracts/contract_table_objects.hpp> #include <fc/utility.hpp> #include ...
36.834598
177
0.64118
betterchainio
ca8d95e114761eac989d3bfcefe32bad6b3b09e4
685
hpp
C++
src/purple/view/scene/objects.hpp
snailbaron/purple
1dc5ae84c7fd702d5aea27e33c557f48ac564e77
[ "MIT" ]
null
null
null
src/purple/view/scene/objects.hpp
snailbaron/purple
1dc5ae84c7fd702d5aea27e33c557f48ac564e77
[ "MIT" ]
null
null
null
src/purple/view/scene/objects.hpp
snailbaron/purple
1dc5ae84c7fd702d5aea27e33c557f48ac564e77
[ "MIT" ]
null
null
null
#pragma once #include "../renderer.hpp" #include "../visual.hpp" #include <purple/core/component.hpp> class SceneObject { public: virtual void render( Renderer& canvas, const WorldPoint& cameraPosition) const = 0; virtual void update(double deltaSec) {} }; class SceneGraphics : public SceneObject { ...
22.833333
75
0.705109
snailbaron
ca8fe46168ae8d6d7fc9f43078b3567da12f3814
627
cpp
C++
Info/Info/Items/AwardInfo.cpp
Teles1/LuniaAsio
62e404442cdb6e5523fc6e7a5b0f64a4471180ed
[ "MIT" ]
null
null
null
Info/Info/Items/AwardInfo.cpp
Teles1/LuniaAsio
62e404442cdb6e5523fc6e7a5b0f64a4471180ed
[ "MIT" ]
null
null
null
Info/Info/Items/AwardInfo.cpp
Teles1/LuniaAsio
62e404442cdb6e5523fc6e7a5b0f64a4471180ed
[ "MIT" ]
null
null
null
#include "AwardInfo.h" namespace Lunia { namespace XRated { namespace Database { namespace Info { AwardInfo::AwardInfo() { } void AwardInfo::Serialize(Serializer::IStreamWriter& out) const { out.Begin(L"AwardInfo"); out.Write(L"Items", Items); out.Write(L"Title", Title); o...
21.62069
67
0.598086
Teles1
ca90b12b174cbd40b679b1089b1a0640e129d182
30,810
cpp
C++
numerics/poisson_series_basis_test.cpp
erplsf/Principia
1f2a1fc53f8a73c1bc67f12213169e6969c8488f
[ "MIT" ]
565
2015-01-04T21:47:18.000Z
2022-03-22T12:04:58.000Z
numerics/poisson_series_basis_test.cpp
erplsf/Principia
1f2a1fc53f8a73c1bc67f12213169e6969c8488f
[ "MIT" ]
1,019
2015-01-03T11:42:27.000Z
2022-03-29T21:02:15.000Z
numerics/poisson_series_basis_test.cpp
erplsf/Principia
1f2a1fc53f8a73c1bc67f12213169e6969c8488f
[ "MIT" ]
92
2015-02-11T23:08:58.000Z
2022-03-21T03:35:37.000Z
 #include "numerics/poisson_series_basis.hpp" #include "geometry/frame.hpp" #include "geometry/grassmann.hpp" #include "geometry/hilbert.hpp" #include "geometry/named_quantities.hpp" #include "gtest/gtest.h" #include "numerics/poisson_series.hpp" #include "numerics/polynomial_evaluators.hpp" #include "quantities/elem...
56.018182
75
0.576923
erplsf
ca959fc60fa922e237857429dcedc637321dc35a
8,637
cpp
C++
src/MageFramework/SceneElements/model.cpp
AmanSachan1/ShaderPlayGround
aba8293404bcba7ecad2a97c86c8aea7d0693945
[ "MIT" ]
2
2019-12-04T17:06:44.000Z
2019-12-24T16:33:37.000Z
src/MageFramework/SceneElements/model.cpp
AmanSachan1/GraphicsPlayground
aba8293404bcba7ecad2a97c86c8aea7d0693945
[ "MIT" ]
null
null
null
src/MageFramework/SceneElements/model.cpp
AmanSachan1/GraphicsPlayground
aba8293404bcba7ecad2a97c86c8aea7d0693945
[ "MIT" ]
null
null
null
#include "model.h" Model::Model(std::shared_ptr<VulkanManager> vulkanManager, VkQueue& graphicsQueue, VkCommandPool& commandPool, unsigned int numSwapChainImages, const JSONItem::Model& jsonModel, bool isMipMapped, RENDER_TYPE renderType) : m_logicalDevice(vulkanManager->getLogicalDevice()), m_physicalDevice(vulkanM...
43.84264
156
0.794952
AmanSachan1
ca96716cf7e6018c39d9f8260e46deb022cf9512
645
cc
C++
04_Vector/VectorFirstExample.cc
jostue/UdemyCpp_Template
1735036b1a19544518ce54e456d8451e45efa3cd
[ "MIT" ]
null
null
null
04_Vector/VectorFirstExample.cc
jostue/UdemyCpp_Template
1735036b1a19544518ce54e456d8451e45efa3cd
[ "MIT" ]
null
null
null
04_Vector/VectorFirstExample.cc
jostue/UdemyCpp_Template
1735036b1a19544518ce54e456d8451e45efa3cd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> template <class T> void printVector(std::vector<T> &vec); int main() { std::vector<int> myVector(2, 0); printVector(myVector); myVector[0] = 11; myVector[0] = -42; printVector(myVector); myVector.push_back(7); printVector(myVector); myVector....
14.659091
48
0.592248
jostue
ca99455d8267de883ca141417b5e97189eb3b4d3
1,505
hh
C++
include/introvirt/windows/kernel/nt/types/objects/OBJECT.hh
IntroVirt/IntroVirt
917f735f3430d0855d8b59c814bea7669251901c
[ "Apache-2.0" ]
23
2021-02-17T16:58:52.000Z
2022-02-12T17:01:06.000Z
include/introvirt/windows/kernel/nt/types/objects/OBJECT.hh
IntroVirt/IntroVirt
917f735f3430d0855d8b59c814bea7669251901c
[ "Apache-2.0" ]
1
2021-04-01T22:41:32.000Z
2021-09-24T14:14:17.000Z
include/introvirt/windows/kernel/nt/types/objects/OBJECT.hh
IntroVirt/IntroVirt
917f735f3430d0855d8b59c814bea7669251901c
[ "Apache-2.0" ]
4
2021-02-17T16:53:18.000Z
2021-04-13T16:51:10.000Z
/* * Copyright 2021 Assured Information Security, 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 a...
26.875
99
0.669767
IntroVirt
ca9ca4d889e41df4686eb56c0b7f6f31e980b0d9
2,426
cpp
C++
test/core/runtime/parachain_test.cpp
lamafab/kagome
988bc6d93314ca58b320a9d83dcbc4cd3b87b7bb
[ "Apache-2.0" ]
null
null
null
test/core/runtime/parachain_test.cpp
lamafab/kagome
988bc6d93314ca58b320a9d83dcbc4cd3b87b7bb
[ "Apache-2.0" ]
null
null
null
test/core/runtime/parachain_test.cpp
lamafab/kagome
988bc6d93314ca58b320a9d83dcbc4cd3b87b7bb
[ "Apache-2.0" ]
null
null
null
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "runtime/binaryen/runtime_api/parachain_host_impl.hpp" #include <gtest/gtest.h> #include "core/runtime/runtime_test.hpp" #include "extensions/impl/extension_impl.hpp" #include "runtime/binaryen/wasm_memory_i...
25.808511
77
0.753092
lamafab
ca9ccbe1b913d020e6201cb018f995af32d79290
686
hpp
C++
frankr/include/waypoint.hpp
dkuss-tudresden/frankr
9a48a24488bd6bae3777f89e3d8cefd40368aaa2
[ "BSD-3-Clause" ]
6
2020-12-02T16:51:34.000Z
2021-03-20T10:29:42.000Z
frankr/include/waypoint.hpp
dkuss-tudresden/frankr
9a48a24488bd6bae3777f89e3d8cefd40368aaa2
[ "BSD-3-Clause" ]
1
2021-01-22T02:38:28.000Z
2021-01-22T19:13:42.000Z
frankr/include/waypoint.hpp
dkuss-tudresden/frankr
9a48a24488bd6bae3777f89e3d8cefd40368aaa2
[ "BSD-3-Clause" ]
2
2021-02-02T15:22:20.000Z
2021-07-14T08:25:39.000Z
/* Copyright (c) 2020, Danish Technological Institute. * 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. * * Original author: Lars Berscheid <lars.berscheid@kit.edu> */ #pragma once #include <geometry.hpp>...
24.5
128
0.750729
dkuss-tudresden
ca9f0f0c409880cbec6ef2b351016f46845084f3
1,027
cpp
C++
codeforces/B - Balanced Substring/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/B - Balanced Substring/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/B - Balanced Substring/Accepted.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Oct/12/2017 20:21 * solution_verdict: Accepted language: GNU C++14 * run...
33.129032
111
0.365141
kzvd4729
caa2c4fd2e85e9803b3342fe3f15708d1cf2fbf9
5,149
hpp
C++
benchmarks/solvers/gecode/include/gecode/kernel/gpi.hpp
95A31/MDD-LNS
9b78143e13ce8b3916bf3cc9662d9cbfe63fd7c7
[ "MIT" ]
null
null
null
benchmarks/solvers/gecode/include/gecode/kernel/gpi.hpp
95A31/MDD-LNS
9b78143e13ce8b3916bf3cc9662d9cbfe63fd7c7
[ "MIT" ]
null
null
null
benchmarks/solvers/gecode/include/gecode/kernel/gpi.hpp
95A31/MDD-LNS
9b78143e13ce8b3916bf3cc9662d9cbfe63fd7c7
[ "MIT" ]
null
null
null
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2009 * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * Permission is ...
24.995146
74
0.61643
95A31
caa5133660e6d29c668b4f0cf0cc30d2de035172
1,840
cpp
C++
Assignment4V1/ArrayLists.cpp
stephe00/DataStructs260
931fc728ba184c7f19548579ec8254e4ed507b3a
[ "CC0-1.0" ]
null
null
null
Assignment4V1/ArrayLists.cpp
stephe00/DataStructs260
931fc728ba184c7f19548579ec8254e4ed507b3a
[ "CC0-1.0" ]
null
null
null
Assignment4V1/ArrayLists.cpp
stephe00/DataStructs260
931fc728ba184c7f19548579ec8254e4ed507b3a
[ "CC0-1.0" ]
null
null
null
#include <cstdlib> #include <iostream> #include "ArrayList.h" using namespace std; ArrayList::ArrayList() // Total: O(2n+1) { topIndex = -1; // O(1) // Is this good practice? for (int i = 0; i < 10; i++) // O(2n) { myList[i] = NULL; // O(n) } } void ArrayList::addItem(int newValue) // T...
21.395349
82
0.464674
stephe00
caa61d6ab60cc420fd63e5e070f874cb06126db7
3,634
cpp
C++
SteamMeUp.cpp
Wumpf/SteamMeUp
61446352ad9843b5ce6815c44b0665cd1c88c0d9
[ "MIT" ]
null
null
null
SteamMeUp.cpp
Wumpf/SteamMeUp
61446352ad9843b5ce6815c44b0665cd1c88c0d9
[ "MIT" ]
null
null
null
SteamMeUp.cpp
Wumpf/SteamMeUp
61446352ad9843b5ce6815c44b0665cd1c88c0d9
[ "MIT" ]
null
null
null
#include <windows.h> #include <Xinput.h> #include <thread> #include <atomic> #include "SteamMeUp.h" #include "resource.h" #include "Log.h" // Undocumented button constants #define XINPUT_GAMEPAD_GUIDE_BUTTON 0x0400 #define XINPUT_GAMEPAD_UNKNOWN 0x0800 typedef struct { unsigned long eventCount; WORD wBu...
27.323308
105
0.720969
Wumpf
caa65a5b70668ba301c7760567199ae25a6ecf99
731
cpp
C++
src/macro/macro28.cpp
chennachaos/stabfem
b3d1f44c45e354dc930203bda22efc800c377c6f
[ "MIT" ]
null
null
null
src/macro/macro28.cpp
chennachaos/stabfem
b3d1f44c45e354dc930203bda22efc800c377c6f
[ "MIT" ]
null
null
null
src/macro/macro28.cpp
chennachaos/stabfem
b3d1f44c45e354dc930203bda22efc800c377c6f
[ "MIT" ]
null
null
null
#include "Macro.h" #include "DomainTree.h" extern DomainTree domain; int macro28(Macro &macro) { if (!macro) { macro.name = "updt"; macro.type = "anly"; macro.what = "update domain for next time step"; macro.sensitivity[INTER] = true; macro.sensitivity[BATCH] = true; ...
19.236842
101
0.406293
chennachaos
caa69ca72b888cfbc93b9c50ba461bba4072199d
432
cpp
C++
src/main.cpp
yicuiheng/phyicuiheng
af4fef18ad6540675b59bf94e9b1495649dc8bad
[ "MIT" ]
null
null
null
src/main.cpp
yicuiheng/phyicuiheng
af4fef18ad6540675b59bf94e9b1495649dc8bad
[ "MIT" ]
null
null
null
src/main.cpp
yicuiheng/phyicuiheng
af4fef18ad6540675b59bf94e9b1495649dc8bad
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include "model.hpp" #include "window.hpp" #include "GLFW/glfw3.h" int main() { auto window = std::make_unique<window_t>(); rigid_body_t rigid_body; auto cloth = model_t::make_cloth(rigid_body); while (true) { rigid_body.update(0.1f); window->upd...
18.782609
49
0.599537
yicuiheng
caa7e99ade9cdafb107a3417b5c7475383c50411
916
hpp
C++
src/commonpp/thread/detail/Cores.hpp
deco016/commonpp
ad03dcb6f7dc67359d898016c37a848c855c515b
[ "BSD-2-Clause" ]
32
2015-09-17T20:55:58.000Z
2022-01-24T12:00:39.000Z
src/commonpp/thread/detail/Cores.hpp
deco016/commonpp
ad03dcb6f7dc67359d898016c37a848c855c515b
[ "BSD-2-Clause" ]
7
2015-11-17T21:06:36.000Z
2018-01-30T09:45:15.000Z
src/commonpp/thread/detail/Cores.hpp
deco016/commonpp
ad03dcb6f7dc67359d898016c37a848c855c515b
[ "BSD-2-Clause" ]
11
2015-09-18T09:11:39.000Z
2019-10-06T14:53:22.000Z
/* * File: src/commonpp/thread/detail/Cores.hpp * Part of commonpp. * * Distributed under the 2-clause BSD licence (See LICENCE.TXT file at the * project root). * * Copyright (c) 2016 Thomas Sanchez. All rights reserved. * */ #pragma once #include <hwloc.h> #include <vector> #include "Core.hpp" namespace c...
15.266667
74
0.639738
deco016
caa7f40acc86e80d227350c552d091af645a1fb2
552
hpp
C++
include/mk2/math/binomial_coefficient.hpp
SachiSakurane/libmk2
e8acf044ee5de160ad8a6f0a3c955beddea8d8c2
[ "BSL-1.0" ]
null
null
null
include/mk2/math/binomial_coefficient.hpp
SachiSakurane/libmk2
e8acf044ee5de160ad8a6f0a3c955beddea8d8c2
[ "BSL-1.0" ]
null
null
null
include/mk2/math/binomial_coefficient.hpp
SachiSakurane/libmk2
e8acf044ee5de160ad8a6f0a3c955beddea8d8c2
[ "BSL-1.0" ]
null
null
null
// // binomial_coefficient.hpp // // // Created by Himatya on 2017/02/07. // Copyright (c) 2017 Himatya. All rights reserved. // #pragma once #include <type_traits> #include <mk2/math/factorial.hpp> namespace mk2{ namespace math{ template<typename T, typename = typename std::enable_if<std::is_arithmetic<T>::...
24
120
0.688406
SachiSakurane
caa81cbf972fb9d7b4ccd454151184349ea40120
34,958
cpp
C++
src/frameworks/av/media/libstagefright/codecs/amrnb/common/src/q_plsf_5_tbl.cpp
dAck2cC2/m3e
475b89b59d5022a94e00b636438b25e27e4eaab2
[ "Apache-2.0" ]
10
2020-04-17T04:02:36.000Z
2021-11-23T11:38:42.000Z
src/frameworks/av/media/libstagefright/codecs/amrnb/common/src/q_plsf_5_tbl.cpp
dAck2cC2/m3e
475b89b59d5022a94e00b636438b25e27e4eaab2
[ "Apache-2.0" ]
3
2020-02-19T16:53:25.000Z
2021-04-29T07:28:40.000Z
src/frameworks/av/media/libstagefright/codecs/amrnb/common/src/q_plsf_5_tbl.cpp
dAck2cC2/m3e
475b89b59d5022a94e00b636438b25e27e4eaab2
[ "Apache-2.0" ]
12
2020-04-15T11:37:33.000Z
2021-09-13T13:19:04.000Z
/* ------------------------------------------------------------------ * Copyright (C) 1998-2009 PacketVideo * * 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.o...
30.006867
89
0.407003
dAck2cC2
caacb89275df398ff97df1a966b033990b680277
2,491
hpp
C++
src/IO/Observer/Actions/RegisterWithObservers.hpp
tomwlodarczyk/spectre
086aaee002f2f07eb812cf17b8e1ba54052feb71
[ "MIT" ]
null
null
null
src/IO/Observer/Actions/RegisterWithObservers.hpp
tomwlodarczyk/spectre
086aaee002f2f07eb812cf17b8e1ba54052feb71
[ "MIT" ]
1
2022-03-25T18:26:16.000Z
2022-03-25T19:30:39.000Z
src/IO/Observer/Actions/RegisterWithObservers.hpp
tomwlodarczyk/spectre
086aaee002f2f07eb812cf17b8e1ba54052feb71
[ "MIT" ]
1
2019-01-03T21:47:04.000Z
2019-01-03T21:47:04.000Z
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <type_traits> #include <utility> #include <vector> #include "DataStructures/DataBox/DataBox.hpp" #include "IO/Observer/Actions/ObserverRegistration.hpp" #include "IO/Observer/ObservationId.hpp" #include "IO/Observer/ObserverC...
36.632353
79
0.708551
tomwlodarczyk
caad0fcab8fff7de40dd1b8798e3ff63441a7d38
12,089
cc
C++
annotator/duration/duration.cc
yangzhigang1999/libtextclassifier
4c965f1c12b3c7a37f6126cef737a8fe33f4677c
[ "Apache-2.0" ]
null
null
null
annotator/duration/duration.cc
yangzhigang1999/libtextclassifier
4c965f1c12b3c7a37f6126cef737a8fe33f4677c
[ "Apache-2.0" ]
null
null
null
annotator/duration/duration.cc
yangzhigang1999/libtextclassifier
4c965f1c12b3c7a37f6126cef737a8fe33f4677c
[ "Apache-2.0" ]
1
2021-03-20T03:40:21.000Z
2021-03-20T03:40:21.000Z
// Copyright 2020 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
31.646597
80
0.674746
yangzhigang1999
cab0a1f6540ef1de3d592383848171d34a4876a0
435
cpp
C++
83.cpp
jonathanxqs/lintcode
148435aff0a83ac5d77a7ccbd5d0caaea3140a62
[ "MIT" ]
1
2016-06-21T16:29:37.000Z
2016-06-21T16:29:37.000Z
83.cpp
jonathanxqs/lintcode
148435aff0a83ac5d77a7ccbd5d0caaea3140a62
[ "MIT" ]
null
null
null
83.cpp
jonathanxqs/lintcode
148435aff0a83ac5d77a7ccbd5d0caaea3140a62
[ "MIT" ]
null
null
null
class Solution { public: /** * @param A : An integer array * @return : An integer */ int singleNumberII(vector<int> &A) { // write your code here int count[32] = {0}; int res = 0; for (int i = 0; i < 32; i++) { for (auto &v : A) { count...
22.894737
41
0.381609
jonathanxqs
cab200e8d78e3f792e9d8addea4d8aec7e357ea2
6,021
cc
C++
Engine/graphicsystem/base/StreamBufferPool.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
26
2015-01-15T12:57:40.000Z
2022-02-16T10:07:12.000Z
Engine/graphicsystem/base/StreamBufferPool.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
null
null
null
Engine/graphicsystem/base/StreamBufferPool.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
17
2015-02-18T07:51:31.000Z
2020-06-01T01:10:12.000Z
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn 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...
22.550562
77
0.650889
BikkyS
cab691fea264b4ce49fab17f5434a43ea327b2a4
1,267
cpp
C++
000/50.cpp
correipj/ProjectEuler
0173d8ec7f309b4f0c243a94351772b1be55e8bf
[ "Unlicense" ]
null
null
null
000/50.cpp
correipj/ProjectEuler
0173d8ec7f309b4f0c243a94351772b1be55e8bf
[ "Unlicense" ]
null
null
null
000/50.cpp
correipj/ProjectEuler
0173d8ec7f309b4f0c243a94351772b1be55e8bf
[ "Unlicense" ]
null
null
null
// https://projecteuler.net/problem=50 // Consecutive prime sum #include <iostream> #include <string> #include <algorithm> #include "../Shared/primes.h" using namespace std; // Construct an array of sums of primes, ie // v[0] = 0 // v[1] = 2 // v[2] = 2 + 3 // v[3] = 2 + 3 + 5 // ... etc // A ...
23.036364
80
0.584846
correipj
caba704833c136a6ee88e318bd3cb79a9a355e2c
2,784
cpp
C++
3rdparty/libprocess/src/posix/subprocess.cpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
4,537
2015-01-01T03:26:40.000Z
2022-03-31T03:07:00.000Z
3rdparty/libprocess/src/posix/subprocess.cpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
227
2015-01-29T02:21:39.000Z
2022-03-29T13:35:50.000Z
3rdparty/libprocess/src/posix/subprocess.cpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
1,992
2015-01-05T12:29:19.000Z
2022-03-31T03:07:07.000Z
// 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 writing, software // distributed ...
26.514286
75
0.621408
zagrev
cabbaa88bea3cf8e2b055daca286037cc3a1df61
1,008
cpp
C++
luanics/logging/test/SimpleSourceTest.cpp
luanics/cpp-illustrated
6049de2119a53d656a63b65d9441e680355ef196
[ "MIT" ]
null
null
null
luanics/logging/test/SimpleSourceTest.cpp
luanics/cpp-illustrated
6049de2119a53d656a63b65d9441e680355ef196
[ "MIT" ]
null
null
null
luanics/logging/test/SimpleSourceTest.cpp
luanics/cpp-illustrated
6049de2119a53d656a63b65d9441e680355ef196
[ "MIT" ]
null
null
null
#include "luanics/logging/LevelFilter.hpp" #include "luanics/logging/SimpleSink.hpp" #include "luanics/logging/SimpleSource.hpp" #include "luanics/logging/TupleRecord.hpp" #include "luanics/testing/Unit.hpp" #include <cstring> #include <sstream> using namespace luanics::logging; BEGIN_TEST_SET(SimpleSource) TEST(Al...
30.545455
79
0.729167
luanics
cabc8c6c4e730cb33cfe7ce4f3aa5d8df5be788f
3,962
cpp
C++
pdbApp/qsrv.cpp
simon-ess/pva2pva
ad8b77e19f7e2ae50c48b5d871bdbe7b0ee23b61
[ "MIT" ]
3
2015-11-17T23:15:12.000Z
2019-11-09T21:12:09.000Z
pdbApp/qsrv.cpp
simon-ess/pva2pva
ad8b77e19f7e2ae50c48b5d871bdbe7b0ee23b61
[ "MIT" ]
42
2017-10-04T10:21:29.000Z
2021-10-19T18:19:50.000Z
pdbApp/qsrv.cpp
simon-ess/pva2pva
ad8b77e19f7e2ae50c48b5d871bdbe7b0ee23b61
[ "MIT" ]
8
2017-09-28T07:32:47.000Z
2021-03-17T14:58:00.000Z
#include <initHooks.h> #include <epicsExit.h> #include <epicsThread.h> #include <epicsString.h> #include <epicsStdio.h> #include <dbAccess.h> #include <dbChannel.h> #include <dbStaticLib.h> #include <dbLock.h> #include <dbEvent.h> #include <epicsVersion.h> #include <dbNotify.h> #include <pv/reftrack.h> #include <pv/...
26.413333
90
0.615851
simon-ess
cac1073b8f99c2f07fa8e082e88719a077f57e86
4,539
cpp
C++
simulation_intersection_scenario/costcriteria.cpp
SirTobias/DMPCRobotSimulation
e393538b37e5a63bfe4da94e9bd13feba45699db
[ "MIT" ]
2
2021-12-06T08:05:12.000Z
2022-03-22T13:56:38.000Z
simulation_intersection_scenario/costcriteria.cpp
SirTobias/DMPCRobotSimulation
e393538b37e5a63bfe4da94e9bd13feba45699db
[ "MIT" ]
null
null
null
simulation_intersection_scenario/costcriteria.cpp
SirTobias/DMPCRobotSimulation
e393538b37e5a63bfe4da94e9bd13feba45699db
[ "MIT" ]
1
2022-03-29T12:46:37.000Z
2022-03-29T12:46:37.000Z
#include "costcriteria.h" #include "intersectionparameters.h" #include <cmath> /** * @brief CostCriteria::CostCriteria */ CostCriteria::CostCriteria(const std::shared_ptr<SystemFunction>& sysFunc) { m_globalLiveTime = sysFunc->getGlobalLiveTime(); m_globalWaitTime = sysFunc->getGlobalWaitTime(); m_reser...
31.089041
134
0.735404
SirTobias
cac1a6e7742f933c8ac41471a8e342057b3b25b7
42,193
cpp
C++
draw_png.cpp
WRIM/mcmap
86c67ff1482b5090d563a9dfc49f87832b1ffc2b
[ "BSD-2-Clause" ]
19
2015-07-26T20:32:10.000Z
2020-04-17T14:24:18.000Z
draw_png.cpp
WRIM/mcmap
86c67ff1482b5090d563a9dfc49f87832b1ffc2b
[ "BSD-2-Clause" ]
null
null
null
draw_png.cpp
WRIM/mcmap
86c67ff1482b5090d563a9dfc49f87832b1ffc2b
[ "BSD-2-Clause" ]
10
2015-09-05T17:45:26.000Z
2021-01-22T04:24:07.000Z
/** * This file contains functions to create and draw to a png image */ #include "draw_png.h" #include "helper.h" #include "colors.h" #include "globals.h" #include <cstring> #include <cstdio> #include <cstdlib> #include <png.h> #include <list> #include <ctime> #ifndef _WIN32 #include <sys/stat.h> #endif #if defined(...
37.207231
265
0.651151
WRIM
cac1e0aa4e0f2b08d8178a2e80b86d9af37d305e
580
hpp
C++
TemplateRPG/World/places/place.hpp
davideberdin/Text-Turn-based-RPG-Template
3b1e88b6498b7473b3928e7188157a7d7f1ba844
[ "MIT" ]
1
2015-11-29T04:47:29.000Z
2015-11-29T04:47:29.000Z
TemplateRPG/World/places/place.hpp
davideberdin/Text-Turn-based-RPG-Template
3b1e88b6498b7473b3928e7188157a7d7f1ba844
[ "MIT" ]
null
null
null
TemplateRPG/World/places/place.hpp
davideberdin/Text-Turn-based-RPG-Template
3b1e88b6498b7473b3928e7188157a7d7f1ba844
[ "MIT" ]
null
null
null
// // place.hpp // TemplateRPG // // Created by Davide Berdin on 29/11/15. // Copyright © 2015 Davide Berdin. All rights reserved. // #ifndef place_hpp #define place_hpp #include <stdio.h> #include <string> class Place { private: std::string name = ""; public: Place(std::string); Place(const Pla...
16.571429
56
0.613793
davideberdin
cacb1f6a87f50a69d042739b4e23815f7e938dae
242
cpp
C++
workshop 2020/Variables and conditions/rowoftwo/main.cpp
wdjpng/soi
dd565587ae30985676f7f374093ec0687436b881
[ "MIT" ]
null
null
null
workshop 2020/Variables and conditions/rowoftwo/main.cpp
wdjpng/soi
dd565587ae30985676f7f374093ec0687436b881
[ "MIT" ]
null
null
null
workshop 2020/Variables and conditions/rowoftwo/main.cpp
wdjpng/soi
dd565587ae30985676f7f374093ec0687436b881
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <deque> #include <limits> #define int long long using namespace std; signed main() { int n; cin >> n; if(n%2==0){ cout << "L\n"; } else{ cout << "R\n"; } }
12.736842
22
0.520661
wdjpng