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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff2b230465ab648c9a9854158832d8bd9fac4b5c | 6,908 | cpp | C++ | libraries/plugins/blockchain_history/account_history_api.cpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/plugins/blockchain_history/account_history_api.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/plugins/blockchain_history/account_history_api.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #include <scorum/blockchain_history/account_history_api.hpp>
#include <scorum/blockchain_history/blockchain_history_plugin.hpp>
#include <scorum/blockchain_history/schema/history_object.hpp>
#include <scorum/app/api_context.hpp>
#include <scorum/app/application.hpp>
#include <scorum/blockchain_history/schema/operation_... | 39.474286 | 119 | 0.633324 | scorum |
ff2beaf5448ece984586455a7d66ca52923bf014 | 876 | cpp | C++ | src/RocketEngine/component/TransformComponent.cpp | walthill/Rocket3D | 45ba128699b354f21db04f4b114c81504c8e0771 | [
"Apache-2.0"
] | null | null | null | src/RocketEngine/component/TransformComponent.cpp | walthill/Rocket3D | 45ba128699b354f21db04f4b114c81504c8e0771 | [
"Apache-2.0"
] | 3 | 2019-12-07T01:28:17.000Z | 2020-02-05T16:57:33.000Z | src/RocketEngine/component/TransformComponent.cpp | walthill/Rocket3D | 45ba128699b354f21db04f4b114c81504c8e0771 | [
"Apache-2.0"
] | null | null | null | #include "TransformComponent.h"
TransformComponent::TransformComponent(const ComponentId & id) :
Component(id)
{
}
TransformComponent::~TransformComponent()
{
}
void TransformComponent::setPosition(rkm::Vector3 pos)
{
mTransformData.position = pos;
mDataChanged = true;
}
void TransformComponent::setData(const Tr... | 22.461538 | 76 | 0.78653 | walthill |
ff321bb1d9038f5ec7a212fb06087a5dcd36877a | 106 | hpp | C++ | testCMake/src/testComp.hpp | demotomohiro/testCMakePackage | 171fb4c97b752eaaecec5660cb63289eb01919e9 | [
"MIT"
] | null | null | null | testCMake/src/testComp.hpp | demotomohiro/testCMakePackage | 171fb4c97b752eaaecec5660cb63289eb01919e9 | [
"MIT"
] | null | null | null | testCMake/src/testComp.hpp | demotomohiro/testCMakePackage | 171fb4c97b752eaaecec5660cb63289eb01919e9 | [
"MIT"
] | null | null | null | #pragma once
#include "testcomp_export.h"
class TESTCOMP_EXPORT testComp {
public:
void print();
};
| 11.777778 | 32 | 0.716981 | demotomohiro |
ff3e881f63e2cc149bfccdc1e99e2eb6df9736b8 | 719 | cpp | C++ | state/state/Source1.cpp | katookei/cs202-18apcs3-group5 | 2ea17d891c67b740cc6f612e4f7738ec2c5c5f14 | [
"MIT"
] | null | null | null | state/state/Source1.cpp | katookei/cs202-18apcs3-group5 | 2ea17d891c67b740cc6f612e4f7738ec2c5c5f14 | [
"MIT"
] | null | null | null | state/state/Source1.cpp | katookei/cs202-18apcs3-group5 | 2ea17d891c67b740cc6f612e4f7738ec2c5c5f14 | [
"MIT"
] | null | null | null | #include "Header.h"
#include <string>
baseState* Morning::getnext()
{
return new Evening;
}
string Morning::getName()
{
return "morning";
}
string Evening::getName()
{
return "evening";
}
string Night::getName()
{
return "night";
}
baseState* Evening::getnext()
{
return new Night;
... | 12.186441 | 40 | 0.595271 | katookei |
ff42273a8490925f5ceee78c80f17ab26cc1d323 | 4,470 | cc | C++ | examples/coin.cc | joshbosley/lib_netsockets | 931fb54993c5873cf2e621ee230b57c2345b667b | [
"Apache-2.0"
] | 1 | 2021-02-16T10:05:24.000Z | 2021-02-16T10:05:24.000Z | examples/coin.cc | joshbosley/lib_netsockets | 931fb54993c5873cf2e621ee230b57c2345b667b | [
"Apache-2.0"
] | null | null | null | examples/coin.cc | joshbosley/lib_netsockets | 931fb54993c5873cf2e621ee230b57c2345b667b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include "coin.hh"
/////////////////////////////////////////////////////////////////////////////////////////////////////
//currency_t::currency_t
///////////////////////////////////////////////////////////////////////////... | 28.471338 | 101 | 0.485235 | joshbosley |
ff436588cbe0f27fde9e6c99d66505ed48581ecb | 3,530 | cpp | C++ | ogsr_engine/Layers/xrRenderPC_R1/Blender_Vertex_aref.cpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 247 | 2018-11-02T18:50:55.000Z | 2022-03-15T09:11:43.000Z | ogsr_engine/Layers/xrRenderPC_R1/Blender_Vertex_aref.cpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 193 | 2018-11-02T20:12:44.000Z | 2022-03-07T13:35:17.000Z | ogsr_engine/Layers/xrRenderPC_R1/Blender_Vertex_aref.cpp | stepa2/OGSR-Engine | 32a23aa30506684be1267d9c4fc272350cd167c5 | [
"Apache-2.0"
] | 106 | 2018-10-26T11:33:01.000Z | 2022-03-19T12:34:20.000Z | // Blender_Vertex_aref.cpp: implementation of the CBlender_Vertex_aref class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#pragma hdrstop
#include "Blender_Vertex_aref.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destructi... | 28.24 | 123 | 0.639377 | stepa2 |
ff43980396f6f059c1657875a6da097910af0caf | 4,880 | hpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/directory.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/directory.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/directory.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | #ifndef NALL_DIRECTORY_HPP
#define NALL_DIRECTORY_HPP
#include <nall/intrinsics.hpp>
#include <nall/sort.hpp>
#include <nall/string.hpp>
#include <nall/vector.hpp>
#if defined(PLATFORM_WINDOWS)
#include <nall/windows/utf8.hpp>
#else
#include <dirent.h>
#include <stdio.h>
#include <sys/types.h>
#endif
namespa... | 31.688312 | 108 | 0.628893 | redscientistlabs |
ff45138950bb3bf10ac006e14d17faee17de66a0 | 533 | cpp | C++ | Sources/Overload/OvCore/src/OvCore/Scripting/LuaBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 755 | 2019-07-10T01:26:39.000Z | 2022-03-31T12:43:19.000Z | Sources/Overload/OvCore/src/OvCore/Scripting/LuaBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 111 | 2020-02-28T23:30:10.000Z | 2022-01-18T13:57:30.000Z | Sources/Overload/OvCore/src/OvCore/Scripting/LuaBinder.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 97 | 2019-11-06T15:19:56.000Z | 2022-03-25T08:40:04.000Z | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#include "OvCore/Scripting/LuaBinder.h"
#include "OvCore/Scripting/LuaMathsBinder.h"
#include "OvCore/Scripting/LuaActorBinder.h"
#include "OvCore/Scripting/LuaComponentBinder.h"
#include "OvCore/Scripting/LuaGlobalsBinder.h"
void OvCore::Scriptin... | 24.227273 | 70 | 0.767355 | kmqwerty |
ff49c19e404fbc5d75388a4ef788048adb4623a6 | 4,688 | cpp | C++ | main.cpp | kambala-decapitator/MpqSimpleIO | 922ab66d923d6abf654dd8c3e178dc263a1cb215 | [
"MIT"
] | 1 | 2018-11-21T10:16:02.000Z | 2018-11-21T10:16:02.000Z | main.cpp | kambala-decapitator/MpqSimpleIO | 922ab66d923d6abf654dd8c3e178dc263a1cb215 | [
"MIT"
] | null | null | null | main.cpp | kambala-decapitator/MpqSimpleIO | 922ab66d923d6abf654dd8c3e178dc263a1cb215 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
#include <StormLib/StormLib.h>
using std::cerr;
using std::endl;
using std::string;
int main(int argc, const char *argv[])
{
if (argc < 3)
{
cerr << "min 2 params" << endl;
return 1;
}
auto mode = argv[1];
auto isListMode = ... | 33.014085 | 179 | 0.527944 | kambala-decapitator |
ff500333886de0d1b87de76fd1659a0a1ab75b8b | 1,218 | cpp | C++ | OptionPricer01/OptionPricer01/Option01.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | OptionPricer01/OptionPricer01/Option01.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | OptionPricer01/OptionPricer01/Option01.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | //
// Option01.cpp
// OptionPricer01
//
// Created by wu yen sun on 2022/2/11.
//
#include "Option01.h"
#include "BinomialTreeModel.h"
#include <iostream>
#include <cmath>
using namespace std;
namespace fre
{
double PriceByCRR(double S0, double U, double D, double R, int N, double K)
{
double q = R... | 21 | 79 | 0.449097 | b01703020 |
ff52b8ed5b5cc14d74b0833aa29d1ba74fd14811 | 157 | cpp | C++ | Level 1/Calculs et decouverte des variables/Kermesse/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 31 | 2018-10-30T09:54:23.000Z | 2022-03-02T21:45:51.000Z | Level 1/Calculs et decouverte des variables/Kermesse/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 2 | 2016-12-24T23:39:20.000Z | 2017-07-02T22:51:28.000Z | Level 1/Calculs et decouverte des variables/Kermesse/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 30 | 2018-10-25T12:28:36.000Z | 2022-01-31T14:31:02.000Z | #include <iostream>
using namespace std;
int main()
{
int sum=0;
for(int i=1;i<=50;++i)
{
sum+=i;
cout<<sum<<endl;
}
return 0;
} | 11.214286 | 25 | 0.509554 | Wurlosh |
ff54160d545f8d65ef7661dacd855f07d56bd12e | 402 | cpp | C++ | AtCoder/colopl2018-qual/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/colopl2018-qual/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/colopl2018-qual/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n, x; cin >> n >> x;
string s; cin >> s;
long long int ans = 0;
for (int i = 0; i < n; i++) {
int a; cin >> a;
if (s[i] == '1') {
if (a > x) ans += x;
... | 20.1 | 33 | 0.435323 | H-Tatsuhiro |
ff55a97d4f141d2ae3e2b184cc06e3e7b29a2026 | 1,052 | cpp | C++ | DSA Crack Sheet/solutions/Subarray with 0 sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | DSA Crack Sheet/solutions/Subarray with 0 sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | DSA Crack Sheet/solutions/Subarray with 0 sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2021-08-11T06:36:42.000Z | 2021-08-11T06:36:42.000Z | /*
Subarray with 0 sum
====================
Given an array of positive and negative numbers. Find if there is a subarray (of size at-least one) with 0 sum.
Example 1:
Input:
5
4 2 -3 1 6
Output:
Yes
Explanation:
2, -3, 1 is the subarray
with sum 0.
Example 2:
Input:
5
4 2 0 1 6
Output:
Yes
Explanation:
0 is one... | 19.849057 | 237 | 0.668251 | Akshad7829 |
ff57a99bb4bbd37f02a0fa6dac69a3ce2ee8ef6f | 60 | cpp | C++ | Windows/VS2017/vtkIOVeraOut/vtkIOVeraOut.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkIOVeraOut/vtkIOVeraOut.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkIOVeraOut/vtkIOVeraOut.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | #include "vtkIOVeraOut.h"
vtkIOVeraOut::vtkIOVeraOut()
{
}
| 10 | 28 | 0.733333 | WinBuilds |
ff58813ebd02fdad515b5e0e27403d28a48bd47e | 1,168 | cpp | C++ | solved/dominant striung(10745).cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/dominant striung(10745).cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/dominant striung(10745).cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct goutom
{
char a[11];
int len;
}roy[15005];
bool flag[15005];
long c=0;
int comp1(const void *A,const void *B)
{
goutom *x=(goutom*)A;
goutom *y=(goutom*)B;
return(x->len-y->len);
}
int comp2(const void *A,const void *B)
{
char *x=(char*)A;
char *y=(... | 14.243902 | 42 | 0.507705 | goutomroy |
ff5cd031a0f3ce32a8e1b4b29210d7403975e3fe | 118 | cpp | C++ | libraries/chain/rate_limiting.cpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | 3 | 2018-01-18T07:12:34.000Z | 2018-01-22T10:00:29.000Z | libraries/chain/rate_limiting.cpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | null | null | null | libraries/chain/rate_limiting.cpp | betterchainio/betterchain | 29f82c25ae6812beaf09f8d7069932474bea9f8b | [
"MIT"
] | 2 | 2018-01-30T01:03:10.000Z | 2019-02-28T09:04:06.000Z | #include <betterchain/chain/rate_limiting.hpp>
namespace betterchain { namespace chain {
} } /// betterchain::chain
| 19.666667 | 46 | 0.754237 | betterchainio |
ff61fc705f65b24f5a78b3d5a011a0bc1723588b | 1,174 | cc | C++ | src/kmer/KmerIntPair.cc | mgtools/kmerLSHSA | dcd17a00cb9a0b8ab8a14e822a894722ae8f52a1 | [
"Intel",
"MIT"
] | null | null | null | src/kmer/KmerIntPair.cc | mgtools/kmerLSHSA | dcd17a00cb9a0b8ab8a14e822a894722ae8f52a1 | [
"Intel",
"MIT"
] | null | null | null | src/kmer/KmerIntPair.cc | mgtools/kmerLSHSA | dcd17a00cb9a0b8ab8a14e822a894722ae8f52a1 | [
"Intel",
"MIT"
] | null | null | null | #include <cstdlib>
#include "Kmer.h"
#include "KmerIntPair.h"
KmerIntPair::KmerIntPair(const Kmer &km, uint32_t val) {
SetKey(km);
SetVal(val);
}
void KmerIntPair::SetVal(const uint32_t val) {
//char val8 = (val > 0xFF) ? 0xFF : (char)val;
//memcpy(&this->v + KmerIntPair::IntOffset, &val8, sizeof(uint8_t))... | 26.681818 | 83 | 0.697615 | mgtools |
ff621cc1b7e09aa5b246d87787c1ce738e2a1a8a | 1,733 | cpp | C++ | done/revegetate(1).cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/revegetate(1).cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/revegetate(1).cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ii pair<int, int>
#define ll long long
#define vi vector<int>
#define vc vector<char>
#define pb push_back
#define rz resize
#define mp make_pair
#define f first
#define s second
#define FOR(n) for (int i = 0; i <... | 19.91954 | 56 | 0.448932 | birdhumming |
ff62b279e9daf74ffb0fafc797a4e900bc7bba43 | 1,325 | hpp | C++ | src/include/Serialization.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | src/include/Serialization.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | src/include/Serialization.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | #ifndef __SERIALIZATION_H__
#define __SERIALIZATION_H__
#include <map>
#include <unordered_map>
#include <string>
#include <cereal/cereal.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/unordered_map.hpp>
#include <cereal/archives/binary.hpp>
template<typename Contain... | 25.980392 | 89 | 0.76 | coetaur0 |
ff6bb205209b4365523602d463211594dbb9d585 | 1,546 | cpp | C++ | src/systems/systemmanager.cpp | lfowles/polarbear | 3c008b3560a7b24c9e985bff0166650fd981e8a7 | [
"MIT"
] | null | null | null | src/systems/systemmanager.cpp | lfowles/polarbear | 3c008b3560a7b24c9e985bff0166650fd981e8a7 | [
"MIT"
] | null | null | null | src/systems/systemmanager.cpp | lfowles/polarbear | 3c008b3560a7b24c9e985bff0166650fd981e8a7 | [
"MIT"
] | null | null | null | #include <polarbear/systems/systemmanager.hpp>
void SystemManager::AddSystem(std::shared_ptr<System>& system)
{
systems.push_back(std::move(system));
};
void SystemManager::AddSystem(std::shared_ptr<System>&& system)
{
systems.push_back(std::move(system));
};
void SystemManager::AddSystem(System*&& system)
{... | 25.344262 | 172 | 0.677878 | lfowles |
ff6c88f69489274d6befffab8f4071b630e516e9 | 7,761 | cpp | C++ | UEngine/UEngine/Game Architecture/Object/Component/Material.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | null | null | null | UEngine/UEngine/Game Architecture/Object/Component/Material.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | 4 | 2021-03-12T06:11:36.000Z | 2021-03-19T11:09:06.000Z | UEngine/UEngine/Game Architecture/Object/Component/Material.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | null | null | null | #include "UEngine.h"
#include "Material.h"
void UEngine::Material::Awake()
{
colorBuffer = DXRenderer::DXConstantBuffer::Instantiate
(
GetGameObject()->GetScene()->ResourceManager.GetNextCBufferID(),
DXRenderer::Get(),
GetGameObject()->GetScene()->ResourceManager.GetCBufferPreset(typeid(Color).raw_name())
);
... | 40.212435 | 125 | 0.768329 | yus1108 |
ff6f2098a03899851322502b167fe797341fbfe9 | 856 | cpp | C++ | libraries/chain/chronicler.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | libraries/chain/chronicler.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | libraries/chain/chronicler.cpp | joticajulian/koinos-chain | b5db60b427ebb97dabf1acf8108e94bbc75a46d4 | [
"MIT"
] | null | null | null | #include <koinos/chain/chronicler.hpp>
namespace koinos::chain {
void chronicler::set_session( std::shared_ptr< abstract_chronicler_session > s )
{
_session = s;
}
void chronicler::push_event( protocol::event_data&& ev )
{
ev.set_sequence( _seq_no );
bool within_session = false;
if ( auto session = _ses... | 19.454545 | 80 | 0.661215 | joticajulian |
ff7238226c23eeb1e27a7abe7bf5ae38d12c630d | 225 | cpp | C++ | src/RE/Misc/FixedStrings.cpp | fireundubh/CommonLibSSE-po3 | cf30265f3cd3aa70a8eeff4d598754439e983ddd | [
"MIT"
] | 1 | 2021-08-30T20:33:43.000Z | 2021-08-30T20:33:43.000Z | src/RE/Misc/FixedStrings.cpp | fireundubh/CommonLibSSE-po3 | cf30265f3cd3aa70a8eeff4d598754439e983ddd | [
"MIT"
] | null | null | null | src/RE/Misc/FixedStrings.cpp | fireundubh/CommonLibSSE-po3 | cf30265f3cd3aa70a8eeff4d598754439e983ddd | [
"MIT"
] | null | null | null | #include "RE/Misc/FixedStrings.h"
namespace RE
{
FixedStrings* FixedStrings::GetSingleton()
{
using func_t = decltype(&FixedStrings::GetSingleton);
REL::Relocation<func_t> func{ REL::ID(11308) };
return func();
}
} | 18.75 | 55 | 0.706667 | fireundubh |
ff77a1e1532c4ce464df064e38c48546750665be | 3,812 | cpp | C++ | asteroid/src/wrapper_glfw.cpp | Rekfuki/asteroidOpenGL | 691ec2b2877d146d9b4a312dac894b2e8dafc014 | [
"MIT"
] | 1 | 2021-08-02T02:26:53.000Z | 2021-08-02T02:26:53.000Z | asteroid/src/wrapper_glfw.cpp | Rekfuki/asteroidOpenGL | 691ec2b2877d146d9b4a312dac894b2e8dafc014 | [
"MIT"
] | null | null | null | asteroid/src/wrapper_glfw.cpp | Rekfuki/asteroidOpenGL | 691ec2b2877d146d9b4a312dac894b2e8dafc014 | [
"MIT"
] | 1 | 2021-08-02T02:27:11.000Z | 2021-08-02T02:27:11.000Z | /**
wrapper_glfw.cpp
Modified from the OpenGL GLFW example to provide a wrapper GLFW class
and to include shader loader functions to include shaders as text files
Iain Martin August 2014
*/
#include "wrapper_glfw.h"
/* Inlcude some standard headers */
#include <iostream>
#include <fstream>
#include <vect... | 26.289655 | 108 | 0.729538 | Rekfuki |
ff7ade7c513008408294aa07a14e81873e322f55 | 302 | cpp | C++ | Codeforces/707A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/707A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/707A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<stdio.h>
using namespace std;
int main(){
int x, y, i;
char t;
bool bnw = true;
scanf("%d %d", &x, &y);
for(i=0; i<x*y; i++){
scanf(" %c", &t);
if(t!='B' && t!='W' && t!='G') bnw=false;
}
printf(bnw ? "#Black&White\n" : "#Color\n");
return 0;
}
| 20.133333 | 49 | 0.440397 | DT3264 |
ff7d4872d694567e752c3fcfa7090f7cfcda4718 | 4,670 | cpp | C++ | Source/WebCore/svg/SVGMPathElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | Source/WebCore/svg/SVGMPathElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/svg/SVGMPathElement.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007 Eric Seidel <eric@webkit.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*... | 31.554054 | 135 | 0.750107 | ijsf |
ff7ebf7b323e30d1a6a7139e29f0fb281f3510ac | 5,047 | hpp | C++ | include/matrix.hpp | blockahead/CGMRES_cpp | 13a44e0022fbda6ab85b2d04131c230668197859 | [
"MIT"
] | 2 | 2021-12-21T09:03:04.000Z | 2022-03-31T11:02:53.000Z | include/matrix.hpp | blockahead/CGMRES_cpp | 13a44e0022fbda6ab85b2d04131c230668197859 | [
"MIT"
] | null | null | null | include/matrix.hpp | blockahead/CGMRES_cpp | 13a44e0022fbda6ab85b2d04131c230668197859 | [
"MIT"
] | null | null | null | #pragma once
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define DEBUG_MODE
// ret = vec
inline void mov(double* ret, const double* vec, const int16_t row) {
int16_t i;
for (i = 0; i < row; i++) {
ret[i] = vec[i];
}
}
// ret = mat
inline void mov(double* ret, const double* ... | 22.53125 | 125 | 0.513176 | blockahead |
ff7fb9690e8d8095f4c504153fef19bbb2ad433f | 43,691 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimInfiltrationOrVentilation_RoomAirSettings_UnderFloorAirDistributionExterior.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimInfiltrationOrVentilation_RoomAirSettings_UnderFloorAirDistributionExterior.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimInfiltrationOrVentilation_RoomAirSettings_UnderFloorAirDistributionExterior.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 55.375158 | 256 | 0.784418 | EnEff-BIM |
ff81008893ca08c20159b89ea87eb5b18719f820 | 1,013 | cpp | C++ | 802.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 802.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 802.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
vector<int> eventualSafeNodes(vector<vector<int>>& graph) {
bool finish = false;
vector<bool> outed(graph.size(), false);
while(!finish){
finish = true;
map<int,bool> zeroout;
for(int i = 0; i < graph.size(); i++){
... | 27.378378 | 63 | 0.358342 | zfang399 |
ff82459288558066e464c5d47a60109a8bf0da7d | 12,545 | cpp | C++ | source/Networking.cpp | MrPh1l/RocketPlugin | dab038ee6cd448df05805d894f45abefabbeeec3 | [
"MIT"
] | null | null | null | source/Networking.cpp | MrPh1l/RocketPlugin | dab038ee6cd448df05805d894f45abefabbeeec3 | [
"MIT"
] | null | null | null | source/Networking.cpp | MrPh1l/RocketPlugin | dab038ee6cd448df05805d894f45abefabbeeec3 | [
"MIT"
] | null | null | null | // Networking.cpp
// General networking calls for the RocketPlugin plugin.
//
// Author: Stanbroek
// Version: 0.6.3 15/7/20
#include "Networking.h"
#pragma comment(lib,"Ws2_32.lib")
#include <WinSock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#pragma comment(lib, "iphlpapi.lib")
#include <regex>
/... | 29.940334 | 142 | 0.612914 | MrPh1l |
ff85d5202952e4ee43c758bcdeb18564c49a3419 | 4,627 | cpp | C++ | AngioLib/Segment.cpp | ltedgar-ed/AngioFE_original | 2a57f8dfec3bc31aa63bf33719359676899bbb2a | [
"MIT"
] | null | null | null | AngioLib/Segment.cpp | ltedgar-ed/AngioFE_original | 2a57f8dfec3bc31aa63bf33719359676899bbb2a | [
"MIT"
] | null | null | null | AngioLib/Segment.cpp | ltedgar-ed/AngioFE_original | 2a57f8dfec3bc31aa63bf33719359676899bbb2a | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////
// Segment.cpp
///////////////////////////////////////////////////////////////////////
// Include:
#include "stdafx.h"
#include "Segment.h"
#include "vect3.h"
#include "angio3d.h"
//////////////////////////////////////////////////... | 26.289773 | 236 | 0.376054 | ltedgar-ed |
ff8c88d46d362fdb777526683db6658185e2c709 | 1,168 | cpp | C++ | cf/Div2/D/Good Sequences/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/D/Good Sequences/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/D/Good Sequences/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
ios_base::sync_with_stdio(false);
// Disable automatic flush of cout when reading from cin cin.tie(0);
cin.tie(0);
int n;
cin >> n;
vector<pai... | 23.836735 | 72 | 0.472603 | wdjpng |
ff8cd1ddb41d789a274b35ed9e4c6a3ebe0e7d0c | 478 | cc | C++ | page_240_44.cc | coder52/Cpp-Primer-Solutions-2013 | e68d8a8cd4f12b1dbc269b152d955b5ebcf6d9aa | [
"MIT"
] | null | null | null | page_240_44.cc | coder52/Cpp-Primer-Solutions-2013 | e68d8a8cd4f12b1dbc269b152d955b5ebcf6d9aa | [
"MIT"
] | 42 | 2021-08-08T10:36:33.000Z | 2021-08-29T20:35:37.000Z | page_240_44.cc | coder52/Cpp-Primer-Solutions-2013 | e68d8a8cd4f12b1dbc269b152d955b5ebcf6d9aa | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace::std;
/* Page 240
Exercise 6.44: Rewrite the isShorter function from § 6.2.2 (p. 211) to be inline.
*/
// Put inline and constexpr Functions in Header Files.
inline const string &
shorterString(const string &s1, const string &s2){
return s1.size() <= s2.size... | 17.703704 | 82 | 0.661088 | coder52 |
ff8e893e905ad43b8b7ed22cc92087f7c96b1b96 | 3,824 | cpp | C++ | host_runtimes/linux_no_cma_test/test_ops.cpp | thenextged/uRDAI | 119742ba032588586653d83937999b497c0a1ee9 | [
"Apache-2.0"
] | 3 | 2020-07-15T07:31:25.000Z | 2020-07-15T07:31:29.000Z | host_runtimes/linux_no_cma_test/test_ops.cpp | thenextged/uRDAI | 119742ba032588586653d83937999b497c0a1ee9 | [
"Apache-2.0"
] | null | null | null | host_runtimes/linux_no_cma_test/test_ops.cpp | thenextged/uRDAI | 119742ba032588586653d83937999b497c0a1ee9 | [
"Apache-2.0"
] | null | null | null | #include "rdai_api.h"
// ================= DATA
extern RDAI_Platform clockwork_platform;
static RDAI_Device clockwork_device = {
{ 1 },
{
{ "aha" },
{ "halide_hardware" },
{ "conv_3_3_clockwork" },
1
},
&clockwork_platform,
NULL,
1
};
static RDAI_Device *clockw... | 24.512821 | 95 | 0.667103 | thenextged |
ff91193a900bc6e04002c3c74880441102d4350f | 4,956 | cpp | C++ | arduino-ntpd/GPSTimeSource.cpp | jonsl/arduino_sntp | b19220e877dcd64edc4b4c47ca9e00585abaed2b | [
"MIT"
] | 5 | 2020-12-17T13:07:46.000Z | 2021-09-02T16:48:44.000Z | arduino-ntpd/GPSTimeSource.cpp | jonsl/arduino_sntp | b19220e877dcd64edc4b4c47ca9e00585abaed2b | [
"MIT"
] | null | null | null | arduino-ntpd/GPSTimeSource.cpp | jonsl/arduino_sntp | b19220e877dcd64edc4b4c47ca9e00585abaed2b | [
"MIT"
] | 1 | 2019-02-25T09:40:09.000Z | 2019-02-25T09:40:09.000Z | /*
* File: GPSTimeSource.cpp
* Description:
* A time source that reads the time from a NMEA-compliant GPS receiver.
* Author: Mooneer Salem <mooneer@gmail.com>
* License: New BSD License
*/
#include "config.h"
#ifdef ETH_RX_PIN
#include "utility/w5100.h"
#endif // ETH_RX_PIN
#include "GPSTimeSource.h"
#inclu... | 30.592593 | 124 | 0.622074 | jonsl |
ff93253ed2e202bae31bc1427bd09cdbc0d4b6bb | 4,565 | cpp | C++ | Projects/Core/EditContext.cpp | krisl/quip | a386f8bcecf59de9e9c7a6d6d8c077e49b72fb19 | [
"MIT"
] | null | null | null | Projects/Core/EditContext.cpp | krisl/quip | a386f8bcecf59de9e9c7a6d6d8c077e49b72fb19 | [
"MIT"
] | null | null | null | Projects/Core/EditContext.cpp | krisl/quip | a386f8bcecf59de9e9c7a6d6d8c077e49b72fb19 | [
"MIT"
] | 1 | 2020-07-11T22:45:16.000Z | 2020-07-11T22:45:16.000Z | #include "EditContext.hpp"
#include "Document.hpp"
#include "EditMode.hpp"
#include "JumpMode.hpp"
#include "Location.hpp"
#include "Mode.hpp"
#include "NormalMode.hpp"
#include "SearchMode.hpp"
#include "Selection.hpp"
#include "Transaction.hpp"
#include <memory>
namespace quip {
EditContext::EditContext(PopupSer... | 29.836601 | 144 | 0.679956 | krisl |
9112f5c47f4427c3c13786e2b27717a063c7a58a | 481 | hpp | C++ | core/engine/inc/engine/component/GlBlendMaterialComponent.hpp | rawbby/WS20-CG-Pra-Dungeon-Crawler | 4c1b372649a92fb08b8908054d82624ae2b68af5 | [
"MIT"
] | null | null | null | core/engine/inc/engine/component/GlBlendMaterialComponent.hpp | rawbby/WS20-CG-Pra-Dungeon-Crawler | 4c1b372649a92fb08b8908054d82624ae2b68af5 | [
"MIT"
] | null | null | null | core/engine/inc/engine/component/GlBlendMaterialComponent.hpp | rawbby/WS20-CG-Pra-Dungeon-Crawler | 4c1b372649a92fb08b8908054d82624ae2b68af5 | [
"MIT"
] | null | null | null | #pragma once
#include <engine/component/GlRenderComponent.hpp>
#include <engine/component/GlMaterialComponent.hpp>
#include <array>
namespace engine::component
{
/**
* Needed textures for OpenGl to render a object
* with multiple materials.
* Up to three materials are supported.
*/
struct... | 21.863636 | 52 | 0.669439 | rawbby |
91152d89bb1862b8e43622a4d3530c3269697936 | 10,518 | cpp | C++ | test/unit/detail/protocol/null_bitmap_traits.cpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | 1 | 2021-03-07T20:45:35.000Z | 2021-03-07T20:45:35.000Z | test/unit/detail/protocol/null_bitmap_traits.cpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | null | null | null | test/unit/detail/protocol/null_bitmap_traits.cpp | sehe/mysql | 53da045c2c2c0f347ccd82888920d39d11f3f7a4 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019-2021 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// 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/mysql/detail/protocol/null_bitmap_traits.hpp"
#include "test_... | 37.166078 | 99 | 0.699848 | sehe |
91176873d0a36a54867dd4ff301e820abc49303d | 32,254 | hpp | C++ | iguana/reflection.hpp | yangxingpping/iguana | bc11d40347e972f5ffcaa7289163f1012d6c8c41 | [
"Apache-2.0"
] | 621 | 2017-03-12T08:49:01.000Z | 2022-03-31T09:33:06.000Z | iguana/reflection.hpp | IndignantAngel/iguana | 84849c3fba55fdf85edf2a600175961f5fcc7973 | [
"Apache-2.0"
] | 43 | 2017-03-13T01:40:18.000Z | 2022-02-21T16:13:50.000Z | iguana/reflection.hpp | IndignantAngel/iguana | 84849c3fba55fdf85edf2a600175961f5fcc7973 | [
"Apache-2.0"
] | 174 | 2017-02-09T02:00:30.000Z | 2022-03-31T09:33:08.000Z | //
// Created by Qiyu on 17-6-5.
//
#ifndef IGUANA_REFLECTION_HPP
#define IGUANA_REFLECTION_HPP
#include <iostream>
#include <sstream>
#include <string>
#include <tuple>
#include <iomanip>
#include <map>
#include <vector>
#include <array>
#include <type_traits>
#include <functional>
#include <string_view>
#include "d... | 65.159596 | 130 | 0.73163 | yangxingpping |
911b5303fdd55db62e8eaa831a6fa25bf472e1a6 | 467 | cpp | C++ | solutions/IWaP5vb1.cpp | luyencode/cpp-solutions | 627397fb887654e9f5ee64cfb73d708f6f6706f7 | [
"MIT"
] | 60 | 2021-04-10T11:17:33.000Z | 2022-03-23T06:15:42.000Z | solutions/IWaP5vb1.cpp | letuankiet-29-10-2002/cpp-solutions | 7d9cddf211af54ff207da883b469f4ddd75d5916 | [
"MIT"
] | 1 | 2021-08-13T11:32:27.000Z | 2021-08-13T11:32:27.000Z | solutions/IWaP5vb1.cpp | letuankiet-29-10-2002/cpp-solutions | 7d9cddf211af54ff207da883b469f4ddd75d5916 | [
"MIT"
] | 67 | 2021-04-10T17:32:50.000Z | 2022-03-23T15:50:17.000Z | /*
Sưu tầm bởi @nguyenvanhieuvn
Thực hành nhiều bài tập hơn tại https://luyencode.net/
*/
#include<stdio.h>
#include<conio.h>
float Tinh(float x)
{
float ketqua;
if(x >= 5)
ketqua = 2 * x * x + 5 * x + 9;
else
ketqua = -2 * x * x + 4 * x - 9;
return ketqua;
}
int main()
{
floa... | 16.103448 | 56 | 0.518201 | luyencode |
911dda215577af18a10fa68681fec3b0cdf9b744 | 8,752 | cpp | C++ | gpu/src/particleapp.cpp | Melodeathguy/ParticleSolver | 5cccb54454427029f3c05156854a3337369995e1 | [
"MIT"
] | 129 | 2015-07-06T16:57:03.000Z | 2022-02-25T08:34:29.000Z | gpu/src/particleapp.cpp | Melodeathguy/ParticleSolver | 5cccb54454427029f3c05156854a3337369995e1 | [
"MIT"
] | null | null | null | gpu/src/particleapp.cpp | Melodeathguy/ParticleSolver | 5cccb54454427029f3c05156854a3337369995e1 | [
"MIT"
] | 21 | 2015-07-07T05:52:08.000Z | 2021-06-07T02:28:05.000Z | /*
* This class controls helper classes for rendering and
* updating the particle system.
*
* Mouse events, key events, window sizing, timing updates,
* and render calls are all received by this application then
* passed to the corresponding render or particlesystem class.
*/
#include <cuda_runtime.h>
#include ... | 37.242553 | 146 | 0.650708 | Melodeathguy |
9122a62e3892015827bf4daa1971dee8079bf138 | 4,527 | cc | C++ | measure_statistics_in_data.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | measure_statistics_in_data.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | measure_statistics_in_data.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | //g++ measure_statistics_in_data.cc -o measure_statistics_in_data --std=c++17 -I extern/RobotsCore/include/ -O3 -Wall -pedantic -Wextra -Wshadow
#include "deserialize.hh"
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <filesystem>
namespace fs = std::filesystem;
#include <robots_... | 30.18 | 144 | 0.631986 | JackMaguire |
91273f09df8a64f484be59b2685f8d58bd24ab5d | 813 | hpp | C++ | TGEngine/io/Mouse.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/io/Mouse.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/io/Mouse.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../util/VectorUtil.hpp"
#include "../util/Annotations.hpp"
#include <glm/glm.hpp>
namespace tg_io {
/*
* These variables can be used to track the mouses position
*/
extern glm::vec2 pos;
extern glm::vec2 delta;
/*
* These variables can be used to check if the buttons are down;
*/
... | 21.972973 | 89 | 0.693727 | ThePixly |
912ee50bc6fea304044f5716f624130aa155d807 | 4,215 | hpp | C++ | test/inheritance.hpp | IRCAD/camp | fbbada73d6fd25c30f22a69f195c871757e362dd | [
"MIT"
] | 6 | 2017-12-27T03:13:29.000Z | 2021-01-04T15:07:18.000Z | test/inheritance.hpp | fw4spl-org/camp | e70eca1d2bf7f20df782dacc5d6baa51ce364e12 | [
"MIT"
] | 1 | 2021-10-19T14:03:39.000Z | 2021-10-19T14:03:39.000Z | test/inheritance.hpp | IRCAD/camp | fbbada73d6fd25c30f22a69f195c871757e362dd | [
"MIT"
] | 1 | 2019-08-30T15:20:46.000Z | 2019-08-30T15:20:46.000Z | /****************************************************************************
**
** This file is part of the CAMP library.
**
** The MIT License (MIT)
**
** Copyright (C) 2009-2014 TEGESO/TEGESOFT and/or its subsidiary(-ies) and mother company.
** Contact: Tegesoft Information (contact@tegesoft.com)
**
** Permission is... | 34.268293 | 90 | 0.599763 | IRCAD |
91342f9c3f6c57c5228ee5914a86e8334b981890 | 4,262 | hpp | C++ | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
// Copyright (C) 2008-2012 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 31.109489 | 149 | 0.725012 | HerrFroehlich |
9139519824739e375fe970eb2975f38416c31c21 | 4,381 | cpp | C++ | tasksexplorerd/task/system_helpers.cpp | astavonin/Tasks-Explorer | 3feb2d9a0a4694812de6aa895a809899c62fe5c1 | [
"BSD-3-Clause"
] | 40 | 2015-03-20T13:23:16.000Z | 2021-07-20T14:17:21.000Z | tasksexplorerd/task/system_helpers.cpp | varenc/Tasks-Explorer | 85558fad7dd48fd2f81bcc58193f5cb4a6aaf263 | [
"BSD-3-Clause"
] | 7 | 2016-08-01T21:01:25.000Z | 2018-04-28T10:34:03.000Z | tasksexplorerd/task/system_helpers.cpp | varenc/Tasks-Explorer | 85558fad7dd48fd2f81bcc58193f5cb4a6aaf263 | [
"BSD-3-Clause"
] | 9 | 2015-01-29T19:28:17.000Z | 2018-04-30T19:08:52.000Z | #include "system_helpers.h"
#include <stdio.h>
#include <utils.h>
#include <prettyprint.hpp>
#include <string>
namespace tasks
{
proc_info_vec build_tasks_list()
{
static size_t maxProcsCount = 500;
bool done = false;
proc_info_vec procs( maxProcsCount );
static const int name[] = {CTL_... | 27.904459 | 79 | 0.497375 | astavonin |
913af1bf9eb994c9987f4ae6755e8be3ee54b9ee | 8,601 | cpp | C++ | 3rdParty/iresearch/core/search/tfidf.cpp | specimen151/arangodb | 1a3a31dace16293426a19364eb4d93c8f17c0d68 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | 3rdParty/iresearch/core/search/tfidf.cpp | specimen151/arangodb | 1a3a31dace16293426a19364eb4d93c8f17c0d68 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | 3rdParty/iresearch/core/search/tfidf.cpp | specimen151/arangodb | 1a3a31dace16293426a19364eb4d93c8f17c0d68 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, All Rights Reserved
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a... | 25.371681 | 126 | 0.633531 | specimen151 |
913bcf95fe6d859ca7bb360d1e04594ce7e4686f | 3,234 | cpp | C++ | src/widgets/updater.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | src/widgets/updater.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | src/widgets/updater.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | #include "updaters.h"
#include "../impl.h"
#include "../inventories/inventory_utils.h"
#include "../menus/battle_menu/battle_menu_utils.h"
void battleSpellNameViewUpdater(CollectionWidget* self, Widget* widget, u16 flatIndex) {
if (self->collectionType != GridWidgetClass()) {
return;
}
auto typedPt... | 43.12 | 131 | 0.704391 | Kor-Hal |
913d013dea1393db53086d40db4c61179695401c | 2,314 | hh | C++ | include/G4NRFPtrLevelVector.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | 4 | 2020-06-28T02:18:53.000Z | 2022-01-17T07:54:31.000Z | include/G4NRFPtrLevelVector.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | 3 | 2018-08-16T18:49:53.000Z | 2020-10-19T18:04:25.000Z | include/G4NRFPtrLevelVector.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | null | null | null | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 43.660377 | 78 | 0.513397 | jvavrek |
913f225bc3f4b445f01494fe4359be3f599d914c | 599 | cpp | C++ | tools/pngbb.cpp | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | 9 | 2015-06-28T05:47:33.000Z | 2021-06-29T13:35:48.000Z | tools/pngbb.cpp | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | 5 | 2015-01-10T02:56:53.000Z | 2018-07-27T03:21:14.000Z | tools/pngbb.cpp | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | 3 | 2015-04-01T14:48:54.000Z | 2015-11-12T11:52:50.000Z | /*
* ./pngbb in.png out.png.
* Reads in.png and generates out.png which contains only the pixels
* in the bounding box of in.png, along with a private chunk containing the
* bounding box information (see ltWriteImage function).
*/
#include "lt.h"
int main(int argc, const char *argv[]) {
if (argc != 3) {
... | 26.043478 | 75 | 0.601002 | hemantasapkota |
913fd0228ee7e7f5e6a0caf4929b975cf235d293 | 2,726 | cpp | C++ | lib/lib_info.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 10 | 2017-12-21T05:20:40.000Z | 2021-09-18T05:14:01.000Z | lib/lib_info.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 2 | 2017-12-21T07:31:54.000Z | 2021-06-23T08:52:35.000Z | lib/lib_info.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 7 | 2016-02-17T13:20:31.000Z | 2021-11-08T09:30:43.000Z | /** @file "/owlcpp/lib/lib_info.cpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2012
*******************************************************************************/
#ifndef OWLCPP_SOURCE
#define OWLCPP_SOURCE
#endif
#inclu... | 25.961905 | 86 | 0.535216 | GreyMerlin |
91439ce4efbfbc3dd757cc7d00ea7d088f63defe | 870 | cpp | C++ | src/source/uselibhoard.cpp | dark0z/Hoard | 5afe855606e60ba255915d5cd816474815fc8844 | [
"ECL-2.0",
"Apache-2.0"
] | 827 | 2015-01-13T20:39:45.000Z | 2022-03-29T06:31:59.000Z | src/source/uselibhoard.cpp | dark0z/Hoard | 5afe855606e60ba255915d5cd816474815fc8844 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2015-01-25T21:37:58.000Z | 2022-03-15T09:10:24.000Z | src/source/uselibhoard.cpp | dark0z/Hoard | 5afe855606e60ba255915d5cd816474815fc8844 | [
"ECL-2.0",
"Apache-2.0"
] | 107 | 2015-01-19T20:41:53.000Z | 2022-01-25T16:30:38.000Z | /* -*- C++ -*- */
/*
The Hoard Multiprocessor Memory Allocator
www.hoard.org
Author: Emery Berger, http://www.emeryberger.com
Copyright (c) 1998-2020 Emery Berger
See the LICENSE file at the top-level directory of this
distribution and at http://github.com/emeryberger/Hoard.
*/
// Link this code with ... | 18.125 | 74 | 0.673563 | dark0z |
9144a4b4925780bf0db15600aae9e2f643a63e8b | 9,459 | cpp | C++ | Code/Libraries/Core/src/windowwrapper.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Core/src/windowwrapper.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Core/src/windowwrapper.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "windowwrapper.h"
#include "mathcore.h"
#if BUILD_WINDOWS_NO_SDL
#include <Windows.h>
#endif
#include <stdio.h>
#include <proto/dos.h>
#if BUILD_SDL
#ifdef PANDORA
#include <SDL2/SDL.h>
#else
#include "SDL2/SDL.h"
#endif
#endif
#include <memory.h>
Window::Window()
#if BUILD_WINDOWS_NO_SDL... | 25.291444 | 80 | 0.689608 | kas1e |
9146e18996dd7ddcd5ff9bb6298e0de82f32c413 | 683 | hpp | C++ | tests/headers/doggo-or-null.hpp | j-channings/rust-bindgen | 56e8cf97c9368e0bc9f20f5f66ca2a3773ab97b3 | [
"BSD-3-Clause"
] | 1,848 | 2018-11-22T06:08:21.000Z | 2022-03-31T10:54:10.000Z | tests/headers/doggo-or-null.hpp | j-channings/rust-bindgen | 56e8cf97c9368e0bc9f20f5f66ca2a3773ab97b3 | [
"BSD-3-Clause"
] | 845 | 2016-06-22T21:55:20.000Z | 2018-10-31T15:50:10.000Z | tests/headers/doggo-or-null.hpp | j-channings/rust-bindgen | 56e8cf97c9368e0bc9f20f5f66ca2a3773ab97b3 | [
"BSD-3-Clause"
] | 274 | 2018-11-23T17:46:29.000Z | 2022-03-27T04:52:37.000Z | // bindgen-flags: --opaque-type DoggoOrNull --with-derive-partialeq --with-derive-hash -- -std=c++14
class Doggo {
int x;
};
class Null {};
/**
* This type is an opaque union. Unions can't derive anything interesting like
* Debug or Default, even if their layout can, because it would require knowing
* which v... | 32.52381 | 100 | 0.711567 | j-channings |
91507b9134518b80e1815709a4ff2ece9644e3da | 214 | hpp | C++ | src/App/Configuration.hpp | psiberx/cp2077-tweak-xl | ed974dc664092c8d1f8831c39a5c5b2634ddf72e | [
"MIT"
] | 6 | 2022-03-01T03:46:46.000Z | 2022-03-31T21:12:31.000Z | src/App/Configuration.hpp | psiberx/cp2077-tweak-xl | ed974dc664092c8d1f8831c39a5c5b2634ddf72e | [
"MIT"
] | null | null | null | src/App/Configuration.hpp | psiberx/cp2077-tweak-xl | ed974dc664092c8d1f8831c39a5c5b2634ddf72e | [
"MIT"
] | null | null | null | #pragma once
#include "stdafx.hpp"
#include "Core/Facades/Runtime.hpp"
namespace App::Configuration
{
inline std::filesystem::path GetTweaksDir()
{
return Core::Runtime::GetRootDir() / L"r6" / L"tweaks";
}
}
| 16.461538 | 59 | 0.705607 | psiberx |
9154bf90e1c29faee6cf9a7df244edf60f80908d | 1,781 | hpp | C++ | Mathematics/Function/Computable/Expression/List/Body/a_Body.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | 2 | 2020-09-13T07:31:22.000Z | 2022-03-26T08:37:32.000Z | Mathematics/Function/Computable/Expression/List/Body/a_Body.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | Mathematics/Function/Computable/Expression/List/Body/a_Body.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | // c:/Users/user/Documents/Programming/Mathematics/Function/Computable/Expression/List/Body/a_Body.hpp
#pragma once
#include "a.hpp"
#include "../a.hpp"
#include "../../Variable/a.hpp"
#include "../../a.hpp"
#include "../a_Body.hpp"
#include "../../Variable/a_Body.hpp"
#include "../../a_Body.hpp"
#include ... | 22.833333 | 249 | 0.613139 | p-adic |
91572fbae81e4c5c4e5530024cfe094c7435fa7c | 1,612 | cpp | C++ | Day12/Graph_topSortKahnAlgo.cpp | tejaswini212/100-Days-Of-Algo | ae90e91e302e2f1c9b1c067416fcb0bc42b12e99 | [
"MIT"
] | 1 | 2022-03-31T13:49:46.000Z | 2022-03-31T13:49:46.000Z | Day12/Graph_topSortKahnAlgo.cpp | tejaswini212/100-Days-Of-Algo | ae90e91e302e2f1c9b1c067416fcb0bc42b12e99 | [
"MIT"
] | null | null | null | Day12/Graph_topSortKahnAlgo.cpp | tejaswini212/100-Days-Of-Algo | ae90e91e302e2f1c9b1c067416fcb0bc42b12e99 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class Graph{
int V;
list<int> *adj;
public:
Graph(int V){
this->V = V;
adj = new list<int> [V];
}
void addEdge(int u,int v){
adj[u].push_back(v);
}
void topSort();
};
void Graph::topSort(){
//vector to sto... | 19.658537 | 77 | 0.485112 | tejaswini212 |
915be2ee2f6f333f2a943562f1c8e1fd228b778a | 489 | cpp | C++ | sg/renderer/materials/ThinGlass.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 52 | 2018-10-09T23:56:32.000Z | 2022-03-25T09:27:40.000Z | sg/renderer/materials/ThinGlass.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 11 | 2018-11-19T18:51:47.000Z | 2022-03-28T14:03:57.000Z | sg/renderer/materials/ThinGlass.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 8 | 2019-02-10T00:16:24.000Z | 2022-02-17T19:50:15.000Z | // Copyright 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "../Material.h"
namespace ospray {
namespace sg {
struct OSPSG_INTERFACE ThinGlass : public Material
{
ThinGlass();
~ThinGlass() override = default;
};
OSP_REGISTER_SG_NODE_NAME(ThinGlass, thinGlass);
// ThinGla... | 18.807692 | 77 | 0.615542 | ebachard |
915dd98f431a89b44683368c0710b1869d5a1d3e | 31,792 | cpp | C++ | src/ScreenManager.cpp | graemephi/etterna | b984fe493d9f7ac84a35af3e6f80f16607aceb09 | [
"MIT"
] | null | null | null | src/ScreenManager.cpp | graemephi/etterna | b984fe493d9f7ac84a35af3e6f80f16607aceb09 | [
"MIT"
] | null | null | null | src/ScreenManager.cpp | graemephi/etterna | b984fe493d9f7ac84a35af3e6f80f16607aceb09 | [
"MIT"
] | null | null | null | /*
* We maintain a pool of "prepared" screens, which are screens previously loaded
* to be available on demand.
*
* When a screen pops off the stack that's in g_setPersistantScreens, it goes to
* the prepared list. If that screen is used again before it's deleted, it'll
* be reused.
*
* Typically, the first sc... | 28.693141 | 80 | 0.71474 | graemephi |
915f5ac519c0366f24fa768b0db8dffd7d45f472 | 21,519 | cpp | C++ | code/appRenderState.cpp | robbitay/ConstPort | d948ceb5f0e22504640578e3ef31e3823b29c1c3 | [
"Unlicense"
] | null | null | null | code/appRenderState.cpp | robbitay/ConstPort | d948ceb5f0e22504640578e3ef31e3823b29c1c3 | [
"Unlicense"
] | null | null | null | code/appRenderState.cpp | robbitay/ConstPort | d948ceb5f0e22504640578e3ef31e3823b29c1c3 | [
"Unlicense"
] | null | null | null | /*
File: appRenderState.cpp
Author: Taylor Robbins
Date: 06\13\2017
Description:
** Lots of functions that facilitate drawing different
** primitives and common things
#included from app.cpp
*/
void InitializeRenderState()
{
Assert(renderState != nullptr);
ClearPointer(renderState);
Vertex_t squareVertic... | 37.165803 | 203 | 0.749291 | robbitay |
916178b1de3174af3714a7802e13933ca253674e | 3,321 | cpp | C++ | iniparser.cpp | IvanSafonov/iniparser | 6aad81d1a607aaf64c4e26ea9c3f6a877a40ae2f | [
"MIT"
] | 1 | 2020-10-18T23:56:43.000Z | 2020-10-18T23:56:43.000Z | iniparser.cpp | IvanSafonov/iniparser | 6aad81d1a607aaf64c4e26ea9c3f6a877a40ae2f | [
"MIT"
] | null | null | null | iniparser.cpp | IvanSafonov/iniparser | 6aad81d1a607aaf64c4e26ea9c3f6a877a40ae2f | [
"MIT"
] | null | null | null | #include "iniparser.h"
#include <fstream>
#include <regex>
#include <algorithm>
#include <set>
using namespace std;
IniParser::IniParser()
{
}
IniParser::~IniParser()
{
}
bool IniParser::load(const std::string &fileName) {
ifstream file;
file.open(fileName);
if (!file)
return false;
rege... | 25.945313 | 100 | 0.587173 | IvanSafonov |
91659fa248100b19731dd229ae7fa7cfe3a79a15 | 740 | cpp | C++ | src/projections/Mercator.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 6 | 2020-09-23T19:49:07.000Z | 2022-01-08T15:53:55.000Z | src/projections/Mercator.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | null | null | null | src/projections/Mercator.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 1 | 2020-09-23T17:53:26.000Z | 2020-09-23T17:53:26.000Z | //
// Created by kuhlwein on 7/5/20.
//
#include "Project.h"
#include "Mercator.h"
Mercator::Mercator(Project *project) : AbstractCanvas(project) {
}
glm::vec2 Mercator::inverseTransform(glm::vec2 coord) {
float theta = coord.x;
float phi = 2*atan(exp(coord.y))-M_PI/2;
return glm::vec2(theta,phi);
}
Shader *Mer... | 18.974359 | 64 | 0.677027 | Kuhlwein |
916beb4c7c82d6dfcd78be0842fa09b3639164ef | 9,470 | cxx | C++ | java/jni/direct_bt/DBTGattChar.cxx | sgothel/direct_bt | e19a11a60d509a42a1a1167a2b7215345784e462 | [
"MIT"
] | 10 | 2020-09-03T16:23:12.000Z | 2022-03-10T13:51:40.000Z | java/jni/direct_bt/DBTGattChar.cxx | sgothel/direct_bt | e19a11a60d509a42a1a1167a2b7215345784e462 | [
"MIT"
] | null | null | null | java/jni/direct_bt/DBTGattChar.cxx | sgothel/direct_bt | e19a11a60d509a42a1a1167a2b7215345784e462 | [
"MIT"
] | 3 | 2020-09-03T05:21:46.000Z | 2020-09-04T18:44:00.000Z | /*
* Author: Sven Gothel <sgothel@jausoft.com>
* Copyright (c) 2020 Gothel Software e.K.
* Copyright (c) 2020 ZAFENA AB
*
* 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 restri... | 45.311005 | 124 | 0.667476 | sgothel |
916f77bb5ca21ef3f1ea64a0025bfdcb97ca475b | 252 | cpp | C++ | src/BarProject/TCPClient.cpp | gallowstree/ArduinoMazeNavV2 | fdd35ce066cb4c3d78496beeda2ef831f7fb6713 | [
"MIT"
] | null | null | null | src/BarProject/TCPClient.cpp | gallowstree/ArduinoMazeNavV2 | fdd35ce066cb4c3d78496beeda2ef831f7fb6713 | [
"MIT"
] | null | null | null | src/BarProject/TCPClient.cpp | gallowstree/ArduinoMazeNavV2 | fdd35ce066cb4c3d78496beeda2ef831f7fb6713 | [
"MIT"
] | null | null | null | #include "TCPClient.h"
TCPClient::TCPClient(){}
int TCPClient::connect(char * host, int port)
{
return client.connect(host,port);
}
void TCPClient::sendData(String data)
{
client.print(data);
}
void TCPClient::close()
{
client.stop();
} | 14 | 45 | 0.674603 | gallowstree |
917261d0dc69ebc96ab34b4c739bffcdb1ae675b | 7,485 | cpp | C++ | utils/cluster.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | utils/cluster.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | utils/cluster.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021 Adam Lafontaine
*/
#include "cluster_config.hpp"
#include <cstdlib>
#include <algorithm>
#include <random>
#include <iterator>
#include <iostream>
#include <functional>
namespace cluster
{
//======= TYPES ===================
typedef struct ClusterCount // used for tracking the number of ti... | 25.287162 | 133 | 0.685237 | adam-lafontaine |
91782ac2f1e95b4ebad4dd7b7014dabf54da8541 | 1,199 | hpp | C++ | modules/scene_manager/include/map_msgs/srv/save_map__request__traits.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/map_msgs/srv/save_map__request__traits.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/map_msgs/srv/save_map__request__traits.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from rosidl_generator_cpp/resource/msg__traits.hpp.em
// generated code does not contain a copyright notice
#ifndef MAP_MSGS__SRV__SAVE_MAP__REQUEST__TRAITS_HPP_
#define MAP_MSGS__SRV__SAVE_MAP__REQUEST__TRAITS_HPP_
#include <stdint.h>
#include <type_traits>
namespace rosidl_generator_traits
{
#ifndef ... | 25.510638 | 84 | 0.803169 | Omnirobotic |
9179a4fe75d7fdbe342b6748d90b659676d8ef49 | 2,328 | cpp | C++ | src/RotationControl.cpp | rustyducks/navigation | 2c549072173b05ebc750c7a0b05dd41833f44ceb | [
"MIT"
] | null | null | null | src/RotationControl.cpp | rustyducks/navigation | 2c549072173b05ebc750c7a0b05dd41833f44ceb | [
"MIT"
] | null | null | null | src/RotationControl.cpp | rustyducks/navigation | 2c549072173b05ebc750c7a0b05dd41833f44ceb | [
"MIT"
] | null | null | null | #include "Navigation/RotationControl.h"
#include "Navigation/Parameters.h"
namespace rd {
RotationControl::RotationControl(const PositionControlParameters ¶ms) : PositionControlBase(params), state_(eRotationControlState::ACCELERATE) {}
Speed RotationControl::computeSpeed(const PointOriented &robotPose, const Sp... | 39.457627 | 149 | 0.705756 | rustyducks |
917b5cf644038138fc496999557aa6c0a78590d0 | 1,123 | cpp | C++ | paint/src/Tool.cpp | nickveys/opengl-play | a297b4ea804255fd54e4b1e78fb7d79d3e185b23 | [
"MIT"
] | null | null | null | paint/src/Tool.cpp | nickveys/opengl-play | a297b4ea804255fd54e4b1e78fb7d79d3e185b23 | [
"MIT"
] | null | null | null | paint/src/Tool.cpp | nickveys/opengl-play | a297b4ea804255fd54e4b1e78fb7d79d3e185b23 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <glut.h>
#include "Paintable.h"
#include "Tool.h"
/* default tool setup */
struct color4f Tool::color = { 1.0f, 1.0f, 1.0f, 1.0f };
GLfloat Tool::size = 2.0f;
GLfloat Tool::width = 2.0f;
bool Tool::fill = false;
Tool::Tool() {
mouseCurrentlyDown = false;
}
void Tool::mouseDown(struct p... | 20.796296 | 74 | 0.684773 | nickveys |
9186428070d989d125f328ed02f09eb3d5f7dcb3 | 436 | cpp | C++ | Code/766_Toeplitz_Matrix.cpp | DCOLIVERSUN/LeetCode | e0ef5ed8a267d81cc794914c3c1f22b013a32871 | [
"MIT"
] | 1 | 2019-11-12T08:15:33.000Z | 2019-11-12T08:15:33.000Z | Code/766_Toeplitz_Matrix.cpp | DCOLIVERSUN/LeetCode | e0ef5ed8a267d81cc794914c3c1f22b013a32871 | [
"MIT"
] | null | null | null | Code/766_Toeplitz_Matrix.cpp | DCOLIVERSUN/LeetCode | e0ef5ed8a267d81cc794914c3c1f22b013a32871 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isToeplitzMatrix(vector<vector<int>>& matrix) {
if (matrix.empty() || matrix[0].empty()) return false;
for (int i = 0; i < matrix.size(); ++i) {
for (int j = 0; j < matrix[0].size(); ++j) {
if (i > 0 && j > 0 && matrix[i - 1][j - 1] != matrix... | 29.066667 | 77 | 0.417431 | DCOLIVERSUN |
918881110005b3a420df0881b6c52546869c3bbd | 537 | cpp | C++ | RightL.cpp | imor/Quadris | 85b119c887b5473a15a1aaaecf4a772e2aff2359 | [
"MIT"
] | null | null | null | RightL.cpp | imor/Quadris | 85b119c887b5473a15a1aaaecf4a772e2aff2359 | [
"MIT"
] | null | null | null | RightL.cpp | imor/Quadris | 85b119c887b5473a15a1aaaecf4a772e2aff2359 | [
"MIT"
] | null | null | null | #include "RightL.h"
using namespace std;
RightL::RightL(int originX, int originY, Texture* texture) :
Tetramino(originX, originY, 2, texture)
{
setOrigin(originX, originY);
}
void RightL::setOrigin(int x, int y)
{
blockPositions[0].setX(x + texture->getWidth());
blockPositions[0].setY(y - texture->getHeight());
... | 21.48 | 60 | 0.705773 | imor |
9189dea489df2bca4d92dda3fc1578a81f88a6f5 | 5,716 | cpp | C++ | tests/client/client.cpp | cthulhu-irl/touca-cpp | 97392a1f84c7a92211ee86bcb527637a6c9a5cba | [
"Apache-2.0"
] | 12 | 2021-06-27T01:44:49.000Z | 2022-03-11T10:08:34.000Z | sdk/cpp/tests/client/client.cpp | trytouca/trytouca | eae38a96407d1ecac543c5a5fb05cbbe632ddfca | [
"Apache-2.0"
] | 8 | 2021-06-25T13:05:29.000Z | 2022-03-26T20:28:14.000Z | sdk/cpp/tests/client/client.cpp | trytouca/trytouca | eae38a96407d1ecac543c5a5fb05cbbe632ddfca | [
"Apache-2.0"
] | 4 | 2021-06-25T11:31:12.000Z | 2022-03-16T05:50:52.000Z | // Copyright 2021 Touca, Inc. Subject to Apache-2.0 License.
#include "touca/client/detail/client.hpp"
#include "catch2/catch.hpp"
#include "tests/devkit/tmpfile.hpp"
#include "touca/devkit/resultfile.hpp"
#include "touca/devkit/utils.hpp"
using namespace touca;
std::string save_and_read_back(const touca::ClientImp... | 36.877419 | 144 | 0.635934 | cthulhu-irl |
918afeef8fa01a15e812d1e95c8ec82f6aafec8f | 3,050 | cpp | C++ | src/Utility/Box.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Utility/Box.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Utility/Box.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | #include <KYEngine/Utility/Box.h>
#include <algorithm>
Box::Box()
{
m_values[0] = 0.0f;
m_values[1] = 0.0f;
m_values[2] = 1.0f;
m_values[3] = 1.0f;
}
Box::Box(const Box& other)
{
for(int i = 0; i < 4; i++)
m_values[i] = other.m_values[i];
}
Box::Box(float width, float height)
{
m_values[0] = 0.0f;
m_values... | 20.469799 | 91 | 0.518689 | heltena |
9260ab5bc8b6ee92be0a168c054a8a2687c38ba9 | 5,583 | hpp | C++ | third_party/boost/simd/arch/common/generic/function/all_reduce.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/common/generic/function/all_reduce.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/common/generic/function/all_reduce.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 39.595745 | 100 | 0.491671 | SylvainCorlay |
9262bfebc838c82d6139563fb0628222f4d5e53f | 952 | hpp | C++ | engine/include/core/event/providers/glfw.hpp | dorosch/engine | 0cd277675264f848ac141f7e5663242bd7b43438 | [
"MIT"
] | null | null | null | engine/include/core/event/providers/glfw.hpp | dorosch/engine | 0cd277675264f848ac141f7e5663242bd7b43438 | [
"MIT"
] | null | null | null | engine/include/core/event/providers/glfw.hpp | dorosch/engine | 0cd277675264f848ac141f7e5663242bd7b43438 | [
"MIT"
] | null | null | null | #ifndef __GLFW_EVENT_PROVIDER_HPP__
#define __GLFW_EVENT_PROVIDER_HPP__
#ifndef GLEW_STATIC
#define GLEW_STATIC
#endif
#include <memory>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "core/event/provider.hpp"
#include "core/event/observer.hpp"
#include "tools/logger.hpp"
using namespace Tool::Logger;
nam... | 24.410256 | 86 | 0.667017 | dorosch |
9265d78d773141c87ee53a31fa84206aa2c43596 | 691 | cpp | C++ | atcoder/abc/abc160/d.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc160/d.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc160/d.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1,... | 18.184211 | 58 | 0.442836 | yu3mars |
92665ce36db6b634ce075c8c1fbefa63428da6cd | 5,619 | cpp | C++ | src/tools/download.cpp | alexandria-org/alexandria | ca0c890fea3ba931ad849ded95d6187838718a4c | [
"MIT"
] | 113 | 2022-02-12T00:07:52.000Z | 2022-03-28T08:02:39.000Z | src/tools/download.cpp | alexandria-org/alexandria | ca0c890fea3ba931ad849ded95d6187838718a4c | [
"MIT"
] | 8 | 2021-09-26T07:52:47.000Z | 2022-03-28T06:56:02.000Z | src/tools/download.cpp | alexandria-org/alexandria | ca0c890fea3ba931ad849ded95d6187838718a4c | [
"MIT"
] | 5 | 2022-03-18T22:20:50.000Z | 2022-03-25T15:41:06.000Z | /*
* MIT License
*
* Alexandria.org
*
* Copyright (c) 2021 Josef Cullhed, <info@alexandria.org>, et al.
*
* 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, includi... | 31.216667 | 144 | 0.706531 | alexandria-org |
926861ad88d7db25eab56ca1d0a06a75875b4bde | 1,208 | cpp | C++ | source/Vertex.cpp | nicovanbentum/Scatter | 72fc7386767d8c058c55fbe15055ea9397d018e1 | [
"MIT"
] | null | null | null | source/Vertex.cpp | nicovanbentum/Scatter | 72fc7386767d8c058c55fbe15055ea9397d018e1 | [
"MIT"
] | null | null | null | source/Vertex.cpp | nicovanbentum/Scatter | 72fc7386767d8c058c55fbe15055ea9397d018e1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Vertex.h"
namespace scatter {
VkVertexInputBindingDescription Vertex::getBindingDescription() {
VkVertexInputBindingDescription bindingDescription{};
bindingDescription.binding = 0;
bindingDescription.stride = sizeof(Vertex);
bindingDescription.inputRate = VK_VERTEX_INPUT_RA... | 35.529412 | 85 | 0.768212 | nicovanbentum |
92689b10d3ff9b104ba3bd3674e40b0e241afca0 | 677 | cpp | C++ | src/expressions/data/tuple.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | 2 | 2021-01-14T11:19:02.000Z | 2021-03-07T03:08:08.000Z | src/expressions/data/tuple.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | null | null | null | src/expressions/data/tuple.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | null | null | null |
#include <string>
#include <typeinfo>
#include "utils.hpp"
#include "expressions.hpp"
using namespace std;
using namespace expr;
using namespace interp;
Parent* Tuple::parent;
int Tuple::size() {
return values.size();
}
Object* Tuple::operator[](int i) {
return values[i];
}
void Tuple::mark_node() {
if (ma... | 16.512195 | 59 | 0.60709 | rationalis-petra |
92692c9d8c5f392980f8924a8e025eb6f1fea978 | 2,903 | cc | C++ | src/quantsystem/engine/real_time/backtesting_real_time_handler.cc | ydxt25/QuantSystem | b4298121ce8fbe13d8fe7fcaf502565736df9bfe | [
"Apache-2.0"
] | 49 | 2016-11-03T20:51:45.000Z | 2022-03-30T22:34:25.000Z | src/quantsystem/engine/real_time/backtesting_real_time_handler.cc | seepls/QuantSystem | b4298121ce8fbe13d8fe7fcaf502565736df9bfe | [
"Apache-2.0"
] | null | null | null | src/quantsystem/engine/real_time/backtesting_real_time_handler.cc | seepls/QuantSystem | b4298121ce8fbe13d8fe7fcaf502565736df9bfe | [
"Apache-2.0"
] | 33 | 2016-07-17T05:19:59.000Z | 2022-03-07T17:45:57.000Z | /*
* \copyright Copyright 2015 All Rights Reserved.
* \license @{
*
* 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 requi... | 27.647619 | 75 | 0.715122 | ydxt25 |
926e2857a2c0ccf45687d2691699f2bec4ea0bd4 | 552 | cpp | C++ | src/srbpy/alignment/Straight.cpp | billhu0228/SmartRoadBridgePy | 4a5d34028a2612aef846b580733bf6f488110798 | [
"MIT"
] | 2 | 2020-08-05T10:46:45.000Z | 2020-08-11T11:05:18.000Z | src/srbpy/alignment/Straight.cpp | billhu0228/SmartRoadBridgePy | 4a5d34028a2612aef846b580733bf6f488110798 | [
"MIT"
] | null | null | null | src/srbpy/alignment/Straight.cpp | billhu0228/SmartRoadBridgePy | 4a5d34028a2612aef846b580733bf6f488110798 | [
"MIT"
] | 1 | 2020-08-26T07:50:22.000Z | 2020-08-26T07:50:22.000Z | #include "Straight.h"
Straight::Straight(void)
{
__length = 0;
}
Straight::Straight(double length, Vector& st, Angle& sdir, EITypeID idd, LeftRightEnum lr)
:PQXElement(idd, st, sdir, lr)
{
__length = length;
}
Vector Straight::get_point_on_curve(double l_from_st) const
{
double x = l_from_st;
double y = 0;
Ve... | 14.526316 | 90 | 0.690217 | billhu0228 |
9278f72097cce6b4a6663e1e031f062163dfde3b | 1,017 | cpp | C++ | question_solution/first_time/1057.cpp | xiaoland/CaiojSolution | a12c505235d70b414071ea894fa72cddbcfabc6d | [
"Apache-2.0"
] | 1 | 2020-09-24T13:35:45.000Z | 2020-09-24T13:35:45.000Z | question_solution/first_time/1057.cpp | xiaoland/CaiojSolution | a12c505235d70b414071ea894fa72cddbcfabc6d | [
"Apache-2.0"
] | null | null | null | question_solution/first_time/1057.cpp | xiaoland/CaiojSolution | a12c505235d70b414071ea894fa72cddbcfabc6d | [
"Apache-2.0"
] | null | null | null | // author: Lan_zhijiang
// description: 含价值的填满型背包1
// 二维数组版
// 背包问题就是要你作出在限制条件下的最佳组合选择
// 解决背包问题最朴素的方法就是列出所有可能性
// 但根据题目条件的不同,都有不同的优化
// 我们还要特别注意节省内存,将自己的算法进行简化,找出多余的部分(比如将二维数组转为一维数组来使用)
// 要检查草稿有没有错误,按着你写的代码再来自己执行一遍,不要弄错了
#include <cstdio>
#include <cstring>
#include <algorithm> // 背包问题要用的max
using namespace std; //... | 20.34 | 70 | 0.485742 | xiaoland |
927dbb2399b605df98f94cee47e40d5d50c710a6 | 4,397 | cpp | C++ | src/engine/subsystems/physics/bullet/bullet_physics_body.cpp | ukrainskiysergey/BallMaze | 84d211ec0733fff7d2b13d5ffce707fb1813fe4e | [
"MIT"
] | null | null | null | src/engine/subsystems/physics/bullet/bullet_physics_body.cpp | ukrainskiysergey/BallMaze | 84d211ec0733fff7d2b13d5ffce707fb1813fe4e | [
"MIT"
] | null | null | null | src/engine/subsystems/physics/bullet/bullet_physics_body.cpp | ukrainskiysergey/BallMaze | 84d211ec0733fff7d2b13d5ffce707fb1813fe4e | [
"MIT"
] | null | null | null | #include "engine/subsystems/physics/bullet/bullet_physics_body.h"
#include "engine/subsystems/physics/bullet/bullet_physics_world.h"
#include "engine/subsystems/physics/bullet/bullet_collision_shape.h"
BulletPhysicsBody::BulletPhysicsBody(BulletPhysicsWorld* world, const std::shared_ptr<BulletCollisionShape>& shape, c... | 33.06015 | 177 | 0.784398 | ukrainskiysergey |
927ee1dd68f0d5636217928373823f6fb4c03469 | 2,762 | cpp | C++ | Core/JPetTreeHeader/JPetTreeHeaderTest.cpp | Alvarness/j-pet-framework | 899ab32bf9a7f4daecaf8ed2dd7c8bc8922e73bd | [
"Apache-2.0"
] | null | null | null | Core/JPetTreeHeader/JPetTreeHeaderTest.cpp | Alvarness/j-pet-framework | 899ab32bf9a7f4daecaf8ed2dd7c8bc8922e73bd | [
"Apache-2.0"
] | null | null | null | Core/JPetTreeHeader/JPetTreeHeaderTest.cpp | Alvarness/j-pet-framework | 899ab32bf9a7f4daecaf8ed2dd7c8bc8922e73bd | [
"Apache-2.0"
] | null | null | null | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JPetTreeHeaderTest
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "./JPetTreeHeader/JPetTreeHeader.h"
BOOST_AUTO_TEST_SUITE(JPetTreeHeaderSuite)
BOOST_AUTO_TEST_CASE(emptyHeader){
JPetTreeHeader treeHeader;
BOOST_REQUIRE_EQUAL(tree... | 43.15625 | 136 | 0.828747 | Alvarness |
92819c144d2f05f814acab0151720fdb297a3f01 | 18,098 | cpp | C++ | source/common/engine/stringtable.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | 1 | 2022-03-30T15:53:09.000Z | 2022-03-30T15:53:09.000Z | source/common/engine/stringtable.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | null | null | null | source/common/engine/stringtable.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | null | null | null | /*
** stringtable.cpp
** Implements the FStringTable class
**
**---------------------------------------------------------------------------
** Copyright 1998-2006 Randy Heit
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the ... | 26.191027 | 140 | 0.539728 | Quake-Backup |
928294383946e7e2df7d4757bcc7c02cc26b1caf | 3,323 | cpp | C++ | src/dropbox/sharing/SharingMountFolderError.cpp | slashdotted/dropboxQt | 63d43fa882cec8fb980a2aab2464a2d7260b8089 | [
"MIT"
] | 17 | 2016-12-03T09:12:29.000Z | 2020-06-20T22:08:44.000Z | src/dropbox/sharing/SharingMountFolderError.cpp | slashdotted/dropboxQt | 63d43fa882cec8fb980a2aab2464a2d7260b8089 | [
"MIT"
] | 8 | 2017-01-05T17:50:16.000Z | 2021-08-06T18:56:29.000Z | src/dropbox/sharing/SharingMountFolderError.cpp | slashdotted/dropboxQt | 63d43fa882cec8fb980a2aab2464a2d7260b8089 | [
"MIT"
] | 8 | 2017-09-13T17:28:40.000Z | 2020-07-27T00:41:44.000Z | /**********************************************************
DO NOT EDIT
This file was generated from stone specification "sharing"
Part of "Ardi - the organizer" project.
osoft4ardi@gmail.com
www.prokarpaty.net
***********************************************************/
#include "dropbox/sharing/SharingMountFold... | 29.669643 | 99 | 0.616611 | slashdotted |
9286be102837112c957c8b89fb5642cf1d8e72e7 | 3,631 | h++ | C++ | css/grammar/position.h++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 19 | 2016-10-13T22:44:31.000Z | 2021-12-28T20:28:15.000Z | css/grammar/position.h++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 1 | 2021-05-16T15:15:22.000Z | 2021-05-16T17:01:26.000Z | css/grammar/position.h++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 4 | 2017-03-07T05:37:02.000Z | 2018-06-05T03:14:48.000Z | /**
* The MIT License (MIT)
*
* Copyright © 2019 Ruben Van Boxem
*
* 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 us... | 41.261364 | 119 | 0.645001 | rubenvb |
9287a02a7a544d3aaeafe4518ec15a307887a178 | 6,347 | cpp | C++ | app/parse_kml.cpp | JaviBonilla/SolarPILOT | c535313484018597e8029202e764ec8e834839a5 | [
"MIT"
] | 26 | 2018-03-21T17:26:44.000Z | 2022-02-07T05:55:47.000Z | app/parse_kml.cpp | JaviBonilla/SolarPILOT | c535313484018597e8029202e764ec8e834839a5 | [
"MIT"
] | 38 | 2018-03-09T17:54:49.000Z | 2022-01-28T16:28:29.000Z | app/parse_kml.cpp | JaviBonilla/SolarPILOT | c535313484018597e8029202e764ec8e834839a5 | [
"MIT"
] | 11 | 2018-03-17T09:36:51.000Z | 2022-02-02T10:13:47.000Z |
/*******************************************************************************************************
* Copyright 2018 Alliance for Sustainable Energy, LLC
*
* NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC
* ("Alliance") under Contract No. DE-AC36-08GO28308 with the... | 46.328467 | 110 | 0.676067 | JaviBonilla |
92881cb14b49dc3defa4400678c987491d0cbee3 | 714 | cpp | C++ | lucas/tep/2019-1/Contest4/f.cpp | medeiroslucas/lo-and-behold-pp | d2be16f9b108b501fd9fccf173e741c93350cee4 | [
"MIT"
] | 2 | 2019-09-09T00:34:40.000Z | 2019-09-09T17:35:19.000Z | lucas/tep/2019-1/Contest4/f.cpp | medeiroslucas/lo-and-behold-pp | d2be16f9b108b501fd9fccf173e741c93350cee4 | [
"MIT"
] | null | null | null | lucas/tep/2019-1/Contest4/f.cpp | medeiroslucas/lo-and-behold-pp | d2be16f9b108b501fd9fccf173e741c93350cee4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double oo = 100000000;
int main(){
int N;
double max=-oo, min=oo, area;
pair<double, double> p, pontos;
cin >> N >> p.first >> p.second;
while(N--){
cin >> pontos.first >> pontos.second;
if(hypot... | 21 | 74 | 0.556022 | medeiroslucas |
928946ea867daf7caf6944d0c51edfee2527dd3b | 1,712 | cpp | C++ | Tries/Tries_Creation.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Tries/Tries_Creation.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Tries/Tries_Creation.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | #include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
//trie structure
struct TrieNode
{
struct TrieNode* child[26];
bool is_str_end;
};
//to create a trieNode type node
struct TrieNode* createNode()
{
struct TrieNode *t=new struct TrieNode;
if(t)
{
t->is_str_end=false;
for (int... | 19.906977 | 81 | 0.595794 | susantabiswas |
928a1b8acf955a585769bd23c02264da1badaafa | 11,662 | cpp | C++ | redgpu_memory_allocator_functions.cpp | procedural/redgpu_memory_allocator_dma | 4eedd04b9983cde624e91dd1ec4294ac2de73697 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | redgpu_memory_allocator_functions.cpp | procedural/redgpu_memory_allocator_dma | 4eedd04b9983cde624e91dd1ec4294ac2de73697 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | redgpu_memory_allocator_functions.cpp | procedural/redgpu_memory_allocator_dma | 4eedd04b9983cde624e91dd1ec4294ac2de73697 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include "redgpu_memory_allocator_functions.h"
REDGPU_DECLSPEC void REDGPU_API rmaDmaVkGetPhysicalDeviceProperties2(RedContext context, unsigned gpuIndex, VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2 * pProperties) {
// NOTE(Constantine): Hardcoded for memorymanagement_vk.cpp:292
VkPhysicalDeviceMa... | 66.261364 | 518 | 0.799005 | procedural |
928af9ec5d4404c56d6ddffcaa048fc46f6a94ab | 1,347 | cpp | C++ | src/server/db/db.cpp | ETinyfish/TEST | 255014beb178878d8b0a466e0fd61fc26c1d8445 | [
"MIT"
] | null | null | null | src/server/db/db.cpp | ETinyfish/TEST | 255014beb178878d8b0a466e0fd61fc26c1d8445 | [
"MIT"
] | null | null | null | src/server/db/db.cpp | ETinyfish/TEST | 255014beb178878d8b0a466e0fd61fc26c1d8445 | [
"MIT"
] | 1 | 2021-06-30T05:55:32.000Z | 2021-06-30T05:55:32.000Z | #include "db.h"
#include <muduo/base/Logging.h>
// 数据库配置信息
static string server = "127.0.0.1";
static string user = "root";
static string password = "123";
static string dbname = "chat_server";
// 初始化数据库连接
MySQL::MySQL()
{
_conn = mysql_init(nullptr);
}
// 释放数据库连接资源
MySQL::~MySQL()
{
if (_conn != nullptr)
... | 18.708333 | 86 | 0.550854 | ETinyfish |
928e626c06d50a9f27688bf16d0ef3c097dd3c35 | 3,912 | hpp | C++ | src/dtl/bitmap/util/buffer.hpp | harald-lang/tree-encoded-bitmaps | a4ab056f2cefa7843b27c736833b08977b56649c | [
"Apache-2.0"
] | 29 | 2020-06-18T12:51:42.000Z | 2022-02-22T07:38:24.000Z | src/dtl/bitmap/util/buffer.hpp | marcellus-saputra/Thuja | 8443320a6d0e9a20bb6b665f0befc6988978cafd | [
"Apache-2.0"
] | null | null | null | src/dtl/bitmap/util/buffer.hpp | marcellus-saputra/Thuja | 8443320a6d0e9a20bb6b665f0befc6988978cafd | [
"Apache-2.0"
] | 2 | 2021-04-07T13:43:34.000Z | 2021-06-09T04:49:39.000Z | #pragma once
//===----------------------------------------------------------------------===//
#include <dtl/dtl.hpp>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <memory>
#include <type_traits>
//===----------------------------------------------------------------------===//
name... | 28.764706 | 83 | 0.615798 | harald-lang |
928f19d3da027bd21bfeaa4efcc8f7acc0190ac1 | 4,032 | cc | C++ | cmd/pyxisd/main.cc | eLong-INF/pyxis | 304820eb72bd62d3c211c3423f62dc87b535bb3c | [
"BSD-3-Clause"
] | 9 | 2016-07-21T01:45:17.000Z | 2016-08-26T03:20:25.000Z | cmd/pyxisd/main.cc | eLong-opensource/pyxis | 304820eb72bd62d3c211c3423f62dc87b535bb3c | [
"BSD-3-Clause"
] | null | null | null | cmd/pyxisd/main.cc | eLong-opensource/pyxis | 304820eb72bd62d3c211c3423f62dc87b535bb3c | [
"BSD-3-Clause"
] | null | null | null | #include <pyxis/server/server.h>
#include <pyxis/rpc/server.h>
#include <pyxis/server/fake_raft.h>
#include <sofa/pbrpc/pbrpc.h>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <muduo/net/EventLoop.h>
#include <muduo/net/EventLoopThread.h>
#include <muduo/net/inspect/Inspector.h>
#include <raft/core/tran... | 36 | 95 | 0.728423 | eLong-INF |
9293c46352416bbd95d09069fc83fffa2697e1e4 | 1,756 | cpp | C++ | tests/unit/resource_manager_tests.cpp | aaroncblack/Umpire | 5089a55aeed8b269112125e917f08b10e1797ae5 | [
"MIT"
] | null | null | null | tests/unit/resource_manager_tests.cpp | aaroncblack/Umpire | 5089a55aeed8b269112125e917f08b10e1797ae5 | [
"MIT"
] | null | null | null | tests/unit/resource_manager_tests.cpp | aaroncblack/Umpire | 5089a55aeed8b269112125e917f08b10e1797ae5 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory
//
// Created by David Beckingsale, david@llnl.gov
// LLNL-CODE-747640
//
// All rights reserved.
//
// This fil... | 24.054795 | 84 | 0.642369 | aaroncblack |
92944939250c28298b5f6815e0ada8e39adcf980 | 8,198 | hh | C++ | Project/headers/HelperFunctions.hh | anshuman1811/cs687-reinforcementlearning | cf30cc0ab2b0e515cd4b643fc55c60cc5f38a481 | [
"MIT"
] | null | null | null | Project/headers/HelperFunctions.hh | anshuman1811/cs687-reinforcementlearning | cf30cc0ab2b0e515cd4b643fc55c60cc5f38a481 | [
"MIT"
] | null | null | null | Project/headers/HelperFunctions.hh | anshuman1811/cs687-reinforcementlearning | cf30cc0ab2b0e515cd4b643fc55c60cc5f38a481 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream> // For console i/o
#include <vector> // For vectors, not including linear algebra
#include <random> // For random number generation
#include <algorithm> // For min/max functions
// Additional libraries that you will have to download.
// First is Eigen, which we use for line... | 58.978417 | 372 | 0.633081 | anshuman1811 |
92957e83fd0e8838a7f92589057c12265ed6de25 | 35,911 | cpp | C++ | src/ttauri/tokenizer.cpp | prollings/ttauri | 51aa748eb52b72a06038ffa12952523cf3d4f9b6 | [
"BSL-1.0"
] | null | null | null | src/ttauri/tokenizer.cpp | prollings/ttauri | 51aa748eb52b72a06038ffa12952523cf3d4f9b6 | [
"BSL-1.0"
] | null | null | null | src/ttauri/tokenizer.cpp | prollings/ttauri | 51aa748eb52b72a06038ffa12952523cf3d4f9b6 | [
"BSL-1.0"
] | null | null | null | // Copyright Take Vos 2019-2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include "tokenizer.hpp"
namespace tt {
enum class tokenizer_state_t: uint8_t {
Initial,
Name,
MinusOrPlus, ... | 34.266221 | 147 | 0.621147 | prollings |
92973dda4203cd24ca131457c4d824ecb2cbf27f | 453 | cpp | C++ | window-move-1.cpp | ADITYA-CS/ncurse | f6a9ce3b5e024b76338ab92ae966daf63eb53bc2 | [
"MIT"
] | null | null | null | window-move-1.cpp | ADITYA-CS/ncurse | f6a9ce3b5e024b76338ab92ae966daf63eb53bc2 | [
"MIT"
] | null | null | null | window-move-1.cpp | ADITYA-CS/ncurse | f6a9ce3b5e024b76338ab92ae966daf63eb53bc2 | [
"MIT"
] | null | null | null | #include <ncurses.h>
#define TSIZE 18
int main() {
WINDOW *b;
int maxx, maxy, y, x;
initscr();
bkgd('.');
refresh();
getmaxyx(stdscr, maxy, maxx);
x = (maxx-TSIZE) >> 1;
b = newwin(1, TSIZE, 0, x);
waddstr(b, "I'm getting sick!");
for(y=0; y < maxy; y++){
mvwin(b, y... | 15.1 | 36 | 0.470199 | ADITYA-CS |
929c9124c54184211afececa21d22ef6b9b03edc | 8,663 | cpp | C++ | tests/unit/src/common/stream_channel.cpp | WeiDaiWD/APSI | b799d7a21d69867c07e91a3fd610f13e17cf91f5 | [
"MIT"
] | 72 | 2021-05-04T11:25:58.000Z | 2022-03-31T07:32:57.000Z | tests/unit/src/common/stream_channel.cpp | WeiDaiWD/APSI | b799d7a21d69867c07e91a3fd610f13e17cf91f5 | [
"MIT"
] | 16 | 2021-05-06T07:58:34.000Z | 2022-03-28T22:54:51.000Z | tests/unit/src/common/stream_channel.cpp | WeiDaiWD/APSI | b799d7a21d69867c07e91a3fd610f13e17cf91f5 | [
"MIT"
] | 13 | 2021-05-04T06:44:40.000Z | 2022-03-16T03:12:54.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <string>
#include <thread>
#include <utility>
// SEAL
#include "seal/keygenerator.h"
#include "seal/publickey.h"
// APSI
#include "apsi/network/stream_channel.h"
#include "apsi/powers.h"
#include "apsi/uti... | 34.791165 | 97 | 0.62184 | WeiDaiWD |
92a19ff157a16ed176e06a96c8483de43e7e9d8c | 944 | cpp | C++ | QuickGUI/src/QuickGUIOgreEquivalents.cpp | VisualEntertainmentAndTechnologies/VENT-QuickGUI | 7c687193001bcf914bd4a9947644915091ea8723 | [
"Unlicense"
] | 3 | 2017-01-12T19:22:01.000Z | 2017-05-06T09:55:39.000Z | QuickGUI/src/QuickGUIOgreEquivalents.cpp | VisualEntertainmentAndTechnologies/VENT-QuickGUI | 7c687193001bcf914bd4a9947644915091ea8723 | [
"Unlicense"
] | null | null | null | QuickGUI/src/QuickGUIOgreEquivalents.cpp | VisualEntertainmentAndTechnologies/VENT-QuickGUI | 7c687193001bcf914bd4a9947644915091ea8723 | [
"Unlicense"
] | null | null | null | #include "QuickGUIOgreEquivalents.h"
namespace QuickGUI
{
const Vector2 Vector2::ZERO( 0, 0 );
const Vector3 Vector3::ZERO( 0, 0, 0 );
bool ColourValue::operator==(const ColourValue& rhs) const
{
return (r == rhs.r &&
g == rhs.g &&
b == rhs.b &&
a == rh... | 32.551724 | 76 | 0.555085 | VisualEntertainmentAndTechnologies |
92a418fadf9b8d9424d20df7b0066158eedf5d88 | 11,026 | hpp | C++ | common/cxx/config_cxx/include/config_cxx/yaml_wrapper.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/config_cxx/include/config_cxx/yaml_wrapper.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/config_cxx/include/config_cxx/yaml_wrapper.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | #include <memory>
#include <string>
#include <variant>
#include <vector>
#include "adstutil_cxx/compiler_diagnostics.hpp"
ADST_DISABLE_CLANG_WARNING("unused-parameter")
#include <adstutil_cxx/static_string.hpp>
ADST_RESTORE_CLANG_WARNING()
#include "adstutil_cxx/error_handler.hpp"
struct yaml_parser_s;
using yaml_pa... | 34.782334 | 120 | 0.605024 | csitarichie |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.