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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24e1cee34809d962bbd022c77eb5c3c661830955 | 15,373 | cpp | C++ | src/energyplus/ForwardTranslator/ForwardTranslateThermalStorageChilledWaterStratified.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 354 | 2015-01-10T17:46:11.000Z | 2022-03-29T10:00:00.000Z | src/energyplus/ForwardTranslator/ForwardTranslateThermalStorageChilledWaterStratified.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3,243 | 2015-01-02T04:54:45.000Z | 2022-03-31T17:22:22.000Z | src/energyplus/ForwardTranslator/ForwardTranslateThermalStorageChilledWaterStratified.cpp | jmarrec/OpenStudio | 5276feff0d8dbd6c8ef4e87eed626bc270a19b14 | [
"blessing"
] | 157 | 2015-01-07T15:59:55.000Z | 2022-03-30T07:46:09.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 40.994667 | 146 | 0.72894 | muehleisen |
24e2a6518d3685ac4836de898a5decc42c48a51c | 1,537 | cc | C++ | gazebo/util/Diagnostics_TEST.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/util/Diagnostics_TEST.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/util/Diagnostics_TEST.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* 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... | 27.945455 | 75 | 0.687053 | otamachan |
24e3c7e07e30f08729161659bb2d23921cece337 | 2,582 | cpp | C++ | engine/screens/source/KilnScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/screens/source/KilnScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/screens/source/KilnScreen.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "KilnScreen.hpp"
#include "ActionTextKeys.hpp"
#include "Game.hpp"
#include "OptionsComponent.hpp"
#include "PromptTextKeys.hpp"
#include "ScreenTitleTextKeys.hpp"
#include "TextComponent.hpp"
#include "TextKeys.hpp"
using namespace std;
KilnScreen::KilnScreen(DisplayPtr new_display, const bool fire_bomb, co... | 35.369863 | 160 | 0.728505 | prolog |
008ddde1158cc04e6d3a2ffe7425b4badfac6bf2 | 1,325 | cpp | C++ | Builder/main.cpp | Waleon/DesignPattern | a5032f97ac93a1ee9391988ad7e7783cb2ef23a4 | [
"MIT"
] | 594 | 2017-09-11T00:49:21.000Z | 2022-03-29T14:31:13.000Z | Builder/main.cpp | Waleon/DesignPattern | a5032f97ac93a1ee9391988ad7e7783cb2ef23a4 | [
"MIT"
] | 27 | 2021-03-14T04:28:48.000Z | 2021-12-08T10:39:22.000Z | Builder/main.cpp | Waleon/DesignPattern | a5032f97ac93a1ee9391988ad7e7783cb2ef23a4 | [
"MIT"
] | 271 | 2017-05-04T06:19:56.000Z | 2022-03-29T02:51:57.000Z | #include "concrete_bulider.h"
#include "director.h"
#include <string>
#ifndef SAFE_DELETE
#define SAFE_DELETE(p) { if(p){delete(p); (p)=NULL;} }
#endif
int main()
{
Direcror *pDirecror = new Direcror();
ThinkPadBuilder *pTPBuilder = new ThinkPadBuilder();
YogaBuilder *pYogaBuilder = new YogaBuilder();
... | 28.804348 | 71 | 0.640755 | Waleon |
008efcf838b049ffe5490457194b53c4c5529bcf | 1,980 | cpp | C++ | endian.cpp | Acria-Network/Acria-Oracle-Node-Qt | 2b224c5a18b0f9b0e5c2f9f96e08d5a232e7736e | [
"MIT"
] | 15 | 2021-03-04T01:57:10.000Z | 2022-01-31T21:27:52.000Z | endian.cpp | gnctrk042/Acria-Oracle-Node-Qt | 2b224c5a18b0f9b0e5c2f9f96e08d5a232e7736e | [
"MIT"
] | 1 | 2021-12-25T21:06:19.000Z | 2022-01-11T19:12:24.000Z | endian.cpp | gnctrk042/Acria-Oracle-Node-Qt | 2b224c5a18b0f9b0e5c2f9f96e08d5a232e7736e | [
"MIT"
] | 8 | 2021-04-04T20:31:27.000Z | 2022-01-31T21:27:54.000Z | /** \file endian.c
*
* \brief Contains functions which perform endian-specific type conversion.
*
* This file is licensed as described by the file LICENCE.
*/
#include "common.h"
#include "endian.h"
/** Write 32 bit unsigned integer into a byte array in big-endian format.
* \param out The destination byte... | 25.063291 | 77 | 0.598485 | Acria-Network |
009180926dded0ad6d3b0c5773efd4a562068fd2 | 5,049 | cpp | C++ | IndieLib/tests/manual/entities/EntityTests_interactions.cpp | DarthMike/indielib-crossplatform | 473a589ae050b6d1c274cf58adf08731e63ae870 | [
"Zlib"
] | 29 | 2015-03-05T08:11:23.000Z | 2020-11-11T08:27:22.000Z | IndieLib/tests/manual/entities/EntityTests_interactions.cpp | PowerOlive/indielib-crossplatform | 473a589ae050b6d1c274cf58adf08731e63ae870 | [
"Zlib"
] | 1 | 2019-04-03T18:59:01.000Z | 2019-04-14T11:46:45.000Z | IndieLib/tests/manual/entities/EntityTests_interactions.cpp | PowerOlive/indielib-crossplatform | 473a589ae050b6d1c274cf58adf08731e63ae870 | [
"Zlib"
] | 9 | 2015-03-05T08:17:10.000Z | 2021-08-09T07:15:37.000Z | /*****************************************************************************************
* Desc: EntityTests_interactions class
*****************************************************************************************/
/*********************************** The zlib License ************************************
*
*... | 35.0625 | 184 | 0.646267 | DarthMike |
009599638b0364ae9e402b2b68566ca695cfa3bf | 792 | hpp | C++ | core/include/Cerium/Script.hpp | bjornus/Cerium | b908be6199da2ad003d59251cb9ebf749e7e4d73 | [
"MIT"
] | 9 | 2017-06-12T08:12:44.000Z | 2019-01-15T08:22:53.000Z | core/include/Cerium/Script.hpp | szewczukk/Cerium | b908be6199da2ad003d59251cb9ebf749e7e4d73 | [
"MIT"
] | null | null | null | core/include/Cerium/Script.hpp | szewczukk/Cerium | b908be6199da2ad003d59251cb9ebf749e7e4d73 | [
"MIT"
] | 1 | 2018-10-27T02:47:56.000Z | 2018-10-27T02:47:56.000Z | #ifndef CERIUM_SCRIPT_HPP
#define CERIUM_SCRIPT_HPP
#include "Resource.hpp"
#include <sol/sol.hpp>
#include <fstream>
namespace cerium
{
class Script : public Resource
{
public:
/*
^[name][Script]
^[class][Script]
^[description][Loading lua script external file... | 22 | 86 | 0.564394 | bjornus |
00975d86d4a7ca1700c1cd4a72f97e9e32fe1885 | 6,762 | cpp | C++ | wave_optimization/tests/ceres/ba_test.cpp | wavelab/wavelib | 7bebff52859c8b77f088e39913223904988c141e | [
"MIT"
] | 80 | 2017-03-12T18:57:33.000Z | 2022-03-30T11:44:33.000Z | wave_optimization/tests/ceres/ba_test.cpp | wavelab/wavelib | 7bebff52859c8b77f088e39913223904988c141e | [
"MIT"
] | 210 | 2017-03-13T15:01:34.000Z | 2022-01-15T03:19:44.000Z | wave_optimization/tests/ceres/ba_test.cpp | wavelab/wavelib | 7bebff52859c8b77f088e39913223904988c141e | [
"MIT"
] | 31 | 2017-08-14T16:54:52.000Z | 2022-01-21T06:44:16.000Z | #include "wave/wave_test.hpp"
#include "wave/utils/utils.hpp"
#include "wave/vision/dataset/VoDataset.hpp"
#include "wave/optimization/ceres/ba.hpp"
namespace wave {
const std::string TEST_CONFIG = "tests/data/vo_test.yaml";
static std::vector<LandmarkId> build_landmark_ids(
const std::vector<LandmarkObservation> ... | 34.85567 | 80 | 0.632062 | wavelab |
00978deae7ce848d6d2a4d990f2b68a0048bb5f3 | 3,455 | cxx | C++ | physics/kernel/management/src/PostPropagationStage.cxx | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | physics/kernel/management/src/PostPropagationStage.cxx | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | physics/kernel/management/src/PostPropagationStage.cxx | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
#include "Geant/PostPropagationStage.h"
// from geantV
#include "Geant/Propagator.h"
#include "Geant/TaskData.h"
#include "Geant/Track.h"
#include "Geant/Handler.h"
// from realphysics
#include "Geant/Material.h"
#include "Geant/MaterialCuts.h"
#include "Geant/Region.h"
#include "Geant/Particle.h"
#include "Geant/P... | 37.554348 | 118 | 0.770188 | Geant-RnD |
009814f8b3f9c7319cea6852348846b110309165 | 734 | cpp | C++ | src/saiga/vision/util/Random.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | src/saiga/vision/util/Random.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | src/saiga/vision/util/Random.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z | /**
* Copyright (c) 2021 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "Random.h"
#include "saiga/core/util/assert.h"
namespace Saiga
{
namespace Random
{
SE3 randomSE3()
{
Vec3 t = MatrixUniform<Vec3>();
Vec4 qc = MatrixUniform<Vec4>();
Quat q... | 16.681818 | 63 | 0.628065 | no33fewi |
009abbd06d2287a396d53bdf91287eeeb2da7c8d | 2,462 | cpp | C++ | contents/stacks_and_queues/code/cpp/queue.cpp | alzawad26/algorithm-archive | 98ca4ab8115dd9013e6a5267cb757d61f0350ad7 | [
"MIT"
] | 1 | 2021-10-08T13:08:58.000Z | 2021-10-08T13:08:58.000Z | contents/stacks_and_queues/code/cpp/queue.cpp | alzawad26/algorithm-archive | 98ca4ab8115dd9013e6a5267cb757d61f0350ad7 | [
"MIT"
] | null | null | null | contents/stacks_and_queues/code/cpp/queue.cpp | alzawad26/algorithm-archive | 98ca4ab8115dd9013e6a5267cb757d61f0350ad7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<memory>
#include<cassert>
namespace my {
/**
* implementation using linked list
* [value][next] -> [value][next] -> ... -> [value][next]
* (front Node) (intermediat Nodes) (rear Node)
*/
template<typename T>
struct Node {
/**
* next: wi... | 26.76087 | 99 | 0.50853 | alzawad26 |
009f82ec790603477bae1072ca7b36ce25919afd | 6,951 | cpp | C++ | src/Onsang/UI/TabbedContainer.cpp | komiga/Onsang | 63169d822c23b61fa2537b8f66bb224d974072e7 | [
"MIT"
] | null | null | null | src/Onsang/UI/TabbedContainer.cpp | komiga/Onsang | 63169d822c23b61fa2537b8f66bb224d974072e7 | [
"MIT"
] | null | null | null | src/Onsang/UI/TabbedContainer.cpp | komiga/Onsang | 63169d822c23b61fa2537b8f66bb224d974072e7 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <Onsang/config.hpp>
#include <Onsang/aux.hpp>
#include <Onsang/utility.hpp>
#include <Onsang/UI/Defs.hpp>
#include <Onsang/UI/TabbedContainer.hpp>
#include <Beard/txt/Defs.hpp>
#include <Beard/tty/Defs.hpp>
#include <Beard/ui/pac... | 21.453704 | 84 | 0.68393 | komiga |
00a30a954de3983678cbcaece9c0326c5619bff5 | 816 | hpp | C++ | src/Listener.hpp | flanglet/kanzi-cpp | 680085d03fdf77d924af61c8333a1257b01b6de5 | [
"Apache-2.0"
] | 52 | 2018-05-16T07:31:17.000Z | 2022-03-27T17:36:48.000Z | src/Listener.hpp | flanglet/kanzi-cpp | 680085d03fdf77d924af61c8333a1257b01b6de5 | [
"Apache-2.0"
] | 4 | 2019-07-20T12:49:05.000Z | 2021-12-12T20:34:59.000Z | src/Listener.hpp | flanglet/kanzi-cpp | 680085d03fdf77d924af61c8333a1257b01b6de5 | [
"Apache-2.0"
] | 1 | 2019-07-02T13:27:32.000Z | 2019-07-02T13:27:32.000Z | /*
Copyright 2011-2021 Frederic Langlet
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 to in ... | 23.314286 | 72 | 0.726716 | flanglet |
00a5c484ca3aaf9d82e09d4edcdf74b4f78eb66e | 864 | hpp | C++ | src/id3.hpp | Seemos/iterative-dichotomiser-3 | 9ea5b0489c45007fd2283886ba823ab05b0ec4b0 | [
"Apache-2.0"
] | 1 | 2021-08-18T13:06:29.000Z | 2021-08-18T13:06:29.000Z | src/id3.hpp | Seemos/iterative-dichotomiser-3 | 9ea5b0489c45007fd2283886ba823ab05b0ec4b0 | [
"Apache-2.0"
] | null | null | null | src/id3.hpp | Seemos/iterative-dichotomiser-3 | 9ea5b0489c45007fd2283886ba823ab05b0ec4b0 | [
"Apache-2.0"
] | null | null | null | #include<vector>
#include<array>
#include <tuple>
#ifndef ID3_HPP
#define ID3_HPP
typedef struct{
unsigned max_depth;
unsigned min_samples;
std::vector<int> feature_indicies;
std::vector<double> feature_thresholds;
std::vector<int> jumps;
}id3;
void build_id3(id3& tree, std::vector<std::vector<d... | 32 | 92 | 0.744213 | Seemos |
00a98e1aeac260d678198caf6f0bd0f1e4e1d435 | 4,123 | hpp | C++ | include/gemmi/fileutil.hpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 7 | 2020-09-09T10:59:59.000Z | 2020-11-19T15:26:53.000Z | include/gemmi/fileutil.hpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 85 | 2020-09-11T15:07:02.000Z | 2021-02-08T20:38:13.000Z | include/gemmi/fileutil.hpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 6 | 2021-03-26T13:04:10.000Z | 2021-11-18T19:28:16.000Z | //The contents of this file are covered by the Mozilla Public License v2, a copy of which is included in include/LICENSE_MOZILLAv2.txt
// Copyright 2018 Global Phasing Ltd.
//
// File-related utilities.
#ifndef GEMMI_FILEUTIL_HPP_
#define GEMMI_FILEUTIL_HPP_
#include <cctype> // for isdigit, isalnum
#include <cstd... | 32.210938 | 134 | 0.637642 | ngrigorieff |
00aed4b837d182e3f25bfe678750f7246bc3de8e | 3,219 | cpp | C++ | Codeforces/DZYLovesChessboard.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | Codeforces/DZYLovesChessboard.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | Codeforces/DZYLovesChessboard.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cctype>
#include <vector>
#include <set>
#include <queue>
#include <map>
#include <stack>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <cstring>
#include <cstdlib>
#include <locale>
#define scd(x) scanf("%d", &x)
#define scc(x) scanf("%c", &x)
#defi... | 22.354167 | 71 | 0.425909 | MartinAparicioPons |
00b9a889900c2368da24977f7ffa9a18c9d98039 | 1,186 | cpp | C++ | src/common/blackbox_helper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/common/blackbox_helper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/common/blackbox_helper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "../../engine/iblackbox.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "t... | 25.782609 | 90 | 0.581788 | cstom4994 |
00bdaf9fe948a63c53e8e8eae91f01c04ab28423 | 1,024 | cpp | C++ | MRSbusinesscard/MRSbusinesscard/MRSbusinesscard.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | 1 | 2019-09-11T04:55:06.000Z | 2019-09-11T04:55:06.000Z | MRSbusinesscard/MRSbusinesscard/MRSbusinesscard.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | MRSbusinesscard/MRSbusinesscard/MRSbusinesscard.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | // MRSbusinesscard.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
/*
Matthew Salazar
ITSE-1307 Spring 2019
20190207
This program is designed to display a business card.
Pseudo Code:
Display card.
*/
#include "pch.h"
#include <iostream>
using namespace ... | 29.257143 | 106 | 0.533203 | msalazar266 |
00c2efff335e2cc1c06c1764bdb901c8762d56bf | 128 | cpp | C++ | examples/CalcQt/features/step_definitions/QtTestCalculatorQtSteps.cpp | meshell/cucumber-cpp | a41565d8fd7b87fd160e441602b398dc76f6d739 | [
"MIT"
] | 214 | 2015-01-09T05:09:50.000Z | 2022-03-25T05:51:23.000Z | examples/CalcQt/features/step_definitions/QtTestCalculatorQtSteps.cpp | meshell/cucumber-cpp | a41565d8fd7b87fd160e441602b398dc76f6d739 | [
"MIT"
] | 186 | 2015-01-06T15:52:03.000Z | 2022-03-07T21:16:01.000Z | examples/CalcQt/features/step_definitions/QtTestCalculatorQtSteps.cpp | meshell/cucumber-cpp | a41565d8fd7b87fd160e441602b398dc76f6d739 | [
"MIT"
] | 120 | 2015-01-06T15:40:54.000Z | 2022-03-22T17:56:29.000Z | #include <QTest>
// Pretend to be GTest
#define EXPECT_EQ QCOMPARE
#define ASSERT_TRUE QVERIFY
#include "CalculatorQtSteps.cpp"
| 21.333333 | 32 | 0.796875 | meshell |
00c42d5208f5f291aafcba59d031a6ba00daaca6 | 1,950 | cpp | C++ | configuration/ConfigurationFileProcessor_test/ConfigurationFileProcessor_test.cpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationFileProcessor_test/ConfigurationFileProcessor_test.cpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationFileProcessor_test/ConfigurationFileProcessor_test.cpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
#include <string>
#include "ConfigurationFileProcessor_test.hpp"
#include "ConfigurationFileProcessor.hpp"
#include "ConfigurationParameter.hpp"
#include "Test.hpp"
#include "TestCases.hpp"
#include "TestMacros.hpp"
TEST_PROGRAM_MAIN(Configuration::FileProcessor_test);
//========... | 36.111111 | 95 | 0.67641 | leighgarbs |
00d3a2b5e0d73cbac348e39a23bd0029d1efd326 | 1,849 | cpp | C++ | Src/Dock/Icon.cpp | craflin/bdock | 5b352cffed47549e08ef4e07c526ff5f33f7b187 | [
"Apache-2.0"
] | 7 | 2017-03-13T17:50:25.000Z | 2022-03-16T07:18:55.000Z | Src/Dock/Icon.cpp | craflin/bdock | 5b352cffed47549e08ef4e07c526ff5f33f7b187 | [
"Apache-2.0"
] | null | null | null | Src/Dock/Icon.cpp | craflin/bdock | 5b352cffed47549e08ef4e07c526ff5f33f7b187 | [
"Apache-2.0"
] | 1 | 2021-06-26T00:25:52.000Z | 2021-06-26T00:25:52.000Z |
#include "stdafx.h"
Icon::Icon(HBITMAP icon, uint_t flags, Plugin* plugin) :
plugin(plugin)
{
memset((API::Icon*)this, 0, sizeof(API::Icon));
this->icon = icon;
this->flags = flags;
}
void Icon::draw(HDC dest, const Settings& settings)
{
if(!icon)
return;
BITMAP bm;
if(!GetObject(icon, sizeof(BIT... | 34.240741 | 191 | 0.670633 | craflin |
00d7e9f1d6f4d4a02eb4581f8309aedc437e8f46 | 4,079 | cpp | C++ | totp/users.cpp | atmikajoy/otp_generation_and_validation | 01dd38d8718fd1859685bdbfe54c6c655ccab93a | [
"MIT"
] | 1 | 2021-01-10T08:52:49.000Z | 2021-01-10T08:52:49.000Z | totp/users.cpp | atmikajoy/otp_generation_and_validation | 01dd38d8718fd1859685bdbfe54c6c655ccab93a | [
"MIT"
] | null | null | null | totp/users.cpp | atmikajoy/otp_generation_and_validation | 01dd38d8718fd1859685bdbfe54c6c655ccab93a | [
"MIT"
] | null | null | null | #include "users.h"
#include <algorithm>
#include <unordered_map>
#include <stdexcept>
#include<fstream>
#include<iostream>
#include <random>
#include"pbkdf2.h"
namespace users
{
namespace
{
static const std::size_t MIN_PASSWORD_SIZE = 6;
static const std::string SALT_STR = "E1F53135E559C253";
static util::byte_... | 22.289617 | 99 | 0.676636 | atmikajoy |
00d93486914dcb6eee24acc7406e54593edcfac1 | 3,569 | cpp | C++ | examples/flappybird/bird.cpp | igornerest/abcg | f0915196464497e71fe6396fce579a5dff7202a3 | [
"MIT"
] | null | null | null | examples/flappybird/bird.cpp | igornerest/abcg | f0915196464497e71fe6396fce579a5dff7202a3 | [
"MIT"
] | null | null | null | examples/flappybird/bird.cpp | igornerest/abcg | f0915196464497e71fe6396fce579a5dff7202a3 | [
"MIT"
] | 1 | 2021-12-04T03:28:33.000Z | 2021-12-04T03:28:33.000Z | #include "bird.hpp"
#include <cppitertools/itertools.hpp>
#include <algorithm>
void Bird::initializeGL(GLuint program) {
terminateGL();
resetBird();
m_program = program;
m_translationLoc = glGetUniformLocation(m_program, "translation");
m_colorLoc = glGetUniformLocation(m_program, "color");
m_rotationLo... | 30.504274 | 104 | 0.699636 | igornerest |
00d9fa6ac1bfb6b2872c1e3e870d079fb74c0624 | 1,873 | cpp | C++ | atcoder/abc198/D/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc198/D/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc198/D/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 = int64_t;
using ff = long double;
vector<ll> solve(string const& s1, string const& s2, string const& s3) {
vector<ll> const unsolvable = {};
set<char> cs;
for (auto c : s1) cs.insert(c);
for (auto c : s2) cs.insert(c);
for (auto c : s3) cs.i... | 25.657534 | 72 | 0.473572 | xirc |
00db36ef381ad201a3757b9be14d46260834693a | 403 | cpp | C++ | tatu2/container/deque unlila.cpp | AxlidinovJ/masalalar_C | ca48c0db29155016a729fbe23030d4a638175d9b | [
"MIT"
] | 3 | 2021-12-02T20:28:27.000Z | 2021-12-08T10:21:24.000Z | tatu2/container/deque unlila.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | tatu2/container/deque unlila.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | #include <iostream>
#include <deque>
using namespace std;
int main(){
deque<char> deq;
string name;
cout<<"name: "; cin>>name;
for(int d=0; d<=name.size(); d++){
if(name[d]=='a' or name[d]=='e' or name[d]=='i' or name[d]=='u' or name[d]=='o'){
deq.push_front(name[d]);
}else{
deq.push_back(name[d]... | 14.925926 | 83 | 0.528536 | AxlidinovJ |
00dba7fe4409aad6eaeade6049a76c1336634505 | 2,621 | hh | C++ | dev/g++/projects/embedded/comm/include/ipvx_address.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/comm/include/ipvx_address.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/comm/include/ipvx_address.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | 1 | 2017-01-27T12:53:50.000Z | 2017-01-27T12:53:50.000Z | /**
* \file ipvx_address.h
* \brief Header file for IPv4/IPv6 address abstraction.
* \author garciay.yann@gmail.com
* \copyright Copyright (c) 2015 ygarcia. All rights reserved
* \license This project is released under the MIT License
* \version 0.1
*/
#pragma once
#include <string>
#include <ve... | 31.963415 | 119 | 0.628768 | YannGarcia |
00ddeeeed3817775a116650448602fbd91d4121b | 326 | hpp | C++ | Source/Musa/Engine/FrameData.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/Engine/FrameData.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/Engine/FrameData.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#pragma once
#include "BasicTypes/Intrinsics.hpp"
struct FrameTime
{
// tick for this frame (not including physics at this point...)
const f32 tickSeconds = 0;
// Maybe what global time the frame started at...???
};
namespace Frame
{
FrameTime GetFrameTime();
f32 GetTickTimeSecond... | 18.111111 | 64 | 0.726994 | frobro98 |
00e0ac66650a8f6a86f739cd350b2a3148ef9ff9 | 5,502 | hh | C++ | core/deleter.hh | slivne/seastar | 05bd829ef9293b2622c0d93e8904c4bad94b3aa8 | [
"Apache-2.0"
] | 1 | 2017-10-28T14:09:05.000Z | 2017-10-28T14:09:05.000Z | core/deleter.hh | slivne/seastar | 05bd829ef9293b2622c0d93e8904c4bad94b3aa8 | [
"Apache-2.0"
] | null | null | null | core/deleter.hh | slivne/seastar | 05bd829ef9293b2622c0d93e8904c4bad94b3aa8 | [
"Apache-2.0"
] | null | null | null | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 26.325359 | 113 | 0.651581 | slivne |
00e185f86bcadfda14519bd337b981a6fd140e15 | 901 | cpp | C++ | naklibsrc/src/modules/JsAsymKey/JsAsymKey.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2021-07-01T02:01:27.000Z | 2021-07-01T02:01:27.000Z | naklibsrc/src/modules/JsAsymKey/JsAsymKey.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2020-09-23T12:34:34.000Z | 2020-09-23T12:34:34.000Z | naklibsrc/src/modules/JsAsymKey/JsAsymKey.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | null | null | null | #include <emscripten/bind.h>
#include <string>
#include <map>
#include <utility>
#include <AsymKey/AsymKey.h>
using namespace emscripten;
std::map<std::string, std::string> wasm_GenerateKeyPairPEM()
{
AsymKey keyGen;
std::map<std::string, std::string> m;
m.insert(std::make_pair(keyGen.exportPublicPEM()... | 26.5 | 85 | 0.709212 | murphyj8 |
00e22bc454a306dc35f5c88dd5234d4aa70406e7 | 709 | cc | C++ | index_tests/declaration_vs_definition/class.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | 1,652 | 2018-01-24T03:19:58.000Z | 2020-07-28T19:04:00.000Z | index_tests/declaration_vs_definition/class.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | 490 | 2018-01-24T00:55:38.000Z | 2020-07-03T19:44:16.000Z | index_tests/declaration_vs_definition/class.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | 154 | 2018-01-31T05:57:33.000Z | 2020-07-05T00:02:46.000Z | class Foo;
class Foo;
class Foo {};
class Foo;
/*
// NOTE: Separate decl/definition are not supported for classes. See source
// for comments.
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"types": [{
"id": 0,
"usr": 15041163540773201510,
"detailed_name": "Foo",
... | 20.852941 | 81 | 0.445698 | Gei0r |
00e2c4a09af463c3cd83b9e11010f10f710d84ad | 5,819 | cpp | C++ | Source/CameraController.cpp | L0mion/Makes-a-Click | c7f53a53ea3a58da027ea5f00176352edb914718 | [
"MIT"
] | 1 | 2016-04-28T06:24:15.000Z | 2016-04-28T06:24:15.000Z | Source/CameraController.cpp | L0mion/Makes-a-Click | c7f53a53ea3a58da027ea5f00176352edb914718 | [
"MIT"
] | null | null | null | Source/CameraController.cpp | L0mion/Makes-a-Click | c7f53a53ea3a58da027ea5f00176352edb914718 | [
"MIT"
] | null | null | null | #include "CameraController.h"
#include "camera.h"
#include "XInputFetcher.h"
#include "mathHelper.h"
#include "DebugGUI.h"
#include "HeightMap.h"
#include "PivotPoint.h"
#include <AntTweakBar.h>
#include "DigitalSmoothControl.h"
const int CameraController::s_vantagePoints[VantagePoints_CNT] = {
10,
50,
100,
200,
... | 30.150259 | 127 | 0.728648 | L0mion |
00e3d76adafd977b94daf39daee604ca692c2ec5 | 6,549 | cpp | C++ | src/fuml/src_gen/fUML/Semantics/StructuredClassifiers/impl/StructuredClassifiersFactoryImpl.cpp | MDE4CPP/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/fuml/src_gen/fUML/Semantics/StructuredClassifiers/impl/StructuredClassifiersFactoryImpl.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/fuml/src_gen/fUML/Semantics/StructuredClassifiers/impl/StructuredClassifiersFactoryImpl.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | #include "fUML/Semantics/StructuredClassifiers/impl/StructuredClassifiersFactoryImpl.hpp"
#include <cassert>
#include "abstractDataTypes/SubsetUnion.hpp"
#include "ecore/EClass.hpp"
#include "fUML/Semantics/StructuredClassifiers/impl/DispatchStrategyImpl.hpp"
#include "fUML/Semantics/StructuredClassifiers/impl/Extens... | 43.370861 | 206 | 0.788517 | MDE4CPP |
00e5c194a183285d78b3d864732c5fec40d25ef8 | 1,615 | cpp | C++ | dali/internal/accessibility/bridge/bridge-application.cpp | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2016-11-18T10:26:46.000Z | 2021-11-01T12:29:05.000Z | dali/internal/accessibility/bridge/bridge-application.cpp | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2020-07-15T11:30:49.000Z | 2020-12-11T19:13:46.000Z | dali/internal/accessibility/bridge/bridge-application.cpp | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2019-05-17T07:14:40.000Z | 2021-05-24T07:25:26.000Z | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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... | 29.363636 | 111 | 0.747988 | dalihub |
00e8a70426a78b11a1d326e9a78cd3bac138e619 | 3,400 | hpp | C++ | DBModule/include/ObjectProperties.hpp | ParoRahul/ImageDetection | 2292e36ae82fc067a87ae2683a5fa1ec056c2334 | [
"MIT"
] | null | null | null | DBModule/include/ObjectProperties.hpp | ParoRahul/ImageDetection | 2292e36ae82fc067a87ae2683a5fa1ec056c2334 | [
"MIT"
] | null | null | null | DBModule/include/ObjectProperties.hpp | ParoRahul/ImageDetection | 2292e36ae82fc067a87ae2683a5fa1ec056c2334 | [
"MIT"
] | null | null | null | /*******************************************************************************
* ObjectProperties.hpp
*
*
*******************************************************************************/
#ifndef OBJECTPROPERTIES_H
#define OBJECTPROPERTIES_H
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive... | 24.637681 | 84 | 0.650588 | ParoRahul |
00e9d3061aece021b7bea6154643ae82c9d97154 | 4,618 | cpp | C++ | src/utils.cpp | richardfeynmanrocks/ml-in-parallel | 6fd978b1f4a97ae789a13e0c2f20638672848aa5 | [
"Unlicense"
] | 3 | 2021-10-01T23:28:54.000Z | 2022-01-29T02:21:20.000Z | src/utils.cpp | quantumish/Jacobian | 6fd978b1f4a97ae789a13e0c2f20638672848aa5 | [
"Unlicense"
] | null | null | null | src/utils.cpp | quantumish/Jacobian | 6fd978b1f4a97ae789a13e0c2f20638672848aa5 | [
"Unlicense"
] | 1 | 2020-07-14T16:06:20.000Z | 2020-07-14T16:06:20.000Z | //
// utils.cpp
// Jacobian
//
// Created by David Freifeld
// Copyright © 2020 David Freifeld. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <cstdio>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#in... | 28.506173 | 121 | 0.660459 | richardfeynmanrocks |
00ed76761d82074c18410d317218283476d61f72 | 3,887 | hpp | C++ | mod/wrd/src/loader/pack/packLoader.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | 7 | 2019-03-12T03:04:32.000Z | 2021-12-26T04:33:44.000Z | mod/wrd/src/loader/pack/packLoader.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | 7 | 2019-02-13T14:01:43.000Z | 2020-11-20T11:09:06.000Z | mod/wrd/src/loader/pack/packLoader.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | null | null | null | #pragma once
#include "../../ast/pack.hpp"
#include "packLoading.hpp"
namespace wrd {
class errReport;
class packLoader : public typeProvidable, public clonable {
WRD(CLASS(packLoader))
public:
packLoader();
public:
me& addPath(const std::string& filePath) {
_pa... | 31.346774 | 124 | 0.52071 | kniz |
00ef151054cdd6e2641bda8233a7ba91d001ec77 | 123,776 | cpp | C++ | beelzebub/src/terminals/splash.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 32 | 2015-09-02T22:56:22.000Z | 2021-02-24T17:15:50.000Z | beelzebub/src/terminals/splash.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 30 | 2015-04-26T18:35:07.000Z | 2021-06-06T09:57:02.000Z | beelzebub/src/terminals/splash.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 11 | 2015-09-03T20:47:41.000Z | 2021-06-25T17:00:01.000Z | /**
* This code was produced by Vercas's "Image to Bit Stream" utility.
*
* The image reproduced in this code is a major modification of a work
* which is now placed in the public domain.
**/
#include <terminals/splash.hpp>
uint16_t const Beelzebub::Terminals::SplashImageWidth = 168;
uint16_t const Beelzebub... | 250.052525 | 256 | 0.735409 | vercas |
00ef25b06d9bb7499cace105b21cd923d3fee6ff | 24,836 | inl | C++ | src/fonts/stb_font_courier_bold_13_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_courier_bold_13_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_courier_bold_13_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_courier_bold_13_lat... | 60.872549 | 129 | 0.738686 | stetre |
00f58d591d68f9e38ac037cfa026a191d976f108 | 8,985 | cpp | C++ | Modules/DiffusionIO/ReaderWriter/mitkFiberBundleDicomWriter.cpp | HRS-Navigation/MITK-Diffusion | b1bf62d1c76f0d0cc26dd252561cb5d8769b4f87 | [
"BSD-3-Clause"
] | 37 | 2019-07-05T10:55:06.000Z | 2022-03-21T12:09:35.000Z | Modules/DiffusionIO/ReaderWriter/mitkFiberBundleDicomWriter.cpp | HRS-Navigation/MITK-Diffusion | b1bf62d1c76f0d0cc26dd252561cb5d8769b4f87 | [
"BSD-3-Clause"
] | 6 | 2019-11-04T16:05:47.000Z | 2022-03-22T15:53:31.000Z | Modules/DiffusionIO/ReaderWriter/mitkFiberBundleDicomWriter.cpp | HRS-Navigation/MITK-Diffusion | b1bf62d1c76f0d0cc26dd252561cb5d8769b4f87 | [
"BSD-3-Clause"
] | 10 | 2019-10-15T14:37:26.000Z | 2022-02-18T03:22:01.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR P... | 41.597222 | 241 | 0.699054 | HRS-Navigation |
00fb4c6e1497f04a2527d82b7b34e3a81433d7b7 | 1,298 | cpp | C++ | FarLight/src/FarLight/EditorSystem/EditorPanels/ComponentsPanel/ComponentsPanel.cpp | NewBediver/FarLight | 1ffaf127f51bb88ea3f5eb8d05c04458532d5389 | [
"Apache-2.0"
] | null | null | null | FarLight/src/FarLight/EditorSystem/EditorPanels/ComponentsPanel/ComponentsPanel.cpp | NewBediver/FarLight | 1ffaf127f51bb88ea3f5eb8d05c04458532d5389 | [
"Apache-2.0"
] | null | null | null | FarLight/src/FarLight/EditorSystem/EditorPanels/ComponentsPanel/ComponentsPanel.cpp | NewBediver/FarLight | 1ffaf127f51bb88ea3f5eb8d05c04458532d5389 | [
"Apache-2.0"
] | null | null | null | #include "flpch.h"
#include "FarLight/EditorSystem/EditorPanels/ComponentsPanel/ComponentsPanel.h"
namespace FarLight
{
void ComponentsPanel::ShowContent() noexcept
{
ImGui::Begin(GetTitle().c_str());
ShowComponent<TagComponent>("Name");
ShowComponent<TransformComponent>("Transform");... | 35.081081 | 146 | 0.664869 | NewBediver |
00fba5a9a457db20bacbdc969de84f2dce347e2f | 190 | cpp | C++ | CodeForces/1107B_Digital_Root.cpp | ASM-ATIKUR/Competitive_Programming_Atikur_Rahman | 9552e4dca7daad5c07542514d4b8c8baabea1989 | [
"MIT"
] | null | null | null | CodeForces/1107B_Digital_Root.cpp | ASM-ATIKUR/Competitive_Programming_Atikur_Rahman | 9552e4dca7daad5c07542514d4b8c8baabea1989 | [
"MIT"
] | null | null | null | CodeForces/1107B_Digital_Root.cpp | ASM-ATIKUR/Competitive_Programming_Atikur_Rahman | 9552e4dca7daad5c07542514d4b8c8baabea1989 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long n, k, x;
cin>>n;
while(n--)
{
cin>>k>>x;
cout<<(k-1)*9+x<<endl;
}
return 0;
}
| 11.176471 | 30 | 0.447368 | ASM-ATIKUR |
2e012df05add8ae3f018e236e091673ec7014219 | 8,686 | cpp | C++ | test/ssc_test/save_as_JSON_test.cpp | JordanMalan/ssc | cadb7a9f3183d63c600b5c33f53abced35b6b319 | [
"BSD-3-Clause"
] | null | null | null | test/ssc_test/save_as_JSON_test.cpp | JordanMalan/ssc | cadb7a9f3183d63c600b5c33f53abced35b6b319 | [
"BSD-3-Clause"
] | null | null | null | test/ssc_test/save_as_JSON_test.cpp | JordanMalan/ssc | cadb7a9f3183d63c600b5c33f53abced35b6b319 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <cmath>
#include <iostream>
#include <fstream>
#include <gtest/gtest.h>
#include "../ssc/vartab.h"
#include "../rapidjson/document.h"
#include "../rapidjson/istreamwrapper.h"
#include "../rapidjson/filereadstream.h"
static const char* SSCDIR = std::getenv("SSCDIR");
char inputs_as_JSON[256... | 37.930131 | 128 | 0.724039 | JordanMalan |
2e04aeeeb6c793167cf04b44a92b198ec28edeb0 | 4,998 | hpp | C++ | include/Core/Castor3D/Material/MaterialModule.hpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/Castor3D/Material/MaterialModule.hpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/Castor3D/Material/MaterialModule.hpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___C3D_MaterialModule_H___
#define ___C3D_MaterialModule_H___
#include "Castor3D/Cache/CacheModule.hpp"
#include <CastorUtils/Design/Resource.hpp>
#include <CastorUtils/Design/Signal.hpp>
namespace castor3d
{
/**@name Material */
//@{
/**
*\~english
*\brief
* Text... | 28.724138 | 114 | 0.714286 | DragonJoker |
2e053709471795ed4ff6643b4a1da8bc73277606 | 2,958 | hpp | C++ | include/wge/logging/log.hpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 5 | 2016-09-18T01:39:19.000Z | 2020-05-24T02:37:45.000Z | include/wge/logging/log.hpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 25 | 2017-02-11T21:13:24.000Z | 2020-06-24T08:48:33.000Z | include/wge/logging/log.hpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 2 | 2017-04-29T22:12:16.000Z | 2018-04-05T10:35:25.000Z | #pragma once
#include <fmt/format.h>
#include <wge/util/span.hpp>
#include <cassert>
#include <any>
#include <string_view>
#include <ctime>
namespace wge::log
{
// Type used to store userdata
using userdata_t = std::any;
// Represents the severity level of a message
enum class level
{
unknown,
info,
debug,
war... | 22.753846 | 114 | 0.7238 | clman94 |
2e06c21e42e749f276538eb98728a78a8a2397e9 | 13,130 | cpp | C++ | src/UIBox.cpp | ndickson/UICommon | 29a04e503e5e05594f5637f563b9f54417d4181e | [
"MIT"
] | null | null | null | src/UIBox.cpp | ndickson/UICommon | 29a04e503e5e05594f5637f563b9f54417d4181e | [
"MIT"
] | null | null | null | src/UIBox.cpp | ndickson/UICommon | 29a04e503e5e05594f5637f563b9f54417d4181e | [
"MIT"
] | null | null | null | #include "UIBox.h"
#include "Canvas.h"
#include <Box.h>
OUTER_NAMESPACE_BEGIN
UICOMMON_LIBRARY_NAMESPACE_BEGIN
UIBox* UIBox::construct() {
return new UIBox();
}
UIBoxClass UIBox::initClass() {
UIBoxClass c;
c.isContainer = false;
c.typeName = "UIBox";
c.construct = &construct;
// No data to destruct, so destr... | 32.661692 | 116 | 0.725895 | ndickson |
2e073e32d5159492c827a6e8bedd0f6a3d0398a1 | 2,018 | cpp | C++ | HotPatcher/Source/HotPatcherRuntime/Private/CreatePatch/HotPatcherContext.cpp | kongbawa/HotPatcher | 7b6ec7db73614f1404ca32676e4c9a808d0bce05 | [
"MIT"
] | 1 | 2021-12-10T09:16:37.000Z | 2021-12-10T09:16:37.000Z | HotPatcher/Source/HotPatcherRuntime/Private/CreatePatch/HotPatcherContext.cpp | kongbawa/HotPatcher | 7b6ec7db73614f1404ca32676e4c9a808d0bce05 | [
"MIT"
] | null | null | null | HotPatcher/Source/HotPatcherRuntime/Private/CreatePatch/HotPatcherContext.cpp | kongbawa/HotPatcher | 7b6ec7db73614f1404ca32676e4c9a808d0bce05 | [
"MIT"
] | null | null | null | #include "CreatePatch/HotPatcherContext.h"
FPatchVersionExternDiff* FHotPatcherPatchContext::GetPatcherDiffInfoByName(const FString& PlatformName)
{
ETargetPlatform Platform;
UFlibPatchParserHelper::GetEnumValueByName(PlatformName,Platform);
// add new file to diff
FPatchVersionExternDiff* PatchVersionE... | 33.081967 | 128 | 0.77552 | kongbawa |
2e0c379d19711487fa5b83e5a64f8b1b0e4dfd4a | 2,220 | cpp | C++ | examples/r_transformation_effect.cpp | bluelightning32/walnut | c259e62dad5a22b95978e28afe18ebe230849cc6 | [
"MIT"
] | 3 | 2021-10-16T16:22:52.000Z | 2022-02-07T21:41:34.000Z | examples/r_transformation_effect.cpp | bluelightning32/walnut | c259e62dad5a22b95978e28afe18ebe230849cc6 | [
"MIT"
] | 2 | 2021-10-17T10:25:35.000Z | 2022-01-30T18:32:19.000Z | examples/r_transformation_effect.cpp | bluelightning32/walnut | c259e62dad5a22b95978e28afe18ebe230849cc6 | [
"MIT"
] | null | null | null | #include "bsp_visualization.h"
#include "visualization_window.h"
#include "walnut/aabb.h"
using namespace walnut;
int main(int argc, char *argv[]) {
VisualizationWindow window("r_transformation_effect");
BSPVisualization tree_visualization(
window,
/*bounding_box=*/AABB(-28, -28, -20, 28, 28, 20, 1),... | 30.833333 | 66 | 0.488288 | bluelightning32 |
2e0e1cad146f47a3ef1c5b6ae0e337b63688947e | 9,116 | cpp | C++ | src/AnalysisController.cpp | MarcelHB/mpi-rma-static-analysis | 934b38e1fc199afc1f4b2faad7b4b475ecc7195f | [
"MIT-0",
"MIT"
] | 4 | 2020-08-16T23:34:22.000Z | 2022-03-15T10:32:27.000Z | src/AnalysisController.cpp | MarcelHB/mpi-rma-static-analysis | 934b38e1fc199afc1f4b2faad7b4b475ecc7195f | [
"MIT-0",
"MIT"
] | null | null | null | src/AnalysisController.cpp | MarcelHB/mpi-rma-static-analysis | 934b38e1fc199afc1f4b2faad7b4b475ecc7195f | [
"MIT-0",
"MIT"
] | 1 | 2020-08-16T23:35:15.000Z | 2020-08-16T23:35:15.000Z | #include <iostream>
#include "AnalysisController.h"
#include "CommSynchronizationCheck.h"
#include "ConcurrentCommCheck.h"
#include "DynamicMemoryRequestCheck.h"
#include "EpochMatcher.h"
#ifdef WITH_MPI
#include "FenceFlagCheck.h"
#endif
#include "PathGrouper.h"
#include "RankAttributionAndContradictionCheck.h"
#in... | 27.130952 | 79 | 0.587538 | MarcelHB |
2e0ff2b744c04363ee07616cb811ec4e66796319 | 17,436 | cpp | C++ | swri_route_util/src/route_speeds.cpp | fatadama/marti_common | 892c76ef02f91f45a72161b92989c47d931471f2 | [
"BSD-3-Clause"
] | 1 | 2020-03-19T09:19:10.000Z | 2020-03-19T09:19:10.000Z | swri_route_util/src/route_speeds.cpp | wangwenqiangGitHub/marti_common | cd601b8701e1f88a6de5c8c8ff4b992f24490e36 | [
"BSD-3-Clause"
] | null | null | null | swri_route_util/src/route_speeds.cpp | wangwenqiangGitHub/marti_common | cd601b8701e1f88a6de5c8c8ff4b992f24490e36 | [
"BSD-3-Clause"
] | null | null | null | // *****************************************************************************
//
// Copyright (c) 2017, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... | 36.78481 | 106 | 0.674983 | fatadama |
2e11c1f725b7d0eb242d5e622bdb1064c19b41cc | 19,708 | cpp | C++ | llpc/lower/llpcSpirvLowerMemoryOp.cpp | rtayl/llpc | b01d864fa6c756b428436314d44a7af12d211ca5 | [
"MIT"
] | null | null | null | llpc/lower/llpcSpirvLowerMemoryOp.cpp | rtayl/llpc | b01d864fa6c756b428436314d44a7af12d211ca5 | [
"MIT"
] | null | null | null | llpc/lower/llpcSpirvLowerMemoryOp.cpp | rtayl/llpc | b01d864fa6c756b428436314d44a7af12d211ca5 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2017-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 40.803313 | 120 | 0.546123 | rtayl |
2e12a54c9d7cbe7a941833af4ebf1047210b6cab | 503 | cpp | C++ | lib/libcppy/MeshWrap/timemesh.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcppy/MeshWrap/timemesh.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcppy/MeshWrap/timemesh.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #include <string>
#include <cassert>
#include <iostream>
#include <boost/python.hpp>
#include <boost/python/numpy.hpp>
#include "timemeshwrapper.hpp"
namespace bp = boost::python;
namespace np = boost::python::numpy;
/*---------------------------------------------------------------------------*/
void wrapTimeMe... | 26.473684 | 79 | 0.584493 | beckerrh |
2e1320c5e2b1b1ebc2bde99b900088dfc94cb556 | 1,834 | cpp | C++ | Snake.cpp | theoden8/snake | 410fa3b15d747304e331662fd57acea65d3e1573 | [
"MIT"
] | null | null | null | Snake.cpp | theoden8/snake | 410fa3b15d747304e331662fd57acea65d3e1573 | [
"MIT"
] | null | null | null | Snake.cpp | theoden8/snake | 410fa3b15d747304e331662fd57acea65d3e1573 | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstdlib>
#include "Snake.hpp"
#include "Functions.hpp"
#include "Aimer.hpp"
#include "Router.hpp"
#include "State.hpp"
Snake::Snake()
{
objects.push_back(
{
Ball(
WIDTH >> 1,
HEIGHT >> 1
)
}
);
IMG_TARGET.load(FOLDER + "textures/TARGET.tga");
for(int i = 0; i < NO_I... | 18.525253 | 77 | 0.635769 | theoden8 |
2e14af4c63351e9504a8598a63019778e5dde98d | 7,583 | cpp | C++ | logdevice/common/test/NodesConfigStoreTest.cpp | SimonKinds/LogDevice | fc9ac2fccb6faa3292b2b0a610a9eb77fd445824 | [
"BSD-3-Clause"
] | null | null | null | logdevice/common/test/NodesConfigStoreTest.cpp | SimonKinds/LogDevice | fc9ac2fccb6faa3292b2b0a610a9eb77fd445824 | [
"BSD-3-Clause"
] | null | null | null | logdevice/common/test/NodesConfigStoreTest.cpp | SimonKinds/LogDevice | fc9ac2fccb6faa3292b2b0a610a9eb77fd445824 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <condition_variable>
#include <mutex>
#include <ostream>
#include <folly/Conv.h>
#include <folly... | 31.728033 | 79 | 0.635105 | SimonKinds |
2e199f09da4e88b5c02e316791759db14ffee858 | 16,731 | cpp | C++ | test_gontrill/application_main.cpp | asm128/gpk_samples | 7875af0c9116d0c9377a2e7ade0a61364358f4b1 | [
"Apache-2.0"
] | null | null | null | test_gontrill/application_main.cpp | asm128/gpk_samples | 7875af0c9116d0c9377a2e7ade0a61364358f4b1 | [
"Apache-2.0"
] | null | null | null | test_gontrill/application_main.cpp | asm128/gpk_samples | 7875af0c9116d0c9377a2e7ade0a61364358f4b1 | [
"Apache-2.0"
] | null | null | null | // Tip: Best viewed with zoom level at 81%.
// Tip: Hold Left ALT + SHIFT while tapping or holding the arrow keys in order to select multiple columns and write on them at once.
// Also useful for copy & paste operations in which you need to copy a bunch of variable or function names and you can't afford the time of co... | 70.894068 | 352 | 0.69177 | asm128 |
2e21b64c579db8b097519b82438173e2431eca49 | 9,258 | cpp | C++ | src/utm/utm.cpp | sslnjz/geodesy | c7acc47903a22b12c0fca65fd0e7e8fea122af25 | [
"MIT"
] | 2 | 2021-11-23T05:39:48.000Z | 2021-12-06T02:53:53.000Z | src/utm/utm.cpp | sslnjz/geodesy | c7acc47903a22b12c0fca65fd0e7e8fea122af25 | [
"MIT"
] | null | null | null | src/utm/utm.cpp | sslnjz/geodesy | c7acc47903a22b12c0fca65fd0e7e8fea122af25 | [
"MIT"
] | null | null | null | /**********************************************************************************
* MIT License *
* *
* Copyright (c) 2021 Binbin Song <ssln.jzs@gmail.com> ... | 43.669811 | 149 | 0.535321 | sslnjz |
2e2d10b547ef6473bcbf9f0dd11374f13397d802 | 4,298 | cpp | C++ | Engine/Test/Core/Molten/System/SemaphoreTest.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Test/Core/Molten/System/SemaphoreTest.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Test/Core/Molten/System/SemaphoreTest.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2019 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 31.144928 | 80 | 0.547464 | jimmiebergmann |
2e2d609bad92c1892211636c5848365390ee555c | 3,574 | cpp | C++ | 297.serialize-and-deserialize-binary-tree.cpp | cherlix/leetcode | c436e36c3900d3d3eefdbd47c260bbf09854d1c4 | [
"MIT"
] | null | null | null | 297.serialize-and-deserialize-binary-tree.cpp | cherlix/leetcode | c436e36c3900d3d3eefdbd47c260bbf09854d1c4 | [
"MIT"
] | null | null | null | 297.serialize-and-deserialize-binary-tree.cpp | cherlix/leetcode | c436e36c3900d3d3eefdbd47c260bbf09854d1c4 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=297 lang=cpp
*
* [297] Serialize and Deserialize Binary Tree
*
* https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/
*
* algorithms
* Hard (39.92%)
* Total Accepted: 168.9K
* Total Submissions: 423.1K
* Testcase Example: '[1,2,3,null,null,4,5]'
*
* ... | 28.365079 | 83 | 0.563234 | cherlix |
2e2f9ad366e6f0fbfe92a0e22ee293e0277fd1ed | 1,786 | cpp | C++ | Engine/src/InRangeCBT.cpp | Swizzman/DV1573_Stort_Spel | 77ed6524988b0b501d9b556c487a36d929a20313 | [
"MIT"
] | 3 | 2022-01-29T12:05:53.000Z | 2022-02-20T16:00:26.000Z | Engine/src/InRangeCBT.cpp | Swizzman/Homehearth | 77ed6524988b0b501d9b556c487a36d929a20313 | [
"MIT"
] | null | null | null | Engine/src/InRangeCBT.cpp | Swizzman/Homehearth | 77ed6524988b0b501d9b556c487a36d929a20313 | [
"MIT"
] | null | null | null | #include "EnginePCH.h"
#include "InRangeCBT.h"
BT::InRangeCBT::InRangeCBT(const std::string& name, Entity entity, Blackboard* blackboard)
:ConditionNode(name),
entity(entity),
blackboard(blackboard)
{
}
BT::NodeStatus BT::InRangeCBT::Tick()
{
sm::Vector3 position;
comp::Transform* transform = entity.GetComponen... | 24.465753 | 92 | 0.710526 | Swizzman |
2e335d6e736625535ba61338dbd5be3475ff5283 | 8,291 | cc | C++ | src/utils/CLHEP/Vector/src/ZMinput.cc | lukaszgaza/winhacplusplus | 6f3c71a507ced4e3e8fff05d239478c823cdbbc6 | [
"MIT"
] | null | null | null | src/utils/CLHEP/Vector/src/ZMinput.cc | lukaszgaza/winhacplusplus | 6f3c71a507ced4e3e8fff05d239478c823cdbbc6 | [
"MIT"
] | null | null | null | src/utils/CLHEP/Vector/src/ZMinput.cc | lukaszgaza/winhacplusplus | 6f3c71a507ced4e3e8fff05d239478c823cdbbc6 | [
"MIT"
] | null | null | null | //#include "CLHEP/Vector/defs.h"
#include <cctype>
#include <iostream>
namespace {
bool eatwhitespace ( std::istream & is ) {
// Will discard whitespace until it either encounters EOF or bad input
// (in which case it will return false) or it hits a non-whitespace.
// Will put that non whitespace character bac... | 25.048338 | 78 | 0.560608 | lukaszgaza |
2e33b343d234d3f45bdd3cbf7d377ab14e831317 | 1,182 | cpp | C++ | tests/data/workarounds.cpp | Viatorus/compile-time-printer | bad757885226a19590c222a98f9264583429d2b3 | [
"BSL-1.0"
] | 35 | 2021-01-11T15:05:32.000Z | 2022-03-18T20:26:06.000Z | tests/data/workarounds.cpp | Viatorus/compile-time-printer | bad757885226a19590c222a98f9264583429d2b3 | [
"BSL-1.0"
] | 11 | 2021-01-03T13:36:58.000Z | 2021-02-07T16:00:15.000Z | tests/data/workarounds.cpp | Viatorus/compile-time-printer | bad757885226a19590c222a98f9264583429d2b3 | [
"BSL-1.0"
] | 1 | 2021-01-12T12:59:44.000Z | 2021-01-12T12:59:44.000Z | #include <ctp/ctp.hpp>
#include <algorithm>
template<size_t N>
constexpr size_t test() {
ctp::print(N);
return N;
}
// This will fail on some GCC versions.
// static_assert(test<1>() == 1);
// Workaround is to instantiation test via constexpr variable.
static_assert(ctp::forward<test<1>> == 1);
static_assert(ctp::... | 24.625 | 65 | 0.694585 | Viatorus |
aa31cdb7dd7b28844f8e01b5999291730cda2070 | 2,163 | hpp | C++ | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_efi.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 56 | 2019-11-07T01:57:38.000Z | 2021-06-07T21:09:52.000Z | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_efi.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 25 | 2021-03-01T22:57:32.000Z | 2021-12-26T07:48:25.000Z | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_efi.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 11 | 2019-11-07T03:32:35.000Z | 2021-05-08T14:00:58.000Z | //
// kern_efi.hpp
// Lilu
//
// Copyright © 2018 vit9696. All rights reserved.
//
#ifndef kern_efi_h
#define kern_efi_h
#include <Headers/kern_util.hpp>
#include <pexpert/i386/efi.h>
/**
* Convert 32-bit EFI errors provided by Apple to 64-bit EFI errors
*/
#define EFI_ERROR64(x) (((x) & ~(1ULL << 31)) | (1UL... | 24.862069 | 117 | 0.698567 | zhujinle |
aa34259038749834c6f609d5eb86cc5bf2be2bca | 3,153 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/28_regex/traits/char/user_defined.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/28_regex/traits/char/user_defined.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/28_regex/traits/char/user_defined.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do run { target c++11 } }
//
// 2014-01-07 Tim Shen <timshen91@gmail.com>
//
// Copyright (C) 2010-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public Li... | 26.275 | 86 | 0.654297 | best08618 |
aa387f33716db802bdbf3c70b66e309a439d1f27 | 737 | hpp | C++ | include/lock.hpp | Yrp/mysql2hive | 82f246e41458216e5d3215305b8c6d488eaf900b | [
"Apache-2.0"
] | null | null | null | include/lock.hpp | Yrp/mysql2hive | 82f246e41458216e5d3215305b8c6d488eaf900b | [
"Apache-2.0"
] | null | null | null | include/lock.hpp | Yrp/mysql2hive | 82f246e41458216e5d3215305b8c6d488eaf900b | [
"Apache-2.0"
] | null | null | null |
#if !defined(RESIP_LOCK_HXX)
#define RESIP_LOCK_HXX
#include "lockable.hpp"
enum LockType
{
VOCAL_LOCK = 0,
VOCAL_READLOCK,
VOCAL_WRITELOCK
};
/**
@brief A convenience class to lock a Lockable (such as a Mutex) on object
creation, and unlock on destruction. (ie, a scoped lock)
@see Mutex
*/
class... | 15.040816 | 76 | 0.656716 | Yrp |
aa3cbff9948435550b97afd5421cb85d2e0d251d | 25,977 | cpp | C++ | lib/src/EBAMRTools/EBPWLFillPatch.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 10 | 2018-02-01T20:57:36.000Z | 2022-03-17T02:57:49.000Z | lib/src/EBAMRTools/EBPWLFillPatch.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 19 | 2018-10-04T21:37:18.000Z | 2022-02-25T16:20:11.000Z | lib/src/EBAMRTools/EBPWLFillPatch.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 11 | 2019-01-12T23:33:32.000Z | 2021-08-09T15:19:50.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
// dtgraves fri sept 7, 2001
#include "EBPWLFillPatch.H"
#include "EBInterpo... | 37.11 | 115 | 0.534165 | rmrsk |
aa3ee554b95689edf76463f7090d2a4fd4c106ae | 15,652 | cpp | C++ | Common.cpp | AthenaADP/MHO-ASS | 3f44afa4ebbcca190ab2454bd7d9fec1d47094e2 | [
"MIT"
] | 3 | 2017-11-27T17:49:26.000Z | 2019-04-23T13:51:05.000Z | Common.cpp | AthenaADP/MHO-ASS | 3f44afa4ebbcca190ab2454bd7d9fec1d47094e2 | [
"MIT"
] | null | null | null | Common.cpp | AthenaADP/MHO-ASS | 3f44afa4ebbcca190ab2454bd7d9fec1d47094e2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Common.h"
#include "Armor.h"
#include "Decoration.h"
#include "CharmDatabase.h"
#include "LoadedData.h"
using namespace System;
using namespace Windows::Forms;
#using <mscorlib.dll>
using namespace System::Runtime::InteropServices;
[DllImport("user32.dll", SetLastError = true)]
extern i... | 28.666667 | 145 | 0.646946 | AthenaADP |
aa3fe86e63b92df0bf7c24b99703aa8d54943d80 | 17,955 | cpp | C++ | ModulePlayer.cpp | McCampins/OutRun-1986 | 27079397454eddd06f8f04f720841d073b327b8e | [
"Apache-2.0"
] | 2 | 2019-07-25T19:07:59.000Z | 2021-02-04T01:32:13.000Z | ModulePlayer.cpp | McCampins/OutRun-1986 | 27079397454eddd06f8f04f720841d073b327b8e | [
"Apache-2.0"
] | null | null | null | ModulePlayer.cpp | McCampins/OutRun-1986 | 27079397454eddd06f8f04f720841d073b327b8e | [
"Apache-2.0"
] | 2 | 2018-01-07T20:12:35.000Z | 2021-02-19T01:29:15.000Z | #include "Globals.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "ModuleAudio.h"
#include "ModuleRender.h"
#include "ModuleFadeToBlack.h"
#include "ModulePlayer.h"
#include "ModuleSceneStage.h"
ModulePlayer::ModulePlayer(bool active) : Module(active)
{
//FORWARD
// idle a... | 25.760402 | 198 | 0.593261 | McCampins |
aa41ee57817ed01bd35be58edc3b376722c0eb47 | 392 | cpp | C++ | aula014/main.cpp | GuilhermeAlvesSanjaCity/C- | 1f56574c247c67193eabb5a5e78d68fd674a605d | [
"MIT"
] | null | null | null | aula014/main.cpp | GuilhermeAlvesSanjaCity/C- | 1f56574c247c67193eabb5a5e78d68fd674a605d | [
"MIT"
] | null | null | null | aula014/main.cpp | GuilhermeAlvesSanjaCity/C- | 1f56574c247c67193eabb5a5e78d68fd674a605d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// UTILIZACAO DA CONDICIONAL WHILE
int main(void) {
// DECREMENTO
int cont=20;
while(cont>0){
cout << cont << "\n";
cont--;
// INCREMENTO
/*
int cont=0;
while(cont<10){
cout << n << "\n";
//n++;
cin >> n;
*/
}
cout << " NUMERO ATENDI... | 7.84 | 51 | 0.5 | GuilhermeAlvesSanjaCity |
aa43eb286d02950e2ea3a3c57a1c9122b09e2ff2 | 1,776 | cpp | C++ | test/sql/subquery/test_lateral.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-08-01T08:21:33.000Z | 2019-08-01T08:21:33.000Z | test/sql/subquery/test_lateral.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | test/sql/subquery/test_lateral.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-09-06T09:58:14.000Z | 2019-09-06T09:58:14.000Z | #include "catch.hpp"
#include "common/file_system.hpp"
#include "dbgen.hpp"
#include "test_helpers.hpp"
using namespace duckdb;
using namespace std;
TEST_CASE("Test lateral joins", "[subquery]") {
unique_ptr<QueryResult> result;
DuckDB db(nullptr);
Connection con(db);
con.EnableQueryVerification();
return;
// ... | 44.4 | 116 | 0.709459 | mweisgut |
aa4474bcbe296bb7b6f1c163b16598774abea280 | 1,967 | cpp | C++ | src/Engine/Renderer/DebugRenderer.cpp | Sausty/GameProject-1 | 0c0c13dea2b446213cea9074a02bcf588fb46559 | [
"MIT"
] | null | null | null | src/Engine/Renderer/DebugRenderer.cpp | Sausty/GameProject-1 | 0c0c13dea2b446213cea9074a02bcf588fb46559 | [
"MIT"
] | null | null | null | src/Engine/Renderer/DebugRenderer.cpp | Sausty/GameProject-1 | 0c0c13dea2b446213cea9074a02bcf588fb46559 | [
"MIT"
] | null | null | null | //
// Created by MarcasRealAccount on 7. Nov. 2020.
//
#include "Engine/Renderer/DebugRenderer.h"
namespace gp1 {
DebugRenderer* DebugRenderer::m_DebugRenderer = nullptr;
DebugRenderer::DebugRenderer(Renderer* renderer)
: m_Renderer(renderer) {}
void DebugRenderer::Init() {}
void DebugRenderer::DeInit() {}
... | 33.913793 | 157 | 0.739705 | Sausty |
aa463509de2b8c714b8ddd7d03b142395bb7defe | 20 | hpp | C++ | game.hpp | WasecaProgramming/tictactoe | 85a79655136f7c4927990923e042db555ffee422 | [
"WTFPL"
] | 1 | 2016-10-11T20:42:10.000Z | 2016-10-11T20:42:10.000Z | game.hpp | WasecaProgramming/tictactoe | 85a79655136f7c4927990923e042db555ffee422 | [
"WTFPL"
] | null | null | null | game.hpp | WasecaProgramming/tictactoe | 85a79655136f7c4927990923e042db555ffee422 | [
"WTFPL"
] | null | null | null | //Define class Game
| 10 | 19 | 0.75 | WasecaProgramming |
aa4737e7f487a1b2c48e717234dae1fb63839075 | 3,522 | cpp | C++ | src/modules/CMComp.cpp | isaaclimdc/cachemulator | bcd0d330431df4dae9a7e1c61d2a61c4a0b3ffec | [
"MIT"
] | 1 | 2022-03-06T08:31:11.000Z | 2022-03-06T08:31:11.000Z | src/modules/CMComp.cpp | isaaclimdc/cachemulator | bcd0d330431df4dae9a7e1c61d2a61c4a0b3ffec | [
"MIT"
] | null | null | null | src/modules/CMComp.cpp | isaaclimdc/cachemulator | bcd0d330431df4dae9a7e1c61d2a61c4a0b3ffec | [
"MIT"
] | null | null | null | /* CACHEMULATOR
* Yuyang Guo (yuyangg) and Isaac Lim (idl)
*/
#include "CMComp.h"
#include "debug.h"
#include "CMAddr.h"
#include "CMProc.h"
#include "CMBusCtrlr.h"
#include "CMGlobals.h"
#include "CMMemCtrlr.h"
#include "CMSharing.h"
#include <string>
#include <iostream>
#include <fstream>
CMComp::CMComp(int P) {
... | 25.157143 | 74 | 0.638274 | isaaclimdc |
aa4938bda7b9cc9d04b6f06d5a19ac4c72a4a495 | 2,829 | cpp | C++ | DigitalIO.cpp | bcookOh1/ChickenDoor | 08799af6511d247fa04a722bd8741eef2c791824 | [
"MIT"
] | null | null | null | DigitalIO.cpp | bcookOh1/ChickenDoor | 08799af6511d247fa04a722bd8741eef2c791824 | [
"MIT"
] | null | null | null | DigitalIO.cpp | bcookOh1/ChickenDoor | 08799af6511d247fa04a722bd8741eef2c791824 | [
"MIT"
] | null | null | null |
#include "DigitalIO.h"
#include <wiringPi.h>
DigitalIO::DigitalIO(){
wiringPiSetup(); // Initialize wiringPi
} // end ctor
DigitalIO::~DigitalIO(){
} // end dtor
int DigitalIO::SetIoPoints(const vector<IoConfig> &dioVect){
int ret = 0;
_dios.clear();
set<unsigned> pinList;
for(auto iter = dioV... | 24.387931 | 91 | 0.595263 | bcookOh1 |
aa496b41402a4b7d7cba3a84a613804ef421d844 | 473 | cpp | C++ | x2-3.cpp | plinkyplunky/2020algorithms-start | 72f08360f5dcb82bd620c15d284ca50968735249 | [
"MIT"
] | null | null | null | x2-3.cpp | plinkyplunky/2020algorithms-start | 72f08360f5dcb82bd620c15d284ca50968735249 | [
"MIT"
] | null | null | null | x2-3.cpp | plinkyplunky/2020algorithms-start | 72f08360f5dcb82bd620c15d284ca50968735249 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#define maxn 100000
int main()
{
int m, n;
while (scanf("%d%d", &n, &m) == 2 && n != 0 && m != 0)
{
double sum = 0;
for (int i = n; i <= m; i++)
{
if (i > maxn)
{
break;
}
... | 20.565217 | 59 | 0.340381 | plinkyplunky |
aa518c04f8d465d43ca3e74422e9de3c8269c73c | 5,193 | cpp | C++ | scripts/SimpleFileFactoryClass.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | scripts/SimpleFileFactoryClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | scripts/SimpleFileFactoryClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /* Renegade Scripts.dll
Copyright 2017 Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll 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, or (at yo... | 25.835821 | 164 | 0.658771 | mpforums |
aa547b612a15a94ca05048b6cf3d57fb3744c810 | 6,589 | cpp | C++ | Marlin-BIQUBX_ALMOST_STOCK/Marlin/src/feature/host_actions.cpp | Ejay-3D/Marlin-Biqu | bcf9d30c2fb998ca7d2ebf8c2cb917a96eb2d018 | [
"MIT"
] | 6 | 2020-12-04T21:55:04.000Z | 2022-02-02T20:49:45.000Z | Marlin-BIQUBX_ALMOST_STOCK/Marlin/src/feature/host_actions.cpp | Ejay-3D/Marlin-Biqu | bcf9d30c2fb998ca7d2ebf8c2cb917a96eb2d018 | [
"MIT"
] | 1 | 2021-06-16T09:37:24.000Z | 2021-06-16T09:44:32.000Z | Marlin-BIQUBX_ALMOST_STOCK/Marlin/src/feature/host_actions.cpp | Ejay-3D/Marlin-Biqu | bcf9d30c2fb998ca7d2ebf8c2cb917a96eb2d018 | [
"MIT"
] | 3 | 2021-05-01T15:13:41.000Z | 2022-02-11T01:15:30.000Z | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 34.317708 | 150 | 0.694036 | Ejay-3D |
aa597a4084d0b8e3c5968f27fea052fe292aa8e7 | 352 | hpp | C++ | src/array_key.hpp | lachem/d-conf | 8cad9f02d579180f934e7c6a1fd80eaa6deac027 | [
"BSL-1.0"
] | null | null | null | src/array_key.hpp | lachem/d-conf | 8cad9f02d579180f934e7c6a1fd80eaa6deac027 | [
"BSL-1.0"
] | 17 | 2019-06-28T11:29:42.000Z | 2021-02-18T16:38:53.000Z | src/array_key.hpp | lachem/d-conf | 8cad9f02d579180f934e7c6a1fd80eaa6deac027 | [
"BSL-1.0"
] | 1 | 2020-03-24T10:23:22.000Z | 2020-03-24T10:23:22.000Z | // Copyright Adam Lach 2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
namespace dconfig {
struct ArrayKey
{
operator char () const { return value; }
char value =... | 20.705882 | 61 | 0.659091 | lachem |
aa5bb91b149c36c54ca59b78fefc1a51bd85c5c2 | 602 | cpp | C++ | yche_study_codes/file_study/TraverseDir.cpp | AlgorithmLover/KeyValuePlay | decccac33c5972053b1741453a88048744623c55 | [
"MIT"
] | 3 | 2018-08-27T09:17:08.000Z | 2019-01-04T09:31:43.000Z | yche_study_codes/file_study/TraverseDir.cpp | AlgorithmLover/KeyValuePlay | decccac33c5972053b1741453a88048744623c55 | [
"MIT"
] | null | null | null | yche_study_codes/file_study/TraverseDir.cpp | AlgorithmLover/KeyValuePlay | decccac33c5972053b1741453a88048744623c55 | [
"MIT"
] | 1 | 2018-11-05T05:36:35.000Z | 2018-11-05T05:36:35.000Z | //
// Created by cheyulin on 8/12/16.
//
#include <dirent.h>
#include <iostream>
#include <sstream>
#include <sys/stat.h>
using namespace std;
DIR *dpdf;
struct dirent *epdf;
void yche_mkdir(string dir_name) {
mkdir(dir_name.c_str(), 0755);
}
int main() {
string s("/");
cout <<s <<endl;
stringstream... | 18.242424 | 51 | 0.536545 | AlgorithmLover |
aa5ebeb4538baa709bc73478584ccc06a6dd24bd | 1,788 | cpp | C++ | common/apsu/thread_pool_mgr.cpp | lqvir/apsu | 8b878558e67a1187a8860cd7c633e445243cdad6 | [
"MIT"
] | 2 | 2022-03-17T12:38:42.000Z | 2022-03-20T10:27:44.000Z | common/apsu/thread_pool_mgr.cpp | Bruce-Luuuu/APSU | 8b878558e67a1187a8860cd7c633e445243cdad6 | [
"MIT"
] | null | null | null | common/apsu/thread_pool_mgr.cpp | Bruce-Luuuu/APSU | 8b878558e67a1187a8860cd7c633e445243cdad6 | [
"MIT"
] | 1 | 2022-03-27T12:59:15.000Z | 2022-03-27T12:59:15.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <memory>
#include <mutex>
// APSU
#include "apsu/thread_pool_mgr.h"
using namespace std;
using namespace apsu;
using namespace apsu::util;
/**
Static reference count that will manage the lifetime of the s... | 21.285714 | 80 | 0.708054 | lqvir |
aa616240be80cef875c1e6e57e39073519fffba7 | 3,890 | cpp | C++ | snippets/cpp/VS_Snippets_Remoting/WebPermission_IsSubset/CPP/webpermission_issubset.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_Remoting/WebPermission_IsSubset/CPP/webpermission_issubset.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_Remoting/WebPermission_IsSubset/CPP/webpermission_issubset.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z | // System::Net::WebPermission->AddPermission(NetworkAccess, regex);
// System::Net::WebPermission::IsSubsetOf;
/**
* This program shows how to use the AddPermission(NetworkAccess, regex) and
* IsSubset methods of WebPermission class.
* It creates two WebPermission instances with the Connect access rights for the
* sp... | 35.363636 | 111 | 0.688946 | BohdanMosiyuk |
aa61860b9878cad05430ea5235301104f87d9211 | 1,597 | hpp | C++ | include/crts/MakeModule.hpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 6 | 2019-01-05T08:30:32.000Z | 2022-03-10T08:19:57.000Z | include/crts/MakeModule.hpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 4 | 2019-10-18T14:31:04.000Z | 2020-10-16T16:52:30.000Z | include/crts/MakeModule.hpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 5 | 2017-05-12T21:24:18.000Z | 2022-03-10T08:20:02.000Z | #ifndef __CRTS_MakeModule_H__
#define __CRTS_MakeModule_H__
// CPP Macro Module Loader Function
//
// A module must define the two object factory functions: createObj() and
// destroyObj() and loader() by using this MACRO function. The exposed
// symbol is loader() which we get with the dynamic shared object loadin... | 23.485294 | 73 | 0.662492 | xywzwd |
aa61f42ae7853fc8347bc08925775cc73dee7006 | 782 | hpp | C++ | include/cpu.hpp | oskarirauta/cpubus | 80ec2812c27b6f165ca277c62d6be43369fc3231 | [
"MIT"
] | null | null | null | include/cpu.hpp | oskarirauta/cpubus | 80ec2812c27b6f165ca277c62d6be43369fc3231 | [
"MIT"
] | null | null | null | include/cpu.hpp | oskarirauta/cpubus | 80ec2812c27b6f165ca277c62d6be43369fc3231 | [
"MIT"
] | null | null | null | #ifndef _CPU_H_
#define _CPU_H_ 1
#include <string>
#include <vector>
#include "ubus.hpp"
#include "cpu_tcks.hpp"
class cpu_node {
public:
int id, mhz;
std::string name, vendor, model;
float load;
struct ubus_object ubus;
cpu_node(int id, std::string name, std::string vendor, std::string model, int mhz, ... | 16.291667 | 97 | 0.690537 | oskarirauta |
aa621db14651dfd96482d7755a60a26f6bb268b4 | 5,127 | c++ | C++ | c++/samples/tutorial/client.c++ | ghbplayer/capnproto | a6716ffdf4f55b7de99f3e66b0ee43eba76208db | [
"MIT"
] | null | null | null | c++/samples/tutorial/client.c++ | ghbplayer/capnproto | a6716ffdf4f55b7de99f3e66b0ee43eba76208db | [
"MIT"
] | null | null | null | c++/samples/tutorial/client.c++ | ghbplayer/capnproto | a6716ffdf4f55b7de99f3e66b0ee43eba76208db | [
"MIT"
] | null | null | null | #include "pch.h"
int main()
{
std::cout << "starting" << std::endl;
kj::AsyncIoContext ioContext(kj::setupAsyncIo());
kj::WaitScope& wait = ioContext.waitScope;
auto address = ioContext.provider->getNetwork().parseAddress("127.0.0.1", 2000).wait(wait);
std::cout << "connecting" << std::endl;
kj::Own<kj::AsyncI... | 30.885542 | 127 | 0.596645 | ghbplayer |
aa64234a47534b1ba39071f977a4383216dc8205 | 2,021 | cpp | C++ | cpp_dsgn_pattern_n_derivatives_pricing/chapter14/exercise14_1/source/MomentMatchingXlw.cpp | calvin456/intro_derivative_pricing | 0841fbc0344bee00044d67977faccfd2098b5887 | [
"MIT"
] | 5 | 2016-12-28T16:07:38.000Z | 2022-03-11T09:55:57.000Z | cpp_dsgn_pattern_n_derivatives_pricing/chapter14/exercise14_1/source/MomentMatchingXlw.cpp | calvin456/intro_derivative_pricing | 0841fbc0344bee00044d67977faccfd2098b5887 | [
"MIT"
] | null | null | null | cpp_dsgn_pattern_n_derivatives_pricing/chapter14/exercise14_1/source/MomentMatchingXlw.cpp | calvin456/intro_derivative_pricing | 0841fbc0344bee00044d67977faccfd2098b5887 | [
"MIT"
] | 5 | 2017-06-04T04:50:47.000Z | 2022-03-17T17:41:16.000Z | //_MomentMatchingXlw.cpp
#include "MomentMatchingXlw.h"
#include <Arrays.h>
#include <ParkMiller.h>
#include <MersenneTwister.h>
#include <MyFunctions.h>
#include <string>
using namespace std;
MomentMatchingXlw::MomentMatchingXlw(ArgumentList args)
:RandomBaseXlw()
{
if (args.GetStructureName() != "rng")
thro... | 23.776471 | 125 | 0.762989 | calvin456 |
aa6449b5ea44c2edcfe71f88c367a66b1b15e3b4 | 2,282 | cpp | C++ | Source/PsIronSource/Private/PsIronSource.cpp | Antonrr/PsIronSource | 7571cac0476e1d24a4332445c52ad837f08b3eaf | [
"MIT"
] | 9 | 2017-12-20T08:49:49.000Z | 2022-03-25T10:05:23.000Z | Source/PsIronSource/Private/PsIronSource.cpp | Antonrr/PsIronSource | 7571cac0476e1d24a4332445c52ad837f08b3eaf | [
"MIT"
] | 3 | 2020-04-01T16:13:40.000Z | 2022-03-25T10:22:47.000Z | Source/PsIronSource/Private/PsIronSource.cpp | Antonrr/PsIronSource | 7571cac0476e1d24a4332445c52ad837f08b3eaf | [
"MIT"
] | 13 | 2019-06-19T07:32:52.000Z | 2022-03-24T18:31:30.000Z | // Copyright 2015-2021 Mail.Ru Group. All Rights Reserved.
#include "IPsIronSource.h"
#include "PsIronSourceDefines.h"
#include "PsIronSourceProxy.h"
#include "PsIronSourceSettings.h"
#if WITH_IRONSOURCE
#if PLATFORM_IOS
#include "PsIronSource_iOS.h"
#elif PLATFORM_ANDROID
#include "PsIronSource_Android.h"
#endif // ... | 27.166667 | 108 | 0.765118 | Antonrr |
aa66c793093c4e836882ef9ebf51416a89985f70 | 5,363 | cpp | C++ | example_with_image.cpp | aaronscherzinger/gneric_shortestpath | 2d49e37fc3f710db7fdcb68492c18ec63e440c0b | [
"MIT"
] | null | null | null | example_with_image.cpp | aaronscherzinger/gneric_shortestpath | 2d49e37fc3f710db7fdcb68492c18ec63e440c0b | [
"MIT"
] | null | null | null | example_with_image.cpp | aaronscherzinger/gneric_shortestpath | 2d49e37fc3f710db7fdcb68492c18ec63e440c0b | [
"MIT"
] | 1 | 2019-07-13T06:40:18.000Z | 2019-07-13T06:40:18.000Z | #define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include <assert.h>
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
#include "pathfinding.h"
//////////////////////////////////////////////////////////
// simple example using an image file as graph topology //
////////////... | 30.645714 | 130 | 0.558083 | aaronscherzinger |
aa705a827e17dd6326a32351023d4846a9c4f94c | 5,899 | cpp | C++ | build/linux-build/Sources/src/kha/graphics4/TessellationControlShader.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/graphics4/TessellationControlShader.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/graphics4/TessellationControlShader.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <hxinc/haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_kha_Resource
#include <hxinc/kha/Resource.h>
#endif
#ifndef INCLUDED_kha_graphics4_TessellationControlShader
#include <hxinc/kha/graphics4/TessellationControlShader.h>
#endif
... | 42.438849 | 247 | 0.790982 | HedgehogFog |
aa74b3abfa8e7080132deb886826a1e012114dc1 | 146 | cpp | C++ | targets/private/blog/float/main.cpp | FStoeltie/themaopdracht04 | d1c3a9d29fac778d7675b48b14b51c3d7498d228 | [
"BSL-1.0"
] | null | null | null | targets/private/blog/float/main.cpp | FStoeltie/themaopdracht04 | d1c3a9d29fac778d7675b48b14b51c3d7498d228 | [
"BSL-1.0"
] | null | null | null | targets/private/blog/float/main.cpp | FStoeltie/themaopdracht04 | d1c3a9d29fac778d7675b48b14b51c3d7498d228 | [
"BSL-1.0"
] | null | null | null | #include <math.h>
// constexpr
bool f( int x ){
return sin( x ) > 0.5;
}
int main(){
volatile bool x = f( 12 );
(void) x;
}
| 12.166667 | 29 | 0.479452 | FStoeltie |
aa74cd030cb9ac5d083082e20ed73502d47f4e78 | 1,245 | cpp | C++ | examples/V4/call/src/call.cpp | uenctech/wasm-cdt | 8ac25a36c4d842e5b7cc8daffffd5cf99604ad06 | [
"MIT"
] | 1 | 2020-03-19T13:05:19.000Z | 2020-03-19T13:05:19.000Z | examples/V4/call/src/call.cpp | uenctech/wasm-cdt | 8ac25a36c4d842e5b7cc8daffffd5cf99604ad06 | [
"MIT"
] | null | null | null | examples/V4/call/src/call.cpp | uenctech/wasm-cdt | 8ac25a36c4d842e5b7cc8daffffd5cf99604ad06 | [
"MIT"
] | 2 | 2020-02-01T04:26:58.000Z | 2020-08-18T07:35:43.000Z | #include <call.hpp>
using namespace wasm;
#define WASM_FUNCTION_PRINT_LENGTH 50
#define WASM_LOG_PRINT( debug, ... ) { \
if ( debug ) { \
std::string str = std::string(__FILE__); \
str += std::string(":"); \
str += std::to_string(__LINE__); \
str... | 31.923077 | 183 | 0.578313 | uenctech |
aa754e46f91ef38991b18bec72d2525d948b43a9 | 3,069 | cpp | C++ | startalk_ui/encryptchatcontroller.cpp | xuepingiw/open_source_startalk | 44d962b04039f5660ec47a10313876a0754d3e72 | [
"MIT"
] | 34 | 2019-03-18T08:09:24.000Z | 2022-03-15T02:03:25.000Z | startalk_ui/encryptchatcontroller.cpp | venliong/open_source_startalk | 51fda091a932a8adea626c312692836555753a9a | [
"MIT"
] | 5 | 2019-05-29T09:32:05.000Z | 2019-08-29T03:01:33.000Z | startalk_ui/encryptchatcontroller.cpp | venliong/open_source_startalk | 51fda091a932a8adea626c312692836555753a9a | [
"MIT"
] | 32 | 2019-03-15T09:43:22.000Z | 2021-08-10T08:26:02.000Z | #include "encryptchatcontroller.h"
#include "Session.h"
#include "qcloudmanager.h"
#include "UserVcardManager.h"
#include "aescommon.h"
#include "Account.h"
#include "virtualaccountcontroller.h"
#include "UtilHelper.h"
#include "UIFrame.h"
#include "AccountData.h"
#include "SystemConfigData.h"
#include "virtualaccount... | 24.95122 | 135 | 0.72043 | xuepingiw |
aa756d31b6b3351f0b3171164c84ee41065fe828 | 5,495 | cpp | C++ | src/SparrowFrontend/UserDefinedSourceCode.cpp | CristianDragu/sparrow | 49844c2329ac001c3a0779baae7a2f02743c4494 | [
"MIT"
] | 80 | 2015-05-05T12:21:50.000Z | 2022-03-30T18:38:48.000Z | src/SparrowFrontend/UserDefinedSourceCode.cpp | CristianDragu/sparrow | 49844c2329ac001c3a0779baae7a2f02743c4494 | [
"MIT"
] | 51 | 2016-09-09T13:44:50.000Z | 2021-11-28T07:03:02.000Z | src/SparrowFrontend/UserDefinedSourceCode.cpp | CristianDragu/sparrow | 49844c2329ac001c3a0779baae7a2f02743c4494 | [
"MIT"
] | 8 | 2015-07-28T11:34:15.000Z | 2020-02-01T21:54:06.000Z | #include <StdInc.h>
#include "UserDefinedSourceCode.h"
#include <Helpers/SprTypeTraits.h>
#include <Helpers/StdDef.h>
#include <Helpers/Ct.h>
#include <SprDebug.h>
#include <Nodes/Builder.h>
#include "Feather/Api/Feather.h"
#include "Nest/Utils/Alloc.h"
#include "Nest/Utils/Diagnostic.hpp"
#include "Nest/Utils/cppif/... | 34.130435 | 99 | 0.674249 | CristianDragu |
aa7809842d3fd950d268b0670ef9a6f1ac044289 | 2,536 | cpp | C++ | CC/Other/hash_code_2021/manish.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | 1 | 2020-10-12T08:03:20.000Z | 2020-10-12T08:03:20.000Z | CC/Other/hash_code_2021/manish.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | CC/Other/hash_code_2021/manish.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define F first
#define S second
map<string,int> path_len;
map<string,int> edge_to_node;
map<string,int> reord;
vector<int> adj[100009];
set <int> en[100009],st[100009];
ll total_time,nodes,edge... | 21.133333 | 70 | 0.535883 | MrRobo24 |
aa78f2fca1860fe9d96167cc54fe44ac46cdf97e | 1,517 | cpp | C++ | Source/Engine/Core/System/MemoryMappedFile.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | 176 | 2020-10-31T21:28:27.000Z | 2022-01-22T12:15:38.000Z | Source/Engine/Core/System/MemoryMappedFile.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | null | null | null | Source/Engine/Core/System/MemoryMappedFile.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | 9 | 2020-12-25T01:12:48.000Z | 2022-01-13T16:28:43.000Z | #include "MemoryMappedFile.h"
#include <iostream>
MemoryMappedFile::MemoryMappedFile(FileStream& Stream, UINT64 FileSize /*= DefaultFileSize*/)
: Stream(Stream)
{
InternalCreate(FileSize);
}
MemoryMappedFile::~MemoryMappedFile()
{
}
MemoryMappedView MemoryMappedFile::CreateView()
{
constexpr DWORD DesiredAccess =... | 24.868852 | 112 | 0.75412 | KaiH0717 |
aa7b5ac778fdf95929ae1423a618f032959f6c50 | 225 | hpp | C++ | include/ColoCat.hpp | jsonzilla/colocat | f1e0a3fbcef9746db16414e60d305c526efa0308 | [
"MIT"
] | 14 | 2020-10-22T19:05:29.000Z | 2022-01-22T20:58:12.000Z | include/ColoCat.hpp | jsonzilla/colocat | f1e0a3fbcef9746db16414e60d305c526efa0308 | [
"MIT"
] | null | null | null | include/ColoCat.hpp | jsonzilla/colocat | f1e0a3fbcef9746db16414e60d305c526efa0308 | [
"MIT"
] | 7 | 2020-10-23T07:08:25.000Z | 2022-01-23T12:20:22.000Z | /*# MIT License
#
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved.
# Distributed under the terms of the MIT License.
#*/
#ifndef COLOCAT_HPP
#define COLOCAT_HPP
#define VERSION "0.2-beta-1"
#endif // COLOCAT_HPP
| 17.307692 | 57 | 0.728889 | jsonzilla |
aa7eac14496009eb6078d7dccc62cef9adeabee8 | 7,746 | cpp | C++ | src/tools/STV/ConfigurationManager.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/tools/STV/ConfigurationManager.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/tools/STV/ConfigurationManager.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | #include "ConfigurationManager.h"
#include <fstream>
#include <cstring>
#include <iostream>
#include <windows.h>
#define MSG(title,msg) MessageBox( NULL, msg, title, MB_OK );
//#include <QMessageBox.h>
//#define QMSG(msg) QMessageBox::information(0, "QMessage", msg, QMessageBox::Ok);
using namespace std... | 26.527397 | 88 | 0.627162 | attila-sim |
aa7f2786b51e68a719c34836169e34cbd613f403 | 1,124 | cpp | C++ | divFact.cpp | getmrinal/Algo-Dump | 90cc21ea93be664504aecdf9ab48161e39077ee9 | [
"MIT"
] | null | null | null | divFact.cpp | getmrinal/Algo-Dump | 90cc21ea93be664504aecdf9ab48161e39077ee9 | [
"MIT"
] | null | null | null | divFact.cpp | getmrinal/Algo-Dump | 90cc21ea93be664504aecdf9ab48161e39077ee9 | [
"MIT"
] | null | null | null | #include <iostream>
#include<vector>
using namespace std;
#define MOD 1000000007
vector <int> makeSieve(int n){
bool arr[n+1];
for(int i=0;i<=n;i++){
arr[i] = true;
}
arr[0] = false;
arr[1] = false;
//filter prime
for(int i=2;i*i<=n;i++){
if(arr[i]){
for(int j=i*i;j<=n;j = j+i){
arr[j... | 15.611111 | 43 | 0.495552 | getmrinal |
aa81a9511a954f37994bc9b4e156afb0f8a8c10d | 7,821 | cpp | C++ | LibGraphics/Resources/Wm5VertexFormat.cpp | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | 1 | 2021-02-18T10:25:42.000Z | 2021-02-18T10:25:42.000Z | LibGraphics/Resources/Wm5VertexFormat.cpp | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | null | null | null | LibGraphics/Resources/Wm5VertexFormat.cpp | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | null | null | null | // Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.0 (2010/01/01)
#include "Wm5GraphicsPCH.h"
#include "Wm5VertexFormat.h"
#includ... | 28.336957 | 78 | 0.52538 | CRIMSONCardiovascularModelling |
aa8abe5907e7381343710a3f56e3720eccddb5c6 | 6,251 | cpp | C++ | Consult/header.cpp | everyday-solution/ESolutions.C45 | 3285440e0b5812820c85f318c5d50585a7cee288 | [
"MIT"
] | null | null | null | Consult/header.cpp | everyday-solution/ESolutions.C45 | 3285440e0b5812820c85f318c5d50585a7cee288 | [
"MIT"
] | null | null | null | Consult/header.cpp | everyday-solution/ESolutions.C45 | 3285440e0b5812820c85f318c5d50585a7cee288 | [
"MIT"
] | null | null | null | /*************************************************************************/
/* */
/* Print header for all C4.5 programs */
/* ---------------------------------- */
/* */
/*************************************************************************/
#ifndef __HEADER_CPP__
#define __HEADER_CPP__
... | 24.513725 | 81 | 0.50136 | everyday-solution |
aa8b2d04bc2b660f368905ee2f85a11514c6aafe | 6,902 | cpp | C++ | Engine/Application.cpp | SOLID-TEAM/SOLID_ENGINE | 7fa9eccc28217d49a937fcf1dcfc052716825d30 | [
"MIT"
] | 2 | 2019-11-22T23:34:36.000Z | 2019-11-27T10:27:35.000Z | Engine/Application.cpp | SOLID-TEAM/SOLID_ENGINE | 7fa9eccc28217d49a937fcf1dcfc052716825d30 | [
"MIT"
] | null | null | null | Engine/Application.cpp | SOLID-TEAM/SOLID_ENGINE | 7fa9eccc28217d49a937fcf1dcfc052716825d30 | [
"MIT"
] | null | null | null | #include "Application.h"
#include <fstream>
Application::Application()
{
LOG("-------------- Application Creation --------------");
config_filename.assign("editor_config.json");
app_name.assign("SOLID_ENGINE");
organization_name.assign("SOLID_TEAM");
time = new ModuleTime();
window = new ModuleWindow();
input... | 22.051118 | 124 | 0.639959 | SOLID-TEAM |
aa8d237c3298c7bbf064d346b870f7d3bc44e308 | 2,369 | cpp | C++ | src/engine/components/replay/cl_renderqueue.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/components/replay/cl_renderqueue.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/components/replay/cl_renderqueue.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//
#include "cl_renderqueue.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
//--------------------------... | 29.6125 | 102 | 0.606163 | cstom4994 |
aa8de03a0611fdc273afa494f09d82f9e48cd434 | 3,930 | cpp | C++ | Source Code/ECS/Systems/AnimationSystem.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/ECS/Systems/AnimationSystem.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/ECS/Systems/AnimationSystem.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Headers/AnimationSystem.h"
#include "Geometry/Animations/Headers/SceneAnimator.h"
namespace Divide {
AnimationSystem::AnimationSystem(ECS::ECSEngine& parentEngine, PlatformContext& context)
: PlatformContextComponent(context),
ECSSystem(parentEngine)
... | 32.213115 | 112 | 0.558524 | IonutCava |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.