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
69cf159f7d5b64cc24ca1479796d1679dc4f0c94
6,136
cpp
C++
Plugins/uPacketDivision/uPacketDivision/Assembler.cpp
hecomi/uPacketDivision
264a9dbe77a03f8534c2e087d7b33143478c6822
[ "MIT" ]
4
2021-11-28T23:54:15.000Z
2022-02-20T10:50:28.000Z
Plugins/uPacketDivision/uPacketDivision/Assembler.cpp
hecomi/uPacketDivision
264a9dbe77a03f8534c2e087d7b33143478c6822
[ "MIT" ]
null
null
null
Plugins/uPacketDivision/uPacketDivision/Assembler.cpp
hecomi/uPacketDivision
264a9dbe77a03f8534c2e087d7b33143478c6822
[ "MIT" ]
null
null
null
#include <chrono> #include <algorithm> #include "Assembler.h" #include "Log.h" namespace uPacketDivision { void Frame::AddChunkData(const void *pData, uint32_t) { const auto &header = *reinterpret_cast<const PacketHeader*>(pData); if (header.version != GetPacketHeaderVersion()) { ...
23.330798
103
0.564211
hecomi
69d86305d9ebc709378d6fa463a2778b4555147f
671
hpp
C++
incs/Borders.hpp
paribro/hydrodynamic-simulator
63f16099a4b60bd6240d2c7a6950009637197382
[ "MIT" ]
2
2020-08-12T11:41:04.000Z
2021-02-20T20:02:44.000Z
incs/Borders.hpp
prdbrg/hydrodynamic-simulator
63f16099a4b60bd6240d2c7a6950009637197382
[ "MIT" ]
null
null
null
incs/Borders.hpp
prdbrg/hydrodynamic-simulator
63f16099a4b60bd6240d2c7a6950009637197382
[ "MIT" ]
null
null
null
#ifndef BORDERS_CLASS_HPP # define BORDERS_CLASS_HPP # include <glm/glm.hpp> # include <Define.hpp> # include <AModule.hpp> class Borders: public AModule { public: Borders(Model & model); ~Borders(void); private: Borders(void); Borders(Borders const & model); Borders & operator=(Borders const & rhs); ...
20.96875
56
0.700447
paribro
69d8aab470b3a352c977d76a1eaee5315661a965
2,141
cpp
C++
Code/Client/ClientUI/Source/ZlibUtil.cpp
MarvinGeng/TinyIM
01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710
[ "MIT" ]
null
null
null
Code/Client/ClientUI/Source/ZlibUtil.cpp
MarvinGeng/TinyIM
01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710
[ "MIT" ]
null
null
null
Code/Client/ClientUI/Source/ZlibUtil.cpp
MarvinGeng/TinyIM
01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710
[ "MIT" ]
1
2022-01-15T03:18:26.000Z
2022-01-15T03:18:26.000Z
/* * 压缩工具类,ZlibUtil.cpp * zhangyl 2018.03.09 */ #include "stdafx.h" #include "../zlib1.2.11/zlib.h" #include <string.h> #include "ZlibUtil.h" //最大支持压缩10M #define MAX_COMPRESS_BUF_SIZE 10*1024*1024 bool ZlibUtil::CompressBuf(const char* pSrcBuf, size_t nSrcBufLength, char* pDestBuf, size_t& nDestBufLength) { ...
25.795181
122
0.657637
MarvinGeng
69d8c36761d3a233b51e22bbde23d7dd80b3438d
1,690
cc
C++
benchmarks/svf/svf.cc
wolvre/maple
c856c70e224a1354f40bbc16b43ff31b96141f75
[ "Apache-2.0" ]
5
2015-07-20T09:42:22.000Z
2021-08-30T06:24:17.000Z
benchmarks/svf/svf.cc
wolvre/maple
c856c70e224a1354f40bbc16b43ff31b96141f75
[ "Apache-2.0" ]
null
null
null
benchmarks/svf/svf.cc
wolvre/maple
c856c70e224a1354f40bbc16b43ff31b96141f75
[ "Apache-2.0" ]
2
2017-05-23T11:57:07.000Z
2017-06-30T11:30:44.000Z
#include <pthread.h> #include <iostream> #include <stdlib.h> #include <assert.h> #include "sync01.h" #include "sync02.h" #include "stateful001.h" #include "stateful002.h" int inputX = 0; int inputY = 0; int data1 = -1, data2 = -1, data3 = -1, data4 = -1; pthread_mutex_t m; void add1() { data1++; sync01();...
14.322034
51
0.457396
wolvre
69d9f8142a17782cacd9ada58f37b6100053badf
1,730
hh
C++
src/interface/MiniMap.hh
zermingore/warevolved
efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52
[ "MIT" ]
1
2019-09-23T18:16:27.000Z
2019-09-23T18:16:27.000Z
src/interface/MiniMap.hh
zermingore/warevolved
efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52
[ "MIT" ]
2
2018-11-12T18:48:03.000Z
2018-11-15T21:10:02.000Z
src/interface/MiniMap.hh
zermingore/warevolved
efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52
[ "MIT" ]
null
null
null
/** * \file * \date August 22, 2017 * \author Zermingore * \namespace interface * \brief Side panel's MiniMap class declaration */ #ifndef INTERFACE_MINIMAP_HH_ # define INTERFACE_MINIMAP_HH_ # include <memory> # include <vector> # include <utility> # include <graphics/graphic_types.hh> # include <interface/I...
20.116279
79
0.678613
zermingore
69db2db1e436f63c84fa746623f66d4ebd6aa610
3,004
cpp
C++
engine/src/app/Window.cpp
Dino97/Kinemo
4aeee2c960961f2e5d453734b9fb1a8e7c717cdf
[ "MIT" ]
2
2019-10-14T02:19:55.000Z
2019-10-15T01:24:53.000Z
engine/src/app/Window.cpp
Dino97/Kinemo
4aeee2c960961f2e5d453734b9fb1a8e7c717cdf
[ "MIT" ]
null
null
null
engine/src/app/Window.cpp
Dino97/Kinemo
4aeee2c960961f2e5d453734b9fb1a8e7c717cdf
[ "MIT" ]
null
null
null
#include "Window.h" #include "glad/glad.h" #include "GLFW/glfw3.h" #include <iostream> namespace Kinemo { void OpenGLDebugCallback(GLenum source​, GLenum type​, GLuint id​, GLenum severity​, GLsizei length​, const GLchar* message​, const void* userParam​); Window::Window(const WindowProperties& properties) { gl...
23.84127
151
0.704394
Dino97
69e19dddbc67b1ad175a8e49a731c6b4c6bf12d0
6,839
hpp
C++
posu/units/system/si/electric_current.hpp
zhu48/posu
4872bd7572485c1c352aaf5db7a99d578a682113
[ "MIT" ]
null
null
null
posu/units/system/si/electric_current.hpp
zhu48/posu
4872bd7572485c1c352aaf5db7a99d578a682113
[ "MIT" ]
33
2020-12-14T02:50:22.000Z
2022-03-08T03:20:15.000Z
posu/units/system/si/electric_current.hpp
zhu48/posu
4872bd7572485c1c352aaf5db7a99d578a682113
[ "MIT" ]
null
null
null
#ifndef POSU_UNITS_SI_ELECTRIC_CURRENT_HPP #define POSU_UNITS_SI_ELECTRIC_CURRENT_HPP #include "posu/units/base_unit.hpp" #include "posu/units/system/electric_current.hpp" namespace posu::units::si { struct electric_current : public posu::units::electric_current { using type = electric_current; ...
47.165517
97
0.639421
zhu48
69eeca25028549bfb8a4c1f3122fdd82dded221b
709
cpp
C++
src/utils/common/physdll.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
6
2022-01-23T09:40:33.000Z
2022-03-20T20:53:25.000Z
src/utils/common/physdll.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
null
null
null
src/utils/common/physdll.cpp
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
1
2022-02-06T21:05:23.000Z
2022-02-06T21:05:23.000Z
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #include <stdio.h> #include "physdll.h" #include "filesystem_tools.h" static CSysModule *pPhysicsModule = NULL; Create...
24.448276
81
0.57969
cstom4994
69f43de5ad9383ee1aba2396742ee1fc7628b0e5
2,067
cpp
C++
jogo/src/utils/classes/menu.cpp
Hyodar/jogo-tecprog
3a8cdf2cae583ad88a9377d0fbf796ba45d9d408
[ "MIT" ]
null
null
null
jogo/src/utils/classes/menu.cpp
Hyodar/jogo-tecprog
3a8cdf2cae583ad88a9377d0fbf796ba45d9d408
[ "MIT" ]
null
null
null
jogo/src/utils/classes/menu.cpp
Hyodar/jogo-tecprog
3a8cdf2cae583ad88a9377d0fbf796ba45d9d408
[ "MIT" ]
null
null
null
// Libraries // --------------------------------------------------------------------------- // Class header // --------------------- #include "menu.hpp" // Internal libraries // --------------------- #include "graphics_manager.hpp" using namespace bardadv::core; using namespace bardadv::menus; // Methods // ----...
24.607143
84
0.426222
Hyodar
69fde02f06219de5181fed4b4211e703e0b110ab
1,281
cpp
C++
algorithmic-toolbox/week5_dynamic_programming1/2_primitive_calculator/primitive_calculator.cpp
hsgrewal/algorithms
b7532cc14221490128bb6aa12b06d20656855b8d
[ "MIT" ]
null
null
null
algorithmic-toolbox/week5_dynamic_programming1/2_primitive_calculator/primitive_calculator.cpp
hsgrewal/algorithms
b7532cc14221490128bb6aa12b06d20656855b8d
[ "MIT" ]
null
null
null
algorithmic-toolbox/week5_dynamic_programming1/2_primitive_calculator/primitive_calculator.cpp
hsgrewal/algorithms
b7532cc14221490128bb6aa12b06d20656855b8d
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <limits> using std::vector; vector<int> optimal_sequence(int n) { std::vector<int> sequence; vector<int> array(n + 1); int a1, m2, m3; for (int i = 2; i <= n; ++i) { a1 = m2 = m3 = std::numeric_limits<int>::max(); if (...
26.142857
71
0.442623
hsgrewal
0e032a6fdb93400c1863fd8f936662b9b3d24266
2,893
cpp
C++
tests/util_scoped_timer.cpp
extcpp/base
26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732
[ "MIT" ]
null
null
null
tests/util_scoped_timer.cpp
extcpp/base
26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732
[ "MIT" ]
22
2019-10-15T20:47:02.000Z
2020-01-26T20:26:19.000Z
tests/util_scoped_timer.cpp
extcpp/base
26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732
[ "MIT" ]
1
2020-09-24T08:53:15.000Z
2020-09-24T08:53:15.000Z
// Copyright - 2020 - Jan Christoph Uhde <Jan@UhdeJC.com> // Please see LICENSE.md for license or visit https://github.com/extcpp/basics #include <ext/macros/compiler.hpp> #include <ext/util/scoped_timer.hpp> #include <gtest/gtest.h> #include <iostream> #include <thread> using namespace ext::util; constexpr auto ms =...
25.830357
118
0.622883
extcpp
0e0a5d6325e483fccf2b291a21ec1f3da9682996
2,042
cpp
C++
src/ParamGen.cpp
Jesusausage/ZKP_Voting
c98658ac533522a146b0be5a976cb215f130a4ec
[ "MIT" ]
1
2019-07-04T18:54:07.000Z
2019-07-04T18:54:07.000Z
src/ParamGen.cpp
Jesusausage/ZKP_Voting
c98658ac533522a146b0be5a976cb215f130a4ec
[ "MIT" ]
null
null
null
src/ParamGen.cpp
Jesusausage/ZKP_Voting
c98658ac533522a146b0be5a976cb215f130a4ec
[ "MIT" ]
1
2019-09-10T00:15:30.000Z
2019-09-10T00:15:30.000Z
#include "ParamGen.hpp" void generateParams() { auto ecg = GenerateECGroup(); auto base = GenerateECBase(); std::ofstream token_out(TOKEN_FILE); std::ofstream id_out(ID_FILE); CryptoPP::Integer token_keys[10][5]; CryptoPP::ECPPoint tokens[10][5]; CryptoPP::ECPPoint token_sums[5]; C...
29.171429
86
0.582272
Jesusausage
0e0bb2f4f3904d3a93316a4ef605060e6fc4bfc1
3,860
cpp
C++
SampleFoundation/Triangulation/Triangulation.cpp
wjezxujian/WildMagic4
249a17f8c447cf57c6283408e01009039810206a
[ "BSL-1.0" ]
3
2021-08-02T04:03:03.000Z
2022-01-04T07:31:20.000Z
SampleFoundation/Triangulation/Triangulation.cpp
wjezxujian/WildMagic4
249a17f8c447cf57c6283408e01009039810206a
[ "BSL-1.0" ]
null
null
null
SampleFoundation/Triangulation/Triangulation.cpp
wjezxujian/WildMagic4
249a17f8c447cf57c6283408e01009039810206a
[ "BSL-1.0" ]
5
2019-10-13T02:44:19.000Z
2021-08-02T04:03:10.000Z
// Geometric Tools, Inc. // http://www.geometrictools.com // Copyright (c) 1998-2006. All Rights Reserved // // The Wild Magic Version 4 Restricted Libraries source code is supplied // under the terms of the license agreement // http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf // and may not be copie...
30.634921
78
0.525907
wjezxujian
0e0c6135bb6004a72f5cf58ea0ed1409e1f9f9be
3,634
cpp
C++
src/elements/cube.cpp
jamillosantos/imu-mock
3d314e8ef37263d72fda412d6d40e522005405f8
[ "MIT" ]
1
2018-01-21T05:38:04.000Z
2018-01-21T05:38:04.000Z
src/elements/cube.cpp
mote-robotics/imu-mock
3d314e8ef37263d72fda412d6d40e522005405f8
[ "MIT" ]
null
null
null
src/elements/cube.cpp
mote-robotics/imu-mock
3d314e8ef37263d72fda412d6d40e522005405f8
[ "MIT" ]
null
null
null
/** * @author J. Santos <jamillo@gmail.com> * @date October 06, 2016 */ #include "cube.h" draw::Colour elements::Cube::lineColour(1.0f, 1.0f, 1.0f, 0.6f); elements::CubeColours::CubeColours() : _top(draw::Colour::RED), _bottom(draw::Colour::ORANGE), _left(draw::Colour::YELLOW), _right(draw::Colour::WHITE), _fro...
22.294479
85
0.61585
jamillosantos
97bb897a388326c6e4f0d84a8a136f3b232f9348
10,399
cpp
C++
light_caster/main.cpp
raylib-extras/examples-cpp
1cac8ea52805c03d4fd29e924c854400f8ba72ef
[ "Zlib" ]
10
2021-11-18T06:19:32.000Z
2022-03-08T04:44:19.000Z
light_caster/main.cpp
raylib-extras/examples-cpp
1cac8ea52805c03d4fd29e924c854400f8ba72ef
[ "Zlib" ]
1
2022-01-02T05:27:00.000Z
2022-03-24T04:42:40.000Z
light_caster/main.cpp
raylib-extras/examples-cpp
1cac8ea52805c03d4fd29e924c854400f8ba72ef
[ "Zlib" ]
null
null
null
#include "raylib.h" #include "raymath.h" #include "rlgl.h" // constants from OpenGL #define GL_SRC_ALPHA 0x0302 #define GL_MIN 0x8007 #define GL_MAX 0x8008 #include <vector> // Draw a gradient-filled circle // NOTE: Gradient goes from inner radius (color1) to border (color2) void DrawLightGradient(int centerX, int ...
24.64218
167
0.683623
raylib-extras
97bc92512489c19bd54536f23f947fe46fb8292e
591
cpp
C++
src/J/J102.cpp
wlhcode/lscct
7fd112a9d1851ddcf41886d3084381a52e84a3ce
[ "MIT" ]
null
null
null
src/J/J102.cpp
wlhcode/lscct
7fd112a9d1851ddcf41886d3084381a52e84a3ce
[ "MIT" ]
null
null
null
src/J/J102.cpp
wlhcode/lscct
7fd112a9d1851ddcf41886d3084381a52e84a3ce
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int r[200005][4]; int main(){ int x,y,n,a=0,q=0; bool small=0; cin>>y>>x>>n; for(int i=1;i<=n;i++){ cin>>r[i][0]>>r[i][1]>>r[i][2]; if(r[i][0]>=y&&q==0) q=i-1; if(r[i][0]<y) small=1; } if(q==0&&small) q=n; if(!small) q=0; while(q>0){ y=r[q][0]; bool gone=0;...
16.885714
59
0.431472
wlhcode
97c34395c7e4e97ef721670fb96a4cc1f4e2fcac
2,765
cpp
C++
src/installerapplication.cpp
CommitteeOfZero/noidget
1ba0b37f7552c1659a8a7c8dd62893c9eece702a
[ "MIT" ]
null
null
null
src/installerapplication.cpp
CommitteeOfZero/noidget
1ba0b37f7552c1659a8a7c8dd62893c9eece702a
[ "MIT" ]
null
null
null
src/installerapplication.cpp
CommitteeOfZero/noidget
1ba0b37f7552c1659a8a7c8dd62893c9eece702a
[ "MIT" ]
null
null
null
#include "installerapplication.h" #include "installerwindow.h" #include <api/apihost.h> #include "fs.h" #include <tx/transaction.h> #include "receiptwriter.h" #include "win32_registry.h" #include <QFile> #include <QTextStream> #include <QStyleFactory> #include <QResource> #include <QMessageBox> #include <QScriptEngineA...
29.414894
79
0.662929
CommitteeOfZero
97c48b8a9788a1ab9232e0d8f1621cfa722de560
99
hpp
C++
templates/include/Quote.hpp
mcqueen256/mql4dllft
2b918da25efa8056eca967e4d40d07487f030ee8
[ "MIT" ]
null
null
null
templates/include/Quote.hpp
mcqueen256/mql4dllft
2b918da25efa8056eca967e4d40d07487f030ee8
[ "MIT" ]
11
2017-07-11T22:26:44.000Z
2017-07-20T04:14:54.000Z
templates/include/Quote.hpp
mcqueen256/mql4dllft
2b918da25efa8056eca967e4d40d07487f030ee8
[ "MIT" ]
null
null
null
#ifndef QUOTE_HPP #define QUOTE_HPP class Quote { private: public: Quote(); ~Quote(); }; #endif
9
17
0.686869
mcqueen256
97c5775757ddabd48f6c0aadaef9348ed40d34f0
7,770
cpp
C++
src/protocol/websocket/client.cpp
cysme/pump
d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c
[ "Apache-2.0" ]
2
2020-07-16T04:57:40.000Z
2020-11-24T10:33:48.000Z
src/protocol/websocket/client.cpp
jimi36/pump
d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c
[ "Apache-2.0" ]
2
2020-12-23T09:40:16.000Z
2021-03-03T09:49:36.000Z
src/protocol/websocket/client.cpp
cysme/pump
d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c
[ "Apache-2.0" ]
3
2020-11-24T10:33:35.000Z
2021-04-19T01:53:24.000Z
/* * Copyright (C) 2015-2018 ZhengHaiTao <ming8ren@163.com> * * 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...
31.714286
92
0.563964
cysme
97c76b6ded2d81f894df6d6bec179d34d02bd5ed
5,538
cpp
C++
packages/monte_carlo/event/estimator/test/tstSurfaceFluxEstimatorDagMC.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
10
2019-11-14T19:58:30.000Z
2021-04-04T17:44:09.000Z
packages/monte_carlo/event/estimator/test/tstSurfaceFluxEstimatorDagMC.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
43
2020-03-03T19:59:20.000Z
2021-09-08T03:36:08.000Z
packages/monte_carlo/event/estimator/test/tstSurfaceFluxEstimatorDagMC.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
6
2020-02-12T17:37:07.000Z
2020-09-08T18:59:51.000Z
//---------------------------------------------------------------------------// //! //! \file tstSurfaceFluxEstimatorDagMC.cpp //! \author Alex Robinson //! \brief Surface flux estimator using DagMC unit tests. //! //---------------------------------------------------------------------------// // Std Lib Includes #...
41.328358
112
0.524016
bam241
97c9998964e85bfb4e70b1f99c3c4b490be2c22a
235
cpp
C++
docs/mfc/reference/codesnippet/CPP/cmfcpopupmenu-class_2.cpp
jmittert/cpp-docs
cea5a8ee2b4764b2bac4afe5d386362ffd64e55a
[ "CC-BY-4.0", "MIT" ]
14
2018-01-28T18:10:55.000Z
2021-11-16T13:21:18.000Z
docs/mfc/reference/codesnippet/CPP/cmfcpopupmenu-class_2.cpp
jmittert/cpp-docs
cea5a8ee2b4764b2bac4afe5d386362ffd64e55a
[ "CC-BY-4.0", "MIT" ]
null
null
null
docs/mfc/reference/codesnippet/CPP/cmfcpopupmenu-class_2.cpp
jmittert/cpp-docs
cea5a8ee2b4764b2bac4afe5d386362ffd64e55a
[ "CC-BY-4.0", "MIT" ]
2
2018-10-10T07:37:30.000Z
2019-06-21T15:18:07.000Z
CMFCPopupMenu* pPopupMenu = new CMFCPopupMenu; // CPoint point // CMenu* pPopup // The this pointer points to CMainFrame class which extends the CFrameWnd class. pPopupMenu->Create (this, point.x, point.y, pPopup->Detach ());
47
83
0.72766
jmittert
97ce52b8c973ca389d67b354274bf9b4de93785e
23,632
cpp
C++
src/clustering/louvain.cpp
zlthinker/STBA
c0034d67018c9b7a72459821e9e9ad46870b6292
[ "MIT" ]
175
2020-08-02T11:48:11.000Z
2022-02-28T04:54:36.000Z
src/clustering/louvain.cpp
zlthinker/STBA
c0034d67018c9b7a72459821e9e9ad46870b6292
[ "MIT" ]
1
2020-10-02T08:42:11.000Z
2020-10-02T08:42:11.000Z
src/clustering/louvain.cpp
zlthinker/STBA
c0034d67018c9b7a72459821e9e9ad46870b6292
[ "MIT" ]
25
2020-08-02T13:04:15.000Z
2022-02-28T04:54:28.000Z
#include "STBA/clustering/louvain.h" #include "STBA/utility.h" #include <queue> #include <chrono> #include <unordered_map> #include <iostream> size_t RandomPick(std::unordered_map<size_t, double> const & prob_map) { assert(!prob_map.empty()); double sum = 0.0; std::unordered_map<size_t, double>::const_ite...
33.663818
132
0.609047
zlthinker
97ce6d330d558ae100db503d62572da03fa4e46a
1,593
cpp
C++
3rdparty/libcxx/libcxx/test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp
jbdelcuv/openenclave
c2e9cfabd788597f283c8dd39edda5837b1b1339
[ "MIT" ]
15
2019-08-05T01:24:20.000Z
2022-01-12T08:19:55.000Z
3rdparty/libcxx/libcxx/test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp
jbdelcuv/openenclave
c2e9cfabd788597f283c8dd39edda5837b1b1339
[ "MIT" ]
21
2020-02-05T11:09:56.000Z
2020-03-26T18:09:09.000Z
3rdparty/libcxx/libcxx/test/std/language.support/support.limits/support.limits.general/exception.version.pass.cpp
jbdelcuv/openenclave
c2e9cfabd788597f283c8dd39edda5837b1b1339
[ "MIT" ]
9
2019-09-24T06:26:58.000Z
2021-11-22T08:54:00.000Z
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
27.947368
80
0.666667
jbdelcuv
97d2074f21a845e1b6b7ec12ba6a27e54cc3cf51
136,210
cpp
C++
capPaintPlayerWav2Sketch/AudioSampleYeahwav.cpp
Drc3p0/TouchSound
3748d161a3706918ce75934cd64543347426545e
[ "MIT" ]
1
2019-10-23T17:47:05.000Z
2019-10-23T17:47:05.000Z
capPaintPlayerWav2Sketch/AudioSampleYeahwav.cpp
Drc3p0/TouchSound
3748d161a3706918ce75934cd64543347426545e
[ "MIT" ]
null
null
null
capPaintPlayerWav2Sketch/AudioSampleYeahwav.cpp
Drc3p0/TouchSound
3748d161a3706918ce75934cd64543347426545e
[ "MIT" ]
null
null
null
// Audio data converted from WAV file by wav2sketch #include "AudioSampleYeahwav.h" // Converted from YEAHwav.wav, using 11025 Hz, u-law encoding const unsigned int AudioSampleYeahwav[12089] = { 0x0300BCDD,0x00020380,0x01010480,0x81808282,0x83868180,0x85878002,0x80018500,0x0003808A, 0x81000082,0x01018301,0x838...
89.611842
89
0.88865
Drc3p0
97d22cfa4d2c779f4392e9567e15715f18ec83b1
2,136
cpp
C++
user_models/src/coding/galois.cpp
uclanrl/dt-icansim
3d4288145abe4cafbbd75af2b0bc697c0bebe4e8
[ "bzip2-1.0.6" ]
null
null
null
user_models/src/coding/galois.cpp
uclanrl/dt-icansim
3d4288145abe4cafbbd75af2b0bc697c0bebe4e8
[ "bzip2-1.0.6" ]
null
null
null
user_models/src/coding/galois.cpp
uclanrl/dt-icansim
3d4288145abe4cafbbd75af2b0bc697c0bebe4e8
[ "bzip2-1.0.6" ]
null
null
null
/* * Copyright (c) 2006-2013, University of California, Los Angeles * Coded by Joe Yeh/Uichin Lee * Modified and extended by Seunghoon Lee/Sung Chul Choi * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition...
49.674419
188
0.740637
uclanrl
97d25f3120d7c58bf0ce3edfff4aea1bb1ae8ec7
501
cpp
C++
common/tests/StringToIntMapTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
3
2021-07-01T14:31:06.000Z
2022-03-29T20:41:21.000Z
common/tests/StringToIntMapTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
null
null
null
common/tests/StringToIntMapTest.cpp
alexandru-andronache/adventofcode
ee41d82bae8b705818fda5bd43e9962bb0686fec
[ "Apache-2.0" ]
null
null
null
#include "StringToIntMapTest.h" #include <StringToIntMap.h> using namespace stringtointmap; TEST_F(StringToIntMapTest, add_string_test_get_index) { StringToIntMap t; t.addString("aaa"); t.addString("bbb"); ASSERT_EQ(t.getIndex("aaa"), 0); ASSERT_EQ(t.getIndex("ccc"), -1); } TEST_F(StringToIntMap...
20.875
54
0.686627
alexandru-andronache
97d327047291fe0f38d38e90a1c8411abf3f7bd4
105,063
cc
C++
frontend/src/frontend.cc
robert-mijakovic/readex-ptf
5514b0545721ef27de0426a7fa0116d2e0bb5eef
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
frontend/src/frontend.cc
robert-mijakovic/readex-ptf
5514b0545721ef27de0426a7fa0116d2e0bb5eef
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
frontend/src/frontend.cc
robert-mijakovic/readex-ptf
5514b0545721ef27de0426a7fa0116d2e0bb5eef
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
/** @file frontend.cc @ingroup Frontend @brief Front-end agent @author Karl Fuerlinger @verbatim Revision: $Revision$ Revision date: $Date$ Committed by: $Author$ This file is part of the Periscope Tuning Framework. See http://www.lrr.in.tum.de/periscope for details. ...
39.63146
150
0.513987
robert-mijakovic
97d8d86a5d670d77b6f886800afe52610252c49c
3,455
cpp
C++
tc 160+/StonesGame.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/StonesGame.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/StonesGame.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; void bounds(int N, int M, int K, int &l, int &r) { int rpoint = max(K, M); int inpoint = M - rpoint + K; l = M - 2*(inp...
39.712644
317
0.495224
ibudiselic
97da2f72108d65d88e60fdf55eb84c7142c85449
17,713
cpp
C++
imdexp/src/viewer/viewer.cpp
olivierchatry/iri3d
cae98c61d9257546d0fc81e69709297d04a17a14
[ "MIT" ]
2
2022-01-02T08:12:29.000Z
2022-02-12T22:15:11.000Z
imdexp/src/viewer/viewer.cpp
olivierchatry/iri3d
cae98c61d9257546d0fc81e69709297d04a17a14
[ "MIT" ]
null
null
null
imdexp/src/viewer/viewer.cpp
olivierchatry/iri3d
cae98c61d9257546d0fc81e69709297d04a17a14
[ "MIT" ]
1
2022-01-02T08:09:51.000Z
2022-01-02T08:09:51.000Z
#include <stdafx.h> const int grid_size = 80; // draw a 10x10 grid. const int grid_primitive_count = grid_size * grid_size * 4; // eache sqaure take 4 lines. const float grid_increment = 20.0f; Viewer::Viewer() : _loger(0), _d3d_device(0), _d3d_object(0), _d3d_bac...
32.923792
133
0.616666
olivierchatry
97ded0faefa2f15836eacf1033fdbb91b50abc48
1,356
cpp
C++
algorithms/RANGETREELAZY.cpp
chinoxyz/guiafuentes
753d026d91ddcbabcccee7947a2ee6c581eb94eb
[ "MIT" ]
null
null
null
algorithms/RANGETREELAZY.cpp
chinoxyz/guiafuentes
753d026d91ddcbabcccee7947a2ee6c581eb94eb
[ "MIT" ]
null
null
null
algorithms/RANGETREELAZY.cpp
chinoxyz/guiafuentes
753d026d91ddcbabcccee7947a2ee6c581eb94eb
[ "MIT" ]
null
null
null
#define MAXN 100000 #define T int #define neutro 0 // entrada, arbol, acumulado(propagacion) elemento 0 se desperdicia T input[MAXN]; T tree[MAXN*17]; T acum[MAXN*17]; T f(T a, T b) { return a + b; } // Funcion que mantiene el segment tree // init(1,1,n) void init(int node, int b, int e) { acum[node] = 0; if(b == e...
27.673469
71
0.514749
chinoxyz
97dfc4c86bb06a5524073a57fa567a120bd0c5e7
602
cc
C++
examples/channels.cc
kjdv/kthread
d606c2455e9db52c731f58b8b30ad37a55e956d6
[ "MIT" ]
1
2021-05-09T16:12:56.000Z
2021-05-09T16:12:56.000Z
examples/channels.cc
kjdv/kthread
d606c2455e9db52c731f58b8b30ad37a55e956d6
[ "MIT" ]
null
null
null
examples/channels.cc
kjdv/kthread
d606c2455e9db52c731f58b8b30ad37a55e956d6
[ "MIT" ]
1
2021-05-09T16:12:57.000Z
2021-05-09T16:12:57.000Z
#include <channel.hh> #include <threadpool.hh> #include <iostream> namespace { using namespace std; using namespace kthread; void consume(receiver<int> tx) { while(tx.receive() .map([](auto&& item) { cout << "consuming " << item << '\n'; return 0; }) ...
15.05
51
0.523256
kjdv
97e2a9ee82142776598131c22d6f79ad122e0f03
1,063
cpp
C++
solved/o-q/phone-list/uva/phone.cpp
abuasifkhan/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
13
2015-09-30T19:18:04.000Z
2021-06-26T21:11:30.000Z
solved/o-q/phone-list/uva/phone.cpp
sbmaruf/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
null
null
null
solved/o-q/phone-list/uva/phone.cpp
sbmaruf/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
13
2015-01-04T09:49:54.000Z
2021-06-03T13:18:44.000Z
#include <cstdio> #include <cstring> #define ALPHABET 10 #define WORDS 10000 #define WORDLEN 10 #define Zero(v) memset(v, 0, sizeof(v)) #define NonZero(v) (memcmp(v, _zero, sizeof(_zero)) != 0) static const int _zero[ALPHABET] = {0}; struct Trie { struct Node { int children[ALPHABET]; bool end; }; int n...
15.185714
58
0.573848
abuasifkhan
97e3bb6c7ff45308e577587f3a2c2f82ec39c4c1
1,472
cpp
C++
Code/ecrireMemoire/ecirreMemoire.cpp
joabda/Robot
ce27e2e615cb87480c05f9e0ce32124648f9baff
[ "MIT" ]
1
2020-01-26T15:36:07.000Z
2020-01-26T15:36:07.000Z
Code/ecrireMemoire/ecirreMemoire.cpp
joabda/Robot
ce27e2e615cb87480c05f9e0ce32124648f9baff
[ "MIT" ]
null
null
null
Code/ecrireMemoire/ecirreMemoire.cpp
joabda/Robot
ce27e2e615cb87480c05f9e0ce32124648f9baff
[ "MIT" ]
null
null
null
/* * Code permettant d'ecrire sur la mémoire externe * du microcontroleur ATMega16 de Atmel. * * Ecole Polytechnique de Montreal * Departement de genie informatique * Cours inf1900 * * Joe Abdo, Mathurin Critin, Teo Quiquempoix et Philippe Babin, * 2019 * * Code qui n'est sous aucune license. * */ #includ...
29.44
140
0.661005
joabda
97e7691f6689308ea11c838e4f93a9ed034a0db2
2,168
cpp
C++
parrot/src/parrot/renderer/Shader.cpp
MiloHX/Parrot
159f583b2e43396dcc42dc3456a9c5d3fb043133
[ "Apache-2.0" ]
null
null
null
parrot/src/parrot/renderer/Shader.cpp
MiloHX/Parrot
159f583b2e43396dcc42dc3456a9c5d3fb043133
[ "Apache-2.0" ]
null
null
null
parrot/src/parrot/renderer/Shader.cpp
MiloHX/Parrot
159f583b2e43396dcc42dc3456a9c5d3fb043133
[ "Apache-2.0" ]
null
null
null
#include "prpch.h" #include "parrot/renderer/Shader.h" #include "parrot/renderer/Renderer.h" #include "platform/OpenGL/OpenGLShader.h" namespace parrot { Ref<Shader> Shader::create(const std::string& file_path) { switch (Renderer::getAPI()) { case RendererAPI::API::None: PR_CORE...
34.967742
127
0.625
MiloHX
97ea9746475e69d636022c161a72c557f296e6d9
2,318
cpp
C++
unittest/splitter/splitter.cpp
relick/tls
a9ef85384e0b6394d94daf7798891f8ee4aa31ac
[ "MIT" ]
null
null
null
unittest/splitter/splitter.cpp
relick/tls
a9ef85384e0b6394d94daf7798891f8ee4aa31ac
[ "MIT" ]
null
null
null
unittest/splitter/splitter.cpp
relick/tls
a9ef85384e0b6394d94daf7798891f8ee4aa31ac
[ "MIT" ]
null
null
null
#include <execution> #include <tls/splitter.h> #include "../catch.hpp" TEST_CASE("tls::splitter<> specification") { SECTION("new instances are default initialized") { struct test { int x = 4; }; REQUIRE(tls::splitter<int>().local() == int{}); REQUIRE(tls::splitter<double...
31.324324
111
0.52761
relick
97ebafe714b489aff42b63d3d3702660ca97c4c9
3,165
cxx
C++
bpkg/types-parsers.cxx
build2/bpkg
bd939839b44d90d027517e447537dd52539269ff
[ "MIT" ]
19
2018-05-30T12:01:25.000Z
2022-01-29T21:37:23.000Z
bpkg/types-parsers.cxx
build2/bpkg
bd939839b44d90d027517e447537dd52539269ff
[ "MIT" ]
2
2019-03-18T22:31:45.000Z
2020-07-28T06:44:03.000Z
bpkg/types-parsers.cxx
build2/bpkg
bd939839b44d90d027517e447537dd52539269ff
[ "MIT" ]
1
2019-02-04T02:58:14.000Z
2019-02-04T02:58:14.000Z
// file : bpkg/types-parsers.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #include <bpkg/types-parsers.hxx> namespace bpkg { namespace cli { void parser<url>:: parse (url& x, bool& xs, scanner& s) { const char* o (s.next ()); if (!s.more ()) throw missing...
19.066265
75
0.473934
build2
97ecdd04a7d87b1c52a06075aa9abd8c6990c1b2
770
cc
C++
base/containers/flag_set_test.cc
mayah/base
aec046929938d2aaebaadce5c5abb58b5cf342b4
[ "MIT" ]
null
null
null
base/containers/flag_set_test.cc
mayah/base
aec046929938d2aaebaadce5c5abb58b5cf342b4
[ "MIT" ]
null
null
null
base/containers/flag_set_test.cc
mayah/base
aec046929938d2aaebaadce5c5abb58b5cf342b4
[ "MIT" ]
null
null
null
#include "base/containers/flag_set.h" #include <gtest/gtest.h> TEST(FlagSetTest, basic) { base::FlagSet s; EXPECT_TRUE(s.empty()); EXPECT_EQ(0, s.size()); s.set(0); s.set(1); s.set(5); s.set(8); s.set(16); s.set(31); s.set(31); s.set(63); EXPECT_EQ(7, s.size()); ...
16.73913
37
0.568831
mayah
97fcf84aeade82751ece864173c2ab4e874befb6
1,415
hpp
C++
include/synthizer/downsampler.hpp
wiresong/synthizer
d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420
[ "Unlicense" ]
25
2020-09-05T18:21:21.000Z
2021-12-05T02:47:42.000Z
include/synthizer/downsampler.hpp
wiresong/synthizer
d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420
[ "Unlicense" ]
77
2020-07-08T23:33:46.000Z
2022-03-19T05:34:26.000Z
include/synthizer/downsampler.hpp
wiresong/synthizer
d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420
[ "Unlicense" ]
9
2020-07-08T18:16:53.000Z
2022-03-02T21:35:28.000Z
#pragma once #include <algorithm> #include <cstddef> #include <type_traits> #include "synthizer/filter_design.hpp" #include "synthizer/iir_filter.hpp" #include "synthizer/types.hpp" namespace synthizer { /* * A downsampler. Requires that the size be a power of 2 for the time being. * * We use this for efficient ...
30.106383
114
0.7053
wiresong
3f05727f9a934649f20584837066023f36e7ee0f
1,075
hpp
C++
src/Core/CCubeMap.hpp
Sebajuste/Omeglond3D
28a3910b47490ec837a29e40e132369f957aedc7
[ "MIT" ]
1
2019-06-14T08:24:17.000Z
2019-06-14T08:24:17.000Z
src/Core/CCubeMap.hpp
Sebajuste/Omeglond3D
28a3910b47490ec837a29e40e132369f957aedc7
[ "MIT" ]
null
null
null
src/Core/CCubeMap.hpp
Sebajuste/Omeglond3D
28a3910b47490ec837a29e40e132369f957aedc7
[ "MIT" ]
null
null
null
#ifndef _DEF_OMEGLOND3D_CCUBEMAP_HPP #define _DEF_OMEGLOND3D_CCUBEMAP_HPP #include "ICubeMap.hpp" namespace OMGL3D { namespace CORE { class CCubeMap : public ICubeMap { public: CCubeMap(const std::string &name); virtual ~CCubeMap(); ...
25
122
0.623256
Sebajuste
3f1ab60a81464b8c1978ae75ddbec6c47fb91e20
557
cpp
C++
exam2/passFunction.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
1
2019-01-06T22:36:01.000Z
2019-01-06T22:36:01.000Z
exam2/passFunction.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
exam2/passFunction.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
#include <iostream> int compare(int a, int b) { if(a > b) return -1; else return 1; } void bubbleSort(int *arr, int size, int (*compare)(int, int)) { for(int i = 0; i < size; i++) { for(int j = 0; j < size - 1; j++) { if(compare(arr[j], arr[j+1]) > 0) { int temp = arr[j]; arr[j] = arr[...
19.892857
63
0.490126
WeiChienHsu
278b96e92f4373c89dc965d0fbee66db9fe66e19
1,067
hpp
C++
src/demo/fly_sorter/identity_tracker.hpp
hhhHanqing/bias
ac409978ac0bfc6bc4cf8570bf7ce7509e81a219
[ "Apache-2.0" ]
5
2020-07-23T18:59:08.000Z
2021-12-14T02:56:12.000Z
src/demo/fly_sorter/identity_tracker.hpp
hhhHanqing/bias
ac409978ac0bfc6bc4cf8570bf7ce7509e81a219
[ "Apache-2.0" ]
4
2020-08-30T13:55:22.000Z
2022-03-24T21:14:15.000Z
src/demo/fly_sorter/identity_tracker.hpp
hhhHanqing/bias
ac409978ac0bfc6bc4cf8570bf7ce7509e81a219
[ "Apache-2.0" ]
3
2020-10-04T17:53:15.000Z
2022-02-24T05:55:53.000Z
#ifndef IDENTITY_TRACKKER_HPP #define IDENTITY_TRACKKER_HPP #include "parameters.hpp" #include "blob_finder.hpp" #include <vector> #include <memory> #include <map> class IdentityTracker { public: IdentityTracker(); IdentityTracker(IdentityTrackerParam param); void setParam(Id...
27.358974
87
0.686036
hhhHanqing
278ed8f8742fd69407d3c303a6a78863e35ff914
8,207
cpp
C++
NLoader/loadermain.cpp
NellaR1/NEPS
f8ea7181449a858bf660f58ef7c40c11d04b8bf1
[ "BSD-2-Clause" ]
null
null
null
NLoader/loadermain.cpp
NellaR1/NEPS
f8ea7181449a858bf660f58ef7c40c11d04b8bf1
[ "BSD-2-Clause" ]
null
null
null
NLoader/loadermain.cpp
NellaR1/NEPS
f8ea7181449a858bf660f58ef7c40c11d04b8bf1
[ "BSD-2-Clause" ]
null
null
null
#include <iostream> #include <Windows.h> #include <TlHelp32.h> #ifdef REQ_NET #include "curl/curl.h" #endif // REQ_NET #include "resource.h" #include "version.hpp" using namespace std; typedef HMODULE(__stdcall *PLOADLIBRARY)(LPCSTR); typedef FARPROC(__stdcall *PGETPROCADDRESS)(HMODULE, LPCSTR); ...
30.623134
149
0.7256
NellaR1
2793ae74e55517111e854a55bf1617dc3554c5a7
1,383
cpp
C++
lib/socket_server.cpp
itsPG/asiod
29b56947ed1021f6d45a1275ef7b23fde7b94511
[ "MIT" ]
2
2019-01-29T08:17:19.000Z
2019-01-29T08:52:20.000Z
lib/socket_server.cpp
itsPG/asiod
29b56947ed1021f6d45a1275ef7b23fde7b94511
[ "MIT" ]
null
null
null
lib/socket_server.cpp
itsPG/asiod
29b56947ed1021f6d45a1275ef7b23fde7b94511
[ "MIT" ]
null
null
null
// by PG, MIT license. // this repo is for practicing boost::asio, not well tested, use it at your own risk. #include "socket_server.h" #include <cstdio> #include "packet.h" #include "session.h" namespace PG { socket_server::socket_server(asio::io_context::strand& strand, string path) : strand_{strand} , p...
25.611111
103
0.591468
itsPG
27968bd02dbc519b7804b0cfac104f9ae9e73ca1
438
hpp
C++
graphics-library/include/scene/scene_shape.hpp
thetorine/opengl3-library
3904d857fd1085ba2c57c4289eb0e0d123f11a14
[ "MIT" ]
null
null
null
graphics-library/include/scene/scene_shape.hpp
thetorine/opengl3-library
3904d857fd1085ba2c57c4289eb0e0d123f11a14
[ "MIT" ]
null
null
null
graphics-library/include/scene/scene_shape.hpp
thetorine/opengl3-library
3904d857fd1085ba2c57c4289eb0e0d123f11a14
[ "MIT" ]
null
null
null
#pragma once #include "geometry/shape.hpp" #include "scene/scene_object.hpp" namespace gl::scene { class SceneShape : public SceneObject { public: static std::shared_ptr<SceneShape> create(const std::shared_ptr<geometry::Shape> &shape); void drawSelf() const; private: st...
29.2
98
0.657534
thetorine
2799cac237d65f737878d98c615edc69f4bcb292
3,997
cpp
C++
benchmarks/allocator_benchmarks.cpp
nanzifan/Umpire-edit
990895b527bef0716aaa0fbb0c0f2017e8e15882
[ "MIT" ]
null
null
null
benchmarks/allocator_benchmarks.cpp
nanzifan/Umpire-edit
990895b527bef0716aaa0fbb0c0f2017e8e15882
[ "MIT" ]
null
null
null
benchmarks/allocator_benchmarks.cpp
nanzifan/Umpire-edit
990895b527bef0716aaa0fbb0c0f2017e8e15882
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2018, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory // // Created by David Beckingsale, david@llnl.gov // LLNL-CODE-747640 // // All rights reserved. // // This file is ...
29.607407
87
0.641981
nanzifan
279b22e9f90e6a8cb81f16bf7bfb8a29ee781a25
763
cpp
C++
src/random-set/main.cpp
schien/practices
b248813e51314095c21cf9dc6193d0e1e48550d3
[ "MIT" ]
null
null
null
src/random-set/main.cpp
schien/practices
b248813e51314095c21cf9dc6193d0e1e48550d3
[ "MIT" ]
null
null
null
src/random-set/main.cpp
schien/practices
b248813e51314095c21cf9dc6193d0e1e48550d3
[ "MIT" ]
null
null
null
#include <iostream> #include "input_helper.h" #include "solution.cpp" int main() { RandomizedSet rset; while (std::cin.good()) { char op; std::cin >> op; if (std::cin.eof()) { break; } switch (op) { case 'i': { std::cout << std::boolalpha << rset.insert(next<int>...
18.609756
74
0.415465
schien
279c9c7e74e622d478ea12804163ac171fa04981
207
hpp
C++
parser/spirit/BoostPrecompile.hpp
Vitaliy-Grigoriev/PDL
da528e34e91add4e11415e31e01535db04e7043f
[ "MIT" ]
1
2019-09-23T08:27:31.000Z
2019-09-23T08:27:31.000Z
parser/spirit/BoostPrecompile.hpp
Vitaliy-Grigoriev/PDL
da528e34e91add4e11415e31e01535db04e7043f
[ "MIT" ]
null
null
null
parser/spirit/BoostPrecompile.hpp
Vitaliy-Grigoriev/PDL
da528e34e91add4e11415e31e01535db04e7043f
[ "MIT" ]
null
null
null
//#define BOOST_SPIRIT_X3_DEBUG #define BOOST_SPIRIT_NO_STANDARD_WIDE // Disable wide characters for compilation speed. #include <boost/spirit/home/x3.hpp> #include <boost/fusion/include/adapt_struct.hpp>
34.5
88
0.816425
Vitaliy-Grigoriev
279fca8026a43de5182a515cb704965a388aa3a8
6,403
cpp
C++
src/lllarith.cpp
gligneul/Lua-LLVM
1579b46e28d9ca16b70b9e9f3c11b389734eca00
[ "MIT" ]
12
2016-02-26T02:50:59.000Z
2021-05-27T00:56:16.000Z
src/lllarith.cpp
gligneul/Lua-LLVM
1579b46e28d9ca16b70b9e9f3c11b389734eca00
[ "MIT" ]
null
null
null
src/lllarith.cpp
gligneul/Lua-LLVM
1579b46e28d9ca16b70b9e9f3c11b389734eca00
[ "MIT" ]
1
2021-03-25T18:56:50.000Z
2021-03-25T18:56:50.000Z
/* ** LLL - Lua Low Level ** September, 2015 ** Author: Gabriel de Quadros Ligneul ** Copyright Notice for LLL: see lllcore.h ** ** lllarith.cpp ** Compiles the arithmetics opcodes */ #include "lllarith.h" #include "lllcompilerstate.h" #include "lllvalue.h" extern "C" { #include "lprefix.h" #include "lobject.h" #incl...
30.636364
82
0.640325
gligneul
27a1ee71243b7276ca7d333f8a7d3dde4bc3800b
785
cpp
C++
Codeforces/1108A-Two_distinct_points.cpp
Pankajcoder1/Competitive_programming
72ee0d41f3f72f43a5c2a232255eb84a04b14df9
[ "MIT" ]
null
null
null
Codeforces/1108A-Two_distinct_points.cpp
Pankajcoder1/Competitive_programming
72ee0d41f3f72f43a5c2a232255eb84a04b14df9
[ "MIT" ]
null
null
null
Codeforces/1108A-Two_distinct_points.cpp
Pankajcoder1/Competitive_programming
72ee0d41f3f72f43a5c2a232255eb84a04b14df9
[ "MIT" ]
1
2020-10-02T04:51:22.000Z
2020-10-02T04:51:22.000Z
/* written by Pankaj Kumar. country:-INDIA Institute: National Institute of Technology, Uttarakhand */ #include<iostream> #include<vector> #include<cmath> #include<algorithm> #include<string.h> #define pan cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(0); #define mod 1000000007; using namespace std; type...
19.625
64
0.628025
Pankajcoder1
27a6b11730fa13345cf43b0a3ed5ce356008fcee
1,848
hpp
C++
ParticleSystem/src/ParticleUpdater.hpp
Azatsu/ParticleSystem
8d8a5f41200c1865089b3b2dff8c41cc63dc3b13
[ "MIT" ]
1
2021-05-05T06:42:19.000Z
2021-05-05T06:42:19.000Z
ParticleSystem/src/ParticleUpdater.hpp
Azatsu/ParticleSystem
8d8a5f41200c1865089b3b2dff8c41cc63dc3b13
[ "MIT" ]
5
2021-05-04T10:05:11.000Z
2021-05-05T08:28:02.000Z
ParticleSystem/src/ParticleUpdater.hpp
Azatsu/ParticleSystem
8d8a5f41200c1865089b3b2dff8c41cc63dc3b13
[ "MIT" ]
null
null
null
#ifndef __PRTCL_UPDT_HPP__ #define __PRTCL_UPDT_HPP__ #include <vector> #include <algorithm> #include "particleGenerator.hpp" class ParticleUpdater { public: ParticleUpdater() { } virtual ~ParticleUpdater() { } virtual void Update(float dt, ParticleData* p) = 0; }; class EulerUpdater : public ParticleUpdater { ...
21.488372
79
0.731061
Azatsu
27a79a997fe218c175ba9a076c86934794aa53d3
96
hh
C++
vm/vm/main/cached/Unit-implem-decl.hh
Ahzed11/mozart2
4806504b103e11be723e7813be8f69e4d85875cf
[ "BSD-2-Clause" ]
379
2015-01-02T20:27:33.000Z
2022-03-26T23:18:17.000Z
vm/vm/main/cached/Unit-implem-decl.hh
Ahzed11/mozart2
4806504b103e11be723e7813be8f69e4d85875cf
[ "BSD-2-Clause" ]
81
2015-01-08T13:18:52.000Z
2021-12-21T14:02:21.000Z
vm/vm/main/cached/Unit-implem-decl.hh
Ahzed11/mozart2
4806504b103e11be723e7813be8f69e4d85875cf
[ "BSD-2-Clause" ]
75
2015-01-06T09:08:20.000Z
2021-12-17T09:40:18.000Z
class Unit; template <> class Storage<Unit> { public: typedef struct mozart::unit_t Type; };
12
37
0.708333
Ahzed11
27a836943d08f7a9b12542c16ca7586f2d6c4e34
1,689
cpp
C++
BRAC University Competitive Programming training/Prefix sum/chechinkg range for a particular summation.cpp
Mit382/Mitul-s-Competitive-Programming-March-August
3b0d9b3d018444584020e37b892021f7e9ec984d
[ "MIT" ]
1
2021-04-23T16:53:35.000Z
2021-04-23T16:53:35.000Z
BRAC University Competitive Programming training/Prefix sum/chechinkg range for a particular summation.cpp
Mit382/Mitul-s-Competitive-Programming-March-August
3b0d9b3d018444584020e37b892021f7e9ec984d
[ "MIT" ]
null
null
null
BRAC University Competitive Programming training/Prefix sum/chechinkg range for a particular summation.cpp
Mit382/Mitul-s-Competitive-Programming-March-August
3b0d9b3d018444584020e37b892021f7e9ec984d
[ "MIT" ]
1
2021-03-27T19:56:19.000Z
2021-03-27T19:56:19.000Z
//Question in array 1 , -1, 0,2 there is how many ranges, that can make the summation 2? //Input: //4 2 //1 -1 0 2 //Output: //3 //solve: //index: 0 1 2 3 4 //array 1 -1 0 2 //prefix: 0 1 0 0 2 // check that there is 2 , (0,2 ), (1,-1,0,2) can make summation 2. thus...
31.867925
222
0.606868
Mit382
27ad1a1f8e279742a161e298429f27e55e93c7b6
1,481
cc
C++
src/Parser/AST/MatchStatementNode.cc
stenbror/PythonCoreNative
9b5b1e55acf7d6adc7d8202e951872b2b9f71167
[ "BSL-1.0" ]
null
null
null
src/Parser/AST/MatchStatementNode.cc
stenbror/PythonCoreNative
9b5b1e55acf7d6adc7d8202e951872b2b9f71167
[ "BSL-1.0" ]
null
null
null
src/Parser/AST/MatchStatementNode.cc
stenbror/PythonCoreNative
9b5b1e55acf7d6adc7d8202e951872b2b9f71167
[ "BSL-1.0" ]
1
2021-05-24T11:18:32.000Z
2021-05-24T11:18:32.000Z
#include <ast/MatchStatementNode.h> using namespace PythonCoreNative::RunTime::Parser::AST; using namespace PythonCoreNative::RunTime::Parser; MatchStatementNode::MatchStatementNode( unsigned int start, unsigned int end, std::shared_ptr<Token> op1, ...
24.278689
95
0.602296
stenbror
27ad2135e457a7db745ea1d84b8fd2e9f8eb59b5
1,239
cpp
C++
arm9/source/menuDemo.cpp
henke37/hblankmegademo
638d6200c930e305acb6aea341211cff99dc5893
[ "BSD-2-Clause" ]
2
2019-09-01T14:31:51.000Z
2019-09-10T11:00:20.000Z
arm9/source/menuDemo.cpp
henke37/hblankmegademo
638d6200c930e305acb6aea341211cff99dc5893
[ "BSD-2-Clause" ]
8
2017-09-24T20:21:15.000Z
2022-03-04T15:29:05.000Z
arm9/source/menuDemo.cpp
henke37/hblankmegademo
638d6200c930e305acb6aea341211cff99dc5893
[ "BSD-2-Clause" ]
2
2019-02-04T02:59:42.000Z
2019-02-05T06:16:07.000Z
#include "menuDemo.h" #include "sinScrollDemo.h" #include "peepHoleWindowDemo.h" #include "spotlightDemo.h" #include "demoRunner.h" #include "scanInDemo.h" #include "rasterbarDemo.h" #include "flutterDemo.h" #include <nds/arm9/console.h> #include <cassert> #include <nds/arm9/input.h> MenuDemo::MenuDemo() : selection(...
21
56
0.696529
henke37
27b7166908d70e2f3a7588a7d6f426a25888dffc
1,287
cpp
C++
VeronixApp.cpp
LNAV/Sudoku_Solver_Cpp
431a5d0e370d3d5f7da33674601f3a57efd7032a
[ "Apache-2.0" ]
1
2020-05-17T11:46:46.000Z
2020-05-17T11:46:46.000Z
VeronixApp.cpp
LNAV/VeronixApp-Sudoku_Solver
431a5d0e370d3d5f7da33674601f3a57efd7032a
[ "Apache-2.0" ]
null
null
null
VeronixApp.cpp
LNAV/VeronixApp-Sudoku_Solver
431a5d0e370d3d5f7da33674601f3a57efd7032a
[ "Apache-2.0" ]
null
null
null
/* * VeronixApp.cpp * * Created on: May 18, 2019 * Author: LavishK1 */ #include <SudokuConsoleViewController.h> #include "VeronixApp.h" #include "AppDefines.h" #include "APP/GridSolver.h" #include "APP/Helper/InputHelper.h" namespace Veronix { namespace App { VeronixApp::VeronixApp() { DEF_COUT( "Veronix...
18.652174
107
0.694639
LNAV
27bf7731c49ad3e4ee83bc3d6c5443f9e1de0774
1,980
hpp
C++
include/Animation.hpp
prfcto2/noName
e179d49282755039f2acb267931ef445aff5000b
[ "MIT" ]
3
2019-08-05T13:33:01.000Z
2022-02-14T12:55:18.000Z
include/Animation.hpp
prfcto2/noName
e179d49282755039f2acb267931ef445aff5000b
[ "MIT" ]
null
null
null
include/Animation.hpp
prfcto2/noName
e179d49282755039f2acb267931ef445aff5000b
[ "MIT" ]
null
null
null
# define ANIMATION_HPP # ifndef HELPERS_HPP # include <Helpers.hpp> # endif # include <vector> //Animation has the animation's frames, it's duration and it's loop conditional. // if the animation is looping, it means that the animation is going to repite itself // in the pass of time but, if it is not looping, it is...
33
93
0.697475
prfcto2
27c63cfb63003f012076586134080800fb72ffc3
46
cpp
C++
libs/vis_utils/summedareatable.cpp
danniesim/cpp_volume_rendering
242c8917aea0a58c9851c2ae3e6c1555db51912e
[ "MIT" ]
10
2020-05-15T23:50:19.000Z
2022-02-17T09:54:44.000Z
libs/vis_utils/summedareatable.cpp
danniesim/cpp_volume_rendering
242c8917aea0a58c9851c2ae3e6c1555db51912e
[ "MIT" ]
1
2022-01-25T02:36:59.000Z
2022-01-26T11:41:38.000Z
libs/vis_utils/summedareatable.cpp
danniesim/cpp_volume_rendering
242c8917aea0a58c9851c2ae3e6c1555db51912e
[ "MIT" ]
3
2021-11-01T10:32:46.000Z
2021-12-28T16:40:10.000Z
#include "summedareatable.h" namespace vis {}
11.5
28
0.76087
danniesim
27cc89b508504ad3d2e1b8f11c79735721451191
1,441
cpp
C++
src/image/todo/bezier.cpp
TurkMvc/lol
c3fb98c6f371e4648891b59b4adc6cb95ae73451
[ "WTFPL" ]
4
2015-02-14T21:14:25.000Z
2021-12-12T15:45:44.000Z
src/image/todo/bezier.cpp
TurkMvc/lol
c3fb98c6f371e4648891b59b4adc6cb95ae73451
[ "WTFPL" ]
3
2015-02-14T20:56:26.000Z
2015-02-16T08:50:54.000Z
src/image/todo/bezier.cpp
TurkMvc/lol
c3fb98c6f371e4648891b59b4adc6cb95ae73451
[ "WTFPL" ]
1
2021-10-06T16:01:03.000Z
2021-10-06T16:01:03.000Z
/* * Lol Engine * * Copyright © 2004—2008 Sam Hocevar <sam@hocevar.net> * © 2008 Jean-Yves Lamoureux <jylam@lnxscene.org> * * This library is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of t...
25.280702
72
0.517696
TurkMvc
27d0429e58d7d8f5e96edd66b15c88fb56dc89ac
21,788
cc
C++
wrappers/7.0.0/vtkPointSetToLabelHierarchyWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
6
2016-02-03T12:48:36.000Z
2020-09-16T15:07:51.000Z
wrappers/7.0.0/vtkPointSetToLabelHierarchyWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
4
2016-02-13T01:30:43.000Z
2020-03-30T16:59:32.000Z
wrappers/7.0.0/vtkPointSetToLabelHierarchyWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
null
null
null
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkLabelHierarchyAlgorithmWrap.h" #include "vtkPointSetToLabelHierarchyWrap.h" #include "vtkObjectWrap.h" #include "vtkTextPropertyWrap.h" #inc...
35.085346
118
0.760694
axkibe
27d526834319a6235abb936f009d3d0696ae33c9
34
cpp
C++
src/MinoGame/ApplicationBuilder.cpp
Nicowcow/Minotaur
74689a1a76b0577138009acc5f8cd37db7bd7630
[ "MIT" ]
5
2017-07-09T08:24:24.000Z
2021-01-11T21:32:39.000Z
src/MinoGame/ApplicationBuilder.cpp
Nicowcow/Minotaur
74689a1a76b0577138009acc5f8cd37db7bd7630
[ "MIT" ]
1
2018-03-06T18:55:13.000Z
2018-12-21T14:20:23.000Z
src/MinoGame/ApplicationBuilder.cpp
Nicowcow/Minotaur
74689a1a76b0577138009acc5f8cd37db7bd7630
[ "MIT" ]
1
2019-01-24T09:32:04.000Z
2019-01-24T09:32:04.000Z
namespace MinoGame { }
2.428571
20
0.5
Nicowcow
27d975962cf6301c44ffaf27390159f286a0a5b9
2,891
hpp
C++
libs/Aether/include/Aether/primary/Text.hpp
tkgstrator/SeedHack
227566d993bdea7a2851a8fc664b539186509697
[ "MIT" ]
1
2021-02-04T07:27:46.000Z
2021-02-04T07:27:46.000Z
libs/Aether/include/Aether/primary/Text.hpp
tkgstrator/SeedHack
227566d993bdea7a2851a8fc664b539186509697
[ "MIT" ]
null
null
null
libs/Aether/include/Aether/primary/Text.hpp
tkgstrator/SeedHack
227566d993bdea7a2851a8fc664b539186509697
[ "MIT" ]
null
null
null
#ifndef AETHER_TEXT_HPP #define AETHER_TEXT_HPP #include "Aether/base/BaseText.hpp" namespace Aether { /** * @brief Text extends BaseText by implementing scrolling when the text overflows. * * It's for single-line text. */ class Text : public BaseText { private: /** @br...
29.20202
133
0.471117
tkgstrator
27e252a5da99b05ecfa26445abd8b1f44f37d85a
722
cpp
C++
code/415.addStrings.cpp
T1mzhou/LeetCode
574540d30f5696e55799831dc3c8d8b7246b74f1
[ "MIT" ]
1
2020-10-04T13:39:34.000Z
2020-10-04T13:39:34.000Z
code/415.addStrings.cpp
T1mzhou/LeetCode
574540d30f5696e55799831dc3c8d8b7246b74f1
[ "MIT" ]
null
null
null
code/415.addStrings.cpp
T1mzhou/LeetCode
574540d30f5696e55799831dc3c8d8b7246b74f1
[ "MIT" ]
null
null
null
class Solution { public: vector<int> add(vector<int>& A, vector<int>& B) { vector<int> C; for (int i = 0, t = 0; i < A.size() || i < B.size() || t; i++) { if (i < A.size()) t += A[i]; if (i < B.size()) t += B[i]; C.push_back(t % 10); t /= 10; ...
31.391304
78
0.414127
T1mzhou
27f2e20ee83b2678a10d6728ab2b4ca3b15b0503
580
cpp
C++
ports/esp32/src/hSystem.cpp
ygjukim/hFramework
994ea7550c34b4943e2fa2d5e9ca447aa555f39e
[ "MIT" ]
33
2017-07-03T22:49:30.000Z
2022-03-31T19:32:55.000Z
ports/esp32/src/hSystem.cpp
ygjukim/hFramework
994ea7550c34b4943e2fa2d5e9ca447aa555f39e
[ "MIT" ]
6
2017-07-13T13:23:22.000Z
2019-10-25T17:51:28.000Z
ports/esp32/src/hSystem.cpp
ygjukim/hFramework
994ea7550c34b4943e2fa2d5e9ca447aa555f39e
[ "MIT" ]
17
2017-07-01T05:35:47.000Z
2022-03-22T23:33:00.000Z
/** * Copyright (c) 2013-2017 Husarion Sp. z o.o. * Distributed under the MIT license. * For full terms see the file LICENSE.md. */ #include "hSystem.h" #include <cstring> extern "C" { #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" }; namespace hFramework { uint32_t hSystem::g...
15.675676
46
0.663793
ygjukim
27fb12c20936fbd399932af3586df1acb164d0df
29,028
inl
C++
include/sre/impl/ShaderSource.inl
KasperHdL/SimpleRenderEngine
2d7edeead1d14e00c3d41a29cf9880e216d366e0
[ "MIT" ]
null
null
null
include/sre/impl/ShaderSource.inl
KasperHdL/SimpleRenderEngine
2d7edeead1d14e00c3d41a29cf9880e216d366e0
[ "MIT" ]
null
null
null
include/sre/impl/ShaderSource.inl
KasperHdL/SimpleRenderEngine
2d7edeead1d14e00c3d41a29cf9880e216d366e0
[ "MIT" ]
null
null
null
// autogenerated by // files_to_cpp shader src/embedded_deps/skybox_frag.glsl skybox_frag.glsl src/embedded_deps/skybox_vert.glsl skybox_vert.glsl src/embedded_deps/sre_utils_incl.glsl sre_utils_incl.glsl src/embedded_deps/debug_normal_frag.glsl debug_normal_frag.glsl src/embedded_deps/debug_normal_vert.glsl debug_norm...
30.427673
1,608
0.701805
KasperHdL
27fb453dc6c7a40951d513a131c0e349d4c57920
1,040
hpp
C++
Pi/server.hpp
FundCompXbee/XBeeMessenger
f3210077cb82e1597980b33bc6e2f8f9cf7bc042
[ "MIT" ]
1
2016-04-29T22:30:58.000Z
2016-04-29T22:30:58.000Z
Pi/server.hpp
FundCompXbee/XBeeMessenger
f3210077cb82e1597980b33bc6e2f8f9cf7bc042
[ "MIT" ]
null
null
null
Pi/server.hpp
FundCompXbee/XBeeMessenger
f3210077cb82e1597980b33bc6e2f8f9cf7bc042
[ "MIT" ]
null
null
null
// Team: XBeeMessenger // Course: Fundamentals of Computing II // Assignment: Final Project // Purpose: Interface for a server which receives requests, handles // requests, and broadcasts responses #ifndef SERVER #define SERVER #include <string> #include <unistd.h> #include <cstdlib> #include "IRCCommandHand...
28.888889
79
0.735577
FundCompXbee
7e0119a4fd94dd780940a2fc66941202f79fc7b6
2,088
cpp
C++
libs/libvtrutil/src/vtr_list.cpp
rding2454/IndeStudy
c27be794bc2ce5ada93b16c92569a4bcafc8a21c
[ "MIT" ]
null
null
null
libs/libvtrutil/src/vtr_list.cpp
rding2454/IndeStudy
c27be794bc2ce5ada93b16c92569a4bcafc8a21c
[ "MIT" ]
null
null
null
libs/libvtrutil/src/vtr_list.cpp
rding2454/IndeStudy
c27be794bc2ce5ada93b16c92569a4bcafc8a21c
[ "MIT" ]
null
null
null
#include <cstdlib> #include "vtr_list.h" #include "vtr_memory.h" namespace vtr { t_linked_vptr *insert_in_vptr_list(t_linked_vptr *head, void *vptr_to_add) { /* Inserts a new element at the head of a linked list of void pointers. * * Returns the new head of the list. */ t_lin...
27.84
80
0.688218
rding2454
7e042ee4252496e14df8e3c73c6b1adecbcd3299
1,248
cc
C++
StatModules/src/ToyMCLikelihoodEvaluator.cc
GooStats/GooStats
5a8bc35736eb390d658c790fa0026b576898a462
[ "MIT" ]
3
2020-01-28T21:51:46.000Z
2021-09-06T18:43:00.000Z
StatModules/src/ToyMCLikelihoodEvaluator.cc
GooStats/GooStats
5a8bc35736eb390d658c790fa0026b576898a462
[ "MIT" ]
12
2019-08-09T08:58:49.000Z
2022-03-16T04:00:11.000Z
StatModules/src/ToyMCLikelihoodEvaluator.cc
GooStats/GooStats
5a8bc35736eb390d658c790fa0026b576898a462
[ "MIT" ]
3
2018-04-12T11:53:55.000Z
2022-03-17T13:06:06.000Z
/*****************************************************************************/ // Author: Xuefeng Ding <xuefeng.ding.physics@gmail.com> // Insitute: Gran Sasso Science Institute, L'Aquila, 67100, Italy // Date: 2018 April 7th // Version: v1.0 // Description: GooStats, a statistical analysis toolkit that runs on GPU. /...
36.705882
143
0.614583
GooStats
7e06656f021627fc251d7c71b350492b3a325178
7,917
cpp
C++
test/stkdatatest/ManyRecords.cpp
Aekras1a/YaizuComLib
470d33376add0d448002221b75f7efd40eec506f
[ "MIT" ]
1
2022-01-30T20:17:16.000Z
2022-01-30T20:17:16.000Z
test/stkdatatest/ManyRecords.cpp
Aekras1a/YaizuComLib
470d33376add0d448002221b75f7efd40eec506f
[ "MIT" ]
null
null
null
test/stkdatatest/ManyRecords.cpp
Aekras1a/YaizuComLib
470d33376add0d448002221b75f7efd40eec506f
[ "MIT" ]
null
null
null
#include "../../src/stkpl/StkPl.h" #include "../../src/stkdata/stkdata.h" #include "../../src/stkdata/stkdataapi.h" /* ManyRecords ・WStr(256)×32カラム×16383レコードのテーブルを作成することができる。InsertRecordを16383回繰り返しレコードを追加できる ・既存の[焼津沼津辰口町和泉町中田北白楽]テーブルから10レコードを削除できる。条件として連結されたレコードを指定する ・存在しないカラム名を指定してZaSortRecordを実行したとき,-1が返却される。 */ in...
31.795181
143
0.662372
Aekras1a
7e0765782b6bd26a518cb85d5d7cc059157aefbb
1,148
hpp
C++
_engine/code/include/global/component/profiler.hpp
Shelim/pixie_engine
bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1
[ "MIT" ]
null
null
null
_engine/code/include/global/component/profiler.hpp
Shelim/pixie_engine
bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1
[ "MIT" ]
null
null
null
_engine/code/include/global/component/profiler.hpp
Shelim/pixie_engine
bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1
[ "MIT" ]
null
null
null
#ifndef ENGINE_GLOBAL_COMPONENT_PROFILER_HPP #define ENGINE_GLOBAL_COMPONENT_PROFILER_HPP #pragma once #include "utility/text/ustring.hpp" namespace engine { class profiler_t { public: virtual ~profiler_t() { } virtual void prof_begin_section(const char * name) ...
17.661538
117
0.577526
Shelim
7e086850a54e4560c0bc1ff6f6ab4de9098222e9
2,803
hxx
C++
src/control/genai/c_frontal.hxx
AltSysrq/Abendstern
106e1ad2457f7bfd90080eecf49a33f6079f8e1e
[ "BSD-3-Clause" ]
null
null
null
src/control/genai/c_frontal.hxx
AltSysrq/Abendstern
106e1ad2457f7bfd90080eecf49a33f6079f8e1e
[ "BSD-3-Clause" ]
null
null
null
src/control/genai/c_frontal.hxx
AltSysrq/Abendstern
106e1ad2457f7bfd90080eecf49a33f6079f8e1e
[ "BSD-3-Clause" ]
1
2022-01-29T11:54:41.000Z
2022-01-29T11:54:41.000Z
/** * @file * @author Jason Lingle * @brief Contains the FrontalCortex */ /* * c_frontal.hxx * * Created on: 02.11.2011 * Author: jason */ #ifndef C_FRONTAL_HXX_ #define C_FRONTAL_HXX_ #include "src/sim/objdl.hxx" #include "cortex.hxx" #include "ci_nil.hxx" #include "ci_self.hxx" #include "ci_objectiv...
24.80531
90
0.674278
AltSysrq
7e0960ec09e3cb190439b783fe4f7141de760acb
2,479
cpp
C++
Infinit/src/Platform/OpenGL/OpenGLFrameBuffer.cpp
J4m3s00/Infinit
dd877100f8529e4a97c13f0d179b356800ef2eb9
[ "Apache-2.0" ]
null
null
null
Infinit/src/Platform/OpenGL/OpenGLFrameBuffer.cpp
J4m3s00/Infinit
dd877100f8529e4a97c13f0d179b356800ef2eb9
[ "Apache-2.0" ]
6
2019-07-03T14:21:06.000Z
2019-12-22T12:37:56.000Z
Infinit/src/Platform/OpenGL/OpenGLFrameBuffer.cpp
J4m3s00/Infinit
dd877100f8529e4a97c13f0d179b356800ef2eb9
[ "Apache-2.0" ]
null
null
null
#include "inpch.h" namespace Infinit { OpenGLFrameBuffer::OpenGLFrameBuffer(uint width, uint height, FramebufferFormat format) : m_Format(format), m_Width(0), m_Height(0), m_RendererID(0) { Resize(width, height); } OpenGLFrameBuffer::~OpenGLFrameBuffer() { } void OpenGLFrameBuffer::Resize(uint width, ui...
28.170455
135
0.736587
J4m3s00
7e1a088a7797a422fe47eb3c8731608f189a1c84
3,975
cpp
C++
Firmware/Src/io/lcd/LcdDriver.cpp
borgu/midi-grid
ce65669f55d5d5598a8ff185debcec76ab001bfa
[ "BSD-3-Clause" ]
null
null
null
Firmware/Src/io/lcd/LcdDriver.cpp
borgu/midi-grid
ce65669f55d5d5598a8ff185debcec76ab001bfa
[ "BSD-3-Clause" ]
null
null
null
Firmware/Src/io/lcd/LcdDriver.cpp
borgu/midi-grid
ce65669f55d5d5598a8ff185debcec76ab001bfa
[ "BSD-3-Clause" ]
null
null
null
#include "io/lcd/LcdDriver.hpp" #include "system/gpio_definitions.h" #include "stm32f4xx_hal.h" namespace lcd { static DMA_HandleTypeDef lcdSpiDma; static SPI_HandleTypeDef lcdSpi; extern "C" void DMA1_Stream4_IRQHandler() { HAL_DMA_IRQHandler(&lcdSpiDma); } LcdDriver::LcdDriver() { } LcdDriver::~LcdDriver() ...
27.797203
88
0.720755
borgu
7e1ae4aa4ceb168d6d7f5a29b2f60d26b7096f1f
9,157
cpp
C++
Source/dvlnet/tcp_server.cpp
pionere/devilutionX
63f8deb298a00b040010fc299c0568eae19522e1
[ "Unlicense" ]
2
2021-02-02T19:27:20.000Z
2022-03-07T16:50:55.000Z
Source/dvlnet/tcp_server.cpp
pionere/devilutionX
63f8deb298a00b040010fc299c0568eae19522e1
[ "Unlicense" ]
null
null
null
Source/dvlnet/tcp_server.cpp
pionere/devilutionX
63f8deb298a00b040010fc299c0568eae19522e1
[ "Unlicense" ]
1
2022-03-07T16:51:16.000Z
2022-03-07T16:51:16.000Z
#include "tcp_server.h" #ifdef TCPIP #include <chrono> #include <memory> #include "base.h" DEVILUTION_BEGIN_NAMESPACE namespace net { tcp_server::tcp_server(asio::io_context &ioc, buffer_t info, unsigned srvType) : ioc(ioc) , acceptor(ioc) , connTimer(ioc) , game_init_info(info) , serverType(s...
24.748649
96
0.642569
pionere
7e1b2f410e7f84f5311dea12c79674b57900bc0a
758
cpp
C++
cpp/BalancedBinaryTree.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
12
2015-03-12T03:27:26.000Z
2021-03-11T09:26:16.000Z
cpp/BalancedBinaryTree.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
null
null
null
cpp/BalancedBinaryTree.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
11
2015-01-28T16:45:40.000Z
2017-03-28T20:01:38.000Z
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: bool isBalanced(TreeNode *root) { int h = 0; return isBalanced(root, h); } ...
25.266667
69
0.555409
thinksource
7e1be89d5ebd582653ffef7f21993d81a14d0ab8
5,033
cpp
C++
gui/statuses/LocalStatuses.cpp
mail-ru-im/im-desktop
d6bb606650ad84b31046fe39b81db1fec4e6050b
[ "Apache-2.0" ]
81
2019-09-18T13:53:17.000Z
2022-03-19T00:44:20.000Z
gui/statuses/LocalStatuses.cpp
mail-ru-im/im-desktop
d6bb606650ad84b31046fe39b81db1fec4e6050b
[ "Apache-2.0" ]
4
2019-10-03T15:17:00.000Z
2019-11-03T01:05:41.000Z
gui/statuses/LocalStatuses.cpp
mail-ru-im/im-desktop
d6bb606650ad84b31046fe39b81db1fec4e6050b
[ "Apache-2.0" ]
25
2019-09-27T16:56:02.000Z
2022-03-14T07:11:14.000Z
#include "stdafx.h" #include "utils/JsonUtils.h" #include "../utils/features.h" #include "LocalStatuses.h" #include "gui_settings.h" #include "utils/utils.h" #include "utils/InterConnector.h" #include "rapidjson/writer.h" namespace { inline QString getDefaultJSONPath() { return (Ui::get_gui_settings()...
25.943299
168
0.622293
mail-ru-im
7e1caedc68709129a2d488241201b6042bf4625e
1,608
cpp
C++
Native/Framework/source/Library.Shared/SpriteManager.cpp
btrowbridge/DirectX.2D.Bespoke.Games
382728f7c9d50597f9fc84e222efd468c33716a5
[ "MS-PL" ]
null
null
null
Native/Framework/source/Library.Shared/SpriteManager.cpp
btrowbridge/DirectX.2D.Bespoke.Games
382728f7c9d50597f9fc84e222efd468c33716a5
[ "MS-PL" ]
null
null
null
Native/Framework/source/Library.Shared/SpriteManager.cpp
btrowbridge/DirectX.2D.Bespoke.Games
382728f7c9d50597f9fc84e222efd468c33716a5
[ "MS-PL" ]
null
null
null
#include "pch.h" #include "SpriteManager.h" using namespace std; using namespace DirectX; namespace Library { unique_ptr<SpriteManager> SpriteManager::sInstance; SpriteManager::SpriteManager(Game& game) : mGame(&game), mSpriteBatch(make_shared<DirectX::SpriteBatch>(mGame->Direct3DDeviceContext())) { } shared...
27.724138
133
0.75995
btrowbridge
7e1dbbe5a0decdaec568540334ac2b00e0186796
5,991
cpp
C++
JNIManagedPeer.cpp
jessebenson/JNIManagedPeerBase
7188fc75ecd2010901c9baf98436e7f16eb488b2
[ "MIT" ]
null
null
null
JNIManagedPeer.cpp
jessebenson/JNIManagedPeerBase
7188fc75ecd2010901c9baf98436e7f16eb488b2
[ "MIT" ]
null
null
null
JNIManagedPeer.cpp
jessebenson/JNIManagedPeerBase
7188fc75ecd2010901c9baf98436e7f16eb488b2
[ "MIT" ]
1
2019-01-03T12:34:01.000Z
2019-01-03T12:34:01.000Z
/* * The MIT License (MIT) * * Copyright (c) 2014 Jesse Benson * * 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 us...
24.157258
121
0.59122
jessebenson
7e2ee7a99267f610e6b03bd97bb9fb7424d661bc
13,599
cpp
C++
src/plugins/summary/summarywidget.cpp
devel29a/leechcraft
faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a
[ "BSL-1.0" ]
null
null
null
src/plugins/summary/summarywidget.cpp
devel29a/leechcraft
faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a
[ "BSL-1.0" ]
null
null
null
src/plugins/summary/summarywidget.cpp
devel29a/leechcraft
faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a
[ "BSL-1.0" ]
null
null
null
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
28.390397
125
0.686521
devel29a
7e305c2400bc8774a10c5cc9dec4757f2847085b
1,031
hpp
C++
RayCharles/Sphere.hpp
CoderGirl42/RayTracer
4e370864ec6b9c02ea030a9cbe4354b2d55f3aba
[ "MIT" ]
null
null
null
RayCharles/Sphere.hpp
CoderGirl42/RayTracer
4e370864ec6b9c02ea030a9cbe4354b2d55f3aba
[ "MIT" ]
null
null
null
RayCharles/Sphere.hpp
CoderGirl42/RayTracer
4e370864ec6b9c02ea030a9cbe4354b2d55f3aba
[ "MIT" ]
null
null
null
#pragma once #include "Entity.hpp" class _MMX_ALIGN_ Sphere : public Entity { public: Sphere() {} Sphere(const Vec3& c, real r) : Center(c), Radius(r) {}; virtual bool Hit(const Ray& r, real t_min, real t_max, HitRecord& rec); Vec3 Center; real Radius; Entity *Entity; }; bool Sphere::Hit(const Ray& r, real t...
19.092593
72
0.587779
CoderGirl42
cce1758fd8acd349c852f95809bfb32fcc86af24
51,552
cpp
C++
solarpilot/Toolbox.cpp
rchintala13/ssc
3424d9b1bfab50cc11d1895d0893cf1771fd3a5e
[ "BSD-3-Clause" ]
null
null
null
solarpilot/Toolbox.cpp
rchintala13/ssc
3424d9b1bfab50cc11d1895d0893cf1771fd3a5e
[ "BSD-3-Clause" ]
null
null
null
solarpilot/Toolbox.cpp
rchintala13/ssc
3424d9b1bfab50cc11d1895d0893cf1771fd3a5e
[ "BSD-3-Clause" ]
1
2017-10-01T08:36:05.000Z
2017-10-01T08:36:05.000Z
/** BSD-3-Clause Copyright 2019 Alliance for Sustainable Energy, LLC Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met : 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
27.523759
178
0.585118
rchintala13
cce4c58fd7f2fe5c465f493d28169a189cb5e6b9
2,019
cpp
C++
cocos2dx_playground/Classes/cpg_input_BasicKeyCollector.cpp
R2Road/cocos2dx_playground
6e6f349b5c9fc702558fe8720ba9253a8ba00164
[ "Apache-2.0" ]
9
2020-06-11T17:09:44.000Z
2021-12-25T00:34:33.000Z
cocos2dx_playground/Classes/cpg_input_BasicKeyCollector.cpp
R2Road/cocos2dx_playground
6e6f349b5c9fc702558fe8720ba9253a8ba00164
[ "Apache-2.0" ]
9
2019-12-21T15:01:01.000Z
2020-12-05T15:42:43.000Z
cocos2dx_playground/Classes/cpg_input_BasicKeyCollector.cpp
R2Road/cocos2dx_playground
6e6f349b5c9fc702558fe8720ba9253a8ba00164
[ "Apache-2.0" ]
1
2020-09-07T01:32:16.000Z
2020-09-07T01:32:16.000Z
#include "cpg_input_BasicKeyCollector.h" #include "cpg_input_KeyMap.h" #include "step_rain_of_chaos_input_KeyCodeCollector.h" USING_NS_CC; namespace cpg_input { BasicKeyCollector::BasicKeyCollector( const KeyMapSp& key_map_container ) : iKeyCollector( key_map_container ) , mKeyHistory() , mCurrent_KeyStatus_Con...
33.098361
120
0.771174
R2Road
cce5501e3b418a4945627888a305392c92ee0906
1,763
inl
C++
libblk/info.inl
transpixel/tpqz
2d8400b1be03292d0c5ab74710b87e798ae6c52c
[ "MIT" ]
1
2017-06-01T00:21:16.000Z
2017-06-01T00:21:16.000Z
libblk/info.inl
transpixel/tpqz
2d8400b1be03292d0c5ab74710b87e798ae6c52c
[ "MIT" ]
3
2017-06-01T00:26:16.000Z
2020-05-09T21:06:27.000Z
libblk/info.inl
transpixel/tpqz
2d8400b1be03292d0c5ab74710b87e798ae6c52c
[ "MIT" ]
null
null
null
// // // MIT License // // Copyright (c) 2017 Stellacore Corporation. // // 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 ...
25.926471
72
0.695973
transpixel
cce6a75dd76da1b27efb082873e079f1c618091f
6,868
hpp
C++
src/Renderer.hpp
CobaltXII/Tempest
5963e21b98cd414b1b525b11a193512ec3e35f14
[ "MIT" ]
4
2020-01-03T02:52:53.000Z
2021-09-16T23:03:06.000Z
src/Renderer.hpp
CobaltXII/Tempest
5963e21b98cd414b1b525b11a193512ec3e35f14
[ "MIT" ]
null
null
null
src/Renderer.hpp
CobaltXII/Tempest
5963e21b98cd414b1b525b11a193512ec3e35f14
[ "MIT" ]
null
null
null
// A renderer. struct Renderer { const float FOV = 60.0f; const float NEAR_PLANE = 0.5f; const float FAR_PLANE = 5000.0f; Display display; glm::mat4 projection; int width; int height; Renderer() { return; } Renderer(std::string title, int width, int height) { display = Display(title, width, height); ...
27.805668
96
0.755679
CobaltXII
cceaba2286593dc1fa55e6559cc1ece25b0bc55a
18,490
cpp
C++
src/QMCWaveFunctions/tests/test_einset_spinor.cpp
kayahans/qmcpack
c25d77702e36363ff7368ded783bf31c1b1c5f17
[ "NCSA" ]
null
null
null
src/QMCWaveFunctions/tests/test_einset_spinor.cpp
kayahans/qmcpack
c25d77702e36363ff7368ded783bf31c1b1c5f17
[ "NCSA" ]
null
null
null
src/QMCWaveFunctions/tests/test_einset_spinor.cpp
kayahans/qmcpack
c25d77702e36363ff7368ded783bf31c1b1c5f17
[ "NCSA" ]
null
null
null
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2020 Jeongnim Kim and QMCPACK developers. // // File developed by: Raymond C...
43.505882
182
0.669605
kayahans
ccedd60d98c2a361b0bdc6a2daf26844379be7bf
1,550
cpp
C++
gui/previewer/Previewer.cpp
ERPShuen/ICQ1
f319a72ad60aae4809eef0e4eb362f4d69292296
[ "Apache-2.0" ]
1
2019-12-02T08:37:10.000Z
2019-12-02T08:37:10.000Z
gui/previewer/Previewer.cpp
ERPShuen/ICQ1
f319a72ad60aae4809eef0e4eb362f4d69292296
[ "Apache-2.0" ]
null
null
null
gui/previewer/Previewer.cpp
ERPShuen/ICQ1
f319a72ad60aae4809eef0e4eb362f4d69292296
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "Previewer.h" #include "../main_window/MainWindow.h" #include "../utils/InterConnector.h" #include "../../corelib/enumerations.h" #include "../../gui.shared/implayer.h" #include "../utils/utils.h" namespace { std::unique_ptr<QWidget> PreviewWidget_; std::unique_ptr<QWid...
27.678571
220
0.574839
ERPShuen
ccf059187eb3c8bccf715f1eae37d74469aa3c52
1,684
hpp
C++
include/memory/hadesmem/detail/force_initialize.hpp
CvX/hadesmem
d2c5164cc753dac37879ac8079f2ae23f2b8edb5
[ "MIT" ]
24
2018-08-18T18:05:37.000Z
2021-09-28T00:26:35.000Z
include/memory/hadesmem/detail/force_initialize.hpp
CvX/hadesmem
d2c5164cc753dac37879ac8079f2ae23f2b8edb5
[ "MIT" ]
null
null
null
include/memory/hadesmem/detail/force_initialize.hpp
CvX/hadesmem
d2c5164cc753dac37879ac8079f2ae23f2b8edb5
[ "MIT" ]
9
2018-04-16T09:53:09.000Z
2021-02-26T05:04:49.000Z
// Copyright (C) 2010-2014 Joshua Boyce. // See the file COPYING for copying permission. #pragma once #include <array> #include <windows.h> #include <hadesmem/config.hpp> #include <hadesmem/detail/remote_thread.hpp> #include <hadesmem/detail/trace.hpp> #include <hadesmem/process.hpp> #include <hadesmem...
28.542373
73
0.736342
CvX
ccf1d89f4b4f212721515d1d3cc2aabfa14856a5
1,807
cpp
C++
1 term/2/3/A/A.cpp
alexkats/Discrete-Math
dd4edd9ff9322e319d162d56567b9d81a6636373
[ "Unlicense" ]
null
null
null
1 term/2/3/A/A.cpp
alexkats/Discrete-Math
dd4edd9ff9322e319d162d56567b9d81a6636373
[ "Unlicense" ]
null
null
null
1 term/2/3/A/A.cpp
alexkats/Discrete-Math
dd4edd9ff9322e319d162d56567b9d81a6636373
[ "Unlicense" ]
null
null
null
#include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include <cstdio> #include <cstdlib> #include <vector> #include <algorithm> #include <set> #include <map> #include <cassert> #include <ctime> #include <stack> #include <queue> #include <deque> #include <utility>...
15.444444
62
0.50249
alexkats
ccf7ec1dcc93d8a545e8911fc4acaa7925ef9731
888
cpp
C++
src/13merge.cpp
baseoursteps/faang
8508b3bd66a607fa4ff5a71efd9e2a25a2a263d5
[ "MIT" ]
1
2021-07-13T19:47:57.000Z
2021-07-13T19:47:57.000Z
src/13merge.cpp
baseoursteps/faang
8508b3bd66a607fa4ff5a71efd9e2a25a2a263d5
[ "MIT" ]
1
2021-05-07T15:02:27.000Z
2021-05-09T08:44:05.000Z
src/13merge.cpp
baseoursteps/faang
8508b3bd66a607fa4ff5a71efd9e2a25a2a263d5
[ "MIT" ]
1
2021-05-07T13:18:01.000Z
2021-05-07T13:18:01.000Z
#include <algorithm> #include <iostream> #include <vector> struct interval { int start { -1 }, end { -1 }; interval(int a, int b) : start(a), end(b) {} bool operator<(const interval &o) const { return start < o.start; } }; int main() { using namespace std; vector<interval> val...
20.651163
71
0.427928
baseoursteps
ccfd8be8e8655529c7f77980743cf67f842fc07f
1,759
cpp
C++
Graph Theory/Union-Find (Disjoint-Sets) and MST/prim.cpp
hoanghai1803/DataStructures_Algorithms
b5e8ccb3deba7566b915b21c6b7e9435cfe55301
[ "MIT" ]
1
2021-03-06T00:36:08.000Z
2021-03-06T00:36:08.000Z
Graph Theory/Union-Find (Disjoint-Sets) and MST/prim.cpp
hoanghai1803/DataStructures_Algorithms
b5e8ccb3deba7566b915b21c6b7e9435cfe55301
[ "MIT" ]
null
null
null
Graph Theory/Union-Find (Disjoint-Sets) and MST/prim.cpp
hoanghai1803/DataStructures_Algorithms
b5e8ccb3deba7566b915b21c6b7e9435cfe55301
[ "MIT" ]
null
null
null
/* ========== PRIM'S ALGORITHM IMPLEMENTATION ========== */ // This implementation of Prim's algorithm calculates the minimum // weight spanning tree of the weighted undirected graph with non-negative // edge weights. We assume that the graph is connected. // Time complexity: // Using adjacency matrix: O(V^2) // U...
25.492754
87
0.554292
hoanghai1803
ccff98407b71a41ddc6d1cfe4c03e22bb036ff48
738
cpp
C++
Curso/PILHA.cpp
Pedro-H-Castoldi/c-
a01cec85559efec8c84bef142119d83dad12bb1e
[ "Apache-2.0" ]
null
null
null
Curso/PILHA.cpp
Pedro-H-Castoldi/c-
a01cec85559efec8c84bef142119d83dad12bb1e
[ "Apache-2.0" ]
null
null
null
Curso/PILHA.cpp
Pedro-H-Castoldi/c-
a01cec85559efec8c84bef142119d83dad12bb1e
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <stack> using namespace std; int main(){ stack <string> cartas; cartas.push("Carta 1"); cartas.push("Carta 2"); cartas.push("Carta 3"); cartas.push("carta 4"); /*while (!cartas.empty()){ // Maneira de excluir elementos da Pilha cartas.pop(); }*/ if(cartas.empty()){ cout ...
18.923077
86
0.574526
Pedro-H-Castoldi
6905dfe09a3904ce69ca6b5d0687257e919975aa
1,427
cpp
C++
PIXEL2D/Utilities/StringExtensions.cpp
Maxchii/PIXEL2D
ac1ce604e4f1b8448f14a4f92c69a2ff6d127f56
[ "Apache-2.0" ]
1
2015-05-18T15:20:19.000Z
2015-05-18T15:20:19.000Z
PIXEL2D/Utilities/StringExtensions.cpp
Ossadtchii/PIXEL2D
ac1ce604e4f1b8448f14a4f92c69a2ff6d127f56
[ "Apache-2.0" ]
5
2015-05-18T15:21:28.000Z
2015-06-28T12:43:52.000Z
PIXEL2D/Utilities/StringExtensions.cpp
Maxchii/PIXEL2D
ac1ce604e4f1b8448f14a4f92c69a2ff6d127f56
[ "Apache-2.0" ]
null
null
null
#include "StringExtensions.h" #include <sstream> namespace PIXL { namespace utilities { void GetWords(std::string s, std::vector<std::string>& words) { UInt32 end = 0; while (s.size() > 0) { for (unsigned int i = 0; i < s.size(); i++) { if (s[i] == ' ') { end = i; string word = s.subs...
17.192771
75
0.576034
Maxchii
691328ec21e9bae7dd92209d732428dfda11a04d
2,656
hpp
C++
sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
JinmingHu-MSFT/azure-sdk-for-cpp
933486385a54a5a09a7444dbd823425f145ad75a
[ "MIT" ]
1
2022-01-19T22:54:41.000Z
2022-01-19T22:54:41.000Z
sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
LarryOsterman/azure-sdk-for-cpp
d96216f50909a2bd39b555c9088f685bf0f7d6e6
[ "MIT" ]
null
null
null
sdk/attestation/azure-security-attestation/src/private/crypto/openssl/openssl_helpers.hpp
LarryOsterman/azure-sdk-for-cpp
d96216f50909a2bd39b555c9088f685bf0f7d6e6
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #pragma once #include <memory> #include <openssl/bio.h> #include <openssl/evp.h> #include <stdexcept> #include <type_traits> #include <utility> namespace Azure { namespace Security { namespace Attestation { namespace _detail ...
35.891892
96
0.67997
JinmingHu-MSFT
6913324610ba42002ca621321552d927c8186c93
1,341
cpp
C++
src/CLR/Core/StringTable.cpp
TIPConsulting/nf-interpreter
d5407872f4705d6177e1ee5a2e966bd02fd476e4
[ "MIT" ]
null
null
null
src/CLR/Core/StringTable.cpp
TIPConsulting/nf-interpreter
d5407872f4705d6177e1ee5a2e966bd02fd476e4
[ "MIT" ]
1
2021-02-22T07:54:30.000Z
2021-02-22T07:54:30.000Z
src/CLR/Core/StringTable.cpp
TIPConsulting/nf-interpreter
d5407872f4705d6177e1ee5a2e966bd02fd476e4
[ "MIT" ]
null
null
null
// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include "stdafx.h" #include "Core.h" ////////////////////////////////////////////////////////////////////////...
24.833333
101
0.541387
TIPConsulting
6917d70520912ba9c78126e9e2359c219333c51c
1,184
hh
C++
src/faodel-services/MPISyncStart.hh
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
2
2019-01-25T21:21:07.000Z
2021-04-29T17:24:00.000Z
src/faodel-services/MPISyncStart.hh
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
8
2018-10-09T14:35:30.000Z
2020-09-30T20:09:42.000Z
src/faodel-services/MPISyncStart.hh
faodel/faodel
ef2bd8ff335433e695eb561d7ecd44f233e58bf0
[ "MIT" ]
2
2019-04-23T19:01:36.000Z
2021-05-11T07:44:55.000Z
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. #ifndef FAODEL_MPISYNCHSTART_HH #define FAODEL_MPISYNCHSTART_HH #include <string> #include "faodel-common/Boots...
25.73913
76
0.727196
faodel
691a7ea5b06c5bdcd19fb807d06fcd2fa90ae730
1,241
cpp
C++
tests/expected/loop.cpp
div72/py2many
60277bc13597bd32d078b88a7390715568115fc6
[ "MIT" ]
345
2021-01-28T17:33:08.000Z
2022-03-25T16:07:56.000Z
tests/expected/loop.cpp
mkos11/py2many
be6cfaad5af32c43eb24f182cb20ad63b979d4ef
[ "MIT" ]
291
2021-01-31T13:15:06.000Z
2022-03-23T21:28:49.000Z
tests/expected/loop.cpp
mkos11/py2many
be6cfaad5af32c43eb24f182cb20ad63b979d4ef
[ "MIT" ]
23
2021-02-09T17:15:03.000Z
2022-02-03T05:57:44.000Z
#include <iostream> // NOLINT(build/include_order) #include "pycpp/runtime/builtins.h" // NOLINT(build/include_order) #include "pycpp/runtime/range.hpp" // NOLINT(build/include_order) #include "pycpp/runtime/sys.h" // NOLINT(build/include_order) inline void for_with_break() { for (auto i : rangepp::xrange(...
19.390625
67
0.560838
div72
6926473b43e569d52091c06c3d4d9dfa004429e6
2,103
hpp
C++
test/core/point_comparisons.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
test/core/point_comparisons.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
test/core/point_comparisons.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2019 Álvaro Ceballos // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt #ifndef CYNODELIC_TESELA_TEST_CORE_POINT_COMPARISONS_HPP #define CYNODELIC_TESELA_TEST_CORE_POINT_COMPARISONS_HPP CYNODELIC_TESTER_TEST_...
27.671053
80
0.686638
cynodelic
692c6e26f56afdf089586a6efad5c6577d8200f6
223
cpp
C++
src/filesystem/tempfile.cpp
bunsanorg/testing
2532858878628c9925ddd0e58436bba53e4b6cb9
[ "Apache-2.0" ]
null
null
null
src/filesystem/tempfile.cpp
bunsanorg/testing
2532858878628c9925ddd0e58436bba53e4b6cb9
[ "Apache-2.0" ]
null
null
null
src/filesystem/tempfile.cpp
bunsanorg/testing
2532858878628c9925ddd0e58436bba53e4b6cb9
[ "Apache-2.0" ]
null
null
null
#include <bunsan/test/filesystem/tempfile.hpp> namespace bunsan { namespace test { namespace filesystem { tempfile::tempfile() : path(allocate()) {} } // namespace filesystem } // namespace test } // namespace bunsan
18.583333
46
0.717489
bunsanorg
692dd779f0ef60917299d863b1636a27f2793641
9,551
cpp
C++
runtime/test/dnp3s/test_dnp3_publisher.cpp
kinsamanka/OpenPLC_v3
fc1afcf702eebaf518971b304acf487809c804d4
[ "Apache-2.0" ]
null
null
null
runtime/test/dnp3s/test_dnp3_publisher.cpp
kinsamanka/OpenPLC_v3
fc1afcf702eebaf518971b304acf487809c804d4
[ "Apache-2.0" ]
null
null
null
runtime/test/dnp3s/test_dnp3_publisher.cpp
kinsamanka/OpenPLC_v3
fc1afcf702eebaf518971b304acf487809c804d4
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 Smarter Grid Solutions // // 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 agre...
32.266892
116
0.587373
kinsamanka
692fae95fbbad4c60a0e638f73eea0e614ffc732
5,711
cpp
C++
src/gui/gl/slicerenderer.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
5
2016-03-17T07:02:11.000Z
2021-12-12T14:43:58.000Z
src/gui/gl/slicerenderer.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
null
null
null
src/gui/gl/slicerenderer.cpp
mhough/braingl
53e2078adc10731ee62feec11dcb767c4c6c0d35
[ "MIT" ]
3
2015-10-29T15:21:01.000Z
2020-11-25T09:41:21.000Z
/* * slicerenderer.cpp * * Created on: 09.05.2012 * @author Ralph Schurade */ #include "slicerenderer.h" #include "glfunctions.h" #include "../../data/enums.h" #include "../../data/models.h" #include "../../data/datasets/dataset.h" #include <QtOpenGL/QGLShaderProgram> #include <QVector3D> #inclu...
27.195238
125
0.589914
mhough
69366e3f8e83342a45fdecb6fea9106253de68aa
5,349
hh
C++
hackt_docker/hackt/src/Object/lang/RTE_base.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/Object/lang/RTE_base.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/Object/lang/RTE_base.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
/** \file "Object/lang/RTE_base.hh" Structures for production assignments. $Id: RTE_base.hh,v 1.12 2010/07/09 02:14:13 fang Exp $ */ #ifndef __HAC_OBJECT_LANG_RTE_BASE_HH__ #define __HAC_OBJECT_LANG_RTE_BASE_HH__ #include <list> #include "util/memory/excl_ptr.hh" #include "util/memory/count_ptr.hh" #include "util...
25.112676
82
0.699944
broken-wheel