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
c0a85d85b9a9db48247620e73d9af2698fa24d24
3,101
cpp
C++
libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_copy_n.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_copy_n.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_copy_n.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file unit_test_fnd_algorithm_ranges_copy_n.cpp * * @brief ranges::copy_n のテスト * * @author myoukaku */ #include <bksge/fnd/algorithm/ranges/copy_n.hpp> #include <bksge/fnd/algorithm/ranges/equal.hpp> #include <bksge/fnd/iterator/ranges/next.hpp> #include <gtest/gtest.h> #include "constexpr_tes...
25.418033
79
0.610448
myoukaku
c0ac3c7e1842e42aa82dc05fc477a5a50b9e0e4f
400
cpp
C++
MaxConsecutiveOnes/main.cpp
warjiang/leetcode
2c00b1406fc3680a7a0ecf1842b3544a0ca28185
[ "MIT" ]
null
null
null
MaxConsecutiveOnes/main.cpp
warjiang/leetcode
2c00b1406fc3680a7a0ecf1842b3544a0ca28185
[ "MIT" ]
null
null
null
MaxConsecutiveOnes/main.cpp
warjiang/leetcode
2c00b1406fc3680a7a0ecf1842b3544a0ca28185
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include "Solution.cpp" using namespace std; void tranverseVector(vector<int> v){ for(int i = 0; i < v.size(); i++){ cout << v[i] << endl; } } int main(){ Solution* s = new Solution; int arr[] = {1,1,0,1,1,1}; vector<int> v(arr, arr+sizeof(arr)/sizeof(int)); int n = s->fi...
20
49
0.625
warjiang
c0ae4574ae381f12ddf0c1ef0010c75694420436
10,944
cpp
C++
grasp_generation/graspitmodified_lm/SoQt-1.5.0/src/Inventor/Qt/SoQtMaterialList.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
grasp_generation/graspitmodified_lm/SoQt-1.5.0/src/Inventor/Qt/SoQtMaterialList.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
grasp_generation/graspitmodified_lm/SoQt-1.5.0/src/Inventor/Qt/SoQtMaterialList.cpp
KraftOreo/EBM_Hand
9ab1722c196b7eb99b4c3ecc85cef6e8b1887053
[ "MIT" ]
null
null
null
/**************************************************************************\ * * This file is part of the Coin 3D visualization library. * Copyright (C) by Kongsberg Oil & Gas Technologies. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public ...
26.057143
76
0.631305
KraftOreo
c0b18217d10fea0be0191a63a200aa18e9f3ed3b
444
cpp
C++
src/nexus_http_interface/src/nexus_http_interface/create_component.cpp
Nexusoft/LLL-HPP
e5eec2fc402ac222d5b81438f3f3e8e490ba869d
[ "MIT" ]
1
2021-12-06T15:05:28.000Z
2021-12-06T15:05:28.000Z
src/nexus_http_interface/src/nexus_http_interface/create_component.cpp
Nexusoft/Mining-Pool
6b112a951088164c965bfd879fd097538de12aa9
[ "MIT" ]
null
null
null
src/nexus_http_interface/src/nexus_http_interface/create_component.cpp
Nexusoft/Mining-Pool
6b112a951088164c965bfd879fd097538de12aa9
[ "MIT" ]
1
2021-12-06T15:05:36.000Z
2021-12-06T15:05:36.000Z
#include "nexus_http_interface/create_component.hpp" #include "nexus_http_interface/component_impl.hpp" namespace nexuspool { namespace nexus_http_interface { Component::Sptr create_component(std::shared_ptr<spdlog::logger> logger, std::string wallet_ip, std::string auth_user, std::string auth_pw) { return ...
26.117647
127
0.77027
Nexusoft
c0b22e9afc40aa14c293cad55ca091272311ddba
5,413
cpp
C++
src/statespace/SO3.cpp
usc-csci-545/aikido
afd8b203c17cb0b05d7db436f8bffbbe2111a75a
[ "BSD-3-Clause" ]
null
null
null
src/statespace/SO3.cpp
usc-csci-545/aikido
afd8b203c17cb0b05d7db436f8bffbbe2111a75a
[ "BSD-3-Clause" ]
null
null
null
src/statespace/SO3.cpp
usc-csci-545/aikido
afd8b203c17cb0b05d7db436f8bffbbe2111a75a
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <dart/math/Geometry.hpp> #include <aikido/statespace/SO3.hpp> namespace aikido { namespace statespace { //============================================================================== SO3::SO3::State::State() : mValue(1., 0., 0., 0.) { } //================================================...
30.240223
80
0.493257
usc-csci-545
c0b3730a485cea58f9b7267d32eebe31173629f2
559
hpp
C++
src/local/LocalParamController.hpp
ademuri/colordance
ff1bec2096ca72ffeab4defaca188c05e452eedc
[ "MIT" ]
1
2019-09-02T21:21:02.000Z
2019-09-02T21:21:02.000Z
src/local/LocalParamController.hpp
ademuri/colordance
ff1bec2096ca72ffeab4defaca188c05e452eedc
[ "MIT" ]
null
null
null
src/local/LocalParamController.hpp
ademuri/colordance
ff1bec2096ca72ffeab4defaca188c05e452eedc
[ "MIT" ]
1
2018-05-23T05:08:30.000Z
2018-05-23T05:08:30.000Z
#ifndef __LOCAL_PARAM_CONTROLLER_HPP__ #define __LOCAL_PARAM_CONTROLLER_HPP__ #include <map> #include "../controller/ParamController.hpp" /** * Reads params from a serial port, if present. Allows direct reading and * setting params. */ class LocalParamController : public ParamController { public: LocalParamCont...
19.964286
73
0.747764
ademuri
c0b5516f3e0580986004863dc2d8ac01f4e63195
32,072
cc
C++
chrome/browser/chromeos/file_system_provider/provided_file_system.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/browser/chromeos/file_system_provider/provided_file_system.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2016-07-11T15:19:20.000Z
2017-04-02T20:38:55.000Z
chrome/browser/chromeos/file_system_provider/provided_file_system.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
// Copyright 2014 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 "chrome/browser/chromeos/file_system_provider/provided_file_system.h" #include <utility> #include <vector> #include "base/files/file.h" #includ...
38.363636
85
0.67679
Wzzzx
c0b5561bc6ff68f760a1d06832f171148a86e135
3,998
cpp
C++
proyectofinal/TiempoDijkstra.cpp
Jofemago/Estructura-de-datos
96e2fb5c3ff651a97ff5b2916e3b800e75f98b27
[ "MIT" ]
null
null
null
proyectofinal/TiempoDijkstra.cpp
Jofemago/Estructura-de-datos
96e2fb5c3ff651a97ff5b2916e3b800e75f98b27
[ "MIT" ]
null
null
null
proyectofinal/TiempoDijkstra.cpp
Jofemago/Estructura-de-datos
96e2fb5c3ff651a97ff5b2916e3b800e75f98b27
[ "MIT" ]
null
null
null
#include "graph.hh" #include <iostream> #include <unordered_map> #include <unordered_set> #include <ctime> #include <random> #include <ctime> #include <cmath> using namespace std; void Hora(){ time_t tSac = time(NULL); // instante actual tm tms = *localtime(&tSac); cout << "hh:mm:ss " << tms.tm_hour << ":"...
34.765217
138
0.582791
Jofemago
c0b65582bb32698c2510ab746992245917b1b519
3,103
cc
C++
media/base/user_input_monitor.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
media/base/user_input_monitor.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
media/base/user_input_monitor.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
// Copyright 2013 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 "media/base/user_input_monitor.h" #include <utility> #include "base/atomicops.h" #include "base/logging.h" #include "base/single_thread_task_ru...
31.03
80
0.750564
sarang-apps
c0b700887c45e60309776b904abf5458b0837f04
3,267
cpp
C++
Projects/HW1P3/URLParser.cpp
iamjeffx/CSCE-463
c9724a993909db2f9cb58e9835e8c0ec6efa49e5
[ "MIT" ]
null
null
null
Projects/HW1P3/URLParser.cpp
iamjeffx/CSCE-463
c9724a993909db2f9cb58e9835e8c0ec6efa49e5
[ "MIT" ]
null
null
null
Projects/HW1P3/URLParser.cpp
iamjeffx/CSCE-463
c9724a993909db2f9cb58e9835e8c0ec6efa49e5
[ "MIT" ]
1
2022-01-24T09:01:59.000Z
2022-01-24T09:01:59.000Z
/** CSCE 463 Homework 1 Part 3: Spring 2021 * Author: Jeffrey Xu UIN: 527008162 Email: jeffreyxu@tamu.edu Professor Dmitri Loguinov Filename: URLParser.cpp Definition of URLParser functions. Note that fragments are not included in this parser. **/ #include "pch.h" #include "URLParser.h" using namespace std; #d...
25.130769
92
0.655647
iamjeffx
c0b7a6df226bbee4791a4cd6732a3f240379872e
6,489
cpp
C++
src/mf.cpp
durgeshra/libDAI-1
f72414d4381e302c0655f4055dbf526c738bf485
[ "BSD-2-Clause" ]
null
null
null
src/mf.cpp
durgeshra/libDAI-1
f72414d4381e302c0655f4055dbf526c738bf485
[ "BSD-2-Clause" ]
null
null
null
src/mf.cpp
durgeshra/libDAI-1
f72414d4381e302c0655f4055dbf526c738bf485
[ "BSD-2-Clause" ]
null
null
null
/* This file is part of libDAI - http://www.libdai.org/ * * Copyright (c) 2006-2011, The libDAI 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 <iostream> #include <sstream> #include <map> #include <set> #include <...
28.213043
169
0.540145
durgeshra
c0b8aea8fc3ce0dae9b3758dccf149f93ceff9f7
4,661
cpp
C++
cpp/test/frequency_queries_test.cpp
CarnaViire/training
5a01a022167a88a9c90bc6db4e14347ad60ee9e4
[ "Unlicense" ]
3
2017-07-08T05:18:33.000Z
2021-06-11T13:49:37.000Z
cpp/test/frequency_queries_test.cpp
kondratyev-nv/training
ed28507694bc2026867b67c26dc9c4a955b24fb4
[ "Unlicense" ]
44
2017-10-05T20:23:03.000Z
2022-02-10T19:50:21.000Z
cpp/test/frequency_queries_test.cpp
CarnaViire/training
5a01a022167a88a9c90bc6db4e14347ad60ee9e4
[ "Unlicense" ]
4
2017-10-06T19:29:55.000Z
2022-01-04T23:25:18.000Z
#include "gmock/gmock.h" #include "gtest/gtest.h" #include "helpers/file_based_test_helper.hpp" #include "frequency_queries.hpp" #include <vector> using namespace std; namespace fs = experimental::filesystem; vector<int> make_queries(vector<pair<int, int>> const& queries) { frequency_queries fq; vector<in...
41.247788
111
0.598155
CarnaViire
c0b9bc1b7d09c268d1fee8a9f49be94cc20c2e44
9,923
cpp
C++
Modules/Core/src/Controllers/mitkVtkLayerController.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2022-03-03T12:03:32.000Z
2022-03-03T12:03:32.000Z
Modules/Core/src/Controllers/mitkVtkLayerController.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2021-12-22T10:19:02.000Z
2021-12-22T10:19:02.000Z
Modules/Core/src/Controllers/mitkVtkLayerController.cpp
zhaomengxiao/MITK_lancet
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2020-11-27T09:41:18.000Z
2020-11-27T09:41:18.000Z
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
29.709581
117
0.695354
zhaomengxiao
c0bb66c2a0e4b93c897664e3a62284459aeac8ee
3,683
cpp
C++
libraries/animation/src/AnimStateMachine.cpp
stojce/hifi
8e6c860a243131859c0706424097db56e6a604bd
[ "Apache-2.0" ]
null
null
null
libraries/animation/src/AnimStateMachine.cpp
stojce/hifi
8e6c860a243131859c0706424097db56e6a604bd
[ "Apache-2.0" ]
null
null
null
libraries/animation/src/AnimStateMachine.cpp
stojce/hifi
8e6c860a243131859c0706424097db56e6a604bd
[ "Apache-2.0" ]
null
null
null
// // AnimStateMachine.cpp // // Created by Anthony J. Thibault on 9/2/15. // Copyright (c) 2015 High Fidelity, Inc. All rights reserved. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "AnimStateMachine.h...
32.026087
196
0.661146
stojce
c0bc5bd601d19ae6f45567e4e4a1c1bc75e73463
1,073
hpp
C++
016_Full_K-means_Clustering/include/Cluster/K_means_rgb_uv_pic.hpp
DreamWaterFound/Codes
e7d80eb8bfd7d6f104abd18724cb4bface419233
[ "WTFPL" ]
13
2019-02-28T14:28:23.000Z
2021-12-04T04:55:19.000Z
016_Full_K-means_Clustering/include/Cluster/K_means_rgb_uv_pic.hpp
DreamWaterFound/Codes
e7d80eb8bfd7d6f104abd18724cb4bface419233
[ "WTFPL" ]
1
2019-09-07T09:00:50.000Z
2019-12-04T02:13:25.000Z
016_Full_K-means_Clustering/include/Cluster/K_means_rgb_uv_pic.hpp
DreamWaterFound/Codes
e7d80eb8bfd7d6f104abd18724cb4bface419233
[ "WTFPL" ]
1
2020-03-11T16:47:31.000Z
2020-03-11T16:47:31.000Z
#ifndef __K_MEANS_RGB_UV_PIC_HPP__ #define __K_MEANS_RGB_UV_PIC_HPP__ #include "include/Cluster/K_means_rgb_pic.hpp" class K_Means_RGB_UV : public K_Means_RGB { public: K_Means_RGB_UV(size_t clusterNum, size_t itNum, double epson, size_t nHeight, size_t nWitdh, std::vector<RGB_PIXEL> vSamples) :K_Means_RG...
26.825
129
0.685927
DreamWaterFound
c0beae45e099e79ebba6d97e6a20b80f4d545863
3,362
cpp
C++
codebefore/2016.9.25.4.cpp
1980744819/ACM-code
a697242bc963e682e552e655e3d78527e044e854
[ "Apache-2.0" ]
null
null
null
codebefore/2016.9.25.4.cpp
1980744819/ACM-code
a697242bc963e682e552e655e3d78527e044e854
[ "Apache-2.0" ]
null
null
null
codebefore/2016.9.25.4.cpp
1980744819/ACM-code
a697242bc963e682e552e655e3d78527e044e854
[ "Apache-2.0" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstring> #include<malloc.h> #include<cmath> #include<algorithm> using namespace::std; int m; int n; struct stu{ char c[200]; int num; }s[10005]; bool comp(stu a,stu b){ if(strcmp(a.c,b.c)<0) return true; else return false; } int main(){ wh...
26.062016
64
0.234979
1980744819
c0bf83e3248888e2752193872664437f5be09efd
156
cc
C++
cmake/code_tests/rt_test.cc
liubangchen/seastar
5bf108406ae79a5f30383bf8e498dd9d4b51d1a5
[ "Apache-2.0" ]
6,526
2015-09-22T16:47:59.000Z
2022-03-31T07:31:07.000Z
cmake/code_tests/rt_test.cc
liubangchen/seastar
5bf108406ae79a5f30383bf8e498dd9d4b51d1a5
[ "Apache-2.0" ]
925
2015-09-23T13:52:53.000Z
2022-03-31T21:33:25.000Z
cmake/code_tests/rt_test.cc
liubangchen/seastar
5bf108406ae79a5f30383bf8e498dd9d4b51d1a5
[ "Apache-2.0" ]
1,473
2015-09-22T23:19:04.000Z
2022-03-31T21:09:00.000Z
extern "C" { #include <signal.h> #include <time.h> } int main() { timer_t td; struct sigevent sev; timer_create(CLOCK_MONOTONIC, &sev, &td); }
14.181818
45
0.628205
liubangchen
c0c015e72f7221a47940ac067cc945b5efa15aea
4,423
cpp
C++
libraries/ui/src/Tooltip.cpp
mnafees/hifi
d8f0cfa89a1fdf7339bac6af984e940df6265006
[ "Apache-2.0" ]
2
2018-05-07T16:12:38.000Z
2019-04-28T17:32:01.000Z
libraries/ui/src/Tooltip.cpp
mnafees/hifi
d8f0cfa89a1fdf7339bac6af984e940df6265006
[ "Apache-2.0" ]
null
null
null
libraries/ui/src/Tooltip.cpp
mnafees/hifi
d8f0cfa89a1fdf7339bac6af984e940df6265006
[ "Apache-2.0" ]
null
null
null
// // Tooltip.cpp // libraries/ui/src // // Created by Bradley Austin Davis on 2015/04/14 // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "Tooltip.h" #include <QtCore...
34.023077
114
0.639611
mnafees
c0c2c49685701c60b8ec7776421c7f6384dd70cb
7,204
cpp
C++
folly/test/BufferedAtomicTest.cpp
yuhonghong66/folly
60895e074c104264dd26285e5846e80dc215184a
[ "Apache-2.0" ]
1
2020-11-09T12:07:30.000Z
2020-11-09T12:07:30.000Z
folly/test/BufferedAtomicTest.cpp
yuhonghong66/folly
60895e074c104264dd26285e5846e80dc215184a
[ "Apache-2.0" ]
null
null
null
folly/test/BufferedAtomicTest.cpp
yuhonghong66/folly
60895e074c104264dd26285e5846e80dc215184a
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2013-present Facebook, 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 applicable law or a...
32.745455
80
0.73126
yuhonghong66
c0c2e51ef67a2a61b1673bba69cb9de169a89972
1,089
hpp
C++
libs/core/include/fcppt/type_traits/is_value.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
libs/core/include/fcppt/type_traits/is_value.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
libs/core/include/fcppt/type_traits/is_value.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_TYPE_TRAITS_IS_VALUE_HPP_INCLUDED #define FCPPT_TYPE_TRAITS_IS_VALUE_HPP_INCLUDED #...
16.753846
78
0.707989
pmiddend
c0c6351340585eb3f4d5f036d9ee6128112a4c4d
4,167
cpp
C++
src/http/File.cpp
amoscykl98/Catrine
300b3bcf33cedd73b634526a581a3fb82e4dd71e
[ "MIT" ]
4
2019-03-22T23:26:49.000Z
2020-10-14T11:53:26.000Z
src/http/File.cpp
amoscykl98/Catrine
300b3bcf33cedd73b634526a581a3fb82e4dd71e
[ "MIT" ]
null
null
null
src/http/File.cpp
amoscykl98/Catrine
300b3bcf33cedd73b634526a581a3fb82e4dd71e
[ "MIT" ]
null
null
null
/************************************************************************* > File Name: File.cpp > Author: amoscykl > Mail: amoscykl@163.com ************************************************************************/ #include "File.h" #include "Util.h" #include "Iobuffer.h" #include <sys/mman.h> #include <fcntl.h> ...
21.152284
88
0.551956
amoscykl98
c0c6fdce0e03179fef9911f56f741873be3dff85
15,491
cpp
C++
src/lexer/handlers.cpp
Zoxc/mirb
14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6
[ "BSD-3-Clause" ]
10
2016-10-06T06:22:20.000Z
2022-02-28T05:33:09.000Z
src/lexer/handlers.cpp
Zoxc/mirb
14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6
[ "BSD-3-Clause" ]
null
null
null
src/lexer/handlers.cpp
Zoxc/mirb
14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6
[ "BSD-3-Clause" ]
3
2018-01-08T03:34:34.000Z
2021-09-12T12:12:22.000Z
#include "lexer.hpp" #include "../symbol-pool.hpp" #include "../parser/parser.hpp" #include "../tree/nodes.hpp" namespace Mirb { bool Lexer::is_white() { return (input.in(1, 9) || input.in(11, 12) || input.in(14, 32)); } void Lexer::white() { input++; while(is_white()) input++; restep(true); } ...
16.05285
107
0.556646
Zoxc
c0c89e38a9d4bd865f6e0071a68f7328077bd4d3
633
cpp
C++
src/Distance.cpp
SeanStarkey/map-utilities
bb3b29722c24a784d3f3ad34947042fb7449a1f0
[ "Apache-2.0" ]
1
2015-06-03T21:59:01.000Z
2015-06-03T21:59:01.000Z
src/Distance.cpp
SeanStarkey/map-utilities
bb3b29722c24a784d3f3ad34947042fb7449a1f0
[ "Apache-2.0" ]
null
null
null
src/Distance.cpp
SeanStarkey/map-utilities
bb3b29722c24a784d3f3ad34947042fb7449a1f0
[ "Apache-2.0" ]
null
null
null
#include "Distance.h" #include <math.h> #include <iostream> #include "Constants.h" double distance(const Location* c1, const Location* c2) { double dLat = toRadians(c1->getLatitude() - c2->getLatitude()); double dLon = toRadians(c1->getLongitude() - c2->getLongitude()); double lat1 = toRadians(c1->getLati...
28.772727
69
0.661927
SeanStarkey
c0ca738618fb5e4a9c73eeafd585d3fffad04815
979
cpp
C++
Neps/Problems/Chuva (OBI 2019) - 469.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
Neps/Problems/Chuva (OBI 2019) - 469.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
Neps/Problems/Chuva (OBI 2019) - 469.cpp
lucaswilliamgomes/QuestionsCompetitiveProgramming
f0a2cf42bb5a00e5d677b7f3211ac399fe2bf6a0
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main () { int N, M; cin >> N >> M; char matrix [1010][1010]; for (int i = 0; i < N; i++){ for (int j = 0; j < M; j++){ cin >> matrix[i][j]; } } for (int i = 0; i < N; i++){ for (int ...
23.309524
97
0.277835
lucaswilliamgomes
c0d23f9d5daaa8201bc8f80be15c345e6a5a3a70
909
cpp
C++
tests/Polytope/NormalizePolytopeTestSuite.cpp
modsim/hops
4285dd75a07dd844295440a0756b3ba25f5819ac
[ "MIT" ]
7
2020-11-26T05:13:03.000Z
2022-01-12T02:08:40.000Z
tests/Polytope/NormalizePolytopeTestSuite.cpp
modsim/hops
4285dd75a07dd844295440a0756b3ba25f5819ac
[ "MIT" ]
1
2021-02-20T23:16:34.000Z
2021-02-20T23:16:34.000Z
tests/Polytope/NormalizePolytopeTestSuite.cpp
modsim/hops
4285dd75a07dd844295440a0756b3ba25f5819ac
[ "MIT" ]
null
null
null
#define BOOST_TEST_MODULE NormalizePolytopeTestSuite #define BOOST_TEST_DYN_LINK #include <boost/test/included/unit_test.hpp> #include <cmath> #include <hops/Polytope/NormalizePolytope.hpp> BOOST_AUTO_TEST_SUITE(NormalizePolytope) BOOST_AUTO_TEST_CASE(NormalizeSimplex) { Eigen::MatrixXd expectedA(4, 3); ...
27.545455
77
0.566557
modsim
c0d3b7e4daae0a18dda73585d91461202d75845e
6,336
hpp
C++
include/Bit/Graphics/TextureProperties.hpp
jimmiebergmann/Bit-Engine
39324a9e7fb5ab4b1cf3738f871470e0a9ef7575
[ "Zlib" ]
null
null
null
include/Bit/Graphics/TextureProperties.hpp
jimmiebergmann/Bit-Engine
39324a9e7fb5ab4b1cf3738f871470e0a9ef7575
[ "Zlib" ]
null
null
null
include/Bit/Graphics/TextureProperties.hpp
jimmiebergmann/Bit-Engine
39324a9e7fb5ab4b1cf3738f871470e0a9ef7575
[ "Zlib" ]
null
null
null
// /////////////////////////////////////////////////////////////////////////// // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com // // 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...
33.882353
78
0.395991
jimmiebergmann
c0d7f59b8f82d16052ae48c3a72b1ac5ff05af37
209
cpp
C++
extras/general_pipelines/py2_10_20_20/py2_10_20_20.cpp
nvpro-samples/vk_compute_mipmaps
613b94e4d36e6f357472e9c7a3163046deb55678
[ "Apache-2.0" ]
12
2021-07-24T18:33:22.000Z
2022-03-12T16:20:49.000Z
extras/general_pipelines/py2_10_20_20/py2_10_20_20.cpp
nvpro-samples/vk_compute_mipmaps
613b94e4d36e6f357472e9c7a3163046deb55678
[ "Apache-2.0" ]
null
null
null
extras/general_pipelines/py2_10_20_20/py2_10_20_20.cpp
nvpro-samples/vk_compute_mipmaps
613b94e4d36e6f357472e9c7a3163046deb55678
[ "Apache-2.0" ]
3
2021-08-04T02:27:12.000Z
2022-03-13T08:43:24.000Z
#include "nvpro_pyramid_dispatch_alternative.hpp" #include "../py2_dispatch_impl.hpp" NVPRO_PYRAMID_ADD_GENERAL_DISPATCHER(py2_10_20_20, (py2_dispatch_impl<10, 20, 20>))
29.857143
69
0.679426
nvpro-samples
c0d80a3d569a6a3522b2ebc38a601525ece54649
518
hpp
C++
src/Tools/Display/Dumper/Dumper_reduction.hpp
codechecker123/aff3ct
030af3e990027fa803fb2c68f974c9ec0ee79b5d
[ "MIT" ]
null
null
null
src/Tools/Display/Dumper/Dumper_reduction.hpp
codechecker123/aff3ct
030af3e990027fa803fb2c68f974c9ec0ee79b5d
[ "MIT" ]
null
null
null
src/Tools/Display/Dumper/Dumper_reduction.hpp
codechecker123/aff3ct
030af3e990027fa803fb2c68f974c9ec0ee79b5d
[ "MIT" ]
null
null
null
#ifndef DUMPER_REDUCTION_HPP_ #define DUMPER_REDUCTION_HPP_ #include "Dumper.hpp" namespace aff3ct { namespace tools { class Dumper_reduction : Dumper { protected: std::vector<Dumper*> dumpers; public: explicit Dumper_reduction(std::vector<Dumper*> &dumpers); virtual ~Dumper_reduction(); virtual void dump (cons...
17.266667
58
0.694981
codechecker123
c0d97772a1c1e4eaf6658cb081639fc2fea493a0
10,506
cpp
C++
src/maxon_epos_ethercat_sdk/Configuration.cpp
zoenglinghou/maxon_epos_ethercat_sdk
4127085e33dfdbe08061b30941eaac4f5a5e0686
[ "BSD-3-Clause" ]
5
2021-04-06T13:42:34.000Z
2022-02-22T08:37:20.000Z
src/maxon_epos_ethercat_sdk/Configuration.cpp
zoenglinghou/maxon_epos_ethercat_sdk
4127085e33dfdbe08061b30941eaac4f5a5e0686
[ "BSD-3-Clause" ]
2
2021-04-29T15:42:38.000Z
2022-02-23T15:07:31.000Z
src/maxon_epos_ethercat_sdk/Configuration.cpp
zoenglinghou/maxon_epos_ethercat_sdk
4127085e33dfdbe08061b30941eaac4f5a5e0686
[ "BSD-3-Clause" ]
5
2021-04-28T15:06:15.000Z
2022-02-23T09:09:55.000Z
// clang-format off /* ** Copyright 2021 Robotic Systems Lab - ETH Zurich: ** Linghao Zhang, Jonas Junger, Lennart Nachtigall ** ** 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 mu...
35.137124
113
0.63202
zoenglinghou
c0db91560356c7a14f2665a38bc5f060cfdfe65c
389
cpp
C++
test_Graph/main.cpp
Dieupix/Graph
c57f17808e274f3c0f9d2829ecf58daec8983fd6
[ "MIT" ]
4
2021-11-30T18:21:06.000Z
2022-01-05T19:01:57.000Z
test_Graph/main.cpp
Dieupix/Graph
c57f17808e274f3c0f9d2829ecf58daec8983fd6
[ "MIT" ]
null
null
null
test_Graph/main.cpp
Dieupix/Graph
c57f17808e274f3c0f9d2829ecf58daec8983fd6
[ "MIT" ]
null
null
null
#define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" int main() { doctest::Context context; context.setOption("order-by", "name"); // sort the test cases by their name //context.setOption("duration", true); // print the duration of each test case //context.setOption("success", true); // pri...
29.923077
85
0.627249
Dieupix
c0de1d6831a09889f4f65cf431903ff4700f369f
28,755
cpp
C++
tests/unit/utils/test_mem.cpp
bruingineer/sACN-1
aef4a38f025f3800248ac24e377485dba27ed16f
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_mem.cpp
bruingineer/sACN-1
aef4a38f025f3800248ac24e377485dba27ed16f
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_mem.cpp
bruingineer/sACN-1
aef4a38f025f3800248ac24e377485dba27ed16f
[ "Apache-2.0" ]
null
null
null
/****************************************************************************** * Copyright 2021 ETC 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/l...
36.215365
120
0.738028
bruingineer
c0e29d1aa63bcd5ba3fc737bcaeac7f0ab055c62
5,929
cpp
C++
Acrylic_Backend/BackendAPIs/Plexi2DRenderer/PlexiBackend/PlexiBackend_Vulkan/vulkanMain.cpp
TriHardStudios/TSA-Software-2019
c64a1462640124f750ee1d33239f4476ace7fcb6
[ "Apache-2.0" ]
2
2019-09-03T16:48:20.000Z
2019-09-03T23:00:48.000Z
Acrylic_Backend/BackendAPIs/Plexi2DRenderer/PlexiBackend/PlexiBackend_Vulkan/vulkanMain.cpp
TriHardStudios/TSA-Software-2019
c64a1462640124f750ee1d33239f4476ace7fcb6
[ "Apache-2.0" ]
8
2019-11-22T21:34:15.000Z
2020-02-24T16:25:21.000Z
Acrylic_Backend/BackendAPIs/Plexi2DRenderer/PlexiBackend/PlexiBackend_Vulkan/vulkanMain.cpp
TriHardStudios/TSA-Software-2019
c64a1462640124f750ee1d33239f4476ace7fcb6
[ "Apache-2.0" ]
null
null
null
//Dependencies //#include "./../../plexi_usrStructs.hpp" #include "../plexi_shaders.hpp" #include "../plexi_buffer.hpp" #include "../plexi_helper.hpp" #include "vulkanMain.hpp" #include "./VulkanHelpers/validationLayers.hpp" #include "./VulkanHelpers/queueFamilies.hpp" #include "./VulkanHelpers/swapChains.hpp" bool...
31.876344
174
0.708889
TriHardStudios
c0e3aa189fef7d1f17301079c7f7547aed289bec
458
cpp
C++
oj/sp/ACPC10A.cpp
shivanib01/codes
f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3
[ "MIT" ]
null
null
null
oj/sp/ACPC10A.cpp
shivanib01/codes
f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3
[ "MIT" ]
null
null
null
oj/sp/ACPC10A.cpp
shivanib01/codes
f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3
[ "MIT" ]
null
null
null
/* * Created by * Shivani Bhardwaj <shivanib134@gmail.com> */ #include<bits/stdc++.h> using namespace std; int main() { float a1,a2,a3; while(1){ cin>>a1>>a2>>a3; if(a1==0 && a2==0 &&a3==0) break; float APExp=(a3+a1)/2; if(a2==APExp){ cout<<"AP "<<a1+...
16.962963
44
0.427948
shivanib01
c0e4eb218634e84afa44387f81e6e2b349175b78
317
hpp
C++
include/tdc/util/likely.hpp
herlez/tdc
3b85ae183c21410e65f1e739736287df46c38d1d
[ "MIT" ]
1
2021-05-06T13:39:22.000Z
2021-05-06T13:39:22.000Z
include/tdc/util/likely.hpp
herlez/tdc
3b85ae183c21410e65f1e739736287df46c38d1d
[ "MIT" ]
1
2020-03-07T08:05:20.000Z
2020-03-07T08:05:20.000Z
include/tdc/util/likely.hpp
herlez/tdc
3b85ae183c21410e65f1e739736287df46c38d1d
[ "MIT" ]
2
2020-05-27T07:54:43.000Z
2021-11-18T13:29:14.000Z
#pragma once namespace tdc { /// \brief Shortcut for \c __builtin_expect for expressions that are likely \c true. #define tdc_likely(x) __builtin_expect(x, 1) /// \brief Shortcut for \c __builtin_expect for expressions that are likely \c false. #define tdc_unlikely(x) __builtin_expect(x, 0) } // namespace tdc
26.416667
85
0.747634
herlez
c0e664b82f99587986a9e57bec939117aa6be51e
12,806
cc
C++
src/tests/numerics/test_fvm_nabla_validation.cc
wdeconinck/atlas
8949d2b362b9b5431023a967bcf4ca84f6b8ce05
[ "Apache-2.0" ]
3
2020-04-28T20:07:25.000Z
2020-05-01T19:07:00.000Z
src/tests/numerics/test_fvm_nabla_validation.cc
pmarguinaud/atlas
7e0a1251685e07a5dcccc84f4d9251d5a066e2ee
[ "Apache-2.0" ]
null
null
null
src/tests/numerics/test_fvm_nabla_validation.cc
pmarguinaud/atlas
7e0a1251685e07a5dcccc84f4d9251d5a066e2ee
[ "Apache-2.0" ]
null
null
null
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
37.887574
118
0.559972
wdeconinck
c0e6c3ab3b5ff7369e7cd7df4378d65641c6d183
1,522
hpp
C++
include/xtd/wrapped_type.hpp
djmott/xtl
cadb963a3d1ad292033f08f4754c545066be75f7
[ "BSL-1.0" ]
6
2016-06-30T11:23:33.000Z
2019-10-22T13:09:49.000Z
include/xtd/wrapped_type.hpp
djmott/xtl
cadb963a3d1ad292033f08f4754c545066be75f7
[ "BSL-1.0" ]
null
null
null
include/xtd/wrapped_type.hpp
djmott/xtl
cadb963a3d1ad292033f08f4754c545066be75f7
[ "BSL-1.0" ]
4
2016-07-24T10:38:43.000Z
2021-04-02T11:18:09.000Z
/** @file * wraps a type in a class for compiler type deductive distinction * @copyright David Mott (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details. */ #pragma once namespace xtd { #define WRAPPED(_type) xtd::wrapped<_type, __C...
29.843137
156
0.630092
djmott
c0e6e0334fa6aac68d0279e612e0b81372372162
55,314
cpp
C++
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
//===- lib/ReaderWriter/YAML/ReaderWriterYAML.cpp -------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
39.397436
85
0.634469
mkinsner
c0ebf25c626bacc9378ff2cebfc441db711850ee
633
cpp
C++
arch/m68k/m68k_isa.cpp
ismaell/libcpu
3a82a1ab0b99e439e6fbcafca71e9d3d7fe06b12
[ "BSD-2-Clause" ]
277
2015-01-04T23:33:37.000Z
2022-03-24T20:38:51.000Z
arch/m68k/m68k_isa.cpp
farmdve/libcpu
d624f5863f49b059726bce83e4da944ed4b4764c
[ "BSD-2-Clause" ]
7
2015-02-18T12:41:18.000Z
2021-08-21T14:07:53.000Z
arch/m68k/m68k_isa.cpp
farmdve/libcpu
d624f5863f49b059726bce83e4da944ed4b4764c
[ "BSD-2-Clause" ]
44
2015-02-03T09:08:14.000Z
2022-03-14T16:35:31.000Z
#include "m68k_isa.h" const char sizechar[] = { '?', 'b', 'l', 'w' }; const char *condstr[] = { /*[0]*/ "ra", /*[1]*/ "sr", // 68030? /*[2]*/ "hi", /*[3]*/ "ls", /*[4]*/ "cc", /*[5]*/ "cs", /*[6]*/ "ne", /*[7]*/ "eq", /*[8]*/ "vc", /*[9]*/ "vs", /*[10]*/ "pl", /*[11]*/ "mi", /*[12]*/ "ge", /*[13]*/ "lt"...
14.72093
47
0.28752
ismaell
c0ecdbbab19f7b8861f0406f0fed157d4ae24848
2,557
cpp
C++
ural/1901.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
5
2015-07-14T10:29:25.000Z
2016-10-11T12:45:18.000Z
ural/1901.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
null
null
null
ural/1901.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
3
2016-08-23T01:05:26.000Z
2017-05-28T02:04:20.000Z
#include<cstdio> #include<iostream> #include<cstdlib> #include<algorithm> #include<vector> #include<map> #include<set> #include<queue> #include<stack> #include<cstring> #include<string> #include<ctime> #include<cmath> using namespace std; typedef long long ll; multiset<int> S; int n,m; int a[120000]; int b[120000]; bo...
23.036036
65
0.332421
jffifa
c0ee95d13b958a8311145cd416d1753cf104af42
12,504
cpp
C++
object_detection/haar_detection.cpp
dustsigns/lecture-demos
50d5abb252e7e467e9648b61310ce93b85c6c5f0
[ "BSD-3-Clause" ]
14
2018-03-26T13:43:58.000Z
2022-03-03T13:04:36.000Z
object_detection/haar_detection.cpp
dustsigns/lecture-demos
50d5abb252e7e467e9648b61310ce93b85c6c5f0
[ "BSD-3-Clause" ]
null
null
null
object_detection/haar_detection.cpp
dustsigns/lecture-demos
50d5abb252e7e467e9648b61310ce93b85c6c5f0
[ "BSD-3-Clause" ]
1
2019-08-03T23:12:08.000Z
2019-08-03T23:12:08.000Z
//Illustration of Haar features for object detection // Andreas Unterweger, 2017-2022 //This code is licensed under the 3-Clause BSD License. See LICENSE file for details. #include <iostream> #include <limits> #include <atomic> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> ...
48.465116
228
0.646673
dustsigns
c0ef885aa2104d510a2717b2c41affc74db88100
734
cpp
C++
Example/Source/Main.cpp
eugen-bondarev/AssetSupplier
90e3d3e5fd7890c945dfc1975e7767d87221e53f
[ "MIT" ]
null
null
null
Example/Source/Main.cpp
eugen-bondarev/AssetSupplier
90e3d3e5fd7890c945dfc1975e7767d87221e53f
[ "MIT" ]
null
null
null
Example/Source/Main.cpp
eugen-bondarev/AssetSupplier
90e3d3e5fd7890c945dfc1975e7767d87221e53f
[ "MIT" ]
null
null
null
#include <SRM/SRM.h> #ifndef EXAMPLE_ROOT_DIR # define EXAMPLE_ROOT_DIR #endif int main(const int argc, const char* argv[]) { const srm::String root{ EXAMPLE_ROOT_DIR "/Assets" }; srm::ResourceManager resourceManager{ root, "table.asu", "data.asu", srm::ResourceManager::Mode::Create }; srm::Resourc...
17.902439
64
0.651226
eugen-bondarev
c0f21a781ccc0dd88313ea39ebb33c5485bd0b6b
427
cpp
C++
legend/legend/App.cpp
Sathorael/legendary-computing-machine
34273b6e50edb9211f11488d247df74aef56448a
[ "MIT" ]
null
null
null
legend/legend/App.cpp
Sathorael/legendary-computing-machine
34273b6e50edb9211f11488d247df74aef56448a
[ "MIT" ]
null
null
null
legend/legend/App.cpp
Sathorael/legendary-computing-machine
34273b6e50edb9211f11488d247df74aef56448a
[ "MIT" ]
1
2019-05-28T18:32:30.000Z
2019-05-28T18:32:30.000Z
#include "App.h" #include "SDL\SDL.h" #include "Window.h" App::App() { } App::~App() { } void App::run() { bool running = true; SDL_Event e; Window* window = new Window(); window->init(); while (running) { // Handle events in queue while (SDL_PollEvent(&e) != 0) { // Quit if the user requests it...
10.414634
36
0.559719
Sathorael
c0f21db838e35070a41786bf0221e8599672e95f
3,836
cc
C++
src/server/server_unix_socket.cc
kofuk/pixel-terrain
f39e2a0120aab5a11311f57cfd1ab46efa65fddd
[ "MIT" ]
2
2020-10-16T08:46:45.000Z
2020-11-04T02:19:19.000Z
src/server/server_unix_socket.cc
kofuk/minecraft-image-generator
ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7
[ "MIT" ]
null
null
null
src/server/server_unix_socket.cc
kofuk/minecraft-image-generator
ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7
[ "MIT" ]
null
null
null
// SPDX-License-Identifier: MIT #include <csignal> #include <cstring> #include <iostream> #include <mutex> #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/un.h> #include <sys/wait.h> #include <unistd.h> #include "server/reader.hh" #include "server/reader_unix.hh" #include "server/r...
26.638889
79
0.486184
kofuk
c0f36aa26b85ca89df0346767a10e37e7b318251
10,974
cpp
C++
Source/SOrb/UI/Menu/Settings/KeySelector/SoUIInputKeySelectorOverlay.cpp
LaudateCorpus1/WarriOrb
7c20320484957e1a7fe0c09ab520967849ba65f1
[ "MIT" ]
200
2021-03-17T11:15:05.000Z
2022-03-31T23:45:09.000Z
Source/SOrb/UI/Menu/Settings/KeySelector/SoUIInputKeySelectorOverlay.cpp
LaudateCorpus1/WarriOrb
7c20320484957e1a7fe0c09ab520967849ba65f1
[ "MIT" ]
null
null
null
Source/SOrb/UI/Menu/Settings/KeySelector/SoUIInputKeySelectorOverlay.cpp
LaudateCorpus1/WarriOrb
7c20320484957e1a7fe0c09ab520967849ba65f1
[ "MIT" ]
38
2021-03-17T13:29:18.000Z
2022-03-04T19:32:52.000Z
// Copyright (c) Csaba Molnar & Daniel Butum. All Rights Reserved. #include "SoUIInputKeySelectorOverlay.h" #include "Components/TextBlock.h" #include "Framework/Application/SlateApplication.h" #include "SoUIInputKeySelector.h" #include "UI/General/Buttons/SoUIButtonImageArray.h" #include "Components/Image.h" #includ...
32.856287
136
0.637507
LaudateCorpus1
c0f39990b5ed10069645da82b03d19168aff19e0
5,597
cc
C++
src/tests/test_beadstructure_algorithms.cc
BuildJet/csg
c02f06ff316eef38564c8e0160bcaf4a6c7f160d
[ "Apache-2.0" ]
null
null
null
src/tests/test_beadstructure_algorithms.cc
BuildJet/csg
c02f06ff316eef38564c8e0160bcaf4a6c7f160d
[ "Apache-2.0" ]
null
null
null
src/tests/test_beadstructure_algorithms.cc
BuildJet/csg
c02f06ff316eef38564c8e0160bcaf4a6c7f160d
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2009-2021 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
25.211712
75
0.729141
BuildJet
c0f4d5e77c83ae6a7e9d85781c216756d877646c
4,789
cpp
C++
src/rtplugins/SuperSampleAdaptiveRenderer.cpp
potato3d/rtrt2
5c135c1aea0ded2898e16220cec5ed2860dcc9b3
[ "MIT" ]
1
2021-11-06T06:13:05.000Z
2021-11-06T06:13:05.000Z
src/rtplugins/SuperSampleAdaptiveRenderer.cpp
potato3d/rtrt2
5c135c1aea0ded2898e16220cec5ed2860dcc9b3
[ "MIT" ]
null
null
null
src/rtplugins/SuperSampleAdaptiveRenderer.cpp
potato3d/rtrt2
5c135c1aea0ded2898e16220cec5ed2860dcc9b3
[ "MIT" ]
null
null
null
#include <rtp/SuperSampleAdaptiveRenderer.h> #include <rt/Context.h> #include <rti/ICamera.h> #include <vr/random.h> #include <omp.h> using namespace rtp; SuperSampleAdaptiveRenderer::SuperSampleAdaptiveRenderer() { vr::Random::autoSeed(); _epsilon = 0.01f; _maxRecursionDepth = 3; } void SuperSampleAdaptiveRender...
34.207143
120
0.647108
potato3d
c0f5da114371492206f40ca206a102997ae76437
32,859
cc
C++
src/ufo/filters/TrackCheckShip.cc
NOAA-EMC/ufo
3bf1407731b79eab16ceff64129552577d9cfcd0
[ "Apache-2.0" ]
null
null
null
src/ufo/filters/TrackCheckShip.cc
NOAA-EMC/ufo
3bf1407731b79eab16ceff64129552577d9cfcd0
[ "Apache-2.0" ]
10
2020-12-10T22:57:51.000Z
2020-12-17T15:57:04.000Z
src/ufo/filters/TrackCheckShip.cc
NOAA-EMC/ufo
3bf1407731b79eab16ceff64129552577d9cfcd0
[ "Apache-2.0" ]
3
2020-12-10T18:38:22.000Z
2020-12-11T01:36:37.000Z
/* * (C) Copyright 2021 Met Office UK * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #include "ufo/filters/TrackCheckShip.h" #include <Eigen/Core> // for easy array addition/subtraction #include <algorith...
49.043284
100
0.686205
NOAA-EMC
c0f841ff3bfcf22e1244e3fc2bfd9b3193a62b29
367
cpp
C++
src/jitcat/TypeInfoDeleter.cpp
Zueuk/JitCat
04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc
[ "MIT" ]
14
2019-03-16T07:00:44.000Z
2021-10-20T23:36:51.000Z
src/jitcat/TypeInfoDeleter.cpp
Zueuk/JitCat
04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc
[ "MIT" ]
13
2019-11-22T12:43:55.000Z
2020-05-25T13:09:08.000Z
src/jitcat/TypeInfoDeleter.cpp
Zueuk/JitCat
04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc
[ "MIT" ]
1
2019-11-23T17:59:58.000Z
2019-11-23T17:59:58.000Z
/* This file is part of the JitCat library. Copyright (C) Machiel van Hooren 2020 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ #include "jitcat/TypeInfoDeleter.h" #include "jitcat/TypeInfo.h" void jitcat::Reflection::TypeInfoDeleter::operator()(TypeInfo* typ...
22.9375
94
0.746594
Zueuk
c0f94c1d95812e041af5802cf0bc130c2bb8c249
1,635
cpp
C++
Chapter_03/sample6.cpp
expoli/Learn-OpenCV-4-By-Building-Projects-Second-Edition
f0288b6a303923da100393b60b79f8eaf3a03165
[ "MIT" ]
1
2020-07-30T10:30:29.000Z
2020-07-30T10:30:29.000Z
Chapter_03/sample6.cpp
expoli/Learn-OpenCV-4-By-Building-Projects-Second-Edition
f0288b6a303923da100393b60b79f8eaf3a03165
[ "MIT" ]
null
null
null
Chapter_03/sample6.cpp
expoli/Learn-OpenCV-4-By-Building-Projects-Second-Edition
f0288b6a303923da100393b60b79f8eaf3a03165
[ "MIT" ]
null
null
null
#include <opencv2/viz.hpp> #include <opencv2/calib3d.hpp> #include <iostream> using namespace cv; using namespace std; /* * @function main */ int main() { /// Create a window viz::Viz3d myWindow("Coordinate Frame"); /// Add coordinate axes myWindow.showWidget("Coordinate Widget", viz::WCoordinateSy...
29.196429
102
0.620795
expoli
c0fad15e9df31d2ee09c0e977e287c7c3f61ae14
9,041
cpp
C++
assets/API/api.cpp
KingsleyXie/SupermarketManagement
9fea4a13792d0b44ed871da9f2af5240c6931fec
[ "MIT" ]
null
null
null
assets/API/api.cpp
KingsleyXie/SupermarketManagement
9fea4a13792d0b44ed871da9f2af5240c6931fec
[ "MIT" ]
null
null
null
assets/API/api.cpp
KingsleyXie/SupermarketManagement
9fea4a13792d0b44ed871da9f2af5240c6931fec
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include "json.hpp" using namespace std; using json = nlohmann::json; fstream data; // File with all the data of this system json request, response, record; // JSON for request, response and existed data record double rate = 1.5; // Rate from payment to points int destination, op...
21.074592
93
0.603473
KingsleyXie
c0fb9efba1193e769ef84210ae216e8c50113513
844
hpp
C++
src/main/include/StarDust/file/ConfigParser.hpp
4H-Botsmiths/InfiniteRecharge2020
811d71a49a50f38f44dcc7139786caaeaa99f739
[ "BSD-3-Clause" ]
null
null
null
src/main/include/StarDust/file/ConfigParser.hpp
4H-Botsmiths/InfiniteRecharge2020
811d71a49a50f38f44dcc7139786caaeaa99f739
[ "BSD-3-Clause" ]
1
2021-12-27T04:40:42.000Z
2021-12-27T04:40:42.000Z
src/main/include/StarDust/file/ConfigParser.hpp
4H-Botsmiths/InfiniteRecharge2020
811d71a49a50f38f44dcc7139786caaeaa99f739
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <iostream> #include <vector> #include <memory> #include <string> #include "StarDust\core\StarDustComponent.hpp" #include "StarDust\file\ParserParamBase.hpp" #include "StarDust\file\ParserParam.hpp" #define CONFIG_FILE_PATH "/home/lvuser/config.dat" class ConfigParser : public Star...
27.225806
82
0.722749
4H-Botsmiths
8d0634b3b1f3d755352f283a3da9cd691f7b4425
2,011
hpp
C++
include/psinc/handlers/helpers/Filter.hpp
emergent-design/libpsinc
8a30ebc2838d205b214e5f2e523b6bf558b0a41e
[ "MIT" ]
2
2017-02-28T11:27:38.000Z
2019-01-23T06:10:49.000Z
include/psinc/handlers/helpers/Filter.hpp
emergent-design/libpsinc
8a30ebc2838d205b214e5f2e523b6bf558b0a41e
[ "MIT" ]
6
2015-06-26T13:01:49.000Z
2020-07-31T15:08:55.000Z
include/psinc/handlers/helpers/Filter.hpp
emergent-design/libpsinc
8a30ebc2838d205b214e5f2e523b6bf558b0a41e
[ "MIT" ]
1
2017-02-28T10:55:30.000Z
2017-02-28T10:55:30.000Z
#pragma once #include <emergent/Maths.hpp> #include <emergent/image/Image.hpp> namespace psinc { class Filter { public: enum Mode { Disabled, RowOffset, // Adjust brightness of specific rows by a fixed offset RowGain // Adjust brightness of specific rows by a gain multiplier }; struct ...
28.728571
145
0.637991
emergent-design
8d0b5e39b44128a906a78b45bce4c9f8933b89f4
830
cpp
C++
platform/OSP/JS/Web/src/JSServletExecutorCache.cpp
gboyraz/macchina.io
3e26fea95e87512459693831242b297f0780cc21
[ "Apache-2.0" ]
2
2020-11-23T23:37:00.000Z
2020-12-22T04:02:41.000Z
platform/OSP/JS/Web/src/JSServletExecutorCache.cpp
bas524/cmake.macchina.io
22a21d78f8075fd145b788b41a23603591e91c9f
[ "Apache-2.0" ]
null
null
null
platform/OSP/JS/Web/src/JSServletExecutorCache.cpp
bas524/cmake.macchina.io
22a21d78f8075fd145b788b41a23603591e91c9f
[ "Apache-2.0" ]
1
2020-11-23T23:37:09.000Z
2020-11-23T23:37:09.000Z
// // JSServletExecutorCache.cpp // // Copyright (c) 2016, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: Apache-2.0 // #include "JSServletExecutorCache.h" #include "Poco/SingletonHolder.h" namespace Poco { namespace OSP { namespace JS { namespace Web { // // JS...
14.821429
83
0.745783
gboyraz
8d0b96f3958c3e97495049259b1da3186b50642a
7,013
cpp
C++
abcg/abcg_image.cpp
guiarqueiro/entrega3
48d7d9828b44f232b51044269a4164056fbe95b8
[ "MIT" ]
11
2021-03-23T00:06:20.000Z
2021-10-02T22:13:37.000Z
abcg/abcg_image.cpp
guiarqueiro/entrega3
48d7d9828b44f232b51044269a4164056fbe95b8
[ "MIT" ]
2
2021-03-11T23:31:39.000Z
2021-10-04T22:21:57.000Z
abcg/abcg_image.cpp
guiarqueiro/entrega3
48d7d9828b44f232b51044269a4164056fbe95b8
[ "MIT" ]
101
2021-02-08T18:48:02.000Z
2022-03-16T03:51:09.000Z
/** * @file abcg_image.cpp * @brief Definition of texture loading helper functions. * * This project is released under the MIT License. */ #include "abcg_image.hpp" #include <fmt/core.h> #include <cppitertools/itertools.hpp> #include <fstream> #include <gsl/gsl> #include <span> #include <vector> #include "SDL_...
34.377451
80
0.67988
guiarqueiro
8d0c7e11eac68d010789d67227ae3efd8dc487f1
6,758
cpp
C++
module-bluetooth/Bluetooth/WorkerController.cpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
1
2021-11-11T22:56:43.000Z
2021-11-11T22:56:43.000Z
module-bluetooth/Bluetooth/WorkerController.cpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
null
null
null
module-bluetooth/Bluetooth/WorkerController.cpp
bitigchi/MuditaOS
425d23e454e09fd6ae274b00f8d19c57a577aa94
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "WorkerController.hpp" #include "Device.hpp" #include "interface/profiles/ProfileManager.hpp" #include <log/log.hpp> #define BOOST_SML_CFG_DISABLE_MIN_SIZE // GCC10 fix #inc...
36.333333
134
0.518941
bitigchi
8d0d8605cc351a91a7a01e7f4d83b53c781d18b5
2,494
cc
C++
src/base/backtrace.cc
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
3
2019-01-11T06:16:40.000Z
2021-02-24T23:48:21.000Z
src/base/backtrace.cc
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/base/backtrace.cc
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
18
2017-01-12T09:28:44.000Z
2019-04-18T20:47:42.000Z
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/backtrace.h" #include <boost/algorithm/string.hpp> #include <execinfo.h> #include <stdio.h> #include "base/logging.h" ssize_t BackTrace::ToString(void * const* callstack, int frames, char *buf, size_t...
28.666667
75
0.514435
biswajit-mandal
8d0dc6792d46403023b45863ba006a57cf0c1f15
4,264
cpp
C++
src/mongo/s/commands/cluster_find_test.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/s/commands/cluster_find_test.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/s/commands/cluster_find_test.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
98
0.69348
benety
8d10dad0aa7ca5f8ea463a773574078df5b9e9ad
5,235
hpp
C++
include/SSVOpenHexagon/Global/Config.hpp
AlphaPromethium/SSVOpenHexagon
f9e15e9397d6188e3dced97da97d5c6e2de4186a
[ "AFL-3.0" ]
null
null
null
include/SSVOpenHexagon/Global/Config.hpp
AlphaPromethium/SSVOpenHexagon
f9e15e9397d6188e3dced97da97d5c6e2de4186a
[ "AFL-3.0" ]
null
null
null
include/SSVOpenHexagon/Global/Config.hpp
AlphaPromethium/SSVOpenHexagon
f9e15e9397d6188e3dced97da97d5c6e2de4186a
[ "AFL-3.0" ]
null
null
null
// Copyright (c) 2013-2020 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 #pragma once #include <vector> #include <string> namespace ssvs { class GameWindow; } // namespace ssvs namespace ssvs::Input { class Trigger; } // namespace ssvs::I...
34.668874
74
0.762751
AlphaPromethium
8d12a21817ad54e2579dfea9625d052a3cbea77d
6,479
hpp
C++
arbor/include/arbor/event_generator.hpp
Tadinu/arbor
981904a542b96f73a6554b3f63049ea4c2de8cfc
[ "BSD-3-Clause" ]
null
null
null
arbor/include/arbor/event_generator.hpp
Tadinu/arbor
981904a542b96f73a6554b3f63049ea4c2de8cfc
[ "BSD-3-Clause" ]
null
null
null
arbor/include/arbor/event_generator.hpp
Tadinu/arbor
981904a542b96f73a6554b3f63049ea4c2de8cfc
[ "BSD-3-Clause" ]
1
2021-07-06T11:07:13.000Z
2021-07-06T11:07:13.000Z
#pragma once #include <algorithm> #include <cstdint> #include <memory> #include <random> #include <type_traits> #include <arbor/assert.hpp> #include <arbor/common_types.hpp> #include <arbor/generic_event.hpp> #include <arbor/spike_event.hpp> #include <arbor/schedule.hpp> namespace arb { // An `event_generator` gene...
28.416667
114
0.674332
Tadinu
8d148b40414b0e2292a3fc9ef685f0d63a0d7cfc
9,383
hpp
C++
far/uuids.far.dialogs.hpp
skipik/FarManager
0080534fd8b8246b31f9587d8e15fe313849e801
[ "BSD-3-Clause" ]
null
null
null
far/uuids.far.dialogs.hpp
skipik/FarManager
0080534fd8b8246b31f9587d8e15fe313849e801
[ "BSD-3-Clause" ]
null
null
null
far/uuids.far.dialogs.hpp
skipik/FarManager
0080534fd8b8246b31f9587d8e15fe313849e801
[ "BSD-3-Clause" ]
null
null
null
#ifndef UUIDS_FAR_DIALOGS_HPP_760BACF0_E0D8_4C67_A732_5C075A1CC176 #define UUIDS_FAR_DIALOGS_HPP_760BACF0_E0D8_4C67_A732_5C075A1CC176 #pragma once /* uuids.far.dialogs.hpp UUIDs of common dialogs */ /* Copyright © 2010 Far Group All rights reserved. Redistribution and use in source and binary forms, with or without...
62.553333
81
0.688905
skipik
8d14c8506388bf847a1dd3203ede096ac4aa2f20
6,671
cc
C++
server/core/maxpasswd.cc
Daniel-Xu/MaxScale
35d12c0c9b75c4571dbbeb983c740de098661de6
[ "BSD-3-Clause" ]
null
null
null
server/core/maxpasswd.cc
Daniel-Xu/MaxScale
35d12c0c9b75c4571dbbeb983c740de098661de6
[ "BSD-3-Clause" ]
null
null
null
server/core/maxpasswd.cc
Daniel-Xu/MaxScale
35d12c0c9b75c4571dbbeb983c740de098661de6
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-04-28 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
24.258182
88
0.519412
Daniel-Xu
8d150c8130b9551bbde55e3bf8bcddd78a2f58f4
14,612
cc
C++
content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-04-04T13:34:56.000Z
2020-11-04T07:17:52.000Z
// Copyright 2014 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 "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" #include "base/bind.h" #include "base/memory/aligned_memory.h" #include "base/tr...
35.990148
80
0.688201
hefen1
8d16689051dda8f18e8c0dedba0de3f1a7807b0a
2,071
cpp
C++
src/gui-qt4/libs/seiscomp3/gui/core/gradient.cpp
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
94
2015-02-04T13:57:34.000Z
2021-11-01T15:10:06.000Z
src/gui-qt4/libs/seiscomp3/gui/core/gradient.cpp
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
233
2015-01-28T15:16:46.000Z
2021-08-23T11:31:37.000Z
src/gui-qt4/libs/seiscomp3/gui/core/gradient.cpp
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
95
2015-02-13T15:53:30.000Z
2021-11-02T14:54:54.000Z
/*************************************************************************** * Copyright (C) by GFZ Potsdam * * * * You can redistribute and/or modify this program under the * * terms o...
27.613333
85
0.48817
yannikbehr
8d16fababc5043fac3767090f8c0966ed4bd9480
6,194
cpp
C++
cpp/template/template.cpp
HieuuuLeee/WorldFinal
ea1b1e697e6e7987018a5a79402d1a2659270591
[ "MIT" ]
null
null
null
cpp/template/template.cpp
HieuuuLeee/WorldFinal
ea1b1e697e6e7987018a5a79402d1a2659270591
[ "MIT" ]
null
null
null
cpp/template/template.cpp
HieuuuLeee/WorldFinal
ea1b1e697e6e7987018a5a79402d1a2659270591
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; #define fi first #define se second #define pb push_back #define pf push_front #define pp push #define et empty #define mp make_pair #define For(i,a,b) for (int i=a;i<=b;i++) #define Fod(i,b,a) for (int i=b;i>=a;i--) #define Forl(i,a,b) for (ll i=a;i<=b;i++) #define Fodl(i,...
26.583691
160
0.45092
HieuuuLeee
8d17a9708f7d382445bdde2d7b06c3fbb2d322ae
347
cpp
C++
test/compute/Main.cpp
craft095/sere
b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9
[ "MIT" ]
null
null
null
test/compute/Main.cpp
craft095/sere
b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9
[ "MIT" ]
null
null
null
test/compute/Main.cpp
craft095/sere
b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9
[ "MIT" ]
null
null
null
#ifdef GTEST #include "gtest/gtest.h" #endif #define CATCH_CONFIG_RUNNER #include "catch2/catch.hpp" int main(int argc, char **argv) { #ifdef GTEST ::testing::InitGoogleTest(&argc, argv); int result = RUN_ALL_TESTS(); if (result != 0) { return result; } #endif int result = Catch::Session().run( argc, a...
16.52381
50
0.668588
craft095
8d180d3c6da645841f0beecc34ec1e85de2879dc
18,738
hpp
C++
examples/experimental/nvshmem/matrix/grb_util.hpp
ge49nuk/BCLmatrix
f04368cc88ff9b2b652a403c69075a036b2b5586
[ "BSD-3-Clause" ]
null
null
null
examples/experimental/nvshmem/matrix/grb_util.hpp
ge49nuk/BCLmatrix
f04368cc88ff9b2b652a403c69075a036b2b5586
[ "BSD-3-Clause" ]
1
2021-05-21T20:27:02.000Z
2021-05-21T21:54:46.000Z
examples/experimental/nvshmem/matrix/grb_util.hpp
ge49nuk/BCLmatrix
f04368cc88ff9b2b652a403c69075a036b2b5586
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <matrix_sum.cuh> namespace BCL { template <typename T> struct max { T operator()(const T& a, const T& b) const { if (a < b) { return b; } else { return a; } } }; template <typename T> struct min { T operator()(const T& a, const T& b) const { if (a < b) { ...
33.223404
126
0.631871
ge49nuk
8d1a05be6f773b4a111e52f473a53eca9f83a45a
9,017
cpp
C++
Source/Network/src/Socket/UDP.cpp
appcelerator/titanium_mobile_windows
ec82c011f418cbcf27795eb009deaef5e3fe4b20
[ "Apache-2.0" ]
20
2015-04-02T06:55:30.000Z
2022-03-29T04:27:30.000Z
Source/Network/src/Socket/UDP.cpp
appcelerator/titanium_mobile_windows
ec82c011f418cbcf27795eb009deaef5e3fe4b20
[ "Apache-2.0" ]
692
2015-04-01T21:05:49.000Z
2020-03-10T10:11:57.000Z
Source/Network/src/Socket/UDP.cpp
appcelerator/titanium_mobile_windows
ec82c011f418cbcf27795eb009deaef5e3fe4b20
[ "Apache-2.0" ]
22
2015-04-01T20:57:51.000Z
2022-01-18T17:33:15.000Z
/** * Copyright (c) 2016 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License. * Please see the LICENSE included with this distribution for details. */ #include "TitaniumWindows/Network/Socket/UDP.hpp" #include "Titanium/Blob.hpp" #include "TitaniumWindows/Utility....
38.370213
157
0.639792
appcelerator
8d1a59c4632d463f2ba79946c7d246130b41d12c
57,743
cpp
C++
fsck/source/modes/ModeCheckFS.cpp
TomatoYoung/beegfs
edf287940175ecded493183209719d2d90d45374
[ "BSD-3-Clause" ]
null
null
null
fsck/source/modes/ModeCheckFS.cpp
TomatoYoung/beegfs
edf287940175ecded493183209719d2d90d45374
[ "BSD-3-Clause" ]
null
null
null
fsck/source/modes/ModeCheckFS.cpp
TomatoYoung/beegfs
edf287940175ecded493183209719d2d90d45374
[ "BSD-3-Clause" ]
null
null
null
#include "ModeCheckFS.h" #include <common/toolkit/DisposalCleaner.h> #include <common/toolkit/ListTk.h> #include <common/toolkit/UnitTk.h> #include <common/toolkit/UiTk.h> #include <common/toolkit/ZipIterator.h> #include <components/DataFetcher.h> #include <components/worker/RetrieveChunksWork.h> #include <net/msghelp...
33.319677
108
0.667423
TomatoYoung
8d1a7ec064dc8cea90086e0320845f0c256f8aa0
371
cpp
C++
LeetCode/Problems/Algorithms/#848_ShiftingLetters_sol2_suffix_sum_O(N)_time_O(1)_extra_space_193ms_68MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#848_ShiftingLetters_sol2_suffix_sum_O(N)_time_O(1)_extra_space_193ms_68MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#848_ShiftingLetters_sol2_suffix_sum_O(N)_time_O(1)_extra_space_193ms_68MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: string shiftingLetters(string s, vector<int>& shifts) { const int N = shifts.size(); int suffixShifts = 0; for(int i = N - 1; i >= 0; --i){ suffixShifts += shifts[i]; suffixShifts %= 26; s[i] = 'a' + (s[i] - 'a' + suffixShi...
28.538462
60
0.455526
Tudor67
8d1c6192344d63bc5d4271fa53cb76ac4c70a4e5
10,129
cxx
C++
src/Core/Common/DoDataParallelThreading/Code.cxx
ldqcarbon/ITKExamples
5e550d4085755f88ba13956767f4af0a2b4a0ae7
[ "Apache-2.0" ]
null
null
null
src/Core/Common/DoDataParallelThreading/Code.cxx
ldqcarbon/ITKExamples
5e550d4085755f88ba13956767f4af0a2b4a0ae7
[ "Apache-2.0" ]
null
null
null
src/Core/Common/DoDataParallelThreading/Code.cxx
ldqcarbon/ITKExamples
5e550d4085755f88ba13956767f4af0a2b4a0ae7
[ "Apache-2.0" ]
null
null
null
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
36.832727
79
0.68605
ldqcarbon
8d1e0ee582941eb03c4ad82eaea4a2f8c1bebe61
1,391
cpp
C++
BeanDogEngine/cVortex.cpp
RoyFilipchuk56/BeanDogEngine
189ff606b1568b8c2228602b545767bb827d3065
[ "MIT" ]
null
null
null
BeanDogEngine/cVortex.cpp
RoyFilipchuk56/BeanDogEngine
189ff606b1568b8c2228602b545767bb827d3065
[ "MIT" ]
null
null
null
BeanDogEngine/cVortex.cpp
RoyFilipchuk56/BeanDogEngine
189ff606b1568b8c2228602b545767bb827d3065
[ "MIT" ]
null
null
null
#include "cFirework.h" namespace nPhysics { cVortex::cVortex(float mass, const glm::vec3& position) : cFirework(mass, position) { } cVortex::~cVortex() { } void cVortex::GenerateChildren(std::vector<cFirework*>& childrenOut, glm::vec3 location) { //Genereate 50 new stage 2 particles for (int i = 0; i < 5...
20.455882
89
0.640546
RoyFilipchuk56
8d22fb1052419774d27b3cbb4147b5040b5933f1
35,544
cpp
C++
src/superscalar.cpp
Teredic/DefyX
5d71a3e8076e850acfeb18ec3612a2ec2a5b1308
[ "BSD-3-Clause" ]
2
2020-01-04T02:35:40.000Z
2021-11-29T19:11:27.000Z
src/superscalar.cpp
Teredic/DefyX
5d71a3e8076e850acfeb18ec3612a2ec2a5b1308
[ "BSD-3-Clause" ]
null
null
null
src/superscalar.cpp
Teredic/DefyX
5d71a3e8076e850acfeb18ec3612a2ec2a5b1308
[ "BSD-3-Clause" ]
2
2019-07-30T18:40:07.000Z
2019-12-22T11:01:13.000Z
/* Copyright (c) 2018-2019, tevador <tevador@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditio...
39.581292
381
0.71064
Teredic
8d23bd7fec398c47e83030a985c02a77263b4609
390
cpp
C++
all/native/datasources/components/VectorData.cpp
JianYT/mobile-sdk
1835603e6cb7994222fea681928dc90055816628
[ "BSD-3-Clause" ]
155
2016-10-20T08:39:13.000Z
2022-02-27T14:08:32.000Z
all/native/datasources/components/VectorData.cpp
JianYT/mobile-sdk
1835603e6cb7994222fea681928dc90055816628
[ "BSD-3-Clause" ]
448
2016-10-20T12:33:06.000Z
2022-03-22T14:42:58.000Z
all/native/datasources/components/VectorData.cpp
JianYT/mobile-sdk
1835603e6cb7994222fea681928dc90055816628
[ "BSD-3-Clause" ]
64
2016-12-05T16:04:31.000Z
2022-02-07T09:36:22.000Z
#include "VectorData.h" #include "vectorelements/VectorElement.h" namespace carto { VectorData::VectorData(std::vector<std::shared_ptr<VectorElement> > elements) : _elements(std::move(elements)) { } VectorData::~VectorData() { } const std::vector<std::shared_ptr<VectorElement> >&...
20.526316
89
0.653846
JianYT
8d273a6664605dcbda1e3dfcf03ee13ee67c36da
1,009
cpp
C++
grade.cpp
BranchofLight/Chunk
5f9ef6acab5b9553af471c95fe315896f17803aa
[ "MIT" ]
null
null
null
grade.cpp
BranchofLight/Chunk
5f9ef6acab5b9553af471c95fe315896f17803aa
[ "MIT" ]
null
null
null
grade.cpp
BranchofLight/Chunk
5f9ef6acab5b9553af471c95fe315896f17803aa
[ "MIT" ]
null
null
null
#include <iostream> #include "chunk.h" int main() { Chunk grade; std::cout << "What was your grade?"; do { std::cout << "\n> "; getchunk(std::cin, grade); if (!grade.isFloat()) std::cout << "Please enter a valid grade between 0-100."; else { if (grade.toFloat() < 0 || grade.to...
25.871795
77
0.556987
BranchofLight
8d306544728dd80129b583599067b3b815bd7faf
11,675
cpp
C++
src/gateway/ocg_bss/virtual_ocg/ocg_encoder.cpp
liutongwei/ft
c75c1ea6b4e53128248113f9810b997d2f7ff236
[ "MIT" ]
null
null
null
src/gateway/ocg_bss/virtual_ocg/ocg_encoder.cpp
liutongwei/ft
c75c1ea6b4e53128248113f9810b997d2f7ff236
[ "MIT" ]
null
null
null
src/gateway/ocg_bss/virtual_ocg/ocg_encoder.cpp
liutongwei/ft
c75c1ea6b4e53128248113f9810b997d2f7ff236
[ "MIT" ]
null
null
null
// Copyright [2020] <Copyright Kevin, kevin.lau.gd@gmail.com> #include "virtual_ocg/ocg_encoder.h" using namespace ft::bss; void OcgEncoder::encode_msg(const ExecutionReport& report, MsgBuffer* buffer) { buffer->size = 0; cur_msg_buf_ = buffer; auto header = encode_header(EXECUTION_REPORT); header->body_fiel...
32.34072
79
0.719572
liutongwei
8d31fe997730fd6090d6480468af8a0edfcd27e4
4,788
cpp
C++
GerchbergSaxton/test.cpp
daelsepara/hipSLM
bb85cc24413e2bb7517b85e9cca45dd42fd2baf7
[ "MIT" ]
1
2021-08-30T15:26:22.000Z
2021-08-30T15:26:22.000Z
GerchbergSaxton/test.cpp
daelsepara/hipSLM
bb85cc24413e2bb7517b85e9cca45dd42fd2baf7
[ "MIT" ]
1
2021-09-30T19:23:14.000Z
2021-09-30T19:23:22.000Z
GerchbergSaxton/test.cpp
daelsepara/hipSLM
bb85cc24413e2bb7517b85e9cca45dd42fd2baf7
[ "MIT" ]
null
null
null
#define _USE_MATH_DEFINES #include "../Includes/lodepng.h" #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <dlfcn.h> #include <stdexcept> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif // !M_PI #undef min #undef max // Allocate double array on host dou...
19.703704
146
0.606099
daelsepara
8d33cce301e5c6bec2ee950e812d8b47ca6892c8
12,594
cpp
C++
test/window/comoment_suite.cpp
breese/trial.online
d28f8025082682ce10d9eb97c63ed0d4e62c7511
[ "BSL-1.0" ]
6
2017-11-19T15:12:33.000Z
2021-12-18T08:21:45.000Z
test/window/comoment_suite.cpp
breese/trial.online
d28f8025082682ce10d9eb97c63ed0d4e62c7511
[ "BSL-1.0" ]
1
2019-02-20T11:28:49.000Z
2019-02-20T11:28:49.000Z
test/window/comoment_suite.cpp
breese/trial.online
d28f8025082682ce10d9eb97c63ed0d4e62c7511
[ "BSL-1.0" ]
2
2019-02-19T16:00:03.000Z
2020-10-29T08:26:44.000Z
/////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2018 Bjorn Reese <breese@users.sourceforge.net> // // 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) /...
33.31746
93
0.607035
breese
8d34c7bae19e7362e8219977ccad3b3ffe386c1c
468
cpp
C++
map/extra features.cpp
FirdausJawed/DSA
caf72a4606746009bc4616bfe11cdcb6ca103dcd
[ "MIT" ]
2
2021-08-31T11:20:29.000Z
2021-09-05T10:51:36.000Z
map/extra features.cpp
FirdausJawed/DSA
caf72a4606746009bc4616bfe11cdcb6ca103dcd
[ "MIT" ]
null
null
null
map/extra features.cpp
FirdausJawed/DSA
caf72a4606746009bc4616bfe11cdcb6ca103dcd
[ "MIT" ]
1
2021-09-01T14:30:49.000Z
2021-09-01T14:30:49.000Z
#include<bits/stdc++.h> using namespace std; void print (map<int,string>&m){ cout<<m.size()<<endl; for(auto pr:m){ cout<<pr.first<<" "<<pr.second<<endl; } } int main(){ map<int,string>m; m[1]="fj"; m[5]="fird"; m[3]="muskan"; m[2]="tgb"; m[7]="firdaus"; m.insert({4,"the great fj"}); int x;...
14.625
45
0.510684
FirdausJawed
8d35a94753a14a68fcbd9857667d9f59ba0332fc
199
hpp
C++
src/modules/osg/generated_code/StateSet.pypp.hpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osg/generated_code/StateSet.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osg/generated_code/StateSet.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #ifndef StateSet_hpp__pyplusplus_wrapper #define StateSet_hpp__pyplusplus_wrapper void register_StateSet_class(); #endif//StateSet_hpp__pyplusplus_wrapper
22.111111
40
0.844221
JaneliaSciComp
8d397e79a3dc52bf5a40f85b8e6431fca4fd4789
840
cc
C++
ports/www/chromium-legacy/newport/files/patch-content_shell_app_shell__main__delegate.cc
danielfojt/DeltaPorts
5710b4af4cacca5eb1ac577df304c788c07c4217
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ports/www/chromium-legacy/newport/files/patch-content_shell_app_shell__main__delegate.cc
danielfojt/DeltaPorts
5710b4af4cacca5eb1ac577df304c788c07c4217
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ports/www/chromium-legacy/newport/files/patch-content_shell_app_shell__main__delegate.cc
danielfojt/DeltaPorts
5710b4af4cacca5eb1ac577df304c788c07c4217
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
--- content/shell/app/shell_main_delegate.cc.orig 2019-10-21 19:06:33 UTC +++ content/shell/app/shell_main_delegate.cc @@ -170,7 +170,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit v8_crashpad_support::SetUp(); #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) breakpad::SetFi...
40
98
0.746429
danielfojt
8d3983fdcc301d428f164a2773dacad7b52f6844
742
hpp
C++
src/hash_map.hpp
ecnerwala/cp-book
89ba206e1d65ab48819d956d76073057fb43434e
[ "CC0-1.0" ]
351
2019-11-26T14:56:22.000Z
2022-03-30T10:40:13.000Z
src/hash_map.hpp
Mastermind-git/cp-book
53d97ec192a60e2956c2b4fbe17840ab74c066d6
[ "CC0-1.0" ]
8
2019-12-24T21:37:19.000Z
2021-05-17T07:33:55.000Z
src/hash_map.hpp
Mastermind-git/cp-book
53d97ec192a60e2956c2b4fbe17840ab74c066d6
[ "CC0-1.0" ]
57
2020-04-28T09:20:17.000Z
2022-02-13T09:35:31.000Z
#pragma once #include<bits/stdc++.h> #include<bits/extc++.h> struct splitmix64_hash { static uint64_t splitmix64(uint64_t x) { // http://xorshift.di.unimi.it/splitmix64.c x += 0x9e3779b97f4a7c15; x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9; x = (x ^ (x >> 27)) * 0x94d049bb133111eb; return x ^ (x >> 31); } ...
28.538462
99
0.700809
ecnerwala
8d3d220db6678fa822eb0358f6a79288b9a21f3f
624
cpp
C++
Nmeetings.cpp
KaranKaira/Questions-Algorithms
c6416592d335be94656f3d58a01c972059d41528
[ "MIT" ]
null
null
null
Nmeetings.cpp
KaranKaira/Questions-Algorithms
c6416592d335be94656f3d58a01c972059d41528
[ "MIT" ]
null
null
null
Nmeetings.cpp
KaranKaira/Questions-Algorithms
c6416592d335be94656f3d58a01c972059d41528
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct job{ int st, end,ind; }; bool comp(job a,job b) { return a.end < b.end; } int main() { int t;cin>>t;while(t--) { int n;cin>>n; job a[n]; for(int i=0;i<n;i++) cin>>a[i].st; for(int i=0;i<n;i++) {cin>>a[i].end;a[i].ind...
18.909091
60
0.375
KaranKaira
8d3d9425d2a317b010def452cc92830e97ca601e
18,622
cpp
C++
Plugins/Main/mcplugin_main.cpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
null
null
null
Plugins/Main/mcplugin_main.cpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
null
null
null
Plugins/Main/mcplugin_main.cpp
alexanderoster/AutodeskMachineControlFramework
17aec986c2cb3c9ea46bbe583bdc0e766e6f980b
[ "BSD-3-Clause" ]
null
null
null
/*++ 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 follow...
31.509306
136
0.619106
alexanderoster
8d408677d1cfba6b8bae0aa9395cf5ca37691f5c
4,016
cpp
C++
14.image_text_glut/text.cpp
JackeyLea/OpenGL_Freshman
d17468d7f2faf752c9a0ccb8f12a2ca4cb8e3a91
[ "MIT" ]
1
2022-02-08T01:24:50.000Z
2022-02-08T01:24:50.000Z
14.image_text_glut/text.cpp
JackeyLea/OpenGL_Beginner
d17468d7f2faf752c9a0ccb8f12a2ca4cb8e3a91
[ "MIT" ]
null
null
null
14.image_text_glut/text.cpp
JackeyLea/OpenGL_Beginner
d17468d7f2faf752c9a0ccb8f12a2ca4cb8e3a91
[ "MIT" ]
null
null
null
/// /// \note 加载字体并显示文字 /// #include <GL/gl.h> #include <GL/glut.h> #include <GL/glx.h> #include <unistd.h>//延时 #include <cmath> #include <iostream> #include <string> #include <cstring> #define ESCAPE 27//esc键ASCII码值 int window; //glut窗口标识号 GLuint base;//字体集的基本显示列表 GLfloat cnt1;//用于移动文字和颜色的计数器 GL...
23.213873
104
0.630976
JackeyLea
8d427a9c0dc7f0a1a80d092a1643a661f7d54740
1,260
cpp
C++
Pops.cpp
privacore/open-source-search-engine
dac28de673068039381ca3f66521ea4c1eaf6a1e
[ "Apache-2.0" ]
134
2016-05-30T13:29:37.000Z
2021-06-18T02:13:51.000Z
Pops.cpp
mehmet-biter/open-source-search-engine
dac28de673068039381ca3f66521ea4c1eaf6a1e
[ "Apache-2.0" ]
65
2016-10-31T16:02:28.000Z
2020-04-30T14:18:57.000Z
Pops.cpp
mehmet-biter/open-source-search-engine
dac28de673068039381ca3f66521ea4c1eaf6a1e
[ "Apache-2.0" ]
22
2016-05-30T13:29:39.000Z
2020-06-30T08:43:38.000Z
#include "Pops.h" #include "tokenizer.h" #include "Speller.h" #include "Mem.h" #include "Sanity.h" Pops::Pops () { m_pops = NULL; m_popsSize = 0; memset(m_localBuf, 0, sizeof(m_localBuf)); } Pops::~Pops() { if ( m_pops && m_pops != (int32_t *)m_localBuf ) { mfree ( m_pops , m_popsSize , "Pops" ); } } bool Po...
22.105263
70
0.604762
privacore
8d42dc7dba9c7cc3254acac2957982f28f1dec98
3,075
cpp
C++
src/game/localization.cpp
ftk/XXLDDRace
68ae75092f4483f003e165d93e6334524015dfec
[ "Zlib" ]
2
2015-04-23T16:38:41.000Z
2016-05-24T00:59:25.000Z
src/game/localization.cpp
ftk/XXLDDRace
68ae75092f4483f003e165d93e6334524015dfec
[ "Zlib" ]
null
null
null
src/game/localization.cpp
ftk/XXLDDRace
68ae75092f4483f003e165d93e6334524015dfec
[ "Zlib" ]
1
2019-10-21T23:12:12.000Z
2019-10-21T23:12:12.000Z
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include "localization.h" #include <base/tl/algorithm.h> #include <engine/shared/linereader.h> #include <engine/console.h> #in...
23.837209
95
0.708618
ftk
1d26a58741cb817f07b0c97e73cfc5dc972dbd2f
1,428
cpp
C++
BAC_2nd/ch6/UVa12657.cpp
Anyrainel/aoapc-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
3
2017-08-15T06:00:01.000Z
2018-12-10T09:05:53.000Z
BAC_2nd/ch6/UVa12657.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
null
null
null
BAC_2nd/ch6/UVa12657.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
2
2017-09-16T18:46:27.000Z
2018-05-22T05:42:03.000Z
// UVa12657 Boxes in a Line // Rujia Liu #include<cstdio> #include<algorithm> using namespace std; const int maxn = 100000 + 5; int n, left[maxn], right[maxn]; inline void link(int L, int R) { right[L] = R; left[R] = L; } int main() { int m, kase = 0; while(scanf("%d%d", &n, &m) == 2) { for(int i = 1; i <=...
24.20339
70
0.418768
Anyrainel
1d2833ff5699a215520ab7aa31c330213b2b6ecc
675
cpp
C++
Contest/Al-Khawarizmi National Programming Contest 2016/J.cpp
HeRaNO/OI-ICPC-Codes
4a4639cd3e347b472520065ca6ab8caadde6906d
[ "MIT" ]
18
2019-01-01T13:16:59.000Z
2022-02-28T04:51:50.000Z
Contest/Al-Khawarizmi National Programming Contest 2016/J.cpp
HeRaNO/OI-ICPC-Codes
4a4639cd3e347b472520065ca6ab8caadde6906d
[ "MIT" ]
null
null
null
Contest/Al-Khawarizmi National Programming Contest 2016/J.cpp
HeRaNO/OI-ICPC-Codes
4a4639cd3e347b472520065ca6ab8caadde6906d
[ "MIT" ]
5
2019-09-13T08:48:17.000Z
2022-02-19T06:59:03.000Z
#include <bits/stdc++.h> using namespace std; int a[11][11],n,ans,kas; inline void read(int &x) { x=0;char ch=getchar();bool f=false; while (ch<'0'||ch>'9'){if (ch=='-') f=true;ch=getchar();} while (ch>='0'&&ch<='9') x=(x<<3)+(x<<1)+ch-'0',ch=getchar(); if (f) x=-x;return ; } int main() { while (true) { read...
19.285714
62
0.494815
HeRaNO
1d288eaede067c838ff8270f538f6684cb5d2af1
1,485
cpp
C++
src/hqn_lua.cpp
Bindernews/HeadlessQuickNes
394cc533c74b079bf8b143b25d4e4f6c75232469
[ "MIT" ]
5
2016-04-19T20:45:28.000Z
2018-11-25T03:07:30.000Z
src/hqn_lua.cpp
Bindernews/HappyQuickNes
394cc533c74b079bf8b143b25d4e4f6c75232469
[ "MIT" ]
null
null
null
src/hqn_lua.cpp
Bindernews/HappyQuickNes
394cc533c74b079bf8b143b25d4e4f6c75232469
[ "MIT" ]
null
null
null
#include "hqn_lua.h" #include <SDL.h> #include <SDL_ttf.h> #define SDL_INIT_FAILED_MSG "Failed to initialize SDL: %s" namespace hqn_lua { // Yep. Global state. Shared by the whole Lua interface. static HQNState *globalState; /* Delcarations for all the init functions. */ int emu_init_(lua_State *L); int gui...
20.342466
70
0.674747
Bindernews
1d28926caaf9e51f33d11cdb62bc7da6eb24f800
919
cpp
C++
Day 03/day3.cpp
holaguz/AdventOfCode2021
349b7a33ab1128264dceb7aaf604030b0df842df
[ "Unlicense" ]
null
null
null
Day 03/day3.cpp
holaguz/AdventOfCode2021
349b7a33ab1128264dceb7aaf604030b0df842df
[ "Unlicense" ]
null
null
null
Day 03/day3.cpp
holaguz/AdventOfCode2021
349b7a33ab1128264dceb7aaf604030b0df842df
[ "Unlicense" ]
null
null
null
/* https://adventofcode.com/2021/day/3 */ #include <iostream> #include <bitset> #include <vector> int main(){ int n; int gamma = 0, epsilon = 0; std::cin >> n; std::vector<int> count(64); std::vector<long long> input(n); long long max = 0; for(auto& v: input){ std::cin >> v; ...
21.880952
57
0.425462
holaguz
1d29267957a6f597adfed4a97ac3ebf22aa69d0a
327
hpp
C++
demos/sequential_line_search_2d_gui/widgetpreview.hpp
yuki-koyama/sequential-line-search
7f68ce6f3ccb63eee4e921b867bd1014e3f947ff
[ "MIT" ]
26
2018-03-12T13:18:30.000Z
2022-03-26T20:28:04.000Z
demos/sequential_line_search_2d_gui/widgetpreview.hpp
yuki-koyama/sequential-line-search
7f68ce6f3ccb63eee4e921b867bd1014e3f947ff
[ "MIT" ]
37
2018-04-05T23:42:24.000Z
2022-02-13T03:52:42.000Z
demos/sequential_line_search_2d_gui/widgetpreview.hpp
yuki-koyama/sequential-line-search
7f68ce6f3ccb63eee4e921b867bd1014e3f947ff
[ "MIT" ]
5
2018-06-12T17:50:47.000Z
2021-05-17T11:13:03.000Z
#ifndef WIDGETPREVIEW_H #define WIDGETPREVIEW_H #include <QWidget> class WidgetPreview : public QWidget { Q_OBJECT public: explicit WidgetPreview(QWidget* parent = 0); protected: void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE; private: double m_f_min; double m_f_max; }; #endif // WIDGETPRE...
15.571429
56
0.743119
yuki-koyama
1d2b2781fd183efc7741f9e3b155a1647c395c0c
6,361
cpp
C++
src/discovery/window.cpp
amin-amani/QtNetDiscovery
cdc09ddd4813536c45944b388772f7afc8472d80
[ "MIT" ]
null
null
null
src/discovery/window.cpp
amin-amani/QtNetDiscovery
cdc09ddd4813536c45944b388772f7afc8472d80
[ "MIT" ]
null
null
null
src/discovery/window.cpp
amin-amani/QtNetDiscovery
cdc09ddd4813536c45944b388772f7afc8472d80
[ "MIT" ]
null
null
null
/************************************************************************************************** --------------------------------------------------------------------------------------------------- Copyright (C) 2015 Jonathan Bagg This file is part of QtZeroConf. QtZeroConf is free software: you can red...
33.130208
130
0.617513
amin-amani
1d30a0ad65cde45076d2fd379cc9cab1a93619ae
145
cpp
C++
Source/FSD/Private/SchematicSave.cpp
Dr-Turtle/DRG_ModPresetManager
abd7ff98a820969504491a1fe68cf2f9302410dc
[ "MIT" ]
8
2021-07-10T20:06:05.000Z
2022-03-04T19:03:50.000Z
Source/FSD/Private/SchematicSave.cpp
Dr-Turtle/DRG_ModPresetManager
abd7ff98a820969504491a1fe68cf2f9302410dc
[ "MIT" ]
9
2022-01-13T20:49:44.000Z
2022-03-27T22:56:48.000Z
Source/FSD/Private/SchematicSave.cpp
Dr-Turtle/DRG_ModPresetManager
abd7ff98a820969504491a1fe68cf2f9302410dc
[ "MIT" ]
2
2021-07-10T20:05:42.000Z
2022-03-14T17:05:35.000Z
#include "SchematicSave.h" FSchematicSave::FSchematicSave() { this->SkinFixupCounter = 0; this->bFirstSchematicMessageShown = false; }
18.125
46
0.731034
Dr-Turtle
1d31480315eafacec7b9f2a2c70652e55b7f128c
544
cpp
C++
OGMM/gui/MenuItem.cpp
Moneyl/OGMM
52a4bcc051fab160c55f0cc7228bd99de3ff5c47
[ "MIT" ]
3
2020-08-26T17:53:47.000Z
2020-09-13T07:48:40.000Z
OGMM/gui/MenuItem.cpp
Moneyl/OGMM
52a4bcc051fab160c55f0cc7228bd99de3ff5c47
[ "MIT" ]
2
2020-09-01T06:08:28.000Z
2020-11-14T02:14:41.000Z
OGMM/gui/MenuItem.cpp
Moneyl/OGMM
52a4bcc051fab160c55f0cc7228bd99de3ff5c47
[ "MIT" ]
null
null
null
#include "MenuItem.h" #include "IGuiPanel.h" #include <string_view> #include <imgui.h> MenuItem* MenuItem::GetItem(std::string_view text) { for (auto& item : Items) { if (item.Text == text) return &item; } return nullptr; } void MenuItem::Draw() { if (panel) { ImGui...
17
56
0.512868
Moneyl
1d31b033e30bcb077e3621fc38a330a885a47ff4
2,971
cpp
C++
test/molch-init-test.cpp
1984not-GmbH/molch
c7f1f646c800ef3388f36e8805a3b94d33d85b12
[ "MIT" ]
15
2016-04-12T17:12:19.000Z
2019-08-14T17:46:17.000Z
test/molch-init-test.cpp
1984not-GmbH/molch
c7f1f646c800ef3388f36e8805a3b94d33d85b12
[ "MIT" ]
63
2016-03-22T14:35:31.000Z
2018-07-04T22:17:07.000Z
test/molch-init-test.cpp
1984not-GmbH/molch
c7f1f646c800ef3388f36e8805a3b94d33d85b12
[ "MIT" ]
1
2017-08-17T09:27:30.000Z
2017-08-17T09:27:30.000Z
/* * Molch, an implementation of the axolotl ratchet based on libsodium * * ISC License * * Copyright (C) 2015-2016 1984not Security GmbH * Author: Max Bruckner (FSMaxB) * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that t...
27.509259
75
0.682262
1984not-GmbH
1d321dc32fb7fb470efb650e339472732cce7e5e
6,421
hpp
C++
include/ext.hpp
PENGUINLIONG/OptixLab
541b8767d6a4626ee08f8367264ea69a494f644e
[ "Apache-2.0", "MIT" ]
2
2020-09-04T08:35:43.000Z
2020-12-14T16:27:34.000Z
include/ext.hpp
PENGUINLIONG/OptixLab
541b8767d6a4626ee08f8367264ea69a494f644e
[ "Apache-2.0", "MIT" ]
null
null
null
include/ext.hpp
PENGUINLIONG/OptixLab
541b8767d6a4626ee08f8367264ea69a494f644e
[ "Apache-2.0", "MIT" ]
1
2020-03-10T14:38:56.000Z
2020-03-10T14:38:56.000Z
#pragma once // Extensions to core functionalities. // @PENGUINLIONG #include <functional> #ifdef L_USE_ASSIMP #include <assimp/cimport.h> #include <assimp/scene.h> #include <assimp/postprocess.h> #endif // L_USE_ASSIMP #include "core.hpp" namespace liong { namespace ext { // Read PTX representation from a single fi...
29.186364
80
0.73867
PENGUINLIONG
1d3395e3d9d641245b8029878dc07a1013fc5aae
3,215
hpp
C++
hpx/performance_counters/stubs/performance_counter.hpp
bremerm31/hpx
a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa
[ "BSL-1.0" ]
1
2019-07-04T10:18:01.000Z
2019-07-04T10:18:01.000Z
hpx/performance_counters/stubs/performance_counter.hpp
bremerm31/hpx
a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa
[ "BSL-1.0" ]
1
2017-07-24T07:16:26.000Z
2017-07-24T08:03:33.000Z
hpx/performance_counters/stubs/performance_counter.hpp
biddisco/hpx
2d244e1e27c6e014189a6cd59c474643b31fad4b
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2007-2018 Hartmut Kaiser // // 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) #if !defined(HPX_PERFORMANCE_COUNTERS_STUBS_COUNTER_MAR_03_2009_0745M) #define HPX_PERFORMANCE_COUNTERS_STUBS_COUNTER_...
45.28169
80
0.609642
bremerm31
1d36e90b89b62099851d1cb7c07dbf2a0fbb5f7b
5,555
cpp
C++
src/network/ChannelSocketClient.cpp
vitorjna/LoggerClient
b447f36224e98919045138bb08a849df211e5491
[ "MIT" ]
null
null
null
src/network/ChannelSocketClient.cpp
vitorjna/LoggerClient
b447f36224e98919045138bb08a849df211e5491
[ "MIT" ]
null
null
null
src/network/ChannelSocketClient.cpp
vitorjna/LoggerClient
b447f36224e98919045138bb08a849df211e5491
[ "MIT" ]
null
null
null
#include "ChannelSocketClient.h" #include "network/TcpSocketThreadable.h" #include "util/MemoryUtils.h" #include "util/NetworkUtils.h" #include "util/TimeUtils.h" ChannelSocketClient::ChannelSocketClient(QObject *parent) : QObject(parent) , bKeepRetrying(false) , nPort(0) , mySocket(new TcpSocketThread...
29.08377
92
0.672367
vitorjna
1d384e0091b3dbbc6d71ea5629b8e16111aff5e9
1,359
hpp
C++
include/Taus88.hpp
michaeldzjap/MDAudio
70f9b75eeb39062fe9483fa4240274dcbfce68e3
[ "MIT" ]
null
null
null
include/Taus88.hpp
michaeldzjap/MDAudio
70f9b75eeb39062fe9483fa4240274dcbfce68e3
[ "MIT" ]
null
null
null
include/Taus88.hpp
michaeldzjap/MDAudio
70f9b75eeb39062fe9483fa4240274dcbfce68e3
[ "MIT" ]
null
null
null
#ifndef MD_AUDIO_TAUS_88_HPP #define MD_AUDIO_TAUS_88_HPP #include <cstdint> namespace md_audio { // Original source: https://github.com/supercollider/supercollider/blob/develop/include/plugin_interface/SC_RGen.h class Taus88 { public: explicit Taus88(); explicit Taus88(std::int32_t); ...
27.18
118
0.534952
michaeldzjap
1d397eb4ef4a40bdd8b4a0e6be9b4e5e17edf6d5
6,725
hxx
C++
Modules/Segmentation/LevelSetsv4/include/itkShiSparseLevelSetImage.hxx
ltmakela/ITK
21f48c6d98e21ecece09be16a747221d7094d8a9
[ "Apache-2.0" ]
4
2015-05-22T03:47:43.000Z
2016-06-16T20:57:21.000Z
Modules/Segmentation/LevelSetsv4/include/itkShiSparseLevelSetImage.hxx
GEHC-Surgery/ITK
f5df62749e56c9036e5888cfed904032ba5fdfb7
[ "Apache-2.0" ]
null
null
null
Modules/Segmentation/LevelSetsv4/include/itkShiSparseLevelSetImage.hxx
GEHC-Surgery/ITK
f5df62749e56c9036e5888cfed904032ba5fdfb7
[ "Apache-2.0" ]
9
2016-06-23T16:03:12.000Z
2022-03-31T09:25:08.000Z
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
33.625
86
0.577249
ltmakela