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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19071ff59bfd003ba323e7e31050185a6fa9d9b7 | 1,929 | cpp | C++ | android-28/android/icu/text/SearchIterator_ElementComparisonType.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/icu/text/SearchIterator_ElementComparisonType.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/icu/text/SearchIterator_ElementComparisonType.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JArray.hpp"
#include "../../../JString.hpp"
#include "./SearchIterator_ElementComparisonType.hpp"
namespace android::icu::text
{
// Fields
android::icu::text::SearchIterator_ElementComparisonType SearchIterator_ElementComparisonType::ANY_BASE_WEIGHT_IS_WILDCARD()
{
return getStaticObjectField(
... | 33.258621 | 129 | 0.788491 | YJBeetle |
190dd76ddd9584a8d86b618bc2637a457d5d2b70 | 788 | cpp | C++ | typo/typo.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | 1 | 2020-12-15T20:25:21.000Z | 2020-12-15T20:25:21.000Z | typo/typo.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | typo/typo.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin >> s;
int cnt = 0;
int num = 0;
for (int i = 0; i < s.size(); i++)
{
if (s[i] == '(')
{
cnt++;
}
else if (s[i] == ')')
{
num++;
cnt--;
}
... | 16.765957 | 43 | 0.266497 | chenhongqiao |
1918ce73e96e88c8e871a46400d72f535f711eb4 | 8,659 | cpp | C++ | lib/VolumeViz/Coin/gl/CoinGLPerformance.cpp | yorikvanhavre/SIMVoleon | 3b77321215fad1bf74d6cf56ea8e771031de839c | [
"BSD-3-Clause"
] | null | null | null | lib/VolumeViz/Coin/gl/CoinGLPerformance.cpp | yorikvanhavre/SIMVoleon | 3b77321215fad1bf74d6cf56ea8e771031de839c | [
"BSD-3-Clause"
] | null | null | null | lib/VolumeViz/Coin/gl/CoinGLPerformance.cpp | yorikvanhavre/SIMVoleon | 3b77321215fad1bf74d6cf56ea8e771031de839c | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 32.799242 | 87 | 0.614621 | yorikvanhavre |
191a8464a1183999b41cb67f4afa168940612cc8 | 1,389 | cpp | C++ | test/sam_header_test.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 24 | 2015-01-20T16:15:46.000Z | 2019-09-16T07:53:54.000Z | test/sam_header_test.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 8 | 2015-01-30T07:27:00.000Z | 2017-07-11T21:37:17.000Z | test/sam_header_test.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 15 | 2015-01-11T05:28:26.000Z | 2022-01-18T08:47:10.000Z | #include <boost/test/unit_test.hpp>
#include "sam/sam_reader.h"
#include "test_utils.h"
using namespace std;
using namespace gamgee;
BOOST_AUTO_TEST_CASE( sam_header ) {
auto reader = SingleSamReader{"testdata/test_simple.bam"};
auto header = reader.header();
BOOST_CHECK_EQUAL("chr1", header.sequence_name(0));... | 37.540541 | 124 | 0.75594 | audiohacked |
1923600d498927667962395864899af58900723f | 1,216 | cpp | C++ | UVa Online Judge/00555. Bridge Hands.cpp | nicoelayda/competitive-programming | 5b5452d8d2865a1a5f1e3d2fece011749722e8c4 | [
"MIT"
] | null | null | null | UVa Online Judge/00555. Bridge Hands.cpp | nicoelayda/competitive-programming | 5b5452d8d2865a1a5f1e3d2fece011749722e8c4 | [
"MIT"
] | null | null | null | UVa Online Judge/00555. Bridge Hands.cpp | nicoelayda/competitive-programming | 5b5452d8d2865a1a5f1e3d2fece011749722e8c4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
const string dealers = "SWNE";
const string suits = "CDSH";
const string values = "23456789TJQKA";
bool comparator(pair<char, char> card1, pair<char, char> card2) {
if (suits.find(card1.first) == suits.find(card2.first))
... | 28.27907 | 92 | 0.499178 | nicoelayda |
192fe6ce4ab776054e220eb2a8390fc06053329f | 2,444 | hpp | C++ | src/Vulkan/Queue.hpp | Noctonyx/RxCore | 33a4ae9c2b11acd8730bb5d21faa1182cb3fa082 | [
"MIT"
] | null | null | null | src/Vulkan/Queue.hpp | Noctonyx/RxCore | 33a4ae9c2b11acd8730bb5d21faa1182cb3fa082 | [
"MIT"
] | null | null | null | src/Vulkan/Queue.hpp | Noctonyx/RxCore | 33a4ae9c2b11acd8730bb5d21faa1182cb3fa082 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2021. Shane Hyde
//
// 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 wit... | 33.027027 | 91 | 0.639935 | Noctonyx |
19340845b87247ce55c99a8b5d1f8c2d3fd92a2c | 679 | cpp | C++ | PhysicsSandbox/Physics2dCore/Utilities/Integration2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | PhysicsSandbox/Physics2dCore/Utilities/Integration2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | PhysicsSandbox/Physics2dCore/Utilities/Integration2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "Integration2d.hpp"
namespace Physics2dCore
{
//-------------------------------------------------------------------Integration2d
void Integration2d::IntegrateVelocityEuler(float dt, float invMass, float invInertia, const Vector2& force, float torque, Vector2& linearVelocity, float... | 30.863636 | 170 | 0.696613 | jodavis42 |
193c71d361427248b085540fd2e461850a2dad5b | 504 | hpp | C++ | interface/IGames.hpp | toto42/OOP_arcade_2019 | 67901cd393c0ea9e9b34c1fda71bb4442a14f182 | [
"MIT"
] | null | null | null | interface/IGames.hpp | toto42/OOP_arcade_2019 | 67901cd393c0ea9e9b34c1fda71bb4442a14f182 | [
"MIT"
] | null | null | null | interface/IGames.hpp | toto42/OOP_arcade_2019 | 67901cd393c0ea9e9b34c1fda71bb4442a14f182 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** Arcade
** File description:
** Igame.hpp
*/
#ifndef __IGAME__HPP__
#define __IGAME__HPP__
#include <string>
#include <vector>
#include "Values.hpp"
class IGames {
public:
virtual void initGame(void) = 0;
virtual bool processInput(int key) = 0;
virtual bool checkEnd(void) = ... | 19.384615 | 61 | 0.668651 | toto42 |
1941d291c008c57dd18ccf547958b472cf0cf50a | 1,475 | cpp | C++ | src/sysexhandler.cpp | mixalakis/lpd8editor | d428f8c9613af0d486e24ec96d6089bc94511c63 | [
"MIT"
] | 34 | 2018-05-19T16:52:54.000Z | 2022-03-06T14:22:37.000Z | src/sysexhandler.cpp | mixalakis/lpd8editor | d428f8c9613af0d486e24ec96d6089bc94511c63 | [
"MIT"
] | 27 | 2017-05-05T00:39:24.000Z | 2018-05-19T14:35:33.000Z | src/sysexhandler.cpp | mixalakis/lpd8editor | d428f8c9613af0d486e24ec96d6089bc94511c63 | [
"MIT"
] | 5 | 2018-05-19T19:28:15.000Z | 2019-07-17T10:32:02.000Z | #include "sysexhandler.h"
#include "iomidi.h"
#include "lpd8_sysex.h"
SysexHandler::SysexHandler(IOMidi *io) :
QObject(io),
m_io(io)
{
Q_CHECK_PTR(m_io);
connect(
m_io,
&IOMidi::eventReceived,
this,
&SysexHandler::handleMidiEvent
);
}
void SysexHandler::getProgram... | 21.691176 | 84 | 0.647458 | mixalakis |
1944db860d959768e3043d5321cf57abd39786c7 | 2,423 | cpp | C++ | src/ui/widgets/message/MessageLocationElement.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | src/ui/widgets/message/MessageLocationElement.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | src/ui/widgets/message/MessageLocationElement.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | /*
* MessageLocationElement.cpp
*
* Created on: Nov 23, 2013
* Author: Igor Glotov
*/
#include "MessageLocationElement.h"
#include "WebImageView.h"
#include "JsonParseUtils.h"
#include "ObjectCounter.h"
using namespace Tizen::Web::Json;
using namespace Tizen::Base;
using namespace Tizen::Ui;
using namespac... | 28.505882 | 164 | 0.754437 | igorglotov |
19473d1a83720f9e45896be06a2b4fd4ddb36733 | 2,576 | cpp | C++ | src/SongSelectFrame.cpp | ryu-raptor/amf | 33a42cf1025ea512f23c4769a5be27d6a0c335bc | [
"MIT"
] | 1 | 2020-05-31T02:25:39.000Z | 2020-05-31T02:25:39.000Z | src/SongSelectFrame.cpp | ryu-raptor/amf | 33a42cf1025ea512f23c4769a5be27d6a0c335bc | [
"MIT"
] | null | null | null | src/SongSelectFrame.cpp | ryu-raptor/amf | 33a42cf1025ea512f23c4769a5be27d6a0c335bc | [
"MIT"
] | null | null | null | #include "Frame.hpp"
#include "ResourceFiler.hpp"
#include "Singletons.hpp"
#include "Graphics/g2d/Image.hpp"
#include "Graphics/g2d/ImageShader.hpp"
#include "Graphics/glHeaders.hpp"
#include "KeyBuffer.hpp"
#include "GameFrame.hpp"
#include <memory>
#include <regex>
#include <vector>
#include <sys/types.h>
#include <... | 28.622222 | 126 | 0.645575 | ryu-raptor |
1949f43132a171deaf723fc3b313db72f4172fc3 | 58,584 | cpp | C++ | src/plugProjectMorimuraU/umiMushiState.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectMorimuraU/umiMushiState.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectMorimuraU/umiMushiState.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .ctors, "wa" # 0x80472F00 - 0x804732C0
.4byte __sinit_umiMushiState_cpp
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_804936A0
lbl_804936A0:
.4byte 0x756D694D
.4byte 0x75736869
.4byte 0x53746174
... | 22.10717 | 86 | 0.614485 | projectPiki |
194a5e88fbb9dde0f89b06128fcb545e0ad85350 | 47 | hpp | C++ | src/boost_mpl_vector_aux__pop_front.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_vector_aux__pop_front.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_vector_aux__pop_front.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/vector/aux_/pop_front.hpp>
| 23.5 | 46 | 0.787234 | miathedev |
194c53d3a118f7b8b767682f38e55bd0e5852a23 | 1,218 | hpp | C++ | app/src/main/cpp/hal/src/linux/logger.hpp | pehg/Break_it_all | dab56d82dd4541a710f16b1e6f61ee214059a1a9 | [
"MIT"
] | null | null | null | app/src/main/cpp/hal/src/linux/logger.hpp | pehg/Break_it_all | dab56d82dd4541a710f16b1e6f61ee214059a1a9 | [
"MIT"
] | null | null | null | app/src/main/cpp/hal/src/linux/logger.hpp | pehg/Break_it_all | dab56d82dd4541a710f16b1e6f61ee214059a1a9 | [
"MIT"
] | null | null | null | //
// Created by simonppg on 23/06/18.
//
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BREAK_IT_ALL_LOGGER_H
#define BREAK_IT_ALL_LOGGER_H
#include <ctime>
#include <cstdio>
// Terminal colors
#define KRED_COLOR "\x1B[31m"
#define KGREEN_COLOR "\x1B[32m"
#define KDEFAULT_COLOR "\x1B[0m"
void logi(const char* ... | 26.478261 | 63 | 0.440887 | pehg |
194d64675b587d97e68106c88b6ae1e47d3961ca | 1,465 | cpp | C++ | lab5.cpp | 7VILLAIN/OOPS-Lab-RTU-Kota-Anand-ICE-Batch-2019-23 | 510d00b751fb0b233a060411753b7699fc368af9 | [
"Apache-2.0"
] | 1 | 2021-12-19T10:14:04.000Z | 2021-12-19T10:14:04.000Z | lab5.cpp | 7VILLAIN/OOPS-Lab-RTU-Kota-Anand-ICE-Batch-2019-23 | 510d00b751fb0b233a060411753b7699fc368af9 | [
"Apache-2.0"
] | null | null | null | lab5.cpp | 7VILLAIN/OOPS-Lab-RTU-Kota-Anand-ICE-Batch-2019-23 | 510d00b751fb0b233a060411753b7699fc368af9 | [
"Apache-2.0"
] | null | null | null | /**
* SMA:- Static Memory Allocation
* DMA:- Dynamic Memory Allocation
*/
#include<iostream>
using namespace std;
int main()
{
int *ptr;
ptr = new int; //Creating of integer block dynamically using "new" operater in C++.
*ptr = 12;
... | 37.564103 | 117 | 0.594539 | 7VILLAIN |
1952e2056bc673deebbcc65a024fc9da84ee0acf | 407 | cpp | C++ | Friend Classes/Example_1.cpp | Ahtisham-Shakir/CPP_OOP | 308e7bdbd1e73c644a17f612fc5b919cb68c171c | [
"MIT"
] | null | null | null | Friend Classes/Example_1.cpp | Ahtisham-Shakir/CPP_OOP | 308e7bdbd1e73c644a17f612fc5b919cb68c171c | [
"MIT"
] | null | null | null | Friend Classes/Example_1.cpp | Ahtisham-Shakir/CPP_OOP | 308e7bdbd1e73c644a17f612fc5b919cb68c171c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class A
{
int a, b;
public:
A()
{
a = 10;
b = 20;
}
friend class B;
};
class B
{
public:
void showA(A obj)
{
cout << "Value of a is= " << obj.a << endl;
}
void showB(A obj)
{
cout << "Value of b is= " << o... | 11.970588 | 51 | 0.429975 | Ahtisham-Shakir |
19545ddf2c5d23bbee46f9c62c8280a9276cf0bd | 2,140 | cpp | C++ | VboParticles/src/VboParticlesApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | VboParticles/src/VboParticlesApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | VboParticles/src/VboParticlesApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/GeomIO.h"
#include "cinder/ImageIo.h"
#include "cinder/CameraUi.h"
#include "Resources.h"
using namespace ci;
using namespace ci::app;
using std::vector;
class VboParticlesApp : public App {
public:
void se... | 29.722222 | 125 | 0.638785 | eighteight |
195709178c0b438b89bf4b3400607e28a2f40d69 | 693 | hpp | C++ | src/probabilitycomputer.hpp | ASLeonard/pangenie | aeb0c2aa28bf69041755855306d32f5523371274 | [
"MIT"
] | 8 | 2021-12-10T10:30:08.000Z | 2022-03-30T08:49:01.000Z | src/probabilitycomputer.hpp | ASLeonard/pangenie | aeb0c2aa28bf69041755855306d32f5523371274 | [
"MIT"
] | 7 | 2022-02-09T15:28:23.000Z | 2022-03-22T10:12:50.000Z | src/probabilitycomputer.hpp | ASLeonard/pangenie | aeb0c2aa28bf69041755855306d32f5523371274 | [
"MIT"
] | 1 | 2022-02-08T09:56:36.000Z | 2022-02-08T09:56:36.000Z | #ifndef PROBABILITYCOMPUTER_HPP
#define PROBABILITYCOMPUTER_HPP
#include <vector>
#include <stdio.h>
#include <stdlib.h>
/**
* Computes probabilities for kmer copy numbers.
**/
class ProbabilityComputer {
public:
ProbabilityComputer();
ProbabilityComputer(long double mean_cn0, long double mean_cn1, long double me... | 28.875 | 87 | 0.786436 | ASLeonard |
195c054e1d1a2d032545b27534a0757031cdbdd7 | 91 | hxx | C++ | stdxx/vector/VectorFlavor.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-08T10:14:38.000Z | 2022-03-08T10:14:38.000Z | stdxx/vector/VectorFlavor.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-11T11:43:31.000Z | 2022-03-11T23:18:06.000Z | stdxx/vector/VectorFlavor.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | null | null | null | #pragma once
namespace stx::vectorFlavor {
class DEFAULT;
class POSITION;
class SIZE;
} | 13 | 29 | 0.747253 | JeneLitsch |
1960a38afe53eabd5b339dad5a214f0b07a722ee | 3,145 | hpp | C++ | src/mt/Optional.hpp | nfagan/mtype | a745271d366df64e1b4692cc90f0685ea4084ba6 | [
"MIT"
] | null | null | null | src/mt/Optional.hpp | nfagan/mtype | a745271d366df64e1b4692cc90f0685ea4084ba6 | [
"MIT"
] | null | null | null | src/mt/Optional.hpp | nfagan/mtype | a745271d366df64e1b4692cc90f0685ea4084ba6 | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
namespace mt {
template <typename T>
class Optional;
class NullOpt {
//
};
}
template <typename T>
class mt::Optional {
public:
constexpr Optional() noexcept : val(), is_null(true) {
//
}
constexpr Optional(Optional&& other) noexcept : val(std::move(other.val))... | 18.391813 | 101 | 0.607631 | nfagan |
196d97526d2d309514f90b4322f6fd8101fddd17 | 5,389 | cpp | C++ | TheDevForgotToNameMe/ObjectManager.cpp | henry9836/TheDevForgotToNameMe | 6d6e8bb918d30156c2a465d8da9789717ad061f6 | [
"MIT"
] | null | null | null | TheDevForgotToNameMe/ObjectManager.cpp | henry9836/TheDevForgotToNameMe | 6d6e8bb918d30156c2a465d8da9789717ad061f6 | [
"MIT"
] | null | null | null | TheDevForgotToNameMe/ObjectManager.cpp | henry9836/TheDevForgotToNameMe | 6d6e8bb918d30156c2a465d8da9789717ad061f6 | [
"MIT"
] | null | null | null | #include "ObjectManager.h"
Input m_input;
ObjectManager::ObjectManager()
{
}
ObjectManager::~ObjectManager()
{
}
void ObjectManager::Reset()
{
objPos = glm::vec3(0.0f, 0.0f, 0.0f);
}
MovementPacket ObjectManager::Move(OBJECTTYPE objType, float speed, AudioSystem& audio, GLfloat deltaTime, g... | 24.834101 | 196 | 0.598627 | henry9836 |
1970ce1d22a38fb8c551b702585ef66e7e667c30 | 5,741 | cpp | C++ | gtx9/gtx9_firmware_image.cpp | goodix/gdix_hid_firmware_update | 08d2671b8ed01551702fa0ced8347e44bb301cee | [
"Apache-2.0"
] | 4 | 2020-05-01T13:28:40.000Z | 2021-06-11T09:04:53.000Z | gtx9/gtx9_firmware_image.cpp | goodix/gdix_hid_firmware_update | 08d2671b8ed01551702fa0ced8347e44bb301cee | [
"Apache-2.0"
] | null | null | null | gtx9/gtx9_firmware_image.cpp | goodix/gdix_hid_firmware_update | 08d2671b8ed01551702fa0ced8347e44bb301cee | [
"Apache-2.0"
] | 2 | 2019-09-28T06:06:44.000Z | 2021-06-08T20:38:20.000Z | /*
* Copyright (C) 2017 Goodix Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 28.420792 | 90 | 0.660164 | goodix |
1976f2550a82e5f5aeb00076f18054c56cc7b6d5 | 1,151 | cpp | C++ | Chapter01/05_optional/main.cpp | apolukhin/boost-cookbook | 912e36f38b9b1da93b03ae7afd19fcec0900aa83 | [
"BSL-1.0"
] | 313 | 2017-05-28T15:30:57.000Z | 2022-03-15T12:32:40.000Z | Chapter01/05_optional/main.cpp | apolukhin/boost-cookbook | 912e36f38b9b1da93b03ae7afd19fcec0900aa83 | [
"BSL-1.0"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Chapter01/05_optional/main.cpp | apolukhin/boost-cookbook | 912e36f38b9b1da93b03ae7afd19fcec0900aa83 | [
"BSL-1.0"
] | 85 | 2017-05-28T16:47:33.000Z | 2022-03-30T10:04:55.000Z | #include <boost/optional.hpp>
#include <iostream>
class locked_device {
explicit locked_device(const char* /*param*/) {
// We have unique access to device.
std::cout << "Device is locked\n";
}
static bool try_lock_device_impl();
public:
void use() {
std::cout << "Success!\n";
... | 20.927273 | 61 | 0.539531 | apolukhin |
197d9da4673a5b414ebf03d397a346c4c89d1402 | 1,429 | cpp | C++ | BeagleBone_Blue_catkin_ws/src/drivers/src/mauv_heartbeat.cpp | raymondturrisi/MiniMAUV-software | 442c3238e3ca441a5fb9544da4163ef2afbaafda | [
"MIT"
] | 2 | 2020-10-23T15:43:34.000Z | 2021-06-22T01:34:45.000Z | BeagleBone_Blue_catkin_ws/src/drivers/src/mauv_heartbeat.cpp | raymondturrisi/MiniMAUV-software | 442c3238e3ca441a5fb9544da4163ef2afbaafda | [
"MIT"
] | null | null | null | BeagleBone_Blue_catkin_ws/src/drivers/src/mauv_heartbeat.cpp | raymondturrisi/MiniMAUV-software | 442c3238e3ca441a5fb9544da4163ef2afbaafda | [
"MIT"
] | null | null | null | /*
* @file mauv_heartbeat.cpp
* @Node name: mauv_heartbeat
* @Publishing to:
* std_msgs::int32 heartbeat/beat
* @Subscribing to:
* none
*
* @description
* Maintains timing for MAUV vehicle. Cycles at 0.001 s (1 ms) so beats of
* the vehicle serves as a global timer for various processes.
* i.e. beats%500 = every 0... | 20.710145 | 93 | 0.675297 | raymondturrisi |
1988f5cca7e042ff9cde31c91d26ea1d6930dbd9 | 1,375 | cpp | C++ | main.cpp | LuckyGeck/UniverMag-lab3-cache | b5851955cd3f4d33d948eae71c4958295a619b8d | [
"MIT"
] | null | null | null | main.cpp | LuckyGeck/UniverMag-lab3-cache | b5851955cd3f4d33d948eae71c4958295a619b8d | [
"MIT"
] | null | null | null | main.cpp | LuckyGeck/UniverMag-lab3-cache | b5851955cd3f4d33d948eae71c4958295a619b8d | [
"MIT"
] | null | null | null | #include <iostream>
#include <random>
#include <ctime>
//__declspec(align(16))
// __restrict
namespace {
void MultSimple(const float* __restrict a, const float* __restrict b, float* __restrict c, int n)
{
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
... | 23.305085 | 102 | 0.429818 | LuckyGeck |
198d57704c866c564a1e72e5361842d02a294b72 | 2,384 | cpp | C++ | src/LiftController.cpp | evocortex/evo_robot_base_interface | 89205d3a19499970c39b58bc8aa6d82895bc7ab9 | [
"MIT"
] | null | null | null | src/LiftController.cpp | evocortex/evo_robot_base_interface | 89205d3a19499970c39b58bc8aa6d82895bc7ab9 | [
"MIT"
] | 2 | 2020-03-06T14:32:09.000Z | 2020-10-26T15:57:18.000Z | src/LiftController.cpp | evocortex/evo_robot_base_interface | 89205d3a19499970c39b58bc8aa6d82895bc7ab9 | [
"MIT"
] | null | null | null | //###############################################################
//# Copyright (C) 2019, Evocortex GmbH, All rights reserved. #
//# Further regulations can be found in LICENSE file. #
//###############################################################
/**
* @file LiftController.cpp
* @author Evocortex Gm... | 25.634409 | 85 | 0.610738 | evocortex |
1990fe27b6461faded0646f6bc1f3fb4a2614409 | 1,519 | cpp | C++ | src/filters/filter_coldfff.cpp | fffnerwork/FFF_Protocol_Core | 94d75cc6b3a94e06fe6dde75967e665db26a7649 | [
"MIT"
] | 67 | 2021-10-05T05:53:33.000Z | 2022-01-24T06:23:41.000Z | src/filters/filter_coldfff.cpp | jichengbin/FFF_Protocol_Core | 94d75cc6b3a94e06fe6dde75967e665db26a7649 | [
"MIT"
] | 5 | 2021-10-05T07:50:46.000Z | 2021-10-09T09:40:30.000Z | src/filters/filter_coldfff.cpp | jichengbin/FFF_Protocol_Core | 94d75cc6b3a94e06fe6dde75967e665db26a7649 | [
"MIT"
] | 24 | 2021-10-05T06:34:31.000Z | 2022-01-25T09:14:36.000Z | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "filters/filter.h"
#include "utils/define.h"
#include "utils/util.h"
void mc_Filter::Zero()
{
m_Impl = nullptr;
}
int mc_Filter::Destroy()
{
this->Zero();
return MC_ERR_NOERROR;
}... | 21.097222 | 119 | 0.676103 | fffnerwork |
19916ee7789ef0908258976247fcb37f6c1dc161 | 5,776 | cpp | C++ | HelperFunctions/getVkFramebufferCreateInfo.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkFramebufferCreateInfo.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkFramebufferCreateInfo.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 Douglas Kaip
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 33.976471 | 145 | 0.541724 | dkaip |
199dced7eb6e5b441695122d7d10bd901bec3ed0 | 40,525 | cxx | C++ | oadrsd/oadrsd/2b/ElectricPowerUsageSummary.cxx | AnalyticsFire/OpenADR-VEN-Library | 621e410370c3b3b91a5973d1fc19094278eeff75 | [
"Apache-2.0"
] | null | null | null | oadrsd/oadrsd/2b/ElectricPowerUsageSummary.cxx | AnalyticsFire/OpenADR-VEN-Library | 621e410370c3b3b91a5973d1fc19094278eeff75 | [
"Apache-2.0"
] | 3 | 2021-01-20T13:02:54.000Z | 2021-02-19T14:05:34.000Z | oadrsd/oadrsd/2b/ElectricPowerUsageSummary.cxx | AnalyticsFire/OpenADR-VEN-Library | 621e410370c3b3b91a5973d1fc19094278eeff75 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 28.064404 | 117 | 0.669562 | AnalyticsFire |
19a12de7e597ff1bc25d93ce8709b83f4f62d7f8 | 517 | hpp | C++ | src/save.hpp | carstene1ns/pekka-kana-2 | 89e9eccf267ad40773af3717b8d93b3acf783a97 | [
"MIT"
] | null | null | null | src/save.hpp | carstene1ns/pekka-kana-2 | 89e9eccf267ad40773af3717b8d93b3acf783a97 | [
"MIT"
] | null | null | null | src/save.hpp | carstene1ns/pekka-kana-2 | 89e9eccf267ad40773af3717b8d93b3acf783a97 | [
"MIT"
] | 1 | 2020-04-26T19:09:09.000Z | 2020-04-26T19:09:09.000Z | //#########################
//Pekka Kana 2
//Copyright (c) 2003 Janne Kivilahti
//#########################
#pragma once
#include "episode/episodeclass.hpp"
#include "engine/platform.hpp"
const int SAVES_COUNT = 11;
// Save struct is not the ideal way because of byte order
struct PK2SAVE {
bool empty;
u32 lev... | 18.464286 | 57 | 0.651838 | carstene1ns |
19a580f251b9120ce671b8dd9b11bd53dc3cc568 | 395 | hpp | C++ | visual/events/deallocated_array_event.hpp | Abstract-Everything/dsa | fcbc0f4fa1eb3493f0e1b8f05d7f159ea6f2342c | [
"Unlicense"
] | null | null | null | visual/events/deallocated_array_event.hpp | Abstract-Everything/dsa | fcbc0f4fa1eb3493f0e1b8f05d7f159ea6f2342c | [
"Unlicense"
] | null | null | null | visual/events/deallocated_array_event.hpp | Abstract-Everything/dsa | fcbc0f4fa1eb3493f0e1b8f05d7f159ea6f2342c | [
"Unlicense"
] | null | null | null | #ifndef VISUAL_DEALLOCATED_ARRAY_EVENT_HPP
#define VISUAL_DEALLOCATED_ARRAY_EVENT_HPP
#include "address.hpp"
#include <string>
namespace visual
{
class Deallocated_Array_Event
{
public:
explicit Deallocated_Array_Event(Address address);
[[nodiscard]] Address address() const;
[[nodiscard]] std::string to_string... | 15.192308 | 51 | 0.777215 | Abstract-Everything |
30ac4eda80327467fa7d3c66107f2874c53e1478 | 372 | cpp | C++ | LeetCode/cpp/1.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/1.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/1.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
vector<int> twoSum(vector<int> &nums, int target) {
unordered_map<int, int> u;
for (int i = 0; i < nums.size(); ++i) {
int &&temp = target - nums[i];
if (u.find(temp) != u.end())
return {u[temp], i};
u.insert(pair<int, int>... | 28.615385 | 55 | 0.451613 | ZintrulCre |
30af77bfa7d111204e92ae63260e10e8d3d96c33 | 828 | hpp | C++ | library/ATF/_pt_result_appoint_zoclInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_pt_result_appoint_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_pt_result_appoint_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_pt_result_appoint_zocl.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _pt_result_appoint_zoclctor__pt_result_appoint_zocl2_ptr = vo... | 46 | 181 | 0.793478 | lemkova |
30b03a9489e70df69a9564cac728f337bfbc4ada | 1,234 | cpp | C++ | BaekJoon/4963.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | BaekJoon/4963.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | BaekJoon/4963.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | /*4963*/
/*Got it!*/
#include <iostream>
#include <cstring>
using namespace std;
int island[51][51];
int visited[51][51];
int w, h;
int pos[8][2] = {
{-1, 0},
{-1, 1},
{0, 1},
{1, 1},
{1, 0},
{1, -1},
{0, -1},
{-1, -1},
};
void dfs(int x, int y){
visited[x][y] = 1;
for(int i ... | 22.035714 | 77 | 0.377634 | falconlee236 |
30b0f702a8072544b8e6ecc20ee56a9249a1da8f | 4,423 | cpp | C++ | src/projections.cpp | Rapidash99/basic-of-rasterization | 7237df71155c0bf2216b57fa2812373420621f12 | [
"MIT"
] | null | null | null | src/projections.cpp | Rapidash99/basic-of-rasterization | 7237df71155c0bf2216b57fa2812373420621f12 | [
"MIT"
] | null | null | null | src/projections.cpp | Rapidash99/basic-of-rasterization | 7237df71155c0bf2216b57fa2812373420621f12 | [
"MIT"
] | null | null | null | #include "projections.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
using namespace linalg;
cg::ObjParser::ObjParser(std::string filename) : filename(filename) {
faces.clear();
}
cg::ObjParser::~ObjParser() {
throw std:... | 28.535484 | 149 | 0.549401 | Rapidash99 |
30b24fa00f9888fef623eca6ca8a526f81c3e9e8 | 4,172 | cpp | C++ | photon-dimmer.cpp | rickkas7/photon-dimmer | c060572beb65124101b6a7462db32e368f539244 | [
"MIT"
] | 1 | 2018-05-02T00:45:33.000Z | 2018-05-02T00:45:33.000Z | photon-dimmer.cpp | rickkas7/photon-dimmer | c060572beb65124101b6a7462db32e368f539244 | [
"MIT"
] | null | null | null | photon-dimmer.cpp | rickkas7/photon-dimmer | c060572beb65124101b6a7462db32e368f539244 | [
"MIT"
] | null | null | null | #include "Particle.h"
// Example program for implementing a triac-based dimmer type circuit on the Photon
TIM_TypeDef* TIMx;
GPIO_InitTypeDef GPIO_InitStructure;
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
TIM_OCInitTypeDef TIM_OCInitStructure;
TIM_ICInitTypeDef TIM_ICInitStructure;
void setup() {
Serial.begin... | 41.306931 | 135 | 0.785475 | rickkas7 |
30b357ce6e86e04f3842cb54641204665901abe4 | 303 | hpp | C++ | src/poker/Deck.hpp | RichardMarks/ld41_poker_platform | 9c97ec3bdf556bd6228c54681ccb160729c088ff | [
"MIT"
] | null | null | null | src/poker/Deck.hpp | RichardMarks/ld41_poker_platform | 9c97ec3bdf556bd6228c54681ccb160729c088ff | [
"MIT"
] | null | null | null | src/poker/Deck.hpp | RichardMarks/ld41_poker_platform | 9c97ec3bdf556bd6228c54681ccb160729c088ff | [
"MIT"
] | null | null | null | #ifndef DECK_H
#define DECK_H
#include "Card.hpp"
#include <vector>
class Deck {
public:
enum Type { Empty, Standard };
Deck (Type t = Empty);
void add(Card::Rank rank, Card::Suit suit);
void shuffle(int count);
void sort();
std::vector<Card> cards;
};
#endif // !DECK_H
| 14.428571 | 47 | 0.620462 | RichardMarks |
30b4d5a50ba3236c712d0a7e49fc03de85529ead | 1,830 | cpp | C++ | topcoder/srm/src/SRM618/Family.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | topcoder/srm/src/SRM618/Family.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | topcoder/srm/src/SRM618/Family.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
const int N = 100+ 10;
vector<int> g[N];
const string T = "Possible";
const string F = "Impossible";
char c... | 20.561798 | 61 | 0.511475 | Johniel |
30cc612bb073df1326e057dd132e31fb83d4e126 | 5,137 | cpp | C++ | src/io/file/coFileAccess_win.cpp | smogpill/core | 56ef53fda4582d7d4c1ade17e90e24d0a5128a8d | [
"MIT"
] | 1 | 2016-06-23T07:02:30.000Z | 2016-06-23T07:02:30.000Z | src/io/file/coFileAccess_win.cpp | smogpill/core | 56ef53fda4582d7d4c1ade17e90e24d0a5128a8d | [
"MIT"
] | null | null | null | src/io/file/coFileAccess_win.cpp | smogpill/core | 56ef53fda4582d7d4c1ade17e90e24d0a5128a8d | [
"MIT"
] | null | null | null | // Copyright(c) 2016 Jounayd Id Salah
// Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT).
#include "io/pch.h"
#include "io/file/coFileAccess.h"
#include "io/path/coPathStatus.h"
#include "io/path/coPath_f.h"
#include "debug/log/coLog.h"
#include "p... | 26.076142 | 123 | 0.712673 | smogpill |
30cf0ffde5d901292274a9e95490d943d54549e3 | 6,044 | cpp | C++ | buf/appl_buf0.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | buf/appl_buf0.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | buf/appl_buf0.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | /* See LICENSE for license details */
/*
*/
#include <appl_status.h>
#include <appl_predefines.h>
#include <buf/appl_buf0.h>
#include <appl_types.h>
#include <heap/appl_heap_handle.h>
#include <buf/appl_buf.h>
#include <misc/appl_convert.h>
#include <object/appl_object.h>
/*
*/
struct appl_buf0_descriptor
{... | 16.335135 | 61 | 0.537558 | fboucher9 |
30cfa4f6f783171c08a90cc680efb6e4a60402bf | 389 | cpp | C++ | Code/905_Sort_Array_By_Parity.cpp | DCOLIVERSUN/LeetCode | e0ef5ed8a267d81cc794914c3c1f22b013a32871 | [
"MIT"
] | 1 | 2019-11-12T08:15:33.000Z | 2019-11-12T08:15:33.000Z | Code/905_Sort_Array_By_Parity.cpp | DCOLIVERSUN/LeetCode | e0ef5ed8a267d81cc794914c3c1f22b013a32871 | [
"MIT"
] | null | null | null | Code/905_Sort_Array_By_Parity.cpp | DCOLIVERSUN/LeetCode | e0ef5ed8a267d81cc794914c3c1f22b013a32871 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> sortArrayByParity(vector<int>& A) {
int left = 0, right = A.size() - 1;
while (left < right) {
while (left < A.size() && A[left] % 2 == 0) left++;
while (right >= 0 && A[right] % 2 == 1) right--;
if (left >= right) break;
... | 27.785714 | 63 | 0.449871 | DCOLIVERSUN |
30d1cc9745e2bc4388ed10f5d631cb13d846a67c | 1,142 | cpp | C++ | c/disambig/canonicalizer_client_test.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 3 | 2016-05-31T07:23:27.000Z | 2018-02-16T00:06:04.000Z | c/disambig/canonicalizer_client_test.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 2 | 2020-08-31T20:51:20.000Z | 2021-03-30T18:05:25.000Z | c/disambig/canonicalizer_client_test.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 4 | 2015-01-17T07:31:25.000Z | 2020-08-31T20:49:41.000Z | #include "canonicalizer_client.h"
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
CanonicalizerClient* cc = CanonicalizerClient::instance();
cc->base_url("http://localhost:5000");
vector<string> candidates;
/*
candidates.push_back("China");
candidates.push_back("Beijing");
can... | 40.785714 | 397 | 0.737303 | mmonto7 |
30df00d8e63e372903e9a479455e1c4639cfcaa5 | 3,814 | cc | C++ | tests/libtests/feassemble/obsolete/TestQuadratureRefCell.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/feassemble/obsolete/TestQuadratureRefCell.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/feassemble/obsolete/TestQuadratureRefCell.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 28.676692 | 77 | 0.628736 | Grant-Block |
30e0461be939b5c374b413c151469dcbcba4a1e9 | 12,587 | cpp | C++ | source/examples/ex_lighting_texture.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 2 | 2022-03-05T02:46:22.000Z | 2022-03-05T03:04:20.000Z | source/examples/ex_lighting_texture.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | null | null | null | source/examples/ex_lighting_texture.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 4 | 2021-09-06T20:44:47.000Z | 2021-10-04T22:05:12.000Z | /**
* @file ex_lighting_texture.cpp
* @brief Showing lighting effects over two textured objects with Phong
*
* @author Daniel Calderón
* @license MIT
*/
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <numbers>
#include <ciso646>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#i... | 36.16954 | 136 | 0.612457 | hporro |
30e1f017ae2809057aa87daa820421e2dda4d225 | 1,350 | hh | C++ | Qt/source/Interface.hh | jrmadsen/TrackingBlocker | 3a0cda356520ab9952939ae093b21d330196b8f2 | [
"MIT"
] | null | null | null | Qt/source/Interface.hh | jrmadsen/TrackingBlocker | 3a0cda356520ab9952939ae093b21d330196b8f2 | [
"MIT"
] | null | null | null | Qt/source/Interface.hh | jrmadsen/TrackingBlocker | 3a0cda356520ab9952939ae093b21d330196b8f2 | [
"MIT"
] | null | null | null | //
//
//
//
//
// created by jmadsen on Sun Mar 20 19:36:55 2016
//
//
//
//
#ifndef interface_hh_
#define interface_hh_
#include <QMainWindow>
#include <QResizeEvent>
#include <QMenuBar>
#include <QToolBar>
#include <QDockWidget>
#include <QFileDialog>
#include <QInputDialog>
#include <QDir>
#include <QFile>
#inclu... | 18.493151 | 80 | 0.592593 | jrmadsen |
30f1a4b8a8d5f4482037ab53622410d5ef248e5c | 514 | cpp | C++ | solution/prefix_sum/14929/main.cpp | imnotmoon/baekjoon | 07e7f95316dcc578d065eb384553ae09530f95ac | [
"MIT"
] | 1 | 2021-09-25T07:22:51.000Z | 2021-09-25T07:22:51.000Z | solution/prefix_sum/14929/main.cpp | imnotmoon/baekjoon | 07e7f95316dcc578d065eb384553ae09530f95ac | [
"MIT"
] | null | null | null | solution/prefix_sum/14929/main.cpp | imnotmoon/baekjoon | 07e7f95316dcc578d065eb384553ae09530f95ac | [
"MIT"
] | 2 | 2021-09-18T05:47:41.000Z | 2021-12-30T14:42:27.000Z | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
// x_1 x_2 + x_2 x_3 + x_3 x_4 + ... x_n-1 x_n => O(N^2)
// = { (x_1 + x_2 + x_3 ... + x_n) ^ 2 - (x_1 ^ 2 + x_2 ^ 2 + x_3 ^ 2 + ... + x_n ^ 2) } / 2 => O(N)
int N; cin >> N;
... | 21.416667 | 104 | 0.455253 | imnotmoon |
30f5f92a521cb50361be8ad5cab6b5be509df533 | 20,144 | cpp | C++ | src/LK20.cpp | cashiwamochi/LK20_ImageAlignment | ada6c3f4f007aa73d5a5f1b4473b6e00f0250707 | [
"MIT"
] | 18 | 2018-12-21T12:48:06.000Z | 2022-03-25T11:59:04.000Z | src/LK20.cpp | cashiwamochi/LK20_ImageAlignment | ada6c3f4f007aa73d5a5f1b4473b6e00f0250707 | [
"MIT"
] | 1 | 2020-10-15T13:24:12.000Z | 2021-09-07T14:54:58.000Z | src/LK20.cpp | cashiwamochi/LK20_ImageAlignment | ada6c3f4f007aa73d5a5f1b4473b6e00f0250707 | [
"MIT"
] | 8 | 2019-03-15T16:51:43.000Z | 2022-03-04T22:11:54.000Z | #include "LK20.hpp"
namespace LK20 {
LKTracker::LKTracker(cv::Mat image, cv::Rect rect, int pyramid_level, CalcType t)
: mm_ref_image(image), m_pyramid_level(pyramid_level), m_type(t), m_height(rect.height), m_width(rect.width)
{
mm_H0.release(); // This ensures mm_H0 is empty.
mb_verbose = false;
... | 33.517471 | 112 | 0.530431 | cashiwamochi |
30f68bec1621fc1b53f784fdb65efc4a9b371bbe | 4,112 | cpp | C++ | src/graphics/shadermanager.cpp | ugozapad/hackathon | c2ab92c0564709107ef960840958643235326096 | [
"BSD-2-Clause"
] | 2 | 2021-11-26T15:11:00.000Z | 2022-03-30T15:26:39.000Z | src/graphics/shadermanager.cpp | ugozapad/hackathon | c2ab92c0564709107ef960840958643235326096 | [
"BSD-2-Clause"
] | null | null | null | src/graphics/shadermanager.cpp | ugozapad/hackathon | c2ab92c0564709107ef960840958643235326096 | [
"BSD-2-Clause"
] | null | null | null | #include "pch.h"
#include "graphics/shadermanager.h"
#include "graphics/shader.h"
namespace engine
{
ShaderManager ShaderManager::ms_instance;
void ShaderManager::init()
{
// init engine default shaders
createShader("quad");
createShader("fade_in_out");
createShader("def_geom");
createSha... | 24.188235 | 124 | 0.662695 | ugozapad |
30fae027980402e0365b30dda39eacb016b8577e | 7,918 | cc | C++ | src/PathStore.cc | ltlfuzzer/LTL-Fuzzer | 9a5a6e771a720a06b3a14baac934e0eef72d138b | [
"Apache-2.0"
] | 1 | 2022-01-21T07:57:03.000Z | 2022-01-21T07:57:03.000Z | src/PathStore.cc | ltlfuzzer/LTL-Fuzzer | 9a5a6e771a720a06b3a14baac934e0eef72d138b | [
"Apache-2.0"
] | null | null | null | src/PathStore.cc | ltlfuzzer/LTL-Fuzzer | 9a5a6e771a720a06b3a14baac934e0eef72d138b | [
"Apache-2.0"
] | 1 | 2022-02-02T11:55:04.000Z | 2022-02-02T11:55:04.000Z | #include "pathstore.h"
#include <targetstore.h>
#include <string.h>
#include <utility>
using std::cout;
using std::endl;
using namespace boost::interprocess;
int path::PathsStore::init_run = 1;
//managed_shared_memory segment(open_or_create, shmId.c_str(), size);
//void_allocator alloc_inst(segment.get_segment_man... | 31.799197 | 141 | 0.656479 | ltlfuzzer |
30fb6d0ea6002cc771428a74cf09529d72f32d78 | 372 | cpp | C++ | Linked List/middle_of_linkeslist.cpp | vsvipul11/Datastructres_CPP | a63c62c424aba805d1a17f6cb1a6036fad42dd68 | [
"MIT"
] | 2 | 2021-01-01T20:36:09.000Z | 2022-03-09T21:11:22.000Z | Linked List/middle_of_linkeslist.cpp | vsvipul11/Datastructres_CPP | a63c62c424aba805d1a17f6cb1a6036fad42dd68 | [
"MIT"
] | null | null | null | Linked List/middle_of_linkeslist.cpp | vsvipul11/Datastructres_CPP | a63c62c424aba805d1a17f6cb1a6036fad42dd68 | [
"MIT"
] | 1 | 2021-05-14T15:53:15.000Z | 2021-05-14T15:53:15.000Z | class Solution {
public:
ListNode* middleNode(ListNode* head) {
ListNode* temp = head;
int count = 0;
while(temp){
temp = temp->next;
count++;
}
temp = head;
for(int i = 0 ;i<count/2 ; i++){
temp = temp->next;
... | 19.578947 | 44 | 0.392473 | vsvipul11 |
a50019244b36396a6dc1f77f5619e9d943e17542 | 1,582 | cc | C++ | src/euarel.cc | octobanana/euarel | 5a9edfb499aab37fed0f4e20b7e3f8a3cb82e618 | [
"MIT"
] | 7 | 2019-01-25T01:32:34.000Z | 2021-08-11T18:03:23.000Z | src/euarel.cc | octobanana/euarel | 5a9edfb499aab37fed0f4e20b7e3f8a3cb82e618 | [
"MIT"
] | null | null | null | src/euarel.cc | octobanana/euarel | 5a9edfb499aab37fed0f4e20b7e3f8a3cb82e618 | [
"MIT"
] | null | null | null | #include "euarel.hh"
#include <cstdio>
#include <cctype>
#include <cstddef>
#include <string>
namespace OB::Euarel
{
std::string hex_encode(char const c);
char hex_decode(std::string const& s);
std::string hex_encode(char const c)
{
char s[3];
if (c & 0x80)
{
std::snprintf(&s[0], 3, "%02X",
static... | 16.309278 | 62 | 0.513906 | octobanana |
a502147482b6e52a09df897ac6f246a849ca8883 | 747 | cpp | C++ | src/texturemanager.cpp | cschreib/orb | 18c5966c88de0270294f7819e88b4eb064ac5ba0 | [
"MIT"
] | null | null | null | src/texturemanager.cpp | cschreib/orb | 18c5966c88de0270294f7819e88b4eb064ac5ba0 | [
"MIT"
] | null | null | null | src/texturemanager.cpp | cschreib/orb | 18c5966c88de0270294f7819e88b4eb064ac5ba0 | [
"MIT"
] | null | null | null | #include "texturemanager.h"
const std::string TextureManager::CLASS_NAME = "TextureManager";
TextureManager::TextureManager()
{
}
TextureManager::~TextureManager()
{
}
sf::Texture* TextureManager::LoadTexture( const std::string& sFile )
{
auto iter = lTextureList_.find(sFile);
if (iter == lTe... | 24.9 | 95 | 0.61178 | cschreib |
a50361203a2ffe2843d5d28098e8c4f71926eb67 | 1,786 | cpp | C++ | Source/AllProjects/Drivers/MQTT/Server/MQTTS_DrvEvent.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/MQTT/Server/MQTTS_DrvEvent.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/MQTT/Server/MQTTS_DrvEvent.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: MQTTS_DrvEvent.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/04/2019
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensour... | 26.264706 | 83 | 0.380179 | MarkStega |
a5037c319499ebe4b76ddb8543ac93bad182a466 | 199 | cpp | C++ | src/ray.cpp | tiantianhan/rtavis | 325cbe22b28b98924cf8ff0dd6444e39bea1e17d | [
"MIT"
] | null | null | null | src/ray.cpp | tiantianhan/rtavis | 325cbe22b28b98924cf8ff0dd6444e39bea1e17d | [
"MIT"
] | null | null | null | src/ray.cpp | tiantianhan/rtavis | 325cbe22b28b98924cf8ff0dd6444e39bea1e17d | [
"MIT"
] | null | null | null | #include "ray.hpp"
#include "utils/vec3.hpp"
Point3 Ray::origin() const{
return orig;
}
Point3 Ray::direction() const{
return dir;
}
Point3 Ray::at(double t) const{
return orig + t * dir;
}
| 13.266667 | 31 | 0.658291 | tiantianhan |
a5090729d9820c837c1711ba5d846a202938b52d | 11,163 | cpp | C++ | src/mif/net/http/connection.cpp | paceholder/mif | ff3c18f577048c94887220bb92477ce102f01599 | [
"MIT"
] | 4 | 2018-03-26T11:49:13.000Z | 2019-12-22T06:18:35.000Z | src/mif/net/http/connection.cpp | paceholder/mif | ff3c18f577048c94887220bb92477ce102f01599 | [
"MIT"
] | null | null | null | src/mif/net/http/connection.cpp | paceholder/mif | ff3c18f577048c94887220bb92477ce102f01599 | [
"MIT"
] | 1 | 2018-10-01T09:16:29.000Z | 2018-10-01T09:16:29.000Z | //-------------------------------------------------------------------
// MetaInfo Framework (MIF)
// https://github.com/tdv/mif
// Created: 12.2016
// Copyright (C) 2016-2017 tdv
//-------------------------------------------------------------------
// STD
#include <atomic>
#include <cstdint>
#include <mutex>
#... | 38.098976 | 147 | 0.430619 | paceholder |
a50b3479226497e0338e4184cfbd2aec5c4151b7 | 781 | cpp | C++ | 007A - Kalevitch and Chess/17595552_30MS_2100K.cpp | cloudzfy/codeforces | d409574c1a4218419aa6e9ddc02fddb7b83455d8 | [
"MIT"
] | 1 | 2016-04-30T02:57:49.000Z | 2016-04-30T02:57:49.000Z | 007A - Kalevitch and Chess/17595552_30MS_2100K.cpp | cloudzfy/codeforces | d409574c1a4218419aa6e9ddc02fddb7b83455d8 | [
"MIT"
] | null | null | null | 007A - Kalevitch and Chess/17595552_30MS_2100K.cpp | cloudzfy/codeforces | d409574c1a4218419aa6e9ddc02fddb7b83455d8 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <cstring>
#include <algorithm>
using namespace std;
int main(int argc, const char * argv[]) {
char chess[8][9];
int ans = 0;
for (int i = 0; i < 8; i++) {
scanf("%s"... | 22.314286 | 44 | 0.450704 | cloudzfy |
a5114c0d48fcf5160e117d1da99f7f05cd3502d6 | 12,307 | cpp | C++ | OpenHTMLFile/OpenHTMLFile/OpenHTMLFile.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | OpenHTMLFile/OpenHTMLFile/OpenHTMLFile.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | OpenHTMLFile/OpenHTMLFile/OpenHTMLFile.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include "../../resource/tool.h"
using namespace std;
void SIGINT_HANDLER(int signal);
static HANDLE hBrowserProcess;
static DWORD main_thread_id;
using std::cout; using std::wcout;
#ifndef _WIN64
#define nop __asm nop
#else
#define nop
#endif
int main() {
nop;... | 34.186111 | 82 | 0.619566 | shc0743 |
a51816d9c03bf3c00f84d3112ebb935d08fd1f15 | 2,423 | cpp | C++ | src/module_loader/test/queue_offer_factory.cpp | RobertLeahy/Module-Loader | 50c9aa4d00b5c827d31c83fd3ff3294c3d4e7c3b | [
"Unlicense"
] | 2 | 2017-02-15T05:28:34.000Z | 2017-11-06T15:25:00.000Z | src/module_loader/test/queue_offer_factory.cpp | RobertLeahy/Module-Loader | 50c9aa4d00b5c827d31c83fd3ff3294c3d4e7c3b | [
"Unlicense"
] | null | null | null | src/module_loader/test/queue_offer_factory.cpp | RobertLeahy/Module-Loader | 50c9aa4d00b5c827d31c83fd3ff3294c3d4e7c3b | [
"Unlicense"
] | null | null | null | #include <module_loader/queue_offer_factory.hpp>
#include <module_loader/in_place_offer.hpp>
#include <memory>
#include <utility>
#include <catch.hpp>
namespace module_loader {
namespace test {
namespace {
SCENARIO("module_loader::queue_offer_factory objects return a null pointer when their queue is empty","[module_l... | 31.881579 | 172 | 0.678498 | RobertLeahy |
a51bb0ac02112dae59e197c950cbc8d5be66b8d3 | 11,488 | cpp | C++ | stlport/test/regression/single.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 86 | 2018-05-24T12:03:44.000Z | 2022-03-13T03:01:25.000Z | stlport/test/regression/single.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 1 | 2019-05-30T01:38:40.000Z | 2019-10-26T07:15:01.000Z | stlport/test/regression/single.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 14 | 2018-07-16T08:29:12.000Z | 2021-08-23T06:21:30.000Z | // STLport regression testsuite component.
// To compile as a separate example, please #define MAIN.
#include "stl_test.h"
#include "accum1.cpp"
#include "accum2.cpp"
#include "adjdiff0.cpp"
#include "adjdiff1.cpp"
#include "adjdiff2.cpp"
#include "adjfind0.cpp"
#include "adjfind1.cpp"
#include "adjfind2.cpp"
#include ... | 24.134454 | 57 | 0.751393 | masscry |
a521b2567c005ec8ae64b6fb0b4e11e8c28aad4e | 469 | cpp | C++ | toolsrc/src/commands_version.cpp | stammen/vcpkg-cocos2d-x | ee8320989d04a78103dc40a092b2bd05a4eb673c | [
"MIT"
] | null | null | null | toolsrc/src/commands_version.cpp | stammen/vcpkg-cocos2d-x | ee8320989d04a78103dc40a092b2bd05a4eb673c | [
"MIT"
] | null | null | null | toolsrc/src/commands_version.cpp | stammen/vcpkg-cocos2d-x | ee8320989d04a78103dc40a092b2bd05a4eb673c | [
"MIT"
] | 3 | 2018-04-16T08:55:22.000Z | 2019-02-09T17:48:43.000Z | #include "pch.h"
#include "vcpkg_Commands.h"
#include "vcpkg_System.h"
#include "vcpkg_info.h"
namespace vcpkg::Commands::Version
{
void perform_and_exit(const vcpkg_cmd_arguments& args)
{
args.check_exact_arg_count(0);
System::println("Vcpkg package management program version %s\n"
... | 26.055556 | 83 | 0.61194 | stammen |
a523907f8a54417f12fa5b94108400e2b26ea2cd | 2,349 | cpp | C++ | hooks/recv_commands/CMDRECV_Build_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/recv_commands/CMDRECV_Build_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/recv_commands/CMDRECV_Build_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | //Injector source file for the CMDRECV Build hooks module.
#include "CMDRECV_Build.h"
#include <hook_tools.h>
namespace {
void __declspec(naked) CMDRECV_PlaceBuildingAllowed_Wrapper() {
static CUnit* builder;
static u8 orderId;
static u16 builtUnitId;
static Bool32 bReturnValue;
__asm {
MOV bui... | 14.5 | 92 | 0.647084 | Lucifirius |
a52aafe671f7809b048c1b8afa43c41728001477 | 18,567 | hpp | C++ | toolbox/aeron/Aeron.hpp | mmitkevich/toolbox-cpp | 59e26154acbd990de9658bf229ebdbf7f89fc0c8 | [
"Apache-2.0"
] | null | null | null | toolbox/aeron/Aeron.hpp | mmitkevich/toolbox-cpp | 59e26154acbd990de9658bf229ebdbf7f89fc0c8 | [
"Apache-2.0"
] | null | null | null | toolbox/aeron/Aeron.hpp | mmitkevich/toolbox-cpp | 59e26154acbd990de9658bf229ebdbf7f89fc0c8 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "toolbox/io/Buffer.hpp"
#include "toolbox/io/Socket.hpp"
#include "toolbox/net/Endpoint.hpp"
#include <aeron/aeronc.h>
#include "toolbox/net/ParsedUrl.hpp"
#include "toolbox/net/Protocol.hpp"
#include <system_error>
#include <thread>
#include <toolbox/sys/Error.hpp>
#include <toolbox/util/Slot.hp... | 28.697063 | 112 | 0.58841 | mmitkevich |
a52c28c9775825fa3e549de31a81b24c80f90511 | 35,612 | hpp | C++ | include/phiKalmanDynamicParameters.hpp | PhiniteLab/kalman-filter-design-in-cpp | 695607fe6a7a747d234fcb1cd19b5b2eac56d09d | [
"Apache-2.0"
] | 1 | 2021-09-27T11:13:08.000Z | 2021-09-27T11:13:08.000Z | include/phiKalmanDynamicParameters.hpp | PhiniteLab/kalman-filter-design-in-cpp | 695607fe6a7a747d234fcb1cd19b5b2eac56d09d | [
"Apache-2.0"
] | null | null | null | include/phiKalmanDynamicParameters.hpp | PhiniteLab/kalman-filter-design-in-cpp | 695607fe6a7a747d234fcb1cd19b5b2eac56d09d | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2021 Phinite Lab. All rights reserved.
Contact information
------------------------------------------------------
Developers:
Mehmet İşcan : mehmetmkt@gmail.com
Ali Burak Özden : ozdenaliburak@gmail.com
Company:
Phinite Engineering, Istanbul
Web : http://phinitelab.com
e-mail : ... | 47.994609 | 155 | 0.450607 | PhiniteLab |
a5423adf26a7eff20d2aba6c74910471d8abbb7c | 380 | cpp | C++ | src/lib/cli_cpp/cli/A_Command_Response_Handler_Base.cpp | marvins/cli-cpp | 4f98a09d5cfeffe0d5c330cda3272ae207c511d1 | [
"MIT"
] | 4 | 2020-10-08T03:09:10.000Z | 2022-03-13T09:22:51.000Z | src/lib/cli_cpp/cli/A_Command_Response_Handler_Base.cpp | marvins/cli-cpp | 4f98a09d5cfeffe0d5c330cda3272ae207c511d1 | [
"MIT"
] | 4 | 2015-05-30T17:40:46.000Z | 2015-07-01T01:10:16.000Z | src/lib/cli_cpp/cli/A_Command_Response_Handler_Base.cpp | marvins/cli-cpp | 4f98a09d5cfeffe0d5c330cda3272ae207c511d1 | [
"MIT"
] | 2 | 2015-06-02T20:07:39.000Z | 2020-12-16T09:25:38.000Z | /**
* @file A_Command_Response_Handler_Base.cpp
* @author Marvin Smith
* @date 5/20/2015
*/
#include "A_Command_Response_Handler_Base.hpp"
namespace CLI{
/**********************************/
/* Constructor */
/**********************************/
A_Command_Response_Handler_Base::A_Comman... | 17.272727 | 66 | 0.55 | marvins |
a54251a11879e0a6169fd170556821a483aa825d | 355 | cc | C++ | cores/pico/picorv32/demo/src/decode_riscv_ADDI.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | 1 | 2020-05-30T17:34:03.000Z | 2020-05-30T17:34:03.000Z | cores/pico/picorv32/demo/src/decode_riscv_ADDI.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | null | null | null | cores/pico/picorv32/demo/src/decode_riscv_ADDI.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | 1 | 2020-02-26T03:35:51.000Z | 2020-02-26T03:35:51.000Z | #include "riscv.h"
bool riscv::decode_riscv_ADDI() {
if (!1) {
return false;
}
uint7_t tmp_15 = 0 - 1;
c_15 = static_cast<uint7_t> ((riscv_inst >> 0) & tmp_15);
c_4761 = c_15 == 19;
uint3_t tmp_23 = 0 - 1;
c_23 = static_cast<uint3_t> ((riscv_inst >> 12) & tmp_23);
c_4757 = c_23 == 0;
c_4763 = (c_4... | 23.666667 | 60 | 0.605634 | yuex1994 |
a54d094e87967a0e737561d3dbc7b6b8897ee1d2 | 3,681 | cpp | C++ | Rachit's_youtube_classes_1_Nov28/1_vectors.cpp | MaajidKhan/STL_c- | 4ab7443a46d3382025d2e1608e4799c504a68442 | [
"MIT"
] | null | null | null | Rachit's_youtube_classes_1_Nov28/1_vectors.cpp | MaajidKhan/STL_c- | 4ab7443a46d3382025d2e1608e4799c504a68442 | [
"MIT"
] | null | null | null | Rachit's_youtube_classes_1_Nov28/1_vectors.cpp | MaajidKhan/STL_c- | 4ab7443a46d3382025d2e1608e4799c504a68442 | [
"MIT"
] | null | null | null | /*
Vector in C++ STL
Vectors are same as dynamic arrays with the ability to resize itself automatically when an element
is inserted or deleted, with their storage being handled automatically by the container.
Vector elements are placed in contiguous storage so that they can be accessed and traversed
using iterators.... | 34.401869 | 131 | 0.634067 | MaajidKhan |
a54f1222e6c8f243342ff9f491fbb7957a28da4f | 5,162 | cxx | C++ | dune/xt/data/quadratures/gausslobatto/data/gausslobatto70.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:11.000Z | 2020-02-08T04:09:11.000Z | dune/xt/data/quadratures/gausslobatto/data/gausslobatto70.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 40 | 2018-08-26T08:34:34.000Z | 2021-09-28T13:01:55.000Z | dune/xt/data/quadratures/gausslobatto/data/gausslobatto70.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:14.000Z | 2020-02-08T04:10:14.000Z | // This file is part of the dune-xt-data project:
// https://github.com/dune-community/dune-xt-data
// Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 54.336842 | 95 | 0.706315 | dune-community |
a5543954d049706520ac79fb68e51a2a2833a871 | 249 | hpp | C++ | src/lib/tisix/string_builder.hpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | 13 | 2021-11-14T00:42:36.000Z | 2022-02-21T14:19:50.000Z | src/lib/tisix/string_builder.hpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | null | null | null | src/lib/tisix/string_builder.hpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | 1 | 2021-11-20T16:15:45.000Z | 2021-11-20T16:15:45.000Z | #pragma once
#include <tisix/std.hpp>
namespace tisix
{
class StringBuilder
{
public:
StringBuilder(const char* s);
~StringBuilder();
public:
char* operator +(const char* s);
public:
char* buffer;
};
} | 13.833333 | 40 | 0.586345 | Abb1x |
a22baf1a6f01c03bc0c5572170123fb706711708 | 776 | cpp | C++ | Dynamic Programming/Matrix Chain Multiplication/02. MCM_Memoised.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | 2 | 2021-05-21T17:10:02.000Z | 2021-05-29T05:13:06.000Z | Dynamic Programming/Matrix Chain Multiplication/02. MCM_Memoised.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | Dynamic Programming/Matrix Chain Multiplication/02. MCM_Memoised.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
// return the minimum cost of MCM
// k = i => k = j-1 --> fun(i to k) fun(k+1 to j)
// k = i+1 => k = j --> fun(i to k-1) fun(k to j)
int MCM(int *arr, int i, int j)
{
// Base Case:
if (i >= j)
return 0;
vector<vector<int>> dp(i + 1, ve... | 20.972973 | 86 | 0.46134 | sohamnandi77 |
a22ebbd6ff97a904ff6bb68eb4fa69faddc28ad0 | 105 | hpp | C++ | addons/statistics/XEH_PREP.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | addons/statistics/XEH_PREP.hpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | addons/statistics/XEH_PREP.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | PREP(onAceKilled);
PREP(onFired);
PREP(onMedicalTreatment);
PREP(onMissionEnd);
PREP(onThrowableThrown);
| 17.5 | 25 | 0.809524 | kellerkompanie |
a23507ff178a74535b4ba28922cadbeccd02216d | 1,103 | cpp | C++ | playground/CSV_CONVERTOR/csv_convertor.cpp | Philippe-Guyard/XOptimizer | d09644eb6b92253b1d56ca2ab9c1be681993d931 | [
"MIT"
] | 1 | 2021-11-07T18:34:20.000Z | 2021-11-07T18:34:20.000Z | playground/CSV_CONVERTOR/csv_convertor.cpp | Philippe-Guyard/XOptimizer | d09644eb6b92253b1d56ca2ab9c1be681993d931 | [
"MIT"
] | 1 | 2021-11-16T21:29:32.000Z | 2021-11-16T21:29:32.000Z | playground/CSV_CONVERTOR/csv_convertor.cpp | Philippe-Guyard/XOptimizer | d09644eb6b92253b1d56ca2ab9c1be681993d931 | [
"MIT"
] | 2 | 2021-11-05T11:06:18.000Z | 2021-11-07T18:49:17.000Z | #include "csv_convertor.h"
#include <QFile>
#include <QTextStream>
#include <stdio.h>
#include <QtDebug>
#include <QMap>
#include <QVector>
#include <parser/pbf-parser.h>
#include <utils/downloader.cpp>
#include <utils/order_parser.cpp>
#include <utils/geocoder.cpp>
void order_to_address(QFile *out_file, QVector<Ord... | 23.468085 | 84 | 0.682684 | Philippe-Guyard |
a23eaf93a077880de2e4805b344146840ef7d2a7 | 138 | hpp | C++ | src/Components/Tags/InSystem.hpp | ananace/LD45 | 73687658323c81e563ead4e8f36afb89cbf27232 | [
"MIT"
] | null | null | null | src/Components/Tags/InSystem.hpp | ananace/LD45 | 73687658323c81e563ead4e8f36afb89cbf27232 | [
"MIT"
] | null | null | null | src/Components/Tags/InSystem.hpp | ananace/LD45 | 73687658323c81e563ead4e8f36afb89cbf27232 | [
"MIT"
] | 1 | 2020-03-30T05:00:54.000Z | 2020-03-30T05:00:54.000Z | #pragma once
#include <entt/entity/fwd.hpp>
namespace Components
{
namespace Tags
{
struct InSystem
{
entt::entity System;
};
}
}
| 8.117647 | 30 | 0.688406 | ananace |
a24043fd6a565e621b13264f972bda644ea4d77d | 39 | hpp | C++ | vcl_advanced/vcl_advanced.hpp | drohmer/velocity_skinning_c- | 4d4c16b1f2f82b6768eeae50428f637c293f2e77 | [
"MIT"
] | 8 | 2021-04-13T17:17:55.000Z | 2022-01-13T16:14:22.000Z | vcl_advanced/vcl_advanced.hpp | drohmer/velocity_skinning_c- | 4d4c16b1f2f82b6768eeae50428f637c293f2e77 | [
"MIT"
] | null | null | null | vcl_advanced/vcl_advanced.hpp | drohmer/velocity_skinning_c- | 4d4c16b1f2f82b6768eeae50428f637c293f2e77 | [
"MIT"
] | 1 | 2021-04-15T08:25:02.000Z | 2021-04-15T08:25:02.000Z | #pragma once
#include "file/file.hpp"
| 9.75 | 24 | 0.717949 | drohmer |
a246697c94d7c2c2a5954684ebe3df7bcbda967d | 3,093 | cpp | C++ | 0.52/Common/cGrayData.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | 2 | 2020-12-22T17:03:14.000Z | 2021-07-31T23:59:05.000Z | 0.52/Common/cGrayData.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | null | null | null | 0.52/Common/cGrayData.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | 4 | 2021-04-21T19:43:48.000Z | 2021-10-07T00:38:23.000Z | //
// CGrayData.Cpp
//
#ifdef GRAY_SVR
#include "../graysvr/graysvr.h"
#elif defined(GRAY_MAP)
#include "../graymap/graymap.h"
#elif defined(GRAY_CLIENT)
#include "../grayclient/grayclient.h"
#elif defined(GRAY_MAKER)
#include "../graymaker/stdafx.h"
#include "../graymaker/graymaker.h"
#else
#include "graycom.h"
#incl... | 24.547619 | 112 | 0.698998 | Jhobean |
a24bbb695dbc99a7f1cd6bd611c1296e2b750428 | 788 | cpp | C++ | src/cxx20-detection-concepts.cpp | mariokonrad/cppug-sfinae-concepts | aeb633261d15fe5f63bf36c79e30247c8db88cfc | [
"CC-BY-4.0"
] | null | null | null | src/cxx20-detection-concepts.cpp | mariokonrad/cppug-sfinae-concepts | aeb633261d15fe5f63bf36c79e30247c8db88cfc | [
"CC-BY-4.0"
] | null | null | null | src/cxx20-detection-concepts.cpp | mariokonrad/cppug-sfinae-concepts | aeb633261d15fe5f63bf36c79e30247c8db88cfc | [
"CC-BY-4.0"
] | 1 | 2019-05-29T05:08:30.000Z | 2019-05-29T05:08:30.000Z | #include <iostream>
namespace concepts_cxx20
{
template <class T>
concept HasAdd = requires(T t)
{
{ t.add(int(), int()) } -> std::same_as<int>;
};
template <class T>
concept HasSomeType = requires
{
typename T::some_type;
};
template <HasAdd T>
void func(T t, int a, int b)
{ std::cout << __PRETTY_FUNCTION__ << "... | 17.909091 | 68 | 0.615482 | mariokonrad |
a24be9fe1eec35e5fe5ff2f2bb77b5ecaf447dd6 | 3,674 | cpp | C++ | code/glfwwrapper.cpp | schecko/OpenGLBoxes | cb8b0b298003b849d20a3af1f249b2042f477121 | [
"MIT"
] | null | null | null | code/glfwwrapper.cpp | schecko/OpenGLBoxes | cb8b0b298003b849d20a3af1f249b2042f477121 | [
"MIT"
] | null | null | null | code/glfwwrapper.cpp | schecko/OpenGLBoxes | cb8b0b298003b849d20a3af1f249b2042f477121 | [
"MIT"
] | null | null | null |
#include "glfwwrapper.h"
#define GLEW_STATIC
#include <GLEW\glew.h>
#include <GLFW\glfw3.h>
#include <iostream>
#include "debug.h"
#include "eventlistener.h"
GLFWwrapper::GLFWwrapper()
{
Debug::Assert(0, "must pass in event struct to GLFWwrapper");
}
GLFWwrapper::~GLFWwrapper()
{
glfwTerminate();
}
GLFWwr... | 23.401274 | 98 | 0.592542 | schecko |
a24f078d82aad37b9511e7699c836c880dfeeb32 | 647 | hpp | C++ | android-31/java/nio/charset/spi/CharsetProvider.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/nio/charset/spi/CharsetProvider.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/nio/charset/spi/CharsetProvider.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../../JObject.hpp"
class JString;
namespace java::lang
{
class Void;
}
namespace java::nio::charset
{
class Charset;
}
namespace java::nio::charset::spi
{
class CharsetProvider : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit Char... | 19.029412 | 156 | 0.683153 | YJBeetle |
a2514ad1e9318b20bae2850575c4568c94f3c009 | 83 | cpp | C++ | source/dummy-header-includes/text/string_to_.include.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | 3 | 2020-05-24T16:29:42.000Z | 2021-09-10T13:33:15.000Z | source/dummy-header-includes/text/string_to_.include.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | source/dummy-header-includes/text/string_to_.include.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | #include <cppx-core-language/text/string_to_.hpp>
namespace{ int satisfy_linker; }
| 27.666667 | 49 | 0.795181 | alf-p-steinbach |
a257765ff00a2679b61f867d39a254d4733de402 | 1,249 | cpp | C++ | Tree/llb/110. Balanced Binary Tree.cpp | cls1991/leetcode | 0fd165afa2ec339a6f194bc57f8810e66cd2822b | [
"MIT"
] | 180 | 2018-01-25T01:50:04.000Z | 2021-11-09T11:47:45.000Z | Tree/llb/110. Balanced Binary Tree.cpp | cls1991/leetcode | 0fd165afa2ec339a6f194bc57f8810e66cd2822b | [
"MIT"
] | 6 | 2018-01-25T07:51:51.000Z | 2019-10-26T14:10:53.000Z | Tree/llb/110. Balanced Binary Tree.cpp | cls1991/leetcode | 0fd165afa2ec339a6f194bc57f8810e66cd2822b | [
"MIT"
] | 29 | 2018-01-25T01:55:58.000Z | 2019-09-02T07:19:59.000Z | /*
问题描述:
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as:
a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
Example 1:
Given the following tree [3,9,20,null,null,15,7]:
3
/ \
9 20
/ \... | 19.215385 | 99 | 0.569255 | cls1991 |
a259a427d32b2d62754ccde43cce7a439c5514a6 | 785 | hpp | C++ | include/Game/Entities/BombEntity.hpp | thibautcornolti/IndieStudio | 1d0b76b1ca7b4e35b7c9d251fdb3f7ff96debfd7 | [
"MIT"
] | null | null | null | include/Game/Entities/BombEntity.hpp | thibautcornolti/IndieStudio | 1d0b76b1ca7b4e35b7c9d251fdb3f7ff96debfd7 | [
"MIT"
] | null | null | null | include/Game/Entities/BombEntity.hpp | thibautcornolti/IndieStudio | 1d0b76b1ca7b4e35b7c9d251fdb3f7ff96debfd7 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** bomberman
** File description:
** BombEntity.hpp
*/
#ifndef BOMBERMAN_BOMBENTITY_HPP
#define BOMBERMAN_BOMBENTITY_HPP
#include "../AEntity.hpp"
class BombEntity : public AEntity {
public:
BombEntity();
bool hasExploded() const;
void setAutonomous(bool _autonomous... | 18.255814 | 41 | 0.692994 | thibautcornolti |
a264e32e0020d29c54badd62f5a332edfb199a1e | 1,771 | hpp | C++ | unfinished-layers/include/heatmap2coord_layer.hpp | walkoncross/caffe | 16f3179f3cc018ac939e6eacbfac32fc011319e4 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | unfinished-layers/include/heatmap2coord_layer.hpp | walkoncross/caffe | 16f3179f3cc018ac939e6eacbfac32fc011319e4 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | unfinished-layers/include/heatmap2coord_layer.hpp | walkoncross/caffe | 16f3179f3cc018ac939e6eacbfac32fc011319e4 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | // ------------------------------------------------------------------
// Convert heatmap into coordinates(x, y) anc concat along input
// channels.
// Written by ZhouJunr
// ------------------------------------------------------------------
#ifndef CAFFE_HEATMAP2COORD_LAYER_HPP_
#define CAFFE_HEATMAP2COORD_LAYER_HPP_
... | 32.2 | 101 | 0.587804 | walkoncross |
a267a1362d224dfe985433f5efd9468387b7198a | 613 | cpp | C++ | Codeforces Round 324/Dima and Lisa/main.cpp | sqc1999-oi/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | 1 | 2016-07-18T12:05:56.000Z | 2016-07-18T12:05:56.000Z | Codeforces Round 324/Dima and Lisa/main.cpp | sqc1999/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | null | null | null | Codeforces Round 324/Dima and Lisa/main.cpp | sqc1999/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
bool isprime(int x)
{
if (x == 1)
return false;
for (int i = 2; i * i <= x; i++)
if (x % i == 0)
return false;
return true;
}
int main()
{
int m;
cin >> m;
if (isprime(m))
cout << 1 << endl << m << endl;
else if (isprime(m ... | 20.433333 | 66 | 0.435563 | sqc1999-oi |
a27080462841cce6134869c27c68aa0f9250f816 | 596 | cc | C++ | uva/10954.cc | algoriddle/cp | 9596654f921c9da0710e2743b235bd76d938a62c | [
"MIT"
] | null | null | null | uva/10954.cc | algoriddle/cp | 9596654f921c9da0710e2743b235bd76d938a62c | [
"MIT"
] | null | null | null | uva/10954.cc | algoriddle/cp | 9596654f921c9da0710e2743b235bd76d938a62c | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int heap[5000];
int main() {
ios::sync_with_stdio(false);
int n;
while (cin >> n && n) {
for (int i = 0; i < n; i++) {
cin >> heap[i];
}
make_heap(heap, heap + n, greater<int>());
int cost = 0;
while (n > 1) {
int s =... | 19.225806 | 48 | 0.493289 | algoriddle |
a27934f25429eef0360f971c4986d54c9b8903fd | 43,377 | cpp | C++ | tests/DoxybookTests/LoadAndVerify.cpp | siddhartha-crypto/doxybook2 | f85758c64ca6fdaa295232d58c35c81ed2531be8 | [
"MIT"
] | null | null | null | tests/DoxybookTests/LoadAndVerify.cpp | siddhartha-crypto/doxybook2 | f85758c64ca6fdaa295232d58c35c81ed2531be8 | [
"MIT"
] | null | null | null | tests/DoxybookTests/LoadAndVerify.cpp | siddhartha-crypto/doxybook2 | f85758c64ca6fdaa295232d58c35c81ed2531be8 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <Doxybook/Doxygen.hpp>
#include <Doxybook/Exception.hpp>
#include <Doxybook/JsonConverter.hpp>
#include <Doxybook/TextMarkdownPrinter.hpp>
#include <Doxybook/TextPlainPrinter.hpp>
#include <ExceptionUtils.hpp>
#include <catch2/catch.hpp>
#include <fmt/format.h>
#include <nloh... | 68.852381 | 121 | 0.774881 | siddhartha-crypto |
a27b2b840acc967be1cc763160abdbd28c811414 | 305 | hpp | C++ | src/jellyfish/Display.hpp | FelipeEd/Jellyfish3D | 448ca5462fdab2a28677c7f4d05d2e733267da6f | [
"Apache-2.0"
] | null | null | null | src/jellyfish/Display.hpp | FelipeEd/Jellyfish3D | 448ca5462fdab2a28677c7f4d05d2e733267da6f | [
"Apache-2.0"
] | null | null | null | src/jellyfish/Display.hpp | FelipeEd/Jellyfish3D | 448ca5462fdab2a28677c7f4d05d2e733267da6f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
// For now handles opengl init stuff
class Display
{
private:
GLFWwindow *m_window;
void processInput(GLFWwindow *window);
public:
Display();
~Display();
GLFWwindow *getWindow() { return m_window; }
};
| 16.052632 | 48 | 0.681967 | FelipeEd |
a2828ac4d482ee7b38967a90d08c8b7f8f354c7c | 27,773 | cpp | C++ | qikkDB_test/DispatcherGeoTests.cpp | veselyja/qikkdb-community | 680f62632ba85e468beee672624b80a61ed40f55 | [
"Apache-2.0"
] | 15 | 2020-06-30T13:43:42.000Z | 2022-02-02T12:52:33.000Z | qikkDB_test/DispatcherGeoTests.cpp | veselyja/qikkdb-community | 680f62632ba85e468beee672624b80a61ed40f55 | [
"Apache-2.0"
] | 1 | 2020-11-28T22:29:35.000Z | 2020-12-22T10:28:25.000Z | qikkDB_test/DispatcherGeoTests.cpp | qikkDB/qikkdb | 4ee657c7d2bfccd460d2f0d2c84a0bbe72d9a80a | [
"Apache-2.0"
] | 1 | 2020-06-30T12:41:37.000Z | 2020-06-30T12:41:37.000Z | #include "gtest/gtest.h"
#include "../qikkDB/Database.h"
#include "../qikkDB/Table.h"
#include "../qikkDB/QueryEngine/Context.h"
#include "../qikkDB/GpuSqlParser/GpuSqlCustomParser.h"
#include "../qikkDB/messages/QueryResponseMessage.pb.h"
#include "../qikkDB/ColumnBase.h"
#include "../qikkDB/PointFactory.h"
// This t... | 45.830033 | 132 | 0.53444 | veselyja |
a2891cdf4e28aa6700e1a99d2eec15ec39714596 | 4,560 | cc | C++ | src/tokenizer/tokenize_model.cc | hjian42/twpipe | d18e4a507f110a0d006aebc2f46553bd28c81db7 | [
"MIT"
] | 31 | 2018-04-13T14:52:24.000Z | 2021-08-02T07:13:07.000Z | src/tokenizer/tokenize_model.cc | hjian42/twpipe | d18e4a507f110a0d006aebc2f46553bd28c81db7 | [
"MIT"
] | 8 | 2018-07-05T01:58:20.000Z | 2019-08-09T06:07:27.000Z | src/tokenizer/tokenize_model.cc | hjian42/twpipe | d18e4a507f110a0d006aebc2f46553bd28c81db7 | [
"MIT"
] | 6 | 2018-07-04T17:57:29.000Z | 2022-01-15T17:47:50.000Z | #include "tokenize_model.h"
#include "twpipe/alphabet_collection.h"
#include <set>
po::options_description twpipe::AbstractTokenizeModel::get_options() {
po::options_description model_opts("Tokenizer model options");
model_opts.add_options()
("tok-model-name", po::value<std::string>()->default_value("bi-gru"),... | 34.285714 | 119 | 0.616886 | hjian42 |
a2926363fbf1295290d50228f2c04227c264ac7e | 1,532 | cpp | C++ | Leetcode/Daily Challenge/Simplify Path/Solution.cpp | Aritrajeet/DSA_practice | 38cbc1c1c33c687b51a3efc0e8a38cbf3f532944 | [
"MIT"
] | 1 | 2022-02-11T03:56:26.000Z | 2022-02-11T03:56:26.000Z | Leetcode/Daily Challenge/Simplify Path/Solution.cpp | Aritrajeet/DSA_practice | 38cbc1c1c33c687b51a3efc0e8a38cbf3f532944 | [
"MIT"
] | null | null | null | Leetcode/Daily Challenge/Simplify Path/Solution.cpp | Aritrajeet/DSA_practice | 38cbc1c1c33c687b51a3efc0e8a38cbf3f532944 | [
"MIT"
] | 1 | 2022-02-11T18:06:18.000Z | 2022-02-11T18:06:18.000Z | //fails for testcase: /..hidden
class Solution {
public:
string simplifyPath(string path) {
string ans;
stack<string> st;
string temp;
int n = path.length();
for (int i=0; i<n; i++){
if(path[i] == '/' ){
if (i > 1 and temp !=... | 23.9375 | 46 | 0.245431 | Aritrajeet |
a29d70fea92a471be7f03f105a5b6c30e1df6544 | 5,346 | cc | C++ | test/gurka/test_via_waypoints.cc | sidilabs/valhalla | d2914a4527f2aeb7495dfdbacea60fdc0b92c6a0 | [
"MIT"
] | 3 | 2018-05-08T09:06:06.000Z | 2020-03-17T07:11:42.000Z | test/gurka/test_via_waypoints.cc | sidilabs/valhalla | d2914a4527f2aeb7495dfdbacea60fdc0b92c6a0 | [
"MIT"
] | null | null | null | test/gurka/test_via_waypoints.cc | sidilabs/valhalla | d2914a4527f2aeb7495dfdbacea60fdc0b92c6a0 | [
"MIT"
] | null | null | null | #include "gurka.h"
#include <boost/format.hpp>
#include <gtest/gtest.h>
#if !defined(VALHALLA_SOURCE_DIR)
#define VALHALLA_SOURCE_DIR
#endif
using namespace valhalla;
const std::unordered_map<std::string, std::string> build_config{
{"mjolnir.admin", {VALHALLA_SOURCE_DIR "test/data/netherlands_admin.sqlite"}}};
c... | 48.162162 | 357 | 0.59278 | sidilabs |
a2a02539071ce76864a95781e01706b75d44feca | 1,445 | hpp | C++ | runtime/DeviceBase.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | 11 | 2015-06-12T19:54:14.000Z | 2021-11-26T10:45:18.000Z | runtime/DeviceBase.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | runtime/DeviceBase.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | // Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0
#ifndef _CHAI_DEVICE_BASE_HPP_
#define _CHAI_DEVICE_BASE_HPP_
#include <cstddef>
#include <stdint.h>
#include "BaseInterp.hpp"
#include "BaseTrans.hpp"
#include "MemInterp.hpp"
#include "MemTrans.hpp"
#include "OCLdevice.hpp"
#include "O... | 21.893939 | 79 | 0.675433 | cjang |
a2a198a225f466071726c0e0dcd6436eedd41017 | 26,000 | cpp | C++ | LibPhysics/LCPSolver/Wm4LCPPolyDist.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibPhysics/LCPSolver/Wm4LCPPolyDist.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibPhysics/LCPSolver/Wm4LCPPolyDist.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 31.476998 | 78 | 0.522538 | wjezxujian |
947cd9cc637f36bec84d797599dab4bdc2a00d59 | 5,183 | cpp | C++ | tools/code_snippets/plotsignalwidget.cpp | fjpolo/mne-cpp | fe5ce28680dbcfc3cd2e24954e31a5bf0531f28d | [
"BSD-3-Clause"
] | 1 | 2021-05-18T08:33:44.000Z | 2021-05-18T08:33:44.000Z | tools/code_snippets/plotsignalwidget.cpp | yvnxs/mne-cpp | 29c90a86f49c843b5f0ca8f9180cb38e0e774176 | [
"BSD-3-Clause"
] | null | null | null | tools/code_snippets/plotsignalwidget.cpp | yvnxs/mne-cpp | 29c90a86f49c843b5f0ca8f9180cb38e0e774176 | [
"BSD-3-Clause"
] | null | null | null | //=============================================================================================================
/**
* @file plotsignalwidget.cpp
* @author Florian Schlembach <florian.schlembach@tu-ilmenau.de>
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvar... | 33.655844 | 111 | 0.61065 | fjpolo |
947d8a17727162141f49b13e8d15f27fbc5f13e4 | 1,714 | cpp | C++ | ext/stub/javax/imageio/ImageIO_ImageWriterIterator-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/javax/imageio/ImageIO_ImageWriterIterator-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/javax/imageio/ImageIO_ImageWriterIterator-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <javax/imageio/ImageIO_ImageWriterIterator.hpp>
extern void unimplemented_(const char16_t* name);
javax::imageio::ImageIO_ImageWriterIterator::ImageIO_ImageWriterIterator(const ::default_init_tag&)
: super(*s... | 31.740741 | 110 | 0.732205 | pebble2015 |
94863645dc9f95fdead93f335358ed6051d4923b | 8,776 | cpp | C++ | lib/Pitch/CREPE/crepe.cpp | ForeverRainbow/speech-analysis | 1758655b9202c1c17b06049396672bf4eb63f264 | [
"MIT"
] | null | null | null | lib/Pitch/CREPE/crepe.cpp | ForeverRainbow/speech-analysis | 1758655b9202c1c17b06049396672bf4eb63f264 | [
"MIT"
] | null | null | null | lib/Pitch/CREPE/crepe.cpp | ForeverRainbow/speech-analysis | 1758655b9202c1c17b06049396672bf4eb63f264 | [
"MIT"
] | null | null | null | #include "crepe.h"
#include "models.h"
#include <Eigen/Dense>
#include <tensorflow/c/c_api.h>
#include <memory>
#include <iostream>
#include <algorithm>
#include <cstddef>
#include <iterator>
#include <vector>
#include <assert.h>
#include <string.h>
#include <fstream>
#include <stdint.h>
static TF_Buffer *read_tf_buff... | 26.041543 | 124 | 0.632634 | ForeverRainbow |
948898d78d77ee2658a04a7c4109f2c91fdfcd2e | 1,171 | cpp | C++ | basic/7-signal_n_slot/main/mainform.cpp | alwanadi17/qt-basic | a04d2aaedec5163a3b2b1bd27c2815457cbee0b3 | [
"MIT"
] | null | null | null | basic/7-signal_n_slot/main/mainform.cpp | alwanadi17/qt-basic | a04d2aaedec5163a3b2b1bd27c2815457cbee0b3 | [
"MIT"
] | null | null | null | basic/7-signal_n_slot/main/mainform.cpp | alwanadi17/qt-basic | a04d2aaedec5163a3b2b1bd27c2815457cbee0b3 | [
"MIT"
] | null | null | null | #include "mainform.h"
#include "ui_mainform.h"
MainForm::MainForm(QWidget *parent)
: QWidget(parent)
{
this->setupUi();
}
MainForm::~MainForm()
{
delete closeButton;
delete clearButton;
delete labelName;
delete boxName;
delete labelNum;
delete boxNum;
}
void MainForm::setupUi()
{
... | 22.960784 | 50 | 0.646456 | alwanadi17 |
94890b3398804eac4979c52500d661e4704db3aa | 406 | hpp | C++ | include/cjdb/iterator/associated_types.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 4 | 2019-03-02T01:09:07.000Z | 2019-10-16T15:46:21.000Z | include/cjdb/iterator/associated_types.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 5 | 2018-12-16T13:47:32.000Z | 2019-10-13T01:27:11.000Z | include/cjdb/iterator/associated_types.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 3 | 2020-06-08T18:27:28.000Z | 2021-03-27T17:49:46.000Z | // Copyright (c) Christopher Di Bella.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
#ifndef CJDB_ITERATOR_ASSOCIATED_TYPES_HPP
#define CJDB_ITERATOR_ASSOCIATED_TYPES_HPP
#include "cjdb/detail/iterator/iterator_traits.hpp"
#include "cjdb/detail/iterator/incrementable_traits.hpp"
#include "cjdb/detail/i... | 33.833333 | 62 | 0.832512 | cjdb |
948c2ea4f384f9bb6c005752d2d63dd9de580a11 | 7,108 | cpp | C++ | example/4-TriangleExercise.cpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | 1 | 2020-10-26T17:53:33.000Z | 2020-10-26T17:53:33.000Z | example/4-TriangleExercise.cpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | example/4-TriangleExercise.cpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | #include "glad/glad.h"
#include "GLFW/glfw3.h"
#include <iostream>
enum Screen {
width = 1000,
height = 800
};
namespace Shaders {
char const *vertexShaderSource =
"#version 330 core\n"
"layout (location = 0) in vec3 aPos;\n"
"void main()\n"
"{\n"
" gl_Position =... | 27.550388 | 115 | 0.660523 | sltn011 |
948e6d9dbb5e9fa0a82d7b02f77478f54d32a97c | 262 | hpp | C++ | src/exprs/has_order_by_expr.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 3 | 2021-06-24T01:05:42.000Z | 2021-07-23T07:24:16.000Z | src/exprs/has_order_by_expr.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 5 | 2021-06-25T00:13:51.000Z | 2021-07-23T14:26:01.000Z | src/exprs/has_order_by_expr.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | null | null | null | #pragma once
#include "exprs/order_by_expr.hpp"
class HasOrderByExpr {
public:
void set_order_by(OrderByExpr order_by) {
order_by_ = order_by;
}
const OrderByExpr& order_by() const {
return order_by_;
}
protected:
OrderByExpr order_by_;
};
| 14.555556 | 43 | 0.717557 | farleyknight |
9497eaa489552691eb7a52badc92f09782d9a418 | 876 | cpp | C++ | examples/example1.cpp | S-telescope2/URT | 1acf0c11ba96a8dc0ac12823c5571f8256617641 | [
"MIT"
] | 79 | 2017-01-06T21:57:06.000Z | 2022-03-16T16:08:36.000Z | examples/example1.cpp | S-telescope2/URT | 1acf0c11ba96a8dc0ac12823c5571f8256617641 | [
"MIT"
] | 9 | 2016-12-16T09:45:01.000Z | 2022-02-11T06:53:49.000Z | examples/example1.cpp | S-telescope2/URT | 1acf0c11ba96a8dc0ac12823c5571f8256617641 | [
"MIT"
] | 20 | 2017-02-02T12:23:24.000Z | 2022-02-09T17:02:57.000Z | //=================================================================================================
// Copyright (C) 2016 Olivier Mallet - All Rights Reserved
//=================================================================================================
#include "../includ... | 30.206897 | 99 | 0.476027 | S-telescope2 |
94a7f487af0341a50c05272566ad0d80d5dace5d | 14,699 | cpp | C++ | src/ran.cpp | iithnewslab/SBA-gRPC-5G | 6c958f139fe3681afd5741db7a1cb08a0ef4a3ee | [
"Apache-2.0"
] | 15 | 2019-08-07T02:00:54.000Z | 2021-11-03T03:14:42.000Z | src/ran.cpp | iithnewslab/SBA-gRPC-5G | 6c958f139fe3681afd5741db7a1cb08a0ef4a3ee | [
"Apache-2.0"
] | null | null | null | src/ran.cpp | iithnewslab/SBA-gRPC-5G | 6c958f139fe3681afd5741db7a1cb08a0ef4a3ee | [
"Apache-2.0"
] | 9 | 2019-10-14T09:30:21.000Z | 2021-07-16T03:33:39.000Z | #include "../src/ran.h"
string g_ran_ip_addr = "172.18.0.2";
string g_trafmon_ip_addr = "172.18.0.2";
string g_mme_ip_addr = "172.18.0.4";
int g_trafmon_port = 4000;
int g_mme_port = 5000;
RanContext::RanContext() {
emm_state = 0;
ecm_state = 0;
imsi = 0;
guti = 0;
ip_addr = "";
enodeb_s1ap_ue_id = 0;
mme... | 29.280876 | 157 | 0.706987 | iithnewslab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.