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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6347510e13b66c8371d4f0030a6d045886d55b61 | 458 | hpp | C++ | module/ngx_http_lua_module/ngx_http_lua_module.hpp | webcpp/hinginx | b380df41df5cd4763fba2a01a0fa0738bf6e5d4d | [
"BSD-2-Clause"
] | null | null | null | module/ngx_http_lua_module/ngx_http_lua_module.hpp | webcpp/hinginx | b380df41df5cd4763fba2a01a0fa0738bf6e5d4d | [
"BSD-2-Clause"
] | null | null | null | module/ngx_http_lua_module/ngx_http_lua_module.hpp | webcpp/hinginx | b380df41df5cd4763fba2a01a0fa0738bf6e5d4d | [
"BSD-2-Clause"
] | null | null | null | #pragma once
extern "C"
{
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
}
#include <regex>
#include <memory>
#include "lua.hpp"
static std::shared_ptr<std::regex> lua_uri_re = nullptr;
static std::shared_ptr<hi::lua> lua_engine = nullptr;
typedef struct
{
ngx_str_t package_search_path;
... | 18.32 | 56 | 0.742358 | webcpp |
634cb2fd419af69a215a9523b2e37b0aae008991 | 995 | cpp | C++ | klingon_tone/test_tonestack.cpp | transmogrifox/Bela_Misc | f9d4acc7d835dd74c54b3aa4274c8cf6b97cec53 | [
"Unlicense"
] | 6 | 2019-05-16T19:50:51.000Z | 2022-01-24T02:36:27.000Z | klingon_tone/test_tonestack.cpp | transmogrifox/Bela_Misc | f9d4acc7d835dd74c54b3aa4274c8cf6b97cec53 | [
"Unlicense"
] | 1 | 2021-04-28T01:24:30.000Z | 2021-05-02T22:34:14.000Z | klingon_tone/test_tonestack.cpp | transmogrifox/Bela_Misc | f9d4acc7d835dd74c54b3aa4274c8cf6b97cec53 | [
"Unlicense"
] | 5 | 2019-07-27T15:41:44.000Z | 2022-01-24T02:36:28.000Z | #include <stdlib.h>
#include <stdio.h>
#include "iir_1pole.h"
#include "kot_tonestack.h"
#define SAMPLE_RATE 44100
#define FSTART 10
#define FSTOP (SAMPLE_RATE/2)
#define FSTEP 10
#define FPOINTS ((FSTOP - FSTART)/FSTEP)
kot_stack stack;
kot_stack* pstack;
int main(void)
{
float frq[FPOINTS... | 23.139535 | 80 | 0.631156 | transmogrifox |
634cff3d0711fa72209c14453e537fabe6dc16ef | 2,207 | cpp | C++ | DLLMain.cpp | XianLabs/ToSPE | a738507b1c871f17198eabefaac7bbe280a98cce | [
"Unlicense"
] | 2 | 2019-05-25T11:52:29.000Z | 2021-11-08T08:52:11.000Z | DLLMain.cpp | XianLabs/ToSPE | a738507b1c871f17198eabefaac7bbe280a98cce | [
"Unlicense"
] | 1 | 2019-12-04T01:03:37.000Z | 2020-01-28T23:24:43.000Z | DLLMain.cpp | XianLabs/ToSPE | a738507b1c871f17198eabefaac7bbe280a98cce | [
"Unlicense"
] | null | null | null | #include "Hooks.hpp"
#include "HWID.hpp"
#include "Security.hpp"
extern DWORD dwSendClass;
extern int Main();
DWORD ptrToNothing = 0x01524553;
VOID Startup()
{
Sleep(500);
// HP-1824836455, D3-1748875454, Chronoless-77161068, Chronoless--14201972, Zhiwei--1431239405, Chakong--1095819322
//int N... | 21.851485 | 137 | 0.637064 | XianLabs |
634e6e4e0b9cf2fb5ee248be4c8699b2d7f00cc7 | 1,791 | cpp | C++ | LDNI Sampling/LDNIcuda/LDNIDataBoard.cpp | mossmao/Minimizing-printing-time-and-volumetric-error-by-GPU-accelerated-adaptive-slicing | e7deff6757158678ffd0d81130045c78fd1fdd41 | [
"Apache-2.0"
] | null | null | null | LDNI Sampling/LDNIcuda/LDNIDataBoard.cpp | mossmao/Minimizing-printing-time-and-volumetric-error-by-GPU-accelerated-adaptive-slicing | e7deff6757158678ffd0d81130045c78fd1fdd41 | [
"Apache-2.0"
] | null | null | null | LDNI Sampling/LDNIcuda/LDNIDataBoard.cpp | mossmao/Minimizing-printing-time-and-volumetric-error-by-GPU-accelerated-adaptive-slicing | e7deff6757158678ffd0d81130045c78fd1fdd41 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2014, Geometric Design and Manufacturing Lab in THE CHINESE UNIVERSITY OF HONG KONG
* All rights reserved.
*
* http://ldnibasedsolidmodeling.sourceforge.net/
*
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the... | 40.704545 | 101 | 0.748744 | mossmao |
634ed6c4b4df60166eda9023499785c548569432 | 465 | hpp | C++ | zen/quix/quix_memory.hpp | shauncroton/sg14 | 3e4932375ac0bcec3b38b8a7686589c888722830 | [
"Apache-2.0"
] | 1 | 2016-12-10T07:21:17.000Z | 2016-12-10T07:21:17.000Z | zen/quix/quix_memory.hpp | shauncroton/sg14 | 3e4932375ac0bcec3b38b8a7686589c888722830 | [
"Apache-2.0"
] | null | null | null | zen/quix/quix_memory.hpp | shauncroton/sg14 | 3e4932375ac0bcec3b38b8a7686589c888722830 | [
"Apache-2.0"
] | null | null | null | #ifndef __ZEN__QUIX_MEMORY__HPP
#define __ZEN__QUIX_MEMORY__HPP
///
///////////////////////////////////////////////////////////////////////////////////////////////////
///
#include <zen/quix/memory/quix_memory_local.hpp>
#include <zen/quix/memory/quix_memory_mapped.hpp>
#include <zen/quix/memory/quix_memory_shared.hpp... | 31 | 99 | 0.447312 | shauncroton |
6351e836669825b3ef6b10e7f2d9824b1f4b369d | 1,631 | cpp | C++ | math/pollard-rho.cpp | hsnavarro/icpc-notebook | 5e501ecdd56a2a719d2a3a5e99e09d926d7231a3 | [
"MIT"
] | null | null | null | math/pollard-rho.cpp | hsnavarro/icpc-notebook | 5e501ecdd56a2a719d2a3a5e99e09d926d7231a3 | [
"MIT"
] | null | null | null | math/pollard-rho.cpp | hsnavarro/icpc-notebook | 5e501ecdd56a2a719d2a3a5e99e09d926d7231a3 | [
"MIT"
] | null | null | null | // Pollard Rho - O(n^1/4)
mt19937_64 llrand((int) chrono::steady_clock::now().time_since_epoch().count());
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; };
ll addmod(ll a, ll b, ll mod) {
if(a >= mod - b) return a + b - mod;
return a + b;
}
ll mulmod(ll a, ll b, ll mod) {
ll ans = 0;
while... | 22.971831 | 81 | 0.459227 | hsnavarro |
635876bce75ffbb7eef7551e5296d702b9c0ed44 | 711 | cpp | C++ | src/nchip8/io.cpp | ocanty/nchip8 | 05735e1d1273afccccf0b3cc84a620cf360a388b | [
"MIT"
] | 5 | 2019-01-08T17:55:12.000Z | 2021-05-02T07:47:08.000Z | src/nchip8/io.cpp | ocanty/nchip8 | 05735e1d1273afccccf0b3cc84a620cf360a388b | [
"MIT"
] | null | null | null | src/nchip8/io.cpp | ocanty/nchip8 | 05735e1d1273afccccf0b3cc84a620cf360a388b | [
"MIT"
] | 1 | 2019-03-02T12:18:08.000Z | 2019-03-02T12:18:08.000Z | //
// Created by ocanty on 10/10/18.
//
#include "io.hpp"
namespace nchip8
{
std::stringstream log;
std::ostream& inst(std::ostream& out)
{
return out << std::showbase << std::setfill('0') << std::setw(4) << std::hex;
}
std::ostream& nnn(std::ostream& out)
{
return out << std::showbase << std::setfill('0')... | 19.216216 | 81 | 0.583685 | ocanty |
635b7b44472f978c87b4e89b71aea50ca4d1ac56 | 5,372 | cpp | C++ | ImageMetalling-17/ofx/plugin/Factory.cpp | dnevera/ImageMetalling | d16b31f44a221dd37ca721a0ff8a84bbf2b04209 | [
"MIT"
] | 37 | 2015-11-01T06:16:35.000Z | 2022-02-12T22:44:28.000Z | ImageMetalling-17/ofx/plugin/Factory.cpp | dnevera/ImageMetalling | d16b31f44a221dd37ca721a0ff8a84bbf2b04209 | [
"MIT"
] | 1 | 2021-07-12T22:10:00.000Z | 2021-07-12T22:10:00.000Z | ImageMetalling-17/ofx/plugin/Factory.cpp | dnevera/ImageMetalling | d16b31f44a221dd37ca721a0ff8a84bbf2b04209 | [
"MIT"
] | 5 | 2017-06-14T10:30:42.000Z | 2018-10-22T21:57:47.000Z | //
// Created by denn nevera on 15/04/2020.
//
#include "Factory.h"
#include "Plugin.h"
#include <string>
#include <algorithm>
namespace imetalling::falsecolor {
Factory::Factory(const std::string& plugin_id,
const std::string& plugin_name,
const std::string& plugin_des... | 34.658065 | 122 | 0.689687 | dnevera |
6369b44637365fdc7c9b32fae90b4b33792eedc0 | 5,966 | hpp | C++ | inc/rasters/entities/LayeredSpheroidGrid/string_cast_test.hpp | davidson16807/libtectonics | aa0ae2b8a4a1d2a9a346bbdeb334be876ad75646 | [
"CC-BY-4.0"
] | 7 | 2020-06-09T19:56:55.000Z | 2021-02-17T01:53:30.000Z | inc/rasters/entities/LayeredSpheroidGrid/string_cast_test.hpp | davidson16807/tectonics.cpp | c40278dba14260c598764467c7abf23b190e676b | [
"CC-BY-4.0"
] | null | null | null | inc/rasters/entities/LayeredSpheroidGrid/string_cast_test.hpp | davidson16807/tectonics.cpp | c40278dba14260c598764467c7abf23b190e676b | [
"CC-BY-4.0"
] | null | null | null |
#include <iostream> //std::cout
#include <sstream> //std::stringstream
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch/catch.hpp"
#define GLM_FORCE_PURE // disable anonymous structs so we can build with ISO C++
#include <glm/vec3.hpp> ... | 34.686047 | 97 | 0.459437 | davidson16807 |
636daec412b213372f93f3bd0b01039b30e4547c | 8,329 | hpp | C++ | include/llvm-abi/ArgInfo.hpp | scrossuk/llvm-abi | bad12c7cb1cdd271cd8804d1ace1b5d1799a2908 | [
"MIT"
] | 29 | 2016-11-14T15:58:23.000Z | 2022-01-07T13:05:39.000Z | include/llvm-abi/ArgInfo.hpp | scrossuk/llvm-abi | bad12c7cb1cdd271cd8804d1ace1b5d1799a2908 | [
"MIT"
] | null | null | null | include/llvm-abi/ArgInfo.hpp | scrossuk/llvm-abi | bad12c7cb1cdd271cd8804d1ace1b5d1799a2908 | [
"MIT"
] | 4 | 2017-12-03T15:51:24.000Z | 2020-07-31T23:32:27.000Z | #ifndef LLVMABI_ARGINFO_HPP
#define LLVMABI_ARGINFO_HPP
#include <sstream>
#include <llvm-abi/Type.hpp>
namespace llvm_abi {
/**
* \brief Argument information
*
* A data structure used by ABIs to represent how a type is passed to
* or returned from a function.
*/
class ArgInfo {
public:
/**
* \b... | 24.642012 | 79 | 0.630448 | scrossuk |
6371bd3bbc2a8c2eed95e2ca286f4d37c7416c1a | 190 | cpp | C++ | Difficulty 3/ladice.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 3/ladice.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 3/ladice.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int N, L, A, B;
cin >> N >> L;
bool drawers[L];
for(int i = 1; i <= N; i++) {
cin >> A >> B;
}
} | 13.571429 | 33 | 0.415789 | BrynjarGeir |
63734feea5c09103def984a22ae7b3e0adc02563 | 400 | cpp | C++ | LinkedIn Practics Hackerrank/nested logic.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | LinkedIn Practics Hackerrank/nested logic.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | LinkedIn Practics Hackerrank/nested logic.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int da,ma,ya,de,me,ye;
scanf("%d %d %d",&da,&ma,&ya);
scanf("%d %d %d",&de,&me,&ye);
long long fine=0;
if(da<=de && ma<=me && ya<=ye)
{
fine=0;
}
else if(da>de && ma==me && ya== ye)
{
fine=15*(da-de);
}
else if(ma>me && ya==ye)
{
fine=500*... | 13.333333 | 36 | 0.52 | DevGithub007 |
63744b1add67a8238d884cd3100da18e63eec5b5 | 9,712 | hpp | C++ | dpt/tree/distributed_patricia_trie.hpp | kurpicz/dpt | b04679cd615604db72df2d184b84b09f7052ae3e | [
"BSD-2-Clause"
] | 7 | 2017-03-23T05:19:53.000Z | 2021-02-26T14:25:08.000Z | dpt/tree/distributed_patricia_trie.hpp | kurpicz/dpt | b04679cd615604db72df2d184b84b09f7052ae3e | [
"BSD-2-Clause"
] | 2 | 2019-04-04T02:24:06.000Z | 2019-04-04T02:57:08.000Z | dpt/tree/distributed_patricia_trie.hpp | kurpicz/dpt | b04679cd615604db72df2d184b84b09f7052ae3e | [
"BSD-2-Clause"
] | 2 | 2019-04-03T20:09:47.000Z | 2021-10-30T16:06:47.000Z | /*******************************************************************************
* dpt/tree/distributed_patricia_trie.hpp
*
* Part of dpt - Distributed Patricia Trie
*
* Copyright (C) 2016-2017 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
*
* All rights reserved. Published under the BSD-2 license in the LICE... | 41.862069 | 80 | 0.657022 | kurpicz |
63758c8023869335f37d04b1597c31355ce907c0 | 821 | cpp | C++ | cf/Div2/D/Flowers/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/D/Flowers/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/D/Flowers/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
using namespace std;
const int MOD = 1e9 + 7;
// Not currently working
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... | 21.051282 | 72 | 0.472594 | wdjpng |
637a78bedcf9c5537af74873d487a8f619119b85 | 19,747 | cpp | C++ | externals/memtrack/MemTrack.cpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 3 | 2017-09-08T06:05:10.000Z | 2017-10-28T04:22:20.000Z | externals/memtrack/MemTrack.cpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 894 | 2017-08-30T09:57:28.000Z | 2018-01-30T12:35:38.000Z | externals/memtrack/MemTrack.cpp | Chainsawkitten/LargeGameProjectEngine | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 1 | 2020-11-06T23:59:58.000Z | 2020-11-06T23:59:58.000Z | /*
Copyright (c) 2002, 2008 Curtis Bartley
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 followi... | 34.888693 | 100 | 0.548235 | Chainsawkitten |
637d85d3321414b8f7c6d702c900eb3947653342 | 214 | cpp | C++ | .tutorials/zetcode.com_sources/02_First_programs_in_wxWidgets/04_Widgets_communicate/main.cpp | Y2Kill/VSCode-wxWidgets-MinGW-W64-template | 6263a547ddb54b6a2fd4fb0836c91b790f8980d7 | [
"CC0-1.0"
] | null | null | null | .tutorials/zetcode.com_sources/02_First_programs_in_wxWidgets/04_Widgets_communicate/main.cpp | Y2Kill/VSCode-wxWidgets-MinGW-W64-template | 6263a547ddb54b6a2fd4fb0836c91b790f8980d7 | [
"CC0-1.0"
] | null | null | null | .tutorials/zetcode.com_sources/02_First_programs_in_wxWidgets/04_Widgets_communicate/main.cpp | Y2Kill/VSCode-wxWidgets-MinGW-W64-template | 6263a547ddb54b6a2fd4fb0836c91b790f8980d7 | [
"CC0-1.0"
] | null | null | null | #include "main.h"
#include "Communicate.h"
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
Communicate *communicate = new Communicate(wxT("Widgets communicate"));
communicate->Show(true);
return true;
} | 16.461538 | 75 | 0.700935 | Y2Kill |
637dd709fdd53da697ed1a5dc7b2359610f0dbfb | 876 | cpp | C++ | engine.control.race/Race.cpp | 00steve/engine.control.race | d98e554db0eeba986c575a62b35cc53678d97004 | [
"MIT"
] | null | null | null | engine.control.race/Race.cpp | 00steve/engine.control.race | d98e554db0eeba986c575a62b35cc53678d97004 | [
"MIT"
] | null | null | null | engine.control.race/Race.cpp | 00steve/engine.control.race | d98e554db0eeba986c575a62b35cc53678d97004 | [
"MIT"
] | null | null | null | #include "Race.h"
Race::Race(){
}
Race::~Race(){
cout << "[delete] race > ";
}
void Race::OnSetSettings(){
//Settings().Print();
EngineControl::OnSetSettings();
PhysicsWorld::PhysicsSettings(Settings());
}
bool Race::HandleMessage(NodeMessage message){
switch(message.code){
case MESSAG... | 17.877551 | 149 | 0.689498 | 00steve |
637ecb90a97f5dd1bbc1bf5163723429e477fb04 | 3,111 | hpp | C++ | include/pure/impl/Trait_From_Var.hpp | gabrielheinrich/pure-cpp | c774b135745bbb8b47a5bdfd728063e4ea0268fb | [
"BSL-1.0"
] | 8 | 2019-06-27T02:28:03.000Z | 2021-12-16T17:57:22.000Z | include/pure/impl/Trait_From_Var.hpp | gabrielheinrich/pure-cpp | c774b135745bbb8b47a5bdfd728063e4ea0268fb | [
"BSL-1.0"
] | null | null | null | include/pure/impl/Trait_From_Var.hpp | gabrielheinrich/pure-cpp | c774b135745bbb8b47a5bdfd728063e4ea0268fb | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <pure/traits.hpp>
namespace pure {
template<typename T>
struct Trait_From_Var<T, Type_Class::Bool> : Trait_Definition {
static constexpr bool to_ref_implemented = false;
template<typename From>
struct from {
static T convert (const From& self) {
switch (self.tag ()) {
case V... | 29.913462 | 77 | 0.637416 | gabrielheinrich |
637ed5bc9f610dc1d7504b87b357289cfb909e74 | 1,241 | cpp | C++ | AGC048/taskC.cpp | zhouyium/AtCoder | af66b02dc1faa317879d9a85d2458a009bef6dbd | [
"MIT"
] | null | null | null | AGC048/taskC.cpp | zhouyium/AtCoder | af66b02dc1faa317879d9a85d2458a009bef6dbd | [
"MIT"
] | null | null | null | AGC048/taskC.cpp | zhouyium/AtCoder | af66b02dc1faa317879d9a85d2458a009bef6dbd | [
"MIT"
] | null | null | null | //https://atcoder.jp/contests/agc048/tasks/agc048_c
//C - Penguin Skating
#include <bits/stdc++.h>
using namespace std;
const int MAXN=7;//1e5+4;
long long a[MAXN];
long long b[MAXN];
int main() {
int n, l;
cin>>n>>l;
for (int i=1; i<=n; i++) {
cin>>a[i];
}
a[n+1]=l+1;
for (int i=1; i... | 18.25 | 51 | 0.390814 | zhouyium |
638197eb76409d3ab9872fee27db882791b68cd2 | 499 | hpp | C++ | sprout/weed/parser/numeric.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/weed/parser/numeric.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/weed/parser/numeric.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_WEED_PARSER_NUMERIC_HPP
#define SPROUT_WEED_PARSER_NUMERIC_HPP
#include <sprout/config.hpp>
#include <sprout/weed/parser/numeric/uint_p.hpp>
#include <sprout/weed/parser/numeric/int_p.hpp>
#include <sprout/weed/parser/numeric/uint.hpp>
#include <sprout/weed/parser/numeric/int.hpp>
#include <spro... | 35.642857 | 49 | 0.787575 | osyo-manga |
6383102f2b83e703e56bae33d3f311b460cceca3 | 3,112 | hpp | C++ | Testbed/Tests/PolyCollision.hpp | minium2/Box2D | 620af0b776a4773736233f0eb3cfdbb2bd84cf26 | [
"Zlib"
] | 23 | 2015-01-17T00:20:37.000Z | 2020-05-24T07:45:43.000Z | Testbed/Tests/PolyCollision.hpp | minium2/Box2D | 620af0b776a4773736233f0eb3cfdbb2bd84cf26 | [
"Zlib"
] | null | null | null | Testbed/Tests/PolyCollision.hpp | minium2/Box2D | 620af0b776a4773736233f0eb3cfdbb2bd84cf26 | [
"Zlib"
] | 14 | 2015-01-14T09:14:25.000Z | 2022-02-10T17:27:14.000Z | /*
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpos... | 25.300813 | 109 | 0.673201 | minium2 |
6385561fe1ca27e06c2fc3f7051cc00bf0af74a5 | 178 | hpp | C++ | src/shared/stdinc/gta3/stdinc.hpp | gtaisbetterthanfn/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 186 | 2015-01-18T05:46:11.000Z | 2022-03-22T10:03:44.000Z | src/shared/stdinc/gta3/stdinc.hpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 82 | 2015-01-14T01:02:04.000Z | 2022-03-20T23:55:59.000Z | src/shared/stdinc/gta3/stdinc.hpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 34 | 2015-01-07T11:17:00.000Z | 2022-02-28T00:16:20.000Z | #pragma once
#pragma warning(disable : 4503) // 'identifier' : decorated name length exceeded, name was truncated
#include <stdinc/stdinc.hpp>
#include <modloader/gta3/gta3.hpp>
| 35.6 | 100 | 0.764045 | gtaisbetterthanfn |
638c184804c927e12e0bd950079c0e68a568308d | 1,739 | cc | C++ | example/chat_room/message_codec.cc | Sigma711/taotu | 4d4e3b4b5da62234c38322021a5142f4d4341cc6 | [
"MIT"
] | 22 | 2021-11-24T03:07:46.000Z | 2022-03-18T19:21:15.000Z | example/chat_room/message_codec.cc | InfraSail/taotu | 4d4e3b4b5da62234c38322021a5142f4d4341cc6 | [
"MIT"
] | null | null | null | example/chat_room/message_codec.cc | InfraSail/taotu | 4d4e3b4b5da62234c38322021a5142f4d4341cc6 | [
"MIT"
] | 2 | 2022-03-19T02:52:08.000Z | 2022-03-26T17:11:31.000Z | /**
* @file message_codec.cc
* @author Sigma711 (sigma711 at foxmail dot com)
* @brief Implementation of class "Codec" which is a message codec (getting the
* length of each message by the header).
* @date 2022-03-22
*
* @copyright Copyright (c) 2022 Sigma711
*
*/
#include "message_codec.h"
#include <stddef.... | 33.442308 | 80 | 0.680851 | Sigma711 |
b0cd26317684a6569739498af4e9b7d38699c1da | 1,062 | cpp | C++ | WalEngine/src/render/Camera.cpp | QuincyKing/WalEngine | 8f30c4ad200615641777f17c5b0b1dbd15ba6e03 | [
"MIT"
] | 1 | 2018-11-09T09:56:52.000Z | 2018-11-09T09:56:52.000Z | WalEngine/src/render/Camera.cpp | QuincyKing/WalnutEngine | 8f30c4ad200615641777f17c5b0b1dbd15ba6e03 | [
"MIT"
] | 1 | 2019-04-13T15:46:33.000Z | 2019-04-13T15:46:33.000Z | WalEngine/src/render/Camera.cpp | QuincyKing/WalnutEngine | 8f30c4ad200615641777f17c5b0b1dbd15ba6e03 | [
"MIT"
] | null | null | null | #include "Camera.h"
float Camera::Zoom = 45.0f;
float Camera::Near = 0.1f;
float Camera::Far = 100.0f;
const float sensitive = 0.07f;
glm::mat4 Camera::get_view_projection() const
{
glm::mat4 cameraRotation = get_transform().get_transform_rot().conjugate().to_rotation_mat();
glm::mat4 cameraTranslation = glm::mat4(... | 26.55 | 100 | 0.740113 | QuincyKing |
b0d23bccfccca39bec31c43c48ff49c3e79e8bc2 | 409 | cpp | C++ | Morphs/Importers/Utils/CoreUtils/Source/Assert.cpp | SergioRZMasson/BabylonPolymorph | 9def147959dc6292a36f9a2b055edf1d58cb2851 | [
"MIT"
] | 16 | 2020-01-09T13:36:46.000Z | 2021-11-16T10:09:54.000Z | Morphs/Importers/Utils/CoreUtils/Source/Assert.cpp | SergioRZMasson/BabylonPolymorph | 9def147959dc6292a36f9a2b055edf1d58cb2851 | [
"MIT"
] | 30 | 2020-01-09T00:49:50.000Z | 2020-07-14T18:21:52.000Z | Morphs/Importers/Utils/CoreUtils/Source/Assert.cpp | SergioRZMasson/BabylonPolymorph | 9def147959dc6292a36f9a2b055edf1d58cb2851 | [
"MIT"
] | 10 | 2020-04-09T14:10:29.000Z | 2022-03-18T09:18:40.000Z | /********************************************************
* *
* Copyright (C) Microsoft. All rights reserved. *
* *
********************************************************/
#include "CoreUtilsPch.h"
#includ... | 37.181818 | 64 | 0.337408 | SergioRZMasson |
b0d771b49fc0dd947d72bda18f33fd3a27e46657 | 12,339 | cc | C++ | Code/BBearEditor/Engine/Serializer/BBScene.pb.cc | xiaoxianrouzhiyou/BBearEditor | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 26 | 2021-06-30T02:19:30.000Z | 2021-07-23T08:38:46.000Z | Code/BBearEditor/Engine/Serializer/BBScene.pb.cc | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | null | null | null | Code/BBearEditor/Engine/Serializer/BBScene.pb.cc | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | 3 | 2021-09-01T08:19:30.000Z | 2021-12-28T19:06:40.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BBScene.proto
#include "BBScene.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <goo... | 37.966154 | 166 | 0.745928 | xiaoxianrouzhiyou |
b0dc05421ce21c635a90fa2fc7acf4291608b759 | 5,534 | hpp | C++ | include/util/gl/program.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/util/gl/program.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/util/gl/program.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | /*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed ... | 22.136 | 76 | 0.479039 | ecarpita93 |
b0e1ac456568105edfe5ccf6b0688f316557f9c6 | 17,025 | cc | C++ | source/test/persistence/Storage_test.cc | ciscoruiz/wepa | e6d922157543c91b6804f11073424a0a9c6e8f51 | [
"MIT"
] | 2 | 2018-02-03T06:56:29.000Z | 2021-04-20T10:28:32.000Z | source/test/persistence/Storage_test.cc | ciscoruiz/wepa | e6d922157543c91b6804f11073424a0a9c6e8f51 | [
"MIT"
] | 8 | 2018-02-18T21:00:07.000Z | 2018-02-20T15:31:24.000Z | source/test/persistence/Storage_test.cc | ciscoruiz/wepa | e6d922157543c91b6804f11073424a0a9c6e8f51 | [
"MIT"
] | 1 | 2018-02-09T07:09:26.000Z | 2018-02-09T07:09:26.000Z | // MIT License
//
// Copyright (c) 2018 Francisco Ruiz (francisco.ruiz.rayo@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitatio... | 33.51378 | 136 | 0.734038 | ciscoruiz |
b0e3345325da11347be4268a02907fdfbb79db24 | 7,534 | cxx | C++ | MITK/Modules/PointReg/Utilities/niftkUltrasoundPointerBasedCalibration.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Modules/PointReg/Utilities/niftkUltrasoundPointerBasedCalibration.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Modules/PointReg/Utilities/niftkUltrasoundPointerBasedCalibration.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 37.1133 | 107 | 0.679851 | NifTK |
b0efad82c110b79a5c7c2e5bec07c3d5f3077079 | 1,021 | cpp | C++ | src/question141.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question141.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question141.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
struct ListNode{
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL){}
};
class Solution {
public:
// 快慢指针
bool hasCycle(ListNode *head) {
if(head == nullptr || head->next == nullptr){
return false;
}... | 20.836735 | 57 | 0.522037 | lxb1226 |
b0f054b6e2de3088ee055dd9d4addf9adb1de1e1 | 38,836 | cpp | C++ | msj_archives/code/MSJApr97.src/MSN Case Study/control/litctl.cpp | sarangbaheti/misc-code | d47a8d1cc41f19701ce628c9f15976bb5baa239d | [
"Unlicense"
] | 1 | 2020-10-22T12:58:55.000Z | 2020-10-22T12:58:55.000Z | msj_archives/code/MSJApr97.src/MSN Case Study/control/litctl.cpp | sarangbaheti/misc-code | d47a8d1cc41f19701ce628c9f15976bb5baa239d | [
"Unlicense"
] | null | null | null | msj_archives/code/MSJApr97.src/MSN Case Study/control/litctl.cpp | sarangbaheti/misc-code | d47a8d1cc41f19701ce628c9f15976bb5baa239d | [
"Unlicense"
] | 2 | 2020-10-19T23:36:26.000Z | 2020-10-22T12:59:37.000Z | #include <windows.h>
#include <olectl.h>
#include <crtdbg.h>
#include <wininet.h>
#include <servprov.h>
#include <docobj.h>
#include "cathelp.h"
#include "guids.h"
#include "litctl.h"
#include "resource.h"
HINSTANCE g_hInst = 0;
#define NElems(_rg) (sizeof(_rg) / sizeof(_rg[0]))
CRITICAL_SECTION g_cs;
ULONG ... | 28.121651 | 118 | 0.537826 | sarangbaheti |
b0f19508713fc82860993f7c83cd30d3e035c5ed | 757 | cpp | C++ | codes/HDU/hdu4632.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu4632.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu4632.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 1005;
const int mod = 10007;
char str[maxn];
int N, dp[maxn][maxn];
int solve () {
N = strlen(str + 1);
for (int i = 1; i <= N; i++) dp[i][i] = 1;
for (int i = 1; i < N; i++)
if (str[i] == str[i+1]) dp[i][i+1] = 3;
... | 19.921053 | 75 | 0.478203 | JeraKrs |
b0f678aa8a3347cd3f47dd573ae79200699f396f | 20,521 | cpp | C++ | MMOCoreORB/src/server/zone/managers/crafting/labratories/GeneticLabratory.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/managers/crafting/labratories/GeneticLabratory.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/managers/crafting/labratories/GeneticLabratory.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
* GeneticLabratory.cpp
*
* Created on: Aug 7, 2013
* Author: swgemu
*/
#include "GeneticLabratory.h"
#include "server/zone/objects/tangible/component/genetic/GeneticComponent.h"
#include "server/zone/objects/tangible/component/dna/DnaComponent.h"
#include "Genetics.h"
#include "server/zone/objects/drafts... | 49.92944 | 205 | 0.748014 | V-Fib |
b0f8821855a04e3b8b6e0773713f02f1e5afe3fd | 756 | cc | C++ | wayland/egl/egl_window.cc | kuscsik/ozone-wayland | a809a947a0eefd1f1bbbf4f42b2370f560eb2075 | [
"BSD-3-Clause"
] | null | null | null | wayland/egl/egl_window.cc | kuscsik/ozone-wayland | a809a947a0eefd1f1bbbf4f42b2370f560eb2075 | [
"BSD-3-Clause"
] | null | null | null | wayland/egl/egl_window.cc | kuscsik/ozone-wayland | a809a947a0eefd1f1bbbf4f42b2370f560eb2075 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone/wayland/egl/egl_window.h"
#include <EGL/egl.h>
#include <wayland-egl.h>
namespace ozonewayland {
EGLWindow::EGLWindow(struct wl_surface* s... | 25.2 | 79 | 0.73545 | kuscsik |
b0fad9aff828c8d8067eb7248bd84cf8f5982dae | 47,796 | cpp | C++ | roo_material_icons/outlined/24/navigation.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | roo_material_icons/outlined/24/navigation.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | roo_material_icons/outlined/24/navigation.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | #include "navigation.h"
using namespace roo_display;
// Image file ic_outlined_24_navigation_app_settings_alt 24x24, 4-bit Alpha, RLE, 101 bytes.
static const uint8_t ic_outlined_24_navigation_app_settings_alt_data[] PROGMEM = {
0x77, 0x77, 0x10, 0x30, 0xBF, 0xB0, 0xA0, 0x27, 0x30, 0xCF, 0xD0, 0xA7, 0x3A, 0x73, 0x... | 61.911917 | 105 | 0.726965 | dejwk |
b0fbf6d415a2ff606886c333cff6c15802f2a5ba | 24,507 | cpp | C++ | src/sources/PhotonImage.cpp | waddlesplash/Photon | a93eeed8c156bde5f3721f74ebe7c21aa7e12459 | [
"BSD-3-Clause"
] | 4 | 2017-06-13T22:51:50.000Z | 2019-04-19T20:02:27.000Z | src/sources/PhotonImage.cpp | waddlesplash/Photon | a93eeed8c156bde5f3721f74ebe7c21aa7e12459 | [
"BSD-3-Clause"
] | null | null | null | src/sources/PhotonImage.cpp | waddlesplash/Photon | a93eeed8c156bde5f3721f74ebe7c21aa7e12459 | [
"BSD-3-Clause"
] | 1 | 2020-10-26T09:00:17.000Z | 2020-10-26T09:00:17.000Z | #include "PhotonImage.h"
//----------------------------------------------------------------------------------------
Layer::Layer(const char *nm, BBitmap *pic, int32 le_id, int32 the_type)
{
sprintf(name,nm);
img = pic;
id = le_id;
draw_mode= NORMAL;
is_visible = true;
alpha_activated = false;
opacity = 1... | 26.099042 | 132 | 0.642633 | waddlesplash |
b0fcc80235f755f369e0f12f9b9e6b0907688949 | 778 | cpp | C++ | BAC/exercises/ch9/UVa10066.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch9/UVa10066.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch9/UVa10066.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa111 The Twin Towers
// Rujia Liu
// 题意:求两个序列的LCS长度
// 算法:LCS
#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxn = 100 + 5;
int n, m, A[maxn], B[maxn], d[maxn][maxn];
int LCS(int* A, int n, int* B, int m) {
memset(d, 0, sizeof(d));
for(int i = 1; i <= n; i++)
for... | 22.882353 | 62 | 0.475578 | Anyrainel |
b0ff35e459caecf08e59c4fd61a9892dd1eaeda3 | 5,673 | cpp | C++ | src/main.cpp | HPytkiewicz/Dron2 | 1c959a63022b05fa1ee9eb32179891bfd59996b6 | [
"MIT"
] | null | null | null | src/main.cpp | HPytkiewicz/Dron2 | 1c959a63022b05fa1ee9eb32179891bfd59996b6 | [
"MIT"
] | null | null | null | src/main.cpp | HPytkiewicz/Dron2 | 1c959a63022b05fa1ee9eb32179891bfd59996b6 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <memory>
#include "Dr3D_gnuplot_api.hh"
#include "Draw3D_api_interface.hh"
#include "Wektor.hh"
#include "Macierz.hh"
#include "Plaszczyzna.hh"
#include "Graniastoslup.hh"
#include "Bryla.hh"
#include "Dron.hh"
#include "InterfejsDrona.hh"
#include "Przeszkoda.hh"
#include "InterfejsPrzeszk... | 37.322368 | 157 | 0.583289 | HPytkiewicz |
7c04437e0cfe2b2ef8bf75516bab481583e6d70f | 923 | cpp | C++ | run_server/src/main.cpp | tdp-libs/tp_build_www | aed5c905fe6851db3c78794a424565d241e385a0 | [
"MIT"
] | null | null | null | run_server/src/main.cpp | tdp-libs/tp_build_www | aed5c905fe6851db3c78794a424565d241e385a0 | [
"MIT"
] | null | null | null | run_server/src/main.cpp | tdp-libs/tp_build_www | aed5c905fe6851db3c78794a424565d241e385a0 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
/*
TP_WWW_PROJECT_DIR
This should be set by the build system in run_server.pro
TP_WWW_BUILD_DIR
This should be set by the build system in run_server.pro
*/
//##################################################################################################
int main()
{
#ifdef ... | 26.371429 | 100 | 0.5948 | tdp-libs |
7c04b75bd32cf325f6bd20c795bf440a0bc42890 | 4,926 | cpp | C++ | src/featurecollectiondb/featurecollectiondb.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | null | null | null | src/featurecollectiondb/featurecollectiondb.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 10 | 2018-03-02T13:58:32.000Z | 2020-06-05T11:12:42.000Z | src/featurecollectiondb/featurecollectiondb.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 3 | 2018-02-26T14:01:43.000Z | 2019-12-09T10:03:17.000Z |
#include "featurecollectiondb.h"
#include "featurecollectiondbbackend.h"
#include "util/configuration.h"
#include "util/log.h"
#include <unordered_map>
#include <cstring>
/*
* FeatureCollectionDB backend registration
*/
static std::unique_ptr<FeatureCollectionDBBackend> featurecollectiondb_backend;
typedef std:... | 40.04878 | 163 | 0.793544 | EmanuelHerrendorf |
7c1ea6a4b890de9eef9bfb3c307fe00a1d879c93 | 12,483 | cpp | C++ | src/simulation.geometry/polygon/Polygon.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | src/simulation.geometry/polygon/Polygon.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | src/simulation.geometry/polygon/Polygon.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | #include "Polygon.h"
#include <simulation.geometry/boundingVolumes/BoundingSphere.h>
#include <algorithm>
#include <math/MathDefs.h>
using namespace nspace;
using namespace std;
using namespace nspace::math::operators;
Classification classifySphere(const BoundingSphere & sphere, const Polygon & polygon){
co... | 27.556291 | 95 | 0.614436 | toeb |
7c24e915e40051ad1f1eb1b315451c37a14ff330 | 496 | cpp | C++ | Blue-Flame-Engine/Core/BF/AI/Astar/AstarAgent.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | 2 | 2020-10-12T13:40:05.000Z | 2021-09-17T08:37:03.000Z | Blue-Flame-Engine/Core/BF/AI/Astar/AstarAgent.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Core/BF/AI/Astar/AstarAgent.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | #include "AstarAgent.h"
namespace BF
{
namespace AI
{
namespace Astar
{
using namespace BF::Math;
AstarAgent::AstarAgent() :
AstarComponent(AstarComponent::Type::AstarAgent),
state(State::Idle)
{
}
AstarAgent::~AstarAgent()
{
}
void AstarAgent::SetDestination(const Vector3f& st... | 17.103448 | 95 | 0.667339 | FantasyVII |
7c2a14848a59c8e56c55b7d5e96a10743a2c8523 | 863 | hpp | C++ | fugas-multiplayer/Player.hpp | EndL11/fugas-multiplayer | e2dba471a354b37d34347e50f64a202d014447bc | [
"MIT"
] | null | null | null | fugas-multiplayer/Player.hpp | EndL11/fugas-multiplayer | e2dba471a354b37d34347e50f64a202d014447bc | [
"MIT"
] | null | null | null | fugas-multiplayer/Player.hpp | EndL11/fugas-multiplayer | e2dba471a354b37d34347e50f64a202d014447bc | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include "Character.hpp"
class Player : public Character{
int m_rank;
public:
Player() {};
Player(int t_id, std::string t_name, int t_rank): Character(t_id, t_name), m_rank(t_rank) {};
~Player() {};
Player plusRank(int t_rank) {
std::cout << "Player " << this->m_name << " +" << t... | 29.758621 | 119 | 0.607184 | EndL11 |
7c2e7a334997995880c1ea9cf45921baccf0dc15 | 10,627 | cpp | C++ | compiler/AST/bb.cpp | sungeunchoi/chapel | 3e6f662d070f766ba5f0de31015b18a34fe7bca4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/AST/bb.cpp | sungeunchoi/chapel | 3e6f662d070f766ba5f0de31015b18a34fe7bca4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/AST/bb.cpp | sungeunchoi/chapel | 3e6f662d070f766ba5f0de31015b18a34fe7bca4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include "astutil.h"
#include "bb.h"
#include "bitVec.h"
#include "expr.h"
#include "stmt.h"
#include "view.h"
BasicBlock::BasicBlock()
: id(nextid++) {}
#define BB_START() \
basicBlock = new BasicBlock()
// The assert tests that the expression we are adding to thi... | 26.701005 | 82 | 0.539945 | sungeunchoi |
7c311cab1b8283a923c0ae97920d3bbce23ebd79 | 320 | cpp | C++ | src/video/scaler.cpp | shiguredo/hisui | fb13e66fd90a0ce07e88d1cbcf76393cd569e02d | [
"Apache-2.0"
] | 31 | 2020-09-25T06:48:51.000Z | 2022-03-23T10:34:19.000Z | src/video/scaler.cpp | shiguredo/hisui | fb13e66fd90a0ce07e88d1cbcf76393cd569e02d | [
"Apache-2.0"
] | 17 | 2021-01-13T04:07:21.000Z | 2021-11-25T01:58:25.000Z | src/video/scaler.cpp | shiguredo/hisui | fb13e66fd90a0ce07e88d1cbcf76393cd569e02d | [
"Apache-2.0"
] | 2 | 2022-02-19T14:42:41.000Z | 2022-03-08T10:47:51.000Z | #include "video/scaler.hpp"
#include "video/yuv.hpp"
namespace hisui::video {
Scaler::Scaler(const std::uint32_t t_width, const std::uint32_t t_height)
: m_width(t_width), m_height(t_height) {
m_scaled = new YUVImage(m_width, m_height);
}
Scaler::~Scaler() {
delete m_scaled;
}
} // namespace hisui::video
| 18.823529 | 73 | 0.70625 | shiguredo |
7c330a4e2068d11b7e609b5987867bd3faa349a0 | 1,718 | hpp | C++ | Udp.hpp | camikura/touchdesigner-atem-chop | f4ceac02dcad55fa89469f561e317ed5069e556a | [
"MIT"
] | 10 | 2020-04-03T17:47:55.000Z | 2021-05-13T08:09:23.000Z | Udp.hpp | camikura/touchdesigner-atem-chop | f4ceac02dcad55fa89469f561e317ed5069e556a | [
"MIT"
] | 2 | 2021-01-11T15:51:10.000Z | 2021-03-16T15:15:45.000Z | Udp.hpp | camikura/touchdesigner-atem-chop | f4ceac02dcad55fa89469f561e317ed5069e556a | [
"MIT"
] | null | null | null | #pragma once
#include <winsock2.h>
#include <Ws2tcpip.h>
#pragma comment(lib, "ws2_32.lib")
#include <vector>
#define port 9910
using namespace std;
class Udp {
private:
WSAData wsaData;
SOCKET sock;
struct sockaddr_in addr;
char recv_buf[2048];
public:
Udp();
~Udp();
void setup(string ip);
void teardown... | 17.353535 | 127 | 0.666473 | camikura |
7c363fa8d806e0b26a6a4b92c05eae52ec02ebfb | 11,447 | cpp | C++ | src/stmt.cpp | zaalang/zacc | d3b7db36523c1cfb9cb75d69983e2c043758e90e | [
"BSD-2-Clause"
] | 7 | 2020-12-26T16:02:28.000Z | 2022-01-02T16:17:17.000Z | src/stmt.cpp | zaalang/zacc | d3b7db36523c1cfb9cb75d69983e2c043758e90e | [
"BSD-2-Clause"
] | null | null | null | src/stmt.cpp | zaalang/zacc | d3b7db36523c1cfb9cb75d69983e2c043758e90e | [
"BSD-2-Clause"
] | null | null | null | //
// stmt.cpp
//
// Copyright (C) 2020 Peter Niekamp. All rights reserved.
//
// This file is part of zaalang, which is BSD-2-Clause licensed.
// See http://opensource.org/licenses/BSD-2-Clause
//
#include "ast.h"
#include <iostream>
#include <cassert>
using namespace std;
namespace
{
struct spaces
{
spaces... | 22.141199 | 79 | 0.367345 | zaalang |
7c3dc545c332febbd050d11d37049636a8dd345b | 1,123 | cpp | C++ | code/Black_horse_cpp/ClassDrink/drink.cpp | LingfengPang/C-C-learning | 4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641 | [
"MIT"
] | 4 | 2021-04-16T02:20:25.000Z | 2021-10-04T12:22:35.000Z | code/Black_horse_cpp/ClassDrink/drink.cpp | LingfengPang/C-C-learning | 4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641 | [
"MIT"
] | null | null | null | code/Black_horse_cpp/ClassDrink/drink.cpp | LingfengPang/C-C-learning | 4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641 | [
"MIT"
] | 2 | 2022-01-08T06:30:20.000Z | 2022-03-26T08:39:20.000Z | #include <iostream>
using namespace std;
class AbsDrink
{
private:
/* data */
public:
virtual void boil() = 0;//煮水
virtual void brew() = 0;//冲泡
virtual void putIntoCup() = 0;//放入杯子中
virtual void putSomething() = 0;//放点其他东西
void make(){
boil();
brew();
putIntoCup();
... | 18.112903 | 44 | 0.511131 | LingfengPang |
7c4c0c9a103ec9015c20a91357fb73d86b88f842 | 5,660 | cpp | C++ | OOP-Training-master/OOP-Training-master/OOP Bonus 2/Bonus2.cpp | Freeman-A/OOP-FMI | 6426f4ca16e2949cfa6cc84f573203712b2500a7 | [
"MIT"
] | null | null | null | OOP-Training-master/OOP-Training-master/OOP Bonus 2/Bonus2.cpp | Freeman-A/OOP-FMI | 6426f4ca16e2949cfa6cc84f573203712b2500a7 | [
"MIT"
] | null | null | null | OOP-Training-master/OOP-Training-master/OOP Bonus 2/Bonus2.cpp | Freeman-A/OOP-FMI | 6426f4ca16e2949cfa6cc84f573203712b2500a7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <stdlib.h>
#define forp(i, n) for(int i=0; i<n; i++)
using namespace std;
class comun
{
vector <string> nume;
vector <string> prenume;
string titlul;
public:
comun() {}
~comun() {}
comun(vector <string> numex, vector<string> prenu... | 24.608696 | 156 | 0.498763 | Freeman-A |
7c50cb852046eafdf27721f1ea99fb2b054e6342 | 3,883 | cc | C++ | simlib/src/sampler.cc | MichalCab/IMS | d45dd8e7c0f794b4ee7f2ce1ccbc45edeaaa106e | [
"MIT"
] | null | null | null | simlib/src/sampler.cc | MichalCab/IMS | d45dd8e7c0f794b4ee7f2ce1ccbc45edeaaa106e | [
"MIT"
] | null | null | null | simlib/src/sampler.cc | MichalCab/IMS | d45dd8e7c0f794b4ee7f2ce1ccbc45edeaaa106e | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//! \file sampler.cc Periodic sampler
//
// Copyright (c) 1994-2004 Petr Peringer
//
// This library is licensed under GNU Library GPL. See the file COPYING.
//
//
// description:
// implementation of class Sampler
// - calls global f... | 23.391566 | 77 | 0.430852 | MichalCab |
7c510e5b61f48b750fca08008ab7218ea2782912 | 8,292 | cpp | C++ | src/brain/workload/lstm_tf.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 1 | 2021-01-28T17:30:20.000Z | 2021-01-28T17:30:20.000Z | src/brain/workload/lstm_tf.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | null | null | null | src/brain/workload/lstm_tf.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// lstm_tf.cpp
//
// Identification: src/brain/workload/lstm_tf.cpp
//
// Copyright (c) 2015-2018, Carnegie Mellon University Database Group
//
//===-------------------------------------------------... | 41.049505 | 80 | 0.640979 | aaron-tian |
7c5d965abb9f9b692692ecf4dff906f9b9410915 | 4,154 | hh | C++ | zookeeper/Watcher.hh | cxxjava/CxxZookeeper | 149677c785627aff839b2102ab265c745882fa52 | [
"Apache-2.0"
] | 16 | 2018-03-05T02:42:00.000Z | 2020-11-30T12:57:19.000Z | zookeeper/Watcher.hh | cxxjava/CxxZookeeper | 149677c785627aff839b2102ab265c745882fa52 | [
"Apache-2.0"
] | 1 | 2021-06-04T03:25:59.000Z | 2021-08-06T13:54:28.000Z | zookeeper/Watcher.hh | cxxjava/CxxZookeeper | 149677c785627aff839b2102ab265c745882fa52 | [
"Apache-2.0"
] | 10 | 2018-03-18T14:33:09.000Z | 2021-05-24T05:56:28.000Z | /*
* Watcher.hh
*
* Created on: 2017-11-22
* Author: cxxjava@163.com
*/
#ifndef Watcher_HH_
#define Watcher_HH_
#include "Efc.hh"
namespace efc {
namespace ezk {
/**
* This interface specifies the public interface an event handler class must
* implement. A ZooKeeper client will get various events from ... | 32.453125 | 103 | 0.617959 | cxxjava |
7c5f5317abfa551092efd4c7f53f0742835c1041 | 8,643 | cc | C++ | Test/GameTest.cc | NProof/CDC_Platform | 1c2b833e9243da5509adfa13a023e689af1f033e | [
"MIT"
] | null | null | null | Test/GameTest.cc | NProof/CDC_Platform | 1c2b833e9243da5509adfa13a023e689af1f033e | [
"MIT"
] | null | null | null | Test/GameTest.cc | NProof/CDC_Platform | 1c2b833e9243da5509adfa13a023e689af1f033e | [
"MIT"
] | null | null | null | #include <limits.h>
#include "../header/Game.h"
#include "gtest/gtest.h"
#include <algorithm>
namespace {
/*TEST(GAME, PLAYERS){
Player p1, p2;
Game game;
game.join(p1);
game.join(p2);
EXPECT_EQ(1, game.stat_p.count(&p1));
EXPECT_EQ(1, game.stat_p.count(&p2));
}*... | 34.991903 | 101 | 0.446257 | NProof |
7c6c707f83555221e55fd9e10de3b84d51d55ee8 | 2,810 | hpp | C++ | include/codegen/include/Zenject/FactoryFromBinder3Extensions_--c__DisplayClass6_0_5.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/FactoryFromBinder3Extensions_--c__DisplayClass6_0_5.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/FactoryFromBinder3Extensions_--c__DisplayClass6_0_5.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:42 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 48.448276 | 318 | 0.754093 | Futuremappermydud |
7c74273b9d7272e1cf07468263f8b5294589e45d | 2,519 | cpp | C++ | FBRenderAPI/RenderAPI.cpp | technicalart/FBRenderer | 05f3c91ec245a9408dd711395362395afe97eb4d | [
"MIT"
] | null | null | null | FBRenderAPI/RenderAPI.cpp | technicalart/FBRenderer | 05f3c91ec245a9408dd711395362395afe97eb4d | [
"MIT"
] | null | null | null | FBRenderAPI/RenderAPI.cpp | technicalart/FBRenderer | 05f3c91ec245a9408dd711395362395afe97eb4d | [
"MIT"
] | 1 | 2019-08-07T08:27:13.000Z | 2019-08-07T08:27:13.000Z | #include "stdafx.h"
#include "RenderAPI.h"
namespace fb
{
RenderAPI::eResult RenderAPI::LastResult;
RenderAPI* InitDX12(RenderAPI::eResult& LastResult, InitInfo* initInfo)
{
#if defined(_MSC_VER)
// Load MPGE_DX12.dll
auto dx12 = LoadLibrary(L"FBRenderAPI_DX12.dll");
if (!dx12) {
LastResult = RenderAPI::e... | 29.988095 | 86 | 0.730846 | technicalart |
75a8593e67ca3e002c8c7c42e85e8d42d5c2a0a5 | 7,031 | cpp | C++ | nekofs/layer/overlayfilesystem.cpp | fghj0810/nekofs | 95e06aed492119d3f72bc0529cf3ed76c390a7bd | [
"MIT"
] | 7 | 2021-12-03T04:10:06.000Z | 2022-01-18T11:13:31.000Z | nekofs/layer/overlayfilesystem.cpp | fghj0810/nekofs | 95e06aed492119d3f72bc0529cf3ed76c390a7bd | [
"MIT"
] | null | null | null | nekofs/layer/overlayfilesystem.cpp | fghj0810/nekofs | 95e06aed492119d3f72bc0529cf3ed76c390a7bd | [
"MIT"
] | null | null | null | #include "overlayfilesystem.h"
#include "../common/env.h"
#include "../common/utils.h"
#ifdef _WIN32
#include "../native_win/nativefilesystem.h"
#else
#include "../native_posix/nativefilesystem.h"
#endif
#include "../nekodata/nekodatafilesystem.h"
#include <sstream>
namespace nekofs {
std::string OverlayFileSystem:... | 27.900794 | 156 | 0.666335 | fghj0810 |
75aa8a9ca1daef6a653a76061d9b9138cafc8e49 | 729 | hpp | C++ | Dependencies/Caze/maths/mat4.hpp | chry003/Caze | 2bdc340e01e76666da1f361b76c9d44f77833337 | [
"Apache-2.0"
] | 1 | 2021-08-01T16:42:43.000Z | 2021-08-01T16:42:43.000Z | Dependencies/Caze/maths/mat4.hpp | chry003/Caze | 2bdc340e01e76666da1f361b76c9d44f77833337 | [
"Apache-2.0"
] | 3 | 2021-08-04T07:28:03.000Z | 2021-08-14T14:59:31.000Z | Dependencies/Caze/maths/mat4.hpp | chry003/Caze | 2bdc340e01e76666da1f361b76c9d44f77833337 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "vec3.hpp"
#include "vec4.hpp"
#include "maths_utils.hpp"
namespace caze { namespace maths {
struct mat4
{
union
{
float elements[4 * 4];
vec4 columns[4];
};
mat4();
mat4(float diagonal);
static mat4 identity();
mat4& multiply(const mat4& other);
friend mat4 operator*... | 21.441176 | 100 | 0.698217 | chry003 |
75b167cbfd34697e72ae6dab061c321cc6c49170 | 8,096 | cpp | C++ | MyRenderer/Bloom.cpp | Osman-Fatih-Cakir/OpenGLRenderer | 0f15f99b9c5e9c8d69c1cddd7ee9ba6b91734e96 | [
"MIT"
] | 3 | 2021-09-01T23:03:34.000Z | 2021-12-26T13:29:08.000Z | MyRenderer/Bloom.cpp | Osman-Fatih-Cakir/OpenGLRenderer | 0f15f99b9c5e9c8d69c1cddd7ee9ba6b91734e96 | [
"MIT"
] | null | null | null | MyRenderer/Bloom.cpp | Osman-Fatih-Cakir/OpenGLRenderer | 0f15f99b9c5e9c8d69c1cddd7ee9ba6b91734e96 | [
"MIT"
] | null | null | null |
#include <Bloom.h>
#include <init_shaders.h>
Bloom::Bloom()
{
create_framebuffers();
init_shader();
get_uniform_locations();
}
Bloom::~Bloom()
{
// Deallocate framebuffers
glDeleteFramebuffers(1, &hdrFBO);
glDeleteFramebuffers(2, pingpongFBO);
// Deallocate texture buffers
glDeleteT... | 33.593361 | 103 | 0.707633 | Osman-Fatih-Cakir |
75bb6f83ca3260ea16d6c2f0da4a906581292c59 | 1,104 | cpp | C++ | Zerojudge/d123.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/d123.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/d123.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <cstdio>
#include <cmath>
main()
{
int t;
int time=1;
while(scanf("%d",&t)!=EOF)
{
bool c[10000];
for(int i=0;i<10000;++i)c[i]=true;
int n[t];
for(int i=0;i<t;++i)
{
scanf("%d",&n[i]);
}
int flag=1;
prin... | 24 | 56 | 0.289855 | w181496 |
75bf607eaf178871537edf126f5b780c6e5da997 | 848 | cpp | C++ | LeetCode/Problems/Algorithms/#101_SymmetricTree_sol3_recursion_12ms_16.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#101_SymmetricTree_sol3_recursion_12ms_16.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#101_SymmetricTree_sol3_recursion_12ms_16.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : v... | 28.266667 | 94 | 0.5 | Tudor67 |
75c7eb9d68e7fc0b54d423a9bdbf45fcdab2476c | 600 | hpp | C++ | zen/test_types.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | zen/test_types.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | 2 | 2020-02-06T17:01:39.000Z | 2020-02-12T17:50:14.000Z | zen/test_types.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | #ifndef ZEN_TEST_TYPES_HPP
#define ZEN_TEST_TYPES_HPP
#include <utility>
namespace zen {
class Point {
public:
int x;
int y;
inline Point(int x, int y):
x(x), y(y) {}
inline Point(const Point& other):
x(other.x), y(other.y) {}
inline Point(Point&& other):
x(std::move(oth... | 13.636364 | 53 | 0.578333 | ZenLibraries |
75c884d20a61b8a7a9bab361f651bdcad9930e80 | 1,629 | cpp | C++ | clients/cpp/templates/RemoteAPIObjects.cpp | CoppeliaRobotics/zmqRemoteApi | 826be2ac8b7a7561be9709732d854f46963e60a6 | [
"BSD-3-Clause"
] | 4 | 2021-11-22T11:55:56.000Z | 2022-03-01T02:12:04.000Z | clients/cpp/templates/RemoteAPIObjects.cpp | CoppeliaRobotics/zmqRemoteApi | 826be2ac8b7a7561be9709732d854f46963e60a6 | [
"BSD-3-Clause"
] | null | null | null | clients/cpp/templates/RemoteAPIObjects.cpp | CoppeliaRobotics/zmqRemoteApi | 826be2ac8b7a7561be9709732d854f46963e60a6 | [
"BSD-3-Clause"
] | 2 | 2022-01-29T17:47:54.000Z | 2022-02-02T18:25:05.000Z | #py from calltip import FuncDef
#py from cpp_utils import *
namespace RemoteAPIObject
{
#py for obj, func_defs in FuncDef.from_calltips_json(pycpp.params['calltips_json']).items():
`obj`::`obj`(RemoteAPIClient *client)
: _client(client)
{
}
#py for func, func_def in func_defs.items():
#py if func_d... | 29.089286 | 123 | 0.65132 | CoppeliaRobotics |
75cc22969b7df0fc3a0fbcfc4b2345f93fe4d470 | 6,089 | cpp | C++ | src/plugins/azoth/avatarsmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/azoth/avatarsmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/azoth/avatarsmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 26.70614 | 121 | 0.660371 | Maledictus |
75cd4804aec706a7df4775dba46424f29f94236f | 877 | hpp | C++ | src/starship.hpp | tilnewman/blast4 | 733c3328287228a15334bc546ce2cbd0bee8849d | [
"CC0-1.0"
] | null | null | null | src/starship.hpp | tilnewman/blast4 | 733c3328287228a15334bc546ce2cbd0bee8849d | [
"CC0-1.0"
] | null | null | null | src/starship.hpp | tilnewman/blast4 | 733c3328287228a15334bc546ce2cbd0bee8849d | [
"CC0-1.0"
] | null | null | null | #ifndef BLAST4_STARSHIP_HPP
#define BLAST4_STARSHIP_HPP
#include "context.hpp"
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/System/Clock.hpp>
#include <SFML/Window/Event.hpp>
namespace blast4
{
class Starship
{
public:
Starship();
public:
... | 21.925 | 87 | 0.645382 | tilnewman |
75d56b6647c4a557edbeae442ba12982ad2a9fae | 6,961 | cpp | C++ | src/tests/i18n_builtins.cpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 1 | 2020-09-11T05:09:53.000Z | 2020-09-11T05:09:53.000Z | src/tests/i18n_builtins.cpp | AFB111/elonafoobar | da7a3c86dd45e68e6e490fb260ead1d67c9fff5e | [
"MIT"
] | 4 | 2021-10-30T16:45:25.000Z | 2021-11-23T06:25:43.000Z | src/tests/i18n_builtins.cpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | null | null | null | #include <sstream>
#include "../elona/character.hpp"
#include "../elona/i18n.hpp"
#include "../elona/item.hpp"
#include "../elona/itemgen.hpp"
#include "../elona/testing.hpp"
#include "../elona/ui.hpp"
#include "../elona/variables.hpp"
#include "../thirdparty/catch2/catch.hpp"
#include "tests.hpp"
using namespace std... | 38.888268 | 80 | 0.542738 | nanbansenji |
75d865e04a3aea9606735d512bb8ca696769174b | 1,826 | cpp | C++ | leetcode_cpp/reverse_words_in_a_string.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | 1 | 2015-05-29T08:40:48.000Z | 2015-05-29T08:40:48.000Z | leetcode_cpp/reverse_words_in_a_string.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | null | null | null | leetcode_cpp/reverse_words_in_a_string.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | null | null | null | // beware of unsigned int, when calculating 0 - 1.
class Solution {
public:
void reverseWords(string &s) {
// remove leading spaces
while (s[0] == ' ') {
s = s.substr(1);
}
// remove trailing spaces
while (s[static_cast<int>(s.length()) - 1] == ' ')... | 28.092308 | 107 | 0.371851 | jialing3 |
75d95b487f7e6c681e8deeb5e853a503cb2df583 | 1,025 | cc | C++ | besch/writer/imagelist_writer.cc | 4ssfscker/node-sim | 2bd3422fd645f415024907c9cf92697057cbc222 | [
"Artistic-1.0",
"MIT"
] | null | null | null | besch/writer/imagelist_writer.cc | 4ssfscker/node-sim | 2bd3422fd645f415024907c9cf92697057cbc222 | [
"Artistic-1.0",
"MIT"
] | null | null | null | besch/writer/imagelist_writer.cc | 4ssfscker/node-sim | 2bd3422fd645f415024907c9cf92697057cbc222 | [
"Artistic-1.0",
"MIT"
] | null | null | null | #include "../../utils/cstring_t.h"
#include "../../tpl/slist_tpl.h"
#include "../bildliste_besch.h"
#include "obj_node.h"
#include "image_writer.h"
#include "obj_pak_exception.h"
#include "imagelist_writer.h"
void imagelist_writer_t::write_obj(FILE* fp, obj_node_t& parent, const slist_tpl<cstring_t>& keys)
{
bildlis... | 27.702703 | 112 | 0.68878 | 4ssfscker |
75d9f11b51ed1687c8a228c621debeb2a260bffa | 959 | cpp | C++ | src/Player.cpp | Alissa0101/CI628 | f3401e9ea6a90d59572c4f079d27461148aab075 | [
"MIT"
] | null | null | null | src/Player.cpp | Alissa0101/CI628 | f3401e9ea6a90d59572c4f079d27461148aab075 | [
"MIT"
] | null | null | null | src/Player.cpp | Alissa0101/CI628 | f3401e9ea6a90d59572c4f079d27461148aab075 | [
"MIT"
] | null | null | null | #include "Player.h"
#include <SDL_image.h>
void Player::init(int _x){
x = static_cast<int>(_x);
surface = IMG_Load("Assets/BatTexture.png");
}
void Player::render(SDL_Renderer* renderer){
rect.x = static_cast<int>(x);
rect.y = static_cast<int>(y);
SDL_Texture* texture = SDL_CreateTextureFromSurface(renderer, ... | 20.847826 | 78 | 0.661105 | Alissa0101 |
75dd4cd212490e61c53f96cd444adb0cdd9a0327 | 7,979 | cpp | C++ | tests/tests/mriTests.cpp | SiFiveGregS/mri | 4771a02d135631b4c4ad9381f303e351e263dfdf | [
"Apache-2.0"
] | null | null | null | tests/tests/mriTests.cpp | SiFiveGregS/mri | 4771a02d135631b4c4ad9381f303e351e263dfdf | [
"Apache-2.0"
] | null | null | null | tests/tests/mriTests.cpp | SiFiveGregS/mri | 4771a02d135631b4c4ad9381f303e351e263dfdf | [
"Apache-2.0"
] | 1 | 2021-12-17T14:05:08.000Z | 2021-12-17T14:05:08.000Z | /* Copyright 2014 Adam Green (http://mbed.org/users/AdamGreen/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | 38.921951 | 125 | 0.765635 | SiFiveGregS |
75ddf8a575b7519c1f5c52836ef4870030e85a9a | 3,499 | cc | C++ | stt/src/stt_in_triangle_line.cc | YiZhangCUG/MyTools | e31fa0885fad72c0fce2f2b622cc8f056d3c8965 | [
"MIT"
] | 6 | 2019-01-22T23:35:11.000Z | 2021-01-28T03:21:23.000Z | stt/src/stt_in_triangle_line.cc | YiZhangCUG/MyTools | e31fa0885fad72c0fce2f2b622cc8f056d3c8965 | [
"MIT"
] | null | null | null | stt/src/stt_in_triangle_line.cc | YiZhangCUG/MyTools | e31fa0885fad72c0fce2f2b622cc8f056d3c8965 | [
"MIT"
] | 1 | 2020-09-13T03:44:20.000Z | 2020-09-13T03:44:20.000Z | #include "stt_class.h"
int SttGenerator::InTriangleLine(QuadTreeNode* node){
// If no constraint line, return false
if (array_control_line_.empty()){
return 0;
}
else{
int count, node_depth;
double node_resolution;
Cpoint tri_nor;
Cpoint lineface_nor, edgeface_nor;
Cpoint intersect[2];
Cpoint angle_m... | 41.164706 | 164 | 0.671906 | YiZhangCUG |
75de8e34e7437dbeefc8cee886a8ccc4c939ec5c | 22,336 | cpp | C++ | jsVars.cpp | GuillermoHernan/AsyncScript | 21a75647f70c5f7c20f338159f239baababd5af2 | [
"MIT"
] | 4 | 2017-01-02T19:38:17.000Z | 2019-12-17T23:38:38.000Z | jsVars.cpp | GuillermoHernan/AsyncScript | 21a75647f70c5f7c20f338159f239baababd5af2 | [
"MIT"
] | 32 | 2016-12-17T22:00:08.000Z | 2017-05-21T03:19:55.000Z | jsVars.cpp | GuillermoHernan/AsyncScript | 21a75647f70c5f7c20f338159f239baababd5af2 | [
"MIT"
] | null | null | null | /*
* File: JsVars.cpp
* Author: ghernan
*
* Javascript variables and values implementation code
*
* Created on November 21, 2016, 7:24 PM
*/
#include "ascript_pch.hpp"
#include "jsVars.h"
#include "utils.h"
#include "asString.h"
#include "microVM.h"
#include "ScriptException.h"
#include <cstdlib>
#include ... | 21.855186 | 93 | 0.611121 | GuillermoHernan |
75e1041472a506a3d72479804f386a22129af115 | 4,428 | cpp | C++ | maximal_square.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | maximal_square.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | maximal_square.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | // Problem: https://leetcode.com/problems/maximal-square/
#include <vector>
#include "utils.h"
namespace maximal_square {
class Solution {
public:
// Note: The matrix must be a rectangle, and contain '0' for the empty
// cells and '1' for the non-empty.
//
// Time: O(n), Space: O(n), n - number of ce... | 30.122449 | 86 | 0.390696 | artureganyan |
75e4c333ddf1ef6c03f3cc6284152eb31d35218a | 11,744 | cpp | C++ | examples_tests/10.AllocatorTest/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | examples_tests/10.AllocatorTest/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | examples_tests/10.AllocatorTest/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | #define _IRR_STATIC_LIB_
#include <nabla.h>
#include <random>
#include <cmath>
#include "../common/CommonAPI.h"
using namespace nbl;
using namespace core;
constexpr size_t minTestsCnt = 100u;
constexpr size_t maxTestsCnt = 200u;
constexpr size_t maxAlignmentExp = 12u; // 4096
constexpr size_t ... | 31.068783 | 175 | 0.730501 | deprilula28 |
75f06e1c2b01d0e2e744fa41ec72b181faa1988d | 637 | cpp | C++ | Remove All Adjacent Duplicates In String.cpp | durgirajesh/Leetcode | 18b11cd90e8a5ce33f4029d5b7edf9502273bc76 | [
"MIT"
] | 2 | 2020-06-25T12:46:13.000Z | 2021-07-06T06:34:33.000Z | Remove All Adjacent Duplicates In String.cpp | durgirajesh/Leetcode | 18b11cd90e8a5ce33f4029d5b7edf9502273bc76 | [
"MIT"
] | null | null | null | Remove All Adjacent Duplicates In String.cpp | durgirajesh/Leetcode | 18b11cd90e8a5ce33f4029d5b7edf9502273bc76 | [
"MIT"
] | null | null | null | class Solution {
public:
string removeDuplicates(string s) {
int i=1;
stack<char> st;
st.push(s[0]);
while(i<s.length()){
if(!st.empty() && st.top()==s[i]){
st.pop();
}
else{
st.push(s[... | 21.233333 | 47 | 0.313972 | durgirajesh |
75f2300cb518d3cc22cf69cfb6cc80453615e8d0 | 3,276 | hpp | C++ | include/swift2d/particles/ParticleEmitterComponent.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | include/swift2d/particles/ParticleEmitterComponent.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | include/swift2d/particles/ParticleEmitterComponent.hpp | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... | 42.545455 | 89 | 0.463675 | Simmesimme |
75f3cb0e3c2a4d756e496b9b179aba2d188f4a9a | 16,142 | cpp | C++ | test/test.cpp | vahancho/erkir | 8e718e3969403915526168c38865af200d6fe981 | [
"MIT"
] | 28 | 2019-04-23T13:10:17.000Z | 2021-12-24T13:22:33.000Z | test/test.cpp | vahancho/erkir | 8e718e3969403915526168c38865af200d6fe981 | [
"MIT"
] | 3 | 2019-06-13T10:14:16.000Z | 2020-12-03T10:17:28.000Z | test/test.cpp | vahancho/erkir | 8e718e3969403915526168c38865af200d6fe981 | [
"MIT"
] | 13 | 2019-01-16T06:40:13.000Z | 2021-12-24T13:22:32.000Z | /**********************************************************************************
* MIT License *
* *
* Copyright (c) 2018 Vahan Aghajanyan <vahancho@gmail.com> ... | 35.951002 | 147 | 0.595961 | vahancho |
75f41e9d01d5e795fc960cbc98425f982373434c | 1,395 | cpp | C++ | 3 course/graph_labs/lab_1/graph_el.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 3 course/graph_labs/lab_1/graph_el.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 3 course/graph_labs/lab_1/graph_el.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <sstream>
#include "graph_el.h"
using namespace std;
// вставить ребро
void Graph_EL::insert(Graph_EL::Edge e) noexcept
{
if (current_E < E) // иначе некуда вставлять
{
L[current_E] = e;
++current_E;
}
}
// удалить ребро
void Graph_EL::remove(Graph_EL::Edge e)... | 22.142857 | 103 | 0.567742 | SgAkErRu |
75f97c54d76af959dc518eb77a205549719ae20e | 952 | cpp | C++ | WA/UVa-10562.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | WA/UVa-10562.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | WA/UVa-10562.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
bool isNode(const char &c){
if(c == '#' || c == ' ' || c == '|' || c == '-' || !c || c == '\n') return false;
return true;
}
void print(const vector<string> &tree, int x, int y){
cout << tree[x][y] << '(';
if(x + 3 < tree.size() && tree[... | 23.8 | 82 | 0.484244 | chenhw26 |
2f07c6b99ec053bcb615b9d6e08fc0eef6df9567 | 1,391 | hpp | C++ | platforms/linux/src/Application/Packets/Commands/Write/Peripheral/WriteRequest.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 13 | 2018-07-04T16:35:37.000Z | 2021-03-03T10:41:07.000Z | platforms/linux/src/Application/Packets/Commands/Write/Peripheral/WriteRequest.hpp | iotile/baBLE | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 11 | 2018-06-01T20:32:32.000Z | 2019-01-21T17:03:47.000Z | platforms/linux/src/Application/Packets/Commands/Write/Peripheral/WriteRequest.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | null | null | null | #ifndef BABLE_PERIPHERAL_WRITEREQUEST_HPP
#define BABLE_PERIPHERAL_WRITEREQUEST_HPP
#include "Application/Packets/Base/ControllerToHostPacket.hpp"
namespace Packet {
namespace Commands {
namespace Peripheral {
class WriteRequest : public ControllerToHostPacket {
public:
static const Pack... | 25.759259 | 94 | 0.689432 | iotile |
2f0873ea932a8527bfdfd94c99e9075f034381b7 | 3,289 | cpp | C++ | src/exceptions.cpp | Metadiff/metadiff-core | 3b83fb033ed84827f76632c5f03d91e9b657412c | [
"Apache-2.0"
] | 11 | 2016-12-20T07:54:12.000Z | 2021-05-31T22:13:06.000Z | src/exceptions.cpp | Metadiff/metadiff-core | 3b83fb033ed84827f76632c5f03d91e9b657412c | [
"Apache-2.0"
] | 1 | 2016-11-22T17:53:06.000Z | 2016-11-23T18:43:27.000Z | src/exceptions.cpp | Metadiff/metadiff-core | 3b83fb033ed84827f76632c5f03d91e9b657412c | [
"Apache-2.0"
] | 2 | 2019-06-18T22:43:35.000Z | 2022-01-20T02:25:27.000Z | //
// Created by alex on 06/10/16.
//
#include "graph_ir.h"
namespace md {
namespace gir {
// void UnsupportedGradient::log(std::shared_ptr<spdlog::logger> const logger,
// const spdlog::level::level_enum level) const {
// logger->log(level,
// ... | 44.445946 | 96 | 0.459714 | Metadiff |
2f097a69762a202afcb235bd06c1235c749716b3 | 3,394 | cpp | C++ | BTree/BTree/Source.cpp | hongphat134/Data_Structure_And_Algorithms | 7e391f39f9add30559a26fa086e59b682bd67505 | [
"MIT"
] | null | null | null | BTree/BTree/Source.cpp | hongphat134/Data_Structure_And_Algorithms | 7e391f39f9add30559a26fa086e59b682bd67505 | [
"MIT"
] | null | null | null | BTree/BTree/Source.cpp | hongphat134/Data_Structure_And_Algorithms | 7e391f39f9add30559a26fa086e59b682bd67505 | [
"MIT"
] | null | null | null | #include "iostream"
void sort(int a[],int n){
for (int i = 0; i < n - 1; i++){
for (int j = i + 1; j < n; j++){
if (a[i] < a[j]){
int temp = a[i]; a[i] = a[j]; a[j] = temp;
}
}
}
}
int binary_Search(int arr[],int left, int right,int data = 31){
if (left <= right){
int mid = (left + right) / 2;
i... | 20.08284 | 116 | 0.49617 | hongphat134 |
2f1591b724cbd4b2f49ecb5172c073ac6b3e05e8 | 5,072 | hpp | C++ | lib/core/kotekanTrackers.hpp | kotekan/kotekan | c88fe5c4c3ee275542b40ccf17debc2f84695925 | [
"MIT"
] | 19 | 2018-12-14T00:51:52.000Z | 2022-02-20T02:43:50.000Z | lib/core/kotekanTrackers.hpp | kotekan/kotekan | c88fe5c4c3ee275542b40ccf17debc2f84695925 | [
"MIT"
] | 487 | 2018-12-13T00:59:53.000Z | 2022-02-07T16:12:56.000Z | lib/core/kotekanTrackers.hpp | kotekan/kotekan | c88fe5c4c3ee275542b40ccf17debc2f84695925 | [
"MIT"
] | 5 | 2019-05-09T19:52:19.000Z | 2021-03-27T20:13:21.000Z | #ifndef KOTEKAN_TRACKERS_HPP
#define KOTEKAN_TRACKERS_HPP
#include "Config.hpp" // for Config
#include "kotekanMode.hpp" // for kotekanMode
#include "restServer.hpp" // for connectionInstance, restServer
#include "visUtil.hpp" // for StatTracker
#include <map> // for map, map<>::value_compare
#include ... | 33.589404 | 94 | 0.672319 | kotekan |
2f18c56ab7536cdf92e19a0c87f586ca7822e8bb | 3,478 | hpp | C++ | src/model-sys/structures.hpp | BadOPCode/Oblivion2-XRM | d65d9aa4b8021fc3b50b2c09edd0b19eb7baa1b9 | [
"Zlib"
] | 78 | 2015-10-08T07:14:37.000Z | 2022-02-10T04:51:21.000Z | src/model-sys/structures.hpp | BadOPCode/Oblivion2-XRM | d65d9aa4b8021fc3b50b2c09edd0b19eb7baa1b9 | [
"Zlib"
] | 117 | 2015-12-14T16:51:42.000Z | 2020-02-16T07:00:36.000Z | src/model-sys/structures.hpp | BadOPCode/Oblivion2-XRM | d65d9aa4b8021fc3b50b2c09edd0b19eb7baa1b9 | [
"Zlib"
] | 10 | 2015-12-10T16:54:24.000Z | 2022-02-10T04:51:29.000Z | #ifndef STRUCTURES_HPP
#define STRUCTURES_HPP
#include <string>
extern std::string GLOBAL_BBS_PATH;
extern std::string GLOBAL_DATA_PATH;
extern std::string GLOBAL_MENU_PATH;
extern std::string GLOBAL_MENU_PROMPT_PATH;
extern std::string GLOBAL_TEXTFILE_PATH;
extern std::string GLOBAL_SCRIPT_PATH;
extern std::string ... | 25.955224 | 111 | 0.665037 | BadOPCode |
2f20f887000b2173390baa7fad5e798ff7d0c2a3 | 32,032 | hpp | C++ | include/crucible/Math.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | 2 | 2019-02-17T02:55:38.000Z | 2019-04-19T04:57:39.000Z | include/crucible/Math.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | null | null | null | include/crucible/Math.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | 1 | 2018-12-03T22:39:44.000Z | 2018-12-03T22:39:44.000Z | #pragma once
#include <iostream>
#include <math.h>
#undef near
#undef far
const float PI = 3.141592f;
/**
* Convert degrees to radians.
*/
inline float radians(float degrees)
{
return degrees / 180.0f * PI;
}
/**
* Convert Radians to degrees.
*/
inline float degrees(float radians)
{
... | 28.271845 | 158 | 0.553009 | pianoman373 |
2f242226726c6f4d791ed1b3266aa23331e5c9eb | 2,101 | cpp | C++ | Algorithms/0200.NumberOfIslands/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0200.NumberOfIslands/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0200.NumberOfIslands/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
int numIslands(std::vector<std::vector<char>> const &grid) const
{
const size_t rowCount = grid.size();
const size_t columnCount = grid.front().size();
std::vector<std::vector<uint8_t>> data(rowCount, std:... | 35.016667 | 148 | 0.512137 | stdstring |
2f2ec8be338b11d18df2534c1caac2c5eb09ec00 | 3,699 | cpp | C++ | cme/src/v20191029/model/ClassDeletedEvent.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | cme/src/v20191029/model/ClassDeletedEvent.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | cme/src/v20191029/model/ClassDeletedEvent.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 28.898438 | 133 | 0.683969 | suluner |
2f2fbbf82abd1166aa024dc2cec010bba2c9d310 | 511 | cpp | C++ | Game/Private/GameObjectInventory.cpp | AlfredoQT/TurretGame | 5c14c02aa95ed16de00afe80dc738170a8104d83 | [
"MIT"
] | null | null | null | Game/Private/GameObjectInventory.cpp | AlfredoQT/TurretGame | 5c14c02aa95ed16de00afe80dc738170a8104d83 | [
"MIT"
] | null | null | null | Game/Private/GameObjectInventory.cpp | AlfredoQT/TurretGame | 5c14c02aa95ed16de00afe80dc738170a8104d83 | [
"MIT"
] | null | null | null | #include "..\Public\GameObjectInventory.h"
#include "Game\Public\GameObject.h"
GameObjectInventory* Singleton<GameObjectInventory>::mSingleton = nullptr;
void GameObjectInventory::Register(GameObject * pGO)
{
mMap.Put(pGO->GetHash(), pGO);
}
void GameObjectInventory::UnRegister(GameObject * pGO)
{
mMap.Remove(pGO-... | 20.44 | 74 | 0.759295 | AlfredoQT |
2f328a2c1ea2da71d3fc787fd50f96e11d2b7c79 | 7,615 | cpp | C++ | easy2d/src/graphics/e2d_render_batch.cpp | xiyoo0812/easy2d | 4edf9683de603d7f8c9474f0923001b8de48429f | [
"MIT"
] | 3 | 2021-05-25T01:51:11.000Z | 2021-08-09T02:06:59.000Z | easy2d/src/graphics/e2d_render_batch.cpp | xiyoo0812/easy2d | 4edf9683de603d7f8c9474f0923001b8de48429f | [
"MIT"
] | null | null | null | easy2d/src/graphics/e2d_render_batch.cpp | xiyoo0812/easy2d | 4edf9683de603d7f8c9474f0923001b8de48429f | [
"MIT"
] | null | null | null | #include "e2d_render_batch.h"
#include "e2d_graphics_mgr.h"
#include "object/component/e2d_text_component.h"
#include "object/component/e2d_texture_component.h"
#include "object/component/e2d_transform_component.h"
/* Easy2D */
using namespace Easy2D;
RenderBatch::RenderBatch() : Singleton<RenderBatch>()
{
}
RenderB... | 34.771689 | 128 | 0.680762 | xiyoo0812 |
2f33de51da3bd4398478884fa4ab11e2a72fe83a | 9,793 | cpp | C++ | plugins/bbInterface/src/AgentType_Clock.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 11 | 2017-06-19T14:21:15.000Z | 2020-03-04T06:43:16.000Z | plugins/bbInterface/src/AgentType_Clock.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | null | null | null | plugins/bbInterface/src/AgentType_Clock.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 3 | 2017-07-23T18:08:55.000Z | 2019-09-16T16:28:18.000Z | /*===================================================
AGENTTYPE_CLOCK CODE
===================================================*/
// Global Include
#include <blackbox/plugin/bb.h>
#include <string.h>
#include <windows.h>
#include <time.h>
//Parent Include
#include "AgentType_Clock.h"
//Includes
#include "PluginMas... | 29.145833 | 188 | 0.644236 | mojmir-svoboda |
2f3f0e1cb0c864fe74931cb62e4a667aa6f92fc1 | 32,876 | cpp | C++ | src/src/glhelper.cpp | yangkaioppen/imgpp | 2212e8c80fc770a9bb24fed396ca43031de9e10f | [
"MIT"
] | 1 | 2020-05-12T07:35:39.000Z | 2020-05-12T07:35:39.000Z | src/src/glhelper.cpp | yangkaioppen/imgpp | 2212e8c80fc770a9bb24fed396ca43031de9e10f | [
"MIT"
] | 2 | 2020-04-22T05:27:47.000Z | 2020-12-26T07:38:45.000Z | src/src/glhelper.cpp | yangkaioppen/imgpp | 2212e8c80fc770a9bb24fed396ca43031de9e10f | [
"MIT"
] | 2 | 2020-04-20T05:55:12.000Z | 2020-05-25T16:41:16.000Z | #include <imgpp/glhelper.hpp>
namespace {
using namespace imgpp::gl;
enum InternalFormat: uint16_t {
INTERNAL_RGB_UNORM= 0x1907, //GL_RGB
INTERNAL_BGR_UNORM = 0x80E0, //GL_BGR
INTERNAL_RGBA_UNORM = 0x1908, //GL_RGBA
INTERNAL_BGRA_UNORM = 0x80E1, //GL_BGRA
INTERNAL_BGRA8_UNORM = 0x93A1, //GL_BGR... | 56.198291 | 128 | 0.760311 | yangkaioppen |
2f3f1024e65a4ebbe26c7d0e6115fb4c0fb8f885 | 2,837 | cpp | C++ | base/tst_cppvtable.cpp | v1ne/v1util | 8c70d7b7517b90d62f3adf3a64df213e45818fbe | [
"BSD-2-Clause"
] | null | null | null | base/tst_cppvtable.cpp | v1ne/v1util | 8c70d7b7517b90d62f3adf3a64df213e45818fbe | [
"BSD-2-Clause"
] | null | null | null | base/tst_cppvtable.cpp | v1ne/v1util | 8c70d7b7517b90d62f3adf3a64df213e45818fbe | [
"BSD-2-Clause"
] | null | null | null | #include "v1util/callable/delegate.hpp"
#include "doctest/doctest.h"
namespace v1util { namespace test { namespace cppvtable {
using CallableKlaasMemFn = int (*)(void*, int, const int&);
using CallableFoo = int (*)(void*);
class Klaas {
public:
Klaas(int x) : mMember(x) {}
int memberFunc(int arg1, const int& ... | 31.175824 | 94 | 0.681706 | v1ne |
2f42c3fb99cc10b965ff7672465f5ea4d3dfedc0 | 31,341 | cpp | C++ | WonderBrush/src/canvas_view_states/TextState.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 11 | 2018-11-10T11:14:11.000Z | 2021-12-27T17:17:08.000Z | WonderBrush/src/canvas_view_states/TextState.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 27 | 2018-11-11T00:06:25.000Z | 2021-06-24T06:43:38.000Z | WonderBrush/src/canvas_view_states/TextState.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 7 | 2018-11-10T20:32:49.000Z | 2021-03-15T18:03:42.000Z | // TextState.cpp
//#include <math.h>
#include <stdio.h>
#include <Bitmap.h>
#include <Font.h>
#include <Cursor.h>
#include <Message.h>
#include <TextView.h>
#include <TextControl.h>
#include <Window.h>
#include "bitmap_support.h"
#include "cursors.h"
#include "defines.h"
#include "support.h"
#include "Canvas.h"
#in... | 24.600471 | 99 | 0.681982 | waddlesplash |
2f447ad4edba7f74f34c9ba065463caf08ed72ed | 64 | cpp | C++ | Source/BuildingEscape/MyDefaultPawn.cpp | ArturSymanovic/BuildingEscape | 865cb78d8e635ee163d612145fd02a7ddeed82ce | [
"MIT"
] | null | null | null | Source/BuildingEscape/MyDefaultPawn.cpp | ArturSymanovic/BuildingEscape | 865cb78d8e635ee163d612145fd02a7ddeed82ce | [
"MIT"
] | null | null | null | Source/BuildingEscape/MyDefaultPawn.cpp | ArturSymanovic/BuildingEscape | 865cb78d8e635ee163d612145fd02a7ddeed82ce | [
"MIT"
] | null | null | null | // Copyright Artur Symanovic 2020
#include "MyDefaultPawn.h"
| 10.666667 | 33 | 0.75 | ArturSymanovic |
2f4a24d9e667e796fbd3014b847319775dc704a1 | 2,440 | cpp | C++ | src/0.3.7-R1/Commands.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 7 | 2019-09-23T10:19:40.000Z | 2021-07-25T06:17:27.000Z | src/0.3.7-R1/Commands.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | null | null | null | src/0.3.7-R1/Commands.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 1 | 2021-04-11T17:13:00.000Z | 2021-04-11T17:13:00.000Z | /*
This is a SAMP (0.3.7-R1) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "Commands.h"
SAMP::CMDPROC SAMP::Commands::Default = SAMP::CMDPROC(SAMP_ADD... | 62.564103 | 99 | 0.761885 | DarkP1xel |
0173a0bce143580bfa773e5704d6c47f652ab534 | 6,412 | cpp | C++ | darkstar/src/Hook/Game.cpp | matthew-rindel/darkstar-extender | 3674fc1a2d60d4b0d5fbe4231cc4e8cca6ce73cd | [
"MIT"
] | 2 | 2020-09-29T07:46:22.000Z | 2020-12-30T07:25:55.000Z | darkstar/src/Hook/Game.cpp | matthew-rindel/darkstar-extender | 3674fc1a2d60d4b0d5fbe4231cc4e8cca6ce73cd | [
"MIT"
] | null | null | null | darkstar/src/Hook/Game.cpp | matthew-rindel/darkstar-extender | 3674fc1a2d60d4b0d5fbe4231cc4e8cca6ce73cd | [
"MIT"
] | null | null | null | #include <memory>
#include <map>
#include <string_view>
#include <set>
#include <nlohmann/json.hpp>
#include <Darkstar/Proxy.hpp>
#include "Hook/Game.hpp"
#include "Hook/GameConsole.hpp"
namespace Hook
{
static std::set<std::string> callbackNames;
static std::map<std::pair<std::string_view, std::int32_t>, Core... | 42.463576 | 156 | 0.66048 | matthew-rindel |
0173b935124bfef59595286e2cff28b89fca4877 | 1,367 | cpp | C++ | ui/src/win/monitor.cpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 27 | 2020-01-02T07:40:57.000Z | 2022-03-09T14:43:56.000Z | ui/src/win/monitor.cpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | null | null | null | ui/src/win/monitor.cpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 3 | 2020-05-21T07:02:08.000Z | 2021-07-01T00:56:38.000Z | #include <Windows.h>
#include <xaml/result_win32.h>
#include <xaml/ui/drawing_conv.hpp>
#include <xaml/ui/monitor.h>
using namespace std;
struct xaml_monitor_get_args
{
xaml_vector<xaml_monitor>* vec;
xaml_result res;
};
static xaml_result XAML_CALL xaml_monitor_enum(HMONITOR m, xaml_vector<xaml_monitor>* ve... | 25.792453 | 103 | 0.701536 | Berrysoft |
01762a2e99732373307984a1070b2f70324f696c | 1,132 | cpp | C++ | ch06/list_6.4/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 17 | 2020-01-01T16:44:05.000Z | 2022-03-31T07:20:13.000Z | ch06/list_6.4/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 1 | 2021-07-04T01:41:53.000Z | 2021-07-14T19:17:01.000Z | ch06/list_6.4/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 3 | 2019-11-28T14:37:09.000Z | 2021-05-22T02:55:15.000Z | #include <iostream>
class Integer
{
int value;
public:
Integer(int value) : value{ value } { }
Integer& operator++(); // 前置インクリメント演算子
Integer& operator--(); // 前置デクリメント演算子
// 後置は第2項にint型を受け取る関数としてオーバーロード
Integer operator++(int); // 後置インクリメント演算子
Integer operator--(int); // 後... | 15.943662 | 59 | 0.54417 | shoeisha-books |
017687d331f58f29bf4380d856bf39b89f93136b | 4,135 | cpp | C++ | src/bbf_fix.cpp | trapexit/bbf | c57696e74dd87e00d3ac660eb3ee9423b6f55c89 | [
"0BSD"
] | 82 | 2016-12-05T22:58:48.000Z | 2022-03-21T12:38:19.000Z | src/bbf_fix.cpp | trapexit/bbf | c57696e74dd87e00d3ac660eb3ee9423b6f55c89 | [
"0BSD"
] | 7 | 2018-12-12T03:33:51.000Z | 2020-11-30T23:14:52.000Z | src/bbf_fix.cpp | trapexit/bbf | c57696e74dd87e00d3ac660eb3ee9423b6f55c89 | [
"0BSD"
] | 5 | 2019-07-10T17:39:55.000Z | 2021-07-17T21:47:31.000Z | /*
ISC License
Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PR... | 24.909639 | 76 | 0.607739 | trapexit |
018b39a49eeee527b84a7a91cb10e60b9250f205 | 13,617 | hpp | C++ | safet/variant.hpp | kevin-logan/libsafet | 32cbf47e50b1dca54940ca824bb6f6110ade25e9 | [
"Apache-2.0"
] | 1 | 2019-09-11T16:01:12.000Z | 2019-09-11T16:01:12.000Z | safet/variant.hpp | kevin-logan/libsafet | 32cbf47e50b1dca54940ca824bb6f6110ade25e9 | [
"Apache-2.0"
] | null | null | null | safet/variant.hpp | kevin-logan/libsafet | 32cbf47e50b1dca54940ca824bb6f6110ade25e9 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <safet/optional.hpp>
#include <safet/pack.hpp>
#include <functional>
#include <variant>
namespace safet {
template <typename... Args>
class variant;
namespace variant_impl {
// acts as a very simple wrapper over a reference (even simpler than `std::reference_wrapper`). The only reason we ... | 35.92876 | 321 | 0.620474 | kevin-logan |
018d164aa7c8ac95a849c47861e2082136e03b0b | 5,268 | ipp | C++ | include/raycaster.ipp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | 3 | 2019-02-14T16:55:33.000Z | 2022-02-07T13:08:47.000Z | include/raycaster.ipp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | 1 | 2019-02-14T17:10:37.000Z | 2019-02-14T17:10:37.000Z | include/raycaster.ipp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | null | null | null | template <typename PointType>
raycaster<PointType>::raycaster(const PointCloud& model, const PointCloud& scene, float pointRadius, float depthTolerance) {
m_modelSize = model.size();
m_optixContext = optix::Context::create();
m_optixContext->setEntryPointCount(1);
m_optixContext->setRayTypeCount(1);
... | 43.180328 | 124 | 0.746014 | richard-vock |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.