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
fd446aa32dcdc33d043b92b20b54002c03667412
8,538
hpp
C++
rice/Module_impl.hpp
keyme/rice
4b5e4ad3e2294a1b58886fb946eb26e3512599d9
[ "BSD-2-Clause" ]
11
2015-02-09T12:13:45.000Z
2019-11-25T01:14:31.000Z
rice/Module_impl.hpp
jsomers/rice
6bbcc2dd85d010a1108a4d7ac7ece39b1c1210f5
[ "BSD-2-Clause" ]
null
null
null
rice/Module_impl.hpp
jsomers/rice
6bbcc2dd85d010a1108a4d7ac7ece39b1c1210f5
[ "BSD-2-Clause" ]
2
2019-11-25T01:14:35.000Z
2021-09-29T04:57:36.000Z
#ifndef Rice__Module_impl__hpp_ #define Rice__Module_impl__hpp_ #include "detail/Exception_Handler_defn.hpp" #include "detail/ruby.hpp" #include "Object_defn.hpp" #include "Address_Registration_Guard_defn.hpp" #include "Arg.hpp" namespace Rice { class Module; class Class; template<typename T> class Data_Type; /*! H...
30.276596
74
0.680019
keyme
fd4a3bd9ab75254289366033aa26498457f6d242
12,986
cpp
C++
src/network/Transistor.cpp
aboelmakarem/casena
387c83a1bc6a5150684f5d54f8eba4712b81f827
[ "MIT" ]
null
null
null
src/network/Transistor.cpp
aboelmakarem/casena
387c83a1bc6a5150684f5d54f8eba4712b81f827
[ "MIT" ]
null
null
null
src/network/Transistor.cpp
aboelmakarem/casena
387c83a1bc6a5150684f5d54f8eba4712b81f827
[ "MIT" ]
null
null
null
// Transistor.cpp // Ahmed M. Hussein (amhussein4@gmail.com) // 03/28/2021 #include "Transistor.h" #include "Network.h" #include "string.h" #include "stdlib.h" #include "math.h" namespace CASENA { Transistor::Transistor(){Initialize();} Transistor::Transistor(const Transistor& transistor) : Component(transistor){*t...
28.047516
117
0.640459
aboelmakarem
fd4c91f98ea28c4add132325644b39f218c16a34
19,368
hpp
C++
include/System/Data/Constraint.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/System/Data/Constraint.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/System/Data/Constraint.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
1
2022-03-30T21:07:35.000Z
2022-03-30T21:07:35.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-utils-met...
54.252101
208
0.733891
v0idp
fd521e016f2c274edc4805578b097ad0bde9013e
8,177
cpp
C++
src/reconstruct/characteristic_cl.cpp
roarkhabegger/athena-public-version
3446d2f4601c1dbbfd7a98d4f53335d97e21e195
[ "BSD-3-Clause" ]
1
2021-03-05T20:59:04.000Z
2021-03-05T20:59:04.000Z
src/reconstruct/characteristic_cl.cpp
roarkhabegger/athena-public-version
3446d2f4601c1dbbfd7a98d4f53335d97e21e195
[ "BSD-3-Clause" ]
null
null
null
src/reconstruct/characteristic_cl.cpp
roarkhabegger/athena-public-version
3446d2f4601c1dbbfd7a98d4f53335d97e21e195
[ "BSD-3-Clause" ]
2
2019-02-26T18:49:13.000Z
2019-07-22T17:04:41.000Z
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //===============================...
42.367876
90
0.598997
roarkhabegger
5b79c9f46b4b9d5bc210a2b039c8b5e652666541
2,362
cpp
C++
OpenGL-Sandbox/src/engineUtils/PerspectiveCameraController.cpp
MrLucyfer/OpenGL
b8a374afec8702742e96300bc45a2a88b806b65e
[ "Apache-2.0" ]
null
null
null
OpenGL-Sandbox/src/engineUtils/PerspectiveCameraController.cpp
MrLucyfer/OpenGL
b8a374afec8702742e96300bc45a2a88b806b65e
[ "Apache-2.0" ]
null
null
null
OpenGL-Sandbox/src/engineUtils/PerspectiveCameraController.cpp
MrLucyfer/OpenGL
b8a374afec8702742e96300bc45a2a88b806b65e
[ "Apache-2.0" ]
null
null
null
#include "PerspectiveCameraController.h" #include <GLCore/Core/Input.h> #include <GLCore/Core/KeyCodes.h> #include <GLCore/Core/MouseButtonCodes.h> using namespace GLCore; PerspectiveCameraController::PerspectiveCameraController() : m_CameraPos{ 0.0f, 0.0f, 3.0f }, m_CameraTarget{ 0.0f, 0.0f, 0.0f }, m_Up{ 0.0, 1.0...
28.457831
104
0.708721
MrLucyfer
5b7c9c3683d5c7deb59749bd55f127a72c548d29
4,602
cpp
C++
exiv2-0.24/samples/addmoddel.cpp
sdrpa/Exiv2Framework
76b2dd9a906ab08d39bf97c8f3d97037eb39c69d
[ "MIT" ]
6
2016-10-04T10:12:11.000Z
2021-09-18T22:37:29.000Z
exiv2-0.24/samples/addmoddel.cpp
sdrpa/Exiv2Framework
76b2dd9a906ab08d39bf97c8f3d97037eb39c69d
[ "MIT" ]
null
null
null
exiv2-0.24/samples/addmoddel.cpp
sdrpa/Exiv2Framework
76b2dd9a906ab08d39bf97c8f3d97037eb39c69d
[ "MIT" ]
2
2018-05-20T08:32:40.000Z
2019-07-06T18:27:19.000Z
// ***************************************************************** -*- C++ -*- // addmoddel.cpp, $Rev: 3090 $ // Sample program showing how to add, modify and delete Exif metadata. #include <exiv2/exiv2.hpp> #include <iostream> #include <iomanip> #include <cassert> int main(int argc, char* const argv[]) try { ...
41.836364
83
0.571491
sdrpa
5b883c00c547b6ee8e88b87edf2b3fcae104fee8
1,998
cpp
C++
src/main.cpp
idincern/prm_sim
9c576d200eb4576a289dae42ca9c08729aceecd7
[ "MIT" ]
3
2020-02-24T22:32:44.000Z
2021-05-06T23:13:11.000Z
src/main.cpp
idincern/prm_sim
9c576d200eb4576a289dae42ca9c08729aceecd7
[ "MIT" ]
null
null
null
src/main.cpp
idincern/prm_sim
9c576d200eb4576a289dae42ca9c08729aceecd7
[ "MIT" ]
2
2020-06-12T12:24:22.000Z
2021-10-19T11:25:46.000Z
/*! @file * * @brief Entry point for the prm_sim_node. * * A probabilistic roadmap planner is a motion-planning algorithm in robotics, * which solves the problem of determining a path between a starting and a goal * configuration of the robot while avoiding collisions. * * The basic idea behind PRM is to t...
32.225806
88
0.718719
idincern
5b8960b98b9589f4ed9c3043ec80ab0cc21163e1
1,960
cpp
C++
libs/bloom_filter/example/custom_hash.cpp
tetzank/boost-bloom-filters
7c6717f403c041a092187568908f3661782ddb24
[ "BSL-1.0" ]
15
2016-10-18T16:05:37.000Z
2022-01-23T03:01:42.000Z
libs/bloom_filter/example/custom_hash.cpp
tetzank/boost-bloom-filters
7c6717f403c041a092187568908f3661782ddb24
[ "BSL-1.0" ]
null
null
null
libs/bloom_filter/example/custom_hash.cpp
tetzank/boost-bloom-filters
7c6717f403c041a092187568908f3661782ddb24
[ "BSL-1.0" ]
12
2016-04-15T18:17:24.000Z
2020-04-16T06:29:58.000Z
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Alejandro Cabrera 2011. // 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) // // See http://www.boost.org/libs/bl...
24.197531
78
0.631633
tetzank
5b9074ca6632c2367c19e708e54caf4622c821f7
446
cpp
C++
LeetCode/Plus One/main.cpp
Code-With-Aagam/competitive-programming
610520cc396fb13a03c606b5fb6739cfd68cc444
[ "MIT" ]
2
2022-02-08T12:37:41.000Z
2022-03-09T03:48:56.000Z
LeetCode/Plus One/main.cpp
ShubhamJagtap2000/competitive-programming-1
3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84
[ "MIT" ]
null
null
null
LeetCode/Plus One/main.cpp
ShubhamJagtap2000/competitive-programming-1
3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84
[ "MIT" ]
2
2021-01-23T14:35:48.000Z
2021-03-15T05:04:24.000Z
auto speedup = []() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); return nullptr; }(); class Solution { public: vector<int> plusOne(vector<int>& digits) { vector<int> ans; int carry = 1, j = digits.size() - 1; while (j >= 0) { int curr = digits[j--] + carry; ans.push_back(curr ...
20.272727
43
0.598655
Code-With-Aagam
5b90df0e6e3645c85aeea4c01fe6d7ae17a20817
67
hpp
C++
LibData.hpp
mattfbacon/dynload
a2ff4ad3cf4ddc4f9f007d36c00acf35baba9ff7
[ "WTFPL" ]
null
null
null
LibData.hpp
mattfbacon/dynload
a2ff4ad3cf4ddc4f9f007d36c00acf35baba9ff7
[ "WTFPL" ]
null
null
null
LibData.hpp
mattfbacon/dynload
a2ff4ad3cf4ddc4f9f007d36c00acf35baba9ff7
[ "WTFPL" ]
null
null
null
#pragma once struct LibData { std::string name; void(*fn)(); };
9.571429
18
0.626866
mattfbacon
5b945f3f0e81df96263fd7caaef184bf8b177439
3,279
hh
C++
thirdparty/graph-tools-master/include/graphalign/LinearAlignment.hh
AlesMaver/ExpansionHunter
274903d26a33cfbc546aac98c85bbfe51701fd3b
[ "BSL-1.0", "Apache-2.0" ]
122
2017-01-06T16:19:31.000Z
2022-03-08T00:05:50.000Z
thirdparty/graph-tools-master/include/graphalign/LinearAlignment.hh
AlesMaver/ExpansionHunter
274903d26a33cfbc546aac98c85bbfe51701fd3b
[ "BSL-1.0", "Apache-2.0" ]
90
2017-01-04T00:23:34.000Z
2022-02-27T12:55:52.000Z
thirdparty/graph-tools-master/include/graphalign/LinearAlignment.hh
AlesMaver/ExpansionHunter
274903d26a33cfbc546aac98c85bbfe51701fd3b
[ "BSL-1.0", "Apache-2.0" ]
35
2017-03-02T13:39:58.000Z
2022-03-30T17:34:11.000Z
// // GraphTools library // Copyright 2017-2019 Illumina, Inc. // All rights reserved. // // Author: Egor Dolzhenko <edolzhenko@illumina.com> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License ...
32.465347
94
0.703568
AlesMaver
5b94d89453038ee864879e08ded28aa35acf34b2
1,224
hpp
C++
doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
364
2015-01-01T09:38:23.000Z
2022-03-22T05:32:00.000Z
doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
55
2015-01-06T16:42:55.000Z
2020-07-09T04:21:41.000Z
doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
57
2015-01-07T18:35:49.000Z
2022-03-22T05:32:04.000Z
// File // doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/ext/graphics_reset_status.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2019 Matus Chochlik. //...
34
79
0.784314
matus-chochlik
5b9924f384c8137459704a4c16571f9707ae4f27
3,800
cpp
C++
Paladin/FileUtils.cpp
pahefu/Paladin
4fcb66c6cda7bb50b7597532bd0d7469fc33655b
[ "MIT" ]
45
2018-10-05T21:50:17.000Z
2022-01-31T11:52:59.000Z
Paladin/FileUtils.cpp
pahefu/Paladin
4fcb66c6cda7bb50b7597532bd0d7469fc33655b
[ "MIT" ]
163
2018-10-01T23:52:12.000Z
2022-02-15T18:05:58.000Z
Paladin/FileUtils.cpp
pahefu/Paladin
4fcb66c6cda7bb50b7597532bd0d7469fc33655b
[ "MIT" ]
9
2018-10-01T23:48:02.000Z
2022-01-23T21:28:52.000Z
#include "FileUtils.h" #include <Alert.h> #include <Bitmap.h> #include <Catalog.h> #include <Directory.h> #include <Locale.h> #include <Mime.h> #include <Path.h> #include <Roster.h> #include "Icons.h" #include "Paladin.h" #include "Project.h" #include "DebugTools.h" #undef B_TRANSLATION_CONTEXT #define B_TRANSLATIO...
23.45679
84
0.68
pahefu
5b99f83f14dd3a4958fb74cd02e8b2da91cb47ab
4,777
cpp
C++
libs/mesh/src/meshCubatureSetupTri2D.cpp
MalachiTimothyPhillips/libparanumal
f3fd4505df56207b05aa86164124ab6bad83f92a
[ "MIT" ]
null
null
null
libs/mesh/src/meshCubatureSetupTri2D.cpp
MalachiTimothyPhillips/libparanumal
f3fd4505df56207b05aa86164124ab6bad83f92a
[ "MIT" ]
null
null
null
libs/mesh/src/meshCubatureSetupTri2D.cpp
MalachiTimothyPhillips/libparanumal
f3fd4505df56207b05aa86164124ab6bad83f92a
[ "MIT" ]
null
null
null
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus 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 limitatio...
32.719178
78
0.686414
MalachiTimothyPhillips
5b9bc17d148303d0411460e69ce360f47f474f7d
6,073
cpp
C++
DirectX11_Starter_2015/DirectX11_Starter/PostManager.cpp
QRayarch/ShootyBally
c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46
[ "MIT" ]
1
2016-03-14T01:58:26.000Z
2016-03-14T01:58:26.000Z
DirectX11_Starter_2015/DirectX11_Starter/PostManager.cpp
QRayarch/ShootyBally
c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46
[ "MIT" ]
null
null
null
DirectX11_Starter_2015/DirectX11_Starter/PostManager.cpp
QRayarch/ShootyBally
c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46
[ "MIT" ]
null
null
null
#include "PostManager.h" PostManager::PostManager(ID3D11Device * deviceIn, ID3D11DeviceContext * deviceContextIn) { device = deviceIn; deviceContext = deviceContextIn; blurAmount = 5; rtvOriginal = nullptr; srvGBlur1 = nullptr; srvGBlur2 = nullptr; rtvGBlur1 = nullptr; rtvGBlur2 = nullptr; } PostManager::~P...
31.14359
134
0.774411
QRayarch
5b9cae6d60f3e55810ffa35a8b38db841805909b
10,038
cc
C++
poppler-21.11.0/poppler/JArithmeticDecoder.cc
stackoverflowed/multimodal
95668d0b34d297e96b5ef76521e587578ef2581f
[ "MIT" ]
null
null
null
poppler-21.11.0/poppler/JArithmeticDecoder.cc
stackoverflowed/multimodal
95668d0b34d297e96b5ef76521e587578ef2581f
[ "MIT" ]
null
null
null
poppler-21.11.0/poppler/JArithmeticDecoder.cc
stackoverflowed/multimodal
95668d0b34d297e96b5ef76521e587578ef2581f
[ "MIT" ]
null
null
null
//======================================================================== // // JArithmeticDecoder.cc // // Copyright 2002-2004 Glyph & Cog, LLC // //======================================================================== //======================================================================== // // Modified under...
27.729282
231
0.443415
stackoverflowed
5b9f34abcdb5e0ecc4b2bbc0fcd071f2530781ae
1,427
cc
C++
expectations/makeexp.cc
piki/pip
ffd91f8b4ff21d7070a41a3d9f961d4e44625111
[ "BSD-3-Clause" ]
2
2017-10-18T22:33:52.000Z
2021-11-11T22:32:10.000Z
expectations/makeexp.cc
piki/pip
ffd91f8b4ff21d7070a41a3d9f961d4e44625111
[ "BSD-3-Clause" ]
null
null
null
expectations/makeexp.cc
piki/pip
ffd91f8b4ff21d7070a41a3d9f961d4e44625111
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2005-2006 Duke University. All rights reserved. * Please see COPYING for license terms. */ #include <assert.h> #include <getopt.h> #include <string> #include <stdarg.h> #include <stdio.h> #include "path.h" #include <map> #include <set> #include "aggregates.h" #include "exptree.h" #include "pathf...
22.296875
75
0.650315
piki
5ba17a20820780b4adb9a8a08fd68067576b6362
2,146
cpp
C++
gko-tracker-src/src/PeerInfo.cpp
yujinqiu/gingko
33f289b36d6d8176fa7be67275dda93d40efbfd7
[ "BSD-2-Clause" ]
11
2018-01-31T12:31:56.000Z
2022-01-06T04:45:03.000Z
gko-tracker-src/src/PeerInfo.cpp
jaewon713/gingko
33f289b36d6d8176fa7be67275dda93d40efbfd7
[ "BSD-2-Clause" ]
null
null
null
gko-tracker-src/src/PeerInfo.cpp
jaewon713/gingko
33f289b36d6d8176fa7be67275dda93d40efbfd7
[ "BSD-2-Clause" ]
9
2017-10-31T06:51:24.000Z
2020-02-10T09:21:00.000Z
#include "bbts/tracker/PeerInfo.h" #include "bbts/thrift_serializer.h" #include "tracker_types.h" using std::string; namespace bbts { namespace tracker { string PeerInfo::tracker_id_; PeerInfo::PeerInfo() : is_set_remote(false) {}; PeerInfo::PeerInfo(const PeerInfo &to_copy) { this->is_set_remote = to_copy.GetI...
27.87013
72
0.754893
yujinqiu
5ba461438693df359d936070475b867c750f34cf
764
cpp
C++
external/OpenGP/GL/Entity.cpp
sherrbss/ProceduralNoise
99162d9b00d52b50e33a64313911300406af0745
[ "MIT" ]
null
null
null
external/OpenGP/GL/Entity.cpp
sherrbss/ProceduralNoise
99162d9b00d52b50e33a64313911300406af0745
[ "MIT" ]
null
null
null
external/OpenGP/GL/Entity.cpp
sherrbss/ProceduralNoise
99162d9b00d52b50e33a64313911300406af0745
[ "MIT" ]
null
null
null
// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include "Entity.h" //============================================================================= namespace OpenG...
25.466667
79
0.36911
sherrbss
5babcb7f1b5b38fd1221783d7ab8792423fd96d4
2,638
cpp
C++
main/String_format.cpp
ololoshka2871/NixieClock-ESP32-idf
1505f801ca6f5ff36d2648805b20dab5d1326c12
[ "Apache-2.0" ]
null
null
null
main/String_format.cpp
ololoshka2871/NixieClock-ESP32-idf
1505f801ca6f5ff36d2648805b20dab5d1326c12
[ "Apache-2.0" ]
null
null
null
main/String_format.cpp
ololoshka2871/NixieClock-ESP32-idf
1505f801ca6f5ff36d2648805b20dab5d1326c12
[ "Apache-2.0" ]
null
null
null
#include <cstdarg> #include <string> #include <vector> #include <cinttypes> #include "String_format.h" #define INITIAL_BUF_SIZE 128 std::string vtformat_impl(const std::string &fmt, const std::vector<std::string> &strs) { static const char FORMAT_SYMBOL = '%'; std::string res; std::s...
22.547009
65
0.547763
ololoshka2871
5bb1489856b7e9e6fb42af4d732e91de66bda8ed
164
cpp
C++
CToC++/CToC++/Leetcode/LeetcodeSolution110.cpp
UCliwenbin/AlgorithmCPP
3cb4a6a9510682b5d4dc956826d263ab778a2a00
[ "MIT" ]
1
2021-02-25T08:00:43.000Z
2021-02-25T08:00:43.000Z
CToC++/CToC++/Leetcode/LeetcodeSolution110.cpp
UCliwenbin/AlgorithmCPP
3cb4a6a9510682b5d4dc956826d263ab778a2a00
[ "MIT" ]
null
null
null
CToC++/CToC++/Leetcode/LeetcodeSolution110.cpp
UCliwenbin/AlgorithmCPP
3cb4a6a9510682b5d4dc956826d263ab778a2a00
[ "MIT" ]
null
null
null
// // LeetcodeSolution110.cpp // CToC++ // // Created by mac on 2020/8/26. // Copyright © 2020 lwb. All rights reserved. // #include "LeetcodeSolution110.hpp"
16.4
46
0.664634
UCliwenbin
5bb18e1d1794b48e0788c2d3ab27b3bfbbf9be55
481
cpp
C++
InterviewBit/Dynamic Programming/MinSumPathInAMatrix.cpp
CRAZYGEEKS04/competitive-programming-1
f27b8a718761b7bfeb8ff9e294398ca1a294cb5d
[ "MIT" ]
2
2020-06-01T09:16:47.000Z
2021-09-04T12:39:41.000Z
InterviewBit/Dynamic Programming/MinSumPathInAMatrix.cpp
gauravsingh58/competitive-programming
fa5548f435cdf2aa059e1d6ab733885790c6a592
[ "MIT" ]
1
2020-10-10T16:14:54.000Z
2020-10-10T16:14:54.000Z
InterviewBit/Dynamic Programming/MinSumPathInAMatrix.cpp
gauravsingh58/competitive-programming
fa5548f435cdf2aa059e1d6ab733885790c6a592
[ "MIT" ]
null
null
null
int Solution::minPathSum(vector<vector<int>> &board) { int n = board.size(); int m = board[0].size(); vector<vector<int>> dp(n, vector<int>(m, 0)); dp[0][0] = board[0][0]; for (int i = 1; i < n; i++) dp[i][0] = board[i][0] + dp[i - 1][0]; for (int j = 1; j < m; j++) dp[0][j] = board[0][j] + dp[0][j - 1]; ...
20.913043
60
0.45738
CRAZYGEEKS04
5bb870e2e6f474a1563e0dae790ba713cddaaf0e
2,270
cpp
C++
source/tests/mars-test/mars_gps_sensor.cpp
eallak/mars_lib
9657fb669c48be39471e7504c3648319126c020b
[ "BSD-2-Clause" ]
null
null
null
source/tests/mars-test/mars_gps_sensor.cpp
eallak/mars_lib
9657fb669c48be39471e7504c3648319126c020b
[ "BSD-2-Clause" ]
null
null
null
source/tests/mars-test/mars_gps_sensor.cpp
eallak/mars_lib
9657fb669c48be39471e7504c3648319126c020b
[ "BSD-2-Clause" ]
null
null
null
#include <gmock/gmock.h> #include <mars/sensors/gps/gps_measurement_type.h> #include <mars/sensors/gps/gps_sensor_class.h> #include <mars/type_definitions/base_states.h> #include <mars/type_definitions/buffer_data_type.h> #include <mars/type_definitions/buffer_entry_type.h> #include <Eigen/Dense> class mars_gps_senso...
32.898551
109
0.738767
eallak
5bbc29bc231e03a5f5520de57966cf0d54bc02ea
3,114
cpp
C++
examples/Script.cpp
dbpotato/sacs
70d2c45a6529e58ba8c216460c0d1e9d55b16040
[ "MIT" ]
null
null
null
examples/Script.cpp
dbpotato/sacs
70d2c45a6529e58ba8c216460c0d1e9d55b16040
[ "MIT" ]
null
null
null
examples/Script.cpp
dbpotato/sacs
70d2c45a6529e58ba8c216460c0d1e9d55b16040
[ "MIT" ]
null
null
null
/* Copyright (c) 2020 Adam Kaniewski 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, publish, distribute, ...
42.081081
165
0.632306
dbpotato
5bc0a605ababf3b20136750c5822e93f518427b1
5,654
cpp
C++
Source/Common/SQLLite.cpp
g-maxime/MediaConch_SourceCode
54208791ca0b6eb3f7bffd17f67e236777f69d89
[ "BSD-2-Clause" ]
29
2016-01-28T08:58:54.000Z
2021-12-19T16:49:58.000Z
Source/Common/SQLLite.cpp
g-maxime/MediaConch_SourceCode
54208791ca0b6eb3f7bffd17f67e236777f69d89
[ "BSD-2-Clause" ]
218
2015-07-07T09:49:17.000Z
2022-03-21T06:18:37.000Z
Source/Common/SQLLite.cpp
g-maxime/MediaConch_SourceCode
54208791ca0b6eb3f7bffd17f67e236777f69d89
[ "BSD-2-Clause" ]
18
2015-06-19T17:58:34.000Z
2021-12-08T15:02:26.000Z
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- #ifdef HAVE_SQLITE //--...
27.715686
101
0.380969
g-maxime
5bc573c332ca4045f7adfd8ab675411288b4498c
1,446
cpp
C++
sample/core/platform_linux.cpp
asmwarrior/syncpp
df34b95b308d7f2e6479087d629017efa7ab9f1f
[ "Apache-2.0" ]
1
2019-02-08T02:23:56.000Z
2019-02-08T02:23:56.000Z
sample/core/platform_linux.cpp
asmwarrior/syncpp
df34b95b308d7f2e6479087d629017efa7ab9f1f
[ "Apache-2.0" ]
null
null
null
sample/core/platform_linux.cpp
asmwarrior/syncpp
df34b95b308d7f2e6479087d629017efa7ab9f1f
[ "Apache-2.0" ]
1
2020-12-02T02:37:40.000Z
2020-12-02T02:37:40.000Z
/* * Copyright 2014 Anton Karmanov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
28.92
76
0.731674
asmwarrior
5bd47017867bcd285918ffdad213aa1e03095a8a
4,413
cpp
C++
Library_MMDFiles/src/lib/SystemTexture.cpp
ChaseBro/MMDAgent
779cd3035954c27016333a2186896e1870e9ee54
[ "Libpng", "Zlib", "Unlicense" ]
9
2017-08-17T01:01:55.000Z
2022-02-02T09:50:09.000Z
Library_MMDFiles/src/lib/SystemTexture.cpp
ChaseBro/MMDAgent
779cd3035954c27016333a2186896e1870e9ee54
[ "Libpng", "Zlib", "Unlicense" ]
null
null
null
Library_MMDFiles/src/lib/SystemTexture.cpp
ChaseBro/MMDAgent
779cd3035954c27016333a2186896e1870e9ee54
[ "Libpng", "Zlib", "Unlicense" ]
4
2017-08-17T01:01:57.000Z
2021-06-28T08:30:17.000Z
/* ----------------------------------------------------------------- */ /* The Toolkit for Building Voice Interaction Systems */ /* "MMDAgent" developed by MMDAgent Project Team */ /* http://www.mmdagent.jp/ */ /* -------------------------...
40.486239
72
0.519828
ChaseBro
5bd4bd0aa8ce443818d66072937e9145f4401d00
456
cpp
C++
AED 1/Prova 2/questao 1.cpp
andreflabr/EstudoCC
b89aa2dbe48cc8adeef1c955cd4f7775705f70e4
[ "MIT" ]
null
null
null
AED 1/Prova 2/questao 1.cpp
andreflabr/EstudoCC
b89aa2dbe48cc8adeef1c955cd4f7775705f70e4
[ "MIT" ]
null
null
null
AED 1/Prova 2/questao 1.cpp
andreflabr/EstudoCC
b89aa2dbe48cc8adeef1c955cd4f7775705f70e4
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> int main(){ double matriz[4][3], vetor[12]; int l, c, i=0; for(l=0; l<4; l++){ for(c=0; c<3; c++){ scanf("%lf", &matriz[l][c]); } } do{ for(l=0; l<4; l++){ for(c=0; c<3; c++){ vetor[i] = matriz[l][c]; ...
18.24
59
0.335526
andreflabr
5bd797bf482abadf0245f37962583fdb384dc2bd
711
cpp
C++
the-most-frequent.cpp
vargad/multi_target_cmake_project_example
c0d57ad498addd161ee852462ad70e7ae7822fc9
[ "MIT" ]
null
null
null
the-most-frequent.cpp
vargad/multi_target_cmake_project_example
c0d57ad498addd161ee852462ad70e7ae7822fc9
[ "MIT" ]
null
null
null
the-most-frequent.cpp
vargad/multi_target_cmake_project_example
c0d57ad498addd161ee852462ad70e7ae7822fc9
[ "MIT" ]
null
null
null
// 2018 Daniel Varga (vargad88@gmail.com) #include <list> #include <vector> #include <iostream> #include <map> #include <algorithm> template <typename Container> typename Container::value_type most_frequent(const Container &container) { std::map<typename Container::value_type, std::size_t> counter; for (auto ...
29.625
141
0.661041
vargad
5bd8757aeda5bc7d5dd2581d070dfa15bf13f5f3
526
cpp
C++
034/test/tst_remove_blank_line.cpp
Ponz-Tofu-N/ModernCppChallengePractice
c2003fc180fc28448a3ff5b3e0f0c2788154af8c
[ "MIT" ]
null
null
null
034/test/tst_remove_blank_line.cpp
Ponz-Tofu-N/ModernCppChallengePractice
c2003fc180fc28448a3ff5b3e0f0c2788154af8c
[ "MIT" ]
null
null
null
034/test/tst_remove_blank_line.cpp
Ponz-Tofu-N/ModernCppChallengePractice
c2003fc180fc28448a3ff5b3e0f0c2788154af8c
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include "../remove_blank_line.h" #include <fstream> TEST(removeBlankLine, removeBlankLine) { std::string input("test.txt"); std::string output("test_out.txt"); removeBlankLines(input, output); std::ifstream ifs_expected("test_expected.txt"); std::ifstream ifs_out(output...
22.869565
66
0.663498
Ponz-Tofu-N
5bd93fc105bc08eef633d8ccb9e46ff34dc5d018
883
cpp
C++
Week_0/Ans1.cpp
s1orm/DAA-Lab-Assignment
47c3ec23fbc6da60c225a26abf9a13839db4c12d
[ "MIT" ]
null
null
null
Week_0/Ans1.cpp
s1orm/DAA-Lab-Assignment
47c3ec23fbc6da60c225a26abf9a13839db4c12d
[ "MIT" ]
null
null
null
Week_0/Ans1.cpp
s1orm/DAA-Lab-Assignment
47c3ec23fbc6da60c225a26abf9a13839db4c12d
[ "MIT" ]
null
null
null
#include<iostream> #include<fstream> using namespace std; void linear_search(int *a,int n,int ele) { int count=0,f=0; fstream output; output.open("ouput.txt",ios::app); for(int i=0;i<n;i++) { count++; if(a[i]==ele) { f=1; break; } } if(...
14.241935
62
0.463194
s1orm
5becbb836dbdd329dba6bf395945f62d35e6e6bf
6,803
cpp
C++
core/connections/wim/events/fetch_event_dlg_state.cpp
Vavilon3000/icq
9fe7a3c42c07eb665d2e3b0ec50052de382fd89c
[ "Apache-2.0" ]
1
2021-03-18T20:00:07.000Z
2021-03-18T20:00:07.000Z
core/connections/wim/events/fetch_event_dlg_state.cpp
Vavilon3000/icq
9fe7a3c42c07eb665d2e3b0ec50052de382fd89c
[ "Apache-2.0" ]
null
null
null
core/connections/wim/events/fetch_event_dlg_state.cpp
Vavilon3000/icq
9fe7a3c42c07eb665d2e3b0ec50052de382fd89c
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "fetch_event_dlg_state.h" #include "../wim_history.h" #include "../wim_im.h" #include "../wim_packet.h" #include "../../../archive/archive_index.h" #include "../../../log/log.h" using namespace core; using namespace wim; fetch_event_dlg_state::fetch_event_dlg_state() : t...
35.248705
133
0.616346
Vavilon3000
5bf097c4645bca073b693575d5dee8489b555aeb
2,178
cc
C++
moui/core/android/application_android.cc
ollix/moui
4a931aa15fac42b308baae170a855c2d78f9ee9f
[ "Apache-2.0" ]
59
2015-01-23T01:02:50.000Z
2021-11-26T00:01:45.000Z
moui/core/android/application_android.cc
ollix/moui
4a931aa15fac42b308baae170a855c2d78f9ee9f
[ "Apache-2.0" ]
2
2017-05-26T15:26:24.000Z
2020-09-25T03:54:01.000Z
moui/core/android/application_android.cc
ollix/moui
4a931aa15fac42b308baae170a855c2d78f9ee9f
[ "Apache-2.0" ]
7
2015-09-25T08:09:20.000Z
2019-11-24T15:24:28.000Z
// Copyright (c) 2014 Ollix. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
26.888889
75
0.714876
ollix
5bf28511cae1daca6a315cdb69061cb14d4a3c28
8,293
cpp
C++
v-spmines/Script.cpp
root-cause/v-spmines
d62decaf0bafd540067159078de6d509dffae221
[ "MIT" ]
null
null
null
v-spmines/Script.cpp
root-cause/v-spmines
d62decaf0bafd540067159078de6d509dffae221
[ "MIT" ]
null
null
null
v-spmines/Script.cpp
root-cause/v-spmines
d62decaf0bafd540067159078de6d509dffae221
[ "MIT" ]
null
null
null
#include "pch.h" #include "Script.h" std::unordered_map<Hash, MineSetData> g_mineSets; std::unordered_map<Hash, Hash> g_vehicleModels; /* VehicleModelHash, MineSetNameHash */ int g_lastMineDrop; void LoadModel(Hash modelHash) { if (!STREAMING::IS_MODEL_VALID(modelHash)) { return; } STREAMING::REQUEST_MODEL(mod...
30.377289
161
0.6942
root-cause
5bf394fb0e7019ce8c0d0691770698b7799a97f9
5,131
cpp
C++
modules/examples/ex-exposure_times.cpp
theseankelly/libo3d3xx
01cdf9560d69b1ee91ca9b4298df7bb4efb45e52
[ "Apache-2.0" ]
36
2015-04-04T15:19:50.000Z
2018-10-11T14:33:05.000Z
modules/examples/ex-exposure_times.cpp
theseankelly/libo3d3xx
01cdf9560d69b1ee91ca9b4298df7bb4efb45e52
[ "Apache-2.0" ]
111
2015-04-22T16:12:55.000Z
2018-10-16T08:03:40.000Z
modules/examples/ex-exposure_times.cpp
theseankelly/libo3d3xx
01cdf9560d69b1ee91ca9b4298df7bb4efb45e52
[ "Apache-2.0" ]
40
2015-07-13T09:29:31.000Z
2018-09-14T06:56:24.000Z
/* * Copyright (C) 2016 Love Park Robotics, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
31.09697
78
0.593841
theseankelly
7500b589ab3b087506e3d46219a259dafec3b726
2,174
cpp
C++
Nova/Nova/Platform/OpenGLBuffer.cpp
Aaron-Berland/Nova
1b8587548c58adda27bd2b699bf4229e18f30e13
[ "Apache-2.0" ]
null
null
null
Nova/Nova/Platform/OpenGLBuffer.cpp
Aaron-Berland/Nova
1b8587548c58adda27bd2b699bf4229e18f30e13
[ "Apache-2.0" ]
null
null
null
Nova/Nova/Platform/OpenGLBuffer.cpp
Aaron-Berland/Nova
1b8587548c58adda27bd2b699bf4229e18f30e13
[ "Apache-2.0" ]
null
null
null
#include "OpenGLBuffer.h" #include <glad/glad.h> namespace Nova { unsigned int BufferTypeToOpenGLEnum(BufferType type) { switch (type) { case Nova::BufferType::StaticDraw: return GL_STATIC_DRAW; case Nova::BufferType::DynamicDraw: return GL_DYNAMIC_DRAW; case Nova::BufferType::StreamDraw: return ...
24.155556
188
0.75483
Aaron-Berland
750feb4533c5e534328997d8fa1614ba44598e92
12,167
cpp
C++
VisualPipes/albaPipeVector.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
VisualPipes/albaPipeVector.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
VisualPipes/albaPipeVector.cpp
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaPipeVector Authors: Roberto Mucci Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even the ...
29.318072
118
0.553546
IOR-BIC
75129a3b859d2a724fb2a4b1078d6b3b4c6ab5b0
1,721
tpp
C++
v1/include/GameObject.tpp
cherosene/learning_algorithms
8ec9d8b7f744a375170ac2396cfb8bc216f84f53
[ "MIT" ]
null
null
null
v1/include/GameObject.tpp
cherosene/learning_algorithms
8ec9d8b7f744a375170ac2396cfb8bc216f84f53
[ "MIT" ]
null
null
null
v1/include/GameObject.tpp
cherosene/learning_algorithms
8ec9d8b7f744a375170ac2396cfb8bc216f84f53
[ "MIT" ]
null
null
null
template <class T> GameObject<T>::GameObject(std::map<T,std::function<void()>> atm, int nx, int ny, float nspeed) : x(nx), y(ny), speed(nspeed), actionToMove(atm) {} //// SPATIAL POSITION template <class T> void GameObject<T>::warp(int nx, int ny) { x = nx; y = ny; } template <class T> void GameObject<T>::move(direct...
24.585714
152
0.583963
cherosene
75136d7c712e70d72e82bc145e9b0ff6bf537b1b
17,539
cpp
C++
src/flexui/Style/StyleProperty.cpp
mlomb/flexui
242790aa13b057e25b276b6a3df79a30735c2548
[ "MIT" ]
23
2020-12-20T01:41:56.000Z
2021-11-14T20:26:40.000Z
src/flexui/Style/StyleProperty.cpp
mlomb/flexui
242790aa13b057e25b276b6a3df79a30735c2548
[ "MIT" ]
2
2020-12-23T16:29:55.000Z
2021-11-29T05:35:12.000Z
src/flexui/Style/StyleProperty.cpp
mlomb/flexui
242790aa13b057e25b276b6a3df79a30735c2548
[ "MIT" ]
4
2020-12-23T16:02:25.000Z
2021-09-30T08:37:51.000Z
#include "flexui/Style/StyleProperty.hpp" #include <cmath> // powf #include "flexui/Style/NamedColors.hpp" namespace flexui { /// Check if the character is a valid CSS property inline bool isPropertyNameChar(const char c) { return (c == '-') || (c >= 'a' && c <= 'z'); } /// Converts decimal colors to Color ...
30.135739
116
0.640116
mlomb
7515f9da3f114383e24a8bfa46211b1e2a3977fd
2,176
cpp
C++
PAT_A/A1033|To Fill or Not to Fill|e.g.cpp
FunamiYui/PAT_Code_Akari
52e06689b6bf8177c43ab9256719258c47e80b25
[ "MIT" ]
null
null
null
PAT_A/A1033|To Fill or Not to Fill|e.g.cpp
FunamiYui/PAT_Code_Akari
52e06689b6bf8177c43ab9256719258c47e80b25
[ "MIT" ]
null
null
null
PAT_A/A1033|To Fill or Not to Fill|e.g.cpp
FunamiYui/PAT_Code_Akari
52e06689b6bf8177c43ab9256719258c47e80b25
[ "MIT" ]
null
null
null
//example //在距离为0处必须有加油站,否则无法出发,一定无法到达终点 //Cmax、D、Davg、油价、距离都可能是浮点型,不能设置成int型 #include <cstdio> #include <algorithm> using namespace std; const int maxn = 510; const int INF = 1000000000; struct station { double price, dis; //油价格、与起点的距离 } st[maxn]; bool cmp(station a, station b) { return a.dis < b.dis; //按距离从小到大排序 ...
26.864198
114
0.606618
FunamiYui
751742c761ce67fed60a951e6889c7e7b8b0952a
11,004
cpp
C++
data-server/src/range/txn.cpp
13meimei/sharkstore
b73fd09e8cddf78fc1f690219529770b278b35b6
[ "Apache-2.0" ]
1
2019-09-11T06:16:42.000Z
2019-09-11T06:16:42.000Z
data-server/src/range/txn.cpp
13meimei/sharkstore
b73fd09e8cddf78fc1f690219529770b278b35b6
[ "Apache-2.0" ]
null
null
null
data-server/src/range/txn.cpp
13meimei/sharkstore
b73fd09e8cddf78fc1f690219529770b278b35b6
[ "Apache-2.0" ]
1
2021-09-03T10:35:21.000Z
2021-09-03T10:35:21.000Z
#include "range.h" namespace sharkstore { namespace dataserver { namespace range { using namespace sharkstore::monitor; using namespace txnpb; bool Range::KeyInRange(const PrepareRequest& req, const metapb::RangeEpoch& epoch, errorpb::Error** err) { assert(err != nullptr); bool in_range = true; std::str...
29.983651
108
0.568339
13meimei
751c608d30ad28700117e76301ddaeb9a9f63d4a
884
cpp
C++
tools/converter/source/tensorflow/LRNTf.cpp
loveltyoic/MNN
ff405a307819a7228e0d1fc02c00c68021745b0a
[ "Apache-2.0" ]
1
2019-08-09T03:16:49.000Z
2019-08-09T03:16:49.000Z
tools/converter/source/tensorflow/LRNTf.cpp
sunnythree/MNN
166fe68cd1ba05d02b018537bf6af03374431690
[ "Apache-2.0" ]
null
null
null
tools/converter/source/tensorflow/LRNTf.cpp
sunnythree/MNN
166fe68cd1ba05d02b018537bf6af03374431690
[ "Apache-2.0" ]
1
2021-01-15T06:28:11.000Z
2021-01-15T06:28:11.000Z
// // LRNTf.cpp // MNNConverter // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #include "TfUtils.hpp" #include "tfOpConverter.hpp" #include "graph.pb.h" DECLARE_OP_CONVERTER(LRNTf); MNN::OpType LRNTf::opType() { return MNN::OpType_LRN; } MNN::OpParameter LRNTf::typ...
21.560976
73
0.671946
loveltyoic
751ff5d92e904480af9b21c8687bffcfa46aacc0
1,688
hpp
C++
include/Nazara/Core/ResourceManager.hpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
11
2019-11-27T00:40:43.000Z
2020-01-29T14:31:52.000Z
include/Nazara/Core/ResourceManager.hpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
7
2019-11-27T00:29:08.000Z
2020-01-08T18:53:39.000Z
include/Nazara/Core/ResourceManager.hpp
jayrulez/NazaraEngine
e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
7
2019-11-27T10:27:40.000Z
2020-01-15T17:43:33.000Z
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_CORE_RESOURCEMANAGER_HPP #define NAZARA_CORE_RESOURCEMANAGER_HPP #include <Nazara/Core...
28.610169
98
0.747038
jayrulez
970ce570f73b212d2ae76a5c979443088090fd87
325
cc
C++
foobar/bar.cc
cbracken/cc_project_template_bazel
e3121a89130cf419f6cdc0e2978775b5a4a1b4e4
[ "BSD-3-Clause" ]
null
null
null
foobar/bar.cc
cbracken/cc_project_template_bazel
e3121a89130cf419f6cdc0e2978775b5a4a1b4e4
[ "BSD-3-Clause" ]
null
null
null
foobar/bar.cc
cbracken/cc_project_template_bazel
e3121a89130cf419f6cdc0e2978775b5a4a1b4e4
[ "BSD-3-Clause" ]
null
null
null
#include "bar.h" #include <string> #include "absl/strings/str_cat.h" #include "absl/strings/string_view.h" namespace foobar { std::string Bar(absl::string_view name) { std::string greeting = "Hello"; if (name.size() >= 1) { absl::StrAppend(&greeting, ", ", name); } return greeting; } } // namespace fo...
17.105263
43
0.655385
cbracken
970ddfa3638c99a8a745abecece32889169f9d57
4,962
hpp
C++
Lucy/include/RoundedRectangle.hpp
pL0ck/LUCY
3fdc467d2b32f8c53ed42d40c5ba12d9cccac913
[ "Zlib" ]
null
null
null
Lucy/include/RoundedRectangle.hpp
pL0ck/LUCY
3fdc467d2b32f8c53ed42d40c5ba12d9cccac913
[ "Zlib" ]
null
null
null
Lucy/include/RoundedRectangle.hpp
pL0ck/LUCY
3fdc467d2b32f8c53ed42d40c5ba12d9cccac913
[ "Zlib" ]
null
null
null
#pragma once #define _USE_MATH_DEFINES #include <cmath> //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Graphics/Shape.hpp> #include "Config.hpp" namespace Lucy { /////////////////////////////////////////////////...
36.755556
189
0.369206
pL0ck
97139e3a1b2e57e13367a666c0001d70f1885ff5
9,955
cpp
C++
vrclient_x64/vrclient_x64/struct_converters_0913.cpp
SSYSS000/Proton
79ddcc55688fffae9a74f230d825b1dbd6db82a9
[ "MIT", "BSD-3-Clause" ]
17,337
2018-08-21T21:43:27.000Z
2022-03-31T18:06:05.000Z
vrclient_x64/vrclient_x64/struct_converters_0913.cpp
SSYSS000/Proton
79ddcc55688fffae9a74f230d825b1dbd6db82a9
[ "MIT", "BSD-3-Clause" ]
5,641
2018-08-21T22:40:50.000Z
2022-03-31T23:58:40.000Z
vrclient_x64/vrclient_x64/struct_converters_0913.cpp
SSYSS000/Proton
79ddcc55688fffae9a74f230d825b1dbd6db82a9
[ "MIT", "BSD-3-Clause" ]
910
2018-08-21T22:54:53.000Z
2022-03-29T17:35:31.000Z
#include <stdlib.h> #include <string.h> #include "vrclient_private.h" #include "vrclient_defs.h" #include "openvr_v0.9.13/openvr.h" using namespace vr; extern "C" { #include "struct_converters.h" #pragma pack(push, 8) struct winVRControllerState001_t_0913 { uint32_t unPacketNum; uint64_t ulButtonPressed; ui...
37.284644
115
0.749874
SSYSS000
97166fc7c56eb66ec8f9dc088cb0383a9ead90db
4,080
cpp
C++
src/TGAMaker/DirectX/DirectSound/DirectSound.cpp
vitek-karas/WarPlusPlus
3abb26ff30dc0e93de906ab6141b89c2fa301ae4
[ "MIT" ]
4
2019-06-17T13:44:49.000Z
2021-01-19T10:39:48.000Z
src/TGAMaker/DirectX/DirectSound/DirectSound.cpp
vitek-karas/WarPlusPlus
3abb26ff30dc0e93de906ab6141b89c2fa301ae4
[ "MIT" ]
null
null
null
src/TGAMaker/DirectX/DirectSound/DirectSound.cpp
vitek-karas/WarPlusPlus
3abb26ff30dc0e93de906ab6141b89c2fa301ae4
[ "MIT" ]
4
2019-06-17T16:03:20.000Z
2020-02-15T09:14:30.000Z
// DirectSound.cpp: implementation of the CDirectSound class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "DirectSound.h" #include "DirectSoundException.h" #include "DSoundBuffer.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new ...
21.587302
87
0.67402
vitek-karas
971815529f54f7462b7f38abb6a878856dd610f4
856
hpp
C++
include/mudpp/engine/state/create.hpp
Klaim/mudpp
b54b855c394cb5eb5b4b43c4e116c879bd7f0a2f
[ "MIT" ]
null
null
null
include/mudpp/engine/state/create.hpp
Klaim/mudpp
b54b855c394cb5eb5b4b43c4e116c879bd7f0a2f
[ "MIT" ]
null
null
null
include/mudpp/engine/state/create.hpp
Klaim/mudpp
b54b855c394cb5eb5b4b43c4e116c879bd7f0a2f
[ "MIT" ]
null
null
null
//================================================================================================== /** MudPP - MUD engine for C++ Copyright 2019-2020 Joel FALCOU Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT **/ //===========================================...
24.457143
100
0.559579
Klaim
971b7705cd19a424225c4128cdf82793137b1471
1,182
cpp
C++
Trik.cpp
PapaFluff/Kattis
b646f66db1551cdb3601065125299b23da65df32
[ "MIT" ]
null
null
null
Trik.cpp
PapaFluff/Kattis
b646f66db1551cdb3601065125299b23da65df32
[ "MIT" ]
null
null
null
Trik.cpp
PapaFluff/Kattis
b646f66db1551cdb3601065125299b23da65df32
[ "MIT" ]
null
null
null
// All needed preprocessor directives #include <iostream> #include <string> using namespace std; // Main function, the primary driver of the program int main() { bool Ball[3] = {true, false, false}; // Creates an array bool for where the ball is located string BorkosMoves; // Creates a string to be Bo...
26.266667
98
0.521997
PapaFluff
971b8624b6e98c31b3979cd0d5a7bfded902d5af
697
cpp
C++
src/MathUtils.cpp
LeifNode/World-Generator
f9818fb6c5d507eede76141c2687a66f090cbdc1
[ "MIT" ]
16
2015-02-12T20:56:01.000Z
2021-05-31T21:05:41.000Z
src/MathUtils.cpp
LeifNode/World-Generator
f9818fb6c5d507eede76141c2687a66f090cbdc1
[ "MIT" ]
null
null
null
src/MathUtils.cpp
LeifNode/World-Generator
f9818fb6c5d507eede76141c2687a66f090cbdc1
[ "MIT" ]
3
2017-02-05T15:52:34.000Z
2018-02-09T08:51:00.000Z
#include "MathUtils.h" #include <float.h> #include <cmath> const float MathUtils::Infinity = FLT_MAX; const float MathUtils::Pi = 3.1415926535f; const float MathUtils::TwoPi = Pi * 2.0f; const float MathUtils::PiOver2 = Pi / 2.0f; const float MathUtils::PiOver4 = Pi / 4.0f; float MathUtils::AngleFromXY(float...
22.483871
48
0.575323
LeifNode
9722b1f6a6381b4f07d49be09f94928ed22a43f7
1,040
hpp
C++
sc-memory/tests/performance/units/memory_test.hpp
FallenChromium/sc-machine-1
90c9605d9e1846e07705a7a579fe33ee8768c33a
[ "MIT" ]
null
null
null
sc-memory/tests/performance/units/memory_test.hpp
FallenChromium/sc-machine-1
90c9605d9e1846e07705a7a579fe33ee8768c33a
[ "MIT" ]
9
2022-03-01T07:33:48.000Z
2022-03-24T17:06:07.000Z
sc-memory/tests/performance/units/memory_test.hpp
FallenChromium/sc-machine-1
90c9605d9e1846e07705a7a579fe33ee8768c33a
[ "MIT" ]
7
2022-02-18T13:34:24.000Z
2022-03-25T09:59:42.000Z
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #pragma once #include <memory> #include "sc-memory/sc_memory.hpp" #include "sc-core/sc_memory.h" clas...
18.245614
89
0.680769
FallenChromium
97295eb4da822854ae5217d24dd717d462038d9a
4,175
hpp
C++
include/furi/pct_encode.hpp
LeonineKing1199/furi
f9d1cd4721950393b0c47d7fe4c5c8999c2bdddf
[ "BSL-1.0" ]
4
2020-01-22T22:42:52.000Z
2021-03-21T16:49:41.000Z
include/furi/pct_encode.hpp
LeonineKing1199/furi
f9d1cd4721950393b0c47d7fe4c5c8999c2bdddf
[ "BSL-1.0" ]
null
null
null
include/furi/pct_encode.hpp
LeonineKing1199/furi
f9d1cd4721950393b0c47d7fe4c5c8999c2bdddf
[ "BSL-1.0" ]
null
null
null
// // Copyright (c) 2018-2019 Christian Mazakas (christian dot mazakas at gmail dot com) // // 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) // // Official repository: https://github.com/LeonineKing1199/furi // #ifn...
28.209459
100
0.651257
LeonineKing1199
972b06b0e3b76132887270234fca403d3d078242
983
cpp
C++
Leetcode/10.Regex.cpp
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2017-08-10T16:59:01.000Z
2017-08-10T16:59:01.000Z
Leetcode/10.Regex.cpp
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/10.Regex.cpp
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; bool isMatchAnswer(string s, string p) { // if (p.empty()) return s.empty(); // // if ('*' == p[1]) // // x* matches empty string or at least one character: x* -> xx* // // *s is to ensure s is non-empty // return (isMat...
26.567568
118
0.467955
EdwaRen
972d65d310a4f71805571224011b4bbd144c24e8
417
cpp
C++
libs/systems/src/systems/audio_player_default.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/systems/src/systems/audio_player_default.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/systems/src/systems/audio_player_default.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // 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) #include <sge/systems/audio_player.hpp> #include <sge/systems/audio_player_default.hpp> sge::syste...
32.076923
63
0.721823
cpreh
9734e9ea05022aee2a533c0581a5661ee5677c55
1,211
hpp
C++
libs/core/render/include/bksge/core/render/vulkan/detail/shader_module.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/core/render/include/bksge/core/render/vulkan/detail/shader_module.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/core/render/include/bksge/core/render/vulkan/detail/shader_module.hpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file shader_module.hpp * * @brief ShaderModule クラスの定義 * * @author myoukaku */ #ifndef BKSGE_CORE_RENDER_VULKAN_DETAIL_SHADER_MODULE_HPP #define BKSGE_CORE_RENDER_VULKAN_DETAIL_SHADER_MODULE_HPP #include <bksge/core/render/vulkan/detail/fwd/shader_module_fwd.hpp> #include <bksge/core/render/v...
20.183333
69
0.737407
myoukaku
97357305e510636efc3d730e5d874cc68148586b
8,695
cpp
C++
src/format.cpp
retrhelo/AST-Practice
2d2e23908d1d6877df35a41140b428a69c96470c
[ "MIT" ]
null
null
null
src/format.cpp
retrhelo/AST-Practice
2d2e23908d1d6877df35a41140b428a69c96470c
[ "MIT" ]
null
null
null
src/format.cpp
retrhelo/AST-Practice
2d2e23908d1d6877df35a41140b428a69c96470c
[ "MIT" ]
null
null
null
#include <deque> #include <string> #include "../inc/format" #pragma GCC dependence "../inc/format" static std::deque<std::string> s; static void enterDebug(std::string str) { s.push_back(str); } static void debug_msg(std::string str) { std::cerr << s.back() << ": " << str << std::endl; } static void debug_ms...
19.539326
69
0.576078
retrhelo
973607bb823caa5703c25364396bbb887e400846
1,085
cpp
C++
src/Actions/Sentences/SentenceListAction.cpp
viveret/script-ai
15f8dc561e55812de034bb729e83ff01bec61743
[ "BSD-3-Clause" ]
null
null
null
src/Actions/Sentences/SentenceListAction.cpp
viveret/script-ai
15f8dc561e55812de034bb729e83ff01bec61743
[ "BSD-3-Clause" ]
null
null
null
src/Actions/Sentences/SentenceListAction.cpp
viveret/script-ai
15f8dc561e55812de034bb729e83ff01bec61743
[ "BSD-3-Clause" ]
null
null
null
#include "../Actions.hpp" #include "../../Program.hpp" #include "../../AIModelAdapter.hpp" #include "../../Data/DAOs.hpp" #include "../../Data/Commands/Sentences/SentenceQueryPagedCmd.hpp" #include <math.h> using namespace ScriptAI; using namespace Sql; SentenceListAction::SentenceListAction(AIProgram *prog): PagedA...
25.232558
101
0.686636
viveret
9737c0c2a7ec2cd01cbd02e34a5a53854fed1b3b
2,060
cpp
C++
YorozuyaGSLib/source/ICsSendInterface.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/ICsSendInterface.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/ICsSendInterface.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <ICsSendInterface.hpp> START_ATF_NAMESPACE void ICsSendInterface::SendMsg_BuyCashItem(uint16_t wSock, struct _param_cash_update* psheet, struct _param_cash_update* sheetplus) { using org_ptr = void (WINAPIV*)(uint16_t, struct _param_cash_update*, struct _param_cash_update*); (org_ptr(...
50.243902
158
0.719903
lemkova
973b2809ce634c61f6516f7a81ba8aa0e5317e9e
1,869
cpp
C++
src/app/Welcome.cpp
wichern/leucht
403fc613e06241978696fb15f34fa64f2732549d
[ "MIT" ]
null
null
null
src/app/Welcome.cpp
wichern/leucht
403fc613e06241978696fb15f34fa64f2732549d
[ "MIT" ]
null
null
null
src/app/Welcome.cpp
wichern/leucht
403fc613e06241978696fb15f34fa64f2732549d
[ "MIT" ]
null
null
null
/* * The MIT License (MIT) * * Copyright (c) 2019 Paul Wichern * * 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,...
31.677966
81
0.693419
wichern
973c2951b38dd6a0bd1be51e43b4ee6b9d386e62
546
cpp
C++
lib/Render/SceneObject.cpp
chromapid/Monocle
5be990b05e89abbd1c6a222a9bcf412ba350aecd
[ "MIT" ]
null
null
null
lib/Render/SceneObject.cpp
chromapid/Monocle
5be990b05e89abbd1c6a222a9bcf412ba350aecd
[ "MIT" ]
null
null
null
lib/Render/SceneObject.cpp
chromapid/Monocle
5be990b05e89abbd1c6a222a9bcf412ba350aecd
[ "MIT" ]
null
null
null
#include "monocle/Render/SceneObject.h" #include "glm/glm/gtc/matrix_transform.hpp" #include "glm/glm/gtc/quaternion.hpp" #include "glm/glm/gtx/transform.hpp" #include "glm/glm/vec3.hpp" using namespace mncl; glm::mat4 SceneObject::getObjectToWorldMatrix() { return glm::translate(glm::scale(glm::toMat4(rotation), sc...
36.4
152
0.741758
chromapid
973eee2bd2e18096f86ea5ca9c4940860766ee21
1,059
hpp
C++
src/corelib/hall-switch-int.hpp
Abiram-Narayanaswamy/hall-switch
921c41bea246ada2588ba0be0eab8a43b1b0a5ab
[ "MIT" ]
2
2020-05-30T14:26:43.000Z
2020-06-30T13:37:32.000Z
src/corelib/hall-switch-int.hpp
Abiram-Narayanaswamy/hall-switch
921c41bea246ada2588ba0be0eab8a43b1b0a5ab
[ "MIT" ]
2
2019-12-04T20:30:40.000Z
2020-08-24T13:19:39.000Z
src/corelib/hall-switch-int.hpp
Abiram-Narayanaswamy/hall-switch
921c41bea246ada2588ba0be0eab8a43b1b0a5ab
[ "MIT" ]
3
2020-01-29T10:26:00.000Z
2020-09-08T10:53:42.000Z
/** * @file hall-switch-int.hpp * @brief Hall Switch Interrupt Handler * @date July 2019 * @copyright Copyright (c) 2019-2020 Infineon Technologies AG * * SPDX-License-Identifier: MIT */ #ifndef HALL_SWITCH_INT_HPP_ #define HALL_SWITCH_INT_HPP_ #include "hall-switch.hpp" class HallSwit...
35.3
114
0.601511
Abiram-Narayanaswamy
973f8188fe38d2b6d8724be3ae25d071979dca24
227
cpp
C++
Pbinfo/Gen.cpp
Al3x76/cpp
08a0977d777e63e0d36d87fcdea777de154697b7
[ "MIT" ]
7
2019-01-06T19:10:14.000Z
2021-10-16T06:41:23.000Z
Pbinfo/Gen.cpp
Al3x76/cpp
08a0977d777e63e0d36d87fcdea777de154697b7
[ "MIT" ]
null
null
null
Pbinfo/Gen.cpp
Al3x76/cpp
08a0977d777e63e0d36d87fcdea777de154697b7
[ "MIT" ]
6
2019-01-06T19:17:30.000Z
2020-02-12T22:29:17.000Z
#include <iostream> using namespace std; int main() { int n, k; cin>>n>>k; for(int i=1; i<=n; i++) cout<<1; cout<<"01"; for(int i=1; i<=k; i++) cout<<0; cout<<10; return 0; }
9.869565
27
0.440529
Al3x76
974065eb4a0cec64d11885d99d4c33765451710d
19,415
cpp
C++
RTC/Kinect_Face/download/HDFaceBasics-D2D/ImageRenderer.cpp
rsdlab/LookThatWaySystem
842a8c021b1c9594b95a70d9e8302e77ceae6a97
[ "MIT" ]
null
null
null
RTC/Kinect_Face/download/HDFaceBasics-D2D/ImageRenderer.cpp
rsdlab/LookThatWaySystem
842a8c021b1c9594b95a70d9e8302e77ceae6a97
[ "MIT" ]
null
null
null
RTC/Kinect_Face/download/HDFaceBasics-D2D/ImageRenderer.cpp
rsdlab/LookThatWaySystem
842a8c021b1c9594b95a70d9e8302e77ceae6a97
[ "MIT" ]
null
null
null
//------------------------------------------------------------------------------ // <copyright file="ImageRenderer.cpp" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ #include ...
36.087361
233
0.609374
rsdlab
9744d4bedde54a3c60cc310bc94117bbc90556a1
17,911
cpp
C++
src/optical_flow.cpp
behnamasadi/OpenCVProjects
157c8d536c78c5660b64a23300a7aaf941584756
[ "BSD-3-Clause" ]
null
null
null
src/optical_flow.cpp
behnamasadi/OpenCVProjects
157c8d536c78c5660b64a23300a7aaf941584756
[ "BSD-3-Clause" ]
null
null
null
src/optical_flow.cpp
behnamasadi/OpenCVProjects
157c8d536c78c5660b64a23300a7aaf941584756
[ "BSD-3-Clause" ]
null
null
null
#include <opencv4/opencv2/opencv.hpp> void OPticalFlowLucasKanade() { /* Obsolete functions: CalcOpticalFlowHS -> computes the flow for every pixel of the first input image using the Horn and Schunck algorithm CalcOpticalFlowLK -> computes the flow for every pixel of the first input image using the Lucas and Kanad...
34.312261
357
0.615097
behnamasadi
974b43486e73052acd41f4bc735024f17e43dacc
1,262
cpp
C++
2_oop_basics/2_adv_oop/17_deduction.cpp
aalfianrachmat/CppND-practice
6c35141c106b9fa867392a846b35c482ded74e62
[ "MIT" ]
27
2019-10-08T13:43:32.000Z
2021-08-30T08:00:28.000Z
2_oop_basics/2_adv_oop/17_deduction.cpp
aalfianrachmat/CppND-practice
6c35141c106b9fa867392a846b35c482ded74e62
[ "MIT" ]
1
2020-10-11T23:20:15.000Z
2020-10-11T23:20:15.000Z
2_oop_basics/2_adv_oop/17_deduction.cpp
aalfianrachmat/CppND-practice
6c35141c106b9fa867392a846b35c482ded74e62
[ "MIT" ]
14
2019-09-22T15:17:59.000Z
2021-07-13T06:06:37.000Z
/* * Deduction occurs when an object is instantiated without explicitly identifying the types. * Instead, the compiler "deduces" the types. * This can be helpful for writing code that is generic and can handle a variety of inputs. * * OBJECTIVES * 1. Declare a generic conditional function * 2. Use it in condition...
28.681818
97
0.645008
aalfianrachmat
974d8e6e80120f908fbc79b311a3478a54edd81a
19,011
hh
C++
include/tracker/script.hh
bhgomes/tracker
dc44d40dd0275026ca8389898d47e35d19a3d9a7
[ "Unlicense" ]
1
2019-10-29T16:40:39.000Z
2019-10-29T16:40:39.000Z
include/tracker/script.hh
bhgomes/tracker
dc44d40dd0275026ca8389898d47e35d19a3d9a7
[ "Unlicense" ]
4
2019-04-01T16:31:31.000Z
2019-04-01T16:32:58.000Z
include/tracker/script.hh
bhgomes/tracker
dc44d40dd0275026ca8389898d47e35d19a3d9a7
[ "Unlicense" ]
null
null
null
/* * include/tracker/script.hh * * Copyright 2018 Brandon Gomes * * 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 b...
45.809639
104
0.549261
bhgomes
97513fee4bbd3df088e47e0d4560f541ee72d1b8
11,464
cpp
C++
src/ecal.cpp
IcicleF/undergraduate_project
57bc851834051ae5b167dcbf6790305905438d9e
[ "MIT" ]
1
2021-11-13T03:20:46.000Z
2021-11-13T03:20:46.000Z
src/ecal.cpp
IcicleF/undergraduate_project
57bc851834051ae5b167dcbf6790305905438d9e
[ "MIT" ]
null
null
null
src/ecal.cpp
IcicleF/undergraduate_project
57bc851834051ae5b167dcbf6790305905438d9e
[ "MIT" ]
null
null
null
#include <ecal.hpp> #include <debug.hpp> //#define USE_RPC /** * Constructor initializes `memConf`. * Also it initializes `clusterConf`, `myNodeConf` by instantiating an RPCInterface. */ ECAL::ECAL() { if (cmdConf == nullptr) { d_err("cmdConf should be initialized!"); exit(-1); } if (me...
32.568182
116
0.537858
IcicleF
9752f68711e6d453b8d71ea60bc1f6eca446b36a
4,377
cpp
C++
al/ALSoundEmitter.cpp
jomael/AudioEngine
48219cee71ad437760d7fe6a6a046c076b5fddd5
[ "Apache-2.0" ]
null
null
null
al/ALSoundEmitter.cpp
jomael/AudioEngine
48219cee71ad437760d7fe6a6a046c076b5fddd5
[ "Apache-2.0" ]
null
null
null
al/ALSoundEmitter.cpp
jomael/AudioEngine
48219cee71ad437760d7fe6a6a046c076b5fddd5
[ "Apache-2.0" ]
null
null
null
#include "ALSoundEmitter.hpp" namespace audio { namespace al { AudioEmitter::AudioEmitter(const std::string &path): m_position(0.0f, 0.0f, 0.0f), m_velocity(0.0f, 0.0f, 0.0f), m_direction(0.0f, 0.0f, 0.0f), m_minGain(0.0f), m_maxGain(0.3f), m_minDistance(0.0f), m_maxDistance(0.3f), m_i...
21.043269
79
0.644277
jomael
97533821ace90add3aca9d676c86468dca292a5f
1,587
cpp
C++
oivlib/renderers/OIVD3D11Renderer/Source/OIVD3D11Renderer.cpp
OpenImageViewer/OpenImageViewer
95899bc34ca7a2daf3a5ee00c66aab09bc1f0e7b
[ "RSA-MD" ]
19
2019-07-11T13:17:54.000Z
2022-03-12T14:05:20.000Z
oivlib/renderers/OIVD3D11Renderer/Source/OIVD3D11Renderer.cpp
OpenImageViewer/OpenImageViewer
95899bc34ca7a2daf3a5ee00c66aab09bc1f0e7b
[ "RSA-MD" ]
48
2019-01-12T14:52:04.000Z
2022-02-16T19:09:48.000Z
oivlib/renderers/OIVD3D11Renderer/Source/OIVD3D11Renderer.cpp
OpenImageViewer/OIV
7b2b67ea156255bf77819ce77bf687c9d360e217
[ "RSA-MD" ]
4
2017-07-23T13:37:12.000Z
2018-11-30T21:02:01.000Z
#include "OIVD3D11Renderer.h" #include "D3D11/D3D11Renderer.h" namespace OIV { OIVD3D11Renderer::OIVD3D11Renderer() { fD3D11Renderer = std::unique_ptr<D3D11Renderer>(new D3D11Renderer()); } int OIVD3D11Renderer::SetSelectionRect(SelectionRect selectionRect) { return fD3D11Renderer-...
26.45
90
0.701323
OpenImageViewer
975b738cbf7c4a6aabc32005c5ecd5f2efb06e9c
2,887
cpp
C++
src/face/tracker/tracker.cpp
bububa/openvision
0864e48ec8e69ac13d6889d41f7e1171f53236dd
[ "Apache-2.0" ]
1
2022-02-08T06:42:05.000Z
2022-02-08T06:42:05.000Z
src/face/tracker/tracker.cpp
bububa/openvision
0864e48ec8e69ac13d6889d41f7e1171f53236dd
[ "Apache-2.0" ]
null
null
null
src/face/tracker/tracker.cpp
bububa/openvision
0864e48ec8e69ac13d6889d41f7e1171f53236dd
[ "Apache-2.0" ]
null
null
null
#include "../tracker.h" #include <queue> IFaceTracker new_face_tracker() { return new ovface::Tracker(); } void destroy_face_tracker(IFaceTracker t) { delete static_cast<ovface::Tracker*>(t); } int track_face(IFaceTracker t, const FaceInfoVector* curr_faces, TrackedFaceInfoVector* faces) { std::vector<ov...
33.964706
106
0.678559
bububa
97663f775bd942d9a0a2bf746b7d3298be040587
1,773
hh
C++
backup/TussenEval/mobileip/RequestGenerator.hh
JeroenVerstraelen/Telecom
05f986e9c119fb8161d006711f968438bbddad74
[ "Apache-2.0" ]
null
null
null
backup/TussenEval/mobileip/RequestGenerator.hh
JeroenVerstraelen/Telecom
05f986e9c119fb8161d006711f968438bbddad74
[ "Apache-2.0" ]
null
null
null
backup/TussenEval/mobileip/RequestGenerator.hh
JeroenVerstraelen/Telecom
05f986e9c119fb8161d006711f968438bbddad74
[ "Apache-2.0" ]
null
null
null
#ifndef CLICK_REQUESTGENERATOR_HH #define CLICK_REQUESTGENERATOR_HH #include <click/element.hh> #include <click/timer.hh> // Local imports #include "structs/RegistrationData.hh" CLICK_DECLS /* * Click element that will generate requests at the mobile node * Mobile node will send requests when he has determined tha...
29.55
111
0.753525
JeroenVerstraelen
97686b26ef810f0b3a07b0c9ce66a0167b88f1d1
4,956
cpp
C++
aws-cpp-sdk-networkmanager/source/model/NetworkResource.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-05T18:20:03.000Z
2022-01-05T18:20:03.000Z
aws-cpp-sdk-networkmanager/source/model/NetworkResource.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-networkmanager/source/model/NetworkResource.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-12-30T04:25:33.000Z
2021-12-30T04:25:33.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/networkmanager/model/NetworkResource.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws ...
22.026667
102
0.726594
perfectrecall
9768f8885dd8eb4a3fa981293e505843016909c2
2,109
cpp
C++
src/plugin.cpp
iconmaster5326/Iconus
d6f265bd8ebb63199f7f8993864c051fae0484ac
[ "MIT" ]
null
null
null
src/plugin.cpp
iconmaster5326/Iconus
d6f265bd8ebb63199f7f8993864c051fae0484ac
[ "MIT" ]
null
null
null
src/plugin.cpp
iconmaster5326/Iconus
d6f265bd8ebb63199f7f8993864c051fae0484ac
[ "MIT" ]
null
null
null
/* * plugin.cpp * * Created on: Jan 21, 2019 * Author: iconmaster */ #include "plugin.hpp" #include "error.hpp" #include <dlfcn.h> #include <boost/filesystem.hpp> using namespace std; using namespace iconus; using namespace boost::filesystem; Vector<Plugin> iconus::Plugin::plugins{}; ...
26.3625
113
0.638217
iconmaster5326
97725c5034fc7301c9c5d25b75d3e91b2f98b321
2,321
cpp
C++
Havtorn/Source/Engine/ECS/Systems/CameraSystem.cpp
nicolas-risberg/NewEngine
38441f0713167ca8a469a1c6c0e7a290b5e402de
[ "MIT" ]
null
null
null
Havtorn/Source/Engine/ECS/Systems/CameraSystem.cpp
nicolas-risberg/NewEngine
38441f0713167ca8a469a1c6c0e7a290b5e402de
[ "MIT" ]
null
null
null
Havtorn/Source/Engine/ECS/Systems/CameraSystem.cpp
nicolas-risberg/NewEngine
38441f0713167ca8a469a1c6c0e7a290b5e402de
[ "MIT" ]
1
2022-01-09T12:01:24.000Z
2022-01-09T12:01:24.000Z
// Copyright 2022 Team Havtorn. All Rights Reserved. #include "hvpch.h" #include "CameraSystem.h" #include "Engine.h" #include "Scene/Scene.h" #include "ECS/Components/TransformComponent.h" #include "ECS/Components/CameraComponent.h" #include "Input/InputMapper.h" namespace Havtorn { CCameraSystem::CCameraSystem() ...
33.637681
129
0.750539
nicolas-risberg
977335667972ede6f1574fdb5fd052ae49fd8556
6,582
cpp
C++
include/util/GLShapeRenderer.cpp
hvidal/GameEngine3D
1794ad891d2200260be935283645a03af3ebcfcc
[ "MIT" ]
6
2020-07-03T21:14:56.000Z
2021-11-11T09:37:40.000Z
include/util/GLShapeRenderer.cpp
hvidal/GameEngine3D
1794ad891d2200260be935283645a03af3ebcfcc
[ "MIT" ]
null
null
null
include/util/GLShapeRenderer.cpp
hvidal/GameEngine3D
1794ad891d2200260be935283645a03af3ebcfcc
[ "MIT" ]
2
2020-08-15T22:37:21.000Z
2021-01-17T11:31:27.000Z
#include "GLShapeRenderer.h" #include "ShaderUtils.h" static constexpr const char* vsShape[] = { "attribute vec4 position;" "attribute vec4 normal;" "uniform mat4 V;" "uniform mat4 P;" "uniform mat4 m16;" "uniform vec3 sunPosition;" "varying vec4 eyeV;" "varying vec3 eyeN;" "varying vec4 eyeL;" ,ShaderUti...
26.647773
137
0.660134
hvidal
97734d44b6bc7da7a7caa0a19af0eda06e174101
2,813
cc
C++
src/kinem/EDepSimRooTrackerKinematicsFactory.cc
andrewmogan/edep-sim
4e9923ccba8b2f65f47b72cbb41ed683f19f1123
[ "MIT" ]
15
2017-04-25T14:20:22.000Z
2022-03-15T19:39:43.000Z
src/kinem/EDepSimRooTrackerKinematicsFactory.cc
andrewmogan/edep-sim
4e9923ccba8b2f65f47b72cbb41ed683f19f1123
[ "MIT" ]
24
2017-11-08T21:16:48.000Z
2022-03-04T13:33:18.000Z
src/kinem/EDepSimRooTrackerKinematicsFactory.cc
andrewmogan/edep-sim
4e9923ccba8b2f65f47b72cbb41ed683f19f1123
[ "MIT" ]
20
2017-11-09T15:41:46.000Z
2022-01-25T20:52:32.000Z
#include <TFile.h> #include <TTree.h> #include <TBits.h> #include <TObjString.h> #include "kinem/EDepSimRooTrackerKinematicsFactory.hh" #include "kinem/EDepSimRooTrackerKinematicsGenerator.hh" EDepSim::RooTrackerKinematicsFactory::RooTrackerKinematicsFactory( EDepSim::UserPrimaryGeneratorMessenger* parent) :...
38.534247
85
0.661927
andrewmogan
9776376067598d81822190da02d3f457274697d6
1,266
cpp
C++
Strings/valid_number.cpp
khushisinha20/Data-Structures-and-Algorithms
114d365d03f7ba7175eefeace281972820a7fc76
[ "Apache-2.0" ]
null
null
null
Strings/valid_number.cpp
khushisinha20/Data-Structures-and-Algorithms
114d365d03f7ba7175eefeace281972820a7fc76
[ "Apache-2.0" ]
null
null
null
Strings/valid_number.cpp
khushisinha20/Data-Structures-and-Algorithms
114d365d03f7ba7175eefeace281972820a7fc76
[ "Apache-2.0" ]
null
null
null
//leetcode.com/problems/valid-number #include <bits/stdc++.h> using namespace std; class Solution { public: bool isNumber(string s) { bool visitedDigit = false; bool visitedE = false; bool visitedDot = false; int countPlusMinus = 0; for (int i = 0; i < s.length(); ++i) { ...
31.65
69
0.390995
khushisinha20
977973b989c0951f9818dce1dbafdc5a6aeca9ea
775
cpp
C++
tools/src/entry.cpp
GameDevTecnico/cubos
51f89c9f3afc8afe502d167dadecab7dfe5b1c7b
[ "MIT" ]
2
2021-09-28T14:13:27.000Z
2022-03-26T11:36:48.000Z
tools/src/entry.cpp
GameDevTecnico/cubos
51f89c9f3afc8afe502d167dadecab7dfe5b1c7b
[ "MIT" ]
72
2021-09-29T08:55:26.000Z
2022-03-29T21:21:00.000Z
tools/src/entry.cpp
GameDevTecnico/cubos
51f89c9f3afc8afe502d167dadecab7dfe5b1c7b
[ "MIT" ]
null
null
null
#include "tools.hpp" #include <iostream> #include <string> /// Prints the help message of the program. int runHelp(int, char**) { std::cerr << "Usage: cubinhos <TOOL>" << std::endl; std::cerr << "Tools:" << std::endl; for (size_t i = 0; i < sizeof(tools) / sizeof(tools[0]); ++i) { std::cerr <<...
21.527778
69
0.491613
GameDevTecnico
97799f60f7e6c20819954fce1914e2cf3f868043
4,360
cpp
C++
examples/connect4/muzero_connect4.cpp
tuero/muzero-cpp
a679275a2c6f6a6ff7fb38ede40423aced0afe10
[ "Apache-2.0" ]
6
2022-01-13T07:41:50.000Z
2022-02-07T22:29:01.000Z
examples/connect4/muzero_connect4.cpp
tuero/muzero-cpp
a679275a2c6f6a6ff7fb38ede40423aced0afe10
[ "Apache-2.0" ]
null
null
null
examples/connect4/muzero_connect4.cpp
tuero/muzero-cpp
a679275a2c6f6a6ff7fb38ede40423aced0afe10
[ "Apache-2.0" ]
1
2022-01-19T01:29:23.000Z
2022-01-19T01:29:23.000Z
#include <algorithm> #include <string> #include <vector> #include "absl/flags/flag.h" #include "connect4.h" #include "muzero-cpp/abstract_game.h" #include "muzero-cpp/config.h" #include "muzero-cpp/default_flags.h" #include "muzero-cpp/muzero.h" #include "muzero-cpp/types.h" using namespace muzero_cpp; using namespac...
28.311688
103
0.648394
tuero
977e90456303ebbec60914f971122fcef7961fd6
154
cpp
C++
Extensions/ImGui/ImGui.cpp
LinkClinton/Code-Red
491621144aba559f068c7f91d71e3d0d7c87761e
[ "MIT" ]
34
2019-09-11T09:12:16.000Z
2022-02-13T12:50:25.000Z
Extensions/ImGui/ImGui.cpp
LinkClinton/Code-Red
491621144aba559f068c7f91d71e3d0d7c87761e
[ "MIT" ]
7
2019-09-22T14:21:26.000Z
2020-03-24T10:36:20.000Z
Extensions/ImGui/ImGui.cpp
LinkClinton/Code-Red
491621144aba559f068c7f91d71e3d0d7c87761e
[ "MIT" ]
6
2019-10-21T18:05:55.000Z
2021-04-22T05:07:30.000Z
#include "ImGui.hpp" #include <ThirdParties/ImGui/imgui_widgets.cpp> #include <ThirdParties/ImGui/imgui_draw.cpp> #include <ThirdParties/ImGui/imgui.cpp>
30.8
47
0.805195
LinkClinton
9784707529cad01bad713cef513a0bf27d9b440b
519
hpp
C++
src/String.hpp
enebe-nb/SokuLib
e4fdc913b6ce4bfce65d2fa7ccfcbdf9b5a2c910
[ "MIT" ]
2
2021-03-06T08:32:44.000Z
2021-04-18T20:43:42.000Z
src/String.hpp
enebe-nb/SokuLib
e4fdc913b6ce4bfce65d2fa7ccfcbdf9b5a2c910
[ "MIT" ]
4
2020-11-29T20:25:32.000Z
2021-12-11T14:38:34.000Z
src/String.hpp
enebe-nb/SokuLib
e4fdc913b6ce4bfce65d2fa7ccfcbdf9b5a2c910
[ "MIT" ]
3
2021-02-18T19:59:14.000Z
2021-09-07T13:23:38.000Z
// // Created by Gegel85 on 04/11/2020. // #ifndef SOKULIB_STRING_HPP #define SOKULIB_STRING_HPP #include <string> namespace SokuLib { #pragma pack(push, 4) // std::string ? struct String { enum { BUF_SIZE = 16 }; void *alloc; union { char buf[16]; char* ptr; } body; size_t size; size_t res; ...
14.027027
44
0.645472
enebe-nb
97857a096f016968ca5c463cac9d6c4412c2f3c7
1,664
cpp
C++
rosbag2_py/src/rosbag2_py/_reindexer.cpp
MourtazaKASSAMALY/rosbag2
d195b67186f2e63eeab6b3589250bf19c3ef95b7
[ "Apache-2.0" ]
118
2018-04-27T10:48:44.000Z
2022-03-30T14:45:13.000Z
rosbag2_py/src/rosbag2_py/_reindexer.cpp
MourtazaKASSAMALY/rosbag2
d195b67186f2e63eeab6b3589250bf19c3ef95b7
[ "Apache-2.0" ]
851
2018-05-16T19:11:49.000Z
2022-03-31T23:02:50.000Z
rosbag2_py/src/rosbag2_py/_reindexer.cpp
MourtazaKASSAMALY/rosbag2
d195b67186f2e63eeab6b3589250bf19c3ef95b7
[ "Apache-2.0" ]
147
2018-04-03T17:05:06.000Z
2022-03-24T06:05:42.000Z
// Copyright 2021 DCS Corporation, All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
27.278689
78
0.733173
MourtazaKASSAMALY
9787a33301218116d1db62158535bc14ebd59d14
4,178
cc
C++
tests/unit/active/test_async_op.cc
rbuch/vt
74c2e0cae3201dfbcbfda7644c354703ddaed6bb
[ "BSD-3-Clause" ]
26
2019-11-26T08:36:15.000Z
2022-02-15T17:13:21.000Z
tests/unit/active/test_async_op.cc
rbuch/vt
74c2e0cae3201dfbcbfda7644c354703ddaed6bb
[ "BSD-3-Clause" ]
1,215
2019-09-09T14:31:33.000Z
2022-03-30T20:20:14.000Z
tests/unit/active/test_async_op.cc
rbuch/vt
74c2e0cae3201dfbcbfda7644c354703ddaed6bb
[ "BSD-3-Clause" ]
12
2019-09-08T00:03:05.000Z
2022-02-23T21:28:35.000Z
/* //@HEADER // ***************************************************************************** // // test_async_op.cc // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Co...
34.245902
81
0.675443
rbuch
9790391d9726de160df3cdf972093617182714b0
3,405
cpp
C++
NDD_VR_Viewer/src/application.cpp
Ezrit/VR_TCMPODS
bc114a4c98bf7af6a348825671fcea49004e22b5
[ "Unlicense" ]
null
null
null
NDD_VR_Viewer/src/application.cpp
Ezrit/VR_TCMPODS
bc114a4c98bf7af6a348825671fcea49004e22b5
[ "Unlicense" ]
null
null
null
NDD_VR_Viewer/src/application.cpp
Ezrit/VR_TCMPODS
bc114a4c98bf7af6a348825671fcea49004e22b5
[ "Unlicense" ]
null
null
null
#include "application.hpp" #include <iostream> namespace msi_vr { Application::Application(GLFWwindow *window) : window(window) { initInputManager(window); } Application::~Application() { } void Application::run() { std::chrono::high_resolution_clock::time_poi...
32.122642
131
0.601762
Ezrit
979bffedd639c532469e3d2a17c9be71dbd3a679
2,727
cpp
C++
src/editorLib/Render/AbstractLightRenderObserver.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/editorLib/Render/AbstractLightRenderObserver.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/editorLib/Render/AbstractLightRenderObserver.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
#include <stdexcept> #include <mtt/clPipeline/MeshTechniques/InstrumentalCompositeTechnique.h> #include <mtt/clPipeline/constants.h> #include <mtt/editorLib/Render/AbstractLightRenderObserver.h> #include <mtt/editorLib/Objects/LightObject.h> #include <mtt/editorLib/EditorApplication.h> #include <mtt/render/Mesh/UidMes...
29.010638
98
0.678768
AluminiumRat
97a41693077f05f618eee91147e2c1cb301d881d
1,016
cpp
C++
termite/termite-#0060-kitt-green/main.cpp
OscarKro/hwlib-examples
112bc551f4142f841703dc348f528eda5f41ac30
[ "BSL-1.0" ]
null
null
null
termite/termite-#0060-kitt-green/main.cpp
OscarKro/hwlib-examples
112bc551f4142f841703dc348f528eda5f41ac30
[ "BSL-1.0" ]
1
2021-01-05T17:05:34.000Z
2021-01-05T20:18:13.000Z
termite/termite-#0060-kitt-green/main.cpp
OscarKro/hwlib-examples
112bc551f4142f841703dc348f528eda5f41ac30
[ "BSL-1.0" ]
3
2021-01-05T14:39:39.000Z
2021-09-15T05:18:46.000Z
// ========================================================================== // // blink the LED on a blue-pill board // // (c) Wouter van Ooijen (wouter@voti.nl) 2017 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_...
37.62963
77
0.534449
OscarKro
97a525f7c9091f17e708a69ca4f1fe300d8aa254
647
cpp
C++
hackerrank/interview-preparation-kit/string-manipulation/alternating-characters/main.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
hackerrank/interview-preparation-kit/string-manipulation/alternating-characters/main.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
hackerrank/interview-preparation-kit/string-manipulation/alternating-characters/main.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
#include <bits/stdc++.h> using namespace std; // Complete the alternatingCharacters function below. int alternatingCharacters(string s) { int ans=0; char c=s[0]; for(int i=1;i<s.size();i++){ char cc=s[i]; if(c==cc) ans++; else c=cc; } return ans; } int main() { ofstrea...
17.026316
56
0.540958
wingkwong
97a8fa014a4ece73019398eb4934399baeb767bf
12,209
cpp
C++
Life/boundaries.cpp
TheGitPuller/ParallelGameOfLife
a399704cf37efe69f37125b9cc6ef532c912cfc9
[ "MIT" ]
null
null
null
Life/boundaries.cpp
TheGitPuller/ParallelGameOfLife
a399704cf37efe69f37125b9cc6ef532c912cfc9
[ "MIT" ]
null
null
null
Life/boundaries.cpp
TheGitPuller/ParallelGameOfLife
a399704cf37efe69f37125b9cc6ef532c912cfc9
[ "MIT" ]
null
null
null
#include "boundaries.h" using namespace std; // Constructor boundary_communication::boundary_communication(bool**& grid, int imax_local, int jmax_local) : grid(grid), imax(imax_local), jmax(jmax_local) {} void boundary_communication::make_types() { // Declare storage vectors vector<int> block_length; ...
37.566154
142
0.593333
TheGitPuller
97af9a231d739e46cac30c34f7f3ac8e3805a74a
2,601
cpp
C++
src/libutility/utility.cpp
publiqnet/belt.pp
837112652885284cd0f8245b1c9cf31dcfad17e1
[ "MIT" ]
4
2017-11-24T09:47:18.000Z
2019-02-18T14:43:05.000Z
src/libutility/utility.cpp
publiqnet/belt.pp
837112652885284cd0f8245b1c9cf31dcfad17e1
[ "MIT" ]
1
2018-04-11T12:42:25.000Z
2018-04-11T12:42:25.000Z
src/libutility/utility.cpp
publiqnet/belt.pp
837112652885284cd0f8245b1c9cf31dcfad17e1
[ "MIT" ]
2
2019-01-10T14:11:28.000Z
2021-05-31T11:14:46.000Z
#include "utility.hpp" #include <random> #include <ctime> #include <cassert> #include <cstdio> #include <exception> #include <stdexcept> namespace { std::string format_tm(std::tm const& t) { char buffer[80]; if (0 == strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", &t)) { assert(false); throw std...
18.0625
63
0.600538
publiqnet
97b433e511b54b9483cb21af4f34833a5dcb7ab2
2,271
cpp
C++
lib/rdf/test/print_node_01_run.cpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
10
2017-12-21T05:20:40.000Z
2021-09-18T05:14:01.000Z
lib/rdf/test/print_node_01_run.cpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
2
2017-12-21T07:31:54.000Z
2021-06-23T08:52:35.000Z
lib/rdf/test/print_node_01_run.cpp
GreyMerlin/owl_cpp
ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6
[ "BSL-1.0" ]
7
2016-02-17T13:20:31.000Z
2021-11-08T09:30:43.000Z
/** @file "/owlcpp/lib/rdf/test/print_node_01_run.cpp" part of owlcpp project. @n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt. @n Copyright Mikhail K Levin 2012 *******************************************************************************/ #define BOOST_TEST_MODULE print_node_01_...
32.913043
85
0.653897
GreyMerlin
b638f7c03b0e5f8d8f751259faaf90e4741372d0
7,453
hpp
C++
include/termox/painter/dynamic_colors.hpp
skvl/TermOx
35761f9ba0e300b7d8edd4e2a0c7dd33ef8fb934
[ "MIT" ]
null
null
null
include/termox/painter/dynamic_colors.hpp
skvl/TermOx
35761f9ba0e300b7d8edd4e2a0c7dd33ef8fb934
[ "MIT" ]
null
null
null
include/termox/painter/dynamic_colors.hpp
skvl/TermOx
35761f9ba0e300b7d8edd4e2a0c7dd33ef8fb934
[ "MIT" ]
1
2021-08-06T10:17:28.000Z
2021-08-06T10:17:28.000Z
#ifndef TERMOX_PAINTER_DYNAMIC_COLORS_HPP #define TERMOX_PAINTER_DYNAMIC_COLORS_HPP #include <algorithm> #include <chrono> #include <cmath> #include <cstdint> #include <random> #include <termox/painter/color.hpp> #include <termox/system/system.hpp> namespace ox::dynamic { /// Dynamic_color type that cycles through e...
28.555556
80
0.636791
skvl
b6399f12e2a03b94bd2b80a489a9795b02a5b90b
170
cpp
C++
Libraries/RobsJuceModules/rosic/filters/rosic_EllipticQuarterBandFilter.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Libraries/RobsJuceModules/rosic/filters/rosic_EllipticQuarterBandFilter.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Libraries/RobsJuceModules/rosic/filters/rosic_EllipticQuarterBandFilter.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
rsEllipticQuarterBandFilter::rsEllipticQuarterBandFilter() { reset(); } void rsEllipticQuarterBandFilter::reset() { for(int i = 0; i < 12; i++) w[i] = 0.0; }
14.166667
58
0.652941
RobinSchmidt
b6445ae5c5cea5d57686165e1b34aa076b15dbea
11,584
cpp
C++
Source/API/D3D12/FramebufferD3D12.cpp
KawBuma/Buma3D
73b1c7a99c979492f072d4ead89f2d357d5e048a
[ "MIT" ]
5
2020-11-25T05:05:13.000Z
2022-02-09T09:35:21.000Z
Source/API/D3D12/FramebufferD3D12.cpp
KawBuma/Buma3D
73b1c7a99c979492f072d4ead89f2d357d5e048a
[ "MIT" ]
5
2020-11-11T09:52:59.000Z
2021-12-15T13:27:37.000Z
Source/API/D3D12/FramebufferD3D12.cpp
KawBuma/Buma3D
73b1c7a99c979492f072d4ead89f2d357d5e048a
[ "MIT" ]
null
null
null
#include "Buma3DPCH.h" #include "FramebufferD3D12.h" namespace buma3d { B3D_APIENTRY FramebufferD3D12::FramebufferD3D12() : ref_count { 1 } , name {} , device {} , desc {} , desc_data {...
32.448179
171
0.686205
KawBuma
b644c6a5682030bbf31fd1744dff9cc03dcc2692
264
cpp
C++
src/GLEW/Init.cpp
mattfbacon/modern-opengl
81da9afde947b5268b94a60f2975758cfc14bc20
[ "WTFPL" ]
null
null
null
src/GLEW/Init.cpp
mattfbacon/modern-opengl
81da9afde947b5268b94a60f2975758cfc14bc20
[ "WTFPL" ]
null
null
null
src/GLEW/Init.cpp
mattfbacon/modern-opengl
81da9afde947b5268b94a60f2975758cfc14bc20
[ "WTFPL" ]
null
null
null
#include <GL/glew.h> #include "GLEW/Error.hpp" #include "GLEW/Init.hpp" namespace GLEW { Init::Init() { glewExperimental = true; if (GLenum const err = glewInit(); err != GLEW_OK) { throw GLEW::Error{ err }; } } Init::~Init() { // } } // namespace GLEW
13.894737
53
0.621212
mattfbacon
b64cf8a6828c258bb24d5303c9c9c21846609748
2,911
cpp
C++
src/flame/process.cpp
ymwang/php-flame
5e0141f0d54fcb30b6e6c96a507141d714e7e6bc
[ "MIT" ]
null
null
null
src/flame/process.cpp
ymwang/php-flame
5e0141f0d54fcb30b6e6c96a507141d714e7e6bc
[ "MIT" ]
null
null
null
src/flame/process.cpp
ymwang/php-flame
5e0141f0d54fcb30b6e6c96a507141d714e7e6bc
[ "MIT" ]
null
null
null
#include "process.h" #include "worker.h" #include "coroutine.h" namespace flame { std::deque<php::callable> quit_cb; process_type_t process_type; std::string process_name; uint8_t process_count; process* process_self; uv_loop_t* loop; process* process::prepare() { // 确认当前是父进程还是...
28.262136
84
0.643765
ymwang
b6504cb2aa5b039f55e1244a60e971f72b2535d3
4,076
cpp
C++
instancedExample_startingPoint/src/ofApp.cpp
res15-opengl/res15-opengl
759350479209b1bffa0685084c1510b85dfddbee
[ "MIT" ]
70
2015-04-11T11:02:37.000Z
2021-02-03T09:11:37.000Z
instancedExample_startingPoint/src/ofApp.cpp
res15-opengl/res15-opengl
759350479209b1bffa0685084c1510b85dfddbee
[ "MIT" ]
1
2015-04-20T17:09:58.000Z
2015-04-20T17:09:58.000Z
instancedExample_startingPoint/src/ofApp.cpp
res15-opengl/res15-opengl
759350479209b1bffa0685084c1510b85dfddbee
[ "MIT" ]
9
2015-04-14T12:52:53.000Z
2019-10-12T16:52:00.000Z
#include "ofApp.h" // _____ ___ // / / / / instancedExample // / __/ * / /__ (c) ponies & light, 2015. All rights reserved. // /__/ /_____/ poniesandlight.co.uk // // Created by @tgfrerer on 10/03/2014. // // Permission is hereby granted, free of charge, to any person obtaining a co...
30.878788
94
0.569676
res15-opengl
b65946389552ab58ef44b0282dc7f12879721043
8,403
cpp
C++
kits/cpp/simple/GameAlgo.cpp
shahed95/Lux-solution
57c2fd0c0cc3b13bd167cefb0c947915faf64da0
[ "Apache-2.0" ]
null
null
null
kits/cpp/simple/GameAlgo.cpp
shahed95/Lux-solution
57c2fd0c0cc3b13bd167cefb0c947915faf64da0
[ "Apache-2.0" ]
null
null
null
kits/cpp/simple/GameAlgo.cpp
shahed95/Lux-solution
57c2fd0c0cc3b13bd167cefb0c947915faf64da0
[ "Apache-2.0" ]
null
null
null
vector<vector<char>> GameAlgo::createSimpleMap(GameMap &gameMap, Player &player, Player &opponent) { vector<vector<char>> simpleMap; for (int i = 0; i < gameMap.height; i++) { vector<char> temp(gameMap.width, '.'); simpleMap.push_back(temp); } for (int y = 0; y < gameMap.height; y++...
28.01
149
0.521956
shahed95
b659f8e3c3ac9d8b477732170e52c996b0813ca8
17,919
cpp
C++
coreseek-3.2.14/csft-3.2.14/src/py_helper.cpp
zbooa/sphinx-php7-ext
89c6900ebdbd1c73469d428b25ad360c3b57f29c
[ "PHP-3.01" ]
1
2020-08-17T09:04:53.000Z
2020-08-17T09:04:53.000Z
coreseek-3.2.14/csft-3.2.14/src/py_helper.cpp
zbooa/sphinx-php7-ext
89c6900ebdbd1c73469d428b25ad360c3b57f29c
[ "PHP-3.01" ]
null
null
null
coreseek-3.2.14/csft-3.2.14/src/py_helper.cpp
zbooa/sphinx-php7-ext
89c6900ebdbd1c73469d428b25ad360c3b57f29c
[ "PHP-3.01" ]
2
2020-08-17T09:04:56.000Z
2022-01-14T06:37:54.000Z
#ifdef _WIN32 #pragma warning(disable:4996) #endif #include "sphinx.h" #include "sphinxutils.h" #include "sphinx_internal.h" //#include "sphinxsearch.h" #include "py_layer.h" #include "sphinxquery.h" #include "py_helper.h" #include "py_source.h" #if USE_PYTHON #define RET_PYNONE { Py_INCREF(Py_None); return Py...
24.052349
113
0.67967
zbooa
b65a57887584dd455866f07ebc39bdf20c55b4cc
599
cpp
C++
vox.render/timer.cpp
SummerTree/DigitalVox4
2eb718abcaccc4cd1dde3b0f28090c197c1905d4
[ "MIT" ]
8
2022-02-15T12:54:57.000Z
2022-03-30T16:35:58.000Z
vox.render/timer.cpp
yangfengzzz/DigitalArche
da6770edd4556a920b3f7298f38176107caf7e3a
[ "MIT" ]
null
null
null
vox.render/timer.cpp
yangfengzzz/DigitalArche
da6770edd4556a920b3f7298f38176107caf7e3a
[ "MIT" ]
1
2022-01-20T05:53:59.000Z
2022-01-20T05:53:59.000Z
// Copyright (c) 2022 Feng Yang // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #include "timer.h" namespace vox { Timer::Timer() : _startTime{Clock::now()}, _previousTick{Clock::...
18.71875
73
0.63606
SummerTree
b65ee2fc45fda2d1db13bb1fc2cbedc0c9988464
2,407
cpp
C++
example.cpp
jgressmann/pokemon
36ecc55d7cb0838155fb112c1d74cdad286b67c4
[ "MIT" ]
9
2015-09-23T13:28:46.000Z
2018-08-11T03:09:04.000Z
example.cpp
jgressmann/pokemon
36ecc55d7cb0838155fb112c1d74cdad286b67c4
[ "MIT" ]
3
2015-09-26T01:05:12.000Z
2016-01-13T15:05:10.000Z
example.cpp
jgressmann/pokemon
36ecc55d7cb0838155fb112c1d74cdad286b67c4
[ "MIT" ]
5
2015-09-28T03:09:24.000Z
2021-05-21T18:09:16.000Z
#include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> extern "C" { #include <lua.h> #include <lualib.h> #include <lauxlib.h> } #if defined(_WIN32) || defined(_WIN64) # include <windows.h> # define sleep(x) Sleep((DWORD)(x*1000)) #else # include <unistd.h> #endif #include "pokemon.h" us...
20.930435
104
0.616951
jgressmann