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
a0bae5f8e647819e442ecbad5781a963abf5a134
1,425
cpp
C++
src/devices/notes/sequencer.cpp
aalin/synthz0r
ecf35b3fec39020e46732a15874b66f07a3e48e9
[ "MIT" ]
1
2021-12-23T21:14:37.000Z
2021-12-23T21:14:37.000Z
src/devices/notes/sequencer.cpp
aalin/synthz0r
ecf35b3fec39020e46732a15874b66f07a3e48e9
[ "MIT" ]
null
null
null
src/devices/notes/sequencer.cpp
aalin/synthz0r
ecf35b3fec39020e46732a15874b66f07a3e48e9
[ "MIT" ]
null
null
null
#include "sequencer.hpp" #include <cmath> constexpr static uint8_t INITIAL_STEPS = 8; constexpr static uint8_t INITIAL_VELOCITY = 100; constexpr static uint8_t INITIAL_BPM = 50; constexpr static uint8_t INITIAL_RATE = 0; namespace Devices::Notes { Sequencer::Sequencer() : NoteDevice("Sequencer") { setupParameters(...
30.319149
145
0.643509
aalin
a0bf2b12eb2dd41aa78058679c9ccd6cbaa4d2b1
11,173
hpp
C++
customlistview.hpp
pengrui2009/qt-admin-template
89ce3a9cac20d0caee52db8df97d584cd2246c22
[ "MIT" ]
1
2022-03-31T09:24:13.000Z
2022-03-31T09:24:13.000Z
customlistview.hpp
ciyeer/qt-admin-template
54d8219c096f7c05c90a9dd33ebbd68cd4e6cf23
[ "MIT" ]
null
null
null
customlistview.hpp
ciyeer/qt-admin-template
54d8219c096f7c05c90a9dd33ebbd68cd4e6cf23
[ "MIT" ]
2
2021-04-20T10:58:45.000Z
2022-03-30T11:02:58.000Z
#ifndef CUSTOMNAVDELEGATE_H #define CUSTOMNAVDELEGATE_H #include <QListView> #include <QStyledItemDelegate> //节点展开模式 enum ExpendMode { ExpendMode_SingleClick = 0, //单击模式 ExpendMode_DoubleClick = 1, //双击模式 ExpendMode_NoClick = 2, //不可单击双击 }; class CustomListView; class NavDelegate : public QStyledIt...
37.243333
111
0.716907
pengrui2009
a0bfbd2c20128d11369bf5089da174dede576f8b
7,686
cpp
C++
Testing/Operations/albaOpEditNormalsTest.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
Testing/Operations/albaOpEditNormalsTest.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Testing/Operations/albaOpEditNormalsTest.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaOpEditNormalsTest Authors: Daniele Giunchi - Matteo Giacomoni Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY ...
32.43038
148
0.688134
IOR-BIC
a0c250f11d5d956cb3259d3d72f6161a7f00fd81
1,483
cpp
C++
TallerProgra/problemas10Marzo/B_NotShading.cpp
CaDe27/Co-digos
9eea1dbf6ed06fd115391328c0a2481029c83fc0
[ "MIT" ]
null
null
null
TallerProgra/problemas10Marzo/B_NotShading.cpp
CaDe27/Co-digos
9eea1dbf6ed06fd115391328c0a2481029c83fc0
[ "MIT" ]
null
null
null
TallerProgra/problemas10Marzo/B_NotShading.cpp
CaDe27/Co-digos
9eea1dbf6ed06fd115391328c0a2481029c83fc0
[ "MIT" ]
null
null
null
//note that if there is a black cell in the grid, you can make it black // in at most 2 operations // we just need to see if we can do it in 0, 1 or 2. // 0: operations, it needs to be black already // 1: is in the same column or row as another black cell // 2: theres it one black cell // we print the first of th...
23.539683
72
0.489548
CaDe27
a0c43e62763ff69ba8b66ddb40906873e7603d8d
16,539
cpp
C++
Raven.CppClient.Tests/CrudTest.cpp
maximburyak/ravendb-cpp-client
ab284d00bc659e8438c829f1b4a39aa78c31fa88
[ "MIT" ]
null
null
null
Raven.CppClient.Tests/CrudTest.cpp
maximburyak/ravendb-cpp-client
ab284d00bc659e8438c829f1b4a39aa78c31fa88
[ "MIT" ]
null
null
null
Raven.CppClient.Tests/CrudTest.cpp
maximburyak/ravendb-cpp-client
ab284d00bc659e8438c829f1b4a39aa78c31fa88
[ "MIT" ]
null
null
null
#include "pch.h" //#define __USE_FIDDLER__ #include "TestSuiteBase.h" #include "DocumentSession.h" #include "AdvancedSessionOperations.h" #include "RequestExecutor.h" #include "User.h" #include "Family.h" #include "NullableUser.h" #include "Arr.h" #include "Poc.h" namespace ravendb::client::tests::client { class Crud...
35.491416
127
0.698652
maximburyak
a0c4df6d4a4f0f86192fb526beffa7382aa7c5c8
1,843
hpp
C++
libs/boost_1_72_0/boost/qvm/detail/mat_assign.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
libs/boost_1_72_0/boost/qvm/detail/mat_assign.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
libs/boost_1_72_0/boost/qvm/detail/mat_assign.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef UUID_47136D2C385411E7BA27D3B681262D2E #define UUID_47136D2C385411E7BA27D3B681262D2E #in...
34.12963
79
0.640803
henrywarhurst
a0cbef7663edaf61a43eb7a7c94154bb6a57ff9f
446
cpp
C++
modules/animals/lib/animal-i.cpp
mitadel/sandbox
afbab121f7e0aea7c092ca0c0e9088f6f06ad180
[ "BSD-3-Clause" ]
2
2021-05-26T15:18:00.000Z
2022-03-24T06:25:39.000Z
modules/animals/lib/animal-i.cpp
mitadel/sandbox
afbab121f7e0aea7c092ca0c0e9088f6f06ad180
[ "BSD-3-Clause" ]
3
2021-04-24T08:53:25.000Z
2021-06-27T10:44:09.000Z
modules/animals/lib/animal-i.cpp
mitadel/sandbox
afbab121f7e0aea7c092ca0c0e9088f6f06ad180
[ "BSD-3-Clause" ]
null
null
null
// declare the module module; // declare the module and export it export module Animal; // we can have namespaces within modules namespace mito { // this class is exported, so it is visible outside, when we import this module export class Animal { public: Animal() {} ~Animal() {} ...
17.84
83
0.623318
mitadel
a0ce24a1d185a36abeeb2bfa290b55287a7aa77e
6,095
cpp
C++
lib/frtcpp/taskbase_status.cpp
jbarry510/me-405
f7f7d011794c23d751090de37fb47121d0e1811b
[ "MIT" ]
null
null
null
lib/frtcpp/taskbase_status.cpp
jbarry510/me-405
f7f7d011794c23d751090de37fb47121d0e1811b
[ "MIT" ]
null
null
null
lib/frtcpp/taskbase_status.cpp
jbarry510/me-405
f7f7d011794c23d751090de37fb47121d0e1811b
[ "MIT" ]
null
null
null
//************************************************************************************** /** \file taskbase_status.cpp * This file contains methods which print the status of each task, showing things * such as the task's name, its priority, and if enabled, stack usage and number of * times its loop has run....
42.326389
88
0.637244
jbarry510
a0cf910b2a7922e176c2c0a4d81f8da6ea3a3f73
48,175
cpp
C++
solid/frame/mprpc/src/mprpcrelayengine.cpp
vipalade/solidframe
cff130652127ca9607019b4db508bc67f8bbecff
[ "BSL-1.0" ]
26
2015-08-25T16:07:58.000Z
2019-07-05T15:21:22.000Z
solid/frame/mprpc/src/mprpcrelayengine.cpp
vipalade/solidframe
cff130652127ca9607019b4db508bc67f8bbecff
[ "BSL-1.0" ]
5
2016-10-15T22:55:15.000Z
2017-09-19T12:41:10.000Z
solid/frame/mprpc/src/mprpcrelayengine.cpp
vipalade/solidframe
cff130652127ca9607019b4db508bc67f8bbecff
[ "BSL-1.0" ]
5
2016-09-15T10:34:52.000Z
2018-10-30T11:46:46.000Z
// solid/frame/ipc/src/mprpcrelayengine.cpp // // Copyright (c) 2017 Valentin Palade (vipalade @ gmail . com) // // This file is part of SolidFrame framework. // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt. // #i...
42.370273
287
0.596679
vipalade
a0cfc9e87a63352b005d8785fdb4a961bb20e2d0
387
cpp
C++
09_lambda/09_08_usefulness/09_08_00_usefulness.cpp
pAbogn/cpp_courses
6ffa7da5cc440af3327139a38cfdefcfaae1ebed
[ "MIT" ]
13
2020-09-01T14:57:21.000Z
2021-11-24T06:00:26.000Z
09_lambda/09_08_usefulness/09_08_00_usefulness.cpp
pAbogn/cpp_courses
6ffa7da5cc440af3327139a38cfdefcfaae1ebed
[ "MIT" ]
5
2020-06-11T14:13:00.000Z
2021-07-14T05:27:53.000Z
09_lambda/09_08_usefulness/09_08_00_usefulness.cpp
pAbogn/cpp_courses
6ffa7da5cc440af3327139a38cfdefcfaae1ebed
[ "MIT" ]
10
2021-03-22T07:54:36.000Z
2021-09-15T04:03:32.000Z
// Lambda + unique // Remove zeros only + count zeros #include <iostream> #include <algorithm> #include <vector> int main() { std::vector<int> v{1,2,0,0,5,0,0,0,3,3,0}; auto it = std::unique(v.begin(), v.end()); v.erase(it, v.end()); for (auto& e : v) { std::cout << e << ' '; } ...
16.125
65
0.509044
pAbogn
a0d31157daae88f6a9fdd1289f9dd2ca6104d3b0
999
cpp
C++
Source/Engine/Core/Modular/Platform/WindowsImportDLL.cpp
youngjunh98/Game-Engine
7ec6356bd2835ba7f7a1119e873acee3e60b35f5
[ "MIT" ]
null
null
null
Source/Engine/Core/Modular/Platform/WindowsImportDLL.cpp
youngjunh98/Game-Engine
7ec6356bd2835ba7f7a1119e873acee3e60b35f5
[ "MIT" ]
1
2020-11-21T10:05:14.000Z
2020-11-21T10:05:14.000Z
Source/Engine/Core/Modular/Platform/WindowsImportDLL.cpp
youngjunh98/GameEngine
7ec6356bd2835ba7f7a1119e873acee3e60b35f5
[ "MIT" ]
null
null
null
#include <Windows.h> #include <string> #include "Engine/Core/Modular/ModuleManager.h" namespace GameEngine { namespace Modular { ModuleHandle PlatformLoadModule (const PathString& path) { HINSTANCE hModule = LoadLibrary (path.c_str ()); if (hModule == NULL) { return nullptr; } return hModul...
20.8125
110
0.706707
youngjunh98
a0daebab932dd01a6b7df35f861939238e72465d
1,604
cpp
C++
problems/chapter12/miiitomi/005.cpp
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
1
2021-07-07T15:46:58.000Z
2021-07-07T15:46:58.000Z
problems/chapter12/miiitomi/005.cpp
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
5
2021-06-05T14:16:41.000Z
2021-07-10T07:08:28.000Z
problems/chapter12/miiitomi/005.cpp
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; // 要素数 5 以下の配列の中央値を返す. int median5(vector<int> &c) { sort(c.begin(), c.end()); int idx = (int)c.size() / 2; return c[idx]; } // 配列 b の中央値の中央値を再帰的に返す. int medianOfMedians(vector<int> &b) { if ((int)b.size() <= 5) return med...
23.588235
88
0.507481
tokuma09
a0db54a64f8c7047bf52501ae837ffb108b0c555
78
cpp
C++
Source/General/Interface/IDebugger.cpp
paintdream/paintsnow
3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781
[ "MIT" ]
null
null
null
Source/General/Interface/IDebugger.cpp
paintdream/paintsnow
3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781
[ "MIT" ]
null
null
null
Source/General/Interface/IDebugger.cpp
paintdream/paintsnow
3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781
[ "MIT" ]
null
null
null
#include "IDebugger.h" using namespace PaintsNow; IDebugger::~IDebugger() {}
15.6
26
0.74359
paintdream
a0eaf0cf00462bb81d34dbe82e6c656d84fe1ce3
3,448
hpp
C++
include/rectojump/global/config.hpp
Malekblubb/rectojump
66c04e9a081bd1b830205bb0c515a42eeb4befb6
[ "MIT" ]
null
null
null
include/rectojump/global/config.hpp
Malekblubb/rectojump
66c04e9a081bd1b830205bb0c515a42eeb4befb6
[ "MIT" ]
null
null
null
include/rectojump/global/config.hpp
Malekblubb/rectojump
66c04e9a081bd1b830205bb0c515a42eeb4befb6
[ "MIT" ]
null
null
null
// // Copyright (c) 2013-2021 Christoph Malek // See LICENSE for more information. // #ifndef RJ_GLOBAL_CONFIG_HPP #define RJ_GLOBAL_CONFIG_HPP #include "common.hpp" #include "config_parser.hpp" #include "errors.hpp" #include <mlk/filesystem/fs_handle.h> #include <mlk/signals_slots/slot.h> namespace rj { class con...
23.14094
71
0.634861
Malekblubb
a0eb22cf8560217ec185b491acacf29bb93326e3
427
hpp
C++
include/RED4ext/Scripting/Natives/Generated/PSODescDepthStencilModeStencilOpMode.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
42
2020-12-25T08:33:00.000Z
2022-03-22T14:47:07.000Z
include/RED4ext/Scripting/Natives/Generated/PSODescDepthStencilModeStencilOpMode.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
38
2020-12-28T22:36:06.000Z
2022-02-16T11:25:47.000Z
include/RED4ext/Scripting/Natives/Generated/PSODescDepthStencilModeStencilOpMode.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
20
2020-12-28T22:17:38.000Z
2022-03-22T17:19:01.000Z
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> namespace RED4ext { enum class PSODescDepthStencilModeStencilOpMode : uint8_t { STENCILOP_Keep = 0, STENCILOP_Zero = 1, STENCILOP_Replace = 2, STENCILOP_IncreaseSaturate = 3, STENCILOP_DecreaseSaturate = 4, ...
21.35
57
0.725995
jackhumbert
a0f04a4e522a57fa04e06ca4c2d2cb329a712c54
2,369
cpp
C++
examples/math_expression/main.cpp
FrancoisChabot/abulafia
4aeefd8d388d68994f9d73bb0f586517737a5174
[ "BSL-1.0" ]
42
2017-09-21T16:51:12.000Z
2020-03-12T09:44:32.000Z
examples/math_expression/main.cpp
FrancoisChabot/abulafia
4aeefd8d388d68994f9d73bb0f586517737a5174
[ "BSL-1.0" ]
32
2017-09-21T06:31:08.000Z
2017-10-20T00:52:58.000Z
examples/math_expression/main.cpp
FrancoisChabot/abulafia
4aeefd8d388d68994f9d73bb0f586517737a5174
[ "BSL-1.0" ]
3
2018-10-30T11:29:18.000Z
2019-07-18T08:19:51.000Z
// Copyright 2017 Francois Chabot // (francois.chabot.dev@gmail.com) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "abulafia/abulafia.h" #include <iostream> // This simple example shows how to build...
29.246914
79
0.597721
FrancoisChabot
a0f863acd8044c19ee7424d39029ec71c97377ea
871
hpp
C++
include/quote/direct2d/traits.hpp
quartorz/quote
610f891fb8be6993b0db773f718ae5e7f24b1f40
[ "MIT" ]
null
null
null
include/quote/direct2d/traits.hpp
quartorz/quote
610f891fb8be6993b0db773f718ae5e7f24b1f40
[ "MIT" ]
null
null
null
include/quote/direct2d/traits.hpp
quartorz/quote
610f891fb8be6993b0db773f718ae5e7f24b1f40
[ "MIT" ]
null
null
null
#pragma once #include <quote/direct2d/base_types.hpp> #include <quote/direct2d/resource.hpp> #include <quote/direct2d/object.hpp> #include <quote/direct2d/solid_brush.hpp> #include <quote/direct2d/font.hpp> #include <quote/direct2d/text.hpp> #include <quote/direct2d/userdefined_object.hpp> namespace quote{ ...
24.885714
58
0.709529
quartorz
a0fbe6cb74850bf49539406d5222088c139daf02
14,644
cc
C++
src/vt/trace/trace.cc
rbuch/vt
74c2e0cae3201dfbcbfda7644c354703ddaed6bb
[ "BSD-3-Clause" ]
26
2019-11-26T08:36:15.000Z
2022-02-15T17:13:21.000Z
src/vt/trace/trace.cc
rbuch/vt
74c2e0cae3201dfbcbfda7644c354703ddaed6bb
[ "BSD-3-Clause" ]
1,215
2019-09-09T14:31:33.000Z
2022-03-30T20:20:14.000Z
src/vt/trace/trace.cc
rbuch/vt
74c2e0cae3201dfbcbfda7644c354703ddaed6bb
[ "BSD-3-Clause" ]
12
2019-09-08T00:03:05.000Z
2022-02-23T21:28:35.000Z
/* //@HEADER // ***************************************************************************** // // trace.cc // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contra...
27.526316
82
0.701243
rbuch
9d056c2a6acb712d1476125784a9993a47878cab
6,023
cpp
C++
IMG/IMG_PXD.cpp
agalod/ipop
b14353e7d2af5fd3f80a1bc76efe59f86ab22e00
[ "MIT" ]
null
null
null
IMG/IMG_PXD.cpp
agalod/ipop
b14353e7d2af5fd3f80a1bc76efe59f86ab22e00
[ "MIT" ]
null
null
null
IMG/IMG_PXD.cpp
agalod/ipop
b14353e7d2af5fd3f80a1bc76efe59f86ab22e00
[ "MIT" ]
null
null
null
// // Class: IMG_PXC (: public MtqGrabber) // // File: IMG_PXC.cpp // // Modul: MtqLib: IP_Grabber // // Purpose: Encapsuling of the framegrabber functions // of the fpxc200 ImaScan fframegrabber // // Author: Alex Roehnisch (glo-ar) // WZL - RWTH Aachen // // Version: // Status: WORKING /...
34.417143
153
0.651004
agalod
9d0838342c598bb951bee57e5918516c54746e18
1,272
hxx
C++
Legolas/Matrix/tst/HeatEquationTest/SpaceSourceVectorDefinition.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Matrix/tst/HeatEquationTest/SpaceSourceVectorDefinition.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Matrix/tst/HeatEquationTest/SpaceSourceVectorDefinition.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
1
2021-02-11T14:43:25.000Z
2021-02-11T14:43:25.000Z
/** * project DESCARTES * * @file SpaceSourceVectorDefinition.hxx * * @author Laurent PLAGNE * @date june 2004 - january 2005 * * @par Modifications * - author date object * * (c) Copyright EDF R&D - CEA 2001-2005 */ #ifndef __LEGOLAS_SPACESOURCEVECTORDEFINITION_HXX__ #define __LEGOLAS_SPACESOURC...
22.714286
75
0.691038
LaurentPlagne
9d09ec4c8fad62f422dc3fe9993429a8ddee8870
241
cpp
C++
test/test_shaders.cpp
valentingalea/mathlib
23ae9766e552f96dfcebe9a561b40002ccdeb942
[ "MIT" ]
176
2018-08-26T19:56:36.000Z
2022-02-22T09:09:13.000Z
test/test_shaders.cpp
valentingalea/mathlib
23ae9766e552f96dfcebe9a561b40002ccdeb942
[ "MIT" ]
2
2022-01-04T09:40:39.000Z
2022-01-16T20:18:11.000Z
test/test_shaders.cpp
valentingalea/mathlib
23ae9766e552f96dfcebe9a561b40002ccdeb942
[ "MIT" ]
4
2019-08-25T07:23:04.000Z
2022-01-19T09:43:50.000Z
#include "c4droid.h" #include "shader/sandbox.h" vec3 sandbox::iResolution = vec3(100, 100, 0); float sandbox::iTime = 0.f; float sandbox::iTimeDelta = 0.f; int main() { sandbox::fragment_shader ps; ps.main(ps.gl_FragColor, vec2(0)); }
18.538462
47
0.697095
valentingalea
9d0bba7a1e997ed6de552a133bf93b643d829f6d
1,194
cpp
C++
simple_numbers_10^6_2.cpp
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
simple_numbers_10^6_2.cpp
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
simple_numbers_10^6_2.cpp
webkadiz/olympiad-problems
620912815904c0f95b91ccd193ca3db0ea20e507
[ "MIT" ]
null
null
null
#include <iostream> #include <math.h> using namespace std; template <typename T> void print_arr(T arr[], int len) { for (int i = 0; i < len; i++) cout << arr[i] << endl; } bool detSimple(int num) { int sqrtN = sqrt(num); for (int i = 2; i <= sqrtN; i++) { if (num % i == 0) return false; } return true; } ...
13.41573
55
0.502513
webkadiz
9d0de6b1e32a60c53f6c32c5f3260ccae9687e91
2,752
cpp
C++
vkconfig_core/test/test_util.cpp
ncesario-lunarg/VulkanTools
3ea8ac1d278a4412e34e443063cad90632bbbc3b
[ "Apache-2.0" ]
1
2021-03-04T03:33:44.000Z
2021-03-04T03:33:44.000Z
vkconfig_core/test/test_util.cpp
ncesario-lunarg/VulkanTools
3ea8ac1d278a4412e34e443063cad90632bbbc3b
[ "Apache-2.0" ]
null
null
null
vkconfig_core/test/test_util.cpp
ncesario-lunarg/VulkanTools
3ea8ac1d278a4412e34e443063cad90632bbbc3b
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2020 Valve Corporation * Copyright (c) 2020 LunarG, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
28.081633
98
0.694041
ncesario-lunarg
9d0dfe83e5ca604bd5baefa4a5c50cf1730c0fa1
2,285
cpp
C++
test/mover.cpp
srjilarious/termable
7995e6e2b6ee80f43956d8c4966ff68f5c4d3777
[ "MIT" ]
null
null
null
test/mover.cpp
srjilarious/termable
7995e6e2b6ee80f43956d8c4966ff68f5c4d3777
[ "MIT" ]
1
2021-05-27T18:26:35.000Z
2021-05-27T18:26:35.000Z
test/mover.cpp
srjilarious/termable
7995e6e2b6ee80f43956d8c4966ff68f5c4d3777
[ "MIT" ]
null
null
null
// Set of tests, blocking out how I want the API to look. #include <termable/termable.hpp> #include <cstdio> #include <chrono> #include <thread> int main(int argc, char** argv) { termable::termableLinux term; term.clear(); term.showCursor(false); auto sz = term.displaySize(); termable::termB...
30.878378
90
0.48884
srjilarious
9d0e143aaf9d560e9d4cb5e5412e01cb109a05b7
1,213
cc
C++
0200_Number_of_Islands/0200.cc
LuciusKyle/LeetCode
66c9090e5244b10eca0be50398764da2b4b48a6c
[ "Apache-2.0" ]
null
null
null
0200_Number_of_Islands/0200.cc
LuciusKyle/LeetCode
66c9090e5244b10eca0be50398764da2b4b48a6c
[ "Apache-2.0" ]
null
null
null
0200_Number_of_Islands/0200.cc
LuciusKyle/LeetCode
66c9090e5244b10eca0be50398764da2b4b48a6c
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <assert.h> using std::vector; class Solution { public: int numIslands(vector<vector<char>>& grid) { int rtn = 0; for (size_t row = 0; row < grid.size(); ++row) for (size_t column = 0; column < grid[0].size(); ++column) if (grid[row][column] == '1') { mar...
26.369565
68
0.515251
LuciusKyle
9d0e5b4fe87229b8ce2cc693336b34c139f6f6fd
3,957
cpp
C++
src/InOut.cpp
ahfakt/Stream
c3a1ddcd904e0f15246db34ad71f85748312cbaf
[ "MIT" ]
null
null
null
src/InOut.cpp
ahfakt/Stream
c3a1ddcd904e0f15246db34ad71f85748312cbaf
[ "MIT" ]
null
null
null
src/InOut.cpp
ahfakt/Stream
c3a1ddcd904e0f15246db34ad71f85748312cbaf
[ "MIT" ]
null
null
null
#include "Stream/InOut.h" #include <cstring> namespace Stream { Input& Input::read(void* dest, std::size_t size) try { for (std::size_t outl; size; reinterpret_cast<std::byte*&>(dest) += outl, size -= outl) outl = readBytes(reinterpret_cast<std::byte*>(dest), size); return *this; } catch (Exception& exc) { exc.m...
21.274194
90
0.697498
ahfakt
9d104bcaadefc6ccbc51cca877ed954d6df2a564
3,440
hpp
C++
engine/src/Graphics/Scene.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
engine/src/Graphics/Scene.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
engine/src/Graphics/Scene.hpp
aleksigron/graphics-toolkit
f8e60c57316a72dff9de07512e9771deb3799208
[ "MIT" ]
null
null
null
#pragma once #include "Core/HashMap.hpp" #include "Core/Array.hpp" #include "Core/SortedArray.hpp" #include "Core/StringView.hpp" #include "Engine/Entity.hpp" #include "Math/Mat4x4.hpp" class Camera; class Allocator; class TransformUpdateReceiver; struct SceneObjectId { unsigned int i; bool operator==(SceneObje...
26.060606
103
0.757267
aleksigron
9d108bb0f98bc7316b76553969ea82353d969d04
225
cpp
C++
sample/asrDemo2/src/asrdemo/StatusListener.cpp
formattor/asr-linux-cpp-change
630c54daf78f4f0f68e51f7aa996298ee517f2b1
[ "MIT" ]
6
2019-06-10T12:57:32.000Z
2020-11-27T10:56:13.000Z
sample/asrDemo2/src/asrdemo/StatusListener.cpp
formattor/asr-linux-cpp-change
630c54daf78f4f0f68e51f7aa996298ee517f2b1
[ "MIT" ]
1
2021-02-19T02:39:47.000Z
2021-02-19T02:39:47.000Z
sample/asrDemo2/src/asrdemo/StatusListener.cpp
formattor/asr-linux-cpp-change
630c54daf78f4f0f68e51f7aa996298ee517f2b1
[ "MIT" ]
null
null
null
// // Created by fu on 3/13/18. // #include "StatusListener.hpp" namespace asrdemo { void StatusListener::on_last_status(int status){ finished = true; } bool StatusListener::is_finished() const{ return finished; } }
16.071429
48
0.706667
formattor
9d15cd6fb681f2a422e30cb3a6daa193469d1157
8,373
hh
C++
src/sge_fixed.hh
sungiant/sge
89692d4376cb4374e0936b5373878e59dc9a68bb
[ "MIT" ]
6
2020-09-04T10:19:29.000Z
2021-05-07T05:21:37.000Z
src/sge_fixed.hh
sungiant/sge
89692d4376cb4374e0936b5373878e59dc9a68bb
[ "MIT" ]
null
null
null
src/sge_fixed.hh
sungiant/sge
89692d4376cb4374e0936b5373878e59dc9a68bb
[ "MIT" ]
null
null
null
#pragma once namespace sge::fixed { //--------------------------------------------------------------------------------------------------------------------// // just some of this: https://gcc.gnu.org/onlinedocs/gcc-4.6.3/libstdc++/api/a00752_source.html // with minor changes template<typename TP, size_t SZ> struct arr...
65.929134
210
0.52514
sungiant
1dd6d3c5bcbd014cebf4c82be4499d2a2710e1d4
3,465
cpp
C++
Study Material/CP/06.ch6/01.basic string.cpp
mohamedGamalAbuGalala/Practice
2a5fa3bdaf995d0c304f04231e1a69e6960f72c8
[ "MIT" ]
1
2019-12-19T06:51:20.000Z
2019-12-19T06:51:20.000Z
Study Material/CP/06.ch6/01.basic string.cpp
mohamedGamalAbuGalala/Practice
2a5fa3bdaf995d0c304f04231e1a69e6960f72c8
[ "MIT" ]
null
null
null
Study Material/CP/06.ch6/01.basic string.cpp
mohamedGamalAbuGalala/Practice
2a5fa3bdaf995d0c304f04231e1a69e6960f72c8
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; // input handle #define iln() scanf("\n") //scan new line #define in(n) scanf("%d",&n) //scan int #define ins(n) scanf("%s",n) //scan char[] #define inc(n) scanf("%c ",&n) //scan char #define inf(n) scanf("%lf",&n) //scan double/float #define inl(n) scanf("%lld",&n) //scan...
27.943548
91
0.609812
mohamedGamalAbuGalala
1ddb51468b551f069bf768431e3d3e5e738e45ef
25,211
cpp
C++
newton-4.00/applications/ndSandbox/demos/ndBasicVehicle.cpp
MADEAPPS/newton-dynamics
e346eec9d19ffb1c995b09417400167d3c52a635
[ "Zlib" ]
1,031
2015-01-02T14:08:47.000Z
2022-03-29T02:25:27.000Z
newton-4.00/applications/ndSandbox/demos/ndBasicVehicle.cpp
MADEAPPS/newton-dynamics
e346eec9d19ffb1c995b09417400167d3c52a635
[ "Zlib" ]
240
2015-01-11T04:27:19.000Z
2022-03-30T00:35:57.000Z
newton-4.00/applications/ndSandbox/demos/ndBasicVehicle.cpp
MADEAPPS/newton-dynamics
e346eec9d19ffb1c995b09417400167d3c52a635
[ "Zlib" ]
224
2015-01-05T06:13:54.000Z
2022-02-25T14:39:51.000Z
/* Copyright (c) <2003-2021> <Newton Game Dynamics> * * 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. * * Permission is granted to anyone to use this software for any purpose, * includi...
36.015714
231
0.74527
MADEAPPS
1ddbeebd271c366f119b7fb90db807eebca11b04
2,712
hpp
C++
tools/coredump.hpp
kobi-ca/hogl
19cd7262ed22a46cc06346d9d592ff278db5266b
[ "BSD-2-Clause" ]
null
null
null
tools/coredump.hpp
kobi-ca/hogl
19cd7262ed22a46cc06346d9d592ff278db5266b
[ "BSD-2-Clause" ]
null
null
null
tools/coredump.hpp
kobi-ca/hogl
19cd7262ed22a46cc06346d9d592ff278db5266b
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2015, Max Krasnyansky <max.krasnyansky@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright...
27.393939
85
0.705752
kobi-ca
1dde81947d86004525242dcd438f3463d604603c
2,672
cpp
C++
annotator/ForAnnotator.cpp
bright-tools/coverage
e4b99d46fef4e93c3fc508ff836f11b3f5f45786
[ "Apache-2.0" ]
1
2015-08-05T12:42:36.000Z
2015-08-05T12:42:36.000Z
annotator/ForAnnotator.cpp
bright-tools/coverage
e4b99d46fef4e93c3fc508ff836f11b3f5f45786
[ "Apache-2.0" ]
null
null
null
annotator/ForAnnotator.cpp
bright-tools/coverage
e4b99d46fef4e93c3fc508ff836f11b3f5f45786
[ "Apache-2.0" ]
null
null
null
/* Copyright 2013 John Bailey 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 writi...
28.425532
102
0.694237
bright-tools
1de097ff8a690c828d6b2327917bc879fa0a1cf8
3,348
cpp
C++
Classes/yaadv/CharLabel.cpp
gadget114514/yaadv
5b9ad77e2361ddcaa0e9b0f8457e9a02c7ece68b
[ "MIT" ]
3
2019-12-21T09:53:22.000Z
2020-12-29T17:55:58.000Z
Classes/yaadv/CharLabel.cpp
gadget114514/yaadv
5b9ad77e2361ddcaa0e9b0f8457e9a02c7ece68b
[ "MIT" ]
4
2019-03-11T09:47:23.000Z
2019-03-11T09:49:43.000Z
Classes/yaadv/CharLabel.cpp
gadget114514/yaadv
5b9ad77e2361ddcaa0e9b0f8457e9a02c7ece68b
[ "MIT" ]
null
null
null
#include "CharLabel.h" USING_NS_CC; USING_NS_CC; using namespace yaadv; namespace yaadv { CharLabel::CharLabel() : _pos(0), _defaultDelayTime(1.0f), _fadeTime(0.5f), _lineHeight(0), _charLabel(nullptr), _x(0), _y(0), _defaultFontSize(20), _showFinishCallback(nullptr...
24.8
118
0.641278
gadget114514
1de67b2d79dc361e5ead72c50b5709122987a820
1,837
cxx
C++
rrl/examples/location_registration.cxx
msofka/LRR
8c04ab9d27980c98a201943c1fe46e7e451df367
[ "Apache-2.0" ]
2
2018-01-09T00:33:42.000Z
2018-01-09T00:33:53.000Z
rrl/examples/location_registration.cxx
msofka/LRR
8c04ab9d27980c98a201943c1fe46e7e451df367
[ "Apache-2.0" ]
null
null
null
rrl/examples/location_registration.cxx
msofka/LRR
8c04ab9d27980c98a201943c1fe46e7e451df367
[ "Apache-2.0" ]
null
null
null
#include <vul/vul_file.h> #include <vul/vul_arg.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <fstream> #include <rrl/itkLocationRegistration.h> //: // \file // \brief Register and recognize volume location using itkLocationRegistration object. // \author Michal Sofka // \da...
34.660377
145
0.658138
msofka
1de6c1b39c89e999691e1750dfb8b934f98160ed
2,449
cpp
C++
src/services/pcn-bridge/src/PortsStp.cpp
francescomessina/polycube
38f2fb4ffa13cf51313b3cab9994be738ba367be
[ "ECL-2.0", "Apache-2.0" ]
337
2018-12-12T11:50:15.000Z
2022-03-15T00:24:35.000Z
src/services/pcn-bridge/src/PortsStp.cpp
l1b0k/polycube
7af919245c131fa9fe24c5d39d10039cbb81e825
[ "ECL-2.0", "Apache-2.0" ]
253
2018-12-17T21:36:15.000Z
2022-01-17T09:30:42.000Z
src/services/pcn-bridge/src/PortsStp.cpp
l1b0k/polycube
7af919245c131fa9fe24c5d39d10039cbb81e825
[ "ECL-2.0", "Apache-2.0" ]
90
2018-12-19T15:49:38.000Z
2022-03-27T03:56:07.000Z
/* * Copyright 2019 The Polycube Authors * * 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 agree...
24.247525
75
0.722336
francescomessina
1dea5f9c4787a85b6ee2f4cee015cf5ba968676c
538
hpp
C++
smart_tales_ii/game/player/upgrades.hpp
TijmenUU/smarttalesii
c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
smart_tales_ii/game/player/upgrades.hpp
TijmenUU/smarttalesii
c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba
[ "CC-BY-3.0", "CC-BY-4.0" ]
11
2018-02-08T14:50:16.000Z
2022-01-21T19:54:24.000Z
smart_tales_ii/game/player/upgrades.hpp
TijmenUU/smarttalesii
c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
/* upgrades.hpp These utility functions define the available upgrades and the obstacles affected by them. Upgrades are of type enum class Sensor */ #pragma once #include "../obstacle/obstacletype.hpp" #include <cstdint> #include <string> namespace Upgrade { enum class Sensor : uint8_t { Unknown = 0, Passi...
16.8125
54
0.728625
TijmenUU
1df5bd8057e14196520937dc7b8a487ab2373593
11,925
cpp
C++
Examples_5_4/Sticktrace/UtilDlg.cpp
hukushirom/luastick
29e43ee9d7e26b6ab45a510e664825b8c64845ac
[ "MIT" ]
12
2020-04-26T11:38:00.000Z
2021-11-02T21:13:27.000Z
Examples_5_4/Sticktrace/UtilDlg.cpp
hukushirom/luastick
29e43ee9d7e26b6ab45a510e664825b8c64845ac
[ "MIT" ]
null
null
null
Examples_5_4/Sticktrace/UtilDlg.cpp
hukushirom/luastick
29e43ee9d7e26b6ab45a510e664825b8c64845ac
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "LeException.h" #include "UtilStr.h" #include "UtilDlg.h" // This header. #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif int UtilDlg::GetCurSel (const CListCtrl* pListCtrl) { POSITION pos = pListCtrl->GetFirstSelectedItemPosition(); if...
31.715426
126
0.558239
hukushirom
1dfaf6a8ae20cb03d52c3d5c6e3b530e8aa2532e
246
cpp
C++
solutions/405.convert-a-number-to-hexadecimal.242445862.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/405.convert-a-number-to-hexadecimal.242445862.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/405.convert-a-number-to-hexadecimal.242445862.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution { public: string toHex(unsigned int num) { string map = "0123456789abcdef"; string ans; do { ans += map[num % 16]; num /= 16; } while (num); reverse(ans.begin(), ans.end()); return ans; } };
17.571429
36
0.544715
satu0king
380193a01ea21d09daceeba698105d3cfa778f89
1,377
cpp
C++
main.cpp
platonische/cpp-abstractQueue
27378dc5b472e2485b2f388f1dd22474d0e081a6
[ "Unlicense" ]
null
null
null
main.cpp
platonische/cpp-abstractQueue
27378dc5b472e2485b2f388f1dd22474d0e081a6
[ "Unlicense" ]
null
null
null
main.cpp
platonische/cpp-abstractQueue
27378dc5b472e2485b2f388f1dd22474d0e081a6
[ "Unlicense" ]
null
null
null
#include <iostream> //#include "src/exted/Int/QueueIntValue.h" #include "src/exted/Any/QueueAnyValue.h" using namespace std; int main() { int *array = new int[6] { 1, 2, 3, 4, 5, '\0' }; QueueAnyValue<int>* queue = new QueueAnyValue<int>(); queue->sampleData(array); queue->addElement(queue->createEl...
28.102041
75
0.672476
platonische
3801aa9db2b9713fc5c3c039c66fb9fb242b807a
274
cpp
C++
src/Jacobi.cpp
EthanHowellUKY/linear-algebra
b71756655c7bc2351e8084ecaf89298f747ce9af
[ "Apache-2.0" ]
null
null
null
src/Jacobi.cpp
EthanHowellUKY/linear-algebra
b71756655c7bc2351e8084ecaf89298f747ce9af
[ "Apache-2.0" ]
null
null
null
src/Jacobi.cpp
EthanHowellUKY/linear-algebra
b71756655c7bc2351e8084ecaf89298f747ce9af
[ "Apache-2.0" ]
null
null
null
#include "LinearAlgebra/Jacobi.h" Jacobi::Jacobi() {} Jacobi::~Jacobi() {} Matrix Jacobi::solve(Matrix &A, Matrix &b) { return Matrix(); } Matrix Jacobi::solve(Matrix &A, std::vector<double> &b) { return Matrix(); } void Jacobi::print() { std::cout << "Jacobi" << '\n'; }
30.444444
76
0.638686
EthanHowellUKY
38020ea11c08f5129ed5f7ccae0d071375a4d378
2,157
cpp
C++
tgfx/src/gpu/DualIntervalGradientColorizer.cpp
cy-j/libpag
9b1636a0a67ad5e009d60c6c348034790d247692
[ "BSL-1.0", "CC0-1.0", "MIT" ]
2
2022-02-26T16:10:30.000Z
2022-03-18T01:28:40.000Z
tgfx/src/gpu/DualIntervalGradientColorizer.cpp
cy-j/libpag
9b1636a0a67ad5e009d60c6c348034790d247692
[ "BSL-1.0", "CC0-1.0", "MIT" ]
null
null
null
tgfx/src/gpu/DualIntervalGradientColorizer.cpp
cy-j/libpag
9b1636a0a67ad5e009d60c6c348034790d247692
[ "BSL-1.0", "CC0-1.0", "MIT" ]
null
null
null
///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Versio...
38.517857
97
0.646732
cy-j
38029cc83604fcd2320a6603c26209fc0d7a3dce
963
cpp
C++
save.cpp
januwA/winreg-example
9ddd27c281c772efe969bc82877c5e31741c913f
[ "MIT" ]
null
null
null
save.cpp
januwA/winreg-example
9ddd27c281c772efe969bc82877c5e31741c913f
[ "MIT" ]
null
null
null
save.cpp
januwA/winreg-example
9ddd27c281c772efe969bc82877c5e31741c913f
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <sstream> #include <iomanip> #include <Windows.h> #include "ModifyPrivilege.hpp" int main() { // 备份注册表信息 // 获取权限 if (!SUCCEEDED(ModifyPrivilege(SE_BACKUP_NAME, true))) return 1; // 保存 HKEY hKey; LSTATUS retCode; retCode = RegOpenKe...
19.26
97
0.561786
januwA
380459a54f6dbe558dcefdb60505a2236fe555b9
37,382
cpp
C++
NoFTL_v1.0/shoreMT-KIT/src/workload/tm1/shore_tm1_xct.cpp
DBlabRT/NoFTL
cba8b5a6d9c422bdd39b01575244e557cbd12e43
[ "Unlicense" ]
4
2019-01-24T02:00:23.000Z
2021-03-17T11:56:59.000Z
NoFTL_v1.0/shoreMT-KIT/src/workload/tm1/shore_tm1_xct.cpp
DBlabRT/NoFTL
cba8b5a6d9c422bdd39b01575244e557cbd12e43
[ "Unlicense" ]
null
null
null
NoFTL_v1.0/shoreMT-KIT/src/workload/tm1/shore_tm1_xct.cpp
DBlabRT/NoFTL
cba8b5a6d9c422bdd39b01575244e557cbd12e43
[ "Unlicense" ]
4
2019-01-22T10:35:55.000Z
2021-03-17T11:57:23.000Z
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. ...
27.938714
83
0.525467
DBlabRT
3805b3f0d3a387a4bd70e1c053c0da7eb0edfa53
5,276
hpp
C++
include/cppdevtk/base/stack_frame.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
include/cppdevtk/base/stack_frame.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
include/cppdevtk/base/stack_frame.hpp
CoSoSys/cppdevtk
99d6c3d328c05a55dae54e82fcbedad93d0cfaa0
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// \file /// /// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n /// Licensed under the Apache License, Version 2.0 (the "License");\n /// you may not use this file e...
31.975758
126
0.662813
CoSoSys
380873761274ed62e6b5a1c2181e29a84cbe854a
359
hh
C++
src/parse/scantiger.hh
MrMaDGaME/Tiger
f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f
[ "MIT" ]
null
null
null
src/parse/scantiger.hh
MrMaDGaME/Tiger
f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f
[ "MIT" ]
null
null
null
src/parse/scantiger.hh
MrMaDGaME/Tiger
f31f73cd386b3ccb3e02abe7b23a3de09d70bd0f
[ "MIT" ]
null
null
null
#pragma once #include <parse/parsetiger.hh> #include <parse/tiger-parser.hh> // Set parameters for Flex header, and include it. #define YY_FLEX_NAMESPACE_BEGIN \ namespace parse \ { #define YY_FLEX_NAMESPAC...
27.615385
80
0.526462
MrMaDGaME
380b3270a252950662f6e5ac8920339166e7d470
1,091
cc
C++
codeforces/629_#343_Div2/C/main.cc
jinzhao1994/ACM
5846032df31ab000deb57d8cbb8cb4c27c0e955b
[ "WTFPL" ]
2
2015-07-22T01:26:47.000Z
2015-08-30T11:33:19.000Z
codeforces/629_#343_Div2/C/main.cc
jinzhao1994/ACM
5846032df31ab000deb57d8cbb8cb4c27c0e955b
[ "WTFPL" ]
null
null
null
codeforces/629_#343_Div2/C/main.cc
jinzhao1994/ACM
5846032df31ab000deb57d8cbb8cb4c27c0e955b
[ "WTFPL" ]
null
null
null
#include <cstdio> const int mod = 1000000007; const int N = 100001; const int M = 2001; int c[M][M]; int n, m, tot, pre; char s[N]; inline int regular(int x) { if (x >= mod) { return x - mod; } if (x < 0) { return x + mod; } return x; } inline int cal(int i, int j) { if (j == 0) { return 1; } return re...
17.596774
68
0.418882
jinzhao1994
380bc7f7a9aa43cfbfbf93c7174483a42ce6543d
5,380
cpp
C++
Microsoft/SAMPLES/Ole2View/IViewers/IUnknown.cpp
mdileep/Tigger
8e06d117a5b520c5fc9e37a710bf17aa51a9958c
[ "MIT", "Unlicense" ]
1
2022-01-04T21:13:05.000Z
2022-01-04T21:13:05.000Z
Microsoft/SAMPLES/Ole2View/IViewers/IUnknown.cpp
mdileep/Tigger
8e06d117a5b520c5fc9e37a710bf17aa51a9958c
[ "MIT", "Unlicense" ]
null
null
null
Microsoft/SAMPLES/Ole2View/IViewers/IUnknown.cpp
mdileep/Tigger
8e06d117a5b520c5fc9e37a710bf17aa51a9958c
[ "MIT", "Unlicense" ]
1
2022-01-04T21:13:01.000Z
2022-01-04T21:13:01.000Z
// IUnknown.cpp : implementation file // // // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1993 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and Microsoft // Quick...
27.309645
149
0.594238
mdileep
380c40f37e8adaf01161fd5c654afe62986c3d9a
1,702
cpp
C++
ext/UiaDll/UiaDll/SelectionItemMethods.cpp
leoniv/uia
eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309
[ "MIT" ]
11
2015-04-16T18:20:35.000Z
2021-10-07T00:48:41.000Z
ext/UiaDll/UiaDll/SelectionItemMethods.cpp
leoniv/uia
eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309
[ "MIT" ]
7
2016-01-14T10:04:02.000Z
2020-02-24T12:55:09.000Z
ext/UiaDll/UiaDll/SelectionItemMethods.cpp
leoniv/uia
eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309
[ "MIT" ]
4
2015-10-26T16:18:46.000Z
2018-08-11T00:45:17.000Z
#include "Stdafx.h" extern "C" { __declspec(dllexport) void SelectionItem_Release(SelectionItemInformationPtr selectionItemInfo) { delete selectionItemInfo; } __declspec(dllexport) SelectionItemInformationPtr SelectionItem_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength...
41.512195
154
0.753231
leoniv
380e901290ac1694f19f26588defab9c1e10a2d4
10,920
cpp
C++
src/fanfoukit.cpp
zccrs/meefan
7dcea7d368bf2235b6216d96d249a9b6be6d96d9
[ "MIT" ]
null
null
null
src/fanfoukit.cpp
zccrs/meefan
7dcea7d368bf2235b6216d96d249a9b6be6d96d9
[ "MIT" ]
null
null
null
src/fanfoukit.cpp
zccrs/meefan
7dcea7d368bf2235b6216d96d249a9b6be6d96d9
[ "MIT" ]
null
null
null
#include "fanfoukit.h" #include "httprequest.h" #include <QPair> #include <QNetworkAccessManager> #include <QNetworkReply> #include <QRegExp> #include <QStringList> #include <QFile> #include <QDir> #include <QDateTime> #include <QSettings> #include <QCryptographicHash> #include <QUuid> #include <QtFeedback/QFeedbackHa...
26.896552
138
0.67674
zccrs
38180331ac38a2f7aff94f68a5a61007e56a9b22
897
cpp
C++
Utils/FieldOfViewChecker.cpp
L0rd1k/VisualKIT
d4ffb399cb69fe926fb093846b94fd02ac0826f2
[ "MIT" ]
10
2020-03-03T14:29:41.000Z
2022-03-26T15:40:31.000Z
Utils/FieldOfViewChecker.cpp
L0rd1k/VisualKIT
d4ffb399cb69fe926fb093846b94fd02ac0826f2
[ "MIT" ]
null
null
null
Utils/FieldOfViewChecker.cpp
L0rd1k/VisualKIT
d4ffb399cb69fe926fb093846b94fd02ac0826f2
[ "MIT" ]
null
null
null
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: FieldOfViewChecker.cpp * Author: ilya * * Created on November 19, 2019, 12:49 PM */ #include "FieldOfViewChecker....
25.628571
79
0.702341
L0rd1k
381ca0a284819d7abe03040d408e100620b3650a
5,235
cpp
C++
bcos-tars-protocol/protocol/BlockImpl.cpp
chuwen95/FISCO-BCOS
e9cc29151c90dd1f4634f4d52ba773bb216700ac
[ "Apache-2.0" ]
1
2022-03-06T10:46:12.000Z
2022-03-06T10:46:12.000Z
bcos-tars-protocol/protocol/BlockImpl.cpp
chuwen95/FISCO-BCOS
e9cc29151c90dd1f4634f4d52ba773bb216700ac
[ "Apache-2.0" ]
null
null
null
bcos-tars-protocol/protocol/BlockImpl.cpp
chuwen95/FISCO-BCOS
e9cc29151c90dd1f4634f4d52ba773bb216700ac
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2021 FISCO BCOS. * SPDX-License-Identifier: Apache-2.0 * 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 * * Un...
31.160714
98
0.693983
chuwen95
381d5fe3dbccae9629fe81ae99ef0d73e19b7317
332
cpp
C++
Libraries/RobsJuceModules/rosic/analysis/rosic_EnvelopeFollower.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Libraries/RobsJuceModules/rosic/analysis/rosic_EnvelopeFollower.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Libraries/RobsJuceModules/rosic/analysis/rosic_EnvelopeFollower.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
//#include "rosic_EnvelopeFollower.h" //using namespace rosic; // Construction/Destruction: EnvelopeFollower::EnvelopeFollower() { mode = 1; // mean absolute value } EnvelopeFollower::~EnvelopeFollower() { } // Setup: void EnvelopeFollower::setMode(int Mode) { if( Mode >= MEAN_ABS && Mode < NUM_MODES ) mo...
15.090909
44
0.698795
RobinSchmidt
381ddf9c3ad82ec8cbeaa0b653ecb66cbb8d057a
1,261
cpp
C++
vsproj/PointLight.cpp
nguillemot/spooky
e8a3ccb7ee58b70b289b2643ce5b35350d4cc785
[ "MIT" ]
null
null
null
vsproj/PointLight.cpp
nguillemot/spooky
e8a3ccb7ee58b70b289b2643ce5b35350d4cc785
[ "MIT" ]
1
2016-09-12T18:27:38.000Z
2016-09-12T18:28:25.000Z
vsproj/PointLight.cpp
nguillemot/spooky
e8a3ccb7ee58b70b289b2643ce5b35350d4cc785
[ "MIT" ]
null
null
null
#include "PointLight.h" #include <iostream> PointLight::PointLight() { } PointLight::~PointLight() { } PointLight::PointLight(const PointLight& copy_from) { pLight.LightColor = copy_from.pLight.LightColor; pLight.LightPosition = copy_from.pLight.LightPosition; pLight.AmbientLightColor = copy_from.pLight.Ambient...
18.275362
68
0.746233
nguillemot
3821d1764bdbf16b2a280a706cf2c97a1aeb51bb
2,116
cpp
C++
framework/areg/trace/private/LoggerBase.cpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
70
2021-07-20T11:26:16.000Z
2022-03-27T11:17:43.000Z
framework/areg/trace/private/LoggerBase.cpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
32
2021-07-31T05:20:44.000Z
2022-03-20T10:11:52.000Z
framework/areg/trace/private/LoggerBase.cpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
40
2021-11-02T09:45:38.000Z
2022-03-27T11:17:46.000Z
/************************************************************************ * This file is part of the AREG SDK core engine. * AREG SDK is dual-licensed under Free open source (Apache version 2.0 * License) and Commercial (with various pricing models) licenses, depending * on the nature of the project (commercial, re...
33.587302
103
0.653592
Ali-Nasrolahi
3823cded0aca4feea941da2e1de65517ca6c1848
111,958
cpp
C++
Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/generated/images/src/MainMenu/demo_button_04_pressed.cpp
ramkumarkoppu/NUCLEO-F767ZI-ESW
85e129d71ee8eccbd0b94b5e07e75b6b91679ee8
[ "MIT" ]
null
null
null
Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/generated/images/src/MainMenu/demo_button_04_pressed.cpp
ramkumarkoppu/NUCLEO-F767ZI-ESW
85e129d71ee8eccbd0b94b5e07e75b6b91679ee8
[ "MIT" ]
null
null
null
Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Demonstrations/TouchGFX/Gui/generated/images/src/MainMenu/demo_button_04_pressed.cpp
ramkumarkoppu/NUCLEO-F767ZI-ESW
85e129d71ee8eccbd0b94b5e07e75b6b91679ee8
[ "MIT" ]
null
null
null
// Generated by imageconverter. Please, do not edit! #include <touchgfx/hal/Config.hpp> LOCATION_EXTFLASH_PRAGMA KEEP extern const unsigned char _demo_button_04_pressed[] LOCATION_EXTFLASH_ATTRIBUTE = { // 134x55 RGB565 pixels. 0x00,0x00,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,0x05,0x01,...
108.486434
160
0.792779
ramkumarkoppu
3824965739957beae561460ccec5c7bab1d4fc87
6,429
cpp
C++
modules/animationqt/src/widgets/keyframesequencewidgetqt.cpp
BioDataAnalysis/inviwo
6ca6fdd28837229ec1fdfa38d7ab35f3f07dd75b
[ "BSD-2-Clause" ]
null
null
null
modules/animationqt/src/widgets/keyframesequencewidgetqt.cpp
BioDataAnalysis/inviwo
6ca6fdd28837229ec1fdfa38d7ab35f3f07dd75b
[ "BSD-2-Clause" ]
null
null
null
modules/animationqt/src/widgets/keyframesequencewidgetqt.cpp
BioDataAnalysis/inviwo
6ca6fdd28837229ec1fdfa38d7ab35f3f07dd75b
[ "BSD-2-Clause" ]
null
null
null
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2018-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
39.685185
97
0.690154
BioDataAnalysis
3826493a538c177b705b60750827079f197dd7f3
162
cpp
C++
Game/Client/WXCore/Core/WXObjectFactory.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXCore/Core/WXObjectFactory.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXCore/Core/WXObjectFactory.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "WXObjectFactory.h" #include "WXObject.h" namespace WX { void ObjectFactory::destroyInstance(Object* object) { delete object; } }
12.461538
55
0.654321
hackerlank
38266974dbd08c54f5a98e37605ab216390edda9
614
cpp
C++
test/framework/test_logger.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
1,467
2016-10-25T12:27:19.000Z
2022-03-28T04:32:05.000Z
test/framework/test_logger.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
2,366
2016-10-25T10:07:57.000Z
2022-03-31T22:03:24.000Z
test/framework/test_logger.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
662
2016-10-26T04:41:22.000Z
2022-03-31T04:15:02.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "framework/test_logger.hpp" #include "logger/logger_manager.hpp" logger::LoggerManagerTreePtr getTestLoggerManager( const logger::LogLevel &log_level) { static logger::LoggerManagerTreePtr log_manager(...
29.238095
77
0.7443
akshatkarani
38284f4dab2e48a712004c651ca40d48d9dfb3f2
287
cpp
C++
pointers_again/pointer_1.cpp
sahilduhan/Learn-C-plus-plus
80dba2ee08b36985deb297293a0318da5d6ace94
[ "RSA-MD" ]
null
null
null
pointers_again/pointer_1.cpp
sahilduhan/Learn-C-plus-plus
80dba2ee08b36985deb297293a0318da5d6ace94
[ "RSA-MD" ]
null
null
null
pointers_again/pointer_1.cpp
sahilduhan/Learn-C-plus-plus
80dba2ee08b36985deb297293a0318da5d6ace94
[ "RSA-MD" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int a = 100; int *p = &a; // p is a pointer to an integer which points towards the adress of a cout << " the adress of a is " << p << endl; cout << " the adress of the next is " << p + 1 << endl; return 0; }
26.090909
85
0.571429
sahilduhan
383af8b80b765fd9ce022005c7bf83bd2e15e3e4
4,295
cpp
C++
source/MultiLibrary/Media/SoundSource.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
2
2018-06-22T12:43:57.000Z
2019-05-31T21:56:27.000Z
source/MultiLibrary/Media/SoundSource.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
1
2017-09-09T01:21:31.000Z
2017-11-12T17:52:56.000Z
source/MultiLibrary/Media/SoundSource.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
1
2022-03-30T18:57:41.000Z
2022-03-30T18:57:41.000Z
/************************************************************************* * MultiLibrary - https://danielga.github.io/multilibrary/ * A C++ library that covers multiple low level systems. *------------------------------------------------------------------------ * Copyright (c) 2014-2022, Daniel Almeida * All righ...
29.02027
95
0.71362
danielga
383c2ad1cae19ddb3858e1d099787efd60f93368
325
tpp
C++
rb_tree/includes/btree_apply_infix.tpp
paulahemsi/ft_containers
c7d6c878c25bf4faeb60f86f977639c8a7006776
[ "MIT" ]
1
2022-03-02T15:14:16.000Z
2022-03-02T15:14:16.000Z
rb_tree/includes/btree_apply_infix.tpp
paulahemsi/ft_containers
c7d6c878c25bf4faeb60f86f977639c8a7006776
[ "MIT" ]
73
2021-12-11T18:54:53.000Z
2022-03-28T01:32:52.000Z
rb_tree/includes/btree_apply_infix.tpp
paulahemsi/ft_containers
c7d6c878c25bf4faeb60f86f977639c8a7006776
[ "MIT" ]
null
null
null
#ifndef BTREE_APPLY_INFIX_TPP #define BTREE_APPLY_INFIX_TPP #include "btree.tpp" template <class T> void btree_apply_infix(ft::btree<T> *root, void (*applyf)(const T*)) { if (!root || is_nil(root)) return; btree_apply_infix(root->left, applyf); applyf(root->item); btree_apply_infix(root->right, applyf); } #e...
17.105263
68
0.726154
paulahemsi
3840c0b8543ce8833bc13189f64afd2ab3f0a90d
23,729
cpp
C++
sdl1/cannonball/src/main/hwvideo/hwroad.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
sdl1/cannonball/src/main/hwvideo/hwroad.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
sdl1/cannonball/src/main/hwvideo/hwroad.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
#include <cstring> // memcpy #include "hwvideo/hwroad.hpp" #include "globals.hpp" #include "frontend/config.hpp" /*************************************************************************** Video Emulation: OutRun Road Rendering Hardware. Based on MAME source code. Copyright Aaron Giles. All rights re...
36.618827
142
0.435838
pdpdds
38455ccbd33cea36f2acc4d1768a2df1e9696def
17,502
cpp
C++
src/network_stores/src/jsub_callbacks.cpp
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
null
null
null
src/network_stores/src/jsub_callbacks.cpp
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
null
null
null
src/network_stores/src/jsub_callbacks.cpp
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
null
null
null
/** * @file jsub_callbacks.cpp This file contains handlers for the * Network Library subscriber callbacks. * * @section LICENSE * * Source code in 3rd-party is licensed and owned by their respective * copyright holders. * * All other source code is copyright Tresys Technology and licensed as below. * * Copyright (c) 20...
26.884793
112
0.721003
yulicrunchy
3845895e575a59b58c530274848359c48cb6d098
1,856
cpp
C++
app/src/main/cpp/GameApplication.cpp
KoreanGinseng/2d_shooting_game_for_android
be21b4f4bbf8326c834f2148f6ab6337fd2c0518
[ "MIT" ]
null
null
null
app/src/main/cpp/GameApplication.cpp
KoreanGinseng/2d_shooting_game_for_android
be21b4f4bbf8326c834f2148f6ab6337fd2c0518
[ "MIT" ]
null
null
null
app/src/main/cpp/GameApplication.cpp
KoreanGinseng/2d_shooting_game_for_android
be21b4f4bbf8326c834f2148f6ab6337fd2c0518
[ "MIT" ]
null
null
null
/******************************************************************************/ /*! @file GameApplication.cpp @brief ゲームアプリケーションクラス実装ファイル *******************************************************************************/ #include "GameApplication.h" using namespace Shooting2D; /*************************...
33.745455
80
0.386853
KoreanGinseng
38471ec692cf3fb79f8f69e8bb522db856b9adc0
6,787
cpp
C++
third_party/opencore-audio/gsm_amr/amr_nb/common/src/ph_disp_tab.cpp
asveikau/audio
4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290
[ "0BSD" ]
null
null
null
third_party/opencore-audio/gsm_amr/amr_nb/common/src/ph_disp_tab.cpp
asveikau/audio
4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290
[ "0BSD" ]
null
null
null
third_party/opencore-audio/gsm_amr/amr_nb/common/src/ph_disp_tab.cpp
asveikau/audio
4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290
[ "0BSD" ]
null
null
null
/* ------------------------------------------------------------------ * Copyright (C) 2008 PacketVideo * * 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/li...
35.165803
89
0.398556
asveikau
3848339fd71227afed4ea80e324561f03b125856
1,781
cpp
C++
QubGL/src/Rendering/Mesh.cpp
festivaledu/QubGL
2ab1def8a654868fa010f3384ef8937b257cc111
[ "MIT" ]
null
null
null
QubGL/src/Rendering/Mesh.cpp
festivaledu/QubGL
2ab1def8a654868fa010f3384ef8937b257cc111
[ "MIT" ]
null
null
null
QubGL/src/Rendering/Mesh.cpp
festivaledu/QubGL
2ab1def8a654868fa010f3384ef8937b257cc111
[ "MIT" ]
null
null
null
// // Mesh.cpp // QubGL // // Copyright © 2020 Team FESTIVAL. All rights reserved. // #include "Mesh.hpp" #include <iostream> #include "ElementBufferObject.hpp" #include "Material.hpp" #include "Vertex.hpp" #include "VertexArrayObject.hpp" #include "VertexBufferObject.hpp" Mesh::Mesh(std::vector<Vertex>& vertice...
20.011236
122
0.651319
festivaledu
38499074995745c03f3829d2214b884e45fb9cd2
96
cpp
C++
src/node.cpp
fMalinka/sem1R
fab02834ec73b9b85550a7013741902da1010e72
[ "MIT" ]
null
null
null
src/node.cpp
fMalinka/sem1R
fab02834ec73b9b85550a7013741902da1010e72
[ "MIT" ]
null
null
null
src/node.cpp
fMalinka/sem1R
fab02834ec73b9b85550a7013741902da1010e72
[ "MIT" ]
null
null
null
#include "node.h" Node::Node() { //std::vector<edge> *relationship; } Node::~Node() { }
7.384615
38
0.552083
fMalinka
38499397174f03255678ddd633cbd016d85d840b
8,434
cpp
C++
src/gerbil/KmerDistributor.cpp
danflomin/gerbil
699826e07c81a5bcb045d23ebc33371b124115ca
[ "MIT" ]
37
2017-01-04T12:31:47.000Z
2022-03-11T08:47:32.000Z
src/gerbil/KmerDistributor.cpp
danflomin/gerbil
699826e07c81a5bcb045d23ebc33371b124115ca
[ "MIT" ]
18
2016-05-06T07:58:48.000Z
2022-02-17T04:11:17.000Z
src/gerbil/KmerDistributor.cpp
danflomin/gerbil
699826e07c81a5bcb045d23ebc33371b124115ca
[ "MIT" ]
13
2016-05-16T12:52:50.000Z
2022-03-02T19:26:50.000Z
/* * KmerDistributer.cpp * * Created on: Jan 22, 2016 * Author: rechner */ #include "../../include/gerbil/KmerDistributer.h" #include "../../include/gerbil/config.h" #include <stdio.h> #include <cmath> #include <cstring> #include <climits> #include <map> #include <algorithm> #include <sstream> namespace ge...
30.669091
132
0.623429
danflomin
384d6369e11578437894de056daf3ff41eb928b1
9,189
hpp
C++
tpls/pressio/include/pressio/utils/logger/spdlog/details/registry.hpp
fnrizzi/pressio-demoapps
6ff10bbcf4d526610580940753c9620725bff1ba
[ "BSD-3-Clause" ]
29
2019-11-11T13:17:57.000Z
2022-03-16T01:31:31.000Z
tpls/pressio/include/pressio/utils/logger/spdlog/details/registry.hpp
fnrizzi/pressio-demoapps
6ff10bbcf4d526610580940753c9620725bff1ba
[ "BSD-3-Clause" ]
303
2019-09-30T10:15:41.000Z
2022-03-30T08:24:04.000Z
tpls/pressio/include/pressio/utils/logger/spdlog/details/registry.hpp
fnrizzi/pressio-demoapps
6ff10bbcf4d526610580940753c9620725bff1ba
[ "BSD-3-Clause" ]
4
2020-07-07T03:32:36.000Z
2022-03-10T05:21:42.000Z
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #ifndef UTILS_LOGGER_SPDLOG_DETAILS_REGISTRY_HPP_ #define UTILS_LOGGER_SPDLOG_DETAILS_REGISTRY_HPP_ // Loggers registry of unique name->logger pointer // An attempt to create a lo...
26.868421
100
0.688541
fnrizzi
384ea49223a428bcef5d10b66d931c3d10ace61d
2,798
cpp
C++
src/bar_widget.cpp
cbeck88/HexWarfare
94a70b1889afc2fbd990892ed66be874ac70d1b4
[ "Apache-2.0" ]
null
null
null
src/bar_widget.cpp
cbeck88/HexWarfare
94a70b1889afc2fbd990892ed66be874ac70d1b4
[ "Apache-2.0" ]
null
null
null
src/bar_widget.cpp
cbeck88/HexWarfare
94a70b1889afc2fbd990892ed66be874ac70d1b4
[ "Apache-2.0" ]
null
null
null
/* Copyright 2014 Kristina Simpson <sweet.kristas@gmail.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 app...
30.086022
104
0.686562
cbeck88
384ed0f44997e7818e229d719c76a8722cd2a7c6
3,781
cc
C++
mwrap/example/fem/src/elastic2d.cc
ejyoo921/FMM3D
6aeb4031340c1aeca0754f0fd2b7ef8e754a449e
[ "Apache-2.0" ]
31
2015-07-10T08:25:10.000Z
2021-10-15T12:39:49.000Z
mwrap/example/fem/src/elastic2d.cc
ejyoo921/FMM3D
6aeb4031340c1aeca0754f0fd2b7ef8e754a449e
[ "Apache-2.0" ]
6
2020-07-06T02:24:03.000Z
2020-08-10T15:06:35.000Z
mwrap/example/fem/src/elastic2d.cc
ejyoo921/FMM3D
6aeb4031340c1aeca0754f0fd2b7ef8e754a449e
[ "Apache-2.0" ]
17
2017-03-28T02:50:22.000Z
2022-03-11T14:12:16.000Z
/* * elastic2d.cc * Element type for 2D elasticity (4 node quad only). * * Copyright (c) 2007 David Bindel * See the file COPYING for copying permissions */ #include "etype.h" #include "mesh.h" #include "elastic2d.h" #include "quad2d.h" #include "gauss2by2.h" #include <string.h> #define ME Elastic2D ME::ME...
21.729885
61
0.427665
ejyoo921
384f638fdca397c8059b2b35004ba99e4e4d61ea
15,355
cpp
C++
OpenTESArena/src/Media/TextureUtils.cpp
TotalCaesar659/OpenTESArena
e72eda7a5e03869309b5ed7375f432d0ad826ff3
[ "MIT" ]
null
null
null
OpenTESArena/src/Media/TextureUtils.cpp
TotalCaesar659/OpenTESArena
e72eda7a5e03869309b5ed7375f432d0ad826ff3
[ "MIT" ]
null
null
null
OpenTESArena/src/Media/TextureUtils.cpp
TotalCaesar659/OpenTESArena
e72eda7a5e03869309b5ed7375f432d0ad826ff3
[ "MIT" ]
null
null
null
#include <algorithm> #include "TextureUtils.h" #include "../Assets/ArenaTextureName.h" #include "../Math/Rect.h" #include "../Media/TextureManager.h" #include "../Rendering/Renderer.h" #include "../UI/ArenaFontName.h" #include "../UI/FontLibrary.h" #include "../UI/Surface.h" #include "../UI/TextAlignment.h" #include "...
37.820197
121
0.730511
TotalCaesar659
ee2c53c0d076a24737f2fadf8282c91e61f5c46e
1,188
cpp
C++
dataset/test/modification/1486_all/32/transformation_1.cpp
Karina5005/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
3
2022-02-15T00:29:39.000Z
2022-03-15T08:36:44.000Z
dataset/test/modification/1486_all/32/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
dataset/test/modification/1486_all/32/transformation_1.cpp
Kira5005-code/Plagiarism
ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb
[ "MIT" ]
null
null
null
#include <iomanip> #include <iostream> #include<bits/stdc++.h> using namespace std; int main(); int main() { int j; cin >> j; if (5 > 3) cout << "new code";for ( ; j--; ) /* 'for' inside */ { int t; cin >> t; int hf_q[t + 1]; int wye_en = 0; lo...
22.415094
65
0.300505
Karina5005
ee322252a1fa099722bffa033a79ab27106e4ffd
1,339
cpp
C++
kactl/stress-tests/geometry/CircleLine.cpp
prince776/CodeBook
874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b
[ "CC0-1.0" ]
17
2021-01-25T12:07:17.000Z
2022-02-26T17:20:31.000Z
kactl/stress-tests/geometry/CircleLine.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
null
null
null
kactl/stress-tests/geometry/CircleLine.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
4
2021-02-28T11:13:44.000Z
2021-11-20T12:56:20.000Z
#include "../utilities/template.h" #include "../utilities/randGeo.h" #include "../../content/geometry/lineDistance.h" #include "../../content/geometry/CircleLine.h" typedef Point<double> P; int main() { { auto res = circleLine(P(0, 0), 1, P(-1, -1), P(1, 1)); assert(res.size() == 2); asser...
26.254902
102
0.512323
prince776
ee3633d6f4961e602ca50ad8472a8ef09ef685fe
6,981
cpp
C++
Shell_simulation_node/src/shell_simulation_node.cpp
shashankkmciv18/Averera
6c59d8e812bfbff3d7470e2ad6e6f12cf5d95109
[ "MIT" ]
null
null
null
Shell_simulation_node/src/shell_simulation_node.cpp
shashankkmciv18/Averera
6c59d8e812bfbff3d7470e2ad6e6f12cf5d95109
[ "MIT" ]
null
null
null
Shell_simulation_node/src/shell_simulation_node.cpp
shashankkmciv18/Averera
6c59d8e812bfbff3d7470e2ad6e6f12cf5d95109
[ "MIT" ]
null
null
null
#include <ros/ros.h> #include<std_msgs/Float64.h> #include<nav_msgs/Odometry.h> #include<math.h> #include<tf/transform_datatypes.h> #include<shell_simulation/Car_Command.h> #include<vector> using namespace std; // Structure for coordinates struct coordinates { float x,y; }; // Class for goal/target points struc...
31.445946
118
0.559232
shashankkmciv18
ee368e8fb43d4e878de7bb297d57d1659d0b8753
446
cpp
C++
src/unity/ios/logging_ios.cpp
devlz303/gulden-official
c624d0383b081fe3ae5e79b4f228a8224e79818e
[ "MIT" ]
null
null
null
src/unity/ios/logging_ios.cpp
devlz303/gulden-official
c624d0383b081fe3ae5e79b4f228a8224e79818e
[ "MIT" ]
null
null
null
src/unity/ios/logging_ios.cpp
devlz303/gulden-official
c624d0383b081fe3ae5e79b4f228a8224e79818e
[ "MIT" ]
1
2020-09-10T09:22:14.000Z
2020-09-10T09:22:14.000Z
// Copyright (c) 2018 The Gulden developers // Authored by: Willem de Jonge (willem@isnapp.nl) // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "../unity_impl.h" #include "gulden_unified_frontend.hpp" ...
23.473684
70
0.733184
devlz303
ee395ea7eebb6a15c65fec1680e5d1f18476e107
1,039
hpp
C++
apps/opencs/model/world/cellcoordinates.hpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/opencs/model/world/cellcoordinates.hpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/opencs/model/world/cellcoordinates.hpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
#ifndef CSM_WOLRD_CELLCOORDINATES_H #define CSM_WOLRD_CELLCOORDINATES_H #include <iosfwd> #include <string> #include <QMetaType> namespace CSMWorld { class CellCoordinates { int mX; int mY; public: CellCoordinates(); CellCoordinates (int x, int y); ...
24.162791
88
0.643888
Bodillium
ee3c4f85c44539b00e1af0bebfad76e50232dc84
2,965
cc
C++
bin/asharing.cc
chyyuu/sv6
1dceb0f462fdcc676a4e0bd03579d682eee15b52
[ "MIT-0" ]
null
null
null
bin/asharing.cc
chyyuu/sv6
1dceb0f462fdcc676a4e0bd03579d682eee15b52
[ "MIT-0" ]
null
null
null
bin/asharing.cc
chyyuu/sv6
1dceb0f462fdcc676a4e0bd03579d682eee15b52
[ "MIT-0" ]
null
null
null
// Tests to drive abstract sharing analysis #include "types.h" #include "user.h" #include <fcntl.h> #include "mtrace.h" #include "pthread.h" #include "rnd.hh" #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <atomic> #include <utility> static int cpu; std::atomic<int> barrier; enum { ncore = 8 ...
18.765823
99
0.543339
chyyuu
ee3ce33328af8ef0ec1385f264581ba0cbafd6e7
906
hpp
C++
shared/math/math_definitions.hpp
mathew235/csgo-internal
2d0744d65191de5801dd93c53ce7811c581e3a89
[ "MIT" ]
130
2019-05-26T09:19:08.000Z
2022-03-22T17:31:46.000Z
shared/math/math_definitions.hpp
mathew235/csgo-internal
2d0744d65191de5801dd93c53ce7811c581e3a89
[ "MIT" ]
13
2019-05-27T16:02:19.000Z
2021-12-31T20:01:47.000Z
shared/math/math_definitions.hpp
mathew235/csgo-internal
2d0744d65191de5801dd93c53ce7811c581e3a89
[ "MIT" ]
52
2019-05-26T09:19:27.000Z
2021-12-07T16:45:28.000Z
#pragma once #define PITCH 0 #define YAW 1 #define ROLL 2 namespace shared::math { /// <summary> /// Converts radians to degrees /// </summary> /// <param name="rad">Radians</param> /// <returns>Degrees</returns> inline float rad2deg( const float rad ) { return static_cast<float>( rad * ( 180.f / M_PI ) ); ...
22.65
66
0.629139
mathew235
ee483af3242a3c8a00820fe19068514018f7290c
2,841
cpp
C++
CO2003/1_Review/q3/main.cpp
Smithienious/hcmut-201
be16b77831aae83ff42e656a181881686c74e674
[ "MIT" ]
null
null
null
CO2003/1_Review/q3/main.cpp
Smithienious/hcmut-201
be16b77831aae83ff42e656a181881686c74e674
[ "MIT" ]
2
2020-10-12T09:57:12.000Z
2020-11-09T11:05:01.000Z
CO2003/1_Review/q3/main.cpp
Smithienious/hcmut-201
be16b77831aae83ff42e656a181881686c74e674
[ "MIT" ]
4
2020-10-12T10:30:56.000Z
2020-12-15T14:46:04.000Z
#include <bits/stdc++.h> using namespace std; class Point { private: double x, y; public: Point() { /* * STUDENT ANSWER * TODO: set zero x-y coordinate */ x = 0; y = 0; } Point(double x, double y) { /* * STUDENT ANSWER ...
21.522727
179
0.491728
Smithienious
ee4857e01074268462a3f224d91c86464ba9ef87
4,378
cpp
C++
taco-oopsla2017/src/storage/array.cpp
peterahrens/FillEstimationIPDPS2017
857b6ee8866a2950aa5721d575d2d7d0797c4302
[ "BSD-3-Clause" ]
null
null
null
taco-oopsla2017/src/storage/array.cpp
peterahrens/FillEstimationIPDPS2017
857b6ee8866a2950aa5721d575d2d7d0797c4302
[ "BSD-3-Clause" ]
null
null
null
taco-oopsla2017/src/storage/array.cpp
peterahrens/FillEstimationIPDPS2017
857b6ee8866a2950aa5721d575d2d7d0797c4302
[ "BSD-3-Clause" ]
null
null
null
#include "taco/storage/array.h" #include <cstring> #include <iostream> #include "taco/type.h" #include "taco/error.h" #include "taco/util/uncopyable.h" #include "taco/util/strings.h" using namespace std; namespace taco { namespace storage { struct Array::Content : util::Uncopyable { Type type; void* data; ...
21.673267
75
0.476473
peterahrens
ee4f9451e5c2fe79d28325d67392fbca9a4a82f1
640
cpp
C++
src/arithmetic/extractor/field.cpp
r3c/tesca
e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8
[ "MIT" ]
2
2016-06-01T14:44:21.000Z
2018-05-04T11:55:02.000Z
src/arithmetic/extractor/field.cpp
r3c/tesca
e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8
[ "MIT" ]
1
2021-03-21T11:36:18.000Z
2021-03-21T14:49:17.000Z
src/arithmetic/extractor/field.cpp
r3c/tesca
e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8
[ "MIT" ]
null
null
null
#include "field.hpp" using namespace Glay; using namespace Tesca::Provision; using namespace Tesca::Storage; using namespace std; namespace Tesca { namespace Arithmetic { FieldExtractor::FieldExtractor (Int32u field, const string& name) : field (field), name (name) { } string FieldExtractor::createN...
16
69
0.690625
r3c
ee52087b5f15639c23b8b0853e576457605c9c47
4,953
cpp
C++
src/EDAF80/assignment1.cpp
4onen/CG_Labs
ad6feb1aa0a301b8d2bf5a6e2dee0ca2d8948b89
[ "MIT" ]
null
null
null
src/EDAF80/assignment1.cpp
4onen/CG_Labs
ad6feb1aa0a301b8d2bf5a6e2dee0ca2d8948b89
[ "MIT" ]
null
null
null
src/EDAF80/assignment1.cpp
4onen/CG_Labs
ad6feb1aa0a301b8d2bf5a6e2dee0ca2d8948b89
[ "MIT" ]
null
null
null
#include "config.hpp" #include "core/FPSCamera.h" #include "core/helpers.hpp" #include "core/Log.h" #include "core/LogView.h" #include "core/Misc.h" #include "core/node.hpp" #include "core/ShaderProgramManager.hpp" #include "core/WindowManager.hpp" #include <imgui.h> #include <external/imgui_impl_glfw_gl3.h> #include...
23.927536
121
0.689077
4onen
ee55801fc43b3bf8df2fab55ee9f5b95846d4c04
27,701
cpp
C++
SOURCES/graphics/renderer/render3d.cpp
IsraelyFlightSimulator/Negev-Storm
86de63e195577339f6e4a94198bedd31833a8be8
[ "Unlicense" ]
1
2021-02-19T06:06:31.000Z
2021-02-19T06:06:31.000Z
src/graphics/renderer/render3d.cpp
markbb1957/FFalconSource
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
[ "BSD-2-Clause" ]
null
null
null
src/graphics/renderer/render3d.cpp
markbb1957/FFalconSource
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
[ "BSD-2-Clause" ]
2
2019-08-20T13:35:13.000Z
2021-04-24T07:32:04.000Z
/***************************************************************************\ Render3D.cpp Scott Randolph December 29, 1995 //JAM 08Jan04 - Begin Major Rewrite \***************************************************************************/ #include <math.h> #include "falclib/include/debuggr.h" #include "...
34.756587
156
0.599798
IsraelyFlightSimulator
ee56cafe19841d2937a8e7b75f728764ab3cd4ba
1,551
cpp
C++
testy/udpbroadcaster/udpbroadcaster.cpp
Wiladams/netops
80020d08b4fc1929ec51c5c8d3c138134dc97c04
[ "MIT" ]
null
null
null
testy/udpbroadcaster/udpbroadcaster.cpp
Wiladams/netops
80020d08b4fc1929ec51c5c8d3c138134dc97c04
[ "MIT" ]
null
null
null
testy/udpbroadcaster/udpbroadcaster.cpp
Wiladams/netops
80020d08b4fc1929ec51c5c8d3c138134dc97c04
[ "MIT" ]
null
null
null
/* Minimalist example of what's required to broadcast UDP packets on a network. You must minimally specify a port number You must also specify an address. By default, we're using the INADDR_BROADCAST address, so this will hit every machine on the local area network. It will probably be safer to use a local s...
26.288136
71
0.728562
Wiladams
ee5a6300152593ba0fe16dc3d624875d5114a1c7
676
cpp
C++
test/src/Core/MouseCodes.cpp
meintte/MyGui
eabda6a8bb19886214db0ca04162f97c594d75a2
[ "Unlicense" ]
null
null
null
test/src/Core/MouseCodes.cpp
meintte/MyGui
eabda6a8bb19886214db0ca04162f97c594d75a2
[ "Unlicense" ]
null
null
null
test/src/Core/MouseCodes.cpp
meintte/MyGui
eabda6a8bb19886214db0ca04162f97c594d75a2
[ "Unlicense" ]
null
null
null
#include <doctest/doctest.h> #include <mygui/Core/MouseCodes.hpp> #include <string> TEST_CASE("MouseCodes") { CHECK(mygui::Mouse::Button0 == 0); CHECK(mygui::Mouse::Button1 == 1); CHECK(mygui::Mouse::Button2 == 2); CHECK(mygui::Mouse::Button3 == 3); CHECK(mygui::Mouse::Button4 == 4); CHECK(myg...
35.578947
63
0.647929
meintte
ee5b933b80fa068deedfbf41a02a35173f5656e4
94
cpp
C++
source/Foo.cpp
davidgtl/GraphKat
ef711f3b510cb25ed59e3363f010e89948975806
[ "MIT" ]
null
null
null
source/Foo.cpp
davidgtl/GraphKat
ef711f3b510cb25ed59e3363f010e89948975806
[ "MIT" ]
null
null
null
source/Foo.cpp
davidgtl/GraphKat
ef711f3b510cb25ed59e3363f010e89948975806
[ "MIT" ]
null
null
null
// // Created by david on 10/02/2020. // #include "Foo.h" Foo::Foo(Bar &bar) : bar(bar) { }
10.444444
34
0.56383
davidgtl
ee5cc67843146500c633dc4746eb4a513675b191
4,859
cc
C++
myping/ping/tcp.cc
svcx8/myping
8ae1c13a549865fa308c2f7ad7b2883344b5f41e
[ "MIT" ]
null
null
null
myping/ping/tcp.cc
svcx8/myping
8ae1c13a549865fa308c2f7ad7b2883344b5f41e
[ "MIT" ]
null
null
null
myping/ping/tcp.cc
svcx8/myping
8ae1c13a549865fa308c2f7ad7b2883344b5f41e
[ "MIT" ]
null
null
null
#include "tcp.hh" #include "misc/net.hh" using std::chrono::duration_cast; using std::chrono::milliseconds; using std::chrono::system_clock; void SetNonBlocking(int socket) { #ifdef _WIN32 u_long mode = 1; ioctlsocket(socket, FIONBIO, &mode); #else int old_opt = fcntl(socket, F_GETFL); int new_opt = ...
33.510345
175
0.526446
svcx8
ee5f55acd457d1553648e9afeb42e153e03e0d36
1,944
hpp
C++
interface/omni/ui/entity_widget_provider.hpp
daniel-kun/omni
ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18
[ "MIT" ]
33
2015-03-21T04:12:45.000Z
2021-04-18T21:44:33.000Z
interface/omni/ui/entity_widget_provider.hpp
daniel-kun/omni
ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18
[ "MIT" ]
null
null
null
interface/omni/ui/entity_widget_provider.hpp
daniel-kun/omni
ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18
[ "MIT" ]
2
2016-03-05T12:57:05.000Z
2017-09-12T10:11:52.000Z
#ifndef OMNI_UI_ENTITY_WIDGET_PROVIDER_HPP #define OMNI_UI_ENTITY_WIDGET_PROVIDER_HPP #include <omni/ui/ui.hpp> #include <omni/ui/entity_widget_provider_base.hpp> #include <QWidget> #include <QKeyEvent> #include <functional> #include <string> #include <memory> namespace omni { namespace core { class context; } } n...
37.384615
176
0.745885
daniel-kun
ee613b51eab92b7025d94887bd9b5ee5c5ded2de
394
cpp
C++
Engine/src/Assets/AssetManager.cpp
Vyraax/VulkanLab
45aeaf576979684bc2a384a50aade276e64c601e
[ "MIT" ]
1
2021-08-06T11:28:18.000Z
2021-08-06T11:28:18.000Z
Engine/src/Assets/AssetManager.cpp
Vyraax/VulkanLab
45aeaf576979684bc2a384a50aade276e64c601e
[ "MIT" ]
null
null
null
Engine/src/Assets/AssetManager.cpp
Vyraax/VulkanLab
45aeaf576979684bc2a384a50aade276e64c601e
[ "MIT" ]
null
null
null
#include <iostream> #include <filesystem> #include "AssetManager.h" #include "../Shaders/Shader.h" namespace fs = std::filesystem; AssetManager::AssetManager(const char* bin_path) { this->root_dir = fs::canonical(fs::path(fs::current_path() / fs::path("../shaders/"))).string(); std::cout << "Shaders directory...
24.625
100
0.675127
Vyraax
ee61a7fc6e312c8eb8c5dd3ed622b01ac5796678
1,474
cpp
C++
PhysicsMaybe/Sphere.cpp
ElectroBean/IntroToPhysics
0609174025cda25fa78d86e6eb4650ff130b59ef
[ "MIT" ]
null
null
null
PhysicsMaybe/Sphere.cpp
ElectroBean/IntroToPhysics
0609174025cda25fa78d86e6eb4650ff130b59ef
[ "MIT" ]
null
null
null
PhysicsMaybe/Sphere.cpp
ElectroBean/IntroToPhysics
0609174025cda25fa78d86e6eb4650ff130b59ef
[ "MIT" ]
null
null
null
#include "Sphere.h" #include "RigidBody.h" #include <Renderer2D.h> #include <Gizmos.h> Sphere::Sphere(glm::vec2 position, glm::vec2 velocity, float mass, bool kinematic, float radius, float linearDrag, float angularDrag, float elasticity, glm::vec4 colour) : RigidBody(SPHERE, position, velocity, 0, mass, kinematic, 0...
26.8
169
0.713704
ElectroBean
ee64c8ab261a9460de3a9153b9d166822cea5f97
975
cpp
C++
Graphs/no_of_connected_comp.cpp
git-elliot/competitive_programming_codes
b8b5646ae5074b453e7f1af982af174b9c4138e1
[ "MIT" ]
1
2021-06-20T17:28:54.000Z
2021-06-20T17:28:54.000Z
Graphs/no_of_connected_comp.cpp
git-elliot/competitive_programming_codes
b8b5646ae5074b453e7f1af982af174b9c4138e1
[ "MIT" ]
null
null
null
Graphs/no_of_connected_comp.cpp
git-elliot/competitive_programming_codes
b8b5646ae5074b453e7f1af982af174b9c4138e1
[ "MIT" ]
null
null
null
// Find number of connected components in an undirected graph #include <iostream> #include <vector> using namespace std; vector<int> parent; int find(int w){ if(w == parent[w]){ return w; } return find(parent[w]); } void doUnion(int u, int v){ int uP = find(u); int vP = find(v); par...
17.727273
62
0.532308
git-elliot
ee661d5d99664556748e1f3d3c9946146b7ba652
14,177
cpp
C++
src/html.cpp
calsev/ork
0247981395e28d68b3a446f62b2e426ea752a322
[ "MIT" ]
null
null
null
src/html.cpp
calsev/ork
0247981395e28d68b3a446f62b2e426ea752a322
[ "MIT" ]
4
2018-01-19T01:24:28.000Z
2018-01-19T01:27:07.000Z
src/html.cpp
calsev/ork
0247981395e28d68b3a446f62b2e426ea752a322
[ "MIT" ]
null
null
null
/* This file is part of the ORK library. Full copyright and license terms can be found in the LICENSE.txt file. */ #include "ork/ork.hpp" #define ORK_STL_INC_FILE <string> #include "ork/core/stl_include.inl" #define ORK_STL_INC_FILE <sstream> #include "ork/core/stl_include.inl" #include "ork/html.hpp" namespace ork {...
26.648496
131
0.533822
calsev
ee67959d94149b0b90f698e30424b7ac81b1807b
1,214
cpp
C++
Submissions/Codeforces/186A.cpp
purhan/mindsport
d14fe8917c64b475589f494d98b74e99c9e064e5
[ "MIT" ]
null
null
null
Submissions/Codeforces/186A.cpp
purhan/mindsport
d14fe8917c64b475589f494d98b74e99c9e064e5
[ "MIT" ]
null
null
null
Submissions/Codeforces/186A.cpp
purhan/mindsport
d14fe8917c64b475589f494d98b74e99c9e064e5
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define fo(int, i, a, b) for (int i=a; i<(b); i++) #define forev(int, i, b, a) for (int i = (b)-1; i >= a; i--) #define uns unsigned #define lli long long int #define ld long double #define all(x) ...
25.291667
75
0.442339
purhan
ee691a9a0f0436a7916f89d82b7b286d86a6b921
643
cpp
C++
Leetcode/minimum-subsequence-in-non-increasing-order.cpp
gnomegeek/cp-submissions
c046be42876794d7cc6216db4e44a23c1174742d
[ "MIT" ]
null
null
null
Leetcode/minimum-subsequence-in-non-increasing-order.cpp
gnomegeek/cp-submissions
c046be42876794d7cc6216db4e44a23c1174742d
[ "MIT" ]
null
null
null
Leetcode/minimum-subsequence-in-non-increasing-order.cpp
gnomegeek/cp-submissions
c046be42876794d7cc6216db4e44a23c1174742d
[ "MIT" ]
null
null
null
class Solution { public: vector<int> minSubsequence(vector<int>& nums) { sort(nums.begin(), nums.end()); int sum = 0; for (int i = 0; i < nums.size(); i++) sum += nums[i]; int start = -1; int curSum = 0; for (int i = 0; i < nums.size(); i++) { curSum +...
24.730769
64
0.401244
gnomegeek
ee6cd880c16b6a3701d3fbcfc2bf8fe711c55e38
3,587
hpp
C++
data-struct/cht/ConvexHullTrickAddMonotone.hpp
shiomusubi496/library
907f72eb6ee4ac6ef617bb359693588167f779e7
[ "MIT" ]
3
2021-11-04T08:45:12.000Z
2021-11-29T08:44:26.000Z
data-struct/cht/ConvexHullTrickAddMonotone.hpp
shiomusubi496/library
907f72eb6ee4ac6ef617bb359693588167f779e7
[ "MIT" ]
null
null
null
data-struct/cht/ConvexHullTrickAddMonotone.hpp
shiomusubi496/library
907f72eb6ee4ac6ef617bb359693588167f779e7
[ "MIT" ]
null
null
null
#pragma once #include "../../other/template.hpp" template<class T = ll, bool is_max = false, class LargeT = __int128_t> class ConvexHullTrickAddMonotone { protected: struct Line { T a, b; bool is_query; mutable ll nxt_a, nxt_b; mutable bool has_nxt; T get(T x) const { ret...
35.514851
105
0.4954
shiomusubi496
ee722ddf5b56d5772f624b45b67cadad3afb8208
11,200
cpp
C++
engine/src/ph/renderer/ImGuiRenderer.cpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/src/ph/renderer/ImGuiRenderer.cpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/src/ph/renderer/ImGuiRenderer.cpp
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. //...
38.356164
107
0.754375
PetorSFZ
ee7579543308d2ff64eda343664c8333de5189a8
546
cpp
C++
src/core/Hit.cpp
nagato0614/pathtracing
1295b6fb38a89ca15e4da240208b612a22cb45d2
[ "MIT" ]
null
null
null
src/core/Hit.cpp
nagato0614/pathtracing
1295b6fb38a89ca15e4da240208b612a22cb45d2
[ "MIT" ]
6
2018-09-16T14:16:51.000Z
2018-09-16T14:33:22.000Z
src/core/Hit.cpp
nagato0614/Pathtracing
1295b6fb38a89ca15e4da240208b612a22cb45d2
[ "MIT" ]
null
null
null
// // Created by 長井亨 on 2018/07/18. // #include "Hit.hpp" namespace nagato { Hit::Hit(float d, Vector3 p, Vector3 n, Object *sphere) : distance(d), point(p), normal(n), object(sphere) { } Hit::Hit() { } const float Hit::getDistance() const { return distance; ...
16.058824
62
0.53663
nagato0614
ee82252e4f79331e3af18e529f28cf25a25f0ed0
2,203
cpp
C++
ThunkLibs/libSDL2/libSDL2_Guest.cpp
duck-37/FEX
fbda0e7ba521d151d3448f5d664da6879686cff8
[ "MIT" ]
null
null
null
ThunkLibs/libSDL2/libSDL2_Guest.cpp
duck-37/FEX
fbda0e7ba521d151d3448f5d664da6879686cff8
[ "MIT" ]
null
null
null
ThunkLibs/libSDL2/libSDL2_Guest.cpp
duck-37/FEX
fbda0e7ba521d151d3448f5d664da6879686cff8
[ "MIT" ]
null
null
null
#include <SDL2/SDL.h> #include <SDL2/SDL_syswm.h> #include <GL/glx.h> #include <dlfcn.h> #include <stdio.h> #include <cstring> #include <map> #include <string> #include <stdarg.h> #include "common/Guest.h" #include "thunks.inl" #include "function_packs.inl" #include "function_packs_public.inl" LOAD_LIB(libSDL2) #...
33.378788
109
0.662279
duck-37