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
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
67k
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
ec2ec73f474fa18945883ea8e2f68b90c16505c2
1,645
hpp
C++
libcaf_net/caf/net/http/v1.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
libcaf_net/caf/net/http/v1.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
libcaf_net/caf/net/http/v1.hpp
seewpx/actor-framework
65ecf35317b81d7a211848d59e734f43483fe410
[ "BSD-3-Clause" ]
null
null
null
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/byte_span.hpp" #include "caf/detail/net_export.hpp" #include "...
40.121951
79
0.68997
seewpx
ec30e5ce0bcc57fc07b313ca33ef1b05123d8737
2,089
cpp
C++
lib-dmxserial/src/serial/serialspi.cpp
vanvught/rpidmx512
b56bb2db406247b4fd4c56aa372952939f4a3290
[ "MIT" ]
328
2015-02-26T09:54:16.000Z
2022-03-31T11:04:00.000Z
lib-dmxserial/src/serial/serialspi.cpp
vanvught/rpidmx512
b56bb2db406247b4fd4c56aa372952939f4a3290
[ "MIT" ]
195
2016-07-13T10:43:37.000Z
2022-03-20T19:14:55.000Z
lib-dmxserial/src/serial/serialspi.cpp
vanvught/rpidmx512
b56bb2db406247b4fd4c56aa372952939f4a3290
[ "MIT" ]
113
2015-06-08T04:54:23.000Z
2022-02-15T09:06:10.000Z
/** * @file serialspi.cpp * */ /* Copyright (C) 2020-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includin...
26.782051
80
0.748205
vanvught
ec33e1506d3394794f2a6196eef9fa94d4dc6e6e
32,278
cpp
C++
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "CorePrivatePCH.h" #include "LinuxPlatformRunnableThread.h" #include "EngineVersion.h" #include <spawn.h> #include <sys/wait.h> #include <sys/resource.h> #include <sys/ioctl.h> // ioctl #include <asm/ioctls.h> // FIONREAD #include "LinuxApplication....
26.875937
253
0.707045
PopCap
ec349105626f6ef1b4acc73abbf21be54516c61e
4,545
cpp
C++
LaalMathEngine/src/Shape/SvgShape.cpp
vijayshankarkumar/LME
6483d893a8902cec4959936220656fcab2b72d4f
[ "MIT" ]
1
2022-02-18T10:38:42.000Z
2022-02-18T10:38:42.000Z
LaalMathEngine/src/Shape/SvgShape.cpp
vijayshankarkumar/LME
6483d893a8902cec4959936220656fcab2b72d4f
[ "MIT" ]
1
2021-09-03T21:20:38.000Z
2021-09-03T21:20:38.000Z
LaalMathEngine/src/Shape/SvgShape.cpp
vijayshankarkumar/LME
6483d893a8902cec4959936220656fcab2b72d4f
[ "MIT" ]
null
null
null
#include "Shape/SvgShape.h" namespace laal { SvgShape::SvgShape() { } SvgShape::SvgShape(const std::string& fileName) { InitChildShapes(fileName); } SvgShape::~SvgShape() { for (Shape* shape : m_ChildShapes) { delete shape; } } void SvgShape::InitChildShapes(const std::string& fileName) { N...
22.5
91
0.626843
vijayshankarkumar
ec360c64fc078ef775cec6f7c9475b9ced8fe411
1,343
cc
C++
src/leveldb/db/version_edit_test.cc
moorecoin/MooreCoinMiningAlgorithm
fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d
[ "MIT" ]
null
null
null
src/leveldb/db/version_edit_test.cc
moorecoin/MooreCoinMiningAlgorithm
fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d
[ "MIT" ]
null
null
null
src/leveldb/db/version_edit_test.cc
moorecoin/MooreCoinMiningAlgorithm
fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d
[ "MIT" ]
null
null
null
// copyright (c) 2011 the leveldb authors. all rights reserved. // use of this source code is governed by a bsd-style license that can be // found in the license file. see the authors file for names of contributors. #include "db/version_edit.h" #include "util/testharness.h" namespace leveldb { static void testencode...
28.574468
77
0.676098
moorecoin
ec3dedc1db72bb18c98c72b2040a10eee84a5009
62,323
cpp
C++
Analysis/Calibration/LinearCalibrationModel.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
Analysis/Calibration/LinearCalibrationModel.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
Analysis/Calibration/LinearCalibrationModel.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
/* Copyright (C) 2015 Life Technologies Corporation, a part of Thermo Fisher Scientific, Inc. All Rights Reserved. */ //! @file LinearCalibrationModel.cpp //! @ingroup Calibration //! @brief LinearCalibrationModel. Algorithms for adjusting the predicted signal by homopolymer. //! @brief During model trainin...
41.355674
196
0.656194
konradotto
ec3f65192e715686735d0cc87c5ef7837a149342
6,837
cpp
C++
SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp
IllyasvielEin/Robocup3dInstaller
12e91d9372dd08a92feebf98e916c98bc2242ff4
[ "MIT" ]
null
null
null
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
31.506912
124
0.64853
IllyasvielEin
ec411e41e5e7f00fd5988a99752d7abb2b69a426
4,490
cpp
C++
3DShootingGame/Framework/Physics/Rigidbody.cpp
ydeagames/3DShootingGame
f93e15179452810bd55fbfcedb6c162698296ec4
[ "MIT" ]
2
2020-03-30T05:11:51.000Z
2022-01-30T09:04:40.000Z
3DShootingGame/Framework/Physics/Rigidbody.cpp
ydeagames/3DShootingGame
f93e15179452810bd55fbfcedb6c162698296ec4
[ "MIT" ]
null
null
null
3DShootingGame/Framework/Physics/Rigidbody.cpp
ydeagames/3DShootingGame
f93e15179452810bd55fbfcedb6c162698296ec4
[ "MIT" ]
2
2020-03-30T05:11:52.000Z
2020-10-28T02:06:35.000Z
// Copyright (c) 2019-2020 ydeagames // Released under the MIT license // https://github.com/ydeagames/3DShootingGame/blob/master/LICENSE // // Author: ${ydeagames} // Created: 2019-07-22 06:12:28 +0900 // Modified: 2020-01-17 11:44:41 +0900 #include "pch.h" #include "Rigidbody.h" #include "Collidable.h" #include <Fra...
30.753425
162
0.710022
ydeagames
ec41db944c5ccf4371e9f02f77f4024f1882087c
754
cpp
C++
source/native-backend/parsing/TextProcessor.cpp
batburger/Native-Backend
aaed26851e09f9e110061025fb2140aed1b4f9b5
[ "Apache-2.0" ]
null
null
null
source/native-backend/parsing/TextProcessor.cpp
batburger/Native-Backend
aaed26851e09f9e110061025fb2140aed1b4f9b5
[ "Apache-2.0" ]
null
null
null
source/native-backend/parsing/TextProcessor.cpp
batburger/Native-Backend
aaed26851e09f9e110061025fb2140aed1b4f9b5
[ "Apache-2.0" ]
null
null
null
// // Created by albert on 3/17/18. // #include "native-backend/parsing/TextProcessor.h" /*!\brief Finds the value specified as key in \c replacement_map in the \c input_string and replaces it with the value for the key.*/ void nvb::TextProcessor::process(std::string *input_string, std::unordered_map<std::string, std...
41.888889
133
0.706897
batburger
ec452340961e1d815ad437430988dbeaa16cbb3d
1,234
cpp
C++
daolib/CommonQueries.cpp
mfranceschi/SQLiteDao
447da25d15f6332e454f151fb71aa232665d8506
[ "MIT" ]
null
null
null
daolib/CommonQueries.cpp
mfranceschi/SQLiteDao
447da25d15f6332e454f151fb71aa232665d8506
[ "MIT" ]
null
null
null
daolib/CommonQueries.cpp
mfranceschi/SQLiteDao
447da25d15f6332e454f151fb71aa232665d8506
[ "MIT" ]
null
null
null
#include "CommonQueries.hpp" #include <algorithm> #include "magic_enum.hpp" #include <fmt/core.h> #include <fmt/format.h> std::string enquote(const std::string &text) { return fmt::format("`{}`", text); }; namespace CommonQueries { std::string dropTableIfExists(const std::string &tableName) { return fmt::forma...
30.85
79
0.628849
mfranceschi
ec4c7360f6ec7ae840e22bc6ba95fe901cc59e4a
186
cpp
C++
test/test-bits.cpp
mbeutel/slowmath
d09967d168433814896e83af2fbc92bc36e6c4fb
[ "BSL-1.0" ]
1
2021-09-02T07:03:53.000Z
2021-09-02T07:03:53.000Z
test/test-bits.cpp
mbeutel/slowmath
d09967d168433814896e83af2fbc92bc36e6c4fb
[ "BSL-1.0" ]
8
2019-12-03T21:11:07.000Z
2020-02-05T18:44:31.000Z
test/test-bits.cpp
mbeutel/slowmath
d09967d168433814896e83af2fbc92bc36e6c4fb
[ "BSL-1.0" ]
null
null
null
#include <tuple> #include <catch2/catch.hpp> #include <slowmath/arithmetic.hpp> // TODO: add comprehensive tests for shift_left() // TODO: add comprehensive tests for shift_right()
16.909091
50
0.741935
mbeutel
ec4de22693fbd85ce1682b86960c25b1d8fde467
1,614
cpp
C++
HW06/src/utils.cpp
petegerhat/cuda
671c244276828baeeb66e2c4e0e2f9881b666716
[ "Apache-2.0" ]
null
null
null
HW06/src/utils.cpp
petegerhat/cuda
671c244276828baeeb66e2c4e0e2f9881b666716
[ "Apache-2.0" ]
null
null
null
HW06/src/utils.cpp
petegerhat/cuda
671c244276828baeeb66e2c4e0e2f9881b666716
[ "Apache-2.0" ]
null
null
null
/* * File: main.cpp * Author: peter * * Created on March 25, 2012, 1:36 AM */ #ifndef UTILS_H #define UTILS_H #include <cstdlib> #include <iostream> #include <iomanip> #include <math.h> using namespace std; DT& getDistance(DT* distances, int n, int i, int j) { #ifdef DIS1 return distances[i * n + j]; #e...
17.543478
53
0.545229
petegerhat
ec5c747a65793612ebb73d5af99470d314af928a
1,235
cc
C++
common/iterator_test.cc
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
116
2019-01-25T03:54:44.000Z
2022-03-08T00:11:14.000Z
common/iterator_test.cc
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
431
2019-01-25T10:18:44.000Z
2020-06-17T05:28:55.000Z
common/iterator_test.cc
disktnk/chainer-compiler
5cfd027b40ea6e4abf73eb42be70b4fba74d1cde
[ "MIT" ]
26
2019-01-25T07:21:09.000Z
2021-11-26T04:24:35.000Z
#include <gtest/gtest.h> #include <set> #include <vector> #include <common/iterator.h> namespace chainer_compiler { namespace { TEST(IteratorTest, Zip) { std::set<int> ints = {3, 4, 5}; std::vector<std::string> strs = {"a", "b", "c"}; std::vector<std::tuple<int, std::string>> results; for (const aut...
28.068182
56
0.604858
disktnk
ec5f0a1e909552fb2848eaa8bea0b5b849b68c16
575
cpp
C++
Algorithms/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
class Solution { public: const int MOD = (int) 1e9 + 7; int numWays(int steps, int n) { n = min(n,steps+1); vector<vector<int>> dp(steps+1,vector<int>(n,0)); dp[0][0] = 1; for( int s = 1 ; s <= steps ; s++ ) for( int i = 0 ; i < n ; i++ ) { dp[s][i] = ...
31.944444
65
0.353043
metehkaya
ec626a878b49aeca2f8c8eb34f81b11e7ba0e81b
46,255
cpp
C++
net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// RecordingTrackTerminal.cpp: implementation of the CRecordingTrackTerminal class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "RecordingTrackTerminal.h" #include "FileRecordingTerminal.h" #include "..\storage\RendPinFilter.h" #include <formats.h>...
22.955335
141
0.575224
npocmaka
ec62ea93f7707080935e94c530290dd834411df5
23,401
cxx
C++
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
3
2016-05-30T15:12:16.000Z
2022-03-22T08:11:13.000Z
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx
EnEff-BIM/EnEffBIM-Framework
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
[ "MIT" ]
null
null
null
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...
41.271605
164
0.718345
EnEff-BIM
ec6550f7f9b7351b4b82ef1fc9ffef8244d19ad7
5,809
hpp
C++
my_vulkan/command_buffer.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
null
null
null
my_vulkan/command_buffer.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
3
2019-02-25T10:13:57.000Z
2020-11-11T14:46:14.000Z
my_vulkan/command_buffer.hpp
pixelwise/my_vulkan
f1c139ed8f95380186905d77cb8e81008f48bc95
[ "CC0-1.0" ]
null
null
null
#pragma once #include <vulkan/vulkan.h> #include <vector> #include "utils.hpp" namespace my_vulkan { struct command_buffer_t { struct scope_t { scope_t( VkCommandBuffer command_buffer, VkCommandBufferUsageFlags flags ); scope_...
33.773256
72
0.531589
pixelwise
ec669e2811f8c3832ac24e4ccb6ea55c1716d7e3
2,325
cpp
C++
leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp
mingyuefly/leetcode
b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8
[ "MIT" ]
null
null
null
leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp
mingyuefly/leetcode
b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8
[ "MIT" ]
null
null
null
leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp
mingyuefly/leetcode
b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8
[ "MIT" ]
null
null
null
// // main.cpp // Implement Stack using Queues // /** Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Get the top element. empty() -- Return whether the stack is empty. Example: MyStack stack = new My...
25.833333
193
0.603011
mingyuefly
ec68e4787edb502ad2d5e52c90b00576688b9711
1,373
cpp
C++
src/core/main.cpp
Opticalp/instrumentall
f952c1cd54f375dc4cb258fec5af34d14c2b8044
[ "MIT" ]
1
2020-05-19T02:06:55.000Z
2020-05-19T02:06:55.000Z
src/core/main.cpp
Opticalp/instrumentall
f952c1cd54f375dc4cb258fec5af34d14c2b8044
[ "MIT" ]
16
2015-11-18T13:25:30.000Z
2018-05-17T19:25:46.000Z
src/core/main.cpp
Opticalp/instrumentall
f952c1cd54f375dc4cb258fec5af34d14c2b8044
[ "MIT" ]
null
null
null
/** * @file src/core/main.cpp * @date nov. 2015 * @author PhRG / opticalp.fr * * Entry point for the Instrumentall software. * * Using POCO (pocoproject.org) Util Application feature. */ /* Copyright (c) 2015 Ph. Renaud-Goud / Opticalp Permission is hereby granted, free of charge, to any person obtaining a...
36.131579
77
0.778587
Opticalp
ec69358fa56dcbd1b4a63769bb58639a33809df3
762
hpp
C++
matlab/src/bits/nnsimpooling.hpp
taigw/matconvnet-dermoscopy
14429a9f66a116cabafaae252f23bd88f0b910a5
[ "BSD-2-Clause" ]
39
2017-06-15T19:34:26.000Z
2021-12-10T23:25:13.000Z
matlab/src/bits/nnsimpooling.hpp
taigw/matconvnet-dermoscopy
14429a9f66a116cabafaae252f23bd88f0b910a5
[ "BSD-2-Clause" ]
2
2018-06-05T20:34:50.000Z
2019-02-10T19:35:21.000Z
matlab/src/bits/nnsimpooling.hpp
igondia/matconvnet-dermoscopy
038cc2f023d464520517ca6a5fedf95bc09a9edc
[ "BSD-2-Clause" ]
21
2017-06-02T13:00:12.000Z
2021-01-02T11:14:42.000Z
// @file nnpooling.hpp // @brief Pooling block // @author Andrea Vedaldi /* Copyright (C) 2014-16 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #ifndef __vl__nnsimpooling__ #define __vl__...
21.771429
67
0.641732
taigw
ec6dac3adc0af9a1ab1733e9ef7655065611ac44
6,494
cpp
C++
utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
1
2020-04-22T04:07:01.000Z
2020-04-22T04:07:01.000Z
utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp
hyfloac/TauEngine
1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c
[ "MIT" ]
null
null
null
#include <llvm/Support/raw_ostream.h> #include "reflection/attribs/GetAttribute.hpp" #include "reflection/Class.hpp" namespace tau { namespace reflection { namespace attribs { AttributeData GetPropertyAttribute::parseAttribute(const DynString& attribName, const ::clang::MacroArgs*, const ::clang::Token*& currentToken...
74.643678
158
0.345088
hyfloac
ec7446fc4af36d64c68344b4d9619a9098c878d8
3,468
cpp
C++
cpp/godot-cpp/src/gen/TextureLayered.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
1
2021-03-16T09:51:00.000Z
2021-03-16T09:51:00.000Z
cpp/godot-cpp/src/gen/TextureLayered.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
cpp/godot-cpp/src/gen/TextureLayered.cpp
GDNative-Gradle/proof-of-concept
162f467430760cf959f68f1638adc663fd05c5fd
[ "MIT" ]
null
null
null
#include "TextureLayered.hpp" #include <core/GodotGlobal.hpp> #include <core/CoreTypes.hpp> #include <core/Ref.hpp> #include <core/Godot.hpp> #include "__icalls.hpp" #include "Image.hpp" namespace godot { TextureLayered::___method_bindings TextureLayered::___mb = {}; void TextureLayered::___init_method_bindin...
41.783133
154
0.789792
GDNative-Gradle
ec749757eb5106520231af244b31d13744d49a66
2,431
cpp
C++
isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
134
2018-01-18T00:16:24.000Z
2022-03-24T03:53:33.000Z
isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
3,825
2017-12-11T21:27:34.000Z
2022-03-31T21:45:20.000Z
isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp
jlaura/isis3
2c40e08caed09968ea01d5a767a676172ad20080
[ "CC0-1.0" ]
164
2017-11-30T21:15:44.000Z
2022-03-23T10:22:29.000Z
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0 ...
30.3875
75
0.63513
kdl222
3f3c5d302aa9fcea024c627020f5f72bb25c5f8b
2,518
cpp
C++
RenderSystem/Cpu/rtCpuRenderSystem.cpp
CharlesCarley/Raytracer
63f4926846195e45b3620aeea007094857a709d9
[ "MIT" ]
null
null
null
RenderSystem/Cpu/rtCpuRenderSystem.cpp
CharlesCarley/Raytracer
63f4926846195e45b3620aeea007094857a709d9
[ "MIT" ]
null
null
null
RenderSystem/Cpu/rtCpuRenderSystem.cpp
CharlesCarley/Raytracer
63f4926846195e45b3620aeea007094857a709d9
[ "MIT" ]
null
null
null
/* ------------------------------------------------------------------------------- Copyright (c) Charles Carley. 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 gran...
26.787234
79
0.639793
CharlesCarley
3f404a701ec0e6c5ef9feb354a41640bc9ef5dd3
1,966
cc
C++
cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
null
null
null
cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
1
2021-11-19T20:10:09.000Z
2021-11-19T20:10:09.000Z
cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc
sldriedler/mltk
d82a60359cf875f542a2257f1bc7d8eb4bdaa204
[ "Zlib" ]
null
null
null
#if TFLITE_MICRO_RECORDER_ENABLED #include <cstring> #include <cassert> #include "mltk_tflite_micro_recorded_data.hpp" namespace mltk { static TfliteMicroRecordedData _recorded_data; /*************************************************************************************************/ TfliteMicroRecordedData& Tflit...
22.860465
99
0.437436
SiliconLabs
3f47a80f400cd1cc69732af1e9dec95d15ed7b12
954
cpp
C++
src/receptor-bridge/receptors/TiltReceptor.cpp
bistanovski/ShiftEmitter
000f14e3501bfb5d0b65cf2d9bbe8c150c66f391
[ "MIT" ]
null
null
null
src/receptor-bridge/receptors/TiltReceptor.cpp
bistanovski/ShiftEmitter
000f14e3501bfb5d0b65cf2d9bbe8c150c66f391
[ "MIT" ]
3
2018-05-05T19:51:14.000Z
2018-05-06T22:25:41.000Z
src/receptor-bridge/receptors/TiltReceptor.cpp
bistanovski/ShiftEmitter
000f14e3501bfb5d0b65cf2d9bbe8c150c66f391
[ "MIT" ]
null
null
null
#include "TiltReceptor.hpp" #include <QDebug> TiltReceptor::TiltReceptor(QObject *parent) : Receptor(parent) { qDebug() << "TiltReceptor"; } TiltReceptor::~TiltReceptor() { qDebug() << "~TiltReceptor"; } void TiltReceptor::connectReceptor() { QObject::connect(&m_tiltSensor, SIGNAL(readingChanged()), thi...
23.85
94
0.691824
bistanovski
3f4b62d952232e291a04c2a3b2fb320970ea9535
1,063
cpp
C++
src/btr/native_io.nix.cpp
vector-of-bool/batteries
8be07c729e0461e8e0b50c89c5ac9b90e48452a8
[ "BSL-1.0" ]
2
2021-08-02T15:04:33.000Z
2021-08-10T05:07:46.000Z
src/btr/native_io.nix.cpp
vector-of-bool/batteries
8be07c729e0461e8e0b50c89c5ac9b90e48452a8
[ "BSL-1.0" ]
null
null
null
src/btr/native_io.nix.cpp
vector-of-bool/batteries
8be07c729e0461e8e0b50c89c5ac9b90e48452a8
[ "BSL-1.0" ]
null
null
null
#include "./native_io.hpp" #include "./syserror.hpp" using namespace btr; #if !_WIN32 #include <unistd.h> void posix_fd_traits::close(int fd) noexcept { ::close(fd); } std::size_t posix_fd_traits::write(int fd, const_buffer cbuf) { neo_assert(expects, fd != null_handle, "Attempte...
27.25641
70
0.605833
vector-of-bool
3f4ece7a59eb5f75bc51e55c851b7c331440f617
3,081
hpp
C++
include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:15 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.MulticastDelegate #include "System/MulticastDelegate....
54.052632
286
0.776696
Futuremappermydud
3f4fd94e8e029a3067bf411c49d6eb736c47a204
2,650
cpp
C++
src/lowestindexbranchingscheme.cpp
sraaphorst/nibac
288fcc4012065cf8b15dab4fc5f0c829b2b4a65c
[ "Apache-2.0" ]
null
null
null
src/lowestindexbranchingscheme.cpp
sraaphorst/nibac
288fcc4012065cf8b15dab4fc5f0c829b2b4a65c
[ "Apache-2.0" ]
9
2018-05-06T20:27:49.000Z
2018-10-24T23:28:24.000Z
src/lowestindexbranchingscheme.cpp
sraaphorst/nibac
288fcc4012065cf8b15dab4fc5f0c829b2b4a65c
[ "Apache-2.0" ]
null
null
null
/** * lowestindexbranchingscheme.cpp * * By Sebastian Raaphorst, 2003 - 2018. */ #include <map> #include <set> #include <sstream> #include <string> #include "common.h" #include "lowestindexbranchingscheme.h" #include "nibacexception.h" #include "node.h" namespace vorpal::nibac { int LowestIndexBranchingScheme...
35.810811
120
0.526038
sraaphorst
3f50c9431e2adc2e41c156e9fac5231e218f41c7
651
hpp
C++
include/haz/Tools/SourceInfo.hpp
Hazurl/Framework-haz
370348801cd969ce8521264653069923a255e0b0
[ "MIT" ]
null
null
null
include/haz/Tools/SourceInfo.hpp
Hazurl/Framework-haz
370348801cd969ce8521264653069923a255e0b0
[ "MIT" ]
null
null
null
include/haz/Tools/SourceInfo.hpp
Hazurl/Framework-haz
370348801cd969ce8521264653069923a255e0b0
[ "MIT" ]
null
null
null
#ifndef __HAZ_SOURCE_INF #define __HAZ_SOURCE_INF #include <haz/Tools/Macro.hpp> BEG_NAMESPACE_HAZ #define SOURCE_INFO_LIST __LINE__, __PRETTY_FUNCTION__, __FILE__ #define SOURCE_INFO ::haz::SourceInfo(SOURCE_INFO_LIST) struct SourceInfo { inline SourceInfo(unsigned int line, const char* func, const char* file)...
22.448276
78
0.674347
Hazurl
3f5150feae066afa27501536c9e4d4ecb09eae86
171
hpp
C++
cpp/Autogarden/include/pins/interfaces/output.hpp
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
cpp/Autogarden/include/pins/interfaces/output.hpp
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
cpp/Autogarden/include/pins/interfaces/output.hpp
e-dang/Autogarden
b15217e5d4755fc028b8dc4255cbdcb77ead80f4
[ "MIT" ]
null
null
null
#pragma once #include <pins/interfaces/pin.hpp> class IOutputPin : virtual public IPin { public: virtual ~IOutputPin() = default; virtual void connect() = 0; };
17.1
40
0.690058
e-dang
3f51813b9ca97a9e20f84b41c6663a2d08d07cd1
3,225
hh
C++
include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh
srpape/IntroVirt
fe553221c40b8ef71f06e79c9d54d9e123a06c89
[ "Apache-2.0" ]
null
null
null
include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh
srpape/IntroVirt
fe553221c40b8ef71f06e79c9d54d9e123a06c89
[ "Apache-2.0" ]
null
null
null
include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh
srpape/IntroVirt
fe553221c40b8ef71f06e79c9d54d9e123a06c89
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021 Assured Information Security, 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 * * Unless required by a...
30.714286
100
0.688372
srpape
3f53f83a723c80a9ba3a98b0c76669d871de493e
1,342
cpp
C++
src/Collection.cpp
fatehmtd/QtPexelsLib
f38bc62b43444c98935c72164f87aeb9a4021a44
[ "MIT" ]
3
2021-11-19T21:37:41.000Z
2021-12-09T21:20:17.000Z
src/Collection.cpp
fatehmtd/QtPexelsLib
f38bc62b43444c98935c72164f87aeb9a4021a44
[ "MIT" ]
null
null
null
src/Collection.cpp
fatehmtd/QtPexelsLib
f38bc62b43444c98935c72164f87aeb9a4021a44
[ "MIT" ]
null
null
null
#include "../include/Collection.h" qtpexels::Collection::Collection(QObject* parent) : FetchableResource(parent) { } bool qtpexels::Collection::processJSON(const QJsonObject& jsonObject) { _id = jsonObject["id"].toString(); _title = jsonObject["title"].toString(); _description = jsonObject[...
20.96875
70
0.672131
fatehmtd
3f54e3856c78df42fcc6af14574621d6ea764a36
1,342
cpp
C++
src/plane.cpp
Twinklebear/micro-packet
24a35b4ecde7bc0283abba3b03eefe497fb1f138
[ "MIT" ]
12
2015-03-21T01:43:46.000Z
2020-08-05T01:55:37.000Z
src/plane.cpp
Twinklebear/micro-packet
24a35b4ecde7bc0283abba3b03eefe497fb1f138
[ "MIT" ]
null
null
null
src/plane.cpp
Twinklebear/micro-packet
24a35b4ecde7bc0283abba3b03eefe497fb1f138
[ "MIT" ]
null
null
null
#include "plane.h" Plane::Plane(Vec3f pos, Vec3f normal, int material_id) : pos(pos), normal(normal.normalized()), material_id(material_id){} __m256 Plane::intersect(Ray8 &ray, DiffGeom8 &dg) const { const auto vpos = Vec3f_8{pos}; const auto vnorm = Vec3f_8{normal}; const auto t = _mm256_div_ps((vpos - ray.o).dot(...
44.733333
122
0.732489
Twinklebear
3f5538f21dc87bc5c7ac85ae5d1c154a908cade1
8,538
cpp
C++
src/cdcarduino.cpp
gdsports/cdcarduino_uhs2
40e39265a1009cff53d85460939066d87b917866
[ "MIT" ]
3
2020-06-04T11:31:10.000Z
2021-10-03T03:03:50.000Z
src/cdcarduino.cpp
gdsports/cdcarduino_uhs2
40e39265a1009cff53d85460939066d87b917866
[ "MIT" ]
null
null
null
src/cdcarduino.cpp
gdsports/cdcarduino_uhs2
40e39265a1009cff53d85460939066d87b917866
[ "MIT" ]
null
null
null
/* * Arduino board serial console port USB CDC ACM. * This adds to the generic CDC ACM class, Arduino board detection and * board reset. Works for Uno and Mega/Mega2560. Includes experimental * code for Leonardo(32u4) and Nano Every (4809) but they are not supported. */ /* * MIT License * * Copyright (c) 2019 ...
26.030488
97
0.656711
gdsports
3f56037fcbef6bda39ff9d24e5fb8fa7a61e044f
4,177
cpp
C++
Source/RenderMotion.cpp
marcussvensson92/vulkan_testbed
6cfbee9fd5fb245f10c1d5694812eda6232b9a6c
[ "MIT" ]
10
2020-03-26T08:51:29.000Z
2021-08-17T07:43:12.000Z
Source/RenderMotion.cpp
marcussvensson92/vulkan_testbed
6cfbee9fd5fb245f10c1d5694812eda6232b9a6c
[ "MIT" ]
null
null
null
Source/RenderMotion.cpp
marcussvensson92/vulkan_testbed
6cfbee9fd5fb245f10c1d5694812eda6232b9a6c
[ "MIT" ]
null
null
null
#include "RenderMotion.h" #include "VkUtil.h" void RenderMotion::Create(const RenderContext& rc) { // Generate { VkDescriptorSetLayoutBinding set_layout_bindings[] = { { 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL }, { 1, VK_DESCRIPTOR_TYP...
37.630631
169
0.762988
marcussvensson92
3f58aedd4acc2f31c673e6ba3b8eed88ce901e63
689
hpp
C++
components/python/detail/context_manager.hpp
jinntechio/RocketJoe
9b08a21fda1609c57b40ef8b9750897797ac815b
[ "BSD-3-Clause" ]
9
2020-07-20T15:32:07.000Z
2021-06-04T13:02:58.000Z
components/python/detail/context_manager.hpp
jinntechio/RocketJoe
9b08a21fda1609c57b40ef8b9750897797ac815b
[ "BSD-3-Clause" ]
26
2019-10-27T12:58:42.000Z
2020-05-30T16:43:48.000Z
components/python/detail/context_manager.hpp
jinntechio/RocketJoe
9b08a21fda1609c57b40ef8b9750897797ac815b
[ "BSD-3-Clause" ]
3
2020-08-29T07:07:49.000Z
2021-06-04T13:02:59.000Z
#pragma once #include <list> #include <memory> #include <unordered_map> #include <boost/filesystem.hpp> #include <boost/utility/string_view.hpp> #include <detail/forward.hpp> namespace components { namespace python { namespace detail { constexpr const static char* __default__ = "default"; class context_ma...
23.758621
76
0.698113
jinntechio
3f58caacc4df8b2c650520659ac51658e51a74d7
1,947
cpp
C++
day16/Packet.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
1
2021-12-02T14:11:37.000Z
2021-12-02T14:11:37.000Z
day16/Packet.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
day16/Packet.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
#include "Packet.hpp" #include <algorithm> std::uint64_t Packet::GetVersionSum() const noexcept { std::uint64_t versionSum{version}; if (type != 4) { for (const auto &sub: std::get<std::vector<Packet>>(content)) { versionSum += sub.GetVersionSum(); } } return versionSum; } std::uint64_t Packet::Solv...
22.639535
67
0.543914
fardragon
3f58e087a958649137ef391194bd6e849c41c9d4
678,705
cpp
C++
tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp
florianjacob/gpuocelot
fa63920ee7c5f9a86e264cd8acd4264657cbd190
[ "BSD-3-Clause" ]
221
2015-03-29T02:05:49.000Z
2022-03-25T01:45:36.000Z
tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp
mprevot/gpuocelot
d9277ef05a110e941aef77031382d0260ff115ef
[ "BSD-3-Clause" ]
106
2015-03-29T01:28:42.000Z
2022-02-15T19:38:23.000Z
tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp
mprevot/gpuocelot
d9277ef05a110e941aef77031382d0260ff115ef
[ "BSD-3-Clause" ]
83
2015-07-10T23:09:57.000Z
2022-03-25T03:01:00.000Z
# 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp" # 1 "<built-in>" # 1 "<command-line>" # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp" # 1 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu" # 46 "/usr/local/cuda/bin/../include/device_types.h"...
50.453836
2,550
0.765421
florianjacob
3f5cae2fd4ca43da1172cb616025c807b219acab
4,206
cpp
C++
test/converter.cpp
ufcg-lsd/fast-sebal
93cccb498edf4e25e2b4570c652d61338e66ef60
[ "MIT" ]
2
2019-02-26T23:05:42.000Z
2019-04-15T23:59:35.000Z
test/converter.cpp
ufcg-lsd/fast-sebal
93cccb498edf4e25e2b4570c652d61338e66ef60
[ "MIT" ]
null
null
null
test/converter.cpp
ufcg-lsd/fast-sebal
93cccb498edf4e25e2b4570c652d61338e66ef60
[ "MIT" ]
1
2019-07-03T20:37:08.000Z
2019-07-03T20:37:08.000Z
#include "tiffio.h" #include <string> #include <math.h> #include <iostream> #include <string.h> #include <stdlib.h> using namespace std; const double EPS = 1e-7; const double NaN = -sqrt(-1.0); struct PixelReader{ uint16 sampleFormat; uint8 byteSize; tdata_t buffer; PixelReader(); PixelReader(uint16 _sampleFor...
25.962963
84
0.647884
ufcg-lsd
3f5e9a4900290ee4e8b60bdad290a2043aed155f
2,361
cc
C++
newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
8
2018-09-10T01:32:26.000Z
2020-05-13T06:05:40.000Z
newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
28
2018-09-10T05:01:09.000Z
2021-03-04T10:07:12.000Z
newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc
kosslab-kr/Tizen-NN-Framework
132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a
[ "Apache-2.0" ]
4
2018-09-13T04:16:08.000Z
2018-12-03T07:34:44.000Z
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
27.453488
79
0.745023
kosslab-kr
3f5ffcc2526668fb182c0708fd54026e5d49ecbe
601
cpp
C++
source/002/main.cpp
TheBuzzSaw/ProjectEuler
0aa472dc7dac3a710b6a99538b2cbaf8b6463abc
[ "Unlicense" ]
1
2015-03-12T19:56:28.000Z
2015-03-12T19:56:28.000Z
source/002/main.cpp
TheBuzzSaw/ProjectEuler
0aa472dc7dac3a710b6a99538b2cbaf8b6463abc
[ "Unlicense" ]
null
null
null
source/002/main.cpp
TheBuzzSaw/ProjectEuler
0aa472dc7dac3a710b6a99538b2cbaf8b6463abc
[ "Unlicense" ]
null
null
null
#include <iostream> #include <cstdint> using namespace std; int64_t GetTotal(int64_t limit) { int64_t total = 0; int64_t a = 0; int64_t b = 1; while (1) { int64_t c = a + b; a = b; b = c; if (a < limit) { bool...
15.815789
39
0.379368
TheBuzzSaw
3f636d376f42b8052c54f6ec2693c10eae419d96
397
cpp
C++
02_Array_Representation/05_static_allocation_of_array_in_stack.cpp
krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP
0eedb6fb8a395ff050ae37dc4b8c6470f5b47579
[ "Apache-2.0" ]
2
2020-07-01T17:10:20.000Z
2021-08-02T22:46:32.000Z
02_Array_Representation/05_static_allocation_of_array_in_stack.cpp
krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP
0eedb6fb8a395ff050ae37dc4b8c6470f5b47579
[ "Apache-2.0" ]
null
null
null
02_Array_Representation/05_static_allocation_of_array_in_stack.cpp
krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP
0eedb6fb8a395ff050ae37dc4b8c6470f5b47579
[ "Apache-2.0" ]
null
null
null
//Data Structure Course //All Codes Are Written by Krishna //Arrays Representation #include <iostream> using namespace std; int main(){ // this declaration allocates memory in stack at runtime //this is static allocation -->size can't be changed int arr[5]={1,2,3,4,5}; for(int i=0;i<5;i++){ cout...
23.352941
59
0.627204
krishna6431
3f64d96d92dbee74a82072fece7976cbab845862
1,918
cpp
C++
NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp
CStanKonrad/Algorithms
494d86bc2a9248d71a0f9008d8d678386f9ca906
[ "MIT" ]
null
null
null
NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp
CStanKonrad/Algorithms
494d86bc2a9248d71a0f9008d8d678386f9ca906
[ "MIT" ]
null
null
null
NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp
CStanKonrad/Algorithms
494d86bc2a9248d71a0f9008d8d678386f9ca906
[ "MIT" ]
null
null
null
/* The MIT License (MIT) Copyright (c) 2015 CStanKonrad Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
28.626866
78
0.699166
CStanKonrad
3f6c3c7559ba6469ada0e4b4f53c5a81b7468759
502
cpp
C++
android-31/java/nio/file/spi/FileTypeDetector.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/java/nio/file/spi/FileTypeDetector.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/java/nio/file/spi/FileTypeDetector.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../../../JString.hpp" #include "../../../lang/Void.hpp" #include "./FileTypeDetector.hpp" namespace java::nio::file::spi { // Fields // QJniObject forward FileTypeDetector::FileTypeDetector(QJniObject obj) : JObject(obj) {} // Constructors // Methods JString FileTypeDetector::probeContentType(...
20.08
69
0.673307
YJBeetle
3f6cda39762e458a5bcdeb657ec68154cc34986f
711
cpp
C++
CodeChef DSA Learning/Week 3/SAVKONO.cpp
mishrraG/100DaysOfCode
3358af290d4f05889917808d68b95f37bd76e698
[ "MIT" ]
13
2020-08-10T14:06:37.000Z
2020-09-24T14:21:33.000Z
CodeChef DSA Learning/Week 3/SAVKONO.cpp
mishrraG/DaysOfCP
3358af290d4f05889917808d68b95f37bd76e698
[ "MIT" ]
null
null
null
CodeChef DSA Learning/Week 3/SAVKONO.cpp
mishrraG/DaysOfCP
3358af290d4f05889917808d68b95f37bd76e698
[ "MIT" ]
1
2020-05-31T21:09:14.000Z
2020-05-31T21:09:14.000Z
//https://www.codechef.com/LRNDSA03/problems/SAVKONO/ #include<bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios :: sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int t; cin>>t; while(t--) { int n,z; cin>>n>>z; priority_queue<int> pq...
19.75
53
0.416315
mishrraG
3f6dd90e97d5cd9ef3561414867783ac0dba0d01
1,390
cpp
C++
SPOJ/BUBBLESORT.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
SPOJ/BUBBLESORT.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
SPOJ/BUBBLESORT.cpp
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
/** * > Author: TISparta * > Date: 12-09-18 * > Tags: BIT * > Difficulty: 4 / 10 */ #include <bits/stdc++.h> #define all(X) begin(X), end(X) using namespace std; const int MAX_N = 1e4 + 10, MOD = 1e7 + 7; struct BIT { int* ft; int sz = 0; BIT (int n): sz(n) { ft = new int[n]; fill(ft, ft + n, 0)...
17.375
82
0.471942
TISparta
3f6f256d35e014129e936c3a0b52efde966d66c6
1,143
cpp
C++
vmca/test/testCAKeyCreate.cpp
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
357
2015-04-20T00:16:30.000Z
2022-03-17T05:34:09.000Z
vmca/test/testCAKeyCreate.cpp
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
38
2015-11-19T05:20:53.000Z
2022-03-31T07:21:59.000Z
vmca/test/testCAKeyCreate.cpp
wfu8/lightwave
cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298
[ "Apache-2.0" ]
135
2015-04-21T15:23:21.000Z
2022-03-30T11:46:36.000Z
/* * Copyright © 2012-2016 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
30.891892
79
0.711286
wfu8
3f721e60daf2971fe1db76fd33201e5466de0196
28,428
cpp
C++
src/cli.cpp
moralismercatus/kmap
6887780c2fbe795f07a81808ef31f11dad4f5043
[ "MIT" ]
1
2021-06-28T00:31:08.000Z
2021-06-28T00:31:08.000Z
src/cli.cpp
moralismercatus/kmap
6887780c2fbe795f07a81808ef31f11dad4f5043
[ "MIT" ]
null
null
null
src/cli.cpp
moralismercatus/kmap
6887780c2fbe795f07a81808ef31f11dad4f5043
[ "MIT" ]
null
null
null
/****************************************************************************** * Author(s): Christopher J. Havlicek * * See LICENSE and CONTACTS. ******************************************************************************/ #include "cli.hpp" #include "canvas.hpp" #include "cli/parser.hpp" #include "cmd/command...
26.894986
204
0.486949
moralismercatus
3f7674bcde69f0c529c272c57ab40dd1eaa949fb
1,809
cpp
C++
devices/CAN/src/BitStream.cpp
gboyraz/macchina.io
3e26fea95e87512459693831242b297f0780cc21
[ "Apache-2.0" ]
2
2020-11-23T23:37:00.000Z
2020-12-22T04:02:41.000Z
devices/CAN/src/BitStream.cpp
bas524/cmake.macchina.io
22a21d78f8075fd145b788b41a23603591e91c9f
[ "Apache-2.0" ]
null
null
null
devices/CAN/src/BitStream.cpp
bas524/cmake.macchina.io
22a21d78f8075fd145b788b41a23603591e91c9f
[ "Apache-2.0" ]
1
2020-11-23T23:37:09.000Z
2020-11-23T23:37:09.000Z
// // BitStream.cpp // // Copyright (c) 2018, Applied Informatics Software Engineering GmbH. // All rights reserved. // // SPDX-License-Identifier: Apache-2.0 // #include "IoT/CAN/BitStream.h" #include "Poco/SharedPtr.h" namespace IoT { namespace CAN { BigEndianBitStream::BigEndianBitStream(const char* buffer, st...
17.066038
105
0.688226
gboyraz
3f78f3c890e565b748fab6b1d3228b5acb243153
6,730
hpp
C++
include/interfaces/Ports/Speaker.hpp
CapRat/APAL
a08f4bc6ee6299e8e370ef99750262ad23c87d58
[ "MIT" ]
2
2020-09-21T12:30:05.000Z
2020-10-14T19:43:51.000Z
include/interfaces/Ports/Speaker.hpp
CapRat/APAL
a08f4bc6ee6299e8e370ef99750262ad23c87d58
[ "MIT" ]
null
null
null
include/interfaces/Ports/Speaker.hpp
CapRat/APAL
a08f4bc6ee6299e8e370ef99750262ad23c87d58
[ "MIT" ]
null
null
null
#ifndef SPEAKER_HPP #define SPEAKER_HPP #include <cstdint> #include <type_traits> #define SPOS_TO_SCONF(SpeakerConfigurationtype) \ static_cast<std::underlying_type<SpeakerConfiguration>::type>( \ SpeakerConfigurationtype) namespace APAL { enum class SpeakerConfigurati...
37.388889
80
0.725706
CapRat
3f7d37865dde391837cc865c6dbedde503994248
588
cpp
C++
Trees/Symmetric Binary Tree.cpp
shawamar/InterviewBit
6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f
[ "MIT" ]
null
null
null
Trees/Symmetric Binary Tree.cpp
shawamar/InterviewBit
6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f
[ "MIT" ]
null
null
null
Trees/Symmetric Binary Tree.cpp
shawamar/InterviewBit
6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f
[ "MIT" ]
null
null
null
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ int isSymmetricHelper(TreeNode* root1, TreeNode* root2) { if (!root1 || !root2) return root1 == root2; if (root1->va...
26.727273
61
0.591837
shawamar
3f7fdb578a675a9de0bc90dc5fca5d099f3bf68f
341
cc
C++
src/code_writen_when_learning/initialize_class_member_without_braces.cc
NobodyXu/snippet
8f0308e48dab1d166dc9e5ff43b00db2d35b616b
[ "MIT" ]
1
2019-04-02T04:38:15.000Z
2019-04-02T04:38:15.000Z
src/code_writen_when_learning/initialize_class_member_without_braces.cc
NobodyXu/snippet
8f0308e48dab1d166dc9e5ff43b00db2d35b616b
[ "MIT" ]
null
null
null
src/code_writen_when_learning/initialize_class_member_without_braces.cc
NobodyXu/snippet
8f0308e48dab1d166dc9e5ff43b00db2d35b616b
[ "MIT" ]
null
null
null
#include <iostream> struct A { int a; int b; }; struct B { A a; A b; }; std::ostream& operator << (std::ostream &os, const A &a) { return os << a.a << " " << a.b; } std::ostream& operator << (std::ostream &os, const B &b) { return os << b.a << " " << b.b; } int main() { B b{11, 23}; std::cout ...
21.3125
93
0.489736
NobodyXu
3f82792b1223b7f2a148e80ccd19412e1980f73d
15,901
cpp
C++
Nemo/BezierCurve.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
Nemo/BezierCurve.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
Nemo/BezierCurve.cpp
cyj0912/Nemo
cd242e9d17863b461ccfd768122572d979c330e3
[ "BSD-2-Clause" ]
null
null
null
#include "BezierCurve.h" #include "Mesh.h" #include "imgui/imgui.h" namespace tc { //Some math functions Vector3 QuadraticBezierInterp(const Vector3& a, const Vector3& b, const Vector3& c, float t) { Vector3 d = a + t * (b - a); Vector3 e = b + t * (c - b); return d + t * (e - d); } /* * Not as efficie...
35.813063
138
0.646249
cyj0912
3f8343fea02eb14031fe6190420e776b2d952d68
5,188
cpp
C++
lld/stm32f4x/i2c/hw_i2c_data.cpp
brandonbraun653/Thor_STM32
2aaba95728936b2d5784e99b96c208a94e3cb8df
[ "MIT" ]
null
null
null
lld/stm32f4x/i2c/hw_i2c_data.cpp
brandonbraun653/Thor_STM32
2aaba95728936b2d5784e99b96c208a94e3cb8df
[ "MIT" ]
null
null
null
lld/stm32f4x/i2c/hw_i2c_data.cpp
brandonbraun653/Thor_STM32
2aaba95728936b2d5784e99b96c208a94e3cb8df
[ "MIT" ]
null
null
null
/****************************************************************************** * File Name: * hw_i2c_data.cpp * * Description: * Provides implementation details for private I2C data * * 2021 | Brandon Braun | brandonbraun653@gmail.com *******************************************************************...
30.339181
92
0.526793
brandonbraun653
3f8510ca5983362ea4d1ba60f0c3d454cc84565c
121
cpp
C++
src/main.cpp
Panky-codes/cpp-template
1f653e38220899a58fea8878751481ebbc152e7b
[ "Unlicense" ]
null
null
null
src/main.cpp
Panky-codes/cpp-template
1f653e38220899a58fea8878751481ebbc152e7b
[ "Unlicense" ]
null
null
null
src/main.cpp
Panky-codes/cpp-template
1f653e38220899a58fea8878751481ebbc152e7b
[ "Unlicense" ]
null
null
null
// Own header #include "lib.h" // System header // Third-party header int main() { print_hello(); return 0; }
10.083333
21
0.603306
Panky-codes
3f8747a8d82d660ab7d68048322a39936eaf96d6
754
cpp
C++
2020_November/23.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
17
2018-08-23T08:53:56.000Z
2021-04-17T00:06:13.000Z
2020_November/23.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
null
null
null
2020_November/23.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
27.925926
93
0.539788
zzz0906
3f87c88a5a7434042a471a353f24d0a68e3b2aa9
356
cpp
C++
Arrays 101/duplicateZeros.cpp
AasthaVarma/LeetCode
d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b
[ "MIT" ]
null
null
null
Arrays 101/duplicateZeros.cpp
AasthaVarma/LeetCode
d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b
[ "MIT" ]
null
null
null
Arrays 101/duplicateZeros.cpp
AasthaVarma/LeetCode
d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b
[ "MIT" ]
null
null
null
class Solution { public: void duplicateZeros(vector<int>& arr) { int n=arr.size(), new_n = n; for(int i=0; i<n; i++){ if(arr[i] == 0){ for(int j=n-1; j>i+1; j--) arr[j] = arr[j-1]; i++; if(i<n) arr[i] = 0...
22.25
43
0.325843
AasthaVarma
3f8ad4673e756de979bb13b5ff4dcd0707f06adb
716
cpp
C++
compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
// Tests heap_profile=1. // Printing memory profiling only works in the configuration where we can // detect leaks. // REQUIRES: leak-detection // // RUN: %clangxx_asan %s -o %t // RUN: %env_asan_opts=heap_profile=1 %run %t 2>&1 | FileCheck %s #include <sanitizer/common_interface_defs.h> #include <stdio.h> #include <s...
21.69697
73
0.649441
medismailben
3f8c08598f0deefc9c0030666c464412943a0811
782
cpp
C++
classwithdefulcons.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
classwithdefulcons.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
classwithdefulcons.cpp
maansisrivastava/Practice-code-C-
23f8c3798c15725bf14bb1215c01e7ad857a11b6
[ "MIT" ]
null
null
null
#include<iostream> #include<conio.h> using namespace std; class b1 { public: b1() { cout << "no argument const of the base class b1 is executed " << endl; } ~b1() { cout << "des des b1 " << endl; } }; cla...
15.038462
82
0.410486
maansisrivastava
3f8c6f862cf5a0c1149e5e1d9884da022f82b347
5,449
cpp
C++
piquassoboost/sampling/source/BruteForceLoopHafnian.cpp
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
4
2021-11-29T13:28:19.000Z
2021-12-21T22:57:09.000Z
piquassoboost/sampling/source/BruteForceLoopHafnian.cpp
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
11
2021-09-24T18:02:26.000Z
2022-01-27T18:51:47.000Z
piquassoboost/sampling/source/BruteForceLoopHafnian.cpp
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
1
2021-11-13T10:06:52.000Z
2021-11-13T10:06:52.000Z
/** * Copyright 2021 Budapest Quantum Computing Group * * 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 applic...
24.434978
163
0.655717
Budapest-Quantum-Computing-Group
3f8dc2527a51245fb3628cd18ee6c287b45393f6
7,629
cpp
C++
src/consumer/ProcessQueue.cpp
ifplusor/rocketmq-client-cpp
fd301f4b064d5035fc72261023a396e2c9126c53
[ "Apache-2.0" ]
5
2019-04-24T13:37:05.000Z
2021-01-29T16:37:55.000Z
src/consumer/ProcessQueue.cpp
ifplusor/rocketmq-client-cpp
fd301f4b064d5035fc72261023a396e2c9126c53
[ "Apache-2.0" ]
null
null
null
src/consumer/ProcessQueue.cpp
ifplusor/rocketmq-client-cpp
fd301f4b064d5035fc72261023a396e2c9126c53
[ "Apache-2.0" ]
1
2021-02-03T03:11:03.000Z
2021-02-03T03:11:03.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 You under the Apache License, Version 2.0 * (the "License"); you may ...
31.7875
109
0.696553
ifplusor
3f90fe382a520bdce9686648556e4220f52032d6
2,987
hpp
C++
include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:27:57.000Z
2022-01-25T23:26:54.000Z
include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-16T21:12:42.000Z
2015-06-23T12:41:00.000Z
include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp
putnampp/clotho
6dbfd82ef37b4265381cd78888cd6da8c61c68c2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// Copyright 2015 Patrick Putnam // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
32.824176
138
0.656177
putnampp
3f926f90fc9a3b71fa318e9581299478387de530
10,714
cpp
C++
src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp
jrood-nrel/percept
363cdd0050443760d54162f140b2fb54ed9decf0
[ "BSD-2-Clause" ]
3
2017-08-08T21:06:02.000Z
2020-01-08T13:23:36.000Z
src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp
jrood-nrel/percept
363cdd0050443760d54162f140b2fb54ed9decf0
[ "BSD-2-Clause" ]
2
2016-12-17T00:18:56.000Z
2019-08-09T15:29:25.000Z
src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp
jrood-nrel/percept
363cdd0050443760d54162f140b2fb54ed9decf0
[ "BSD-2-Clause" ]
2
2017-11-30T07:02:41.000Z
2019-08-05T17:07:04.000Z
/* * GeometryKernelPGEOM.cpp * * Created on: Jun 16, 2016 * Author: madbrew */ #if HAVE_CUBIT // entire file #include <iostream> #include <typeinfo> #include <stdexcept> #include "GeometryKernelPGEOM.hpp" #include <string> #include <stk_mesh/base/SkinMesh.hpp> #include <stk_mesh/base/Types.hpp> #include...
35.127869
188
0.63375
jrood-nrel
3f9526e7302c1dd474f23fb672e41410dab74860
2,846
hpp
C++
pianotrain/musicxml/xmlparse.hpp
chkven7/pianotrain
46273e5533238c039205d41cdcfd26a51a4781fe
[ "MIT" ]
18
2015-01-18T22:34:22.000Z
2020-09-06T20:30:30.000Z
pianotrain/musicxml/xmlparse.hpp
chkven7/pianotrain
46273e5533238c039205d41cdcfd26a51a4781fe
[ "MIT" ]
2
2015-08-04T00:07:46.000Z
2017-05-10T15:53:51.000Z
pianotrain/musicxml/xmlparse.hpp
chkven7/pianotrain
46273e5533238c039205d41cdcfd26a51a4781fe
[ "MIT" ]
10
2015-01-18T23:46:10.000Z
2019-08-25T12:10:04.000Z
/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU...
28.46
75
0.709065
chkven7
3f963b81443742866684c0ce7886b02d8410952d
2,801
hh
C++
src/support/ply/ply.hh
jhidding/regt
f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5
[ "Apache-2.0" ]
null
null
null
src/support/ply/ply.hh
jhidding/regt
f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5
[ "Apache-2.0" ]
null
null
null
src/support/ply/ply.hh
jhidding/regt
f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5
[ "Apache-2.0" ]
null
null
null
#pragma once #include <string> #include <iostream> #include <fstream> #include <utility> #include <memory> #include <vector> #include <typeinfo> #include <stdexcept> #include <algorithm> #include "base.hh" #include "header.hh" #include "io.hh" #include "record-print.hh" namespace PLY { /*! PLY data class * ...
31.829545
82
0.542663
jhidding
3f976fb58cfef1228b445a37c8bd3509bc5ffc07
844
hh
C++
src/Splitting.hh
aalto-speech/morphological-classes
a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3
[ "BSD-2-Clause" ]
null
null
null
src/Splitting.hh
aalto-speech/morphological-classes
a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3
[ "BSD-2-Clause" ]
null
null
null
src/Splitting.hh
aalto-speech/morphological-classes
a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3
[ "BSD-2-Clause" ]
null
null
null
#ifndef SPLITTING #define SPLITTING #include <map> #include <set> #include <string> #include <vector> #include "Exchanging.hh" class Splitting : public Exchanging { public: Splitting(); Splitting(int num_classes, const std::map<std::string, int>& word_classes, std::string corpus_fname...
25.575758
59
0.611374
aalto-speech
3f9cfc3e367a49775875a41d2f31b3848c2eebbd
2,634
cpp
C++
Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
2
2020-07-23T02:38:31.000Z
2021-08-28T10:06:01.000Z
Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
null
null
null
Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
1
2020-08-14T10:31:23.000Z
2020-08-14T10:31:23.000Z
// Shortest path in DAG(Direct Acyclic Graph) // Author - rudrajit1729 // Approach - Topologically sort the graph -> Once sorted start from // the required vertex and go right relaxing the edges // Finally you get to the shortest path for every node reachable from that node #include<bits/stdc++.h> #define INF ...
23.945455
81
0.574791
rudrajit1729
3f9e336e1c4e0e221dd5c07c496684a1fd712252
1,792
cpp
C++
Restaurant/Rest/Order.cpp
abdallaMahmoud99/DS_Project_CMP_1ST_YEAR
ddc05e51e985f7c569b4a20eb7faa30a81613f65
[ "MIT" ]
null
null
null
Restaurant/Rest/Order.cpp
abdallaMahmoud99/DS_Project_CMP_1ST_YEAR
ddc05e51e985f7c569b4a20eb7faa30a81613f65
[ "MIT" ]
null
null
null
Restaurant/Rest/Order.cpp
abdallaMahmoud99/DS_Project_CMP_1ST_YEAR
ddc05e51e985f7c569b4a20eb7faa30a81613f65
[ "MIT" ]
null
null
null
#include "Order.h" void Order::setID(int i) { ID = i; } Order::Order(int id, ORD_TYPE r_Type, REGION r_region,int distance ,double money ,int Arr_time ) { ID = (id>0&&id<1000)?id:0; //1<ID<999 type = r_Type; Region = r_region; totalMoney = money; ArrTime = Arr_time; Distance = distance; // added by abdalla...
13.080292
99
0.674665
abdallaMahmoud99
3fa3415b1a8d397b182438b1d1c77b9e7284dad7
6,972
hpp
C++
Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
15
2020-11-10T17:22:39.000Z
2021-12-16T14:45:11.000Z
Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
5
2021-08-30T06:58:52.000Z
2022-03-09T15:25:49.000Z
Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
20
2020-08-06T15:53:34.000Z
2022-02-09T13:49:59.000Z
/*++ Copyright (C) 2020 Autodesk Inc. 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 conditions and the ...
47.108108
142
0.658061
alexanderoster
3fa5417ba40b719e7a5853c8ca93837e3b3956c4
380
hpp
C++
src/Piece/inc/mocks/PieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
1
2017-03-21T07:57:01.000Z
2017-03-21T07:57:01.000Z
src/Piece/inc/mocks/PieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
null
null
null
src/Piece/inc/mocks/PieceFactory.hpp
bandienkhamgalan/chess-engine
1a3f365b615cbafd1b68dfc3a2681f904b9d85e6
[ "Apache-2.0" ]
null
null
null
#pragma once #include "gmock/gmock.h" #include "IPieceFactory.hpp" #include "IObservableBoard.hpp" namespace Chess { class IObservableBoard; class Location; class IPlayer; namespace Mocks { class PieceFactory : public IPieceFactory { public: MOCK_METHOD3(makePiece, std::unique_ptr<IPiece>(std::weak_ptr<IObse...
19
121
0.755263
bandienkhamgalan
3fa87c29828d906eb44c19d01a0e53499f2959cf
10,258
cpp
C++
src/plugProjectNishimuraU/FixKabutoMgr.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
33
2021-12-08T11:10:59.000Z
2022-03-26T19:59:37.000Z
src/plugProjectNishimuraU/FixKabutoMgr.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
6
2021-12-22T17:54:31.000Z
2022-01-07T21:43:18.000Z
src/plugProjectNishimuraU/FixKabutoMgr.cpp
projectPiki/pikmin2
a431d992acde856d092889a515ecca0e07a3ea7c
[ "Unlicense" ]
2
2022-01-04T06:00:49.000Z
2022-01-26T07:27:28.000Z
#include "types.h" /* Generated from dpostproc .section .rodata # 0x804732E0 - 0x8049E220 .global lbl_8048D8F8 lbl_8048D8F8: .asciz "/enemy/data/Kabuto/babykabuto_green_s3tc.bti" .skip 3 .global lbl_8048D928 lbl_8048D928: .4byte 0x8CC592E8 .4byte 0x834A8375 ...
23.74537
80
0.637161
projectPiki
3fa98f9554e7bd2a980e2ba4543a423b7f37f355
1,149
cc
C++
src/Geometry/GeomThirdRankTensor.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/Geometry/GeomThirdRankTensor.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/Geometry/GeomThirdRankTensor.cc
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
//---------------------------------Spheral++----------------------------------// // GeomThirdRankTensor -- Geometric Tensor (rank 3) Class. // // This is a very simple, limited functionality rank 3 tensor. Assumes // the thing is dimensioned nDim x nDim x nDim. // // Created by JMO, Thu Jul 17 17:05:58 PDT 2008 //----...
44.192308
99
0.553525
markguozhiming
3fab520ca550085fb47fb19f596048dd1a7c3b9e
6,121
cpp
C++
src/mongo/crypto/sha_block_tom.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/crypto/sha_block_tom.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/crypto/sha_block_tom.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
41.080537
99
0.578664
benety
3fabcecf6d8e0fff725ee5269db5c4b49c3245c8
2,547
cpp
C++
Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp
vguerra/swift-apis
215c1380874c55d2f12ae81ce78968f9e25ed723
[ "Apache-2.0" ]
null
null
null
Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp
vguerra/swift-apis
215c1380874c55d2f12ae81ce78968f9e25ed723
[ "Apache-2.0" ]
null
null
null
Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp
vguerra/swift-apis
215c1380874c55d2f12ae81ce78968f9e25ed723
[ "Apache-2.0" ]
1
2020-06-04T23:23:46.000Z
2020-06-04T23:23:46.000Z
// Copyright 2020 TensorFlow 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...
39.796875
80
0.648606
vguerra
3faf670b3c11dcadd2dc9e387c40d91672adb38d
206
cpp
C++
DS and Algo/12. tree/9. Print Pre-Order.cpp
tausiq2003/C-with-DS
3ec324b180456116b03aec58f2a85025180af9aa
[ "Apache-2.0" ]
7
2020-10-01T13:31:02.000Z
2021-11-06T16:22:31.000Z
DS and Algo/12. tree/9. Print Pre-Order.cpp
tausiq2003/C-with-DS
3ec324b180456116b03aec58f2a85025180af9aa
[ "Apache-2.0" ]
9
2020-10-01T10:35:59.000Z
2021-10-03T15:00:18.000Z
DS and Algo/12. tree/9. Print Pre-Order.cpp
tausiq2003/C-with-DS
3ec324b180456116b03aec58f2a85025180af9aa
[ "Apache-2.0" ]
44
2020-10-01T08:49:30.000Z
2021-10-31T18:19:48.000Z
void PrintPreOrder(TreeNode<int>* root){ if(root==NULL){ return; } cout<<root->data<<" "; for(int i=0;i<root->children.size();i++){ PrintPreOrder(root->children[i]); } }
20.6
45
0.543689
tausiq2003
3fafb58dd9c06ef46fd2b9ee903c2304c48429af
8,845
cpp
C++
main/WindowClass.cpp
satadriver/LiunuxOS_C_t
38e0e6086cda728008d35f101107d9c591ff38bc
[ "Apache-2.0" ]
null
null
null
main/WindowClass.cpp
satadriver/LiunuxOS_C_t
38e0e6086cda728008d35f101107d9c591ff38bc
[ "Apache-2.0" ]
null
null
null
main/WindowClass.cpp
satadriver/LiunuxOS_C_t
38e0e6086cda728008d35f101107d9c591ff38bc
[ "Apache-2.0" ]
null
null
null
#pragma once #include "windowclass.h" #include "video.h" #include "Utils.h" #include "screenUtils.h" #include "mouse.h" #include "keyboard.h" #include "task.h" #include "file.h" #include "gdi.h" #include "Pe.h" #include "gdi/jpeg.h" #include "keyboard.h" #include "mouse.h" #include "window.h" int __kShowWindow(unsign...
26.482036
115
0.684681
satadriver
3fb1211cad9952498e5faace1af64c062a7e20db
2,966
cpp
C++
service/type-analysis/LocalTypeAnalyzer.cpp
penguin-wwy/redex
31baadec7ccddcadb5ddaf4947a63112f2eadc04
[ "MIT" ]
null
null
null
service/type-analysis/LocalTypeAnalyzer.cpp
penguin-wwy/redex
31baadec7ccddcadb5ddaf4947a63112f2eadc04
[ "MIT" ]
null
null
null
service/type-analysis/LocalTypeAnalyzer.cpp
penguin-wwy/redex
31baadec7ccddcadb5ddaf4947a63112f2eadc04
[ "MIT" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "LocalTypeAnalyzer.h" #include <ostream> #include <sstream> namespace type_analyzer { namespace local { void set_dex_t...
31.553191
79
0.649359
penguin-wwy
3fb275b1fdbbbd1fe2e2f585202016030e9a499d
97
cpp
C++
ModelViewer/Scene/GraphNode.cpp
seanisom/glTF-DXViewer
f1e7d88581e3598e397e563f529e7ee2bb4befd6
[ "MIT" ]
64
2018-05-25T06:18:42.000Z
2019-04-15T17:27:38.000Z
ModelViewer/Scene/GraphNode.cpp
seanisom/glTF-DXViewer
f1e7d88581e3598e397e563f529e7ee2bb4befd6
[ "MIT" ]
4
2018-05-26T10:53:33.000Z
2018-10-20T20:46:41.000Z
ModelViewer/Scene/GraphNode.cpp
seanisom/glTF-DXViewer
f1e7d88581e3598e397e563f529e7ee2bb4befd6
[ "MIT" ]
13
2019-09-19T00:50:07.000Z
2022-03-22T13:39:52.000Z
#include "pch.h" #include "GraphNode.h" GraphNode::GraphNode() { } GraphNode::~GraphNode() { }
8.818182
23
0.659794
seanisom
3fb74b04398c86a82ee87fd73e7978448181f8f1
4,496
cpp
C++
loadNVML.cpp
nvpro-samples/nvml_enterprise_gpu_check
84d2e25b0d59a3b7527e4134dca0e7963bff73ce
[ "Apache-2.0" ]
3
2020-12-22T16:28:42.000Z
2021-05-07T03:09:35.000Z
loadNVML.cpp
nvpro-samples/nvml_enterprise_gpu_check
84d2e25b0d59a3b7527e4134dca0e7963bff73ce
[ "Apache-2.0" ]
null
null
null
loadNVML.cpp
nvpro-samples/nvml_enterprise_gpu_check
84d2e25b0d59a3b7527e4134dca0e7963bff73ce
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
29.578947
128
0.694617
nvpro-samples
3fbc2c1511a22a9326d773d89fa0210f8eb87c5e
3,315
cpp
C++
GameEngine/src/GameEngine/Debug/Instrumentor.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
GameEngine/src/GameEngine/Debug/Instrumentor.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
GameEngine/src/GameEngine/Debug/Instrumentor.cpp
Mevelec/GameEngine
70195139dcf74170ed34282ce1918160364a441f
[ "Apache-2.0" ]
null
null
null
#include "hzpch.h" #include "GameEngine/Debug/Instrumentor.h" namespace GameEngine { Instrumentor::Instrumentor() : currentSession(nullptr) { } void Instrumentor::beginSession(const std::string& name, const std::string& filepath) { std::lock_guard lock(this->mutex); if (this->currentSession) { // If the...
29.078947
209
0.66727
Mevelec
3fbd2291205d3aa177eb124262ae47140c8c5de5
2,917
cc
C++
components/content_capture/android/test_support/content_capture_test_support_android.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
components/content_capture/android/test_support/content_capture_test_support_android.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
components/content_capture/android/test_support/content_capture_test_support_android.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/content_capture/android/test_support/jni_headers/ContentCaptureTestSupport_jni.h" #include "base/android/jni_string.h" #include "bas...
37.883117
102
0.718204
zealoussnow
3fbd89de088e25b8660b22f80092d7770af13880
2,401
cpp
C++
src/socket.cpp
envelope-project/lauSim
6dc188600823d9c9464df0063a39a1ec3a6e9eda
[ "Apache-2.0" ]
null
null
null
src/socket.cpp
envelope-project/lauSim
6dc188600823d9c9464df0063a39a1ec3a6e9eda
[ "Apache-2.0" ]
null
null
null
src/socket.cpp
envelope-project/lauSim
6dc188600823d9c9464df0063a39a1ec3a6e9eda
[ "Apache-2.0" ]
null
null
null
/* Copyright 2017 Clemens Jonischkeit 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 t...
24.5
86
0.60683
envelope-project
3fc2a818b30b2a24ade65a8a5e638328ed2fe018
178
hpp
C++
AL/Common/Endians.hpp
LeoTHPS/AbstractionLayer
c2a77cc090214b9455af65aee6b9331bc6a64fd2
[ "MIT" ]
null
null
null
AL/Common/Endians.hpp
LeoTHPS/AbstractionLayer
c2a77cc090214b9455af65aee6b9331bc6a64fd2
[ "MIT" ]
null
null
null
AL/Common/Endians.hpp
LeoTHPS/AbstractionLayer
c2a77cc090214b9455af65aee6b9331bc6a64fd2
[ "MIT" ]
null
null
null
#pragma once #include "AL/Common.hpp" namespace AL { enum class Endians : uint8 { Big, Little, Machine = ((0xFFFFFFFF & 0x00000001) == 0x00000001) ? Little : Big }; }
12.714286
68
0.646067
LeoTHPS
3fc54a6e89098b26a6e9ad85d8492819589a9479
643
hpp
C++
inc/large_object.hpp
danilailie/ConcurrentHashMap
5d532018fa194ddc851b722aeda00d3fd07a2c8c
[ "MIT" ]
null
null
null
inc/large_object.hpp
danilailie/ConcurrentHashMap
5d532018fa194ddc851b722aeda00d3fd07a2c8c
[ "MIT" ]
null
null
null
inc/large_object.hpp
danilailie/ConcurrentHashMap
5d532018fa194ddc851b722aeda00d3fd07a2c8c
[ "MIT" ]
null
null
null
#ifndef _LARGE_OBJECT_HPP_ #define _LARGE_OBJECT_HPP_ #include <mutex> #include <vector> class LargeObject { public: explicit LargeObject (int anIndex) : index (anIndex) { data.resize (10000); } LargeObject (const LargeObject &other) { std::unique_lock<std::mutex> lock (copyMutex); data = other...
14.953488
54
0.66874
danilailie
3fc7dfc519c3f942b965bc75e9f7e3cf6692ba7d
318
cpp
C++
CodeForces/misc/Detective Book.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
CodeForces/misc/Detective Book.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
CodeForces/misc/Detective Book.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
#include<bits/stdc++.h> using namespace std; int main() { long long int t,i,k,c=0; long long int a[100000]; scanf("%lld",&t); for(i=0;i<t;i++) { scanf("%lld",&a[i]); } sort(a,a+t); for(i=0;i<t;i++) { if(a[i]==(i+1)) c++; } printf("%lld\n",c); }
15.142857
28
0.421384
Ashwanigupta9125
3fc95b7cf41b50af275afa63af412d0b907058d6
2,824
cpp
C++
Random/C++/Analyzer.cpp
akimikimikimikimikimikimika/shellCommands
f6970f3827ac7491db9b168c8f7929bfb1440940
[ "MIT" ]
null
null
null
Random/C++/Analyzer.cpp
akimikimikimikimikimikimika/shellCommands
f6970f3827ac7491db9b168c8f7929bfb1440940
[ "MIT" ]
null
null
null
Random/C++/Analyzer.cpp
akimikimikimikimikimikimika/shellCommands
f6970f3827ac7491db9b168c8f7929bfb1440940
[ "MIT" ]
null
null
null
#include <string> #include "Structure.hpp" using namespace std; void help(); void version(); RandType detectRT(string); enum Responder { None, Mode, Seed, Discard, Length, RangeFirst, RangeSecond }; bool argAnalyze(int argc, char *argv[], Customize &c) { if (argc>1) { string firstArg = string(argv[1]); ...
21.393939
73
0.588173
akimikimikimikimikimikimika
3fca0a4e63acb2c0a30a939cc978b933f8ea5e7f
104
cpp
C++
src/utils/utils.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
11
2020-04-14T15:45:42.000Z
2022-03-31T14:37:03.000Z
src/utils/utils.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
38
2019-08-02T15:15:51.000Z
2022-03-04T19:07:02.000Z
src/utils/utils.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
7
2019-07-17T07:50:55.000Z
2021-07-03T06:44:52.000Z
#include "utils/utils.hpp" #include <vector> #include <iostream> #include <string> namespace cytnx{ }
11.555556
26
0.721154
j9263178
3fca46273de867ec233fb3c2f45317f38636cd7f
8,192
cpp
C++
source/io/IO.cpp
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
8
2017-05-04T07:50:02.000Z
2019-05-17T02:27:20.000Z
source/io/IO.cpp
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
null
null
null
source/io/IO.cpp
will-iam/Variant
5b6732134fd51cf6c2b90b51b7976be0693ba28d
[ "MIT" ]
null
null
null
#include "IO.hpp" #include "exception/exception.hpp" #include "number/number.hpp" #include <fstream> #include <iomanip> #include <limits> int IO::loadSDDInfo(std::string directory, Domain& domain) { #ifndef SEQUENTIAL int SDDid; MPI_Comm_rank(MPI_COMM_WORLD, &SDDid); #else int SDDid = 0; #endi...
31.267176
181
0.585083
will-iam
3fcaab27705037b4dd1f57f02e5cc14c4444cbdd
1,208
hpp
C++
src/Graphics/Transform.hpp
D3r3k23/DrkCraft
5eaae66f558ce84f18de702b4227ca8d2cfe534f
[ "MIT" ]
1
2022-02-10T04:41:57.000Z
2022-02-10T04:41:57.000Z
src/Graphics/Transform.hpp
D3r3k23/DrkCraft
5eaae66f558ce84f18de702b4227ca8d2cfe534f
[ "MIT" ]
null
null
null
src/Graphics/Transform.hpp
D3r3k23/DrkCraft
5eaae66f558ce84f18de702b4227ca8d2cfe534f
[ "MIT" ]
null
null
null
#ifndef DRK_GRAPHICS_TRANSFORM_HPP #define DRK_GRAPHICS_TRANSFORM_HPP #include "lib/glm/mat4.hpp" #include "lib/glm/vec3.hpp" namespace DrkCraft { class Transform { private: mat4 m_matrix; public: Transform(void); // Identity matrix Transform(const mat4& matrix); Tran...
28.093023
65
0.655629
D3r3k23
3fcbdb44c5373b7f0e88d78c419c4d59cd7bcc68
561
cpp
C++
Flick/src/Flick/Renderer/Renderer.cpp
firo1738/FLICK
a6ccb0f23c212d0f1b97f71520beb3a89be57f2d
[ "Apache-2.0" ]
null
null
null
Flick/src/Flick/Renderer/Renderer.cpp
firo1738/FLICK
a6ccb0f23c212d0f1b97f71520beb3a89be57f2d
[ "Apache-2.0" ]
null
null
null
Flick/src/Flick/Renderer/Renderer.cpp
firo1738/FLICK
a6ccb0f23c212d0f1b97f71520beb3a89be57f2d
[ "Apache-2.0" ]
null
null
null
#include "fipch.h" #include "Renderer.h" namespace Flick { Renderer::SceneData* Renderer::s_SceneData = new Renderer::SceneData; void Renderer::BeginScene(OrthographicCamera& camera) { s_SceneData->ViewProjectionMatrix = camera.GetViewProjectionMatrix(); } void Renderer::EndScene() { } void Renderer::Sub...
21.576923
101
0.741533
firo1738
3fcc765bf885aa85a1b1310ee0c0c01f12e966d9
10,000
cpp
C++
sources/math/fraction.cpp
bce-toolkit/historical-bce-cpp-1.x-with-shell
11b5bd3782eeded9240ac5181c64baff293c667b
[ "BSD-2-Clause" ]
null
null
null
sources/math/fraction.cpp
bce-toolkit/historical-bce-cpp-1.x-with-shell
11b5bd3782eeded9240ac5181c64baff293c667b
[ "BSD-2-Clause" ]
null
null
null
sources/math/fraction.cpp
bce-toolkit/historical-bce-cpp-1.x-with-shell
11b5bd3782eeded9240ac5181c64baff293c667b
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2012-2013, The BCE Project authors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this ...
22.624434
117
0.6749
bce-toolkit
3fcdf9d5b15855cd8aa1e303670f5e1e67c00812
11,413
cpp
C++
oculusTest/Main.cpp
Ybalrid/ogre-oculus-opengl
7d23ecfcd24ff6babcd111718047a2b841ff24fb
[ "MIT" ]
2
2016-05-19T15:01:37.000Z
2017-04-18T14:42:27.000Z
oculusTest/Main.cpp
Ybalrid/ogre-oculus-opengl
7d23ecfcd24ff6babcd111718047a2b841ff24fb
[ "MIT" ]
1
2016-04-07T08:59:39.000Z
2016-04-07T08:59:39.000Z
oculusTest/Main.cpp
Ybalrid/ogre-oculus-opengl
7d23ecfcd24ff6babcd111718047a2b841ff24fb
[ "MIT" ]
null
null
null
#ifdef _WIN32 #define mainFunc() int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow) #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <glew.h> #else #define mainFunc() int main(void) #endif #include <iostream> #include <Ogre.h> #include <RenderSystems/GL/OgreGLTexture...
36.935275
147
0.760011
Ybalrid
3fce7a5c2dc9865523e470a252b4f0e16aae49ef
6,813
cpp
C++
samples/transcode/transcode_runner.cpp
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
samples/transcode/transcode_runner.cpp
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
samples/transcode/transcode_runner.cpp
YJessicaGao/easydk
e62eecde91886c2679def95edafb48f97650edfa
[ "Apache-2.0" ]
null
null
null
/************************************************************************* * Copyright (C) [2021] by Cambricon, Inc. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
40.796407
119
0.68883
YJessicaGao
3fd24f04ce01504b604379bb1e05634bcbd8b6ee
317
hpp
C++
ray.hpp
dodopod/raycast
31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1
[ "MIT" ]
null
null
null
ray.hpp
dodopod/raycast
31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1
[ "MIT" ]
null
null
null
ray.hpp
dodopod/raycast
31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1
[ "MIT" ]
null
null
null
#ifndef RAY_HPP #define RAY_HPP #include "vec2.hpp" class Ray { public: Ray(const Vec2& p, const Vec2& v); Vec2 getOrigin() const; Vec2 getDirection() const; void setOrigin(const Vec2& p); void setDirection(const Vec2& v); private: Vec2 origin; Vec2 direction; }; #endif
13.782609
38
0.630915
dodopod
3fd574ae456d4cc73c61d16eba63c75b22d7091a
773
cc
C++
cc/function_object/function_pointer.cc
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
1
2020-09-14T17:29:02.000Z
2020-09-14T17:29:02.000Z
cc/function_object/function_pointer.cc
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
8
2020-09-05T10:19:39.000Z
2021-05-07T10:04:27.000Z
cc/function_object/function_pointer.cc
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
null
null
null
/******************************** * Function Pointer * * Function pointer is a pointer that points a function. It is useful when * you considering to use C/C++ together. The syntax is like below (only * show a function pointer that takes two arguments). * * ``` * returntype (*name)(argtype, a...
19.325
77
0.52652
tyohei
3fd6f5e142bce690b9c5fe4c75f474aecdc42137
3,844
cpp
C++
test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
301
2015-01-20T16:11:32.000Z
2021-11-25T04:29:36.000Z
test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
13
2015-06-04T09:55:15.000Z
2020-09-23T00:38:07.000Z
test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
233
2015-01-26T03:41:59.000Z
2022-03-18T23:54:04.000Z
/****************************************************************** * * Copyright 2016 Samsung Electronics All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://...
32.302521
138
0.653486
jonghenhan
3fda9f7441dbe0444f5ffdf9c2f162f122510cef
474
cpp
C++
Homework_8/Shape_Yiming_Bi.cpp
markblitz/RU_503_HW
a9f3ea53a9d80d2a594768bc5796fed8cb3433b9
[ "MIT" ]
null
null
null
Homework_8/Shape_Yiming_Bi.cpp
markblitz/RU_503_HW
a9f3ea53a9d80d2a594768bc5796fed8cb3433b9
[ "MIT" ]
null
null
null
Homework_8/Shape_Yiming_Bi.cpp
markblitz/RU_503_HW
a9f3ea53a9d80d2a594768bc5796fed8cb3433b9
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; #include "Shape_Yiming_Bi.h" Shape::Shape() { Set_X(0); Set_Y(0); } Shape::~Shape() { // nothing I may do here... } void Shape::Set_X(double input_x) { center_x = input_x; } void Shape::Set_Y(double input_y) { center_y = input_y; } double Shape::Get_X() const { retu...
11.285714
49
0.628692
markblitz
3fdbe4b7078cf0a64dd3d66b879007619a6c7f5f
3,220
cpp
C++
subject/Exam_2_singleton.cpp
IdiotXue/OfferCoding
38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e
[ "MIT" ]
14
2017-12-29T08:18:14.000Z
2020-01-06T16:06:31.000Z
subject/Exam_2_singleton.cpp
IdiotXue/OfferCoding
38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e
[ "MIT" ]
null
null
null
subject/Exam_2_singleton.cpp
IdiotXue/OfferCoding
38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e
[ "MIT" ]
1
2019-12-20T06:07:50.000Z
2019-12-20T06:07:50.000Z
//main.cpp #include <iostream> #include "Singleton.h" int main(int argc, char *argv[]) { std::cout << "main work" << std::endl; auto single = Singleton::GetInstance(); std::cout << single << std::endl; } //Singleton.h #ifndef __SINGLETON_H__ #define __SINGLETON_H__ #include <iostream> #include <memory> ...
28.495575
82
0.646894
IdiotXue
3fdf84459ab8fd5bd00c450e6a32393b198e3d92
282
cpp
C++
contest/AtCoder/abc135/C.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
7
2018-04-14T14:55:51.000Z
2022-01-31T10:49:49.000Z
contest/AtCoder/abc135/C.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
5
2018-04-14T14:28:49.000Z
2019-05-11T02:22:10.000Z
contest/AtCoder/abc135/C.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
null
null
null
#include "vector.hpp" int main() { int n(in); Vector<int64_t> a(n + 1, in), b(n, in); int64_t res = 0; for (int i = 0; i < n; ++i) { auto r1 = min(a[i], b[i]); auto r2 = min(a[i + 1], b[i] - r1); res += r1 + r2; a[i + 1] -= r2; } cout << res << endl; }
18.8
41
0.443262
not522