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
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
0a20b224df22148e34f8f09e929d28394b7c6c9a
18,357
hpp
C++
accessor/scaled_reduced_row_major.hpp
JakubTrzcskni/ginkgo
8a9988b9c3f8c4ff59fae30050575311f230065e
[ "BSD-3-Clause" ]
null
null
null
accessor/scaled_reduced_row_major.hpp
JakubTrzcskni/ginkgo
8a9988b9c3f8c4ff59fae30050575311f230065e
[ "BSD-3-Clause" ]
null
null
null
accessor/scaled_reduced_row_major.hpp
JakubTrzcskni/ginkgo
8a9988b9c3f8c4ff59fae30050575311f230065e
[ "BSD-3-Clause" ]
null
null
null
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
36.861446
80
0.661873
0a2345ce151ac883b882315f001ad2d8196644a1
3,195
cpp
C++
src/classical/xmg/xmg_path.cpp
eletesta/cirkit
6d0939798ea25cecf92306ce796be154139b94f5
[ "MIT" ]
null
null
null
src/classical/xmg/xmg_path.cpp
eletesta/cirkit
6d0939798ea25cecf92306ce796be154139b94f5
[ "MIT" ]
null
null
null
src/classical/xmg/xmg_path.cpp
eletesta/cirkit
6d0939798ea25cecf92306ce796be154139b94f5
[ "MIT" ]
null
null
null
/* CirKit: A circuit toolkit * Copyright (C) 2009-2015 University of Bremen * Copyright (C) 2015-2017 EPFL * * 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, in...
32.938144
90
0.533333
0a24dde8f169bcf2ef83da543811e80997893197
347
cpp
C++
Dataset/Leetcode/train/94/88.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/94/88.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/94/88.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: void inorder(TreeNode*root,vector <int> & res) { if (root!=nullptr) return; inorder (root->left,res); res.push_back(root->val); inorder(root->right,res); } vector<int> XXX(TreeNode* root) { vector <int> vec; inorder(root,vec); ...
19.277778
51
0.541787
0a25d69676aae709b47041e5d6b4f6c8a7db1610
924
cpp
C++
main.cpp
hnqiu/cpp-test
ec3eafd3126be8468ba4f2d6a26c5863659aa8e3
[ "MIT" ]
1
2019-03-21T04:06:13.000Z
2019-03-21T04:06:13.000Z
main.cpp
hnqiu/cpp-test
ec3eafd3126be8468ba4f2d6a26c5863659aa8e3
[ "MIT" ]
null
null
null
main.cpp
hnqiu/cpp-test
ec3eafd3126be8468ba4f2d6a26c5863659aa8e3
[ "MIT" ]
null
null
null
/* Copyright (C) 2019 hnqiu. All rights reserved. * Licensed under the MIT License. See LICENSE for details. */ #include <iostream> #include "string_test.h" #include "sizeof_test.h" #include "continue_test.h" #include "return_list_test.h" #include "return_pointer_to_array_test.h" #include "class_test.h" #include "c...
22.536585
59
0.675325
0a266fc73810200877750334d795b4558aaf7381
1,531
cpp
C++
src/vector_types.cpp
DoubleJump/waggle
06a2fb07d7e3678f990396d1469cf4f85e3863a1
[ "MIT" ]
1
2021-04-30T11:14:32.000Z
2021-04-30T11:14:32.000Z
src/vector_types.cpp
DoubleJump/waggle
06a2fb07d7e3678f990396d1469cf4f85e3863a1
[ "MIT" ]
null
null
null
src/vector_types.cpp
DoubleJump/waggle
06a2fb07d7e3678f990396d1469cf4f85e3863a1
[ "MIT" ]
null
null
null
struct Vec2 { f32 x, y; f32& operator[](int i){ return (&x)[i]; } }; struct Vec3 { f32 x, y, z; f32& operator[](int i){ return (&x)[i]; } }; static Vec3 vec3_up = {0,1,0}; static Vec3 vec3_down = {0,-1,0}; static Vec3 vec3_left = {-1,0,0}; static Vec3 vec3_right = {1,0,0}; static Vec3 vec3_forwa...
13.918182
46
0.580666
0a26a32a3eaa6c15d09010643fef518594583b5f
1,202
cpp
C++
src/example/greating_client.cpp
Nekrolm/grpc_callback
1f0db9f2dd60afe1fac400e6541698d8f1fc4c34
[ "WTFPL" ]
3
2019-07-27T16:01:01.000Z
2022-03-01T00:09:19.000Z
src/example/greating_client.cpp
Nekrolm/grpc_callback
1f0db9f2dd60afe1fac400e6541698d8f1fc4c34
[ "WTFPL" ]
null
null
null
src/example/greating_client.cpp
Nekrolm/grpc_callback
1f0db9f2dd60afe1fac400e6541698d8f1fc4c34
[ "WTFPL" ]
null
null
null
#include "greating_client.h" #include <grpcpp/channel.h> #include <functional> #include <thread> #include <memory> #include <grpc/simplified_async_callback_api.h> GreatingClient::GreatingClient(std::shared_ptr<grpc::Channel> ch) : stub_(test::Greeting::NewStub(ch)) {} GreatingClient::~GreatingClient() {} void...
35.352941
116
0.46589
0a2a3b88dd3554373e63dcb5ff92d9a0bd52f202
10,241
hxx
C++
src/Utils/Table.hxx
ebertolazzi/Malloc
4c1f8950cd631c185e141aaccfe0cd53daa91490
[ "BSD-2-Clause", "MIT" ]
null
null
null
src/Utils/Table.hxx
ebertolazzi/Malloc
4c1f8950cd631c185e141aaccfe0cd53daa91490
[ "BSD-2-Clause", "MIT" ]
null
null
null
src/Utils/Table.hxx
ebertolazzi/Malloc
4c1f8950cd631c185e141aaccfe0cd53daa91490
[ "BSD-2-Clause", "MIT" ]
null
null
null
/*--------------------------------------------------------------------------*\ | | | Copyright (C) 2021 | | | | ...
31.318043
90
0.545357
0a2b9aa43d2163f100733f5db0c10da558261d11
674
cpp
C++
Zadanie 3-2 nowe/src/main.cpp
Jakub-Serafin/pm-lab-3-sn
70027bc7da56b2cba7cf17d3a34beb5602737111
[ "Apache-2.0" ]
null
null
null
Zadanie 3-2 nowe/src/main.cpp
Jakub-Serafin/pm-lab-3-sn
70027bc7da56b2cba7cf17d3a34beb5602737111
[ "Apache-2.0" ]
null
null
null
Zadanie 3-2 nowe/src/main.cpp
Jakub-Serafin/pm-lab-3-sn
70027bc7da56b2cba7cf17d3a34beb5602737111
[ "Apache-2.0" ]
null
null
null
#include <Arduino.h> #include <stdint.h> #define FOSC 16000000 #define BAUD 9600 #define MY_UBRR (FOSC/16/BAUD-1) #define USE_UART_RX_IRQ 1 char ReceivedChar; char Message[] = "Hello"; char * pMessage = Message; void setup(){ UBRR0H=(MY_UBRR>>8); UBRR0L= MY_UBRR; UCSR0B |= (1<< RXEN0)| (1<< TXEN0); UCSR0C|= (1...
17.736842
38
0.646884
0a2d06bc7e22d43976c5d56ab0c34f1f7e1b7e70
339
cpp
C++
Competitive Programing Problem Solutions/C++ Tutorial-Code - OOP/m4-d.cpp
BIJOY-SUST/ACM---ICPC
b382d80d327ddcab15ab15c0e763ccf8a22e0d43
[ "Apache-2.0" ]
1
2022-02-27T12:07:59.000Z
2022-02-27T12:07:59.000Z
Competitive Programing Problem Solutions/C++ Tutorial-Code - OOP/m4-d.cpp
BIJOY-SUST/Competitive-Programming
b382d80d327ddcab15ab15c0e763ccf8a22e0d43
[ "Apache-2.0" ]
null
null
null
Competitive Programing Problem Solutions/C++ Tutorial-Code - OOP/m4-d.cpp
BIJOY-SUST/Competitive-Programming
b382d80d327ddcab15ab15c0e763ccf8a22e0d43
[ "Apache-2.0" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int factorial(int n){ return (n == 1 || n == 0) ? 1 : factorial(n - 1)*n; } int main(){ int T,N,M; cin>>T; while(T--){ int ans; cin>>N>>M; ans = factorial(N+M-1)/(factorial(N)*factorial(M-1)); cout<<ans<<endl; } ...
19.941176
62
0.471976
0a2d609e9dbd9540d570fb36b415739333d2abb0
387
cpp
C++
clang/test/SemaCXX/lookup-through-linkage.cpp
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
605
2019-10-18T01:15:54.000Z
2022-03-31T14:31:04.000Z
clang/test/SemaCXX/lookup-through-linkage.cpp
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
3,180
2019-10-18T01:21:21.000Z
2022-03-31T23:25:41.000Z
clang/test/SemaCXX/lookup-through-linkage.cpp
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
275
2019-10-18T05:27:22.000Z
2022-03-30T09:04:21.000Z
// RUN: %clang_cc1 %s -verify // expected-no-diagnostics extern "C++" { namespace A { namespace B { int bar; } } // namespace A namespace C { void foo() { using namespace A; (void)B::bar; } } // namespace C } extern "C" { extern "C++" { namespace D { namespace E { int bar; } } // namespace A namespace F { void f...
11.382353
29
0.602067
0a2ed7375825eafbffc9a933d77cf1f6cfc96180
685
cpp
C++
src/QtYangVrRecord/src/video/yangrecordwin.cpp
yangxinghai/yangrecord
787eaca132df1e427f5fc5b4391db1436d481088
[ "MIT" ]
1
2021-11-11T02:06:55.000Z
2021-11-11T02:06:55.000Z
src/QtYangVrRecord/src/video/yangrecordwin.cpp
yangxinghai/yangrecord
787eaca132df1e427f5fc5b4391db1436d481088
[ "MIT" ]
null
null
null
src/QtYangVrRecord/src/video/yangrecordwin.cpp
yangxinghai/yangrecord
787eaca132df1e427f5fc5b4391db1436d481088
[ "MIT" ]
1
2022-01-24T07:59:48.000Z
2022-01-24T07:59:48.000Z
#include "yangrecordwin.h" #include "yangutil/yangtype.h" #include <QMenu> #include <QAction> #include <QDebug> //#include "../tooltip/RDesktopTip.h" #include "../yangwinutil/yangrecordcontext.h" YangRecordWin::YangRecordWin(QWidget *parent):QWidget(parent) { m_hb=new QHBoxLayout(); m_hb->setMargin(0); ...
15.222222
61
0.671533
0a2f8e4a67a74949a182496fb002fdf38f79a3e7
5,912
cpp
C++
Sources/CEigenBridge/eigen_dbl.cpp
taketo1024/swm-eigen
952ecdb73a2739641e75909c8d9e724e32b2ed0f
[ "MIT" ]
6
2021-09-19T07:55:41.000Z
2021-11-10T00:43:47.000Z
Sources/CEigenBridge/eigen_dbl.cpp
taketo1024/swm-eigen
952ecdb73a2739641e75909c8d9e724e32b2ed0f
[ "MIT" ]
null
null
null
Sources/CEigenBridge/eigen_dbl.cpp
taketo1024/swm-eigen
952ecdb73a2739641e75909c8d9e724e32b2ed0f
[ "MIT" ]
null
null
null
// // File.cpp // // // Created by Taketo Sano on 2021/06/10. // #import "eigen_dbl.h" #import <iostream> #import <Eigen/Eigen> using namespace std; using namespace Eigen; using R = double; using Mat = Matrix<R, Dynamic, Dynamic>; void *eigen_dbl_init(int_t rows, int_t cols) { Mat *A = new Mat(rows, cols);...
24.03252
80
0.538058
0a30f745e13504ad1b5ed62319ce67bdfb9ab3f3
7,152
inl
C++
MathLib/Include/CoordinatePoints.inl
bgin/MissileSimulation
90adcbf1c049daafb939f3fe9f9dfe792f26d5df
[ "MIT" ]
23
2016-08-28T23:20:12.000Z
2021-12-15T14:43:58.000Z
MathLib/Include/CoordinatePoints.inl
bgin/MissileSimulation
90adcbf1c049daafb939f3fe9f9dfe792f26d5df
[ "MIT" ]
1
2018-06-02T21:29:51.000Z
2018-06-05T05:59:31.000Z
MathLib/Include/CoordinatePoints.inl
bgin/MissileSimulation
90adcbf1c049daafb939f3fe9f9dfe792f26d5df
[ "MIT" ]
1
2019-07-04T22:38:22.000Z
2019-07-04T22:38:22.000Z
mathlib::CoordPoints<__m128>::CoordPoints() { /*Initialize coordinates to zero*/ this->m_F32Coord3D = _mm_setzero_ps(); } mathlib::CoordPoints<__m128>::CoordPoints(_In_ const float x, _In_ const float y, _In_ const float z) : m_F32Coord3D(_mm_set_ps(NAN_FLT, z, y, x)) { } mathlib::CoordPoints<__m128>::...
31.646018
115
0.685263
0a37e91c00ea720fe4fc3942d74ef52cc8dae67b
3,082
cpp
C++
old.c++/AGIResources/PlatformAbstractionLayer_POSIX.cpp
princess-rosella/sierra-agi-resources
2755e7b04a4f9782ced4530016e4374ca5b7985b
[ "MIT" ]
null
null
null
old.c++/AGIResources/PlatformAbstractionLayer_POSIX.cpp
princess-rosella/sierra-agi-resources
2755e7b04a4f9782ced4530016e4374ca5b7985b
[ "MIT" ]
null
null
null
old.c++/AGIResources/PlatformAbstractionLayer_POSIX.cpp
princess-rosella/sierra-agi-resources
2755e7b04a4f9782ced4530016e4374ca5b7985b
[ "MIT" ]
null
null
null
// // PlatformAbstractionLayer_POSIX.cpp // AGI // // Copyright (c) 2018 Princess Rosella. All rights reserved. // #include "AGIResources.hpp" #include "PlatformAbstractionLayer_POSIX.hpp" #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <unistd.h> #include <vector> using ...
24.854839
169
0.658014
0a3c83602b58e93c47389718b0ec4248917f4c0e
3,644
cpp
C++
PitchedDelay/Source/dsp/simpledetune.cpp
elk-audio/lkjb-plugins
8cbff01864bdb76493361a46f56d7073d49698da
[ "MIT" ]
82
2016-12-02T20:02:30.000Z
2022-03-12T22:38:30.000Z
PitchedDelay/Source/dsp/simpledetune.cpp
elk-audio/lkjb-plugins
8cbff01864bdb76493361a46f56d7073d49698da
[ "MIT" ]
6
2018-01-19T21:44:46.000Z
2022-03-08T08:46:19.000Z
PitchedDelay/Source/dsp/simpledetune.cpp
elk-audio/lkjb-plugins
8cbff01864bdb76493361a46f56d7073d49698da
[ "MIT" ]
16
2016-04-13T08:31:36.000Z
2022-03-01T03:04:42.000Z
#include "simpledetune.h" DetunerBase::DetunerBase(int bufmax) : bufMax(bufmax), windowSize(0), sampleRate(44100), buf(bufMax), win(bufMax) { clear(); setWindowSize(bufMax); } void DetunerBase::clear() { pos0 = 0; pos1 = 0.f; pos2 = 0.f; for(int i=0;i<bufMax;i++) buf[i] = 0; } void DetunerB...
18.591837
113
0.572448
0a3e70e44718dea8c998736ac815ba9c233a23c2
1,261
cc
C++
src/flow/transform/EmptyBlockElimination.cc
christianparpart/libflow
29c8a4b4c1ba140c1a3998dcb84885386d312787
[ "Unlicense" ]
null
null
null
src/flow/transform/EmptyBlockElimination.cc
christianparpart/libflow
29c8a4b4c1ba140c1a3998dcb84885386d312787
[ "Unlicense" ]
null
null
null
src/flow/transform/EmptyBlockElimination.cc
christianparpart/libflow
29c8a4b4c1ba140c1a3998dcb84885386d312787
[ "Unlicense" ]
null
null
null
// This file is part of the "x0" project, http://github.com/christianparpart/libflow// // (c) 2009-2014 Christian Parpart <trapni@gmail.com> // // Licensed under the MIT License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of // the License at: http://open...
28.659091
86
0.656622
0a4602ec6f7a003112d67433dac9b55f964d6207
17,254
cpp
C++
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/exports.cpp
nsivov/wpf
d36941860f05dd7a09008e99d1bcd635b0a69fdb
[ "MIT" ]
2
2020-05-18T17:00:43.000Z
2021-12-01T10:00:29.000Z
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/exports.cpp
nsivov/wpf
d36941860f05dd7a09008e99d1bcd635b0a69fdb
[ "MIT" ]
5
2020-05-05T08:05:01.000Z
2021-12-11T21:35:37.000Z
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/exports.cpp
nsivov/wpf
d36941860f05dd7a09008e99d1bcd635b0a69fdb
[ "MIT" ]
4
2020-05-04T06:43:25.000Z
2022-02-20T12:02:50.000Z
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //------------------------------------------------------------------------------ // // //-------------------------...
36.946467
137
0.561261
0a46470e941be66cd0e253e942162108a6e2ef6a
932
cpp
C++
242_b.cpp
onexmaster/cp
b78b0f1e586d6977d86c97b32f48fed33f1469af
[ "Apache-2.0", "MIT" ]
null
null
null
242_b.cpp
onexmaster/cp
b78b0f1e586d6977d86c97b32f48fed33f1469af
[ "Apache-2.0", "MIT" ]
null
null
null
242_b.cpp
onexmaster/cp
b78b0f1e586d6977d86c97b32f48fed33f1469af
[ "Apache-2.0", "MIT" ]
null
null
null
// Created by Tanuj Jain #include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define pb push_back #define mp make_pair typedef long long ll; typedef pair<int,int> pii; template<class T> using oset=tree<T, null_typ...
18.64
106
0.60515
0a48c1aaf97bfabf334b622ab83745318c6af1be
2,851
hpp
C++
src/Omega_h_vtk.hpp
matz-e/omega_h
a43850787b24f96d50807cee5688f09259e96b75
[ "BSD-2-Clause-FreeBSD" ]
44
2019-01-23T03:37:18.000Z
2021-08-24T02:20:29.000Z
src/Omega_h_vtk.hpp
matz-e/omega_h
a43850787b24f96d50807cee5688f09259e96b75
[ "BSD-2-Clause-FreeBSD" ]
67
2019-01-29T15:35:42.000Z
2021-08-17T20:42:40.000Z
src/Omega_h_vtk.hpp
matz-e/omega_h
a43850787b24f96d50807cee5688f09259e96b75
[ "BSD-2-Clause-FreeBSD" ]
29
2019-01-14T21:33:32.000Z
2021-08-10T11:35:24.000Z
#ifndef OMEGA_H_VTK_HPP #define OMEGA_H_VTK_HPP #include <iosfwd> #include <string> #include <vector> #include <Omega_h_comm.hpp> #include <Omega_h_defines.hpp> #include <Omega_h_file.hpp> namespace Omega_h { class Mesh; namespace vtk { filesystem::path get_pvtu_path(filesystem::path const& step_path); filesyste...
32.397727
80
0.726061
0a4c6282a0249bac1a4d6dbfb95bf3dd1d8c4009
23,969
cxx
C++
osprey/be/lno/sclrze.cxx
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/be/lno/sclrze.cxx
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/be/lno/sclrze.cxx
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright 2002, 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published b...
29.664604
99
0.640285
aea7c59a3ea32c550a43c96fec471d47ad18a07b
2,847
cc
C++
src/base128.cc
niw/node-base128
791f61ab1926a1dd5bbbf07aab54c638d5fb15f5
[ "MIT" ]
16
2015-06-20T09:48:26.000Z
2021-03-15T03:29:48.000Z
src/base128.cc
niw/node-base128
791f61ab1926a1dd5bbbf07aab54c638d5fb15f5
[ "MIT" ]
1
2017-09-24T15:51:19.000Z
2017-09-24T15:51:19.000Z
src/base128.cc
niw/node-base128
791f61ab1926a1dd5bbbf07aab54c638d5fb15f5
[ "MIT" ]
1
2019-04-06T04:00:33.000Z
2019-04-06T04:00:33.000Z
#include <node.h> #include <nan.h> #define THROW_BAD_ARGS Nan::ThrowTypeError("Bad argument") #define THROW_NOT_ENOUGH_BUFFER Nan::ThrowTypeError("Not enough buffer") NAN_METHOD(Decode) { if(info.Length() < 2 || !node::Buffer::HasInstance(info[0]) || !node::Buffer::HasInstance(info[1])) { THROW_BAD_AR...
24.333333
72
0.616438
aea91cb28aa59ddadacb795cd728da5735946be3
5,910
cpp
C++
src/eds/http/headers.cpp
panyam/halley
1bc8e9fe890d585c8ca524d6070591af656e206b
[ "Apache-2.0" ]
null
null
null
src/eds/http/headers.cpp
panyam/halley
1bc8e9fe890d585c8ca524d6070591af656e206b
[ "Apache-2.0" ]
null
null
null
src/eds/http/headers.cpp
panyam/halley
1bc8e9fe890d585c8ca524d6070591af656e206b
[ "Apache-2.0" ]
null
null
null
//***************************************************************************** /*! * 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 * ...
25.921053
102
0.607614
aeab5fab1b6bc6bce7acf07a3e3bb4f1379c8f8a
675
hpp
C++
ablateLibrary/flow/fluxDifferencer/offFluxDifferencer.hpp
pakserep/ablate
8c8443de8a252b03b3535f7c48b7a50aac1e56e4
[ "BSD-3-Clause" ]
null
null
null
ablateLibrary/flow/fluxDifferencer/offFluxDifferencer.hpp
pakserep/ablate
8c8443de8a252b03b3535f7c48b7a50aac1e56e4
[ "BSD-3-Clause" ]
null
null
null
ablateLibrary/flow/fluxDifferencer/offFluxDifferencer.hpp
pakserep/ablate
8c8443de8a252b03b3535f7c48b7a50aac1e56e4
[ "BSD-3-Clause" ]
null
null
null
#ifndef ABLATELIBRARY_OFFFLUXDIFFERENCER_HPP #define ABLATELIBRARY_OFFFLUXDIFFERENCER_HPP #include "fluxDifferencer.hpp" namespace ablate::flow::fluxDifferencer { /** * Turns off all flow through the flux differencer. This is good for testing. */ class OffFluxDifferencer : public fluxDifferencer::FluxDifferencer { ...
35.526316
131
0.795556
aeb7b7e5ef4835f5aab62c5420c65d825046fad1
1,426
cpp
C++
main/Main.cpp
Cararasu/holodec
d716d95a787ab7872a49a5c4fb930dc37be95ac7
[ "MIT" ]
215
2017-06-22T16:23:52.000Z
2022-01-27T23:33:37.000Z
main/Main.cpp
Cararasu/holodec
d716d95a787ab7872a49a5c4fb930dc37be95ac7
[ "MIT" ]
4
2017-06-29T16:49:28.000Z
2019-02-07T19:58:57.000Z
main/Main.cpp
Cararasu/holodec
d716d95a787ab7872a49a5c4fb930dc37be95ac7
[ "MIT" ]
21
2017-10-14T02:10:41.000Z
2021-07-13T06:08:38.000Z
#include "Main.h" #include <fstream> using namespace holodec; Main* Main::g_main; bool Main::registerArchitecture (Architecture* arch) { for (Architecture * a : architectures) if (caseCmpHString (a->name, arch->name)) return false; architectures.push_back (arch); return true; } Architecture* Main::getArch...
21.283582
56
0.671809
aec031dfa142d090bef5a69895f524840deb7403
4,775
cc
C++
diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/master_service.pb.cc
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
39
2019-09-06T13:42:24.000Z
2022-03-18T18:38:43.000Z
diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/master_service.pb.cc
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
9
2019-09-19T22:35:32.000Z
2022-02-24T18:04:57.000Z
diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/master_service.pb.cc
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
8
2019-10-16T21:09:14.000Z
2022-02-23T05:20:37.000Z
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: diplomacy_tensorflow/core/protobuf/master_service.proto #include "diplomacy_tensorflow/core/protobuf/master_service.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/prot...
39.139344
119
0.770681
aec0575a03cec24039c6073cf35b9875a7db2962
353
hpp
C++
SDLTest.hpp
gazpachian/ScrabookDL
70424e4d866d17d95539242ba86ad0841f030091
[ "MIT" ]
null
null
null
SDLTest.hpp
gazpachian/ScrabookDL
70424e4d866d17d95539242ba86ad0841f030091
[ "MIT" ]
null
null
null
SDLTest.hpp
gazpachian/ScrabookDL
70424e4d866d17d95539242ba86ad0841f030091
[ "MIT" ]
null
null
null
#include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <stdio.h> #include <string> #include <algorithm> #include <tr1/memory> #include "vector.hpp" #include "controller.hpp" #include "render.hpp" //Window constants const Vector2 DEF_SCREEN_DIMS(1200, 675); const Vector3 DEF_BG_COL(0xFD, 0xF6, 0xE3); const char * w...
23.533333
46
0.745042
aeca4b2a297c118a8eb65076e18adcd6c73e2e56
6,680
cpp
C++
Interaction/albaDevice.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
Interaction/albaDevice.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Interaction/albaDevice.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaDevice Authors: Marco Petrone Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even the impl...
29.688889
112
0.448054
aecd7dece280518c3882099caebe07274c7374ae
1,525
cpp
C++
src/easy/trick-or-treat/solutions/c++/solution.cpp
rdtsc/codeeval-solutions
d5c06baf89125e9e9f4b163ee57e5a8f7e73e717
[ "MIT" ]
null
null
null
src/easy/trick-or-treat/solutions/c++/solution.cpp
rdtsc/codeeval-solutions
d5c06baf89125e9e9f4b163ee57e5a8f7e73e717
[ "MIT" ]
null
null
null
src/easy/trick-or-treat/solutions/c++/solution.cpp
rdtsc/codeeval-solutions
d5c06baf89125e9e9f4b163ee57e5a8f7e73e717
[ "MIT" ]
null
null
null
#include <cassert> #include <fstream> #include <iostream> #include <limits> template<typename T> static bool extractFrom(std::istream& inputStream, const char delimiter, T& value) { static constexpr auto ignoreLimit = std::numeric_limits<std::streamsize>::max(); ...
29.326923
79
0.594098
aed084fb525b5f25e7ee5eed598324734eff4068
1,580
cpp
C++
src/effect_cas.cpp
stephanlachnit/vkBasalt
dd6a067b7eada67f4f34e56054ef24264f6856d7
[ "Zlib" ]
748
2019-10-20T14:21:20.000Z
2022-03-22T05:53:42.000Z
src/effect_cas.cpp
stephanlachnit/vkBasalt
dd6a067b7eada67f4f34e56054ef24264f6856d7
[ "Zlib" ]
160
2019-10-20T16:35:47.000Z
2022-03-30T19:21:56.000Z
src/effect_cas.cpp
stephanlachnit/vkBasalt
dd6a067b7eada67f4f34e56054ef24264f6856d7
[ "Zlib" ]
58
2019-10-20T19:15:01.000Z
2022-01-02T01:16:08.000Z
#include "effect_cas.hpp" #include <cstring> #include "image_view.hpp" #include "descriptor_set.hpp" #include "buffer.hpp" #include "renderpass.hpp" #include "graphics_pipeline.hpp" #include "framebuffer.hpp" #include "shader.hpp" #include "sampler.hpp" #include "shader_sources.hpp" namespace vkBasalt { CasEffe...
30.980392
86
0.635443
aed3281640470573c0c4ef23e1888bd1b850ecee
403
cpp
C++
Rafflesia/main.cpp
TelepathicFart/Rafflesia
9376e06b5a7ab3f712677f31504021c1b62c3f09
[ "MIT" ]
5
2021-05-11T02:52:31.000Z
2021-09-03T05:10:53.000Z
Rafflesia/main.cpp
TelepathicFart/Rafflesia
9376e06b5a7ab3f712677f31504021c1b62c3f09
[ "MIT" ]
null
null
null
Rafflesia/main.cpp
TelepathicFart/Rafflesia
9376e06b5a7ab3f712677f31504021c1b62c3f09
[ "MIT" ]
1
2022-02-24T13:56:26.000Z
2022-02-24T13:56:26.000Z
#include <QtWidgets> #include "MainWindow.h" #include <istream> #include <fstream> int main(int argc, char *argv[]) { #if defined(Q_OS_WIN) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif QApplication app(argc, argv); MainWindow window; window.show(); window.setWindowTitle(Q...
18.318182
83
0.704715
aed923244e3a075b6566c3fb94879181634bcba8
1,094
cpp
C++
projects/Test_SkeletalAnimation/src/main.cpp
codeonwort/pathosengine
ea568afeac9af3ebe3f2e53cc5abeecb40714466
[ "MIT" ]
11
2016-08-30T12:01:35.000Z
2021-12-29T15:34:03.000Z
projects/Test_SkeletalAnimation/src/main.cpp
codeonwort/pathosengine
ea568afeac9af3ebe3f2e53cc5abeecb40714466
[ "MIT" ]
9
2016-05-19T03:14:22.000Z
2021-01-17T05:45:52.000Z
projects/Test_SkeletalAnimation/src/main.cpp
codeonwort/pathosengine
ea568afeac9af3ebe3f2e53cc5abeecb40714466
[ "MIT" ]
null
null
null
#include "world2.h" #include "pathos/core_minimal.h" using namespace std; using namespace pathos; constexpr int32 WINDOW_WIDTH = 1920; constexpr int32 WINDOW_HEIGHT = 1080; constexpr char* WINDOW_TITLE = "Test: Skeletal Animation"; constexpr float FOVY = 60.0f; const vector3 CA...
33.151515
118
0.710238
aede19bebef2025d433365c92bd970cd74a809aa
57
hpp
C++
src/boost_fusion_sequence_comparison_equal_to.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_fusion_sequence_comparison_equal_to.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_fusion_sequence_comparison_equal_to.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/fusion/sequence/comparison/equal_to.hpp>
28.5
56
0.824561
aede8903b4395c28d2a04d5f065094bba39c31da
3,738
cpp
C++
Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.cpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
2
2019-11-11T21:17:14.000Z
2019-11-11T22:07:26.000Z
Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.cpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
null
null
null
Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.cpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
1
2020-04-05T03:50:57.000Z
2020-04-05T03:50:57.000Z
/* * MIT License * * Copyright (c) 2021 Jimmie Bergmann * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files(the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
30.390244
114
0.67817
aee11d7d4e9a3c4135f46a2909da6c8017d15bd2
4,614
cpp
C++
Development/Editor/Plugin/Warcraft3/yd_lua_engine/lua_engine/libs_runtime.cpp
shawwwn/YDWE
b83ffe041d9623409d9ffd951988e2b482d9cfc3
[ "Apache-2.0" ]
2
2016-05-30T11:42:33.000Z
2017-10-31T11:53:42.000Z
Development/Editor/Plugin/Warcraft3/yd_lua_engine/lua_engine/libs_runtime.cpp
shawwwn/YDWE
b83ffe041d9623409d9ffd951988e2b482d9cfc3
[ "Apache-2.0" ]
null
null
null
Development/Editor/Plugin/Warcraft3/yd_lua_engine/lua_engine/libs_runtime.cpp
shawwwn/YDWE
b83ffe041d9623409d9ffd951988e2b482d9cfc3
[ "Apache-2.0" ]
null
null
null
#include <base/lua/state.h> #include <base/util/console.h> #include <cstring> #include "libs_runtime.h" namespace base { namespace warcraft3 { namespace lua_engine { namespace runtime { int version = 2; int handle_level = 2; bool console = false; bool sleep = true; bool catch_crash = true; void initi...
18.309524
67
0.584092
aee5dbfe6d334342322d1d2cccc32e28a8cdf42b
209
cpp
C++
basic/12_fungsi/fungsi.cpp
khairanabila/CPP
48b18b6bf835d8075fc96bbf183adf28a71ba819
[ "MIT" ]
23
2021-09-10T00:08:48.000Z
2022-03-24T16:09:30.000Z
basic/12_fungsi/fungsi.cpp
khairanabila/CPP
48b18b6bf835d8075fc96bbf183adf28a71ba819
[ "MIT" ]
20
2021-09-21T15:34:21.000Z
2021-11-28T18:52:10.000Z
basic/12_fungsi/fungsi.cpp
khairanabila/CPP
48b18b6bf835d8075fc96bbf183adf28a71ba819
[ "MIT" ]
27
2021-09-10T02:35:56.000Z
2022-01-24T10:46:06.000Z
#include <iostream> // membuat fungsi tanpa return nilai void panggil() { std::cout << "Fungsi tanpa return" << std::endl; } int main(){ // memanggil fungsi panggil() panggil(); return 0; }
14.928571
52
0.617225
aee7a2814780ca3c8a8e7c7aa5c504bcb70ef324
1,961
cc
C++
bin/scaling/traversal.cc
manopapad/flecsi
8bb06e4375f454a0680564c76df2c60ffe49c770
[ "Unlicense" ]
null
null
null
bin/scaling/traversal.cc
manopapad/flecsi
8bb06e4375f454a0680564c76df2c60ffe49c770
[ "Unlicense" ]
null
null
null
bin/scaling/traversal.cc
manopapad/flecsi
8bb06e4375f454a0680564c76df2c60ffe49c770
[ "Unlicense" ]
null
null
null
CINCH_CAPTURE() << "------------- forall cells, vertices" << endl; for(auto cell : mesh->entities<2, $DOMAIN>()) { CINCH_CAPTURE() << "------------- cell id: " << cell.id() << endl; for(auto vertex : mesh->entities<0, $DOMAIN>(cell)) { CINCH_CAPTURE() << "--- vertex id: " << vertex.id() << endl; for(auto c...
34.403509
68
0.529322
aef16175f836f498e1d48ed7f35241eb600ad19a
1,860
cpp
C++
Paladin/BuildSystem/FileFactory.cpp
pahefu/Paladin
4fcb66c6cda7bb50b7597532bd0d7469fc33655b
[ "MIT" ]
45
2018-10-05T21:50:17.000Z
2022-01-31T11:52:59.000Z
Paladin/BuildSystem/FileFactory.cpp
pahefu/Paladin
4fcb66c6cda7bb50b7597532bd0d7469fc33655b
[ "MIT" ]
163
2018-10-01T23:52:12.000Z
2022-02-15T18:05:58.000Z
Paladin/BuildSystem/FileFactory.cpp
pahefu/Paladin
4fcb66c6cda7bb50b7597532bd0d7469fc33655b
[ "MIT" ]
9
2018-10-01T23:48:02.000Z
2022-01-23T21:28:52.000Z
#include "FileFactory.h" #include "DPath.h" #include "SourceType.h" #include "SourceTypeC.h" #include "SourceTypeLex.h" #include "SourceTypeLib.h" #include "SourceTypeResource.h" #include "SourceTypeRez.h" #include "SourceTypeShell.h" #include "SourceTypeText.h" #include "SourceTypeYacc.h" FileFactory gFileFactory; F...
20.666667
83
0.73172
aef5cba87650b7ddc70acc522f6603139805e75e
101
hpp
C++
exercises/4/seminar/8/Matrix/Matrix/utility.hpp
triffon/oop-2019-20
db199631d59ddefdcc0c8eb3d689de0095618f92
[ "MIT" ]
19
2020-02-21T16:46:50.000Z
2022-01-26T19:59:49.000Z
exercises/4/seminar/9/Matrix/Matrix/utility.hpp
triffon/oop-2019-20
db199631d59ddefdcc0c8eb3d689de0095618f92
[ "MIT" ]
1
2020-03-14T08:09:45.000Z
2020-03-14T08:09:45.000Z
exercises/4/seminar/8/Matrix - Complete/Matrix/utility.hpp
triffon/oop-2019-20
db199631d59ddefdcc0c8eb3d689de0095618f92
[ "MIT" ]
11
2020-02-23T12:29:58.000Z
2021-04-11T08:30:12.000Z
#ifndef UTILITY #define UTILITY namespace utility { int gcd(int a, int b); } #endif // !UTILITY
12.625
26
0.673267
aef61af9e9f86157b2a0dd6386cbb49269321f3f
2,670
cpp
C++
Interaction/albaAgentEventHandler.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
Interaction/albaAgentEventHandler.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Interaction/albaAgentEventHandler.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: Multimod Fundation Library Module: $RCSfile: albaAgentEventHandler.cpp,v $ Language: C++ Date: $Date: 2006-06-14 14:46:33 $ Version: $Revision: 1.4 $ ======================================================================...
33.375
80
0.345693
aef6d7bb7d3fb685be390278a8c563fcd24b89ed
223
cpp
C++
example/generate_word_example.cpp
arapelle/wgen
53471bd78e7fd64c780f04cd132047e20abf254f
[ "MIT" ]
1
2020-06-02T07:25:37.000Z
2020-06-02T07:25:37.000Z
example/generate_word_example.cpp
arapelle/wgen
53471bd78e7fd64c780f04cd132047e20abf254f
[ "MIT" ]
6
2020-08-28T10:52:25.000Z
2020-11-02T18:59:49.000Z
example/generate_word_example.cpp
arapelle/wgen
53471bd78e7fd64c780f04cd132047e20abf254f
[ "MIT" ]
1
2020-09-04T10:36:23.000Z
2020-09-04T10:36:23.000Z
#include <wgen/default_syllabary.hpp> #include <iostream> int main() { wgen::default_syllabary syllabary; std::string word = syllabary.random_word(7); std::cout << word << std::endl; return EXIT_SUCCESS; }
20.272727
48
0.686099
aef727bef065101b0d3865e6feab392a7533689b
4,240
cpp
C++
tests/test_basic_parsing.cpp
dlrobertson/warc-c
9c94e4f4514b71d3c87df376d7687f92c1082b34
[ "MIT" ]
2
2018-07-22T11:10:20.000Z
2018-09-01T01:39:01.000Z
tests/test_basic_parsing.cpp
dlrobertson/warc-c
9c94e4f4514b71d3c87df376d7687f92c1082b34
[ "MIT" ]
null
null
null
tests/test_basic_parsing.cpp
dlrobertson/warc-c
9c94e4f4514b71d3c87df376d7687f92c1082b34
[ "MIT" ]
null
null
null
// Copyright (c) 2018 Daniel L. Robertson // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, pu...
35.041322
100
0.663679
aef7bda9a1cd6340cd0896868149deadd2a1165b
4,959
cxx
C++
Servers/Filters/vtkPVExtractSelection.cxx
certik/paraview
973d37b466552ce770ac0674f30040bb7e31d7fe
[ "BSD-3-Clause" ]
1
2016-05-09T00:36:44.000Z
2016-05-09T00:36:44.000Z
Servers/Filters/vtkPVExtractSelection.cxx
certik/paraview
973d37b466552ce770ac0674f30040bb7e31d7fe
[ "BSD-3-Clause" ]
null
null
null
Servers/Filters/vtkPVExtractSelection.cxx
certik/paraview
973d37b466552ce770ac0674f30040bb7e31d7fe
[ "BSD-3-Clause" ]
3
2015-05-14T21:18:53.000Z
2022-03-07T02:53:45.000Z
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: vtkPVExtractSelection.cxx,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
30.801242
79
0.623916
aef9062544f15dafcdc59c157db3412d0115a026
117
cpp
C++
src/main.cpp
tcaron01/opengl_template
86ec3aaa1f42cfb02886a87213c0471b8fe26fe0
[ "Unlicense" ]
null
null
null
src/main.cpp
tcaron01/opengl_template
86ec3aaa1f42cfb02886a87213c0471b8fe26fe0
[ "Unlicense" ]
null
null
null
src/main.cpp
tcaron01/opengl_template
86ec3aaa1f42cfb02886a87213c0471b8fe26fe0
[ "Unlicense" ]
null
null
null
#include <GLFW/glfw3.h> #include <glm/glm.hpp> #include "../include/test.hpp" int main() { return test(); }
14.625
30
0.606838
aefa1c5a9c4ac52d9bcad3863423a1e077dad6ea
1,281
hpp
C++
db/DBAppender.hpp
naivewong/timeunion
8070492d2c6a2d68175e7d026c27b858c2aec8e6
[ "Apache-2.0" ]
null
null
null
db/DBAppender.hpp
naivewong/timeunion
8070492d2c6a2d68175e7d026c27b858c2aec8e6
[ "Apache-2.0" ]
null
null
null
db/DBAppender.hpp
naivewong/timeunion
8070492d2c6a2d68175e7d026c27b858c2aec8e6
[ "Apache-2.0" ]
null
null
null
#ifndef DBAPPENDER_H #define DBAPPENDER_H #include "db/AppenderInterface.hpp" #include "db/DB.hpp" #include "leveldb/status.h" namespace tsdb { namespace db { // DBAppender wraps the DB's head appender and triggers compactions on commit // if necessary. class DBAppender : public AppenderInterface { private: std::...
25.62
80
0.637002
aefc07f39c103d371a4369ef6ae901d4e0e2a91f
1,473
cpp
C++
engine/mysqlparser/listener/SqlErrorListener.cpp
zhukovaskychina/XSQL
f91db06bf86f7f6ad321722c3aea11f83d34dba1
[ "MIT" ]
1
2020-10-23T09:38:22.000Z
2020-10-23T09:38:22.000Z
engine/mysqlparser/listener/SqlErrorListener.cpp
zhukovaskychina/XSQL
f91db06bf86f7f6ad321722c3aea11f83d34dba1
[ "MIT" ]
null
null
null
engine/mysqlparser/listener/SqlErrorListener.cpp
zhukovaskychina/XSQL
f91db06bf86f7f6ad321722c3aea11f83d34dba1
[ "MIT" ]
null
null
null
// // Created by zhukovasky on 2020/9/30. // #include <common/Exceptions.h> #include "SqlErrorListener.h" SQLErrorListener::~SQLErrorListener() { } void SQLErrorListener::syntaxError(antlr4::Recognizer *recognizer, antlr4::Token *offendingSymbol, size_t line, size_t charPositionIn...
34.255814
118
0.604888
aefc2e747d34818630c7f0d8f2d53317886ac392
3,739
cpp
C++
Testing/Gui/16_testRWI/testRWILogic.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
Testing/Gui/16_testRWI/testRWILogic.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Testing/Gui/16_testRWI/testRWILogic.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: testRWILogic Authors: Silvano Imboden Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even the ...
33.088496
129
0.472319
aefc38192acba82870d5413f54a656d15199680b
511
cpp
C++
problems/acmicpc_14935.cpp
qawbecrdtey/BOJ-sol
e3f410e8f4e3a6ade51b68ce2024529870edac64
[ "MIT" ]
null
null
null
problems/acmicpc_14935.cpp
qawbecrdtey/BOJ-sol
e3f410e8f4e3a6ade51b68ce2024529870edac64
[ "MIT" ]
null
null
null
problems/acmicpc_14935.cpp
qawbecrdtey/BOJ-sol
e3f410e8f4e3a6ade51b68ce2024529870edac64
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <vector> using namespace std; void f(string &s,int x){ if(x<10){s.push_back(x+'0');return;} f(s,x/10); s.push_back(x%10+'0'); } int main(){ string s; cin>>s; vector<string> v; while(true){ for(auto str:v){ if(s==str)goto A; ...
18.925926
40
0.471624
4e033a2418992d27b732cbcf8e73193025f3b40a
1,521
cpp
C++
src/gpio_test.cpp
gbr1/upboard_ros
a4fd1ce54fc78724bcdfde5b09185feeca71225d
[ "MIT" ]
24
2019-05-10T11:48:40.000Z
2022-03-29T08:52:08.000Z
src/gpio_test.cpp
gbr1/upboard_ros
a4fd1ce54fc78724bcdfde5b09185feeca71225d
[ "MIT" ]
1
2020-07-08T04:20:17.000Z
2020-07-08T09:33:36.000Z
src/gpio_test.cpp
gbr1/upboard_ros
a4fd1ce54fc78724bcdfde5b09185feeca71225d
[ "MIT" ]
1
2019-05-11T23:44:33.000Z
2019-05-11T23:44:33.000Z
#include <ros/ros.h> #include <upboard_ros/Gpio.h> #include <upboard_ros/ListGpio.h> #define BUTTON 24 #define LED 22 #define SLOW 1.0 #define FAST 0.2 upboard_ros::Gpio tmp_msg; upboard_ros::ListGpio list_msg; bool status=false; ros::Time tp; float blinkrate=SLOW; ros::Publisher gpiopub; void gpioCallba...
21.728571
83
0.565417
4e04a96449d7fcfc5f8e2e4005cf183d6c657597
8,476
cpp
C++
Testing/VME/mafPipeVolumeSliceTest.cpp
FusionBox2/MAF2
b576955f4f6b954467021f12baedfebcaf79a382
[ "Apache-2.0" ]
1
2018-01-23T09:13:40.000Z
2018-01-23T09:13:40.000Z
Testing/VME/mafPipeVolumeSliceTest.cpp
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
null
null
null
Testing/VME/mafPipeVolumeSliceTest.cpp
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
3
2020-09-24T16:04:53.000Z
2020-09-24T16:50:30.000Z
/*========================================================================= Program: MAF2 Module: mafPipeVolumeSliceTest Authors: Matteo Giacomoni Copyright (c) B3C All rights reserved. See Copyright.txt or http://www.scsitaly.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; ...
27.254019
84
0.597452
4e05c6ff8543a5859c72437968dd4af1e056ef18
253
cpp
C++
server/src/DatabaseProxy/PostgresqlProxy.cpp
yuryloshmanov/messenger
98c2129cf2b5ca7e00cc5c1ba90535acf8be0ba1
[ "MIT" ]
null
null
null
server/src/DatabaseProxy/PostgresqlProxy.cpp
yuryloshmanov/messenger
98c2129cf2b5ca7e00cc5c1ba90535acf8be0ba1
[ "MIT" ]
null
null
null
server/src/DatabaseProxy/PostgresqlProxy.cpp
yuryloshmanov/messenger
98c2129cf2b5ca7e00cc5c1ba90535acf8be0ba1
[ "MIT" ]
null
null
null
/** * @file PostgresqlProxy.cpp * @date 22 Feb 2022 * @author Yury Loshmanov */ #include "../../include/DatabaseProxy/PostgresqlProxy.hpp" PostgresqlProxy::PostgresqlProxy(const std::string &endPoint) : connection(endPoint), work(connection) { }
21.083333
104
0.72332
4e0c4243efa6ca0642bb4260c4daefdd7c40cd75
5,578
cpp
C++
Oem/dbxml/xqilla/src/ast/XQAttributeConstructor.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
2
2017-04-19T01:38:30.000Z
2020-07-31T03:05:32.000Z
Oem/dbxml/xqilla/src/ast/XQAttributeConstructor.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
null
null
null
Oem/dbxml/xqilla/src/ast/XQAttributeConstructor.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
1
2021-12-29T10:46:12.000Z
2021-12-29T10:46:12.000Z
/* * Copyright (c) 2001-2008 * DecisionSoft Limited. All rights reserved. * Copyright (c) 2004-2008 * Oracle. 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...
34.8625
138
0.723378
4e0d154599f4a3108f64944bf741ed7bf06ac09b
138
cpp
C++
base/stublibs/delay/delayimp.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/stublibs/delay/delayimp.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/stublibs/delay/delayimp.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "windows.h" #include "delayimp.h" PUnloadInfo __puiHead; extern "C" void __delayLoadHelper2 ( void ) { }
9.857143
23
0.608696
4e0d5432c50dea2d99c31ba762d86c899ec226d4
14,602
cpp
C++
src/mytsne.cpp
lijxug/CSOmapR
0d05307563674f0ee810a3adfb1f2c6a8fb3d70e
[ "MIT" ]
8
2020-11-25T07:51:43.000Z
2021-12-16T01:02:36.000Z
src/mytsne.cpp
lijxug/CSOmapR
0d05307563674f0ee810a3adfb1f2c6a8fb3d70e
[ "MIT" ]
6
2020-12-01T03:11:22.000Z
2021-04-26T01:31:38.000Z
src/mytsne.cpp
lijxug/CSOmapR
0d05307563674f0ee810a3adfb1f2c6a8fb3d70e
[ "MIT" ]
3
2020-12-22T15:15:48.000Z
2021-12-06T07:08:45.000Z
/* * * Copyright (c) 2014, Laurens van der Maaten (Delft University of Technology) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above ...
33.800926
183
0.548076
4e1137c75d74b2effc529da7fe9de37e37846eb5
11,633
cpp
C++
MT2D/SDL/Render/MT2D_SDL_Render.cpp
ibm5155/MT2D
b9f1386cf3fe7d0bd2bba7e4fb40852048d253c1
[ "MIT" ]
3
2017-07-31T04:38:31.000Z
2020-03-21T02:59:36.000Z
MT2D/SDL/Render/MT2D_SDL_Render.cpp
ibm5155/MT2D
b9f1386cf3fe7d0bd2bba7e4fb40852048d253c1
[ "MIT" ]
5
2020-10-13T14:34:47.000Z
2021-08-17T15:02:02.000Z
MT2D/SDL/Render/MT2D_SDL_Render.cpp
ibm5155/MT2D
b9f1386cf3fe7d0bd2bba7e4fb40852048d253c1
[ "MIT" ]
null
null
null
#include <MT2D/MT2D_Terminal_Define.h> #if defined(SDL_USE) #include "../../SDL/MT2D_SDL_Redefine.h" #include "../../SDL/MT2D_SDL_Event_Handler.h" #include "../../MT2D.h" #include <stdio.h> #include <stdlib.h> extern MT2D_SDL_Texture* mTexture; extern MT2D_SDL_Rect gSpriteClips[256]; extern int FRAMEBUFFER[MAX_VER][...
30.137306
155
0.693028
4e12d366112ece89a1a1b32ad66dde54bed8d0a7
6,673
cc
C++
src/modular/tests/module_context_test.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
src/modular/tests/module_context_test.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
56
2021-06-03T03:16:25.000Z
2022-03-20T01:07:44.000Z
src/modular/tests/module_context_test.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fuchsia/modular/testing/cpp/fidl.h> #include <gmock/gmock.h> #include "lib/syslog/cpp/macros.h" #include "src/lib/fsl/vmo/strings.h" #include "...
39.023392
95
0.728008
4e1306360ebcb70ea72f14a0dd65f5090fec2721
961
hpp
C++
include/codegen/include/System/IServiceProvider.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/System/IServiceProvider.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/System/IServiceProvider.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes // Completed includes // Begin forward declares // Forward declaring namespace: System namespace System { // Forward declaring ty...
31
80
0.700312
4e13dd68b9e7fa96e93e3acd2797d589a6269baf
2,019
cc
C++
core/src/psfcore/unused/psftest.cc
ma-laforge/LibPSFC.jl
73a5176ca78cade63cc9c5da4d15b36f9042645c
[ "MIT" ]
null
null
null
core/src/psfcore/unused/psftest.cc
ma-laforge/LibPSFC.jl
73a5176ca78cade63cc9c5da4d15b36f9042645c
[ "MIT" ]
null
null
null
core/src/psfcore/unused/psftest.cc
ma-laforge/LibPSFC.jl
73a5176ca78cade63cc9c5da4d15b36f9042645c
[ "MIT" ]
null
null
null
#include "psf.h" #include "psfdata.h" #include <string> void noisesummary() { std::string pnoisefile("/nfs/home/henrik/spectre/1/pnoise.raw/pnoise_pout3g.pnoise"); PSFDataSet psfnoise(pnoisefile); std::vector<std::string> names = psfnoise.get_signal_names(); double sum=0; for(std::vector<std::s...
32.047619
161
0.634968
4e15065ca2ce0f75964a8116c46a77e630f247fe
5,766
cpp
C++
src/qt/i2poptionswidget.cpp
eddef/anoncoin
7a018e15c814bba30e805cfe83f187388eadc0a8
[ "MIT" ]
90
2015-01-13T14:32:43.000Z
2020-10-15T23:07:11.000Z
src/qt/i2poptionswidget.cpp
nonlinear-chaos-order-etc-etal/anoncoin
5e441d8746240072f1379577e14ff7a17390b81f
[ "MIT" ]
91
2015-01-07T03:44:14.000Z
2020-12-24T13:56:27.000Z
src/qt/i2poptionswidget.cpp
nonlinear-chaos-order-etc-etal/anoncoin
5e441d8746240072f1379577e14ff7a17390b81f
[ "MIT" ]
42
2015-01-28T12:34:14.000Z
2021-05-06T16:16:48.000Z
// Copyright (c) 2013-2014 The Anoncoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Many builder specific things set in the config file, don't see a need for it here, still better to not forget to incl...
52.899083
148
0.73153
4e153ae850f05e9837dbc6d3d0a94180ce59ea71
1,893
cpp
C++
problems6/6A.cpp
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
1
2021-11-11T12:08:14.000Z
2021-11-11T12:08:14.000Z
problems6/6A.cpp
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
null
null
null
problems6/6A.cpp
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <cmath> #define HASH_SPACE 1000010 using namespace std; int get_hash(int value) { return abs(value % HASH_SPACE); } struct hashset { int value; struct hashset *next; } **Hashtable; bool exists_value(int value) { hashset *current = Hashtable[get_hash(va...
24.907895
71
0.578447
4e17b9dc4559616a2786013d641833dbddf34747
2,588
cpp
C++
manager/spline/spline_manager.cpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
1
2017-08-11T19:12:24.000Z
2017-08-11T19:12:24.000Z
manager/spline/spline_manager.cpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
11
2018-07-07T20:09:44.000Z
2020-02-16T22:45:09.000Z
manager/spline/spline_manager.cpp
aconstlink/snakeoil
3c6e02655e1134f8422f01073090efdde80fc109
[ "MIT" ]
null
null
null
//------------------------------------------------------------ // snakeoil (c) Alexis Constantin Link // Distributed under the MIT license //------------------------------------------------------------ #include "spline_manager.h" using namespace so_manager ; //*********************************************************...
35.452055
97
0.435471
4e1d50433f0a8654ffa2386314841105761d6aa4
10,804
cc
C++
unit_tests/tests/base/ThreadGroup/ThreadGroup_test.cc
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
111
2020-06-12T22:31:30.000Z
2022-03-19T03:45:20.000Z
unit_tests/tests/base/ThreadGroup/ThreadGroup_test.cc
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
34
2020-06-12T20:23:40.000Z
2022-03-15T20:04:31.000Z
unit_tests/tests/base/ThreadGroup/ThreadGroup_test.cc
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
32
2020-06-12T19:15:26.000Z
2022-02-20T11:38:31.000Z
// // Copyright (C) [2020] Futurewei Technologies, Inc. // // FORCE-RISCV is 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 // // THIS SOFTW...
37.776224
149
0.643003
4e1e89ed0e516be46415c2b1cf93c56d4e219c02
156
cpp
C++
PredPrey_Attempt2/main.cpp
08jne01/Predator-Prey-Attempt2
cfb1d259a73d3d038ca122cdf63e231968e93fa9
[ "MIT" ]
null
null
null
PredPrey_Attempt2/main.cpp
08jne01/Predator-Prey-Attempt2
cfb1d259a73d3d038ca122cdf63e231968e93fa9
[ "MIT" ]
null
null
null
PredPrey_Attempt2/main.cpp
08jne01/Predator-Prey-Attempt2
cfb1d259a73d3d038ca122cdf63e231968e93fa9
[ "MIT" ]
null
null
null
#include "Header.h" #include "Program.h" int main() { sf::err().rdbuf(NULL); Program p(700, 700, 2000, 100, 10, 0.0005, 0.01); return p.mainLoop(); }
13
50
0.615385
89ecdd94e91e2120da96013ca06296e6a66ffb1d
5,368
cpp
C++
qttools/src/assistant/qhelpconverter/qhpwriter.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
qttools/src/assistant/qhelpconverter/qhpwriter.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
qttools/src/assistant/qhelpconverter/qhpwriter.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the Qt Assistant of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commerc...
30.327684
87
0.668219
89f4fd7de675c72a755421110bd985e1a7a44779
8,401
cpp
C++
stromx/runtime/Compare.cpp
uboot/stromx
5aff42008c576ca4aa9dbb1fdd238dac1d875ece
[ "Apache-2.0" ]
11
2015-08-16T09:59:07.000Z
2021-06-15T14:39:20.000Z
stromx/runtime/Compare.cpp
uboot/stromx
5aff42008c576ca4aa9dbb1fdd238dac1d875ece
[ "Apache-2.0" ]
null
null
null
stromx/runtime/Compare.cpp
uboot/stromx
5aff42008c576ca4aa9dbb1fdd238dac1d875ece
[ "Apache-2.0" ]
8
2015-05-10T02:25:37.000Z
2020-10-28T13:06:01.000Z
/* * Copyright 2015 Matthias Fuchs * * 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...
36.211207
129
0.548268
d602d70d3a27518ad0a3ce6df426b00285405dcb
1,771
cpp
C++
compiler/src/Ast/AstDef.cpp
jadedrip/SimpleLang
f39c490e5a41151d1d0d2f8c77c6ce524b7842f0
[ "BSD-3-Clause" ]
16
2015-03-30T02:46:49.000Z
2020-07-28T13:36:54.000Z
compiler/src/Ast/AstDef.cpp
jadedrip/SimpleLang
f39c490e5a41151d1d0d2f8c77c6ce524b7842f0
[ "BSD-3-Clause" ]
1
2020-09-01T09:38:30.000Z
2020-09-01T09:38:30.000Z
compiler/src/Ast/AstDef.cpp
jadedrip/SimpleLang
f39c490e5a41151d1d0d2f8c77c6ce524b7842f0
[ "BSD-3-Clause" ]
2
2020-02-07T02:09:48.000Z
2020-02-19T13:31:35.000Z
#include "stdafx.h" #include "AstDef.h" #include "AstContext.h" #include "AstGetClass.h" #include "utility.h" #include "../Type/AutoType.h" #include "../Type/ClassInstanceType.h" #include "../CodeGenerate/DefGen.h" #include "../CodeGenerate/GenList.h" #include "../CodeGenerate/CastGen.h" #include "../CodeGenerate/Stri...
22.417722
101
0.640316
d6077ea40b8d56f29839f9970ac2762b305a2e24
8,750
cpp
C++
src/probability.cpp
Michael-Stevens-27/silverblaze
f0f001710589fe072545b00f0d3524fc993f4cbd
[ "MIT" ]
3
2018-03-29T15:54:56.000Z
2018-10-15T18:28:59.000Z
src/probability.cpp
Michael-Stevens-27/silverblaze
f0f001710589fe072545b00f0d3524fc993f4cbd
[ "MIT" ]
2
2020-02-11T20:44:25.000Z
2020-06-18T20:00:32.000Z
src/probability.cpp
Michael-Stevens-27/silverblaze
f0f001710589fe072545b00f0d3524fc993f4cbd
[ "MIT" ]
null
null
null
#include <Rcpp.h> #include <math.h> #include "probability.h" #include "misc.h" using namespace std; //------------------------------------------------ // draw a value from an exponential distribution with set rate parameter double exp1(double rate){ return R::rexp(rate); } //-----------------------...
29.069767
105
0.551886
d609367837cf3353590aa149bec33ad2091ee04c
386
cpp
C++
Chapter13/drills/Drill_01.cpp
JohnWoods11/learning_c-
094509a4e96518e1aa12205615ca50849932f9fa
[ "Apache-2.0" ]
null
null
null
Chapter13/drills/Drill_01.cpp
JohnWoods11/learning_c-
094509a4e96518e1aa12205615ca50849932f9fa
[ "Apache-2.0" ]
null
null
null
Chapter13/drills/Drill_01.cpp
JohnWoods11/learning_c-
094509a4e96518e1aa12205615ca50849932f9fa
[ "Apache-2.0" ]
null
null
null
#include "GUI/Graph.h" #include "GUI/Simple_window.h" #include "GUI/std_lib_facilities.h" #include <iostream> void drill_1() { const Point py(50,50); Simple_window win(py, 1000, 800, "Drill 1"); win.wait_for_button(); } int main() { try { drill_1(); } catch (...) { ...
14.296296
48
0.544041
d61643ba5639fa71ed176aef294c2198c0a17df3
1,207
cpp
C++
special/2/2.cpp
249606097/Cpp-Experiment
6d97388664f125853193e9d00a1f9ee53ffde21c
[ "MIT" ]
null
null
null
special/2/2.cpp
249606097/Cpp-Experiment
6d97388664f125853193e9d00a1f9ee53ffde21c
[ "MIT" ]
null
null
null
special/2/2.cpp
249606097/Cpp-Experiment
6d97388664f125853193e9d00a1f9ee53ffde21c
[ "MIT" ]
null
null
null
#include <iostream> #include <ctime> #include <cstdlib> #include <cmath> #include <ctime> using namespace std; bool in_circle(double x, double y); int main() { double e = 0.01; int n = 1000; double pi = 100.0; double residual = 100.0; int count = 0; while (residual > e)...
21.175439
83
0.451533
d61ba495fd2b7c347312e10be17db6a4d5d4f7ad
3,409
cpp
C++
src/system.cpp
MisaghM/Doodle-Jump
850e529547e83e7a3a0607fea635517bf2e3bcc4
[ "MIT" ]
2
2021-09-02T20:05:34.000Z
2021-11-05T19:38:15.000Z
src/system.cpp
MisaghM/Doodle-Jump
850e529547e83e7a3a0607fea635517bf2e3bcc4
[ "MIT" ]
null
null
null
src/system.cpp
MisaghM/Doodle-Jump
850e529547e83e7a3a0607fea635517bf2e3bcc4
[ "MIT" ]
null
null
null
#include "system.hpp" #include "enemies/enemy_normal.hpp" #include "items/spring.hpp" #include "platforms/platform_breakable.hpp" #include "platforms/platform_movable.hpp" #include "platforms/platform_normal.hpp" #include "spritesheet.hpp" System::System(Window* win_) : win_(win_), menuScene_(&inputMan_), ...
30.4375
146
0.581989
d6218f13c6dd06e76f4513ac32ef5a24ea4aa2d7
11,137
cc
C++
vector.cc
leiii/datamaps
fc134a5f00284feab8a527802cf930e74d351bda
[ "BSD-2-Clause" ]
197
2015-01-13T01:01:35.000Z
2021-07-22T02:05:00.000Z
vector.cc
thiagoramos23/datamaps
76e620adabbedabd6866b23b30c145b53bae751e
[ "BSD-2-Clause" ]
6
2015-01-16T15:08:26.000Z
2018-09-30T07:55:30.000Z
vector.cc
thiagoramos23/datamaps
76e620adabbedabd6866b23b30c145b53bae751e
[ "BSD-2-Clause" ]
33
2015-04-03T16:00:47.000Z
2020-10-06T07:25:03.000Z
#include <iostream> #include <fstream> #include <string> #include <zlib.h> #include "vector_tile.pb.h" #define XMAX 4096 #define YMAX 4096 extern "C" { #include "graphics.h" #include "clip.h" } struct line { int x0; int y0; int x1; int y1; }; struct point { int x; int y; }; #define MAX_POINTS 10000 struct ...
21.966469
175
0.585885
d62204e616f8edb2f0032058d3f6ad907800fbb3
1,091
cc
C++
test/test_flann.cc
mozuysal/virg-workspace
ff0df41ceb288609c5279a85d9d04dbbc178d33e
[ "BSD-3-Clause" ]
null
null
null
test/test_flann.cc
mozuysal/virg-workspace
ff0df41ceb288609c5279a85d9d04dbbc178d33e
[ "BSD-3-Clause" ]
3
2017-02-07T11:26:33.000Z
2017-02-07T12:43:41.000Z
test/test_flann.cc
mozuysal/virg-workspace
ff0df41ceb288609c5279a85d9d04dbbc178d33e
[ "BSD-3-Clause" ]
null
null
null
#include "gtest/gtest.h" #include "flann/flann.hpp" using flann::Matrix; using flann::Index; using flann::LinearIndexParams; using flann::L2; using flann::SearchParams; TEST(flann, linear_index) { int nn = 2; float data[4] = { 0.0f, 0.0f, 1.0, 0.5}; Matrix<float> da...
27.275
70
0.578368
d628062af287155a56565c17c207e7965ee5875c
1,315
cpp
C++
COURSE_WHITE/WEEK_2/CONTAINER/Middle_temperature/main.cpp
diekaltesonne/c-plus-plus-modern-development
d569bd20465e76aab97111bcd316cd02ebca41dd
[ "MIT" ]
null
null
null
COURSE_WHITE/WEEK_2/CONTAINER/Middle_temperature/main.cpp
diekaltesonne/c-plus-plus-modern-development
d569bd20465e76aab97111bcd316cd02ebca41dd
[ "MIT" ]
null
null
null
COURSE_WHITE/WEEK_2/CONTAINER/Middle_temperature/main.cpp
diekaltesonne/c-plus-plus-modern-development
d569bd20465e76aab97111bcd316cd02ebca41dd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; /* * Даны значения температуры, наблюдавшиеся в течение N подряд идущих дней. * Найдите номера дней (в нумерации с нуля) со значением температуры выше среднего арифметического за все N дней. * Гарантируется, что среднее арифметическое значений температуры яв...
30.581395
144
0.669202
d62869904cc8110964fdb3a0ea0fd9355c5e0066
44,630
cc
C++
tacacsAuthProxy/src/proxy_server.cc
gkumar78/tacacs_auth_proxy
bffdfde75e67e075e47f345580bd6adbea8930d5
[ "Apache-2.0" ]
null
null
null
tacacsAuthProxy/src/proxy_server.cc
gkumar78/tacacs_auth_proxy
bffdfde75e67e075e47f345580bd6adbea8930d5
[ "Apache-2.0" ]
null
null
null
tacacsAuthProxy/src/proxy_server.cc
gkumar78/tacacs_auth_proxy
bffdfde75e67e075e47f345580bd6adbea8930d5
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2018-present Open Networking 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 or ...
39.741763
171
0.588438
d62dd8cb0d504f37e451cdaf048bda0c3a22a3cc
6,116
cpp
C++
src/jet/grid_forward_euler_diffusion_solver3.cpp
PavelBlend/fluid-engine-dev
45b4bdbdb4c6d8c0beebc682180469198203b0ef
[ "MIT" ]
1,355
2016-05-08T07:29:22.000Z
2022-03-30T13:59:35.000Z
src/jet/grid_forward_euler_diffusion_solver3.cpp
Taiyuan-Zhang/fluid-engine-dev
45b4bdbdb4c6d8c0beebc682180469198203b0ef
[ "MIT" ]
208
2016-05-25T19:47:27.000Z
2022-01-17T04:18:29.000Z
src/jet/grid_forward_euler_diffusion_solver3.cpp
Taiyuan-Zhang/fluid-engine-dev
45b4bdbdb4c6d8c0beebc682180469198203b0ef
[ "MIT" ]
218
2016-08-23T16:51:10.000Z
2022-03-31T03:55:48.000Z
// Copyright (c) 2018 Doyub Kim // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #include <pch.h> #include <jet/fdm_utils.h> #include <jet/grid_forward_euler_diffusion_solver3.h> #inclu...
31.045685
72
0.552158
d6320ffbbb1fd3681cb234be4d0f345d770834d1
3,724
cpp
C++
vnext/Microsoft.ReactNative/ReactNativeHost.cpp
tom-un/react-native-windows
c09b55cce76604fe0b379b10206a974915dafc25
[ "MIT" ]
2
2021-09-05T18:12:44.000Z
2021-09-06T02:08:25.000Z
vnext/Microsoft.ReactNative/ReactNativeHost.cpp
zchronoz/react-native-windows
111b727c50b4349b60ffe98f7ff70d487624add3
[ "MIT" ]
2
2021-05-09T03:34:28.000Z
2021-09-02T14:49:43.000Z
vnext/Microsoft.ReactNative/ReactNativeHost.cpp
t0rr3sp3dr0/react-native-windows
5ed2c5626fb2d126022ba215a71a1cb92f7337b3
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "ReactNativeHost.h" #include "ReactNativeHost.g.cpp" #include "ReactInstanceManager.h" #include "ReactInstanceManagerBuilder.h" #include "ReactInstanceSettings.h" #include "ReactRootView...
30.276423
106
0.747046
d6327b91a4596af3d13cdd3bb03e3b3689b79565
1,535
cpp
C++
app/src/main/cpp/native-lib.cpp
shahazzat/Python-Android
41716e1960ab5b7ddb0dffe28567ae0f09e089ab
[ "MIT" ]
1
2021-08-05T13:43:45.000Z
2021-08-05T13:43:45.000Z
beeware/GaitAnalyzer/gaitanalyzer/android/gradle/Gait Analyzer/app/src/main/cpp/native-lib.cpp
gait-analyzer/GaitMonitoringForParkinsonsDiseasePatients
2064375ddc36bf38f3ff65f09e776328b8b4612a
[ "MIT" ]
null
null
null
beeware/GaitAnalyzer/gaitanalyzer/android/gradle/Gait Analyzer/app/src/main/cpp/native-lib.cpp
gait-analyzer/GaitMonitoringForParkinsonsDiseasePatients
2064375ddc36bf38f3ff65f09e776328b8b4612a
[ "MIT" ]
null
null
null
#include <jni.h> #include <string> #include <android/log.h> #include <unistd.h> #include <pthread.h> // Inspired by https://codelab.wordpress.com/2014/11/03/how-to-use-standard-output-streams-for-logging-in-android-apps/ static int pfd[2]; static pthread_t thr; static const char *tag = "stdio"; static void *android_...
30.098039
119
0.658632
d63398010a208af19e5347957d12dcf82055b812
698
cpp
C++
Utils/StringUtils.cpp
paulross80/myoga-utils
ecdff503690bb0b3a521e7af66bb84dfbd899799
[ "MIT" ]
null
null
null
Utils/StringUtils.cpp
paulross80/myoga-utils
ecdff503690bb0b3a521e7af66bb84dfbd899799
[ "MIT" ]
null
null
null
Utils/StringUtils.cpp
paulross80/myoga-utils
ecdff503690bb0b3a521e7af66bb84dfbd899799
[ "MIT" ]
null
null
null
#include <stdexcept> #include <algorithm> #include <cctype> #include "StringUtils.hpp" namespace myoga { // String to lowercase auto lowercase(std::string_view str) -> std::string { std::string ret(str); for (std::size_t i = 0U; i < ret.length(); i++) ret[i] = charToLower(ret[i]); return ret; }...
19.388889
93
0.617479
d634459a8057739295b11d8375cfb44714bf6d9b
4,816
cpp
C++
motif4struct_bin.cpp
devuci/bct-cpp
bbb33f476bffbb5669e051841f00c3241f4d6f69
[ "MIT" ]
null
null
null
motif4struct_bin.cpp
devuci/bct-cpp
bbb33f476bffbb5669e051841f00c3241f4d6f69
[ "MIT" ]
null
null
null
motif4struct_bin.cpp
devuci/bct-cpp
bbb33f476bffbb5669e051841f00c3241f4d6f69
[ "MIT" ]
null
null
null
#include "bct.h" /* * Counts occurrences of four-node structural motifs in a binary graph. */ VECTOR_T* BCT_NAMESPACE::motif4struct_bin(const MATRIX_T* A, MATRIX_T** F) { if (safe_mode) check_status(A, SQUARE | BINARY, "motif4struct_bin"); // load motif34lib M4n ID4 VECTOR_T* ID4; MATRIX_T* M4 = motif4generate...
27.83815
145
0.508721
d64117aa915e6ae0b088b4a29488fb5f0d38fad0
285
cpp
C++
Primer/Trials/check.cpp
siddheshpai/hello-world
291456962d46c6ce857d75be86bc23634625925f
[ "Apache-2.0" ]
null
null
null
Primer/Trials/check.cpp
siddheshpai/hello-world
291456962d46c6ce857d75be86bc23634625925f
[ "Apache-2.0" ]
null
null
null
Primer/Trials/check.cpp
siddheshpai/hello-world
291456962d46c6ce857d75be86bc23634625925f
[ "Apache-2.0" ]
1
2020-05-30T04:30:16.000Z
2020-05-30T04:30:16.000Z
#include <iostream> int main() { int n = 5; void *p = &n; int *pi = static_cast<int*>(p); ++*pi; std::cout << *pi << std::endl; //Checking ref to const std::string const &s = "9-99-999-9999"; std::cout << s << std::endl; return 0; }
15.833333
43
0.477193
d64493de84c9e0f4f5f00dcbf845a5fd22bea3d7
1,798
cxx
C++
dicom2rawiv/zipextract/gdcm-2.6.3/Testing/Source/Common/Cxx/TestDirectory.cxx
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
47
2020-03-30T14:36:46.000Z
2022-03-06T07:44:54.000Z
dicom2rawiv/zipextract/gdcm-2.6.3/Testing/Source/Common/Cxx/TestDirectory.cxx
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
null
null
null
dicom2rawiv/zipextract/gdcm-2.6.3/Testing/Source/Common/Cxx/TestDirectory.cxx
chipbuster/skull-atlas
7f3ee009e1d5f65f101fe853a2cf6e12662970ee
[ "BSD-3-Clause" ]
8
2020-04-01T01:22:45.000Z
2022-01-02T13:06:09.000Z
/*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 Mathieu Malaterre All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This software is distributed WITHOUT A...
24.972222
98
0.565628
d6460c3cda3662f4730f91a14731321247e446ed
258
cpp
C++
PETCS/Intermediate/aplusb.cpp
dl4us/Competitive-Programming-1
d42fab3bd68168adbe4b5f594f19ee5dfcd1389b
[ "MIT" ]
null
null
null
PETCS/Intermediate/aplusb.cpp
dl4us/Competitive-Programming-1
d42fab3bd68168adbe4b5f594f19ee5dfcd1389b
[ "MIT" ]
null
null
null
PETCS/Intermediate/aplusb.cpp
dl4us/Competitive-Programming-1
d42fab3bd68168adbe4b5f594f19ee5dfcd1389b
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int N; int main() { cin.sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> N; int a, b; for(int i = 0; i < N; i++) { cin >> a >> b; cout << a+b << "\n"; } return 0; }
17.2
32
0.453488
d6468e7220e5b770459d2c4cff62b1dff129a89a
9,676
cpp
C++
Widgets/Datalog/dialogplotchannelchoose.cpp
cyferc/Empro-Datalog-Viewer
8d66cefe64aa254c283e72034f9ea452938ad212
[ "MIT" ]
6
2017-03-29T14:44:06.000Z
2021-08-17T06:11:09.000Z
Widgets/Datalog/dialogplotchannelchoose.cpp
cyferc/Empro-Datalog-Viewer
8d66cefe64aa254c283e72034f9ea452938ad212
[ "MIT" ]
1
2018-11-24T11:12:08.000Z
2018-11-24T11:12:08.000Z
Widgets/Datalog/dialogplotchannelchoose.cpp
cyferc/Empro-Datalog-Viewer
8d66cefe64aa254c283e72034f9ea452938ad212
[ "MIT" ]
3
2018-01-20T21:53:03.000Z
2020-09-23T19:02:42.000Z
#include "dialogplotchannelchoose.h" #include "ui_dialogplotchannelchoose.h" #include <QGridLayout> #include <QCheckBox> #include <QDebug> #include "plotdatalog.h" DialogPlotChannelChoose::DialogPlotChannelChoose(std::vector<PointList *> vecOfPointLists, QSplitter *pSplitterPlots, QWidget *pParent) : QDialog(pPare...
33.597222
148
0.632906
d6477a936a53840c19a74bddb1f90eb57f8b9541
9,898
cpp
C++
test/hotspot/gtest/metaspace/test_chunkManager_stress.cpp
1690296356/jdk
eaf668d1510c28d51e26c397b582b66ebdf7e263
[ "Apache-2.0" ]
null
null
null
test/hotspot/gtest/metaspace/test_chunkManager_stress.cpp
1690296356/jdk
eaf668d1510c28d51e26c397b582b66ebdf7e263
[ "Apache-2.0" ]
null
null
null
test/hotspot/gtest/metaspace/test_chunkManager_stress.cpp
1690296356/jdk
eaf668d1510c28d51e26c397b582b66ebdf7e263
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2020 SAP SE. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License...
33.666667
99
0.703071
d64e446dff7144ca8d332cb99165bcb8e195f0bd
707
cpp
C++
src/axl_fsm/axl_fsm_StdRegexNameMgr.cpp
wandns/axl
5686b94b18033df13a9e1656e1aaaf086c442a21
[ "MIT" ]
null
null
null
src/axl_fsm/axl_fsm_StdRegexNameMgr.cpp
wandns/axl
5686b94b18033df13a9e1656e1aaaf086c442a21
[ "MIT" ]
null
null
null
src/axl_fsm/axl_fsm_StdRegexNameMgr.cpp
wandns/axl
5686b94b18033df13a9e1656e1aaaf086c442a21
[ "MIT" ]
null
null
null
//.............................................................................. // // This file is part of the AXL library. // // AXL is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloads/archive/axl/...
29.458333
80
0.381895
d64e7ea4e4dabafa189a4fea5e17aaaaaa8ecd54
4,641
hpp
C++
ext/tatara/array/integer/int_array.hpp
S-H-GAMELINKS/tatara
b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0
[ "MIT" ]
6
2019-08-16T11:35:43.000Z
2019-11-16T07:57:06.000Z
ext/tatara/array/integer/int_array.hpp
S-H-GAMELINKS/tatara
b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0
[ "MIT" ]
378
2019-08-15T07:55:18.000Z
2020-02-16T12:22:34.000Z
ext/tatara/array/integer/int_array.hpp
S-H-GAMELINKS/tatara
b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0
[ "MIT" ]
1
2019-09-02T15:32:58.000Z
2019-09-02T15:32:58.000Z
#ifndef INT_ARRAY_HPP_ #define INT_ARRAY_HPP_ #include <ruby.h> #include <vector> #include <algorithm> #include <iterator> #include <iostream> static VALUE int_array_init(VALUE self) { return self; } static VALUE int_array_first(VALUE self) { return rb_ary_entry(self, 0); } static VALUE int_array_last(VALUE...
27.3
93
0.664081
d65105f7124e34e006397ffc4eb686cf9b87ab8c
627
hpp
C++
src/include/helper.hpp
allen880117/Simulated-Quantum-Annealing
84ce0a475a9f132502c4bb4e9b4ca5824cdb7630
[ "MIT" ]
2
2021-09-08T08:01:27.000Z
2021-11-21T00:08:56.000Z
src/include/helper.hpp
allen880117/Simulated-Quantum-Annealing
84ce0a475a9f132502c4bb4e9b4ca5824cdb7630
[ "MIT" ]
null
null
null
src/include/helper.hpp
allen880117/Simulated-Quantum-Annealing
84ce0a475a9f132502c4bb4e9b4ca5824cdb7630
[ "MIT" ]
null
null
null
#ifndef _HELPER_HPP_ #define _HELPER_HPP_ #include "sqa.hpp" /* Progress Bar */ #define PBSTR "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||" #define PBWIDTH 60 /* Print the progress bar */ void printProgress(double percentage); /* Generate Random Initial State */ void generateRandomState(spin_t trot...
27.26087
76
0.590112
d651893644eb14548298ed0bad64c2821f706b20
3,457
cpp
C++
RandPass.cpp
abdulrahmanabdulazeez/RandPass
e7b11c2f577d3ca460358bfa826e7939825cccc4
[ "MIT" ]
2
2021-09-13T15:34:30.000Z
2021-09-30T22:16:44.000Z
RandPass.cpp
abdulrahmanabdulazeez/RandPass
e7b11c2f577d3ca460358bfa826e7939825cccc4
[ "MIT" ]
null
null
null
RandPass.cpp
abdulrahmanabdulazeez/RandPass
e7b11c2f577d3ca460358bfa826e7939825cccc4
[ "MIT" ]
null
null
null
//Do not copy: //More Advanced Version: //Random Password Generator: #include <iostream> #include <cstdlib> #include <ctime> #include <fstream> using namespace std; void help(); void PASSINTRO(){ cout << "------------------------------------------------------------\n\n"; cout << " RANDOM PASSWORD GENERATOR\n"; cout << ...
24.174825
105
0.596182
d65bf9553350916a22745d911554bdfcb4dff652
14,892
cpp
C++
Coda105/Coda105/Source/Serial/juce_serialport_Windows.cpp
Klepto63/CodaJUCE
1930076f90832daa5c68c7cd09aeb1fce2934419
[ "MIT" ]
null
null
null
Coda105/Coda105/Source/Serial/juce_serialport_Windows.cpp
Klepto63/CodaJUCE
1930076f90832daa5c68c7cd09aeb1fce2934419
[ "MIT" ]
null
null
null
Coda105/Coda105/Source/Serial/juce_serialport_Windows.cpp
Klepto63/CodaJUCE
1930076f90832daa5c68c7cd09aeb1fce2934419
[ "MIT" ]
null
null
null
//win32_SerialPort.cpp //Serial Port classes in a Juce stylee, by graffiti //see SerialPort.h for details // // Updated for current Juce API 8/1/13 Marc Lindahl // #include "../JuceLibraryCode/JuceHeader.h" #if JUCE_WINDOWS using namespace juce; #include <windows.h> #include <stdio.h> #include "juce_serialport.h" ...
32.946903
147
0.599449
d6618d5c25345e95ecb195b5f0d64cc65ad2cd5f
275
cpp
C++
2021.10.03-homework-3/Project3/Source.cpp
st095227/homework_2021-2022
7b3abd8848ead7456972c5d2f0f4404532e299bc
[ "Apache-2.0" ]
null
null
null
2021.10.03-homework-3/Project3/Source.cpp
st095227/homework_2021-2022
7b3abd8848ead7456972c5d2f0f4404532e299bc
[ "Apache-2.0" ]
null
null
null
2021.10.03-homework-3/Project3/Source.cpp
st095227/homework_2021-2022
7b3abd8848ead7456972c5d2f0f4404532e299bc
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main(int argv, char* argc[]) { int n = 0; cin >> n; int i = 0; int b = 0; while (n != 0) { ++i; for (int j = 0; j < i && n>0; ++j) { ++b; cout << b << ' '; --n; } cout << endl; } return EXIT_SUCCESS; }
11.956522
36
0.461818
d664e5f30f2b72c24f2066baad8a56b3552c82dc
4,169
cpp
C++
DirectShow/Player.cpp
Marloxo/DirectShow
be99d025234ce750a9c92e71ff97d78e8e4ffcf3
[ "MIT" ]
6
2017-09-10T16:27:44.000Z
2021-12-18T16:29:02.000Z
DirectShow/Player.cpp
Marloxo/DirectShow
be99d025234ce750a9c92e71ff97d78e8e4ffcf3
[ "MIT" ]
null
null
null
DirectShow/Player.cpp
Marloxo/DirectShow
be99d025234ce750a9c92e71ff97d78e8e4ffcf3
[ "MIT" ]
2
2018-01-23T07:23:14.000Z
2020-05-19T13:51:22.000Z
#include "stdafx.h" #include <dshow.h> //This is needed for virtually //everything in BrowseFolder. #include <Windows.h> #include <Commdlg.h> #include <tchar.h> #include <string> #include <iostream> using namespace std; //Define my function int Stop(); void ThrowIfError(HRESULT hr); bool GetCompletionEvent(); // ...
20.140097
127
0.676901
d666f64f883dacdd4b5404cdaeb89b92e1ea7a87
3,030
cpp
C++
portable-executable/portable-executable-library2/tests/test_resource_message_table/main.cpp
psneo/Pesidious
c36647d1b3ba86a9a4e6e1a0bda2a371d8875781
[ "MIT" ]
83
2020-09-14T16:51:42.000Z
2022-03-31T23:23:02.000Z
portable-executable/portable-executable-library2/tests/test_resource_message_table/main.cpp
bedangSen/Pesidious-1
3348a8977951074eef41dbd8460934ef7a9093fd
[ "MIT" ]
9
2020-11-13T19:08:15.000Z
2022-03-12T00:50:20.000Z
portable-executable/portable-executable-library2/tests/test_resource_message_table/main.cpp
bedangSen/Pesidious-1
3348a8977951074eef41dbd8460934ef7a9093fd
[ "MIT" ]
30
2020-09-13T15:05:22.000Z
2022-03-28T05:51:05.000Z
#include <iostream> #include <fstream> #include <pe_bliss.h> #include <pe_bliss_resources.h> #include "test.h" #ifdef PE_BLISS_WINDOWS #include "lib.h" #endif using namespace pe_bliss; int main(int argc, char* argv[]) { PE_TEST_START std::auto_ptr<std::ifstream> pe_file; if(!open_pe_file(argc, ...
48.095238
152
0.744884
d66735c18595db157d264abb51aafadb8eb3a8f3
2,361
cpp
C++
plugins/community/repos/BaconMusic/src/SampleDelay.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
plugins/community/repos/BaconMusic/src/SampleDelay.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
plugins/community/repos/BaconMusic/src/SampleDelay.cpp
guillaume-plantevin/VeeSeeVSTRack
76fafc8e721613669d6f5ae82a0f58ce923a91e1
[ "Zlib", "BSD-3-Clause" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
#include "BaconPlugs.hpp" #include "SampleDelay.hpp" namespace rack_plugin_BaconMusic { struct SampleDelayWidget : ModuleWidget { typedef SampleDelay< Module > SD; SampleDelayWidget( SD *module); }; SampleDelayWidget::SampleDelayWidget( SD *module ) : ModuleWidget( module ) { box.size = Vec( SCREW_WIDTH * 5, ...
38.704918
143
0.565862
d6698da573210a66a18d0e558f4d95bb0b653ed3
2,928
cpp
C++
cpp/lambdas.cpp
MCJOHN974/fibonacci
b70f9cb99160273501668d2e471e8d08187a35c9
[ "MIT" ]
13
2022-01-11T16:49:21.000Z
2022-03-05T02:53:40.000Z
cpp/lambdas.cpp
MCJOHN974/fibonacci
b70f9cb99160273501668d2e471e8d08187a35c9
[ "MIT" ]
31
2022-01-13T16:05:35.000Z
2022-03-22T14:27:38.000Z
cpp/lambdas.cpp
MCJOHN974/fibonacci
b70f9cb99160273501668d2e471e8d08187a35c9
[ "MIT" ]
9
2022-01-13T14:56:44.000Z
2022-03-09T14:56:12.000Z
// Copyright (c) 2022 Yegor Bugayenko // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publis...
29.575758
80
0.67862
d66c414f4a81ebcad706510e5398609143c5fec0
355
cpp
C++
src/ai/context/RedLine.cpp
elikos/elikos_decisionmaking
d48379643e69ad5fa5dfb2fc79034ca259cf0012
[ "MIT" ]
1
2019-02-24T08:29:06.000Z
2019-02-24T08:29:06.000Z
src/ai/context/RedLine.cpp
elikos/elikos_decisionmaking
d48379643e69ad5fa5dfb2fc79034ca259cf0012
[ "MIT" ]
null
null
null
src/ai/context/RedLine.cpp
elikos/elikos_decisionmaking
d48379643e69ad5fa5dfb2fc79034ca259cf0012
[ "MIT" ]
1
2019-02-12T23:06:13.000Z
2019-02-12T23:06:13.000Z
// // Created by olivier on 01/07/16. // #include "TargetRobot.h" #include "RedLine.h" namespace ai { RedLine::RedLine(tf::Point& cornerA, tf::Point& cornerB) : AbstractLine(cornerA, cornerB) { } RedLine::~RedLine() { } bool RedLine::isGoodLineIntersection(const TargetRobot& target) { // TODO: check t...
12.678571
63
0.667606
698fc27608fd90d3e1f3a9d36213e8ef85c75628
1,507
cpp
C++
app/UseSelectionDialog.cpp
Toysoft/ciderpress
640959dad551ba75a48bd3c49629579730ead351
[ "BSD-3-Clause" ]
84
2015-01-01T00:27:18.000Z
2022-03-28T22:55:56.000Z
app/UseSelectionDialog.cpp
Toysoft/ciderpress
640959dad551ba75a48bd3c49629579730ead351
[ "BSD-3-Clause" ]
49
2015-01-11T19:58:57.000Z
2022-01-08T00:27:12.000Z
app/UseSelectionDialog.cpp
Toysoft/ciderpress
640959dad551ba75a48bd3c49629579730ead351
[ "BSD-3-Clause" ]
19
2015-06-06T15:23:18.000Z
2022-01-12T23:26:43.000Z
/* * CiderPress * Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved. * See the file LICENSE for distribution terms. */ #include "stdafx.h" #include "UseSelectionDialog.h" BEGIN_MESSAGE_MAP(UseSelectionDialog, CDialog) ON_WM_HELPINFO() //ON_COMMAND(IDHELP, OnHelp) END_MESSAGE_MAP() ...
24.704918
64
0.640345
6992ef5cb96dee2ed33ecffa86cf2fea2bbada98
1,054
cpp
C++
drake/util/closestExpmapmex.cpp
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
4
2018-04-16T09:54:52.000Z
2021-03-29T21:59:27.000Z
drake/util/closestExpmapmex.cpp
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
drake/util/closestExpmapmex.cpp
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
1
2017-08-24T20:32:03.000Z
2017-08-24T20:32:03.000Z
#include "mex.h" #include "drakeMexUtil.h" #include "drakeGradientUtil.h" #include "drakeGeometryUtil.h" using namespace std; using namespace Eigen; void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { if (nrhs != 2) { mexErrMsgIdAndTxt("Drake:closestExpmapmex:InvalidInputs","Usage is ...
30.114286
104
0.680266
69936abdf09f2bb3af3d7e3ffd4be62b0809830e
1,283
cpp
C++
ReactionPlus/Exec/InputDevice.cpp
stricq/AmigaSynergy
fd81da853b3c5a50a2bb5c160c5f7320daaa7571
[ "MIT" ]
1
2022-03-05T11:30:18.000Z
2022-03-05T11:30:18.000Z
ReactionPlus/Exec/InputDevice.cpp
stricq/AmigaSynergy
fd81da853b3c5a50a2bb5c160c5f7320daaa7571
[ "MIT" ]
null
null
null
ReactionPlus/Exec/InputDevice.cpp
stricq/AmigaSynergy
fd81da853b3c5a50a2bb5c160c5f7320daaa7571
[ "MIT" ]
1
2022-03-06T11:22:44.000Z
2022-03-06T11:22:44.000Z
#include "InputDevice.hpp" #include <proto/exec.h> namespace RAPlus { namespace Exec { InputDevice::InputDevice() { stdRequest = new StandardIORequest(); inputBit = stdRequest->getSignal(); inputStat = IExec->OpenDevice("input.device",0,stdRequest->getIORequest(),0); if (inputStat...
18.328571
83
0.64926
6996320db8fe0598e39bb64e6787114c0b66766d
1,275
hpp
C++
vcl/math/interpolation/interpolation.hpp
PPonc/inf443-vcl
4d7bb0130c4bc44e089059464223eca318fdbd00
[ "MIT" ]
null
null
null
vcl/math/interpolation/interpolation.hpp
PPonc/inf443-vcl
4d7bb0130c4bc44e089059464223eca318fdbd00
[ "MIT" ]
null
null
null
vcl/math/interpolation/interpolation.hpp
PPonc/inf443-vcl
4d7bb0130c4bc44e089059464223eca318fdbd00
[ "MIT" ]
null
null
null
#pragma once #include "../../containers/containers.hpp" namespace vcl { /** Interpolate value(x,y) using bilinear interpolation * - value: grid_2D - coordinates assumed to be its indices * - (x,y): coordinates assumed to be \in [0,value.dimension.x-1] X [0,value.dimension.y] */ template ...
28.333333
93
0.561569
6997e7c2e38f14160b33edd8880fd941a466dad3
2,799
cpp
C++
libraries/palindrome/palindrome.cpp
AndreTeixeira1998/Arduino
16918bada3cf9dfee0f6baa72ee1de87602b84ca
[ "MIT" ]
1,253
2015-01-03T17:07:53.000Z
2022-03-22T11:46:42.000Z
libraries/palindrome/palindrome.cpp
AndreTeixeira1998/Arduino
16918bada3cf9dfee0f6baa72ee1de87602b84ca
[ "MIT" ]
134
2015-01-21T20:33:13.000Z
2022-01-05T08:59:33.000Z
libraries/palindrome/palindrome.cpp
AndreTeixeira1998/Arduino
16918bada3cf9dfee0f6baa72ee1de87602b84ca
[ "MIT" ]
3,705
2015-01-02T17:03:16.000Z
2022-03-31T13:20:30.000Z
// // FILE: palindrome.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // PURPOSE: Arduino library to do palindrome experiments. // URL: https://github.com/RobTillaart/palindrome // // HISTORY: // 0.1.0 2021-12-02 initial version // 0.1.1 2021-12-03 add palindromeCount(), palindromePercentage() #include...
18.175325
82
0.548053
6997eb447539139d2be85fd1a995623a2736089d
1,549
cpp
C++
src/eduroam.cpp
ShanghaitechGeekPie/Auth-esp32-to-ShanghaiTech-wifi
5fe779fe64a46378efb8e8c97a42ece88e2bb486
[ "MIT" ]
null
null
null
src/eduroam.cpp
ShanghaitechGeekPie/Auth-esp32-to-ShanghaiTech-wifi
5fe779fe64a46378efb8e8c97a42ece88e2bb486
[ "MIT" ]
null
null
null
src/eduroam.cpp
ShanghaitechGeekPie/Auth-esp32-to-ShanghaiTech-wifi
5fe779fe64a46378efb8e8c97a42ece88e2bb486
[ "MIT" ]
null
null
null
#include <eduroam.h> void connect_to_eduroam_task(void* void_edrp){ const char* ssid = "eduroam"; eduroam_recipe *edrp = (eduroam_recipe *)void_edrp; // WPA2 enterprise magic starts here WiFi.disconnect(true); WiFi.mode(WIFI_STA); esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)edrp->eduroam_id, strlen(edrp...
34.422222
104
0.770174