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 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8c04a13313137cf5a7cf0c58c970a13042dcce3 | 376 | cpp | C++ | patterns/adapter/main.cpp | PotatoMaster101/pats | 7429125a4b34fa1ba4ad6710a1753a547909f73c | [
"MIT"
] | null | null | null | patterns/adapter/main.cpp | PotatoMaster101/pats | 7429125a4b34fa1ba4ad6710a1753a547909f73c | [
"MIT"
] | null | null | null | patterns/adapter/main.cpp | PotatoMaster101/pats | 7429125a4b34fa1ba4ad6710a1753a547909f73c | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include "adapter.hpp"
int main(int argc, const char *argv[]) {
auto legacy = std::make_unique<legacy_rect>(1, 2, 3, 4); // x1 x2 y1 y2
auto modern = std::make_unique<rect_adapter>(1, 2, 3, 4); // x y w h
legacy->legacy_print(); // prints 1 3 2 4
modern... | 31.333333 | 78 | 0.582447 |
d8c07138e588daf79752f92dbe2f0522ae53bc14 | 887 | cpp | C++ | ExemploExcecoesTryCatchThrow/ClasseHerdeiraException.cpp | lucaslgr/LearningCplusplus | 579e4ddc8a55605af9b46e24bfb91897d3be0274 | [
"MIT"
] | 1 | 2020-07-14T16:49:52.000Z | 2020-07-14T16:49:52.000Z | ExemploExcecoesTryCatchThrow/ClasseHerdeiraException.cpp | lucaslgr/LearningCplusplus | 579e4ddc8a55605af9b46e24bfb91897d3be0274 | [
"MIT"
] | null | null | null | ExemploExcecoesTryCatchThrow/ClasseHerdeiraException.cpp | lucaslgr/LearningCplusplus | 579e4ddc8a55605af9b46e24bfb91897d3be0274 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
#include <exception>
using namespace std;
class ExcecaoCustomizada : public exception
{
protected:
char msg[100];
public:
ExcecaoCustomizada(const char* e)
{
strcpy(msg, e);
}
virtual const char* what()
{
... | 17.392157 | 54 | 0.470124 |
d8cd55713bb6d0e47bcf9a195ec14a4b22825b20 | 765 | cpp | C++ | lib/Dialect/XTen/IR/XTenDialect.cpp | jcamacho1234/mlir-xten | 721f97fc01dd39a2f54ef3b409ceb5a9528c61f4 | [
"Apache-2.0"
] | 10 | 2021-11-05T00:08:47.000Z | 2022-02-09T20:12:56.000Z | lib/Dialect/XTen/IR/XTenDialect.cpp | jcamacho1234/mlir-xten | 721f97fc01dd39a2f54ef3b409ceb5a9528c61f4 | [
"Apache-2.0"
] | 1 | 2022-01-27T17:21:14.000Z | 2022-01-27T17:22:41.000Z | lib/Dialect/XTen/IR/XTenDialect.cpp | jcamacho1234/mlir-xten | 721f97fc01dd39a2f54ef3b409ceb5a9528c61f4 | [
"Apache-2.0"
] | 6 | 2021-11-10T06:49:47.000Z | 2021-12-22T19:02:48.000Z | //===- XTenDialect.cpp ------------------------------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// (c) Copyright 2021 Xilinx Inc.
//... | 27.321429 | 80 | 0.605229 |
d8d336b7d950ba8da6e2731acc03269305ba9c66 | 3,136 | cpp | C++ | Misc/foobarnowplayingannouncer.cpp | exscape/lyricusqt | 69c9fc3c38833459493f136f65c9ede8940f0d77 | [
"MIT"
] | null | null | null | Misc/foobarnowplayingannouncer.cpp | exscape/lyricusqt | 69c9fc3c38833459493f136f65c9ede8940f0d77 | [
"MIT"
] | null | null | null | Misc/foobarnowplayingannouncer.cpp | exscape/lyricusqt | 69c9fc3c38833459493f136f65c9ede8940f0d77 | [
"MIT"
] | null | null | null | #include "foobarnowplayingannouncer.h"
#include <QDebug>
#include <QThread>
#include <QFile>
// This should be more than enough, since the struct is smaller
#define BUFSIZE 2048
struct songInfo {
// These are in UTF-8; use QString::fromUtf8() to create a QString
char artist[512];
char title[512];
char... | 34.461538 | 153 | 0.601403 |
d8d41db745f162d061bcb56fdf849608ac910537 | 1,179 | cpp | C++ | Shoot/src/Color.cpp | franticsoftware/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | 3 | 2019-10-04T19:44:44.000Z | 2021-07-27T15:59:39.000Z | Shoot/src/Color.cpp | franticsoftware/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | 1 | 2019-07-20T05:36:31.000Z | 2019-07-20T22:22:49.000Z | Shoot/src/Color.cpp | aminere/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | null | null | null | /*
Amine Rehioui
Created: May 1st 2010
*/
#include "Shoot.h"
#include "Color.h"
namespace shoot
{
// static variables initialization
Color Color::Red = Color(1.0f, 0.0f, 0.0f, 1.0f);
Color Color::Green = Color(0.0f, 1.0f, 0.0f, 1.0f);
Color Color::Blue = Color(0.0f, 0.0f, 1.0f, 1.0f);
Color Color::White = C... | 21.436364 | 59 | 0.617472 |
d8deb83ab03c9ca632a51a4283072a78d2a0add6 | 9,846 | cpp | C++ | src/main.cpp | katsumin/HomeM5 | ca0cf55e3d6a415d2a07d9adcc81b1f9c9a3b021 | [
"MIT"
] | null | null | null | src/main.cpp | katsumin/HomeM5 | ca0cf55e3d6a415d2a07d9adcc81b1f9c9a3b021 | [
"MIT"
] | null | null | null | src/main.cpp | katsumin/HomeM5 | ca0cf55e3d6a415d2a07d9adcc81b1f9c9a3b021 | [
"MIT"
] | null | null | null | #include <queue>
#include <M5Stack.h>
#include <time.h>
#include <WiFi.h>
#include <WiFiMulti.h>
#include <Ethernet.h>
#include <Wire.h>
#include <BME280_t.h> // import BME280 template library
#include "InfluxDb.h"
#include "smartmeter.h"
#include "config.h"
#include "debugView.h"
#include "FunctionButton.h"
#include "... | 24.132353 | 141 | 0.657323 |
d8df3c1daffa3d064eeca194082eebff5b91e34e | 311 | cpp | C++ | legion/engine/llri-dx/llri.cpp | Rythe-Interactive/Legion-LLRI | e0cc449cc8c2ba0701a73b8c07b80ccfd8f20477 | [
"MIT"
] | 16 | 2021-09-10T18:11:37.000Z | 2022-01-26T06:28:51.000Z | legion/engine/llri-dx/llri.cpp | Rythe-Interactive/Legion-LLRI | e0cc449cc8c2ba0701a73b8c07b80ccfd8f20477 | [
"MIT"
] | 13 | 2021-09-12T16:28:47.000Z | 2022-02-07T19:34:01.000Z | legion/engine/llri-dx/llri.cpp | Rythe-Interactive/Legion-LLRI | e0cc449cc8c2ba0701a73b8c07b80ccfd8f20477 | [
"MIT"
] | 1 | 2021-08-15T23:35:32.000Z | 2021-08-15T23:35:32.000Z | /**
* @file llri.cpp
* @copyright 2021-2021 Leon Brands. All rights served.
* @license: https://github.com/Legion-Engine/Legion-LLRI/blob/main/LICENSE
*/
#include <llri/llri.hpp>
namespace llri
{
[[nodiscard]] implementation getImplementation()
{
return implementation::DirectX12;
}
}
| 19.4375 | 75 | 0.678457 |
d8e4153c4406f004e7438070813d1b8ed7ad35ac | 958 | cpp | C++ | dev/test/simple_start_stop/main.cpp | Stiffstream/mosquitto_transport | b7bd85746b7b5ba9f96a9128a12292ebb0604454 | [
"BSD-3-Clause"
] | 3 | 2020-01-25T12:49:55.000Z | 2021-11-08T10:42:09.000Z | dev/test/simple_start_stop/main.cpp | Stiffstream/mosquitto_transport | b7bd85746b7b5ba9f96a9128a12292ebb0604454 | [
"BSD-3-Clause"
] | null | null | null | dev/test/simple_start_stop/main.cpp | Stiffstream/mosquitto_transport | b7bd85746b7b5ba9f96a9128a12292ebb0604454 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <mosquitto_transport/a_transport_manager.hpp>
#include <so_5/all.hpp>
using namespace std::chrono_literals;
void
do_test()
{
mosquitto_transport::lib_initializer_t mosq_lib;
so_5::launch( [&mosq_lib]( auto & env ) {
env.introduce_coop( [&mosq_lib]( so_5::coop_t & coop ) {
using ... | 19.16 | 58 | 0.627349 |
d8e694d86bf0df4afeb16f257b966127ed42f3fd | 867 | cpp | C++ | projects/abuild/cache/abi.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cache/abi.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cache/abi.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | #ifndef __clang__
export module abuild.cache:abi;
export import astl;
#endif
namespace abuild
{
//! The `ABI` represent the compiler toolchain
//! application binary interface.
export struct ABI
{
//! Processor architecture.
enum class Architecture
{
//! ARM
ARM,
//! Intel x86
... | 15.763636 | 50 | 0.558247 |
d8e8d67e6a22e721c27a4f9ef527f81eb4c477a2 | 1,201 | cpp | C++ | 9999/1197.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | null | null | null | 9999/1197.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | null | null | null | 9999/1197.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | 1 | 2022-01-11T05:03:52.000Z | 2022-01-11T05:03:52.000Z | #include <iostream>
#include <tuple>
#include <vector>
#include <queue>
using namespace std;
vector<pair<int, int>> graph[10001];
int visited[10001];
int main()
{
cin.tie(NULL)->sync_with_stdio(false);
int V, E;
cin >> V >> E;
for (int i = 0; i < E; i++)
{
int s, e, w;
cin >> s >>... | 24.510204 | 75 | 0.512073 |
d8e99a8f9376036a394248698698d57d76039d1d | 12,337 | cpp | C++ | GraphicsSandbox/Engine.cpp | UberCelloCzar/GraphicsSandbox | 3a96f99ca3693a67fdff69fdf7d338e8e5d21086 | [
"MIT"
] | null | null | null | GraphicsSandbox/Engine.cpp | UberCelloCzar/GraphicsSandbox | 3a96f99ca3693a67fdff69fdf7d338e8e5d21086 | [
"MIT"
] | null | null | null | GraphicsSandbox/Engine.cpp | UberCelloCzar/GraphicsSandbox | 3a96f99ca3693a67fdff69fdf7d338e8e5d21086 | [
"MIT"
] | null | null | null | #include "Engine.h"
#include "D11Graphics.h"
Engine::Engine()
{
}
Engine::~Engine()
{
}
void Engine::Initialize()
{
assetManager = new AssetManager();
graphics = new D11Graphics(); // Create whichever graphics system we're using and initialize it
graphics->Initialize();
GameSetup();
__int64 perfFreq;
Que... | 39.415335 | 258 | 0.739078 |
d8efad03b3048947dc4ca59b2e5113576c4760ba | 475 | cc | C++ | extensions/basic/types_bucket/types_bucket.cc | blockspacer/chromium_base_conan | b4749433cf34f54d2edff52e2f0465fec8cb9bad | [
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2020-12-22T05:48:31.000Z | 2022-02-08T19:49:49.000Z | extensions/basic/types_bucket/types_bucket.cc | blockspacer/chromium_base_conan | b4749433cf34f54d2edff52e2f0465fec8cb9bad | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2020-05-22T18:36:43.000Z | 2021-05-19T10:20:23.000Z | extensions/basic/types_bucket/types_bucket.cc | blockspacer/chromium_base_conan | b4749433cf34f54d2edff52e2f0465fec8cb9bad | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2019-12-06T11:48:16.000Z | 2021-09-16T04:44:47.000Z | #include "basic/types_bucket/types_bucket.h" // IWYU pragma: associated
#include <base/memory/singleton.h>
#include <base/no_destructor.h>
#include <base/task/post_task.h>
#include <base/threading/sequence_local_storage_slot.h>
#include <base/threading/sequenced_task_runner_handle.h>
#include <base/memory/ptr_util.h>
... | 21.590909 | 71 | 0.772632 |
d8f3c20502910b642f3ca733a9c5e5b8a24ad94c | 607 | cpp | C++ | C++/Dynamic_Programming/1003.cpp | SkydevilK/BOJ | 4b79a258c52aca24683531d64736b91cbdfca3f2 | [
"MIT"
] | null | null | null | C++/Dynamic_Programming/1003.cpp | SkydevilK/BOJ | 4b79a258c52aca24683531d64736b91cbdfca3f2 | [
"MIT"
] | null | null | null | C++/Dynamic_Programming/1003.cpp | SkydevilK/BOJ | 4b79a258c52aca24683531d64736b91cbdfca3f2 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
using namespace std;
int note_zero[41];
int note_one[41];
void dp()
{
for (int i = 2; i < 41; ++i)
{
note_zero[i] = note_zero[i - 2] + note_zero[i - 1];
note_one[i] = note_one[i - 2] + note_one[i - 1];
}
}
int main(void)
{
ios::sync_with_stdio(false);
memset(note_zero, -1, ... | 18.393939 | 53 | 0.578254 |
d8f5827ed2e61a8b336526ab372312d3a21186ff | 666 | hpp | C++ | Canteen.hpp | dianabacon/stalag-escape | 445085f1d95bec4190f29d72843bf4878d8f45ac | [
"MIT"
] | null | null | null | Canteen.hpp | dianabacon/stalag-escape | 445085f1d95bec4190f29d72843bf4878d8f45ac | [
"MIT"
] | null | null | null | Canteen.hpp | dianabacon/stalag-escape | 445085f1d95bec4190f29d72843bf4878d8f45ac | [
"MIT"
] | null | null | null | /*********************************************************************
** Program Filename: Canteen.cpp
** Author: Diana Bacon
** Date: 2015-12-05
** Description: Definition of the Canteen class. Functions and data
** related to the derived class for Canteen spaces.
********************************************... | 25.615385 | 71 | 0.510511 |
d8f5f664fe03cf939591e9af0b3f1e7f625f0439 | 2,430 | cc | C++ | tests/libtests/bc/obsolete/TestBoundaryConditionPoints.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/bc/obsolete/TestBoundaryConditionPoints.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/bc/obsolete/TestBoundaryConditionPoints.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://... | 30.759494 | 76 | 0.654321 |
d8f72b9194e0af9370f4ece7e39abd1393eef4a3 | 567 | hpp | C++ | src/palm/batch.hpp | leezhenghui/Mushroom | 8aed2bdd80453d856145925d067bef5ed9d10ee0 | [
"BSD-3-Clause"
] | 351 | 2016-10-12T14:06:09.000Z | 2022-03-24T14:53:54.000Z | src/palm/batch.hpp | leezhenghui/Mushroom | 8aed2bdd80453d856145925d067bef5ed9d10ee0 | [
"BSD-3-Clause"
] | 7 | 2017-03-07T01:49:16.000Z | 2018-07-27T08:51:54.000Z | src/palm/batch.hpp | UncP/Mushroom | 8aed2bdd80453d856145925d067bef5ed9d10ee0 | [
"BSD-3-Clause"
] | 62 | 2016-10-31T12:46:45.000Z | 2021-12-28T11:25:26.000Z | /**
* > Author: UncP
* > Github: www.github.com/UncP/Mushroom
* > License: BSD-3
* > Time: 2018-7-28 15:33:00
**/
#ifndef _BATCH_HPP_
#define _BATCH_HPP_
#include "../include/utility.hpp"
namespace Mushroom {
class KeySlice;
class Batch : private NoCopy
{
public:
static uint32_t Si... | 14.921053 | 50 | 0.643739 |
d8f7962309b2a67a96dd3175fe91d2d67fc5eb4e | 10,980 | cpp | C++ | project/src/main.cpp | PhuNH/hpc-lab | 25874fc36c87c57f2b6312d93897de9b898fbf26 | [
"MIT"
] | null | null | null | project/src/main.cpp | PhuNH/hpc-lab | 25874fc36c87c57f2b6312d93897de9b898fbf26 | [
"MIT"
] | null | null | null | project/src/main.cpp | PhuNH/hpc-lab | 25874fc36c87c57f2b6312d93897de9b898fbf26 | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
#include <mpi.h>
#include "tclap/CmdLine.h"
#include "typedefs.h"
#include "Simulator.h"
#include "Grid.h"
#include "InitialCondition.h"
#include "RankDependentOutput.h"
#include "GlobalMatrices.h"
#include "microkernels.h"
void computeAuxMatrices(GlobalConstants& globals)
{
d... | 37.220339 | 252 | 0.650546 |
d8f910b00400f6a61a3f8ce43feb3f07939971c1 | 912 | cpp | C++ | test/bench2_rosenbrock.cpp | marcorushdy/realGen | 2441cbb81d034137926c0f50c7dcdc6777329b76 | [
"MIT"
] | 16 | 2017-04-23T23:24:08.000Z | 2021-03-12T21:38:28.000Z | test/bench2_rosenbrock.cpp | marcorushdy/realGen | 2441cbb81d034137926c0f50c7dcdc6777329b76 | [
"MIT"
] | null | null | null | test/bench2_rosenbrock.cpp | marcorushdy/realGen | 2441cbb81d034137926c0f50c7dcdc6777329b76 | [
"MIT"
] | 6 | 2017-06-14T11:50:37.000Z | 2019-05-16T20:09:07.000Z | #include "testcommon.h"
#include "fitnessfunction.h"
class RosenbrockFitness : public FitnessFunction {
public:
RosenbrockFitness() {}
double eval(const RealGenotype &g) {
double dx1 = g.gene[0]*g.gene[0]-g.gene[1];
double dx2 = 1.0 - g.gene[0];
return 100.0*dx1*dx1+dx2*dx2;
... | 26.823529 | 68 | 0.639254 |
d8febc737fe1416c65cd87a7bace3dc194b673ca | 3,369 | cpp | C++ | source_code/system_sys/source_code/gui/Sys_Output_Flag_Dia.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_sys/source_code/gui/Sys_Output_Flag_Dia.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_sys/source_code/gui/Sys_Output_Flag_Dia.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | #include "Sys_Headers_Precompiled.h"
//#include "Sys_Output_Flag_Dia.h"
// Constructor
Sys_Output_Flag_Dia::Sys_Output_Flag_Dia(QWidget *parent) : QDialog(parent){
this->old_flag=false;
this->new_flag=false;
ui.setupUi(this);
ui.checkBox->setChecked(this->old_flag);
QObject::connect(ui.okButton, SIGNAL(clicked... | 30.908257 | 96 | 0.724844 |
2b045b93305594bb73add275c035977d2754913a | 322 | cpp | C++ | compendium/test_bundles/TestBundleDSDependentOptional/src/ServiceImpl.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | compendium/test_bundles/TestBundleDSDependentOptional/src/ServiceImpl.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | compendium/test_bundles/TestBundleDSDependentOptional/src/ServiceImpl.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | #include "ServiceImpl.hpp"
namespace dependent {
TestBundleDSDependentOptionalImpl::TestBundleDSDependentOptionalImpl(
const std::shared_ptr<test::TestBundleDSUpstreamDependency>& c)
: test::TestBundleDSDependent()
, ref(c)
{}
TestBundleDSDependentOptionalImpl::~TestBundleDSDependentOptionalImpl() =
default;
... | 24.769231 | 73 | 0.807453 |
2b04b3877e617f99a2f6f8ab7d0f3c076b5873a2 | 373 | cpp | C++ | Player.cpp | samapraku/blocktrix_project | bc70e382d218bd1bd85c68258487c33e0506a479 | [
"BSD-2-Clause"
] | null | null | null | Player.cpp | samapraku/blocktrix_project | bc70e382d218bd1bd85c68258487c33e0506a479 | [
"BSD-2-Clause"
] | null | null | null | Player.cpp | samapraku/blocktrix_project | bc70e382d218bd1bd85c68258487c33e0506a479 | [
"BSD-2-Clause"
] | null | null | null | /*
* Institute of Automation - University of Bremen
*BLOCKTRIX GAME AUTO PLAYER
* GROUP MEMBERS:
* ERIC GAMOR
* JIBIN JOHN
* SAMUEL APRAKU
*
*/
#include "Player.h"
void Player::Play(IBoard *pBoard)
{
playerBoard = dynamic_cast<BlockTrixBoard *>(pBoard); // cast pBoard to BlockTrixBoard
playerBoard->... | 20.722222 | 91 | 0.702413 |
2b0b1a3c8acf26e971ecac158c0b31e96a01c8c3 | 3,581 | cpp | C++ | src/orocos_kinematics_dynamics/orocos_kdl/src/treeiksolverpos_nr_jl.cpp | matchRos/simulation_multirobots | 286c5add84d521ad371b2c8961dea872c34e7da2 | [
"BSD-2-Clause"
] | 742 | 2017-07-05T02:49:36.000Z | 2022-03-30T12:55:43.000Z | src/orocos_kinematics_dynamics/orocos_kdl/src/treeiksolverpos_nr_jl.cpp | matchRos/simulation_multirobots | 286c5add84d521ad371b2c8961dea872c34e7da2 | [
"BSD-2-Clause"
] | 73 | 2017-07-06T12:50:51.000Z | 2022-03-07T08:07:07.000Z | src/orocos_kinematics_dynamics/orocos_kdl/src/treeiksolverpos_nr_jl.cpp | matchRos/simulation_multirobots | 286c5add84d521ad371b2c8961dea872c34e7da2 | [
"BSD-2-Clause"
] | 425 | 2017-07-04T22:03:29.000Z | 2022-03-29T06:59:06.000Z | // Copyright (C) 2007-2008 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// Copyright (C) 2008 Mikael Mayer
// Copyright (C) 2008 Julia Jesse
// Version: 1.0
// Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be... | 42.129412 | 106 | 0.586987 |
2b0c787652070af035f365871a15e179c7f10756 | 505 | cpp | C++ | src/test/config/schema.cpp | mpoeter/config | 9a20b1dde685d42190310fa51ecd271e66d90ea0 | [
"MIT"
] | 1 | 2020-03-17T20:47:52.000Z | 2020-03-17T20:47:52.000Z | src/test/config/schema.cpp | mpoeter/config | 9a20b1dde685d42190310fa51ecd271e66d90ea0 | [
"MIT"
] | null | null | null | src/test/config/schema.cpp | mpoeter/config | 9a20b1dde685d42190310fa51ecd271e66d90ea0 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/config/
#include <tao/config.hpp>
#include <tao/config/schema.hpp>
int main()
{
const auto tcs = tao::config::schema::from_file( "tests/schema.tcs" );
const auto data = tao::config::f... | 28.055556 | 76 | 0.645545 |
2b0dbed5783e7ff3c89e007e407fb39d6512d7d5 | 1,467 | cpp | C++ | src/mayaToCorona/src/Corona/CoronaRoundCorners.cpp | haggi/OpenMaya | 746e0740f480d9ef8d2173f31b3c99b9b0ea0d24 | [
"MIT"
] | 42 | 2015-01-03T15:07:25.000Z | 2021-12-09T03:56:59.000Z | src/mayaToCorona/src/Corona/CoronaRoundCorners.cpp | haggi/OpenMaya | 746e0740f480d9ef8d2173f31b3c99b9b0ea0d24 | [
"MIT"
] | 66 | 2015-01-02T13:28:44.000Z | 2022-03-16T14:00:57.000Z | src/mayaToCorona/src/Corona/CoronaRoundCorners.cpp | haggi/OpenMaya | 746e0740f480d9ef8d2173f31b3c99b9b0ea0d24 | [
"MIT"
] | 12 | 2015-02-07T05:02:17.000Z | 2020-07-10T17:21:44.000Z | #include "Corona.h"
#include "CoronaRoundCorners.h"
#include <maya/MFnDependencyNode.h>
#include "utilities/attrTools.h"
#include "world.h"
#include "renderGlobals.h"
RoundCorners::RoundCorners(MObject shaderObject)
{
MFnDependencyNode depFn(shaderObject);
radius = getFloatAttr("radius", depFn, 0.0f);
samplesCount ... | 28.764706 | 119 | 0.748466 |
2b0e369b3ee9925c6967788de2cba07a22e4465a | 842 | cc | C++ | CPP/biweekly-contest-33/No1.cc | hxz1998/funny_leetcode | 1d2c425af09b57a030fc018ddc1e1a5ffb966cd0 | [
"Apache-2.0"
] | null | null | null | CPP/biweekly-contest-33/No1.cc | hxz1998/funny_leetcode | 1d2c425af09b57a030fc018ddc1e1a5ffb966cd0 | [
"Apache-2.0"
] | null | null | null | CPP/biweekly-contest-33/No1.cc | hxz1998/funny_leetcode | 1d2c425af09b57a030fc018ddc1e1a5ffb966cd0 | [
"Apache-2.0"
] | null | null | null | /**
* Created by Xiaozhong on 2020/8/22.
* Copyright (c) 2020/8/22 Xiaozhong. All rights reserved.
*/
#include "string"
#include "vector"
#include "iostream"
#include "algorithm"
using namespace std;
class Solution {
public:
string thousandSeparator(int n) {
if (n == 0) return "0";
if (n < 1000... | 23.388889 | 58 | 0.511876 |
2b0f385d3a233869388c2265c1633d8543717815 | 46,960 | cpp | C++ | Breeder/BR.cpp | wolqws/sws | 4086745d38cc7375ee38843214a63bd8d285a84d | [
"MIT",
"Unlicense"
] | null | null | null | Breeder/BR.cpp | wolqws/sws | 4086745d38cc7375ee38843214a63bd8d285a84d | [
"MIT",
"Unlicense"
] | null | null | null | Breeder/BR.cpp | wolqws/sws | 4086745d38cc7375ee38843214a63bd8d285a84d | [
"MIT",
"Unlicense"
] | null | null | null | /*****************************************************************************
/ BR.cpp
/
/ Copyright (c) 2012-2014 Dominik Martin Drzic
/ http://forum.cockos.com/member.php?u=27094
/ https://code.google.com/p/sws-extension
/
/ Permission is hereby granted, free of charge, to any person obtaining a copy
/ of th... | 129.723757 | 246 | 0.549127 |
2b0f49c1638c7ea6bf8f3d63268c53943d885bd0 | 21,707 | hpp | C++ | src/character/character.hpp | Galfurian/RadMud | 1362cb0ee1b7a17386e57a98e29dd8baeea75af3 | [
"MIT"
] | 18 | 2016-05-26T18:11:31.000Z | 2022-02-10T20:00:52.000Z | src/character/character.hpp | Galfurian/RadMud | 1362cb0ee1b7a17386e57a98e29dd8baeea75af3 | [
"MIT"
] | null | null | null | src/character/character.hpp | Galfurian/RadMud | 1362cb0ee1b7a17386e57a98e29dd8baeea75af3 | [
"MIT"
] | 2 | 2016-06-30T15:20:01.000Z | 2020-08-27T18:28:33.000Z | /// @file character.hpp
/// @brief Define all the methods need to manipulate a character.
/// @details It's the master class for both Player and Mobile, here are defined
/// all the common methods needed to manipulate every dynamic living
/// beeing that are playing.
/// @author Enrico Fraccar... | 39.111712 | 89 | 0.642466 |
2b108cb66775235bc0ce8abd982dc031aad83e6d | 760 | hpp | C++ | TurbulentArena/DebugWindow.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | 2 | 2017-02-03T04:30:29.000Z | 2017-03-27T19:33:38.000Z | TurbulentArena/DebugWindow.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | null | null | null | TurbulentArena/DebugWindow.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | null | null | null | //DebugWindow.hpp
#pragma once
#include <sstream>
namespace bjoernligan
{
class DebugWindow : public sf::Drawable
{
private:
DebugWindow(const bool &p_bActive);
DebugWindow(const DebugWindow&);
DebugWindow& operator=(const DebugWindow&);
public:
typedef std::unique_ptr<DebugWindow> Ptr;
static Ptr Crea... | 22.352941 | 69 | 0.734211 |
2b1308ba57844e88e867c04472f9112a469d6e1b | 2,512 | cpp | C++ | code/src/pdflib/page_tree.cpp | jgresula/jagpdf | 6c36958b109e6522e6b57d04144dd83c024778eb | [
"MIT"
] | 54 | 2015-02-16T14:25:16.000Z | 2022-03-16T07:54:25.000Z | code/src/pdflib/page_tree.cpp | jgresula/jagpdf | 6c36958b109e6522e6b57d04144dd83c024778eb | [
"MIT"
] | null | null | null | code/src/pdflib/page_tree.cpp | jgresula/jagpdf | 6c36958b109e6522e6b57d04144dd83c024778eb | [
"MIT"
] | 30 | 2015-03-05T08:52:25.000Z | 2022-02-17T13:49:15.000Z | // Copyright (c) 2005-2009 Jaroslav Gresula
//
// Distributed under the MIT license (See accompanying file
// LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
//
#include "precompiled.h"
#include "page_tree.h"
#include "page_tree_node.h"
#include "page_object.h"
#include <core/generic/refcountedimpl.h>
#include ... | 23.045872 | 78 | 0.617834 |
2b154804a41ee453695ad335d17a303a816c4e21 | 402 | hpp | C++ | raptor/gallery/par_matrix_market.hpp | lukeolson/raptor | 526c88d0801634e6fb41375ae077f2d4aa3241a4 | [
"BSD-2-Clause"
] | 25 | 2017-11-20T21:45:43.000Z | 2019-01-27T15:03:25.000Z | raptor/gallery/par_matrix_market.hpp | haoxiangmiao/raptor | 866977b8166e39675a6a1fb883c57b7b9395d32f | [
"BSD-2-Clause"
] | 3 | 2017-11-21T01:20:20.000Z | 2018-11-16T17:33:06.000Z | raptor/gallery/par_matrix_market.hpp | haoxiangmiao/raptor | 866977b8166e39675a6a1fb883c57b7b9395d32f | [
"BSD-2-Clause"
] | 5 | 2017-11-20T22:03:57.000Z | 2018-12-05T10:30:22.000Z | /*
* Matrix Market I/O library for ANSI C
*
* See http://math.nist.gov/MatrixMarket for details.
*
*
*/
#ifndef PAR_MM_IO_H
#define PAR_MM_IO_H
#include "matrix_market.hpp"
#include "core/types.hpp"
#include "core/par_matrix.hpp"
using namespace raptor;
/* high level routines */
ParCSRMatrix* read_par_mm(cons... | 15.461538 | 54 | 0.723881 |
2b15ae0c66fac4c2c4afbc7a6ce2c233d8fe5be9 | 867 | hpp | C++ | include/basic3d/zbuffer.hpp | MasterQ32/Basic3D | 1da1ad64116018afe2b97372d9632d0b72b1ff95 | [
"MIT"
] | 1 | 2018-11-15T22:29:55.000Z | 2018-11-15T22:29:55.000Z | include/basic3d/zbuffer.hpp | MasterQ32/Basic3D | 1da1ad64116018afe2b97372d9632d0b72b1ff95 | [
"MIT"
] | null | null | null | include/basic3d/zbuffer.hpp | MasterQ32/Basic3D | 1da1ad64116018afe2b97372d9632d0b72b1ff95 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <array>
#include <limits>
namespace Basic3D
{
//! Provides a basic z-buffer
template<int WIDTH, int HEIGHT, typename Depth = std::uint16_t>
class ZBuffer
{
public:
typedef Depth depth_t;
private:
std::array<depth_t, WIDTH ... | 23.432432 | 74 | 0.509804 |
2b18c1a58e5c452db93b6d20e5409e76dce55d31 | 1,331 | cpp | C++ | 109. Convert Sorted List to Binary Search Tree/solution.cpp | KailinLi/LeetCode-Solutions | bad6aa401b290a203a572362e63e0b1085f7fc36 | [
"MIT"
] | 2 | 2017-03-27T09:53:32.000Z | 2017-04-07T07:48:54.000Z | 109. Convert Sorted List to Binary Search Tree/solution.cpp | KailinLi/LeetCode-Solutions | bad6aa401b290a203a572362e63e0b1085f7fc36 | [
"MIT"
] | null | null | null | 109. Convert Sorted List to Binary Search Tree/solution.cpp | KailinLi/LeetCode-Solutions | bad6aa401b290a203a572362e63e0b1085f7fc36 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), le... | 26.098039 | 59 | 0.486852 |
2b24d50623f5ba9c0ed59fd55b0cb00c616c6aa3 | 2,353 | tpp | C++ | src/algorithms/rem_factorial_EltZZ.tpp | adienes/remainder-tree | 0aa76214ab6f2a4389ec45a239ea660749989a90 | [
"MIT"
] | null | null | null | src/algorithms/rem_factorial_EltZZ.tpp | adienes/remainder-tree | 0aa76214ab6f2a4389ec45a239ea660749989a90 | [
"MIT"
] | null | null | null | src/algorithms/rem_factorial_EltZZ.tpp | adienes/remainder-tree | 0aa76214ab6f2a4389ec45a239ea660749989a90 | [
"MIT"
] | null | null | null | // included by rem_factorial_custom.tpp (in case we want to change the file location)
#include <cassert>
#include <NTL/ZZ_pX.h>
#include <NTL/matrix.h>
#include "../elements/element.hpp"
#include "factorial_engine.hpp"
using NTL::ZZ;
using NTL::ZZ_p;
using NTL::ZZ_pX;
using NTL::Mat;
Elt<ZZ> calculate_factorial(l... | 30.166667 | 139 | 0.576711 |
2b2777a48d51b5b62324cc2b275bf89676eaf08a | 9,032 | cpp | C++ | tacmap/DelaunayTriangulation.cpp | parrishmyers/tacmap | 21c494723e482b3622362278144613819e21dafc | [
"MIT"
] | null | null | null | tacmap/DelaunayTriangulation.cpp | parrishmyers/tacmap | 21c494723e482b3622362278144613819e21dafc | [
"MIT"
] | null | null | null | tacmap/DelaunayTriangulation.cpp | parrishmyers/tacmap | 21c494723e482b3622362278144613819e21dafc | [
"MIT"
] | null | null | null |
#include <fstream>
#include <boost/format.hpp>
#include "DelaunayTriangulation.h"
#include "DT_Circle.h"
bool isContained(Triangle * t, Vertex * p);
bool inCircle(Triangle *a, Vertex * pr);
bool inCircle(Vertex * a, Vertex * b, Vertex * c, Vertex * d);
Circle circleForPoints(Vertex * a, Vertex * b, Verte... | 26.961194 | 100 | 0.494464 |
2b27eac05c8402f32f1dbad10a6b1ff5dc8f5ac5 | 2,363 | cpp | C++ | codeforces/round-278/div-2/candy_boxes.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | codeforces/round-278/div-2/candy_boxes.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | codeforces/round-278/div-2/candy_boxes.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
inline void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
inline void solve_with_four_left_boxes(const vector<unsigned int>& boxes)
{
if ((3 * boxes[0] == boxes[3]) && (boxes[1] + boxes[2] == ... | 19.211382 | 76 | 0.493017 |
1a7098538ce52920df14b974fe6a6a1f795fb3b6 | 396 | cpp | C++ | src/ClosestBinarySearchTreeValue.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/ClosestBinarySearchTreeValue.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/ClosestBinarySearchTreeValue.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "ClosestBinarySearchTreeValue.hpp"
#include <cmath>
using namespace std;
int ClosestBinarySearchTreeValue::closestValue(TreeNode *root, double target) {
int closest = root->val;
while (root) {
if (abs(root->val - target) < abs(closest - target))
closest = root->val;
root ... | 26.4 | 79 | 0.643939 |
1a751dfcaf4dbf84cbd4870d1bb0d7be2d22a8ed | 11,084 | cpp | C++ | src/lib/serialport/qserialportinfo_mac.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 8 | 2015-11-16T19:15:55.000Z | 2021-02-17T23:58:33.000Z | src/lib/serialport/qserialportinfo_mac.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 5 | 2015-11-12T00:19:59.000Z | 2020-03-23T10:18:19.000Z | src/lib/serialport/qserialportinfo_mac.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 11 | 2015-03-15T23:02:48.000Z | 2021-09-05T14:17:13.000Z | /****************************************************************************
**
** Copyright (C) 2011-2012 Denis Shienkov <denis.shienkov@gmail.com>
** Copyright (C) 2011 Sergey Belyashov <Sergey.Belyashov@gmail.com>
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
** Contact: http://www.qt-project.org/legal
**
** Th... | 40.600733 | 138 | 0.480603 |
1a775015d67a723319faa41188ea368f93b840f6 | 764 | cpp | C++ | greedy_problems/maximum_frequency_of_element.cpp | sanathvernekar/Routine_codes | a898ca7e79cf39c289cb2fefaf764c9f8e0eb331 | [
"MIT"
] | null | null | null | greedy_problems/maximum_frequency_of_element.cpp | sanathvernekar/Routine_codes | a898ca7e79cf39c289cb2fefaf764c9f8e0eb331 | [
"MIT"
] | null | null | null | greedy_problems/maximum_frequency_of_element.cpp | sanathvernekar/Routine_codes | a898ca7e79cf39c289cb2fefaf764c9f8e0eb331 | [
"MIT"
] | null | null | null | #include <vector>
#include <map>
#include<bits/stdc++.h>
using namespace std;
long long int max_frequency(vector<long long int> const& v)
{
map<long long int, long long int> frequencyMap;
long long int maxFrequency = 0;
long long int mostFrequentElement = 0;
for (long long int x : v)
{
lo... | 21.222222 | 59 | 0.537958 |
1a7d0a4b1f6fbfbd04070f3df6da1bcfbd53a229 | 1,077 | cpp | C++ | STRINGS/Upper case conversion.cpp | snanacha/Coding-questions | 18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d | [
"MIT"
] | null | null | null | STRINGS/Upper case conversion.cpp | snanacha/Coding-questions | 18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d | [
"MIT"
] | 1 | 2021-03-30T14:00:56.000Z | 2021-03-30T14:00:56.000Z | STRINGS/Upper case conversion.cpp | snanacha/Coding-questions | 18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d | [
"MIT"
] | null | null | null | /*
Upper case conversion
School Accuracy: 72.51% Submissions: 1152 Points: 0
Given a string str, convert the first letter of each word in the string to uppercase.
Example 1:
Input:
str = "i love programming"
Output: "I Love Programming"
Explanation:
'I', 'L', 'P' are the first letters of
the three word... | 22.914894 | 150 | 0.622098 |
1a7d59aa8da04b3bc9b6a7c6c73cdfb020f12695 | 2,133 | cpp | C++ | examples/sample2.cpp | SoultatosStefanos/preconditions | 7c306219153e32afe6a915178f1e1c9fa1bdac8b | [
"MIT"
] | 1 | 2021-09-07T21:10:05.000Z | 2021-09-07T21:10:05.000Z | examples/sample2.cpp | SoultatosStefanos/preconditions | 7c306219153e32afe6a915178f1e1c9fa1bdac8b | [
"MIT"
] | null | null | null | examples/sample2.cpp | SoultatosStefanos/preconditions | 7c306219153e32afe6a915178f1e1c9fa1bdac8b | [
"MIT"
] | null | null | null | /**
* @file sample2.cpp
* @author Soultatos Stefanos (stefanoss1498@gmail.com)
* @brief Contains sample code for the filters
* @version 2.0
* @date 2021-10-29
*
* @copyright Copyright (c) 2021
*
*/
#include "preconditions/filters.hpp"
#include <array>
#include <string>
namespace {
// Instead of:
//
// if (b.... | 20.708738 | 76 | 0.586498 |
1a7e496044132273825225cbae15412343883b22 | 1,899 | cpp | C++ | Odyssey/OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.cpp | paulburgess1357/Odyssey | ad351d1df7eeb1b4223ffbdf91ec7e3307b87983 | [
"MIT"
] | 1 | 2022-03-10T02:45:04.000Z | 2022-03-10T02:45:04.000Z | Odyssey/OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.cpp | paulburgess1357/Odyssey | ad351d1df7eeb1b4223ffbdf91ec7e3307b87983 | [
"MIT"
] | null | null | null | Odyssey/OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.cpp | paulburgess1357/Odyssey | ad351d1df7eeb1b4223ffbdf91ec7e3307b87983 | [
"MIT"
] | null | null | null | #include "OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.h"
#include "OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/Exceptions.h"
#include "OdysseyVulkanCore/OdysseyVulkanCore/Initialize/CreateInfo.h"
#include "OdysseyVulkanCore/OdysseyVulkanCore/Utility/Macros.h"
#include <... | 52.75 | 114 | 0.796735 |
1a7e908bd3cc80291942a076353938cb2bee4a7b | 7,925 | cpp | C++ | avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoCaptureDevice.cpp | lectureStudio/avdev | 02b980705565ed2dcf3eacc4992bdf2f244f24a0 | [
"Apache-2.0"
] | 1 | 2021-08-10T02:59:58.000Z | 2021-08-10T02:59:58.000Z | avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoCaptureDevice.cpp | lectureStudio/avdev | 02b980705565ed2dcf3eacc4992bdf2f244f24a0 | [
"Apache-2.0"
] | null | null | null | avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoCaptureDevice.cpp | lectureStudio/avdev | 02b980705565ed2dcf3eacc4992bdf2f244f24a0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Alex Andres
*
* 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 to... | 26.155116 | 107 | 0.720505 |
1a8046f70fc3a8f51fa385ecdcfba6767d5f840f | 313 | cpp | C++ | Codeforces Round 323/Asphalting Roads/main.cpp | sqc1999-oi/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | 1 | 2016-07-18T12:05:56.000Z | 2016-07-18T12:05:56.000Z | Codeforces Round 323/Asphalting Roads/main.cpp | sqc1999/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | null | null | null | Codeforces Round 323/Asphalting Roads/main.cpp | sqc1999/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
bool vh[51], vv[51];
int main()
{
ios::sync_with_stdio(false);
int n;
cin >> n;
for (int i = 1; i <= n*n; i++)
{
int h, v;
cin >> h >> v;
if (!vh[h] && !vv[v])
{
vh[h] = vv[v] = true;
cout << i << ' ';
}
}
}
| 14.904762 | 32 | 0.456869 |
1a8b5129949c5c0ff7268512f53daab7dcbdecd0 | 433 | cpp | C++ | binary_search.cpp | ankitelectronicsenemy/CppCodes | e2f274330c12e59a6c401c162e8d899690db0e14 | [
"Apache-2.0"
] | null | null | null | binary_search.cpp | ankitelectronicsenemy/CppCodes | e2f274330c12e59a6c401c162e8d899690db0e14 | [
"Apache-2.0"
] | null | null | null | binary_search.cpp | ankitelectronicsenemy/CppCodes | e2f274330c12e59a6c401c162e8d899690db0e14 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int binary_search(int arr[],int n,int key)
{
int s=0;
int e=n-1;
while(s<=e)
{
int mid=(s+e)/2;
if(arr[mid]==key)
{
return mid;
}
if(arr[mid]>key)
{
e=mid-1;
}
else if(arr[mid]<key)
{
s=mid+1;
}
else
return -1 ;
}
return -1;
}
int main()
{
int n;
cin>>n... | 8.836735 | 42 | 0.556582 |
1a8c74b4b5e597e0cc6288bffb2bbdcec3b8371b | 2,585 | cpp | C++ | VC2010Samples/ATL/Advanced/mfcatl/objone.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/ATL/Advanced/mfcatl/objone.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/ATL/Advanced/mfcatl/objone.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // ObjOne.cpp : implementation file
//
// This is a part of the Active Template Library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Active Template Library Reference and related
// electronic documentation provided with the library.
//... | 28.406593 | 125 | 0.716441 |
1a8e101fc9fd68633703ee9420f4a7abe1788773 | 954 | cpp | C++ | src/Gui/ExportToDotDialog.cpp | loganek/gstcreator | 619f1a6f1ee39c7c5b883c0a676cd490f59ac81b | [
"BSD-3-Clause"
] | 1 | 2015-10-10T23:21:00.000Z | 2015-10-10T23:21:00.000Z | src/Gui/ExportToDotDialog.cpp | loganek/gstcreator | 619f1a6f1ee39c7c5b883c0a676cd490f59ac81b | [
"BSD-3-Clause"
] | null | null | null | src/Gui/ExportToDotDialog.cpp | loganek/gstcreator | 619f1a6f1ee39c7c5b883c0a676cd490f59ac81b | [
"BSD-3-Clause"
] | null | null | null | /*
* gstcreator
* ExportToDotDialog.cpp
*
* Created on: 24 sty 2014
* Author: Marcin Kolny <marcin.kolny@gmail.com>
*/
#include "ExportToDotDialog.h"
#include "ui_ExportToDotDialog.h"
#include <QCheckBox>
#include <QFileDialog>
#include <cstdlib>
ExportToDotDialog::ExportToDotDialog(QWidget *parent)
: ... | 20.73913 | 61 | 0.715933 |
1a8e647f78fe3b7f6ef04a0cdfd2407338557fae | 1,191 | cpp | C++ | components/system/sources/platform/android/android_crash_processor.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/system/sources/platform/android/android_crash_processor.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/system/sources/platform/android/android_crash_processor.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "shared.h"
using namespace syslib;
using namespace syslib::android;
namespace
{
typedef void (*sighandler_t)(int);
sighandler_t prev_segv_handler = 0; //предыдущий обработчик сигнала SEGV
// дамп карты памяти
void dump_maps ()
{
static char line [256];
FILE *fp = fopen ("/proc/self... | 16.315068 | 115 | 0.56927 |
1a8f43595b382c481b51b8c6c60c53c69bd2f49c | 1,532 | cpp | C++ | blades/xbmc/xbmc/filesystem/SFTPDirectory.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/xbmc/xbmc/filesystem/SFTPDirectory.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/xbmc/xbmc/filesystem/SFTPDirectory.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* 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; either version 2, or (at your option)
* any later version.
*
* ... | 27.854545 | 99 | 0.727807 |
1a94bd2c1627daf0ff179c9c0c565a1262e87623 | 1,528 | cpp | C++ | winml/lib/Api.Image/DisjointBufferHelpers.cpp | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 18 | 2020-05-19T12:48:07.000Z | 2021-04-28T06:41:57.000Z | winml/lib/Api.Image/DisjointBufferHelpers.cpp | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 61 | 2021-05-31T05:15:41.000Z | 2022-03-29T22:34:33.000Z | winml/lib/Api.Image/DisjointBufferHelpers.cpp | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 9 | 2021-05-14T20:17:26.000Z | 2022-03-20T11:44:29.000Z | #include "pch.h"
#include "inc/DisjointBufferHelpers.h"
namespace _winml {
static void LoadOrStoreDisjointBuffers(
bool should_load_buffer,
size_t num_buffers,
std::function<gsl::span<byte>(size_t)> get_buffer,
gsl::span<byte>& buffer_span) {
auto size_in_bytes = buffer_span.size_bytes();
auto buf... | 31.183673 | 97 | 0.725131 |
1a98d628ebe2402e2871ca4d09c060ce8f3c353c | 726 | cpp | C++ | homomorphic_evaluation/src/main.cpp | dklee0501/PLDI_20_242_artifact_publication | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 1 | 2022-02-14T02:37:58.000Z | 2022-02-14T02:37:58.000Z | homomorphic_evaluation/src/main.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | null | null | null | homomorphic_evaluation/src/main.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | null | null | null | #include "FHE.h"
#include <timing.h>
#include <EncryptedArray.h>
#include <NTL/lzz_pXFactoring.h>
#include <vector>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <string>
#include <string.h>
#include <fstream>
#include <vector>
#include "NTL/ZZ_p.h"
#include <NTL/ZZ_pX.h>
#include <NTL/vec_ZZ_p.h>
#... | 20.742857 | 58 | 0.633609 |
1a9f73f10763b2b4da74948126545e7293c229b3 | 793 | cpp | C++ | main.cpp | anasteyshakoshman/lab12 | 205071d7e28fea46aae604584d9b29f467ee7c57 | [
"MIT"
] | null | null | null | main.cpp | anasteyshakoshman/lab12 | 205071d7e28fea46aae604584d9b29f467ee7c57 | [
"MIT"
] | null | null | null | main.cpp | anasteyshakoshman/lab12 | 205071d7e28fea46aae604584d9b29f467ee7c57 | [
"MIT"
] | null | null | null | #include <iostream>
#include <functional>
#include <future>
#include <thread>
#include <curl/curl.h>
void GetResponse(std::future<char*> &fut)
{
CURL *curl;
CURLcode res;
char *url = fut.get();
curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_seto... | 20.868421 | 64 | 0.624212 |
1aa048d51d3dc8d3221ace15e82671a0cb56b13d | 984 | cpp | C++ | Online Judges/HackerEarth/Grid.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Online Judges/HackerEarth/Grid.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Online Judges/HackerEarth/Grid.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
using namespace std;
const int maxN = 1e3;
int n, m, q, si = 0, sj = 0;
char grid[maxN][maxN + 1];
int dist[maxN][maxN], dy[4] = {0, 0, 1, -1}, dx[4] = {1, -1, 0, 0};
int valid(int i, int j)
{
return(!(i < 0 || i >= n || j < 0 || j >= m));
}
void bfs()
{
memset(dist, -1, sizeof(dist));
... | 24.6 | 111 | 0.442073 |
1aa123e07b2c41de5af220ab5574fa59ba0e2940 | 6,306 | cpp | C++ | src/RcppExports.cpp | shriv/edgebundle | d1c4801cb69133ad02a0112712afa7f13236cf23 | [
"MIT"
] | null | null | null | src/RcppExports.cpp | shriv/edgebundle | d1c4801cb69133ad02a0112712afa7f13236cf23 | [
"MIT"
] | null | null | null | src/RcppExports.cpp | shriv/edgebundle | d1c4801cb69133ad02a0112712afa7f13236cf23 | [
"MIT"
] | null | null | null | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(... | 49.265625 | 224 | 0.771646 |
1aa1ca3764f44acc65714469fd96138ceacc60c5 | 1,534 | cpp | C++ | MPAGSCipher/CaesarCipher.cpp | MPAGS-CPP-2019/mpags-day-3-rrStein | e4ff5e2023dbb8e4a7981b25c7d11811ead13c0c | [
"MIT"
] | null | null | null | MPAGSCipher/CaesarCipher.cpp | MPAGS-CPP-2019/mpags-day-3-rrStein | e4ff5e2023dbb8e4a7981b25c7d11811ead13c0c | [
"MIT"
] | null | null | null | MPAGSCipher/CaesarCipher.cpp | MPAGS-CPP-2019/mpags-day-3-rrStein | e4ff5e2023dbb8e4a7981b25c7d11811ead13c0c | [
"MIT"
] | null | null | null | #include "CaesarCipher.hpp"
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
// #include "RunCaesarCipher.hpp"
// #include "RunCaesarCipher.cpp"
CaesarCipher::CaesarCipher(const std::string &caesar_key)
: caesar_key_{std::stoul(caesar_key)} {}
CaesarCipher::CaesarCipher(const size_t &caes... | 30.68 | 79 | 0.656454 |
1aaa3c3ebc0ac201b16987d8482409b46de800bb | 2,512 | hpp | C++ | include/graphplan/Action.hpp | aldukeman/graphplan | 33b575a75aa25243e0a3bc658a7932e75a1ef2ef | [
"MIT"
] | null | null | null | include/graphplan/Action.hpp | aldukeman/graphplan | 33b575a75aa25243e0a3bc658a7932e75a1ef2ef | [
"MIT"
] | 1 | 2016-01-13T20:42:26.000Z | 2022-03-10T02:14:49.000Z | include/graphplan/Action.hpp | aldukeman/graphplan | 33b575a75aa25243e0a3bc658a7932e75a1ef2ef | [
"MIT"
] | 1 | 2019-08-24T10:25:44.000Z | 2019-08-24T10:25:44.000Z | /**
* The MIT License (MIT)
*
* Copyright (c) 2014 Anton Dukeman
*
* 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 ... | 27.604396 | 80 | 0.705414 |
1aad3a3ec328941ebf17269947721d86450d3671 | 1,836 | cpp | C++ | test/stc/test-vcs.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 9 | 2016-01-10T20:59:02.000Z | 2019-01-09T14:18:13.000Z | test/stc/test-vcs.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 31 | 2015-01-30T17:46:17.000Z | 2017-03-04T17:33:50.000Z | test/stc/test-vcs.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 2 | 2015-04-05T08:45:22.000Z | 2018-08-24T06:43:24.000Z | ////////////////////////////////////////////////////////////////////////////////
// Name: test-vcs.cpp
// Purpose: Implementation for wex unit testing
// Author: Anton van Wezenbeek
// Copyright: (c) 2021 Anton van Wezenbeek
////////////////////////////////////////////////////////////////////////////////
#in... | 27 | 80 | 0.582244 |
1ab07d703b2db70916abe6b16f78f7bd63606c4b | 2,219 | cpp | C++ | contract/lite-client/tddb/td/db/utils/FileSyncState.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | 5 | 2019-10-15T18:26:06.000Z | 2020-05-09T14:09:49.000Z | contract/lite-client/tddb/td/db/utils/FileSyncState.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | null | null | null | contract/lite-client/tddb/td/db/utils/FileSyncState.cpp | TONCommunity/ton-sync-payments-channel | 2e5cd4902406923fdba32b8309ab8c40db3ae5bc | [
"MIT"
] | 2 | 2020-07-24T16:09:02.000Z | 2021-08-18T17:08:28.000Z | /*
This file is part of TON Blockchain Library.
TON Blockchain Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later ver... | 32.632353 | 83 | 0.741325 |
1ab2a2b907d33254514ee46febe49a69ed08a539 | 3,229 | cpp | C++ | Source/Core/BuildCommon/BakeModel.cpp | schuttejoe/ShootyEngine | 56a7fab5a479ec93d7f641bb64b8170f3b0d3095 | [
"MIT"
] | 81 | 2018-07-31T17:13:47.000Z | 2022-03-03T09:24:22.000Z | Source/Core/BuildCommon/BakeModel.cpp | schuttejoe/ShootyEngine | 56a7fab5a479ec93d7f641bb64b8170f3b0d3095 | [
"MIT"
] | 2 | 2018-10-15T04:39:43.000Z | 2019-12-05T03:46:50.000Z | Source/Core/BuildCommon/BakeModel.cpp | schuttejoe/ShootyEngine | 56a7fab5a479ec93d7f641bb64b8170f3b0d3095 | [
"MIT"
] | 9 | 2018-10-11T06:32:12.000Z | 2020-10-01T03:46:37.000Z | //=================================================================================================================================
// Joe Schutte
//=================================================================================================================================
#include "BuildCommon/BakeModel.h"
#incl... | 52.934426 | 131 | 0.557138 |
1ab3c6a1df288059f40f05ae58d6ee12e894cd73 | 1,037 | cpp | C++ | tests/fixture/test_assert.cpp | sugawaray/filemanager | 3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1 | [
"MIT"
] | null | null | null | tests/fixture/test_assert.cpp | sugawaray/filemanager | 3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1 | [
"MIT"
] | null | null | null | tests/fixture/test_assert.cpp | sugawaray/filemanager | 3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1 | [
"MIT"
] | null | null | null | #include <sstream>
#include "assert.h"
#include "test_assert.h"
using std::cerr;
using std::endl;
using std::ostringstream;
using test::fixture::Assert;
START_TEST(should_not_output_when_true)
{
ostringstream os;
Assert(true, 1, 2, os);
if (os.str() != "")
cerr << "should_not_output_when_true" << endl;
}
END_TES... | 19.942308 | 63 | 0.724204 |
1ab59718d64e2d57fadb5d3a4edd505beb48fc2b | 1,071 | cpp | C++ | third_party/txt/tests/UnicodeUtilsTest.cpp | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 5,823 | 2015-09-20T02:43:18.000Z | 2022-03-31T23:38:55.000Z | third_party/txt/tests/UnicodeUtilsTest.cpp | shoryukenn/engine | 0dc86cda19d55aba8b719231c11306eeaca4b798 | [
"BSD-3-Clause"
] | 20,081 | 2015-09-19T16:07:59.000Z | 2022-03-31T23:33:26.000Z | third_party/txt/tests/UnicodeUtilsTest.cpp | shoryukenn/engine | 0dc86cda19d55aba8b719231c11306eeaca4b798 | [
"BSD-3-Clause"
] | 5,383 | 2015-09-24T22:49:53.000Z | 2022-03-31T14:33:51.000Z | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | 28.184211 | 75 | 0.708683 |
1ab88a18dd8f74b863bbd45e262d092e29d0acfa | 432 | cpp | C++ | WindowsServiceCppTemplate/ServiceControlManager.cpp | AinoMegumi/WindowsServiceCppTemplate | fd123fe43c13356308b3d27a7a5692078979426d | [
"MIT"
] | 1 | 2021-07-06T14:31:15.000Z | 2021-07-06T14:31:15.000Z | WindowsServiceCppTemplate/ServiceControlManager.cpp | AinoMegumi/WindowsServiceCppTemplate | fd123fe43c13356308b3d27a7a5692078979426d | [
"MIT"
] | null | null | null | WindowsServiceCppTemplate/ServiceControlManager.cpp | AinoMegumi/WindowsServiceCppTemplate | fd123fe43c13356308b3d27a7a5692078979426d | [
"MIT"
] | null | null | null | #include "ServiceControlManager.h"
#include "GetErrorMessage.h"
#include <stdexcept>
ServiceControlManager::ServiceControlManager()
: SCM(OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS)) {
if (this->SCM == nullptr) {
throw std::runtime_error(
"Failed In OpenSCManager Function\n"
+ GetErrorMessage... | 25.411765 | 89 | 0.710648 |
1ab92d52afb6aff23e6b6df1dcee0273b674a834 | 4,415 | cpp | C++ | src/args/Arg.cpp | GAStudyGroup/VRP | 54ec7ff3f0a4247d3effe609cf916fc235a08664 | [
"MIT"
] | 8 | 2018-11-28T15:13:26.000Z | 2021-10-08T18:34:28.000Z | sources/Arg.cpp | Arch23/Cpp-Argument-Parser | 03787751e725db8820b02b702e65b31537dc73d2 | [
"MIT"
] | 4 | 2018-03-28T19:26:27.000Z | 2018-04-07T03:02:15.000Z | sources/Arg.cpp | Arch23/Cpp-Argument-Parser | 03787751e725db8820b02b702e65b31537dc73d2 | [
"MIT"
] | 2 | 2019-12-12T09:36:48.000Z | 2020-04-23T08:26:22.000Z | #include "Arg.hpp"
#include <sstream>
using std::istringstream;
#include <set>
using std::set;
#include <algorithm>
using std::any_of;
#include <iostream>
using std::cout;
using std::endl;
Arg::Arg(int argc, char **argv):argc(argc),argv(argv){
programName = "Default Name";
helpSetted = false;
}
void Arg::... | 22.757732 | 72 | 0.512797 |
1aba131b0dfdbc8f2f780904bd7fd8947f4e4925 | 5,240 | cpp | C++ | StatsAPI/statsapi.cpp | freem/SMOnline-v1 | b7202ebf1b2d291952000d8c1673ea6175eb4bdd | [
"MIT"
] | 1 | 2021-05-24T09:23:49.000Z | 2021-05-24T09:23:49.000Z | StatsAPI/statsapi.cpp | freem/SMOnline-v1 | b7202ebf1b2d291952000d8c1673ea6175eb4bdd | [
"MIT"
] | null | null | null | StatsAPI/statsapi.cpp | freem/SMOnline-v1 | b7202ebf1b2d291952000d8c1673ea6175eb4bdd | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "statsapi.h"
using namespace std;
void main(int argc, char* argv[])
{
statsAPI* api = NULL;
vector<CString> args;
if ((argc < 2) || (argc > 21))
return;
args.resize(argc - 1);
for(unsigned int i = 1; i < argc; i++)
args[i - 1] = argv[i];
api = new statsAPI... | 24.036697 | 121 | 0.676718 |
1abc839ce6fb2fcc80893976bb0e5bdc0d297b2a | 165 | hpp | C++ | algorithm/tests/SortTests.hpp | AirChen/AlgorithmCpp | a1af7ee437278682d9d0319bab76d85473c3baa0 | [
"MIT"
] | null | null | null | algorithm/tests/SortTests.hpp | AirChen/AlgorithmCpp | a1af7ee437278682d9d0319bab76d85473c3baa0 | [
"MIT"
] | null | null | null | algorithm/tests/SortTests.hpp | AirChen/AlgorithmCpp | a1af7ee437278682d9d0319bab76d85473c3baa0 | [
"MIT"
] | null | null | null | //
// SortTests.hpp
// tests
//
// Created by tuRen on 2021/5/17.
//
#ifndef SortTests_hpp
#define SortTests_hpp
#include <stdio.h>
#endif /* SortTests_hpp */
| 11.785714 | 34 | 0.660606 |
1abdfc77cd9a9c7b46e8dc87f3257e84faa19fcb | 2,921 | cpp | C++ | qubus/src/isl/flow.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/isl/flow.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/isl/flow.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #include <qubus/isl/flow.hpp>
namespace qubus
{
namespace isl
{
union_access_info::union_access_info(isl_union_access_info* handle_) : handle_(handle_)
{
}
union_access_info::union_access_info(const union_access_info& other)
: handle_(isl_union_access_info_copy(other.native_handle()))
{
}
union_access_info::~union_... | 23.556452 | 97 | 0.741869 |
1ac16c952417ad528f3a24ca9c19effbbebb83a6 | 3,876 | cpp | C++ | GUIproject/CourseWorkHypermarket/productlist.cpp | ashnaider/CourseWorkHypermarket | 9dd52dadf987020c2490f2a9a9cdcaa5b52fb12a | [
"MIT"
] | 3 | 2020-05-27T18:37:43.000Z | 2020-06-21T05:40:57.000Z | GUIproject/CourseWorkHypermarket/productlist.cpp | ashnaider/CourseWorkHypermarket | 9dd52dadf987020c2490f2a9a9cdcaa5b52fb12a | [
"MIT"
] | null | null | null | GUIproject/CourseWorkHypermarket/productlist.cpp | ashnaider/CourseWorkHypermarket | 9dd52dadf987020c2490f2a9a9cdcaa5b52fb12a | [
"MIT"
] | null | null | null | #include "productlist.h"
#include "product.h"
#include <sstream>
#include <string>
#include <vector>
ProductList::ProductList(QString productClass)
{
utilities = new Utilities;
QString filePath = utilities->generateFilePathForProduct(productClass);
productsInfo = utilities->readFileByWord(filePath, true)... | 32.033058 | 81 | 0.54257 |
1ac39ca5b2ddb057e71738c30bbe6b4536a54da3 | 378 | hpp | C++ | simsync/include/simsync/synchronization/thread_start.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/include/simsync/synchronization/thread_start.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/include/simsync/synchronization/thread_start.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | #ifndef SIMSYNC_THREAD_START_HPP
#define SIMSYNC_THREAD_START_HPP
#include <simsync/synchronization/event.hpp>
namespace simsync {
class thread_start : public event {
public:
explicit thread_start(int32_t thread_id, thread_model &tm);
transition synchronize() override;
private:
void print(std::ostream &stream... | 19.894737 | 61 | 0.793651 |
1ac5f29f8be19da29a2f75af508c1f322ef4907d | 296 | cpp | C++ | src/misc/memswap.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/misc/memswap.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/misc/memswap.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin library
#include "lapin_private.h"
void bunny_memswap(void *a,
void *b,
size_t s)
{
void *c = bunny_alloca(s);
memcpy(c, a, s);
memcpy(a, b, s);
memcpy(b, c, s);
bunny_freea(c);
}
| 15.578947 | 32 | 0.577703 |
1ac66153d28c9feb374678c860bffb6aca1c7739 | 4,534 | inl | C++ | include/ecst/context/system/instance/data_proxy/impl/base.inl | SuperV1234/ecst | b3c42e2c28978f1cd8ea620ade62613c6c875432 | [
"AFL-3.0"
] | 475 | 2016-05-03T13:34:30.000Z | 2021-11-26T07:02:47.000Z | include/ecst/context/system/instance/data_proxy/impl/base.inl | vittorioromeo/ecst | b3c42e2c28978f1cd8ea620ade62613c6c875432 | [
"AFL-3.0"
] | 28 | 2016-08-30T06:37:40.000Z | 2017-11-24T11:14:07.000Z | include/ecst/context/system/instance/data_proxy/impl/base.inl | vittorioromeo/ecst | b3c42e2c28978f1cd8ea620ade62613c6c875432 | [
"AFL-3.0"
] | 60 | 2016-05-11T22:16:15.000Z | 2021-08-02T20:42:35.000Z | // Copyright (c) 2015-2016 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | vittorio.romeo@outlook.com
#pragma once
#include "./base.hpp"
#define ECST_IMPL_DP_BASE_TEMPLATE \
templat... | 31.268966 | 79 | 0.571901 |
1ac7e8aeb3dc27b7aa08ef5d61db26db632550de | 4,784 | cc | C++ | media/audio/audio_output_dispatcher.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | 1 | 2016-03-10T09:13:57.000Z | 2016-03-10T09:13:57.000Z | media/audio/audio_output_dispatcher.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | 1 | 2022-03-13T08:39:05.000Z | 2022-03-13T08:39:05.000Z | media/audio/audio_output_dispatcher.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 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.
#include "media/audio/audio_output_dispatcher.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#include "... | 27.976608 | 77 | 0.718436 |
1ac851422692a5f3ef1293a6065f0499859d4ede | 3,589 | cpp | C++ | src/app.cpp | VIGameStudio/Particles | 160beb20b3f23cf0973fd57043d901b3f01efa42 | [
"MIT"
] | null | null | null | src/app.cpp | VIGameStudio/Particles | 160beb20b3f23cf0973fd57043d901b3f01efa42 | [
"MIT"
] | null | null | null | src/app.cpp | VIGameStudio/Particles | 160beb20b3f23cf0973fd57043d901b3f01efa42 | [
"MIT"
] | null | null | null | #include "app.hpp"
/// App
#include "imgui.h"
#include "imgui-SFML.h"
#include "alloc.hpp"
#include "particlefx.hpp"
#include "particle_editor.hpp"
#include "vec2.hpp"
#define MAX_PARTICLES 32
#define P_RADIUS 10
#define P_SQRADIUS P_RADIUS*P_RADIUS
LinearAllocator* allocator;
std::vector<ParticleEmitter*> particl... | 24.414966 | 100 | 0.637503 |
1ac8b3251f1aa9e69553c678c880a19926989df8 | 1,503 | hpp | C++ | include/Lodtalk/Math.hpp | ronsaldo/lodtalk | 4668e8923f508c8a9e87a00242ab67b26fb0c9a4 | [
"MIT"
] | 3 | 2017-02-10T18:18:58.000Z | 2019-02-21T02:35:29.000Z | include/Lodtalk/Math.hpp | ronsaldo/lodtalk | 4668e8923f508c8a9e87a00242ab67b26fb0c9a4 | [
"MIT"
] | null | null | null | include/Lodtalk/Math.hpp | ronsaldo/lodtalk | 4668e8923f508c8a9e87a00242ab67b26fb0c9a4 | [
"MIT"
] | null | null | null | #ifndef LODTALK_MATH_HPP
#define LODTALK_MATH_HPP
#include "Lodtalk/ObjectModel.hpp"
namespace Lodtalk
{
inline SmallIntegerValue divideRoundNeg(SmallIntegerValue dividend, SmallIntegerValue divisor)
{
// This algorithm was taken from the Squeak VM.
assert(divisor != 0);
if (dividend >= 0)
{
... | 22.102941 | 94 | 0.571524 |
1ad0e382a2b2a74cf034d6474b5ff0b8f8b86f5a | 1,669 | hpp | C++ | src/neuron/SwcNode.hpp | yzx9/NeuronSdfViewer | 454164dfccf80b806aac3cd7cca09e2cb8bd3c2a | [
"MIT"
] | 1 | 2021-12-31T10:29:56.000Z | 2021-12-31T10:29:56.000Z | src/neuron/SwcNode.hpp | yzx9/NeuronSdfViewer | 454164dfccf80b806aac3cd7cca09e2cb8bd3c2a | [
"MIT"
] | null | null | null | src/neuron/SwcNode.hpp | yzx9/NeuronSdfViewer | 454164dfccf80b806aac3cd7cca09e2cb8bd3c2a | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <regex>
#include <memory>
class SwcNode
{
public:
int id;
int type;
float x;
float y;
float z;
float raidus;
int parent;
std::unique_ptr<SwcNode> child;
std::unique_ptr<SwcNode> next;
static bool try_parse(const std::string &s, std::uniq... | 24.910448 | 78 | 0.461354 |
1ad1c9ba27ea9312c984187f93241cd191ae6094 | 436 | inl | C++ | include/generator_python.inl | Three7Six/FastBinaryEncoding | 2d74ad66afe1cd30988fbbde059a25a2d6f215c6 | [
"MIT"
] | 1 | 2019-11-16T17:50:52.000Z | 2019-11-16T17:50:52.000Z | include/generator_python.inl | Three7Six/FastBinaryEncoding | 2d74ad66afe1cd30988fbbde059a25a2d6f215c6 | [
"MIT"
] | null | null | null | include/generator_python.inl | Three7Six/FastBinaryEncoding | 2d74ad66afe1cd30988fbbde059a25a2d6f215c6 | [
"MIT"
] | null | null | null | /*!
\file generator_python.inl
\brief Fast binary encoding Python generator inline implementation
\author Ivan Shynkarenka
\date 24.04.2018
\copyright MIT License
*/
namespace FBE {
inline GeneratorPython::GeneratorPython(const std::string& input, const std::string& output, int indent, char space)... | 25.647059 | 116 | 0.720183 |
1ada9add6985b6dd3426f201a064ccf6154cef73 | 7,724 | cc | C++ | content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/pepper/pepper_plugin_instance_throttler_unittest.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 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.
#include "base/bind.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_lo... | 35.59447 | 78 | 0.752201 |
1adff208083bea1d0805b338aabccdebbc09a1d9 | 315 | inl | C++ | src/readers/F3DExodusIIReader.inl | Meakk/f3d | 40db15ab2a6500ea67bfee5d35714b5c5e2d993c | [
"BSD-3-Clause"
] | 318 | 2021-11-14T02:22:32.000Z | 2022-03-31T02:32:52.000Z | src/readers/F3DExodusIIReader.inl | Meakk/f3d | 40db15ab2a6500ea67bfee5d35714b5c5e2d993c | [
"BSD-3-Clause"
] | 223 | 2021-11-12T20:52:41.000Z | 2022-03-29T21:35:18.000Z | src/readers/F3DExodusIIReader.inl | Meakk/f3d | 40db15ab2a6500ea67bfee5d35714b5c5e2d993c | [
"BSD-3-Clause"
] | 24 | 2021-11-12T22:12:24.000Z | 2022-03-28T12:42:17.000Z | void ApplyCustomReader(vtkAlgorithm* reader, const std::string&) const override
{
vtkExodusIIReader* exReader = vtkExodusIIReader::SafeDownCast(reader);
exReader->UpdateInformation();
exReader->SetAllArrayStatus(vtkExodusIIReader::NODAL, 1);
exReader->SetAllArrayStatus(vtkExodusIIReader::ELEM_BLOCK, 1);
}
| 39.375 | 79 | 0.8 |
1ae6ee53a1b5bd07a80998f710a02123d3fe9285 | 5,254 | hpp | C++ | Altis_Life.Altis/config/Config_Process.hpp | TomLorenzi/AltasiaV2-Public | 324e20c4730587de8f7e3eab8acbe9cb02912a1a | [
"MIT"
] | null | null | null | Altis_Life.Altis/config/Config_Process.hpp | TomLorenzi/AltasiaV2-Public | 324e20c4730587de8f7e3eab8acbe9cb02912a1a | [
"MIT"
] | null | null | null | Altis_Life.Altis/config/Config_Process.hpp | TomLorenzi/AltasiaV2-Public | 324e20c4730587de8f7e3eab8acbe9cb02912a1a | [
"MIT"
] | null | null | null | /*
* class:
* MaterialsReq (Needed to process) = Array - Format -> {{"ITEM CLASS",HOWMANY}}
* MaterialsGive (Returned items) = Array - Format -> {{"ITEM CLASS",HOWMANY}}
* Text (Progess Bar Text) = Localised String
* NoLicenseCost (Cost to process w/o license) = Scalar
*
* Example for multip... | 27.507853 | 85 | 0.533879 |
1ae9cfbf8cb82475063bd9410a9aa6fccb9208cf | 64,799 | cc | C++ | deps/sparsehash/src/hashtable_unittest.cc | PelionIoT/twlib | 7a2219924e66cb33810dad5a8314b0f0cff49018 | [
"DOC",
"MIT"
] | 1 | 2017-09-15T19:48:30.000Z | 2017-09-15T19:48:30.000Z | deps/sparsehash/src/hashtable_unittest.cc | PelionIoT/twlib | 7a2219924e66cb33810dad5a8314b0f0cff49018 | [
"DOC",
"MIT"
] | null | null | null | deps/sparsehash/src/hashtable_unittest.cc | PelionIoT/twlib | 7a2219924e66cb33810dad5a8314b0f0cff49018 | [
"DOC",
"MIT"
] | 1 | 2019-10-23T08:48:56.000Z | 2019-10-23T08:48:56.000Z | // Copyright (c) 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condi... | 32.710247 | 91 | 0.621939 |
1aeb56dbe4e30c69fbc1793cc1cc979b07f51758 | 3,955 | cpp | C++ | base/pbr/VulkanObjModel.cpp | wessles/vkmerc | cb087f425cdbc0b204298833474cf62874505388 | [
"Unlicense"
] | 6 | 2020-10-09T02:48:54.000Z | 2021-07-30T06:31:20.000Z | base/pbr/VulkanObjModel.cpp | wessles/vkmerc | cb087f425cdbc0b204298833474cf62874505388 | [
"Unlicense"
] | null | null | null | base/pbr/VulkanObjModel.cpp | wessles/vkmerc | cb087f425cdbc0b204298833474cf62874505388 | [
"Unlicense"
] | null | null | null | #include "VulkanObjModel.h"
#include <unordered_map>
#include <filesystem>
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtx/string_cast.hpp>
#define TINYOBJLOADER_IMPLEMENTATION
#include <tiny_obj_loader.h>
#include "../VulkanMesh.h"
#include "../scene/Scene.h"
#include "PbrMaterial.h"
static std::stri... | 29.736842 | 159 | 0.668015 |
1aec5d14b869793dd0ebb8bd7d89960e250e6ada | 2,321 | cc | C++ | depends/dbcommon/test/unit/common/test-tuple-batch-store.cc | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2020-05-11T01:39:13.000Z | 2020-05-11T01:39:13.000Z | depends/dbcommon/test/unit/common/test-tuple-batch-store.cc | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2021-03-01T02:57:26.000Z | 2021-03-01T02:57:26.000Z | depends/dbcommon/test/unit/common/test-tuple-batch-store.cc | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2020-05-03T07:29:21.000Z | 2020-05-03T07:29:21.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 41.446429 | 80 | 0.744076 |
8c1d6f83dd2669c716d71f751abe3b49418da6ad | 3,375 | cpp | C++ | vector.cpp | csiro-robotics/Morphogenesis | 4d390609f941a58f09529371d185a344573de35f | [
"BSD-3-Clause"
] | null | null | null | vector.cpp | csiro-robotics/Morphogenesis | 4d390609f941a58f09529371d185a344573de35f | [
"BSD-3-Clause"
] | null | null | null | vector.cpp | csiro-robotics/Morphogenesis | 4d390609f941a58f09529371d185a344573de35f | [
"BSD-3-Clause"
] | null | null | null |
#include "vector.h"
#include "matrix.h"
#define VTYPE float
Vector3DF &Vector3DF::operator*= (const MatrixF &op)
{
double *m = op.GetDataF ();
float xa, ya, za;
xa = x * float(*m++); ya = x * float(*m++); za = x * float(*m++); m++;
xa += y * float(*m++); ya += y * float(*m++); za += y * float(*m++); m++;
xa += ... | 28.601695 | 92 | 0.47437 |
8c1dde0196518bd1550bee9b3f84249cf7060d1c | 198 | cpp | C++ | test_index_reference.cpp | insertinterestingnamehere/cython_overload_except | 00d76ad8020fcb21948545de8161da65f7f4acd8 | [
"BSD-2-Clause"
] | null | null | null | test_index_reference.cpp | insertinterestingnamehere/cython_overload_except | 00d76ad8020fcb21948545de8161da65f7f4acd8 | [
"BSD-2-Clause"
] | null | null | null | test_index_reference.cpp | insertinterestingnamehere/cython_overload_except | 00d76ad8020fcb21948545de8161da65f7f4acd8 | [
"BSD-2-Clause"
] | null | null | null | #include "add.cpp"
#include <iostream>
int main(){
wrapped_int a = 3;
long long b = 2;
std::cout << a[b].val << std::endl;
wrapped_int &temp = a[b];
std::cout << temp.val << std::endl;
}
| 18 | 37 | 0.580808 |
8c1e21fcc1bfc1f79fd2dad6a5aa8ff6dc21c3ff | 2,280 | cpp | C++ | app/main.cpp | shivamakhauri04/midterm_project | 4d062d90cb459d035fa9453aa837463b1e72f5a5 | [
"MIT"
] | null | null | null | app/main.cpp | shivamakhauri04/midterm_project | 4d062d90cb459d035fa9453aa837463b1e72f5a5 | [
"MIT"
] | 9 | 2019-10-19T06:55:30.000Z | 2019-10-21T15:08:33.000Z | app/main.cpp | shivamakhauri04/midterm_project | 4d062d90cb459d035fa9453aa837463b1e72f5a5 | [
"MIT"
] | 1 | 2019-10-19T02:12:38.000Z | 2019-10-19T02:12:38.000Z | /**
* @file main.cpp
* @author Shivam Akhauri (Driver),Toyas Dhake (Navigator),
* @date 20 October 2019
* @copyright 2019 Toyas Dhake, Shivam Akhauri
* @brief Main file for implementation of the Depth Perception project.
*/
#include <dlib/opencv.h>
#include <dlib/gui_widgets.h>
#include <dlib/image_processing/frontal_... | 38.644068 | 80 | 0.601316 |
8c20e2958890ef25c6c2b2117176bf264b857fb7 | 5,608 | cpp | C++ | applications/SavageHutter/SlopeLimiters/TvbLimiter1D.cpp | hpgem/hpgem | b2f7ac6bdef3262af0c3e8559cb991357a96457f | [
"BSD-3-Clause-Clear"
] | 5 | 2020-04-01T15:35:26.000Z | 2022-02-22T02:48:12.000Z | applications/SavageHutter/SlopeLimiters/TvbLimiter1D.cpp | hpgem/hpgem | b2f7ac6bdef3262af0c3e8559cb991357a96457f | [
"BSD-3-Clause-Clear"
] | 139 | 2020-01-06T12:42:24.000Z | 2022-03-10T20:58:14.000Z | applications/SavageHutter/SlopeLimiters/TvbLimiter1D.cpp | hpgem/hpgem | b2f7ac6bdef3262af0c3e8559cb991357a96457f | [
"BSD-3-Clause-Clear"
] | 4 | 2020-04-10T09:19:33.000Z | 2021-08-21T07:20:42.000Z | /*
This file forms part of hpGEM. This package has been developed over a number of
years by various people at the University of Twente and a full list of
contributors can be found at http://hpgem.org/about-the-code/team
This code is distributed using BSD 3-Clause License. A copy of which can found
below.
Copyr... | 43.472868 | 80 | 0.67582 |
8c26d6f600c31e11a935c11e6908364b90d2dbf3 | 2,408 | cpp | C++ | old/extgcd.inc.cpp | kmyk/competitive-programming-library | 77efa23a69f06202bb43f4dc6b0550e4cdb48e0b | [
"MIT"
] | 55 | 2018-01-11T02:20:02.000Z | 2022-03-24T06:18:54.000Z | number/extgcd.inc.cpp | Mohammad-Yasser/competitive-programming-library | 4656ac0d625abce98b901965c7607c1b908b093f | [
"MIT"
] | 10 | 2016-10-29T08:20:04.000Z | 2021-02-27T13:14:53.000Z | number/extgcd.inc.cpp | Mohammad-Yasser/competitive-programming-library | 4656ac0d625abce98b901965c7607c1b908b093f | [
"MIT"
] | 11 | 2016-10-29T06:00:53.000Z | 2021-06-16T14:32:43.000Z | /**
* @brief extended gcd
* @description for given a and b, find x, y and gcd(a, b) such that ax + by = 1
* @note O(log n)
* @see https://topcoder.g.hatena.ne.jp/spaghetti_source/20130126/1359171466
*/
tuple<ll, ll, ll> extgcd(ll a, ll b) {
ll x = 0, y = 1;
for (ll u = 1, v = 0; a; ) {
ll q = b / a... | 26.755556 | 80 | 0.475914 |
8c28ff85a56ee2abce629feee801ca4185d9fd4e | 355 | cpp | C++ | tests/mixed/mixed_invalid_unwrap_test.cpp | pacmancoder/exl | ffd66d30e76d60aa7e4efe75274e4a8a35427961 | [
"BSL-1.0"
] | 1 | 2019-05-02T12:00:50.000Z | 2019-05-02T12:00:50.000Z | tests/mixed/mixed_invalid_unwrap_test.cpp | pacmancoder/exl | ffd66d30e76d60aa7e4efe75274e4a8a35427961 | [
"BSL-1.0"
] | 14 | 2019-02-13T17:21:07.000Z | 2019-03-08T21:40:38.000Z | tests/mixed/mixed_invalid_unwrap_test.cpp | pacmancoder/exl | ffd66d30e76d60aa7e4efe75274e4a8a35427961 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2019 Vladislav Nikonov <mail@pacmancoder.xyz>
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
#include <exl/mixed.hpp>
#include <termination_test.hpp>
void termination_test()
{
exl::mixed<char, i... | 25.357143 | 83 | 0.715493 |
8c2a7228c91fe29e32f4bdf0d3796f4e551b287c | 5,812 | hpp | C++ | src/libv/diff/diff.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 2 | 2018-04-11T03:07:03.000Z | 2019-03-29T15:24:12.000Z | src/libv/diff/diff.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | null | null | null | src/libv/diff/diff.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 1 | 2021-06-13T06:39:06.000Z | 2021-06-13T06:39:06.000Z | // Project: libv.diff, File: src/libv/diff/diff.hpp, Author: Császár Mátyás [Vader]
#pragma once
// libv
#include <libv/utility/bytes/input_bytes.hpp>
#include <libv/utility/bytes/output_bytes.hpp>
// std
#include <optional>
#include <string>
#include <vector>
namespace libv {
namespace diff {
// -----------------... | 39.808219 | 136 | 0.668789 |
8c2ad38fa61b19ad767dd011d39cf3a68dc734fd | 2,690 | cpp | C++ | src/cpp/common-bio/Multiseq.cpp | UTbioinf/SMSC | 0d5765518b3863d2363f264d9f256063c7f7ce71 | [
"MIT"
] | null | null | null | src/cpp/common-bio/Multiseq.cpp | UTbioinf/SMSC | 0d5765518b3863d2363f264d9f256063c7f7ce71 | [
"MIT"
] | 2 | 2019-05-31T06:36:36.000Z | 2019-09-18T22:13:09.000Z | src/cpp/common-bio/Multiseq.cpp | UTbioinf/SMSC | 0d5765518b3863d2363f264d9f256063c7f7ce71 | [
"MIT"
] | 1 | 2021-12-01T10:30:58.000Z | 2021-12-01T10:30:58.000Z | #include <fstream>
#include <cctype>
#include "Multiseq.h"
#include "util.h"
namespace loon
{
void Fasta::save_fasta(std::ostream& out)
{
out << ">" << tag << tag_remaining << std::endl;
for(size_t i = 0; i < seq.length(); i += 80)
out << seq.substr(i, 80) << std::endl;
}
char Fasta::base_rc(char c)
... | 24.907407 | 83 | 0.477695 |
8c2b0f8c42e3757625f710420e30b7d152444f96 | 14,696 | cpp | C++ | LSL/GLUtils.cpp | AntonBogomolov/LightSpeedLimit | 215d573f46eef63801cbd8df654f104401bae581 | [
"MIT"
] | null | null | null | LSL/GLUtils.cpp | AntonBogomolov/LightSpeedLimit | 215d573f46eef63801cbd8df654f104401bae581 | [
"MIT"
] | null | null | null | LSL/GLUtils.cpp | AntonBogomolov/LightSpeedLimit | 215d573f46eef63801cbd8df654f104401bae581 | [
"MIT"
] | null | null | null | #include "global.h"
#include "GLUtils.h"
#include "GLShaderObject.h"
#include "TextureManager.h"
#include "Texture.h"
#include "TextureAtlas.h"
#include "VertexArray.h"
#include "VertexBuffer.h"
#include "SceneGraphNode.h"
#include "ScreenObj.h"
#include "VideoManeger.h"
#include "DrawablePrimitive.h"
CGLUtils* CGLUti... | 37.394402 | 163 | 0.62187 |
8c30e0dc1e6c398403e44f85fb9ee154f306f186 | 2,165 | cc | C++ | chrome/browser/media/router/mojo/media_router_mojo_metrics_unittest.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | chrome/browser/media/router/mojo/media_router_mojo_metrics_unittest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | chrome/browser/media/router/mojo/media_router_mojo_metrics_unittest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2016 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.
#include "chrome/browser/media/router/mojo/media_router_mojo_metrics.h"
#include "base/version.h"
#include "testing/gtest/include/gtest/gtest.h"
namespa... | 49.204545 | 73 | 0.728868 |
8c32011a805538118756eb62bf63bb51db53a544 | 377 | cc | C++ | below2.1/speeding.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/speeding.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/speeding.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int nu;
cin>>nu;
int t,p;
cin>>t>>p;
int mem, memp;
int max = 0;
for (int i = 0; i < nu-1; i++)
{
mem = t;
memp = p;
cin>>t>>p;
if((p - memp)/(t-mem)>max){
max = (p - memp)/(t-mem);
... | 15.08 | 37 | 0.37931 |
8c37014f2bfe8acc6bb1093f96c356c3b6ddb71d | 876 | hh | C++ | include/Main.hh | FatmanUK/guess-word | 811f660d111dabdb81dc4baa95a33841643fccb0 | [
"BSD-2-Clause"
] | null | null | null | include/Main.hh | FatmanUK/guess-word | 811f660d111dabdb81dc4baa95a33841643fccb0 | [
"BSD-2-Clause"
] | null | null | null | include/Main.hh | FatmanUK/guess-word | 811f660d111dabdb81dc4baa95a33841643fccb0 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <string>
using std::string;
#include <vector>
using std::vector;
#include <map>
using std::map;
#include <sstream>
using std::istringstream;
using std::ostringstream;
#include <iostream>
using std::cout;
using std::cerr;
using std::cin;
using std::endl;
#include <fstream>
using std::ifstream... | 16.528302 | 69 | 0.732877 |
8c38b1f3f05a74824dc7ef74d8f65ded63d62a3a | 263 | hpp | C++ | tools/mem_usage/mem_usage.hpp | LioQing/personal-utils | e24d1ea1510087797c6b85bae89a3801a2e77f3d | [
"Unlicense"
] | null | null | null | tools/mem_usage/mem_usage.hpp | LioQing/personal-utils | e24d1ea1510087797c6b85bae89a3801a2e77f3d | [
"Unlicense"
] | null | null | null | tools/mem_usage/mem_usage.hpp | LioQing/personal-utils | e24d1ea1510087797c6b85bae89a3801a2e77f3d | [
"Unlicense"
] | null | null | null | #pragma once
#include <cstdint>
namespace lio
{
enum MemArgs : uint8_t
{
USAGE = 0b001,
COUNT = 0b010,
PEAK = 0b100
};
extern size_t memory_count;
extern size_t memory_used;
extern size_t memory_peak;
void print_mem_isage(uint8_t args = USAGE);
} | 13.842105 | 44 | 0.714829 |
8c4025d9dbd5731fa3083db7d2c4fd5895e88a69 | 4,798 | cpp | C++ | Framework/Math/Scissor.cpp | dengwenyi88/Deferred_Lighting | b45b6590150a3119b0c2365f4795d93b3b4f0748 | [
"MIT"
] | 110 | 2017-06-23T17:12:28.000Z | 2022-02-22T19:11:38.000Z | RunTest/Framework3/Math/Scissor.cpp | dtrebilco/ECSAtto | 86a04f0bdc521c79f758df94250c1898c39213c8 | [
"MIT"
] | null | null | null | RunTest/Framework3/Math/Scissor.cpp | dtrebilco/ECSAtto | 86a04f0bdc521c79f758df94250c1898c39213c8 | [
"MIT"
] | 3 | 2018-02-12T00:16:18.000Z | 2018-02-18T11:12:35.000Z |
/* * * * * * * * * * * * * Author's note * * * * * * * * * * * *\
* _ _ _ _ _ _ _ _ _ _ _ _ *
* |_| |_| |_| |_| |_|_ _|_| |_| |_| _|_|_|_|_| *
* |_|_ _ _|_| |_| |_| |_|_|_|_|_| |_| |_| |_|_ _ _ *
* |_|_|_|_|_| |_| |_| |_| |_| |_| |_| |_| |_... | 32.418919 | 201 | 0.516048 |
8c402ea7a19d66f47675ff19cdb33761cb9c5fe1 | 10,767 | cpp | C++ | app/src/main/jni/comitton/PdfCrypt.cpp | mryp/ComittoNxA | 9b46c267bff22c2090d75ac70b589f9a12d61457 | [
"Unlicense"
] | 14 | 2020-08-05T09:36:01.000Z | 2022-02-23T01:48:18.000Z | app/src/main/jni/comitton/PdfCrypt.cpp | yuma2a/ComittoNxA-Continued | 9d85c4f5753e534c3ff0cf83fe53df588872c8ff | [
"Unlicense"
] | 1 | 2021-11-13T14:23:07.000Z | 2021-11-13T14:23:07.000Z | app/src/main/jni/comitton/PdfCrypt.cpp | mryp/ComittoNxA | 9b46c267bff22c2090d75ac70b589f9a12d61457 | [
"Unlicense"
] | 4 | 2021-04-21T02:56:50.000Z | 2021-11-08T12:02:32.000Z | /*
MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991.
All rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or... | 24.414966 | 151 | 0.665181 |
8c4362e959450f80b6bf82e2f1ed5afb88ab06c5 | 13,332 | cpp | C++ | src/ui/inspectMode.cpp | averrin/lss | c2aa0486641fba15daceab3241122e387720c898 | [
"MIT"
] | 4 | 2018-07-09T20:53:06.000Z | 2018-07-12T07:10:19.000Z | src/ui/inspectMode.cpp | averrin/lss | c2aa0486641fba15daceab3241122e387720c898 | [
"MIT"
] | null | null | null | src/ui/inspectMode.cpp | averrin/lss | c2aa0486641fba15daceab3241122e387720c898 | [
"MIT"
] | null | null | null | #include "ui/inspectMode.hpp"
#include "ui/LSSApp.hpp"
#include "ui/fragment.hpp"
#include "lss/generator/room.hpp"
#include "lss/utils.hpp"
#include "ui/utils.hpp"
auto F = [](std::string c) { return std::make_shared<Fragment>(c); };
bool InspectMode::processKey(KeyEvent event) {
switch (event.getCode()) {
case ... | 41.6625 | 91 | 0.578533 |
8c43e0e106645fcd7d0bdf1e0d71a9925193356b | 1,551 | cc | C++ | auxil/binpac/src/pac_datadep.cc | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | auxil/binpac/src/pac_datadep.cc | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | auxil/binpac/src/pac_datadep.cc | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | #include "pac_datadep.h"
#include "pac_expr.h"
#include "pac_id.h"
#include "pac_type.h"
DataDepElement::DataDepElement(DDE_Type type)
: dde_type_(type), in_traversal(false)
{
}
bool DataDepElement::Traverse(DataDepVisitor *visitor)
{
// Avoid infinite loop
if ( in_traversal )
return true;
if ( ! visitor->... | 20.142857 | 66 | 0.704707 |
8c44271c7bf0cc4c2dbd268a407221645e9f8866 | 1,296 | cxx | C++ | Libraries/QtVgCommon/vgSwatchCache.cxx | PinkDiamond1/vivia | 70f7fbed4b33b14d34de35c69b2b14df3514d720 | [
"BSD-3-Clause"
] | 14 | 2016-09-16T12:33:05.000Z | 2021-02-14T02:16:33.000Z | Libraries/QtVgCommon/vgSwatchCache.cxx | PinkDiamond1/vivia | 70f7fbed4b33b14d34de35c69b2b14df3514d720 | [
"BSD-3-Clause"
] | 44 | 2016-10-06T22:12:57.000Z | 2021-01-07T19:39:07.000Z | Libraries/QtVgCommon/vgSwatchCache.cxx | PinkDiamond1/vivia | 70f7fbed4b33b14d34de35c69b2b14df3514d720 | [
"BSD-3-Clause"
] | 17 | 2015-06-30T13:41:47.000Z | 2021-11-22T17:38:48.000Z | // This file is part of ViViA, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/vivia/blob/master/LICENSE for details.
#include "vgSwatchCache.h"
#include <QCache>
#include <QColor>
#include <QPixmap>
QTE_IMPLEMENT_D_FUNC(vgSwatchCache)
/... | 26.44898 | 79 | 0.536265 |
8c443728e0b738837b7b6dab96af75f860b10cca | 21,272 | cc | C++ | elang/compiler/analysis/method_analyzer_test.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2018-01-27T22:40:53.000Z | 2018-01-27T22:40:53.000Z | elang/compiler/analysis/method_analyzer_test.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2016-01-29T00:54:49.000Z | 2016-01-29T00:54:49.000Z | elang/compiler/analysis/method_analyzer_test.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "elang/compiler/analysis/analysis.h"
#include "elan... | 29.421853 | 80 | 0.599144 |
8c4761fc6234aa0a84b2b3511d7fb746f566f793 | 9,649 | cpp | C++ | experiments/src/globimap_test_polygons_mask.cpp | mlaass/globimap | 6bbcbf33cc39ed343662e6b98871dc6dfbc4648f | [
"MIT"
] | null | null | null | experiments/src/globimap_test_polygons_mask.cpp | mlaass/globimap | 6bbcbf33cc39ed343662e6b98871dc6dfbc4648f | [
"MIT"
] | null | null | null | experiments/src/globimap_test_polygons_mask.cpp | mlaass/globimap | 6bbcbf33cc39ed343662e6b98871dc6dfbc4648f | [
"MIT"
] | null | null | null | #include "globimap/counting_globimap.hpp"
#include "globimap_test_config.hpp"
#include <algorithm>
#include <chrono>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <limits>
#include <math.h>
#include <string>
#include <highfive/H5File.hpp>
#include <tqdm.hpp>
#include <boost/geometry.hpp>
#incl... | 33.272414 | 79 | 0.5755 |