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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2e4d3c4a223f1b813a2feed1faf79388e1d1ad7 | 539 | hpp | C++ | libs/renderer/include/sge/renderer/vf/part_from_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/vf/part_from_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/vf/part_from_list.hpp | 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)
#ifndef SGE_RENDERER_VF_PART_FROM_LIST_HPP_INCLUDED
#define SGE_RENDERER_VF_PART_FROM_LIST_HPP_INCL... | 25.666667 | 75 | 0.74026 | cpreh |
e2e7a440c89a7f7784d300a9b4b0cab46cc33f6d | 11,667 | cpp | C++ | CPPCodeAnalyzer/CPPParser/parser.cpp | amin-amani/CPPCodeAnalyzer | 0a9eedc56dd87efb7460ca77a82fdc7732306e0f | [
"MIT"
] | null | null | null | CPPCodeAnalyzer/CPPParser/parser.cpp | amin-amani/CPPCodeAnalyzer | 0a9eedc56dd87efb7460ca77a82fdc7732306e0f | [
"MIT"
] | null | null | null | CPPCodeAnalyzer/CPPParser/parser.cpp | amin-amani/CPPCodeAnalyzer | 0a9eedc56dd87efb7460ca77a82fdc7732306e0f | [
"MIT"
] | null | null | null | #include "parser.h"
//===============================================================================
Parser::Parser()
{
}
//===============================================================================
Parser::Parser(QString fileName)
{
_fileName=fileName;
QFile file;
file.setFileName(_fileName);
i... | 24.613924 | 100 | 0.521471 | amin-amani |
e2e9284a3fd206900854c579e568de64f17815f4 | 3,932 | cpp | C++ | judges/shuffled/main.cpp | rqu/worker | 483a474e5c2098588958e7c7e48eff4f25516aca | [
"MIT"
] | 6 | 2017-09-28T09:30:13.000Z | 2020-11-05T17:40:27.000Z | judges/shuffled/main.cpp | rqu/worker | 483a474e5c2098588958e7c7e48eff4f25516aca | [
"MIT"
] | 9 | 2017-09-14T20:16:32.000Z | 2021-04-15T22:19:25.000Z | judges/shuffled/main.cpp | rqu/worker | 483a474e5c2098588958e7c7e48eff4f25516aca | [
"MIT"
] | 2 | 2018-03-30T08:51:22.000Z | 2020-12-29T06:56:44.000Z | /*
* Judge for shuffled files.
* (C) 2007 Martin Krulis <krulis@ksvi.mff.cuni.cz>
* (consulted with Martin Mares <mj@ucw.cz>)
* (C) 2016 ReCodEx Team <github.com/ReCodEx>
*
* This judge compares two text files and returns 0 if they matches (and 1 otherwise).
* Two files are compared with no regards for wh... | 23.97561 | 104 | 0.642421 | rqu |
e2e98f8fcc220abdabb4aebcef64a8f281d47cf5 | 402 | cpp | C++ | CtCI-6th-Edition-cpp/01_Arrays_And_Strings/01_Is_Unique/isUnique.test.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | CtCI-6th-Edition-cpp/01_Arrays_And_Strings/01_Is_Unique/isUnique.test.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | CtCI-6th-Edition-cpp/01_Arrays_And_Strings/01_Is_Unique/isUnique.test.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "isUnique.hpp"
TEST_CASE("true if a string is empty", "[isUnique]") {
REQUIRE(isUnique("") == true);
}
TEST_CASE("true if a string has all unique characters", "[isUnique]") {
REQUIRE(isUnique("abcde") == true);
}
TEST_CASE("false if a string has duplicate characters", "[isUnique]") ... | 25.125 | 71 | 0.666667 | longztian |
e2ee7e95f27c37272b50182c43e49a84d1abdfb3 | 1,404 | cpp | C++ | Codeforces/kString.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | Codeforces/kString.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | Codeforces/kString.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <bitset>
#include <algorithm>
#include <utility>
#include <functional>
#include <valarray>
#include <math.h>
#include <time.h>
#include <stdl... | 20.955224 | 50 | 0.465812 | aajjbb |
e2ef02f25bbfd49d8769438446e5e088dd404f12 | 164 | hpp | C++ | editor/asset/archiver/asset_archiver.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | editor/asset/archiver/asset_archiver.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | editor/asset/archiver/asset_archiver.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "chokoeditor.hpp"
CE_BEGIN_ED_NAMESPACE
class EAssetArchiver {
public:
static void Exec(const std::string& tar);
};
CE_END_ED_NAMESPACE | 14.909091 | 45 | 0.77439 | chokomancarr |
e2f02959a0ccf353444404bcefae8fadc59091c5 | 23,322 | cc | C++ | src/IntRank2/CoordFrame.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 4 | 2021-03-15T10:02:13.000Z | 2022-01-16T11:06:28.000Z | src/IntRank2/CoordFrame.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 1 | 2022-01-27T15:35:03.000Z | 2022-01-27T15:35:03.000Z | src/IntRank2/CoordFrame.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | null | null | null | /* CoordFrame.cc ************************************************-*-c++-*-
** **
** G A M M A **
** **
** Coordinate F... | 45.373541 | 99 | 0.519467 | pygamma-mrs |
e2f0a3c88330530a7e7280b294c5d3e278725a8d | 9,235 | cpp | C++ | src/gfx/internal/ApplicationManager.cpp | pcbaecker/ananasgfx | 0637554bf82b990713314a24e4a6ead299be949a | [
"MIT"
] | 1 | 2019-01-28T13:48:17.000Z | 2019-01-28T13:48:17.000Z | src/gfx/internal/ApplicationManager.cpp | pcbaecker/ananasgfx | 0637554bf82b990713314a24e4a6ead299be949a | [
"MIT"
] | 11 | 2019-01-28T13:59:36.000Z | 2019-02-09T14:59:23.000Z | src/gfx/internal/ApplicationManager.cpp | pcbaecker/ananasgfx | 0637554bf82b990713314a24e4a6ead299be949a | [
"MIT"
] | null | null | null | #include <ananasgfx/gfx/internal/ApplicationManager.hpp>
#include <ananasgfx/gfx/Application.hpp>
#include <ananasgfx/test/ApplicationTest.hpp>
#include <ee/Log.hpp>
#include <algorithm>
namespace gfx::_internal {
int ApplicationManager::ReturnCode = EXIT_FAILURE;
void ApplicationManager::removeUnlisted(
... | 42.953488 | 123 | 0.56405 | pcbaecker |
e2f0ab25abaa7252309d90d65cb1bf8f23e5c4ad | 1,214 | hpp | C++ | Engine/src/Platform/OpenGL/openGLRendererAPI.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/OpenGL/openGLRendererAPI.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/OpenGL/openGLRendererAPI.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Engine/Rendering/rendererAPI.hpp"
namespace Engine
{
class OpenGLRendererAPI : public RendererAPI
{
public:
virtual void init() const override;
virtual void clear() const override;
virtual void clearDepth() const override;
virtual void setClearColor(const glm::vec4& color) const overr... | 48.56 | 184 | 0.797364 | Niels04 |
e2fac657453f80152cb697629eb5eaf41c9c9dac | 11,608 | cpp | C++ | src/pumiMBBL_meshops.cpp | SCOREC/pumiMBBL | 7f6e5fdb721f948d7929837dadfa841b42e547a6 | [
"BSD-3-Clause"
] | null | null | null | src/pumiMBBL_meshops.cpp | SCOREC/pumiMBBL | 7f6e5fdb721f948d7929837dadfa841b42e547a6 | [
"BSD-3-Clause"
] | 6 | 2020-06-19T19:44:27.000Z | 2022-03-30T23:09:46.000Z | src/pumiMBBL_meshops.cpp | SCOREC/pumiMBBL | 7f6e5fdb721f948d7929837dadfa841b42e547a6 | [
"BSD-3-Clause"
] | 2 | 2020-03-06T20:00:00.000Z | 2021-03-22T14:44:29.000Z | #include "pumiMBBL_meshops.hpp"
namespace pumi {
Vector3 get_rand_point_in_mesh_host(MBBL pumi_obj){
if (pumi_obj.mesh.ndim == 1){
double rand_x1 = (double) rand()/RAND_MAX;
double x1_min = get_global_x1_min_coord(pumi_obj);
double x1_max = get_global_x1_max_coord(pumi_obj);
double... | 40.587413 | 160 | 0.668591 | SCOREC |
c3ad7425940b56501f0e45980977ec323a15b6b7 | 193 | cpp | C++ | tute01.cpp | SLIIT-FacultyOfComputing/tutorial-02b-IT21164330 | d4ea011a8a13fedc19f3889620fbd25d6de00bd2 | [
"MIT"
] | null | null | null | tute01.cpp | SLIIT-FacultyOfComputing/tutorial-02b-IT21164330 | d4ea011a8a13fedc19f3889620fbd25d6de00bd2 | [
"MIT"
] | null | null | null | tute01.cpp | SLIIT-FacultyOfComputing/tutorial-02b-IT21164330 | d4ea011a8a13fedc19f3889620fbd25d6de00bd2 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
float cm, inches;
cout << "Enter a length in cm : ";
cin >> cm;
inches = cm / 2.54;
cout <<"Length in inches is %f \n" <<inches;
} | 19.3 | 46 | 0.601036 | SLIIT-FacultyOfComputing |
c3aec22c81cd06ca508f8b7bfad1cff399058cf9 | 5,780 | hpp | C++ | Libraries/Macaronlib/include/Macaronlib/List.hpp | vpachkov/MacaronOS | e2572761f0d73a435d5660eb88d4dc96c944a349 | [
"MIT"
] | 21 | 2021-08-22T19:06:54.000Z | 2022-03-31T12:44:30.000Z | Libraries/Macaronlib/include/Macaronlib/List.hpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | 1 | 2021-09-01T22:55:59.000Z | 2021-09-08T20:52:09.000Z | Libraries/Macaronlib/include/Macaronlib/List.hpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | null | null | null | #pragma once
#include "Common.hpp"
#include "Runtime.hpp"
template <typename T>
class ListNode {
public:
ListNode() = default;
~ListNode() = default;
explicit ListNode(const T& val)
: m_val(val)
{
}
explicit ListNode(T&& val)
: m_val(move(val))
{
}
ListNode<T>* ne... | 24.1841 | 89 | 0.606055 | vpachkov |
c3b2f74f2e541b2ecf585752c8245c72eaf1f1f7 | 26,719 | hpp | C++ | zed_wrapper/src/component/include/zed_component.hpp | mehmetkillioglu/zed-ros2-wrapper | b8328f5225e024907366b1cf550bd4655a27e3a1 | [
"MIT"
] | null | null | null | zed_wrapper/src/component/include/zed_component.hpp | mehmetkillioglu/zed-ros2-wrapper | b8328f5225e024907366b1cf550bd4655a27e3a1 | [
"MIT"
] | null | null | null | zed_wrapper/src/component/include/zed_component.hpp | mehmetkillioglu/zed-ros2-wrapper | b8328f5225e024907366b1cf550bd4655a27e3a1 | [
"MIT"
] | null | null | null | #ifndef ZED_COMPONENT_HPP
#define ZED_COMPONENT_HPP
// /////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2019, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, I... | 42.956592 | 128 | 0.665444 | mehmetkillioglu |
c3b7d4df00cf29cbd4e89df636c19f359a9ae876 | 7,348 | cpp | C++ | Projects/WebAthl/DBForeignKey.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | null | null | null | Projects/WebAthl/DBForeignKey.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | null | null | null | Projects/WebAthl/DBForeignKey.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | 1 | 2021-07-05T10:10:21.000Z | 2021-07-05T10:10:21.000Z | // CDBForeignKey.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "BitMaskEnum.h"
#include "DBForeignKey.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//... | 23.253165 | 77 | 0.693114 | darianbridge |
c3befa0aa7796910d453dc9dcb88279530bb0caa | 175 | cpp | C++ | Python/Source/Constant.cpp | kranar/rover | a4a824321859e34478fec0924c0b76144b3fc20e | [
"Apache-2.0"
] | null | null | null | Python/Source/Constant.cpp | kranar/rover | a4a824321859e34478fec0924c0b76144b3fc20e | [
"Apache-2.0"
] | 30 | 2019-02-05T23:18:13.000Z | 2019-07-05T14:19:04.000Z | Python/Source/Constant.cpp | kranar/rover | a4a824321859e34478fec0924c0b76144b3fc20e | [
"Apache-2.0"
] | 1 | 2020-06-01T06:32:05.000Z | 2020-06-01T06:32:05.000Z | #include "Rover/Python/Constant.hpp"
using namespace pybind11;
using namespace Rover;
void Rover::export_constant(module& module) {
export_constant<object>(module, "");
}
| 19.444444 | 45 | 0.76 | kranar |
c3bf059b87f6834e127769027b9e3408b884a478 | 1,009 | cpp | C++ | PIN64/pin64/block.cpp | MooglyGuy/pin64 | aa411cbabbc400f752411d2c0a0711209d7f4826 | [
"BSD-3-Clause"
] | 1 | 2019-05-22T23:22:14.000Z | 2019-05-22T23:22:14.000Z | PIN64/pin64/block.cpp | MooglyGuy/pin64 | aa411cbabbc400f752411d2c0a0711209d7f4826 | [
"BSD-3-Clause"
] | 1 | 2019-07-04T10:12:06.000Z | 2019-07-04T10:12:06.000Z | PIN64/pin64/block.cpp | MooglyGuy/pin64 | aa411cbabbc400f752411d2c0a0711209d7f4826 | [
"BSD-3-Clause"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Ryan Holtz
#include "block.h"
#ifdef PIN64_STANDALONE_BUILD
#include <CRC.h>
#endif
const uint8_t pin64_block_t::BLOCK_ID[4] = { 'P', '6', '4', 'B' };
pin64_block_t::pin64_block_t(uint8_t* data, size_t size)
: pin64_block_t() {
m_data.put(data, size);
finalize();
}
p... | 21.468085 | 91 | 0.676908 | MooglyGuy |
c3bf2d234c0a0835ed4f306331c815e8d962cbbb | 29,235 | cpp | C++ | lib/CodeGen/LiveInterval.cpp | nettrino/IntFlow | 0400aef5da2c154268d8b020e393c950435395b3 | [
"Unlicense"
] | 16 | 2015-09-08T08:49:11.000Z | 2019-07-20T14:46:20.000Z | src/llvm/lib/CodeGen/LiveInterval.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2019-02-10T08:27:48.000Z | 2019-02-10T08:27:48.000Z | src/llvm/lib/CodeGen/LiveInterval.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 7 | 2016-05-26T17:31:46.000Z | 2020-11-04T06:39:23.000Z | //===-- LiveInterval.cpp - Live Interval Representation -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 33.373288 | 83 | 0.613785 | nettrino |
c3bfc00158c4140b4b2dd560d031f8b650330300 | 331 | cpp | C++ | Pbinfo/SumSec1.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/SumSec1.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/SumSec1.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, a[1005], iPrim=0, iSecund=0, s=0;
cin>>n;
for(int i=1; i<=n; i++){
cin>>a[i];
if(iPrim==0 && a[i]%2==1) iPrim=i;
if(a[i]%2==1) iSecund=i;
}
for(int i=iPrim; i<=iSecund; i++)
s+=a[i];
cout<<s;
... | 14.391304 | 44 | 0.459215 | Al3x76 |
c3c0abf3818a9b0444888a42727accfa9d1ddffa | 15,981 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2D/collectible_item_05.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2D/collectible_item_05.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2D/collectible_item_05.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _collectible_item_05[] LOCATION_EXTFLASH_ATTRIBUTE = { // 28x28 ARGB8888 pixels.
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x... | 202.291139 | 320 | 0.796446 | ramkumarkoppu |
c3c0e69cbc13cf7d32a8d22b342f4dbb7c871d27 | 718 | cpp | C++ | src/system/libroot/posix/pthread/pthread_cleanup.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/system/libroot/posix/pthread/pthread_cleanup.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/system/libroot/posix/pthread/pthread_cleanup.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "pthread_private.h"
void
__pthread_cleanup_push_handler(__pthread_cleanup_handler* handler)
{
pthread_thread* thread = pthread_self();
if (thread == NULL)
return;
ha... | 19.405405 | 77 | 0.756267 | Kirishikesan |
c3c4f1e40a32d66b85b378b76371467f2d3f1d7c | 4,401 | cpp | C++ | ctp2_code/gs/gameobj/WonderTracker.cpp | xiaolanchong/call_to_power2 | 39f19d18b363cefb151bbbf050c6b672ee544117 | [
"DOC"
] | null | null | null | ctp2_code/gs/gameobj/WonderTracker.cpp | xiaolanchong/call_to_power2 | 39f19d18b363cefb151bbbf050c6b672ee544117 | [
"DOC"
] | null | null | null | ctp2_code/gs/gameobj/WonderTracker.cpp | xiaolanchong/call_to_power2 | 39f19d18b363cefb151bbbf050c6b672ee544117 | [
"DOC"
] | null | null | null | //----------------------------------------------------------------------------
//
// Project : Call To Power 2
// File type : C++ source
// Description : Wonder Tracker
// Id : $Id$
//
//----------------------------------------------------------------------------
//
// Disclaimer
//
// THIS FILE IS N... | 23.534759 | 112 | 0.61077 | xiaolanchong |
c3c96dbc7122234e173dc5de3f37248c12aa354a | 6,167 | cpp | C++ | lab4/Lists/lists.cpp | polinaKP/semester_2 | 11713c3f09bc9756f254e5f56b679ae06d2da657 | [
"Unlicense"
] | null | null | null | lab4/Lists/lists.cpp | polinaKP/semester_2 | 11713c3f09bc9756f254e5f56b679ae06d2da657 | [
"Unlicense"
] | null | null | null | lab4/Lists/lists.cpp | polinaKP/semester_2 | 11713c3f09bc9756f254e5f56b679ae06d2da657 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <list>
typedef struct Node {
int value;
struct Node *next;
} Node;
void push_back(Node ** head, int value)
{
if (*head == NULL) {
*head = new Node;
(*head)->value = value;
(*head)->next = NULL;
return;
}
Node * p_node = *head;
while... | 23.996109 | 60 | 0.483055 | polinaKP |
c3ca8681f5346d5b6daf33b53090c7c050a8ce2f | 959 | cc | C++ | c++/primer_plus_s_pratt/ch_13/pe_4/src/vintageport.cc | dinimar/Projects | 7606c23c4e55d6f0c03692b4a1d2bb5b42f10992 | [
"MIT"
] | null | null | null | c++/primer_plus_s_pratt/ch_13/pe_4/src/vintageport.cc | dinimar/Projects | 7606c23c4e55d6f0c03692b4a1d2bb5b42f10992 | [
"MIT"
] | null | null | null | c++/primer_plus_s_pratt/ch_13/pe_4/src/vintageport.cc | dinimar/Projects | 7606c23c4e55d6f0c03692b4a1d2bb5b42f10992 | [
"MIT"
] | null | null | null | #include "vintageport.h"
#include <cstring>
VintagePort::VintagePort()
{
nickname = new char[5];
std::strcpy(nickname, "Nick");
year = 0;
}
VintagePort::VintagePort(const char *br, int b, const char *nn, int y): Port(br, "none", b), year(y)
{
nickname = new char[std::strlen(nn)+1];
std::strcpy(ni... | 21.311111 | 100 | 0.603754 | dinimar |
c3cac169931db87a8c151b472be302f5371a0c6c | 1,529 | cpp | C++ | src/graphics/primitives/Animation.cpp | petuzk/Warcaby | 2102493199c7edf9ea752dfcb374435d5b9049fd | [
"MIT"
] | null | null | null | src/graphics/primitives/Animation.cpp | petuzk/Warcaby | 2102493199c7edf9ea752dfcb374435d5b9049fd | [
"MIT"
] | null | null | null | src/graphics/primitives/Animation.cpp | petuzk/Warcaby | 2102493199c7edf9ea752dfcb374435d5b9049fd | [
"MIT"
] | null | null | null | #include "inc/graphics/primitives/Animation.hpp"
#include "inc/graphics/primitives/Animator.hpp"
Animation::Animation(milliseconds duration, bool parallelToPrev, Animation::State state):
started(false), duration(duration), state(state), onEndCallback(nullptr)
{
Animator::getInstance()->addAnimation(this, parallelToP... | 21.535211 | 102 | 0.712884 | petuzk |
c3cb2b779a659459ce0016a678a25d145866e174 | 10,854 | cpp | C++ | Samples/Win7Samples/security/authorization/azman/azmigrate/AzHelper.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/security/authorization/azman/azmigrate/AzHelper.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/security/authorization/azman/azmigrate/AzHelper.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | /****************************************************************************
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
//... | 26.280872 | 105 | 0.615902 | windows-development |
c3ccec1090f2d963fbdff5ebf8e967ee3cbb4f90 | 3,651 | hpp | C++ | Axis.Core/application/parsing/preprocessing/InstructionFeeder.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Core/application/parsing/preprocessing/InstructionFeeder.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Core/application/parsing/preprocessing/InstructionFeeder.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include <boost/spirit/include/qi.hpp>
#include "services/io/StreamReader.hpp"
#include "AxisString.hpp"
#include "application/parsing/core/ParseContext.hpp"
namespace axis { namespace application { namespace parsing { namespace preprocessing {
/// <summary>
/// Reads data from an input stream and feeds ... | 34.121495 | 101 | 0.671597 | renato-yuzup |
c3d20c5dad55370960e33cd00d0a831c318b5bc2 | 1,320 | cpp | C++ | src/noncasual_lp.cpp | despargy/KukaImplementation-kinetic | 3a9ab106b117acfc6478fbf3e60e49b7e94b2722 | [
"MIT"
] | 1 | 2021-08-21T12:49:27.000Z | 2021-08-21T12:49:27.000Z | src/noncasual_lp.cpp | despargy/KukaImplementation-kinetic | 3a9ab106b117acfc6478fbf3e60e49b7e94b2722 | [
"MIT"
] | null | null | null | src/noncasual_lp.cpp | despargy/KukaImplementation-kinetic | 3a9ab106b117acfc6478fbf3e60e49b7e94b2722 | [
"MIT"
] | null | null | null | #define SUBBLOCK SIZE 22 // for method 0, and 12 for methods 1 and 2
void fir(double * const x, const int Nx,
const double * const h, const int Nh,
double* r)
{
/*
x:
Nx:
h:
Nh:
input data
length of input data
filter coefficients
length of the filter
21r:
the result after filtering
*/
}
int main()
{
const double h[] ... | 25.882353 | 68 | 0.618939 | despargy |
c3d348a86b997bde2cf055764577167b1949bb91 | 68,385 | cpp | C++ | Plugins/Engine/Renderer.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | 1 | 2019-04-22T00:10:49.000Z | 2019-04-22T00:10:49.000Z | Plugins/Engine/Renderer.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | null | null | null | Plugins/Engine/Renderer.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | 2 | 2017-10-16T15:40:55.000Z | 2019-04-22T00:10:50.000Z | #include "GEK/Math/SIMD.hpp"
#include "GEK/Shapes/Sphere.hpp"
#include "GEK/Utility/String.hpp"
#include "GEK/Utility/FileSystem.hpp"
#include "GEK/Utility/JSON.hpp"
#include "GEK/Utility/ContextUser.hpp"
#include "GEK/Utility/ThreadPool.hpp"
#include "GEK/Utility/Allocator.hpp"
#include "GEK/Utility/Profiler.hpp"
#in... | 41.749084 | 220 | 0.66149 | xycsoscyx |
c3d403da7710e8e52f5442b65589e3f2a77bd28f | 2,383 | cpp | C++ | codechef/LTIME50/diveset.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | codechef/LTIME50/diveset.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | codechef/LTIME50/diveset.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #if defined(LOCAL)
#define PROBLEM_NAME "diveset"
const double _max_double_error = 1e-9;
#include "testutils.h"
#define L(x...) debug(x)
#else
#define L(x, ...) (x)
#include <bits/stdc++.h>
#endif
using namespace std;
using vi = vector<int>; using vvi = vector<vi>;
using ii = pair<int,int>; using vii = vector<ii>;
usi... | 26.186813 | 73 | 0.547629 | metaflow |
c3d4a9bbcccfb662694cf0299e05f708deb9cb81 | 6,403 | hpp | C++ | include/UnityEngine/TestTools/Utils/CoroutineRunner.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TestTools/Utils/CoroutineRunner.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TestTools/Utils/CoroutineRunner.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/b... | 52.056911 | 500 | 0.738872 | darknight1050 |
c3d4cc6d1a8528e655414a9b33fdad2a58c7c1d2 | 13,673 | cc | C++ | extensions/src/gateway/gateStat.cc | A2-Collaboration/epics | b764a53bf449d9f6b54a1173c5e75a22cf95098c | [
"OML"
] | null | null | null | extensions/src/gateway/gateStat.cc | A2-Collaboration/epics | b764a53bf449d9f6b54a1173c5e75a22cf95098c | [
"OML"
] | null | null | null | extensions/src/gateway/gateStat.cc | A2-Collaboration/epics | b764a53bf449d9f6b54a1173c5e75a22cf95098c | [
"OML"
] | null | null | null | /*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 Berliner Speicherring-Gesellschaft fuer Synchrotron-
* Strahlung mbH (BESSY).
* Copyright (c) 2002 The Regents of the University ... | 25.994297 | 83 | 0.714181 | A2-Collaboration |
c3db8f36982be28143335f40bf0b7c380c6e696e | 9,365 | hpp | C++ | src/HALib/protocol/node/HANode.hpp | SBKila/homeassistantlibrary | 7adf8a950d4c428141ac92920bd2630341b3a261 | [
"MIT"
] | null | null | null | src/HALib/protocol/node/HANode.hpp | SBKila/homeassistantlibrary | 7adf8a950d4c428141ac92920bd2630341b3a261 | [
"MIT"
] | null | null | null | src/HALib/protocol/node/HANode.hpp | SBKila/homeassistantlibrary | 7adf8a950d4c428141ac92920bd2630341b3a261 | [
"MIT"
] | null | null | null | #pragma once
#include <Arduino.h>
#include "../../tools/LinkedList.hpp"
#include "../../tools/HAUtils.hpp"
#include "../HASubscribCmd.hpp"
#include "../HAMessage.hpp"
#include "../IHANode.h"
#include "../IHAComponent.h"
#include "../components/HAComponentType.hpp"
//#include "../components/HAComponentProperty.hpp"
//#... | 36.019231 | 139 | 0.564015 | SBKila |
c3dbb8fda99d81e17ea07d6124cfde316b16e0de | 634 | hpp | C++ | src/Chip8.hpp | azadad96/chip8_emulator | fed45202269fe7d41692f05144c8f04a5c97fb04 | [
"MIT"
] | null | null | null | src/Chip8.hpp | azadad96/chip8_emulator | fed45202269fe7d41692f05144c8f04a5c97fb04 | [
"MIT"
] | null | null | null | src/Chip8.hpp | azadad96/chip8_emulator | fed45202269fe7d41692f05144c8f04a5c97fb04 | [
"MIT"
] | null | null | null | #ifndef CHIP8
#define CHIP8
#include "Display.hpp"
#include <SDL2/SDL.h>
#include <string>
#include <cstdint>
#include <cstring>
#include <cstdlib>
#include <cstdio>
class Chip8 {
private:
uint8_t memory[4096];
uint8_t V[16];
uint16_t I;
uint16_t pc;
uint16_t stack[16];
int stackpointer;
... | 15.095238 | 40 | 0.635647 | azadad96 |
c3df0787bc58bc9f45a18e92b159deb8c9721c1d | 23,425 | hpp | C++ | stapl_release/stapl/skeletons/functional/scan.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/skeletons/functional/scan.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/skeletons/functional/scan.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 36.038462 | 80 | 0.563372 | parasol-ppl |
c3e91ab4e529a1e58692324039529c5a06bb1d31 | 1,543 | cpp | C++ | BankSeneca/Logger.cpp | jwoo1601/Bank-Seneca | 26af87490bce0b47c94134d789767b535e3a9ebb | [
"BSD-3-Clause"
] | null | null | null | BankSeneca/Logger.cpp | jwoo1601/Bank-Seneca | 26af87490bce0b47c94134d789767b535e3a9ebb | [
"BSD-3-Clause"
] | null | null | null | BankSeneca/Logger.cpp | jwoo1601/Bank-Seneca | 26af87490bce0b47c94134d789767b535e3a9ebb | [
"BSD-3-Clause"
] | null | null | null | #include "Logger.h"
#include <cstdio>
#pragma warning(disable: 4996)
#pragma warning(disable: 4474)
#pragma warning(disable: 4477)
static ELogDevice deviceType;
static FILE *fpOutputDevice;
static FILE *fpErrorDevice;
static const char *LogFileName = "output.log";
static const char *ErrorFileName = "error.log";
/... | 17.735632 | 82 | 0.706416 | jwoo1601 |
c3eaf7b377736236ded5380bb4cc9a390737f63b | 236 | hpp | C++ | ext/bindings/util.hpp | evizitei/pulsar-client-ruby | 173c8e2536743e1756d8e99d7a8e90d7fc688941 | [
"Apache-2.0"
] | 8 | 2019-10-25T07:55:44.000Z | 2021-02-18T19:58:16.000Z | ext/bindings/util.hpp | evizitei/pulsar-client-ruby | 173c8e2536743e1756d8e99d7a8e90d7fc688941 | [
"Apache-2.0"
] | 20 | 2019-10-03T17:57:36.000Z | 2022-02-12T15:29:08.000Z | ext/bindings/util.hpp | evizitei/pulsar-client-ruby | 173c8e2536743e1756d8e99d7a8e90d7fc688941 | [
"Apache-2.0"
] | 8 | 2019-10-03T17:55:59.000Z | 2021-12-15T02:48:31.000Z | #ifndef __PULSAR_RUBY_CLIENT_UTIL_HPP
#define __PULSAR_RUBY_CLIENT_UTIL_HPP
#include "rice/Module.hpp"
#include <pulsar/Client.h>
using namespace pulsar;
void CheckResult(Result res);
void bind_errors(Rice::Module& module);
#endif
| 16.857143 | 39 | 0.805085 | evizitei |
c3ed9360f77f4b1cf93cbb788d3a9fba164c9528 | 2,382 | cpp | C++ | ecs/src/v2/model/ServerInterfaceFixedIp.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | ecs/src/v2/model/ServerInterfaceFixedIp.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | ecs/src/v2/model/ServerInterfaceFixedIp.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/ecs/v2/model/ServerInterfaceFixedIp.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ecs {
namespace V2 {
namespace Model {
ServerInterfaceFixedIp::ServerInterfaceFixedIp()
{
ipAddress_ = "";
ipAddressIsSet_ = false;
subnetId_ = "";
subnetIdIsSet_ = false;
}
ServerInter... | 20.358974 | 101 | 0.672964 | yangzhaofeng |
c3efb64cbf192518c0e74a860a2bf2a824468ded | 1,423 | cpp | C++ | Chapter03/Chapter3_Source_Code/OddEven_Cond_var.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 98 | 2018-07-03T08:55:31.000Z | 2022-03-21T22:16:58.000Z | Chapter03/Chapter3_Source_Code/OddEven_Cond_var.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 1 | 2020-11-30T10:38:58.000Z | 2020-12-15T06:56:20.000Z | Chapter03/Chapter3_Source_Code/OddEven_Cond_var.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 54 | 2018-07-06T02:09:27.000Z | 2021-11-10T08:42:50.000Z | //====================================================================
// C++ concurrency - Thread synchronization using condition variable.
// Program to print 1-100 in order using odd and even number threads.
//====================================================================
#include <iostream>
#include <thread>
... | 22.951613 | 70 | 0.516514 | ngdzu |
c3f8c7de1ec9cc3d4411685c57273320f0534d50 | 1,926 | cpp | C++ | utils/time_wrapper.cpp | akurmustafa/mlp | 39a3941ffe99386b1d88d0b89b0c481ba24cd3f8 | [
"MIT"
] | null | null | null | utils/time_wrapper.cpp | akurmustafa/mlp | 39a3941ffe99386b1d88d0b89b0c481ba24cd3f8 | [
"MIT"
] | null | null | null | utils/time_wrapper.cpp | akurmustafa/mlp | 39a3941ffe99386b1d88d0b89b0c481ba24cd3f8 | [
"MIT"
] | null | null | null |
#include "utils/time_wrapper.h"
#include <chrono>
#include <cstddef>
#include <iomanip>
#include <iostream>
namespace time_wrapper
{
namespace stdc = std::chrono;
Timer::Timer() {
t_start = std::chrono::system_clock::now();
}
std::int64_t Timer::elapsed(duration_type dt, bool reset) {
auto t_cur = stdc::system_c... | 28.746269 | 90 | 0.682243 | akurmustafa |
c3f90591352245dd1be496afca49eb908c9c20cc | 1,394 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-components_feature__engagement_public_event__constants.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-components_feature__engagement_public_event__constants.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-components_feature__engagement_public_event__constants.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | --- components/feature_engagement/public/event_constants.cc.orig 2019-10-21 19:06:29 UTC
+++ components/feature_engagement/public/event_constants.cc
@@ -12,12 +12,12 @@ namespace feature_engagement {
namespace events {
#if defined(OS_IOS) || defined(OS_WIN) || defined(OS_MACOSX) || \
- defined(OS_LINUX) || defin... | 49.785714 | 92 | 0.710187 | danielfojt |
c3fed9f19a1d75e5fdb051ce6aecda220212da4c | 5,199 | cpp | C++ | bbp/src/irikura/statgreen/csvread.cpp | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 28 | 2017-10-31T09:16:30.000Z | 2022-02-28T23:44:29.000Z | bbp/src/irikura/statgreen/csvread.cpp | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 37 | 2017-05-23T15:15:35.000Z | 2022-02-05T09:13:18.000Z | bbp/src/irikura/statgreen/csvread.cpp | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 26 | 2017-09-21T17:43:33.000Z | 2021-11-29T06:34:30.000Z | #include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <string>
#include <vector>
#include <complex>
#include <algorithm>
#include "knetascii.h"
#include "csvread.h"
using namespace std;
unsigned int read_csv( const char* filename, std::vector< std::vector<double>* > fiel... | 27.078125 | 125 | 0.512791 | ZhangHCFJEA |
c3ff06c13e384176a5ff6e3dc36955d9f0c41ef2 | 1,405 | cpp | C++ | Scr/mp_qtree/src/rgba_pixel.cpp | bo-rc/data_structures | d568b240aff9ceaf5c220684358e32643b8b1864 | [
"MIT"
] | null | null | null | Scr/mp_qtree/src/rgba_pixel.cpp | bo-rc/data_structures | d568b240aff9ceaf5c220684358e32643b8b1864 | [
"MIT"
] | null | null | null | Scr/mp_qtree/src/rgba_pixel.cpp | bo-rc/data_structures | d568b240aff9ceaf5c220684358e32643b8b1864 | [
"MIT"
] | null | null | null | /**
* @file rgba_pixel.cpp
* Implementation of the rgba_pixel class for the EasyPNG library.
*
* @author Chase Geigle
* @date Spring 2012
*/
#include "rgba_pixel.h"
namespace epng
{
rgba_pixel::rgba_pixel() : red(255), green(255), blue(255), alpha(255)
{
/* nothing */
}
rgba_pixel::rgba_pixel(uint8_t r, u... | 23.813559 | 79 | 0.610676 | bo-rc |
c3ffa9a25a9678605479ee26041d8d0387cd9b8f | 1,296 | cpp | C++ | visualization/heavenlybody/star3d.cpp | fdeitelhoff/SolarSystemSimulation | 9a5232498c2a6b6fe9dd02dfb11e91b9aad5ab48 | [
"MIT"
] | null | null | null | visualization/heavenlybody/star3d.cpp | fdeitelhoff/SolarSystemSimulation | 9a5232498c2a6b6fe9dd02dfb11e91b9aad5ab48 | [
"MIT"
] | null | null | null | visualization/heavenlybody/star3d.cpp | fdeitelhoff/SolarSystemSimulation | 9a5232498c2a6b6fe9dd02dfb11e91b9aad5ab48 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2012 by
Fabian Deitelhoff (FH@FabianDeitelhoff.de) and
Christof Geisler (christof.geisler@stud.fh-swf.de)
This file is part of the project SolarSystemSimulation.
SolarSystemSimulation is free software: you can redistribute it and/or modify
it under the terms of the GNU General... | 27 | 82 | 0.733796 | fdeitelhoff |
7f05860fdff31e6cdd01bff3ae35c2a96cfa0ad8 | 2,890 | cc | C++ | src/0134_gas_station/gas_station.cc | youngqqcn/LeetCodeNodes | 62bbd30fbdf1640526d7fc4437cde1b05d67fc8f | [
"MIT"
] | 1 | 2021-05-23T02:15:03.000Z | 2021-05-23T02:15:03.000Z | src/0134_gas_station/gas_station.cc | youngqqcn/LeetCodeNotes | 62bbd30fbdf1640526d7fc4437cde1b05d67fc8f | [
"MIT"
] | null | null | null | src/0134_gas_station/gas_station.cc | youngqqcn/LeetCodeNotes | 62bbd30fbdf1640526d7fc4437cde1b05d67fc8f | [
"MIT"
] | null | null | null | // author: yqq
// date: 2021-06-27 14:09:54
// descriptions: https://leetcode-cn.com/problems/gas-station
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <algorithm>
#include <memory>
#include <queue>
#include <stack>
using namespace std;
/*
在一条环路上有 N 个加油站,其中第 i 个加油站有汽油 g... | 20.942029 | 76 | 0.534256 | youngqqcn |
7f0fd286ef82fc860d4d422cb5b3118467a8d111 | 1,270 | hpp | C++ | hallow/src/engine/renderer/render_system/RenderSystem.hpp | Lugo-Studio/Hallow | e2851051ae839c7b3d4d37ef7ab6947d7b23b117 | [
"MIT"
] | null | null | null | hallow/src/engine/renderer/render_system/RenderSystem.hpp | Lugo-Studio/Hallow | e2851051ae839c7b3d4d37ef7ab6947d7b23b117 | [
"MIT"
] | null | null | null | hallow/src/engine/renderer/render_system/RenderSystem.hpp | Lugo-Studio/Hallow | e2851051ae839c7b3d4d37ef7ab6947d7b23b117 | [
"MIT"
] | null | null | null | //
// Created by galex on 5/18/2021.
//
#ifndef HALLOW_RENDERSYSTEM_HPP
#define HALLOW_RENDERSYSTEM_HPP
#include "helpers/RootDir.h"
#include "engine/time/Time.hpp"
#include "engine/device/HallowDevice.hpp"
#include "engine/pipeline/HallowPipeline.hpp"
#include <string>
#include <memory>
#include <vector>
#include <... | 25.918367 | 123 | 0.759843 | Lugo-Studio |
7f1287c293135a7e747186f41bb1bf134014be2c | 671 | hpp | C++ | src/ModelBase/tdataunit.hpp | TKUICLab-humanoid/imageprocess_submodule | 76b08611f1ef38e67b89e95b5d3e3459906ab908 | [
"MIT"
] | null | null | null | src/ModelBase/tdataunit.hpp | TKUICLab-humanoid/imageprocess_submodule | 76b08611f1ef38e67b89e95b5d3e3459906ab908 | [
"MIT"
] | null | null | null | src/ModelBase/tdataunit.hpp | TKUICLab-humanoid/imageprocess_submodule | 76b08611f1ef38e67b89e95b5d3e3459906ab908 | [
"MIT"
] | null | null | null | #ifndef TDATAUNIT_H
#define TDATAUNIT_H
#include <fstream>
#include <string>
#include <stdlib.h>
#include <string.h>
#include "tku_libs/TKU_tool.h"
//include "../../../strategy/src/StrategyNameAndPath.h"
using namespace std;
struct ColorRange
{
float HueMin;
float HueMax;
float SaturationMin;
float Sa... | 17.205128 | 55 | 0.695976 | TKUICLab-humanoid |
7f19ecefa1da387bc77b57ce80c688f94fc308e2 | 2,817 | cc | C++ | src/event/timer.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/event/timer.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/event/timer.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | #include "timer.h"
#include "signal.h"
#include <chrono>
namespace event
{
typedef std::chrono::high_resolution_clock Clock;
class Timer::Impl
{
public:
Impl(double interval, int loops);
auto Pause() -> void;
auto Resume() -> void;
auto Reset(double interval, int loops) -> void;
auto Add(Command const& comm... | 17.60625 | 112 | 0.618033 | dgolbourn |
7f1a5f3a892ee030e5b7af7eb6d392cd0cdfcb52 | 2,619 | cc | C++ | http/hpack/dynamic_metadata.cc | larrystd/muduohttp | 7ba68e4359b520598f6a2c3d81ab810f5e737336 | [
"Apache-2.0"
] | 2 | 2021-01-08T09:49:55.000Z | 2021-09-29T04:25:43.000Z | src/hpack/dynamic_metadata.cc | shadow-yuan/libhttp2 | fa5fbca9a3fd836bb40b53ef51b6dc4cc53995d1 | [
"Apache-2.0"
] | null | null | null | src/hpack/dynamic_metadata.cc | shadow-yuan/libhttp2 | fa5fbca9a3fd836bb40b53ef51b6dc4cc53995d1 | [
"Apache-2.0"
] | null | null | null | #include "src/hpack/dynamic_metadata.h"
#include <stdio.h>
namespace hpack {
dynamic_metadata_table::dynamic_metadata_table(uint32_t default_max_size)
: _max_table_size_limit(default_max_size)
, _max_table_size(default_max_size)
, _current_table_size(0) {}
dynamic_metadata_table::~dynamic_metadata_table(... | 31.554217 | 120 | 0.686522 | larrystd |
7f20a64514972ced20676f5b2a451046323fae6b | 1,468 | cpp | C++ | School C++/other2/holidays/calonder.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | School C++/other2/holidays/calonder.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | School C++/other2/holidays/calonder.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | /*chpter 6 lab:holidays
program to desplay the date of Memorialday,laberday, Election day,and thanksgiving
Adam Holt per.1*/
#include "stdafx.h"
#include <iostream.h>
#include <conio.h>
bool leapyear(int year)
{
return (year%4==0&&(year%100!=0||year%400==0));
}
long years(int year)
{
return (long(year - 1900) +(yea... | 17.686747 | 82 | 0.611717 | holtsoftware |
7f23d412844c514cf517adf6448401febd8291b9 | 290 | cpp | C++ | vijos/p1316.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | 3 | 2018-06-05T13:57:13.000Z | 2020-08-05T14:19:02.000Z | vijos/p1316.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | vijos/p1316.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <set>
using namespace std;
set<int> randoms;
int main()
{
int n, ra;
cin>>n;
while(n--) {
cin>>ra;
randoms.insert(ra);
}
cout<<randoms.size()<<endl;
for(set<int>::iterator i=randoms.begin();
i!=randoms.end();i++) {
cout<<*i<<' ';
}
return 0;
} | 13.809524 | 42 | 0.589655 | huanghongxun |
7f2521eb29df63e21370b3dec11b7776024f2e48 | 1,059 | cpp | C++ | backup/2/codesignal/c++/number-minimization.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/codesignal/c++/number-minimization.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/codesignal/c++/number-minimization.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 48.136364 | 345 | 0.666667 | yangyanzhan |
7f2a0bc5aab40b856864fb0abc9a497f21a7c6b8 | 513 | cpp | C++ | arquivos .h e .cpp/Inimigo.cpp | moises-dias/hunter-adventures | a403bc09d3583005ad689ed2ebbfe1361e678788 | [
"MIT"
] | 2 | 2020-05-26T22:46:48.000Z | 2022-01-12T12:32:06.000Z | arquivos .h e .cpp/Inimigo.cpp | moises-dias/hunter-adventures | a403bc09d3583005ad689ed2ebbfe1361e678788 | [
"MIT"
] | null | null | null | arquivos .h e .cpp/Inimigo.cpp | moises-dias/hunter-adventures | a403bc09d3583005ad689ed2ebbfe1361e678788 | [
"MIT"
] | null | null | null | #include "Inimigo.h"
Inimigo::Inimigo()
{
ID=4;
permiteColisaoChao = true;
permiteColisaoEnt = true;
funcionando=false;
estado = PARADO;
jogadores[0] = NULL;
jogadores[1] = NULL;
colisao = new bool[NUM_COLISOES];
for(int i = 0; i < NUM_COLISOES; i++)
colisao[i] = false;
... | 15.545455 | 43 | 0.608187 | moises-dias |
7f2b40a3e6e0a409d16cba564a38636bb7f949f7 | 10,654 | cpp | C++ | src/array_components/array_components.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | src/array_components/array_components.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | src/array_components/array_components.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* 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 th... | 31.427729 | 152 | 0.692134 | YongJin-Cho |
7f2d66ba25bd22a70f6c3db1d77392c4a176d7c7 | 2,005 | cc | C++ | rst/defer/defer_test.cc | sabbakumov/rst | c0257ab1fb17dea7b022cc4955f715d80a9b32f6 | [
"BSD-2-Clause"
] | 4 | 2016-12-15T13:06:36.000Z | 2022-01-10T16:34:00.000Z | rst/defer/defer_test.cc | sabbakumov/rst | c0257ab1fb17dea7b022cc4955f715d80a9b32f6 | [
"BSD-2-Clause"
] | 103 | 2019-01-24T18:06:35.000Z | 2021-11-02T13:33:34.000Z | rst/defer/defer_test.cc | sabbakumov/rst | c0257ab1fb17dea7b022cc4955f715d80a9b32f6 | [
"BSD-2-Clause"
] | 4 | 2018-04-24T06:59:59.000Z | 2022-02-04T18:10:03.000Z | // Copyright (c) 2017, Sergey Abbakumov
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of condi... | 27.094595 | 73 | 0.709227 | sabbakumov |
b523dcdd72030528b6de09cca417219c83050814 | 23 | cpp | C++ | source/vzero_102/config.cpp | slafi/VoltaZero | c361bf9d4b207364fa43b337f946f2a0d1a8b321 | [
"MIT"
] | null | null | null | source/vzero_102/config.cpp | slafi/VoltaZero | c361bf9d4b207364fa43b337f946f2a0d1a8b321 | [
"MIT"
] | null | null | null | source/vzero_102/config.cpp | slafi/VoltaZero | c361bf9d4b207364fa43b337f946f2a0d1a8b321 | [
"MIT"
] | null | null | null |
#include "config.h"
| 5.75 | 19 | 0.608696 | slafi |
b5246043ed8422f371130d3f0d5c34c87eb326ec | 3,915 | cpp | C++ | src/simulation/FindBoundingBoxOperation.cpp | citron0xa9/FluidSim | 2c2c3ac15b0bfa60bf40a8aebff1010309a65029 | [
"MIT"
] | 1 | 2016-05-26T13:07:34.000Z | 2016-05-26T13:07:34.000Z | src/simulation/FindBoundingBoxOperation.cpp | citron0xa9/FluidSim | 2c2c3ac15b0bfa60bf40a8aebff1010309a65029 | [
"MIT"
] | null | null | null | src/simulation/FindBoundingBoxOperation.cpp | citron0xa9/FluidSim | 2c2c3ac15b0bfa60bf40a8aebff1010309a65029 | [
"MIT"
] | null | null | null |
#include "FindBoundingBoxOperation.h"
#include "ParticleSystem.h"
#include <cassert>
FindBoundingBoxOperation::FindBoundingBoxOperation(ParticleSystem& parent,
const std::vector<std::reference_wrapper<ParticleSystem>>& respectedParticleSystems,
const std::vector<std::reference_wrapper<RigidBodySim>>& respec... | 35.27027 | 112 | 0.723116 | citron0xa9 |
b52485847d9756a0d58e415634b1b7c212edd570 | 445 | cc | C++ | libconfluo/src/archival/io/incremental_file_offset.cc | Mu-L/confluo | e9b8621e99f56b1adf5675c4296c006d89e6e582 | [
"Apache-2.0"
] | 1,398 | 2018-12-05T19:13:15.000Z | 2022-03-29T08:26:03.000Z | libconfluo/src/archival/io/incremental_file_offset.cc | Mu-L/confluo | e9b8621e99f56b1adf5675c4296c006d89e6e582 | [
"Apache-2.0"
] | 53 | 2018-10-21T03:28:25.000Z | 2021-03-16T03:50:54.000Z | libconfluo/src/archival/io/incremental_file_offset.cc | Mu-L/confluo | e9b8621e99f56b1adf5675c4296c006d89e6e582 | [
"Apache-2.0"
] | 208 | 2018-10-28T03:05:46.000Z | 2022-02-06T06:16:37.000Z | #include "archival/io/incremental_file_offset.h"
namespace confluo {
namespace archival {
incremental_file_offset::incremental_file_offset()
: path_(""),
off_(0) {
}
incremental_file_offset::incremental_file_offset(std::string path, size_t offset)
: path_(path),
off_(offset) {
}
std::string incr... | 17.8 | 81 | 0.723596 | Mu-L |
b527d652b3ebf0bed3b67d1cfe19c7c6e60baeb6 | 1,700 | cpp | C++ | src/Engine/Geometry/MathFunctions.cpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 3 | 2017-09-08T06:05:10.000Z | 2017-10-28T04:22:20.000Z | src/Engine/Geometry/MathFunctions.cpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 894 | 2017-08-30T09:57:28.000Z | 2018-01-30T12:35:38.000Z | src/Engine/Geometry/MathFunctions.cpp | Chainsawkitten/LargeGameProjectEngine | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 1 | 2020-11-06T23:59:58.000Z | 2020-11-06T23:59:58.000Z | #include "MathFunctions.hpp"
#include <glm/gtc/quaternion.hpp>
float Geometry::DotQuat(const glm::quat& q1, const glm::quat& q2) {
return q1.x*q2.x + q1.y*q2.y + q1.z*q2.z + q1.w*q2.w;
}
void Geometry::NormalizeQuat(glm::quat& q) {
float d = sqrt(DotQuat(q, q));
if (d >= 0.00001) {
d = 1 / d;
... | 22.666667 | 71 | 0.561176 | Chainsawkitten |
b52f642c514ab34d332991df23ddb22492de0f55 | 1,112 | hpp | C++ | injection.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | injection.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | injection.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | // $Id$
#ifndef _INJECTION_HPP_
#define _INJECTION_HPP_
#include "config_utils.hpp"
using namespace std;
class InjectionProcess
{
protected:
long long int _nodes;
double _rate;
InjectionProcess(long long int nodes, double rate);
public:
virtual ~InjectionProcess() {}
virtual bool test(long long int sourc... | 22.693878 | 86 | 0.716727 | TomGlint |
b52f7a8c4bae20d4e59cacb17e0d70a79b2a6d3a | 3,670 | hpp | C++ | Bitcoin/le.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 108 | 2020-10-01T17:12:40.000Z | 2022-03-30T09:18:03.000Z | Bitcoin/le.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 94 | 2020-10-03T13:40:30.000Z | 2022-03-30T09:18:00.000Z | Bitcoin/le.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 17 | 2020-10-29T13:27:59.000Z | 2022-03-18T13:05:03.000Z | #ifndef BITCOIN_LE_HPP
#define BITCOIN_LE_HPP
#include"Ln/Amount.hpp"
#include<cstdint>
#include<iostream>
namespace Bitcoin { namespace Detail { class Le16; }}
namespace Bitcoin { namespace Detail { class Le16Const; }}
namespace Bitcoin { namespace Detail { class Le32; }}
namespace Bitcoin { namespace Detail { class... | 23.986928 | 75 | 0.688828 | 3nprob |
b530cac05020f34cbf6f83321b858f6c71ea71d9 | 949 | cpp | C++ | OculusPlatformBP/Source/OculusPlatformBP/Private/OBP_UserAndRoomArray.cpp | InnerLoopLLC/OculusPlatformBP | d4bfb5568c56aa781e2ee76896d69a0ade1f57a2 | [
"MIT"
] | 29 | 2020-10-22T13:46:23.000Z | 2022-03-18T14:32:51.000Z | OculusPlatformBP/Source/OculusPlatformBP/Private/OBP_UserAndRoomArray.cpp | InnerLoopLLC/OculusPlatformBP | d4bfb5568c56aa781e2ee76896d69a0ade1f57a2 | [
"MIT"
] | 2 | 2021-05-06T18:14:39.000Z | 2021-05-25T01:12:15.000Z | OculusPlatformBP/Source/OculusPlatformBP/Private/OBP_UserAndRoomArray.cpp | InnerLoopLLC/OculusPlatformBP | d4bfb5568c56aa781e2ee76896d69a0ade1f57a2 | [
"MIT"
] | null | null | null | // OculusPlatformBP plugin by InnerLoop LLC 2020
#include "OBP_UserAndRoomArray.h"
// --------------------
// Initializers
// --------------------
UOBP_UserAndRoomArray::UOBP_UserAndRoomArray(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
// --------------------
// OVR_UserAndRoomArray... | 24.973684 | 108 | 0.755532 | InnerLoopLLC |
b530ed80ce4fe463cdfeeb23d37f934451ae5122 | 309 | cxx | C++ | src/unix/node-xmp-unix.cxx | zaro/node-xmp | a7b545ee9509bc20647cc8a8272b38fd82116e44 | [
"BSD-2-Clause"
] | null | null | null | src/unix/node-xmp-unix.cxx | zaro/node-xmp | a7b545ee9509bc20647cc8a8272b38fd82116e44 | [
"BSD-2-Clause"
] | null | null | null | src/unix/node-xmp-unix.cxx | zaro/node-xmp | a7b545ee9509bc20647cc8a8272b38fd82116e44 | [
"BSD-2-Clause"
] | null | null | null | #include "node-xmp.h"
#include "node-xmp-os.h"
#include <dlfcn.h>
std::string getModuleDir(){
Dl_info dl_info;
dladdr((void *)SXMPFilesWrapper::Init, &dl_info);
std::string moduleDir(dl_info.dli_fname);
size_t lastSlash = moduleDir.rfind('/');
moduleDir.erase(lastSlash + 1);
return moduleDir;
}
| 23.769231 | 51 | 0.708738 | zaro |
b53258701e2368a14fd035e0b530268b6954082c | 1,357 | cpp | C++ | lib/Builder/FloatsToFloat/FloatsToFloat.cpp | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | lib/Builder/FloatsToFloat/FloatsToFloat.cpp | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | lib/Builder/FloatsToFloat/FloatsToFloat.cpp | digirea/HIVE | 8896b0cc858c1ad0683888b925f71c0f0d71bf9d | [
"MIT"
] | null | null | null | /**
* @file FloatsToFloat.cpp
* 複数Floatデータ再構築モジュール
*/
#include "FloatsToFloat.h"
/// コンストラクタ
FloatsToFloat::FloatsToFloat(){
m_volume = 0;
}
/**
* BufferVolumeData再構築
* @param volume 再構築対象のBufferVolumeData
* @param offset 再構築対象のバッファオフセット
* @return 作成されたバッファ数
*/
int FloatsToFloat::Create(BufferVolumeDa... | 20.253731 | 66 | 0.613854 | digirea |
b5364184b2fb1afa3a3b89d9b8b077dce5e1eec8 | 2,461 | cpp | C++ | thirdparty/qtvesta/LocalImageLoader.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | thirdparty/qtvesta/LocalImageLoader.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | thirdparty/qtvesta/LocalImageLoader.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | // Copyright (C) 2010 Chris Laurel <claurel@gmail.com>
//
// This file is a part of qtvesta, a set of classes for using
// the VESTA library with the Qt framework.
//
// qtvesta is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the ... | 25.905263 | 88 | 0.576189 | hoehnp |
b536bb0f854d8044547eb0edb518471492e548be | 3,086 | cpp | C++ | SYCL/FilterSelector/filter_list_cpu_gpu_acc.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 10 | 2020-08-04T04:29:03.000Z | 2022-02-23T21:43:56.000Z | SYCL/FilterSelector/filter_list_cpu_gpu_acc.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 519 | 2020-09-15T07:40:51.000Z | 2022-03-31T20:51:15.000Z | SYCL/FilterSelector/filter_list_cpu_gpu_acc.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 117 | 2020-06-24T13:11:04.000Z | 2022-03-23T15:44:23.000Z | //==------------------ filter_list_cpu_gpu_acc.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
//
//===----------------------------... | 40.077922 | 133 | 0.679844 | Nuullll |
b53931b37d620011083a7ce995bef5b64e02b70f | 1,459 | cpp | C++ | Chapter_5_Mathematics/Number_Theory/kattis_pascal.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_5_Mathematics/Number_Theory/kattis_pascal.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_5_Mathematics/Number_Theory/kattis_pascal.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /* Kattis - pascal
The function given stops at the largest divisor of n. This is n/i where i is the smallest prime
factor of n. So after doing sieve, we just find the first prime factor of n (<= sqrt n).
If we still cannot find such a factor. N is prime, so we ouput n-1. Else if n == 1, just output 0.
Time: O(1e6 lo... | 23.532258 | 98 | 0.557916 | BrandonTang89 |
b53b6683e8416118684cd9d7a6d3d5a8de4a4f64 | 2,135 | cpp | C++ | source/RenderColorMap.cpp | xzrunner/painting2 | c16e0133adf27a877b40b8fce642b5a42e043d09 | [
"MIT"
] | null | null | null | source/RenderColorMap.cpp | xzrunner/painting2 | c16e0133adf27a877b40b8fce642b5a42e043d09 | [
"MIT"
] | null | null | null | source/RenderColorMap.cpp | xzrunner/painting2 | c16e0133adf27a877b40b8fce642b5a42e043d09 | [
"MIT"
] | null | null | null | #include "painting2/RenderColorMap.h"
namespace pt2
{
static const pt0::Color R_IDENTITY(255, 0, 0, 0);
static const pt0::Color G_IDENTITY(0, 255, 0, 0);
static const pt0::Color B_IDENTITY(0, 0, 255, 0);
static const float INV_255 = 1.0f / 255;
RenderColorMap::RenderColorMap()
: rmap(255, 0, 0, 0)
, gmap(0, 255, 0... | 26.6875 | 102 | 0.608431 | xzrunner |
b53c7f5847238c7ffa146e041d03d54a08710940 | 4,041 | cpp | C++ | Messy_Test-master/demo/CppBaseTest/struct.cpp | shenjl/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | 1 | 2019-11-10T08:23:00.000Z | 2019-11-10T08:23:00.000Z | Messy_Test-master/demo/CppBaseTest/struct.cpp | selonsy/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | null | null | null | Messy_Test-master/demo/CppBaseTest/struct.cpp | selonsy/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | null | null | null | #include "struct.hpp"
#include <cstring>
#include <cstdlib>
#include <iostream>
// Blog: http://blog.csdn.net/fengbingchun/article/details/52072206
///////////////////////////////////////////
// reference: https://msdn.microsoft.com/zh-cn/library/64973255.aspx
struct PERSON { // Declare PERSON struct type
int age;... | 23.091429 | 95 | 0.614204 | shenjl |
b53d8742434867cb3aeac03975006a7247581f97 | 1,483 | cpp | C++ | atcoder/abc/abc116/d.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc116/d.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc116/d.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1,... | 23.539683 | 60 | 0.473365 | yu3mars |
b54c34e34948e7dbb0527632a4eba5de4b8b29ee | 1,030 | cpp | C++ | quasi-examples/nucleo/port_handler.cpp | quasi-robotics/DynamixelSDK | 67c278d19f2ad86c0c30ffc4e6c5b35cecc58bdc | [
"Apache-2.0"
] | null | null | null | quasi-examples/nucleo/port_handler.cpp | quasi-robotics/DynamixelSDK | 67c278d19f2ad86c0c30ffc4e6c5b35cecc58bdc | [
"Apache-2.0"
] | null | null | null | quasi-examples/nucleo/port_handler.cpp | quasi-robotics/DynamixelSDK | 67c278d19f2ad86c0c30ffc4e6c5b35cecc58bdc | [
"Apache-2.0"
] | null | null | null | #include <USBSerial.h>
#include <usbd_cdc_if.h>
#include "rtos_cpp.h"
#include "port_handler.h"
#include "logger.h"
static quasi::thread* _notify_thread;
static int8_t (* cdc_receive_callback)(uint8_t *Buf, uint32_t *Len);
static int8_t _on_receive_cdc(uint8_t *Buf, uint32_t *Len) {
int8_t rc = cdc_receive_callbac... | 28.611111 | 100 | 0.768932 | quasi-robotics |
b54e4aeca4f79b22c441df680fe322397470ae75 | 1,017 | cpp | C++ | src/romanian_city.cpp | CppPhil/ISP1 | dfc9c4ddc3cdb5784aa93ca25e6c9fca31f11676 | [
"Unlicense"
] | null | null | null | src/romanian_city.cpp | CppPhil/ISP1 | dfc9c4ddc3cdb5784aa93ca25e6c9fca31f11676 | [
"Unlicense"
] | null | null | null | src/romanian_city.cpp | CppPhil/ISP1 | dfc9c4ddc3cdb5784aa93ca25e6c9fca31f11676 | [
"Unlicense"
] | null | null | null | #include <romanian_city.hpp>
#include <stdexcept> // std::logic_error
namespace isp1 {
std::string to_string(romanian_city city)
{
std::string result;
// The # preprocessor operator 'stringifies' its input
switch (city) {
#define X(city_name) \
case romanian_city::city_name: result = #city_name; break... | 24.804878 | 69 | 0.633235 | CppPhil |
b54f7cea3e2016107742aa736dc52ab07c3fbac5 | 346 | cpp | C++ | clang/test/CodeCompletion/accessibility-crash.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | clang/test/CodeCompletion/accessibility-crash.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/CodeCompletion/accessibility-crash.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | class X {
public:
int pub;
protected:
int prot;
private:
int priv;
};
class Y : public X {
int test() {
[]() {
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - \
// RUN: | FileCheck %s
// CHECK: priv (InBase,Inaccessible)
// CHECK: prot (InBase)
// CHECK: pub... | 14.416667 | 76 | 0.526012 | medismailben |
b54f7e7216f60a36d642a32ef32245f773657550 | 3,501 | cpp | C++ | SurgSim/Framework/UnitTests/TimerTest.cpp | dbungert/opensurgsim | bd30629f2fd83f823632293959b7654275552fa9 | [
"Apache-2.0"
] | 24 | 2015-01-19T16:18:59.000Z | 2022-03-13T03:29:11.000Z | SurgSim/Framework/UnitTests/TimerTest.cpp | dbungert/opensurgsim | bd30629f2fd83f823632293959b7654275552fa9 | [
"Apache-2.0"
] | 3 | 2018-12-21T14:54:08.000Z | 2022-03-14T12:38:07.000Z | SurgSim/Framework/UnitTests/TimerTest.cpp | dbungert/opensurgsim | bd30629f2fd83f823632293959b7654275552fa9 | [
"Apache-2.0"
] | 8 | 2015-04-10T19:45:36.000Z | 2022-02-02T17:00:59.000Z | // This file is a part of the OpenSurgSim project.
// Copyright 2013-2016, SimQuest Solutions 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... | 35.72449 | 114 | 0.748929 | dbungert |
b554a516779b477096cc7de7ba61f3d4462d39ad | 1,874 | cc | C++ | bin/zxdb/client/remote_api_test.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | bin/zxdb/client/remote_api_test.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | bin/zxdb/client/remote_api_test.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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 "garnet/bin/zxdb/client/remote_api_test.h"
#include <inttypes.h>
#include "garnet/bin/zxdb/client/session.h"
#include "garnet/bin/zxdb/client/sy... | 30.225806 | 73 | 0.728388 | PowerOlive |
b55b80c61d2b6d2a8ed6b3c0358267840425bee3 | 1,172 | cpp | C++ | 2021/day2/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2021/day2/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2021/day2/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include "common/types.h"
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
int main(int argc, char *argv[]) {
auto lines = File::readAllLines(argv[1]);
{
Point3d<int> pos;
for (auto &r : lines) {
int val;
if (sscanf(r.c_str(), "forward %d", &val) == 1) {... | 19.213115 | 56 | 0.524744 | bielskij |
b55d24821af692c9277a25dbfb8e1a128e471401 | 1,994 | cpp | C++ | rubis_ws/src/inertiallabs_pkgs/inertiallabs_sdk/platforms/windows/SerialPort.cpp | Jihwan-Kimm/Autoware_On_Embedded | dc45b70a355fdd26a65007e9c1d9246090f06373 | [
"MIT"
] | 2 | 2021-07-12T06:44:37.000Z | 2021-07-20T07:50:33.000Z | rubis_ws/src/inertiallabs_pkgs/inertiallabs_sdk/platforms/windows/SerialPort.cpp | Jihwan-Kimm/Autoware_On_Embedded | dc45b70a355fdd26a65007e9c1d9246090f06373 | [
"MIT"
] | null | null | null | rubis_ws/src/inertiallabs_pkgs/inertiallabs_sdk/platforms/windows/SerialPort.cpp | Jihwan-Kimm/Autoware_On_Embedded | dc45b70a355fdd26a65007e9c1d9246090f06373 | [
"MIT"
] | 3 | 2021-07-12T06:38:00.000Z | 2022-03-21T07:27:17.000Z | #include "../../SerialPort.h"
#include <windows.h>
#include <string>
#include <cstdio>
namespace IL {
SerialPort::SerialPort()
: hCom(INVALID_HANDLE_VALUE)
, timeout(1000)
{
}
SerialPort::~SerialPort()
{
close();
}
int SerialPort::open(const char* url)
{
std::string urlStr(url);
std::string pathSt... | 26.236842 | 156 | 0.68004 | Jihwan-Kimm |
b56312e3d0c4a66ff65be9c53dcc1aa2d1cc6026 | 8,815 | cpp | C++ | middleware/domain/source/manager/task.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | middleware/domain/source/manager/task.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | middleware/domain/source/manager/task.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | 1 | 2022-02-21T18:30:25.000Z | 2022-02-21T18:30:25.000Z | //!
//! Copyright (c) 2015, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#include "domain/manager/task.h"
#include "domain/manager/ipc.h"
#include "domain/manager/state.h"
#include "domain/common.h"
#include "common/stream.h"
#include "common... | 34.704724 | 145 | 0.446285 | casualcore |
b5696a6bbc80994055fcbcf5d858e7df0afdde2f | 220 | cpp | C++ | E9_tabelline tra 2 e 10.cpp | LeccaMelo/informatica_3 | dcb30e3277d238bbe2dbbadeda40df20b6971b40 | [
"MIT"
] | null | null | null | E9_tabelline tra 2 e 10.cpp | LeccaMelo/informatica_3 | dcb30e3277d238bbe2dbbadeda40df20b6971b40 | [
"MIT"
] | null | null | null | E9_tabelline tra 2 e 10.cpp | LeccaMelo/informatica_3 | dcb30e3277d238bbe2dbbadeda40df20b6971b40 | [
"MIT"
] | 2 | 2016-11-24T08:29:36.000Z | 2017-04-20T13:59:28.000Z | #include<stdio.h>
main()
{
int N;
int L;
int I;
int tab;
N=2;
L=0;
while(L<=7){
N=N+1;
I=1;
while(I<=10){
tab=N*I;
printf("%d",tab);
I++;
}
L++;
printf("\n");
}
}
| 9.565217 | 21 | 0.377273 | LeccaMelo |
b56de6a816a3dde7e3cc71cf5aa1b243d49a2618 | 5,441 | cpp | C++ | DemoFramework/FslGraphics3D/Camera/source/FslGraphics3D/Camera/BasicFirstPersonCamera.cpp | alexvonduar/gtec-demo-framework | 6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | DemoFramework/FslGraphics3D/Camera/source/FslGraphics3D/Camera/BasicFirstPersonCamera.cpp | alexvonduar/gtec-demo-framework | 6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | DemoFramework/FslGraphics3D/Camera/source/FslGraphics3D/Camera/BasicFirstPersonCamera.cpp | alexvonduar/gtec-demo-framework | 6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | /****************************************************************************************************************************************************
* Copyright 2017 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... | 30.914773 | 150 | 0.638853 | alexvonduar |
b57099e1d67d62e2d7278b5d293021cc30d997ed | 174 | cpp | C++ | SGP/main.cpp | olehermanse/SGP | ec898da6bf8b6aa39fd23697db076b412ad66425 | [
"MIT"
] | 2 | 2015-01-16T23:46:55.000Z | 2016-03-28T23:04:58.000Z | SGP/main.cpp | olehermanse/SGP | ec898da6bf8b6aa39fd23697db076b412ad66425 | [
"MIT"
] | null | null | null | SGP/main.cpp | olehermanse/SGP | ec898da6bf8b6aa39fd23697db076b412ad66425 | [
"MIT"
] | null | null | null | #include "mGraphics.h"
#include "mHeightmap.h"
#include "Game.h"
int main(int argc, char** argv){
srand(time(0));
Game* game = new Game();
game->mainLoop();
return 0;
}
| 15.818182 | 32 | 0.649425 | olehermanse |
b573236b227067155c8346752b604e095ac88978 | 395 | cpp | C++ | Clase_17_DynamicProgramming/fibonacci.cpp | EdgarEspinozaPE/ProgramacionCompetitivaA | 53c3eb3e2bc9f1dd1033e0c24b0cb24f96def1e9 | [
"BSD-3-Clause"
] | null | null | null | Clase_17_DynamicProgramming/fibonacci.cpp | EdgarEspinozaPE/ProgramacionCompetitivaA | 53c3eb3e2bc9f1dd1033e0c24b0cb24f96def1e9 | [
"BSD-3-Clause"
] | null | null | null | Clase_17_DynamicProgramming/fibonacci.cpp | EdgarEspinozaPE/ProgramacionCompetitivaA | 53c3eb3e2bc9f1dd1033e0c24b0cb24f96def1e9 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
long fibonacci(long n) {
if (n <= 1)
return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
n = 8;
cout << fibonac... | 14.107143 | 45 | 0.56962 | EdgarEspinozaPE |
b573beae4f1fc4de07c059fe5805cfa80a3798ec | 20,314 | cpp | C++ | src/main/VRMain.cpp | jtveite/MinVR | 7a4f26371d434096388840ed61bea9dcd3527167 | [
"BSD-3-Clause"
] | null | null | null | src/main/VRMain.cpp | jtveite/MinVR | 7a4f26371d434096388840ed61bea9dcd3527167 | [
"BSD-3-Clause"
] | null | null | null | src/main/VRMain.cpp | jtveite/MinVR | 7a4f26371d434096388840ed61bea9dcd3527167 | [
"BSD-3-Clause"
] | null | null | null | #include <main/VRMain.h>
#include <stdio.h>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
#include <display/VRConsoleNode.h>
#include <display/VRGraphicsWindowNode.h>
#include <display/VRGroupNode.h>
#include <display/VROffAxisProjectionNode.h>
#include <display/VRStereoNode.h>
#include <display/... | 33.744186 | 257 | 0.651177 | jtveite |
b57d19da07c9b8d2cdf40014c2cd309c6cbeaac0 | 17,888 | cxx | C++ | arrows/vxl/convert_image.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | arrows/vxl/convert_image.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | arrows/vxl/convert_image.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +5
* Copyright 2019 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "convert_image.h"
#include <arrows/vxl/image_container.h>
#include <vil/vil_image_... | 34.532819 | 93 | 0.530691 | neal-siekierski |
b583c4962b4ea41a97bb42e9b2db3ad59effcb88 | 2,533 | cpp | C++ | HDUOJ/1253/bfs_priority_queue.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/1253/bfs_priority_queue.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/1253/bfs_priority_queue.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <set>
#include <map>
#define SIZE 51
using namespace std;
typedef struct _Node
{
int x, y, z;
int step;
bool op... | 25.079208 | 225 | 0.498223 | codgician |
b5872c559be2f727bea7f9a26a80ad5a79fee6e4 | 5,850 | cpp | C++ | project3/main.cpp | Inscrupulous/CPE212 | cc4462d5c42ce16894b79117ef88111e728e098c | [
"Apache-2.0"
] | null | null | null | project3/main.cpp | Inscrupulous/CPE212 | cc4462d5c42ce16894b79117ef88111e728e098c | [
"Apache-2.0"
] | null | null | null | project3/main.cpp | Inscrupulous/CPE212 | cc4462d5c42ce16894b79117ef88111e728e098c | [
"Apache-2.0"
] | null | null | null | #include "classroom.hpp"
#include "list.hpp"
#include "student.hpp"
#include <iostream>
#include <fstream>
#include <string>
List<Assignment> ReadGradesFile(const std::string &file, bool &successful)
{
std::ifstream infile;
List<Assignment> list;
infile.open(file.c_str());
if(!infile.is_open())
{... | 27.209302 | 88 | 0.372479 | Inscrupulous |
b58755b8a9838713b6b8f0f13d7fb510d9481f0a | 1,929 | cpp | C++ | mr.Sadman/Classes/GameAct/Objects/Physical/Radiation.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | mr.Sadman/Classes/GameAct/Objects/Physical/Radiation.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | 3 | 2020-12-11T10:01:27.000Z | 2022-02-13T22:12:05.000Z | mr.Sadman/Classes/GameAct/Objects/Tech/Radiation.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | #include "Radiation.hpp"
#include "Game/Levels/Chunk.hpp"
namespace Objects
{
namespace Tech
{
Radiation::Radiation()
: _particle( cocos2d::ParticleFlower::create() )
{
}
Radiation::~Radiation()
{
_particle->removeFromParentAndCleanup( true );
}
void
Radiation::initialize()
{
_particle->se... | 20.741935 | 80 | 0.692068 | 1pkg |
b58b30b20f882aa1a826cb6d0ec1392f72947038 | 1,860 | hpp | C++ | src/interfaces/IConnection.hpp | LesGameDevToolsMagique/MagiqueMessenger | 66c502b9b97f0a8761114f7b601216005a73e907 | [
"MIT"
] | null | null | null | src/interfaces/IConnection.hpp | LesGameDevToolsMagique/MagiqueMessenger | 66c502b9b97f0a8761114f7b601216005a73e907 | [
"MIT"
] | null | null | null | src/interfaces/IConnection.hpp | LesGameDevToolsMagique/MagiqueMessenger | 66c502b9b97f0a8761114f7b601216005a73e907 | [
"MIT"
] | null | null | null | //
// Created by Jean-Antoine Dupont on 14/03/2016.
//
#ifndef __ICONNECTION_HPP__
#define __ICONNECTION_HPP__
#include <string> // std::string
#include <sys/types.h> // socket - bind - listen - accept
#include <sys/socket.h> // socket - bind - listen - accept
#include <netinet/in.h> //... | 33.214286 | 126 | 0.509677 | LesGameDevToolsMagique |
b58ca32dca61b144c57673c4278aacc0c201fa28 | 2,138 | cpp | C++ | C++/freeCodeCamp.org_C++ Tutorial for Beginners/src/025_Constructor Functions/ConstructorFunctions.cpp | JCOCA-Tech/coding-2021 | 180f8cd8830abf386dcd2399309a1b203a22ee3b | [
"MIT"
] | 1 | 2021-10-14T02:26:41.000Z | 2021-10-14T02:26:41.000Z | C++/freeCodeCamp.org_C++ Tutorial for Beginners/src/025_Constructor Functions/ConstructorFunctions.cpp | JCOCA-Tech/coding-2021 | 180f8cd8830abf386dcd2399309a1b203a22ee3b | [
"MIT"
] | null | null | null | C++/freeCodeCamp.org_C++ Tutorial for Beginners/src/025_Constructor Functions/ConstructorFunctions.cpp | JCOCA-Tech/coding-2021 | 180f8cd8830abf386dcd2399309a1b203a22ee3b | [
"MIT"
] | null | null | null | #include <iostream>
/* Simple C++ program that uses constructor functions */
using namespace std;
class Book // A class is a custom datatype template or blueprint
{
public:
string title;
string author;
int pages;
Book(string aTitle, string aAuthor, int aPages) // constructor usin... | 29.287671 | 130 | 0.552853 | JCOCA-Tech |
b58ced8e2150447e03387a46dcfa56f66b7c428c | 1,122 | cpp | C++ | gearoenix/render/camera/gx-rnd-cmr-manager.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/render/camera/gx-rnd-cmr-manager.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/render/camera/gx-rnd-cmr-manager.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #include "gx-rnd-cmr-manager.hpp"
#include "../engine/gx-rnd-eng-engine.hpp"
#include "gx-rnd-cmr-orthographic.hpp"
#include "gx-rnd-cmr-perspective.hpp"
gearoenix::render::camera::Manager::Manager(std::unique_ptr<system::stream::Stream> s, engine::Engine* const e) noexcept
: e(e)
, cache(std::move(s))
{
}
st... | 37.4 | 160 | 0.605169 | Hossein-Noroozpour |
b5904cc1966466510355afdcd9748a21457091d2 | 51,465 | cpp | C++ | proj.android/Photon-AndroidNDK_SDK/LoadBalancing-cpp/src/Client.cpp | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | 1 | 2016-05-31T22:56:26.000Z | 2016-05-31T22:56:26.000Z | proj.ios_mac/Photon-iOS_SDK/LoadBalancing-cpp/src/Client.cpp | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | null | null | null | proj.ios_mac/Photon-iOS_SDK/LoadBalancing-cpp/src/Client.cpp | h-iwata/MultiplayPaint | b170ec60bdda93c041ef59625ac2d6eba54d0335 | [
"MIT"
] | null | null | null | /* Exit Games Photon LoadBalancing - C++ Client Lib
* Copyright (C) 2004-2015 by Exit Games GmbH. All rights reserved.
* http://www.exitgames.com
* mailto:developer@exitgames.com
*/
#include "LoadBalancing-cpp/inc/Client.h"
#include "LoadBalancing-cpp/inc/Enums/CustomAuthenticationType.h"
#include "LoadBal... | 38.4354 | 339 | 0.712426 | h-iwata |
b59135669105fd4a36aa4c9375d01013c66f8760 | 934 | cpp | C++ | Searching/Linear_search.cpp | calmesam01/Algorithms | c3b137b0c0bbd43cb542b12e0d8a6f91a3c06138 | [
"MIT"
] | 5 | 2017-05-19T12:21:19.000Z | 2021-12-09T10:35:37.000Z | Searching/Linear_search.cpp | calmesam01/Algorithms | c3b137b0c0bbd43cb542b12e0d8a6f91a3c06138 | [
"MIT"
] | null | null | null | Searching/Linear_search.cpp | calmesam01/Algorithms | c3b137b0c0bbd43cb542b12e0d8a6f91a3c06138 | [
"MIT"
] | 1 | 2017-06-25T14:16:00.000Z | 2017-06-25T14:16:00.000Z | /*Linear search algo to search all the elements linearly
Author = Satyam
Complexity = O(n)
*/
//Adding Header files
#include<iostream>
//Setting std namespace
using namespace std;
//Main function started
int main(){
//Declaring variables
int n,arr[50],element;
bool a=false;
cout << "How many... | 21.227273 | 67 | 0.542827 | calmesam01 |
b591d413af55652e3490cef5decf21a932e50c6a | 3,074 | hpp | C++ | redemption/src/utils/cache_index_mapping.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/utils/cache_index_mapping.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/utils/cache_index_mapping.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | /*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ... | 27.446429 | 68 | 0.652245 | DianaAssistant |
b592ac04d0c6e8556a31843c576619a0e3b4a3bb | 8,404 | cpp | C++ | source/Library/Numeric/LongInt.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/Numeric/LongInt.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/Numeric/LongInt.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------------------------------------
#include "Library/Numeric/LongInt.hpp"
#include "Library/Numeric/Random.hpp"
#include "Base/Shared.hpp"
#include "Base/DynArg.hpp"
// -------------------------------------------------------------------------------------... | 42.444444 | 149 | 0.486435 | dracc |
b59592db2d9e05087db9bd20f65f7b012f3466a1 | 29,526 | cc | C++ | HLTrigger/HLTcore/plugins/TriggerSummaryProducerAOD.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | HLTrigger/HLTcore/plugins/TriggerSummaryProducerAOD.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | HLTrigger/HLTcore/plugins/TriggerSummaryProducerAOD.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | /** \class TriggerSummaryProducerAOD
*
* See header file for documentation
*
*
* \author Martin Grunewald
*
*/
#include <ostream>
#include <algorithm>
#include <memory>
#include <typeinfo>
#include "HLTrigger/HLTcore/interface/TriggerSummaryProducerAOD.h"
#include "FWCore/ParameterSet/interface/ConfigurationD... | 41.23743 | 174 | 0.715742 | nistefan |
b5976e5b63e16087f73c50ef909cff93f019e8ee | 3,604 | cpp | C++ | 160. Intersection of Two Linked Lists.cpp | NeoYY/Leetcode-Solution | 0f067973d3c296ac7f2fa85a89dbdd5295b0b037 | [
"MIT"
] | null | null | null | 160. Intersection of Two Linked Lists.cpp | NeoYY/Leetcode-Solution | 0f067973d3c296ac7f2fa85a89dbdd5295b0b037 | [
"MIT"
] | null | null | null | 160. Intersection of Two Linked Lists.cpp | NeoYY/Leetcode-Solution | 0f067973d3c296ac7f2fa85a89dbdd5295b0b037 | [
"MIT"
] | null | null | null | /*
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
begin to intersect at node c1.
Example 1:
Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3
Output: Reference of the node with val... | 27.937984 | 307 | 0.549945 | NeoYY |
b598a37351cc6a8f1b27572dc377a2b943fccdec | 702 | cpp | C++ | src/Main.cpp | PetokLorand/ETL | 9aebbd4044a1604813163b1104aa5d4d017befa9 | [
"MIT"
] | null | null | null | src/Main.cpp | PetokLorand/ETL | 9aebbd4044a1604813163b1104aa5d4d017befa9 | [
"MIT"
] | null | null | null | src/Main.cpp | PetokLorand/ETL | 9aebbd4044a1604813163b1104aa5d4d017befa9 | [
"MIT"
] | null | null | null | #include <iostream>
#include "ExpressionTemplates.hpp"
#include "Argument.hpp"
class Scalar
: public et::BaseExpression<Scalar>
, public et::AdditionExpressionGenerator<Scalar>
{
public:
Scalar(int value) : m_value(value) {}
et::Int32Expression operator()(auto&&) { return m_value; }
private:
int... | 18.972973 | 62 | 0.579772 | PetokLorand |
b59d061bdf40f8b2cf48f1fd6efb78107245da4a | 6,542 | cc | C++ | modules/drivers/apriltags/april_tags.cc | positionering/apollo | 53d961f054f8a1c2e647337d5b0108985e289d38 | [
"Apache-2.0"
] | 1 | 2019-05-14T18:36:40.000Z | 2019-05-14T18:36:40.000Z | modules/drivers/apriltags/april_tags.cc | positionering/apollo | 53d961f054f8a1c2e647337d5b0108985e289d38 | [
"Apache-2.0"
] | null | null | null | modules/drivers/apriltags/april_tags.cc | positionering/apollo | 53d961f054f8a1c2e647337d5b0108985e289d38 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2018 The Apollo Authors. 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
... | 30.427907 | 108 | 0.594314 | positionering |
b59ecc142d877b7f31aaa902ba1d6fd25a6f26f0 | 2,143 | cpp | C++ | src/yb/redisserver/cpp_redis/tests/sources/builders/error_builder.cpp | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-01-15T00:24:31.000Z | 2021-01-15T00:24:31.000Z | src/yb/redisserver/cpp_redis/tests/sources/builders/error_builder.cpp | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/redisserver/cpp_redis/tests/sources/builders/error_builder.cpp | pritamdamania87/yugabyte-db | 70355f6c9248356e84cf21588013ea477fd04a5d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | #include <gtest/gtest.h>
#include <cpp_redis/builders/error_builder.hpp>
#include <cpp_redis/redis_error.hpp>
TEST(ErrorBuilder, WithNoData) {
cpp_redis::builders::error_builder builder;
EXPECT_EQ(false, builder.reply_ready());
}
TEST(ErrorBuilder, WithNotEnoughData) {
cpp_redis::builders::error_builder ... | 23.811111 | 47 | 0.673355 | pritamdamania87 |
b5a06157c1baed2af9b30832f44c7454a5951ec9 | 403 | cpp | C++ | duration.cpp | kuldeep3/C-Programming- | 86db928902c752434cce417eae846d6a6384ae31 | [
"MIT"
] | 1 | 2019-09-14T17:59:11.000Z | 2019-09-14T17:59:11.000Z | duration.cpp | kuldeep3/C-Programming- | 86db928902c752434cce417eae846d6a6384ae31 | [
"MIT"
] | null | null | null | duration.cpp | kuldeep3/C-Programming- | 86db928902c752434cce417eae846d6a6384ae31 | [
"MIT"
] | 3 | 2019-10-01T15:51:17.000Z | 2019-10-02T16:31:08.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
while (n--)
{
int sh,sm,eh,em,min,hr;
cin>>sh>>sm>>eh>>em;
if (em<sm)
{
em = em+60;
min = em-sm;
eh = eh - 1;
}
else
{
min = ... | 16.12 | 33 | 0.334988 | kuldeep3 |
b5a0d7048547191ff3f7eeabb7147f26ef9b0c1b | 5,403 | cpp | C++ | libs/unicode/src/utf/utf32_codecvt.cpp | cordarei/boost-unicode | edfe39ff623c286cb157c7495ffeeee4dfd2d319 | [
"BSL-1.0"
] | 1 | 2019-02-26T07:46:39.000Z | 2019-02-26T07:46:39.000Z | libs/unicode/src/utf/utf32_codecvt.cpp | cordarei/boost-unicode | edfe39ff623c286cb157c7495ffeeee4dfd2d319 | [
"BSL-1.0"
] | null | null | null | libs/unicode/src/utf/utf32_codecvt.cpp | cordarei/boost-unicode | edfe39ff623c286cb157c7495ffeeee4dfd2d319 | [
"BSL-1.0"
] | null | null | null | // Define a UTF-32 codecvt fact.
// Though this file is under the Boost license, it is NOT (or not yet) part of
// Boost!
// Copyright Graham Barnett, Rogier van Dalen 2005.
// Use, modification, and distribution are subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy ... | 23.38961 | 78 | 0.646863 | cordarei |