hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
7795e0b81fa8628b39a413e6fd2280c73ad3e4a4
5,331
cpp
C++
PendingNameEngine/ModuleCamera3D.cpp
GuillemD/PendingNameEngine-3D
37454931f14b4b278de1d2898d032c822f754618
[ "MIT" ]
null
null
null
PendingNameEngine/ModuleCamera3D.cpp
GuillemD/PendingNameEngine-3D
37454931f14b4b278de1d2898d032c822f754618
[ "MIT" ]
null
null
null
PendingNameEngine/ModuleCamera3D.cpp
GuillemD/PendingNameEngine-3D
37454931f14b4b278de1d2898d032c822f754618
[ "MIT" ]
null
null
null
#include "Globals.h" #include "Application.h" #include "ModuleCamera3D.h" ModuleCamera3D::ModuleCamera3D(Application* app, bool start_enabled) : Module(start_enabled) { CalculateViewMatrix(); X = vec3(1.0f, 0.0f, 0.0f); Y = vec3(0.0f, 1.0f, 0.0f); Z = vec3(0.0f, 0.0f, 1.0f); Position = vec3(0.0f, 0.0f, 5.0f); ...
23.077922
147
0.575877
GuillemD
779d6a49473e5cd924aed42301cf8c3a5b2141a5
1,105
hh
C++
StRoot/StMcEvent/StMcIstSensorHitCollection.hh
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
2
2018-12-24T19:37:00.000Z
2022-02-28T06:57:20.000Z
StRoot/StMcEvent/StMcIstSensorHitCollection.hh
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
StRoot/StMcEvent/StMcIstSensorHitCollection.hh
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
/*************************************************************************** * * * Author: Amilkar Quintero, Feb 2015 *************************************************************************** * * Description: Monte Carlo Ist Sensor Hit Collection class * *******************************************************...
30.694444
98
0.591855
xiaohaijin
77a597b626f58e0cb7f31142297db939b03ec30f
5,539
cpp
C++
source/geometry/GeometryPermute.cpp
xhuan28/MNN
81df3a48d79cbc0b75251d12934345948866f7be
[ "Apache-2.0" ]
2
2020-12-15T13:56:31.000Z
2022-01-26T03:20:28.000Z
source/geometry/GeometryPermute.cpp
xhuan28/MNN
81df3a48d79cbc0b75251d12934345948866f7be
[ "Apache-2.0" ]
null
null
null
source/geometry/GeometryPermute.cpp
xhuan28/MNN
81df3a48d79cbc0b75251d12934345948866f7be
[ "Apache-2.0" ]
1
2021-11-24T06:26:27.000Z
2021-11-24T06:26:27.000Z
// // GeometryPermute.cpp // MNN // // Created by MNN on 2020/04/03. // Copyright © 2018, Alibaba Group Holding Limited // #include "geometry/GeometryComputer.hpp" #include "core/TensorUtils.hpp" namespace MNN { class GeometryPermute : public GeometryComputer { public: virtual bool onCompute(const Op* op, cons...
41.646617
113
0.501173
xhuan28
77a87c176ea569acdd576dd7abaf9b768be02a78
3,323
cpp
C++
src/dale/Form/Proc/Token/Token.cpp
ChengCat/dale
4a764895611679cd1670d9a43ffdbee136661759
[ "BSD-3-Clause" ]
1,083
2015-03-18T09:42:49.000Z
2022-03-29T03:17:47.000Z
src/dale/Form/Proc/Token/Token.cpp
ChengCat/dale
4a764895611679cd1670d9a43ffdbee136661759
[ "BSD-3-Clause" ]
195
2015-01-04T03:06:41.000Z
2022-03-18T18:16:27.000Z
src/dale/Form/Proc/Token/Token.cpp
ChengCat/dale
4a764895611679cd1670d9a43ffdbee136661759
[ "BSD-3-Clause" ]
56
2015-03-18T20:02:13.000Z
2022-01-22T19:35:27.000Z
#include "Token.h" #include <cstdio> #include <string> #include "../../../llvmUtils/llvmUtils.h" #include "../../Literal/Literal.h" using namespace dale::ErrorInst; namespace dale { void parseVariableLiteral(Context *ctx, llvm::BasicBlock *block, Node *node, bool get_address, ...
29.669643
72
0.543786
ChengCat
77aad21385da384b45e18359fea0eff151c200ad
6,998
hxx
C++
include/Mapper.hxx
broken-bytes/ControllerKit
1045d304c613455f3564d7d225b8a6ed90c8a48a
[ "MIT" ]
null
null
null
include/Mapper.hxx
broken-bytes/ControllerKit
1045d304c613455f3564d7d225b8a6ed90c8a48a
[ "MIT" ]
null
null
null
include/Mapper.hxx
broken-bytes/ControllerKit
1045d304c613455f3564d7d225b8a6ed90c8a48a
[ "MIT" ]
1
2020-12-03T09:55:03.000Z
2020-12-03T09:55:03.000Z
#pragma once #include <bitset> #include <map> #include <memory> #include <winrt/Windows.Gaming.Input.h> #include "ControllerKit.hxx" using namespace winrt::Windows::Gaming::Input; namespace BrokenBytes::ControllerKit::Mapping { /// <summary> /// Holds the raw bianry values for each DPad state on DualSense and Dual...
30.034335
92
0.698485
broken-bytes
77abc09d3d498a375ecdf687710e2fdcf7abf07f
8,389
cc
C++
tests/tone/tone.cc
eseidel/native_client_patches
c699f77e085b91fcc1684ecb63e2e211733afbde
[ "BSD-3-Clause" ]
4
2015-10-27T04:43:02.000Z
2021-08-13T08:21:45.000Z
tests/tone/tone.cc
eseidel/native_client_patches
c699f77e085b91fcc1684ecb63e2e211733afbde
[ "BSD-3-Clause" ]
null
null
null
tests/tone/tone.cc
eseidel/native_client_patches
c699f77e085b91fcc1684ecb63e2e211733afbde
[ "BSD-3-Clause" ]
1
2015-11-08T10:18:42.000Z
2015-11-08T10:18:42.000Z
/* * Copyright 2008 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ // NaCl audio tone demo // render a simple tone to the audio device for a couple seconds #include <errno.h> #include <math.h> #include <pth...
28.828179
76
0.631184
eseidel
77afdc74b135692b10b5fb01649286086cc1709b
1,872
cpp
C++
test/api/processors/unit-brightness.cpp
giautm/weserv-images
cee18376672cf37a1e5fed3ea05c85f7cfd5f5f5
[ "BSD-3-Clause" ]
826
2018-06-22T07:20:04.000Z
2022-03-31T21:52:34.000Z
test/api/processors/unit-brightness.cpp
giautm/weserv-images
cee18376672cf37a1e5fed3ea05c85f7cfd5f5f5
[ "BSD-3-Clause" ]
210
2018-06-18T15:50:12.000Z
2022-03-30T22:56:28.000Z
test/api/processors/unit-brightness.cpp
giautm/weserv-images
cee18376672cf37a1e5fed3ea05c85f7cfd5f5f5
[ "BSD-3-Clause" ]
121
2018-06-19T19:41:43.000Z
2022-03-20T19:20:29.000Z
#include <catch2/catch.hpp> #include "../base.h" #include "../similar_image.h" #include <vips/vips8> using Catch::Matchers::Equals; using vips::VImage; TEST_CASE("brightness", "[brightness]") { SECTION("increase") { auto test_image = fixtures->input_jpg; auto expected_image = fixture...
28.8
79
0.630342
giautm
77b3359f6740744239f4f502c8d07931b3ed1eec
994
cpp
C++
src/losses/MeanSquareLoss.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
src/losses/MeanSquareLoss.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
src/losses/MeanSquareLoss.cpp
AvocadoML/Avocado
9595cc5994d916f0ecb24873a5afa98437977fb5
[ "Apache-2.0" ]
null
null
null
/* * MeanSquareLoss.cpp * * Created on: Feb 16, 2021 * Author: Maciej Kozarzewski */ #include <Avocado/losses/MeanSquareLoss.hpp> #include <Avocado/core/Scalar.hpp> #include <Avocado/math/training.hpp> #include <Avocado/utils/json.hpp> #include <Avocado/utils/static_block.hpp> namespace avocado { static_b...
24.243902
125
0.739437
AvocadoML
77b38b5f9951d4f59d7dffe1272a9e9c5fe7ee3d
516
hpp
C++
include/RED4ext/Types/generated/FunctionalTestsGameEngine.hpp
Sombra0xCC/RED4ext.SDK
218b411991ed0b7cb7acd5efdddd784f31c66f20
[ "MIT" ]
1
2021-02-01T23:07:50.000Z
2021-02-01T23:07:50.000Z
include/RED4ext/Types/generated/FunctionalTestsGameEngine.hpp
Sombra0xCC/RED4ext.SDK
218b411991ed0b7cb7acd5efdddd784f31c66f20
[ "MIT" ]
null
null
null
include/RED4ext/Types/generated/FunctionalTestsGameEngine.hpp
Sombra0xCC/RED4ext.SDK
218b411991ed0b7cb7acd5efdddd784f31c66f20
[ "MIT" ]
null
null
null
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/CGameEngine.hpp> namespace RED4ext { struct FunctionalTestsGameEngine : CGameEngine { static constexpr const char* NAME = "Funct...
24.571429
68
0.765504
Sombra0xCC
77b59cf51dfa31407f6eef09986ac3ebff859f10
1,860
cpp
C++
clang-tools-extra/test/clang-tidy/checkers/modernize-use-noexcept-macro.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
clang-tools-extra/test/clang-tidy/checkers/modernize-use-noexcept-macro.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
clang-tools-extra/test/clang-tidy/checkers/modernize-use-noexcept-macro.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
// RUN: %check_clang_tidy -std=c++11,c++14 %s modernize-use-noexcept %t -- \ // RUN: -config="{CheckOptions: [{key: modernize-use-noexcept.ReplacementString, value: 'NOEXCEPT'}]}" \ // RUN: -- -fexceptions // This test is not run in C++17 or later because dynamic exception // specifications were removed in C++17. ...
47.692308
160
0.71828
medismailben
77b8dad5cca440350383b113d361b111af2ac779
1,289
cpp
C++
eclipse/sdblib/src/SDBString.cpp
ccpgh/example1
2c84b56455ce1cacac69db20b4081fc9c073270d
[ "MIT" ]
null
null
null
eclipse/sdblib/src/SDBString.cpp
ccpgh/example1
2c84b56455ce1cacac69db20b4081fc9c073270d
[ "MIT" ]
null
null
null
eclipse/sdblib/src/SDBString.cpp
ccpgh/example1
2c84b56455ce1cacac69db20b4081fc9c073270d
[ "MIT" ]
null
null
null
#include <algorithm> #include <functional> #include <cstring> #include <memory> #include "SDBString.h" namespace sdblib { std::string SDBString::ltrim(const std::string& string) { std::string s{string}; s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspac...
21.131148
78
0.647789
ccpgh
77b98cd865fcc85db3290e37cecf2f64851a2165
3,454
hpp
C++
include/cppdevtk/config/architecture.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
include/cppdevtk/config/architecture.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
include/cppdevtk/config/architecture.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// \file /// /// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n /// Licensed under the Apache License, Version 2.0 (the "License");\n /// you may not use this file e...
28.545455
126
0.644181
CoSoSys
77bc0f5ec6dfb2809e6ff538faf0161369f30dd2
184
cpp
C++
deltatags-test/test_global_string_free.cpp
vusec/deltapointers
cb9c376c00933ee756c5aaa079de7ca10e575322
[ "Apache-2.0" ]
40
2018-04-18T18:32:49.000Z
2022-01-21T17:43:59.000Z
deltatags-test/test_global_string_free.cpp
vusec/deltapointers
cb9c376c00933ee756c5aaa079de7ca10e575322
[ "Apache-2.0" ]
2
2019-04-02T08:06:48.000Z
2020-03-25T09:39:53.000Z
deltatags-test/test_global_string_free.cpp
vusec/deltapointers
cb9c376c00933ee756c5aaa079de7ca10e575322
[ "Apache-2.0" ]
4
2019-03-01T02:28:01.000Z
2022-01-01T11:03:45.000Z
#include <iostream> #include "deltatags.h" DEBUG_MODULE_NAME("test_global_string_free"); std::string s; int main(void) { printf("s @ %p\n", &s); s = "foo"; return 0; }
12.266667
45
0.619565
vusec
77c5503f7f07bc722fbdfc93fe3833bd108f0109
2,647
cpp
C++
src/db/block.cpp
WeeJang/fish-db
4dc50568e0f531c76b8f44e531d0db8e1f6d158a
[ "MIT" ]
2
2017-12-12T07:54:38.000Z
2021-12-21T15:17:36.000Z
src/db/block.cpp
WeeJang/fish-db
4dc50568e0f531c76b8f44e531d0db8e1f6d158a
[ "MIT" ]
null
null
null
src/db/block.cpp
WeeJang/fish-db
4dc50568e0f531c76b8f44e531d0db8e1f6d158a
[ "MIT" ]
null
null
null
#include "block.h" namespace db { void BlockData::write(const char* p_data, size_t data_size) { assert(data_size <= BLOCK_DATA_SIZE_LIMIT); init(); memcpy(data_, p_data, data_size); } // NOTE: this constexpr char Block::BLOCK_MAGIC_NUM[8]; void Block::dump(const std::string& filename) { strcpy(magic_num_, B...
29.087912
79
0.628636
WeeJang
77c5baafee105d09fac8520486b9e3c89aca1097
227
cpp
C++
PacManControllerAPI/src/conversion/CommandAdapter.cpp
BeardedPlatypus/PacMan
319e9776582cf9118b38c72d31855fb4c598e986
[ "MIT" ]
5
2019-12-23T22:45:46.000Z
2021-11-11T06:27:12.000Z
PacManControllerAPI/src/conversion/CommandAdapter.cpp
BeardedPlatypus/PacMan
319e9776582cf9118b38c72d31855fb4c598e986
[ "MIT" ]
null
null
null
PacManControllerAPI/src/conversion/CommandAdapter.cpp
BeardedPlatypus/PacMan
319e9776582cf9118b38c72d31855fb4c598e986
[ "MIT" ]
1
2021-11-11T06:27:14.000Z
2021-11-11T06:27:14.000Z
#include "pch.h" #include "conversion/CommandAdapter.h" namespace pacman { namespace controller { namespace api { CommandAdapter::CommandAdapter(std::unique_ptr<IControllerCommand> p_cmd) : p_cmd(std::move(p_cmd)) {} } } }
16.214286
102
0.748899
BeardedPlatypus
77c731cf41282d3b347a67fc41ca33fb1a05b294
7,070
cpp
C++
sedit.cpp
Llewellynvdm/id3
b6413124856b1eb170f81b2f66cecf1f13235673
[ "BSD-2-Clause" ]
108
2015-01-16T16:05:07.000Z
2022-03-31T12:13:51.000Z
sedit.cpp
Llewellynvdm/id3
b6413124856b1eb170f81b2f66cecf1f13235673
[ "BSD-2-Clause" ]
26
2015-05-27T00:00:51.000Z
2022-02-20T15:03:44.000Z
sedit.cpp
Llewellynvdm/id3
b6413124856b1eb170f81b2f66cecf1f13235673
[ "BSD-2-Clause" ]
11
2016-07-18T22:15:22.000Z
2022-03-13T00:45:31.000Z
#include <string> #include <vector> #include <algorithm> #include <cwctype> #include <cctype> #include "sedit.h" /* copyright (c) 2006 squell <squell@alumina.nl> use, modification, copying and distribution of this software is permitted under the conditions described in the file 'COPYING'. */ using namespace ...
26.984733
90
0.478784
Llewellynvdm
77c7819b3c13fea53fec5a361807dfb87884f2ea
957
hxx
C++
com/ole32/ih/clsctx.hxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
com/ole32/ih/clsctx.hxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
com/ole32/ih/clsctx.hxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1996. // // File: clsctx.hxx // // Contents: Defines special CLSCTX to for 16 bit processes // // History: 6-16-95 ricksa Created // ...
35.444444
99
0.564263
npocmaka
77ca9691407bb7d80b9af0329f3e9077fb1b3f33
2,356
cpp
C++
src/astar_core/utils.cpp
rvcgeeks/Chaser-game
081ff42e5f6fc5431964e94a16a37ce39f3a297a
[ "MIT" ]
null
null
null
src/astar_core/utils.cpp
rvcgeeks/Chaser-game
081ff42e5f6fc5431964e94a16a37ce39f3a297a
[ "MIT" ]
null
null
null
src/astar_core/utils.cpp
rvcgeeks/Chaser-game
081ff42e5f6fc5431964e94a16a37ce39f3a297a
[ "MIT" ]
null
null
null
/* ___________________________________________________________ * ____________<<<___#_R_V_C_G_E_E_K_S___>>>__________________ * CREATED BY #RVCGEEKS @PUNE for more rvchavadekar@gmail.com * * #RVCGEEKS chase game * created on 06.11.2018 * * this program reads a maze text file and initializes you and * enemy at r...
38.622951
105
0.519525
rvcgeeks
77cb5f26123c86c36196cccb48567d3827aaba4c
377
cpp
C++
src/services/process/config.cpp
ZhiQiAnSecFork/ssf
2caaaab4ef8def710f960b8ea96937f6a80fe060
[ "MIT" ]
1,364
2015-06-01T20:30:27.000Z
2022-03-31T20:55:50.000Z
src/services/process/config.cpp
ZhiQiAnSecFork/ssf
2caaaab4ef8def710f960b8ea96937f6a80fe060
[ "MIT" ]
93
2015-06-09T04:32:53.000Z
2022-03-08T21:23:02.000Z
src/services/process/config.cpp
ZhiQiAnSecFork/ssf
2caaaab4ef8def710f960b8ea96937f6a80fe060
[ "MIT" ]
238
2015-06-08T13:38:33.000Z
2022-03-25T00:30:39.000Z
#include "services/process/config.h" namespace ssf { namespace services { namespace process { Config::Config() : BaseServiceConfig(false), path_(""), args_("") {} Config::Config(const Config& process_service) : BaseServiceConfig(process_service.enabled()), path_(process_service.path_), args_(process_...
23.5625
68
0.697613
ZhiQiAnSecFork
77cd6560740b74eb056658a8309fa7d61fb11c3a
3,516
cpp
C++
test/utils/Configuration.cpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
2
2020-11-25T17:45:58.000Z
2021-12-21T02:01:16.000Z
test/utils/Configuration.cpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
null
null
null
test/utils/Configuration.cpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
1
2021-10-11T19:54:05.000Z
2021-10-11T19:54:05.000Z
#include <sstream> #include <gtest/gtest.h> #include "utils/Configuration.hpp" // Context for reading configuration from a string class ConfigOnePair : public Config::Reader { public: ConfigOnePair(const std::string &src) : Config::Reader(), src(src) {} bool pro...
27.685039
69
0.643629
hpc
77ce52941a47394c9e715143cdc9d25c574f6c93
542
cpp
C++
algo2.cpp
zyfjeff/utils_code
034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24
[ "Apache-2.0" ]
null
null
null
algo2.cpp
zyfjeff/utils_code
034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24
[ "Apache-2.0" ]
null
null
null
algo2.cpp
zyfjeff/utils_code
034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24
[ "Apache-2.0" ]
1
2020-02-21T17:16:50.000Z
2020-02-21T17:16:50.000Z
#include <cinttypes> #include <iostream> #include <vector> using namespace std; int main(int argc,char* argv[]) { using IntVector = vector<int32_t>; using IntVectorIterator = IntVector::iterator; IntVector myVector{5,0}; int32_t value{0}; for(IntVectorIterator iter = myVector.begin();iter != myVector.end();++it...
20.074074
76
0.671587
zyfjeff
77ce69163fc01cb61bc487c0a282f69b98d495be
2,070
hpp
C++
test/TestDatastore.hpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
2
2020-11-25T17:45:58.000Z
2021-12-21T02:01:16.000Z
test/TestDatastore.hpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
null
null
null
test/TestDatastore.hpp
hpc/hxhim
1a2224a200cb5a9fae33da13720e68beb5bee746
[ "BSD-3-Clause" ]
1
2021-10-11T19:54:05.000Z
2021-10-11T19:54:05.000Z
#ifndef TEST_DATASTORE_HPP #define TEST_DATASTORE_HPP #include <map> #include "datastore/datastore.hpp" const std::chrono::microseconds PUT_TIME(123); const std::chrono::microseconds GET_TIME(456); const uint64_t PUT_TIME_UINT64 = std::chrono::duration_cast<std::chrono::nanoseconds>(PUT_TIME).count(); const uint64_t...
35.084746
104
0.617391
hpc
77ced92f718fca42428fbce212ea5e795e76fcc1
1,189
cpp
C++
Trainin_Data_Creation/src/main.cpp
JonasMht/My_Neural_Nets
655e225181d608cb29f33edf26641c129771f94f
[ "MIT" ]
1
2020-12-12T08:23:35.000Z
2020-12-12T08:23:35.000Z
Trainin_Data_Creation/src/main.cpp
JonasMht/My_Neural_Nets
655e225181d608cb29f33edf26641c129771f94f
[ "MIT" ]
null
null
null
Trainin_Data_Creation/src/main.cpp
JonasMht/My_Neural_Nets
655e225181d608cb29f33edf26641c129771f94f
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <vector> #include <stdlib.h> #include <iomanip> // for lossless double to string conversion using namespace std; #define unigned int uint // Need to save the inputs and the wanted outputs void saveVector2D(fstream &file, vector<vector<double>> &vector2D) // vector2D[]...
20.152542
109
0.606392
JonasMht
77d1cad86ce76163266cb5a295f237fce8a7069d
12,383
cpp
C++
apiwznm/PnlWznmOpxRec.cpp
mpsitech/wznm-WhizniumSBE
4911d561b28392d485c46e98fb915168d82b3824
[ "MIT" ]
3
2020-09-20T16:24:48.000Z
2021-12-01T19:44:51.000Z
apiwznm/PnlWznmOpxRec.cpp
mpsitech/wznm-WhizniumSBE
4911d561b28392d485c46e98fb915168d82b3824
[ "MIT" ]
null
null
null
apiwznm/PnlWznmOpxRec.cpp
mpsitech/wznm-WhizniumSBE
4911d561b28392d485c46e98fb915168d82b3824
[ "MIT" ]
null
null
null
/** * \file PnlWznmOpxRec.cpp * API code for job PnlWznmOpxRec (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #include "PnlWznmOpxRec.h" using namespace std; using namespace Sbecore; usin...
30.425061
169
0.666801
mpsitech
77d3a08ffd6d2676363a5628eb2937446788ad1b
912
cpp
C++
Classes/SinOsc.cpp
e7mac/MKDSPKit
69d5a8c426556905f32bec65920f8ad94faadf84
[ "MIT" ]
1
2018-09-01T09:07:08.000Z
2018-09-01T09:07:08.000Z
Classes/SinOsc.cpp
e7mac/MKDSPKit
69d5a8c426556905f32bec65920f8ad94faadf84
[ "MIT" ]
null
null
null
Classes/SinOsc.cpp
e7mac/MKDSPKit
69d5a8c426556905f32bec65920f8ad94faadf84
[ "MIT" ]
null
null
null
// // SinOsc.cpp // DSPLibrary // // Created by Mayank on 9/11/12. // Copyright (c) 2012 Mayank Sanganeria. All rights reserved. // #include "SinOsc.h" SinOsc::SinOsc() { reset(); } void SinOsc::setSampleRate(double sampleRate) { _sampleRate = sampleRate; } void SinOsc::reset() { _phase = 0.0; } vo...
17.538462
69
0.676535
e7mac
77d40b4038acb963cf1598573f88f54bdf2cfdef
3,908
cc
C++
ai/DeepCoder/docker/DeepCoder/test/example-generator-test.cc
quanpan302/test
313c6e310be0ef608543c23bd52a5466047cd378
[ "Apache-2.0" ]
null
null
null
ai/DeepCoder/docker/DeepCoder/test/example-generator-test.cc
quanpan302/test
313c6e310be0ef608543c23bd52a5466047cd378
[ "Apache-2.0" ]
null
null
null
ai/DeepCoder/docker/DeepCoder/test/example-generator-test.cc
quanpan302/test
313c6e310be0ef608543c23bd52a5466047cd378
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <gtest/gtest.h> #include "example-generator.h" using namespace std; using namespace dsl; TEST(GenerateIntegerTest, MinMaxTest) { IntegerConstraint c; c.min = -10; c.max = 20; for (auto i = 0; i < 100; i++) { auto x = generate_integer(c); EXPECT_TRUE(x >= -...
24.734177
84
0.547595
quanpan302
77d57415ada825d8bcbb793de03e0056c4eea7e7
377
cpp
C++
TongueQT/TongueQT/src/ColorTable/Colortable.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
2
2020-03-28T03:15:49.000Z
2020-09-09T02:54:33.000Z
TongueQT/TongueQT/src/ColorTable/Colortable.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
null
null
null
TongueQT/TongueQT/src/ColorTable/Colortable.cpp
lrkk1234/TongueSimulation
347cf38452aa62d1173da1c4935f691456255e46
[ "MIT" ]
2
2020-09-08T19:28:19.000Z
2021-07-25T00:35:26.000Z
#include "Colortable.h" int getColor(int index, double* colors) { int tablesize = sizeof(colortable) / sizeof(float)/3; index %= tablesize; colors[0] = colortable[index * 3 + 0]; colors[1] = colortable[index * 3 + 1]; colors[2] = colortable[index * 3 + 2]; return 0; } int getColorSize() { int tablesize = sizeo...
19.842105
56
0.668435
lrkk1234
77d636a01dd3ac962f7cc3689ccda991d9924013
20,444
hpp
C++
old.sets.hpp
JanX2/red-black-and-interval-trees
4b78646b63ac95dfaac5c3756cfd1ebf4d165a32
[ "BSD-3-Clause" ]
null
null
null
old.sets.hpp
JanX2/red-black-and-interval-trees
4b78646b63ac95dfaac5c3756cfd1ebf4d165a32
[ "BSD-3-Clause" ]
1
2018-10-30T21:19:23.000Z
2018-10-30T21:19:23.000Z
old.sets.hpp
JanX2/red-black-and-interval-trees
4b78646b63ac95dfaac5c3756cfd1ebf4d165a32
[ "BSD-3-Clause" ]
null
null
null
// Note that until the bug in egcs-2.90.27 980315 (egcs-1.0.2 release) // gets fixed this file needs to be compiled with -fguiding-decls. // Trying to fix the warning caused by compiling without -fguiding-decls // causes an internal compiler error. #ifndef _INC_SETS_DOT_H #define _INC_SETS_DOT_H #include<stdio.h> ...
31.117199
86
0.676042
JanX2
77d8116ea7e5a093cc81d26f46dc2f89157d08f1
45,580
cpp
C++
PyCommon/externalLibs/gear/src/gsystem.cpp
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
60
2015-01-28T16:27:14.000Z
2022-01-27T05:09:02.000Z
PyCommon/externalLibs/gear/src/gsystem.cpp
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
PyCommon/externalLibs/gear/src/gsystem.cpp
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
11
2015-01-28T06:09:08.000Z
2021-01-30T03:28:17.000Z
// ------------------------------------------------------------------------------- // Copyright (c) 2012, Junggon Kim // 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. Redistrib...
31.896431
142
0.66029
hpgit
77da432c23e09b6a4ac4afd441916d22ff8287b9
6,210
cpp
C++
proj/2017-2018/p1/src/proj.cpp
Keyaku/ist-asa-projects
13bbbd2514f12a54d425d11d583c40f5e91ddb3f
[ "MIT" ]
null
null
null
proj/2017-2018/p1/src/proj.cpp
Keyaku/ist-asa-projects
13bbbd2514f12a54d425d11d583c40f5e91ddb3f
[ "MIT" ]
null
null
null
proj/2017-2018/p1/src/proj.cpp
Keyaku/ist-asa-projects
13bbbd2514f12a54d425d11d583c40f5e91ddb3f
[ "MIT" ]
null
null
null
/******************************* ASA - Grupo 3 ********************************* ** António Sarmento - 77906 ** Marta Simões - 81947 *******************************************************************************/ /* C++ Libraries. Only the bare minimum, no need for clutter */ #include <iostream> #include <list> #...
24.448819
96
0.581643
Keyaku
77da78662c025ba2b6db6c4ff67e4fdeadd85fb0
453
hpp
C++
src/include/XEUI/widgets/UIElement.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
11
2017-01-17T15:02:25.000Z
2020-11-27T16:54:42.000Z
src/include/XEUI/widgets/UIElement.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
9
2016-10-23T20:15:38.000Z
2018-02-06T11:23:17.000Z
src/include/XEUI/widgets/UIElement.hpp
devxkh/FrankE
72faca02759b54aaec842831f3c7a051e7cf5335
[ "MIT" ]
2
2019-08-29T10:23:51.000Z
2020-04-03T06:08:34.000Z
#ifndef UI_ELEMENT_HPP #define UI_ELEMENT_HPP #include <XEOSConfig.hpp> #include <XEUI/Object.hpp> #include <XESystem/XEMemory/XEMemoryPrerequisites.hpp> namespace XE { namespace UI { class UIElement : public Object { public: UIElement(Uint32 id) { mID = id; } Uint32 getID(){ return mID; } private: Uint32 mID...
16.178571
54
0.719647
devxkh
77db183fc2997ac7639d4ebb5ffc327993820c8d
14,127
cc
C++
content/renderer/mus/renderer_window_tree_client.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
content/renderer/mus/renderer_window_tree_client.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
content/renderer/mus/renderer_window_tree_client.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/mus/renderer_window_tree_client.h" #include <map> #include "base/command_line.h" #include "base/lazy_instance.h" #include "cc...
35.946565
80
0.709139
zipated
77dc4d0f84511377a00b22287cf6d593d2ce2937
4,053
hpp
C++
slope/slope/math/quat.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
6
2022-02-05T23:28:12.000Z
2022-02-24T11:08:04.000Z
slope/slope/math/quat.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
null
null
null
slope/slope/math/quat.hpp
muleax/slope
254138703163705b57332fc7490dd2eea0082b57
[ "MIT" ]
null
null
null
#pragma once #include "slope/math/vector4.hpp" namespace slope { class mat33; class mat44; class quat { public: static quat rotation(const vec3& axis, float angle); static quat shortest_arc(const vec3& from, const vec3& to, const vec3& spin_axis); constexpr quat() :...
31.418605
106
0.551443
muleax
77dfbed6d37fcd790ce6377d76109d8ae4e3a872
553
hpp
C++
src/apps/network_audio_streamer/options.hpp
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
17
2019-03-12T14:52:22.000Z
2021-11-09T01:16:23.000Z
src/apps/network_audio_streamer/options.hpp
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
null
null
null
src/apps/network_audio_streamer/options.hpp
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
2
2019-08-11T12:53:07.000Z
2021-06-22T10:08:08.000Z
/* Copyright Institute of Sound and Vibration Research - All rights reserved */ #ifndef VISR_APPS_AUDIO_NETWORK_STREAMER_OPTIONS_HPP_INCLUDED #define VISR_APPS_AUDIO_NETWORK_STREAMER_OPTIONS_HPP_INCLUDED #include <libapputilities/options.hpp> namespace visr { namespace apps { namespace audio_network_streamer { clas...
19.75
79
0.808318
s3a-spatialaudio
77e16b02aaedf975f2ca78edd6d0d33b4ad464ad
2,641
cpp
C++
FreeBSD/contrib/llvm/tools/lldb/source/Utility/UriParser.cpp
TigerBSD/FreeBSD-Custom-ThinkPad
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
4
2016-08-22T22:02:55.000Z
2017-03-04T22:56:44.000Z
FreeBSD/contrib/llvm/tools/lldb/source/Utility/UriParser.cpp
TigerBSD/FreeBSD-Custom-ThinkPad
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
21
2016-08-11T09:43:43.000Z
2017-01-29T12:52:56.000Z
FreeBSD/contrib/llvm/tools/lldb/source/Utility/UriParser.cpp
TigerBSD/TigerBSD
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
null
null
null
//===-- UriParser.cpp -------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
27.8
96
0.509277
TigerBSD
77e2fd9d0c627ab77e8b13803631165938a1d607
2,570
cpp
C++
src/vm/objects/class.cpp
mbeckem/tiro
b3d729fce46243f25119767c412c6db234c2d938
[ "MIT" ]
10
2020-01-23T20:41:19.000Z
2021-12-28T20:24:44.000Z
src/vm/objects/class.cpp
mbeckem/tiro
b3d729fce46243f25119767c412c6db234c2d938
[ "MIT" ]
22
2021-03-25T16:22:08.000Z
2022-03-17T12:50:38.000Z
src/vm/objects/class.cpp
mbeckem/tiro
b3d729fce46243f25119767c412c6db234c2d938
[ "MIT" ]
null
null
null
#include "vm/objects/class.hpp" #include "vm/context.hpp" #include "vm/handles/scope.hpp" #include "vm/math.hpp" #include "vm/object_support/factory.hpp" #include "vm/object_support/type_desc.hpp" #include "vm/objects/array.hpp" #include "vm/objects/hash_table.hpp" #include "vm/objects/string.hpp" namespace tiro::vm ...
31.728395
96
0.731128
mbeckem
77e6ec459efd277db5f79e49a1018eeb50d78e65
2,419
cpp
C++
src/material.cpp
dylangentile/path_tracer
6393bb806a30e377f5d12ffc5f61b004f5a7ce8e
[ "MIT" ]
null
null
null
src/material.cpp
dylangentile/path_tracer
6393bb806a30e377f5d12ffc5f61b004f5a7ce8e
[ "MIT" ]
null
null
null
src/material.cpp
dylangentile/path_tracer
6393bb806a30e377f5d12ffc5f61b004f5a7ce8e
[ "MIT" ]
null
null
null
#include "material.h" #include "object.h" Material::Material() { } Material::~Material(){} Color Material::emitted(double u, double v, const Point3& p) const { return Color(0.0, 0.0, 0.0); //by default materials don't emit light } Lambertian::Lambertian(const Color& a) : m_albedo(a) {} Lambertian::~Lambertian(){...
25.197917
100
0.710624
dylangentile
77e7b26d510a83dde1d86b0bdbbadda9d386e9e0
511
hpp
C++
include/ananasgfx/ui/design/material/ButtonFlat.hpp
pcbaecker/ananasgfx
0637554bf82b990713314a24e4a6ead299be949a
[ "MIT" ]
1
2019-01-28T13:48:17.000Z
2019-01-28T13:48:17.000Z
include/ananasgfx/ui/design/material/ButtonFlat.hpp
pcbaecker/ananasgfx
0637554bf82b990713314a24e4a6ead299be949a
[ "MIT" ]
11
2019-01-28T13:59:36.000Z
2019-02-09T14:59:23.000Z
include/ananasgfx/ui/design/material/ButtonFlat.hpp
pcbaecker/ananasgfx
0637554bf82b990713314a24e4a6ead299be949a
[ "MIT" ]
null
null
null
#ifndef UI_DESIGN_MATERIAL_BUTTONFLAT_H #define UI_DESIGN_MATERIAL_BUTTONFLAT_H #include <ananasgfx/ui/TextButton.hpp> namespace ui::design::material { class ButtonFlat : public ui::TextButton { public: std::optional<d2::Node *> getBackgroundBlur() noexcept override; std::optional<d2::Node *...
24.333333
80
0.726027
pcbaecker
77e81fbf96d6099a29923dc6e2af3fa670a1bafe
12,756
cpp
C++
nn_runtime/nnrt/memory_pool.cpp
phytec-mirrors/nn-imx
58525bf968e8d90004f6d782ad37cea28991a439
[ "MIT" ]
null
null
null
nn_runtime/nnrt/memory_pool.cpp
phytec-mirrors/nn-imx
58525bf968e8d90004f6d782ad37cea28991a439
[ "MIT" ]
null
null
null
nn_runtime/nnrt/memory_pool.cpp
phytec-mirrors/nn-imx
58525bf968e8d90004f6d782ad37cea28991a439
[ "MIT" ]
null
null
null
/**************************************************************************** * * Copyright (c) 2020 Vivante Corporation * * 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 ...
33.568421
107
0.597601
phytec-mirrors
77ed2059f1f007c7044f711d64248fa69c18f8b2
478
cpp
C++
Algorithms/Cpp-bubble_sort.cpp
IffatAzam/Ds-algo
2a864f8c1ad71c50730431ebb8f9ba4825e89aaa
[ "MIT" ]
6
2020-10-02T17:15:57.000Z
2020-10-11T21:09:28.000Z
Algorithms/Cpp-bubble_sort.cpp
IffatAzam/Ds-algo
2a864f8c1ad71c50730431ebb8f9ba4825e89aaa
[ "MIT" ]
5
2020-10-02T15:01:12.000Z
2020-10-20T04:55:41.000Z
Algorithms/Cpp-bubble_sort.cpp
IffatAzam/Ds-algo
2a864f8c1ad71c50730431ebb8f9ba4825e89aaa
[ "MIT" ]
28
2020-10-02T15:34:04.000Z
2020-10-29T03:29:08.000Z
#include <iostream> #include <vector> using namespace std; vector<int> bubble_sort(vector<int> arr) { int n=arr.size(); for (int i = 0; i < n-1; i++) { for (int j = i + 1; j < n; j++) { if (arr[i] > arr[j]) { int aux = arr[j]; arr[j] = arr[i]; arr[i] = aux; } } } return arr; } int ...
14.058824
55
0.481172
IffatAzam
77ed965e84bf66469c07af8082a8e32a67a12bcf
602
cpp
C++
src/URI_2061 - (4663412) - Accepted.cpp
miguelarauj1o/UOJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
80
2015-01-07T01:18:40.000Z
2021-05-04T15:23:18.000Z
src/URI_2061 - (4663412) - Accepted.cpp
miguelarauj1o/OJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
1
2019-01-07T01:13:32.000Z
2019-01-07T01:13:32.000Z
src/URI_2061 - (4663412) - Accepted.cpp
miguelarauj1o/OJ
eb195754829c42c3dcf1a68616e63da1386cb5a9
[ "MIT" ]
28
2015-03-05T11:53:23.000Z
2020-07-05T15:50:42.000Z
#include <iostream> #include <cstring> using namespace std; int main(int argc, char const *argv[]) { int n, m, sum = 0; string s; cin >> n >> m; sum = n; for (int i = 0; i < m; i++) { cin >> s; if (s == "fechou") sum++; else sum--; } cout << sum << endl; return 0; }#include <iostream>...
16.27027
41
0.498339
miguelarauj1o
77f36468b41e64c685ba3b62caac9c81f7d8e15d
587
cpp
C++
src/GameHost.cpp
nicoaw/netroids-prototype
ac8b4c75efc136fbd04f27bdb7cc028d5a02f06c
[ "MIT" ]
null
null
null
src/GameHost.cpp
nicoaw/netroids-prototype
ac8b4c75efc136fbd04f27bdb7cc028d5a02f06c
[ "MIT" ]
null
null
null
src/GameHost.cpp
nicoaw/netroids-prototype
ac8b4c75efc136fbd04f27bdb7cc028d5a02f06c
[ "MIT" ]
null
null
null
#include "GameHost.h" GameHost::GameHost() : time(0) { bounds.max = glm::vec2(400.0f, 300.0f); bounds.min = glm::vec2(-400.0f, -300.0f); /*input.forward = false; input.left = false; input.right = false;*/ } GameHost::~GameHost() { if (host != nullptr) enet_host_destroy(host); } void GameHost::flush() { en...
14.675
54
0.67121
nicoaw
af7ebdd6ca1dc2a99dfd1371018700892e4d9eb4
2,530
hxx
C++
include/usagi/http/exception.hxx
usagi/usagi
2d57d21eeb92eadfdf4154a3e470aebfc3e388e5
[ "MIT" ]
2
2016-11-20T04:59:17.000Z
2017-02-13T01:44:37.000Z
include/usagi/http/exception.hxx
usagi/usagi
2d57d21eeb92eadfdf4154a3e470aebfc3e388e5
[ "MIT" ]
3
2015-09-28T12:00:02.000Z
2015-09-28T12:03:21.000Z
include/usagi/http/exception.hxx
usagi/usagi
2d57d21eeb92eadfdf4154a3e470aebfc3e388e5
[ "MIT" ]
3
2017-07-02T06:09:47.000Z
2018-07-09T01:00:57.000Z
#pragma once #include <stdexcept> #include <string> namespace usagi::http { struct http_error : std::runtime_error { static constexpr unsigned redirection_count_over_value = 996u; static constexpr unsigned response_has_no_location_header_value = 997u; static constexpr unsigned response_ha...
39.53125
88
0.647431
usagi
af7f33c21a06dae6922403607fb573c63d4ca03f
2,478
cc
C++
tests/sync/oneshot.cc
ddxy18/xyco
7682652f17b82e2370fa7af17635c5d0c470efe0
[ "MIT" ]
null
null
null
tests/sync/oneshot.cc
ddxy18/xyco
7682652f17b82e2370fa7af17635c5d0c470efe0
[ "MIT" ]
17
2021-10-30T06:10:46.000Z
2022-03-18T06:16:15.000Z
tests/sync/oneshot.cc
ddxy18/xyco
7682652f17b82e2370fa7af17635c5d0c470efe0
[ "MIT" ]
null
null
null
#include "sync/oneshot.h" #include <gtest/gtest.h> #include <unistd.h> #include <chrono> #include <thread> #include <utility> #include "utils.h" TEST(OneshotTest, success) { TestRuntimeCtx::co_run([]() -> xyco::runtime::Future<void> { auto [sender, receiver] = xyco::sync::oneshot::channel<int>(); auto sen...
27.842697
71
0.658999
ddxy18
af7f9709d1dc21350c587768a1b21f5d62e9bc97
3,984
cpp
C++
src/aimp_dotnet/SDK/MusicLibrary/AimpFileList.cpp
Smartoteka/aimp_dotnet
544502b8d080c9280ba11917ef0cc3e8dec44234
[ "Apache-2.0" ]
52
2015-04-14T14:39:30.000Z
2022-02-07T07:16:05.000Z
src/aimp_dotnet/SDK/MusicLibrary/AimpFileList.cpp
Smartoteka/aimp_dotnet
544502b8d080c9280ba11917ef0cc3e8dec44234
[ "Apache-2.0" ]
11
2015-04-02T10:45:55.000Z
2022-02-03T07:21:53.000Z
src/aimp_dotnet/SDK/MusicLibrary/AimpFileList.cpp
Smartoteka/aimp_dotnet
544502b8d080c9280ba11917ef0cc3e8dec44234
[ "Apache-2.0" ]
9
2015-04-05T18:25:57.000Z
2022-02-07T07:20:23.000Z
// ---------------------------------------------------- // AIMP DotNet SDK // Copyright (c) 2014 - 2020 Evgeniy Bogdan // https://github.com/martin211/aimp_dotnet // Mail: mail4evgeniy@gmail.com // ---------------------------------------------------- #include "Stdafx.h" #include "AimpFileList.h" using namespace AIMP...
27.102041
112
0.634287
Smartoteka
af863aa0c5412c7f5ca9f7159916a0a14fd4f706
5,658
cpp
C++
ws/ws_cobra_to_statsd.cpp
matt-deboer/IXWebSocket
779b1e6077e909f64e5ff2569876f29f4d33da46
[ "BSD-3-Clause" ]
null
null
null
ws/ws_cobra_to_statsd.cpp
matt-deboer/IXWebSocket
779b1e6077e909f64e5ff2569876f29f4d33da46
[ "BSD-3-Clause" ]
null
null
null
ws/ws_cobra_to_statsd.cpp
matt-deboer/IXWebSocket
779b1e6077e909f64e5ff2569876f29f4d33da46
[ "BSD-3-Clause" ]
null
null
null
/* * ws_cobra_to_statsd.cpp * Author: Benjamin Sergeant * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. */ #include <atomic> #include <chrono> #include <iostream> #include <ixcobra/IXCobraConnection.h> #include <spdlog/spdlog.h> #include <sstream> #include <thread> #include <vector> #ifndef _WIN32...
33.47929
98
0.454578
matt-deboer
af88b6e751960f69fa8adb0c1f3537c8e0d4b4e9
13,509
cc
C++
engine/game/gameBase.cc
ClayHanson/B4v21-Public-Repo
c812aa7bf2ecb267e02969c85f0c9c2a29be0d28
[ "MIT" ]
1
2020-08-18T19:45:34.000Z
2020-08-18T19:45:34.000Z
engine/game/gameBase.cc
ClayHanson/B4v21-Launcher-Public-Repo
c812aa7bf2ecb267e02969c85f0c9c2a29be0d28
[ "MIT" ]
null
null
null
engine/game/gameBase.cc
ClayHanson/B4v21-Launcher-Public-Repo
c812aa7bf2ecb267e02969c85f0c9c2a29be0d28
[ "MIT" ]
null
null
null
//----------------------------------------------------------------------------- // Torque Game Engine // Copyright (C) GarageGames.com, Inc. //----------------------------------------------------------------------------- #include "platform/platform.h" #include "game/gameBase.h" #include "console/consoleTypes.h" #inclu...
26.028902
116
0.578873
ClayHanson
af89c1de559be83ecbc03f0d3be755ad7582c4bf
318
cpp
C++
src/vedaEMailClient/settings_account.cpp
vedatech/Veda_platform
5592cb0e43666b04df12eed1849a2a655de6feff
[ "MIT" ]
null
null
null
src/vedaEMailClient/settings_account.cpp
vedatech/Veda_platform
5592cb0e43666b04df12eed1849a2a655de6feff
[ "MIT" ]
null
null
null
src/vedaEMailClient/settings_account.cpp
vedatech/Veda_platform
5592cb0e43666b04df12eed1849a2a655de6feff
[ "MIT" ]
null
null
null
#include "settings_account.h" #include "ui_settings_account.h" settings_account::settings_account(QWidget *parent) : QWidget(parent), ui(new Ui::settings_account) { ui->setupUi(this); //beta ui->clear_local_address_book_Button->hide(); } settings_account::~settings_account() { delete ui; }
17.666667
53
0.710692
vedatech
af8b5388b83ebb64d70e21280f9f3a1aac2fb0da
1,686
cpp
C++
exceldna/Libs/Bemu/BEmu_cpp/src/HistoricalDataRequest/HistoricElement.cpp
red2901/sandbox
fae6c1624cc9957593d030f3b0306dbded29f0a2
[ "MIT" ]
1
2016-05-16T02:27:46.000Z
2016-05-16T02:27:46.000Z
exceldna/Libs/Bemu/BEmu_cpp/src/HistoricalDataRequest/HistoricElement.cpp
red2901/sandbox
fae6c1624cc9957593d030f3b0306dbded29f0a2
[ "MIT" ]
null
null
null
exceldna/Libs/Bemu/BEmu_cpp/src/HistoricalDataRequest/HistoricElement.cpp
red2901/sandbox
fae6c1624cc9957593d030f3b0306dbded29f0a2
[ "MIT" ]
null
null
null
//------------------------------------------------------------------------------ // <copyright project="BEmu_cpp" file="src/HistoricalDataRequest/HistoricElement.cpp" company="Jordan Robinson"> // Copyright (c) 2013 Jordan Robinson. All rights reserved. // // The use of this software is governed by the Microso...
23.416667
112
0.642349
red2901
af8bd51ac60d96ba5167d9e684a6b64744e214e6
1,002
hpp
C++
libs/core/render/include/bksge/core/render/gl/detail/sampler.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/core/render/include/bksge/core/render/gl/detail/sampler.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/core/render/include/bksge/core/render/gl/detail/sampler.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file sampler.hpp * * @brief Sampler クラスの定義 * * @author myoukaku */ #ifndef BKSGE_CORE_RENDER_GL_DETAIL_SAMPLER_HPP #define BKSGE_CORE_RENDER_GL_DETAIL_SAMPLER_HPP #include <bksge/core/render/gl/detail/fwd/sampler_fwd.hpp> #include <bksge/core/render/gl/detail/gl_h.hpp> #include <bksge/core/...
17.275862
59
0.699601
myoukaku
af8ca990220f75bca38fb154debb8ec8f7d3b3e9
390
cpp
C++
zerojudge_code/a007-1.cpp
SeanHsu-pub/zerojudge_practice
97061bb7e313541a46fbb2f9b7a401563ada3fda
[ "MIT" ]
null
null
null
zerojudge_code/a007-1.cpp
SeanHsu-pub/zerojudge_practice
97061bb7e313541a46fbb2f9b7a401563ada3fda
[ "MIT" ]
null
null
null
zerojudge_code/a007-1.cpp
SeanHsu-pub/zerojudge_practice
97061bb7e313541a46fbb2f9b7a401563ada3fda
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define endl "\n" using namespace std; int main(void){ int n=0; vector<int> a; a.push_back(2); for(int i=3; i<=2147483647; i++){ bool is=false; for(int j=0; j<a.size(); j++){ if(i%a[j]==0){ is=true; } } if(is==false){ a.push_back(i); } } for(vector<int>::iterator it=...
16.25
60
0.54359
SeanHsu-pub
af8f159bb5e91d406798887762d41794f0475a92
1,146
cpp
C++
src/engine/components/text.cpp
Pfeifenjoy/Theseus
9b427c16deaaacfff2e174e3dd133feed9724d3b
[ "MIT" ]
6
2016-10-28T15:39:09.000Z
2019-04-16T09:00:03.000Z
src/engine/components/text.cpp
Pfeifenjoy/Theseus
9b427c16deaaacfff2e174e3dd133feed9724d3b
[ "MIT" ]
null
null
null
src/engine/components/text.cpp
Pfeifenjoy/Theseus
9b427c16deaaacfff2e174e3dd133feed9724d3b
[ "MIT" ]
6
2017-02-22T17:25:32.000Z
2021-02-03T19:17:06.000Z
/** * @author Philipp Pütz */ #include "text.hpp" using namespace theseus::engine::components; sf::Font& Text::font() { // Load font file, if it's not loaded static bool loaded = false; static sf::Font actual_font; if (!loaded) { if (!actual_font.loadFromFile("./resources/fonts/arial.ttf")) { throw std::...
17.104478
63
0.688482
Pfeifenjoy
af9032de1978905748451f7c6549397ef9950e12
4,076
hxx
C++
main/sw/source/filter/html/htmlfly.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sw/source/filter/html/htmlfly.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sw/source/filter/html/htmlfly.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
30.41791
84
0.761776
Grosskopf
af97284edc1e06cd209fe95b68d6ca65cc671169
999
hpp
C++
ares/n64/ai/ai.hpp
moon-chilled/Ares
909fb098c292f8336d0502dc677050312d8b5c81
[ "0BSD" ]
7
2020-07-25T11:44:39.000Z
2021-01-29T13:21:31.000Z
ares/n64/ai/ai.hpp
jchw-forks/ares
d78298a1e95fd0ce65feabfd4f13b60e31210a7a
[ "0BSD" ]
null
null
null
ares/n64/ai/ai.hpp
jchw-forks/ares
d78298a1e95fd0ce65feabfd4f13b60e31210a7a
[ "0BSD" ]
1
2021-03-22T16:15:30.000Z
2021-03-22T16:15:30.000Z
//Audio Interface struct AI : Thread, Memory::IO<AI> { Node::Component node; Node::Stream stream; struct Debugger { //debugger.cpp auto load(Node::Object) -> void; auto io(string_view) -> void; struct Tracer { Node::Notification io; } tracer; } debugger; //ai.cpp auto load(Node...
18.849057
48
0.595596
moon-chilled
af98550e21c78ddadca91514a494785f60806f6f
15,363
cpp
C++
src/data_manipulation.cpp
fenguoerbian/seurat
ca69686e741b3b0d72debd182dbacdb5e81e58c1
[ "MIT" ]
1,507
2015-05-28T16:02:47.000Z
2022-03-31T22:08:42.000Z
src/data_manipulation.cpp
fenguoerbian/seurat
ca69686e741b3b0d72debd182dbacdb5e81e58c1
[ "MIT" ]
5,186
2015-10-21T15:08:58.000Z
2022-03-31T23:38:29.000Z
src/data_manipulation.cpp
fenguoerbian/seurat
ca69686e741b3b0d72debd182dbacdb5e81e58c1
[ "MIT" ]
857
2015-05-28T16:03:42.000Z
2022-03-31T10:04:51.000Z
#include <RcppEigen.h> #include <progress.hpp> #include <cmath> #include <unordered_map> #include <fstream> #include <string> #include <Rinternals.h> using namespace Rcpp; // [[Rcpp::depends(RcppEigen)]] // [[Rcpp::depends(RcppProgress)]] // [[Rcpp::export]] Eigen::SparseMatrix<double> RunUMISampling(Eigen::SparseM...
33.03871
188
0.596303
fenguoerbian
af99fe7f95aae2d47ee282d24a85f696eceb1cda
2,237
cpp
C++
sakura_core/env/CTagJumpManager.cpp
HoppingTappy/sakura
a2db8d55911af12f8364c4ff744d5ded3ce5643b
[ "Zlib" ]
953
2018-05-20T07:09:12.000Z
2022-03-30T13:23:38.000Z
sakura_core/env/CTagJumpManager.cpp
HoppingTappy/sakura
a2db8d55911af12f8364c4ff744d5ded3ce5643b
[ "Zlib" ]
1,679
2018-05-21T05:44:34.000Z
2022-03-28T04:19:31.000Z
sakura_core/env/CTagJumpManager.cpp
HoppingTappy/sakura
a2db8d55911af12f8364c4ff744d5ded3ce5643b
[ "Zlib" ]
190
2018-05-23T02:53:34.000Z
2022-03-11T08:35:54.000Z
/*! @file */ /* 2008.05.18 kobake CShareData から分離 */ /* Copyright (C) 2008, kobake Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. ...
26.630952
90
0.750112
HoppingTappy
af9bf362f81065ad70a1ae3e61a68eb8a0aa224d
2,154
cpp
C++
wliotproxy-src-base/libVDIL/src/xml/SubProgramInternalBlocksParser.cpp
ooolms/wl_iot_framework
77f5d577105d505fd1c5a21940f29b72eb3391ea
[ "Apache-2.0" ]
null
null
null
wliotproxy-src-base/libVDIL/src/xml/SubProgramInternalBlocksParser.cpp
ooolms/wl_iot_framework
77f5d577105d505fd1c5a21940f29b72eb3391ea
[ "Apache-2.0" ]
null
null
null
wliotproxy-src-base/libVDIL/src/xml/SubProgramInternalBlocksParser.cpp
ooolms/wl_iot_framework
77f5d577105d505fd1c5a21940f29b72eb3391ea
[ "Apache-2.0" ]
null
null
null
/******************************************* Copyright 2017 OOO "LMS" 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 ...
36.508475
102
0.788765
ooolms
af9dd2f9668caba5af36adb5bd1ed4fa54bfd745
12,367
cpp
C++
src/core/Grid.cpp
XiyuChenFAU/kgs_vibration_entropy
117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9
[ "MIT" ]
1
2020-05-23T18:26:14.000Z
2020-05-23T18:26:14.000Z
src/core/Grid.cpp
XiyuChenFAU/kgs_vibration_entropy
117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9
[ "MIT" ]
8
2017-01-26T19:54:38.000Z
2021-02-06T16:06:30.000Z
src/core/Grid.cpp
XiyuChenFAU/kgs_vibration_entropy
117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9
[ "MIT" ]
null
null
null
/* Excited States software: KGS Contributors: See CONTRIBUTORS.txt Contact: kgs-contact@simtk.org Copyright (C) 2009-2017 Stanford University 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 with...
43.85461
181
0.663621
XiyuChenFAU
afa004e0d0efc3a92861114cfbc1bb7cdd34ff00
2,101
cpp
C++
orderlistwidget.cpp
jianjustin/qt-emarket
e21e3df2dfd858d3c178683ca328e8b0df2f92c5
[ "MIT" ]
1
2019-12-23T06:56:34.000Z
2019-12-23T06:56:34.000Z
orderlistwidget.cpp
jianjustin/qt-emarket
e21e3df2dfd858d3c178683ca328e8b0df2f92c5
[ "MIT" ]
1
2019-12-23T06:55:57.000Z
2019-12-23T06:55:57.000Z
orderlistwidget.cpp
jianjustin/qt-emarket
e21e3df2dfd858d3c178683ca328e8b0df2f92c5
[ "MIT" ]
null
null
null
#include "orderlistwidget.h" /** * 订单模块 */ OrderListWidget::OrderListWidget(QMainWindow *mainWindow,QWidget *parent) : QWidget(parent) { //显示订单列表 mainWindow->setWindowTitle("e电子商城系统 - 订单"); //按钮组 showButton = new QPushButton("订单详情"); addButton = new QPushButton("添加订单"); connect(addButton,SIG...
24.149425
91
0.700143
jianjustin
afa9b0d667cdb05843073b61a1659cdf2b7f2423
3,105
cpp
C++
main.cpp
Qengineering/Face-detection-Landmark-Raspberry-Pi-32-64-bits
0ec1a6a5287aceab34d5f0f089ebd1f4052b13db
[ "BSD-3-Clause" ]
3
2021-02-24T00:11:38.000Z
2021-02-24T18:28:28.000Z
main.cpp
Qengineering/Face-detection-Landmark-Raspberry-Pi-32-64-bits
0ec1a6a5287aceab34d5f0f089ebd1f4052b13db
[ "BSD-3-Clause" ]
null
null
null
main.cpp
Qengineering/Face-detection-Landmark-Raspberry-Pi-32-64-bits
0ec1a6a5287aceab34d5f0f089ebd1f4052b13db
[ "BSD-3-Clause" ]
1
2021-05-14T01:10:11.000Z
2021-05-14T01:10:11.000Z
#include <iostream> #include <opencv2/opencv.hpp> #include "FaceDetector.h" using namespace std; int main(int argc, char **argv) { float f; float FPS[16]; int i, Fcnt=0; cv::Mat frame; const int max_side = 320; //some timing chrono::steady_clock::time_point Tbegin, Tend; for(i=0...
38.333333
169
0.561031
Qengineering
afad74146eedc9507cd1eeaee63132b546cb7f43
2,046
cpp
C++
Net/ThreadPool.cpp
Txhua/IOLoop
710fb914ac7fd65a874e2866f0f38ab38b7858f3
[ "Apache-2.0" ]
null
null
null
Net/ThreadPool.cpp
Txhua/IOLoop
710fb914ac7fd65a874e2866f0f38ab38b7858f3
[ "Apache-2.0" ]
2
2021-08-23T06:24:32.000Z
2021-08-23T06:27:31.000Z
Net/ThreadPool.cpp
Txhua/IOLoop
710fb914ac7fd65a874e2866f0f38ab38b7858f3
[ "Apache-2.0" ]
null
null
null
#include "ThreadPool.h" #include <assert.h> #include <glog/logging.h> namespace IOEvent { ThreadPool::ThreadPool(const std::string &name) :name_(name), maxQueueSize_(0), runing_(false) { } ThreadPool::~ThreadPool() { if (runing_) { stop(); } } void ThreadPool::setmaxQueueSize(int32_t m...
17.193277
98
0.596774
Txhua
afaeb4cf923ab10813b6c602619d6c3667cb389b
1,660
cpp
C++
src/modules/transitions/src/methods/eases.cpp
P8P-7/core
820873e7da867392729b2e65922205afe98e41d8
[ "MIT" ]
4
2018-04-16T17:56:25.000Z
2018-06-22T17:02:26.000Z
src/modules/transitions/src/methods/eases.cpp
P8P-7/core
820873e7da867392729b2e65922205afe98e41d8
[ "MIT" ]
1
2018-05-07T11:05:26.000Z
2018-05-07T11:06:52.000Z
src/modules/transitions/src/methods/eases.cpp
P8P-7/core
820873e7da867392729b2e65922205afe98e41d8
[ "MIT" ]
1
2018-05-07T11:04:15.000Z
2018-05-07T11:04:15.000Z
#include <goliath/transitions/methods/eases.h> #include <cmath> double goliath::transitions::methods::easeInQuad(double value) { return std::pow(value, 2); } double goliath::transitions::methods::easeOutQuad(double value) { return value * (2 - value); } double goliath::transitions::methods::easeInOutQuad(do...
29.642857
102
0.663855
P8P-7
afaf420c56422e9a2bb396d248c2f85d4848be81
1,035
cpp
C++
LuckyPurchase/LuckyPurchase.cpp
HPCCS/Computation-Kernel-Dataset
5a184c7846c1abff39426a7f53fb837de8ba36e3
[ "MIT" ]
1
2019-05-03T19:37:24.000Z
2019-05-03T19:37:24.000Z
LuckyPurchase/LuckyPurchase.cpp
HPCCS/Computation-Kernel-Dataset
5a184c7846c1abff39426a7f53fb837de8ba36e3
[ "MIT" ]
null
null
null
LuckyPurchase/LuckyPurchase.cpp
HPCCS/Computation-Kernel-Dataset
5a184c7846c1abff39426a7f53fb837de8ba36e3
[ "MIT" ]
null
null
null
// problem statement is in https://www.hackerrank.com/contests/w35/challenges/lucky-purchase/problem #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { freopen("../input_files/LuckyPurchase", "r", stdin); /* Ent...
19.528302
100
0.439614
HPCCS
afaf790c6680da8ae9323b40e16a04b9b48f024f
693
hpp
C++
math/mod_sqrt.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
math/mod_sqrt.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
math/mod_sqrt.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
#include<tuple> #include"mod_pow.hpp" #include"../util/random_gen.hpp" /** * @brief ModSqrt */ long long mod_sqrt(long long a,long long mod){ if(mod==2||a==0)return a; if(mod_pow(a,(mod-1)/2,mod)!=1)return -1; if(mod%4==3)return mod_pow(a,(mod+1)/4,mod); long long q=(mod-1),s=0; while(q%2==0)q/=...
28.875
82
0.580087
hotman78
afb2c1e102f49c56caf64e4c4f1d6017528cdcc6
856
cpp
C++
examples/google-code-jam/hustsxh/b.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/hustsxh/b.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
examples/google-code-jam/hustsxh/b.cpp
rbenic-fer/progauthfp
d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675
[ "MIT" ]
null
null
null
#include <cstdio> #include <iostream> using namespace std; int a[100][100]; bool check(int n, int m) { for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { bool col = false, row = false; for (int k = 0; k < n; ++k) { if (a[k][j] > a[i][j]) { col = true; } } for (int k = 0; k < m; +...
15.563636
35
0.421729
rbenic-fer
afb79d17d58c174ca2f05fedbd04bc514b0c9f29
262
cc
C++
L1Trigger/L1TMuonEndCap/src/PtRefinementUnit.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TMuonEndCap/src/PtRefinementUnit.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TMuonEndCap/src/PtRefinementUnit.cc
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
#include "L1Trigger/L1TMuonEndCap/interface/PtRefinementUnit.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" using namespace L1TMuon; PtRefinementUnit::PtRefinementUnit(const edm::ParameterSet& ps): _name(ps.getParameter<std::string>("name")) { }
29.111111
64
0.79771
pasmuss
afba7af28b6baf16e0a27136767fac7641214f47
14,519
cc
C++
modules/common/src/elf.cc
eryjus/centuryos2
526a39c0f434b29a43d85e6b5b1ffa1ced885b25
[ "BSD-3-Clause" ]
null
null
null
modules/common/src/elf.cc
eryjus/centuryos2
526a39c0f434b29a43d85e6b5b1ffa1ced885b25
[ "BSD-3-Clause" ]
null
null
null
modules/common/src/elf.cc
eryjus/centuryos2
526a39c0f434b29a43d85e6b5b1ffa1ced885b25
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************************************************//** * @file elf.cc * @brief Handle the loading of an ELF file * @author Adam Clark (hobbyos@eryjus.com) * @date 2021-Jan-04 * @since ...
44.400612
117
0.347131
eryjus
afbcb634b16cb6fdd0f460d10b9741487ac6f087
7,519
cpp
C++
libairt/aerotoolsGimbalMessageProcessor.cpp
AiRT-Software/ocs
2d6056a1260ac9ac75cfd507fb1a77db3b26298a
[ "BSD-4-Clause" ]
1
2019-02-07T12:24:51.000Z
2019-02-07T12:24:51.000Z
libairt/aerotoolsGimbalMessageProcessor.cpp
AiRT-Software/ocs
2d6056a1260ac9ac75cfd507fb1a77db3b26298a
[ "BSD-4-Clause" ]
null
null
null
libairt/aerotoolsGimbalMessageProcessor.cpp
AiRT-Software/ocs
2d6056a1260ac9ac75cfd507fb1a77db3b26298a
[ "BSD-4-Clause" ]
1
2020-07-06T10:33:10.000Z
2020-07-06T10:33:10.000Z
#include <cstring> #include <cassert> //#include "../atreyu/include/fcsmodule.h" #include "aerotoolsGimbalMessageProcessor.h" #include "stdMessage.h" #ifdef TESTING #include "dummySerial.h" #else #include "serial.h" #endif #include "log.h" #include "utils.h" #define MAX_MSG_LENGTH 64 #define SYNC1 0xb5 #define SYNC...
28.266917
163
0.637053
AiRT-Software
afbe2948c86a6d57117993141ede06fed06951e9
179
cpp
C++
ural/1876.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
5
2015-07-14T10:29:25.000Z
2016-10-11T12:45:18.000Z
ural/1876.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
null
null
null
ural/1876.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
3
2016-08-23T01:05:26.000Z
2017-05-28T02:04:20.000Z
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); printf("%d\n", max(2*b+40, 2*a+39)); return 0; }
12.785714
37
0.597765
jffifa
afc2f4ce308d29764f13b1ca2700eec3a78096e5
6,389
cpp
C++
Engine/Source/Core/SurfaceBehavior/SurfaceOptics/LerpedSurfaceOptics.cpp
MarvinChung/Photon-v2
a42761797f5364525e5686cd7fe2eff6f5b04ddf
[ "MIT" ]
1
2019-02-23T14:06:56.000Z
2019-02-23T14:06:56.000Z
Engine/Source/Core/SurfaceBehavior/SurfaceOptics/LerpedSurfaceOptics.cpp
MarvinChung/Photon-v2
a42761797f5364525e5686cd7fe2eff6f5b04ddf
[ "MIT" ]
null
null
null
Engine/Source/Core/SurfaceBehavior/SurfaceOptics/LerpedSurfaceOptics.cpp
MarvinChung/Photon-v2
a42761797f5364525e5686cd7fe2eff6f5b04ddf
[ "MIT" ]
null
null
null
#include "Core/SurfaceBehavior/SurfaceOptics/LerpedSurfaceOptics.h" #include "Math/TVector3.h" #include "Core/SurfaceHit.h" #include "Math/Random.h" #include "Core/Texture/TTexture.h" #include "Core/Quantity/SpectralStrength.h" #include "Common/assertion.h" #include "Core/Texture/TConstantTexture.h" #include "Math/mat...
29.173516
117
0.744248
MarvinChung
afc3b8d5f63225653ac6f6628d6338957f3037cd
10,458
cpp
C++
libraries/AXP192/AXP192.cpp
vanvuongngo/Maixduino
aa6543538ccfb54a89e9922dd38f5b4710a9c2a4
[ "Apache-2.0" ]
195
2019-04-02T02:28:34.000Z
2022-03-23T07:45:31.000Z
libraries/AXP192/AXP192.cpp
vanvuongngo/Maixduino
aa6543538ccfb54a89e9922dd38f5b4710a9c2a4
[ "Apache-2.0" ]
106
2019-04-03T12:27:01.000Z
2022-03-25T12:59:33.000Z
libraries/AXP192/AXP192.cpp
vanvuongngo/Maixduino
aa6543538ccfb54a89e9922dd38f5b4710a9c2a4
[ "Apache-2.0" ]
101
2019-04-03T06:14:04.000Z
2022-03-15T06:31:58.000Z
#include "AXP192.h" AXP192::AXP192() { } void AXP192::begin(bool isInited) { if(!isInited){ Wire.begin((uint8_t) SDA, (uint8_t) SCL, 400000); } Write1Byte(0x46, 0xFF); //Clear interupts Write1Byte(0x23, 0x08); //Set DC-DC2 (VCore) to 0V9 Write1Byte(0x33, 0xC0); //Set Bat Charging Volta...
24.377622
108
0.633295
vanvuongngo
afc4bf4b963c5dd49becb5584f83ccf3439a8bed
3,896
cpp
C++
Java-and-C++/AnalyticFunctions/NthValue.cpp
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
12
2017-08-16T09:58:50.000Z
2020-05-08T12:03:57.000Z
Java-and-C++/AnalyticFunctions/NthValue.cpp
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
1
2021-04-21T21:39:03.000Z
2021-04-21T21:39:03.000Z
Java-and-C++/AnalyticFunctions/NthValue.cpp
vietnguyen1989/UDx-Examples
4b72aaa7402c93890500d37c1b888230cc6524e2
[ "BSD-3-Clause" ]
15
2016-12-21T09:57:22.000Z
2021-11-25T22:30:24.000Z
/* Copyright (c) 2005 - 2016 Hewlett Packard Enterprise Development LP -*- C++ -*-*/ /* * Description: Example User Defined Analytic Function nth_value to output the value of the nth row. * * Create Date: Mar 13, 2014 */ #include "Vertica.h" #include <sstream> using namespace Vertica; /* * The analytic functio...
39.755102
131
0.598563
vietnguyen1989
afc6ce2b22fd60ed9f924af7018858602daff4e2
3,389
hpp
C++
engine/includes/asset_importer/texture_importer.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
1
2019-08-22T14:43:18.000Z
2019-08-22T14:43:18.000Z
engine/includes/asset_importer/texture_importer.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
null
null
null
engine/includes/asset_importer/texture_importer.hpp
StuartDAdams/neon
d08a63b853801aec94390e50f2988d0217438061
[ "MIT" ]
null
null
null
/* =========================================================================== Moka Source Code Copyright 2019 Stuart Adams. All rights reserved. https://github.com/stuartdadams/moka stuartdadams | linkedin.com/in/stuartdadams This file is part of the Moka Real-Time Physically-Based Rendering Project. Permission is h...
45.186667
116
0.697551
StuartDAdams
afc888c91ca6936a0b4a9a6c029b9c2056c6c592
1,038
cpp
C++
src/gamebase/src/impl/graphics/LineProgram.cpp
TheMrButcher/opengl_lessons
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
1
2016-10-25T21:15:16.000Z
2016-10-25T21:15:16.000Z
src/gamebase/src/impl/graphics/LineProgram.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
375
2016-06-04T11:27:40.000Z
2019-04-14T17:11:09.000Z
src/gamebase/src/impl/graphics/LineProgram.cpp
TheMrButcher/gamebase
76ac96c45773a54a85d49c6994770b0c3496303f
[ "MIT" ]
null
null
null
/** * Copyright (c) 2018 Slavnejshev Filipp * This file is licensed under the terms of the MIT license. */ #include <stdafx.h> #include <gamebase/impl/graphics/LineProgram.h> #include "State.h" #include "src/impl/global/Config.h" namespace gamebase { namespace impl { LineProgram::LineProgram() : OneColorProgr...
22.565217
73
0.684008
TheMrButcher
afcb7cb9143bec7e4ef15df8e3ffbb89233ad21b
5,309
cpp
C++
it2nsf/source/io.cpp
mukunda-/it2nsf
62765a9627b7be45d570d444057f37585f0406d8
[ "BSD-3-Clause" ]
5
2015-07-13T00:58:07.000Z
2022-03-20T16:49:47.000Z
it2nsf/source/io.cpp
mukunda-/it2nsf
62765a9627b7be45d570d444057f37585f0406d8
[ "BSD-3-Clause" ]
1
2018-05-12T20:43:32.000Z
2018-05-12T20:43:32.000Z
it2nsf/source/io.cpp
mukunda-/it2nsf
62765a9627b7be45d570d444057f37585f0406d8
[ "BSD-3-Clause" ]
3
2018-05-12T18:36:18.000Z
2018-07-10T14:35:42.000Z
/********************************************************************************************* * IT2NSF * * Copyright (C) 2009, mukunda, coda, madbrain, reduz * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are...
26.152709
95
0.511584
mukunda-
afcd5238b502b1281d4e74cb8bc0c9c3663229d0
41,674
cpp
C++
plugin_sa/game_sa/CTheScripts.cpp
gta-chaos-mod/plugin-sdk
e3bf176337774a2afc797a47825f81adde78e899
[ "Zlib" ]
368
2015-01-01T21:42:00.000Z
2022-03-29T06:22:22.000Z
plugin_sa/game_sa/CTheScripts.cpp
SteepCheat/plugin-sdk
a17c5d933cb8b06e4959b370092828a6a7aa00ef
[ "Zlib" ]
89
2016-05-08T06:42:36.000Z
2022-03-29T06:49:09.000Z
plugin_sa/game_sa/CTheScripts.cpp
SteepCheat/plugin-sdk
a17c5d933cb8b06e4959b370092828a6a7aa00ef
[ "Zlib" ]
179
2015-02-03T23:41:17.000Z
2022-03-26T08:27:16.000Z
/* Plugin-SDK (Grand Theft Auto San Andreas) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CTheScripts.h" PLUGIN_SOURCE_FILE PLUGIN_VARIABLE bool &CTheScripts::DbgFlag = *reinterpret_cast<bool *>(GLOBAL_ADDR...
67.983687
253
0.788957
gta-chaos-mod
afce2ed6cbffc0e37a0a3db2aa73e00228940513
1,807
cpp
C++
HI/HI_L3/WINAPI/main.cpp
sandyre/ifmo_course3
f697b2308acec149c67b1fbba326e2264da88f29
[ "MIT" ]
3
2017-06-19T20:39:26.000Z
2020-09-14T04:15:53.000Z
HI/HI_L3/WINAPI/main.cpp
sandyre/ifmo_course3
f697b2308acec149c67b1fbba326e2264da88f29
[ "MIT" ]
null
null
null
HI/HI_L3/WINAPI/main.cpp
sandyre/ifmo_course3
f697b2308acec149c67b1fbba326e2264da88f29
[ "MIT" ]
2
2018-11-12T18:42:09.000Z
2019-12-20T03:12:34.000Z
#include <Windows.h> #include "bitmap.hpp" LRESULT CALLBACK WindowProc(HWND, UINT, WPARAM, LPARAM); HDC hdc; Bitmap * pBITMAP; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { std::wstring filename = L"c:\\Users\\sandyre\\Desktop\\resulted.bmp"; pBITMAP = n...
24.753425
73
0.618705
sandyre
afd176cbbc492bf2fee093802d693e0b99914d2f
934
cpp
C++
class_and_object/file_operation_read.cpp
MIXALER/cpp
155ecf5113d49ddf2390765e314cceaababdabee
[ "MIT" ]
1
2021-04-02T10:11:16.000Z
2021-04-02T10:11:16.000Z
class_and_object/file_operation_read.cpp
MIXALER/learn_cpp
155ecf5113d49ddf2390765e314cceaababdabee
[ "MIT" ]
null
null
null
class_and_object/file_operation_read.cpp
MIXALER/learn_cpp
155ecf5113d49ddf2390765e314cceaababdabee
[ "MIT" ]
null
null
null
// // Created by yuanh on 2021/4/18. // #include <fstream> #include <iostream> #include <string> using namespace std; // 文本文件 读文件 void test_write() { // 1. 包含头文件 fstream // 2. 创建流对象 ifstream ifs; // 3. 打开文件,并且判断是否打开成功,设定打开方式 ifs.open("test.txt", ios::in); // 4. 读文件 if (!ifs.is_open()) ...
16.103448
50
0.477516
MIXALER
afd249c15ea370269f946c1248413b061e66a6cd
4,033
cpp
C++
src/query/data/MinQuery.cpp
LouieBHLu/LemonDB-Self-Designed-Multithread-Database
ae0ad7f97ef114f7517a368a779e60fb90aa4115
[ "MIT" ]
1
2022-01-21T09:49:44.000Z
2022-01-21T09:49:44.000Z
src/query/data/MinQuery.cpp
LouieBHLu/LemonDB-Self-Designed-Multithread-Database
ae0ad7f97ef114f7517a368a779e60fb90aa4115
[ "MIT" ]
null
null
null
src/query/data/MinQuery.cpp
LouieBHLu/LemonDB-Self-Designed-Multithread-Database
ae0ad7f97ef114f7517a368a779e60fb90aa4115
[ "MIT" ]
null
null
null
#include "MinQuery.h" #include "../../db/Database.h" #include "../QueryResult.h" #include "../../threads/thread.h" #include <algorithm> using namespace std; constexpr const char *MinQuery::qname; static long thread_num; static long range; static bool exist; static Table* table; static MinQuery* p; static ve...
35.069565
111
0.529135
LouieBHLu
afd517cfe001224b4113613d120d72e091ca4a19
1,753
cpp
C++
src/gui/MainWindow.cpp
oevseev/CardEngine
20f5969a8fe9ca4cf253fb9afc1ab8a23e65210f
[ "MIT" ]
1
2021-03-08T22:03:44.000Z
2021-03-08T22:03:44.000Z
src/gui/MainWindow.cpp
oevseev/CardEngine
20f5969a8fe9ca4cf253fb9afc1ab8a23e65210f
[ "MIT" ]
null
null
null
src/gui/MainWindow.cpp
oevseev/CardEngine
20f5969a8fe9ca4cf253fb9afc1ab8a23e65210f
[ "MIT" ]
null
null
null
// // Created by Oleg Evseev on 05.03.2021. // #include "MainWindow.h" #include <QToolBar> #include <QMenuBar> #include <QPushButton> #include "SetDealDialog.h" #include "../solvers/AlphaBetaSolver.h" MainWindow::MainWindow(QWidget *parent, const Qt::WindowFlags &flags) { auto *toolBar = new QToolBar("Toolbar",...
31.303571
96
0.710211
oevseev
afd688672e48c719898383387c849c087eb81cb3
903
cpp
C++
Development/HeadMovement/HeadMovement/src/Main.cpp
sheldonrobinson/face-gesture-api
3c92f6033d667445067643399a73478f9449ebe2
[ "BSD-3-Clause" ]
null
null
null
Development/HeadMovement/HeadMovement/src/Main.cpp
sheldonrobinson/face-gesture-api
3c92f6033d667445067643399a73478f9449ebe2
[ "BSD-3-Clause" ]
null
null
null
Development/HeadMovement/HeadMovement/src/Main.cpp
sheldonrobinson/face-gesture-api
3c92f6033d667445067643399a73478f9449ebe2
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include "opencv2/opencv.hpp" #include "Definitions.h" #include "HeadMovementAlgorithm.h" using namespace std; using namespace cv; int main(int argc, char *argv[]) { int result = 0; HeadMovementAlgorithm headMovementAlgorithm; /* The function can be used to dynamically turn o...
23.763158
122
0.681063
sheldonrobinson
afd75105b3eda443cc91221b83ceea878aa54f22
1,876
cpp
C++
PAT/A 1010.cpp
windcry1/My-ACM-ICPC
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
[ "MIT" ]
null
null
null
PAT/A 1010.cpp
windcry1/My-ACM-ICPC
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
[ "MIT" ]
null
null
null
PAT/A 1010.cpp
windcry1/My-ACM-ICPC
b85b1c83b72c6b51731dae946a0df57c31d3e7a1
[ "MIT" ]
null
null
null
/************************************************************************* >>> Author: WindCry1 >>> Mail: lanceyu120@gmail.com >>> Website: https://windcry1.com >>> Date: 7/27/2019 7:01:20 PM *************************************************************************/ #include<cstring> #include<cmath> #include<cstdio> #i...
20.615385
74
0.584222
windcry1
afd81feebfeaeb442d799e93d947ddc5041d9bff
28,670
cxx
C++
ds/ds/src/ldap/client/modify.cxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/ds/src/ldap/client/modify.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/ds/src/ldap/client/modify.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 1996 Microsoft Corporation Module Name: modify.cxx handle modify requests to an LDAP server Abstract: This module implements the LDAP modify APIs. Author: Andy Herron (andyhe) 02-Jul-1996 Revision History: --*/ #include "precomp.h" #pragma hdrstop #i...
29.802495
115
0.427311
npocmaka
afd8c2bb263a99ae1ed367320478cb3bee31e4b6
3,424
cpp
C++
src/main.cpp
ZhouYixuanRobtic/NursingRobot
1372e4af40a3315b754d1b6273b5a00d09c4def6
[ "MIT" ]
1
2020-12-09T01:32:13.000Z
2020-12-09T01:32:13.000Z
src/main.cpp
ZhouYixuanRobtic/NursingRobot
1372e4af40a3315b754d1b6273b5a00d09c4def6
[ "MIT" ]
null
null
null
src/main.cpp
ZhouYixuanRobtic/NursingRobot
1372e4af40a3315b754d1b6273b5a00d09c4def6
[ "MIT" ]
1
2021-04-15T15:29:08.000Z
2021-04-15T15:29:08.000Z
#define EIGEN_USE_MKL_ALL #include "util/logger.hpp" #include <ros/ros.h> #include "collision_detection/MoveItCollisionHelper.h" #include <moveit_visual_tools/moveit_visual_tools.h> #include <tf2_eigen/tf2_eigen.h> #include "Kinematics/custom_kinematics.hpp" #include "planner/CartesianPlanner.h" #include "planner/Plan...
51.878788
146
0.593458
ZhouYixuanRobtic
afd9e00f9dfef07b0204def29edd1aece79c7cc3
909
hpp
C++
common/perf.hpp
DimitrisVlachos/sorting_algo_playground
98f386b52dc08f61e5f08d150540369c075f3d06
[ "MIT" ]
null
null
null
common/perf.hpp
DimitrisVlachos/sorting_algo_playground
98f386b52dc08f61e5f08d150540369c075f3d06
[ "MIT" ]
null
null
null
common/perf.hpp
DimitrisVlachos/sorting_algo_playground
98f386b52dc08f61e5f08d150540369c075f3d06
[ "MIT" ]
null
null
null
#pragma once #include "license_hdr.hpp" #include "base_includes.hpp" class c_perf { private: std::chrono::high_resolution_clock::time_point t1; std::string m_desc; public: c_perf(const std::string& desc) : m_desc(desc) { std::cout << "Starting perf: " << desc << "\n"; t1 = std::ch...
36.36
185
0.584158
DimitrisVlachos
afdadc62f2a9ba6726e52a19ab70637d90a813a8
2,280
cpp
C++
src/solver/eigen/eigen_solver_factory.cpp
dbeurle/neon
63cd2929a6eaaa0e1654c729cd35a9a52a706962
[ "MIT" ]
9
2018-07-12T17:06:33.000Z
2021-11-20T23:13:26.000Z
src/solver/eigen/eigen_solver_factory.cpp
dbeurle/neon
63cd2929a6eaaa0e1654c729cd35a9a52a706962
[ "MIT" ]
119
2016-06-22T07:36:04.000Z
2019-03-10T19:38:12.000Z
src/solver/eigen/eigen_solver_factory.cpp
dbeurle/neon
63cd2929a6eaaa0e1654c729cd35a9a52a706962
[ "MIT" ]
9
2017-10-08T16:51:38.000Z
2021-03-15T08:08:04.000Z
#include "solver/eigen/eigen_solver_factory.hpp" #include "io/json.hpp" #include "solver/eigen/arpack.hpp" #include "solver/eigen/lanczos_ocl.hpp" #include "solver/eigen/power_iteration.hpp" namespace neon { std::unique_ptr<eigen_solver> make_eigen_solver(json const& solver_data) { if (solver_data.find("type") ...
28.860759
96
0.589474
dbeurle
afde834ed01f4ebfc956fa6aadbd769d8bba877e
806
cpp
C++
notebook/mutsim/src/hist.cpp
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
24
2016-12-07T07:59:09.000Z
2019-03-11T02:05:36.000Z
notebook/mutsim/src/hist.cpp
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
325
2016-12-07T07:37:17.000Z
2019-03-12T19:01:40.000Z
notebook/mutsim/src/hist.cpp
standage/kevlar
622d1869266550422e91a60119ddc7261eea434a
[ "MIT" ]
8
2017-08-17T01:37:39.000Z
2019-03-01T16:17:44.000Z
#include <assert.h> #include <iostream> #include "hist.hpp" Histogram::Histogram(uint max) : maxbin(max) { while (hist.size() < maxbin + 1) { hist.push_back(0); } } void Histogram::increment(uint bin, uint by) { if (bin > maxbin) { bin = maxbin; } hist[bin] += by; } ulong Histogra...
17.148936
66
0.533499
johnsmith2077
afdee6f8c366470c85766ed237ec7e8e7ca54353
5,233
cpp
C++
pal/crypto/hash.test.cpp
svens/pal
5e73ef39dad32bba2d42c6e1a3af6a3c66725ee7
[ "MIT" ]
null
null
null
pal/crypto/hash.test.cpp
svens/pal
5e73ef39dad32bba2d42c6e1a3af6a3c66725ee7
[ "MIT" ]
null
null
null
pal/crypto/hash.test.cpp
svens/pal
5e73ef39dad32bba2d42c6e1a3af6a3c66725ee7
[ "MIT" ]
null
null
null
#include <pal/crypto/hash> #include <pal/crypto/test> #include <catch2/catch_template_test_macros.hpp> #include <unordered_map> namespace { static const std::string empty = "", lazy_dog = "The quick brown fox jumps over the lazy dog", lazy_cog = "The quick brown fox jumps over the lazy cog"; struct md5: pal::c...
26.974227
158
0.726543
svens
afe1bac24100ab5af8a6e0e8d6f5cf5f6916d0f0
383
cpp
C++
Sandbox/src/SandboxApp.cpp
Tomzopo/parabol
2e11a78ba11726c01af2cd320f0a6769f221758f
[ "Apache-2.0" ]
null
null
null
Sandbox/src/SandboxApp.cpp
Tomzopo/parabol
2e11a78ba11726c01af2cd320f0a6769f221758f
[ "Apache-2.0" ]
null
null
null
Sandbox/src/SandboxApp.cpp
Tomzopo/parabol
2e11a78ba11726c01af2cd320f0a6769f221758f
[ "Apache-2.0" ]
null
null
null
#include <Parabol.h> #include <Parabol/Core/EntryPoint.h> #include "Sandbox2D.h" #include "ExampleLayer.h" class Sandbox : public Parabol::Application { public: Sandbox() { // PushLayer(new ExampleLayer()); PushLayer(new Sandbox2D()); } ~Sandbox() override = default; }; Parabol::Applicati...
19.15
52
0.665796
Tomzopo
afe6178f052d24211dbfb8c4626b2f6a420ad1e5
1,608
cpp
C++
test/memorymap.cpp
davidwed/sqlrelay_rudiments
6ccffdfc5fa29f8c0226f3edc2aa888aa1008347
[ "BSD-2-Clause-NetBSD" ]
null
null
null
test/memorymap.cpp
davidwed/sqlrelay_rudiments
6ccffdfc5fa29f8c0226f3edc2aa888aa1008347
[ "BSD-2-Clause-NetBSD" ]
null
null
null
test/memorymap.cpp
davidwed/sqlrelay_rudiments
6ccffdfc5fa29f8c0226f3edc2aa888aa1008347
[ "BSD-2-Clause-NetBSD" ]
null
null
null
// Copyright (c) 2003 David Muse // See the file COPYING for more information #include <rudiments/file.h> #include <rudiments/permissions.h> #include <rudiments/sys.h> #include <rudiments/charstring.h> #include <rudiments/memorymap.h> #include <rudiments/process.h> #include <rudiments/error.h> #include <rudiments/std...
22.333333
50
0.655473
davidwed
afef2ba65c06d0a93903cb8f4ff3cf394ea7667b
495
cpp
C++
src/td6/CrunchReq.cpp
juliendoutre/itr
ea555c8f0f4a6b02e5545911bdd48a3b1fb51a97
[ "MIT" ]
null
null
null
src/td6/CrunchReq.cpp
juliendoutre/itr
ea555c8f0f4a6b02e5545911bdd48a3b1fb51a97
[ "MIT" ]
null
null
null
src/td6/CrunchReq.cpp
juliendoutre/itr
ea555c8f0f4a6b02e5545911bdd48a3b1fb51a97
[ "MIT" ]
null
null
null
/** * @file * - **TD:** @ref td6 * - **Example class:** CrunchReq * @anchor td6_crunch_req * */ #include "CrunchReq.hpp" #include "Calculator.hpp" CrunchReq::CrunchReq(double param, Calculator &calc) : param(param), calc(calc) {} void CrunchReq::execute() { this->result = this->calc.crunch(this->param); ...
17.068966
82
0.650505
juliendoutre
aff187ed6f67a26d3e8d1c763fd038f8bb9e0791
1,206
cpp
C++
cpp/language_direct_initialization.cpp
rpuntaie/c-examples
385b3c792e5b39f81a187870100ed6401520a404
[ "MIT" ]
null
null
null
cpp/language_direct_initialization.cpp
rpuntaie/c-examples
385b3c792e5b39f81a187870100ed6401520a404
[ "MIT" ]
null
null
null
cpp/language_direct_initialization.cpp
rpuntaie/c-examples
385b3c792e5b39f81a187870100ed6401520a404
[ "MIT" ]
null
null
null
/* g++ --std=c++20 -pthread -o ../_build/cpp/language_direct_initialization.exe ./cpp/language_direct_initialization.cpp && (cd ../_build/cpp/;./language_direct_initialization.exe) https://en.cppreference.com/w/cpp/language/direct_initialization */ #include <iterator> #include <string> #include <fstream> int main() { ...
44.666667
177
0.670813
rpuntaie
aff4492e1bb024dd0e203c4fa5d24ceb83e652dd
895
cpp
C++
Algorithms/QuickSort/QuickSort.cpp
GigaNova/CPP-Algorithms
b8a28cbbde9bd8ae94d6e6795566a35eb22aaac0
[ "MIT" ]
null
null
null
Algorithms/QuickSort/QuickSort.cpp
GigaNova/CPP-Algorithms
b8a28cbbde9bd8ae94d6e6795566a35eb22aaac0
[ "MIT" ]
null
null
null
Algorithms/QuickSort/QuickSort.cpp
GigaNova/CPP-Algorithms
b8a28cbbde9bd8ae94d6e6795566a35eb22aaac0
[ "MIT" ]
null
null
null
#include "QuickSort.h" void QuickSort::Sort(std::vector<int>& _unsortedVector) { quicksort(_unsortedVector, 0, _unsortedVector.size() - 1); } void QuickSort::quicksort(std::vector<int>& _vector, int _low, int _high) { if(_low < _high) { int pivot = partition(_vector, _low, _high); quicksort(_vector, _low, pivo...
19.888889
82
0.661453
GigaNova
aff68a3cef0621faf45ad85bedee92e1e70637d9
7,100
cc
C++
tests/phi/tests/util.cc
juliusnehring/arcana-samples
b5d71c114f353b278323b96450b1bfcd947336b7
[ "MIT" ]
null
null
null
tests/phi/tests/util.cc
juliusnehring/arcana-samples
b5d71c114f353b278323b96450b1bfcd947336b7
[ "MIT" ]
null
null
null
tests/phi/tests/util.cc
juliusnehring/arcana-samples
b5d71c114f353b278323b96450b1bfcd947336b7
[ "MIT" ]
1
2020-01-22T18:04:53.000Z
2020-01-22T18:04:53.000Z
#include <nexus/fuzz_test.hh> #include <rich-log/log.hh> #include <phantasm-hardware-interface/common/byte_util.hh> #include <phantasm-hardware-interface/util.hh> TEST("mipsize utils") { // simple pow2 square auto const pow2_square = tg::isize2{1024, 1024}; CHECK(phi::util::get_num_mips(pow2_square) == 1...
50
156
0.644648
juliusnehring
aff723ff1f7e7351a95306834fbb423395593760
1,770
cpp
C++
chapter04/problem_33/main.cpp
AhmedShaban94/the_modern_cpp_challenge_solutions
c5ea164ecc224389ee35db12126eeee2bc459564
[ "MIT" ]
1
2021-07-08T15:34:14.000Z
2021-07-08T15:34:14.000Z
chapter04/problem_33/main.cpp
AhmedShaban94/the_modern_cpp_challenge_solutions
c5ea164ecc224389ee35db12126eeee2bc459564
[ "MIT" ]
null
null
null
chapter04/problem_33/main.cpp
AhmedShaban94/the_modern_cpp_challenge_solutions
c5ea164ecc224389ee35db12126eeee2bc459564
[ "MIT" ]
null
null
null
#include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> enum class STATUS { RUNNING, SUSPENDED }; enum class PLATFORM { x32_BIT, x64_BIT }; struct ProcessInfo { std::string name; std::size_t pid; STATUS status; std::string accountName; std::s...
31.052632
127
0.607345
AhmedShaban94
affcec9412fd718924399d20facc0a82fd4d6b2f
1,487
cpp
C++
Trees/InternalNode.cpp
shujianyang/btrForensics
5206e3253778169b954986c38b020f0783bdfc58
[ "MIT" ]
17
2016-07-25T13:33:31.000Z
2022-02-18T00:52:43.000Z
Trees/InternalNode.cpp
shujianyang/btrForensics
5206e3253778169b954986c38b020f0783bdfc58
[ "MIT" ]
2
2019-03-03T02:21:49.000Z
2019-07-30T13:39:39.000Z
Trees/InternalNode.cpp
shujianyang/btrForensics
5206e3253778169b954986c38b020f0783bdfc58
[ "MIT" ]
null
null
null
//! \file //! \author Shujian Yang //! //! Implementation of class InternalNode. #include <sstream> #include "InternalNode.h" namespace btrForensics{ //! Constructor of btrfs leaf node. //! //! \param img Image file. //! \param imgOffset Offset to the partition. //! \param header Pointer to header of a node. //! \pa...
22.530303
73
0.626093
shujianyang
affdabd3630f59f27d3eec643c285846b24b9fd4
811
cpp
C++
code/steps/source/device/nonbus_device.cpp
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
29
2019-10-30T07:04:10.000Z
2022-02-22T06:34:32.000Z
code/steps/source/device/nonbus_device.cpp
cuihantao/steps
60327bf42299cb7117ed5907a931583d7cdf590d
[ "MIT" ]
1
2021-09-25T15:29:59.000Z
2022-01-05T14:04:18.000Z
code/steps/source/device/nonbus_device.cpp
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
8
2019-12-20T16:13:46.000Z
2022-03-20T14:58:23.000Z
#include "header/power_system_database.h" #include "header/device/nonbus_device.h" #include <istream> #include <iostream> using namespace std; NONBUS_DEVICE::NONBUS_DEVICE(STEPS& toolkit) : DEVICE(toolkit) { ownership.clear(); } NONBUS_DEVICE::~NONBUS_DEVICE() { ; } void NONBUS_DEVICE::set_ownership(const O...
19.309524
78
0.764488
changgang
9b7f11dd91c1fda4cc8ef591f19593234e6aa989
7,549
hpp
C++
include/utils/io.hpp
alexd2580/statorange
02bdbe96273108964f9ec947c331f7f22a66d5c8
[ "MIT" ]
1
2016-02-26T01:14:26.000Z
2016-02-26T01:14:26.000Z
include/utils/io.hpp
alexd2580/statorange
02bdbe96273108964f9ec947c331f7f22a66d5c8
[ "MIT" ]
6
2015-12-06T22:23:29.000Z
2015-12-11T14:56:55.000Z
include/utils/io.hpp
alexd2580/statorange
02bdbe96273108964f9ec947c331f7f22a66d5c8
[ "MIT" ]
null
null
null
#ifndef UTILS_IO_HPP #define UTILS_IO_HPP #include <memory> #include <ostream> #include <string> #include <type_traits> #include <cstddef> #include <cstdio> #include <sys/socket.h> #include "Address.hpp" #include "utils/exception.hpp" #include "utils/resource.hpp" // Returns true if input becomes available on a no...
62.908333
120
0.358988
alexd2580
9b80cf95eb234e124ac98f1a981affc93348c214
3,723
hpp
C++
radial_menu_rviz/include/radial_menu_rviz/display_base.hpp
yoshito-n-students/mvc_menu_ros
03871da1a964f2253f0a35df8cb077ffbb4a64b9
[ "MIT" ]
14
2020-07-19T18:30:28.000Z
2021-07-26T10:24:24.000Z
radial_menu_rviz/include/radial_menu_rviz/display_base.hpp
yoshito-n-students/mvc_menu_ros
03871da1a964f2253f0a35df8cb077ffbb4a64b9
[ "MIT" ]
null
null
null
radial_menu_rviz/include/radial_menu_rviz/display_base.hpp
yoshito-n-students/mvc_menu_ros
03871da1a964f2253f0a35df8cb077ffbb4a64b9
[ "MIT" ]
2
2020-09-05T02:18:01.000Z
2020-11-01T05:24:10.000Z
#ifndef RADIAL_MENU_RVIZ_DISPLAY_BASE_HPP #define RADIAL_MENU_RVIZ_DISPLAY_BASE_HPP #include <memory> #include <radial_menu_model/model.hpp> #include <radial_menu_msgs/State.h> #include <radial_menu_rviz/image_overlay.hpp> #include <radial_menu_rviz/properties.hpp> #include <ros/console.h> #include <ros/exception.h> ...
29.547619
92
0.701585
yoshito-n-students
9b81a0bbdd6b43cd07ae448370b07d6013cf0eda
14,390
cpp
C++
src/condor_amazon/ec2_sim_impl.cpp
clalancette/condor-dcloud
70d1b1896ea0e5cfb4f051c7fb73cf4d12cd9727
[ "Apache-2.0" ]
2
2018-06-18T23:11:20.000Z
2021-01-11T06:30:00.000Z
src/condor_amazon/ec2_sim_impl.cpp
clalancette/condor-dcloud
70d1b1896ea0e5cfb4f051c7fb73cf4d12cd9727
[ "Apache-2.0" ]
null
null
null
src/condor_amazon/ec2_sim_impl.cpp
clalancette/condor-dcloud
70d1b1896ea0e5cfb4f051c7fb73cf4d12cd9727
[ "Apache-2.0" ]
1
2021-08-29T14:03:53.000Z
2021-08-29T14:03:53.000Z
/* * Copyright 2008 Red Hat, 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 applicable law or agreed t...
28.953722
107
0.695274
clalancette