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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5fa7a8f4a6bd79c3aec5733f783719979661f4e9 | 730 | cpp | C++ | lightoj/1138.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | lightoj/1138.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | lightoj/1138.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 1000000000
#define ll long long
using namespace std;
ll fnc1(ll a){
ll re = a / 5;
if(re < 1) return 0;
return re + fnc1(re);
}
ll fnc(ll key){
ll hi = le, lo = 0, mid, ans = 0;
while(lo <= hi){
mid = (lo + hi) >> 1;
ll x = fnc1(mid);
if(k... | 20.277778 | 40 | 0.436986 | cosmicray001 |
5fae7f4f4b81d4c872ae57bc51cfe4bf1178b05c | 1,085 | cpp | C++ | proto_server/core/data/proto_tcp_upstream_pipeline.cpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | proto_server/core/data/proto_tcp_upstream_pipeline.cpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | proto_server/core/data/proto_tcp_upstream_pipeline.cpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2016 Terry Seyler
//
// Distributed under the MIT License
// See accompanying file LICENSE.md
//
#include <core/data/proto_tcp_upstream_pipeline.hpp>
namespace proto_net
{
namespace data
{
proto_tcp_upstream_pipeline::proto_tcp_upstream_pipeline() : proto_net_pipeline()
... | 23.586957 | 121 | 0.61659 | tseyler |
5fb68d9cb52c7adba9c13bfa6d84dbebf23e9c5b | 1,558 | cpp | C++ | src/ProgrammersGlasses/modules/dev/pe/PortableExecutableReader.cpp | vividos/ProgrammersGlasses | d54f4dce46aa1db1b2fb5db8f6b00366aaf23e02 | [
"MIT"
] | 1 | 2020-05-11T11:46:38.000Z | 2020-05-11T11:46:38.000Z | src/ProgrammersGlasses/modules/dev/pe/PortableExecutableReader.cpp | vividos/ProgrammersGlasses | d54f4dce46aa1db1b2fb5db8f6b00366aaf23e02 | [
"MIT"
] | null | null | null | src/ProgrammersGlasses/modules/dev/pe/PortableExecutableReader.cpp | vividos/ProgrammersGlasses | d54f4dce46aa1db1b2fb5db8f6b00366aaf23e02 | [
"MIT"
] | null | null | null | //
// Programmer's Glasses - a developer's file content viewer
// Copyright (c) 2020 Michael Fink
//
/// \file PortableExecutableReader.cpp
/// \brief reader for Portable Executable files
//
#include "stdafx.h"
#include "PortableExecutableReader.hpp"
#include "DosMzHeader.hpp"
#include "modules/CodeTextViewNode.hpp"
#i... | 26.40678 | 93 | 0.724005 | vividos |
5fbbbf8cc7196a571e82895c8f9e8dc1e35acac5 | 2,018 | cpp | C++ | tests/vec3.cpp | JustSlavic/gl2 | 1b4752d3273a1e401c970e18ae7151bba004a4ec | [
"MIT"
] | null | null | null | tests/vec3.cpp | JustSlavic/gl2 | 1b4752d3273a1e401c970e18ae7151bba004a4ec | [
"MIT"
] | 2 | 2021-05-29T20:34:50.000Z | 2021-05-29T20:39:25.000Z | tests/vec3.cpp | JustSlavic/gl2 | 1b4752d3273a1e401c970e18ae7151bba004a4ec | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <math/vector2.hpp>
#include <math/vector3.hpp>
TEST(Vec3, SizeOf) {
EXPECT_EQ(sizeof(math::vector3), sizeof(f32) * 3);
}
TEST(Vec3, XY_Coords) {
auto v = math::vector3::make(1.f, 2.f, 3.f);
EXPECT_EQ(v.x, v.u); EXPECT_EQ(v.x, v.r);
EXPECT_EQ(v.y, v.v); EXPECT_EQ(v.... | 27.27027 | 61 | 0.574331 | JustSlavic |
5fbd1fe0b5201688dfdd3e8fe2ff75038425a26b | 2,548 | cpp | C++ | src/Sample.cpp | elmindreda/Nori | fdeec9970ee6a254bae389ade4455171df875473 | [
"Zlib"
] | 23 | 2015-06-13T22:42:38.000Z | 2019-08-06T19:56:19.000Z | src/Sample.cpp | elmindreda/nori | fdeec9970ee6a254bae389ade4455171df875473 | [
"Zlib"
] | null | null | null | src/Sample.cpp | elmindreda/nori | fdeec9970ee6a254bae389ade4455171df875473 | [
"Zlib"
] | 3 | 2015-05-31T17:01:10.000Z | 2020-03-26T13:55:24.000Z | ///////////////////////////////////////////////////////////////////////
// Nori - a simple game engine
// Copyright (c) 2011 Camilla Berglund <elmindreda@elmindreda.org>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any
// damages ar... | 28.629213 | 80 | 0.61617 | elmindreda |
5fbd732c3a5f7cf30f49dbc182fcd993eaea5728 | 5,279 | hpp | C++ | skynet/ml/common.hpp | zhangzhimin/skynet | a311b86433821a071002dd279d57333baba1f973 | [
"MIT"
] | 5 | 2015-08-02T03:10:26.000Z | 2018-01-16T01:07:55.000Z | skynet/ml/common.hpp | zhangzhimin/skynet | a311b86433821a071002dd279d57333baba1f973 | [
"MIT"
] | null | null | null | skynet/ml/common.hpp | zhangzhimin/skynet | a311b86433821a071002dd279d57333baba1f973 | [
"MIT"
] | null | null | null | /*=============================================================================
The MIT License (MIT)
Copyright @ 2013 Zhang Zhimin5
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 restr... | 32.78882 | 99 | 0.666982 | zhangzhimin |
5fbd77f732ff3225e48aaeb538c0e61de4ccd5c6 | 605 | cpp | C++ | Apophis.Tests/TransferFunction/ITransferFunctionTests.cpp | elpollouk/Apophis | a400a3d689750502137b048eef8e8246f7c04d6b | [
"MIT"
] | null | null | null | Apophis.Tests/TransferFunction/ITransferFunctionTests.cpp | elpollouk/Apophis | a400a3d689750502137b048eef8e8246f7c04d6b | [
"MIT"
] | null | null | null | Apophis.Tests/TransferFunction/ITransferFunctionTests.cpp | elpollouk/Apophis | a400a3d689750502137b048eef8e8246f7c04d6b | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "apophis/TransferFunction/Relu.h"
#include "apophis/TransferFunction/Sigmoid.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace Apophis::TransferFunction;
namespace ApophisTests { namespace TransferFunction {
TEST_CLASS(ITransferFunctionTests)
{
public:
... | 23.269231 | 62 | 0.733884 | elpollouk |
5fd8b74d5f4425e3088c0b6f0149e8b704f0c555 | 10,252 | cpp | C++ | src/ui/win/tabs/MyTabWindow.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | src/ui/win/tabs/MyTabWindow.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | src/ui/win/tabs/MyTabWindow.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | #include "WinFile.h"
#include "resource.h"
#include "MyTabWindow.h"
#include "MyEditorDlg.h"
#include "MyEditor.h"
#include "MyEditorHandlerWin.h"
extern WNDPROC gTabProc;
HIMAGELIST g_ImageList;
using namespace std;
MyTabWindow::MyTabWindow(HINSTANCE app)
{
_app = app;
_isDragging = false;
... | 23.09009 | 120 | 0.623293 | masmullin2000 |
5fdba9f6657e6974f510769667a6dd0ce102ad3b | 550 | cc | C++ | IntroductionToC++/while_loop.cc | fsande/IB-class-code-examples | b883cc66c4d5f945b170ff61725dcf38f444bea8 | [
"MIT"
] | 4 | 2020-11-25T12:48:04.000Z | 2021-01-07T01:52:40.000Z | IntroductionToC++/while_loop.cc | fsande/IB-class-code-examples | b883cc66c4d5f945b170ff61725dcf38f444bea8 | [
"MIT"
] | null | null | null | IntroductionToC++/while_loop.cc | fsande/IB-class-code-examples | b883cc66c4d5f945b170ff61725dcf38f444bea8 | [
"MIT"
] | 17 | 2020-10-05T15:03:06.000Z | 2021-10-04T09:26:09.000Z | /**
* Universidad de La Laguna
* Escuela Superior de Ingeniería y Tecnología
* Grado en Ingeniería Informática
* Informática Básica
*
* @author F. de Sande
* @date 8 Jun 2020
* @brief while loop
*
* Countdown using while
*
* @see http://www.cplusplus.com/doc/tutorial/control/
*/
#include <iostream>
int m... | 20.37037 | 61 | 0.665455 | fsande |
5fddf05cda583632a1ab87fac810d29586071359 | 4,719 | cpp | C++ | client/source/main.cpp | dfbydx-com/prinsight | 8765432ff6db7e6ad02bdfb0015e13a4f33d0a96 | [
"Apache-2.0"
] | null | null | null | client/source/main.cpp | dfbydx-com/prinsight | 8765432ff6db7e6ad02bdfb0015e13a4f33d0a96 | [
"Apache-2.0"
] | null | null | null | client/source/main.cpp | dfbydx-com/prinsight | 8765432ff6db7e6ad02bdfb0015e13a4f33d0a96 | [
"Apache-2.0"
] | 1 | 2021-07-12T09:25:01.000Z | 2021-07-12T09:25:01.000Z | #include <prinsight/version.h>
#include <iostream>
#include <prinsight/prinsight.hpp>
#include <string>
#include <unordered_map>
#include <vector>
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
#include <spdlog/spdlog.h>
//#define RESTINCURL_USE_SYSLOG 0
#define RESTINCURL_ENABLE_DEFAULT_LOGGER 1
//#define RESTINCURL... | 31.671141 | 98 | 0.684467 | dfbydx-com |
5ffc40c11f9967cec8d40ca6ac80fe3c6d0b253f | 284 | cpp | C++ | src/UOJ_1761 - (1705033) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1761 - (1705033) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1761 - (1705033) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <cstdio>
#include <cmath>
#define sc3(a,b,c) scanf("%lf %lf %lf", &a, &b, &c)
const double PI = 3.1415926535897932384626433832795;
int main(void)
{
double a, b, c;
while(sc3(a,b,c) == 3)
printf("%.2lf\n", (c + (b * tan(a*PI/180.0))) * 5);
return 0;
} | 18.933333 | 54 | 0.556338 | miguelarauj1o |
5ffeed5ac9325054752f3363559e61c49ef220a2 | 1,155 | cpp | C++ | PocoExamples/PocoExamples/LEIAddress.cpp | geo-stanciu/cpp-play | 599fa032513f9026550471f5a5ed77b9abaff173 | [
"MIT"
] | null | null | null | PocoExamples/PocoExamples/LEIAddress.cpp | geo-stanciu/cpp-play | 599fa032513f9026550471f5a5ed77b9abaff173 | [
"MIT"
] | null | null | null | PocoExamples/PocoExamples/LEIAddress.cpp | geo-stanciu/cpp-play | 599fa032513f9026550471f5a5ed77b9abaff173 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "LEIAddress.h"
#include "StringUtil.h"
#include "LEIParser.h"
using namespace Poco::JSON;
using namespace Poco::Dynamic;
LEIAddress::LEIAddress() {
}
LEIAddress::~LEIAddress() {
if (Line1) free(Line1);
if (City) free(City);
if (Region) free(Region);
if (Country) free(C... | 27.5 | 69 | 0.642424 | geo-stanciu |
dfdb0288f3f436ca00460aef5551c9e1b00b4158 | 2,827 | cpp | C++ | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_humancannonball.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_humancannonball.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_humancannonball.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - humancannonball
* easy in theory, abit tedious in practise. We do Floyd-Warshall on all the cannons to determine
* the fastest time to get between any 2 cannons. Then we do a n^2 check to go from A to
* cannon i to cannon j to B. Note that between any 2 locations, we can always either run or
* use the c... | 35.3375 | 123 | 0.536611 | BrandonTang89 |
dfedceef5c594a2623dec219d03970bd0804df37 | 1,330 | cpp | C++ | codeforces/C - A Tale of Two Lands/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - A Tale of Two Lands/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - A Tale of Two Lands/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: May/18/2019 00:57
* solution_verdict: Accepted language: GNU C++14
* run... | 32.439024 | 111 | 0.483459 | kzvd4729 |
dff1fa89db84f43b7c882bbb29972f582db25e97 | 3,916 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_RiderFlyingWindWoosh_Trope_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_RiderFlyingWindWoosh_Trope_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_RiderFlyingWindWoosh_Trope_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_RiderFlyingWindWoosh_Trope_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------... | 47.180723 | 173 | 0.63049 | 2bite |
dff23994bec6bd7335d822f0ed1196ad87cce9e8 | 2,340 | cc | C++ | Engine/app/ALSystemFeature/ALSystemFeature.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 26 | 2015-01-15T12:57:40.000Z | 2022-02-16T10:07:12.000Z | Engine/app/ALSystemFeature/ALSystemFeature.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | null | null | null | Engine/app/ALSystemFeature/ALSystemFeature.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 17 | 2015-02-18T07:51:31.000Z | 2020-06-01T01:10:12.000Z | /****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
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... | 27.529412 | 81 | 0.649573 | BikkyS |
dff628a6c00a892eac71becbeeea6504d12d3225 | 13,275 | hpp | C++ | include/caffe/custom_layers.hpp | jwyang/JULE-Caffe | 797292223e9e9021e31730c87b9abc86f08fce0c | [
"MIT"
] | 22 | 2016-11-14T18:43:50.000Z | 2020-03-05T05:51:19.000Z | include/caffe/custom_layers.hpp | jwyang/JULE-Caffe | 797292223e9e9021e31730c87b9abc86f08fce0c | [
"MIT"
] | 2 | 2017-04-20T03:05:41.000Z | 2019-08-25T14:07:33.000Z | include/caffe/custom_layers.hpp | jwyang/JULE-Caffe | 797292223e9e9021e31730c87b9abc86f08fce0c | [
"MIT"
] | 6 | 2016-11-22T19:37:45.000Z | 2020-02-18T13:52:22.000Z | #ifndef CAFFE_CUSTOM_LAYERS_HPP_
#define CAFFE_CUSTOM_LAYERS_HPP_
#include <string>
#include <utility>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/layer.hpp"
#include "caffe/neuron_layers.hpp"
#include "caffe/loss_layers.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caf... | 35.119048 | 83 | 0.701092 | jwyang |
5f0c0ebe33d3f734ac66f369d797e0728a09db3a | 897 | cpp | C++ | main.cpp | MadCatX/FFBChecker | 815d7d44fca0483dd222841b15bcf99d0bc1d2f2 | [
"MIT"
] | 25 | 2015-11-02T01:32:30.000Z | 2022-03-15T07:52:19.000Z | main.cpp | MadCatX/FFBChecker | 815d7d44fca0483dd222841b15bcf99d0bc1d2f2 | [
"MIT"
] | 1 | 2020-03-06T11:54:11.000Z | 2020-05-05T17:15:03.000Z | main.cpp | MadCatX/FFBChecker | 815d7d44fca0483dd222841b15bcf99d0bc1d2f2 | [
"MIT"
] | 2 | 2016-10-28T13:43:28.000Z | 2018-04-13T03:12:27.000Z | #include "deviceprober.h"
#include "globalsettings.h"
#include "mainwindow.h"
#include <QtWidgets/QApplication>
#ifdef FFBC_PLATFORM_WIN32
#include <QtCore/QtPlugin>
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
#endif
const QString NO_CHECKS_ARG("--no-checks");
int main(int argc, char** argv)
{
QApplication myApp(ar... | 24.916667 | 138 | 0.700111 | MadCatX |
5f0ccedc869c04894da1d3d817815d1dd8c649c9 | 1,979 | cpp | C++ | Study/cpp/Heap/modifiable_heap.cpp | jongja/jongja | 7293edfd1e66b5ddb990954dcadae76b4723d7bb | [
"MIT"
] | 4 | 2020-08-24T14:59:38.000Z | 2021-08-08T16:50:15.000Z | Study/cpp/Heap/modifiable_heap.cpp | jongja/jongja | 7293edfd1e66b5ddb990954dcadae76b4723d7bb | [
"MIT"
] | null | null | null | Study/cpp/Heap/modifiable_heap.cpp | jongja/jongja | 7293edfd1e66b5ddb990954dcadae76b4723d7bb | [
"MIT"
] | 5 | 2020-08-20T15:16:29.000Z | 2021-03-02T13:33:00.000Z | /* MODIFIABLE MAX HEAP
*
* Modifible Max heap algorithm for priority queue.
* Time Complexity : O(nlogn)
* If we want to change a node value in heap data structure, we need to keep the rules for the data structure.
* This can be solved by using push and pop algorithms as they are.
*
*/
#define MAX_HEAP_SIZE ... | 22.235955 | 110 | 0.593734 | jongja |
5f13c0b620fbe7571f3e542ff0b52252c2cff80a | 4,465 | cpp | C++ | 5/5.cpp | stnma7e/advent-of-code | 7b57c93cc262bb707e3632960ae742b0b6c8349c | [
"MIT"
] | null | null | null | 5/5.cpp | stnma7e/advent-of-code | 7b57c93cc262bb707e3632960ae742b0b6c8349c | [
"MIT"
] | null | null | null | 5/5.cpp | stnma7e/advent-of-code | 7b57c93cc262bb707e3632960ae742b0b6c8349c | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <sstream>
#include <iterator>
#include <math.h>
const int LEN_OPCODE = 2;
const int LEN_PARAMS = 10;
const int LEN_INSTR = LEN_OPCODE + LEN_PARAMS;
struct Instruction
{
int opcode;
int par_mode[LEN_PARAMS];... | 20.767442 | 90 | 0.350952 | stnma7e |
5f1b94de0ca8667fe649c6ee854fb8b9e1c7739a | 33,562 | cpp | C++ | engine/src/pipeline_manager.cpp | unyankee/OutterSpace | a0746dd8d32b33be36f6972ace53f7b71f09d470 | [
"MIT"
] | null | null | null | engine/src/pipeline_manager.cpp | unyankee/OutterSpace | a0746dd8d32b33be36f6972ace53f7b71f09d470 | [
"MIT"
] | null | null | null | engine/src/pipeline_manager.cpp | unyankee/OutterSpace | a0746dd8d32b33be36f6972ace53f7b71f09d470 | [
"MIT"
] | null | null | null | #include "pipeline_manager.h"
#include "engine.h"
void PipelineManager::register_task_description(const TaskDescription& task_description)
{
const uint32_t task_description_id = task_description.get_task_description_id();
const bool already_created = (m_bindings_per_task_description.find(task_descripti... | 52.605016 | 179 | 0.684792 | unyankee |
5f1f02fcb876eec472dbe17512b8d0599d017b44 | 25,136 | hpp | C++ | src/Memory/HeapAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | src/Memory/HeapAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | 29 | 2016-08-01T14:50:12.000Z | 2017-12-17T20:28:27.000Z | src/Memory/HeapAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2016 Ronnie Brohn (EpicBrownie)
//
// Distributed under The MIT License (MIT).
// (See accompanying file License.txt or copy at
// https://opensource.org/licens... | 32.986877 | 146 | 0.719764 | epicbrownie |
5f22d9ff0d994a71c91a11d1e351d29c138e957d | 10,622 | hpp | C++ | src/nanocall/Pore_Model.hpp | mateidavid/nanocall | 2f92983fbb6147747a252d6d90da71120e475a26 | [
"MIT"
] | 78 | 2016-03-28T23:14:45.000Z | 2022-02-28T09:18:25.000Z | src/nanocall/Pore_Model.hpp | mateidavid/nanocall | 2f92983fbb6147747a252d6d90da71120e475a26 | [
"MIT"
] | 21 | 2016-04-11T18:51:17.000Z | 2021-05-15T07:47:55.000Z | src/nanocall/Pore_Model.hpp | mateidavid/nanocall | 2f92983fbb6147747a252d6d90da71120e475a26 | [
"MIT"
] | 21 | 2016-03-30T13:35:40.000Z | 2021-09-09T18:40:16.000Z | //---------------------------------------------------------
// Copyright 2015 Ontario Institute for Cancer Research
// Written by Jared Simpson (jared.simpson@oicr.on.ca)
//---------------------------------------------------------
//
// nanopolish_poremodel -- Representation of the Oxford
// Nanopore sequencing model, ... | 33.19375 | 129 | 0.601111 | mateidavid |
5f2a081dfc01ddf5f8358043465a4b8f23404799 | 408 | hh | C++ | kernel/memory/physical_range.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | kernel/memory/physical_range.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | kernel/memory/physical_range.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | #pragma once
#include <ax_util/types.hh>
namespace Kernel::Memory {
enum class PhysicalRangeType {
Unknown,
Usable,
Reserved,
ACPIReclaimable,
ACPINVS,
BadMemory,
BootloaderReclaimable,
KernelAndModules,
Framebuffer,
};
struct PhysicalRange {
PhysicalRangeType type;
addr_t start;
size_t ... | 13.16129 | 32 | 0.710784 | ErrorOnUsername |
5f2bbcadb14a4d7398e519b9a2d671f2b186a826 | 1,553 | cpp | C++ | Projects/WebAthl/Properties.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | null | null | null | Projects/WebAthl/Properties.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | null | null | null | Projects/WebAthl/Properties.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | 1 | 2021-07-05T10:10:21.000Z | 2021-07-05T10:10:21.000Z | // Properties.cpp : implementation file
//
#include "stdafx.h"
#include "Registry.h"
#include "Properties.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CProperties
/////////////////... | 16.880435 | 83 | 0.575016 | darianbridge |
5f3cf78a4edb39a6de88e98ccc31d2758e493e21 | 353 | cc | C++ | P2 First Loops/P39057.cc | miquelt9/Problemes-PRO1 | 1bd5214ce75129e9a027728b93ad8354ec993e41 | [
"Apache-2.0"
] | 2 | 2021-09-01T10:52:32.000Z | 2021-11-09T09:19:57.000Z | P2 First Loops/P39057.cc | miquelt9/Problemes-PRO1 | 1bd5214ce75129e9a027728b93ad8354ec993e41 | [
"Apache-2.0"
] | null | null | null | P2 First Loops/P39057.cc | miquelt9/Problemes-PRO1 | 1bd5214ce75129e9a027728b93ad8354ec993e41 | [
"Apache-2.0"
] | 1 | 2021-09-24T20:00:41.000Z | 2021-09-24T20:00:41.000Z | #include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
string forma;
cout.setf(ios::fixed);
cout.precision(6);
double a, b;
while(n > 0){
cin >> forma;
if(forma == "rectangle"){
cin >> a >> b;
cout << a*b << endl;
} else if(forma == "cercle"){
cin >> a;
cout << ... | 15.347826 | 31 | 0.538244 | miquelt9 |
5f4e9c1c0f8f9f4d93c5dc09d6e6721e83717486 | 3,184 | cpp | C++ | src/test/Test.cpp | mdhooge/qt-handlebars | e950052e0e758413ee09a9c91499481a3ea51b11 | [
"MIT"
] | 1 | 2022-01-11T19:57:39.000Z | 2022-01-11T19:57:39.000Z | src/test/Test.cpp | mdhooge/qt-handlebars | e950052e0e758413ee09a9c91499481a3ea51b11 | [
"MIT"
] | null | null | null | src/test/Test.cpp | mdhooge/qt-handlebars | e950052e0e758413ee09a9c91499481a3ea51b11 | [
"MIT"
] | 2 | 2016-11-17T12:35:03.000Z | 2022-01-11T19:57:19.000Z | #include <QtTest/QtTest>
#include <QTextStream>
#include "HandlebarsIStreamManager.h"
#include "HandlebarsParser.h"
#include "ExtraHelpers.h"
using namespace Handlebars;
#include "ConsoleLogger.h"
#include "DemoContext.h"
class Test : public QObject
{
Q_OBJECT
public:
Test();
private slots:
void initTestCas... | 20.947368 | 90 | 0.597362 | mdhooge |
34fdc9f2ddaec26d6447e61bb22dfa0eac8a008c | 379 | hpp | C++ | src/engine/server/EngineServer.hpp | BlackPhrase/V-Engine | ee9a9c63a380732dace75bcc1e398cabc444feba | [
"MIT"
] | 1 | 2018-06-22T15:46:42.000Z | 2018-06-22T15:46:42.000Z | src/engine/server/EngineServer.hpp | BlackPhrase/V-Engine | ee9a9c63a380732dace75bcc1e398cabc444feba | [
"MIT"
] | 3 | 2018-05-13T14:15:53.000Z | 2018-05-29T08:06:26.000Z | src/engine/server/EngineServer.hpp | BlackPhrase/V-Engine | ee9a9c63a380732dace75bcc1e398cabc444feba | [
"MIT"
] | null | null | null | /// @file
#pragma once
#include "server/IEngineServer.hpp"
struct IGame;
class CServerEnv;
class CEngineServer final : public IEngineServer
{
public:
CEngineServer();
~CEngineServer();
bool Init(ICoreEnv *apCoreEnv) override;
void Shutdown() override;
void Frame() override;
private:
bool InitGame();
CS... | 15.16 | 48 | 0.733509 | BlackPhrase |
5510457631dfd16f50614f024e9c2a96d2a7a172 | 1,666 | hpp | C++ | samples/golf/src/golf/MenuSoundDirector.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/golf/src/golf/MenuSoundDirector.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/golf/src/golf/MenuSoundDirector.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2021
http://trederia.blogspot.com
crogine application - Zlib license.
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 ... | 26.444444 | 76 | 0.668667 | fallahn |
5511d88dc3fefedb828c6f551f20b1d01e3f5cc3 | 1,356 | hpp | C++ | thirdparty/DungeonTemplateLibrary/DTL/Type/ThreadLocal.hpp | AsPJT/CrafterraProterozoic | d0531d2052b1bb5c10b6763f74034e6e3c678d1f | [
"CC0-1.0"
] | 587 | 2018-12-16T08:16:41.000Z | 2021-01-27T15:43:17.000Z | thirdparty/DungeonTemplateLibrary/DTL/Type/ThreadLocal.hpp | AsPJT/CrafterraProterozoic | d0531d2052b1bb5c10b6763f74034e6e3c678d1f | [
"CC0-1.0"
] | 20 | 2019-04-24T12:49:31.000Z | 2019-12-27T17:45:04.000Z | thirdparty/DungeonTemplateLibrary/DTL/Type/ThreadLocal.hpp | AsPJT/CrafterraProterozoic | d0531d2052b1bb5c10b6763f74034e6e3c678d1f | [
"CC0-1.0"
] | 48 | 2018-12-24T10:58:46.000Z | 2021-01-24T08:41:56.000Z | /*#######################################################################################
Copyright (c) 2017-2019 Kasugaccho
Copyright (c) 2018-2019 As Project
https://github.com/Kasugaccho/DungeonTemplateLibrary
wanotaitei@gmail.com
Distributed under the Boost Software License, Version 1.0. (See accompanying
f... | 27.673469 | 90 | 0.70944 | AsPJT |
55128e11f527b6c3a8246a5bf41908c36a03f607 | 2,363 | cpp | C++ | Main.cpp | nanadaime/lbp-library | e6faef16fa9455c23209c94db9c3cb8d85122553 | [
"MIT"
] | 86 | 2016-07-11T21:58:34.000Z | 2020-10-05T13:55:26.000Z | Main.cpp | wuyuanmm/lbplibrary | e6faef16fa9455c23209c94db9c3cb8d85122553 | [
"MIT"
] | 7 | 2017-03-23T10:52:17.000Z | 2019-03-12T20:58:36.000Z | Main.cpp | wuyuanmm/lbplibrary | e6faef16fa9455c23209c94db9c3cb8d85122553 | [
"MIT"
] | 37 | 2016-07-21T18:12:57.000Z | 2020-07-25T01:52:51.000Z | #include <iostream>
#include <opencv2/opencv.hpp>
#include "lbplibrary.hpp"
using namespace lbplibrary;
void test_image()
{
cv::Mat img_output;
cv::Mat img_input = cv::imread("frames/1.png");
cv::imshow("Input", img_input);
cv::cvtColor(img_input, img_input, cv::COLOR_BGR2GRAY);
//cv::GaussianBlur(img_input, im... | 20.72807 | 105 | 0.617012 | nanadaime |
551836e8d3be24b3cb2b2c64e1c05339ffc7fa89 | 1,360 | cpp | C++ | Code/Libs/Window/Application.cpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | null | null | null | Code/Libs/Window/Application.cpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | 8 | 2016-11-17T00:39:03.000Z | 2016-11-29T14:46:27.000Z | Code/Libs/Window/Application.cpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | null | null | null | #include "Application.hpp"
#include "../Core/Types.hpp"
#include "../Core/Assert.hpp"
#include "../Platform/Platform.hpp"
#if AX_OS(Windows)
# undef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN 1
# include <Windows.h>
# undef min
# undef max
#endif
namespace Ax { namespace Window {
static bool g_bReceivedQ... | 16.385542 | 56 | 0.675735 | NotKyon |
55197986a49f08ce8b2dabb09a0e56b1a855c31c | 3,207 | cpp | C++ | src/cpp-ethereum/test/libdevcrypto/AES.cpp | XianlinGong/fabcoinsc-dev | 585d90f376a9223ab172151a81b92dca1113ecd6 | [
"MIT"
] | 26 | 2018-04-24T00:33:11.000Z | 2022-03-26T15:46:04.000Z | src/cpp-ethereum/test/libdevcrypto/AES.cpp | XianlinGong/fabcoinsc-dev | 585d90f376a9223ab172151a81b92dca1113ecd6 | [
"MIT"
] | 4 | 2018-07-17T13:33:26.000Z | 2018-08-27T07:10:49.000Z | src/cpp-ethereum/test/libdevcrypto/AES.cpp | XianlinGong/fabcoinsc-dev | 585d90f376a9223ab172151a81b92dca1113ecd6 | [
"MIT"
] | 22 | 2018-04-24T00:33:31.000Z | 2022-02-03T09:40:26.000Z | /*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is distributed in the... | 39.109756 | 218 | 0.827877 | XianlinGong |
5522e7cdb03a02a9df5b404f3d845bedd24507f3 | 344 | cpp | C++ | cfi/call-wrong-num-arg-vtable-heap.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | 4 | 2021-11-12T03:41:54.000Z | 2022-02-28T12:23:49.000Z | cfi/call-wrong-num-arg-vtable-heap.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | null | null | null | cfi/call-wrong-num-arg-vtable-heap.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | 1 | 2021-11-29T08:38:28.000Z | 2021-11-29T08:38:28.000Z | #include <cstdlib>
#include "include/cfi.hpp"
double lvar;
void fake_func(double new_var) {
lvar = new_var;
exit(0);
}
int main()
{
Helper *orig = new Helper();
pvtable_t fake_vtable = create_fake_vtable_on_heap(1);
*fake_vtable = (pfunc_t)fake_func;
write_vtable_pointer(orig, fake_vtable);
orig->virtua... | 18.105263 | 56 | 0.709302 | comparch-security |
552635157f85519cbb2354cfc664cf415cf6e74c | 4,595 | hpp | C++ | include/lapack/unm2r.hpp | thijssteel/tlapack | 0749324fdecfc80c089d58d8d43500b66a20df70 | [
"BSD-3-Clause"
] | null | null | null | include/lapack/unm2r.hpp | thijssteel/tlapack | 0749324fdecfc80c089d58d8d43500b66a20df70 | [
"BSD-3-Clause"
] | null | null | null | include/lapack/unm2r.hpp | thijssteel/tlapack | 0749324fdecfc80c089d58d8d43500b66a20df70 | [
"BSD-3-Clause"
] | null | null | null | /// @file unm2r.hpp
/// @author Weslley S Pereira, University of Colorado Denver, USA
/// Adapted from @see https://github.com/langou/latl/blob/master/include/ormr2.h
//
// Copyright (c) 2013-2022, University of Colorado Denver. All rights reserved.
//
// This file is part of <T>LAPACK.
// <T>LAPACK is free software: y... | 32.588652 | 83 | 0.552339 | thijssteel |
5526443bb58216bb27703397556d12d8e5205f31 | 9,046 | hpp | C++ | boost/coroutine/coroutine.hpp | erikfrey/coroutine | fe1b9e12f96e320446da1ef49015955162edb17f | [
"BSL-1.0"
] | 2 | 2015-10-19T02:52:00.000Z | 2016-05-09T09:52:25.000Z | boost/coroutine/coroutine.hpp | erikfrey/coroutine | fe1b9e12f96e320446da1ef49015955162edb17f | [
"BSL-1.0"
] | null | null | null | boost/coroutine/coroutine.hpp | erikfrey/coroutine | fe1b9e12f96e320446da1ef49015955162edb17f | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2006, Giovanni P. Deretta
//
// This code may be used under either of the following two licences:
//
// 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 restric... | 30.053156 | 82 | 0.693013 | erikfrey |
552a70f3b4104f5729d091c9f880cf29e0988c87 | 10,431 | cpp | C++ | src/main_visualization.cpp | zxl19/Edge_Extraction | 9f4c6ac878928a1390c5ce0f14b7fc899dbd1506 | [
"MIT"
] | null | null | null | src/main_visualization.cpp | zxl19/Edge_Extraction | 9f4c6ac878928a1390c5ce0f14b7fc899dbd1506 | [
"MIT"
] | null | null | null | src/main_visualization.cpp | zxl19/Edge_Extraction | 9f4c6ac878928a1390c5ce0f14b7fc899dbd1506 | [
"MIT"
] | null | null | null | #include <iostream>
#include <Eigen/Eigenvalues>
#include <Eigen/Dense>
#include <vector>
#include <math.h>
#include <cmath>
#include <fstream>
#include <string>
#include <vector>
#include <pcl/io/io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/features/integral_image_normal.h>
#include <pcl... | 32.39441 | 133 | 0.546065 | zxl19 |
552f2ed69a745a2f91653cd201aa3a6f8dc6e53e | 5,442 | cpp | C++ | source/game/effects/FootPrints.cpp | JasonHutton/QWTA | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | [
"MIT"
] | 2 | 2021-05-02T18:37:48.000Z | 2021-07-18T16:18:14.000Z | source/game/effects/FootPrints.cpp | JasonHutton/QWTA | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | [
"MIT"
] | null | null | null | source/game/effects/FootPrints.cpp | JasonHutton/QWTA | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | [
"MIT"
] | null | null | null | // Copyright (C) 2007 Id Software, Inc.
//
#include "../precompiled.h"
#pragma hdrstop
#if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE )
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "FootPrints.h"
#include "HardcodedParticleSystem.h"
/*********... | 23.973568 | 144 | 0.572584 | JasonHutton |
55315fb1d570e8671f5edac809e9f24dab44aa8c | 963 | cpp | C++ | src/9. Palindrome Number/main.cpp | sheepduke/leetcode | 7808b3370e4c3e19b2b0bc2bcee62f659906c3eb | [
"MIT"
] | null | null | null | src/9. Palindrome Number/main.cpp | sheepduke/leetcode | 7808b3370e4c3e19b2b0bc2bcee62f659906c3eb | [
"MIT"
] | null | null | null | src/9. Palindrome Number/main.cpp | sheepduke/leetcode | 7808b3370e4c3e19b2b0bc2bcee62f659906c3eb | [
"MIT"
] | null | null | null | /**
Determine whether an integer is a palindrome. An integer is a palindrome when
it reads the same backward as forward.
Example 1:
Input: 121
Output: true
Example 2:
Input: -121
Output: false
Explanation: From left to right, it reads -121. From right to left, it becomes
121-. Therefore it is not a palindrome.
Exa... | 18.882353 | 78 | 0.628245 | sheepduke |
5531e473a8ca0fbbb07d1b7fbdfb573a7ebec111 | 2,381 | cpp | C++ | source/plc/src/document/SET.cpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/plc/src/document/SET.cpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/plc/src/document/SET.cpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | // This file was generated using Parlex's cpp_generator
#include "SET.hpp"
#include "plange_grammar.hpp"
#include "parlex/detail/document.hpp"
#include "EXPRESSION.hpp"
#include "IC.hpp"
plc::SET::elements_t_1_t::field_2_t_1_t plc::SET::elements_t_1_t::field_2_t_1_t::build(parlex::detail::node const * b, parlex::d... | 54.113636 | 156 | 0.706846 | dlin172 |
553230e121396b3cdb9aae757cb44eca86fa2e62 | 27,925 | cpp | C++ | src/apps/botgui/botgui.cpp | tsnowak/rob550-botlab | e8ce317fa3e0c089e30894fbb472669831eb0828 | [
"MIT"
] | 1 | 2022-03-27T19:09:46.000Z | 2022-03-27T19:09:46.000Z | src/apps/botgui/botgui.cpp | tsnowak/rob550-botlab | e8ce317fa3e0c089e30894fbb472669831eb0828 | [
"MIT"
] | null | null | null | src/apps/botgui/botgui.cpp | tsnowak/rob550-botlab | e8ce317fa3e0c089e30894fbb472669831eb0828 | [
"MIT"
] | null | null | null | #include <apps/botgui/botgui.hpp>
#include <apps/utils/drawing_functions.hpp>
#include <common/grid_utils.hpp>
#include <common/timestamp.h>
#include <lcmtypes/maebot_motor_command_t.hpp>
#include <maebot/maebot_channels.h>
#include <optitrack/optitrack_channels.h>
#include <planning/planning_channels.h>
#include <plan... | 38.62379 | 134 | 0.679141 | tsnowak |
5537c4f23f60099348eefd88b783f2b7ed003cad | 16,503 | cc | C++ | src/mem/dtu/msg_unit.cc | TUD-OS/gem5-SemperOS | 1b296ff08280e8d71461d62114bffcdbcf67f07a | [
"BSD-3-Clause"
] | null | null | null | src/mem/dtu/msg_unit.cc | TUD-OS/gem5-SemperOS | 1b296ff08280e8d71461d62114bffcdbcf67f07a | [
"BSD-3-Clause"
] | null | null | null | src/mem/dtu/msg_unit.cc | TUD-OS/gem5-SemperOS | 1b296ff08280e8d71461d62114bffcdbcf67f07a | [
"BSD-3-Clause"
] | 1 | 2020-10-31T13:44:49.000Z | 2020-10-31T13:44:49.000Z | /*
* Copyright (c) 2015, Christian Menard
* Copyright (c) 2015, Nils Asmussen
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* ... | 30.280734 | 114 | 0.583591 | TUD-OS |
5539ab589afdc7797c73ef18d24d31caa835d6a7 | 1,757 | cpp | C++ | zhangjunyan2580-c++/day3/P2.cpp | joelfak/advent_of_code_2019 | d5031078c53c181835b4bf86458b360542f0122e | [
"Apache-2.0"
] | 9 | 2019-12-01T14:52:40.000Z | 2020-12-16T14:24:19.000Z | zhangjunyan2580-c++/day3/P2.cpp | joelfak/advent_of_code_2019 | d5031078c53c181835b4bf86458b360542f0122e | [
"Apache-2.0"
] | null | null | null | zhangjunyan2580-c++/day3/P2.cpp | joelfak/advent_of_code_2019 | d5031078c53c181835b4bf86458b360542f0122e | [
"Apache-2.0"
] | 51 | 2019-11-26T14:49:05.000Z | 2021-12-01T20:53:41.000Z | #include <stdio.h>
#include <ctype.h>
#include <map>
struct point{
int x,y;
bool operator<(const point& a)const{
return x==a.x?y<a.y:x<a.x;
}
bool operator==(const point& a)const{
return x==a.x&&y==a.y;
}
}pos,lpos;
std::map<point,int> lstate,tstate;
int dis,ans=1000000000,step;
char dir;
bool ... | 22.818182 | 56 | 0.55037 | joelfak |
5539efb432fcae48a0facc433a8b857a00e5a92a | 1,049 | tcc | C++ | ulmblas/level1/kernel/ref/axpy.tcc | sneha0401/ulmBLAS | 2b7665c6abc1784fe4041febd9d12de519ef4f08 | [
"BSD-3-Clause"
] | 95 | 2015-05-14T15:21:44.000Z | 2022-03-17T08:02:08.000Z | ulmblas/level1/kernel/ref/axpy.tcc | sneha0401/ulmBLAS | 2b7665c6abc1784fe4041febd9d12de519ef4f08 | [
"BSD-3-Clause"
] | 4 | 2020-06-25T14:59:49.000Z | 2022-02-16T12:45:00.000Z | ulmblas/level1/kernel/ref/axpy.tcc | sneha0401/ulmBLAS | 2b7665c6abc1784fe4041febd9d12de519ef4f08 | [
"BSD-3-Clause"
] | 40 | 2015-09-14T02:43:43.000Z | 2021-12-26T11:43:36.000Z | #ifndef ULMBLAS_LEVEL1_KERNEL_REF_AXPY_TCC
#define ULMBLAS_LEVEL1_KERNEL_REF_AXPY_TCC 1
#include <ulmblas/auxiliary/conjugate.h>
#include <ulmblas/level1/kernel/ref/axpy.h>
namespace ulmBLAS { namespace ref {
template <typename IndexType, typename Alpha, typename VX, typename VY>
void
axpy(IndexType n,
con... | 21.854167 | 71 | 0.582459 | sneha0401 |
553aeb3440b3c3d506457314c49b98961b783763 | 1,354 | cpp | C++ | philibs/scene/states/scenetexenv.cpp | prwhite/philibs | 3cb65bd0dae105026839a3e88d9cebafb72c2616 | [
"Zlib"
] | 5 | 2015-05-12T14:48:03.000Z | 2021-07-14T13:18:16.000Z | philibs/scene/states/scenetexenv.cpp | prwhite/philibs | 3cb65bd0dae105026839a3e88d9cebafb72c2616 | [
"Zlib"
] | null | null | null | philibs/scene/states/scenetexenv.cpp | prwhite/philibs | 3cb65bd0dae105026839a3e88d9cebafb72c2616 | [
"Zlib"
] | 1 | 2021-04-18T07:32:43.000Z | 2021-04-18T07:32:43.000Z | /////////////////////////////////////////////////////////////////////
//
// file: scenetexenv.cpp
//
/////////////////////////////////////////////////////////////////////
#include "scenetexenv.h"
/////////////////////////////////////////////////////////////////////
namespace scene {
///////////////... | 19.342857 | 70 | 0.379616 | prwhite |
553ba281646a6838dc8f698c494438fe27097ed1 | 734 | cpp | C++ | 1-100/40. Combination Sum II.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1-100/40. Combination Sum II.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1-100/40. Combination Sum II.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
public:
vector<vector<int>> combinationSum2(vector<int> &candidates, int target)
{
vector<vector<int>> ret;
vector<int> path;
sort(candidates.begin(), candidates.end());
dfs(ret, candidates, path, 0, target);
return ret;
}
void dfs(vector<vector<int>> &ret, vector<int> &nums... | 23.677419 | 95 | 0.550409 | erichuang1994 |
554491a48dbe5b8cc1882ee1dd7098db1eca8288 | 1,661 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/client/remote/unit_back_interface.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/client/remote/unit_back_interface.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/client/remote/unit_back_interface.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <msw/noncopyable.hpp>
#include <rubetek/remote_link/interface.hpp>
#include <rubetek/essence/unique_id/channel.hpp>
#include <rubetek/essence/unique_id/controller.hpp>
#include <rubetek/client/server_connection_status.hpp>
#include <rubetek/client/remote/server_packet_type.hpp... | 53.580645 | 192 | 0.500903 | yklishevich |
554630bb726224d7dad32dd5699ef5d989937f92 | 895 | cpp | C++ | 102-binary-tree-level-order-traversal.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | 102-binary-tree-level-order-traversal.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | 102-binary-tree-level-order-traversal.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | //
// Created by ZhiWei Tan on 1/2/22.
//
#include "playground.h"
class Solution {
public:
vector<vector<int>> levelOrder(TreeNode* root) {
queue<TreeNode*> tQueue;
vector<vector<int>> res;
if (root == nullptr) {
return res;
}
tQueue.push(root);
while ... | 21.829268 | 52 | 0.437989 | zhiwei1988 |
55482cea3947c4ae13ed3816a28ae8fe878400f5 | 183 | hpp | C++ | Project1/cpp/src/InitialStates/initialstate.hpp | ErlendLima/FYS4411 | e7221d9871e0e2fdaf7b9721fb414a9fad74022b | [
"MIT"
] | 1 | 2020-04-30T18:39:43.000Z | 2020-04-30T18:39:43.000Z | Project1/src/InitialStates/initialstate.hpp | KristianWold/FYS4411 | 25f23109468ed72b69a6e9af72957500d76f0e79 | [
"MIT"
] | null | null | null | Project1/src/InitialStates/initialstate.hpp | KristianWold/FYS4411 | 25f23109468ed72b69a6e9af72957500d76f0e79 | [
"MIT"
] | null | null | null | #pragma once
#include<iostream>
class InitialState
{
public:
void setSystem(class System* sys){m_sys = sys;}
virtual void initiate();
protected:
class System* m_sys;
};
| 14.076923 | 51 | 0.693989 | ErlendLima |
554d5512a1d6e42f0c1c3f4b5073a154ca6b2bbc | 1,040 | cpp | C++ | test/unit-tests/event/joystick/joy_ball_event_test.cpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 14 | 2020-05-17T21:38:03.000Z | 2020-11-21T00:16:25.000Z | test/unit-tests/event/joystick/joy_ball_event_test.cpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 70 | 2020-04-26T17:08:52.000Z | 2020-11-21T17:34:03.000Z | test/unit-tests/event/joystick/joy_ball_event_test.cpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "centurion/joystick_events.hpp"
TEST(JoyBallEvent, Defaults)
{
const cen::joy_ball_event event;
ASSERT_EQ(cen::event_type::joy_ball_motion, event.type());
}
TEST(JoyBallEvent, SetWhich)
{
cen::joy_ball_event event;
const SDL_JoystickID id = 5;
event.set_which(id);
ASSE... | 17.627119 | 69 | 0.707692 | Creeperface01 |
55507010ba4d99d3d51e32bf27d24bc5220f3c3a | 195 | cpp | C++ | Begin84.cpp | Kalaiarasan-Hema/kalai | 2e3060727f5a18d4ad85c3f81214805c3ed12f8e | [
"Apache-2.0"
] | null | null | null | Begin84.cpp | Kalaiarasan-Hema/kalai | 2e3060727f5a18d4ad85c3f81214805c3ed12f8e | [
"Apache-2.0"
] | null | null | null | Begin84.cpp | Kalaiarasan-Hema/kalai | 2e3060727f5a18d4ad85c3f81214805c3ed12f8e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
class Begin84
{
private:
int n;
char ch;
bool n2b;
public:
Begin84()
{
cin>>ch;
n=ch;
cout<<n;
}
};
int main()
{
Begin84 b;
return 0;
}
| 8.478261 | 20 | 0.65641 | Kalaiarasan-Hema |
5550dc244d923db072bf0e3c15cd0ad2009b3e5b | 3,532 | cc | C++ | tests/collision/collision_handler_tests.cc | thomas-joubert/game_engine | 5be01e2d96000697625b6b970c1980eab8bd0154 | [
"MIT"
] | 2 | 2020-12-04T16:32:13.000Z | 2020-12-04T21:05:15.000Z | tests/collision/collision_handler_tests.cc | thomas-joubert/game_engine | 5be01e2d96000697625b6b970c1980eab8bd0154 | [
"MIT"
] | 10 | 2020-11-18T13:47:39.000Z | 2022-03-18T15:02:11.000Z | tests/collision/collision_handler_tests.cc | thomas-joubert/game_engine | 5be01e2d96000697625b6b970c1980eab8bd0154 | [
"MIT"
] | null | null | null | #include <SFML/Graphics/Rect.hpp>
#include <SFML/System/Vector2.hpp>
#include <gtest/gtest.h>
#include <gtest/internal/gtest-port.h>
#include <stdexcept>
#include <utility>
#include <iostream>
#include "collision_handler_tests.hh"
#include "obstacle.hh"
#include "textured_object.hh"
#include "collision_handler.hh"
#... | 26.757576 | 84 | 0.673273 | thomas-joubert |
5554d0f23377411e6e7184f3b39688cd0fd890c5 | 505 | cpp | C++ | CSP-3/CCF-201312-3.cpp | fox3000wang/CCF-CSP-PAT | b433732e7be5a2c85d4e8bd607eafecfd056e01f | [
"MIT"
] | null | null | null | CSP-3/CCF-201312-3.cpp | fox3000wang/CCF-CSP-PAT | b433732e7be5a2c85d4e8bd607eafecfd056e01f | [
"MIT"
] | null | null | null | CSP-3/CCF-201312-3.cpp | fox3000wang/CCF-CSP-PAT | b433732e7be5a2c85d4e8bd607eafecfd056e01f | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
// #include <bits/stdc++.h>
using namespace std;
using gg = long long;
int main()
{
freopen("CCF-201312-3.txt", "r", stdin);
ios::sync_with_stdio(false);
cin.tie(0);
gg ni, ans = 0;
cin >> ni;
vector<gg> v(ni);
for (gg &i : v)
{
cin >> i; // 3 1 6 5 2 3
}
for (gg i =... | 15.30303 | 42 | 0.461386 | fox3000wang |
55594872dc88e7ebac14dd0966d500de6b16739c | 455 | hpp | C++ | src/engine/systems/ServerNetworkSystem.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | src/engine/systems/ServerNetworkSystem.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | src/engine/systems/ServerNetworkSystem.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | //
// ServerNetworkSystem.hpp
// engine
//
// Created by Arthur Chaloin on 14/05/2018.
//
#pragma once
#include <thread>
#include "engine/core/System.hpp"
#include "engine/network/Selector.hpp"
namespace engine {
class ServerNetworkSystem : public System {
public:
ServerNetworkSystem();
~ServerNetworkSyste... | 16.25 | 49 | 0.718681 | arthurchaloin |
555aec0c56219502f51698d57c83670df2080f1e | 5,304 | cpp | C++ | code/contrafold/src/EncapsulatedPostScript.cpp | jialiasus2/RNA-Contest-2021 | d8cd340061ac7a70e1c2bba67d36c89cbde2555c | [
"Apache-2.0"
] | 2 | 2017-07-23T11:28:23.000Z | 2020-10-03T09:32:10.000Z | code/contrafold/src/EncapsulatedPostScript.cpp | jialiasus2/RNA-Contest-2021 | d8cd340061ac7a70e1c2bba67d36c89cbde2555c | [
"Apache-2.0"
] | 1 | 2021-08-24T22:10:03.000Z | 2021-08-24T22:10:03.000Z | code/contrafold/src/EncapsulatedPostScript.cpp | jialiasus2/RNA-Contest-2021 | d8cd340061ac7a70e1c2bba67d36c89cbde2555c | [
"Apache-2.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////
// EncapsulatedPostScript.cpp
//
// The routines shown here for creating encapsulated postscript
// figures were adapted from a modification of PlotRNA by
// Marc Parisien.
//////////////////////////////////////////////////////////////////////
#inc... | 36.328767 | 123 | 0.456448 | jialiasus2 |
555e2bbf35bb9a33edfb7ac7f18e43d8da1305de | 4,038 | hpp | C++ | libs/render/include/hamon/render/vulkan/graphics_pipeline.hpp | shibainuudon/HamonEngine | 508a69b0cf589ccb2e5d403ce9e78ff2b85cc058 | [
"MIT"
] | null | null | null | libs/render/include/hamon/render/vulkan/graphics_pipeline.hpp | shibainuudon/HamonEngine | 508a69b0cf589ccb2e5d403ce9e78ff2b85cc058 | [
"MIT"
] | 21 | 2022-03-02T13:11:59.000Z | 2022-03-30T15:12:41.000Z | libs/render/include/hamon/render/vulkan/graphics_pipeline.hpp | shibainuudon/HamonEngine | 508a69b0cf589ccb2e5d403ce9e78ff2b85cc058 | [
"MIT"
] | null | null | null | /**
* @file graphics_pipeline.hpp
*
* @brief GraphicsPipeline
*/
#ifndef HAMON_RENDER_VULKAN_GRAPHICS_PIPELINE_HPP
#define HAMON_RENDER_VULKAN_GRAPHICS_PIPELINE_HPP
#include <hamon/render/vulkan/device.hpp>
#include <hamon/render/vulkan/program.hpp>
#include <hamon/render/vulkan/pipeline_layout.hpp>
... | 35.734513 | 113 | 0.736751 | shibainuudon |
555e7bea885d6c727cd5e330d95debf93cf6c2a9 | 654 | hpp | C++ | test/to_main.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | test/to_main.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | test/to_main.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_TEST_TO_MAIN_HPP
#define FALCON_TEST_TO_MAIN_HPP
#define __FALCON_TEST_TO_MAIN(func_test_name) int main() { func_test_name(); return 0;}
#define __FALCON_USELESS_TEST_TO_MAIN(func_test_name)
#ifndef FALCON_ALL_TEST
# ifndef FALCON_GROUP_TEST
# define FALCON_GROUP_TEST_TO_MAIN __FALCON_USELESS_TEST_TO_... | 32.7 | 87 | 0.870031 | jonathanpoelen |
555ec66ce0d26b536aa2da9141a2c54070ec7168 | 1,791 | cpp | C++ | src/platform/win32/fselect.cpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 2 | 2021-06-19T08:21:38.000Z | 2021-08-15T21:37:30.000Z | src/platform/win32/fselect.cpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | null | null | null | src/platform/win32/fselect.cpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 1 | 2021-04-03T14:27:39.000Z | 2021-04-03T14:27:39.000Z | #include "../../build.hpp"
#ifdef _WIN32
#include <Btk/msgbox/fselect.hpp>
#include <Btk/msgbox/impl.hpp>
#include <Btk/impl/atomic.hpp>
#include <Btk/async.hpp>
#include <algorithm>
#include <string>
#include <ShlObj.h>
#include <ShObjIdl.h>
#include "internal.hpp"
//Win32 native FSelectBox impl
namespace Btk{
... | 26.731343 | 72 | 0.484087 | BusyStudent |
5560652f8cb4fca68476d8e5b0c316f1dc235a78 | 16,200 | cpp | C++ | src/ExporterSinkKml.cpp | IMbackK/gpsrecorder | 164d38a5736d84c9d610b6a749881526372e6bdf | [
"Zlib"
] | null | null | null | src/ExporterSinkKml.cpp | IMbackK/gpsrecorder | 164d38a5736d84c9d610b6a749881526372e6bdf | [
"Zlib"
] | null | null | null | src/ExporterSinkKml.cpp | IMbackK/gpsrecorder | 164d38a5736d84c9d610b6a749881526372e6bdf | [
"Zlib"
] | null | null | null | //***************************************************************************
//
// GPS Recorder
// A GPS data logger for the Maemo platform.
//
// Copyright (C) 2010 Jean-Charles Lefebvre <polyvertex+gpsrecorder [AT] gmail [DOT] com>
//
// This software is provided 'as-is', without any express or implied
// warranty. ... | 29.889299 | 127 | 0.564383 | IMbackK |
5560788c93dcada4ce0d989b96610804b926e5c5 | 2,069 | cpp | C++ | test/output/cpp/advanced.expr.cpp | scottshotgg/express | b4a2644154a731fc7486f77757deac035b18a8f3 | [
"Apache-2.0"
] | 3 | 2018-08-10T19:41:53.000Z | 2020-02-10T18:18:25.000Z | test/output/cpp/advanced.expr.cpp | scottshotgg/express | b4a2644154a731fc7486f77757deac035b18a8f3 | [
"Apache-2.0"
] | null | null | null | test/output/cpp/advanced.expr.cpp | scottshotgg/express | b4a2644154a731fc7486f77757deac035b18a8f3 | [
"Apache-2.0"
] | null | null | null | #include "/Users/sgg7269/Development/go/src/github.com/scottshotgg/express/lib/std.cpp"
#include "/Users/sgg7269/Development/go/src/github.com/scottshotgg/express/lib/var.cpp"
#include <string>
void declareSomething() { bool i = true; }
int main() {
int powerlevel = 9000;
bool over9k = false;
float pi = 3.141592... | 25.54321 | 87 | 0.60609 | scottshotgg |
55659b008e0fb438ee2a1e3aa52b5916bfc82943 | 1,784 | cpp | C++ | src/comm2/messagesender.cpp | SorcererX/SepiaStream | e8eccdb7019dd94e8585471535debf8bae1325f5 | [
"BSD-2-Clause"
] | null | null | null | src/comm2/messagesender.cpp | SorcererX/SepiaStream | e8eccdb7019dd94e8585471535debf8bae1325f5 | [
"BSD-2-Clause"
] | 6 | 2015-03-11T06:18:26.000Z | 2017-05-01T18:40:33.000Z | src/comm2/messagesender.cpp | SorcererX/SepiaStream | e8eccdb7019dd94e8585471535debf8bae1325f5 | [
"BSD-2-Clause"
] | null | null | null | #include <sepia/comm2/messagesender.h>
#include <sepia/comm2/internals.h>
#include <zmq.hpp>
#include <iostream>
namespace sepia
{
namespace comm2
{
//zmq::context_t MessageSender::sm_context( 1 );
zmq::socket_t MessageSender::sm_externalPubSocket( Internals::sm_context, ZMQ_PUB );
zmq::socket_t MessageSender::sm_l... | 28.774194 | 133 | 0.710762 | SorcererX |
5566abc5c80d5ee8483dac988947a8180cabea83 | 1,007 | cpp | C++ | source/attendee/sources/stream_source.cpp | 5cript/attendee | f2dff5f4531a6c39aeb277d6cd59077c56b34b61 | [
"BSL-1.0"
] | null | null | null | source/attendee/sources/stream_source.cpp | 5cript/attendee | f2dff5f4531a6c39aeb277d6cd59077c56b34b61 | [
"BSL-1.0"
] | 4 | 2016-05-31T16:00:44.000Z | 2022-02-22T09:01:10.000Z | source/attendee/sources/stream_source.cpp | 5cript/attendee | f2dff5f4531a6c39aeb277d6cd59077c56b34b61 | [
"BSL-1.0"
] | null | null | null | #include <attendee/sources/stream_source.hpp>
namespace attendee
{
//#####################################################################################################################
stream_source::stream_source(std::istream* stream)
: stream_{stream}
{
}
//----------------------------... | 38.730769 | 120 | 0.297915 | 5cript |
556d100a9d72a2f08d9806b3cd126acb4118cf3b | 15,573 | cpp | C++ | DeferredShading/lighting_pass.cpp | colintan95/DX12Techniques | 421192fae0d4ddc8450cfeeaa5913c2aacf8fce7 | [
"MIT"
] | null | null | null | DeferredShading/lighting_pass.cpp | colintan95/DX12Techniques | 421192fae0d4ddc8450cfeeaa5913c2aacf8fce7 | [
"MIT"
] | null | null | null | DeferredShading/lighting_pass.cpp | colintan95/DX12Techniques | 421192fae0d4ddc8450cfeeaa5913c2aacf8fce7 | [
"MIT"
] | null | null | null | #include "lighting_pass.h"
#include <d3d12.h>
#include <dxgi1_6.h>
#include <wrl/client.h>
#include "d3dx12.h"
#include "dx_utils.h"
#include "ReadData.h"
#include "app.h"
using Microsoft::WRL::ComPtr;
using DX::ThrowIfFailed;
void LightingPass::InitPipeline() {
CD3DX12_DESCRIPTOR_RANGE1 ranges[3] = {};
range... | 45.13913 | 100 | 0.690426 | colintan95 |
5572850749b5c1e1abb896b7258070ac97b02dc7 | 9,164 | cpp | C++ | TestsUnitaires/TUModules/TUCore/TestTime.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | TestsUnitaires/TUModules/TUCore/TestTime.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | TestsUnitaires/TUModules/TUCore/TestTime.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | 35.382239 | 118 | 0.644478 | benkaraban |
5579ef7569b8d948ea2fa1604f9fb95461caf8bc | 2,875 | cpp | C++ | src/EzGL_SDL/MainLogic.cpp | kirklange/ezsdl | 3eb6320f39c7bf6b18b1efc9643bf531a8cc76dc | [
"Zlib"
] | 3 | 2019-05-06T05:10:21.000Z | 2019-07-17T19:00:40.000Z | src/EzGL_SDL/MainLogic.cpp | kirklange/ezsdl | 3eb6320f39c7bf6b18b1efc9643bf531a8cc76dc | [
"Zlib"
] | 4 | 2018-05-19T07:06:03.000Z | 2018-07-27T08:33:28.000Z | src/EzGL_SDL/MainLogic.cpp | kirklange/ezsdl | 3eb6320f39c7bf6b18b1efc9643bf531a8cc76dc | [
"Zlib"
] | null | null | null | /* EzGL_SDL/MainLogic.cpp
*
* Copyright (c) 2018 Kirk Lange <github.com/kirklange>
*
* 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 u... | 29.040404 | 78 | 0.642087 | kirklange |
5354ab5d76987981393e0b6721300f819571dd6d | 672 | cpp | C++ | apps/asm/struct.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | apps/asm/struct.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | apps/asm/struct.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | #include "struct.h"
unsigned Struct::Member::size() const
{
switch(type)
{
case Type::Char: return elem;
case Type::Int: return 4 * elem;
case Type::UInt16: return 2 * elem;
}
return 0;
}
int Struct::getSize()
{
if(size == -1)
{
size = 0;
for(const auto... | 14.933333 | 46 | 0.477679 | lemoniac |
5355f5dafda7ff7ba4981f8280ab338f0fb68ea2 | 5,156 | cpp | C++ | GDJS/GDJS/IDE/Dialogs/ProjectExportDialog.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 1 | 2019-08-24T03:18:42.000Z | 2019-08-24T03:18:42.000Z | GDJS/GDJS/IDE/Dialogs/ProjectExportDialog.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 9 | 2020-04-04T19:26:47.000Z | 2022-03-25T18:41:20.000Z | GDJS/GDJS/IDE/Dialogs/ProjectExportDialog.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 2 | 2020-03-02T05:20:41.000Z | 2021-05-10T03:59:05.000Z | /*
* GDevelop JS Platform
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
#include "ProjectExportDialog.h"
#include <wx/config.h>
#include <wx/dir.h>
#include <wx/dirdlg.h>
#in... | 34.604027 | 80 | 0.647013 | sutao80216 |
5356d812fa32c23eb0fb0bbe68498d3979967a8c | 996 | cpp | C++ | cpp/src/competition/week_177/e5169.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/competition/week_177/e5169.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/competition/week_177/e5169.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/number-of-days-between-two-dates/
#include "extern.h"
class Solution {
int days_to_1970(string date) {
int y = stoi(date.substr(0, 4));
int m = stoi(date.substr(5, 2));
int d = stoi(date.substr(8, 2));
vector<int> month_list{ 31, 28, 31, 30, 31, ... | 33.2 | 84 | 0.563253 | ajz34 |
53574d9f9dd8c13498c26a811e6f7d8815ae85c3 | 2,747 | cpp | C++ | bonsai/test/linear_program.cpp | rsk0315/codefolio | 1de990978489f466e1fd47884d4a19de9cc30e02 | [
"MIT"
] | 1 | 2020-03-20T13:24:30.000Z | 2020-03-20T13:24:30.000Z | bonsai/test/linear_program.cpp | rsk0315/codefolio | 1de990978489f466e1fd47884d4a19de9cc30e02 | [
"MIT"
] | null | null | null | bonsai/test/linear_program.cpp | rsk0315/codefolio | 1de990978489f466e1fd47884d4a19de9cc30e02 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdint>
#include <cassert>
#include <cmath>
#include <vector>
#include <algorithm>
#include <numeric>
#include <utility>
#include <limits>
#define class struct
#define private public
#include "../../Math/linear_program.cpp"
int main() {
// linear_program<double>::maximize(1, 2, 3);
s... | 26.931373 | 73 | 0.421915 | rsk0315 |
5361775bfd0fb5d334e8b740167d2a89062b24af | 10,797 | cpp | C++ | arduino/RAW_IrDecoder/ZHLT01Remote.cpp | Yecgaa1/daily | 8640527e055140908034f15ddac24a0413d04d61 | [
"MIT"
] | null | null | null | arduino/RAW_IrDecoder/ZHLT01Remote.cpp | Yecgaa1/daily | 8640527e055140908034f15ddac24a0413d04d61 | [
"MIT"
] | null | null | null | arduino/RAW_IrDecoder/ZHLT01Remote.cpp | Yecgaa1/daily | 8640527e055140908034f15ddac24a0413d04d61 | [
"MIT"
] | null | null | null |
/********************************************************************************
* Airconditional remote control decoder for:
*
* ZH/LT-01 Remote control https://www.google.com/search?q=zh/lt-01
*
* The ZH/LT-01 remote control is used for many locally branded Split airconditioners,
* so it is better t... | 28.715426 | 89 | 0.482819 | Yecgaa1 |
536385d800e58370da58ba97d3c6934a2c7cf184 | 8,127 | hpp | C++ | OpsBench/ma-thesis/bench/benchmarks/interface/InstructionBenchmark.hpp | wangbiaouestc/clpeak | e3d7c02af42561c0bbc331103ae35f42c01f7bbb | [
"Unlicense"
] | null | null | null | OpsBench/ma-thesis/bench/benchmarks/interface/InstructionBenchmark.hpp | wangbiaouestc/clpeak | e3d7c02af42561c0bbc331103ae35f42c01f7bbb | [
"Unlicense"
] | null | null | null | OpsBench/ma-thesis/bench/benchmarks/interface/InstructionBenchmark.hpp | wangbiaouestc/clpeak | e3d7c02af42561c0bbc331103ae35f42c01f7bbb | [
"Unlicense"
] | null | null | null | /*
* InstructionBenchmark.hpp
*
* Created on: Nov 18, 2013
* Author: michael
*/
#ifndef INSTRUCTIONBENCHMARK_H_
#define INSTRUCTIONBENCHMARK_H_
// bench includes
#include "benchmarks/interface/Benchmark.hpp"
#include "cudatools/interface/ErrorHandler.hpp"
//////////////////////////////////////////////////... | 28.819149 | 146 | 0.669989 | wangbiaouestc |
53651a6dfe58def2a9f29d92fdf5c4faa88e1cf7 | 5,024 | cpp | C++ | modules/inference2/src/inferencer2.cpp | chenxy1988/CNStream | cf2564b0fed892c62213a335c01559d3da18d91b | [
"Apache-2.0"
] | null | null | null | modules/inference2/src/inferencer2.cpp | chenxy1988/CNStream | cf2564b0fed892c62213a335c01559d3da18d91b | [
"Apache-2.0"
] | null | null | null | modules/inference2/src/inferencer2.cpp | chenxy1988/CNStream | cf2564b0fed892c62213a335c01559d3da18d91b | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2021] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 36.941176 | 117 | 0.697054 | chenxy1988 |
5367807dfc6a037c0c693b8b06e630a9f5d22e7b | 7,314 | cpp | C++ | src/Mission.cpp | dasheyuan/osmo-coding-opencv-demo | 86df3655093cc0307f524030b9a913d083fd240a | [
"MIT"
] | 3 | 2019-07-04T03:48:42.000Z | 2020-05-03T17:42:32.000Z | src/Mission.cpp | dasheyuan/osmo-coding-opencv-demo | 86df3655093cc0307f524030b9a913d083fd240a | [
"MIT"
] | null | null | null | src/Mission.cpp | dasheyuan/osmo-coding-opencv-demo | 86df3655093cc0307f524030b9a913d083fd240a | [
"MIT"
] | 2 | 2020-02-24T18:29:53.000Z | 2020-06-04T10:29:58.000Z | //
// Created by chenyuan on 6/26/19.
//
#include "Mission.h"
Mission::Mission() {
std::string path = "../template/";
Mat num1 = imread(path + "1.bmp");
Mat num2 = imread(path + "2.bmp");
Mat num3 = imread(path + "3.bmp");
Mat num4 = imread(path + "4.bmp");
Mat num5 = imread(path + "5.bmp");
... | 34.995215 | 104 | 0.502461 | dasheyuan |
536c6cc69e61476a0873c8e1494a9c1fb88ecae0 | 961 | cpp | C++ | tests/tests_cameras_pinhole_camera.cpp | TiagoRabello/Path-Tracer | 1ad32741fdff0b8f48ef675e9071c1495cbcdde3 | [
"BSL-1.0"
] | null | null | null | tests/tests_cameras_pinhole_camera.cpp | TiagoRabello/Path-Tracer | 1ad32741fdff0b8f48ef675e9071c1495cbcdde3 | [
"BSL-1.0"
] | 1 | 2020-02-01T09:14:44.000Z | 2020-02-01T09:14:44.000Z | tests/tests_cameras_pinhole_camera.cpp | TiagoRabello/Path-Tracer | 1ad32741fdff0b8f48ef675e9071c1495cbcdde3 | [
"BSL-1.0"
] | null | null | null | #include "cameras/pinhole_camera.hpp"
#include "math/ray3d.hpp"
#include "math/utility.hpp"
#include "catch.hpp"
SCENARIO("We can get rays from a pinhole camera", "[cameras][pinhole_camera]")
{
GIVEN("a camera centered at the origin looking down the x axis")
{
auto eye = math::point3d{ 0.0f, 0.0f, 0.0f };
... | 30.03125 | 94 | 0.637877 | TiagoRabello |
536d245adbedf8da94ee66ebd1d1617e44908867 | 7,661 | cpp | C++ | Source/TPCE/Private/Kismet/KismetSystemLibraryExtensions.cpp | greisane/TPCE | 5a18850268dd92e761c5c9dcaf08bb6692453dc0 | [
"MIT"
] | 2 | 2021-08-17T19:01:29.000Z | 2021-11-20T03:37:19.000Z | Source/TPCE/Private/Kismet/KismetSystemLibraryExtensions.cpp | greisane/TPCE | 5a18850268dd92e761c5c9dcaf08bb6692453dc0 | [
"MIT"
] | null | null | null | Source/TPCE/Private/Kismet/KismetSystemLibraryExtensions.cpp | greisane/TPCE | 5a18850268dd92e761c5c9dcaf08bb6692453dc0 | [
"MIT"
] | 1 | 2021-05-03T12:00:49.000Z | 2021-05-03T12:00:49.000Z | // This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
#include "Kismet/KismetSystemLibraryExtensions.h"
#include "HAL/IConsoleManager.h"
UKismetSystemLibraryEx::UKismetSystemLibraryEx(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInit... | 35.304147 | 203 | 0.788409 | greisane |
536d47177e0f1d53f82aab546324c22807e6a858 | 193 | cpp | C++ | src/map/LevelInfo.cpp | pierreyoda/o2r | 808d9e72024a2e60ce0f0186587ade84e63e4bf8 | [
"MIT"
] | 21 | 2018-02-24T19:21:12.000Z | 2021-05-02T21:26:49.000Z | src/map/LevelInfo.cpp | pierreyoda/o2r | 808d9e72024a2e60ce0f0186587ade84e63e4bf8 | [
"MIT"
] | 1 | 2020-05-03T21:29:49.000Z | 2020-05-03T21:29:49.000Z | src/map/LevelInfo.cpp | pierreyoda/o2r | 808d9e72024a2e60ce0f0186587ade84e63e4bf8 | [
"MIT"
] | null | null | null | #include "LevelInfo.hpp"
LevelInfo::LevelInfo() : name(), author(),
date(QDate::currentDate()), filePath(), lesFilePath(), mousePosX(0),
mousePosY(0), mouseRandomPos(false)
{
}
| 24.125 | 73 | 0.647668 | pierreyoda |
537589c340c850fa277006c5f7091da208806b10 | 565 | cpp | C++ | Strings/group_anagrams.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Strings/group_anagrams.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Strings/group_anagrams.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/group-anagrams/submissions/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
unordered_map<string, vector<string>> mp;
for (int i = 0; i < strs.size(); ++i) {
string s = strs[i];
... | 26.904762 | 64 | 0.552212 | khushisinha20 |
53771d0b3d7934255255a32ac7870f83053095eb | 1,948 | cpp | C++ | Plugins/UnLua/Source/UnLua/Private/UnLuaConsoleCommands.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | 1 | 2022-03-24T02:56:59.000Z | 2022-03-24T02:56:59.000Z | Plugins/UnLua/Source/UnLua/Private/UnLuaConsoleCommands.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | null | null | null | Plugins/UnLua/Source/UnLua/Private/UnLuaConsoleCommands.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | null | null | null | #include "UnLuaConsoleCommands.h"
#define LOCTEXT_NAMESPACE "UnLuaConsoleCommands"
namespace UnLua
{
FUnLuaConsoleCommands::FUnLuaConsoleCommands(IUnLuaModule* InModule)
: DoCommand(
TEXT("lua.do"),
*LOCTEXT("CommandText_Do", "Runs the given string in lua env.").ToString(),
... | 28.647059 | 98 | 0.549795 | xiejiangzhi |
537743aba3e1e9eb29245bc659437c30553656b9 | 1,902 | cpp | C++ | deprecated/imageutilities/tests/iuio_unittests/iu_imageio16_unittest.cpp | mwerlberger/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 8 | 2015-10-24T18:31:58.000Z | 2019-10-16T03:27:27.000Z | deprecated/imageutilities/tests/iuio_unittests/iu_imageio16_unittest.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 7 | 2015-06-22T09:36:32.000Z | 2015-08-20T06:56:10.000Z | deprecated/imageutilities/tests/iuio_unittests/iu_imageio16_unittest.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 3 | 2015-05-13T14:46:48.000Z | 2017-01-11T09:20:03.000Z | /*
* Copyright (c) ICG. All rights reserved.
*
* Institute for Computer Graphics and Vision
* Graz University of Technology / Austria
*
*
* This software is distributed WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the above copyright n... | 26.416667 | 121 | 0.600421 | mwerlberger |
5379d993509ac1cbf87e8760fca4296551573c33 | 514 | hpp | C++ | test/src/Functional/ProductMap.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 48 | 2019-05-14T10:07:08.000Z | 2021-04-08T08:26:20.000Z | test/src/Functional/ProductMap.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | null | null | null | test/src/Functional/ProductMap.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 4 | 2019-11-18T15:35:32.000Z | 2021-12-02T05:23:04.000Z | #include "CppML/CppML.hpp"
namespace ProductMapTest {
template <typename... Ts> struct R0 {};
template <typename... Ts> struct R1 {};
template <typename... Ts> struct R2 {};
template <typename... Ts> struct List {};
void run() {
{
using T =
ml::f<ml::ProductMap<ml::F<R0>, ml::F<R1>, ml::F<R2>, ml::F<List... | 28.555556 | 79 | 0.589494 | changjurhee |
538012c376f0b969904f85d66daf982ab8eaf5bb | 881 | cpp | C++ | CPP lessons/Contests_Reading_books/Contests_Reading_books/main.cpp | AlexPC2/My-Projects | 5fd46cf9b9301c8b9db62ce8683c55858f60549a | [
"MIT"
] | null | null | null | CPP lessons/Contests_Reading_books/Contests_Reading_books/main.cpp | AlexPC2/My-Projects | 5fd46cf9b9301c8b9db62ce8683c55858f60549a | [
"MIT"
] | 1 | 2020-02-15T14:21:04.000Z | 2020-02-15T14:25:12.000Z | CPP lessons/Contests_Reading_books/Contests_Reading_books/main.cpp | AlexPC2/My-Projects | 5fd46cf9b9301c8b9db62ce8683c55858f60549a | [
"MIT"
] | null | null | null | //
// main.cpp
// Contests_Reading_books
//
// Created by Alex Noyanov on 19.03.19.
// Copyright © 2019 Popoff Developer Studio. All rights reserved.
//
/*
После уроков Настя решила почитать книжку. Книжка состоит из n
n
глав, идущих друг за другом, при этом каждая страница книги принадлежит ровно одной главе... | 20.97619 | 137 | 0.687855 | AlexPC2 |
538124015b636c2552a44d06db91f48f3e1622ce | 1,824 | cpp | C++ | search.cpp | honzaq/logan | 5a3c65885e902ff1a72ba31c64389cc5b0c1f1cf | [
"MIT"
] | null | null | null | search.cpp | honzaq/logan | 5a3c65885e902ff1a72ba31c64389cc5b0c1f1cf | [
"MIT"
] | null | null | null | search.cpp | honzaq/logan | 5a3c65885e902ff1a72ba31c64389cc5b0c1f1cf | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "search.h"
namespace logan {
namespace search {
const occtable_type create_occ_table(const uint8_t* text, size_t text_length)
{
occtable_type occ(UCHAR_MAX + 1, text_length); // initialize a table of UCHAR_MAX+1 elements to value text_length
/* Populate it with the analysis... | 34.415094 | 133 | 0.724781 | honzaq |
538310f19fa7a28a3bbf7ca8433af2c2b4a70580 | 593 | cpp | C++ | atcoder.jp/abc159/abc159_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc159/abc159_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc159/abc159_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s, rs, a, ra, b, rb;
cin >> s;
int n = s.size();
rs = string(s.rbegin(), s.rend());
if (s != rs)
{
cout << "No" << endl;
return 0;
}
a = s.substr(0, ((n - 1) / 2));
ra = string(a.rbegin(), a.rend());
... | 19.129032 | 51 | 0.391231 | shikij1 |
538a1e662b6e85b5f56c10eee38f26627c2c10d4 | 494 | cpp | C++ | C++/700. Search in a Binary Search Tree.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | 3 | 2018-07-28T15:36:18.000Z | 2020-03-17T01:26:22.000Z | C++/700. Search in a Binary Search Tree.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | C++/700. Search in a Binary Search Tree.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | //
// Created by 王阳 on 2018/7/25.
//
#include "header.h"
class Solution {
public:
TreeNode *searchBST(TreeNode *root, int val) {
while (true) {
if (nullptr == root) {
return nullptr;
} else if (val == root->val) {
return root;
} else if (... | 18.296296 | 50 | 0.421053 | WangYang-wy |
5390bd4adc252631dd79cfa9527def1b84096e1e | 42,699 | cc | C++ | xml/frame_message_description.cc | hcanIngo/openHCAN | 8aef7070482af7ae996755799e5d65d0d3b56553 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 21 | 2015-12-19T21:08:02.000Z | 2021-09-09T09:39:23.000Z | xml/frame_message_description.cc | RealMerlin/openHCAN | 7e15e725c3d6f2a5a36ccd55f5699685356d8287 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 10 | 2015-12-18T20:24:22.000Z | 2021-07-03T12:30:15.000Z | xml/frame_message_description.cc | RealMerlin/openHCAN | 7e15e725c3d6f2a5a36ccd55f5699685356d8287 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2015-12-27T17:15:21.000Z | 2021-09-09T09:39:38.000Z |
// ------- AUTOMATICLY GENERATED FROM mk_dump_data_h.xsl -----------------
#include <string>
#include <vector>
#include <frame_message_description.h>
using namespace std;
vector < frame_message_description_t > frame_message_description;
void
init_frame_message_description()
{
{
frame_message_description_t ... | 18.752306 | 82 | 0.70086 | hcanIngo |
5396a0523b62b2fe1aa55c175667265c7436e88e | 1,243 | cpp | C++ | Semestr_1/HomeWork_10/Number_1/Number_1/Test.cpp | SaveliyLipaev/HomeWork | 06994ce6ab6f12dd69507fffb6f2d3ba361f0069 | [
"MIT"
] | null | null | null | Semestr_1/HomeWork_10/Number_1/Number_1/Test.cpp | SaveliyLipaev/HomeWork | 06994ce6ab6f12dd69507fffb6f2d3ba361f0069 | [
"MIT"
] | 1 | 2018-11-06T05:30:37.000Z | 2018-11-06T05:30:37.000Z | Semestr_1/HomeWork_10/Number_1/Number_1/Test.cpp | SaveliyLipaev/HomeWork | 06994ce6ab6f12dd69507fffb6f2d3ba361f0069 | [
"MIT"
] | null | null | null | #include "graphForTasks10.1.h"
#include <fstream>
#include <vector>
bool test()
{
std::ifstream file("FileForTest.txt");
if (!file.is_open())
{
return false;
}
int quantityCities = 0;
int quantityRoads = 0;
file >> quantityCities >> quantityRoads;
auto graph = createGraph(quantityCities);
for (int i... | 22.196429 | 152 | 0.646822 | SaveliyLipaev |
5396aa68797068cc64ba0c52e826d0ae848f4cef | 5,640 | hpp | C++ | include/once/cpputils/stream/xcdr2.hpp | julionce/cpputils | 269dbe94c4a9b92538812dd1e91b7c2101b8a221 | [
"Apache-2.0"
] | null | null | null | include/once/cpputils/stream/xcdr2.hpp | julionce/cpputils | 269dbe94c4a9b92538812dd1e91b7c2101b8a221 | [
"Apache-2.0"
] | null | null | null | include/once/cpputils/stream/xcdr2.hpp | julionce/cpputils | 269dbe94c4a9b92538812dd1e91b7c2101b8a221 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021-present Julián Bermúdez Ortega
*
* 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 applicabl... | 24.415584 | 75 | 0.650887 | julionce |
53a862baf2e6cb87cb55e2c87dbd8fc192a0d044 | 51 | hpp | C++ | src/boost_graph_make_biconnected_planar.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_graph_make_biconnected_planar.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_graph_make_biconnected_planar.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/graph/make_biconnected_planar.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
53af3bd0fe84627dbc7512db551ce213b39fdc85 | 599 | cpp | C++ | source/framework/python/src/algorithm/acos.cpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 1 | 2019-04-14T15:51:12.000Z | 2019-04-14T15:51:12.000Z | source/framework/python/src/algorithm/acos.cpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/python/src/algorithm/acos.cpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #include "lue/framework/algorithm/value_policies/acos.hpp"
#include <pybind11/pybind11.h>
namespace lue::framework {
namespace {
template<
typename Element,
Rank rank>
PartitionedArray<Element, rank> acos(
PartitionedArray<Element, rank> const& array)
{... | 21.392857 | 58 | 0.584307 | pcraster |
53afd85785f4c2490fd95cb4d1a8b15ff75ba127 | 4,516 | cc | C++ | mysql_sys/thr_cond.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | mysql_sys/thr_cond.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | mysql_sys/thr_cond.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | /* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 32.028369 | 79 | 0.639283 | realnickel |
53b24c0a1d69effffdacb1343fb3fedbaceefaf0 | 665 | hpp | C++ | include/clpp/detail/error_handler.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 5 | 2015-09-08T01:59:26.000Z | 2018-11-26T10:19:29.000Z | include/clpp/detail/error_handler.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 6 | 2015-11-29T03:00:11.000Z | 2015-11-29T03:11:52.000Z | include/clpp/detail/error_handler.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | null | null | null | #ifndef CLPP_DETAIL_ERROR_HANDLER_HPP
#define CLPP_DETAIL_ERROR_HANDLER_HPP
#include "clpp/ret_code.hpp"
#include "clpp/exception.hpp"
#include <type_traits>
#include <map>
#include <experimental/string_view>
namespace cl {
namespace detail {
namespace impl { // strange errors occur when naming this namespace 'de... | 24.62963 | 79 | 0.76391 | Robbepop |
53b392c1ac4bc90a0986f4e30e5f07d5957e7e41 | 1,031 | hpp | C++ | libs/parse/include/fcppt/parse/skipper/operators/repetition.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/parse/include/fcppt/parse/skipper/operators/repetition.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/parse/include/fcppt/parse/skipper/operators/repetition.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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)
#ifndef FCPPT_PARSE_SKIPPER_OPERATORS_REPETITION_HPP_INCLUDED
#define FCPPT_PARSE_SKIPPER_OPERATORS... | 29.457143 | 89 | 0.757517 | freundlich |
53b5ada42928e1328f570fdc356ab07903d05025 | 2,532 | cpp | C++ | src/controls/ctrl-delay.cpp | DeviceNut/PixelNutSys | 8814203ea9794a20575188c850a5f954528e6d93 | [
"MIT"
] | null | null | null | src/controls/ctrl-delay.cpp | DeviceNut/PixelNutSys | 8814203ea9794a20575188c850a5f954528e6d93 | [
"MIT"
] | null | null | null | src/controls/ctrl-delay.cpp | DeviceNut/PixelNutSys | 8814203ea9794a20575188c850a5f954528e6d93 | [
"MIT"
] | null | null | null | // Hardware Delay Control
// Sets global delay percent applied to all effects in the pixelnut engine.
/*
Copyright (c) 2021, Greg de Valois
Software License Agreement (MIT License)
See license.txt for the terms of this license.
*/
#include "main.h"
#include "UIDeviceButton.h"
#include "UIDeviceAnalog.h"
#if defined(D... | 25.32 | 90 | 0.635466 | DeviceNut |
53b5d12e7d590b23fd6213ed0775fc58cf780f2a | 4,482 | cpp | C++ | _source/_client/main.cpp | hywei/toy_raytracer | 323fdd818f06a88b7823d9174a99912bbc06367d | [
"MIT"
] | null | null | null | _source/_client/main.cpp | hywei/toy_raytracer | 323fdd818f06a88b7823d9174a99912bbc06367d | [
"MIT"
] | null | null | null | _source/_client/main.cpp | hywei/toy_raytracer | 323fdd818f06a88b7823d9174a99912bbc06367d | [
"MIT"
] | null | null | null | #include <fstream>
#include <random>
#include <iostream>
#include <stdlib.h>
#include "_foundation/math/vec3.h"
#include "_foundation/math/ray.h"
#include "_foundation/math/intersect.h"
#include "_foundation/math/utils.h"
#include "_render/camera.h"
#include "_render/material.h"
#include "_render/scene.h"
using names... | 30.910345 | 84 | 0.529674 | hywei |
53bc9a1e8ddf9c605b04ad9527693046e7981442 | 14,747 | cpp | C++ | susumu-editor/src/editor_layer.cpp | tibimunteanu/susumu | dcf5942d1a5ea5647f0b6cdd53709b542b86bd73 | [
"MIT"
] | null | null | null | susumu-editor/src/editor_layer.cpp | tibimunteanu/susumu | dcf5942d1a5ea5647f0b6cdd53709b542b86bd73 | [
"MIT"
] | null | null | null | susumu-editor/src/editor_layer.cpp | tibimunteanu/susumu | dcf5942d1a5ea5647f0b6cdd53709b542b86bd73 | [
"MIT"
] | null | null | null | #include "editor_layer.h"
#include "engine/scene/scene_serializer.h"
#include "engine/utils/platform_utils.h"
#include "engine/math/math.h"
#include <imgui/imgui.h>
#include <glm/gtc/type_ptr.hpp>
#include <ImGuizmo.h>
namespace susumu
{
EditorLayer::EditorLayer()
: Layer("EditorLayer"), m_CameraControlle... | 36.233415 | 143 | 0.539839 | tibimunteanu |
53bcded723ab885cd446eae83efca7cd987c4cec | 692 | cpp | C++ | CodeForces/954B/13514655_AC_31ms_3284kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/954B/13514655_AC_31ms_3284kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/954B/13514655_AC_31ms_3284kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-04-16 19:13:37
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
... | 15.727273 | 47 | 0.618497 | BakaErii |
53c1723cde7d186185374d12baff413fa5cb3a9f | 2,743 | cpp | C++ | graph-source-code/131-D/1218586.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/131-D/1218586.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/131-D/1218586.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include<iostream>
#include<vector>
#include<map>
#include<queue>
using namespace std;
int visited[3000];
map <int,int> m;
int root = -1;
bool detectcycle (int, const vector <vector<int> > &);
bool dfs(int, int, const vector <vector<int> > &);
int getpathvalue (int, const vector <vector<int> > ... | 23.444444 | 106 | 0.434196 | AmrARaouf |
53c73d40e27cd6030a688ceb3f4b78bd31fe2168 | 4,033 | cpp | C++ | test/parallel_requests_test.cpp | yarric/ql_fetcher | 159fbcdc5386ed8f68e67573aba5518178d0d254 | [
"MIT"
] | null | null | null | test/parallel_requests_test.cpp | yarric/ql_fetcher | 159fbcdc5386ed8f68e67573aba5518178d0d254 | [
"MIT"
] | null | null | null | test/parallel_requests_test.cpp | yarric/ql_fetcher | 159fbcdc5386ed8f68e67573aba5518178d0d254 | [
"MIT"
] | null | null | null | //
// parallel_requests_test.cpp
// ql_fetcher_test
//
// Created by Yaric Shkurat on 24/09/2017.
// Copyright © 2017 Yarrik Sh. All rights reserved.
//
#include "test_config.h"
#include QL_TEST
#include "lib/catch.hpp"
#include <iostream>
#include <chrono>
#include <thread>
std::string make_data_request(std::st... | 32.264 | 83 | 0.609968 | yarric |
53d0b6d23efdef5497ea5f8ac2b14f3567faf239 | 654 | cpp | C++ | SearchEn.cpp | CplusplusDeveloper123/AssistantAlphaTest | d35585127b27b1eb1f6c9e980db136364e7193f5 | [
"MIT"
] | null | null | null | SearchEn.cpp | CplusplusDeveloper123/AssistantAlphaTest | d35585127b27b1eb1f6c9e980db136364e7193f5 | [
"MIT"
] | null | null | null | SearchEn.cpp | CplusplusDeveloper123/AssistantAlphaTest | d35585127b27b1eb1f6c9e980db136364e7193f5 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <cstdio>
#include "Searching.h"
#include <Windows.h>
#include <string>
#include <string.h>
#include <iostream>
using namespace std;
class Search{
public:
void SearchEngine(){
cout << "please specify your engine" << endl;
string engine = "";
if(... | 24.222222 | 61 | 0.536697 | CplusplusDeveloper123 |
53d11e30ac1da52b39497e42c0b0f8f6b0e64c8f | 3,668 | cpp | C++ | Wolfenstein/src/Entity/Player.cpp | HeyIAmDave/Wolf3D-clone | e3772b29d353fa8152dfb8af1a5d11de78825425 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-04-13T12:15:23.000Z | 2021-04-13T12:15:23.000Z | Wolfenstein/src/Entity/Player.cpp | HeyIAmDave/Wolf3D-clone | e3772b29d353fa8152dfb8af1a5d11de78825425 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | Wolfenstein/src/Entity/Player.cpp | HeyIAmDave/Wolf3D-clone | e3772b29d353fa8152dfb8af1a5d11de78825425 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "Player.h"
#include "Level/Level.h"
Player::Player()
: m_lookSensitivity(0.0f), m_mouseLocked(false)
{ }
void Player::Init(float speed, float lookSensitivity, Level & level, Camera & camera)
{
GetSpeed() = speed;
m_lookSensitivity = lookSensitivity;
m_level = &level;
m_camera = &camera;... | 25.65035 | 87 | 0.615322 | HeyIAmDave |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.