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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
017f0ae2824d212ca853c317d449cc39a5922ed6 | 994 | cpp | C++ | Axis.Mint/services/language/primitives/CompositeParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Mint/services/language/primitives/CompositeParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Mint/services/language/primitives/CompositeParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "CompositeParser.hpp"
#include "AtomicExpressionParser.hpp"
namespace aslpp = axis::services::language::primitives;
aslpp::CompositeParser::CompositeParser( void )
{
/* nothing to do here */
}
aslpp::CompositeParser::~CompositeParser( void )
{
// delete owned objects
_ownedExpressionObjs.ClearAndDestroy(... | 22.590909 | 90 | 0.762575 | renato-yuzup |
0180485b7e2a55e9e476d31929307f8bfda23920 | 16,374 | cpp | C++ | Source/Particle.cpp | balos1/PeleC | 4b81ee688f36e602e50b30683c8ec351efff9357 | [
"BSD-3-Clause-LBNL"
] | 84 | 2018-10-25T19:07:30.000Z | 2022-03-05T09:04:28.000Z | Source/Particle.cpp | balos1/PeleC | 4b81ee688f36e602e50b30683c8ec351efff9357 | [
"BSD-3-Clause-LBNL"
] | 145 | 2018-12-03T20:12:59.000Z | 2022-03-28T21:14:43.000Z | Source/Particle.cpp | balos1/PeleC | 4b81ee688f36e602e50b30683c8ec351efff9357 | [
"BSD-3-Clause-LBNL"
] | 55 | 2018-11-05T11:52:49.000Z | 2022-03-19T13:34:07.000Z | #include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include "PeleC.H"
using namespace amrex;
#ifdef AMREX_PARTICLES
namespace {
bool virtual_particles_set = false;
// Containers for the real "active" Particles
SprayParticleContainer* SprayPC = 0;
// Container for temporary, virtual Partic... | 29.291592 | 79 | 0.660254 | balos1 |
018294fd5509ae7521e5e5a383df94681bbfb67e | 10,422 | cpp | C++ | src/meshGenerateCellMetrics.cpp | SureshMurugaiyan/FiniteVolumeSolver2D_PISO_HD | ad741b025669a56d43617a0af78399692a55e5bd | [
"MIT"
] | 2 | 2021-02-06T06:14:51.000Z | 2021-04-15T09:51:50.000Z | src/meshGenerateCellMetrics.cpp | SureshMurugaiyan/FiniteVolumeSolver2D_PISO_HD | ad741b025669a56d43617a0af78399692a55e5bd | [
"MIT"
] | null | null | null | src/meshGenerateCellMetrics.cpp | SureshMurugaiyan/FiniteVolumeSolver2D_PISO_HD | ad741b025669a56d43617a0af78399692a55e5bd | [
"MIT"
] | null | null | null | #include "mesh.h"
void generateCellCenters(mesh_t *mesh);
void generateFaceCenters(mesh_t *mesh);
void generateFaceAreas(mesh_t *mesh);
void generateCellVolumes(mesh_t *mesh);
void generateCellFaceInterpolationFactor(mesh_t *mesh);
void generateCellFaceExtrapolationFactor(mesh_t *mesh);
void generateCellToCellDistanc... | 25.733333 | 115 | 0.650835 | SureshMurugaiyan |
0185e95747b1b7316357c3847c75c93bc183a3d3 | 11,913 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/images/xpm.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/implement/oglplus/images/xpm.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/implement/oglplus/images/xpm.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /**
* @file oglplus/images/xpm.ipp
* @brief Implementation if XPM image loader
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#inc... | 20.469072 | 81 | 0.601192 | vif |
018c82288e4614d7f4c8de716bc8fc61944ac5f9 | 1,102 | hh | C++ | include/WCSimEventAction.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimEventAction.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimEventAction.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | #pragma once
#include "G4UserEventAction.hh"
#include "G4ThreeVector.hh"
#include "G4Types.hh"
#include "G4ios.hh"
#include "WCSimDetectorConstruction.hh"
#include "G4TrajectoryContainer.hh"
#include "WCSimWCHit.hh"
#include "WCSimWCDigi.hh"
class WCSimEmissionProfileMaker;
class WCSimRunAction;
class WCSimPrimaryGe... | 25.627907 | 104 | 0.821234 | chipsneutrino |
018d64010846da43a906e92c56c2e244c7b93618 | 1,176 | cc | C++ | sorting/insertion_sort.cc | knguyenc/algorithms | 4f61d692c986f6200eb1a52de022366a172aaa6f | [
"MIT"
] | null | null | null | sorting/insertion_sort.cc | knguyenc/algorithms | 4f61d692c986f6200eb1a52de022366a172aaa6f | [
"MIT"
] | null | null | null | sorting/insertion_sort.cc | knguyenc/algorithms | 4f61d692c986f6200eb1a52de022366a172aaa6f | [
"MIT"
] | null | null | null | #include "sorting_util.h"
namespace algorithm {
namespace sorting {
template <class T, size_t N>
void InsertionSort(T (&array)[N]) {
for (int j = 1; j < (signed)N; j++) {
T key = array[j];
int i = j - 1;
while (i >= 0 && array[i] > key) {
array[i + 1] = array[i];
i--;
}
array[i + 1] ... | 28 | 77 | 0.57398 | knguyenc |
01a24cda53d74d0c43926d53288073e0432f2e11 | 1,271 | cpp | C++ | common_classes/static_meshes_2D/primitives/quad.cpp | michalbb1/opengl4-tutorials-mbsoftworks | ddd5ac157173ccbac5baf864afa34ecb372e2f8a | [
"MIT"
] | 51 | 2018-06-01T05:05:20.000Z | 2022-03-03T16:10:20.000Z | common_classes/static_meshes_2D/primitives/quad.cpp | talkad/animation3D | 44213fe19a1d3c25793de29ce63fcea96c5b8f41 | [
"Apache-2.0"
] | null | null | null | common_classes/static_meshes_2D/primitives/quad.cpp | talkad/animation3D | 44213fe19a1d3c25793de29ce63fcea96c5b8f41 | [
"Apache-2.0"
] | 16 | 2019-04-03T04:35:29.000Z | 2022-02-16T01:27:00.000Z | // GLM
#include <glm/glm.hpp>
// Project
#include "quad.h"
namespace static_meshes_2D {
glm::vec2 Quad::vertices[4] =
{
glm::vec2(0.0f, 1.0f), // Top-left point
glm::vec2(0.0f, 0.0f), // Bottom-left point
glm::vec2(1.0f, 1.0f), // Top-right point
glm::vec2(1.0f, 0.0f) // Bottom-right point
};
Quad::... | 20.5 | 65 | 0.652242 | michalbb1 |
01a77f22a75dd53911bd86946b171f796ad6c171 | 2,693 | cxx | C++ | Src/Decimation/qslim-2.1/mixkit/src/MxFitFrame-vis.cxx | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/Decimation/qslim-2.1/mixkit/src/MxFitFrame-vis.cxx | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/Decimation/qslim-2.1/mixkit/src/MxFitFrame-vis.cxx | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /************************************************************************
Frame visualization functions.
This code requires OpenGL. It is included here, separately from the
other MxFitFrame code, so that command line programs do not need to
link OpenGL libraries.
Copyright (C) 1998 Michael Garland. See "... | 28.956989 | 74 | 0.552544 | AspdenGroup |
01af6ff5a4350a6d768f9228082bc0da58ebed32 | 2,989 | cpp | C++ | src/imageprovider.cpp | dario-ljubic/gaze_test | bbee1dce5df7ccb69f911adb3301aeee75b18f40 | [
"MIT"
] | 18 | 2016-03-09T00:19:16.000Z | 2021-01-15T23:38:58.000Z | src/imageprovider.cpp | dario-ljubic/gaze_test | bbee1dce5df7ccb69f911adb3301aeee75b18f40 | [
"MIT"
] | 8 | 2015-09-29T10:13:01.000Z | 2018-01-15T14:04:33.000Z | src/imageprovider.cpp | dario-ljubic/gaze_test | bbee1dce5df7ccb69f911adb3301aeee75b18f40 | [
"MIT"
] | 13 | 2015-09-29T09:48:54.000Z | 2021-01-19T10:24:31.000Z | #include "imageprovider.h"
#include <fstream>
#include <boost/tokenizer.hpp>
using namespace std;
typedef boost::tokenizer<boost::char_separator<char> > CharTokenizer;
/**
* @brief CvVideoImageProvider::CvVideoImageProvider
*/
CvVideoImageProvider::CvVideoImageProvider()
{
}
CvVideoImageProvider::CvVideoImageP... | 23.170543 | 85 | 0.612914 | dario-ljubic |
01b106d907668b2eb5e33526a5a8da32bb8e38a1 | 3,484 | hpp | C++ | apps/openmw/mwgui/review.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/review.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/review.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef MWGUI_REVIEW_H
#define MWGUI_REVIEW_H
#include "windowbase.hpp"
#include "widgets.hpp"
namespace MWGui
{
class WindowManager;
}
/*
This file contains the dialog for reviewing the generated character.
Layout is defined by resources/mygui/openmw_chargen_review.layout.
*/
namespace MWGui
{
class Review... | 34.49505 | 164 | 0.673651 | Bodillium |
01b5958b7cc2296b98128f23f8ec765d7c6dba29 | 434 | cpp | C++ | Tools/tests-host/hrt.cpp | teamtiltrotor/PX4Firmware | ce6026583a59e981d1fd10172c1dd69f94526e87 | [
"BSD-3-Clause"
] | 18 | 2015-06-11T15:39:39.000Z | 2022-01-13T03:58:19.000Z | Tools/tests-host/hrt.cpp | teamtiltrotor/PX4Firmware | ce6026583a59e981d1fd10172c1dd69f94526e87 | [
"BSD-3-Clause"
] | 6 | 2015-08-20T22:34:34.000Z | 2020-04-17T03:21:46.000Z | Tools/tests-host/hrt.cpp | teamtiltrotor/PX4Firmware | ce6026583a59e981d1fd10172c1dd69f94526e87 | [
"BSD-3-Clause"
] | 34 | 2015-06-11T15:39:23.000Z | 2021-03-06T09:25:12.000Z | #include <sys/time.h>
#include <inttypes.h>
#include <drivers/drv_hrt.h>
#include <stdio.h>
hrt_abstime hrt_absolute_time() {
struct timeval te;
gettimeofday(&te, NULL); // get current time
hrt_abstime us = static_cast<uint64_t>(te.tv_sec) * 1e6 + te.tv_usec; // caculate us
return us;
}
hrt_abstime h... | 25.529412 | 88 | 0.705069 | teamtiltrotor |
01c2eb7ade36bded5de0b7994488df74f4e3bde0 | 358 | cpp | C++ | Chapter5/ex10.cpp | leonardoaraujodf/cpp_prog | d8d6bea8fa942faa162f0da8221a034e9173bddb | [
"MIT"
] | null | null | null | Chapter5/ex10.cpp | leonardoaraujodf/cpp_prog | d8d6bea8fa942faa162f0da8221a034e9173bddb | [
"MIT"
] | null | null | null | Chapter5/ex10.cpp | leonardoaraujodf/cpp_prog | d8d6bea8fa942faa162f0da8221a034e9173bddb | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
using namespace std;
unsigned int rows;
cout << "Enter number of rows: ";
cin >> rows;
for(unsigned int i = 0; i < rows; i++)
{
for(unsigned int k = 0; k < rows-i-1; k++)
cout << ".";
for(unsigned int k = 0; k < i+1; k++)
cout << "*";
... | 17.9 | 48 | 0.477654 | leonardoaraujodf |
01c726073b0957c9f2fb6466411be7b26295e6cf | 462 | cxx | C++ | misc/prompt.cxx | coallege/Wi21.CIS.D022B.02Z | bc1b55acbc8b0505d89532fc00a55bd5a95efff1 | [
"MIT"
] | null | null | null | misc/prompt.cxx | coallege/Wi21.CIS.D022B.02Z | bc1b55acbc8b0505d89532fc00a55bd5a95efff1 | [
"MIT"
] | null | null | null | misc/prompt.cxx | coallege/Wi21.CIS.D022B.02Z | bc1b55acbc8b0505d89532fc00a55bd5a95efff1 | [
"MIT"
] | null | null | null | #include <exception>
#include <string>
#include <functional>
#include <iostream>
using namespace std;
template <class T>
auto prompt(function<T(string)> &p) noexcept -> T *{
cout << "> ";
cin.clear();
cin.ignore();
string line;
getline(cin, line);
try {
return p(line);
} catch (...) {
return nullptr;
}
}
... | 17.769231 | 74 | 0.640693 | coallege |
01c88975c67d870501d1320c6bec2eae913caaab | 4,451 | cpp | C++ | src/atta/graphicsSystem/rendererAPIs/openGL/openGLShaderGroup.cpp | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-06-18T00:48:13.000Z | 2021-06-18T00:48:13.000Z | src/atta/graphicsSystem/rendererAPIs/openGL/openGLShaderGroup.cpp | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 6 | 2021-03-11T21:01:27.000Z | 2021-09-06T19:41:46.000Z | src/atta/graphicsSystem/rendererAPIs/openGL/openGLShaderGroup.cpp | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-09-04T19:54:41.000Z | 2021-09-04T19:54:41.000Z | //--------------------------------------------------
// Atta Graphics System
// openGLShaderGroup.cpp
// Date: 2021-09-09
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/graphicsSystem/rendererAPIs/openGL/openGLShaderGroup.h>
#include <atta/graphicsSystem/rendererAPIs/openG... | 28.716129 | 138 | 0.585711 | Brenocq |
01d0be3908c753fcefb4916f92c346601a74a418 | 925 | cpp | C++ | src/hal/FFifo.cpp | charanyaarvind/StratifyAPI | adfd1bc8354489378d53c6acd77ebedad5790b4f | [
"BSD-3-Clause"
] | null | null | null | src/hal/FFifo.cpp | charanyaarvind/StratifyAPI | adfd1bc8354489378d53c6acd77ebedad5790b4f | [
"BSD-3-Clause"
] | null | null | null | src/hal/FFifo.cpp | charanyaarvind/StratifyAPI | adfd1bc8354489378d53c6acd77ebedad5790b4f | [
"BSD-3-Clause"
] | null | null | null | #include "hal/FFifo.hpp"
using namespace hal;
FFifo::FFifo(){}
int FFifo::init(const char * path, const FFifoAttr & attr, int o_flags){
int ret;
ret = set_error_number_if_error(open(path, o_flags | FFifo::READWRITE));
if( ret < 0 ){
return ret;
}
ret = set_attr(attr);
if( ret < 0 ){... | 22.560976 | 83 | 0.690811 | charanyaarvind |
01d2f7a107610bd07e5b90b44ab02313c7ec0340 | 1,105 | cpp | C++ | lib/base_cpp/locale_guard.cpp | voddan/iupac_fsm_parser | bc1fac3100500aa1e5fccf4022ef9284372546c1 | [
"MIT"
] | 1 | 2018-12-11T08:56:00.000Z | 2018-12-11T08:56:00.000Z | lib/base_cpp/locale_guard.cpp | voddan/iupac_fsm_parser | bc1fac3100500aa1e5fccf4022ef9284372546c1 | [
"MIT"
] | null | null | null | lib/base_cpp/locale_guard.cpp | voddan/iupac_fsm_parser | bc1fac3100500aa1e5fccf4022ef9284372546c1 | [
"MIT"
] | null | null | null | /****************************************************************************
* Copyright (C) 2011 EPAM Systems
*
* This file is part of Indigo toolkit.
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 3 as published by the Free Software
* Foundation an... | 27.625 | 77 | 0.61086 | voddan |
01d43d2e19451a1951d83f6fe700b112c0bab93a | 2,048 | cpp | C++ | src/DescentEngine/src/SoundEngine/SoundEngineSDL.cpp | poseidn/KungFoo | 35fa33bd5a9abb40ecf485db2fc038ca52c48a2d | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | 7 | 2016-01-28T14:28:10.000Z | 2021-09-03T17:33:37.000Z | src/DescentEngine/src/SoundEngine/SoundEngineSDL.cpp | poseidn/KungFoo | 35fa33bd5a9abb40ecf485db2fc038ca52c48a2d | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | 1 | 2016-03-19T11:34:36.000Z | 2016-03-24T21:35:06.000Z | src/DescentEngine/src/SoundEngine/SoundEngineSDL.cpp | poseidn/KungFoo | 35fa33bd5a9abb40ecf485db2fc038ca52c48a2d | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | 3 | 2016-03-10T14:23:40.000Z | 2019-03-17T16:21:21.000Z | /*
Copyright (C) 2016 Thomas Hauth. All Rights Reserved.
* Written by Thomas Hauth (Thomas.Hauth@web.de)
This file is part of Kung Foo Barracuda.
Kung Foo Barracuda 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... | 29.681159 | 86 | 0.747559 | poseidn |
01dbf3b835c2dfe98bf98f9fc1644a811659d5fa | 129 | cc | C++ | tensorflow-yolo-ios/dependencies/google/protobuf/proto3_lite_unittest.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/google/protobuf/proto3_lite_unittest.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/google/protobuf/proto3_lite_unittest.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:32a3cb6eeac2cc0c85fe3a8ab96c96dedb15893561c1f2bf648a4517600f112b
size 5664
| 32.25 | 75 | 0.883721 | initialz |
01dc6e6ae731324c53c673d012b562559a5c2379 | 8,477 | hpp | C++ | include/york/Log.hpp | mxtt-mmxix/York-Engine | a4592757b2fe52b4737c87ba59546dce2e90b9dd | [
"BSD-2-Clause"
] | null | null | null | include/york/Log.hpp | mxtt-mmxix/York-Engine | a4592757b2fe52b4737c87ba59546dce2e90b9dd | [
"BSD-2-Clause"
] | null | null | null | include/york/Log.hpp | mxtt-mmxix/York-Engine | a4592757b2fe52b4737c87ba59546dce2e90b9dd | [
"BSD-2-Clause"
] | null | null | null | /*
* BSD 2-Clause License
*
* Copyright (c) 2022 Matthew McCall
* 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 notic... | 25.765957 | 172 | 0.621918 | mxtt-mmxix |
01e7080d4de8a7d32c6792c345e566c4228400d6 | 544 | cpp | C++ | src/Pizza/Margarita.cpp | BourgeoisBenjamin/Epitech-ThePlazza | 493eb3227a200d39311956f46c9d8cecb3f5fc6e | [
"MIT"
] | null | null | null | src/Pizza/Margarita.cpp | BourgeoisBenjamin/Epitech-ThePlazza | 493eb3227a200d39311956f46c9d8cecb3f5fc6e | [
"MIT"
] | null | null | null | src/Pizza/Margarita.cpp | BourgeoisBenjamin/Epitech-ThePlazza | 493eb3227a200d39311956f46c9d8cecb3f5fc6e | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** CCP_plazza_2019
** File description:
** Margarita
*/
#include "Stock/Stock.hpp"
#include "Pizza/Margarita.hpp"
using namespace Plazza;
Margarita::Margarita(PizzaSize size, long cookingMultiplier) :
APizza(PizzaType::Margarita, size, cookingMultiplier)
{
_ingredients[Ingredient::DOE... | 20.923077 | 78 | 0.722426 | BourgeoisBenjamin |
01e849c3bf5ff41392387fc6e525a3f48d93c6cf | 4,193 | cpp | C++ | KickstartPracticeRound2018D_Sums_of_Sums/KickstartPracticeRound2018D_Sums_of_Sums.cpp | nglee/problem_solving | d05941281d0a4b0e853abf5a13bcc849cc1a6552 | [
"MIT"
] | null | null | null | KickstartPracticeRound2018D_Sums_of_Sums/KickstartPracticeRound2018D_Sums_of_Sums.cpp | nglee/problem_solving | d05941281d0a4b0e853abf5a13bcc849cc1a6552 | [
"MIT"
] | null | null | null | KickstartPracticeRound2018D_Sums_of_Sums/KickstartPracticeRound2018D_Sums_of_Sums.cpp | nglee/problem_solving | d05941281d0a4b0e853abf5a13bcc849cc1a6552 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
using namespace std;
vector<unsigned long long> sums;
#if 1
// Solution with Segment Tree
#include <memory>
#include <cmath>
using namespace std;
class SegTree
{
public:
SegTree(int num_elems)
{
a = mak... | 25.567073 | 167 | 0.532554 | nglee |
5435c2b5e2afc6909d94a27ef3fc71533f977188 | 63,349 | cpp | C++ | WRK-V1.2/PUBLIC/INTERNAL/WINDOWS/SHELL/themes/uxtheme/imagefile.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/PUBLIC/INTERNAL/WINDOWS/SHELL/themes/uxtheme/imagefile.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/PUBLIC/INTERNAL/WINDOWS/SHELL/themes/uxtheme/imagefile.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | //---------------------------------------------------------------------------
// ImageFile.cpp - implements the drawing API for bgtype = ImageFile
//---------------------------------------------------------------------------
#include "stdafx.h"
#include "Render.h"
#include "Utils.h"
#include "tmutils.h"
#include "rgn.... | 30.677482 | 122 | 0.530237 | intj-t |
5435f1043df0c66fd810ab1d94ba9bfa09cb8171 | 995 | cxx | C++ | Source/Library/Ultra/GFX/Surface.cxx | larioteo/playground | b494678c1cdc55425723d6625f0d6b6635468ac8 | [
"MIT"
] | null | null | null | Source/Library/Ultra/GFX/Surface.cxx | larioteo/playground | b494678c1cdc55425723d6625f0d6b6635468ac8 | [
"MIT"
] | null | null | null | Source/Library/Ultra/GFX/Surface.cxx | larioteo/playground | b494678c1cdc55425723d6625f0d6b6635468ac8 | [
"MIT"
] | null | null | null | module Ultra.GFX.Surface;
import Ultra.Log;
#ifdef APP_PLATFORM_WINDOWS
#include "Platform/GFX/OpenGL/GLContext.h"
#include "Platform/GFX/Vulkan/VKContext.h"
#endif
namespace Ultra {
Reference<Context> Context::Create(void *window) {
#ifdef APP_PLATFORM_WINDOWS
switch (API) {
case G... | 24.875 | 78 | 0.58191 | larioteo |
54394cda4bc4759ef38e2b0a64013e5ceee20d54 | 449 | cpp | C++ | src/qt/SubmitWidget.cpp | RadekManak/tomatoes-client | 9ec964d98aad220df0190e9f43ba09c10c5b3c4b | [
"MIT"
] | null | null | null | src/qt/SubmitWidget.cpp | RadekManak/tomatoes-client | 9ec964d98aad220df0190e9f43ba09c10c5b3c4b | [
"MIT"
] | null | null | null | src/qt/SubmitWidget.cpp | RadekManak/tomatoes-client | 9ec964d98aad220df0190e9f43ba09c10c5b3c4b | [
"MIT"
] | null | null | null | #include "SubmitWidget.h"
#include "ui_SubmitWidget.h"
SubmitWidget::SubmitWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::SubmitWidget)
{
ui->setupUi(this);
connect(ui->submitButton, &QPushButton::clicked, this, &SubmitWidget::submit_pomodoro);
}
SubmitWidget::~SubmitWidget()
{
delete ui;
}... | 22.45 | 91 | 0.706013 | RadekManak |
543a0342fdc98cad09e46106f8760f3087cbc337 | 4,729 | cpp | C++ | Tracker/Archive/Tracker_horst_hardware_trigger/Pylon_with_OpenCV/init_func.cpp | horsto/2P_tracking | d3eab554841a5f746a9231d770777f718267da6d | [
"MIT"
] | 1 | 2018-07-16T07:08:42.000Z | 2018-07-16T07:08:42.000Z | Tracker/Archive/Tracker_horst_hardware_trigger/Pylon_with_OpenCV/init_func.cpp | horsto/2P_tracking | d3eab554841a5f746a9231d770777f718267da6d | [
"MIT"
] | null | null | null | Tracker/Archive/Tracker_horst_hardware_trigger/Pylon_with_OpenCV/init_func.cpp | horsto/2P_tracking | d3eab554841a5f746a9231d770777f718267da6d | [
"MIT"
] | 1 | 2018-07-16T07:08:46.000Z | 2018-07-16T07:08:46.000Z | #include "stdafx.h"
#include <sstream>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <vector>
// Include files to use the PYLON API.
#include <pylon/PylonIncludes.h>
#ifdef PYLON_WIN_BUILD
# include <pylon/PylonGUI.h>
#endif
// Namespace for using pylon objects.
using namespace Pylon;
// Names... | 41.121739 | 129 | 0.714527 | horsto |
543e1fa088a40ccfcc867658695aa0fb1ec74ad6 | 1,148 | hpp | C++ | Board.hpp | yuvalmarmer/messageboard-b | cf6a6a0d6181745126556cab4f957e1e76adf71b | [
"MIT"
] | null | null | null | Board.hpp | yuvalmarmer/messageboard-b | cf6a6a0d6181745126556cab4f957e1e76adf71b | [
"MIT"
] | null | null | null | Board.hpp | yuvalmarmer/messageboard-b | cf6a6a0d6181745126556cab4f957e1e76adf71b | [
"MIT"
] | null | null | null | #include <string>
#include "Direction.hpp"
#include <iostream>
#include <vector>
#include <climits>
using namespace std;
namespace ariel {
class Board{
public :
Board();
~Board();
void post(unsigned int row, unsigned int column, Direction d, std::string message);
std::string read(unsigned int ... | 33.764706 | 103 | 0.716899 | yuvalmarmer |
54407a9f5f13b8e0d9ebaefb9f5bda04206179c8 | 458 | hpp | C++ | inc/hw/DataCopyBiases_Linear.hpp | TeCSAR-UNCC/DeepDive | 9af1bd90a89846ffb4802077c21a1be8e9ca9e8e | [
"BSD-4-Clause-UC"
] | 14 | 2020-07-21T12:56:01.000Z | 2022-01-10T04:06:50.000Z | inc/hw/DataCopyBiases_Linear.hpp | TeCSAR-UNCC/DeepDive | 9af1bd90a89846ffb4802077c21a1be8e9ca9e8e | [
"BSD-4-Clause-UC"
] | null | null | null | inc/hw/DataCopyBiases_Linear.hpp | TeCSAR-UNCC/DeepDive | 9af1bd90a89846ffb4802077c21a1be8e9ca9e8e | [
"BSD-4-Clause-UC"
] | 1 | 2022-01-10T02:50:39.000Z | 2022-01-10T02:50:39.000Z | #ifndef __COPY_BIASES_PW_HEADER__
#define __COPY_BIASES_PW_HEADER__
#include <global/net_headers.hpp>
template <
unsigned t_LAYER_i_LENGTH,
unsigned t_LAYER_i_OFFSET>
void copy_biases_linear(dType_8u *biases,
dType_4u *biases_local_1)
{
//Layer 1
LOOP_0_BQ_PW:
for (int idx = 0; idx... | 22.9 | 61 | 0.69869 | TeCSAR-UNCC |
544200c567740fa07bb218eddec44bf5c9b04712 | 566 | cpp | C++ | verilator/sample_sc_bfm_3/test_2.cpp | vengineer-systemverilog/All-of-SystemVerilog | 6d7b167bfde6a04c84a438015fe42c12aa491193 | [
"Apache-2.0"
] | 14 | 2020-10-17T11:15:23.000Z | 2022-02-17T22:09:58.000Z | verilator/sample_sc_bfm_3/test_2.cpp | vengineer-systemverilog/All-of-SystemVerilog | 6d7b167bfde6a04c84a438015fe42c12aa491193 | [
"Apache-2.0"
] | 4 | 2020-10-17T13:52:42.000Z | 2020-10-25T12:41:16.000Z | verilator/sample_sc_bfm_1/test_2.cpp | vengineer-systemverilog/All-of-SystemVerilog | 6d7b167bfde6a04c84a438015fe42c12aa491193 | [
"Apache-2.0"
] | 3 | 2020-10-17T14:31:31.000Z | 2021-04-13T07:38:20.000Z |
#include "bfm.h"
void bfm::test_main(){
uint32_t exp[0x10000>>2];
cout << "start test_main" << endl;
for(uint32_t addr=0x0;addr<0x10000;addr+=4){
exp[addr>>2] = rand();
write(addr, exp[addr>>2]);
}
cout << "done write" << endl;
for(uint32_t addr=0x0;addr<0x10000;ad... | 26.952381 | 112 | 0.508834 | vengineer-systemverilog |
5444bb4cc571660d323538bc9f615252586ff84b | 520 | cpp | C++ | PrinterSerCodec/Source/PrinterSerMsg.cpp | kwiato88/Services | 0c219dd8882679cd78e359cfee3d7c04e76a429d | [
"MIT"
] | null | null | null | PrinterSerCodec/Source/PrinterSerMsg.cpp | kwiato88/Services | 0c219dd8882679cd78e359cfee3d7c04e76a429d | [
"MIT"
] | null | null | null | PrinterSerCodec/Source/PrinterSerMsg.cpp | kwiato88/Services | 0c219dd8882679cd78e359cfee3d7c04e76a429d | [
"MIT"
] | null | null | null | #include "PrinterSerMsg.hpp"
namespace Networking
{
namespace PrinterSerMsg
{
std::string toString(ID p_id)
{
switch (p_id)
{
case ID::Print : return "Print";
case ID::Stop: return "Stop";
case ID::Dummy: return "Dummy";
default: throw std::runtime_error("Invalid ID");
}
}
ID idFromString(const std::string& p_... | 16.774194 | 62 | 0.659615 | kwiato88 |
5445dba00f95d454f8c8d0a79fd687573876a6a9 | 2,558 | cc | C++ | Frontend/rotation.cc | TongLing916/ICE-BA | b8febd35af821e3bbb5909c66a485b9e234a80fe | [
"Apache-2.0"
] | null | null | null | Frontend/rotation.cc | TongLing916/ICE-BA | b8febd35af821e3bbb5909c66a485b9e234a80fe | [
"Apache-2.0"
] | null | null | null | Frontend/rotation.cc | TongLing916/ICE-BA | b8febd35af821e3bbb5909c66a485b9e234a80fe | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2017-2018 Baidu Robotic Vision 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 ... | 40.603175 | 85 | 0.595387 | TongLing916 |
54464ceac0fa2576e60e36240ad2ced8fa5039f1 | 5,044 | cpp | C++ | erizo/src/test/rtp/SenderBandwidthEstimationTest.cpp | aalonsog/licode | 0602a50a59e36f9435448d647e145137191b8397 | [
"MIT"
] | 1,766 | 2017-02-04T05:30:58.000Z | 2022-03-30T08:20:40.000Z | erizo/src/test/rtp/SenderBandwidthEstimationTest.cpp | ThePolarNight/licode | 667b3cc9a353f6e2b9ad9c464971ab07f678991c | [
"MIT"
] | 544 | 2017-02-02T11:27:08.000Z | 2022-03-02T11:21:57.000Z | erizo/src/test/rtp/SenderBandwidthEstimationTest.cpp | ThePolarNight/licode | 667b3cc9a353f6e2b9ad9c464971ab07f678991c | [
"MIT"
] | 617 | 2017-02-07T11:25:50.000Z | 2022-03-18T02:33:18.000Z | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <rtp/SenderBandwidthEstimationHandler.h>
#include <rtp/RtpHeaders.h>
#include <MediaDefinitions.h>
#include <WebRtcConnection.h>
#include <queue>
#include <string>
#include <vector>
#include "../utils/Mocks.h"
#include "../utils/Tools.h"
#include "../utils/M... | 40.031746 | 110 | 0.771015 | aalonsog |
544c5ba054ad1138a1dbb46bf4d4066b0611d61a | 7,938 | cpp | C++ | NumberWithUnits.cpp | Lioo7/-number-with-units-b | ac73f9ffdfe88241bc42e57836a7fe683e257295 | [
"MIT"
] | null | null | null | NumberWithUnits.cpp | Lioo7/-number-with-units-b | ac73f9ffdfe88241bc42e57836a7fe683e257295 | [
"MIT"
] | null | null | null | NumberWithUnits.cpp | Lioo7/-number-with-units-b | ac73f9ffdfe88241bc42e57836a7fe683e257295 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include "NumberWithUnits.hpp"
using namespace std;
static map<string, map<string, double>> units_map;
const double epsilon = 0.001;
namespace ariel
{
//==============================================constructor=============================================
NumberWithUnits::Num... | 32.532787 | 118 | 0.581381 | Lioo7 |
544fe70d48e92f83a8e094fb15c5f4f144925c0b | 9,150 | hpp | C++ | src/But/Container/BitPackedSequence.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 27 | 2016-01-12T19:30:57.000Z | 2022-01-27T15:52:39.000Z | src/But/Container/BitPackedSequence.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 4 | 2017-04-10T16:30:22.000Z | 2019-04-24T21:02:55.000Z | src/But/Container/BitPackedSequence.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 2 | 2016-12-09T17:09:59.000Z | 2019-07-16T00:19:31.000Z | #pragma once
#include <vector>
#include <limits>
#include <iterator>
#include <algorithm>
#include <type_traits>
#include <But/Mpl/FreeOperators.hpp>
#include <But/Container/OffsetIterator.hpp>
namespace But
{
namespace Container
{
/** @brief container-adapter for transparently saving data bit-wise (as an oposite to ... | 32.795699 | 124 | 0.682732 | el-bart |
5450491365648ea44437126f1ca0c482e92787b0 | 3,526 | hpp | C++ | lib/data_structure/bigint_beta.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | lib/data_structure/bigint_beta.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | 4 | 2022-01-05T14:40:40.000Z | 2022-03-05T08:03:19.000Z | lib/data_structure/bigint_beta.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | #include "fft/ntt.hpp"
#include "template/template.hpp"
/*
* verify:
* https://onlinejudge.u-aizu.ac.jp/problems/NTL_2_A 21/03/02
* https://onlinejudge.u-aizu.ac.jp/problems/NTL_2_B 21/03/02
* https://onlinejudge.u-aizu.ac.jp/problems/NTL_2_F 21/03/02
*/
struct BigInt {
vector<int> data;
Bi... | 31.482143 | 79 | 0.471923 | kuhaku-space |
546b08a4b77badc8441337ccb78f4d70a05e33a0 | 2,958 | cpp | C++ | examples/5_PointColored/src/ofApp.cpp | moebiussurfing/ofxSurfingAnimators | c7bc2b91a430c6b45c81c827a56fa2115f80f3c4 | [
"MIT"
] | 2 | 2020-12-19T10:08:11.000Z | 2021-12-28T10:14:10.000Z | examples/5_PointColored/src/ofApp.cpp | moebiussurfing/ofxSurfingAnimators | c7bc2b91a430c6b45c81c827a56fa2115f80f3c4 | [
"MIT"
] | null | null | null | examples/5_PointColored/src/ofApp.cpp | moebiussurfing/ofxSurfingAnimators | c7bc2b91a430c6b45c81c827a56fa2115f80f3c4 | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
float fps = 60;
ofSetFrameRate(fps);
ofSetCircleResolution(200);
colorAnim.setNameLabel("animColor");
colorAnim.setup();
posAnim.setNameLabel("animPos");
posAnim.setup();
posAnim.setPositionStart(glm::ve... | 22.580153 | 121 | 0.542258 | moebiussurfing |
547a1968c15a9f381512bf2bab5b2a6b5724d440 | 2,506 | cpp | C++ | Engine/Constraints/gkLimitRotConstraint.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | Engine/Constraints/gkLimitRotConstraint.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | Engine/Constraints/gkLimitRotConstraint.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2013 Charlie C.
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software i... | 21.603448 | 79 | 0.61253 | gamekit-developers |
547e463b56ac447d2294b6e014c143de1e4be8c8 | 10,934 | cpp | C++ | src/runthings.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/runthings.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/runthings.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | 1 | 2019-01-24T16:14:56.000Z | 2019-01-24T16:14:56.000Z | // runthings.cpp
#include <algorithm>
#include "runthings.hh"
#include "string_util.hh"
namespace scala {
//--------------------------------------------------------------
Run::Run() {clear();}
//--------------------------------------------------------------
Run::Run(const int& DatasetIndex)
{
clear();
... | 33.437309 | 91 | 0.528078 | maciejwlodek |
547f6cd47506b55877bd59a34dc8a8459228a25b | 6,288 | cpp | C++ | all/native/styles/BalloonPopupStyle.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 155 | 2016-10-20T08:39:13.000Z | 2022-02-27T14:08:32.000Z | all/native/styles/BalloonPopupStyle.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 448 | 2016-10-20T12:33:06.000Z | 2022-03-22T14:42:58.000Z | all/native/styles/BalloonPopupStyle.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 64 | 2016-12-05T16:04:31.000Z | 2022-02-07T09:36:22.000Z | #include "BalloonPopupStyle.h"
#include "graphics/Bitmap.h"
namespace carto {
BalloonPopupStyle::BalloonPopupStyle(const Color& color,
float attachAnchorPointX,
float attachAnchorPointY,
... | 34.549451 | 90 | 0.530693 | JianYT |
548ab03a5b854e65352f5c76ffc6f0c893f547ba | 3,990 | cpp | C++ | Lab4/src/StreetAnaliser.cpp | DavidePistilli173/Computer-Vision | 4066a99f6f6fdc941829d3cd3015565ec0046a2f | [
"Apache-2.0"
] | null | null | null | Lab4/src/StreetAnaliser.cpp | DavidePistilli173/Computer-Vision | 4066a99f6f6fdc941829d3cd3015565ec0046a2f | [
"Apache-2.0"
] | null | null | null | Lab4/src/StreetAnaliser.cpp | DavidePistilli173/Computer-Vision | 4066a99f6f6fdc941829d3cd3015565ec0046a2f | [
"Apache-2.0"
] | null | null | null | #include "StreetAnaliser.hpp"
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <cmath>
using namespace lab4;
StreetAnaliser::StreetAnaliser(cv::Mat img) :
srcImg_{ std::move(img) },
outputImg_{ srcImg_.clone() },
outputWin_{ output_win_name },
lineCanny_{ img_, lane_win_names[s... | 29.776119 | 98 | 0.560902 | DavidePistilli173 |
5491ed23f2314d98bc554a2f93994b1329bb51a9 | 1,774 | cpp | C++ | src/IngredientStock.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | src/IngredientStock.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | src/IngredientStock.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2019
** plazza
** File description:
** IngredientStock source file
*/
#include <string>
#include <IngredientStock.hpp>
namespace plazza
{
IngredientStock::IngredientStock(RegenTime regen_time) noexcept
: stock{5, 5, 5, 5, 5, 5, 5, 5, 5},
last_regen(ClockType::now()),
regen_tim... | 19.711111 | 80 | 0.600338 | Harmos274 |
5493d9fe453195b85fa6ba795badbb29dcad5c90 | 3,320 | cpp | C++ | dynamic_algorithm/xiaosai.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | dynamic_algorithm/xiaosai.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | dynamic_algorithm/xiaosai.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <assert.h>
int Min(int left, int right) {
return left < right ? left : right;
}
int Max(int left, int right) {
return left > right ? left : right;
}
void PrintArray(const std::string& prefix, std::vector<int> &arr) {
std::cout << prefix ;
... | 22.896552 | 112 | 0.466867 | fasShare |
54958518d3fd84861a9c89d3dbefea8cf4bab00c | 347 | cpp | C++ | tests/src/device_properties/src/device_properties_test.cpp | egelwan/Karabiner-Elements | 896439dd2130904275553282063dd7fe4852e1a8 | [
"Unlicense"
] | 5,422 | 2019-10-27T17:51:04.000Z | 2022-03-31T15:45:41.000Z | tests/src/device_properties/src/device_properties_test.cpp | XXXalice/Karabiner-Elements | 52f579cbf60251cf18915bd938eb4431360b763b | [
"Unlicense"
] | 1,310 | 2019-10-28T04:57:24.000Z | 2022-03-31T04:55:37.000Z | tests/src/device_properties/src/device_properties_test.cpp | XXXalice/Karabiner-Elements | 52f579cbf60251cf18915bd938eb4431360b763b | [
"Unlicense"
] | 282 | 2019-10-28T02:36:04.000Z | 2022-03-19T06:18:54.000Z | #include <catch2/catch.hpp>
#include "device_properties.hpp"
TEST_CASE("device_properties") {
auto device_properties = krbn::device_properties(krbn::device_id(0),
nullptr);
REQUIRE(device_properties.get_device_id());
REQUIRE(*(device_properties.get_device_id())... | 31.545455 | 70 | 0.648415 | egelwan |
54aa210d3501d2c68457414f5ce1d7f034ab9561 | 16,810 | cpp | C++ | HelperFunctions/getVkPipelineShaderStageCreateInfoCollection.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkPipelineShaderStageCreateInfoCollection.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkPipelineShaderStageCreateInfoCollection.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 Douglas Kaip
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 34.02834 | 172 | 0.57097 | dkaip |
2a5c8567613d5e853c5aae31f2d7fc55f992588c | 22,385 | cc | C++ | Tools/BladeLangBuild/source/LangBuildApplication.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Tools/BladeLangBuild/source/LangBuildApplication.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Tools/BladeLangBuild/source/LangBuildApplication.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2013/10/30
filename: LangBuildApplication.cc
author: Crazii
purpose: BladeLangBuild will scan all C/C++ files specified,
and looking for string in BTLANG("") format, and save them.
TODO: use pre-processing to exactly get the ra... | 33.56072 | 158 | 0.617467 | OscarGame |
2a64dd644f1674bf29e06f86c702029ef3668737 | 4,823 | cpp | C++ | src/block/nvme/device.cpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | src/block/nvme/device.cpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | src/block/nvme/device.cpp | anand-gs/cplusplus | 97f9115df1920c811531b053fc8b9fc9b1ad2ed2 | [
"MIT"
] | null | null | null | /*
LICENSE: BEGIN
===============================================================================
@author Shan Anand
@email anand.gs@gmail.com
@source https://github.com/shan-anand
@file Device.cpp
@brief NVME device implementation.
===============================================================================
MIT Lic... | 23.299517 | 115 | 0.620775 | anand-gs |
2a672772890424e5d6b164f4cbb7b668378ab9ac | 2,005 | cpp | C++ | src/loop024.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 4 | 2016-11-07T12:50:14.000Z | 2020-04-30T19:48:05.000Z | src/loop024.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 1 | 2017-04-17T12:00:16.000Z | 2017-04-17T12:00:16.000Z | src/loop024.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "demoloop.h"
#include "graphics/2d_primitives.h"
#include "hsl.h"
using namespace std;
using namespace demoloop;
#define NUM_VERTS 3
const uint32_t CYCLE_LENGTH = 10;
class Loop024 : public Demoloop {
public:
... | 26.038961 | 86 | 0.613466 | TannerRogalsky |
2a67b2a4aad4b06f7377cd4f5e846f01a50235a2 | 100,423 | inl | C++ | src/dex/_jit/parser-impl.c.inl | GrieferAtWork/deemon | 16a4899303390c93d6e7b3910aa4d20e7a55d80b | [
"Zlib"
] | 5 | 2019-09-27T01:33:53.000Z | 2021-11-29T16:31:39.000Z | src/dex/_jit/parser-impl.c.inl | GrieferAtWork/deemon | 16a4899303390c93d6e7b3910aa4d20e7a55d80b | [
"Zlib"
] | null | null | null | src/dex/_jit/parser-impl.c.inl | GrieferAtWork/deemon | 16a4899303390c93d6e7b3910aa4d20e7a55d80b | [
"Zlib"
] | 1 | 2019-10-04T09:42:30.000Z | 2019-10-04T09:42:30.000Z | /* Copyright (c) 2018-2021 Griefer@Work *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be held liable for any damages *
... | 26.151823 | 103 | 0.62408 | GrieferAtWork |
2a6a842a42412e2d9d79e2a099f2f69851d4573e | 586 | cc | C++ | x509ls/base/openssl/openssl_environment.cc | skip2/x509ls | cc825523b001d244f8338341f1c39bd0cf5bda80 | [
"MIT"
] | 8 | 2015-03-13T23:37:40.000Z | 2022-01-22T20:53:50.000Z | x509ls/base/openssl/openssl_environment.cc | skip2/x509ls | cc825523b001d244f8338341f1c39bd0cf5bda80 | [
"MIT"
] | null | null | null | x509ls/base/openssl/openssl_environment.cc | skip2/x509ls | cc825523b001d244f8338341f1c39bd0cf5bda80 | [
"MIT"
] | 3 | 2015-03-14T19:52:25.000Z | 2019-06-10T09:06:47.000Z | // X509LS
// Copyright 2013 Tom Harwood
#include "x509ls/base/openssl/openssl_environment.h"
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/ssl.h>
namespace x509ls {
int ScopedOpenSSLEnvironment::recurse_level_ = 0;
ScopedOpenSSLEnvironment::ScopedOpenSSLEnvironment() {
recurse_level_++;
i... | 18.3125 | 55 | 0.720137 | skip2 |
2a6fa1de02fd353364e1f7d72421906ba222ea76 | 1,166 | cpp | C++ | cap03/cap03-ex3_6-01-03-test-random_modern_way_example1.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | 1 | 2020-12-08T10:54:39.000Z | 2020-12-08T10:54:39.000Z | cap03/cap03-ex3_6-01-03-test-random_modern_way_example1.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | null | null | null | cap03/cap03-ex3_6-01-03-test-random_modern_way_example1.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | null | null | null | //2014.02.24 - 2014.02.26 Gustaf - CTG.
/*
Source:
http://www.cplusplus.com/reference/random/uniform_int_distribution/
NOTE: Requieres to use the compiler option: -std=gnu++11
OK - Test that it works.
*/
// uniform_int_distribution
#include <iostream>
#include <random>
int main()
{
const int nrolls = 10000;... | 25.347826 | 105 | 0.662093 | ggaaaff |
2a71ed4578859f8397fcc9cfc075aa729f660804 | 2,004 | cpp | C++ | SmartPtr.cpp | bycicleashphae/zipIOAndroidAsset | 8856b78c2a26b377ad234142fe27a518c618c08e | [
"MIT"
] | null | null | null | SmartPtr.cpp | bycicleashphae/zipIOAndroidAsset | 8856b78c2a26b377ad234142fe27a518c618c08e | [
"MIT"
] | null | null | null | SmartPtr.cpp | bycicleashphae/zipIOAndroidAsset | 8856b78c2a26b377ad234142fe27a518c618c08e | [
"MIT"
] | null | null | null | #include "SmartPtr.h"
#include "IfcFileStream.h"
#include "IMemoryStream.h"
#include "IfcFile.h"
#include "IfcStream.h"
template <typename T>
SmartPtr<T>::SmartPtr(T *p): ptr(p), pUse(new unsigned int(1)) {
}
template <typename T>
SmartPtr<T>::SmartPtr(const SmartPtr& src): ptr(src.ptr), pUse(src.pUse) {
if (pUse){... | 16.7 | 74 | 0.606786 | bycicleashphae |
2a73eade978c7cec3993b8a42d35b1e93e049c2d | 11,884 | cpp | C++ | Switch_Router/Switch_RouterNodeModel.cpp | woutercharle/switch | 632f48fde60d071fdda0b4e7655db0a8354b5ef4 | [
"MIT"
] | null | null | null | Switch_Router/Switch_RouterNodeModel.cpp | woutercharle/switch | 632f48fde60d071fdda0b4e7655db0a8354b5ef4 | [
"MIT"
] | null | null | null | Switch_Router/Switch_RouterNodeModel.cpp | woutercharle/switch | 632f48fde60d071fdda0b4e7655db0a8354b5ef4 | [
"MIT"
] | null | null | null | /*?*************************************************************************
* Switch_RouterNodeModel.cpp
* -----------------------
* copyright : (C) 2013 by Wouter Charle
* email : wouter.charle@gmail.com
*
* DISCLAIMER OF DAMAGES
*... | 27.382488 | 165 | 0.675109 | woutercharle |
2a79c60bd6c2a61dc61ccd9aa1ab468b81bb2887 | 12,356 | cc | C++ | hilti/statement.cc | asilha/hilti | ebfffc7dad31059b43a02eb26abcf7a25f742eb8 | [
"BSD-3-Clause"
] | 46 | 2015-01-21T13:31:25.000Z | 2020-10-27T10:18:03.000Z | hilti/statement.cc | jjchromik/hilti-104-total | 0f9e0cb7114acc157211af24f8254e4b23bd78a5 | [
"BSD-3-Clause"
] | 29 | 2015-03-30T08:23:04.000Z | 2019-05-03T13:11:35.000Z | hilti/statement.cc | jjchromik/hilti-104-total | 0f9e0cb7114acc157211af24f8254e4b23bd78a5 | [
"BSD-3-Clause"
] | 20 | 2015-01-27T12:59:38.000Z | 2020-10-28T21:40:47.000Z |
#include "statement.h"
#include "builder/nodes.h"
#include "declaration.h"
#include "declaration.h"
#include "function.h"
#include "hilti/autogen/instructions.h"
#include "instruction.h"
#include "passes/printer.h"
#include "variable.h"
using namespace hilti;
uint64_t Statement::_counter = 0;
static void _addExpres... | 23.945736 | 100 | 0.585384 | asilha |
2a79cd5478b227aced76718acbdd9f2b24d8cffe | 936 | cpp | C++ | src/Activations/Softmax.cpp | Apiquet/DeepLearningFrameworkFromScratchCpp | 63a6cd57f8f50e75ac7eb9bd5d7ea79ed5253c71 | [
"MIT"
] | null | null | null | src/Activations/Softmax.cpp | Apiquet/DeepLearningFrameworkFromScratchCpp | 63a6cd57f8f50e75ac7eb9bd5d7ea79ed5253c71 | [
"MIT"
] | null | null | null | src/Activations/Softmax.cpp | Apiquet/DeepLearningFrameworkFromScratchCpp | 63a6cd57f8f50e75ac7eb9bd5d7ea79ed5253c71 | [
"MIT"
] | null | null | null | /**
* Softmax activation class implementation
*/
#include "Softmax.hpp"
#include <iostream>
using namespace DeepLearningFramework::Activations;
Softmax::Softmax() {}
void Softmax::forward(Eigen::MatrixXf &out, const Eigen::MatrixXf &x) {
Softmax::equation(out, x);
mForwardInputWithSoftmaxApplied = out;
}
vo... | 25.297297 | 78 | 0.648504 | Apiquet |
2a7d7e48cfbcea9936bd6248f1119dd7c2a271cc | 376 | cpp | C++ | c_plus_plus/white_belt/week1/factorial.cpp | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | 1 | 2019-11-28T09:26:00.000Z | 2019-11-28T09:26:00.000Z | c_plus_plus/white_belt/week1/factorial.cpp | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | c_plus_plus/white_belt/week1/factorial.cpp | raventid/coursera_learning | 115a03f08d30d8ba49f02c9692c289cbfb242358 | [
"MIT"
] | null | null | null | #include <iostream>
int Factorial(int n) {
int result = 1;
for(int i=1; i <= n; i++) {
result = result * i;
}
return result;
}
// Main commented because yandex test do not need it, only Factorial function.
// int main() {
// int number;
// std::cout << "Enter the number:";
// std::cin >> number;
/... | 17.904762 | 78 | 0.577128 | raventid |
2a8687a052b15ce10e4427fe71b9a4febcadd408 | 2,539 | cpp | C++ | NetworkNext/Source/NetworkNext/Private/NetworkNextBlueprint.cpp | networknext/ue4 | 45d2d917dd2ae341cb3b1c74f2c0f275c29aa0d4 | [
"BSD-3-Clause"
] | 5 | 2019-08-06T04:26:54.000Z | 2019-08-07T08:51:35.000Z | NetworkNext/Source/NetworkNext/Private/NetworkNextBlueprint.cpp | networknext/ue4 | 45d2d917dd2ae341cb3b1c74f2c0f275c29aa0d4 | [
"BSD-3-Clause"
] | null | null | null | NetworkNext/Source/NetworkNext/Private/NetworkNextBlueprint.cpp | networknext/ue4 | 45d2d917dd2ae341cb3b1c74f2c0f275c29aa0d4 | [
"BSD-3-Clause"
] | null | null | null | /*
Network Next SDK. Copyright © 2017 - 2022 Network Next, Inc.
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 conditions and th... | 41.622951 | 131 | 0.789681 | networknext |
2a87c47f79aa8db303fc19a55efb8c4c4de86655 | 4,732 | cpp | C++ | libvast/src/transform_steps/rename.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | null | null | null | libvast/src/transform_steps/rename.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | null | null | null | libvast/src/transform_steps/rename.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | null | null | null | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2022 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include <vast/arrow_table_slice_builder.hpp>
#include <... | 32.190476 | 80 | 0.637363 | rdettai |
2a88a0d340b8060b495e0415b5863135133bb206 | 348 | cpp | C++ | HDUOJ/2002.cpp | LzyRapx/Competitive-Programming | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | 81 | 2018-06-03T04:27:45.000Z | 2020-09-13T09:04:12.000Z | HDUOJ/2002.cpp | Walkerlzy/Competitive-algorithm | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | null | null | null | HDUOJ/2002.cpp | Walkerlzy/Competitive-algorithm | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | 21 | 2018-07-11T04:02:38.000Z | 2020-07-18T20:31:14.000Z | #include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<cstdlib>
#include<algorithm>
typedef long long LL;
using namespace std;
#define PI 3.1415927
int main()
{
double r;
double ans;
while(cin>>r){
ans=(4*PI*r*r*r)/3;
printf("%.3lf\n",an... | 14.5 | 25 | 0.640805 | LzyRapx |
2a8d05e15050e5e5370e84e3a85d4cfd6b66a243 | 4,220 | cpp | C++ | test/test_mcts.cpp | pandaant/libmcts | 51cc8c690ddbdf8933c7928d64c70982bde674eb | [
"MIT"
] | 2 | 2019-09-07T09:37:53.000Z | 2019-12-29T19:12:50.000Z | test/test_mcts.cpp | pandaant/libmcts | 51cc8c690ddbdf8933c7928d64c70982bde674eb | [
"MIT"
] | null | null | null | test/test_mcts.cpp | pandaant/libmcts | 51cc8c690ddbdf8933c7928d64c70982bde674eb | [
"MIT"
] | 1 | 2020-06-23T15:23:27.000Z | 2020-06-23T15:23:27.000Z | #include <UnitTest++.h>
#include <mcts.hpp>
#include <avg_backpropagation_strategy.hpp>
#include <max_value_selector.hpp>
#include <min_sample_selector.hpp>
#include "rock_paper_scissors.hpp"
#include "result.hpp"
#include "rps_config.hpp"
#include "rps_node.hpp"
SUITE(MCTSTests) {
using namespace mcts;
typedef ty... | 35.762712 | 145 | 0.650711 | pandaant |
2a9cd886228c8705ad3db52351341677c4525944 | 1,612 | cpp | C++ | examples/Quad/Buttons.cpp | StrathbogieBrewing/AceMenu | a2dcbd75d805c76595f2a5072bf0d23a3f7b6a42 | [
"MIT"
] | 4 | 2020-09-11T01:29:21.000Z | 2021-05-07T04:57:33.000Z | examples/Quad/Buttons.cpp | StrathbogieBrewing/AceMenu | a2dcbd75d805c76595f2a5072bf0d23a3f7b6a42 | [
"MIT"
] | null | null | null | examples/Quad/Buttons.cpp | StrathbogieBrewing/AceMenu | a2dcbd75d805c76595f2a5072bf0d23a3f7b6a42 | [
"MIT"
] | null | null | null | #include "Buttons.h"
#include <Arduino.h>
#define kShortPeriod 50
#define kLongPeriod 500
#define kButtonCount 3
enum { kNoPress = 0, kShortPress, kLongPress };
Buttons::Buttons(uint8_t leftPin, uint8_t centerPin, uint8_t rightPin)
: pins{leftPin, centerPin, rightPin} {}
void Buttons::begin(void) {
... | 22.704225 | 71 | 0.550248 | StrathbogieBrewing |
2aa0ca29f4dd90c00d92776359fb23c170e311ea | 1,686 | cpp | C++ | src/Shay/AABBNode.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Shay/AABBNode.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Shay/AABBNode.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | #include "AABBNode.hpp"
using Shay::AABBNode;
/**
* @brief Sets the parameters of this bounding box
* @param maxX Maximum X coordinate of the bounding box
* @param minX Minimum X coordinate of the bounding box
* @param maxY Maximum Y coordinate of the bounding box
* @param minY Minimum Y coordinate of the bound... | 23.746479 | 84 | 0.680308 | MajorArkwolf |
2aa39fe439c539942bfcf8730f727f788d4984f0 | 1,641 | hpp | C++ | src/ase/ase/graphics/graphics.hpp | Chai112/ase | 3b5cff32f5241ff84055ebe65399bcb707468b48 | [
"MIT"
] | 2 | 2021-01-26T06:32:11.000Z | 2021-02-07T14:03:33.000Z | src/ase/ase/graphics/graphics.hpp | Chai112/ASE | 3b5cff32f5241ff84055ebe65399bcb707468b48 | [
"MIT"
] | null | null | null | src/ase/ase/graphics/graphics.hpp | Chai112/ASE | 3b5cff32f5241ff84055ebe65399bcb707468b48 | [
"MIT"
] | null | null | null | #pragma once
// huge thank you to jrKok
//
// https://forums.x-plane.org/index.php?/forums/topic/214939-implementing-modern-opengl/&tab=comments#comment-1939223
// https://github.com/jrKok/VR-Tools/blob/master/VR_Tools/drawlogic.h
// https://github.com/jrKok/VR-Tools/blob/master/VR_Tools/drawlogic.cpp
namespace ase
... | 25.640625 | 117 | 0.595369 | Chai112 |
2aa69bee5edbed1005d98010e3c68f3d7314ddc2 | 1,512 | cpp | C++ | Shared/Sources/core_simulator.cpp | bbelson2/k64f_coro | a280252a53aca2c8f6a35008b17b2653b4dc71dd | [
"MIT"
] | null | null | null | Shared/Sources/core_simulator.cpp | bbelson2/k64f_coro | a280252a53aca2c8f6a35008b17b2653b4dc71dd | [
"MIT"
] | null | null | null | Shared/Sources/core_simulator.cpp | bbelson2/k64f_coro | a280252a53aca2c8f6a35008b17b2653b4dc71dd | [
"MIT"
] | null | null | null | #ifdef USE_SIMULATOR
#include "core_events.h"
#include "core_simulator.h"
#include "core_scheduler.h"
#include "services.h"
#include <iostream>
#include <thread>
extern "C" void main_cpp();
// Settings
unsigned long event_period_in_ms = 2000;
// Handles to all threads
std::thread tMain;
std::thread tISR;
extern std... | 16.615385 | 79 | 0.659392 | bbelson2 |
2aa8e97223443ff4b0081a5aab19f1a8c34280f4 | 5,933 | cpp | C++ | ax_core/src/io/Directory.cpp | Jasonchan35/axon | cad0468e79e1b3dffd18bd3dc08419b93d9df9db | [
"MIT"
] | null | null | null | ax_core/src/io/Directory.cpp | Jasonchan35/axon | cad0468e79e1b3dffd18bd3dc08419b93d9df9db | [
"MIT"
] | null | null | null | ax_core/src/io/Directory.cpp | Jasonchan35/axon | cad0468e79e1b3dffd18bd3dc08419b93d9df9db | [
"MIT"
] | null | null | null | //
// Directory.cpp
// ax_core
//
// Created by Jason Chan on 12/2/14.
// Copyright (c) 2014 Awenix. All rights reserved.
//
#include <ax/core/io/Directory.h>
#include <ax/core/io/Path.h>
#if ax_OS_Unix
#include <dirent.h>
#include <sys/stat.h>
#endif
namespace ax {
namespace System {
namespace IO {
#if 0
#... | 23.175781 | 184 | 0.625822 | Jasonchan35 |
2aa95825e7c1b7edb78289fbf007ada89f2e81cf | 960 | hpp | C++ | cuarma/meta/enable_if.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | cuarma/meta/enable_if.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | cuarma/meta/enable_if.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | #pragma once
/* =========================================================================
Copyright (c) 2015-2017, COE of Peking University, Shaoqiang Tang.
-----------------
cuarma - COE of Peking University, Shaoqiang Tang.
-----------------
... | 25.945946 | 80 | 0.478125 | yangxianpku |
2aaa0b0a3ae21b7cb905182ef22f2ce2d564a5b5 | 3,061 | cpp | C++ | src/test/cpp/src/ExpectedInPlaceGenColVec.cpp | sebiniemann/ArmadilloJava | 061121e22708111a8df3a2da92f6278c3a581e26 | [
"MIT"
] | 3 | 2020-08-05T14:48:44.000Z | 2021-08-12T17:46:54.000Z | src/test/cpp/src/ExpectedInPlaceGenColVec.cpp | sebiniemann/ArmadilloJava | 061121e22708111a8df3a2da92f6278c3a581e26 | [
"MIT"
] | 33 | 2019-10-20T21:53:37.000Z | 2019-10-20T21:53:47.000Z | src/test/cpp/src/ExpectedInPlaceGenColVec.cpp | sebiniemann/ArmadilloJava | 061121e22708111a8df3a2da92f6278c3a581e26 | [
"MIT"
] | 2 | 2020-08-06T17:01:28.000Z | 2021-06-16T18:45:14.000Z | /*******************************************************************************
* Copyright 2013-2014 Sebastian Niemann <niemann@sra.uni-hannover.de>.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 24.886179 | 80 | 0.601111 | sebiniemann |
2ab09a200b1f4ebfa99b98b94654d6fd6898153a | 560 | hpp | C++ | Cacophony/detail/gr_unconfigure.hpp | komiga/Cacophony | 52284ab7ad693b6de5d117e8cfd828074838c099 | [
"MIT"
] | 1 | 2015-05-25T08:57:10.000Z | 2015-05-25T08:57:10.000Z | Cacophony/detail/gr_unconfigure.hpp | komiga/Cacophony | 52284ab7ad693b6de5d117e8cfd828074838c099 | [
"MIT"
] | null | null | null | Cacophony/detail/gr_unconfigure.hpp | komiga/Cacophony | 52284ab7ad693b6de5d117e8cfd828074838c099 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief Unconfigure GR.
*/
#include <duct/GR/undefine.hpp>
#undef CACOPHONY_DETAIL_GR_CORE_HPP_
#undef CACOPHONY_SCOPE_CLASS
#undef CACOPHONY_SCOPE_FUNC
#undef CACOPHONY_SCOPE_FQN_STR
#undef CACOPHONY_THROW
#undef CACOPHONY_THROW_CLASS... | 22.4 | 72 | 0.851786 | komiga |
2ab1b4819840d3a19556de5eb9b629d68099a4a7 | 848 | cpp | C++ | sliding-window/anagramsstr.cpp | harshmaru7/lc-newmethod | 063ce1f2eabc665f86d5b36a44c9174c23cb076c | [
"MIT"
] | null | null | null | sliding-window/anagramsstr.cpp | harshmaru7/lc-newmethod | 063ce1f2eabc665f86d5b36a44c9174c23cb076c | [
"MIT"
] | null | null | null | sliding-window/anagramsstr.cpp | harshmaru7/lc-newmethod | 063ce1f2eabc665f86d5b36a44c9174c23cb076c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
vector<int> findAnagrams(string s, string p) {
//map<char>(26,0)hash;
vector<int>hash(26,0);
vector<int>anagram(26,0);
vector<int>ans;
if(s.length()<p.length()){return ans;}
for(int i=0;i<p.length();i++){anagram[p[i]-'a']++;
... | 26.5 | 58 | 0.450472 | harshmaru7 |
2ab3f50d19b9abea066df12339125d7c0d7cf76d | 4,282 | hpp | C++ | include/libtorrent/extensions/lt_identify.hpp | ssiloti/libtorrent-reputation | 9a8c25a15464ffbde01a1468901437419047a450 | [
"BSD-3-Clause"
] | 6 | 2016-01-04T03:53:13.000Z | 2021-12-18T21:36:07.000Z | include/libtorrent/extensions/lt_identify.hpp | ssiloti/libtorrent-reputation | 9a8c25a15464ffbde01a1468901437419047a450 | [
"BSD-3-Clause"
] | null | null | null | include/libtorrent/extensions/lt_identify.hpp | ssiloti/libtorrent-reputation | 9a8c25a15464ffbde01a1468901437419047a450 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2014, Steven Siloti
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | 29.736111 | 94 | 0.780243 | ssiloti |
2ab4db230c33e265febadd114c55fae636849528 | 1,301 | hpp | C++ | non_parametric/boost/statistics/detail/non_parametric/contingency_table/include/factor.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | non_parametric/boost/statistics/detail/non_parametric/contingency_table/include/factor.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | non_parametric/boost/statistics/detail/non_parametric/contingency_table/include/factor.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// factor.hpp //
// //
// Copyright 2010 Erwann Rogard. Distributed under the Boost //
... | 68.473684 | 99 | 0.623367 | rogard |
2ab5747b2aea657608472349d2849e043ca6c02c | 18,693 | cpp | C++ | src/core/Log.cpp | ufocomp/apostol-exchange | 916fb5910d950e15f570dc79866feb3d4fdcde7c | [
"MIT"
] | null | null | null | src/core/Log.cpp | ufocomp/apostol-exchange | 916fb5910d950e15f570dc79866feb3d4fdcde7c | [
"MIT"
] | null | null | null | src/core/Log.cpp | ufocomp/apostol-exchange | 916fb5910d950e15f570dc79866feb3d4fdcde7c | [
"MIT"
] | null | null | null | /*++
Library name:
apostol-core
Module Name:
Log.cpp
Notices:
Apostol Core
Author:
Copyright (c) Prepodobny Alen
mailto: alienufo@inbox.ru
mailto: ufocomp@gmail.com
--*/
#include "Core.hpp"
#include "Log.hpp"
//-------------------------------------------------------------------------------------... | 34.745353 | 120 | 0.314556 | ufocomp |
2ab824bd4c79026f23708c788ff1184aa7b53af0 | 2,750 | cpp | C++ | LaalMathEngine/src/Math/Bezier.cpp | vijayshankarkumar/LME | 6483d893a8902cec4959936220656fcab2b72d4f | [
"MIT"
] | 1 | 2022-02-18T10:38:42.000Z | 2022-02-18T10:38:42.000Z | LaalMathEngine/src/Math/Bezier.cpp | vijayshankarkumar/LME | 6483d893a8902cec4959936220656fcab2b72d4f | [
"MIT"
] | 1 | 2021-09-03T21:20:38.000Z | 2021-09-03T21:20:38.000Z | LaalMathEngine/src/Math/Bezier.cpp | vijayshankarkumar/LME | 6483d893a8902cec4959936220656fcab2b72d4f | [
"MIT"
] | null | null | null | #include "Math/Bezier.h"
namespace laal
{
void computeControlsPoints(const std::vector<Point>& knots, std::vector<Point>& outP1, std::vector<Point>& outP2)
{
int n = (int)knots.size() - 1;
// Calculate first Bezier control points
// Right hand side vector
std::vector<double> rhs(n);
// Set right hand side... | 31.25 | 152 | 0.497091 | vijayshankarkumar |
2ab9b1092d983b65fcecdcc36c32588cb53640ed | 3,165 | cpp | C++ | src/solver/linear/linear_solver.cpp | annierhea/neon | 4eb51a06bda6bbf32c54fff8f39c9e02d429cfd1 | [
"MIT"
] | null | null | null | src/solver/linear/linear_solver.cpp | annierhea/neon | 4eb51a06bda6bbf32c54fff8f39c9e02d429cfd1 | [
"MIT"
] | null | null | null | src/solver/linear/linear_solver.cpp | annierhea/neon | 4eb51a06bda6bbf32c54fff8f39c9e02d429cfd1 | [
"MIT"
] | null | null | null |
// Parallelisation of the Conjugate Gradient algorithm is good
#define NEON_PARALLEL_EIGEN_SOLVERS
#include "linear_solver.hpp"
#include "exceptions.hpp"
#include "simulation_parser.hpp"
#ifdef ENABLE_OPENMP
#include <omp.h>
#endif
#include <cfenv>
#include <chrono>
namespace neon
{
iterative_linear_solver::itera... | 26.596639 | 98 | 0.659084 | annierhea |
2ab9dc01c9692bd05071b8a1bf00fb3bdc20f19e | 795 | cpp | C++ | Codeforces/cf1594_C.cpp | Tunghohin/Competitive_coding | 879238605d5525cda9fd0cfa1155ba67959179a6 | [
"MIT"
] | 2 | 2021-09-06T08:34:00.000Z | 2021-11-22T14:52:41.000Z | Codeforces/cf1594_C.cpp | Tunghohin/Competitive_coding | 879238605d5525cda9fd0cfa1155ba67959179a6 | [
"MIT"
] | null | null | null | Codeforces/cf1594_C.cpp | Tunghohin/Competitive_coding | 879238605d5525cda9fd0cfa1155ba67959179a6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstring>
#include <cmath>
using namespace std;
void solve()
{
int n;
char c;
string s;
cin >> n >> c >> s;
bool ok = true;
for (int i = 0; i < n; i++)
{
if (s[i] != c)
{
ok = false;
break;
}
}
if (ok)
{
cout << 0 << '\n';
return;
}
vector<... | 11.197183 | 37 | 0.464151 | Tunghohin |
2abeaa62b7ced8ff28a29fc0cdc7e3e507f500e7 | 1,367 | cpp | C++ | 2018/January/Silver/MooTube.cpp | Sumitkk10/USACO-submissions | 543dafe041356e83a18e7a57e5d93d24bc266682 | [
"MIT"
] | 2 | 2020-12-09T05:43:19.000Z | 2020-12-09T06:24:45.000Z | 2018/January/Silver/MooTube.cpp | Sumitkk10/USACO-submissions | 543dafe041356e83a18e7a57e5d93d24bc266682 | [
"MIT"
] | null | null | null | 2018/January/Silver/MooTube.cpp | Sumitkk10/USACO-submissions | 543dafe041356e83a18e7a57e5d93d24bc266682 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define ll long long int
using namespace std;
const int N = 5000 + 5;
const int MOD = 1e9 + 7;
vector<pair<int, long long int> > graph[N];
bool vis[N];
int main() {
fast;
freopen("mootube.in", "r", stdin);
freop... | 27.34 | 70 | 0.443307 | Sumitkk10 |
2ac267c65b3d594d0176e13aebc08f9cb93fca67 | 406 | cpp | C++ | Numeric Patterns/numericpattern266.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 4 | 2021-09-21T03:43:26.000Z | 2022-01-07T03:07:56.000Z | Numeric Patterns/numericpattern266.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 916 | 2021-09-01T15:40:24.000Z | 2022-01-10T17:57:59.000Z | Numeric Patterns/numericpattern266.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 20 | 2021-09-30T18:13:58.000Z | 2022-01-06T09:55:36.000Z | #include <iostream>
using namespace std;
int main()
{
int n = 4, num = 1;
for(int i = n; i >= -n; i--) {
for(int j = 1; j <= abs(i); j++)
cout << " ";
for(int k = n; k >= abs(i); k--)
cout << num << " ";
if(i > 0)
num++;
... | 18.454545 | 41 | 0.312808 | Starkl7 |
2ac740d5555854b57ec7efe3988d0e1fed596965 | 515 | cpp | C++ | user/apps/test3/main.cpp | boulangg/phoenix | d14928ebaf8b2546e00d407c239f28c3e929181e | [
"MIT"
] | 3 | 2016-04-22T13:29:08.000Z | 2016-04-25T15:56:23.000Z | user/apps/test3/main.cpp | boulangg/phoenix | d14928ebaf8b2546e00d407c239f28c3e929181e | [
"MIT"
] | null | null | null | user/apps/test3/main.cpp | boulangg/phoenix | d14928ebaf8b2546e00d407c239f28c3e929181e | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Boulanger Guillaume, Chathura Namalgamuwa
* The file is distributed under the MIT license
* The license is available in the LICENSE file or at https://github.com/boulangg/phoenix/blob/master/LICENSE
*/
#include <stdio.h>
int main(int argc,char* argv[]) {
(void)argc;
(void)argv;
fprintf(... | 25.75 | 109 | 0.636893 | boulangg |
2ace89095f57a2a4bce315629e8206dcc2e065ed | 689 | cpp | C++ | Esercizi/Stringhe/FindSottoStr/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | Esercizi/Stringhe/FindSottoStr/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | Esercizi/Stringhe/FindSottoStr/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool is_ch_gh_sottostr(char arr[], int length)
{
int i = 0;
while (i < length && ((arr[i] != 'c' || arr[i] != 'g') && arr[i+1] != 'h')) i++;
if (i == length) return(false);
else return(true);
}
int l_parola(char arr[])
{
int i = 0;
whi... | 20.264706 | 84 | 0.526851 | gabrielegenovese |
2acf9b2219c803b16e6fd28f78928a5602e658d5 | 482 | cpp | C++ | addTriplets.cpp | laxmena/CodeKata | 6ae0b911f1a436f691dfac13a760a53beedf7405 | [
"MIT"
] | null | null | null | addTriplets.cpp | laxmena/CodeKata | 6ae0b911f1a436f691dfac13a760a53beedf7405 | [
"MIT"
] | null | null | null | addTriplets.cpp | laxmena/CodeKata | 6ae0b911f1a436f691dfac13a760a53beedf7405 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int n,i,j,num;
set<int> store;
set<int> :: iterator it;
vector<int> array;
cout<<"Enter array size: ";
cin>>n;
for(i=0;i<n;i++){
cin>>num;
array.push_back(num);
store.insert(num);
}
for(i=0;i<n-1;i++)
for(j=i+1;j<n;j++)
if(store.find(array[i]... | 19.28 | 63 | 0.580913 | laxmena |
2acfc553c59d823344eaba25864ae1f32522fb20 | 97,080 | cpp | C++ | src/ngraph/runtime/intelgpu/intelgpu_op_custom_kernels.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | 1 | 2020-04-28T22:50:33.000Z | 2020-04-28T22:50:33.000Z | src/ngraph/runtime/intelgpu/intelgpu_op_custom_kernels.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | 1 | 2019-02-20T20:56:47.000Z | 2019-02-22T20:10:28.000Z | src/ngraph/runtime/intelgpu/intelgpu_op_custom_kernels.cpp | darchr/ngraph | 7c540e5230f8143ecb6926685c7b49305f0f988a | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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://w... | 38.52381 | 100 | 0.45651 | ilya-lavrenov |
2acff7fadc73d16eda745dc5307bb4f1f7587369 | 2,454 | cpp | C++ | src/Controller.cpp | andrewgonzalez/Team10 | e18504ed6366211c28ef12353e89e074d534b3d6 | [
"MIT"
] | 1 | 2022-02-19T07:22:11.000Z | 2022-02-19T07:22:11.000Z | src/Controller.cpp | carsayao/ChocAn | e18504ed6366211c28ef12353e89e074d534b3d6 | [
"MIT"
] | 1 | 2018-11-05T22:03:25.000Z | 2018-11-05T22:03:25.000Z | src/Controller.cpp | carsayao/ChocAn | e18504ed6366211c28ef12353e89e074d534b3d6 | [
"MIT"
] | 2 | 2018-11-09T00:37:55.000Z | 2018-12-01T00:38:58.000Z | //
// Created by Andrew Gonzalez on 11/20/18.
//
#include "Controller.h"
// Default constructor
Controller::Controller() {}
// Destructor
Controller::~Controller() {}
tNode* Controller::findPerson(int treeNum, int ID) {
tNode * found = people[treeNum].find(ID);
if (found)
return found;
return n... | 25.831579 | 82 | 0.643847 | andrewgonzalez |
2ad1c10e0297c24c1ef6b9fbc7d6e073231d2063 | 480 | cpp | C++ | atcoder/arc107/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/arc107/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/arc107/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll M = 998244353;
ll solve(ll A, ll B, ll C) {
auto Ka = A * (A + 1) / 2;
auto Kb = B * (B + 1) / 2;
auto Kc = C * (C + 1) / 2;
Ka %= M, Kb %= M, Kc %= M;
auto Kab = (Ka * Kb) % M;
return (Kab * Kc) % M;
}
int main() {
... | 19.2 | 37 | 0.475 | xirc |
2ad6a4b4b2dcae3a8b165c376d32ce2fff556b40 | 434 | cpp | C++ | AtCoder/arc034/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/arc034/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/arc034/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <iomanip>
using namespace std;
int main() {
int n; cin >> n;
long double sum = 0.0;
for (int i = 0; i < n; i++) {
int a, b, c, d, e; cin >> a >> b >> c >> d >> e;
long double tmp = (1.0 * a + b + c + d) + (l... | 25.529412 | 83 | 0.504608 | H-Tatsuhiro |
2ad837ca953ab7439821bcd5756e5e2ffa05a63f | 1,545 | cc | C++ | Client/src/Item.cc | ROLL-E/roll-e | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | [
"MIT"
] | 1 | 2020-07-30T19:37:58.000Z | 2020-07-30T19:37:58.000Z | Client/src/Item.cc | ROLL-E/roll-e | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | [
"MIT"
] | null | null | null | Client/src/Item.cc | ROLL-E/roll-e | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | [
"MIT"
] | null | null | null | #include "Item.h"
#include <stdexcept>
#include <iostream>
using namespace std;
quint16 Item::next_ID{0};
void Item::set_next_ID(quint16 new_ID){
next_ID = new_ID;
}
Item::Item(const Item& other)
: name{other.name},
modifiers{other.modifiers},
ID{next_ID},
attributes{other.attributes} {
++next_ID... | 19.3125 | 66 | 0.701618 | ROLL-E |
2adfb36c4edd7d49d41cf8021871832c7303de71 | 4,177 | cpp | C++ | mp/src/old/cl_dll/hl2_hud/hud_battery.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | 1 | 2021-03-20T14:27:45.000Z | 2021-03-20T14:27:45.000Z | mp/src/old/cl_dll/hl2_hud/hud_battery.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | null | null | null | mp/src/old/cl_dll/hl2_hud/hud_battery.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | null | null | null | /***
*
* Copyright (c) 1999, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object co... | 28.609589 | 116 | 0.52837 | MaartenS11 |
2ae0f64da65c60a2e52b27e7f21f9031e2b42a71 | 602 | cpp | C++ | Vic2ToHoI4/Source/OutHoi4/Leaders/OutCountryLeader.cpp | CarbonY26/Vic2ToHoI4 | af3684d6aaaafea81aaadfb64a21a2b696f618e1 | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4/Source/OutHoi4/Leaders/OutCountryLeader.cpp | CarbonY26/Vic2ToHoI4 | af3684d6aaaafea81aaadfb64a21a2b696f618e1 | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4/Source/OutHoi4/Leaders/OutCountryLeader.cpp | IhateTrains/Vic2ToHoI4 | 5ad7f7c259f7495a10e043ade052d3b18a8951dc | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "OutCountryLeader.h"
void HoI4::outputCountryLeader(std::ostream& output, const HoI4::CountryLeader& leader)
{
output << "create_country_leader = {\n";
output << "\tname = \"" << leader.getName() << "\"\n";
output << "\tdesc = \"" << leader.getDescription() << "\"\n";
output << "\tpicture = \"" << leade... | 30.1 | 87 | 0.563123 | CarbonY26 |
2ae30a5e9304b65a997cacf1a5c5ed70f7f67f15 | 763 | cpp | C++ | old_uinx_study/study_src/boost_filesystem_test/main.cpp | puzzzzzzle/cpp_study | 8d6f29c4bb741cb27a8365a4312dd92ddbbf13e8 | [
"BSD-3-Clause-Clear"
] | 3 | 2020-01-21T08:21:20.000Z | 2020-10-07T10:03:39.000Z | old_uinx_study/study_src/boost_filesystem_test/main.cpp | puzzzzzzle/cpp_study | 8d6f29c4bb741cb27a8365a4312dd92ddbbf13e8 | [
"BSD-3-Clause-Clear"
] | null | null | null | old_uinx_study/study_src/boost_filesystem_test/main.cpp | puzzzzzzle/cpp_study | 8d6f29c4bb741cb27a8365a4312dd92ddbbf13e8 | [
"BSD-3-Clause-Clear"
] | null | null | null | //
// Created by tao on 19-1-17.
//
#include <gtest/gtest.h>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <thread>
#include "boost_log_init.h"
namespace fs = boost::filesystem;
TEST(test_test, 1) { EXPECT_EQ(1, 1); }
int main(int argc, char **argv) {
int result = 0;
log_init... | 20.078947 | 42 | 0.633028 | puzzzzzzle |
2ae550c37c72b1550c741417dc9b095ac4e703cd | 1,105 | cpp | C++ | extension/widgets_plot.cpp | Miwwa/hlimgui | d33f859c8c4ed6849318e92745d728e8ab309aae | [
"MIT"
] | 30 | 2020-08-06T14:43:47.000Z | 2022-03-16T10:50:43.000Z | extension/widgets_plot.cpp | Miwwa/hlimgui | d33f859c8c4ed6849318e92745d728e8ab309aae | [
"MIT"
] | 11 | 2020-10-21T03:33:54.000Z | 2021-09-03T15:28:34.000Z | extension/widgets_plot.cpp | Miwwa/hlimgui | d33f859c8c4ed6849318e92745d728e8ab309aae | [
"MIT"
] | 7 | 2020-10-20T15:54:56.000Z | 2021-07-22T05:34:46.000Z | #define HL_NAME(n) hlimgui_##n
#include <hl.h>
#include <vector>
#include "imgui/imgui.h"
#include "utils.h"
HL_PRIM void HL_NAME(plot_lines)(vstring* label, varray* values, int* values_offset, vstring* overlay_text, float* scale_min, float* scale_max, vdynamic* graph_size)
{
ImGui::PlotLines(convertString(label)... | 55.25 | 231 | 0.777376 | Miwwa |
2ae77ee788eb523bb726f595b3a4f9c683883d47 | 41 | hpp | C++ | src/boost_intrusive_splay_set.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_intrusive_splay_set.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_intrusive_splay_set.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/intrusive/splay_set.hpp>
| 20.5 | 40 | 0.804878 | miathedev |
2aef349b5d1c3cbfcffdd3475567c722d0c918ff | 6,923 | hpp | C++ | +extras/include/extras/async/ParamProcessor.hpp | dkovari/ExtrasToolbox | b3d79c40e547fc9d994829701c2273ca080f8339 | [
"MIT"
] | null | null | null | +extras/include/extras/async/ParamProcessor.hpp | dkovari/ExtrasToolbox | b3d79c40e547fc9d994829701c2273ca080f8339 | [
"MIT"
] | null | null | null | +extras/include/extras/async/ParamProcessor.hpp | dkovari/ExtrasToolbox | b3d79c40e547fc9d994829701c2273ca080f8339 | [
"MIT"
] | null | null | null | /*--------------------------------------------------
Copyright 2019, Daniel T. Kovari, Emory University
All rights reserved.
----------------------------------------------------*/
#pragma once
/********************************************************************
COMPRESSION Includes
===================================... | 37.421622 | 206 | 0.667919 | dkovari |
2af65854d94c95f308d2dcc0b4b2d7e030d12c7a | 4,178 | hpp | C++ | three/extras/geometries/sphere_geometry.hpp | Lecrapouille/three_cpp | 5c3b4f4ca02bda6af232898c17e62caf8f887aa0 | [
"MIT"
] | null | null | null | three/extras/geometries/sphere_geometry.hpp | Lecrapouille/three_cpp | 5c3b4f4ca02bda6af232898c17e62caf8f887aa0 | [
"MIT"
] | null | null | null | three/extras/geometries/sphere_geometry.hpp | Lecrapouille/three_cpp | 5c3b4f4ca02bda6af232898c17e62caf8f887aa0 | [
"MIT"
] | null | null | null | #ifndef THREE_SPHERE_GEOMETRY_HPP
#define THREE_SPHERE_GEOMETRY_HPP
#include <three/core/geometry.hpp>
#include <three/core/face3.hpp>
#include <three/core/face4.hpp>
#include <three/core/math.hpp>
namespace three {
class SphereGeometry : public Geometry
{
public:
typedef std::shared_ptr<SphereGeometry> Ptr;
... | 31.413534 | 115 | 0.475586 | Lecrapouille |
2af6e779c29aa4abf53f5d13583437c20367c9b4 | 6,363 | cpp | C++ | pcl/lib/PointcloudFilter.cpp | lukechencqu/bluerov_zed_tracking | 75d87cfc183839615fada0731724cf0a230a0970 | [
"Apache-2.0"
] | 2 | 2021-07-21T12:21:26.000Z | 2021-12-02T00:57:02.000Z | pcl/lib/PointcloudFilter.cpp | lukechencqu/bluerov_zed_tracking | 75d87cfc183839615fada0731724cf0a230a0970 | [
"Apache-2.0"
] | null | null | null | pcl/lib/PointcloudFilter.cpp | lukechencqu/bluerov_zed_tracking | 75d87cfc183839615fada0731724cf0a230a0970 | [
"Apache-2.0"
] | null | null | null | #include "PointcloudFilter.hpp"
using namespace std;
namespace bluerov_detection_tracking
{
PointCloudFilter::PointCloudFilter(){
// convexHullPoints_pub = node_.advertise<sensor_msgs::PointCloud2>("convex_hull_points", 20);
};
PointCloudFilter::~PointCloudFilter(){};
bool PointCloudFilter::F... | 38.101796 | 105 | 0.565771 | lukechencqu |
2af85d96278e2ea3472c65c94c4a210f8cb16637 | 2,665 | cpp | C++ | Esercizi/Array/DuePile/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | Esercizi/Array/DuePile/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | Esercizi/Array/DuePile/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool is_empt(int cursor1, int cursor2, int n)
{
if(n == 1){
if(cursor1 == 0) return(true);
else return(false);
}else{
if(cursor2 == 9) return(true);
else return(false);
}
}
bool push(int* arr, int length... | 22.777778 | 107 | 0.403752 | gabrielegenovese |
dec265013e4d17c0ade5187d9e9996c5e391e5a1 | 3,111 | cc | C++ | src/util/encoding_posix.cc | milkcat/MilkCat | a31c5c7f2ceba0ba3aea9fa88f9da5e9caddacea | [
"MIT"
] | 84 | 2015-01-17T09:44:41.000Z | 2020-02-14T06:32:26.000Z | src/util/encoding_posix.cc | milkcat/MilkCat | a31c5c7f2ceba0ba3aea9fa88f9da5e9caddacea | [
"MIT"
] | 2 | 2016-06-27T08:00:53.000Z | 2017-02-09T06:15:28.000Z | src/util/encoding_posix.cc | milkcat/MilkCat | a31c5c7f2ceba0ba3aea9fa88f9da5e9caddacea | [
"MIT"
] | 29 | 2015-01-17T09:48:43.000Z | 2020-03-06T08:30:18.000Z | //
// The MIT License (MIT)
//
// Copyright 2013-2014 The MilkCat Project Developers
//
// 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 th... | 28.281818 | 80 | 0.682417 | milkcat |
dec3d456ad1393187a21a6847456a89ae460a1af | 9,568 | hpp | C++ | include/codegen/include/GlobalNamespace/TutorialSongController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/TutorialSongController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/TutorialSongController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: SongController
#include "GlobalNamespace/SongController... | 46.222222 | 178 | 0.764841 | Futuremappermydud |
decac39a9ab97368603f7e7283677f6c8f09ee51 | 20,580 | cpp | C++ | editor/VandaEngine1/MainCharacterProperties.cpp | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | 12 | 2021-06-22T11:28:12.000Z | 2022-03-21T00:56:33.000Z | editor/VandaEngine1/MainCharacterProperties.cpp | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | null | null | null | editor/VandaEngine1/MainCharacterProperties.cpp | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | 1 | 2018-10-05T08:17:29.000Z | 2018-10-05T08:17:29.000Z | //Copyright (C) 2022 Ehsan Kamrani
//This file is licensed and distributed under MIT license
// MainCharacterProperties.cpp : implementation file
//
#include "stdafx.h"
#include "VandaEngine1.h"
#include "MainCharacterProperties.h"
#include "afxdialogex.h"
// CMainCharacterProperties dialog
IMPLEMENT_DYNAMIC(CMai... | 42.43299 | 127 | 0.839747 | ehsankamrani |
decc859c747d9f7669764664a6b2b0c1191f4481 | 15,277 | cpp | C++ | thirdparty/ULib/src/ulib/cache.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/src/ulib/cache.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/src/ulib/cache.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// cache.cpp
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
#include <ulib/cache.h>
#include <ulib/utilit... | 28.186347 | 167 | 0.546246 | liftchampion |
ded89ae0896600f2d8814d973266d64cfc148ccd | 82 | cpp | C++ | sources/source.cpp | NickTikhomirov/AYA3_3 | d7e02e48766f6cfccea51165595b05ab0ea4d6e6 | [
"MIT"
] | 2 | 2019-11-24T13:57:55.000Z | 2020-11-28T18:58:41.000Z | sources/source.cpp | NickTikhomirov/AYA3_3 | d7e02e48766f6cfccea51165595b05ab0ea4d6e6 | [
"MIT"
] | null | null | null | sources/source.cpp | NickTikhomirov/AYA3_3 | d7e02e48766f6cfccea51165595b05ab0ea4d6e6 | [
"MIT"
] | 1 | 2019-11-24T16:04:29.000Z | 2019-11-24T16:04:29.000Z | // Copyright 2018 Your Name <your_email>
#include <SharedPtr.hpp>
int main() {} | 13.666667 | 40 | 0.695122 | NickTikhomirov |
dee45ca084128b2d206a198f8f8de7a40369e721 | 18,608 | hpp | C++ | include/wildcat/ws/client.hpp | rossb34/wildcat-ws | f1636982fcbac21ce6231858555f4544641c88b8 | [
"MIT"
] | null | null | null | include/wildcat/ws/client.hpp | rossb34/wildcat-ws | f1636982fcbac21ce6231858555f4544641c88b8 | [
"MIT"
] | null | null | null | include/wildcat/ws/client.hpp | rossb34/wildcat-ws | f1636982fcbac21ce6231858555f4544641c88b8 | [
"MIT"
] | null | null | null |
#ifndef WILDCAT_WS_CLIENT_HPP
#define WILDCAT_WS_CLIENT_HPP
#include <cstdint>
#include <cstring>
#include <array>
#include <functional>
#include <memory>
#include <byteswap.h>
#include "handshake.hpp"
namespace wildcat::ws {
/*
* https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_We... | 36.34375 | 120 | 0.505213 | rossb34 |
dee62eca32432ea2844f479cad8b1a2258a67fc4 | 3,832 | cpp | C++ | src/common/common/network/enet.cpp | Bluppie05/open-builder | 524b0f1a960802fc8c212ef5996716fbba12f5b1 | [
"MIT"
] | null | null | null | src/common/common/network/enet.cpp | Bluppie05/open-builder | 524b0f1a960802fc8c212ef5996716fbba12f5b1 | [
"MIT"
] | null | null | null | src/common/common/network/enet.cpp | Bluppie05/open-builder | 524b0f1a960802fc8c212ef5996716fbba12f5b1 | [
"MIT"
] | null | null | null | #include "enet.h"
#include <cassert>
#include <ctime>
#include <limits>
#include <random>
#include "net_constants.h"
const ClientConnectionResult ClientConnectionResult::SUCCESS;
namespace {
ENetPacket* createPacket(const sf::Packet& packet, u32 flags)
{
return enet_packet_create(packet.getData(), p... | 25.045752 | 88 | 0.647965 | Bluppie05 |
deecee30efe576f3067c4492fa2205fee920936b | 1,467 | cpp | C++ | example/multipart.cpp | terrywh/libparser | 9d3a69e4b7b5b6cd24717109f184235e0d8f64a3 | [
"MIT"
] | 1 | 2020-01-03T13:11:15.000Z | 2020-01-03T13:11:15.000Z | example/multipart.cpp | terrywh/lltoml | 9d3a69e4b7b5b6cd24717109f184235e0d8f64a3 | [
"MIT"
] | null | null | null | example/multipart.cpp | terrywh/lltoml | 9d3a69e4b7b5b6cd24717109f184235e0d8f64a3 | [
"MIT"
] | null | null | null | #include <vspp/multipart/basic_parser.hpp>
#include <vspp/multipart/parse.hpp>
#include <vspp/basic_reader.hpp>
#include <vspp/basic_handler.hpp>
#include <iostream>
#include <map>
struct handler_type_1 {
using field_type = std::string;
using value_type = std::string;
using cache_type = std::string;
vo... | 34.116279 | 110 | 0.595092 | terrywh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.