hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
8416064ba4d7477f450641def58f3b03edb4f096
8,294
cpp
C++
HPCSimulation.cpp
iray-tno/hal2015
c84643472b31efbcd7622867dcc4e71c80541274
[ "FSFAP" ]
null
null
null
HPCSimulation.cpp
iray-tno/hal2015
c84643472b31efbcd7622867dcc4e71c80541274
[ "FSFAP" ]
null
null
null
HPCSimulation.cpp
iray-tno/hal2015
c84643472b31efbcd7622867dcc4e71c80541274
[ "FSFAP" ]
null
null
null
//------------------------------------------------------------------------------ /// @file /// @brief HPCSimulation.hpp の実装 /// @author ハル研究所プログラミングコンテスト実行委員会 /// /// @copyright Copyright (c) 2015 HAL Laboratory, Inc. /// @attention このファイルの利用は、同梱のREADMEにある /// 利用条件に従ってください //------------------------...
29.204225
97
0.420666
84192b3897572770dbce377b3e7d0bec703cbff4
998
cpp
C++
tests/kernel/globalinit.cpp
v8786339/NyuziProcessor
34854d333d91dbf69cd5625505fb81024ec4f785
[ "Apache-2.0" ]
1,388
2015-02-05T17:16:17.000Z
2022-03-31T07:17:08.000Z
tests/kernel/globalinit.cpp
czvf/NyuziProcessor
31f74e43a785fa66d244f1e9744ca0ca9b8a1fad
[ "Apache-2.0" ]
176
2015-02-02T02:54:06.000Z
2022-02-01T06:00:21.000Z
tests/kernel/globalinit.cpp
czvf/NyuziProcessor
31f74e43a785fa66d244f1e9744ca0ca9b8a1fad
[ "Apache-2.0" ]
271
2015-02-18T02:19:04.000Z
2022-03-28T13:30:25.000Z
// // Copyright 2016 Jeff Bush // // 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...
20.791667
75
0.654309
841a59e25202ef8d5756d6c2ab19834648bbcfb8
100,646
cpp
C++
game/tools/guieditor/source/guieditorgui.cpp
justinctlam/MarbleStrike
64fe36a5a4db2b299983b0e2556ab1cd8126259b
[ "MIT" ]
null
null
null
game/tools/guieditor/source/guieditorgui.cpp
justinctlam/MarbleStrike
64fe36a5a4db2b299983b0e2556ab1cd8126259b
[ "MIT" ]
null
null
null
game/tools/guieditor/source/guieditorgui.cpp
justinctlam/MarbleStrike
64fe36a5a4db2b299983b0e2556ab1cd8126259b
[ "MIT" ]
2
2019-03-08T03:02:45.000Z
2019-05-14T08:41:26.000Z
/////////////////////////////////////////////////////////////////////////// // C++ code generated with wxFormBuilder (version Sep 8 2010) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #include "OGLCanvas.hpp" #include...
72.721098
215
0.801701
841a7e2524ae14ecae06428526799000767f2719
1,069
cpp
C++
emulator/src/emu/dinetwork.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
1
2022-01-15T21:38:38.000Z
2022-01-15T21:38:38.000Z
emulator/src/emu/dinetwork.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
null
null
null
emulator/src/emu/dinetwork.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
null
null
null
// license:BSD-3-Clause // copyright-holders:Carl, Miodrag Milanovic #include "emu.h" #include "osdnet.h" device_network_interface::device_network_interface(const machine_config &mconfig, device_t &device, float bandwidth) : device_interface(device, "network") { m_promisc = false; m_bandwidth = bandwidth; set_mac(...
21.38
116
0.731525
8421f307b6c36c4060ee159cf7ed771972cd5bbb
90
cpp
C++
src/Item.cpp
Erick9Thor/Zork
43ee99711bb991e0f8c3cf61f18c1d2e373ac2a7
[ "MIT" ]
null
null
null
src/Item.cpp
Erick9Thor/Zork
43ee99711bb991e0f8c3cf61f18c1d2e373ac2a7
[ "MIT" ]
null
null
null
src/Item.cpp
Erick9Thor/Zork
43ee99711bb991e0f8c3cf61f18c1d2e373ac2a7
[ "MIT" ]
null
null
null
#include "../include/Item.h" ItemType Item::GetItemType() const { return itemType; }
12.857143
34
0.677778
84265e8c1625a8e0a499b82c9b1ea02d707ffee2
1,259
cpp
C++
vegastrike/src/cmd/bolt_server.cpp
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
vegastrike/src/cmd/bolt_server.cpp
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
vegastrike/src/cmd/bolt_server.cpp
Ezeer/VegaStrike_win32FR
75891b9ccbdb95e48e15d3b4a9cd977955b97d1f
[ "MIT" ]
null
null
null
#include "bolt.h" #include "gfxlib.h" #include "gfx/mesh.h" #include "gfxlib_struct.h" #include <vector> #include <string> #include <algorithm> #include "unit_generic.h" #include "configxml.h" GFXVertexList*bolt_draw::boltmesh = NULL; bolt_draw::~bolt_draw() { unsigned int i; for (i = 0; i < balls.size(); i++...
24.686275
94
0.601271
842b1dd42b8e6cfb395af85944e7da162dc0a8bc
4,385
cpp
C++
cnf_dump/cnf_dump_clo.cpp
appu226/FactorGraph
26e4de8518874abf2696a167eaf3dbaede5930f8
[ "MIT" ]
null
null
null
cnf_dump/cnf_dump_clo.cpp
appu226/FactorGraph
26e4de8518874abf2696a167eaf3dbaede5930f8
[ "MIT" ]
null
null
null
cnf_dump/cnf_dump_clo.cpp
appu226/FactorGraph
26e4de8518874abf2696a167eaf3dbaede5930f8
[ "MIT" ]
null
null
null
/* Copyright 2019 Parakram Majumdar 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, ...
32.242647
109
0.620753
842cc9c6722bc81483b9a34464a134e42c681b75
14,748
cpp
C++
src/RotationPricer.cpp
sergebisaillon/MerinioScheduler
8549ce7f3c1c14817a2eba9d565ca0b56f451e2a
[ "MIT" ]
1
2020-05-05T15:51:41.000Z
2020-05-05T15:51:41.000Z
src/RotationPricer.cpp
qiqi789/NurseScheduler
8549ce7f3c1c14817a2eba9d565ca0b56f451e2a
[ "MIT" ]
null
null
null
src/RotationPricer.cpp
qiqi789/NurseScheduler
8549ce7f3c1c14817a2eba9d565ca0b56f451e2a
[ "MIT" ]
1
2019-11-11T17:59:23.000Z
2019-11-11T17:59:23.000Z
/* * RotationPricer.cpp * * Created on: 2015-03-02 * Author: legraina */ #include "RotationPricer.h" #include "BcpModeler.h" /* namespace usage */ using namespace std; ////////////////////////////////////////////////////////////// // // R O T A T I O N P R I C E R // ////////////////////////////////////...
34.619718
137
0.702129
8438b89e25ce446d49d0eda0cc0bc78749c00c74
4,741
cc
C++
Samples/PostProcessing/PostProcessing.cc
rodrigobmg/YumeEngine
67c525c84616a5167b5bae45f36641e90227c281
[ "MIT" ]
129
2016-05-05T23:34:44.000Z
2022-03-07T20:17:18.000Z
Samples/PostProcessing/PostProcessing.cc
rodrigobmg/YumeEngine
67c525c84616a5167b5bae45f36641e90227c281
[ "MIT" ]
1
2017-05-07T16:09:41.000Z
2017-05-08T15:35:50.000Z
Samples/PostProcessing/PostProcessing.cc
rodrigobmg/YumeEngine
67c525c84616a5167b5bae45f36641e90227c281
[ "MIT" ]
20
2016-02-24T20:40:08.000Z
2022-02-04T23:48:18.000Z
//-------------------------------------------------------------------------------- //This is a file from Arkengine // // //Copyright (c) arkenthera.All rights reserved. // //BasicRenderWindow.cpp //-------------------------------------------------------------------------------- #include "Core/YumeHeaders.h" #include ...
27.725146
95
0.730015
843a8013b35ade495a373147057fe382813aa470
8,810
cpp
C++
3d_conv/xilinx_prj/lib_gen/__merlinwrapper_conv_3d_kernel.cpp
FCS-holding/acc_lib
1b6c0bc5467400e2ac678d18426cbbc7d44e8fec
[ "Apache-2.0" ]
null
null
null
3d_conv/xilinx_prj/lib_gen/__merlinwrapper_conv_3d_kernel.cpp
FCS-holding/acc_lib
1b6c0bc5467400e2ac678d18426cbbc7d44e8fec
[ "Apache-2.0" ]
null
null
null
3d_conv/xilinx_prj/lib_gen/__merlinwrapper_conv_3d_kernel.cpp
FCS-holding/acc_lib
1b6c0bc5467400e2ac678d18426cbbc7d44e8fec
[ "Apache-2.0" ]
null
null
null
#include "cmost.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <hls_stream.h> #include "merlin_type_define.h" #include "__merlinhead_kernel_top.h" #include <chrono> #include <iostream> void __merlinwrapper_conv_3d_kernel(float data_in[DATA_IN_LENGTH], floa...
50.056818
163
0.539955
8442f55fa028083cadf0b9d9008b6ee0bc7e20dd
49,789
cc
C++
sim/models/actuators/ground_station_v2.cc
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1,178
2020-09-10T17:15:42.000Z
2022-03-31T14:59:35.000Z
sim/models/actuators/ground_station_v2.cc
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1
2020-05-22T05:22:35.000Z
2020-05-22T05:22:35.000Z
sim/models/actuators/ground_station_v2.cc
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
107
2020-09-10T17:29:30.000Z
2022-03-18T09:00:14.000Z
// Copyright 2020 Makani Technologies 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
41.387365
80
0.685834
84459f68a60fdf2e0000ed96d3ea03669d0acbe6
4,547
cpp
C++
Sankore-3.1/src/domain/UBItem.cpp
eaglezzb/rsdc
cce881f6542ff206bf286cf798c8ec8da3b51d50
[ "MIT" ]
null
null
null
Sankore-3.1/src/domain/UBItem.cpp
eaglezzb/rsdc
cce881f6542ff206bf286cf798c8ec8da3b51d50
[ "MIT" ]
null
null
null
Sankore-3.1/src/domain/UBItem.cpp
eaglezzb/rsdc
cce881f6542ff206bf286cf798c8ec8da3b51d50
[ "MIT" ]
null
null
null
/* * Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA) * * This file is part of Open-Sankoré. * * Open-Sankoré is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Found...
30.516779
102
0.720475
844620b796aba499ce01fcbcbd13774f592a3af7
1,917
cpp
C++
src/renderer/components/RectComponent.cpp
artfulbytes/sumobot_simulator
f2784d2ff506759019d7d5e840bd7aed591a0add
[ "MIT" ]
null
null
null
src/renderer/components/RectComponent.cpp
artfulbytes/sumobot_simulator
f2784d2ff506759019d7d5e840bd7aed591a0add
[ "MIT" ]
null
null
null
src/renderer/components/RectComponent.cpp
artfulbytes/sumobot_simulator
f2784d2ff506759019d7d5e840bd7aed591a0add
[ "MIT" ]
null
null
null
#include "components/RectComponent.h" #include "Renderer.h" #include "components/Transforms.h" #include "TexCoords.h" #include "Texture.h" #include "SpriteAnimation.h" RectComponent::RectComponent(const RectTransform *transform, const glm::vec4& color) : m_quadTransform(transform), m_color(color) { } RectComp...
29.045455
130
0.695357
8446b534ea042ba69efdfb5ac4c427e47710ad33
5,067
cpp
C++
src/imports/cvkb/vkbquickmodel.cpp
CELLINKAB/qtcvkb
5b870f8ea4b42480eb678b065778de5dab36b199
[ "MIT" ]
null
null
null
src/imports/cvkb/vkbquickmodel.cpp
CELLINKAB/qtcvkb
5b870f8ea4b42480eb678b065778de5dab36b199
[ "MIT" ]
null
null
null
src/imports/cvkb/vkbquickmodel.cpp
CELLINKAB/qtcvkb
5b870f8ea4b42480eb678b065778de5dab36b199
[ "MIT" ]
null
null
null
/* * The MIT License (MIT) * * Copyright (C) 2020 CELLINK AB <info@cellink.com> * * 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 ...
34.705479
140
0.727452
84497ae9875b5463168efd697efe59406a255318
13,416
cc
C++
pigasus/software/src/file_api/file_identifier.cc
zhipengzhaocmu/fpga2022_artifact
0ac088a5b04c5c75ae6aef25202b66b0f674acd3
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
pigasus/software/src/file_api/file_identifier.cc
zhipengzhaocmu/fpga2022_artifact
0ac088a5b04c5c75ae6aef25202b66b0f674acd3
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
pigasus/software/src/file_api/file_identifier.cc
zhipengzhaocmu/fpga2022_artifact
0ac088a5b04c5c75ae6aef25202b66b0f674acd3
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
//-------------------------------------------------------------------------- // Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved. // Copyright (C) 2012-2013 Sourcefire, Inc. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public...
24.172973
93
0.60003
e0fe61b355cc89c9ca6d6501a2aaa5278a998e4f
539
cpp
C++
notes/code4/GTX.cpp
suryaavala/advancedcpp
84c1847bf42ff744f99b4c0f94b77cfa71ca00d8
[ "MIT" ]
null
null
null
notes/code4/GTX.cpp
suryaavala/advancedcpp
84c1847bf42ff744f99b4c0f94b77cfa71ca00d8
[ "MIT" ]
null
null
null
notes/code4/GTX.cpp
suryaavala/advancedcpp
84c1847bf42ff744f99b4c0f94b77cfa71ca00d8
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> class GTx { public: GTx(size_t val = 0): bound{val} {} bool operator()(const std::string &s) { return s.size() >= bound; } private: std::string::size_type bound; }; int main() { std::vector<std::string> words{"function","objects","are","fun"}; st...
25.666667
69
0.628942
460071945d8a1109cb33f18a22a10552fabac77c
1,052
cpp
C++
src/dynamic_load.cpp
cgilmour/dd-opentracing-cpp
c83c6a5dc72029d13ab0d64a7222fb139a1889f1
[ "Apache-2.0" ]
null
null
null
src/dynamic_load.cpp
cgilmour/dd-opentracing-cpp
c83c6a5dc72029d13ab0d64a7222fb139a1889f1
[ "Apache-2.0" ]
null
null
null
src/dynamic_load.cpp
cgilmour/dd-opentracing-cpp
c83c6a5dc72029d13ab0d64a7222fb139a1889f1
[ "Apache-2.0" ]
null
null
null
#include <opentracing/dynamic_load.h> #include <iostream> #include "tracer.h" #include "tracer_factory.h" #include "version_check.h" int OpenTracingMakeTracerFactory(const char* opentracing_version, const void** error_category, void** tracer_factory) try { if (!datadog::opentracing::...
47.818182
94
0.681559
4604097af0b164349f1049831f710259fb25a9af
12,410
cc
C++
mysql-server/mysys/crypt_genhash_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/mysys/crypt_genhash_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/mysys/crypt_genhash_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
/* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
27.88764
80
0.609347
4604dc0789f87eabd6425248d8f7f211dcb9baed
6,663
cpp
C++
src/future/flexer.cpp
rasfmar/future
189a996f7e2c6401626d11ca6d8f11243dd0b737
[ "MIT" ]
null
null
null
src/future/flexer.cpp
rasfmar/future
189a996f7e2c6401626d11ca6d8f11243dd0b737
[ "MIT" ]
null
null
null
src/future/flexer.cpp
rasfmar/future
189a996f7e2c6401626d11ca6d8f11243dd0b737
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include "internal/_ftoken.hpp" #include "fstate.hpp" #include "flexer.hpp" void flexer::lex(fstate *state, fparser &parser) { lex(state, parser.tokens); } void flexer::lex(fstate *state, std::vector<_ftoken*> &tokens) { std::stack<_ftoken*> fstack; bool ...
31.880383
88
0.540147
46054b06a51fe0732a8681424f05cfcf5161c13e
1,212
cpp
C++
test/communicator_broadcast.cpp
correaa/b-mpi3
161e52a28ab9043be9ef33acd8f31dbeae483b61
[ "BSL-1.0" ]
null
null
null
test/communicator_broadcast.cpp
correaa/b-mpi3
161e52a28ab9043be9ef33acd8f31dbeae483b61
[ "BSL-1.0" ]
null
null
null
test/communicator_broadcast.cpp
correaa/b-mpi3
161e52a28ab9043be9ef33acd8f31dbeae483b61
[ "BSL-1.0" ]
null
null
null
#if COMPILATION_INSTRUCTIONS mpic++ -O3 -std=c++14 -Wall -Wfatal-errors $0 -o $0x.x && time mpirun -n 2 $0x.x $@ && rm -f $0x.x; exit #endif // © Copyright Alfredo A. Correa 2018-2020 #include "../../mpi3/main.hpp" #include "../../mpi3/communicator.hpp" namespace mpi3 = boost::mpi3; int mpi3::main(int, char*[], mpi3...
27.545455
118
0.575908
460819731d1f58a91ad128467d955be784f981e0
764
hpp
C++
libs/resource_tree/include/sge/resource_tree/detail/strip_path_prefix.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/resource_tree/include/sge/resource_tree/detail/strip_path_prefix.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/resource_tree/include/sge/resource_tree/detail/strip_path_prefix.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // 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 SGE_RESOURCE_TREE_DETAIL_STRIP_PATH_PREFIX_HPP_INCLUDED #define SGE_RESOURCE_TREE_DETAIL_ST...
31.833333
97
0.784031
4608b94ee463cd53b6600c1666ac954f0d0ee380
3,114
cpp
C++
Drivers/SelfTests/Boundaries/InsertionBoundarySelfTest.cpp
gustavo-castillo-bautista/Mercury
eeb402ccec8e487652229d4595c46ec84f6aefbb
[ "BSD-3-Clause" ]
null
null
null
Drivers/SelfTests/Boundaries/InsertionBoundarySelfTest.cpp
gustavo-castillo-bautista/Mercury
eeb402ccec8e487652229d4595c46ec84f6aefbb
[ "BSD-3-Clause" ]
null
null
null
Drivers/SelfTests/Boundaries/InsertionBoundarySelfTest.cpp
gustavo-castillo-bautista/Mercury
eeb402ccec8e487652229d4595c46ec84f6aefbb
[ "BSD-3-Clause" ]
null
null
null
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
39.923077
115
0.738279
460ad4d2f8b2dec3cb9b937daa8937e88710138c
1,572
cc
C++
solutions/mrJudge/base/main.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
4
2020-11-07T14:38:02.000Z
2022-01-03T19:02:36.000Z
solutions/mrJudge/base/main.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
1
2019-04-17T06:55:14.000Z
2019-04-17T06:55:14.000Z
solutions/mrJudge/base/main.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
null
null
null
// #include <bits/stdc++.h> #include <algorithm> #include <cmath> #include <deque> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <unordered_map> #include <vector> using namespace std; #define FOR(i, j, k, l) for (s32 i = j; i < k; i += l) #define RFOR(i, j, k, l) for (s...
18.494118
67
0.48028
460e73849e3611b85524258bf2aaa70644de2b5f
22,430
cpp
C++
scatterplot.cpp
fadel/msc-pm
bedf6936885694688ddb8bd3452f6bd68ef8d29c
[ "MIT" ]
null
null
null
scatterplot.cpp
fadel/msc-pm
bedf6936885694688ddb8bd3452f6bd68ef8d29c
[ "MIT" ]
null
null
null
scatterplot.cpp
fadel/msc-pm
bedf6936885694688ddb8bd3452f6bd68ef8d29c
[ "MIT" ]
null
null
null
#include "scatterplot.h" #include <algorithm> #include <cmath> #include <limits> #include <QSGGeometryNode> #include <QSGSimpleRectNode> #include "continuouscolorscale.h" #include "geometry.h" // Glyphs settings static const QColor DEFAULT_GLYPH_COLOR(255, 255, 255); static const float DEFAULT_GLYPH_SIZE = 8.0f; st...
28.609694
115
0.626973
4612f6436bee91d7c6b0cfc94f22418164a6900d
2,187
cpp
C++
排序/交换排序/P324.6.cpp
Ruvikm/Wangdao-Data-Structures
e00494f40c0be9d81229062bf69fe1e12e340773
[ "MIT" ]
103
2021-01-07T13:03:57.000Z
2022-03-31T03:10:35.000Z
排序/交换排序/P324.6.cpp
fu123567/Wangdao-Data-Structures
e00494f40c0be9d81229062bf69fe1e12e340773
[ "MIT" ]
null
null
null
排序/交换排序/P324.6.cpp
fu123567/Wangdao-Data-Structures
e00494f40c0be9d81229062bf69fe1e12e340773
[ "MIT" ]
23
2021-04-10T07:53:03.000Z
2022-03-31T00:33:05.000Z
#include <cstdio> #include <iostream> #include <algorithm> #include <time.h> #include <stdlib.h> using namespace std; #pragma region 建立顺序存储的线性表 #define MAX 30 #define _for(i,a,b) for( int i=(a); i<(b); ++i) #define _rep(i,a,b) for( int i=(a); i<=(b); ++i) typedef struct { int data[MAX]; int length; }List; void ...
19.184211
93
0.581619
4615023df5a596ca4b465687e621a84d88042a86
359
cpp
C++
module02/ex02/main.cpp
JLL32/piscine-cpp
d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c
[ "MIT" ]
null
null
null
module02/ex02/main.cpp
JLL32/piscine-cpp
d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c
[ "MIT" ]
null
null
null
module02/ex02/main.cpp
JLL32/piscine-cpp
d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c
[ "MIT" ]
null
null
null
#include "Fixed.hpp" int main() { Fixed a; Fixed const b(Fixed(5.05f) * Fixed(2)); std::cout << a << std::endl; std::cout << ++a << std::endl; std::cout << a << std::endl; std::cout << a++ << std::endl; std::cout << a << std::endl; std::cout << b << std::endl; std::cout << Fixed::m...
22.4375
47
0.487465
4617cf0f44153d1785df9b344a815585abe10e79
1,569
cpp
C++
Codeforces/MailRu/2018/Round1/C.cpp
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
2
2018-12-11T14:37:24.000Z
2022-01-23T18:11:54.000Z
Codeforces/MailRu/2018/Round1/C.cpp
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
Codeforces/MailRu/2018/Round1/C.cpp
Mindjolt2406/Competitive-Programming
d000d98bf7005ee4fb809bcea2f110e4c4793b80
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define ll long long int #define ld long double #define vi vector<int> #define vll vector<long long int> #define sc(n) scanf("%d",&n); #define scll(n) scanf("%lld",&n); #define scld(n) s...
22.73913
78
0.50478
46192fd5c256d3617f496bcb3fad21959dbb54f8
1,769
cpp
C++
vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playtree.cpp
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playtree.cpp
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playtree.cpp
Brook1711/biubiu_Qt6
5c4d22a1d1beef63bc6c7738dce6c477c4642803
[ "MIT" ]
null
null
null
/***************************************************************************** * cmd_playtree.cpp ***************************************************************************** * Copyright (C) 2005 the VideoLAN team * $Id: 626ba09b03156290eba9bc3bb654ec031a8f75de $ * * Authors: Antoine Cellerier <dionoea@videolan....
36.854167
79
0.616167
461a10273aba9fcf0e0d3aa55bec17e788550bae
271
cpp
C++
Test/run-test.cpp
As-12/Header-only-skeleton
17603f3ef8c1808000213d8f12a7f6271c15de25
[ "MIT" ]
null
null
null
Test/run-test.cpp
As-12/Header-only-skeleton
17603f3ef8c1808000213d8f12a7f6271c15de25
[ "MIT" ]
null
null
null
Test/run-test.cpp
As-12/Header-only-skeleton
17603f3ef8c1808000213d8f12a7f6271c15de25
[ "MIT" ]
null
null
null
// AllTests.cpp #include <gtest/gtest.h> #include <Library/Framework.hpp> TEST(SubtractTest1, SubtractTwoNumbers) { Library::print(); EXPECT_EQ(5, 5); } int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
15.055556
41
0.675277
461aa61039c0c41d53644a5192d06be4b61e2968
210
cpp
C++
266. Palindrome Permutation.cpp
rajeev-ranjan-au6/Leetcode_Cpp
f64cd98ab96ec110f1c21393f418acf7d88473e8
[ "MIT" ]
3
2020-12-30T00:29:59.000Z
2021-01-24T22:43:04.000Z
266. Palindrome Permutation.cpp
rajeevranjancom/Leetcode_Cpp
f64cd98ab96ec110f1c21393f418acf7d88473e8
[ "MIT" ]
null
null
null
266. Palindrome Permutation.cpp
rajeevranjancom/Leetcode_Cpp
f64cd98ab96ec110f1c21393f418acf7d88473e8
[ "MIT" ]
null
null
null
class Solution { public: bool canPermutePalindrome(string s) { unordered_map<char, int>m; int odd = 0; for(auto c: s) (m[c]++ % 2) ? odd-- : odd++; return odd <= 1; } };
21
52
0.504762
462041eb825084ccf615b4abf767bd7c7a37acd1
520
cpp
C++
Engine/Source/Core/Types/Time.cpp
SparkyPotato/Ignis
40cf87c03db7c07d3a05ab2c30bbe4fe3b16156c
[ "MIT" ]
1
2021-02-27T15:42:47.000Z
2021-02-27T15:42:47.000Z
Engine/Source/Core/Types/Time.cpp
SparkyPotato/Ignis
40cf87c03db7c07d3a05ab2c30bbe4fe3b16156c
[ "MIT" ]
null
null
null
Engine/Source/Core/Types/Time.cpp
SparkyPotato/Ignis
40cf87c03db7c07d3a05ab2c30bbe4fe3b16156c
[ "MIT" ]
null
null
null
/// Copyright (c) 2021 Shaye Garg. #include "Core/Types/Time.h" #include "Core/Platform/Platform.h" #ifdef PLATFORM_WINDOWS # include <Windows.h> #endif namespace Ignis { #ifdef PLATFORM_WINDOWS Time Time::Now() { SYSTEMTIME time; GetLocalTime(&time); return Time{ .Year = time.wYear, .Month = u8(time.wMonth)...
13.684211
38
0.667308
46222bf791ebd8f20bf205a35de1fc7d309e10da
1,485
cpp
C++
src/VKHelpers/Command/bindings.cpp
hiradyazdan/sdf-ray4d-engine
d71385e23cb630c54ff620ba1dff287ad90861b8
[ "MIT" ]
2
2021-09-28T22:15:44.000Z
2022-02-03T22:25:46.000Z
src/VKHelpers/Command/bindings.cpp
hiradyazdan/sdf-ray4d-engine
d71385e23cb630c54ff620ba1dff287ad90861b8
[ "MIT" ]
null
null
null
src/VKHelpers/Command/bindings.cpp
hiradyazdan/sdf-ray4d-engine
d71385e23cb630c54ff620ba1dff287ad90861b8
[ "MIT" ]
null
null
null
/***************************************************** * Partial Class: CommandHelper * Members: Command Buffer Bindings/Overloads (Private) *****************************************************/ #include "VKHelpers/Command.hpp" using namespace sdfRay4d::vkHelpers; /** * * @param[in] _material */ void CommandH...
25.169492
97
0.648485
4624a63178202e6ae40f52aa49966a55347aa1d5
389
cpp
C++
src/lib/output/buzzer.cpp
aescariom/In3
0e6adcca3492bc69912170bf9a39719a407873c4
[ "MIT" ]
3
2016-09-23T18:11:32.000Z
2021-05-31T20:50:47.000Z
src/lib/output/buzzer.cpp
aescariom/In3
0e6adcca3492bc69912170bf9a39719a407873c4
[ "MIT" ]
1
2016-09-23T18:14:32.000Z
2016-10-08T21:11:14.000Z
src/lib/output/buzzer.cpp
aescariom/In3
0e6adcca3492bc69912170bf9a39719a407873c4
[ "MIT" ]
1
2017-03-24T19:30:43.000Z
2017-03-24T19:30:43.000Z
#include "buzzer.h" Buzzer::Buzzer(volatile uint8_t *port, volatile uint8_t *dir, uint8_t mask){ this->port = port; this->dir = dir; this->mask = mask; } void Buzzer::init(){ *(this->dir) |= 1 << this->mask; // output pin } void Buzzer::beep(){ this->toggle(); _delay_ms(_O_BUZZER_DELAY_MS); this->toggle();...
17.681818
76
0.619537
4624bd768a1ee740003c4667e258e09558e94c5b
4,891
cpp
C++
Math/Generating Function of a Linear Recurrence.cpp
bazzyadb/all-code
cf3039641b5aa84b1c5b184a95d69bd4091974c9
[ "MIT" ]
1,639
2021-09-15T09:12:06.000Z
2022-03-31T22:58:57.000Z
Math/Generating Function of a Linear Recurrence.cpp
bazzyadb/all-code
cf3039641b5aa84b1c5b184a95d69bd4091974c9
[ "MIT" ]
16
2022-01-15T17:50:08.000Z
2022-01-28T12:55:21.000Z
Math/Generating Function of a Linear Recurrence.cpp
bazzyadb/all-code
cf3039641b5aa84b1c5b184a95d69bd4091974c9
[ "MIT" ]
444
2021-09-15T09:17:41.000Z
2022-03-29T18:21:46.000Z
#include<bits/stdc++.h> using namespace std; const int N = 3e3 + 9, mod = 998244353; template <int32_t MOD> struct modint { int32_t value; modint() = default; modint(int32_t value_) : value(value_) {} inline modint<MOD> operator + (modint<MOD> other) const { int32_t c = this->value + other.v...
35.963235
172
0.512983
4627c6de952526133cd87b47474dcad43cf53d93
1,025
cpp
C++
Homework01/Decryption/decryption.cpp
xmelkov/pb173-test
065b43cb05a1435c86eb5f582659eb03693a4302
[ "MIT" ]
null
null
null
Homework01/Decryption/decryption.cpp
xmelkov/pb173-test
065b43cb05a1435c86eb5f582659eb03693a4302
[ "MIT" ]
8
2017-02-24T05:05:35.000Z
2017-02-26T11:48:45.000Z
Homework01/Decryption/decryption.cpp
xmelkov/pb173-test
065b43cb05a1435c86eb5f582659eb03693a4302
[ "MIT" ]
null
null
null
#include ".\decryption.h" // Required for file input #include "..\commonFiles\aesFileIO.h" // Required for the hash function #include "..\libExcerpt\mbedtls\sha512.h" // Required for std::equal #include <algorithm> // Required for file input #include <fstream> // Required for error handling #include <stdexcept> b...
25
88
0.733659
462964858587a0c330f6bd85d4f57773591d9a22
465
cc
C++
modules/print_binary_tree.cc
xsthunder/a
3c30f31c59030d70462b71ef28c5eee19c6eddd6
[ "MIT" ]
1
2018-07-22T04:52:10.000Z
2018-07-22T04:52:10.000Z
modules/print_binary_tree.cc
xsthunder/a
3c30f31c59030d70462b71ef28c5eee19c6eddd6
[ "MIT" ]
1
2018-08-11T13:29:59.000Z
2018-08-11T13:31:28.000Z
modules/print_binary_tree.cc
xsthunder/a
3c30f31c59030d70462b71ef28c5eee19c6eddd6
[ "MIT" ]
null
null
null
#include<cstdio> #include<iostream> using namespace std; template <typename T> void pT(T *A, int d){//d for depth int sum=0; cout<<"------tree starts\n"; for(int i=0;i<d;i++){ cout<<i+1<<':'; for(int j=0;j<1<<i;j++){ cout<<*(A+sum++)<<' '; } cout<<endl; } cout<<"------tree ends\n"; } template <typename ...
20.217391
87
0.535484
462cd92916a78d6d435ad71220631e0b3c63cc15
2,623
cpp
C++
plugins/goose/src/sub/QualityTemplatesConfigReader.cpp
openenergysolutions/openfmb.adapters
3c95b1c460a8967190bdd9ae16677a4e2a5d9861
[ "Apache-2.0" ]
1
2021-08-20T12:14:11.000Z
2021-08-20T12:14:11.000Z
plugins/goose/src/sub/QualityTemplatesConfigReader.cpp
openenergysolutions/openfmb.adapters
3c95b1c460a8967190bdd9ae16677a4e2a5d9861
[ "Apache-2.0" ]
3
2021-06-16T19:25:23.000Z
2021-09-02T14:39:10.000Z
plugins/goose/src/sub/QualityTemplatesConfigReader.cpp
openenergysolutions/openfmb.adapters
3c95b1c460a8967190bdd9ae16677a4e2a5d9861
[ "Apache-2.0" ]
null
null
null
// SPDX-FileCopyrightText: 2021 Open Energy Solutions Inc // // SPDX-License-Identifier: Apache-2.0 #include "sub/QualityTemplatesConfigReader.h" #include "ConfigStrings.h" #include <adapter-util/util/YAMLUtil.h> #include <adapter-util/config/YAMLGetters.h> namespace adapter { namespace goose { QualityTemplatesConf...
46.839286
180
0.704918
462ddf2182fe6a992adb577c17852966085f2cb9
12,751
cpp
C++
source/dynv/Xml.cpp
ericonr/gpick
ff0a3c0c797d3d06d1b8ab257cb2e9dcca389908
[ "BSD-3-Clause" ]
311
2015-03-26T18:38:51.000Z
2022-03-23T07:39:30.000Z
source/dynv/Xml.cpp
ericonr/gpick
ff0a3c0c797d3d06d1b8ab257cb2e9dcca389908
[ "BSD-3-Clause" ]
86
2015-03-27T06:05:57.000Z
2022-01-07T23:04:30.000Z
source/dynv/Xml.cpp
ericonr/gpick
ff0a3c0c797d3d06d1b8ab257cb2e9dcca389908
[ "BSD-3-Clause" ]
42
2015-03-25T16:40:26.000Z
2022-02-23T22:36:47.000Z
/* * Copyright (c) 2009-2020, Albertas Vyšniauskas * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of...
29.861827
211
0.68426
462e31050795f341ff50315b2347c58bfbb784e9
83
cpp
C++
TP3_Prog_SpaceSim/Main.cpp
Arganancer/S3_TP3_Prog_SpaceSim
43364f6613ad690f81c94f8a027ee3708fa58d3d
[ "MIT" ]
null
null
null
TP3_Prog_SpaceSim/Main.cpp
Arganancer/S3_TP3_Prog_SpaceSim
43364f6613ad690f81c94f8a027ee3708fa58d3d
[ "MIT" ]
null
null
null
TP3_Prog_SpaceSim/Main.cpp
Arganancer/S3_TP3_Prog_SpaceSim
43364f6613ad690f81c94f8a027ee3708fa58d3d
[ "MIT" ]
null
null
null
#include "vld.h" #include "game.h" int main() { game game; return game.run(); }
9.222222
19
0.614458
463015586ebed441a243c541d8c89e57e01a6cc8
13,660
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/ProfileManager.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/ProfileManager.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/ProfileManager.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
29.06383
93
0.630161
4632501d59bf7b852fa5c135d97358d93bcdaa52
464
cpp
C++
storage/src/vespa/storage/distributor/operations/external/newest_replica.cpp
Anlon-Burke/vespa
5ecd989b36cc61716bf68f032a3482bf01fab726
[ "Apache-2.0" ]
4,054
2017-08-11T07:58:38.000Z
2022-03-31T22:32:15.000Z
storage/src/vespa/storage/distributor/operations/external/newest_replica.cpp
Anlon-Burke/vespa
5ecd989b36cc61716bf68f032a3482bf01fab726
[ "Apache-2.0" ]
4,854
2017-08-10T20:19:25.000Z
2022-03-31T19:04:23.000Z
storage/src/vespa/storage/distributor/operations/external/newest_replica.cpp
Anlon-Burke/vespa
5ecd989b36cc61716bf68f032a3482bf01fab726
[ "Apache-2.0" ]
541
2017-08-10T18:51:18.000Z
2022-03-11T03:18:56.000Z
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "newest_replica.h" #include <ostream> namespace storage::distributor { std::ostream& operator<<(std::ostream& os, const NewestReplica& nr) { os << "NewestReplica(timestamp " << nr.timestamp << ...
27.294118
104
0.631466
4632a0c517ab096ba9b640cea6e21e3aa7a31f0b
507
cpp
C++
graphblockstest/src/main.cpp
dabulla/graphblocks
6006375747117636d8662076e64a677cf709a274
[ "MIT" ]
1
2017-05-01T20:39:35.000Z
2017-05-01T20:39:35.000Z
graphblockstest/src/main.cpp
dabulla/graphblocks
6006375747117636d8662076e64a677cf709a274
[ "MIT" ]
null
null
null
graphblockstest/src/main.cpp
dabulla/graphblocks
6006375747117636d8662076e64a677cf709a274
[ "MIT" ]
null
null
null
#include <QApplication> #include <QQmlApplicationEngine> #include <qqml.h> #include <QResource> #include <QDebug> #include <graphblocks.h> int main(int argc, char *argv[]) { QApplication app(argc, argv); GraphblocksContext* gbctx = initializeGraphBlocks(); QQmlApplicationEngine engine; addGraphBlocks...
23.045455
59
0.704142
4634737aca597d284dca13cf9574464bab7dc1ff
20
cpp
C++
src/Game/zScript.cpp
DarkRTA/bfbbdecomp
e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e
[ "OLDAP-2.7" ]
null
null
null
src/Game/zScript.cpp
DarkRTA/bfbbdecomp
e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e
[ "OLDAP-2.7" ]
6
2022-01-16T05:29:01.000Z
2022-01-18T01:10:29.000Z
src/Game/zScript.cpp
DarkRTA/bfbbdecomp
e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e
[ "OLDAP-2.7" ]
1
2022-01-16T00:04:23.000Z
2022-01-16T00:04:23.000Z
#include "zScript.h"
20
20
0.75
463b70decfcf756e76dc1f4d982ab90ff08f6feb
9,097
cpp
C++
src/daemon/process/AppProcess.cpp
FrederickHou/app-mesh
8f23a1555d3a8da1481d91e1e60464fc197bd6e5
[ "MIT" ]
null
null
null
src/daemon/process/AppProcess.cpp
FrederickHou/app-mesh
8f23a1555d3a8da1481d91e1e60464fc197bd6e5
[ "MIT" ]
null
null
null
src/daemon/process/AppProcess.cpp
FrederickHou/app-mesh
8f23a1555d3a8da1481d91e1e60464fc197bd6e5
[ "MIT" ]
1
2020-11-01T09:11:49.000Z
2020-11-01T09:11:49.000Z
#include <thread> #include <fstream> #include "AppProcess.h" #include "LinuxCgroup.h" #include "../Configuration.h" #include "../ResourceLimitation.h" #include "../../common/Utility.h" #include "../../common/DateTime.h" #include "../../common/os/pstree.hpp" #define CLOSE_ACE_HANDLER(handler) \ do ...
30.62963
238
0.67165
463dea99028bceb273e29e22982b837fae318681
4,507
cpp
C++
src/controller/src/SMACS.cpp
BCLab-UNM/M2M-MC
4bde093b2c43c2217fda2f4a0efd55bbfc45b9a1
[ "MIT" ]
6
2020-07-02T13:01:30.000Z
2021-05-01T06:35:10.000Z
src/controller/src/SMACS.cpp
BCLab-UNM/M2M-MC
4bde093b2c43c2217fda2f4a0efd55bbfc45b9a1
[ "MIT" ]
null
null
null
src/controller/src/SMACS.cpp
BCLab-UNM/M2M-MC
4bde093b2c43c2217fda2f4a0efd55bbfc45b9a1
[ "MIT" ]
2
2020-05-17T18:51:12.000Z
2020-11-16T16:32:44.000Z
#include "SMACS.h" // Initialize the instance SMACS* SMACS::s_instance = 0; SMACS::SMACS(){} SMACS* SMACS::instance(){ if(!s_instance) s_instance = new SMACS; return s_instance; } void SMACS::pushWithMutex(Behavior* b){ // Check if behavior is null. If it is then do not put anything on stack ...
25.463277
101
0.544264
463ed1f546940c56ba4ee677e916d5a1b61dab89
7,947
cpp
C++
tests/src/percent_input_tests.cpp
DmitryDzz/calculator-comrade-lib
107930ef7df88b330b800993028b35d08d5d78f6
[ "MIT" ]
4
2021-01-18T03:11:14.000Z
2022-01-29T09:17:06.000Z
tests/src/percent_input_tests.cpp
DmitryDzz/calculator-comrade-lib
107930ef7df88b330b800993028b35d08d5d78f6
[ "MIT" ]
32
2018-10-11T22:05:14.000Z
2019-05-26T16:25:38.000Z
tests/src/percent_input_tests.cpp
DmitryDzz/calculator-comrade-lib
107930ef7df88b330b800993028b35d08d5d78f6
[ "MIT" ]
null
null
null
/** * Calculator Comrade Library * License: https://github.com/DmitryDzz/calculator-comrade-lib/blob/master/LICENSE * Author: Dmitry Dzakhov * Email: info@robot-mitya.ru */ #include <gmock/gmock.h> #include "calculator/calculator.h" #include "calculator/button.h" #include "calculator/operation.h" #include "calc_h...
26.938983
83
0.623632
463fb36ee7f82268919c4c195906ebf824f4fd3f
3,539
cpp
C++
projects/biogears/libBiogears/src/cdm/properties/SEScalarAmountPerVolume.cpp
Aaryan-kapur/core
5ebf096d18a3ddbe0259f83ca82a39607ba1f892
[ "Apache-2.0" ]
1
2020-03-13T17:43:34.000Z
2020-03-13T17:43:34.000Z
projects/biogears/libBiogears/src/cdm/properties/SEScalarAmountPerVolume.cpp
BhumikaSaini/core
baecdd736961d301fe2723858de94cef285296b0
[ "Apache-2.0" ]
5
2020-12-23T00:19:32.000Z
2020-12-29T20:53:58.000Z
projects/biogears/libBiogears/src/cdm/properties/SEScalarAmountPerVolume.cpp
BhumikaSaini/core
baecdd736961d301fe2723858de94cef285296b0
[ "Apache-2.0" ]
3
2020-02-23T06:20:08.000Z
2021-12-02T04:18:29.000Z
/************************************************************************************** Copyright 2015 Applied Research Associates, 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.ap...
40.678161
88
0.593105
46439014fe67edc86b801095f99e4c66d75c337f
1,571
cpp
C++
test/utils/test_utils.cpp
patwoodburn/fort_assesment
e5dd21a4e179ffca647e0a3c6963bba437d614e6
[ "MIT" ]
1
2021-03-01T17:57:49.000Z
2021-03-01T17:57:49.000Z
test/utils/test_utils.cpp
patwoodburn/cpp_base_project
b1481c4ee28fd267d63658b0bb2fa27bd2d948b7
[ "MIT" ]
null
null
null
test/utils/test_utils.cpp
patwoodburn/cpp_base_project
b1481c4ee28fd267d63658b0bb2fa27bd2d948b7
[ "MIT" ]
null
null
null
#include "catch2/catch.hpp" #include "utils.h" #include <algorithm> #include <array> SCENARIO("An array of values needs to be sorted", "") { GIVEN("An an unsorted arry a1") { std::array<int, 10> a1 = {5, 10, 1, 2, 8, 3, 7, 9, 4, 6}; WHEN("Array a1 is passed to bubble sort.") { BubbleSort(a1.begin(), ...
29.092593
79
0.521961
4643ab8154366f53cffbe193c750fd0a35c954a3
578
cpp
C++
barelymusician/dsp/one_pole_filter.cpp
anokta/barelymusician
5e3485c80cc74c4bcbc0653c0eb8750ad44981d6
[ "MIT" ]
6
2021-11-25T17:40:21.000Z
2022-03-24T03:38:11.000Z
barelymusician/dsp/one_pole_filter.cpp
anokta/barelymusician
5e3485c80cc74c4bcbc0653c0eb8750ad44981d6
[ "MIT" ]
17
2021-11-27T00:10:39.000Z
2022-03-30T00:33:51.000Z
barelymusician/dsp/one_pole_filter.cpp
anokta/barelymusician
5e3485c80cc74c4bcbc0653c0eb8750ad44981d6
[ "MIT" ]
null
null
null
#include "barelymusician/dsp/one_pole_filter.h" #include <algorithm> namespace barelyapi { double OnePoleFilter::Next(double input) noexcept { output_ = coefficient_ * (output_ - input) + input; if (type_ == FilterType::kHighPass) { return input - output_; } return output_; } void OnePoleFilter::Reset()...
24.083333
71
0.719723
4647b087057511edb5817108d19eb772335602fb
10,906
cpp
C++
src/dev/steve/ScarrArm/ScarrArmModel.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
148
2015-01-08T22:44:00.000Z
2022-03-19T18:42:48.000Z
src/dev/steve/ScarrArm/ScarrArmModel.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
107
2015-01-02T16:41:42.000Z
2021-06-14T22:09:19.000Z
src/dev/steve/ScarrArm/ScarrArmModel.cpp
wvat/NTRTsim
0443cbd542e12e23c04adf79ea0d8d003c428baa
[ "Apache-2.0" ]
86
2015-01-06T07:02:36.000Z
2022-02-28T17:36:14.000Z
/* * Copyright © 2015, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use t...
37.737024
126
0.656703
46498961a608ee3f3a53e462acc2ee7f0d39f35f
415
cpp
C++
sursa.cpp
seerj30/backtracking-recursiv_permutari
8ec7d75ed50305e68527d6dd74133910d9c35256
[ "MIT" ]
null
null
null
sursa.cpp
seerj30/backtracking-recursiv_permutari
8ec7d75ed50305e68527d6dd74133910d9c35256
[ "MIT" ]
null
null
null
sursa.cpp
seerj30/backtracking-recursiv_permutari
8ec7d75ed50305e68527d6dd74133910d9c35256
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int n; void back(int st[], int k) { int i,ev,j; if(k==n+1) { for(int i = 1; i < k; i++) cout << st[i] << " "; cout << endl; } else for(int i = 1; i <= n; i++) { st[k] = i; ev=1; for(j = 1; j < k; j++) if(st[j] == st[k]) ev=0; if(ev) back(...
12.205882
29
0.436145
464a3aeedf7fb4a9e26ce09eb1d2a829735d1f65
1,829
hh
C++
test/CLI/AppTest.hh
decouple/decouple.io
c841e905fbc8bd9507759a0ef6e56e1985c56c5a
[ "MIT" ]
null
null
null
test/CLI/AppTest.hh
decouple/decouple.io
c841e905fbc8bd9507759a0ef6e56e1985c56c5a
[ "MIT" ]
null
null
null
test/CLI/AppTest.hh
decouple/decouple.io
c841e905fbc8bd9507759a0ef6e56e1985c56c5a
[ "MIT" ]
null
null
null
<?hh // partial namespace Test\CLI; use Decouple\CLI\App; use Decouple\CLI\Request\Request; use Decouple\Decoupler\Decoupler; use Decouple\Registry\Paths; use Decouple\CLI\Console; class AppTest extends \Decouple\Test\TestCase { public function execute() : void { Console::output('Testing CLI bootstrap (version)')...
29.031746
85
0.631493
464b0c44e0f870c5e760b5c4e5248cfc41c05ea1
14,229
cpp
C++
modules/Math/test/Vector4Test.cpp
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
5
2018-11-17T23:13:22.000Z
2021-09-30T13:37:04.000Z
modules/Math/test/Vector4Test.cpp
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
null
null
null
modules/Math/test/Vector4Test.cpp
akb825/DeepSea
fff790d0a472cf2f9f89de653e0b4470ce605d24
[ "Apache-2.0" ]
2
2019-09-23T12:23:35.000Z
2020-04-07T05:31:06.000Z
/* * Copyright 2016 Aaron Barany * * 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...
31.135667
100
0.710661
464b77d844ad0b1b829a3053a1afbc119a63c6ad
4,139
cpp
C++
cha1/max_subarray.cpp
byzhou/CLRS
1af11fc971b9b91a050cdb1f2b3cf9a9471c8a22
[ "MIT" ]
null
null
null
cha1/max_subarray.cpp
byzhou/CLRS
1af11fc971b9b91a050cdb1f2b3cf9a9471c8a22
[ "MIT" ]
null
null
null
cha1/max_subarray.cpp
byzhou/CLRS
1af11fc971b9b91a050cdb1f2b3cf9a9471c8a22
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdlib> #include <ctime> #include <time.h> #include <stdio.h> using namespace std; const int neg_infinity = 0xFFFFFFFF ; const int pos_infinity = 0x7FFFFFFF ; void print_array ( int* array , int num ) ; void diff_array ( int* array, int* diff_array ) ; void max_cross_subarray ( int* ...
28.349315
113
0.512926
464ca6a431f7f3789925b04e79a4043171b28317
785
cpp
C++
samples/test/src/main.cpp
hiroog/CCTFLibrary
9eb1d7f740ba7f6174c40dba255c12212b85d9e4
[ "MIT" ]
null
null
null
samples/test/src/main.cpp
hiroog/CCTFLibrary
9eb1d7f740ba7f6174c40dba255c12212b85d9e4
[ "MIT" ]
null
null
null
samples/test/src/main.cpp
hiroog/CCTFLibrary
9eb1d7f740ba7f6174c40dba255c12212b85d9e4
[ "MIT" ]
null
null
null
// 2019/09/01 Hiroyuki Ogasawara // vim:ts=4 sw=4 noet: #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <cctf/CCTFSystem.h> using namespace cctf; //----------------------------------------------------------------------------- class MySystemAPI : public CCSystemAPI { public: size_t AllocCount= 0...
16.702128
79
0.536306
464de57caa7356693d06b6ce102678f354019d98
4,959
cpp
C++
Lab_03.cpp
Mila04/Lab_3
ff874c0c77f661e39abada417194bc2a5e3d292b
[ "MIT" ]
null
null
null
Lab_03.cpp
Mila04/Lab_3
ff874c0c77f661e39abada417194bc2a5e3d292b
[ "MIT" ]
null
null
null
Lab_03.cpp
Mila04/Lab_3
ff874c0c77f661e39abada417194bc2a5e3d292b
[ "MIT" ]
null
null
null
#include <cstdlib> #include <cstdio> #include <cctype> #include <vector> #include <stack> #include <utility> #include <iostream> #include <sstream> #include <string> #include <ctype.h> #include <locale> #include <list> using namespace std; //split the string in vector of type string vector<string> split(const string...
23.391509
80
0.631377
4651aaa16edb80934cf929c9247afe00b844b711
1,579
cpp
C++
src/asseteditdelegate.cpp
valzav/cryptoportfolio-qt
bea3eb4ad06b9262300212a90d898fd0a695fc87
[ "MIT" ]
3
2020-02-13T17:42:45.000Z
2022-01-09T22:10:41.000Z
src/asseteditdelegate.cpp
valzav/cryptoportfolio-qt
bea3eb4ad06b9262300212a90d898fd0a695fc87
[ "MIT" ]
null
null
null
src/asseteditdelegate.cpp
valzav/cryptoportfolio-qt
bea3eb4ad06b9262300212a90d898fd0a695fc87
[ "MIT" ]
2
2015-08-30T12:45:39.000Z
2022-03-24T17:54:08.000Z
#include <QtCore> #include <QtSql> #include "asseteditdelegate.h" AssetEditDelegate::AssetEditDelegate(QObject *parent) : QItemDelegate(parent) { } void AssetEditDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const { QComboBox *combo = qobject_cast<QComboBox *>(editor); if (!combo) ...
42.675676
114
0.71121
465470dd4d63504759a42fd83d03389631e1900b
10,971
cpp
C++
solver/modules/slide/src/StraightSolver.cpp
taiheioki/procon2014_ut
8199ff0a54220f1a0c51acece377f65b64db4863
[ "MIT" ]
2
2021-04-14T06:41:18.000Z
2021-04-29T01:56:08.000Z
solver/modules/slide/src/StraightSolver.cpp
taiheioki/procon2014_ut
8199ff0a54220f1a0c51acece377f65b64db4863
[ "MIT" ]
null
null
null
solver/modules/slide/src/StraightSolver.cpp
taiheioki/procon2014_ut
8199ff0a54220f1a0c51acece377f65b64db4863
[ "MIT" ]
null
null
null
#include <algorithm> #include <functional> #include <limits> #include <boost/format.hpp> #include "StraightSolver.hpp" namespace slide { void StraightSolver::alignRow(AnswerBoard<Flexible>& board) { BOOST_ASSERT(board.height() >= 3 && board.width() >= 2); // 右端2個以外 rep(dstX, board.width()-2){ const Point dst(...
25.753521
125
0.627199
4654c53aeb35a7c4dbdd747d4f61e5dd3ced6dd0
3,332
hpp
C++
alpaka/include/alpaka/block/shared/dyn/BlockSharedMemDynUniformCudaHipBuiltIn.hpp
alpaka-group/mallocMC
ddba224b764885f816c42a7719551b14e6f5752b
[ "MIT" ]
6
2021-02-01T09:01:39.000Z
2021-11-14T17:09:03.000Z
alpaka/include/alpaka/block/shared/dyn/BlockSharedMemDynUniformCudaHipBuiltIn.hpp
alpaka-group/mallocMC
ddba224b764885f816c42a7719551b14e6f5752b
[ "MIT" ]
17
2020-11-09T14:13:50.000Z
2021-11-03T11:54:54.000Z
alpaka/include/alpaka/block/shared/dyn/BlockSharedMemDynUniformCudaHipBuiltIn.hpp
alpaka-group/mallocMC
ddba224b764885f816c42a7719551b14e6f5752b
[ "MIT" ]
null
null
null
/* Copyright 2019 Benjamin Worpitz, René Widera * * This file is part of alpaka. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #if defined(A...
45.643836
114
0.536315
465af3690db8e7e38b86005371afe4aa42b6cc8b
556
cpp
C++
test/filter.cpp
ericjavier/yaml
92d9097fc58602fbc88000fd22e2debc2f90996c
[ "Apache-2.0" ]
1
2015-04-12T19:46:13.000Z
2015-04-12T19:46:13.000Z
test/filter.cpp
ericjavier/yaml
92d9097fc58602fbc88000fd22e2debc2f90996c
[ "Apache-2.0" ]
null
null
null
test/filter.cpp
ericjavier/yaml
92d9097fc58602fbc88000fd22e2debc2f90996c
[ "Apache-2.0" ]
null
null
null
#include <gtest/gtest.h> #include <yaml/config.hpp> #include <yaml/detail/placeholders.hpp> #include <yaml/arithmetic.hpp> #include <yaml/sequence/filter.hpp> #include "test_utils.hpp" using namespace YAML_NSP; using func = less::ret<_0, std::integral_constant<int, 3>>; using expected = list<std::integral_constant<i...
25.272727
59
0.723022
465bb25a1f734987150e98294c974113721a02e6
991
cc
C++
src/abc011/c.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
src/abc011/c.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
src/abc011/c.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; const int INF = 400; int dfs(int start, vector<int> &dp, set<int> &ng) { if(dp[start] >= 0) { return dp[start]; } if(ng.find(start) != ng.end()) { return dp[start] = INF; } int one = INF, two...
22.022222
53
0.498486
465eb68fb7072790e82f6c3db5f23dbfb93e7340
4,148
cpp
C++
Linked list/LinkedListStruct.cpp
lovinh/Data-Structure
f5dab728b809507b8b15eb8f8450a6a85f95467e
[ "MIT" ]
null
null
null
Linked list/LinkedListStruct.cpp
lovinh/Data-Structure
f5dab728b809507b8b15eb8f8450a6a85f95467e
[ "MIT" ]
null
null
null
Linked list/LinkedListStruct.cpp
lovinh/Data-Structure
f5dab728b809507b8b15eb8f8450a6a85f95467e
[ "MIT" ]
null
null
null
#ifndef __LinkedListStruct_cpp #define __LinkedListStruct_cpp #include <iostream> template <class T> struct sNode // struct node { T data; sNode<T> *next; }; // Insert template <class T> void push_front(sNode<T> **head, const T &data) { sNode<T> *node = new sNode<T>; node->data = data; node->next =...
18.435556
57
0.478303
465ed2ea6fea6919b888be71acce359be427cbd8
1,684
cxx
C++
main/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
29.54386
76
0.690024
46638a06ef05cd551a0d25bc744069d85864c7f2
2,585
cpp
C++
allocore/src/protocol/opencl/al_OpenCLProgram.cpp
donghaoren/AlloSystem
7674cc8597e470a355a5dab1dac9191c2c2e8086
[ "BSD-3-Clause" ]
null
null
null
allocore/src/protocol/opencl/al_OpenCLProgram.cpp
donghaoren/AlloSystem
7674cc8597e470a355a5dab1dac9191c2c2e8086
[ "BSD-3-Clause" ]
null
null
null
allocore/src/protocol/opencl/al_OpenCLProgram.cpp
donghaoren/AlloSystem
7674cc8597e470a355a5dab1dac9191c2c2e8086
[ "BSD-3-Clause" ]
null
null
null
#include "allocore/protocol/opencl/al_OpenCLProgram.hpp" #ifndef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif namespace al { namespace cl { void OpenCLProgram :: create(OpenCLContext &ctx, const char *source) { destroy(); detach(); cl_int res = CL_SUCCESS; cl_program program = clCreateProgramWithSour...
23.288288
81
0.648743
4663c2afa22114665144549d50fe2d00da904b5c
1,287
cpp
C++
app/src/main/cpp/Threads/FileStreamThread.cpp
PetrFlajsingr/SpeechRecognition
23c675c7389b9ad97b18a8ba3739dceb04f42856
[ "Apache-2.0" ]
1
2019-04-18T06:33:09.000Z
2019-04-18T06:33:09.000Z
app/src/main/cpp/Threads/FileStreamThread.cpp
PetrFlajsingr/SpeechRecognition
23c675c7389b9ad97b18a8ba3739dceb04f42856
[ "Apache-2.0" ]
null
null
null
app/src/main/cpp/Threads/FileStreamThread.cpp
PetrFlajsingr/SpeechRecognition
23c675c7389b9ad97b18a8ba3739dceb04f42856
[ "Apache-2.0" ]
null
null
null
// // Created by Petr Flajsingr on 18/04/2018. // #include "FileStreamThread.h" #include <constants.h> #include <android/log.h> SpeechRecognition::Threads::FileStreamThread::FileStreamThread(std::ifstream& fileStream) : thread(&FileStreamThread::threadFileStream, this) { this->fileStream = &fileStream; }...
26.8125
89
0.677545
46642a3737950cf666a252806f317be9196ca388
1,864
cpp
C++
c++/Data Structures/RMQ.cpp
WearyJunger/notebook
8fc7bfdcacffd63b131b5ed0c92365f682ba313f
[ "MIT" ]
null
null
null
c++/Data Structures/RMQ.cpp
WearyJunger/notebook
8fc7bfdcacffd63b131b5ed0c92365f682ba313f
[ "MIT" ]
null
null
null
c++/Data Structures/RMQ.cpp
WearyJunger/notebook
8fc7bfdcacffd63b131b5ed0c92365f682ba313f
[ "MIT" ]
1
2018-10-08T21:01:59.000Z
2018-10-08T21:01:59.000Z
Range minimum query. Recibe como parametro en el constructor un array de valores. Las consultas se realizan con el método rmq(indice_inicio, indice_final) y pueden actualizarse los valores con update_point(indice, nuevo_valor) class SegmentTree { private: vector<int> st, A; int n; int left (i...
28.242424
226
0.495708
466cc79151dff2e1c1bf8abf8acbd3a5d6c861c0
630
cpp
C++
225-Days Coding Problem/Day-002.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
225-Days Coding Problem/Day-002.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
225-Days Coding Problem/Day-002.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
class Solution { public: vector<int> productExceptSelf(vector<int>& nums) { const size_t n= nums.size(); vector<int>ans(n,1); int answer =1; for(size_t i=0;i<n; ++i){ if(i==0){ ans[i] = nums[i]; }else{ ans[i] = nums[i]*ans[i-1];...
23.333333
54
0.365079
466e60dd8dd600cfbe3235959f31c170b9a87f0d
3,347
cpp
C++
SelPh/metriclearning.cpp
yuki-koyama/selph
9f3d1a868333843c6884adac41e344684efa2366
[ "MIT" ]
3
2019-09-13T07:47:39.000Z
2021-03-10T20:31:32.000Z
SelPh/metriclearning.cpp
yuki-koyama/selph
9f3d1a868333843c6884adac41e344684efa2366
[ "MIT" ]
7
2018-04-06T10:06:56.000Z
2019-08-04T05:38:12.000Z
SelPh/metriclearning.cpp
yuki-koyama/selph
9f3d1a868333843c6884adac41e344684efa2366
[ "MIT" ]
null
null
null
// #define TIME #include "metriclearning.h" #ifdef TIME #include <chrono> #endif #include <nlopt.hpp> #include "core.h" #include "eigenutility.h" using namespace Eigen; using namespace std; namespace { Core& core = Core::getInstance(); } namespace MetricLearning { struct Arg { Arg(const Core::Distance* D_imag...
31.575472
142
0.553929
466f649cd8398e7deb5c21a4cf7fc57bbcff1ba5
1,025
cpp
C++
Lab 4/Lab 4/Lab 4.cpp
shonwr/c-assignments-projects
fab40807ba2720cec577aa9689361746e33ef678
[ "Apache-2.0" ]
null
null
null
Lab 4/Lab 4/Lab 4.cpp
shonwr/c-assignments-projects
fab40807ba2720cec577aa9689361746e33ef678
[ "Apache-2.0" ]
null
null
null
Lab 4/Lab 4/Lab 4.cpp
shonwr/c-assignments-projects
fab40807ba2720cec577aa9689361746e33ef678
[ "Apache-2.0" ]
null
null
null
// Lab 4.cpp : main project file. #include "stdafx.h" #include <iostream> using namespace System; using namespace std; char fName[50]; char lName[50]; char space[10] = " "; int main() { system("color f0"); printf("This program: \n\t(1)Prints an entered first and last name \n\t(2)Prints the number of letters in each...
26.973684
146
0.636098
4671ec7a3b1a40d24223e8bfc1ef09540e1dc440
1,784
cpp
C++
DivisionEngine/DivisionTest/ClockTest.cpp
martheveldhuis/DivisionEngine
8f7ba1c355ee010c005df207e08d51673f3cdf8d
[ "MIT" ]
1
2017-11-29T19:19:43.000Z
2017-11-29T19:19:43.000Z
DivisionEngine/DivisionTest/ClockTest.cpp
martheveldhuis/DivisionEngine
8f7ba1c355ee010c005df207e08d51673f3cdf8d
[ "MIT" ]
2
2018-01-16T12:11:24.000Z
2018-01-16T15:21:46.000Z
DivisionEngine/DivisionTest/ClockTest.cpp
martheveldhuis/DivisionEngine
8f7ba1c355ee010c005df207e08d51673f3cdf8d
[ "MIT" ]
1
2018-01-28T13:10:49.000Z
2018-01-28T13:10:49.000Z
#include "CppUnitTest.h" #include "Clock.h" #include <chrono> #include <thread> #include <iostream> using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace Division; namespace DivisionTest { TEST_CLASS(ClockTest) { public: TEST_METHOD(testClockStart) { Clock clock; clock.start()...
16.830189
64
0.663117
4672121dbfdbb543cd8767a085f1823f8735a986
7,810
cpp
C++
src/mame/video/namco_c169roz.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
26
2015-03-31T06:25:51.000Z
2021-12-14T09:29:04.000Z
src/mame/video/namco_c169roz.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
null
null
null
src/mame/video/namco_c169roz.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
10
2015-03-27T05:45:51.000Z
2022-02-04T06:57:36.000Z
// license:BSD-3-Clause // copyright-holders:David Haywood, Phil Stroffolino /****************************************************************************** Namco C169 (ROZ - Rotate and Zoom) Advanced rotate-zoom chip manages two layers. Each layer uses a designated subset of a master 256x256 tile tilemap (40...
28.194946
196
0.66402
4674ea079e6d2cdc296410871e1316c79c9577e3
5,471
cpp
C++
triangles.cpp
bradgrantham/raycast
a103801f473d55e99fc25db28c4b0587a1271093
[ "BSD-2-Clause" ]
null
null
null
triangles.cpp
bradgrantham/raycast
a103801f473d55e99fc25db28c4b0587a1271093
[ "BSD-2-Clause" ]
null
null
null
triangles.cpp
bradgrantham/raycast
a103801f473d55e99fc25db28c4b0587a1271093
[ "BSD-2-Clause" ]
null
null
null
#include <algorithm> #include <cmath> // Okay, it's ugly, I get it. // // I didn't use classes or a vector library. I use loops to // 3 everywhere for vector operations, and I even write out dot // products. My intent was to try to build a minimal triangle // raycaster that I could convert simply to BASIC or FORTH o...
26.687805
91
0.425882
4679a7b3404ed6d2823d710f72a2e305de31da3b
755
cpp
C++
insts/std/PVOC/PVFilterTest.cpp
jwmatthys/RTcmix
c9ba0c5bee2cd5e091c81333cf819d267008635b
[ "Apache-2.0" ]
40
2015-01-14T20:52:42.000Z
2022-03-09T00:50:45.000Z
insts/std/PVOC/PVFilterTest.cpp
jwmatthys/RTcmix
c9ba0c5bee2cd5e091c81333cf819d267008635b
[ "Apache-2.0" ]
20
2015-01-26T19:02:59.000Z
2022-01-30T18:00:39.000Z
insts/std/PVOC/PVFilterTest.cpp
jwmatthys/RTcmix
c9ba0c5bee2cd5e091c81333cf819d267008635b
[ "Apache-2.0" ]
14
2015-01-14T20:52:43.000Z
2021-09-24T02:24:32.000Z
// PVFilterTest.cpp -- test class for pvoc data filters #include "PVFilterTest.h" #include <stdio.h> #include <ugens.h> PVFilter * PVFilterTest::create() { return new PVFilterTest; } PVFilterTest::PVFilterTest() { } PVFilterTest::~PVFilterTest() { } int PVFilterTest::run(float *pvdata, int nvals) { for (int n = ...
15.729167
67
0.675497
467a5110cc99dab334a99239e0b6d2733962ca4c
21
cc
C++
src/main/c++/novemberizing/io/buffer.cc
iticworld/reactive-lib
9ab761376776e759390fa417d50921ec6e8a898a
[ "Apache-2.0" ]
1
2020-10-10T11:57:15.000Z
2020-10-10T11:57:15.000Z
src/main/c++/novemberizing/io/buffer.cc
iticworld/reactive-lib
9ab761376776e759390fa417d50921ec6e8a898a
[ "Apache-2.0" ]
null
null
null
src/main/c++/novemberizing/io/buffer.cc
iticworld/reactive-lib
9ab761376776e759390fa417d50921ec6e8a898a
[ "Apache-2.0" ]
null
null
null
#include "buffer.hh"
10.5
20
0.714286
467adea4e2f3af676246adae4073c1f4877d720e
75
hxx
C++
src/drawable.hxx
luutifa/openglpractice
1158453f0b124910ad8c4101f226dd55b5ce4262
[ "MIT" ]
null
null
null
src/drawable.hxx
luutifa/openglpractice
1158453f0b124910ad8c4101f226dd55b5ce4262
[ "MIT" ]
null
null
null
src/drawable.hxx
luutifa/openglpractice
1158453f0b124910ad8c4101f226dd55b5ce4262
[ "MIT" ]
null
null
null
#pragma once class Drawable { public: virtual void draw() const; };
10.714286
30
0.653333
46811eb70d97fa59ee2378376fe31f71a8204a9b
1,327
cc
C++
mindspore/lite/tools/converter/adapter/acl/mapper/fused_batchnorm_mapper.cc
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
mindspore/lite/tools/converter/adapter/acl/mapper/fused_batchnorm_mapper.cc
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
mindspore/lite/tools/converter/adapter/acl/mapper/fused_batchnorm_mapper.cc
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
/** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
35.864865
84
0.757347
46816ff6a443ba8ba63c8eefac6401da4f99b69f
2,338
cxx
C++
include/rrwindows/console/console_virtual_terminal_sequences.cxx
afoolsbag/rrCnCxx
1e673bd4edac43d8406a0c726138cba194d17f48
[ "Unlicense" ]
2
2019-03-20T01:14:10.000Z
2021-12-08T15:39:32.000Z
include/rrwindows/console/console_virtual_terminal_sequences.cxx
afoolsbag/rrCnCxx
1e673bd4edac43d8406a0c726138cba194d17f48
[ "Unlicense" ]
null
null
null
include/rrwindows/console/console_virtual_terminal_sequences.cxx
afoolsbag/rrCnCxx
1e673bd4edac43d8406a0c726138cba194d17f48
[ "Unlicense" ]
null
null
null
/// \copyright Unlicense #include "rrwindows/console/console_virtual_terminal_sequences.hxx" #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include "rrwindows/debug/error_handling.hxx" using namespace std; namespace rrwindows { RRWINDOWS_API void RRWINDOWS_CALL enable_virtual_terminal_mode() { DWORD dwMode...
38.327869
78
0.749358
46823dbdade1cbfdbfe418a0c45b44216ff606cf
14,456
cpp
C++
push1st-server/core/lua/clua.cpp
navek-soft/push1st
6d0638e31031dcf55442382df0e92ac67d95801b
[ "Apache-2.0" ]
16
2021-11-02T07:29:18.000Z
2021-12-23T13:28:05.000Z
push1st-server/core/lua/clua.cpp
navek-soft/push1st
6d0638e31031dcf55442382df0e92ac67d95801b
[ "Apache-2.0" ]
null
null
null
push1st-server/core/lua/clua.cpp
navek-soft/push1st
6d0638e31031dcf55442382df0e92ac67d95801b
[ "Apache-2.0" ]
null
null
null
#include "clua.h" #include <unordered_map> #include <set> #include <deque> #include <functional> #include <ctime> #define l L.get() void* clua::engine::getModule(clua::lua_t L, const std::string_view& modName, const std::string_view& modNamespace) { if (lua_getglobal(L, modNamespace.data()); lua_istable(L, -1)) {...
41.185185
217
0.509408
46835ffc0fa55038a82c3e8f90cfff09dc4cb13e
19,985
cpp
C++
src/game/server/hl1/hl1_npc_leech.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
6
2022-01-23T09:40:33.000Z
2022-03-20T20:53:25.000Z
src/game/server/hl1/hl1_npc_leech.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
null
null
null
src/game/server/hl1/hl1_npc_leech.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
1
2022-02-06T21:05:23.000Z
2022-02-06T21:05:23.000Z
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #include "cbase.h" #include "ai_default.h" #include "ai_task.h" #include "ai_schedule.h" #include "ai_nod...
28.71408
129
0.615161
468943227aa1aababc7ce2303fe243effbaadc5e
11,202
inl
C++
Extras/RigidBodyGpuPipeline/opencl/primitives/AdlPrimitives/Sort/RadixSort32.inl
tizenorg/platform.upstream.libbullet
eb6918d59f661c0e5b469d6e007f91a82d46a302
[ "Zlib" ]
2
2015-02-28T15:50:06.000Z
2016-04-12T18:03:10.000Z
Extras/RigidBodyGpuPipeline/opencl/primitives/AdlPrimitives/Sort/RadixSort32.inl
tizenorg/platform.upstream.libbullet
eb6918d59f661c0e5b469d6e007f91a82d46a302
[ "Zlib" ]
null
null
null
Extras/RigidBodyGpuPipeline/opencl/primitives/AdlPrimitives/Sort/RadixSort32.inl
tizenorg/platform.upstream.libbullet
eb6918d59f661c0e5b469d6e007f91a82d46a302
[ "Zlib" ]
null
null
null
/* 2011 Takahiro Harada */ #define PATH "..\\..\\opencl\\primitives\\AdlPrimitives\\Sort\\RadixSort32Kernels" #define RADIXSORT32_KERNEL0 "StreamCountKernel" #define RADIXSORT32_KERNEL1 "PrefixScanKernel" #define RADIXSORT32_KERNEL2 "SortAndScatterKernel" #define RADIXSORT32_KERNEL3 "SortAndScatterKeyValueKernel" #d...
32.282421
165
0.701303
468fcc6d2ed9c2da8a6a448e880c86f2aa80fc2a
310
hpp
C++
src/FileSystemUtils.hpp
antmicro/ros-tracking-nodes-tester-node
878336dca10288e017665d2b2b9d075acecbf26b
[ "Apache-2.0" ]
null
null
null
src/FileSystemUtils.hpp
antmicro/ros-tracking-nodes-tester-node
878336dca10288e017665d2b2b9d075acecbf26b
[ "Apache-2.0" ]
null
null
null
src/FileSystemUtils.hpp
antmicro/ros-tracking-nodes-tester-node
878336dca10288e017665d2b2b9d075acecbf26b
[ "Apache-2.0" ]
null
null
null
#ifndef FILE_SYSTEM_UTILS #define FILE_SYSTEM_UTILS #include <string> #include <vector> namespace FileSystemUtils { inline bool endsWith(std::string const & value, std::string const & ending); void listFiles(std::string dir_path, std::vector<std::string> &files, std::string extension=""); } #endif
22.142857
100
0.73871
46919e1867b7bb36b75acf947a58b6309383024e
1,566
cc
C++
src/abc059/c.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
src/abc059/c.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
src/abc059/c.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll solve(int n, vector<ll> a) { ll sum = 0, count = 0; for(int i = 0; i < n; i++) { ll temp = sum + a[i]; if(i % 2 == 0) { if(temp > 0) { sum = temp; continue; } else { ...
23.727273
41
0.327586
46949531f8ddf132fb5010d55fba16a29d7c004e
7,478
cpp
C++
Simbody/tests/TestSmoothSphereHalfSpaceForce.cpp
e-schumann/simbody
4d8842270d5c400ef64cfd5723e0e0399161e51f
[ "Apache-2.0" ]
1,916
2015-01-01T09:35:21.000Z
2022-03-30T11:38:43.000Z
Simbody/tests/TestSmoothSphereHalfSpaceForce.cpp
e-schumann/simbody
4d8842270d5c400ef64cfd5723e0e0399161e51f
[ "Apache-2.0" ]
389
2015-01-01T01:13:51.000Z
2022-03-16T15:30:58.000Z
Simbody/tests/TestSmoothSphereHalfSpaceForce.cpp
e-schumann/simbody
4d8842270d5c400ef64cfd5723e0e0399161e51f
[ "Apache-2.0" ]
486
2015-01-02T10:25:49.000Z
2022-03-16T15:31:40.000Z
/* -------------------------------------------------------------------------- * * Simbody(tm) * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
44.778443
80
0.56606
4696fe7ded22d7a620a092d9bfb77c12dec81854
718
cpp
C++
L04-Railroad/Student_Code/Factory.cpp
tlyon3/CS235
2bdb8eaf66c9adbfe7ec59c0535852fd1cc30eda
[ "MIT" ]
1
2018-03-04T02:58:55.000Z
2018-03-04T02:58:55.000Z
L04-Railroad/Student_Code/Factory.cpp
tlyon3/CS235
2bdb8eaf66c9adbfe7ec59c0535852fd1cc30eda
[ "MIT" ]
1
2015-02-09T21:29:12.000Z
2015-02-09T21:32:06.000Z
L04-Railroad/Student_Code/Factory.cpp
tlyon3/CS235
2bdb8eaf66c9adbfe7ec59c0535852fd1cc30eda
[ "MIT" ]
4
2019-05-20T02:57:47.000Z
2021-02-11T15:41:15.000Z
#include "Factory.h" #include "station.h" //You may add #include statments here using namespace std; /* Unlike all other documents provided, you may modify this document slightly (but do not change its name) */ //======================================================================================= /* createStation...
31.217391
104
0.558496
469ae2939322e272ff45c6fe1f633df93b3137a6
373
hh
C++
LAMPS-HighEnergy/detector/LHNeutronScintArray.hh
ggfdsa10/KEBI_AT-TPC
40e00fcd10d3306b93fff93be5fb0988f87715a7
[ "MIT" ]
3
2021-05-24T19:43:30.000Z
2022-01-06T21:03:23.000Z
LAMPS-HighEnergy/detector/LHNeutronScintArray.hh
ggfdsa10/KEBI_AT-TPC
40e00fcd10d3306b93fff93be5fb0988f87715a7
[ "MIT" ]
4
2020-05-04T15:52:26.000Z
2021-09-13T10:51:03.000Z
LAMPS-HighEnergy/detector/LHNeutronScintArray.hh
ggfdsa10/KEBI_AT-TPC
40e00fcd10d3306b93fff93be5fb0988f87715a7
[ "MIT" ]
3
2020-06-14T10:53:58.000Z
2022-01-06T21:03:30.000Z
#ifndef LHNEUTRONSCINTARRAY_HH #define LHNEUTRONSCINTARRAY_HH #include "KBDetector.hh" class LHNeutronScintArray : public KBDetector { public: LHNeutronScintArray(); virtual ~LHNeutronScintArray() {}; virtual bool Init(); protected: virtual bool BuildGeometry(); virtual bool BuildDetectorPla...
16.954545
45
0.739946
46a09092cd0564f2523082aafc7e85aa138113b0
3,015
cpp
C++
src/drivers/Input/PS2MouseDriver.cpp
Unified-Projects/Unified-OS
89912adc1ed9ec35753fe0f4fa35f03d30ec66a2
[ "BSD-2-Clause" ]
null
null
null
src/drivers/Input/PS2MouseDriver.cpp
Unified-Projects/Unified-OS
89912adc1ed9ec35753fe0f4fa35f03d30ec66a2
[ "BSD-2-Clause" ]
null
null
null
src/drivers/Input/PS2MouseDriver.cpp
Unified-Projects/Unified-OS
89912adc1ed9ec35753fe0f4fa35f03d30ec66a2
[ "BSD-2-Clause" ]
null
null
null
#include <drivers/Input/PS2MouseDriver.h> using namespace UnifiedOS; using namespace UnifiedOS::Drivers; PS2MouseEventHandler::PS2MouseEventHandler(){ } PS2MouseEventHandler::~PS2MouseEventHandler(){ } void PS2MouseEventHandler::OnMouseDown(uint8_t button){ } void PS2MouseEventHandler::OnMouseUp(uint8_t button){ ...
24.314516
140
0.596352
46a259730f0a41dd17d84687e7e34ffb35ebbc7c
1,677
cpp
C++
MidiChannel.cpp
Madsy/libmidi
c271e991e9d6f762e81a8d2dbf7a5cd63973629d
[ "MIT" ]
5
2018-08-14T01:04:33.000Z
2021-07-15T22:13:45.000Z
MidiChannel.cpp
Madsy/libmidi
c271e991e9d6f762e81a8d2dbf7a5cd63973629d
[ "MIT" ]
4
2017-03-21T23:10:46.000Z
2017-03-21T23:19:55.000Z
MidiChannel.cpp
Madsy/libmidi
c271e991e9d6f762e81a8d2dbf7a5cd63973629d
[ "MIT" ]
null
null
null
// // Created by madsy on 22.03.17. // #include <algorithm> #include "MidiChannel.h" MidiChannel::MidiChannel() : pChannelIndex(0), pStartTick(0), pEndTick(0) { } MidiChannel::~MidiChannel() { } std::vector<std::shared_ptr<MidiEvent>> MidiChannel::getEventsWithinInterval(unsigned int startTick, unsigned int endTi...
26.619048
130
0.621944
46a38100725550a521f3db415b1ccaf992cbaa83
1,588
cpp
C++
Cpp/odin/odin.cpp
Deuanz/odin
da31a6bc8b9b4a0270f0807b588483840a24cf46
[ "BSL-1.0" ]
null
null
null
Cpp/odin/odin.cpp
Deuanz/odin
da31a6bc8b9b4a0270f0807b588483840a24cf46
[ "BSL-1.0" ]
null
null
null
Cpp/odin/odin.cpp
Deuanz/odin
da31a6bc8b9b4a0270f0807b588483840a24cf46
[ "BSL-1.0" ]
null
null
null
/* Copyright 2016-2017 Felspar Co Ltd. http://odin.felspar.com/ 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 <odin/odin.hpp> #include <odin/nonce.hpp> #include <fostgres/callback.hpp> ...
35.288889
89
0.630982
46a467cd6e2de7a95f4fef7ee57741d079069e60
9,543
cpp
C++
dali/tensor/op/cost.cpp
bzcheeseman/Dali
a77c7ce60b20ce150a5927747e128688657907eb
[ "MIT" ]
null
null
null
dali/tensor/op/cost.cpp
bzcheeseman/Dali
a77c7ce60b20ce150a5927747e128688657907eb
[ "MIT" ]
null
null
null
dali/tensor/op/cost.cpp
bzcheeseman/Dali
a77c7ce60b20ce150a5927747e128688657907eb
[ "MIT" ]
null
null
null
#include "cost.h" #include "dali/array/op/binary.h" #include "dali/array/op/unary.h" #include "dali/array/op/gather_from_rows.h" #include "dali/array/op/reducers.h" #include "dali/array/op/softmax.h" #include "dali/tensor/tape.h" #include "dali/utils/make_message.h" #include "dali/tensor/tensor_macros.h" namespace te...
43.180995
111
0.562192
46a6e16f9495c024a23c36ec0d97d124ebfb46f3
593
cpp
C++
vendor/mapbox-gl-native/vendor/mapbox-base/test/io_delete.cpp
aic-develop/vietmaps-gl-native-ios-source
c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
vendor/mapbox-gl-native/vendor/mapbox-base/test/io_delete.cpp
aic-develop/vietmaps-gl-native-ios-source
c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
vendor/mapbox-gl-native/vendor/mapbox-base/test/io_delete.cpp
aic-develop/vietmaps-gl-native-ios-source
c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
#include <mapbox/io.hpp> #include "io_delete.hpp" #include <cassert> #include <string> void deleteTests(const std::string& path, const std::string& copyPath, const std::string& invalidPath) { nonstd::expected<void, std::string> voidExpected; voidExpected = mapbox::base::io::deleteFile(path); assert(void...
28.238095
104
0.706577
46a7bca86ec9b994cc5976c29460d58adfaee694
550
hpp
C++
ex03/include/RobotomyRequestForm.hpp
42cursus-youkim/-Rank04-CPP-Module05
71244b25b1c9556dd4ec186e543c2a3e308d0036
[ "MIT" ]
null
null
null
ex03/include/RobotomyRequestForm.hpp
42cursus-youkim/-Rank04-CPP-Module05
71244b25b1c9556dd4ec186e543c2a3e308d0036
[ "MIT" ]
null
null
null
ex03/include/RobotomyRequestForm.hpp
42cursus-youkim/-Rank04-CPP-Module05
71244b25b1c9556dd4ec186e543c2a3e308d0036
[ "MIT" ]
null
null
null
#ifndef __ROBOTOMYREQUESTFORM_H__ #define __ROBOTOMYREQUESTFORM_H__ #include "Form.hpp" class RobotomyRequestForm : public Form { private: // Disabled Operators RobotomyRequestForm& operator=(const RobotomyRequestForm& assign); public: enum Requirement { SIGN = 72, EXEC = 45 }; // Constructors & Destructor...
23.913043
68
0.767273
9e51862fa22a4663a14bf23659084d2a25b8fc92
1,074
cpp
C++
solutions/LeetCode/C++/205.cpp
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
solutions/LeetCode/C++/205.cpp
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
solutions/LeetCode/C++/205.cpp
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 4 ms submission static int lambda_0 = []() { std::ios::sync_with_stdio(false); cin.tie(NULL); return 0; }(); class Solution { public: bool isIsomorphic(string s, string t) { int m1[256] ={0}, m2[256] = ...
30.685714
98
0.597765
9e56615e2ffd44d3ff32857a39c631984255f628
8,484
cp
C++
Linux/Sources/Application/Calendar/Calendar_View/Free_Busy_View/CFreeBusyTable.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
Linux/Sources/Application/Calendar/Calendar_View/Free_Busy_View/CFreeBusyTable.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
Linux/Sources/Application/Calendar/Calendar_View/Free_Busy_View/CFreeBusyTable.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007-2009 Cyrus Daboo. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unle...
26.933333
131
0.709335
9e598ab89a764c1ec62524703ed3067e2692fd1f
1,497
hh
C++
src/physics/JointFeedback.hh
nherment/gazebo
fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a
[ "ECL-2.0", "Apache-2.0" ]
5
2016-01-17T20:41:39.000Z
2018-05-01T12:02:58.000Z
src/physics/JointFeedback.hh
nherment/gazebo
fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/physics/JointFeedback.hh
nherment/gazebo
fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a
[ "ECL-2.0", "Apache-2.0" ]
5
2015-09-29T02:30:16.000Z
2022-03-30T12:11:22.000Z
/* * Copyright 2011 Nate Koenig & Andrew Howard * * 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 l...
25.372881
75
0.645291
9e5a23f8dff7b1550221b4624d554fa2a046fab9
400
cpp
C++
test/unit/math/prim/prob/bernoulli_ccdf_log_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
1
2020-06-14T14:33:37.000Z
2020-06-14T14:33:37.000Z
test/unit/math/prim/prob/bernoulli_ccdf_log_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
2
2019-07-23T12:45:30.000Z
2020-05-01T20:43:03.000Z
test/unit/math/prim/prob/bernoulli_ccdf_log_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
1
2020-05-10T12:55:07.000Z
2020-05-10T12:55:07.000Z
#include <stan/math/prim.hpp> #include <gtest/gtest.h> TEST(ProbBernoulli, ccdf_log_matches_lccdf) { int n = 1; double theta = 0.3; EXPECT_FLOAT_EQ((stan::math::bernoulli_lccdf(n, theta)), (stan::math::bernoulli_ccdf_log(n, theta))); EXPECT_FLOAT_EQ((stan::math::bernoulli_lccdf<double>(n, th...
30.769231
70
0.6525
9e5a44e311b394c612d80c73766e978ebcbf9759
5,009
hpp
C++
Linux/Ubuntu/64bit/AVAPI/Avapi/TECHNICAL_INDICATOR/AROONOSC.hpp
AvapiDotNet/AvapiCpp
2157ccbe750cac077098a6f1aa401d80fc943ff5
[ "MIT" ]
15
2018-01-31T16:58:36.000Z
2021-08-19T21:37:08.000Z
Linux/Ubuntu/64bit/AVAPI/Avapi/TECHNICAL_INDICATOR/AROONOSC.hpp
AvapiDotNet/AvapiCpp
2157ccbe750cac077098a6f1aa401d80fc943ff5
[ "MIT" ]
null
null
null
Linux/Ubuntu/64bit/AVAPI/Avapi/TECHNICAL_INDICATOR/AROONOSC.hpp
AvapiDotNet/AvapiCpp
2157ccbe750cac077098a6f1aa401d80fc943ff5
[ "MIT" ]
4
2018-01-31T17:06:26.000Z
2020-05-03T20:59:27.000Z
#ifndef AROONOSC_HPP_INCLUDED #define AROONOSC_HPP_INCLUDED #include <string> #include <map> #include <list> #include "../jsmn/jsmn.h" using namespace std; namespace Avapi { class RestClient; //forward declaration enum class Const_AROONOSC_interval{ none, n_1min, n_5min, n_15min, n_30min, n...
31.111801
104
0.743262
9e5d618715c325995cc920febbce9c21e04c9062
2,489
cpp
C++
code/tests/glx/src/main.cpp
BrightComposite/RaptureStateToolkit
6eb3c831540ba6a9d29e903dd3c537aac2e7f91f
[ "MIT" ]
null
null
null
code/tests/glx/src/main.cpp
BrightComposite/RaptureStateToolkit
6eb3c831540ba6a9d29e903dd3c537aac2e7f91f
[ "MIT" ]
null
null
null
code/tests/glx/src/main.cpp
BrightComposite/RaptureStateToolkit
6eb3c831540ba6a9d29e903dd3c537aac2e7f91f
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------------- #include <application/starter.h> //--------------------------------------------------------------------------- #include <X11/X.h> #include <X11/Xlib.h> #include <GL/gl.h> #include <GL/glx.h> #include <GL/glu.h> #include <iostream> //----...
23.261682
121
0.527923
9e5fed5b8db9931f8f0dca8131debee4179261a1
5,253
cpp
C++
tests/chain_tests/plugins/tags/get_posts_and_comments_tests.cpp
scorum/scorum
1da00651f2fa14bcf8292da34e1cbee06250ae78
[ "MIT" ]
53
2017-10-28T22:10:35.000Z
2022-02-18T02:20:48.000Z
tests/chain_tests/plugins/tags/get_posts_and_comments_tests.cpp
Scorum/Scorum
fb4aa0b0960119b97828865d7a5b4d0409af7876
[ "MIT" ]
38
2017-11-25T09:06:51.000Z
2018-10-31T09:17:22.000Z
tests/chain_tests/plugins/tags/get_posts_and_comments_tests.cpp
Scorum/Scorum
fb4aa0b0960119b97828865d7a5b4d0409af7876
[ "MIT" ]
27
2018-01-08T19:43:35.000Z
2022-01-14T10:50:42.000Z
#include <scorum/tags/tags_api_objects.hpp> #include <boost/test/unit_test.hpp> #include "tags_common.hpp" using namespace scorum; using namespace scorum::tags::api; using namespace scorum::app; using namespace scorum::tags; BOOST_FIXTURE_TEST_SUITE(get_posts_and_comments_tests, database_fixture::tags_fixture) SCOR...
31.08284
86
0.695031
9e618b77758ee753e3d33f0beaf5ff8aa3b9b031
614
cpp
C++
esp32/examples/ttgo_demo/main/system.cpp
joachimBurket/esp32-opencv
f485b59d7b43b0a2f77a5ab547e2597929f7094a
[ "BSD-3-Clause" ]
56
2020-03-24T15:17:56.000Z
2022-03-21T13:44:08.000Z
esp32/examples/ttgo_demo/main/system.cpp
0015/esp32-opencv
f485b59d7b43b0a2f77a5ab547e2597929f7094a
[ "BSD-3-Clause" ]
6
2021-03-08T13:41:24.000Z
2022-02-19T08:10:24.000Z
esp32/examples/ttgo_demo/main/system.cpp
0015/esp32-opencv
f485b59d7b43b0a2f77a5ab547e2597929f7094a
[ "BSD-3-Clause" ]
15
2020-05-06T13:41:20.000Z
2022-03-31T19:15:47.000Z
#include <esp_log.h> #include <esp_system.h> #include <sdkconfig.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <sys/param.h> #include <esp32/clk.h> #include "system.h" #define TAG "SYSTEM" void wait_msec(uint16_t v) { vTaskDelay(v / portTICK_PERIOD_MS); } void wait_sec(uint16_t v) { ...
21.928571
120
0.708469
9e622fd05f2006fc419715ae76d2647f62cbab3c
1,907
hpp
C++
include/vheis/geodesic-growth.hpp
alexbishop/Virtually-Abelian
4f19bf39e664a6ae51ef0c7f011e2fede7762d0c
[ "MIT" ]
null
null
null
include/vheis/geodesic-growth.hpp
alexbishop/Virtually-Abelian
4f19bf39e664a6ae51ef0c7f011e2fede7762d0c
[ "MIT" ]
null
null
null
include/vheis/geodesic-growth.hpp
alexbishop/Virtually-Abelian
4f19bf39e664a6ae51ef0c7f011e2fede7762d0c
[ "MIT" ]
null
null
null
#pragma once #include <map> #include <utility> #include <vector> #include "SafeInt.hpp" namespace vheis { template <class Group> class geodesic_growth { public: template <class Vector> explicit geodesic_growth(Vector g_set); template <class Iterator> explicit geodesic_growth(Iterator begin, Iterator end);...
23.54321
69
0.694284