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
df6b1f84a9346db7a6c3d3caece6d0db4c772c05
6,207
cpp
C++
SlackLogViewer/SlackLogViewer/ReplyListView.cpp
thayakawa-gh/SlackLogViewer
61181a2038268f6da4482526ca9854647fda49c7
[ "MIT" ]
13
2020-10-08T05:18:28.000Z
2022-03-28T04:24:58.000Z
SlackLogViewer/SlackLogViewer/ReplyListView.cpp
thayakawa-gh/SlackLogViewer
61181a2038268f6da4482526ca9854647fda49c7
[ "MIT" ]
1
2021-10-08T00:48:50.000Z
2021-10-08T02:40:01.000Z
SlackLogViewer/SlackLogViewer/ReplyListView.cpp
thayakawa-gh/SlackLogViewer
61181a2038268f6da4482526ca9854647fda49c7
[ "MIT" ]
1
2021-03-11T06:42:17.000Z
2021-03-11T06:42:17.000Z
#include <QMouseEvent> #include <QPainter> #include <QJsonDocument> #include "ReplyListView.h" #include "GlobalVariables.h" #include <QScrollBar> bool ReplyListView::ScrollToRow(int row) { ReplyListModel* model = static_cast<ReplyListModel*>(this->model()); if (row >= model->GetTrueRowCount()) return false; while (...
34.104396
140
0.719027
thayakawa-gh
df78d1e57bed21abe7d43c5c9e9164f817ac4de3
3,391
cpp
C++
tests/InterpreterTests/TextInterpreterUnitTests.cpp
pptaszni/UnitTestingCourse
66b694d88bc8c962545b2c07ebe600d5a9f83c33
[ "MIT" ]
null
null
null
tests/InterpreterTests/TextInterpreterUnitTests.cpp
pptaszni/UnitTestingCourse
66b694d88bc8c962545b2c07ebe600d5a9f83c33
[ "MIT" ]
null
null
null
tests/InterpreterTests/TextInterpreterUnitTests.cpp
pptaszni/UnitTestingCourse
66b694d88bc8c962545b2c07ebe600d5a9f83c33
[ "MIT" ]
null
null
null
/* * MIT License * * Copyright (c) 2020 Pawel Ptasznik * * 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,...
31.398148
87
0.704217
pptaszni
df79f987b407089b825c145134511c49099a976b
1,913
hh
C++
src/Hydro/PressurePolicy.hh
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/Hydro/PressurePolicy.hh
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/Hydro/PressurePolicy.hh
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
//---------------------------------Spheral++----------------------------------// // PressurePolicy -- An implementation of UpdatePolicyBase specialized // for the updating the dependent pressure state. // // Created by JMO, Wed Sep 15 10:47:37 2004 //---------------------------------------------------------------------...
31.360656
95
0.631992
jmikeowen
df8372abf994ab6bbd914688338ee0cf6b31191a
2,420
hpp
C++
inc/AListenSocket.hpp
izissise/network
7267690fdaa379331b130e5bdd7ee87649c240b2
[ "MIT" ]
1
2015-05-06T09:21:07.000Z
2015-05-06T09:21:07.000Z
inc/AListenSocket.hpp
izissise/network
7267690fdaa379331b130e5bdd7ee87649c240b2
[ "MIT" ]
1
2015-06-14T17:23:11.000Z
2015-06-15T09:41:16.000Z
inc/AListenSocket.hpp
izissise/network
7267690fdaa379331b130e5bdd7ee87649c240b2
[ "MIT" ]
null
null
null
#ifndef INETWORKLISTENSOCKET_HPP # define INETWORKLISTENSOCKET_HPP # include <string> # include <memory> # include <functional> # include "Identity.hpp" # include "ASocket.hpp" # include "ABasicSocket.hpp" namespace Network { class AListenSocket : public std::enable_shared_from_this<AListenSocket>, virtual public A...
31.842105
164
0.709091
izissise
df899c6c938a424e3c28a407f6dc7c645b7e0fab
6,703
cpp
C++
synth/software/Mentor/Config.cpp
kallikak/Mentor
8b9e26f562c5f9a9231840dd474e055d17e5deca
[ "MIT" ]
null
null
null
synth/software/Mentor/Config.cpp
kallikak/Mentor
8b9e26f562c5f9a9231840dd474e055d17e5deca
[ "MIT" ]
null
null
null
synth/software/Mentor/Config.cpp
kallikak/Mentor
8b9e26f562c5f9a9231840dd474e055d17e5deca
[ "MIT" ]
null
null
null
#include "Config.h" #include "LCD.h" mentor_config defaultConfig = { {63, RANGE8FT, POLY8, 0}, {127, 0, 0, 0}, {0, 0, 127, 20}, {TRIANGLE, 0, 0, 0}, {0, 127, 0, 64}, {0, 0, 0, 0}, "Default" }; mentor_config initConfig = { {63, RANGE8FT, POLY8, 0}, {127, 0, 0, 0}, {0, 0, 127, 0}, {TRIANGLE, 0, 0,...
21.977049
126
0.599135
kallikak
df8d0eef04741206607d276b1ddf4935ed425537
577
hpp
C++
src/game.hpp
SPC-Some-Polish-Coders/PopHead
2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81
[ "MIT" ]
117
2019-03-18T20:09:54.000Z
2022-03-27T22:40:52.000Z
src/game.hpp
SPC-Some-Polish-Coders/PopHead
2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81
[ "MIT" ]
443
2019-04-07T19:59:56.000Z
2020-05-23T12:25:28.000Z
src/game.hpp
SPC-Some-Polish-Coders/PopHead
2bce21b1a6b3d16a2ccecf0d15faeebf6a486c81
[ "MIT" ]
19
2019-03-20T19:57:34.000Z
2020-11-21T15:35:02.000Z
#pragma once #include "AI/aiManager.hpp" #include "Scenes/sceneManager.hpp" #include <SFML/Window/Window.hpp> #include <memory> namespace ph { class Game { public: Game(); ~Game(); void run(); static void close() { sIsRunning = false; } static void setNoFocusUpdate(bool flag) { sNoFocusUpdate = flag; } priva...
16.485714
67
0.724437
SPC-Some-Polish-Coders
df9362a026f33b6e108c239ef9be91cb347a7709
984
cpp
C++
libs/sdl_lib/libsdl.cpp
elivet/Nibbler
9e2e07d9e3fa3dc86a8e25a6db419359fa0e0e8a
[ "Apache-2.0" ]
null
null
null
libs/sdl_lib/libsdl.cpp
elivet/Nibbler
9e2e07d9e3fa3dc86a8e25a6db419359fa0e0e8a
[ "Apache-2.0" ]
null
null
null
libs/sdl_lib/libsdl.cpp
elivet/Nibbler
9e2e07d9e3fa3dc86a8e25a6db419359fa0e0e8a
[ "Apache-2.0" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* libsdl.cpp :+: :+: :+: ...
49.2
80
0.146341
elivet
df937416569dd6f10d2efc72980893ebbb679835
103
cpp
C++
Applications/Hello-Daft/src/main.cpp
DaftMat/Daft-Engine
e3d918b4b876d17abd889b9b6b13bd858a079538
[ "MIT" ]
1
2020-10-26T02:36:58.000Z
2020-10-26T02:36:58.000Z
Applications/Hello-Daft/src/main.cpp
DaftMat/Daft-Engine
e3d918b4b876d17abd889b9b6b13bd858a079538
[ "MIT" ]
6
2020-02-14T21:45:52.000Z
2020-09-23T17:58:58.000Z
Applications/Hello-Daft/src/main.cpp
DaftMat/Daft-Engine
e3d918b4b876d17abd889b9b6b13bd858a079538
[ "MIT" ]
null
null
null
#include "GLFWExample.hpp" int main() { daft::app::GLFWExample app; app.run(); return 0; }
14.714286
31
0.601942
DaftMat
df9461454eebe4f8b970031c601f297d04ce67f9
20,898
cpp
C++
POJ/27 - 29/poj2739v2_table.cpp
bilibiliShen/CodeBank
49a69b2b2c3603bf105140a9d924946ed3193457
[ "MIT" ]
1
2017-08-19T16:02:15.000Z
2017-08-19T16:02:15.000Z
POJ/27 - 29/poj2739v2_table.cpp
bilibiliShen/CodeBank
49a69b2b2c3603bf105140a9d924946ed3193457
[ "MIT" ]
null
null
null
POJ/27 - 29/poj2739v2_table.cpp
bilibiliShen/CodeBank
49a69b2b2c3603bf105140a9d924946ed3193457
[ "MIT" ]
1
2018-01-05T23:37:23.000Z
2018-01-05T23:37:23.000Z
#include<iostream> using namespace std; unsigned char b[10002]={ 0,0,1,1,0,2,0,1,1,0,1,1,1,1,0,1,0,2,1,1,0,0,0,2,1,0,1,0,1,1,1,2,0,0,0,0,2,1,0,1, 0,3,1,1,0,0,0,1,1,1,0,0,1,2,0,0,1,0,1,2,2,1,0,0,0,0,0,2,1,0,0,2,2,1,0,1,0,1,1,1, 0,0,0,3,1,0,0,0,1,1,2,0,0,0,0,1,0,2,1,0,2,2,1,1,0,0,0,1,0,2,0,0,2,1,0,0,0,0,0,2, 2,1,...
80.687259
83
0.483061
bilibiliShen
df9a02f1d476d5e487c42113eddfafbfc78dc2b6
546
cpp
C++
OverlordEngine/TextureData.cpp
Kair0z/StikBoldt-PC
5d978aa6b67e9f3a140136f2f0b766061e765c74
[ "MIT" ]
1
2018-11-28T12:30:13.000Z
2018-11-28T12:30:13.000Z
OverlordEngine/TextureData.cpp
Ruvah/Overlord-Editor
3193b4986b10edb0fa8fdbc493ee3b05fdea217d
[ "Apache-2.0" ]
null
null
null
OverlordEngine/TextureData.cpp
Ruvah/Overlord-Editor
3193b4986b10edb0fa8fdbc493ee3b05fdea217d
[ "Apache-2.0" ]
2
2019-12-28T12:34:51.000Z
2021-03-08T08:37:33.000Z
#include "stdafx.h" #include "TextureData.h" TextureData::TextureData(ID3D11Resource* pTexture, ID3D11ShaderResourceView* pTextureShaderResourceView): m_pTexture(pTexture), m_pTextureShaderResourceView(pTextureShaderResourceView) { auto tex2D = static_cast<ID3D11Texture2D*>(pTexture); D3D11_TEXTURE2D_DESC text2Dde...
26
105
0.811355
Kair0z
df9b2fe401e7f13760709abe0ce4d6b33ac05f68
975
cpp
C++
Machine Learning Project/Parallel.cpp
revolt3245/Machine-Learning-Project
52c0eda2abdd4f0406ca3689a3f4f8e621bccd73
[ "MIT" ]
null
null
null
Machine Learning Project/Parallel.cpp
revolt3245/Machine-Learning-Project
52c0eda2abdd4f0406ca3689a3f4f8e621bccd73
[ "MIT" ]
null
null
null
Machine Learning Project/Parallel.cpp
revolt3245/Machine-Learning-Project
52c0eda2abdd4f0406ca3689a3f4f8e621bccd73
[ "MIT" ]
null
null
null
#include "Parallel.h" Eigen::MatrixXd Parallel::forward(Eigen::MatrixXd panIn) { //Fork Mapping vector<Eigen::MatrixXd> Fork(0); Eigen::MatrixXd res = Eigen::MatrixXd::Zero(panIn.rows(), JoinMapping[0].cols()); for (auto& f : this->ForkMapping) { Fork.push_back(panIn * f); } for (auto i = 0; i < this->Layer...
18.396226
82
0.590769
revolt3245
df9caef8d24682f4236fe51a1c00524c9eb8e0ac
1,049
hpp
C++
include/crosssock/TCPSocket.hpp
Kolya28/crosssock
f46dcc56a26960bad7c16d4818913a6a532c62e8
[ "MIT" ]
1
2020-12-27T10:02:38.000Z
2020-12-27T10:02:38.000Z
include/crosssock/TCPSocket.hpp
Kolya28/crosssock
f46dcc56a26960bad7c16d4818913a6a532c62e8
[ "MIT" ]
null
null
null
include/crosssock/TCPSocket.hpp
Kolya28/crosssock
f46dcc56a26960bad7c16d4818913a6a532c62e8
[ "MIT" ]
null
null
null
#ifndef __TCPSOCKET_H__ #define __TCPSOCKET_H__ #include <chrono> #include <crosssock/Config.hpp> #include <crosssock/Socket.hpp> #include <crosssock/IPAddress.hpp> namespace crs { class CROSSSOCK_DLL TCPSocket : public Socket { public: typedef typename Socket::SocketHandle SocketHandle; ...
25.585366
113
0.645377
Kolya28
df9cc4fe9367296e880d25bf4abd537e3622dfd1
2,520
cpp
C++
src/anlogicBitParser.cpp
uis246/openFPGALoader
312b8d25659857301df17b4b4daa55a1fe3f23cb
[ "Apache-2.0" ]
505
2019-12-09T10:47:15.000Z
2022-03-31T09:04:10.000Z
src/anlogicBitParser.cpp
uis246/openFPGALoader
312b8d25659857301df17b4b4daa55a1fe3f23cb
[ "Apache-2.0" ]
203
2019-12-06T10:57:48.000Z
2022-03-31T17:57:08.000Z
src/anlogicBitParser.cpp
uis246/openFPGALoader
312b8d25659857301df17b4b4daa55a1fe3f23cb
[ "Apache-2.0" ]
106
2019-12-06T12:12:56.000Z
2022-03-31T10:38:11.000Z
// SPDX-License-Identifier: Apache-2.0 /* * Copyright (C) 2020 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> * Based on Miodrag Milanovic https://github.com/mmicko/prjtang/ */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <functional> #include <cctype> #incl...
20.826446
82
0.64246
uis246
dfa43a17bdd03309bf9340dbd6d4fe16c15ca969
2,457
cpp
C++
shared/source/os_interface/linux/cache_info.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
shared/source/os_interface/linux/cache_info.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
shared/source/os_interface/linux/cache_info.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
/* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/os_interface/linux/cache_info.h" #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/helpers/common_types.h" #include "shared/source/helpers/debug_helpers.h" namespace NEO...
32.76
101
0.704111
mattcarter2017
dfaae9e95a0b05cd15389c68e0d5fc556694a867
21,863
cpp
C++
src/CPhpCounter.cpp
dutchedge/Unified_Code_Count
8c2d12942595dc11f13f36e2282e3821707b8ffd
[ "DOC" ]
12
2015-06-08T16:19:33.000Z
2020-02-11T13:40:58.000Z
src/CPhpCounter.cpp
dutchedge/Unified_Code_Count
8c2d12942595dc11f13f36e2282e3821707b8ffd
[ "DOC" ]
null
null
null
src/CPhpCounter.cpp
dutchedge/Unified_Code_Count
8c2d12942595dc11f13f36e2282e3821707b8ffd
[ "DOC" ]
6
2016-09-09T11:55:19.000Z
2020-07-08T16:04:04.000Z
//! Code counter class methods for the PHP language. /*! * \file CPhpCounter.cpp * * This file contains the code counter class methods for the PHP language. */ #include "CPhpCounter.h" /*! * Constructs a CPhpCounter object. */ CPhpCounter::CPhpCounter() { classtype = PHP; language_name = "PHP"; file_extension.pus...
29.745578
133
0.649225
dutchedge
dfab58aaf4fb966676ac829669eb137e395f6ea8
6,455
cpp
C++
Ko-Fi Engine/Source/PanelAssets.cpp
Chamfer-Studios/Ko-Fi-Engine
cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e
[ "MIT" ]
2
2022-02-26T23:35:53.000Z
2022-03-04T16:25:18.000Z
Ko-Fi Engine/Source/PanelAssets.cpp
Chamfer-Studios/Ko-Fi-Engine
cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e
[ "MIT" ]
2
2022-02-23T09:41:09.000Z
2022-03-08T08:46:21.000Z
Ko-Fi Engine/Source/PanelAssets.cpp
Chamfer-Studios/Ko-Fi-Engine
cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e
[ "MIT" ]
1
2022-03-03T18:41:32.000Z
2022-03-03T18:41:32.000Z
#include "PanelAssets.h" #include "M_FileSystem.h" #include "PanelTextEditor.h" #include "Engine.h" #include "FSDefs.h" #include <imgui.h> #include "M_Editor.h" #include "glew.h" #include <gl/GL.h> #include <gl/GLU.h> PanelAssets::PanelAssets(M_Editor* editor) : currentDir(assetsDir), fileIcon(ICONS_DIR + std::string(...
26.895833
180
0.670488
Chamfer-Studios
dfabf11f4cdde0b5e82e03604196b467b5ae14a4
2,528
hpp
C++
src/atlas/graphics/Mesh.hpp
Groutcho/atlas
b69b7759be0361ffdcbbba64501e07feb79143be
[ "MIT" ]
5
2018-12-13T03:41:12.000Z
2020-08-27T04:45:11.000Z
src/atlas/graphics/Mesh.hpp
Groutcho/atlas
b69b7759be0361ffdcbbba64501e07feb79143be
[ "MIT" ]
1
2020-09-08T07:26:59.000Z
2020-09-08T09:21:44.000Z
src/atlas/graphics/Mesh.hpp
Groutcho/atlas
b69b7759be0361ffdcbbba64501e07feb79143be
[ "MIT" ]
5
2018-12-20T10:31:09.000Z
2021-09-07T07:38:49.000Z
#ifndef ATLAS_GRAPHICS_MESH_HPP #define ATLAS_GRAPHICS_MESH_HPP #include "AtlasGraphics.hpp" #include "Node.hpp" #include "Drawable.hpp" #include "Renderer.hpp" #include "Shader.hpp" #include "Vertex.hpp" #include "Material.hpp" #include "Image.hpp" #include "atlas/core/Ellipsoid.hpp" using namespace atlas::core; n...
32.410256
141
0.615902
Groutcho
dface710795e3a5f36d1d75638a36c64de386994
2,079
cpp
C++
example/download_history/main.cpp
NewYaroslav/binary-cpp-api
1bc32ca0e66a0b1cb892be666dda9a695920b0a7
[ "MIT" ]
8
2019-09-06T04:47:55.000Z
2022-03-20T12:16:49.000Z
example/download_history/main.cpp
NewYaroslav/binary-cpp-api
1bc32ca0e66a0b1cb892be666dda9a695920b0a7
[ "MIT" ]
5
2018-11-29T17:30:46.000Z
2019-01-27T19:47:24.000Z
example/download_history/main.cpp
NewYaroslav/binary-cpp-api
1bc32ca0e66a0b1cb892be666dda9a695920b0a7
[ "MIT" ]
9
2019-09-05T15:12:08.000Z
2022-01-28T12:28:38.000Z
#include <iostream> #include <xtime.hpp> #include "BinaryAPI.hpp" #include "BinaryApiEasy.hpp" using namespace std; int main() { BinaryAPI apiBinary; apiBinary.set_use_log(true); std::vector<std::string> symbols; std::vector<double> candles_close; std::vector<unsigned long long...
46.2
185
0.579125
NewYaroslav
dfb0e41d85284d1a95f68001e748920a8b76db6f
11,614
cpp
C++
lib/cocos2d-x/external/luaproxy/ui/UIUtil.cpp
sc1987910/quick-cocos2d-x
ed37e34fc94b3f9bd9bacefd776ada169e1072a1
[ "MIT" ]
1
2015-11-05T15:58:37.000Z
2015-11-05T15:58:37.000Z
lib/cocos2d-x/external/luaproxy/ui/UIUtil.cpp
takaaptech/quick-cocos2d-x
9173dee5ad5f844d8d5ab77e27aa04430140f983
[ "MIT" ]
null
null
null
lib/cocos2d-x/external/luaproxy/ui/UIUtil.cpp
takaaptech/quick-cocos2d-x
9173dee5ad5f844d8d5ab77e27aa04430140f983
[ "MIT" ]
1
2021-06-21T12:37:52.000Z
2021-06-21T12:37:52.000Z
#include "UIUtil.h" CCRenderTexture * UIUtil::createStroke(CCLabelTTF *label, float size, ccColor3B color){ if(!label || size <= 0){ return NULL;} float x = label->getTexture()->getContentSize().width+size*2; float y = label->getTexture()->getContentSize().height+size*2; CCRenderTexture *rt = CCRenderTexture::crea...
31.99449
109
0.690374
sc1987910
dfba0a3fe7ba409caac15cb878a7863d74c82dfb
2,625
cpp
C++
samples/snippets/cpp/VS_Snippets_IIS/IIS7/IAppHostAdminLibrary/cpp/IAppHostElementSetMetadata.cpp
mitchelsellers/iis-docs
376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429
[ "CC-BY-4.0", "MIT" ]
90
2017-06-13T19:56:04.000Z
2022-03-15T16:42:09.000Z
samples/snippets/cpp/VS_Snippets_IIS/IIS7/IAppHostAdminLibrary/cpp/IAppHostElementSetMetadata.cpp
mitchelsellers/iis-docs
376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429
[ "CC-BY-4.0", "MIT" ]
453
2017-05-22T18:00:05.000Z
2022-03-30T21:07:55.000Z
samples/snippets/cpp/VS_Snippets_IIS/IIS7/IAppHostAdminLibrary/cpp/IAppHostElementSetMetadata.cpp
mitchelsellers/iis-docs
376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429
[ "CC-BY-4.0", "MIT" ]
343
2017-05-26T08:57:30.000Z
2022-03-25T23:05:04.000Z
// <snippet4> #pragma once #include <stdio.h> #include <string.h> #include <ahadmin.h> int main() { IAppHostWritableAdminManager * pWMgr = NULL; IAppHostElement * pElement = NULL; HRESULT hr = S_OK; BSTR bstrConfigCommitPath = SysAllocString(L"M...
26.515152
89
0.581714
mitchelsellers
dfc2a3df6ff572014f1df38d7fbb28f93c48c132
1,960
cpp
C++
Src/SudokuLib/PuzzlePrinter.cpp
wokste/sudokugen
ed866fdccad856acfb8f52982e74129326557e8f
[ "MIT" ]
null
null
null
Src/SudokuLib/PuzzlePrinter.cpp
wokste/sudokugen
ed866fdccad856acfb8f52982e74129326557e8f
[ "MIT" ]
8
2019-04-11T12:14:31.000Z
2019-04-13T18:59:12.000Z
Src/SudokuLib/PuzzlePrinter.cpp
wokste/sudokugen
ed866fdccad856acfb8f52982e74129326557e8f
[ "MIT" ]
null
null
null
#include "PuzzlePrinter.h" #include <vector> #include <string_view> #include <fstream> using namespace std; void SvgPuzzlePrinter::print(const Puzzle & puzzle, std::vector<CellValue>& board) const { std::ofstream stream("puzzle.svg", std::ofstream::out); XmlWriter xmlDoc(stream); auto svg = xmlDoc.makeTag("svg"); ...
26.133333
122
0.621939
wokste
dfc39f4956a77880847e942de51dd6dfac7c73c2
6,310
cpp
C++
Engine/Core/Src/Render/Systems/HierarchyProxy.cpp
bluesky013/Explosion
1950121c48280fc5749e490c86acd75960ae8494
[ "MIT" ]
null
null
null
Engine/Core/Src/Render/Systems/HierarchyProxy.cpp
bluesky013/Explosion
1950121c48280fc5749e490c86acd75960ae8494
[ "MIT" ]
null
null
null
Engine/Core/Src/Render/Systems/HierarchyProxy.cpp
bluesky013/Explosion
1950121c48280fc5749e490c86acd75960ae8494
[ "MIT" ]
null
null
null
// // Created by Zach Lee on 2021/9/19. // #include <Engine/ECS.h> #include <Engine/Render/Components/BasicComponent.h> #include <Engine/Render/Systems/HierarchyProxy.h> #include "../Components/HierarchyComponent.h" namespace Explosion { template <typename T> static void TryAdd(ECS::Registry& registry, ECS::...
31.708543
100
0.58859
bluesky013
dfc4313d8222fc64ddbd98aa54407d35a98d49c7
4,528
cpp
C++
rv32i/core/vectors.cpp
Bergi84/vihal
7c139b544bb5ed5a27088bbb6b993f061e055ce8
[ "BSD-2-Clause" ]
1
2022-02-07T02:37:45.000Z
2022-02-07T02:37:45.000Z
rv32i/core/vectors.cpp
Bergi84/vihal
7c139b544bb5ed5a27088bbb6b993f061e055ce8
[ "BSD-2-Clause" ]
2
2022-03-12T10:18:07.000Z
2022-03-14T20:06:26.000Z
rv32i/core/vectors.cpp
Bergi84/vihal
7c139b544bb5ed5a27088bbb6b993f061e055ce8
[ "BSD-2-Clause" ]
2
2022-01-04T12:47:20.000Z
2022-01-07T20:40:13.000Z
// vector.cpp #include "platform.h" extern "C" { void Default_Handler(void); void Exception_Handler(void); /* Peripheral handlers */ void IRQ_Handler_01 ( void ) __attribute__ ((weak, alias("Default_Handler"))); void IRQ_Handler_02 ( void ) __attribute__ ((weak, alias("Default_Handler"))); void IRQ_Hand...
35.936508
84
0.683746
Bergi84
dfc549c2f3126a87a44d5ae736e7a0e53c8f30b2
521
hpp
C++
Jagerts.Kaleid.Graphics/Particle.hpp
Jagreaper/Kaleid
4fd28f5921d54048d9dfd75f1640abe68a09f580
[ "MIT" ]
null
null
null
Jagerts.Kaleid.Graphics/Particle.hpp
Jagreaper/Kaleid
4fd28f5921d54048d9dfd75f1640abe68a09f580
[ "MIT" ]
null
null
null
Jagerts.Kaleid.Graphics/Particle.hpp
Jagreaper/Kaleid
4fd28f5921d54048d9dfd75f1640abe68a09f580
[ "MIT" ]
null
null
null
#pragma once #include "Jagerts.Kaleid.Shared/Common.hpp" #include "Jagerts.Kaleid.Math/Transform.hpp" #include "Jagerts.Kaleid.Graphics/Renderer.hpp" namespace Jagerts::Kaleid::Graphics { class JAGERTS_KALEID_GRAPHICS_API Particle : public Jagerts::Kaleid::Graphics::RenderableObject, public Jagerts::Kaleid::Math::Tr...
28.944444
147
0.800384
Jagreaper
254753e223a4d24f29e0f9afcffb73d92721571f
7,427
cpp
C++
engine/arctic_platform_pi_opengl_glx.cpp
Livictor213/testing2
4121cbb23ec6cb55d8aad3524d1dc029165c8532
[ "MIT" ]
6
2021-03-27T01:54:55.000Z
2021-12-15T22:50:28.000Z
engine/arctic_platform_pi_opengl_glx.cpp
Livictor213/testing2
4121cbb23ec6cb55d8aad3524d1dc029165c8532
[ "MIT" ]
null
null
null
engine/arctic_platform_pi_opengl_glx.cpp
Livictor213/testing2
4121cbb23ec6cb55d8aad3524d1dc029165c8532
[ "MIT" ]
null
null
null
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com // The MIT License (MIT) // // Copyright (c) 2017 - 2021 Huldra // // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
27.205128
83
0.734617
Livictor213
254fe76ce4ff5c2359f29fc047d9f1a383fd02d8
466
hpp
C++
src/maths/curves/curves.hpp
otgaard/zap
d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215
[ "MIT" ]
8
2016-04-24T21:02:59.000Z
2021-11-14T20:37:17.000Z
src/maths/curves/curves.hpp
otgaard/zap
d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215
[ "MIT" ]
null
null
null
src/maths/curves/curves.hpp
otgaard/zap
d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215
[ "MIT" ]
1
2018-06-09T19:51:38.000Z
2018-06-09T19:51:38.000Z
// // Created by Darren Otgaar on 2016/06/22. // #ifndef ZAP_CURVES_HPP #define ZAP_CURVES_HPP #include <maths/maths.hpp> namespace zap { namespace maths { namespace curves { template <typename T, typename FncX, typename FncY> struct curve2 { constexpr static auto make_fnc(FncX fncX, FncY fncY) { ...
20.26087
62
0.603004
otgaard
255162d5484a1298f50010e9b116425fbeb2befb
1,303
cpp
C++
adaptors/emscripten/wrappers/render-task-wrapper.cpp
pwisbey/dali-adaptor
21d5e77316e53285fa1e210a93b13cf9889e3b54
[ "Apache-2.0" ]
null
null
null
adaptors/emscripten/wrappers/render-task-wrapper.cpp
pwisbey/dali-adaptor
21d5e77316e53285fa1e210a93b13cf9889e3b54
[ "Apache-2.0" ]
null
null
null
adaptors/emscripten/wrappers/render-task-wrapper.cpp
pwisbey/dali-adaptor
21d5e77316e53285fa1e210a93b13cf9889e3b54
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * 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...
25.54902
99
0.732924
pwisbey
2551bfda4713d569efc131a5c9a47b7dd0615995
502
hpp
C++
Protocol_Omega.sara_dbe1/scripts/hints/Advance_Hints_EH.hpp
JhonArroyo/ArmA-3-Scripts
3b7b9fe6aad5a26da8b19dc27a8925d15054ccb7
[ "CC0-1.0" ]
null
null
null
Protocol_Omega.sara_dbe1/scripts/hints/Advance_Hints_EH.hpp
JhonArroyo/ArmA-3-Scripts
3b7b9fe6aad5a26da8b19dc27a8925d15054ccb7
[ "CC0-1.0" ]
null
null
null
Protocol_Omega.sara_dbe1/scripts/hints/Advance_Hints_EH.hpp
JhonArroyo/ArmA-3-Scripts
3b7b9fe6aad5a26da8b19dc27a8925d15054ccb7
[ "CC0-1.0" ]
null
null
null
class AirdropInstructions { displayName = "AIRDROP ZAG LORD"; class Airdrop01 { displayName = "AIRDROP ZAG LORD BRAVO RADIO"; description = "Para utilizar el airdrop designado debes elegir la opcion de radio en el menu de comandos y elegir dicha opcion"; tip = "<t color='#1bed39'>tenga en cuent...
35.857143
176
0.711155
JhonArroyo
25558b8c56264ecac334376f10e81a123a94f80e
423
hpp
C++
headers/fun/instances/_instances.hpp
BlackMATov/fun.hpp
11b208996c3c3784d31afb6463b34d5b68b47bd4
[ "MIT" ]
12
2019-01-07T05:55:35.000Z
2020-04-21T08:37:25.000Z
headers/fun/types/_types.hpp
BlackMATov/fun.hpp
11b208996c3c3784d31afb6463b34d5b68b47bd4
[ "MIT" ]
1
2019-01-07T08:53:56.000Z
2019-01-07T08:53:56.000Z
headers/fun/types/_types.hpp
BlackMATov/fun.hpp
11b208996c3c3784d31afb6463b34d5b68b47bd4
[ "MIT" ]
1
2019-01-08T07:51:30.000Z
2019-01-08T07:51:30.000Z
/******************************************************************************* * This file is part of the "https://github.com/blackmatov/fun.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md * Copyright (C) 2019-2020, by Matvey Cherevko (blackmatov@gmail.com) **********************...
47
80
0.458629
BlackMATov
255646eb7332695cb5348f49b92bced9cf744230
13,858
hpp
C++
include/graphics/gl/OpenGLAPI.hpp
manvis/IYFEngine
741a8d0dcc9b3e3ff8a8adb92850633523516604
[ "BSD-3-Clause" ]
5
2018-07-03T17:05:43.000Z
2020-02-03T00:23:46.000Z
include/graphics/gl/OpenGLAPI.hpp
manvis/IYFEngine
741a8d0dcc9b3e3ff8a8adb92850633523516604
[ "BSD-3-Clause" ]
null
null
null
include/graphics/gl/OpenGLAPI.hpp
manvis/IYFEngine
741a8d0dcc9b3e3ff8a8adb92850633523516604
[ "BSD-3-Clause" ]
null
null
null
// The IYFEngine // // Copyright (C) 2015-2018, Manvydas Šliamka // // 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 // condi...
42.904025
222
0.730264
manvis
2559d7971b2a203426be4518963d35957bf531db
9,101
cpp
C++
CodeForces-Solution/1404D.cpp
Tech-Intellegent/CodeForces-Solution
2f291a38b80b8ff2a2595b2e526716468ff26bf8
[ "MIT" ]
1
2022-01-23T07:18:07.000Z
2022-01-23T07:18:07.000Z
CodeForces-Solution/1404D.cpp
Tech-Intellegent/CodeForces-Solution
2f291a38b80b8ff2a2595b2e526716468ff26bf8
[ "MIT" ]
null
null
null
CodeForces-Solution/1404D.cpp
Tech-Intellegent/CodeForces-Solution
2f291a38b80b8ff2a2595b2e526716468ff26bf8
[ "MIT" ]
1
2022-02-05T11:53:04.000Z
2022-02-05T11:53:04.000Z
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using db = double; using str = string; // yay python! using pi = pair<int,int>; using pl = pair<ll,ll>; using pd = pair<db,db>; using vi = vector<int>; using vb = vector<bool>; using vl = vector<ll>; using vd = vector<db>...
24.663957
101
0.524887
Tech-Intellegent
255e25985092f8306485c41a5da653057efdb8b8
1,247
hpp
C++
src/include/common/logic/object_factory.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
6
2018-05-11T23:16:02.000Z
2019-06-13T01:35:07.000Z
src/include/common/logic/object_factory.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
33
2018-05-11T14:12:22.000Z
2022-03-12T00:55:25.000Z
src/include/common/logic/object_factory.hpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
1
2018-12-06T23:39:55.000Z
2018-12-06T23:39:55.000Z
/* Represents an object factory Copyright (C) 2016, 2018, 2020 Arthur M */ #pragma once #include <map> #include <string> #include "game_object.hpp" namespace familyline::logic { /** * \brief Helper class to instantiate an object without knowing its class * * Since we will support a lot of objects, objects l...
24.45098
87
0.673617
arthurmco
255e9f65a751351c15a5b030cc28c1d8c2926026
20
cpp
C++
Tests/Pch.cpp
kirillkovalenko/wirnrtopml
86eb423701f30fdc5dae34b8f5324769d3628e0a
[ "MIT" ]
null
null
null
Tests/Pch.cpp
kirillkovalenko/wirnrtopml
86eb423701f30fdc5dae34b8f5324769d3628e0a
[ "MIT" ]
null
null
null
Tests/Pch.cpp
kirillkovalenko/wirnrtopml
86eb423701f30fdc5dae34b8f5324769d3628e0a
[ "MIT" ]
null
null
null
#include "Pch.hpp"
10
19
0.65
kirillkovalenko
2565a35c7d2fe49dfe83fc57de7c826c3d81fcef
8,010
cpp
C++
src/operations/types.cpp
rationalis-petra/hydra
a1c14e560f5f1c64983468e5fd0be7b32824971d
[ "MIT" ]
2
2021-01-14T11:19:02.000Z
2021-03-07T03:08:08.000Z
src/operations/types.cpp
rationalis-petra/hydra
a1c14e560f5f1c64983468e5fd0be7b32824971d
[ "MIT" ]
null
null
null
src/operations/types.cpp
rationalis-petra/hydra
a1c14e560f5f1c64983468e5fd0be7b32824971d
[ "MIT" ]
null
null
null
#include <list> #include <string> #include "expressions.hpp" #include "operations/types.hpp" #include "types.hpp" #include "utils.hpp" using std::list; using std::string; using namespace expr; using namespace interp; Object *op_typep(list<Object *> arg_list, LocalRuntime &r, LexicalScope &s) { Object *obj = arg_...
29.776952
85
0.606991
rationalis-petra
2565c19fce02ba10271c8348585d25dbfe4de4ef
17,954
hpp
C++
LetheNut/LetheNut/Vendor/OpenGL.hpp
Atlanticity91/LetheNut
5c536ed5a4ebc180da12cef07987e2ead695724f
[ "MIT" ]
null
null
null
LetheNut/LetheNut/Vendor/OpenGL.hpp
Atlanticity91/LetheNut
5c536ed5a4ebc180da12cef07987e2ead695724f
[ "MIT" ]
null
null
null
LetheNut/LetheNut/Vendor/OpenGL.hpp
Atlanticity91/LetheNut
5c536ed5a4ebc180da12cef07987e2ead695724f
[ "MIT" ]
null
null
null
/************************************************************************************ * * _ _ _ _ _ _ * | | | | | | | \ | | | | * | | ___| |_| |__ ___| \| |_ _| |_ * | | / _ \ __| '_ \ / _ \ . ` | | | | __| * | |___| __/ |_| | | | __/ |\ | |_| | |_ * ...
26.02029
138
0.623928
Atlanticity91
2566861101ae967cf5417b8df6c442333df5f729
5,133
hpp
C++
src/include/MPI_Context.hpp
coetaur0/MPICapsule
427ffcd2ee00c576127390b1282f405a794c3376
[ "Apache-2.0" ]
null
null
null
src/include/MPI_Context.hpp
coetaur0/MPICapsule
427ffcd2ee00c576127390b1282f405a794c3376
[ "Apache-2.0" ]
null
null
null
src/include/MPI_Context.hpp
coetaur0/MPICapsule
427ffcd2ee00c576127390b1282f405a794c3376
[ "Apache-2.0" ]
null
null
null
#ifndef __MPI_CONTEXT_H__ #define __MPI_CONTEXT_H__ #include <iostream> #include <string> #include <sstream> #include <vector> #include "mpi.h" #include "DistributedData.hpp" #include "MPI_SendRecv.hpp" #include "FileError.hpp" class MPI_Context { private : int nProc; int rank; int master; public : /** * \...
32.694268
109
0.721216
coetaur0
2569654ec78ce6e497c01095913dbfeb1ad43f1c
23,345
cpp
C++
tests/unittests/HeadersUnitTest.cpp
commshare/easyhttpcpp
757ec75679c1cbc5f04c81a30133f4bcd3e780f4
[ "MIT" ]
147
2017-10-05T01:42:02.000Z
2022-01-21T08:15:05.000Z
tests/unittests/HeadersUnitTest.cpp
commshare/easyhttpcpp
757ec75679c1cbc5f04c81a30133f4bcd3e780f4
[ "MIT" ]
20
2018-05-17T01:55:16.000Z
2021-04-20T07:27:00.000Z
tests/unittests/HeadersUnitTest.cpp
commshare/easyhttpcpp
757ec75679c1cbc5f04c81a30133f4bcd3e780f4
[ "MIT" ]
32
2018-05-05T13:04:34.000Z
2022-03-25T16:57:11.000Z
/* * Copyright 2017 Sony Corporation */ #include "gtest/gtest.h" #include "gmock/gmock.h" #include "Poco/ListMap.h" #include "easyhttpcpp/Headers.h" #include "easyhttpcpp/HttpException.h" #include "EasyHttpCppAssertions.h" namespace easyhttpcpp { namespace test { static const std::string HeaderName = "X-My-Heade...
40.529514
140
0.736389
commshare
2572f6f8d2964ea18bd62c867a21974a931c51b0
25,344
cpp
C++
toy_compiler/munster/ast/node_factory.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
toy_compiler/munster/ast/node_factory.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
toy_compiler/munster/ast/node_factory.cpp
Wmbat/toy_compiler
370a2e76aaaa874de5fb6c25e0755638dd84b8b4
[ "MIT" ]
null
null
null
#include <toy_compiler/munster/ast/node_factory.hpp> #include <toy_compiler/munster/ast/decl/array_access_decl.hpp> #include <toy_compiler/munster/ast/decl/array_decl.hpp> #include <toy_compiler/munster/ast/decl/class_decl.hpp> #include <toy_compiler/munster/ast/decl/compound_member_decl.hpp> #include <toy_compiler/mu...
35.053942
100
0.576349
Wmbat
2572f935db3114dd9644afa337893d5dfa2eb735
12,063
cpp
C++
level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
/* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.h" #include "shared/source/os_interface/linux/system_info.h" #include "level_zero/tools/source/sysman/sysman_const.h" #include "drm/intel_hwconfig_types.h" ...
38.539936
151
0.669983
mattcarter2017
2581898439886abbf0128601a390248fc9c1c214
212
cpp
C++
WaterandJugProblem.cpp
yplusplus/LeetCode
122bd31b291af1e97ee4e9349a8e65bba6e04c96
[ "MIT" ]
3
2017-11-27T03:01:50.000Z
2021-03-13T08:14:00.000Z
WaterandJugProblem.cpp
yplusplus/LeetCode
122bd31b291af1e97ee4e9349a8e65bba6e04c96
[ "MIT" ]
null
null
null
WaterandJugProblem.cpp
yplusplus/LeetCode
122bd31b291af1e97ee4e9349a8e65bba6e04c96
[ "MIT" ]
null
null
null
class Solution { public: bool canMeasureWater(int x, int y, int z) { if (z > x + y) return false; if (z == x || z == y || z == x + y) return true; return z % __gcd(x, y) == 0; } };
26.5
56
0.471698
yplusplus
2581ba50e07b59a40ae4f8ac5ead03b7747003d3
1,044
cpp
C++
sensors/src/main/lcd.cpp
ukayzm/wsm
becda2651be9da14f24621e6e83a789189a9bc52
[ "MIT" ]
null
null
null
sensors/src/main/lcd.cpp
ukayzm/wsm
becda2651be9da14f24621e6e83a789189a9bc52
[ "MIT" ]
null
null
null
sensors/src/main/lcd.cpp
ukayzm/wsm
becda2651be9da14f24621e6e83a789189a9bc52
[ "MIT" ]
null
null
null
#include "Arduino.h" #include <LiquidCrystal_I2C.h> #include <Wire.h> LiquidCrystal_I2C lcdI2C(0x3F, 16, 2); void initLcd() { lcdI2C.init(); lcdI2C.backlight(); lcdI2C.setCursor(0, 0); lcdI2C.print("begin"); } void printDigits(char *buf, int value, int numDigits) { int i; for (i = 0; i < numD...
22.695652
57
0.535441
ukayzm
259358a35836f58e1c95958ec4719743692dd767
2,876
cpp
C++
source/polyvec/io/vtk_curve_writer.cpp
ShnitzelKiller/polyfit
51ddc6365a794db1678459140658211cb78f65b1
[ "MIT" ]
27
2020-08-17T17:25:59.000Z
2022-03-01T05:49:12.000Z
source/polyvec/io/vtk_curve_writer.cpp
ShnitzelKiller/polyfit
51ddc6365a794db1678459140658211cb78f65b1
[ "MIT" ]
4
2020-08-26T13:54:59.000Z
2020-09-21T07:19:22.000Z
source/polyvec/io/vtk_curve_writer.cpp
ShnitzelKiller/polyfit
51ddc6365a794db1678459140658211cb78f65b1
[ "MIT" ]
5
2020-08-26T23:26:48.000Z
2021-01-04T09:06:07.000Z
#include <cstdio> #include <polyvec/io/vtk_curve_writer.hpp> namespace polyvec { void VtkCurveWriter::add_line ( const Eigen::Vector2d& p0, const Eigen::Vector2d& p1 ) { Eigen::Matrix2Xd polyline ( 2, 2 ); polyline.col ( 0 ) = p0; polyline.col ( 1 ) = p1; add_polyline ( polyline ); } void VtkCurv...
24.581197
123
0.536509
ShnitzelKiller
259a0806e8afd3244db04dc9f5a3f42ef4086bc1
227,780
cpp
C++
src/SharpLLVM.Native/LLVM_wrap.cpp
xen2/SharpLang
07902915970ace70c4ee0430a672d25187a75d3a
[ "BSD-2-Clause-FreeBSD" ]
277
2015-01-04T20:42:36.000Z
2022-03-21T06:52:03.000Z
src/SharpLLVM.Native/LLVM_wrap.cpp
xen2/SharpLang
07902915970ace70c4ee0430a672d25187a75d3a
[ "BSD-2-Clause-FreeBSD" ]
31
2015-01-05T08:00:38.000Z
2016-01-05T01:18:59.000Z
src/SharpLLVM.Native/LLVM_wrap.cpp
xen2/SharpLang
07902915970ace70c4ee0430a672d25187a75d3a
[ "BSD-2-Clause-FreeBSD" ]
46
2015-01-21T00:41:59.000Z
2021-03-23T07:00:01.000Z
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.0 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do...
24.729128
314
0.712332
xen2
259e042916082573849554c3028661ba379bbfa5
2,114
cpp
C++
RayCaster/main_AVR.cpp
rohatsu/RayCaster
bb245222a11328884764a5fc4eaddad7025f4af8
[ "MIT" ]
8
2020-02-03T13:12:41.000Z
2021-09-12T04:31:03.000Z
RayCaster/main_AVR.cpp
rohatsu/RayCaster
bb245222a11328884764a5fc4eaddad7025f4af8
[ "MIT" ]
null
null
null
RayCaster/main_AVR.cpp
rohatsu/RayCaster
bb245222a11328884764a5fc4eaddad7025f4af8
[ "MIT" ]
3
2020-06-29T11:55:40.000Z
2021-02-20T23:16:06.000Z
#include <Arduino.h> #include "RayCaster.h" #include "RayCasterData.h" #include "RayCasterFixed.h" #include "ST7735R_TFT.h" int main(void) { init(); ST7735R_Begin(); BEGIN_TFT(); ST7735R_FillRect(0, 0, ST7735R_WIDTH - 1, ST7735R_HEIGHT - 1, 0, 0, 0); RayCasterFixed rayCaster; int16_t ...
27.454545
101
0.508515
rohatsu
259e0ac379b32589119f8ffc70972166a9c98a2f
384
cpp
C++
src/KandiLab/Contact.cpp
sppp/AR-AirHockey
b8c000538b8e664e9f6a59207bf893155d5ec772
[ "Unlicense" ]
3
2016-11-09T15:03:30.000Z
2020-10-27T08:29:48.000Z
src/KandiLab/Contact.cpp
sppp/AR-AirHockey
b8c000538b8e664e9f6a59207bf893155d5ec772
[ "Unlicense" ]
null
null
null
src/KandiLab/Contact.cpp
sppp/AR-AirHockey
b8c000538b8e664e9f6a59207bf893155d5ec772
[ "Unlicense" ]
2
2016-11-09T15:06:05.000Z
2020-10-27T08:17:36.000Z
#include "AirHockey.h" namespace GameCtrl { using namespace Upp; Contact::Contact() { } Contact::Contact(b2Contact* c) : contact(c) { } ContactListener::ContactListener() { } void ContactListener::BeginContact(b2Contact* contact) { ContactBegin(contact); } void ContactListener::EndCo...
12.8
57
0.664063
sppp
25a08b2b60787c7df75bdee5783d1da001e5329d
1,293
cpp
C++
nodes/NodeOutput.cpp
zhyvchyky/filters
7158aa8a05fb004cdea63fdbd7d31111a1f4c796
[ "MIT" ]
null
null
null
nodes/NodeOutput.cpp
zhyvchyky/filters
7158aa8a05fb004cdea63fdbd7d31111a1f4c796
[ "MIT" ]
2
2020-11-26T21:08:23.000Z
2020-12-03T15:22:09.000Z
nodes/NodeOutput.cpp
zhyvchyky/filters
7158aa8a05fb004cdea63fdbd7d31111a1f4c796
[ "MIT" ]
null
null
null
// // Created by noxin on 11/30/20. // #include "NodeOutput.h" #include <utility> void NodeOutput::process() { if (this->inputs.empty()){ writeImageToFile(std::make_shared<Image>(0, 0, 255, new Pixel[0]), this->filePath); } else { writeImageToFile(this->inputs[0]->getOutputPtr(), this->fi...
24.865385
91
0.597061
zhyvchyky
25a4d4ab85760e3fc9a0e63a7b09a71204b94a29
449
hpp
C++
Consumers/GpLogConsumerConfigBuilder.hpp
aofitserov/GpLog
79529d415b647c6cf5701d7190e32c57cfe8a87b
[ "Apache-2.0" ]
null
null
null
Consumers/GpLogConsumerConfigBuilder.hpp
aofitserov/GpLog
79529d415b647c6cf5701d7190e32c57cfe8a87b
[ "Apache-2.0" ]
null
null
null
Consumers/GpLogConsumerConfigBuilder.hpp
aofitserov/GpLog
79529d415b647c6cf5701d7190e32c57cfe8a87b
[ "Apache-2.0" ]
null
null
null
#pragma once #include "GpLogConsumerFactory.hpp" #include "GpLogConsumerConfigDesc.hpp" namespace GPlatform { class GPLOG_API GpLogConsumerConfigBuilder { public: CLASS_REMOVE_CTRS_DEFAULT_MOVE_COPY(GpLogConsumerConfigBuilder) CLASS_DECLARE_DEFAULTS(GpLogConsumerConfigBuilder) public: stat...
23.631579
106
0.783964
aofitserov
25a7327379e86eef049fd72b8792ae02170f98c6
183
cpp
C++
Odd_Even_Using_Binary_Operators.cpp
shivam123-dev/CPPwithShivam
b9d824f0439d0aa05770c6ad16e722ef445462cc
[ "MIT" ]
1
2021-03-27T06:33:08.000Z
2021-03-27T06:33:08.000Z
Odd_Even_Using_Binary_Operators.cpp
shivam123-dev/cppwithShivam
b9d824f0439d0aa05770c6ad16e722ef445462cc
[ "MIT" ]
null
null
null
Odd_Even_Using_Binary_Operators.cpp
shivam123-dev/cppwithShivam
b9d824f0439d0aa05770c6ad16e722ef445462cc
[ "MIT" ]
1
2021-05-09T16:48:02.000Z
2021-05-09T16:48:02.000Z
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n & 1 == 1) { cout << "Odd Number" << endl; } else { cout << "Even Number" << endl; } return 0; }
14.076923
32
0.535519
shivam123-dev
25a8ff8eddd1aed5c8ea7c3c7518c3c937d5cc5b
2,108
inl
C++
c++/Ail/SocketManager.inl
aamshukov/miscellaneous
6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60
[ "MIT" ]
null
null
null
c++/Ail/SocketManager.inl
aamshukov/miscellaneous
6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60
[ "MIT" ]
null
null
null
c++/Ail/SocketManager.inl
aamshukov/miscellaneous
6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////////////// //...................................................................................... // This is a part of AI Library [Arthur's Interfaces Library]. . // 1998-2001 Arthur Amshukov ...
31.462687
88
0.495256
aamshukov
25a9dfff7706ef4011471478be0ac9eb31f82459
766
hxx
C++
util-lib/include/util/TWaveFormRawData.hxx
andrey-nakin/caen-v1720e-frontend
00d713df62cf3abe330b08411e1f3732e56b4895
[ "MIT" ]
null
null
null
util-lib/include/util/TWaveFormRawData.hxx
andrey-nakin/caen-v1720e-frontend
00d713df62cf3abe330b08411e1f3732e56b4895
[ "MIT" ]
8
2019-03-06T08:43:29.000Z
2019-05-07T11:28:08.000Z
util-lib/include/util/TWaveFormRawData.hxx
andrey-nakin/gneis-daq
00d713df62cf3abe330b08411e1f3732e56b4895
[ "MIT" ]
null
null
null
#ifndef UTIL_LIB_TWaveFormRawData_hxx #define UTIL_LIB_TWaveFormRawData_hxx #include <cstdint> #include <TGenericData.hxx> #include "types.hxx" namespace util { class TWaveFormRawData: public TGenericData { public: typedef uint16_t value_type; typedef value_type const* const_iterator_type; using difference_type ...
17.409091
93
0.765013
andrey-nakin
25ab54858d29b83b64cac95e55571cf70fbb69ed
13,749
cpp
C++
examples/example_vertexEnumeration.cpp
hypro/hypro
52ae4ffe0a8427977fce8d7979fffb82a1bc28f6
[ "MIT" ]
22
2016-10-05T12:19:01.000Z
2022-01-23T09:14:41.000Z
examples/example_vertexEnumeration.cpp
hypro/hypro
52ae4ffe0a8427977fce8d7979fffb82a1bc28f6
[ "MIT" ]
23
2017-05-08T15:02:39.000Z
2021-11-03T16:43:39.000Z
examples/example_vertexEnumeration.cpp
hypro/hypro
52ae4ffe0a8427977fce8d7979fffb82a1bc28f6
[ "MIT" ]
12
2017-06-07T23:51:09.000Z
2022-01-04T13:06:21.000Z
/** * A simple example file to test the vertex enumeration algorithm. */ #include "../src/hypro/algorithms/convexHull/vertexEnumeration.h" #include "../src/hypro/representations/GeometricObjectBase.h" int main() { using Number = mpq_class; hypro::HPolytope<Number> poly; hypro::matrix_t<Number> constraints =...
66.100962
80
0.752346
hypro
25ace2c8131e1e73c5046dbc6722fced5c09745f
7,246
cpp
C++
src/extern/inventor/lib/database/src/so/nodes/SoMaterial.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
2
2020-05-21T07:06:07.000Z
2021-06-28T02:14:34.000Z
src/extern/inventor/lib/database/src/so/nodes/SoMaterial.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
null
null
null
src/extern/inventor/lib/database/src/so/nodes/SoMaterial.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
6
2016-03-21T19:53:18.000Z
2021-06-08T18:06:03.000Z
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
31.920705
80
0.621584
OpenXIP
25bcc5f49b25166d790a18a39b1c27c751d64261
3,527
cpp
C++
Topcoder/Solved/GCDGraph.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
Topcoder/Solved/GCDGraph.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
Topcoder/Solved/GCDGraph.cpp
seeva92/Competitive-Programming
69061c5409bb806148616fe7d86543e94bf76edd
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> typedef long long ll; const int mod = 1e9 + 7; const int MAX = 1e5 + 7; using namespace std; typedef vector<int> vi; int vis[10 * MAX]; class GCDGraph { public: int fnd(int i) { return vis[i] == i ? i : vis[i] = fnd(vis[i]); } string possible(int n, int k, ll x, ll y) { for (int i = 1; i <=...
20.747059
104
0.508081
seeva92
25c3ae75c5ffe0c1d4b3f31978718ea3835bfcb4
1,704
hpp
C++
Source/Core/Network/Packet.hpp
ace13/AngelscriptMP
583d481fdbef75e4d96a45eb2942a21189087c77
[ "MIT" ]
1
2017-01-05T01:55:16.000Z
2017-01-05T01:55:16.000Z
Source/Core/Network/Packet.hpp
ace13/AngelscriptMP
583d481fdbef75e4d96a45eb2942a21189087c77
[ "MIT" ]
null
null
null
Source/Core/Network/Packet.hpp
ace13/AngelscriptMP
583d481fdbef75e4d96a45eb2942a21189087c77
[ "MIT" ]
null
null
null
#include <SFML/Network/Packet.hpp> namespace Network { struct BitSize { BitSize(uint8_t size) : Size(size) { } uint8_t Size; }; class Packet : sf::Packet { public: Packet& operator>>(BitSize size); Packet& operator>>(bool& data); Packet& operator>>(int8_t& data); Packet& operator>>(uint8_t&...
28.4
46
0.6027
ace13
5ad2e231f7ed02deffe6582a936bfcf38ba89b1b
668
cpp
C++
39. Combination Sum.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
3
2017-02-22T14:28:27.000Z
2017-04-26T16:26:06.000Z
39. Combination Sum.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
null
null
null
39. Combination Sum.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
null
null
null
class Solution2 { public: vector<vector<int>> combinationSum(vector<int>& candidates, int target) { sort(candidates.begin(), candidates.end()); vector<vector<int>> rst; vector<int> sol; combination(rst, sol, candidates, 0, candidates.size(), target); return rst; } void combination(vector<vector<int>>& r...
29.043478
113
0.625749
qinenergy
5ae0730e264b65f1166f98414fb78f823728fa04
2,013
cpp
C++
src/ast.cpp
khasanov/raft
5577273b2bcdb70538d6004e06b4d6a8ba816266
[ "MIT" ]
null
null
null
src/ast.cpp
khasanov/raft
5577273b2bcdb70538d6004e06b4d6a8ba816266
[ "MIT" ]
null
null
null
src/ast.cpp
khasanov/raft
5577273b2bcdb70538d6004e06b4d6a8ba816266
[ "MIT" ]
null
null
null
#include "ast.h" namespace raft { Literal::Literal(object::Object value) : value{value} { } Logical::Logical(Expr *left, Token op, Expr *right) : left{left} , op{op} , right{right} { } Unary::Unary(Token op, Expr *right) : op{std::move(op)} , right{right} { } Binary::Binary(Expr *left, Toke...
15.135338
83
0.625435
khasanov
5ae0e8778f5637dd1a7e122bbcf90d7ce5986bc1
2,290
cpp
C++
firmware-usbhost/common/mdb/master/cashless/MdbMasterCashlessInterface.cpp
Zzzzipper/cppprojects
e9c9b62ca1e411320c24a3d168cab259fa2590d3
[ "MIT" ]
null
null
null
firmware-usbhost/common/mdb/master/cashless/MdbMasterCashlessInterface.cpp
Zzzzipper/cppprojects
e9c9b62ca1e411320c24a3d168cab259fa2590d3
[ "MIT" ]
1
2021-09-03T13:03:20.000Z
2021-09-03T13:03:20.000Z
firmware-usbhost/common/mdb/master/cashless/MdbMasterCashlessInterface.cpp
Zzzzipper/cppprojects
e9c9b62ca1e411320c24a3d168cab259fa2590d3
[ "MIT" ]
null
null
null
#include "MdbMasterCashlessInterface.h" #include "fiscal_register/include/FiscalSale.h" #include "logger/RemoteLogger.h" #include "logger/include/Logger.h" #include <string.h> enum EventDepositeParam { EventDepositeParam_Type1 = 0, EventDepositeParam_Nominal1, EventDepositeParam_Type2, EventDepositeParam_Nominal...
36.935484
150
0.782533
Zzzzipper
5ae0f49ac8c76b6d2bae055fab7d7cfd6ca0f434
548
hh
C++
testData/parser/Types/Int.hh
jhsx/hacklang-idea
45d190444662c8ced0614c91f8fa7701f0936e95
[ "MIT" ]
3
2016-03-05T13:24:29.000Z
2016-09-20T11:54:06.000Z
testData/parser/Types/Int.hh
jhsx/hacklang-idea
45d190444662c8ced0614c91f8fa7701f0936e95
[ "MIT" ]
1
2016-05-04T23:30:45.000Z
2016-06-10T13:36:27.000Z
testData/parser/Types/Int.hh
jhsx/hacklang-idea
45d190444662c8ced0614c91f8fa7701f0936e95
[ "MIT" ]
null
null
null
<?hh // strict namespace NS_int; class C { const int MAX = 1000; private int $prop = 10; public function setProp(int $val): void { $this->prop = $val; } public function getProp(): int { return $this->prop; } } function main(): void { var_dump(-PHP_INT_MAX - 1); var_dump(-PHP_INT_MAX - 1 - 1...
18.266667
61
0.642336
jhsx
5ae834a1e4cf9f4cd8c2be118c8fb365440ce339
646
cpp
C++
examples/utility_singleton.cpp
GheisMohammadi/CppCommon
8785825f1f6a38f52ba2b5ecbd25ab0e550e897a
[ "MIT" ]
211
2016-10-09T04:10:21.000Z
2022-03-22T19:46:55.000Z
examples/utility_singleton.cpp
GheisMohammadi/CppCommon
8785825f1f6a38f52ba2b5ecbd25ab0e550e897a
[ "MIT" ]
26
2019-04-15T09:04:06.000Z
2022-02-18T10:52:44.000Z
examples/utility_singleton.cpp
GheisMohammadi/CppCommon
8785825f1f6a38f52ba2b5ecbd25ab0e550e897a
[ "MIT" ]
87
2018-12-28T14:01:03.000Z
2022-03-29T09:14:48.000Z
/*! \file utility_singleton.cpp \brief Singleton example \author Ivan Shynkarenka \date 31.08.2016 \copyright MIT License */ #include "utility/singleton.h" #include <iostream> class MySingleton : public CppCommon::Singleton<MySingleton> { friend CppCommon::Singleton<MySingleton>; public: ...
21.533333
79
0.651703
GheisMohammadi
5ae8cfea1db492394ef0053faf8384a5eb995d8c
609
hpp
C++
src/inputmanager.hpp
intbeam/dos-rpg-game
7b2ee87d00319da609b61f054ebf4eed34714768
[ "MIT" ]
2
2021-01-23T19:22:53.000Z
2021-09-15T10:39:41.000Z
src/inputmanager.hpp
intbeam/dos-rpg-game
7b2ee87d00319da609b61f054ebf4eed34714768
[ "MIT" ]
null
null
null
src/inputmanager.hpp
intbeam/dos-rpg-game
7b2ee87d00319da609b61f054ebf4eed34714768
[ "MIT" ]
null
null
null
#ifndef INPUTMANAGER_HPP #define INPUTMANAGER_HPP #include "inputmapper.hpp" #include <stdio.h> #include <vector> struct key_state { char state; public: int is_pressed(); int is_held(); int is_released(); }; #define VKEY_STATE_PRESSED 1 #define VKEY_STATE_HELD 2 #define VKEY_STATE_RE...
17.4
47
0.692939
intbeam
5af016608cbd54e6e200d9443194f811d7031992
3,730
cpp
C++
test-code/iv2scenegraph.cpp
coin3d/smallchange
cf1f7647803281575456ea8de80d67253d0bf76f
[ "BSD-3-Clause" ]
1
2020-11-30T23:22:09.000Z
2020-11-30T23:22:09.000Z
test-code/iv2scenegraph.cpp
coin3d/smallchange
cf1f7647803281575456ea8de80d67253d0bf76f
[ "BSD-3-Clause" ]
5
2019-12-26T00:25:01.000Z
2021-03-20T23:59:53.000Z
test-code/iv2scenegraph.cpp
coin3d/smallchange
cf1f7647803281575456ea8de80d67253d0bf76f
[ "BSD-3-Clause" ]
1
2020-01-01T15:25:08.000Z
2020-01-01T15:25:08.000Z
#include <Inventor/SoDB.h> #include <Inventor/SoInput.h> #include <Inventor/SoOutput.h> #include <Inventor/SoInteraction.h> #include <Inventor/SoOffscreenRenderer.h> #include <Inventor/nodekits/SoNodeKit.h> #include <Inventor/nodes/SoSeparator.h> #include <Inventor/nodes/SoOrthographicCamera.h> #include <Inventor/actio...
30.826446
83
0.655228
coin3d
5af06da61c3eb0af419bc1e101c9bcf4044a075f
4,989
cpp
C++
2D/Box2DDebugDrawer.cpp
WriterOfAlicrow/SOTE
79d320c36cc88f5ebb556c3e5506cd1e2a034cf6
[ "MIT" ]
null
null
null
2D/Box2DDebugDrawer.cpp
WriterOfAlicrow/SOTE
79d320c36cc88f5ebb556c3e5506cd1e2a034cf6
[ "MIT" ]
null
null
null
2D/Box2DDebugDrawer.cpp
WriterOfAlicrow/SOTE
79d320c36cc88f5ebb556c3e5506cd1e2a034cf6
[ "MIT" ]
null
null
null
#include "Box2DDebugDrawer.h" #include "globals.h" Box2DDebugDrawer::Box2DDebugDrawer() { _group = new osg::Group(); //_group->setName("Box2D Debug Drawing"); _geode = new osg::Geode(); //_geode->setName("Box2D Debug Drawing"); //_geode->setDataVariance(osg::Object::DYNAMIC); /// BUG: Data variance should be se...
28.186441
276
0.753458
WriterOfAlicrow
5af07575335ef63fb7bbdfe9f2d22bd4ba944318
1,388
cpp
C++
data/dailyCodingProblem192.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
2
2020-09-04T20:56:23.000Z
2021-06-11T07:42:26.000Z
data/dailyCodingProblem192.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
null
null
null
data/dailyCodingProblem192.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; /* You are given an array of nonnegative integers. Let's say you start at the beginning of the array and are trying to advance to the end. You can advance at most, the number of steps that you're currently on. Determine whether you can get to the end of the array. For exa...
23.931034
71
0.648415
vidit1999
5af45ad7998840eaf02574c97c7d4bf71c353200
6,774
hpp
C++
util/indexed_priority_queue.hpp
santanusen/mit_6006
f4c4a402c2022a53aded4bb1830178e322591177
[ "Apache-2.0" ]
null
null
null
util/indexed_priority_queue.hpp
santanusen/mit_6006
f4c4a402c2022a53aded4bb1830178e322591177
[ "Apache-2.0" ]
null
null
null
util/indexed_priority_queue.hpp
santanusen/mit_6006
f4c4a402c2022a53aded4bb1830178e322591177
[ "Apache-2.0" ]
null
null
null
// // Copyright 2021 Santanu Sen. All Rights Reserved. // // Licensed under the Apache License 2.0 (the "License"). You may not use // this file except in compliance with the License. You can obtain a copy // in the file LICENSE in the source distribution. // #pragma once #ifdef DEBUG_IPQ #include <cassert> #endif #i...
30.931507
80
0.6615
santanusen
5af49af4f3f9ff14f07277d247c97db84d739e8a
1,309
hpp
C++
include/edfio/core/Device.hpp
idotta/edfio
0c78877145dfe4bb67db174e622ed4e273527322
[ "MIT" ]
2
2019-04-25T05:27:38.000Z
2020-01-10T13:30:09.000Z
include/edfio/core/Device.hpp
idotta/edfio
0c78877145dfe4bb67db174e622ed4e273527322
[ "MIT" ]
null
null
null
include/edfio/core/Device.hpp
idotta/edfio
0c78877145dfe4bb67db174e622ed4e273527322
[ "MIT" ]
2
2017-12-13T18:28:11.000Z
2020-09-17T14:04:31.000Z
// // Copyright(c) 2017-present Iuri Dotta (dotta dot iuri at gmail dot com) // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. // // Official repository: https://github.com/idotta/edfio // #pragma once #include <iterator> namespace edfio ...
23.375
92
0.749427
idotta
5af658f7ddd7c8ddcbcbfac190dd952c574ca7b6
1,168
cpp
C++
LeetCode/Maximum Number of Removable Characters/main.cpp
Code-With-Aagam/competitive-programming
610520cc396fb13a03c606b5fb6739cfd68cc444
[ "MIT" ]
2
2022-02-08T12:37:41.000Z
2022-03-09T03:48:56.000Z
LeetCode/Maximum Number of Removable Characters/main.cpp
Code-With-Aagam/competitive-programming
610520cc396fb13a03c606b5fb6739cfd68cc444
[ "MIT" ]
null
null
null
LeetCode/Maximum Number of Removable Characters/main.cpp
Code-With-Aagam/competitive-programming
610520cc396fb13a03c606b5fb6739cfd68cc444
[ "MIT" ]
null
null
null
class Solution { private: bool isSubsequence(const string &s1, const string &s2) { int n = s1.size(), m = s2.size(), j = 0; if (n > m) return false; if (n == m) return s1 == s2; if (m == 0) return false; if (n == 0) return true; for (int i = 0; i < m; i++) ...
28.487805
70
0.357877
Code-With-Aagam
5af77c8dbc3dd643b08af264398eeb4ebb64237a
398
cc
C++
C++Primer_4e/chap3/3.7.cc
NicoleRobin/ExerciseCode
b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59
[ "MIT" ]
null
null
null
C++Primer_4e/chap3/3.7.cc
NicoleRobin/ExerciseCode
b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59
[ "MIT" ]
null
null
null
C++Primer_4e/chap3/3.7.cc
NicoleRobin/ExerciseCode
b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main(void) { string s1, s2; cout << "please input two string:" << endl; cin >> s1 >> s2; if (s1 == s2) { cout << s1 << " = " << s2 << endl; } else if (s1 > s2) { cout << s1 << " > " << s2 << endl; } ...
14.740741
47
0.41206
NicoleRobin
5af7b8c489ec7f533a28b1919bf456d02a3d1972
674
hpp
C++
include/sprout/numeric/fft/fft.hpp
thinkoid/Sprout
a5a5944bb1779d3bb685087c58c20a4e18df2f39
[ "BSL-1.0" ]
4
2021-12-29T22:17:40.000Z
2022-03-23T11:53:44.000Z
dsp/lib/sprout/sprout/numeric/fft/fft.hpp
TheSlowGrowth/TapeLooper
ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264
[ "MIT" ]
16
2021-10-31T21:41:09.000Z
2022-01-22T10:51:34.000Z
include/sprout/numeric/fft/fft.hpp
thinkoid/Sprout
a5a5944bb1779d3bb685087c58c20a4e18df2f39
[ "BSL-1.0" ]
null
null
null
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) ==...
39.647059
79
0.603858
thinkoid
5af812314b98520205b357336010ea818447a129
1,115
cpp
C++
BAC/exercises/ch9/UVa348.cpp
Anyrainel/aoapc-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
3
2017-08-15T06:00:01.000Z
2018-12-10T09:05:53.000Z
BAC/exercises/ch9/UVa348.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
null
null
null
BAC/exercises/ch9/UVa348.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
2
2017-09-16T18:46:27.000Z
2018-05-22T05:42:03.000Z
// UVa348 Optimal Array Multiplication Sequence // Rujia Liu // 题意:最优矩阵链乘,n<=10,要求输出方案 // 算法:动态规划。d[i][j]为矩阵i~j的最少乘法次数,则d[i][j] = min{d[i][k] + d[k+1][j] + a[i]*b[k]*b[j]} // 输出方案的时候,记录d[i][j]的最优k,即sol[i][j],然后递归打印 #include<cstdio> #include<cstring> using namespace std; const int maxn = 10 + 5; int n, a[maxn], b[maxn]...
22.3
84
0.489686
Anyrainel
5af910c7b84cf82f24bdd7496e1a3b8a40938dbb
6,782
hpp
C++
include/System/Reflection/MonoEvent.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/System/Reflection/MonoEvent.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/System/Reflection/MonoEvent.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" // Including type: System.Reflection.RuntimeEventInfo #include "System/Reflection/Runtime...
50.992481
132
0.723533
darknight1050
5af9606b7b2d70ae2b687d9ce4005cddb93f5451
1,095
cpp
C++
App/Lib/Bal/Source/graphics/balFrameBuffer.cpp
belmayze/bal
710a96d011855fdab4e4b6962a2ba5b6b6b35aae
[ "MIT" ]
null
null
null
App/Lib/Bal/Source/graphics/balFrameBuffer.cpp
belmayze/bal
710a96d011855fdab4e4b6962a2ba5b6b6b35aae
[ "MIT" ]
null
null
null
App/Lib/Bal/Source/graphics/balFrameBuffer.cpp
belmayze/bal
710a96d011855fdab4e4b6962a2ba5b6b6b35aae
[ "MIT" ]
null
null
null
/*! * @file balFrameBuffer.cpp * @brief * @author belmayze * * Copyright (c) 2020 belmayze. All rights reserved. */ // bal #include <graphics/balFrameBuffer.h> #include <graphics/balICommandList.h> #include <graphics/balIRenderTarget.h> namespace bal { // ---------------------------------------------------...
23.804348
86
0.473059
belmayze
5afd53879cece49c330d2bde72e752336b45a0d2
1,193
hpp
C++
4.CalculatePairCopulas/include/EigenUtils.hpp
covit2019/analysis_codes
0c580c51f790723390676eef85422055007e2354
[ "MIT" ]
null
null
null
4.CalculatePairCopulas/include/EigenUtils.hpp
covit2019/analysis_codes
0c580c51f790723390676eef85422055007e2354
[ "MIT" ]
null
null
null
4.CalculatePairCopulas/include/EigenUtils.hpp
covit2019/analysis_codes
0c580c51f790723390676eef85422055007e2354
[ "MIT" ]
1
2020-04-09T12:59:17.000Z
2020-04-09T12:59:17.000Z
#pragma once #include <Eigen/Core> #include <iterator> #include <memory> namespace VineCopulaUtil { template <class Matrix, class T> inline void matrix_to_array1d(const Matrix& matrix, T* array1d) { const int cols = matrix.size(); const int rows = matrix[0].size(); for (int i = 0 ; i < cols; ++...
29.825
106
0.69824
covit2019
5afe45d9104e3db80d2c8db7165e97deef0b88aa
122
cpp
C++
Random.cpp
crkian/SDL-Project
7f43e55648e95abf0a8357651bae2ce3995af6b7
[ "libtiff", "Libpng", "BSD-3-Clause" ]
null
null
null
Random.cpp
crkian/SDL-Project
7f43e55648e95abf0a8357651bae2ce3995af6b7
[ "libtiff", "Libpng", "BSD-3-Clause" ]
null
null
null
Random.cpp
crkian/SDL-Project
7f43e55648e95abf0a8357651bae2ce3995af6b7
[ "libtiff", "Libpng", "BSD-3-Clause" ]
null
null
null
#include "Random.h" #include <stdlib.h> int Random::Int(int lower, int upper) { return rand()%(upper-lower+1) + lower; }
17.428571
39
0.672131
crkian
85006d5960842803a9439532fb42b4e1e01b86ef
756
cc
C++
ja2/Build/TileEngine/PhysMath.cc
gtrafimenkov/ja2-vanilla-cp
961076add8175afa845cbd6c33dbf9cd78f61a0c
[ "BSD-Source-Code" ]
null
null
null
ja2/Build/TileEngine/PhysMath.cc
gtrafimenkov/ja2-vanilla-cp
961076add8175afa845cbd6c33dbf9cd78f61a0c
[ "BSD-Source-Code" ]
null
null
null
ja2/Build/TileEngine/PhysMath.cc
gtrafimenkov/ja2-vanilla-cp
961076add8175afa845cbd6c33dbf9cd78f61a0c
[ "BSD-Source-Code" ]
null
null
null
#include "TileEngine/PhysMath.h" #include <math.h> vector_3 VAdd(vector_3 *a, vector_3 *b) { vector_3 c; c.x = a->x + b->x; c.y = a->y + b->y; c.z = a->z + b->z; return (c); } vector_3 VMultScalar(vector_3 *a, real b) { vector_3 c; c.x = a->x * b; c.y = a->y * b; c.z = a->z * b; return (c); }...
17.181818
57
0.52381
gtrafimenkov
8506cdcf7beb8e7f46c77af001905144d5550b47
1,267
cpp
C++
Ver.MO/Client/Client/CBaseObject.cpp
kbm0996/Network-Programming-AsyncselectModel-WINAPI_2DGame
ee2eea45589979859329bf9af4d4abbfc34c5594
[ "MIT" ]
2
2021-07-09T18:38:47.000Z
2022-03-28T08:18:33.000Z
Ver.MO/Client/Client/CBaseObject.cpp
kbm0996/Network-Programming-AsyncselectModel-WINAPI_2DGame
ee2eea45589979859329bf9af4d4abbfc34c5594
[ "MIT" ]
null
null
null
Ver.MO/Client/Client/CBaseObject.cpp
kbm0996/Network-Programming-AsyncselectModel-WINAPI_2DGame
ee2eea45589979859329bf9af4d4abbfc34c5594
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "CBaseObject.h" void CBaseObject::SetPosition(int iX, int iY) { _CurX = iX; _CurY = iY; } void CBaseObject::GetPosition(int * OutX, int * OutY) { OutX = &_CurX; OutY = &_CurY; } int CBaseObject::GetCurX() { return _CurX; } int CBaseObject::GetCurY() { return _CurY; } BOOL CBaseOb...
14.397727
78
0.715864
kbm0996
85076ca24b58a1ca9fa06479ddac96f7ef33c4f7
1,714
cpp
C++
src/BinDecHexOctConverter/main.cpp
RedSpiderMkV/Bin-Dec-Hex-Converter
a3cde288aefed1a96d04685600bba56c3ba5a698
[ "MIT" ]
1
2018-05-24T06:51:21.000Z
2018-05-24T06:51:21.000Z
src/BinDecHexOctConverter/main.cpp
RedSpiderMkV/Bin-Dec-Hex-Converter
a3cde288aefed1a96d04685600bba56c3ba5a698
[ "MIT" ]
1
2017-03-29T10:55:28.000Z
2017-03-29T11:32:22.000Z
src/BinDecHexOctConverter/main.cpp
RedSpiderMkV/Bin-Dec-Hex-Converter
a3cde288aefed1a96d04685600bba56c3ba5a698
[ "MIT" ]
3
2018-05-24T06:51:22.000Z
2020-12-03T08:31:58.000Z
/* * File: main.cpp * Author: RedSpiderMkV * * Created on 11 November 2015, 21:38 */ #include <iostream> #include <string> #include "Converter/ConverterBase.h" #include "NumberBaseConverterFactory.h" using namespace std; using namespace NumberBaseConverter; bool argumentCountValid(int argc) { if(argc != ...
27.206349
92
0.601517
RedSpiderMkV
850e65b2526dee0a3bf2d913451ca9927b3e4a36
1,712
cpp
C++
src/Engine.cpp
feliwir/openSage-deprecated
4e6b3e7da577d37892cd0dfae31701c502247fb9
[ "MIT" ]
4
2018-11-22T23:15:23.000Z
2021-04-27T06:55:24.000Z
src/Engine.cpp
feliwir/openSage-deprecated
4e6b3e7da577d37892cd0dfae31701c502247fb9
[ "MIT" ]
null
null
null
src/Engine.cpp
feliwir/openSage-deprecated
4e6b3e7da577d37892cd0dfae31701c502247fb9
[ "MIT" ]
1
2019-08-27T13:02:59.000Z
2019-08-27T13:02:59.000Z
// Stephan Vedder 2015 #include "Engine.hpp" #include "FileSystem.hpp" #include "AudioSystem.hpp" #include "VideoSystem.hpp" #include "GraphicsSystem.hpp" #include "Game/Handler.hpp" #include <SFML/Audio.hpp> #include <iostream> #include "Config.hpp" Engine::Engine() { m_window.create(sf::VideoMode(800...
23.452055
80
0.633178
feliwir
8510b77706972f4d79f2b634710ddf30b293d2f4
28,258
hpp
C++
include/ITTM.hpp
browngrg/caledonia
79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94
[ "BSD-3-Clause" ]
null
null
null
include/ITTM.hpp
browngrg/caledonia
79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94
[ "BSD-3-Clause" ]
null
null
null
include/ITTM.hpp
browngrg/caledonia
79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94
[ "BSD-3-Clause" ]
null
null
null
#ifndef ITTM_HPP_ #define ITTM_HPP_ #include "MPI_Struct.hpp" #include<iostream> #include<iomanip> #include<fstream> #include<sstream> #include<string> #include<vector> #include<cmath> #include<algorithm> // A measurement object for the Infinite Temperature Transition Matrix method of calculating DOS // Methods for ...
38.186486
191
0.567875
browngrg
8515e9543c0548f5707b9a8c4b6cd1ac17c91dff
1,272
cc
C++
library/LayoutEmbedding/ApproximateGeodesicDistance.cc
jsb/LayoutEmbedding
6ef02ed0043dfabce6d593486358d6ef15cbf3ba
[ "MIT" ]
18
2021-02-18T15:35:25.000Z
2022-03-01T07:20:37.000Z
library/LayoutEmbedding/ApproximateGeodesicDistance.cc
jsb/LayoutEmbedding
6ef02ed0043dfabce6d593486358d6ef15cbf3ba
[ "MIT" ]
null
null
null
library/LayoutEmbedding/ApproximateGeodesicDistance.cc
jsb/LayoutEmbedding
6ef02ed0043dfabce6d593486358d6ef15cbf3ba
[ "MIT" ]
5
2021-02-17T14:52:42.000Z
2021-10-05T09:51:25.000Z
#include "ApproximateGeodesicDistance.hh" #include <LayoutEmbedding/IGLMesh.hh> #include <LayoutEmbedding/Util/Assert.hh> #include <igl/heat_geodesics.h> namespace LayoutEmbedding { pm::vertex_attribute<double> approximate_geodesic_distance(const pm::vertex_attribute<tg::pos3>& _pos, const std::vector<pm::vertex_ha...
30.285714
158
0.698113
jsb
851db3d561856bc30069cb072e42ff4bc6759791
2,458
hpp
C++
include/nanorange/detail/views/view_closure.hpp
cjdb/NanoRange
16d33c66c7869e57dd82ff8673eb5172eff1343d
[ "BSL-1.0" ]
null
null
null
include/nanorange/detail/views/view_closure.hpp
cjdb/NanoRange
16d33c66c7869e57dd82ff8673eb5172eff1343d
[ "BSL-1.0" ]
null
null
null
include/nanorange/detail/views/view_closure.hpp
cjdb/NanoRange
16d33c66c7869e57dd82ff8673eb5172eff1343d
[ "BSL-1.0" ]
null
null
null
#ifndef NANORANGE_DETAIL_VIEWS_VIEW_CLOSURE_HPP #define NANORANGE_DETAIL_VIEWS_VIEW_CLOSURE_HPP #include <nanorange/detail/views/range_adaptors.hpp> #include <nanorange/views/all.hpp> #include <nanorange/views/interface.hpp> #include <tuple> #include <type_traits> NANO_BEGIN_NAMESPACE template<copy_constructible F> ...
31.113924
123
0.720098
cjdb
85216c7a248cc454b901573c8154c25b8fe9d66a
118,707
cpp
C++
Day1/build/iOS/Preview/src/Uno.Time.g.cpp
sauvikatinnofied/ExploringFuse
cc272d55c7221d88ba773494f571b6528e5279f8
[ "Apache-2.0" ]
null
null
null
Day1/build/iOS/Preview/src/Uno.Time.g.cpp
sauvikatinnofied/ExploringFuse
cc272d55c7221d88ba773494f571b6528e5279f8
[ "Apache-2.0" ]
null
null
null
Day1/build/iOS/Preview/src/Uno.Time.g.cpp
sauvikatinnofied/ExploringFuse
cc272d55c7221d88ba773494f571b6528e5279f8
[ "Apache-2.0" ]
null
null
null
// This file was generated based on '(multiple files)'. // WARNING: Changes might be lost if you edit this file directly. #include <Uno.ArgumentNullException.h> #include <Uno.ArgumentOutOfRangeException.h> #include <Uno.Bool.h> #include <Uno.Diagnostics.Clock.h> #include <Uno.Int.h> #include <Uno.Long.h> #include <Uno...
42.685005
374
0.701214
sauvikatinnofied
852d5888b62d346d290e1d445ea88bec0317bad7
1,467
cpp
C++
tests/unit_tests/pgscript/grammar.cpp
diegoarjz/selector
976abd0d9e721639e6314e2599ef7e6f3dafdc4f
[ "MIT" ]
12
2019-04-16T17:35:53.000Z
2020-04-12T14:37:27.000Z
tests/unit_tests/pgscript/grammar.cpp
diegoarjz/selector
976abd0d9e721639e6314e2599ef7e6f3dafdc4f
[ "MIT" ]
47
2019-05-27T15:24:43.000Z
2020-04-27T17:54:54.000Z
tests/unit_tests/pgscript/grammar.cpp
diegoarjz/selector
976abd0d9e721639e6314e2599ef7e6f3dafdc4f
[ "MIT" ]
null
null
null
#include <pgscript/parser/grammar.h> #include <pgscript/intermediate/ast_printer.h> #include <gtest/gtest.h> using namespace pagoda; class GrammarTest : public ::testing::Test { protected: using iterator = std::string::iterator; virtual void SetUp() { program = std::make_shared<pagoda::ast::Program>(); } pagoda:...
26.196429
93
0.698705
diegoarjz
85325e1710a84efb96dba5dfcba1b0d89498843c
609
cpp
C++
solutions-PAT/B1043.cpp
Ki-Seki/solutions
e4329712d664180d850e0a48d7d0f637215f13d0
[ "MIT" ]
1
2022-02-26T10:33:24.000Z
2022-02-26T10:33:24.000Z
solutions-PAT/B1043.cpp
Ki-Seki/solutions
e4329712d664180d850e0a48d7d0f637215f13d0
[ "MIT" ]
null
null
null
solutions-PAT/B1043.cpp
Ki-Seki/solutions
e4329712d664180d850e0a48d7d0f637215f13d0
[ "MIT" ]
1
2021-12-01T14:54:33.000Z
2021-12-01T14:54:33.000Z
#include <iostream> using namespace std; int hash_table[6] = {}; char mp[6] = {'P', 'A', 'T', 'e', 's', 't'}; int main() { char c; int cnt = 0; while (scanf("%c", &c) != EOF) { int i = 0; for (i = 0; i < 6; i++) if (mp[i] == c) break; if (i < 6) ...
17.4
44
0.325123
Ki-Seki
853a3a00f183f68e8e1d0fd821da11a687606184
15,843
cpp
C++
src/PathSimulator.cpp
cda-tum/ddsim
79743fb581bd9d2b3cd9d0a460914257c8a8e584
[ "MIT" ]
5
2022-03-03T05:18:03.000Z
2022-03-30T00:36:06.000Z
src/PathSimulator.cpp
cda-tum/ddsim
79743fb581bd9d2b3cd9d0a460914257c8a8e584
[ "MIT" ]
9
2022-02-28T17:01:45.000Z
2022-03-25T16:07:58.000Z
src/PathSimulator.cpp
cda-tum/ddsim
79743fb581bd9d2b3cd9d0a460914257c8a8e584
[ "MIT" ]
2
2022-03-03T07:30:19.000Z
2022-03-07T09:46:53.000Z
#include "PathSimulator.hpp" #include <iterator> #include <utility> PathSimulator::SimulationPath::SimulationPath(std::size_t nleaves, PathSimulator::SimulationPath::Components components, const qc::QuantumComputation* qc, bool assumeCorrectOrder): components(std::move(components)), nleaves(nleaves), qc(qc) { ...
39.806533
180
0.546487
cda-tum
853d63999f376d31676f557d547358f3d504a664
1,921
cpp
C++
aws-cpp-sdk-sagemaker/source/model/DescribeModelPackageGroupResult.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-05T18:20:03.000Z
2022-01-05T18:20:03.000Z
aws-cpp-sdk-sagemaker/source/model/DescribeModelPackageGroupResult.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-sagemaker/source/model/DescribeModelPackageGroupResult.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sagemaker/model/DescribeModelPackageGroupResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #i...
26.315068
145
0.77824
perfectrecall
854b84e5bf3fcbca1923ca8fc29c56663ab8e7de
543
cpp
C++
raygame/EvadeJComponent.cpp
JCoshua/AIDecisionMakingExercise
c16933538569837e40932894f1ca5bdf0befd123
[ "MIT" ]
null
null
null
raygame/EvadeJComponent.cpp
JCoshua/AIDecisionMakingExercise
c16933538569837e40932894f1ca5bdf0befd123
[ "MIT" ]
null
null
null
raygame/EvadeJComponent.cpp
JCoshua/AIDecisionMakingExercise
c16933538569837e40932894f1ca5bdf0befd123
[ "MIT" ]
null
null
null
#include "EvadeJComponent.h" #include "Actor.h" #include "Transform2D.h" #include "MoveComponent.h" MathLibrary::Vector2 EvadeJComponent::calculateForce() { if (!getTarget()) return MathLibrary::Vector2(0, 0); MathLibrary::Vector2 V = getOwner()->getTransform()->getWorldPosition() - (getTarget()->getTransform()->g...
38.785714
185
0.751381
JCoshua
854e1361b7f2c7edefbd303736510cbfc3e809f7
1,242
cpp
C++
virtual_init_ctor/main.cpp
Mizux/snippets
69c4a5b7e79108824e5fa8a47235c8a36f28295c
[ "Apache-2.0" ]
null
null
null
virtual_init_ctor/main.cpp
Mizux/snippets
69c4a5b7e79108824e5fa8a47235c8a36f28295c
[ "Apache-2.0" ]
null
null
null
virtual_init_ctor/main.cpp
Mizux/snippets
69c4a5b7e79108824e5fa8a47235c8a36f28295c
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <memory> // Show that virtual method are not overloaded in constructor class Base { public: Base() { init(); std::cout << "Base::Base() called\n"; } virtual ~Base() { std::cout << "Base::~Base() called\n"; } virtual void foo() { std::cout << "Base::foo() called\n"; } void bar() ...
27.6
77
0.588567
Mizux
855895d51b1f7de83384be2173e8b37905a1df73
7,090
cc
C++
src/drivers/devices/cuda/flowunit/color_transpose/color_transpose_test.cc
fujl/modelbox
390541a87318bb6f8a37163668b439e5387f5d9a
[ "Apache-2.0" ]
1
2021-12-16T06:53:00.000Z
2021-12-16T06:53:00.000Z
src/drivers/devices/cuda/flowunit/color_transpose/color_transpose_test.cc
fujl/modelbox
390541a87318bb6f8a37163668b439e5387f5d9a
[ "Apache-2.0" ]
null
null
null
src/drivers/devices/cuda/flowunit/color_transpose/color_transpose_test.cc
fujl/modelbox
390541a87318bb6f8a37163668b439e5387f5d9a
[ "Apache-2.0" ]
1
2021-12-03T06:19:09.000Z
2021-12-03T06:19:09.000Z
/* * Copyright 2021 The Modelbox Project Authors. 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 requi...
34.926108
147
0.65134
fujl
85599976e787ce931f5006b876fcf137f929e835
2,179
cc
C++
base/pmr/arena.cc
romange/helio
445ebf76b96b7360982f2b3c4558ec347ba3adb5
[ "Apache-2.0" ]
13
2021-12-09T19:04:01.000Z
2022-02-20T08:49:06.000Z
base/pmr/arena.cc
romange/async
30d387fa0f2b5eee32eec570781be00157b2d07d
[ "Apache-2.0" ]
1
2022-01-15T20:09:37.000Z
2022-01-15T20:09:37.000Z
base/pmr/arena.cc
romange/async
30d387fa0f2b5eee32eec570781be00157b2d07d
[ "Apache-2.0" ]
null
null
null
// Copyright 2021, Roman Gershman. All rights reserved. // See LICENSE for licensing terms. // #include "base/pmr/arena.h" #include <cassert> namespace base { static const int kBlockSize = 8192; using namespace std; PmrArena::PmrArena(pmr::memory_resource* mr) : mr_(mr), blocks_(mr) { } PmrArena::~PmrArena() { ...
28.298701
79
0.699862
romange
8562d812891d61183ca216827ebd275f24af6162
3,288
cpp
C++
Target/LIN64utf8/CCore/src/video/Desktop.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
8
2017-12-21T07:00:16.000Z
2020-04-02T09:05:55.000Z
Target/LIN64utf8/CCore/src/video/Desktop.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
null
null
null
Target/LIN64utf8/CCore/src/video/Desktop.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
1
2020-03-30T09:54:18.000Z
2020-03-30T09:54:18.000Z
/* Desktop.cpp */ //---------------------------------------------------------------------------------------- // // Project: CCore 3.50 // // Tag: Target/LIN64utf8 // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // ...
18.788571
96
0.537409
SergeyStrukov
85649391127215dbf5ef4896563d01d0da0ae2ea
683
cpp
C++
2376 Cleaning Shifts/main.cpp
sqc1999-oi/POJ
450afa9485bcf5398f9cb7efd5a3b8c40de60e03
[ "MIT" ]
1
2016-07-18T12:05:16.000Z
2016-07-18T12:05:16.000Z
2376 Cleaning Shifts/main.cpp
sqc1999/POJ
450afa9485bcf5398f9cb7efd5a3b8c40de60e03
[ "MIT" ]
null
null
null
2376 Cleaning Shifts/main.cpp
sqc1999/POJ
450afa9485bcf5398f9cb7efd5a3b8c40de60e03
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> using namespace std; typedef pair<int, int> pii; pii cow[25001]; int main() { ios::sync_with_stdio(false); int n, t; cin >> n >> t; for (int i = 1; i <= n; i++) cin >> cow[i].first >> cow[i].second; sort(cow + 1, cow + 1 + n); if (cow[1].first > 1) { cout...
17.973684
68
0.462665
sqc1999-oi
85704ab7c35889a75697c1f599b37e73ff2e1954
629
hpp
C++
jome/q-cat-list-widget-item.hpp
eepp/jome
f971d1c2f7d8a52924ae57a8e16c417db0c0a688
[ "MIT" ]
25
2019-04-29T14:54:49.000Z
2021-12-22T06:08:15.000Z
jome/q-cat-list-widget-item.hpp
eepp/jome
f971d1c2f7d8a52924ae57a8e16c417db0c0a688
[ "MIT" ]
13
2019-09-26T15:42:41.000Z
2021-12-03T14:22:22.000Z
jome/q-cat-list-widget-item.hpp
eepp/jome
f971d1c2f7d8a52924ae57a8e16c417db0c0a688
[ "MIT" ]
3
2019-04-26T15:17:30.000Z
2021-09-07T21:53:39.000Z
/* * Copyright (C) 2019 Philippe Proulx <eepp.ca> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #ifndef _JOME_Q_CAT_LIST_WIDGET_ITEM_HPP #define _JOME_Q_CAT_LIST_WIDGET_ITEM_HPP #include <QListWidget> #include "emoji-db.hpp" namespa...
17.971429
64
0.72655
eepp
85743b740ee201ff3d3fc6e9a40052d7e6dbdecd
363
hpp
C++
cpp/include/event/bridge/Error.hpp
skydiveuas/skylync
73db7fe4593e262a1fc1a7b61c18190275abe723
[ "MIT" ]
1
2018-06-06T20:33:28.000Z
2018-06-06T20:33:28.000Z
cpp/include/event/bridge/Error.hpp
skydiveuas/skylync
73db7fe4593e262a1fc1a7b61c18190275abe723
[ "MIT" ]
null
null
null
cpp/include/event/bridge/Error.hpp
skydiveuas/skylync
73db7fe4593e262a1fc1a7b61c18190275abe723
[ "MIT" ]
1
2020-07-31T03:39:15.000Z
2020-07-31T03:39:15.000Z
#ifndef EVENT_BRIDGE_ERROR_HPP #define EVENT_BRIDGE_ERROR_HPP #include "Message.hpp" #include <string> namespace sl { namespace event { namespace bridge { class Error : public Message { public: Error(const std::string& message); std::string toString() const noexcept override; }; } // bridge } // event ...
11.34375
51
0.713499
skydiveuas
8574ed96c220ad2c53088ccb39f3a52b094cc148
574
cpp
C++
Challenges - Recursion/Mapped Strings.cpp
helewrer3/CB_Launchpad
cda17f62a25e15cb914982d1cc24f7ba0e2f7a67
[ "Unlicense" ]
3
2019-10-04T13:24:16.000Z
2020-01-22T05:07:02.000Z
Challenges - Recursion/Mapped Strings.cpp
helewrer3/CB_Launchpad
cda17f62a25e15cb914982d1cc24f7ba0e2f7a67
[ "Unlicense" ]
null
null
null
Challenges - Recursion/Mapped Strings.cpp
helewrer3/CB_Launchpad
cda17f62a25e15cb914982d1cc24f7ba0e2f7a67
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> #define ll long long using namespace std; string map[27] = {"", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}; void conv(string str, string ostr, ll n, ll i){ if(i >= n){ cout << ostr << endl; return; ...
19.133333
152
0.442509
helewrer3
8579c36a58b1367bcae27515249227c9dd05d491
1,147
cpp
C++
tests/src/integration/tests/test_logging.cpp
Meteo-Concept/cpp-driver
1f54b3919d25351b70115129c1d31f109189268c
[ "Apache-2.0" ]
327
2015-01-01T03:01:58.000Z
2022-03-03T19:33:19.000Z
tests/src/integration/tests/test_logging.cpp
Meteo-Concept/cpp-driver
1f54b3919d25351b70115129c1d31f109189268c
[ "Apache-2.0" ]
218
2015-01-05T17:25:24.000Z
2022-03-30T19:55:03.000Z
tests/src/integration/tests/test_logging.cpp
Meteo-Concept/cpp-driver
1f54b3919d25351b70115129c1d31f109189268c
[ "Apache-2.0" ]
249
2015-02-12T11:33:10.000Z
2022-03-31T21:21:05.000Z
/* Copyright (c) DataStax, 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 in writing, so...
29.410256
74
0.744551
Meteo-Concept
857a8e5d524de9e9bc61887de0166465e0084111
542
cpp
C++
static/analysis/Affine.cpp
jahic/Janus
4612d0d7c0f9ec411534eca068abc2e5f042e203
[ "Apache-2.0" ]
6
2021-05-18T09:43:07.000Z
2021-08-10T16:50:08.000Z
static/analysis/Affine.cpp
jahic/Janus
4612d0d7c0f9ec411534eca068abc2e5f042e203
[ "Apache-2.0" ]
null
null
null
static/analysis/Affine.cpp
jahic/Janus
4612d0d7c0f9ec411534eca068abc2e5f042e203
[ "Apache-2.0" ]
2
2021-03-28T15:39:00.000Z
2021-08-20T03:23:57.000Z
#include "Affine.h" using namespace janus; using namespace std; void affineAnalysis(janus::Loop *loop) { if (loop->staticIterCount <= 0) return; if (loop->unsafe) return; //no break statement in the loop body if (loop->exit.size() > 1) return; //assume the memory accesses are already constructed...
24.636364
96
0.649446
jahic
858157838ca77b0d3243edc963d521633d979e8d
3,006
hpp
C++
graphblas/algorithm/test_cc.hpp
richardlett/graphblast
dac2a22f40b49b702ba34462007201f0ae50f690
[ "Apache-2.0" ]
155
2019-01-19T12:15:12.000Z
2022-03-21T02:59:03.000Z
graphblas/algorithm/test_cc.hpp
richardlett/graphblast
dac2a22f40b49b702ba34462007201f0ae50f690
[ "Apache-2.0" ]
16
2019-05-02T19:29:57.000Z
2021-06-30T07:22:57.000Z
graphblas/algorithm/test_cc.hpp
richardlett/graphblast
dac2a22f40b49b702ba34462007201f0ae50f690
[ "Apache-2.0" ]
20
2019-06-10T17:36:41.000Z
2022-03-23T19:48:26.000Z
#ifndef GRAPHBLAS_ALGORITHM_TEST_CC_HPP_ #define GRAPHBLAS_ALGORITHM_TEST_CC_HPP_ #include <vector> #include <stack> #include <unordered_set> namespace graphblas { namespace algorithm { // Runs simple CPU-based reference Connected Components (CC) implementation. // Returns number of components and the connected comp...
30.06
78
0.55356
richardlett
3fec3b508e917a9a86108852f644ce1c30c425ac
23,911
cpp
C++
tau/TauEngine/src/dx/dx10/DX10Buffer.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
1
2020-04-22T04:07:01.000Z
2020-04-22T04:07:01.000Z
tau/TauEngine/src/dx/dx10/DX10Buffer.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
tau/TauEngine/src/dx/dx10/DX10Buffer.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
#include "dx/dx10/DX10Buffer.hpp" #ifdef _WIN32 #include <Safeties.hpp> #include "dx/dx10/DX10GraphicsInterface.hpp" #include "dx/dx10/DX10RenderingContext.hpp" #include "TauEngine.hpp" #if TAU_RTTI_CHECK #define CTX() \ if(!RTT_CHECK(context, DX10RenderingContext)) \ { TAU_THROW(IncorrectContextExcepti...
30.498724
161
0.698256
hyfloac
3fedc55b358f2caad32cf67a9bcbbcea2bea9976
994
hpp
C++
lio/include/lio/socket.hpp
hkr/ltl
41b54f3da3aa085862f8242d4869fa1e2fb4824e
[ "Unlicense" ]
2
2018-05-12T09:37:14.000Z
2019-04-13T01:32:05.000Z
lio/include/lio/socket.hpp
hkr/ltl
41b54f3da3aa085862f8242d4869fa1e2fb4824e
[ "Unlicense" ]
null
null
null
lio/include/lio/socket.hpp
hkr/ltl
41b54f3da3aa085862f8242d4869fa1e2fb4824e
[ "Unlicense" ]
null
null
null
#ifndef LIO_SOCKET_HPP #define LIO_SOCKET_HPP #include "ltl/future.hpp" #include <memory> #include <stdint.h> #include <vector> struct uv_tcp_s; namespace lio { class iomanager; class socket { public: explicit socket(std::shared_ptr<uv_tcp_s> const& tcp); ~socket(); socket(socket const&) =dele...
21.148936
62
0.640845
hkr
3ff1a147f8e888a89dcf2d5da4f96d2fd73d96e1
326
cpp
C++
cpp/13413.cpp
jinhan814/BOJ
47d2a89a2602144eb08459cabac04d036c758577
[ "MIT" ]
9
2021-01-15T13:36:39.000Z
2022-02-23T03:44:46.000Z
cpp/13413.cpp
jinhan814/BOJ
47d2a89a2602144eb08459cabac04d036c758577
[ "MIT" ]
1
2021-07-31T17:11:26.000Z
2021-08-02T01:01:03.000Z
cpp/13413.cpp
jinhan814/BOJ
47d2a89a2602144eb08459cabac04d036c758577
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fastio cin.tie(0)->sync_with_stdio(0) using namespace std; int main() { fastio; int N; cin >> N; while (N--) { int n, t1 = 0, t2 = 0; cin >> n; string a, b; cin >> a >> b; for (int i = 0; i < n; i++) if (a[i] != b[i]) (a[i] == 'W' ? t1 : t2)++; cout << max(t1, t2) << '\n'...
21.733333
47
0.484663
jinhan814