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
1d3547a2ec082cb83a36c6e4355c6b7c54e0331e
2,177
cpp
C++
cml/source/MRsaEncrypt.cpp
WhyWolfie/FGunZ
90ae361059cd55361ebd2c414c5f3e1c36df6c48
[ "FSFAP" ]
null
null
null
cml/source/MRsaEncrypt.cpp
WhyWolfie/FGunZ
90ae361059cd55361ebd2c414c5f3e1c36df6c48
[ "FSFAP" ]
null
null
null
cml/source/MRsaEncrypt.cpp
WhyWolfie/FGunZ
90ae361059cd55361ebd2c414c5f3e1c36df6c48
[ "FSFAP" ]
null
null
null
#include "stdafx.h" /* #include "MRsaEncrypt.h" #include "rsa.h" #include "randpool.h" #include "gzip.h" #include "hex.h" #include "files.h" using namespace std; using namespace CryptoPP; #ifdef _DEBUG #pragma comment (lib,"cryptlib2003d.lib") #else #pragma comment (lib,"cryptlib2003.lib") #endif RandomNumberGen...
19.790909
128
0.701424
WhyWolfie
1d37c30108d7d24012897254cba4cc9e3201d978
1,266
cpp
C++
OneButtonRemote/speech.cpp
bobparadiso/OneButtonRemoteV2
3e0cb2f8a9326c9ecaceb53df4e0e1be0a17c5a2
[ "MIT" ]
null
null
null
OneButtonRemote/speech.cpp
bobparadiso/OneButtonRemoteV2
3e0cb2f8a9326c9ecaceb53df4e0e1be0a17c5a2
[ "MIT" ]
null
null
null
OneButtonRemote/speech.cpp
bobparadiso/OneButtonRemoteV2
3e0cb2f8a9326c9ecaceb53df4e0e1be0a17c5a2
[ "MIT" ]
null
null
null
#include <Arduino.h> #include "speech.h" #include "display.h" #include "Trace.h" #define MAX_BOOT_DELAY 3000 #define MAX_SPEECH_DELAY 3000 #define speech Serial1 void cmd(char *str); void say(char *str); // void setupSpeech() { speech.begin(9600); delay(MAX_BOOT_DELAY); } // void setVoice(in...
15.071429
59
0.575039
bobparadiso
1d3db0c4bd9e511aaf41e70ce460b821f19afc1f
3,362
cpp
C++
YorozuyaGSLib/source/_STAT_DB_BASEDetail.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/_STAT_DB_BASEDetail.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/_STAT_DB_BASEDetail.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <_STAT_DB_BASEDetail.hpp> #include <common/ATFCore.hpp> START_ATF_NAMESPACE namespace Detail { Info::_STAT_DB_BASEGetStatIndex2_ptr _STAT_DB_BASEGetStatIndex2_next(nullptr); Info::_STAT_DB_BASEGetStatIndex2_clbk _STAT_DB_BASEGetStatIndex2_user(nullptr); Info::_STAT_DB...
46.694444
118
0.675491
lemkova
1d414594f8375f528e4b395f7b254186e268e161
1,180
cc
C++
test/mocks/http_mock.cc
XiyouNiGo/summer2021-73
049f3f83c6b24da8ef2366e5322a689c7619a7b9
[ "MulanPSL-1.0" ]
34
2020-03-09T11:57:08.000Z
2022-03-29T12:18:33.000Z
test/mocks/http_mock.cc
XiyouNiGo/summer2021-73
049f3f83c6b24da8ef2366e5322a689c7619a7b9
[ "MulanPSL-1.0" ]
null
null
null
test/mocks/http_mock.cc
XiyouNiGo/summer2021-73
049f3f83c6b24da8ef2366e5322a689c7619a7b9
[ "MulanPSL-1.0" ]
8
2020-03-21T02:36:22.000Z
2021-11-13T18:15:43.000Z
/****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved. * iSulad licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan P...
33.714286
107
0.629661
XiyouNiGo
1d420273741a721f040213f254c62c126bb391ba
18,006
cpp
C++
screen.cpp
sfrwmaker/Arduino_Hot_Air_Gun
0cedf568531accb0c5be82aafe09356a29af3b7d
[ "MIT" ]
null
null
null
screen.cpp
sfrwmaker/Arduino_Hot_Air_Gun
0cedf568531accb0c5be82aafe09356a29af3b7d
[ "MIT" ]
null
null
null
screen.cpp
sfrwmaker/Arduino_Hot_Air_Gun
0cedf568531accb0c5be82aafe09356a29af3b7d
[ "MIT" ]
null
null
null
#include <Arduino.h> #include "screen.h" //---------------------------------------- class mainSCREEN [the hot air gun is OFF] --------------------------- void mainSCREEN::init(void) { pHG->switchPower(false); uint16_t temp_set = pHG->presetTemp(); uint16_t tempH = pCfg->tempHuman(temp_set);...
34.693642
136
0.498334
sfrwmaker
1d459c5637ae0d78810501201abdbab9ffd9b452
451
hpp
C++
Krakoa/Source/Graphics/2D/Primitives2D/Primitives2D.hpp
KingKiller100/Krakatoa-Engine
ff07f7328d428c04e06b561b6afd315eea39865c
[ "Apache-2.0" ]
1
2020-04-05T13:37:48.000Z
2020-04-05T13:37:48.000Z
Krakoa/Source/Graphics/2D/Primitives2D/Primitives2D.hpp
KingKiller100/Krakoa-Engine
0f2a5a5109e256a384abe8dc21eacaa45c1de610
[ "Apache-2.0" ]
null
null
null
Krakoa/Source/Graphics/2D/Primitives2D/Primitives2D.hpp
KingKiller100/Krakoa-Engine
0f2a5a5109e256a384abe8dc21eacaa45c1de610
[ "Apache-2.0" ]
null
null
null
#pragma once #include "GeometryData.hpp" #include "../Textures/TextureData2D.hpp" #include "../../Resources/iShader.hpp" #include "../../../Patterns/ManagerBase.hpp" namespace krakoa::gfx::_2D { struct PrimitivesData { public: void IncrementQuadIndexCount() noexcept; void IncrementTriangleIndexCount() noe...
16.107143
46
0.725055
KingKiller100
1d503ec438ba0e38fcdffc3926b773f871f2b12e
10,459
hpp
C++
include/lexer.hpp
andy-thomason/little_r
85c979fb2c2c9518f0ed66c82ab65013da000406
[ "MIT" ]
null
null
null
include/lexer.hpp
andy-thomason/little_r
85c979fb2c2c9518f0ed66c82ab65013da000406
[ "MIT" ]
null
null
null
include/lexer.hpp
andy-thomason/little_r
85c979fb2c2c9518f0ed66c82ab65013da000406
[ "MIT" ]
null
null
null
#ifndef LEXER_HPP #define LEXER_HPP #include <string> #include <fstream> #include <memory> #include <vector> #include <cstdint> #include <cwctype> #include <iostream> #include "objects.hpp" namespace little_r { enum class tt { undefined, end_of_input, error, str_const, num_const, symbol, ...
23.662896
115
0.434936
andy-thomason
1d505df91c40014c1e62e0bdd02e5dc342dba2e1
391
hxx
C++
tests/utility/references/UtilityRef1.hxx
UltimateScript/FOG
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
[ "BSD-3-Clause" ]
null
null
null
tests/utility/references/UtilityRef1.hxx
UltimateScript/FOG
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
[ "BSD-3-Clause" ]
2
2021-07-07T17:31:49.000Z
2021-07-16T11:40:38.000Z
tests/utility/references/UtilityRef1.hxx
OuluLinux/FOG
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
[ "BSD-3-Clause" ]
null
null
null
#ifndef UTILITYREF1_HXX #define UTILITYREF1_HXX #ifndef PRIMPRINT_HXX #include <PrimPrint.hxx> #endif class UtilityRef1 : public PrimPrint { private: #line 12 "tests/utility/utility.fog" int _extend; public: #line 14 "tests/utility/utility.inc" virtual const PrimTypeInfo& dynamic_type_info() const; public: ...
16.291667
58
0.759591
UltimateScript
1d55820ab57e0e32929cb0c2de973394c7ed38ab
638
cpp
C++
src/Proxy/Proxy.cpp
RageLog/Desing_pattern
4c6ab7372f4d5a89a1cc68e5e1020dbf7f09b7e8
[ "MIT" ]
1
2020-07-21T18:36:53.000Z
2020-07-21T18:36:53.000Z
src/Proxy/Proxy.cpp
RageLog/Desing_pattern
4c6ab7372f4d5a89a1cc68e5e1020dbf7f09b7e8
[ "MIT" ]
null
null
null
src/Proxy/Proxy.cpp
RageLog/Desing_pattern
4c6ab7372f4d5a89a1cc68e5e1020dbf7f09b7e8
[ "MIT" ]
null
null
null
#include "Proxy/Proxy.hpp" namespace virtualProxy { absObject::absObject() { } absObject::~absObject() { } Object::Object() { } Object::~Object() { } void Object::doSomeThing() { std::cout << "doing some thing in object\n"; } Proxy::Proxy() { } Proxy::~Proxy() { } void Proxy::doSomeThing() { if (!m_object) m_...
15.560976
69
0.68652
RageLog
1d5704101adc80797af5c1414cdc6ba48e2a7414
5,920
cpp
C++
src/pmp/gl/EdgeSetGL.cpp
choyfung/pmp-library
4a72c918494dac92f5e77545b71c7a327dafe71e
[ "BSD-3-Clause" ]
1
2020-05-21T04:15:44.000Z
2020-05-21T04:15:44.000Z
src/pmp/gl/EdgeSetGL.cpp
choyfung/pmp-library
4a72c918494dac92f5e77545b71c7a327dafe71e
[ "BSD-3-Clause" ]
null
null
null
src/pmp/gl/EdgeSetGL.cpp
choyfung/pmp-library
4a72c918494dac92f5e77545b71c7a327dafe71e
[ "BSD-3-Clause" ]
1
2020-05-21T04:15:52.000Z
2020-05-21T04:15:52.000Z
//============================================================================= // Copyright (C) 2017 The pmp-library developers // // 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 ...
35.238095
80
0.612162
choyfung
1d5a6bb34cfc7d073f553a22bc854e6fc8707494
2,054
hpp
C++
src/binder/inc/assemblyversion.hpp
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
10
2015-11-03T16:35:25.000Z
2021-07-31T16:36:29.000Z
src/binder/inc/assemblyversion.hpp
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
1
2019-03-05T18:50:09.000Z
2019-03-05T18:50:09.000Z
src/binder/inc/assemblyversion.hpp
CyberSys/coreclr-mono
83b2cb83b32faa45b4f790237b5c5e259692294a
[ "MIT" ]
4
2015-10-28T12:26:26.000Z
2021-09-04T11:36:04.000Z
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // ============================================================ // // AssemblyVersion.hpp // // // Defines the AssemblyVersion class // // ======================...
33.129032
101
0.631938
CyberSys
1d5ad94d37097a7043905fbcdd9e3250c6f2a528
271
cpp
C++
fibbonaci series.cpp
talhahamedi/C-language-basics
a6081c2980783358ee156172842eb13ec0526394
[ "MIT" ]
null
null
null
fibbonaci series.cpp
talhahamedi/C-language-basics
a6081c2980783358ee156172842eb13ec0526394
[ "MIT" ]
null
null
null
fibbonaci series.cpp
talhahamedi/C-language-basics
a6081c2980783358ee156172842eb13ec0526394
[ "MIT" ]
null
null
null
#include<stdio.h> #include<conio.h> main() { int i=1 , n; long t1=0, t2=1, next; printf("Enter the limit of series\n"); scanf("%d", &n); while(i<=n) { next=t1+t2; printf("%ld\t", next); t2=t1; t1=next; i++; } getch(); return 0; }
12.904762
40
0.501845
talhahamedi
1d5b6c0300da69c87a63e3a8e84ce00d44bd0578
3,952
cpp
C++
engine/global.cpp
Marzac/le3d
991153bcd6807b36be67db152501805a59499196
[ "MIT" ]
56
2017-03-25T10:48:35.000Z
2022-01-28T21:19:36.000Z
engine/global.cpp
Marzac/le3d
991153bcd6807b36be67db152501805a59499196
[ "MIT" ]
42
2018-03-06T23:10:39.000Z
2018-12-24T12:19:54.000Z
engine/global.cpp
Marzac/le3d
991153bcd6807b36be67db152501805a59499196
[ "MIT" ]
6
2018-03-04T22:51:57.000Z
2021-10-30T05:35:59.000Z
/** \file global.cpp \brief LightEngine 3D: Global helpers and definitions \brief All platforms implementation \author Frederic Meslin (fred@fredslab.net) \twitter @marzacdev \website http://fredslab.net \copyright Frederic Meslin 2015 - 2018 \version 1.75 The MIT License (MIT) Copyright (c) 2015-2018 Frédér...
26.52349
81
0.583502
Marzac
1d5df67de67dc30916db66472c2be16674f8bb08
1,357
hpp
C++
ppcnn/ppcnn_server/cnn/layer.hpp
mt-st1/PP-CNN2
a35caf4aa3081342b48556305f2b0574a3d68800
[ "Apache-2.0" ]
19
2020-09-28T20:53:20.000Z
2022-03-14T06:22:26.000Z
ppcnn/ppcnn_server/cnn/layer.hpp
mt-st1/PP-CNN2
a35caf4aa3081342b48556305f2b0574a3d68800
[ "Apache-2.0" ]
null
null
null
ppcnn/ppcnn_server/cnn/layer.hpp
mt-st1/PP-CNN2
a35caf4aa3081342b48556305f2b0574a3d68800
[ "Apache-2.0" ]
8
2020-09-28T20:53:26.000Z
2022-02-15T13:52:41.000Z
/* * Copyright 2020 Yamana Laboratory, Waseda University * Supported by JST CREST Grant Number JPMJCR1503, Japan. * * 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...
25.12963
75
0.714812
mt-st1
1d5edc6e671a1b5ac18fbf04f4fe6b79c83b7691
4,007
hpp
C++
include/safe/backends/native/safe_compare.hpp
orex/safe_integers
87115790185d2f0a281f5deddd07882aa2c68992
[ "MIT" ]
null
null
null
include/safe/backends/native/safe_compare.hpp
orex/safe_integers
87115790185d2f0a281f5deddd07882aa2c68992
[ "MIT" ]
null
null
null
include/safe/backends/native/safe_compare.hpp
orex/safe_integers
87115790185d2f0a281f5deddd07882aa2c68992
[ "MIT" ]
null
null
null
// Copyright (C) 2019 Kirill Okhotnikov. // // Use, modification, and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // // You are welcome to contact the author at: // kirill.okhotnikov@gmail.com // ...
26.361842
127
0.670327
orex
1d5ef9bff2e5ef52ccd7552b89d0e96d243a060e
3,619
cpp
C++
Motor2D/Projectile.cpp
pink-king/Final-Fantasy-Tactics
b5dcdd0aa548900b3b2279cd4c6d4220f5869c08
[ "Unlicense" ]
9
2019-04-19T17:25:34.000Z
2022-01-30T14:46:30.000Z
Motor2D/Projectile.cpp
pink-king/Final-Fantasy-Tactics
b5dcdd0aa548900b3b2279cd4c6d4220f5869c08
[ "Unlicense" ]
44
2019-03-22T10:22:19.000Z
2019-08-08T07:48:27.000Z
Motor2D/Projectile.cpp
pink-king/Final-Fantasy-Tactics
b5dcdd0aa548900b3b2279cd4c6d4220f5869c08
[ "Unlicense" ]
1
2022-01-30T14:46:34.000Z
2022-01-30T14:46:34.000Z
#include "Projectile.h" #include "j1EntityFactory.h" #include "j1PathFinding.h" #include "j1Render.h" #include "j1Window.h" Projectile::Projectile(fPoint pos, fPoint destination, uint speed, const j1Entity * owner, const char* name, PROJECTILE_TYPE type) : destination(destination), speed(speed), owner(owner), j1Ent...
24.288591
192
0.698536
pink-king
1d6465271e294377496a4ae0cf093cb6235a6078
4,497
cpp
C++
src/wifi.cpp
peperonie35/TTGO-T-Watch
f93c1fe5e62f8cda84e27edb169c83f7a9b40122
[ "BSD-3-Clause" ]
null
null
null
src/wifi.cpp
peperonie35/TTGO-T-Watch
f93c1fe5e62f8cda84e27edb169c83f7a9b40122
[ "BSD-3-Clause" ]
null
null
null
src/wifi.cpp
peperonie35/TTGO-T-Watch
f93c1fe5e62f8cda84e27edb169c83f7a9b40122
[ "BSD-3-Clause" ]
null
null
null
#include "config.h" #include "MWatch.h" #include <time.h> #include <WiFi.h> #include "esp_wifi.h" #include <WiFiUdp.h> #include <HTTPClient.h> #include <WiFiClientSecure.h> #include <NTPClient.h> static bool m_wifi_on = false; //makes a basic get http request and returns the result String make_http_get_r...
28.10625
162
0.655103
peperonie35
1d65c4351bef4c549e8728a7dfae259b60365201
9,489
cpp
C++
Lenet.cpp
SYangChen/Handwriting-Recognition-with-SystemC-HDL
6611c9d42ef39789d083cde93a03570b96dbc02a
[ "MIT" ]
1
2021-04-25T17:11:05.000Z
2021-04-25T17:11:05.000Z
Lenet.cpp
SYangChen/Handwriting-Recognition-with-SystemC-HDL
6611c9d42ef39789d083cde93a03570b96dbc02a
[ "MIT" ]
null
null
null
Lenet.cpp
SYangChen/Handwriting-Recognition-with-SystemC-HDL
6611c9d42ef39789d083cde93a03570b96dbc02a
[ "MIT" ]
null
null
null
#include "Lenet.h" void lenet::le(){ if ( reset ) { steps = 0 ; rom_rd = 0 ; ram_wr = 1 ; rom_addr = 0 ; ram_addr = 0 ; ram_data_out = 0 ; result = 0 ; times = 0 ; readKernel = true ; i_ker = 0 ; i_rom = 0 ; ramCnt = 0 ; /* cout << "Pic : " << times << endl ; for ( int x = 0 ; x < 28*28 ...
23.371921
101
0.476552
SYangChen
1d6a3f753d13f86f02b6e1adb494296208d52133
308
hpp
C++
snowflake/sdk/options.hpp
HenkieHanker2/snowflake
79d43493eed4f60c78c64f0f39d106ed02d49ab8
[ "MIT" ]
1
2019-10-02T21:07:20.000Z
2019-10-02T21:07:20.000Z
snowflake/sdk/options.hpp
HenkieHanker2/snowflake
79d43493eed4f60c78c64f0f39d106ed02d49ab8
[ "MIT" ]
null
null
null
snowflake/sdk/options.hpp
HenkieHanker2/snowflake
79d43493eed4f60c78c64f0f39d106ed02d49ab8
[ "MIT" ]
null
null
null
#pragma once #include <unordered_map> class value { public: template <typename t = float> t get( ) { return ( t ) this->m_value; } template <typename t = float> void set( t in ) { this->m_value = ( double ) in; } private: double m_value; }; extern std::unordered_map<std::string, value> options;
17.111111
54
0.662338
HenkieHanker2
1d6d82ce417401aa2e5391755d8ff8a57a7468ad
863
cpp
C++
test/yosupo_point_add_range_sum.test.cpp
beet-aizu/library-3
6437cddd6011fa4797b98e81577b1a06f11f3350
[ "CC0-1.0" ]
null
null
null
test/yosupo_point_add_range_sum.test.cpp
beet-aizu/library-3
6437cddd6011fa4797b98e81577b1a06f11f3350
[ "CC0-1.0" ]
null
null
null
test/yosupo_point_add_range_sum.test.cpp
beet-aizu/library-3
6437cddd6011fa4797b98e81577b1a06f11f3350
[ "CC0-1.0" ]
null
null
null
#define PROBLEM "https://judge.yosupo.jp/problem/point_add_range_sum" #include <iostream> #include <algorithm> #include <map> #include <set> #include <queue> #include <stack> #include <numeric> #include <bitset> #include <cmath> static const int MOD = 1000000007; using ll = long long; using u32 = unsigned; using u64 ...
23.324324
73
0.579374
beet-aizu
1d7e4e093efe49930b36bbc57f2e27b84b2f1867
5,015
cpp
C++
src/stdpath.cpp
skunkforce/kitchensink
7e453ac65182691af32aa3e8b19f72ceac0e2329
[ "BSD-2-Clause" ]
null
null
null
src/stdpath.cpp
skunkforce/kitchensink
7e453ac65182691af32aa3e8b19f72ceac0e2329
[ "BSD-2-Clause" ]
null
null
null
src/stdpath.cpp
skunkforce/kitchensink
7e453ac65182691af32aa3e8b19f72ceac0e2329
[ "BSD-2-Clause" ]
null
null
null
/*********************************************************************** * * Copyright (c) 2012-2022 Barbara Geller * Copyright (c) 2012-2022 Ansel Sermersheim * Copyright (c) 2015 The Qt Company Ltd. * * This file is part of KitchenSink. * * KitchenSink is free software, released under the BSD 2-Clause license. * For ...
30.393939
105
0.695314
skunkforce
1d834635ae8df8dd312adcc8ab7a6dce7083ef98
12,716
cpp
C++
glib-adv/wordnet.cpp
ksemer/snap
0084126c30ad49a4437bc8ea30be78484f8c58d7
[ "BSD-3-Clause" ]
1,805
2015-01-06T20:01:35.000Z
2022-03-29T16:12:51.000Z
glib-adv/wordnet.cpp
lizhaoqing/snap
907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5
[ "BSD-3-Clause" ]
168
2015-01-07T22:57:29.000Z
2022-03-15T01:20:24.000Z
glib-adv/wordnet.cpp
lizhaoqing/snap
907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5
[ "BSD-3-Clause" ]
768
2015-01-09T02:28:45.000Z
2022-03-30T00:53:46.000Z
///////////////////////////////////////////////// // Includes #include "wordnet.h" ///////////////////////////////////////////////// // WordNet-SynSet void TWnSynSet::GetDstSynSetPV( const TWnRelType& RelType, TIntV& DstSynSetPV) const { DstSynSetPV.Clr(); for (int RelN=0; RelN<RelIntIntTrV.Len(); RelN++...
44.152778
98
0.662708
ksemer
1d8500c1eeb92e643b39cad6ebb1e233fa74f896
1,927
cpp
C++
Ch3_11/Ch3_11/Source.cpp
Es10liv/mcc.cplusplus
23150f2fd5a56dbacc7c1809455e4e85d1fdd29e
[ "MIT" ]
null
null
null
Ch3_11/Ch3_11/Source.cpp
Es10liv/mcc.cplusplus
23150f2fd5a56dbacc7c1809455e4e85d1fdd29e
[ "MIT" ]
null
null
null
Ch3_11/Ch3_11/Source.cpp
Es10liv/mcc.cplusplus
23150f2fd5a56dbacc7c1809455e4e85d1fdd29e
[ "MIT" ]
null
null
null
// Chapter 3 Programming Challenge 11 #include <iostream> #include <iomanip> using namespace std; int main() { // create variables float loanPayment; float insurancePayment; float gasPayment; float oilPayment; float tiresPayment; float maintenancePayment; // get user input cout << "Enter yo...
35.036364
112
0.594707
Es10liv
1d8a3653d7f4249235ee8aabd5284e73e02079cd
628
cpp
C++
MonkeyDelivery/Src/Control/UI/Sliders/GeneralSoundsEffectSlider.cpp
miggon23/TheUnnamedGame
8b8fbf232772d5de90fb8646129afa5e8b11608e
[ "MIT" ]
7
2022-02-04T08:57:33.000Z
2022-03-06T12:54:05.000Z
MonkeyDelivery/Src/Control/UI/Sliders/GeneralSoundsEffectSlider.cpp
miggon23/MonkeyDelivery
8b8fbf232772d5de90fb8646129afa5e8b11608e
[ "MIT" ]
79
2022-02-01T15:25:51.000Z
2022-03-30T22:17:20.000Z
MonkeyDelivery/Src/Control/UI/Sliders/GeneralSoundsEffectSlider.cpp
miggon23/MonkeyDelivery
8b8fbf232772d5de90fb8646129afa5e8b11608e
[ "MIT" ]
null
null
null
#include "GeneralSoundsEffectSlider.h" #include "../../../Logic/Game.h" GeneralSoundsEffectSlider::GeneralSoundsEffectSlider(Game* game, double x, double y):Slider(game,x,y){ sliderClick_->chageMaxPosition(sliderClick_->MaxPosition() + 30); sliderClick_->chageMinPosition(sliderClick_->MinPosition() + 15); sliderCl...
39.25
121
0.757962
miggon23
1d8a7dd2b11eb48aaf48c22d8cf2cce15f335551
1,002
cpp
C++
examples/example-02c-stdvector-complex.cpp
mpb27/h5pp
bd0c70d30329732285b2c06f9dc48795f7d18180
[ "MIT" ]
null
null
null
examples/example-02c-stdvector-complex.cpp
mpb27/h5pp
bd0c70d30329732285b2c06f9dc48795f7d18180
[ "MIT" ]
null
null
null
examples/example-02c-stdvector-complex.cpp
mpb27/h5pp
bd0c70d30329732285b2c06f9dc48795f7d18180
[ "MIT" ]
null
null
null
#include <h5pp/h5pp.h> void print_complex(const std::string & msg, const std::vector<std::complex<double>> & v){ h5pp::print(msg); for(auto && c: v) h5pp::print("{}, ",c); h5pp::print("\n"); } int main() { // Initialize a file h5pp::File file("exampledir/example-02c-stdvector-complex.h5", h5pp::Fi...
33.4
98
0.668663
mpb27
1d91381ae557d06815c519f519a86c1dd05dfda8
1,190
cpp
C++
ex00/main.cpp
Igors78/cpp03
211de909cee642e63dca1bb273cb910c6cdf4104
[ "Unlicense" ]
3
2021-11-14T06:49:22.000Z
2022-01-27T19:23:23.000Z
ex00/main.cpp
Igors78/cpp03
211de909cee642e63dca1bb273cb910c6cdf4104
[ "Unlicense" ]
null
null
null
ex00/main.cpp
Igors78/cpp03
211de909cee642e63dca1bb273cb910c6cdf4104
[ "Unlicense" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: ...
39.666667
80
0.267227
Igors78
1d91d6e69accdc31b9d7cee1d6004064245c6ebc
1,071
cpp
C++
torsim/src/pir.cpp
Yiping106283/incpir
3b295dc4d8a86e87b985a1edeca81b2dfeb4268a
[ "MIT" ]
3
2021-11-21T05:58:38.000Z
2022-03-19T15:47:40.000Z
torsim/src/pir.cpp
Yiping106283/incpir
3b295dc4d8a86e87b985a1edeca81b2dfeb4268a
[ "MIT" ]
null
null
null
torsim/src/pir.cpp
Yiping106283/incpir
3b295dc4d8a86e87b985a1edeca81b2dfeb4268a
[ "MIT" ]
null
null
null
#include "pir.hpp" #include <openssl/evp.h> #include <openssl/rand.h> #include <string.h> using namespace std; Key kdf(Key mk, Key sk, uint32_t batch_no) { uint8_t *mkptr = static_cast<uint8_t *>(malloc(KeyLen)); for (int i = 0; i < KeyLen; i++) { mkptr[i] = mk[i]; } uint8_t *skptr = static_c...
21.857143
66
0.609711
Yiping106283
1d9285557aeb7ee90fe6b9de23784cb6b91fd5eb
2,489
cpp
C++
src/main/cpp/commands/MoveLiftAndShuttleCommand.cpp
cwtech2959/2019robotProject
5270aca88f723dbcba0984417bf3b9fe9af296c5
[ "MIT" ]
null
null
null
src/main/cpp/commands/MoveLiftAndShuttleCommand.cpp
cwtech2959/2019robotProject
5270aca88f723dbcba0984417bf3b9fe9af296c5
[ "MIT" ]
6
2019-01-18T20:52:56.000Z
2019-04-04T17:40:27.000Z
src/main/cpp/commands/MoveLiftAndShuttleCommand.cpp
cwtech2959/2019robotProject
5270aca88f723dbcba0984417bf3b9fe9af296c5
[ "MIT" ]
null
null
null
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
34.569444
92
0.676577
cwtech2959
1d955ede31c6b6a8050426c1461e164b663ed3a5
8,379
cpp
C++
src/examples/d3d12/spinningcube/main.cpp
bfierz/vcl
6ef8d446b6a2f46543a5b3f9f76cad0d8f691969
[ "MIT" ]
15
2015-05-15T09:14:42.000Z
2022-02-20T13:00:17.000Z
src/examples/d3d12/spinningcube/main.cpp
bfierz/vcl
6ef8d446b6a2f46543a5b3f9f76cad0d8f691969
[ "MIT" ]
54
2015-05-14T09:21:51.000Z
2021-05-28T06:09:06.000Z
src/examples/d3d12/spinningcube/main.cpp
bfierz/vcl
6ef8d446b6a2f46543a5b3f9f76cad0d8f691969
[ "MIT" ]
4
2017-04-18T06:16:42.000Z
2021-07-16T08:00:12.000Z
/* * This file is part of the Visual Computing Library (VCL) release under the * MIT license. * * Copyright (c) 2020 Basil Fierz * * 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 with...
34.481481
150
0.725027
bfierz
1d9b3bd9928825bce67e0441bbc1e96dc39e4481
235
cpp
C++
cgcollector/test/input/singleTU/0203.cpp
sebastiankreutzer/MetaCG
380728352e63e659103696974e5d3bde372dfdbf
[ "BSD-3-Clause" ]
21
2020-08-24T12:11:21.000Z
2021-12-21T09:53:18.000Z
cgcollector/test/input/singleTU/0203.cpp
sebastiankreutzer/MetaCG
380728352e63e659103696974e5d3bde372dfdbf
[ "BSD-3-Clause" ]
1
2021-10-19T08:29:22.000Z
2021-10-19T11:35:58.000Z
cgcollector/test/input/singleTU/0203.cpp
sebastiankreutzer/MetaCG
380728352e63e659103696974e5d3bde372dfdbf
[ "BSD-3-Clause" ]
4
2020-11-21T07:12:30.000Z
2021-11-08T12:09:03.000Z
using func_t = void (*)(); void get_func2(func_t *out, func_t in) { *out = in; in(); } func_t get_func(func_t f) { func_t res; get_func2(&res, f); return res; } void foo() {} int main() { auto f = get_func(foo); f(); }
13.055556
40
0.574468
sebastiankreutzer
1da0a78ce8b67476e6d06569637353e793767e7a
2,563
hpp
C++
include/Module/Reducer/Reducer.hpp
FredrikBlomgren/aff3ct
fa616bd923b2dcf03a4cf119cceca51cf810d483
[ "MIT" ]
315
2016-06-21T13:32:14.000Z
2022-03-28T09:33:59.000Z
include/Module/Reducer/Reducer.hpp
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
153
2017-01-17T03:51:06.000Z
2022-03-24T15:39:26.000Z
include/Module/Reducer/Reducer.hpp
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
119
2017-01-04T14:31:58.000Z
2022-03-21T08:34:16.000Z
/*! * \file * \brief Class module::Reducer. */ #ifndef INCREMENTER_HPP_ #define INCREMENTER_HPP_ #include <cstdint> #include <vector> #include "Tools/Math/binaryop.h" #include "Module/Module.hpp" namespace aff3ct { namespace module { namespace red { enum class tsk : size_t { reduce, SIZE }; namespace sck ...
33.723684
137
0.687866
FredrikBlomgren
1da1c26a0e72812c7138f984994ed3ca98516048
26,781
cpp
C++
jlp_gsegraf/jlp_gsegraf_data/jlp_GsegData_ReadDataParamFile.cpp
jlprieur/jlplib
6073d7a7eb76d916662b1f8a4eb54f345cf7c772
[ "MIT" ]
null
null
null
jlp_gsegraf/jlp_gsegraf_data/jlp_GsegData_ReadDataParamFile.cpp
jlprieur/jlplib
6073d7a7eb76d916662b1f8a4eb54f345cf7c772
[ "MIT" ]
null
null
null
jlp_gsegraf/jlp_gsegraf_data/jlp_GsegData_ReadDataParamFile.cpp
jlprieur/jlplib
6073d7a7eb76d916662b1f8a4eb54f345cf7c772
[ "MIT" ]
1
2020-07-09T00:20:49.000Z
2020-07-09T00:20:49.000Z
/******************************************************************************* * jlp_GsegData_ReadDataParamFile.cpp * JLP_GsegData class * * JLP * Version 29/07/2017 *******************************************************************************/ #include <stdlib.h> // exit() #include <ctype.h> // is...
34.422879
105
0.504089
jlprieur
1da3a2cbe0d1a64a4ac4e24e449bd5be27bf91fd
3,267
cpp
C++
src/function/table/sqlite/sqlite_master.cpp
RelationalAI-oss/duckdb
a4908ae17de3ac62d42633ada03077b8c3ead7a5
[ "MIT" ]
2
2020-01-07T17:19:02.000Z
2020-01-09T22:04:04.000Z
src/function/table/sqlite/sqlite_master.cpp
RelationalAI-oss/duckdb
a4908ae17de3ac62d42633ada03077b8c3ead7a5
[ "MIT" ]
null
null
null
src/function/table/sqlite/sqlite_master.cpp
RelationalAI-oss/duckdb
a4908ae17de3ac62d42633ada03077b8c3ead7a5
[ "MIT" ]
null
null
null
#include "duckdb/function/table/sqlite_functions.hpp" #include "duckdb/catalog/catalog.hpp" #include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp" #include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/main/client_context.hpp" #include "duckdb/...
27.686441
104
0.689624
RelationalAI-oss
1da3e64f2b587e35a6534fd02f2e39fe0552c21c
693
cpp
C++
oj/sp/PIR.cpp
shivanib01/codes
f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3
[ "MIT" ]
null
null
null
oj/sp/PIR.cpp
shivanib01/codes
f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3
[ "MIT" ]
null
null
null
oj/sp/PIR.cpp
shivanib01/codes
f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3
[ "MIT" ]
null
null
null
/* * Created by * Shivani Bhardwaj <shivanib134@gmail.com> */ #include<stdio.h> #include<cmath> double cosCalculator(int a, int b, int c){ double tmp=a*a+b*b-c*c; tmp=tmp/(2.0*a*b); return tmp; } int main() { int AB,AC,AD,BC,BD,CD,t; scanf("%d",&t); while(t--){ ...
23.896552
77
0.515152
shivanib01
1da8ed8c2e5b01c40a3756db658e31bc30d25ff0
641
cpp
C++
HashMap/HashMap-master/Non-Repeating Character/nonRep.cpp
SrijaniSom/dsa-code-store
148292c8f963214629f271ec8601e73d3d0e145e
[ "MIT" ]
3
2021-02-19T07:09:46.000Z
2021-10-04T10:12:45.000Z
HashMap/HashMap-master/Non-Repeating Character/nonRep.cpp
SrijaniSom/dsa-code-store
148292c8f963214629f271ec8601e73d3d0e145e
[ "MIT" ]
6
2021-02-21T19:35:18.000Z
2021-05-06T11:51:37.000Z
HashMap/HashMap-master/Non-Repeating Character/nonRep.cpp
SrijaniSom/dsa-code-store
148292c8f963214629f271ec8601e73d3d0e145e
[ "MIT" ]
6
2021-02-21T19:28:03.000Z
2021-10-04T03:35:57.000Z
#include<bits/stdc++.h> using namespace std; char nonRepeatingCharacter(string str) { map<char,int> mapp; char tak; int l = str.size(); for(int i=0;i<l;i++) { char key = str[i]; if(mapp.count(key)==0) { mapp[str[i]] = 1; } else { mapp[str[i]]++; }...
15.634146
41
0.471139
SrijaniSom
1db472fbe49a191fa7bc0432a62cc2ddbbbe405a
9,645
cpp
C++
gechord/gechord.cpp
slemouton/gecodeMCP
d038c52ffcf7351048fe5a018cee29c432d8184f
[ "MIT" ]
1
2019-05-08T16:42:09.000Z
2019-05-08T16:42:09.000Z
gechord/gechord.cpp
slemouton/gecodeMCP
d038c52ffcf7351048fe5a018cee29c432d8184f
[ "MIT" ]
1
2019-01-12T16:59:15.000Z
2019-01-12T16:59:15.000Z
gechord/gechord.cpp
slemouton/gecodeMCP
d038c52ffcf7351048fe5a018cee29c432d8184f
[ "MIT" ]
1
2019-01-12T16:41:55.000Z
2019-01-12T16:41:55.000Z
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Serge Lemouton ircam 2009 * */ #include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh> #include <gecode/set.hh> #include <iostream> #include <fstream> #include "gechord.h" using namespace Gecod...
24.541985
222
0.60394
slemouton
1db58ad838de31bd795b8c2e8e04060cfa7b974e
1,495
cc
C++
Code/2105-the-number-of-good-subsets.cc
SMartQi/Leetcode
9e35c65a48ba1ecd5436bbe07dd65f993588766b
[ "MIT" ]
2
2019-12-06T14:08:57.000Z
2020-01-15T15:25:32.000Z
Code/2105-the-number-of-good-subsets.cc
SMartQi/Leetcode
9e35c65a48ba1ecd5436bbe07dd65f993588766b
[ "MIT" ]
1
2020-01-15T16:29:16.000Z
2020-01-26T12:40:13.000Z
Code/2105-the-number-of-good-subsets.cc
SMartQi/Leetcode
9e35c65a48ba1ecd5436bbe07dd65f993588766b
[ "MIT" ]
null
null
null
class Solution { public: int numberOfGoodSubsets(vector<int>& nums) { int primes[10] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29}; int mod = 1e9 + 7; unordered_map<int, int> m; int ones = 0, result = 0; int dp[1 << 10] = {0}; int tmp[1 << 10] = {0}; dp[0] = 1; ...
28.207547
96
0.325084
SMartQi
1db860a7c9573eca34310540aa0f50c1465f30d8
2,179
cpp
C++
tests/test_byteswap/src/main.cpp
kyy13/k13
0bae4183ba0fdaf69a43ce59a1356c137fc484ec
[ "MIT" ]
2
2022-03-07T14:19:51.000Z
2022-03-08T13:23:52.000Z
tests/test_byteswap/src/main.cpp
kyy13/k13
0bae4183ba0fdaf69a43ce59a1356c137fc484ec
[ "MIT" ]
8
2022-02-18T23:38:58.000Z
2022-03-23T14:39:15.000Z
tests/test_byteswap/src/main.cpp
kyy13/k13
0bae4183ba0fdaf69a43ce59a1356c137fc484ec
[ "MIT" ]
null
null
null
// k13 // Kyle J Burgess #include "bytes.h" #include <iostream> #include <cstdint> #include <cstring> template<class T> bool test_byteswap() { // test single T a = 0, b = 0; for (size_t i = 0; i != sizeof(T); ++i) { reinterpret_cast<uint8_t*>(&a)[i] = i; reinterpret_cast<uint8_t*>(&...
17.860656
62
0.497935
kyy13
1dbda81e1a98eb42dd270e32cc6cd5173f5181f8
1,703
hpp
C++
include/lxgui/impl/input_sfml_source.hpp
unnamed-mmo/lxgui
5c4b9d0c164d2d35cfe5c59888b10020184f717d
[ "MIT" ]
null
null
null
include/lxgui/impl/input_sfml_source.hpp
unnamed-mmo/lxgui
5c4b9d0c164d2d35cfe5c59888b10020184f717d
[ "MIT" ]
null
null
null
include/lxgui/impl/input_sfml_source.hpp
unnamed-mmo/lxgui
5c4b9d0c164d2d35cfe5c59888b10020184f717d
[ "MIT" ]
null
null
null
#ifndef LXGUI_INPUT_SFML_SOURCE_HPP #define LXGUI_INPUT_SFML_SOURCE_HPP #include <lxgui/utils.hpp> #include <lxgui/input_source.hpp> #include <lxgui/gui_vector2.hpp> #include <SFML/System/Clock.hpp> #include <SFML/Window/Cursor.hpp> #include <unordered_map> #include <memory> namespace sf { class Win...
24.328571
101
0.638285
unnamed-mmo
1dc24247a5de80e994d2a64b413b057060fd9878
1,563
cpp
C++
src/enigma/enigmapeer.cpp
fradow-cloak/CloakCoin
42bd57b6c3f87064281b52f2cf99d0b6c9e43de1
[ "MIT" ]
38
2017-06-12T17:32:12.000Z
2022-02-21T13:29:03.000Z
src/enigma/enigmapeer.cpp
fradow-cloak/CloakCoin
42bd57b6c3f87064281b52f2cf99d0b6c9e43de1
[ "MIT" ]
17
2018-02-20T12:42:45.000Z
2021-01-20T04:53:35.000Z
src/enigma/enigmapeer.cpp
fradow-cloak/CloakCoin
42bd57b6c3f87064281b52f2cf99d0b6c9e43de1
[ "MIT" ]
37
2018-01-03T18:34:41.000Z
2021-07-30T20:36:54.000Z
#include "enigmapeer.h" #include "enigma.h" CEnigmaPeer::CEnigmaPeer(string pubKey) { bannedUntil = 0; peerPubkey = pubKey; } bool CEnigmaPeer::isBanned() { return GetAdjustedTime() <= bannedUntil; } CEnigmaPeer& CEnigmaPeerManager::GetNode(string nodePubKey) { // NEED A LOCK HERE? if (nodes.find...
24.421875
100
0.724248
fradow-cloak
1dc7482ee8a7cfaebd21bf51abce83147919d7ec
4,295
hpp
C++
figureslib.hpp
BerkM125/EAGLE-Viewer
2683dd7421737137202ebabc2a29dfb938d41659
[ "MIT" ]
null
null
null
figureslib.hpp
BerkM125/EAGLE-Viewer
2683dd7421737137202ebabc2a29dfb938d41659
[ "MIT" ]
null
null
null
figureslib.hpp
BerkM125/EAGLE-Viewer
2683dd7421737137202ebabc2a29dfb938d41659
[ "MIT" ]
null
null
null
/* * 3D FIGURES + OBJECTS HEADER FILE * Contains declarations of all three-dimensional-based * classes and functions involving those classes. Definitions * and implementations are located in "figures.cpp". */ #pragma once #include <GL/glut.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <iostream>...
28.071895
114
0.735274
BerkM125
1dd1d345d88b6f68094c79ad238fe43102dab15b
1,553
cpp
C++
engine/source/Steel/Rendering/SceneRenderer.cpp
filscorporation/Engine
ff306f2c1129dbc7e3c4baed6bf99494747fa0cc
[ "MIT" ]
null
null
null
engine/source/Steel/Rendering/SceneRenderer.cpp
filscorporation/Engine
ff306f2c1129dbc7e3c4baed6bf99494747fa0cc
[ "MIT" ]
null
null
null
engine/source/Steel/Rendering/SceneRenderer.cpp
filscorporation/Engine
ff306f2c1129dbc7e3c4baed6bf99494747fa0cc
[ "MIT" ]
null
null
null
#include "SceneRenderer.h" #include "Camera.h" #include "Renderer.h" #include "SceneDrawCallsSource.h" #include "Screen.h" #include "UIDrawCallsSource.h" #include "Core/RenderTask.h" #include "Steel/Core/Application.h" #include "Steel/Scene/Scene.h" void SceneRenderer::Draw(Scene* scene, Framebuffer* framebuffer) { ...
35.295455
89
0.681262
filscorporation
1dd5eb016f0adbcc301a55c34efa255aa3901f58
458
cpp
C++
sort-colors.cpp
mittalnaman2706/LeetCode
ba7e1602fb70ca0063c3e5573ea0661cc5ae9856
[ "Apache-2.0" ]
2
2019-01-10T17:50:26.000Z
2019-05-23T14:31:58.000Z
sort-colors.cpp
mittalnaman2706/LeetCode
ba7e1602fb70ca0063c3e5573ea0661cc5ae9856
[ "Apache-2.0" ]
null
null
null
sort-colors.cpp
mittalnaman2706/LeetCode
ba7e1602fb70ca0063c3e5573ea0661cc5ae9856
[ "Apache-2.0" ]
null
null
null
class Solution { public: void sortColors(vector<int>& nums) { map<int ,int > m; for(auto i : nums) { if(!m[i]) m[i]=1; else m[i]++; } nums.clear(); if(m[2]) nums.insert(nums.begin(),m[2],2); ...
21.809524
45
0.366812
mittalnaman2706
1b8e67bf975e66871b40dbce9ebc2f6ff500a782
332
hpp
C++
projects/minesweeper/minesweeper_gui/include/utils/EnumHelper.hpp
antaljanosbenjamin/miscellaneous
56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747
[ "MIT" ]
2
2021-06-24T21:46:56.000Z
2021-09-24T07:51:04.000Z
projects/minesweeper/minesweeper_gui/include/utils/EnumHelper.hpp
antaljanosbenjamin/miscellaneous
56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747
[ "MIT" ]
null
null
null
projects/minesweeper/minesweeper_gui/include/utils/EnumHelper.hpp
antaljanosbenjamin/miscellaneous
56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747
[ "MIT" ]
null
null
null
#pragma once #include <type_traits> namespace minesweeper_gui { template <typename TEnum> concept Enum = std::is_enum_v<TEnum>; template <Enum TEnum> constexpr std::underlying_type_t<TEnum> getNumericValue(const TEnum enumValue) { return static_cast<std::underlying_type_t<TEnum>>(enumValue); } } // namespace min...
22.133333
80
0.786145
antaljanosbenjamin
1b9135453f34a25f8c15f5ae4d7b8fbe4efd0ef6
1,899
hpp
C++
libraries/include/task/task_handler_base.hpp
WillAchain/lvm
1511459593df943be8a431ac968ff23083481da8
[ "MIT" ]
19
2017-11-01T02:48:58.000Z
2018-04-25T23:07:33.000Z
libraries/include/task/task_handler_base.hpp
WillAchain/lvm
1511459593df943be8a431ac968ff23083481da8
[ "MIT" ]
1
2017-11-10T01:28:43.000Z
2017-11-10T01:28:43.000Z
libraries/include/task/task_handler_base.hpp
WillAchain/lvm
1511459593df943be8a431ac968ff23083481da8
[ "MIT" ]
24
2017-11-01T03:30:09.000Z
2018-12-28T21:57:33.000Z
/* author: pli date: 2017.10.17 Handle the command line and message from chain. This class will parse the command line or message from chain and convert to taskbase. It will cache the lua task, and it will run a lua thread in which lua will be compiled or called. */ #ifndef _TASK_HANDLER_BASE_H_ #defin...
26.746479
100
0.681411
WillAchain
1b96514fb6b07f5d0236624cab19cdeda0bf4232
1,493
cpp
C++
src/spi.cpp
uriu-make/Linux-SPI-library
cf93a6ddb1e59425a3f7a7c7fc1c89f1b784e4b9
[ "MIT" ]
1
2021-02-08T02:29:12.000Z
2021-02-08T02:29:12.000Z
src/spi.cpp
uriu-make/Linux-SPI-library
cf93a6ddb1e59425a3f7a7c7fc1c89f1b784e4b9
[ "MIT" ]
null
null
null
src/spi.cpp
uriu-make/Linux-SPI-library
cf93a6ddb1e59425a3f7a7c7fc1c89f1b784e4b9
[ "MIT" ]
null
null
null
#include "spi.h" SPI::SPI(const char *device, int mode, unsigned int freq) { this->device = device; this->bits = 8; this->mode = mode; this->freq = freq; this->usecs = 0; } int SPI::Setup() { fd = open(device, O_RDWR); this->setMode(mode); this->setClock(freq); this->setDelay(usecs); return fd; } ...
21.637681
67
0.661085
uriu-make
1b98ea36bf42934f1c63a2bb9cb3901d08203b50
2,178
cpp
C++
src/mbgl/text/glyph_atlas.cpp
tz576/Mapbox
681e0141de63d0d5a545e87c40216163b2d63fc6
[ "BSL-1.0", "Apache-2.0" ]
6
2019-06-17T05:41:03.000Z
2022-01-20T13:16:14.000Z
src/mbgl/text/glyph_atlas.cpp
leejing397/GeoMap
d94d3f275234ad4434858e08a6b42e72c44dc6db
[ "BSL-1.0", "Apache-2.0" ]
76
2018-08-30T20:47:55.000Z
2022-03-19T19:40:41.000Z
src/mbgl/text/glyph_atlas.cpp
leejing397/GeoMap
d94d3f275234ad4434858e08a6b42e72c44dc6db
[ "BSL-1.0", "Apache-2.0" ]
4
2019-08-30T07:40:17.000Z
2022-01-13T09:36:55.000Z
#include <mbgl/text/glyph_atlas.hpp> #include <mapbox/shelf-pack.hpp> namespace mbgl { static constexpr uint32_t padding = 1; GlyphAtlas makeGlyphAtlas(const GlyphMap& glyphs) { GlyphAtlas result; mapbox::ShelfPack::ShelfPackOptions options; options.autoResize = true; mapbox::ShelfPack pack(0, 0, o...
33
70
0.439853
tz576
1b9f84473c8d6cc30ce028bc52b95f2ff39a7cdf
287
cpp
C++
Tuan-1/Bai4/main.cpp
namanhishere/cpp
109988fb91e10c986cd1111cd2c543a056f4e560
[ "MIT" ]
1
2021-09-25T14:40:33.000Z
2021-09-25T14:40:33.000Z
Tuan-1/Bai4/main.cpp
namanhishere/cpp
109988fb91e10c986cd1111cd2c543a056f4e560
[ "MIT" ]
null
null
null
Tuan-1/Bai4/main.cpp
namanhishere/cpp
109988fb91e10c986cd1111cd2c543a056f4e560
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { float pi = 3.141592654; int r; cout << "Nhap ban kinh hinh tron: "; cin >> r; cout << "Chu vi cua hinh tron la: " << r*2*pi << endl; cout << "Dien tich cua hinh tron la :" << r*r*pi << endl; return 0; }
19.133333
61
0.547038
namanhishere
1ba0839302fd1205d96d342444b03e62e5b7ce99
619
cpp
C++
vsproject/tu_test/main.cpp
spacekookie/mrustc
e49cd3b71a5b5458ecd3f3937c04d1a35871a190
[ "MIT" ]
2
2019-07-17T17:45:22.000Z
2020-02-25T09:57:48.000Z
vsproject/tu_test/main.cpp
spacekookie/mrustc
e49cd3b71a5b5458ecd3f3937c04d1a35871a190
[ "MIT" ]
null
null
null
vsproject/tu_test/main.cpp
spacekookie/mrustc
e49cd3b71a5b5458ecd3f3937c04d1a35871a190
[ "MIT" ]
null
null
null
#include "../../src/include/tagged_union.hpp" TAGGED_UNION_EX(TestTu, (), Foo, ( (Foo, struct { }), (Bar, struct { }), (Baz, unsigned int) ), (), (), () ); TAGGED_UNION(TestTu2, Foo, (Foo, struct { }), (Bar, struct { }), (Baz, unsigned int) ); int main() { TestTu tmp; tmp = TestTu(123); TestTu...
10.859649
45
0.484653
spacekookie
1ba29509517d117cd71d9251961cd61ff7e79c19
393
cpp
C++
top_50_array/non-repeating_elements.cpp
30-06-99pratham/gfg_curated_lists
07e258db16a50bd5dcccb808d6d566547bc14b4d
[ "Apache-2.0" ]
null
null
null
top_50_array/non-repeating_elements.cpp
30-06-99pratham/gfg_curated_lists
07e258db16a50bd5dcccb808d6d566547bc14b4d
[ "Apache-2.0" ]
null
null
null
top_50_array/non-repeating_elements.cpp
30-06-99pratham/gfg_curated_lists
07e258db16a50bd5dcccb808d6d566547bc14b4d
[ "Apache-2.0" ]
null
null
null
class Solution{ public: int firstNonRepeating(int arr[], int n) { // Complete the function unordered_map<int,int>mp; for(int i=0;i<n;i++){ mp[arr[i]]++; } for(int i=0;i<n;i++){ if(mp[arr[i]]==1){ return arr[i]; ...
17.863636
44
0.37659
30-06-99pratham
1ba44b854a0fec529ccbc5ec529d6b5930c42df2
1,108
cpp
C++
Exercicios-Simples/ex08.cpp
raphaelcarmo/Praticando-C
ba2c926d2eeb4a00f24fef73281de1f937c90769
[ "MIT" ]
null
null
null
Exercicios-Simples/ex08.cpp
raphaelcarmo/Praticando-C
ba2c926d2eeb4a00f24fef73281de1f937c90769
[ "MIT" ]
null
null
null
Exercicios-Simples/ex08.cpp
raphaelcarmo/Praticando-C
ba2c926d2eeb4a00f24fef73281de1f937c90769
[ "MIT" ]
null
null
null
#include <iomanip> /*A biblioteca <iomanip> fornece recursos para manipular a formatação de saída, como a base usada ao formatar inteiros e a precisão dos valores de ponto flutuante .*/ #include <iostream> /*Cabeçalho que define os objetos de fluxo de entrada / saída padrão*/ using namespace std; /* Exercicio Salár...
29.157895
186
0.703069
raphaelcarmo
1ba7112b74087f2e726fe20af80d64e05e0d0e84
357
cpp
C++
Codeforces round 601 (div. 2)/Problem A.cpp
nicolasventer/Algorithmic-problems-in-cpp
cdd29d692c0353866a549593a25335fe816840e2
[ "MIT" ]
null
null
null
Codeforces round 601 (div. 2)/Problem A.cpp
nicolasventer/Algorithmic-problems-in-cpp
cdd29d692c0353866a549593a25335fe816840e2
[ "MIT" ]
null
null
null
Codeforces round 601 (div. 2)/Problem A.cpp
nicolasventer/Algorithmic-problems-in-cpp
cdd29d692c0353866a549593a25335fe816840e2
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin >> t; while (t--) { int a,b; cin >> a >> b; int diff = a > b ? a - b : b - a; if (diff%5 == 4) diff += 2; int q5 = diff/5; int q2 = (diff%5)/2; int q1 = (diff+q5)%2; cout << (q5 ...
13.730769
35
0.507003
nicolasventer
1baa09e12c304e6d55e50d8ed843d3b18d2861d2
323
cpp
C++
src/compiler/codegen/expressions/Integer.cpp
laleksiunas/leg-language
e34aee17ddacaf9e1a5010014afb363d70d762df
[ "MIT" ]
null
null
null
src/compiler/codegen/expressions/Integer.cpp
laleksiunas/leg-language
e34aee17ddacaf9e1a5010014afb363d70d762df
[ "MIT" ]
null
null
null
src/compiler/codegen/expressions/Integer.cpp
laleksiunas/leg-language
e34aee17ddacaf9e1a5010014afb363d70d762df
[ "MIT" ]
null
null
null
#include "llvm/IR/Value.h" #include "llvm/IR/Constants.h" #include "ast/expressions/IntegerNode.h" #include "codegen/context/BlockContext.h" #include "codegen/utils.h" llvm::Value* ast::IntegerNode::codegen(codegen::BlockContext& blockContext) { return llvm::ConstantInt::get(codegen::createIntType(), value, true);...
32.3
77
0.752322
laleksiunas
1bb35025d5e7cc115674ff26a2e3a6296c858f99
2,486
cpp
C++
core/impl/math/interpolate.cpp
auyunli/enhance
ca99530c80b42842e713ed4b62e40d12e56ee24a
[ "BSD-2-Clause" ]
null
null
null
core/impl/math/interpolate.cpp
auyunli/enhance
ca99530c80b42842e713ed4b62e40d12e56ee24a
[ "BSD-2-Clause" ]
null
null
null
core/impl/math/interpolate.cpp
auyunli/enhance
ca99530c80b42842e713ed4b62e40d12e56ee24a
[ "BSD-2-Clause" ]
null
null
null
#include "parametric_curve.hpp" #include "interpolate.hpp" #include <iostream> #include <vector> #include <string> #include <stdlib.h> namespace e2 { namespace math { interpolate::interpolate() { this->CurveIndex = 0; this->bKeepIncrementing = false; for(int i = 0; i < 3; i++) this->Position[i] = 0; ...
19.888
117
0.629525
auyunli
1bb80d84ff9fd6572a952479a9dd1e7c428d53a5
4,167
cpp
C++
src/ubik/movement/tests/perfectly_forwarded.cpp
jedrzejboczar/ubik-micromouse
6470368de0c3207fc278bcfa604d1fdd74aaeb8f
[ "MIT" ]
3
2019-10-30T07:37:47.000Z
2021-01-21T11:50:20.000Z
src/ubik/movement/tests/perfectly_forwarded.cpp
jedrzejboczar/ubik-micromouse
6470368de0c3207fc278bcfa604d1fdd74aaeb8f
[ "MIT" ]
null
null
null
src/ubik/movement/tests/perfectly_forwarded.cpp
jedrzejboczar/ubik-micromouse
6470368de0c3207fc278bcfa604d1fdd74aaeb8f
[ "MIT" ]
null
null
null
#include <cstring> #include <cstdio> #include <cstdint> #include <utility> struct MyStruct { int a; // debug all constructors/destructors MyStruct(int a): a(a) { std::printf("MyStruct(%d)\n", a); } MyStruct(const MyStruct &other): a(other.a) { std::printf("MyStruct("); other.print(); std::prin...
35.922414
106
0.592513
jedrzejboczar
1bb8bef6571b12804dea8f13f0a5702a15210cd0
5,181
cpp
C++
src/MoveProvider.cpp
derekrfelson/knight-puzzle
86582809c49f35ad9b7193ab997cd78a8a91e30f
[ "MIT" ]
null
null
null
src/MoveProvider.cpp
derekrfelson/knight-puzzle
86582809c49f35ad9b7193ab997cd78a8a91e30f
[ "MIT" ]
null
null
null
src/MoveProvider.cpp
derekrfelson/knight-puzzle
86582809c49f35ad9b7193ab997cd78a8a91e30f
[ "MIT" ]
null
null
null
/* * MoveProvider.cpp * * Created on: Feb 24, 2016 * Author: derek */ #include <cassert> #include <iostream> #include <memory> #include <queue> #include <stack> #include <list> #include <algorithm> #include "GameBoard.h" #include "MoveProvider.h" #include "Node.h" #include "AStarNode.h" #include "State.h" #...
23.657534
75
0.655279
derekrfelson
1bbba8bd60f634ac5d6f65867115bbe986a14603
1,060
cpp
C++
src/xray/render/base/sources/command_add_visual.cpp
ixray-team/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
3
2021-10-30T09:36:14.000Z
2022-03-26T17:00:06.000Z
src/xray/render/base/sources/command_add_visual.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
null
null
null
src/xray/render/base/sources/command_add_visual.cpp
acidicMercury8/ixray-2.0
85c3a544175842323fc82f42efd96c66f0fc5abb
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:08.000Z
2022-03-26T17:00:08.000Z
//////////////////////////////////////////////////////////////////////////// // Created : 21.01.2010 // Author : Armen Abroyan // Copyright (C) GSC Game World - 2009 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include <xray/render/base/world.h> #include <xra...
27.894737
97
0.55566
ixray-team
1bbd30a9a9bec4f481f16d073df0cbf6f28c74fe
411
cpp
C++
game_files/tcp/utils/error.cpp
sakumo7/zpr
7b9cdbec1ff8d8179a96bb6e1e88f54ee84d138e
[ "MIT" ]
null
null
null
game_files/tcp/utils/error.cpp
sakumo7/zpr
7b9cdbec1ff8d8179a96bb6e1e88f54ee84d138e
[ "MIT" ]
null
null
null
game_files/tcp/utils/error.cpp
sakumo7/zpr
7b9cdbec1ff8d8179a96bb6e1e88f54ee84d138e
[ "MIT" ]
null
null
null
#include "error.hpp" namespace tcp { //! //! ctor & dtor //! tcp_error::tcp_error(const std::string& what, const std::string& file, std::size_t line) : std::runtime_error(what) , m_file(file) , m_line(line) {} //! //! get location of the error //! const std::string& tcp_error::get_file(void) const { return m_fil...
14.172414
88
0.666667
sakumo7
1bc31a75ee37f3238b00abb9260cd9f15379510d
294
cc
C++
src/libs/fragments/scored_fragment.cc
akhudek/feast
bb41ac122a9c0542a0fb71eec81ff5e872c556e5
[ "MIT" ]
1
2015-06-15T21:46:07.000Z
2015-06-15T21:46:07.000Z
src/libs/fragments/scored_fragment.cc
akhudek/feast
bb41ac122a9c0542a0fb71eec81ff5e872c556e5
[ "MIT" ]
null
null
null
src/libs/fragments/scored_fragment.cc
akhudek/feast
bb41ac122a9c0542a0fb71eec81ff5e872c556e5
[ "MIT" ]
null
null
null
/* * scored_fragment.cc * rda * * Created by Alexander K. Hudek on 2008-04-04. * Copyright 2008 __MyCompanyName__. All rights reserved. * */ #include "scored_fragment.h" scored_fragment_ptr new_scored_fragment() { scored_fragment_ptr ptr( new scored_fragment() ); return ptr; }
17.294118
58
0.717687
akhudek
1bc3379084c28636d9f070e7429e48e8f350651e
674,843
cpp
C++
chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__27.cpp
vargandhi/ime-congs
963be79b7b319d8e74edae09df7bdf3330371401
[ "BSD-3-Clause" ]
null
null
null
chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__27.cpp
vargandhi/ime-congs
963be79b7b319d8e74edae09df7bdf3330371401
[ "BSD-3-Clause" ]
null
null
null
chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__27.cpp
vargandhi/ime-congs
963be79b7b319d8e74edae09df7bdf3330371401
[ "BSD-3-Clause" ]
null
null
null
// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Design implementation internals // See VTestHarness.h for the primary calling header #include "VTestHarness.h" #include "VTestHarness__Syms.h" #include "verilated_dpi.h" VL_INLINE_OPT void VTestHarness::_sequent__TOP__1962(VTestHarness__Syms* __restrict vlSy...
96.227435
228
0.739574
vargandhi
1bc42a37fb1ff196217d5755718297552e2d448a
3,872
hpp
C++
challenges/tools/math/factorization.hpp
cdalvaro/project-euler
7a09b06a0034ab555706214017ac2e6e3f019806
[ "MIT" ]
null
null
null
challenges/tools/math/factorization.hpp
cdalvaro/project-euler
7a09b06a0034ab555706214017ac2e6e3f019806
[ "MIT" ]
18
2021-02-27T16:42:33.000Z
2022-02-12T11:40:40.000Z
challenges/tools/math/factorization.hpp
cdalvaro/project-euler
7a09b06a0034ab555706214017ac2e6e3f019806
[ "MIT" ]
1
2021-02-22T13:08:13.000Z
2021-02-22T13:08:13.000Z
// // factorization.hpp // Challenges // // Created by Carlos David on 28/05/2020. // Copyright © 2020 cdalvaro. All rights reserved. // #ifndef challenges_tools_math_factorization_hpp #define challenges_tools_math_factorization_hpp #include <cmath> #include <numeric> #include <optional> #include <set> #include <...
28.470588
106
0.604339
cdalvaro
1bc565eb62c7bf74d340888734b22dc06b2fff0c
385
cpp
C++
cpp/while.cpp
doylew/practice
26cac0c1c88ea440e7841bfc21286e02530e7fd9
[ "MIT" ]
null
null
null
cpp/while.cpp
doylew/practice
26cac0c1c88ea440e7841bfc21286e02530e7fd9
[ "MIT" ]
null
null
null
cpp/while.cpp
doylew/practice
26cac0c1c88ea440e7841bfc21286e02530e7fd9
[ "MIT" ]
null
null
null
#include <iostream> int main(){ int val = 50; int sum = 0; while(val <= 100){ sum += val; ++val; } std::cout << sum << std::endl; int v1 = 0, v2 = 0; std::cout << "Two numbers please:" << std::endl; std::cin >> v1 >> v2; val = v1; while(val <= v2){ std:...
16.73913
52
0.428571
doylew
1bc67bc3971f4675e4b0c32c8d86a006269d238d
1,865
cpp
C++
code/PP02/animations/AnimationKnife.cpp
partypritelkyne/pp01
9a55d2f473e1312aab758cfd327e27646b48520e
[ "MIT" ]
1
2020-02-14T13:27:09.000Z
2020-02-14T13:27:09.000Z
code/PP02/animations/AnimationKnife.cpp
partypritelkyne/pp01
9a55d2f473e1312aab758cfd327e27646b48520e
[ "MIT" ]
null
null
null
code/PP02/animations/AnimationKnife.cpp
partypritelkyne/pp01
9a55d2f473e1312aab758cfd327e27646b48520e
[ "MIT" ]
null
null
null
#include "Arduino.h" #include "../Animation.h" class AnimationKnife : public Animation { public: void setup() { currentPixel = 0; secondStage = false; } int getInterval() { return animationBaseInterval / 4; } bool draw() { pixels.clear(); i...
21.686047
60
0.391421
partypritelkyne
1bc9b5b8282e55a27903f67eaa98e86453100594
1,281
hpp
C++
include/Editor.hpp
philzon/POE
e37664225d289824bae2c85e499f84a0ceb0915f
[ "MIT" ]
null
null
null
include/Editor.hpp
philzon/POE
e37664225d289824bae2c85e499f84a0ceb0915f
[ "MIT" ]
3
2020-02-17T18:59:42.000Z
2020-03-11T21:05:10.000Z
include/Editor.hpp
philzon/POE
e37664225d289824bae2c85e499f84a0ceb0915f
[ "MIT" ]
null
null
null
#ifndef EDITOR_HPP #define EDITOR_HPP #include <algorithm> #include <cstdlib> #include <fstream> #include <memory> #include <sstream> #include <string> #include <vector> #include <ncurses.h> #include "Buffer.hpp" class Editor { public: Editor(); virtual ~Editor(); virtual void input(int ch); virtual void rende...
24.634615
153
0.752537
philzon
1bcb242fae383b42d6f129c5578d0322247489d5
1,094
cpp
C++
ApplicationSettings.cpp
gamereat/DX11_Procedural_Terrain
bf5d80d45d4baa1244310c3a7b5cd46db075e9fa
[ "MIT" ]
5
2019-05-06T19:27:20.000Z
2021-02-13T12:30:51.000Z
ApplicationSettings.cpp
gamereat/procedural-methods
bf5d80d45d4baa1244310c3a7b5cd46db075e9fa
[ "MIT" ]
null
null
null
ApplicationSettings.cpp
gamereat/procedural-methods
bf5d80d45d4baa1244310c3a7b5cd46db075e9fa
[ "MIT" ]
1
2021-04-12T05:28:42.000Z
2021-04-12T05:28:42.000Z
#include "ApplicationSettings.h" #include "../MiniIni/minIni.hpp" bool ApplicationSettings::isVSync = false; bool ApplicationSettings::isFullScreen = false; int ApplicationSettings::screenHeight = 800; int ApplicationSettings::screenWidth = 600; float ApplicationSettings::sceenNear = 0.1; int ApplicationSettings::scr...
30.388889
81
0.769653
gamereat
1bcd69ad8bb75b7871ce80e25ec30a4fbe6ad87c
3,972
hpp
C++
include/legacy_api/lapack/unmqr.hpp
thijssteel/tlapack
0749324fdecfc80c089d58d8d43500b66a20df70
[ "BSD-3-Clause" ]
null
null
null
include/legacy_api/lapack/unmqr.hpp
thijssteel/tlapack
0749324fdecfc80c089d58d8d43500b66a20df70
[ "BSD-3-Clause" ]
null
null
null
include/legacy_api/lapack/unmqr.hpp
thijssteel/tlapack
0749324fdecfc80c089d58d8d43500b66a20df70
[ "BSD-3-Clause" ]
null
null
null
/// @file unmqr.hpp Multiplies the general m-by-n matrix C by Q from lapack::geqrf() /// @author Weslley S Pereira, University of Colorado Denver, USA // // Copyright (c) 2021-2022, University of Colorado Denver. All rights reserved. // // This file is part of <T>LAPACK. // <T>LAPACK is free software: you can redistrib...
32.292683
101
0.581067
thijssteel
1bd00f92adcd3dafcc312763bdf1c291e0082a18
3,527
cpp
C++
DXR_SoftShadows_Project/BeLuEngine/src/Renderer/Model/Transform.cpp
jocke1995/DXR_SoftShadows
00cb6b1cf560899a010c9e8504578d55e113c22c
[ "MIT" ]
null
null
null
DXR_SoftShadows_Project/BeLuEngine/src/Renderer/Model/Transform.cpp
jocke1995/DXR_SoftShadows
00cb6b1cf560899a010c9e8504578d55e113c22c
[ "MIT" ]
null
null
null
DXR_SoftShadows_Project/BeLuEngine/src/Renderer/Model/Transform.cpp
jocke1995/DXR_SoftShadows
00cb6b1cf560899a010c9e8504578d55e113c22c
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Transform.h" Transform::Transform(bool invertDirection) { m_Position = DirectX::XMFLOAT3(0.0, 0.0, 0.0); m_RotationMat = DirectX::XMMatrixIdentity(); m_Scale = DirectX::XMFLOAT3(1.0, 1.0, 1.0); UpdateWorldMatrix(); m_RotXMat = DirectX::XMMatrixIdentity(); m_RotYMat = DirectX::XMMa...
21.771605
99
0.735753
jocke1995
1bd1683844b61d2408d3a521f331831987ec0877
998
cpp
C++
src/main.cpp
1mingfei/mapp4py
b72a90b4ab8984cf40d90944df60505e1a3f6a49
[ "MIT" ]
null
null
null
src/main.cpp
1mingfei/mapp4py
b72a90b4ab8984cf40d90944df60505e1a3f6a49
[ "MIT" ]
null
null
null
src/main.cpp
1mingfei/mapp4py
b72a90b4ab8984cf40d90944df60505e1a3f6a49
[ "MIT" ]
null
null
null
#include "api.h" #include <stdio.h> #include <iostream> #include <mpi.h> #include "MAPP.h" /* note that this file is just running the package without importing through python mainly for debugging purposes */ #ifdef IS_PY3K int main(int nargs,char* args[]) { MPI_Init(&nargs, &args); wchar_t** __args=NULL; ...
25.589744
70
0.700401
1mingfei
1bd712e208d6d26864dd7f189ebeda78601decec
7,544
cpp
C++
src/support_data/ossimRpfTocEntry.cpp
vladislav-horbatiuk/ossim
82417ad868fac022672335e1684bdd91d662c18c
[ "MIT" ]
251
2015-10-20T09:08:11.000Z
2022-03-22T18:16:38.000Z
src/support_data/ossimRpfTocEntry.cpp
IvanLJF/ossim
2e0143f682b9884a09ff2598ef8737f29e44fbdf
[ "MIT" ]
73
2015-11-02T17:12:36.000Z
2021-11-15T17:41:47.000Z
src/support_data/ossimRpfTocEntry.cpp
IvanLJF/ossim
2e0143f682b9884a09ff2598ef8737f29e44fbdf
[ "MIT" ]
146
2015-10-15T16:00:15.000Z
2022-03-22T12:37:14.000Z
//******************************************************************* // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Author: Garrett Potts // //************************************************************************* // $Id: ossimRpfTocEntry.cpp 19900 2011-08-04 14:...
26.942857
98
0.658139
vladislav-horbatiuk
1bdc476e9679bb9b7c6ea8f80fce3ba08d4a03cf
5,897
cpp
C++
lombscargle-sycl/main.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
58
2020-08-06T18:53:44.000Z
2021-10-01T07:59:46.000Z
lombscargle-sycl/main.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
2
2020-12-04T12:35:02.000Z
2021-03-04T22:49:25.000Z
lombscargle-sycl/main.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
13
2020-08-19T13:44:18.000Z
2021-09-08T04:25:34.000Z
// Copyright (c) 2019-2020, NVIDIA CORPORATION. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
29.485
93
0.517212
BeauJoh
1bdee01b3a851ac861ee95a0abdffe2e29ca8110
7,563
c++
C++
basilio_chat.c++
pyrocharles/basilio_chat
5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c
[ "MIT" ]
null
null
null
basilio_chat.c++
pyrocharles/basilio_chat
5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c
[ "MIT" ]
null
null
null
basilio_chat.c++
pyrocharles/basilio_chat
5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c
[ "MIT" ]
null
null
null
#include "basilio_chat.h++" #include <iostream> #include <sstream> #include <cstring> #include <cstdint> #include <thread> #include <mutex> #include <chrono> /* XXX */ using namespace vanwestco; void basilio_chat::process_console() { bool running = true; while (running) { std::string line = term...
33.171053
80
0.511834
pyrocharles
1be012aab22db519c0debdef8562045d045056fa
1,919
cpp
C++
Chapter10/enemy_ship.cpp
focusright/Hands-On-Game-Development-with-WebAssembly
8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a
[ "MIT" ]
71
2019-05-13T23:30:39.000Z
2022-03-08T15:28:20.000Z
Chapter10/enemy_ship.cpp
focusright/Hands-On-Game-Development-with-WebAssembly
8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a
[ "MIT" ]
4
2019-10-20T19:18:04.000Z
2021-01-15T15:41:53.000Z
Chapter10/enemy_ship.cpp
focusright/Hands-On-Game-Development-with-WebAssembly
8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a
[ "MIT" ]
23
2019-05-10T14:25:59.000Z
2021-10-03T07:19:28.000Z
#include "game.hpp" EnemyShip::EnemyShip() { m_Rotation = PI; m_AIStateTTL = c_AIStateTime; m_Active = true; m_LastLaunchTime = current_time; m_FSM = new FiniteStateMachine(this); m_Shield = new Shield(this, c_ShieldSpriteFile); Collider* temp_collider = new Collider(2.0); temp_c...
23.9875
77
0.576863
focusright
1be375b163941688f8d11c29566dbaf14b8bce4e
699
cc
C++
src/elle/printf.cc
infinitio/elle
d9bec976a1217137436db53db39cda99e7024ce4
[ "Apache-2.0" ]
521
2016-02-14T00:39:01.000Z
2022-03-01T22:39:25.000Z
src/elle/printf.cc
infinitio/elle
d9bec976a1217137436db53db39cda99e7024ce4
[ "Apache-2.0" ]
8
2017-02-21T11:47:33.000Z
2018-11-01T09:37:14.000Z
src/elle/printf.cc
infinitio/elle
d9bec976a1217137436db53db39cda99e7024ce4
[ "Apache-2.0" ]
48
2017-02-21T10:18:13.000Z
2022-03-25T02:35:20.000Z
#include <elle/printf.hh> #include <sstream> #include <elle/Exception.hh> #include <elle/log.hh> namespace elle { void format_error(std::string const& fmt, boost::io::format_error const& e) { ELLE_LOG_COMPONENT("elle.printf"); // Don't use elle::printf/sprintf to handle elle::printf/sprintf // fata...
27.96
72
0.646638
infinitio
1be4fa3b998f058d7a8579b394ab9c2d76625ff7
1,226
cpp
C++
foobar2000/SDK/advconfig.cpp
ttsping/foo_fix
4a0b950ccb8c10c912a9abeeffdd85e777463309
[ "Info-ZIP" ]
294
2017-11-20T17:42:08.000Z
2022-03-31T04:15:13.000Z
foobar2000/SDK/advconfig.cpp
ttsping/foo_fix
4a0b950ccb8c10c912a9abeeffdd85e777463309
[ "Info-ZIP" ]
108
2021-04-08T10:57:27.000Z
2022-03-27T08:02:15.000Z
foobar2000/SDK/advconfig.cpp
ttsping/foo_fix
4a0b950ccb8c10c912a9abeeffdd85e777463309
[ "Info-ZIP" ]
14
2018-03-10T12:47:03.000Z
2021-11-11T09:00:08.000Z
#include "foobar2000.h" bool advconfig_entry::is_branch() { advconfig_branch::ptr branch; return branch &= this; } bool advconfig_entry::g_find(service_ptr_t<advconfig_entry>& out, const GUID & id) { service_enum_t<advconfig_entry> e; service_ptr_t<advconfig_entry> ptr; while(e.next(ptr)) { if (ptr->get_gu...
25.541667
162
0.705546
ttsping
1be598700b77e7666d7c0c9c7b13462c703a3141
7,401
cpp
C++
Source/ASCII_GAME/Core/Renderer/ASCIIRenderer.cpp
asimpson2004/Chip8Emulator
fffd07fc6a993ead0267a3cabd5ee076948af1d8
[ "MIT" ]
null
null
null
Source/ASCII_GAME/Core/Renderer/ASCIIRenderer.cpp
asimpson2004/Chip8Emulator
fffd07fc6a993ead0267a3cabd5ee076948af1d8
[ "MIT" ]
null
null
null
Source/ASCII_GAME/Core/Renderer/ASCIIRenderer.cpp
asimpson2004/Chip8Emulator
fffd07fc6a993ead0267a3cabd5ee076948af1d8
[ "MIT" ]
null
null
null
#include "ASCIIRenderer.h" #include <Windows.h> #include <algorithm> #include "ConsoleColours.h" #include "../Utils/Utils.h" #include "../Maths/Vector2.h" #include "../Maths/Matrix4x4.h" const float GAME_RENDER_FREQ = 1.0f / 30.0f; ASCIIRenderer::ASCIIRenderer() :m_BackBufferIndex(0) ,m_FrontBufferIndex(1) ,m_Width(0...
28.034091
142
0.742602
asimpson2004
1be7f236f1a6847b50a723e04ffc260cb911b9ae
1,291
cpp
C++
BackTracking/PermutationsII/PermutationsII.cpp
yijingbai/LeetCode
6ae6dbdf3a720b4206323401a0ed16ac2066031e
[ "MIT" ]
2
2015-08-28T03:52:05.000Z
2015-09-03T09:54:40.000Z
BackTracking/PermutationsII/PermutationsII.cpp
yijingbai/LeetCode
6ae6dbdf3a720b4206323401a0ed16ac2066031e
[ "MIT" ]
null
null
null
BackTracking/PermutationsII/PermutationsII.cpp
yijingbai/LeetCode
6ae6dbdf3a720b4206323401a0ed16ac2066031e
[ "MIT" ]
null
null
null
// Source : https://leetcode.com/problems/permutations-ii/ // Author : Yijing Bai // Date : 2016-01-13 /********************************************************************************** * * Given a collection of numbers that might contain duplicates, return all possible * unique permutations. * * For example, ...
25.82
98
0.482572
yijingbai
1beb80cf777222ddf2c4f2eb93f8ee3399a2218a
6,267
cpp
C++
GWToolboxdll/GWToolbox/Widgets/Minimap/RangeRenderer.cpp
Bu11etmagnet/GWToolboxpp
2457e50b0349eded32f3dddc649bac14feec9c8a
[ "MIT" ]
null
null
null
GWToolboxdll/GWToolbox/Widgets/Minimap/RangeRenderer.cpp
Bu11etmagnet/GWToolboxpp
2457e50b0349eded32f3dddc649bac14feec9c8a
[ "MIT" ]
null
null
null
GWToolboxdll/GWToolbox/Widgets/Minimap/RangeRenderer.cpp
Bu11etmagnet/GWToolboxpp
2457e50b0349eded32f3dddc649bac14feec9c8a
[ "MIT" ]
null
null
null
#include "stdafx.h" #include <imgui.h> #include <GWCA/Constants/Constants.h> #include <GWCA/GameContainers/Array.h> #include <GWCA/GameContainers/GamePos.h> #include <GWCA/GameEntities/Agent.h> #include <GWCA/GameEntities/Skill.h> #include <GWCA/Managers/MapMgr.h> #include <GWCA/Managers/AgentMgr.h> #include <GWCA/...
31.179104
86
0.715015
Bu11etmagnet
1bf0fcac8cf70338c4627dffbfbcfa58c923045f
5,572
cpp
C++
src/scanner.cpp
Grypesl/ccloxx
44d1414152ef0c5418247e8f9819c74e68393979
[ "MIT" ]
5
2020-04-08T08:58:22.000Z
2020-09-02T07:49:03.000Z
src/scanner.cpp
Gryphnl/ccloxx
44d1414152ef0c5418247e8f9819c74e68393979
[ "MIT" ]
null
null
null
src/scanner.cpp
Gryphnl/ccloxx
44d1414152ef0c5418247e8f9819c74e68393979
[ "MIT" ]
null
null
null
#include "scanner.hpp" #include "error_handler.hpp" using namespace lox; Scanner::Scanner(const std::string &source_, ErrorHandler &handler_) : source(source_), errorhandler(handler_) { keywords["and"] = TokenType::AND; keywords["class"] = TokenType::CLASS; keywords["else"] = TokenType::ELSE; key...
22.199203
81
0.530689
Grypesl
1bf367660aedfcd7fc0e07028e2dad666ddb53c9
441
hpp
C++
dialogs/startMenu/dialogs.hpp
Kortonki/antistasi_remastered
11c005467d8efb7c709621c00d9b16ae1a5f3be2
[ "BSD-3-Clause" ]
null
null
null
dialogs/startMenu/dialogs.hpp
Kortonki/antistasi_remastered
11c005467d8efb7c709621c00d9b16ae1a5f3be2
[ "BSD-3-Clause" ]
26
2020-05-15T14:38:08.000Z
2021-06-28T18:26:53.000Z
dialogs/startMenu/dialogs.hpp
Kortonki/antistasi_remastered
11c005467d8efb7c709621c00d9b16ae1a5f3be2
[ "BSD-3-Clause" ]
null
null
null
class AS_startMenu { idd=1601; movingenable=false; class controls { AS_DIALOG(1,"Start Menu", "hint 'You cannot close this dialog. Press escape twice to open Arma game menu;'"); BTN_L(1,-1,"New game", "You will choose a faction and an initial location", "closeDialog 0; [] spawn AS_fnc_UI_newGame_menu"); BTN_R(1,-...
33.923077
126
0.721088
Kortonki
1bf740f2b438d93b14269f6954a5e2ef8c64933b
522
cpp
C++
engine/src/ColorChangeEvent.cpp
skryabiin/core
13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7
[ "MIT" ]
null
null
null
engine/src/ColorChangeEvent.cpp
skryabiin/core
13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7
[ "MIT" ]
null
null
null
engine/src/ColorChangeEvent.cpp
skryabiin/core
13bcdd0c9f3ebcc4954b9ee05ea95db0f77e16f7
[ "MIT" ]
null
null
null
#include "ColorChangeEvent.hpp" #include "Core.hpp" #include "EventProcessor.hpp" namespace core { ColorChangeEvent::ColorChangeEvent() : facetId{ -1 } { lua_reg("entityId", &entity); lua_reg("color", &color); lua_reg("facetId", &facetId); } std::string ColorChangeEvent::getEventTypeNameImpl() { re...
16.83871
55
0.695402
skryabiin
1bf77a24de052be025575d0e44affa8b02e230b5
2,841
cpp
C++
network-wfp-redirect-filter/ex_allocate_pool.cpp
iamasbcx/windows-network-wfp-redirect
fce8290211fd2d174c5c7a28d85b524e9f956140
[ "Apache-2.0" ]
3
2021-06-17T14:57:18.000Z
2022-01-28T15:03:07.000Z
network-wfp-redirect-filter/ex_allocate_pool.cpp
iamasbcx/windows-network-wfp-redirect
fce8290211fd2d174c5c7a28d85b524e9f956140
[ "Apache-2.0" ]
null
null
null
network-wfp-redirect-filter/ex_allocate_pool.cpp
iamasbcx/windows-network-wfp-redirect
fce8290211fd2d174c5c7a28d85b524e9f956140
[ "Apache-2.0" ]
3
2021-07-23T08:36:16.000Z
2022-01-28T15:03:08.000Z
// Copyright (c) 2020 Alexandr Shevchenko. (alexshev@live.com) // 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/LIC...
20.292857
103
0.727209
iamasbcx
1bfba1be87a07a952d8a9ad2ecd59f44ce7d8ed5
2,977
cc
C++
BasicTest.cc
fuzziqersoftware/coroc
c8b55e2e27e1895c6cae63d943a1b174ab211f6f
[ "MIT" ]
null
null
null
BasicTest.cc
fuzziqersoftware/coroc
c8b55e2e27e1895c6cae63d943a1b174ab211f6f
[ "MIT" ]
null
null
null
BasicTest.cc
fuzziqersoftware/coroc
c8b55e2e27e1895c6cae63d943a1b174ab211f6f
[ "MIT" ]
null
null
null
#include <assert.h> #include <stdio.h> #include "coroc.h" struct coro_t* coro1(int64_t first_num, int64_t last_num) { struct coro_t* coro = coro_start(); assert(coro_started(coro)); assert(!coro_finished(coro)); int64_t x; for (x = first_num; x <= last_num; x++) { int64_t sent_x = (int64_t)coro_contin...
24.401639
83
0.659389
fuzziqersoftware
1bfc7b68321ccf86c833d60cfa48e7a34eadb20f
2,195
hpp
C++
unlabeled_mapf/include/problem.hpp
Kei18/tswap
4f1fb59579c88de122d04a3760dbdda8aa82ba34
[ "MIT" ]
2
2022-02-13T23:31:31.000Z
2022-02-14T05:34:38.000Z
unlabeled_mapf/include/problem.hpp
AlbaIntelligence/unlabeled-MAPF
db60f8aa4a12dfee1d0736037372a6d3a93813ce
[ "MIT" ]
null
null
null
unlabeled_mapf/include/problem.hpp
AlbaIntelligence/unlabeled-MAPF
db60f8aa4a12dfee1d0736037372a6d3a93813ce
[ "MIT" ]
1
2022-03-18T00:07:47.000Z
2022-03-18T00:07:47.000Z
#pragma once #include <graph.hpp> #include <random> #include <set> #include "default_params.hpp" #include "util.hpp" using Config = std::vector<Node*>; // < loc_0[t], loc_1[t], ... > using Configs = std::vector<Config>; [[maybe_unused]] static bool sameConfig(const Config& config_i, ...
30.915493
77
0.653303
Kei18
4001b72324160624a2a692e10a3b6a6d94a57dee
1,208
cpp
C++
project2D/TextureManager.cpp
Cris-Bwls/What-The-Flock
00c047474985570d5dabadd1f4c51ca82536854f
[ "MIT" ]
null
null
null
project2D/TextureManager.cpp
Cris-Bwls/What-The-Flock
00c047474985570d5dabadd1f4c51ca82536854f
[ "MIT" ]
null
null
null
project2D/TextureManager.cpp
Cris-Bwls/What-The-Flock
00c047474985570d5dabadd1f4c51ca82536854f
[ "MIT" ]
null
null
null
#include "TextureManager.h" TextureManager* TextureManager::m_pInstance = nullptr; TextureManager::TextureManager() { int nTotal = (int)ETextures::TOTAL; if (nTotal != m_csPaths.size()) { char* message = "Path size != name total"; //assert(!message); nTotal = m_csPaths.size(); } for (int i...
18.875
76
0.562086
Cris-Bwls
4004914ebfb3f653bc453725e95792c7acb205f6
355
cpp
C++
lib/sladiv.cpp
langou/latl
df838fb44a1ef5c77b57bf60bd46eaeff8db3492
[ "BSD-3-Clause-Open-MPI" ]
6
2015-12-13T09:10:11.000Z
2022-02-09T23:18:22.000Z
lib/sladiv.cpp
langou/latl
df838fb44a1ef5c77b57bf60bd46eaeff8db3492
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
lib/sladiv.cpp
langou/latl
df838fb44a1ef5c77b57bf60bd46eaeff8db3492
[ "BSD-3-Clause-Open-MPI" ]
2
2019-02-01T06:46:36.000Z
2022-02-09T23:18:24.000Z
// // sladiv.cpp // Linear Algebra Template Library // // Created by Rodney James on 1/15/13. // Copyright (c) 2013 University of Colorado Denver. All rights reserved. // #include "lapack.h" #include "ladiv.h" using LATL::LADIV; int sladiv_(float &A, float &B, float &C, float &D, float &P, float &Q) { LADIV<f...
18.684211
74
0.650704
langou
400a250767e540bf26d4aba7bb1af997c1b5309e
7,755
cpp
C++
cpplox/scanner.cpp
HUNTINGHOUND/cpplox
ae3a53a1f70daf58322c1116d9e2565fc4880469
[ "MIT" ]
1
2021-07-03T08:42:46.000Z
2021-07-03T08:42:46.000Z
cpplox/scanner.cpp
HUNTINGHOUND/cpplox
ae3a53a1f70daf58322c1116d9e2565fc4880469
[ "MIT" ]
null
null
null
cpplox/scanner.cpp
HUNTINGHOUND/cpplox
ae3a53a1f70daf58322c1116d9e2565fc4880469
[ "MIT" ]
null
null
null
#include "scanner.hpp" Token::Token(TokenType type, const std::string& source, int start, size_t length, int line) { this->type = type; this->source = source.substr(start, length); this->length = length; this->line = line; } bool Scanner::isAtEnd() { return this->current == this->source.length();...
30.175097
104
0.474404
HUNTINGHOUND
400c23a260bd818986a22cbb55434d1ec58312f9
26,047
cpp
C++
SuperProfilerTests/source/main.cpp
programmingisgood/superprofiler
1fa7d1785ca3c91457c6fb634ab027290a2fa8e6
[ "BSD-3-Clause" ]
null
null
null
SuperProfilerTests/source/main.cpp
programmingisgood/superprofiler
1fa7d1785ca3c91457c6fb634ab027290a2fa8e6
[ "BSD-3-Clause" ]
null
null
null
SuperProfilerTests/source/main.cpp
programmingisgood/superprofiler
1fa7d1785ca3c91457c6fb634ab027290a2fa8e6
[ "BSD-3-Clause" ]
null
null
null
/** Copyright (c) 2009, Brian Cronin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
30.535756
132
0.708181
programmingisgood
400cf326c387ea82fac4bd8633e97151ce9fe64f
10,183
hh
C++
elements/tcp/tcpinfo.hh
leeopop/ClickNF
5bca7586195d1b24d3a899fa084feafa93f81790
[ "MIT" ]
null
null
null
elements/tcp/tcpinfo.hh
leeopop/ClickNF
5bca7586195d1b24d3a899fa084feafa93f81790
[ "MIT" ]
null
null
null
elements/tcp/tcpinfo.hh
leeopop/ClickNF
5bca7586195d1b24d3a899fa084feafa93f81790
[ "MIT" ]
null
null
null
/* * tcpinfo.hh -- TCP information used in multiple modules * Rafael Laufer, Massimo Gallo * * Copyright (c) 2017 Nokia Bell Labs * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source c...
24.130332
148
0.74045
leeopop
400f44bf703a25c63d1420d9a2f5746d6d203325
3,770
cpp
C++
cetty-gearman/src/cetty/gearman/protocol/commands/Worker.cpp
frankee/cetty2
62ac0cd1438275097e47a9ba471e72efd2746ded
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
26
2015-11-08T10:58:21.000Z
2021-02-25T08:27:26.000Z
cetty-gearman/src/cetty/gearman/protocol/commands/Worker.cpp
frankee/cetty2
62ac0cd1438275097e47a9ba471e72efd2746ded
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
1
2019-02-18T08:46:17.000Z
2019-02-18T08:46:17.000Z
cetty-gearman/src/cetty/gearman/protocol/commands/Worker.cpp
frankee/cetty2
62ac0cd1438275097e47a9ba471e72efd2746ded
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
8
2016-02-27T02:37:10.000Z
2021-09-29T05:25:00.000Z
/* * Copyright (c) 2010-2012 frankee zhou (frankee.zhou at gmail dot com) * * Distributed under 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 ...
33.660714
85
0.660212
frankee
401b7ce6e217ffb61808c376b3b6b459a0780a69
2,304
hpp
C++
pythran/pythonic/numpy/nonzero.hpp
jeanlaroche/pythran
6a2452e8588390bbb20575f580dba11b0037962b
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/pythonic/numpy/nonzero.hpp
jeanlaroche/pythran
6a2452e8588390bbb20575f580dba11b0037962b
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/pythonic/numpy/nonzero.hpp
jeanlaroche/pythran
6a2452e8588390bbb20575f580dba11b0037962b
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
#ifndef PYTHONIC_NUMPY_NONZERO_HPP #define PYTHONIC_NUMPY_NONZERO_HPP #include "pythonic/include/numpy/nonzero.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/types/ndarray.hpp" PYTHONIC_NS_BEGIN namespace numpy { namespace { template <class I, class O, size_t M> void _nonzero(I begin, I ...
27.428571
79
0.561632
jeanlaroche
401bc5c28d64e5d86d256508d8f1db0061c623cd
1,446
hpp
C++
proto_server/core/protocol/http/http_response_message.hpp
tseyler/proto-server
e3a45dc64e8081deaad5a8a59560878c2b0bfdc1
[ "MIT" ]
null
null
null
proto_server/core/protocol/http/http_response_message.hpp
tseyler/proto-server
e3a45dc64e8081deaad5a8a59560878c2b0bfdc1
[ "MIT" ]
null
null
null
proto_server/core/protocol/http/http_response_message.hpp
tseyler/proto-server
e3a45dc64e8081deaad5a8a59560878c2b0bfdc1
[ "MIT" ]
null
null
null
// // http_response_message.hpp - class that represents an HTTP response message // part of the proto-server library // // Copyright (c) 2015, 2016 Terry Seyler // // Distributed under the MIT License // See accompanying file LICENSE.md // #ifndef HTTP_RESPONSE_MESSAGE_HPP_ #define HTTP_RESPONSE_MESSAGE_HPP_ #in...
20.657143
78
0.737206
tseyler
4023b220799452e52e0c5c9ec29d889ae84a1968
3,419
cpp
C++
3rdparty/spirv-tools/source/fuzz/fuzzer_pass_add_global_variables.cpp
christiancoder/bgfx
b96deb1cecbd92b2ca46d7266499839069d6ba6a
[ "BSD-2-Clause" ]
20
2019-04-18T07:37:34.000Z
2022-02-02T21:43:47.000Z
source/fuzz/fuzzer_pass_add_global_variables.cpp
indrarahul2013/SPIRV-Tools
636f449e1529a10d259eb7dc37d97192cf2820f8
[ "Apache-2.0" ]
11
2019-10-21T13:39:41.000Z
2021-11-05T08:11:54.000Z
source/fuzz/fuzzer_pass_add_global_variables.cpp
indrarahul2013/SPIRV-Tools
636f449e1529a10d259eb7dc37d97192cf2820f8
[ "Apache-2.0" ]
1
2021-06-12T10:47:21.000Z
2021-06-12T10:47:21.000Z
// Copyright (c) 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
43.278481
80
0.751097
christiancoder
4034078a5bd873090b86aa836eaf85eac4ba01b5
1,835
cpp
C++
cpp_algo/search_in_rotated_sorted_array.cpp
emrahayanoglu/algo-problems
4670a69e92dfe6bf87801c5023f4dc6fedb407f8
[ "MIT" ]
null
null
null
cpp_algo/search_in_rotated_sorted_array.cpp
emrahayanoglu/algo-problems
4670a69e92dfe6bf87801c5023f4dc6fedb407f8
[ "MIT" ]
null
null
null
cpp_algo/search_in_rotated_sorted_array.cpp
emrahayanoglu/algo-problems
4670a69e92dfe6bf87801c5023f4dc6fedb407f8
[ "MIT" ]
null
null
null
#include <iostream> #include <utility> #include <vector> int searchInRotatedSorted(std::vector<int>& nums, int el){ if(nums.size() == 0) return -1; //Binary Search in Sorted Rotated Array //Implemented using following idea: One half has to be sorted int left = 0; int right = nums.size(...
27.80303
65
0.507357
emrahayanoglu
403c3521ea0812c9018a9e87f1b23c6ca7e1ccfc
1,886
cpp
C++
source/Ground/Engine/CEngine.cpp
PardCode/GroundEngine
1b5d4868aa0c598ff9176c84090e9782e0e4eafb
[ "BSD-2-Clause" ]
42
2021-06-29T16:19:17.000Z
2022-03-19T15:21:19.000Z
source/Ground/Engine/CEngine.cpp
PardCode/GroundEngine
1b5d4868aa0c598ff9176c84090e9782e0e4eafb
[ "BSD-2-Clause" ]
null
null
null
source/Ground/Engine/CEngine.cpp
PardCode/GroundEngine
1b5d4868aa0c598ff9176c84090e9782e0e4eafb
[ "BSD-2-Clause" ]
6
2021-10-02T06:26:04.000Z
2022-03-06T20:23:39.000Z
/*Ground Engine (https://www.pardcode.com/groundengine) Copyright (c) 2021-2022, PardCode All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyri...
31.966102
206
0.781548
PardCode
403da2dc29bf06a6b157487166af236987aa24d7
686
cpp
C++
engine/calculators/source/unit_tests/SlownessCalculator_test.cpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
engine/calculators/source/unit_tests/SlownessCalculator_test.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
engine/calculators/source/unit_tests/SlownessCalculator_test.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#include "gtest/gtest.h" TEST(SW_World_Calculator_SlownessCalculator, calc_pct_chance_slowness) { CreaturePtr creature = std::make_shared<Creature>(); creature->set_agility(2); creature->get_resistances().set_resistance_value(DamageType::DAMAGE_TYPE_COLD, 1.0); SlownessCalculator sc; EXPECT_EQ(34, sc.calcu...
26.384615
86
0.78863
sidav
403e4bbfa263afa1bf04bdd02be526fc1fa4229c
422
cpp
C++
5/tile.cpp
j00st/cpse2
f541d9097d1db064974d71f816cf49ecae30c6f8
[ "MIT" ]
null
null
null
5/tile.cpp
j00st/cpse2
f541d9097d1db064974d71f816cf49ecae30c6f8
[ "MIT" ]
null
null
null
5/tile.cpp
j00st/cpse2
f541d9097d1db064974d71f816cf49ecae30c6f8
[ "MIT" ]
null
null
null
#include "tile.hpp" tile::tile(const int place, sf::Vector2f position, sf::Vector2f size, sf::Color color): place(place), position(position), size(size), color(color) { shape.setSize(size); shape.setPosition(position); } void tile::draw(sf::RenderWindow & w){ shape.setFillColor(color); w.draw(shape); ...
21.1
87
0.670616
j00st
4046b37f789a45b5c43e876a843aec16ab7c6816
9,721
cpp
C++
LcgApps/src/EMail/Identities.cpp
mice777/ProfiMail-Symbian-
97cd5bf1abc65c7decdf8d49f0ac155064683b4b
[ "Apache-2.0" ]
null
null
null
LcgApps/src/EMail/Identities.cpp
mice777/ProfiMail-Symbian-
97cd5bf1abc65c7decdf8d49f0ac155064683b4b
[ "Apache-2.0" ]
null
null
null
LcgApps/src/EMail/Identities.cpp
mice777/ProfiMail-Symbian-
97cd5bf1abc65c7decdf8d49f0ac155064683b4b
[ "Apache-2.0" ]
null
null
null
#include "..\Main.h" #include "Main_Email.h" //---------------------------- #define MAX_IDENTITIES 20 //---------------------------- class C_mode_edit_identities: public C_mode_list<C_mail_client>{ void SetSelection(int sel); void StartEdit(); void Delete(); void AddNew(); bool modified; C_mail_c...
28.675516
140
0.594898
mice777
40488e97cc6d9161e0285ded735dca4f94285c4d
1,309
hpp
C++
base/zmq_helper.hpp
RickAi/csci5570
2814c0a6bf608c73bf81d015d13e63443470e457
[ "Apache-2.0" ]
7
2019-04-09T16:25:49.000Z
2021-12-07T10:29:52.000Z
base/zmq_helper.hpp
RickAi/csci5570
2814c0a6bf608c73bf81d015d13e63443470e457
[ "Apache-2.0" ]
null
null
null
base/zmq_helper.hpp
RickAi/csci5570
2814c0a6bf608c73bf81d015d13e63443470e457
[ "Apache-2.0" ]
4
2019-08-07T07:43:27.000Z
2021-05-21T07:54:14.000Z
#pragma once #include <glog/logging.h> #include <zmq.h> inline void zmq_send_common(zmq::socket_t *socket, const void *data, const size_t &len, int flag = !ZMQ_NOBLOCK) { CHECK(socket != nullptr) << "zmq::socket_t cannot be nullptr!"; CHECK(data != nullptr || len == 0) << "data and len are not matched!"; ...
33.564103
114
0.521008
RickAi
404a5f72a35c23a49b1fc8fe6a294424137452b4
343
hpp
C++
src/Piece/inc/IPieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
1
2017-03-21T07:57:01.000Z
2017-03-21T07:57:01.000Z
src/Piece/inc/IPieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
null
null
null
src/Piece/inc/IPieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
null
null
null
#pragma once #include <memory> #include "IPiece.hpp" #include "IPlayer.hpp" namespace Chess { class IObservableBoard; class Location; class IPieceFactory { public: virtual ~IPieceFactory() {}; virtual std::unique_ptr<IPiece> makePiece(std::weak_ptr<IObservableBoard> board, const IPlayer& player, const IPiece:...
21.4375
136
0.737609
bandienkhamgalan
4051607d6a43b7cc9b181e0a9b6fc386faaa7c3e
3,213
hpp
C++
ares/sfc/coprocessor/spc7110/spc7110.hpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
153
2020-07-25T17:55:29.000Z
2021-10-01T23:45:01.000Z
ares/sfc/coprocessor/spc7110/spc7110.hpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
245
2021-10-08T09:14:46.000Z
2022-03-31T08:53:13.000Z
ares/sfc/coprocessor/spc7110/spc7110.hpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
44
2020-07-25T08:51:55.000Z
2021-09-25T16:09:01.000Z
struct Decompressor; struct SPC7110 : Thread { SPC7110(); ~SPC7110(); auto main() -> void; auto unload() -> void; auto power() -> void; auto addClocks(u32 clocks) -> void; auto read(n24 address, n8 data) -> n8; auto write(n24 address, n8 data) -> void; auto mcuromRead(n24 address, n8 data) -> n8;...
26.553719
58
0.661064
CasualPokePlayer