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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
122ae8a4dbb851bd8b0686cc72850a236e1f754e | 8,475 | cpp | C++ | common/events/src/events/zsysd.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 9 | 2016-08-10T16:51:23.000Z | 2020-04-08T22:07:47.000Z | common/events/src/events/zsysd.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 78 | 2015-02-25T15:16:02.000Z | 2021-10-31T15:58:15.000Z | common/events/src/events/zsysd.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 7 | 2015-01-13T14:39:21.000Z | 2018-11-24T06:48:09.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
this software, either in source code form or as a compiled binary, for any
purpose, commercial or non-commercial, and by any means.
In jurisdictions that reco... | 38.004484 | 100 | 0.487198 | naazgull |
122b1f5dd7e100112c1df1920bb2392b584c44bc | 8,793 | cpp | C++ | parameter_generator.cpp | alexrow/LEDAtools | f847707833650706519cc57f5956b8e1a17a157c | [
"Unlicense"
] | null | null | null | parameter_generator.cpp | alexrow/LEDAtools | f847707833650706519cc57f5956b8e1a17a157c | [
"Unlicense"
] | null | null | null | parameter_generator.cpp | alexrow/LEDAtools | f847707833650706519cc57f5956b8e1a17a157c | [
"Unlicense"
] | 1 | 2021-03-12T09:12:30.000Z | 2021-03-12T09:12:30.000Z | #include <NTL/ZZ.h>
#include <cstdint>
#include <cmath>
#define NUM_BITS_REAL_MANTISSA 128
#define IGNORE_DECODING_COST 0
#define SKIP_BJMM 0
#define LOG_COST_CRITERION 1
#include "proper_primes.hpp"
#include "binomials.hpp"
#include "bit_error_probabilities.hpp"
#include "partitions_permanents.hpp"
#include "i... | 35.455645 | 116 | 0.589446 | alexrow |
122e5086319ce6bf859f46f5a1bc19bb9cdc8c8a | 923 | cpp | C++ | src/terminal/render/Translate.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | src/terminal/render/Translate.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | src/terminal/render/Translate.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | #include "Translate.h"
#include <glm/gtx/rotate_vector.hpp>
#include "../Resources.h"
#include "Model.h"
#include "RModel.h"
glm::mat4 etm::tsl::model(Resources *res, Model &m) {
glm::mat4 model(1.0f);
// Translate so that the x/y coords are in the middle
// of the object, then convert to quads (OpenGL ... | 34.185185 | 119 | 0.641387 | KeinR |
122ed0e34c0bb22804e4541fc998efbf1fd47cd7 | 112 | cpp | C++ | language.cpp | MasterQ32/CodersNotepad | 8248ce25bda3b9fb82d84ec682bc9c82ac4e868a | [
"MIT"
] | null | null | null | language.cpp | MasterQ32/CodersNotepad | 8248ce25bda3b9fb82d84ec682bc9c82ac4e868a | [
"MIT"
] | null | null | null | language.cpp | MasterQ32/CodersNotepad | 8248ce25bda3b9fb82d84ec682bc9c82ac4e868a | [
"MIT"
] | null | null | null | #include "language.h"
Language::Language(QString id, QObject *parent) :
QObject(parent),
mId(id)
{
}
| 11.2 | 49 | 0.642857 | MasterQ32 |
12321dfd81c2143f28ab45a2e45581e2ee362dd0 | 9,804 | cpp | C++ | unittest/benchmark/benchmark_knowhere_binary.cpp | ChunelFeng/knowhere | 4c6ff55b5a23a9a38b12db40cbb5cd847cae1408 | [
"Apache-2.0"
] | null | null | null | unittest/benchmark/benchmark_knowhere_binary.cpp | ChunelFeng/knowhere | 4c6ff55b5a23a9a38b12db40cbb5cd847cae1408 | [
"Apache-2.0"
] | null | null | null | unittest/benchmark/benchmark_knowhere_binary.cpp | ChunelFeng/knowhere | 4c6ff55b5a23a9a38b12db40cbb5cd847cae1408 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 37.853282 | 116 | 0.586597 | ChunelFeng |
123358de8146823dfc763ad8df7083420de0c640 | 8,638 | hpp | C++ | OBJ_IO.hpp | James-Wickenden/computer-graphics | 03a2661e4c9368773b21ea9e7b459f0bde7a649c | [
"MIT"
] | 1 | 2020-07-15T13:14:57.000Z | 2020-07-15T13:14:57.000Z | OBJ_IO.hpp | James-Wickenden/computer-graphics | 03a2661e4c9368773b21ea9e7b459f0bde7a649c | [
"MIT"
] | null | null | null | OBJ_IO.hpp | James-Wickenden/computer-graphics | 03a2661e4c9368773b21ea9e7b459f0bde7a649c | [
"MIT"
] | null | null | null | #include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <tuple>
#include <optional>
#include "OBJ_Structure.hpp"
#include "Texture.hpp"
using namespace std;
using namespace glm;
class OBJ_IO {
public:
OBJ_IO () {}
// ... | 33.48062 | 106 | 0.56263 | James-Wickenden |
72ef6173b28a1535cc00fc18f6393683ab11f2f5 | 10,181 | cpp | C++ | Components/Components/Logic/KalmanFilter6DOF.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | 1 | 2022-03-09T21:31:49.000Z | 2022-03-09T21:31:49.000Z | Components/Components/Logic/KalmanFilter6DOF.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | 4 | 2022-02-11T18:24:49.000Z | 2022-03-28T01:16:51.000Z | Components/Components/Logic/KalmanFilter6DOF.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | null | null | null | #include "KalmanFilter6DOF.hpp"
#include <cerrno>
using namespace Onboard;
float const TIME_CONST_ATT_CORR = 4.0f; //[s]
KalmanFilter6DOF::KalmanFilter6DOF(BaseTimer* const masterTimer)
: _estimateTimer(masterTimer),
_timerLastGoodMeasUpdate(masterTimer),
_IMUInitialized(false),
_UWBInitializ... | 32.841935 | 126 | 0.615264 | muellerlab |
72f505ad7263cbbb422071cf83d1160c3602ebe7 | 5,074 | cpp | C++ | Game/keyconfiglabel.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | 1 | 2021-04-14T15:06:55.000Z | 2021-04-14T15:06:55.000Z | Game/keyconfiglabel.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | 7 | 2020-05-14T02:14:26.000Z | 2020-05-22T04:57:47.000Z | Game/keyconfiglabel.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | null | null | null | // Copyright(c) 2018 Seth Ballantyne <seth.ballantyne@gmail.com>
//
// 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... | 30.566265 | 133 | 0.645644 | sethballantyne |
72f5f37c1905bf7f237fd45aa63ef18e7bc77b41 | 11,687 | cpp | C++ | src/services/events/system.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 26 | 2018-03-19T15:59:46.000Z | 2021-08-06T16:13:16.000Z | src/services/events/system.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 34 | 2018-01-21T17:43:29.000Z | 2020-06-27T02:00:53.000Z | src/services/events/system.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 3 | 2019-12-08T22:26:35.000Z | 2021-06-25T17:05:57.000Z | /*
Copyright (c) 2017, Patrick Lafferty
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... | 36.867508 | 129 | 0.57534 | patrick-lafferty |
72fabfadf143f37ccb37fb1957981107315c2112 | 3,480 | cpp | C++ | src/plugins/azoth/plugins/vader/vader.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/azoth/plugins/vader/vader.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/azoth/plugins/vader/vader.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 24 | 88 | 0.670977 | Maledictus |
72fd44ad283abd8d85d93a4d070f7e9932fdb001 | 922 | hpp | C++ | Libraries/Libui/LayoutParams.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | 21 | 2021-08-22T19:06:54.000Z | 2022-03-31T12:44:30.000Z | Libraries/Libui/LayoutParams.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | 1 | 2021-09-01T22:55:59.000Z | 2021-09-08T20:52:09.000Z | Libraries/Libui/LayoutParams.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | #pragma once
namespace UI {
enum class LayoutParamsType {
Default,
MarginLayoutParams,
LinearLayoutParams,
};
struct LayoutParams {
LayoutParams() = default;
LayoutParams(LayoutParamsType type)
: type(type)
{
}
enum Size {
WRAP_CONTENT = -2,
MATCH_PARENT = -1,
... | 18.816327 | 66 | 0.64859 | Plunkerusr |
72fe365c0ac25e513416ba572994d39c7a0c54bf | 545 | cpp | C++ | ICPC/Repechaje2021/base.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Repechaje2021/base.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Repechaje2021/base.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,int> pii... | 17.580645 | 65 | 0.658716 | CaDe27 |
72fe5603bd613549421b714a7f45b5f916b921bd | 132 | cpp | C++ | Numbers/Fibonacci_Recursive.cpp | PhilRybka/Algorithms | 86a11777aa7fc19abee845f0c18893afbd491130 | [
"MIT"
] | null | null | null | Numbers/Fibonacci_Recursive.cpp | PhilRybka/Algorithms | 86a11777aa7fc19abee845f0c18893afbd491130 | [
"MIT"
] | null | null | null | Numbers/Fibonacci_Recursive.cpp | PhilRybka/Algorithms | 86a11777aa7fc19abee845f0c18893afbd491130 | [
"MIT"
] | null | null | null | //Returns the n-th element of the Fibonacci sequence
int fib(int n){
if(n==1||n==2) return 1;
return fib(n-2)+fib(n-1);
}
| 16.5 | 52 | 0.613636 | PhilRybka |
72ffb2d48de7d5b06f9e60c525b2c3c216c1aabf | 3,828 | cpp | C++ | aligndiff/algorithms/lcslength_ondgreedy.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 14 | 2017-06-16T22:52:38.000Z | 2022-02-14T04:11:06.000Z | aligndiff/algorithms/lcslength_ondgreedy.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:50:04.000Z | 2019-04-01T09:53:17.000Z | aligndiff/algorithms/lcslength_ondgreedy.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:05:17.000Z | 2018-09-18T01:28:42.000Z | // Copyright (c) 2017 mogemimi. Distributed under the MIT license.
#include "aligndiff.h"
#include <cassert>
#include <cstdlib>
namespace aligndiff {
int computeLCSLength_ONDGreedyAlgorithm(
const std::string& text1,
const std::string& text2)
{
// NOTE:
// This algorithm is based on Myers's An O((M+N... | 32.440678 | 77 | 0.449582 | mogemimi |
f4031124c33c5e509c18ccefb7d3aadddd44d520 | 237 | hpp | C++ | learnBoost/learnBoost/c++/bootregister.hpp | zhenyiyi/LearnDiary | 7e88ced2c4294b5cfb7dd60c046fbc9510aab489 | [
"MIT"
] | 1 | 2019-03-18T06:58:36.000Z | 2019-03-18T06:58:36.000Z | learnBoost/learnBoost/c++/bootregister.hpp | zhenyiyi/LearnDiary | 7e88ced2c4294b5cfb7dd60c046fbc9510aab489 | [
"MIT"
] | null | null | null | learnBoost/learnBoost/c++/bootregister.hpp | zhenyiyi/LearnDiary | 7e88ced2c4294b5cfb7dd60c046fbc9510aab489 | [
"MIT"
] | null | null | null | //
// bootregister.hpp
// learnBoost
//
// Created by fenglin on 2017/11/20.
// Copyright © 2017年 fenglin. All rights reserved.
//
#ifndef bootregister_hpp
#define bootregister_hpp
#include <stdio.h>
#endif /* bootregister_hpp */
| 15.8 | 51 | 0.704641 | zhenyiyi |
f40ad5b256b350cf7df9faaf45d8e5a0b7b3d58f | 2,953 | cpp | C++ | src/sound/snth5.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | src/sound/snth5.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | src/sound/snth5.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | /* Copyright 1992 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#include <base/common.h>
#include <SoundMgr.h>
#include <sound/soundopts.h>
using namespace Executor;
/*
* It's not really clear how an actual synthesizer is expected to work
* with the Sound Manager's queues. In this implemen... | 26.603604 | 75 | 0.532001 | DavidLudwig |
f411a425aa78cc87e1a5004a9440c1c257518beb | 267 | cpp | C++ | Tools/CRCompilerAudio/SoundsHandler.cpp | duhone/HeadstoneHarry | 961a314a0e69d67275253da802e41429cff80097 | [
"MIT"
] | 1 | 2020-02-06T16:11:02.000Z | 2020-02-06T16:11:02.000Z | Tools/CRCompilerAudio/SoundsHandler.cpp | duhone/HeadstoneHarry | 961a314a0e69d67275253da802e41429cff80097 | [
"MIT"
] | null | null | null | Tools/CRCompilerAudio/SoundsHandler.cpp | duhone/HeadstoneHarry | 961a314a0e69d67275253da802e41429cff80097 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "SoundsHandler.h"
#include "SoundsCompiler.h"
using namespace CR::Compiler;
SoundsHandler::SoundsHandler(void)
{
}
SoundsHandler::~SoundsHandler(void)
{
}
INodeCompiler* SoundsHandler::StartElement()
{
return new SoundsCompiler();
}
| 14.052632 | 44 | 0.756554 | duhone |
f4121a8096dd1546344ae9e51201b37b92148ef1 | 5,841 | cxx | C++ | nn.cxx | pgomoluch/simple-nn | 8075338939f1293824de67ce2c6a21b295d65e7e | [
"MIT"
] | null | null | null | nn.cxx | pgomoluch/simple-nn | 8075338939f1293824de67ce2c6a21b295d65e7e | [
"MIT"
] | null | null | null | nn.cxx | pgomoluch/simple-nn | 8075338939f1293824de67ce2c6a21b295d65e7e | [
"MIT"
] | null | null | null | #include "config.h"
#include "network.h"
#include "utils.h"
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
using namespace std;
using namespace std::chrono;
const char *learning_log_file = "learning_log.txt";
const char *features_train_file = "features_train.txt";
cons... | 33.1875 | 104 | 0.624551 | pgomoluch |
f41386ed732c16e12d9272c3610a72b476cb478e | 1,584 | cpp | C++ | Source/Life/Systems/Persistent/AiSystem.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | 5 | 2022-02-09T21:19:03.000Z | 2022-03-03T01:53:03.000Z | Source/Life/Systems/Persistent/AiSystem.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | Source/Life/Systems/Persistent/AiSystem.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | #include "Life/Systems/Persistent/AiSystem.h"
#include "Systems/Public/SystemsWorld.h"
#include "Life/AI/Reasoner/UtilityAiReasoner.h"
#include "Life/Components/AiComponent.h"
#include "Life/Components/CameraRelationComponent.h"
#include "Life/Components/GodComponent.h"
#include "Life/Resources/LifeSettings.h"
struc... | 25.967213 | 69 | 0.649621 | PsichiX |
f41663583ff9e6b610256f6729cc0c92d8be0f41 | 92 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_Access.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_Access.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_Access.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_Access.cpp
//
#include "smtc_Access.h"
#define LZZ_INLINE inline
#undef LZZ_INLINE
| 13.142857 | 25 | 0.76087 | SuperDizor |
f41d35b2f4ee2ad35d042e78b16825068ac41d7e | 2,046 | cpp | C++ | Ch 15/15.34_35_36_37_38/main.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 15/15.34_35_36_37_38/main.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 15/15.34_35_36_37_38/main.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | // 15.34 针对图15.3(pp565)构建的表达式:
// (a) 列举出在处理表达式的过程中执行的所有构造函数
// Query q = Query("fiery") & Query("bird") | Query("wind");
// 1: Query::Query(const std::string &s) where s = "fiery", "bird" and "wind"
// 2: WordQuery::WordQuery(const std::string &s) where s = "fiery", "bird" and "wind"
// 3: AndQuery::AndQuery(const Que... | 25.575 | 91 | 0.668133 | Felon03 |
f41d5caa99623ed28364db2edb2e52236fad31b4 | 6,498 | cxx | C++ | tomviz/Module.cxx | yijiang1/tomviz | 93bf1b0f3ebc1d55db706184339a94660fb08d91 | [
"BSD-3-Clause"
] | null | null | null | tomviz/Module.cxx | yijiang1/tomviz | 93bf1b0f3ebc1d55db706184339a94660fb08d91 | [
"BSD-3-Clause"
] | null | null | null | tomviz/Module.cxx | yijiang1/tomviz | 93bf1b0f3ebc1d55db706184339a94660fb08d91 | [
"BSD-3-Clause"
] | 1 | 2021-01-14T02:25:32.000Z | 2021-01-14T02:25:32.000Z | /******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distributed u... | 30.223256 | 103 | 0.544629 | yijiang1 |
f420330cd14e6e035795bb4f65932d3ceb96aeb6 | 14,297 | cpp | C++ | nntrainer/src/databuffer.cpp | dongju-chae/nntrainer | 9742569355e1d787ccb4818b7c827bc95662cbe9 | [
"Apache-2.0"
] | 1 | 2022-03-27T18:56:11.000Z | 2022-03-27T18:56:11.000Z | nntrainer/src/databuffer.cpp | dongju-chae/nntrainer | 9742569355e1d787ccb4818b7c827bc95662cbe9 | [
"Apache-2.0"
] | 2 | 2021-04-19T11:42:07.000Z | 2021-04-21T10:26:04.000Z | nntrainer/src/databuffer.cpp | dongju-chae/nntrainer | 9742569355e1d787ccb4818b7c827bc95662cbe9 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2019 Samsung Electronics Co., Ltd. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless requ... | 27.441459 | 80 | 0.650206 | dongju-chae |
f421a9c67194078f59b1357e593efd2c97a4777d | 5,110 | cpp | C++ | src/ClientLib/VisualEntity.cpp | ImperatorS79/BurgWar | 5d8282513945e8f25e30d8491639eb297bfc0317 | [
"MIT"
] | null | null | null | src/ClientLib/VisualEntity.cpp | ImperatorS79/BurgWar | 5d8282513945e8f25e30d8491639eb297bfc0317 | [
"MIT"
] | null | null | null | src/ClientLib/VisualEntity.cpp | ImperatorS79/BurgWar | 5d8282513945e8f25e30d8491639eb297bfc0317 | [
"MIT"
] | null | null | null | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <ClientLib/VisualEntity.hpp>
#include <ClientLib/LocalLayerEntity.hpp>
#include <NDK/Components/GraphicsComponent.hpp>
#include <NDK/Components/NodeCom... | 38.421053 | 220 | 0.76908 | ImperatorS79 |
f4258645452b668d1edcc886ed26b657edee8127 | 8,535 | cpp | C++ | NYUCodebase/hw05/Entity.cpp | MarcNYU/Game-Files | 43781cae89ea02d18930b1b2ead04db400c7f1dd | [
"Artistic-2.0"
] | null | null | null | NYUCodebase/hw05/Entity.cpp | MarcNYU/Game-Files | 43781cae89ea02d18930b1b2ead04db400c7f1dd | [
"Artistic-2.0"
] | null | null | null | NYUCodebase/hw05/Entity.cpp | MarcNYU/Game-Files | 43781cae89ea02d18930b1b2ead04db400c7f1dd | [
"Artistic-2.0"
] | null | null | null | //
// Entity.cpp
// NYUCodebase
//
// Created by Marcus Williams on 2/20/15.
// Copyright (c) 2015 Ivan Safrin. All rights reserved.
//
#include <SDL.h>
#include <SDL_opengl.h>
#include <SDL_image.h>
#include <vector>
#include "Entity.h"
// 60 FPS (1.0f/60.0f)
#define FIXED_TIMESTEP 0.0166666f
#define MAX_TIMEST... | 33.869048 | 92 | 0.433626 | MarcNYU |
f427425e383e6661138ff8864f512a371d0122a7 | 4,454 | cpp | C++ | Kawakawa/KawaiiGraphic/RHI/DX12Viewport.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/KawaiiGraphic/RHI/DX12Viewport.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/KawaiiGraphic/RHI/DX12Viewport.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "DX12Viewport.h"
#include "DX12GraphicRHI.h"
#include "DX12Device.h"
#include "Texture/TextureInfo.h"
namespace RHI
{
DX12Viewport::DX12Viewport(DX12GraphicRHI* DX12RHI, const DX12ViewportInfo& Info, int Width, int Height)
: m_DX12RHI(DX12RHI), m_ViewportInfo(Info), m_ViewportWidth(Width),... | 35.632 | 117 | 0.776605 | JiaqiJin |
f4278b973fda15c5eba16fd9839c1cf2851857e4 | 324 | hpp | C++ | include/bisera/mainwindow.hpp | DanielAckerson/bisera | f574c257a4a20d663eae6c52d50444280bbfe67d | [
"MIT"
] | null | null | null | include/bisera/mainwindow.hpp | DanielAckerson/bisera | f574c257a4a20d663eae6c52d50444280bbfe67d | [
"MIT"
] | null | null | null | include/bisera/mainwindow.hpp | DanielAckerson/bisera | f574c257a4a20d663eae6c52d50444280bbfe67d | [
"MIT"
] | null | null | null | #ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <glad/glad.h>
#include <GLFW/glfw3.h>
class MainWindow {
GLFWwindow *window;
GLFWmonitor *monitor;
GLuint width, height;
public:
MainWindow();
~MainWindow();
public:
inline GLFWwindow *context() { return window; }
};
#endif//MAINWINDOW_... | 15.428571 | 51 | 0.694444 | DanielAckerson |
f42f71b0782e115902afe80664e901a9130de4e1 | 4,088 | cpp | C++ | src/dbus/dbus_watch.cpp | tpruzina/dvc-toggler-linux | ccd70fedfdc47172e876c04357b863bb758bd304 | [
"BSD-3-Clause"
] | null | null | null | src/dbus/dbus_watch.cpp | tpruzina/dvc-toggler-linux | ccd70fedfdc47172e876c04357b863bb758bd304 | [
"BSD-3-Clause"
] | 1 | 2019-05-20T16:47:28.000Z | 2019-05-20T16:47:28.000Z | src/dbus/dbus_watch.cpp | tpruzina/dvc-toggler-linux | ccd70fedfdc47172e876c04357b863bb758bd304 | [
"BSD-3-Clause"
] | null | null | null | #include "dbus_watch.hpp"
#include <cstdlib>
#include <cstring>
#include <dbus/dbus.h>
#include <iostream>
#include <unistd.h>
auto DBusInterface::sendSignal(char *message) noexcept -> void
{
auto args = DBusMessageIter{};
dbus_uint32_t serial = 0;
auto conn = dbus_bus_get(DBUS_BUS_STARTER, n... | 32.967742 | 104 | 0.489237 | tpruzina |
f42f8917e49952f4de8da45c32f5120c71609fa3 | 1,095 | hpp | C++ | test/ClientTester.hpp | AlexSL92/udp-packet-replicator | 90a3feb138e7ad2ae7e4b87f97305f658b7f6eeb | [
"MIT"
] | 2 | 2020-06-18T09:06:45.000Z | 2021-03-27T14:16:54.000Z | test/ClientTester.hpp | AlexSL92/udp-packet-replicator | 90a3feb138e7ad2ae7e4b87f97305f658b7f6eeb | [
"MIT"
] | null | null | null | test/ClientTester.hpp | AlexSL92/udp-packet-replicator | 90a3feb138e7ad2ae7e4b87f97305f658b7f6eeb | [
"MIT"
] | 1 | 2020-06-18T06:29:17.000Z | 2020-06-18T06:29:17.000Z | #pragma once
#include <asio.hpp>
#include <array>
#include <cstdint>
#include <vector>
/**
* @brief Tester of client sockets
*/
class ClientTester {
public:
/**
* @brief Construct a new Client Tester object
*
* @param port Port where listen for packets
*/
ClientTester(uint16_t por... | 21.9 | 85 | 0.601826 | AlexSL92 |
f4378ba73efb592ab9fc2e6d69fecf7c201c49b5 | 2,449 | cpp | C++ | leetcode/problems/easy/26-remove-duplicates-from-sorted-array.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/easy/26-remove-duplicates-from-sorted-array.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/easy/26-remove-duplicates-from-sorted-array.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
Example 1:
Given nums = [1... | 34.985714 | 151 | 0.665986 | wingkwong |
f438c6540d1b2df16928dedfb42152e7866f5de5 | 1,724 | hpp | C++ | babyrobot/src/object-assembly-agent-master/object_assembly_ros/include/object_assembly_ros/assembly_task_guess_mode.hpp | babyrobot-eu/core-modules | 7e8c006c40153fb649208c9a78fc71aa70243f69 | [
"MIT"
] | 1 | 2019-02-07T15:32:06.000Z | 2019-02-07T15:32:06.000Z | babyrobot/src/object-assembly-agent-master/object_assembly_ros/include/object_assembly_ros/assembly_task_guess_mode.hpp | babyrobot-eu/core-modules | 7e8c006c40153fb649208c9a78fc71aa70243f69 | [
"MIT"
] | 9 | 2020-01-28T22:09:41.000Z | 2022-03-11T23:39:17.000Z | babyrobot/src/object-assembly-agent-master/object_assembly_ros/include/object_assembly_ros/assembly_task_guess_mode.hpp | babyrobot-eu/core-modules | 7e8c006c40153fb649208c9a78fc71aa70243f69 | [
"MIT"
] | null | null | null | #include <assembly_subtask.hpp>
#include <cstdlib>
class AssemblyTask
{
public:
AssemblyTask(
int id,
int num_parts,
std::vector<std::vector<int>> connnection_pairs,
int num_connections,
std::vector<AssemblySubtask> subtasks,
int max_particles,
int all_parti... | 28.733333 | 142 | 0.703596 | babyrobot-eu |
f443843d4f7f7e67650e9d5c9413d5fec5e2ad56 | 11,726 | cc | C++ | src/scheduler.cc | sunnyxhuang/2D-Placement | 53310fa7336430a1b82b3ed3fa98409ab5d4b7d5 | [
"Apache-2.0"
] | 4 | 2017-09-01T14:43:01.000Z | 2017-09-02T04:58:55.000Z | src/scheduler.cc | little-by/2D-Placement | 53310fa7336430a1b82b3ed3fa98409ab5d4b7d5 | [
"Apache-2.0"
] | null | null | null | src/scheduler.cc | little-by/2D-Placement | 53310fa7336430a1b82b3ed3fa98409ab5d4b7d5 | [
"Apache-2.0"
] | 3 | 2017-09-21T08:24:51.000Z | 2018-10-30T04:46:15.000Z | #include <algorithm>
#include <iomanip>
#include <cfloat>
#include <sys/time.h>
#include <string.h>
#include "coflow.h"
#include "events.h"
#include "global.h"
#include "scheduler.h"
#include "util.h"
#define MWM_RANGE 100000000 //2147483647 = 2,147,483,647
using namespace std;
////////////////////////////////////... | 28.953086 | 76 | 0.609074 | sunnyxhuang |
f444a252e66e85d298218ff08191db87f3891e87 | 238 | hpp | C++ | include/RavEngine/AnimatorSystem.hpp | Ravbug/RavEngine | 73249827cb2cd3c938bb59447e9edbf7b6f0defc | [
"Apache-2.0"
] | 48 | 2020-11-18T23:14:25.000Z | 2022-03-11T09:13:42.000Z | include/RavEngine/AnimatorSystem.hpp | Ravbug/RavEngine | 73249827cb2cd3c938bb59447e9edbf7b6f0defc | [
"Apache-2.0"
] | 1 | 2020-11-17T20:53:10.000Z | 2020-12-01T20:27:36.000Z | include/RavEngine/AnimatorSystem.hpp | Ravbug/RavEngine | 73249827cb2cd3c938bb59447e9edbf7b6f0defc | [
"Apache-2.0"
] | 3 | 2020-12-22T02:40:39.000Z | 2021-10-08T02:54:22.000Z | #pragma once
#include "System.hpp"
#include "AnimatorComponent.hpp"
namespace RavEngine{
class AnimatorSystem : public AutoCTTI{
public:
inline void Tick(float fpsScale, Ref<AnimatorComponent> c) const {
c->Tick(fpsScale);
}
};
}
| 18.307692 | 70 | 0.739496 | Ravbug |
f446e49c22efe8b62648400235466cd0079e1715 | 353 | cpp | C++ | Practice/2019.2.9/CF15E.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2019.2.9/CF15E.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2019.2.9/CF15E.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
const int Mod=1000000009;
int main()
{
int n;
scanf("%d",&n);
int sum=0,mul=4,pw=2;
while (n>2) {
n-=2;
pw=2ll*pw%Mod;
mul=1ll*mul*(pw-3+Mod)%Mod;
sum=(sum+mul)%Mod;
}
sum=(2ll*sum*sum%Mod+8ll*sum%Mod+10)%Mod;
... | 15.347826 | 42 | 0.631728 | SYCstudio |
f44776b3a2b74cf641e9ff802c03579e5fd140aa | 12,871 | hpp | C++ | src/mge/core/exception.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/mge/core/exception.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/mge/core/exception.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
#pragma once
#include "mge/config.hpp"
#include "mge/core/dllexport.hpp"
#include "mge/core/stacktrace.hpp"
#include "mge/core/type_name.hpp"
#include <any>
#include <exception>
#include <optional>
#include <sstream>
#inclu... | 29.054176 | 80 | 0.515345 | mge-engine |
f449581900d35f80d252e4c6b7048e79b825a99b | 13,114 | cpp | C++ | samples/basic.cpp | fabriquer/lug | 884a58531c359882585084e48625aa688208a7f6 | [
"MIT"
] | 53 | 2017-07-20T10:01:44.000Z | 2022-02-13T04:57:22.000Z | samples/basic.cpp | fabriquer/lug | 884a58531c359882585084e48625aa688208a7f6 | [
"MIT"
] | 4 | 2018-08-31T14:06:50.000Z | 2020-06-17T17:34:20.000Z | samples/basic.cpp | fabriquer/lug | 884a58531c359882585084e48625aa688208a7f6 | [
"MIT"
] | 6 | 2017-07-16T22:54:51.000Z | 2019-12-04T13:15:12.000Z | // lug - Embedded DSL for PE grammar parser combinators in C++
// Copyright (c) 2017 Jesse W. Towner
// See LICENSE.md file for license details
// Derived from BASIC, Dartmouth College Computation Center, October 1st 1964
// http://www.bitsavers.org/pdf/dartmouth/BASIC_Oct64.pdf
#include <lug/lug.hpp>
#include <cmath... | 35.928767 | 133 | 0.516852 | fabriquer |
f44ab1aea43bc79fc0c47f9c39d8ad1bb618c21d | 619 | cpp | C++ | examples/CBuilder/Compound/ModelEvolution/Common/dSystemTypeInfo.cpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 121 | 2020-09-22T10:46:20.000Z | 2021-11-17T12:33:35.000Z | examples/CBuilder/Compound/ModelEvolution/Common/dSystemTypeInfo.cpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 8 | 2020-09-23T12:32:23.000Z | 2021-07-28T07:01:26.000Z | examples/CBuilder/Compound/ModelEvolution/Common/dSystemTypeInfo.cpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 42 | 2020-09-22T14:37:20.000Z | 2021-10-04T10:24:12.000Z | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "dSystemTypeInfo.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "BoldHandles"
#pragma link "BoldSubscription"
#pragma resou... | 32.578947 | 77 | 0.390953 | LenakeTech |
f44ad3e847afa0014af02a60083c04175689a6e2 | 1,783 | cpp | C++ | src/pipeline/profile.cpp | seagull1993/librealsense | 18cf36775c16efd1f727b656c7e88a928a53a427 | [
"Apache-2.0"
] | 6,457 | 2016-01-21T03:56:07.000Z | 2022-03-31T11:57:15.000Z | src/pipeline/profile.cpp | seagull1993/librealsense | 18cf36775c16efd1f727b656c7e88a928a53a427 | [
"Apache-2.0"
] | 8,393 | 2016-01-21T09:47:28.000Z | 2022-03-31T22:21:42.000Z | src/pipeline/profile.cpp | seagull1993/librealsense | 18cf36775c16efd1f727b656c7e88a928a53a427 | [
"Apache-2.0"
] | 4,874 | 2016-01-21T09:20:08.000Z | 2022-03-31T15:18:00.000Z | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include "profile.h"
#include "media/record/record_device.h"
#include "media/ros/ros_writer.h"
namespace librealsense
{
namespace pipeline
{
profile::profile(std::shared_ptr<device_... | 33.641509 | 129 | 0.583847 | seagull1993 |
f45212aa6b029307dd24242672315effb4ceb9cc | 2,917 | cc | C++ | ortools/math_opt/samples/integer_programming.cc | bollhals/or-tools | 87cc5a1cb12d901089de0aab55f7ec50bce2cdfd | [
"Apache-2.0"
] | null | null | null | ortools/math_opt/samples/integer_programming.cc | bollhals/or-tools | 87cc5a1cb12d901089de0aab55f7ec50bce2cdfd | [
"Apache-2.0"
] | null | null | null | ortools/math_opt/samples/integer_programming.cc | bollhals/or-tools | 87cc5a1cb12d901089de0aab55f7ec50bce2cdfd | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2021 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 33.147727 | 76 | 0.675694 | bollhals |
f45239977eb81a0662fa9614d652ad55f0557382 | 5,504 | cpp | C++ | dali-toolkit/internal/image-loader/atlas-packer.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | dali-toolkit/internal/image-loader/atlas-packer.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | dali-toolkit/internal/image-loader/atlas-packer.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 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... | 27.1133 | 148 | 0.683866 | pwisbey |
f45448509a0b8e87a7012398a743007c74b9413d | 9,952 | cpp | C++ | src/main.cpp | yafeiwang89/liver2gui | 77c8b0e54a106682fe392e64108402e886440206 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | yafeiwang89/liver2gui | 77c8b0e54a106682fe392e64108402e886440206 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | yafeiwang89/liver2gui | 77c8b0e54a106682fe392e64108402e886440206 | [
"BSD-3-Clause"
] | 1 | 2020-06-09T20:16:58.000Z | 2020-06-09T20:16:58.000Z | /*
#############################################################################
# If you use PhysiCell in your project, please cite PhysiCell and the ver- #
# sion number, such as below: #
# #
# We ... | 43.649123 | 123 | 0.58963 | yafeiwang89 |
f45a441e40b04c7a67ee2f8beec28f9650f6f103 | 1,936 | cpp | C++ | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_transpose.cpp | asenina/openvino | 3790b3506091d132e2bbe491755001b0decc84db | [
"Apache-2.0"
] | null | null | null | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_transpose.cpp | asenina/openvino | 3790b3506091d132e2bbe491755001b0decc84db | [
"Apache-2.0"
] | null | null | null | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_transpose.cpp | asenina/openvino | 3790b3506091d132e2bbe491755001b0decc84db | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "vpu/ngraph/transformations/dynamic_to_static_shape_transpose.hpp"
#include "vpu/ngraph/operations/dynamic_shape_resolver.hpp"
#include <vpu/utils/error.hpp>
#include "ngraph/graph_util.hpp"
#include "ngraph/opsets/opset3.hpp"... | 44 | 130 | 0.731405 | asenina |
f4629c897f06bdee647dec24d30f7218ba4b14fe | 1,219 | hpp | C++ | valiant/sprite_renderer.hpp | claby2/valiant | d932574fe1f424c444a09ac99ae53fa2c7c4a9ac | [
"MIT"
] | null | null | null | valiant/sprite_renderer.hpp | claby2/valiant | d932574fe1f424c444a09ac99ae53fa2c7c4a9ac | [
"MIT"
] | null | null | null | valiant/sprite_renderer.hpp | claby2/valiant | d932574fe1f424c444a09ac99ae53fa2c7c4a9ac | [
"MIT"
] | null | null | null | #ifndef VALIANT_SPRITE_RENDERER_HPP
#define VALIANT_SPRITE_RENDERER_HPP
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <string>
#include "error.hpp"
namespace valiant {
struct Sprite {
std::string path;
int width{0};
int height{0};
SDL_Surface* surface;
SDL_... | 21.385965 | 66 | 0.64397 | claby2 |
f463b59d45aba293705ee4538fa9c5333e4d5d16 | 836 | hpp | C++ | include/customizer/serialization.hpp | neilbu/osrm-backend | 2a8e1f77459fef33ca34c9fe01ec62e88e255452 | [
"BSD-2-Clause"
] | null | null | null | include/customizer/serialization.hpp | neilbu/osrm-backend | 2a8e1f77459fef33ca34c9fe01ec62e88e255452 | [
"BSD-2-Clause"
] | null | null | null | include/customizer/serialization.hpp | neilbu/osrm-backend | 2a8e1f77459fef33ca34c9fe01ec62e88e255452 | [
"BSD-2-Clause"
] | 1 | 2021-11-24T14:24:44.000Z | 2021-11-24T14:24:44.000Z | #ifndef OSRM_CUSTOMIZER_SERIALIZATION_HPP
#define OSRM_CUSTOMIZER_SERIALIZATION_HPP
#include "partition/cell_storage.hpp"
#include "storage/io.hpp"
#include "storage/serialization.hpp"
#include "storage/shared_memory_ownership.hpp"
namespace osrm
{
namespace customizer
{
namespace serialization
{
template <storage:... | 23.885714 | 99 | 0.783493 | neilbu |
f4658709122414d4df7b5c21c1560364298d8a57 | 2,654 | cpp | C++ | 11-stream_file/14-regex.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | 1 | 2021-09-23T00:35:43.000Z | 2021-09-23T00:35:43.000Z | 11-stream_file/14-regex.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | null | null | null | 11-stream_file/14-regex.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | 2 | 2021-08-30T05:34:42.000Z | 2021-09-21T14:11:22.000Z | #include <iostream>
#include <sstream>
#include <string>
#include <regex>
int main()
{
std::string log = R"(
[2021-10-13T14:47:22.050Z] info code-server 3.11.1 acb5de66b71a3f8f1cc065df4633ecd3f9788d46
[2021-10-13T14:47:22.051Z] info Using user-data-dir ~/.local/share/code-server
[2021-10-13T14:47:22.059Z] info Usi... | 40.830769 | 148 | 0.677845 | stevenokm |
f4692cadb178355504574ca04a011f5e9b145776 | 12,365 | cpp | C++ | Sources/Internal/UI/UISpinner.cpp | BlitzModder/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | 4 | 2019-11-15T11:30:00.000Z | 2021-12-27T21:16:31.000Z | Sources/Internal/UI/UISpinner.cpp | TTopox/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/UI/UISpinner.cpp | TTopox/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | 4 | 2017-04-07T04:32:41.000Z | 2021-12-27T21:55:49.000Z | #include "UISpinner.h"
#include "UI/UIEvent.h"
#include "Animation/Animation.h"
#include "Reflection/ReflectionRegistrator.h"
#include "UI/Update/UIUpdateComponent.h"
#include "UI/Render/UIClipContentComponent.h"
namespace DAVA
{
//use these names for children buttons to define UISpinner in .yaml
static const FastName... | 33.328841 | 186 | 0.671573 | BlitzModder |
f469355b193e56c177df94300d0ce34221270fb3 | 607 | hpp | C++ | cpmf/parallel/switch.hpp | xxthermidorxx/cpmf | 134283d66665a4b5cf2452ded4614ca8b219cfd7 | [
"MIT"
] | 2 | 2015-01-21T01:23:36.000Z | 2016-07-26T16:22:09.000Z | cpmf/parallel/switch.hpp | xxthermidorxx/cpmf | 134283d66665a4b5cf2452ded4614ca8b219cfd7 | [
"MIT"
] | 2 | 2018-11-21T02:46:49.000Z | 2018-12-02T10:53:32.000Z | cpmf/parallel/switch.hpp | xxthermidorxx/cpmf | 134283d66665a4b5cf2452ded4614ca8b219cfd7 | [
"MIT"
] | 1 | 2016-12-11T12:57:49.000Z | 2016-12-11T12:57:49.000Z | #ifndef CPMF_PARALLEL_SWITCH_HPP_
#define CPMF_PARALLEL_SWITCH_HPP_
#include "../common/common.hpp"
#include "../utils/utils.hpp"
#if defined TP_BASED
#include "tp_based/tp_based.hpp"
using namespace cpmf::parallel::tp_based;
#elif defined FPSGD
#include "fpsgd/fpsgd.hpp"
using namespace cpmf::parallel::fpsgd;
#end... | 21.678571 | 57 | 0.741351 | xxthermidorxx |
f46ae5658725a597b2bfbe8eecf8d64038a7d3fc | 7,942 | cpp | C++ | src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_salramm.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_salramm.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_salramm.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 29.634328 | 108 | 0.607152 | mfooo |
c2e1bcc8922079f4325d6d89070c07ce37a42390 | 9,750 | cpp | C++ | vendor/github.com/apple/foundationdb/fdbserver/DatabaseConfiguration.cpp | jukylin/meq | 5a90566b820adc42ef1e390c3f3942eccd77d84a | [
"Apache-2.0"
] | 1 | 2019-10-16T04:00:57.000Z | 2019-10-16T04:00:57.000Z | vendor/github.com/apple/foundationdb/fdbserver/DatabaseConfiguration.cpp | jukylin/meq | 5a90566b820adc42ef1e390c3f3942eccd77d84a | [
"Apache-2.0"
] | null | null | null | vendor/github.com/apple/foundationdb/fdbserver/DatabaseConfiguration.cpp | jukylin/meq | 5a90566b820adc42ef1e390c3f3942eccd77d84a | [
"Apache-2.0"
] | null | null | null | /*
* DatabaseConfiguration.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 40.966387 | 150 | 0.728 | jukylin |
c2e241bbc6ad3e6f568c14b33203990cb52cec8b | 2,711 | hpp | C++ | include/qcpc/input/input_utils.hpp | QuarticCat/qc-parser-comb | fd7bbd09233c3f42b23236b242f344ea4d26080e | [
"MIT"
] | 1 | 2021-07-26T03:16:02.000Z | 2021-07-26T03:16:02.000Z | include/qcpc/input/input_utils.hpp | QuarticCat/qc-parser-comb | fd7bbd09233c3f42b23236b242f344ea4d26080e | [
"MIT"
] | null | null | null | include/qcpc/input/input_utils.hpp | QuarticCat/qc-parser-comb | fd7bbd09233c3f42b23236b242f344ea4d26080e | [
"MIT"
] | null | null | null | #pragma once
#include <concepts>
#include <cstddef>
namespace qcpc {
struct InputPos {
const char* current;
size_t line;
size_t column;
};
// TODO: refactor this CRTP
template<class Derived>
struct InputCRTP {
InputCRTP(const char* begin, const char* end) noexcept: _begin(begin), _end(end) {}
... | 23.780702 | 87 | 0.593508 | QuarticCat |
c2e62c0276e99b1e6c74d32c45db6ada7e288c98 | 7,191 | cpp | C++ | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Objects/GameFXCalls.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Objects/GameFXCalls.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Objects/GameFXCalls.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | //
// GameFX Functions called into Basic3D-Integrated-Functions
//
// Includes
#include "CommonC.h"
#include "CObjectsNewC.h"
// Static
DARKSDK void GFCreateNodeTree ( float fX, float fY, float fZ )
{
CreateNodeTree ( fX, fY, fZ );
}
DARKSDK void GFAddNodeTreeObject ( int iID, int iType, int iArbitaryValue... | 23.347403 | 197 | 0.732026 | domydev |
c2e8503fb5d9eeb82f0269fff33c4c4f6958c0a2 | 1,666 | cpp | C++ | src/frontend/A64/translate/impl/data_processing_conditional_select.cpp | Esigodini/dynarmic | 664de9eaaf10bee0fdd5e88f4f125cb9c3df5c54 | [
"0BSD"
] | 11 | 2020-05-23T22:12:33.000Z | 2021-06-23T08:11:45.000Z | src/frontend/A64/translate/impl/data_processing_conditional_select.cpp | Esigodini/dynarmic | 664de9eaaf10bee0fdd5e88f4f125cb9c3df5c54 | [
"0BSD"
] | 1 | 2020-05-30T05:01:27.000Z | 2020-05-31T04:46:38.000Z | src/frontend/A64/translate/impl/data_processing_conditional_select.cpp | Esigodini/dynarmic | 664de9eaaf10bee0fdd5e88f4f125cb9c3df5c54 | [
"0BSD"
] | 5 | 2020-05-23T04:10:48.000Z | 2022-03-23T14:58:28.000Z | /* This file is part of the dynarmic project.
* Copyright (c) 2018 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#include "frontend/A64/translate/impl/impl.h"
namespace Dynarmic::A64 {
bool TranslatorVisitor::CSEL(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd) {
const size_t datasize = sf ? 64 : 32;
const IR... | 28.237288 | 109 | 0.668067 | Esigodini |
c2ec5ef92d269d50cebf881ca7db67a24b57e642 | 4,389 | cpp | C++ | zybo/ROOT_FS/lib/zynqpl/src/pcam/pcam.cpp | meiseihyu/ad-refkit | 69ef3a636326102591294eaabd765b55cab28944 | [
"MIT"
] | 8 | 2020-07-11T08:22:19.000Z | 2022-03-04T09:38:56.000Z | zybo/ROOT_FS/lib/zynqpl/src/pcam/pcam.cpp | meiseihyu/ad-refkit | 69ef3a636326102591294eaabd765b55cab28944 | [
"MIT"
] | 3 | 2020-04-20T14:21:38.000Z | 2020-08-07T03:34:23.000Z | zybo/ROOT_FS/lib/zynqpl/src/pcam/pcam.cpp | meiseihyu/ad-refkit | 69ef3a636326102591294eaabd765b55cab28944 | [
"MIT"
] | 7 | 2020-04-20T07:54:09.000Z | 2021-12-07T11:49:53.000Z | /**
* Pcam: Pcamの初期化・Pcamからの画像取得を行うクラス
*
* Copyright (C) 2019 Yuya Kudo.
*
* Authors:
* Yuya Kudo <ri0049ee@ed.ritsumei.ac.jp>
*/
#include <pcam/pcam.h>
namespace zynqpl {
Pcam::Pcam(const std::string& video_devname,
const std::string& iic_devname,
OV5640_cfg::mode_t m... | 30.268966 | 104 | 0.543176 | meiseihyu |
c2ed785f55a7573d277412689f1486f0a280f697 | 2,810 | cpp | C++ | CPPWorkspace/absolutecpp/main.cpp | troyAmlee/udemycpp | 42e1bdb4c29132ec8cac36f3f33d4f6283c5fb32 | [
"MIT"
] | null | null | null | CPPWorkspace/absolutecpp/main.cpp | troyAmlee/udemycpp | 42e1bdb4c29132ec8cac36f3f33d4f6283c5fb32 | [
"MIT"
] | null | null | null | CPPWorkspace/absolutecpp/main.cpp | troyAmlee/udemycpp | 42e1bdb4c29132ec8cac36f3f33d4f6283c5fb32 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <string>
using namespace std;
int jogger();
double box();
double money();
double feetConversion();
double liquid();
double average();
int main(int argc, char **argv)
{
jogger();
box();
money();
feetConversion();
liquid();
average();
return 0;
}
int jogger(){... | 20.814815 | 70 | 0.619217 | troyAmlee |
c2f2b011439c92f9dbbea516f41ed755987f2a79 | 6,081 | cpp | C++ | util/Utilities.cpp | traviscross/libzina | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | [
"Apache-2.0"
] | 21 | 2016-04-03T00:05:34.000Z | 2020-05-19T23:08:37.000Z | util/Utilities.cpp | traviscross/libzina | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | [
"Apache-2.0"
] | null | null | null | util/Utilities.cpp | traviscross/libzina | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | [
"Apache-2.0"
] | 4 | 2018-01-15T07:17:27.000Z | 2021-01-10T02:01:37.000Z | /*
Copyright 2016 Silent Circle, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | 28.549296 | 117 | 0.622102 | traviscross |
c2f39a09453322cc3ba48b9a2125b9c5fb169a50 | 2,672 | ipp | C++ | Siv3D/include/Siv3D/detail/MemoryViewReader.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/include/Siv3D/detail/MemoryViewReader.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Siv3D/include/Siv3D/detail/MemoryViewReader.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
inline constex... | 20.396947 | 104 | 0.668787 | tas9n |
6c013b547378eafcac88200b21484c344818b634 | 4,406 | hh | C++ | include/formrow.hh | conclusiveeng/devclient | 98e3ab39acaab156ab52705be8b4d9213efe9633 | [
"BSD-2-Clause"
] | null | null | null | include/formrow.hh | conclusiveeng/devclient | 98e3ab39acaab156ab52705be8b4d9213efe9633 | [
"BSD-2-Clause"
] | null | null | null | include/formrow.hh | conclusiveeng/devclient | 98e3ab39acaab156ab52705be8b4d9213efe9633 | [
"BSD-2-Clause"
] | 1 | 2020-11-25T11:24:42.000Z | 2020-11-25T11:24:42.000Z | /*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2019 Conclusive Engineering
*
* 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 copyr... | 26.22619 | 88 | 0.73695 | conclusiveeng |
6c0361b1e8fbff232a724a27fda06a3c6e7cf9b9 | 1,282 | cpp | C++ | src/lib/src/cli/commands/load-tag-database-cli-command.cpp | Penguin-Guru/imgbrd-grabber | 69bdd5566dc2b2cb3a67456bf1a159d544699bc9 | [
"Apache-2.0"
] | 1,449 | 2015-03-16T02:21:41.000Z | 2022-03-31T22:49:10.000Z | src/lib/src/cli/commands/load-tag-database-cli-command.cpp | sisco0/imgbrd-grabber | 89bf97ccab3df62286784baac242f00bf006d562 | [
"Apache-2.0"
] | 2,325 | 2015-03-16T02:23:30.000Z | 2022-03-31T21:38:26.000Z | src/lib/src/cli/commands/load-tag-database-cli-command.cpp | evanjs/imgbrd-grabber | 491f8f3c05be3fc02bc10007735c5afa19d47449 | [
"Apache-2.0"
] | 242 | 2015-03-22T11:00:54.000Z | 2022-03-31T12:37:15.000Z | #include "load-tag-database-cli-command.h"
#include <QList>
#include "cli-command.h"
#include "logger.h"
#include "models/site.h"
#include "tools/tag-list-loader.h"
LoadTagDatabaseCliCommand::LoadTagDatabaseCliCommand(Profile *profile, const QList<Site*> &sites, int minTagCount, QObject *parent)
: CliCommand(parent)... | 25.137255 | 131 | 0.74181 | Penguin-Guru |
6c07d27b25624931e756a63be014f42c7441e35d | 4,640 | cpp | C++ | modules/3d/src/rgbd/volume.cpp | HattrickGenerator/opencv | 7554b53adfff8996e576691af4242f6f4acdc8f3 | [
"Apache-2.0"
] | null | null | null | modules/3d/src/rgbd/volume.cpp | HattrickGenerator/opencv | 7554b53adfff8996e576691af4242f6f4acdc8f3 | [
"Apache-2.0"
] | null | null | null | modules/3d/src/rgbd/volume.cpp | HattrickGenerator/opencv | 7554b53adfff8996e576691af4242f6f4acdc8f3 | [
"Apache-2.0"
] | 1 | 2021-04-30T18:00:41.000Z | 2021-04-30T18:00:41.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#include "../precomp.hpp"
#include "tsdf.hpp"
#include "hash_tsdf.hpp"
#include "colored_tsdf.hpp"
namespace cv
{
Ptr<Volume... | 38.347107 | 117 | 0.663793 | HattrickGenerator |
6c0e3472cd0f8f02f5e64cfbc93ef1174ed4003b | 3,025 | cpp | C++ | src/cascadia/TerminalSettingsEditor/PaddingConverter.cpp | hessedoneen/terminal | aa54de1d648f45920996aeba1edecc67237c6642 | [
"MIT"
] | 4 | 2021-05-11T06:11:52.000Z | 2021-07-31T22:32:57.000Z | src/cascadia/TerminalSettingsEditor/PaddingConverter.cpp | Apasys/terminal | c1f844307ca5d5d8d5a457faa616f5fa089aa771 | [
"MIT"
] | 2 | 2021-10-30T02:38:17.000Z | 2021-10-30T02:45:05.000Z | src/cascadia/TerminalSettingsEditor/PaddingConverter.cpp | Apasys/terminal | c1f844307ca5d5d8d5a457faa616f5fa089aa771 | [
"MIT"
] | 2 | 2021-02-02T22:12:35.000Z | 2021-05-04T23:24:57.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "PaddingConverter.h"
#include "PaddingConverter.g.cpp"
using namespace winrt::Windows;
using namespace winrt::Windows::UI::Xaml;
using namespace winrt::Windows::UI::Text;
namespace winrt::Microsoft::Termin... | 45.833333 | 121 | 0.551736 | hessedoneen |
6c1137755d76ede42e7f26a3229ad4714f37eb02 | 4,633 | hpp | C++ | sprout/iterator/distance.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/iterator/distance.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/iterator/distance.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_ITERATOR_DISTANCE_HPP
#define SPROUT_ITERATOR_DISTANCE_HPP
#include <iterator>
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/iterator/next.hpp>
#include <sprout/iterator/type_traits/category.hpp>
#include <sprout/utility/pair/pair.hpp>
#include <sprout/adl/not_found.hpp>
... | 39.262712 | 117 | 0.751133 | osyo-manga |
6c120ec4711794fadcb50fe0695f0623c8ac08f0 | 1,639 | cpp | C++ | igl/edge_flaps.cpp | aviadtzemah/animation2 | 9a3f980fbe27672fe71f8f61f73b5713f2af5089 | [
"Apache-2.0"
] | 2,392 | 2016-12-17T14:14:12.000Z | 2022-03-30T19:40:40.000Z | igl/edge_flaps.cpp | aviadtzemah/animation2 | 9a3f980fbe27672fe71f8f61f73b5713f2af5089 | [
"Apache-2.0"
] | 106 | 2018-04-19T17:47:31.000Z | 2022-03-01T19:44:11.000Z | igl/edge_flaps.cpp | aviadtzemah/animation2 | 9a3f980fbe27672fe71f8f61f73b5713f2af5089 | [
"Apache-2.0"
] | 184 | 2017-11-15T09:55:37.000Z | 2022-02-21T16:30:46.000Z | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... | 26.868852 | 79 | 0.596705 | aviadtzemah |
6c13f776d29e995deef1cf9b390891a093a070d2 | 165 | cpp | C++ | chapter-9/9.30.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-9/9.30.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-9/9.30.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // The one parameter version of resize requires that the element type must support value initialization, or it must has a default constructor if it is a class type.
| 82.5 | 164 | 0.8 | zero4drift |
6c218dfacf9f30759eeee36d48f91b71a81f22b1 | 1,549 | cpp | C++ | src/Robots/Skyline.cpp | Overture-7421/OvertureRobotCode_2020 | be9b69ea5f852b1077d1531b4f34921964544c86 | [
"BSD-3-Clause"
] | 1 | 2020-03-17T04:15:33.000Z | 2020-03-17T04:15:33.000Z | src/Robots/Skyline.cpp | Overture-7421/Overture-FRC | be9b69ea5f852b1077d1531b4f34921964544c86 | [
"BSD-3-Clause"
] | null | null | null | src/Robots/Skyline.cpp | Overture-7421/Overture-FRC | be9b69ea5f852b1077d1531b4f34921964544c86 | [
"BSD-3-Clause"
] | null | null | null | #include "Skyline.h"
#include "frc2/command/CommandScheduler.h"
#include <frc/smartdashboard/SmartDashboard.h>
Skyline::Skyline() : TimedRobot() {}
void Skyline::RobotInit() {
frc::SmartDashboard::PutNumber("Setpoint Pos", 0);
frc::SmartDashboard::PutBoolean("Setpoint Piston", false);
}
/**
* This functi... | 28.163636 | 83 | 0.726921 | Overture-7421 |
6c2962777801cc4f90a55341e8dc85b7d16b4e25 | 15,223 | cpp | C++ | remodet_repository_wdh_part/src/caffe/remo/visualizer.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/src/caffe/remo/visualizer.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/src/caffe/remo/visualizer.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | #include "caffe/remo/visualizer.hpp"
namespace caffe {
static bool DRAW_HANDS = false;
template <typename Dtype>
Visualizer<Dtype>::Visualizer(cv::Mat& image, int max_display_size) {
const int width = image.cols;
const int height = image.rows;
const int maxsize = (width > height) ? width : height;
const Dtyp... | 43.247159 | 116 | 0.591605 | UrwLee |
6c2a6a022e735a4a6e358275906b4d5a5dbecc8d | 956 | hpp | C++ | include/h3api/H3AdventureMap/H3MapOceanBottle.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3AdventureMap/H3MapOceanBottle.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3AdventureMap/H3MapOceanBottle.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 28.969697 | 70 | 0.384937 | Patrulek |
6c2d2289ef49a99011d46242b204db085668532a | 1,655 | hpp | C++ | include/UnityEngine/ProBuilder/IHasDefault.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/UnityEngine/ProBuilder/IHasDefault.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/UnityEngine/ProBuilder/IHasDefault.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Type namespace: UnityEngine.ProBuilder
namespace UnityEngine::ProBuilde... | 42.435897 | 179 | 0.713595 | RedBrumbler |
6c30ab0fe4f19b91cafd968cff6bae99acb31d67 | 3,722 | hpp | C++ | include/knapsack/branch_and_bound.hpp | fhamonic/knapsack | c5105720b3770fc76d54f14d5001fcc7ac3ec69a | [
"BSL-1.0"
] | 1 | 2021-09-23T09:49:15.000Z | 2021-09-23T09:49:15.000Z | include/knapsack/branch_and_bound.hpp | fhamonic/knapsack | c5105720b3770fc76d54f14d5001fcc7ac3ec69a | [
"BSL-1.0"
] | null | null | null | include/knapsack/branch_and_bound.hpp | fhamonic/knapsack | c5105720b3770fc76d54f14d5001fcc7ac3ec69a | [
"BSL-1.0"
] | null | null | null | #ifndef FHAMONIC_KNAPSACK_BRANCH_AND_BOUND_HPP
#define FHAMONIC_KNAPSACK_BRANCH_AND_BOUND_HPP
#include <numeric>
#include <stack>
#include <vector>
#include <range/v3/algorithm/remove_if.hpp>
#include <range/v3/algorithm/sort.hpp>
#include <range/v3/view/zip.hpp>
#include "knapsack/instance.hpp"
#include "knapsack/s... | 34.785047 | 80 | 0.577646 | fhamonic |
6c396882b41745ec719bb3277321f334a8d14ff9 | 558 | cpp | C++ | test/20171018/source/std/test20171018/source/sxy/sequence/rand.cpp | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:10.000Z | 2017-10-12T13:49:10.000Z | test/20171018/source/std/test20171018/source/sxy/sequence/rand.cpp | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | null | null | null | test/20171018/source/std/test20171018/source/sxy/sequence/rand.cpp | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:38.000Z | 2017-10-12T13:49:38.000Z | //Serene
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cstdlib>
#include<cstdio>
#include<cmath>
#include<ctime>
using namespace std;
const int n=200000,f=100,q=200000;
int m,k;
int main() {
freopen("sequence.in","w",stdout);
srand((unsigned)time(NULL));
m=rand()%f+1;k=rand()%(n/4)+1;
cout<<n<<... | 17.4375 | 38 | 0.557348 | DesZou |
6c3d3e4d198a428c654c1703399d7755f6c7c411 | 6,836 | cpp | C++ | examples/EchoClientServer.cpp | whamon35/NetTcp | db49b774abadde40132058040fdf92b60ae178c2 | [
"MIT"
] | 3 | 2020-05-16T14:00:40.000Z | 2022-03-16T10:09:37.000Z | examples/EchoClientServer.cpp | whamon35/NetTcp | db49b774abadde40132058040fdf92b60ae178c2 | [
"MIT"
] | null | null | null | examples/EchoClientServer.cpp | whamon35/NetTcp | db49b774abadde40132058040fdf92b60ae178c2 | [
"MIT"
] | 1 | 2022-02-25T10:49:12.000Z | 2022-02-25T10:49:12.000Z |
// ─────────────────────────────────────────────────────────────
// INCLUDE
// ─────────────────────────────────────────────────────────────
#include <MyServer.hpp>
#include <MySocket.hpp>
// Dependencies
#include <Net/Tcp/NetTcp.hpp>
#include <spdlog/sinks/stdout_color_sinks.h>
#ifdef _MSC_VER
# ... | 36.951351 | 120 | 0.581773 | whamon35 |
6c3f945302ef140ba265e55112522a7cb3521338 | 1,131 | cpp | C++ | pulse_integration_quality_analysis/one_value_per_cycle/pulse_integration_quality_analysis_test_bench.cpp | knodel/hzdr-mu2e-daq-algo-cores | ae646f66e3b71ef7b06013b4d835cc61d1221ffc | [
"BSD-3-Clause"
] | 1 | 2020-11-17T15:21:04.000Z | 2020-11-17T15:21:04.000Z | pulse_integration_quality_analysis/one_value_per_cycle/pulse_integration_quality_analysis_test_bench.cpp | knodel/hzdr-mu2e-daq-algo-cores | ae646f66e3b71ef7b06013b4d835cc61d1221ffc | [
"BSD-3-Clause"
] | null | null | null | pulse_integration_quality_analysis/one_value_per_cycle/pulse_integration_quality_analysis_test_bench.cpp | knodel/hzdr-mu2e-daq-algo-cores | ae646f66e3b71ef7b06013b4d835cc61d1221ffc | [
"BSD-3-Clause"
] | null | null | null | #include "pulse_integration_quality_analysis_core.h"
#include "stdio.h"
int main(int argc, char* argv[]){
in_stream_t in;
out_stream_t out;
report result;
double value = 0;
FILE* file = NULL;
if(argc >= 2) file = fopen(argv[1], "r");
else file = fopen("", "r");
if(file == NULL){
perror("\n\nUnable to open... | 22.62 | 109 | 0.639257 | knodel |
6c43ab09963e0439d1d595c18b4f3e760296a1dc | 528 | cpp | C++ | bin-int/Debug-windows-x86_64/NextEngine/unity_ZQ3LOIMG5RJ3ZMYP.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | bin-int/Debug-windows-x86_64/NextEngine/unity_ZQ3LOIMG5RJ3ZMYP.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | bin-int/Debug-windows-x86_64/NextEngine/unity_ZQ3LOIMG5RJ3ZMYP.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "stdafx.h"
#include "C:\Users\User\source\repos\NextEngine\NextEngine\src\graphics\assets\VULKAN\vk_model.cpp"
#include "C:\Users\User\source\repos\NextEngine\NextEngine\src\graphics\assets\VULKAN\vk_shader.cpp"
#include "C:\Users\User\source\repos\NextEngine\NextEngine\src\graphics\assets\VULKAN\vk_textu... | 31.058824 | 103 | 0.80303 | CompilerLuke |
6c47855ad32ae38d7865f06e98fb58dbea3ea85e | 3,960 | cpp | C++ | libro/SpinPQ.cpp | transpixel/tpqz | 2d8400b1be03292d0c5ab74710b87e798ae6c52c | [
"MIT"
] | 1 | 2017-06-01T00:21:16.000Z | 2017-06-01T00:21:16.000Z | libro/SpinPQ.cpp | transpixel/tpqz | 2d8400b1be03292d0c5ab74710b87e798ae6c52c | [
"MIT"
] | 3 | 2017-06-01T00:26:16.000Z | 2020-05-09T21:06:27.000Z | libro/SpinPQ.cpp | transpixel/tpqz | 2d8400b1be03292d0c5ab74710b87e798ae6c52c | [
"MIT"
] | null | null | null | //
//
// MIT License
//
// Copyright (c) 2017 Stellacore Corporation.
//
// 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 ... | 22.122905 | 72 | 0.674495 | transpixel |
6c482133827736d165d01d873f1aef248b736198 | 4,860 | hpp | C++ | src/OpenSimBindings/UndoableUiModel.hpp | ComputationalBiomechanicsLab/opensim-creator | e5c4b24f5ef3bffe10c84899d0a0c79037020b6d | [
"Apache-2.0"
] | 5 | 2021-07-13T12:03:29.000Z | 2021-12-22T20:21:58.000Z | src/OpenSimBindings/UndoableUiModel.hpp | ComputationalBiomechanicsLab/opensim-creator | e5c4b24f5ef3bffe10c84899d0a0c79037020b6d | [
"Apache-2.0"
] | 180 | 2022-01-27T15:25:15.000Z | 2022-03-30T13:41:12.000Z | src/OpenSimBindings/UndoableUiModel.hpp | ComputationalBiomechanicsLab/opensim-creator | e5c4b24f5ef3bffe10c84899d0a0c79037020b6d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "src/OpenSimBindings/UiModel.hpp"
#include "src/Utils/CircularBuffer.hpp"
#include <memory>
#include <optional>
namespace OpenSim {
class Model;
class Component;
}
namespace SimTK {
class State;
}
namespace osc {
// a "UI-ready" OpenSim::Model with undo/redo and rollback suppo... | 34.714286 | 85 | 0.620165 | ComputationalBiomechanicsLab |
6c49251988a31d236810dd74ca1c8e9a4e4237ce | 15,696 | cpp | C++ | src/Tools/TriangulatePolygon/TriangulatePolygon.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Tools/TriangulatePolygon/TriangulatePolygon.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Tools/TriangulatePolygon/TriangulatePolygon.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <shellapi.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <sstream>
#include "ToolUtils/ToolUtils.h"
#define BOOST_NO_IOSTREAM
#pragma warning(push, 0)
#pragma warning(disable:4800)
#include "boost/geometry/geometry.hpp"
#include "boost/geometry/core/tag.hpp"
... | 27.731449 | 198 | 0.544151 | Terryhata6 |
6c54d6f2a98c3073bbe807c2ecf0950ab6be0785 | 3,298 | cpp | C++ | 2048.cpp | eric0410771/Game_Theory_CPP | d739035ef64b4831491ca47126baf6f2216ad498 | [
"MIT"
] | null | null | null | 2048.cpp | eric0410771/Game_Theory_CPP | d739035ef64b4831491ca47126baf6f2216ad498 | [
"MIT"
] | null | null | null | 2048.cpp | eric0410771/Game_Theory_CPP | d739035ef64b4831491ca47126baf6f2216ad498 | [
"MIT"
] | null | null | null | /**
* Basic Environment for Game 2048
* use 'g++ -std=c++11 -O3 -g -o 2048 2048.cpp' to compile the source
*
* Computer Games and Intelligence (CGI) Lab, NCTU, Taiwan
* http://www.aigames.nctu.edu.tw
*/
#include <iostream>
#include <fstream>
#include <iterator>
#include <string>
#include "board.h"
#include "actio... | 27.949153 | 82 | 0.620376 | eric0410771 |
6c598852f77a18abe809573eecdd8da4ae6f3507 | 310 | cpp | C++ | libs/test/doc/src/examples/example26.cpp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/test/doc/src/examples/example26.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/test/doc/src/examples/example26.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | #include <boost/test/prg_exec_monitor.hpp> // this header is optional
//____________________________________________________________________________//
int cpp_main( int, char* [] ) // note the name
{
return 5;
}
//____________________________________________________________________________//
| 28.181818 | 81 | 0.783871 | zyiacas |
6c5c7e3ee59db26f09b2a1e518ce451f09854e1b | 23,913 | cpp | C++ | directfire_github/trunk/gameui/battle.net/headsettingdialog.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | 1 | 2015-08-12T04:05:33.000Z | 2015-08-12T04:05:33.000Z | directfire_github/trunk/gameui/battle.net/headsettingdialog.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | directfire_github/trunk/gameui/battle.net/headsettingdialog.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | #include "headsettingdialog.h"
#include "gamecore/resource/resourcemgr.h"
#include "gamecore/sounds/soundmgr.h"
#include "utils/sysutils.h"
#include "utils/fileutils.h"
#include "ccimagecliper.h"
HeadSettingDialog::HeadSettingDialog(CCNode *parent,const ccColor4B &color)
: BasShowDialog(parent,color)
{
m_serv... | 41.371972 | 155 | 0.720027 | zhwsh00 |
6c6209dc6c677a30dee8c46d4f40c671423853df | 7,573 | cpp | C++ | out/src/tink/core/_Callback/CallbackList_Impl_.cpp | sonygod/pb | a1bdc04c74bd91c71e96feb9f673075e780cbc81 | [
"MIT"
] | null | null | null | out/src/tink/core/_Callback/CallbackList_Impl_.cpp | sonygod/pb | a1bdc04c74bd91c71e96feb9f673075e780cbc81 | [
"MIT"
] | 1 | 2020-05-17T04:37:32.000Z | 2020-05-17T04:37:32.000Z | out/src/tink/core/_Callback/CallbackList_Impl_.cpp | sonygod/pb | a1bdc04c74bd91c71e96feb9f673075e780cbc81 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.0-rc.1+0545ce110
#include <hxcpp.h>
#ifndef INCLUDED_tink_core_LinkObject
#include <tink/core/LinkObject.h>
#endif
#ifndef INCLUDED_tink_core__Callback_CallbackList_Impl_
#include <tink/core/_Callback/CallbackList_Impl_.h>
#endif
#ifndef INCLUDED_tink_core__Callback_Callback_Impl_
#include <ti... | 40.068783 | 229 | 0.74594 | sonygod |
48417b49da918eff1b1f74ab854371df97d8386b | 12,316 | cpp | C++ | VS/Graphics/VS_TextureInternal.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 19 | 2017-04-03T09:06:21.000Z | 2022-03-05T19:06:07.000Z | VS/Graphics/VS_TextureInternal.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 2 | 2019-05-24T14:40:07.000Z | 2020-04-15T01:10:23.000Z | VS/Graphics/VS_TextureInternal.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 2 | 2020-03-08T07:14:49.000Z | 2020-03-09T10:39:52.000Z | /*
* VS_TextureInternal.cpp
* VectorStorm
*
* Created by Trevor Powell on 3/08/08.
* Copyright 2009 Trevor Powell. All rights reserved.
*
*/
#include "VS_TextureInternal.h"
#include "VS_Color.h"
#include "VS_FloatImage.h"
#include "VS_Image.h"
#include "VS_HalfIntImage.h"
#include "VS_HalfFloatImage.h"
#in... | 22.723247 | 122 | 0.732543 | vectorstorm |
48448f9efd2e96c394fd1a77cd8ecdc53972eebb | 319 | hpp | C++ | examples/publisher_transformer_subscriber/string_publisher.hpp | ManuelMeraz/flow | e9cf18dfc633bd9670e012a48595a1f931fcac79 | [
"BSD-3-Clause"
] | 3 | 2021-01-05T16:12:08.000Z | 2021-01-12T21:44:10.000Z | examples/publisher_transformer_subscriber/string_publisher.hpp | RoboSDK/Flow | e9cf18dfc633bd9670e012a48595a1f931fcac79 | [
"BSD-3-Clause"
] | 9 | 2020-10-06T23:53:39.000Z | 2021-01-23T00:41:39.000Z | examples/publisher_transformer_subscriber/string_publisher.hpp | RoboSDK/Flow | e9cf18dfc633bd9670e012a48595a1f931fcac79 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <flow/publisher.hpp>
#include <spdlog/spdlog.h>
namespace example {
class string_publisher {
public:
std::string operator()()
{
spdlog::info("Producing Hello World string!");
return "Hello World!";
}
std::string publish_to() { return "hello_world"; };
};
}// namespace example
| 16.789474 | 53 | 0.677116 | ManuelMeraz |
484dde96e9de72bdd23d2f17e6eb641ee184be83 | 1,223 | hpp | C++ | include/Keybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/Keybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/Keybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | #ifndef H_AW_KEYBINDING
#define H_AW_KEYBINDING
#include <vector>
#include <functional>
#include <SFML/Window.hpp>
namespace aw {
class Keybinding {
public:
typedef std::function <void()> KeybindingCallback;
Keybinding (const KeybindingCallback&, bool, sf::Keyboard::Key, bool, bool, bool);
~Keybinding ... | 22.648148 | 86 | 0.6713 | DangerInteractive |
48520d2a6ff5106755db288823bef13e0dec8ccf | 2,236 | cpp | C++ | Editor/Code/EntityManager.cpp | Negawisp/GameEnginePractice-2021 | 367768cdf43e15df194fa6691acba3fac6ef12ad | [
"MIT"
] | null | null | null | Editor/Code/EntityManager.cpp | Negawisp/GameEnginePractice-2021 | 367768cdf43e15df194fa6691acba3fac6ef12ad | [
"MIT"
] | null | null | null | Editor/Code/EntityManager.cpp | Negawisp/GameEnginePractice-2021 | 367768cdf43e15df194fa6691acba3fac6ef12ad | [
"MIT"
] | null | null | null | #include "EntityManager.h"
EntityManager::EntityManager(RenderEngine* pRenderEngine, EditorSystem* pEditorSystem, ScriptSystem* pScriptSystem, flecs::world* ecs) :
m_pRenderEngine(pRenderEngine),
m_pEditorSystem(pEditorSystem),
m_pEcs(ecs),
m_pScriptSystem(pScriptSystem)
{
}
EntityManager::~EntityManager()
{
m_e... | 27.268293 | 136 | 0.780859 | Negawisp |
48552f2a2ff3689b70b88b5ae5b11add416e6fd5 | 1,288 | cpp | C++ | src/threadinterrupt.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 13 | 2019-01-23T04:36:05.000Z | 2022-02-21T11:20:25.000Z | src/threadinterrupt.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | null | null | null | src/threadinterrupt.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 3 | 2019-01-24T07:48:15.000Z | 2021-06-11T13:34:44.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2009-2010 Satoshi Nakamoto
//版权所有(c)2009-2018比特币核心开发者
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/lice... | 23.851852 | 101 | 0.737578 | yinchengtsinghua |
4858df62263f0cb9b3b2f3e516f30fc13f39ab3d | 9,595 | cpp | C++ | src/landing-aruco.cpp | alanprodam/Filters-VO | ecb177d7b7cb3149b831d3b62545ec54e3e53f16 | [
"MIT"
] | null | null | null | src/landing-aruco.cpp | alanprodam/Filters-VO | ecb177d7b7cb3149b831d3b62545ec54e3e53f16 | [
"MIT"
] | null | null | null | src/landing-aruco.cpp | alanprodam/Filters-VO | ecb177d7b7cb3149b831d3b62545ec54e3e53f16 | [
"MIT"
] | null | null | null | #include "opencv2/core.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/aruco.hpp"
#include "opencv2/aruco/dictionary.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/features2d/featur... | 28.47181 | 153 | 0.642001 | alanprodam |
485a83cf0a500058b73ecf8893830d9c71894a58 | 417 | cpp | C++ | modules/image/vendor/stb.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 16 | 2019-12-10T19:44:17.000Z | 2022-01-04T03:16:19.000Z | modules/image/vendor/stb.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | null | null | null | modules/image/vendor/stb.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 3 | 2021-06-04T21:56:55.000Z | 2022-03-03T06:47:56.000Z | #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#undef STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTAT... | 37.909091 | 61 | 0.841727 | lenamueller |
485c58814be7293221cd4d7d77617cd22764ae9a | 707 | cpp | C++ | linked_list/leetcode_linked_list/160_intersection_of_two_linked_lists.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | linked_list/leetcode_linked_list/160_intersection_of_two_linked_lists.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | linked_list/leetcode_linked_list/160_intersection_of_two_linked_lists.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 160_intersection_of_two_linked_lists.cpp
// leetcode_linked_list
//
// Created by Hadley on 25.09.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include "83_Remove_duplicats_from_sorted_list.cpp"
using namespace ... | 22.09375 | 69 | 0.618105 | Hadleyhzy |
485e7897324f471024044742b871a41222a2b572 | 4,234 | cpp | C++ | src/engine/gen/FlowField.cpp | Eothaun/Eyos | adc63fa9051aa5c2e61250307c0cdcefbc9b6c06 | [
"MIT"
] | 8 | 2019-12-08T23:37:13.000Z | 2021-10-04T06:14:00.000Z | src/engine/gen/FlowField.cpp | Eothaun/Eyos | adc63fa9051aa5c2e61250307c0cdcefbc9b6c06 | [
"MIT"
] | null | null | null | src/engine/gen/FlowField.cpp | Eothaun/Eyos | adc63fa9051aa5c2e61250307c0cdcefbc9b6c06 | [
"MIT"
] | 1 | 2019-12-31T02:44:01.000Z | 2019-12-31T02:44:01.000Z | #include "engine/gen/FlowField.h"
FlowField::FlowField()
{
dijkstraGrid = std::vector<std::vector<node>>(gridWidth);
}
FlowField::~FlowField()
{
}
void FlowField::GenerateFlowField()
{
GenerateDijkstraGrid(std::vector<glm::vec2>{ {2, 4}, { 5,6 }});
int x, y;
std::vector<std::vector<glm::vec2>> flowField(gridWi... | 27.493506 | 162 | 0.645253 | Eothaun |
4861bc5e8598ec7ae2279bff66213b13e006ec1b | 836 | cpp | C++ | codeforces/1485A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1485A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1485A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // A. Add and Divide
#include <iostream>
#include <limits>
using namespace std;
int main() {
int t;
cin >> t;
while(t--) {
int a, b;
cin >> a >> b;
int ans = numeric_limits<int>::max();
bool b_is_one = false;
if (b == 1) {
b += 1;
b_is... | 16.72 | 68 | 0.389952 | sgrade |
486768fc3c4659bb98f60b08d39a319baece52b2 | 8,095 | cpp | C++ | SMHasher/SpeedTest.cpp | Bulat-Ziganshin/FARSH | d74ef3a21cd4cde0a97639ec400f42c6169cca93 | [
"MIT"
] | 44 | 2015-05-29T14:37:31.000Z | 2021-11-17T11:22:04.000Z | SMHasher/SpeedTest.cpp | Bulat-Ziganshin/FARSH | d74ef3a21cd4cde0a97639ec400f42c6169cca93 | [
"MIT"
] | 4 | 2016-06-28T12:34:31.000Z | 2019-12-03T10:54:10.000Z | SMHasher/SpeedTest.cpp | Bulat-Ziganshin/FARSH | d74ef3a21cd4cde0a97639ec400f42c6169cca93 | [
"MIT"
] | 4 | 2016-08-09T08:51:46.000Z | 2018-01-13T15:36:36.000Z | #include "SpeedTest.h"
#include "Random.h"
#include <stdio.h> // for printf
#include <memory.h> // for memset
#include <math.h> // for sqrt
#include <algorithm> // for sort
//-----------------------------------------------------------------------------
// We view our timing values as a series of rand... | 25.455975 | 162 | 0.512786 | Bulat-Ziganshin |
48695be33dc62aab206b61ad431856e152a0fb5c | 634 | cpp | C++ | codes/HDU/hdu2352.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu2352.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu2352.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 1005;
char s[maxn];
inline int idx(char c) {
if (c == 'I') return 1;
else if (c == 'V') return 5;
else if (c == 'X') return 10;
else if (c == 'L') return 50;
else if (c == 'C') return 100;
else if (c == 'D') return ... | 18.114286 | 47 | 0.520505 | JeraKrs |
486e3ce93dbdc4edc36fc00bb0f7316686a0cca3 | 558 | hpp | C++ | src/RuleBoost.hpp | d3wy/pool-controller | 182d8c67638abf56d8e5126103b5995006c06b42 | [
"MIT"
] | 12 | 2020-03-04T18:43:43.000Z | 2022-01-30T22:59:27.000Z | src/RuleBoost.hpp | d3wy/pool-controller | 182d8c67638abf56d8e5126103b5995006c06b42 | [
"MIT"
] | 17 | 2019-05-20T20:22:09.000Z | 2022-01-11T16:55:26.000Z | src/RuleBoost.hpp | d3wy/pool-controller | 182d8c67638abf56d8e5126103b5995006c06b42 | [
"MIT"
] | 6 | 2020-06-05T18:17:13.000Z | 2022-03-19T20:13:58.000Z |
#pragma once
#include "Rule.hpp"
#include "RelayModuleNode.hpp"
class RuleBoost : public Rule {
public:
RuleBoost(RelayModuleNode* solarRelay, RelayModuleNode* poolRelay);
const char* getMode() { return "boost"; };
void setSolarRelayNode(RelayModuleNode* relay) { _solarRelay = relay; };
void setPoolRelayNo... | 21.461538 | 74 | 0.716846 | d3wy |
4872cb9656f275d58c9a8bf2c3a83edd2382339f | 4,646 | cpp | C++ | src/qhebot/lib/qheduino_CAR.cpp | zzboss/qhebot-openblock-extension | 2fdadc1303046e231cef4df29594a11893b31e7c | [
"MIT"
] | null | null | null | src/qhebot/lib/qheduino_CAR.cpp | zzboss/qhebot-openblock-extension | 2fdadc1303046e231cef4df29594a11893b31e7c | [
"MIT"
] | null | null | null | src/qhebot/lib/qheduino_CAR.cpp | zzboss/qhebot-openblock-extension | 2fdadc1303046e231cef4df29594a11893b31e7c | [
"MIT"
] | null | null | null | #include "qheduino_CAR.h"
//输入参数为TB6612六个引脚对应的Arduino管脚
CAR::CAR(int left_go, int left_back, int left_pwm, int right_go, int right_back, int right_pwm ) {
Left_motor_go = left_go; //左电机前进 AIN1
Left_motor_back = left_back; //左电机后退 AIN2
Right_motor_go = right_go; //右电机前进 BIN1
R... | 23.114428 | 98 | 0.64378 | zzboss |
4873d633f2dfe552a6768aa2782d82ae5d9b5008 | 4,633 | cxx | C++ | graphics/nxwm/src/cfullscreenwindow.cxx | DS-LK/incubator-nuttx-apps | 5719753399c41529478ced0a3af9a8fae93a50a9 | [
"Apache-2.0"
] | 1 | 2022-01-04T04:04:58.000Z | 2022-01-04T04:04:58.000Z | graphics/nxwm/src/cfullscreenwindow.cxx | VanFeo/incubator-nuttx-apps | 009e66874538658c10a26bc076d27e9de48fabc6 | [
"Apache-2.0"
] | null | null | null | graphics/nxwm/src/cfullscreenwindow.cxx | VanFeo/incubator-nuttx-apps | 009e66874538658c10a26bc076d27e9de48fabc6 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************************
* apps/graphics/nxwm/src/cfullscreenwindow.cxx
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional info... | 26.474286 | 94 | 0.616879 | DS-LK |
4876effedc7f70ccacd951b3eadcfce9fc0e8480 | 11,299 | cpp | C++ | aladdin/core/Scene.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | 2 | 2017-11-08T16:27:25.000Z | 2018-08-10T09:08:35.000Z | aladdin/core/Scene.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | null | null | null | aladdin/core/Scene.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | 4 | 2017-11-08T16:25:30.000Z | 2021-05-23T06:14:59.000Z | /*
* Created by phuctm97 on Sep 30th 2017
*/
#include "Scene.h"
#include "StdHelper.h"
#include "GameResource.h"
#include "GameManager.h"
#include "../2d/2dMacros.h"
#include "../2d/Camera.h"
NAMESPACE_ALA
{
ALA_CLASS_SOURCE_2(ala::Scene, ala::Initializable, ala::Releasable)
// ====================================... | 24.887665 | 101 | 0.638995 | Khuongnb1997 |
487aa1d1c63091c25dde2241d1062b1d7dd5af96 | 1,195 | cpp | C++ | higan/ms/psg/io.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | higan/ms/psg/io.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | higan/ms/psg/io.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | auto PSG::write(uint8 data) -> void {
bool l = data.bit(7);
if(l) select = data.bits(4,6);
switch(select) {
case 0: {
if(l) tone0.pitch.bits(0,3) = data.bits(0,3);
else tone0.pitch.bits(4,9) = data.bits(0,5);
break;
}
case 1: {
tone0.volume = data.bits(0,3);
break;
}
case 2: {
... | 17.835821 | 49 | 0.553975 | 13824125580 |
487aefa8e6a9b2449309a561ee11d697dc3562ec | 1,403 | cpp | C++ | test/constant/scalar/sqrt_2o_3.cpp | TobiasLudwig/boost.simd | c04d0cc56747188ddb9a128ccb5715dd3608dbc1 | [
"BSL-1.0"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | test/constant/scalar/sqrt_2o_3.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | null | null | null | test/constant/scalar/sqrt_2o_3.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//====================================... | 29.851064 | 100 | 0.558803 | TobiasLudwig |
488178167970c29b3461a8ddb955a4034ebb91bf | 8,974 | cpp | C++ | src/main.cpp | jk-jeon/dtoa-benchmark | 7bf593b5bfdbc7cfb0c0c583b8f509807e0b1fee | [
"MIT"
] | 1 | 2020-11-05T06:51:16.000Z | 2020-11-05T06:51:16.000Z | src/main.cpp | jk-jeon/dtoa-benchmark | 7bf593b5bfdbc7cfb0c0c583b8f509807e0b1fee | [
"MIT"
] | null | null | null | src/main.cpp | jk-jeon/dtoa-benchmark | 7bf593b5bfdbc7cfb0c0c583b8f509807e0b1fee | [
"MIT"
] | 4 | 2019-06-06T11:35:42.000Z | 2021-11-20T02:40:15.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <exception>
#include <limits>
#if _MSC_VER
#include "msinttypes/stdint.h"
#else
#include <stdint.h>
#endif
#include <cstdlib>
#include <math.h>
#include <random>
#include "resultfilename.h"
#include "timer.h"
#include "test.h"
#includ... | 26.087209 | 106 | 0.634723 | jk-jeon |
4882d3004fbce99beccaf4a94e9ac7b8b46da600 | 1,596 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.Decimal.Ctor.Ints/CPP/ctorui.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_CLR_System/system.Decimal.Ctor.Ints/CPP/ctorui.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_CLR_System/system.Decimal.Ctor.Ints/CPP/ctorui.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
//<Snippet2>
// Example of the Decimal( unsigned int ) constructor.
using namespace System;
// Create a Decimal object and display its value.
void CreateDecimal( unsigned int value, String^ valToStr )
{
Decimal decimalNum = Decimal(value);
// Format the constructor for display.
String^ ctor = String::For... | 33.25 | 65 | 0.62406 | BohdanMosiyuk |
4886e4e3705016ccad778d9ed1e290088926b00e | 9,867 | cpp | C++ | Atum/SceneObjects/Other/Demo/SimpleCharacter2D.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 23 | 2017-11-01T14:47:26.000Z | 2021-12-30T08:04:31.000Z | Atum/SceneObjects/Other/Demo/SimpleCharacter2D.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 1 | 2018-12-06T14:19:55.000Z | 2018-12-07T04:06:35.000Z | Atum/SceneObjects/Other/Demo/SimpleCharacter2D.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 4 | 2017-11-30T10:25:58.000Z | 2019-04-21T14:11:40.000Z |
#include "SimpleCharacter2D.h"
#include "Services/Render/Render.h"
#include "SceneObjects/2D/SpriteAsset.h"
CLASSREG(SceneObject, SimpleCharacter2D, "SimpleCharacter2D")
META_DATA_DESC(SimpleCharacter2D)
BASE_SCENE_OBJ_PROP(SimpleCharacter2D)
FLOAT_PROP(SimpleCharacter2D, trans.pos.x, 100.0f, "Geometry", "x", "X coo... | 20.095723 | 165 | 0.643458 | ENgineE777 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.