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
5afa112bf2c5007dde353b142e2a1c3d5389df56
12,284
cpp
C++
src/render/Mesh/Mesh.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/render/Mesh/Mesh.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/render/Mesh/Mesh.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
#include <algorithm> #include <mtt/render/DrawPlan/DrawPlanBuildInfo.h> #include <mtt/render/Mesh/Mesh.h> #include <mtt/utilities/Abort.h> using namespace mtt; Mesh::Mesh(LogicalDevice& device) noexcept: _device(device), _verticesNumber(0), _extraData(*this, device) { } void Mesh::setVerticesNumber(uint32_t n...
31.020202
117
0.611771
AluminiumRat
5afb05a4fe9a26d58f4c401f15e1e3d4984342a0
8,347
cc
C++
hackt_docker/hackt/src/main/flatten.cc
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/main/flatten.cc
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/main/flatten.cc
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
/** \file "main/flatten.cc" Converts HAC source code to an object file (pre-unrolled). This file was born from "art++2obj.cc" in earlier revision history. $Id: flatten.cc,v 1.13 2010/03/11 18:39:26 fang Exp $ */ #include <iostream> #include <list> #include <string> #include <map> #include <cstdio> #include "comm...
26.925806
80
0.631604
broken-wheel
8500ccba47ab05b65a53675e3628afe36e76b0a7
516
hpp
C++
src/dto/DTOs.hpp
bhorn/example-yuv-websocket-stream
5c77d2eb5387096bbbd37035dcb9818d762c9206
[ "Apache-2.0" ]
6
2020-05-25T20:14:24.000Z
2021-11-22T10:04:44.000Z
src/dto/DTOs.hpp
bhorn/example-yuv-websocket-stream
5c77d2eb5387096bbbd37035dcb9818d762c9206
[ "Apache-2.0" ]
2
2020-05-26T00:12:37.000Z
2021-12-04T01:34:24.000Z
src/dto/DTOs.hpp
bhorn/example-yuv-websocket-stream
5c77d2eb5387096bbbd37035dcb9818d762c9206
[ "Apache-2.0" ]
2
2020-08-28T08:54:46.000Z
2021-08-11T00:14:26.000Z
#ifndef DTOs_hpp #define DTOs_hpp #include "oatpp/core/macro/codegen.hpp" #include "oatpp/core/Types.hpp" #include OATPP_CODEGEN_BEGIN(DTO) namespace dtov0 { class MessageDto : public oatpp::DTO { DTO_INIT(MessageDto, DTO); DTO_FIELD(Int32, statusCode); DTO_FIELD(String, message); }; class ErrorDto : publ...
14.742857
39
0.724806
bhorn
850f95b7364694ea316bd346ba56db0dde99441c
542
cpp
C++
Codeforces/242B.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
null
null
null
Codeforces/242B.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
null
null
null
Codeforces/242B.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
1
2020-10-06T09:17:33.000Z
2020-10-06T09:17:33.000Z
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long int l[n]; long int r[n]; long int pos[2]; long diff = -1; int position,ans; long int t1,t2; for(int i=0;i<n;i++){ cin >> t1 >> t2; l[i] = t1; r[i] = t2; } for(int i=0;i<n;i++){ if(r[i] - l[i] > diff){ d...
11.291667
37
0.450185
Benson1198
85180c6429c58df77f31b7a75be1f87b9721304f
2,544
cc
C++
gcs/constraints/element.cc
ciaranm/glasgow-constraint-solver
39d925c776474743a51a80492585db3a07801908
[ "MIT" ]
5
2021-08-13T11:36:49.000Z
2022-02-09T11:13:04.000Z
gcs/constraints/element.cc
ciaranm/glasgow-constraint-solver
39d925c776474743a51a80492585db3a07801908
[ "MIT" ]
null
null
null
gcs/constraints/element.cc
ciaranm/glasgow-constraint-solver
39d925c776474743a51a80492585db3a07801908
[ "MIT" ]
null
null
null
/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <gcs/constraints/element.hh> #include <gcs/constraints/comparison.hh> #include <gcs/state.hh> #include <gcs/propagators.hh> #include <gcs/integer.hh> #include <util/for_each.hh> #include <algorithm> using namespace gcs; using std::max; using std::min; using...
35.333333
152
0.646226
ciaranm
851988557ba3f490b8de173c1b200dd20e5ec525
350
hpp
C++
src/OutputResult.hpp
oleksandrkozlov/touch-typing
e38f315fa979ab66539c0a6a47796b5e6cabe0a2
[ "MIT" ]
1
2020-10-10T14:04:15.000Z
2020-10-10T14:04:15.000Z
src/OutputResult.hpp
oleksandrkozlov/touch-typing
e38f315fa979ab66539c0a6a47796b5e6cabe0a2
[ "MIT" ]
37
2020-04-19T12:37:03.000Z
2021-06-06T09:33:37.000Z
src/OutputResult.hpp
oleksandrkozlov/touch-typing
e38f315fa979ab66539c0a6a47796b5e6cabe0a2
[ "MIT" ]
null
null
null
#ifndef TOUCH_TYPING_OUTPUT_RESULT_HPP #define TOUCH_TYPING_OUTPUT_RESULT_HPP namespace touch_typing { struct OutputResult { enum class Answer { Wrong, Correct, Backspace, }; int expectedSymbol; int enteredSymbol; Answer answer; }; } // namespace touch_typing #endif // T...
16.666667
40
0.708571
oleksandrkozlov
85249aaee3eec536883222f4cb24cdf87abaf217
3,602
cpp
C++
src/objects/joystick.cpp
soulik/LuaSDL-2.0
092684f042de7671a6ee21aaa417e1190b986762
[ "Unlicense", "MIT" ]
10
2016-06-16T12:35:21.000Z
2021-11-14T18:32:41.000Z
src/objects/joystick.cpp
soulik/LuaSDL-2.0
092684f042de7671a6ee21aaa417e1190b986762
[ "Unlicense", "MIT" ]
null
null
null
src/objects/joystick.cpp
soulik/LuaSDL-2.0
092684f042de7671a6ee21aaa417e1190b986762
[ "Unlicense", "MIT" ]
null
null
null
#include "objects/joystick.hpp" #include "objects/haptic.hpp" #include <lua.hpp> namespace LuaSDL { int Joystick::getAxis(State & state, SDL_Joystick * joystick) { Stack * stack = state.stack; stack->push<int>( SDL_JoystickGetAxis( joystick, stack->to<int>(1))); return 1; } int Joystick::getBall(Stat...
25.546099
81
0.686008
soulik
8524eb85cb862a64b5e5d48f45f69be8b7d5288c
5,169
cpp
C++
src/relabel_to_front.cpp
FamousCake/flow
77f134f74996225f679a1b9d796b7328ad6e1867
[ "MIT" ]
null
null
null
src/relabel_to_front.cpp
FamousCake/flow
77f134f74996225f679a1b9d796b7328ad6e1867
[ "MIT" ]
null
null
null
src/relabel_to_front.cpp
FamousCake/flow
77f134f74996225f679a1b9d796b7328ad6e1867
[ "MIT" ]
null
null
null
#include "inc/relabel_to_front.h" using namespace std; RelabelToFront::RelabelToFront(const ResidualNetwork &A) : E(ResidualNetwork(A)) { this->Source = E.getSource(); this->Sink = E.getSink(); this->VertexCount = E.getCount(); this->PushCount = 0; this->RelabelCount = 0; this->DischargeCount...
22.184549
86
0.549236
FamousCake
85261618b4f7eb39d943d1c8063ae6e1e79b3b8d
3,085
hpp
C++
FFG_EXT/include/FFG_XML.hpp
GarrettGutierrez1/FFG_Engine
ba61887f6db2bdc947118b50beb3388d49eeaad4
[ "Apache-2.0" ]
null
null
null
FFG_EXT/include/FFG_XML.hpp
GarrettGutierrez1/FFG_Engine
ba61887f6db2bdc947118b50beb3388d49eeaad4
[ "Apache-2.0" ]
null
null
null
FFG_EXT/include/FFG_XML.hpp
GarrettGutierrez1/FFG_Engine
ba61887f6db2bdc947118b50beb3388d49eeaad4
[ "Apache-2.0" ]
null
null
null
#ifndef FFG_EXT_XML_H_INCLUDED #define FFG_EXT_XML_H_INCLUDED #include <boost/property_tree/xml_parser.hpp> #include <boost/property_tree/ptree.hpp> #include <string> #include <vector> /***************************************************************************//** * A class that represents an XML tag. * * Exampl...
44.071429
99
0.294003
GarrettGutierrez1
852cb9a8406af1f1e3ae63037f10878bcdba303a
2,029
cpp
C++
src/SaveGame/SaveGameHandler.cpp
Perchindroid/DigimonVPet
75ae638fb19a5b5d7073589734aa43f8a20813a4
[ "MIT" ]
23
2021-02-17T06:37:42.000Z
2022-03-31T23:16:39.000Z
src/SaveGame/SaveGameHandler.cpp
Perchindroid/DigimonVPet
75ae638fb19a5b5d7073589734aa43f8a20813a4
[ "MIT" ]
3
2021-03-09T14:39:48.000Z
2022-03-22T12:27:52.000Z
src/SaveGame/SaveGameHandler.cpp
Perchindroid/DigimonVPet
75ae638fb19a5b5d7073589734aa43f8a20813a4
[ "MIT" ]
13
2021-03-23T05:35:32.000Z
2022-03-21T12:01:38.000Z
#include "SaveGameHandler.h" void SaveGameHandler::loadDigimon(Digimon* digimon) { digimon->setDigimonIndex(EEPROM.readUShort(ADRESS_DIGIMONINDEX)); digimon->setState(EEPROM.readByte(ADDRESS_STATE)); digimon->setAge(EEPROM.readUShort(ADDRESS_AGE)); digimon->setWeight(EEPROM.readUShort(ADDRESS_WEIGHT));...
52.025641
76
0.780187
Perchindroid
852ced3651dbabe577a0de3dd6fbbfe85a4259ea
4,185
cpp
C++
src/libs/test/main.cpp
jdmclark/gorc
a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8
[ "Apache-2.0" ]
97
2015-02-24T05:09:24.000Z
2022-01-23T12:08:22.000Z
src/libs/test/main.cpp
annnoo/gorc
1889b4de6380c30af6c58a8af60ecd9c816db91d
[ "Apache-2.0" ]
8
2015-03-27T23:03:23.000Z
2020-12-21T02:34:33.000Z
src/libs/test/main.cpp
annnoo/gorc
1889b4de6380c30af6c58a8af60ecd9c816db91d
[ "Apache-2.0" ]
10
2016-03-24T14:32:50.000Z
2021-11-13T02:38:53.000Z
#include <string> #include "test.hpp" #include "strings.hpp" #include "stream_reporter.hpp" namespace test { std::shared_ptr<test::reporter> test_reporter; std::string test_suite_name; std::string test_case_name; bool test_passing; void run_case(int &failures, std::string const...
32.695313
79
0.455675
jdmclark
852f79e1d35f914d3475d46eb01873679266c680
1,138
cpp
C++
src/game/shared/neotokyo/neo_bloomcontroller.cpp
L-Leite/neotokyo-re
a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a
[ "Unlicense" ]
4
2017-08-29T15:39:53.000Z
2019-06-04T07:37:48.000Z
src/game/shared/neotokyo/neo_bloomcontroller.cpp
Ochii/neotokyo
a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a
[ "Unlicense" ]
null
null
null
src/game/shared/neotokyo/neo_bloomcontroller.cpp
Ochii/neotokyo
a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a
[ "Unlicense" ]
1
2021-08-10T20:01:00.000Z
2021-08-10T20:01:00.000Z
#include "cbase.h" #include "neo_bloomcontroller.h" CNeoBloomController* g_pMapBloomController = nullptr; IMPLEMENT_NETWORKCLASS_ALIASED( NeoBloomController, DT_NeoBloomController ) BEGIN_NETWORK_TABLE( CNeoBloomController, DT_NeoBloomController ) #ifdef CLIENT_DLL RecvPropFloat( RECVINFO( m_BloomAmount ) ), #else...
21.884615
80
0.771529
L-Leite
85307d422933be16fb72ca1365745675bb2ae260
3,422
cpp
C++
tech/Script/integration/Lua/ScriptHelper.cpp
nbtdev/teardrop
fa9cc8faba03a901d1d14f655a04167e14cd08ee
[ "MIT" ]
null
null
null
tech/Script/integration/Lua/ScriptHelper.cpp
nbtdev/teardrop
fa9cc8faba03a901d1d14f655a04167e14cd08ee
[ "MIT" ]
null
null
null
tech/Script/integration/Lua/ScriptHelper.cpp
nbtdev/teardrop
fa9cc8faba03a901d1d14f655a04167e14cd08ee
[ "MIT" ]
null
null
null
/****************************************************************************** Copyright (c) 2015 Teardrop Games 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 wit...
26.122137
79
0.612215
nbtdev
853cb0c82c9d3eb4a1b694ad305b755b203c3619
12,324
cpp
C++
source/main.cpp
HaikuArchives/WheresMyMouse
4baac8a8fe313f4251ec40f7235ca033a8be0b19
[ "BSD-3-Clause" ]
1
2017-09-09T17:47:16.000Z
2017-09-09T17:47:16.000Z
source/main.cpp
HaikuArchives/WheresMyMouse
4baac8a8fe313f4251ec40f7235ca033a8be0b19
[ "BSD-3-Clause" ]
10
2016-06-26T12:42:25.000Z
2017-02-19T10:02:58.000Z
source/main.cpp
HaikuArchives/WheresMyMouse
4baac8a8fe313f4251ec40f7235ca033a8be0b19
[ "BSD-3-Clause" ]
6
2016-06-26T08:11:12.000Z
2020-10-26T06:17:56.000Z
/* Copyright (c) 2002, Marcin 'Shard' Konicki 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...
31.6
754
0.596478
HaikuArchives
854d372ba261499e8dfb45ef9e3435b2e89056a9
529
hpp
C++
src/checkbox_delegate.hpp
degarashi/sprinkler
afc6301ae2c7185f514148100da63dcef94d7f00
[ "MIT" ]
null
null
null
src/checkbox_delegate.hpp
degarashi/sprinkler
afc6301ae2c7185f514148100da63dcef94d7f00
[ "MIT" ]
null
null
null
src/checkbox_delegate.hpp
degarashi/sprinkler
afc6301ae2c7185f514148100da63dcef94d7f00
[ "MIT" ]
null
null
null
#pragma once #include <QStyledItemDelegate> namespace dg { class ColumnTarget; class CheckBoxDelegate : public QStyledItemDelegate { Q_OBJECT private: const ColumnTarget* _column; public: CheckBoxDelegate(const ColumnTarget* column, QObject* parent=nullptr); void paint(QPainter *painter, const QSt...
29.388889
133
0.778828
degarashi
85504cb2689ac2c38a99ac1d4797e591e1966394
353
cpp
C++
Uni/c++/programamzione-1/Esempi/Tutorato/Lezione2/Esercizio17.cpp
VenomBigBozz/Esercizi
44bcf62df162cfb5b924b291f9839fbe1b04dcba
[ "Unlicense" ]
null
null
null
Uni/c++/programamzione-1/Esempi/Tutorato/Lezione2/Esercizio17.cpp
VenomBigBozz/Esercizi
44bcf62df162cfb5b924b291f9839fbe1b04dcba
[ "Unlicense" ]
null
null
null
Uni/c++/programamzione-1/Esempi/Tutorato/Lezione2/Esercizio17.cpp
VenomBigBozz/Esercizi
44bcf62df162cfb5b924b291f9839fbe1b04dcba
[ "Unlicense" ]
null
null
null
#include <iostream> using namespace std; bool esercizio17(int **A, int n, int m, double w, double v) { for(int j = 0; j < m; j++) { double somma = 0; for(int i = 0; i < n; i++) { somma += A[i][j]; } somma /= n; if(somma >= w && somma <= v) return true; } ...
18.578947
61
0.461756
VenomBigBozz
85505596d6838934b2f3760746179725a92a5abc
2,680
cpp
C++
SnapshotPrim.cpp
ScottyPotty1/Dolphin-7-VM-Releases
696039e4192d662ed81af034ab47fe4324422477
[ "MIT" ]
null
null
null
SnapshotPrim.cpp
ScottyPotty1/Dolphin-7-VM-Releases
696039e4192d662ed81af034ab47fe4324422477
[ "MIT" ]
null
null
null
SnapshotPrim.cpp
ScottyPotty1/Dolphin-7-VM-Releases
696039e4192d662ed81af034ab47fe4324422477
[ "MIT" ]
null
null
null
/****************************************************************************** File: SnapshotPrim.cpp Description: Implementation of the Interpreter class' snapshot/quit primitive methods ******************************************************************************/ #include "Ist.h" #ifndef _DEBUG #pragma opt...
25.283019
125
0.693284
ScottyPotty1
855a687422bf20eb254af6af8229182fd8e67566
803
cpp
C++
zhangjunyan2580-c++/day2/P2.cpp
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
9
2019-12-01T14:52:40.000Z
2020-12-16T14:24:19.000Z
zhangjunyan2580-c++/day2/P2.cpp
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
null
null
null
zhangjunyan2580-c++/day2/P2.cpp
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
51
2019-11-26T14:49:05.000Z
2021-12-01T20:53:41.000Z
#include <stdio.h> int read(){ int n=0; static char ch; while(ch!=EOF&&(ch<'0'||ch>'9'))ch=getchar(); if(ch==EOF)return -1; while(ch>='0'&&ch<='9')n=n*10+ch-'0',ch=getchar(); return n; } int values[10005],real[10005]; int main(){ freopen("Input.txt","r",stdin); int i=0; while((real[i++]=read())!=-...
22.942857
86
0.533001
joelfak
855a79605de8eba1cec296ee974f23e1c03859e5
1,135
cpp
C++
test/tprocess.cpp
drypot/san-2.x
44e626793b1dc50826ba0f276d5cc69b7c9ca923
[ "MIT" ]
5
2019-12-27T07:30:03.000Z
2020-10-13T01:08:55.000Z
test/tprocess.cpp
drypot/san-2.x
44e626793b1dc50826ba0f276d5cc69b7c9ca923
[ "MIT" ]
null
null
null
test/tprocess.cpp
drypot/san-2.x
44e626793b1dc50826ba0f276d5cc69b7c9ca923
[ "MIT" ]
1
2020-07-27T22:36:40.000Z
2020-07-27T22:36:40.000Z
/* 1994.05.05 12.17 1995.08.23 10.07 */ #include <pub\config.hpp> #include <pub\init.hpp> #include <pub\process.hpp> #include <stdio.h> void TestExit() { Exit(); } void TestAbort() { Abort(); } void TestLogMessageOverflow() { forever LogMessage ("Hello!\n"); } void IniterC...
15.337838
69
0.548018
drypot
855c50ff92e60dc79cab3ac4530912887a0a552d
416
cpp
C++
src/assets/image_asset.cpp
e-bondarev/AstrumEngine
cd4ceb702a4148d765d729267d695940a9d8c0bc
[ "MIT" ]
1
2021-04-27T10:34:46.000Z
2021-04-27T10:34:46.000Z
src/assets/image_asset.cpp
e-bondarev/AstrumEngine
cd4ceb702a4148d765d729267d695940a9d8c0bc
[ "MIT" ]
null
null
null
src/assets/image_asset.cpp
e-bondarev/AstrumEngine
cd4ceb702a4148d765d729267d695940a9d8c0bc
[ "MIT" ]
null
null
null
#include "pch.h" #include "image_asset.h" #include "stb_image/stb_image.h" void ImageAsset::Load(const std::string& path) { int width, height; Data = stbi_load((ASTRUM_ROOT + path).c_str(), &width, &height, &Channels, 0); Size = { static_cast<float>(width), static_cast<float>(height) }; } ImageAsset::ImageAsset(...
18.909091
79
0.699519
e-bondarev
855e5da4e85972b06f419622c5f282afc05b80b7
2,738
cpp
C++
src/system/core/libcutils/socket_local_server_unix.cpp
dAck2cC2/m3e
475b89b59d5022a94e00b636438b25e27e4eaab2
[ "Apache-2.0" ]
5
2020-12-19T06:56:06.000Z
2022-01-09T01:28:42.000Z
src/system/core/libcutils/socket_local_server_unix.cpp
dAck2cC2/m3e
475b89b59d5022a94e00b636438b25e27e4eaab2
[ "Apache-2.0" ]
1
2021-09-27T06:00:40.000Z
2021-09-27T06:00:40.000Z
src/system/core/libcutils/socket_local_server_unix.cpp
dAck2cC2/m3e
475b89b59d5022a94e00b636438b25e27e4eaab2
[ "Apache-2.0" ]
3
2020-12-19T06:56:27.000Z
2021-09-26T18:50:44.000Z
/* libs/cutils/socket_local_server.c ** ** Copyright 2006, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICE...
21.559055
79
0.641344
dAck2cC2
855fbf0008119e14180c8828f5067996a63853d5
2,654
cpp
C++
engine-base/GameManager.cpp
geoffwhitehead/snooker-game
54c607bbfc31cfe2f6adbec488f408a6d49f1d8d
[ "MIT" ]
null
null
null
engine-base/GameManager.cpp
geoffwhitehead/snooker-game
54c607bbfc31cfe2f6adbec488f408a6d49f1d8d
[ "MIT" ]
null
null
null
engine-base/GameManager.cpp
geoffwhitehead/snooker-game
54c607bbfc31cfe2f6adbec488f408a6d49f1d8d
[ "MIT" ]
null
null
null
#include "GameManager.h" GameManager::GameManager(float w_x, float w_y) : window(Window(w_x, w_y)), renderer(Renderer(window)){ } GameManager::~GameManager(){ } //for (vector<GLuint>::iterator tex = textures.begin(); tex != textures.end(); ++tex) //delete (*tex); void GameManager::addEntity(Entity* e){ entiti...
25.519231
116
0.678975
geoffwhitehead
8564b9423df92e244a2dfc57a5da94e76024fcae
638
cpp
C++
TrackerGrupo02/src/Events/LogoutZone.cpp
Sounagix/UsabilidadTelemetria
7f88ac2ed9912bb69fa3bda27620e6c2271c61fd
[ "MIT" ]
null
null
null
TrackerGrupo02/src/Events/LogoutZone.cpp
Sounagix/UsabilidadTelemetria
7f88ac2ed9912bb69fa3bda27620e6c2271c61fd
[ "MIT" ]
null
null
null
TrackerGrupo02/src/Events/LogoutZone.cpp
Sounagix/UsabilidadTelemetria
7f88ac2ed9912bb69fa3bda27620e6c2271c61fd
[ "MIT" ]
null
null
null
#include "LogoutZone.h" #include "jute.h" std::string LogoutZone::toJson() { TrackerEvent::commonJson(); jute::jValue num(jute::jType::JNUMBER); num.set_string(std::to_string((int)_zone)); mainJson.add_property("zone", num); jute::jValue aux(jute::jType::JNUMBER); aux.set_string(std::to_string((int)_next)); m...
15.190476
44
0.69906
Sounagix
85727d3f738acd1ea5fe1d3cfe515e0ef4fd1898
977
cpp
C++
Algorithms_Badge/Birthday Cake Candles/BirthdayCakeCandles/BirthdayCakeCandles/main.cpp
Muhand/HackerRank
c93dc19f4339440f0f23d8d6a0e3fafd15e34a8f
[ "MIT" ]
null
null
null
Algorithms_Badge/Birthday Cake Candles/BirthdayCakeCandles/BirthdayCakeCandles/main.cpp
Muhand/HackerRank
c93dc19f4339440f0f23d8d6a0e3fafd15e34a8f
[ "MIT" ]
null
null
null
Algorithms_Badge/Birthday Cake Candles/BirthdayCakeCandles/BirthdayCakeCandles/main.cpp
Muhand/HackerRank
c93dc19f4339440f0f23d8d6a0e3fafd15e34a8f
[ "MIT" ]
null
null
null
#include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #include <stack> #include <string> #include <bitset> #include <cstdio> #include <limits> #include <vector> #include <climits> #include <cstring> #include <cstdlib> #include <fstream> #include <numeric> #inc...
16.283333
74
0.609007
Muhand
85738b621da825b6ae9ffd9eb6782780a7447534
698
cpp
C++
dev/overcutted_2.0/Source.cpp
DrAntoine/over-cutted
d14ed1aea3ca6cd3a36ecc6e2dc96e44afccab25
[ "MIT" ]
1
2021-05-18T09:26:35.000Z
2021-05-18T09:26:35.000Z
dev/overcutted_2.0/Source.cpp
DrAntoine/over-cutted
d14ed1aea3ca6cd3a36ecc6e2dc96e44afccab25
[ "MIT" ]
16
2021-04-16T12:20:04.000Z
2021-05-17T18:35:00.000Z
dev/overcutted_2.0/Source.cpp
DrAntoine/over-cutted
d14ed1aea3ca6cd3a36ecc6e2dc96e44afccab25
[ "MIT" ]
null
null
null
#include <SFML/Graphics.hpp> #include"Perso.h" #include"Map.h" #include "Event.h" int main() { sf::RenderWindow window(sf::VideoMode(800, 800), "SFML works!"); Perso player("textures/sprite_player_1.png"); Map carte; Event test; window.setFramerateLimit(60); while (window.isOpen()) { ...
20.529412
68
0.557307
DrAntoine
8576be24f3b23e3513fbf7c4b872d337956605d5
919
hpp
C++
src/libs/level0/guishell/cppinclude/guishell/guishell.hpp
DeanoC/wyrd
50508dbe2427f1bd72a0ed03d7c7963cb74b37a7
[ "MIT" ]
null
null
null
src/libs/level0/guishell/cppinclude/guishell/guishell.hpp
DeanoC/wyrd
50508dbe2427f1bd72a0ed03d7c7963cb74b37a7
[ "MIT" ]
null
null
null
src/libs/level0/guishell/cppinclude/guishell/guishell.hpp
DeanoC/wyrd
50508dbe2427f1bd72a0ed03d7c7963cb74b37a7
[ "MIT" ]
null
null
null
#pragma once #ifndef WYRD_GUISHELL_GUISHELL_HPP #define WYRD_GUISHELL_GUISHELL_HPP #include "core/core.h" #include "guishell/guishell.h" #include "guishell/window.hpp" // Init, Load, Unload, Update, Draw and Exit and InitialWindow must be defined // as static function in the users app class #define DECLARE_APP(type) ...
28.71875
103
0.756257
DeanoC
857ce3e0e533e1eaeee220888edf7450d4a2fa27
4,198
cpp
C++
practica4/menu.cpp
MrcRjs/OpenGl101
52dc2fdb28a3551bd4a789d63eaad31be99ae2c2
[ "MIT" ]
1
2021-11-17T07:26:30.000Z
2021-11-17T07:26:30.000Z
practica4/menu.cpp
MrcRjs/OpenGl101
52dc2fdb28a3551bd4a789d63eaad31be99ae2c2
[ "MIT" ]
null
null
null
practica4/menu.cpp
MrcRjs/OpenGl101
52dc2fdb28a3551bd4a789d63eaad31be99ae2c2
[ "MIT" ]
null
null
null
// Marco Antonio Rojas Arriaga #ifdef __APPLE__ #include <OpenGL/gl.h> #include <OpenGL/glu.h> #include <GLUT/glut.h> #else #include <GL/glut.h> #endif int sky = 0; int fig1 = 2; int fig2 = 4; int fig3 = 6; typedef enum { FONDO0, FONDO1, COLOR2, COLOR3, COLOR4, COLOR5...
23.717514
74
0.54526
MrcRjs
3ff294ac10314e9e94a5d8282c8c765b307b9f78
42,327
cp
C++
gpcp/CPascalErrors.cp
imt-ag/gpcp
1c3de23993e0979d672f1c8fe7f193d0de22991a
[ "BSD-3-Clause" ]
32
2017-08-15T11:49:34.000Z
2021-12-24T13:10:29.000Z
gpcp/CPascalErrors.cp
imt-ag/gpcp
1c3de23993e0979d672f1c8fe7f193d0de22991a
[ "BSD-3-Clause" ]
14
2017-10-14T16:44:02.000Z
2022-03-09T08:17:56.000Z
gpcp/CPascalErrors.cp
imt-ag/gpcp
1c3de23993e0979d672f1c8fe7f193d0de22991a
[ "BSD-3-Clause" ]
7
2017-11-10T14:55:30.000Z
2022-02-07T01:23:22.000Z
(* ==================================================================== *) (* *) (* Error Module for the Gardens Point Component Pascal Compiler. *) (* Copyright (c) John Gough 1999, 2000. *) (* *) (* ==================================================================== *) MODULE CPascalError...
41.825099
87
0.546483
imt-ag
3ff301844814536c79081067323f3296411d078a
3,241
cpp
C++
src/StateMove.cpp
Pnaop/interface_opdracht
891d619ee00610241eba44bfef51b11d3235c687
[ "MIT" ]
null
null
null
src/StateMove.cpp
Pnaop/interface_opdracht
891d619ee00610241eba44bfef51b11d3235c687
[ "MIT" ]
null
null
null
src/StateMove.cpp
Pnaop/interface_opdracht
891d619ee00610241eba44bfef51b11d3235c687
[ "MIT" ]
null
null
null
#include "../include/StateMove.h" #include "../include/StateEmergency.h" #include "../include/StateIdle.h" #include <interface_opdracht/moveAction.h> StateMove::StateMove(HighLevelDriver& context):context(context) { } StateMove::~StateMove() { } void StateMove::handleEvent(Event& event) { switch (event.getEventT...
28.9375
179
0.636532
Pnaop
3ff65485b02000023e180d497d85c53716f4a0c9
651
hpp
C++
options.hpp
a12n/rematrix
e539a5573a99665ba7b21e1c2114508060dcd163
[ "MIT" ]
2
2022-01-15T16:27:05.000Z
2022-01-15T16:48:03.000Z
options.hpp
a12n/rematrix
e539a5573a99665ba7b21e1c2114508060dcd163
[ "MIT" ]
null
null
null
options.hpp
a12n/rematrix
e539a5573a99665ba7b21e1c2114508060dcd163
[ "MIT" ]
null
null
null
#ifndef REMATRIX_OPTIONS_HPP #define REMATRIX_OPTIONS_HPP #include "matrix.hpp" namespace rematrix { struct options { enum mode { binary, decimal, dna, hexadecimal, matrix, }; bool enable_fog{false}; bool enable_waves{true}; mode mode{matrix}; unsigned...
19.727273
67
0.642089
a12n
3ffeb94e53ae830e4e101654ea0c7ae3c93820a9
2,307
hpp
C++
particle_render.vs.hpp
demotomohiro/The-Job-changing-knight-Ganglion
40382990b58f6e643b39ea108aa45e7c7173ce1c
[ "MIT" ]
1
2015-03-21T23:00:01.000Z
2015-03-21T23:00:01.000Z
particle_render.vs.hpp
demotomohiro/The-Job-changing-knight-Ganglion
40382990b58f6e643b39ea108aa45e7c7173ce1c
[ "MIT" ]
null
null
null
particle_render.vs.hpp
demotomohiro/The-Job-changing-knight-Ganglion
40382990b58f6e643b39ea108aa45e7c7173ce1c
[ "MIT" ]
null
null
null
/* File generated with Shader Minifier 1.1.4 * http://www.ctrl-alt-test.fr */ #ifndef PARTICLE_RENDER_VS_HPP_ # define PARTICLE_RENDER_VS_HPP_ const char *particle_render_vs = "#version 420\n" "float s(float f,float v)" "{" "float s=v/4.*60.,D=15.,g=.8;" "return smoothstep(-D/2.,-D*(1.-g)/2.,-abs(f-s-D*.5))...
27.464286
252
0.596879
demotomohiro
b203c159f1a83d4b0d53df12b2d2deaa2f8827a3
2,582
hpp
C++
lib/drivers/include/drivers/BasicDout.hpp
amsobr/iotool
233ec320ee25c96d34332fe847663682c4aa0a91
[ "MIT" ]
null
null
null
lib/drivers/include/drivers/BasicDout.hpp
amsobr/iotool
233ec320ee25c96d34332fe847663682c4aa0a91
[ "MIT" ]
4
2022-03-13T23:07:12.000Z
2022-03-13T23:10:09.000Z
lib/drivers/include/drivers/BasicDout.hpp
amsobr/iotool
233ec320ee25c96d34332fe847663682c4aa0a91
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <list> #include <vector> #include <memory> #include <tuple> #include <gpiod.hpp> #include <common/Peripheral.hpp> #include <common/PeripheralType.hpp> #include <common/DigitalOut.hpp> class BasicDout : public DigitalOut { public: /** * @brief Digital Output configura...
31.876543
102
0.606507
amsobr
b204cbd87f2025ddaad07a2bfd4fcc98fd04e43a
9,264
hpp
C++
pennylane_lightning/src/tests/TestHelpers.hpp
AmintorDusko/pennylane-lightning
9554a95842de9d7759ce96bfa75857e0c9ca756b
[ "Apache-2.0" ]
null
null
null
pennylane_lightning/src/tests/TestHelpers.hpp
AmintorDusko/pennylane-lightning
9554a95842de9d7759ce96bfa75857e0c9ca756b
[ "Apache-2.0" ]
null
null
null
pennylane_lightning/src/tests/TestHelpers.hpp
AmintorDusko/pennylane-lightning
9554a95842de9d7759ce96bfa75857e0c9ca756b
[ "Apache-2.0" ]
null
null
null
#include <algorithm> #include <complex> #include <memory> #include <random> #include <string> #include <type_traits> #include <vector> #include "Constant.hpp" #include "ConstantUtil.hpp" #include "Error.hpp" #include "GateOperation.hpp" #include "LinearAlgebra.hpp" #include "Util.hpp" #include <catch2/catch.hpp> nam...
30.88
79
0.571891
AmintorDusko
b20c3cc46f2c6e8c7de2a0cd723dce901e1c39db
18,045
cpp
C++
src/common.cpp
iamyoukou/sdf3d
3a7353156e800bccd58adeddcd110efe24b11f88
[ "Unlicense", "MIT" ]
18
2020-05-21T16:05:40.000Z
2022-02-26T00:41:39.000Z
src/common.cpp
iamyoukou/sdf3d
3a7353156e800bccd58adeddcd110efe24b11f88
[ "Unlicense", "MIT" ]
null
null
null
src/common.cpp
iamyoukou/sdf3d
3a7353156e800bccd58adeddcd110efe24b11f88
[ "Unlicense", "MIT" ]
8
2019-11-26T09:18:14.000Z
2022-03-01T20:10:47.000Z
#include "common.h" std::string readFile(const std::string filename) { std::ifstream in; in.open(filename.c_str()); std::stringstream ss; ss << in.rdbuf(); std::string sOut = ss.str(); in.close(); return sOut; } Mesh loadObj(std::string filename) { Mesh outMesh; std::ifstream fin; fin.open(filen...
26.575847
80
0.593295
iamyoukou
b20d90cdfb15815c85b5e07851adebf0889f1cd8
3,601
cc
C++
control/src/sl_sb03md.cc
SamThomas/Face_and_Voice_Recognition
ec405803c8ec9bc82370926d0b6ba97fa70fa31c
[ "MIT" ]
2
2016-08-25T19:09:41.000Z
2021-09-07T04:04:52.000Z
control/src/sl_sb03md.cc
SamThomas/Face_and_Voice_Recognition
ec405803c8ec9bc82370926d0b6ba97fa70fa31c
[ "MIT" ]
null
null
null
control/src/sl_sb03md.cc
SamThomas/Face_and_Voice_Recognition
ec405803c8ec9bc82370926d0b6ba97fa70fa31c
[ "MIT" ]
1
2022-03-05T16:17:16.000Z
2022-03-05T16:17:16.000Z
/* Copyright (C) 2009-2014 Lukas F. Reichlin This file is part of LTI Syncope. LTI Syncope is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
26.674074
81
0.526243
SamThomas
b213fa398b1f3e4bbbac24b630fd39bac9a8435f
1,741
cpp
C++
example/example2_opt.cpp
carlcc/JsonMapper
23adfe75482181d1f5b7eec052eb0626d441a2bf
[ "MIT" ]
3
2020-08-15T03:47:20.000Z
2021-06-29T10:49:38.000Z
example/example2_opt.cpp
carlcc/JsonMapper
23adfe75482181d1f5b7eec052eb0626d441a2bf
[ "MIT" ]
null
null
null
example/example2_opt.cpp
carlcc/JsonMapper
23adfe75482181d1f5b7eec052eb0626d441a2bf
[ "MIT" ]
1
2021-06-29T10:49:45.000Z
2021-06-29T10:49:45.000Z
#include <cstdint> #include <iostream> #include <jsonmapper/JsonMapper.h> #include <jsonmapper/types/deserialize/shared_ptr.h> #include <jsonmapper/types/deserialize/string.h> #include <jsonmapper/types/deserialize/unordered_map.h> #include <jsonmapper/types/deserialize/vector.h> #include <sstream> #include <string> #i...
28.080645
100
0.659391
carlcc
b2151ff7da996110d20f2cb42e5fa64456c87e0e
4,383
cpp
C++
QuickGUI/src/QuickGUILabel.cpp
VisualEntertainmentAndTechnologies/VENT-QuickGUI
7c687193001bcf914bd4a9947644915091ea8723
[ "Unlicense" ]
3
2017-01-12T19:22:01.000Z
2017-05-06T09:55:39.000Z
QuickGUI/src/QuickGUILabel.cpp
VisualEntertainmentAndTechnologies/VENT-QuickGUI
7c687193001bcf914bd4a9947644915091ea8723
[ "Unlicense" ]
null
null
null
QuickGUI/src/QuickGUILabel.cpp
VisualEntertainmentAndTechnologies/VENT-QuickGUI
7c687193001bcf914bd4a9947644915091ea8723
[ "Unlicense" ]
null
null
null
#include "QuickGUILabel.h" #include "QuickGUISkinDefinitionManager.h" #include "QuickGUISkinDefinition.h" namespace QuickGUI { const Ogre::String Label::BACKGROUND = "background"; void Label::registerSkinDefinition() { SkinDefinition* d = OGRE_NEW_T(SkinDefinition,Ogre::MEMCATEGORY_GENERAL)("Label"); ...
26.72561
173
0.71937
VisualEntertainmentAndTechnologies
b2160e725a2c271f3b1639a4c68c3d3c7a03e9c7
129
cpp
C++
dependencies/physx-4.1/source/lowlevel/common/src/pipeline/PxcMaterialMesh.cpp
realtehcman/-UnderwaterSceneProject
72cbd375ef5e175bed8f4e8a4d117f5340f239a4
[ "MIT" ]
null
null
null
dependencies/physx-4.1/source/lowlevel/common/src/pipeline/PxcMaterialMesh.cpp
realtehcman/-UnderwaterSceneProject
72cbd375ef5e175bed8f4e8a4d117f5340f239a4
[ "MIT" ]
null
null
null
dependencies/physx-4.1/source/lowlevel/common/src/pipeline/PxcMaterialMesh.cpp
realtehcman/-UnderwaterSceneProject
72cbd375ef5e175bed8f4e8a4d117f5340f239a4
[ "MIT" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:cec3dd4f00e26ea2aebec0b1e380637c61b78ff4a46e1690b39b52adb5f0b3fb size 4431
32.25
75
0.883721
realtehcman
b21a444cb7f8bc13be4bba8bfd44d3e80de669cf
501
hpp
C++
include/mgcpp/type_traits/shape_type.hpp
MGfoundation/mgcpp
66c072191e58871637bcb3b76701a79a4ae89779
[ "BSL-1.0" ]
48
2018-01-02T03:47:18.000Z
2021-09-09T05:55:45.000Z
include/mgcpp/type_traits/shape_type.hpp
MGfoundation/mgcpp
66c072191e58871637bcb3b76701a79a4ae89779
[ "BSL-1.0" ]
24
2017-12-27T18:03:13.000Z
2018-07-02T09:00:30.000Z
include/mgcpp/type_traits/shape_type.hpp
MGfoundation/mgcpp
66c072191e58871637bcb3b76701a79a4ae89779
[ "BSL-1.0" ]
6
2018-01-14T14:06:10.000Z
2018-10-16T08:43:01.000Z
#ifndef SHAPE_TYPE_HPP #define SHAPE_TYPE_HPP #include <mgcpp/global/shape.hpp> #include <tuple> #include <type_traits> namespace mgcpp { template <typename T> struct has_shape { private: typedef char one; typedef struct { char array[2]; } two; template <typename C> static one test(typename C::shape_...
17.275862
62
0.694611
MGfoundation
b220f6bdb7a564b32df4d09a4d864b9cde5a25a5
1,975
cpp
C++
src/commandparameters.cpp
tapir-dream/berserkJS
6c2820ead3a3319b910b8bad9f1c0d9cb02f450d
[ "BSD-3-Clause" ]
409
2015-01-10T15:20:39.000Z
2022-03-17T04:44:22.000Z
src/commandparameters.cpp
mba811/berserkJS
7effebd3aa9b8918fcbe41f7a073075bc531b726
[ "BSD-3-Clause" ]
7
2015-01-16T03:43:03.000Z
2018-07-12T13:06:27.000Z
src/commandparameters.cpp
mba811/berserkJS
7effebd3aa9b8918fcbe41f7a073075bc531b726
[ "BSD-3-Clause" ]
82
2015-01-04T15:49:37.000Z
2022-03-17T04:44:24.000Z
#include "commandparameters.h" CommandParameters::CommandParameters() { params = getParams(); } QMap<QString, QString> CommandParameters::getParams() { int argc = qApp->argc(); char **argv = qApp->argv(); QMap<QString, QString> params; // Parse command line parameters for (int ax = 1; ax < a...
21.944444
65
0.521013
tapir-dream
b221cb8585edd6d49d99efb122d853221d748675
426
cpp
C++
Examples/Example3/main.cpp
naddu77/CubbyMenu
8889873d377e62589e10e89ebe01ec739cf86752
[ "MIT" ]
16
2020-12-20T18:24:06.000Z
2021-04-04T12:07:31.000Z
Examples/Example3/main.cpp
naddu77/CubbyMenu
8889873d377e62589e10e89ebe01ec739cf86752
[ "MIT" ]
2
2020-12-23T04:15:42.000Z
2020-12-23T14:46:47.000Z
Examples/Example3/main.cpp
naddu77/CubbyMenu
8889873d377e62589e10e89ebe01ec739cf86752
[ "MIT" ]
4
2020-12-22T14:40:18.000Z
2020-12-26T00:19:50.000Z
#include <CubbyMenu/CubbyMenu.hpp> #include <iostream> void option0() { std::cout << "Option 0 is called!\n"; } void option1() { std::cout << "Option 1 is called!\n"; } void option2() { std::cout << "Option 2 is called!\n"; } int main() { CubbyMenu::Menu menu; menu.add_item("Option 0", &option...
14.689655
41
0.600939
naddu77
b223d6629ab0b4063c57f2ef792f69dd445b9f74
20,221
cpp
C++
src/calc_wave_func_bilayer.cpp
suwamaro/rpa
fc9d37f03705334ee17b77de6ad2b8feab3cc7b0
[ "Apache-2.0" ]
null
null
null
src/calc_wave_func_bilayer.cpp
suwamaro/rpa
fc9d37f03705334ee17b77de6ad2b8feab3cc7b0
[ "Apache-2.0" ]
null
null
null
src/calc_wave_func_bilayer.cpp
suwamaro/rpa
fc9d37f03705334ee17b77de6ad2b8feab3cc7b0
[ "Apache-2.0" ]
null
null
null
/***************************************************************************** * * Functions for calculating the wave function * * Copyright (C) 2018 by Hidemaro Suwa * e-mail:suwamaro@phys.s.u-tokyo.ac.jp * *****************************************************************************/ #include <complex> #ifdef WITH_O...
34.565812
218
0.604916
suwamaro
b2257d98dd0c5114f0a653847b2d5c0e449038b8
1,285
cpp
C++
tapSynth-main/Source/Data/MeterData.cpp
34Audiovisual/Progetti_JUCE
d22d91d342939a8463823d7a7ec528bd2228e5f7
[ "MIT" ]
null
null
null
tapSynth-main/Source/Data/MeterData.cpp
34Audiovisual/Progetti_JUCE
d22d91d342939a8463823d7a7ec528bd2228e5f7
[ "MIT" ]
null
null
null
tapSynth-main/Source/Data/MeterData.cpp
34Audiovisual/Progetti_JUCE
d22d91d342939a8463823d7a7ec528bd2228e5f7
[ "MIT" ]
null
null
null
/* ============================================================================== MeterData.cpp Created: 27 Feb 2021 9:37:46pm Author: Joshua Hodge ============================================================================== */ #include "MeterData.h" void MeterData::processRMS (juce::...
22.946429
81
0.429572
34Audiovisual
b22933af4b43eb0e41f2621433e4363e8a3d800f
755
cpp
C++
src/prod/src/Transport/ClientAuthHeader.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/Transport/ClientAuthHeader.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/Transport/ClientAuthHeader.cpp
vishnuk007/service-fabric
d0afdea185ae932cc3c9eacf179692e6fddbc630
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" namespace...
26.034483
98
0.569536
vishnuk007
b230c55292dabf3db6e64ff2593c66aadc8aefe2
533
cpp
C++
Trem/src/trem/renderer/vertex_buffer.cpp
Tremah/TremEngine
29e04e69da84e4c60709854010376edc1b96dc0a
[ "MIT" ]
10
2021-01-17T01:48:31.000Z
2021-12-31T19:31:22.000Z
Trem/src/trem/renderer/vertex_buffer.cpp
Tremah/TremEngine
29e04e69da84e4c60709854010376edc1b96dc0a
[ "MIT" ]
null
null
null
Trem/src/trem/renderer/vertex_buffer.cpp
Tremah/TremEngine
29e04e69da84e4c60709854010376edc1b96dc0a
[ "MIT" ]
null
null
null
#include <trpch.h> #include "vertex_buffer.h" namespace Trem { VertexBuffer::VertexBuffer(uint32_t size) { glCreateBuffers(1, &vertexBufferID_); glBindBuffer(GL_ARRAY_BUFFER, vertexBufferID_); glBufferData(GL_ARRAY_BUFFER, size, nullptr, GL_STATIC_DRAW); } VertexBuffer::~VertexBuffer() { glD...
19.035714
65
0.712946
Tremah
b233a79cbe979750371161c79e6a22fc44803493
601
cpp
C++
leetcode.com/0925 Long Pressed Name/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2020-08-20T11:02:49.000Z
2020-08-20T11:02:49.000Z
leetcode.com/0925 Long Pressed Name/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
null
null
null
leetcode.com/0925 Long Pressed Name/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2022-01-01T23:23:13.000Z
2022-01-01T23:23:13.000Z
#include <iostream> #include <vector> using namespace std; class Solution { public: bool isLongPressedName(string name, string typed) { int n1 = name.size(), n2 = typed.size(); if (n1 > n2) return false; else if (n1 == n2) return name == typed; int i = 0, j = 0; while (i < n1 && j <...
22.259259
53
0.499168
sky-bro
b239fc5220a9fb1a8b01248897a020b48fcfc0a1
1,008
cpp
C++
ShenShengYi/UT/UT/School_Test.cpp
shenshengyi/ShenShengYi
0b16b555d498c0bd17dd16f830343a5f2a1fd4e1
[ "MIT" ]
null
null
null
ShenShengYi/UT/UT/School_Test.cpp
shenshengyi/ShenShengYi
0b16b555d498c0bd17dd16f830343a5f2a1fd4e1
[ "MIT" ]
null
null
null
ShenShengYi/UT/UT/School_Test.cpp
shenshengyi/ShenShengYi
0b16b555d498c0bd17dd16f830343a5f2a1fd4e1
[ "MIT" ]
null
null
null
#include "pch.h" #include "School_Test.h" #include <Student.h> #include <iostream> using namespace std; void School_Test::SetUpTestCase(void) { } void School_Test::TearDownTestCase(void) { } void School_Test::SetUp() { _shool = STU::School::GetInstance(); } void School_Test::TearDown() { STU::School::Release();...
22.909091
138
0.672619
shenshengyi
b24710c2e9df42d01256f3184b3eb3f987734dbf
3,975
cpp
C++
src/MultiLayerOptics/src/AbsorptancesMultiPane.cpp
bakonyidani/Windows-CalcEngine
afa4c4a9f88199c6206af8bc994a073931fc8b91
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/MultiLayerOptics/src/AbsorptancesMultiPane.cpp
bakonyidani/Windows-CalcEngine
afa4c4a9f88199c6206af8bc994a073931fc8b91
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/MultiLayerOptics/src/AbsorptancesMultiPane.cpp
bakonyidani/Windows-CalcEngine
afa4c4a9f88199c6206af8bc994a073931fc8b91
[ "BSD-3-Clause-LBNL" ]
null
null
null
#include "AbsorptancesMultiPane.hpp" #include "WCECommon.hpp" using namespace FenestrationCommon; namespace MultiLayerOptics { CAbsorptancesMultiPane::CAbsorptancesMultiPane( const std::shared_ptr< const CSeries >& t_T, const std::shared_ptr< const CSeries >& t_Rf, ...
30.576923
126
0.598491
bakonyidani
b24b45c453a0f8325feff47a9040a4a8d6e53588
1,029
hpp
C++
DemoProject/FarmGame/BaseFarmState.hpp
spywhere/Legacy-ParticlePlay
0c1ec6e4706f72b64e0408cc79cdeffce535b484
[ "BSD-3-Clause" ]
null
null
null
DemoProject/FarmGame/BaseFarmState.hpp
spywhere/Legacy-ParticlePlay
0c1ec6e4706f72b64e0408cc79cdeffce535b484
[ "BSD-3-Clause" ]
null
null
null
DemoProject/FarmGame/BaseFarmState.hpp
spywhere/Legacy-ParticlePlay
0c1ec6e4706f72b64e0408cc79cdeffce535b484
[ "BSD-3-Clause" ]
null
null
null
#ifndef BASEFARMSTATE_HEADER #define BASEFARMSTATE_HEADER #include <string> #include <ParticlePlay/ParticlePlay.hpp> #include "Spritesheet.hpp" #include "Tile.hpp" #include "Entity.hpp" class BaseFarmState : public ppState { protected: ppGUI* gui; ppIMS* ims; Spritesheet* spritesheet; Tile* grassTile, *dirtTile, ...
29.4
71
0.759961
spywhere
b24dae266c1704cf575597ba7625ab5c08cb0da0
22,520
cpp
C++
SimSpark/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
SimSpark/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
SimSpark/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
27.29697
107
0.573579
IllyasvielEin
b2514262d5bdd97030d6b23b95b266bf0ff1c1ed
149
cpp
C++
abc176/a.cpp
magurotuna/atcoder-submissions-cpp
afbf5df2f22bcd17d8ad580d3c143602d9af7398
[ "CC0-1.0" ]
null
null
null
abc176/a.cpp
magurotuna/atcoder-submissions-cpp
afbf5df2f22bcd17d8ad580d3c143602d9af7398
[ "CC0-1.0" ]
null
null
null
abc176/a.cpp
magurotuna/atcoder-submissions-cpp
afbf5df2f22bcd17d8ad580d3c143602d9af7398
[ "CC0-1.0" ]
null
null
null
#include <bits/stdc++.h> int main() { int n, x, t; std::cin >> n >> x >> t; int cnt = (n + x - 1) / x; std::cout << t * cnt << std::endl; }
16.555556
36
0.442953
magurotuna
b255cfd2e71168d3bac1075a744ccf1b7540b7ea
199
cpp
C++
src/pocketdb/services/WsNotifier.cpp
pocketnetapp/pocketnet.core
2bdcd58bd8a4210d1117c06d52295c0b62c4061d
[ "Apache-2.0" ]
1
2022-02-07T14:19:54.000Z
2022-02-07T14:19:54.000Z
src/pocketdb/services/WsNotifier.cpp
pocketnetapp/pocketnet.core
2bdcd58bd8a4210d1117c06d52295c0b62c4061d
[ "Apache-2.0" ]
null
null
null
src/pocketdb/services/WsNotifier.cpp
pocketnetapp/pocketnet.core
2bdcd58bd8a4210d1117c06d52295c0b62c4061d
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2018-2022 The Pocketnet developers // Distributed under the Apache 2.0 software license, see the accompanying // https://www.apache.org/licenses/LICENSE-2.0 #include "WsNotifier.h"
33.166667
74
0.763819
pocketnetapp
b25b56b2e42ec0e8935f537feeebfdc154f1324b
30
cpp
C++
Engine/Helper/valuedatavariant.cpp
hefsoftware/Stem
0903032db9ba6f843c01d06aea5a31f2b519ec56
[ "BSD-3-Clause" ]
null
null
null
Engine/Helper/valuedatavariant.cpp
hefsoftware/Stem
0903032db9ba6f843c01d06aea5a31f2b519ec56
[ "BSD-3-Clause" ]
null
null
null
Engine/Helper/valuedatavariant.cpp
hefsoftware/Stem
0903032db9ba6f843c01d06aea5a31f2b519ec56
[ "BSD-3-Clause" ]
null
null
null
#include "valuedatavariant.h"
15
29
0.8
hefsoftware
b267864e88d6a620439efa9d5166c494ef677871
3,312
hpp
C++
hash_table.hpp
wheatman/ConcurrentHashMap
7af9030e084d8c2c5eec2ca3e4a51e3a8bb80dda
[ "MIT" ]
null
null
null
hash_table.hpp
wheatman/ConcurrentHashMap
7af9030e084d8c2c5eec2ca3e4a51e3a8bb80dda
[ "MIT" ]
null
null
null
hash_table.hpp
wheatman/ConcurrentHashMap
7af9030e084d8c2c5eec2ca3e4a51e3a8bb80dda
[ "MIT" ]
null
null
null
#pragma once #include "parallel.h" #include "reducer.h" #include <algorithm> #include <functional> #include <memory> #include <mutex> #include <unordered_map> #include <unordered_set> #include <vector> template <class Key, class T, class Hash = std::hash<Key>> class ConcurrentHashMap { private: using Map = std::pa...
26.285714
75
0.610507
wheatman
b26875abce8e9890cbb8cfb1b03663110905b511
12,391
cpp
C++
data/954.cpp
TianyiChen/rdcpp-data
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
[ "MIT" ]
null
null
null
data/954.cpp
TianyiChen/rdcpp-data
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
[ "MIT" ]
null
null
null
data/954.cpp
TianyiChen/rdcpp-data
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
[ "MIT" ]
null
null
null
int b9MhF//6oKqb , th6sZ, pQ , wzc , sJ0u , J , B5 , qet, Y, M , JIk, dRbLB , JI , HVm ,V6i , ApWJ, QLr, kr, yaXv , LrB ,vms, ZpPk/**/, qrW ,/*n*/ QBDYi, jH , E ,Qp,qlMm ,i,/*KnSK*/ ZW,K1E , AXo , N4 , gI4I,/*X*/PhCO ,awv , zP7C , NJ , C ,G , rKp3S9, DCW ,xNvW,c6, im , OXaT,ll9V,JSBw; v...
10.343072
61
0.450488
TianyiChen
b26af8c0fa87c0a6ce64a4b200a5a1d80aefdff5
53,298
cpp
C++
surfgradDemo/main.cpp
mmikk/surfgrad-bump-standalone-demo
82f5f9979cf1f295ee73747db0bcdd906c99c752
[ "MIT" ]
55
2020-10-21T19:03:55.000Z
2022-03-24T19:33:16.000Z
surfgradDemo/main.cpp
mmikk/surfgrad-bump-standalone-demo
82f5f9979cf1f295ee73747db0bcdd906c99c752
[ "MIT" ]
null
null
null
surfgradDemo/main.cpp
mmikk/surfgrad-bump-standalone-demo
82f5f9979cf1f295ee73747db0bcdd906c99c752
[ "MIT" ]
3
2020-10-22T06:20:06.000Z
2020-11-23T07:18:32.000Z
// This sample was made by Morten S. Mikkelsen // It illustrates how to do compositing of bump maps in complex scenarios using the surface gradient based framework. #define SHOW_DEMO_SCENE #include "DXUT.h" #include "DXUTcamera.h" #include "DXUTgui.h" //#include "DXUTsettingsDlg.h" #include "SDKmisc.h" //#include "S...
33.478643
216
0.707569
mmikk
05cf6f58b90b4b7ed4ec36a1aaed0cac03615d00
9,164
cpp
C++
src/vision_opencv/opencv_apps/src/nodelet/segment_objects_nodelet.cpp
mwimble/kaimiPi
92ea97f7d761ed38fb490dab10bfdf09c2ba352f
[ "FSFAP" ]
1
2022-03-29T07:26:29.000Z
2022-03-29T07:26:29.000Z
src/vision_opencv/opencv_apps/src/nodelet/segment_objects_nodelet.cpp
mwimble/kaimiPi
92ea97f7d761ed38fb490dab10bfdf09c2ba352f
[ "FSFAP" ]
null
null
null
src/vision_opencv/opencv_apps/src/nodelet/segment_objects_nodelet.cpp
mwimble/kaimiPi
92ea97f7d761ed38fb490dab10bfdf09c2ba352f
[ "FSFAP" ]
null
null
null
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2014, Kei Okada. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
33.083032
123
0.678306
mwimble
05d09fa85f4ff909e6ed03acc4552dc3c95ad691
8,559
cpp
C++
SpelJongEmu/src/AluFunctions.cpp
fallahn/speljongen
57cb5e09eec7db8c21ee7b3e7943fa0a76738c51
[ "Unlicense" ]
17
2018-06-23T14:40:56.000Z
2019-07-02T11:58:55.000Z
SpelJongEmu/src/AluFunctions.cpp
fallahn/speljongen
57cb5e09eec7db8c21ee7b3e7943fa0a76738c51
[ "Unlicense" ]
3
2018-06-23T12:35:12.000Z
2018-06-23T12:38:54.000Z
SpelJongEmu/src/AluFunctions.cpp
fallahn/speljongen
57cb5e09eec7db8c21ee7b3e7943fa0a76738c51
[ "Unlicense" ]
null
null
null
#include "AluFunctions.hpp" #include "CpuRegisters.hpp" #include <cassert> std::uint8_t AluFunction::inc(Flags& flags, std::uint8_t arg) { std::uint8_t result = arg + 1; flags.set(Flags::Z, result == 0); flags.set(Flags::N, false); flags.set(Flags::H, ((arg & 0x0f) == 0x0f)); return result; } st...
26.663551
85
0.586984
fallahn
05d27ef62eb5a58839ad4a04691af8355f3911b0
3,783
cpp
C++
source/math/regression.cpp
ramenhut/final-stage-path-tracer-2-0
77c3a706f6521d88245b95b6310344b202be0e37
[ "BSD-2-Clause" ]
5
2019-07-26T06:24:16.000Z
2019-11-10T09:41:20.000Z
source/jmath/regression.cpp
ramenhut/global-illumination-lightmaps
e2099e1dca2ba181b18c248958b6f3cec96f14f2
[ "BSD-2-Clause" ]
null
null
null
source/jmath/regression.cpp
ramenhut/global-illumination-lightmaps
e2099e1dca2ba181b18c248958b6f3cec96f14f2
[ "BSD-2-Clause" ]
2
2019-09-18T13:01:45.000Z
2021-10-17T00:04:04.000Z
#include "statistics.h" namespace base { void compute_linear_squares(vector2* point_list, uint32 count, vector2* out_start, vector2* out_end) { if (BASE_PARAM_CHECK) { if (!point_list || !out_start || !out_end) { return; } } float32 m = 0; float32 b = 0; float32 x...
25.560811
76
0.629923
ramenhut
05d91c22665eeb990044f7d7d45da481140a2924
3,577
hh
C++
dune/gdt/spaces/mapper/finite-volume.hh
pymor/dune-gdt
fabc279a79e7362181701866ce26133ec40a05e0
[ "BSD-2-Clause" ]
4
2018-10-12T21:46:08.000Z
2020-08-01T18:54:02.000Z
dune/gdt/spaces/mapper/finite-volume.hh
dune-community/dune-gdt
fabc279a79e7362181701866ce26133ec40a05e0
[ "BSD-2-Clause" ]
154
2016-02-16T13:50:54.000Z
2021-12-13T11:04:29.000Z
dune/gdt/spaces/mapper/finite-volume.hh
dune-community/dune-gdt
fabc279a79e7362181701866ce26133ec40a05e0
[ "BSD-2-Clause" ]
5
2016-03-02T10:11:20.000Z
2020-02-08T03:56:24.000Z
// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensource.org/lice...
28.388889
119
0.728823
pymor
05dcffcae4da3aa57b64116b37688eba011f35ec
484
cpp
C++
C/202009011649.cpp
zawa-ch/code-fragments
4cc4fab495e633f48cadfdaa753f2fb604093caf
[ "Unlicense" ]
null
null
null
C/202009011649.cpp
zawa-ch/code-fragments
4cc4fab495e633f48cadfdaa753f2fb604093caf
[ "Unlicense" ]
null
null
null
C/202009011649.cpp
zawa-ch/code-fragments
4cc4fab495e633f48cadfdaa753f2fb604093caf
[ "Unlicense" ]
null
null
null
#include <iostream> #include <limits> int main(int argc, char const *argv[]) { // 明らかにオーバーフローを起こす値キャストの確認 // 3E113をint型(max:2147483647)に変換 const double value1 = 3.0e+113; int castvalue1 = int(value1); std::cout << value1 << " --int cast-> " << castvalue1 << std::endl; // Quiet NaN (無効な値)をint型に変換 const double ...
25.473684
68
0.663223
zawa-ch
05e40631f92f1ae84df484863908744364615275
1,545
cpp
C++
test/route_test.cpp
LeonineKing1199/foxy-old
bc2d127dc3be48aea7007e4a7262d0a2bf0931d0
[ "BSL-1.0" ]
1
2020-09-30T08:58:35.000Z
2020-09-30T08:58:35.000Z
test/route_test.cpp
LeonineKing1199/foxy-old
bc2d127dc3be48aea7007e4a7262d0a2bf0931d0
[ "BSL-1.0" ]
null
null
null
test/route_test.cpp
LeonineKing1199/foxy-old
bc2d127dc3be48aea7007e4a7262d0a2bf0931d0
[ "BSL-1.0" ]
null
null
null
#include "foxy/route.hpp" #include "foxy/match_route.hpp" #include <boost/asio/executor.hpp> #include <boost/spirit/include/qi_int.hpp> #include <boost/spirit/include/qi_lit.hpp> #include <boost/spirit/include/qi_rule.hpp> #include <boost/spirit/include/qi_sequence.hpp> #include <catch.hpp> namespace qi = boost::...
24.140625
74
0.653722
LeonineKing1199
05e4ea8c83712ab12abe3ea97ed01f4dc38a7163
1,204
cpp
C++
source/xyo-pixel32-process-wrapbox.cpp
g-stefan/xyo-pixel32
2f0e7500473f38ccffdff19e864f262b9f36056d
[ "MIT", "Unlicense" ]
null
null
null
source/xyo-pixel32-process-wrapbox.cpp
g-stefan/xyo-pixel32
2f0e7500473f38ccffdff19e864f262b9f36056d
[ "MIT", "Unlicense" ]
null
null
null
source/xyo-pixel32-process-wrapbox.cpp
g-stefan/xyo-pixel32
2f0e7500473f38ccffdff19e864f262b9f36056d
[ "MIT", "Unlicense" ]
null
null
null
// // XYO Pixel32 // // Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com> // Created by Grigore Stefan <g_stefan@yahoo.com> // // MIT License (MIT) <http://opensource.org/licenses/MIT> // #include "xyo-pixel32-process.hpp" namespace XYO { namespace Pixel32 { namespace Process { using n...
24.08
73
0.535714
g-stefan
05e8b91c6da8173c0d75ef85ebf78627958ff339
388
cpp
C++
Codeforces/ProblemSet/144A.cpp
Binary-bug/CP
f9f356d36bd252c71ee3ed2d0585cc372f2baf5e
[ "MIT" ]
null
null
null
Codeforces/ProblemSet/144A.cpp
Binary-bug/CP
f9f356d36bd252c71ee3ed2d0585cc372f2baf5e
[ "MIT" ]
null
null
null
Codeforces/ProblemSet/144A.cpp
Binary-bug/CP
f9f356d36bd252c71ee3ed2d0585cc372f2baf5e
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main(){ int n,x,max_i,min_i,max,min; scanf("%d",&n); scanf("%d",&x); max = min = x; max_i = min_i = 0; for(int i=1; i < n; ++i){ scanf("%d",&x); if(x > max) max = x, max_i = i; if(x <= min) min = x, min_i = i; } (max_i > min_i)?(cout << (n + max_i - min_i - 2)...
18.47619
85
0.512887
Binary-bug
05e9370c686fafe079834bdcc34f3a492a7fb13a
4,079
cpp
C++
common/utils.cpp
olafurw/server2
28cfc7c07ef5e87951af8f5326b54e3434391765
[ "MIT" ]
null
null
null
common/utils.cpp
olafurw/server2
28cfc7c07ef5e87951af8f5326b54e3434391765
[ "MIT" ]
null
null
null
common/utils.cpp
olafurw/server2
28cfc7c07ef5e87951af8f5326b54e3434391765
[ "MIT" ]
null
null
null
#include "utils.hpp" #include "sha256.hpp" #include <dlfcn.h> #include <execinfo.h> #include <cxxabi.h> namespace utils { std::string sha256(const std::string& data) { static char const hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; unsigned char result[32]; ...
25.179012
183
0.579063
olafurw
05e94c4ac2a7c68f01d18d3c017ce05a3aa2a02e
28,002
cpp
C++
src/XPTools/DDSTool.cpp
den-rain/xptools
4c39da8d44a4a92e9efb2538844d433496b38f07
[ "X11", "MIT" ]
null
null
null
src/XPTools/DDSTool.cpp
den-rain/xptools
4c39da8d44a4a92e9efb2538844d433496b38f07
[ "X11", "MIT" ]
null
null
null
src/XPTools/DDSTool.cpp
den-rain/xptools
4c39da8d44a4a92e9efb2538844d433496b38f07
[ "X11", "MIT" ]
null
null
null
/* * Copyright (c) 2007, Laminar Research. * * 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, merge, ...
27.426053
156
0.628669
den-rain
05fc2ce0994eaa85e79762f4941bd7224eb15a66
346
cpp
C++
graphics/shaders/FloatConstNode.cpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
26
2015-04-22T05:25:25.000Z
2020-11-15T11:07:56.000Z
graphics/shaders/FloatConstNode.cpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
2
2015-01-05T10:41:27.000Z
2015-01-06T20:46:11.000Z
graphics/shaders/FloatConstNode.cpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
5
2016-08-02T11:13:57.000Z
2018-10-26T11:19:27.000Z
#include "FloatConstNode.hpp" BEGIN_INANITY_SHADERS FloatConstNode::FloatConstNode(float value) : value(value) {} Node::Type FloatConstNode::GetType() const { return typeFloatConst; } DataType FloatConstNode::GetValueType() const { return DataTypes::_float; } float FloatConstNode::GetValue() const { return valu...
14.416667
45
0.777457
quyse
af00a0eeb24fbf4aecfd507708a2fcbd01680a40
682
hpp
C++
src/gametransition.hpp
cpusam/dangerous_tux
e5f099f3e3665d62f1c484458125f003c1d5eece
[ "Zlib" ]
1
2020-09-18T07:43:07.000Z
2020-09-18T07:43:07.000Z
src/gametransition.hpp
cpusam/dangerous_tux
e5f099f3e3665d62f1c484458125f003c1d5eece
[ "Zlib" ]
null
null
null
src/gametransition.hpp
cpusam/dangerous_tux
e5f099f3e3665d62f1c484458125f003c1d5eece
[ "Zlib" ]
null
null
null
#ifndef GAMETRANSITION_HPP #define GAMETRANSITION_HPP #include "player.hpp" #include "background.hpp" #include "camera.hpp" #include "platform/tilemap.hpp" #include "gui/label.hpp" class CGameTransition: public StateMachine { protected: Background bg; Camera * cam; TileMapView * map; CPlayer * player; Gui...
16.634146
55
0.681818
cpusam
af05ec2b0ab770eb898c56a7214eb607d39e067a
365
cpp
C++
day5/Line.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
1
2021-12-02T14:11:37.000Z
2021-12-02T14:11:37.000Z
day5/Line.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
day5/Line.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
#include "Line.hpp" Line::Line(const Point &p1, const Point &p2) : _points({p1, p2}) { } bool Line::IsHorizontal() const { return _points[0].second == _points[1].second; } bool Line::IsVertical() const { return _points[0].first == _points[1].first; } const std::array<std::pair<std::uint16_t, std::uint16_t>, 2> &...
16.590909
85
0.671233
fardragon
af06f41b2069f25d29a4aa86c04ec4919c50d8c0
1,986
cpp
C++
tests/atexit/host/host.cpp
jbdelcuv/openenclave
c2e9cfabd788597f283c8dd39edda5837b1b1339
[ "MIT" ]
617
2019-06-19T22:08:04.000Z
2022-03-25T09:21:03.000Z
tests/atexit/host/host.cpp
jbdelcuv/openenclave
c2e9cfabd788597f283c8dd39edda5837b1b1339
[ "MIT" ]
2,545
2019-06-18T21:46:10.000Z
2022-03-31T23:26:51.000Z
tests/atexit/host/host.cpp
jbdelcuv/openenclave
c2e9cfabd788597f283c8dd39edda5837b1b1339
[ "MIT" ]
292
2019-07-02T15:40:35.000Z
2022-03-27T13:27:10.000Z
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #include <openenclave/host.h> #include <openenclave/internal/calls.h> #include <openenclave/internal/error.h> #include <openenclave/internal/tests.h> #include <cstdio> #include <cstdlib> #include <thread> #include "atexit_u.h" #define...
24.219512
73
0.651561
jbdelcuv
af0a67c64339e2f7d426d813043cf5fede83d3d6
5,569
cpp
C++
QmlVlcVideoOutput.cpp
xsmart/QmlVlc
284a3731924690ef3b1a2291857f69ce2d271a20
[ "BSD-2-Clause" ]
1
2019-05-13T09:27:29.000Z
2019-05-13T09:27:29.000Z
QmlVlcVideoOutput.cpp
xsmart/QmlVlc
284a3731924690ef3b1a2291857f69ce2d271a20
[ "BSD-2-Clause" ]
1
2021-11-02T17:20:00.000Z
2021-11-02T17:20:00.000Z
deps/QmlVlc/QmlVlcVideoOutput.cpp
litovko/giko_rig
fbc9d336a149f5e072a66245eb94260696a81e1d
[ "Apache-2.0" ]
1
2021-05-25T04:31:11.000Z
2021-05-25T04:31:11.000Z
/******************************************************************************* * Copyright © 2014-2015, Sergey Radionov <rsatom_gmail.com> * 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. ...
33.14881
108
0.672652
xsmart
af0b7b989e4709dbe9eed9fb2ca2f9e8b1a079c6
3,906
hh
C++
src/lisp/symbol.hh
kuriboshi/lips
f9f4838a95ff574fb7a627a3eb966b38b6f430f7
[ "Apache-2.0" ]
1
2020-11-10T11:02:21.000Z
2020-11-10T11:02:21.000Z
src/lisp/symbol.hh
kuriboshi/lips
f9f4838a95ff574fb7a627a3eb966b38b6f430f7
[ "Apache-2.0" ]
null
null
null
src/lisp/symbol.hh
kuriboshi/lips
f9f4838a95ff574fb7a627a3eb966b38b6f430f7
[ "Apache-2.0" ]
null
null
null
// // Lips, lisp shell. // Copyright 2021 Krister Joas // #ifndef LISP_SYMBOL_HH #define LISP_SYMBOL_HH #include <cstdint> #include <string> #include <unordered_map> #include <vector> #include "lisp.hh" namespace lisp { class lisp_t; using LISPT = std::shared_ptr<lisp_t>; extern LISPT C_UNBOUND; namespace symbol {...
23.96319
82
0.678187
kuriboshi
af0ca9d1a06932b25d39ef87acd36f59c0b2db6b
404
cpp
C++
src/wire/core/ssl_certificate.cpp
zmij/wire
9981eb9ea182fc49ef7243eed26b9d37be70a395
[ "Artistic-2.0" ]
5
2016-04-07T19:49:39.000Z
2021-08-03T05:24:11.000Z
src/wire/core/ssl_certificate.cpp
zmij/wire
9981eb9ea182fc49ef7243eed26b9d37be70a395
[ "Artistic-2.0" ]
null
null
null
src/wire/core/ssl_certificate.cpp
zmij/wire
9981eb9ea182fc49ef7243eed26b9d37be70a395
[ "Artistic-2.0" ]
1
2020-12-27T11:47:31.000Z
2020-12-27T11:47:31.000Z
/* * ssl_certificate.cpp * * Created on: May 24, 2017 * Author: zmij */ #include <wire/core/ssl_certificate.hpp> #include <openssl/x509.h> namespace wire { namespace core { ::std::string ssl_certificate::subject_name() const { char sn[256]; X509_NAME_oneline(X509_get_subject_name(native_), sn, 256...
15.538462
63
0.660891
zmij
af0d8d4c3ea38246bb2aba7d7c7e2bf2dfd18905
1,998
cpp
C++
Engine/Src/Common/GfInput/GfMouse.cpp
alapontgr/Engine
6be363d79b9fdaee813b196db12ae296a6ca8089
[ "MIT" ]
null
null
null
Engine/Src/Common/GfInput/GfMouse.cpp
alapontgr/Engine
6be363d79b9fdaee813b196db12ae296a6ca8089
[ "MIT" ]
null
null
null
Engine/Src/Common/GfInput/GfMouse.cpp
alapontgr/Engine
6be363d79b9fdaee813b196db12ae296a6ca8089
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // // Author: Sergio Alapont Granero (seralgrainf@gmail.com) // Date: 2019/04/16 // File: GfMouse.cpp // // Copyright (c) 2018 (See README.md) // //////////////////////////////////////////////////////////////////////////////// // Include...
25.615385
98
0.391892
alapontgr
af0e1fe2eabf992658b72ca9358b8017b715aab4
406
cpp
C++
C++/homeworksC++/countString.cpp
faber222/Aulas-Prog
989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb
[ "MIT" ]
null
null
null
C++/homeworksC++/countString.cpp
faber222/Aulas-Prog
989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb
[ "MIT" ]
null
null
null
C++/homeworksC++/countString.cpp
faber222/Aulas-Prog
989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main() { cout << "\x1b[2J"; cout << "\x1b[H"; string frase; getline(cin, frase); int x = 0; int y = 0; while (x != string::npos) { int z = frase.find_first_not_of(" \n\t.?:!;,", x); if (z == string::npos) break; y++; x = fr...
18.454545
54
0.514778
faber222
af239c5ad9557a5e132c1eb0bffd0d0ea19a32e8
10,984
cpp
C++
fast_dc.cpp
Borges3D/fast_dual_contouring
2dbe5c22900bf69e4ae3f4dcfb54e126e8a0f22f
[ "Unlicense" ]
136
2017-05-30T21:48:39.000Z
2022-03-11T20:47:54.000Z
fast_dc.cpp
Borges3D/fast_dual_contouring
2dbe5c22900bf69e4ae3f4dcfb54e126e8a0f22f
[ "Unlicense" ]
1
2019-09-17T09:12:32.000Z
2019-09-19T23:47:11.000Z
fast_dc.cpp
Borges3D/fast_dual_contouring
2dbe5c22900bf69e4ae3f4dcfb54e126e8a0f22f
[ "Unlicense" ]
19
2017-06-01T00:59:59.000Z
2021-01-25T22:45:53.000Z
// // Written by Nick Gildea (2017) // Public Domain // #include "fast_dc.h" #include "ng_mesh_simplify.h" #include "qef_simd.h" #include <glm/glm.hpp> #include <stdint.h> // ---------------------------------------------------------------------------- // TODO the winding field could be packed into the normal vec a...
24.794582
99
0.569829
Borges3D
af2ab6fd45d426f4a39cbcd17dd10fe5baecc967
4,985
cpp
C++
12/passage_pathing.t.cpp
ComicSansMS/AdventOfCode2021
60902d14c356c3375266703e85aca991241afc84
[ "Unlicense" ]
null
null
null
12/passage_pathing.t.cpp
ComicSansMS/AdventOfCode2021
60902d14c356c3375266703e85aca991241afc84
[ "Unlicense" ]
null
null
null
12/passage_pathing.t.cpp
ComicSansMS/AdventOfCode2021
60902d14c356c3375266703e85aca991241afc84
[ "Unlicense" ]
null
null
null
#include <passage_pathing.hpp> #include <catch.hpp> #include <sstream> TEST_CASE("Passage Pathing") { char const sample_input1[] = "start-A" "\n" "start-b" "\n" "A-c" "\n" "A-b" "\n" ...
44.115044
99
0.408225
ComicSansMS
af2ed4b1e1c502fe3ec94638e47e5a5fb24c372b
975
cpp
C++
Framework/PathUtils.cpp
jerryrox/RenkoSDLFramework
0db6948c067b101a3702128e61d601dfe879aba1
[ "MIT" ]
null
null
null
Framework/PathUtils.cpp
jerryrox/RenkoSDLFramework
0db6948c067b101a3702128e61d601dfe879aba1
[ "MIT" ]
null
null
null
Framework/PathUtils.cpp
jerryrox/RenkoSDLFramework
0db6948c067b101a3702128e61d601dfe879aba1
[ "MIT" ]
null
null
null
#include "PathUtils.h" std::string PathUtils::Combine(std::string* x, std::string* y) { if (x == 0 || y == 0) return ""; if (x->size() == 0) return std::string(*y); if (y->size() == 0) return std::string(*x); for (int i = (int)x->size() - 1; i >= 0; i--) { if (x->at(i) != '\\') break; x->erase(x->beg...
20.744681
65
0.471795
jerryrox
af2f1ff3777e823efa7240711d1032d064055d49
48,883
cpp
C++
src/QtTasks/Items/VcfScheduler.cpp
Vladimir-Lin/QtTasks
2150f149509678f012afa05cd7fb7d4acbfdbc9d
[ "MIT" ]
null
null
null
src/QtTasks/Items/VcfScheduler.cpp
Vladimir-Lin/QtTasks
2150f149509678f012afa05cd7fb7d4acbfdbc9d
[ "MIT" ]
null
null
null
src/QtTasks/Items/VcfScheduler.cpp
Vladimir-Lin/QtTasks
2150f149509678f012afa05cd7fb7d4acbfdbc9d
[ "MIT" ]
null
null
null
#include <qttasks.h> N::VcfScheduler:: VcfScheduler ( VcfHeadParaments ) : VcfCanvas ( parent , item , p ) , Thread ( ) , TimeBar ( NULL ) , Section ( NULL ) , TimeBlock ( ...
45.856473
85
0.336804
Vladimir-Lin
af443f51991c44be47cd78d86d492fb86c26470a
1,698
cpp
C++
test/posix/start.cpp
malachi-iot/ATCommander
a261ca2f62e3ae2a224b43127cb846413555a01b
[ "MIT" ]
6
2017-07-08T07:50:16.000Z
2021-01-24T00:08:57.000Z
test/posix/start.cpp
malachi-iot/ATCommander
a261ca2f62e3ae2a224b43127cb846413555a01b
[ "MIT" ]
null
null
null
test/posix/start.cpp
malachi-iot/ATCommander
a261ca2f62e3ae2a224b43127cb846413555a01b
[ "MIT" ]
5
2017-04-05T06:15:14.000Z
2021-01-24T22:45:26.000Z
#include "catch.hpp" #include <atcommander.h> //int fakeStream = 0; //ATCommander<int> atc(fakeStream, fakeStream); /* template <class ...TRef> ATCommander::command_helper2(TRef...dummy) -> ATCommander::command_helper2<dummy...>; */ struct FakeCommand { static constexpr char CMD = 'V'; }; static void fa...
26.952381
101
0.690224
malachi-iot
af4a847f640ad035e2c633531416c6660b1e3902
470
hpp
C++
esp32m/include/esp32m/log/uart.hpp
esp32m/core
94181c07634c09981e1775886dc49fa6fb703357
[ "MIT" ]
2
2021-08-04T15:40:13.000Z
2021-09-27T08:13:33.000Z
esp32m/include/esp32m/log/uart.hpp
esp32m/core
94181c07634c09981e1775886dc49fa6fb703357
[ "MIT" ]
null
null
null
esp32m/include/esp32m/log/uart.hpp
esp32m/core
94181c07634c09981e1775886dc49fa6fb703357
[ "MIT" ]
null
null
null
#ifdef ARDUINO # pragma once # include "esp32m/logging.hpp" namespace esp32m { namespace log { /** * Sends output to the specified UART */ class Uart : public FormattingAppender { public: Uart(const Uart &) = delete; Uart(uint8_t num = 0); private: ui...
18.8
48
0.578723
esp32m
af4b4147177aa78bb3b3323ee5223607970b5a7b
1,775
cpp
C++
lib/Parser/DefaultParser.cpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
80
2015-02-19T21:38:57.000Z
2016-05-25T06:53:12.000Z
lib/Parser/DefaultParser.cpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
8
2015-02-20T09:47:20.000Z
2015-11-13T07:49:17.000Z
lib/Parser/DefaultParser.cpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
6
2015-02-20T11:26:19.000Z
2016-04-13T14:30:39.000Z
#include <cassert> #include <cstdio> #include <cstdlib> #include <string> #include <locic/Frontend/DiagnosticReceiver.hpp> #include <locic/Parser/DefaultParser.hpp> #include <locic/Parser/NamespaceParser.hpp> #include <locic/Parser/TokenReader.hpp> #include <locic/Support/ErrorHandling.hpp> #include <locic/Support/Str...
27.734375
106
0.701408
scross99
af4cfd01136e6e5f14abf06614bbf5cee9453eaf
5,331
cc
C++
oss-internship-2020/libtiff/wrapper/func.cc
oshogbo/sandboxed-api
8e82b900f4d873219b3abfa2fd06ecbd416edefd
[ "Apache-2.0" ]
1
2022-02-10T10:38:30.000Z
2022-02-10T10:38:30.000Z
oss-internship-2020/libtiff/wrapper/func.cc
oshogbo/sandboxed-api
8e82b900f4d873219b3abfa2fd06ecbd416edefd
[ "Apache-2.0" ]
null
null
null
oss-internship-2020/libtiff/wrapper/func.cc
oshogbo/sandboxed-api
8e82b900f4d873219b3abfa2fd06ecbd416edefd
[ "Apache-2.0" ]
null
null
null
// 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 ...
32.506098
80
0.695554
oshogbo
af4e3e483ceb39b807fb4bf217016e31b47750b0
294
cpp
C++
Practice/rodion.cpp
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/rodion.cpp
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
Practice/rodion.cpp
ashishjayamohan/competitive-programming
05c5c560c2c2eb36121c52693b8c7d084f435f9e
[ "MIT" ]
null
null
null
#include <iostream> #include<string> using namespace std; int main() { int n,d; string s; cin>>n>>d; if(d==10&&n<2)cout<<"-1"; else if(d==10&&n>=2){ for(int i=0;i<n-1;i++){ s+=1+'0'; } s+=0+'0'; cout<<s; } else{ for(int i=0;i<n;i++){ s+= d+'0'; } cout<<s;} return 0; }
12.25
26
0.493197
ashishjayamohan
af578f63f432c682abcfdf89222a303ad70bb6c8
4,394
cpp
C++
SuperRes.cpp
pl2526/PSCAcoustic
eaf127f0bd6aa9bdf4a051b4390966e86fdf6751
[ "MIT" ]
null
null
null
SuperRes.cpp
pl2526/PSCAcoustic
eaf127f0bd6aa9bdf4a051b4390966e86fdf6751
[ "MIT" ]
null
null
null
SuperRes.cpp
pl2526/PSCAcoustic
eaf127f0bd6aa9bdf4a051b4390966e86fdf6751
[ "MIT" ]
null
null
null
#ifndef SR_CPP #define SR_CPP /* * MAIN.h * PSC * * Created by Pierre-David Letourneau on 3/6/11. * Copyright 2011 Stanford University. All rights reserved. * * Overstructure. * * Copyright 2014 Pierre-David Letourneau * * Permission is hereby granted, free of charge, to any person obtaining a copy ...
27.810127
130
0.662039
pl2526
af67601c27ba318738849ff3e59339187e1ec42d
2,708
cpp
C++
src/ComDemo.17/MfcCli/MfcCli.cpp
jimbeveridge/multithreading
b092dde13968f91dfb9b86e3d7e760a50f799a96
[ "MIT" ]
2
2021-11-23T10:43:45.000Z
2022-01-03T14:51:32.000Z
src/ComDemo.17/MfcCli/MfcCli.cpp
jimbeveridge/multithreading
b092dde13968f91dfb9b86e3d7e760a50f799a96
[ "MIT" ]
null
null
null
src/ComDemo.17/MfcCli/MfcCli.cpp
jimbeveridge/multithreading
b092dde13968f91dfb9b86e3d7e760a50f799a96
[ "MIT" ]
1
2020-10-28T15:11:55.000Z
2020-10-28T15:11:55.000Z
/* * MfcCli.cpp * * Sample code for "Multithreading Applications in Win32" * This is from Chapter 17 * * Communicates to a FreeThreaded COM Object */ #include "stdafx.h" #include "MfcCli.h" #include "CliDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif /////////////////////////////////////////////////////////...
26.54902
77
0.643648
jimbeveridge
af690478fc75b49643d34dc44ef8c1196005e1d8
1,418
cpp
C++
Variables/Variables/Main.cpp
matt360/ModernCpp
42ab42447d22c9e92f3da12dcb8ac16794668879
[ "MIT" ]
null
null
null
Variables/Variables/Main.cpp
matt360/ModernCpp
42ab42447d22c9e92f3da12dcb8ac16794668879
[ "MIT" ]
16
2018-03-01T11:18:55.000Z
2018-07-01T17:17:32.000Z
Variables/Variables/Main.cpp
matzar/ModernCpp
42ab42447d22c9e92f3da12dcb8ac16794668879
[ "MIT" ]
null
null
null
// Variables // Int - integer - 4 bytes (Ultimatelly it's the compilers choice to tell you how big an integer is going to be) // 1 byte - 8 bits of data // 4 bytes - 32 bits of data // int (signed) - 1 bit is for the sign, to know if the varaible is positive or negative. That leaves 31 bits for the number. // Each bi...
37.315789
168
0.670663
matt360
af6dc6769a5505f80d0328fdf81b5efe349da6e5
2,623
cpp
C++
tomasulo_simulator/simulator/instructions.cpp
Billijk/Tomasulo-simulator
dc2993d8129d4d01e1459671423273f9b68b4de9
[ "MIT" ]
null
null
null
tomasulo_simulator/simulator/instructions.cpp
Billijk/Tomasulo-simulator
dc2993d8129d4d01e1459671423273f9b68b4de9
[ "MIT" ]
null
null
null
tomasulo_simulator/simulator/instructions.cpp
Billijk/Tomasulo-simulator
dc2993d8129d4d01e1459671423273f9b68b4de9
[ "MIT" ]
null
null
null
#include "instructions.h" #include <vector> #include <iostream> using namespace std; int Instruction::needed_cycle(InstrType type) { switch (type) { case ADDD: case SUBD: case LD: case ST: return 2; case MULD: return 10; case DIVD: ...
35.445946
106
0.547083
Billijk
af6eec3ba000438cfe6cec109031e7be13e6eed1
1,242
cxx
C++
617_Merge_Two_Binary_Trees.cxx
KerouichaReda/leetcode_submission
f4a1c668fcb962e5ff92285d6bfc41b7573b9dc0
[ "MIT" ]
1
2020-12-05T06:06:28.000Z
2020-12-05T06:06:28.000Z
617_Merge_Two_Binary_Trees.cxx
KerouichaReda/leetcode_submission
f4a1c668fcb962e5ff92285d6bfc41b7573b9dc0
[ "MIT" ]
null
null
null
617_Merge_Two_Binary_Trees.cxx
KerouichaReda/leetcode_submission
f4a1c668fcb962e5ff92285d6bfc41b7573b9dc0
[ "MIT" ]
null
null
null
/* * 617_Merge_Two_Binary_Trees.cxx * * Copyright 2020 RedaKerouicha <redakerouicha@localhost> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (...
27.6
71
0.699678
KerouichaReda
af71273c470fb287c6107f0ffa5996eb0314e441
6,365
cpp
C++
Source/RenderAPIs/VulkanAPI/VulkanCommandPoolManager.cpp
Cube219/CubeEngine
b54a7373be96333aa38fdf49ea32272c28c42a4b
[ "MIT" ]
2
2017-09-25T12:43:02.000Z
2018-04-07T06:50:13.000Z
Source/RenderAPIs/VulkanAPI/VulkanCommandPoolManager.cpp
Cube219/CubeEngine
b54a7373be96333aa38fdf49ea32272c28c42a4b
[ "MIT" ]
null
null
null
Source/RenderAPIs/VulkanAPI/VulkanCommandPoolManager.cpp
Cube219/CubeEngine
b54a7373be96333aa38fdf49ea32272c28c42a4b
[ "MIT" ]
null
null
null
#include "VulkanCommandPoolManager.h" #include "Interface/CommandListVk.h" #include "VulkanDebug.h" #include "VulkanDevice.h" #include "VulkanQueueManager.h" #include "Core/Allocator/FrameAllocator.h" #include "Core/Assertion.h" namespace cube { namespace rapi { void VulkanCommandPoolManager::Initial...
40.541401
129
0.602514
Cube219
af736021af26254326b305752302bf492cb9d5a0
1,161
hpp
C++
include/mizuiro/image/access/data.hpp
cpreh/mizuiro
5ab15bde4e72e3a4978c034b8ff5700352932485
[ "BSL-1.0" ]
1
2015-08-22T04:19:39.000Z
2015-08-22T04:19:39.000Z
include/mizuiro/image/access/data.hpp
freundlich/mizuiro
5ab15bde4e72e3a4978c034b8ff5700352932485
[ "BSL-1.0" ]
null
null
null
include/mizuiro/image/access/data.hpp
freundlich/mizuiro
5ab15bde4e72e3a4978c034b8ff5700352932485
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef MIZUIRO_IMAGE_ACCESS_DATA_HPP_INCLUDED #define MIZUIRO_IMAGE_ACCESS_DATA_HPP_INCLUDED #inc...
32.25
93
0.734711
cpreh
af7b48cf46176a892f303fbcb2392c48faefb026
4,679
hpp
C++
three/core/math.hpp
Lecrapouille/three_cpp
5c3b4f4ca02bda6af232898c17e62caf8f887aa0
[ "MIT" ]
null
null
null
three/core/math.hpp
Lecrapouille/three_cpp
5c3b4f4ca02bda6af232898c17e62caf8f887aa0
[ "MIT" ]
null
null
null
three/core/math.hpp
Lecrapouille/three_cpp
5c3b4f4ca02bda6af232898c17e62caf8f887aa0
[ "MIT" ]
null
null
null
#ifndef THREE_MATH_HPP #define THREE_MATH_HPP #include <three/common.hpp> #include <cmath> #include <random> namespace three { namespace Math { inline const float PI() { return 3.1415926535897932384f; } //std::atan(1.f)/4; inline const float LN2() { return 0.6931471805599453094f; } inline const float I...
26.585227
116
0.582603
Lecrapouille
5030ffd09598fddb1847be4043abf398d4fdba1f
164
cpp
C++
RTHeightfield/TessellationEvaluationShader.cpp
AndreSilvs/RTMasterThesis
9eb6c34dbe5acb10ab818c2d34b16d786db11030
[ "MIT" ]
1
2020-06-18T19:21:01.000Z
2020-06-18T19:21:01.000Z
RTHeightfieldScalable/TessellationEvaluationShader.cpp
AndreSilvs/RTMasterThesis
9eb6c34dbe5acb10ab818c2d34b16d786db11030
[ "MIT" ]
null
null
null
RTHeightfieldScalable/TessellationEvaluationShader.cpp
AndreSilvs/RTMasterThesis
9eb6c34dbe5acb10ab818c2d34b16d786db11030
[ "MIT" ]
null
null
null
#include "TessellationEvaluationShader.h" GLuint TessellationEvaluationShader::generateShaderId() { return glCreateShader( GL_TESS_EVALUATION_SHADER ); }
27.333333
58
0.79878
AndreSilvs
5033b261bfe7bb409e99900de7c841f9af9ef73a
2,286
cpp
C++
WordPattern.cpp
ShreyaPrasad1209/Hash-Map-LeetCode-Questions
25e360079582db6a7f5fcdeaf889632f5e550e3b
[ "MIT" ]
2
2020-09-23T11:27:14.000Z
2021-10-30T06:46:08.000Z
WordPattern.cpp
ShreyaPrasad1209/Hash-Map-LeetCode-Questions
25e360079582db6a7f5fcdeaf889632f5e550e3b
[ "MIT" ]
null
null
null
WordPattern.cpp
ShreyaPrasad1209/Hash-Map-LeetCode-Questions
25e360079582db6a7f5fcdeaf889632f5e550e3b
[ "MIT" ]
1
2021-07-08T15:45:25.000Z
2021-07-08T15:45:25.000Z
class Solution { public: bool wordPattern(string pattern, string str) { int i = 0, j = 0, len = pattern.size(), n = str.size(); unordered_map<char, string> map1; unordered_map<string, char> map2; string word = ""; while(j < len) { if (i > n) retur...
31.75
127
0.485564
ShreyaPrasad1209
50365d5af40e1dba322fb42d558f792c15cd2687
4,007
hh
C++
dune/ax1/common/ax1_parallelhelper.hh
pederpansen/dune-ax1
152153824d95755a55bdd4fba80686863e928196
[ "BSD-3-Clause" ]
null
null
null
dune/ax1/common/ax1_parallelhelper.hh
pederpansen/dune-ax1
152153824d95755a55bdd4fba80686863e928196
[ "BSD-3-Clause" ]
null
null
null
dune/ax1/common/ax1_parallelhelper.hh
pederpansen/dune-ax1
152153824d95755a55bdd4fba80686863e928196
[ "BSD-3-Clause" ]
null
null
null
/* * ax1_parallelhelper.hh * * Created on: May 5, 2013 * Author: jpods */ #ifndef DUNE_AX1_PARALLELHELPER_HH #define DUNE_AX1_PARALLELHELPER_HH #include <dune/common/forloop.hh> #if HAVE_MPI namespace Dune { template<typename... Elements> struct MPITraits<std::tuple<Elements...> > { typedef s...
22.511236
91
0.585475
pederpansen
50370ce07dbd901d2c7a167f7d68df222fff078f
8,514
cxx
C++
Legolas/BlockMatrix/tst/Poisson2D/Poisson2D.cxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/BlockMatrix/tst/Poisson2D/Poisson2D.cxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/BlockMatrix/tst/Poisson2D/Poisson2D.cxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
1
2021-02-11T14:43:25.000Z
2021-02-11T14:43:25.000Z
# include <cstdlib> # include <cmath> # include <iostream> # include "UTILITES.hxx" # include "Legolas/Vector/Vector.hxx" # include "XYLightBandedBlockMatrix.hxx" # include "XYBandedBlockMatrix.hxx" # include "XYBandedPolyBlockMatrix.hxx" # include "XYDiagonalBlockMatrix.hxx" #include "X86Timer.hxx" #include "So...
24.11898
95
0.608997
LaurentPlagne
5044f0f18d3575e444997a51ed30e643be858970
4,653
cpp
C++
Src/Game.cpp
joshua-barnett/SnakeGame
d9fb55c869d7f301a681aaa9ec51686311ee858b
[ "MIT" ]
13
2019-08-08T08:47:36.000Z
2021-12-24T17:11:51.000Z
Src/Game.cpp
joshua-barnett/SnakeGame
d9fb55c869d7f301a681aaa9ec51686311ee858b
[ "MIT" ]
null
null
null
Src/Game.cpp
joshua-barnett/SnakeGame
d9fb55c869d7f301a681aaa9ec51686311ee858b
[ "MIT" ]
3
2019-08-09T10:44:45.000Z
2021-07-23T13:18:12.000Z
#include "Game.h" #include "Engine/Logger.h" #include "Components/Components.h" #include "Factories.h" #include "Constants.h" #include "PlayerSnake.h" #include "Engine/Color.h" #include "CollisionHandler.h" #include "CustomEvents.h" #include "PlayerPickups.h" #include "GameText.h" SDL_Renderer* Game::renderer = nullpt...
21.541667
98
0.688803
joshua-barnett
504904ec6fd92c850c467163b0354ab7c39897e9
5,164
inl
C++
src/bookkeeping.define.inl
cristiarg/fmi2AllocGuard
6b7f55783f5b42620c097a6e7f8b23585a515d24
[ "BSD-2-Clause" ]
3
2019-01-18T10:37:59.000Z
2019-09-06T21:52:58.000Z
src/bookkeeping.define.inl
cristiarg/fmi2AllocGuard
6b7f55783f5b42620c097a6e7f8b23585a515d24
[ "BSD-2-Clause" ]
null
null
null
src/bookkeeping.define.inl
cristiarg/fmi2AllocGuard
6b7f55783f5b42620c097a6e7f8b23585a515d24
[ "BSD-2-Clause" ]
null
null
null
void* fmi2_calloc1 ( size_t _num , size_t _size ) { void* const p = calloc( _num , _size ); const bool add_res = avl_add(&fmi2_guarded_bookkeeping[ 1 ].pointer_keeper, p, func_avl_data_comp_lt); if( add_res ) { return p; } else { free( p ); return NULL; } } void* fmi2_calloc2 ( size_t _num , size...
24.473934
133
0.668861
cristiarg
504e6433bd3dcdea0c7676ff371b3d879386485f
2,194
cpp
C++
mordor/examples/echoserver.cpp
cmpxchg16/mordor
58e62ab71d98af165fadd361bd5607c87ce34f46
[ "BSD-3-Clause" ]
1
2017-07-22T09:34:18.000Z
2017-07-22T09:34:18.000Z
mordor/examples/echoserver.cpp
cmpxchg16/mordor
58e62ab71d98af165fadd361bd5607c87ce34f46
[ "BSD-3-Clause" ]
null
null
null
mordor/examples/echoserver.cpp
cmpxchg16/mordor
58e62ab71d98af165fadd361bd5607c87ce34f46
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2009 - Mozy, Inc. #include "mordor/predef.h" #include <boost/bind.hpp> #include <boost/thread.hpp> #include "mordor/config.h" #include "mordor/daemon.h" #include "mordor/iomanager.h" #include "mordor/main.h" #include "mordor/socket.h" #include "mordor/streams/socket.h" #include "mordor/streams/trans...
25.811765
84
0.666819
cmpxchg16
50509f0c34a2453dc6fea5a13cffcc2af8318054
1,112
cpp
C++
GameOfChess/src/view/BoardView.cpp
My-Cpp-projects/GameOfChess
58ea06fc30ef9a9b7ddc33293a392908a24e55ac
[ "MIT" ]
1
2021-09-13T15:57:01.000Z
2021-09-13T15:57:01.000Z
GameOfChess/src/view/BoardView.cpp
My-Cpp-projects/GameOfChess
58ea06fc30ef9a9b7ddc33293a392908a24e55ac
[ "MIT" ]
null
null
null
GameOfChess/src/view/BoardView.cpp
My-Cpp-projects/GameOfChess
58ea06fc30ef9a9b7ddc33293a392908a24e55ac
[ "MIT" ]
null
null
null
#include "view/BoardView.h" #include "util/Texture.h" BoardView::BoardView(BoardData& boardData, SDL_Renderer& renderer) : m_boardData(boardData) , m_renderer(renderer) { m_boardTexture = std::make_unique<Texture>(common::ImageType::PNG, "Assets/Chessboard.png", renderer); m_chessPieceView = std::make_unique...
26.47619
130
0.705935
My-Cpp-projects