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
a06fb82f5771075a2a2ae1f4cc6c4022161e5ea6
3,372
cpp
C++
codechef/stupmach/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
codechef/stupmach/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
12
2019-09-04T10:38:24.000Z
2019-12-08T18:09:41.000Z
codechef/stupmach/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
//#include <bits/stdc++.h> #include <iostream> #include <vector> using namespace std; #define g0 get<0> #define g1 get<1> typedef int64_t i64; //typedef int32_t i32; typedef uint64_t u64; //typedef uint32_t u32; //typedef string st; //typedef stringstream ss; // //typedef double db; // //typedef vector<i64> vl; //ty...
19.268571
79
0.294781
rockoanna
a0781a02aea460c775d3e50f7a0ee1dd5cf72e68
776
cpp
C++
src/Config/llvm-config.cpp
YiraSan/llvm-bindings
9fdae3c836eb329d42f8253adadf09ecaa44e2ee
[ "MIT" ]
155
2021-03-25T09:21:47.000Z
2022-03-30T01:51:40.000Z
src/Config/llvm-config.cpp
YiraSan/llvm-bindings
9fdae3c836eb329d42f8253adadf09ecaa44e2ee
[ "MIT" ]
13
2021-03-31T01:54:34.000Z
2022-03-19T05:43:45.000Z
src/Config/llvm-config.cpp
YiraSan/llvm-bindings
9fdae3c836eb329d42f8253adadf09ecaa44e2ee
[ "MIT" ]
20
2021-04-11T05:27:43.000Z
2022-03-06T04:48:15.000Z
#include "Config/llvm-config.h" void InitLLVMConfig(Napi::Env env, Napi::Object &exports) { Napi::Object configNS = Napi::Object::New(env); configNS.Set("LLVM_DEFAULT_TARGET_TRIPLE", Napi::String::New(env, LLVM_DEFAULT_TARGET_TRIPLE)); configNS.Set("LLVM_HOST_TRIPLE", Napi::String::New(env, LLVM_HOST_TRIP...
48.5
99
0.734536
YiraSan
a078fd92558af1e9fde7226061c3222ed1825655
601
cpp
C++
noobdream/1007.cpp
xuzf-git/code-practice
7d7a50d9d2f62ec1c77ac198148702dc3d920c8b
[ "MIT" ]
1
2021-08-14T05:57:23.000Z
2021-08-14T05:57:23.000Z
noobdream/1007.cpp
xuzf-git/code-practice
7d7a50d9d2f62ec1c77ac198148702dc3d920c8b
[ "MIT" ]
null
null
null
noobdream/1007.cpp
xuzf-git/code-practice
7d7a50d9d2f62ec1c77ac198148702dc3d920c8b
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; int main(int argc, char const *argv[]) { int line_flag = 0; vector<int> res; for (size_t i = 100; i < 1001; i++) { if (i % 5 == 0 && i % 6 == 0) { res.push_back(i); } } int len = res.size(); for (s...
18.212121
44
0.389351
xuzf-git
a07c389140d631ad8026297497477c6693ddde65
1,611
cc
C++
test/zones/zone-add-delete.cc
Habbie/pdns-sysrepo
382adace438d6ca2d1c95d2a807dca3d774d771d
[ "Apache-2.0" ]
null
null
null
test/zones/zone-add-delete.cc
Habbie/pdns-sysrepo
382adace438d6ca2d1c95d2a807dca3d774d771d
[ "Apache-2.0" ]
null
null
null
test/zones/zone-add-delete.cc
Habbie/pdns-sysrepo
382adace438d6ca2d1c95d2a807dca3d774d771d
[ "Apache-2.0" ]
null
null
null
#include "test-common.hh" #include "configurator/subscribe.hh" #include "callback-wrapper.hh" #include "api-mock.hh" /// Server started in main(). static httpmock::TestEnvironment<httpmock::MockServerHolder>* mock_server_env = nullptr; static std::shared_ptr<pdns_api::ApiClient> apiClient; TEST(zone_test, modify_zo...
36.613636
132
0.736809
Habbie
a0839b8ee62e0e7343cf30f776007b3ffa976420
4,008
cpp
C++
src/backend/gporca/libnaucrates/src/operators/CDXLScalarAssertConstraint.cpp
fanfuxiaoran/gpdb
84e73a9eb2d4a7aff8ab66c0ee76e47b51676be6
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
src/backend/gporca/libnaucrates/src/operators/CDXLScalarAssertConstraint.cpp
fanfuxiaoran/gpdb
84e73a9eb2d4a7aff8ab66c0ee76e47b51676be6
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
src/backend/gporca/libnaucrates/src/operators/CDXLScalarAssertConstraint.cpp
fanfuxiaoran/gpdb
84e73a9eb2d4a7aff8ab66c0ee76e47b51676be6
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2015 VMware, Inc. or its affiliates. // // @filename: // CDXLScalarAssertConstraint.cpp // // @doc: // Implementation of DXL scalar assert predicate //--------------------------------------------------...
27.641379
77
0.518713
fanfuxiaoran
a084202eba096b0844e23c61402acb01a31c960d
750
hpp
C++
include/private/ExpressionProjections.hpp
PetokLorand/ETL
9aebbd4044a1604813163b1104aa5d4d017befa9
[ "MIT" ]
null
null
null
include/private/ExpressionProjections.hpp
PetokLorand/ETL
9aebbd4044a1604813163b1104aa5d4d017befa9
[ "MIT" ]
null
null
null
include/private/ExpressionProjections.hpp
PetokLorand/ETL
9aebbd4044a1604813163b1104aa5d4d017befa9
[ "MIT" ]
null
null
null
#ifndef ET_EXPRESSION_PROJECTIONS_HPP #define ET_EXPRESSION_PROJECTIONS_HPP namespace et { class IdentityProjection { public: template <typename TExpression> decltype(auto) operator()(TExpression&& expression) { return std::forward<TExpression>(expression); } }; template <typename TIdxExpress...
20.833333
78
0.734667
PetokLorand
a084a3607e48433e81fb01a68cc5fecfeda3fc65
2,924
cpp
C++
Calculator/src/test/Any/ButtonGrid.test.cpp
Songtech-0912/InstantCalc
2b36a3a7c47a7ae358eea36a4e2d7f120456dc86
[ "MIT" ]
1
2020-09-27T12:55:41.000Z
2020-09-27T12:55:41.000Z
Calculator/src/test/Any/ButtonGrid.test.cpp
Songtech-0912/InstantCalc
2b36a3a7c47a7ae358eea36a4e2d7f120456dc86
[ "MIT" ]
177
2020-05-04T09:14:05.000Z
2022-03-25T00:02:12.000Z
Calculator/src/test/Any/ButtonGrid.test.cpp
Songtech-0912/InstantCalc
2b36a3a7c47a7ae358eea36a4e2d7f120456dc86
[ "MIT" ]
1
2021-10-31T04:42:41.000Z
2021-10-31T04:42:41.000Z
#ifdef TEST #include "ButtonGrid.test.h" #include "../../main/Any/ButtonGrid.h" #include "../../main/Struct/Point.h" namespace ii887522::Calculator { constexpr static void testGetButtonX() { { constexpr ButtonGrid buttonGrid{ Point{ 0, 0 } }; static_assert(buttonGrid.getButtonX(0) == 0); static_assert(bu...
31.106383
52
0.68844
Songtech-0912
a084eb44c8399bd2917ae6797e02bb43de72c9dd
4,724
cc
C++
src/solv_smurf/fn_smurf_au/transitions_au.cc
nerdling/SBSAT
6328c6aa105b75693d06bf0dae4a3b5ca220318b
[ "Unlicense" ]
4
2015-03-08T07:56:29.000Z
2017-10-12T04:19:27.000Z
src/solv_smurf/fn_smurf_au/transitions_au.cc
nerdling/SBSAT
6328c6aa105b75693d06bf0dae4a3b5ca220318b
[ "Unlicense" ]
null
null
null
src/solv_smurf/fn_smurf_au/transitions_au.cc
nerdling/SBSAT
6328c6aa105b75693d06bf0dae4a3b5ca220318b
[ "Unlicense" ]
null
null
null
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */ /********************************************************************* Copyright 1999-2007, University of Cincinnati. All rights reserved. By using this software the USER indicates that he or she has read, understood and will comply with the f...
40.724138
106
0.70597
nerdling
a088aa6e0618eb216a83cc73e22a3d783f1e9bec
1,543
cpp
C++
Maximize The Array - GFG/maximize-the-array.cpp
champmaniac/LeetCode
65810e0123e0ceaefb76d0a223436d1525dac0d4
[ "MIT" ]
1
2022-02-27T09:01:07.000Z
2022-02-27T09:01:07.000Z
Maximize The Array - GFG/maximize-the-array.cpp
champmaniac/LeetCode
65810e0123e0ceaefb76d0a223436d1525dac0d4
[ "MIT" ]
null
null
null
Maximize The Array - GFG/maximize-the-array.cpp
champmaniac/LeetCode
65810e0123e0ceaefb76d0a223436d1525dac0d4
[ "MIT" ]
null
null
null
// { Driver Code Starts //Initial template for C++ #include <bits/stdc++.h> #include <unordered_map> using namespace std; // } Driver Code Ends //User function template for C++ class Solution { public: vector<int> maximizeArray(int arr1[], int arr2[], int n) { // code here vector<int> v...
24.109375
62
0.383668
champmaniac
a088ef623baa9bf3bb9a3fbca43cbfbff6890955
1,179
hpp
C++
SceneAnimation.hpp
kaitokidi/WhoTookMyHat
dc4ebdbe880a10cb681bf2749095f4bbbbe51f88
[ "MIT" ]
4
2016-02-09T18:19:16.000Z
2016-08-14T11:50:46.000Z
SceneAnimation.hpp
kaitokidi/WhoTookMyHat
dc4ebdbe880a10cb681bf2749095f4bbbbe51f88
[ "MIT" ]
null
null
null
SceneAnimation.hpp
kaitokidi/WhoTookMyHat
dc4ebdbe880a10cb681bf2749095f4bbbbe51f88
[ "MIT" ]
null
null
null
#ifndef SCENEANIMATION_HPP #define SCENEANIMATION_HPP #include "Scene.hpp" #include "utils.hpp" #include "Bullet.hpp" #include "Player.hpp" #include "Background.hpp" #define Action std::vector <std::string> class Element : public sf::Sprite { public: Element(); bool getVisible() const; void setVisible(b...
19.016129
112
0.669211
kaitokidi
a08aa343b7a8b15b8f82b49cad0c69269076c24d
1,419
cpp
C++
src/qsort_vs_sort.cpp
ma-ka-ko/examples
798ff4bc44de1a6b8901455e6fcec21884fa7e9c
[ "CC0-1.0" ]
null
null
null
src/qsort_vs_sort.cpp
ma-ka-ko/examples
798ff4bc44de1a6b8901455e6fcec21884fa7e9c
[ "CC0-1.0" ]
null
null
null
src/qsort_vs_sort.cpp
ma-ka-ko/examples
798ff4bc44de1a6b8901455e6fcec21884fa7e9c
[ "CC0-1.0" ]
null
null
null
/* * qsort_vs_sort.cpp * * Created on: Feb 23, 2016 * Author: oagomez */ #include <iostream> #include <vector> #include <algorithm> #include <iterator> #include <cstdlib> #include <ctime> #include <cstdio> const size_t LARGE_SIZE = 100000 * 10; struct rnd { int operator()() { return rand() % L...
26.773585
112
0.602537
ma-ka-ko
a08e23da08d1fe3455c5d19aab1d4ec269887f73
43
cpp
C++
Source/Life/Components/WoodComponent.cpp
PsichiX/Unreal-Systems-Architecture
fb2ccb243c8e79b0890736d611db7ba536937a93
[ "Apache-2.0" ]
5
2022-02-09T21:19:03.000Z
2022-03-03T01:53:03.000Z
Source/Life/Components/WoodComponent.cpp
PsichiX/Unreal-Systems-Architecture
fb2ccb243c8e79b0890736d611db7ba536937a93
[ "Apache-2.0" ]
null
null
null
Source/Life/Components/WoodComponent.cpp
PsichiX/Unreal-Systems-Architecture
fb2ccb243c8e79b0890736d611db7ba536937a93
[ "Apache-2.0" ]
null
null
null
#include "Life/Components/WoodComponent.h"
21.5
42
0.813953
PsichiX
a08f318082809ca9d618bc0427470c39c0b408fc
4,876
cpp
C++
examples/06_descriptors/graphics/swapchain.cpp
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
examples/06_descriptors/graphics/swapchain.cpp
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
examples/06_descriptors/graphics/swapchain.cpp
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
#include "swapchain.hpp" #include "device.hpp" #include "surface.hpp" #include "sync.hpp" #include <unordered_set> #include <iostream> namespace gfx { inline namespace v1 { swapchain::swapchain(device& d, surface& s, bool general_images) : _general_images(general_images) , _dispatcher(&d.g...
35.591241
127
0.612797
johannes-braun
90b4148f2f4780057a5816dae1b8d11316d88054
70,165
cpp
C++
src/simplex/HighsSimplexInterface.cpp
potehin143/HiGHS
a53ff1b7086e11deba497a6b069924fae6347f44
[ "MIT" ]
null
null
null
src/simplex/HighsSimplexInterface.cpp
potehin143/HiGHS
a53ff1b7086e11deba497a6b069924fae6347f44
[ "MIT" ]
null
null
null
src/simplex/HighsSimplexInterface.cpp
potehin143/HiGHS
a53ff1b7086e11deba497a6b069924fae6347f44
[ "MIT" ]
null
null
null
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the HiGHS linear optimization suite */ /* */ /* Written an...
40.984229
80
0.650567
potehin143
90b53e78d778bc18240137785250fff13f00622c
2,301
cpp
C++
src/Rendering/GUI/QtGUI/Nodes/BlockState.cpp
Oncle-Ha/peridyno
7952252923d637685bf3a982856aca8095b78c50
[ "Apache-2.0" ]
22
2021-05-26T09:19:07.000Z
2022-03-28T04:06:21.000Z
src/Rendering/GUI/QtGUI/Nodes/BlockState.cpp
Oncle-Ha/peridyno
7952252923d637685bf3a982856aca8095b78c50
[ "Apache-2.0" ]
1
2021-07-27T09:43:42.000Z
2022-02-07T14:47:18.000Z
src/Rendering/GUI/QtGUI/Nodes/BlockState.cpp
Oncle-Ha/peridyno
7952252923d637685bf3a982856aca8095b78c50
[ "Apache-2.0" ]
11
2021-04-24T03:43:33.000Z
2022-03-11T14:09:21.000Z
#include "BlockState.h" #include "QtBlockDataModel.h" #include "QtConnection.h" using QtNodes::BlockState; using QtNodes::BlockDataType; using QtNodes::QtBlockDataModel; using QtNodes::PortType; using QtNodes::PortIndex; using QtNodes::QtConnection; BlockState:: BlockState(std::unique_ptr<QtBlockDataModel> const &m...
16.553957
66
0.719687
Oncle-Ha
90b5ea79063da16c0263e846c54cd017b58eb55e
488
cpp
C++
ares/sfc/coprocessor/coprocessor.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
153
2020-07-25T17:55:29.000Z
2021-10-01T23:45:01.000Z
ares/sfc/coprocessor/coprocessor.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
245
2021-10-08T09:14:46.000Z
2022-03-31T08:53:13.000Z
ares/sfc/coprocessor/coprocessor.cpp
CasualPokePlayer/ares
58690cd5fc7bb6566c22935c5b80504a158cca29
[ "BSD-3-Clause" ]
44
2020-07-25T08:51:55.000Z
2021-09-25T16:09:01.000Z
#include <sfc/sfc.hpp> namespace ares::SuperFamicom { #include "armdsp/armdsp.cpp" #include "competition/competition.cpp" #include "dip/dip.cpp" #include "epsonrtc/epsonrtc.cpp" #include "hitachidsp/hitachidsp.cpp" #include "icd/icd.cpp" #include "mcc/mcc.cpp" #include "msu1/msu1.cpp" #include "necdsp/necdsp.cpp" #in...
22.181818
38
0.747951
CasualPokePlayer
90bb34e91a6a9a564beca177b20495399b4a761d
63,996
cpp
C++
src/ripple/overlay/impl/PeerImp.cpp
Xenland/radard
ea4c693aac78e096012e4af8cdd8a5b12bd415d7
[ "BSL-1.0" ]
1
2017-07-02T10:36:06.000Z
2017-07-02T10:36:06.000Z
src/ripple/overlay/impl/PeerImp.cpp
Xenland/radard
ea4c693aac78e096012e4af8cdd8a5b12bd415d7
[ "BSL-1.0" ]
null
null
null
src/ripple/overlay/impl/PeerImp.cpp
Xenland/radard
ea4c693aac78e096012e4af8cdd8a5b12bd415d7
[ "BSL-1.0" ]
1
2021-01-19T17:14:39.000Z
2021-01-19T17:14:39.000Z
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
30.144136
91
0.543534
Xenland
90bb5c6db9ba4a6315e0aa0d92db53a8bb88884a
1,275
cpp
C++
src/IRbabyUDP.cpp
wwmoo7/IRbaby-firmware
7de0304c2c708a7094324bce1560ac39fcdb8e84
[ "MIT" ]
38
2020-04-09T03:17:16.000Z
2022-03-21T06:33:05.000Z
src/IRbabyUDP.cpp
wwmoo7/IRbaby-firmware
7de0304c2c708a7094324bce1560ac39fcdb8e84
[ "MIT" ]
6
2020-05-19T10:56:31.000Z
2022-01-24T07:21:40.000Z
src/IRbabyUDP.cpp
wwmoo7/IRbaby-firmware
7de0304c2c708a7094324bce1560ac39fcdb8e84
[ "MIT" ]
15
2020-06-26T09:31:32.000Z
2021-09-01T15:22:00.000Z
#include <WiFiUdp.h> #include <ESP8266WiFi.h> #include "IRbabyUDP.h" #include "IRbabySerial.h" WiFiUDP UDP; IPAddress remote_ip; char incomingPacket[UDP_PACKET_SIZE]; // buffer for incoming packets void udpInit() { UDP.begin(UDP_PORT); DEBUGF("Now listening at IP %s, UDP port %d\n", WiFi.localIP()...
27.12766
121
0.624314
wwmoo7
90c02be60582530c5fda12e9736d11de6a64bb0d
290
cpp
C++
Plugins/Pixel2D/Source/Pixel2D/Private/Pixel2DAnimNotifyEvent.cpp
UnderGround-orchestra-band/SuperRogue
65a520ac6ccf859c5994e429ffe915e9ff6f1028
[ "MIT" ]
1
2021-12-18T13:50:51.000Z
2021-12-18T13:50:51.000Z
Plugins/Pixel2D/Source/Pixel2D/Private/Pixel2DAnimNotifyEvent.cpp
UnderGround-orchestra-band/SuperRogue
65a520ac6ccf859c5994e429ffe915e9ff6f1028
[ "MIT" ]
1
2021-11-30T08:09:46.000Z
2021-11-30T08:09:46.000Z
Plugins/Pixel2D/Source/Pixel2D/Private/Pixel2DAnimNotifyEvent.cpp
UnderGround-orchestra-band/SuperRogue
65a520ac6ccf859c5994e429ffe915e9ff6f1028
[ "MIT" ]
null
null
null
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. #include "Pixel2DAnimNotifyEvent.h" bool FPixel2DAnimNotifyEvent::CanTrigger(float ElapsedTime, float TotalTime) { if ((!bEnabled) || (bTriggered)) return false; return (ElapsedTime > TotalTime*NormalisedTriggerOffset); }
24.166667
76
0.768966
UnderGround-orchestra-band
90c0cf448df9859224dc9ac3d8c2d0aac8bb7e64
1,919
hpp
C++
include/Color.hpp
mariohackandglitch/YAMKC_3DS
aed7d9b1d714b13391ebb40377c4ac36892ab82f
[ "RSA-MD" ]
12
2021-05-13T12:47:25.000Z
2021-05-30T19:22:43.000Z
include/Color.hpp
mariohackandglitch/YAMKC_3DS
aed7d9b1d714b13391ebb40377c4ac36892ab82f
[ "RSA-MD" ]
null
null
null
include/Color.hpp
mariohackandglitch/YAMKC_3DS
aed7d9b1d714b13391ebb40377c4ac36892ab82f
[ "RSA-MD" ]
null
null
null
#pragma once // Clase que representa un color RGBA class Color { public: Color() { this->r = this->g = this->b = this->a = 0; } Color(int r, int g, int b) { this->r = r / 255.f; this->g = g / 255.f; this->b = b / 255.f; this->a = 1; } Color(int r, int g, int b...
26.652778
112
0.467431
mariohackandglitch
90cae4b1c8bd08fd1c24fe9b759d37ed0e02f17b
3,506
cpp
C++
src/game/client/tf/vgui/panels/tf_rgbpanel.cpp
mastercoms/TF2Classic
012960d85c6782aeb79b7dff4fe878cc8161008b
[ "Unlicense" ]
9
2019-07-18T15:01:29.000Z
2020-09-15T22:10:08.000Z
src/game/client/tf/vgui/panels/tf_rgbpanel.cpp
mastercoms/TF2Classic
012960d85c6782aeb79b7dff4fe878cc8161008b
[ "Unlicense" ]
null
null
null
src/game/client/tf/vgui/panels/tf_rgbpanel.cpp
mastercoms/TF2Classic
012960d85c6782aeb79b7dff4fe878cc8161008b
[ "Unlicense" ]
9
2019-08-14T15:05:18.000Z
2022-03-06T16:35:47.000Z
#include "cbase.h" #include "tf_rgbpanel.h" #include "controls/tf_cvarcombobox.h" #include "controls/tf_cvarslider.h" #include <vgui/ILocalize.h> #include "controls/tf_advmodelpanel.h" #include "c_tf_player.h" using namespace vgui; // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h"...
29.711864
130
0.674843
mastercoms
90cc743d40305d99b66114c27d1372d8e35c0d1b
14,087
hpp
C++
inc/UI/Ribbon.hpp
barne856/3DSWMM
60dd2702c82857dcf4358b8d42a1fb430a568e90
[ "MIT" ]
null
null
null
inc/UI/Ribbon.hpp
barne856/3DSWMM
60dd2702c82857dcf4358b8d42a1fb430a568e90
[ "MIT" ]
null
null
null
inc/UI/Ribbon.hpp
barne856/3DSWMM
60dd2702c82857dcf4358b8d42a1fb430a568e90
[ "MIT" ]
null
null
null
#ifndef RIBBON #define RIBBON #include "Application/Application.hpp" #include "Application/UIElement.hpp" #include "UI/Flyout.hpp" #include "Meshes/Rectangle.hpp" #include "Meshes/Circle.hpp" #include "Materials/Flat.hpp" #include "Application/Renderer.hpp" #include "Tools/LinkTool.hpp" #include "Tools/NodeTool.hpp" #...
36.400517
221
0.567119
barne856
90cf3b0a9f524914bda76a32a2f9253837fb0440
4,709
cpp
C++
genius/ECS/Common/Components/AnimationCom.cpp
TinySlik/genius-tiny
a9dd13654919224ec525601a305fca2bc6cf9498
[ "MIT" ]
null
null
null
genius/ECS/Common/Components/AnimationCom.cpp
TinySlik/genius-tiny
a9dd13654919224ec525601a305fca2bc6cf9498
[ "MIT" ]
null
null
null
genius/ECS/Common/Components/AnimationCom.cpp
TinySlik/genius-tiny
a9dd13654919224ec525601a305fca2bc6cf9498
[ "MIT" ]
null
null
null
/**************************************************************************** Copyright (c) 2014 Elvis Qin Copyright (c) 2014 Soulgame Inc. http://www.genius-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
37.975806
138
0.600552
TinySlik
90d0b9af8e79a83b1475a21588b10d62b0235617
17,697
cc
C++
shell/platform/fuchsia/dart_runner/dart_component_controller_v2.cc
xumoyan/engine
aa448c75ec43af82718b4496054ed27a880ac7f1
[ "BSD-3-Clause" ]
5,823
2015-09-20T02:43:18.000Z
2022-03-31T23:38:55.000Z
shell/platform/fuchsia/dart_runner/dart_component_controller_v2.cc
xumoyan/engine
aa448c75ec43af82718b4496054ed27a880ac7f1
[ "BSD-3-Clause" ]
20,081
2015-09-19T16:07:59.000Z
2022-03-31T23:33:26.000Z
shell/platform/fuchsia/dart_runner/dart_component_controller_v2.cc
xumoyan/engine
aa448c75ec43af82718b4496054ed27a880ac7f1
[ "BSD-3-Clause" ]
5,383
2015-09-24T22:49:53.000Z
2022-03-31T14:33:51.000Z
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "dart_component_controller_v2.h" #include <fcntl.h> #include <fml/logging.h> #include <lib/async-loop/loop.h> #include <lib/async/cpp/task.h> #in...
33.265038
80
0.682715
xumoyan
90d14a5fe2aab4ce96d28f80eb7f8cfc3d3b8c7e
2,900
cpp
C++
src/use_designpattern/src/AdapterPattern.cpp
unihykes/monk
d5ad969fea75912d4aad913adf945f78ec4df60e
[ "Apache-2.0" ]
2
2018-03-27T02:46:03.000Z
2018-05-24T02:49:17.000Z
src/use_designpattern/src/AdapterPattern.cpp
six-th/monk
d5ad969fea75912d4aad913adf945f78ec4df60e
[ "Apache-2.0" ]
null
null
null
src/use_designpattern/src/AdapterPattern.cpp
six-th/monk
d5ad969fea75912d4aad913adf945f78ec4df60e
[ "Apache-2.0" ]
null
null
null
/*************************************************************************************************** LICENSE: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/...
22.834646
101
0.638276
unihykes
90d98895b04afe6374b563f9c3eac86d349a10cc
1,312
cc
C++
overhead.cc
arichardson/capsicum-test
42fe9592442b0e019eb7eecc545c95bec082adcb
[ "BSD-2-Clause" ]
34
2015-02-22T16:44:25.000Z
2021-10-21T03:00:41.000Z
overhead.cc
arichardson/capsicum-test
42fe9592442b0e019eb7eecc545c95bec082adcb
[ "BSD-2-Clause" ]
37
2015-06-08T06:20:57.000Z
2021-03-02T10:38:38.000Z
overhead.cc
arichardson/capsicum-test
42fe9592442b0e019eb7eecc545c95bec082adcb
[ "BSD-2-Clause" ]
22
2015-03-13T05:16:17.000Z
2021-04-07T16:59:34.000Z
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h> #include <unistd.h> #include "capsicum.h" #include "syscalls.h" #include "capsicum-test.h" #ifdef HAVE_SYSCALL double RepeatSyscall(int count, int nr, long arg1, long arg2, long arg3) { const clock_t t0 = clock(); // or gettimeofday o...
28.521739
83
0.654726
arichardson
90da81d0f81e427d1c6157bd9ef6445c2e00838d
923
cpp
C++
glutTest/src/Camera.cpp
Crumbler/TorusMaze
c3b0f5fb3a3cf744cb918631592ffd9ac350e17e
[ "MIT" ]
null
null
null
glutTest/src/Camera.cpp
Crumbler/TorusMaze
c3b0f5fb3a3cf744cb918631592ffd9ac350e17e
[ "MIT" ]
null
null
null
glutTest/src/Camera.cpp
Crumbler/TorusMaze
c3b0f5fb3a3cf744cb918631592ffd9ac350e17e
[ "MIT" ]
null
null
null
#include "Camera.hpp" #include <algorithm> #include "Maths.hpp" void Camera::changeOrbitDistance(float dd) { targetOrbitDistance = std::clamp(targetOrbitDistance + dd, 1.5f, 5.0f); } void Camera::changeOrbitDistanceInstant(float dd) { targetOrbitDistance = std::clamp(targetOrbitDistance + dd, 1.5f, 5.0f); ...
24.289474
75
0.671723
Crumbler
90dafb2f9068907e1425062bce4fbb96a8633168
2,679
cpp
C++
samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.CreateInstance3 Example/CPP/source.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
421
2018-04-01T01:57:50.000Z
2022-03-28T15:24:42.000Z
samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.CreateInstance3 Example/CPP/source.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
5,797
2018-04-02T21:12:23.000Z
2022-03-31T23:54:38.000Z
samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Array.CreateInstance3 Example/CPP/source.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
1,482
2018-03-31T11:26:20.000Z
2022-03-30T22:36:45.000Z
// <Snippet1> using namespace System; void PrintValues( Array^ myArr ); void main() { // Creates and initializes a multidimensional Array instance of type String. array<int>^myLengthsArray = {2,3,4,5}; Array^ my4DArray = Array::CreateInstance( String::typeid, myLengthsArray ); for ( int i = my4DAr...
34.346154
105
0.537141
hamarb123
90db5c10aa19b32701bb324b9bc37caabdf9be48
2,089
cpp
C++
Vitis-AI-Library/libsrc/libdpmultitask/src/multitask_imp.cpp
Trabing/Vitis-AI
936881527ed9a4dcd4956b1269ab157c888f4be6
[ "Apache-2.0" ]
2
2021-03-18T17:00:07.000Z
2022-03-18T18:28:23.000Z
Vitis-AI-Library/libsrc/libdpmultitask/src/multitask_imp.cpp
Trabing/Vitis-AI
936881527ed9a4dcd4956b1269ab157c888f4be6
[ "Apache-2.0" ]
null
null
null
Vitis-AI-Library/libsrc/libdpmultitask/src/multitask_imp.cpp
Trabing/Vitis-AI
936881527ed9a4dcd4956b1269ab157c888f4be6
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
31.179104
79
0.738631
Trabing
90dfb163db1bbc7a5b8c38f588a7ebafd16761a1
1,952
cc
C++
src/controller.cc
wzm727069/HorseFarm
447707b6c352e93fe7eb671d7570fb809d8acd51
[ "MIT" ]
1
2020-02-06T22:03:45.000Z
2020-02-06T22:03:45.000Z
src/controller.cc
wzm727069/HorseFarm
447707b6c352e93fe7eb671d7570fb809d8acd51
[ "MIT" ]
null
null
null
src/controller.cc
wzm727069/HorseFarm
447707b6c352e93fe7eb671d7570fb809d8acd51
[ "MIT" ]
1
2020-07-12T15:16:26.000Z
2020-07-12T15:16:26.000Z
#include "controller.h" #include "window.h" float Controller::c_vertical = 0.0f; float Controller::c_horizontal = 90.0f; float Controller::c_dir_x = 0.0f; float Controller::c_dir_y = 0.0f; float Controller::c_dir_z = 0.0f; float Controller::fov = 45.0f;//perspective angle float Controller::c_radius = 80.0f; glm::vec...
31.483871
145
0.705943
wzm727069
90ed52256be75bcedfdeced60efbdd3e044b3f40
2,078
cpp
C++
Mana/src/Mana/Render/Shader.cpp
Ebsidia/Mana
ebecc2a02ab65d634438e2c207b4bb0b8af01505
[ "Apache-2.0" ]
null
null
null
Mana/src/Mana/Render/Shader.cpp
Ebsidia/Mana
ebecc2a02ab65d634438e2c207b4bb0b8af01505
[ "Apache-2.0" ]
null
null
null
Mana/src/Mana/Render/Shader.cpp
Ebsidia/Mana
ebecc2a02ab65d634438e2c207b4bb0b8af01505
[ "Apache-2.0" ]
null
null
null
#include "mapch.h" #include "Shader.h" #include "Renderer.h" #include "Platform/OpenGL/OpenGLShader.h" namespace Mana { Ref<Shader> Shader::Create(const std::string& filePath) { switch (Renderer::getAPI()) { case RendererAPI::API::None: MA_CORE_ASSERT(false, "RendererAPI::None is ...
28.465753
125
0.627045
Ebsidia
90f9a09dd05399e90cbdd30b727056e9d37f1526
855
hpp
C++
COMP330-Assignment1/Objects/House.hpp
evanhollins/COMP330Assignment1
dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319
[ "MIT" ]
null
null
null
COMP330-Assignment1/Objects/House.hpp
evanhollins/COMP330Assignment1
dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319
[ "MIT" ]
null
null
null
COMP330-Assignment1/Objects/House.hpp
evanhollins/COMP330Assignment1
dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319
[ "MIT" ]
null
null
null
// // House.hpp // COMP330-Assignment1 // // Created by Evan Hollins on 4/13/18. // Copyright © 2018 Evan Hollins. All rights reserved. // #ifndef House_hpp #define House_hpp #include <stdio.h> #include <stdlib.h> #include "Shape.hpp" #include "Color.hpp" #include "Point.hpp" #include "Triangle.hpp" #include "Ci...
18.191489
55
0.676023
evanhollins
290638c9db64f53561a6c80d631c8065c986a759
3,973
cpp
C++
src/sgct/tracker.cpp
sgct/sgct
0a4596ff2ea90c9f0dfbddd7b14f7ecee783baf1
[ "libpng-2.0" ]
7
2020-02-11T15:03:48.000Z
2022-01-08T04:04:58.000Z
src/sgct/tracker.cpp
sgct/sgct
0a4596ff2ea90c9f0dfbddd7b14f7ecee783baf1
[ "libpng-2.0" ]
28
2020-01-24T11:24:43.000Z
2022-03-03T15:48:10.000Z
src/sgct/tracker.cpp
sgct/sgct
0a4596ff2ea90c9f0dfbddd7b14f7ecee783baf1
[ "libpng-2.0" ]
5
2020-02-19T08:26:25.000Z
2022-01-08T04:05:10.000Z
/***************************************************************************************** * SGCT * * Simple Graphics Cluster Toolkit * * ...
33.386555
90
0.58218
sgct
2907be59635cbf0b9deb21d7cab47d9ea6ba29ce
926
cpp
C++
day13/part2.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
day13/part2.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
day13/part2.cpp
Moremar/advent_of_code_2016
dea264671fc2c31baa42b1282751dfd1ae071a7d
[ "Apache-2.0" ]
null
null
null
#include "part1.hpp" #include "part2.hpp" using namespace std; int Part2::solve(const tuple<int, int, int> &input) { World world(get<0>(input)); const int maxDist = 50; set<Coordinates> seen; list<pair<int, Coordinates>> toCheck = { {0, {1, 1}} }; // distance so far + (x, y) while (toCheck.size(...
29.870968
88
0.573434
Moremar
2908b8d6d457dfd32500abbfd5a7d3ec1103d152
4,781
cpp
C++
misc/52_C.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
misc/52_C.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
misc/52_C.cpp
parthlathiya/Codeforces_Submissions
6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for(ll i=a;i<b;i++) #define re(i,b) for(ll i=0;i<b;i++) #define repr(i,n) for(ll i=n-1;i>=0;i--) #define ll long long #define ld long double #define llu long long unsigned #define pll std::pair<ll, ll> #defin...
23.551724
88
0.370215
parthlathiya
290902a9377ccd9beb78035c46f0b0cfafba159c
2,982
cpp
C++
benchmark/main.cpp
LPetrlik/karindb
8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea
[ "MIT" ]
null
null
null
benchmark/main.cpp
LPetrlik/karindb
8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea
[ "MIT" ]
null
null
null
benchmark/main.cpp
LPetrlik/karindb
8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea
[ "MIT" ]
null
null
null
/* Copyright (c) 2015 Kerio Technologies s.r.o. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
37.746835
119
0.709926
LPetrlik
290ad4bf45679324adf7cf130c1474bf59e0d519
803
cpp
C++
C++ Web Server/http/request/method.cpp
Entity47/Side-Projects
ba60bc1c375acc96edff7977ac4823ba50112076
[ "MIT" ]
null
null
null
C++ Web Server/http/request/method.cpp
Entity47/Side-Projects
ba60bc1c375acc96edff7977ac4823ba50112076
[ "MIT" ]
null
null
null
C++ Web Server/http/request/method.cpp
Entity47/Side-Projects
ba60bc1c375acc96edff7977ac4823ba50112076
[ "MIT" ]
null
null
null
#include "method.hpp" Method MethodUtils::parseMethod(std::string method) { // TODO: Add error handler for request process if (method == "GET") { return Method::GET; } else if (method == "PUT") { return Method::PUT; } else if (method == "DELETE") { return Method::DELETE; } ...
23.617647
53
0.554172
Entity47
2919875f870966203d3f17ee3d7aa3065e33791c
2,041
cpp
C++
grid_map/src/PolygonRosConverter.cpp
EricLYang/grid_map
4c0defae8b2860060679d914bce969a38a478e9b
[ "BSD-3-Clause" ]
2
2019-08-29T01:29:45.000Z
2021-03-17T08:29:27.000Z
grid_map/src/PolygonRosConverter.cpp
ycb88/grid_map
93ca546f48012b7b0c500c730bd7d878c9a4e47e
[ "BSD-3-Clause" ]
null
null
null
grid_map/src/PolygonRosConverter.cpp
ycb88/grid_map
93ca546f48012b7b0c500c730bd7d878c9a4e47e
[ "BSD-3-Clause" ]
1
2021-03-17T08:29:30.000Z
2021-03-17T08:29:30.000Z
/* * PolygonRosConverter.cpp * * Created on: Nov 7, 2014 * Author: Péter Fankhauser * Institute: ETH Zurich, Autonomous Systems Lab */ #include <grid_map/PolygonRosConverter.hpp> // ROS #include <geometry_msgs/Point32.h> namespace grid_map { PolygonRosConverter::PolygonRosConverter() {} PolygonRosConv...
32.396825
109
0.678589
EricLYang
291b072457ea19965968f05815f7efa8e89d4680
6,204
hpp
C++
engine/std/activations.hpp
Venkster123/Zhetapi
9a034392c06733c57d892afde300e90c4b7036f9
[ "MIT" ]
27
2020-06-05T15:39:31.000Z
2022-01-07T05:03:01.000Z
engine/std/activations.hpp
Venkster123/Zhetapi
9a034392c06733c57d892afde300e90c4b7036f9
[ "MIT" ]
1
2021-02-12T04:51:40.000Z
2021-02-12T04:51:40.000Z
engine/std/activations.hpp
Venkster123/Zhetapi
9a034392c06733c57d892afde300e90c4b7036f9
[ "MIT" ]
4
2021-02-12T04:39:55.000Z
2021-11-15T08:00:06.000Z
#ifndef STD_ACTIVATIONS_H_ #define STD_ACTIVATIONS_H_ // Engine headers #ifdef ZHP_CUDA #include "../cuda/activation.cuh" #else #include "../activation.hpp" #include "activation_derivatives.hpp" #endif // Engine standard headers #include "loaders.hpp" // Engine CUDA headers #include "../cuda/essentials.cuh" nam...
18.743202
69
0.629594
Venkster123
291ebce67b87aaaaccb8623136d7a864b70d0a33
3,710
hpp
C++
planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/include/behavior_path_planner/scene_module/side_shift/side_shift_module.hpp
taikitanaka3/AutowareArchitectureProposal.iv
0d47ea532118c98458516a8c83fbdab3d27c6231
[ "Apache-2.0" ]
12
2020-09-25T08:52:59.000Z
2020-10-05T02:39:31.000Z
planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/include/behavior_path_planner/scene_module/side_shift/side_shift_module.hpp
taikitanaka3/AutowareArchitectureProposal.iv
0d47ea532118c98458516a8c83fbdab3d27c6231
[ "Apache-2.0" ]
7
2021-12-13T04:28:48.000Z
2022-03-14T13:53:15.000Z
planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/include/behavior_path_planner/scene_module/side_shift/side_shift_module.hpp
taikitanaka3/AutowareArchitectureProposal.iv
0d47ea532118c98458516a8c83fbdab3d27c6231
[ "Apache-2.0" ]
9
2020-09-27T05:27:09.000Z
2020-10-08T03:14:25.000Z
// Copyright 2021 Tier IV, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
32.26087
93
0.797574
taikitanaka3
292153edf74d870ccab82f0d94639c70d3fa23f9
2,326
hpp
C++
logger/include/rechip/logger/Channel.hpp
Rechip/mqtt-exporter
ebb7e44d066242b874cc3a602e3b32e97685fa95
[ "MIT" ]
null
null
null
logger/include/rechip/logger/Channel.hpp
Rechip/mqtt-exporter
ebb7e44d066242b874cc3a602e3b32e97685fa95
[ "MIT" ]
null
null
null
logger/include/rechip/logger/Channel.hpp
Rechip/mqtt-exporter
ebb7e44d066242b874cc3a602e3b32e97685fa95
[ "MIT" ]
null
null
null
#pragma once #ifndef RECHIP_LOGGER_CHANNEL_HPP # define RECHIP_LOGGER_CHANNEL_HPP # include <source_location> # include <string> # include <unordered_map> # include "LogEntry.hpp" namespace rechip::logger { class Logger; class Channel { public: static constexpr const char CHANNEL[] = "channel"; static constex...
31.013333
92
0.710662
Rechip
29241d8fea3f28c6825a4e3e80f17b690b5b10e9
2,771
cpp
C++
mvo/src/pipeline/Scaler.cpp
FranekStark/monocular-visual-odometry
5d76ec3f956c82942bf77a954c6862c0f41408bd
[ "MIT" ]
null
null
null
mvo/src/pipeline/Scaler.cpp
FranekStark/monocular-visual-odometry
5d76ec3f956c82942bf77a954c6862c0f41408bd
[ "MIT" ]
null
null
null
mvo/src/pipeline/Scaler.cpp
FranekStark/monocular-visual-odometry
5d76ec3f956c82942bf77a954c6862c0f41408bd
[ "MIT" ]
null
null
null
// // Created by franek on 15.11.19. // #include "Scaler.hpp" Scaler::Scaler(PipelineStage &precursor, unsigned int out_going_channel_size) : PipelineStage(&precursor, out_going_channel_size), _prevFrame(nullptr), _keptFrame(nullptr) {} Scaler::~Scaler() { delete _keptFrame; } Frame *Scaler::stage(Frame *newFr...
34.209877
108
0.603031
FranekStark
29276bddb5adf4eb15e1263dd9b3289091371023
1,112
hpp
C++
game_object.hpp
dcliche/tvge
32657fa3d87dee116d07614ad33a13d7e8bac12a
[ "Apache-2.0" ]
null
null
null
game_object.hpp
dcliche/tvge
32657fa3d87dee116d07614ad33a13d7e8bac12a
[ "Apache-2.0" ]
null
null
null
game_object.hpp
dcliche/tvge
32657fa3d87dee116d07614ad33a13d7e8bac12a
[ "Apache-2.0" ]
null
null
null
#pragma once #include <glm/gtc/matrix_transform.hpp> #include <memory> #include "model.hpp" namespace tvge { struct TransformComponent { glm::vec3 translation{}; // (position offset) glm::vec3 scale{1.0f, 1.0f, 1.0f}; glm::vec3 rotation{}; // Matrix corresponds to Translate * Ry * Rx * Rz * Scale ...
23.659574
68
0.649281
dcliche
292cb37cbb6c2bc73f8957c6980399df5bdd680b
8,893
cpp
C++
cpp/libs/src/opendnp3/gen/Attributes.cpp
Aditya23456/Something
a6e1937228fba865c0bbc9205b998c92bd700ed7
[ "Apache-2.0" ]
1
2022-03-29T03:58:06.000Z
2022-03-29T03:58:06.000Z
cpp/libs/src/opendnp3/gen/Attributes.cpp
Aditya23456/Dnp3-with-group0
a6e1937228fba865c0bbc9205b998c92bd700ed7
[ "Apache-2.0" ]
null
null
null
cpp/libs/src/opendnp3/gen/Attributes.cpp
Aditya23456/Dnp3-with-group0
a6e1937228fba865c0bbc9205b998c92bd700ed7
[ "Apache-2.0" ]
1
2021-07-21T03:15:18.000Z
2021-07-21T03:15:18.000Z
// // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | | // | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_| // |_| \_|\___/ |______\__,_|_|\...
28.053628
67
0.62656
Aditya23456
29319ab58871d96d76701634eed6caabb534054a
875
cpp
C++
Sources/Lights/Fog.cpp
dreadris/Acid
1af276edce8e6481c44d475633bf69266e16ed87
[ "MIT" ]
null
null
null
Sources/Lights/Fog.cpp
dreadris/Acid
1af276edce8e6481c44d475633bf69266e16ed87
[ "MIT" ]
null
null
null
Sources/Lights/Fog.cpp
dreadris/Acid
1af276edce8e6481c44d475633bf69266e16ed87
[ "MIT" ]
null
null
null
#include "Fog.hpp" namespace acid { bool Fog::registered = Register("fog"); Fog::Fog(const Colour &colour, float density, float gradient, float lowerLimit, float upperLimit) : m_colour(colour), m_density(density), m_gradient(gradient), m_lowerLimit(lowerLimit), m_upperLimit(upperLimit) { } void Fog::Start() { }...
23.026316
99
0.708571
dreadris
2931a874ebcea2f07b47b6adfe7db9e9a828310f
18,714
cpp
C++
src/blocksqp_stats.cpp
mirhahn/blockSQP
e6468a30d25e5f4f0e81fe22def193ff7f618602
[ "Zlib" ]
17
2015-11-02T21:45:37.000Z
2021-04-08T14:56:05.000Z
src/blocksqp_stats.cpp
mirhahn/blockSQP
e6468a30d25e5f4f0e81fe22def193ff7f618602
[ "Zlib" ]
3
2016-01-14T19:32:11.000Z
2020-11-19T20:37:01.000Z
src/blocksqp_stats.cpp
mirhahn/blockSQP
e6468a30d25e5f4f0e81fe22def193ff7f618602
[ "Zlib" ]
4
2015-11-03T22:08:40.000Z
2022-03-29T11:04:58.000Z
/* * blockSQP -- Sequential quadratic programming for problems with * block-diagonal Hessian matrix. * Copyright (C) 2012-2015 by Dennis Janka <dennis.janka@iwr.uni-heidelberg.de> * * Licensed under the zlib license. See LICENSE for more details. */ /** * \file blocksqp_stats.cpp * \author Dennis J...
28.570992
140
0.521481
mirhahn
293463322cf00fa7df04deddee601028448dc0ea
140
cpp
C++
Input-Output/Q1.cpp
shubhraagarwal/GUVI-codeKata
d8bf2354516dc27dd14d248cf0c702d652423e39
[ "MIT" ]
null
null
null
Input-Output/Q1.cpp
shubhraagarwal/GUVI-codeKata
d8bf2354516dc27dd14d248cf0c702d652423e39
[ "MIT" ]
null
null
null
Input-Output/Q1.cpp
shubhraagarwal/GUVI-codeKata
d8bf2354516dc27dd14d248cf0c702d652423e39
[ "MIT" ]
null
null
null
#include <iostream> using namespace std ; int inputOutput(int n){ cin>>n ; cout<<n ; } int main() { int n ; inputOutput(n); }
9.333333
23
0.585714
shubhraagarwal
a098dc5b677cf362f4af154638ff13bc28ef7e43
2,703
cpp
C++
src/stringutils.cpp
SL-RP/samp-plugin-crashdetect
f76a374977582679f106c757720f9777bc0867e0
[ "BSD-2-Clause" ]
89
2015-01-14T09:59:44.000Z
2022-02-19T13:00:58.000Z
src/stringutils.cpp
Y-Less/samp-plugin-crashdetect
1326620edfa2f89a1e17f2a1dcfc4cfa046054cb
[ "BSD-2-Clause" ]
70
2015-01-29T02:46:36.000Z
2022-03-20T07:32:28.000Z
src/stringutils.cpp
Y-Less/samp-plugin-crashdetect
1326620edfa2f89a1e17f2a1dcfc4cfa046054cb
[ "BSD-2-Clause" ]
30
2015-02-12T01:42:00.000Z
2022-02-05T05:36:43.000Z
// Copyright (c) 2018 Zeex // 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 copyright notice, // this list of conditions and the...
34.21519
79
0.707362
SL-RP
a09caf8f663e08c6fa53ded51618fbb25a9250b5
269
cpp
C++
codeforces/random/fence.cpp
skmorningstar/Competitive-Programming
05ba602d0fe1492d5c36267237980a9ac2f124d6
[ "Apache-2.0" ]
null
null
null
codeforces/random/fence.cpp
skmorningstar/Competitive-Programming
05ba602d0fe1492d5c36267237980a9ac2f124d6
[ "Apache-2.0" ]
null
null
null
codeforces/random/fence.cpp
skmorningstar/Competitive-Programming
05ba602d0fe1492d5c36267237980a9ac2f124d6
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll n,h; cin>>n>>h; ll w=0; while(n--) { ll a; cin>>a; if(a>h) w=w+2; else w=w+1; } cout<<w<<endl; return 0; }
11.695652
34
0.568773
skmorningstar
a09da316fbf7977346ad90282cc1ad3cbfd46c9f
293
cpp
C++
src/lzma1512/CPP/7zip/Compress/LzmaRegister.cpp
dungeonsnd/PortOfLZMA
c16724c57f4a35da699b71c47bcd46534a2bc1e1
[ "MIT" ]
4
2015-11-23T06:42:18.000Z
2021-04-20T08:43:20.000Z
src/lzma1512/CPP/7zip/Compress/LzmaRegister.cpp
dungeonsnd/PortOfLZMA
c16724c57f4a35da699b71c47bcd46534a2bc1e1
[ "MIT" ]
null
null
null
src/lzma1512/CPP/7zip/Compress/LzmaRegister.cpp
dungeonsnd/PortOfLZMA
c16724c57f4a35da699b71c47bcd46534a2bc1e1
[ "MIT" ]
null
null
null
// LzmaRegister.cpp #include "StdAfx.h" #include "../Common/RegisterCodec.h" #include "LzmaDecoder.h" #ifndef EXTRACT_ONLY #include "LzmaEncoder.h" #endif REGISTER_CODEC_E(LZMA, NCompress::NLzma::CDecoder(), NCompress::NLzma::CEncoder(), 0x30101, "LZMA")
16.277778
37
0.65529
dungeonsnd
a09dca3382539e8c12fd24ec3a04a9668232ea17
14,137
cpp
C++
roo_material_icons/sharp/48/alert.cpp
dejwk/roo_material_icons
f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885
[ "MIT" ]
null
null
null
roo_material_icons/sharp/48/alert.cpp
dejwk/roo_material_icons
f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885
[ "MIT" ]
null
null
null
roo_material_icons/sharp/48/alert.cpp
dejwk/roo_material_icons
f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885
[ "MIT" ]
null
null
null
#include "alert.h" using namespace roo_display; // Image file ic_sharp_48_alert_add_alert 48x48, 4-bit Alpha, RLE, 218 bytes. static const uint8_t ic_sharp_48_alert_add_alert_data[] PROGMEM = { 0x80, 0xAC, 0x10, 0xE8, 0x0C, 0x60, 0xE8, 0x0C, 0x60, 0xE8, 0x0C, 0x60, 0xE8, 0x0C, 0x60, 0xE8, 0x0C, 0x40, 0x02, 0x07,...
75.59893
97
0.680484
dejwk
a09e8f244cd9ee1e8e3a97f2367350304aac40b0
3,168
cpp
C++
ref_implementation/src/core/network/messages/cycles/ThreeNodes/CyclesThreeNodesBalancesRequestMessage.cpp
BasslineJunkie/network-client
0b0133f71a002465a1f09531953d36dba3d58496
[ "MIT" ]
null
null
null
ref_implementation/src/core/network/messages/cycles/ThreeNodes/CyclesThreeNodesBalancesRequestMessage.cpp
BasslineJunkie/network-client
0b0133f71a002465a1f09531953d36dba3d58496
[ "MIT" ]
null
null
null
ref_implementation/src/core/network/messages/cycles/ThreeNodes/CyclesThreeNodesBalancesRequestMessage.cpp
BasslineJunkie/network-client
0b0133f71a002465a1f09531953d36dba3d58496
[ "MIT" ]
null
null
null
/** * This file is part of GEO Project. * It is subject to the license terms in the LICENSE.md file found in the top-level directory * of this distribution and at https://github.com/GEO-Project/GEO-Project/blob/master/LICENSE.md * * No part of GEO Project, including this file, may be copied, modified, propagated, ...
32
99
0.678662
BasslineJunkie
a09edb0b0f51aeb638cf8150937d13f53c6bc86d
6,874
hpp
C++
slm_models/gecode.framework/Versions/44/include/iter/ranges-list.hpp
slemouton/gecodeMCP
d038c52ffcf7351048fe5a018cee29c432d8184f
[ "MIT" ]
1
2019-05-08T16:42:09.000Z
2019-05-08T16:42:09.000Z
slm_models/gecode.framework/Versions/44/include/iter/ranges-list.hpp
slemouton/gecodeMCP
d038c52ffcf7351048fe5a018cee29c432d8184f
[ "MIT" ]
1
2019-01-12T16:59:15.000Z
2019-01-12T16:59:15.000Z
slm_models/gecode.framework/Versions/44/include/iter/ranges-list.hpp
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: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2010 * * Last modified: * $Date: 2016-04-20 01:19:45 +1000 (Wed, 20 Apr 2016) $ by $Author: schulte $ * $Revision: 14967 $ * * ...
25.939623
82
0.626564
slemouton
a0a4b78141d44891f028d8828457b138c61f482f
585
cpp
C++
lib/common/src/CppMockIO/common/common.cpp
voivoid/CppMockIO
510318d188662166370fb16ba83faa1817e445bb
[ "MIT" ]
null
null
null
lib/common/src/CppMockIO/common/common.cpp
voivoid/CppMockIO
510318d188662166370fb16ba83faa1817e445bb
[ "MIT" ]
null
null
null
lib/common/src/CppMockIO/common/common.cpp
voivoid/CppMockIO
510318d188662166370fb16ba83faa1817e445bb
[ "MIT" ]
null
null
null
#include "CppMockIO/common/common.h" #include <chrono> namespace CppMockIO { template <typename T> size_t convert_duration_to_milliseconds( T timeout ) { return std::chrono::duration_cast< std::chrono::milliseconds >( timeout ).count(); } template size_t convert_duration_to_milliseconds( s...
29.25
88
0.74359
voivoid
a0aaa84cda88526b2cb5d9a40559363bd74033d6
4,293
cpp
C++
src/engine/Logger.cpp
Mathieu-Lala/NewDimension
9200692e79dc1d983f51043f3c195eb1b865a74d
[ "0BSD" ]
4
2019-11-19T23:53:26.000Z
2019-12-10T11:19:28.000Z
src/engine/Logger.cpp
Mathieu-Lala/NewDimension
9200692e79dc1d983f51043f3c195eb1b865a74d
[ "0BSD" ]
null
null
null
src/engine/Logger.cpp
Mathieu-Lala/NewDimension
9200692e79dc1d983f51043f3c195eb1b865a74d
[ "0BSD" ]
null
null
null
/* ** EPITECH PROJECT, 2019 ** NewDimension ** File description: ** Logger */ #include <fstream> #include <cstring> #include "engine/Logger.hpp" std::ostream *nd::engine::Logger::s_stream = nd::engine::Logger::DEFAULT_STREAM; nd::engine::Logger::level nd::engine::Logger::s_current_level = nd::engine::Logger::DEFAULT_...
37.008621
132
0.602842
Mathieu-Lala
a0ad03fb4b7eef987c8c9a426a92de9c9af036e6
8,396
cpp
C++
CK2ToEU4Tests/MapperTests/CultureMapper/CultureMapperTests.cpp
Osariusz/CK2ToEU4
a2786f00febb23c63f91b2ff27b788f926e18ea7
[ "MIT" ]
1
2021-12-12T02:23:09.000Z
2021-12-12T02:23:09.000Z
CK2ToEU4Tests/MapperTests/CultureMapper/CultureMapperTests.cpp
Osariusz/CK2ToEU4
a2786f00febb23c63f91b2ff27b788f926e18ea7
[ "MIT" ]
3
2022-03-01T20:05:44.000Z
2022-03-01T20:05:56.000Z
CK2ToEU4Tests/MapperTests/CultureMapper/CultureMapperTests.cpp
Osariusz/CK2ToEU4
a2786f00febb23c63f91b2ff27b788f926e18ea7
[ "MIT" ]
null
null
null
#include "../../CK2ToEU4/Source/Mappers/CultureMapper/CultureMapper.h" #include "../../CK2ToEU4/Source/Mappers/RegionMapper/RegionMapper.h" #include "gtest/gtest.h" #include <sstream> TEST(Mappers_CultureMapperTests, nonMatchGivesEmptyOptional) { std::stringstream input; input << "link = { eu4 = culture ck2 = cultur...
34.269388
134
0.73404
Osariusz
a0ada37c3ff260a4db3213f8800ab9b828ba8996
11,226
hpp
C++
world-imp.hpp
Curret/ECS
0dad940b8a42c6fe30510fa80aaf7305b86b54cd
[ "MIT" ]
null
null
null
world-imp.hpp
Curret/ECS
0dad940b8a42c6fe30510fa80aaf7305b86b54cd
[ "MIT" ]
null
null
null
world-imp.hpp
Curret/ECS
0dad940b8a42c6fe30510fa80aaf7305b86b54cd
[ "MIT" ]
null
null
null
///@file world-imp.hpp ///@author Chris Newman ///@brief Implementation of the World type. #pragma once #include <type_traits> #include <memory> #include "component-view.hpp" #include "world.hpp" #include "system.hpp" namespace __detail { template<typename ID_T> struct SystemPackage { s...
25.806897
133
0.573134
Curret
a0afd7a2b6fa5e776384f7c521a87441216b26c5
2,736
hpp
C++
src/main/cpp/inverted_penguin/core/trie/detail/ByteTrieNode.hpp
tomault/inverted_penguin
0cd939de38d860d32194203048d0a70a34fcca75
[ "Apache-2.0" ]
null
null
null
src/main/cpp/inverted_penguin/core/trie/detail/ByteTrieNode.hpp
tomault/inverted_penguin
0cd939de38d860d32194203048d0a70a34fcca75
[ "Apache-2.0" ]
null
null
null
src/main/cpp/inverted_penguin/core/trie/detail/ByteTrieNode.hpp
tomault/inverted_penguin
0cd939de38d860d32194203048d0a70a34fcca75
[ "Apache-2.0" ]
null
null
null
#ifndef __INVERTEDPENGUIN__CORE__DETAIL__BYTETRIENODE_HPP__ #define __INVERTEDPENGUIN__CORE__DETAIL__BYTETRIENODE_HPP__ #include <inverted_penguin/core/detail/ByteTrieNodePosition.hpp> #include <inverted_penguin/core/detail/ByteTrieBuilderKeyBuilder.hpp> #include <limits> #include <stdint.h> namespace inverted_pengui...
25.100917
71
0.636696
tomault
a0bb8824a4b2ea97571b973151f34ff3028f3a0b
2,185
cpp
C++
dsalgo/algebra/modular.cpp
kagemeka/cpp-algorithms
fdb43a39aa3e8abb90f7058d09cd0951fe198c4e
[ "MIT" ]
null
null
null
dsalgo/algebra/modular.cpp
kagemeka/cpp-algorithms
fdb43a39aa3e8abb90f7058d09cd0951fe198c4e
[ "MIT" ]
2
2022-01-07T10:43:26.000Z
2022-01-07T10:54:34.000Z
dsalgo/algebra/modular.cpp
kagemeka/cpp-algorithms
fdb43a39aa3e8abb90f7058d09cd0951fe198c4e
[ "MIT" ]
null
null
null
#include "pow.cpp" #include <iostream> // TOOD cut below template<typename T> class Modular { using Type = typename std::decay<decltype(T::value)>::type; template<typename U> static Type normalize(const U& x) {Type v = static_cast<Type>(x); return v % mod() + mod() % mod();} Type value; public: constexpr Modu...
56.025641
123
0.672311
kagemeka
a0bbdacb936a5abffb47f1fd9f13710201464363
1,327
cpp
C++
medium/0034searchRange.cpp
wanghengg/LeetCode
4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79
[ "Apache-2.0" ]
null
null
null
medium/0034searchRange.cpp
wanghengg/LeetCode
4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79
[ "Apache-2.0" ]
null
null
null
medium/0034searchRange.cpp
wanghengg/LeetCode
4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79
[ "Apache-2.0" ]
null
null
null
// // Created by wangheng on 2021/4/14. // #include <bits/stdc++.h> using namespace std; class Solution{ public: vector<int> searchRange(vector<int>& nums, int target) { if (nums.empty()) return {-1,-1}; vector<int> result; int left = 0, right = nums.size() - 1; while (left <= righ...
25.037736
60
0.458176
wanghengg
a0bdac207a60fbc54357221b72c9477f7fbc0568
1,716
cpp
C++
SDL_Platformer/Game/Source/FadeToBlack.cpp
Dani-24/SDL_Platformer
cf111869be2761d9628f7c02e9d3e2b612c2f1f0
[ "MIT" ]
2
2021-12-12T15:23:43.000Z
2022-01-30T15:59:07.000Z
SDL_Platformer/Game/Source/FadeToBlack.cpp
Dani-24/SDL_Platformer
cf111869be2761d9628f7c02e9d3e2b612c2f1f0
[ "MIT" ]
null
null
null
SDL_Platformer/Game/Source/FadeToBlack.cpp
Dani-24/SDL_Platformer
cf111869be2761d9628f7c02e9d3e2b612c2f1f0
[ "MIT" ]
null
null
null
#include "FadeToBlack.h" #include "Render.h" #include "App.h" #include "Window.h" #include "External/SDL/include/SDL_render.h" #include "Defs.h" #include "Log.h" FadeToBlack::FadeToBlack(App* application, bool start_enabled) : Module(application, start_enabled) { name.Create("FadeToBlack"); if (app != nullptr) { ...
18.451613
99
0.690559
Dani-24
a0c06df0c5f088397c744205a8f351a27c8465dd
4,295
cpp
C++
bin/bread.cpp
linhanwang/binlog
b4da55f2ae9b61c31c34bf307c0937ec515293df
[ "Apache-2.0" ]
248
2019-12-05T20:59:51.000Z
2021-01-19T15:56:12.000Z
bin/bread.cpp
Galaxy2416/binlog
14bf705b51602d43403733670d6110f8742b0409
[ "Apache-2.0" ]
57
2019-12-18T07:00:46.000Z
2021-01-04T14:04:16.000Z
bin/bread.cpp
Galaxy2416/binlog
14bf705b51602d43403733670d6110f8742b0409
[ "Apache-2.0" ]
22
2021-03-27T20:43:40.000Z
2022-03-31T10:01:38.000Z
#include "getopt.hpp" #include "printers.hpp" #include <fstream> #include <iostream> #include <string> #define BINLOG_DEFAULT_FORMAT "%S %C [%d] %n %m (%G:%L)" #define BINLOG_DEFAULT_DATE_FORMAT "%Y-%m-%d %H:%M:%S.%N" namespace { std::istream& openFile(const std::string& path, std::ifstream& file) { if (path == "...
26.677019
90
0.555297
linhanwang
a0c58d477f6d605d4c0ab5641da7c72b95257d61
34,173
cpp
C++
toonz/sources/tnztools/tool.cpp
ken-taguma/opentoonz
01e8e736847773c34cd73a1cfb608ac0170d2135
[ "BSD-3-Clause" ]
null
null
null
toonz/sources/tnztools/tool.cpp
ken-taguma/opentoonz
01e8e736847773c34cd73a1cfb608ac0170d2135
[ "BSD-3-Clause" ]
null
null
null
toonz/sources/tnztools/tool.cpp
ken-taguma/opentoonz
01e8e736847773c34cd73a1cfb608ac0170d2135
[ "BSD-3-Clause" ]
null
null
null
#include "tools/tool.h" // TnzTools includes #include "tools/toolcommandids.h" #include "tools/toolhandle.h" #include "tools/cursors.h" #include "tools/tooloptions.h" // TnzQt includes #include "toonzqt/icongenerator.h" // TnzLib includes #include "toonzqt/menubarcommand.h" #include "toonz/txshsimplelevel.h" #incl...
34.941718
92
0.580809
ken-taguma
a0c64854571c1de82cb6c9ef8ad983206aa55923
5,159
cp
C++
MacOS/Sources/Application/General/CTextListChoice.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
MacOS/Sources/Application/General/CTextListChoice.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
MacOS/Sources/Application/General/CTextListChoice.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007 Cyrus Daboo. 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 Unless re...
25.539604
122
0.713123
mulberry-mail
a0c7d701f8f7fd6bed65e439fd0ddc25db53f856
3,754
cc
C++
metadataGatherer/argumentParser.cc
wahibium/KFF
609e5afac8a9477dd1af31eacadbcd5b61530113
[ "MIT" ]
11
2015-06-08T22:16:47.000Z
2022-03-19T15:11:14.000Z
metadataGatherer/argumentParser.cc
wahibium/KFF
609e5afac8a9477dd1af31eacadbcd5b61530113
[ "MIT" ]
null
null
null
metadataGatherer/argumentParser.cc
wahibium/KFF
609e5afac8a9477dd1af31eacadbcd5b61530113
[ "MIT" ]
4
2015-06-12T21:24:47.000Z
2021-04-23T09:58:33.000Z
#ifndef ARGUMENT_PARSER_CPP_INCLUDED #define ARGUMENT_PARSER_CPP_INCLUDED #include <argumentParser.h> #include <cstdlib> namespace meta { //////////////////////////////////////////////////////////////////////////// // Argument parser ArgumentParser::ArgumentParser(int _argc, char* _argv[]) { argc = _argc; a...
23.030675
81
0.591103
wahibium
a0cec377e7757e80cb05142b16756b2a74ec0b54
2,633
hpp
C++
lib/generated/definitions/binary/binary_scalar.hpp
db-tu-dresden/TVL
051261d49f993ce5c70629526038a6f7717055ef
[ "Apache-2.0" ]
2
2022-03-21T23:17:32.000Z
2022-03-22T19:56:17.000Z
lib/generated/definitions/binary/binary_scalar.hpp
db-tu-dresden/TVL
051261d49f993ce5c70629526038a6f7717055ef
[ "Apache-2.0" ]
1
2022-03-31T11:56:21.000Z
2022-03-31T11:56:21.000Z
lib/generated/definitions/binary/binary_scalar.hpp
db-tu-dresden/TVL
051261d49f993ce5c70629526038a6f7717055ef
[ "Apache-2.0" ]
1
2022-03-23T08:38:49.000Z
2022-03-23T08:38:49.000Z
/*==========================================================================* * This file is part of the TVL - a template SIMD library. * * * * Copyright 2022 TVL-Team, Database Research Group TU Dresden * * ...
50.634615
99
0.514242
db-tu-dresden
a0d4258e5af0f6addf13e2fd4914154a6bb54135
157
cpp
C++
src/BFException.cpp
Lailouezzz/BrainFuck_interpreter
1541276f1f2123a07333c53a83f06eec129c2089
[ "MIT" ]
1
2018-08-16T09:29:32.000Z
2018-08-16T09:29:32.000Z
src/BFException.cpp
Lailouezzz/BrainFuck_interpreter
1541276f1f2123a07333c53a83f06eec129c2089
[ "MIT" ]
null
null
null
src/BFException.cpp
Lailouezzz/BrainFuck_interpreter
1541276f1f2123a07333c53a83f06eec129c2089
[ "MIT" ]
null
null
null
#include "../include/BFException.hpp" namespace BF { Exception::Exception(const std::string& what, const size_t at) : m_what(what), m_at(at) { } }
12.076923
65
0.66242
Lailouezzz
a0d8f1869f711e668b2c67bd863e0ce8d5b7997b
1,991
cpp
C++
cpp/test.cpp
HieuuuLeee/WorldFinal
ea1b1e697e6e7987018a5a79402d1a2659270591
[ "MIT" ]
null
null
null
cpp/test.cpp
HieuuuLeee/WorldFinal
ea1b1e697e6e7987018a5a79402d1a2659270591
[ "MIT" ]
null
null
null
cpp/test.cpp
HieuuuLeee/WorldFinal
ea1b1e697e6e7987018a5a79402d1a2659270591
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define pb push_back #define pf push_front #define pp push #define et empty #define mp make_pair #define For(i,a,b) for (int i=a;i<=b;i++) #define Fod(i,b,a) for (int i=b;i>=a;i--) #define Forl(i,a,b) for (ll i=a;i<=b;i++) #define Fodl(i...
28.855072
78
0.527373
HieuuuLeee
a0d8f449c3392ac9c0b280db4a16bcea3384908e
2,048
cpp
C++
more-memories/contest--solved-unsolved/2006.09.21 Amir Kabir University 3H [08.00PM]/F- Next Same-Factored.cpp
TareqNewazShahriar/my-cpp-works
3009daf23e8c4cbd489ee76c874127028bde8181
[ "MIT" ]
null
null
null
more-memories/contest--solved-unsolved/2006.09.21 Amir Kabir University 3H [08.00PM]/F- Next Same-Factored.cpp
TareqNewazShahriar/my-cpp-works
3009daf23e8c4cbd489ee76c874127028bde8181
[ "MIT" ]
null
null
null
more-memories/contest--solved-unsolved/2006.09.21 Amir Kabir University 3H [08.00PM]/F- Next Same-Factored.cpp
TareqNewazShahriar/my-cpp-works
3009daf23e8c4cbd489ee76c874127028bde8181
[ "MIT" ]
null
null
null
#include<stdio.h> #define SIZE 1000001 #define CONST 1000 typedef long long Type; /****************************Global Variables***************************/ short prime[]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,19...
40.96
469
0.598145
TareqNewazShahriar
a0ddd85b84cd5c02ae780ba930fba8a9981a1b15
657
cpp
C++
Section Assignment 7/Reverse Stack/implementation_side.cpp
daniel22373/cs106b
aa11e5346011a9ae5a3d07dda8d3974afb16e279
[ "MIT" ]
1
2021-05-19T03:28:58.000Z
2021-05-19T03:28:58.000Z
Section Assignment 7/Reverse Stack/implementation_side.cpp
daedaldan/cs106b
aa11e5346011a9ae5a3d07dda8d3974afb16e279
[ "MIT" ]
null
null
null
Section Assignment 7/Reverse Stack/implementation_side.cpp
daedaldan/cs106b
aa11e5346011a9ae5a3d07dda8d3974afb16e279
[ "MIT" ]
null
null
null
// CS106B: Programming Abstractions Assignment 7 Problem 1 #include <iostream> #include <vector> using namespace std; template <typename Type> class Stack { public: Stack(); ~Stack(); void push(Type elem); Type pop(); bool isEmpty(); void reverse(Sta...
19.323529
58
0.595129
daniel22373
a0dfa5b47e4cd06e01ecb79c037a5c8ae8e2d78f
1,009
cpp
C++
util/template.cpp
tatsukawa/library
1782d4ee5f27113daa4b0edc940f2284eb01e574
[ "MIT" ]
null
null
null
util/template.cpp
tatsukawa/library
1782d4ee5f27113daa4b0edc940f2284eb01e574
[ "MIT" ]
null
null
null
util/template.cpp
tatsukawa/library
1782d4ee5f27113daa4b0edc940f2284eb01e574
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define get_variable_name(x) #x #define debug(x) cout << #x << " = " << x << endl #define rep(i, begin, end) for(int (i) = (begin); (i) < (end); (i)++) #define ALL(x) (x).begin(), (x).end() #define SORT(x) sort((x).begin(), (x).end()) #define REVERSE(x) reverse( (x).begin(),(x).end()) #define...
24.02381
78
0.535183
tatsukawa
a0dfe5ccc1c4cf45e2f5af7b5dec6b84c22f5038
437
cpp
C++
Diameter of a Binary Tree.cpp
PoojaRani24/Leetcode_Monthly_Challenge
9ad56cb332b33bf8ce1c4ef5e64f92a1599e598b
[ "MIT" ]
null
null
null
Diameter of a Binary Tree.cpp
PoojaRani24/Leetcode_Monthly_Challenge
9ad56cb332b33bf8ce1c4ef5e64f92a1599e598b
[ "MIT" ]
null
null
null
Diameter of a Binary Tree.cpp
PoojaRani24/Leetcode_Monthly_Challenge
9ad56cb332b33bf8ce1c4ef5e64f92a1599e598b
[ "MIT" ]
null
null
null
pair<int,int> dfs(Node* root){ if(root==NULL) return {0,0}; pair<int,int> left=dfs(root->left); pair<int,int> right=dfs(root->right); int dia=max(left.first,right.first); dia=max(dia,(left.second+right.second)); return {dia,max(left.second+1,right.second+1)}; } /* Computes the diameter ...
27.3125
60
0.636156
PoojaRani24
a0dff5f820eb697f067578862747464984714dfb
5,200
cpp
C++
source/alflib/memory/raw_memory_reader.cpp
Alfret/AlfLibCpp
15bf07d31b0772a23904967f85495cbb2121f391
[ "MIT" ]
null
null
null
source/alflib/memory/raw_memory_reader.cpp
Alfret/AlfLibCpp
15bf07d31b0772a23904967f85495cbb2121f391
[ "MIT" ]
9
2019-06-19T19:35:34.000Z
2019-07-03T16:10:20.000Z
source/alflib/memory/raw_memory_reader.cpp
Alfret/AlfLibCpp
15bf07d31b0772a23904967f85495cbb2121f391
[ "MIT" ]
null
null
null
// MIT License // // Copyright (c) 2019 Filip Björklund // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mod...
26
85
0.553462
Alfret
a0e02ce08321ac0a44835550602c308553edcb52
9,618
hh
C++
src/dev/storage/ide_disk.hh
fei-shan/gem5-experiment
70781db30d42b1fe50e495bd04f7755a4b0e0e59
[ "BSD-3-Clause" ]
2
2021-01-15T17:32:18.000Z
2021-12-21T02:53:58.000Z
src/dev/storage/ide_disk.hh
fei-shan/gem5-experiment
70781db30d42b1fe50e495bd04f7755a4b0e0e59
[ "BSD-3-Clause" ]
3
2021-03-26T20:33:59.000Z
2022-01-24T22:54:03.000Z
src/dev/storage/ide_disk.hh
fei-shan/gem5-experiment
70781db30d42b1fe50e495bd04f7755a4b0e0e59
[ "BSD-3-Clause" ]
3
2021-03-27T16:36:19.000Z
2022-03-28T18:32:57.000Z
/* * Copyright (c) 2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
25.924528
78
0.688085
fei-shan
a0e0f410e244d6349c42614afbf82ab7bd2f66b7
725
cpp
C++
src/ace/ACE_wrappers/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp
wfnex/OpenBRAS
b8c2cd836ae85d5307f7f5ca87573b964342bb49
[ "BSD-3-Clause" ]
8
2017-06-05T08:56:27.000Z
2020-04-08T16:50:11.000Z
src/ace/ACE_wrappers/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp
wfnex/OpenBRAS
b8c2cd836ae85d5307f7f5ca87573b964342bb49
[ "BSD-3-Clause" ]
null
null
null
src/ace/ACE_wrappers/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp
wfnex/OpenBRAS
b8c2cd836ae85d5307f7f5ca87573b964342bb49
[ "BSD-3-Clause" ]
17
2017-06-05T08:54:27.000Z
2021-08-29T14:19:12.000Z
#define ACE_BUILD_SVC_DLL #include "ace/Log_Msg.h" #include "Adaptive_Lock_Performance_Test_Base.h" #include "ace/Lock_Adapter_T.h" #include "ace/Recursive_Thread_Mutex.h" #if defined (ACE_HAS_THREADS) class ACE_Svc_Export Adaptive_Recursive_Lock_Test : public Adaptive_Lock_Performance_Test_Base { public: virtual ...
24.166667
94
0.757241
wfnex
a0e3e60c8f22cdb095a41b75598716f8214734f2
3,907
cpp
C++
src/resources/NetGallery.cpp
hhyyrylainen/DualViewPP
1fb4a1db85a8509342e16d68c75d4ec7721ced9e
[ "MIT" ]
null
null
null
src/resources/NetGallery.cpp
hhyyrylainen/DualViewPP
1fb4a1db85a8509342e16d68c75d4ec7721ced9e
[ "MIT" ]
null
null
null
src/resources/NetGallery.cpp
hhyyrylainen/DualViewPP
1fb4a1db85a8509342e16d68c75d4ec7721ced9e
[ "MIT" ]
null
null
null
// ------------------------------------ // #include "NetGallery.h" #include "Database.h" #include "resources/InternetImage.h" #include "resources/Tags.h" #include "Exceptions.h" using namespace DV; // ------------------------------------ // NetGallery::NetGallery(const std::string& url, const std::string& targetgall...
29.37594
94
0.652675
hhyyrylainen
a0eaed978b69bfcf5043d314ef40190aa1f034f1
25,483
cpp
C++
src/OpenColorIO/ops/Log/LogOpData.cpp
BernardLefebvre/OpenColorIO
e6d8c109b15200fb00475c3fc077d6390ece9bd1
[ "BSD-3-Clause" ]
null
null
null
src/OpenColorIO/ops/Log/LogOpData.cpp
BernardLefebvre/OpenColorIO
e6d8c109b15200fb00475c3fc077d6390ece9bd1
[ "BSD-3-Clause" ]
null
null
null
src/OpenColorIO/ops/Log/LogOpData.cpp
BernardLefebvre/OpenColorIO
e6d8c109b15200fb00475c3fc077d6390ece9bd1
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2019 Autodesk Inc., et al. 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 foll...
35.442281
104
0.644351
BernardLefebvre
a0ebde277974b9bff66c16647a6c6d00c094d6ad
1,276
cpp
C++
demo/main.cpp
theatz/lab-09
a990e4dae0469df99471af745ee42380d490c2fe
[ "MIT" ]
null
null
null
demo/main.cpp
theatz/lab-09
a990e4dae0469df99471af745ee42380d490c2fe
[ "MIT" ]
null
null
null
demo/main.cpp
theatz/lab-09
a990e4dae0469df99471af745ee42380d490c2fe
[ "MIT" ]
null
null
null
#include <gumbo.h> #include <boost/program_options.hpp> #include <fstream> #include <iostream> #include <string> #include "Manager.hpp" using namespace boost::program_options; int main(int argc, char** argv) { std::string url; uint32_t depth; uint32_t network_threads; uint32_t parser_threads; std::string ...
29
253
0.648119
theatz
a0eea4084cffe2e69d16117fba8633fd7b4c7576
17,398
cc
C++
paragraph/translation/translation_test.cc
llmunguia/paragraph
3d2a6fafa24a587f96ee2ea76c2db9a7d5ffcdf3
[ "Apache-2.0" ]
8
2020-11-17T21:38:43.000Z
2022-03-31T14:59:48.000Z
paragraph/translation/translation_test.cc
llmunguia/paragraph
3d2a6fafa24a587f96ee2ea76c2db9a7d5ffcdf3
[ "Apache-2.0" ]
12
2021-01-15T19:31:22.000Z
2021-10-15T22:36:39.000Z
paragraph/translation/translation_test.cc
llmunguia/paragraph
3d2a6fafa24a587f96ee2ea76c2db9a7d5ffcdf3
[ "Apache-2.0" ]
5
2020-12-17T05:45:55.000Z
2021-09-13T19:18:47.000Z
/* Copyright 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
33.329502
94
0.541039
llmunguia
a0f00e6c210c1caf96217891172462d5c5bf5ef6
4,520
cpp
C++
ares/md/mcd/mcd.cpp
moon-chilled/Ares
909fb098c292f8336d0502dc677050312d8b5c81
[ "0BSD" ]
7
2020-07-25T11:44:39.000Z
2021-01-29T13:21:31.000Z
ares/md/mcd/mcd.cpp
jchw-forks/ares
d78298a1e95fd0ce65feabfd4f13b60e31210a7a
[ "0BSD" ]
null
null
null
ares/md/mcd/mcd.cpp
jchw-forks/ares
d78298a1e95fd0ce65feabfd4f13b60e31210a7a
[ "0BSD" ]
1
2021-03-22T16:15:30.000Z
2021-03-22T16:15:30.000Z
#include <md/md.hpp> namespace ares::MegaDrive { static uint16 Unmapped = 0; MCD mcd; #include "bus.cpp" #include "bus-external.cpp" #include "io.cpp" #include "io-external.cpp" #include "irq.cpp" #include "cdc.cpp" #include "cdc-transfer.cpp" #include "cdd.cpp" #include "cdd-dac.cpp" #include "timer.cpp" #include "...
22.376238
91
0.590044
moon-chilled
a0ff7c606cf82c53ad8fdf1036e08e93d9ca755a
2,287
cpp
C++
6502Emu/Source/Debugger/ConsoleWriter.cpp
EliMooreVT/6502Emu
677da247be16a7a36a46f89a90eaf04a6e8d5810
[ "Apache-2.0" ]
null
null
null
6502Emu/Source/Debugger/ConsoleWriter.cpp
EliMooreVT/6502Emu
677da247be16a7a36a46f89a90eaf04a6e8d5810
[ "Apache-2.0" ]
1
2021-09-30T20:56:05.000Z
2021-09-30T20:56:05.000Z
6502Emu/Source/Debugger/ConsoleWriter.cpp
EliMooreVT/6502Emu
677da247be16a7a36a46f89a90eaf04a6e8d5810
[ "Apache-2.0" ]
null
null
null
#include "ConsoleWriter.h" ConsoleWriter::ConsoleWriter(int screenWidth, int screenHeight) { nScreenHeight = screenHeight; nScreenWidth = screenWidth; m_screenBuffer = new wchar_t[screenWidth * screenHeight]; hConsole = CreateConsoleScreenBuffer(GENERIC_READ | GENERIC_WRITE, 0, NULL, CONSOLE_TEXTMODE_BUFFER, NULL)...
16.940741
111
0.614342
EliMooreVT
a0ffa18e06e9c77f0c1c3e2217d5a61acd6c4ff8
1,205
cpp
C++
src/libwalletqt/PassphraseHelper.cpp
leet-feat/feather
ff6e6adf0c853fcf664bd8f0b2ee94a51550b4f8
[ "BSD-3-Clause" ]
2
2021-06-30T19:03:35.000Z
2022-01-21T00:07:49.000Z
src/libwalletqt/PassphraseHelper.cpp
leet-feat/feather
ff6e6adf0c853fcf664bd8f0b2ee94a51550b4f8
[ "BSD-3-Clause" ]
1
2022-01-21T00:12:28.000Z
2022-01-21T15:55:09.000Z
src/libwalletqt/PassphraseHelper.cpp
leet-feat/feather
ff6e6adf0c853fcf664bd8f0b2ee94a51550b4f8
[ "BSD-3-Clause" ]
null
null
null
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2014-2021, The Monero Project. #include "PassphraseHelper.h" #include <QDebug> Monero::optional<std::string> PassphraseHelper::onDevicePassphraseRequest(bool & on_device) { qDebug() << __FUNCTION__; QMutexLocker locker(&m_mutex_pass); m_passphrase_...
26.777778
109
0.696266
leet-feat
9d00a5fab4678f2f8cdf44ed17c4ff23d612f386
1,723
cc
C++
Str/32.cc
guohaoqiang/leetcode
802447c029c36892e8dd7391c825bcfc7ac0fd0b
[ "MIT" ]
null
null
null
Str/32.cc
guohaoqiang/leetcode
802447c029c36892e8dd7391c825bcfc7ac0fd0b
[ "MIT" ]
null
null
null
Str/32.cc
guohaoqiang/leetcode
802447c029c36892e8dd7391c825bcfc7ac0fd0b
[ "MIT" ]
null
null
null
//dp solution class Solution { public: int longestValidParentheses(string s) { int n = s.size(); vector<int> dp(n+1,0); int ans = 0; for (int i=1; i<n; ++i){ if (s[i]==')'){ if (s[i-1]=='('){ dp[i] = (i>=2?dp[i-2]:0) + 2; ...
23.60274
80
0.316309
guohaoqiang
9d0f4486e21e0d22eb1228bb9f0222038f207f48
2,919
cpp
C++
main.cpp
salvato/dielettric
a93fb3e6bc62495af2d5eb1f5fa82bbbad6efa75
[ "MIT" ]
null
null
null
main.cpp
salvato/dielettric
a93fb3e6bc62495af2d5eb1f5fa82bbbad6efa75
[ "MIT" ]
null
null
null
main.cpp
salvato/dielettric
a93fb3e6bc62495af2d5eb1f5fa82bbbad6efa75
[ "MIT" ]
null
null
null
#include "mainwindow.h" #include <QApplication> #include <QMessageBox> #include <QFileInfo> //#define TEST_NO_INTERFACE void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) { QByteArray localMsg = msg.toLocal8Bit(); switch (type) { case QtDebugMsg: ...
34.75
126
0.661871
salvato
9d0f5435feb3b0898a740e4fd249984053acc95b
7,029
cpp
C++
time/src/system_clocks.cpp
vinders/pandora_toolbox
f32e301ebaa2b281a1ffc3d6d0c556091420520a
[ "MIT" ]
2
2020-11-19T03:23:35.000Z
2021-02-25T03:34:40.000Z
time/src/system_clocks.cpp
vinders/pandora_toolbox
f32e301ebaa2b281a1ffc3d6d0c556091420520a
[ "MIT" ]
null
null
null
time/src/system_clocks.cpp
vinders/pandora_toolbox
f32e301ebaa2b281a1ffc3d6d0c556091420520a
[ "MIT" ]
null
null
null
/******************************************************************************* MIT License Copyright (c) 2021 Romain Vinders 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, ...
40.165714
157
0.702091
vinders
9d151ebc99fa0e86b0345a737315793d2fa95255
462
hpp
C++
includes/metrisca/models/hamming_distance_model.hpp
mirjanastojilovic/MetriSCA
a0a13a17d66324088114a1d4ab96afc0da487bf7
[ "BSD-3-Clause" ]
2
2022-02-18T12:11:28.000Z
2022-03-01T19:23:26.000Z
includes/metrisca/models/hamming_distance_model.hpp
mirjanastojilovic/MetriSCA
a0a13a17d66324088114a1d4ab96afc0da487bf7
[ "BSD-3-Clause" ]
1
2022-03-06T13:32:58.000Z
2022-03-06T15:38:16.000Z
includes/metrisca/models/hamming_distance_model.hpp
mirjanastojilovic/MetriSCA
a0a13a17d66324088114a1d4ab96afc0da487bf7
[ "BSD-3-Clause" ]
1
2022-03-18T11:55:36.000Z
2022-03-18T11:55:36.000Z
/** * MetriSCA - A side-channel analysis library * Copyright 2021, School of Computer and Communication Sciences, EPFL. * * All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE.md file. */ #pragma once #include "model.hpp" namespace metrisca { ...
22
71
0.707792
mirjanastojilovic
9d154e5eb64b8c18280f9aacb1fe37788e6e2829
10,350
cpp
C++
lab05/2_string/test/StringTest.cpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
null
null
null
lab05/2_string/test/StringTest.cpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
18
2018-02-07T07:10:18.000Z
2018-05-23T08:11:28.000Z
lab05/2_string/test/StringTest.cpp
AlexanderFadeev/oop
62ea584b2c49dea5457b9e520866bfd7a0d883c7
[ "MIT" ]
null
null
null
#include "String.hpp" #include "catch.hpp" #include <sstream> #include <string> void CheckString(const CString& string, const std::string expected) { REQUIRE(string.GetLength() == expected.length()); CHECK(std::string(string.GetData(), string.GetLength()) == expected); } const auto C_STR = "foo\0bar"; const size_t ...
18.852459
104
0.601159
AlexanderFadeev
1dd6f780b597d2264f05af98ceca821035f626f4
759
cpp
C++
HelpfulMaths.cpp
d3cod3monk78/codeforce
10a4e7f9b50d41f9acbac8ba2019405eba4e4937
[ "MIT" ]
null
null
null
HelpfulMaths.cpp
d3cod3monk78/codeforce
10a4e7f9b50d41f9acbac8ba2019405eba4e4937
[ "MIT" ]
null
null
null
HelpfulMaths.cpp
d3cod3monk78/codeforce
10a4e7f9b50d41f9acbac8ba2019405eba4e4937
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #include <string> #include <string.h> #include <cstring> using namespace std; void getAns(string str) { int size = (int)str.length(); int oneCount = 0; int twoCount = 0; int threeCount = 0; for(int i = 0; i < size; i = i + 2) { if(str[i] == '1') { oneCount++; } else if(str[i] == ...
17.25
50
0.544137
d3cod3monk78
1ddca5d072957f17348bdef1024ca5c4d30a7480
1,422
cpp
C++
music/ContinuousMusic.cpp
B1RO/Arpeggio
276c63d52d224e16377d250398bcca7db75b9187
[ "MIT" ]
1
2021-06-08T15:57:14.000Z
2021-06-08T15:57:14.000Z
music/ContinuousMusic.cpp
B1RO/Arpeggio
276c63d52d224e16377d250398bcca7db75b9187
[ "MIT" ]
null
null
null
music/ContinuousMusic.cpp
B1RO/Arpeggio
276c63d52d224e16377d250398bcca7db75b9187
[ "MIT" ]
null
null
null
#include "./ContinuousMusic.h" #include <chrono> #pragma once using namespace std; namespace music { int ContinuousMusic::getTimeFromStart() { // When this function is called the first time, the playback starts. if(!started) { started = true; start(); } chr...
30.255319
115
0.531646
B1RO
1de049f43be8a96e2a77095b6d5d31d74725b107
5,295
hpp
C++
DGP/StringAlg.hpp
sidch/DGP
20a2d47563b6e36cd89bea0b1326e5267df8e9a6
[ "BSD-3-Clause" ]
14
2016-03-15T16:24:10.000Z
2022-01-06T13:43:17.000Z
a3/src/DGP/StringAlg.hpp
meetps/CS-749
f1ddc4ed003b3a9f222f2a724d53076ddec697a6
[ "MIT" ]
null
null
null
a3/src/DGP/StringAlg.hpp
meetps/CS-749
f1ddc4ed003b3a9f222f2a724d53076ddec697a6
[ "MIT" ]
5
2017-04-12T17:40:57.000Z
2022-01-06T13:43:20.000Z
//============================================================================ // // DGP: Digital Geometry Processing toolkit // Copyright (C) 2016, Siddhartha Chaudhuri // // This software is covered by a BSD license. Portions derived from other // works are covered by their respective licenses. For full licensing // ...
38.093525
127
0.67762
sidch
1de2b9b3953678b46acd99ac2e9da9facc949e63
260
cpp
C++
Spike/ZeroPilotSwHooks/main.cpp
NixonCTChan/Simulink-Sim
d63678af48bc1e39fa30a885c1a989e31e2310c6
[ "BSD-3-Clause" ]
null
null
null
Spike/ZeroPilotSwHooks/main.cpp
NixonCTChan/Simulink-Sim
d63678af48bc1e39fa30a885c1a989e31e2310c6
[ "BSD-3-Clause" ]
2
2021-05-05T11:58:53.000Z
2021-06-01T16:34:04.000Z
Spike/ZeroPilotSwHooks/main.cpp
NixonCTChan/Simulink-Sim
d63678af48bc1e39fa30a885c1a989e31e2310c6
[ "BSD-3-Clause" ]
6
2021-02-13T00:14:52.000Z
2021-11-09T22:57:56.000Z
#define SIMULATION #include "SendInstructionsToSafety.hpp" #include <iostream> #include <cstdio> int main(void) { SendToSafety_Init(); float testData[4] = {0,0,0,50}; for (int i = 0; i < 100; i++) { SendToSafety_Execute(testData); } return 0; }
11.818182
39
0.665385
NixonCTChan
1de489e8a3fcd508b341a2afd1810d3cb7871557
11,267
hpp
C++
include/Zenject/ZenjectSceneLoader.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/Zenject/ZenjectSceneLoader.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/Zenject/ZenjectSceneLoader.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp" #include "extern/b...
81.644928
353
0.788054
darknight1050
1de54abf3975bd106d6b37cee0824ccf3d3053d8
6,744
cc
C++
gazebo/rendering/WrenchVisual.cc
nyxrobotics/gazebo
4a9b733a8af9a13cd7f3b23d5414d322a3666a55
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
gazebo/rendering/WrenchVisual.cc
nyxrobotics/gazebo
4a9b733a8af9a13cd7f3b23d5414d322a3666a55
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
gazebo/rendering/WrenchVisual.cc
nyxrobotics/gazebo
4a9b733a8af9a13cd7f3b23d5414d322a3666a55
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2012 Open Source Robotics Foundation * * 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 appl...
30.378378
78
0.66207
nyxrobotics
1de9918ccb6cf258ebba139fa27cf26e5479eb0a
2,909
cpp
C++
src/CommandLineParser.cpp
StefanoLusardi/clip
6e3f7556ff833780fa9eff27fae4a4be80cebc60
[ "Unlicense" ]
2
2020-02-10T08:32:35.000Z
2020-04-10T09:28:19.000Z
src/CommandLineParser.cpp
StefanoLusardi/clip
6e3f7556ff833780fa9eff27fae4a4be80cebc60
[ "Unlicense" ]
null
null
null
src/CommandLineParser.cpp
StefanoLusardi/clip
6e3f7556ff833780fa9eff27fae4a4be80cebc60
[ "Unlicense" ]
1
2020-02-09T20:58:55.000Z
2020-02-09T20:58:55.000Z
#include "CommandLineInputParser/CommandLineParser.hpp" #include "Match.hpp" #include <regex> #ifndef CLIP_COMPILED_LIB #error Please define CLIP_COMPILED_LIB #endif namespace clip { void CommandLineParser::parse(int argc, char** argv) { _exePath = std::string(argv[0]); for (int i = 1; i < argc; ++i) { p...
29.383838
135
0.648677
StefanoLusardi
1df0a065b637d40ed51875052cc7090219a53c28
4,216
hpp
C++
disc-fe/src/evaluators/Panzer_TensorToStdVector_impl.hpp
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
1
2022-03-22T03:49:50.000Z
2022-03-22T03:49:50.000Z
disc-fe/src/evaluators/Panzer_TensorToStdVector_impl.hpp
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
disc-fe/src/evaluators/Panzer_TensorToStdVector_impl.hpp
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
// @HEADER // *********************************************************************** // // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85...
35.728814
78
0.650617
hillyuan
1df810130aee7e978d832876dc2fb7346267014c
697
cpp
C++
src/main.cpp
qis/result-benchmark
171cff3a690254e85b1383e3aa1b1d735f6de9dc
[ "MIT-0" ]
1
2020-03-12T17:31:44.000Z
2020-03-12T17:31:44.000Z
src/main.cpp
qis/benchmark
171cff3a690254e85b1383e3aa1b1d735f6de9dc
[ "MIT-0" ]
null
null
null
src/main.cpp
qis/benchmark
171cff3a690254e85b1383e3aa1b1d735f6de9dc
[ "MIT-0" ]
null
null
null
#include <benchmark/benchmark.h> constexpr auto g_warmup_count = 0; int main(int argc, char* argv[]) { benchmark::Initialize(&argc, argv); if (benchmark::ReportUnrecognizedArguments(argc, argv)) { return 1; } if constexpr (g_warmup_count) { class Warmup : public benchmark::BenchmarkReporter { pub...
21.78125
62
0.642755
qis
1dfb858471356fc11c8c418d9ea56cff0e3d083a
2,019
cc
C++
src/sgp/MemMan.cc
FluffyQuack/ja2-stracciatella
59781890986dc5360ed4b148b83836c029121d5f
[ "BSD-Source-Code" ]
346
2016-02-16T11:17:25.000Z
2022-03-28T18:18:14.000Z
src/sgp/MemMan.cc
FluffyQuack/ja2-stracciatella
59781890986dc5360ed4b148b83836c029121d5f
[ "BSD-Source-Code" ]
1,119
2016-02-14T23:19:56.000Z
2022-03-31T21:57:58.000Z
src/sgp/MemMan.cc
FluffyQuack/ja2-stracciatella
59781890986dc5360ed4b148b83836c029121d5f
[ "BSD-Source-Code" ]
90
2016-02-17T22:17:11.000Z
2022-03-12T11:59:56.000Z
// Purpose : function definitions for the memory manager // // Modification history : // // 11sep96:HJH - Creation // 29may97:ARM - Fix & improve MemDebugCounter handling, logging of // MemAlloc/MemFree, and reporting of any errors #include <stdexcept> #include <new> // std::bad_alloc #include "...
24.035714
86
0.69688
FluffyQuack
1dfdc6b56d16714a862daf10557b4ffe156e8bc0
546
cpp
C++
Introductory-Problems/numberSpiral.cpp
tirthPatel177/cses-solutions
31a0097f31393dc25c9401f8f074f8eb2ea3dff5
[ "MIT" ]
null
null
null
Introductory-Problems/numberSpiral.cpp
tirthPatel177/cses-solutions
31a0097f31393dc25c9401f8f074f8eb2ea3dff5
[ "MIT" ]
null
null
null
Introductory-Problems/numberSpiral.cpp
tirthPatel177/cses-solutions
31a0097f31393dc25c9401f8f074f8eb2ea3dff5
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main(){ int t; cin >> t; while(t--){ long long x, y; long long ans{0}; cin >> x >> y; if(x>y){ if(x%2==0){ ans = x*x - y + 1; } else{ ans = (x - 1)*(x-1) + y; ...
18.827586
40
0.269231
tirthPatel177
380cd2ca3e067a4a94448cd770920951b15af6bf
5,814
cc
C++
source/geometry/divisions/pyG4ReplicatedSlice.cc
yu22mal/geant4_pybind
ff7efc322fe53f39c7ae7ed140861052a92479fd
[ "Unlicense" ]
6
2021-08-08T08:40:13.000Z
2022-03-23T03:05:15.000Z
source/geometry/divisions/pyG4ReplicatedSlice.cc
yu22mal/geant4_pybind
ff7efc322fe53f39c7ae7ed140861052a92479fd
[ "Unlicense" ]
3
2021-12-01T14:38:06.000Z
2022-02-10T11:28:28.000Z
source/geometry/divisions/pyG4ReplicatedSlice.cc
yu22mal/geant4_pybind
ff7efc322fe53f39c7ae7ed140861052a92479fd
[ "Unlicense" ]
3
2021-07-16T13:57:34.000Z
2022-02-07T11:17:19.000Z
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <G4ReplicatedSlice.hh> #include <G4AutoLock.hh> #include <G4GeomSplitter.hh> #include <G4LogicalVolume.hh> #include <G4Material.hh> #include <G4VTouchable.hh> #include <G4VSolid.hh> #include <G4Box.hh> #include <G4Tubs.hh> #include <G4Trd.hh...
45.779528
121
0.675783
yu22mal
38118e082ba6a33617219ffc9a752a79d84f35ad
14,130
hpp
C++
Source/AllProjects/OrbUtils/CIDOrb/CIDOrb_ThisFacility.hpp
MarkStega/CIDLib
82014e064eef51cad998bf2c694ed9c1c8cceac6
[ "MIT" ]
216
2019-03-09T06:41:28.000Z
2022-02-25T16:27:19.000Z
Source/AllProjects/OrbUtils/CIDOrb/CIDOrb_ThisFacility.hpp
MarkStega/CIDLib
82014e064eef51cad998bf2c694ed9c1c8cceac6
[ "MIT" ]
9
2020-09-27T08:00:52.000Z
2021-07-02T14:27:31.000Z
Source/AllProjects/OrbUtils/CIDOrb/CIDOrb_ThisFacility.hpp
MarkStega/CIDLib
82014e064eef51cad998bf2c694ed9c1c8cceac6
[ "MIT" ]
29
2019-03-09T10:12:24.000Z
2021-03-03T22:25:29.000Z
// // FILE NAME: CIDOrb_ThisFacility.hpp // // AUTHOR: Dean Roddey // // CREATED: 07/04/2000 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opens...
36.323907
86
0.48712
MarkStega