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
54ffb6270eaeec41d775e630d84679abc7b6ae5d
15,985
cpp
C++
test/EnergyEfficientAgentTest.cpp
RyoTTa/geopm
74246c8ce70ee47f53bc5629638f51c2c391027b
[ "BSD-3-Clause" ]
null
null
null
test/EnergyEfficientAgentTest.cpp
RyoTTa/geopm
74246c8ce70ee47f53bc5629638f51c2c391027b
[ "BSD-3-Clause" ]
null
null
null
test/EnergyEfficientAgentTest.cpp
RyoTTa/geopm
74246c8ce70ee47f53bc5629638f51c2c391027b
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, Intel Corporation * * 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 ...
39.9625
119
0.665374
RyoTTa
070276a7a56c18361ee8dc34dac89bdc77aeb39e
233
cpp
C++
test/unit/math/prim/scal/fun/value_of_rec_test.cpp
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
1
2019-09-06T15:53:17.000Z
2019-09-06T15:53:17.000Z
test/unit/math/prim/scal/fun/value_of_rec_test.cpp
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
8
2019-01-17T18:51:16.000Z
2019-01-17T18:51:39.000Z
test/unit/math/prim/scal/fun/value_of_rec_test.cpp
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
null
null
null
#include <stan/math/prim/scal.hpp> #include <gtest/gtest.h> TEST(MathFunctions, value_of_rec) { using stan::math::value_of_rec; double x = 5.0; EXPECT_FLOAT_EQ(5.0, value_of_rec(x)); EXPECT_FLOAT_EQ(5.0, value_of_rec(5)); }
23.3
40
0.716738
jrmie
0707b98b7b988fbd35fb965e3ebede168c31bb04
783
cc
C++
build/X86/python/_m5/param_SimpleObject.cc
zhoushuxin/impl_of_HPCA2018
594d807fb0c0712bb7766122c4efe3321d012687
[ "BSD-3-Clause" ]
5
2019-12-12T16:26:09.000Z
2022-03-17T03:23:33.000Z
build/X86/python/_m5/param_SimpleObject.cc
zhoushuxin/impl_of_HPCA2018
594d807fb0c0712bb7766122c4efe3321d012687
[ "BSD-3-Clause" ]
null
null
null
build/X86/python/_m5/param_SimpleObject.cc
zhoushuxin/impl_of_HPCA2018
594d807fb0c0712bb7766122c4efe3321d012687
[ "BSD-3-Clause" ]
null
null
null
#include "pybind11/pybind11.h" #include "pybind11/stl.h" #include "params/SimpleObject.hh" #include "python/pybind11/core.hh" #include "sim/init.hh" #include "sim/sim_object.hh" #include "learning_gem5/part2/simple_object.hh" namespace py = pybind11; static void module_init(py::module &m_internal) { py::module ...
27.964286
127
0.720307
zhoushuxin
070d87dfa31cf70e152b4d249d15ee858b02fc62
2,327
cpp
C++
srcs/cpp/src/quiver/cpu/tensor.cpp
jakeKonrad/torch-quiver
16e01b8b61459ae41b7386b6a57ef9d20dfb6606
[ "Apache-2.0" ]
196
2021-10-30T23:40:27.000Z
2022-03-28T03:43:18.000Z
srcs/cpp/src/quiver/cpu/tensor.cpp
jakeKonrad/torch-quiver
16e01b8b61459ae41b7386b6a57ef9d20dfb6606
[ "Apache-2.0" ]
32
2021-11-03T15:07:50.000Z
2022-03-07T09:03:33.000Z
srcs/cpp/src/quiver/cpu/tensor.cpp
jakeKonrad/torch-quiver
16e01b8b61459ae41b7386b6a57ef9d20dfb6606
[ "Apache-2.0" ]
24
2021-10-31T12:28:34.000Z
2022-03-19T03:03:13.000Z
#include <climits> #include <iostream> #include <numeric> #include <string> // #ifdef HAVE_CXXABI #include <cxxabi.h> // #endif #include <torch/extension.h> namespace quiver { template <typename T> std::string demangled_type_info_name() { #ifdef HAVE_CXXABI int status = 0; return abi::__cxa_demangle(typeid(T...
23.989691
79
0.555221
jakeKonrad
071376393501fb22bfb859c8931fd776b8b07ebd
4,802
cpp
C++
LifeBrush/Source/LifeBrush/Simulation/Aggregates.cpp
timdecode/LifeBrush
dbc65bcc0ec77f9168e08cf7b39539af94420725
[ "MIT" ]
33
2019-04-23T23:00:09.000Z
2021-11-09T11:44:09.000Z
LifeBrush/Source/LifeBrush/Simulation/Aggregates.cpp
MyelinsheathXD/LifeBrush
dbc65bcc0ec77f9168e08cf7b39539af94420725
[ "MIT" ]
1
2019-10-09T15:57:56.000Z
2020-03-05T20:01:01.000Z
LifeBrush/Source/LifeBrush/Simulation/Aggregates.cpp
MyelinsheathXD/LifeBrush
dbc65bcc0ec77f9168e08cf7b39539af94420725
[ "MIT" ]
6
2019-04-25T00:10:55.000Z
2021-04-12T05:16:28.000Z
// Copyright (c) 2019 Timothy Davison. All rights reserved. #include "LifeBrush.h" #include "Aggregates.h" TArray<FGraphEdgeHandle> FMLAggregateNO::aggregateNodes(const TArray<FGraphNodeHandle>& nodes, FGraph& graph, FGraphNodeHandle hostNodeHandle) { // add the FMLAggregateNO FGraphNode& hostNode = graph.node(hos...
27.597701
142
0.744898
timdecode
071408e2f41a1f3749635e80a6eec1ed498a2f45
961
cpp
C++
src/collisionhandler.cpp
Ceebox/Space-Game
db2230f761b43568a56290a436724d6a82c641ff
[ "Zlib" ]
6
2021-09-17T15:21:34.000Z
2022-03-22T17:20:20.000Z
src/collisionhandler.cpp
Ceebox/Space-Game
db2230f761b43568a56290a436724d6a82c641ff
[ "Zlib" ]
null
null
null
src/collisionhandler.cpp
Ceebox/Space-Game
db2230f761b43568a56290a436724d6a82c641ff
[ "Zlib" ]
null
null
null
#include "collisionhandler.h" ///////////////////////////////////////////////////////////////////// // I would like to formally appologise if you have to read this code. ///////////////////////////////////////////////////////////////////// //Constructor CollisionHandler::CollisionHandler() { gameObjects....
25.289474
85
0.497399
Ceebox
07146a8e03e85e2ce0d9379e89779497fd22c73f
6,770
cpp
C++
src/FullSegmentInfo.cpp
qianqian121/ELSED
f56464dc77e881978fe263d4d1d1b0a4adc70f22
[ "Apache-2.0" ]
88
2021-08-06T16:31:34.000Z
2022-03-22T00:56:58.000Z
src/FullSegmentInfo.cpp
qianqian121/ELSED
f56464dc77e881978fe263d4d1d1b0a4adc70f22
[ "Apache-2.0" ]
3
2021-11-20T02:17:47.000Z
2022-03-10T13:20:34.000Z
src/FullSegmentInfo.cpp
qianqian121/ELSED
f56464dc77e881978fe263d4d1d1b0a4adc70f22
[ "Apache-2.0" ]
13
2021-08-10T01:19:05.000Z
2022-03-08T08:34:33.000Z
#include <vector> #include "FullSegmentInfo.h" namespace upm { FullSegmentInfo::FullSegmentInfo(const std::vector<Pixel> &pts) : pixels(&pts) {} FullSegmentInfo::FullSegmentInfo(const std::vector<Pixel> &pts, int startIdx) : pixels(&pts) { init(pts, startIdx); } void FullSegmentInfo::init(const std::vector<Pixel>...
29.955752
96
0.655687
qianqian121
07186eb868cce8134a0131cf60f1db7d7c879349
2,230
cpp
C++
ros/src/waypoint-editor/src/waypoint_editor_panel.cpp
hiro-ya-iv/rviz-plugins
983b0f5a0045a02e603d3d8551f787d7f7bed0f3
[ "Apache-2.0" ]
null
null
null
ros/src/waypoint-editor/src/waypoint_editor_panel.cpp
hiro-ya-iv/rviz-plugins
983b0f5a0045a02e603d3d8551f787d7f7bed0f3
[ "Apache-2.0" ]
null
null
null
ros/src/waypoint-editor/src/waypoint_editor_panel.cpp
hiro-ya-iv/rviz-plugins
983b0f5a0045a02e603d3d8551f787d7f7bed0f3
[ "Apache-2.0" ]
3
2019-02-28T05:59:46.000Z
2019-11-25T08:00:46.000Z
#include "waypoint_editor_panel.hpp" #include <QPushButton> #include <QVBoxLayout> #include <QFileDialog> namespace rviz_plugins { WaypointEditor::WaypointEditor() { auto layout = new QVBoxLayout(); setLayout(layout); auto load_button = new QPushButton("Load"); layout->addWidget(load_button); co...
23.723404
87
0.660987
hiro-ya-iv
0719809db5b915e0e360fac74dc03426fb803c82
1,062
hpp
C++
ThirdParty/oglplus-develop/include/oalplus/auxiliary/enum_class.hpp
vif/3D-STG
721402e76a9b9b99b88ba3eb06beb6abb17a9254
[ "MIT" ]
null
null
null
ThirdParty/oglplus-develop/include/oalplus/auxiliary/enum_class.hpp
vif/3D-STG
721402e76a9b9b99b88ba3eb06beb6abb17a9254
[ "MIT" ]
null
null
null
ThirdParty/oglplus-develop/include/oalplus/auxiliary/enum_class.hpp
vif/3D-STG
721402e76a9b9b99b88ba3eb06beb6abb17a9254
[ "MIT" ]
null
null
null
/** * .file oalplus/auxiliary/enum_class.hpp * @brief Helper macros for declaring enumerations * * @author Matus Chochlik * * Copyright 2012-2013 Matus Chochlik. 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_...
24.697674
68
0.794727
vif
072098d8f7ce88dcb2bf7cb79b0b5611582e3bd1
7,879
cpp
C++
quincySystemLibrary/dev/src/communication/sockets/bsd/SocketTCPImp.cpp
quincycs/CollegeProjects
ff1634af0399e3cefaa0f6dcbc60acff4522f016
[ "MIT" ]
null
null
null
quincySystemLibrary/dev/src/communication/sockets/bsd/SocketTCPImp.cpp
quincycs/CollegeProjects
ff1634af0399e3cefaa0f6dcbc60acff4522f016
[ "MIT" ]
null
null
null
quincySystemLibrary/dev/src/communication/sockets/bsd/SocketTCPImp.cpp
quincycs/CollegeProjects
ff1634af0399e3cefaa0f6dcbc60acff4522f016
[ "MIT" ]
null
null
null
#ifdef USE_BSD_SOCKETS #include "SocketTCPImp.hpp" namespace quincySystemLibrary { void SocketTCPImp::setErrorString(string errorString_arg){ errorString = errorString_arg; errorString.append(" :: "); errorString.append(strerror(errno)); } bool SocketTCPImp::accept(SocketTCPImp *retSocket) throw(exception){ s...
23.038012
107
0.701358
quincycs
0724b9e09192b8af6dff41c2b0ef6bd8583a655a
102,658
cpp
C++
BCG/BCGPDockingControlBar.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
2
2018-03-30T06:40:08.000Z
2022-02-23T12:40:13.000Z
BCG/BCGPDockingControlBar.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
null
null
null
BCG/BCGPDockingControlBar.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
1
2020-08-11T05:48:02.000Z
2020-08-11T05:48:02.000Z
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of BCGControlBar Library Professional Edition // Copyright (C) 1998-2014 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only unde...
25.192147
164
0.639025
11Zero
072d1923dd82869730227b288d3d7265ab1dc56b
1,039
cpp
C++
core/tests/coverage/src/test_library.cpp
ccarels/mapp
3ab5ee4cd4c5eae5f13edc942e87ff2cee43e8b2
[ "BSD-3-Clause" ]
null
null
null
core/tests/coverage/src/test_library.cpp
ccarels/mapp
3ab5ee4cd4c5eae5f13edc942e87ff2cee43e8b2
[ "BSD-3-Clause" ]
null
null
null
core/tests/coverage/src/test_library.cpp
ccarels/mapp
3ab5ee4cd4c5eae5f13edc942e87ff2cee43e8b2
[ "BSD-3-Clause" ]
null
null
null
#include "gmock/gmock.h" #include "mapp/algorithm/managed.hpp" #include "mapp/algorithm/processor.hpp" #include "mapp/library/locator.hpp" #include "mapp/library/provider.hpp" using namespace mapp::core::algorithm; using namespace mapp::core::library; namespace mapp::core::tests::coverage_tests { /** * \brief A cove...
31.484848
134
0.697786
ccarels
0738ce12af293e83c2c44a36e089e1058443c7ff
2,682
cpp
C++
ql/processes/batesprocess.cpp
grandtiger/quantlib
4cf3d80ffc071ae74f026bb25fbb1dd9093e6301
[ "BSD-3-Clause" ]
41
2016-03-19T02:31:54.000Z
2022-01-20T13:23:20.000Z
ql/processes/batesprocess.cpp
grandtiger/quantlib
4cf3d80ffc071ae74f026bb25fbb1dd9093e6301
[ "BSD-3-Clause" ]
1
2020-07-17T18:49:22.000Z
2020-07-17T18:49:22.000Z
ql/processes/batesprocess.cpp
grandtiger/quantlib
4cf3d80ffc071ae74f026bb25fbb1dd9093e6301
[ "BSD-3-Clause" ]
22
2016-03-17T14:14:36.000Z
2022-03-28T10:33:19.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2008 Klaus Spanderen This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and...
34.384615
79
0.597315
grandtiger
0739e79fccacb728e8b1b42ffb0d68a9f450b9c3
18,210
cpp
C++
NetworkEditor/NetworkEntityContainer.cpp
pmachapman/Tulip
54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a
[ "Unlicense" ]
null
null
null
NetworkEditor/NetworkEntityContainer.cpp
pmachapman/Tulip
54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a
[ "Unlicense" ]
33
2018-09-14T21:58:20.000Z
2022-01-12T21:39:22.000Z
NetworkEditor/NetworkEntityContainer.cpp
pmachapman/Tulip
54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a
[ "Unlicense" ]
null
null
null
/* ========================================================================== CNetworkEntityContainer Author : Johan Rosengren, Abstrakt Mekanik AB Date : 2004-05-04 Purpose : CNetworkEntityContainer is derived from CDiagramEntityContainer, and acts as the data repository for CNetworkEditor. Desc...
23.710938
136
0.556617
pmachapman
073c385c222a640f9b2cabc8feb7a5898406678d
1,200
cpp
C++
src/Nibble.cpp
CircuitMess/Nibble
abfa980cdb8b32d6706eedf5de774e4edf66028d
[ "MIT" ]
5
2020-09-16T22:30:04.000Z
2021-09-03T12:58:35.000Z
src/Nibble.cpp
CircuitMess/Nibble
abfa980cdb8b32d6706eedf5de774e4edf66028d
[ "MIT" ]
1
2021-08-18T02:50:18.000Z
2021-08-18T02:50:18.000Z
src/Nibble.cpp
CircuitMess/Nibble
abfa980cdb8b32d6706eedf5de774e4edf66028d
[ "MIT" ]
null
null
null
#include "Nibble.h" NibbleImpl Nibble; void NibbleImpl::begin(){ expander = new I2cExpander(); if(expander->begin(0x74, 4, 5)){ expander->pinMode(BL_PIN_I2C, OUTPUT); expander->pinWrite(BL_PIN_I2C, true); input = new InputI2C(expander); }else{ delete expander; expander = nullptr; pinMode(BL_PIN_IO, ...
18.461538
91
0.700833
CircuitMess
073d7ef01df0e35422a561245f263ce5a2b575da
298
cpp
C++
leetcode/cpp/507-Perfect-Number.cpp
liu-chunhou/OnlineJudge
b79c8e05acf05411d8cf172214aa42e49cc20867
[ "MIT" ]
null
null
null
leetcode/cpp/507-Perfect-Number.cpp
liu-chunhou/OnlineJudge
b79c8e05acf05411d8cf172214aa42e49cc20867
[ "MIT" ]
null
null
null
leetcode/cpp/507-Perfect-Number.cpp
liu-chunhou/OnlineJudge
b79c8e05acf05411d8cf172214aa42e49cc20867
[ "MIT" ]
null
null
null
#include <cmath> using namespace std; class Solution { public: bool checkPerfectNumber(int num) { if(num < 6)return false; int sum = 1; for(int i=2; i<=int(sqrt(num)); ++i){ if(num % i == 0) sum += i + num / i; } return sum == num; } };
19.866667
48
0.493289
liu-chunhou
073f7c7387cbada0053a87f39ae924a249f1d12d
33,379
cpp
C++
mlsm_manager/src/ICP.cpp
Aridane/underwater_map_construction
6c7c495ca045e82ea00a7d44827bb5c969b8f723
[ "BSD-3-Clause" ]
4
2017-06-29T08:28:49.000Z
2021-02-14T15:07:51.000Z
mlsm_manager/src/ICP.cpp
Aridane/underwater_map_construction
6c7c495ca045e82ea00a7d44827bb5c969b8f723
[ "BSD-3-Clause" ]
null
null
null
mlsm_manager/src/ICP.cpp
Aridane/underwater_map_construction
6c7c495ca045e82ea00a7d44827bb5c969b8f723
[ "BSD-3-Clause" ]
6
2015-03-25T01:32:56.000Z
2022-03-28T03:02:05.000Z
#include "ICP.h" ICP::ICP(){ } ICP::ICP(int maxIterations, double errorThreshold){ maxIterations_ = maxIterations; errorThreshold_ = errorThreshold; } ICP::ICP(int maxIterations, double errorThreshold, ros::Publisher* debugPublisher){ maxIterations_ = maxIterations; errorThreshold_ = errorThreshold; ...
45.537517
188
0.50373
Aridane
0745a83299b33507b2906b77ba7396ebb6361dfd
635
cpp
C++
kernel/Dispatcher.cpp
cmarrin/placid
deb5a5301de98011a3c2b312b068b325b5191c17
[ "MIT" ]
5
2018-10-07T11:13:18.000Z
2021-11-18T13:57:27.000Z
kernel/Dispatcher.cpp
cmarrin/placid
deb5a5301de98011a3c2b312b068b325b5191c17
[ "MIT" ]
null
null
null
kernel/Dispatcher.cpp
cmarrin/placid
deb5a5301de98011a3c2b312b068b325b5191c17
[ "MIT" ]
1
2018-12-07T18:20:17.000Z
2018-12-07T18:20:17.000Z
/*------------------------------------------------------------------------- This source file is a part of Placid For the latest info, see http:www.marrin.org/ Copyright (c) 2018-2019, Chris Marrin All rights reserved. Use of this source code is governed by the MIT license that can be found in...
27.608696
75
0.533858
cmarrin
0746b0a93b279c0f9e00c680f126b7bce34edd2b
1,141
cpp
C++
08 DS OPP Vectors/vector.cpp
fescii/Data-Structures
114518c60632502bca4f998bca862ee50e09fb8d
[ "MIT" ]
1
2021-12-17T19:40:37.000Z
2021-12-17T19:40:37.000Z
08 DS OPP Vectors/vector.cpp
fescii/Data-Structures-CPP
114518c60632502bca4f998bca862ee50e09fb8d
[ "MIT" ]
null
null
null
08 DS OPP Vectors/vector.cpp
fescii/Data-Structures-CPP
114518c60632502bca4f998bca862ee50e09fb8d
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> using namespace std; int main(){ vector<int> *vp = new vector<int>(); /// dynamic vector<int> v; /// static vector<int> v2(10,-2); /// initialise vector<int> v3(100); for(int i=0;i<v2.size();i++){ cout<<v2[i]<<endl; } sort(v2.b...
18.704918
53
0.445223
fescii
0747e4a31c8de40219aa72ffa926e785fb080c04
225
cpp
C++
Samir's files/Week 9/3.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
Samir's files/Week 9/3.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
Samir's files/Week 9/3.cpp
sugamkarki/NAMI-Year-II-Term-I-Software_Engineering
39182816b670dcb75ec322e24b346a4cfeb80be0
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int power(int n, int pow){ if(pow != 1){ return n*power(n, pow - 1); }else{ return n; } } int main(){ int a = power(2,4); cout << "2^4 = " << a; }
15
35
0.484444
sugamkarki
074875fa779803726b6599f8189a46705954c0da
3,756
hpp
C++
LinearAlgebra/matrices/lu_decompose/lu_decompose.hpp
suiyili/Algorithms
d6ddc8262c5d681ecc78938b6140510793a29d91
[ "MIT" ]
null
null
null
LinearAlgebra/matrices/lu_decompose/lu_decompose.hpp
suiyili/Algorithms
d6ddc8262c5d681ecc78938b6140510793a29d91
[ "MIT" ]
null
null
null
LinearAlgebra/matrices/lu_decompose/lu_decompose.hpp
suiyili/Algorithms
d6ddc8262c5d681ecc78938b6140510793a29d91
[ "MIT" ]
null
null
null
#pragma once #include "lu_decompose.h" #include "generic/algebra_exception/algebra_exception.hpp" #include "generic/algebra_types.hpp" #include <type_traits> #include <utility> #include <cmath> using namespace algebra::generic; namespace algebra::matrices { template <typename T> inline lu_decompose<T>::lu_decompose...
26.638298
85
0.659478
suiyili
074fe814ef1dfe9929816ff803dd90a7cbe2ffb3
5,164
cpp
C++
src/Device/PlayerProxy.cpp
ZhengfengRao/ZLMediaKit
3addd5452de4e8ab99766f482c9c89208ce6b5ad
[ "MIT" ]
null
null
null
src/Device/PlayerProxy.cpp
ZhengfengRao/ZLMediaKit
3addd5452de4e8ab99766f482c9c89208ce6b5ad
[ "MIT" ]
null
null
null
src/Device/PlayerProxy.cpp
ZhengfengRao/ZLMediaKit
3addd5452de4e8ab99766f482c9c89208ce6b5ad
[ "MIT" ]
1
2018-07-20T08:57:32.000Z
2018-07-20T08:57:32.000Z
/* * MIT License * * Copyright (c) 2016 xiongziliang <771730766@qq.com> * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to de...
31.108434
121
0.691712
ZhengfengRao
07526ac38e401994b961e2a404344f34be3ce517
3,021
cpp
C++
Applied/CCore/src/video/Point.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
8
2017-12-21T07:00:16.000Z
2020-04-02T09:05:55.000Z
Applied/CCore/src/video/Point.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
null
null
null
Applied/CCore/src/video/Point.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
1
2020-03-30T09:54:18.000Z
2020-03-30T09:54:18.000Z
/* Point.cpp */ //---------------------------------------------------------------------------------------- // // Project: CCore 3.50 // // Tag: Applied // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyright ...
15.734375
90
0.519695
SergeyStrukov
075581caee9f164bc8fd065fc00c404464420478
1,286
cpp
C++
DuiLib/src/GifInfo.cpp
Angus43344343/ZM_Duilib
4c1fae08672b5b70fdd218edc5425d08551df384
[ "MIT" ]
4
2018-09-19T05:53:08.000Z
2021-06-24T15:35:06.000Z
DuiLib/src/GifInfo.cpp
zydxhs/duilib
154c2ac2e498e49a3a731c0898620eeb8cbbf857
[ "BSD-2-Clause", "MIT" ]
null
null
null
DuiLib/src/GifInfo.cpp
zydxhs/duilib
154c2ac2e498e49a3a731c0898620eeb8cbbf857
[ "BSD-2-Clause", "MIT" ]
null
null
null
#include "StdAfx.h" #include "GifInfo.h" namespace DuiLib { CGifInfo::CGifInfo(int nFrameCnt) : vGifFrame(nFrameCnt), nCurFrame(0), bIsDeleting(false) { } CGifInfo::~CGifInfo(void) { bIsDeleting = true; for (int i = 0; i < vGifFrame.GetSize(); i++) { CRenderEngine::FreeImage((TImageInfo *)vGifFr...
17.146667
90
0.61042
Angus43344343
0756b93fd41b5c49e8dd411bb8ee31270c478acc
856
cc
C++
ConstructTheArray/main.cc
wuxingyu1983/HackerRank
c42da8506fc65eca9bf6015b62c4446f9ab2af14
[ "MIT" ]
null
null
null
ConstructTheArray/main.cc
wuxingyu1983/HackerRank
c42da8506fc65eca9bf6015b62c4446f9ab2af14
[ "MIT" ]
null
null
null
ConstructTheArray/main.cc
wuxingyu1983/HackerRank
c42da8506fc65eca9bf6015b62c4446f9ab2af14
[ "MIT" ]
null
null
null
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <stdio.h> #include <string.h> #include <iostream> #include <fstream> #include <map> using namespace std; #define MOD 1000000007 int main() { int n, k, x; cin >> n >> k >> x; long long count = 0; l...
15.017544
52
0.496495
wuxingyu1983
07592ba04f2d62f551ea5affccc5b585d7c3122d
4,234
cpp
C++
shark_tornado.cpp
goongg/SamSung
d07f8ca06fa21c2c26f63f89978b79a204373262
[ "CECILL-B" ]
null
null
null
shark_tornado.cpp
goongg/SamSung
d07f8ca06fa21c2c26f63f89978b79a204373262
[ "CECILL-B" ]
null
null
null
shark_tornado.cpp
goongg/SamSung
d07f8ca06fa21c2c26f63f89978b79a204373262
[ "CECILL-B" ]
null
null
null
#include <iostream> #include <vector> using namespace std; //순서는 L부터 int dr[8] = {0, 1, 1, 1, 0, -1, -1, -1 }; int dc[8] = {-1,-1, 0, 1, 1, 1, 0, -1 }; #define L 0 #define D 2 #define R 4 #define U 6 struct tornato { int r; int c; int d; int move_cnt; int direct_cnt; }; class sh...
20.066351
57
0.310581
goongg
0759377b020ab925954dbed592fccc957c013249
4,065
hpp
C++
include/intent/intent_service/TermIndex.hpp
open-intent-io/open-intent
57d8c4fc89c038f51138d51e776880e728152194
[ "MIT" ]
47
2016-07-05T15:20:33.000Z
2021-08-06T05:38:33.000Z
include/intent/intent_service/TermIndex.hpp
open-intent-io/open-intent
57d8c4fc89c038f51138d51e776880e728152194
[ "MIT" ]
30
2016-07-03T22:42:11.000Z
2017-11-17T15:58:10.000Z
include/intent/intent_service/TermIndex.hpp
open-intent-io/open-intent
57d8c4fc89c038f51138d51e776880e728152194
[ "MIT" ]
8
2016-07-22T20:07:58.000Z
2017-11-05T10:40:29.000Z
/* |---------------------------------------------------------| | ___ ___ _ _ | | / _ \ _ __ ___ _ __ |_ _|_ __ | |_ ___ _ __ | |_ | | | | | | '_ \ / _ \ '_ \ | || '_ \| __/ _ \ '_ \| __| | | | |_| | |_) | __/ | | || || | | | || __/ | | | |_ | | \___/| .__/ \...
36.621622
80
0.56433
open-intent-io
075b0eabbb7515613f75c172566609e97f51c73e
133
hpp
C++
hls/snic_tcp_wrapper/snic_tcp_wrapper.hpp
WukLab/fpga-network-stack
e4557741c1a428ccffe4241741bf8d9fd2baa720
[ "BSD-3-Clause" ]
null
null
null
hls/snic_tcp_wrapper/snic_tcp_wrapper.hpp
WukLab/fpga-network-stack
e4557741c1a428ccffe4241741bf8d9fd2baa720
[ "BSD-3-Clause" ]
null
null
null
hls/snic_tcp_wrapper/snic_tcp_wrapper.hpp
WukLab/fpga-network-stack
e4557741c1a428ccffe4241741bf8d9fd2baa720
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "../axi_utils.hpp" #include "../packet.hpp" #include "../toe/toe.hpp" #include "snic_tcp_wrapper_config.hpp"
16.625
38
0.706767
WukLab
075b17519cb7982d69532e9a1c94c112202314ad
3,708
cpp
C++
apps/testapps/ofxPangoTest/src/testApp.cpp
eraly5555/Hub
e890f841f16988c642cf6390fa31c3c5ae82773d
[ "MIT" ]
2
2015-12-01T16:33:43.000Z
2016-04-07T03:43:32.000Z
apps/testapps/ofxPangoTest/src/testApp.cpp
eraly5555/Hub
e890f841f16988c642cf6390fa31c3c5ae82773d
[ "MIT" ]
null
null
null
apps/testapps/ofxPangoTest/src/testApp.cpp
eraly5555/Hub
e890f841f16988c642cf6390fa31c3c5ae82773d
[ "MIT" ]
3
2020-02-17T14:36:18.000Z
2021-08-09T12:02:59.000Z
#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofEnableAlphaBlending(); ofBackground(255,255,255); pango = new ofxPango(); context = pango->createContextWithSurface(450.0f, 800.0f); context->color4f(1.0f, 1.0f, 1.0f, 0.0f); cont...
33.107143
715
0.538565
eraly5555
075cec83cb0462db4f9d1d925a861c2b2f25dd03
2,349
hpp
C++
Machine Registration/CPng.hpp
Ohto-Ai/RegistrationCode
890b95ea634799d4af7075cdce27bdf3b510d493
[ "WTFPL" ]
null
null
null
Machine Registration/CPng.hpp
Ohto-Ai/RegistrationCode
890b95ea634799d4af7075cdce27bdf3b510d493
[ "WTFPL" ]
null
null
null
Machine Registration/CPng.hpp
Ohto-Ai/RegistrationCode
890b95ea634799d4af7075cdce27bdf3b510d493
[ "WTFPL" ]
null
null
null
#pragma once #include <atlimage.h> namespace thatboy { namespace mfc { class CPng : public CImage { public: using CImage::CImage; virtual ~CPng() {}; void AlphaPreMul() { for (int i = 0; i < CImage::GetWidth(); i++) { for (int j = 0; j < CImage::GetHeight(); j++) { LPBYT...
26.693182
142
0.641124
Ohto-Ai
075d38401875c9e5a95f24bee81cddf8cc42d287
7,105
hh
C++
src/systemc/ext/dt/fx/sc_context.hh
cupyty/server
ee0ff2205c36d1ad20dccea77fb27913ad408c8b
[ "BSD-3-Clause" ]
30
2019-07-12T02:35:33.000Z
2022-02-22T03:34:35.000Z
src/systemc/ext/dt/fx/sc_context.hh
teotro/dolma
23d2f7dde0951eab204a6f0798a5ad96b57ffa50
[ "BSD-3-Clause" ]
2
2021-02-15T15:34:34.000Z
2022-01-30T17:46:00.000Z
src/systemc/ext/dt/fx/sc_context.hh
teotro/dolma
23d2f7dde0951eab204a6f0798a5ad96b57ffa50
[ "BSD-3-Clause" ]
12
2019-10-16T02:23:23.000Z
2022-03-30T09:21:10.000Z
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
25.195035
79
0.540605
cupyty
79e3bed3b47ee469423e3adbcf49d3ac4e0415f4
13,110
cpp
C++
mesh.cpp
mkellydevv/subdivision_surface_modeler
b38624be727dd662ad7085e12719377729e1eb0f
[ "MIT" ]
null
null
null
mesh.cpp
mkellydevv/subdivision_surface_modeler
b38624be727dd662ad7085e12719377729e1eb0f
[ "MIT" ]
null
null
null
mesh.cpp
mkellydevv/subdivision_surface_modeler
b38624be727dd662ad7085e12719377729e1eb0f
[ "MIT" ]
null
null
null
#include "mesh.h" vertex::vertex(vec4 vec) { position = vec; } edge::edge(vertex* a, vertex* b) { v1 = a; v2 = b; } face::face(vertex* a, vertex* b, vertex* c, vertex* d, mesh* m) { // Adds the four vertices to this face vertices.push_back(a); vertices.push_back(b); vertices.push_back(c); vertices.push_back(...
32.693267
140
0.630206
mkellydevv
79e4bc166b9ce3741e5817e890bfacf29e7ca410
638
hpp
C++
include/boost/cgi/fwd/basic_connection_fwd.hpp
Sil3ntStorm/libtelegram
a0c52ba4aac5519a3031dba506ad4a64cd8fca83
[ "MIT" ]
118
2016-10-02T10:49:02.000Z
2022-03-23T14:32:05.000Z
include/boost/cgi/fwd/basic_connection_fwd.hpp
Sil3ntStorm/libtelegram
a0c52ba4aac5519a3031dba506ad4a64cd8fca83
[ "MIT" ]
21
2017-04-21T13:34:36.000Z
2021-12-08T17:00:40.000Z
include/boost/cgi/fwd/basic_connection_fwd.hpp
Sil3ntStorm/libtelegram
a0c52ba4aac5519a3031dba506ad4a64cd8fca83
[ "MIT" ]
35
2016-06-08T15:31:03.000Z
2022-03-23T16:43:28.000Z
// -- basic_connection_fwd.hpp -- // // Copyright (c) Darren Garvey 2007. // 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) // ////////////////////////////////////////////////////...
29
64
0.673981
Sil3ntStorm
79e4f2c21bfb413405755cfabf5d5a28affff35a
6,576
cpp
C++
src/data/RtMaskImage.cpp
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
7
2015-02-10T17:00:49.000Z
2021-07-27T22:09:43.000Z
src/data/RtMaskImage.cpp
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
11
2015-02-22T19:15:53.000Z
2021-08-04T17:26:18.000Z
src/data/RtMaskImage.cpp
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
8
2015-07-06T22:31:51.000Z
2019-04-22T21:22:07.000Z
/*========================================================================= * RtMaskImage.cpp defines a class for an MR image * * Copyright 2007-2013, the MURFI dev team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
24.629213
77
0.655109
cdla
79edd8d8b15bf2c37e932983af4978e5dac91be3
1,219
cpp
C++
src/cppwasm/SparseKernel.cpp
gdicristofaro/ConstantQJs
8625f7668dc91f98bf2463c57893b65ad608d373
[ "Apache-2.0" ]
null
null
null
src/cppwasm/SparseKernel.cpp
gdicristofaro/ConstantQJs
8625f7668dc91f98bf2463c57893b65ad608d373
[ "Apache-2.0" ]
null
null
null
src/cppwasm/SparseKernel.cpp
gdicristofaro/ConstantQJs
8625f7668dc91f98bf2463c57893b65ad608d373
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <string> #include <stdio.h> #include "KernelEntry.hpp" #include "SparseKernel.hpp" using namespace std; namespace constantq { vector<vector<KernelEntry> > SparseKernel::matrix() const { return _matrix; } int SparseKernel::size() { return _size; } int SparseKernel::bins() { ret...
25.93617
107
0.503692
gdicristofaro
79f518a1ee015acc02746ba1bec5b0ee0b4be776
2,574
cc
C++
Prior_calc_anticentre.cc
PaulMcMillan-Astro/AnticentreBayesianDistances
a0bf7d808a4d62f850129b92ba10081db2061377
[ "MIT" ]
null
null
null
Prior_calc_anticentre.cc
PaulMcMillan-Astro/AnticentreBayesianDistances
a0bf7d808a4d62f850129b92ba10081db2061377
[ "MIT" ]
null
null
null
Prior_calc_anticentre.cc
PaulMcMillan-Astro/AnticentreBayesianDistances
a0bf7d808a4d62f850129b92ba10081db2061377
[ "MIT" ]
null
null
null
/*----------------------------------------------------------------------------- * * Distance_calc_anticentre.cc * Author: PJM * email: paul@astro.lu.se * Github: https://github.com/PaulMcMillan-Astro/ * * Description: Code which calculates distances based on a Bayesian scheme, a la * McMillan 2018 * *------------------...
24.75
103
0.567211
PaulMcMillan-Astro
79f917b5bb25fac9b187e711ef1bccd7f5f168d7
3,074
cpp
C++
test/shared/test_c25519.cpp
pb173-2019/hello-world
00aaee14ca9d112c9de42149f674148988b18fe7
[ "MIT" ]
4
2019-03-09T07:15:44.000Z
2021-10-16T08:47:54.000Z
test/shared/test_c25519.cpp
pb173-2019/hello-world
00aaee14ca9d112c9de42149f674148988b18fe7
[ "MIT" ]
71
2019-03-09T07:23:16.000Z
2019-05-20T17:02:56.000Z
test/shared/test_c25519.cpp
pb173-2019/hello-world
00aaee14ca9d112c9de42149f674148988b18fe7
[ "MIT" ]
null
null
null
#include <iostream> #include "catch.hpp" #include "../../src/shared/curve_25519.h" #include "../../include/eddsa/eddsa.h" using namespace helloworld; TEST_CASE("Curve keygen & key loading") { C25519KeyGen keyGen1; C25519KeyGen keyGen2; C25519 client; C25519 server; SECTION("No encryption") { ...
40.447368
123
0.697463
pb173-2019
0303ab1bf302d43a46b52ca282161c7f52beedf6
10,836
cpp
C++
src/Backends/Vulkan/src/descriptor_set.cpp
jayrulez/LiteFX
482480fee96dd80c73356cd6898ea0e0544ac09d
[ "MIT" ]
8
2021-06-23T09:04:10.000Z
2022-02-06T19:01:21.000Z
src/Backends/Vulkan/src/descriptor_set.cpp
jayrulez/LiteFX
482480fee96dd80c73356cd6898ea0e0544ac09d
[ "MIT" ]
29
2021-06-23T13:59:54.000Z
2021-08-03T14:12:59.000Z
src/Backends/Vulkan/src/descriptor_set.cpp
jayrulez/LiteFX
482480fee96dd80c73356cd6898ea0e0544ac09d
[ "MIT" ]
1
2021-10-30T18:44:02.000Z
2021-10-30T18:44:02.000Z
#include <litefx/backends/vulkan.hpp> using namespace LiteFX::Rendering::Backends; // ------------------------------------------------------------------------------------------------ // Implementation. // ------------------------------------------------------------------------------------------------ class VulkanDesc...
43.518072
212
0.688723
jayrulez
0304719bf335f1e3dc0464d349e5d5ea09936ca3
1,441
cpp
C++
Trem/src/trem/renderer/buffer_layout.cpp
Tremah/TremEngine
29e04e69da84e4c60709854010376edc1b96dc0a
[ "MIT" ]
10
2021-01-17T01:48:31.000Z
2021-12-31T19:31:22.000Z
Trem/src/trem/renderer/buffer_layout.cpp
Tremah/TremEngine
29e04e69da84e4c60709854010376edc1b96dc0a
[ "MIT" ]
null
null
null
Trem/src/trem/renderer/buffer_layout.cpp
Tremah/TremEngine
29e04e69da84e4c60709854010376edc1b96dc0a
[ "MIT" ]
null
null
null
#include <trpch.h> #include "buffer_layout.h" namespace Trem { void BufferLayout::addBufferElement(const Data::BufferElement& element) { bufferElements_.push_back(element); //update layout information //elementCount = total count of elements in one vertex layoutStats_.elementCount_ += element....
25.732143
114
0.689799
Tremah
030cae3624d5161ad412b68a27d4077a085c294e
15,167
hpp
C++
ThreeDScanner-iOS/Libraries/PCL/include/pcl-1.8/pcl/recognition/impl/cg/hough_3d.hpp
anwholesquare/3DScanr
335b6fa47a86b7c121e26ad2cbde342340ec855b
[ "MIT" ]
170
2016-02-01T18:58:50.000Z
2022-03-17T05:28:01.000Z
ThreeDScanner-iOS/Libraries/PCL/include/pcl-1.8/pcl/recognition/impl/cg/hough_3d.hpp
anwholesquare/3DScanr
335b6fa47a86b7c121e26ad2cbde342340ec855b
[ "MIT" ]
162
2016-01-29T17:04:29.000Z
2022-02-10T16:25:37.000Z
ThreeDScanner-iOS/Libraries/PCL/include/pcl-1.8/pcl/recognition/impl/cg/hough_3d.hpp
anwholesquare/3DScanr
335b6fa47a86b7c121e26ad2cbde342340ec855b
[ "MIT" ]
83
2016-01-28T22:49:01.000Z
2022-03-28T03:11:24.000Z
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2012, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
40.445333
196
0.671062
anwholesquare
0312ac24aa87dea24b527c7cef184411f3629885
13,151
cpp
C++
source/Events/classGameScene.cpp
mjjq/ballEngine
891c5bbc2b69f068dde5b28152edd9a97899d132
[ "MIT" ]
null
null
null
source/Events/classGameScene.cpp
mjjq/ballEngine
891c5bbc2b69f068dde5b28152edd9a97899d132
[ "MIT" ]
26
2018-01-27T00:01:55.000Z
2018-08-14T19:53:02.000Z
source/Events/classGameScene.cpp
mjjq/ballEngine
891c5bbc2b69f068dde5b28152edd9a97899d132
[ "MIT" ]
null
null
null
/** @class NonSimulationStuff Purpose: Handle all aspects of the program which are not involved in simulation. This includes event handling of user inputs, and functions to do with rendering. @author mjjq */ #include <iostream> #include <SFML/Graphics.hpp> #include <cmath> #include <thread> #inclu...
28.651416
82
0.614554
mjjq
03156fbaa519531458cf17ff3f934d233b9693e8
1,330
cc
C++
exerciceP10/text/textviewer.cc
Nebulean/projet-BA2
df86436539b19becf1c806e9f3ce2c7cbb3e4161
[ "MIT" ]
null
null
null
exerciceP10/text/textviewer.cc
Nebulean/projet-BA2
df86436539b19becf1c806e9f3ce2c7cbb3e4161
[ "MIT" ]
null
null
null
exerciceP10/text/textviewer.cc
Nebulean/projet-BA2
df86436539b19becf1c806e9f3ce2c7cbb3e4161
[ "MIT" ]
null
null
null
#include "textviewer.h" #include "pendule.h" #include "ressort.h" #include "systeme.h" #include "chariot.h" #include "penduledouble.h" #include "penduleressort.h" #include <iostream> using namespace std; // constructeur de TextViewer TextViewer::TextViewer(ostream& flot) : _flot(flot) {} // dessine les pendules void ...
22.166667
64
0.708271
Nebulean
031785f1b658510ceb69f1f8f0fa3c6eceff7324
1,799
cpp
C++
libraries/Crypto/SHA224.cpp
rweather/arduinolibs
662329f1fd1ba57d1312253dfe81ff0e0e2ec706
[ "MIT" ]
356
2015-01-11T15:34:14.000Z
2022-03-30T13:57:24.000Z
libraries/Crypto/SHA224.cpp
rweather/arduinolibs
662329f1fd1ba57d1312253dfe81ff0e0e2ec706
[ "MIT" ]
57
2015-09-25T09:34:37.000Z
2022-01-30T19:51:50.000Z
libraries/Crypto/SHA224.cpp
rweather/arduinolibs
662329f1fd1ba57d1312253dfe81ff0e0e2ec706
[ "MIT" ]
174
2015-01-11T15:42:25.000Z
2022-03-26T21:46:08.000Z
/* * Copyright (C) 2015 Southern Storm Software, Pty Ltd. * * 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, ...
29.491803
78
0.704836
rweather
0318ebcb3d029fe46ff3f9f6866f5fafd193ae54
946
cpp
C++
test/unit/int.cpp
JuanluMorales/cnl
fb0ad2be9315471809bea58643c8c90729644cd7
[ "BSL-1.0" ]
523
2017-07-27T02:43:25.000Z
2022-03-24T21:27:22.000Z
test/unit/int.cpp
JuanluMorales/cnl
fb0ad2be9315471809bea58643c8c90729644cd7
[ "BSL-1.0" ]
377
2017-07-28T04:09:46.000Z
2022-03-19T12:20:11.000Z
test/unit/int.cpp
JuanluMorales/cnl
fb0ad2be9315471809bea58643c8c90729644cd7
[ "BSL-1.0" ]
63
2017-08-16T14:43:40.000Z
2022-03-21T16:07:02.000Z
// Copyright John McFarlane 2021. // 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) /// \file /// \brief test of `cnl/integer.h` #include <cnl/integer.h> #include <cnl/_impl/cstdint/type...
28.666667
61
0.724101
JuanluMorales
031a6fc505c992189f3169ceccb6877dac04ecb0
4,659
hpp
C++
inc/MessageParser.hpp
ACubeSAT/ecss-services
92d81c1ff455d9baef9417e656388c98ec552751
[ "MIT" ]
null
null
null
inc/MessageParser.hpp
ACubeSAT/ecss-services
92d81c1ff455d9baef9417e656388c98ec552751
[ "MIT" ]
null
null
null
inc/MessageParser.hpp
ACubeSAT/ecss-services
92d81c1ff455d9baef9417e656388c98ec552751
[ "MIT" ]
null
null
null
#ifndef ECSS_SERVICES_MESSAGEPARSER_HPP #define ECSS_SERVICES_MESSAGEPARSER_HPP #include <Services/EventActionService.hpp> #include "Message.hpp" /** * A generic class responsible for the execution and the parsing of the incoming telemetry and telecommand * packets * * This class is responsible for converting Pac...
41.598214
119
0.647993
ACubeSAT
031c3d7d1ac8b3c4e060084f51775b4a0dc044ca
147
cpp
C++
TicTacToe_fSearchTrials/main.cpp
Folling/TicTacToeAB
0f7ecb7c355a363249ccafd78124816e92fd2604
[ "MIT" ]
null
null
null
TicTacToe_fSearchTrials/main.cpp
Folling/TicTacToeAB
0f7ecb7c355a363249ccafd78124816e92fd2604
[ "MIT" ]
null
null
null
TicTacToe_fSearchTrials/main.cpp
Folling/TicTacToeAB
0f7ecb7c355a363249ccafd78124816e92fd2604
[ "MIT" ]
null
null
null
#include <iostream> #include <conio.h> #include "board.h" int main() { choosePlayer(); initGame(); representBoard(); runGame(); _getch(); }
11.307692
19
0.646259
Folling
031d49f517a629c3c94ad5e7e7925efa4178e6e5
442
cpp
C++
elems/arrays/matrix_rotation.cpp
vino-ebe/int-pgms
124e63d46092bd974d44afe67bd17727892afefa
[ "BSD-2-Clause" ]
null
null
null
elems/arrays/matrix_rotation.cpp
vino-ebe/int-pgms
124e63d46092bd974d44afe67bd17727892afefa
[ "BSD-2-Clause" ]
null
null
null
elems/arrays/matrix_rotation.cpp
vino-ebe/int-pgms
124e63d46092bd974d44afe67bd17727892afefa
[ "BSD-2-Clause" ]
null
null
null
#include<iostream> using namespace std; int main() { int m[4][4] = {1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15, 16}; int size = 3; for (int i = 0; i < 4; i++) { for (int j = i; j < 4; j++) { int t1 = a[j][size]; ...
21.047619
42
0.337104
vino-ebe
03385dbc7b4186cc161a6d6bc333cc84d2b0e056
2,396
cc
C++
src/brickred/log_async_sink.cc
kaienkira/brickred-server
59e6fc005f9a0201615b41acfac126d3bb36af1f
[ "MIT" ]
4
2015-10-18T01:55:18.000Z
2021-03-16T12:46:45.000Z
src/brickred/log_async_sink.cc
kaienkira/brickred-server
59e6fc005f9a0201615b41acfac126d3bb36af1f
[ "MIT" ]
null
null
null
src/brickred/log_async_sink.cc
kaienkira/brickred-server
59e6fc005f9a0201615b41acfac126d3bb36af1f
[ "MIT" ]
3
2015-10-18T01:52:46.000Z
2021-03-16T12:46:46.000Z
#include <brickred/log_async_sink.h> #include <cstring> #include <brickred/concurrent_queue.h> #include <brickred/dynamic_buffer.h> #include <brickred/object_pool.h> #include <brickred/mutex.h> #include <brickred/thread.h> namespace brickred { class LogAsyncSink::Impl { public: explicit Impl(LogSink *adapted_si...
23.262136
79
0.6298
kaienkira
033d376beb6d2df063536aa090f49d062359a82d
1,193
cpp
C++
src/structure/Aabb.cpp
nagato0614/pathtracing
1295b6fb38a89ca15e4da240208b612a22cb45d2
[ "MIT" ]
null
null
null
src/structure/Aabb.cpp
nagato0614/pathtracing
1295b6fb38a89ca15e4da240208b612a22cb45d2
[ "MIT" ]
6
2018-09-16T14:16:51.000Z
2018-09-16T14:33:22.000Z
src/structure/Aabb.cpp
nagato0614/Pathtracing
1295b6fb38a89ca15e4da240208b612a22cb45d2
[ "MIT" ]
null
null
null
// // Created by 長井亨 on 2018/07/28. // #include <float.h> #include "Aabb.hpp" namespace nagato{ Aabb::Aabb(Vector3 min, Vector3 max) : min(min), max(max) { } bool Aabb::intersect(Ray &ray) { float t_max = FLT_MAX ; // AABB からレイが外に出る時刻 float t_min = -FLT_MAX; // AABB にレイが侵入する時刻 ...
27.744186
118
0.519698
nagato0614
03403f459880cd140a7db7fab4e855a857bde245
3,572
cpp
C++
examples/LassoRegression.cpp
aniketsharma00411/alpha
4a1010150388022a6c799e9204621c281b1f92cb
[ "MIT" ]
1
2021-04-04T12:12:54.000Z
2021-04-04T12:12:54.000Z
examples/LassoRegression.cpp
mlcpp/alpha
4a1010150388022a6c799e9204621c281b1f92cb
[ "MIT" ]
3
2020-09-17T05:14:58.000Z
2020-09-20T11:12:29.000Z
examples/LassoRegression.cpp
mlcpp/alpha
4a1010150388022a6c799e9204621c281b1f92cb
[ "MIT" ]
1
2020-09-16T10:30:11.000Z
2020-09-16T10:30:11.000Z
// Header files #include <Lasso.hpp> #include <Matrix.hpp> #include <matplotlibcpp.hpp> #include <model_selection.hpp> namespace plt = matplotlibcpp; // Example program // Read csv files to get a Matrix object. // Slice the Matrix object according to our needs. // Run Lasso Regression, print scores and plot predictio...
35.366337
99
0.679731
aniketsharma00411
03495d0ed12d589cfa13677b83b64e89d3f77fc8
16,948
cc
C++
examples/ecg_diagnosis/src/NoS/applications/OSNode/application.cc
zoranzhao/NoSDSE
0e3148572e7cdf3a2d012c95c81863864da236d6
[ "MIT" ]
3
2019-01-26T20:35:47.000Z
2019-07-18T22:09:22.000Z
examples/ecg_diagnosis/src/NoS/applications/OSNode/application.cc
zoranzhao/NoSSim
7b0e9edde0fe19f83d7aaa946fd580a6d9dab978
[ "BSD-3-Clause" ]
null
null
null
examples/ecg_diagnosis/src/NoS/applications/OSNode/application.cc
zoranzhao/NoSSim
7b0e9edde0fe19f83d7aaa946fd580a6d9dab978
[ "BSD-3-Clause" ]
3
2017-09-08T22:13:28.000Z
2019-06-29T21:42:53.000Z
#include "application.h" #include "data_blob.h" /* typedef struct results_data { uint32_t rpeaks; uint32_t normal; uint32_t abnormal; } result_data; typedef struct signal_data { uint32_t size; char* data; struct signal_data* next; } sig_data; typedef struct offloading_data { uint32_t rpeaks; ...
46.054348
173
0.666686
zoranzhao
034e7090c243d9160de85b92121171600a0af641
509
hpp
C++
input/Win32RawManager.hpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
26
2015-04-22T05:25:25.000Z
2020-11-15T11:07:56.000Z
input/Win32RawManager.hpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
2
2015-01-05T10:41:27.000Z
2015-01-06T20:46:11.000Z
input/Win32RawManager.hpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
5
2016-08-02T11:13:57.000Z
2018-10-26T11:19:27.000Z
#ifndef ___INANITY_INPUT_WIN32_RAW_MANAGER_HPP___ #define ___INANITY_INPUT_WIN32_RAW_MANAGER_HPP___ #include "Win32Manager.hpp" BEGIN_INANITY_INPUT /// Класс менеджера ввода, использующий для получения ввода Windows Raw Input. class Win32RawManager : public Win32Manager { private: /// Размер буфера для буферизованн...
21.208333
78
0.817289
quyse
0353e4fb06d8abcc3f708f67f42309a453490ad1
1,011
cpp
C++
online_judges/cf/102091/g/g.cpp
miaortizma/competitive-programming
ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc
[ "MIT" ]
2
2018-02-20T14:44:57.000Z
2018-02-20T14:45:03.000Z
online_judges/cf/102091/g/g.cpp
miaortizma/competitive-programming
ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc
[ "MIT" ]
null
null
null
online_judges/cf/102091/g/g.cpp
miaortizma/competitive-programming
ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; const int NN = 200; vector<int> g[NN], rg[NN], order; int vis[NN], mark; void dfs1(int u) { vis[u] = mark; for (int v : g[u]) if (vis[v] != mark) dfs1(v); order.push_back(u); } void dfs2(int u) { vis[u] = mark; for (int v : rg[u]) if (vis[v] != ...
15.318182
38
0.421365
miaortizma
0354b813c5f248c820defdbadb59d903e473a199
3,589
cc
C++
jnu/src/jnu_unit_test.cc
jni88/utility
4e37d56ec3e6fad4655851d6b4223c4104b4d803
[ "MIT" ]
null
null
null
jnu/src/jnu_unit_test.cc
jni88/utility
4e37d56ec3e6fad4655851d6b4223c4104b4d803
[ "MIT" ]
null
null
null
jnu/src/jnu_unit_test.cc
jni88/utility
4e37d56ec3e6fad4655851d6b4223c4104b4d803
[ "MIT" ]
null
null
null
// By JNI // Implementation of unit test module #include <stdlib.h> #include "jnu_unit_test.h" using namespace jnu; // Unit test report default constructor inline TestCase::Report::Report() : m_total (0), m_passed (0) { } // Report deconstructor inline TestCase::Report::~Report() { } // Report Copy constructor...
27.821705
55
0.683756
jni88
035a706afd4561ea906a1f48d0bc85cd0e12be73
5,897
cpp
C++
maxscale-system-test/bug509.cpp
tut-blog/MaxScale
cabd6dba0665cb8025c694acf98cffaa68d10de0
[ "MIT" ]
null
null
null
maxscale-system-test/bug509.cpp
tut-blog/MaxScale
cabd6dba0665cb8025c694acf98cffaa68d10de0
[ "MIT" ]
null
null
null
maxscale-system-test/bug509.cpp
tut-blog/MaxScale
cabd6dba0665cb8025c694acf98cffaa68d10de0
[ "MIT" ]
null
null
null
/** * @file bug509.cpp regression case for bug 509 and 507 ( "Referring to a nonexisting server in servers=... * doesn't even raise a warning" * and "rw-split router does not send last_insert_id() to master" ) * * - "CREATE TABLE t2 (id INT(10) NOT NULL AUTO_INCREMENT, x int, PRIMARY KEY (id));", * - do a number...
38.292208
111
0.566729
tut-blog
035d084fe8def1b166c3df4665bf6df333d2a17d
1,162
cc
C++
kattis/rockpaperscissors.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
kattis/rockpaperscissors.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
kattis/rockpaperscissors.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
// https://open.kattis.com/problems/rockpaperscissors #include <iomanip> #include <iostream> #include <vector> using namespace std; typedef vector<int> vi; int main() { bool first = true; cout << fixed << setprecision(3); while (true) { int n, k; cin >> n; if (!n) break; cin >> k; vi w(n, 0); vi l(n, ...
21.518519
53
0.44148
Ashindustry007
0360ef2c0436ca13fd095e0f9e9c57473a1142fc
20,294
cpp
C++
OpenCP/libGaussian/gaussian_conv_vyv.cpp
norishigefukushima/OpenCP
63090131ec975e834f85b04e84ec29b2893845b2
[ "BSD-3-Clause" ]
137
2015-03-27T07:11:19.000Z
2022-03-30T05:58:22.000Z
OpenCP/libGaussian/gaussian_conv_vyv.cpp
Pandinosaurus/OpenCP
a5234ed531c610d7944fa14d42f7320442ea34a1
[ "BSD-3-Clause" ]
2
2016-05-18T06:33:16.000Z
2016-07-11T17:39:17.000Z
OpenCP/libGaussian/gaussian_conv_vyv.cpp
Pandinosaurus/OpenCP
a5234ed531c610d7944fa14d42f7320442ea34a1
[ "BSD-3-Clause" ]
43
2015-02-20T15:34:25.000Z
2022-01-27T14:59:37.000Z
/** * \file gaussian_conv_vyv.c * \brief Vliet-Young-Verbeek approximate Gaussian convolution * \author Pascal Getreuer <getreuer@cmla.ens-cachan.fr> * * Copyright (c) 2012-2013, Pascal Getreuer * All rights reserved. * * This program is free software: you can redistribute it and/or modify it * under, at your ...
28.304045
146
0.598305
norishigefukushima
24f678c996b3542b5128a8c97d565e667f946d17
20,228
cpp
C++
src/gpu/GrFragmentProcessor.cpp
RainwayApp/skia
f5583b4936ad13c4efe170807fbaf9b2decd0618
[ "BSD-3-Clause" ]
2
2020-11-05T13:33:11.000Z
2022-02-11T22:26:52.000Z
src/gpu/GrFragmentProcessor.cpp
RainwayApp/skia
f5583b4936ad13c4efe170807fbaf9b2decd0618
[ "BSD-3-Clause" ]
null
null
null
src/gpu/GrFragmentProcessor.cpp
RainwayApp/skia
f5583b4936ad13c4efe170807fbaf9b2decd0618
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/GrFragmentProcessor.h" #include "src/gpu/GrPipeline.h" #include "src/gpu/GrProcessorAnalysis.h" #include "src/gpu/effects/GrXfermodeFragmentProcessor.h" #include ...
39.585127
100
0.635456
RainwayApp
24f7c8a38133968292309eaee56bca0106757459
3,210
cpp
C++
game-overlay/deps/src/corelib/ex/waitable.cpp
MerijnHendriks/gelectron
de1074e707168d2b3e075fd30325fc81bbbbcffc
[ "MIT" ]
383
2018-08-23T01:58:06.000Z
2021-08-07T03:04:00.000Z
game-overlay/deps/src/corelib/ex/waitable.cpp
MerijnHendriks/gelectron
de1074e707168d2b3e075fd30325fc81bbbbcffc
[ "MIT" ]
539
2020-04-23T21:55:15.000Z
2022-03-31T14:06:52.000Z
game-overlay/deps/src/corelib/ex/waitable.cpp
MerijnHendriks/gelectron
de1074e707168d2b3e075fd30325fc81bbbbcffc
[ "MIT" ]
63
2018-09-14T07:11:36.000Z
2021-06-25T09:53:38.000Z
#include "stable.h" #include "waitable.h" #include "thread/timer.h" namespace Ex { WaitableRef::WaitableRef(const std::shared_ptr<WaitableImpl>& d) : d_(d) { } Ex::WaitableState WaitableRef::state() { return d_->state(); } Storm::TimeTick WaitableRef::t...
21.986301
89
0.51215
MerijnHendriks
24fa4a9c4c44de50339eede3a009151b622a3b39
610
cpp
C++
day-1-array/kadens-algorithm.cpp
sounishnath003/practice-180D-strategy
2778c861407a2be04168d5dfa6135a4b624029fc
[ "Apache-2.0" ]
null
null
null
day-1-array/kadens-algorithm.cpp
sounishnath003/practice-180D-strategy
2778c861407a2be04168d5dfa6135a4b624029fc
[ "Apache-2.0" ]
null
null
null
day-1-array/kadens-algorithm.cpp
sounishnath003/practice-180D-strategy
2778c861407a2be04168d5dfa6135a4b624029fc
[ "Apache-2.0" ]
1
2020-10-07T15:02:09.000Z
2020-10-07T15:02:09.000Z
// Kadane's Algorithm #include<bits/stdc++.h> using namespace std ; #define fo(i, n) for(int i = 0; i < n; i++) #define foo(i, k, n) for(int i = k; i < n; i++) #define deb(x) {cout << #x << " " << x << endl ;} #define IOS ios::sync_with_stdio(false), cin.tie(0) ; #define MOD = 1e9+7 ; const int N = 1e6+7 ; int main(in...
23.461538
56
0.514754
sounishnath003
24fb1a585beef8ea26a0f72776311a01cdf6c198
26
cc
C++
extern/glow-extras/timing/glow-extras/timing/GlowAction.cc
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/glow-extras/timing/glow-extras/timing/GlowAction.cc
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/glow-extras/timing/glow-extras/timing/GlowAction.cc
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
#include "GlowAction.hh"
8.666667
24
0.730769
rovedit
24fb460f4ff24b7f5106a90bfa379917a3f5c0c5
680
hpp
C++
src/ch1/factors.hpp
samchon/ModernCppChallengeStudy
19c82fe6a5e2f0dd90e396f9adcff5a5a2a11b07
[ "MIT" ]
null
null
null
src/ch1/factors.hpp
samchon/ModernCppChallengeStudy
19c82fe6a5e2f0dd90e396f9adcff5a5a2a11b07
[ "MIT" ]
null
null
null
src/ch1/factors.hpp
samchon/ModernCppChallengeStudy
19c82fe6a5e2f0dd90e396f9adcff5a5a2a11b07
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include "../utils/console.hpp" #include "sexy.hpp" namespace ch1 { namespace factors { template <typename T> std::vector<T> get_prime_factors(T val) { std::vector<T> ret; for (T i = 2; i <= (val / 2); ++i) if (val % i == 0 && sexy::is_prime(i)) ...
21.935484
67
0.541176
samchon
24fc4bb998bf40e6849cfbc3e1e71782a09b6ae9
7,253
cpp
C++
scopeprotocols/Waterfall.cpp
dreamerx0/scopehal
a6b3a2c554d7507a77363968b65a83051db5ec61
[ "BSD-3-Clause" ]
null
null
null
scopeprotocols/Waterfall.cpp
dreamerx0/scopehal
a6b3a2c554d7507a77363968b65a83051db5ec61
[ "BSD-3-Clause" ]
null
null
null
scopeprotocols/Waterfall.cpp
dreamerx0/scopehal
a6b3a2c554d7507a77363968b65a83051db5ec61
[ "BSD-3-Clause" ]
null
null
null
/*********************************************************************************************************************** * * * libscopeprotocols ...
39.205405
120
0.474562
dreamerx0
24ff3d9d02cbaa070587fa9e545e6729b37b1651
5,190
cpp
C++
src/runtime/agas/detail/hosted_locality_namespace.cpp
sudo-panda/hpx
1527f3ba8055f795f701ddf89368f4a24199f79e
[ "BSL-1.0" ]
1
2021-02-03T09:17:55.000Z
2021-02-03T09:17:55.000Z
src/runtime/agas/detail/hosted_locality_namespace.cpp
sudo-panda/hpx
1527f3ba8055f795f701ddf89368f4a24199f79e
[ "BSL-1.0" ]
null
null
null
src/runtime/agas/detail/hosted_locality_namespace.cpp
sudo-panda/hpx
1527f3ba8055f795f701ddf89368f4a24199f79e
[ "BSL-1.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2011 Bryce Lelbach // Copyright (c) 2012-2017 Hartmut Kaiser // Copyright (c) 2016 Thomas Heller // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying /...
29.827586
84
0.665511
sudo-panda
70000ac7dcf65816ae69ed6e42f3ddb1b181c066
1,790
hpp
C++
cpp/src/samchon/examples/interaction/TSPRequest.hpp
wydingez/truck-packer
c59d2ec322b08ac9ba773616a886a575d2af6461
[ "BSD-3-Clause" ]
111
2016-04-08T14:10:15.000Z
2020-12-21T12:25:10.000Z
cpp/src/samchon/examples/interaction/TSPRequest.hpp
wydingez/truck-packer
c59d2ec322b08ac9ba773616a886a575d2af6461
[ "BSD-3-Clause" ]
16
2016-05-27T05:41:56.000Z
2020-06-23T14:55:00.000Z
cpp/src/samchon/examples/interaction/TSPRequest.hpp
wydingez/truck-packer
c59d2ec322b08ac9ba773616a886a575d2af6461
[ "BSD-3-Clause" ]
49
2016-10-27T09:45:35.000Z
2020-12-21T12:25:13.000Z
#pragma once #include <iostream> #include <samchon/examples/interaction/base/MasterBase.hpp> #include <samchon/examples/tsp/Travel.hpp> #include <samchon/library/FactorialGenerator.hpp> namespace samchon { namespace examples { namespace interaction { class TSPRequest { private: base::MasterBase *master; std:...
24.861111
106
0.675419
wydingez
70005c730e33ad76bc7934ec4f6b9450dcd3e61d
609
hpp
C++
src/api/buffer.hpp
artyomd/GPU-Playground
b79ad200c999a7374a038219272461fa1ad3240f
[ "Apache-2.0" ]
2
2019-10-15T20:34:54.000Z
2020-12-01T06:45:48.000Z
src/api/buffer.hpp
artyomd/GPU-Playground
b79ad200c999a7374a038219272461fa1ad3240f
[ "Apache-2.0" ]
2
2020-03-31T22:08:08.000Z
2021-02-10T18:59:32.000Z
src/api/buffer.hpp
artyomd/GPU-Playground
b79ad200c999a7374a038219272461fa1ad3240f
[ "Apache-2.0" ]
2
2020-05-12T09:38:03.000Z
2021-11-21T07:32:43.000Z
// // Created by Artyom Dangizyan on 1/1/21. // #pragma once #include <cstdlib> #include <iostream> #include <memory> namespace api { class Buffer { public: Buffer() = delete; protected: explicit Buffer(const size_t &size_in_bytes) : size_in_bytes_(size_in_bytes) {} public: virtual void Update(const v...
21
120
0.707718
artyomd
70005c97faca8fba99b25e4677b94984b31984ca
1,080
hpp
C++
armadillo_matrix/include/armadillo_bits/access.hpp
Lauradejong92/wire-grad
0bfd3fb42df363f43eb89f35c2f0769fb805f6cd
[ "BSD-2-Clause" ]
1
2022-02-02T15:47:24.000Z
2022-02-02T15:47:24.000Z
armadillo_matrix/include/armadillo_bits/access.hpp
Lauradejong92/wire-grad
0bfd3fb42df363f43eb89f35c2f0769fb805f6cd
[ "BSD-2-Clause" ]
null
null
null
armadillo_matrix/include/armadillo_bits/access.hpp
Lauradejong92/wire-grad
0bfd3fb42df363f43eb89f35c2f0769fb805f6cd
[ "BSD-2-Clause" ]
2
2019-02-28T17:36:19.000Z
2021-01-24T14:04:18.000Z
// Copyright (C) 2008-2010 NICTA (www.nicta.com.au) // Copyright (C) 2008-2010 Conrad Sanderson // // This file is part of the Armadillo C++ library. // It is provided without any warranty of fitness // for any purpose. You can redistribute this file // and/or modify it under the terms of the GNU // Lesser General Pub...
33.75
108
0.696296
Lauradejong92
7001403465c90f7f1dd049a632b3cb013a0148f0
278
cpp
C++
test/testcase/csr_version.cpp
Wren6991/TwoWireDebug
fc5aaaa842542a9278bdc2eeffe815cda781f173
[ "CC0-1.0" ]
19
2022-03-13T16:02:01.000Z
2022-03-27T14:46:43.000Z
test/testcase/csr_version.cpp
Wren6991/TwoWireDebug
fc5aaaa842542a9278bdc2eeffe815cda781f173
[ "CC0-1.0" ]
null
null
null
test/testcase/csr_version.cpp
Wren6991/TwoWireDebug
fc5aaaa842542a9278bdc2eeffe815cda781f173
[ "CC0-1.0" ]
null
null
null
#include "tb.h" #include "twd_util.h" int main() { tb t("waves.vcd"); connect_target(t, 0); uint32_t csr; tb_assert(read_csr(t, &csr), "Bad parity on CSR read\n"); printf("CSR: %08x\n", csr); tb_assert(csr >> 28 == 0x1u, "Bad CSR version: %u\n", csr >> 28); return 0; }
21.384615
66
0.618705
Wren6991
70057e6eb71448c8fb0cb93d1e34b94ad1a24a6e
1,872
cpp
C++
main/src/Parser/Statement/VariableStatement.cpp
themonsterdev/interpreter
dcf75cbe55eb1b9ed6bcbecd1bde4838d8570be1
[ "MIT" ]
null
null
null
main/src/Parser/Statement/VariableStatement.cpp
themonsterdev/interpreter
dcf75cbe55eb1b9ed6bcbecd1bde4838d8570be1
[ "MIT" ]
null
null
null
main/src/Parser/Statement/VariableStatement.cpp
themonsterdev/interpreter
dcf75cbe55eb1b9ed6bcbecd1bde4838d8570be1
[ "MIT" ]
null
null
null
#include "Parser/Statement/VariableStatement.h" VariableStatement::VariableStatement(Token::Iterator& begin, Token::Iterator& end) { assert(begin != end); // Vérifie qu'un jeton est présent. if (begin->HasType((int)Token::Type::KEYWORD) && begin->GetWordValue() == "var") { begin++; // Passe...
39.829787
130
0.650641
themonsterdev
70074e515c947f46ce1c21fc91af5f949cd7910b
1,813
hpp
C++
include/caffe/layers/residual_quantization_layer.hpp
FuchenUSTC/caffe
6898a2e31cea866da52eafb0e6a9e3a3708526ac
[ "BSD-2-Clause" ]
3
2016-12-14T13:39:43.000Z
2019-02-20T07:03:58.000Z
include/caffe/layers/residual_quantization_layer.hpp
FuchenUSTC/caffe
6898a2e31cea866da52eafb0e6a9e3a3708526ac
[ "BSD-2-Clause" ]
null
null
null
include/caffe/layers/residual_quantization_layer.hpp
FuchenUSTC/caffe
6898a2e31cea866da52eafb0e6a9e3a3708526ac
[ "BSD-2-Clause" ]
null
null
null
#ifndef CAFFE_RESIDUAL_QUANTIZATION_LAYER_HPP_ #define CAFFE_RESIDUAL_QUANTIZATION_LAYER_HPP_ #include <vector> #include "caffe/blob.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/layers/neuron_layer.hpp" namespace caffe{ /** * @brief Residual Quantization loss * for the hashi...
32.963636
78
0.766685
FuchenUSTC
7007e34a9d3071805859493d1f73655b43920535
5,723
cpp
C++
src/bind/easyclick/inputhinter.cpp
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/bind/easyclick/inputhinter.cpp
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/bind/easyclick/inputhinter.cpp
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
#include "inputhinter.hpp" #include <future> #include <memory> #include <mutex> #include "core/background.hpp" #include "core/charlogger.hpp" #include "core/inputgate.hpp" #include "opt/optionlist.hpp" #include "opt/uiacachebuild.hpp" #include "opt/vcmdline.hpp" namespace vind { namespace bind { stru...
31.445055
92
0.460947
e-ntro-py
700b9913f1fc9a6f93fce4759c6e8c60bf5b4e25
14,443
cpp
C++
Programs/ResourceEditor/Classes/PropertyPanel/Private/PropertyModelExt.cpp
Serviak/dava.engine
d51a26173a3e1b36403f846ca3b2e183ac298a1a
[ "BSD-3-Clause" ]
1
2020-11-14T10:18:24.000Z
2020-11-14T10:18:24.000Z
Programs/ResourceEditor/Classes/PropertyPanel/Private/PropertyModelExt.cpp
Serviak/dava.engine
d51a26173a3e1b36403f846ca3b2e183ac298a1a
[ "BSD-3-Clause" ]
null
null
null
Programs/ResourceEditor/Classes/PropertyPanel/Private/PropertyModelExt.cpp
Serviak/dava.engine
d51a26173a3e1b36403f846ca3b2e183ac298a1a
[ "BSD-3-Clause" ]
1
2020-09-05T21:16:17.000Z
2020-09-05T21:16:17.000Z
#include "Classes/PropertyPanel/PropertyModelExt.h" #include "Classes/SceneManager/SceneData.h" #include "Classes/Commands2/SetFieldValueCommand.h" #include "Classes/Commands2/KeyedArchiveCommand.h" #include "Classes/Commands2/AddComponentCommand.h" #include "Classes/PropertyPanel/PropertyPanelCommon.h" #include <TArc...
37.128535
212
0.65035
Serviak
700d59995b6869045ac4b61b8528ade812dfe643
345
cpp
C++
die-tk/win32/controls/PaintBox.cpp
thinlizzy/die-tk
eba597d9453318b03e44f15753323be80ecb3a4e
[ "Artistic-2.0" ]
11
2015-11-06T01:35:35.000Z
2021-05-01T18:34:50.000Z
die-tk/win32/controls/PaintBox.cpp
thinlizzy/die-tk
eba597d9453318b03e44f15753323be80ecb3a4e
[ "Artistic-2.0" ]
null
null
null
die-tk/win32/controls/PaintBox.cpp
thinlizzy/die-tk
eba597d9453318b03e44f15753323be80ecb3a4e
[ "Artistic-2.0" ]
2
2017-07-06T16:05:51.000Z
2019-07-04T01:17:15.000Z
#include "../../controls/PaintBox.h" #include "PaintBoxWin32.h" #define CONTROL_IMPL PaintBoxImpl #include "ControlMacros.h" namespace tk { CONSTRUCTOR_IMPL(PaintBox); CLONE_IMPL(PaintBox); bool PaintBox::transparent() const { return IMPL.transparent(); } void PaintBox::setTransparentBackground() { IMPL.setTrans...
15
41
0.75942
thinlizzy
7011e415cae13e4c4ad52fac90a2ae100213a043
555
cpp
C++
server/src/bodies/gate/open_gate_state.cpp
joaquinbf/TPFinalPortal
27eed2d1c52297b810a4ad30a54f3267083b9c42
[ "Apache-2.0" ]
null
null
null
server/src/bodies/gate/open_gate_state.cpp
joaquinbf/TPFinalPortal
27eed2d1c52297b810a4ad30a54f3267083b9c42
[ "Apache-2.0" ]
null
null
null
server/src/bodies/gate/open_gate_state.cpp
joaquinbf/TPFinalPortal
27eed2d1c52297b810a4ad30a54f3267083b9c42
[ "Apache-2.0" ]
null
null
null
#include "../../../include/bodies/gate/open_gate_state.h" #include "../../../include/bodies/gate/gate.h" #include "../../../include/bodies/gate/gate_state.h" OpenGateState::OpenGateState(Gate *gate): GateState(gate, STATUS::GATE_OPENED) { } STATUS OpenGateState::getStatus() { this->gate->putToSleep(); ret...
24.130435
57
0.663063
joaquinbf
70193f14e1b65240adc22cb0859fb2561595d755
3,582
cpp
C++
Source/CSharp/CSharp/Urho3D/Native/Vector.cpp
TrevorCash/Urho3D_old
d24b1467ab2932e9f2bf7881cf116f841a20a6a7
[ "MIT" ]
3
2018-06-26T05:53:51.000Z
2018-10-24T20:52:38.000Z
Source/CSharp/CSharp/Urho3D/Native/Vector.cpp
TrevorCash/Urho3D_old
d24b1467ab2932e9f2bf7881cf116f841a20a6a7
[ "MIT" ]
1
2018-02-17T17:32:37.000Z
2018-03-03T03:51:11.000Z
Source/CSharp/CSharp/Urho3D/Native/Vector.cpp
TrevorCash/Urho3D_old
d24b1467ab2932e9f2bf7881cf116f841a20a6a7
[ "MIT" ]
2
2018-08-04T21:12:11.000Z
2019-02-09T05:04:29.000Z
// // Copyright (c) 2018 Rokas Kupstys // // 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, publi...
36.55102
99
0.778336
TrevorCash
701b9ac70e2ffdbb7d4e4bc94b42f0c8e013f681
11,494
hpp
C++
Engine/DataStructures/include/bf/data_structures/bf_array.hpp
BluFedora/BluFedoraEngine
41d0948f6a3a41c38fcc9217fe68105e6f1f9c5f
[ "MIT" ]
null
null
null
Engine/DataStructures/include/bf/data_structures/bf_array.hpp
BluFedora/BluFedoraEngine
41d0948f6a3a41c38fcc9217fe68105e6f1f9c5f
[ "MIT" ]
null
null
null
Engine/DataStructures/include/bf/data_structures/bf_array.hpp
BluFedora/BluFedoraEngine
41d0948f6a3a41c38fcc9217fe68105e6f1f9c5f
[ "MIT" ]
null
null
null
/******************************************************************************/ /*! * @file bifrost_array.hpp * @author Shareef Abdoul-Raheem (http://blufedora.github.io/) * @brief * Safe(-ish) C++ wrapper around the bf_array_t.h API. * * @version 0.0.1 * @date * * @copyright Copyright (c) 2019-2021 ...
27.497608
117
0.573082
BluFedora
701cb7ac99169f97f022aa476ccbbfbb6124eeff
1,642
cpp
C++
src/types.cpp
YuviTz1/Gameboy-Emulator
f666d4b75cbbac74695b695358d24d97fc63546b
[ "MIT" ]
28
2018-03-13T22:45:43.000Z
2021-12-28T05:28:57.000Z
src/types.cpp
YuviTz1/Gameboy-Emulator
f666d4b75cbbac74695b695358d24d97fc63546b
[ "MIT" ]
null
null
null
src/types.cpp
YuviTz1/Gameboy-Emulator
f666d4b75cbbac74695b695358d24d97fc63546b
[ "MIT" ]
6
2018-10-08T02:54:54.000Z
2022-02-07T14:35:58.000Z
#include "types.h" /* Helper Functions */ Byte high_byte(Byte_2 target) { return (Byte)(target >> 8) & 0xFF; } Byte low_byte(Byte_2 target) { return (Byte)target; } Byte high_nibble(Byte target) { return ((target >> 4) & 0xF); } Byte low_nibble(Byte target) { Byte test = (target & 0xF); return (target & 0xF);...
12.828125
45
0.638246
YuviTz1
701dc608707cb47f6d1c28eea44e56433a09a885
9,776
cpp
C++
HMI_SDK_LIB/hmi_sdk/connect/src/websocket_to_sdl.cpp
zenghuan1/HMI_SDK_LIB
d0d03af04abe07f5ca087cabcbb1e4f4858f266a
[ "BSD-3-Clause" ]
8
2019-01-04T10:08:39.000Z
2021-12-13T16:34:08.000Z
HMI_SDK_LIB/hmi_sdk/connect/src/websocket_to_sdl.cpp
zenghuan1/HMI_SDK_LIB
d0d03af04abe07f5ca087cabcbb1e4f4858f266a
[ "BSD-3-Clause" ]
33
2017-07-27T09:51:59.000Z
2018-07-13T09:45:52.000Z
HMI_SDK_LIB/hmi_sdk/connect/src/websocket_to_sdl.cpp
JH-G/HMI_SDK_LIB
caa4eac66d1f3b76349ef5d6ca5cf7dd69fcd760
[ "BSD-3-Clause" ]
12
2017-07-28T02:54:53.000Z
2022-02-20T15:48:24.000Z
/** * @file websocket_to_sdl * @brief 管理hmi与sdl交互的各个通道,关联每个通道和对应的socket,进行数据流程的转发以及与sdl连接状态的管理 * @author zenghuan * @date 2018-7-18 * @version A001 * @copyright ford */ #include <websocket_to_sdl.h> #ifdef OS_WIN32 #ifdef WINCE #pragma comment(lib,"ws2.lib") #else #pragma comment(lib,"ws2_32.lib") #endif #else ...
20.494759
110
0.640139
zenghuan1
7022b674c18ab9388e93c3d9354d91d08ea175fa
753
cpp
C++
duilib/Box/ChildBox.cpp
liutexing/NIM_Duilib_Framework
fa163335cd88450a499ee2162afcdb259314c46f
[ "BSD-2-Clause", "MIT" ]
1,461
2019-04-10T09:28:18.000Z
2022-03-30T01:56:09.000Z
duilib/Box/ChildBox.cpp
liutexing/NIM_Duilib_Framework
fa163335cd88450a499ee2162afcdb259314c46f
[ "BSD-2-Clause", "MIT" ]
331
2019-04-11T06:15:44.000Z
2022-03-28T01:24:07.000Z
duilib/Box/ChildBox.cpp
liutexing/NIM_Duilib_Framework
fa163335cd88450a499ee2162afcdb259314c46f
[ "BSD-2-Clause", "MIT" ]
678
2019-04-10T13:27:12.000Z
2022-03-28T02:03:01.000Z
#include "stdafx.h" #include "ChildBox.h" namespace ui { ChildBox::ChildBox() { } void ChildBox::Init() { if (!m_strXMLFile.empty()) { Box* pChildWindow = static_cast<Box*>(GlobalManager::CreateBoxWithCache(m_strXMLFile.c_str(), CreateControlCallback())); if (pChildWindow) { this->Add(pChildWindow); } ...
16.369565
122
0.695883
liutexing
702a7a57663422e90910cca8c4169f7473129ea2
56
inl
C++
args/core/math/glm/gtc/type_precision.inl
Algo-ryth-mix/Args-Engine
cc5084c5060ff071602cc9e2fdfb52791e65ca5b
[ "MIT" ]
null
null
null
args/core/math/glm/gtc/type_precision.inl
Algo-ryth-mix/Args-Engine
cc5084c5060ff071602cc9e2fdfb52791e65ca5b
[ "MIT" ]
null
null
null
args/core/math/glm/gtc/type_precision.inl
Algo-ryth-mix/Args-Engine
cc5084c5060ff071602cc9e2fdfb52791e65ca5b
[ "MIT" ]
null
null
null
/// @ref gtc_precision namespace args::core::math { }
8
26
0.660714
Algo-ryth-mix
702a88314425a99a12239e9d7681d878c6599be1
2,067
cpp
C++
CollisionDetection/Collision2DTypes.cpp
brendankeesing/Collision-Detection
cac654a32cebd1985f6510fc935a844885aa33bf
[ "Unlicense" ]
null
null
null
CollisionDetection/Collision2DTypes.cpp
brendankeesing/Collision-Detection
cac654a32cebd1985f6510fc935a844885aa33bf
[ "Unlicense" ]
null
null
null
CollisionDetection/Collision2DTypes.cpp
brendankeesing/Collision-Detection
cac654a32cebd1985f6510fc935a844885aa33bf
[ "Unlicense" ]
null
null
null
#include "Collision2DTypes.h" #undef max // this can cause a clash with a windows header #include <algorithm> void Collision2DAABB::GetAABB(Collision2DAABB& aabb) const { aabb.HalfWidth = HalfWidth; aabb.HalfHeight = HalfHeight; }; void Collision2DAABB::GetCircle(Collision2DCircle& circle) const { circle.Radius = ...
26.5
90
0.726657
brendankeesing
703250f69e0bafa25a57ea53422fa41f4fdd5a9b
4,261
cpp
C++
src/elona/lua_env/api/modules/module_JSON5.cpp
nanbansenji/ElonaFoobar
ddbd6639db8698e89f09b2512526e855d8016e46
[ "MIT" ]
84
2018-03-03T02:44:32.000Z
2019-07-14T16:16:24.000Z
src/elona/lua_env/api/modules/module_JSON5.cpp
AFB111/elonafoobar
da7a3c86dd45e68e6e490fb260ead1d67c9fff5e
[ "MIT" ]
685
2018-02-27T04:31:17.000Z
2019-07-12T13:43:00.000Z
src/elona/lua_env/api/modules/module_JSON5.cpp
nanbansenji/ElonaFoobar
ddbd6639db8698e89f09b2512526e855d8016e46
[ "MIT" ]
23
2019-07-26T08:52:38.000Z
2021-11-09T09:21:58.000Z
#include "../../../../thirdparty/json5/json5.hpp" #include "../common.hpp" /** * @luadoc * * Parse/stringify JSON5 format. */ namespace elona::lua::api::modules::module_JSON5 { namespace { json5::value to_json5_value(sol::object value) { switch (value.get_type()) { case sol::type::lua_nil: return n...
24.488506
78
0.590237
nanbansenji
70354624a0d50da5d4adb12ffc54149948da7675
1,525
cpp
C++
lib/debug/StacktraceFrame-posix.cpp
entuerto/liborion
35b97594bbea3a6d89dc9261e5fd4e92717e9d71
[ "MIT" ]
null
null
null
lib/debug/StacktraceFrame-posix.cpp
entuerto/liborion
35b97594bbea3a6d89dc9261e5fd4e92717e9d71
[ "MIT" ]
null
null
null
lib/debug/StacktraceFrame-posix.cpp
entuerto/liborion
35b97594bbea3a6d89dc9261e5fd4e92717e9d71
[ "MIT" ]
null
null
null
// // StacktraceFrame-posix.cpp // // Copyright (c) 2013-2017 Tomas Palazuelos // // Distributed under the MIT Software License. (See accompanying file LICENSE.md) // #include <orion/debug/Stacktrace.h> #include <debug/ModuleCache.h> namespace orion { namespace debug { //----------------------------------------------...
19.303797
100
0.620984
entuerto
703e38395d21e7bf163254e6c59fde9b5ed165dc
2,049
cpp
C++
sgu/124.broken-line/124.cpp
KayvanMazaheri/acm
aeb05074bc9b9c92f35b6a741183da09a08af85d
[ "MIT" ]
3
2018-01-19T14:09:23.000Z
2018-02-01T00:40:55.000Z
sgu/124.broken-line/124.cpp
KayvanMazaheri/acm
aeb05074bc9b9c92f35b6a741183da09a08af85d
[ "MIT" ]
null
null
null
sgu/124.broken-line/124.cpp
KayvanMazaheri/acm
aeb05074bc9b9c92f35b6a741183da09a08af85d
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <vector> using namespace std; class Line { inline void get_ac() { if (x2 - x1) a = double(y2 - y1) / double(x2 - x1); else is_x_only = true; c = double(y2) - double(a * x2); return; } public : int x1, x2; int y1, y2; double a, c; bool is...
17.512821
101
0.473402
KayvanMazaheri
703e4db2f50c994203e7c2c5cd608419b6dff1a8
21,072
cpp
C++
GameEngine_Prototype/GameEngine_Prototype/Transform.cpp
Michaelwolf95/CECS_491_GameEngine_Prototype
d134fa376484d1115bf5af75f062ef44c8e70263
[ "MIT" ]
2
2019-10-14T03:45:55.000Z
2020-07-12T08:08:54.000Z
GameEngine_Prototype/GameEngine_Prototype/Transform.cpp
Michaelwolf95/CECS_491_GameEngine_Prototype
d134fa376484d1115bf5af75f062ef44c8e70263
[ "MIT" ]
null
null
null
GameEngine_Prototype/GameEngine_Prototype/Transform.cpp
Michaelwolf95/CECS_491_GameEngine_Prototype
d134fa376484d1115bf5af75f062ef44c8e70263
[ "MIT" ]
1
2019-09-02T03:34:28.000Z
2019-09-02T03:34:28.000Z
#include "GameObject.h" #include "Transform.h" #include <iostream> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/matrix_access.hpp> #include <glm/gtc/quaternion.hpp> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/matrix_decompose.hpp> #include <glm/gtx/euler_angles.hpp> #include <g...
33.607656
161
0.626329
Michaelwolf95
7040b9981425e75d8b2d0e0e571e4d17c013d6b5
10,557
cpp
C++
src/interfaces/python/opengm/opengmcore/opengmcore.cpp
burcin/opengm
a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41
[ "MIT" ]
null
null
null
src/interfaces/python/opengm/opengmcore/opengmcore.cpp
burcin/opengm
a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41
[ "MIT" ]
null
null
null
src/interfaces/python/opengm/opengmcore/opengmcore.cpp
burcin/opengm
a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41
[ "MIT" ]
null
null
null
#define PY_ARRAY_UNIQUE_SYMBOL PyArrayHandleCoreOPENGM #include <boost/python.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> #include <boost/python/module.hpp> #include <boost/python/def.hpp> #include <boost/python/exception_translator.hpp> #include <stddef.h> #include <deque> #include <except...
34.165049
159
0.680496
burcin
7048cd51233b34909a2bc0637c61066ba7d0fbe3
1,154
hpp
C++
sprout/type/boost/mpl/vector.hpp
osyo-manga/Sprout
8885b115f739ef255530f772067475d3bc0dcef7
[ "BSL-1.0" ]
1
2020-02-04T05:16:01.000Z
2020-02-04T05:16:01.000Z
sprout/type/boost/mpl/vector.hpp
jwakely/Sprout
a64938fad0a64608f22d39485bc55a1e0dc07246
[ "BSL-1.0" ]
null
null
null
sprout/type/boost/mpl/vector.hpp
jwakely/Sprout
a64938fad0a64608f22d39485bc55a1e0dc07246
[ "BSL-1.0" ]
null
null
null
#ifndef SPROUT_TYPE_BOOST_MPL_VECTOR_HPP #define SPROUT_TYPE_BOOST_MPL_VECTOR_HPP #include <sprout/config.hpp> #include <boost/mpl/vector.hpp> #include <boost/mpl/size.hpp> #include <boost/mpl/at.hpp> #include <sprout/type/tuple.hpp> #include <sprout/type/boost/mpl/v_iter.hpp> namespace sprout { namespace...
25.086957
62
0.632582
osyo-manga
705037c485b2e89af59e9717797d603279c70e74
1,905
cpp
C++
libs/pfederc_errors/src/errors.cpp
feder-lang/pfederc
337f2262976772707b911f402c96bd4b40230737
[ "MIT" ]
null
null
null
libs/pfederc_errors/src/errors.cpp
feder-lang/pfederc
337f2262976772707b911f402c96bd4b40230737
[ "MIT" ]
null
null
null
libs/pfederc_errors/src/errors.cpp
feder-lang/pfederc
337f2262976772707b911f402c96bd4b40230737
[ "MIT" ]
null
null
null
#include "pfederc/errors.hpp" using namespace pfederc; void pfederc::fatal(const char *file, int line, const std::string &msg) noexcept { std::cerr << file << ':' << line << ": " << msg << std::endl; std::exit(1); } // LogMessage LogMessage::LogMessage(Level logLevel, const std::string &msg, const std::v...
21.166667
73
0.676115
feder-lang
7051229e796dd165da8bde1f2074846076223f9d
4,877
hpp
C++
src/tests/fill.hpp
vreverdy/bit-algorithms
bc12928d46846eb32b3d9e0a006549a947c4803f
[ "BSD-3-Clause" ]
16
2019-06-17T23:56:15.000Z
2021-07-04T23:35:31.000Z
src/tests/fill.hpp
bkille/bit-algorithms
bc12928d46846eb32b3d9e0a006549a947c4803f
[ "BSD-3-Clause" ]
3
2019-04-28T04:53:31.000Z
2019-06-01T15:15:11.000Z
src/tests/fill.hpp
bkille/bit-algorithms
bc12928d46846eb32b3d9e0a006549a947c4803f
[ "BSD-3-Clause" ]
6
2019-03-13T19:21:36.000Z
2020-01-01T12:31:34.000Z
// ============================== FILL TESTS ================================ // // Project: The Experimental Bit Algorithms Library // Name: fill.hpp // Description: Tests for fill algorithms // Creator: Vincent Reverdy // Contributor(s): Bryce Kille [2019] // License: BSD 3-Cl...
34.104895
88
0.485954
vreverdy
70519ff21e1de0966cb0a3db831e35ff5473d7fb
1,840
hpp
C++
etl/_cmath/log2.hpp
tobanteEmbedded/tetl
fc3272170843bcab47971191bcd269a86c5b5101
[ "BSL-1.0" ]
4
2021-11-28T08:48:11.000Z
2021-12-14T09:53:51.000Z
etl/_cmath/log2.hpp
tobanteEmbedded/tetl
fc3272170843bcab47971191bcd269a86c5b5101
[ "BSL-1.0" ]
null
null
null
etl/_cmath/log2.hpp
tobanteEmbedded/tetl
fc3272170843bcab47971191bcd269a86c5b5101
[ "BSL-1.0" ]
null
null
null
/// \copyright Tobias Hienzsch 2019-2021 /// Distributed under the Boost Software License, Version 1.0. /// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt #ifndef TETL_CMATH_LOG2_HPP #define TETL_CMATH_LOG2_HPP #include "etl/_3rd_party/gcem/gcem.hpp" #include "etl/_type_traits/enable_if.hpp...
41.818182
112
0.725
tobanteEmbedded
70550bcac1526b9f547bcfcd43fd617e8f3272e4
13,357
cpp
C++
tests/test-deoxysbc-opt.cpp
medsec/zcz
b39b9ea0ef5747a2a5999687d0c7fee11c6cd5ee
[ "Unlicense" ]
null
null
null
tests/test-deoxysbc-opt.cpp
medsec/zcz
b39b9ea0ef5747a2a5999687d0c7fee11c6cd5ee
[ "Unlicense" ]
null
null
null
tests/test-deoxysbc-opt.cpp
medsec/zcz
b39b9ea0ef5747a2a5999687d0c7fee11c6cd5ee
[ "Unlicense" ]
null
null
null
/* // @author anonymized // @last-modified 2018-08 // Copyright 2018 anonymized // This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any pur...
35.523936
85
0.587707
medsec
7056e763648a87dacd1e123d21d07eaf9847540f
2,271
h++
C++
css/grammar/semantic_factory.h++
1094387012/SKUI
c85dd7fb9d30ff15d5d6de184670cb47e46df6de
[ "MIT" ]
309
2017-05-06T02:15:43.000Z
2022-03-23T08:27:05.000Z
css/grammar/semantic_factory.h++
qdtroy/skui
201707d06bd29c9ec4b05350b25b777493d5362e
[ "MIT" ]
20
2018-05-11T20:56:45.000Z
2022-03-11T06:10:12.000Z
css/grammar/semantic_factory.h++
qdtroy/skui
201707d06bd29c9ec4b05350b25b777493d5362e
[ "MIT" ]
48
2017-06-27T06:04:15.000Z
2022-03-01T12:56:32.000Z
/** * The MIT License (MIT) * * Copyright © 2018-2020 Ruben Van Boxem * * 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 * ...
36.629032
124
0.707177
1094387012
70586d69d4b3a1e67b0c41a27b4b644de67fbcf7
2,556
cpp
C++
LhaForge/FileListWindow/OLE/STGMEDIUM.cpp
jarupxx/lhaforge
e6f9136eeabf9c00884c93b821ee330ac00ef35d
[ "MIT" ]
18
2015-04-21T13:38:16.000Z
2022-01-15T14:50:49.000Z
LhaForge/FileListWindow/OLE/STGMEDIUM.cpp
jarupxx/lhaforge
e6f9136eeabf9c00884c93b821ee330ac00ef35d
[ "MIT" ]
36
2019-08-24T14:29:44.000Z
2022-03-03T14:14:19.000Z
LhaForge/FileListWindow/OLE/STGMEDIUM.cpp
jarupxx/lhaforge
e6f9136eeabf9c00884c93b821ee330ac00ef35d
[ "MIT" ]
5
2019-02-25T12:33:04.000Z
2022-01-03T09:23:41.000Z
/* * MIT License * Copyright (c) 2005- Claybird * 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,...
36.514286
94
0.736698
jarupxx
705f9a99e9283dbf5d268c7fe47654c12245737c
1,347
cc
C++
src/tone_operators/linear_operator.cc
rcythr/raytracer
6a28defc8c27d99ae12e0fcad026ec310e35f4ce
[ "MIT" ]
null
null
null
src/tone_operators/linear_operator.cc
rcythr/raytracer
6a28defc8c27d99ae12e0fcad026ec310e35f4ce
[ "MIT" ]
null
null
null
src/tone_operators/linear_operator.cc
rcythr/raytracer
6a28defc8c27d99ae12e0fcad026ec310e35f4ce
[ "MIT" ]
null
null
null
#include "tone_operators/linear_operator.hpp" using namespace raytracer; void LinearOperator::apply(ViewPlanePtr view_plane) { int64_t height = (int64_t)view_plane->get_height(); int64_t width = (int64_t)view_plane->get_width(); glm::vec3 min = view_plane->get_pixel(0, 0); glm::vec3 max = min; /...
28.0625
65
0.464736
rcythr
7060cb1e9d3db7efbcad2d1a5759bb4febc816f0
6,355
cpp
C++
Example/Visualization/StochasticRenderingCompositor/main.cpp
GoTamura/KVS
121ede0b9b81da56e9ea698a45ccfd71ff64ed41
[ "BSD-3-Clause" ]
null
null
null
Example/Visualization/StochasticRenderingCompositor/main.cpp
GoTamura/KVS
121ede0b9b81da56e9ea698a45ccfd71ff64ed41
[ "BSD-3-Clause" ]
null
null
null
Example/Visualization/StochasticRenderingCompositor/main.cpp
GoTamura/KVS
121ede0b9b81da56e9ea698a45ccfd71ff64ed41
[ "BSD-3-Clause" ]
null
null
null
/*****************************************************************************/ /** * @file main.cpp * @author Naohisa Sakamoto * @brief Example program for kvs::StochasticTetrahedraRenderer class. */ /*---------------------------------------------------------------------------- * * Copyright (c) Visualiza...
31.934673
104
0.555468
GoTamura
7062d24df7a21069e384eccf68f0a18fbb9f8930
1,648
cpp
C++
Piscines/CPP/rush00/srcs/Vec.cpp
SpeedFireSho/42-1
5d7ce17910794a28ca44d937651b961feadcff11
[ "MIT" ]
84
2020-10-13T14:50:11.000Z
2022-01-11T11:19:36.000Z
Piscines/CPP/rush00/srcs/Vec.cpp
SpeedFireSho/42-1
5d7ce17910794a28ca44d937651b961feadcff11
[ "MIT" ]
null
null
null
Piscines/CPP/rush00/srcs/Vec.cpp
SpeedFireSho/42-1
5d7ce17910794a28ca44d937651b961feadcff11
[ "MIT" ]
43
2020-09-10T19:26:37.000Z
2021-12-28T13:53:55.000Z
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Vec.cpp :+: :+: :+: ...
30.518519
80
0.316748
SpeedFireSho
0ad6feae379a5d40490690d102329cb057227e61
1,296
hpp
C++
include/sprout/type_traits/has_assignment_operator.hpp
thinkoid/Sprout
a5a5944bb1779d3bb685087c58c20a4e18df2f39
[ "BSL-1.0" ]
4
2021-12-29T22:17:40.000Z
2022-03-23T11:53:44.000Z
dsp/lib/sprout/sprout/type_traits/has_assignment_operator.hpp
TheSlowGrowth/TapeLooper
ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264
[ "MIT" ]
16
2021-10-31T21:41:09.000Z
2022-01-22T10:51:34.000Z
include/sprout/type_traits/has_assignment_operator.hpp
thinkoid/Sprout
a5a5944bb1779d3bb685087c58c20a4e18df2f39
[ "BSL-1.0" ]
null
null
null
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) ==...
48
79
0.736883
thinkoid
0ad95cff1665f54322342597a44d60e3037946c3
1,078
cpp
C++
model/assessmentarea.cpp
rdffg/bcaa_importer
f92e0b39673b5c557540154d4567c53a15adadcd
[ "Apache-2.0" ]
null
null
null
model/assessmentarea.cpp
rdffg/bcaa_importer
f92e0b39673b5c557540154d4567c53a15adadcd
[ "Apache-2.0" ]
2
2019-05-07T22:49:31.000Z
2021-08-20T20:03:53.000Z
model/assessmentarea.cpp
rdffg/bcaa_importer
f92e0b39673b5c557540154d4567c53a15adadcd
[ "Apache-2.0" ]
null
null
null
#include "assessmentarea.h" using namespace model; AssessmentArea::AssessmentArea(QObject *parent) : BcaaModel(parent) , m_assessmentAreaCode(QString()) , m_assessmentAreaDescription(QString()) { } QString AssessmentArea::assessmentAreaCode() { return m_assessmentAreaCode; } void AssessmentArea::setAssessme...
26.292683
93
0.723562
rdffg
0adad5a808ed48728c3d6af3119d963eda1ffbff
26,793
cpp
C++
src/hdf5/ossimHdf5ImageDataset.cpp
vladislav-horbatiuk/ossim
82417ad868fac022672335e1684bdd91d662c18c
[ "MIT" ]
251
2015-10-20T09:08:11.000Z
2022-03-22T18:16:38.000Z
src/hdf5/ossimHdf5ImageDataset.cpp
vladislav-horbatiuk/ossim
82417ad868fac022672335e1684bdd91d662c18c
[ "MIT" ]
73
2015-11-02T17:12:36.000Z
2021-11-15T17:41:47.000Z
src/hdf5/ossimHdf5ImageDataset.cpp
vladislav-horbatiuk/ossim
82417ad868fac022672335e1684bdd91d662c18c
[ "MIT" ]
146
2015-10-15T16:00:15.000Z
2022-03-22T12:37:14.000Z
//---------------------------------------------------------------------------- // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Author: David Burken // // Description: OSSIM HDF5 Image DataSet. // //---------------------------------------------------------------------...
32.203125
113
0.567611
vladislav-horbatiuk
0ade681a7ae90a353595ef8ab86e11d775ad1212
1,392
hpp
C++
src/SafeFlag.hpp
SkyRiderMike/AlgorithmSDK
05000d3f7bc333da09cb063317b99bdeade6a0f4
[ "MIT" ]
18
2017-03-09T08:25:46.000Z
2022-03-25T01:42:42.000Z
src/SafeFlag.hpp
hypereal-opensource/AlgorithmSDK
05000d3f7bc333da09cb063317b99bdeade6a0f4
[ "MIT" ]
null
null
null
src/SafeFlag.hpp
hypereal-opensource/AlgorithmSDK
05000d3f7bc333da09cb063317b99bdeade6a0f4
[ "MIT" ]
7
2017-05-05T01:40:18.000Z
2021-12-28T10:28:15.000Z
#pragma once #include <mutex> #include <condition_variable> /** * A thread-safe flag for multiple threads to wait for some condition. * References: * http://en.cppreference.com/w/cpp/thread/condition_variable * http://stackoverflow.com/questions/14920725/waiting-for-an-atomic-bool */ class SafeF...
20.776119
78
0.637213
SkyRiderMike