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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d966b06a27b99c3172fdecd6ae205d0186cc4605 | 233 | cpp | C++ | tomduncalf_juce_web_ui.cpp | Fyfe93/tomduncalf_juce_web_ui | 7401d62993dd8c2dd8e2bd8507647532d43e9d17 | [
"MIT"
] | 14 | 2021-08-06T17:13:23.000Z | 2022-03-28T09:01:55.000Z | tomduncalf_juce_web_ui.cpp | Fyfe93/tomduncalf_juce_web_ui | 7401d62993dd8c2dd8e2bd8507647532d43e9d17 | [
"MIT"
] | 18 | 2021-05-24T08:26:52.000Z | 2021-05-25T12:52:34.000Z | tomduncalf_juce_web_ui.cpp | Fyfe93/tomduncalf_juce_web_ui | 7401d62993dd8c2dd8e2bd8507647532d43e9d17 | [
"MIT"
] | 3 | 2021-09-17T20:43:58.000Z | 2022-03-27T23:17:45.000Z | #include "tomduncalf_juce_web_ui.h"
#include "BrowserComponent.cpp"
#include "BrowserIntegration.cpp"
#include "BrowserIntegrationClient.cpp"
#include "BrowserValueTreeSynchroniser.cpp"
#include "BrowserIntegrationPluginClient.cpp"
| 29.125 | 45 | 0.841202 | Fyfe93 |
d967b558e1ef4116a8244d0ac3ac861821753d2b | 735 | cpp | C++ | codeforce/519/519B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/519/519B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/519/519B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n+1, 0);
vector<int> s;
for(int i = 1; i <= n;i++) {
scanf("%d", &a[i]);
}
vector<int> t;
for(int i = 1; i <= n;i++) {
t.assign(i, 0);
int k = 0;
for (;k < i;k++) {
t[k] = a[k + 1] - a[k];
}
bool can = true... | 19.342105 | 51 | 0.410884 | heiseish |
d969e2de6c3eeeca0f41bcb210e61b5687b686a8 | 869 | hpp | C++ | include/ph_concepts/Integer.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/Integer.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/Integer.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | #pragma once
#define SAME_AS(type) std::is_same_v <type, std::decay_t <T>>
namespace ph
{
inline namespace concepts {
template <typename T>
concept Integer = SAME_AS (short)
or SAME_AS (short int)
or SAME_AS (signed short)
or SAME_AS (signed short int)
or SAME_AS (int)
or SAME_AS (signed)
o... | 25.558824 | 61 | 0.674338 | phiwen96 |
d96e1359c2b42f53fc1fd8c41e786b6026b2dca7 | 3,234 | cpp | C++ | c++/Test/GlobalData/weoFlowException.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoFlowException.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoFlowException.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
//-----------------------------------------------------
// include
//-----------------------------------------------------
#include <iterator>
#include "weoFlowException.h"
//#include "weoFlowMessage.h"
#include "weoLexicalCast.h"
namespace pm_mode {
namespace task {
/******************************... | 24.134328 | 97 | 0.518862 | taku-xhift |
d976d3b43deb40e1c309c005e6a582fcaca862e1 | 271 | cpp | C++ | impossibly_fast_delegate/test/src/InstanceTest.cpp | zie87/fast_delegate | b4d81f94e6bdcc1e9918881aa4524968d09f7f17 | [
"MIT"
] | null | null | null | impossibly_fast_delegate/test/src/InstanceTest.cpp | zie87/fast_delegate | b4d81f94e6bdcc1e9918881aa4524968d09f7f17 | [
"MIT"
] | null | null | null | impossibly_fast_delegate/test/src/InstanceTest.cpp | zie87/fast_delegate | b4d81f94e6bdcc1e9918881aa4524968d09f7f17 | [
"MIT"
] | null | null | null | #include <srutil/delegate/delegate.hpp>
using namespace srutil;
int main()
{
delegate0<void> d1; d1;
delegate0<int> d2; d2;
delegate1<void, int> d3; d3;
delegate1<int, int> d4; d4;
delegate5<void, int, long, float, double, void*> d5; d5;
return 0;
}
| 19.357143 | 58 | 0.653137 | zie87 |
d97e690fff68143295cb5c5d400a1ec2826638e9 | 1,067 | cpp | C++ | src/user/Programs/Md.cpp | honzikv/OSSem | 07b9740a81ebd812a74309b96e41361cc56945a7 | [
"MIT"
] | null | null | null | src/user/Programs/Md.cpp | honzikv/OSSem | 07b9740a81ebd812a74309b96e41361cc56945a7 | [
"MIT"
] | null | null | null | src/user/Programs/Md.cpp | honzikv/OSSem | 07b9740a81ebd812a74309b96e41361cc56945a7 | [
"MIT"
] | null | null | null | #include "Md.h"
#include <string>
#include "../rtl.h"
size_t __stdcall md(const kiv_hal::TRegisters& regs) {
const auto std_out = static_cast<kiv_os::THandle>(regs.rbx.x);
const auto args = std::string(reinterpret_cast<char*>(regs.rdi.r));
kiv_os::THandle handle;
if (args.empty()) {
const std::string message... | 28.837838 | 85 | 0.719775 | honzikv |
d97f7741fa83c5a872934ebda16194a5833d18e5 | 3,045 | cpp | C++ | src/rpc/service/return_code.cpp | EPI-ONE/epic | c314cab526641c00d49e51e08ec0793f1a6c171b | [
"MIT"
] | 24 | 2019-10-14T14:35:32.000Z | 2021-11-28T02:06:26.000Z | src/rpc/service/return_code.cpp | EPI-ONE/epic | c314cab526641c00d49e51e08ec0793f1a6c171b | [
"MIT"
] | 3 | 2019-10-14T14:29:07.000Z | 2020-01-21T14:48:49.000Z | src/rpc/service/return_code.cpp | EPI-ONE/epic | c314cab526641c00d49e51e08ec0793f1a6c171b | [
"MIT"
] | 4 | 2020-04-09T09:12:50.000Z | 2021-06-15T13:41:42.000Z | // Copyright (c) 2019 EPI-ONE Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "return_code.h"
#include <map>
// in the future, we can add multi language support here
std::string GetReturnStr(RPCReturn ... | 51.610169 | 104 | 0.702135 | EPI-ONE |
d97fb14828c3a9d0097c7eff82524fe75b7b7532 | 2,627 | cpp | C++ | src/Modules/Graphics/Vulkan/src/Textures.cpp | NineBallo/NineEngine | 96af0219bd8f2bedfcfc2f63b696cd4c75b17294 | [
"MIT"
] | 2 | 2021-01-08T15:09:06.000Z | 2021-07-24T12:49:42.000Z | src/Modules/Graphics/Vulkan/src/Textures.cpp | NineBallo/NineEngine | 96af0219bd8f2bedfcfc2f63b696cd4c75b17294 | [
"MIT"
] | null | null | null | src/Modules/Graphics/Vulkan/src/Textures.cpp | NineBallo/NineEngine | 96af0219bd8f2bedfcfc2f63b696cd4c75b17294 | [
"MIT"
] | null | null | null | //
// Created by nineball on 7/21/21.
//
#include "Textures.h"
#include "Initializers.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <iostream>
bool init::loadTextureFromFile(NEDevice* device, const char *file, Texture &outTex) {
int texWidth = 0, texHeight = 0, texChannels = 0;
///L... | 35.026667 | 140 | 0.74724 | NineBallo |
d983478e2c5621f6cff851fe8c8b381dbfb43d7e | 6,684 | cpp | C++ | telegraph/source/node.cpp | BonexGoo/daddy | a9d67aadd2aa7cf361fce55fb77957b43c051e35 | [
"MIT"
] | 4 | 2020-02-29T13:37:29.000Z | 2021-02-07T01:56:41.000Z | telegraph/source/node.cpp | BonexGoo/daddy | a9d67aadd2aa7cf361fce55fb77957b43c051e35 | [
"MIT"
] | 2 | 2020-06-02T15:05:25.000Z | 2020-06-02T15:07:18.000Z | telegraph/source/node.cpp | BonexGoo/daddy | a9d67aadd2aa7cf361fce55fb77957b43c051e35 | [
"MIT"
] | 2 | 2021-02-07T01:56:44.000Z | 2021-06-10T07:06:15.000Z | #include <boss.hpp>
#include <daddy.hpp>
#include "node.hpp"
////////////////////////////////////////////////////////////////////////////////////////////////////
// ■ Node
void Node::SetPeerID(sint32 peerid)
{
mPeerID = peerid;
}
void Node::SetNodeID(chars nodeid)
{
mNodeID = nodeid;
const Context LoadCo... | 31.980861 | 119 | 0.581388 | BonexGoo |
d988ac3277b802f2fb2c2ef6ba39dc11aab7f4e9 | 1,178 | cpp | C++ | algorithm/hw17.bell.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | algorithm/hw17.bell.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | algorithm/hw17.bell.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
typedef pair<int,int> pii;
#define MAXW 100000000
struct W_edge{
W_edge(int a, int b){
des=a;
w=b;
}
int des;
int w;
};
vector <W_edge> adj[10010];
int wlist[3][10010];
int records[3][10010];
int n,m,u,v,w;
void bell(int start, i... | 15.918919 | 44 | 0.539898 | scott306lr |
d98b2a568ce3204b4a9863f825f1b245f01f89d4 | 4,456 | cpp | C++ | minorGems/graphics/openGL/texture.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | minorGems/graphics/openGL/texture.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | minorGems/graphics/openGL/texture.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | /*
OpenGL Tutor : Texture
Copyright 1999 by Nate 'm|d' Miller
For non-commercial use only!
File -- texture.c
Date -- 6/22/99
Author -- Nate 'm|d' Miller
Contact -- vandals1@home.com
Web -- http://members.home.com/vandals1
This is about as... | 10.948403 | 80 | 0.552962 | PhilipLudington |
d98bb41c96e3526b95ab91ffe22d49735944a6c6 | 19,590 | cpp | C++ | IP/CPM_bd/ip/CPM_bd_axi_noc_0_0/bd_0/ip/ip_5/sim/bd_f29c_MC0_ddrc_0_sc.cpp | SanjayRai/VERSAL_VCK190_CPM_XDMA_NOC_DDR4 | 648a6fb2196c4cbc3b61b7124d1c8cdcedba41ca | [
"MIT"
] | null | null | null | IP/CPM_bd/ip/CPM_bd_axi_noc_0_0/bd_0/ip/ip_5/sim/bd_f29c_MC0_ddrc_0_sc.cpp | SanjayRai/VERSAL_VCK190_CPM_XDMA_NOC_DDR4 | 648a6fb2196c4cbc3b61b7124d1c8cdcedba41ca | [
"MIT"
] | null | null | null | IP/CPM_bd/ip/CPM_bd_axi_noc_0_0/bd_0/ip/ip_5/sim/bd_f29c_MC0_ddrc_0_sc.cpp | SanjayRai/VERSAL_VCK190_CPM_XDMA_NOC_DDR4 | 648a6fb2196c4cbc3b61b7124d1c8cdcedba41ca | [
"MIT"
] | null | null | null | // (c) Copyright 1995-2022 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | 74.486692 | 934 | 0.798928 | SanjayRai |
d98ca94253e8256a6963940740c163eb6b8775a7 | 7,794 | cc | C++ | cvd_src/SSE/utility_float.cc | lsolanka/libcvd | 19291867b041a10e968ed8cce0053049a4233ce0 | [
"BSD-2-Clause"
] | 14 | 2015-01-19T15:36:37.000Z | 2016-09-17T15:19:05.000Z | otherlibs/libcvd/cvd_src/SSE/utility_float.cc | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | 2 | 2015-03-20T01:04:53.000Z | 2015-07-27T07:01:38.000Z | otherlibs/libcvd/cvd_src/SSE/utility_float.cc | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | 14 | 2015-03-21T02:23:01.000Z | 2021-09-14T02:18:54.000Z | #include "cvd/utility.h"
#include "cvd_src/utility_helpers.h"
#include <xmmintrin.h>
using namespace std;
namespace CVD {
//Some versions of gcc do not define _mm_load?_ps as taking a const float*
//Later versions always use the const.
template <bool Aligned> inline __m128 load_ps(const void* addr) { return... | 35.266968 | 138 | 0.669746 | lsolanka |
d98e3898395efd8c503aad8edb286c9fd7a8bb97 | 1,555 | hpp | C++ | example/include/MainWindow.hpp | BeardedBeaver/QCodeEditor | 95b57b93f28b18911cb21e2200eb2dbc53e2c16c | [
"MIT"
] | 1 | 2022-01-05T15:33:46.000Z | 2022-01-05T15:33:46.000Z | example/include/MainWindow.hpp | BeardedBeaver/QCodeEditor | 95b57b93f28b18911cb21e2200eb2dbc53e2c16c | [
"MIT"
] | null | null | null | example/include/MainWindow.hpp | BeardedBeaver/QCodeEditor | 95b57b93f28b18911cb21e2200eb2dbc53e2c16c | [
"MIT"
] | null | null | null | #pragma once
// Qt
#include <QMainWindow> // Required for inheritance
#include <QAction>
#include <QMenu>
#include <QMenuBar>
#include <QString>
#include <QVector>
#include <QPair>
#include <QFile>
class QVBoxLayout;
class QSyntaxStyle;
class QComboBox;
class QCheckBox;
class QSpinBox;
class QCompleter;
class QStyleS... | 20.460526 | 69 | 0.73119 | BeardedBeaver |
d98ecd006ec0fdc67fa8f034c063e3b1ccbe1ce8 | 10,861 | inl | C++ | src/dcc/unit-import-pe-dynamic.c.inl | GrieferAtWork/dcc | e70803aef1d7dc83ecedc6134c3e7902e6b6bbca | [
"Zlib"
] | 19 | 2017-08-27T16:27:44.000Z | 2021-12-02T21:17:17.000Z | src/dcc/unit-import-pe-dynamic.c.inl | GrieferAtWork/dcc | e70803aef1d7dc83ecedc6134c3e7902e6b6bbca | [
"Zlib"
] | null | null | null | src/dcc/unit-import-pe-dynamic.c.inl | GrieferAtWork/dcc | e70803aef1d7dc83ecedc6134c3e7902e6b6bbca | [
"Zlib"
] | 1 | 2022-02-17T18:51:21.000Z | 2022-02-17T18:51:21.000Z | /* Copyright (c) 2017 Griefer@Work *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be held liable for any damages *
... | 38.108772 | 116 | 0.693122 | GrieferAtWork |
d98f0481ca6e7d809c1c1af2e96523993b23edf1 | 492 | cpp | C++ | Contests/Samara University ACM ICPC 2016-2017 Quarterfinal Qualification Contest/I - It's the Police.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-02-24T06:45:56.000Z | 2018-05-29T04:47:39.000Z | Contests/Samara University ACM ICPC 2016-2017 Quarterfinal Qualification Contest/I - It's the Police.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | null | null | null | Contests/Samara University ACM ICPC 2016-2017 Quarterfinal Qualification Contest/I - It's the Police.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-06-28T09:53:27.000Z | 2022-03-23T13:29:57.000Z | #include <bits/stdc++.h>
using namespace std;
struct node{
int deg,num;
vector<int>v;
}p[222222];
int n,m,i,u,v,vis[222222];
int cmp(node a,node b){
return a.deg<b.deg;
}
int main(){
cin>>n>>m;
while(m--){
cin>>u>>v;
p[u].deg++,p[v].deg++;
p[u].v.push_back(v);
p[v].v.push_back(u);
}
for(i=1;i<=n;i++)
p... | 17.571429 | 39 | 0.534553 | QAQrz |
d990e36a463efe7c3f6cf9f947d08dd98652f24c | 7,628 | cpp | C++ | Vision/src/Vision/Renderer/OpenGL/OpenGLShader.cpp | ProjectElon/Vision | b3294565ab6bf79b84e163a5fdc448a36f163672 | [
"MIT"
] | 4 | 2020-01-10T12:43:02.000Z | 2020-10-28T02:01:58.000Z | Vision/src/Vision/Renderer/OpenGL/OpenGLShader.cpp | ProjectElon/Vision | b3294565ab6bf79b84e163a5fdc448a36f163672 | [
"MIT"
] | null | null | null | Vision/src/Vision/Renderer/OpenGL/OpenGLShader.cpp | ProjectElon/Vision | b3294565ab6bf79b84e163a5fdc448a36f163672 | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "Vision/Core/Defines.h"
#include "Vision/Core/Logger.h"
#ifdef VN_RENDERER_API_OPENGL
#include "Vision/Renderer/Renderer.h"
#include "Vision/Platform/Memory.h"
#include "Vision/Renderer/OpenGL/OpenGLShader.h"
#include "Vision/Platform/FileSystem.h"
#include <glm/glm.hpp>
#include <glm/gtc... | 24.527331 | 102 | 0.649974 | ProjectElon |
d994a1b350ae197f250a94a2d08023f1a5512161 | 4,991 | cpp | C++ | test/gpuTest/learn_column_test.cpp | przestaw/nbc4gpu | 641945ac3974ec9df78a4217ebd133576791c58a | [
"BSD-3-Clause"
] | null | null | null | test/gpuTest/learn_column_test.cpp | przestaw/nbc4gpu | 641945ac3974ec9df78a4217ebd133576791c58a | [
"BSD-3-Clause"
] | null | null | null | test/gpuTest/learn_column_test.cpp | przestaw/nbc4gpu | 641945ac3974ec9df78a4217ebd133576791c58a | [
"BSD-3-Clause"
] | null | null | null | //
// Created by przestaw on 28.09.2020.
//
#include <boost/test/unit_test.hpp>
#include <gpuclassifier/GPULearnColumn.hpp>
BOOST_AUTO_TEST_SUITE(nbc4gpu_TestSuite)
BOOST_AUTO_TEST_SUITE(LearnColumn_TestSuite)
BOOST_AUTO_TEST_CASE(PrecalulatedTest_Size0) {
boost::compute::device device = boost::compute::system::de... | 31.19375 | 75 | 0.708876 | przestaw |
d99675b41802a9a51e80e069bb3b8ee3388ff56b | 85,477 | cpp | C++ | programs/evtc/main.cpp | Laighno/evt | 90b94e831aebb62c6ad19ce59c9089e9f51cfd77 | [
"MIT"
] | null | null | null | programs/evtc/main.cpp | Laighno/evt | 90b94e831aebb62c6ad19ce59c9089e9f51cfd77 | [
"MIT"
] | null | null | null | programs/evtc/main.cpp | Laighno/evt | 90b94e831aebb62c6ad19ce59c9089e9f51cfd77 | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in evt/LICENSE.txt
*/
#include <iostream>
#include <limits>
#include <regex>
#include <string>
#include <type_traits>
#include <vector>
#include <pwd.h>
#include <unistd.h>
#pragma push_macro("N")
#undef N
#include <boost/asio/local/stream_protocol.hpp>
#include <boost/dll/runt... | 39.102013 | 175 | 0.615967 | Laighno |
d99a6a547a865d3083d6cecc9b9adc47c59305d7 | 8,476 | cpp | C++ | source/directsound/I3DL2Reverb.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/directsound/I3DL2Reverb.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/directsound/I3DL2Reverb.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 23.808989 | 80 | 0.684167 | HeavenWu |
d9a0b4cec8691a4b2a93b27c4c91506dd917723a | 1,619 | hh | C++ | core/inc/com/centreon/broker/file/directory_event.hh | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | core/inc/com/centreon/broker/file/directory_event.hh | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | core/inc/com/centreon/broker/file/directory_event.hh | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2015 Centreon
**
** 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 ... | 26.983333 | 75 | 0.741198 | centreon-lab |
d266a280c79c1edcfc8aa8799db2b9404fe9b50a | 1,304 | cpp | C++ | src/test/lib/logical_query_plan/export_node_test.cpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/test/lib/logical_query_plan/export_node_test.cpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/test/lib/logical_query_plan/export_node_test.cpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #include <memory>
#include "base_test.hpp"
#include "expression/expression_utils.hpp"
#include "import_export/file_type.hpp"
#include "logical_query_plan/export_node.hpp"
namespace opossum {
class ExportNodeTest : public BaseTest {
protected:
void SetUp() override {
_mock_node = MockNode::make(
MockN... | 32.6 | 110 | 0.745399 | mrcl-tst |
d2689af4c14b75d1dbf65b311e9dd4aa5b9842a0 | 23 | cpp | C++ | Notebook/codes/matematica_computacional/modulo_2i_bitwise.cpp | rodrigoAMF7/Notebook---Maratonas | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | 4 | 2019-01-25T21:22:55.000Z | 2019-03-20T18:04:01.000Z | Notebook/codes/matematica_computacional/modulo_2i_bitwise.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | Notebook/codes/matematica_computacional/modulo_2i_bitwise.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | n % 2^i = n & (2^i - 1) | 23 | 23 | 0.304348 | rodrigoAMF7 |
d26a88fe3b39d47bc86fdc10b6b21f2366426290 | 90 | cpp | C++ | tests/PhiCore/compile_failure/src/core/floating_point/int.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | tests/PhiCore/compile_failure/src/core/floating_point/int.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | tests/PhiCore/compile_failure/src/core/floating_point/int.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #include <phi/core/floating_point.hpp>
int main()
{
phi::floating_point<int> f{3};
}
| 12.857143 | 38 | 0.666667 | AMS21 |
d26f8cc9520dbf4879d04c4931444ee1a987fe1e | 1,229 | cpp | C++ | src/Allocator/TaskAllocator.cpp | BISTUCSS/mailio | 970421626654b22da0e63de549a9b3900e22ff96 | [
"BSD-2-Clause"
] | null | null | null | src/Allocator/TaskAllocator.cpp | BISTUCSS/mailio | 970421626654b22da0e63de549a9b3900e22ff96 | [
"BSD-2-Clause"
] | null | null | null | src/Allocator/TaskAllocator.cpp | BISTUCSS/mailio | 970421626654b22da0e63de549a9b3900e22ff96 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by c w on 2021/12/10.
//
#include "iostream"
#include "myinclude/BaseThread.h"
#include "myinclude/TaskAllocator.h"
#include "myinclude/TaskThread.h"
using std::cout;
using std::endl;
TaskAllocator::TaskAllocator() {
}
void TaskAllocator::add_thread(TaskThread* thread) {
thread_list.push_back(thread... | 24.098039 | 100 | 0.527258 | BISTUCSS |
d278562c768c7a8458948296f5634252a0bc7b82 | 3,477 | hpp | C++ | System/thread_pool/ThreadPool.hpp | YS-THX/Hello-Linux | dc222abe4e961a65282d7bc8ac6a301657386ddc | [
"Apache-2.0"
] | 2 | 2020-09-27T07:18:54.000Z | 2020-11-25T01:49:33.000Z | System/thread_pool/ThreadPool.hpp | Mr-Hunter/Linux | dc222abe4e961a65282d7bc8ac6a301657386ddc | [
"Apache-2.0"
] | null | null | null | System/thread_pool/ThreadPool.hpp | Mr-Hunter/Linux | dc222abe4e961a65282d7bc8ac6a301657386ddc | [
"Apache-2.0"
] | null | null | null | #ifndef __THREAD_POOL_HPP__
#define __THREAD_POOL_HPP__
#include <iostream>
#include <queue>
#include <pthread.h>
#include <unistd.h>
using namespace std;
typedef int (*cal_t)(int ,int);
class Task{
private:
int x;
int y;
cal_t handler_task;
int z;
public:
... | 24.835714 | 117 | 0.412712 | YS-THX |
d27adcbefe9265473c38218e1ea4acd4d89e254a | 647 | cpp | C++ | mathematics problems/checking pallindrome.cpp | rishabhrana08/Solving-IB-Series | d09a7accf0eb8fa4284398802daff85b9cc8e27f | [
"MIT"
] | 1 | 2020-07-02T09:24:31.000Z | 2020-07-02T09:24:31.000Z | mathematics problems/checking pallindrome.cpp | rishabhrana08/Solving-IB-Series | d09a7accf0eb8fa4284398802daff85b9cc8e27f | [
"MIT"
] | null | null | null | mathematics problems/checking pallindrome.cpp | rishabhrana08/Solving-IB-Series | d09a7accf0eb8fa4284398802daff85b9cc8e27f | [
"MIT"
] | null | null | null | //solution 1
int Solution::isPalindrome(int x) {
if(x<0)
return false;
if(x==0)
return true;
int len = (int)log10(x)+1;
while(x>0)
{
int l = x%10;
int power = ((int)pow(10,len-1));
int r = x/power;
if(l!=r)
... | 15.780488 | 45 | 0.411128 | rishabhrana08 |
d27b7e79f9e7e2f39302f53d4af965fd0df3abc9 | 11,361 | cc | C++ | lib/matrices/wimax_576_0_5.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 8 | 2018-10-29T14:56:05.000Z | 2022-02-10T09:42:21.000Z | lib/matrices/wimax_576_0_5.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | null | null | null | lib/matrices/wimax_576_0_5.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 4 | 2018-10-16T20:12:56.000Z | 2020-10-19T07:37:05.000Z | #include "matrices.h"
#ifdef Z_24
unsigned int wimax_576_0_5_D = 1;
unsigned int wimax_576_0_5_X = 5;
int16_t wimax_576_0_5[288][7] = {
{47, 66, 205, 236, 289, 312, -1},
{24, 67, 206, 237, 290, 313, -1},
{25, 68, 207, 238, 291, 314, -1},
{26, 69, 208, 239, 292, 315, -1},
{27, 70, 209, 216, 293, 3... | 38.124161 | 40 | 0.47267 | iamviji |
d289e95bbb9e8defbd9926e057f991f06f2e4002 | 11,276 | cpp | C++ | testsuites/unittest/fs/jffs/full/It_vfs_jffs_051.cpp | qdsxinyee4/PatentsViewh | c0e2da8d88ccb6af89d80e38dfc8f2b70f8627f9 | [
"BSD-3-Clause"
] | 175 | 2020-10-21T15:15:18.000Z | 2022-03-31T04:59:30.000Z | testsuites/unittest/fs/jffs/full/It_vfs_jffs_051.cpp | qdsxinyee4/PatentsViewh | c0e2da8d88ccb6af89d80e38dfc8f2b70f8627f9 | [
"BSD-3-Clause"
] | 1 | 2020-12-20T11:41:53.000Z | 2020-12-21T04:49:33.000Z | testsuites/unittest/fs/jffs/full/It_vfs_jffs_051.cpp | qdsxinyee4/PatentsViewh | c0e2da8d88ccb6af89d80e38dfc8f2b70f8627f9 | [
"BSD-3-Clause"
] | 39 | 2020-10-26T03:23:18.000Z | 2022-03-28T16:23:03.000Z | /*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... | 40.707581 | 116 | 0.716123 | qdsxinyee4 |
d28c1f1bf80afca3d6942054bf3c7954db839293 | 656 | cpp | C++ | CT/ZMorpher/ZMaterial.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | CT/ZMorpher/ZMaterial.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | CT/ZMorpher/ZMaterial.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ZMaterial.h"
ZMaterial::ZMaterial( VOID )
{
}
VOID
ZMaterial::Interpolate( FLOAT alpha )
{
Ambient = ( 1.f - alpha ) * min->Ambient + alpha * max->Ambient;
Diffuse = ( 1.f - alpha ) * min->Diffuse + alpha * max->Diffuse;
Specular = ( 1.f - alpha ) * min->Specular + alpha * max->Sp... | 21.866667 | 68 | 0.629573 | ca1773130n |
d294e376382e420cbc193c0b935ecf87f487794f | 1,283 | cpp | C++ | src/comm_write.cpp | guozhenglong/serial_comm | 2ea5e0390ae522bfe5a0dbcc376d2006ecb0f47c | [
"BSD-3-Clause"
] | null | null | null | src/comm_write.cpp | guozhenglong/serial_comm | 2ea5e0390ae522bfe5a0dbcc376d2006ecb0f47c | [
"BSD-3-Clause"
] | null | null | null | src/comm_write.cpp | guozhenglong/serial_comm | 2ea5e0390ae522bfe5a0dbcc376d2006ecb0f47c | [
"BSD-3-Clause"
] | null | null | null | #include "comm_write.h"
namespace serial_mul
{
comm_write::comm_write(std::string serial_port, int baud):dev(serial_port),serial_baudrate(baud)
{
data_len = sizeof(data_t);
data.sof = 0xA5;
data.end = 0xFE;
// dev = "/dev/ttyUSB0";
// serial_baudrate = B9600;
}
bool comm_write::write_setup()
{
// fd ... | 20.365079 | 96 | 0.681216 | guozhenglong |
d2968f3fe75bd5c5b692f5bccc16b9828666aca7 | 4,614 | cpp | C++ | OverlordEngine/CameraComponent.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | null | null | null | OverlordEngine/CameraComponent.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | null | null | null | OverlordEngine/CameraComponent.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | 1 | 2021-09-23T06:21:53.000Z | 2021-09-23T06:21:53.000Z | #include "stdafx.h"
#include "CameraComponent.h"
#include "OverlordGame.h"
#include "TransformComponent.h"
#include "PhysxProxy.h"
#include "GameObject.h"
#include "GameScene.h"
#include <iostream>
CameraComponent::CameraComponent() :
m_FarPlane(2500.0f),
m_NearPlane(0.1f),
m_FOV(DirectX::XM_PIDIV4),
m_Size(25.0f... | 32.957143 | 121 | 0.765496 | Kair0z |
d2976927d731caf498de0ab62a3a0a5b901c567f | 14,299 | cc | C++ | markov.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | markov.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | markov.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #define __MAKEMORE_MARKOV_CC__ 1
#include <netinet/in.h>
#include <string>
#include <algorithm>
#include "cudamem.hh"
#include "tron.hh"
#include "multitron.hh"
#include "twiddle.hh"
#include "closest.hh"
#include "shibboleth.hh"
#include "shibbomore.hh"
#include "convo.hh"
#include "markov.hh"
#include "parson.hh"
... | 26.045537 | 93 | 0.592559 | jdb19937 |
d2a0195e52b42c061696504650956dee954c9bf5 | 1,483 | cpp | C++ | SimpleLanguage/SimpleLanguage/main.cpp | flamewave000/SimpleLanguageCPP | ed03e89ff9108b40a6532c1b983f04318ace221e | [
"MIT"
] | null | null | null | SimpleLanguage/SimpleLanguage/main.cpp | flamewave000/SimpleLanguageCPP | ed03e89ff9108b40a6532c1b983f04318ace221e | [
"MIT"
] | null | null | null | SimpleLanguage/SimpleLanguage/main.cpp | flamewave000/SimpleLanguageCPP | ed03e89ff9108b40a6532c1b983f04318ace221e | [
"MIT"
] | null | null | null | #include "SimpleLanguage.h"
// Create a container that holds code that can be called repeated from anywhere
variable sum_of is a_repeatable_process
that_uses list_of(whole_number) numbers
and_produces_a whole_number
start
variable total is 0;
for_each(number in numbers) total is total plus number;
done_with total;
... | 26.017544 | 79 | 0.767363 | flamewave000 |
d2a10d3e840fc00eaace7fb641a72c1c42d64f5a | 2,194 | hpp | C++ | vm/os-linux-arm.64.hpp | melted/factor | bfc423e43beeebcb14774054c9685fbded456faf | [
"BSD-2-Clause"
] | 930 | 2016-03-01T08:40:07.000Z | 2022-03-29T10:37:39.000Z | vm/os-linux-arm.64.hpp | phred/factor | 3654ddbd8b3d54258edcc0f4e30ec482cfa8a255 | [
"BSD-2-Clause"
] | 1,231 | 2016-02-19T21:52:25.000Z | 2022-03-27T23:24:50.000Z | vm/os-linux-arm.64.hpp | phred/factor | 3654ddbd8b3d54258edcc0f4e30ec482cfa8a255 | [
"BSD-2-Clause"
] | 118 | 2016-02-19T21:37:05.000Z | 2022-02-21T19:44:02.000Z | #include <ucontext.h>
#include <asm/unistd.h>
#include <sys/syscall.h>
namespace factor {
#define CALLSTACK_BOTTOM(ctx) \
(ctx->callstack_seg->end - sizeof(cell) * 5)
static const fixnum xt_tail_pic_offset = 4 + 1;
#define UAP_STACK_POINTER(ucontext) \
(((ucontext_t*)ucontext)->uc_mcontext.sp)
#define UAP_PROGR... | 27.425 | 62 | 0.718323 | melted |
d2a2408b68dde3cda79eca166cfe7f5c50733fc9 | 2,206 | hpp | C++ | source/plc/include/document/GREATER_CHAIN_LOOP.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/plc/include/document/GREATER_CHAIN_LOOP.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/plc/include/document/GREATER_CHAIN_LOOP.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | // This file was generated using Parlex's cpp_generator
#ifndef INCLUDED_GREATER_CHAIN_LOOP_HPP
#define INCLUDED_GREATER_CHAIN_LOOP_HPP
#include <optional>
#include <variant>
#include <vector>
#include "erased.hpp"
#include "parlex/detail/abstract_syntax_tree.hpp"
#include "parlex/detail/builtins.hpp"
#include "pa... | 28.282051 | 252 | 0.755213 | dlin172 |
d2a2c6f8da324be75ee48d9262eeef3f9bf72894 | 2,559 | cpp | C++ | DockerCrypto/node_alice/NodeAlice.cpp | sarkarchandan/ROSCrypto | 1b113e2ad5fb86975537287a283539d4d522afda | [
"MIT"
] | null | null | null | DockerCrypto/node_alice/NodeAlice.cpp | sarkarchandan/ROSCrypto | 1b113e2ad5fb86975537287a283539d4d522afda | [
"MIT"
] | null | null | null | DockerCrypto/node_alice/NodeAlice.cpp | sarkarchandan/ROSCrypto | 1b113e2ad5fb86975537287a283539d4d522afda | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include "node_alice/cipher.h"
#include "node_alice/Crypto.hpp"
#include "node_alice/MessageArchive.hpp"
#include "node_alice/key_generator.h"
class CryptoPubSubHandler
{
private:
ros::Publisher m_Publisher;
ros::Rate m_Rate;
algebra::Matrix<int32_t> m_Key;
public:
CryptoPubSubHandler(... | 33.671053 | 159 | 0.737397 | sarkarchandan |
d2a595c259c23125f5468e294bdf065e08c60990 | 39,649 | cc | C++ | Digit_Example/digit_dynamics_library/src/fLeftToeBottom_vec_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/digit_dynamics_library/src/fLeftToeBottom_vec_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/digit_dynamics_library/src/fLeftToeBottom_vec_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Thu 4 Nov 2021 18:46:09 GMT-04:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "frost/gen/fLeftToeBottom_vec_digit.hh"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE inline ... | 22.656571 | 468 | 0.650559 | prem-chand |
d2ae282ab517ebdeae4e6f0c9fe3721ad2bbfb48 | 1,062 | cpp | C++ | src/tools/dumpBinaryCode.cpp | srokicki/HybridDBT | ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1 | [
"MIT"
] | 26 | 2017-08-28T06:42:22.000Z | 2022-02-26T06:23:19.000Z | src/tools/dumpBinaryCode.cpp | wuiw/HybridDBT-For-RISCV | ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1 | [
"MIT"
] | 2 | 2017-10-24T09:34:12.000Z | 2017-11-09T12:55:48.000Z | src/tools/dumpBinaryCode.cpp | wuiw/HybridDBT-For-RISCV | ddfbe8b2a9a98fe9a8f4bab876614c7af5c002e1 | [
"MIT"
] | 7 | 2017-05-22T13:15:39.000Z | 2022-01-20T09:36:00.000Z | #include <stdio.h>
#include <lib/elfFile.h>
#include <lib/endianness.h>
int main(int argc, char* argv[])
{
printf("/*Extraction of code from %s*/ \n", argv[1]);
ElfFile elfFile((char*)argv[1]);
unsigned char* code;
unsigned int addressStart;
unsigned int size;
for (unsigned int sectionCounter = 0; sect... | 25.902439 | 106 | 0.572505 | srokicki |
d2b350d529aa384a62843c7a5a3ddbfa89cc63d8 | 5,873 | cpp | C++ | Day 19 Part 1/main_v2.cpp | Miroslav-Cetojevic/aoc-2015 | 2807fcd3fc684843ae4222b25af6fd086fac77f5 | [
"Unlicense"
] | 1 | 2019-11-19T20:19:18.000Z | 2019-11-19T20:19:18.000Z | Day 19 Part 1/main_v2.cpp | Miroslav-Cetojevic/aoc-2015 | 2807fcd3fc684843ae4222b25af6fd086fac77f5 | [
"Unlicense"
] | null | null | null | Day 19 Part 1/main_v2.cpp | Miroslav-Cetojevic/aoc-2015 | 2807fcd3fc684843ae4222b25af6fd086fac77f5 | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <array>
#include <iostream>
#include <string_view>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <boost/range/irange.hpp>
#include "input.hpp"
struct ParseStats {
int num_lines,
med_size;
};
constexpr auto NEWLINE = '\n';
constexpr auto UPPERCASE_... | 25.206009 | 103 | 0.654861 | Miroslav-Cetojevic |
d2b5124d8ce110675fd1d74c7ae004505eaaee93 | 2,519 | hh | C++ | tests/libtests/meshio/TestDataWriter.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | tests/libtests/meshio/TestDataWriter.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | tests/libtests/meshio/TestDataWriter.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 33.144737 | 120 | 0.611751 | Grant-Block |
d2bc6830194a7144e864af61edfe8ae9d9aeb6d5 | 282 | cc | C++ | Runtime/StandardLibrary/Start.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | 1 | 2018-07-08T15:47:57.000Z | 2018-07-08T15:47:57.000Z | Runtime/StandardLibrary/Start.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | Runtime/StandardLibrary/Start.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | #include "SystemCall.h"
class Foo
{
public:
Foo(const char* text)
: t(text)
{
}
~Foo()
{
}
private:
const char* t;
};
extern "C" void
start()
{
syscall(0, (void*)0x123456);
Foo foo("Hello");
for (;;)
{
asm volatile("pause");
}
}
| 9.4 | 31 | 0.492908 | ahoka |
d2bc93b04069c39d4fe7d96ac7b2f25d6f43642c | 2,763 | cpp | C++ | mrsid/src/ossimMrSidPluginInit.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 12 | 2016-09-09T01:24:12.000Z | 2022-01-09T21:45:58.000Z | mrsid/src/ossimMrSidPluginInit.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 5 | 2016-02-04T16:10:40.000Z | 2021-06-29T05:00:29.000Z | mrsid/src/ossimMrSidPluginInit.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 20 | 2015-11-17T11:46:22.000Z | 2021-11-12T19:23:54.000Z | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file
//
// Author: Mingjie Su
//
// Description: OSSIM MrSID plugin initialization
// code.
//
//----------------------------------------------------------------------------
// $Id: ossimMrSidPlugin... | 29.393617 | 78 | 0.676439 | dardok |
d2be8d7015142903622b5bc0031fc8853f314f46 | 779 | cpp | C++ | test/test_streams.cpp | noe/encoding | 0c599544bf9b03ad9161b8f9bca0df6936e7d942 | [
"BSD-2-Clause"
] | 1 | 2015-11-24T22:57:11.000Z | 2015-11-24T22:57:11.000Z | test/test_streams.cpp | noe/encoding | 0c599544bf9b03ad9161b8f9bca0df6936e7d942 | [
"BSD-2-Clause"
] | 2 | 2019-05-15T19:15:05.000Z | 2019-05-15T19:15:11.000Z | test/test_streams.cpp | noe/encoding | 0c599544bf9b03ad9161b8f9bca0df6936e7d942 | [
"BSD-2-Clause"
] | null | null | null | #include <sstream>
#include "encoding/codec.hpp"
#include "encoding/integer.hpp"
#include "encoding/input.hpp"
#include "encoding/output.hpp"
#include <gtest/gtest.h>
TEST(TestInputStream, SimpleTest)
{
std::istringstream in({0x01,0x25,0x23,0x53});
encoding::InputStream input(in);
encoding::UnsignedIntegerCod... | 22.911765 | 47 | 0.709884 | noe |
d2bf903538f0471e37c21298d6e47153917898a1 | 1,608 | cpp | C++ | src/engine/engine.cpp | seedhartha/revan | b9a98007ca2f510b42894ecd09fb623571b433dc | [
"MIT"
] | 37 | 2020-06-27T18:50:48.000Z | 2020-08-02T14:13:51.000Z | src/engine/engine.cpp | seedhartha/revan | b9a98007ca2f510b42894ecd09fb623571b433dc | [
"MIT"
] | null | null | null | src/engine/engine.cpp | seedhartha/revan | b9a98007ca2f510b42894ecd09fb623571b433dc | [
"MIT"
] | 1 | 2020-07-14T13:32:15.000Z | 2020-07-14T13:32:15.000Z | /*
* Copyright (c) 2020-2022 The reone project contributors
*
* 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 3 of the License, or
* (at your option) any later version.
*
... | 25.935484 | 73 | 0.715174 | seedhartha |
d2bfa637ddfb774489fb0462653b54dd07c4d307 | 6,605 | cpp | C++ | test/sql/distinct_sql_test.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | 2 | 2021-03-29T01:29:18.000Z | 2022-02-27T11:22:15.000Z | test/sql/distinct_sql_test.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | null | null | null | test/sql/distinct_sql_test.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// distinct_sql_test.cpp
//
// Identification: test/sql/distinct_sql_test.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===-----------------------------------------... | 34.94709 | 110 | 0.663285 | star013 |
d2c063e8403604782e32606bedc49922e8d6ed47 | 125 | cpp | C++ | src/unit_tests/main.cpp | bastig2001/grman_project_2 | ffd5e701b3524e6b41f1cc59a55a2fb3ed6880cc | [
"BSL-1.0"
] | null | null | null | src/unit_tests/main.cpp | bastig2001/grman_project_2 | ffd5e701b3524e6b41f1cc59a55a2fb3ed6880cc | [
"BSL-1.0"
] | null | null | null | src/unit_tests/main.cpp | bastig2001/grman_project_2 | ffd5e701b3524e6b41f1cc59a55a2fb3ed6880cc | [
"BSL-1.0"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest.h>
// automatic main implementation and test case registration
| 25 | 59 | 0.84 | bastig2001 |
d2c5c1bad5e56aec096696463d39d1763ebdfeca | 9,013 | cpp | C++ | source/direct3d9/Direct3D.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/direct3d9/Direct3D.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/direct3d9/Direct3D.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 36.787755 | 149 | 0.7234 | HeavenWu |
d2c978b8a1a5c0c4f7c51b97b39ea9b41ffc142e | 70,522 | cpp | C++ | src/smt/theory_str_mc.cpp | CantelopePeel/z3 | 3caf8eb032c2099e06cf38d20e0a981ad8f9716d | [
"MIT"
] | null | null | null | src/smt/theory_str_mc.cpp | CantelopePeel/z3 | 3caf8eb032c2099e06cf38d20e0a981ad8f9716d | [
"MIT"
] | 16 | 2016-04-13T23:48:33.000Z | 2020-02-02T12:38:52.000Z | src/smt/theory_str_mc.cpp | CantelopePeel/z3 | 3caf8eb032c2099e06cf38d20e0a981ad8f9716d | [
"MIT"
] | null | null | null | /*++
Module Name:
theory_str_mc.cpp
Abstract:
Model Construction for String Theory Plugin
Author:
Murphy Berzish and Yunhui Zheng
Revision History:
--*/
#include "ast/ast_smt2_pp.h"
#include "smt/smt_context.h"
#include "smt/theory_str.h"
#include "smt/smt_model_generator.h"
#include "ast/ast_pp.... | 47.203481 | 196 | 0.516732 | CantelopePeel |
d2cab0c3561ce09faf80a228c73bf0f5835a35b7 | 1,024 | hpp | C++ | include/fmpi/container/FixedVector.hpp | rkowalewski/fmpi | 39a5e9add0d0354c4a2cceeb0a91518bd9f41796 | [
"BSD-3-Clause"
] | null | null | null | include/fmpi/container/FixedVector.hpp | rkowalewski/fmpi | 39a5e9add0d0354c4a2cceeb0a91518bd9f41796 | [
"BSD-3-Clause"
] | null | null | null | include/fmpi/container/FixedVector.hpp | rkowalewski/fmpi | 39a5e9add0d0354c4a2cceeb0a91518bd9f41796 | [
"BSD-3-Clause"
] | null | null | null | #ifndef FMPI_CONTAINER_FIXEDVECTOR_HPP
#define FMPI_CONTAINER_FIXEDVECTOR_HPP
#include <fmpi/memory/DefaultInitAllocator.hpp>
#include <vector>
namespace fmpi {
template <class T, class A = std::allocator<T>>
struct FixedVector : private std::vector<T, A> {
using FixedVector::vector::vector;
using FixedVector::v... | 29.257143 | 72 | 0.75293 | rkowalewski |
d2cfacea9b795961e3468b7fd2cc9d53d1cd56fb | 8,269 | cpp | C++ | src/datalog/datalog.cpp | lucas137/eyelib | e88eaea6dd2c2e4b365d178f67869a3cd47751a5 | [
"MIT"
] | null | null | null | src/datalog/datalog.cpp | lucas137/eyelib | e88eaea6dd2c2e4b365d178f67869a3cd47751a5 | [
"MIT"
] | null | null | null | src/datalog/datalog.cpp | lucas137/eyelib | e88eaea6dd2c2e4b365d178f67869a3cd47751a5 | [
"MIT"
] | null | null | null | //===========================================================================//
/* MIT License
Copyright (c) 2019 Nathan Lucas
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 rest... | 31.803846 | 86 | 0.548797 | lucas137 |
d2dad67cf792543e2cebbd9697cf853f52bc7010 | 307 | cpp | C++ | OnlineJudgeUVa/C++/12xxx/12372 - Packing for Holiday/main.cpp | DVRodri8/Competitive-programs | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | [
"MIT"
] | null | null | null | OnlineJudgeUVa/C++/12xxx/12372 - Packing for Holiday/main.cpp | DVRodri8/Competitive-programs | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | [
"MIT"
] | null | null | null | OnlineJudgeUVa/C++/12xxx/12372 - Packing for Holiday/main.cpp | DVRodri8/Competitive-programs | db90c63aea8fa4403ae7ec735c7f7ce73c842be4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(){
int t;
cin >> t;
int l,w,h;
for(int c=1; c<=t; c++){
string output = "good";
cin >> l >> w >> h;
if(l > 20 || w > 20 || h > 20) output = "bad";
cout << "Case " << c << ": " << output << '\n';
}
std::cout << '\n';
return 0;
}
| 15.35 | 49 | 0.488599 | DVRodri8 |
d2dd6dbdd13dc7ba53874dab37b6d8479356b267 | 1,055 | cpp | C++ | Archives/A_Bachgold_Problem.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | 2 | 2021-03-05T08:40:01.000Z | 2021-04-25T13:58:42.000Z | Archives/A_Bachgold_Problem.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | Archives/A_Bachgold_Problem.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;
#define Mod 1000000007
#define Infinity (ll)1e18
#define Append(a) push_back(a)
#define Pair(a,b) make_pair(a,b)
#define Clear(a) for(ll &x : a){x=0;}
#define Point(x) std::fixed<<setpreci... | 20.288462 | 69 | 0.570616 | pawan-nirpal-031 |
d2dfa88c8fd834c9c0e00f5fc480e25efd1296c0 | 1,213 | cpp | C++ | src/benchmark/system_error.cpp | qis/result-benchmark | 171cff3a690254e85b1383e3aa1b1d735f6de9dc | [
"MIT-0"
] | 1 | 2020-03-12T17:31:44.000Z | 2020-03-12T17:31:44.000Z | src/benchmark/system_error.cpp | qis/benchmark | 171cff3a690254e85b1383e3aa1b1d735f6de9dc | [
"MIT-0"
] | null | null | null | src/benchmark/system_error.cpp | qis/benchmark | 171cff3a690254e85b1383e3aa1b1d735f6de9dc | [
"MIT-0"
] | null | null | null | #include <error_code.hpp>
#include <native.hpp>
#include <benchmark/benchmark.h>
#include <string_view>
inline std::string_view system_error_string()
{
const char* data = nullptr;
size_t size = 0;
if (const auto e = static_cast<error>(native_string(&data, &size)); e != error::success) {
throw std::system_err... | 24.755102 | 92 | 0.704864 | qis |
5e42c42b73ebef8eb6c388cf00a7f3cd9183b379 | 2,491 | cpp | C++ | Stack/StackArray/stackArrayFunc.cpp | hectorRod101/cPlusPlusCode | 9daa801d36a9485db592f1efb4112bef7c57421f | [
"MIT"
] | null | null | null | Stack/StackArray/stackArrayFunc.cpp | hectorRod101/cPlusPlusCode | 9daa801d36a9485db592f1efb4112bef7c57421f | [
"MIT"
] | null | null | null | Stack/StackArray/stackArrayFunc.cpp | hectorRod101/cPlusPlusCode | 9daa801d36a9485db592f1efb4112bef7c57421f | [
"MIT"
] | null | null | null | /* -----------------------------------------------------------------
File stackFunc.cpp implements the function(s), constructor(s),
and overloaded operator(s) declared inside file stack.h.
----------------------------------------------------------------- */
//
// Copyright(c) 2020 Hector Rodriguez.
// Dis... | 19.614173 | 77 | 0.463669 | hectorRod101 |
5e4b55f160e256b976d0439f172808c080db347f | 12,434 | hpp | C++ | Nacro/SDK/FN_WindManager_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_WindManager_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_WindManager_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass WindManager.WindManager_... | 114.073394 | 703 | 0.607367 | Milxnor |
5e4b5ee49087d93dc106970b4ed26f1ffee88d57 | 719 | cpp | C++ | src/LithUSS/TextNormalization.cpp | jvitkauskas/liepa | 2a1e0d27e326a739691414b59474cd09dce16bfa | [
"0BSD"
] | null | null | null | src/LithUSS/TextNormalization.cpp | jvitkauskas/liepa | 2a1e0d27e326a739691414b59474cd09dce16bfa | [
"0BSD"
] | null | null | null | src/LithUSS/TextNormalization.cpp | jvitkauskas/liepa | 2a1e0d27e326a739691414b59474cd09dce16bfa | [
"0BSD"
] | null | null | null | #include "stdafx.h"
#include "TextNormalization.h"
HINSTANCE hinstDllTN;
PROCICC initTextNorm;
PROCISSII normalizeText;
PROCISSII spellText;
BOOL loadTextNorm(char *biblioteka)
{
if (!(hinstDllTN = LoadLibrary(biblioteka))) //"TextNormalization.dll"
return FALSE;
initTextNorm = (PROCICC)GetProcAddress(hinstDllTN... | 21.787879 | 72 | 0.741307 | jvitkauskas |
5e4e69fe58f61bf7ff6a7f8cf239dbd6c00832e1 | 7,837 | cc | C++ | node_modules/nodegit/src/status_list.cc | hsleonis/ngMaker | 7b2d8a8969bbfdf224e344e1df959d7115ba5301 | [
"MIT"
] | 2 | 2016-08-12T06:30:45.000Z | 2016-08-17T20:18:06.000Z | node_modules/nodegit/src/status_list.cc | hsleonis/ngMaker | 7b2d8a8969bbfdf224e344e1df959d7115ba5301 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/status_list.cc | hsleonis/ngMaker | 7b2d8a8969bbfdf224e344e1df959d7115ba5301 | [
"MIT"
] | null | null | null | // This is a generated file, modify: generate/templates/class_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
}
#include "../include/functions/copy.h"
#include "../include/status_list.h"
#include "../include/diff_perfdata.h"
#include "../incl... | 26.387205 | 154 | 0.650504 | hsleonis |
5e4f9e47282a62f11d2fa1a81685c84e2fd20e2b | 9,755 | cpp | C++ | XRmonitorsService/src/UsbHubPowerFix.cpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 40 | 2020-04-19T23:27:06.000Z | 2022-01-01T16:59:10.000Z | XRmonitorsService/src/UsbHubPowerFix.cpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 2 | 2020-05-29T01:14:33.000Z | 2021-12-29T04:07:28.000Z | XRmonitorsService/src/UsbHubPowerFix.cpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 1 | 2020-07-24T16:08:57.000Z | 2020-07-24T16:08:57.000Z | // Copyright 2019 Augmented Perception Corporation
#include "UsbHubPowerFix.hpp"
#include "core_string.hpp"
#include "core_logger.hpp"
#include <comdef.h>
#include <Dbt.h>
#include <SetupAPI.h>
#include <Cfgmgr32.h>
#include <InitGuid.h>
#include <Devpkey.h>
#include <usbiodef.h> // GUID_DEVINTERFACE_USB_DEVICE
#inc... | 30.676101 | 135 | 0.595592 | catid |
5e50a2461bf9647855b5f2632fbfc2d530b09644 | 1,438 | cpp | C++ | nowcoder/contests/牛客算法周练10/F.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | nowcoder/contests/牛客算法周练10/F.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | nowcoder/contests/牛客算法周练10/F.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#define ll long long
#define F(i,a,b) for(int i=(a);i<=(b);i++)
#define mst(a,b) memset((a),(b),sizeof(a))
#define PII pair<int,int>
#define rep(i,x,y) for(auto i=(x);i<... | 21.462687 | 67 | 0.520862 | songhn233 |
5e50a63ac14d6178f2d948acae902d97457f64b3 | 1,765 | cpp | C++ | PrCmp/excluded/fugaAlcatraz.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | PrCmp/excluded/fugaAlcatraz.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | PrCmp/excluded/fugaAlcatraz.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
using ii = pair<double, double>;
using vii = vector<ii>;
const int VIS = 10;
vector<int> parent;
int findRoot(int i){
if(parent[i] == i) return i;
else return findRoot(parent[i]);
return -1;
}
bool collide(i... | 22.628205 | 124 | 0.478754 | ayhon |
5e5576fee87bb905d479c1f7d6eaf14501a17a13 | 1,352 | hpp | C++ | src/libcvm/expression.hpp | marian556/cvm | 137a02cb841273fc7dd5d654c9c6f1e7df6ce8b8 | [
"BSL-1.0"
] | 2 | 2019-10-01T10:19:41.000Z | 2020-09-04T00:14:36.000Z | src/libcvm/expression.hpp | marian556/cvm | 137a02cb841273fc7dd5d654c9c6f1e7df6ce8b8 | [
"BSL-1.0"
] | null | null | null | src/libcvm/expression.hpp | marian556/cvm | 137a02cb841273fc7dd5d654c9c6f1e7df6ce8b8 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2014 Joel de Guzman (spirit 3 , calc9 example)
2018-2019 Marian Klein (cvm)
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boo... | 35.578947 | 91 | 0.647189 | marian556 |
5e597d4e92c34251c1c5161424687335596bc835 | 1,922 | hpp | C++ | include/stl2/detail/algorithm/find_first_of.hpp | melton1968/cmcstl2 | 15052dda39c93c460b8e0e16fff62d8eb4388627 | [
"MIT"
] | null | null | null | include/stl2/detail/algorithm/find_first_of.hpp | melton1968/cmcstl2 | 15052dda39c93c460b8e0e16fff62d8eb4388627 | [
"MIT"
] | null | null | null | include/stl2/detail/algorithm/find_first_of.hpp | melton1968/cmcstl2 | 15052dda39c93c460b8e0e16fff62d8eb4388627 | [
"MIT"
] | null | null | null | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.c... | 32.033333 | 82 | 0.661811 | melton1968 |
5e5f89a72f6317df11e863d50b8e000f61eebebc | 460 | hpp | C++ | agency/experimental.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 129 | 2016-08-18T23:24:15.000Z | 2022-03-25T12:06:05.000Z | agency/experimental.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 86 | 2016-08-19T03:43:33.000Z | 2020-07-20T14:27:41.000Z | agency/experimental.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 23 | 2016-08-18T23:52:13.000Z | 2022-02-28T16:28:20.000Z | #pragma once
#include <agency/detail/config.hpp>
#include <agency/experimental/bounded_integer.hpp>
#include <agency/experimental/ndarray.hpp>
#include <agency/experimental/optional.hpp>
#include <agency/experimental/ranges.hpp>
#include <agency/experimental/segmented_array.hpp>
#include <agency/experimental/short_vec... | 32.857143 | 50 | 0.815217 | nerikhman |
5e66ade9071a2217777ac29691c6d4f2711dd645 | 3,212 | cpp | C++ | src/vc/FMODGMS/FMODGMS/AnnotationStore.cpp | danslocombe/FMODGMS | 06ba0148cb652b8cf643d7e1902e6db5358a3c26 | [
"BSD-2-Clause"
] | null | null | null | src/vc/FMODGMS/FMODGMS/AnnotationStore.cpp | danslocombe/FMODGMS | 06ba0148cb652b8cf643d7e1902e6db5358a3c26 | [
"BSD-2-Clause"
] | null | null | null | src/vc/FMODGMS/FMODGMS/AnnotationStore.cpp | danslocombe/FMODGMS | 06ba0148cb652b8cf643d7e1902e6db5358a3c26 | [
"BSD-2-Clause"
] | null | null | null | #include "AnnotationStore.h"
#include <charconv>
std::optional<TimeRange> TimeRange::Parse(const std::string_view& str)
{
// Parse string
// Form:
// (1.0, 1.7)
const auto tupleStart = str.find('(');
const auto separatorPos = str.find(',', tupleStart + 1);
const auto secondStart = str.find_... | 26.113821 | 110 | 0.616438 | danslocombe |
5e6daae5098c28e0b99594cba17488fc23bde755 | 1,095 | hpp | C++ | emulador/src/map/atcommand.hpp | dattebayoonline/Dattebayo | 09526566f63e76b9a5ce80f1f4e3d1918e26cf01 | [
"DOC",
"OLDAP-2.2.1"
] | 1 | 2022-03-24T17:24:12.000Z | 2022-03-24T17:24:12.000Z | emulador/src/map/atcommand.hpp | eluvju/Dattebayo | cc0fc92d8827f4890a8595bc3be0a71ef98767c1 | [
"DOC"
] | null | null | null | emulador/src/map/atcommand.hpp | eluvju/Dattebayo | cc0fc92d8827f4890a8595bc3be0a71ef98767c1 | [
"DOC"
] | null | null | null | // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef ATCOMMAND_HPP
#define ATCOMMAND_HPP
#include "../common/cbasetypes.hpp"
#include "../common/mmo.hpp"
struct map_session_data;
//global var
extern char atcommand_symbol;
extern char charcommand... | 25.465116 | 114 | 0.779909 | dattebayoonline |
5e6fbf126930ee19df46c81101576503a8082b4e | 62,843 | cpp | C++ | src/common/backend/catalog/cstore_ctlg.cpp | Purlemon/openGuass-603 | 14b7414a8da671f1dfbafa2006660f5da27f6a36 | [
"MulanPSL-1.0"
] | null | null | null | src/common/backend/catalog/cstore_ctlg.cpp | Purlemon/openGuass-603 | 14b7414a8da671f1dfbafa2006660f5da27f6a36 | [
"MulanPSL-1.0"
] | null | null | null | src/common/backend/catalog/cstore_ctlg.cpp | Purlemon/openGuass-603 | 14b7414a8da671f1dfbafa2006660f5da27f6a36 | [
"MulanPSL-1.0"
] | null | null | null | /*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditio... | 34.434521 | 131 | 0.701669 | Purlemon |
5e71619fb317aea12486817850520906d247ab11 | 506 | cpp | C++ | SourceFiles/rangebasedloops.cpp | hareeshghk/CPP-Learning-Udemy | 556243af787c6c482e390c0d12e038ba4a355ca2 | [
"Apache-2.0"
] | null | null | null | SourceFiles/rangebasedloops.cpp | hareeshghk/CPP-Learning-Udemy | 556243af787c6c482e390c0d12e038ba4a355ca2 | [
"Apache-2.0"
] | null | null | null | SourceFiles/rangebasedloops.cpp | hareeshghk/CPP-Learning-Udemy | 556243af787c6c482e390c0d12e038ba4a355ca2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
int main() {
using namespace std;
auto list = {1, 2, 3, 4, 5};
for (const auto & val : list) {
cout << val << " " << "\n";
}
for (const auto &item : {1,2,3,4,5}) {
cout << item << " ";
}
cout << endl;
// psedo code on how range for loop works.
a... | 20.24 | 46 | 0.466403 | hareeshghk |
5e749f019f4458a83fa0c6ac847e994130ec1a48 | 2,458 | inl | C++ | include/camera.inl | Robzz/troll_engine | 24c9a944e41afad8c7b03921395da116575cb60e | [
"MIT"
] | null | null | null | include/camera.inl | Robzz/troll_engine | 24c9a944e41afad8c7b03921395da116575cb60e | [
"MIT"
] | null | null | null | include/camera.inl | Robzz/troll_engine | 24c9a944e41afad8c7b03921395da116575cb60e | [
"MIT"
] | null | null | null | #ifndef CAMERA_H
#include "camera.h"
#endif
template <class T>
Camera<T>::Camera() : m_camToWorld() { }
template <class T>
Camera<T>::Camera(Camera const& other) :
m_camToWorld(other.m_camToWorld)
{ }
template <class T>
Camera<T>::~Camera() { }
template <class T>
Camera<T>& Camera<T>::operator=(Camera const& ot... | 31.113924 | 93 | 0.577705 | Robzz |
5e76abfd786a057f36eae583cf765df1cbe41509 | 6,038 | cpp | C++ | src/badges.cpp | dacom-core/unicore | 4fff619e3043f39d77e40d1612abb4dcbddc6649 | [
"MIT"
] | null | null | null | src/badges.cpp | dacom-core/unicore | 4fff619e3043f39d77e40d1612abb4dcbddc6649 | [
"MIT"
] | null | null | null | src/badges.cpp | dacom-core/unicore | 4fff619e3043f39d77e40d1612abb4dcbddc6649 | [
"MIT"
] | null | null | null |
[[eosio::action]] void unicore::setbadge(uint64_t id, eosio::name host, eosio::string caption, eosio::string description, eosio::string iurl, eosio::string pic, uint64_t total, uint64_t power){
require_auth(host);
account_index accounts(_me, host.value);
auto acc = accounts.find(host.value);
eosio::check(... | 28.616114 | 194 | 0.647234 | dacom-core |
5e7aba36a3912db0b08cbd5aba7e6be813193098 | 2,396 | cpp | C++ | PXL/src/ui/widgets/splitter.cpp | Vyraax/PXL | 97b983e2b3fc9cebb85d67c66ab81a5a668d50a0 | [
"MIT"
] | 12 | 2019-07-09T06:13:47.000Z | 2021-02-02T16:29:08.000Z | PXL/src/ui/widgets/splitter.cpp | 0zirix/PXL | 97b983e2b3fc9cebb85d67c66ab81a5a668d50a0 | [
"MIT"
] | null | null | null | PXL/src/ui/widgets/splitter.cpp | 0zirix/PXL | 97b983e2b3fc9cebb85d67c66ab81a5a668d50a0 | [
"MIT"
] | null | null | null | #include "splitter.h"
#include "layout.h"
Splitter::Splitter(const glm::vec2& position, const glm::vec2& size) : Widget(position, size)
{
m_background = nvgRGB(0, 0, 0);
m_offset = glm::vec2(0.0f);
}
void Splitter::update(double delta)
{
if (this->getState("hovered"))
{
m_background = nvgRGB(47, 124, 202);
... | 21.392857 | 135 | 0.66611 | Vyraax |
5e7bbabb6c1125a627b79b5b5920b917b8f725e0 | 1,868 | cpp | C++ | ConStorm/src/output/clear_screen.cpp | drake200120xx/ConStorm | bfc47b6424154e8258d375d0a5eaff687d0cad27 | [
"Apache-2.0"
] | null | null | null | ConStorm/src/output/clear_screen.cpp | drake200120xx/ConStorm | bfc47b6424154e8258d375d0a5eaff687d0cad27 | [
"Apache-2.0"
] | null | null | null | ConStorm/src/output/clear_screen.cpp | drake200120xx/ConStorm | bfc47b6424154e8258d375d0a5eaff687d0cad27 | [
"Apache-2.0"
] | null | null | null | /*
Code by Drake Johnson
*/
#include "../../include/cons/output/clear_screen.hpp"
#include "../../include/cons/output/print.hpp"
#ifdef _WIN32
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // !WIN32_LEAN_AND_MEAN
# include <windows.h>
namespace cons
{
void clear_screen()
{
... | 31.133333 | 124 | 0.597966 | drake200120xx |
5e7dcc3f6909a98925f4796701a267bf5e9ea91d | 85 | cpp | C++ | GstRtStreaming/LibGst.cpp | WebRTSP/RtcStreaming | caf97c2f8d29663b17a0f6efef7f8a16db7f3862 | [
"MIT"
] | null | null | null | GstRtStreaming/LibGst.cpp | WebRTSP/RtcStreaming | caf97c2f8d29663b17a0f6efef7f8a16db7f3862 | [
"MIT"
] | 1 | 2021-08-19T12:10:51.000Z | 2021-08-20T04:47:42.000Z | GstRtStreaming/LibGst.cpp | WebRTSP/RtcStreaming | caf97c2f8d29663b17a0f6efef7f8a16db7f3862 | [
"MIT"
] | 1 | 2022-02-20T15:54:40.000Z | 2022-02-20T15:54:40.000Z | #include "LibGst.h"
#include <gst/gst.h>
LibGst::LibGst()
{
gst_init(0, 0);
}
| 8.5 | 20 | 0.588235 | WebRTSP |
5e834abc563572dac951c1ef906f002665b001d6 | 6,384 | cpp | C++ | qt-cli/cliconnection.cpp | DappNBS/im-qml | 55d60156a4b5e308fcf281f3afe024698053d432 | [
"MIT"
] | null | null | null | qt-cli/cliconnection.cpp | DappNBS/im-qml | 55d60156a4b5e308fcf281f3afe024698053d432 | [
"MIT"
] | null | null | null | qt-cli/cliconnection.cpp | DappNBS/im-qml | 55d60156a4b5e308fcf281f3afe024698053d432 | [
"MIT"
] | null | null | null | #include "cliconnection.h"
static const int TransferTimeout = 30 * 1000;
static const char SeparatorToken = ' ';
CliConnection::CliConnection(QObject *parent) : QTcpSocket (parent)
{
this->greetingMessage = QObject::tr("undefined");
this->userName = QObject::tr("unknown");
this->state = Wai... | 26.823529 | 85 | 0.602757 | DappNBS |
5e849b800422fe013c3e81583090aa442c4db5ba | 3,190 | cpp | C++ | Servercpp/ServerCPP/ServerCPP/lib/Communication/TransportLayer/WindowsListener.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | 2 | 2021-01-27T20:06:54.000Z | 2021-03-02T14:30:37.000Z | Servercpp/ServerCPP/ServerCPP/lib/Communication/TransportLayer/WindowsListener.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | null | null | null | Servercpp/ServerCPP/ServerCPP/lib/Communication/TransportLayer/WindowsListener.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | null | null | null | #include "robotguide/Communication/TransportLayer/WindowsListener.h"
#include "robotguide/Communication/TransportLayer/SocketInitializationException.h"
#include "robotguide/Communication/TransportLayer/SocketException.h"
#include <stdexcept>
#include <WS2tcpip.h>
using namespace robotguide::com::transportlayer;
Windo... | 23.984962 | 109 | 0.763009 | RobotGuide |
5e84d2e59784b2aac8e68dff4ee8143e8fe67dbf | 31,207 | cpp | C++ | src/vcl/hid/windows/hid.cpp | bfierz/vcl.hid | 4193fe488d6759306e297b225e3a3c4da58716b0 | [
"MIT"
] | 1 | 2020-03-26T20:39:34.000Z | 2020-03-26T20:39:34.000Z | src/vcl/hid/windows/hid.cpp | bfierz/vcl.hid | 4193fe488d6759306e297b225e3a3c4da58716b0 | [
"MIT"
] | null | null | null | src/vcl/hid/windows/hid.cpp | bfierz/vcl.hid | 4193fe488d6759306e297b225e3a3c4da58716b0 | [
"MIT"
] | null | null | null | /*
* This file is part of the Visual Computing Library (VCL) release under the
* license.
*
* Copyright (c) 2017 Basil Fierz
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software with... | 31.843878 | 156 | 0.696863 | bfierz |
5e850ab7acae3f3216122a64792aedaa96f8aa54 | 1,626 | hpp | C++ | LearningVulkan/src/LearningVulkan/pipeline/Instance.hpp | DomRe/Vulkano | 0cfbd73065e3c9441c35acf54e1d280f035bfe61 | [
"MIT"
] | null | null | null | LearningVulkan/src/LearningVulkan/pipeline/Instance.hpp | DomRe/Vulkano | 0cfbd73065e3c9441c35acf54e1d280f035bfe61 | [
"MIT"
] | null | null | null | LearningVulkan/src/LearningVulkan/pipeline/Instance.hpp | DomRe/Vulkano | 0cfbd73065e3c9441c35acf54e1d280f035bfe61 | [
"MIT"
] | null | null | null | #ifndef VULKANO_PIPELINE_INSTANCE_HPP_
#define VULKANO_PIPELINE_INSTANCE_HPP_
#include <optional>
#include <span>
#include <vector>
#include <GLFW/glfw3.h>
namespace vulkano
{
///
/// Useful to store queue familys that physical device supports when determining valid gpu.
///
struct QueueFamilyIndexs
{
std::op... | 24.268657 | 104 | 0.736777 | DomRe |
5e8bb3f3694ebbc749492ad5945fb1b66836f2d1 | 6,643 | hpp | C++ | include/jln/mp/algorithm/merge.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp/algorithm/merge.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp/algorithm/merge.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/number/operators.hpp>
#include <type_traits>
namespace jln::mp
{
/// \cond
namespace detail
{
template<bool, bool>
struct _dispatch_merge;
}
/// \endcond
/// \ingroup algorithm
/// Merges two \list into one sorted \sequence.
/// \pre `emp::is_sorted<seq1, Cmp>... | 25.452107 | 90 | 0.570977 | jonathanpoelen |
5e9744c8b711d490d6bd0020c771eaa8af23c1f2 | 1,636 | cpp | C++ | CPVulkan/Event.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | 1 | 2019-11-13T00:47:05.000Z | 2019-11-13T00:47:05.000Z | CPVulkan/Event.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | null | null | null | CPVulkan/Event.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | null | null | null | #include "Event.h"
#include "Device.h"
#include "Platform.h"
#include <cassert>
Event::~Event()
{
Platform::CloseMutex(handle);
}
VkResult Event::Signal()
{
Platform::SignalMutex(handle);
return VK_SUCCESS;
}
VkResult Event::Reset()
{
Platform::ResetMutex(handle);
return VK_SUCCESS;
}
VkResult Event::Wait(ui... | 20.197531 | 124 | 0.757946 | MatthewSmit |
5e9c8fd6821d9b1036cb7bb9990b5c287908e4c2 | 17,954 | hpp | C++ | libs/boost/boost/thread/pthread/shared_mutex.hpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | libs/boost/boost/thread/pthread/shared_mutex.hpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | 4 | 2019-09-26T10:58:14.000Z | 2020-02-06T09:10:33.000Z | libs/boost/boost/thread/pthread/shared_mutex.hpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #ifndef BOOST_THREAD_PTHREAD_SHARED_MUTEX_HPP
#define BOOST_THREAD_PTHREAD_SHARED_MUTEX_HPP
// (C) Copyright 2006-8 Anthony Williams
// (C) Copyright 2012 Vicente J. Botet Escriba
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.bo... | 30.743151 | 91 | 0.549738 | creatologist |
5e9dcfe781741899da4122e9acf2f5612fa1bb5a | 2,210 | cpp | C++ | src/PIDcontroller.cpp | zzjkf2009/Turtlebot_Search_Rescue | 1259a36a02ae9050b2858e02df79cd429d152624 | [
"MIT"
] | null | null | null | src/PIDcontroller.cpp | zzjkf2009/Turtlebot_Search_Rescue | 1259a36a02ae9050b2858e02df79cd429d152624 | [
"MIT"
] | null | null | null | src/PIDcontroller.cpp | zzjkf2009/Turtlebot_Search_Rescue | 1259a36a02ae9050b2858e02df79cd429d152624 | [
"MIT"
] | null | null | null | /********************************************************************
* MIT License
*
* Copyright (c) 2017 Zejiang Zeng
*
* 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... | 35.079365 | 82 | 0.688235 | zzjkf2009 |
5ea6e4ad1136185407d227090efa1dad1744d5fe | 627 | cpp | C++ | src/math/Vector2.cpp | alexandervanrenen/gda | 47903539b8dcb94193adeb19f47d8d6d4f591d28 | [
"CC0-1.0"
] | null | null | null | src/math/Vector2.cpp | alexandervanrenen/gda | 47903539b8dcb94193adeb19f47d8d6d4f591d28 | [
"CC0-1.0"
] | null | null | null | src/math/Vector2.cpp | alexandervanrenen/gda | 47903539b8dcb94193adeb19f47d8d6d4f591d28 | [
"CC0-1.0"
] | null | null | null | //
// This file is part of the gda cpp utility library.
// Copyright (c) 2011 Alexander van Renen. All rights reserved.
//
// Purpose - A 2d vector.
// -------------------------------------------------------------------------------------------------
#include "gda/math/Vector2.hpp"
// -----------------------------------... | 48.230769 | 100 | 0.248804 | alexandervanrenen |
5eab31d6203cde087c796ea41103c8d512292b68 | 491 | cc | C++ | example.cc | greensky00/stack_backtrace | a6144373e73772be89f62779c86fa31622ffa7ab | [
"MIT"
] | 1 | 2020-12-08T02:02:13.000Z | 2020-12-08T02:02:13.000Z | example.cc | greensky00/stack_backtrace | a6144373e73772be89f62779c86fa31622ffa7ab | [
"MIT"
] | null | null | null | example.cc | greensky00/stack_backtrace | a6144373e73772be89f62779c86fa31622ffa7ab | [
"MIT"
] | null | null | null | #include "backtrace.h"
#include <signal.h>
#include <stdio.h>
int func_b(int* a) {
int aa = *a * 2;
return aa;
}
int func_a() {
int* a = NULL;
return func_b(a) + 2;
}
void (*old_handler)(int);
void sig_handler(int signum) {
char buf[4096];
size_t len = stack_backtrace(buf, 4096);
printf(... | 16.366667 | 47 | 0.592668 | greensky00 |
5eabbacaccabc4ea2a39290eea322bf583e1c15a | 1,063 | hpp | C++ | core.hpp | rfthejakohead/sfte | f78fd865b974cb01e91849aa0ee4b79ab709dde2 | [
"Unlicense"
] | null | null | null | core.hpp | rfthejakohead/sfte | f78fd865b974cb01e91849aa0ee4b79ab709dde2 | [
"Unlicense"
] | null | null | null | core.hpp | rfthejakohead/sfte | f78fd865b974cb01e91849aa0ee4b79ab709dde2 | [
"Unlicense"
] | null | null | null | #ifndef SFTE_CORE_HPP
#define SFTE_CORE_HPP
#define _USE_MATH_DEFINES
#include <SFML/Graphics.hpp>
#include <vector>
#include <iostream>
#include <math.h>
#include <time.h>
#include <algorithm>
namespace sf {
typedef sf::Vector3< size_t > Vector3u;
}
namespace sfte {
struct FloatColor { // The unit used by sfte to... | 32.212121 | 147 | 0.719661 | rfthejakohead |
5eac39093e31443728f8f898faa1c3602caaf9e7 | 849 | cpp | C++ | code-serial-sculptor/UnitTests/SculptorTest.cpp | undebutant/serial-sculptor | 0a6ba557c9dbd3e3c822d38b5d96810b897bf5d4 | [
"MIT"
] | null | null | null | code-serial-sculptor/UnitTests/SculptorTest.cpp | undebutant/serial-sculptor | 0a6ba557c9dbd3e3c822d38b5d96810b897bf5d4 | [
"MIT"
] | 1 | 2017-06-09T10:40:32.000Z | 2017-06-09T10:40:57.000Z | code-serial-sculptor/UnitTests/SculptorTest.cpp | undebutant/serial-sculptor | 0a6ba557c9dbd3e3c822d38b5d96810b897bf5d4 | [
"MIT"
] | null | null | null | #include "../MaBibliotheque/Sculptor.h"
#include "gtest/gtest.h"
class SculptorTest : public::testing::Test {
protected:
// All functions can be removed if its body is empty
SculptorTest() {
// You can do set-up work for each test here
}
virtual ~SculptorTest() {
// You can do clean-up work that doesn't thr... | 22.945946 | 75 | 0.713781 | undebutant |
5eaca3f7ba4b917a245a9ac2380c90d7e7a69b33 | 14,940 | cpp | C++ | src/clReflectUtil/SerialiseVersionedBinary.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null | src/clReflectUtil/SerialiseVersionedBinary.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null | src/clReflectUtil/SerialiseVersionedBinary.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null |
//
// ===============================================================================
// clReflect
// -------------------------------------------------------------------------------
// Copyright (c) 2011-2012 Don Williamson & clReflect Authors (see AUTHORS file)
// Released under MIT License (see LICENSE file)
... | 28.241966 | 128 | 0.650535 | chip5441 |
5eaeb2922813294e11c185c67721241eec6ab56f | 693 | cpp | C++ | DrawingBook.cpp | d3cod3monk78/hackerrank | 8f3174306754d04d07b42d5c7a95ab32abf17fa1 | [
"MIT"
] | null | null | null | DrawingBook.cpp | d3cod3monk78/hackerrank | 8f3174306754d04d07b42d5c7a95ab32abf17fa1 | [
"MIT"
] | null | null | null | DrawingBook.cpp | d3cod3monk78/hackerrank | 8f3174306754d04d07b42d5c7a95ab32abf17fa1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <vector>
#include <cstdlib>
#include <string>
#include <string.h>
using namespace std;
typedef long long int ll;
int getTurns(ll n , ll p) {
int temp = (n%2 == 0) ? n : n + 1;
int turns = 0;
if(p == 1 || p == temp) {
turns = 0;
}
else {
if (p < (ll)(temp / 2) && (temp/2)%2 =... | 16.116279 | 51 | 0.47619 | d3cod3monk78 |
5eb3909b5f382c9c3c236d0bb8f45c6a9330e695 | 8,569 | hpp | C++ | src/libblockchain/sessions.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | 4 | 2019-11-20T17:27:57.000Z | 2021-01-05T09:46:20.000Z | src/libblockchain/sessions.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | null | null | null | src/libblockchain/sessions.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | 2 | 2019-01-10T14:10:26.000Z | 2020-03-01T05:55:05.000Z | #pragma once
#include "message.hpp"
#include <belt.pp/socket.hpp>
#include <mesh.pp/p2psocket.hpp>
#include <mesh.pp/sessionutility.hpp>
#include <vector>
#include <string>
#include <functional>
#include <unordered_set>
namespace publiqpp
{
namespace detail
{
class node_internals;
}
class nodeid_service;
class ses... | 35.556017 | 106 | 0.715253 | publiqnet |
5eb4942a348a61927e137ff84003d3e05075ea9f | 1,721 | cpp | C++ | bin/zorbacmd_props.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 94 | 2015-01-18T09:40:36.000Z | 2022-03-02T21:14:55.000Z | bin/zorbacmd_props.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 72 | 2015-01-05T22:00:31.000Z | 2021-07-17T11:35:03.000Z | bin/zorbacmd_props.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 27 | 2015-01-18T20:20:54.000Z | 2020-11-01T18:01:07.000Z | /*
* Copyright 2006-2014 The FLWOR Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 27.31746 | 79 | 0.656595 | jsoniq |
5eb7252ed299dee4254bcce869187f593c6c3964 | 1,832 | hpp | C++ | include/tsid/formulations/contact-level.hpp | hucebot/tsid | b0d6bff80292fb3451ca7ca438a4ab84b5b8c022 | [
"BSD-2-Clause"
] | 74 | 2017-10-19T08:05:15.000Z | 2022-02-20T16:31:17.000Z | include/tsid/formulations/contact-level.hpp | hucebot/tsid | b0d6bff80292fb3451ca7ca438a4ab84b5b8c022 | [
"BSD-2-Clause"
] | 123 | 2017-06-16T14:10:59.000Z | 2022-03-31T07:04:32.000Z | include/tsid/formulations/contact-level.hpp | hucebot/tsid | b0d6bff80292fb3451ca7ca438a4ab84b5b8c022 | [
"BSD-2-Clause"
] | 42 | 2017-11-24T15:11:52.000Z | 2022-03-22T11:10:34.000Z | //
// Copyright (c) 2021 University of Trento
//
// This file is part of tsid
// tsid 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
// 3 of the License, or (at your option) any later ... | 36.64 | 97 | 0.758188 | hucebot |
5eb8532956d8bd457b882403576aeafd230a5ae9 | 4,028 | cpp | C++ | Module1/Common/UnitColorCube.cpp | wow2006/OpenGLBuildHighPerformanceGraphics | 0174af58afd8da66425f15b218b26d4f99653899 | [
"MIT"
] | 1 | 2021-11-04T05:14:01.000Z | 2021-11-04T05:14:01.000Z | Module1/Common/UnitColorCube.cpp | wow2006/OpenGLBuildHighPerformanceGraphics | 0174af58afd8da66425f15b218b26d4f99653899 | [
"MIT"
] | null | null | null | Module1/Common/UnitColorCube.cpp | wow2006/OpenGLBuildHighPerformanceGraphics | 0174af58afd8da66425f15b218b26d4f99653899 | [
"MIT"
] | 2 | 2018-11-04T15:52:10.000Z | 2021-11-04T05:14:02.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "UnitColorCube.hpp"
#include <glm/glm.hpp>
CUnitColorCube::CUnitColorCube(void) {
// generate the cube object
shader.LoadFromFile(GL_VERTEX_SHADER... | 23.83432 | 83 | 0.565789 | wow2006 |
5eb886a69b1c09dc3aef7773f33897f429e0d50d | 501 | cc | C++ | 洛谷/入门/cpp09.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 洛谷/入门/cpp09.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 洛谷/入门/cpp09.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | /*
* Author : OFShare
* E-mail : OFShare@outlook.com
* Created Time : 2020-05-31 13:58:21 PM
* File Name : cpp09.cc
*/
#include <bits/stdc++.h>
#define ll long long
void debug() {
#ifdef Acui
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
}
void outOfMem(... | 17.892857 | 58 | 0.596806 | OFShare |
5eb900257e25a9cd87640da9e608635b86a5907d | 1,011 | cpp | C++ | SuSto-Engine-QT/Shapes/shape.cpp | SimonStoyanov/SuSto-Engine-QT | ab93bbad84902d0edce1a38cfba680bec5ae1f7f | [
"MIT"
] | null | null | null | SuSto-Engine-QT/Shapes/shape.cpp | SimonStoyanov/SuSto-Engine-QT | ab93bbad84902d0edce1a38cfba680bec5ae1f7f | [
"MIT"
] | null | null | null | SuSto-Engine-QT/Shapes/shape.cpp | SimonStoyanov/SuSto-Engine-QT | ab93bbad84902d0edce1a38cfba680bec5ae1f7f | [
"MIT"
] | null | null | null | #include "Shapes/shape.h"
#include "Managers/shapemanager.h"
Shape::Shape(ShapeType t)
{
type = t;
}
ShapeType Shape::GetType() const
{
return type;
}
void Shape::SetFillColor(const QColor &color)
{
brush.setStyle(Qt::BrushStyle::SolidPattern);
brush.setColor(color);
}
void Shape::SetStrokeColor(con... | 13.48 | 49 | 0.672601 | SimonStoyanov |
5eb9b3048d4ab77242f86fbed8643d7493111406 | 618 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/detail/winapi/overlapped.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 34,359 | 2019-05-06T21:04:42.000Z | 2019-05-14T22:06:43.000Z | oss/boost/boost_1_73_0/boost/detail/winapi/overlapped.hpp | Ingridamilsina/terminal | 788d33ce94d28e2903bc49f841ce279211b7f557 | [
"MIT"
] | 356 | 2019-05-06T21:03:35.000Z | 2019-05-14T21:38:47.000Z | oss/boost/boost_1_73_0/boost/detail/winapi/overlapped.hpp | Ingridamilsina/terminal | 788d33ce94d28e2903bc49f841ce279211b7f557 | [
"MIT"
] | 3,164 | 2019-05-06T21:06:01.000Z | 2019-05-14T20:25:52.000Z | /*
* Copyright 2017 Andrey Semashev
*
* Distributed under the Boost Software License, Version 1.0.
* See http://www.boost.org/LICENSE_1_0.txt
*
* This header is deprecated, use boost/winapi/overlapped.hpp instead.
*/
#ifndef BOOST_DETAIL_WINAPI_OVERLAPPED_HPP_
#define BOOST_DETAIL_WINAPI_OVERLAPPED_HPP_
#inclu... | 24.72 | 70 | 0.800971 | Harshitha91 |
5ebe8bdf24a3f20ae61813cf13158ab633e039eb | 46,302 | cc | C++ | src/cpd/stream/StreamCPD.cc | jeewhanchoi/row-sparse-cpstream | 29525f45d2e8344f07c99efd614f0b3934bf9cfb | [
"MIT"
] | null | null | null | src/cpd/stream/StreamCPD.cc | jeewhanchoi/row-sparse-cpstream | 29525f45d2e8344f07c99efd614f0b3934bf9cfb | [
"MIT"
] | null | null | null | src/cpd/stream/StreamCPD.cc | jeewhanchoi/row-sparse-cpstream | 29525f45d2e8344f07c99efd614f0b3934bf9cfb | [
"MIT"
] | null | null | null |
#include "StreamCPD.hxx"
#include "StreamMatrix.hxx"
// #define XING_DEBUG
#define ADMM_FUSION
extern "C" {
#include "../admm.h"
#include "../../mttkrp.h"
#include "../../timer.h"
#include "../../util.h"
#include "../../stats.h"
#include "../../splatt_debug.h"
#ifdef XING_DEBUG
#include "../../io.h"
#endif
}
#inclu... | 29.852998 | 388 | 0.595007 | jeewhanchoi |
5ec45c44ab4d4721554be5bc144681b3bc9c48a4 | 6,361 | cpp | C++ | src/test/cuiTest.cpp | tosyama/palan | ed809a26511366825cd0d7848b4444dcf8f09b1a | [
"MIT"
] | 32 | 2017-10-25T21:02:45.000Z | 2022-02-07T05:53:37.000Z | src/test/cuiTest.cpp | tosyama/palan | ed809a26511366825cd0d7848b4444dcf8f09b1a | [
"MIT"
] | 39 | 2018-07-29T00:55:36.000Z | 2021-12-22T05:10:48.000Z | src/test/cuiTest.cpp | tosyama/palan | ed809a26511366825cd0d7848b4444dcf8f09b1a | [
"MIT"
] | 1 | 2019-07-10T05:44:50.000Z | 2019-07-10T05:44:50.000Z | #include <boost/algorithm/string.hpp>
#include "catch.hpp"
#include "cuiTestBase.h"
using namespace boost;
TEST_CASE("CUI basic command-line test.", "[cui]")
{
string str;
vector<string> strs;
// pac -h
REQUIRE(exec_pac("", "-h", "", "") == "success");
str = outstr("log");
split(strs, str, is_any_of("\n"));
... | 32.126263 | 115 | 0.616727 | tosyama |
5ec4a32833ec8e63ffc96877753574ae331b8f82 | 1,286 | cpp | C++ | source/ff.resource.editor/source/ui/save_project_dialog.xaml.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | source/ff.resource.editor/source/ui/save_project_dialog.xaml.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | source/ff.resource.editor/source/ui/save_project_dialog.xaml.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "source/models/main_vm.h"
#include "source/models/project_vm.h"
#include "source/ui/save_project_dialog.xaml.h"
NS_IMPLEMENT_REFLECTION(editor::save_project_dialog, "editor.save_project_dialog")
{
NsProp("project", &editor::save_project_dialog::project);
}
editor::save_project_dialog::sa... | 23.814815 | 82 | 0.676516 | spadapet |
5ec4a41ee3ba9f742e102ddd48cb44f79debc1a2 | 1,611 | cpp | C++ | examples/cloud-discovery/connect-cloud.cpp | RikeVoltz/hazelcast-cpp-client | 8bf2c22aba474503f8b49d5d6e80af072dbf4cf6 | [
"Apache-2.0"
] | 78 | 2015-10-23T13:50:12.000Z | 2021-12-17T11:22:58.000Z | examples/cloud-discovery/connect-cloud.cpp | RikeVoltz/hazelcast-cpp-client | 8bf2c22aba474503f8b49d5d6e80af072dbf4cf6 | [
"Apache-2.0"
] | 949 | 2015-10-26T12:18:38.000Z | 2022-03-31T15:49:08.000Z | examples/cloud-discovery/connect-cloud.cpp | RikeVoltz/hazelcast-cpp-client | 8bf2c22aba474503f8b49d5d6e80af072dbf4cf6 | [
"Apache-2.0"
] | 49 | 2015-10-23T13:51:52.000Z | 2021-09-01T00:26:45.000Z | /*
* Copyright (c) 2008-2021, Hazelcast, Inc. 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 required ... | 32.22 | 104 | 0.671012 | RikeVoltz |
5ec5cebdf8d4d982a62134285d96761f5ee215f8 | 9,053 | cxx | C++ | FIT/FITbase/AliFIT.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | FIT/FITbase/AliFIT.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | FIT/FITbase/AliFIT.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 28.027864 | 91 | 0.57804 | AllaMaevskaya |
5ecac96971e341564e946e79c1d8252e797a50e8 | 2,186 | hpp | C++ | include/tms-nets/details/gf2poly.hpp | jointpoints/tms-nets | 8cefe1868d2e696c100594e66d57380243856e16 | [
"BSL-1.0"
] | 5 | 2019-10-14T18:49:36.000Z | 2020-10-22T06:03:57.000Z | include/tms-nets/details/gf2poly.hpp | jointpoints/tms-nets | 8cefe1868d2e696c100594e66d57380243856e16 | [
"BSL-1.0"
] | 8 | 2019-11-10T17:23:20.000Z | 2020-12-01T18:00:45.000Z | include/tms-nets/details/gf2poly.hpp | jointpoints/tms-nets | 8cefe1868d2e696c100594e66d57380243856e16 | [
"BSL-1.0"
] | 16 | 2019-10-25T13:50:59.000Z | 2021-06-24T13:55:23.000Z | /**
* @file gf2poly.hpp
*
* @author Vadim Piven
* @author Alexey Burimov
*/
#ifndef TMS_NETS_GF2POLY_HPP
#define TMS_NETS_GF2POLY_HPP
#include "common.hpp"
#include <map>
// coefficient number of polynomial over GF(2) is a such integer number that it's n-th bit is equal to n-th coefficient of polynomial.
... | 47.521739 | 150 | 0.747484 | jointpoints |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.