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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cee9c2e788615a4b2a76f79e1347a27ce246b765 | 19,539 | cpp | C++ | fm_Btraj/src/Btraj/third_party/sdf_tools/src/sdf_tools/sdf.cpp | Sunshinehualong/motion_Planning | ea127de8cd8f32e9994538416d0c74b99054214f | [
"MIT"
] | 11 | 2019-08-24T08:28:17.000Z | 2021-04-28T05:23:42.000Z | fm_Btraj/src/Btraj/third_party/sdf_tools/src/sdf_tools/sdf.cpp | lvhualong/motion_Planning | ea127de8cd8f32e9994538416d0c74b99054214f | [
"MIT"
] | null | null | null | fm_Btraj/src/Btraj/third_party/sdf_tools/src/sdf_tools/sdf.cpp | lvhualong/motion_Planning | ea127de8cd8f32e9994538416d0c74b99054214f | [
"MIT"
] | 6 | 2019-08-24T08:28:19.000Z | 2020-10-19T12:47:20.000Z | #include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <unordered_map>
#include <zlib.h>
#include <ros/ros.h>
#include <arc_utilities/eigen_helpers_conversions.hpp>
#include <arc_utilities/zlib_helpers.hpp>
#incl... | 44.406818 | 239 | 0.625825 | Sunshinehualong |
ceebbbbde132f1148d9ce7fb589a3c0c04854e84 | 186 | cpp | C++ | NJUPT-ACM/12.3/C.cpp | ZsgsDesign/My_ACM_Life | 9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46 | [
"CC-BY-4.0"
] | 4 | 2019-02-17T15:14:21.000Z | 2019-03-30T11:34:19.000Z | NJUPT-ACM/12.3/C.cpp | ZsgsDesign/My_ACM_Life | 9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46 | [
"CC-BY-4.0"
] | null | null | null | NJUPT-ACM/12.3/C.cpp | ZsgsDesign/My_ACM_Life | 9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46 | [
"CC-BY-4.0"
] | null | null | null | #include <bits\stdc++.h>
using namespace std;
double a,b,c;
int main ()
{
while (cin >> a >> b >> c) printf("%.5lf\n",(a*b+b*(b-1))/(a+b-c-1)/(a+b));
return 0;
}
| 15.5 | 81 | 0.473118 | ZsgsDesign |
ceebf52041f3ca6247ade48f10a248de52cb2ee2 | 212 | cpp | C++ | 数学规律/89.格雷编码/grayCode.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 数学规律/89.格雷编码/grayCode.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 数学规律/89.格雷编码/grayCode.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
vector<int> grayCode(int n) {
vector<int> ans;
int powN = 1 << n;
for(int i = 0; i < powN; ++i)
ans.push_back(i^i>>1);
return ans;
}
}; | 21.2 | 37 | 0.466981 | YichengZhong |
ceed005071b3cfd486a386d2a472bd32ffe498e7 | 1,975 | cpp | C++ | src/main.cpp | teuthid/eq | 4b7f0bd68fa8d3e186b076df8a606600cf482d82 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | teuthid/eq | 4b7f0bd68fa8d3e186b076df8a606600cf482d82 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | teuthid/eq | 4b7f0bd68fa8d3e186b076df8a606600cf482d82 | [
"BSD-3-Clause"
] | null | null | null | /*
eq - transcendental fan controller ;)
Copyright (c) 2018-2019 Mariusz Przygodzki
*/
#include "eq_eeprom.h"
#include "eq_pwm_timer.h"
#include "eq_tasks.h"
#include <TaskScheduler.h>
#if defined(EQ_UNIT_TEST)
#include <AUnitVerbose.h>
#include "eq_display.h"
#include "test_eq.h"
#endif // defined(EQ_UNIT_TE... | 23.795181 | 69 | 0.695696 | teuthid |
ceedc0673542880bed81b97a16351850bc41e9d6 | 13,638 | cpp | C++ | src/main/cpp/LivePresetsExtension.cpp | Burtan/LivePresetsExtension | bbac7a6bcdf584c1b1794e5affa5ce0ba5659a48 | [
"MIT"
] | 2 | 2020-04-08T19:06:53.000Z | 2020-04-11T15:50:33.000Z | src/main/cpp/LivePresetsExtension.cpp | Burtan/LivePresetsExtension | bbac7a6bcdf584c1b1794e5affa5ce0ba5659a48 | [
"MIT"
] | null | null | null | src/main/cpp/LivePresetsExtension.cpp | Burtan/LivePresetsExtension | bbac7a6bcdf584c1b1794e5affa5ce0ba5659a48 | [
"MIT"
] | null | null | null | /******************************************************************************
/ LivePresetsExtension
/
/ Base extension class
/
/ Copyright (c) 2020 and later Dr. med. Frederik Bertling
/
/
/ Permission is hereby granted, free of charge, to any person obtaining a copy
/ of this software and associated documentation f... | 31.208238 | 120 | 0.628025 | Burtan |
ceefe13672448d3d24143c5737dc2e9cdcda244b | 814 | cpp | C++ | binarysearch.io/medium/All-Sublists-Sum.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | binarysearch.io/medium/All-Sublists-Sum.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | binarysearch.io/medium/All-Sublists-Sum.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
All Sublists Sum
https://binarysearch.io/problems/All-Sublists-Sum
Given a list of integers nums, consider every contiguous sublist. Sum each of these sublists and return the sum of all these values. Mod the result by 10 ** 9 + 7.
Constraints
Length of nums is at most 5000.
Example 1
Input
nums = [2, 3, 5]
Outp... | 16.958333 | 163 | 0.594595 | wingkwong |
300083e191105ac9064acaf34b70d1a7bb193e25 | 236,031 | cpp | C++ | src/currency_core/blockchain_storage.cpp | Virie/Virie | fc5ad5816678b06b88d08a6842e43d4205915b39 | [
"MIT"
] | 1 | 2021-03-07T13:26:43.000Z | 2021-03-07T13:26:43.000Z | src/currency_core/blockchain_storage.cpp | Virie/Virie | fc5ad5816678b06b88d08a6842e43d4205915b39 | [
"MIT"
] | null | null | null | src/currency_core/blockchain_storage.cpp | Virie/Virie | fc5ad5816678b06b88d08a6842e43d4205915b39 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2020 The Virie Project
// Copyright (c) 2012-2013 The Cryptonote developers
// Copyright (c) 2012-2013 The Boolberry developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <set>
#include <a... | 43.839339 | 348 | 0.667823 | Virie |
300a0a37296f82fdac346cc4df893959b5d58866 | 2,009 | cpp | C++ | src/lib/Actions/SetChildAction.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Actions/SetChildAction.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Actions/SetChildAction.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010, Piet Hein Schouten. All rights reserved.
* This code is licensed under a BSD-style license that can be
* found in the LICENSE file. The license can also be found at:
* http://www.boi-project.org/license
*/
#include "ASI.h"
#include "StandardActions.h"
#include "Events/TouchEvent.h"
#include ... | 19.891089 | 76 | 0.568442 | romoadri21 |
300b47b05f32a191a9c26de5d6e716bbdedc5ac5 | 4,710 | cpp | C++ | src/Project/projecthistory.cpp | congpp/TABEx | 91da62a326f70d7aa79a33e00790dce5d8088b6c | [
"MIT"
] | 1 | 2021-09-15T13:42:25.000Z | 2021-09-15T13:42:25.000Z | src/Project/projecthistory.cpp | congpp/TABEx | 91da62a326f70d7aa79a33e00790dce5d8088b6c | [
"MIT"
] | null | null | null | src/Project/projecthistory.cpp | congpp/TABEx | 91da62a326f70d7aa79a33e00790dce5d8088b6c | [
"MIT"
] | 1 | 2021-07-22T02:43:59.000Z | 2021-07-22T02:43:59.000Z | #include "projecthistory.h"
#include "commondefine.h"
#include <QDir>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QFile>
#include <QTextStream>
#include <QDateTime>
const QString HISTORY_FILE_PATH("history.json");
const int MAX_HISTROY_SIZE = 10;
ProjectHistory::Proje... | 24.659686 | 119 | 0.602972 | congpp |
300b6e61ed6750fd7f85511a04b40ca630f7ad0d | 6,094 | cpp | C++ | plugins/broker/src/writer.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | plugins/broker/src/writer.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | plugins/broker/src/writer.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2021 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "broker/writer.hpp"
#include "broker/zeek.hpp"... | 32.940541 | 80 | 0.56088 | rdettai |
301dafbd11fb67c026db15b2689f07ca37af19c7 | 9,113 | cpp | C++ | code/common/string_utils.cpp | SamWindell/AudioUtils | 83f81194755dcb534663ea9998749ba48e2d0466 | [
"BSD-3-Clause"
] | 11 | 2020-05-26T18:33:39.000Z | 2022-02-24T15:14:23.000Z | code/common/string_utils.cpp | SamWindell/AudioUtils | 83f81194755dcb534663ea9998749ba48e2d0466 | [
"BSD-3-Clause"
] | 5 | 2020-05-26T13:48:06.000Z | 2022-03-26T09:38:43.000Z | code/common/string_utils.cpp | SamWindell/AudioUtils | 83f81194755dcb534663ea9998749ba48e2d0466 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T04:08:09.000Z | 2021-12-30T04:08:09.000Z | #include "string_utils.h"
#include <regex>
#include "doctest.hpp"
#include "filesystem.hpp"
bool EndsWith(std::string_view str, std::string_view suffix) {
return suffix.size() <= str.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0;
}
bool StartsWith(std::string_view str, std::strin... | 29.022293 | 110 | 0.51443 | SamWindell |
3022d0af1ebd47f2fc2ebbff4257a9f27410e6c6 | 383 | cpp | C++ | modules/multi_shader_material/register_types.cpp | 838116504/MultiShaderMaterial | b663d7665c53d42cdeb90762576593308f73399c | [
"Unlicense"
] | 2 | 2020-12-10T12:43:01.000Z | 2021-06-28T02:48:00.000Z | modules/multi_shader_material/register_types.cpp | 838116504/MultiShaderMaterial | b663d7665c53d42cdeb90762576593308f73399c | [
"Unlicense"
] | null | null | null | modules/multi_shader_material/register_types.cpp | 838116504/MultiShaderMaterial | b663d7665c53d42cdeb90762576593308f73399c | [
"Unlicense"
] | null | null | null | #include <core/class_db.h>
#include "register_types.h"
#include "multi_shader_material.h"
void register_multi_shader_material_types()
{
ClassDB::register_class<MultiShaderMaterial>();
MultiShaderMaterial::get_shader_manager() = memnew(MultiShaderMaterial::ShaderManager);
}
void unregister_multi_shader_material_type... | 25.533333 | 88 | 0.819843 | 838116504 |
30268be5d9fdb84f7455860ee668f0fdf1062ddc | 4,685 | hpp | C++ | lib/sml/protocol/src/parser/obis_parser.hpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 2 | 2020-03-03T12:40:29.000Z | 2021-05-06T06:20:19.000Z | lib/sml/protocol/src/parser/obis_parser.hpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 7 | 2020-01-14T20:38:04.000Z | 2021-05-17T09:52:07.000Z | lib/sml/protocol/src/parser/obis_parser.hpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 2 | 2019-11-09T09:14:48.000Z | 2020-03-03T12:40:30.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sylko Olzscher
*
*/
#ifndef NODE_LIB_SML_OBIS_PARSER_HPP
#define NODE_LIB_SML_OBIS_PARSER_HPP
#include <smf/sml/parser/obis_parser.h>
#include <boost/spirit/home/support/attributes.hpp> // transform_attribute
#include <boost/spirit/include/phoenix.hpp> // enable ... | 36.889764 | 222 | 0.594237 | solosTec |
3027d6dddd03260f25df5a1d08318d7d8e95c310 | 418 | cc | C++ | src/native.cc | shin1m/xemmai | dbeb22058ffdec0dda7d2575b86e750b87ed4197 | [
"MIT",
"Unlicense"
] | 5 | 2015-11-01T22:08:39.000Z | 2021-06-08T04:44:38.000Z | src/native.cc | shin1m/xemmai | dbeb22058ffdec0dda7d2575b86e750b87ed4197 | [
"MIT",
"Unlicense"
] | null | null | null | src/native.cc | shin1m/xemmai | dbeb22058ffdec0dda7d2575b86e750b87ed4197 | [
"MIT",
"Unlicense"
] | null | null | null | #include <xemmai/global.h>
namespace xemmai
{
size_t t_type_of<t_native>::f_do_call(t_object* a_this, t_pvalue* a_stack, size_t a_n)
{
auto& p = a_this->f_as<t_native>();
p.v_function(&p.v_library->f_as<t_library>(), a_stack, a_n);
return -1;
}
size_t t_type_of<t_native>::f_do_get_at(t_object* a_this, t_pvalue* a... | 20.9 | 86 | 0.712919 | shin1m |
6f787b548eda97a7b572a2cae44519bc3884946e | 103 | hpp | C++ | handsome/cpp_src/BitmapWriter.hpp | bracket/handsome | c93d34f94d0eea24f5514efc9bc423eb28b44a6b | [
"BSD-2-Clause"
] | null | null | null | handsome/cpp_src/BitmapWriter.hpp | bracket/handsome | c93d34f94d0eea24f5514efc9bc423eb28b44a6b | [
"BSD-2-Clause"
] | null | null | null | handsome/cpp_src/BitmapWriter.hpp | bracket/handsome | c93d34f94d0eea24f5514efc9bc423eb28b44a6b | [
"BSD-2-Clause"
] | null | null | null | #pragma once
struct SampleBuffer;
void write_bitmap(char const * path, SampleBuffer const & Buffer);
| 17.166667 | 66 | 0.776699 | bracket |
6f78b79f023d3e27fd3ebdb9b3577623823b91e8 | 1,179 | cpp | C++ | lintcode/isPalindor.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | lintcode/isPalindor.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | lintcode/isPalindor.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
/*
* @param s: A string
* @return: A list of lists of string
*/
vector<vector<string>> partition(string &s) {
// write your code here
vector<vector<string>> results;
if (s.size() == 0) {
return results;
}
vector<string>... | 23.58 | 93 | 0.449534 | Broadroad |
6f7f362a2c56bbbc25a155ed6f55157202385ffd | 2,212 | cpp | C++ | vsl/Parser/ErrorListener.cpp | VegaLib/VSL | c110b1b8ce6aa7a88d2bc97a3e99385e638dfc6d | [
"MS-PL"
] | null | null | null | vsl/Parser/ErrorListener.cpp | VegaLib/VSL | c110b1b8ce6aa7a88d2bc97a3e99385e638dfc6d | [
"MS-PL"
] | null | null | null | vsl/Parser/ErrorListener.cpp | VegaLib/VSL | c110b1b8ce6aa7a88d2bc97a3e99385e638dfc6d | [
"MS-PL"
] | null | null | null | /*
* Microsoft Public License (Ms-PL) - Copyright (c) 2020-2021 Sean Moss
* This file is subject to the terms and conditions of the Microsoft Public License, the text of which can be found in
* the 'LICENSE' file at the root of this repository, or online at <https://opensource.org/licenses/MS-PL>.
*/
#include "./E... | 30.722222 | 119 | 0.580922 | VegaLib |
6f806d3812068b0f1eb74c4db116985ecdadab53 | 22 | cpp | C++ | SpaceCube/UI/Transpose.cpp | marci07iq/SpaceCube | 464bc3fa1090bed273bcaa3257aebeacc4e8d3b0 | [
"MIT"
] | 2 | 2019-11-05T14:48:34.000Z | 2019-11-05T14:49:30.000Z | SpaceCube/UI/Transpose.cpp | marci07iq/SpaceCube | 464bc3fa1090bed273bcaa3257aebeacc4e8d3b0 | [
"MIT"
] | null | null | null | SpaceCube/UI/Transpose.cpp | marci07iq/SpaceCube | 464bc3fa1090bed273bcaa3257aebeacc4e8d3b0 | [
"MIT"
] | null | null | null | #include "Transpose.h" | 22 | 22 | 0.772727 | marci07iq |
6f8a7a146c91c14100a4a395aeac24c3c407438a | 2,963 | cpp | C++ | src/Kmers_Validator.cpp | jurikuronen/cuttlefish | af041879e0322748155081271676c189b26f3a59 | [
"BSD-3-Clause"
] | 43 | 2020-07-29T21:36:21.000Z | 2022-03-22T14:36:34.000Z | src/Kmers_Validator.cpp | jurikuronen/cuttlefish | af041879e0322748155081271676c189b26f3a59 | [
"BSD-3-Clause"
] | 10 | 2020-10-28T14:09:00.000Z | 2022-02-06T22:22:48.000Z | src/Kmers_Validator.cpp | jurikuronen/cuttlefish | af041879e0322748155081271676c189b26f3a59 | [
"BSD-3-Clause"
] | 2 | 2021-02-15T15:58:38.000Z | 2021-11-03T12:14:39.000Z |
#include "Validator.hpp"
#include "Directed_Kmer.hpp"
#include "Kmer_Container.hpp"
#include "BBHash/BooPHF.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include <fstream>
template <uint16_t k>
void Validator<k>::validate_kmer_set(bool& result) const
{
console->info("Testing validation of the uniqueness of t... | 34.057471 | 133 | 0.633142 | jurikuronen |
6f91b98ab0b9f7a1956093001fd4486862c51eb7 | 4,843 | cpp | C++ | android-31/java/time/chrono/MinguoDate.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/time/chrono/MinguoDate.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/time/chrono/MinguoDate.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../io/ObjectInputStream.hpp"
#include "../../../JObject.hpp"
#include "../../../JString.hpp"
#include "../Clock.hpp"
#include "../LocalDate.hpp"
#include "../LocalTime.hpp"
#include "../ZoneId.hpp"
#include "./MinguoChronology.hpp"
#include "./MinguoEra.hpp"
#include "../temporal/ValueRange.hpp"
#include "... | 22.737089 | 81 | 0.68057 | YJBeetle |
6f972cbe44688a519eb5aa3781a345d4b740312d | 4,152 | cpp | C++ | src/main.cpp | RigoLigoRLC/QuikMCAsset | f075485f36f52416756d9d0dbd5628fee77c5e34 | [
"MIT"
] | 1 | 2020-02-28T16:43:22.000Z | 2020-02-28T16:43:22.000Z | src/main.cpp | RigoLigoRLC/QuikMCAsset | f075485f36f52416756d9d0dbd5628fee77c5e34 | [
"MIT"
] | null | null | null | src/main.cpp | RigoLigoRLC/QuikMCAsset | f075485f36f52416756d9d0dbd5628fee77c5e34 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstdio>
#include "rapidjson.hpp"
using std::string;
using std::cout;
using std::cin;
using std::endl;
using rapidjson::FileReadStream;
using rapidjson::Document;
using rapidjson::Value;
//#define TEST_SUPPLY_FILE_PATH
int restoreHierachy(const string&, const string&);... | 29.034965 | 114 | 0.685212 | RigoLigoRLC |
6f9a6bb8f819f22c502388e8f5b0638ba8859891 | 5,258 | cpp | C++ | src/main_camshift.cpp | LorisFriedel/learning-sign-language | f87767c43a11c01885628c1de10daa9d1a58e6ad | [
"MIT"
] | null | null | null | src/main_camshift.cpp | LorisFriedel/learning-sign-language | f87767c43a11c01885628c1de10daa9d1a58e6ad | [
"MIT"
] | null | null | null | src/main_camshift.cpp | LorisFriedel/learning-sign-language | f87767c43a11c01885628c1de10daa9d1a58e6ad | [
"MIT"
] | null | null | null | //
// @author Loris Friedel
//
#include <tclap/CmdLine.h>
#include <cv.hpp>
#include "../inc/code.h"
#include "../inc/log.h"
#include "../inc/VideoStreamReader.hpp"
#include "../inc/ObjectDetector.hpp"
#include "../inc/CamshiftRunner.hpp"
#include "../inc/KeyInputHandler.hpp"
#include "../inc/colors.h"
#include "../in... | 39.238806 | 187 | 0.594332 | LorisFriedel |
6fa047e31a5f6bb59ffbf6d050d98b419a1bff91 | 1,399 | cpp | C++ | code/pyramids/image.cpp | liaojing/Image-Morphing | 5a093965e4d9016eac58acbe25ffd77ba56a0ca2 | [
"MIT"
] | 109 | 2015-01-04T09:03:27.000Z | 2022-03-28T07:45:51.000Z | code/pyramids/image.cpp | liaojing/Image-Morphing | 5a093965e4d9016eac58acbe25ffd77ba56a0ca2 | [
"MIT"
] | 1 | 2015-07-22T05:55:45.000Z | 2016-01-20T07:28:11.000Z | code/pyramids/image.cpp | liaojing/Image-Morphing | 5a093965e4d9016eac58acbe25ffd77ba56a0ca2 | [
"MIT"
] | 45 | 2015-01-24T09:09:02.000Z | 2021-08-11T12:40:09.000Z | #include <cstring>
#include <cctype>
#include "extension.h"
#include "image.h"
#include "error.h"
static extension::clamp clamp;
namespace image {
template<>
int load(cv::Mat& image, image::rgba<float> *rgba) {
if (image.rows!=0&&image.cols!=0)
{
int width=image.cols;
int height=image.rows;
r... | 22.564516 | 62 | 0.555397 | liaojing |
6fa66b2cebf9b544e3cd6fb9404ef2de87d48abe | 751 | cpp | C++ | Source/CBoundBullet.cpp | DegitechWorldClass/Who-am-I_Game | ae90c7a60b747667d6571557c72e2b29dc1fc767 | [
"Apache-2.0"
] | null | null | null | Source/CBoundBullet.cpp | DegitechWorldClass/Who-am-I_Game | ae90c7a60b747667d6571557c72e2b29dc1fc767 | [
"Apache-2.0"
] | null | null | null | Source/CBoundBullet.cpp | DegitechWorldClass/Who-am-I_Game | ae90c7a60b747667d6571557c72e2b29dc1fc767 | [
"Apache-2.0"
] | null | null | null | #include "DXUT.h"
#include "CBoundBullet.h"
#include "CEffect.h"
CBoundBullet::CBoundBullet()
{
}
CBoundBullet::~CBoundBullet()
{
}
void CBoundBullet::Init()
{
}
void CBoundBullet::Update()
{
}
void CBoundBullet::Render()
{
}
void CBoundBullet::Release()
{
}
void CBoundBullet::OnCollisionEnter(CObject * _pObje... | 13.907407 | 85 | 0.684421 | DegitechWorldClass |
6fab3d361acbb7411f10033d0063719fcb6d040d | 2,995 | inl | C++ | Library/Sources/Stroika/Foundation/Memory/ObjectFieldUtilities.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/Memory/ObjectFieldUtilities.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/Memory/ObjectFieldUtilities.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#ifndef _Stroika_Foundation_Memory_ObjectFieldUtilities_inl_
#define _Stroika_Foundation_Memory_ObjectFieldUtilities_inl_ 1
/*
********************************************************************************
***************************** ... | 54.454545 | 161 | 0.590651 | SophistSolutions |
6fb531138f1e004716c1635c7fbe2612979292e7 | 1,392 | cpp | C++ | tests/tests_transactional.cpp | Dwarfobserver/cpp-sandbox | e20bdc0694efac11ff3476e51a2821a2575b63cb | [
"MIT"
] | 3 | 2018-01-10T01:04:02.000Z | 2019-03-29T15:23:42.000Z | tests/tests_transactional.cpp | Dwarfobserver/cpp-sandbox | e20bdc0694efac11ff3476e51a2821a2575b63cb | [
"MIT"
] | null | null | null | tests/tests_transactional.cpp | Dwarfobserver/cpp-sandbox | e20bdc0694efac11ff3476e51a2821a2575b63cb | [
"MIT"
] | null | null | null |
#include "catch.hpp"
#include <transactional.hpp>
namespace {
std::atomic_int ctorsCounter;
std::atomic_int movesCounter;
std::atomic_int copiesCounter;
std::atomic_int dtorsCounter;
class Dummy {
public:
Dummy() {
ctorsCounter++;
}
~Dummy() {
... | 22.819672 | 75 | 0.512931 | Dwarfobserver |
6fb61cdc2c763ccc14f86ec30e8a9abfd27c7c3b | 1,582 | cpp | C++ | libs/cegui/src/cegui/toolbox/append_row.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/cegui/src/cegui/toolbox/append_row.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/cegui/src/cegui/toolbox/append_row.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/cegui/exception.hpp>
#include <sge/cegui/toolbox/append_row.hpp>
#include <sge/cegui/... | 34.391304 | 97 | 0.695322 | cpreh |
6fbe972e5da8045c909d7b9cb7928a6f8ae5ebf2 | 15,314 | hpp | C++ | code/linear/gauss.hpp | Brunovsky/competitive | 41cf49378e430ca20d844f97c67aa5059ab1e973 | [
"MIT"
] | 1 | 2020-02-10T09:15:59.000Z | 2020-02-10T09:15:59.000Z | code/linear/gauss.hpp | Brunovsky/kickstart | 41cf49378e430ca20d844f97c67aa5059ab1e973 | [
"MIT"
] | null | null | null | code/linear/gauss.hpp | Brunovsky/kickstart | 41cf49378e430ca20d844f97c67aa5059ab1e973 | [
"MIT"
] | null | null | null | #pragma once
#include "linear/matrix.hpp"
// ***** Gauss with modnum/fields
// Compute inverse of square matrix, T must be invertible. Returns nullopt if det=0
template <typename T>
optional<mat<T>> inverse(mat<T> a) {
assert(a.n == a.m && "Matrix inverse operand is not square");
auto b = mat<T>::identity(a.... | 29.735922 | 87 | 0.366854 | Brunovsky |
6fc52b753f1ddd7513f0c0563a39ce6c810541bc | 1,714 | cpp | C++ | Geometry/IndexedTriangleSet.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | 1 | 2021-09-18T12:50:35.000Z | 2021-09-18T12:50:35.000Z | Geometry/IndexedTriangleSet.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | Geometry/IndexedTriangleSet.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | /*
* IndexedTriangleSet.cpp
*
* Created on: 05.12.2013
* Author: baudenri_local
*/
#include <Geometry/IndexedTriangleSet.h>
#include <OgreMeshManager.h>
#include <GeoShape/Utils.h>
#include <core/OgreMeshAdapter.h>
#include <Geometry/Coordinate.h>
#include <Geometry/Normal.h>
#include <Geometry/TextureCo... | 27.206349 | 140 | 0.668611 | jess22664 |
6fcd87b0927704405b0eb4b5ed459d89104fe197 | 1,924 | cpp | C++ | android-28/android/bluetooth/BluetoothSocket.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/bluetooth/BluetoothSocket.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/bluetooth/BluetoothSocket.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./BluetoothDevice.hpp"
#include "../../java/io/InputStream.hpp"
#include "../../java/io/OutputStream.hpp"
#include "./BluetoothSocket.hpp"
namespace android::bluetooth
{
// Fields
jint BluetoothSocket::TYPE_L2CAP()
{
return getStaticField<jint>(
"android.bluetooth.BluetoothSocket",
"TYPE_L2CAP"
... | 18.862745 | 77 | 0.685551 | YJBeetle |
6fdf2bc882a887b3e119b39b441bdede59686ee5 | 4,384 | cpp | C++ | src/Headers.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2019-02-21T06:21:48.000Z | 2022-02-22T08:01:24.000Z | src/Headers.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 2 | 2018-02-04T20:16:46.000Z | 2018-02-04T20:19:00.000Z | src/Headers.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2018-10-15T10:17:00.000Z | 2022-02-17T02:28:51.000Z | //
// Created by Good_Pudge.
//
#include <iostream>
#include <iomanip>
#include <sstream>
#include <algorithm>
#include <ohf/Headers.hpp>
#include <ohf/Exception.hpp>
#include <ohf/RangeException.hpp>
#include "util/string.hpp"
#include "util/util.hpp"
namespace ohf {
Headers::Headers(const std::map<std::string, ... | 30.234483 | 106 | 0.535812 | Good-Pudge |
6fe0979360862ec103ae24d67f2b27f5daa5e1f5 | 12,960 | hpp | C++ | include/algorithm/concurrent/concurrent_vector.hpp | chill-nemesis/horizon_algorithm | 8514125ac8cf4e16259fc0c9460f7d4248312ca7 | [
"Zlib"
] | null | null | null | include/algorithm/concurrent/concurrent_vector.hpp | chill-nemesis/horizon_algorithm | 8514125ac8cf4e16259fc0c9460f7d4248312ca7 | [
"Zlib"
] | null | null | null | include/algorithm/concurrent/concurrent_vector.hpp | chill-nemesis/horizon_algorithm | 8514125ac8cf4e16259fc0c9460f7d4248312ca7 | [
"Zlib"
] | null | null | null | //
// @brief
// @details
// @author Steffen Peikert (ch3ll)
// @email Horizon@ch3ll.com
// @version 1.0.0
// @date 01/01/2020 13:58
// @project Horizon
//
#pragma once
#include "concurrent_base.hpp"
#include <vector>
#include <algorithm>
namespace HORIZON::ALGORITHM::CONCURRENT
{
/*!
* @ingroup g... | 34.468085 | 147 | 0.585494 | chill-nemesis |
6fe1123e3f47a5e96f96c46837d280f95880cf38 | 2,793 | cpp | C++ | Leetcode/L146.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | 8 | 2021-02-14T01:48:09.000Z | 2022-01-29T09:12:55.000Z | Leetcode/L146.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | Leetcode/L146.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | // 146. LRU 缓存机制
#include <vector>
#include <iostream>
#include <queue>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <functional>
#include <stack>
#include <cmath>
using namespace std;
const int MAX_VALUE = 0x7FFFFFFF, MIN_VALUE = 0x80000000, INF = 0x3F3F3F3F, MOD = 1E9 + 7;
#define fastio io... | 23.275 | 90 | 0.570354 | yanjinbin |
6fe14e6833dcc4759c20af194573d03244a5ca90 | 15,619 | cpp | C++ | avs/vis_avs/r_transition.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 33 | 2019-01-28T03:32:17.000Z | 2022-02-12T18:17:26.000Z | avs/vis_avs/r_transition.cpp | visbot/vis_avs_dx | 03e55f8932a97ad845ff223d3602ff2300c3d1d4 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs/vis_avs/r_transition.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | /*
LICENSE
-------
Copyright 2005 Nullsoft, Inc.
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 a... | 26.790738 | 172 | 0.600679 | Const-me |
6fe203e5f0d5412ecaac18c0901295b10e28142e | 1,171 | cpp | C++ | src/armnn/backends/RefWorkloads/RefFullyConnectedFloat32Workload.cpp | Air000/armnn_s32v | ec3ee60825d6b7642a70987c4911944cef7a3ee6 | [
"MIT"
] | 1 | 2019-03-19T08:44:28.000Z | 2019-03-19T08:44:28.000Z | src/armnn/backends/RefWorkloads/RefFullyConnectedFloat32Workload.cpp | Air000/armnn_s32v | ec3ee60825d6b7642a70987c4911944cef7a3ee6 | [
"MIT"
] | null | null | null | src/armnn/backends/RefWorkloads/RefFullyConnectedFloat32Workload.cpp | Air000/armnn_s32v | ec3ee60825d6b7642a70987c4911944cef7a3ee6 | [
"MIT"
] | 1 | 2019-10-11T05:58:56.000Z | 2019-10-11T05:58:56.000Z | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "RefFullyConnectedFloat32Workload.hpp"
#include "FullyConnected.hpp"
#include "RefWorkloadUtils.hpp"
#include "Profiling.hpp"
namespace armnn
{
void RefFullyConnectedFloat32Worklo... | 30.815789 | 115 | 0.69257 | Air000 |
6fe460882832275af6988e4e6ad433e38edddeaa | 184 | hh | C++ | src/network/simple_router.hh | zzunny97/Graduate-Velox | d820e7c8cee52f22d7cd9027623bd82ca59733ca | [
"Apache-2.0"
] | 17 | 2016-11-27T13:13:40.000Z | 2021-09-07T06:42:25.000Z | src/network/simple_router.hh | zzunny97/Graduate-Velox | d820e7c8cee52f22d7cd9027623bd82ca59733ca | [
"Apache-2.0"
] | 22 | 2017-01-18T06:10:18.000Z | 2019-05-15T03:49:19.000Z | src/network/simple_router.hh | zzunny97/Graduate-Velox | d820e7c8cee52f22d7cd9027623bd82ca59733ca | [
"Apache-2.0"
] | 5 | 2017-07-24T15:19:32.000Z | 2022-02-19T09:11:01.000Z | #pragma once
#include "router.hh"
namespace eclipse {
//
class SimpleRouter: public Router {
public:
void on_read(messages::Message*, Channel*) override;
};
} /* eclipse */
| 14.153846 | 56 | 0.673913 | zzunny97 |
6fe4b7b2c20f22365fb5e0a4cdb3d09fd396c4fd | 10,419 | cc | C++ | proc/binfmt/elf.cc | PoisonNinja/quark | 0cc2b8191f0c5cbd856caac688bfdac54a7d3369 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 3 | 2019-08-01T03:16:31.000Z | 2022-02-17T06:52:26.000Z | proc/binfmt/elf.cc | PoisonNinja/quark | 0cc2b8191f0c5cbd856caac688bfdac54a7d3369 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 32 | 2018-03-26T20:10:44.000Z | 2020-07-13T03:01:42.000Z | proc/binfmt/elf.cc | PoisonNinja/quark | 0cc2b8191f0c5cbd856caac688bfdac54a7d3369 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 1 | 2018-08-29T21:31:06.000Z | 2018-08-29T21:31:06.000Z | #include <arch/mm/layout.h>
#include <errno.h>
#include <kernel.h>
#include <kernel/init.h>
#include <lib/string.h>
#include <mm/physical.h>
#include <mm/virtual.h>
#include <proc/binfmt/binfmt.h>
#include <proc/binfmt/elf.h>
#include <proc/process.h>
#include <proc/sched.h>
#include <proc/uthread.h>
extern "C" void s... | 38.025547 | 80 | 0.562914 | PoisonNinja |
6fe637ead03efcd628decb7955efac53f46d9514 | 383 | cpp | C++ | src/World/Chunk.cpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | null | null | null | src/World/Chunk.cpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | null | null | null | src/World/Chunk.cpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | null | null | null | //
// Created by Jeromy Black on 12/25/20.
//
#include "Chunk.h"
#include "Quad.h"
#include <cmath>
#include "World.h"
void Chunk::generate()
{
}
Chunk::~Chunk()
{
}
Chunk::Chunk(vec3 p)
{
}
BlockType *** Chunk::allocateChunk()
{
}
void Chunk::setBlock(BlockType b_type, vec3 &pos, bool *neighbors)
{
}
void ... | 8.704545 | 66 | 0.637076 | olesgedz |
6fe77d1b707b8ee15c86e5a5efcc960f716ed616 | 578 | cpp | C++ | 201411_201509/0523_ABC024/ABC024_D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 201411_201509/0523_ABC024/ABC024_D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 201411_201509/0523_ABC024/ABC024_D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #include <iostream>
using namespace std;
const int W = 1000000007;
const int M = 1000000007;
typedef long long ll;
ll inv(ll i) {
if (i == 1) return 1;
return ((M - inv(M%i)) * (M/i))%M;
}
int main() {
ll x, y, z;
cin >> x >> y >> z;
ll r, c;
if (x%M != 0) { // xはMの倍数にならない。
ll A = (((y + M - x)%M) *... | 18.0625 | 45 | 0.408304 | kazunetakahashi |
6ff063624c694db88a430d8a31c3cf77bc96a1b6 | 210 | cpp | C++ | hello-cpp-world.cpp | AlanU/cppmsgSamples | 8b4688dd3a67ae07e9b48d7c0015238aa2221c03 | [
"MIT"
] | 1 | 2016-03-05T02:39:54.000Z | 2016-03-05T02:39:54.000Z | hello-cpp-world.cpp | AlanU/cppmsgSamples | 8b4688dd3a67ae07e9b48d7c0015238aa2221c03 | [
"MIT"
] | null | null | null | hello-cpp-world.cpp | AlanU/cppmsgSamples | 8b4688dd3a67ae07e9b48d7c0015238aa2221c03 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include "test.h"
//alan uthoff
int main() {
std::unique_ptr<interface> iptr(new anotherClass());
iptr->foo();
std::cout << "Hello World!" << std::endl;
}
| 14 | 56 | 0.614286 | AlanU |
6ff26909776df94c86d919824a44170597aafe5a | 370 | cpp | C++ | Engine/Source/Sapphire/Rendering/Framework/Primitives/Mesh/IMesh.cpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | 2 | 2020-03-18T09:06:21.000Z | 2020-04-09T00:07:56.000Z | Engine/Source/Sapphire/Rendering/Framework/Primitives/Mesh/IMesh.cpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | Engine/Source/Sapphire/Rendering/Framework/Primitives/Mesh/IMesh.cpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | // Copyright 2020 Sapphire development team. All Rights Reserved.
#include <Rendering/Framework/Primitives/Mesh/IMesh.hpp>
namespace Sa
{
std::shared_ptr<VertexLayout> IMesh::GetLayout() const noexcept
{
return mLayout;
}
void IMesh::Create(const IRenderInstance& _instance, const RawMesh& _rawMesh)
{
(void)... | 20.555556 | 78 | 0.748649 | SapphireSuite |
6ff830f863310e6a993de60c280d1f1848695db4 | 2,480 | cpp | C++ | competitive programming/leetcode/40. Combination Sum II.cpp | sureshmangs/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/leetcode/40. Combination Sum II.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/leetcode/40. Combination Sum II.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | Given a collection of candidate numbers (candidates) and a target number (target),
find all unique combinations in candidates where the candidate numbers sums to target.
Each number in candidates may only be used once in the combination.
Note:
All numbers (including target) will be positive integers.
The solution se... | 22.342342 | 130 | 0.572984 | sureshmangs |
6ff87760e9ee770cccc4d350f1ede176dddb1d5e | 5,129 | cpp | C++ | Core/MaquetteGrid/MaquetteGridTabsList.cpp | Feldrise/SieloNavigateurBeta | faa5fc785271b49d26237a5e9985d6fa22565076 | [
"MIT"
] | 89 | 2018-04-26T14:28:13.000Z | 2019-07-03T03:58:17.000Z | Core/MaquetteGrid/MaquetteGridTabsList.cpp | inviu/webBrowser | 37b24eded2e168e43b3f9c9ccc0487ee59410332 | [
"MIT"
] | 51 | 2018-04-26T12:43:00.000Z | 2019-04-24T20:39:59.000Z | Core/MaquetteGrid/MaquetteGridTabsList.cpp | inviu/webBrowser | 37b24eded2e168e43b3f9c9ccc0487ee59410332 | [
"MIT"
] | 34 | 2018-05-11T07:09:36.000Z | 2019-04-19T08:12:40.000Z | /***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... | 34.422819 | 112 | 0.639111 | Feldrise |
6ff9d2b4007c3ca544714c1b20eb92ba30df4fc8 | 1,346 | cpp | C++ | audio/XaDevice.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | audio/XaDevice.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | audio/XaDevice.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "XaDevice.hpp"
#include "XaSystem.hpp"
#include "XaBufferedSound.hpp"
#include "XaStreamedSound.hpp"
#include "Source.hpp"
#include "../File.hpp"
#include "../Exception.hpp"
BEGIN_INANITY_AUDIO
XaDevice::XaDevice(ptr<XaSystem> system, IXAudio2MasteringVoice* voice)
: system(system), voice(voice)
{
if(FAILED... | 19.794118 | 86 | 0.755572 | quyse |
6ffb05ca413a62c1cb0c9b5fc326f725599c06e0 | 805 | hpp | C++ | include/parsers/std_restoration_plan_parser.hpp | fhamonic/landscape_opt | 7f32749336590c8d8b5875300228196a05137267 | [
"BSL-1.0"
] | 1 | 2021-09-23T11:56:09.000Z | 2021-09-23T11:56:09.000Z | include/parsers/std_restoration_plan_parser.hpp | fhamonic/landscape_opt | 7f32749336590c8d8b5875300228196a05137267 | [
"BSL-1.0"
] | null | null | null | include/parsers/std_restoration_plan_parser.hpp | fhamonic/landscape_opt | 7f32749336590c8d8b5875300228196a05137267 | [
"BSL-1.0"
] | 1 | 2022-03-27T16:58:19.000Z | 2022-03-27T16:58:19.000Z | #ifndef STD_RESTORATION_PLAN_PARSER_HPP
#define STD_RESTORATION_PLAN_PARSER_HPP
#include <fstream>
#include <iostream>
#include "parsers/concept/parser.hpp"
#include "solvers/concept/restoration_plan.hpp"
#include "landscape/mutable_landscape.hpp"
class StdRestorationPlanParser
: public concepts::Parser<Restora... | 29.814815 | 77 | 0.765217 | fhamonic |
6ffcc979caaf76ecad0985ac2ce959d43b5e53da | 101 | cpp | C++ | App/main.cpp | frinkr/FontViewer | 69b5706e557ecd33515c5c8d6ba8fc1d6f06e0c0 | [
"MIT"
] | 2 | 2019-05-08T06:31:34.000Z | 2020-08-30T00:35:09.000Z | App/main.cpp | frinkr/FontViewer | 69b5706e557ecd33515c5c8d6ba8fc1d6f06e0c0 | [
"MIT"
] | 1 | 2018-05-07T09:29:02.000Z | 2018-05-07T09:29:02.000Z | App/main.cpp | frinkr/FontViewer | 69b5706e557ecd33515c5c8d6ba8fc1d6f06e0c0 | [
"MIT"
] | 2 | 2018-09-10T07:16:28.000Z | 2022-01-07T06:41:01.000Z | #include "UI-Qt/QXMain.h"
int main(int argc, char *argv[])
{
return qxMain(argc, argv);
}
| 14.428571 | 33 | 0.594059 | frinkr |
6ffceefa6e7803ed93b15517ee87ea64714a6c48 | 1,112 | hpp | C++ | src/rage/RageVector4.hpp | MidflightDigital/stepmania | dbce5016978e5ab51aaa6a4fb21ef2c7ce68e52e | [
"MIT"
] | 7 | 2019-01-06T01:09:55.000Z | 2021-01-21T00:00:19.000Z | src/rage/RageVector4.hpp | MidflightDigital/stepmania | dbce5016978e5ab51aaa6a4fb21ef2c7ce68e52e | [
"MIT"
] | 6 | 2020-07-29T17:45:36.000Z | 2020-07-29T18:48:03.000Z | src/rage/RageVector4.hpp | MidflightDigital/stepmania | dbce5016978e5ab51aaa6a4fb21ef2c7ce68e52e | [
"MIT"
] | 5 | 2019-01-06T01:48:34.000Z | 2021-11-25T21:19:07.000Z | #ifndef RAGE_VECTOR_4_HPP_
#define RAGE_VECTOR_4_HPP_
#include "RageMatrix.hpp"
namespace Rage
{
struct Vector4
{
public:
Vector4();
Vector4(float a, float b, float c, float d);
// assignment operators
Vector4& operator += (Vector4 const & rhs);
Vector4& operator -= (Vector4 const & rhs);
Vector4& operator *=... | 16.848485 | 64 | 0.669065 | MidflightDigital |
6fff743f52037428515a9c7466ba20d88e6416d6 | 882 | cpp | C++ | old application/application/src/ReSyLib/periphery/actor/servo.cpp | deeply-embedded/Servo | 606b13cd079337dd5bba50827b623561fc578cae | [
"CC0-1.0"
] | null | null | null | old application/application/src/ReSyLib/periphery/actor/servo.cpp | deeply-embedded/Servo | 606b13cd079337dd5bba50827b623561fc578cae | [
"CC0-1.0"
] | null | null | null | old application/application/src/ReSyLib/periphery/actor/servo.cpp | deeply-embedded/Servo | 606b13cd079337dd5bba50827b623561fc578cae | [
"CC0-1.0"
] | 1 | 2021-04-25T18:26:05.000Z | 2021-04-25T18:26:05.000Z | /*
* servo.cpp
*
* @date 26.10.2015
* @author Yannic, Moritz
*/
#include "../../GPIO.h"
#include "../../GPIO_PWM.h"
#include "../../HWManager.h"
#include "./Servo.h"
namespace RSL {
using namespace RSL_core;
Servo::Servo(GPIOPin servoPin) {
currentPosition = 0;
this->servoPin = move(unique_ptr<GPI... | 18 | 138 | 0.684807 | deeply-embedded |
b50f9b098e9f566843e4ae8a82a24d6b0757046f | 15,776 | cpp | C++ | src/cpp/IdpRouter.cpp | VitalElement/IdpProtocol | 323531da023d853ddb59794d225fb7e39c0a6943 | [
"MIT"
] | 2 | 2018-10-02T19:06:41.000Z | 2019-03-14T02:20:08.000Z | src/cpp/IdpRouter.cpp | VitalElement/IdpProtocol | 323531da023d853ddb59794d225fb7e39c0a6943 | [
"MIT"
] | null | null | null | src/cpp/IdpRouter.cpp | VitalElement/IdpProtocol | 323531da023d853ddb59794d225fb7e39c0a6943 | [
"MIT"
] | null | null | null | // Copyright (c) VitalElement. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for
// full license information.
#include "IdpRouter.h"
#include "Trace.h"
#include <algorithm>
static constexpr uint16_t AdaptorNone = 0xFFFF;
IdpRouter::IdpRouter () : IdpNode (RouterGuid, ... | 25.363344 | 80 | 0.532961 | VitalElement |
b510d0a4baa3254512143d4c07ab1e834f345756 | 2,887 | hpp | C++ | vlite/unary_expr_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | vlite/unary_expr_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | vlite/unary_expr_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | #ifndef VLITE_UNARY_EXPR_VECTOR_HPP_INCLUDED
#define VLITE_UNARY_EXPR_VECTOR_HPP_INCLUDED
#include <vlite/common_vector_base.hpp>
#include <vlite/expr_vector.hpp>
#include <iterator>
namespace vlite
{
template <typename It, typename Op>
class unary_expr_vector : public expr_vector<Op>,
pub... | 26.486239 | 88 | 0.694146 | verri |
b5123bacd97fe3c650cce1e935f920257fedf47f | 4,742 | cpp | C++ | naive_sol/sensornode.cpp | acse-qq219/Optimal_Drone_Recharging_Scheduling | 6c86a0bc7dd835f30eb70b108365bcf762ecc228 | [
"MIT"
] | 1 | 2022-03-06T15:27:17.000Z | 2022-03-06T15:27:17.000Z | naive_sol/sensornode.cpp | acse-qq219/Optimal_Drone_Recharging_Scheduling | 6c86a0bc7dd835f30eb70b108365bcf762ecc228 | [
"MIT"
] | null | null | null | naive_sol/sensornode.cpp | acse-qq219/Optimal_Drone_Recharging_Scheduling | 6c86a0bc7dd835f30eb70b108365bcf762ecc228 | [
"MIT"
] | null | null | null | /*! @file sensornode.cpp
*
* @warning This is the internal source of the ODP project.
* Do not use it directly in other code. Please note that this file
* is based on the open source code from
* <a href="https://github.com/achu6393/dynamicWeightedClustering">
* dynamicWeightedClustering
* </a>
* Copyright... | 32.479452 | 84 | 0.613454 | acse-qq219 |
b51a8f1adb0f5acbf5cfb94ec3226c522b8c0722 | 874 | cpp | C++ | P1/b.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | 1 | 2019-12-01T01:37:56.000Z | 2019-12-01T01:37:56.000Z | P1/b.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | P1/b.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
const int maxn = 30000 + 10;
const int maxm = 500 + 10;
int fa[maxn];
void init_union(int n){
for (int i=0;i<n;i++) fa[i] = i;
}
int find(int x){
if (fa[x]==x) return fa[x];
return fa[x] = find(fa[x]);
}
// int find(int x){
// if (x... | 19 | 56 | 0.475973 | SsorryQaQ |
dde22cdfbbd3a7aeaa6e8b4f0934ce03087ae490 | 76,933 | cpp | C++ | daemon/src/vpn.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | 1 | 2020-09-08T00:41:27.000Z | 2020-09-08T00:41:27.000Z | daemon/src/vpn.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | null | null | null | daemon/src/vpn.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 London Trust Media Incorporated
//
// This file is part of the Private Internet Access Desktop Client.
//
// The Private Internet Access Desktop Client 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 Softwa... | 38.543587 | 227 | 0.626805 | realrasengan |
dde53c0d51fee5b89cc1de9cf7ce3266b65310d8 | 2,167 | cpp | C++ | UnitManager.cpp | Kodeman010/TurnBasedStrategy | 3a9cd195552dd30cd024322b347d529c87c3597d | [
"Zlib"
] | 1 | 2019-11-17T22:31:11.000Z | 2019-11-17T22:31:11.000Z | UnitManager.cpp | Kodeman010/TurnBasedStrategy | 3a9cd195552dd30cd024322b347d529c87c3597d | [
"Zlib"
] | null | null | null | UnitManager.cpp | Kodeman010/TurnBasedStrategy | 3a9cd195552dd30cd024322b347d529c87c3597d | [
"Zlib"
] | null | null | null | #include <fstream>
#include <sstream>
#include "UnitManager.h"
#include "Unit.h"
#include "GameState.h"
#include "GameMap.h"
UnitManager::UnitManager(GameState *gameState)
{
this->gameState = gameState;
}
Unit* UnitManager::FindByPosition(sf::Vector2f position)
{
for (int i = 0; i < units.size(); ++i)... | 22.572917 | 92 | 0.602677 | Kodeman010 |
ddedfd68e1f4213a57caff436cb28f74bbad86c9 | 2,086 | cpp | C++ | android-31/java/text/CollationElementIterator.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/text/CollationElementIterator.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/text/CollationElementIterator.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JIntArray.hpp"
#include "../../JString.hpp"
#include "../lang/StringBuffer.hpp"
#include "./RuleBasedCollator.hpp"
#include "./CollationElementIterator.hpp"
namespace java::text
{
// Fields
jint CollationElementIterator::NULLORDER()
{
return getStaticField<jint>(
"java.text.CollationElementIter... | 18.460177 | 85 | 0.675935 | YJBeetle |
ddf1a54d7bd8f520010f7bf14893b7f49c3bccbf | 788 | cpp | C++ | hyper/src/hyper/ast/expressions/binary_expression.cpp | HyperionOrg/HyperLang | 30f7a1707d00fb5cc6dc22913764389a3b998f09 | [
"MIT"
] | null | null | null | hyper/src/hyper/ast/expressions/binary_expression.cpp | HyperionOrg/HyperLang | 30f7a1707d00fb5cc6dc22913764389a3b998f09 | [
"MIT"
] | null | null | null | hyper/src/hyper/ast/expressions/binary_expression.cpp | HyperionOrg/HyperLang | 30f7a1707d00fb5cc6dc22913764389a3b998f09 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2022-present, SkillerRaptor <skillerraptor@protonmail.com>
*
* SPDX-License-Identifier: MIT
*/
#include "hyper/ast/expressions/binary_expression.hpp"
namespace hyper
{
BinaryExpression::BinaryExpression(
SourceRange source_range,
Operation operation,
Expression *left,
Expression *right... | 17.909091 | 75 | 0.727157 | HyperionOrg |
ddf89d2d0aaaf1d235d4cc3fb97bbad7a553a749 | 364 | cpp | C++ | vSRO-GameServer/Silkroad/CRegionManagerBody.cpp | m1xawy/vSRO-ServerAddon | ff7971c4846bbf28e4758bad79cafb64133456bf | [
"MIT"
] | 13 | 2021-07-11T19:41:49.000Z | 2022-03-14T23:43:55.000Z | vSRO-GameServer/Silkroad/CRegionManagerBody.cpp | m1xawy/vSRO-ServerAddon | ff7971c4846bbf28e4758bad79cafb64133456bf | [
"MIT"
] | 10 | 2021-07-12T21:41:03.000Z | 2022-02-08T16:56:55.000Z | vSRO-GameServer/Silkroad/CRegionManagerBody.cpp | m1xawy/vSRO-ServerAddon | ff7971c4846bbf28e4758bad79cafb64133456bf | [
"MIT"
] | 11 | 2021-07-12T13:05:09.000Z | 2022-03-10T02:11:59.000Z | #include "CRegionManagerBody.h"
CRegionManagerBody* CRegionManagerBody::GetInstance()
{
return *reinterpret_cast<CRegionManagerBody**>(0x400000 + 0x8C387C);
}
bool CRegionManagerBody::ResolveCellAndHeight(NavInfo* NavInfoPtr)
{
return reinterpret_cast<bool(__thiscall*)(CRegionManagerBody*, NavInfo*, int)>(0x400000 ... | 33.090909 | 131 | 0.796703 | m1xawy |
ddfa6b005f4d0f9449adf8375cc1ad67fb1545bc | 435 | cpp | C++ | git_C++/SET I/Prob3/main.cpp | soryncrash13/old-C-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | 1 | 2017-09-30T09:58:07.000Z | 2017-09-30T09:58:07.000Z | git_C++/SET I/Prob3/main.cpp | sorinmiroiu97/old-CPP-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | null | null | null | git_C++/SET I/Prob3/main.cpp | sorinmiroiu97/old-CPP-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int x,y,aux;
cout << "Introduceti primul numar:";cin >> x;
cout << "Introduceti al doilea numar:";cin >> y;
cout << "Primul numar este: " << x << endl;
cout << "Al doilea numar este: " << y << endl;
aux=y;
y=x;
x=aux;... | 19.772727 | 88 | 0.514943 | soryncrash13 |
ddfb799da4aea8441793b32182d314d95a5b8df2 | 2,105 | cpp | C++ | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p1Follow.cpp | polarpathgames/Polar-Path | cf0eed03bbd6478c4fdd1eb074f48a2ceb78e0d6 | [
"MIT"
] | 9 | 2019-03-05T07:26:04.000Z | 2019-10-09T15:57:45.000Z | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p1Follow.cpp | polarpathgames/Polar-Path | cf0eed03bbd6478c4fdd1eb074f48a2ceb78e0d6 | [
"MIT"
] | 114 | 2019-03-10T09:35:12.000Z | 2019-06-10T21:39:12.000Z | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p1Follow.cpp | polarpathgames/Polar-Path | cf0eed03bbd6478c4fdd1eb074f48a2ceb78e0d6 | [
"MIT"
] | 3 | 2019-02-25T16:12:40.000Z | 2019-11-19T20:48:06.000Z | #include "p1Follow.h"
#include "p1Particle.h"
#include "m1Render.h"
#include "App.h"
#include "p2Log.h"
p1Follow::p1Follow(e1Entity* element, iPoint* object, SDL_Rect initial_rect, iPoint area, iPoint timelife, int num_textures, int num_particles, bool active, bool mouse, const iPoint& offset):
area(area), number_par... | 20.637255 | 191 | 0.674584 | polarpathgames |
ddfda440e98ee8b0e70e5fef9bc7bd8615bbcaaf | 1,148 | cpp | C++ | test/src/ConcurrentQueueTest.cpp | rsitko92/thread-pool | 997281de2978acf6527ebfa725f9326b210988c8 | [
"MIT"
] | 1 | 2020-12-18T02:18:20.000Z | 2020-12-18T02:18:20.000Z | test/src/ConcurrentQueueTest.cpp | rsitko92/thread-pool | 997281de2978acf6527ebfa725f9326b210988c8 | [
"MIT"
] | null | null | null | test/src/ConcurrentQueueTest.cpp | rsitko92/thread-pool | 997281de2978acf6527ebfa725f9326b210988c8 | [
"MIT"
] | null | null | null | #include "ConcurrentQueue.hpp"
#include "gtest/gtest.h"
#include <memory>
#include <vector>
namespace
{
using namespace thread_pool;
using namespace ::testing;
}
class ConcurrentQueueTest : public Test
{
protected:
using ItemType = std::unique_ptr<int>;
void addItemToQueue(int value)
{
auto item = std:... | 19.133333 | 58 | 0.714286 | rsitko92 |
ddffd821da3bb3b3e5cc5377a21423beb20b3a7d | 322 | cpp | C++ | Easy/Add_digits.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | 1 | 2021-11-21T16:04:59.000Z | 2021-11-21T16:04:59.000Z | Easy/Add_digits.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | Easy/Add_digits.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | class Solution {
public:
int addDigits(int num) {
int result;
if (num == 0)
{
result = 0;
}
else if (num % 9 == 0)
{
result = 9;
}
else
{
result = num % 9;
}
cout<<result;
return result;
}
... | 16.1 | 29 | 0.350932 | AnanyaDas162 |
ddfff1a42a80156c33e7392f7f64e1343ca1b7ec | 181 | cc | C++ | apps/cinder_app_main.cc | aadarshkrishnan/CinderChess | 5b055f000f96814081f0404a9e010b30e5e430d3 | [
"MIT"
] | null | null | null | apps/cinder_app_main.cc | aadarshkrishnan/CinderChess | 5b055f000f96814081f0404a9e010b30e5e430d3 | [
"MIT"
] | null | null | null | apps/cinder_app_main.cc | aadarshkrishnan/CinderChess | 5b055f000f96814081f0404a9e010b30e5e430d3 | [
"MIT"
] | null | null | null | #include "game.h"
using chess::Game;
void prepareSettings(Game::Settings *settings) {
settings->setResizable(false);
}
CINDER_APP(Game, ci::app::RendererGl, prepareSettings); | 20.111111 | 55 | 0.740331 | aadarshkrishnan |
fb000316f4243052b4c8dee45df263553e466391 | 2,634 | cpp | C++ | NamelessEngine/Transform.cpp | mattateusb7/NamelessEngine | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | 2 | 2018-07-19T12:19:08.000Z | 2018-07-20T15:20:32.000Z | NamelessEngine/Transform.cpp | mattateusb7/NamelessEngine-Framework | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | null | null | null | NamelessEngine/Transform.cpp | mattateusb7/NamelessEngine-Framework | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | null | null | null | #include "Transform.h"
_NL::Component::Transform::Transform()
{
}
char* _NL::Component::Transform::getTypeName()
{
return "_NL::Component::Transform";
}
_NL::Component::Transform::~Transform()
{
}
glm::vec3 _NL::Component::Transform::getRotatedForwardVector()
{
return this->transform.QuaternionRotation * this... | 27.4375 | 117 | 0.702354 | mattateusb7 |
fb05bd2fd174037f457dad798be09746603437c1 | 2,628 | cpp | C++ | test/beast/json/key_param.cpp | djarek/BeastLounge | 353b2397cf8507d6e36ed913d6682ae2d827a1ab | [
"BSL-1.0"
] | null | null | null | test/beast/json/key_param.cpp | djarek/BeastLounge | 353b2397cf8507d6e36ed913d6682ae2d827a1ab | [
"BSL-1.0"
] | null | null | null | test/beast/json/key_param.cpp | djarek/BeastLounge | 353b2397cf8507d6e36ed913d6682ae2d827a1ab | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2018-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... | 23.256637 | 79 | 0.521309 | djarek |
fb0f90eb95376d7a47abd46b3b52b37d4f6de9d0 | 6,094 | cpp | C++ | src/modules/entropyMap.cpp | EvilzoneLabs/BinDyn | ddaba9f001ab907aed0e7f719ba647beec2cf182 | [
"MIT"
] | 4 | 2017-06-30T10:46:36.000Z | 2021-04-26T18:25:10.000Z | src/modules/entropyMap.cpp | EvilzoneLabs/BinDyn | ddaba9f001ab907aed0e7f719ba647beec2cf182 | [
"MIT"
] | 1 | 2015-04-13T14:15:13.000Z | 2015-04-13T14:15:13.000Z | src/modules/entropyMap.cpp | EvilzoneLabs/BinDyn | ddaba9f001ab907aed0e7f719ba647beec2cf182 | [
"MIT"
] | null | null | null | /***************************************
* entropyMap.cpp
* Defines the Class declared in entropyMap.h
*
* PreConditions: Program Started, User/File loaded
* Main Use: Scan file generate plot based on entropy
* of windows at specified jump distances.
* jumpsize and windowsize can be played ... | 34.822857 | 110 | 0.637184 | EvilzoneLabs |
fb14f148ccc66fe043318da9d717ba199d77f783 | 322 | cpp | C++ | Class 4 - solve class/J.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-07-10T06:37:52.000Z | 2022-01-03T17:14:21.000Z | Class 4 - solve class/J.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | null | null | null | Class 4 - solve class/J.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-11-23T16:58:45.000Z | 2021-01-06T20:20:57.000Z | #include<bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
#define ll long long
using namespace std;
/*fast io
ios_base::sync_with_stdio(false);
cin.tie(NULL);
*/
int main()
{
fastio;
ll n;
cin>>n;
if(n&1) cout<<(n-1)/2 - n<<endl;
else cout<<n/2<<endl;
return 0;
... | 13.416667 | 61 | 0.621118 | pioneerAlpha |
fb151009dd9ebb97b04faf982ddafaf48deead67 | 570 | cpp | C++ | server/server.cpp | serkanturkkolu/tcpip_abstraction | 2d317abc53c20ea8118449b2878a70c37816a5e4 | [
"MIT"
] | null | null | null | server/server.cpp | serkanturkkolu/tcpip_abstraction | 2d317abc53c20ea8118449b2878a70c37816a5e4 | [
"MIT"
] | null | null | null | server/server.cpp | serkanturkkolu/tcpip_abstraction | 2d317abc53c20ea8118449b2878a70c37816a5e4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "include/tcpip.h"
using namespace std;
int main()
{
TcpIp server(TcpIp::Server);
auto sk = server.socket(8881);
std::cout << "Sock: " << sk << endl;
auto bd=server.bind();
std::cout << "Bind: " << bd << endl;
auto ls = server.listen();
std::cout << "Listened: " ... | 28.5 | 90 | 0.570175 | serkanturkkolu |
fb15ffdcf9a2e30a90cf703e36287f45d6c38259 | 813 | cpp | C++ | CODECHEF/SEPT15/MSTEP/main.cpp | AssemblerTC/Workspace | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | [
"Unlicense"
] | null | null | null | CODECHEF/SEPT15/MSTEP/main.cpp | AssemblerTC/Workspace | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | [
"Unlicense"
] | null | null | null | CODECHEF/SEPT15/MSTEP/main.cpp | AssemblerTC/Workspace | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct RTC{~RTC(){cerr << "Time: " << clock() * 1.0 / CLOCKS_PER_SEC <<" seconds\n";}} runtimecount;
#define DBG(X) cerr << #X << " = " << X << '\n';
#define mp make_pair
#define mt make_tuple
#define pb push_back
#define eb emplace_back
#define sz(x) ((int)(x).size())
#... | 23.911765 | 100 | 0.503075 | AssemblerTC |
fb1ca728d5b325dfd821e546875935bd15f09ae0 | 13,481 | cpp | C++ | src/caffe/layers/pooling_td_layer.cpp | niuchuangnn/Caffe_custom | 9e347d238ffcfb7af0b628230a2feb7ddd98adda | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/pooling_td_layer.cpp | niuchuangnn/Caffe_custom | 9e347d238ffcfb7af0b628230a2feb7ddd98adda | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/pooling_td_layer.cpp | niuchuangnn/Caffe_custom | 9e347d238ffcfb7af0b628230a2feb7ddd98adda | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Niu Chuang on 17-9-26.
//
#include <algorithm>
#include <cfloat>
#include <vector>
#include <cstdio>
#include <iostream>
using namespace std;
#include "caffe/common.hpp"
#include "caffe/layer.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/layers/pooling_td... | 48.318996 | 170 | 0.493509 | niuchuangnn |
fb1f3ba39e49360effb23ec0726334742a50de9b | 730 | cpp | C++ | UI_bar.cpp | SarwanShah/C-Game-Hoshruba | a47da529748a9af8085500757cc8e0b7378b0723 | [
"Apache-2.0"
] | null | null | null | UI_bar.cpp | SarwanShah/C-Game-Hoshruba | a47da529748a9af8085500757cc8e0b7378b0723 | [
"Apache-2.0"
] | null | null | null | UI_bar.cpp | SarwanShah/C-Game-Hoshruba | a47da529748a9af8085500757cc8e0b7378b0723 | [
"Apache-2.0"
] | null | null | null | #include "UI_Bar.h"
UIBar::UIBar(LTexture* textureSheet, SDL_Rect* textureRect, int x_pos, int y_pos, int x_size, int y_size):OnScreenTexture(textureSheet, textureRect, x_pos, y_pos, x_size, y_size)
{
cout << "UI Bar Constructor Called" << endl;
}
UIBar::~UIBar()
{
cout << "UI Bar Destructor Called" ... | 30.416667 | 179 | 0.649315 | SarwanShah |
fb27bf1a2ac1928155aa190a6f01d56edc944ae6 | 1,224 | cpp | C++ | ut/source/test_ck_server_threaded.cpp | dicroce/cppkit | dc64dacacc54665b079836a1bc7d8fb028616ffe | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2015-03-27T21:29:02.000Z | 2016-11-26T23:43:52.000Z | ut/source/test_ck_server_threaded.cpp | dicroce/cppkit | dc64dacacc54665b079836a1bc7d8fb028616ffe | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-01-18T00:32:12.000Z | 2017-01-18T00:32:12.000Z | ut/source/test_ck_server_threaded.cpp | dicroce/cppkit | dc64dacacc54665b079836a1bc7d8fb028616ffe | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-02-08T13:10:27.000Z | 2017-01-18T00:24:47.000Z |
#include "framework.h"
#include "test_ck_server_threaded.h"
#include "cppkit/ck_server_threaded.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <thread>
#include <mutex>
#include <condition_variable>
using namespace std;
using namespace cppkit;
REGISTER_TEST_FIXTURE(test_ck_server_threaded);
... | 17.73913 | 83 | 0.581699 | dicroce |
fb2cbf29e7d0ac35a071e49719271c5ab0e65040 | 4,752 | hpp | C++ | src/cxx/soDebugCallback.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/cxx/soDebugCallback.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/cxx/soDebugCallback.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2018 by Bennet Carstensen
*
* 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, ... | 39.932773 | 79 | 0.590278 | BenSolus |
fb3176843070d5710e32f03208efac74de544d3d | 583 | cpp | C++ | Source/freeze.cpp | bergice/Kingslayer | 21ba00fd0d518369de870fd4eefc61ee25c2821d | [
"MIT"
] | null | null | null | Source/freeze.cpp | bergice/Kingslayer | 21ba00fd0d518369de870fd4eefc61ee25c2821d | [
"MIT"
] | null | null | null | Source/freeze.cpp | bergice/Kingslayer | 21ba00fd0d518369de870fd4eefc61ee25c2821d | [
"MIT"
] | null | null | null | #include "freeze.h"
#include "program.h"
#include "boost\\lexical_cast.hpp"
#include "player.h"
void FreezeThread (void)
{
while(true)
{
for (unsigned i=0; i<program->frozen.size(); i++)
{
if (program->frozen[i].player)
{
time_t now; time(&now);
double seconds = difftime(now, program->frozen[i].... | 19.433333 | 81 | 0.61235 | bergice |
fb3b97eb2c306b3f5217fbbddde03378a8c8d902 | 724 | cpp | C++ | test/misc/shape/numel.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 16 | 2020-11-17T18:25:16.000Z | 2022-03-19T15:12:19.000Z | test/misc/shape/numel.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 6 | 2021-08-17T16:13:46.000Z | 2022-03-04T09:32:48.000Z | test/misc/shape/numel.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | null | null | null | //==================================================================================================
/**
KIWAKU - Containers Well Made
Copyright 2020 Joel FALCOU
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
**/
//=============================================... | 34.47619 | 100 | 0.453039 | jfalcou |
fb3c1f6c5373224f58d4bbb00aff963299aef9ba | 1,237 | cpp | C++ | 8INF259-TP2/ChromoCell.cpp | Hexzhe/8INF259-TP2 | ed72ba14544fdc346b4555e4619f969197735da9 | [
"MIT"
] | null | null | null | 8INF259-TP2/ChromoCell.cpp | Hexzhe/8INF259-TP2 | ed72ba14544fdc346b4555e4619f969197735da9 | [
"MIT"
] | null | null | null | 8INF259-TP2/ChromoCell.cpp | Hexzhe/8INF259-TP2 | ed72ba14544fdc346b4555e4619f969197735da9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ChromoCell.h"
ChromoCell::ChromoCell(ChromoPair* pair1, ChromoPair* pair2, ChromoPair* pair3, ChromoPair* pair4)
{
this->pair1 = pair1;
this->pair2 = pair2;
this->pair3 = pair3;
this->pair4 = pair4;
}
ChromoCell::~ChromoCell()
{
pair1 = pair2 = pair3 = pair4 = nullptr;
delete pair1, ... | 20.616667 | 98 | 0.616815 | Hexzhe |
fb3c5ccc83e27a63a292bd82474580057a543a91 | 1,228 | cpp | C++ | test/Core/TestFPSCounter.cpp | Simmesimme/illusion-3d | 48520d87ea0677bb8852b20bb6fbfbe1a49402d2 | [
"MIT"
] | 8 | 2019-12-05T15:57:23.000Z | 2022-01-19T19:37:23.000Z | test/Core/TestFPSCounter.cpp | Schneegans/illusion | 48520d87ea0677bb8852b20bb6fbfbe1a49402d2 | [
"MIT"
] | null | null | null | test/Core/TestFPSCounter.cpp | Schneegans/illusion | 48520d87ea0677bb8852b20bb6fbfbe1a49402d2 | [
"MIT"
] | 1 | 2019-01-15T10:35:13.000Z | 2019-01-15T10:35:13.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// _) | | _) This code may be used and modified under the terms //
// | | | |... | 40.933333 | 100 | 0.393322 | Simmesimme |
fb40cbad9e88899b1728b6d350345f1de612e631 | 571 | hpp | C++ | generator/translator_geo_objects.hpp | letko-dmitry/omim | 83797b2070e22f8d67f36d9c7e291e31ea2480ea | [
"Apache-2.0"
] | 1 | 2019-05-27T02:45:22.000Z | 2019-05-27T02:45:22.000Z | generator/translator_geo_objects.hpp | Mahmoudabdelmobdy/omim | 1d444650803b27e507b5e9532551d41bab621a53 | [
"Apache-2.0"
] | 1 | 2019-05-14T15:26:55.000Z | 2019-05-16T11:00:33.000Z | generator/translator_geo_objects.hpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "generator/emitter_interface.hpp"
#include "generator/translator.hpp"
#include <memory>
namespace cache
{
class IntermediateDataReader;
} // namespace cache
namespace generator
{
// The TranslatorGeoObjects class implements translator for building geo objects.
// Every GeoObject is either a b... | 23.791667 | 81 | 0.749562 | letko-dmitry |
fb4508c2905a027430aff4310f8a4d30242f7013 | 1,067 | hpp | C++ | src/rynx/application/visualisation/renderer.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/application/visualisation/renderer.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/application/visualisation/renderer.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null |
#pragma once
#include <rynx/tech/ecs.hpp>
#include <memory>
#include <vector>
namespace rynx {
namespace scheduler {
class context;
}
namespace application {
class igraphics_step {
public:
virtual ~igraphics_step() {}
virtual void execute() = 0;
virtual void prepare(rynx::scheduler::context* ctx) ... | 21.34 | 104 | 0.676664 | Apodus |
fb45deee763271822a084fa9a5855da35dd6e95b | 568 | cpp | C++ | _includes/leet524/leet524_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet524/leet524_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet524/leet524_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
string findLongestWord(string s, vector<string>& d) {
string res = "";
for(auto substr:d){
if(substr.size()>res.size()||(substr.size()==res.size()&&substr.compare(res)<0)){
if(match(s,substr)) res = substr;
}
}
return r... | 25.818182 | 93 | 0.466549 | mingdaz |
fb472d40c6458f368f79372fc2a08e9896693141 | 466 | cpp | C++ | src/16000/16471.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/16000/16471.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/16000/16471.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int a[100001], b[100001];
int n;
int solve(int x, int y)
{
if(x>n || y>n) return 0;
if(a[x]<b[y]) return 1+solve(x+1, y+1);
return solve(x, y+1);
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cin>>n;
for(int i=1; i<=n; i++)
c... | 16.068966 | 43 | 0.491416 | upple |
fb47c5b5787b2b6649b7321e072b268928fe13e1 | 1,100 | cpp | C++ | src/char_array_allocator.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | null | null | null | src/char_array_allocator.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | null | null | null | src/char_array_allocator.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | 1 | 2020-04-01T13:36:51.000Z | 2020-04-01T13:36:51.000Z | #include "../include/char_array_allocator.h"
#include <cassert>
namespace pnlog {
CharArrayAllocator::CharArrayAllocator():size_(0) {
}
std::shared_ptr<CharArrayAllocator> CharArrayAllocator::instance() {
static std::shared_ptr<CharArrayAllocator> instance_(new CharArrayAllocator());
return instance_;
}
std::sh... | 24.444444 | 81 | 0.673636 | chloro-pn |
fb4e98fb3839025ace91ec7aedecc9c2ededab59 | 6,359 | cpp | C++ | code-demo/list/list_insert_anywhere-k19lesson3.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | code-demo/list/list_insert_anywhere-k19lesson3.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | code-demo/list/list_insert_anywhere-k19lesson3.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
namespace k19lesson3 {
struct Node {
int dat;
Node *next;
Node *prev;
};
//-------------------------
Node *first(int);
void add(Node **, int);
void add_ref(Node *&, int);
Node *find(Node * const, int);
bool remove(Node **, Node **, int);
Node *insert(Node * ... | 22.710714 | 76 | 0.51722 | kzhereb |
fb5339d48152cd0c96b00caf3d0c202470a4f523 | 923 | cpp | C++ | fpstimer.cpp | alxistn/ar-blackboard | 73263c18d37645180565353316085bbcfe361018 | [
"MIT"
] | 1 | 2016-10-12T12:01:59.000Z | 2016-10-12T12:01:59.000Z | fpstimer.cpp | alxistn/ar-blackboard | 73263c18d37645180565353316085bbcfe361018 | [
"MIT"
] | null | null | null | fpstimer.cpp | alxistn/ar-blackboard | 73263c18d37645180565353316085bbcfe361018 | [
"MIT"
] | null | null | null | #include "cmath"
#include "fpstimer.h"
FPSTimer::FPSTimer(float maxFPS)
: _maxFPS(maxFPS), _minFrameTime((1.0f / maxFPS) * 1000.0f)
{
}
FPSTimer::FPSTimer()
: _maxFPS(0), _minFrameTime(0.0f)
{
}
void FPSTimer::start()
{
_currentTime = SDL_GetTicks();
}
void FPSTimer::update()
{
_oldTime = _currentTi... | 19.229167 | 63 | 0.614301 | alxistn |
fb6298634b7718e8677ff7f2b588c3b56464c602 | 6,909 | cpp | C++ | SmartRockets/SmartRocketsApp.cpp | ElectroBean/SmartRockets | fc4bd2a98b4e59929583f3b9b185401d168d8f7b | [
"MIT"
] | null | null | null | SmartRockets/SmartRocketsApp.cpp | ElectroBean/SmartRockets | fc4bd2a98b4e59929583f3b9b185401d168d8f7b | [
"MIT"
] | null | null | null | SmartRockets/SmartRocketsApp.cpp | ElectroBean/SmartRockets | fc4bd2a98b4e59929583f3b9b185401d168d8f7b | [
"MIT"
] | null | null | null | #include "SmartRocketsApp.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
#include <glm\gtc\random.hpp>
#include <string>
#include <iostream>
SmartRocketsApp::SmartRocketsApp() {
}
SmartRocketsApp::~SmartRocketsApp() {
}
bool SmartRocketsApp::startup() {
m_2dRenderer = new aie::Renderer2D();
// TO... | 26.988281 | 155 | 0.669417 | ElectroBean |
fb67e61e5aa8f3f8640c947438d9de4ad3a4a232 | 542 | cpp | C++ | Chapter 18/stack.cpp | nikhilbadyal/learn-cpp-primer | 48587c4b138d2c26ba56633c8e0f12d9a6dbea38 | [
"MIT"
] | null | null | null | Chapter 18/stack.cpp | nikhilbadyal/learn-cpp-primer | 48587c4b138d2c26ba56633c8e0f12d9a6dbea38 | [
"MIT"
] | null | null | null | Chapter 18/stack.cpp | nikhilbadyal/learn-cpp-primer | 48587c4b138d2c26ba56633c8e0f12d9a6dbea38 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main() {
int opc;
bool aux = true;
cin.exceptions(std::istream::failbit);
do {
try {
cout << "PLEASE INSERT VALUE:" << endl;
cin >> opc;
aux = true;
}
catch (std::ios_base::failure &fail) {
... | 23.565217 | 60 | 0.46679 | nikhilbadyal |
fb6edb931e25578d4b852d21b25c053e70112508 | 1,211 | cpp | C++ | src/nativefunc.cpp | end2endzone/msbuildreorder | 9df4df177092e2ad141692ec7b43eb814b806d9b | [
"MIT"
] | 9 | 2018-12-18T11:56:26.000Z | 2022-01-17T07:51:10.000Z | src/nativefunc.cpp | end2endzone/msbuildreorder | 9df4df177092e2ad141692ec7b43eb814b806d9b | [
"MIT"
] | 15 | 2018-02-09T21:37:10.000Z | 2019-07-20T19:31:41.000Z | src/nativefunc.cpp | end2endzone/msbuildreorder | 9df4df177092e2ad141692ec7b43eb814b806d9b | [
"MIT"
] | 3 | 2018-12-18T11:56:29.000Z | 2022-03-07T09:26:25.000Z | #include "nativefunc.h"
#ifdef WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h> // for Sleep()
#undef min
#undef max
#elif _POSIX_C_SOURCE >= 199309L
#include <time.h> // for nanosleep()
#else
#include <unistd.h> // for usleep()
#endif
namespace nativefu... | 25.229167 | 93 | 0.656482 | end2endzone |
fb71d1db2b1fc0f103665dd2dc91063f7604ba88 | 357 | cc | C++ | other/unordered_map/02.cc | chanchann/workflow_annotation | f986e65af82a91d9257a655ba7a4ece272b89c26 | [
"MIT"
] | 66 | 2021-10-17T11:54:11.000Z | 2022-03-29T13:05:02.000Z | other/unordered_map/02.cc | xjchilli/workflow_annotation | e91795aa91ee6c0d40f1ca0edd7e9c1338479e77 | [
"MIT"
] | 1 | 2021-11-24T18:37:18.000Z | 2021-11-29T12:49:47.000Z | other/unordered_map/02.cc | xjchilli/workflow_annotation | e91795aa91ee6c0d40f1ca0edd7e9c1338479e77 | [
"MIT"
] | 17 | 2021-09-27T03:47:50.000Z | 2022-03-22T08:22:12.000Z | #include <iostream>
#include <unordered_map>
int main()
{
std::unordered_map<std::string, std::string> map;
map["123"] = "abc";
map["4"] = "d";
std::unordered_map<std::string, std::string> map2;
map2 = std::move(map);
for(auto &m : map2)
{
std::cout << m.first << " : " << m.secon... | 18.789474 | 63 | 0.535014 | chanchann |
fb78746f889f253e934aef4eb56c3d66683ec97b | 7,649 | cpp | C++ | test/nse_sequential_test.cpp | ahorn/smt-kit | d163b9a45ddf931820759e14f58f21b808ee7f57 | [
"BSD-3-Clause"
] | 31 | 2015-01-31T03:56:01.000Z | 2021-10-02T09:52:39.000Z | test/nse_sequential_test.cpp | ahorn/smt-kit | d163b9a45ddf931820759e14f58f21b808ee7f57 | [
"BSD-3-Clause"
] | null | null | null | test/nse_sequential_test.cpp | ahorn/smt-kit | d163b9a45ddf931820759e14f58f21b808ee7f57 | [
"BSD-3-Clause"
] | 4 | 2015-01-13T12:32:42.000Z | 2020-10-01T03:03:55.000Z | #include "nse_sequential.h"
// Include <gtest/gtest.h> _after_ "nse_sequential.h.h"
#include "gtest/gtest.h"
using namespace crv;
TEST(NseSequentialTest, Pointer)
{
Internal<char[]> array;
Internal<size_t> index;
index = 1;
array[0] = 'A';
array[1] = 'B';
array[2] = 'C';
Internal<char*> ptr = array;... | 23.46319 | 55 | 0.664139 | ahorn |
fb7ac381dceb1534684779aaaaf56c0826600701 | 9,199 | cpp | C++ | engine/renderer/gf3d_device.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | engine/renderer/gf3d_device.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | engine/renderer/gf3d_device.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | #include "core/gf3d_logger.h"
#include "gf3d_device.h"
#include "gf3d_validations.h"
#include "vulkan_functions.h"
#include "containers/vector.hpp"
void Gf3dDevice::init(Gf3dWindow* window)
{
assert(window);
gf3dWindow = window;
createInstance();
if (isValidationLayersEnabled()) {
setupDebugCallback();
LOGGER_... | 33.695971 | 202 | 0.791608 | ddembner |
fb7ac8ea24cdccaaa589cf3dd339ed894cdea915 | 489 | cpp | C++ | Src/Mcal/X86PC_MSVC/Bsw/Mcal/Wdg/Wdg.cpp | miaozhendaoren/autosar-framework | abcf11970470c082b2137da16e9b1a460e72fd74 | [
"BSL-1.0"
] | 31 | 2016-04-15T13:47:28.000Z | 2022-01-26T17:40:26.000Z | Src/Mcal/X86PC_MSVC/Bsw/Mcal/Wdg/Wdg.cpp | myGiter/autosar-framework | abcf11970470c082b2137da16e9b1a460e72fd74 | [
"BSL-1.0"
] | null | null | null | Src/Mcal/X86PC_MSVC/Bsw/Mcal/Wdg/Wdg.cpp | myGiter/autosar-framework | abcf11970470c082b2137da16e9b1a460e72fd74 | [
"BSL-1.0"
] | 21 | 2016-03-25T10:52:07.000Z | 2022-03-25T22:58:39.000Z | ///////////////////////////////////////////////////////
// Copyright 2013 Stephan Hage.
// Copyright 2013 Christopher Kormanyos.
// Distributed under the Boost
// Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt )
//
#include <Bsw/Mc... | 21.26087 | 56 | 0.638037 | miaozhendaoren |
fb8906fa16c0f99c125ef9fb2cffff43500f6d53 | 10,688 | cpp | C++ | DataStructure/tree/rbt.cpp | CloudHolic/algorithms | cfae9b723e432fd9a84600c2a0082a5412759821 | [
"MIT"
] | null | null | null | DataStructure/tree/rbt.cpp | CloudHolic/algorithms | cfae9b723e432fd9a84600c2a0082a5412759821 | [
"MIT"
] | null | null | null | DataStructure/tree/rbt.cpp | CloudHolic/algorithms | cfae9b723e432fd9a84600c2a0082a5412759821 | [
"MIT"
] | null | null | null | #include <queue>
#include <stack>
#include "rbt.h"
rbt::rbt() : root_(nullptr) {}
rbt:: rbt(const rbt& prev) : root_(nullptr)
{
root_ = copy(prev.root_);
}
rbt::rbt(rbt&& prev) noexcept : root_(nullptr)
{
*this = std::move(prev);
}
rbt::~rbt()
{
internal_clear(root_);
}
rbt& rbt::operator=(const rbt& p... | 21.376 | 96 | 0.490457 | CloudHolic |
fb8976a813c3824c59f2ac5b121126d4a76287f1 | 192 | cpp | C++ | test/transport_test.cpp | quixai/quix-streams | d060dc8898bca807fc71e118cdb8b33a0381318c | [
"Apache-2.0"
] | 5 | 2022-01-24T23:21:09.000Z | 2022-03-07T16:09:18.000Z | test/transport_test.cpp | quixai/quix-streams | d060dc8898bca807fc71e118cdb8b33a0381318c | [
"Apache-2.0"
] | null | null | null | test/transport_test.cpp | quixai/quix-streams | d060dc8898bca807fc71e118cdb8b33a0381318c | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "transport/transport.h"
TEST(blaTest, test1) {
//arrange
Quix::Transport transport(5);
//act
//assert
EXPECT_EQ (transport.get (), 5);
} | 19.2 | 37 | 0.630208 | quixai |
651f174fa5d668cd6576b4259c55d922877df658 | 1,136 | cpp | C++ | core/src/game/base_game.cpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | core/src/game/base_game.cpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | core/src/game/base_game.cpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | #include "game/base_game.hpp"
#include "game/scene.hpp"
namespace engine
{
// Special members
base_game::base_game() noexcept :
m_engine{ *this }
{
}
// Private members
bool base_game::init() noexcept
{
if (!before_run())
{
// todo: error
return false;
}
update(time_ty... | 15.561644 | 62 | 0.606514 | Darckore |
65288b560df5df25e7ef64e3d12cb872ecf1e822 | 2,179 | cxx | C++ | tests/city32.cxx | ogatatsu/consthash | 25b21c8faab85cb19c2f566592f973048e7a250a | [
"MIT"
] | 34 | 2015-01-11T03:33:20.000Z | 2022-01-06T07:00:46.000Z | tests/city32.cxx | ogatatsu/consthash | 25b21c8faab85cb19c2f566592f973048e7a250a | [
"MIT"
] | 1 | 2015-01-25T21:56:38.000Z | 2015-04-23T17:11:32.000Z | tests/city32.cxx | ogatatsu/consthash | 25b21c8faab85cb19c2f566592f973048e7a250a | [
"MIT"
] | 6 | 2015-01-11T03:33:25.000Z | 2022-01-06T07:00:46.000Z |
#include "tests.hxx"
#include <consthash/cityhash32.hxx>
#include <cityhash/city.h>
#define CH_DET_TEST_FUNC_WITH(FUNCNAME, WITH_WHAT) \
TEST(city_utility, FUNCNAME) { WITH_WHAT(FUNCNAME); };
uint32_t Hash32Len0to4(const char *s, size_t len);
uint32_t Hash32Len5to12(const char *s, size_t len);
uint32_t Hash32Len... | 22.697917 | 72 | 0.710418 | ogatatsu |
652f0a10b154cafa2f966c41ee2a8ec914efcbb1 | 42,359 | hpp | C++ | External/Console-Utils_0.1.4/Includes/ConsoleUtils/console-utils.hpp | ReverieWisp/ASCIIPlayer | 678a6957b16fd48a20ff6ed97cba6886cbd5a51c | [
"BSD-3-Clause"
] | 5 | 2018-02-03T19:49:30.000Z | 2020-09-07T12:29:19.000Z | External/Console-Utils_0.1.4/Includes/ConsoleUtils/console-utils.hpp | ReverieWisp/ASCIIPlayer | 678a6957b16fd48a20ff6ed97cba6886cbd5a51c | [
"BSD-3-Clause"
] | 9 | 2018-02-27T06:37:12.000Z | 2020-03-25T05:43:56.000Z | External/Console-Utils_0.1.4/Includes/ConsoleUtils/console-utils.hpp | ReverieWisp/ASCIIPlayer | 678a6957b16fd48a20ff6ed97cba6886cbd5a51c | [
"BSD-3-Clause"
] | 2 | 2018-02-09T06:47:21.000Z | 2019-05-12T07:04:01.000Z | // This is a combination header file that accounts for all sorts of console drawing and whatnot,
// expanding functionality and ease of use of rlutil.h by Tapio Vierros.
//
// Version: 1.4
// Date: Nov. 2016
//
// Console Utils Implementation by:
// Reverie Wisp
// JoShadow
//////////////////////////////////////////... | 25.486763 | 113 | 0.631578 | ReverieWisp |
653614359c1ceabfbcfec1b202ec1f7845cfc577 | 589 | hpp | C++ | test/__mocks__/game/skirmish/gui/skirmishguifactorymock.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | test/__mocks__/game/skirmish/gui/skirmishguifactorymock.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | test/__mocks__/game/skirmish/gui/skirmishguifactorymock.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #ifndef QRWTEST_SKIRMISHGUIFACTORYMOCK_HPP
#define QRWTEST_SKIRMISHGUIFACTORYMOCK_HPP
#include <gmock/gmock.h>
#include "game/skirmish/gui/skirmishguifactory.hpp"
#include "__mocks__/game/skirmish/mapmanagermock.hpp"
class SkirmishGuiFactoryMock : public qrw::SkirmishGuiFactory
{
public:
SkirmishGuiFactoryMock() :... | 26.772727 | 133 | 0.837012 | namelessvoid |
65481e4b4c0f2b7cec93502f2f36162690a5552e | 1,224 | hpp | C++ | graph/mst/Prim.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | 3 | 2021-11-04T08:45:12.000Z | 2021-11-29T08:44:26.000Z | graph/mst/Prim.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | graph/mst/Prim.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | #pragma once
#include "../../other/template.hpp"
#include "../Graph.hpp"
#include "../../data-struct/unionfind/UnionFind.hpp"
template<class T> T Prim(const Graph<T>& G) {
const int N = G.size();
std::vector<bool> seen(N, false); seen[0] = true;
prique<edge<T>> que;
each_const (e : G[0]) que.emplace(e... | 24.979592 | 56 | 0.520425 | shiomusubi496 |
654c7990e3e5e729a8f80bfcf9d1587a523665c5 | 506 | cpp | C++ | chapter1/11.cpp | anatolykabakov/cpp-tasks | 82927d4334e8a0709424b61fe25b9be326244d78 | [
"MIT"
] | null | null | null | chapter1/11.cpp | anatolykabakov/cpp-tasks | 82927d4334e8a0709424b61fe25b9be326244d78 | [
"MIT"
] | null | null | null | chapter1/11.cpp | anatolykabakov/cpp-tasks | 82927d4334e8a0709424b61fe25b9be326244d78 | [
"MIT"
] | null | null | null | /*
Task 11: Write the program to convert m/sec to km/h.
*/
#include <iostream>
constexpr double KMH_TO_METERS_PER_SECONDS = 0.277778;
double convert_velocity_ms_to_kmh(const double velocity_ms) {
return velocity_ms / KMH_TO_METERS_PER_SECONDS;
}
int main() {
double velocity = 0;
std::cout << "Enter the ve... | 29.764706 | 104 | 0.701581 | anatolykabakov |
65511d11524aa0823262709bd7d8276cca1031fb | 10,476 | hpp | C++ | include/fc/io/raw.hpp | SatoshiFantasy/fantasybit | 5fc51cd3c056ce01b661ef5e3fb7dcad130fc9a1 | [
"BSD-3-Clause"
] | 77 | 2015-06-09T14:39:00.000Z | 2022-02-04T07:21:48.000Z | include/fc/io/raw.hpp | SatoshiFantasy/fantasybit | 5fc51cd3c056ce01b661ef5e3fb7dcad130fc9a1 | [
"BSD-3-Clause"
] | 2 | 2018-05-24T11:12:59.000Z | 2018-07-16T05:44:11.000Z | include/fc/io/raw.hpp | SatoshiFantasy/fantasybit | 5fc51cd3c056ce01b661ef5e3fb7dcad130fc9a1 | [
"BSD-3-Clause"
] | 25 | 2016-03-18T17:36:53.000Z | 2021-12-09T15:09:05.000Z | #pragma once
#include <fc/reflect/reflect.hpp>
#include <fc/io/datastream.hpp>
#include <fc/io/varint.hpp>
#include <fc/optional.hpp>
#include <fc/fwd.hpp>
#include <fc/array.hpp>
#include <fc/time.hpp>
#include <fc/io/raw_fwd.hpp>
#include <fc/exception/exception.hpp>
#define MAX_ARRAY_ALLOC_SIZE (1024*1024*10)
nam... | 30.277457 | 113 | 0.546583 | SatoshiFantasy |
65522603ed822726602b0d3b47bbfb4a5dfe99ae | 258 | cpp | C++ | lights/sink.cpp | wherewindblow/lights | 0cc01b34de1cc6e440be4e065048277822c040db | [
"Apache-2.0"
] | 1 | 2020-12-10T12:08:41.000Z | 2020-12-10T12:08:41.000Z | lights/sink.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | lights/sink.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | /**
* sink.cpp
* @author wherewindblow
* @date Feb 16, 2019
*/
#include "sink.h"
namespace lights {
void FormatSink<Sink>::append(std::size_t num, char ch)
{
for (std::size_t i = 0; i < num; ++i)
{
this->append(ch);
}
}
} // namespace lights
| 12.285714 | 55 | 0.596899 | wherewindblow |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.