hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a262f7b192a34e3efee1f74fc4223861f275b0fd | 4,487 | cpp | C++ | src/server/protocol/ServerProtocol.cpp | zminor/Zony_CPP | 311c75a3d6acebb7f4265b63813b19eeaa9d8926 | [
"MIT"
] | null | null | null | src/server/protocol/ServerProtocol.cpp | zminor/Zony_CPP | 311c75a3d6acebb7f4265b63813b19eeaa9d8926 | [
"MIT"
] | null | null | null | src/server/protocol/ServerProtocol.cpp | zminor/Zony_CPP | 311c75a3d6acebb7f4265b63813b19eeaa9d8926 | [
"MIT"
] | null | null | null |
#include "ServerProtocol.h"
#include "../../utils/Utils.h"
namespace HttpServer
{
ServerProtocol::ServerProtocol(
Socket::Adapter &sock,
const ServerSettings &settings,
ServerControls &controls
) noexcept
: sock(sock), settings(settings), controls(controls)
{
}
ServerProtocol::ServerPro... | 23.615789 | 86 | 0.640517 | zminor |
a264baaa6da8b663d483dfc76c2506d201409a6f | 2,434 | hpp | C++ | include/domain/structure/field/svector_center.hpp | hyperpower/Nablla | 5a9be9f3b064a235572a1a2c9c5c2c19118697c5 | [
"MIT"
] | null | null | null | include/domain/structure/field/svector_center.hpp | hyperpower/Nablla | 5a9be9f3b064a235572a1a2c9c5c2c19118697c5 | [
"MIT"
] | null | null | null | include/domain/structure/field/svector_center.hpp | hyperpower/Nablla | 5a9be9f3b064a235572a1a2c9c5c2c19118697c5 | [
"MIT"
] | null | null | null | #ifndef _S_VECTOR_CENTER_HPP_
#define _S_VECTOR_CENTER_HPP_
#include "sfield.hpp"
#include "utility/tinyformat.hpp"
#include "algebra/array/multi_array.hpp"
#include <limits>
namespace carpio{
template<St DIM, class FIELD>
class SVectorCenter_{
public:
typedef SIndex_<DIM> Index;
typedef SGrid_<DIM> GridB... | 21.927928 | 68 | 0.554232 | hyperpower |
a27073b60d9cad11e32d5c469bca677e37901975 | 3,951 | cpp | C++ | src_test/test_utils/TestCase.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_test/test_utils/TestCase.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_test/test_utils/TestCase.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* TestCase.cpp
*
* Created on: 2018/05/06
* Author: iizuka
*/
#include "test_utils/TestCase.h"
#include "test_utils/TestGroup.h"
#include "test_utils/TestGroupActions.h"
#include "test_utils/Check.h"
#include "test_utils/TestEnv.h"
#include "test_utils/TestParams.h"
#include "base/UnicodeString.h"
#incl... | 21.95 | 146 | 0.647684 | alinous-core |
a2746799b5f0e0552105b05d98da248b16a6d79b | 6,463 | cpp | C++ | lib/dirac_domain_wall.cpp | Marcogarofalo/quda | 7dd7ba316d5f872d1a332bdf55a2204a1a4a7dda | [
"MIT"
] | null | null | null | lib/dirac_domain_wall.cpp | Marcogarofalo/quda | 7dd7ba316d5f872d1a332bdf55a2204a1a4a7dda | [
"MIT"
] | null | null | null | lib/dirac_domain_wall.cpp | Marcogarofalo/quda | 7dd7ba316d5f872d1a332bdf55a2204a1a4a7dda | [
"MIT"
] | null | null | null | #include <iostream>
#include <dirac_quda.h>
#include <dslash_quda.h>
#include <blas_quda.h>
namespace quda {
DiracDomainWall::DiracDomainWall(const DiracParam ¶m) :
DiracWilson(param, 5),
m5(param.m5),
kappa5(0.5 / (5.0 + m5)),
Ls(param.Ls)
{
}
DiracDomainWall::DiracDomainWall(con... | 28.852679 | 111 | 0.63763 | Marcogarofalo |
a276a5c5b571915bbb078380db42a824cf878ed6 | 2,822 | cpp | C++ | modules/core/src/intrinsic.cpp | shreddered/imagestego | 633b41bce2e653a3e8a46b812f05af814088ea51 | [
"MIT"
] | 2 | 2020-10-10T11:44:40.000Z | 2020-10-25T01:55:21.000Z | modules/core/src/intrinsic.cpp | shreddered/imagestego | 633b41bce2e653a3e8a46b812f05af814088ea51 | [
"MIT"
] | 9 | 2020-09-21T20:56:58.000Z | 2021-01-26T13:04:05.000Z | modules/core/src/intrinsic.cpp | shreddered/imagestego | 633b41bce2e653a3e8a46b812f05af814088ea51 | [
"MIT"
] | 2 | 2021-01-24T13:49:51.000Z | 2021-03-13T23:14:15.000Z | /*
* This file is a part of imagestego library.
*
* Copyright (c) 2020-2021 Dmitry Kalinin <x.shreddered.x@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrict... | 30.673913 | 81 | 0.739546 | shreddered |
a278813e4ddaccac4036a265740e6d7bd98c0dcc | 688 | cpp | C++ | win32/src/Display.cpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/src/Display.cpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/src/Display.cpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | #include "swt/widgets/Display.hpp"
#include <windows.h>
#include <iostream>
namespace swt
{
int Display::readAndDispatch()
{
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return static_cast<int>... | 17.2 | 50 | 0.55814 | deianvn |
a27a370fd9ee3abfa131633d8c39a1198ca07edf | 416 | cpp | C++ | alex/chapter5/5.8_max_element.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | alex/chapter5/5.8_max_element.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | alex/chapter5/5.8_max_element.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | //例5.8
//用函数求一个矩阵中的最大元
#include <iostream>
using namespace std;
int main()
{
int max_value(int array[3][4]); //函数声明
int a[3][4]={{11,32,45,67},{22,44,66,88},{15,72,43,37}}; //定义数组并初始化
cout<<"max_value is"<<max_value(a)<<endl; //输出最大值
return 0;
}
int max_value(int array[3][4])
{
int i,j,max;
max=array[0][0];
for(i=0;... | 20.8 | 68 | 0.605769 | Alexhhhc |
a2840ffffa6f81dec80b567d6c793b5d06851f60 | 24,378 | hpp | C++ | include/boost/text/normalize.hpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | include/boost/text/normalize.hpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | include/boost/text/normalize.hpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | #ifndef BOOST_TEXT_NORMALIZE_HPP
#define BOOST_TEXT_NORMALIZE_HPP
#include <boost/text/utility.hpp>
#include <boost/text/detail/normalization_data.hpp>
#include <boost/container/static_vector.hpp>
#include <algorithm>
namespace boost { namespace text {
namespace detail {
template<typename Iter, std::... | 36.330849 | 89 | 0.533145 | jan-moeller |
a287bde9e3020f15b712a9521be0a95bb82b6aea | 277 | cpp | C++ | A-set/405A. Gravity Flip/405A. Gravity Flip.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | 1 | 2020-04-13T00:45:25.000Z | 2020-04-13T00:45:25.000Z | A-set/405A. Gravity Flip/405A. Gravity Flip.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | null | null | null | A-set/405A. Gravity Flip/405A. Gravity Flip.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int c[n-1];
for (int i=0;i<n;i++)
cin >> c[i];
sort(c,c+n);
for (int i=0;i<n;i++)
cout << c[i] << " " ;
return 0;
} | 17.3125 | 30 | 0.418773 | AhmedRamadan6 |
a2942b9f952745a967812b3fde5c4e6ddeac6068 | 12,519 | cpp | C++ | computation.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 5 | 2021-02-16T07:50:47.000Z | 2021-09-14T00:17:13.000Z | computation.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 7 | 2021-02-17T00:03:09.000Z | 2021-10-05T14:46:22.000Z | computation.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 2 | 2020-10-02T18:08:17.000Z | 2021-06-18T09:03:01.000Z | // All functions here should be unit and should not have dependencies on the core marxan files.
#include <algorithm>
#include "computation.hpp"
#include "marxan.hpp"
#include "utils.hpp"
namespace marxan {
// Sums all connectivity edges for a pu.
double connectionCost1(const sconnections& connections, doub... | 35.974138 | 162 | 0.455627 | hotzevzl |
a2948dac22b52450e64e88418bbf4ea6981b03ad | 442 | cc | C++ | src/interpreter/command/mc-cmd-list.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | src/interpreter/command/mc-cmd-list.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | src/interpreter/command/mc-cmd-list.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | #include "command/mc-cmd-list.h"
#include <cstdio>
void mcCmdList::help(void){
fprintf(stdout, "Usage: list\n");
fprintf(stdout, " lists opend urls or alias\n");
}
mcLanguageState mcCmdList::parse(mcScanner& scanner, mcIPerformer* performer){
mcToken token = scanner.tokenize();
if(token.id != MC_TOKEN_EOL) {
f... | 26 | 78 | 0.717195 | babynewton |
a2948e60903235901f2f0b6f06b045b1eb45a3e8 | 19,455 | cpp | C++ | Source/BWEB/Station.cpp | Cmccrave/CMProtoBot | 220cddaf41724004daf5aace5b48a07e28931279 | [
"MIT"
] | 32 | 2017-03-04T19:38:13.000Z | 2022-03-16T02:03:01.000Z | libs/BWEB/Source/Station.cpp | krogenth/AdditionalPylons | 60a2ba5503857de9c6aafa5261e911f39ad0ccf1 | [
"MIT"
] | 39 | 2022-01-10T22:23:20.000Z | 2022-03-31T03:56:21.000Z | libs/BWEB/Source/Station.cpp | krogenth/AdditionalPylons | 60a2ba5503857de9c6aafa5261e911f39ad0ccf1 | [
"MIT"
] | 8 | 2017-12-26T23:47:18.000Z | 2021-09-15T04:25:28.000Z | #include "BWEB.h"
using namespace std;
using namespace BWAPI;
namespace BWEB {
namespace {
vector<Station> stations;
vector<const BWEM::Base *> mainBases;
vector<const BWEM::Base *> natBases;
}
void Station::addResourceReserves()
{
const auto addReserve = [&](Unit res... | 38.448617 | 230 | 0.486199 | Cmccrave |
a29558a201889d425c1ff0f0cea1b6f5d0a907fa | 125 | cpp | C++ | chapter-12/12.1.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-12/12.1.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-12/12.1.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // b1 has 4 elements;
// b2's code block has ended, os b2 is destroyed, there is no point in saying how many elements in b2.
| 41.666667 | 102 | 0.72 | zero4drift |
a299120c0bfba1ae5fd788d09a6a17dd01e38fb5 | 1,175 | cpp | C++ | vsedit/src/script_editor/script_completer.cpp | jkotra/vapoursynth-editor | ee028830d5d390bd3fbde5577577444c011f4987 | [
"MIT"
] | null | null | null | vsedit/src/script_editor/script_completer.cpp | jkotra/vapoursynth-editor | ee028830d5d390bd3fbde5577577444c011f4987 | [
"MIT"
] | null | null | null | vsedit/src/script_editor/script_completer.cpp | jkotra/vapoursynth-editor | ee028830d5d390bd3fbde5577577444c011f4987 | [
"MIT"
] | null | null | null | #include "script_completer.h"
//==============================================================================
ScriptCompleter::ScriptCompleter(QAbstractItemModel *a_pModel,
QObject *a_pParent) : QCompleter(a_pModel, a_pParent)
{
}
//=================================================... | 25.543478 | 86 | 0.417872 | jkotra |
9478ba14e0f0a379ffba877339acfe10100a8e16 | 522 | cpp | C++ | gongen/src/version.cpp | Bitrium-Games/gongen | 0a4a39d19e851c85d8e6a99b9a054c59ec32551d | [
"MIT"
] | 3 | 2021-07-01T13:59:45.000Z | 2021-07-07T13:53:09.000Z | gongen/src/version.cpp | Bitrium-Games/gongen | 0a4a39d19e851c85d8e6a99b9a054c59ec32551d | [
"MIT"
] | null | null | null | gongen/src/version.cpp | Bitrium-Games/gongen | 0a4a39d19e851c85d8e6a99b9a054c59ec32551d | [
"MIT"
] | 2 | 2021-06-21T17:45:20.000Z | 2021-06-21T19:22:19.000Z | #include <gen/version.hpp>
#undef ERROR
gen::gongen_version::gongen_version(uint16 milestone, uint16 major, uint16 minor, uint16 patch) : milestone(milestone), major(major), minor(minor), patch(patch) {
}
gen::string gen::gongen_version::toString() const {
gen::string result;
result.append(std::to_string(milestone... | 27.473684 | 162 | 0.726054 | Bitrium-Games |
9478bf286211f52fd3d102c698c510a47899f840 | 3,938 | cpp | C++ | source/block.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | 4 | 2020-08-09T20:34:28.000Z | 2021-07-22T23:30:40.000Z | source/block.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | 5 | 2020-02-18T23:19:14.000Z | 2020-02-18T23:26:24.000Z | source/block.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | null | null | null | #include <iostream>
#include "services.hpp"
#include "block.hpp"
#include "json.hpp"
using nlohmann::json;
blockRotation operator++(blockRotation& a, int)
{
return a = (blockRotation)((static_cast<int>(a) + 1) % 4);
}
blockRotation operator--(blockRotation& a, int)
{
return a = (blockRotation)(( static_cast<int>(a... | 23.722892 | 145 | 0.636872 | theKlanc |
947a23c26e6596b74361c63d2aa235d8f1d1bf0f | 361 | cpp | C++ | nodelibpd.cpp | teropa/node-libpd | 3a07bb10fe7080473a4579ba851746cd9d0d72a2 | [
"BSD-3-Clause"
] | 1 | 2021-05-04T16:34:59.000Z | 2021-05-04T16:34:59.000Z | nodelibpd.cpp | teropa/node-libpd | 3a07bb10fe7080473a4579ba851746cd9d0d72a2 | [
"BSD-3-Clause"
] | null | null | null | nodelibpd.cpp | teropa/node-libpd | 3a07bb10fe7080473a4579ba851746cd9d0d72a2 | [
"BSD-3-Clause"
] | null | null | null | #include "src/NodePd.hpp"
using v8::FunctionTemplate;
namespace nodePd {
// NativeExtension.cc represents the top level of the module.
// C++ constructs that are exposed to javascript are exported here
NAN_MODULE_INIT(InitAll) {
// Passing target down to the next NAN_MODULE_INIT
NodePd::Init(target);
}
NODE_MOD... | 21.235294 | 66 | 0.756233 | teropa |
947a85f61825eec5c0801f30004ef88198c36edb | 7,756 | cpp | C++ | tests/test_local_ham.cpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2021-04-24T08:47:05.000Z | 2021-04-24T08:47:05.000Z | tests/test_local_ham.cpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2021-09-28T19:02:14.000Z | 2021-09-28T19:02:14.000Z | tests/test_local_ham.cpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2020-03-22T18:59:11.000Z | 2020-03-22T18:59:11.000Z | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <Eigen/Dense>
#include <Eigen/Eigenvalues>
#include <unsupported/Eigen/KroneckerProduct>
#include <Spectra/MatOp/SparseSymMatProd.h>
#include <Spectra/SymEigsSolver.h>
#include <iostream>
#include <cassert>
#include <random>
#include <algorithm>
#include "ed... | 24.31348 | 85 | 0.647886 | chaeyeunpark |
947ffd82a8f2ee330e0277e49c4d1f0ddb1f328c | 752 | cc | C++ | ext/snow-ext/hash.cc | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | 4 | 2015-10-01T20:10:20.000Z | 2021-08-28T23:43:33.000Z | ext/snow-ext/hash.cc | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | ext/snow-ext/hash.cc | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | #include "hash.hh"
#include "murmur3.h"
namespace murmur3 {
uint32_t hash32(const string &str, uint32_t seed)
{
return hash32(str.c_str(), str.size(), seed);
}
uint64_t hash64(const string &str, uint32_t seed)
{
return hash64(str.c_str(), str.size(), seed);
}
uint64_t hash64(const char *str, const size_t lengt... | 18.8 | 88 | 0.683511 | nilium |
9480e7c1a18f1682a67c7f2ee6baec0dfc9b7093 | 16,998 | ipp | C++ | include/native/async/ActionCallbackFinally.ipp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 16 | 2016-03-16T22:16:18.000Z | 2021-04-05T04:46:38.000Z | include/native/async/ActionCallbackFinally.ipp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 11 | 2016-03-16T22:02:26.000Z | 2021-04-04T02:20:51.000Z | include/native/async/ActionCallbackFinally.ipp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 5 | 2016-03-22T14:03:34.000Z | 2021-01-06T18:08:46.000Z | #ifndef __NATIVE_ASYNC_ACTIONCALLBACKFINALLY_IPP__
#define __NATIVE_ASYNC_ACTIONCALLBACKFINALLY_IPP__
/*-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* Propose :
* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
#include "./ActionCallbackFinally.hpp"
#include "./Future.hpp"
namespace native {
template <typename R, typename... | 45.571046 | 120 | 0.628486 | nodenative |
9483cd23602c72ffc8cd854fe54102cea2e0eb0a | 1,846 | cc | C++ | test/test_file_writer.cc | wobbals/barc | ce7a417b37941a696105904e67058adbf0a35c59 | [
"Apache-2.0"
] | 8 | 2017-02-21T21:07:44.000Z | 2021-05-16T10:22:06.000Z | test/test_file_writer.cc | wobbals/barc | ce7a417b37941a696105904e67058adbf0a35c59 | [
"Apache-2.0"
] | 11 | 2017-03-06T22:09:34.000Z | 2020-05-12T07:06:09.000Z | test/test_file_writer.cc | wobbals/barc | ce7a417b37941a696105904e67058adbf0a35c59 | [
"Apache-2.0"
] | 6 | 2017-02-21T21:35:48.000Z | 2019-12-03T06:42:27.000Z | //
// test_file_writer.c
// barc
//
// Created by Charley Robinson on 3/16/17.
//
extern "C" {
#include <unistd.h>
#include "file_writer.h"
}
#include "gtest/gtest.h"
TEST(FileWriter, AllocFileWriter) {
struct file_writer_t* file_writer = NULL;
file_writer_alloc(&file_writer);
EXPECT_TRUE(file_writer != NUL... | 26.371429 | 79 | 0.684724 | wobbals |
9486169b2ea75e97af60597fe4737dea2993fe73 | 1,088 | cpp | C++ | codes/moderncpp/type_traits/is_function/is_function01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 3 | 2022-01-25T07:33:43.000Z | 2022-03-30T10:25:09.000Z | codes/moderncpp/type_traits/is_function/is_function01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | null | null | null | codes/moderncpp/type_traits/is_function/is_function01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 2 | 2022-01-17T13:39:12.000Z | 2022-03-30T10:25:12.000Z | #include <iostream>
#include <type_traits>
int a(int i){return i;} // function
int(*b)(int)=a; // pointer to function
struct C { int operator()(int i){return i;} } c; // function-like class
int main( int argc, char **argv )
{
{
# define REF(x) << #x "... | 31.085714 | 72 | 0.517463 | eric2003 |
94898f7becfe84ce195e0163ca94a9fdce0d90aa | 2,735 | cpp | C++ | test/net/ReceiverTest.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | 1 | 2019-11-16T17:44:13.000Z | 2019-11-16T17:44:13.000Z | test/net/ReceiverTest.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | 51 | 2019-09-29T09:16:22.000Z | 2020-10-24T10:04:59.000Z | test/net/ReceiverTest.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | null | null | null | //
// Created by rolf on 19-09-19.
//
#include "net/Receiver.h"
#include "gtest/gtest.h"
TEST(ReceiverTest,receiveTest){
//We are going to manually send commands to test the receiver
QUdpSocket sendSocket;
QHostAddress address("127.0.0.1");
unsigned int port = 10006;
net::Receiver receiver(addres... | 31.079545 | 85 | 0.696527 | RoboTeamTwente |
948b863e1c8374f2af65293d88e38b9c4aacbf52 | 11,235 | cpp | C++ | src/caffe/layers/search_n_layer.cpp | suyuan32/atlas_200dk_caffe | 119c7696ea787363e2f58c2a7fb6e7395098b0d1 | [
"MIT"
] | 1 | 2021-09-17T14:24:01.000Z | 2021-09-17T14:24:01.000Z | src/caffe/layers/search_n_layer.cpp | suyuan32/atlas_200dk_caffe | 119c7696ea787363e2f58c2a7fb6e7395098b0d1 | [
"MIT"
] | null | null | null | src/caffe/layers/search_n_layer.cpp | suyuan32/atlas_200dk_caffe | 119c7696ea787363e2f58c2a7fb6e7395098b0d1 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Apache License Version 2.0.You may not use this file except in compliance with the License.
*
* This program is distributed in the h... | 35.330189 | 120 | 0.594482 | suyuan32 |
948d4b4be64c30871044e059a320c622fa676986 | 1,919 | cpp | C++ | src/GreenFractals.cpp | ecssiah/Buddhabrot-Variations | cdc6c9c273c0e33036acf1850c1ad87e8432c37e | [
"MIT"
] | null | null | null | src/GreenFractals.cpp | ecssiah/Buddhabrot-Variations | cdc6c9c273c0e33036acf1850c1ad87e8432c37e | [
"MIT"
] | null | null | null | src/GreenFractals.cpp | ecssiah/Buddhabrot-Variations | cdc6c9c273c0e33036acf1850c1ad87e8432c37e | [
"MIT"
] | null | null | null | #include <cmath>
#include <complex>
#include <vector>
#include <iostream>
#include <Eigen/Geometry>
#include <Magick++.h>
#include "Constants.h"
#include "ImageGenerator.h"
#include "FractalInstance.h"
using namespace std;
using namespace Eigen;
using namespace Magick;
vector<FractalInstance> fractals;
// user lit... | 20.634409 | 67 | 0.583116 | ecssiah |
948dff59d71da8ab5af5b4c07aaf0576684d3bcc | 1,171 | cpp | C++ | Camp_2-2563/07_MST/39_CableCar.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_2-2563/07_MST/39_CableCar.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_2-2563/07_MST/39_CableCar.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | /*
* AUTHOR : Hydrolyzed~
* SCHOOL : RYW
* CENTER : BUU
* TASK : Cable Car TOI12
* ALGO : Minimum Spanning Tree
* DATE : 9 May 2021
* */
#include<bits/stdc++.h>
using namespace std;
#define dec(x,y) fixed << setprecision(y) << x
#define all(x) (x).begin(), (x).end()
#define endl '\n'
#define int long long... | 16.492958 | 49 | 0.541418 | MasterIceZ |
9497622dfd397a60d8fcf26e94920c41c83170e6 | 430 | hpp | C++ | CocoaPhoenix/include/cocoa_phx/PHXViewDelegate.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 2 | 2019-05-04T19:33:26.000Z | 2019-06-29T13:19:33.000Z | CocoaPhoenix/include/cocoa_phx/PHXViewDelegate.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 13 | 2019-05-05T12:40:54.000Z | 2020-02-29T20:32:11.000Z | CocoaPhoenix/include/cocoa_phx/PHXViewDelegate.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 4 | 2018-09-15T21:59:08.000Z | 2019-05-04T20:19:07.000Z | //
// PHXViewDelegate.hpp
// CocoaPhoenix
//
// Created by Bodie Solomon on 3/12/19.
//
#ifndef PHXViewDelegate_hpp
#define PHXViewDelegate_hpp
/// PHXViewDelegate responds to UI draw events by making the appropriate calls
/// into the Phoenix engine object.
@interface PHXViewDelegate : NSObject<MTKViewDelegate>
... | 21.5 | 78 | 0.765116 | phoenix-engine |
949ca9f22fa28763a77c01cce817538524129fc5 | 3,809 | cpp | C++ | Projects/RealityEngine/source/Engine.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Engine.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Engine.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | 1 | 2021-11-05T02:55:27.000Z | 2021-11-05T02:55:27.000Z | // Copyright Reality Engine. All Rights Reserved.
#include "Engine.h"
#define GLFW_INCLUDE_NONE
#include <glfw/glfw3.h>
Reality::GameEngine::GameEngine() {
g_SceneManager = new SceneManager;
g_Logger = new Logger;
g_AudioEngine = new AudioEngine;
g_Randomizer = new Randomizer;
g_PlayerPref = new Pla... | 38.474747 | 93 | 0.699396 | Volta948 |
94a56834a38a173a81c91e308bac6853c89f697e | 1,299 | cpp | C++ | llvm-clang/clang_mini_rpc/clang_mini_rpc_client.cpp | chromatic-universe/cci-llvm-clang-cpp | e2fcc54067237c5d68d629d00952cb0e525a1012 | [
"MIT"
] | null | null | null | llvm-clang/clang_mini_rpc/clang_mini_rpc_client.cpp | chromatic-universe/cci-llvm-clang-cpp | e2fcc54067237c5d68d629d00952cb0e525a1012 | [
"MIT"
] | null | null | null | llvm-clang/clang_mini_rpc/clang_mini_rpc_client.cpp | chromatic-universe/cci-llvm-clang-cpp | e2fcc54067237c5d68d629d00952cb0e525a1012 | [
"MIT"
] | null | null | null | //clang_mini_rpc_client.cpp william k. johnson
#include <iostream>
#include <memory>
#include <string>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
#include "gen-cpp/cci_mini_clang_rpc.h"
using namespace apache::thrift;
using name... | 24.055556 | 79 | 0.627406 | chromatic-universe |
94a5afc4e5dc980877c947b6ac3ec47d6ab1db74 | 26,883 | cpp | C++ | Extension.Viewer.ABR/Extension.Viewer.ABR.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | 15 | 2017-05-15T15:52:24.000Z | 2022-03-23T06:48:48.000Z | Extension.Viewer.ABR/Extension.Viewer.ABR.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | null | null | null | Extension.Viewer.ABR/Extension.Viewer.ABR.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | 4 | 2017-09-07T10:55:36.000Z | 2021-01-29T08:51:01.000Z | /*
copyright (c) 1996 - 2008 Ivan Varzar. lusores@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
noti... | 29.803769 | 301 | 0.621582 | lusores |
94a7e264c212454507fb4d9832d699e9d812651f | 2,727 | cpp | C++ | unit_tests/test_supportvectormachine.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 6 | 2020-09-23T15:38:28.000Z | 2021-11-16T20:39:21.000Z | unit_tests/test_supportvectormachine.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | null | null | null | unit_tests/test_supportvectormachine.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 2 | 2021-10-04T22:16:48.000Z | 2022-02-25T00:32:40.000Z | // Copyright 2018-2020 Lexis Nexis Risk Solutions
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | 34.518987 | 122 | 0.650532 | BrentP-tmx |
94ad15b7992a92d00844ca3b0402a9c6b2cd0ec0 | 311 | cpp | C++ | Get_Started_contest/8.find_me.cpp | MadanParth786/Codeshef_DSA_learning_Series | 0582c5a1598c2233c9ab433ce71feb9816166bc7 | [
"MIT"
] | 2 | 2021-07-03T09:00:06.000Z | 2021-07-03T09:46:27.000Z | Get_Started_contest/8.find_me.cpp | MadanParth786/Codeshef_DSA_learning_Series | 0582c5a1598c2233c9ab433ce71feb9816166bc7 | [
"MIT"
] | null | null | null | Get_Started_contest/8.find_me.cpp | MadanParth786/Codeshef_DSA_learning_Series | 0582c5a1598c2233c9ab433ce71feb9816166bc7 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(void)
{
int n,k;
bool found=false;
int a[n];
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>a[i];
if(a[i]==k){
found=true;
break;
}
}
if(found){
cout<<"1"<<"\n";
}
else{
cout<<"-1"<<"\n";
}
}
| 11.518519 | 24 | 0.418006 | MadanParth786 |
94b0fee0885891546ad81efcc2e98b090642d5d4 | 782 | cpp | C++ | Section 8/Video 3/locks.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | 17 | 2019-10-10T21:09:51.000Z | 2022-01-13T15:54:24.000Z | Section 8/Video 3/locks.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | null | null | null | Section 8/Video 3/locks.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | 16 | 2019-10-10T21:09:55.000Z | 2022-02-13T11:42:52.000Z | #include <thread>
#include <iostream>
#include <mutex>
#define TRANSACTIONS 100000
using namespace std;
void deposit(int& account, mutex& m) {
for (int i = 0; i < TRANSACTIONS; i++) {
{
lock_guard<mutex> lock(m);
++account;
}
}
}
void withdraw(int& account, mutex& m) {
for (int i = 0; i < ... | 17.377778 | 69 | 0.589514 | irshadqemu |
94b6a75b96c61ac067d3fa7995e4942a579bbe9a | 3,092 | cpp | C++ | codeforces/F - Music in Car/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/F - Music in Car/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/F - Music in Car/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jun/09/2020 16:14
* solution_verdict: Accepted language: GNU C++14
* run... | 27.855856 | 112 | 0.518758 | kzvd4729 |
94b71997dcf168861cb127f7c6f17f6248a1201b | 7,968 | hpp | C++ | src/arch/pico/video/ssd1351.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 22 | 2021-06-20T21:23:29.000Z | 2022-03-26T01:46:10.000Z | src/arch/pico/video/ssd1351.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 2 | 2021-09-06T12:08:32.000Z | 2021-09-06T12:23:55.000Z | src/arch/pico/video/ssd1351.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 1 | 2021-11-26T08:34:59.000Z | 2021-11-26T08:34:59.000Z | #pragma once
#include <hardware/gpio.h>
#include <hardware/spi.h>
#include <hardware/dma.h>
#include <array>
#include <cstdint>
#include <cmath>
#include <span>
#include <emu/emulator.hpp>
#include <devices/image.hpp>
#include <devices/screenpalette.hpp>
#include <video/palette.hpp>
namespace arch::pico::video
{
st... | 28.457143 | 120 | 0.593499 | yocto-8 |
94bc4de85927f68c910556ea6200887766e422e4 | 16,007 | cpp | C++ | source/rastertechnique/clustervisibleprefixsumtechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 2 | 2022-03-25T00:37:25.000Z | 2022-03-26T00:13:53.000Z | source/rastertechnique/clustervisibleprefixsumtechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | null | null | null | source/rastertechnique/clustervisibleprefixsumtechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 1 | 2022-03-02T21:11:29.000Z | 2022-03-02T21:11:29.000Z | /*
Copyright 2022 Alejandro Cosin & Gustavo Patow
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | 41.1491 | 176 | 0.736928 | AlejandroC1983 |
94bf0b992b8a6ac778e64cd8ecba77d2f76f9d48 | 2,781 | cpp | C++ | aws-cpp-sdk-config/source/model/AggregateConformancePackCompliance.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-config/source/model/AggregateConformancePackCompliance.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-config/source/model/AggregateConformancePackCompliance.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/config/model/AggregateConformancePackCompliance.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
nam... | 24.830357 | 139 | 0.781014 | perfectrecall |
94bfdbab5f07f61ff7b9b16d9a59b462641acf97 | 20,188 | cpp | C++ | source/magma/vulkan/render-engine-impl.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 15 | 2018-02-26T08:20:03.000Z | 2022-03-06T03:25:46.000Z | source/magma/vulkan/render-engine-impl.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 32 | 2018-02-26T08:26:38.000Z | 2020-09-12T17:09:38.000Z | source/magma/vulkan/render-engine-impl.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | null | null | null | #include "./render-engine-impl.hpp"
#include "../aft-vulkan/scene-aft.hpp"
#include "../shmag-reader.hpp"
#include "./helpers/queue.hpp"
#include "./holders/swapchain-holder.hpp"
#include "./render-image-impl.hpp"
#include "./render-targets/i-render-target-impl.hpp"
#include "./stages/present.hpp"
using namespace lav... | 37.594041 | 135 | 0.68932 | Breush |
94c0c556d4b31c5f87ff85882a08a0bbfa16e2c4 | 7,354 | cc | C++ | tests/test.cc | CS126SP20/final-project-ckesan2 | 419d4b5ecc21ba7d1f3412c05f0098e7130d3703 | [
"MIT"
] | null | null | null | tests/test.cc | CS126SP20/final-project-ckesan2 | 419d4b5ecc21ba7d1f3412c05f0098e7130d3703 | [
"MIT"
] | null | null | null | tests/test.cc | CS126SP20/final-project-ckesan2 | 419d4b5ecc21ba7d1f3412c05f0098e7130d3703 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 CS126SP20. All rights reserved.
#define CATCH_CONFIG_MAIN
#include <mylibrary/gameengine.h>
#include <mylibrary/circle.h>
#include <catch2/catch.hpp>
TEST_CASE("Getting the correct score", "[game score]") {
//makes sure the score is 0 at the start of the game
mylibrary::GameEngine engine;
... | 28.393822 | 80 | 0.684389 | CS126SP20 |
94c556dd34cd648160958e09cea3be093ebe2b20 | 825 | cpp | C++ | Game/Scene/EnemyGuide/RollBackGround.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | 2 | 2016-12-09T02:21:23.000Z | 2017-08-31T13:49:13.000Z | Game/Scene/EnemyGuide/RollBackGround.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | null | null | null | Game/Scene/EnemyGuide/RollBackGround.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | null | null | null | #include "RollBackGround.h"
const double RollBackGround::W = 1280;
const double RollBackGround::H = 720;
const int RollBackGround::ROLL_SPEED = 5;
RollBackGround::RollBackGround(String firstAssetName, String secondAssetName)
{
firstAssetName_m = firstAssetName;
secondAssetName_m = secondAssetName;
fPoint_m = Poi... | 19.642857 | 77 | 0.718788 | IndistinQuest |
94d2717921df8f08be83a2babe28c834bda1d911 | 3,176 | hpp | C++ | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 34 | 2017-08-16T13:58:24.000Z | 2022-03-31T11:50:25.000Z | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | null | null | null | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 17 | 2017-08-18T07:42:44.000Z | 2022-01-02T02:43:06.000Z | /****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... | 26.689076 | 87 | 0.691751 | weiDDD |
94dab9a0cd96ec7ac344ae472ca764b0a84a3d26 | 192 | cpp | C++ | Primero/Cuatrimestre1/FS/Practicas/Parciales/Parcial2/makefile-gdb/division.cpp | diegxsantiago/ | 7e9bc298d1cd1f20a2177178400bbf7e6e0bab3d | [
"MIT"
] | 1 | 2021-02-08T18:22:50.000Z | 2021-02-08T18:22:50.000Z | Primero/Cuatrimestre1/FS/Practicas/Parciales/Parcial2/makefile-gdb/division.cpp | diegxsantiago/gii | 7e9bc298d1cd1f20a2177178400bbf7e6e0bab3d | [
"MIT"
] | null | null | null | Primero/Cuatrimestre1/FS/Practicas/Parciales/Parcial2/makefile-gdb/division.cpp | diegxsantiago/gii | 7e9bc298d1cd1f20a2177178400bbf7e6e0bab3d | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "funciones.h"
/*
producto de dos numeros
*/
int division (int x, int y)
{
int tmp;
tmp = x / y;
return tmp;
}
| 10.666667 | 28 | 0.536458 | diegxsantiago |
94db874be36602fd7af0139f01c400625acb088a | 925 | cpp | C++ | src/backend/generic/runtime/sycl/api.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/backend/generic/runtime/sycl/api.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/backend/generic/runtime/sycl/api.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 Athena. All rights reserved.
// https://getathena.ml
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "A... | 28.90625 | 80 | 0.621622 | alexbatashev |
94e3575f63a486b5c93822233a7c3fa80e2e1de1 | 95,049 | hh | C++ | extern/glow/src/glow/detail/xxHash/xxh3.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | 11 | 2019-10-23T19:15:42.000Z | 2021-12-07T07:37:39.000Z | extern/glow/src/glow/detail/xxHash/xxh3.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | 6 | 2019-10-29T04:11:17.000Z | 2020-10-30T16:27:23.000Z | extern/glow/src/glow/detail/xxHash/xxh3.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | 2 | 2020-01-22T17:53:55.000Z | 2020-10-01T09:18:00.000Z | /*
* xxHash - Extremely Fast Hash algorithm
* Development source file for `xxh3`
* Copyright (C) 2019-2020 Yann Collet
*
* BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | 40.071248 | 177 | 0.636367 | rovedit |
94efd0d68247f41cfe2aca7fc2265f8b590afac7 | 3,063 | cpp | C++ | GrowtopiaServer/resource/server/GamePacket.cpp | LinkProfitSG/GTPS | fa654fb20b62d8ff3e35c3784f5d0fa7a3368135 | [
"Apache-2.0"
] | 2 | 2021-06-08T08:17:56.000Z | 2021-12-02T20:41:28.000Z | GrowtopiaServer/resource/server/GamePacket.cpp | LinkProfitSG/GTPS | fa654fb20b62d8ff3e35c3784f5d0fa7a3368135 | [
"Apache-2.0"
] | 1 | 2021-12-02T20:46:47.000Z | 2021-12-02T20:52:40.000Z | GrowtopiaServer/resource/server/GamePacket.cpp | LinkProfitSG/GTPS | fa654fb20b62d8ff3e35c3784f5d0fa7a3368135 | [
"Apache-2.0"
] | 3 | 2021-07-27T21:30:35.000Z | 2021-10-07T07:52:27.000Z | #pragma warning (disable : 4244)
#include "../../Server.hpp"
using namespace std;
GamePacket::~GamePacket() { delete[] data_; }
GamePacket::GamePacket(int delay, int netId) {
len_ = 61;
int messageType = 0x4, packetType = 0x1, charState = 0x8;
memset(data_, 0, 61);
memcpy(data_, &messageType, 4);
... | 25.525 | 71 | 0.615736 | LinkProfitSG |
94f541c491108f4eaf9f02fa2ed97656cd9c91a5 | 4,997 | hpp | C++ | src/MultiLayerOptics/src/MultiPaneSpecular.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/MultiLayerOptics/src/MultiPaneSpecular.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/MultiLayerOptics/src/MultiPaneSpecular.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef MultiPaneSpecular_H
#define MultiPaneSpecular_H
#include <memory>
#include <vector>
#include "WCECommon.hpp"
namespace FenestrationCommon
{
enum class Side;
enum class Property;
class CSeries;
} // namespace FenestrationCommon
namespace SingleLayerOptics
{
class CSpecularCell;
class ... | 40.626016 | 99 | 0.634981 | bakonyidani |
94fa986787378cf10f900dae5321385b0539cb3d | 1,041 | cpp | C++ | sources/Dwarf/AST/AstVariableReference.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | sources/Dwarf/AST/AstVariableReference.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | sources/Dwarf/AST/AstVariableReference.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | #include "AstVariableReference.hpp"
#include <assert.h>
namespace Dwarf
{
AstVariableReference::AstVariableReference (std::string name, AstValue *provider) :
name_ (name),
provider_ (provider)
{
assert (!name_.empty ());
}
AstVariableReference::~AstVariableReference ()
{
delete provider_;
}
std::stri... | 20.82 | 83 | 0.634006 | KonstantinTomashevich |
a20200110301e45c9d28f9183090dd41f4768738 | 119 | cpp | C++ | Source/DreamPlace/DreamPlaceGameStateBase.cpp | YuanweiZHANG/DreamPlace | b005c22e2353e674a0596c078083b82efe9ae733 | [
"MIT"
] | null | null | null | Source/DreamPlace/DreamPlaceGameStateBase.cpp | YuanweiZHANG/DreamPlace | b005c22e2353e674a0596c078083b82efe9ae733 | [
"MIT"
] | null | null | null | Source/DreamPlace/DreamPlaceGameStateBase.cpp | YuanweiZHANG/DreamPlace | b005c22e2353e674a0596c078083b82efe9ae733 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "DreamPlaceGameStateBase.h"
| 19.833333 | 78 | 0.789916 | YuanweiZHANG |
a20a1bae04eb55f7b54548c42c85340c822f7f2c | 2,157 | cpp | C++ | Algorithm/0401 (Easy)Binary Watch/Brute-Force.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | 1 | 2020-12-03T10:10:15.000Z | 2020-12-03T10:10:15.000Z | Algorithm/0401 (Easy)Binary Watch/Brute-Force.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | null | null | null | Algorithm/0401 (Easy)Binary Watch/Brute-Force.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | null | null | null | class Solution {
void generateNumbers(int bits, long temp_num, set<long>& numbers){
if (bits == 0){
numbers.insert(temp_num);
return;
}
// If we have bits available, out of all 10 available bits, we need to do the follwoing:
// For all bits (from 0 t... | 36.559322 | 111 | 0.545665 | ZexinLi0w0 |
a2125800640f6d634c28e3d9de4de896424ba2d5 | 22,165 | cpp | C++ | src/Plugins/RenX/RenX.Core/RenX_LadderDatabase.cpp | Constructive-Tyranny/Jupiter-Bot | 2f1261b55b0b420ad2a2cc7aa30118296e0a87d1 | [
"0BSD"
] | 9 | 2016-02-04T09:54:24.000Z | 2021-11-25T18:56:44.000Z | src/Plugins/RenX/RenX.Core/RenX_LadderDatabase.cpp | Constructive-Tyranny/Jupiter-Bot | 2f1261b55b0b420ad2a2cc7aa30118296e0a87d1 | [
"0BSD"
] | 8 | 2015-08-04T15:19:53.000Z | 2021-11-18T19:39:05.000Z | src/Plugins/RenX/RenX.Core/RenX_LadderDatabase.cpp | JustinAJ/Jupiter-Bot | 2f1261b55b0b420ad2a2cc7aa30118296e0a87d1 | [
"0BSD"
] | 15 | 2016-08-22T13:04:25.000Z | 2022-02-18T16:19:00.000Z | /**
* Copyright (C) 2015-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... | 34.741379 | 325 | 0.70467 | Constructive-Tyranny |
a219274fdbaeb5d5349d0e396011930fd1ae8130 | 10,875 | hpp | C++ | include/System/Net/HttpWebResponse.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/HttpWebResponse.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/HttpWebResponse.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Net.WebResponse
#include "System/Net/WebResponse.hpp"
// Inclu... | 50.115207 | 792 | 0.713379 | darknight1050 |
b8cce46fa44b9e0520c7c6b9d38e8ec00dae1f9b | 5,678 | cpp | C++ | coreLibrary_200/source/core/dgSPDMatrix.cpp | rastullahs-lockenpracht/newton | 99b82478f3de9ee7c8d17c8ebefe62e46283d857 | [
"Zlib"
] | null | null | null | coreLibrary_200/source/core/dgSPDMatrix.cpp | rastullahs-lockenpracht/newton | 99b82478f3de9ee7c8d17c8ebefe62e46283d857 | [
"Zlib"
] | null | null | null | coreLibrary_200/source/core/dgSPDMatrix.cpp | rastullahs-lockenpracht/newton | 99b82478f3de9ee7c8d17c8ebefe62e46283d857 | [
"Zlib"
] | null | null | null | /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software f... | 22.621514 | 109 | 0.645826 | rastullahs-lockenpracht |
b8e1e9bca5c0e939259290bf44c591ad70988091 | 98 | hpp | C++ | src/lib/env.hpp | stkw0/i-hate-all-rss-readers | ac2be9f7c6b070aff3b1fe36a9efbcc8095dcafa | [
"Unlicense"
] | null | null | null | src/lib/env.hpp | stkw0/i-hate-all-rss-readers | ac2be9f7c6b070aff3b1fe36a9efbcc8095dcafa | [
"Unlicense"
] | null | null | null | src/lib/env.hpp | stkw0/i-hate-all-rss-readers | ac2be9f7c6b070aff3b1fe36a9efbcc8095dcafa | [
"Unlicense"
] | null | null | null | #pragma once
namespace iharr {
const std::string getenv(const char* name);
} // namespace iharr | 14 | 43 | 0.72449 | stkw0 |
b8e2de30705ffd800b8f2efea1732467b4eb9ebe | 97 | cpp | C++ | test/Heng-Core-Test/killInit.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | 1 | 2022-03-27T05:01:04.000Z | 2022-03-27T05:01:04.000Z | test/Heng-Core-Test/killInit.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | null | null | null | test/Heng-Core-Test/killInit.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | null | null | null | #include <signal.h>
int main(void)
{
kill(1, SIGKILL);
kill(3, SIGKILL);
return 0;
} | 12.125 | 21 | 0.57732 | fitenne |
b8e58df180793b9eb2349f9808e8bc9b28e5aa4c | 4,511 | cpp | C++ | RocketPlugin/MeshmoonUser.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | 4 | 2018-05-09T01:55:14.000Z | 2021-12-19T17:46:29.000Z | RocketPlugin/MeshmoonUser.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | null | null | null | RocketPlugin/MeshmoonUser.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | 2 | 2016-03-15T06:12:05.000Z | 2021-06-06T00:18:38.000Z | /**
@author Adminotech Ltd.
Copyright Adminotech Ltd.
All rights reserved.
@file
@brief */
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MeshmoonUser.h"
#include "CoreDefines.h"
#include "LoggingFunctions.h"
#include <QTimer>
#include "MemoryLeakCheck.h"
// RocketUse... | 22.112745 | 111 | 0.699401 | Adminotech |
b8f4ab9146b4e516c55092b6fd022af7f18bc838 | 1,482 | cpp | C++ | src/fsc/object/base/transformer/translate.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | 1 | 2018-11-26T19:06:52.000Z | 2018-11-26T19:06:52.000Z | src/fsc/object/base/transformer/translate.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | null | null | null | src/fsc/object/base/transformer/translate.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
// Copyright : (c) Julian Bouzas 2018
// License : BSD3-style (see LICENSE)
// Maintainer : Julian Bouzas - nnoell3[at]gmail.com
//------------------------------------------------------... | 26.464286 | 121 | 0.562078 | nnoell |
b8f6913283be1057e744c4d509444281f4870706 | 1,058 | cpp | C++ | interpreter/lox/lox/ASTPrinter.cpp | mandyedi/craftinginterpreters-cpp | fd4ec9a61d9a2640d77fd6f5fa3dc3ee23c22d34 | [
"MIT"
] | null | null | null | interpreter/lox/lox/ASTPrinter.cpp | mandyedi/craftinginterpreters-cpp | fd4ec9a61d9a2640d77fd6f5fa3dc3ee23c22d34 | [
"MIT"
] | null | null | null | interpreter/lox/lox/ASTPrinter.cpp | mandyedi/craftinginterpreters-cpp | fd4ec9a61d9a2640d77fd6f5fa3dc3ee23c22d34 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ASTPrinter.h"
void ASTPrinter::Print( Expr *expr )
{
expr->Accept( this );
}
void ASTPrinter::VisitBinaryExpr( Binary *expr )
{
Parenthesize( expr->Op.Lexeme, { expr->Left, expr->Right } );
}
void ASTPrinter::VisitGroupingExpr( Grouping *expr )
{
Parenthesize( "group", { expr->... | 21.591837 | 89 | 0.574669 | mandyedi |
b8f8f3bd897d3adccc6e03765ca7642ec4650c0c | 3,862 | cpp | C++ | 443-string-compression/string-compression.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 443-string-compression/string-compression.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 443-string-compression/string-compression.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given an array of characters, compress it in-place.
//
// The length after compression must always be smaller than or equal to the original array.
//
// Every element of the array should be a character (not int) of length 1.
//
// After you are done modifying the input array in-place, return the new length of the... | 20.875676 | 103 | 0.50492 | nagestx |
b8f9701d8cfcb7e5ae869cea5a5343fa1facff70 | 1,481 | cpp | C++ | shf-cpp/src/Game/Menu/MemoMenu.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 71 | 2018-03-21T08:04:04.000Z | 2022-01-11T09:49:26.000Z | shf-cpp/src/Game/Menu/MemoMenu.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 2 | 2018-08-28T08:26:02.000Z | 2019-04-06T14:29:39.000Z | shf-cpp/src/Game/Menu/MemoMenu.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 25 | 2018-03-24T03:36:28.000Z | 2021-09-20T06:19:09.000Z | #include "MemoMemu.h"
#include "../GameManager/GameManager.h"
MemoMenu::MemoMenu()
{
init();
visible = false;
}
MemoMenu::~MemoMenu()
{
freeResource();
}
void MemoMenu::reFresh()
{
if (scrollbar != NULL && memoText != NULL)
{
for (int i = 0; i < MEMO_LINE; i++)
{
if (position + i < (int)GameManager::getI... | 17.630952 | 106 | 0.651587 | Upwinded |
77013c97ae800b7c22b3e9ed56f79e5122c6bc27 | 1,445 | cpp | C++ | Maze_Lib/Color.cpp | martindubois/Maze | 23026ee0d437edb7b59f39e07bc0f94c100e506f | [
"Apache-2.0"
] | null | null | null | Maze_Lib/Color.cpp | martindubois/Maze | 23026ee0d437edb7b59f39e07bc0f94c100e506f | [
"Apache-2.0"
] | null | null | null | Maze_Lib/Color.cpp | martindubois/Maze | 23026ee0d437edb7b59f39e07bc0f94c100e506f | [
"Apache-2.0"
] | null | null | null |
// Author KMS - Martin Dubois, P. Eng.
// Copyright (C) 2021 KMS
// License http://www.apache.org/licenses/LICENSE-2.0
// Product Maze
// File Maze_Lib/Color.cpp
// CODE REVIEW 2021-12-18 KMS - Martin Dubois, P. Eng.
// TEST COVERAGE 2021-12-18 KMS - Martin Dubois, P. Eng.
#include "Component.h"
// ===... | 26.272727 | 122 | 0.504498 | martindubois |
770ac34cd2aa7c6f561fe07cdc40b36bf830f05a | 1,654 | cpp | C++ | 1101-9999/1801. Number of Orders in the Backlog.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1801. Number of Orders in the Backlog.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1801. Number of Orders in the Backlog.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
public:
int getNumberOfBacklogOrders(vector<vector<int>> &orders)
{
priority_queue<pair<int, int>, vector<pair<int, int>>> buy;
priority_queue<pair<int, int>, vector<pair<int, int>>, std::greater<pair<int, int>>> sell;
for (auto &order : orders)
{
// buy
if (order[2] ==... | 21.763158 | 94 | 0.403265 | erichuang1994 |
770b566e5a7eeed4d94fbdfd17e7af336c1f12bb | 825 | cpp | C++ | Chroma/src/Chroma/Core/EntryPoint.cpp | ttalexander2/chroma | 0e9946e66158938ebd6497d5bf3acfba8fbe9fee | [
"MIT"
] | 1 | 2022-03-07T01:54:59.000Z | 2022-03-07T01:54:59.000Z | Chroma/src/Chroma/Core/EntryPoint.cpp | ttalexander2/chroma | 0e9946e66158938ebd6497d5bf3acfba8fbe9fee | [
"MIT"
] | 20 | 2021-08-16T16:52:43.000Z | 2022-03-26T02:47:09.000Z | Chroma/src/Chroma/Core/EntryPoint.cpp | ttalexander2/chroma | 0e9946e66158938ebd6497d5bf3acfba8fbe9fee | [
"MIT"
] | null | null | null | #include "chromapch.h"
#include "EntryPoint.h"
#include <physfs.h>
extern "C"
{
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}
extern "C"
{
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
void InitFilesystem()
{
PHYSFS_init(NULL);
}
void DeinitFilesystem()
{
PHYSFS... | 20.625 | 73 | 0.757576 | ttalexander2 |
77273a4a6254e68369f07f611c75460b9ef98541 | 15,672 | cc | C++ | Source/Models/expression.cc | AryaFaramarzi/CS220-dmfb-synthesis-skeleton | 6b592516025f6c2838f269dcf2ca1696d9de5ab8 | [
"MIT"
] | 3 | 2018-11-03T06:17:08.000Z | 2020-08-12T05:26:47.000Z | Source/Models/expression.cc | AryaFaramarzi/CS220-dmfb-synthesis-skeleton | 6b592516025f6c2838f269dcf2ca1696d9de5ab8 | [
"MIT"
] | null | null | null | Source/Models/expression.cc | AryaFaramarzi/CS220-dmfb-synthesis-skeleton | 6b592516025f6c2838f269dcf2ca1696d9de5ab8 | [
"MIT"
] | 6 | 2019-09-03T23:58:04.000Z | 2021-07-09T02:33:47.000Z | /*------------------------------------------------------------------------------*
* (c)2016, All Rights Reserved. *
* ___ ___ ___ *
* /__/\ / /\ / /\ *
* \ \:\ / /:/ / /::\ *
* ... | 31.219124 | 150 | 0.515123 | AryaFaramarzi |
7728ebb7cef5baa7c90f4d3be4f977cc1115eb4e | 13,760 | hpp | C++ | src/thread/compute_thread.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | 15 | 2017-03-28T13:15:53.000Z | 2022-03-01T08:16:48.000Z | src/thread/compute_thread.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | null | null | null | src/thread/compute_thread.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | 6 | 2017-10-17T14:10:23.000Z | 2022-03-01T08:16:29.000Z | #ifndef __AFS_COMPUTE_THREAD_HPP_INCLUDED__
#define __AFS_COMPUTE_THREAD_HPP_INCLUDED__
#include <stdio.h>
#include <stdint.h>
#include <string>
#include "../config.hpp"
#include "thread.hpp"
#include "up_thread.hpp"
#include "down_thread.hpp"
#include "../wrap_item.hpp"
#include "router_base.hpp"
#include "../queu... | 32.45283 | 157 | 0.59077 | huangqundl |
77290de4a942a5c405d09fd0daeade9d837e0acd | 568 | cc | C++ | source/global/pyglobals.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 6 | 2021-08-08T08:40:13.000Z | 2022-03-23T03:05:15.000Z | source/global/pyglobals.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-12-01T14:38:06.000Z | 2022-02-10T11:28:28.000Z | source/global/pyglobals.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-07-16T13:57:34.000Z | 2022-02-07T11:17:19.000Z | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <G4ThreeVector.hh>
#include <G4TwoVector.hh>
#include <vector>
#include "typecast.hh"
#include "opaques.hh"
namespace py = pybind11;
void export_globals(py::module &m)
{
py::bind_vector<G4intVector>(m, "G4intVector")... | 25.818182 | 66 | 0.741197 | yu22mal |
772e1bbd622c67b57b57052831cfa9d862de4f8c | 448 | cpp | C++ | algorithms/warmup/lcm.cpp | weirdname404/courses | 611443422cc6acc1af563d9d7d07181e9984ddab | [
"MIT"
] | 3 | 2019-05-28T16:53:54.000Z | 2019-08-03T02:45:08.000Z | algorithms/warmup/lcm.cpp | weirdname404/courses | 611443422cc6acc1af563d9d7d07181e9984ddab | [
"MIT"
] | null | null | null | algorithms/warmup/lcm.cpp | weirdname404/courses | 611443422cc6acc1af563d9d7d07181e9984ddab | [
"MIT"
] | null | null | null | // Given two integers a and b, find their least common multiple.
#include <iostream>
using namespace std;
int gcd_euclid(long a, long b) {
if (a % b == 0) {
return b;
}
int gcd = gcd_euclid(b, a % b);
return gcd;
}
long long lcm(long a, long b) {
long long mult = a * b;
return (long ... | 17.230769 | 64 | 0.551339 | weirdname404 |
77345f5c3a4a4b61424f48c4c98802d3d63faf62 | 18,745 | cpp | C++ | smacc2_client_library/nav2z_client/custom_planners/undo_path_global_planner/src/undo_path_global_planner/undo_path_global_planner.cpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | 48 | 2021-05-28T01:33:20.000Z | 2022-03-24T03:16:03.000Z | smacc2_client_library/nav2z_client/custom_planners/undo_path_global_planner/src/undo_path_global_planner/undo_path_global_planner.cpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | 75 | 2021-06-25T22:11:21.000Z | 2022-03-30T13:05:38.000Z | smacc2_client_library/nav2z_client/custom_planners/undo_path_global_planner/src/undo_path_global_planner/undo_path_global_planner.cpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | 14 | 2021-06-16T12:10:57.000Z | 2022-03-01T18:23:27.000Z | // Copyright 2021 RobosoftAI 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 to... | 39.630021 | 126 | 0.604961 | reelrbtx |
7737132c2c1eab3f31285311dcca89857655145a | 10,534 | hh | C++ | dune/gdt/operators/oswald-interpolation.hh | pymor/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 4 | 2018-10-12T21:46:08.000Z | 2020-08-01T18:54:02.000Z | dune/gdt/operators/oswald-interpolation.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 154 | 2016-02-16T13:50:54.000Z | 2021-12-13T11:04:29.000Z | dune/gdt/operators/oswald-interpolation.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 5 | 2016-03-02T10:11:20.000Z | 2020-02-08T03:56:24.000Z | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 46 | 120 | 0.713499 | pymor |
773c7908f97f90cedecdc644de87012e01b10b46 | 2,081 | cpp | C++ | MMOCoreORB/src/server/zone/objects/tangible/components/droid/DroidContainerComponent.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/objects/tangible/components/droid/DroidContainerComponent.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/objects/tangible/components/droid/DroidContainerComponent.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
* DroidContainerComponent.cpp
*/
#include "DroidContainerComponent.h"
#include "server/zone/objects/scene/SceneObject.h"
#include "server/zone/objects/creature/CreatureObject.h"
#include "server/zone/objects/creature/ai/DroidObject.h"
#include "server/zone/objects/player/PlayerObject.h"
bool DroidContainerCompon... | 31.059701 | 143 | 0.742912 | V-Fib |
773f8f74951d2c6263fc0bf35317c8c35db15f4c | 345 | cpp | C++ | ShaderGLLib/Image.cpp | anirul/ShaderGL-Classroom-2 | f91a354588b09f34f6814e714cad015db2fa51e6 | [
"MIT"
] | null | null | null | ShaderGLLib/Image.cpp | anirul/ShaderGL-Classroom-2 | f91a354588b09f34f6814e714cad015db2fa51e6 | [
"MIT"
] | null | null | null | ShaderGLLib/Image.cpp | anirul/ShaderGL-Classroom-2 | f91a354588b09f34f6814e714cad015db2fa51e6 | [
"MIT"
] | null | null | null | #include "Image.h"
#include <algorithm>
#include <fstream>
#include <vector>
#include <tuple>
#include <assert.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace sgl {
Image::Image(const std::string& file)
{
#pragma message("Fill me up!")
}
Image::~Image()
{
#pragma message("Fill me up!")
}
... | 14.375 | 38 | 0.684058 | anirul |
774a459c11c5b4c69570340ea964d268e3db13b4 | 42,725 | cpp | C++ | src/caffe/test/test_gauss_convolution_layer.cpp | skokec/caffe | f6fd2961b9aa63d818212ee2490620fe0e703cc6 | [
"BSD-2-Clause"
] | 1 | 2021-05-16T08:35:43.000Z | 2021-05-16T08:35:43.000Z | src/caffe/test/test_gauss_convolution_layer.cpp | skokec/caffe | f6fd2961b9aa63d818212ee2490620fe0e703cc6 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_gauss_convolution_layer.cpp | skokec/caffe | f6fd2961b9aa63d818212ee2490620fe0e703cc6 | [
"BSD-2-Clause"
] | null | null | null | #include <boost/smart_ptr/shared_ptr.hpp>
#include <caffe/blob.hpp>
#include <caffe/common.hpp>
#include <caffe/filler.hpp>
#include <caffe/layers/gauss_conv_layer.hpp>
#include <caffe/proto/caffe.pb.h>
#include <caffe/test/test_caffe_main.hpp>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <vector>
names... | 38.770417 | 202 | 0.71464 | skokec |
774abe8746e18e9a0ffd205c8e03c8667447129b | 339 | hpp | C++ | include/esc/detail/is_any_of.hpp | a-n-t-h-o-n-y/Escape | 45ca047bacffbbde768768c6631df6336dd4e03c | [
"MIT"
] | 10 | 2021-06-30T15:10:55.000Z | 2022-03-20T18:34:06.000Z | include/esc/detail/is_any_of.hpp | a-n-t-h-o-n-y/Escape | 45ca047bacffbbde768768c6631df6336dd4e03c | [
"MIT"
] | null | null | null | include/esc/detail/is_any_of.hpp | a-n-t-h-o-n-y/Escape | 45ca047bacffbbde768768c6631df6336dd4e03c | [
"MIT"
] | null | null | null | #ifndef ESC_DETAIL_IS_ANY_OF_HPP
#define ESC_DETAIL_IS_ANY_OF_HPP
#include <type_traits>
namespace esc::detail {
/// Type Trait defined as true if T is_same as any of Us.
template <typename T, typename... Args>
bool constexpr is_any_of = (std::is_same_v<Args, T> || ...);
} // namespace esc::detail
#endif // ESC_DE... | 26.076923 | 60 | 0.743363 | a-n-t-h-o-n-y |
775aca3902f0883abd4b97d5055444eb899365ae | 107 | cpp | C++ | docs/assets/playground/choice.cpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | 527 | 2020-12-01T14:23:50.000Z | 2022-03-31T11:30:24.000Z | docs/assets/playground/choice.cpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | 44 | 2020-12-01T18:39:38.000Z | 2022-03-08T00:22:39.000Z | docs/assets/playground/choice.cpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | 24 | 2020-12-02T01:45:53.000Z | 2022-03-22T21:31:31.000Z | // INPUT:Hello
struct production
{
static constexpr auto rule = LEXY_LIT("Hello") | LEXY_LIT("Hi");
};
| 17.833333 | 68 | 0.672897 | IohannRabeson |
775c953f1c9d1412519e0d7bddf4c1763db0bccc | 16,384 | cpp | C++ | simpleshell/westeros-simpleshell.cpp | moorthy-bs/westeros | d026756a91333b376d167d9e248e18309a177c95 | [
"MIT"
] | null | null | null | simpleshell/westeros-simpleshell.cpp | moorthy-bs/westeros | d026756a91333b376d167d9e248e18309a177c95 | [
"MIT"
] | null | null | null | simpleshell/westeros-simpleshell.cpp | moorthy-bs/westeros | d026756a91333b376d167d9e248e18309a177c95 | [
"MIT"
] | null | null | null | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* 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 ... | 32.251969 | 126 | 0.659424 | moorthy-bs |
776337ab0c60c5cb11d2528f22f50a174e7683fd | 2,147 | hpp | C++ | MainGame/settings/Settings.hpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 63 | 2017-05-18T16:10:19.000Z | 2022-03-26T18:05:59.000Z | MainGame/settings/Settings.hpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 1 | 2018-02-10T12:40:33.000Z | 2019-01-11T07:33:13.000Z | MainGame/settings/Settings.hpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 4 | 2017-12-31T21:38:14.000Z | 2019-11-20T15:13:00.000Z | //
// Copyright (c) 2016-2018 João Baptista de Paula e Silva.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, cop... | 33.546875 | 81 | 0.755007 | JoaoBaptMG |
776722a74f9267edf4bc43db31704a8270db44d0 | 11,618 | cxx | C++ | Src/Projects/device_faceCap/device_facecap_device.cxx | Mikkelbf/OpenMoBu | c57c41a0908ad7734d48642549758271d11263b8 | [
"BSD-3-Clause"
] | 53 | 2018-04-21T14:16:46.000Z | 2022-03-19T11:27:37.000Z | Src/Projects/device_faceCap/device_facecap_device.cxx | Mikkelbf/OpenMoBu | c57c41a0908ad7734d48642549758271d11263b8 | [
"BSD-3-Clause"
] | 6 | 2019-06-05T16:37:29.000Z | 2021-09-20T07:17:03.000Z | Src/Projects/device_faceCap/device_facecap_device.cxx | Mikkelbf/OpenMoBu | c57c41a0908ad7734d48642549758271d11263b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-22T18:43:59.000Z | 2021-09-02T18:53:37.000Z |
/** \file device_facecap_device.cxx
* Developed by Sergei <Neill3d> Solokhin 2019
* e-mail to: s@neill3d.com
* twitter: @Neill3d
*
* OpenMoBu github - https://github.com/Neill3d/OpenMoBu
*/
//--- Class declaration
#include "device_facecap_device.h"
//--- Registration defines
#define CDEVICEFACECAP__CLASS CDEVICEFAC... | 24.771855 | 105 | 0.637545 | Mikkelbf |
777305d41cb6005d0343a95e544d96e23a2161e2 | 5,301 | hpp | C++ | libcore/include/sirikata/core/options/CommonOptions.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | libcore/include/sirikata/core/options/CommonOptions.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | libcore/include/sirikata/core/options/CommonOptions.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | /* Sirikata
* CommonOptions.hpp
*
* Copyright (c) 2009, Ewen Cheslack-Postava
* 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 ... | 40.776923 | 100 | 0.776646 | pathorn |
a55cdb5b46324a3125bcb3c81828b3cb4522773e | 3,730 | hpp | C++ | ysu/node/bootstrap/bootstrap_attempt.hpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/node/bootstrap/bootstrap_attempt.hpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/node/bootstrap/bootstrap_attempt.hpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <ysu/node/bootstrap/bootstrap.hpp>
#include <atomic>
#include <future>
namespace ysu
{
class node;
class frontier_req_client;
class bulk_push_client;
class bootstrap_attempt : public std::enable_shared_from_this<bootstrap_attempt>
{
public:
explicit bootstrap_attempt (std::shared_ptr<ysu::nod... | 42.386364 | 137 | 0.755496 | lik2129 |
a56003e1f0d6423a7ed96b89bac370a374f70cbc | 74,166 | cpp | C++ | Market/Market.cpp | MichaelXanth/RPG_Game | 4ce98fb2b03719dbd026afea7e270b623b09b2a0 | [
"MIT"
] | 3 | 2020-06-22T16:21:03.000Z | 2020-07-05T12:10:29.000Z | Market/Market.cpp | MichaelXanth/RPG_Game | 4ce98fb2b03719dbd026afea7e270b623b09b2a0 | [
"MIT"
] | null | null | null | Market/Market.cpp | MichaelXanth/RPG_Game | 4ce98fb2b03719dbd026afea7e270b623b09b2a0 | [
"MIT"
] | null | null | null | /* File: Market.cpp */
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits>
#include <unistd.h>
#include "../Input_Validation/Input_Validation.hpp"
#include "../Items/Armor.hpp"
#include "../Items/Potion.hpp"
#include "../Items/Weapon.hpp"
#include "../Living/Heroes/Hero.hpp"
#incl... | 38.09245 | 524 | 0.436912 | MichaelXanth |
a5639343acaa9d179e3370c34b5aa55147d01427 | 14,059 | cpp | C++ | HTWK_SD_FILTER/SD_FreestyleSchnapsSaufen/Freestyle.cpp | HTWKSmartDriving/aadc-2015 | 95ee77aa0f9ebbb541bbb1e3b99d3f044347d103 | [
"BSD-2-Clause"
] | 2 | 2017-11-29T00:15:26.000Z | 2017-11-29T01:45:54.000Z | HTWK_SD_FILTER/SD_FreestyleSchnapsSaufen/Freestyle.cpp | HTWKSmartDriving/aadc-2015 | 95ee77aa0f9ebbb541bbb1e3b99d3f044347d103 | [
"BSD-2-Clause"
] | null | null | null | HTWK_SD_FILTER/SD_FreestyleSchnapsSaufen/Freestyle.cpp | HTWKSmartDriving/aadc-2015 | 95ee77aa0f9ebbb541bbb1e3b99d3f044347d103 | [
"BSD-2-Clause"
] | 2 | 2017-11-28T23:47:27.000Z | 2019-07-19T08:04:50.000Z | /**
* Copyright (c) 2014-2015, HTWK SmartDriving
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this lis... | 33.47381 | 166 | 0.775375 | HTWKSmartDriving |
a565e2c43ad945daf61e2949305b14d18a01a3ed | 2,599 | cpp | C++ | src/boss/blob.cpp | Lab-RoCoCo/fps_mapper | 376e557c8f5012e05187fe85ee3f4044f99f944a | [
"BSD-3-Clause"
] | 1 | 2017-12-01T14:57:16.000Z | 2017-12-01T14:57:16.000Z | src/boss/blob.cpp | Lab-RoCoCo/fps_mapper | 376e557c8f5012e05187fe85ee3f4044f99f944a | [
"BSD-3-Clause"
] | null | null | null | src/boss/blob.cpp | Lab-RoCoCo/fps_mapper | 376e557c8f5012e05187fe85ee3f4044f99f944a | [
"BSD-3-Clause"
] | null | null | null | /*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2013 <copyright holder> <email>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either ve... | 26.252525 | 75 | 0.710273 | Lab-RoCoCo |
a569e99c0c0abfab7cdaa89a8d125cf39b96d901 | 786 | cpp | C++ | C++/Playlist Maker/Song.cpp | Andrustn/Andrustn.github.io | 8cc1cf815a20be06373ca61c57bb29ec41ef79f2 | [
"MIT"
] | null | null | null | C++/Playlist Maker/Song.cpp | Andrustn/Andrustn.github.io | 8cc1cf815a20be06373ca61c57bb29ec41ef79f2 | [
"MIT"
] | null | null | null | C++/Playlist Maker/Song.cpp | Andrustn/Andrustn.github.io | 8cc1cf815a20be06373ca61c57bb29ec41ef79f2 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include "Song.h"
void Song::SetSongName(string userSongName) {
songName = userSongName;
}
void Song::SetSongFirstLine(string userSongFirstLine) {
songFirstLine = userSongFirstLine;
}
void Song::SetTimesPlayed(int userTimesPlayed) {
timesPlayed = userTimesPlayed;
}
S... | 22.457143 | 60 | 0.720102 | Andrustn |
a573cd65a101e523428e648128c51c79e2092a58 | 1,127 | cpp | C++ | vulcan_test/debug_stream.cpp | WarlockD/Vulkan2D-Engine | c7808e7d29cd52ba096b03e26839efa781691de7 | [
"MIT"
] | 1 | 2021-07-02T20:35:05.000Z | 2021-07-02T20:35:05.000Z | vulcan_test/debug_stream.cpp | WarlockD/Vulkan2D-Engine | c7808e7d29cd52ba096b03e26839efa781691de7 | [
"MIT"
] | null | null | null | vulcan_test/debug_stream.cpp | WarlockD/Vulkan2D-Engine | c7808e7d29cd52ba096b03e26839efa781691de7 | [
"MIT"
] | null | null | null | #include "dbgstream.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <fstream>
#ifdef DBG_TIMESTAMP
extern "C" {
#include <time.h>
};
#endif /* DBG_TIMESTAMP */
using namespace std;
dbgstream dbg;
dbgbuf::~dbgbuf()
{
flushMsg();
}
void dbgbuf::flushMsg()
{
if (msg.length() > 0) {
#if DBG_TIMESTAMP
... | 15.22973 | 58 | 0.606921 | WarlockD |
a573d91bf5f42ade2faa44b67835c31c0bec6bb2 | 290 | hpp | C++ | font.hpp | 5cript/cairo-wrap | d436eea920496830647a86488c2878a76c1e7479 | [
"MIT"
] | 1 | 2020-11-11T17:19:14.000Z | 2020-11-11T17:19:14.000Z | font.hpp | 5cript/cairo-wrap | d436eea920496830647a86488c2878a76c1e7479 | [
"MIT"
] | null | null | null | font.hpp | 5cript/cairo-wrap | d436eea920496830647a86488c2878a76c1e7479 | [
"MIT"
] | 1 | 2021-03-01T08:53:46.000Z | 2021-03-01T08:53:46.000Z | #pragma once
#include "core.hpp"
#include <string>
namespace Cairo
{
struct Font
{
std::string family = "Arial";
double size = 12;
cairo_font_weight_t weight = CAIRO_FONT_WEIGHT_NORMAL;
cairo_font_slant_t slant = CAIRO_FONT_SLANT_NORMAL;
};
}
| 17.058824 | 62 | 0.648276 | 5cript |
a57dca26601e33459ea64de3041af5be99acb32a | 880 | hh | C++ | simlucid/include/SimLucidSteppingVerbose.hh | CERNatschool/SimLUCID-lite | ccc6000bfbcd70538e60a0d46fe3f2f2ef43653a | [
"MIT"
] | null | null | null | simlucid/include/SimLucidSteppingVerbose.hh | CERNatschool/SimLUCID-lite | ccc6000bfbcd70538e60a0d46fe3f2f2ef43653a | [
"MIT"
] | null | null | null | simlucid/include/SimLucidSteppingVerbose.hh | CERNatschool/SimLUCID-lite | ccc6000bfbcd70538e60a0d46fe3f2f2ef43653a | [
"MIT"
] | null | null | null | /*! \file SimLucidSteppingVerbose.hh
* \brief The header file for the SimLucidSteppingVerbose class.
*/
class SimLucidSteppingVerbose;
#ifndef SimLucidSteppingVerbose_h
#define SimLucidSteppingVerbose_h 1
// GEANT4 includes
#include "G4SteppingVerbose.hh"
/*! \brief Class handling user-defined verbose actions.
@... | 23.783784 | 77 | 0.765909 | CERNatschool |
a57fd356c2bfe0dcabd2affd17d0daae6cb3b0c2 | 829 | cpp | C++ | CFPExercise2.21.2019/CFPExercise2.21.2019/CFPExercise2.21.2019.cpp | cperez604/ITSE-1307-Spring-2019 | c5137d7e6b2785c0eb37df0964ba6d61c7cc7555 | [
"MIT"
] | null | null | null | CFPExercise2.21.2019/CFPExercise2.21.2019/CFPExercise2.21.2019.cpp | cperez604/ITSE-1307-Spring-2019 | c5137d7e6b2785c0eb37df0964ba6d61c7cc7555 | [
"MIT"
] | null | null | null | CFPExercise2.21.2019/CFPExercise2.21.2019/CFPExercise2.21.2019.cpp | cperez604/ITSE-1307-Spring-2019 | c5137d7e6b2785c0eb37df0964ba6d61c7cc7555 | [
"MIT"
] | null | null | null | // CFPExercise2.21.2019.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
//establish variables
double dblfirstvariable = .0;
double dblsecondvariable = .0;
double dblvariablec = .0;
c... | 29.607143 | 111 | 0.685163 | cperez604 |
a5818f8c8078d29e54b073bb18211c39f0ed474d | 552 | cpp | C++ | PTA_L1/L1_062.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | PTA_L1/L1_062.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | PTA_L1/L1_062.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
int N;
cin >> N;
while (N--)
{
string s;
cin >> s;
int sum1 = 0, sum2 = 0;
sum1 = (s[0] - '0') + (s[1] - '0') + (s[2] - '0');
sum2 = (s[3] - '0') + (s[4] - '0') + (s[5] - '0');
... | 21.230769 | 59 | 0.34058 | codehuanglei |
a582f06ceeaa1b13c8acfc0ed0d6b92790f214ff | 5,237 | cpp | C++ | Main.cpp | d0lev/messageboard | 8db6c72bb973981e6078b087f4e2e69e6998ac0d | [
"MIT"
] | null | null | null | Main.cpp | d0lev/messageboard | 8db6c72bb973981e6078b087f4e2e69e6998ac0d | [
"MIT"
] | null | null | null | Main.cpp | d0lev/messageboard | 8db6c72bb973981e6078b087f4e2e69e6998ac0d | [
"MIT"
] | null | null | null | #include <iostream>
#include "Direction.hpp"
#include "Board.hpp"
using namespace std;
using namespace ariel;
int main() {
ariel::Board board;
// declaration of all variables
uint row , column , length;
int func;
int dir;
string message;
Direction direction;
// wellcome line
cout <<... | 56.923913 | 121 | 0.384762 | d0lev |
a584c0e21e636636f4c9c8814415f22a23672567 | 376 | hpp | C++ | mr.Sadman/Classes/GameAct/Objects/Physical/PushPlate/PushPlate.hpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | mr.Sadman/Classes/GameAct/Objects/Physical/PushPlate/PushPlate.hpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | 3 | 2020-12-11T10:01:27.000Z | 2022-02-13T22:12:05.000Z | mr.Sadman/Classes/GameAct/Objects/Physical/PushPlate/PushPlate.hpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | #ifndef __GAME_ACT_PHYSICAL_PUSH_PLATE_HPP__
#define __GAME_ACT_PHYSICAL_PUSH_PLATE_HPP__
#include "GameAct/Objects/Physical/Button/Button.hpp"
namespace GameAct
{
namespace Physical
{
class PushPlate
: public Button
{
public:
void setRotation( float angle ) override;
void runAction( const st... | 13.925926 | 56 | 0.723404 | 1pkg |
a585088f28f2a6aca4ec849621838d21bdc7e58f | 1,193 | hpp | C++ | src/CmdNodeDisconnect.hpp | Bwar/NebulaBeacon | 4fbb53cd0c56811d25a08c47aaf67a8398e9ecc4 | [
"Apache-2.0"
] | 3 | 2019-01-24T02:49:57.000Z | 2021-06-06T08:40:34.000Z | src/CmdNodeDisconnect.hpp | Bwar/NebulaBeacon | 4fbb53cd0c56811d25a08c47aaf67a8398e9ecc4 | [
"Apache-2.0"
] | 3 | 2021-06-01T03:21:13.000Z | 2021-09-02T04:46:27.000Z | src/CmdNodeDisconnect.hpp | Bwar/NebulaBeacon | 4fbb53cd0c56811d25a08c47aaf67a8398e9ecc4 | [
"Apache-2.0"
] | 3 | 2019-10-05T12:13:03.000Z | 2021-06-06T08:40:20.000Z | /*******************************************************************************
* Project: Beacon
* @file CmdNodeDisconnect.hpp
* @brief
* @author bwar
* @date: Feb 14, 2017
* @note
* Modify history:
******************************************************************************/
#ifndef SRC_CMDNODED... | 26.511111 | 94 | 0.601006 | Bwar |
a58b86ffcbbbc0f9e0057421f95ee69f03cc24a4 | 507 | cpp | C++ | lab3(assignment 3 date).cpp | ahmedtarek26/oop_assignments | a6f334e013dfaef5ca59658f0b2fd8d365902492 | [
"MIT"
] | null | null | null | lab3(assignment 3 date).cpp | ahmedtarek26/oop_assignments | a6f334e013dfaef5ca59658f0b2fd8d365902492 | [
"MIT"
] | null | null | null | lab3(assignment 3 date).cpp | ahmedtarek26/oop_assignments | a6f334e013dfaef5ca59658f0b2fd8d365902492 | [
"MIT"
] | null | null | null |
#include <iostream>
#include<string>
using namespace std;
struct Date {
int day=18 , month=11, year=2020;
};
void Date_next(){
Date current;
for (int i = 1; i < 45; i++) {
if(current.day==31){
current.day=1;
current.day+=1;
current.month+=1;
}
else
current... | 16.354839 | 39 | 0.530572 | ahmedtarek26 |
a58c1e5e82b200b494cf624346a6313435d8266a | 3,006 | cpp | C++ | src/udpbridge_ui.cpp | GFOE/udp_bridge | e845a587b300af802ca310f1df253e03baf32bc4 | [
"BSD-2-Clause"
] | 6 | 2018-12-22T15:32:29.000Z | 2022-03-07T14:56:44.000Z | src/udpbridge_ui.cpp | GFOE/udp_bridge | e845a587b300af802ca310f1df253e03baf32bc4 | [
"BSD-2-Clause"
] | null | null | null | src/udpbridge_ui.cpp | GFOE/udp_bridge | e845a587b300af802ca310f1df253e03baf32bc4 | [
"BSD-2-Clause"
] | 8 | 2018-04-05T19:57:36.000Z | 2022-02-07T15:49:41.000Z | #include <ros/ros.h>
#include <ros/master.h>
#include "udp_bridge/ChannelStatisticsArray.h"
void statisticsCallback(udp_bridge::ChannelStatisticsArray const &stats)
{
std::vector<std::string> headers {"source topic", "remote host", " messages", "message data", " packet data", " compressed", " ratio", "send e... | 34.953488 | 159 | 0.574185 | GFOE |
a591d7ef8bc0fb27ae8c0b8fe4e82791f5fbb499 | 1,497 | cpp | C++ | src/CMessageHeader.cpp | gasteve/bitcoin | b5e79be9e7612c31403a2231ba03850f495ea9c1 | [
"MIT"
] | 1 | 2017-05-18T17:12:00.000Z | 2017-05-18T17:12:00.000Z | src/CMessageHeader.cpp | gasteve/bitcoin | b5e79be9e7612c31403a2231ba03850f495ea9c1 | [
"MIT"
] | null | null | null | src/CMessageHeader.cpp | gasteve/bitcoin | b5e79be9e7612c31403a2231ba03850f495ea9c1 | [
"MIT"
] | null | null | null | #include "CMessageHeader.h"
//
// Message header
// (4) message start
// (12) command
// (4) size
// (4) checksum
extern char pchMessageStart[4];
CMessageHeader::CMessageHeader()
{
memcpy(pchMessageStart, ::pchMessageStart, sizeof(pchMessageStart));
memset(pchCommand, 0, sizeof(pchCommand));
pchCommand[1] = 1... | 22.343284 | 117 | 0.691383 | gasteve |
a5998ad829b04b45d1ad23645e65ab2abde31d6c | 1,834 | cpp | C++ | VME/GBO.cpp | KIKU-O/VME | e87d5d9543d30e5b15f7cf5a04878a32290326df | [
"MIT"
] | null | null | null | VME/GBO.cpp | KIKU-O/VME | e87d5d9543d30e5b15f7cf5a04878a32290326df | [
"MIT"
] | null | null | null | VME/GBO.cpp | KIKU-O/VME | e87d5d9543d30e5b15f7cf5a04878a32290326df | [
"MIT"
] | null | null | null | #include "GBO.h"
void GBO::Load()
{
Shader.Load("Shaders\\Geometry-Buffer.vert", "Shaders\\Geometry-Buffer.frag");
}
void GBO::Initialize()
{
glGenFramebuffers(1, &FBO);
glBindFramebuffer(GL_FRAMEBUFFER, FBO);
// POSITION
glGenTextures(1, &Position);
glBindTexture(GL_TEXTURE_2D, Position);
... | 36.68 | 93 | 0.749182 | KIKU-O |
a59a6eb8901e97195d2f268082101a331396881b | 3,559 | hpp | C++ | retrace.hpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | 1 | 2020-06-19T12:34:44.000Z | 2020-06-19T12:34:44.000Z | retrace.hpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | retrace.hpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | /**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* 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 wit... | 24.047297 | 80 | 0.652711 | prahal |
a59c53b2e48a5327e9f15e69a2fb30db04b85584 | 3,279 | cpp | C++ | firmware-latest/wiring/src/spark_wiring_servo.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | firmware-latest/wiring/src/spark_wiring_servo.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | firmware-latest/wiring/src/spark_wiring_servo.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | null | null | null | /**
******************************************************************************
* @file spark_wiring_spi.h
* @author Zach Supalla
* @version V1.0.0
* @date 06-December-2013
* @brief Header for spark_wiring_servo.cpp module
******************************************************************************... | 24.288889 | 80 | 0.623056 | adeeshag |
a5a6d839502a01a11f2720b80fdd3f29eb0587c6 | 2,330 | cpp | C++ | main.cpp | ennis/autograph-shaders-2 | 7b7b91400206409c2fc422b04ab8732093e8b082 | [
"MIT"
] | null | null | null | main.cpp | ennis/autograph-shaders-2 | 7b7b91400206409c2fc422b04ab8732093e8b082 | [
"MIT"
] | null | null | null | main.cpp | ennis/autograph-shaders-2 | 7b7b91400206409c2fc422b04ab8732093e8b082 | [
"MIT"
] | null | null | null | #include "clang/Frontend/FrontendActions.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Tooling.h"
#include "clang/Tooling/ArgumentsAdjusters.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "clang/AST/ASTConsumer.h"
#i... | 31.917808 | 116 | 0.745923 | ennis |
a5af59e56fb3473c35d2877a58fc811bbac716b9 | 49,201 | hh | C++ | Dimensions.hh | pirl-lpl/pirlplusplus | d3211b05fc18f11fc66d97d5bcaeabcbd0b8b6e0 | [
"Apache-2.0"
] | null | null | null | Dimensions.hh | pirl-lpl/pirlplusplus | d3211b05fc18f11fc66d97d5bcaeabcbd0b8b6e0 | [
"Apache-2.0"
] | null | null | null | Dimensions.hh | pirl-lpl/pirlplusplus | d3211b05fc18f11fc66d97d5bcaeabcbd0b8b6e0 | [
"Apache-2.0"
] | null | null | null | /* Dimensions
PIRL CVS ID: $Id: Dimensions.hh,v 1.27 2011/02/18 02:29:28 castalia Exp $
Copyright (C) 2010 Arizona Board of Regents on behalf of the
Planetary Image Research Laboratory, Lunar and Planetary Laboratory at
the University of Arizona.
This library is free software; you can redistribute it and/or modify ... | 30.635741 | 80 | 0.717242 | pirl-lpl |
a5b1aba678b7bd2cf1fedd5310d6b14c6c0247e4 | 1,116 | hpp | C++ | include/dca/phys/dca_step/cluster_solver/ctaux/walker/ct_aux_walker_tools_kernels.hpp | frobnitzem/DCA | 9f5d16cbfe1a4c4df1d4c8353654dd2882671dca | [
"BSD-3-Clause"
] | 27 | 2018-08-02T04:28:23.000Z | 2021-07-08T02:14:20.000Z | include/dca/phys/dca_step/cluster_solver/ctaux/walker/ct_aux_walker_tools_kernels.hpp | frobnitzem/DCA | 9f5d16cbfe1a4c4df1d4c8353654dd2882671dca | [
"BSD-3-Clause"
] | 200 | 2018-08-02T18:19:03.000Z | 2022-03-16T21:28:41.000Z | include/dca/phys/dca_step/cluster_solver/ctaux/walker/ct_aux_walker_tools_kernels.hpp | PDoakORNL/DCA-2 | 5a373f6af5a7d4b5be69199f60ec75a16e58c626 | [
"BSD-3-Clause"
] | 22 | 2018-08-15T15:50:00.000Z | 2021-09-30T13:41:46.000Z | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Peter Staar (taa@zurich.ibm.com)
//
// GPU kernels for walker tools.
#ifndef DCA_... | 32.823529 | 95 | 0.747312 | frobnitzem |
a5b232cf0e41043f2151ecd73a85066b68d773c1 | 78 | cpp | C++ | Source/L2NextCrypto/Private/Utils/Streams/InputStream.cpp | L2Next/L2NextCrypto | 005a893b5d04e8fc522cb0e08f92b39d5411b98c | [
"MIT"
] | 4 | 2020-09-04T21:33:35.000Z | 2021-05-30T14:25:27.000Z | Source/L2NextCrypto/Private/Utils/Streams/InputStream.cpp | L2Next/L2NextCrypto | 005a893b5d04e8fc522cb0e08f92b39d5411b98c | [
"MIT"
] | 9 | 2020-08-15T14:07:12.000Z | 2021-06-25T05:48:58.000Z | Source/L2NextCrypto/Private/Utils/Streams/InputStream.cpp | L2Next/L2NextCrypto | 005a893b5d04e8fc522cb0e08f92b39d5411b98c | [
"MIT"
] | 2 | 2020-11-20T04:03:42.000Z | 2021-03-04T21:46:50.000Z | #include "Utils/Streams/InputStream.h"
using namespace L2NextCryptoStreams;
| 15.6 | 38 | 0.820513 | L2Next |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.