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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2d7ec02d9a05c4a122057bf8d8f85e8f164bcf6 | 10,999 | inl | C++ | include/Vorb/Vector.inl | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 65 | 2018-06-03T23:09:46.000Z | 2021-07-22T22:03:34.000Z | include/Vorb/Vector.inl | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 8 | 2018-06-20T17:21:30.000Z | 2020-06-30T01:06:26.000Z | include/Vorb/Vector.inl | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 34 | 2018-06-04T03:40:52.000Z | 2022-02-15T07:02:05.000Z | /* This file implements all operators for the Vector types. */
// Helper macro to add assignment operators for the currently defined vector.
#define ADD_COMPOUND_ASSIGNMENT_OPERATORS \
COMPOUND_ASSIGNMENT(+= ); \
COMPOUND_ASSIGNMENT(-= ); \
COMPOUND_ASSIGNMENT(*= ); \
COMPOUND_ASSIGNMENT(/= ); \
COMPOUND_ASSIGNMENT(%=... | 31.697406 | 101 | 0.613965 | ChillstepCoder |
c2dd18cee696bd36df3c87700284d7c56ddbd65a | 4,448 | hh | C++ | src/file/prob/parprobpipeline.hh | aaszodi/multovl | 00c5b74e65c7aa37cddea8b2ae277fe67fbc59a8 | [
"MIT"
] | 2 | 2018-03-06T02:36:25.000Z | 2020-01-13T10:55:35.000Z | src/file/prob/parprobpipeline.hh | aaszodi/multovl | 00c5b74e65c7aa37cddea8b2ae277fe67fbc59a8 | [
"MIT"
] | null | null | null | src/file/prob/parprobpipeline.hh | aaszodi/multovl | 00c5b74e65c7aa37cddea8b2ae277fe67fbc59a8 | [
"MIT"
] | null | null | null | /* <LICENSE>
License for the MULTOVL multiple genomic overlap tools
Copyright (c) 2007-2012, Dr Andras Aszodi,
Campus Science Support Facilities GmbH (CSF),
Dr-Bohr-Gasse 3, A-1030 Vienna, Austria, Europe.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permi... | 37.378151 | 92 | 0.73696 | aaszodi |
123de896206d5746f22aa2b9908819ecfe7e92a8 | 8,264 | cpp | C++ | src/CodeGen_Zynq_C.cpp | kevinkim06/Halide-FIRRTL | e0e64aab1ecbc9c7fce17a929fea765d5412378d | [
"MIT"
] | 1 | 2019-03-03T00:19:21.000Z | 2019-03-03T00:19:21.000Z | src/CodeGen_Zynq_C.cpp | kevinkim06/Halide-FIRRTL | e0e64aab1ecbc9c7fce17a929fea765d5412378d | [
"MIT"
] | null | null | null | src/CodeGen_Zynq_C.cpp | kevinkim06/Halide-FIRRTL | e0e64aab1ecbc9c7fce17a929fea765d5412378d | [
"MIT"
] | 1 | 2019-03-03T00:21:02.000Z | 2019-03-03T00:21:02.000Z | #include <iostream>
#include <limits>
#include "CodeGen_Zynq_C.h"
#include "CodeGen_Internal.h"
#include "IROperator.h"
#include "Simplify.h"
namespace Halide {
namespace Internal {
using std::ostream;
using std::endl;
using std::string;
using std::vector;
using std::pair;
using std::ostringstream;
using std::to_str... | 34.722689 | 158 | 0.584342 | kevinkim06 |
123ec0fb25bcc03033cffc2d9137bfc0bd9993be | 129 | hpp | C++ | deps/opencv/win/include/opencv2/reg/mapperpyramid.hpp | YLiLarry/ggframe | ffb6a7d7d878c155d03830cf6fb6fb8f948084f0 | [
"MIT"
] | null | null | null | deps/opencv/win/include/opencv2/reg/mapperpyramid.hpp | YLiLarry/ggframe | ffb6a7d7d878c155d03830cf6fb6fb8f948084f0 | [
"MIT"
] | null | null | null | deps/opencv/win/include/opencv2/reg/mapperpyramid.hpp | YLiLarry/ggframe | ffb6a7d7d878c155d03830cf6fb6fb8f948084f0 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:86174bf90d9ed9280d77cb38b39041e56c8742dd60eeb77a6275eeea4bc086fb
size 3851
| 32.25 | 75 | 0.883721 | YLiLarry |
124133c752dc2371e7834c838c208addfba365f8 | 261 | hpp | C++ | include/jln/mp/smp/list/pop_back.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp/smp/list/pop_back.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp/smp/list/pop_back.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/smp/algorithm/rotate.hpp>
#include <jln/mp/smp/list/pop_front.hpp>
#include <jln/mp/list/pop_back.hpp>
namespace jln::mp::smp
{
template<class C = listify>
using pop_back = mp::detail::sfinae<mp::pop_back<subcontract<C>>>;
}
| 21.75 | 68 | 0.720307 | jonathanpoelen |
12426a8c585cd8a92ef063b1da53b83438d479e2 | 2,381 | hpp | C++ | libs/core/include/core/byte_array/byte_array.hpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | 1 | 2019-05-15T17:23:08.000Z | 2019-05-15T17:23:08.000Z | libs/core/include/core/byte_array/byte_array.hpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | null | null | null | libs/core/include/core/byte_array/byte_array.hpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | null | null | null | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018 Fetch.AI Limited
//
// 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... | 31.746667 | 100 | 0.657287 | AronVanAmmers |
12448aa38ba21c252984b54eff71d070c47e58b7 | 10,983 | cc | C++ | third_party/nucleus/io/bed_reader.cc | ruif2009/deepvariant | c7fd07016577c253f81ef253aed65c416e4c0ef7 | [
"BSD-3-Clause"
] | null | null | null | third_party/nucleus/io/bed_reader.cc | ruif2009/deepvariant | c7fd07016577c253f81ef253aed65c416e4c0ef7 | [
"BSD-3-Clause"
] | null | null | null | third_party/nucleus/io/bed_reader.cc | ruif2009/deepvariant | c7fd07016577c253f81ef253aed65c416e4c0ef7 | [
"BSD-3-Clause"
] | 1 | 2022-02-03T21:54:57.000Z | 2022-02-03T21:54:57.000Z | /*
* Copyright 2018 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disc... | 36.732441 | 80 | 0.693344 | ruif2009 |
124bd83394fbb1af01f40c4a7a8a3c8110b6e7f2 | 361 | cpp | C++ | codeforces/235b.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 5 | 2015-07-14T10:29:25.000Z | 2016-10-11T12:45:18.000Z | codeforces/235b.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | null | null | null | codeforces/235b.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 3 | 2016-08-23T01:05:26.000Z | 2017-05-28T02:04:20.000Z | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int N;
double p[111111], ans;
int main() {
int i, j, k;
cin>>N;
for (i = 0; i < N; ++i) {
scanf("%lf", p+i);
ans += p[i];
}
double now = 0;
for (i = 1; i < N; ++i) {
now = (now+p[i-1])*p[i];
ans += 2*now;
... | 14.44 | 26 | 0.526316 | jffifa |
124c5604f5c0c68e1195f8ab2c05b7f6eee9a6ff | 390 | hpp | C++ | wechat/models/wx_synckey.hpp | ArkBriar/WxPenguin | ae1cf9719a185b3ecb546e4f0537c6afc77ddb45 | [
"MIT"
] | 1 | 2017-03-13T09:59:30.000Z | 2017-03-13T09:59:30.000Z | wechat/models/wx_synckey.hpp | arkbriar/WxPenguin | ae1cf9719a185b3ecb546e4f0537c6afc77ddb45 | [
"MIT"
] | null | null | null | wechat/models/wx_synckey.hpp | arkbriar/WxPenguin | ae1cf9719a185b3ecb546e4f0537c6afc77ddb45 | [
"MIT"
] | null | null | null | #pragma once
#ifndef WX_SYNCKEY_HPP_1Z6TPOWO
#define WX_SYNCKEY_HPP_1Z6TPOWO
#include <string>
#include "../json/json.hpp"
namespace WebWx {
namespace Model {
class WxSyncKey {
public:
//@no impl/
WxSyncKey() {}
WxSyncKey(const nlohmann::json&) {}
};
... | 15.6 | 58 | 0.597436 | ArkBriar |
125296dcd01bdd43a61a1ff1ac2c8db7d4c39470 | 2,207 | cpp | C++ | test/std_complex.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 1 | 2018-01-27T23:35:21.000Z | 2018-01-27T23:35:21.000Z | test/std_complex.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 2 | 2019-08-17T05:37:36.000Z | 2019-08-17T22:57:26.000Z | test/std_complex.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 1 | 2021-03-19T11:53:53.000Z | 2021-03-19T11:53:53.000Z | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// test_complex.cpp
// (C) Copyright 2005 Matthias Troyer .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_... | 31.528571 | 80 | 0.643407 | rwols |
125624723ff8ea429178ef0793673794b8123142 | 11,945 | cpp | C++ | src/Interop.cpp | jparimaa/glvk-interop | 3428cafe5ea0359609fd42d84b87b1900d9ff58f | [
"MIT"
] | null | null | null | src/Interop.cpp | jparimaa/glvk-interop | 3428cafe5ea0359609fd42d84b87b1900d9ff58f | [
"MIT"
] | null | null | null | src/Interop.cpp | jparimaa/glvk-interop | 3428cafe5ea0359609fd42d84b87b1900d9ff58f | [
"MIT"
] | null | null | null | #include "Interop.hpp"
#include "VulkanUtils.hpp"
#include "Utils.hpp"
#include <vulkan/vulkan_win32.h>
#include <array>
Interop::Interop(Context& context) :
m_context(context),
m_device(context.getDevice())
{
createInteropSemaphores();
createInteropTexture();
}
Interop::~Interop()
{
vkDeviceWaitI... | 43.436364 | 170 | 0.787024 | jparimaa |
12582c1c94e65991b001b7c8b821cb886a6f6b74 | 1,715 | cpp | C++ | test/main.cpp | pfeifenheini/cppProjects | c2ffd3e02711af041698ff32a8dd89498f6ee3e5 | [
"MIT"
] | null | null | null | test/main.cpp | pfeifenheini/cppProjects | c2ffd3e02711af041698ff32a8dd89498f6ee3e5 | [
"MIT"
] | null | null | null | test/main.cpp | pfeifenheini/cppProjects | c2ffd3e02711af041698ff32a8dd89498f6ee3e5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <limits>
#include <queue>
#include <math.h>
#include <conio.h>
#include <mingw.thread.h>
#include <mingw.mutex.h>
using namespace std;
int currentNumber = 3;
int primeNumbersPrinted = 0;
int largestPrime = 2;
bool keepWorking = true;
mutex mu_currentNumber, mu_print, mu_keepWorking;
b... | 18.244681 | 50 | 0.53586 | pfeifenheini |
1258d3e6997db21184b803589765e8df01d77019 | 4,622 | cpp | C++ | api/api_autogen/ui_form_extractor.cpp | nickdiorio/SAM | 4288d4261f4f88f44106867b561b81c2ba480c85 | [
"BSD-3-Clause"
] | null | null | null | api/api_autogen/ui_form_extractor.cpp | nickdiorio/SAM | 4288d4261f4f88f44106867b561b81c2ba480c85 | [
"BSD-3-Clause"
] | null | null | null | api/api_autogen/ui_form_extractor.cpp | nickdiorio/SAM | 4288d4261f4f88f44106867b561b81c2ba480c85 | [
"BSD-3-Clause"
] | null | null | null | #include <stdexcept>
#include <iostream>
#include "ui_form_extractor.h"
#include "equation_extractor.h"
#include "variables.h"
std::unordered_map<std::string, std::unordered_map<std::string, VarValue>> SAM_ui_form_to_defaults;
ui_form_extractor_database SAM_ui_extracted_db;
VarValue ui_form_extractor::get_varvalue(w... | 27.843373 | 111 | 0.539161 | nickdiorio |
125c27c799008c0d6a066b63a3974c7111d448e8 | 4,030 | cpp | C++ | src/bytecode/Operations.cpp | VCrate/bytecode-description | c46f61fda817301b6705bc16654c634dc2c3212d | [
"MIT"
] | 1 | 2018-04-14T14:04:39.000Z | 2018-04-14T14:04:39.000Z | src/bytecode/Operations.cpp | VCrate/bytecode-description | c46f61fda817301b6705bc16654c634dc2c3212d | [
"MIT"
] | null | null | null | src/bytecode/Operations.cpp | VCrate/bytecode-description | c46f61fda817301b6705bc16654c634dc2c3212d | [
"MIT"
] | null | null | null | #include <vcrate/bytecode/Operations.hpp>
#include <map>
#include <iostream>
#include <algorithm>
namespace vcrate { namespace bytecode {
OpDefinition::OpDefinition(std::string const& name, Operations ope, std::vector<ui8> const& args_constraints)
: name(name), ope(ope), args_constraints(args_constraints) {}
ui... | 20.880829 | 109 | 0.462283 | VCrate |
12645efe5abc3ec5e7901c8a298ddce811069738 | 31,072 | cpp | C++ | export/windows/cpp/obj/src/flixel/input/FlxKeyManager.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | export/windows/cpp/obj/src/flixel/input/FlxKeyManager.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | export/windows/cpp/obj/src/flixel/input/FlxKeyManager.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.3.0
#include <hxcpp.h>
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_flixel_input_FlxBaseKeyList
#include <flixel/input/FlxBaseKeyList.h>
#endif
#ifndef INCLUDED_flixel_input_FlxInput
#include <flixel/input/FlxInput.h>
#endif
#ifndef INCLUDED_flixel_input_FlxKeyManager
#include... | 41.81965 | 196 | 0.682061 | TinyPlanetStudios |
126ab438d7361207f47319104e8bcae01249b567 | 3,235 | cc | C++ | Online Judge/11439 - Maximizing the ICPC.cc | BrehamPie/Problem-Solves | 055e21ca4922170b80c5a53f43d9216f34b6f642 | [
"CC0-1.0"
] | null | null | null | Online Judge/11439 - Maximizing the ICPC.cc | BrehamPie/Problem-Solves | 055e21ca4922170b80c5a53f43d9216f34b6f642 | [
"CC0-1.0"
] | null | null | null | Online Judge/11439 - Maximizing the ICPC.cc | BrehamPie/Problem-Solves | 055e21ca4922170b80c5a53f43d9216f34b6f642 | [
"CC0-1.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
// Finds Maximum matching in General Graph
// Complexity O(NM)
// source: https://codeforces.com/blog/entry/92339?#comment-810242
using pii = pair<int, int>;
int Blossom(vector<vector<int>>& graph) {
//mate contains matched edge.
int n = graph.size(), timer = -1;
... | 30.809524 | 66 | 0.381762 | BrehamPie |
128addfca10e75818526a5d246348437ef027395 | 2,473 | cc | C++ | sandbox/limit.cc | Codu-LLC/sandbox | f78cb0fb8705904ffcda370f3395ca134d5fd87e | [
"MIT"
] | 1 | 2021-02-11T11:10:06.000Z | 2021-02-11T11:10:06.000Z | sandbox/limit.cc | Codu-LLC/sandbox | f78cb0fb8705904ffcda370f3395ca134d5fd87e | [
"MIT"
] | 1 | 2021-02-26T08:20:08.000Z | 2021-02-26T08:44:54.000Z | sandbox/limit.cc | Codu-LLC/sandbox | f78cb0fb8705904ffcda370f3395ca134d5fd87e | [
"MIT"
] | null | null | null | //
// Created by Eugene Junghyun Kim on 1/13/2021.
//
#include "cgroup.h"
#include "limit.h"
#include "sandbox.h"
#include <cmath>
#include <memory>
#include <signal.h>
#include <sys/resource.h>
#include <string>
#include <unistd.h>
#define MB_TO_BYTES(x) ((x) << 20)
#define MILLISECONDS_TO_SECONDS(x) ((x)/1000.)
st... | 36.910448 | 116 | 0.680954 | Codu-LLC |
128bf43d9515c6a045c4f7110e5fdf0419481bf8 | 7,571 | hpp | C++ | src/scanner.hpp | ShameekConyers/sicinterpreter | 24d0451436f0af67d24aae987155c3b090aa2fed | [
"MIT"
] | null | null | null | src/scanner.hpp | ShameekConyers/sicinterpreter | 24d0451436f0af67d24aae987155c3b090aa2fed | [
"MIT"
] | null | null | null | src/scanner.hpp | ShameekConyers/sicinterpreter | 24d0451436f0af67d24aae987155c3b090aa2fed | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace TokenType
{
enum Any {
// single-char tokens 0
TOKEN_LEFT_PAREN,
TOKEN_RIGHT_PAREN,
TOKEN_LEFT_BRACE,
TOKEN_RIGHT_BRACE,
TOKEN_COMMA,
TOKEN_DOT,
TOKEN_SEMICOLON,
TOKEN_MINUS,
TOKEN_PLUS,
TOKEN_SLASH,
TOKEN_STAR,
// one or two character tokens 11
TO... | 22.399408 | 74 | 0.596355 | ShameekConyers |
128d7942607906359685849bba14e652bda730a4 | 585 | cpp | C++ | base/CountDownLatch.cpp | tryturned/webserver | f9a1342b08c1e2fe36249ce881a771b72bc9b423 | [
"MulanPSL-1.0"
] | null | null | null | base/CountDownLatch.cpp | tryturned/webserver | f9a1342b08c1e2fe36249ce881a771b72bc9b423 | [
"MulanPSL-1.0"
] | null | null | null | base/CountDownLatch.cpp | tryturned/webserver | f9a1342b08c1e2fe36249ce881a771b72bc9b423 | [
"MulanPSL-1.0"
] | null | null | null | /*
* @Autor: taobo
* @Date: 2020-05-27 19:04:46
* @LastEditTime: 2020-12-22 12:41:50
* @Description: file content
*/
#include "CountDownLatch.h"
#include <condition_variable>
#include <mutex>
using namespace std;
CountDownLatch::CountDownLatch(int cnt) : cnt_(cnt) {}
void CountDownLatch::wait() {
unique_lock... | 21.666667 | 54 | 0.678632 | tryturned |
128fd91523797e94958160e046f2aefab3edbfb2 | 6,751 | cpp | C++ | tests/test_set.cpp | ftlorg/ftl | 75a580043ddf011477f0fbcb0ed1dc01be37814d | [
"BSL-1.0"
] | 47 | 2020-07-17T07:31:42.000Z | 2022-02-18T10:31:45.000Z | tests/test_set.cpp | ftlorg/ftl | 75a580043ddf011477f0fbcb0ed1dc01be37814d | [
"BSL-1.0"
] | 40 | 2020-07-23T09:01:39.000Z | 2020-12-19T15:19:44.000Z | tests/test_set.cpp | ftlorg/ftl | 75a580043ddf011477f0fbcb0ed1dc01be37814d | [
"BSL-1.0"
] | 1 | 2020-07-26T18:21:36.000Z | 2020-07-26T18:21:36.000Z | #include <catch2/catch.hpp>
#include <ftl/ftl.hpp>
#define TEST_TAG "[set]"
TEST_CASE(TEST_TAG "default ctor", TEST_TAG) {
ftl::set<std::string> set;
REQUIRE(set.empty());
}
TEST_CASE(TEST_TAG "input iterator ctor", TEST_TAG) {
ftl::set<std::string> set1 = { { std::string("red"), std::string("green"), std::st... | 25.284644 | 101 | 0.595171 | ftlorg |
1290e333a82a5283c1f171e46c32471442c99e93 | 130 | cc | C++ | src/enums/webrtc/media_type.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 1,302 | 2018-11-26T03:29:51.000Z | 2022-03-31T23:38:34.000Z | src/enums/webrtc/media_type.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 311 | 2018-11-26T14:22:19.000Z | 2022-03-28T09:47:38.000Z | src/enums/webrtc/media_type.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 233 | 2018-11-26T18:08:11.000Z | 2022-03-30T01:29:50.000Z | #include "src/enums/webrtc/media_type.h"
#define ENUM(X) CRICKET_MEDIA_TYPE ## X
#include "src/enums/macros/impls.h"
#undef ENUM
| 21.666667 | 40 | 0.753846 | elofun |
129267bd10d2c13f4e2c2cb14dd6f5dc753770a3 | 2,966 | cpp | C++ | source/puma/private/internal/ecs/components/inputcomponent.cpp | fpuma/Puma | e8eb5a8711f506077899a1fb5322d616a37e89c4 | [
"MIT"
] | null | null | null | source/puma/private/internal/ecs/components/inputcomponent.cpp | fpuma/Puma | e8eb5a8711f506077899a1fb5322d616a37e89c4 | [
"MIT"
] | null | null | null | source/puma/private/internal/ecs/components/inputcomponent.cpp | fpuma/Puma | e8eb5a8711f506077899a1fb5322d616a37e89c4 | [
"MIT"
] | null | null | null | #include "precompiledengine.h"
#include "internal/ecs/components/inputcomponent.h"
namespace puma
{
void InputComponent::addInputMap( InputAction _inputAction, MousePositionInput _mousePositionInput )
{
m_inputMaps.insert( InputMap( _inputAction, _mousePositionInput ) );
}
void InputComponent... | 31.892473 | 129 | 0.664869 | fpuma |
1296b8f82d6bf72057df336aefc3ba4e4fc933ba | 1,118 | cpp | C++ | CodeChef Starters 32/Volume Control.cpp | tarunbisht-24/Codechef-Contests | 8e7dcf69b839d586f4e73bc8183b8963a8cf1d50 | [
"Apache-2.0"
] | 1 | 2022-03-06T18:27:58.000Z | 2022-03-06T18:27:58.000Z | CodeChef Starters 32/Volume Control.cpp | tarunbisht-24/Codechef-Contests | 8e7dcf69b839d586f4e73bc8183b8963a8cf1d50 | [
"Apache-2.0"
] | null | null | null | CodeChef Starters 32/Volume Control.cpp | tarunbisht-24/Codechef-Contests | 8e7dcf69b839d586f4e73bc8183b8963a8cf1d50 | [
"Apache-2.0"
] | null | null | null | /*
Chef is watching TV. The current volume of the TV is X. Pressing the volume up button of the TV remote increases the volume by 1 while pressing the volume down button decreases the volume by 1. Chef wants to change the volume from X to Y. Find the minimum number of button presses required to do so.
Input Format
The... | 27.95 | 299 | 0.734347 | tarunbisht-24 |
129d5f744ed43e8f2ec753761ebfe8c2f4aa2a91 | 824,659 | cpp | C++ | src/main_5900.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_5900.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_5900.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: System.Net.Sockets.AddressFamily
#include "System/Net/Sockets/AddressFamily.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "... | 82.772157 | 478 | 0.774834 | RedBrumbler |
129decae7c2bfb652cde64569525de0b4d86450a | 6,855 | cpp | C++ | cinkciarzclient.cpp | dbautsch/CinkciarzClient | 077133f4b67bb567e753a297a9f08d6e865a9939 | [
"MIT"
] | null | null | null | cinkciarzclient.cpp | dbautsch/CinkciarzClient | 077133f4b67bb567e753a297a9f08d6e865a9939 | [
"MIT"
] | null | null | null | cinkciarzclient.cpp | dbautsch/CinkciarzClient | 077133f4b67bb567e753a297a9f08d6e865a9939 | [
"MIT"
] | null | null | null | #include "cinkciarzclient.h"
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QFile>
#include <QDebug>
#include <QCoreApplication>
static const QString currenciesUrl = "https://cinkciarz.pl/kantor/kursy-walut-cinkciarz-pl";
CinkciarzClient::CinkciarzClient(QNetworkAccess... | 32.334906 | 92 | 0.47469 | dbautsch |
129e460f38f866384518f5430ab009c38ac67265 | 695 | cpp | C++ | 2018/day-02/2b.cpp | Valokoodari/advent-of-code | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-27T18:59:11.000Z | 2022-01-10T02:31:36.000Z | 2018/day-02/2b.cpp | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | null | null | null | 2018/day-02/2b.cpp | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-23T17:29:10.000Z | 2021-12-24T03:21:49.000Z | #include <iostream>
#include <vector>
#include <string>
std::string x;
std::vector<std::string> ids;
int a,s;
bool d = false;
int main() {
freopen("2_input", "r", stdin);
freopen("2b_output", "w", stdout);
while (std::cin >> x && !d) {
for (int i = 0; i < ids.size(); i++) {
s = 0;
... | 19.857143 | 48 | 0.37554 | Valokoodari |
12a18af74dd0a37690d9b20827f4d7381cef0dfc | 287 | hpp | C++ | src/scene/Entity_Base.hpp | IsraelEfraim/cpp-engine | 039bcad97d55635a7a8f31d0d80ce59095ebb6cb | [
"MIT"
] | null | null | null | src/scene/Entity_Base.hpp | IsraelEfraim/cpp-engine | 039bcad97d55635a7a8f31d0d80ce59095ebb6cb | [
"MIT"
] | null | null | null | src/scene/Entity_Base.hpp | IsraelEfraim/cpp-engine | 039bcad97d55635a7a8f31d0d80ce59095ebb6cb | [
"MIT"
] | 2 | 2021-03-15T18:51:32.000Z | 2021-07-19T23:45:49.000Z | #ifndef CPP_ENGINE_ENTITY_BASE_HPP
#define CPP_ENGINE_ENTITY_BASE_HPP
namespace engine {
class Entity_Base {
public:
virtual auto render() -> void {}
virtual auto update(float seconds) -> void {}
virtual ~Entity_Base() = default;
};
}
#endif //CPP_ENGINE_ENTITY_BASE_HPP
| 17.9375 | 49 | 0.735192 | IsraelEfraim |
12abb2f888aea44ae9c68deabdee5c0b5c32b480 | 939 | cpp | C++ | pawnfield.cpp | mdziubich/chessGame_cpp | 80ff8adc17d6fa72441400e80a715f516e5b2989 | [
"MIT"
] | 2 | 2019-08-25T09:09:42.000Z | 2022-03-26T22:49:10.000Z | pawnfield.cpp | mdziubich/chessGame_cpp | 80ff8adc17d6fa72441400e80a715f516e5b2989 | [
"MIT"
] | 1 | 2019-10-13T02:50:45.000Z | 2019-11-06T20:31:37.000Z | pawnfield.cpp | mdziubich/chessGame_cpp | 80ff8adc17d6fa72441400e80a715f516e5b2989 | [
"MIT"
] | null | null | null | #include "pawnfield.h"
#include <QGraphicsProxyWidget>
#include "boardfield.h"
#include "boardposition.h"
#include "gameview.h"
#include "utils.h"
extern GameView *game;
PawnField::PawnField(BoardPosition position,
QString imagePath,
QGraphicsItem *parent): QGraphicsRectItem(... | 24.710526 | 72 | 0.702875 | mdziubich |
12b0148867faeccf65a37e3c35a5cbb3da8c31dc | 567 | cpp | C++ | src/mutex.cpp | PokIsemaine/fishjoy | 97d9e2f0c04a9e4c770d87c8bb6f7fdb2de2d239 | [
"Unlicense"
] | null | null | null | src/mutex.cpp | PokIsemaine/fishjoy | 97d9e2f0c04a9e4c770d87c8bb6f7fdb2de2d239 | [
"Unlicense"
] | null | null | null | src/mutex.cpp | PokIsemaine/fishjoy | 97d9e2f0c04a9e4c770d87c8bb6f7fdb2de2d239 | [
"Unlicense"
] | null | null | null | //
// Created by zsl on 5/31/22.
//
#include "fishjoy/mutex.hpp"
namespace fishjoy {
Semaphore::Semaphore(uint32_t count) {
if (sem_init(&m_semaphore, 0, count) != 0) {
throw std::logic_error("sem_init error");
}
}
Semaphore::~Semaphore() { sem_destroy(&m_semaphore); }
void Semaphore::wait() {
... | 21.807692 | 56 | 0.613757 | PokIsemaine |
12b16e5dca09f1c5669a60b05bcd585e4d6cdd9c | 2,040 | cpp | C++ | src/target/main.cpp | anxri/gateway | cdfc7c13b5e08296c11618fc07185c6be467163f | [
"MIT"
] | null | null | null | src/target/main.cpp | anxri/gateway | cdfc7c13b5e08296c11618fc07185c6be467163f | [
"MIT"
] | null | null | null | src/target/main.cpp | anxri/gateway | cdfc7c13b5e08296c11618fc07185c6be467163f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "../../include/UdpSocket.h"
#include "../../include/aes.hpp"
#include "../read_single_conf.h"
using std::cout;
using std::endl;
using std::string;
using toolbox::UdpSocket;
string fetch_ip()
{
FILE *fp;
char path[10000];
fp = popen("curl -s ifconfig.me", "... | 22.666667 | 120 | 0.542157 | anxri |
12b1d0c523273c4d97a80b767298a0c04644c33f | 1,788 | cpp | C++ | catkin_ws/action_client_pkg/src/ardrone_action_client.cpp | BV-Pradeep/RIA-ROS-Basics-with-CPP-in-5-days | 2c33397de94a5d35cd9bb5d957fb0a15dd0b70b1 | [
"MIT"
] | 5 | 2019-08-09T03:07:30.000Z | 2021-12-09T15:51:09.000Z | catkin_ws/action_client_pkg/src/ardrone_action_client.cpp | BV-Pradeep/RIA-ROS-Basics-with-CPP-in-5-days | 2c33397de94a5d35cd9bb5d957fb0a15dd0b70b1 | [
"MIT"
] | null | null | null | catkin_ws/action_client_pkg/src/ardrone_action_client.cpp | BV-Pradeep/RIA-ROS-Basics-with-CPP-in-5-days | 2c33397de94a5d35cd9bb5d957fb0a15dd0b70b1 | [
"MIT"
] | 3 | 2019-07-22T07:43:46.000Z | 2021-07-12T14:23:24.000Z | #include <actionlib/client/simple_action_client.h>
#include <ardrone_as/ArdroneAction.h> // Note: "Action" is appended
#include <ros/ros.h>
int nImage = 0; // Initialization of a global variable
// Definition of the done calback. It is called once when the goal completes
void doneCb(const actionlib::SimpleClientGoalS... | 39.733333 | 80 | 0.713087 | BV-Pradeep |
12b23575180bb10d817c24cf6002947aa122889c | 1,438 | cpp | C++ | exec/readCircuitFile.cpp | zghodsi/TinyGarble2.0 | aa0c8a56848ee3f6d2354988028ec715d5e73e25 | [
"MIT"
] | null | null | null | exec/readCircuitFile.cpp | zghodsi/TinyGarble2.0 | aa0c8a56848ee3f6d2354988028ec715d5e73e25 | [
"MIT"
] | null | null | null | exec/readCircuitFile.cpp | zghodsi/TinyGarble2.0 | aa0c8a56848ee3f6d2354988028ec715d5e73e25 | [
"MIT"
] | null | null | null | #include <emp-tool-tg/emp-tool/emp-tool.h>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <cstdlib>
#include <fstream>
using namespace std;
namespace po = boost::program_options;
int main(int argc, char** argv) {
string netlist_address_in, netlist_address_out;
po::options_d... | 25.22807 | 132 | 0.6363 | zghodsi |
12b9dca9a6084bc1ff852988a0fbd49f06015415 | 1,364 | cpp | C++ | module04/ex01/PlasmaRifle.cpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | 1 | 2021-09-17T13:25:47.000Z | 2021-09-17T13:25:47.000Z | module04/ex01/PlasmaRifle.cpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | null | null | null | module04/ex01/PlasmaRifle.cpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* PlasmaRifle.cpp :+: :+: :+: ... | 35.894737 | 80 | 0.313783 | selysse |
521b63acf85353db0afe89d9c8532d4aef68487f | 3,836 | cc | C++ | flens/lapack/interface/src/gels.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/lapack/interface/src/gels.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/lapack/interface/src/gels.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | #define STR(x) #x
#define STRING(x) STR(x)
#include <flens/lapack/interface/include/config.h>
namespace flens { namespace lapack {
extern "C" {
//-- dgels ---------------------------------------------------------------------
void
LAPACK_DECL(dgels)(const char *TRANS,
const INTEGE... | 29.507692 | 80 | 0.441084 | stip |
521f2233f56e5c7a14f0b1a79a087a2a3e3d21de | 3,399 | cpp | C++ | SDKs/CryCode/3.8.1/GameDll/AnimActionAIAimPose.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/GameDll/AnimActionAIAimPose.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/GameDll/AnimActionAIAimPose.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | ////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2011.
//
////////////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "AnimActionAIAimPose.h"
#include <ICryAnimation.h>
#includ... | 28.563025 | 200 | 0.61165 | amrhead |
521f24836e25552823cc789e4c2065d7ebdc20c2 | 4,248 | cpp | C++ | Strings/KMR/KMR.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | Strings/KMR/KMR.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | Strings/KMR/KMR.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2016 CStanKonrad
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... | 25.745455 | 145 | 0.636064 | CStanKonrad |
5220a2f46152146270b19398bbbf379b739a5e2d | 1,226 | cpp | C++ | sparsewrite.cpp | pibara/blake2pp | 91261a0592e8dd38390d8d86d9f7d2d897d75b17 | [
"BSD-3-Clause"
] | null | null | null | sparsewrite.cpp | pibara/blake2pp | 91261a0592e8dd38390d8d86d9f7d2d897d75b17 | [
"BSD-3-Clause"
] | null | null | null | sparsewrite.cpp | pibara/blake2pp | 91261a0592e8dd38390d8d86d9f7d2d897d75b17 | [
"BSD-3-Clause"
] | null | null | null | #include "mattock-ohash.hpp"
#include <iostream>
template <typename OHash>
std::string sparse(bool skip) {
OHash oh(true); //Writing assuming sparse.
char buf[4096];
for (int index=0;index<4096;index++) {
buf[index]=index%128;
}
for (int index=1024;index<3073;index++) {
buf[index]=0;
}
oh.written... | 25.020408 | 68 | 0.630506 | pibara |
5221751c7c41914e8388c0db2b91bfcbb5af2852 | 539 | cpp | C++ | software/src/master/src/kernel/Vca_Registry.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vca_Registry.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vca_Registry.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Vca_Registry Implementation *****/
#define Vca_Registry_Implementation
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
*... | 19.25 | 43 | 0.332096 | c-kuhlman |
522200dba4645d5fd4874e674d965d3a81eb3a0e | 3,505 | cpp | C++ | src/run.cpp | SlausB/fos | 75c647da335925fd5e0bb956acc4db895004fc79 | [
"MIT"
] | null | null | null | src/run.cpp | SlausB/fos | 75c647da335925fd5e0bb956acc4db895004fc79 | [
"MIT"
] | null | null | null | src/run.cpp | SlausB/fos | 75c647da335925fd5e0bb956acc4db895004fc79 | [
"MIT"
] | null | null | null |
#include "run.h"
#include "dispatcher.h"
#include "colonel/colonel.h"
#include "colonel_imp/handlers/exit_h.h"
#include "colonel_imp/handlers/dbstats_h.h"
#include "colonel_imp/handlers/conns_h.h"
#include "colonel_imp/handlers/clients_h.h"
#include "colonel_imp/handlers/seg_fault_h.h"
#include "colonel_... | 23.211921 | 81 | 0.689586 | SlausB |
5225bf3849487f746201d0be7fb1f8b312123aa5 | 15,574 | hpp | C++ | Nacro/SDK/FN_EnemyPawn_Parent_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_EnemyPawn_Parent_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_EnemyPawn_Parent_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function EnemyPawn_Par... | 50.895425 | 170 | 0.589508 | Milxnor |
5226c84c51392b3591dcbb5a1d94511fc91b275c | 5,709 | cpp | C++ | src/lib/elf/relocation.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | src/lib/elf/relocation.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | src/lib/elf/relocation.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | #include <elf/relocation.h>
namespace elf
{
UINT64 GetSymbolValue(Elf64_Ehdr *ELFHeader, int Table, UINT64 Index)
{
using namespace log;
auto SymbolTableHeader = GetSectionHeader(ELFHeader, Table);
Elf64_Sym *Symbol = &((Elf64_Sym*)((UINT64)ELFHeader + SymbolTableHeader->sh_offset))[In... | 38.836735 | 138 | 0.586267 | epochx64 |
52285d7a96eb64f3068aa46586cd7e88c7aae12b | 1,347 | hpp | C++ | boost/network/uri/uri_concept.hpp | mclow/cpp-netlib | 12c62f7402c585b0619412704db7a3e7280b960c | [
"BSL-1.0"
] | 1 | 2019-06-19T13:42:33.000Z | 2019-06-19T13:42:33.000Z | boost/network/uri/uri_concept.hpp | mclow/cpp-netlib | 12c62f7402c585b0619412704db7a3e7280b960c | [
"BSL-1.0"
] | null | null | null | boost/network/uri/uri_concept.hpp | mclow/cpp-netlib | 12c62f7402c585b0619412704db7a3e7280b960c | [
"BSL-1.0"
] | null | null | null | #ifndef BOOST_NETWORK_URL_URL_CONCEPT_HPP_
#define BOOST_NETWORK_URL_URL_CONCEPT_HPP_
// Copyright 2009 Dean Michael Berris, Jeroen Habraken.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/conc... | 27.489796 | 71 | 0.576837 | mclow |
522896c791d85e9a04432d5560ae9b9fe1f5ae0e | 4,063 | cpp | C++ | .emacs.d/cedet/semantic/tests/testsubclass.cpp | littletwolee/emacs-configure | 6fe0f3e99cab1c40de8e32e50740ff5d0d765fa3 | [
"MIT"
] | 6 | 2019-01-06T05:55:47.000Z | 2021-05-28T09:29:58.000Z | .emacs.d/cedet/semantic/tests/testsubclass.cpp | littletwolee/emacs-configure | 6fe0f3e99cab1c40de8e32e50740ff5d0d765fa3 | [
"MIT"
] | null | null | null | .emacs.d/cedet/semantic/tests/testsubclass.cpp | littletwolee/emacs-configure | 6fe0f3e99cab1c40de8e32e50740ff5d0d765fa3 | [
"MIT"
] | 2 | 2015-12-09T19:06:16.000Z | 2021-12-02T14:41:31.000Z | /* Special test file for Semantic Analyzer and complex C++ inheritance.
*/
//#include <iostream>
#include "testsubclass.hh"
void animal::moose::setFeet(int numfeet) //^1^
{
if (numfeet > 4) {
std::cerr << "Why would a moose have more than 4 feet?" << std::endl;
return;
}
fFeet = numfeet;
}
int animal... | 16.789256 | 116 | 0.592912 | littletwolee |
522b43b15778403761c0c07aa93e0696ad7de1f8 | 8,293 | cpp | C++ | ADApp/pluginSrc/NDPluginScatter.cpp | pheest/ADCore | 66b1352efe93c28b48bce37249f19db40181692a | [
"MIT"
] | 20 | 2015-01-07T09:02:42.000Z | 2021-07-27T14:35:19.000Z | ADApp/pluginSrc/NDPluginScatter.cpp | pheest/ADCore | 66b1352efe93c28b48bce37249f19db40181692a | [
"MIT"
] | 400 | 2015-01-06T14:44:30.000Z | 2022-02-07T17:45:32.000Z | ADApp/pluginSrc/NDPluginScatter.cpp | pheest/ADCore | 66b1352efe93c28b48bce37249f19db40181692a | [
"MIT"
] | 72 | 2015-01-23T23:23:02.000Z | 2022-02-07T15:14:35.000Z | /*
* NDPluginScatter.cpp
*
* Do callback only to next registered client, not to all clients
* Author: Mark Rivers
*
* March 2014.
*/
#include <stdlib.h>
#include <iocsh.h>
#include "NDPluginScatter.h"
#include <epicsExport.h>
static const char *driverName="NDPluginScatter";
/**
* \param[in] pArray The N... | 46.072222 | 116 | 0.654769 | pheest |
522c5313aada0e5bea3ce2c4fa782c8bd7db5521 | 292 | cpp | C++ | c++11/understanding-cpp11/chapter4/4-2-7.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter4/4-2-7.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter4/4-2-7.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | template<typename T1, typename T2>
double Sum(T1 & t1, T2 & t2) {
auto s = t1 + t2; // s的类型会在模板实例化时被推导出来
return s;
}
int main() {
int a = 3;
long b = 5;
float c = 1.0f, d = 2.3f;
auto e = Sum(a, b); // s的类型被推导为long
auto f = Sum(c, d); // s的类型被推导为float
}
| 19.466667 | 44 | 0.527397 | cuiwm |
5235e52e272885ee0b8bb7f2051006ce4ee424bd | 1,260 | cpp | C++ | BITRURQ.cpp | akshay31057/Competitive-Programming-Repository | bb4e61df348803795d0bf24c11000b2e02ab8cda | [
"MIT"
] | 1 | 2020-10-09T15:07:36.000Z | 2020-10-09T15:07:36.000Z | BITRURQ.cpp | akshay31057/Competitive-Programming-Repository | bb4e61df348803795d0bf24c11000b2e02ab8cda | [
"MIT"
] | null | null | null | BITRURQ.cpp | akshay31057/Competitive-Programming-Repository | bb4e61df348803795d0bf24c11000b2e02ab8cda | [
"MIT"
] | 1 | 2018-10-25T15:07:12.000Z | 2018-10-25T15:07:12.000Z | /**
* Description: BIT RURQ (Support range queries and range updates of 1-D array)
* Usage: query O(lg(N)), update O(lg(N))
* Source: https://github.com/dragonslayerx
*/
// Remember to use 1 based indexing
class BIT {
static const int MAX = 100005;
public:
static long long query(long long *bit, int i... | 22.105263 | 79 | 0.511111 | akshay31057 |
523c82d598610ed85e251d90b8fb16f630693245 | 2,695 | cpp | C++ | Utilities/Poco/Util/src/ConfigurationView.cpp | nocnokneo/MITK | 2902dcaed2ebf83b08c29d73608e8c70ead9e602 | [
"BSD-3-Clause"
] | null | null | null | Utilities/Poco/Util/src/ConfigurationView.cpp | nocnokneo/MITK | 2902dcaed2ebf83b08c29d73608e8c70ead9e602 | [
"BSD-3-Clause"
] | null | null | null | Utilities/Poco/Util/src/ConfigurationView.cpp | nocnokneo/MITK | 2902dcaed2ebf83b08c29d73608e8c70ead9e602 | [
"BSD-3-Clause"
] | null | null | null | //
// ConfigurationView.cpp
//
// $Id$
//
// Library: Util
// Package: Configuration
// Module: ConfigurationView
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of t... | 29.615385 | 96 | 0.748052 | nocnokneo |
523f0000c9d1dc3d2d02ba758a52dbd04330f56c | 1,842 | cpp | C++ | cpp/speech/text_to_speech/source/text_to_speech.cpp | ortelio/rapp_beginner_tutorials | 5f770c15bef9906b667dd6a7cb0b12eeccfb37bb | [
"Apache-2.0"
] | null | null | null | cpp/speech/text_to_speech/source/text_to_speech.cpp | ortelio/rapp_beginner_tutorials | 5f770c15bef9906b667dd6a7cb0b12eeccfb37bb | [
"Apache-2.0"
] | null | null | null | cpp/speech/text_to_speech/source/text_to_speech.cpp | ortelio/rapp_beginner_tutorials | 5f770c15bef9906b667dd6a7cb0b12eeccfb37bb | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2015 RAPP
*
* 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 writin... | 34.754717 | 89 | 0.660152 | ortelio |
5240981bf238356625fd7f055df893fd7614289e | 8,415 | hpp | C++ | src/computationalMesh/meshReading/meshReading.hpp | tomrobin-teschner/AIM | 2090cc6be1facee60f1aa9bee924f44d700b5533 | [
"MIT"
] | null | null | null | src/computationalMesh/meshReading/meshReading.hpp | tomrobin-teschner/AIM | 2090cc6be1facee60f1aa9bee924f44d700b5533 | [
"MIT"
] | null | null | null | src/computationalMesh/meshReading/meshReading.hpp | tomrobin-teschner/AIM | 2090cc6be1facee60f1aa9bee924f44d700b5533 | [
"MIT"
] | null | null | null | // This file is part of Artificial-based Incompressibile Methods (AIM), a CFD solver for exact projection
// methods based on hybrid Artificial compressibility and Pressure Projection methods.
// (c) by Tom-Robin Teschner 2021. This file is distribuited under the MIT license.
#pragma once
// c++ include headers
#incl... | 39.507042 | 120 | 0.706239 | tomrobin-teschner |
5243eb71583b16949d662fa38df0917d621d6c3a | 1,413 | cpp | C++ | experiments/nrf24receiver/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 4 | 2016-12-10T13:20:52.000Z | 2019-10-25T19:47:44.000Z | experiments/nrf24receiver/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | null | null | null | experiments/nrf24receiver/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 1 | 2019-05-03T17:31:38.000Z | 2019-05-03T17:31:38.000Z | #include <Arduino.h>
#include <SPI.h>
#include <power.h>
#include "RF24.h"
#include <printf.h>
#define NRF_CE 9 // Chip Enbale pin for NRF radio
#define NRF_CSN 10 // SPI Chip Select for NFR radio
void initializeNrfRadio();
RF24 nrf(NRF_CE, NRF_CSN);
uint8_t address[6] = "1Node";
uint8_t rcvbuf[4... | 21.089552 | 83 | 0.62845 | chacal |
524402f2959773a724d40a8cdf1f45393030bac8 | 5,073 | cpp | C++ | lib/src/cyber/parse.cpp | yuri-sevatz/cyberpunk-cpp | b0c9a95c012660bfd21c24ac3a69287330d3b3bd | [
"BSD-2-Clause"
] | 5 | 2021-06-12T10:29:58.000Z | 2022-03-03T13:21:57.000Z | lib/src/cyber/parse.cpp | yuri-sevatz/cyber_breach | b0c9a95c012660bfd21c24ac3a69287330d3b3bd | [
"BSD-2-Clause"
] | null | null | null | lib/src/cyber/parse.cpp | yuri-sevatz/cyber_breach | b0c9a95c012660bfd21c24ac3a69287330d3b3bd | [
"BSD-2-Clause"
] | 1 | 2021-02-21T09:45:37.000Z | 2021-02-21T09:45:37.000Z | #ifdef _WIN32
#include <io.h>
#endif
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <boost/algorithm/hex.hpp>
#include <opencv2/text/ocr.hpp>
#include <cyber/layout.hpp>
#include <cyber/parse.hpp>
namespace {
matrix_type parse_matrix(cv::text::OCRTesseract & ocr, cv::Mat image, matrix_length_t... | 34.277027 | 151 | 0.631382 | yuri-sevatz |
5248a9267eb09f75ad898a6faead5b4f3934d5f8 | 666 | cpp | C++ | ch02/build_in_types.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | 3 | 2019-09-21T13:03:57.000Z | 2020-04-05T02:42:53.000Z | ch02/build_in_types.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | ch02/build_in_types.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | /*************************************************************************
> File Name: build_in_types.cpp
> Author: ma6174
> Mail: ma6174@163.com
> Created Time: 2019年08月26日 星期一 09时54分25秒
************************************************************************/
#include<iostream>
using namespace std... | 26.64 | 74 | 0.527027 | imshenzhuo |
524b177fb74d415d855d19cebdeca29a669facf1 | 546 | cc | C++ | src/cpu/hamaji/util.cc | puyoai/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 115 | 2015-02-21T15:08:26.000Z | 2022-02-05T01:38:10.000Z | src/cpu/hamaji/util.cc | haripo/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 214 | 2015-01-16T04:53:35.000Z | 2019-03-23T11:39:59.000Z | src/cpu/hamaji/util.cc | haripo/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 56 | 2015-01-16T05:14:13.000Z | 2020-09-22T07:22:49.000Z | #include "util.h"
#include <stdio.h>
#include <stdarg.h>
string ssprintf(const char* fmt, ...) {
va_list ap;
va_start(ap, fmt);
char buf[4097];
int len = vsnprintf(buf, 4096, fmt, ap);
buf[len] = '\0';
va_end(ap);
return buf;
}
void split(const string& str, const string& delim, vector<string>* output) ... | 20.222222 | 76 | 0.604396 | puyoai |
524eaf36a35357f069d8871bb54c4172835435c2 | 5,574 | cc | C++ | generated/aisClassBPositionReport.cc | rkuris/n2klib | e465a8f591d135d2e632186309d69a28ff7c9c4e | [
"MIT"
] | null | null | null | generated/aisClassBPositionReport.cc | rkuris/n2klib | e465a8f591d135d2e632186309d69a28ff7c9c4e | [
"MIT"
] | null | null | null | generated/aisClassBPositionReport.cc | rkuris/n2klib | e465a8f591d135d2e632186309d69a28ff7c9c4e | [
"MIT"
] | null | null | null | // class AisClassBPositionReport
// Automatically generated by mkmsgs - DO NOT EDIT
// Description: AIS Class B Position Report
#include "../n2k.h"
namespace n2k {
class AisClassBPositionReport : public Message {
public:
enum class RepeatIndicator:unsigned char {
Initial = 0,
First_retransmission =... | 41.597015 | 117 | 0.678507 | rkuris |
52553b6f38c3f8ee78eaaa8614d9030dea1b79c4 | 1,916 | cpp | C++ | animation/viewComponent/picScaleComp.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | 6 | 2021-12-08T03:09:47.000Z | 2022-02-24T03:51:14.000Z | animation/viewComponent/picScaleComp.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | animation/viewComponent/picScaleComp.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | #include "picScaleComp.h"
#include <QLabel>
#include <QHBoxLayout>
#include "aspectRatioPixmapLabel.h"
#include "pictureItem.h"
#include "pictureItemcontroller.h"
PicScaleComp::PicScaleComp(PictureItem* item, QWidget *parent)
:QFrame(parent),
m_item(item), m_controller(std::make_unique<PictureItemController>(... | 25.210526 | 83 | 0.730167 | seaCheng |
525a74659773292687da9bb529964f25e41707ee | 4,862 | cpp | C++ | libnaucrates/src/md/CMDIdScCmp.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-05T10:08:56.000Z | 2019-03-05T10:08:56.000Z | libnaucrates/src/md/CMDIdScCmp.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libnaucrates/src/md/CMDIdScCmp.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CMDIdScCmp.cpp
//
// @doc:
// Implementation of mdids for scalar comparisons functions
//---------------------------------------------------------------------------
... | 22.719626 | 77 | 0.433155 | khannaekta |
525cb27c2ddd2bed9cf9436b0c1284064d608e15 | 2,384 | cpp | C++ | orm-cpp/orm/store_test/store_interface_test.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/store_test/store_interface_test.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/store_test/store_interface_test.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <memory>
#include <cstring>
#include "orm/store/store.h"
#include "orm/store_mark/store.h"
#include "orm/store_test/person.h"
using ::testing::Return;
MATCHER_P(CompareProperty, expected, "") {
try {
for (const auto& attribute : PersonCoder::attributes) {
if (!(arg->get(attri... | 27.72093 | 115 | 0.627936 | ironbit |
525e7c5607b680323acd83e64ef7159a3bbb638e | 545 | cpp | C++ | naked_asm/example.cpp | marziel/cpp-examples | 4c24639a9ec8807ed687e06e5fb96304ae34093a | [
"Unlicense"
] | 1 | 2020-02-22T12:05:52.000Z | 2020-02-22T12:05:52.000Z | naked_asm/example.cpp | marziel/cpp-examples | 4c24639a9ec8807ed687e06e5fb96304ae34093a | [
"Unlicense"
] | null | null | null | naked_asm/example.cpp | marziel/cpp-examples | 4c24639a9ec8807ed687e06e5fb96304ae34093a | [
"Unlicense"
] | null | null | null | #include <cstdio>
[[gnu::naked]] int check_sgx_support()
{
asm("\n\
push rbx \n\
push rcx \n\
mov rax, 7 \n\
xor rcx, rcx \n\
cpuid \n\
and rbx, 0x02 \n\
shr rbx, 1 \n\
mov rax, r... | 20.961538 | 78 | 0.348624 | marziel |
525f92723cb8d105dbdb0f782835e8af287e3be4 | 644 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_GetNonTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_GetNonTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_GetNonTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_GetNonTypeParam.cpp
//
#include "smtc_GetNonTypeParam.h"
// semantic
#include "smtc_CheckParamName.h"
#include "smtc_CheckSpecFlags.h"
#include "smtc_CreateNonTypeParam.h"
#include "smtc_Message.h"
#define LZZ_INLINE inline
namespace smtc
{
ParamPtr getNonTypeParam (gram::SpecSel const & spec_sel, CvType con... | 24.769231 | 134 | 0.737578 | SuperDizor |
5261aedc5ba7563b9f11d36620eccc67e42321de | 1,177 | cpp | C++ | src/daisyHat.cpp | recursinging/daisyHat | 94a3a2f8da13ee4df372027058f2741c84493a0e | [
"MIT"
] | null | null | null | src/daisyHat.cpp | recursinging/daisyHat | 94a3a2f8da13ee4df372027058f2741c84493a0e | [
"MIT"
] | null | null | null | src/daisyHat.cpp | recursinging/daisyHat | 94a3a2f8da13ee4df372027058f2741c84493a0e | [
"MIT"
] | null | null | null | #include "daisyHat.h"
#include <daisy_seed.h>
namespace daisyhat
{
int numFailedAssertions = 0;
uint32_t startTime = 0;
daisy::DaisySeed* seed;
void StartTest(daisy::DaisySeed& _seed, const char* testName)
{
startTime = daisy::System::GetNow();
numFailedAssertions = 0;
see... | 25.042553 | 69 | 0.553951 | recursinging |
5262d3bf3a65ccf0f40e3d66e265422f4a540872 | 1,719 | cpp | C++ | Refureku/Generator/Source/Properties/InstantiatorPropertyCodeGen.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 143 | 2020-04-07T21:38:21.000Z | 2022-03-30T01:06:33.000Z | Refureku/Generator/Source/Properties/InstantiatorPropertyCodeGen.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 7 | 2021-03-30T07:26:21.000Z | 2022-03-28T16:31:02.000Z | Refureku/Generator/Source/Properties/InstantiatorPropertyCodeGen.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 11 | 2020-06-06T09:45:12.000Z | 2022-01-25T17:17:55.000Z | #include "RefurekuGenerator/Properties/InstantiatorPropertyCodeGen.h"
#include <Kodgen/InfoStructures/MethodInfo.h>
using namespace rfk;
InstantiatorPropertyCodeGen::InstantiatorPropertyCodeGen() noexcept:
kodgen::MacroPropertyCodeGen("Instantiator", kodgen::EEntityType::Method)
{
}
bool InstantiatorPropertyCodeGe... | 47.75 | 267 | 0.731239 | jsoysouvanh |
526343b853d1ba13c5432a679c6ff9757fee0104 | 19,186 | hpp | C++ | wz4/wz4frlib/wz4_physx.hpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | wz4/wz4frlib/wz4_physx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | wz4/wz4frlib/wz4_physx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 31.095624 | 141 | 0.577504 | wzman |
52642bec5b476187a4b080365f0c2c21a954e68d | 8,857 | cpp | C++ | src/main.cpp | ZeroxCorbin/tm_driver | d0abe90b5dba42d48a4aa9825b378b130a5b745c | [
"MIT"
] | null | null | null | src/main.cpp | ZeroxCorbin/tm_driver | d0abe90b5dba42d48a4aa9825b378b130a5b745c | [
"MIT"
] | null | null | null | src/main.cpp | ZeroxCorbin/tm_driver | d0abe90b5dba42d48a4aa9825b378b130a5b745c | [
"MIT"
] | null | null | null | #include "tm_driver/tm_driver.h"
#include "tm_driver/tm_print.h"
#include <SctResponse.hpp>
#include <StaResponse.hpp>
#include <ConnectTM.hpp>
#include <SendScript.hpp>
#include <SetEvent.hpp>
#include <SetPositions.hpp>
#include <SetIO.hpp>
#include <AskSta.hpp>
#include <iostream>
TmDriver* iface_;
std::mutex sta... | 29.134868 | 125 | 0.579767 | ZeroxCorbin |
52642c4a4142a47d7de99e089f15aee33b5afd86 | 2,513 | cpp | C++ | source/Editor/assetsWidget.cpp | nicovanbentum/GE | 1dd737b50bef306118116c6c4e1bd36c0ebb65c6 | [
"MIT"
] | null | null | null | source/Editor/assetsWidget.cpp | nicovanbentum/GE | 1dd737b50bef306118116c6c4e1bd36c0ebb65c6 | [
"MIT"
] | null | null | null | source/Editor/assetsWidget.cpp | nicovanbentum/GE | 1dd737b50bef306118116c6c4e1bd36c0ebb65c6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "assetsWidget.h"
#include "editor.h"
#include "IconsFontAwesome5.h"
namespace Raekor {
AssetsWidget::AssetsWidget(Editor* editor) : IWidget(editor, "Asset Browser") {}
void AssetsWidget::draw(float dt) {
ImGui::Begin(title.c_str());
auto materials = IWidget::GetScene().view<Materi... | 33.065789 | 146 | 0.55193 | nicovanbentum |
52645cd5fee7053d4352bdd350085e063bbafe5d | 1,017 | cpp | C++ | PORT3/Box/Point/Point.cpp | Kush12747/CSC122 | 36c6f1c0f4a3ddd035529043d51217ec22961c84 | [
"MIT"
] | null | null | null | PORT3/Box/Point/Point.cpp | Kush12747/CSC122 | 36c6f1c0f4a3ddd035529043d51217ec22961c84 | [
"MIT"
] | null | null | null | PORT3/Box/Point/Point.cpp | Kush12747/CSC122 | 36c6f1c0f4a3ddd035529043d51217ec22961c84 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include "Point.h"
using namespace std;
//input function for (x,y) format
void Point::Input(std::istream& is)
{
char temp;
is >> temp >> x >> temp >> y >> temp;
return;
}
//output for (x,y) format
void Point::Output(std::ostream& os) const
{
os << '(' << x << ", " <... | 21.1875 | 47 | 0.621436 | Kush12747 |
526e0d7be42cc896ae48eb68811aea75cfc4f063 | 442 | cpp | C++ | src/Records/STAT.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:33.000Z | 2022-03-01T19:17:33.000Z | src/Records/STAT.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 8 | 2015-04-17T12:04:15.000Z | 2015-07-02T14:40:28.000Z | src/Records/STAT.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:36.000Z | 2022-03-01T19:17:36.000Z | /*
* File: STAT.cpp
* Author: Koncord <koncord at rwa.su>
*
* Created on 8 Апрель 2015 г., 21:57
*/
#include "STAT.hpp"
using namespace std;
bool RecordSTAT::DoParse()
{
const string subType = GetLabel();
if(subType == "EDID")
data.edid = GetString();
else if(subType == "OBND")
d... | 17.68 | 52 | 0.608597 | Koncord |
52701db43a8bcfffe51f676b52a0ce8710d52aae | 622 | hpp | C++ | libs/camera/include/sge/camera/ortho_freelook/optional_projection_rectangle_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/camera/include/sge/camera/ortho_freelook/optional_projection_rectangle_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/camera/include/sge/camera/ortho_freelook/optional_projection_rectangle_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_CAMERA_ORTHO_FREELOOK_OPTIONAL_PROJECTION_RECTANGLE_FWD_HPP_INCLUDED
#define SGE_CAMERA... | 31.1 | 95 | 0.790997 | cpreh |
527428aef2ea21c9089c421310c198be0f7bcab4 | 16,949 | cpp | C++ | src/renderer/render.cpp | infosia/Raster | e53a6f9c10212ec50951198496800a866f40aaca | [
"MIT"
] | null | null | null | src/renderer/render.cpp | infosia/Raster | e53a6f9c10212ec50951198496800a866f40aaca | [
"MIT"
] | null | null | null | src/renderer/render.cpp | infosia/Raster | e53a6f9c10212ec50951198496800a866f40aaca | [
"MIT"
] | null | null | null | /* distributed under MIT license:
*
* Copyright (c) 2022 Kota Iguchi
*
* 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 right... | 38.963218 | 150 | 0.518792 | infosia |
527a5477df3948238a67398ef99b72c8c6744789 | 1,462 | hpp | C++ | src/algorithms/math/sum_of_multiples.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/math/sum_of_multiples.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/math/sum_of_multiples.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef SUM_OF_MULTIPLES_OF_3_AND_5_HPP
#define SUM_OF_MULTIPLES_OF_3_AND_5_HPP
// https://projecteuler.net/problem=1
// If we list all the natural numbers below 10 that are multiples of 3 or 5,
// we get 3, 5, 6 and 9. The sum of these multiples is 23.
// Find the sum of all the multiples of 3 or 5 below 1000.
// Ans... | 31.106383 | 76 | 0.602599 | iamantony |
527bdf32aa48375a0031e961fc8f563997fa6425 | 4,575 | cpp | C++ | Engine/Source/Vulkan/VulkanRHICache.cpp | DanDanCool/GameEngine | 9afae8bc31c7e34b9afde0f01a5735607eb7870e | [
"Apache-2.0"
] | 1 | 2021-09-20T01:50:29.000Z | 2021-09-20T01:50:29.000Z | Engine/Source/Vulkan/VulkanRHICache.cpp | DanDanCool/GameEngine | 9afae8bc31c7e34b9afde0f01a5735607eb7870e | [
"Apache-2.0"
] | null | null | null | Engine/Source/Vulkan/VulkanRHICache.cpp | DanDanCool/GameEngine | 9afae8bc31c7e34b9afde0f01a5735607eb7870e | [
"Apache-2.0"
] | null | null | null | #include "VulkanRHICache.h"
#include "jpch.h"
#include "VulkanContext.h"
#include "VulkanPipeline.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
namespace VKRHI
{
VulkanRHICache::VulkanRHICache()
: m_VertexBuffer()
, m_IndexBuffer()
, m_ProjectionMatrix()
, m_De... | 38.125 | 114 | 0.64612 | DanDanCool |
528122c614618d2ecdc2c0adc4921b30e8978edd | 6,884 | cpp | C++ | awsconnection.cpp | recaisinekli/aws-iot-device-sdk-qt-integration | 9ba0b3aa4509e72667f3ccc58f3d0eee2c1f861c | [
"Apache-2.0"
] | null | null | null | awsconnection.cpp | recaisinekli/aws-iot-device-sdk-qt-integration | 9ba0b3aa4509e72667f3ccc58f3d0eee2c1f861c | [
"Apache-2.0"
] | null | null | null | awsconnection.cpp | recaisinekli/aws-iot-device-sdk-qt-integration | 9ba0b3aa4509e72667f3ccc58f3d0eee2c1f861c | [
"Apache-2.0"
] | null | null | null | #include "awsconnection.h"
AWSConnection::AWSConnection(QObject *parent) : QObject(parent)
{
}
bool AWSConnection::init(){
bool state = true;
Io::EventLoopGroup eventLoopGroup(1);
if (!eventLoopGroup)
{
fprintf(stderr, "Event Loop Group Creation failed with error %s\n", ErrorDebugString(ev... | 32.780952 | 140 | 0.633934 | recaisinekli |
5281c30c6b6d7bd81ef9284c262126f764d9ad0c | 4,170 | cpp | C++ | src/gameoflife_test.cpp | meteoritenhagel/conways_game_of_life | 5a15cc008b9e7b700cd1c900bcc2509a3a22f233 | [
"MIT"
] | null | null | null | src/gameoflife_test.cpp | meteoritenhagel/conways_game_of_life | 5a15cc008b9e7b700cd1c900bcc2509a3a22f233 | [
"MIT"
] | null | null | null | src/gameoflife_test.cpp | meteoritenhagel/conways_game_of_life | 5a15cc008b9e7b700cd1c900bcc2509a3a22f233 | [
"MIT"
] | null | null | null | #include "gameoflife_test.h"
#include "gameoflife.h"
#include <iostream>
void GameOfLife_Test::testAll()
{
// invoke all tests
testTogglingCellStatus();
testNeighbourUpdateWhenAddingCell();
testNeighbourUpdateWhenAddingAndRemovingCell();
testComplexGridNeighbours();
}
void GameOfLife_Test::testT... | 29.785714 | 112 | 0.584892 | meteoritenhagel |
52847f6a8298ad61698f6ed0084b9342f6b08fc5 | 762 | hpp | C++ | test/src/Algorithm/FindIf.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 48 | 2019-05-14T10:07:08.000Z | 2021-04-08T08:26:20.000Z | test/src/Algorithm/FindIf.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | null | null | null | test/src/Algorithm/FindIf.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 4 | 2019-11-18T15:35:32.000Z | 2021-12-02T05:23:04.000Z | #include "CppML/CppML.hpp"
namespace FindIfTest {
template <typename T> using Predicate = ml::f<ml::IsSame<>, char, T>;
template <typename T> struct R {};
void run() {
{
using T = ml::f<ml::FindIf<ml::F<Predicate>, ml::F<R>>, int, char, bool>;
static_assert(std::is_same<T, R<char>>::value,
... | 29.307692 | 78 | 0.568241 | changjurhee |
528487b78082d510660b1cc934f048ec41668cab | 32,568 | hxx | C++ | couchbase/errors.hxx | jrawsthorne/couchbase-cxx-client | b8fea51f900af80abe09cbdda90aef944b05c10a | [
"Apache-2.0"
] | null | null | null | couchbase/errors.hxx | jrawsthorne/couchbase-cxx-client | b8fea51f900af80abe09cbdda90aef944b05c10a | [
"Apache-2.0"
] | null | null | null | couchbase/errors.hxx | jrawsthorne/couchbase-cxx-client | b8fea51f900af80abe09cbdda90aef944b05c10a | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020-2021 Couchbase, 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
*
* ... | 35.632385 | 140 | 0.675325 | jrawsthorne |
52876ae3972891c398c3f1bc637cb69486966a39 | 12,484 | cpp | C++ | fdbserver/MemoryPager.actor.cpp | timansky/foundationdb | 97dd83d94060145687395fe1fa440b88aaa078a8 | [
"Apache-2.0"
] | 1 | 2020-08-17T10:57:40.000Z | 2020-08-17T10:57:40.000Z | fdbserver/MemoryPager.actor.cpp | timansky/foundationdb | 97dd83d94060145687395fe1fa440b88aaa078a8 | [
"Apache-2.0"
] | 2 | 2019-02-06T08:10:00.000Z | 2019-02-06T08:12:11.000Z | fdbserver/MemoryPager.actor.cpp | timansky/foundationdb | 97dd83d94060145687395fe1fa440b88aaa078a8 | [
"Apache-2.0"
] | 1 | 2019-03-12T20:17:26.000Z | 2019-03-12T20:17:26.000Z | /*
* MemoryPager.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 27.317287 | 137 | 0.734941 | timansky |
5288d48d136e2e32f4f3784eb0a99f770704f015 | 1,238 | cpp | C++ | test/features.cpp | Ogiwara-CostlierRain464/transaction-system | fb63b96e03e480bc2ae6ebc06f5c392af1ab9012 | [
"Apache-2.0"
] | 9 | 2020-06-09T04:28:36.000Z | 2022-02-02T05:27:51.000Z | test/features.cpp | Ogiwara-CostlierRain464/transaction-system | fb63b96e03e480bc2ae6ebc06f5c392af1ab9012 | [
"Apache-2.0"
] | null | null | null | test/features.cpp | Ogiwara-CostlierRain464/transaction-system | fb63b96e03e480bc2ae6ebc06f5c392af1ab9012 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
using namespace std;
/**
* Used to check C++ features.
*/
class Features: public ::testing::Test{};
template <typename T>
bool typeCheck ( T x )
{
reference_wrapper<int> r=ref(x);
// should return false, so ref(int) ≠ int&
return is_same<T&,decltype(r)>::value;
}
/**
* A reference_... | 17.942029 | 96 | 0.575929 | Ogiwara-CostlierRain464 |
52943455ab9c912707ad9d4daae1e997d6ae5f8a | 43,772 | cpp | C++ | R/src/rcpp_functions.cpp | hillarykoch/pGMCM | 2aeac31fdac4e87c8349222d595afd78dedf4b84 | [
"Artistic-2.0"
] | null | null | null | R/src/rcpp_functions.cpp | hillarykoch/pGMCM | 2aeac31fdac4e87c8349222d595afd78dedf4b84 | [
"Artistic-2.0"
] | null | null | null | R/src/rcpp_functions.cpp | hillarykoch/pGMCM | 2aeac31fdac4e87c8349222d595afd78dedf4b84 | [
"Artistic-2.0"
] | null | null | null | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
#include <RcppArmadillo.h>
#include <algorithm>
using namespace Rcpp;
using namespace RcppArmadillo;
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins(cpp11)]]
//
// Stuff for general penalized Gaussian mixture model
//
// Made ... | 35.271555 | 149 | 0.486018 | hillarykoch |
529a8e2fab9f629782fa7a9d338c22dacac2a961 | 2,426 | hpp | C++ | dependencies/generator/include/ph_coroutines/generator/generator.hpp | phiwen96/ph_coroutines | 985c3ba5efa735d6756f8d777b9d2fcc3ac8fd18 | [
"Apache-2.0"
] | null | null | null | dependencies/generator/include/ph_coroutines/generator/generator.hpp | phiwen96/ph_coroutines | 985c3ba5efa735d6756f8d777b9d2fcc3ac8fd18 | [
"Apache-2.0"
] | null | null | null | dependencies/generator/include/ph_coroutines/generator/generator.hpp | phiwen96/ph_coroutines | 985c3ba5efa735d6756f8d777b9d2fcc3ac8fd18 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <experimental/coroutine>
#include <concepts>
#include "iterator.hpp"
//#include <ph_coroutines/coroutines.hpp>
//using namespace std;
using namespace std::experimental;
using namespace std::chrono_literals;
template <class promise>
struct generator
{
using value_type = typename promi... | 25.270833 | 92 | 0.545754 | phiwen96 |
52b00100248ae4696a8454cebd4087b5dc4e8fbf | 925 | cpp | C++ | src/core/loader/internal/AbstractLoaderInternal.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/core/loader/internal/AbstractLoaderInternal.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/core/loader/internal/AbstractLoaderInternal.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 PolarAI. All rights reserved.
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//... | 44.047619 | 80 | 0.629189 | alexbatashev |
52b0d4b4284f3565532ef9c76599df007167424f | 1,306 | cpp | C++ | src/systems/RenderSystem.cpp | TheoVerhelst/Aphelion | 357df0ba5542ce22dcff10c434aa4a20da0c1b17 | [
"Beerware"
] | 8 | 2022-01-18T09:58:21.000Z | 2022-02-21T00:08:58.000Z | src/systems/RenderSystem.cpp | TheoVerhelst/Aphelion | 357df0ba5542ce22dcff10c434aa4a20da0c1b17 | [
"Beerware"
] | null | null | null | src/systems/RenderSystem.cpp | TheoVerhelst/Aphelion | 357df0ba5542ce22dcff10c434aa4a20da0c1b17 | [
"Beerware"
] | null | null | null | #include <SFML/System/Time.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <systems/RenderSystem.hpp>
#include <components/Body.hpp>
#include <components/components.hpp>
#include <components/Animations.hpp>
#include <vector.hpp>
RenderSystem::RenderSystem(Scene& scene):
_scene{scene} {
}
void RenderSystem... | 34.368421 | 85 | 0.652374 | TheoVerhelst |
52b50a908db902afa0e13d51d584d664204d4995 | 1,371 | hpp | C++ | include/Buffer2OS2.hpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | 1 | 2017-11-27T00:03:28.000Z | 2017-11-27T00:03:28.000Z | include/Buffer2OS2.hpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | null | null | null | include/Buffer2OS2.hpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | null | null | null | template<class Mixin>
struct Buffer2OS2 : public Mixin {
virtual void
process2(v2df *buf, ulong rem) = 0;
halfband_t<v2df> hb_up, hb_down;
TEMPLATE void
_process(T *in_L, T *in_R, T *out_L, T *out_R, ulong count)
{
disable_denormals();
v2df buf[BLOCK_SIZE];
v2df over[FULL_SIZE];
for (ulong pos = 0; pos... | 19.869565 | 60 | 0.574034 | notwa |
52b64135199edef65d9c32051761db1a2092f890 | 2,225 | cpp | C++ | mrstelephonedigits/mrstelephonedigits/mrstelephonedigits.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | 1 | 2019-09-11T04:55:06.000Z | 2019-09-11T04:55:06.000Z | mrstelephonedigits/mrstelephonedigits/mrstelephonedigits.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | mrstelephonedigits/mrstelephonedigits/mrstelephonedigits.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | // mrstelephonedigits.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
/*
Matthew Salazar
ITSE - 1307 Spring 2019
20190402
This program outputs telephone digits that correspond to uppercase letters.
Pseudo Code :
1. User inputs numbers and or letters
2. if... | 25.872093 | 109 | 0.556404 | msalazar266 |
1ec13ce474f44a4f39295fdf3ddc6bec91cd769a | 4,746 | hh | C++ | AssocTools/AstSTLKeyMap.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | AssocTools/AstSTLKeyMap.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | AssocTools/AstSTLKeyMap.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #ifndef ASTSTLKEYMAP_HH
#define ASTSTLKEYMAP_HH
//----------------------------------------------------------------
// File and Version Information:
// $Id: AstSTLKeyMap.hh 436 2010-01-13 16:51:56Z stroili $
//
// Description:
// one-directional association map ofbetween two data types.
// the operator [] ret... | 31.223684 | 83 | 0.59271 | brownd1978 |
1ec2fbaca2371284f2ebc1edd5e492bee3a1717d | 5,517 | cpp | C++ | DNLS/cpu-implementation/DNLS.cpp | pisto/nlchains | 6e94b7a1dcacdd6fccb2b9e862bc648c1b263286 | [
"MIT"
] | 1 | 2019-06-25T01:09:19.000Z | 2019-06-25T01:09:19.000Z | DNLS/cpu-implementation/DNLS.cpp | pisto/nlchains | 6e94b7a1dcacdd6fccb2b9e862bc648c1b263286 | [
"MIT"
] | null | null | null | DNLS/cpu-implementation/DNLS.cpp | pisto/nlchains | 6e94b7a1dcacdd6fccb2b9e862bc648c1b263286 | [
"MIT"
] | null | null | null | #include <cmath>
#include <vector>
#include <fftw3.h>
#include "../../common/utilities.hpp"
#include "../../common/configuration.hpp"
#include "../../common/results.hpp"
#include "../../common/symplectic.hpp"
#include "../../common/loop_control.hpp"
#include "../../common/wisdom_sync.hpp"
#include "../DNLS.hpp"
using ... | 38.3125 | 127 | 0.649085 | pisto |
1ec3a8617265c163a3f252b88e8e6b6eaba4c3f3 | 79 | cpp | C++ | Tests/DigitTest.cpp | Bow0628/Qentem-Engine | 9d16acfaa4b9c8822edbb5903aa3e90cce1b0cd0 | [
"MIT"
] | 2 | 2021-07-03T06:26:42.000Z | 2021-08-16T12:22:22.000Z | Tests/DigitTest.cpp | fahad512/Qentem-Engine | 95090ea13058a2d3006c564c26d1f9474a1071c5 | [
"MIT"
] | null | null | null | Tests/DigitTest.cpp | fahad512/Qentem-Engine | 95090ea13058a2d3006c564c26d1f9474a1071c5 | [
"MIT"
] | null | null | null | #include "DigitTest.hpp"
int main() { return Qentem::Test::RunDigitTests(); }
| 19.75 | 52 | 0.696203 | Bow0628 |
1eca1e3b0e17ddabf630826e466dd37cfa8ecae8 | 1,712 | cpp | C++ | impl/jamtemplate/common/sound_group.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 6 | 2021-09-05T08:31:36.000Z | 2021-12-09T21:14:37.000Z | impl/jamtemplate/common/sound_group.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 30 | 2021-05-19T15:33:03.000Z | 2022-03-30T19:26:37.000Z | impl/jamtemplate/common/sound_group.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 3 | 2021-05-23T16:06:01.000Z | 2021-10-01T01:17:08.000Z | #include "sound_group.hpp"
#include "random/random.hpp"
#include "sound.hpp"
#include <algorithm>
namespace {
std::shared_ptr<jt::Sound> loadSound(std::string const& filename)
{
auto snd = std::make_shared<jt::Sound>();
snd->load(filename);
return snd;
}
} // namespace
jt::SoundGroup::SoundGroup(std::vec... | 20.380952 | 87 | 0.630257 | Laguna1989 |
1ecca6b25bb8fe54956c9dc44601e315f9d0bf88 | 446 | hpp | C++ | src/Engine.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | src/Engine.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | src/Engine.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/System/Vector2.hpp>
#include <memory>
enum class Gear { Drive, Neutral, Reverse };
class Engine {
public:
virtual void set_gear(Gear) = 0;
[[nodiscard]] virtual float get_current_speed() const = 0;
[[nodiscard]] virtual sf::Vector2f get_position_delta(float rotation_radians) = 0;
v... | 29.733333 | 84 | 0.70852 | AgaBuu |
1eccfd96d413a263c0a9a473c59290c595bd7e45 | 1,134 | cpp | C++ | src/csapex_core/src/param/null_parameter.cpp | betwo/csapex | f2c896002cf6bd4eb7fba2903ebeea4a1e811191 | [
"BSD-3-Clause"
] | 21 | 2016-09-02T15:33:25.000Z | 2021-06-10T06:34:39.000Z | src/csapex_core/src/param/null_parameter.cpp | cogsys-tuebingen/csAPEX | e80051384e08d81497d7605e988cab8c19f6280f | [
"BSD-3-Clause"
] | null | null | null | src/csapex_core/src/param/null_parameter.cpp | cogsys-tuebingen/csAPEX | e80051384e08d81497d7605e988cab8c19f6280f | [
"BSD-3-Clause"
] | 10 | 2016-10-12T00:55:17.000Z | 2020-04-24T19:59:02.000Z | /// HEADER
#include <csapex/param/null_parameter.h>
/// PROJECT
#include <csapex/param/register_parameter.h>
#include <csapex/serialization/io/std_io.h>
#include <csapex/utility/yaml.h>
CSAPEX_REGISTER_PARAM(NullParameter)
using namespace csapex;
using namespace param;
NullParameter::NullParameter() : ParameterImpl... | 19.551724 | 139 | 0.738095 | betwo |
1ecd18516e68adf3b5710df766cbfee49a1ff29a | 599 | cpp | C++ | Dia2/C-PermutationDescentCounts.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | Dia2/C-PermutationDescentCounts.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | Dia2/C-PermutationDescentCounts.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long dp[101][101];
long long mod = 1001113;
long long solve(long long a,long long b){
if(a==0 && b== 0) return 1;
if(b==0 ) return 1;
if(b>=a) return 0;
if(dp[a][b]!=-1) return dp[a][b];
return dp[a][b] = (((a-b)*solve(a-1,b-1))%mod + ((b+1)*solve(a-1,b))%m... | 18.71875 | 80 | 0.512521 | pauolivares |
1ecf5c4fb5a9e61cd9cf632b2401608d24e6c28b | 1,332 | hpp | C++ | include/tweedledum/utils/hash.hpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | include/tweedledum/utils/hash.hpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | include/tweedledum/utils/hash.hpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | /*--------------------------------------------------------------------------------------------------
| This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-------------------------------------------------------------------------------------------------*/
#pragma once
#include... | 23.368421 | 100 | 0.567568 | AriJordan |
1ed0f2023f31e1426b8dc324ab909ba7ed20edde | 1,237 | hpp | C++ | 9_ranges/filter.hpp | rgrover/yap-demos | d4e100f9fb835bea2a6505f2ed9b8e87ee1ee928 | [
"BSD-2-Clause"
] | null | null | null | 9_ranges/filter.hpp | rgrover/yap-demos | d4e100f9fb835bea2a6505f2ed9b8e87ee1ee928 | [
"BSD-2-Clause"
] | null | null | null | 9_ranges/filter.hpp | rgrover/yap-demos | d4e100f9fb835bea2a6505f2ed9b8e87ee1ee928 | [
"BSD-2-Clause"
] | null | null | null | #ifndef _FILTER_HPP
#define _FILTER_HPP
#include "range.hpp"
#include "range_expr.hpp"
#include <boost/yap/algorithm.hpp>
#include <boost/callable_traits/args.hpp>
#include <boost/callable_traits/return_type.hpp>
#include <boost/callable_traits/function_type.hpp>
#include <type_traits>
template <typename Predicate>... | 28.767442 | 114 | 0.742926 | rgrover |
1ed10d782a2f461a5471e60cc06762abc511c0dc | 20,585 | cc | C++ | src/CCA/Components/Arches/Properties.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 2 | 2021-12-17T05:50:44.000Z | 2021-12-22T21:37:32.000Z | src/CCA/Components/Arches/Properties.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | null | null | null | src/CCA/Components/Arches/Properties.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 1 | 2020-11-30T04:46:05.000Z | 2020-11-30T04:46:05.000Z | /*
* The MIT License
*
* Copyright (c) 1997-2020 The University of Utah
*
* 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
* right... | 38.12037 | 214 | 0.595579 | damu1000 |
1ed31cfaff50f31ffc6baa199f9a6071773c54ea | 1,054 | cpp | C++ | src/6_2_voxel_grid.cpp | liwind/PCL_Example | 9f807412ecf8110e0e05d5f41df31335a1c7d4ae | [
"MIT"
] | 2 | 2019-12-05T15:05:11.000Z | 2021-04-17T09:15:04.000Z | src/6_2_voxel_grid.cpp | liwind/PCL_Example | 9f807412ecf8110e0e05d5f41df31335a1c7d4ae | [
"MIT"
] | null | null | null | src/6_2_voxel_grid.cpp | liwind/PCL_Example | 9f807412ecf8110e0e05d5f41df31335a1c7d4ae | [
"MIT"
] | 2 | 2019-12-05T15:05:15.000Z | 2021-04-18T01:57:24.000Z | #include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/PCLPointCloud2.h>
#include <pcl/point_types.h>
#include <pcl/filters/voxel_grid.h>
using namespace std;
int main(int argc, char** argv)
{
pcl::PCLPointCloud2::Ptr cloud(new pcl::PCLPointCloud2());
pcl::PCLPointCloud2::Ptr cloud_filtered(new pcl::PCLPointC... | 31.939394 | 94 | 0.701139 | liwind |
1ed9532e2da37d7fb8b2fe6f2e25983f51b0106e | 5,492 | cpp | C++ | src/wcmodel.cpp | anrichter/qsvn | d048023ddcf7c23540cdde47096c2187b19e3710 | [
"MIT"
] | 22 | 2015-02-12T07:38:09.000Z | 2021-11-03T07:42:39.000Z | src/wcmodel.cpp | anrichter/qsvn | d048023ddcf7c23540cdde47096c2187b19e3710 | [
"MIT"
] | null | null | null | src/wcmodel.cpp | anrichter/qsvn | d048023ddcf7c23540cdde47096c2187b19e3710 | [
"MIT"
] | 17 | 2015-01-26T01:11:51.000Z | 2020-10-29T10:00:28.000Z | /********************************************************************************
* This file is part of QSvn Project http://www.anrichter.net/projects/qsvn *
* Copyright (c) 2004-2010 Andreas Richter <ar@anrichter.net> *
* ... | 31.028249 | 117 | 0.5437 | anrichter |
1eda477cefef2a4c78c409045f5588eaf7277aec | 9,855 | cpp | C++ | src/ExpressionContext.cpp | VincentPT/xpression | 3aed63a899e20ac0fe36eaa090f49f1ed85e4673 | [
"MIT"
] | null | null | null | src/ExpressionContext.cpp | VincentPT/xpression | 3aed63a899e20ac0fe36eaa090f49f1ed85e4673 | [
"MIT"
] | null | null | null | src/ExpressionContext.cpp | VincentPT/xpression | 3aed63a899e20ac0fe36eaa090f49f1ed85e4673 | [
"MIT"
] | null | null | null | #include "ExpressionContext.h"
#include "SimpleCompilerSuite.h"
#include "xutility.h"
#include <string.h>
#include <DefaultPreprocessor.h>
#include <CLamdaProg.h>
#include <Program.h>
#include <string>
#include <list>
#include "VariableManager.h"
#include "ExpressionGlobalScope.h"
#include "ExpressionInter... | 38.197674 | 135 | 0.645561 | VincentPT |
1edecb27d8e09c4670cba165a18a2b56fe1b62df | 5,438 | cpp | C++ | android/jni/JNIRegistStaticMethod.cpp | 15d23/NUIEngine | a1369d5cea90cca81d74a39b8a853b3fba850595 | [
"Apache-2.0"
] | 204 | 2017-05-08T05:41:29.000Z | 2022-03-29T16:57:44.000Z | android/jni/JNIRegistStaticMethod.cpp | 15d23/NUIEngine | a1369d5cea90cca81d74a39b8a853b3fba850595 | [
"Apache-2.0"
] | 7 | 2017-05-10T15:32:09.000Z | 2020-12-23T06:00:30.000Z | android/jni/JNIRegistStaticMethod.cpp | 15d23/NUIEngine | a1369d5cea90cca81d74a39b8a853b3fba850595 | [
"Apache-2.0"
] | 65 | 2017-05-25T05:46:56.000Z | 2021-02-06T11:07:38.000Z | #include "JNIRegistStaticMethod.h"
#include <stdlib.h>
extern JavaVM * gJavaVM; // 全局变量, 在JNI_OnLoad时获取
#define JR_MUTEX
JNIRegistStaticMethod::JNIRegistStaticMethod()
{
m_bRegistered = false;
m_isAttached = false;
m_class = NULL;
m_methodCallback = NULL;
}
int JNIRegistStaticMethod::UnregisterC... | 24.944954 | 135 | 0.683523 | 15d23 |
1ee1c1a03180101329705d42a18c44e34535805b | 3,011 | cc | C++ | Source/BladeBase/source/utility/Delegate.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/BladeBase/source/utility/Delegate.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/BladeBase/source/utility/Delegate.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2013/11/21
filename: Delegate.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <utility/Delegate.h>
namespace Blade
{
//////////////////////////////////... | 24.088 | 83 | 0.406177 | OscarGame |
1ee378688d73b111128c3a5e92105221a99bfaff | 8,324 | cpp | C++ | GameEngine/cMesh.cpp | GottaCodeHarder/GT-Engine | 44ae4d8c974605cc1cd5fd240af81f999b613e8a | [
"MIT"
] | 1 | 2017-09-15T23:56:00.000Z | 2017-09-15T23:56:00.000Z | GameEngine/cMesh.cpp | GottaCodeHarder/GT-Engine | 44ae4d8c974605cc1cd5fd240af81f999b613e8a | [
"MIT"
] | 5 | 2017-09-20T07:13:20.000Z | 2017-10-12T10:57:16.000Z | GameEngine/cMesh.cpp | GottaCodeHarder/GT-Engine | 44ae4d8c974605cc1cd5fd240af81f999b613e8a | [
"MIT"
] | null | null | null | #include "glew/include/glew.h"
#include "SDL/include/SDL_opengl.h"
#include <gl/GL.h>
#include <gl/GLU.h>
#include "cMesh.h"
#include "ResourceMesh.h"
#include "cTransform.h"
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "GameObject.h"
cMesh::cMesh(GameObject* _gameObject) : Component(MESH, _gameObj... | 34.396694 | 203 | 0.704469 | GottaCodeHarder |
1ee59a5ae98048b0f7ffa8b13de4f4aab1e432bc | 4,703 | cpp | C++ | problem/Sumo.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | problem/Sumo.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | problem/Sumo.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | /***********************************************************************************
* AUTHOR
* - Eduardo Segredo
*
* LAST MODIFIED
* October 2018
************************************************************************************/
#include "Sumo.h"
bool Sumo::init (const vector<string> ¶ms) {
if ... | 26.273743 | 115 | 0.584946 | esegredo |
1ee6ca3ec182f0d67d3a2ffa921535469bee15ba | 366 | cpp | C++ | src/main.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | // system includes
#include <assert.h>
#include <cstdint>
#include <iostream>
int main(int /*argc*/, char** /*argv*/)
{
try
{
std::cout << "Hello World" << std::endl;
}
catch (std::exception& e)
{
std::cout << "[exception] " << e.what() << std::endl;
assert(false);
}
// std::cout << imp::... | 17.428571 | 57 | 0.557377 | mwerlberger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.