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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
854bfc4ee2501d60564b56180c6a1955a417448b | 2,173 | cpp | C++ | historymanager.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 5 | 2018-08-19T05:45:45.000Z | 2020-10-09T09:37:57.000Z | historymanager.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 95 | 2018-04-26T12:13:24.000Z | 2020-05-03T08:23:56.000Z | historymanager.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 1 | 2018-08-19T05:46:02.000Z | 2018-08-19T05:46:02.000Z | #include <QDebug>
#include "historymanager.h"
namespace Farman
{
HistoryManager::HistoryManager(QObject* parent/* = Q_NULLPTR*/)
: QObject(parent)
, m_listMaxSize(DEFAULT_HISTORY_MAX_SIZE)
, m_index(0)
{
}
void HistoryManager::initialize(int maxSize/* = DEFAULT_HISTORY_MAX_SIZE*/)
{
m_listMaxSize =... | 15.195804 | 75 | 0.534284 | haraki |
854dcbea206e0b933c4a34cbca7ff3f0a4f3c3cf | 3,646 | cpp | C++ | solved-topcoder/Solved/DoubleLetter.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2020-07-02T00:08:02.000Z | 2020-07-02T00:08:02.000Z | solved-topcoder/Solved/DoubleLetter.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-topcoder/Solved/DoubleLetter.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | /**
* @author : Maruf Tuhin
* @School : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long l... | 36.828283 | 364 | 0.519748 | Maruf-Tuhin |
854f0cc4c595a28ff97caee277b723ebc4d176c4 | 3,657 | cpp | C++ | Practice/2018/2018.7.24/BZOJ4199.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.7.24/BZOJ4199.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.7.24/BZOJ4199.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=301000;
const int inf=2147483647;
const ll INF=1e18;
int n;
char str[maxN];
int Val[maxN];
int A[maxN],B[maxN],CntA[maxN],C... | 25.22069 | 83 | 0.521466 | SYCstudio |
85521ed291a4ed65470680aae772b5bf59a45290 | 4,302 | cpp | C++ | core/PolyaUrn.cpp | DiscoveryInstitute/haplo | c2b49bc0920aaf68f4364646a30ef2614329b103 | [
"MIT"
] | null | null | null | core/PolyaUrn.cpp | DiscoveryInstitute/haplo | c2b49bc0920aaf68f4364646a30ef2614329b103 | [
"MIT"
] | null | null | null | core/PolyaUrn.cpp | DiscoveryInstitute/haplo | c2b49bc0920aaf68f4364646a30ef2614329b103 | [
"MIT"
] | null | null | null | #include "PolyaUrn.h"
#include <random>
#include <vector>
#include <cstdio>
#include <cstdlib>
/**
* Implements a PolyaUrn with population 'total_options' and randomness parameter 'alpha'.
*
* Previously chosen picks have additional weight proportional to the number of times they were
* previously chosen. Po... | 35.262295 | 102 | 0.628312 | DiscoveryInstitute |
8559608bb8f8b331b417a6c64a390a4770bb5891 | 1,573 | cpp | C++ | aws-cpp-sdk-shield/source/model/ProtectionGroupLimits.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-shield/source/model/ProtectionGroupLimits.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-shield/source/model/ProtectionGroupLimits.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/shield/model/ProtectionGroupLimits.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
... | 20.428571 | 76 | 0.757788 | perfectrecall |
855c425bdb96954d208e247ebb9e02d930da6f62 | 4,713 | cpp | C++ | Board.cpp | Yuval-Moshe/CPP-messageboard-b | 8d9b76eb9b8070ac1806cb115ab6bafdd74845c6 | [
"MIT"
] | null | null | null | Board.cpp | Yuval-Moshe/CPP-messageboard-b | 8d9b76eb9b8070ac1806cb115ab6bafdd74845c6 | [
"MIT"
] | null | null | null | Board.cpp | Yuval-Moshe/CPP-messageboard-b | 8d9b76eb9b8070ac1806cb115ab6bafdd74845c6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "Direction.hpp"
#include "Board.hpp"
using namespace ariel;
namespace ariel
{
void Board::post(unsigned int row, unsigned int column, Direction dir, const string &message)
{
if (dir == Direction::Horizontal)
{
post_horz((const int)ro... | 28.221557 | 97 | 0.431997 | Yuval-Moshe |
855d8b87196cf7d874e7c6ea8ba42fe5c73ebd2b | 2,700 | cpp | C++ | UnitTests/BoundTypeReflectionLibraryLifetimeTests.cpp | jodavis42/SimpleMeta | 1d42ef6b9a1138789c48f988c22eaaec3519f381 | [
"MIT"
] | null | null | null | UnitTests/BoundTypeReflectionLibraryLifetimeTests.cpp | jodavis42/SimpleMeta | 1d42ef6b9a1138789c48f988c22eaaec3519f381 | [
"MIT"
] | 37 | 2020-02-06T16:10:59.000Z | 2020-03-11T00:29:26.000Z | UnitTests/BoundTypeReflectionLibraryLifetimeTests.cpp | jodavis42/SimpleMeta | 1d42ef6b9a1138789c48f988c22eaaec3519f381 | [
"MIT"
] | 1 | 2020-02-13T17:05:25.000Z | 2020-02-13T17:05:25.000Z | #include "AnyTests.hpp"
#include "Bindings.hpp"
#include "MetaSerialization.hpp"
#include "Any.hpp"
#include "UnitTesting.hpp"
#include "TestTypes/Math.hpp"
#include <sstream>
struct SubStruct
{
static void Bind(SimpleReflection::ReflectionLibrary& library, SimpleReflection::BoundType& boundType)
{
BindPrope... | 31.764706 | 128 | 0.741111 | jodavis42 |
856273455c490f9acd206b982e3d0f0791f26a4c | 495 | cc | C++ | src/qarchivememoryextractoroutput.cc | g-fb/QArchive | cec8a9ade68295326b42a785803624c57b02c52c | [
"BSD-3-Clause"
] | 69 | 2017-12-15T07:12:29.000Z | 2022-01-19T17:15:34.000Z | src/qarchivememoryextractoroutput.cc | g-fb/QArchive | cec8a9ade68295326b42a785803624c57b02c52c | [
"BSD-3-Clause"
] | 49 | 2017-12-16T17:12:13.000Z | 2022-03-14T04:35:55.000Z | src/qarchivememoryextractoroutput.cc | g-fb/QArchive | cec8a9ade68295326b42a785803624c57b02c52c | [
"BSD-3-Clause"
] | 24 | 2017-12-15T16:51:15.000Z | 2021-12-15T16:51:41.000Z | #include "qarchivememoryextractoroutput.hpp"
using namespace QArchive;
MemoryExtractorOutput::MemoryExtractorOutput(QObject *parent)
: QObject(parent) { }
MemoryExtractorOutput::MemoryExtractorOutput(QVector<MemoryFile> *files, QObject *parent)
: MemoryExtractorOutput(parent) {
m_Files.reset(files);
}
M... | 24.75 | 89 | 0.765657 | g-fb |
8569194268f68aa44fb20d3e60a44021e5ac056a | 278 | cpp | C++ | efgl/src/material/CheckerMaterial.cpp | deadbird11/renderer-api | ce5d3fbace00ad6fd4bb423b6ff9d82bc63f4be9 | [
"MIT"
] | 2 | 2021-01-22T07:04:40.000Z | 2022-02-23T07:47:11.000Z | efgl/src/material/CheckerMaterial.cpp | deadbird11/renderer-api | ce5d3fbace00ad6fd4bb423b6ff9d82bc63f4be9 | [
"MIT"
] | 1 | 2022-02-05T14:51:36.000Z | 2022-02-05T16:41:00.000Z | efgl/src/material/CheckerMaterial.cpp | deadbird11/renderer-api | ce5d3fbace00ad6fd4bb423b6ff9d82bc63f4be9 | [
"MIT"
] | null | null | null | #include "efpch.h"
#include "CheckerMaterial.h"
namespace efgl
{
void CheckerMaterial::SetShaderUniforms(Shader& shader)
{
shader.SetUniform("numCheckers", NumCheckers);
shader.SetUniform("c1", glm::vec4(C1, 1.0f));
shader.SetUniform("c2", glm::vec4(C2, 1.0f));
}
} | 21.384615 | 57 | 0.701439 | deadbird11 |
856a99898d2caa3652e315330c000b38f502f6c4 | 367 | cpp | C++ | lightoj/1297.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | lightoj/1297.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | lightoj/1297.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int t, co = 0;
double h, w, l;
for(scanf("%d", &t); t--; ){
scanf("%lf%lf", &l, &w);
h = (w + l - sqrt(w * w + l * l - w * l)) / 6;
printf("Case %d: %lf\n", ++co, (w ... | 24.466667 | 66 | 0.452316 | cosmicray001 |
856e3f3aae5f1bd451fb63e6398ac31b206b4f2e | 1,150 | cpp | C++ | soj/4275.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/4275.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/4275.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <deque>
#include <algorithm>
using namespace std;
int n,m,t;
long long ans;
int pr... | 15.753425 | 74 | 0.495652 | huangshenno1 |
856f13f77e24c22efd6b74043e5bdd410def45a1 | 4,397 | cpp | C++ | Alien Engine/Alien Engine/PanelInspector.cpp | PolRecasensSarra/Alien-GameEngine | dac1d9793ddec77186f1f198f395807f010fab96 | [
"MIT"
] | null | null | null | Alien Engine/Alien Engine/PanelInspector.cpp | PolRecasensSarra/Alien-GameEngine | dac1d9793ddec77186f1f198f395807f010fab96 | [
"MIT"
] | null | null | null | Alien Engine/Alien Engine/PanelInspector.cpp | PolRecasensSarra/Alien-GameEngine | dac1d9793ddec77186f1f198f395807f010fab96 | [
"MIT"
] | null | null | null | #include "PanelInspector.h"
#include "ModuleObjects.h"
#include "ModuleRenderer3D.h"
#include "ComponentTransform.h"
#include "ComponentMesh.h"
#include "ComponentMaterial.h"
#include "ComponentLight.h"
#include "ComponentButton.h"
#include "ReturnZ.h"
PanelInspector::PanelInspector(const std::string& panel_name, con... | 25.416185 | 164 | 0.685467 | PolRecasensSarra |
8573d6f185eb86618d5bd0d9e413d2f7640fc095 | 824 | cpp | C++ | ExercitiiLaborator/Lab2/Problema2/Ex2/Ex2/Student.cpp | MetasixRO/oop-2022 | 0d64048ef3a4389e79b566bbe37593455b2e7473 | [
"MIT"
] | null | null | null | ExercitiiLaborator/Lab2/Problema2/Ex2/Ex2/Student.cpp | MetasixRO/oop-2022 | 0d64048ef3a4389e79b566bbe37593455b2e7473 | [
"MIT"
] | null | null | null | ExercitiiLaborator/Lab2/Problema2/Ex2/Ex2/Student.cpp | MetasixRO/oop-2022 | 0d64048ef3a4389e79b566bbe37593455b2e7473 | [
"MIT"
] | null | null | null | #include "Student.h"
#include <cstring>
#define _CRT_SECURE_NO_WARNINGS
void Student::init() {
name[0] = '\n';
math = 0.0;
english = 0.0;
history = 0.0;
}
void Student::set_name(const char* name) {
strcpy(this->name, name);
}
const char* Student::get_name() const {
return name;
}
double S... | 17.531915 | 49 | 0.666262 | MetasixRO |
8575967db4fc10b5b476e9ea5ad27d377582b7c1 | 2,662 | cpp | C++ | prova_p2/Gismar/POO-List/Exerc1.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | prova_p2/Gismar/POO-List/Exerc1.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | prova_p2/Gismar/POO-List/Exerc1.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <string>
using std::cout;
using std::endl;
using std::cin;
using std::string;
using std::getline;
class Pessoa {
private:
string nomePessoa;
int idadePessoa;
string sexoPessoa;
long int cpfPessoa;
long int rgPessoa;
public:
Pessoa();
~... | 20.476923 | 63 | 0.641623 | aceiro |
857ccbce8c2049890cdf5d516a46e9a606f5990b | 1,324 | inl | C++ | Source Code/ECS/Components/Headers/SGNComponent.inl | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 9 | 2018-05-02T19:53:41.000Z | 2021-10-18T18:30:47.000Z | Source Code/ECS/Components/Headers/SGNComponent.inl | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 7 | 2018-02-01T12:16:43.000Z | 2019-10-21T14:03:43.000Z | Source Code/ECS/Components/Headers/SGNComponent.inl | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 1 | 2020-09-08T03:28:22.000Z | 2020-09-08T03:28:22.000Z | /* Copyright (c) 2018 DIVIDE-Studio
Copyright (c) 2009 Ionut Cava
This file is part of DIVIDE Framework.
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 wi... | 33.1 | 80 | 0.774924 | IonutCava |
857d766f1d13aa51267098eb7e89c3661585e509 | 230 | cpp | C++ | util/Log.cpp | jomael/AudioEngine | 48219cee71ad437760d7fe6a6a046c076b5fddd5 | [
"Apache-2.0"
] | null | null | null | util/Log.cpp | jomael/AudioEngine | 48219cee71ad437760d7fe6a6a046c076b5fddd5 | [
"Apache-2.0"
] | null | null | null | util/Log.cpp | jomael/AudioEngine | 48219cee71ad437760d7fe6a6a046c076b5fddd5 | [
"Apache-2.0"
] | null | null | null | #include "Log.hpp"
#include <cstdio>
void log(const char *where, const char *message)
{
fprintf(stderr, "[%s] %s\n", where, message);
}
void log(const char *where, const std::string &message)
{
log(where, message.c_str());
}
| 16.428571 | 55 | 0.665217 | jomael |
8581188b3ae53e2ee49244dee35e8a88a00ef25b | 457 | cpp | C++ | sbg/src/libpdb/Nucleotide.cpp | chaconlab/korpm | 5a73b5ab385150b580b2fd3f1b2ad26fa3d55cf3 | [
"MIT"
] | 1 | 2022-01-02T01:48:05.000Z | 2022-01-02T01:48:05.000Z | sbg/src/libpdb/Nucleotide.cpp | chaconlab/korpm | 5a73b5ab385150b580b2fd3f1b2ad26fa3d55cf3 | [
"MIT"
] | 1 | 2021-11-10T10:50:08.000Z | 2021-11-10T10:50:08.000Z | sbg/src/libpdb/Nucleotide.cpp | chaconlab/korpm | 5a73b5ab385150b580b2fd3f1b2ad26fa3d55cf3 | [
"MIT"
] | 1 | 2021-12-03T03:29:39.000Z | 2021-12-03T03:29:39.000Z | /*
* Nucleotide.cpp
*
* Created on: Feb 5, 2010
* Author: nacho
*/
#include <Nucleotide.h>
Nucleotide::Nucleotide( Tname name, int in_nid, int in_npos, char i_letter ):Fragment( name, in_nid, in_npos, i_letter )
{
};
Nucleotide::Nucleotide( Nucleotide * old ,bool with_elements):Fragment( old ,with_e... | 16.925926 | 120 | 0.682713 | chaconlab |
3fed82a4ff173a4d2e5fe556b397bf232cb48e05 | 3,020 | cpp | C++ | src/GameEntity.cpp | omiroshn/Nibbler | 7e8cf9ce972a22a2dbcfdffd258123e8012075df | [
"MIT"
] | null | null | null | src/GameEntity.cpp | omiroshn/Nibbler | 7e8cf9ce972a22a2dbcfdffd258123e8012075df | [
"MIT"
] | null | null | null | src/GameEntity.cpp | omiroshn/Nibbler | 7e8cf9ce972a22a2dbcfdffd258123e8012075df | [
"MIT"
] | null | null | null | #include "GameEntity.hpp"
//**************************************************************************************************
// GameEntity::GameEntity
//--------------------------------------------------------------------------------------------------
GameEntity::GameEntity(float x, float y)
{
mPos.x = x;
mP... | 31.458333 | 101 | 0.262583 | omiroshn |
3fedab59b580d737cf5d41bb816f5ca06c8de0b7 | 3,809 | cpp | C++ | C++/Matrix2.cpp | Izhido/MiniVideoCard | bcfe5a979d8cdcaf9d5a438798e58eca4fbaa1b0 | [
"MIT"
] | 1 | 2017-05-12T15:21:00.000Z | 2017-05-12T15:21:00.000Z | C++/Matrix2.cpp | Izhido/MiniVideoCard | bcfe5a979d8cdcaf9d5a438798e58eca4fbaa1b0 | [
"MIT"
] | null | null | null | C++/Matrix2.cpp | Izhido/MiniVideoCard | bcfe5a979d8cdcaf9d5a438798e58eca4fbaa1b0 | [
"MIT"
] | null | null | null | //
// Matrix2.cpp
// MiniVideoCard
//
// Created by Heriberto Delgado on 4/24/17.
// Copyright © 2017 Heriberto Delgado. All rights reserved.
//
#include "Matrix2.h"
namespace MiniVideoCard
{
using namespace std;
Matrix2::Matrix2()
{
source = new vector<double>(4);
ownsSource = tr... | 21.642045 | 191 | 0.512733 | Izhido |
3ff719a6739a9ca7d17118d623d15d36a8566a7b | 1,320 | cpp | C++ | tests/OmpSCR_v2.0/common/wtime.cpp | World-Worst-Detector/romp | d45cf33bd233eef4cd475a8dd328d19a3ae27c24 | [
"MIT"
] | 5 | 2018-11-15T16:44:06.000Z | 2022-03-01T05:39:54.000Z | tests/OmpSCR_v2.0/common/wtime.cpp | World-Worst-Detector/romp | d45cf33bd233eef4cd475a8dd328d19a3ae27c24 | [
"MIT"
] | 5 | 2019-03-12T16:03:13.000Z | 2022-01-15T01:23:59.000Z | tests/OmpSCR_v2.0/common/wtime.cpp | World-Worst-Detector/romp | d45cf33bd233eef4cd475a8dd328d19a3ae27c24 | [
"MIT"
] | 6 | 2019-01-03T22:19:14.000Z | 2021-06-23T18:10:49.000Z | /************************************************************************
This library is part of the
OpenMP Source Code Repository
http://www.pcg.ull.es/OmpSCR/
e-mail: ompscr@zion.deioc.ull.es
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... | 31.428571 | 75 | 0.645455 | World-Worst-Detector |
3ffb8107c619b76bf58939d985f6c0b264dd53bb | 504 | cpp | C++ | src/njson.cpp | cpp-openapi/custom_json_example | c68d847e2bd0a2544c5be6c10ac5f0f09ac33c2e | [
"Apache-2.0"
] | null | null | null | src/njson.cpp | cpp-openapi/custom_json_example | c68d847e2bd0a2544c5be6c10ac5f0f09ac33c2e | [
"Apache-2.0"
] | null | null | null | src/njson.cpp | cpp-openapi/custom_json_example | c68d847e2bd0a2544c5be6c10ac5f0f09ac33c2e | [
"Apache-2.0"
] | null | null | null | #include "njson.h"
bool CJson::HasKey(const openapi::string_t &key) const
{
return this->_j.contains(openapi::ToStdString(key)); // TODO: wchar to char
}
// OPENAPI macro requires this
// bool CJson::HasKey(const char* key) const
// {
// return this->_j.contains(key);
// }
void CJson::Parse(const openapi::st... | 22.909091 | 79 | 0.678571 | cpp-openapi |
3ffb9530ecabf2c741d478f16f44f27467ab2686 | 2,289 | cpp | C++ | aplcore/src/touch/utils/autoscroller.cpp | DamianMehers/apl-core-library | 9c003dbfc8bc90709396c07179c523473d380db1 | [
"Apache-2.0"
] | 28 | 2019-11-05T12:23:01.000Z | 2022-03-22T10:01:53.000Z | aplcore/src/touch/utils/autoscroller.cpp | DamianMehers/apl-core-library | 9c003dbfc8bc90709396c07179c523473d380db1 | [
"Apache-2.0"
] | 7 | 2020-03-28T12:44:08.000Z | 2022-01-23T17:02:27.000Z | aplcore/src/touch/utils/autoscroller.cpp | DamianMehers/apl-core-library | 9c003dbfc8bc90709396c07179c523473d380db1 | [
"Apache-2.0"
] | 15 | 2019-12-25T10:15:52.000Z | 2021-12-30T03:50:00.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" ... | 28.6125 | 95 | 0.723897 | DamianMehers |
3ffe1194537ff06fce9d842282c154bcc548065c | 192 | cpp | C++ | msdb/src/compression/zipBlock.cpp | KUDB/MSDB | 19e89d1d9c09c57b242737f0634ac30b4c8ecfd7 | [
"MIT"
] | 2 | 2021-08-31T12:43:16.000Z | 2021-12-13T13:49:19.000Z | msdb/src/compression/zipBlock.cpp | KUDB/MSDB | 19e89d1d9c09c57b242737f0634ac30b4c8ecfd7 | [
"MIT"
] | 3 | 2021-09-09T17:23:31.000Z | 2021-09-09T19:14:50.000Z | msdb/src/compression/zipBlock.cpp | KUDB/MSDB | 19e89d1d9c09c57b242737f0634ac30b4c8ecfd7 | [
"MIT"
] | null | null | null | #include <pch.h>
#include <compression/zipBlock.h>
namespace msdb
{
namespace core
{
zipBlock::zipBlock(pBlockDesc desc)
: memBlock(desc)
{
}
zipBlock::~zipBlock()
{
}
} // core
} // msdb | 11.294118 | 35 | 0.677083 | KUDB |
3ffe245b6fb9c970c1324f6f1b9ee4803446269b | 2,282 | cpp | C++ | Zestaw03/20.cpp | jqakubx/WDI-2019 | 0ce84aa8422c0f074dbfc982baa4c270f6a8a0d4 | [
"MIT"
] | null | null | null | Zestaw03/20.cpp | jqakubx/WDI-2019 | 0ce84aa8422c0f074dbfc982baa4c270f6a8a0d4 | [
"MIT"
] | null | null | null | Zestaw03/20.cpp | jqakubx/WDI-2019 | 0ce84aa8422c0f074dbfc982baa4c270f6a8a0d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <math.h>
#include <cstdlib>
#include <time.h>
#define MAX 10
using namespace std;
bool pierwsza (int n){
if (n==0 or n==1) return false;
else if (n==2) return true;
else if (n%2==0) return false;
for (int i=3; i*i<=n; i+=2){
if (n%i==0) return fal... | 22.372549 | 70 | 0.533304 | jqakubx |
b20291358aaad6f2529f2858cc6ea1f2c1343b3c | 1,043 | cpp | C++ | dylib_make/dylib_make.cpp | SJ-magic-youtube-VisualProgrammer/49__dylib_make_use | 9850d1a69b9aaf9d7d7981b428416ff8664c58d0 | [
"MIT"
] | null | null | null | dylib_make/dylib_make.cpp | SJ-magic-youtube-VisualProgrammer/49__dylib_make_use | 9850d1a69b9aaf9d7d7981b428416ff8664c58d0 | [
"MIT"
] | null | null | null | dylib_make/dylib_make.cpp | SJ-magic-youtube-VisualProgrammer/49__dylib_make_use | 9850d1a69b9aaf9d7d7981b428416ff8664c58d0 | [
"MIT"
] | null | null | null | #include <iostream>
#include "dylib_make.h"
dylib_make::dylib_make(){
std::cout << "dylib_make::dylib_make was called" << std::endl;
}
dylib_make::~dylib_make(){
std::cout << "dylib_make::~dylib_make was called" << std::endl;
}
void dylib_make::sj_execute(){
std::cout << "dylib_make::sj_execute was calle... | 21.285714 | 90 | 0.663471 | SJ-magic-youtube-VisualProgrammer |
b205be6d366978907a731db32f08f6cb2a34d2f9 | 622 | cpp | C++ | src/Text/StringUtils/Base2.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | src/Text/StringUtils/Base2.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | src/Text/StringUtils/Base2.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #include "RadonFramework/precompiled.hpp"
#include "RadonFramework/Text/StringUtils/Base2.hpp"
#include "RadonFramework/backend/stringcoders/modp_b2.h"
namespace RadonFramework::Text::StringUtils {
RF_Type::String Base2Converter::Encode(const RF_Type::String &Source)
{
std::string str(Source.c_str());
modp::b... | 27.043478 | 69 | 0.721865 | tak2004 |
b208d929cd28e0daef64ba1267e4b55d329e5302 | 521 | hpp | C++ | Code/Engine/Core/Async/Semaphores.hpp | pronaypeddiraju/Engine | 0ca9720a00f51340c6eb6bba07d70972489663e8 | [
"Unlicense"
] | 1 | 2021-01-25T23:53:44.000Z | 2021-01-25T23:53:44.000Z | Code/Engine/Core/Async/Semaphores.hpp | pronaypeddiraju/Engine | 0ca9720a00f51340c6eb6bba07d70972489663e8 | [
"Unlicense"
] | null | null | null | Code/Engine/Core/Async/Semaphores.hpp | pronaypeddiraju/Engine | 0ca9720a00f51340c6eb6bba07d70972489663e8 | [
"Unlicense"
] | 1 | 2021-01-25T23:53:46.000Z | 2021-01-25T23:53:46.000Z | #pragma once
typedef void* HANDLE;
typedef unsigned int uint;
class Semaphore
{
HANDLE m_semaphore;
public:
Semaphore();
explicit Semaphore(uint initialCount, uint maxCount);
~Semaphore();
void Create(uint initialCount, uint maxCount);
void Destroy();
void Acquire();
bool TryAcquire();
void Release(u... | 20.038462 | 54 | 0.683301 | pronaypeddiraju |
b211c11d421d46cd162214756f7079108d3c6ba5 | 783 | cpp | C++ | Lib/Target/instr/ALUInstruction.cpp | Freddan-67/V3DLib | dcefc24a9a399ee1f5d1aa5529f44d9fd2486929 | [
"MIT"
] | 44 | 2021-01-16T14:17:15.000Z | 2022-03-11T19:53:59.000Z | Lib/Target/instr/ALUInstruction.cpp | RcCreeperTech/V3DLib | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | [
"MIT"
] | 8 | 2021-01-16T17:52:02.000Z | 2021-12-18T22:38:00.000Z | Lib/Target/instr/ALUInstruction.cpp | RcCreeperTech/V3DLib | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | [
"MIT"
] | 7 | 2021-01-16T14:25:47.000Z | 2022-02-03T16:34:45.000Z | #include "ALUInstruction.h"
#include "Support/debug.h"
namespace V3DLib {
bool ALUInstruction::noOperands() const {
if (!srcA.is_reg() || !srcB.is_reg()) return false;
if (srcA.reg().tag != NONE || srcB.reg().tag != NONE) return false;
// Pedantry: these should be the only operations with no operands
assert(... | 29 | 101 | 0.657727 | Freddan-67 |
b212bb564ebe9caaa0a02ecf0a82acd7845e0610 | 326 | cpp | C++ | docs/cppcx/codesnippet/CPP/how-to-instantiate-wrl-components-directly_4.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/cppcx/codesnippet/CPP/how-to-instantiate-wrl-components-directly_4.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/cppcx/codesnippet/CPP/how-to-instantiate-wrl-components-directly_4.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | int wmain()
{
ComPtr<CConsoleWriter> writer;
HRESULT hr = MakeAndInitialize<CConsoleWriter>(&writer, L"INFO");
if (FAILED(hr))
{
wprintf_s(L"Object creation failed. Result = 0x%x", hr);
return hr;
}
hr = writer->Log(L"Logger ready.");
return hr;
}
/* Output:
INFO: Logger rea... | 20.375 | 69 | 0.601227 | bobbrow |
b217903c5c78a33781e1cc82d06c7676a80f11b0 | 29,885 | hh | C++ | EnergyPlus/DataRuntimeLanguage.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | EnergyPlus/DataRuntimeLanguage.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T13:32:09.000Z | 2020-07-08T13:32:09.000Z | EnergyPlus/DataRuntimeLanguage.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | // EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... | 56.069418 | 140 | 0.660532 | yurigabrich |
b21aaaed50fde58ed82ca0795ee8a715081c56d8 | 1,043 | cpp | C++ | src/utils/yutils.cpp | ayaromenok/ProjectSync | a699f97080a84da4d9fb539885848d41ed1de4e8 | [
"MIT"
] | null | null | null | src/utils/yutils.cpp | ayaromenok/ProjectSync | a699f97080a84da4d9fb539885848d41ed1de4e8 | [
"MIT"
] | 2 | 2019-11-10T10:14:38.000Z | 2019-11-25T12:33:54.000Z | src/utils/yutils.cpp | ayaromenok/ProjectSync | a699f97080a84da4d9fb539885848d41ed1de4e8 | [
"MIT"
] | null | null | null | //Copyrigth (C) 2019 Andrey Yaromenok
#include <QtCore>
#include "yutils.h"
YUtils::YUtils(QObject *parent) : QObject(parent)
{
}
qint64
YUtils::timeStrToInt64(QString str)
{
quint64 result = 0;
QStringRef strDate, strTime;
strDate = str.midRef(0,10);
strTime = str.midRef(11,12);
if(str.length()... | 26.74359 | 98 | 0.631831 | ayaromenok |
b21f2230c63803c4c897f25d36054bd08e258c38 | 1,174 | cpp | C++ | Top_BottomView_BT.cpp | subh-23/Advance-Dsa | 754e585679c4f63e9a711f1f628c8b8c50a0a36b | [
"MIT"
] | null | null | null | Top_BottomView_BT.cpp | subh-23/Advance-Dsa | 754e585679c4f63e9a711f1f628c8b8c50a0a36b | [
"MIT"
] | null | null | null | Top_BottomView_BT.cpp | subh-23/Advance-Dsa | 754e585679c4f63e9a711f1f628c8b8c50a0a36b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
struct Treenode
{
ll data;
Treenode *left;
Treenode *right;
Treenode(ll val)
{
data = val;
left = NULL;
right = NULL;
}
};
void Bottomview(Treenode* root, ll steps, map<ll,ll> &m){
if(root==NULL)... | 19.245902 | 79 | 0.569847 | subh-23 |
b222895e8471e30aaa370cbbd163f8a15ca71a26 | 1,428 | cpp | C++ | tests/testroms.cpp | Chaosteil/geebee | 258c1c886672c8a4454c159c94e1068021dbf6b7 | [
"MIT"
] | 5 | 2019-04-16T16:52:13.000Z | 2020-05-09T23:06:39.000Z | tests/testroms.cpp | Chaosteil/geebee | 258c1c886672c8a4454c159c94e1068021dbf6b7 | [
"MIT"
] | null | null | null | tests/testroms.cpp | Chaosteil/geebee | 258c1c886672c8a4454c159c94e1068021dbf6b7 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include <iostream>
#include <string>
#include "CPU.h"
#include "Program.h"
#include "Window.h"
using namespace gb;
using namespace std;
TEST_CASE("Emulator passes the test roms", "[testroms]") {
Window window;
auto run_until_done = [](CPU& cpu) {
const string& data = cpu.memory().seri... | 23.8 | 73 | 0.619048 | Chaosteil |
b223c91873d1d8ad99a16fb579941077f3a6d8df | 3,918 | cpp | C++ | examples/Switch.System.Windows.Forms/StopwatchForm/StopwatchForm.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | examples/Switch.System.Windows.Forms/StopwatchForm/StopwatchForm.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | examples/Switch.System.Windows.Forms/StopwatchForm/StopwatchForm.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/Switch>
using namespace System;
using namespace System::Diagnostics;
using namespace System::Drawing;
using namespace System::Windows::Forms;
namespace Examples {
class Form1 : public Form {
public:
// The main entry point for the application.
static void Main() {
Application::Enabl... | 34.982143 | 123 | 0.645738 | victor-timoshin |
b225c9922e3c4c3239b3c901e35ce2872ff27a96 | 517 | cpp | C++ | OJ/XiaoHongShu/interview3.cpp | wang12d/ProgrammingPractices | c7a150eb1aeb0e30a30bc77a25aba940b99ce773 | [
"MIT"
] | null | null | null | OJ/XiaoHongShu/interview3.cpp | wang12d/ProgrammingPractices | c7a150eb1aeb0e30a30bc77a25aba940b99ce773 | [
"MIT"
] | null | null | null | OJ/XiaoHongShu/interview3.cpp | wang12d/ProgrammingPractices | c7a150eb1aeb0e30a30bc77a25aba940b99ce773 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using std::vector;
using std::cin;
using std::endl;
using std::cout;
int
dfs(int a, int b, int loc, int i, vector<int>& sentence)
{
int d{0};
if (loc == 1) {
d += std::max(d, dfs(sentence[i], b, loc+1, i+1, sentence));
} else if (loc == 2) {
d += std::... | 19.148148 | 99 | 0.50677 | wang12d |
b22fbdc0efa94cdfb6557028ef6d211951162bf2 | 11,783 | cpp | C++ | CKGroup.cpp | AdrienTD/XXL-Editor | 45452a3b0f832b463c01eebe0dac6ade642762f7 | [
"MIT"
] | 4 | 2021-10-24T02:39:55.000Z | 2022-03-18T08:09:55.000Z | CKGroup.cpp | AdrienTD/XXL-Editor | 45452a3b0f832b463c01eebe0dac6ade642762f7 | [
"MIT"
] | 2 | 2021-10-17T21:35:16.000Z | 2022-03-24T16:26:27.000Z | CKGroup.cpp | AdrienTD/XXL-Editor | 45452a3b0f832b463c01eebe0dac6ade642762f7 | [
"MIT"
] | 2 | 2020-11-08T21:49:15.000Z | 2022-03-21T22:36:16.000Z | #include "CKGroup.h"
#include "File.h"
#include "KEnvironment.h"
#include "CKHook.h"
#include "CKNode.h"
#include "CKLogic.h"
#include "CKComponent.h"
void CKGroup::deserialize(KEnvironment * kenv, File * file, size_t length)
{
if (kenv->version < kenv->KVERSION_XXL2) {
nextGroup = kenv->readObjRef<CKGroup>(file);
... | 30.926509 | 84 | 0.70432 | AdrienTD |
b23288b516469570040efc8b518804fe7e2b75d1 | 806 | cpp | C++ | src/Frame/Buffer/NuiFrameCache.cpp | hustztz/NatureUserInterfaceStudio | 3cdac6b6ee850c5c8470fa5f1554c7447be0d8af | [
"MIT"
] | 3 | 2016-07-14T13:04:35.000Z | 2017-04-01T09:58:27.000Z | src/Frame/Buffer/NuiFrameCache.cpp | hustztz/NatureUserInterfaceStudio | 3cdac6b6ee850c5c8470fa5f1554c7447be0d8af | [
"MIT"
] | null | null | null | src/Frame/Buffer/NuiFrameCache.cpp | hustztz/NatureUserInterfaceStudio | 3cdac6b6ee850c5c8470fa5f1554c7447be0d8af | [
"MIT"
] | 1 | 2021-11-21T15:33:35.000Z | 2021-11-21T15:33:35.000Z | #include "NuiFrameCache.h"
NuiFrameCache::NuiFrameCache ()
: NuiFrameCacheImpl()
{
m_aFramePtrs.SetCapacity(DEVICE_CACHE_SIZE);
}
NuiFrameCache::~NuiFrameCache ()
{
clear();
}
void NuiFrameCache::clear()
{
m_aFramePtrs.Clear();
}
bool NuiFrameCache::pushbackFrame(std::shared_ptr<NuiCompositeFr... | 17.911111 | 77 | 0.694789 | hustztz |
b237fce917f535ffff58c4000e27ec630e2080e0 | 200 | cpp | C++ | 2021.10.03 - Homework3/Task02/2.cpp | Navarnova/Homework | 5de0f1fc31d6dbe33023badaede6e0d29cf4a250 | [
"Apache-2.0"
] | null | null | null | 2021.10.03 - Homework3/Task02/2.cpp | Navarnova/Homework | 5de0f1fc31d6dbe33023badaede6e0d29cf4a250 | [
"Apache-2.0"
] | null | null | null | 2021.10.03 - Homework3/Task02/2.cpp | Navarnova/Homework | 5de0f1fc31d6dbe33023badaede6e0d29cf4a250 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
int n = 0;
int s = 1;
cin >> n;
while (n != 0)
{
s *= 2;
n -= 1;
}
cout << s << endl;
return EXIT_SUCCESS;
} | 10.526316 | 32 | 0.53 | Navarnova |
b239c4fec64cf1f2612dfeb27536385e4e8c6cbe | 459 | cpp | C++ | src/main.cpp | roymacdonald/ReCoded | 3bcb3d579cdd17381e54a508a1e4ef9e3d5bc4f1 | [
"MIT"
] | null | null | null | src/main.cpp | roymacdonald/ReCoded | 3bcb3d579cdd17381e54a508a1e4ef9e3d5bc4f1 | [
"MIT"
] | null | null | null | src/main.cpp | roymacdonald/ReCoded | 3bcb3d579cdd17381e54a508a1e4ef9e3d5bc4f1 | [
"MIT"
] | null | null | null | #include "ofMain.h"
#include "ofApp.h"
#include "ofxWatchdog.h"
//========================================================================
int main( ){
ofxWatchdog::boot(3000, true, true, true);
ofGLFWWindowSettings settings;
settings.setSize(1920, 1080);
#ifdef DRAW_TWO_SCREENS
settings.multiMonitorFullScr... | 18.36 | 74 | 0.607843 | roymacdonald |
b247f279d49aa259e70fff177b866897d9d3cb23 | 2,987 | cpp | C++ | src/optimizer/memo.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 1 | 2017-04-17T15:19:36.000Z | 2017-04-17T15:19:36.000Z | src/optimizer/memo.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 5 | 2017-04-23T17:16:14.000Z | 2017-04-25T03:14:16.000Z | src/optimizer/memo.cpp | phisiart/peloton-p3 | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// memo.cpp
//
// Identification: src/optimizer/memo.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------------------------------------... | 32.467391 | 80 | 0.608303 | phisiart |
b24c50da53a8345bac203e17829d8da544cd0edc | 3,394 | cpp | C++ | frontend/REPL.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | 8 | 2015-01-02T21:40:55.000Z | 2016-05-12T10:48:09.000Z | frontend/REPL.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | frontend/REPL.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | #include "REPL.h"
#include <iostream>
#include <termios.h>
#include <stdio.h>
namespace Three {
int REPL::start() {
REPL repl;
REPL::prepareTerminal();
return repl.loop();
}
void REPL::prepareTerminal() {
struct termios tty;
tcgetattr(fileno(stdin), &tty);
... | 23.734266 | 93 | 0.514732 | mattmassicotte |
b256e6ea0fc3c4f9668f215da6cb017e2587ab79 | 796 | cpp | C++ | Graphs2/kruskal.cpp | mhimanshu712/CppPad | 7b3fdbd32573da11b4544d2c2bb8b1adbc145b76 | [
"MIT"
] | 3 | 2020-07-05T06:43:59.000Z | 2020-10-25T06:51:11.000Z | Graphs2/kruskal.cpp | mhimanshu712/CppPad | 7b3fdbd32573da11b4544d2c2bb8b1adbc145b76 | [
"MIT"
] | null | null | null | Graphs2/kruskal.cpp | mhimanshu712/CppPad | 7b3fdbd32573da11b4544d2c2bb8b1adbc145b76 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct node{
int x,y,w;
};
bool cmp(node a,node b){
return a.w < b.w;
}
int getParent(int a,int* parent){
while(parent[a] != a) a = parent[a];
return a;
}
int main(){
int n,e;
cin>>n>>e;
node* edges = new node[e];
for(int i=0;i<e;i++){
cin>>edges[i].x>>e... | 16.93617 | 56 | 0.56407 | mhimanshu712 |
b26482764b8c234a500a00f3c6e64a91e7ece128 | 3,393 | cpp | C++ | Source/Samples/99_Benchmark/Main.cpp | JTippetts/Urho3D | ed57c445e14932d255c8103b590b523264918a40 | [
"MIT"
] | null | null | null | Source/Samples/99_Benchmark/Main.cpp | JTippetts/Urho3D | ed57c445e14932d255c8103b590b523264918a40 | [
"MIT"
] | null | null | null | Source/Samples/99_Benchmark/Main.cpp | JTippetts/Urho3D | ed57c445e14932d255c8103b590b523264918a40 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2008-2022 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... | 37.285714 | 129 | 0.717359 | JTippetts |
b266db615f9d11680e8076eb0fae23029537d4b3 | 2,781 | cpp | C++ | plugins/glib/src/application/glib.cpp | hho2002/kinoko | bdcacbb96a93ce13bf3840786c6b4b938bd8023e | [
"MIT"
] | null | null | null | plugins/glib/src/application/glib.cpp | hho2002/kinoko | bdcacbb96a93ce13bf3840786c6b4b938bd8023e | [
"MIT"
] | null | null | null | plugins/glib/src/application/glib.cpp | hho2002/kinoko | bdcacbb96a93ce13bf3840786c6b4b938bd8023e | [
"MIT"
] | null | null | null | //
// Created by gen on 8/25/20.
//
#include "glib.h"
#include <core/Ref.h>
#include <core/Callback.h>
#include <core/Array.h>
#include <core/Map.h>
#include "utils/database/DBMaker.h"
#include "utils/database/SQLite.h"
#include "utils/Bit64.h"
#include "main/DataItem.h"
#include "models/KeyValue.h"
#include "models/C... | 31.602273 | 128 | 0.674218 | hho2002 |
b2672b27e2df78e0e072b4138a249ecc606f54cb | 706 | cpp | C++ | PDP/pdp_28/pdp_28_A.cpp | luserx0/UVA_solved | 9d74388477c2f20542f648dff594d4eafc4a4108 | [
"MIT"
] | null | null | null | PDP/pdp_28/pdp_28_A.cpp | luserx0/UVA_solved | 9d74388477c2f20542f648dff594d4eafc4a4108 | [
"MIT"
] | null | null | null | PDP/pdp_28/pdp_28_A.cpp | luserx0/UVA_solved | 9d74388477c2f20542f648dff594d4eafc4a4108 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
using namespace std;
#define MAX 1000005
int main(){
freopen("aris.in","r",stdin);
freopen("aris.out","w",stdout);
long N, M, K;
scanf("%d %d", &N, &M);
long teams[MAX] = {0};
for (long i = 0; i < N; ++i){
scanf("%d", &K);
... | 16.045455 | 44 | 0.405099 | luserx0 |
b26789ed6f5d78475e11162fa2211e03d4310a13 | 317 | cpp | C++ | Game/src/Application_Script.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | Game/src/Application_Script.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null | Game/src/Application_Script.cpp | realn/exptor3D | 85bafa0a4c59eb15102756046805e4f9b23245c2 | [
"MIT"
] | null | null | null |
#include <StrEx.h>
#include "Application.h"
namespace e3dt {
void Application::RegScript() {
scriptParser->addFunc(L"loadLevel", [this](const core::StrArgList& args) { LoadLevel(args.getArgUtf8(0)); });
scriptParser->addFunc(L"print", [this](const core::StrArgList& args) { Print(args.getArgUtf8(0)); });
}
} | 28.818182 | 111 | 0.697161 | realn |
05cd568e35d641d450f72b68db7d1da4915560f0 | 252 | cpp | C++ | platforms/arduinolib/implementations/IWebsocketFactory.cpp | yorenschriever/MultiNode | 5960da25ba69797130f3c30c81dcabb09f67ebbd | [
"MIT"
] | null | null | null | platforms/arduinolib/implementations/IWebsocketFactory.cpp | yorenschriever/MultiNode | 5960da25ba69797130f3c30c81dcabb09f67ebbd | [
"MIT"
] | null | null | null | platforms/arduinolib/implementations/IWebsocketFactory.cpp | yorenschriever/MultiNode | 5960da25ba69797130f3c30c81dcabb09f67ebbd | [
"MIT"
] | 1 | 2018-02-08T11:04:19.000Z | 2018-02-08T11:04:19.000Z | #include "../../../src/networking/IWebsocketFactory.h"
#include "../../../src/networking/IWebsocket.h"
#include "WebsocketESP.h"
#include <stdint.h>
IWebsocket* IWebsocketFactory::GetInstance(uint16_t port)
{
return new WebsocketESP(port, "/");
} | 25.2 | 57 | 0.706349 | yorenschriever |
05cf21a1268e753161e6fb629efe891b0b90e76b | 592 | cpp | C++ | UVa-10976-FractionsAgain.cpp | antisocialamp/lowerBound | 6b0678954075dd07b247d057b62c2e55669c8cf1 | [
"MIT"
] | 1 | 2020-08-07T07:25:23.000Z | 2020-08-07T07:25:23.000Z | UVa-10976-FractionsAgain.cpp | chatziiola/lowerBound | 6b0678954075dd07b247d057b62c2e55669c8cf1 | [
"MIT"
] | null | null | null | UVa-10976-FractionsAgain.cpp | chatziiola/lowerBound | 6b0678954075dd07b247d057b62c2e55669c8cf1 | [
"MIT"
] | null | null | null | // Problem: U-Va 10976 - Fractions Again?!
#include <cstdio>
#include <bitset>
using std :: bitset;
int main ()
{
// Bitset will be used to save time in the second loop
bitset < 10001 > isTrue;
int n,
count;
while ( scanf("%d", &n) == 1 )
{
//reseting the variables:
count = 0;
isTrue.reset();
... | 16.444444 | 62 | 0.472973 | antisocialamp |
05ded657c5df4b75ef8830f2355899e179a720e4 | 3,622 | cpp | C++ | src/Utils/AssertUtils.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/Utils/AssertUtils.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/Utils/AssertUtils.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2007, Laminar Research.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, ... | 27.861538 | 86 | 0.726118 | rromanchuk |
05e925372981d04aa83ba2470bc145a0c35634af | 3,081 | cpp | C++ | src/TpMMPD/TiePByMesh/ZBufferRaster/ZBufferRaster.cpp | peppsac/micmac | 6c7810716d45a200495bfffa3da42aa1a23258fa | [
"CECILL-B"
] | 1 | 2021-05-19T20:04:00.000Z | 2021-05-19T20:04:00.000Z | src/TpMMPD/TiePByMesh/ZBufferRaster/ZBufferRaster.cpp | peppsac/micmac | 6c7810716d45a200495bfffa3da42aa1a23258fa | [
"CECILL-B"
] | null | null | null | src/TpMMPD/TiePByMesh/ZBufferRaster/ZBufferRaster.cpp | peppsac/micmac | 6c7810716d45a200495bfffa3da42aa1a23258fa | [
"CECILL-B"
] | 1 | 2021-04-20T10:29:33.000Z | 2021-04-20T10:29:33.000Z | #include "ZBufferRaster.h"
string aPatFIm, aMesh, aOri;
int nInt = 0;
Pt2di aSzW;
int rech=1;
double distMax = DBL_MAX;
bool withLbl = true;
bool aNoTif = false;
int ZBufferRaster_main(int argc,char ** argv)
{
ElInitArgMain
(
argc,argv,
//mandatory arguments
... | 30.81 | 111 | 0.52418 | peppsac |
05ed6d108bdce1cac0d10100c8b194e089f23d2c | 4,027 | cpp | C++ | src/Audio/Music.cpp | ToniLipponen/TML | 4bbbdcaad1acc846d383be272c4cbbc8cdb8f7ac | [
"Zlib"
] | 5 | 2021-11-04T22:43:55.000Z | 2022-03-10T01:50:34.000Z | src/Audio/Music.cpp | ToniLipponen/TML | 4bbbdcaad1acc846d383be272c4cbbc8cdb8f7ac | [
"Zlib"
] | null | null | null | src/Audio/Music.cpp | ToniLipponen/TML | 4bbbdcaad1acc846d383be272c4cbbc8cdb8f7ac | [
"Zlib"
] | null | null | null | #include <TML/Audio/Music.h>
#include <TML/Audio/Mixer.h>
#include <miniaudio/miniaudio.h>
#include <cmath>
#include "TML/System/Math.h"
namespace tml
{
Music::Music(const String &filename)
{
LoadFromFile(filename);
}
Music::Music(const char* data, uint32_t bytes)
{
LoadFromData(da... | 29.394161 | 120 | 0.600944 | ToniLipponen |
05eeedf30202347124f224b6f03ee1e5099b7d7a | 2,746 | cpp | C++ | Slimfish/Banana Fighter/IsoRenderer.cpp | ThatBeanBag/Slimfish | 7b0f821bccf2cae7d67f8a822f078def7a2d354d | [
"Apache-2.0"
] | null | null | null | Slimfish/Banana Fighter/IsoRenderer.cpp | ThatBeanBag/Slimfish | 7b0f821bccf2cae7d67f8a822f078def7a2d354d | [
"Apache-2.0"
] | null | null | null | Slimfish/Banana Fighter/IsoRenderer.cpp | ThatBeanBag/Slimfish | 7b0f821bccf2cae7d67f8a822f078def7a2d354d | [
"Apache-2.0"
] | null | null | null | //
// Bachelor of Software Engineering
// Media Design School
// Auckland
// New Zealand
//
// (c) 2005 - 2015 Media Design School
//
// File Name : 2DDrawer.cpp
// Description : C2DDrawer implementation file.
// Author : Hayden Asplet.
// Mail : hayden.asplet@mediadesignschool.com
//
// PCH
#include "BananaFighte... | 23.672414 | 115 | 0.699927 | ThatBeanBag |
05f256384e691558fdf39e58ed570689bcf52641 | 3,529 | cpp | C++ | src/ast/nodes.cpp | arrow-lang/arrow-legacy | 5857697b88201c9a6abdd63c1b132741f3451b01 | [
"MIT"
] | 1 | 2017-05-02T14:13:51.000Z | 2017-05-02T14:13:51.000Z | src/ast/nodes.cpp | arrow-lang/arrow-legacy | 5857697b88201c9a6abdd63c1b132741f3451b01 | [
"MIT"
] | null | null | null | src/ast/nodes.cpp | arrow-lang/arrow-legacy | 5857697b88201c9a6abdd63c1b132741f3451b01 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2015 Ryan Leckey, All Rights Reserved.
// Distributed under the MIT License
// See accompanying file LICENSE
#include <stddef.h>
#include <stdlib.h>
#include <gmp.h>
#include <cxxabi.h>
#include "arrow/ast.hpp"
#define IMPL(N) \
N::~N() noexcept { }
#define IMPL_ACCEPT(N, T) \
IMPL(N) \
... | 23.526667 | 108 | 0.756022 | arrow-lang |
05f47507c84eabf75db4d1614d5151d7efb9689b | 11,453 | cpp | C++ | tests/unittests/readme_tests/readme.cpp | BetaJester/binaryizer | 75659b8d1ae1b80c4e21c9fe8ee57cfa4e39542d | [
"MIT"
] | null | null | null | tests/unittests/readme_tests/readme.cpp | BetaJester/binaryizer | 75659b8d1ae1b80c4e21c9fe8ee57cfa4e39542d | [
"MIT"
] | null | null | null | tests/unittests/readme_tests/readme.cpp | BetaJester/binaryizer | 75659b8d1ae1b80c4e21c9fe8ee57cfa4e39542d | [
"MIT"
] | null | null | null | // Copyright (C) 2021 Glenn Duncan <betajester@betajester.com>
// See README.md, LICENSE, or go to https://github.com/BetaJester/binaryizer
// for details.
// Prove that *all* code in README is correct.
#include <sstream>
#include <catch2/catch.hpp>
#include <bj/binaryizer/midiint.hpp>
#include <bj/binaryize... | 26.389401 | 100 | 0.545097 | BetaJester |
05f984f37c5352dbf5526184135f1a4a3ef4650d | 2,016 | cpp | C++ | csapex_vision/src/filter/normalize.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_vision/src/filter/normalize.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_vision/src/filter/normalize.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | /// HEADER
#include "normalize.h"
/// PROJECT
#include <csapex/model/node_modifier.h>
#include <csapex/msg/io.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex_opencv/cv_mat_message.h>
/// SYSTEM
#include <opencv2/imgproc/imgproc.hpp>
using namespace csa... | 34.758621 | 164 | 0.710317 | AdrianZw |
05fa4d72be264fffeb92fbe2f931cb6660e2841a | 1,250 | cpp | C++ | src/Logger.cpp | Dublerq/dyalog-usage-example-client | 02eec57c9c745a988adfda5497432b9f35f65bed | [
"MIT"
] | null | null | null | src/Logger.cpp | Dublerq/dyalog-usage-example-client | 02eec57c9c745a988adfda5497432b9f35f65bed | [
"MIT"
] | null | null | null | src/Logger.cpp | Dublerq/dyalog-usage-example-client | 02eec57c9c745a988adfda5497432b9f35f65bed | [
"MIT"
] | null | null | null | #include "Logger.h"
#include "../lib/dyalog/Service/LogWriters/AsyncSimpleLogWriter.h"
#include "../lib/dyalog/Service/LogWriters/SimpleLogWriter.h"
#include "../lib/dyalog/Service/LogSenders/SimpleTCPLogSender.h"
#include "../lib/dyalog/Service/ConsoleLogger.h"
Logger::Logger() {
this->dyalog = std::unique_ptr<Dy... | 39.0625 | 104 | 0.7392 | Dublerq |
05fd6718a9dfa5cb862a5f822ccd5f8837608671 | 10,561 | cc | C++ | shell/platform/embedder/embedder.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | shell/platform/embedder/embedder.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | shell/platform/embedder/embedder.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define FLUTTER_EXPORT __attribute__((visibility("default")))
#include "flutter/shell/platform/embedder/embedder.h"
#include <type_traits>
#include "flu... | 32.595679 | 80 | 0.64795 | alibitek |
05fda9e168911f2ead8152735861d96cd902653a | 4,832 | cpp | C++ | code/spotlight.cpp | annaliseko/HW6 | 67e9ea212994c8ec9786719fa3646c5bcc2eee7a | [
"MIT"
] | null | null | null | code/spotlight.cpp | annaliseko/HW6 | 67e9ea212994c8ec9786719fa3646c5bcc2eee7a | [
"MIT"
] | null | null | null | code/spotlight.cpp | annaliseko/HW6 | 67e9ea212994c8ec9786719fa3646c5bcc2eee7a | [
"MIT"
] | null | null | null | #include "spotlight.h"
#include "shapegroup.h"
#include "geometry.h"
#include "parse.h"
#include "material.h"
#include "main.h"
#include <stdlib.h>
#include <iostream>
SpotLight::SpotLight ()
: Light ()
{
}
SpotLight::~SpotLight ()
{
}
Color3d SpotLight::getDiffuse (Intersection& info)
{
... | 26.696133 | 147 | 0.587541 | annaliseko |
05fdba25acf4f3d58258b5d80bbc4a6c88d35dfc | 1,842 | hpp | C++ | NightEngine2/src/Core/Serialization/FileSystem.hpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-03-09T06:24:46.000Z | 2022-02-04T23:09:23.000Z | NightEngine2/src/Core/Serialization/FileSystem.hpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | null | null | null | NightEngine2/src/Core/Serialization/FileSystem.hpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-09-07T03:04:36.000Z | 2022-02-04T23:09:24.000Z | /*!
@file FileSystem.cpp
@author Rittikorn Tangtrongchit
@brief Contain the Interface of FileSystem
*/
#pragma once
#include "Core/Container/String.hpp"
#include <memory>
#include <fstream>
#include <vector>
namespace NightEngine
{
namespace FileSystem
{
//! @brief Directory flag
enum class DirectoryT... | 28.338462 | 123 | 0.685668 | rittikornt |
af042bcb8f4cec4109095e19d26e8c8e59bff786 | 16,761 | cpp | C++ | XivAlexander/App_Misc_CrashMessageBoxHandler.cpp | SuperNic333/XivAlexander | 8b0371e5f8473014a8aa39a22f93579b7de13f4f | [
"Apache-2.0"
] | 345 | 2021-02-08T18:11:24.000Z | 2022-03-25T04:01:23.000Z | XivAlexander/App_Misc_CrashMessageBoxHandler.cpp | SuperNic333/XivAlexander | 8b0371e5f8473014a8aa39a22f93579b7de13f4f | [
"Apache-2.0"
] | 376 | 2021-02-12T07:23:57.000Z | 2022-03-31T00:05:35.000Z | XivAlexander/App_Misc_CrashMessageBoxHandler.cpp | SuperNic333/XivAlexander | 8b0371e5f8473014a8aa39a22f93579b7de13f4f | [
"Apache-2.0"
] | 65 | 2021-02-12T05:47:14.000Z | 2022-03-25T03:08:23.000Z | #include "pch.h"
#include "App_Misc_CrashMessageBoxHandler.h"
#include <XivAlexander/XivAlexander.h>
#include "App_ConfigRepository.h"
#include "App_Misc_Hooks.h"
#include "App_Misc_Logger.h"
#include "DllMain.h"
#include "resource.h"
static const std::wstring_view PossibleCrashMessageBoxTitle[]{
L"ファイナルファンタジーXIV"... | 41.283251 | 185 | 0.705865 | SuperNic333 |
af0aa1e74387dfccd4e107abed1a2aad1c075acf | 596 | cpp | C++ | main.cpp | Literal-Eval/portage-client-backend | 8a5c6ff6f56b53fb5e1765055c15422545879a94 | [
"MIT"
] | null | null | null | main.cpp | Literal-Eval/portage-client-backend | 8a5c6ff6f56b53fb5e1765055c15422545879a94 | [
"MIT"
] | null | null | null | main.cpp | Literal-Eval/portage-client-backend | 8a5c6ff6f56b53fb5e1765055c15422545879a94 | [
"MIT"
] | null | null | null | #include <QCoreApplication>
#include <QThread>
#include <QConsoleListener>
#include "ftp.h"
#include "input.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QThread ftpThread;
FTP ftp;
QConsoleListener console;
QObject::connect(&console, &QConsoleListener::newLine,
[&]... | 17.028571 | 58 | 0.567114 | Literal-Eval |
af0d1e633b31fed3b70b4b1b23e837cfe71d6d81 | 5,496 | cpp | C++ | frame_buffer.cpp | Lnd-stoL/glGraphics | af0238ec1f2d19b0c720a2fc4979d4385bb175bb | [
"MIT"
] | 1 | 2015-09-04T20:28:46.000Z | 2015-09-04T20:28:46.000Z | frame_buffer.cpp | Lnd-stoL/glGraphics | af0238ec1f2d19b0c720a2fc4979d4385bb175bb | [
"MIT"
] | null | null | null | frame_buffer.cpp | Lnd-stoL/glGraphics | af0238ec1f2d19b0c720a2fc4979d4385bb175bb | [
"MIT"
] | null | null | null |
#include "frame_buffer.hpp"
#include "debug.hpp"
using oo_extensions::mkstr;
//----------------------------------------------------------------------------------------------------------------------
namespace render
{
gl_bindable_impl (frame_buffer)
GLenum frame_buffer::drawBuffersSequential[] =
{
... | 25.09589 | 135 | 0.586426 | Lnd-stoL |
af0dda4a417a9302887f1f0ed7246d04caca6809 | 1,267 | cpp | C++ | src/meshCreateFields.cpp | SureshMurugaiyan/FiniteVolumeSolver2D_PISO_HD | ad741b025669a56d43617a0af78399692a55e5bd | [
"MIT"
] | 2 | 2021-02-06T06:14:51.000Z | 2021-04-15T09:51:50.000Z | src/meshCreateFields.cpp | SureshMurugaiyan/FiniteVolumeSolver2D_PISO_HD | ad741b025669a56d43617a0af78399692a55e5bd | [
"MIT"
] | null | null | null | src/meshCreateFields.cpp | SureshMurugaiyan/FiniteVolumeSolver2D_PISO_HD | ad741b025669a56d43617a0af78399692a55e5bd | [
"MIT"
] | null | null | null | #include "mesh.h"
void createMeshVertexScalar(dfloat** phi, mesh_t *mesh){
int n = mesh->ncells*mesh->ncellVertices;
*phi = (dfloat*) calloc(n, sizeof(dfloat));
for (size_t i = 0; i < n; i++) {
(*phi)[i] = 0;
}
}
void createMeshVertexVector(dfloat** phi, mesh_t *mesh){
int n = mesh->ncells*mesh->ncellVerti... | 18.632353 | 63 | 0.604578 | SureshMurugaiyan |
af0e83443bd7712f73eca194db6aa1e754d345b1 | 1,453 | cpp | C++ | src/main.cpp | kouellet/nifalcon_mechanics | 1c4fc7c00383ca1f6c23c951835ff5ca14c2be97 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T18:41:22.000Z | 2016-05-08T18:41:22.000Z | src/main.cpp | kouellet/nifalcon_mechanics | 1c4fc7c00383ca1f6c23c951835ff5ca14c2be97 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | kouellet/nifalcon_mechanics | 1c4fc7c00383ca1f6c23c951835ff5ca14c2be97 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#ifdef WIN32
#include <windows.h>
#endif
#ifdef __APPLE__
# include <GLUT/glut.h>
#else
# include <GL/glut.h>
#endif
#include "controller/Controller.h"
#include "boost/thread.hpp"
#include "boost/bind.hpp"
controller::Controller *control = 0;
int windowId;
void display()
{
if (control)
cont... | 16.511364 | 72 | 0.698555 | kouellet |
af16179af7e290a5f6eb9ddcd65b843188822ec9 | 454 | cpp | C++ | A-set/294A. Shaass and Oskols/294A. Shaass and Oskols.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | 1 | 2020-04-13T00:45:25.000Z | 2020-04-13T00:45:25.000Z | A-set/294A. Shaass and Oskols/294A. Shaass and Oskols.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | null | null | null | A-set/294A. Shaass and Oskols/294A. Shaass and Oskols.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n,m,x,y;
cin >>n;
int birds[n] ;
for(int i=0;i<n;i++)
cin >> birds[i];
cin >> m;
for(int i=0;i<m;i++)
{
cin >>x>>y;
x--;
if(x!=0)
birds[x-1]+=y-1;
if(x!=n-1)
... | 16.214286 | 32 | 0.376652 | AhmedRamadan6 |
af1794d00fb8ef018d67770a82ac97ca5716e60b | 340 | cpp | C++ | Difficulty 2/bits.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 2/bits.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 2/bits.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main() {
int test, curr, max_ones;
string to_reverse;
cin >> test;
for(int i = 0; i < test; i++) {
cin >> curr;
max_ones = 0;
to_reverse = to_string(curr);
reverse(to_reverse.begin(), to_reverse.end(... | 18.888889 | 54 | 0.544118 | BrynjarGeir |
af1817ea80ad3b360ec89e295188a9628180fa6a | 9,168 | cpp | C++ | Gps/NEMAParser.cpp | hiro-han/sandbox | 3720c931ea4d645a9eb9a09b0b45605a2542188f | [
"MIT"
] | 3 | 2019-02-09T04:06:21.000Z | 2021-06-01T11:58:16.000Z | Gps/NEMAParser.cpp | hiro-han/sandbox | 3720c931ea4d645a9eb9a09b0b45605a2542188f | [
"MIT"
] | null | null | null | Gps/NEMAParser.cpp | hiro-han/sandbox | 3720c931ea4d645a9eb9a09b0b45605a2542188f | [
"MIT"
] | 1 | 2019-04-29T06:57:15.000Z | 2019-04-29T06:57:15.000Z | #include "NEMAParser.h"
#include <fstream>
#include <iostream>
#include <sstream>
namespace NEMAParser {
NEMAParser::NEMAParser() {
// nop
}
NEMAParser::~NEMAParser() {
// nop
}
ErrorCode NEMAParser::parse(const std::string &data) {
if (data.size() < 4
|| data.front() != '$'
|| data.back() != '\r'... | 42.055046 | 92 | 0.639834 | hiro-han |
af1821d1a516e3bb41c8d2235c64820e67e4bd60 | 1,121 | cpp | C++ | src/LLEMU.cpp | DebugScientist78/2019-2020-Vex-Robotics-Tower-Takeover-Code | 50d943a49137f89bb2c5fe07d41c2388e2befcb4 | [
"MIT"
] | null | null | null | src/LLEMU.cpp | DebugScientist78/2019-2020-Vex-Robotics-Tower-Takeover-Code | 50d943a49137f89bb2c5fe07d41c2388e2befcb4 | [
"MIT"
] | null | null | null | src/LLEMU.cpp | DebugScientist78/2019-2020-Vex-Robotics-Tower-Takeover-Code | 50d943a49137f89bb2c5fe07d41c2388e2befcb4 | [
"MIT"
] | null | null | null | #include "main.h"
#include "globals.hpp"
int AUTO_LIMIT = 4;
void MoveAutoUp() {
autoMode += 1;
if (autoMode > AUTO_LIMIT) autoMode = AUTO_LIMIT;
}
void MoveAutoDown() {
autoMode -= 1;
if (autoMode < 0) autoMode = 0;
}
void ConfirmAuto() {
choosingAuto = false;
}
void ChooseAutoLEGACY() {
u... | 22.42 | 62 | 0.490633 | DebugScientist78 |
af1a6ba3a26e31f8727714f9775ccc4dc2d3f7ee | 6,430 | cpp | C++ | src/dfuFileParser.cpp | uis246/openFPGALoader | 312b8d25659857301df17b4b4daa55a1fe3f23cb | [
"Apache-2.0"
] | 505 | 2019-12-09T10:47:15.000Z | 2022-03-31T09:04:10.000Z | src/dfuFileParser.cpp | uis246/openFPGALoader | 312b8d25659857301df17b4b4daa55a1fe3f23cb | [
"Apache-2.0"
] | 203 | 2019-12-06T10:57:48.000Z | 2022-03-31T17:57:08.000Z | src/dfuFileParser.cpp | uis246/openFPGALoader | 312b8d25659857301df17b4b4daa55a1fe3f23cb | [
"Apache-2.0"
] | 106 | 2019-12-06T12:12:56.000Z | 2022-03-31T10:38:11.000Z | // SPDX-License-Identifier: Apache-2.0
/*
* Copyright (c) 2021 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
*/
#include <libusb.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <unistd.h>
#include <algorithm>
#include <iostream>
#include <fstream>
#include ... | 40.1875 | 82 | 0.732815 | uis246 |
af1d1eb86a0a37be710ab7ece038e7c4e166b40d | 201 | cpp | C++ | msvc/appares_static_static_glue_app.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | msvc/appares_static_static_glue_app.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | msvc/appares_static_static_glue_app.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | // This file is automatically generated.
#include "cssysdef.h"
struct _Bind_ares_static_plugins
{
_Bind_ares_static_plugins ();
};
namespace { _Bind_ares_static_plugins bind_ares_static_plugins; }
| 20.1 | 65 | 0.80597 | GarethNelson |
af1fa6a276d432836227c352684954ce6fc230f7 | 87,749 | cpp | C++ | Source/Execute.cpp | Megatokio/vipsi | 5a1b5207e3db0abcf03bfb2268025d3ff104d802 | [
"BSD-2-Clause"
] | null | null | null | Source/Execute.cpp | Megatokio/vipsi | 5a1b5207e3db0abcf03bfb2268025d3ff104d802 | [
"BSD-2-Clause"
] | null | null | null | Source/Execute.cpp | Megatokio/vipsi | 5a1b5207e3db0abcf03bfb2268025d3ff104d802 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) Günter Woigk 2001 - 2020
mailto:kio@little-bat.de
This file is free software
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Redistribution and use in source... | 25.642607 | 161 | 0.628452 | Megatokio |
af29069547323d78195944ed82608e5aebed8093 | 1,691 | cpp | C++ | V3_I/OneDrive_1_3-2-2021/ARGOS_Recorder/Sensor/StxPower/pCtrler/pCtrler.cpp | EIDOSDATA/ARGOS_QT_Series | f451312249607b03ed4d6848ec8bc068f245718f | [
"Unlicense"
] | null | null | null | V3_I/OneDrive_1_3-2-2021/ARGOS_Recorder/Sensor/StxPower/pCtrler/pCtrler.cpp | EIDOSDATA/ARGOS_QT_Series | f451312249607b03ed4d6848ec8bc068f245718f | [
"Unlicense"
] | null | null | null | V3_I/OneDrive_1_3-2-2021/ARGOS_Recorder/Sensor/StxPower/pCtrler/pCtrler.cpp | EIDOSDATA/ARGOS_QT_Series | f451312249607b03ed4d6848ec8bc068f245718f | [
"Unlicense"
] | null | null | null | /*
* pCtrler.cpp
*
* Created on: 2020. 9. 15.
* Author: stryx
*/
#include "pCtrler.h"
using namespace LibSerial;
using namespace std;
pCtrler::pCtrler()
{
_ss = nullptr;
}
pCtrler::~pCtrler()
{
Detatch();
}
bool pCtrler::AttatchTo(std::string deviceFilePath)
{
_ss = make_shared<SerialStream>(deviceFile... | 14.704348 | 62 | 0.617978 | EIDOSDATA |
af360d632a938d987d84ecab15f056e2e98cb4f1 | 2,408 | cc | C++ | src/vecAdd/main.cc | zhangyang051090/gardenia_ocl | dcefc1fb372faec27462a4b55b688cdb2e194793 | [
"BSD-4-Clause-UC"
] | 1 | 2020-05-25T09:35:47.000Z | 2020-05-25T09:35:47.000Z | src/vecAdd/main.cc | zhangyang051090/gardenia_ocl | dcefc1fb372faec27462a4b55b688cdb2e194793 | [
"BSD-4-Clause-UC"
] | null | null | null | src/vecAdd/main.cc | zhangyang051090/gardenia_ocl | dcefc1fb372faec27462a4b55b688cdb2e194793 | [
"BSD-4-Clause-UC"
] | 1 | 2022-01-21T11:59:00.000Z | 2022-01-21T11:59:00.000Z | // Copyright 2016, National University of Defense Technology
// Authors: Xuhao Chen <cxh@illinois.edu>
#include "common.h"
#include "immintrin.h"
#include "timer.h"
#include <omp.h>
void run_serial(int n, ValueType *a, ValueType *b, ValueType *c) {
Timer t;
t.Start();
for(int i = 0; i < n; i ++) {
c[i] = a[i] + b... | 27.678161 | 70 | 0.577243 | zhangyang051090 |
af3fe9bead2105fa01bee5686259070ad7739027 | 266 | cpp | C++ | test/iri_index_test.cpp | WeeJang/fish-db | 4dc50568e0f531c76b8f44e531d0db8e1f6d158a | [
"MIT"
] | 2 | 2017-12-12T07:54:38.000Z | 2021-12-21T15:17:36.000Z | test/iri_index_test.cpp | WeeJang/fish-db | 4dc50568e0f531c76b8f44e531d0db8e1f6d158a | [
"MIT"
] | null | null | null | test/iri_index_test.cpp | WeeJang/fish-db | 4dc50568e0f531c76b8f44e531d0db8e1f6d158a | [
"MIT"
] | null | null | null | #include <iostream>
#include <typeinfo>
#include "../src/core/iri_index.hpp"
int main(int argc, char** argv) {
core::IRIIndex<int> a(110);
auto sub_index = a.sub_index();
a.add_index(0, 0);
std::cout << typeid(sub_index).name() << std::endl;
return 0;
}
| 20.461538 | 53 | 0.646617 | WeeJang |
af4697b0d9a61855bc149be9604a709a35035ae8 | 30,771 | cpp | C++ | src/labelingHe2014.cpp | YunseokJ/CannyCCL | 6c49af25c0b3dfa1e08469ac0fb0537403b7c2ae | [
"BSD-2-Clause"
] | null | null | null | src/labelingHe2014.cpp | YunseokJ/CannyCCL | 6c49af25c0b3dfa1e08469ac0fb0537403b7c2ae | [
"BSD-2-Clause"
] | null | null | null | src/labelingHe2014.cpp | YunseokJ/CannyCCL | 6c49af25c0b3dfa1e08469ac0fb0537403b7c2ae | [
"BSD-2-Clause"
] | null | null | null | // Copyright(c) 2016 - 2017 Costantino Grana, Federico Bolelli, Lorenzo Baraldi and Roberto Vezzani
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met :
//
// *Redistributions of source code mus... | 43.646809 | 128 | 0.421533 | YunseokJ |
af4a6dfbc6399821292ba5bac4dfc98dd1f082d9 | 706 | cpp | C++ | pat1005.cpp | Lollipopcc/PAT-Advanced-Level- | 1896890df32ed162601b96bbbb3c56ce904a6122 | [
"Apache-2.0"
] | null | null | null | pat1005.cpp | Lollipopcc/PAT-Advanced-Level- | 1896890df32ed162601b96bbbb3c56ce904a6122 | [
"Apache-2.0"
] | null | null | null | pat1005.cpp | Lollipopcc/PAT-Advanced-Level- | 1896890df32ed162601b96bbbb3c56ce904a6122 | [
"Apache-2.0"
] | null | null | null | #include<map>
#include<string>
#include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
#include<stdlib.h>
#include<stdio.h>
#include<set>
using namespace std;
int main()
{
string numE[10]={"zero","one","two","three","four","five","six","seven","eight","nine"};
int i;
map<char,int>m;
for(i=0;i<=9... | 15.021277 | 89 | 0.586402 | Lollipopcc |
af52f570b5a1e776bfa57ee1f9825421227780f6 | 6,830 | cpp | C++ | WildMagic4/LibFoundation/Distance/Wm4DistRay3Ray3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Distance/Wm4DistRay3Ray3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Distance/Wm4DistRay3Ray3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4DistRay3Ray... | 31.62037 | 79 | 0.399122 | rms80 |
af53ac37f012df6e9f9a326b3bf7dd3346b778fd | 13,503 | cpp | C++ | src/sound/musicformats/music_libsndfile.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | 2 | 2018-01-18T21:30:20.000Z | 2018-01-19T02:24:46.000Z | src/sound/musicformats/music_libsndfile.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | null | null | null | src/sound/musicformats/music_libsndfile.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | null | null | null | /*
** music_libsndfile.cpp
** Uses libsndfile for streaming music formats
**
**---------------------------------------------------------------------------
** Copyright 2017 Christoph Oelckers
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted ... | 29.807947 | 143 | 0.585203 | raa-eruanna |
af5a38c5a0221addb661100c1c744e72021c4cc6 | 645 | cpp | C++ | Core/src/Components/LODModelComponent.cpp | IridescentRose/Stardust-Engine | ee6a6b5841c16dddf367564a92eb263827631200 | [
"MIT"
] | 55 | 2020-10-07T01:54:49.000Z | 2022-03-26T11:39:11.000Z | Core/src/Components/LODModelComponent.cpp | IridescentRose/Ionia | ee6a6b5841c16dddf367564a92eb263827631200 | [
"MIT"
] | 15 | 2020-05-30T18:22:50.000Z | 2020-08-08T11:01:36.000Z | Core/src/Components/LODModelComponent.cpp | IridescentRose/Ionia | ee6a6b5841c16dddf367564a92eb263827631200 | [
"MIT"
] | 6 | 2020-10-22T11:09:47.000Z | 2022-01-07T13:10:09.000Z | #include <Components/LODModelComponent.h>
namespace Stardust::Component {
inline void LODModelComponent::Update()
{
if (model != nullptr) {
if (GFX::g_RenderCore->renderCam != nullptr) {
model->update(GFX::g_RenderCore->renderCam->pos);
}
else {
model->update({ 0, 0, 0 });
}
}
}
void LODMod... | 21.5 | 58 | 0.63876 | IridescentRose |
af61110f00cf2d0270f102bd88ccd97a77f9c3c0 | 10,173 | cpp | C++ | test/process_image-test.cpp | botanicastudios/airpanel | 62bb55a3ec2ccfe7f0effd7e97d9ecb8574c8dcd | [
"MIT"
] | null | null | null | test/process_image-test.cpp | botanicastudios/airpanel | 62bb55a3ec2ccfe7f0effd7e97d9ecb8574c8dcd | [
"MIT"
] | null | null | null | test/process_image-test.cpp | botanicastudios/airpanel | 62bb55a3ec2ccfe7f0effd7e97d9ecb8574c8dcd | [
"MIT"
] | null | null | null | #include "../src/core.h"
#include "load-bitmap-fixture.h"
#include "save-bitmap-fixture.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
/***
* Note: Fixture BMP files must be saved in 24 bit (RGB) color mode, but the
* image itself s... | 32.295238 | 80 | 0.497887 | botanicastudios |
af6b756ebb8a72c673be2949534c056e691f530d | 4,362 | hpp | C++ | rotation.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | 28 | 2016-11-15T09:16:43.000Z | 2021-04-12T15:38:46.000Z | rotation.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | null | null | null | rotation.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | 1 | 2020-09-04T22:27:20.000Z | 2020-09-04T22:27:20.000Z | #ifndef VXL_ROTATION_HPP
# define VXL_ROTATION_HPP
# pragma once
#include "cross.hpp"
#include "quat.hpp"
#include "sinf.hpp"
namespace vxl
{
enum struct ea
{
XYZ,
XZY,
YXZ,
YZX,
ZXY,
ZYX
};
struct scale;
namespace detail
{
template <unsigned I, typename T>
inline constexpr auto rot_x(std::pair<vxl:... | 24.368715 | 78 | 0.583219 | janezz55 |
af6fee27f78994a9967fa7eed17cd93da6a688d4 | 1,407 | cpp | C++ | sample/phxecho/echo_sm.cpp | hidva/phxpaxos | e39608611e87b419e384cfcea3ea4466c0588aaa | [
"OpenSSL"
] | null | null | null | sample/phxecho/echo_sm.cpp | hidva/phxpaxos | e39608611e87b419e384cfcea3ea4466c0588aaa | [
"OpenSSL"
] | null | null | null | sample/phxecho/echo_sm.cpp | hidva/phxpaxos | e39608611e87b419e384cfcea3ea4466c0588aaa | [
"OpenSSL"
] | null | null | null | /*
Tencent is pleased to support the open source community by making
PhxPaxos available.
Copyright (C) 2016 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy of the Lic... | 29.3125 | 90 | 0.726368 | hidva |
af75b003fdc455a57e108029fd9c438c2f2e0b49 | 1,198 | cpp | C++ | 1393/b.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 1393/b.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 1393/b.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | 2 | 2020-10-03T04:52:14.000Z | 2020-10-03T05:19:12.000Z | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
void solve(){
int n, q;
cin >> n;
int a[n], mp[n+1] = {0};
for(int i = 0; i < n; i++) cin >> a[i], mp[a[i]]++;
multiset<int> ms;
ms.insert(0);
ms.insert(0);
ms.insert(0);
cin >> q;
for(int i = 0; i <= n; i++)... | 22.185185 | 80 | 0.392321 | basuki57 |
af7b387c8d7107e6559cf77aa5e5c374ac471795 | 4,052 | cpp | C++ | example/any_iterator.cpp | BRevzin/dyno | 76dcd0cc29cfa0e48f893e1ac32b6380b35437e0 | [
"BSL-1.0"
] | 739 | 2017-03-17T15:02:08.000Z | 2022-03-29T03:25:32.000Z | example/any_iterator.cpp | BRevzin/dyno | 76dcd0cc29cfa0e48f893e1ac32b6380b35437e0 | [
"BSL-1.0"
] | 41 | 2017-03-09T07:04:13.000Z | 2021-05-27T20:05:24.000Z | example/any_iterator.cpp | BRevzin/dyno | 76dcd0cc29cfa0e48f893e1ac32b6380b35437e0 | [
"BSL-1.0"
] | 43 | 2017-04-08T07:23:33.000Z | 2021-08-20T14:20:49.000Z | // Copyright Louis Dionne 2017
// 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 "../test/testing.hpp"
#include "any_iterator.hpp"
#include <array>
#include <cassert>
#include <iterator>
#include <utility>
#include... | 32.15873 | 81 | 0.469398 | BRevzin |
502ef804bb2c8089e364908ecee0287d4cc1f876 | 6,612 | cpp | C++ | PVCommon.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | PVCommon.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | PVCommon.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | /* PSYCHO GAMES(C) STUDIOS - 2007 www.psychogames.net
* Project: Vulture(c)
* Author : Andrea Nardinocchi
* eMail : andrea@nardinan.it
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, ... | 38 | 115 | 0.496975 | nardinan |
502f7250e3a4e7f7464dc0302f61126c60ef7daa | 6,682 | cpp | C++ | dev/Gems/GraphCanvas/Code/StaticLib/GraphCanvas/Widgets/AssetEditorToolbar/AssetEditorToolbar.cpp | raghnarx/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/GraphCanvas/Code/StaticLib/GraphCanvas/Widgets/AssetEditorToolbar/AssetEditorToolbar.cpp | 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | null | null | null | dev/Gems/GraphCanvas/Code/StaticLib/GraphCanvas/Widgets/AssetEditorToolbar/AssetEditorToolbar.cpp | 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard | 1c52b941dcb7d94341fcf21275fe71ff67173ada | [
"AML"
] | 4 | 2019-08-05T07:25:46.000Z | 2020-12-07T05:12:55.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 37.539326 | 131 | 0.722688 | raghnarx |
502f94e5c88619d3ac0ff0366379a4572996cc9b | 1,749 | hpp | C++ | include/freertos_cpp_util/logging/Logger.hpp | jacobschloss/freertos_cpp_util | 8251809738922c84b1ce12db6a77000b73287a8b | [
"BSD-3-Clause"
] | 5 | 2019-03-28T22:05:50.000Z | 2022-03-29T16:20:01.000Z | include/freertos_cpp_util/logging/Logger.hpp | jacobschloss/freertos_cpp_util | 8251809738922c84b1ce12db6a77000b73287a8b | [
"BSD-3-Clause"
] | null | null | null | include/freertos_cpp_util/logging/Logger.hpp | jacobschloss/freertos_cpp_util | 8251809738922c84b1ce12db6a77000b73287a8b | [
"BSD-3-Clause"
] | 1 | 2020-06-17T04:04:26.000Z | 2020-06-17T04:04:26.000Z | /**
* @brief Logger
* @author Jacob Schloss <jacob@schloss.io>
* @copyright Copyright (c) 2019 Jacob Schloss. All rights reserved.
* @license Licensed under the 3-Clause BSD license. See LICENSE for details
*/
#pragma once
#include "common_util/Intrusive_slist.hpp"
#include "freertos_cpp_util/object_pool/Object_... | 24.985714 | 142 | 0.769011 | jacobschloss |
50424cc78d219969dbeee70e57d2038a1c5dd446 | 5,786 | cpp | C++ | parseopt/src/field.cpp | esegere/idsort | fd980281f745db3a3f691f5fc5c3583441747692 | [
"BSD-3-Clause"
] | null | null | null | parseopt/src/field.cpp | esegere/idsort | fd980281f745db3a3f691f5fc5c3583441747692 | [
"BSD-3-Clause"
] | null | null | null | parseopt/src/field.cpp | esegere/idsort | fd980281f745db3a3f691f5fc5c3583441747692 | [
"BSD-3-Clause"
] | null | null | null | #include <sstream>
#include "parseopt/field.hpp"
#include "parseopt/parseutil.hpp"
namespace field{
constexpr char FIELD_DELIMITER = '/';
constexpr char SPECIFIER_DELIMITER = ':';
Field::Field(unsigned int start, unsigned int end, bool ascending_order, unsigned int type){
this->start = start;
this->e... | 28.362745 | 123 | 0.6056 | esegere |
505434d1621413bf56564b7441a367f56d76c12f | 725 | cpp | C++ | Control Structures/Break_Continue.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | Control Structures/Break_Continue.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | Control Structures/Break_Continue.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
/*
Hari's Mother allows him to go out only in odd date of month.
And pocket money of Hari is 3000 rupees
When he go out he spend 300 rupees
Find out on which date he can go out.
*/
int pocket_money = 3000;
for (int date = 1; date ... | 19.078947 | 65 | 0.52 | SusheelThapa |
5055f91bc0d2f28356f87e3d34d12c067a66f802 | 3,545 | cpp | C++ | src/cppio/network/ip.cpp | yamashi/cppio | a6fa39ccfd72361d0a8b11948a30db030de2ac33 | [
"MIT"
] | 4 | 2021-08-29T13:46:22.000Z | 2021-11-14T20:27:30.000Z | src/cppio/network/ip.cpp | yamashi/cppio | a6fa39ccfd72361d0a8b11948a30db030de2ac33 | [
"MIT"
] | null | null | null | src/cppio/network/ip.cpp | yamashi/cppio | a6fa39ccfd72361d0a8b11948a30db030de2ac33 | [
"MIT"
] | null | null | null | #include <cppio/network/ip.hpp>
#include <cppio/platform.hpp>
namespace cppio::network::ip
{
outcome::result<v4> v4::parse(const std::string& address)
{
in_addr addr;
if (inet_pton(AF_INET, address.c_str(), &addr) == 1)
{
return v4{ ntohl(addr.s_addr) };
}
r... | 24.448276 | 87 | 0.46488 | yamashi |
50579a6b6614e8fd66322b4f2af575091bc76b00 | 2,925 | hpp | C++ | Doremi/Core/Include/EntityComponent/EntityHandler.hpp | meraz/doremi | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | 1 | 2020-03-23T15:42:05.000Z | 2020-03-23T15:42:05.000Z | Doremi/Core/Include/EntityComponent/EntityHandler.hpp | Meraz/ssp15 | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | null | null | null | Doremi/Core/Include/EntityComponent/EntityHandler.hpp | Meraz/ssp15 | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | 1 | 2020-03-23T15:42:06.000Z | 2020-03-23T15:42:06.000Z | #pragma once
// Project specific
#include <Doremi/Core/Include/EntityComponent/Constants.hpp>
#include <Doremi/Core/Include/EntityComponent/ComponentTable.hpp>
#include <Doremi/Core/Include/EntityComponent/StorageShelf.hpp>
#include <Doremi/Core/Include/EventHandler/Subscriber.hpp>
#include <DirectXMath.h>
namespace ... | 37.5 | 153 | 0.62359 | meraz |
505e41ddf60908653f8ad19d74a56301a78b5d3d | 4,049 | cpp | C++ | tests/unit_tests/noad/script.cpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | 4 | 2021-04-02T02:52:05.000Z | 2021-12-11T00:42:35.000Z | tests/unit_tests/noad/script.cpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | tests/unit_tests/noad/script.cpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | #include "noad/script.hpp"
#include "font_library.hpp"
#include "node/hlist.hpp"
#include "noad/noad.hpp"
#include "node/box.hpp"
#include "settings.hpp"
#include "framework/code_points.hpp"
#include "framework/doctest.hpp"
#include "framework/mock_font_face.hpp"
#include "framework/node_types_are.hpp"
namespace mfl... | 41.742268 | 127 | 0.594221 | cpp-niel |
5062c971a262d5e0be652d67c90b8fd5ccef2498 | 786 | cpp | C++ | test/test_mailer.cpp | malasiot/wsrv | b61344ecb6e528cbe6e7f8348d2df466a3920a42 | [
"MIT"
] | null | null | null | test/test_mailer.cpp | malasiot/wsrv | b61344ecb6e528cbe6e7f8348d2df466a3920a42 | [
"MIT"
] | null | null | null | test/test_mailer.cpp | malasiot/wsrv | b61344ecb6e528cbe6e7f8348d2df466a3920a42 | [
"MIT"
] | 1 | 2019-09-01T15:22:19.000Z | 2019-09-01T15:22:19.000Z | #include <ws/mailer.hpp>
#include <fstream>
using namespace std ;
using namespace ws ;
int main(int argc, char *argv[]) {
SMTPMailer c("smtp.gmail.com", 587) ;
c.authenticate(argv[1], argv[2], ws::SMTPMailer::auth_method_t::START_TLS) ;
SMTPMessage msg ;
msg.setFrom(MailAddress("malasiot@iti.gr")) ... | 27.103448 | 80 | 0.669211 | malasiot |
50649e1e687d8d40f42a97d973b47f4b86f4c841 | 2,423 | cpp | C++ | src/main.cpp | pullmoll/cass80 | d53d02b679310288ce5e59daf7ce5537e90289ca | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | pullmoll/cass80 | d53d02b679310288ce5e59daf7ce5537e90289ca | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | pullmoll/cass80 | d53d02b679310288ce5e59daf7ce5537e90289ca | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Cass80 tool - main
*
* Copyright (C) 2020 Jürgen Buchmüller <pullmoll@t-online.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... | 43.267857 | 113 | 0.703673 | pullmoll |
50659714630c1488b9867cee349b384052f2a546 | 1,432 | cpp | C++ | Backend_Code/AccountSnapshot.cpp | mvwater/mvwater-cpp | e7775b908771daad007b8acd800afdf2dc2ef591 | [
"Apache-2.0"
] | null | null | null | Backend_Code/AccountSnapshot.cpp | mvwater/mvwater-cpp | e7775b908771daad007b8acd800afdf2dc2ef591 | [
"Apache-2.0"
] | 7 | 2020-03-21T01:29:39.000Z | 2020-05-04T21:30:40.000Z | Backend_Code/AccountSnapshot.cpp | mvwater/MountVernonWater | e7775b908771daad007b8acd800afdf2dc2ef591 | [
"Apache-2.0"
] | null | null | null | //File Name: AccountSnapshot.cpp
//Author: Shane, Michaela, and Sejin
//Email Address: canfield1@kenyon.edu, kim3@kenyon.edu, brydon1@kenyon.edu
//Assignment: Mount Vernon City Water Database
//Description: Snapshot of an account
//Last Changed: March 26, 2020
#include "AccountSnapshot.h"
#include <iostream>
using st... | 27.018868 | 123 | 0.72067 | mvwater |
5065fba132a7ba84e7a36b0b33567349888ca2bd | 434 | cpp | C++ | source/circle.cpp | DonEduardo27/programmiersprachen-aufgabenblatt-3 | af354166b1fa2128995cf68c1473abd0f2acaa59 | [
"MIT"
] | null | null | null | source/circle.cpp | DonEduardo27/programmiersprachen-aufgabenblatt-3 | af354166b1fa2128995cf68c1473abd0f2acaa59 | [
"MIT"
] | null | null | null | source/circle.cpp | DonEduardo27/programmiersprachen-aufgabenblatt-3 | af354166b1fa2128995cf68c1473abd0f2acaa59 | [
"MIT"
] | null | null | null | #include "circle.hpp"
#include <math.h>
#include <iostream>
Circle::Circle():
rad{1}
{}
Circle::Circle(float rad_):
rad{rad_}
{}
void Circle::setradius(double r)
{
rad=r;
}
double Circle::getradius() const
{
return rad;
}
bool Circle::operator< (Circle const& a)
{
return rad < a.rad;
}
bool Circle::operat... | 12.055556 | 40 | 0.647465 | DonEduardo27 |
506cd1e1a3bb8af9cbe7c84c276851166d4498f5 | 4,482 | hh | C++ | graph-tool-2.27/src/graph/inference/blockmodel/graph_blockmodel_gibbs.hh | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/inference/blockmodel/graph_blockmodel_gibbs.hh | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/inference/blockmodel/graph_blockmodel_gibbs.hh | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | // graph-tool -- a general graph modification and manipulation thingy
//
// Copyright (C) 2006-2018 Tiago de Paula Peixoto <tiago@skewed.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation;... | 34.744186 | 80 | 0.508925 | Znigneering |
506f66e0d341ecbe3f401c1d31ecf21a2752fa71 | 10,637 | cpp | C++ | src/HttpCollector.cpp | flier/zipkin-cpp | f86357f6e302c98ab8a070267e3f7ba85ec2c59f | [
"Apache-2.0"
] | 48 | 2017-03-06T05:07:26.000Z | 2022-03-18T08:19:36.000Z | src/HttpCollector.cpp | flier/zipkin-cpp | f86357f6e302c98ab8a070267e3f7ba85ec2c59f | [
"Apache-2.0"
] | 19 | 2017-02-25T03:25:30.000Z | 2021-02-10T17:28:12.000Z | src/HttpCollector.cpp | flier/zipkin-cpp | f86357f6e302c98ab8a070267e3f7ba85ec2c59f | [
"Apache-2.0"
] | 19 | 2017-04-11T09:23:42.000Z | 2022-03-08T05:24:31.000Z | #include "HttpCollector.h"
#include <sstream>
#include <glog/logging.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/protocol/TBinaryProtocol.h>
#define RAPIDJSON_HAS_STDSTRING 1
#include <rapidjson/stringbuffer.h>
#include <rapidjson/prettywriter.h>
#include <zlib.h>
#include "Version.h"
nam... | 33.034161 | 144 | 0.560214 | flier |
5072484c2140ee3f2c83edcfce357e7607a924b6 | 341 | cpp | C++ | Difficulty 4/bing.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 4/bing.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 4/bing.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_map>
using namespace std;
int main() {
int N;
cin >> N;
string word;
unordered_map<string, int> words;
while(N--) {
cin >> word;
cout << words[word] << endl;
for(int i = 1; i <= word.size(); i++) {
words[word.substr(0,i)]++... | 17.947368 | 47 | 0.495601 | BrynjarGeir |
5079b94b5be65e0c4f43d83c88ca14b107d672ed | 3,176 | cpp | C++ | ZipEntry.cpp | wutipong/ZipPicViewWx | 1663ff327f6dba85cd661068133bcfdbae43a83e | [
"MIT"
] | 10 | 2015-11-29T11:10:06.000Z | 2020-03-07T10:17:19.000Z | ZipEntry.cpp | wutipong/ZipPicViewWx | 1663ff327f6dba85cd661068133bcfdbae43a83e | [
"MIT"
] | null | null | null | ZipEntry.cpp | wutipong/ZipPicViewWx | 1663ff327f6dba85cd661068133bcfdbae43a83e | [
"MIT"
] | 4 | 2015-11-29T13:43:36.000Z | 2018-11-19T05:31:33.000Z | //
// Created by noom on 10/29/15.
//
#include <algorithm>
#include <iostream>
#include <map>
#include <wx/file.h>
#include <wx/mstream.h>
#include "ZipEntry.h"
ZipEntry::ZipEntry(zip_t *zipFile, wxMutex *mutex, const wxString &innerPath)
: zipFile(zipFile), mutex(mutex), innerPath(innerPath) {
i... | 23.525926 | 78 | 0.601385 | wutipong |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.