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
1aa1ca3764f44acc65714469fd96138ceacc60c5
1,534
cpp
C++
MPAGSCipher/CaesarCipher.cpp
MPAGS-CPP-2019/mpags-day-3-rrStein
e4ff5e2023dbb8e4a7981b25c7d11811ead13c0c
[ "MIT" ]
null
null
null
MPAGSCipher/CaesarCipher.cpp
MPAGS-CPP-2019/mpags-day-3-rrStein
e4ff5e2023dbb8e4a7981b25c7d11811ead13c0c
[ "MIT" ]
null
null
null
MPAGSCipher/CaesarCipher.cpp
MPAGS-CPP-2019/mpags-day-3-rrStein
e4ff5e2023dbb8e4a7981b25c7d11811ead13c0c
[ "MIT" ]
null
null
null
#include "CaesarCipher.hpp" #include <fstream> #include <iostream> #include <string> #include <vector> // #include "RunCaesarCipher.hpp" // #include "RunCaesarCipher.cpp" CaesarCipher::CaesarCipher(const std::string &caesar_key) : caesar_key_{std::stoul(caesar_key)} {} CaesarCipher::CaesarCipher(const size_t &caes...
30.68
79
0.656454
MPAGS-CPP-2019
1aaa3c3ebc0ac201b16987d8482409b46de800bb
2,512
hpp
C++
include/graphplan/Action.hpp
aldukeman/graphplan
33b575a75aa25243e0a3bc658a7932e75a1ef2ef
[ "MIT" ]
null
null
null
include/graphplan/Action.hpp
aldukeman/graphplan
33b575a75aa25243e0a3bc658a7932e75a1ef2ef
[ "MIT" ]
1
2016-01-13T20:42:26.000Z
2022-03-10T02:14:49.000Z
include/graphplan/Action.hpp
aldukeman/graphplan
33b575a75aa25243e0a3bc658a7932e75a1ef2ef
[ "MIT" ]
1
2019-08-24T10:25:44.000Z
2019-08-24T10:25:44.000Z
/** * The MIT License (MIT) * * Copyright (c) 2014 Anton Dukeman * * 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 ...
27.604396
80
0.705414
aldukeman
1aad3a3ec328941ebf17269947721d86450d3671
1,836
cpp
C++
test/stc/test-vcs.cpp
antonvw/wxExtension
d5523346cf0b1dbd45fd20dc33bf8d679299676c
[ "MIT" ]
9
2016-01-10T20:59:02.000Z
2019-01-09T14:18:13.000Z
test/stc/test-vcs.cpp
antonvw/wxExtension
d5523346cf0b1dbd45fd20dc33bf8d679299676c
[ "MIT" ]
31
2015-01-30T17:46:17.000Z
2017-03-04T17:33:50.000Z
test/stc/test-vcs.cpp
antonvw/wxExtension
d5523346cf0b1dbd45fd20dc33bf8d679299676c
[ "MIT" ]
2
2015-04-05T08:45:22.000Z
2018-08-24T06:43:24.000Z
//////////////////////////////////////////////////////////////////////////////// // Name: test-vcs.cpp // Purpose: Implementation for wex unit testing // Author: Anton van Wezenbeek // Copyright: (c) 2021 Anton van Wezenbeek //////////////////////////////////////////////////////////////////////////////// #in...
27
80
0.582244
antonvw
1ab07d703b2db70916abe6b16f78f7bd63606c4b
2,219
cpp
C++
contract/lite-client/tddb/td/db/utils/FileSyncState.cpp
TONCommunity/ton-sync-payments-channel
2e5cd4902406923fdba32b8309ab8c40db3ae5bc
[ "MIT" ]
5
2019-10-15T18:26:06.000Z
2020-05-09T14:09:49.000Z
contract/lite-client/tddb/td/db/utils/FileSyncState.cpp
TONCommunity/ton-sync-payments-channel
2e5cd4902406923fdba32b8309ab8c40db3ae5bc
[ "MIT" ]
null
null
null
contract/lite-client/tddb/td/db/utils/FileSyncState.cpp
TONCommunity/ton-sync-payments-channel
2e5cd4902406923fdba32b8309ab8c40db3ae5bc
[ "MIT" ]
2
2020-07-24T16:09:02.000Z
2021-08-18T17:08:28.000Z
/* This file is part of TON Blockchain Library. TON Blockchain Library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later ver...
32.632353
83
0.741325
TONCommunity
1ab2a2b907d33254514ee46febe49a69ed08a539
3,229
cpp
C++
Source/Core/BuildCommon/BakeModel.cpp
schuttejoe/ShootyEngine
56a7fab5a479ec93d7f641bb64b8170f3b0d3095
[ "MIT" ]
81
2018-07-31T17:13:47.000Z
2022-03-03T09:24:22.000Z
Source/Core/BuildCommon/BakeModel.cpp
schuttejoe/ShootyEngine
56a7fab5a479ec93d7f641bb64b8170f3b0d3095
[ "MIT" ]
2
2018-10-15T04:39:43.000Z
2019-12-05T03:46:50.000Z
Source/Core/BuildCommon/BakeModel.cpp
schuttejoe/ShootyEngine
56a7fab5a479ec93d7f641bb64b8170f3b0d3095
[ "MIT" ]
9
2018-10-11T06:32:12.000Z
2020-10-01T03:46:37.000Z
//================================================================================================================================= // Joe Schutte //================================================================================================================================= #include "BuildCommon/BakeModel.h" #incl...
52.934426
131
0.557138
schuttejoe
1ab3c6a1df288059f40f05ae58d6ee12e894cd73
1,037
cpp
C++
tests/fixture/test_assert.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
tests/fixture/test_assert.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
tests/fixture/test_assert.cpp
sugawaray/filemanager
3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1
[ "MIT" ]
null
null
null
#include <sstream> #include "assert.h" #include "test_assert.h" using std::cerr; using std::endl; using std::ostringstream; using test::fixture::Assert; START_TEST(should_not_output_when_true) { ostringstream os; Assert(true, 1, 2, os); if (os.str() != "") cerr << "should_not_output_when_true" << endl; } END_TES...
19.942308
63
0.724204
sugawaray
1ab59718d64e2d57fadb5d3a4edd505beb48fc2b
1,071
cpp
C++
third_party/txt/tests/UnicodeUtilsTest.cpp
onix39/engine
ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc
[ "BSD-3-Clause" ]
5,823
2015-09-20T02:43:18.000Z
2022-03-31T23:38:55.000Z
third_party/txt/tests/UnicodeUtilsTest.cpp
shoryukenn/engine
0dc86cda19d55aba8b719231c11306eeaca4b798
[ "BSD-3-Clause" ]
20,081
2015-09-19T16:07:59.000Z
2022-03-31T23:33:26.000Z
third_party/txt/tests/UnicodeUtilsTest.cpp
shoryukenn/engine
0dc86cda19d55aba8b719231c11306eeaca4b798
[ "BSD-3-Clause" ]
5,383
2015-09-24T22:49:53.000Z
2022-03-31T14:33:51.000Z
/* * Copyright (C) 2016 The Android 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
28.184211
75
0.708683
onix39
1ab88a18dd8f74b863bbd45e262d092e29d0acfa
432
cpp
C++
WindowsServiceCppTemplate/ServiceControlManager.cpp
AinoMegumi/WindowsServiceCppTemplate
fd123fe43c13356308b3d27a7a5692078979426d
[ "MIT" ]
1
2021-07-06T14:31:15.000Z
2021-07-06T14:31:15.000Z
WindowsServiceCppTemplate/ServiceControlManager.cpp
AinoMegumi/WindowsServiceCppTemplate
fd123fe43c13356308b3d27a7a5692078979426d
[ "MIT" ]
null
null
null
WindowsServiceCppTemplate/ServiceControlManager.cpp
AinoMegumi/WindowsServiceCppTemplate
fd123fe43c13356308b3d27a7a5692078979426d
[ "MIT" ]
null
null
null
#include "ServiceControlManager.h" #include "GetErrorMessage.h" #include <stdexcept> ServiceControlManager::ServiceControlManager() : SCM(OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS)) { if (this->SCM == nullptr) { throw std::runtime_error( "Failed In OpenSCManager Function\n" + GetErrorMessage...
25.411765
89
0.710648
AinoMegumi
1ab92d52afb6aff23e6b6df1dcee0273b674a834
4,415
cpp
C++
src/args/Arg.cpp
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
8
2018-11-28T15:13:26.000Z
2021-10-08T18:34:28.000Z
sources/Arg.cpp
Arch23/Cpp-Argument-Parser
03787751e725db8820b02b702e65b31537dc73d2
[ "MIT" ]
4
2018-03-28T19:26:27.000Z
2018-04-07T03:02:15.000Z
sources/Arg.cpp
Arch23/Cpp-Argument-Parser
03787751e725db8820b02b702e65b31537dc73d2
[ "MIT" ]
2
2019-12-12T09:36:48.000Z
2020-04-23T08:26:22.000Z
#include "Arg.hpp" #include <sstream> using std::istringstream; #include <set> using std::set; #include <algorithm> using std::any_of; #include <iostream> using std::cout; using std::endl; Arg::Arg(int argc, char **argv):argc(argc),argv(argv){ programName = "Default Name"; helpSetted = false; } void Arg::...
22.757732
72
0.512797
GAStudyGroup
1aba131b0dfdbc8f2f780904bd7fd8947f4e4925
5,240
cpp
C++
StatsAPI/statsapi.cpp
freem/SMOnline-v1
b7202ebf1b2d291952000d8c1673ea6175eb4bdd
[ "MIT" ]
1
2021-05-24T09:23:49.000Z
2021-05-24T09:23:49.000Z
StatsAPI/statsapi.cpp
freem/SMOnline-v1
b7202ebf1b2d291952000d8c1673ea6175eb4bdd
[ "MIT" ]
null
null
null
StatsAPI/statsapi.cpp
freem/SMOnline-v1
b7202ebf1b2d291952000d8c1673ea6175eb4bdd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include "statsapi.h" using namespace std; void main(int argc, char* argv[]) { statsAPI* api = NULL; vector<CString> args; if ((argc < 2) || (argc > 21)) return; args.resize(argc - 1); for(unsigned int i = 1; i < argc; i++) args[i - 1] = argv[i]; api = new statsAPI...
24.036697
121
0.676718
freem
1abc839ce6fb2fcc80893976bb0e5bdc0d297b2a
165
hpp
C++
algorithm/tests/SortTests.hpp
AirChen/AlgorithmCpp
a1af7ee437278682d9d0319bab76d85473c3baa0
[ "MIT" ]
null
null
null
algorithm/tests/SortTests.hpp
AirChen/AlgorithmCpp
a1af7ee437278682d9d0319bab76d85473c3baa0
[ "MIT" ]
null
null
null
algorithm/tests/SortTests.hpp
AirChen/AlgorithmCpp
a1af7ee437278682d9d0319bab76d85473c3baa0
[ "MIT" ]
null
null
null
// // SortTests.hpp // tests // // Created by tuRen on 2021/5/17. // #ifndef SortTests_hpp #define SortTests_hpp #include <stdio.h> #endif /* SortTests_hpp */
11.785714
34
0.660606
AirChen
1abdfc77cd9a9c7b46e8dc87f3257e84faa19fcb
2,921
cpp
C++
qubus/src/isl/flow.cpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
qubus/src/isl/flow.cpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
qubus/src/isl/flow.cpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
#include <qubus/isl/flow.hpp> namespace qubus { namespace isl { union_access_info::union_access_info(isl_union_access_info* handle_) : handle_(handle_) { } union_access_info::union_access_info(const union_access_info& other) : handle_(isl_union_access_info_copy(other.native_handle())) { } union_access_info::~union_...
23.556452
97
0.741869
qubusproject
1ac16c952417ad528f3a24ca9c19effbbebb83a6
3,876
cpp
C++
GUIproject/CourseWorkHypermarket/productlist.cpp
ashnaider/CourseWorkHypermarket
9dd52dadf987020c2490f2a9a9cdcaa5b52fb12a
[ "MIT" ]
3
2020-05-27T18:37:43.000Z
2020-06-21T05:40:57.000Z
GUIproject/CourseWorkHypermarket/productlist.cpp
ashnaider/CourseWorkHypermarket
9dd52dadf987020c2490f2a9a9cdcaa5b52fb12a
[ "MIT" ]
null
null
null
GUIproject/CourseWorkHypermarket/productlist.cpp
ashnaider/CourseWorkHypermarket
9dd52dadf987020c2490f2a9a9cdcaa5b52fb12a
[ "MIT" ]
null
null
null
#include "productlist.h" #include "product.h" #include <sstream> #include <string> #include <vector> ProductList::ProductList(QString productClass) { utilities = new Utilities; QString filePath = utilities->generateFilePathForProduct(productClass); productsInfo = utilities->readFileByWord(filePath, true)...
32.033058
81
0.54257
ashnaider
1ac39ca5b2ddb057e71738c30bbe6b4536a54da3
378
hpp
C++
simsync/include/simsync/synchronization/thread_start.hpp
mariobadr/simsync-pmam
c541d2bf3a52eec8579e254a0300442bc3d6f1d4
[ "Apache-2.0" ]
null
null
null
simsync/include/simsync/synchronization/thread_start.hpp
mariobadr/simsync-pmam
c541d2bf3a52eec8579e254a0300442bc3d6f1d4
[ "Apache-2.0" ]
null
null
null
simsync/include/simsync/synchronization/thread_start.hpp
mariobadr/simsync-pmam
c541d2bf3a52eec8579e254a0300442bc3d6f1d4
[ "Apache-2.0" ]
null
null
null
#ifndef SIMSYNC_THREAD_START_HPP #define SIMSYNC_THREAD_START_HPP #include <simsync/synchronization/event.hpp> namespace simsync { class thread_start : public event { public: explicit thread_start(int32_t thread_id, thread_model &tm); transition synchronize() override; private: void print(std::ostream &stream...
19.894737
61
0.793651
mariobadr
1ac5f29f8be19da29a2f75af508c1f322ef4907d
296
cpp
C++
src/misc/memswap.cpp
Damdoshi/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
38
2016-07-30T09:35:19.000Z
2022-03-04T10:13:48.000Z
src/misc/memswap.cpp
Elania-Marvers/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
15
2017-02-12T19:20:52.000Z
2021-06-09T09:30:52.000Z
src/misc/memswap.cpp
Elania-Marvers/LibLapin
800e0f17ed8f3c47797c48feea4c280bb0e4bdc9
[ "BSD-3-Clause" ]
12
2016-10-06T09:06:59.000Z
2022-03-04T10:14:00.000Z
// Jason Brillante "Damdoshi" // Hanged Bunny Studio 2014-2018 // // Lapin library #include "lapin_private.h" void bunny_memswap(void *a, void *b, size_t s) { void *c = bunny_alloca(s); memcpy(c, a, s); memcpy(a, b, s); memcpy(b, c, s); bunny_freea(c); }
15.578947
32
0.577703
Damdoshi
1ac66153d28c9feb374678c860bffb6aca1c7739
4,534
inl
C++
include/ecst/context/system/instance/data_proxy/impl/base.inl
SuperV1234/ecst
b3c42e2c28978f1cd8ea620ade62613c6c875432
[ "AFL-3.0" ]
475
2016-05-03T13:34:30.000Z
2021-11-26T07:02:47.000Z
include/ecst/context/system/instance/data_proxy/impl/base.inl
vittorioromeo/ecst
b3c42e2c28978f1cd8ea620ade62613c6c875432
[ "AFL-3.0" ]
28
2016-08-30T06:37:40.000Z
2017-11-24T11:14:07.000Z
include/ecst/context/system/instance/data_proxy/impl/base.inl
vittorioromeo/ecst
b3c42e2c28978f1cd8ea620ade62613c6c875432
[ "AFL-3.0" ]
60
2016-05-11T22:16:15.000Z
2021-08-02T20:42:35.000Z
// Copyright (c) 2015-2016 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 // http://vittorioromeo.info | vittorio.romeo@outlook.com #pragma once #include "./base.hpp" #define ECST_IMPL_DP_BASE_TEMPLATE \ templat...
31.268966
79
0.571901
SuperV1234
1ac7e8aeb3dc27b7aa08ef5d61db26db632550de
4,784
cc
C++
media/audio/audio_output_dispatcher.cc
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2016-03-10T09:13:57.000Z
2016-03-10T09:13:57.000Z
media/audio/audio_output_dispatcher.cc
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2022-03-13T08:39:05.000Z
2022-03-13T08:39:05.000Z
media/audio/audio_output_dispatcher.cc
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2012 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 "media/audio/audio_output_dispatcher.h" #include "base/bind.h" #include "base/compiler_specific.h" #include "base/message_loop.h" #include "...
27.976608
77
0.718436
gavinp
1ac851422692a5f3ef1293a6065f0499859d4ede
3,589
cpp
C++
src/app.cpp
VIGameStudio/Particles
160beb20b3f23cf0973fd57043d901b3f01efa42
[ "MIT" ]
null
null
null
src/app.cpp
VIGameStudio/Particles
160beb20b3f23cf0973fd57043d901b3f01efa42
[ "MIT" ]
null
null
null
src/app.cpp
VIGameStudio/Particles
160beb20b3f23cf0973fd57043d901b3f01efa42
[ "MIT" ]
null
null
null
#include "app.hpp" /// App #include "imgui.h" #include "imgui-SFML.h" #include "alloc.hpp" #include "particlefx.hpp" #include "particle_editor.hpp" #include "vec2.hpp" #define MAX_PARTICLES 32 #define P_RADIUS 10 #define P_SQRADIUS P_RADIUS*P_RADIUS LinearAllocator* allocator; std::vector<ParticleEmitter*> particl...
24.414966
100
0.637503
VIGameStudio
1ac8b3251f1aa9e69553c678c880a19926989df8
1,503
hpp
C++
include/Lodtalk/Math.hpp
ronsaldo/lodtalk
4668e8923f508c8a9e87a00242ab67b26fb0c9a4
[ "MIT" ]
3
2017-02-10T18:18:58.000Z
2019-02-21T02:35:29.000Z
include/Lodtalk/Math.hpp
ronsaldo/lodtalk
4668e8923f508c8a9e87a00242ab67b26fb0c9a4
[ "MIT" ]
null
null
null
include/Lodtalk/Math.hpp
ronsaldo/lodtalk
4668e8923f508c8a9e87a00242ab67b26fb0c9a4
[ "MIT" ]
null
null
null
#ifndef LODTALK_MATH_HPP #define LODTALK_MATH_HPP #include "Lodtalk/ObjectModel.hpp" namespace Lodtalk { inline SmallIntegerValue divideRoundNeg(SmallIntegerValue dividend, SmallIntegerValue divisor) { // This algorithm was taken from the Squeak VM. assert(divisor != 0); if (dividend >= 0) { ...
22.102941
94
0.571524
ronsaldo
1ad0e382a2b2a74cf034d6474b5ff0b8f8b86f5a
1,669
hpp
C++
src/neuron/SwcNode.hpp
yzx9/NeuronSdfViewer
454164dfccf80b806aac3cd7cca09e2cb8bd3c2a
[ "MIT" ]
1
2021-12-31T10:29:56.000Z
2021-12-31T10:29:56.000Z
src/neuron/SwcNode.hpp
yzx9/NeuronSdfViewer
454164dfccf80b806aac3cd7cca09e2cb8bd3c2a
[ "MIT" ]
null
null
null
src/neuron/SwcNode.hpp
yzx9/NeuronSdfViewer
454164dfccf80b806aac3cd7cca09e2cb8bd3c2a
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <regex> #include <memory> class SwcNode { public: int id; int type; float x; float y; float z; float raidus; int parent; std::unique_ptr<SwcNode> child; std::unique_ptr<SwcNode> next; static bool try_parse(const std::string &s, std::uniq...
24.910448
78
0.461354
yzx9
1ad1c9ba27ea9312c984187f93241cd191ae6094
436
inl
C++
include/generator_python.inl
Three7Six/FastBinaryEncoding
2d74ad66afe1cd30988fbbde059a25a2d6f215c6
[ "MIT" ]
1
2019-11-16T17:50:52.000Z
2019-11-16T17:50:52.000Z
include/generator_python.inl
Three7Six/FastBinaryEncoding
2d74ad66afe1cd30988fbbde059a25a2d6f215c6
[ "MIT" ]
null
null
null
include/generator_python.inl
Three7Six/FastBinaryEncoding
2d74ad66afe1cd30988fbbde059a25a2d6f215c6
[ "MIT" ]
null
null
null
/*! \file generator_python.inl \brief Fast binary encoding Python generator inline implementation \author Ivan Shynkarenka \date 24.04.2018 \copyright MIT License */ namespace FBE { inline GeneratorPython::GeneratorPython(const std::string& input, const std::string& output, int indent, char space)...
25.647059
116
0.720183
Three7Six
1ada9add6985b6dd3426f201a064ccf6154cef73
7,724
cc
C++
content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
// Copyright 2014 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 "base/bind.h" #include "base/command_line.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop/message_lo...
35.59447
78
0.752201
kjthegod
1adff208083bea1d0805b338aabccdebbc09a1d9
315
inl
C++
src/readers/F3DExodusIIReader.inl
Meakk/f3d
40db15ab2a6500ea67bfee5d35714b5c5e2d993c
[ "BSD-3-Clause" ]
318
2021-11-14T02:22:32.000Z
2022-03-31T02:32:52.000Z
src/readers/F3DExodusIIReader.inl
Meakk/f3d
40db15ab2a6500ea67bfee5d35714b5c5e2d993c
[ "BSD-3-Clause" ]
223
2021-11-12T20:52:41.000Z
2022-03-29T21:35:18.000Z
src/readers/F3DExodusIIReader.inl
Meakk/f3d
40db15ab2a6500ea67bfee5d35714b5c5e2d993c
[ "BSD-3-Clause" ]
24
2021-11-12T22:12:24.000Z
2022-03-28T12:42:17.000Z
void ApplyCustomReader(vtkAlgorithm* reader, const std::string&) const override { vtkExodusIIReader* exReader = vtkExodusIIReader::SafeDownCast(reader); exReader->UpdateInformation(); exReader->SetAllArrayStatus(vtkExodusIIReader::NODAL, 1); exReader->SetAllArrayStatus(vtkExodusIIReader::ELEM_BLOCK, 1); }
39.375
79
0.8
Meakk
1ae6ee53a1b5bd07a80998f710a02123d3fe9285
5,254
hpp
C++
Altis_Life.Altis/config/Config_Process.hpp
TomLorenzi/AltasiaV2-Public
324e20c4730587de8f7e3eab8acbe9cb02912a1a
[ "MIT" ]
null
null
null
Altis_Life.Altis/config/Config_Process.hpp
TomLorenzi/AltasiaV2-Public
324e20c4730587de8f7e3eab8acbe9cb02912a1a
[ "MIT" ]
null
null
null
Altis_Life.Altis/config/Config_Process.hpp
TomLorenzi/AltasiaV2-Public
324e20c4730587de8f7e3eab8acbe9cb02912a1a
[ "MIT" ]
null
null
null
/* * class: * MaterialsReq (Needed to process) = Array - Format -> {{"ITEM CLASS",HOWMANY}} * MaterialsGive (Returned items) = Array - Format -> {{"ITEM CLASS",HOWMANY}} * Text (Progess Bar Text) = Localised String * NoLicenseCost (Cost to process w/o license) = Scalar * * Example for multip...
27.507853
85
0.533879
TomLorenzi
1ae9cfbf8cb82475063bd9410a9aa6fccb9208cf
64,799
cc
C++
deps/sparsehash/src/hashtable_unittest.cc
PelionIoT/twlib
7a2219924e66cb33810dad5a8314b0f0cff49018
[ "DOC", "MIT" ]
1
2017-09-15T19:48:30.000Z
2017-09-15T19:48:30.000Z
deps/sparsehash/src/hashtable_unittest.cc
PelionIoT/twlib
7a2219924e66cb33810dad5a8314b0f0cff49018
[ "DOC", "MIT" ]
null
null
null
deps/sparsehash/src/hashtable_unittest.cc
PelionIoT/twlib
7a2219924e66cb33810dad5a8314b0f0cff49018
[ "DOC", "MIT" ]
1
2019-10-23T08:48:56.000Z
2019-10-23T08:48:56.000Z
// Copyright (c) 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condi...
32.710247
91
0.621939
PelionIoT
1aeb56dbe4e30c69fbc1793cc1cc979b07f51758
3,955
cpp
C++
base/pbr/VulkanObjModel.cpp
wessles/vkmerc
cb087f425cdbc0b204298833474cf62874505388
[ "Unlicense" ]
6
2020-10-09T02:48:54.000Z
2021-07-30T06:31:20.000Z
base/pbr/VulkanObjModel.cpp
wessles/vkmerc
cb087f425cdbc0b204298833474cf62874505388
[ "Unlicense" ]
null
null
null
base/pbr/VulkanObjModel.cpp
wessles/vkmerc
cb087f425cdbc0b204298833474cf62874505388
[ "Unlicense" ]
null
null
null
#include "VulkanObjModel.h" #include <unordered_map> #include <filesystem> #include <iostream> #include <glm/glm.hpp> #include <glm/gtx/string_cast.hpp> #define TINYOBJLOADER_IMPLEMENTATION #include <tiny_obj_loader.h> #include "../VulkanMesh.h" #include "../scene/Scene.h" #include "PbrMaterial.h" static std::stri...
29.736842
159
0.668015
wessles
1aec5d14b869793dd0ebb8bd7d89960e250e6ada
2,321
cc
C++
depends/dbcommon/test/unit/common/test-tuple-batch-store.cc
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1
2020-05-11T01:39:13.000Z
2020-05-11T01:39:13.000Z
depends/dbcommon/test/unit/common/test-tuple-batch-store.cc
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1
2021-03-01T02:57:26.000Z
2021-03-01T02:57:26.000Z
depends/dbcommon/test/unit/common/test-tuple-batch-store.cc
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1
2020-05-03T07:29:21.000Z
2020-05-03T07:29:21.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 you under the Apache License, Version 2.0 (the * "License"); you ...
41.446429
80
0.744076
YangHao666666
8c1d6f83dd2669c716d71f751abe3b49418da6ad
3,375
cpp
C++
vector.cpp
csiro-robotics/Morphogenesis
4d390609f941a58f09529371d185a344573de35f
[ "BSD-3-Clause" ]
null
null
null
vector.cpp
csiro-robotics/Morphogenesis
4d390609f941a58f09529371d185a344573de35f
[ "BSD-3-Clause" ]
null
null
null
vector.cpp
csiro-robotics/Morphogenesis
4d390609f941a58f09529371d185a344573de35f
[ "BSD-3-Clause" ]
null
null
null
#include "vector.h" #include "matrix.h" #define VTYPE float Vector3DF &Vector3DF::operator*= (const MatrixF &op) { double *m = op.GetDataF (); float xa, ya, za; xa = x * float(*m++); ya = x * float(*m++); za = x * float(*m++); m++; xa += y * float(*m++); ya += y * float(*m++); za += y * float(*m++); m++; xa += ...
28.601695
92
0.47437
csiro-robotics
8c1dde0196518bd1550bee9b3f84249cf7060d1c
198
cpp
C++
test_index_reference.cpp
insertinterestingnamehere/cython_overload_except
00d76ad8020fcb21948545de8161da65f7f4acd8
[ "BSD-2-Clause" ]
null
null
null
test_index_reference.cpp
insertinterestingnamehere/cython_overload_except
00d76ad8020fcb21948545de8161da65f7f4acd8
[ "BSD-2-Clause" ]
null
null
null
test_index_reference.cpp
insertinterestingnamehere/cython_overload_except
00d76ad8020fcb21948545de8161da65f7f4acd8
[ "BSD-2-Clause" ]
null
null
null
#include "add.cpp" #include <iostream> int main(){ wrapped_int a = 3; long long b = 2; std::cout << a[b].val << std::endl; wrapped_int &temp = a[b]; std::cout << temp.val << std::endl; }
18
37
0.580808
insertinterestingnamehere
8c1e21fcc1bfc1f79fd2dad6a5aa8ff6dc21c3ff
2,280
cpp
C++
app/main.cpp
shivamakhauri04/midterm_project
4d062d90cb459d035fa9453aa837463b1e72f5a5
[ "MIT" ]
null
null
null
app/main.cpp
shivamakhauri04/midterm_project
4d062d90cb459d035fa9453aa837463b1e72f5a5
[ "MIT" ]
9
2019-10-19T06:55:30.000Z
2019-10-21T15:08:33.000Z
app/main.cpp
shivamakhauri04/midterm_project
4d062d90cb459d035fa9453aa837463b1e72f5a5
[ "MIT" ]
1
2019-10-19T02:12:38.000Z
2019-10-19T02:12:38.000Z
/** * @file main.cpp * @author Shivam Akhauri (Driver),Toyas Dhake (Navigator), * @date 20 October 2019 * @copyright 2019 Toyas Dhake, Shivam Akhauri * @brief Main file for implementation of the Depth Perception project. */ #include <dlib/opencv.h> #include <dlib/gui_widgets.h> #include <dlib/image_processing/frontal_...
38.644068
80
0.601316
shivamakhauri04
8c20e2958890ef25c6c2b2117176bf264b857fb7
5,608
cpp
C++
applications/SavageHutter/SlopeLimiters/TvbLimiter1D.cpp
hpgem/hpgem
b2f7ac6bdef3262af0c3e8559cb991357a96457f
[ "BSD-3-Clause-Clear" ]
5
2020-04-01T15:35:26.000Z
2022-02-22T02:48:12.000Z
applications/SavageHutter/SlopeLimiters/TvbLimiter1D.cpp
hpgem/hpgem
b2f7ac6bdef3262af0c3e8559cb991357a96457f
[ "BSD-3-Clause-Clear" ]
139
2020-01-06T12:42:24.000Z
2022-03-10T20:58:14.000Z
applications/SavageHutter/SlopeLimiters/TvbLimiter1D.cpp
hpgem/hpgem
b2f7ac6bdef3262af0c3e8559cb991357a96457f
[ "BSD-3-Clause-Clear" ]
4
2020-04-10T09:19:33.000Z
2021-08-21T07:20:42.000Z
/* This file forms part of hpGEM. This package has been developed over a number of years by various people at the University of Twente and a full list of contributors can be found at http://hpgem.org/about-the-code/team This code is distributed using BSD 3-Clause License. A copy of which can found below. Copyr...
43.472868
80
0.67582
hpgem
8c26d6f600c31e11a935c11e6908364b90d2dbf3
2,408
cpp
C++
old/extgcd.inc.cpp
kmyk/competitive-programming-library
77efa23a69f06202bb43f4dc6b0550e4cdb48e0b
[ "MIT" ]
55
2018-01-11T02:20:02.000Z
2022-03-24T06:18:54.000Z
number/extgcd.inc.cpp
Mohammad-Yasser/competitive-programming-library
4656ac0d625abce98b901965c7607c1b908b093f
[ "MIT" ]
10
2016-10-29T08:20:04.000Z
2021-02-27T13:14:53.000Z
number/extgcd.inc.cpp
Mohammad-Yasser/competitive-programming-library
4656ac0d625abce98b901965c7607c1b908b093f
[ "MIT" ]
11
2016-10-29T06:00:53.000Z
2021-06-16T14:32:43.000Z
/** * @brief extended gcd * @description for given a and b, find x, y and gcd(a, b) such that ax + by = 1 * @note O(log n) * @see https://topcoder.g.hatena.ne.jp/spaghetti_source/20130126/1359171466 */ tuple<ll, ll, ll> extgcd(ll a, ll b) { ll x = 0, y = 1; for (ll u = 1, v = 0; a; ) { ll q = b / a...
26.755556
80
0.475914
kmyk
8c28ff85a56ee2abce629feee801ca4185d9fd4e
355
cpp
C++
tests/mixed/mixed_invalid_unwrap_test.cpp
pacmancoder/exl
ffd66d30e76d60aa7e4efe75274e4a8a35427961
[ "BSL-1.0" ]
1
2019-05-02T12:00:50.000Z
2019-05-02T12:00:50.000Z
tests/mixed/mixed_invalid_unwrap_test.cpp
pacmancoder/exl
ffd66d30e76d60aa7e4efe75274e4a8a35427961
[ "BSL-1.0" ]
14
2019-02-13T17:21:07.000Z
2019-03-08T21:40:38.000Z
tests/mixed/mixed_invalid_unwrap_test.cpp
pacmancoder/exl
ffd66d30e76d60aa7e4efe75274e4a8a35427961
[ "BSL-1.0" ]
null
null
null
// Copyright (C) 2019 Vladislav Nikonov <mail@pacmancoder.xyz> // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt) #include <exl/mixed.hpp> #include <termination_test.hpp> void termination_test() { exl::mixed<char, i...
25.357143
83
0.715493
pacmancoder
8c2a7228c91fe29e32f4bdf0d3796f4e551b287c
5,812
hpp
C++
src/libv/diff/diff.hpp
cpplibv/libv
293e382f459f0acbc540de8ef6283782b38d2e63
[ "Zlib" ]
2
2018-04-11T03:07:03.000Z
2019-03-29T15:24:12.000Z
src/libv/diff/diff.hpp
cpplibv/libv
293e382f459f0acbc540de8ef6283782b38d2e63
[ "Zlib" ]
null
null
null
src/libv/diff/diff.hpp
cpplibv/libv
293e382f459f0acbc540de8ef6283782b38d2e63
[ "Zlib" ]
1
2021-06-13T06:39:06.000Z
2021-06-13T06:39:06.000Z
// Project: libv.diff, File: src/libv/diff/diff.hpp, Author: Császár Mátyás [Vader] #pragma once // libv #include <libv/utility/bytes/input_bytes.hpp> #include <libv/utility/bytes/output_bytes.hpp> // std #include <optional> #include <string> #include <vector> namespace libv { namespace diff { // -----------------...
39.808219
136
0.668789
cpplibv
8c2ad38fa61b19ad767dd011d39cf3a68dc734fd
2,690
cpp
C++
src/cpp/common-bio/Multiseq.cpp
UTbioinf/SMSC
0d5765518b3863d2363f264d9f256063c7f7ce71
[ "MIT" ]
null
null
null
src/cpp/common-bio/Multiseq.cpp
UTbioinf/SMSC
0d5765518b3863d2363f264d9f256063c7f7ce71
[ "MIT" ]
2
2019-05-31T06:36:36.000Z
2019-09-18T22:13:09.000Z
src/cpp/common-bio/Multiseq.cpp
UTbioinf/SMSC
0d5765518b3863d2363f264d9f256063c7f7ce71
[ "MIT" ]
1
2021-12-01T10:30:58.000Z
2021-12-01T10:30:58.000Z
#include <fstream> #include <cctype> #include "Multiseq.h" #include "util.h" namespace loon { void Fasta::save_fasta(std::ostream& out) { out << ">" << tag << tag_remaining << std::endl; for(size_t i = 0; i < seq.length(); i += 80) out << seq.substr(i, 80) << std::endl; } char Fasta::base_rc(char c) ...
24.907407
83
0.477695
UTbioinf
8c2b0f8c42e3757625f710420e30b7d152444f96
14,696
cpp
C++
LSL/GLUtils.cpp
AntonBogomolov/LightSpeedLimit
215d573f46eef63801cbd8df654f104401bae581
[ "MIT" ]
null
null
null
LSL/GLUtils.cpp
AntonBogomolov/LightSpeedLimit
215d573f46eef63801cbd8df654f104401bae581
[ "MIT" ]
null
null
null
LSL/GLUtils.cpp
AntonBogomolov/LightSpeedLimit
215d573f46eef63801cbd8df654f104401bae581
[ "MIT" ]
null
null
null
#include "global.h" #include "GLUtils.h" #include "GLShaderObject.h" #include "TextureManager.h" #include "Texture.h" #include "TextureAtlas.h" #include "VertexArray.h" #include "VertexBuffer.h" #include "SceneGraphNode.h" #include "ScreenObj.h" #include "VideoManeger.h" #include "DrawablePrimitive.h" CGLUtils* CGLUti...
37.394402
163
0.62187
AntonBogomolov
8c30e0dc1e6c398403e44f85fb9ee154f306f186
2,165
cc
C++
chrome/browser/media/router/mojo/media_router_mojo_metrics_unittest.cc
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
chrome/browser/media/router/mojo/media_router_mojo_metrics_unittest.cc
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
chrome/browser/media/router/mojo/media_router_mojo_metrics_unittest.cc
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
// Copyright 2016 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 "chrome/browser/media/router/mojo/media_router_mojo_metrics.h" #include "base/version.h" #include "testing/gtest/include/gtest/gtest.h" namespa...
49.204545
73
0.728868
google-ar
8c32011a805538118756eb62bf63bb51db53a544
377
cc
C++
below2.1/speeding.cc
danzel-py/Kattis-Problem-Archive
bce1929d654b1bceb104f96d68c74349273dd1ff
[ "Apache-2.0" ]
null
null
null
below2.1/speeding.cc
danzel-py/Kattis-Problem-Archive
bce1929d654b1bceb104f96d68c74349273dd1ff
[ "Apache-2.0" ]
null
null
null
below2.1/speeding.cc
danzel-py/Kattis-Problem-Archive
bce1929d654b1bceb104f96d68c74349273dd1ff
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main(){ int nu; cin>>nu; int t,p; cin>>t>>p; int mem, memp; int max = 0; for (int i = 0; i < nu-1; i++) { mem = t; memp = p; cin>>t>>p; if((p - memp)/(t-mem)>max){ max = (p - memp)/(t-mem); ...
15.08
37
0.37931
danzel-py
8c38b1f3f05a74824dc7ef74d8f65ded63d62a3a
263
hpp
C++
tools/mem_usage/mem_usage.hpp
LioQing/personal-utils
e24d1ea1510087797c6b85bae89a3801a2e77f3d
[ "Unlicense" ]
null
null
null
tools/mem_usage/mem_usage.hpp
LioQing/personal-utils
e24d1ea1510087797c6b85bae89a3801a2e77f3d
[ "Unlicense" ]
null
null
null
tools/mem_usage/mem_usage.hpp
LioQing/personal-utils
e24d1ea1510087797c6b85bae89a3801a2e77f3d
[ "Unlicense" ]
null
null
null
#pragma once #include <cstdint> namespace lio { enum MemArgs : uint8_t { USAGE = 0b001, COUNT = 0b010, PEAK = 0b100 }; extern size_t memory_count; extern size_t memory_used; extern size_t memory_peak; void print_mem_isage(uint8_t args = USAGE); }
13.842105
44
0.714829
LioQing
8c4025d9dbd5731fa3083db7d2c4fd5895e88a69
4,798
cpp
C++
Framework/Math/Scissor.cpp
dengwenyi88/Deferred_Lighting
b45b6590150a3119b0c2365f4795d93b3b4f0748
[ "MIT" ]
110
2017-06-23T17:12:28.000Z
2022-02-22T19:11:38.000Z
RunTest/Framework3/Math/Scissor.cpp
dtrebilco/ECSAtto
86a04f0bdc521c79f758df94250c1898c39213c8
[ "MIT" ]
null
null
null
RunTest/Framework3/Math/Scissor.cpp
dtrebilco/ECSAtto
86a04f0bdc521c79f758df94250c1898c39213c8
[ "MIT" ]
3
2018-02-12T00:16:18.000Z
2018-02-18T11:12:35.000Z
/* * * * * * * * * * * * * Author's note * * * * * * * * * * * *\ * _ _ _ _ _ _ _ _ _ _ _ _ * * |_| |_| |_| |_| |_|_ _|_| |_| |_| _|_|_|_|_| * * |_|_ _ _|_| |_| |_| |_|_|_|_|_| |_| |_| |_|_ _ _ * * |_|_|_|_|_| |_| |_| |_| |_| |_| |_| |_| |_...
32.418919
201
0.516048
dengwenyi88
8c402ea7a19d66f47675ff19cdb33761cb9c5fe1
10,767
cpp
C++
app/src/main/jni/comitton/PdfCrypt.cpp
mryp/ComittoNxA
9b46c267bff22c2090d75ac70b589f9a12d61457
[ "Unlicense" ]
14
2020-08-05T09:36:01.000Z
2022-02-23T01:48:18.000Z
app/src/main/jni/comitton/PdfCrypt.cpp
yuma2a/ComittoNxA-Continued
9d85c4f5753e534c3ff0cf83fe53df588872c8ff
[ "Unlicense" ]
1
2021-11-13T14:23:07.000Z
2021-11-13T14:23:07.000Z
app/src/main/jni/comitton/PdfCrypt.cpp
mryp/ComittoNxA
9b46c267bff22c2090d75ac70b589f9a12d61457
[ "Unlicense" ]
4
2021-04-21T02:56:50.000Z
2021-11-08T12:02:32.000Z
/* MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or...
24.414966
151
0.665181
mryp
8c4362e959450f80b6bf82e2f1ed5afb88ab06c5
13,332
cpp
C++
src/ui/inspectMode.cpp
averrin/lss
c2aa0486641fba15daceab3241122e387720c898
[ "MIT" ]
4
2018-07-09T20:53:06.000Z
2018-07-12T07:10:19.000Z
src/ui/inspectMode.cpp
averrin/lss
c2aa0486641fba15daceab3241122e387720c898
[ "MIT" ]
null
null
null
src/ui/inspectMode.cpp
averrin/lss
c2aa0486641fba15daceab3241122e387720c898
[ "MIT" ]
null
null
null
#include "ui/inspectMode.hpp" #include "ui/LSSApp.hpp" #include "ui/fragment.hpp" #include "lss/generator/room.hpp" #include "lss/utils.hpp" #include "ui/utils.hpp" auto F = [](std::string c) { return std::make_shared<Fragment>(c); }; bool InspectMode::processKey(KeyEvent event) { switch (event.getCode()) { case ...
41.6625
91
0.578533
averrin
8c43e0e106645fcd7d0bdf1e0d71a9925193356b
1,551
cc
C++
auxil/binpac/src/pac_datadep.cc
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
1
2021-03-06T19:51:07.000Z
2021-03-06T19:51:07.000Z
auxil/binpac/src/pac_datadep.cc
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
null
null
null
auxil/binpac/src/pac_datadep.cc
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
null
null
null
#include "pac_datadep.h" #include "pac_expr.h" #include "pac_id.h" #include "pac_type.h" DataDepElement::DataDepElement(DDE_Type type) : dde_type_(type), in_traversal(false) { } bool DataDepElement::Traverse(DataDepVisitor *visitor) { // Avoid infinite loop if ( in_traversal ) return true; if ( ! visitor->...
20.142857
66
0.704707
hugolin615
8c44271c7bf0cc4c2dbd268a407221645e9f8866
1,296
cxx
C++
Libraries/QtVgCommon/vgSwatchCache.cxx
PinkDiamond1/vivia
70f7fbed4b33b14d34de35c69b2b14df3514d720
[ "BSD-3-Clause" ]
14
2016-09-16T12:33:05.000Z
2021-02-14T02:16:33.000Z
Libraries/QtVgCommon/vgSwatchCache.cxx
PinkDiamond1/vivia
70f7fbed4b33b14d34de35c69b2b14df3514d720
[ "BSD-3-Clause" ]
44
2016-10-06T22:12:57.000Z
2021-01-07T19:39:07.000Z
Libraries/QtVgCommon/vgSwatchCache.cxx
PinkDiamond1/vivia
70f7fbed4b33b14d34de35c69b2b14df3514d720
[ "BSD-3-Clause" ]
17
2015-06-30T13:41:47.000Z
2021-11-22T17:38:48.000Z
// This file is part of ViViA, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/vivia/blob/master/LICENSE for details. #include "vgSwatchCache.h" #include <QCache> #include <QColor> #include <QPixmap> QTE_IMPLEMENT_D_FUNC(vgSwatchCache) /...
26.44898
79
0.536265
PinkDiamond1
8c443728e0b738837b7b6dab96af75f860b10cca
21,272
cc
C++
elang/compiler/analysis/method_analyzer_test.cc
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2018-01-27T22:40:53.000Z
2018-01-27T22:40:53.000Z
elang/compiler/analysis/method_analyzer_test.cc
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2016-01-29T00:54:49.000Z
2016-01-29T00:54:49.000Z
elang/compiler/analysis/method_analyzer_test.cc
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
null
null
null
// Copyright 2014-2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include <sstream> #include <string> #include <utility> #include <vector> #include "elang/compiler/analysis/analysis.h" #include "elan...
29.421853
80
0.599144
eval1749
8c4761fc6234aa0a84b2b3511d7fb746f566f793
9,649
cpp
C++
experiments/src/globimap_test_polygons_mask.cpp
mlaass/globimap
6bbcbf33cc39ed343662e6b98871dc6dfbc4648f
[ "MIT" ]
null
null
null
experiments/src/globimap_test_polygons_mask.cpp
mlaass/globimap
6bbcbf33cc39ed343662e6b98871dc6dfbc4648f
[ "MIT" ]
null
null
null
experiments/src/globimap_test_polygons_mask.cpp
mlaass/globimap
6bbcbf33cc39ed343662e6b98871dc6dfbc4648f
[ "MIT" ]
null
null
null
#include "globimap/counting_globimap.hpp" #include "globimap_test_config.hpp" #include <algorithm> #include <chrono> #include <filesystem> #include <fstream> #include <iostream> #include <limits> #include <math.h> #include <string> #include <highfive/H5File.hpp> #include <tqdm.hpp> #include <boost/geometry.hpp> #incl...
33.272414
79
0.5755
mlaass
8c4956b38e3a7b096e13e7c412ec0207db3912e4
58
cpp
C++
project/LogsLiteViewerCLI/ManageChannelsDialog.cpp
afronski/LogsLiteViewerCLI
cf95481b59b5e354e9f1d78e3168a91330c1210c
[ "MIT" ]
null
null
null
project/LogsLiteViewerCLI/ManageChannelsDialog.cpp
afronski/LogsLiteViewerCLI
cf95481b59b5e354e9f1d78e3168a91330c1210c
[ "MIT" ]
null
null
null
project/LogsLiteViewerCLI/ManageChannelsDialog.cpp
afronski/LogsLiteViewerCLI
cf95481b59b5e354e9f1d78e3168a91330c1210c
[ "MIT" ]
null
null
null
#include "StdAfx.h" #include "ManageChannelsDialog.h"
14.5
34
0.724138
afronski
8c4ae2f09ee13bd0829af2f0432da5c2187d79cf
267
hpp
C++
include/boomhs/game_config.hpp
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
2
2016-07-22T10:09:21.000Z
2017-09-16T06:50:01.000Z
include/boomhs/game_config.hpp
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
14
2016-08-13T22:45:56.000Z
2018-12-16T03:56:36.000Z
include/boomhs/game_config.hpp
bjadamson/BoomHS
60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4
[ "MIT" ]
null
null
null
#pragma once namespace boomhs { enum class GameGraphicsMode { Basic = 0, Medium, Advanced }; struct GameGraphicsSettings { GameGraphicsMode mode = GameGraphicsMode::Basic; bool disable_sunshafts = true; }; } // namespace boomhs
13.35
63
0.662921
bjadamson
8c5328e5fdeb3c8b024ba1539ad80c1d7ae43227
1,256
cpp
C++
day16/part1.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
day16/part1.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
day16/part1.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
#include "part1.hpp" using namespace std; vector<char> Part1::parse(const string &fileName) { const string line = getFileLines(fileName)[0]; return { line.begin(), line.end() }; } vector<char> checksum(const vector<char> &input, size_t targetSize) { vector<char> res; res.reserve(targetSize / 2); ...
28.545455
86
0.602707
Moremar
8c57260b688499deeb446882123cfda02314f283
2,941
cpp
C++
source/app/gui.cpp
emiyl/dumpling
48d76f5a4c035585683e1b414df2b66d5bb12e15
[ "MIT" ]
53
2020-04-11T15:49:21.000Z
2022-03-20T03:47:33.000Z
source/app/gui.cpp
emiyl/dumpling
48d76f5a4c035585683e1b414df2b66d5bb12e15
[ "MIT" ]
22
2020-08-14T19:45:13.000Z
2022-03-30T00:49:27.000Z
source/app/gui.cpp
emiyl/dumpling
48d76f5a4c035585683e1b414df2b66d5bb12e15
[ "MIT" ]
11
2020-04-19T09:19:08.000Z
2022-03-21T20:16:54.000Z
#include "gui.h" #define NUM_LINES (16) #define LINE_LENGTH (128) #define MEMORY_HEAP_TAG (0x0002B2B2) static char textBuffer[NUM_LINES][LINE_LENGTH]; static uint32_t currLineNumber = 0; static uint8_t* frameBufferTVFrontPtr = nullptr; static uint8_t* frameBufferTVBackPtr = nullptr; static uint32_t frameBufferTVSize...
32.318681
103
0.743285
emiyl
8c57cdf94eb7b2e42d37e44f18e63a7b93c55d6b
146
cpp
C++
C03_ClassStructure/Main.cpp
Nolukdi/IGME309-2201
988d8bcae34613e5d88cb2cc92dafe0c1e8ff05a
[ "MIT" ]
2
2020-08-20T14:54:45.000Z
2020-09-13T17:37:34.000Z
C03_ClassStructure/Main.cpp
Nolukdi/IGME309-2201
988d8bcae34613e5d88cb2cc92dafe0c1e8ff05a
[ "MIT" ]
null
null
null
C03_ClassStructure/Main.cpp
Nolukdi/IGME309-2201
988d8bcae34613e5d88cb2cc92dafe0c1e8ff05a
[ "MIT" ]
26
2020-08-20T17:39:34.000Z
2021-02-27T16:27:06.000Z
#include "Main.h" int main(void) { AppClass* pApp = new AppClass(); pApp->Run(); if (pApp) { delete pApp; pApp = nullptr; } return 0; }
11.230769
33
0.59589
Nolukdi
8c58bcb88b8c8533858b93b5b5226d86efd5d4b7
11,114
cpp
C++
Lecture9/visualizer/theCamera.cpp
Zenologos/IDS6938-SimulationTechniques
b3630852b2edb3ec4e176b26f0de56b77b460a2a
[ "Apache-2.0" ]
null
null
null
Lecture9/visualizer/theCamera.cpp
Zenologos/IDS6938-SimulationTechniques
b3630852b2edb3ec4e176b26f0de56b77b460a2a
[ "Apache-2.0" ]
null
null
null
Lecture9/visualizer/theCamera.cpp
Zenologos/IDS6938-SimulationTechniques
b3630852b2edb3ec4e176b26f0de56b77b460a2a
[ "Apache-2.0" ]
null
null
null
#include "theCamera.h" /** @brief Constructs a camera * * Constructs a camera object by setting the position, look at position, up vector. * Puts together a model matrix, and projection matrix. * * @param width - float - width of window * @param height - float - height of window * @return void. */ Visualizer::th...
26.089202
166
0.699028
Zenologos
8c5946d276ae225928ba41370ad04228e7d08352
2,506
cc
C++
src/structured-interface/detail/debug.cc
project-arcana/structured-interface
56054310e08a3ae98f8065a90b454e23a36d60d9
[ "MIT" ]
1
2020-12-09T13:55:07.000Z
2020-12-09T13:55:07.000Z
src/structured-interface/detail/debug.cc
project-arcana/structured-interface
56054310e08a3ae98f8065a90b454e23a36d60d9
[ "MIT" ]
1
2019-09-29T09:02:03.000Z
2019-09-29T09:02:03.000Z
src/structured-interface/detail/debug.cc
project-arcana/structured-interface
56054310e08a3ae98f8065a90b454e23a36d60d9
[ "MIT" ]
null
null
null
#include "debug.hh" #include <iomanip> #include <iostream> #include <clean-core/string.hh> #include <structured-interface/element_tree.hh> #include <structured-interface/properties.hh> #include <structured-interface/recorded_ui.hh> namespace { void print_property(cc::string_view prefix, size_t prop_id, cc::span<std...
31.325
142
0.570231
project-arcana
8c5f17b009c88df2381cc99e3110295474d7802e
1,699
cpp
C++
src/graph/src/FlowEdge.cpp
karz0n/algorithms
b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8
[ "MIT" ]
1
2020-04-18T14:34:16.000Z
2020-04-18T14:34:16.000Z
src/graph/src/FlowEdge.cpp
karz0n/algorithms
b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8
[ "MIT" ]
null
null
null
src/graph/src/FlowEdge.cpp
karz0n/algorithms
b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8
[ "MIT" ]
null
null
null
/** * This program is free software: you can redistribute it and/or modify * it under the terms of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT WARRANTY OF ANY KIND; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
17.515464
73
0.626839
karz0n
8c5fb83452c076d7e7240ae989fb6e1cc6e3ee1c
6,783
cpp
C++
NoFTL_v1.0/shoreMT-KIT/src/workload/ssb/qpipe/qpipe_qsupplier.cpp
DBlabRT/NoFTL
cba8b5a6d9c422bdd39b01575244e557cbd12e43
[ "Unlicense" ]
4
2019-01-24T02:00:23.000Z
2021-03-17T11:56:59.000Z
NoFTL_v1.0/shoreMT-KIT/src/workload/ssb/qpipe/qpipe_qsupplier.cpp
DBlabRT/NoFTL
cba8b5a6d9c422bdd39b01575244e557cbd12e43
[ "Unlicense" ]
null
null
null
NoFTL_v1.0/shoreMT-KIT/src/workload/ssb/qpipe/qpipe_qsupplier.cpp
DBlabRT/NoFTL
cba8b5a6d9c422bdd39b01575244e557cbd12e43
[ "Unlicense" ]
4
2019-01-22T10:35:55.000Z
2021-03-17T11:57:23.000Z
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. ...
28.2625
78
0.579685
DBlabRT
8c669eaca48d5321dcbb261122b229507e08e344
358
cpp
C++
src/geoarrow.cpp
paleolimbot/geoarrow
45033ffe9cd9e0d21ee223361f0ac5eaf1f4330a
[ "MIT" ]
42
2021-11-26T01:17:46.000Z
2022-03-26T21:00:28.000Z
src/geoarrow.cpp
paleolimbot/geoarrow
45033ffe9cd9e0d21ee223361f0ac5eaf1f4330a
[ "MIT" ]
3
2022-03-02T18:18:38.000Z
2022-03-23T20:06:22.000Z
src/geoarrow.cpp
paleolimbot/geoarrow
45033ffe9cd9e0d21ee223361f0ac5eaf1f4330a
[ "MIT" ]
null
null
null
#include "port.h" #ifdef IS_LITTLE_ENDIAN #define GEOARROW_ENDIAN 0x01 #else #define GEOARROW_ENDIAN 0x00 #endif #define FASTFLOAT_ASSERT(x) #include "internal/fast_float/fast_float.h" #include "ryu/ryu.h" #define geoarrow_d2s_fixed_n geoarrow_d2sfixed_buffered_n // For implementations of release callbacks #define ...
18.842105
57
0.812849
paleolimbot
8c6dfa01b68b414515c098f39383abadd82a6003
822
cc
C++
courses/algos/main_project/balgosrbkw/04-graphs/undirected/cycle.cc
obs145628/ml-notebooks
08a64962e106ec569039ab204a7ae4c900783b6b
[ "MIT" ]
1
2020-10-29T11:26:00.000Z
2020-10-29T11:26:00.000Z
courses/algos/main_project/balgosrbkw/04-graphs/undirected/cycle.cc
obs145628/ml-notebooks
08a64962e106ec569039ab204a7ae4c900783b6b
[ "MIT" ]
5
2021-03-18T21:33:45.000Z
2022-03-11T23:34:50.000Z
courses/algos/main_project/balgosrbkw/04-graphs/undirected/cycle.cc
obs145628/ml-notebooks
08a64962e106ec569039ab204a7ae4c900783b6b
[ "MIT" ]
1
2019-12-23T21:50:02.000Z
2019-12-23T21:50:02.000Z
#include "cycle.hh" Cycle::Cycle(const Graph &g) : _marked(g.vcount(), false), _cycle(false) { for (std::size_t v = 0; v < g.vcount(); ++v) if (!_marked[v]) dfs(g, v, v); } // v is the vertex we want to visit, and u it's predecessor // Use a boolean array to keep track of visited vertices // Before visiti...
34.25
79
0.63382
obs145628
8c705db0081bed8fcbb08d2420152574960a6d18
424
cpp
C++
target_teensy3/src/blink.cpp
tulth/diy-acura-bluetooth
8fe9d99ef1c6860a092cb7e17240ba1436d06a3d
[ "MIT" ]
null
null
null
target_teensy3/src/blink.cpp
tulth/diy-acura-bluetooth
8fe9d99ef1c6860a092cb7e17240ba1436d06a3d
[ "MIT" ]
null
null
null
target_teensy3/src/blink.cpp
tulth/diy-acura-bluetooth
8fe9d99ef1c6860a092cb7e17240ba1436d06a3d
[ "MIT" ]
null
null
null
#include <stdbool.h> #include <stdint.h> #include <WProgram.h> // #include <core_pins.h> #define LED_PIN 13 extern "C" int main(void) { setup(); while (1) { loop(); } } void setup() { // initialize the digital pin as an output. pinMode(LED_PIN, OUTPUT); } void loop() { digitalWrite(LED_PIN, HIGH);...
14.62069
51
0.622642
tulth
8c70c08d30aff00462e2d8455b0c8417e7ad4fd2
1,204
hpp
C++
include/rt1w/integrator.hpp
guerarda/rt1w
2fa13326e0a745214fb1a9fdc49a345c1407b6f3
[ "MIT" ]
null
null
null
include/rt1w/integrator.hpp
guerarda/rt1w
2fa13326e0a745214fb1a9fdc49a345c1407b6f3
[ "MIT" ]
null
null
null
include/rt1w/integrator.hpp
guerarda/rt1w
2fa13326e0a745214fb1a9fdc49a345c1407b6f3
[ "MIT" ]
null
null
null
#pragma once #include "rt1w/geometry.hpp" #include "rt1w/spectrum.hpp" #include "rt1w/sptr.hpp" #include "rt1w/task.hpp" #include <string> struct Interaction; struct Ray; struct Sampler; struct Scene; Spectrum UniformSampleOneLight(const Interaction &isect, const sptr<Scene> &scene, ...
30.871795
77
0.532392
guerarda
8c70ed625e9b363370c6115a733c78d4243393d5
5,925
cpp
C++
src/HAL/gpio.cpp
QIU1995NONAME/Q20161106_Project0
f321c52496996e94bc8bd52805721e922da4151c
[ "MIT" ]
4
2016-11-11T04:47:05.000Z
2019-01-23T14:14:00.000Z
src/HAL/gpio.cpp
QIU1995NONAME/Q20161106_Project0
f321c52496996e94bc8bd52805721e922da4151c
[ "MIT" ]
null
null
null
src/HAL/gpio.cpp
QIU1995NONAME/Q20161106_Project0
f321c52496996e94bc8bd52805721e922da4151c
[ "MIT" ]
null
null
null
#include "gpio.h" namespace QIU { namespace PJ0 { // 目前已经被初始化的GPIO口 // 12 8 4 0 // GPIO_A 0001-1110 1110-0001 // GPIO_B 1111-0101 1110-0000 // GPIO_C 0000-0000 1111-1111 // GPIO_D 1111-1111 1111-0011 // GPIO_E 1111-1111 1001-1111 // GPIO_F 1111-0000 0011-1111 // GPIO_G 0111-0100 0011-1111 // GPIO_Ini...
28.349282
71
0.741941
QIU1995NONAME
8c77496126f518e77faa8e0bdc5bdb90393f9d1e
545
cpp
C++
uri-online-judge/1457/main.cpp
olegon/online-judges
4ec27c8940ae492ce71aec0cc9ed944b094bce55
[ "MIT" ]
12
2017-11-30T11:10:45.000Z
2022-01-26T23:49:19.000Z
uri-online-judge/1457/main.cpp
olegon/online-judges
4ec27c8940ae492ce71aec0cc9ed944b094bce55
[ "MIT" ]
null
null
null
uri-online-judge/1457/main.cpp
olegon/online-judges
4ec27c8940ae492ce71aec0cc9ed944b094bce55
[ "MIT" ]
4
2017-11-25T03:13:32.000Z
2019-08-16T08:08:10.000Z
/* Oráculo de Alexandria https://www.urionlinejudge.com.br/judge/pt/problems/view/1457 */ #include <cstdio> using namespace std; typedef unsigned long long int uint64; uint64 k_fat(int N, int K); int main(void) { int T; scanf("%d\n", &T); while (T-- > 0) { int N, K = 0; char C; ...
14.72973
61
0.522936
olegon
8c79eddf42d2b47d20743277e8f32b5375aa0671
35,329
cpp
C++
source/main.cpp
LiquidFenrir/MinesweeperFPS
63f52b9c0e2ee6c9e9d6a489535fd2411df17637
[ "MIT" ]
8
2020-08-25T19:30:41.000Z
2021-12-10T20:11:28.000Z
source/main.cpp
LiquidFenrir/MinesweeeperFPS
63f52b9c0e2ee6c9e9d6a489535fd2411df17637
[ "MIT" ]
1
2020-08-28T14:52:51.000Z
2020-08-29T12:28:33.000Z
source/main.cpp
LiquidFenrir/MinesweeeperFPS
63f52b9c0e2ee6c9e9d6a489535fd2411df17637
[ "MIT" ]
2
2020-08-26T18:07:28.000Z
2021-12-10T20:11:24.000Z
#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS #ifdef __SWITCH__ #include <switch.h> #endif #include <enet/enet.h> #include <glm/gtc/matrix_transform.hpp> #include <cstdio> #include <cstdlib> #include <cstring> #include <memory> #include <tuple> #include <array> #include <algorithm> extern "C" { #include <sys/stat.h> ...
37.664179
190
0.538651
LiquidFenrir
8c7a128f7d22b05646abc7b8cd63a65e7e15b2d8
1,403
hpp
C++
include/wav.hpp
hackner-security/swd
52376221afbe1968cf269ab5d08d18ffad41fba1
[ "MIT" ]
4
2020-09-26T12:35:28.000Z
2021-06-13T12:22:03.000Z
include/wav.hpp
hackner-security/swd
52376221afbe1968cf269ab5d08d18ffad41fba1
[ "MIT" ]
null
null
null
include/wav.hpp
hackner-security/swd
52376221afbe1968cf269ab5d08d18ffad41fba1
[ "MIT" ]
1
2020-10-27T12:11:46.000Z
2020-10-27T12:11:46.000Z
// Copyright 2020 Barger M., Knoll M., Kofler L. #ifndef INCLUDE_WAV_HPP_ #define INCLUDE_WAV_HPP_ #include <string> #include <iostream> #include <vector> #include <fstream> #include <iterator> #include "log.hpp" // WAV Header #define WAV_HEADER_SIZE 44 struct WAV_HEADER { // RIFF Header char riff_magic_num[4];...
18.460526
52
0.71846
hackner-security
8c7e18ec40572d542a476ed7a78fb3aeec471826
1,862
cpp
C++
CSES/RangeQueries/forest_queries.cpp
PranavReddyP16/DSA-Templates
cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b
[ "MIT" ]
null
null
null
CSES/RangeQueries/forest_queries.cpp
PranavReddyP16/DSA-Templates
cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b
[ "MIT" ]
null
null
null
CSES/RangeQueries/forest_queries.cpp
PranavReddyP16/DSA-Templates
cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b
[ "MIT" ]
null
null
null
#include "bits/stdc++.h" #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; using namespace std::chrono; #define ll long long #define ld long double #define sz(c) ((ll)c.size()) #define ordered_set tree<int, null_type,less<int>, rb_tree_tag,t...
21.905882
97
0.489259
PranavReddyP16
8c7fa0ba5640be3d5bedf217754da3122904a68d
6,484
cpp
C++
test/accumulator_test.cpp
4paradigm/prpc
2d264b696dd08191346535b852bb2b5391506a20
[ "Apache-2.0" ]
2
2021-08-24T03:35:11.000Z
2021-09-08T15:17:07.000Z
test/accumulator_test.cpp
4paradigm/prpc
2d264b696dd08191346535b852bb2b5391506a20
[ "Apache-2.0" ]
null
null
null
test/accumulator_test.cpp
4paradigm/prpc
2d264b696dd08191346535b852bb2b5391506a20
[ "Apache-2.0" ]
null
null
null
#include <cstdlib> #include <cstdio> #include <glog/logging.h> #include <gtest/gtest.h> #include <sys/prctl.h> #include "macro.h" #include "Aggregator.h" #include "SumAggregator.h" #include "AvgAggregator.h" #include "ArithmeticMaxAggregator.h" #include "ArithmeticMinAggregator.h" #include "TimerAggregator.h" #includ...
33.251282
95
0.633251
4paradigm
8c853586a6deb2cf6b298b53ca4c42d13471719f
492
cpp
C++
coding_blocks/source/blocks_example.cpp
koobonil/CodingStudy
5a727bbcf30f30e04075ba9f86cbb9b0463a6f96
[ "MIT" ]
2
2018-03-05T03:08:40.000Z
2020-09-13T21:57:05.000Z
coding_blocks/source/blocks_example.cpp
koobonil/CodingStudy
5a727bbcf30f30e04075ba9f86cbb9b0463a6f96
[ "MIT" ]
null
null
null
coding_blocks/source/blocks_example.cpp
koobonil/CodingStudy
5a727bbcf30f30e04075ba9f86cbb9b0463a6f96
[ "MIT" ]
null
null
null
#include <boss.hpp> #include "blocks_example.hpp" #include <resource.hpp> //////////////////////////////////////////////////////////////////////////////// #define LEVEL_NUMBER LEVEL_USER //////////////////////////////////////////////////////////////////////////////// #define STEP_NUMBER 0 MISSION_DECLARE("STEP_0") ...
20.5
80
0.495935
koobonil
8c857129f7642d7c420a4cc4ebadfc5cc2e64258
7,901
cpp
C++
src/source_v4l.cpp
folkertvanheusden/constatus
7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6
[ "Apache-2.0" ]
5
2021-07-15T11:39:25.000Z
2022-02-25T06:14:58.000Z
src/source_v4l.cpp
folkertvanheusden/constatus
7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6
[ "Apache-2.0" ]
2
2021-09-27T11:13:42.000Z
2021-10-10T01:02:39.000Z
src/source_v4l.cpp
folkertvanheusden/constatus
7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6
[ "Apache-2.0" ]
2
2021-06-11T09:19:47.000Z
2022-02-18T22:22:01.000Z
// (C) 2017-2021 by folkert van heusden, released under Apache License v2.0 // some code from https://01.org/linuxgraphics/gfx-docs/drm/media/uapi/v4l/v4l2grab.c.html #include "config.h" #if HAVE_LIBV4L2 == 1 #include <fcntl.h> #include <libv4l2.h> #include <math.h> #include <poll.h> #include <cstring> #include <unistd...
27.625874
673
0.638021
folkertvanheusden
8c868b5c7c47d77d06ac8bfde89b5964fefb96b7
998
cc
C++
codeforces/1305/b.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
codeforces/1305/b.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
codeforces/1305/b.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
// https://codeforces.com/contest/1305/problem/B #include <bits/stdc++.h> using namespace std; using ll = long long; using ii = tuple<int, int>; using vi = vector<ll>; using vii = vector<ii>; using vvi = vector<vi>; using si = set<ll>; int main() { cin.tie(0), ios::sync_with_stdio(0); string s; cin >> s; int ...
23.209302
73
0.44489
Ashindustry007
8c8b6e448037068d45c3c82817fdb283584b6487
1,703
cpp
C++
src/States/CharacterCreatorState.cpp
Miguel-EpicJS/state-rpg-tutorial
c909fe7ffee2cad4d3aac88afef9c5dc21b965ce
[ "MIT" ]
null
null
null
src/States/CharacterCreatorState.cpp
Miguel-EpicJS/state-rpg-tutorial
c909fe7ffee2cad4d3aac88afef9c5dc21b965ce
[ "MIT" ]
null
null
null
src/States/CharacterCreatorState.cpp
Miguel-EpicJS/state-rpg-tutorial
c909fe7ffee2cad4d3aac88afef9c5dc21b965ce
[ "MIT" ]
null
null
null
#include "../../includes/CharacterCreatorState.h" CharacterCreatorState::CharacterCreatorState(std::vector<Character *> *characterList, unsigned &activeCharacter, std::stack<State *> *states) : activeCharacter(activeCharacter), State(), maxCharacter(5) { this->characterList = characterList; this->states = stat...
24.328571
202
0.574868
Miguel-EpicJS
8c8c6c8c4c976dd83dd54907346ddc4fb781091d
318
hpp
C++
include/graphics/ITexture.hpp
icebreakersentertainment/ice_engine
52a8313bc266c053366bdf554b5dc27a54ddcb25
[ "MIT" ]
null
null
null
include/graphics/ITexture.hpp
icebreakersentertainment/ice_engine
52a8313bc266c053366bdf554b5dc27a54ddcb25
[ "MIT" ]
null
null
null
include/graphics/ITexture.hpp
icebreakersentertainment/ice_engine
52a8313bc266c053366bdf554b5dc27a54ddcb25
[ "MIT" ]
1
2019-06-11T03:41:48.000Z
2019-06-11T03:41:48.000Z
#ifndef ITEXTURE_H_ #define ITEXTURE_H_ #include <string> #include "graphics/IImage.hpp" namespace ice_engine { namespace graphics { class ITexture { public: virtual ~ITexture() = default; virtual const std::string& name() const = 0; virtual const IImage* image() const = 0; }; } } #endif /* ITEXTURE_H_ */
12.230769
45
0.704403
icebreakersentertainment
8c8d01d8f0d937d872aa1f5c7cdd8b2f0154c847
789
cpp
C++
bzoj/1002.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
3
2017-09-17T09:12:50.000Z
2018-04-06T01:18:17.000Z
bzoj/1002.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
null
null
null
bzoj/1002.cpp
swwind/code
25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0
[ "WTFPL" ]
null
null
null
#include <iostream> #include <cstdio> using namespace std; struct data{ int a[101],len; }; int n; data mul(data a,int k){ for(int i = 1; i <= a.len; i++) a.a[i] *= k; for(int i = 1; i <= a.len; i++) a.a[i+1] += a.a[i] / 10, a.a[i] %= 10; if(a.a[a.len+1]) a.len++; return a; } data sub(data a, data b){ a.a[1...
17.533333
37
0.452471
swwind
8c8d1f9abdb9515ef3093631370b47555314a638
3,808
cc
C++
src/input/KeyboardSettings.cc
lutris/openmsx
91ed35400c7b4c8c460004710736af9abc4dde29
[ "Naumen", "Condor-1.1", "MS-PL" ]
5
2015-02-27T21:42:28.000Z
2021-10-10T23:36:08.000Z
src/input/KeyboardSettings.cc
lutris/openmsx
91ed35400c7b4c8c460004710736af9abc4dde29
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/input/KeyboardSettings.cc
lutris/openmsx
91ed35400c7b4c8c460004710736af9abc4dde29
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2015-06-15T09:57:56.000Z
2017-05-14T01:11:48.000Z
#include "KeyboardSettings.hh" #include "EnumSetting.hh" #include "BooleanSetting.hh" #include "memory.hh" #include <cassert> namespace openmsx { KeyboardSettings::KeyboardSettings(CommandController& commandController) : alwaysEnableKeypad(make_unique<BooleanSetting>( commandController, "kbd_numkeypad_always_enabl...
32.827586
126
0.731618
lutris
8c908a13dfbcf49908db3a036d4f761ad506ee19
17,731
cc
C++
src/core/cachedshardsimpl.cc
aching/Clusterlib
da81a653e9630b61214dbf7c37c75196300cf606
[ "Apache-2.0" ]
2
2015-03-31T17:57:46.000Z
2019-06-18T17:29:46.000Z
src/core/cachedshardsimpl.cc
aching/Clusterlib
da81a653e9630b61214dbf7c37c75196300cf606
[ "Apache-2.0" ]
null
null
null
src/core/cachedshardsimpl.cc
aching/Clusterlib
da81a653e9630b61214dbf7c37c75196300cf606
[ "Apache-2.0" ]
1
2020-04-24T05:23:25.000Z
2020-04-24T05:23:25.000Z
/* * Copyright (c) 2010 Yahoo! Inc. 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 * Unless required by applicable law or a...
29.067213
79
0.585246
aching
8c93edd04204894383ab9063c5318815054dd273
83,478
cpp
C++
src/toldialoghump.cpp
JoaoQPereira/motion_manager
de853e9341c482a0c13e0ba7b78429c019890507
[ "MIT" ]
null
null
null
src/toldialoghump.cpp
JoaoQPereira/motion_manager
de853e9341c482a0c13e0ba7b78429c019890507
[ "MIT" ]
null
null
null
src/toldialoghump.cpp
JoaoQPereira/motion_manager
de853e9341c482a0c13e0ba7b78429c019890507
[ "MIT" ]
null
null
null
#include "../include/motion_manager/toldialoghump.hpp" namespace motion_manager { using namespace Qt; TolDialogHUMP::TolDialogHUMP(QWidget *parent) : QDialog(parent), ui(new Ui::TolDialogHUMP) { ui->setupUi(this); QObject::connect(ui->checkBox_approach, SIGNAL(stateChanged(int)), this, SLOT(checkAp...
54.066062
315
0.628788
JoaoQPereira
8c995366b02402a232627d44ea3ff64138e1a6db
4,413
cpp
C++
repos/plywood/src/reflect/ply-reflect/TypeSynthesizer.cpp
boldsort/plywood
ab85a187e9e9d42d55cd3bd24be000898fd50234
[ "MIT" ]
742
2020-05-26T12:34:24.000Z
2022-03-14T07:22:36.000Z
repos/plywood/src/reflect/ply-reflect/TypeSynthesizer.cpp
boldsort/plywood
ab85a187e9e9d42d55cd3bd24be000898fd50234
[ "MIT" ]
18
2020-05-27T20:29:15.000Z
2022-01-17T00:19:45.000Z
repos/plywood/src/reflect/ply-reflect/TypeSynthesizer.cpp
boldsort/plywood
ab85a187e9e9d42d55cd3bd24be000898fd50234
[ "MIT" ]
51
2020-05-26T15:30:00.000Z
2021-12-15T01:02:25.000Z
/*------------------------------------ ///\ Plywood C++ Framework \\\/ https://plywood.arc80.com/ ------------------------------------*/ #include <ply-reflect/Core.h> #include <ply-reflect/TypeSynthesizer.h> #include <ply-reflect/FormatDescriptor.h> #include <ply-reflect/SynthTypeDeduplicator.h> namespace ply { ...
38.373913
97
0.640834
boldsort
8ca3e44fb3afb84b0ade55a42d2758e71f2d1b2e
1,910
cpp
C++
Paperworks/src/Platform/OpenGL/OpenGLRendererAPI.cpp
codenobacon4u/paperworks
0e96cd2fb6070a2387ddd36aaa327b04733234fa
[ "MIT" ]
1
2019-08-15T18:58:54.000Z
2019-08-15T18:58:54.000Z
Paperworks/src/Platform/OpenGL/OpenGLRendererAPI.cpp
codenobacon4u/paperworks
0e96cd2fb6070a2387ddd36aaa327b04733234fa
[ "MIT" ]
null
null
null
Paperworks/src/Platform/OpenGL/OpenGLRendererAPI.cpp
codenobacon4u/paperworks
0e96cd2fb6070a2387ddd36aaa327b04733234fa
[ "MIT" ]
null
null
null
#include "pwpch.h" #include "OpenGLRendererAPI.h" #include <glad/glad.h> namespace Paperworks { void OpenGLMessageCallback( unsigned source, unsigned type, unsigned id, unsigned severity, int length, const char* message, const void* userParam) { switch (severity) { case GL_DEBUG_SEVERITY_HIGH: ...
27.285714
126
0.742932
codenobacon4u
8ca44f36d5ebacb5cef0d8b9e03e7f90c366e5f5
763
cpp
C++
src/hexview/view/player.cpp
ejrh/hex
3c063ce142e6b62fb0f92f71bc94280305b53322
[ "MIT" ]
7
2015-09-15T13:20:23.000Z
2020-12-07T10:14:57.000Z
src/hexview/view/player.cpp
ejrh/hex
3c063ce142e6b62fb0f92f71bc94280305b53322
[ "MIT" ]
null
null
null
src/hexview/view/player.cpp
ejrh/hex
3c063ce142e6b62fb0f92f71bc94280305b53322
[ "MIT" ]
1
2018-09-07T00:54:35.000Z
2018-09-07T00:54:35.000Z
#include "common.h" #include "hexview/view/player.h" namespace hex { Player::Player(int id, const std::string& name): id(id), name(name) { } void Player::grant_view(Faction::pointer faction, bool allow) { if (allow) faction_view.insert(faction->id); else faction_view.erase(faction->id); } ...
22.441176
70
0.686763
ejrh
8ca50759f3edb895b34ce913275ee93732491906
8,473
cpp
C++
Softrast/src/SoftwareRasterizer/texture_load.cpp
RickvanMiltenburg/SoftRast
e14b74804c052bb448058808cbb6dd06616ba585
[ "MIT" ]
null
null
null
Softrast/src/SoftwareRasterizer/texture_load.cpp
RickvanMiltenburg/SoftRast
e14b74804c052bb448058808cbb6dd06616ba585
[ "MIT" ]
null
null
null
Softrast/src/SoftwareRasterizer/texture_load.cpp
RickvanMiltenburg/SoftRast
e14b74804c052bb448058808cbb6dd06616ba585
[ "MIT" ]
null
null
null
/* SoftRast software rasterizer, by Rick van Miltenburg Software rasterizer created for fun and educational purposes. --- Copyright (c) 2015 Rick van Miltenburg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
36.83913
461
0.571698
RickvanMiltenburg
8cb1b9ffa9f5b3e7ec621aefc9ed6a2a16422d91
2,888
hpp
C++
network/configuration.hpp
agnesnatasya/Be-Tree
516c97c1a4ee68346e301277cfc318bb07a0c1b7
[ "BSD-2-Clause" ]
null
null
null
network/configuration.hpp
agnesnatasya/Be-Tree
516c97c1a4ee68346e301277cfc318bb07a0c1b7
[ "BSD-2-Clause" ]
null
null
null
network/configuration.hpp
agnesnatasya/Be-Tree
516c97c1a4ee68346e301277cfc318bb07a0c1b7
[ "BSD-2-Clause" ]
null
null
null
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*- #ifndef _NETWORK_CONFIGURATION_H_ #define _NETWORK_CONFIGURATION_H_ //#include "replication/common/viewstamp.h" #include <fstream> #include <stdbool.h> #include <string> #include <vector> using std::string; namespace network { struct ServerAddress { ...
26.990654
77
0.607341
agnesnatasya
8cb486af18aba5622fb729bbd92a89b3fd5aecd8
19,252
cpp
C++
falcon/src/main/c/src/haplotypecaller/com_falconcomputing_genomics_haplotypecaller_FalconSmithWaterman.cpp
FCS-holding/gatk4
6dd3c78c455980ccd67bb600f1f50660c9ae4365
[ "BSD-3-Clause" ]
null
null
null
falcon/src/main/c/src/haplotypecaller/com_falconcomputing_genomics_haplotypecaller_FalconSmithWaterman.cpp
FCS-holding/gatk4
6dd3c78c455980ccd67bb600f1f50660c9ae4365
[ "BSD-3-Clause" ]
null
null
null
falcon/src/main/c/src/haplotypecaller/com_falconcomputing_genomics_haplotypecaller_FalconSmithWaterman.cpp
FCS-holding/gatk4
6dd3c78c455980ccd67bb600f1f50660c9ae4365
[ "BSD-3-Clause" ]
null
null
null
#include <jni.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <emmintrin.h> #include <immintrin.h> #include <xmmintrin.h> #include "com_falconcomputing_genomics_haplotypecaller_FalconSmithWaterman.h" #include "Common.h" #include "smithwaterman/avx2_impl.h" jfieldID state_list_...
37.094412
267
0.617806
FCS-holding
8cb6c29e8ae2ff198dabd14817f916210c9ad420
554
cpp
C++
Sid's Levels/Level - 2/Arrays/MissingNumber.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
14
2021-08-22T18:21:14.000Z
2022-03-08T12:04:23.000Z
Sid's Levels/Level - 2/Arrays/MissingNumber.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
1
2021-10-17T18:47:17.000Z
2021-10-17T18:47:17.000Z
Sid's Levels/Level - 2/Arrays/MissingNumber.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
5
2021-09-01T08:21:12.000Z
2022-03-09T12:13:39.000Z
class Solution { public: int missingNumber(vector<int>& nums) { //OM GAN GANAPATHAYE NAMO NAMAH //JAI SHRI RAM //JAI BAJRANGBALI //AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA int sumOfArray = 0; int actualSum = 0; for(int i = 0; i < nums...
25.181818
73
0.490975
Tiger-Team-01
8cbbcc9381916ada850f388d1f3e4995f1eec20a
29,023
cxx
C++
tools/bundle_adjust_tracks.cxx
dstoup/maptk
04e8b65147f147b833bf936e9c770fd52168100d
[ "BSD-3-Clause" ]
null
null
null
tools/bundle_adjust_tracks.cxx
dstoup/maptk
04e8b65147f147b833bf936e9c770fd52168100d
[ "BSD-3-Clause" ]
null
null
null
tools/bundle_adjust_tracks.cxx
dstoup/maptk
04e8b65147f147b833bf936e9c770fd52168100d
[ "BSD-3-Clause" ]
null
null
null
/*ckwg +29 * Copyright 2014 by Kitware, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of...
37.304627
117
0.654584
dstoup
8cc0a3bb1780fe3de0e882f2f10fc812d3c612b7
2,226
cc
C++
src/tests/cartoWeakptr_test/weakptr_test.cc
charbeljc/soma-io
17548eb8eafdcb82d20ea6fba760856f279d7424
[ "CECILL-B" ]
3
2020-05-13T04:15:29.000Z
2021-08-28T18:13:35.000Z
src/tests/cartoWeakptr_test/weakptr_test.cc
charbeljc/soma-io
17548eb8eafdcb82d20ea6fba760856f279d7424
[ "CECILL-B" ]
15
2018-10-30T16:52:14.000Z
2022-02-15T12:34:00.000Z
src/tests/cartoWeakptr_test/weakptr_test.cc
charbeljc/soma-io
17548eb8eafdcb82d20ea6fba760856f279d7424
[ "CECILL-B" ]
3
2019-12-15T07:23:16.000Z
2021-10-05T14:09:09.000Z
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
31.352113
75
0.709344
charbeljc
8cc104b9be9c6db26cbebdc42f2c3a5075eeb286
521
cpp
C++
02-Arrays/OddOccurrencesInArray.cpp
hNrChVz/codility-lessons-solution
b76e802c97ed95feb69a1038736db6d494418777
[ "FSFAP" ]
null
null
null
02-Arrays/OddOccurrencesInArray.cpp
hNrChVz/codility-lessons-solution
b76e802c97ed95feb69a1038736db6d494418777
[ "FSFAP" ]
null
null
null
02-Arrays/OddOccurrencesInArray.cpp
hNrChVz/codility-lessons-solution
b76e802c97ed95feb69a1038736db6d494418777
[ "FSFAP" ]
null
null
null
#include <vector> #include <algorithm> using namespace std; /* My trick here, assuming that all the assumptions are always true, is that sort the array first: std::sort (A.begin(), A.end()); After sorting, iterate until it finds an unmatched pair. Time complexity: O(NlogN) NOTE: (trust that) std:sort will use the...
17.965517
95
0.644914
hNrChVz
8cc10b87b958a738ba1f182a930f278bfa21147d
1,487
cc
C++
navicat_patcher/KeystoneAssembler.cc
cntangt/navicat_keygen_tools
1b0d73fb602b8029bbe0cdfe2b8793832d296147
[ "Linux-OpenIB" ]
1
2021-05-06T09:36:08.000Z
2021-05-06T09:36:08.000Z
navicat_patcher/KeystoneAssembler.cc
cntangt/navicat_keygen_tools
1b0d73fb602b8029bbe0cdfe2b8793832d296147
[ "Linux-OpenIB" ]
null
null
null
navicat_patcher/KeystoneAssembler.cc
cntangt/navicat_keygen_tools
1b0d73fb602b8029bbe0cdfe2b8793832d296147
[ "Linux-OpenIB" ]
null
null
null
#include "KeystoneAssembler.h" namespace nkg { KeystoneAssembler::KeystoneAssembler(const KeystoneEngine& Engine) noexcept : m_Engine(Engine) {} [[nodiscard]] std::vector<uint8_t> KeystoneAssembler::GenerateMachineCode(std::string_view AssemblyCode, uint64_t Address) const { ARL::Resource...
36.268293
136
0.652993
cntangt
8cc244b5c24a95fe7cb08001f05e85bbc5db8240
1,119
cpp
C++
UVa/696.cpp
aege-projects/competitive-programming
3bd83367b6cfbdb7587045895762bf5160801be9
[ "MIT" ]
null
null
null
UVa/696.cpp
aege-projects/competitive-programming
3bd83367b6cfbdb7587045895762bf5160801be9
[ "MIT" ]
null
null
null
UVa/696.cpp
aege-projects/competitive-programming
3bd83367b6cfbdb7587045895762bf5160801be9
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int k1[500][500], k2[500][500]; for (int i = 0; i < 500; i++) { for (int j = 0; j < 500; j++) { k1[i][j] = 0; k2[i][j] = 1; } } for (int i = 0; i < 500; i++) { for (int j = (i%2 == 0 ? 0 : 1); j < 500; j += 2) { k1[i][j] = 1; k2[i][j] = ...
18.048387
119
0.37891
aege-projects
8cc42ecf48be716d641944445851cda959d556c1
4,806
cpp
C++
unistatscore/analyser.cpp
goldim/unistats
e8dd54e46f84422d868c942367f0103949791ede
[ "MIT" ]
null
null
null
unistatscore/analyser.cpp
goldim/unistats
e8dd54e46f84422d868c942367f0103949791ede
[ "MIT" ]
null
null
null
unistatscore/analyser.cpp
goldim/unistats
e8dd54e46f84422d868c942367f0103949791ede
[ "MIT" ]
null
null
null
#include "analyser.h" #include <array> namespace stats { using std::string; Analyser::Analyser() { } void Analyser::addSample(const Sample &sample) { string sampleStr = "Выборка: "; string homogeneity; if (sample.getVariation() < 17) { homogeneity = "абсолютно однородная"; } else i...
27.152542
126
0.477528
goldim
8cc43f5e95370fe6e456795979436ab96c9e99f8
21,847
cpp
C++
Engine/ModuleScene.cpp
solidajenjo/CyberPimpEngine
da4fc5d22bc7c52a45794ea73e2bac903d893178
[ "MIT" ]
null
null
null
Engine/ModuleScene.cpp
solidajenjo/CyberPimpEngine
da4fc5d22bc7c52a45794ea73e2bac903d893178
[ "MIT" ]
null
null
null
Engine/ModuleScene.cpp
solidajenjo/CyberPimpEngine
da4fc5d22bc7c52a45794ea73e2bac903d893178
[ "MIT" ]
null
null
null
#include "GameObject.h" #include "ModuleScene.h" #include "ModuleFrameBuffer.h" #include "ModuleRender.h" #include "ModuleTextures.h" #include "ModuleEditorCamera.h" #include "ModuleSpacePartitioning.h" #include "ModuleFileSystem.h" #include "ModuleEditor.h" #include "SubModuleEditorGameViewPort.h" #include "SubModuleE...
30.092287
170
0.692589
solidajenjo
bc45567f3986675ca83a8974de72fa177d32cf91
2,516
cpp
C++
readDataAndCheckForMagic.cpp
ohio813/shutdownonlan
80df7789368cfcfd20a65b67585bca3264a7064a
[ "BSD-3-Clause" ]
1
2015-06-26T04:18:29.000Z
2015-06-26T04:18:29.000Z
readDataAndCheckForMagic.cpp
ohio813/shutdownonlan
80df7789368cfcfd20a65b67585bca3264a7064a
[ "BSD-3-Clause" ]
null
null
null
readDataAndCheckForMagic.cpp
ohio813/shutdownonlan
80df7789368cfcfd20a65b67585bca3264a7064a
[ "BSD-3-Clause" ]
null
null
null
#include "stdafx.h" #include "getMACAddresses.h" #include "globals.h" #include "log.h" DWORD readDataAndCheckForMagic(SOCKET oSocket) { BYTE abBuffer[4096]; int iBytesReceived = recv(oSocket, (char*)abBuffer, sizeof(abBuffer), 0); if (iBytesReceived == SOCKET_ERROR) { DWORD dwErrorCode = WSAGetLas...
38.121212
112
0.57035
ohio813
bc473eb1ec1839eb1ce250b533de11c6809b93f5
170
cpp
C++
shore/shore-mt/src/fc/fc-noinline.cpp
anshsarkar/TailBench
25845756aee9a892229c25b681051591c94daafd
[ "MIT" ]
3
2018-01-25T00:51:56.000Z
2022-01-07T15:09:38.000Z
shore/shore-mt/src/fc/fc-noinline.cpp
anshsarkar/TailBench
25845756aee9a892229c25b681051591c94daafd
[ "MIT" ]
1
2021-11-25T18:08:22.000Z
2021-11-25T18:08:22.000Z
shore/shore-mt/src/fc/fc-noinline.cpp
anshsarkar/TailBench
25845756aee9a892229c25b681051591c94daafd
[ "MIT" ]
3
2018-06-08T08:36:27.000Z
2021-12-26T20:36:16.000Z
#include <pthread.h> extern "C" void cpu_info_dtrace_global_hook(long volatile* /*ready*/) { } extern "C" void cpu_info_dtrace_thread_hook(long volatile* /*cpuid*/) { }
34
73
0.735294
anshsarkar
bc47e2a4c2137c0604933599c59e235b177940f2
503
cc
C++
test/abc218/e.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
test/abc218/e.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
test/abc218/e.cc
nryotaro/at_c
8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c
[ "MIT" ]
null
null
null
#include "abc218/e.cc" #include <gtest/gtest.h> TEST(abc218e, 1) { vector<int> a = {1, 1, 1, 3, 4}, b = {2, 3, 4, 2, 2}; vector<ll> c = {1ll, 1ll, 1ll, 2ll, 2ll}; EXPECT_EQ(4, solve(4, 5, a, b, c)); } TEST(abc218e, 2) { vector<int> a = {1, 2, 3}, b = {2, 3, 1}; vector<ll> c = {1ll, 0ll, -1ll}; ...
25.15
57
0.487078
nryotaro
bc525eb9076f9df4abccd9831c629d833264106d
3,254
cc
C++
KM/03code/cpp/chenshuo/muduo-udns/Resolver.cc
wangcy6/weekly.github.io
f249bed5cf5a2b14d798ac33086cea0c1efe432e
[ "Apache-2.0" ]
10
2019-03-17T10:13:04.000Z
2021-03-03T03:23:34.000Z
KM/03code/cpp/chenshuo/muduo-udns/Resolver.cc
wangcy6/weekly.github.io
f249bed5cf5a2b14d798ac33086cea0c1efe432e
[ "Apache-2.0" ]
44
2018-12-14T02:35:47.000Z
2021-02-06T09:12:10.000Z
KM/03code/cpp/chenshuo/muduo-udns/Resolver.cc
wangcy6/weekly
f249bed5cf5a2b14d798ac33086cea0c1efe432e
[ "Apache-2.0" ]
null
null
null
#include "Resolver.h" #include <muduo/base/Logging.h> #include <muduo/net/Channel.h> #include <muduo/net/EventLoop.h> #include <boost/bind.hpp> #include "udns.h" #include <assert.h> #include <stdio.h> namespace { int init_udns() { static bool initialized = false; if (!initialized) ::dns_init(NULL, 0); init...
21.693333
88
0.646281
wangcy6
bc596efd29d8c8952d674e4b4ba9b8dfbe40fa85
321
cpp
C++
Nowcoder/NC21308.cpp
anine09/ACM
e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6
[ "MIT" ]
null
null
null
Nowcoder/NC21308.cpp
anine09/ACM
e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6
[ "MIT" ]
null
null
null
Nowcoder/NC21308.cpp
anine09/ACM
e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6
[ "MIT" ]
null
null
null
#include<iostream> #include<algorithm> using namespace std; int num[100000]; int n; int main(){ cin>>n; for (int i = 0; i < n; i++) { cin >> num[i]; } stable_sort(num, num + n); for (int i = 0; i < n - 1;i++){ cout << num[i] << " "; } cout << num[n-1]; return 0; ...
13.956522
35
0.457944
anine09
bc5f8e81ee3b5ff6fc609ba640976ca682a98d52
353
cpp
C++
src/gameworld/gameworld/global/activity/impl/activityguildquestion.cpp
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
3
2021-12-16T13:57:28.000Z
2022-03-26T07:50:08.000Z
src/gameworld/gameworld/global/activity/impl/activityguildquestion.cpp
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
null
null
null
src/gameworld/gameworld/global/activity/impl/activityguildquestion.cpp
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
1
2022-03-26T07:50:11.000Z
2022-03-26T07:50:11.000Z
#include "activityguildquestion.hpp" #include "scene/activityshadow/activityshadow.hpp" #include "world.h" #include "config/sharedconfig/sharedconfig.h" ActivityGuildQuestion::ActivityGuildQuestion(ActivityManager *activity_manager) : Activity(activity_manager, ACTIVITY_TYPE_GUILD_QUESTION) { } ActivityGuildQuestio...
22.0625
79
0.827195
mage-game
bc60a71070e33b23c341211f6be6acef487b5401
11,813
cpp
C++
src/core/device_server.cpp
guidebee/irobot
261d334d7c16971d791840588abc2904a1d83eaa
[ "MIT" ]
null
null
null
src/core/device_server.cpp
guidebee/irobot
261d334d7c16971d791840588abc2904a1d83eaa
[ "MIT" ]
5
2020-07-10T07:53:38.000Z
2020-07-10T07:53:39.000Z
src/core/device_server.cpp
guidebee/irobot
261d334d7c16971d791840588abc2904a1d83eaa
[ "MIT" ]
null
null
null
// // Created by James Shen on 25/3/20. // Copyright (c) 2020 GUIDEBEE IT. All rights reserved // #include "device_server.hpp" #include <cassert> #include <cinttypes> #include <cstdio> #include "config.hpp" #include "platform/net.hpp" #include "platform/command.hpp" #include "util/log.hpp" #define SOCKET_NAME "irob...
33.751429
94
0.587065
guidebee
bc627c86509985097bb2ce5f74a5833d4bb66931
619
cpp
C++
Fuji/Source/Drivers/PS2/MFDebug_PS2.cpp
TurkeyMan/fuji
afd6a26c710ce23965b088ad158fe916d6a1a091
[ "BSD-2-Clause" ]
35
2015-01-19T22:07:48.000Z
2022-02-21T22:17:53.000Z
Fuji/Source/Drivers/PS2/MFDebug_PS2.cpp
TurkeyMan/fuji
afd6a26c710ce23965b088ad158fe916d6a1a091
[ "BSD-2-Clause" ]
1
2022-02-23T09:34:15.000Z
2022-02-23T09:34:15.000Z
Fuji/Source/Drivers/PS2/MFDebug_PS2.cpp
TurkeyMan/fuji
afd6a26c710ce23965b088ad158fe916d6a1a091
[ "BSD-2-Clause" ]
4
2015-05-11T03:31:35.000Z
2018-09-27T04:55:57.000Z
#include "Fuji_Internal.h" #if MF_DEBUG == MF_DRIVER_PS2 #include "MFInput_Internal.h" #include <stdio.h> MF_API void MFDebug_Message(const char *pMessage) { printf("%s\n", pMessage); } MF_API void MFDebug_DebugAssert(const char *pReason, const char *pMessage, const char *pFile, int line) { MFDebu...
21.344828
104
0.693053
TurkeyMan
bc631af571d4d59ee18692a1e9a4491217976c7e
674
cc
C++
POJ/2752_Seek the Name, Seek the Fame/2752.cc
pdszhh/ACM
956b3d03a5d3f070ef24c940b7459f5cccb11d6c
[ "MIT" ]
1
2019-05-05T03:51:20.000Z
2019-05-05T03:51:20.000Z
POJ/2752_Seek the Name, Seek the Fame/2752.cc
pdszhh/ACM
956b3d03a5d3f070ef24c940b7459f5cccb11d6c
[ "MIT" ]
null
null
null
POJ/2752_Seek the Name, Seek the Fame/2752.cc
pdszhh/ACM
956b3d03a5d3f070ef24c940b7459f5cccb11d6c
[ "MIT" ]
null
null
null
#include <iostream> #include <stack> #include <cstdio> #include <cstring> using namespace std; int len; char S[400010]; int nextval[400010]; void get_nextval() { for (int k = nextval[0] = -1, j = 0; j != len; ) { if (k == -1 or S[j] == S[k]) nextval[++j] = ++k; else k = ne...
18.722222
54
0.437685
pdszhh
bc65b5eaf8257f09f0912d4f0e058887d2081775
9,592
hpp
C++
include/public/coherence/lang/HeapAnalyzer.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-01T21:38:30.000Z
2021-11-03T01:35:11.000Z
include/public/coherence/lang/HeapAnalyzer.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
1
2020-07-24T17:29:22.000Z
2020-07-24T18:29:04.000Z
include/public/coherence/lang/HeapAnalyzer.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-10T18:40:58.000Z
2022-02-18T01:23:40.000Z
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #ifndef COH_HEAP_ANALYZER_HPP #define COH_HEAP_ANALYZER_HPP #include "coherence/lang/interface_spec.hpp" #include "coherence/lang/Object.hpp" ...
32.515254
90
0.541389
chpatel3
bc69518352aa45fe18a7ff51e828967abd605efe
3,554
hpp
C++
qi/async.hpp
arntanguy/libqi
7f3e1394cb26126b26fa7ff54d2de1371a1c9f96
[ "BSD-3-Clause" ]
61
2015-01-08T08:05:28.000Z
2022-01-07T16:47:47.000Z
qi/async.hpp
arntanguy/libqi
7f3e1394cb26126b26fa7ff54d2de1371a1c9f96
[ "BSD-3-Clause" ]
30
2015-04-06T21:41:18.000Z
2021-08-18T13:24:51.000Z
qi/async.hpp
arntanguy/libqi
7f3e1394cb26126b26fa7ff54d2de1371a1c9f96
[ "BSD-3-Clause" ]
64
2015-02-23T20:01:11.000Z
2022-03-14T13:31:20.000Z
#pragma once /** ** Copyright (C) 2012-2016 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QI_ASYNC_HPP_ #define _QI_ASYNC_HPP_ #include <qi/eventloop.hpp> #include <qi/future.hpp> #include <qi/strand.hpp> namespace qi { // some required forward declaration namespace detail { template <typename F>...
34.504854
126
0.728756
arntanguy
bc6c6b0d6b0840dca12c91056363243de192adf1
6,251
cpp
C++
src/libs/qlib/qdmparams.cpp
3dhater/Racer
d7fe4014b1efefe981528547649dc397da7fa780
[ "Unlicense" ]
null
null
null
src/libs/qlib/qdmparams.cpp
3dhater/Racer
d7fe4014b1efefe981528547649dc397da7fa780
[ "Unlicense" ]
null
null
null
src/libs/qlib/qdmparams.cpp
3dhater/Racer
d7fe4014b1efefe981528547649dc397da7fa780
[ "Unlicense" ]
1
2021-01-03T16:16:47.000Z
2021-01-03T16:16:47.000Z
/* * QDMParams - encapsulate DMparams type * 08-09-98: Created! * (C) MG/RVG */ #include <qlib/dmparams.h> #include <qlib/debug.h> DEBUG_ENABLE #define DME(f,s) if((f)!=DM_SUCCESS)qerr(s) QDMParams::QDMParams() { p=0; #ifndef WIN32 DME(dmParamsCreate(&p),"QDMParams ctor; can't allocate DMparams"); #endif } ...
25.618852
79
0.468725
3dhater