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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adda7cd4ba0b6c9524cbd404bda33be23d56c6c8 | 569 | cpp | C++ | CPP/ch07/fun_ptr.cpp | jerryhanjj/cpp | 3efc23951f8a97d18516e8dbd911b3d2547899bd | [
"BSD-3-Clause"
] | null | null | null | CPP/ch07/fun_ptr.cpp | jerryhanjj/cpp | 3efc23951f8a97d18516e8dbd911b3d2547899bd | [
"BSD-3-Clause"
] | null | null | null | CPP/ch07/fun_ptr.cpp | jerryhanjj/cpp | 3efc23951f8a97d18516e8dbd911b3d2547899bd | [
"BSD-3-Clause"
] | null | null | null | // fun_ptr.cpp -- pointers to functions
#include <iostream>
using namespace std;
double betsy(int lns)
{
return 0.05*lns;
}
double pam(int lns)
{
return 0.03*lns + 0.004*lns*lns;
}
void estimate(int lines, double(*pf)(int))
{
cout << lines << " lines will take.\n";
cout << (*pf)(lines) << " hours\n";... | 18.354839 | 51 | 0.588752 | jerryhanjj |
addd99c020d0467a20e10392498f1d3aa0c505c3 | 1,040 | cpp | C++ | CBallMove.cpp | CongYun2022/Lux | c47526c5b80b83ce5518164158f3702fa765bf9a | [
"MIT"
] | 1 | 2022-03-31T03:23:06.000Z | 2022-03-31T03:23:06.000Z | CBallMove.cpp | CongYun2022/Lux | c47526c5b80b83ce5518164158f3702fa765bf9a | [
"MIT"
] | null | null | null | CBallMove.cpp | CongYun2022/Lux | c47526c5b80b83ce5518164158f3702fa765bf9a | [
"MIT"
] | null | null | null | #include "CBallMove.h"
#include "AActor.h"
#include "Game.h"
#include "SPhys.h"
#include "ATarget.h"
#include "ABall.h"
CBallMove::CBallMove(AActor* owner)
:CMove(owner)
{
}
void CBallMove::Update(float deltaTime)
{
// Construct segment in direction of travel
const float segmentLength = 30.0f;
Vector3 start = mOw... | 23.636364 | 58 | 0.698077 | CongYun2022 |
ade034b80ff7c8600becddcf94f66fb44c9ac63a | 211 | cpp | C++ | ZER0/001.cpp | applevinc/Project-Euler | 2755a00df43e65b99b964587e29621cc8ebcc50a | [
"MIT"
] | null | null | null | ZER0/001.cpp | applevinc/Project-Euler | 2755a00df43e65b99b964587e29621cc8ebcc50a | [
"MIT"
] | null | null | null | ZER0/001.cpp | applevinc/Project-Euler | 2755a00df43e65b99b964587e29621cc8ebcc50a | [
"MIT"
] | 1 | 2021-03-17T07:19:55.000Z | 2021-03-17T07:19:55.000Z | #include <iostream>
using namespace std;
int main() {
int max = 1000;
int sum = 0;
for(int i = 1; i < max; ++i) {
if((i % 3 == 0) || (i % 5 == 0)) {
sum += i;
}
}
cout << sum << endl; // 233168
}
| 13.1875 | 36 | 0.464455 | applevinc |
ade3e324f2c80185851a9218ee64532498dd4622 | 16,643 | cpp | C++ | src/GCNDenoiser/GCNDenoiser/PatchData.cpp | ZJUGAPS-YYGroup/GCN-Denoiser | 5d3ee62fdbf8bf56f5399c1717d4d7176924f809 | [
"MIT"
] | 15 | 2021-08-15T13:13:26.000Z | 2022-03-22T13:02:46.000Z | src/GCNDenoiser/GCNDenoiser/PatchData.cpp | ZJUGAPS-YYGroup/GCN-Denoiser | 5d3ee62fdbf8bf56f5399c1717d4d7176924f809 | [
"MIT"
] | 1 | 2021-10-20T02:34:58.000Z | 2021-10-20T02:34:58.000Z | src/GCNDenoiser/GCNDenoiser/PatchData.cpp | ZJUGAPS-YYGroup/GCN-Denoiser | 5d3ee62fdbf8bf56f5399c1717d4d7176924f809 | [
"MIT"
] | 4 | 2021-08-06T01:37:56.000Z | 2022-01-20T06:54:58.000Z | #include "PatchData.h"
#include <Eigen/Core>
#include <Eigen/Eigenvalues>
#include <set>
PatchData::PatchData(TriMesh &mesh, std::vector<std::vector<TriMesh::FaceHandle>> &all_face_neighbor,
std::vector<double> &face_area, std::vector<TriMesh::Point> &face_centroid,
TriMesh::FaceIter &iter_face, shen::Geometry::Eas... | 34.890985 | 178 | 0.681007 | ZJUGAPS-YYGroup |
ade6dcdc8a8b9adff82ce67fe2723e0ea74b4918 | 8,073 | cpp | C++ | src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/src/filter/SRiteratedextendedkalmanfilter.cpp | alexoterno/turtlebot2_with_head | ac714f77379dd0f47ddb76d83896fdabee269a03 | [
"MIT"
] | null | null | null | src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/src/filter/SRiteratedextendedkalmanfilter.cpp | alexoterno/turtlebot2_with_head | ac714f77379dd0f47ddb76d83896fdabee269a03 | [
"MIT"
] | null | null | null | src/turtlebot2_src/src/orocos-bayesian-filtering/orocos_bfl/src/filter/SRiteratedextendedkalmanfilter.cpp | alexoterno/turtlebot2_with_head | ac714f77379dd0f47ddb76d83896fdabee269a03 | [
"MIT"
] | null | null | null | // $Id$
// Copyright (C) 2003 Klaas Gadeyne <first dot last at gmail dot com>
// Peter Slaets <peter dot slaets at mech dot kuleuven dot ac dot be>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published b... | 34.648069 | 210 | 0.689954 | alexoterno |
ade7bc572d3c09f6e5a9747e8496e662b92b87ff | 809 | cpp | C++ | codes/Leetcode/leetcode151.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode151.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode151.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
string reverseWords(string s) {
string ans;
int r = -1;
bool first = true;
for (int i = s.size() - 1; i >= 0; --i) {
if (s[i] != ' ') {
if (r != -1) {
continue;
} else {
r = i... | 23.794118 | 50 | 0.233622 | JeraKrs |
ade9191978ed1d32e8f4f6dc32f5939eaaa99b16 | 260 | cpp | C++ | src/UnsignedVariable.cpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | 1 | 2021-09-03T14:03:28.000Z | 2021-09-03T14:03:28.000Z | src/UnsignedVariable.cpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | null | null | null | src/UnsignedVariable.cpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | null | null | null | #include <UnsignedVariable.hpp>
gabe::circuits::UnsignedVariable::UnsignedVariable() : Variable() {}
gabe::circuits::UnsignedVariable::UnsignedVariable(uint8_t number_bits) : Variable(number_bits) {}
gabe::circuits::UnsignedVariable::~UnsignedVariable() {}
| 32.5 | 98 | 0.780769 | andremmvgabriel |
adedbef5f36d506a3ec8d3a81161210cbd91e21c | 906 | cpp | C++ | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/I.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/I.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/I.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://codeforces.com/group/aDFQm4ed6d/contest/274872/problem/I
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
ll chk (string s, string w)
{
ll cnt = 0;
for (ll i = 0; i < s.size (); ++i)
{
if (w[i] ... | 22.097561 | 66 | 0.470199 | MaGnsio |
adedc64f5ab71d7857a6679c343c65325f95d598 | 3,750 | cpp | C++ | IDAArchitecture.cpp | fjqisba/E-Decompiler | f598c4205d8b9e4d29172dab0bb2672c75e48af9 | [
"MIT"
] | 74 | 2021-03-04T08:12:43.000Z | 2022-03-14T13:50:20.000Z | IDAArchitecture.cpp | fjqisba/E-Decompiler | f598c4205d8b9e4d29172dab0bb2672c75e48af9 | [
"MIT"
] | 10 | 2021-03-05T09:52:10.000Z | 2021-07-05T13:48:33.000Z | IDAArchitecture.cpp | fjqisba/E-Decompiler | f598c4205d8b9e4d29172dab0bb2672c75e48af9 | [
"MIT"
] | 15 | 2021-04-06T14:22:39.000Z | 2022-03-29T13:14:47.000Z | #include "IDAArchitecture.h"
#include "IDALoader.h"
#include "IDATypeManager.h"
#include "IDAScope.h"
#include "EazyAction.h"
IDAArchitecture::IDAArchitecture(const string& targ):
SleighArchitecture("ida", targ, &m_err),
m_ScanAction(Action::rule_onceperfunc, "ESCAN")
{
}
IDAArchitecture::~IDAArchit... | 27.573529 | 108 | 0.697067 | fjqisba |
adf7ad8f5d45cefc5eca2088a2d0c763e52f8531 | 511 | cpp | C++ | Examples/BCB/GlobalTestLibrary/Src/JsonVclUtils.cpp | alexzhornyak/UscxmlCLib | 3f763db4f7b8061309593a97c238bf2801984a66 | [
"BSD-3-Clause"
] | 1 | 2020-04-05T19:21:08.000Z | 2020-04-05T19:21:08.000Z | Examples/BCB/GlobalTestLibrary/Src/JsonVclUtils.cpp | alexzhornyak/UscxmlCLib | 3f763db4f7b8061309593a97c238bf2801984a66 | [
"BSD-3-Clause"
] | null | null | null | Examples/BCB/GlobalTestLibrary/Src/JsonVclUtils.cpp | alexzhornyak/UscxmlCLib | 3f763db4f7b8061309593a97c238bf2801984a66 | [
"BSD-3-Clause"
] | 1 | 2021-04-13T16:04:42.000Z | 2021-04-13T16:04:42.000Z | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "JsonVclUtils.h"
#include <boost/regex.hpp>
//---------------------------------------------------------------------------
#pragma package(smart_init)
namespace Jsonutils {
const UnicodeString J... | 24.333333 | 81 | 0.457926 | alexzhornyak |
adf8519c529cbcbfd26024ff22c1e7aa5dca5b67 | 229 | cpp | C++ | Misc/[Siruri] Numarul maxim/main.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Misc/[Siruri] Numarul maxim/main.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Misc/[Siruri] Numarul maxim/main.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
int main(){
int n, x, prec=0, maxim;
cin>>n;
for(int i=1; i<=n; i++){
cin>>x;
prec=x;
if(x>prec) maxim=x;
}
cout<<maxim;
return 0;
}
| 13.470588 | 28 | 0.467249 | Al3x76 |
adfb38cf3bef51869e9be95a1a2836145971bcae | 7,604 | cpp | C++ | src/ivorium_systems/ConfigFileSystem/ConfigFileSystem.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_systems/ConfigFileSystem/ConfigFileSystem.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_systems/ConfigFileSystem/ConfigFileSystem.cpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | #include "ConfigFileSystem.hpp"
#include <fstream>
namespace iv
{
//================================================================================
//--------------------- ConfigStream ---------------------------------------------
ConfigStream::ConfigStream( Instance * inst, std::string const & name ) :
cm( inst... | 28.162963 | 141 | 0.574435 | ivorne |
adfb822edf4fa1eac7d4551f00d69add0e3675c5 | 970 | hpp | C++ | am/linear/mat4x4.hpp | komiga/am | 4ce4cc5539c3fd5b1ff1ccf5bf843e6c484e94aa | [
"MIT"
] | 1 | 2015-01-16T18:56:01.000Z | 2015-01-16T18:56:01.000Z | am/linear/mat4x4.hpp | komiga/am | 4ce4cc5539c3fd5b1ff1ccf5bf843e6c484e94aa | [
"MIT"
] | null | null | null | am/linear/mat4x4.hpp | komiga/am | 4ce4cc5539c3fd5b1ff1ccf5bf843e6c484e94aa | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief 4x4 matrix.
*/
#pragma once
#include "../config.hpp"
#include "../arithmetic_types.hpp"
#include "../detail/linear/tmat4x4.hpp"
#include "./vec4.hpp"
#ifdef AM_CONFIG_IMPLICIT_LINEAR_INTERFACE
#include "../detail/linear/tmat4... | 16.724138 | 72 | 0.68866 | komiga |
bc01cfa4c8790ef8a3802b77cb8bbc7c20471def | 4,158 | cpp | C++ | lib/src/parser/parser.cpp | Corralx/leviathan | 508e1108cd5351760146ac8374154b2ba09113db | [
"BSD-3-Clause"
] | 8 | 2015-07-29T16:15:37.000Z | 2020-02-28T23:21:19.000Z | lib/src/parser/parser.cpp | teodorov/leviathan | 508e1108cd5351760146ac8374154b2ba09113db | [
"BSD-3-Clause"
] | 2 | 2021-02-04T15:48:56.000Z | 2021-02-08T10:47:17.000Z | lib/src/parser/parser.cpp | teodorov/leviathan | 508e1108cd5351760146ac8374154b2ba09113db | [
"BSD-3-Clause"
] | 4 | 2017-03-15T02:58:30.000Z | 2021-12-10T10:18:14.000Z | /*
Copyright (c) 2014, Nicola Gigante
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | 23.625 | 78 | 0.663059 | Corralx |
bc05c2502489e30096ac1c7102b38123da2b2c2d | 6,041 | hpp | C++ | src/include/cpputils/functional/opt_ext.hpp | alessandro90/cpputils | 45ebd28be73cabc3a38f09cfc08779f72f518772 | [
"MIT"
] | null | null | null | src/include/cpputils/functional/opt_ext.hpp | alessandro90/cpputils | 45ebd28be73cabc3a38f09cfc08779f72f518772 | [
"MIT"
] | 3 | 2022-02-26T23:37:11.000Z | 2022-03-13T17:48:03.000Z | src/include/cpputils/functional/opt_ext.hpp | alessandro90/cpputils | 45ebd28be73cabc3a38f09cfc08779f72f518772 | [
"MIT"
] | null | null | null | #ifndef CPPUTILS_OPTIONAL_EXTENSION_HPP
#define CPPUTILS_OPTIONAL_EXTENSION_HPP
#include "../traits/cpputils_concepts.hpp"
#include "../traits/is_specialization_of.hpp"
// #include "expected.hpp"
#include <functional>
#include <optional>
#include <type_traits>
#include <utility>
// Utility macros. #undef'd at end of ... | 37.521739 | 213 | 0.609833 | alessandro90 |
bc082583b0cd0d18a932f76b12d96f220283d934 | 202 | cxx | C++ | tests/template_type/references/global.cxx | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | tests/template_type/references/global.cxx | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | 2 | 2021-07-07T17:31:49.000Z | 2021-07-16T11:40:38.000Z | tests/template_type/references/global.cxx | OuluLinux/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef GLOBAL_CXX
#define GLOBAL_CXX
#ifndef GLOBAL_HXX
#include <global.hxx>
#endif
A < b < c, (d > e) > f2 = 0;
A < A < c, d > , e > f3 = 0;
A < g > f4 = 0;
A < A < c, d > (e), g > f5 = 0;
#endif
| 14.428571 | 31 | 0.514851 | UltimateScript |
bc08d75474efba4671bec10379b984c8b307f2cc | 1,731 | cpp | C++ | src/boxRemoveDuplicates.cpp | Sensenzhl/RCNN-NVDLA | e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d | [
"Vim"
] | 5 | 2019-06-26T07:50:43.000Z | 2021-12-17T08:52:39.000Z | src/boxRemoveDuplicates.cpp | Sensenzhl/RCNN-NVDLA | e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d | [
"Vim"
] | 1 | 2019-11-28T06:57:49.000Z | 2019-11-28T06:57:49.000Z | src/boxRemoveDuplicates.cpp | Sensenzhl/RCNN-NVDLA | e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d | [
"Vim"
] | 1 | 2020-05-27T06:11:17.000Z | 2020-05-27T06:11:17.000Z | #include "defines.hpp"
#include "boxRemoveDuplicates.hpp"
//using namespace cv;
//using namespace std;
CvMat *BoxRemoveDuplicates(CvMat *boxes)
{
int length_index_reserved = boxes->rows;
int * index_reserved = new int[length_index_reserved];
int offset = 0;
float * ptr;
float * ptr_out;
int flag_exist =... | 26.630769 | 141 | 0.623339 | Sensenzhl |
bc0910a21ad39e38dde3c63025bc68e1cb2011fd | 987 | cpp | C++ | test/cut/FilterTest.cpp | liyongshun/cut | 9be179526a2376bcba7593b7d4604e47d943d71d | [
"MIT"
] | 1 | 2021-01-06T11:17:43.000Z | 2021-01-06T11:17:43.000Z | test/cut/FilterTest.cpp | liyongshun/cut | 9be179526a2376bcba7593b7d4604e47d943d71d | [
"MIT"
] | null | null | null | test/cut/FilterTest.cpp | liyongshun/cut | 9be179526a2376bcba7593b7d4604e47d943d71d | [
"MIT"
] | null | null | null | #include <cut/cut.hpp>
#include <cut/startup/TestOptions.h>
#include <regex>
#include <cpo/core/Args.h>
USING_CUT_NS
USING_CUM_NS
USING_CUB_NS
FIXTURE(FilterTest)
{
TestOptions &options = RUNTIME(TestOptions);
TEARDOWN()
{
options.clear();
}
template <typename Asserter>
void given_options_then(const std... | 20.142857 | 83 | 0.597771 | liyongshun |
bc098db418b1564c0282e6249dec4817a3fe3f81 | 888 | cpp | C++ | Deitel/Chapter08/examples/8.12/fig08_12.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter08/examples/8.12/fig08_12.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter08/examples/8.12/fig08_12.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 25.371429 | 88 | 0.45045 | SebastianTirado |
bc0f2f780330a7bc43f01b9a735fb1400d4abbb4 | 554 | hpp | C++ | legacy/include/distconv/tensor/algorithms/reduce_sum.hpp | benson31/DiHydrogen | f12d1e0281ae58e40eadf98b3e2209208c82f5e2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-01-06T17:26:58.000Z | 2021-12-11T01:17:43.000Z | legacy/include/distconv/tensor/algorithms/reduce_sum.hpp | benson31/DiHydrogen | f12d1e0281ae58e40eadf98b3e2209208c82f5e2 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-02-26T06:07:42.000Z | 2022-02-15T22:51:36.000Z | legacy/include/distconv/tensor/algorithms/reduce_sum.hpp | benson31/DiHydrogen | f12d1e0281ae58e40eadf98b3e2209208c82f5e2 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2020-01-06T18:08:42.000Z | 2021-07-26T14:53:07.000Z | #pragma once
#include "distconv/tensor/tensor.hpp"
#include "distconv/tensor/algorithms/common.hpp"
#include <type_traits>
namespace distconv {
namespace tensor {
namespace algorithms {
} // namespace algorithms
template <typename DataType, typename Locale, typename Allocator>
typename std::enable_if<
std::is_s... | 20.518519 | 65 | 0.736462 | benson31 |
bc0f6eb49fc250b6f230f52978faa79ae4252db4 | 2,280 | cpp | C++ | core/src/system/KeyMovement.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/src/system/KeyMovement.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/src/system/KeyMovement.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | #include "system/KeyMovement.hpp"
#include "Game.hpp"
#include "components/Direction.hpp"
#include "components/KeyMovement.hpp"
#include "observer/ObserverManager.hpp"
namespace systems {
KeyMovement::KeyMovement() : ASystem()
{
_observers = Observer{
[&](KeyPressed const &event) {
this->_dire... | 33.529412 | 76 | 0.551754 | Floriantoine |
bc121a8c51cfb10999b18e72a7cb9a115a7a81e3 | 2,118 | cpp | C++ | tc 160+/FoxMakingDiceEasy.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/FoxMakingDiceEasy.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/FoxMakingDiceEasy.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class FoxMakingDiceEasy {
public:
int theCount(int N, int K) {
if (N < 6) {
return 0;
}
int sol ... | 37.157895 | 309 | 0.550047 | ibudiselic |
bc17a03ea329fa5c5f1edbecb8784fa46aa8de3f | 658 | cpp | C++ | src/cpp/connections.cpp | MayaPosch/NymphMQTT | 10707ba763606424ab2b81e310cb53a38fa66687 | [
"BSD-3-Clause"
] | 14 | 2019-11-15T18:19:35.000Z | 2022-02-03T12:09:14.000Z | src/cpp/connections.cpp | MayaPosch/NymphMQTT | 10707ba763606424ab2b81e310cb53a38fa66687 | [
"BSD-3-Clause"
] | null | null | null | src/cpp/connections.cpp | MayaPosch/NymphMQTT | 10707ba763606424ab2b81e310cb53a38fa66687 | [
"BSD-3-Clause"
] | 1 | 2020-03-20T22:45:14.000Z | 2020-03-20T22:45:14.000Z | /*
connections.cpp - Impplementation of the NymphMQTT Connections class.
Revision 0
Features:
- Static class to enable the global management of connections.
Notes:
-
2019/05/08 - Maya Posch
*/
#include "connections.h"
// Static declarations.
std::map<int, NymphSocket> NmqttConnections::socke... | 17.315789 | 70 | 0.68845 | MayaPosch |
bc1c952462638c5e08bf9709092f5b97013ed20f | 7,093 | cpp | C++ | src/OpcUaStackCore/Certificate/CryptoHMAC_SHA.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | src/OpcUaStackCore/Certificate/CryptoHMAC_SHA.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | src/OpcUaStackCore/Certificate/CryptoHMAC_SHA.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | /*
Copyright 2018 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschri... | 24.714286 | 86 | 0.648245 | gianricardo |
bc21d56409c7cdff18a8fabaf266472463bc4091 | 655 | cpp | C++ | luogu/1151.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | luogu/1151.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | luogu/1151.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 100020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int main(int argc, char const *argv[]) {
int s = re... | 27.291667 | 60 | 0.505344 | swwind |
bc2837476c23d9e0b39b50e66926d4c8fe397a58 | 2,256 | cpp | C++ | src/Common/ArgParser.cpp | baisai/LightInkLLM | 7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2 | [
"MIT"
] | 1 | 2017-11-16T16:29:01.000Z | 2017-11-16T16:29:01.000Z | src/Common/ArgParser.cpp | baisai/LightInkLLM | 7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2 | [
"MIT"
] | null | null | null | src/Common/ArgParser.cpp | baisai/LightInkLLM | 7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2 | [
"MIT"
] | 1 | 2018-12-29T06:51:42.000Z | 2018-12-29T06:51:42.000Z |
/* Copyright ChenDong(Wilbur), email <baisaichen@live.com>. 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 without restriction, including without limitation the... | 25.931034 | 111 | 0.664894 | baisai |
bc2dcf4a13ef322da40e560250acb2eeb14a86fe | 669 | hpp | C++ | assets/Logic/Effects/TurbulenceWobble.hpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | 2 | 2018-01-12T10:26:07.000Z | 2018-02-02T19:03:00.000Z | assets/Logic/Effects/TurbulenceWobble.hpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | null | null | null | assets/Logic/Effects/TurbulenceWobble.hpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | null | null | null | #pragma once
#include "logic.hpp"
#include <random>
class TurbulenceWobble : public LogicComponent
{
public:
TurbulenceWobble();
void Update() override;
void Start() override;
template<typename SerializerType>
void Deserialize(SerializerType serializer)
{
DESERIALIZE(m_WobbleTime, s... | 17.153846 | 71 | 0.702541 | egomeh |
bc2ec40ad2a277063e1d845ed7ebe7010f3bcbbb | 31,596 | cpp | C++ | SubstringWithConcatenationOfAllWords.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | SubstringWithConcatenationOfAllWords.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | SubstringWithConcatenationOfAllWords.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <vector>
#include <utility>
#include <map>
#include <unordered_map>
using namespace std;
class Solution {
public:
vector<int> findSubstring(string S, vector<string> &L) {
vector<int> res;
unordered_map<string, int> stat;
unordered_map<string, int> run;
... | 114.478261 | 20,032 | 0.402931 | hgfeaon |
bc2ed4836266b657965cecfa0b7eedd9a5adb190 | 184 | cpp | C++ | lib/Statistical/EigenFactoryAbstract.cpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 3 | 2021-06-14T15:36:46.000Z | 2022-02-28T15:16:08.000Z | lib/Statistical/EigenFactoryAbstract.cpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 1 | 2021-07-17T07:52:15.000Z | 2021-07-17T07:52:15.000Z | lib/Statistical/EigenFactoryAbstract.cpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 3 | 2021-07-12T14:52:38.000Z | 2021-11-28T17:10:33.000Z | #include "EigenFactoryAbstract.hpp"
using namespace EnjoLib;
EigenFactoryAbstract::EigenFactoryAbstract()
{
//ctor
}
EigenFactoryAbstract::~EigenFactoryAbstract()
{
//dtor
}
| 14.153846 | 45 | 0.755435 | hlp2 |
bc309620f8518942860fa071c25781607de8c21d | 13,019 | hpp | C++ | engine/includes/graphics/device/graphics_device.hpp | StuartDAdams/neon | d08a63b853801aec94390e50f2988d0217438061 | [
"MIT"
] | 1 | 2019-08-22T14:43:18.000Z | 2019-08-22T14:43:18.000Z | engine/includes/graphics/device/graphics_device.hpp | StuartDAdams/neon | d08a63b853801aec94390e50f2988d0217438061 | [
"MIT"
] | null | null | null | engine/includes/graphics/device/graphics_device.hpp | StuartDAdams/neon | d08a63b853801aec94390e50f2988d0217438061 | [
"MIT"
] | null | null | null | /*
===========================================================================
Moka Source Code
Copyright 2019 Stuart Adams. All rights reserved.
https://github.com/stuartdadams/moka
stuartdadams | linkedin.com/in/stuartdadams
This file is part of the Moka Real-Time Physically-Based Rendering Project.
Permission is h... | 36.063712 | 144 | 0.629618 | StuartDAdams |
bc413d8227dd01daa4955f5696c24db69ce098c7 | 304 | cpp | C++ | DP/CountingBits.cpp | utkarshbajpai28/LeetCode-Solutions | 58b3107f1cf3d1bf9f0686f0cb7f98684a34017a | [
"MIT"
] | 33 | 2020-06-16T14:28:50.000Z | 2021-06-21T14:35:39.000Z | DP/CountingBits.cpp | utkarshbajpai28/LeetCode-Solutions | 58b3107f1cf3d1bf9f0686f0cb7f98684a34017a | [
"MIT"
] | 1 | 2020-10-01T12:18:39.000Z | 2020-10-01T12:18:39.000Z | DP/CountingBits.cpp | utkarshbajpai28/LeetCode-Solutions | 58b3107f1cf3d1bf9f0686f0cb7f98684a34017a | [
"MIT"
] | 18 | 2020-06-18T16:18:55.000Z | 2021-05-19T18:41:50.000Z | class Solution {
public:
vector<int> countBits(int num) {
vector<int> dp(num+1);
dp[0] = 0;
for(int i = 1; i <= num; i++ ) {
if(i % 2 == 0)
dp[i] = dp[i/2];
else
dp[i] = dp[i-1]+1;
}
return dp;
}
};
| 20.266667 | 40 | 0.351974 | utkarshbajpai28 |
bc4384e4e2d9d62b31fc500172fc6b755eac5bf1 | 1,873 | hpp | C++ | Hashing/HashAdaptor.hpp | jaredmulconry/HashingSupport | 5f1b08b4a52be0ccd0181ef20adf1180fd8211a3 | [
"MIT"
] | null | null | null | Hashing/HashAdaptor.hpp | jaredmulconry/HashingSupport | 5f1b08b4a52be0ccd0181ef20adf1180fd8211a3 | [
"MIT"
] | null | null | null | Hashing/HashAdaptor.hpp | jaredmulconry/HashingSupport | 5f1b08b4a52be0ccd0181ef20adf1180fd8211a3 | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <type_traits>
#include <utility>
namespace JMlib
{
namespace hashing
{
namespace detail
{
template<typename T>
constexpr bool is_trivially_hashable() noexcept
{
return std::is_integral<T>::value
... | 27.544118 | 132 | 0.561666 | jaredmulconry |
bc4423852f87de5ca14e664a04da09c318da795e | 1,491 | cpp | C++ | 2.Constructor&Destructor/i-Design/Q4/User.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 26 | 2021-03-17T03:15:22.000Z | 2021-06-09T13:29:41.000Z | 2.Constructor&Destructor/i-Design/Q4/User.cpp | Servatom/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 6 | 2021-03-16T19:04:05.000Z | 2021-06-03T13:41:04.000Z | 2.Constructor&Destructor/i-Design/Q4/User.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 42 | 2021-03-17T03:16:22.000Z | 2021-06-14T21:11:20.000Z | #include <iostream>
#include<string.h>
using namespace std;
class User{
private:
string name;
string userName;
string password;
public:
User()
{
}
User(string n,string un,string p)
{
name=n;
userName=un;
... | 22.938462 | 63 | 0.429913 | Concept-Team |
a4c00031cc6bea04fe54aebe8a65b12917d967bc | 368 | cpp | C++ | Codeforces/A_Beautiful_year.cpp | Rakib1604060/Problem_Solving | 0408ceff24834df9b3d2d9fddd8a56a5a9dc4592 | [
"MIT"
] | null | null | null | Codeforces/A_Beautiful_year.cpp | Rakib1604060/Problem_Solving | 0408ceff24834df9b3d2d9fddd8a56a5a9dc4592 | [
"MIT"
] | null | null | null | Codeforces/A_Beautiful_year.cpp | Rakib1604060/Problem_Solving | 0408ceff24834df9b3d2d9fddd8a56a5a9dc4592 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
int year;
cin>>year;
int a,b,c,d;
while(true){
year++;
a=year%10;
b=year/10%10;
c=year/100%10;
d=year/1000;
if (a!=b&&a!=c&&a!=d&&b!=c&&b!=d&&c!=d)
{
break;
... | 13.142857 | 47 | 0.453804 | Rakib1604060 |
a4c049da92f06e0e62934f8d8e7623ca8ed63616 | 3,022 | cpp | C++ | euhat/os/linux/EuhatChildWnd.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/os/linux/EuhatChildWnd.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/os/linux/EuhatChildWnd.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | #include "EuhatChildWnd.h"
#include <gtk/gtk.h>
static gboolean configureEventCb(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
{
EuhatChildWnd *pThis = (EuhatChildWnd *)data;
if (NULL != pThis->surface_)
cairo_surface_destroy(pThis->surface_);
pThis->surface_ = gdk_window_create_similar_surface(gt... | 24.176 | 186 | 0.742555 | euhat |
a4c382ee3838318ae38a166956f9fb31326acf7e | 1,068 | cpp | C++ | tests/PhiCore/unittests/src/type_traits/to_safe.test.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | tests/PhiCore/unittests/src/type_traits/to_safe.test.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | tests/PhiCore/unittests/src/type_traits/to_safe.test.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #include <phi/test/test_macros.hpp>
#include "constexpr_helper.hpp"
#include <phi/core/boolean.hpp>
#include <phi/core/floating_point.hpp>
#include <phi/core/integer.hpp>
#include <phi/core/move.hpp>
#include <phi/type_traits/to_safe.hpp>
TEST_CASE("to_safe")
{
// boolean
STATIC_REQUIRE((phi::to_safe(true) ==... | 32.363636 | 85 | 0.667603 | AMS21 |
a4c9f52e96233d81407e409c048a03ac31ac90b6 | 125,136 | cpp | C++ | foo_playlist_tree/foo_ui_playlist_tree.cpp | cwbowron/foobar2000-plugins | 6ba30d7b3afc0ee85f5cc2903012c1dfcee132bd | [
"WTFPL"
] | 13 | 2015-12-26T02:38:32.000Z | 2021-08-24T17:08:50.000Z | foo_playlist_tree/foo_ui_playlist_tree.cpp | cwbowron/foobar2000-plugins | 6ba30d7b3afc0ee85f5cc2903012c1dfcee132bd | [
"WTFPL"
] | null | null | null | foo_playlist_tree/foo_ui_playlist_tree.cpp | cwbowron/foobar2000-plugins | 6ba30d7b3afc0ee85f5cc2903012c1dfcee132bd | [
"WTFPL"
] | 5 | 2016-07-28T07:26:37.000Z | 2021-12-07T05:20:23.000Z | #define VERSION ("3.0.5 [" __DATE__ " - " __TIME__ "]")
#pragma warning(disable:4018) // don't warn about signed/unsigned
#pragma warning(disable:4065) // don't warn about default case
#pragma warning(disable:4800) // don't warn about forcing int to bool
#pragma warning(disable:4244) // disable warning convert f... | 29.31272 | 215 | 0.530814 | cwbowron |
a4ccdbf46dd6de2789bb3919eefbd84a6fa01fa1 | 3,412 | cpp | C++ | Code/Engine/Tools/FBX.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Tools/FBX.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Tools/FBX.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/General/Core/EngineCommon.hpp"
#include "Engine/Utils/ErrorWarningAssert.hpp"
#include "Engine/General/Core/BeirusEngine.hpp"
#include "Engine/Console/Command.hpp"
#include "Engine/Console/Console.hpp"
#if defined(TOOLS_BUILD)
#include <fbxsdk.h>
#pragma comment(lib, "libfbxsdk-md.lib")... | 31.018182 | 125 | 0.505275 | ntaylorbishop |
a4ce1d66d89ee509a9a44a5fb854ccf340431624 | 1,082 | cpp | C++ | src/classwork/03_assign/decision.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-JustinBrewer22 | 5756943881ca972a5f2f4fc634dde8b65158e3d5 | [
"MIT"
] | null | null | null | src/classwork/03_assign/decision.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-JustinBrewer22 | 5756943881ca972a5f2f4fc634dde8b65158e3d5 | [
"MIT"
] | null | null | null | src/classwork/03_assign/decision.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-JustinBrewer22 | 5756943881ca972a5f2f4fc634dde8b65158e3d5 | [
"MIT"
] | null | null | null | //cpp
#include "decision.h"
using namespace std;
string get_letter_grade_using_if(int numgrade)
{
string letter_grade;
if(numgrade >= 90 && numgrade <= 100)
{
letter_grade = "A";
}
else if(numgrade >=80 && numgrade <= 89)
{
letter_grade = "B";
}
else if(numgrade >=70 &&... | 19.321429 | 60 | 0.519409 | acc-cosc-1337-spring-2021 |
a4d4e3753fb7c2897c61dfdc53edd8ef7aaccdbf | 13,718 | cpp | C++ | Src/ViceConnect.cpp | Sakrac/Step6502 | 3b8c3058a7997a2ff739e1d2c85fd150c3c33e5e | [
"MIT"
] | 8 | 2017-02-13T06:53:00.000Z | 2021-05-21T20:35:56.000Z | Src/ViceConnect.cpp | Sakrac/Step6502 | 3b8c3058a7997a2ff739e1d2c85fd150c3c33e5e | [
"MIT"
] | null | null | null | Src/ViceConnect.cpp | Sakrac/Step6502 | 3b8c3058a7997a2ff739e1d2c85fd150c3c33e5e | [
"MIT"
] | null | null | null | // start a telnet connection with a local instance of VICE
#include "stdafx.h"
#include "winsock2.h"
#include <ws2tcpip.h>
#include <inttypes.h>
#include "machine.h"
#include "MainFrm.h"
#include "Step6502.h"
#include "Expressions.h"
#include "Sym.h"
class ViceConnect
{
public:
enum { RECEIVE_SIZE = 4096 };
ViceCon... | 25.834275 | 104 | 0.598411 | Sakrac |
a4d86f8d122ee0dec820b941e42c8af4899e6e7a | 26,544 | cpp | C++ | src/libcore/src/ccm/io/File.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 6 | 2018-05-08T10:08:21.000Z | 2021-11-13T13:22:58.000Z | src/libcore/src/ccm/io/File.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 1 | 2018-05-08T10:20:17.000Z | 2018-07-23T05:19:19.000Z | src/libcore/src/ccm/io/File.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 4 | 2018-03-13T06:21:11.000Z | 2021-06-19T02:48:07.000Z | //=========================================================================
// Copyright (C) 2018 The C++ Component Model(CCM) Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Lic... | 25.376673 | 105 | 0.600437 | sparkoss |
a4db2913c015221a0cd18007c7249df6f7c4b09e | 4,822 | cpp | C++ | examples_c++/FrameworkDemo/FrameworkDemo_AGK/jugiAppAGK.cpp | Jugilus/jugimapAPI | 93fba7827b16169f858f7bd88c87236c5cf27183 | [
"MIT"
] | 8 | 2020-11-23T23:34:39.000Z | 2022-02-23T12:14:02.000Z | examples_c++/FrameworkDemo/FrameworkDemo_AGK/jugiAppAGK.cpp | Jugilus/jugimapAPI | 93fba7827b16169f858f7bd88c87236c5cf27183 | [
"MIT"
] | null | null | null | examples_c++/FrameworkDemo/FrameworkDemo_AGK/jugiAppAGK.cpp | Jugilus/jugimapAPI | 93fba7827b16169f858f7bd88c87236c5cf27183 | [
"MIT"
] | 3 | 2019-12-19T13:44:43.000Z | 2020-05-15T01:02:10.000Z | #include <chrono>
#include <assert.h>
#include "jugiAppAGK.h"
namespace jugiApp{
using namespace jugimap;
bool PlatformerSceneAGK::Init()
{
if(PlatformerScene::Init()==false){
return false;
}
//---
agk::SetPhysicsGravity(0, 500);
return true;
}
void PlatformerSceneAGK::SetDynam... | 34.442857 | 175 | 0.603899 | Jugilus |
a4dcee36b0802530e41244e649eac495452b6879 | 530 | cpp | C++ | Software Eng (1)/Library/Bee/artifacts/WebGL/il2cpp/master_WebGL_wasm/ccge_Win321.lump.cpp | HealthSouthern48/Unity-project | ad1956e23f55910dd6f51710d11413ecbf5b7b6d | [
"MIT"
] | null | null | null | Software Eng (1)/Library/Bee/artifacts/WebGL/il2cpp/master_WebGL_wasm/ccge_Win321.lump.cpp | HealthSouthern48/Unity-project | ad1956e23f55910dd6f51710d11413ecbf5b7b6d | [
"MIT"
] | null | null | null | Software Eng (1)/Library/Bee/artifacts/WebGL/il2cpp/master_WebGL_wasm/ccge_Win321.lump.cpp | HealthSouthern48/Unity-project | ad1956e23f55910dd6f51710d11413ecbf5b7b6d | [
"MIT"
] | null | null | null | //Generated lump file. generated by Bee.NativeProgramSupport.Lumping
#include "C:/Users/19022/Downloads/Unity/Editor/Data/il2cpp/libil2cpp/os/Win32/Console.cpp"
#include "C:/Users/19022/Downloads/Unity/Editor/Data/il2cpp/libil2cpp/os/Win32/Encoding.cpp"
#include "C:/Users/19022/Downloads/Unity/Editor/Data/il2cpp/lib... | 75.714286 | 93 | 0.798113 | HealthSouthern48 |
a4dd7c27eaf1ce01375c74cccfb0447fed95bfe0 | 1,647 | hpp | C++ | srcs/boxpp/boxpp/base/opacities/vsprintf.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | 2 | 2019-11-13T13:57:37.000Z | 2019-11-25T09:55:17.000Z | srcs/boxpp/boxpp/base/opacities/vsprintf.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | srcs/boxpp/boxpp/base/opacities/vsprintf.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | #pragma once
#include <boxpp/base/BaseMacros.hpp>
#include <boxpp/base/BaseTypes.hpp>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <wchar.h>
namespace boxpp
{
template<typename CharType>
struct TVsprintf
{
FASTINLINE static void Vsprintf(CharType* Buffer, const CharType* Format, ...) { }
... | 21.115385 | 85 | 0.654523 | whoamiho1006 |
a4ddef8ecbf4d42c3cb6625128211139122a44da | 2,836 | hxx | C++ | opencascade/Message_LazyProgressScope.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/Message_LazyProgressScope.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/Message_LazyProgressScope.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2017-2021 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with spe... | 35.012346 | 115 | 0.724612 | mgreminger |
a4dfea183b548fd49d6dc76f8bd7d894538f695e | 2,285 | cpp | C++ | Aven-core/src/math/vec2.cpp | icedmetal57/Aven | 3c33b74382a7a6ea4aaaa8b33d000573af80fe3e | [
"Apache-2.0"
] | null | null | null | Aven-core/src/math/vec2.cpp | icedmetal57/Aven | 3c33b74382a7a6ea4aaaa8b33d000573af80fe3e | [
"Apache-2.0"
] | null | null | null | Aven-core/src/math/vec2.cpp | icedmetal57/Aven | 3c33b74382a7a6ea4aaaa8b33d000573af80fe3e | [
"Apache-2.0"
] | null | null | null | #include "vec2.h"
namespace aven
{
namespace math
{
Vec2::Vec2()
{
x = 0.0f;
y = 0.0f;
}
Vec2::Vec2(const float& x, const float& y)
{
this->x = x;
this->y = y;
}
Vec2::Vec2(const Vec3& vector)
{
this->x = vector.x;
this->y = vector.y;
}
Vec2& Vec2::add(const Vec2& other)
{
... | 15.650685 | 68 | 0.565427 | icedmetal57 |
a4e94d09929308ce4eaadf2203ffed49ad2e6eec | 7,705 | hpp | C++ | include/fl/model/sensor/joint_sensor_id.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | include/fl/model/sensor/joint_sensor_id.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | include/fl/model/sensor/joint_sensor_id.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 28.537037 | 80 | 0.599351 | aeolusbot-tommyliu |
a4f4a5166c36b0f77e9c80e323c1733396bfd8c8 | 8,724 | cpp | C++ | examples/datatable.cpp | netcan/meta-value-list | 772bb0c091a5b5ea6070f7c6e4f5503d1fccb26a | [
"MIT"
] | 24 | 2021-11-05T16:24:57.000Z | 2021-11-08T11:18:02.000Z | examples/datatable.cpp | netcan/meta-value-list | 772bb0c091a5b5ea6070f7c6e4f5503d1fccb26a | [
"MIT"
] | null | null | null | examples/datatable.cpp | netcan/meta-value-list | 772bb0c091a5b5ea6070f7c6e4f5503d1fccb26a | [
"MIT"
] | null | null | null | //
// Created by netcan on 2021/11/7.
//
#include <meta-list/type.hpp>
#include <meta-list/algorithm.hpp>
#include <cstdint>
#include <concepts>
#include <bitset>
#include <algorithm>
#include <cassert>
using namespace META_LIST_NS;
///////////////////////////////////////////////////////////////////////////////
// fo... | 37.766234 | 107 | 0.527052 | netcan |
a4f6bb9ad9743130fcd33b7f80151efa962de7ac | 625 | cpp | C++ | RG-Lab3/Neon/src/Scene/Components.cpp | FilipHusnjak/ComputerGraphics-Labs | 5f923735d2dbf9551675a704724e8a5d7128025a | [
"Apache-2.0"
] | 3 | 2021-01-23T20:19:55.000Z | 2021-01-25T16:15:46.000Z | RG-Lab3/Neon/src/Scene/Components.cpp | FilipHusnjak/ComputerGraphics-Labs | 5f923735d2dbf9551675a704724e8a5d7128025a | [
"Apache-2.0"
] | null | null | null | RG-Lab3/Neon/src/Scene/Components.cpp | FilipHusnjak/ComputerGraphics-Labs | 5f923735d2dbf9551675a704724e8a5d7128025a | [
"Apache-2.0"
] | null | null | null | //
// Created by Filip on 21.8.2020..
//
#include "Components.h"
#include <Renderer/VulkanRenderer.h>
Neon::WaterRenderer::WaterRenderer()
{
VulkanRenderer::CreateFrameBuffers(
refractionReflectionResolution, m_RefractionSampledColorTextureImage,
m_RefractionSampledDepthTextureImage, m_RefractionColorTextureImag... | 32.894737 | 71 | 0.8528 | FilipHusnjak |
a4f8b40e939cef7a84843f406d47ea39c2e4bb8c | 16,816 | cpp | C++ | Sources/SolarTears/Rendering/Vulkan/VulkanSharedDescriptorDatabaseBuilder.cpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | 4 | 2021-06-30T16:00:20.000Z | 2021-10-13T06:17:56.000Z | Sources/SolarTears/Rendering/Vulkan/VulkanSharedDescriptorDatabaseBuilder.cpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | Sources/SolarTears/Rendering/Vulkan/VulkanSharedDescriptorDatabaseBuilder.cpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | #include "VulkanSharedDescriptorDatabaseBuilder.hpp"
#include "VulkanDescriptors.hpp"
#include "VulkanSamplers.hpp"
#include "Scene/VulkanScene.hpp"
#include "VulkanUtils.hpp"
#include "VulkanFunctions.hpp"
#include <VulkanGenericStructures.h>
#include <span>
#include <vector>
#include <algorithm>
Vulkan::SharedDescri... | 46.711111 | 301 | 0.802212 | Sixshaman |
a4f8e48d27750830a388d1eb6fa4e9ceb463fc0a | 11,619 | cpp | C++ | src/main.cpp | mnltake/soracom_iotstarter_kit_for_arduino | cbb5baedcc13472c92aa3997b57df3677cec8e9c | [
"MIT"
] | null | null | null | src/main.cpp | mnltake/soracom_iotstarter_kit_for_arduino | cbb5baedcc13472c92aa3997b57df3677cec8e9c | [
"MIT"
] | null | null | null | src/main.cpp | mnltake/soracom_iotstarter_kit_for_arduino | cbb5baedcc13472c92aa3997b57df3677cec8e9c | [
"MIT"
] | 1 | 2021-02-10T04:05:51.000Z | 2021-02-10T04:05:51.000Z |
#include "main.h"
void setup() {
pinMode(LIGHTSENSORPIN, INPUT);
pinMode(SOUNDSENSORPIN, INPUT);
pinMode(VOLUMEPIN, INPUT);
pinMode(BUTTONPIN, INPUT);
pinMode(BG96_RESETPIN, OUTPUT);
pinMode(LED_BUILTIN, OUTPUT);
pinMode(LEDPIN, OUTPUT);
digitalWrite(BG96_RESETPIN, HIGH);//modem reset
u8x8.begin();
... | 23.760736 | 117 | 0.623031 | mnltake |
a4fa9de161df7de310b8f8ce01e2b2f4154d8155 | 682 | cpp | C++ | Source/Engine/Scene/Scene.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 291 | 2017-09-30T09:07:49.000Z | 2022-03-22T13:09:21.000Z | Source/Engine/Scene/Scene.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 12 | 2018-01-14T01:54:53.000Z | 2021-02-19T06:14:01.000Z | Source/Engine/Scene/Scene.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 16 | 2018-05-03T08:15:31.000Z | 2022-02-25T09:03:16.000Z | // Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
#include "Scene/Scene.h"
#include "Scene/Camera.h"
#include "Core/Log.h"
#include "Core/Assert.h"
using namespace Alimer;
void Scene::Register()
{
RegisterFactory<Scene>(... | 17.487179 | 97 | 0.652493 | amerkoleci |
a4faefb10fd7a4068cbfe7b05d43658a5133fc14 | 1,010 | hpp | C++ | include/apex/mixin/singleton.hpp | slurps-mad-rips/apex | 8d88e6167e460a74e2c42a4d11d7f8e70adb5102 | [
"Apache-2.0"
] | 4 | 2020-12-14T18:07:28.000Z | 2021-04-21T18:10:26.000Z | include/apex/mixin/singleton.hpp | slurps-mad-rips/apex | 8d88e6167e460a74e2c42a4d11d7f8e70adb5102 | [
"Apache-2.0"
] | 11 | 2020-07-21T03:27:10.000Z | 2021-03-22T20:24:44.000Z | include/apex/mixin/singleton.hpp | slurps-mad-rips/apex | 8d88e6167e460a74e2c42a4d11d7f8e70adb5102 | [
"Apache-2.0"
] | 3 | 2020-12-14T17:40:07.000Z | 2022-03-18T15:43:10.000Z | #ifndef APEX_MIXIN_SINGLETON_HPP
#define APEX_MIXIN_SINGLETON_HPP
#include <apex/core/concepts.hpp>
// This requires more work. The singleton<T> type should, honestly, be hidden
// behind a detail:: namespace. Additionally, this isn't really a mixin, is it?
namespace apex {
template <default_initializable T>
struct... | 25.897436 | 79 | 0.70495 | slurps-mad-rips |
a4fec632caff18d927af87f6ca59e8201feedb02 | 2,383 | cpp | C++ | source/Window.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | 3 | 2018-12-14T17:36:21.000Z | 2020-11-06T19:29:49.000Z | source/Window.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | null | null | null | source/Window.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | null | null | null |
#include "Window.hpp"
#include "Util.hpp"
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
// TODO TEMP includes to be moved
#include <SDL2/SDL_events.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h>
Window::Window() {
createBaseWindow();
setWidthHeight();
// _textureTarget ... | 29.060976 | 135 | 0.74444 | amanb014 |
350e5dd28931f6876f9da660c1cf7d1bf0fde934 | 7,962 | cpp | C++ | tutoriales_basicos/src/robot_cleaner_ios.cpp | lfzarazuaa/LiderSeguidorA | 5714ac3c025ab2f7b83f427004c05071ed3f3689 | [
"MIT"
] | 1 | 2020-05-09T23:07:36.000Z | 2020-05-09T23:07:36.000Z | tutoriales_basicos/src/robot_cleaner_ios.cpp | lfzarazuaa/LiderSeguidorA | 5714ac3c025ab2f7b83f427004c05071ed3f3689 | [
"MIT"
] | null | null | null | tutoriales_basicos/src/robot_cleaner_ios.cpp | lfzarazuaa/LiderSeguidorA | 5714ac3c025ab2f7b83f427004c05071ed3f3689 | [
"MIT"
] | null | null | null |
#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include "turtlesim/Pose.h"
#include <sstream>
ros::Publisher velocity_publisher;
ros::Subscriber pose_subscriber;
turtlesim::Pose turtlesim_pose;
using namespace std;
const double x_min = 0.0;
const double y_min = 0.0;
const double x_max = 11.0;
const double y_ma... | 29.164835 | 112 | 0.670686 | lfzarazuaa |
3512232f23d2202e09a7ba3ae318510366c305c3 | 513 | cpp | C++ | test/parser_unittest.cpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 7 | 2016-11-12T17:55:03.000Z | 2021-04-28T20:23:27.000Z | test/parser_unittest.cpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | null | null | null | test/parser_unittest.cpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 4 | 2015-05-12T13:51:54.000Z | 2020-06-07T22:01:28.000Z | #include "parseformula.h"
#include "logic/vocabulary.h"
#include "gtest/gtest.h"
#include <iostream>
using namespace sequoia;
TEST(ParserTests, ParserTest) {
Vocabulary *voc = new Vocabulary();
voc->add_symbol(new Symbol("adj", 2, false, 0));
Formula* res = NULL;
res = parse_file(voc, "parser_unittes... | 23.318182 | 52 | 0.664717 | sequoia-mso |
3518f496ffdae095bb56a78ce51c1156f596ecb5 | 231 | hpp | C++ | src/kalman/numerical.hpp | ENGN2912B-2018/EE-A | f3017265535b0f619c06f54167fd4b8939195a8f | [
"MIT"
] | null | null | null | src/kalman/numerical.hpp | ENGN2912B-2018/EE-A | f3017265535b0f619c06f54167fd4b8939195a8f | [
"MIT"
] | null | null | null | src/kalman/numerical.hpp | ENGN2912B-2018/EE-A | f3017265535b0f619c06f54167fd4b8939195a8f | [
"MIT"
] | null | null | null | #ifndef NUM_INT
#define NUM_INT
// Performs numerical integration on data.
// Implementation performs two stage integration where
// area is represented as
float * numerical_int(float* data);
#endif /* end of include guard: */
| 23.1 | 54 | 0.753247 | ENGN2912B-2018 |
3519db8d64709170a19c33f9b3a7447d56648ded | 813 | cpp | C++ | test/unit/math/opencl/prim/divide_test.cpp | tiagocabaco/math | 1b300c592b680fbfde289f08dc75d1da9c61901d | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/opencl/prim/divide_test.cpp | tiagocabaco/math | 1b300c592b680fbfde289f08dc75d1da9c61901d | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/opencl/prim/divide_test.cpp | tiagocabaco/math | 1b300c592b680fbfde289f08dc75d1da9c61901d | [
"BSD-3-Clause"
] | null | null | null | #ifdef STAN_OPENCL
#include <stan/math/prim.hpp>
#include <stan/math/opencl/opencl.hpp>
#include <gtest/gtest.h>
#include <algorithm>
#define EXPECT_MATRIX_NEAR(A, B, DELTA) \
for (int i = 0; i < A.size(); i++) \
EXPECT_NEAR(A(i), B(i), DELTA);
TEST(MathMatrixCL, divide_exception_pass) {
stan::math::matrix... | 29.035714 | 71 | 0.664207 | tiagocabaco |
3523f3f3378b03f88908215cd6b157ba958a4f36 | 2,591 | cpp | C++ | Engine/src/engine/Object.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | 2 | 2015-04-21T05:36:12.000Z | 2017-04-16T19:31:26.000Z | Engine/src/engine/Object.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | Engine/src/engine/Object.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | /*
-----------------------------------------------------------------------------
KG game engine (http://katoun.github.com/kg_engine) is made available under the MIT License.
Copyright (c) 2006-2013 Catalin Alexandru Nastase
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... | 22.530435 | 92 | 0.710536 | katoun |
3524f93c5154338efa1b3be6badc23ff0e0fe496 | 4,469 | hpp | C++ | Nacro/SDK/FN_PlayerZoneTeamScoreContributionWidget_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_PlayerZoneTeamScoreContributionWidget_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_PlayerZoneTeamScoreContributionWidget_classes.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
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass PlayerZoneTeamScor... | 95.085106 | 663 | 0.741105 | Milxnor |
352b5c20dc5d8dff5f960434d8b520a665fde2d0 | 50 | hpp | C++ | src/boost_mpl_map_aux__value_type_impl.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_map_aux__value_type_impl.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_map_aux__value_type_impl.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/map/aux_/value_type_impl.hpp>
| 25 | 49 | 0.8 | miathedev |
352d80f37ef171785ef7ad40b04d619efa20c252 | 234 | cpp | C++ | libraries/chain/required_action_evaluator.cpp | DunnCreativeSS/ccd | 83531f2c902a7e8bea351c86c4ca0e4b03820d5b | [
"MIT"
] | 1 | 2021-09-02T16:09:26.000Z | 2021-09-02T16:09:26.000Z | libraries/chain/required_action_evaluator.cpp | DunnCreativeSS/ccd | 83531f2c902a7e8bea351c86c4ca0e4b03820d5b | [
"MIT"
] | null | null | null | libraries/chain/required_action_evaluator.cpp | DunnCreativeSS/ccd | 83531f2c902a7e8bea351c86c4ca0e4b03820d5b | [
"MIT"
] | null | null | null | #include <CreateCoin/chain/required_action_evaluator.hpp>
namespace CreateCoin { namespace chain {
#ifdef IS_TEST_NET
void example_required_evaluator::do_apply( const example_required_action& a ) {}
#endif
} } //CreateCoin::chain | 21.272727 | 80 | 0.794872 | DunnCreativeSS |
352fea63e27040680eb3f800049e7b5a9b271d69 | 3,707 | cpp | C++ | src/dxvk/dxvk_buffer_res.cpp | 0x8080/dxvk | 92f3648efab8406924a5737e8f988a07d5923826 | [
"Zlib"
] | 3 | 2018-10-06T19:02:08.000Z | 2021-06-27T16:17:08.000Z | src/dxvk/dxvk_buffer_res.cpp | 0x8080/dxvk | 92f3648efab8406924a5737e8f988a07d5923826 | [
"Zlib"
] | null | null | null | src/dxvk/dxvk_buffer_res.cpp | 0x8080/dxvk | 92f3648efab8406924a5737e8f988a07d5923826 | [
"Zlib"
] | null | null | null | #include "dxvk_buffer_res.h"
namespace dxvk {
DxvkPhysicalBuffer::DxvkPhysicalBuffer(
const Rc<vk::DeviceFn>& vkd,
const DxvkBufferCreateInfo& createInfo,
DxvkMemoryAllocator& memAlloc,
VkMemoryPropertyFlags memFlags)
: m_vkd(vkd) {
VkBufferCreateInfo info;
info.sTy... | 37.07 | 108 | 0.683032 | 0x8080 |
3533e969325f4ed52fad605a7ee812258dd6ac42 | 6,451 | cpp | C++ | src/SolarFlare.cpp | bitwitch/Prototype | c05e9c9fb5cf862de8d907354bd068d6191d9e19 | [
"MIT"
] | 73 | 2015-02-01T17:58:34.000Z | 2022-02-07T07:49:16.000Z | src/SolarFlare.cpp | bitwitch/Prototype | c05e9c9fb5cf862de8d907354bd068d6191d9e19 | [
"MIT"
] | 1 | 2018-06-05T19:48:54.000Z | 2018-06-05T20:48:22.000Z | src/SolarFlare.cpp | bitwitch/Prototype | c05e9c9fb5cf862de8d907354bd068d6191d9e19 | [
"MIT"
] | 24 | 2015-02-09T02:04:39.000Z | 2022-02-01T01:41:22.000Z | #include "SolarFlare.h"
#include "Engine.h"
SolarFlare::SolarFlare()
{
IsActive = false;
fRotation = 0;
}
//================================================================================================//
/*******************
** SolarFlare spawn **
********************/
//========================... | 28.170306 | 107 | 0.486281 | bitwitch |
3536989b267560ba80054d3d9240397e51b16f34 | 1,653 | cpp | C++ | tests/test-semaphore.cpp | fabricetriboix/semaphore | dc2f4c2a9a74444ccdb2396535151f3031d7805a | [
"Unlicense"
] | null | null | null | tests/test-semaphore.cpp | fabricetriboix/semaphore | dc2f4c2a9a74444ccdb2396535151f3031d7805a | [
"Unlicense"
] | null | null | null | tests/test-semaphore.cpp | fabricetriboix/semaphore | dc2f4c2a9a74444ccdb2396535151f3031d7805a | [
"Unlicense"
] | null | null | null | #include "semaphore.hpp"
#include <thread>
#include <gtest/gtest.h>
TEST(Semaphore, ShouldUnlockThread)
{
ft::semaphore_t sem;
bool taken = false;
std::thread thread(
[&sem, &taken] ()
{
sem.take();
taken = true;
});
std::this_thread... | 22.04 | 63 | 0.554749 | fabricetriboix |
35389fb30feba5bd78465f1e56266cfcd2103ea7 | 4,663 | cpp | C++ | CodeChef/ZCO12002.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | CodeChef/ZCO12002.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | CodeChef/ZCO12002.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*Zonal Computing Olympiad 2012, 26 Nov 2011
The year is 2102 and today is the day of ZCO. This year there are N contests and the starting and ending times of each contest is known to you. You have to participate in exactly one of these contests. Different contests may overlap. The duration of different contests might... | 47.581633 | 669 | 0.706627 | ravirathee |
353ac9d1d17a5367243aac930a018d9b13b8fa09 | 4,886 | cpp | C++ | edbee-lib/edbee/io/baseplistparser.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 445 | 2015-01-04T16:30:56.000Z | 2022-03-30T02:27:05.000Z | edbee-lib/edbee/io/baseplistparser.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 305 | 2015-01-04T09:20:03.000Z | 2020-10-01T08:45:45.000Z | edbee-lib/edbee/io/baseplistparser.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 49 | 2015-02-14T01:43:38.000Z | 2022-02-15T17:03:55.000Z | /**
* Copyright 2011-2013 - Reliable Bits Software by Blommers IT. All Rights Reserved.
* Author Rick Blommers
*/
#include <QXmlStreamReader>
#include "baseplistparser.h"
#include "edbee/debug.h"
namespace edbee {
/// The constructor for the parser
BasePListParser::BasePListParser()
: xml_(0)
{
}
/// the... | 25.989362 | 131 | 0.618707 | UniSwarm |
353c7d55f37ba983aec143863a84dbc06f12c221 | 1,391 | cpp | C++ | src/vulkan/vulkan_shader_module.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_shader_module.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_shader_module.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #include "vulkan_shader_module.hpp"
#include "instrumentor.hpp"
#include "vulkan_check.hpp"
namespace cl::vulkan {
#pragma warning(push)
#pragma warning(disable : 26812)
VkShaderModule CreateShaderModule(VulkanContextData* context, const SpvCode& code) {
CALCIUM_PROFILE_FUNCTION();
VkShaderModuleCreateInfo cre... | 35.666667 | 100 | 0.774982 | zfccxt |
353d18d45d1acd3e1aa99afe5e78bb2fc842bc3b | 39,662 | cpp | C++ | source/comms/comm_files.cpp | jfbucas/PION | e0a66aa301e4d94d581ba4df078f1a3b82faab99 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T11:31:22.000Z | 2020-12-05T13:30:03.000Z | source/comms/comm_files.cpp | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | null | null | null | source/comms/comm_files.cpp | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T14:33:19.000Z | 2022-03-07T10:29:34.000Z | /// \file comm_files.cc
///
/// \brief Contains comms class for multi-process communication using
/// files (no MPI!).
///
/// \author Jonathan Mackey
/// \date 2009-01-27.
///
/// Modifications:\n
/// - 2010.11.15 JM: replaced endl with c-style newline chars.
/// - 2012.05.15 JM: Added function for global-reduce (m... | 29.099046 | 111 | 0.592507 | jfbucas |
3542eef550492727ca54c2222b5051f2f954fdb4 | 1,841 | cpp | C++ | solutions_cpp/implement_a_trie.cpp | aaishikasb/Leetcoding | c6ad25486716d43c780d840cc80aa20ef51a8674 | [
"MIT"
] | null | null | null | solutions_cpp/implement_a_trie.cpp | aaishikasb/Leetcoding | c6ad25486716d43c780d840cc80aa20ef51a8674 | [
"MIT"
] | null | null | null | solutions_cpp/implement_a_trie.cpp | aaishikasb/Leetcoding | c6ad25486716d43c780d840cc80aa20ef51a8674 | [
"MIT"
] | null | null | null | class TrieNode
{
public:
// Initialize your data structure here.
TrieNode()
{
value = 0;
for (int i = 0; i < 26; i++)
{
children[i] = NULL;
}
}
int value;
TrieNode *children[26];
};
class Trie
{
public:
Trie()
{
root = new TrieNode();
... | 19.378947 | 50 | 0.380228 | aaishikasb |
35458d36a7d6d8d181867df91720f28259cb00f7 | 1,504 | hpp | C++ | atom/trader/trader.hpp | liu1009xf/atom | ec8b9fad38d0fb3da7eecf87d30c314d1bf09fef | [
"MIT"
] | null | null | null | atom/trader/trader.hpp | liu1009xf/atom | ec8b9fad38d0fb3da7eecf87d30c314d1bf09fef | [
"MIT"
] | null | null | null | atom/trader/trader.hpp | liu1009xf/atom | ec8b9fad38d0fb3da7eecf87d30c314d1bf09fef | [
"MIT"
] | null | null | null | #ifndef ATOM_AGENT_TRADER_TRADER_HPP
#define ATOM_AGENT_TRADER_TRADER_HPP
#include <optional>
#include "atom/basic/validator/trival.hpp"
#include "atom/basic/authoriser/trival.hpp"
#include "atom/basic/visitor/event_notify.hpp"
#include "atom/basic.hpp"
namespace atom::detail
{
template<typename S>
class Tra... | 23.873016 | 59 | 0.59375 | liu1009xf |
35472d54e677bc1ac6f6edb0853c907727035317 | 139 | cpp | C++ | Seagull-Core/src/Platform/DirectX/DirectX12Resource.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | Seagull-Core/src/Platform/DirectX/DirectX12Resource.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | Seagull-Core/src/Platform/DirectX/DirectX12Resource.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | #include "sgpch.h"
#include "DirectX12Resource.h"
namespace SG
{
void DirectX12Resource::Reset() noexcept
{
m_Resource.Reset();
}
} | 11.583333 | 41 | 0.705036 | ILLmew |
3547b7068ef2429cd731e5cdceeaf9ab4d8919a1 | 1,283 | cpp | C++ | code/130.solve.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | 1 | 2020-10-04T13:39:34.000Z | 2020-10-04T13:39:34.000Z | code/130.solve.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | null | null | null | code/130.solve.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<bool>> st;
int n, m;
void solve(vector<vector<char>>& board) {
if (board.empty()) return;
n = board.size(), m = board[0].size();
for (int i = 0; i < n; i ++ )
{
vector<bool> temp;
for (int j = 0; j < m; j ++ )
... | 28.511111 | 86 | 0.342167 | T1mzhou |
3549564aef53060f99c1c79219133d07a0e204b3 | 2,267 | cpp | C++ | HW3/hw3-5/hw3-5.cpp | Liuian/1101_DATA-STRUCTURE | 303b8aa903f53abc9d5ec83f19432ebc5a7cfca4 | [
"MIT"
] | 1 | 2022-01-15T08:28:18.000Z | 2022-01-15T08:28:18.000Z | HW3/hw3-5/hw3-5.cpp | Liuian/1101_DATA-STRUCTURE | 303b8aa903f53abc9d5ec83f19432ebc5a7cfca4 | [
"MIT"
] | null | null | null | HW3/hw3-5/hw3-5.cpp | Liuian/1101_DATA-STRUCTURE | 303b8aa903f53abc9d5ec83f19432ebc5a7cfca4 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <fstream>
#include <queue>
using namespace std;
//use these variable in the funvtion, so we set these as global variable
queue<int> q;
int numOfVertex;
fstream OutputFile;
void bfs(int startVertex, int *adjMatrix[numOfVertex], int visited[numOfVertex], string output){
... | 27.987654 | 119 | 0.669607 | Liuian |
354b906765d5682a15358115eefd1cc000d8b264 | 9,549 | hpp | C++ | src/base/include/vector3.hpp | N4G170/generic | 29c8be184b1420b811e2a3db087f9bd6b76ed8bf | [
"MIT"
] | null | null | null | src/base/include/vector3.hpp | N4G170/generic | 29c8be184b1420b811e2a3db087f9bd6b76ed8bf | [
"MIT"
] | null | null | null | src/base/include/vector3.hpp | N4G170/generic | 29c8be184b1420b811e2a3db087f9bd6b76ed8bf | [
"MIT"
] | null | null | null | #ifndef VECTOR2_HPP
#define VECTOR2_HPP
#include <type_traits>
#include <cmath>
#include <utility>
#include <string>
template<typename T = float>
class Vector3
{
private:
T m_x;
T m_y;
T m_z;
public:
//check if we initialize the vector with the right values
static_asse... | 46.130435 | 149 | 0.549901 | N4G170 |
354c1fa53e88e8298ccecfb890f2dc4be2371dae | 1,308 | cpp | C++ | Pdf/pdfix_sdk_example_cpp-master/src/SetFieldFlags.cpp | laoola/ProjectCode | 498a66cb9274f6bb7cca0d6e6052304d61740ba2 | [
"Unlicense"
] | 1 | 2021-08-23T05:56:09.000Z | 2021-08-23T05:56:09.000Z | Pdf/pdfix_sdk_example_cpp-master/src/SetFieldFlags.cpp | laoola/ProjectCode | 498a66cb9274f6bb7cca0d6e6052304d61740ba2 | [
"Unlicense"
] | null | null | null | Pdf/pdfix_sdk_example_cpp-master/src/SetFieldFlags.cpp | laoola/ProjectCode | 498a66cb9274f6bb7cca0d6e6052304d61740ba2 | [
"Unlicense"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
// SetFieldFlags.cpp
// Copyright (c) 2018 Pdfix. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#include "pdfixsdksamples/SetFieldFlags.h"
#i... | 28.434783 | 100 | 0.54893 | laoola |
35582b2e8bbcc290d9d2afa28e9e0cc3132a2925 | 634 | cpp | C++ | 01. Easy/01. Array/04. Contains_Duplicate.cpp | premnaaath/leetcode-TIQ | 90f9d7216b596dc42fe0d559f3ecdaa448b258d1 | [
"MIT"
] | null | null | null | 01. Easy/01. Array/04. Contains_Duplicate.cpp | premnaaath/leetcode-TIQ | 90f9d7216b596dc42fe0d559f3ecdaa448b258d1 | [
"MIT"
] | null | null | null | 01. Easy/01. Array/04. Contains_Duplicate.cpp | premnaaath/leetcode-TIQ | 90f9d7216b596dc42fe0d559f3ecdaa448b258d1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
bool containsDuplicate(vector<int> &nums)
{
vector<int> hash;
for (int i = 0; i < nums.size(); ++i)
{
if (find(hash.begin(), hash.end(), nums[i]) != hash.end())
return true;
hash.push_back(nums[i]);
}
r... | 18.114286 | 66 | 0.525237 | premnaaath |
35587bd723ed42e65f1974b2e909e96c587437d2 | 239 | hpp | C++ | source/sill/pch.hpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 15 | 2018-02-26T08:20:03.000Z | 2022-03-06T03:25:46.000Z | source/sill/pch.hpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 32 | 2018-02-26T08:26:38.000Z | 2020-09-12T17:09:38.000Z | source/sill/pch.hpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | null | null | null | #include "../pch-glm.hpp"
#include "../pch-stl.hpp"
#include <nlohmann/json.hpp>
#include <lava/chamber.hpp>
#include <lava/core.hpp>
#include <lava/crater.hpp>
#include <lava/dike.hpp>
#include <lava/flow.hpp>
#include <lava/magma.hpp>
| 19.916667 | 28 | 0.702929 | Breush |
355b887f43bd38238ead0a4d55a9248f2b8367f0 | 59 | hpp | C++ | src/boost_log_sources_exception_handler_feature.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_log_sources_exception_handler_feature.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_log_sources_exception_handler_feature.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/log/sources/exception_handler_feature.hpp>
| 29.5 | 58 | 0.847458 | miathedev |
355b91ea50f25298a24aa7675e5271290de9c2fb | 5,199 | cpp | C++ | master/core/third/cxxtools/src/atomicity.gcc.arm.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/cxxtools/src/atomicity.gcc.arm.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/cxxtools/src/atomicity.gcc.arm.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z | /*
* Copyright (C) 2006 by Marc Boris Duerner
* Copyright (C) 2006 by Aloysius Indrayanto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or... | 30.052023 | 85 | 0.43643 | importlib |
355c5704f28eb9b687953ab62c2c64f6939c0d58 | 4,952 | cpp | C++ | benchmark/ordering.cpp | zborffs/AsterionEngine | 029624cba19cd7fbc407bb24b9beb33efd089c5b | [
"MIT"
] | 1 | 2018-12-29T10:39:56.000Z | 2018-12-29T10:39:56.000Z | benchmark/ordering.cpp | zborffs/AsterionEngine | 029624cba19cd7fbc407bb24b9beb33efd089c5b | [
"MIT"
] | 3 | 2021-11-12T06:44:46.000Z | 2021-11-12T06:47:56.000Z | benchmark/ordering.cpp | zborffs/AsterionEngine | 029624cba19cd7fbc407bb24b9beb33efd089c5b | [
"MIT"
] | null | null | null | /// Project Includes
#include "defines.hpp"
#include "globals.hpp"
#include "board.hpp"
#include "chess_clock.hpp"
#include "search.hpp"
#include "book.hpp"
/// Standard Library Includes
#include <iostream>
#include <string>
/// Third-Party Includes
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks... | 34.388889 | 157 | 0.651454 | zborffs |
356276796716b69838e68ef804051aacab68b05f | 200 | hpp | C++ | falcon/mpl/size_fwd.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/mpl/size_fwd.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/mpl/size_fwd.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_MPL_SIZE_FWD_HPP
#define FALCON_MPL_SIZE_FWD_HPP
namespace falcon { namespace mpl {
template< typename Tag > struct size_impl;
template< typename Sequence > struct size;
}}
#endif
| 16.666667 | 42 | 0.79 | jonathanpoelen |
8319f1d5bedc12d9ab7aa418fc40c026b81a2057 | 7,356 | cpp | C++ | src/main.cpp | kirillochnev/ecs-benchmark | ea8feea0e0d449982f6f365e641142840c297109 | [
"MIT"
] | null | null | null | src/main.cpp | kirillochnev/ecs-benchmark | ea8feea0e0d449982f6f365e641142840c297109 | [
"MIT"
] | null | null | null | src/main.cpp | kirillochnev/ecs-benchmark | ea8feea0e0d449982f6f365e641142840c297109 | [
"MIT"
] | null | null | null | #include <mustache/ecs/ecs.hpp>
#include <entt/entt.hpp>
#include <entityx/entityx.h>
#include "components.hpp"
#include <numeric>
#include <iostream>
constexpr uint32_t entity_count = 10000000;
constexpr uint32_t create_iterations = 10;
constexpr uint32_t run_iterations = 100;
class BenchMark {
public:
templa... | 31.982609 | 124 | 0.597336 | kirillochnev |
831a13e1d158bb902034c78d8a868e59025c1d1b | 1,581 | cpp | C++ | 001-100/005-Longest_Palindromic_Substring-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | 1 | 2018-10-02T22:44:52.000Z | 2018-10-02T22:44:52.000Z | 001-100/005-Longest_Palindromic_Substring-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | 001-100/005-Longest_Palindromic_Substring-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | // Given a string s, find the longest palindromic substring in s. You may assume
// that the maximum length of s is 1000.
// Example:
// Input: "babad"
// Output: "bab"
// Note: "aba" is also a valid answer.
// Example:
// Input: "cbbd"
// Output: "bb"
// TODO: Manacher's algorithm
// expand from center
class Solutio... | 26.35 | 80 | 0.510436 | ysmiles |
831a2a4d4620a949eaaa8ee2292b85bc9c88f507 | 32,373 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/AnimatingButtonsMenu/animating_buttons_menu_icons_game_2d_tiny.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/AnimatingButtonsMenu/animating_buttons_menu_icons_game_2d_tiny.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/AnimatingButtonsMenu/animating_buttons_menu_icons_game_2d_tiny.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _animating_buttons_menu_icons_game_2d_tiny[] LOCATION_EXTFLASH_ATTRIBUTE = { // 40x40 ARGB8888 pixels.
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,... | 250.953488 | 320 | 0.797146 | ramkumarkoppu |
831cdbbdec94c1b39855143515fe2e3bb97ba6ca | 76,056 | cpp | C++ | src/ui95/chandler.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/ui95/chandler.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/ui95/chandler.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include <cISO646>
#include <windows.h>
#include <process.h>
#include "dispcfg.h"
#include "chandler.h"
#include "sim/include/ascii.h"
// OW needed for restoring textures after task switch
#include "graphics/include/texbank.h"
#include "graphics/include/fartex.h"
#include "graphics/include/terrtex.h"
#define UI_ABS(... | 25.729364 | 245 | 0.497909 | Terebinth |
831e7e56b36e0dd9fd1cb10bb3a9a06ac1264b1f | 61 | cc | C++ | src/eic_evgen/main.cc | sjdkay/DEMPgen | 36279b9890e53d9e803e5c2757a220a86ebb605d | [
"MIT"
] | 1 | 2020-03-04T19:48:54.000Z | 2020-03-04T19:48:54.000Z | src/eic_evgen/main.cc | sjdkay/DEMPgen | 36279b9890e53d9e803e5c2757a220a86ebb605d | [
"MIT"
] | 1 | 2022-03-07T21:30:26.000Z | 2022-03-07T21:30:26.000Z | src/eic_evgen/main.cc | sjdkay/DEMPgen | 36279b9890e53d9e803e5c2757a220a86ebb605d | [
"MIT"
] | 3 | 2022-03-07T21:19:40.000Z | 2022-03-10T15:37:25.000Z | #include "eic.h"
int main() {
eic();
return 0;
}
| 5.545455 | 16 | 0.459016 | sjdkay |
8321db9f6a1a01e249c3f0e445aeeb7018c1c8a3 | 2,055 | cpp | C++ | Source/System/Graphics/DX11/Texture/TextureArrayDX11.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | 2 | 2020-01-09T07:48:24.000Z | 2020-01-09T07:48:26.000Z | Source/System/Graphics/DX11/Texture/TextureArrayDX11.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | Source/System/Graphics/DX11/Texture/TextureArrayDX11.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | #include "TextureArrayDX11.hpp"
#include "../../../Core/Utility/CoreDef.hpp"
#include "../../Common/Texture/TextureArrayCommon.hpp"
#include "../../Common/Texture/TextureCommon.hpp"
namespace Engine5
{
TextureArrayDX11::TextureArrayDX11()
{
}
TextureArrayDX11::~TextureArrayDX11()
{
}
ID3... | 22.582418 | 92 | 0.603893 | arian153 |
832741fd3d7da97338e75d0ee0e82c0ee76c9c06 | 304 | cpp | C++ | console-tank-game/console-tank-game/tile_wall_crumbly.cpp | Amakazor/console-tank-game | e286aa49966f4a74832847caccc07fcf20db15f4 | [
"MIT"
] | 1 | 2019-10-04T09:28:13.000Z | 2019-10-04T09:28:13.000Z | console-tank-game/console-tank-game/tile_wall_crumbly.cpp | Amakazor/console-tank-game | e286aa49966f4a74832847caccc07fcf20db15f4 | [
"MIT"
] | null | null | null | console-tank-game/console-tank-game/tile_wall_crumbly.cpp | Amakazor/console-tank-game | e286aa49966f4a74832847caccc07fcf20db15f4 | [
"MIT"
] | 1 | 2019-10-10T20:58:26.000Z | 2019-10-10T20:58:26.000Z | #include "tile_wall_crumbly.h"
tile_wall_crumbly::tile_wall_crumbly():tile::tile()
{
tile::type = "Destructible Wall";
tile::symbol = (char)197;
tile::passable = false;
tile::ap_cost = 0;
tile::cover = 100;
tile::destructible = true;
tile::hp = 2;
tile::after_destruct_type = "tile_rubble";
} | 19 | 51 | 0.690789 | Amakazor |
8328023d760996d39d2d37fee8a1613a473ec5a6 | 4,139 | cpp | C++ | med/roads_in_hackerland/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | med/roads_in_hackerland/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | med/roads_in_hackerland/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string solve(int n, int m, map<int, set<int>> &edges,
map<pair<int, int>, int> &costs);
int main() {
int n, m;
cin >> n >> m;
// cout << n << " " << m << endl;
map<int, set<int>> edges;
map<pair<int, int>, int> costs;
for (int i = 0; ... | 26.196203 | 78 | 0.467746 | exbibyte |
832a5c71b100835572246cc052f74958ccc5647c | 1,622 | cpp | C++ | cpp/LocoThread.cpp | jbitoniau/SensorMonitor | f6d425bc331a0df364a15e654bbc90267cfae5aa | [
"MIT"
] | null | null | null | cpp/LocoThread.cpp | jbitoniau/SensorMonitor | f6d425bc331a0df364a15e654bbc90267cfae5aa | [
"MIT"
] | null | null | null | cpp/LocoThread.cpp | jbitoniau/SensorMonitor | f6d425bc331a0df364a15e654bbc90267cfae5aa | [
"MIT"
] | null | null | null | #include "LocoThread.h"
#ifdef _WIN32
#include <assert.h>
#include <Windows.h>
#else
#include <time.h>
#endif
namespace Loco
{
#ifdef _WIN32
class ThreadInitializer
{
public:
ThreadInitializer()
{
// Sets the minimum timer resolution to the minimum available on this machine
// This is use... | 23.507246 | 85 | 0.709618 | jbitoniau |
832c1b165169753b50de1c8469a2ca25d15ef4a6 | 1,688 | cpp | C++ | src/Input_pattern_class.cpp | fercer/artificial_neural_network | 5425310965f16cee7e84b19783764e6c5e05b3ff | [
"MIT"
] | null | null | null | src/Input_pattern_class.cpp | fercer/artificial_neural_network | 5425310965f16cee7e84b19783764e6c5e05b3ff | [
"MIT"
] | null | null | null | src/Input_pattern_class.cpp | fercer/artificial_neural_network | 5425310965f16cee7e84b19783764e6c5e05b3ff | [
"MIT"
] | null | null | null | #include "Input_pattern_class.h"
Input_pattern::Input_pattern()
{
input_pointer = NULL;
global_node_index = 0;
}
Input_pattern::Input_pattern(const unsigned int src_global_node_index)
{
input_pointer = NULL;
global_node_index = src_global_node_index;
}
Input_pattern::Input_pattern(const Input_pattern & src_... | 19.402299 | 118 | 0.783768 | fercer |
832d6505c9cb7b0909110140c6ceee68d8fd3fa4 | 310 | cpp | C++ | login_form/FormSplash.cpp | gcf89/qt_learn | ebb2a6f3b56779c93a2514bd1ff9596bb347353a | [
"Artistic-2.0"
] | null | null | null | login_form/FormSplash.cpp | gcf89/qt_learn | ebb2a6f3b56779c93a2514bd1ff9596bb347353a | [
"Artistic-2.0"
] | null | null | null | login_form/FormSplash.cpp | gcf89/qt_learn | ebb2a6f3b56779c93a2514bd1ff9596bb347353a | [
"Artistic-2.0"
] | null | null | null | #include "FormSplash.h"
#include "ui_FormSplash.h"
FormSplash::FormSplash(QWidget *parent) :
QWidget(parent),
ui(new Ui::FormSplash)
{
ui->setupUi(this);
setWindowFlags(Qt::FramelessWindowHint);
ui->label->setPixmap(QPixmap(":/icons/icons/Logo.png"));
}
FormSplash::~FormSplash()
{
delete ui;
}
| 17.222222 | 58 | 0.703226 | gcf89 |
83394b1e0c965eb2b5dccd7c105539abc03f071a | 708 | cpp | C++ | test/containers/sequences/array/array.tuple/tuple_size.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 1,244 | 2015-01-02T21:08:56.000Z | 2022-03-22T21:34:16.000Z | test/containers/sequences/array/array.tuple/tuple_size.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 125 | 2015-01-22T01:08:00.000Z | 2020-05-25T08:28:17.000Z | test/containers/sequences/array/array.tuple/tuple_size.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 124 | 2015-01-12T15:06:17.000Z | 2022-03-26T07:48:53.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 24.413793 | 80 | 0.430791 | caiohamamura |
834311a88cc9d47a1be2e758bc15aae36d2a25c1 | 44,942 | cc | C++ | src/outlinermath.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 4 | 2021-09-02T16:52:23.000Z | 2022-02-07T16:39:50.000Z | src/outlinermath.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 87 | 2021-09-12T06:09:57.000Z | 2022-02-15T00:05:43.000Z | src/outlinermath.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 1 | 2021-09-28T21:38:30.000Z | 2021-09-28T21:38:30.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
//
// CCC AAA V V ... | 36.657423 | 134 | 0.598349 | jariarkko |
8346580da28577cf886a6b790c76954016dbae04 | 502 | cpp | C++ | src/Game/zAnimList.cpp | stravant/bfbbdecomp | 2126be355a6bb8171b850f829c1f2731c8b5de08 | [
"OLDAP-2.7"
] | 1 | 2021-01-05T11:28:55.000Z | 2021-01-05T11:28:55.000Z | src/Game/zAnimList.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | null | null | null | src/Game/zAnimList.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | 1 | 2022-03-30T15:15:08.000Z | 2022-03-30T15:15:08.000Z | #include "zAnimList.h"
#include <types.h>
// func_8004E7E0
#pragma GLOBAL_ASM("asm/Game/zAnimList.s", "AlwaysConditional__FP15xAnimTransitionP11xAnimSinglePv")
// func_8004E7E8
#pragma GLOBAL_ASM("asm/Game/zAnimList.s", "zAnimListInit__Fv")
// func_8004EB44
#pragma GLOBAL_ASM("asm/Game/zAnimList.s", "zAnimListExit_... | 26.421053 | 100 | 0.784861 | stravant |
834f5bc52c56b23ab32e5ce48f569ce18e7ab568 | 98 | cpp | C++ | ECS/src/provided/Component/MonoBehaviourComponent.cpp | MichielCuijpers/Starfarm | 560786282e105be043807820eee400db461d18f6 | [
"MIT"
] | null | null | null | ECS/src/provided/Component/MonoBehaviourComponent.cpp | MichielCuijpers/Starfarm | 560786282e105be043807820eee400db461d18f6 | [
"MIT"
] | null | null | null | ECS/src/provided/Component/MonoBehaviourComponent.cpp | MichielCuijpers/Starfarm | 560786282e105be043807820eee400db461d18f6 | [
"MIT"
] | null | null | null | //
// Created by TipLa on 14/04/2019.
//
#include "MonoBehaviourComponent.hpp"
namespace ecs
{}
| 10.888889 | 37 | 0.693878 | MichielCuijpers |
8354e51f173c69843a14551cf2691f141420432c | 2,464 | cpp | C++ | graph-source-code/237-E/2433613.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/237-E/2433613.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/237-E/2433613.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: MS C++
#pragma comment(linker,"/STACK:300000000")
#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:4800)
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <iomanip>
#include <memory.h>
#include <cstdio>... | 18.666667 | 68 | 0.54789 | AmrARaouf |
835a747f269830c3b3245f29ebb08b70fc80b85b | 117 | cpp | C++ | cpp/backup/Thread/ThreadManager.cpp | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/backup/Thread/ThreadManager.cpp | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/backup/Thread/ThreadManager.cpp | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | #include "ThreadManager.h"
ThreadManager::ThreadManager()
{
}
ThreadManager::~ThreadManager()
{
}
| 8.357143 | 32 | 0.623932 | cheukw |
835b124c3b6021f9168b2075b5aab6c9388004f8 | 1,979 | hpp | C++ | include/common/tsqueue.hpp | AlexandruIca/NetworkMessages | 07a822d046d0e593b9310536327ec614ff20601e | [
"Unlicense"
] | null | null | null | include/common/tsqueue.hpp | AlexandruIca/NetworkMessages | 07a822d046d0e593b9310536327ec614ff20601e | [
"Unlicense"
] | null | null | null | include/common/tsqueue.hpp | AlexandruIca/NetworkMessages | 07a822d046d0e593b9310536327ec614ff20601e | [
"Unlicense"
] | null | null | null | #ifndef NET_COMMON_TSQUEUE_HPP
#define NET_COMMON_TSQUEUE_HPP
#pragma once
#include <cstddef>
#include <deque>
#include <mutex>
#include <utility>
namespace net {
template<typename T>
class tsqueue
{
private:
mutable std::mutex m_mutex;
std::deque<T> m_queue;
public:
tsqueue() = default;
tsqueue(tsq... | 21.988889 | 61 | 0.586155 | AlexandruIca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.