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
e2f97cc2ae6712cf8bf511039949bd6b92a0ce39
111
cpp
C++
src/MileStone.cpp
arpit/Helios
433692e7ed8b4be2c7fe29781f18d0f9b68c5ee3
[ "MIT" ]
1
2017-10-21T04:27:19.000Z
2017-10-21T04:27:19.000Z
src/MileStone.cpp
arpit/Helios
433692e7ed8b4be2c7fe29781f18d0f9b68c5ee3
[ "MIT" ]
null
null
null
src/MileStone.cpp
arpit/Helios
433692e7ed8b4be2c7fe29781f18d0f9b68c5ee3
[ "MIT" ]
null
null
null
// // MileStone.cpp // StartupsViz // // Created by Mathur, Arpit on 7/18/13. // // #include "MileStone.h"
11.1
40
0.603604
e2fd2b9e121b52834370eaba288ccfb959c9505a
1,405
hpp
C++
source/oc/ocEngine/Components/ocComponentAllocator.hpp
mackron/openchernobyl
47c854ce37e1c361b184e29a59e4881a6faa387c
[ "BSD-3-Clause" ]
2
2021-05-24T21:18:13.000Z
2021-12-20T07:21:20.000Z
source/oc/ocEngine/Components/ocComponentAllocator.hpp
openchernobyl/openchernobyl
47c854ce37e1c361b184e29a59e4881a6faa387c
[ "BSD-3-Clause" ]
null
null
null
source/oc/ocEngine/Components/ocComponentAllocator.hpp
openchernobyl/openchernobyl
47c854ce37e1c361b184e29a59e4881a6faa387c
[ "BSD-3-Clause" ]
null
null
null
// Copyright (C) 2018 David Reid. See included LICENSE file. typedef ocComponent* (* ocCreateComponentProc)(ocEngineContext* pEngine, ocComponentType type, ocWorldObject* pObject, void* pUserData); typedef void (* ocDeleteComponentProc)(ocComponent* pComponent, void* pUserData); struct ocComponentAllocatorIns...
37.972973
175
0.814235
e2fd49c1a4ad988db34e8acb9d050ed78d2ee2bb
6,653
cpp
C++
book_samples/opencl_interop/my_vx_tensor_map_impl.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
220
2016-03-20T00:48:58.000Z
2022-03-31T09:46:21.000Z
book_samples/opencl_interop/my_vx_tensor_map_impl.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
28
2016-06-16T19:17:41.000Z
2021-09-16T16:19:18.000Z
book_samples/opencl_interop/my_vx_tensor_map_impl.cpp
jwinarske/openvx_tutorial
3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c
[ "MIT" ]
84
2016-03-24T01:13:07.000Z
2022-03-22T04:37:03.000Z
/* * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and...
35.57754
110
0.620171
c3b3be02cd5e6b18b4c670130f18b31ae9fcae99
20,235
cxx
C++
test/unit/config/config_test.cxx
ANSAKsoftware/ansak-lib
93eff12a50464f3071b27c8eb16336f93d0d04c6
[ "BSD-2-Clause" ]
null
null
null
test/unit/config/config_test.cxx
ANSAKsoftware/ansak-lib
93eff12a50464f3071b27c8eb16336f93d0d04c6
[ "BSD-2-Clause" ]
null
null
null
test/unit/config/config_test.cxx
ANSAKsoftware/ansak-lib
93eff12a50464f3071b27c8eb16336f93d0d04c6
[ "BSD-2-Clause" ]
null
null
null
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2015, Arthur N. Klassen // 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...
35.437828
91
0.586064
c3b63176a0f1f33169a106afa3ff6f16cfedada4
1,770
hpp
C++
modules/sdk/include/nt2/sdk/config/compiler/report.hpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/sdk/include/nt2/sdk/config/compiler/report.hpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/sdk/include/nt2/sdk/config/compiler/report.hpp
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
/******************************************************************************* * Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II * Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI * * Distributed under the Boost Software License, Version 1.0. * ...
35.4
80
0.472881
c3b899b877daa6a822136cf309b6e165c4c3e3dc
2,820
cpp
C++
sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp
wirx6/LLGL
2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee
[ "BSD-3-Clause" ]
null
null
null
sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp
wirx6/LLGL
2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee
[ "BSD-3-Clause" ]
null
null
null
sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp
wirx6/LLGL
2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee
[ "BSD-3-Clause" ]
null
null
null
/* * D3D12CommandContext.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "D3D12CommandContext.h" #include "../D3D12Resource.h" #include "../../DXCommon/DXCore.h" namespace LLGL { void D3D12CommandContext::Set...
27.647059
122
0.669149
c3b9a85b1d2b939baf36f5aa43b50e021a7dc906
115
hpp
C++
gtrc_vehicles/CfgAmmo.hpp
kzfoxx/GTRC-Framework
e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6
[ "MIT" ]
null
null
null
gtrc_vehicles/CfgAmmo.hpp
kzfoxx/GTRC-Framework
e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6
[ "MIT" ]
null
null
null
gtrc_vehicles/CfgAmmo.hpp
kzfoxx/GTRC-Framework
e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6
[ "MIT" ]
null
null
null
class CfgAmmo { class BulletBase; class Gatling_30mm_HE_Plane_CAS_01_F: BulletBase { caliber = 6; }; };
16.428571
52
0.695652
c3bba75286889988256e08f90493166842347443
7,911
cpp
C++
src/Mesh.cpp
akoylasar/PBR
17e6197fb5357220e2f1454898a18f8890844d4d
[ "MIT" ]
null
null
null
src/Mesh.cpp
akoylasar/PBR
17e6197fb5357220e2f1454898a18f8890844d4d
[ "MIT" ]
null
null
null
src/Mesh.cpp
akoylasar/PBR
17e6197fb5357220e2f1454898a18f8890844d4d
[ "MIT" ]
null
null
null
/* * Copyright (c) Fouad Valadbeigi (akoylasar@gmail.com) */ #include "Mesh.hpp" #include <cmath> #include "Debug.hpp" namespace Akoylasar { constexpr double kTwoPi = Neon::kPi * 2.0; std::unique_ptr<Mesh> Mesh::buildSphere(double radius, unsigned int hSegments, ...
36.456221
137
0.551511
c3bc07d4fdcc84118cefbbc09dcf758bd40f825b
2,567
cpp
C++
NaoTHSoccer/Source/Cognition/Modules/Behavior/XABSLBehaviorControl/Symbols/PathSymbols.cpp
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
NaoTHSoccer/Source/Cognition/Modules/Behavior/XABSLBehaviorControl/Symbols/PathSymbols.cpp
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
NaoTHSoccer/Source/Cognition/Modules/Behavior/XABSLBehaviorControl/Symbols/PathSymbols.cpp
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
/** * @file PathSymbols.cpp * * @author <a href="mailto:akcayyig@hu-berlin.de">Yigit Can Akcay</a> */ #include "PathSymbols.h" void PathSymbols::registerSymbols(xabsl::Engine& engine) { // PathPlanner2018Routine engine.registerEnumElement("path2018.routine", "path2018.routine.none", static_cast<...
45.035088
160
0.781457
c3c0b8d89474801267ed5e37059dfe1f44fc8778
730
cpp
C++
src/utils/InetUtils.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
4
2021-09-12T00:13:04.000Z
2022-02-19T11:18:33.000Z
src/utils/InetUtils.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
null
null
null
src/utils/InetUtils.cpp
GbaLog/wad_packer
212af80a8e1e475221be4b5ec241bd77ec126899
[ "MIT" ]
null
null
null
#include "InetUtils.h" //----------------------------------------------------------------------------- #ifdef _WIN32 #include <winsock2.h> #else #include <arpa/inet.h> #endif //----------------------------------------------------------------------------- namespace ratel { //-----------------------------------...
30.416667
80
0.217808
c3c2d1148cb620429b9719256d6d9f3ddf63bfaa
3,800
hpp
C++
src/decoders/novatel/api/separator.hpp
novatel/novatel_edie
d212681f1952704e50e9c8977891dd024c3338ae
[ "MIT" ]
3
2021-05-04T21:14:18.000Z
2021-07-23T17:19:54.000Z
src/decoders/novatel/api/separator.hpp
novatel/novatel_edie
d212681f1952704e50e9c8977891dd024c3338ae
[ "MIT" ]
1
2022-03-07T18:04:18.000Z
2022-03-07T18:04:18.000Z
src/decoders/novatel/api/separator.hpp
novatel/novatel_edie
d212681f1952704e50e9c8977891dd024c3338ae
[ "MIT" ]
2
2021-05-04T21:18:25.000Z
2021-06-24T08:51:43.000Z
//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020 NovAtel Inc. // // 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 restrictio...
34.862385
122
0.629737
c3c872072f41504807f429c006e910bd912f2276
7,574
cpp
C++
without_vtk.cpp
Harold2017/texture_mapping
c8aca1e9d30fd53e1f15be937aec2c53993bc371
[ "MIT" ]
1
2022-01-10T07:51:40.000Z
2022-01-10T07:51:40.000Z
without_vtk.cpp
Harold2017/texture_mapping
c8aca1e9d30fd53e1f15be937aec2c53993bc371
[ "MIT" ]
null
null
null
without_vtk.cpp
Harold2017/texture_mapping
c8aca1e9d30fd53e1f15be937aec2c53993bc371
[ "MIT" ]
null
null
null
// // Created by Harold on 2021/11/17. // #pragma warning(disable : 4996) #pragma warning(disable : 4819) #include <boost/filesystem.hpp> #include <boost/thread/thread.hpp> #include <pcl/common/transforms.h> #include <pcl/features/normal_3d.h> #include <pcl/io/obj_io.h> #include <pcl/io/ply_io.h> #include <pcl/kdtre...
30.175299
194
0.632691
c3cb58cdc2d1f73b3dd9d6d5ca786bdfef916b08
2,134
hxx
C++
main/vcl/inc/unx/salstd.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/vcl/inc/unx/salstd.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/vcl/inc/unx/salstd.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
28.837838
79
0.676664
c3cd2c2feb1535207804a141f2d25998822e240a
993
cpp
C++
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut
aabedb5cb108513173951a5fc86ad589e7c8ccbc
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut
aabedb5cb108513173951a5fc86ad589e7c8ccbc
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut
aabedb5cb108513173951a5fc86ad589e7c8ccbc
[ "MIT" ]
null
null
null
#include "tic_tac_toe_manager.h" TicTacToeManager::TicTacToeManager(TicTacToeData & data) { games = data.get_games(); for (auto& game : games) { update_winner_count(game->get_winner()); } } void TicTacToeManager::save_game(unique_ptr<TicTacToe> & game) { update_winner_count(game->get_winner()); games.push_b...
16.55
69
0.632427
c3ce1e2623ad89e78d9d3b8d43b3f82b4a3530b8
1,809
cpp
C++
src/res/animation.cpp
crockeo/cpp-whatisthisgame
90fe2f69f380635050aa746f280288aa0b7c5f54
[ "MIT" ]
null
null
null
src/res/animation.cpp
crockeo/cpp-whatisthisgame
90fe2f69f380635050aa746f280288aa0b7c5f54
[ "MIT" ]
1
2015-02-02T02:08:02.000Z
2015-02-02T04:48:27.000Z
src/res/animation.cpp
crockeo/cpp-whatisthisgame
90fe2f69f380635050aa746f280288aa0b7c5f54
[ "MIT" ]
null
null
null
#include "animation.hpp" ////////// // Code // // Calculating the current frame index. unsigned int Animation::calcCurrentFrameIndex() const { int frame = this->timer->getTime() / frameLength; if (frame >= this->textures.size()) return this->textures.size() - 1; return frame; } // Creating a new ...
31.736842
89
0.688778
c3cf5d9e6bcddc9dd28be593bfab79b214d31f3a
885
cpp
C++
src/LWM2MObject.cpp
Tanganelli/LWM2MEmbedded
19a2c5d4edc84a0d91e388b5a789fda8e6142956
[ "MIT" ]
1
2018-04-03T14:58:12.000Z
2018-04-03T14:58:12.000Z
src/LWM2MObject.cpp
Tanganelli/LWM2MEmbedded
19a2c5d4edc84a0d91e388b5a789fda8e6142956
[ "MIT" ]
1
2017-03-21T14:58:16.000Z
2017-03-23T12:28:09.000Z
src/LWM2MObject.cpp
Tanganelli/LWM2MEmbedded
19a2c5d4edc84a0d91e388b5a789fda8e6142956
[ "MIT" ]
null
null
null
// // Created by jacko on 20/01/17. // #include "LWM2MObject.h" char *LWM2MObject::getObjectName() const { return ObjectName; } void LWM2MObject::setObjectName(char *ObjectName) { LWM2MObject::ObjectName = ObjectName; } ObjectIDType LWM2MObject::getObjectID() const { return ObjectID; } void LWM2MObject...
21.071429
75
0.728814
c3d326ab78155934dfa9180a0789d3b8f2f6b7c6
1,139
cpp
C++
src/erhe/scene/viewport.cpp
tksuoran/erhe
07d1ea014e1675f6b09bff0d9d4f3568f187e0d8
[ "Apache-2.0" ]
36
2021-05-03T10:47:49.000Z
2022-03-19T12:54:03.000Z
src/erhe/scene/viewport.cpp
tksuoran/erhe
07d1ea014e1675f6b09bff0d9d4f3568f187e0d8
[ "Apache-2.0" ]
29
2020-05-17T08:26:31.000Z
2022-03-27T08:52:47.000Z
src/erhe/scene/viewport.cpp
tksuoran/erhe
07d1ea014e1675f6b09bff0d9d4f3568f187e0d8
[ "Apache-2.0" ]
2
2022-01-24T09:24:37.000Z
2022-01-31T20:45:36.000Z
#include "erhe/scene/viewport.hpp" #include "erhe/scene/log.hpp" #include "erhe/toolkit/math_util.hpp" namespace erhe::scene { auto Viewport::unproject( const glm::mat4 world_from_clip, const glm::vec3 window, const float depth_range_near, const float depth_range_far ) const -> std::optional<g...
24.234043
50
0.653205
c3d4c33e716e4cdf985d257ad205ba50d2611cf5
14,473
cxx
C++
PROPOSAL/private/PROPOSAL/scattering/Coefficients.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
PROPOSAL/private/PROPOSAL/scattering/Coefficients.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
PROPOSAL/private/PROPOSAL/scattering/Coefficients.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#include "PROPOSAL/scattering/Coefficients.h" //----------------------------------------------------------------------------// //-----------------------------Coefficients-----------------------------------// //---for calculating the power series approximation of the moliere function---// //---------------------------...
66.695853
101
0.453396
c3d5eccc073a19a5adb856e00c78d3e4d7a410af
8,567
cpp
C++
LMS7002M/lms7suite/controlPanelGUI/fft/PlotUpdateThread.cpp
myriadrf/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
14
2015-01-16T17:01:05.000Z
2020-10-31T17:52:53.000Z
LMS7002M/lms7suite/controlPanelGUI/fft/PlotUpdateThread.cpp
serojik91/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
null
null
null
LMS7002M/lms7suite/controlPanelGUI/fft/PlotUpdateThread.cpp
serojik91/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
12
2015-02-01T23:32:31.000Z
2021-01-09T16:34:51.000Z
/** @file PlotUpdateThread.cpp @author Lime Microsystems @brief Class for updating fft data plots */ #include "PlotUpdateThread.h" #include <stdio.h> #include "pnlFFTviewer.h" #include "CommonUtilities.h" #include "SamplesCollector.h" #include <vector> #include <wx/time.h> using namespace std; const int CHANNEL_COUNT...
34.967347
159
0.514883
c3da584fa3177cd7bd55731b103e77f0e22114c9
2,299
cpp
C++
contents/graham_scan/code/c++/graham_scan.cpp
Iinguistics/algorithm-archivists.github.io
3759b22a9c21b8b7a9bf075ca880e02ec524abc5
[ "MIT" ]
1,975
2018-04-28T13:46:56.000Z
2022-03-29T13:14:47.000Z
contents/graham_scan/code/c++/graham_scan.cpp
Iinguistics/algorithm-archivists.github.io
3759b22a9c21b8b7a9bf075ca880e02ec524abc5
[ "MIT" ]
632
2018-04-28T10:27:13.000Z
2022-03-28T20:38:53.000Z
contents/graham_scan/code/c++/graham_scan.cpp
Iinguistics/algorithm-archivists.github.io
3759b22a9c21b8b7a9bf075ca880e02ec524abc5
[ "MIT" ]
433
2018-04-27T22:50:22.000Z
2022-03-22T06:16:03.000Z
#include <algorithm> #include <cmath> #include <iostream> #include <vector> struct point { double x; double y; }; std::ostream& operator<<(std::ostream& os, const std::vector<point>& points) { for (auto p : points) { os << "(" << p.x << ", " << p.y << ")\n"; } return os; } double ccw(const point& a, co...
27.047059
78
0.433232
c3daccd7cb4ce0df04859e39032c133934ccc4d2
77,794
cpp
C++
src/vm/vm8051.cpp
koalajack/koalachain
84b5d5351072947f79f982ca24666047e955df3d
[ "MIT" ]
null
null
null
src/vm/vm8051.cpp
koalajack/koalachain
84b5d5351072947f79f982ca24666047e955df3d
[ "MIT" ]
null
null
null
src/vm/vm8051.cpp
koalajack/koalachain
84b5d5351072947f79f982ca24666047e955df3d
[ "MIT" ]
null
null
null
// ComDirver.cpp: implementation of the CComDirver class. // ////////////////////////////////////////////////////////////////////// #include "vm8051.h" #include <stdio.h> #include <string.h> #include <assert.h> #include "hash.h" #include "key.h" #include "main.h" #include <openssl/des.h> #include <vector> #include "...
22.138304
117
0.639098
c3debfa947362fdc46cb23f328eb5e9f0e5ce3cf
3,561
cpp
C++
src/CoordinateAxes.cpp
sosswald/gpu-coverage
da36062272244573abd938996d8cb6ecd25a55e7
[ "BSD-3-Clause" ]
2
2018-09-17T15:21:06.000Z
2020-03-27T11:57:04.000Z
src/CoordinateAxes.cpp
sosswald/gpu-coverage
da36062272244573abd938996d8cb6ecd25a55e7
[ "BSD-3-Clause" ]
null
null
null
src/CoordinateAxes.cpp
sosswald/gpu-coverage
da36062272244573abd938996d8cb6ecd25a55e7
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2018, Stefan Osswald * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of cond...
35.969697
89
0.693906
c3e22d21312e99e2f44ae8bab67b83bd52ad148d
4,403
cpp
C++
plugin/plugin_guide/snippets/dicom_menus/milxQtDICOMPlugin.cpp
aneube/smili-spine
3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b
[ "BSD-2-Clause" ]
17
2015-03-09T19:22:07.000Z
2021-05-24T20:25:08.000Z
plugin/plugin_guide/snippets/dicom_menus/milxQtDICOMPlugin.cpp
aneube/smili-spine
3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b
[ "BSD-2-Clause" ]
16
2015-08-20T03:30:15.000Z
2019-10-22T12:21:14.000Z
plugin/plugin_guide/snippets/dicom_menus/milxQtDICOMPlugin.cpp
aneube/smili-spine
3cd8f95077d4bc1f5ac6146bc5356c3131f22e4b
[ "BSD-2-Clause" ]
11
2015-06-22T00:11:01.000Z
2021-12-26T21:29:52.000Z
#include "milxQtDICOMPlugin.h" #include <qplugin.h> milxQtDICOMPlugin::milxQtDICOMPlugin(QObject *theParent) : milxQtPluginInterface(theParent) { ///Up cast parent to milxQtMain MainWindow = qobject_cast<milxQtMain *>(theParent); //~ threaded = false; //~ dockable = false; //~ consoleWindow = fal...
23.8
116
0.691801
c3e4981b41e0c9b7d965a3bbdabb4985ca86dbe3
548
cpp
C++
excercise_book/task_1_1/main.cpp
bartekpacia/cpp-training
ec0b6c3ca4d2590e05df647d597ced94fed922af
[ "MIT" ]
null
null
null
excercise_book/task_1_1/main.cpp
bartekpacia/cpp-training
ec0b6c3ca4d2590e05df647d597ced94fed922af
[ "MIT" ]
null
null
null
excercise_book/task_1_1/main.cpp
bartekpacia/cpp-training
ec0b6c3ca4d2590e05df647d597ced94fed922af
[ "MIT" ]
null
null
null
/** * Task 1.1 * Write a program calculating area of the rectangle. The * values of sides a and b are float, so is the area. Display * the result with precision of two decimal places. **/ #include <iomanip> #include <iostream> using namespace std; int main() { float a, b, area; cout << "Enter side a" <<...
19.571429
61
0.587591
c3ef135143b457c16bc80960ba3b059435f2efb5
6,127
cpp
C++
src/burner/win32/memcard.cpp
tt-arcade/fba-pi
10407847a98f0d315b05e44f0ecf01824f4558aa
[ "Apache-2.0" ]
null
null
null
src/burner/win32/memcard.cpp
tt-arcade/fba-pi
10407847a98f0d315b05e44f0ecf01824f4558aa
[ "Apache-2.0" ]
null
null
null
src/burner/win32/memcard.cpp
tt-arcade/fba-pi
10407847a98f0d315b05e44f0ecf01824f4558aa
[ "Apache-2.0" ]
null
null
null
// Memory card support module #include "burner.h" static TCHAR szMemoryCardFile[MAX_PATH]; int nMemoryCardStatus = 0; int nMemoryCardSize; static int nMinVersion; static bool bMemCardFC1Format; static int MakeOfn() { memset(&ofn, 0, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = hScrnWnd; ofn.lps...
19.764516
99
0.651053
c3f115478d76be5a926b96e26b94ac3fae57330a
1,027
cpp
C++
Dataset/Leetcode/train/13/208.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/13/208.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/13/208.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: int XXX(string s) { if(s.find("IV")!=s.npos) s = s.replace(s.find("IV"),2,"a"); if (s.find("IX") != s.npos) s = s.replace(s.find("IX"), 2, "b"); if (s.find("XL") != s.npos) s = s.replace(s.find("XL"), 2, "c"); if (s.find("XC") != s.npos) s = s.replace(s.find("XC"), 2, "d"); ...
16.046875
38
0.447907
c3f73f9cba29aeb9b9bb27693805d0b332995276
2,933
hpp
C++
include/jbr/reg/var/perm/Rights.hpp
j-bruel/Register
4fa991ed86fedb3883514031e51dc62057d0abd0
[ "MIT" ]
null
null
null
include/jbr/reg/var/perm/Rights.hpp
j-bruel/Register
4fa991ed86fedb3883514031e51dc62057d0abd0
[ "MIT" ]
null
null
null
include/jbr/reg/var/perm/Rights.hpp
j-bruel/Register
4fa991ed86fedb3883514031e51dc62057d0abd0
[ "MIT" ]
1
2019-05-06T14:12:44.000Z
2019-05-06T14:12:44.000Z
//! //! @file jbr/reg/var/perm/Rights.hpp //! @author jbruel //! @date 30/07/19 //! #ifndef JBR_CREGISTER_REGISTER_VAR_PERM_RIGHTS_HPP # define JBR_CREGISTER_REGISTER_VAR_PERM_RIGHTS_HPP # include <jbr/reg/Permission.hpp> //! //! @namespace jbr::reg::var::perm //! namespace jbr::reg::var::perm { //! //! @st...
38.592105
122
0.475963
c3f89122ab4097266af03703c46be22049244741
11,021
cpp
C++
src/matrix.cpp
admonkey/nnet
decfb531ebd753cb9777298b891319a262f95a6c
[ "CC0-1.0" ]
2
2019-05-23T15:34:40.000Z
2020-11-09T15:45:29.000Z
src/matrix.cpp
jpuck/neural-network
decfb531ebd753cb9777298b891319a262f95a6c
[ "CC0-1.0" ]
null
null
null
src/matrix.cpp
jpuck/neural-network
decfb531ebd753cb9777298b891319a262f95a6c
[ "CC0-1.0" ]
null
null
null
// ---------------------------------------------------------------- // The contents of this file are distributed under the CC0 license. // See http://creativecommons.org/publicdomain/zero/1.0/ // ---------------------------------------------------------------- #include "matrix.h" #include "rand.h" #include "error.h" #...
25.335632
115
0.599673
c3fa4e6d355882e36d018d2516c3c7c54a46fb84
13,345
cpp
C++
src-cpp/shoal.cpp
theJasonFan/shoal
0b081c7a90c826d739581b965b9bb0f4da119225
[ "BSD-2-Clause" ]
21
2016-11-02T13:26:42.000Z
2020-09-16T01:16:21.000Z
src-cpp/shoal.cpp
theJasonFan/shoal
0b081c7a90c826d739581b965b9bb0f4da119225
[ "BSD-2-Clause" ]
3
2016-11-03T11:23:56.000Z
2017-09-20T15:03:48.000Z
src-cpp/shoal.cpp
theJasonFan/shoal
0b081c7a90c826d739581b965b9bb0f4da119225
[ "BSD-2-Clause" ]
3
2016-12-07T07:43:53.000Z
2020-08-06T17:27:20.000Z
#include <fstream> #include <iostream> #include <stack> #include <unordered_set> #include "EquivCollection.hpp" #include "Optimizer.hpp" #include "csv.h" #include "eigen3/Eigen/Dense" #include "filesystem/path.h" #include "popl.hpp" #include "sparsepp.h" #include "spdlog/spdlog.h" #include "spdlog/fmt/ostr.h" struct ...
33.032178
145
0.596328
c3fa7a9f74907ae5ec230fd9742c729e637b4c31
446
cpp
C++
solutions/leetcode/944. Delete Columns to Make Sorted.cpp
MohanedAshraf/competitive-programming
234dc6113b39462c64a2719cd1071f3d99655508
[ "MIT" ]
1
2021-08-12T14:53:37.000Z
2021-08-12T14:53:37.000Z
solutions/leetcode/944. Delete Columns to Make Sorted.cpp
MohanedAshraf/competitive-programming
234dc6113b39462c64a2719cd1071f3d99655508
[ "MIT" ]
null
null
null
solutions/leetcode/944. Delete Columns to Make Sorted.cpp
MohanedAshraf/competitive-programming
234dc6113b39462c64a2719cd1071f3d99655508
[ "MIT" ]
null
null
null
static int __=[](){std::ios::sync_with_stdio(false);return 1000;}(); class Solution { public: int minDeletionSize(vector<string>& strs) { int c = 0 , n = strs.size() , m = strs[0].size() ; for(int i= 0 ; i<m ; i++) for(int j = 0; j<n-1 ; j++ ) if(strs[j...
24.777778
68
0.392377
c3fda5be2ec43ef70ebf0cce3ebacee46910d9d6
4,450
cpp
C++
sts_behavior_tree_client/src/BehaviorTreeNodeInterface.cpp
Autonomous-Logistics/sts_behavior_tree_testing
3c9fecf3b2ea69289ca95b426182cb250ba4ba27
[ "MIT" ]
4
2020-04-01T11:03:03.000Z
2021-05-30T01:23:50.000Z
sts_behavior_tree_client/src/BehaviorTreeNodeInterface.cpp
Autonomous-Logistics/sts_behavior_tree_testing
3c9fecf3b2ea69289ca95b426182cb250ba4ba27
[ "MIT" ]
null
null
null
sts_behavior_tree_client/src/BehaviorTreeNodeInterface.cpp
Autonomous-Logistics/sts_behavior_tree_testing
3c9fecf3b2ea69289ca95b426182cb250ba4ba27
[ "MIT" ]
2
2020-04-08T14:21:54.000Z
2021-10-06T08:42:30.000Z
#include "sts_behavior_tree_testing/BehaviorTreeNodeInterface.h" namespace sts_behavior_tree_testing { /// ************************** /// Constructors /// ************************** BehaviorTreeNodeInterface::BehaviorTreeNodeInterface(ros::NodeHandle* nodeHandlePtr) : sts_core::sts_interfaces::StsBehaviorTre...
32.720588
165
0.646292
c3ff4561c82896407cd33ef4b603f6fbcf689245
601
cc
C++
pressureCtrlAlg/bagSimModel.cc
gerth2/piUserInterface
9b79cbe71654c404894eac511e54581d4d9cf8ab
[ "MIT" ]
null
null
null
pressureCtrlAlg/bagSimModel.cc
gerth2/piUserInterface
9b79cbe71654c404894eac511e54581d4d9cf8ab
[ "MIT" ]
null
null
null
pressureCtrlAlg/bagSimModel.cc
gerth2/piUserInterface
9b79cbe71654c404894eac511e54581d4d9cf8ab
[ "MIT" ]
null
null
null
#include "bagSimModel.h" #define Ts 0.01 #define PWM_TO_POS_SCALE 0.01 #define BAG_MAX_VOL 1.0 #define BAG_MIN_VOL 0.25 //Expected flow vs. Pressure // PSI 2 5 10 15 20 25 30 // kPa 13.7 34.5 68.9 103 138 172 206 // Flow (CFM) 40.5 63.5 79.6 108 126 144 162...
22.259259
83
0.625624
7f010c257f9e8d50c312d8d5dd31661136ac1ee7
243
cpp
C++
Basic/Check Whether a Number is Even or Odd/SolutionByRegi.cpp
Mdanish777/Programmers-Community
b5ca9582fc1cd4337baa7077ff62130a1052583f
[ "MIT" ]
2
2019-09-21T21:18:13.000Z
2019-09-28T14:26:56.000Z
Basic/Check Whether a Number is Even or Odd/SolutionByRegi.cpp
Mdanish777/Programmers-Community
b5ca9582fc1cd4337baa7077ff62130a1052583f
[ "MIT" ]
14
2019-09-23T07:25:27.000Z
2019-09-30T09:35:01.000Z
Basic/Check Whether a Number is Even or Odd/SolutionByRegi.cpp
Mdanish777/Programmers-Community
b5ca9582fc1cd4337baa7077ff62130a1052583f
[ "MIT" ]
13
2019-09-21T16:43:56.000Z
2019-09-30T15:28:33.000Z
#include <iostream> #include <string> bool IsEven(int num) { return (num % 2 == 0); } int main() { int num; std::cout << "Enter a number: "; std::cin >> num; std::cout << num << " is " << (IsEven(num) ? "Even" : "Odd") << "\n"; }
16.2
71
0.514403
7f016362cc0d9f086ec0a4838d2dbe0579de879f
905
cpp
C++
Week13/natsia_and_good_arrays.cpp
princesinghtomar/Competitive-Programming
a0df818dfa56267fdde59bd1862d0b78f6e069c4
[ "MIT" ]
3
2020-11-11T13:45:40.000Z
2021-07-20T11:53:34.000Z
Week13/natsia_and_good_arrays.cpp
princesinghtomar/Competitive-Programming
a0df818dfa56267fdde59bd1862d0b78f6e069c4
[ "MIT" ]
11
2020-10-03T14:26:35.000Z
2021-10-30T15:26:40.000Z
Week13/natsia_and_good_arrays.cpp
princesinghtomar/Competitive-Programming
a0df818dfa56267fdde59bd1862d0b78f6e069c4
[ "MIT" ]
12
2020-05-12T08:39:54.000Z
2021-10-30T14:56:27.000Z
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin>>t; while(t--){ int n; cin >> n; int sindex = 0,k=0; long int arr[n]; long int brr[n][4]; for(int i=0;i<n;i++){ cin>>arr...
23.815789
104
0.345856
7f01e39e372fa6f8e3ab3974e174acbe05393132
904
cc
C++
fake_landsatz_2d/random.cc
DotStarMoney/NBD
7a6b76b84cc35de7825ede55c4c89a391a5dff7f
[ "Apache-2.0" ]
1
2021-09-27T00:15:50.000Z
2021-09-27T00:15:50.000Z
fake_landsatz_2d/random.cc
DotStarMoney/NBD
7a6b76b84cc35de7825ede55c4c89a391a5dff7f
[ "Apache-2.0" ]
null
null
null
fake_landsatz_2d/random.cc
DotStarMoney/NBD
7a6b76b84cc35de7825ede55c4c89a391a5dff7f
[ "Apache-2.0" ]
null
null
null
#include "random.h" #include <stdint.h> #include <functional> #include <limits> #include <thread> namespace nbd { namespace util { struct XorShiftP { XorShiftP() { srnd(std::hash<std::thread::id>{}(std::this_thread::get_id())); } uint64_t state[2]; uint64_t Step() { uint64_t x = state[0]; const...
17.384615
75
0.589602
7f06520e6ab72bc5a6ba0be605f7cf45659bac4f
4,414
cpp
C++
statusd.cpp
vonj/minidisplay_statusd
07ff51f41a2ff5d14dc4567970a281885b10aa9a
[ "MIT" ]
3
2016-08-20T20:00:40.000Z
2020-05-16T03:10:18.000Z
statusd.cpp
vonj/minidisplay_statusd
07ff51f41a2ff5d14dc4567970a281885b10aa9a
[ "MIT" ]
1
2016-08-20T11:57:26.000Z
2016-08-20T11:57:26.000Z
statusd.cpp
vonj/minidisplay_statusd
07ff51f41a2ff5d14dc4567970a281885b10aa9a
[ "MIT" ]
null
null
null
#include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #include <ifaddrs.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include "ArduiPi_OLED_lib.h" #include "Adafruit_GFX.h" #include "ArduiPi_OLED.h" #include <time.h> #includ...
21.637255
111
0.589941
7f074d834191471a61d7643bb518b3420de42043
10,520
cpp
C++
qtdeclarative/src/quick/designer/qquickdesignercustomobjectdata.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
1
2020-04-30T15:47:35.000Z
2020-04-30T15:47:35.000Z
qtdeclarative/src/quick/designer/qquickdesignercustomobjectdata.cpp
wgnet/wds_qt
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
[ "Apache-2.0" ]
null
null
null
qtdeclarative/src/quick/designer/qquickdesignercustomobjectdata.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 QtQuick module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid comme...
36.655052
164
0.684411
7f0adede716cb763e559b3e8d4533efb7a003b74
524
cpp
C++
Payoffs.cpp
ThibaultLacharme/tddc_pde_solver
c735ff4aff8a9cba33ed86c59b1fcd569745b74f
[ "BSD-3-Clause" ]
null
null
null
Payoffs.cpp
ThibaultLacharme/tddc_pde_solver
c735ff4aff8a9cba33ed86c59b1fcd569745b74f
[ "BSD-3-Clause" ]
null
null
null
Payoffs.cpp
ThibaultLacharme/tddc_pde_solver
c735ff4aff8a9cba33ed86c59b1fcd569745b74f
[ "BSD-3-Clause" ]
null
null
null
#include "Payoffs.hpp" #include <algorithm> namespace dauphine { Payoffs::Payoffs() { } // For other products add the corresponding function at maturity, if there are more arguments than the spot and strike adjust the function in Boundaries too double Payoffs::call(double spot, double strike) ...
22.782609
160
0.627863
7f0baa544b7b060deb320c8cf061d5094f8be324
1,026
cpp
C++
src/tools/character_padding.cpp
bidfx/bidfx-api-cpp
9f178178a90355f57477f27277f470c910263696
[ "Apache-2.0" ]
5
2020-06-13T08:26:53.000Z
2022-02-25T19:32:55.000Z
src/tools/character_padding.cpp
bidfx/bidfx-api-cpp
9f178178a90355f57477f27277f470c910263696
[ "Apache-2.0" ]
2
2020-03-08T16:07:46.000Z
2020-04-15T08:26:08.000Z
src/tools/character_padding.cpp
bidfx/bidfx-api-cpp
9f178178a90355f57477f27277f470c910263696
[ "Apache-2.0" ]
1
2020-06-13T10:52:46.000Z
2020-06-13T10:52:46.000Z
/** Copyright 2019 BidFX Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
27
117
0.703704
7f17e6c64789dd102403d3119f4f4374d892b6c0
250
cpp
C++
Programs/14 Recursion/basics/power.cpp
Lord-Lava/DSA-CPP-Apna-College
077350c2aa900bb0cdb137ece2b95be58ccd76a8
[ "MIT" ]
5
2021-04-04T18:39:14.000Z
2021-12-18T09:31:55.000Z
Programs/14 Recursion/basics/power.cpp
Lord-Lava/DSA-CPP-Apna-College
077350c2aa900bb0cdb137ece2b95be58ccd76a8
[ "MIT" ]
null
null
null
Programs/14 Recursion/basics/power.cpp
Lord-Lava/DSA-CPP-Apna-College
077350c2aa900bb0cdb137ece2b95be58ccd76a8
[ "MIT" ]
1
2021-09-26T11:01:26.000Z
2021-09-26T11:01:26.000Z
#include<iostream> using namespace std; int power(int n, int p){ if(p==0){ return 1; } int prevPower= power(n,p-1); return n*prevPower; } int main(){ int n,p; cin>>n>>p; cout<<power(n,p)<<endl; return 0; }
12.5
32
0.536
7f18fbfcc1328db12e9a61606cc699f7a6e45aa8
1,909
cpp
C++
DirectXGame/DirectXCore/Sprite.cpp
nguyenlamlll/DirectX-11-Game
560ae6d9b44cef7882c5fc93192160fae7da791d
[ "MIT" ]
2
2018-09-13T06:15:57.000Z
2021-09-08T02:32:11.000Z
DirectXGame/DirectXCore/Sprite.cpp
nguyenlamlll/DirectX-11-Game
560ae6d9b44cef7882c5fc93192160fae7da791d
[ "MIT" ]
17
2018-09-11T09:37:22.000Z
2018-12-04T07:56:49.000Z
DirectXGame/DirectXCore/Sprite.cpp
nguyenlamlll/DirectX-11-Game
560ae6d9b44cef7882c5fc93192160fae7da791d
[ "MIT" ]
1
2021-11-29T05:12:48.000Z
2021-11-29T05:12:48.000Z
#include "stdafx.h" #include "Sprite.h" using Microsoft::WRL::ComPtr; using namespace DirectXCore; Sprite::Sprite() { } Sprite::Sprite(DirectXCore::DeviceResources * _deviceResource, const wchar_t * _charPath, float _scale) { //pivot.x = float(spriteDesc.Width / 2); pivot.x = 0; //pivot.y = float(spriteDesc.Heigh...
26.887324
173
0.698271
7f191646403c7c058cf767d25184395b8d0a7d88
6,270
cpp
C++
build/cpp/src/verb/core/SurfacePoint.cpp
harmanpa/verb
f18a6db8d9e47b65d7cbf2d954a9dc42f611abd9
[ "MIT" ]
null
null
null
build/cpp/src/verb/core/SurfacePoint.cpp
harmanpa/verb
f18a6db8d9e47b65d7cbf2d954a9dc42f611abd9
[ "MIT" ]
null
null
null
build/cpp/src/verb/core/SurfacePoint.cpp
harmanpa/verb
f18a6db8d9e47b65d7cbf2d954a9dc42f611abd9
[ "MIT" ]
null
null
null
// Generated by Haxe 4.1.4 #include <hxcpp.h> #ifndef INCLUDED_verb_core_SurfacePoint #include <verb/core/SurfacePoint.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_959611cb896c5e6e_146_new,"verb.core.SurfacePoint","new",0xb12daa55,"verb.core.SurfacePoint.new","verb/core/Intersections.hx",146,0x2e2a0454) HX_LOCAL_STACK_FRA...
35.423729
178
0.713397
7f19a37e3cf8de7fe7a3b62fee806693ff9a9037
7,847
cpp
C++
src/chainparams.cpp
ohtayoshida/lux-coin-qt-update
e7827cc1d72ce686df29a29c05f2e891d9f75731
[ "MIT" ]
null
null
null
src/chainparams.cpp
ohtayoshida/lux-coin-qt-update
e7827cc1d72ce686df29a29c05f2e891d9f75731
[ "MIT" ]
null
null
null
src/chainparams.cpp
ohtayoshida/lux-coin-qt-update
e7827cc1d72ce686df29a29c05f2e891d9f75731
[ "MIT" ]
null
null
null
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Masternode initilized & modified by 216k155. Used at your own risk. #include "assert...
40.448454
198
0.676309
7f1be9275d460561032e326da3d1e606d6dc1290
967
cpp
C++
src/Calibrate.cpp
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
src/Calibrate.cpp
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
src/Calibrate.cpp
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
#include <Zivid/HandEye/Calibrate.h> #include <ZividPython/Calibrate.h> #include <ZividPython/CalibrationResidual.h> #include <ZividPython/Matrix.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> namespace py = pybind11; namespace ZividPython { void wrapClass(pybind11::class_<Zivid::HandEye::Calibrati...
33.344828
113
0.68666
7f1e039ff387c51c40d914d25c573aef36a51a2b
24,259
cpp
C++
Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
51
2020-12-26T18:17:16.000Z
2022-03-15T04:29:35.000Z
Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
null
null
null
Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
4
2020-12-28T07:24:39.000Z
2021-12-29T12:09:37.000Z
// // FILE NAME: CQCIGKit_DriverClient.cpp // // AUTHOR: Dean Roddey // // CREATED: 11/16/2001 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://o...
30.668774
93
0.513294
7f205320f9c7145eca5fbd3fc58c41693d413567
20,948
cpp
C++
libraries/plugins/chain/chain_plugin_full.cpp
SophiaTX/SophiaTx-Blockchain
c964691c020962ad1aba8263c0d8a78a9fa27e45
[ "MIT" ]
8
2018-07-25T20:42:43.000Z
2019-03-11T03:14:09.000Z
libraries/plugins/chain/chain_plugin_full.cpp
SophiaTX/SophiaTx-Blockchain
c964691c020962ad1aba8263c0d8a78a9fa27e45
[ "MIT" ]
13
2018-07-25T17:41:28.000Z
2019-01-25T13:38:11.000Z
libraries/plugins/chain/chain_plugin_full.cpp
SophiaTX/SophiaTx-Blockchain
c964691c020962ad1aba8263c0d8a78a9fa27e45
[ "MIT" ]
11
2018-07-25T14:34:13.000Z
2019-05-03T13:29:37.000Z
#include <sophiatx/chain/database/database_exceptions.hpp> #include <sophiatx/chain/genesis_state.hpp> #include <sophiatx/plugins/chain/chain_plugin_full.hpp> #include <sophiatx/chain/database/database.hpp> #include <sophiatx/utilities/benchmark_dumper.hpp> #include <sophiatx/chain/get_config.hpp> #include <sophiat...
36.880282
271
0.634142
7f2672a9bfddd5ff0a2e8882dce80949e5b10ef8
3,419
cc
C++
Unittests/DictTest.cc
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
5
2020-06-30T05:06:40.000Z
2021-05-24T08:38:33.000Z
Unittests/DictTest.cc
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
null
null
null
Unittests/DictTest.cc
ianloic/unladen-swallow
28148f4ddbb3d519042de1f9fc9f1356fdd31e31
[ "PSF-2.0" ]
2
2015-10-01T18:28:20.000Z
2020-09-09T16:25:27.000Z
#include "Python.h" #include "gtest/gtest.h" class DictWatcherTest : public testing::Test { protected: DictWatcherTest() { Py_NoSiteFlag = true; Py_Initialize(); this->globals_ = PyDict_New(); this->builtins_ = PyDict_New(); } ~DictWatcherTest() { Py_DECREF(t...
29.222222
79
0.687335
7f26a584009c9e5e484626852f8a51d27adebacd
958
cpp
C++
C++/problem0922.cpp
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
C++/problem0922.cpp
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
C++/problem0922.cpp
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <vector> #include <map> #include <set> #include <algorithm> #include <cmath> #include <ctime> #include <cstdlib> #include <windows.h> #include <string> #include <numeric> using namespace std; class Solution { public: vector<int> sortArrayByParityII(vector<int>& A) {...
19.16
53
0.44572
7f2b8949ecb55a42e2a90caccb8bb55269b7af1e
2,486
cpp
C++
test/channel/main_channel_udp1.cpp
oudream/ccxx
7746ef93b48bf44157048a43c4878152fe6a4d2b
[ "MIT" ]
39
2015-12-09T09:28:46.000Z
2021-11-16T12:57:25.000Z
test/channel/main_channel_udp1.cpp
oudream/ccxx
7746ef93b48bf44157048a43c4878152fe6a4d2b
[ "MIT" ]
1
2020-10-17T02:23:42.000Z
2020-10-17T02:23:42.000Z
test/channel/main_channel_udp1.cpp
oudream/ccxx
7746ef93b48bf44157048a43c4878152fe6a4d2b
[ "MIT" ]
8
2018-05-29T12:48:13.000Z
2022-02-27T01:45:57.000Z
/* cxtest_channel_udp1 -lip 10.32.50.57 -lport 5555 -rip 10.32.50.57 -rport 5556 cxtest_channel_udp1 -lip 10.32.50.57 -lport 5556 -rip 10.32.50.57 -rport 5555 /**/ #include <ccxx/ccxx.h> using namespace std; class UdpSubject : public CxIChannelSubject { public: UdpSubject(){ mRecvTotalTimes = 0; ...
28.906977
153
0.662912
7f2ce710398c6aa5fc53cac0665671b65a6e8174
1,648
cc
C++
src/Gateway.cc
Swair/Function-Distributed-Network
55c2c9caa2b6de6c06c99009b2063703601e7956
[ "Apache-2.0" ]
null
null
null
src/Gateway.cc
Swair/Function-Distributed-Network
55c2c9caa2b6de6c06c99009b2063703601e7956
[ "Apache-2.0" ]
null
null
null
src/Gateway.cc
Swair/Function-Distributed-Network
55c2c9caa2b6de6c06c99009b2063703601e7956
[ "Apache-2.0" ]
null
null
null
#include "Gateway.h" Gateway& Gateway::getInstance() { static Gateway gw; return gw; } Gateway::Gateway() {} Gateway::~Gateway() {} void Gateway::reg(const std::string& method, std::function<void(std::string&, const std::string&)> func) { routeTable_[method] = func; } void Gateway::route(std::string& ...
24.969697
105
0.508495
b526587f2318c6c9d871d46e423e6b483563a1b5
326
cpp
C++
Dataset/Leetcode/test/110/451.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/110/451.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/110/451.cpp
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution { public: bool flag=true; bool XXX(TreeNode* root) { int l=dfs(root); return flag; } int dfs(TreeNode* root){ if(root==NULL) return 0; int l=dfs(root->left); int r=dfs(root->right); if(abs(l-r)>1) flag=false; return max(l,r)+1; ...
19.176471
35
0.509202
b5290f40d62908ad95681d974cbce979eb8641f5
252
cpp
C++
Game/Client/WXClient/Network/PacketHandler/GCMySelfEquipmentListHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/GCDetailEquipmentListHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/GCDetailEquipmentListHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "GCDetailEquipmentList.h" uint GCDetailEquipmentListHandler :: Execute( GCDetailEquipmentList* pPacket, Player* pPlayer ) { __ENTER_FUNCTION return PACKET_EXE_CONTINUE ; __LEAVE_FUNCTION return PACKET_EXE_ERROR ; }
16.8
96
0.801587
b529f379479b6a73c191611f277d3980470cabd8
1,091
cpp
C++
usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp
juneharold/USACO
a96b54f68e7247c61044f3c0d9e7260952c508e2
[ "MIT" ]
null
null
null
usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp
juneharold/USACO
a96b54f68e7247c61044f3c0d9e7260952c508e2
[ "MIT" ]
null
null
null
usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp
juneharold/USACO
a96b54f68e7247c61044f3c0d9e7260952c508e2
[ "MIT" ]
null
null
null
// 롤 케이크 #include <iostream> #include <algorithm> #include <string> using namespace std; int main() { int L, N; cin >> L; cin >> N; int ranges[2000] = {}; for (int i=0; i<2*N; i++) { cin >> ranges[i]; } // number of cake int max_expected=0; int max_received=0; // nu...
20.584906
49
0.463795
b52d3581cedf7fffe7a94047630d9129e71c264c
137
hh
C++
Include/Luce/AI/Configuration.hh
kmc7468/luce
6f71407f250dbc0428ceba33aeef345cc601db34
[ "MIT" ]
23
2017-02-09T11:48:01.000Z
2017-04-08T10:19:21.000Z
Include/Luce/AI/Configuration.hh
kmc7468/luce
6f71407f250dbc0428ceba33aeef345cc601db34
[ "MIT" ]
null
null
null
Include/Luce/AI/Configuration.hh
kmc7468/luce
6f71407f250dbc0428ceba33aeef345cc601db34
[ "MIT" ]
null
null
null
#ifndef LUCE_HEADER_AI_CONFIGURATION_HH #define LUCE_HEADER_AI_CONFIGURATION_HH #include <Luce/AI/Configuration/ComputeByCpu.hh> #endif
22.833333
48
0.868613
b52e9446ef1467cbc1e66fbabf752e1a26e6ef91
4,119
cpp
C++
Tests/BasicsTest/TestAVX2.cpp
mfkiwl/RayRenderer-dp4a
b57696b23c795f0ca1199e8f009b7a12b88da13a
[ "MIT" ]
18
2018-10-22T10:30:20.000Z
2021-12-10T06:29:39.000Z
Tests/BasicsTest/TestAVX2.cpp
mfkiwl/RayRenderer-dp4a
b57696b23c795f0ca1199e8f009b7a12b88da13a
[ "MIT" ]
null
null
null
Tests/BasicsTest/TestAVX2.cpp
mfkiwl/RayRenderer-dp4a
b57696b23c795f0ca1199e8f009b7a12b88da13a
[ "MIT" ]
4
2019-06-04T14:04:43.000Z
2021-07-16T01:41:48.000Z
#include "pch.h" #if COMMON_COMPILER_GCC # pragma GCC push_options # pragma GCC target("avx2") #elif COMMON_COMPILER_CLANG # pragma clang attribute push (__attribute__((target("avx2"))), apply_to=function) #endif namespace avx2 { using namespace common; #define COMMON_SIMD_LV 200 #include "common/simd/SIMD.hpp"...
48.458824
152
0.70017
b531574b7fbbf60c47356dc23f1ef5ad56585873
5,537
cpp
C++
src/TowerEntity.cpp
Smokey1105/Strife.SingleplayerDemo
586865f66e7b08a6e16385fe400c3dd2fe886489
[ "NCSA" ]
null
null
null
src/TowerEntity.cpp
Smokey1105/Strife.SingleplayerDemo
586865f66e7b08a6e16385fe400c3dd2fe886489
[ "NCSA" ]
null
null
null
src/TowerEntity.cpp
Smokey1105/Strife.SingleplayerDemo
586865f66e7b08a6e16385fe400c3dd2fe886489
[ "NCSA" ]
null
null
null
#include "TowerEntity.hpp" #include "Engine.hpp" #include "PlayerEntity.hpp" #include "FireballEntity.hpp" #include "CastleEntity.hpp" #include "ObstacleComponent.hpp" #include "Components/RigidBodyComponent.hpp" #include "Components/SpriteComponent.hpp" #include "Physics/PathFinding.hpp" #include "Net/ReplicationMana...
25.753488
110
0.609536
b5367526a850ce69445f5e2e3ae88b3cc0395ba2
444
cpp
C++
partners_api/ads/google_ads.cpp
vicpopov/omim
664b458998fb0f2405f68ae830c2798e027b2dcc
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
partners_api/ads/google_ads.cpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
partners_api/ads/google_ads.cpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#include "partners_api/ads/google_ads.hpp" namespace { #if defined(OMIM_OS_IPHONE) auto const kSearchbannerId = "mobile-app-mapsme"; #elif defined(OMIM_OS_ANDROID) auto const kSearchbannerId = "mobile-app-mapsme"; #else auto const kSearchbannerId = "dummy"; #endif } // namespace namespace ads { std::string Goo...
17.076923
51
0.734234
b5400e1794ee4d2bbfcf0b5fba231f428da08d3b
4,401
cpp
C++
ilwiscoreui/models/workspacemodel.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
ilwiscoreui/models/workspacemodel.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
ilwiscoreui/models/workspacemodel.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
#include <QSqlQuery> #include <QSqlRecord> #include <QSqlError> #include "kernel.h" #include "ilwiscontext.h" #include "workspacemodel.h" WorkSpaceModel::WorkSpaceModel(const QString &name, QObject *parent) : CatalogModel( Ilwis::Resource("ilwis://internalcatalog/workspaces/" + name,itWORKSPACE),parent) { } WorkS...
32.843284
134
0.601
b540a7da19f87979c62edb01e97ca03fe259f786
4,445
cc
C++
gnuradio-3.7.13.4/gr-blocks/lib/udp_sink_impl.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-blocks/lib/udp_sink_impl.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-blocks/lib/udp_sink_impl.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
/* -*- c++ -*- */ /* * Copyright 2007-2010,2013 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at y...
29.633333
99
0.59775
b540c007a1b8eae68ab5d008e6367ee34bc0f2f1
874
cpp
C++
tests/test_postgres.cpp
shakfu/prolog
9d6621e3e723b0bd899bd963fe4a4125cf57671c
[ "Unlicense" ]
null
null
null
tests/test_postgres.cpp
shakfu/prolog
9d6621e3e723b0bd899bd963fe4a4125cf57671c
[ "Unlicense" ]
null
null
null
tests/test_postgres.cpp
shakfu/prolog
9d6621e3e723b0bd899bd963fe4a4125cf57671c
[ "Unlicense" ]
null
null
null
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include <iostream> #include <pqxx/pqxx> #include "doctest.h" int test_db() { // Connect to the database. pqxx::connection c{"postgresql://sa@localhost/sa"}; std::cout << "Connected to " << c.dbname() << '\n'; // Start a transaction. pqxx::work W{c}; ...
25.705882
59
0.606407
b5411852752a697187ec98f85ca8f93b27502af6
297
cpp
C++
Demos3/BasicDemoConsole/main.cpp
jackoalan/bullet3
4276b2f06aa652a00b798666ae68013fc6c950e3
[ "Zlib" ]
5
2015-07-28T09:07:57.000Z
2020-09-24T16:49:45.000Z
Demos3/BasicDemoConsole/main.cpp
jackoalan/bullet3
4276b2f06aa652a00b798666ae68013fc6c950e3
[ "Zlib" ]
null
null
null
Demos3/BasicDemoConsole/main.cpp
jackoalan/bullet3
4276b2f06aa652a00b798666ae68013fc6c950e3
[ "Zlib" ]
null
null
null
#include <stdio.h> #include "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h" int main(int argc, char* argv[]) { BasicDemoPhysicsSetup physicsSetup; GraphicsPhysicsBridge br; physicsSetup.initPhysics(br); physicsSetup.stepSimulation(1./60.); physicsSetup.exitPhysics(); printf("hello\n"); }
21.214286
56
0.750842
b542c209363518732ebf5fa53cb22732a7b7bb82
521
cpp
C++
oop/hw4/main.cpp
vMihtarska/fmi
3a3413ff410648ea9dcc00ba394dc216b1ba5df3
[ "MIT" ]
null
null
null
oop/hw4/main.cpp
vMihtarska/fmi
3a3413ff410648ea9dcc00ba394dc216b1ba5df3
[ "MIT" ]
null
null
null
oop/hw4/main.cpp
vMihtarska/fmi
3a3413ff410648ea9dcc00ba394dc216b1ba5df3
[ "MIT" ]
1
2016-01-20T19:02:10.000Z
2016-01-20T19:02:10.000Z
#include <iostream> #include "Employee.h" #include "Specialist.h" int main() { Employee g; g.SetName("VASI"); g.SetAddress("JK ZAPAD"); g.SetEGN("9508110056"); g.SetDepartment("IT"); g.SetSalary(100); g.Print(); Employee c(g); c.Print(); Employee m; m = g; m.Print(); Specialist x; x.SetName("VASI"); x.S...
14.885714
28
0.635317
b5471770a3d009f4980cce0666488fe6b57f0b3d
1,080
hpp
C++
include/gui/slider.hpp
MartinKondor/Rule
1e5b7f611a2252112d091f27952fa5180e5fad19
[ "BSD-3-Clause" ]
null
null
null
include/gui/slider.hpp
MartinKondor/Rule
1e5b7f611a2252112d091f27952fa5180e5fad19
[ "BSD-3-Clause" ]
null
null
null
include/gui/slider.hpp
MartinKondor/Rule
1e5b7f611a2252112d091f27952fa5180e5fad19
[ "BSD-3-Clause" ]
null
null
null
#ifndef SLIDER_HPP #define SLIDER_HPP #include <SFML/Graphics.hpp> #include "config.hpp" #include "utils.hpp" extern Config CONFIG; class Slider { /** A Slider. Example usage: ``` Slider slider(100, 100, gameFont); slider.create(20, 450); slider.setSliderValue(235); ... slider...
20.377358
109
0.675926
b551b82b7cfd1c3bd1322d08423e3d745eff3f89
1,284
hpp
C++
libraries/chain/include/graphene/chain/is_authorized_asset.hpp
EDCBlockchain/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
12
2019-10-31T13:24:21.000Z
2021-12-29T22:02:22.000Z
libraries/chain/include/graphene/chain/is_authorized_asset.hpp
DONOVA28/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
null
null
null
libraries/chain/include/graphene/chain/is_authorized_asset.hpp
DONOVA28/blockchain
41c74b981658d79d770b075191cfb14faeb84dab
[ "MIT" ]
11
2019-07-24T12:46:29.000Z
2021-11-27T04:41:48.000Z
// see LICENSE.txt #pragma once #include <map> #include <typeindex> #include <typeinfo> namespace graphene { namespace chain { class account_object; class asset_object; class database; namespace detail { bool _is_authorized_asset(const database& d, const account_object& acct, const asset_object& asset_obj); } // ...
21.04918
109
0.707165
b551f72109fe10ceb9b8a4495fa3bdc20b116af0
181
cpp
C++
apps/src/videostitch-studio-gui/src/videostitcher/globalpostprodcontroller.cpp
tlalexander/stitchEm
cdff821ad2c500703e6cb237ec61139fce7bf11c
[ "MIT" ]
182
2019-04-19T12:38:30.000Z
2022-03-20T16:48:20.000Z
apps/src/videostitch-studio-gui/src/videostitcher/globalpostprodcontroller.cpp
doymcc/stitchEm
20693a55fa522d7a196b92635e7a82df9917c2e2
[ "MIT" ]
107
2019-04-23T10:49:35.000Z
2022-03-02T18:12:28.000Z
apps/src/videostitch-studio-gui/src/videostitcher/globalpostprodcontroller.cpp
doymcc/stitchEm
20693a55fa522d7a196b92635e7a82df9917c2e2
[ "MIT" ]
59
2019-06-04T11:27:25.000Z
2022-03-17T23:49:49.000Z
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "globalpostprodcontroller.hpp" template class GlobalControllerImpl<PostProdStitcherController>;
25.857143
64
0.812155
b5540a76ef968039f9bb0b1b4f004503836c27c4
1,127
hpp
C++
main_server/src/entities/parking_slot/parking_slot.hpp
GrassoMichele/uPark
d96310c165c3efa9b0251c51ababe06639c4570a
[ "MIT" ]
null
null
null
main_server/src/entities/parking_slot/parking_slot.hpp
GrassoMichele/uPark
d96310c165c3efa9b0251c51ababe06639c4570a
[ "MIT" ]
null
null
null
main_server/src/entities/parking_slot/parking_slot.hpp
GrassoMichele/uPark
d96310c165c3efa9b0251c51ababe06639c4570a
[ "MIT" ]
null
null
null
#ifndef PARKING_SLOT #define PARKING_SLOT #include <iostream> class ParkingSlot{ private: int id; int number; int id_parking_lot; int id_vehicle_type; bool reserved_disability; public: ParkingSlot(); ParkingSlot(int id); ParkingSlot(int id, int ...
26.209302
107
0.628217
b557c25ffa9d5306eaaaeb39bee702d02cacda66
6,834
hpp
C++
include/pkmn/types/class_with_attributes.hpp
ncorgan/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
4
2017-06-10T13:21:44.000Z
2019-10-30T21:20:19.000Z
include/pkmn/types/class_with_attributes.hpp
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
12
2017-04-05T11:13:34.000Z
2018-06-03T14:31:03.000Z
include/pkmn/types/class_with_attributes.hpp
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
2
2019-01-22T21:02:31.000Z
2019-10-30T21:20:20.000Z
/* * Copyright (c) 2017-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #ifndef PKMN_CLASS_WITH_ATTRIBUTES_HPP #define PKMN_CLASS_WITH_ATTRIBUTES_HPP #include <pkmn/types/attribute_engine.h...
39.275862
90
0.567603
b55996a5dcbe09175c97dccc3a46f70f57def379
1,491
cpp
C++
cpp/test/test_prefix128.cpp
0xflotus/ipaddress
0d53ff453ec901e408ef28435802318282e43ccc
[ "MIT" ]
11
2017-09-28T09:14:28.000Z
2021-11-01T07:24:41.000Z
cpp/test/test_prefix128.cpp
0xflotus/ipaddress
0d53ff453ec901e408ef28435802318282e43ccc
[ "MIT" ]
1
2016-08-31T06:55:54.000Z
2016-08-31T06:55:54.000Z
cpp/test/test_prefix128.cpp
0xflotus/ipaddress
0d53ff453ec901e408ef28435802318282e43ccc
[ "MIT" ]
4
2016-08-31T06:45:32.000Z
2021-05-13T10:31:03.000Z
#include <cascara/cascara.hpp> using namespace cascara; #include "../src/prefix128.hpp" #include "../src/crunchy.hpp" using namespace ipaddress; class Prefix128Test { public: std::vector<std::pair<size_t, Crunchy>> u128_hash; }; Prefix128Test setup() { Prefix128Test p128t; p128t.u128...
29.235294
109
0.60161
b559f6970bb54e4e750405f64b34fb16553d1021
8,652
cpp
C++
Socket/IncomingMessageHandler.cpp
Kaptnik/CIS-687-RemoteTestHarness
3a1466d4b71cef7bee2791020a2902d3e658fb64
[ "MIT" ]
null
null
null
Socket/IncomingMessageHandler.cpp
Kaptnik/CIS-687-RemoteTestHarness
3a1466d4b71cef7bee2791020a2902d3e658fb64
[ "MIT" ]
null
null
null
Socket/IncomingMessageHandler.cpp
Kaptnik/CIS-687-RemoteTestHarness
3a1466d4b71cef7bee2791020a2902d3e658fb64
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////// // IncomingMessageHandler.cpp - A class that handles incoming messages // // ver 1.0 // // Karthik Umashankar, CSE687 - Object Oriented Design, Summer 2018 // //////////////////////////////////////////////////////////...
32.526316
157
0.654877
b55bbe41b23916a348b6e2d5146b9e5a83197e9d
8,360
cpp
C++
Engine/Source/Runtime/ApplicationCore/Private/Mac/MacConsoleOutputDevice.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/Runtime/ApplicationCore/Private/Mac/MacConsoleOutputDevice.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/Runtime/ApplicationCore/Private/Mac/MacConsoleOutputDevice.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "MacConsoleOutputDevice.h" #include "Misc/App.h" #include "Misc/CoreDelegates.h" #include "Misc/ConfigCacheIni.h" #include "MacApplication.h" #include "MacPlatformApplicationMisc.h" #include "Misc/OutputDeviceHelper.h" #include "Misc/ScopeLock.h" #i...
29.75089
180
0.71244
b55be79846204fcc7725da9029f1c2ecec9edf9a
1,029
cpp
C++
C++/dnf_sort.cpp
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
C++/dnf_sort.cpp
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
C++/dnf_sort.cpp
ayushyado/HACKTOBERFEST2021-2
b63d568fd7f33023ca0b0dbd91325444c70c4d10
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
#include <bits/stdc++.h> using namespace std; //this sorting algorithm is for sorting 0s,1s and 2s //we have to traverse the whole array or vector //so the time complexity becomes O(n) void dnfsort(vector<int>&v){ int n = v.size(); //here we will be having three pointers //forb iterating through the v...
19.788462
52
0.47619
b55f75814e6ddfa4e911f9b69ec6adf31340e725
7,949
cpp
C++
src/MD5/MD5.cpp
mykhailok01/RS5_Implementation
4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1
[ "MIT" ]
null
null
null
src/MD5/MD5.cpp
mykhailok01/RS5_Implementation
4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1
[ "MIT" ]
null
null
null
src/MD5/MD5.cpp
mykhailok01/RS5_Implementation
4fd3e00ae74c4c8d143112e1a9bf01cb423b0cd1
[ "MIT" ]
null
null
null
#include "MD5.hpp" #include <climits> #include <cassert> #include <sstream> #include <vector> #include <iostream> #include <limits> #include <bitset> using Chunk = std::array<std::uint32_t, 16>;// 512 bit constexpr size_t CHUNK_SIZE = sizeof(Chunk::value_type) * 16; constexpr auto BITS_CHUNK_SIZE = static_cast<std::uin...
34.71179
118
0.602592
b55fbdbfacd906739e63e2851b93ebfc455b8733
1,443
cpp
C++
cpp/opendnp3/src/opendnp3/objects/Group51.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/objects/Group51.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/objects/Group51.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
3
2016-07-13T18:54:13.000Z
2021-04-12T13:30:39.000Z
// // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | | // | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_| // |_| \_|\___/ |______\__,_|_|\...
24.05
77
0.559252
b5623319810028e4069c7445e0129611ab599b5a
11,007
hpp
C++
src/core/utils/maybe.hpp
lowkey42/BanishedBlaze
71e66f444a84bea1eca3639de3f3ff1f79e385d1
[ "MIT" ]
null
null
null
src/core/utils/maybe.hpp
lowkey42/BanishedBlaze
71e66f444a84bea1eca3639de3f3ff1f79e385d1
[ "MIT" ]
null
null
null
src/core/utils/maybe.hpp
lowkey42/BanishedBlaze
71e66f444a84bea1eca3639de3f3ff1f79e385d1
[ "MIT" ]
null
null
null
/** simple wrapper for optional values or references ************************* * * * Copyright (c) 2014 Florian Oetke * * This file is distributed under the MIT License * * ...
25.187643
123
0.600073
b5630a7c5a980b93057022c640b102796a94a44f
8,802
cpp
C++
src/mesh/store/nodestore.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
1
2021-09-16T10:15:50.000Z
2021-09-16T10:15:50.000Z
src/mesh/store/nodestore.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
null
null
null
src/mesh/store/nodestore.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
null
null
null
#include "store.h" #include "nodestore.h" #include "statisticsstore.h" #include "mesh/mesh.h" #include "esinfo/mpiinfo.h" #include "esinfo/meshinfo.h" #include "basis/containers/point.h" #include "basis/containers/serializededata.h" #include "basis/utilities/packing.h" using namespace mesio; NodeStore::NodeStore()...
27.592476
141
0.658828
b56965082b5113142dd9d4e0dc2e936303a05c20
2,054
hpp
C++
falcon/utility/temporary_set.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
2
2018-02-02T14:19:59.000Z
2018-05-13T02:48:24.000Z
falcon/utility/temporary_set.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
falcon/utility/temporary_set.hpp
jonathanpoelen/falcon
5b60a39787eedf15b801d83384193a05efd41a89
[ "MIT" ]
null
null
null
#ifndef FALCON_UTILITYTEMPORARY_SET_HPP #define FALCON_UTILITYTEMPORARY_SET_HPP #include <falcon/utility/move.hpp> #include <falcon/c++/noexcept.hpp> #include <falcon/c++/reference.hpp> #include <falcon/functional/operators.hpp> #if __cplusplus >= 201103L # include <type_traits> #endif namespace falcon { ///\brief M...
25.04878
97
0.74148
b56a3466b5195036e43924f472b337d6a6b914a6
4,071
hpp
C++
qubus/include/qubus/pattern/binary_operator.hpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
qubus/include/qubus/pattern/binary_operator.hpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
qubus/include/qubus/pattern/binary_operator.hpp
qubusproject/Qubus
0feb8d6df00459c5af402545dbe7c82ee3ec4b7c
[ "BSL-1.0" ]
null
null
null
#ifndef QUBUS_PATTERN_BINARY_OPERATOR_HPP #define QUBUS_PATTERN_BINARY_OPERATOR_HPP #include <qubus/IR/binary_operator_expr.hpp> #include <qubus/pattern/variable.hpp> #include <qubus/pattern/any.hpp> #include <qubus/pattern/value.hpp> #include <utility> #include <functional> namespace qubus { namespace pattern { te...
23.807018
103
0.688529
b56d896e4139c6fd4fa5337d66ec4dd83567bef5
3,142
hpp
C++
include/cppgit2/fetch.hpp
jhasse/cppgit2
7c069680bcfa70686053bc1f573524813c1f206f
[ "MIT" ]
84
2020-03-22T14:03:37.000Z
2022-01-04T05:51:55.000Z
include/cppgit2/fetch.hpp
jhasse/cppgit2
7c069680bcfa70686053bc1f573524813c1f206f
[ "MIT" ]
7
2020-03-27T21:36:13.000Z
2020-12-05T23:41:25.000Z
include/cppgit2/fetch.hpp
jhasse/cppgit2
7c069680bcfa70686053bc1f573524813c1f206f
[ "MIT" ]
18
2020-04-25T09:55:17.000Z
2022-03-06T23:20:43.000Z
#pragma once #include <cppgit2/libgit2_api.hpp> #include <cppgit2/proxy.hpp> #include <cppgit2/strarray.hpp> #include <git2.h> #include <string> #include <vector> namespace cppgit2 { class fetch : public libgit2_api { public: class options : public libgit2_api { public: options() : c_ptr_(nullptr) { aut...
29.364486
80
0.669955
b56f1995d8b993312a57a37084c760cfcd038b1c
740
cpp
C++
src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp
sereilly/MixedReality-SpectatorView
a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9
[ "MIT" ]
165
2019-06-19T18:41:20.000Z
2022-03-16T12:17:02.000Z
src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp
sereilly/MixedReality-SpectatorView
a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9
[ "MIT" ]
297
2019-06-18T19:01:43.000Z
2022-03-31T00:11:07.000Z
src/SpectatorView.Native/SpectatorView.WinRTExtensions/SpectatorView.WinRTExtensions.cpp
sereilly/MixedReality-SpectatorView
a4f58e25bbe6c002cbf7b134c4babe5e4d7bc9b9
[ "MIT" ]
108
2019-06-17T22:44:08.000Z
2022-03-18T05:44:57.000Z
#include "pch.h" #include "SpectatorView.WinRTExtensions.h" // Because Marshal.GetObjectForIUnknown does not work when using the .NET Native compiler with IInspectable // objects, this method allows managed code to explicitly specify a type for the marshaller to query for. // Example usage from managed code for marsh...
52.857143
125
0.797297
b56f2717aed76d154ee127ce312df2b746e5e23c
836
cpp
C++
POSAND.cpp
durgajaswanth/ADSA-Semester-Assignments
b95410c2d6ee874f331d1128c72b54c7defaa26e
[ "MIT" ]
null
null
null
POSAND.cpp
durgajaswanth/ADSA-Semester-Assignments
b95410c2d6ee874f331d1128c72b54c7defaa26e
[ "MIT" ]
null
null
null
POSAND.cpp
durgajaswanth/ADSA-Semester-Assignments
b95410c2d6ee874f331d1128c72b54c7defaa26e
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; typedef unsigned long long int ull; typedef long long int ll; #define FIO ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define mod 1000000007 int main() { FIO; int t; cin >> t; while(t--) { int n; cin>>n; if(n==1) { cout<<"1"<<endl; ...
15.481481
61
0.419856
b5704f6293dea12047ce0271d638fae94aac3a22
4,707
cc
C++
solver_bank.cc
frenebo/SOAX
c6aacd1ce9d919a205a712a4db8f0ab8a1ecacd1
[ "BSD-3-Clause" ]
8
2015-09-14T00:37:59.000Z
2020-12-30T22:47:34.000Z
solver_bank.cc
frenebo/SOAX
c6aacd1ce9d919a205a712a4db8f0ab8a1ecacd1
[ "BSD-3-Clause" ]
3
2015-05-14T15:48:50.000Z
2020-12-30T17:46:14.000Z
solver_bank.cc
frenebo/SOAX
c6aacd1ce9d919a205a712a4db8f0ab8a1ecacd1
[ "BSD-3-Clause" ]
9
2015-09-14T11:35:51.000Z
2021-12-14T23:38:47.000Z
/** * Copyright (c) 2015, Lehigh University * All rights reserved. * See COPYING for license. * * This file implements the solvers for linear system for SOAX. */ #include "./solver_bank.h" namespace soax { SolverBank::SolverBank() : alpha_(0.01), beta_(0.1), gamma_(2.0) {} SolverBank::~SolverBank() { this->...
31.172185
75
0.647546
b5722f716ca8c1cf400982c86e5c78912e13ed10
2,776
cpp
C++
src/ofxNode.cpp
lpestl/ofxGraphVisualization
218e67b2519eed5050f09f51e31260690fe4eacc
[ "MIT" ]
null
null
null
src/ofxNode.cpp
lpestl/ofxGraphVisualization
218e67b2519eed5050f09f51e31260690fe4eacc
[ "MIT" ]
null
null
null
src/ofxNode.cpp
lpestl/ofxGraphVisualization
218e67b2519eed5050f09f51e31260690fe4eacc
[ "MIT" ]
null
null
null
#include "ofxNode.h" #include <random> #include "ofxTweener.h" void ofxNode::setup(std::shared_ptr<ofRectangle> boundRect, std::shared_ptr<ofxTrueTypeFontUC> font) { captureFont_ = font; boundRect_ = boundRect; position_.set(ofRandom(boundRect_->getMinX(), boundRect_->getMaxX()), ofRandom(boundRect_->getMinY(), bo...
22.208
167
0.674352
b5729bc51e2f1e778024289cec93bc0e1651c438
639
cc
C++
system_info/system_info_cellular_network_desktop.cc
sstolinski/tizen-extensions-crosswalk
749cf5285bf1c9c04a4ce9f3880a744dcf221a69
[ "Apache-2.0", "BSD-3-Clause" ]
1
2016-11-21T21:21:19.000Z
2016-11-21T21:21:19.000Z
system_info/system_info_cellular_network_desktop.cc
sstolinski/tizen-extensions-crosswalk
749cf5285bf1c9c04a4ce9f3880a744dcf221a69
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
system_info/system_info_cellular_network_desktop.cc
sstolinski/tizen-extensions-crosswalk
749cf5285bf1c9c04a4ce9f3880a744dcf221a69
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "system_info/system_info_cellular_network.h" const std::string SysInfoCellularNetwork::name_ = "CELLULAR_NETWORK"; void SysInfoCellularNetwork...
37.588235
73
0.730829
b57442bec007ffc6c7f2cb92d52dffcd43e3c08c
2,574
hpp
C++
engine/include/ph/sdl/Mouse.hpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/include/ph/sdl/Mouse.hpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/include/ph/sdl/Mouse.hpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
// Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se) // For other contributors see Contributors.txt // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. //...
34.783784
99
0.628205
b57989b723bd246a6624c126ca4f3f2acf401fcf
1,125
cpp
C++
IGC/AdaptorOCL/cif/cif/import/cif_main.cpp
kurapov-peter/intel-graphics-compiler
98f7c938df0617912288385d243d6918135f0713
[ "Intel", "MIT" ]
440
2018-01-30T00:43:22.000Z
2022-03-24T17:28:37.000Z
IGC/AdaptorOCL/cif/cif/import/cif_main.cpp
kurapov-peter/intel-graphics-compiler
98f7c938df0617912288385d243d6918135f0713
[ "Intel", "MIT" ]
225
2018-02-02T03:10:47.000Z
2022-03-31T10:50:37.000Z
IGC/AdaptorOCL/cif/cif/import/cif_main.cpp
kurapov-peter/intel-graphics-compiler
98f7c938df0617912288385d243d6918135f0713
[ "Intel", "MIT" ]
138
2018-01-30T08:15:11.000Z
2022-03-22T14:16:39.000Z
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "cif/common/cif.h" #include "cif/import/library_api.h" #include "cif/impor...
30.405405
80
0.657778
b579e2c62547c27f052a384b37705400e2b6f822
507
hpp
C++
osc-seq-cpp/src/ui_elements/text_elt.hpp
Acaruso/osc-seq-cpp
14d2d5ce0fdad8d183e19781a279f9442db9c79f
[ "MIT" ]
null
null
null
osc-seq-cpp/src/ui_elements/text_elt.hpp
Acaruso/osc-seq-cpp
14d2d5ce0fdad8d183e19781a279f9442db9c79f
[ "MIT" ]
null
null
null
osc-seq-cpp/src/ui_elements/text_elt.hpp
Acaruso/osc-seq-cpp
14d2d5ce0fdad8d183e19781a279f9442db9c79f
[ "MIT" ]
null
null
null
#pragma once #include <functional> #include <string> #include <SDL.h> #include <SDL_ttf.h> #include "../store/coord.hpp" #include "../store/store.hpp" void text_elt(std::string text, Coord& coord, Store& store, int z_coord = 1); void text_elt(std::string text, FC_Font* font, Coord& coord, Store& store, int z_coord...
21.125
92
0.676529
b57ab05c3f3f7779b0c026b6c4d7c7243c79daf9
1,430
cpp
C++
uhk/acm5624.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
uhk/acm5624.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
uhk/acm5624.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; typedef long long ll; const int maxn = 15000 + 10; const int MAX = 100000000; struct node { int u; int v; ll w; }; node edge[maxn]; int N, M, cnt; ll res; int F[maxn]; bool comp(const node& a, const node& b) { return a.w < b.w; } void ad...
14.742268
39
0.479021
b58004d3527ba76f6a550c910f2c61f558ca6db7
4,151
cc
C++
UA_BlackJack_Server/DBServer/test/test_RedisService.cc
lsxk-jwj/gRPC_demo
4a772dbb68726f2f253e6023271fd7b629006853
[ "Apache-2.0" ]
null
null
null
UA_BlackJack_Server/DBServer/test/test_RedisService.cc
lsxk-jwj/gRPC_demo
4a772dbb68726f2f253e6023271fd7b629006853
[ "Apache-2.0" ]
null
null
null
UA_BlackJack_Server/DBServer/test/test_RedisService.cc
lsxk-jwj/gRPC_demo
4a772dbb68726f2f253e6023271fd7b629006853
[ "Apache-2.0" ]
null
null
null
#include "../RedisService.h" #include <gtest/gtest.h> #include <unordered_set> using ua_black_jack_server::data_base_server::RedisService; RedisService* service; const char* nickname = "owen1"; const int64_t uid = 2345; const char* password = "ASIKrgubhy"; int main() { acl::redis_client client("127.0.0.1:6379")...
30.977612
74
0.669718
b58022bbd3bbacc3c23f06777eb67a41f8982771
16,261
hpp
C++
core/src/cogs/io/net/telnet.hpp
cogmine/cogs
ef1c369a36a4f811704e0ced0493c3a6f8eca821
[ "MIT" ]
5
2019-02-08T15:59:14.000Z
2022-01-22T19:12:33.000Z
core/src/cogs/io/net/telnet.hpp
cogmine/cogs
ef1c369a36a4f811704e0ced0493c3a6f8eca821
[ "MIT" ]
1
2019-12-03T03:11:34.000Z
2019-12-03T03:11:34.000Z
core/src/cogs/io/net/telnet.hpp
cogmine/cogs
ef1c369a36a4f811704e0ced0493c3a6f8eca821
[ "MIT" ]
null
null
null
// // Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC // // Status: Good, NeedsTesting #ifndef COGS_HEADER_IO_NET_TELNET #define COGS_HEADER_IO_NET_TELNET #include "cogs/collections/container_queue.hpp" #include "cogs/collections/string.hpp" #include "cogs/env.hpp" #include...
27.939863
108
0.665703
b5869a966c858be6c802aeed55b10dba98576bc4
7,147
hpp
C++
tests/vex_tests.hpp
LIBHALA/hala
ff3950aef18b6cede48b45669be275b174f362a5
[ "BSD-3-Clause" ]
1
2021-02-25T16:21:42.000Z
2021-02-25T16:21:42.000Z
tests/vex_tests.hpp
mkstoyanov/hala
ff3950aef18b6cede48b45669be275b174f362a5
[ "BSD-3-Clause" ]
9
2020-09-03T23:31:22.000Z
2020-10-21T23:40:11.000Z
tests/vex_tests.hpp
mkstoyanov/hala
ff3950aef18b6cede48b45669be275b174f362a5
[ "BSD-3-Clause" ]
2
2020-03-03T17:39:37.000Z
2020-11-05T16:01:28.000Z
/* * Code Author: Miroslav Stoyanov * * Copyright (C) 2018 Miroslav Stoyanov * * This file is part of * Hardware Accelerated Linear Algebra (HALA) * */ #include "testing_common.hpp" template<typename T> T mabs2(T a){ return a * a; } template<typename T> std::complex<T> mabs2(std::complex<T> a){ T r = std:...
30.156118
118
0.577165
b58bd59f08a69d9871df8ccb02f407adcc23138c
5,461
cpp
C++
VISUALC/source/repos/Project10/main.cpp
giljr/c
b8058423f9feda06f05e67af617a1e2f5089f9e8
[ "MIT" ]
null
null
null
VISUALC/source/repos/Project10/main.cpp
giljr/c
b8058423f9feda06f05e67af617a1e2f5089f9e8
[ "MIT" ]
null
null
null
VISUALC/source/repos/Project10/main.cpp
giljr/c
b8058423f9feda06f05e67af617a1e2f5089f9e8
[ "MIT" ]
1
2021-06-29T08:26:40.000Z
2021-06-29T08:26:40.000Z
/* #Project 10 - Visual C++ 2019 - Exercise 1 - Homework - Snack Bar Description This program calculates how much each customer spends in a snack bar. In essence, this program initializes 3 matrices: p[1][7] - Price of the Snack bar Products q[7][1] - Quantity of each item asked t[1][7] - Total pric...
24.271111
90
0.478301
b590fd34fdece371bdfa3668cfc75fdf0b20a1a4
10,537
cpp
C++
MCUME/teensycastaway41/mem.cpp
DigiTorus86/Teensy-R4ge-Pro
d94a73f4f60957b3f28a27b7d6f74b01a61121fa
[ "MIT" ]
1
2022-01-13T02:00:52.000Z
2022-01-13T02:00:52.000Z
MCUME/teensycastaway41/mem.cpp
DigiTorus86/Teensy-R4ge-Pro
d94a73f4f60957b3f28a27b7d6f74b01a61121fa
[ "MIT" ]
null
null
null
MCUME/teensycastaway41/mem.cpp
DigiTorus86/Teensy-R4ge-Pro
d94a73f4f60957b3f28a27b7d6f74b01a61121fa
[ "MIT" ]
1
2022-01-11T12:55:50.000Z
2022-01-11T12:55:50.000Z
/* * Castaway * (C) 1994 - 2002 Martin Doering, Joachim Hoenig * * $File$ - memory read/write * * This file is distributed under the GPL, version 2 or at your * option any later version. See doc/license.txt for details. * * revision history * 23.05.2002 JH FAST1.0.1 code import: KR -> ANSI, restructuring * 30.05....
21.63655
86
0.692892
b59205c22fb73cbd3f92597ed12c7ff49f7d821c
730
cpp
C++
hw5/src/test_Country.cpp
Rytheking/OOP-refleming
db81b3efe7e99b00f84ca116287f6510c9e77493
[ "MIT" ]
null
null
null
hw5/src/test_Country.cpp
Rytheking/OOP-refleming
db81b3efe7e99b00f84ca116287f6510c9e77493
[ "MIT" ]
null
null
null
hw5/src/test_Country.cpp
Rytheking/OOP-refleming
db81b3efe7e99b00f84ca116287f6510c9e77493
[ "MIT" ]
null
null
null
#include "Country.h" #include "gtest/gtest.h" using namespace std; using namespace france; TEST(Country, Constructor) { float GDP = 314000000000; string continent("europe"); Country Country(GDP,continent); ASSERT_EQ(Country.GDP(),GDP); ASSERT_EQ(Country.continent(),continent); floa...
24.333333
47
0.664384
b594a909f22095675ae48fd2966ef8f1bb73403e
417
hpp
C++
libctrpf/include/CTRPluginFramework/System/Clock.hpp
MirayXS/Vapecord-ACNL-Plugin
247eb270dfe849eda325cc0c6adc5498d51de3ef
[ "MIT" ]
null
null
null
libctrpf/include/CTRPluginFramework/System/Clock.hpp
MirayXS/Vapecord-ACNL-Plugin
247eb270dfe849eda325cc0c6adc5498d51de3ef
[ "MIT" ]
null
null
null
libctrpf/include/CTRPluginFramework/System/Clock.hpp
MirayXS/Vapecord-ACNL-Plugin
247eb270dfe849eda325cc0c6adc5498d51de3ef
[ "MIT" ]
null
null
null
#ifndef CTRPLUGINFRAMREWORK_CLOCK_HPP #define CTRPLUGINFRAMREWORK_CLOCK_HPP #include "CTRPluginFramework/System/Time.hpp" namespace CTRPluginFramework { class Clock { public: Clock(void); Clock(Time time); Time GetElapsedTime(void) const; bool HasTimePassed(Time time...
18.954545
47
0.64988
b59d7c70c5f754130b39ba2fe863763260c080e6
992
hpp
C++
src/gui.hpp
MisterIsmed/PhotoStick
9383a0b86409f4c1f398eb3b913b32adb9762070
[ "MIT" ]
null
null
null
src/gui.hpp
MisterIsmed/PhotoStick
9383a0b86409f4c1f398eb3b913b32adb9762070
[ "MIT" ]
null
null
null
src/gui.hpp
MisterIsmed/PhotoStick
9383a0b86409f4c1f398eb3b913b32adb9762070
[ "MIT" ]
null
null
null
#ifndef GUI_HPP #define GUI_HPP #include "GUIslice.h" #include "GUIslice_drv.h" #include "GUIslice_ex.h" #include "SdFat.h" #include "util.hpp" enum Animation { ANIM_LIGHT, ANIM_BLINK, ANIM_MARQUEE, }; struct StickConfig { const char *fileToLoad; Animation animation; CRGB animationColor; uint8...
21.106383
75
0.721774
b59edf51969128b8b7bbed720ce96ae262d8068c
723
cpp
C++
learncpp/average.cpp
ignaciop/c-varios
c8ef033485efd19a01fbc43658be36473eb1d08d
[ "MIT" ]
null
null
null
learncpp/average.cpp
ignaciop/c-varios
c8ef033485efd19a01fbc43658be36473eb1d08d
[ "MIT" ]
null
null
null
learncpp/average.cpp
ignaciop/c-varios
c8ef033485efd19a01fbc43658be36473eb1d08d
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdint> class Average { private: int32_t m_total = 0; int8_t m_numbers = 0; public: Average() {} friend std::ostream& operator<<(std::ostream &out, const Average &average) { out << static_cast<double>(average.m_total) / average.m_numbers; return out; } Average& operato...
15.0625
77
0.562932
b27158435fe44061b11bd04087b322d571542b30
4,017
hpp
C++
ConvertTours/Data/Tour_File.hpp
kravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
2
2018-04-27T11:07:02.000Z
2020-04-24T06:53:21.000Z
ConvertTours/Data/Tour_File.hpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
ConvertTours/Data/Tour_File.hpp
idkravitz/transims4
ea0848bf3dc71440d54724bb3ecba3947b982215
[ "NASA-1.3" ]
null
null
null
//******************************************************** // Tour_File.hpp - Tour File Input/Output //******************************************************** #ifndef TOUR_FILE_HPP #define TOUR_FILE_HPP #include "Ext_Header.hpp" //--------------------------------------------------------- // Tour_File Class definit...
45.647727
99
0.620861
b2737351348c9f7cb0d5f94dba20b4ebc9c1a5dc
619
cpp
C++
src/RollerTile.cpp
witczenko/jackpot
e82ced83eb7b8fd72ef27680de06178f4ebc5edc
[ "MIT" ]
null
null
null
src/RollerTile.cpp
witczenko/jackpot
e82ced83eb7b8fd72ef27680de06178f4ebc5edc
[ "MIT" ]
null
null
null
src/RollerTile.cpp
witczenko/jackpot
e82ced83eb7b8fd72ef27680de06178f4ebc5edc
[ "MIT" ]
null
null
null
#include "RollerTile.h" RollerTile::RollerTile(int id, SDL_Rect destination, SDL_Renderer * renderer, SDL_Texture * texture): renderer(nullptr), texture(nullptr), destination({0,0,0,0}), id(NONE_ID) { this->destination = destination; this->renderer = renderer; this->texture = texture; this->id = id; } Rolle...
15.475
101
0.720517
b27440fa42855642dba8775c9d2c8585dcb325a5
5,999
hpp
C++
inc/goo_bitset.hpp
CrankOne/Goo
b909c72a5c87cd11d9c27d42b8332c1b5694cfe0
[ "MIT" ]
null
null
null
inc/goo_bitset.hpp
CrankOne/Goo
b909c72a5c87cd11d9c27d42b8332c1b5694cfe0
[ "MIT" ]
2
2017-12-28T10:09:43.000Z
2018-02-21T13:34:02.000Z
inc/goo_bitset.hpp
CrankOne/Goo
b909c72a5c87cd11d9c27d42b8332c1b5694cfe0
[ "MIT" ]
null
null
null
# include <cstdint> # include <cstddef> # include <ostream> # include <cassert> # include <cstring> # include <stdexcept> # include <bitset> # include <iostream> // XXX # pragma once namespace goo { /**@class Bitset * @brief A dynamic bitset implementaation. * * We want some nice features of bitsets which lengt...
34.28
84
0.643441
b27646379e7355c5d70bb819fe7d05851993e12d
951
cpp
C++
src/dev/memory_dev.cpp
RupertAvery/et3400
243c0ed407bee20f43e2f1c528f10cc6ffb12664
[ "BSD-3-Clause" ]
3
2020-11-06T22:30:32.000Z
2021-12-24T06:30:32.000Z
src/dev/memory_dev.cpp
RupertAvery/et3400
243c0ed407bee20f43e2f1c528f10cc6ffb12664
[ "BSD-3-Clause" ]
null
null
null
src/dev/memory_dev.cpp
RupertAvery/et3400
243c0ed407bee20f43e2f1c528f10cc6ffb12664
[ "BSD-3-Clause" ]
1
2021-12-24T06:30:38.000Z
2021-12-24T06:30:38.000Z
#include "stdlib.h" #include "memory_dev.h" #include "string.h" memory_device::memory_device(offs_t start, size_t size, bool readonly) { this->readonly = readonly; this->start = start; this->size = size; end = start + size - 1; memory = (uint8_t *)malloc(size); next = NULL; }; memory_device::~...
16.396552
70
0.648791