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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45e7e7f438b8a1d8d8f4dbe0222ff36895fd82ed | 9,387 | cpp | C++ | tests/grammar/expression.cpp | momikey/rhea | 6aadc65eefbb40d9dddf585c33b3225da3929abd | [
"MIT"
] | 1 | 2020-08-31T08:39:05.000Z | 2020-08-31T08:39:05.000Z | tests/grammar/expression.cpp | momikey/rhea | 6aadc65eefbb40d9dddf585c33b3225da3929abd | [
"MIT"
] | null | null | null | tests/grammar/expression.cpp | momikey/rhea | 6aadc65eefbb40d9dddf585c33b3225da3929abd | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <string>
#include <tao/pegtl.hpp>
#include <tao/pegtl/analyze.hpp>
#include <tao/pegtl/contrib/tracer.hpp>
#include "test_setup.hpp"
#include "../../include/grammar/expression.hpp"
names... | 25.577657 | 85 | 0.538404 | momikey |
45ea5ed4022fd95c89cdd6fc865760af584d2642 | 1,191 | cpp | C++ | test/parser/test_request.cpp | blacksungrass/http_server | 817ec695ffc99f84a4d1531a47c5a0945edcd4f6 | [
"MIT"
] | null | null | null | test/parser/test_request.cpp | blacksungrass/http_server | 817ec695ffc99f84a4d1531a47c5a0945edcd4f6 | [
"MIT"
] | null | null | null | test/parser/test_request.cpp | blacksungrass/http_server | 817ec695ffc99f84a4d1531a47c5a0945edcd4f6 | [
"MIT"
] | null | null | null | //
// Created by blacksungrass on 2021/12/19.
//
#include <gtest/gtest.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <random>
#include <vector>
#include "../../src/parser/request.h"
#include <unistd.h>
using namespace std;
string read_file(const string& path)
{
ifstream ifs(path,ifstream:... | 24.306122 | 99 | 0.655751 | blacksungrass |
45eaf8afe00d95910e419bd71969b6164f4e2b59 | 7,740 | cpp | C++ | Source/SGame/SGTileBase.cpp | ZDron3/SimpleGame-Match- | 427040e3dce0e76c710e0baab021f9a9ae2a8530 | [
"MIT"
] | null | null | null | Source/SGame/SGTileBase.cpp | ZDron3/SimpleGame-Match- | 427040e3dce0e76c710e0baab021f9a9ae2a8530 | [
"MIT"
] | null | null | null | Source/SGame/SGTileBase.cpp | ZDron3/SimpleGame-Match- | 427040e3dce0e76c710e0baab021f9a9ae2a8530 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "SGame.h"
#include "SGTileBase.h"
#include "SGGrid.h"
#include "SGGameMode.h"
// Sets default values
ASGTileBase::ASGTileBase()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you... | 30.592885 | 235 | 0.777132 | ZDron3 |
45ee94647e5adfc1d7dd752cbf17506aecee60ca | 1,489 | cpp | C++ | Number Theory/binary_no_bits.cpp | atharva0300/CPP-Competitive-Programming | 3769734b0b8c2008f47864a72e4581595ad9176a | [
"MIT"
] | null | null | null | Number Theory/binary_no_bits.cpp | atharva0300/CPP-Competitive-Programming | 3769734b0b8c2008f47864a72e4581595ad9176a | [
"MIT"
] | null | null | null | Number Theory/binary_no_bits.cpp | atharva0300/CPP-Competitive-Programming | 3769734b0b8c2008f47864a72e4581595ad9176a | [
"MIT"
] | null | null | null | /*
Binary numbers and Bits Basics
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
/*
and = &
or - |
xor - ^
left shift : <<
example - 3<<1
Means that perform left binary shifting, to the binary number of 3
... | 24.409836 | 88 | 0.470786 | atharva0300 |
45efd3b454cd53d2f83c4f60e2b9f4eeeb155a69 | 2,071 | cpp | C++ | graph-source-code/29-E/4510468.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/29-E/4510468.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/29-E/4510468.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <stdio.h>
#include <vector>
#include <queue>
using namespace std;
struct state{
int a,b,cost;
bool f;
state(){}
state(int x,int y,bool F,int z=0){
a=x;
b=y;
f=F;
cost=z;
}
};
int n,e,a,b;
state parent[500][500][2];
bool ... | 24.364706 | 66 | 0.392564 | AmrARaouf |
45f0ce8851ace5f11b1b1fb7f3ffb9397cfff328 | 5,522 | cpp | C++ | tests/Bootstrap.Tests/tests/WorkerServiceTests.cpp | samcragg/Autocrat | 179e0b42ddd3ecbf75467e479cd8f2f6c67c82ec | [
"MIT"
] | null | null | null | tests/Bootstrap.Tests/tests/WorkerServiceTests.cpp | samcragg/Autocrat | 179e0b42ddd3ecbf75467e479cd8f2f6c67c82ec | [
"MIT"
] | 2 | 2020-09-30T07:09:46.000Z | 2021-01-03T20:01:02.000Z | tests/Bootstrap.Tests/tests/WorkerServiceTests.cpp | samcragg/Autocrat | 179e0b42ddd3ecbf75467e479cd8f2f6c67c82ec | [
"MIT"
] | null | null | null | #include "worker_service.h"
#include <algorithm>
#include <atomic>
#include <memory>
#include <mutex>
#include <thread>
#include <vector>
#include <gtest/gtest.h>
#include <cpp_mock.h>
#include "ManagedObjects.h"
#include "mock_services.h"
#include "TestMocks.h"
namespace
{
std::unique_ptr<ManagedObject<BaseClass... | 30.508287 | 100 | 0.681275 | samcragg |
45f3591cb339e68f9cdecf025646f1349b09de5d | 1,094 | cpp | C++ | codes/CodeForces/Round #234/cf400E.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/CodeForces/Round #234/cf400E.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/CodeForces/Round #234/cf400E.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iostream>
using namespace std;
typedef long long ll;
const int N = 1e5+5;
int n, m, t[N];
ll s;
void find(int k, ll& l, ll& r, int x) {
l = r = 0;
for (int i = x-1; i; i--) {
if ((t[i]&k) == 0) break;
l++;
}
for (int i = x+1; i <= n; i++) ... | 15.194444 | 49 | 0.40585 | JeraKrs |
45f6d950a0d52a764fa14bc6978f6206da521523 | 450 | cpp | C++ | src/nodes/mono_camera_nodelet.cpp | subeiammar/avt_vimba_camera | 4024d68cc275c88b5c6e9cd0a4f81f8bdb8bc7fd | [
"MIT"
] | null | null | null | src/nodes/mono_camera_nodelet.cpp | subeiammar/avt_vimba_camera | 4024d68cc275c88b5c6e9cd0a4f81f8bdb8bc7fd | [
"MIT"
] | null | null | null | src/nodes/mono_camera_nodelet.cpp | subeiammar/avt_vimba_camera | 4024d68cc275c88b5c6e9cd0a4f81f8bdb8bc7fd | [
"MIT"
] | null | null | null | #include <pluginlib/class_list_macros.h>
#include "avt_vimba_camera/mono_camera_nodelet.h"
namespace avt_vimba_camera
{
void MonoCameraNodelet::onInit()
{
NODELET_DEBUG("Initializing nodelet...");
camera_ = new MonoCamera(getMTNodeHandle(), getMTPrivateNodeHandle());
}
MonoCameraNodelet::~MonoCameraNodelet()
{
... | 23.684211 | 77 | 0.797778 | subeiammar |
45fb8ef6104c5ee77f2f8fe1e5f720332da5e2a7 | 1,778 | cpp | C++ | test/main.cpp | fesily/nanodbc_ext | 1d0d96130183bac6d27bd3dc07d82cc4f6e4b7cb | [
"MIT"
] | null | null | null | test/main.cpp | fesily/nanodbc_ext | 1d0d96130183bac6d27bd3dc07d82cc4f6e4b7cb | [
"MIT"
] | null | null | null | test/main.cpp | fesily/nanodbc_ext | 1d0d96130183bac6d27bd3dc07d82cc4f6e4b7cb | [
"MIT"
] | null | null | null | #include <nanodbc_ext/nanodbc_ext.h>
#define FOLLY_HAS_COROUTINES 1
#define FOLLY_CORO_AWAIT_SUSPEND_NONTRIVIAL_ATTRIBUTES
#include <folly/futures/Future.h>
#include <folly/experimental/coro/Task.h>
folly::coro::Task<void> AsyncMain()
{
try
{
//Driver={SQL Server};Server=myServerAddress;Database=myDataB... | 35.56 | 151 | 0.628234 | fesily |
340d301e1319237b1de2a29e41ef89d156cc0713 | 596 | cc | C++ | src/lib/src/SampleClass.cc | yasuaki-miyoshi/cpp-develop-template | 3977d119b77b3deda604c2b6958bdadce65a8a41 | [
"MIT"
] | null | null | null | src/lib/src/SampleClass.cc | yasuaki-miyoshi/cpp-develop-template | 3977d119b77b3deda604c2b6958bdadce65a8a41 | [
"MIT"
] | null | null | null | src/lib/src/SampleClass.cc | yasuaki-miyoshi/cpp-develop-template | 3977d119b77b3deda604c2b6958bdadce65a8a41 | [
"MIT"
] | null | null | null | /**
* @file SampleClass.cc
* @brief Implementation of basic class.
* @copyright Copyright (c) 2020 Yasuaki Miyoshi.
*
* This software is released under the MIT License.
* see http://opensource.org/licenses/mit-license.php
*/
#include <iostream>
#include "SampleClass.h"
namespace {
}
namespace CppDevelopTempla... | 17.028571 | 54 | 0.697987 | yasuaki-miyoshi |
340ecf0403bf52a2e42445bcb807e51f7582e1e7 | 404 | cpp | C++ | 08-templates-iterators/1-functions/pi.cpp | tehilabk/cpp-5781 | 736ed05dddb2a7270bbcdbb04a3ffb4b9046e358 | [
"MIT"
] | 6 | 2020-03-19T13:49:17.000Z | 2020-05-27T16:04:37.000Z | 08-templates-iterators/1-functions/pi.cpp | erelsgl-at-ariel/cpp-5780 | 181ae712a05031f85fe3f9f7b16c5e60350e1577 | [
"MIT"
] | null | null | null | 08-templates-iterators/1-functions/pi.cpp | erelsgl-at-ariel/cpp-5780 | 181ae712a05031f85fe3f9f7b16c5e60350e1577 | [
"MIT"
] | 23 | 2020-03-12T13:21:29.000Z | 2021-02-22T21:29:48.000Z | /**
* Variable template example
*
* @author Erel Segal-Halevi
* @since 2018-04
*/
#include <iostream>
using namespace std;
template<typename T>
const T pi =
static_cast<T>(3.1415926535897932385L); // variable template
template<typename T> T circular_area(T r) {
return pi<T> * r * r;
}
int main()... | 18.363636 | 67 | 0.636139 | tehilabk |
3417903c6dd78c3ae83eb6b01d5414a9174d4df3 | 307 | hpp | C++ | audio/al.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | audio/al.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | audio/al.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_AUDIO_AL_HPP___
#define ___INANITY_AUDIO_AL_HPP___
#if defined(___INANITY_PLATFORM_MACOS)
#include </System/Library/Frameworks/OpenAL.framework/Headers/al.h>
#include </System/Library/Frameworks/OpenAL.framework/Headers/alc.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
#endif
#endif
| 23.615385 | 68 | 0.807818 | quyse |
34185be0fe860fd9a0759ca1f7332627c555fc79 | 842 | cpp | C++ | LuoguCodes/P2672.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P2672.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P2672.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
int max_s = 0;
struct Data
{
int a;
int s;
};
bool cmp(Data d1, Data d2)
{
int v1 = d1.a, v2 = d2.a;
if (d1.s > max_s) v1 += (d1.s - max_s) * 2;
if (d2.s > max_s) v2 += (d2.s - max_s) * 2;
return v1 > v2;
}
int main()
{
//freope... | 15.309091 | 44 | 0.513064 | Anguei |
341e300b55bf01c0b0641f95b3c0c32d59dd6b87 | 72 | hpp | C++ | scpp_core/utils/include/timing.hpp | Zentrik/SCpp | 92176e57747ff5629a4ab3eeb3a86b3de21aaa48 | [
"MIT"
] | 110 | 2019-01-30T05:39:31.000Z | 2022-02-22T11:31:27.000Z | scpp_core/utils/include/timing.hpp | Zentrik/SCpp | 92176e57747ff5629a4ab3eeb3a86b3de21aaa48 | [
"MIT"
] | 6 | 2019-04-02T09:46:26.000Z | 2021-07-16T13:03:16.000Z | scpp_core/utils/include/timing.hpp | Zentrik/SCpp | 92176e57747ff5629a4ab3eeb3a86b3de21aaa48 | [
"MIT"
] | 32 | 2019-07-11T06:58:16.000Z | 2022-03-30T08:05:48.000Z | #pragma once
#include <chrono>
double tic();
double toc(double start); | 12 | 25 | 0.722222 | Zentrik |
342015b7c84f57078085fa242ba49adff4ff49ab | 1,446 | cpp | C++ | src/details/DragAndDropFilter.cpp | mdraven/mdr_tree_style_tabs | 7e6ecb9150f5a83d7bcf59b0de2b53ec148d69ac | [
"BSL-1.0"
] | null | null | null | src/details/DragAndDropFilter.cpp | mdraven/mdr_tree_style_tabs | 7e6ecb9150f5a83d7bcf59b0de2b53ec148d69ac | [
"BSL-1.0"
] | null | null | null | src/details/DragAndDropFilter.cpp | mdraven/mdr_tree_style_tabs | 7e6ecb9150f5a83d7bcf59b0de2b53ec148d69ac | [
"BSL-1.0"
] | null | null | null |
#include <mdrTreeStyleTabs/details/DragAndDropFilter.hpp>
mdr::details::DragAndDropFilter::
DragAndDropFilter(QObject* parent,
const PressHandler& press,
const MoveHandler& move,
const ReleaseHandler& release,
const WheelHandler& wheel)
: QOb... | 31.434783 | 77 | 0.594744 | mdraven |
342488f4e26342041598eb89a81f7108b6ff251b | 1,839 | cpp | C++ | network/src/app/tcpServer.cpp | yandaomin/network | fd88844116d77639c7a76ec61fb352f2710f47a8 | [
"Apache-2.0"
] | null | null | null | network/src/app/tcpServer.cpp | yandaomin/network | fd88844116d77639c7a76ec61fb352f2710f47a8 | [
"Apache-2.0"
] | null | null | null | network/src/app/tcpServer.cpp | yandaomin/network | fd88844116d77639c7a76ec61fb352f2710f47a8 | [
"Apache-2.0"
] | null | null | null | #include "tcpServer.h"
#include <iostream>
#include "tcpServerPrivate_.h"
#include "ref.h"
#include "tcpConnection.h"
#include "common.h"
TcpServer::TcpServer(Loop* loop){
private_ = new TcpServerPrivate_(loop);
}
TcpServer::~TcpServer()
{
if (private_) {
delete private_;
private_ = nullptr;
}
}
Loop* TcpSer... | 19.774194 | 103 | 0.725394 | yandaomin |
34253ad7064d3f9ffc84113655ea5982a8c5a3f4 | 527 | cpp | C++ | ClientTest/ClientTest/GameTimer.cpp | druid0228/Aster | 8127b881ee26dc8d778adca8cd366b47e3847236 | [
"MIT"
] | null | null | null | ClientTest/ClientTest/GameTimer.cpp | druid0228/Aster | 8127b881ee26dc8d778adca8cd366b47e3847236 | [
"MIT"
] | null | null | null | ClientTest/ClientTest/GameTimer.cpp | druid0228/Aster | 8127b881ee26dc8d778adca8cd366b47e3847236 | [
"MIT"
] | null | null | null | #include "GameTimer.h"
GameTimer::GameTimer()
{
t_elapsed = 0;
b_running = false;
}
GameTimer::~GameTimer()
{
}
void GameTimer::Start()
{
t_prev = high_resolution_clock::now();
b_running = true;
}
float GameTimer::Tick()
{
auto t_now = high_resolution_clock::now();
t_elapsed = duration_cast<milliseconds>(t_no... | 15.057143 | 73 | 0.601518 | druid0228 |
34285066fe467c0315ccba72d160f7c79d595fed | 4,995 | cpp | C++ | src/triangle2d.cpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/triangle2d.cpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/triangle2d.cpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | #include "triangle2d.hpp"
#include "circle2d.hpp"
#include "line2d.hpp"
#include "aabb2d.hpp"
#include "conditional.hpp"
#include "segment2d.hpp"
namespace beat {
namespace g2 {
using frea::AVec2;
Triangle::Triangle(const Vec2& p0, const Vec2& p1, const Vec2& p2) noexcept:
pos{p0, p1, p2}
{}
float Triangle... | 26.289474 | 79 | 0.548749 | degarashi |
34298dc298c79972c2b1f11576c0c67d1a18be2a | 1,241 | hpp | C++ | DLABaseShader.hpp | Crumbler/DLAGL | 770af4ef8cf3adba40315952dea8f25c115d282b | [
"MIT"
] | null | null | null | DLABaseShader.hpp | Crumbler/DLAGL | 770af4ef8cf3adba40315952dea8f25c115d282b | [
"MIT"
] | null | null | null | DLABaseShader.hpp | Crumbler/DLAGL | 770af4ef8cf3adba40315952dea8f25c115d282b | [
"MIT"
] | null | null | null | #pragma once
#include "DLABase.hpp"
#include "ShaderProgram.hpp"
class DLABaseShader : public ShaderProgram
{
public:
void Init(const bool useHue, const float hueS,
const float hueV);
void loadProjectionMatrix(const glm::mat4& mat);
void setUseHue(const bool useHue);
... | 37.606061 | 71 | 0.647059 | Crumbler |
342b62e925b5a5559e4251b6af166e8016207a23 | 3,309 | cpp | C++ | http.cpp | number201724/ChiririDanmaku | 796bdeb634a248d744be20ebc3c27f6b214cc71d | [
"MIT"
] | 1 | 2020-02-11T14:11:50.000Z | 2020-02-11T14:11:50.000Z | http.cpp | number201724/ChiririDanmaku | 796bdeb634a248d744be20ebc3c27f6b214cc71d | [
"MIT"
] | null | null | null | http.cpp | number201724/ChiririDanmaku | 796bdeb634a248d744be20ebc3c27f6b214cc71d | [
"MIT"
] | 1 | 2020-02-11T10:26:50.000Z | 2020-02-11T10:26:50.000Z | #include "pch.h"
#include "common.h"
#include "sys.h"
#include "http.h"
CHttp gHttp;
CHttp::CHttp( void )
{
m_pCurlM = NULL;
m_nPendingRequests = 0;
}
CHttp::~CHttp( void )
{
}
void CHttp::Init( void )
{
curl_global_init( CURL_GLOBAL_ALL );
m_pCurlM = curl_multi_init( );
if( m_pCurlM == NULL )
{
gSys.Err... | 17.790323 | 93 | 0.713811 | number201724 |
342dadcfb0ae03e850379846e95b75584b44467b | 1,012 | cpp | C++ | src/CommunicationService/src/MessageSender.cpp | Jafie/P2PLocalChat | 3faf0f3de6373820b8d312d1ac71a00cf7cefa2c | [
"MIT"
] | null | null | null | src/CommunicationService/src/MessageSender.cpp | Jafie/P2PLocalChat | 3faf0f3de6373820b8d312d1ac71a00cf7cefa2c | [
"MIT"
] | null | null | null | src/CommunicationService/src/MessageSender.cpp | Jafie/P2PLocalChat | 3faf0f3de6373820b8d312d1ac71a00cf7cefa2c | [
"MIT"
] | null | null | null | /**
* @file MessageSender.cpp
* @author Axel Fortun
* @brief The sender of ZMQ messages. Connect to another socket.
* @details
*/
#include "MessageSender.hpp"
#include <iostream>
using namespace std;
MessageSender::MessageSender(const std::string &networkInformation, zmq::context_t &zmqContext)
{
senderSo... | 24.682927 | 103 | 0.702569 | Jafie |
3437fa8b2abfd30375f47eb49e19e532dd7ab79b | 2,582 | cpp | C++ | MSL_GUI/sources/plugin/misc/gui_convergence_logger.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | MSL_GUI/sources/plugin/misc/gui_convergence_logger.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | MSL_GUI/sources/plugin/misc/gui_convergence_logger.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | /* -*- c++ -*-
+-----------------------------------------------------------------------+
| MSL GUI - A Graphical User Interface for the Marburg Software Library |
| |
| Copyright (C) 2018 Henning Zickermann ... | 32.683544 | 93 | 0.668474 | kedingagnumerikunimarburg |
343bbb5044d784c08efd54360455fe0c02935f93 | 2,593 | cpp | C++ | tests/unit/selectors.cpp | igagis/cssdom | dd1ba3ce6277b8b11f56085d536dda8bd47cf844 | [
"MIT"
] | 3 | 2020-06-01T15:55:31.000Z | 2020-10-08T12:44:09.000Z | tests/unit/selectors.cpp | cppfw/cssom | 53e95ddb2c6e92d7d5c5f1711911b09a30d8d9b6 | [
"MIT"
] | 2 | 2021-04-04T00:14:31.000Z | 2021-04-04T19:56:45.000Z | tests/unit/selectors.cpp | igagis/cssdom | dd1ba3ce6277b8b11f56085d536dda8bd47cf844 | [
"MIT"
] | 1 | 2021-06-05T23:59:40.000Z | 2021-06-05T23:59:40.000Z | #include <tst/set.hpp>
#include <tst/check.hpp>
#include <papki/span_file.hpp>
#include "../harness/properties.hpp"
#include "../harness/om.hpp"
namespace{
tst::set set("selectors", [](auto& suite){
suite.add(
"basic_property_value_query",
[](){
auto css = R"qwertyuiop(
... | 32.822785 | 101 | 0.439645 | igagis |
3443bb6b3772af3f965760bb12e58454588b7307 | 6,515 | cpp | C++ | net.ssa/Editors/LevelEditor/Edit/ModelPool.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | net.ssa/Editors/ParticleEditor/Editor/ModelPool.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | net.ssa/Editors/ParticleEditor/Editor/ModelPool.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | // ModelPool.cpp: implementation of the CModelPool class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#pragma hdrstop
#include "ModelPool.h"
#include "fmesh.h"
#include "fvisual.h"
#include "fprogressivefixedvisual.h"
#include "ParticleGroup.h"
#include "s... | 25.649606 | 158 | 0.614889 | ixray-team |
34492e3aaec411b0a8a79b599675c623f42d532c | 293 | hpp | C++ | include/FindMinimumInRotatedSortedArrayII.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/FindMinimumInRotatedSortedArrayII.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/FindMinimumInRotatedSortedArrayII.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef FIND_MINIMUM_IN_ROTATED_SORTED_ARRAY_II_HPP_
#define FIND_MINIMUM_IN_ROTATED_SORTED_ARRAY_II_HPP_
#include <vector>
using namespace std;
class FindMinimumInRotatedSortedArrayII {
public:
int findMin(vector<int> &nums);
};
#endif // FIND_MINIMUM_IN_ROTATED_SORTED_ARRAY_II_HPP_
| 20.928571 | 54 | 0.83959 | yanzhe-chen |
4524c2fbf5c4e9fe199e4b6b6ab63aa42475b96b | 59 | hpp | C++ | src/boost_interprocess_sync_named_condition_any.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_interprocess_sync_named_condition_any.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_interprocess_sync_named_condition_any.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/interprocess/sync/named_condition_any.hpp>
| 29.5 | 58 | 0.847458 | miathedev |
4524dcb2b1cd78ef31cbed86513392ac1acd2d1f | 3,929 | cpp | C++ | rasterizer/rasterizeengine.cpp | LCSyy/SoftwareRenderer | 0d43f7a8ccbd07c84a48922b28edc323436fd9c9 | [
"Xnet",
"X11"
] | null | null | null | rasterizer/rasterizeengine.cpp | LCSyy/SoftwareRenderer | 0d43f7a8ccbd07c84a48922b28edc323436fd9c9 | [
"Xnet",
"X11"
] | null | null | null | rasterizer/rasterizeengine.cpp | LCSyy/SoftwareRenderer | 0d43f7a8ccbd07c84a48922b28edc323436fd9c9 | [
"Xnet",
"X11"
] | null | null | null | #include "rasterizeengine.h"
#include <cmath>
#include <iostream>
RasterizeEngine::RasterizeEngine()
{
}
RasterizeEngine::~RasterizeEngine()
{
}
void RasterizeEngine::draw_line_dda(const Point2D &start, const Point2D &end, const Color &color)
{
float dx = end.x - start.x;
float dy = end.y - start.y;
... | 28.064286 | 103 | 0.427081 | LCSyy |
4528fb39a19f7bc85c94a43e97a0de17a33bae39 | 558 | cpp | C++ | tests/other/c_raii.cpp | kapstok/mbedcrypto | bc6a0ee4120a2edfcf1183a5e3084f32e9df61ce | [
"MIT"
] | 40 | 2016-04-01T15:20:24.000Z | 2022-03-24T08:38:12.000Z | tests/other/c_raii.cpp | kapstok/mbedcrypto | bc6a0ee4120a2edfcf1183a5e3084f32e9df61ce | [
"MIT"
] | 4 | 2017-12-12T09:04:38.000Z | 2021-01-30T04:19:05.000Z | tests/other/c_raii.cpp | kapstok/mbedcrypto | bc6a0ee4120a2edfcf1183a5e3084f32e9df61ce | [
"MIT"
] | 15 | 2016-07-22T02:46:23.000Z | 2020-12-23T15:57:37.000Z | #include "mbedcrypto/mbedtls_wrapper.hxx"
#include <iostream>
#include <memory>
///////////////////////////////////////////////////////////////////////////////
int
main(int, char**) {
try {
mbedtls::md md1;
mbedtls::cipher cc1;
mbedtls::rnd_gen rg1;
mbedtls::entropy en1;
... | 21.461538 | 79 | 0.469534 | kapstok |
4529c18dc321bb7562f526b898dbdb6641be934b | 2,381 | hpp | C++ | include/codegen/include/UnityEngine/Rendering/BuiltinShaderMode.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Rendering/BuiltinShaderMode.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Rendering/BuiltinShaderMode.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:32 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed in... | 52.911111 | 112 | 0.758085 | Futuremappermydud |
452a8dd0075f505341edf312e9058652e161e2e6 | 5,936 | hpp | C++ | src/Aurora/Graphics/DShape.hpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | 1 | 2022-02-23T17:42:51.000Z | 2022-02-23T17:42:51.000Z | src/Aurora/Graphics/DShape.hpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | null | null | null | src/Aurora/Graphics/DShape.hpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "Color.hpp"
#include "Base/IRenderDevice.hpp"
#include "Aurora/Physics/AABB.hpp"
#include "Aurora/Core/String.hpp"
namespace Aurora
{
class Scene;
struct CameraComponent;
struct TransformComponent;
namespace ShapeStructs
{
struct ShapeBase
{
::Aurora::Color Color;
... | 33.348315 | 216 | 0.700809 | sjuhyeon |
452bb5b61535f74deeb4c1ed0cab4a978b42e703 | 6,242 | hpp | C++ | external/include/mapnik/svg/svg_path_commands.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/svg/svg_path_commands.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/svg/svg_path_commands.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 23.378277 | 113 | 0.57001 | Wujingli |
452d47bee6eaa8f68cb3f23429c5e7f7ff1010b6 | 175 | hpp | C++ | include/StringAlgo/StringAlgoPCH.hpp | PoetaKodu/string-algo | 666496207db5cab4622d9c073eaecd6560d72d3c | [
"MIT"
] | null | null | null | include/StringAlgo/StringAlgoPCH.hpp | PoetaKodu/string-algo | 666496207db5cab4622d9c073eaecd6560d72d3c | [
"MIT"
] | null | null | null | include/StringAlgo/StringAlgoPCH.hpp | PoetaKodu/string-algo | 666496207db5cab4622d9c073eaecd6560d72d3c | [
"MIT"
] | 1 | 2021-08-05T11:15:15.000Z | 2021-08-05T11:15:15.000Z | #pragma once
#include <algorithm>
#include <cstring>
#include <string>
#include <string_view>
#include <optional>
#include <type_traits>
// TODO: put common includes in here | 17.5 | 36 | 0.748571 | PoetaKodu |
452f99e6a86fc3070287c7e754e660eedc666c0d | 3,278 | hpp | C++ | samples/qtreeview_client/model.hpp | igormironchik/components-observation | 4ebe3481b51da9aa69712c5962fa7e4bee95b664 | [
"MIT"
] | 2 | 2015-03-22T07:34:43.000Z | 2017-02-09T18:02:34.000Z | samples/qtreeview_client/model.hpp | igormironchik/components-observation | 4ebe3481b51da9aa69712c5962fa7e4bee95b664 | [
"MIT"
] | null | null | null | samples/qtreeview_client/model.hpp | igormironchik/components-observation | 4ebe3481b51da9aa69712c5962fa7e4bee95b664 | [
"MIT"
] | 2 | 2016-10-11T07:46:40.000Z | 2017-07-26T19:01:31.000Z |
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2012 Igor Mironchik
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, incl... | 31.219048 | 70 | 0.722392 | igormironchik |
45350af82482ae1f3b012dab8dea30c01dfe0ca5 | 2,865 | cpp | C++ | test/Fsm_test.cpp | ryanplusplus/tiny.cpp | 70d5f8dc660348be2e97e247a2a27de1b4cae5b4 | [
"MIT"
] | null | null | null | test/Fsm_test.cpp | ryanplusplus/tiny.cpp | 70d5f8dc660348be2e97e247a2a27de1b4cae5b4 | [
"MIT"
] | null | null | null | test/Fsm_test.cpp | ryanplusplus/tiny.cpp | 70d5f8dc660348be2e97e247a2a27de1b4cae5b4 | [
"MIT"
] | null | null | null | /*!
* @file
* @brief
*/
#include <cstdint>
#include "tiny/Fsm.h"
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
using namespace tiny;
using namespace std;
#define then
TEST_GROUP(Fsm)
{
typedef void (*State)(uint8_t*, uint8_t, const void*);
uint8_t context;
Fsm* fsm;
enum {
... | 24.07563 | 92 | 0.724258 | ryanplusplus |
453d2a6596279c3feacec9302cab148efa72f932 | 359 | cpp | C++ | data-structures/dp/MaxSeq.cpp | dhwanisanmukhani/competitive-coding | 5392dea65b6ac370ac641c993120d7f252f5b1ac | [
"MIT"
] | null | null | null | data-structures/dp/MaxSeq.cpp | dhwanisanmukhani/competitive-coding | 5392dea65b6ac370ac641c993120d7f252f5b1ac | [
"MIT"
] | null | null | null | data-structures/dp/MaxSeq.cpp | dhwanisanmukhani/competitive-coding | 5392dea65b6ac370ac641c993120d7f252f5b1ac | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
int dp[n]={1},a[n];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for(int i=1;i<n;i++)
{
for(int k=0;k<i;k++)
{
if(a[k]<a[i])
dp[i]=max(dp[i],1+dp[k]);
else
continue;
}
//cout<<dp[i]<<endl;
}
sort(dp,dp+n... | 12.821429 | 29 | 0.501393 | dhwanisanmukhani |
453f5f6f513671e5c1e5e017cc1910a9a8f60ac2 | 6,338 | cpp | C++ | swarm_robot_description/src/obsoleted/swarm_spawner_gazebo_client.cpp | yangliu28/swarm_robot | 46aa9bca952ee24f528da736c0deef70b840b600 | [
"MIT"
] | 79 | 2017-05-02T17:06:55.000Z | 2022-02-17T06:37:00.000Z | swarm_robot_description/src/obsoleted/swarm_spawner_gazebo_client.cpp | yangliu28/swarm_robot | 46aa9bca952ee24f528da736c0deef70b840b600 | [
"MIT"
] | 10 | 2016-08-02T04:07:58.000Z | 2022-01-09T06:36:30.000Z | swarm_robot_description/src/obsoleted/swarm_spawner_gazebo_client.cpp | yangliu28/swarm_robot | 46aa9bca952ee24f528da736c0deef70b840b600 | [
"MIT"
] | 39 | 2016-03-05T18:33:41.000Z | 2022-01-24T02:44:56.000Z | // spawn robot swarm at customized quantity, positions and orientation using gazebo service
// this node is to be invoked in a launch file for environment setting of gazebo
// parameters from parameter server
// robot name: /swarm_sim/robot_name
// robot urdf: /swarm_sim/robot_name_urdf (replace robot_name wit... | 44.321678 | 108 | 0.679394 | yangliu28 |
453ffe1720368df76ee059a33631b5ba023e76c1 | 522 | cpp | C++ | Online-Judge-Solution/UVA Solutions/11650(Mirror Clock).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/UVA Solutions/11650(Mirror Clock).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/UVA Solutions/11650(Mirror Clock).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int H1,M1,H,M,T,i;
cin>>T;
while(T--)
{
scanf("%d:%d",&H1,&M1);
if(M1>0 && H1>0)
{
H=11-H1;
if(H1==11)
H=12;
else if(H1==12)
H=11;
M=60-M1;
... | 16.83871 | 35 | 0.312261 | arifparvez14 |
45430b8fd5cc34cd461435a066eb36a1f40f51fe | 1,133 | cpp | C++ | src/typeDB.cpp | StefanoLanza/Reflection | 2749f8f86c65680787162199093a0c35bd08a8ae | [
"MIT"
] | null | null | null | src/typeDB.cpp | StefanoLanza/Reflection | 2749f8f86c65680787162199093a0c35bd08a8ae | [
"MIT"
] | 5 | 2020-09-01T14:06:03.000Z | 2020-09-26T09:25:46.000Z | src/typeDB.cpp | StefanoLanza/Reflection | 2749f8f86c65680787162199093a0c35bd08a8ae | [
"MIT"
] | null | null | null | #include "typeDB.h"
#include "namespace.h"
#include "structType.h"
#include <core/scopedAllocator.h>
#include <cassert>
#include <cstring>
namespace Typhoon::Reflection {
TypeDB::TypeDB(Allocator& allocator, ScopedAllocator& scopedAllocator)
: types(stdAllocator<const Type*>(allocator)) {
types.reserve(64);
gl... | 20.981481 | 81 | 0.707855 | StefanoLanza |
4552acb3af12ff0b2956c2b862ef6a8a76a6b389 | 5,989 | cpp | C++ | aliLuaTest/test_aliLuaCore_future.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliLuaTest/test_aliLuaCore_future.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliLuaTest/test_aliLuaCore_future.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <aliLuaCore.hpp>
#include <aliLuaExt.hpp>
#include <aliLuaTest_util.hpp>
#include <aliSystem.hpp>
namespace {
using ExecEngine = aliLuaExt::ExecEngine;
using Future = aliLuaCore::Future;
using MakeFn = aliLuaCore::MakeFn;
using Util = aliLuaCore::Util;
using Va... | 31.031088 | 86 | 0.599599 | hendrik-brower |
455b355fa3fe84410df7e917d3cd9574a6b78218 | 1,575 | hh | C++ | Kaskade/utilities/date_and_time.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 3 | 2019-07-03T14:03:31.000Z | 2021-12-19T10:18:49.000Z | Kaskade/utilities/date_and_time.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 6 | 2020-02-17T12:01:31.000Z | 2021-12-09T22:02:36.000Z | Kaskade/utilities/date_and_time.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 2 | 2020-12-03T04:41:18.000Z | 2021-01-11T21:44:42.000Z | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the library KASKADE 7 */
/* see http://www.zib.de/projects/kaskade7-finite-element-toolbox */
... | 38.414634 | 125 | 0.412063 | chenzongxiong |
455ca14bac585c84e55a32af4d006dc0a44941a3 | 4,663 | cpp | C++ | HideDataTicTacToe/VectorOfInt/VectorOfInt.cpp | KonstantinLeontev/c-lessons | 80c6a35341fede54cc6dbf2aa0fc12778a9ba043 | [
"MIT"
] | null | null | null | HideDataTicTacToe/VectorOfInt/VectorOfInt.cpp | KonstantinLeontev/c-lessons | 80c6a35341fede54cc6dbf2aa0fc12778a9ba043 | [
"MIT"
] | null | null | null | HideDataTicTacToe/VectorOfInt/VectorOfInt.cpp | KonstantinLeontev/c-lessons | 80c6a35341fede54cc6dbf2aa0fc12778a9ba043 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
enum menuItems {QUIT, GET, SET, PUSHBACK, PUSHFRONT, LIST};
void incorrectInput(void)
{
cout << "Incorrect input. Please try again" << endl;
cin.clear();
cin.ignore();
}
int menu(void)
{
int choice;
while (1)
{
cout << "Choose from menu: GET (1), SET... | 17.730038 | 153 | 0.60133 | KonstantinLeontev |
455f78d311fb10f427cbf34ddde4e24bf3577d25 | 1,391 | cpp | C++ | main.cpp | L-proger/PsxMemCardEditor | 01c609a9fbcb26bc469df7ea53dfeb0f5c9bb0ca | [
"MIT"
] | null | null | null | main.cpp | L-proger/PsxMemCardEditor | 01c609a9fbcb26bc469df7ea53dfeb0f5c9bb0ca | [
"MIT"
] | null | null | null | main.cpp | L-proger/PsxMemCardEditor | 01c609a9fbcb26bc469df7ea53dfeb0f5c9bb0ca | [
"MIT"
] | null | null | null | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <PsxMemCard/PsxMemCard.h>
#include <fstream>
#include <vector>
#include <iostream>
int main(int argc, char *argv[]){
std::vector<std::uint8_t> memcardImage;
memcardImage.resize(1024*128);
auto file = std::ifstream("D:/memcard/full.bin",... | 30.911111 | 107 | 0.626168 | L-proger |
455fd19dcc4cd9ad0182288e5372f8fb1a81c352 | 16,790 | cpp | C++ | src/RecorderEdit.cpp | anthonioez/RecorderBlackBerry10 | 978bfff4a874dbc6a2af0daebce2694855705daa | [
"Apache-2.0"
] | null | null | null | src/RecorderEdit.cpp | anthonioez/RecorderBlackBerry10 | 978bfff4a874dbc6a2af0daebce2694855705daa | [
"Apache-2.0"
] | null | null | null | src/RecorderEdit.cpp | anthonioez/RecorderBlackBerry10 | 978bfff4a874dbc6a2af0daebce2694855705daa | [
"Apache-2.0"
] | null | null | null | #include "Recorder.hpp"
#include "RecorderEdit.hpp"
#include "settings.hpp"
#include "utils.hpp"
RecorderEdit::RecorderEdit(bool asSheet)
{
mAsSheet = asSheet;
mAction = ACTION_READY;
}
void RecorderEdit::open(RecorderFile *file, bool e)
{
mEdit = e;
mEditMode = e;
mEntry = file;
if(file == NULL)
{
toastDown... | 21.119497 | 189 | 0.680881 | anthonioez |
4560bb454e91cabfe09d4c6b9c39c415206dd171 | 5,134 | cpp | C++ | lib/tcp/connection.cpp | Dnnd/cpp-tp-advanced | 21bbf539b9c935810300dabb9136098899b5eedf | [
"Apache-2.0"
] | 2 | 2020-06-14T14:34:28.000Z | 2020-06-19T18:39:06.000Z | lib/tcp/connection.cpp | Dnnd/cpp-tp-advanced | 21bbf539b9c935810300dabb9136098899b5eedf | [
"Apache-2.0"
] | null | null | null | lib/tcp/connection.cpp | Dnnd/cpp-tp-advanced | 21bbf539b9c935810300dabb9136098899b5eedf | [
"Apache-2.0"
] | null | null | null | #include "tcp/connection.hpp"
#include "tcp/excpetions.hpp"
#include "tcp/utils.hpp"
#include <cstring>
#include <string>
#include <sys/socket.h>
#include <unistd.h>
using namespace std::string_literals;
namespace tcp {
constexpr int FD_CLOSED = -1;
Connection::Connection(int fd)
: fd_{fd}, local_socket{get_local... | 31.888199 | 80 | 0.619205 | Dnnd |
4564322999d722fde6562938a310835589d7aee3 | 614 | cpp | C++ | tests/test.cpp | devborz/producer_consumer | 21856fac6c38bcff8b8fbc5cc2ff66121d74874b | [
"MIT"
] | null | null | null | tests/test.cpp | devborz/producer_consumer | 21856fac6c38bcff8b8fbc5cc2ff66121d74874b | [
"MIT"
] | null | null | null | tests/test.cpp | devborz/producer_consumer | 21856fac6c38bcff8b8fbc5cc2ff66121d74874b | [
"MIT"
] | null | null | null | // Copyright 2020 Usman Turkaev
#include <gtest/gtest.h>
#include <webcrawler.hpp>
using namespace webcrawler;
TEST(Example, EmptyTest) {
std::string url;
std::cout << "Enter url : https://";
std::cin >> url;
url = "https://" + url;
directory_manager manager;
char curl[url.size() + 1];
std::strcpy(curl,... | 26.695652 | 69 | 0.65798 | devborz |
456492fd6f87dd23079f9c564261d242bd6f0a2a | 803 | cpp | C++ | Pbinfo/84/main.cpp | LupusDiamond/Computer_Science_Problems | 5b7e4bfd5e237b83a67f7e47bab86b01ea78903a | [
"MIT"
] | 1 | 2019-10-08T18:32:45.000Z | 2019-10-08T18:32:45.000Z | Pbinfo/84/main.cpp | LupusDiamond/Computer_Science_Problems | 5b7e4bfd5e237b83a67f7e47bab86b01ea78903a | [
"MIT"
] | null | null | null | Pbinfo/84/main.cpp | LupusDiamond/Computer_Science_Problems | 5b7e4bfd5e237b83a67f7e47bab86b01ea78903a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
using namespace std;
int index1, index2, exista;
char s[256], vow[] = "aeiouAEIOU", cons[] = "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ", v, c, temp;
int main()
{
int i;
cin.get(s, 256);
for (i = 0; s[i] != '\0'; i++) {
if (strchr(vow, s[i])) ... | 20.589744 | 102 | 0.393524 | LupusDiamond |
456f21ba7402784b1de94369aa16f4f428400f99 | 2,437 | cpp | C++ | 460-lfu-cache/solution.cpp | darxsys/leetcode | 1174f0dbad56c6bfd8196bc4c14798b5f8cee418 | [
"MIT"
] | null | null | null | 460-lfu-cache/solution.cpp | darxsys/leetcode | 1174f0dbad56c6bfd8196bc4c14798b5f8cee418 | [
"MIT"
] | null | null | null | 460-lfu-cache/solution.cpp | darxsys/leetcode | 1174f0dbad56c6bfd8196bc4c14798b5f8cee418 | [
"MIT"
] | null | null | null | class LFUCache {
public:
LFUCache(int capacity) {
capacity_ = capacity;
}
int get(int key) {
if (capacity_ <= 0) return -1;
auto it = keyToLevel_.find(key);
if (it != keyToLevel_.end()) {
auto elem = keyToPos_[key];
promoteKe... | 27.693182 | 65 | 0.499795 | darxsys |
457449d45af984c707232cb66615538e421de4ff | 1,433 | cpp | C++ | livearchive/3009.cpp | Victoralin10/ACMSolutions | 6d6e50da87b2bc455e953629737215b74b10269c | [
"MIT"
] | null | null | null | livearchive/3009.cpp | Victoralin10/ACMSolutions | 6d6e50da87b2bc455e953629737215b74b10269c | [
"MIT"
] | null | null | null | livearchive/3009.cpp | Victoralin10/ACMSolutions | 6d6e50da87b2bc455e953629737215b74b10269c | [
"MIT"
] | null | null | null | /**
* Title: 3009 - Monks
* Author: Victor Cueva Llanos
* Email: Ingvcueva@gmail.com
**/
#include <bits/stdc++.h>
#define MOD 1000000007
#define MAXN 501
using namespace std;
int D[MAXN][MAXN];
int F[] = {1, 2, 2};
int T[] = {0, 0, 1};
int solve(int a, int b, int c) {
memset(D, -... | 21.073529 | 66 | 0.411724 | Victoralin10 |
457516c2da41619c1c93d79cb4a532d5837b39ff | 66,452 | cpp | C++ | memory/test/fixed_size_string_test_data.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | 2 | 2020-11-19T03:23:35.000Z | 2021-02-25T03:34:40.000Z | memory/test/fixed_size_string_test_data.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | null | null | null | memory/test/fixed_size_string_test_data.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | null | null | null | /*******************************************************************************
MIT License
Copyright (c) 2021 Romain Vinders
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, ... | 56.26757 | 145 | 0.719527 | vinders |
457b1ddab14583dffc4ad5acc3936d4055899a2f | 343 | cpp | C++ | test/tracer_b.cpp | trezz/opentracing-cpp | 06b57f48ded1fa3bdd3d4346f6ef29e40e08eaf5 | [
"Apache-2.0"
] | 315 | 2016-04-14T00:33:56.000Z | 2022-03-23T05:47:12.000Z | test/tracer_b.cpp | trezz/opentracing-cpp | 06b57f48ded1fa3bdd3d4346f6ef29e40e08eaf5 | [
"Apache-2.0"
] | 91 | 2016-12-05T16:29:02.000Z | 2022-01-25T11:53:05.000Z | test/tracer_b.cpp | trezz/opentracing-cpp | 06b57f48ded1fa3bdd3d4346f6ef29e40e08eaf5 | [
"Apache-2.0"
] | 124 | 2016-05-24T16:36:14.000Z | 2022-02-22T07:37:23.000Z | #include <opentracing/dynamic_load.h>
static int OpenTracingMakeTracerFactoryFct(
const char* /*opentracing_version*/,
const char* /*opentracing_abi_version*/, const void** /*error_category*/,
void* /*error_message*/, void** /*tracer_factory*/) {
return -1;
}
OPENTRACING_DECLARE_IMPL_FACTORY(OpenTracing... | 31.181818 | 77 | 0.755102 | trezz |
4580f7e6f2fc0e711bdde8c355c51e4d75163c06 | 7,185 | hpp | C++ | thread_pool.hpp | afborchert/tpool | b1ee69c7124bcab906a58bb33da9047ad3adeccd | [
"MIT"
] | 1 | 2017-12-13T01:36:33.000Z | 2017-12-13T01:36:33.000Z | thread_pool.hpp | afborchert/tpool | b1ee69c7124bcab906a58bb33da9047ad3adeccd | [
"MIT"
] | null | null | null | thread_pool.hpp | afborchert/tpool | b1ee69c7124bcab906a58bb33da9047ad3adeccd | [
"MIT"
] | 4 | 2019-12-15T19:49:51.000Z | 2022-03-07T16:08:08.000Z | /*
Copyright (c) 2015, 2016, 2017 Andreas F. Borchert
All rights reserved.
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 ... | 31.513158 | 74 | 0.651218 | afborchert |
4588ec9a9fac531c1d4bedd8c380321acacb8568 | 775 | cpp | C++ | src/Jogo/GUI/TextView.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/GUI/TextView.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/GUI/TextView.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// TextView.cpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 11/6/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#include "TextView.hpp"
namespace GUI {
// Contructor & Destructor
TextView::TextView(const int& id, Context& context, EventHandler& handler, const Vector2f& size... | 21.527778 | 150 | 0.68129 | MatheusKunnen |
4589733bd5ea5a9f37e04a40ec82519320c1062d | 2,136 | cpp | C++ | Tigris/src/Platform/OpenGL/OpenGLFrameBuffer.cpp | GabrielTask/Engine | 7c71ff3a11726f5158f57889714bceb47a1837b6 | [
"Apache-2.0"
] | null | null | null | Tigris/src/Platform/OpenGL/OpenGLFrameBuffer.cpp | GabrielTask/Engine | 7c71ff3a11726f5158f57889714bceb47a1837b6 | [
"Apache-2.0"
] | null | null | null | Tigris/src/Platform/OpenGL/OpenGLFrameBuffer.cpp | GabrielTask/Engine | 7c71ff3a11726f5158f57889714bceb47a1837b6 | [
"Apache-2.0"
] | null | null | null | #include "TGpch.h"
#include "OpenGLFrameBuffer.h"
#include <glad/glad.h>
namespace Tigris
{
OpenGLFrameBuffer::OpenGLFrameBuffer(const FrameBufferSpecification& spec)
:m_Specification(spec)
{
Resize();
}
OpenGLFrameBuffer::~OpenGLFrameBuffer()
{
glDeleteFramebuffers(1, &m_RendererID);
}
void OpenGLFra... | 29.260274 | 152 | 0.791199 | GabrielTask |
458a1a1ba42f1295fe324baa8761a3c0e9fdcb8f | 1,199 | hpp | C++ | KFPlugin/KFRouteShard/KFRouteService.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFRouteShard/KFRouteService.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFRouteShard/KFRouteService.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_ROUTE_SERVICE_H__
#define __KF_ROUTE_SERVICE_H__
#include "KFrame.h"
namespace KFrame
{
// 转发服务
class KFRouteService
{
public:
KFRouteService() = default;
~KFRouteService() = default;
// 添加服务器
void AddServer( uint64 serverid );
// 添加对象
voi... | 20.322034 | 82 | 0.59216 | 282951387 |
458fecd1621ce3c14900da08879c151bcccada30 | 7,550 | cpp | C++ | cmpf_trajectory_planner/plugins/dummy_trajectory_planner.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 3 | 2021-12-23T15:36:37.000Z | 2022-02-28T15:05:35.000Z | cmpf_trajectory_planner/plugins/dummy_trajectory_planner.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 1 | 2022-01-12T15:33:42.000Z | 2022-01-12T15:33:42.000Z | cmpf_trajectory_planner/plugins/dummy_trajectory_planner.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 1 | 2022-01-10T04:47:13.000Z | 2022-01-10T04:47:13.000Z | /************************************************************************
Copyright 2021 Phone Thiha Kyaw
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/license... | 37.562189 | 119 | 0.708874 | aungpaing98 |
459030b66f7981f07158c076932e46ac6b8984a8 | 3,625 | hpp | C++ | llvm/tools/clang/test/CodeGen/tvm/ProposalRoot.hpp | VasiliyKuznetsov/TON-Compiler | 0573a06d03a2ee5618ff5f9be69738f17103db3d | [
"Apache-2.0"
] | null | null | null | llvm/tools/clang/test/CodeGen/tvm/ProposalRoot.hpp | VasiliyKuznetsov/TON-Compiler | 0573a06d03a2ee5618ff5f9be69738f17103db3d | [
"Apache-2.0"
] | null | null | null | llvm/tools/clang/test/CodeGen/tvm/ProposalRoot.hpp | VasiliyKuznetsov/TON-Compiler | 0573a06d03a2ee5618ff5f9be69738f17103db3d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "MultiBallot.hpp"
#include <tvm/contract_handle.hpp>
namespace tvm { namespace schema {
struct ProposalInfo {
uint256 id;
uint32 start;
uint32 end;
bytes desc;
bool_t finished;
bool_t approved;
bool_t resultsSent;
bool_t earlyFinished;
bool_t whiteListEnabled;
VotesType tota... | 27.671756 | 117 | 0.75531 | VasiliyKuznetsov |
45966170a030929a4956b145e7ade1469c319820 | 13,998 | cpp | C++ | src/core/types.cpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 8 | 2021-01-02T11:41:31.000Z | 2021-04-15T07:05:54.000Z | src/core/types.cpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 17 | 2021-01-08T06:52:51.000Z | 2021-04-18T20:00:28.000Z | src/core/types.cpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 1 | 2021-04-16T10:30:23.000Z | 2021-04-16T10:30:23.000Z | // Copyright 2021 Touca, Inc. Subject to Apache-2.0 License.
#include "touca/core/types.hpp"
#include <cmath>
#include "flatbuffers/flatbuffers.h"
#include "fmt/format.h"
#include "nlohmann/json.hpp"
#include "touca/core/convert.hpp"
#include "touca/core/object.hpp"
#include "touca/impl/schema.hpp"
namespace touca ... | 32.17931 | 80 | 0.703529 | getweasel |
45981cfa891814634dcba487de1254b51d31db49 | 833 | cpp | C++ | test/structures/pebbling_view.cpp | MaSuCcHI/caterpillar | 4c6f766cd0ffc62d37ab45edfe80c9f1eae44764 | [
"MIT"
] | 13 | 2019-02-02T13:44:02.000Z | 2021-03-08T15:57:25.000Z | test/structures/pebbling_view.cpp | MaSuCcHI/caterpillar | 4c6f766cd0ffc62d37ab45edfe80c9f1eae44764 | [
"MIT"
] | 1 | 2019-11-02T12:13:13.000Z | 2019-11-02T13:45:17.000Z | test/structures/pebbling_view.cpp | MaSuCcHI/caterpillar | 4c6f766cd0ffc62d37ab45edfe80c9f1eae44764 | [
"MIT"
] | 5 | 2019-10-01T10:13:15.000Z | 2020-11-06T03:07:56.000Z | #include "catch.hpp"
#include <caterpillar/caterpillar.hpp>
using namespace caterpillar;
using namespace mockturtle;
TEST_CASE("create and use pebbling view", "[pw]")
{
xag_network xag;
auto n1 = xag.create_pi();
auto n2 = xag.create_pi();
auto n3 = xag.create_pi();
auto n4 = xag.create_pi();
auto n5 = ... | 25.242424 | 57 | 0.67467 | MaSuCcHI |
459cea44e664744533438c9d50eb6c454a4ede9b | 743 | hpp | C++ | src/Nazara/Platform/SDL2/SDLHelper.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 11 | 2019-11-27T00:40:43.000Z | 2020-01-29T14:31:52.000Z | src/Nazara/Platform/SDL2/SDLHelper.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T00:29:08.000Z | 2020-01-08T18:53:39.000Z | src/Nazara/Platform/SDL2/SDLHelper.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T10:27:40.000Z | 2020-01-15T17:43:33.000Z | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Platform module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_PLATFORM_SDL2_SDLHELPER_HPP
#define NAZARA_PLATFORM_SDL2_SDLHELPER_HPP
#include <N... | 27.518519 | 77 | 0.763122 | jayrulez |
459dafc011fc7746b3ec6fab344bd02bbed0896c | 312 | cpp | C++ | ch06/foreach1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch06/foreach1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch06/foreach1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
void print(int elem) {
cout << elem << " ";
}
int main()
{
vector<int> coll;
for(int i = 1; i <= 9; ++i)
coll.push_back(i);
for_each(coll.cbegin(), coll.cend(), print);
cout << endl;
return 0;
}
| 14.181818 | 48 | 0.564103 | bashell |
45a01a5d6ddff3167b0f5f2d4255a73ccd9cf7bc | 369 | cpp | C++ | Asaurus/src/Asaurus/Core/Window.cpp | Logstor/Asaurus | 22e0de1f111dbe68146aa3301ffabee5c24248b8 | [
"Apache-2.0"
] | 2 | 2020-04-19T19:37:19.000Z | 2020-08-11T08:09:44.000Z | Asaurus/src/Asaurus/Core/Window.cpp | Logstor/Asaurus | 22e0de1f111dbe68146aa3301ffabee5c24248b8 | [
"Apache-2.0"
] | null | null | null | Asaurus/src/Asaurus/Core/Window.cpp | Logstor/Asaurus | 22e0de1f111dbe68146aa3301ffabee5c24248b8 | [
"Apache-2.0"
] | null | null | null | #include "aspch.h"
#include "Asaurus/Core/Window.h"
#ifdef AS_PLATFORM_WINDOWS
#include "Platform/Windows/WindowsWindow.h"
#endif
namespace Asaurus
{
Scope<Window> Window::Create(const WindowProps& props)
{
#ifdef AS_PLATFORM_WINDOWS
return CreateScope<WindowsWindow>(props);
#else
AS_CORE_ASSERT(false, "Unk... | 17.571429 | 55 | 0.753388 | Logstor |
45a79727d04e01264db95a0f1787a058d0b1d7b3 | 7,095 | cpp | C++ | 09CoordinateSystems_First 3D/09CoordinateSystems_First 3D/main.cpp | Song-z-h/opengl-exercises | 4682b3f9c1e647dbc62095625f30a9cfd31db9d9 | [
"MIT"
] | null | null | null | 09CoordinateSystems_First 3D/09CoordinateSystems_First 3D/main.cpp | Song-z-h/opengl-exercises | 4682b3f9c1e647dbc62095625f30a9cfd31db9d9 | [
"MIT"
] | null | null | null | 09CoordinateSystems_First 3D/09CoordinateSystems_First 3D/main.cpp | Song-z-h/opengl-exercises | 4682b3f9c1e647dbc62095625f30a9cfd31db9d9 | [
"MIT"
] | null | null | null | #include<glad\glad.h>
#include<GLFW\glfw3.h>
#include<stb_image.h>
#include<glm\glm.hpp>
#include<glm\gtc\matrix_transform.hpp>
#include<glm\gtc\type_ptr.hpp>
#include<learnopengl\shader_s.h>
#include<iostream>
#include<string>
using namespace std;
void framebuffer_size_callback(GLFWwindow* window, int width, int h... | 27.823529 | 111 | 0.626779 | Song-z-h |
45ae707eb67f595a1d02e0f92e02f3115eec9fc0 | 1,400 | hpp | C++ | ext/openMVG/nonFree/sift/SIFT_describer_io.hpp | bitlw/EGSfM | d5b4260d38237c6bd814648cadcf1fcf2f8f5d31 | [
"BSD-3-Clause"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | ext/openMVG/nonFree/sift/SIFT_describer_io.hpp | bitlw/EGSfM | d5b4260d38237c6bd814648cadcf1fcf2f8f5d31 | [
"BSD-3-Clause"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | ext/openMVG/nonFree/sift/SIFT_describer_io.hpp | bitlw/EGSfM | d5b4260d38237c6bd814648cadcf1fcf2f8f5d31 | [
"BSD-3-Clause"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | // This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#... | 35 | 113 | 0.776429 | bitlw |
45af30d6af710099cbc16588a824deb8f2347ca0 | 9,745 | cpp | C++ | Sandbox/src/Sandbox2D.cpp | GrisWoldDiablo/GameEngineTut | a187560d14fe5927b621218b4f155e3b3aa989b9 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Sandbox2D.cpp | GrisWoldDiablo/GameEngineTut | a187560d14fe5927b621218b4f155e3b3aa989b9 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Sandbox2D.cpp | GrisWoldDiablo/GameEngineTut | a187560d14fe5927b621218b4f155e3b3aa989b9 | [
"Apache-2.0"
] | null | null | null | #include "Sandbox2D.h"
#include <imgui/imgui.h>
#include <glm/gtc/type_ptr.hpp>
//24X14
static const uint32_t sMapWidth = 24;
static const char* sMapTiles =
"WWWWWWWWWWWWWWWWWWWWWWWW"
"WWWWWWWC1111111DWWWWWWWW"
"WWWWWC13GGGGGGG0DWWWWWWW"
"WWWWC3GGGGGGGGGG01DWWWWW"
"WWC13GGGGGGGGGGGGG0DWWWW"
"WW6GGG789GGGGGGGGGG0DWWW... | 33.146259 | 124 | 0.692766 | GrisWoldDiablo |
45b1e5ede875a2d2a551efd1773c66984423aef0 | 1,860 | hpp | C++ | day04/passport.hpp | PenguinLemma/aoc2020 | 19450766ee118f9ae68128f1c9e8101c3643bfcc | [
"MIT"
] | null | null | null | day04/passport.hpp | PenguinLemma/aoc2020 | 19450766ee118f9ae68128f1c9e8101c3643bfcc | [
"MIT"
] | null | null | null | day04/passport.hpp | PenguinLemma/aoc2020 | 19450766ee118f9ae68128f1c9e8101c3643bfcc | [
"MIT"
] | null | null | null | #include <array>
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_map>
struct Passport {
std::unordered_map<std::string, std::string> fields{};
void AddFromLine(std::string const& line) {
if (line.empty())
return;
std::istringstream iss{line};
st... | 30.491803 | 77 | 0.551075 | PenguinLemma |
45b25b03f5d6fe97379c95fb0495f63d806e3c4e | 8,710 | cpp | C++ | src/OmOta.cpp | distrakt/OmEspHelpers | 4b6733dcedd5d9f24698c4cad3a6ee6a9d45acd7 | [
"MIT"
] | 22 | 2016-11-30T18:54:36.000Z | 2021-07-05T12:21:02.000Z | src/OmOta.cpp | distrakt/OmEspHelpers | 4b6733dcedd5d9f24698c4cad3a6ee6a9d45acd7 | [
"MIT"
] | 9 | 2020-05-25T22:56:17.000Z | 2020-12-29T23:56:01.000Z | src/OmOta.cpp | distrakt/OmEspHelpers | 4b6733dcedd5d9f24698c4cad3a6ee6a9d45acd7 | [
"MIT"
] | 6 | 2016-12-16T05:17:41.000Z | 2021-01-08T20:35:45.000Z | /*
2019-11-17 If booted in some way (a button down or whatever) then execute THIS setup() and loop() instead.
It serves up an OTA access page instead.
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "OmOta.h"
#include "OmUtil.h"
#include "OmEeprom.h"
// with flexible procs and interfac... | 27.827476 | 121 | 0.601033 | distrakt |
45b6fb5494b50a03c28792c5600b8d831a3551a0 | 1,241 | cpp | C++ | src/toolchain/core/CodeDom/LoopExpression.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/CodeDom/LoopExpression.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/CodeDom/LoopExpression.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | 2 | 2015-03-03T04:36:51.000Z | 2018-10-01T03:04:11.000Z | #include "LoopExpression.h"
#include "ExpressionVisitor.h"
#include <core/Type/VoidType.h>
LoopExpression::LoopExpression():Expression(Expression::Loop), _initializingExpression(NULL), _conditionExpression(NULL), _incrementExpression(NULL), _bodyExpression(NULL), _checkCondAfter(false)
{
}
LoopExpression::LoopExpress... | 21.033898 | 195 | 0.769541 | layerzero |
45c254fd53b0a5bbd272595350fbf6d647de7853 | 1,601 | cpp | C++ | TestGemCombo/Code/Source/PlayFabComboTestModule.cpp | thirdkindgames/PlayFabSdk | cda5a2181b2b3661484e5089b46da51c419084dc | [
"Apache-2.0"
] | 1 | 2020-11-08T15:21:30.000Z | 2020-11-08T15:21:30.000Z | TestGemCombo/Code/Source/PlayFabComboTestModule.cpp | thirdkindgames/PlayFabSdk | cda5a2181b2b3661484e5089b46da51c419084dc | [
"Apache-2.0"
] | null | null | null | TestGemCombo/Code/Source/PlayFabComboTestModule.cpp | thirdkindgames/PlayFabSdk | cda5a2181b2b3661484e5089b46da51c419084dc | [
"Apache-2.0"
] | null | null | null |
#include "StdAfx.h"
#include <platform_impl.h>
#include "PlayFabComboTestSystemComponent.h"
#include <FlowSystem/Nodes/FlowBaseNode.h>
#include <IGem.h>
namespace PlayFabComboTest
{
class PlayFabComboTestModule
: public CryHooksModule
{
public:
AZ_RTTI(PlayFabComboTestModule, "{0757A088-... | 29.109091 | 116 | 0.646471 | thirdkindgames |
45c38ae79929edb6b3a43a0c3e8ef44858363758 | 5,026 | cpp | C++ | Game.cpp | mita4829/Chess | 6836003265ad1b31dd5cb9ea57c2e24acb605557 | [
"MIT"
] | null | null | null | Game.cpp | mita4829/Chess | 6836003265ad1b31dd5cb9ea57c2e24acb605557 | [
"MIT"
] | null | null | null | Game.cpp | mita4829/Chess | 6836003265ad1b31dd5cb9ea57c2e24acb605557 | [
"MIT"
] | null | null | null | #include "Game.hpp"
void GamePrintInfo(string message)
{
cout << GREEN << "Chess" << WHITE << ": " << message;
}
void GamePrintError(string message)
{
cout << RED << "Error" << WHITE << ": " << message;
}
bool ParseMove(Move* Move, string fromSquare, string endSquare)
{
bool isMoveValid = true;
... | 23.055046 | 86 | 0.508357 | mita4829 |
45c3ede2a3ec4d1e060ff11876dcd8bb199a9445 | 1,425 | cpp | C++ | Source Code/PSUB/importfeflowmesh.cpp | atomdie/Subsidence_Feflow | 178f031a9b05ec4f52d6df63f4bd1637bb5804c5 | [
"MIT"
] | 3 | 2018-09-28T12:00:30.000Z | 2022-03-26T16:08:25.000Z | Source Code/PSUB/importfeflowmesh.cpp | atomdie/Subsidence_Feflow | 178f031a9b05ec4f52d6df63f4bd1637bb5804c5 | [
"MIT"
] | null | null | null | Source Code/PSUB/importfeflowmesh.cpp | atomdie/Subsidence_Feflow | 178f031a9b05ec4f52d6df63f4bd1637bb5804c5 | [
"MIT"
] | null | null | null | #include "importfeflowmesh.h"
#include "ui_importfeflowmesh.h"
importFeflowMesh::importFeflowMesh(QWidget *parent) :
QDialog(parent),
ui(new Ui::importFeflowMesh)
{
ui->setupUi(this);
}
importFeflowMesh::~importFeflowMesh()
{
delete ui;
}
void importFeflowMesh::on_browseButton1_clicked()
{
coordi... | 25.909091 | 81 | 0.748772 | atomdie |
45c68bb31998d3db64906b85fea00df4c9a0842f | 894 | cpp | C++ | ReverseString/ReverseString/ReverseString.cpp | LeeInJae/Algorithm | ec9d539a96fd87c3c0fdd4067e10900f7cddbaf9 | [
"MIT"
] | null | null | null | ReverseString/ReverseString/ReverseString.cpp | LeeInJae/Algorithm | ec9d539a96fd87c3c0fdd4067e10900f7cddbaf9 | [
"MIT"
] | null | null | null | ReverseString/ReverseString/ReverseString.cpp | LeeInJae/Algorithm | ec9d539a96fd87c3c0fdd4067e10900f7cddbaf9 | [
"MIT"
] | null | null | null | #include <iostream>
class Stack
{
public:
Stack( int n) : Size(n)
{
CharArr = new char[ n ];
memset( CharArr , '\0' , sizeof( char ) * ( Size) );
}
~Stack( ) {}
void Push( char character )
{
CharArr[ Top ] = character;
++Top;
}
char Pop( )
{
--Top;
return CharArr[ Top ];... | 15.964286 | 55 | 0.559284 | LeeInJae |
45c707f160f10952c0e8046433cd47cfd311f20d | 2,149 | cpp | C++ | tests/language_unit/model/log_prob_grad_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | tests/language_unit/model/log_prob_grad_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | tests/language_unit/model/log_prob_grad_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/language/model/log_prob_grad.hpp>
#include "model/valid.hpp"
#include "util.hpp"
#include <gtest/gtest.h>
TEST(ModelUtil, streams3) {
std::fstream data_stream(std::string("").c_str(), std::fstream::in);
stan::io::dump data_var_context(data_stream);
data_stream.close();
stan_model model(data_va... | 42.137255 | 100 | 0.677059 | alashworth |
68f5d9af315e1a5c50d43ad8dc62b5460f850c1e | 1,489 | hpp | C++ | src/ackward/re/Flags.hpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | src/ackward/re/Flags.hpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | src/ackward/re/Flags.hpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | #ifndef INCLUDE_ACKWARD_RE_FLAGS_HPP
#define INCLUDE_ACKWARD_RE_FLAGS_HPP
#include <ackward/core/PythonVersion.hpp>
namespace ackward {
namespace re {
enum Flags {
// Perform case-insensitive matching; expressions like [A-Z] will
// match lowercase letters, too. This is not affected by the
// current loc... | 28.09434 | 70 | 0.6454 | abingham |
68f8b1a9614d43ec42b1dc6ecd8a9170345cab9b | 7,875 | cpp | C++ | src/Skip.cpp | sritterbusch/ospac | 76e0035b85ac1958ada6045c37b65030b087c543 | [
"MIT"
] | 40 | 2016-03-09T07:46:53.000Z | 2021-02-21T20:04:57.000Z | src/Skip.cpp | sritterbusch/ospac | 76e0035b85ac1958ada6045c37b65030b087c543 | [
"MIT"
] | 4 | 2016-03-17T10:16:50.000Z | 2020-08-27T15:22:47.000Z | src/Skip.cpp | sritterbusch/ospac | 76e0035b85ac1958ada6045c37b65030b087c543 | [
"MIT"
] | 3 | 2016-05-08T10:42:01.000Z | 2019-12-14T13:49:57.000Z | /**
* @file Skip.cpp
* @author Sebastian Ritterbusch <ospac@ritterbusch.de>
* @version 1.0
* @date 18.2.2016
* @copyright MIT License (see LICENSE file)
* @brief Skip silence
*/
#include <math.h>
#include "Skip.h"
#include "Log.h"
float Skip::silence(Channels & a,float level,float minsec,float mintransi... | 22.694524 | 219 | 0.598095 | sritterbusch |
ec00916ec80956babb1897e9b27f970dce06549f | 129,360 | cpp | C++ | bench/ml2cpp-demo/BaggingClassifier_Pipeline/BreastCancer/ml2cpp-demo_BaggingClassifier_Pipeline_BreastCancer.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | null | null | null | bench/ml2cpp-demo/BaggingClassifier_Pipeline/BreastCancer/ml2cpp-demo_BaggingClassifier_Pipeline_BreastCancer.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 33 | 2020-09-13T09:55:01.000Z | 2022-01-06T11:53:55.000Z | bench/ml2cpp-demo/BaggingClassifier_Pipeline/BreastCancer/ml2cpp-demo_BaggingClassifier_Pipeline_BreastCancer.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 1 | 2021-01-26T14:41:58.000Z | 2021-01-26T14:41:58.000Z | // ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : BaggingClassifier_Pipeline
// Dataset : BreastCancer
// This CPP code can be compiled using any C++-17 comp... | 79.901174 | 1,078 | 0.718027 | antoinecarme |
ec05c45fa5b197ead9c5702d9577405acf0c2295 | 298 | hpp | C++ | varLengthLangCodeField.hpp | mark0n/generateFRUStorage | 0642937b8c4349aae4790d4bd5301b989960bee4 | [
"MIT"
] | null | null | null | varLengthLangCodeField.hpp | mark0n/generateFRUStorage | 0642937b8c4349aae4790d4bd5301b989960bee4 | [
"MIT"
] | null | null | null | varLengthLangCodeField.hpp | mark0n/generateFRUStorage | 0642937b8c4349aae4790d4bd5301b989960bee4 | [
"MIT"
] | null | null | null | #ifndef VARLENGTHLANGCODEFIELD_HPP
#define VARLENGTHLANGCODEFIELD_HPP
#include "varLengthField.hpp"
class varLengthLangCodeField : public varLengthField
{
public:
varLengthLangCodeField();
std::string getString();
void setString(std::string str);
};
#endif /* VARLENGTHLANGCODEFIELD_HPP */ | 21.285714 | 52 | 0.795302 | mark0n |
ec0923ae033401f28d466ada28cc0a9780ab1131 | 603 | cpp | C++ | TD/TD4/Code/5.cpp | sumaxime/LIFAP1 | b5da0395de9775cd8b319b56af7a6d0257d542db | [
"MIT"
] | 1 | 2019-06-19T08:40:24.000Z | 2019-06-19T08:40:24.000Z | TD/TD4/Code/5.cpp | sumaxime/LIFAP1 | b5da0395de9775cd8b319b56af7a6d0257d542db | [
"MIT"
] | 13 | 2016-11-15T16:44:23.000Z | 2016-12-16T09:42:48.000Z | TD/TD4/Code/5.cpp | sumaxime/LIFAP1 | b5da0395de9775cd8b319b56af7a6d0257d542db | [
"MIT"
] | 1 | 2019-12-06T11:48:09.000Z | 2019-12-06T11:48:09.000Z | /**
* Calculer le nombre de combinaison de P éléments pour un ensemble de N
*/
#include <iostream>
/* Fontion de factorielle */
int fact(int n)
{
if (n == 0)
return 1;
else
return n * fact(n - 1);
}
/* Fonction */
int combin(int n, int p)
{
int res;
res = fact(n) / (fact(p) * fact(n - p));
... | 14.023256 | 72 | 0.543947 | sumaxime |
ec0cfe0a80cdcd03d4250b2e4df59f81c3108a27 | 124 | cpp | C++ | openjudge/01/03/20.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2020-07-22T16:54:07.000Z | 2020-07-22T16:54:07.000Z | openjudge/01/03/20.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2018-05-12T12:53:06.000Z | 2018-05-12T12:53:06.000Z | openjudge/01/03/20.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cmath>
int main() {
double a;
scanf("%lf", &a);
printf("%.0lf", pow(2, a));
return 0;
} | 10.333333 | 28 | 0.548387 | TheBadZhang |
ec0e6aea0f8f7fe1ce1517e0513c43e45eab7451 | 1,582 | cpp | C++ | host/telemetry/monitor_telemetry_main.cpp | dinglewanker/airball-embedded | a5d09e10e117c4d0927cd0148614c555614854ee | [
"MIT"
] | 13 | 2018-03-10T04:39:32.000Z | 2022-01-04T06:57:06.000Z | host/telemetry/monitor_telemetry_main.cpp | dinglewanker/airball-embedded | a5d09e10e117c4d0927cd0148614c555614854ee | [
"MIT"
] | null | null | null | host/telemetry/monitor_telemetry_main.cpp | dinglewanker/airball-embedded | a5d09e10e117c4d0927cd0148614c555614854ee | [
"MIT"
] | 3 | 2018-08-30T15:45:13.000Z | 2021-07-16T01:18:30.000Z | #include <iostream>
#include <backward/strstream>
#include <fstream>
#include "format.h"
#include "xbee_telemetry_client.h"
#include "xbee_known_types.h"
#include "airdata_sample.h"
void print_quantity(const long int value, const char symbol) {
std::ostrstream s;
for (int i = 0; i < value; i++) {
if (i % 10 =... | 27.275862 | 96 | 0.663085 | dinglewanker |
ec0f59a20697b8f3a1eaace0ec50301ca6e1eeb2 | 600 | hpp | C++ | include/ttl/nn/bits/ops/impl/im2col1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 3 | 2018-10-23T18:46:39.000Z | 2019-06-24T00:46:10.000Z | include/ttl/nn/bits/ops/impl/im2col1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 27 | 2018-11-10T14:19:16.000Z | 2020-03-08T23:33:01.000Z | include/ttl/nn/bits/ops/impl/im2col1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 1 | 2018-11-05T06:17:12.000Z | 2018-11-05T06:17:12.000Z | #pragma once
#include <ttl/nn/bits/ops/im2col1d.hpp>
namespace ttl::nn::ops
{
template <typename R>
void im2col1d::operator()(const ttl::tensor_ref<R, 2> &y,
const ttl::tensor_view<R, 1> &x) const
{
const R def = 0;
const auto [n] = x.shape().dims();
for (auto j : ttl::range<0>(y)... | 25 | 64 | 0.46 | stdml |
ec116c52b68c14eef7b7e4daaa2c9ce068396c16 | 2,972 | cpp | C++ | Hamming Distance.cpp | XDoodler/Algorithms | f6dda89ed8fe9e821d83a2e2cdd2859b567fdc6b | [
"MIT"
] | 26 | 2019-04-05T07:10:15.000Z | 2022-01-08T02:35:19.000Z | Hamming Distance.cpp | XDoodler/Algorithms | f6dda89ed8fe9e821d83a2e2cdd2859b567fdc6b | [
"MIT"
] | 2 | 2019-04-25T15:47:54.000Z | 2019-09-03T06:46:05.000Z | Hamming Distance.cpp | XDoodler/Algorithms | f6dda89ed8fe9e821d83a2e2cdd2859b567fdc6b | [
"MIT"
] | 8 | 2019-04-05T08:58:50.000Z | 2020-07-03T01:53:58.000Z | /* Faced the problem in GOCC 21 SWE Google Grad */
/* You are given two arrays A and B (consider 1-based indexed). Both have N integers.
You are given M list of pairs of indices, whose val can be swapped in array A only.
For example (i, j) 1 <= i, j <= N , you can swap a[i] and a[j]
The hamming distance between tw... | 16.603352 | 104 | 0.53432 | XDoodler |
ec17842149572ead13fb7b731ff6ecb3cdf9ae3d | 44 | cpp | C++ | CPlusPlusFundamentals/Library/Day1.cpp | bozhikovstanislav/Cpp-SoftUni | 6562d15b9e3a550b11566630a1bc1ec65670bff7 | [
"MIT"
] | null | null | null | CPlusPlusFundamentals/Library/Day1.cpp | bozhikovstanislav/Cpp-SoftUni | 6562d15b9e3a550b11566630a1bc1ec65670bff7 | [
"MIT"
] | null | null | null | CPlusPlusFundamentals/Library/Day1.cpp | bozhikovstanislav/Cpp-SoftUni | 6562d15b9e3a550b11566630a1bc1ec65670bff7 | [
"MIT"
] | null | null | null | //
// Created by stanislav on 02.12.18.
//
| 8.8 | 36 | 0.590909 | bozhikovstanislav |
ec179d54001eebc6aa7a6e3c69dd9a7225904f2e | 291 | cpp | C++ | algo9.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | algo9.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | algo9.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | 1 | 2020-02-21T17:16:50.000Z | 2020-02-21T17:16:50.000Z | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc,char* argv[])
{
vector<int> myVector{3,2,3,7,3,8,9,3};
auto number = count(myVector.begin(),myVector.end(),3);
cout << "The number of 3s in myVector is: " << number << endl;
return 0;
}
| 19.4 | 63 | 0.666667 | zyfjeff |
ec1a499664197bc6889e7e72157fce2e6314097d | 755 | hh | C++ | src/filesystem/include/public/dt/filesystem/directory.hh | Oaticus/Deltatron | 88ac3b56d7e46fd66c3dcaeab5861c7f8016a736 | [
"BSD-2-Clause"
] | null | null | null | src/filesystem/include/public/dt/filesystem/directory.hh | Oaticus/Deltatron | 88ac3b56d7e46fd66c3dcaeab5861c7f8016a736 | [
"BSD-2-Clause"
] | null | null | null | src/filesystem/include/public/dt/filesystem/directory.hh | Oaticus/Deltatron | 88ac3b56d7e46fd66c3dcaeab5861c7f8016a736 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <dt/filesystem/directory/file.hh>
#include <optional>
#include <string>
namespace dt {
class filesystem_imp;
class directory final {
friend class filesystem_imp;
std::string const _path_str;
public:
~directory() noexcept;
directory const& mkdir(std::string const& directory_name) co... | 21.571429 | 101 | 0.737748 | Oaticus |
ec1b6da7c890834840a72a96b902e10e6ec9f7f4 | 2,196 | hpp | C++ | tau/TauEngine/include/TUID.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/include/TUID.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/include/TUID.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | /**
* @file
*/
#pragma once
#include <Objects.hpp>
#include <NumTypes.hpp>
#include <DLL.hpp>
/**
* Tau Unique Identifier.
*
* A knockoff UUID "guaranteed" to be unique within the engine.
*/
class TAU_DLL TUID
{
DEFAULT_DESTRUCT(TUID);
DEFAULT_CM_PU(TUID);
private:
u64 _lowBits;
... | 35.419355 | 176 | 0.628871 | hyfloac |
ec1cb0d80d0704c5ddcfba75365e78a60d9efed9 | 1,376 | hpp | C++ | include/utility/trait/type/miscellaneous/aligned_storage.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/trait/type/miscellaneous/aligned_storage.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/trait/type/miscellaneous/aligned_storage.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_TRAIT_TYPE_MISCELLANEOUS_ALIGNED_STORAGE__
#define __UTILITY_TRAIT_TYPE_MISCELLANEOUS_ALIGNED_STORAGE__
#include<utility/trait/trait_helper.hpp>
#include<utility/config/utility_config.hpp>
namespace utility
{
namespace trait
{
namespace type
{
namespace miscellaneous
{
... | 24.140351 | 79 | 0.588663 | SakuraLife |
ec1d1dc9aa7c0d1ba2f57945c29dc59e09b2a04f | 855 | cpp | C++ | 经典算法练习题/L21栈的压入弹出序列.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 382 | 2019-08-09T12:46:46.000Z | 2022-03-31T08:38:48.000Z | 经典算法练习题/L21栈的压入弹出序列.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 1 | 2019-09-04T05:45:49.000Z | 2020-12-17T12:02:22.000Z | 经典算法练习题/L21栈的压入弹出序列.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 86 | 2019-09-04T05:44:34.000Z | 2022-03-08T05:06:00.000Z | //
// Created by 安炳旭 on 2020-01-16.
//
/*输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否可能为该栈的弹出顺序。假设压入栈的所有数字均不相等。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个弹出序列,但4,3,5,1,2就不可能是该压栈序列的弹出序列。(注意:这两个序列的长度是相等的)*/
#include <vector>
#include <stack>
#include <iostream>
using namespace std;
bool IsPopOrder(vector<int> pushV, vector<int> ... | 25.147059 | 155 | 0.567251 | anbingxu666 |
ec2293f9fb89c69178574854e858493f4e7bf773 | 2,814 | cxx | C++ | Podd/THaNamedList.cxx | leadmocha/analyzer | ab26d755dbe816975e4165479c9fbefc4c4ca069 | [
"BSD-3-Clause"
] | null | null | null | Podd/THaNamedList.cxx | leadmocha/analyzer | ab26d755dbe816975e4165479c9fbefc4c4ca069 | [
"BSD-3-Clause"
] | null | null | null | Podd/THaNamedList.cxx | leadmocha/analyzer | ab26d755dbe816975e4165479c9fbefc4c4ca069 | [
"BSD-3-Clause"
] | null | null | null | //*-- Author : Ole Hansen 08/05/2000
//////////////////////////////////////////////////////////////////////////
//
// THaNamedList
//
// A list with a name. Used to store blocks of THaCuts (tests)
// in a THashList, where the name of this list is the hash index.
//
/////////////////////////////////////////////... | 27.861386 | 96 | 0.707534 | leadmocha |
ec24d80e1101aad9f2e2e843b5cb81f5714f674c | 52 | cpp | C++ | Refureku/Library/Tests/Src/ConstructionTrackedClass.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Library/Tests/Src/ConstructionTrackedClass.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Library/Tests/Src/ConstructionTrackedClass.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | #include "Generated/ConstructionTrackedClass.rfks.h" | 52 | 52 | 0.865385 | Angelysse |
ec267464a010149e58ec1c29fd668ffc427ffdb9 | 671 | cpp | C++ | unit_tests/test_send_frame.cpp | brridder/nanoarq | 5aa9e5d9dda002f569aa70dcec0eded67404c44d | [
"Unlicense"
] | 1 | 2021-12-07T18:33:20.000Z | 2021-12-07T18:33:20.000Z | unit_tests/test_send_frame.cpp | skyformat99/nanoarq | 167425b0a073c4e41f4d32eafc21cb1a71b186e3 | [
"Unlicense"
] | null | null | null | unit_tests/test_send_frame.cpp | skyformat99/nanoarq | 167425b0a073c4e41f4d32eafc21cb1a71b186e3 | [
"Unlicense"
] | null | null | null | #include "arq_in_unit_tests.h"
#include "arq_runtime_mock_plugin.h"
#include <CppUTest/TestHarness.h>
#include <CppUTestExt/MockSupport.h>
TEST_GROUP(send_frame) {};
namespace {
TEST(send_frame, init_writes_cap)
{
arq__send_frame_t f;
f.cap = 1000;
arq__send_frame_init(&f, 123);
CHECK_EQUAL(123, f.ca... | 18.638889 | 53 | 0.721311 | brridder |
ec269a8938ce940cc2671a92d8ba4562d4eed47d | 4,889 | hpp | C++ | src/tcp/tcp_session.hpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | src/tcp/tcp_session.hpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | src/tcp/tcp_session.hpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018-2019 Intel Corporation
//
// 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://w... | 34.188811 | 80 | 0.635304 | kthur |
ec2bd401300fbd5ad9c08fe5dec671e3316c5cf0 | 3,951 | hpp | C++ | csgotools/SendProp.hpp | crossworth/csgotools | a7202e79dd5a64a8bb351618b7a546c1d8d724bf | [
"MIT"
] | null | null | null | csgotools/SendProp.hpp | crossworth/csgotools | a7202e79dd5a64a8bb351618b7a546c1d8d724bf | [
"MIT"
] | null | null | null | csgotools/SendProp.hpp | crossworth/csgotools | a7202e79dd5a64a8bb351618b7a546c1d8d724bf | [
"MIT"
] | null | null | null | #pragma once
#include <sstream>
#include "Steam.hpp"
namespace csgotools {
enum class SendPropType {
INT,
FLOAT,
VECTOR,
VECTOR_XY,
STRING,
ARRAY,
DATA_TABLE,
INT64,
NUM_SEND_PROPS_TYPE
};
class SendProp {
... | 36.247706 | 193 | 0.539104 | crossworth |
ec306d0533db32465945ddb5673a4f80cccc9aea | 284 | hpp | C++ | espardino/gfx/rle.hpp | j0t4/espardino | a5541d8cd5133d5f1e31d55db7c86cdec68bf4ec | [
"MIT"
] | null | null | null | espardino/gfx/rle.hpp | j0t4/espardino | a5541d8cd5133d5f1e31d55db7c86cdec68bf4ec | [
"MIT"
] | null | null | null | espardino/gfx/rle.hpp | j0t4/espardino | a5541d8cd5133d5f1e31d55db7c86cdec68bf4ec | [
"MIT"
] | null | null | null | #ifndef __RLE_H
#define __RLE_H
#include <micro214x.h>
class RLE
{
private:
unsigned char *p;
unsigned char last_c;
unsigned int rep;
unsigned char state;
int m_rsize;
public:
RLE(void *compressed,int len=0x70000000);
int get();
};
#endif
| 12.909091 | 44 | 0.633803 | j0t4 |
ec3556d0fa6bd5c1fad03f033580f3bde153c467 | 32,186 | cxx | C++ | IO/Geometry/Testing/Cxx/TestIncrementalOctreePointLocator.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | 1 | 2021-07-21T07:15:44.000Z | 2021-07-21T07:15:44.000Z | IO/Geometry/Testing/Cxx/TestIncrementalOctreePointLocator.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | null | null | null | IO/Geometry/Testing/Cxx/TestIncrementalOctreePointLocator.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | 2 | 2020-03-24T14:09:05.000Z | 2021-09-17T09:30:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: TestIncrementalOctreePointLocator.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 35.722531 | 99 | 0.526533 | DmitrySemikin |
ec388c5f929f2de42683dc07f3855481667b48bd | 9,416 | hh | C++ | cc/draw.hh | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | cc/draw.hh | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | cc/draw.hh | acorg/acmacs-map-draw | 6f0711f2fc452d9a6770db05bed38f0f08c2ea42 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <memory>
#include "acmacs-base/range.hh"
#include "acmacs-base/timeit.hh"
#include "acmacs-draw/viewport.hh"
#include "acmacs-chart-2/selected-antigens-sera.hh"
#include "acmacs-map-draw/point-style-draw.hh"
#include "acmacs-map-draw/map-elements.hh"
#include ... | 47.796954 | 195 | 0.703802 | acorg |
ec3e82a60d47b284881fabf03af7d8a52ab6dc38 | 1,577 | cc | C++ | examples/http_server.cc | SignalGarden/lib_netsockets | b13c8cff562b110235a285dd5d2f35235174156e | [
"Apache-2.0"
] | 2 | 2018-08-13T06:59:30.000Z | 2020-03-26T02:10:51.000Z | examples/http_server.cc | SignalGarden/lib_netsockets | b13c8cff562b110235a285dd5d2f35235174156e | [
"Apache-2.0"
] | null | null | null | examples/http_server.cc | SignalGarden/lib_netsockets | b13c8cff562b110235a285dd5d2f35235174156e | [
"Apache-2.0"
] | 2 | 2020-03-26T02:11:19.000Z | 2020-09-15T08:48:57.000Z | #include <string>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include "socket.hh"
#include "http.hh"
///////////////////////////////////////////////////////////////////////////////////////
//main
///////////////////////////////////////////////////////////////////////////////////////
void handle_client... | 23.537313 | 103 | 0.46227 | SignalGarden |
ec41b81910bcfe79ca6d6e797affac5d83d468ee | 1,009 | cpp | C++ | test/range/range_c.cpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | 2 | 2015-05-07T14:29:13.000Z | 2015-07-04T10:59:46.000Z | test/range/range_c.cpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | null | null | null | test/range/range_c.cpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | null | null | null | /*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/range.hpp>
#include <boost/hana/detail/assert.hpp>
#include <boost/hana/integral.hpp>
using namespace boost::hana;
templa... | 32.548387 | 90 | 0.681863 | rbock |
ec49f8c0c11414ea1ee4960a8693cdc57f4c6df9 | 534 | hpp | C++ | include/units/core/internal/utils.hpp | JadeMatrix/units | 5c9d11511ae67238ab5d02d5a1a6ca0cd2cc8e21 | [
"Zlib"
] | 3 | 2018-09-28T03:27:14.000Z | 2021-02-22T04:32:57.000Z | include/units/core/internal/utils.hpp | JadeMatrix/units | 5c9d11511ae67238ab5d02d5a1a6ca0cd2cc8e21 | [
"Zlib"
] | null | null | null | include/units/core/internal/utils.hpp | JadeMatrix/units | 5c9d11511ae67238ab5d02d5a1a6ca0cd2cc8e21 | [
"Zlib"
] | null | null | null | #pragma once
#ifndef JM_UNITS_CORE_INTERNAL_UTILS_HPP
#define JM_UNITS_CORE_INTERNAL_UTILS_HPP
#include <type_traits> // remove_cv, remove_reference
namespace JadeMatrix { namespace units { namespace internal // Future //////////
{
// `std::void_t` available in C++17
template< typename... T > using void_t ... | 24.272727 | 80 | 0.689139 | JadeMatrix |
ec4ebc3bf5ccb0e0bdca73834818ad279a76ca14 | 4,991 | hpp | C++ | ext/tatara/vector/float/float_vector.hpp | S-H-GAMELINKS/tatara | b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0 | [
"MIT"
] | 6 | 2019-08-16T11:35:43.000Z | 2019-11-16T07:57:06.000Z | ext/tatara/vector/float/float_vector.hpp | S-H-GAMELINKS/tatara | b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0 | [
"MIT"
] | 378 | 2019-08-15T07:55:18.000Z | 2020-02-16T12:22:34.000Z | ext/tatara/vector/float/float_vector.hpp | S-H-GAMELINKS/tatara | b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0 | [
"MIT"
] | 1 | 2019-09-02T15:32:58.000Z | 2019-09-02T15:32:58.000Z | #ifndef FLOAT_VECTOR_HPP_
#define FLOAT_VECTOR_HPP_
#include <ruby.h>
#include <algorithm>
#include <numeric>
#include <iterator>
static VALUE float_vector_init(VALUE self) {
return self;
}
static VALUE float_vector_first(VALUE self) {
return rb_ary_entry(self, 0);
}
static VALUE float_vector_last(VALUE sel... | 28.849711 | 94 | 0.675215 | S-H-GAMELINKS |
ec5244805efce97f6a3431f3ceb0b3a1430c2321 | 6,761 | cpp | C++ | MiniLD40 - Sliding/StructureSmash/gameInstance.cpp | milo-brandt/milos-ludum-dare-entries | 6b4907463395ee99720386bca48726a798af14d2 | [
"MIT"
] | null | null | null | MiniLD40 - Sliding/StructureSmash/gameInstance.cpp | milo-brandt/milos-ludum-dare-entries | 6b4907463395ee99720386bca48726a798af14d2 | [
"MIT"
] | null | null | null | MiniLD40 - Sliding/StructureSmash/gameInstance.cpp | milo-brandt/milos-ludum-dare-entries | 6b4907463395ee99720386bca48726a798af14d2 | [
"MIT"
] | null | null | null | //
// gameInstance.cpp
// StructureSmash
//
// Created by Milo Brandt on 2/22/13.
// Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//
#include "gameInstance.h"
#include <math.h>
gameInstance::gameInstance(sf::Window& w,grid* g):w(w),offX(0),offY(0),widX(w.getSize().x/15.f),widY(w.getSize().y/15.f),Ri... | 37.353591 | 164 | 0.49608 | milo-brandt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.