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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e9ea3fad5eb273a814969d85de6b9cac9cf40c3 | 298 | cpp | C++ | Week 3/Lab/three.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 3/Lab/three.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 3/Lab/three.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
double pow(double, int);
double pow(double a, int p)
{
return a*a;
}
int main()
{
double a = 0.0;
int p = 2;
double sqr;
cout << "enter a number \n";
cin >> a;
sqr = pow(a, p);
cout<<sqr;
return 0;
} | 15.684211 | 33 | 0.506711 | sugamkarki |
6ea425d9fd2792df7c7b08581d667a010f8787e1 | 4,256 | cpp | C++ | src/tag_filter.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-09T12:48:41.000Z | 2019-04-09T12:48:41.000Z | src/tag_filter.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 2 | 2020-05-06T16:22:07.000Z | 2020-05-07T04:02:41.000Z | src/tag_filter.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-10T12:47:11.000Z | 2019-04-10T12:47:11.000Z | /*
* Copyright 2011-2012 Bjorn Fahller <bjorn@fahller.se>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, ... | 30.184397 | 79 | 0.576833 | lsilvest |
6ea5bf156a4dba37ada29723154f73e621d6ff4c | 6,417 | hpp | C++ | libctrpf/include/CTRPluginFramework/System/FwkSettings.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFramework/System/FwkSettings.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFramework/System/FwkSettings.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #ifndef CTRPLUGINFRAMEWORK_SYSTEM_FWKSETTINGS_HPP
#define CTRPLUGINFRAMEWORK_SYSTEM_FWKSETTINGS_HPP
#include "types.h"
#include "CTRPluginFramework/System/Time.hpp"
#include "CTRPluginFramework/Graphics/Color.hpp"
#include "CTRPluginFramework/System/Rect.hpp"
namespace CTRPluginFramework
{
struct PluginHeader ///... | 49.744186 | 176 | 0.611189 | MirayXS |
6ea6252e4be0adf43acc7dbff121bf06fc996531 | 20 | cpp | C++ | src/main.cpp | Blitzman/coding-challenges | 50374949d22397ca6ca174c4532cc8fa4b3944b4 | [
"MIT"
] | null | null | null | src/main.cpp | Blitzman/coding-challenges | 50374949d22397ca6ca174c4532cc8fa4b3944b4 | [
"MIT"
] | null | null | null | src/main.cpp | Blitzman/coding-challenges | 50374949d22397ca6ca174c4532cc8fa4b3944b4 | [
"MIT"
] | null | null | null | int main(void)
{
}
| 4 | 14 | 0.55 | Blitzman |
6ea63a0fe134adf1803afb8e66836b842a15d5d3 | 35,304 | cpp | C++ | BufferUploads/DX11/PlatformInterfaceDX11.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | BufferUploads/DX11/PlatformInterfaceDX11.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | BufferUploads/DX11/PlatformInterfaceDX11.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "../../Core/Prefix.h"
#include "../../RenderCore/Metal/Metal.h"
#if GFXAPI_ACTIVE == GFXAPI_DX11
#include "../PlatformInterface... | 55.949287 | 254 | 0.552232 | alexgithubber |
6ea7f29b9993f15a4fa44bcdfb9acab7c44be80c | 2,414 | c++ | C++ | Code Signal/mostViewedWriters - Quora [Medium].c++ | ammar-sayed-taha/problem-solving | 9677a738c0cc30078f6450f40fcc26ba2a379a8b | [
"MIT"
] | 1 | 2020-02-20T00:04:54.000Z | 2020-02-20T00:04:54.000Z | Code Signal/mostViewedWriters - Quora [Medium].c++ | ammar-sayed-taha/Problem-Solving | c3ef98b8b0ebfbcc31d45990822b81a9dc549fe8 | [
"MIT"
] | null | null | null | Code Signal/mostViewedWriters - Quora [Medium].c++ | ammar-sayed-taha/Problem-Solving | c3ef98b8b0ebfbcc31d45990822b81a9dc549fe8 | [
"MIT"
] | null | null | null | #define vvvi vector<vector<vector<int>>>
#define vvi vector<vector<int>>
#define vi vector<int>
#define umapii map<int, int>
#define umapivi map<int, vi>
#define umapivvi map<int, vvi>
// convert views from vector to map to reduce loop operations later
umapivvi convertViewsToMap(vvi &views){
umapivvi newViews;
... | 28.069767 | 100 | 0.617233 | ammar-sayed-taha |
6eaf5a0fb333f1f5982b45146a98d34d439c6b8a | 6,675 | cpp | C++ | native/poly/baking/xatlas_dump.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | null | null | null | native/poly/baking/xatlas_dump.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 7 | 2021-09-02T05:58:24.000Z | 2022-02-27T07:06:43.000Z | native/poly/baking/xatlas_dump.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 2 | 2020-02-06T02:05:15.000Z | 2021-11-25T11:35:14.000Z | //
// Created by Dado on 2019-05-17.
//
#include "xatlas_dump.hpp"
#include <cstdint>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <stb/stb_image_write.h>
#include <poly/baking/xatlas.h>
static void RandomColor(uint8_t *color)
{
for (int i = 0; i < 3; i++)
color[i] = uint8_t((rand() %... | 46.354167 | 243 | 0.565393 | 49View |
6eb1c84ccc94d25f7489d6c4c37fe1d22c1beac7 | 1,674 | hpp | C++ | src/utils.hpp | RoseLeBlood/aSTLino | 99389fa418efd0589815203adad239b91eaad3ea | [
"MIT"
] | null | null | null | src/utils.hpp | RoseLeBlood/aSTLino | 99389fa418efd0589815203adad239b91eaad3ea | [
"MIT"
] | null | null | null | src/utils.hpp | RoseLeBlood/aSTLino | 99389fa418efd0589815203adad239b91eaad3ea | [
"MIT"
] | null | null | null | /*
* The MIT License
*
* Copyright 2016 annas.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 28.862069 | 80 | 0.676822 | RoseLeBlood |
6eb49188f105bd6204847bcf6648edb3969834fd | 903 | cpp | C++ | datastructure/binarytrie.cpp | firiexp/library | 5b792b1387ed825739d4a83e6dba52ca22f114d2 | [
"CC0-1.0"
] | 1 | 2020-11-06T03:36:03.000Z | 2020-11-06T03:36:03.000Z | datastructure/binarytrie.cpp | firiexp/library | 5b792b1387ed825739d4a83e6dba52ca22f114d2 | [
"CC0-1.0"
] | null | null | null | datastructure/binarytrie.cpp | firiexp/library | 5b792b1387ed825739d4a83e6dba52ca22f114d2 | [
"CC0-1.0"
] | 2 | 2020-11-06T03:39:10.000Z | 2021-04-04T04:38:30.000Z | struct Node {
int val;
Node *nxt[2];
Node() : val(0), nxt{nullptr, nullptr} {}
static int cnt;
/* void *operator new(size_t){
static Node pool[6000000];
return pool + cnt++;
}*/
};
int Node::cnt = 0;
template<class T, size_t X>
struct Binarytrie {
Node *root;
Binarytrie(... | 25.083333 | 58 | 0.462901 | firiexp |
6eb7d54e568c92db19fc4ea39bde61d412260472 | 556 | cpp | C++ | tests/pivate_key_test.cpp | DanilKovalev/cert_verifier | 73c683feef6782f53c9af163741c489b62965094 | [
"MIT"
] | null | null | null | tests/pivate_key_test.cpp | DanilKovalev/cert_verifier | 73c683feef6782f53c9af163741c489b62965094 | [
"MIT"
] | null | null | null | tests/pivate_key_test.cpp | DanilKovalev/cert_verifier | 73c683feef6782f53c9af163741c489b62965094 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include "utils.h"
#include "template_tests.h"
#include "PrivateKey.h"
TEST_CASE( "Private key read", "[priv_key]" )
{
std::string path = "content/key.pem";
std::string pem = read_file(path);
CHECK_THROWS_AS(PrivateKey::from_pem("rubbish"), SslException);
PrivateKey priva... | 23.166667 | 67 | 0.679856 | DanilKovalev |
6ebb61988cc7f2297ec3a66edbc89486deb51559 | 3,587 | hpp | C++ | src/game/include/solver.hpp | kothiga/Tower-of-Hanoi | 5faf18cf3fe64859561091d7f2b3b79c608002f1 | [
"MIT"
] | null | null | null | src/game/include/solver.hpp | kothiga/Tower-of-Hanoi | 5faf18cf3fe64859561091d7f2b3b79c608002f1 | [
"MIT"
] | null | null | null | src/game/include/solver.hpp | kothiga/Tower-of-Hanoi | 5faf18cf3fe64859561091d7f2b3b79c608002f1 | [
"MIT"
] | null | null | null | /* ================================================================================
* Copyright: (C) 2022, SIRRL Social and Intelligent Robotics Research Laboratory,
* University of Waterloo, All rights reserved.
*
* Authors:
* Austin Kothig <austin.kothig@uwaterloo.ca>
*
* CopyPolicy: Released under... | 32.315315 | 86 | 0.37608 | kothiga |
6ebd6fccf89222bd416d3a3b2bbbfd47f92b3f71 | 1,183 | hpp | C++ | include/handlers/avg_costs.hpp | esemeniuc/jetDB | db7faafdfce800a4af39effc509f701212748b0c | [
"MIT"
] | null | null | null | include/handlers/avg_costs.hpp | esemeniuc/jetDB | db7faafdfce800a4af39effc509f701212748b0c | [
"MIT"
] | null | null | null | include/handlers/avg_costs.hpp | esemeniuc/jetDB | db7faafdfce800a4af39effc509f701212748b0c | [
"MIT"
] | null | null | null | #pragma once
#include <requests.hpp>
#include <pqxx/pqxx>
namespace jetdb{
namespace handlers{
responses::result handle_request(pqxx::work& txn, requests::avg_costs req){
pqxx::result result;
std::string kind = req.kind;
std::string select_query = "SELECT prefix, AVG(cost) FROM flight GROUP B... | 30.333333 | 88 | 0.612003 | esemeniuc |
6ec6fa90f25621598c45789194e712103269b9b1 | 235 | hpp | C++ | common/cxx/config_cxx/include/config_cxx/config_and_logger.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/config_cxx/include/config_cxx/config_and_logger.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/config_cxx/include/config_cxx/config_and_logger.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | #pragma once
#include "adstlog_cxx/adstlog.hpp"
#include "config_cxx/config.hpp"
namespace adst::common {
struct ConfigAndLogger
{
const Config config_ = {};
Logger logger_ = {config_};
};
} // namespace adst::common
| 15.666667 | 37 | 0.685106 | csitarichie |
6ec825362066bdcced4432e565a4a2565f8a27a0 | 17,350 | cpp | C++ | src/libtsduck/tsTunerParametersDVBT.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/tsTunerParametersDVBT.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/tsTunerParametersDVBT.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2018, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 39.702517 | 116 | 0.574582 | yrpark99 |
6eca820fa9e44801b8097c72e618d981d96fe50f | 743 | cpp | C++ | ComputationalGeometry/SimpsonIntegral.cpp | xjtuacm/wellgasa-snippets | bd2746bcb235719ac03dd1f725bfcf09f4843998 | [
"MIT"
] | 3 | 2016-09-01T08:20:43.000Z | 2017-05-20T13:22:28.000Z | ComputationalGeometry/SimpsonIntegral.cpp | xjtuacm/wellgasa-snippets | bd2746bcb235719ac03dd1f725bfcf09f4843998 | [
"MIT"
] | null | null | null | ComputationalGeometry/SimpsonIntegral.cpp | xjtuacm/wellgasa-snippets | bd2746bcb235719ac03dd1f725bfcf09f4843998 | [
"MIT"
] | null | null | null | // 自适应辛普森积分
// 依赖
// double f(double x)
// 被积函数
// double simpeps
// 误差限
// 参数
// l 下界
// h 上界
// // 测试
// #include<cmath>
// #include<cstdio>
// const double simpeps = 1e-10;
//
// double f(double x){
// return 1 / x / x;
// }
// 模板代码开始
#include <cmath>
inline double simpson(double l, double h){
... | 17.27907 | 58 | 0.502019 | xjtuacm |
6ecc7b8aa975fff8a1043e5ef150d1b830ed6bb3 | 1,948 | cpp | C++ | src/db.cpp | nathanpc/sheets | 0c311cd090fa4b72339508f05a7ebf2f03ad3a01 | [
"MIT"
] | 3 | 2016-05-24T09:00:12.000Z | 2021-08-20T11:43:17.000Z | src/db.cpp | nathanpc/sheets | 0c311cd090fa4b72339508f05a7ebf2f03ad3a01 | [
"MIT"
] | null | null | null | src/db.cpp | nathanpc/sheets | 0c311cd090fa4b72339508f05a7ebf2f03ad3a01 | [
"MIT"
] | 1 | 2016-05-24T09:00:15.000Z | 2016-05-24T09:00:15.000Z | /**
* db.cpp
* Interacts with the database.
*
* @author Nathan Campos <nathanpc@dreamintech.net>
*/
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <sqlite3.h>
#include "db.h"
using namespace std;
/**
* Empty constructor.
*/
DB::DB() {
}
/**
* Default constructor.
*
* ... | 18.552381 | 71 | 0.63193 | nathanpc |
6ecd7335242ebd333532f3d5f819f582f2200303 | 151 | hpp | C++ | internal/commands/search/search.hpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | internal/commands/search/search.hpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | internal/commands/search/search.hpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | #include "./../helper/helper.hpp"
class Search_Command : public CommandWithArgsInterface
{
public:
void execute_with_params(std::string) const;
}; | 21.571429 | 54 | 0.754967 | YarikRevich |
6ed0c707dc412f5f7378517f2b7e65125f24a074 | 114 | cpp | C++ | hybridapp/gcc/BaseController.cpp | MymyserDemo/gis | 0df3b760163ba8601faaae688828404cd75cde3e | [
"MIT"
] | null | null | null | hybridapp/gcc/BaseController.cpp | MymyserDemo/gis | 0df3b760163ba8601faaae688828404cd75cde3e | [
"MIT"
] | null | null | null | hybridapp/gcc/BaseController.cpp | MymyserDemo/gis | 0df3b760163ba8601faaae688828404cd75cde3e | [
"MIT"
] | null | null | null | #include "BaseController.h"
BaseController::BaseController()
{
}
BaseController::~BaseController()
{
}
| 11.4 | 34 | 0.684211 | MymyserDemo |
6ed229bf4a57f72a834f4fe48d2bedc0e4c049f2 | 13,880 | cpp | C++ | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrComposition.cpp | GeorgViehoever/PCL | c4a4390185db3ccb04471f845d92917cc1bc1113 | [
"JasPer-2.0"
] | null | null | null | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrComposition.cpp | GeorgViehoever/PCL | c4a4390185db3ccb04471f845d92917cc1bc1113 | [
"JasPer-2.0"
] | null | null | null | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrComposition.cpp | GeorgViehoever/PCL | c4a4390185db3ccb04471f845d92917cc1bc1113 | [
"JasPer-2.0"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 02.01.01.0784
// ----------------------------------------------------------------------------
// Standard GradientDomain Process Module Version 00.06.04.0165
// -----... | 37.112299 | 133 | 0.686311 | GeorgViehoever |
6ed4d829de4565c975f938048c88082052482167 | 38 | hpp | C++ | src/boost_mpl_math_is_even.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_math_is_even.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_math_is_even.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/math/is_even.hpp>
| 19 | 37 | 0.763158 | miathedev |
6ed95f8d3ca5cd4fd08c7d4ef29f37b1bde09c50 | 4,477 | cpp | C++ | src/spsc_queue.cpp | borer/awesome-ringbuffer | 6a9bfcb0d1a26a95199a44bf4ab8ed2a64bccc7f | [
"MIT"
] | null | null | null | src/spsc_queue.cpp | borer/awesome-ringbuffer | 6a9bfcb0d1a26a95199a44bf4ab8ed2a64bccc7f | [
"MIT"
] | null | null | null | src/spsc_queue.cpp | borer/awesome-ringbuffer | 6a9bfcb0d1a26a95199a44bf4ab8ed2a64bccc7f | [
"MIT"
] | 1 | 2021-06-21T09:05:49.000Z | 2021-06-21T09:05:49.000Z | #include <cstring>
#include <cassert>
#include "spsc_queue.h"
#include "binutils.h"
//Enable in case setting memory to 0 after read is wanted
//#define ZERO_OUT_READ_MEMORY
SpscQueue::SpscQueue(size_t capacity, size_t maxBatchRead) :
capacity(capacity), maxBatchRead(maxBatchRead)
{
assert(IS_POWER_OF_TWO(capaci... | 30.455782 | 103 | 0.738888 | borer |
6ee01a55a4c7e803f43d9bef274891ceb7a84d80 | 385 | cpp | C++ | 202011/26/_164_MaximumGap.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202011/26/_164_MaximumGap.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202011/26/_164_MaximumGap.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | //
// Created by gyc on 2020/11/26.
//
#include "../../common.h"
class Solution {
public:
int maximumGap(vector<int>& nums) {
sort(nums.begin(), nums.end(),[](int &a, int &b){
return a < b;
});
int res = 0;
for(int i = 1; i < nums.size(); ++i) {
res = max(re... | 20.263158 | 57 | 0.444156 | uaniheng |
6ee3b34dadd4b995435412134a291ab548351091 | 301 | cpp | C++ | acm/shuoj/1037.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/shuoj/1037.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/shuoj/1037.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<iostream>
using namespace std;
int a[7];
int main(){
int ma = 0;int t = 0;
for(int i = 0;i<7;i++){
int c,b;
cin>>c>>b;
a[i] = c+b;
if(a[i]>ma){
ma = a[i];
t = i;
}
}
if(a[t]>8)
cout<<t+1<<endl;
else cout<<0<<endl;
}
| 15.842105 | 27 | 0.398671 | xiaohuihuigh |
6ee8e964faba43746bd18792454f5b2041206b45 | 212 | cpp | C++ | c++/Declaration/Type.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Declaration/Type.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Declaration/Type.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
//-------------------------------------------------------------------
// include
//-------------------------------------------------------------------
#include "Type.hpp"
class Base {
};
| 14.133333 | 70 | 0.141509 | taku-xhift |
6ef1439d2da91e7b8f1a0d59961f6395ef30f705 | 2,052 | cpp | C++ | Patterns Of ALgorithm Coded Examples/8__POA_Multiple_Item_Selction.cpp | CouldYouBeAnyNaugty/ProgFundamentals | fd46c1972f7e129f64478c960c62d6aab8bcc2e7 | [
"MIT"
] | 1 | 2021-02-16T13:40:46.000Z | 2021-02-16T13:40:46.000Z | Patterns Of ALgorithm Coded Examples/8__POA_Multiple_Item_Selction.cpp | threepoint14159265359/ProgFundamentals | fd46c1972f7e129f64478c960c62d6aab8bcc2e7 | [
"MIT"
] | null | null | null | Patterns Of ALgorithm Coded Examples/8__POA_Multiple_Item_Selction.cpp | threepoint14159265359/ProgFundamentals | fd46c1972f7e129f64478c960c62d6aab8bcc2e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
/* SEQUENCE --> SEQUENCE */
///count the even number of elements in a list/array/struct/vector, or whatever
///give me all the even numbers in that list as well.
///the algorithm devised for that purpose would be multiple item selection that says give me... | 27.72973 | 143 | 0.609649 | CouldYouBeAnyNaugty |
6ef1f9a4c895da4c6efed483684c0cd0eff970e2 | 690 | cpp | C++ | ProjCPOA_Init/csg/csgtree.cpp | Yt-trium/Edelweiss | 6b51b29a9eb9e2b9b5aba6625399d8b1a44560a5 | [
"MIT"
] | null | null | null | ProjCPOA_Init/csg/csgtree.cpp | Yt-trium/Edelweiss | 6b51b29a9eb9e2b9b5aba6625399d8b1a44560a5 | [
"MIT"
] | null | null | null | ProjCPOA_Init/csg/csgtree.cpp | Yt-trium/Edelweiss | 6b51b29a9eb9e2b9b5aba6625399d8b1a44560a5 | [
"MIT"
] | null | null | null | #include "csgtree.h"
CsgTree::CsgTree() {}
void CsgTree::addPrimitive(CsgNode *n) {
this->CsgTreeSet.insert(n);
this->CsgTreeMap.insert(std::pair<int, CsgNode *>(n->getid(), n));
}
void CsgTree::joinPrimitive(CsgNode *n) {
std::set<CsgNode *>::iterator it;
CsgOperation *op = static_cast<CsgOperation *>(n);
... | 20.909091 | 68 | 0.666667 | Yt-trium |
6ef2156c0d43eca4cc2d0179531b530d3d8d00ce | 1,666 | cpp | C++ | Day_04/06_Longest_Substring.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | Day_04/06_Longest_Substring.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | Day_04/06_Longest_Substring.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | // Problem Link:
// https://leetcode.com/problems/longest-substring-without-repeating-characters/
// Approach 1: (Naive - Brute Force)
// TC: O(n^2)
// SC: O(1)
// Approach 2: (Optimal - Hashing (Sliding Window))
// TC: O(n)
// SC: O(1)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define deb(... | 18.931818 | 80 | 0.466987 | premnaaath |
3e05b88c175c837ee8b228142cdd22e336373b7f | 1,221 | cpp | C++ | src/interpedCommand.cpp | kriztioan/bui | 27747bf191dbb1e96da0503e46fe6574fbe566cb | [
"Unlicense"
] | null | null | null | src/interpedCommand.cpp | kriztioan/bui | 27747bf191dbb1e96da0503e46fe6574fbe566cb | [
"Unlicense"
] | null | null | null | src/interpedCommand.cpp | kriztioan/bui | 27747bf191dbb1e96da0503e46fe6574fbe566cb | [
"Unlicense"
] | null | null | null | /**
* @file interpretCommand.cpp
* @brief Interpret Command Implementation
* @author KrizTioaN (christiaanboersma@hotmail.com)
* @date 2021-07-29
* @note BSD-3 licensed
*
***********************************************/
#include "header.h"
command interpedCommand(COM *com, std::string input,
... | 27.75 | 61 | 0.558559 | kriztioan |
3e07de7bb0daa85e7aeed67892d225e9be38ee76 | 3,004 | cpp | C++ | src/FCBLights.cpp | cdstouter/ModMidi | 835622868d097c88354619ddfa60895533dfd33b | [
"MIT"
] | null | null | null | src/FCBLights.cpp | cdstouter/ModMidi | 835622868d097c88354619ddfa60895533dfd33b | [
"MIT"
] | null | null | null | src/FCBLights.cpp | cdstouter/ModMidi | 835622868d097c88354619ddfa60895533dfd33b | [
"MIT"
] | null | null | null | /*
* File: FCBLights.cpp
* Author: caleb
*
* Created on December 11, 2017, 11:25 PM
*/
#include "FCBLights.h"
template <typename T>
Light<T>::Light(T initialValue) {
value = initialValue;
}
template <typename T>
Light<T>::Light(const Light& other) {
value = other.value;
dirty = other.dirty;
}
t... | 24.422764 | 77 | 0.573901 | cdstouter |
3e1ad732e9bf5287163d334f90ece5576ef79dcc | 314 | cpp | C++ | src/examples/04_module/05_value_and_reference_params/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-artgonzalezacc | 3ef84214ac131e3175bef09733d9a49ece808801 | [
"MIT"
] | null | null | null | src/examples/04_module/05_value_and_reference_params/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-artgonzalezacc | 3ef84214ac131e3175bef09733d9a49ece808801 | [
"MIT"
] | null | null | null | src/examples/04_module/05_value_and_reference_params/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-artgonzalezacc | 3ef84214ac131e3175bef09733d9a49ece808801 | [
"MIT"
] | null | null | null | #include "value_ref.h"
using std::cout;
int main()
{
//static_var();
//static_var1();
/*auto num = 5;//int variable
int &num_ref = num;//?? int reference variable maybe like a clone
cout<<num<<"\n";
cout<<num_ref<<"\n";
num_ref = 10;
cout<<num<<"\n";
cout<<num_ref<<"\n";*/
return 0;
} | 12.56 | 68 | 0.573248 | acc-cosc-1337-spring-2022 |
3e1afdb2a13e1094367aa027ff35a42e040f3ebd | 4,592 | cpp | C++ | src/network_visualization/json_writer.cpp | Felix-Rm/iac | 59bfc7e859d4cc0b923c75dd34316ae2fafd9097 | [
"BSD-2-Clause"
] | null | null | null | src/network_visualization/json_writer.cpp | Felix-Rm/iac | 59bfc7e859d4cc0b923c75dd34316ae2fafd9097 | [
"BSD-2-Clause"
] | null | null | null | src/network_visualization/json_writer.cpp | Felix-Rm/iac | 59bfc7e859d4cc0b923c75dd34316ae2fafd9097 | [
"BSD-2-Clause"
] | null | null | null | #include "json_writer.hpp"
namespace iac {
JSONValue::JSONValue(JSONObject&& object)
: m_value_type(value_types::OBJECT) {
auto* obj_ptr = new JSONObject();
*obj_ptr = iac::move(object);
m_value.as_object = obj_ptr;
};
JSONValue::JSONValue(JSONArray&& array)
: m_value_type(value_types::ARRAY) {
... | 26.853801 | 67 | 0.59669 | Felix-Rm |
3e1b84d93964057bff8828b785633af8f7ae2c3e | 1,403 | hpp | C++ | include/vulkan/renderer.hpp | paulcacheux/vulkan_learning | 7c2d543429f27376302ca85ae4bd68540b5c0ffe | [
"MIT"
] | null | null | null | include/vulkan/renderer.hpp | paulcacheux/vulkan_learning | 7c2d543429f27376302ca85ae4bd68540b5c0ffe | [
"MIT"
] | null | null | null | include/vulkan/renderer.hpp | paulcacheux/vulkan_learning | 7c2d543429f27376302ca85ae4bd68540b5c0ffe | [
"MIT"
] | null | null | null | #ifndef VULKAN_TUTO_HPP
#define VULKAN_TUTO_HPP
#include <vulkan/vulkan.hpp>
#include <cstring>
#include <memory>
#include <string>
#include <tuple>
#include <vector>
#include "game.hpp"
#include "scene.hpp"
#include "vk_mem_alloc.h"
#include "vulkan/context.hpp"
#include "vulkan/swapchain.hpp"
namespace app {
clas... | 20.632353 | 60 | 0.700641 | paulcacheux |
3e1f8e6ececb28109ac81772e58e21822a562506 | 1,199 | cpp | C++ | CodeForces.366/D.cpp | JoaoBaptMG/CompetitiveProgrammingSolutions | 4ecd4e1568b1104a683ea59367defe5cd39a34e8 | [
"MIT"
] | null | null | null | CodeForces.366/D.cpp | JoaoBaptMG/CompetitiveProgrammingSolutions | 4ecd4e1568b1104a683ea59367defe5cd39a34e8 | [
"MIT"
] | null | null | null | CodeForces.366/D.cpp | JoaoBaptMG/CompetitiveProgrammingSolutions | 4ecd4e1568b1104a683ea59367defe5cd39a34e8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <set>
#include <vector>
using namespace std;
long long x[5000], a[5000], b[5000], c[5000], d[5000];
long long dist(long i, long j)
{
if (i == j) return 0;
else if (j < i) return abs(x[i]-x[j]) + c[i] + b[j];
else return abs(x[i]-x[j]) + d[i] + d[j];
}
int main()
... | 19.33871 | 95 | 0.492911 | JoaoBaptMG |
4a404c15b04ff2c266bc98fc4d575c0aea563eab | 1,306 | cpp | C++ | Upsolving/URI/2855.cpp | rodrigoAMF7/Notebook---Maratonas | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | 4 | 2019-01-25T21:22:55.000Z | 2019-03-20T18:04:01.000Z | Upsolving/URI/2855.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | Upsolving/URI/2855.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// efetua busca binária sobre vetor.
int buscaBinaria(int vetor[], int inicio, int fim, int chave) {
int candidato = (fim-inicio)/2;
if(vetor[candidato+inicio] == chave) {
return candidato+inicio;
} else {
if(vetor[candidato+inicio] > chave) {
... | 21.409836 | 72 | 0.493874 | rodrigoAMF7 |
4a4678d810c974e7c72da12efe3efbb38b3762e0 | 1,251 | cpp | C++ | c++/p0038.cpp | champson/leetcode | dee1ec06bbca2c8d2f8d1eda0885f99f39067d1c | [
"MIT"
] | null | null | null | c++/p0038.cpp | champson/leetcode | dee1ec06bbca2c8d2f8d1eda0885f99f39067d1c | [
"MIT"
] | null | null | null | c++/p0038.cpp | champson/leetcode | dee1ec06bbca2c8d2f8d1eda0885f99f39067d1c | [
"MIT"
] | null | null | null | /* 38. Count and Say
* The count-and-say sequence is the sequence of integers with the first five terms as following:
*
* 1. 1
* 2. 11
* 3. 21
* 4. 1211
* 5. 111221
* 1 is read off as "one 1" or 11.
* 11 is read off as "two 1s" or 21.
* 21 is read off as "one 2, then one 1" or 1211.
* Giv... | 22.745455 | 97 | 0.454836 | champson |
4a4c3d412be8d0e90942d25cdab95292f32ad0f8 | 4,501 | cpp | C++ | src/sdl.cpp | AlexandruIca/GameOfLife | fcde17c2ec1741a20d4ccca91643465df0d1dbe5 | [
"Unlicense"
] | null | null | null | src/sdl.cpp | AlexandruIca/GameOfLife | fcde17c2ec1741a20d4ccca91643465df0d1dbe5 | [
"Unlicense"
] | null | null | null | src/sdl.cpp | AlexandruIca/GameOfLife | fcde17c2ec1741a20d4ccca91643465df0d1dbe5 | [
"Unlicense"
] | null | null | null | #include "sdl.hpp"
#include "assert.hpp"
#include "log.hpp"
#include <SDL.h>
#include <glad/glad.h>
#include <spdlog/spdlog.h>
namespace sdl {
initializer::initializer() noexcept
{
[[maybe_unused]] auto const sdl_init = SDL_Init(SDL_INIT_VIDEO);
ASSERT_MSG(sdl_init == 0, SDL_GetError());
}
initializer::~in... | 24.069519 | 119 | 0.566985 | AlexandruIca |
4a541e54832b188f622b327252c7c5605d93cf0d | 8,419 | cpp | C++ | src/Audio/Music.cpp | NerdThings/Ngine | e5c4754d07ec38e727d8baaf7250dbb996cad49e | [
"Apache-2.0"
] | 2 | 2019-05-24T15:20:14.000Z | 2019-06-12T11:55:27.000Z | src/Audio/Music.cpp | NerdThings/Ngine | e5c4754d07ec38e727d8baaf7250dbb996cad49e | [
"Apache-2.0"
] | 23 | 2019-06-05T12:52:33.000Z | 2020-03-11T15:23:00.000Z | src/Audio/Music.cpp | NerdThings/Ngine | e5c4754d07ec38e727d8baaf7250dbb996cad49e | [
"Apache-2.0"
] | 1 | 2019-10-02T20:31:12.000Z | 2019-10-02T20:31:12.000Z | /**********************************************************************************************
*
* Ngine - The 2D game engine.
*
* Copyright (C) 2019 NerdThings
*
* LICENSE: Apache License 2.0
* View: https://github.com/NerdThings/Ngine/blob/master/LICENSE
*
****************************************************... | 30.952206 | 130 | 0.528448 | NerdThings |
4a549c7535231ea0f49a464699b89d0df6e4160d | 9,362 | cpp | C++ | src/PluginVisTable/AutoScaleTableUnits.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/PluginVisTable/AutoScaleTableUnits.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/PluginVisTable/AutoScaleTableUnits.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... | 35.328302 | 80 | 0.678808 | voxie-viewer |
4a5873875917f5f30417b766984d0626d7b206e6 | 657 | cpp | C++ | ecs/src/v2/model/NovaListAvailabilityZonesRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | ecs/src/v2/model/NovaListAvailabilityZonesRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | ecs/src/v2/model/NovaListAvailabilityZonesRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/ecs/v2/model/NovaListAvailabilityZonesRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ecs {
namespace V2 {
namespace Model {
NovaListAvailabilityZonesRequest::NovaListAvailabilityZonesRequest()
{
}
NovaListAvailabilityZonesRequest::~NovaListAvailabilityZonesRequest() = default... | 13.978723 | 80 | 0.74277 | yangzhaofeng |
4a69184f94a4fd9fffc961b32b9c672a05e7a1c1 | 22,602 | cpp | C++ | vk_raytracing_tutorial_KHR/ray_tracing__advance/raytrace.cpp | yangtzehina/VulkanStudy | 76af12e46ecbba0a2d22812ebec3faa7383b0328 | [
"MIT"
] | 1 | 2021-11-11T13:33:54.000Z | 2021-11-11T13:33:54.000Z | vk_raytracing_tutorial_KHR/ray_tracing__advance/raytrace.cpp | yangtzehina/VulkanStudy | 76af12e46ecbba0a2d22812ebec3faa7383b0328 | [
"MIT"
] | null | null | null | vk_raytracing_tutorial_KHR/ray_tracing__advance/raytrace.cpp | yangtzehina/VulkanStudy | 76af12e46ecbba0a2d22812ebec3faa7383b0328 | [
"MIT"
] | null | null | null | /* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 46.032587 | 100 | 0.681356 | yangtzehina |
4a7569c0ef68fcdacb940fa151f7aa708578c4db | 1,337 | cpp | C++ | backup/2/hackerrank/c++/happy-ladybugs.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/hackerrank/c++/happy-ladybugs.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/hackerrank/c++/happy-ladybugs.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 36.135135 | 345 | 0.533283 | yangyanzhan |
4a7a5db33d758f0b5795c37e794c226c94a21cdb | 2,646 | cpp | C++ | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/server/main.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 4 | 2016-03-29T21:45:21.000Z | 2016-12-20T00:50:38.000Z | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/server/main.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/server/main.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | // main.cpp
#include <stdio.h>
#include <string.h>
#include "Debug.h"
#include "ServerDefs.h"
#include "UserlandFSDispatcher.h"
#include "UserlandFSServer.h"
// server signature
static const char* kServerSignature
= "application/x-vnd.bonefish.userlandfs-server";
// usage
static const char* kUsage =
"Usage: %s <op... | 23.210526 | 80 | 0.650038 | axeld |
4a7adfcf5a57a17f0d30852ceeaa621b14d2a826 | 6,379 | cpp | C++ | src_main/utils/xbox/makephx/phx.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | 2 | 2019-09-16T02:42:38.000Z | 2020-04-24T19:52:46.000Z | src_main/utils/xbox/makephx/phx.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | null | null | null | src_main/utils/xbox/makephx/phx.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | 3 | 2018-10-22T11:45:38.000Z | 2020-04-24T19:52:47.000Z | #include "cmdlib.h"
#include "mathlib/mathlib.h"
#include "tier1/strtools.h"
#include "physdll.h"
#include "phyfile.h"
#include "phxfile.h"
#include "utlvector.h"
#include "utlbuffer.h"
#include "vphysics_interface.h"
#include "vcollide_parse.h"
#include "vphysics/constraints.h"
#include "tier0/icommandline.h"
#include... | 29.669767 | 141 | 0.697445 | raxxor45 |
4a7e5c872157fc3aafb7e42285769649e2acab84 | 557 | cpp | C++ | sources/Core/MessageBlock.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Core/MessageBlock.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Core/MessageBlock.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
* Created: 2008/07/31 16:10
* Author: Eugene V. Palchukovsky
* E-mail: eugene@palchukovsky.com
* -------------------------------------------------------------------
* Project: TunnelEx
* URL: http://tunnelex.net
*********... | 24.217391 | 76 | 0.38061 | palchukovsky |
4a7fc3c2659b608756a7d58fc15df81287b3de4c | 5,351 | cpp | C++ | src/ascii.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:23.000Z | 2021-12-12T22:08:23.000Z | src/ascii.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | null | null | null | src/ascii.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:29.000Z | 2021-12-12T22:08:29.000Z | #include "../include/ascii.hpp"
void ascii::manifesto()
{
/*
arte. l'ultimo vero movimento artistico totale: musica, letteratura, pittura, architettura....
tutto il resto e' noooooooiaaaaaaa
*/
static std::vector<std::string> manifesto_futurista =
{
"Manifesto dei futurismo.",
"",
"1. Noi vogliamo cantare... | 54.602041 | 805 | 0.738367 | CardinalModules |
4a814ff8127a92adc837f73c3ac8d21782163a23 | 6,960 | inl | C++ | src/atta/graphicsSystem/drawer.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-06-18T00:48:13.000Z | 2021-06-18T00:48:13.000Z | src/atta/graphicsSystem/drawer.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 6 | 2021-03-11T21:01:27.000Z | 2021-09-06T19:41:46.000Z | src/atta/graphicsSystem/drawer.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-09-04T19:54:41.000Z | 2021-09-04T19:54:41.000Z | //--------------------------------------------------
// Atta Graphics System
// drawer.inl
// Date: 2021-09-25
// By Breno Cunha Queiroz
//--------------------------------------------------
namespace atta
{
// Draw 3d objects
template <typename T>
void Drawer::add(T obj, StringId group) { getInstance().add... | 35.510204 | 117 | 0.551437 | Brenocq |
4a8a1645451896bf3189b4c6d5420ae2d4703f6e | 2,409 | cpp | C++ | Wonderland/Wonderland/Editor/Foundation/UI/Widgets/View/UIView.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Wonderland/Wonderland/Editor/Foundation/UI/Widgets/View/UIView.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | null | null | null | Wonderland/Wonderland/Editor/Foundation/UI/Widgets/View/UIView.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ////////////////////////////////////////////////////////////////////////////////
// Filename: UIView.cpp
////////////////////////////////////////////////////////////////////////////////
#include "UIView.h"
///////////////
// NAMESPACE //
///////////////
#include "..\..\..\ECS\ECS_System.h"
#include "..\..\Components\... | 30.884615 | 112 | 0.710253 | RodrigoHolztrattner |
4a8bb21427207c3239e0a3f5ec2dd73222091534 | 11,672 | cpp | C++ | source/Bit/System/Bencode/BencodeReader.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | source/Bit/System/Bencode/BencodeReader.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | source/Bit/System/Bencode/BencodeReader.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any... | 23.390782 | 100 | 0.579764 | jimmiebergmann |
4a90685a5f8d500f38da9bc0233eda140e8ec3e5 | 4,255 | hh | C++ | common/dbl.hh | dbeck/codesloop | 874f68593cf2939ee232f1ccc5b65cacb928f0af | [
"BSD-2-Clause"
] | 2 | 2016-05-09T15:29:34.000Z | 2016-07-19T11:40:37.000Z | common/dbl.hh | dbeck/codesloop | 874f68593cf2939ee232f1ccc5b65cacb928f0af | [
"BSD-2-Clause"
] | null | null | null | common/dbl.hh | dbeck/codesloop | 874f68593cf2939ee232f1ccc5b65cacb928f0af | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2008,2009,2010, CodeSLoop Team
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaim... | 39.036697 | 117 | 0.66181 | dbeck |
4a90a7ec589370667638fdd6fce9bfa5adeb4843 | 1,695 | cpp | C++ | nwol/nwol_noise.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | 3 | 2017-06-05T13:49:43.000Z | 2017-06-19T22:31:58.000Z | nwol/nwol_noise.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | 1 | 2017-06-19T12:36:46.000Z | 2017-06-30T22:34:06.000Z | nwol/nwol_noise.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | null | null | null | #include "nwol_random_generator.h"
// I got this base random function code from http://libnoise.sourceforge.net/noisegen/index.html.
double ::nwol::noise1D (uint64_t x, uint64_t noiseSeed) noexcept { x = (x << 13) ^ x; return (1.0 - ( (x * (x * x * noiseSeed + 786109ULL) + 1824261419ULL) & 0x7ff... | 94.166667 | 245 | 0.641888 | asm128 |
4a9192733efcbffd402472f25f2ed3dbdd9efedc | 3,484 | cpp | C++ | plugins/example.nodes/source/space/previewimageprovider_impl.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | 23 | 2018-09-05T21:11:07.000Z | 2022-01-12T10:43:17.000Z | plugins/example.nodes/source/space/previewimageprovider_impl.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | null | null | null | plugins/example.nodes/source/space/previewimageprovider_impl.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | 4 | 2019-07-12T16:57:20.000Z | 2021-06-23T15:33:09.000Z | #include "previewimageprovider_impl.h"
#include "maxon/conditionvariable.h"
namespace maxonsdk
{
PreviewImageProviderExample::PreviewImageProviderExample()
{
maxon::LinearCongruentialRandom<maxon::Float32> random;
random.Init((maxon::UInt32)maxon::TimeValue::GetTime().GetMicroseconds());
_finishedColor.r = ran... | 30.295652 | 154 | 0.75 | urender-vt |
4a96139b4d58d5ebaf2bf158f5caa181dd442ff1 | 329 | cpp | C++ | lab_01/smaller.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | null | null | null | lab_01/smaller.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | 2 | 2018-11-15T17:15:08.000Z | 2018-11-20T18:14:33.000Z | lab_01/smaller.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | 4 | 2018-11-08T15:05:15.000Z | 2018-12-14T04:08:49.000Z | #include <iostream>
int main() {
std::cout << "Enter the first number: ";
int first;
std::cin >> first;
std::cout << "Enter the second number: ";
int second;
std::cin >> second;
std::cout << "The smaller of the two is ";
std::cout << (first < second ? first : second);
std::cout << std::endl;
retu... | 18.277778 | 49 | 0.583587 | srafi1 |
4a9c67305dc63403d1b607b8a2b59b37ae13acd1 | 936 | cpp | C++ | util/logger/src/LogManager.cpp | vlad-iancu/alg-lib | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | null | null | null | util/logger/src/LogManager.cpp | vlad-iancu/alg-lib | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | 11 | 2021-09-04T19:12:23.000Z | 2021-09-25T21:13:06.000Z | util/logger/src/LogManager.cpp | vlad-iancu/libalg | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | null | null | null | #include <LogManager.hpp>
#include <iostream>
#include <vector>
#include <cstdarg>
#include <chrono>
std::vector<logger::LoggerPtr> g_loggers;
void register_logger(logger::LoggerPtr logger)
{
g_loggers.push_back(logger);
}
void log_m(logger::LogLevel level, const std::string &domain, const std::string &componen... | 24 | 148 | 0.661325 | vlad-iancu |
4a9ed19abdf7a4b8f40177c54b50b8ba139ef45d | 562 | cpp | C++ | src/glh/core/VertexArrayObject.cpp | raster77/glh | b9e172f4c986c333810ed51cc13c28084a1018b7 | [
"MIT"
] | null | null | null | src/glh/core/VertexArrayObject.cpp | raster77/glh | b9e172f4c986c333810ed51cc13c28084a1018b7 | [
"MIT"
] | null | null | null | src/glh/core/VertexArrayObject.cpp | raster77/glh | b9e172f4c986c333810ed51cc13c28084a1018b7 | [
"MIT"
] | null | null | null | #include "VertexArrayObject.hpp"
#include <glad/glad.h>
glh::VertexArrayObject::VertexArrayObject()
: GlObject()
{
}
glh::VertexArrayObject::~VertexArrayObject()
{
destroy();
}
void glh::VertexArrayObject::bind()
{
glBindVertexArray(mId);
}
void glh::VertexArrayObject::create()
{
if(mId == 0) {
... | 15.611111 | 44 | 0.629893 | raster77 |
4a9f202a68df8364caacafc0a6dc3f078da6ca2d | 559 | cpp | C++ | 682. Baseball Game.cpp | priyamittal15/Leetcode_Solutions | 21cb9c09e053425dba66acd62240399b1a35fba0 | [
"Apache-2.0"
] | 1 | 2022-01-28T08:07:32.000Z | 2022-01-28T08:07:32.000Z | 682. Baseball Game.cpp | MadanParth786/LeetcodeSolutions_PracticeQuestions | 8a9c1eb88a6d5214abdb2becf2115a51e317a5c4 | [
"MIT"
] | null | null | null | 682. Baseball Game.cpp | MadanParth786/LeetcodeSolutions_PracticeQuestions | 8a9c1eb88a6d5214abdb2becf2115a51e317a5c4 | [
"MIT"
] | 1 | 2022-03-16T14:46:09.000Z | 2022-03-16T14:46:09.000Z | class Solution {
public:
int calPoints(vector<string>& ops) {
vector<int> record;
for (string ch : ops) {
if (ch == "C")
record.pop_back();
else if (ch == "D")
record.push_back(record.back() * 2);
else if (ch == "+")
... | 27.95 | 77 | 0.431127 | priyamittal15 |
4a9fac94d4f294111ac02912ff28749b5e25a181 | 1,025 | cpp | C++ | 032-longest-valid-parentheses/longest-valid-parentheses.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 032-longest-valid-parentheses/longest-valid-parentheses.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 032-longest-valid-parentheses/longest-valid-parentheses.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
//
// Example 1:
//
//
// Input: "(()"
// Output: 2
// Explanation: The longest valid parentheses substring is "()"
//
//
// Example 2:
//
//
// Input: ")()())"
// Output: 4
//... | 21.808511 | 136 | 0.480976 | nagestx |
4aa29c94083fef480135705fc68ea171edaea1f1 | 1,138 | cpp | C++ | src/test/test.cpp | LazyKeru/SmellsFishy | 428df9c40bf1e56e1674c97ed3779a17173b5c0a | [
"MIT"
] | 2 | 2022-03-11T16:53:19.000Z | 2022-03-17T13:59:20.000Z | src/test/test.cpp | LazyKeru/SmellsFishy | 428df9c40bf1e56e1674c97ed3779a17173b5c0a | [
"MIT"
] | 5 | 2022-03-12T18:48:06.000Z | 2022-03-22T10:07:49.000Z | src/test/test.cpp | LazyKeru/SmellsFishy | 428df9c40bf1e56e1674c97ed3779a17173b5c0a | [
"MIT"
] | null | null | null | #include "../../header/test/test.hpp"
#include <iostream>
INIT_LOG
int main(int argc, const char *argv[])
{
Log::msg << "Starting test...\n";
for (auto i = 0; i < argc; i++)
{
std::string s(argv[i]);
if (s == "core" || s == "all")
{
Log::msg << "Testing core...\n";
test::core();
}
if (s == "regex" ... | 19.288136 | 54 | 0.495606 | LazyKeru |
4aa2c63d45c860d65fa8d2a71e4f0aeee798358f | 186 | cpp | C++ | c-develop/03.variable/externVarSameFunc.cpp | GustiArsyad123/C-Language-Test | 90a2eb45d1db2b039acbe5d3499aaff0aed99f82 | [
"MIT"
] | null | null | null | c-develop/03.variable/externVarSameFunc.cpp | GustiArsyad123/C-Language-Test | 90a2eb45d1db2b039acbe5d3499aaff0aed99f82 | [
"MIT"
] | null | null | null | c-develop/03.variable/externVarSameFunc.cpp | GustiArsyad123/C-Language-Test | 90a2eb45d1db2b039acbe5d3499aaff0aed99f82 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// function declaration
int func();
int main()
{
// function call
int i = func();
}
// function definition
int func()
{
return 0;
} | 11.625 | 23 | 0.629032 | GustiArsyad123 |
4aa7b0a4729e4b693577292a3679606a5e58190e | 8,274 | cpp | C++ | homework/1-bst/src/main.cpp | stratixx/PW-EITI-AISDI-19Z | e58e37ad3ef14f7b2ac18e65453539c84f10bfdb | [
"MIT"
] | null | null | null | homework/1-bst/src/main.cpp | stratixx/PW-EITI-AISDI-19Z | e58e37ad3ef14f7b2ac18e65453539c84f10bfdb | [
"MIT"
] | null | null | null | homework/1-bst/src/main.cpp | stratixx/PW-EITI-AISDI-19Z | e58e37ad3ef14f7b2ac18e65453539c84f10bfdb | [
"MIT"
] | null | null | null | /*
Autor: Konrad Winnicki
Utworzono: 27.11.2019
Zadanie:
* Zaimplementuj operację usuwania węzła z binarnego drzewa poszukiwań.
*/
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
////////////////////////////////////////////////////////////
/*
* BST
*
*/
template<typename... | 24.772455 | 88 | 0.469301 | stratixx |
4ab41c4a17795db6aaee7027315eefbb06300b2f | 1,676 | hpp | C++ | include/Wg/RichEdit.hpp | iSLC/vaca | c9bc3284c2a1325f7056f455fd5ff1e47e7673bc | [
"MIT"
] | null | null | null | include/Wg/RichEdit.hpp | iSLC/vaca | c9bc3284c2a1325f7056f455fd5ff1e47e7673bc | [
"MIT"
] | null | null | null | include/Wg/RichEdit.hpp | iSLC/vaca | c9bc3284c2a1325f7056f455fd5ff1e47e7673bc | [
"MIT"
] | null | null | null | // Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2010 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#pragma once
#include "Wg/Base.hpp"
#include "Wg/Widget.hpp"
namespace Wg {
/**
Loads the RichEdit DLL.
... | 18.831461 | 87 | 0.670048 | iSLC |
4ab7489755ac36cd47e50c655092e5e610f15885 | 2,985 | cpp | C++ | central_control_ui/src/Server.cpp | DeepBlue14/usar_system | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | [
"MIT"
] | null | null | null | central_control_ui/src/Server.cpp | DeepBlue14/usar_system | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | [
"MIT"
] | null | null | null | central_control_ui/src/Server.cpp | DeepBlue14/usar_system | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2016 James T. Kuczynski
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "../include/central_control_ui/Server.h"
QT_USE_NAMESPACE
Server::Server(QObject* parent) : QObject(parent), m_pWebSocketServer(Q_NUL... | 26.651786 | 110 | 0.636516 | DeepBlue14 |
3857e75513a3461a158e0f45b33e29e423800962 | 10,361 | cpp | C++ | include/nodeHandler/nodeHandler.cpp | alirezaahmadi/dynamap | e99b0093fb5251c76efcbd71900b58e4f314b9cd | [
"MIT"
] | 8 | 2021-12-18T09:33:54.000Z | 2022-02-22T01:29:38.000Z | include/nodeHandler/nodeHandler.cpp | alirezaahmadi/dynamap | e99b0093fb5251c76efcbd71900b58e4f314b9cd | [
"MIT"
] | 1 | 2021-12-07T09:32:45.000Z | 2021-12-08T01:46:54.000Z | include/nodeHandler/nodeHandler.cpp | alirezaahmadi/dynamap | e99b0093fb5251c76efcbd71900b58e4f314b9cd | [
"MIT"
] | 3 | 2021-12-19T21:29:06.000Z | 2022-02-21T12:52:59.000Z | #include "nodeHandler.h"
using namespace std;
using namespace message_filters;
using namespace Eigen;
namespace DynaMap {
DynaMapNodeHandler::DynaMapNodeHandler(ros::NodeHandle& nodeHandle) : nodeHandle_(nodeHandle) {
ROS_ERROR("node is runnig....");
if (!ReadConfig_map() && !MapManager.ReadConfig_run(nodeHa... | 39.85 | 142 | 0.670302 | alirezaahmadi |
3858f7cf4e76f5093e2e822195b89d4f0051b900 | 1,602 | cpp | C++ | Array/medium/15_3sum/ThreeSum.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | 1 | 2019-05-16T23:18:17.000Z | 2019-05-16T23:18:17.000Z | Array/medium/15_3sum/ThreeSum.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | null | null | null | Array/medium/15_3sum/ThreeSum.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | null | null | null | // ThreeSum.cpp
#include<vector>
#include<algorithm>
using std::sort;
using std::vector;
class Threesum {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
vector<vector<int>> res;
int len = nums.size();
if (len < 3) return {};
sort(nums.begin(), nu... | 32.04 | 74 | 0.386392 | quq99 |
385bc1bfb7740bce0d0107c40f7c3d88671f18b7 | 9,824 | cc | C++ | test/gurka/test_instructions_keep_nonhighway_signs.cc | mesozoic-drones/valhalla | cafc34e63f3189d017348391a18847e8250d2b30 | [
"MIT"
] | 1 | 2022-01-09T18:54:25.000Z | 2022-01-09T18:54:25.000Z | test/gurka/test_instructions_keep_nonhighway_signs.cc | mesozoic-drones/valhalla | cafc34e63f3189d017348391a18847e8250d2b30 | [
"MIT"
] | null | null | null | test/gurka/test_instructions_keep_nonhighway_signs.cc | mesozoic-drones/valhalla | cafc34e63f3189d017348391a18847e8250d2b30 | [
"MIT"
] | 1 | 2021-01-24T16:46:01.000Z | 2021-01-24T16:46:01.000Z | #include "gurka.h"
#include <gtest/gtest.h>
#if !defined(VALHALLA_SOURCE_DIR)
#define VALHALLA_SOURCE_DIR
#endif
using namespace valhalla;
class InstructionsKeepNonHighwaySigns : public ::testing::Test {
protected:
static gurka::map map;
static void SetUpTestSuite() {
constexpr double gridsize_metres = 1000... | 49.366834 | 102 | 0.47669 | mesozoic-drones |
385ce26dc7e3c11a93f4a78b80ff8b6840fbce27 | 172 | cpp | C++ | Source/SaveExtension/Private/SaveExtension.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 110 | 2018-10-20T21:47:54.000Z | 2022-03-14T03:47:58.000Z | Source/SaveExtension/Private/SaveExtension.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 68 | 2018-12-19T09:08:56.000Z | 2022-03-09T06:43:38.000Z | Source/SaveExtension/Private/SaveExtension.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 45 | 2018-12-03T14:35:47.000Z | 2022-03-05T01:35:24.000Z | // Copyright 2015-2020 Piperift. All Rights Reserved.
#include "SaveExtension.h"
DEFINE_LOG_CATEGORY(LogSaveExtension)
IMPLEMENT_MODULE(FSaveExtension, SaveExtension);
| 19.111111 | 53 | 0.819767 | foobit |
3867730e380811de6ccca37636356aa0cf7ae7db | 28,790 | cpp | C++ | model/mvf.cpp | wadaniel/korali-sandbox | 42e40831a77cadd3f414ac05c6f36dd75f0319d1 | [
"MIT"
] | null | null | null | model/mvf.cpp | wadaniel/korali-sandbox | 42e40831a77cadd3f414ac05c6f36dd75f0319d1 | [
"MIT"
] | null | null | null | model/mvf.cpp | wadaniel/korali-sandbox | 42e40831a77cadd3f414ac05c6f36dd75f0319d1 | [
"MIT"
] | null | null | null | /*
Credits:
https://www.sfu.ca/~ssurjano/other.html
*/
/*
- File mvf.cpp
- Original compiled by Ernie.
- Revisions:
- 2003.01.30 Ver 0.1
- 2004.03.05 Added EggHolder, StretchedV, Rana functions
- from http://www.ft.utb.cz/people/zelinka/soma/
- 2004.04.19 http://www.mat.univie.ac.at/~neum/glopt/janka/funcs.html
- Bo... | 20.246132 | 104 | 0.475964 | wadaniel |
3868dccd0db271ccbe7df4a35ebb5318e10f56de | 4,235 | cpp | C++ | Classes/GameOverLayer.cpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | 2 | 2017-10-14T06:27:15.000Z | 2021-11-05T20:27:28.000Z | Classes/GameOverLayer.cpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | null | null | null | Classes/GameOverLayer.cpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | null | null | null | //
// GameOverLayer.cpp
// AirWar
//
// Created by nick on 2017/1/22.
// Copyright © 2017年 chenyuqiao. All rights reserved.
//
#include "GameOverLayer.hpp"
#include "GameScene.hpp"
int GameOverLayer::highestHistoryScore = 0;
GameOverLayer::GameOverLayer() {
score = 0;
highestScoreLabel = nullptr;
}
... | 36.826087 | 148 | 0.652656 | nickqiao |
386b7f97d57b29cd494022642bd5493934c200ed | 1,353 | cpp | C++ | Timer.cpp | KristianWalsh/cpphelpers | f4d300c9e0e69ed64a38454d18acd098e55f22bf | [
"BSD-3-Clause"
] | null | null | null | Timer.cpp | KristianWalsh/cpphelpers | f4d300c9e0e69ed64a38454d18acd098e55f22bf | [
"BSD-3-Clause"
] | null | null | null | Timer.cpp | KristianWalsh/cpphelpers | f4d300c9e0e69ed64a38454d18acd098e55f22bf | [
"BSD-3-Clause"
] | null | null | null | #include "Timer.hpp"
#include <iostream>
using namespace std;
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
Timer::Timer( uint32_t delay )
{
setDuration( delay );
restart();
live=false;
}
/////////////... | 20.5 | 117 | 0.444198 | KristianWalsh |
386dd9a3f846def34fe79844264b536008b14b24 | 969 | cpp | C++ | binding/matlab/S2M_nameDof.cpp | fmoissenet/biorbd | 3b3352bf06b9e8fbbdf4f77c852b6a115522becf | [
"MIT"
] | null | null | null | binding/matlab/S2M_nameDof.cpp | fmoissenet/biorbd | 3b3352bf06b9e8fbbdf4f77c852b6a115522becf | [
"MIT"
] | null | null | null | binding/matlab/S2M_nameDof.cpp | fmoissenet/biorbd | 3b3352bf06b9e8fbbdf4f77c852b6a115522becf | [
"MIT"
] | null | null | null |
void S2M_nameDof( int nlhs, mxArray *plhs[],
int nrhs, const mxArray*prhs[] ){
// Verifier les arguments d'entree
checkNombreInputParametres(nrhs, 2, 2, "2 arguments are required where the 2nd is the handler on the model");
// Recevoir le model
s2mMusculoSkeletalModel * model = conve... | 35.888889 | 134 | 0.615067 | fmoissenet |
38737f690cfe490009e1d06886c89edd11c0431a | 1,847 | cpp | C++ | core/src/jni/jni/CosmosGasLimitRequest.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | null | null | null | core/src/jni/jni/CosmosGasLimitRequest.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 1 | 2020-10-05T11:33:07.000Z | 2020-10-05T11:33:07.000Z | core/src/jni/jni/CosmosGasLimitRequest.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 2 | 2020-10-16T10:31:41.000Z | 2020-10-16T13:08:45.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from wallet.djinni
#include "CosmosGasLimitRequest.hpp" // my header
#include "CosmosLikeMessage.hpp"
#include "Marshal.hpp"
namespace djinni_generated {
CosmosGasLimitRequest::CosmosGasLimitRequest() = default;
CosmosGasLimitRequest::~CosmosG... | 54.323529 | 169 | 0.657282 | RomanWlm |
38798510b07486561b00f15bfd2b32ba52177218 | 1,506 | cpp | C++ | YAD-Studio/Widgets/LineInfoWidget.cpp | Yad-Studio/YAD-Studio | 3ff9be91a573fc189c5756068634e2c154f1cdbc | [
"MIT"
] | 22 | 2015-01-04T22:16:41.000Z | 2022-03-15T16:08:53.000Z | YAD-Studio/Widgets/LineInfoWidget.cpp | Yad-Studio/YAD-Studio | 3ff9be91a573fc189c5756068634e2c154f1cdbc | [
"MIT"
] | 1 | 2015-02-26T12:08:14.000Z | 2015-02-27T07:38:38.000Z | YAD-Studio/Widgets/LineInfoWidget.cpp | Yad-Studio/YAD-Studio | 3ff9be91a573fc189c5756068634e2c154f1cdbc | [
"MIT"
] | 2 | 2016-01-01T14:25:42.000Z | 2018-10-23T14:55:45.000Z | #include "LineInfoWidget.h"
#include "ui_LineInfoWidget.h"
LineInfoWidget::LineInfoWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::LineInfoWidget)
{
ui->setupUi(this);
}
LineInfoWidget::~LineInfoWidget()
{
delete ui;
}
void LineInfoWidget::lineWithErrorFocus(int line_number, CompilerError err... | 35.857143 | 83 | 0.622178 | Yad-Studio |
387c0480baf8a1a241ffa08877590388be6d9d70 | 2,127 | cc | C++ | src/formats/dimacs.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | 33 | 2018-05-06T12:00:45.000Z | 2022-03-15T04:50:26.000Z | src/formats/dimacs.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | 9 | 2020-08-17T04:50:46.000Z | 2022-03-17T13:27:30.000Z | src/formats/dimacs.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | 13 | 2018-06-07T11:48:36.000Z | 2022-03-14T13:55:04.000Z | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include "formats/dimacs.hh"
#include "formats/input_graph.hh"
#include "formats/graph_file_error.hh"
#include <fstream>
#include <regex>
using std::getline;
using std::ifstream;
using std::regex;
using std::smatch;
using std::stoi;
using std::string;
using std::to_st... | 32.227273 | 103 | 0.551481 | KyleBurns |
38846c8cb419ce6167e09180c50f083a5f147705 | 8,666 | cpp | C++ | src/finformat.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 4 | 2016-07-05T07:42:07.000Z | 2020-07-15T15:27:22.000Z | src/finformat.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 1 | 2020-05-07T20:58:21.000Z | 2020-05-07T20:58:21.000Z | src/finformat.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Matthew Harvey
*
* 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... | 29.576792 | 80 | 0.593007 | skybaboon |
3886ba790260f57b503653f2e044c1da7edde3e7 | 3,722 | cpp | C++ | lib/spectra.cpp | heyfaraday/CMBcpp2 | 1038c37b535fc631272b6313e5b4b401188be5e3 | [
"MIT"
] | 1 | 2018-05-21T22:50:33.000Z | 2018-05-21T22:50:33.000Z | lib/spectra.cpp | heyfaraday/CMBcpp2 | 1038c37b535fc631272b6313e5b4b401188be5e3 | [
"MIT"
] | null | null | null | lib/spectra.cpp | heyfaraday/CMBcpp2 | 1038c37b535fc631272b6313e5b4b401188be5e3 | [
"MIT"
] | 1 | 2022-02-13T04:26:45.000Z | 2022-02-13T04:26:45.000Z | #include <cmath>
#include <iostream>
#include "spectra.hpp"
#include "parameters.hpp"
#include "constants.hpp"
#include "utils.hpp"
long double sigma_0_map(long double** map) {
long double sum_without_norm = 0.0L;
long double norm = 0.0L;
for (unsigned int i = 0; i < npix; ++i) {
for (unsigned i... | 28.19697 | 118 | 0.487104 | heyfaraday |
388892ff539f0cdaca9e6e164edad55268146849 | 3,275 | cpp | C++ | testbed/tests/platformer.cpp | Wesxdz/box2d | a31cf7dc94460019b754c633d46976fc0bf83ad0 | [
"MIT"
] | 3,967 | 2015-07-13T01:14:56.000Z | 2019-12-25T14:24:06.000Z | testbed/tests/platformer.cpp | Wesxdz/box2d | a31cf7dc94460019b754c633d46976fc0bf83ad0 | [
"MIT"
] | 216 | 2015-07-12T22:39:23.000Z | 2019-11-01T09:31:57.000Z | testbed/tests/platformer.cpp | Wesxdz/box2d | a31cf7dc94460019b754c633d46976fc0bf83ad0 | [
"MIT"
] | 1,013 | 2015-07-15T11:00:29.000Z | 2019-12-25T09:00:38.000Z | // MIT License
// Copyright (c) 2019 Erin Catto
// 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, merg... | 24.440299 | 84 | 0.688855 | Wesxdz |
38895b57cee84dd3ee6734901c472a6a429fd653 | 658 | hpp | C++ | Septerra.Injection/Hooks/Septerra_DbRecord_Read.hpp | xyx0826/Septerra | 28b741f5aa56fd0ba2bbb927df665465dced674c | [
"MIT"
] | 6 | 2020-05-24T22:56:50.000Z | 2022-02-14T11:48:47.000Z | Septerra.Injection/Hooks/Septerra_DbRecord_Read.hpp | xyx0826/Septerra | 28b741f5aa56fd0ba2bbb927df665465dced674c | [
"MIT"
] | 5 | 2020-04-09T15:13:59.000Z | 2021-12-11T16:29:18.000Z | Septerra.Injection/Hooks/Septerra_DbRecord_Read.hpp | xyx0826/Septerra | 28b741f5aa56fd0ba2bbb927df665465dced674c | [
"MIT"
] | 1 | 2021-08-01T16:41:11.000Z | 2021-08-01T16:41:11.000Z | #pragma once
// ReSharper disable CppCStyleCast
using namespace Septerra::Core;
namespace SepterraInjection
{
typedef int (__cdecl* Septerra_DbRecord_Read)(Int32 dbRecordIndex, Byte* output, Int32 outputSize);
Septerra_DbRecord_Read O_Septerra_DbRecord_Read = (Septerra_DbRecord_Read)0x00445C80;
int __cdecl Hook... | 27.416667 | 100 | 0.81307 | xyx0826 |
388a897c7a4959032faad8fb62f7351d1ffd3405 | 37,616 | cpp | C++ | Core/Src/main.cpp | salvato/BuggyROS446 | 56f963584c43d9962312acc17ac6a7bebb9c975d | [
"MIT"
] | null | null | null | Core/Src/main.cpp | salvato/BuggyROS446 | 56f963584c43d9962312acc17ac6a7bebb9c975d | [
"MIT"
] | null | null | null | Core/Src/main.cpp | salvato/BuggyROS446 | 56f963584c43d9962312acc17ac6a7bebb9c975d | [
"MIT"
] | null | null | null | /*
// To configure QtCreator in order to Debug and Run programs
// on STM32F boards see:
//
// https://github.com/nlhans/qt-baremetal
// https://electronics.stackexchange.com/questions/212018/debugging-an-arm-stm32-microcontroller-using-qt-creator
//
//
// Motor Gear 9:1
//
// Tire's Diameter 0.069 [m]
// En... | 34.165304 | 114 | 0.585575 | salvato |
388fa943776fcd562d10614adb7b3c7eea4e9a33 | 132,081 | cpp | C++ | packages/monte_carlo/event/core/test/tstObserverPhaseSpaceDiscretization.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/event/core/test/tstObserverPhaseSpaceDiscretization.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/event/core/test/tstObserverPhaseSpaceDiscretization.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file tstObserverPhaseSpaceDiscretization.cpp
//! \author Alex Robinson
//! \brief The observer phase space discretization unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib... | 43.968375 | 140 | 0.732861 | bam241 |
389422852784c46a0022fca5638aaed283d795e5 | 665 | cpp | C++ | src/marsagliapolar.cpp | miloyip/normaldist-benchmark | e20e76ba9acc253d33e6797f6fa3c75fe5ce8165 | [
"MIT"
] | 107 | 2015-07-09T07:54:50.000Z | 2022-03-31T07:52:35.000Z | src/marsagliapolar.cpp | WojciechMula/normaldist-benchmark | e20e76ba9acc253d33e6797f6fa3c75fe5ce8165 | [
"MIT"
] | 3 | 2019-05-30T03:02:48.000Z | 2020-12-19T16:56:53.000Z | src/marsagliapolar.cpp | WojciechMula/normaldist-benchmark | e20e76ba9acc253d33e6797f6fa3c75fe5ce8165 | [
"MIT"
] | 22 | 2015-07-09T07:55:28.000Z | 2020-12-23T17:36:47.000Z | #include "test.h"
#include "lcg.h"
#include <cassert>
#include <cmath>
template <class T>
void marsagliapolar(T* data, size_t count) {
assert(count % 2 == 0);
LCG<T> r;
for (size_t i = 0; i < count; i += 2) {
T u, v, s;
do {
u = r() * 2 - 1;
v = r() * 2 - 1;
s = u * u + v * v;
} while (s >= 1 || s =... | 19.558824 | 67 | 0.580451 | miloyip |
389b58c0513d12172dca73990f7115a88ad03be4 | 6,826 | cpp | C++ | ODFAEG/src/odfaeg/Graphics/3D/model.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 5 | 2015-06-13T13:11:59.000Z | 2020-04-17T23:10:23.000Z | ODFAEG/src/odfaeg/Graphics/3D/model.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2019-01-07T11:46:21.000Z | 2020-02-14T15:04:15.000Z | ODFAEG/src/odfaeg/Graphics/3D/model.cpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2016-01-05T09:54:57.000Z | 2021-01-06T18:52:26.000Z | #include "../../../../include/odfaeg/Graphics/3D/model.hpp"
namespace odfaeg {
namespace graphic {
namespace g3d {
Model::Model (std::string path, math::Vec3f position) : Entity(position, math::Vec3f(0, 0, 0), math::Vec3f(0, 0, 0),"E_3DMODEL") {
loadModel(path);
f... | 47.402778 | 142 | 0.43935 | Cwc-Test |
389bb94215e095c9f2f5762819fc4184f2ec9350 | 588 | cpp | C++ | Week-5/Day-30-kClosest.cpp | utkarshavardhana/may-leetcoding-challenge | 4f7600c943460029c595a3b2d85f86e68d7b7066 | [
"MIT"
] | 1 | 2020-05-02T04:21:54.000Z | 2020-05-02T04:21:54.000Z | Week-5/Day-30-kClosest.cpp | utkarshavardhana/may-leetcoding-challenge | 4f7600c943460029c595a3b2d85f86e68d7b7066 | [
"MIT"
] | null | null | null | Week-5/Day-30-kClosest.cpp | utkarshavardhana/may-leetcoding-challenge | 4f7600c943460029c595a3b2d85f86e68d7b7066 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> kClosest(vector<vector<int>>& points, int K) {
vector<vector<int>> res;
map<double, vector<vector<int>>> m;
for(vector<int> v : points) {
m[pow(v[0], 2) + pow(v[1], 2)].push_back(v);
}
for(auto it=m.begin(); it!... | 29.4 | 71 | 0.433673 | utkarshavardhana |
389d04e7a0f79975b08952e1e65483b787308640 | 3,056 | cpp | C++ | overlay/broadcast.cpp | michealbrownm/phantom | a1a41a6f9317c26e621952637c7e331c8dacf79d | [
"Apache-2.0"
] | 27 | 2020-09-24T03:14:13.000Z | 2021-11-29T14:00:36.000Z | overlay/broadcast.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | null | null | null | overlay/broadcast.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | 10 | 2020-09-24T14:34:30.000Z | 2021-02-22T06:50:31.000Z | /*
phantom 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 3 of the License, or
(at your option) any later version.
phantom is distributed in the hope that it will be useful,
but WITHOUT ANY ... | 30.56 | 92 | 0.707461 | michealbrownm |
38a742031f0a0aef783bbf8f8140cc82187b645f | 372 | cpp | C++ | CodeForces/is_your_horseshoe_other_hoof.cpp | PieroNarciso/cprogramming | d3a53ce2afce6f853e0b7cc394190d5be6427902 | [
"MIT"
] | 2 | 2021-05-22T17:47:01.000Z | 2021-05-27T17:10:58.000Z | CodeForces/is_your_horseshoe_other_hoof.cpp | PieroNarciso/cprogramming | d3a53ce2afce6f853e0b7cc394190d5be6427902 | [
"MIT"
] | null | null | null | CodeForces/is_your_horseshoe_other_hoof.cpp | PieroNarciso/cprogramming | d3a53ce2afce6f853e0b7cc394190d5be6427902 | [
"MIT"
] | null | null | null | // https://codeforces.com/problemset/problem/228/A
#include <bits/stdc++.h>
using namespace std;
void solve() {
unordered_set<int> diff;
int e;
for (int i = 0; i < 4; ++i) {
cin >> e;
diff.insert(e);
}
cout << 4 - diff.size() << endl;
}
int main(int argc, const char** argv) {
ios_base::sync_with_stdio(f... | 16.909091 | 50 | 0.604839 | PieroNarciso |
38a75abc26da7eb65a4fbec0feb94aff534129f8 | 5,517 | hpp | C++ | Test_Awesome_Engine_1/src/Camera/Aws_Camera.hpp | UjemnyGH/Awesome-VS-Prepared | 351476b06fbfa06b064d096e1f94185419d5e1d6 | [
"Apache-2.0"
] | 4 | 2021-11-24T16:43:22.000Z | 2021-12-01T17:22:11.000Z | Test_Awesome_Engine_1/src/Camera/Aws_Camera.hpp | UjemnyGH/Awesome-VS-Prepared | 351476b06fbfa06b064d096e1f94185419d5e1d6 | [
"Apache-2.0"
] | null | null | null | Test_Awesome_Engine_1/src/Camera/Aws_Camera.hpp | UjemnyGH/Awesome-VS-Prepared | 351476b06fbfa06b064d096e1f94185419d5e1d6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
namespace AWS
{
enum key {
//Letters
A = GLFW_KEY_A,
B = GLFW_KEY_B,
C = GLFW_KEY_C,
D = GLFW_KEY_D,
E = GLFW_KEY_E,
F = GLFW_KEY_F,
G = GLFW_KEY_G,
H = GLFW_KEY_H,
I = GLFW_... | 26.781553 | 69 | 0.532717 | UjemnyGH |
38aa4fa9791f5fc407da2016cc747913cb902136 | 2,664 | hpp | C++ | src/events/GraphEventSubscriber.hpp | maltewi/envire-envire_core | 549b64ed30ba8afc4d91ae67b216a78b40cee016 | [
"BSD-2-Clause"
] | 9 | 2017-05-13T12:33:46.000Z | 2021-01-27T18:50:40.000Z | src/events/GraphEventSubscriber.hpp | maltewi/envire-envire_core | 549b64ed30ba8afc4d91ae67b216a78b40cee016 | [
"BSD-2-Clause"
] | 37 | 2016-02-11T17:34:41.000Z | 2021-10-04T10:14:18.000Z | src/events/GraphEventSubscriber.hpp | maltewi/envire-envire_core | 549b64ed30ba8afc4d91ae67b216a78b40cee016 | [
"BSD-2-Clause"
] | 11 | 2016-07-11T14:49:34.000Z | 2021-06-04T08:23:39.000Z | //
// Copyright (c) 2015, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH.
// 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 ab... | 45.931034 | 92 | 0.73461 | maltewi |
38aa6725012d7328eeed8a44680eb7c440518a38 | 1,002 | hpp | C++ | include/logistic.hpp | ankitnandani/Binary_Logistic_NN | ac2090b0e85be78b22000b65a166b48e424a9854 | [
"MIT"
] | 1 | 2021-04-27T15:58:42.000Z | 2021-04-27T15:58:42.000Z | include/logistic.hpp | ankitnandani/Binary_Logistic_NN | ac2090b0e85be78b22000b65a166b48e424a9854 | [
"MIT"
] | null | null | null | include/logistic.hpp | ankitnandani/Binary_Logistic_NN | ac2090b0e85be78b22000b65a166b48e424a9854 | [
"MIT"
] | null | null | null | #ifndef __LOGISTIC_HPP
#define __LOGISTIC_HPP
#include <fstream>
#include <cmath>
#include "stdint.h"
#include "data.hpp"
#include "datahandler.hpp"
#include <string>
#include <vector>
class logistic
{
std::vector<double> y_hat;
std::vector<double> errors; //dA
std::vector<double> prediction;
std::vector<double> ... | 17.578947 | 53 | 0.704591 | ankitnandani |
38aad71746cfe2e3e37c4558e3615cf8287007c9 | 526 | cpp | C++ | API/GameEngineContents/BlackScreen.cpp | chaewoon83/WinApiPortfolio | e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef | [
"MIT"
] | null | null | null | API/GameEngineContents/BlackScreen.cpp | chaewoon83/WinApiPortfolio | e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef | [
"MIT"
] | null | null | null | API/GameEngineContents/BlackScreen.cpp | chaewoon83/WinApiPortfolio | e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef | [
"MIT"
] | null | null | null | #include "BlackScreen.h"
#include <windows.h>
#include <GameEngineBase/GameEngineWindow.h>
#include <GameEngine/GameEngineRenderer.h>
BlackScreen::BlackScreen()
{
}
BlackScreen::~BlackScreen()
{
}
GameEngineRenderer* BlackScreen::Renderer_ = nullptr;
void BlackScreen::Start()
{
Renderer_ = CreateRenderer("BlackB... | 15.939394 | 53 | 0.737643 | chaewoon83 |
38abc9266dcc6b65f4ede3347c253911f4ebdbee | 1,301 | cpp | C++ | solved/0-b/bicoloring/bicoloring.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/bicoloring/bicoloring.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/bicoloring/bicoloring.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstring>
#include <list>
#include <vector>
using namespace std;
#define MAXN 200
#define Zero(v) memset(v, 0, sizeof(v))
#define cFor(t,v,c) for(t::const_iterator v=c.begin(); v != c.end(); ++v)
// Graphs
struct Graph {
struct Edge { int v; Edge(int V) : v(V) {} };
typedef list<E... | 17.821918 | 74 | 0.464258 | abuasifkhan |
38b8916ee242f930358983701df86070a624b26d | 1,229 | cpp | C++ | core/src/cubos/core/memory/std_stream.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 2 | 2021-09-28T14:13:27.000Z | 2022-03-26T11:36:48.000Z | core/src/cubos/core/memory/std_stream.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 72 | 2021-09-29T08:55:26.000Z | 2022-03-29T21:21:00.000Z | core/src/cubos/core/memory/std_stream.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | null | null | null | #include <cubos/core/memory/std_stream.hpp>
using namespace cubos::core::memory;
StdStream::StdStream(FILE* file, bool close)
{
this->file = file;
this->close = close;
}
StdStream::StdStream(StdStream&& other)
{
this->file = other.file;
this->close = other.close;
other.file = nullptr;
other.c... | 18.343284 | 55 | 0.62978 | GameDevTecnico |
38b975c9ca74e9b81c236b1d7230f9dcf8adf999 | 544 | hpp | C++ | pythran/pythonic/__builtin__/pythran/ifexp.hpp | wizardxz/pythran | 9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/ifexp.hpp | wizardxz/pythran | 9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/ifexp.hpp | wizardxz/pythran | 9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_PYTHRAN_IFEXP_HPP
#define PYTHONIC_BUILTIN_PYTHRAN_IFEXP_HPP
#include "pythonic/include/__builtin__/pythran/ifexp.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/types/combined.hpp"
PYTHONIC_NS_BEGIN
namespace __builtin__
{
namespace pythran
{
template <class T0, cla... | 18.133333 | 69 | 0.696691 | wizardxz |
38bc397fb52dff134074b3ddeac7b85a087e310f | 5,194 | hpp | C++ | include/canard/asio/detail/bind_handler.hpp | amedama41/write_queue_stream | 2ec1078218890e33d2192c1aa59786e63e8bd375 | [
"BSL-1.0"
] | null | null | null | include/canard/asio/detail/bind_handler.hpp | amedama41/write_queue_stream | 2ec1078218890e33d2192c1aa59786e63e8bd375 | [
"BSL-1.0"
] | 3 | 2016-07-09T04:10:53.000Z | 2017-06-07T11:11:47.000Z | include/canard/asio/detail/bind_handler.hpp | amedama41/write_queue_stream | 2ec1078218890e33d2192c1aa59786e63e8bd375 | [
"BSL-1.0"
] | null | null | null | #ifndef CANARD_ASIO_BIND_HANDLER_HPP
#define CANARD_ASIO_BIND_HANDLER_HPP
#include <utility>
#include <memory>
#include <type_traits>
#include <boost/asio/handler_alloc_hook.hpp>
#include <boost/asio/handler_continuation_hook.hpp>
#include <boost/asio/handler_invoke_hook.hpp>
namespace canard {
namespace detail {
... | 27.193717 | 78 | 0.632075 | amedama41 |
38c3522e0932978f94778e01386ba465ac33e565 | 3,407 | cpp | C++ | build/moc_chatterboxpage.cpp | Crypto-Currency/bitcoin-scrypt-chat | 54025917a81e25a0390cced2541c215dde472421 | [
"MIT"
] | null | null | null | build/moc_chatterboxpage.cpp | Crypto-Currency/bitcoin-scrypt-chat | 54025917a81e25a0390cced2541c215dde472421 | [
"MIT"
] | null | null | null | build/moc_chatterboxpage.cpp | Crypto-Currency/bitcoin-scrypt-chat | 54025917a81e25a0390cced2541c215dde472421 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'chatterboxpage.h'
**
** Created: Tue Jul 23 09:53:30 2019
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
**
** WARNING! All changes made in this file will be lost!
********************... | 31.546296 | 94 | 0.614323 | Crypto-Currency |
38c3cde4909e7987188f6a5e3b49037a9a1022aa | 926 | cpp | C++ | src/Dialogs/LayoutSavingDialog.cpp | Megaxela/QLayoutBasedMainWindow | 0d820e66c7ff6ef1fc2079d4c2b938e59a89bf3a | [
"MIT"
] | 2 | 2020-11-06T14:40:56.000Z | 2020-11-06T15:16:08.000Z | src/Dialogs/LayoutSavingDialog.cpp | Megaxela/QLayoutBasedMainWindow | 0d820e66c7ff6ef1fc2079d4c2b938e59a89bf3a | [
"MIT"
] | null | null | null | src/Dialogs/LayoutSavingDialog.cpp | Megaxela/QLayoutBasedMainWindow | 0d820e66c7ff6ef1fc2079d4c2b938e59a89bf3a | [
"MIT"
] | null | null | null | #include <Dialogs/LayoutSavingDialog.h>
#include <QDialogButtonBox>
#include <ui_layout_saving_dialog.h>
LayoutSavingDialog::LayoutSavingDialog(QWidget *parent) :
QDialog(parent),
m_ui(new Ui::SaveLayoutDialog),
m_layoutName()
{
m_ui->setupUi(this);
setModal(true);
performConnecti... | 21.045455 | 57 | 0.679266 | Megaxela |
38c537767b329545982f998ce7b08baff3dabce5 | 625 | hpp | C++ | src/definitions/base_definition.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/definitions/base_definition.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/definitions/base_definition.hpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <vector>
#include "../non_copyable.hpp"
namespace space
{
typedef std::string DefinitionId;
typedef std::vector<DefinitionId> DefinitionIds;
class Engine;
class BaseDefinition : private NonCopyable
{
public:
// Fiel... | 20.16129 | 52 | 0.5936 | astrellon |
38c6e660c58dcbf4c2315305bd9d85a60516aa70 | 5,198 | cpp | C++ | Sandbox/src/Game/Npc/NpcRepository.cpp | Benner727/SquareRPG | 9333ff8417cf1bb74e215ab671554b9708551b64 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Game/Npc/NpcRepository.cpp | Benner727/SquareRPG | 9333ff8417cf1bb74e215ab671554b9708551b64 | [
"Apache-2.0"
] | 2 | 2020-05-15T22:20:54.000Z | 2020-05-24T06:49:52.000Z | Sandbox/src/Game/Npc/NpcRepository.cpp | Benner727/SquareRPG | 9333ff8417cf1bb74e215ab671554b9708551b64 | [
"Apache-2.0"
] | null | null | null | #include "Game/Npc/NpcRepository.h"
NpcRepository& NpcRepository::Instance()
{
static NpcRepository instance;
return instance;
}
NpcRepository::NpcRepository()
{
Init();
}
NpcRepository::~NpcRepository()
{
for (auto npc : mNpcDefinitions)
delete npc.second;
for (auto npc : mNpcCombatDefinitions)
delete npc... | 26.120603 | 127 | 0.713928 | Benner727 |
38c7e69a706532f9d713851614d0b8ee34b4b92a | 4,405 | hpp | C++ | include/kkl/alg/kalman_filter.hpp | y-lai/hdl_people_tracking | fb7ec799047b8ea833a175abd2599793b8966c24 | [
"BSD-2-Clause"
] | 207 | 2018-03-10T14:56:21.000Z | 2022-03-19T07:32:53.000Z | include/kkl/alg/kalman_filter.hpp | y-lai/hdl_people_tracking | fb7ec799047b8ea833a175abd2599793b8966c24 | [
"BSD-2-Clause"
] | 24 | 2018-02-19T10:50:09.000Z | 2022-02-21T19:44:55.000Z | include/kkl/alg/kalman_filter.hpp | y-lai/hdl_people_tracking | fb7ec799047b8ea833a175abd2599793b8966c24 | [
"BSD-2-Clause"
] | 91 | 2018-02-23T09:44:25.000Z | 2022-02-03T01:38:14.000Z | /**
* KalmanFilter.hpp
* @author : koide
* 13/08/04
**/
#ifndef KKL_KALMAN_FILTER_HPP
#define KKL_KALMAN_FILTER_HPP
#include <Eigen/Dense>
namespace kkl{
namespace alg{
/*****************************************************
* Kalman filter
* T : type of scalar
* stateDim : dimension of the state
* inputDim... | 34.414063 | 204 | 0.611351 | y-lai |
38c82151cc150bc799527073458f30843fac36c7 | 6,203 | cpp | C++ | player.cpp | Michal-Waszkowiak/PSIO-project | 237ca2db15c5bb6d3d89b1862d86273ba1ea7d46 | [
"MIT"
] | null | null | null | player.cpp | Michal-Waszkowiak/PSIO-project | 237ca2db15c5bb6d3d89b1862d86273ba1ea7d46 | [
"MIT"
] | null | null | null | player.cpp | Michal-Waszkowiak/PSIO-project | 237ca2db15c5bb6d3d89b1862d86273ba1ea7d46 | [
"MIT"
] | null | null | null | #include "player.h"
void Player::createVariables()
{
this ->animationStates = PLAYER_ANIMATION_STATES::IDLE;
}
void Player::createTexture()
{
if(!this->textureSheet.loadFromFile("Images/postac_animacje_prawo.png"))
{
std::cout<<"Halo prosze wczytac gracza!"<< std::endl;
}
}
void Player::cre... | 21.316151 | 103 | 0.597292 | Michal-Waszkowiak |
38cae02614c44c2c8753212e73a82fff8497f015 | 9,117 | hpp | C++ | unittests/general/Several/bin/firebird/include/firebird/impl/boost/preprocessor/arithmetic/dec.hpp | jiemurat/delphimvcframework | 6bfa63b85a2e4ce3ba03fc4df11d2ed654021e54 | [
"Apache-2.0"
] | 1,009 | 2015-05-28T12:34:39.000Z | 2022-03-30T14:10:18.000Z | unittests/general/Several/bin/firebird/include/firebird/impl/boost/preprocessor/arithmetic/dec.hpp | jiemurat/delphimvcframework | 6bfa63b85a2e4ce3ba03fc4df11d2ed654021e54 | [
"Apache-2.0"
] | 574 | 2016-03-23T15:35:56.000Z | 2022-03-31T07:11:03.000Z | unittests/general/Several/bin/firebird/include/firebird/impl/boost/preprocessor/arithmetic/dec.hpp | jiemurat/delphimvcframework | 6bfa63b85a2e4ce3ba03fc4df11d2ed654021e54 | [
"Apache-2.0"
] | 377 | 2015-05-28T16:29:21.000Z | 2022-03-21T18:36:12.000Z | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.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)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... | 31.546713 | 68 | 0.833059 | jiemurat |
38d2faa056417d98ccfa75a678ecea827d542012 | 765 | cpp | C++ | qt-ticket/src/issuerulelistmodel.cpp | waitWindComing/QT | c8401679b7265785ec8c7e97eea7e1e37631f37d | [
"Apache-2.0"
] | null | null | null | qt-ticket/src/issuerulelistmodel.cpp | waitWindComing/QT | c8401679b7265785ec8c7e97eea7e1e37631f37d | [
"Apache-2.0"
] | null | null | null | qt-ticket/src/issuerulelistmodel.cpp | waitWindComing/QT | c8401679b7265785ec8c7e97eea7e1e37631f37d | [
"Apache-2.0"
] | null | null | null | #include "issuerulelistmodel.h"
IssueRuleListModel::IssueRuleListModel(QList<IssueRule *> &rules, QObject* parent)
:_rules(rules),
QAbstractListModel(parent)
{
}
int IssueRuleListModel::rowCount(const QModelIndex& parent) const
{
return _rules.size();
}
QVariant IssueRuleListModel::data(const QModelInd... | 20.675676 | 82 | 0.694118 | waitWindComing |
38d402aae2d0e53411d3e7b9138aaf2bdccc9846 | 2,618 | cpp | C++ | example_movenet_singleLightning/src/ofApp.cpp | stephanschulz/ofxTensorFlow2 | e9b778147b1881c593fbf91fa18c0aa2e171b408 | [
"BSD-2-Clause"
] | null | null | null | example_movenet_singleLightning/src/ofApp.cpp | stephanschulz/ofxTensorFlow2 | e9b778147b1881c593fbf91fa18c0aa2e171b408 | [
"BSD-2-Clause"
] | null | null | null | example_movenet_singleLightning/src/ofApp.cpp | stephanschulz/ofxTensorFlow2 | e9b778147b1881c593fbf91fa18c0aa2e171b408 | [
"BSD-2-Clause"
] | null | null | null | /*
* Example made with love by Natxopedreira 2021
* https://github.com/natxopedreira
* Updated by members of the ZKM | Hertz-Lab 2021
*/
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
ofSetVerticalSync(true);
//TODO
// o... | 25.666667 | 83 | 0.50191 | stephanschulz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.