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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1e4866ea4244be7441e22a63b9ee886db4566f4 | 1,835 | cpp | C++ | dev/Gems/ScriptEvents/Code/Source/ScriptEventsGem.cpp | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/ScriptEvents/Code/Source/ScriptEventsGem.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/ScriptEvents/Code/Source/ScriptEventsGem.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.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... | 31.637931 | 104 | 0.723161 |
b1e5565e834926da666656b23cae4639dc61b21e | 984 | cpp | C++ | Axis.Core/application/parsing/preprocessing/SymbolTable.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Core/application/parsing/preprocessing/SymbolTable.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Core/application/parsing/preprocessing/SymbolTable.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "SymbolTable.hpp"
#include "foundation/ArgumentException.hpp"
namespace aapp = axis::application::parsing::preprocessing;
aapp::SymbolTable::SymbolTable(void)
{
// no op
}
aapp::SymbolTable::~SymbolTable(void)
{
// erases symbol table and call destructors of every every contained element
_table.clear();
... | 21.391304 | 81 | 0.716463 |
b1e6fe39ea7a5e5a8fd4d0adef72a983b9f20547 | 11,788 | cpp | C++ | libatlaspack/src/textureatlaspacker.cpp | bzeller/atlaspack | abc80eff35b25af367c7b9e91272f5ff82e09272 | [
"MIT"
] | null | null | null | libatlaspack/src/textureatlaspacker.cpp | bzeller/atlaspack | abc80eff35b25af367c7b9e91272f5ff82e09272 | [
"MIT"
] | null | null | null | libatlaspack/src/textureatlaspacker.cpp | bzeller/atlaspack | abc80eff35b25af367c7b9e91272f5ff82e09272 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2017 Benjamin Zeller
*
* 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, ... | 36.495356 | 141 | 0.625382 |
b1e72c610db4b5556b161f6eedb7b96a501e00c3 | 2,387 | hpp | C++ | src/base/factory/AtmosphereFactory.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/factory/AtmosphereFactory.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/factory/AtmosphereFactory.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// AtmosphereFactory
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2017 United States Government as represe... | 31.407895 | 80 | 0.617093 |
b1e762019e0a0c1218fa988e80a15a94a950c77d | 26,612 | hh | C++ | gazebo/rendering/Camera.hh | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-07-02T08:23:30.000Z | 2020-11-17T19:00:38.000Z | gazebo/rendering/Camera.hh | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/rendering/Camera.hh | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-04-22T18:33:15.000Z | 2021-11-16T10:17:45.000Z | /*
* Copyright 2012 Open Source Robotics Foundation
*
* 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 applicab... | 37.534556 | 80 | 0.645498 |
b1e8d91d450d22de3cbd04d22f6f4111185d79a4 | 8,693 | cpp | C++ | clang/test/SemaCXX/typo-correction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2022-02-05T23:28:35.000Z | 2022-02-05T23:28:35.000Z | clang/test/SemaCXX/typo-correction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-02-22T09:59:21.000Z | 2020-02-22T09:59:21.000Z | clang/test/SemaCXX/typo-correction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-11-04T06:38:51.000Z | 2020-11-04T06:38:51.000Z | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions %s
struct errc {
int v_;
operator int() const {return v_;}
};
class error_condition
{
int _val_;
public:
error_condition() : _val_(0) {}
error_condition(int _val)
: _val_(_val) {}
template <class E>
error_condition(E _e) {
// make_... | 45.041451 | 165 | 0.726792 |
b1ea0ac93e6cee3a423b96f1fed8299f0c013860 | 220 | cc | C++ | ch03/ex3_08.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | ch03/ex3_08.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | ch03/ex3_08.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
int main() {
std::string str;
std::cin >> str;
for (std::string::size_type n = 0;n < str.size(); ++n) {
str[n] = 'X';
}
std::cout << str << std::endl;
return 0;
}
| 14.666667 | 58 | 0.531818 |
b1ecbe3935e3c377f10c93df50bbd520e1903e7e | 2,854 | cc | C++ | lite/kernels/xpu/yolo_box_compute.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 808 | 2018-04-17T17:43:12.000Z | 2019-08-18T07:39:13.000Z | lite/kernels/xpu/yolo_box_compute.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 728 | 2018-04-18T08:15:25.000Z | 2019-08-16T07:14:43.000Z | lite/kernels/xpu/yolo_box_compute.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 364 | 2018-04-18T17:05:02.000Z | 2019-08-18T03:25:38.000Z | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 36.589744 | 80 | 0.563069 |
b1f20967450e189ee6b02c5be2ac19b293c8502f | 9,721 | hpp | C++ | externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2021-09-02T08:42:59.000Z | 2021-09-02T08:42:59.000Z | externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 conditions and the f... | 25.785146 | 79 | 0.648596 |
b1f4dd2f2988c66920f3bcf660cf030cde2f98ef | 217 | cpp | C++ | 3 term/Programming-Design-and-Programming-Languages-C++/Lab 11/ArgumentException.cpp | Vanya112/BSUIR_Labs | d63de54f1d07c5bd0eae598d507be051101f1165 | [
"Apache-2.0"
] | 24 | 2019-05-24T18:10:33.000Z | 2022-02-09T14:33:34.000Z | 3 term/Programming-Design-and-Programming-Languages-C++/Lab 11/ArgumentException.cpp | Vanya112/BSUIR_Labs | d63de54f1d07c5bd0eae598d507be051101f1165 | [
"Apache-2.0"
] | null | null | null | 3 term/Programming-Design-and-Programming-Languages-C++/Lab 11/ArgumentException.cpp | Vanya112/BSUIR_Labs | d63de54f1d07c5bd0eae598d507be051101f1165 | [
"Apache-2.0"
] | 16 | 2019-05-23T18:15:53.000Z | 2022-01-17T15:25:58.000Z | #include "ArgumentException.h"
ArgumentException::ArgumentException(string message) : invalid_argument(message.c_str())
{
}
ArgumentException::ArgumentException(const char* message) : invalid_argument(message)
{
}
| 19.727273 | 88 | 0.797235 |
b1faf1c9a66234c9c0ccd51e9dc630293855b810 | 22,778 | cpp | C++ | runtime/src/kmp_threadprivate.cpp | sohaibayub/llvm_openmp | d6ef340fa9c4c653a22dfb92b73a77e9f5bece20 | [
"MIT"
] | 1 | 2021-10-04T01:19:41.000Z | 2021-10-04T01:19:41.000Z | runtime/src/kmp_threadprivate.cpp | sohaibayub/llvm_openmp | d6ef340fa9c4c653a22dfb92b73a77e9f5bece20 | [
"MIT"
] | null | null | null | runtime/src/kmp_threadprivate.cpp | sohaibayub/llvm_openmp | d6ef340fa9c4c653a22dfb92b73a77e9f5bece20 | [
"MIT"
] | null | null | null | /*
* kmp_threadprivate.cpp -- OpenMP threadprivate support library
*/
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See... | 31.901961 | 80 | 0.592019 |
b1ffdd70b03066c6efb557aa3562f0fd4be91df6 | 78 | cpp | C++ | arduino/src/timer.cpp | lipp/macchina-cafe | a6d61182aef4a83703414a5b620e984e9120400d | [
"MIT"
] | null | null | null | arduino/src/timer.cpp | lipp/macchina-cafe | a6d61182aef4a83703414a5b620e984e9120400d | [
"MIT"
] | null | null | null | arduino/src/timer.cpp | lipp/macchina-cafe | a6d61182aef4a83703414a5b620e984e9120400d | [
"MIT"
] | null | null | null | #include "timer.h"
int timer::_count = 0;
timer *timer::_timers[MAX_TIMERS];
| 15.6 | 34 | 0.705128 |
5901a00f4c8f434ae1e55975d204d108040cb80b | 1,443 | cpp | C++ | Jacobi_vs_Gauss_Siedel/main.cpp | soumyasen1809/CFD_NPTEL_IITKGP | b747955650b37fbdb9a006f2292deb1b78fae6b9 | [
"MIT"
] | 2 | 2021-06-17T21:54:14.000Z | 2021-07-06T02:18:10.000Z | Jacobi_vs_Gauss_Siedel/main.cpp | soumyasen1809/CFD_NPTEL_IITKGP | b747955650b37fbdb9a006f2292deb1b78fae6b9 | [
"MIT"
] | null | null | null | Jacobi_vs_Gauss_Siedel/main.cpp | soumyasen1809/CFD_NPTEL_IITKGP | b747955650b37fbdb9a006f2292deb1b78fae6b9 | [
"MIT"
] | null | null | null | //Equation to solve: 5x1 + x2 = 7 ; x1 + 5x2 = 11
#include <iostream>
int main() {
double x_1 = 0.01; // Initialize x1 = 0
double x_1_new = 0.0;
double x_2 = 0.01; // Initialize x2 = 0
double x_2_new = 0.0;
double eps = 1.0; // Tolerance limit epsilon, initialized to 1
int count_s... | 23.655738 | 100 | 0.567568 |
5901d82d0a22a5068e980d0f5bb02a5223fcacad | 9,176 | cpp | C++ | 3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp | ConfuzzledBovv/GameEngineDevelopment | ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1 | [
"Apache-2.0"
] | null | null | null | 3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp | ConfuzzledBovv/GameEngineDevelopment | ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1 | [
"Apache-2.0"
] | null | null | null | 3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp | ConfuzzledBovv/GameEngineDevelopment | ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1 | [
"Apache-2.0"
] | null | null | null | #include "Matrix.h"
#include "iostream"
namespace Maths
{
Matrix::Matrix()
{
// If no data is given then set as identity matrix
for (int i = 0; i < 9; i++)
{
matrixData[i] = 0;
}
matrixData[0] = matrixData[4] = matrixData[8] = 1.0f;
}
Matrix::Matrix(float matrix0, float matrix3, float ... | 39.551724 | 167 | 0.654425 |
5902376f3cf4482c4f715faa1d2ddbdbd346a672 | 32,447 | cpp | C++ | src/Extensions/src/extensions/dynamicterrain/dynamic_terrain.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | null | null | null | src/Extensions/src/extensions/dynamicterrain/dynamic_terrain.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | null | null | null | src/Extensions/src/extensions/dynamicterrain/dynamic_terrain.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | null | null | null | #include <babylon/extensions/dynamicterrain/dynamic_terrain.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/cameras/camera.h>
#include <babylon/core/logging.h>
#include <babylon/engines/scene.h>
#include <babylon/extensions/dynamicterrain/dynamic_terrain_options.h>
#include <babylon/meshes/builders/mesh_bui... | 33.975916 | 100 | 0.633525 |
590253ef823890af7191227a7c7c31c0f6f17196 | 14,696 | cc | C++ | chrome/browser/ash/policy/handlers/site_isolation_flag_handling_browsertest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | chrome/browser/ash/policy/handlers/site_isolation_flag_handling_browsertest.cc | blueboxd/chromium-legacy | 07223bc94bd97499909c9ed3c3f5769d718fe2e0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | chrome/browser/ash/policy/handlers/site_isolation_flag_handling_browsertest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2018 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 <ostream>
#include <set>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/containers/cxx... | 41.988571 | 80 | 0.723734 |
5902ed7a0dab756a28e36d2062017b05b0f8bd9b | 23,154 | cpp | C++ | source/prt_lines_continuum.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/prt_lines_continuum.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/prt_lines_continuum.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | /* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and
* others. For conditions of distribution and use see copyright notice in license.txt */
/*lines_continuum put energetics, H, and He lines into line intensity stack */
#include "cddefines.h"
#include "taulines.h"
#include "iso.h"
#incl... | 36.578199 | 111 | 0.652501 |
59079ac068a9d3ea2143cb28fd1d7f74c802144e | 10,686 | cpp | C++ | src/YY_Thunks.cpp | fengjixuchui/YY-Thunks | d4b28d34bd05bccae902806f1fcef56ceb6c823f | [
"MIT"
] | null | null | null | src/YY_Thunks.cpp | fengjixuchui/YY-Thunks | d4b28d34bd05bccae902806f1fcef56ceb6c823f | [
"MIT"
] | null | null | null | src/YY_Thunks.cpp | fengjixuchui/YY-Thunks | d4b28d34bd05bccae902806f1fcef56ceb6c823f | [
"MIT"
] | null | null | null |
#define _YY_APPLY_TO_LATE_BOUND_MODULES(_APPLY) \
_APPLY(ntdll, "ntdll" , USING_UNSAFE_LOAD ) \
_APPLY(kernel32, "kernel32" ... | 41.579767 | 151 | 0.500842 |
59096f00721334d343b226b9c528f1098e159d6c | 4,924 | cpp | C++ | source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | #include "LightStreaksPostEffect/LightStreaksPostEffect.hpp"
#include <Castor3D/Engine.hpp>
#include <Castor3D/Buffer/GpuBuffer.hpp>
#include <Castor3D/Model/Vertex.hpp>
#include <Castor3D/Material/Texture/Sampler.hpp>
#include <Castor3D/Material/Texture/TextureLayout.hpp>
#include <Castor3D/Miscellaneous/Parameter.hp... | 27.662921 | 108 | 0.693745 |
590abc5da91904c53ccf38e68a0cd9edf113d02f | 854 | cpp | C++ | 0400/00/408a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0400/00/408a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0400/00/408a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <numeric>
#include <vector>
#include <climits>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(const std::vector<std::... | 16.113208 | 84 | 0.523419 |
590b34e3e8449f330810b3275f24a2899f6ba3fe | 535 | cc | C++ | data-structure/pb_ds.cc | ac-voyage/template | 84d7db1db0e79f50d641d84d4aaa17442b0653f6 | [
"MIT"
] | null | null | null | data-structure/pb_ds.cc | ac-voyage/template | 84d7db1db0e79f50d641d84d4aaa17442b0653f6 | [
"MIT"
] | null | null | null | data-structure/pb_ds.cc | ac-voyage/template | 84d7db1db0e79f50d641d84d4aaa17442b0653f6 | [
"MIT"
] | 1 | 2017-04-20T09:47:09.000Z | 2017-04-20T09:47:09.000Z | /* Red-Black tree via pb_ds. */
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
int main(){
ordere... | 31.470588 | 96 | 0.721495 |
590da069353fcffec5b4f8c224cd7882911076ff | 13,609 | cpp | C++ | extras/DemFiles/src/GridLib/ParseNumber.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | extras/DemFiles/src/GridLib/ParseNumber.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | extras/DemFiles/src/GridLib/ParseNumber.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2017 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 23.02.2017.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 29.975771 | 82 | 0.384525 |
590df6c3e2eb81be2786bc1f393a8cfa30a12c0d | 7,052 | cpp | C++ | src/rpucuda/dense_bit_line_maker.cpp | filemaster/aihwkit | 473eda8c3c89f49acdfc2da9bd03b27e22e13b1a | [
"Apache-2.0"
] | null | null | null | src/rpucuda/dense_bit_line_maker.cpp | filemaster/aihwkit | 473eda8c3c89f49acdfc2da9bd03b27e22e13b1a | [
"Apache-2.0"
] | null | null | null | src/rpucuda/dense_bit_line_maker.cpp | filemaster/aihwkit | 473eda8c3c89f49acdfc2da9bd03b27e22e13b1a | [
"Apache-2.0"
] | null | null | null | /**
* (C) Copyright 2020 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivative wor... | 24.918728 | 98 | 0.652155 |
590e09854eb8bb133a4f83dd90fb3162de139a87 | 5,300 | cc | C++ | Code/Components/Synthesis/synthesis/current/measurementequation/NormWienerPreconditioner.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Components/Synthesis/synthesis/current/measurementequation/NormWienerPreconditioner.cc | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Synthesis/synthesis/current/measurementequation/NormWienerPreconditioner.cc | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | /// @copyright (c) 2007 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part of the ASKAP software distribution.
///
/// The ASKAP software distribut... | 36.054422 | 129 | 0.673019 |
590fbbc29a6577b81fa544ca21977aed63372e58 | 8,862 | cpp | C++ | src/PermNetwork.cpp | patrick-schwarz/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | 1 | 2020-12-01T07:18:47.000Z | 2020-12-01T07:18:47.000Z | src/PermNetwork.cpp | wangjinglin0721/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | null | null | null | src/PermNetwork.cpp | wangjinglin0721/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2012-2019 IBM Corp.
* This program is 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 a... | 34.889764 | 79 | 0.64297 |
591261e8808cace7b5107293a496a4b964a02ef3 | 239 | cpp | C++ | usblist.cpp | polvention/libusb-cpp | 346d9dd5d791873a149b74f66e7233645bed2356 | [
"Apache-2.0"
] | null | null | null | usblist.cpp | polvention/libusb-cpp | 346d9dd5d791873a149b74f66e7233645bed2356 | [
"Apache-2.0"
] | null | null | null | usblist.cpp | polvention/libusb-cpp | 346d9dd5d791873a149b74f66e7233645bed2356 | [
"Apache-2.0"
] | null | null | null | #include <libusb.h>
#include <iostream>
using namespace std;
struct plv::usb::UsbList::Opaque
{
libusb_device **list = nullptr;
};
auto plv::usb::UsbList::~UsbList() -> void
{
libusb_free_device_lisit(o_->list, this->size());
}
| 15.933333 | 53 | 0.67364 |
591353e23489271a980133264ed1585dd8da5e83 | 4,882 | cc | C++ | chrome/notification_helper/notification_helper_crash_reporter_client.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/notification_helper/notification_helper_crash_reporter_client.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/notification_helper/notification_helper_crash_reporter_client.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2018 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/notification_helper/notification_helper_crash_reporter_client.h"
#include <memory>
#include "base/check.h"
#include "base/debug/leak_an... | 31.908497 | 81 | 0.785948 |
591573ae2b4b07b82625256973d1a0a936730162 | 31,861 | cpp | C++ | MK4duo/src/lcd/menu/menu_advanced.cpp | DapDeveloper/MK4duo | 385fdcd3cda94e73396dd12f23ff570c86d2eab5 | [
"RSA-MD"
] | null | null | null | MK4duo/src/lcd/menu/menu_advanced.cpp | DapDeveloper/MK4duo | 385fdcd3cda94e73396dd12f23ff570c86d2eab5 | [
"RSA-MD"
] | null | null | null | MK4duo/src/lcd/menu/menu_advanced.cpp | DapDeveloper/MK4duo | 385fdcd3cda94e73396dd12f23ff570c86d2eab5 | [
"RSA-MD"
] | null | null | null | /**
* MK4duo Firmware for 3D Printer, Laser and CNC
*
* Based on Marlin, Sprinter and grbl
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (C) 2019 Alberto Cotronei @MagoKimbra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pu... | 42.651941 | 197 | 0.695866 |
5915aba6512fc1bcd4d42873cf2255b08c4f3732 | 6,444 | cpp | C++ | src/mongocxx/test/read_preference.cpp | oledahle/mongo-cxx-driver | 60509b2d430b94d8e52d05502fb60e7b91c63cba | [
"Apache-2.0"
] | 934 | 2015-01-02T14:49:43.000Z | 2022-03-16T01:21:42.000Z | src/mongocxx/test/read_preference.cpp | oledahle/mongo-cxx-driver | 60509b2d430b94d8e52d05502fb60e7b91c63cba | [
"Apache-2.0"
] | 533 | 2015-01-07T18:45:30.000Z | 2022-03-23T00:44:26.000Z | src/mongocxx/test/read_preference.cpp | oledahle/mongo-cxx-driver | 60509b2d430b94d8e52d05502fb60e7b91c63cba | [
"Apache-2.0"
] | 570 | 2015-01-04T05:47:04.000Z | 2022-03-28T11:12:38.000Z | // Copyright 2014 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 33.915789 | 99 | 0.665115 |
5915ddf6d41c2605c4db388b4b71653bbff19a8b | 18,160 | cpp | C++ | QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp | SineStriker/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | 3 | 2021-12-08T05:30:52.000Z | 2021-12-18T10:46:49.000Z | QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | #include "SequenceTextFile.h"
#include "SystemApis.h"
#include "Variables.h"
using namespace Utau;
Q_CHARSET_DECLARE(SequenceTextFile)
// Project File Reader
SequenceTextFile::SequenceTextFile() : BaseFile(Qs::Default) {
m_codec = defaultCodec;
reset();
}
SequenceTextFile::SequenceTextFile(const QString &f... | 31.803853 | 100 | 0.557269 |
5916c71730ec6505ee9163d078c6fd5c46b5a047 | 2,893 | cpp | C++ | Wml/Source/Graphics/WmlSphereBV.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 26 | 2018-07-04T15:31:11.000Z | 2021-09-23T02:43:46.000Z | Wml/Source/Graphics/WmlSphereBV.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | null | null | null | Wml/Source/Graphics/WmlSphereBV.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 1 | 2019-06-11T03:20:28.000Z | 2019-06-11T03:20:28.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or ... | 37.571429 | 79 | 0.554787 |
5916f8c135d1f5ba107dfaf312a83325712c5551 | 1,535 | cpp | C++ | aws-cpp-sdk-panorama/source/model/S3Location.cpp | irods/aws-sdk-cpp | ea5a4d61a26c1eac41443fb9829e969ebac6e09b | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-panorama/source/model/S3Location.cpp | irods/aws-sdk-cpp | ea5a4d61a26c1eac41443fb9829e969ebac6e09b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-panorama/source/model/S3Location.cpp | irods/aws-sdk-cpp | ea5a4d61a26c1eac41443fb9829e969ebac6e09b | [
"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/panorama/model/S3Location.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace... | 17.055556 | 69 | 0.708143 |
5917564f6f820e30d8adb2b1baeff950fd4f1057 | 496 | cpp | C++ | components/rollkit/src/chracteristic.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | 4 | 2018-06-12T21:48:01.000Z | 2021-04-01T15:18:50.000Z | components/rollkit/src/chracteristic.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | null | null | null | components/rollkit/src/chracteristic.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | 1 | 2018-08-18T13:05:31.000Z | 2018-08-18T13:05:31.000Z | #include "rollkit/characteristic.hpp"
#include <algorithm>
#include "rollkit/utils.hpp"
using namespace std;
namespace rollkit {
nlohmann::json Characteristic::serialize() const {
nlohmann::json ret;
bool is_readable = find(_perms.begin(), _perms.end(), "pr") != _perms.end();
ret["type"] = _hap_type;
ret... | 17.103448 | 78 | 0.66129 |
591856727099f722b48e46485cd6bdea233393ce | 10,014 | cpp | C++ | Anemone.cpp | iOiSphere/Arduino-Library | c464354efaac98fdcbc478bf3872521f66c04f96 | [
"MIT"
] | null | null | null | Anemone.cpp | iOiSphere/Arduino-Library | c464354efaac98fdcbc478bf3872521f66c04f96 | [
"MIT"
] | null | null | null | Anemone.cpp | iOiSphere/Arduino-Library | c464354efaac98fdcbc478bf3872521f66c04f96 | [
"MIT"
] | null | null | null | /**
* @Author: Alcwyn Parker <alcwynparker>
* @Date: 2017-04-28T21:06:23+01:00
* @Email: alcwynparker@gmail.com
* @Project: Anemone
* @Filename: Anemone.cpp
* @Last modified by: alcwynparker
* @Last modified time: 2017-05-10T00:00:10+01:00
*/
#include "Arduino.h"
#include "Anemone.h"
Anemone::Anemone(int pin)
{
... | 20.819127 | 84 | 0.62153 |
591b215502ae32dc5fcc9b5d7eb6f95ae377a5e5 | 28,005 | cpp | C++ | src/lib/foundations/solvers/mckay.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/solvers/mckay.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/solvers/mckay.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // mckay.cpp
//
// solver due to Brendan McKay
// C++ translation by Volker Widor 2003
// adapted by Anton Betten
// 1/16/2009
#include "foundations.h"
using namespace std;
namespace orbiter {
namespace foundations {
mckay::tMCKAY::tMCKAY() {
nb_calls_to_solve = 0;
first_moved = 0;
second_moved = 0;
problem_l... | 25.858726 | 115 | 0.508124 |
591cfcda93a7f61258283a371c37cf3f085c0a55 | 123,412 | cpp | C++ | api/modules/SAM_TroughPhysicalProcessHeat.cpp | jkelroy/SAM | 3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db | [
"BSD-3-Clause"
] | 219 | 2017-07-28T17:25:14.000Z | 2022-03-17T23:03:17.000Z | api/modules/SAM_TroughPhysicalProcessHeat.cpp | jkelroy/SAM | 3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db | [
"BSD-3-Clause"
] | 729 | 2017-08-10T14:42:30.000Z | 2022-03-31T23:14:09.000Z | api/modules/SAM_TroughPhysicalProcessHeat.cpp | jkelroy/SAM | 3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db | [
"BSD-3-Clause"
] | 109 | 2017-09-16T00:52:54.000Z | 2022-03-31T18:05:05.000Z | #include <string>
#include <utility>
#include <vector>
#include <memory>
#include <iostream>
#include <ssc/sscapi.h>
#include "SAM_api.h"
#include "ErrorHandler.h"
#include "SAM_TroughPhysicalProcessHeat.h"
SAM_EXPORT int SAM_TroughPhysicalProcessHeat_execute(SAM_table data, int verbosity, SAM_error* err){
return S... | 31.180394 | 149 | 0.782695 |
591d267b6213c0d548dcdb9ae73eb3f6530a54cb | 9,198 | cpp | C++ | rede/newtonSolver.cpp | BigsonLvrocha/NeuralPowerFlow | 3d64078b5d1053cd521318229b69592acab6582a | [
"MIT"
] | null | null | null | rede/newtonSolver.cpp | BigsonLvrocha/NeuralPowerFlow | 3d64078b5d1053cd521318229b69592acab6582a | [
"MIT"
] | null | null | null | rede/newtonSolver.cpp | BigsonLvrocha/NeuralPowerFlow | 3d64078b5d1053cd521318229b69592acab6582a | [
"MIT"
] | null | null | null | /**
* @brief defines newton raphman power flow solver
*
* @file newtonSolver.cpp
* @author Luiz Victor Linhares Rocha
* @date 2018-09-22
* @copyright 2018
*/
#include <cmath>
#include "newtonSolver.hpp"
#include "barra.hpp"
#include "branch.hpp"
#include "powerNet.hpp"
namespace neuralFlux {
NewtonSolver::N... | 31.82699 | 94 | 0.570885 |
591d7427025f92f487dd1cd6bfc5e6d107749604 | 1,425 | cpp | C++ | test/concurrency/thread_pool_test.cpp | glensand/hope | 775286ad6abb5c7ff3e05ba09c5a429a7b9c0c02 | [
"MIT"
] | 10 | 2020-08-15T16:30:30.000Z | 2021-09-02T04:04:27.000Z | test/concurrency/thread_pool_test.cpp | glensand/hope | 775286ad6abb5c7ff3e05ba09c5a429a7b9c0c02 | [
"MIT"
] | null | null | null | test/concurrency/thread_pool_test.cpp | glensand/hope | 775286ad6abb5c7ff3e05ba09c5a429a7b9c0c02 | [
"MIT"
] | null | null | null | /* Copyright (C) 2021 Gleb Bezborodov - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: bezborodoff.gleb@gmail.com, or visit : https://github.com/glensand/hope
... | 22.983871 | 110 | 0.593684 |
591dbdd8142961e203d2483bc0f8f69e7c53d8b8 | 680 | hpp | C++ | module-apps/apps-common/popups/data/BluetoothModeParams.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-apps/apps-common/popups/data/BluetoothModeParams.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-apps/apps-common/popups/data/BluetoothModeParams.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "popups/Popups.hpp"
#include <service-appmgr/Actions.hpp>
#include <PhoneModes/Common.hpp>
namespace gui
{
class BluetoothModeParams : public app::manager:... | 24.285714 | 94 | 0.667647 |
591ead5f05ce505f1761f2c20a818b612ecd25aa | 414 | cpp | C++ | share/src/util/getuniquepath.cpp | MrCryptoBeast/WWW | 857e860df0aa1bc7fde2ee6f5918ff32933beeb3 | [
"MIT"
] | null | null | null | share/src/util/getuniquepath.cpp | MrCryptoBeast/WWW | 857e860df0aa1bc7fde2ee6f5918ff32933beeb3 | [
"MIT"
] | null | null | null | share/src/util/getuniquepath.cpp | MrCryptoBeast/WWW | 857e860df0aa1bc7fde2ee6f5918ff32933beeb3 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The worldwideweb Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <random.h>
#include <fs.h>
#include <util/strencodings.h>
fs::path GetUniquePath(const fs::path& base)
{
FastRa... | 29.571429 | 70 | 0.731884 |
591f2e18b9be255023a45a51f9e176edd6da3ce8 | 4,240 | cc | C++ | test/libponyc/compiler_serialisation.cc | rtpax/ponyc | 5af6626fcc894ef201bebfac712c454e6c8b14c9 | [
"BSD-2-Clause"
] | 4,304 | 2016-02-01T14:46:51.000Z | 2022-03-29T15:17:15.000Z | test/libponyc/compiler_serialisation.cc | rtpax/ponyc | 5af6626fcc894ef201bebfac712c454e6c8b14c9 | [
"BSD-2-Clause"
] | 2,889 | 2016-02-01T11:11:07.000Z | 2022-03-31T20:59:39.000Z | test/libponyc/compiler_serialisation.cc | rtpax/ponyc | 5af6626fcc894ef201bebfac712c454e6c8b14c9 | [
"BSD-2-Clause"
] | 534 | 2016-02-01T12:42:45.000Z | 2022-03-22T16:45:45.000Z | #include <gtest/gtest.h>
#include <platform.h>
#include <../libponyrt/mem/pool.h>
#include <../libponyrt/sched/scheduler.h>
#include "util.h"
#include <memory>
#define TEST_COMPILE(src, pass) DO(test_compile(src, pass))
#define TEST_COMPILE_RESUME(pass) DO(test_compile_resume(pass))
class CompilerSerialisationTes... | 19.62963 | 81 | 0.713915 |
591fadfaf96f3d07e889163a3d389b5223c7d722 | 39 | hpp | C++ | src/boost_asio_system_timer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_asio_system_timer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_asio_system_timer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/asio/system_timer.hpp>
| 19.5 | 38 | 0.794872 |
59204a0c83d260e99bb08a6a6cb71fe598368a59 | 3,912 | cpp | C++ | VC2010Samples/ATL/General/ATLCollections/Client/Client.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/ATL/General/ATLCollections/Client/Client.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/ATL/General/ATLCollections/Client/Client.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // 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.
// See these sources for detailed inform... | 26.08 | 90 | 0.67638 |
59205bfad8fb6a196846490756e581670a362340 | 3,221 | cc | C++ | src/lib/schwa/third-party/re2/testing/exhaustive3_test.cc | schwa-lab/libschwa | dc3546bde9d52255491873e5a4505ca2da88f012 | [
"MIT"
] | 7 | 2015-03-23T17:17:11.000Z | 2020-06-01T11:37:05.000Z | src/lib/schwa/third-party/re2/testing/exhaustive3_test.cc | schwa-lab/libschwa | dc3546bde9d52255491873e5a4505ca2da88f012 | [
"MIT"
] | null | null | null | src/lib/schwa/third-party/re2/testing/exhaustive3_test.cc | schwa-lab/libschwa | dc3546bde9d52255491873e5a4505ca2da88f012 | [
"MIT"
] | 1 | 2018-07-26T03:32:28.000Z | 2018-07-26T03:32:28.000Z | // Copyright 2008 The RE2 Authors. All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Exhaustive testing of regular expression matching.
#include <schwa/third-party/re2/util/test.h>
#include <schwa/third-party/re2/testing/exhaustive_tester.... | 33.905263 | 74 | 0.57063 |
5923a4647afae175e045a7ec96bd97975c593a29 | 13,848 | cpp | C++ | automated-tests/src/dali/utc-Dali-Shader.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | automated-tests/src/dali/utc-Dali-Shader.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-03-22T10:19:17.000Z | 2020-03-22T10:19:17.000Z | automated-tests/src/dali/utc-Dali-Shader.cpp | fayhot/dali-core | a69ea317f30961164520664a645ac36c387055ef | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* 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... | 32.204651 | 118 | 0.737363 |
59254d576bf9a2162a693904ee0576cc2eae7992 | 25,309 | cpp | C++ | Qt Source Code/opencv_.cpp | GorkemTok33/Temel-Resim-Islemleri | 197fa4f5eeb1194f27800e2ebc1c08fcad275df1 | [
"MIT"
] | null | null | null | Qt Source Code/opencv_.cpp | GorkemTok33/Temel-Resim-Islemleri | 197fa4f5eeb1194f27800e2ebc1c08fcad275df1 | [
"MIT"
] | null | null | null | Qt Source Code/opencv_.cpp | GorkemTok33/Temel-Resim-Islemleri | 197fa4f5eeb1194f27800e2ebc1c08fcad275df1 | [
"MIT"
] | null | null | null | /****************************************************************************************
Program: PictureDesigner
Author: Görkem Tok
Language: C++
Platform: Qt Creator
Contact: ceng.gorkem.tok@gmail.com
License: MIT
****************************************************************************************/
#... | 32.572716 | 200 | 0.608716 |
59264ede404d20daf02b4b2d53ae543df9c017d7 | 220 | hxx | C++ | src/lib/ui/widgets/label.hxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | src/lib/ui/widgets/label.hxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | src/lib/ui/widgets/label.hxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <ui/widgets/config.hxx>
#include <QLabel>
PRAM_NS_BEGIN
WIDGETS_NAMESPACE_BEGIN
class Label: public QLabel
{
Q_OBJECT
public:
using QLabel::QLabel;
};
PRAM_NS_END
WIDGETS_NAMESPACE_END
| 11.578947 | 32 | 0.768182 |
59274351d802839b10cd13fc322f83b28799931f | 2,567 | hpp | C++ | src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp | mateosss/monado | 5c6158cc8bbd92add1aa38bf44164cd9d0386900 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-02-25T19:36:30.000Z | 2021-02-25T19:36:30.000Z | src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp | mateosss/monado | 5c6158cc8bbd92add1aa38bf44164cd9d0386900 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/xrt/auxiliary/tracking/t_helper_debug_sink.hpp | mateosss/monado | 5c6158cc8bbd92add1aa38bf44164cd9d0386900 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Small helper struct that for debugging views.
* @author Jakob Bornecrantz <jakob@collabora.com>
* @ingroup aux_tracking
*/
#pragma once
#ifndef __cplusplus
#error "This header is C++-only."
#endif
#include <opencv2/open... | 20.212598 | 67 | 0.613946 |
592bd95a74c9a08b03b2d079850914ccca204634 | 14,141 | cpp | C++ | wifi-x-nucleo-idw01m1/SpwfSAInterface.cpp | rmikio/STM32L475_Ubidots_LCF | 1d9fd282969d035680de2ff42a97389ce831711a | [
"MIT"
] | null | null | null | wifi-x-nucleo-idw01m1/SpwfSAInterface.cpp | rmikio/STM32L475_Ubidots_LCF | 1d9fd282969d035680de2ff42a97389ce831711a | [
"MIT"
] | null | null | null | wifi-x-nucleo-idw01m1/SpwfSAInterface.cpp | rmikio/STM32L475_Ubidots_LCF | 1d9fd282969d035680de2ff42a97389ce831711a | [
"MIT"
] | null | null | null | /* mbed Microcontroller Library
* Copyright (c) 20015 ARM Limited
*
* 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 requir... | 27.565302 | 154 | 0.655753 |
592c133b276684d0c8e4ad2e04426e3d55f461cc | 333 | hpp | C++ | Classifier/TransformerBuilder.hpp | TomaszRewak/Classifiers | 35f383b4a87d905f9c15dfdec88a94ea9f8b1abb | [
"MIT"
] | null | null | null | Classifier/TransformerBuilder.hpp | TomaszRewak/Classifiers | 35f383b4a87d905f9c15dfdec88a94ea9f8b1abb | [
"MIT"
] | null | null | null | Classifier/TransformerBuilder.hpp | TomaszRewak/Classifiers | 35f383b4a87d905f9c15dfdec88a94ea9f8b1abb | [
"MIT"
] | null | null | null | #pragma once
#include "Transformer.hpp"
namespace Classifier::Data::Transformation
{
class TransformerBuilder
{
public:
template<typename ...Ts>
static Transformer<InputFeatures<Ts...>, OutputFeatures<Ts...>> from(FeatureSet<Ts...>& set)
{
return Transformer<InputFeatures<Ts...>, OutputFeatures<Ts...>>(se... | 20.8125 | 94 | 0.6997 |
592e9ae42ef83ac29643bd7f3a4159072f665245 | 12,177 | cpp | C++ | src/helics/application_api/Filters.cpp | bmkelley/HELICS | 742383907e5ad8af25a97d17a60985976af7c2e1 | [
"BSD-3-Clause"
] | null | null | null | src/helics/application_api/Filters.cpp | bmkelley/HELICS | 742383907e5ad8af25a97d17a60985976af7c2e1 | [
"BSD-3-Clause"
] | null | null | null | src/helics/application_api/Filters.cpp | bmkelley/HELICS | 742383907e5ad8af25a97d17a60985976af7c2e1 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017-2020,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "Filters.hpp"
#include "CoreApp.hpp"
#include "FilterOperat... | 30.984733 | 100 | 0.625113 |
59321cdd7d6a326585aeb4c8a569604af1105e15 | 10,369 | cc | C++ | ecs/src/model/DescribeDedicatedHostsResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | ecs/src/model/DescribeDedicatedHostsResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | ecs/src/model/DescribeDedicatedHostsResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 56.048649 | 130 | 0.806346 |
5932560724f312a4b6110af9eddff9da97581ad6 | 7,373 | cpp | C++ | src/Cello/control_stopping.cpp | TrevorMcCrary/enzo-e | abeb5d73d6ff210fc6cd675c25430cfb93c374ac | [
"BSD-3-Clause"
] | null | null | null | src/Cello/control_stopping.cpp | TrevorMcCrary/enzo-e | abeb5d73d6ff210fc6cd675c25430cfb93c374ac | [
"BSD-3-Clause"
] | null | null | null | src/Cello/control_stopping.cpp | TrevorMcCrary/enzo-e | abeb5d73d6ff210fc6cd675c25430cfb93c374ac | [
"BSD-3-Clause"
] | null | null | null | // See LICENSE_CELLO file for license and copyright information
/// @file control_stopping.cpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date 2013-04-26
/// @brief Charm-related functions associated with initialization
/// @ingroup Control
///
/// STOPPING
///
/// Block::stopping(... | 25.77972 | 86 | 0.607351 |
593354c5453f53ade53e9f4dc05587e3b13ff53a | 2,178 | cc | C++ | src/common/chemistry/base_chemistry/ion_exchange_site.cc | ajkhattak/amanzi | fed8cae6af3f9dfa5984381d34b98401c3b47655 | [
"RSA-MD"
] | 1 | 2021-02-23T18:34:47.000Z | 2021-02-23T18:34:47.000Z | src/common/chemistry/base_chemistry/ion_exchange_site.cc | ajkhattak/amanzi | fed8cae6af3f9dfa5984381d34b98401c3b47655 | [
"RSA-MD"
] | null | null | null | src/common/chemistry/base_chemistry/ion_exchange_site.cc | ajkhattak/amanzi | fed8cae6af3f9dfa5984381d34b98401c3b47655 | [
"RSA-MD"
] | null | null | null | /*
Chemistry
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Ben Andre
Base class for ion exchange sites (e.g. X- in s... | 27.225 | 88 | 0.653352 |
5934cba98b73e262663e0266c928b8eeb4c52487 | 1,714 | hpp | C++ | include/RadonFramework/System/Hardware/ProcessorFeatures.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | include/RadonFramework/System/Hardware/ProcessorFeatures.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | include/RadonFramework/System/Hardware/ProcessorFeatures.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #ifndef RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP
#define RF_SYSTEM_HARDWARE_PROCESSORFEATURES_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <RadonFramework/Collections/BitSet.hpp>
namespace RadonFramework::System::Hardware::ProcessorFeatures {
enum Type
{
AES, // Advanced Encryption Standard instruction s... | 31.163636 | 78 | 0.717036 |
593583dcdc8c80b7d669ef06e9501badad0b333e | 13,295 | cpp | C++ | preview/egl_preview.cpp | tewarid/libcamera-apps | 015efd0e17cb233278fe0e042ee22e377526a5b7 | [
"BSD-2-Clause"
] | null | null | null | preview/egl_preview.cpp | tewarid/libcamera-apps | 015efd0e17cb233278fe0e042ee22e377526a5b7 | [
"BSD-2-Clause"
] | null | null | null | preview/egl_preview.cpp | tewarid/libcamera-apps | 015efd0e17cb233278fe0e042ee22e377526a5b7 | [
"BSD-2-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2020, Raspberry Pi (Trading) Ltd.
*
* egl_preview.cpp - X/EGL-based preview window.
*/
#include <map>
#include <string>
// Include libcamera stuff before X11, as X11 #defines both Status and None
// which upsets the libcamera headers.
#include "core/... | 29.21978 | 120 | 0.728545 |
5936007faa16db0979bf1d9f8890a54cbc714efc | 13,966 | cpp | C++ | NorthstarDedicatedTest/logging.cpp | r-ex/NorthstarLauncher | 14bc1b6ac7425934cb9fdfbcc522c720d512b370 | [
"MIT"
] | 186 | 2021-12-24T01:36:12.000Z | 2022-03-29T04:39:24.000Z | NorthstarDedicatedTest/logging.cpp | r-ex/NorthstarLauncher | 14bc1b6ac7425934cb9fdfbcc522c720d512b370 | [
"MIT"
] | 101 | 2021-12-24T04:00:40.000Z | 2022-03-29T22:37:39.000Z | NorthstarDedicatedTest/logging.cpp | r-ex/NorthstarLauncher | 14bc1b6ac7425934cb9fdfbcc522c720d512b370 | [
"MIT"
] | 94 | 2021-12-24T02:09:45.000Z | 2022-03-29T22:49:40.000Z | #include "pch.h"
#include "logging.h"
#include "sourceconsole.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "hookutils.h"
#include "dedicated.h"
#include "convar.h"
#include <iomanip>
#include <sstream>
#include <Psapi.h>
#include <minidumpapiset.h>
#include "configurables.h"
// This needs to be called after h... | 28.677618 | 134 | 0.718674 |
5936b8427d03384772e56818fe99645f19183040 | 9,210 | cc | C++ | libview/reparenter.cc | libview/libview | 3d9b8bd63589e8bdc43638331bf6061127690cd3 | [
"MIT"
] | 2 | 2020-10-22T22:02:52.000Z | 2021-12-13T18:07:16.000Z | libview/reparenter.cc | libview/libview | 3d9b8bd63589e8bdc43638331bf6061127690cd3 | [
"MIT"
] | null | null | null | libview/reparenter.cc | libview/libview | 3d9b8bd63589e8bdc43638331bf6061127690cd3 | [
"MIT"
] | null | null | null | /* *************************************************************************
* Copyright (c) 2005 VMware, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, incl... | 28.079268 | 79 | 0.577742 |
59375df6c25cb3aba0a331c1eeb286a06cfaaa25 | 5,096 | hpp | C++ | RobWork/src/rw/geometry/analytic/Face.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/geometry/analytic/Face.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/geometry/analytic/Face.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2018 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 33.30719 | 100 | 0.593995 |
5938d8e8df67ea55f5b7833204be14d1dae7e922 | 1,387 | hpp | C++ | search/model.hpp | ToshUxanoff/omim | a8acb5821c72bd78847d1c49968b14d15b1e06ee | [
"Apache-2.0"
] | 1 | 2021-07-02T08:45:02.000Z | 2021-07-02T08:45:02.000Z | search/model.hpp | ToshUxanoff/omim | a8acb5821c72bd78847d1c49968b14d15b1e06ee | [
"Apache-2.0"
] | 1 | 2020-06-15T15:16:23.000Z | 2020-06-15T15:59:19.000Z | search/model.hpp | maksimandrianov/omim | cbc5a80d09d585afbda01e471887f63b9d3ab0c2 | [
"Apache-2.0"
] | 1 | 2018-10-01T10:27:21.000Z | 2018-10-01T10:27:21.000Z | #pragma once
#include "indexer/ftypes_matcher.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
#include "base/macros.hpp"
class FeatureType;
namespace search
{
/// Describes 2-level POI-exception types that don't belong to any POI-common classes
/// (amenity, shop, tourism, ...). Used in search algo and se... | 22.737705 | 94 | 0.715934 |
5939c7490936115355a20cc9059ad82539d2160f | 5,007 | cc | C++ | Data-Structures/Tree/GeneralTree/BinaryTree/BST/main.cc | aniruddha0pandey/Code-Archive | f347aa17ef3f43d6b5a3ce95f9be25d2a6cb6965 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | Data-Structures/Tree/GeneralTree/BinaryTree/BST/main.cc | aniruddha0pandey/Code-Archive | f347aa17ef3f43d6b5a3ce95f9be25d2a6cb6965 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | Data-Structures/Tree/GeneralTree/BinaryTree/BST/main.cc | aniruddha0pandey/Code-Archive | f347aa17ef3f43d6b5a3ce95f9be25d2a6cb6965 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-08-16T05:48:55.000Z | 2020-08-16T05:48:55.000Z | // clear && make main && ./main < in > out && subl ./out
#include <bits/stdc++.h>
template<typename T> struct
Node {
T data;
std::shared_ptr<Node> parent;
std::shared_ptr<Node> left;
std::shared_ptr<Node> right;
Node( T data = -1 ) :
data ( data ),
parent ( nullptr ),
left ( nullptr ),
right ( nullptr )... | 23.842857 | 174 | 0.618734 |
593b3a4f9051ebca909b9cf72a4578b31374eeba | 2,770 | cpp | C++ | editor/utils/assets.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | editor/utils/assets.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | editor/utils/assets.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | /*******************************
Copyright (c) 2016-2022 Grégoire Angerand
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... | 29.784946 | 80 | 0.62852 |
593b872a7cfd628d62724c84aa2511b3fd841687 | 52 | cpp | C++ | src/kernel/dev/Mouse.cpp | jameskingstonclarke/arctic | 6fec04809d6175689477abfe21416f33e63cb177 | [
"MIT"
] | 1 | 2021-02-01T19:28:02.000Z | 2021-02-01T19:28:02.000Z | src/kernel/dev/Mouse.cpp | jameskingstonclarke/arctic | 6fec04809d6175689477abfe21416f33e63cb177 | [
"MIT"
] | 9 | 2021-02-07T15:46:11.000Z | 2021-02-18T08:25:42.000Z | src/kernel/dev/Mouse.cpp | jameskingstonclarke/arctic | 6fec04809d6175689477abfe21416f33e63cb177 | [
"MIT"
] | null | null | null | #include "Mouse.h"
namespace Dev::Mouse{
} | 10.4 | 22 | 0.576923 |
593bd25ac5a25fecf5736831b3397f22b9c6b303 | 441 | hpp | C++ | core/test/tu-PRNG.hpp | iboB/word-grid | d1029323d5c51499298f3ed19390928371cb70a6 | [
"MIT"
] | 2 | 2019-07-01T00:10:43.000Z | 2019-09-18T19:37:38.000Z | core/test/tu-PRNG.hpp | iboB/word-grid | d1029323d5c51499298f3ed19390928371cb70a6 | [
"MIT"
] | null | null | null | core/test/tu-PRNG.hpp | iboB/word-grid | d1029323d5c51499298f3ed19390928371cb70a6 | [
"MIT"
] | 2 | 2019-07-17T17:44:16.000Z | 2020-12-21T07:56:11.000Z | // word-grid
// Copyright (c) 2019-2021 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#pragma once
#include <core/PRNG.hpp>
#include <iostream>
namespace test
{
core::PRNG makePrng()
{
auto seed = cor... | 18.375 | 61 | 0.673469 |
593ce0ae6b27decfe7326e9ab2ed779c5757f99d | 15,118 | cc | C++ | courgette/disassembler_elf_32_arm.cc | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-16T03:57:28.000Z | 2021-01-23T15:29:45.000Z | courgette/disassembler_elf_32_arm.cc | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | courgette/disassembler_elf_32_arm.cc | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-03-15T13:21:38.000Z | 2017-03-15T13:21:38.000Z | // Copyright 2013 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 "courgette/disassembler_elf_32_arm.h"
#include <algorithm>
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/logg... | 30.916155 | 79 | 0.579508 |
86ca97038a9f2204c4a6c18c843ccc41cb98f527 | 1,967 | cpp | C++ | modules/task_1/butescu_v_vector_average/butescu_v_vector_average.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/butescu_v_vector_average/butescu_v_vector_average.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/butescu_v_vector_average/butescu_v_vector_average.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Butescu Vladimir
#include <mpi.h>
#include <vector>
#include <random>
#include <algorithm>
#include"./butescu_v_vector_average.h"
std::vector<int> getRandomPositiveVector(int size) {
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> dist(1, 100);
if (si... | 24.898734 | 96 | 0.591764 |
86cac429332810b3c115d63bf553ce073b22505e | 4,507 | cc | C++ | src/CollectionIdentifier.cc | sschaal2/ign-fuel-tools | c0ec7e960fa87ba90690774bebd478acaaaff7bc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/CollectionIdentifier.cc | sschaal2/ign-fuel-tools | c0ec7e960fa87ba90690774bebd478acaaaff7bc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/CollectionIdentifier.cc | sschaal2/ign-fuel-tools | c0ec7e960fa87ba90690774bebd478acaaaff7bc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... | 28.16875 | 80 | 0.575327 |
86cc96fe7beff3d56461edab56c4714a561fd4c9 | 3,104 | cxx | C++ | Rendering/OpenGL/Testing/Cxx/TestMultiblockDisplayProperties.cxx | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 3 | 2020-06-20T23:31:06.000Z | 2021-01-11T02:17:16.000Z | Rendering/OpenGL/Testing/Cxx/TestMultiblockDisplayProperties.cxx | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 1 | 2020-12-01T23:21:02.000Z | 2020-12-02T23:44:43.000Z | Rendering/OpenGL/Testing/Cxx/TestMultiblockDisplayProperties.cxx | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 5 | 2015-10-09T04:12:29.000Z | 2021-12-15T16:57:11.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: TestMultiblockDisplayProperties.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 29.846154 | 75 | 0.698776 |
86cd13bd7e401e2b40b318f2e0361212ebac93f6 | 641 | cpp | C++ | C++ Practicals/binary_search.cpp | Atithi360/CodingPracticals | fa0254dde389c18bb3af03613c4863667c76965b | [
"MIT"
] | null | null | null | C++ Practicals/binary_search.cpp | Atithi360/CodingPracticals | fa0254dde389c18bb3af03613c4863667c76965b | [
"MIT"
] | null | null | null | C++ Practicals/binary_search.cpp | Atithi360/CodingPracticals | fa0254dde389c18bb3af03613c4863667c76965b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int binarysearch(int arr[], int l,int r, int x);
int main()
{
int array[] = {1,2,3,4,5,6,7,9};
int n = sizeof(array)/sizeof(array[0]);
int x = 2;
int result = binarysearch(array,0,n-1,x);
if (result==-1) cout<<x<<" is not present in the array"<<endl;
else... | 24.653846 | 66 | 0.578783 |
86cf793fb525484b6d499bbac649abb54da73c0c | 609 | cpp | C++ | src/Functions/JSONPath/Parsers/ParserJSONPathRoot.cpp | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 15,577 | 2019-09-23T11:57:53.000Z | 2022-03-31T18:21:48.000Z | src/Functions/JSONPath/Parsers/ParserJSONPathRoot.cpp | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 16,476 | 2019-09-23T11:47:00.000Z | 2022-03-31T23:06:01.000Z | src/Functions/JSONPath/Parsers/ParserJSONPathRoot.cpp | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 3,633 | 2019-09-23T12:18:28.000Z | 2022-03-31T15:55:48.000Z | #include <Functions/JSONPath/ASTs/ASTJSONPathRoot.h>
#include <Functions/JSONPath/Parsers/ParserJSONPathRoot.h>
#include <Parsers/Lexer.h>
namespace DB
{
/**
*
* @param pos token iterator
* @param node node of ASTJSONPathRoot
* @param expected stuff for logging
* @return was parse successful
*/
bool ParserJSONP... | 21.75 | 81 | 0.681445 |
86cff7f73bc393ed074e048e25d8fe6bad06cbbd | 10,748 | hh | C++ | mcg/src/external/BSR/include/mlearning/clustering/clusterers/graph/tree_clusterer.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 392 | 2015-01-14T13:19:40.000Z | 2022-02-12T08:47:33.000Z | mcg/src/external/BSR/include/mlearning/clustering/clusterers/graph/tree_clusterer.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 45 | 2015-02-03T12:16:10.000Z | 2022-03-07T00:25:09.000Z | mcg/src/external/BSR/include/mlearning/clustering/clusterers/graph/tree_clusterer.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 168 | 2015-01-05T02:29:53.000Z | 2022-02-22T04:32:04.000Z | /*
* Clusterer on undirected graphs that produces an agglomeration tree.
*
* Graph vertices are initialized to each be a single element tree. Each
* step of the agglomeration merges the vertices at the ends of the highest
* priority edge and updates the costs of the edges connected to the merged
* vertex. Th... | 29.206522 | 79 | 0.640026 |
86d0ee63a3f8f9afd860dca3becca6d1988d40d4 | 4,217 | cpp | C++ | UVa/UVA - 116/Wrong answer (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | UVa/UVA - 116/Wrong answer (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | UVa/UVA - 116/Wrong answer (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2017-08-07 23:11:59
* solution_verdict: Wrong answer language: C++
* run... | 27.927152 | 111 | 0.311359 |
86d3a42632747ee3ca59b603153f0e44e6e7a540 | 6,503 | cpp | C++ | export/debug/windows/obj/src/openfl/ui/Multitouch.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/debug/windows/obj/src/openfl/ui/Multitouch.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/debug/windows/obj/src/openfl/ui/Multitouch.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_openfl__Vector_IVector
#include <openfl/_Vector/IVector.h>
#endif
#ifndef INCLUDED_openfl__Vector_ObjectVector
#include <openfl/_Vector/ObjectVector.h>
#endif
#ifndef INCLUDED_openfl_ui_Multitouch
#include <openfl/ui/Multitouch.h>
#endif
HX_LOCAL_STACK_FR... | 36.127778 | 222 | 0.761495 |
86d6e76649ac6d14901abb13bb7455e00c8a3e4d | 3,049 | cpp | C++ | volume_rendering/src/renderer.cpp | yuehaowang/learn_openGL | 1fdd0d4aea6196e272e8eea8459cfd371e98831a | [
"MIT"
] | 3 | 2019-02-05T15:03:42.000Z | 2020-04-09T06:33:38.000Z | volume_rendering/src/renderer.cpp | yuehaowang/lets_CG | 1fdd0d4aea6196e272e8eea8459cfd371e98831a | [
"MIT"
] | null | null | null | volume_rendering/src/renderer.cpp | yuehaowang/lets_CG | 1fdd0d4aea6196e272e8eea8459cfd371e98831a | [
"MIT"
] | null | null | null | #include "renderer.h"
#include "config.hpp"
extern Config conf;
void Renderer::setCamera(Camera *cam) { this->camera = cam; };
void Renderer::addLight(Light *light) { this->lights.push_back(light); };
void Renderer::setVolume(Volume *vol) { this->volume = vol; };
void Renderer::setClassifier(Classifier *classifier... | 34.258427 | 117 | 0.588062 |
86d707a3bafd5ecafa36b28ebd7ecb1eb91813ae | 3,482 | cpp | C++ | accelerator/thread/Futex.cpp | Yeolar/accelerator | 04d36eac69490df9ae71c7cfd71481d83ca51914 | [
"Apache-2.0"
] | 2 | 2019-05-13T02:34:51.000Z | 2019-11-14T06:52:44.000Z | accelerator/thread/Futex.cpp | Yeolar/accelerator | 04d36eac69490df9ae71c7cfd71481d83ca51914 | [
"Apache-2.0"
] | null | null | null | accelerator/thread/Futex.cpp | Yeolar/accelerator | 04d36eac69490df9ae71c7cfd71481d83ca51914 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 Facebook, Inc.
* Copyright 2017 Yeolar
*
* 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 ... | 33.480769 | 75 | 0.602527 |
86d778d2d6be5813d42614667288244af76b752b | 4,354 | cpp | C++ | day8.cpp | Daria2002/AoC2019 | 5389f2463c38ca448b3c18ca67d90609f175b636 | [
"MIT"
] | null | null | null | day8.cpp | Daria2002/AoC2019 | 5389f2463c38ca448b3c18ca67d90609f175b636 | [
"MIT"
] | null | null | null | day8.cpp | Daria2002/AoC2019 | 5389f2463c38ca448b3c18ca67d90609f175b636 | [
"MIT"
] | null | null | null | #include <sstream>
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#define PIXELS_WIDE 25
#define PIXELS_TALL 6
#define ASCII_ZERO 48
template <class T>
std::vector<T> extract_subvector(std::vector<T> v, int begin_index, int end_index) {
auto begin = v.begin() + beg... | 27.043478 | 113 | 0.516766 |
86d7b3b0f7f87ff0fb02c368306cbc2041e986db | 3,534 | cc | C++ | src/sandbox/shmem_ipc.cc | dvuckovic/eckit | 58a918e7be8fe073f37683abf639374ab1ad3e4f | [
"Apache-2.0"
] | 10 | 2018-03-01T22:11:10.000Z | 2021-05-17T14:13:58.000Z | src/sandbox/shmem_ipc.cc | dvuckovic/eckit | 58a918e7be8fe073f37683abf639374ab1ad3e4f | [
"Apache-2.0"
] | 43 | 2018-04-11T11:13:44.000Z | 2022-03-31T15:28:03.000Z | src/sandbox/shmem_ipc.cc | dvuckovic/eckit | 58a918e7be8fe073f37683abf639374ab1ad3e4f | [
"Apache-2.0"
] | 20 | 2018-03-07T21:36:50.000Z | 2022-03-30T13:25:25.000Z | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 22.8 | 120 | 0.602151 |
86da8fb4899c1fbda2d748079cee5fddd67ce0d5 | 294,519 | cc | C++ | extra/tensorflow-r1.4/tensorflow/core/protobuf/meta_graph.pb.cc | langsunny/DEye | dba4b297fff71c72d28e2b48eeb7d447066a32ce | [
"Apache-2.0"
] | 850 | 2018-01-18T05:56:02.000Z | 2022-03-31T08:17:34.000Z | extra/tensorflow-r1.4/tensorflow/core/protobuf/meta_graph.pb.cc | langsunny/DEye | dba4b297fff71c72d28e2b48eeb7d447066a32ce | [
"Apache-2.0"
] | 11 | 2018-03-14T02:49:04.000Z | 2021-03-09T02:06:00.000Z | extra/tensorflow-r1.4/tensorflow/core/protobuf/meta_graph.pb.cc | langsunny/DEye | dba4b297fff71c72d28e2b48eeb7d447066a32ce | [
"Apache-2.0"
] | 364 | 2018-01-22T02:11:16.000Z | 2022-03-27T12:58:47.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/meta_graph.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port... | 38.72193 | 143 | 0.724483 |
86dc14fa56d3ed07953dcfd7230caa1ac1ba9818 | 17,404 | cpp | C++ | Source/AllProjects/CIDLib/CIDLib_SharedMemory.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/CIDLib/CIDLib_SharedMemory.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/CIDLib/CIDLib_SharedMemory.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDLib_SharedMemory.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/28/1997
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... | 30.006897 | 84 | 0.529476 |
86dcd2a60ef8348ab2a45806d45fa70ccba91c59 | 55,364 | cpp | C++ | Code/Engine/Texture/Image/Implementation/ImageUtils.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/Texture/Image/Implementation/ImageUtils.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/Texture/Image/Implementation/ImageUtils.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | #include <TexturePCH.h>
#include <Texture/Image/ImageUtils.h>
#include <Foundation/SimdMath/SimdVec4f.h>
#include <Texture/Image/ImageConversion.h>
#include <Texture/Image/ImageEnums.h>
#include <Texture/Image/ImageFilter.h>
template <typename TYPE>
static void SetDiff(
const ezImageView& ImageA, const ... | 34.689223 | 148 | 0.653511 |
86dd0965c7f295025f900d8c7ad993a50a0217d2 | 1,081 | cpp | C++ | PROVAS/prova_1_2019_1/q2/pessoa.cpp | EduFreit4s/Tecnicas-de-Program | 360a2addabe8226b4abc78b26fd6ece0297892f4 | [
"MIT"
] | 5 | 2019-10-03T22:14:13.000Z | 2020-02-18T00:23:55.000Z | PROVAS/prova_1_2019_1/q2/pessoa.cpp | EduFreit4s/Tecnicas-de-Program | 360a2addabe8226b4abc78b26fd6ece0297892f4 | [
"MIT"
] | null | null | null | PROVAS/prova_1_2019_1/q2/pessoa.cpp | EduFreit4s/Tecnicas-de-Program | 360a2addabe8226b4abc78b26fd6ece0297892f4 | [
"MIT"
] | 2 | 2019-10-24T21:32:53.000Z | 2019-12-05T18:36:56.000Z | #include "pessoa.h"
bool Pessoa::setCodigo(string c){
codigo = c;
return 1;
}
bool Pessoa::setNome(string n){
if(n.size() > 5){
nome = n;
return 1;
}else{
cout << endl << "Nome muito curto! Escolha um nome com 5 ou mais letras. Tente novamente: ";
nome = ... | 18.322034 | 101 | 0.511563 |
86deaba0824aecd4531d149f85eff70553b6afaa | 309 | hpp | C++ | include/grl/concepts/DeviceCommand.hpp | hany606/grl | b99ee6fa72163f22dddc5547a09a461a914889ac | [
"BSD-2-Clause",
"Apache-2.0"
] | 140 | 2015-03-28T21:30:26.000Z | 2022-03-16T18:43:11.000Z | include/grl/concepts/DeviceCommand.hpp | hany606/grl | b99ee6fa72163f22dddc5547a09a461a914889ac | [
"BSD-2-Clause",
"Apache-2.0"
] | 173 | 2015-03-28T21:56:54.000Z | 2020-06-25T17:29:02.000Z | include/grl/concepts/DeviceCommand.hpp | hany606/grl | b99ee6fa72163f22dddc5547a09a461a914889ac | [
"BSD-2-Clause",
"Apache-2.0"
] | 68 | 2015-04-03T20:37:12.000Z | 2022-02-02T20:59:11.000Z | #ifndef DEVICE_COMMAND_HPP_
#define DEVICE_COMMAND_HPP_
namespace grl {
namespace concept {
template<typename Device>
class DeviceCommand
{
#ifndef DOXYGEN_NO_CONCEPT_MEMBERS
#endif
};
template<typename Device>
class ConstDeviceCommand
{
#ifndef DOXYGEN_NO_CONCEPT_MEMBERS
#endif
};
}}
#endif | 10.655172 | 34 | 0.783172 |
86e0cf795a13b903eba4a242a0b35c2ebe240c54 | 3,589 | cpp | C++ | third_party/mesa/src/src/glsl/ir_basic_block.cpp | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/mesa/src/src/glsl/ir_basic_block.cpp | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/mesa/src/src/glsl/ir_basic_block.cpp | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /*
* Copyright © 2010 Intel Corporation
*
* 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, pub... | 33.542056 | 77 | 0.697966 |
86e0f09299846a4f5fe2ef5ce22148c03461df8f | 1,649 | cpp | C++ | Training/PosStreamer.cpp | CheckersGuy/DarkHorse | f5e763536508770a336d099af7ac4d0a7b2f72a0 | [
"MIT"
] | 1 | 2020-04-03T01:20:36.000Z | 2020-04-03T01:20:36.000Z | Training/PosStreamer.cpp | CheckersGuy/DarkHorse | f5e763536508770a336d099af7ac4d0a7b2f72a0 | [
"MIT"
] | 2 | 2018-10-30T13:46:19.000Z | 2019-11-04T20:46:25.000Z | Training/PosStreamer.cpp | CheckersGuy/DarkHorse | f5e763536508770a336d099af7ac4d0a7b2f72a0 | [
"MIT"
] | null | null | null | //
// Created by robin on 06.10.21.
//
#include <sys/stat.h>
#include "PosStreamer.h"
Sample PosStreamer::get_next() {
if (ptr >= buffer_size) {
ptr = 0;
//if we reached the end of our file
//we have to wrap around
size_t read_elements = 0;
do {
if (stream.peek... | 25.369231 | 78 | 0.562765 |
86e2383ed549929989f3d9a2d9c0e43dca471f4a | 5,694 | cpp | C++ | Tests/AK/TestGenericLexer.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Tests/AK/TestGenericLexer.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Tests/AK/TestGenericLexer.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/GenericLexer.h>
#include <AK/StringView.h>
TEST_CASE(should_constexpr_construct_from_empty_string_view)
{
constexpr GenericLexer sut(StringView {});
static_assert(su... | 27.507246 | 130 | 0.654373 |
86e4e3725e3309f19d1a72bb92b4230aee8f5a29 | 1,796 | cpp | C++ | Engine/Graphics/Texture.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Graphics/Texture.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Graphics/Texture.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | 1 | 2021-09-06T08:30:20.000Z | 2021-09-06T08:30:20.000Z | #include "Texture.h"
#include "Base/Engine.h"
#include "Graphics/Renderer.h"
#include <D3DX11tex.h>
namespace S2DE::Render
{
Texture::Texture()
{
m_type = "Texture";
m_ex = { ".dds", ".png", ".tga", ".jpg" };
}
Texture::~Texture()
{
}
void Texture::Cleanup()
{
Core::Release(m_resource);
Core::Rele... | 24.60274 | 165 | 0.732183 |
86e89e3d6ff08f50ac78ce7a36e218df72e0eb03 | 6,499 | cpp | C++ | Engine/source/forest/editor/forestBrushElement.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Engine/source/forest/editor/forestBrushElement.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Engine/source/forest/editor/forestBrushElement.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 32.495 | 107 | 0.634251 |
86e99399ef083cc3001424ee0adfa0d08ac07561 | 195 | cpp | C++ | tests/example.cpp | marshal2111/lab-03-shared-ptr | ad6aabcd088250ae2cc5b44932ee1b7f17fa5aa3 | [
"MIT"
] | null | null | null | tests/example.cpp | marshal2111/lab-03-shared-ptr | ad6aabcd088250ae2cc5b44932ee1b7f17fa5aa3 | [
"MIT"
] | null | null | null | tests/example.cpp | marshal2111/lab-03-shared-ptr | ad6aabcd088250ae2cc5b44932ee1b7f17fa5aa3 | [
"MIT"
] | null | null | null | // Copyright 2021 Your Name <your_email>
#include <stdexcept>
#include <gtest/gtest.h>
#include <shared_ptr.hpp>
TEST(Example, EmptyTest) {
EXPECT_THROW(example(), std::runtime_error);
}
| 16.25 | 48 | 0.717949 |
86eac7b4eea603d977b95fd7f7d3329c23cd6ffb | 866 | cpp | C++ | kernel/src/IO.cpp | pradosh-arduino/pradoshOS | b7c2a8b238261fc61460e609fd8352aa62b5f32e | [
"MIT"
] | 9 | 2021-11-17T10:27:18.000Z | 2022-03-16T09:43:24.000Z | kernel/src/IO.cpp | pradosh-arduino/pradoshOS | b7c2a8b238261fc61460e609fd8352aa62b5f32e | [
"MIT"
] | 1 | 2022-03-17T08:31:05.000Z | 2022-03-28T02:50:59.000Z | kernel/src/IO.cpp | pradosh-arduino/pradoshOS | b7c2a8b238261fc61460e609fd8352aa62b5f32e | [
"MIT"
] | 1 | 2021-12-21T09:49:02.000Z | 2021-12-21T09:49:02.000Z | #include "IO.h"
void outb(uint16_t port, uint8_t value){
asm volatile ("outb %0, %1" : : "a"(value), "Nd"(port));
}
uint8_t inb(uint16_t port){
uint8_t returnVal;
asm volatile ("inb %1, %0"
: "=a"(returnVal)
: "Nd"(port));
return returnVal;
}
void outw(uint16_t portNumber, uint16_t data) {
... | 22.789474 | 69 | 0.598152 |
86ed87b7c84cdf660c025eb101606b6ffd26b38d | 9,281 | cc | C++ | test/syscalls/linux/timerfd.cc | Simon-Zh-0409/gvisor | c619cc59c2e826ef1168259287023de198e3e2aa | [
"Apache-2.0"
] | 2 | 2021-02-23T03:14:54.000Z | 2021-04-16T08:46:24.000Z | test/syscalls/linux/timerfd.cc | Simon-Zh-0409/gvisor | c619cc59c2e826ef1168259287023de198e3e2aa | [
"Apache-2.0"
] | 12 | 2020-09-20T00:41:11.000Z | 2022-03-31T01:29:24.000Z | test/syscalls/linux/timerfd.cc | Simon-Zh-0409/gvisor | c619cc59c2e826ef1168259287023de198e3e2aa | [
"Apache-2.0"
] | 3 | 2021-02-08T17:44:27.000Z | 2022-01-14T16:48:26.000Z | // Copyright 2018 The gVisor Authors.
//
// 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 agree... | 36.11284 | 79 | 0.696261 |
86ee1b4d5de3d8099e6d50cdfad2b11c728d1d32 | 19,971 | cpp | C++ | pehlaschool/Classes/Games/EggQuiz/FishQuizPopup.cpp | maqsoftware/Pehla-School-Hindi | 61aeae0f1d91952b44eaeaff5d2f6ec1d5aa3c43 | [
"Apache-2.0"
] | 2 | 2019-11-06T23:06:22.000Z | 2019-12-08T09:10:19.000Z | pehlaschool/Classes/Games/EggQuiz/FishQuizPopup.cpp | maqsoftware/GLEXP-Team-KitkitSchool-Hindi | 61aeae0f1d91952b44eaeaff5d2f6ec1d5aa3c43 | [
"Apache-2.0"
] | 123 | 2019-05-28T14:03:04.000Z | 2019-07-12T04:23:26.000Z | pehlaschool/Classes/Games/EggQuiz/FishQuizPopup.cpp | maqsoftware/Pehla-School-Hindi | 61aeae0f1d91952b44eaeaff5d2f6ec1d5aa3c43 | [
"Apache-2.0"
] | 5 | 2019-07-25T09:46:07.000Z | 2020-12-22T06:37:40.000Z | //
// FishQuizPopup.cpp
// PehlaSchool
//
// Created by YongSoo Hong on 9/3/18.
//
//
#include <Menu/CoopScene.hpp>
#include "FishQuizPopup.hpp"
#include "ui/CocosGUI.h"
#include "Managers/UserManager.hpp"
#include "Managers/LanguageManager.hpp"
#include "Managers/GameSoundManager.h"
#include "Utils/TodoUtil.h"
... | 34.551903 | 195 | 0.594863 |
86ef26ab391ea5c06399ae63690852994153de6d | 6,152 | cpp | C++ | tests/src/test_FastqReader.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 21 | 2016-04-26T20:46:41.000Z | 2022-03-01T01:55:55.000Z | tests/src/test_FastqReader.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 25 | 2015-09-03T22:18:01.000Z | 2019-08-27T14:47:39.000Z | tests/src/test_FastqReader.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 20 | 2015-11-24T15:54:26.000Z | 2022-03-14T03:49:18.000Z | #include <pbbam/FastqReader.h>
#include <cstddef>
#include <cstdint>
#include <gtest/gtest.h>
#include <pbbam/BamFileMerger.h>
#include <pbbam/EntireFileQuery.h>
#include <pbbam/FastqSequence.h>
#include <pbbam/FastqWriter.h>
#include "FastxTests.h"
#include "PbbamTestData.h"
using namespace PacBio;
using namespac... | 32.550265 | 93 | 0.751625 |
86f1178a1ea6ec2cc2f4c9b5b26cc480a2c3f0a3 | 2,643 | cpp | C++ | src/AppLines/PageScaling.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/PageScaling.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/PageScaling.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T15:58:38.000Z | 2022-01-07T15:58:38.000Z | /*
**
** $Filename: PageScaling.cpp $
** $Release: Dortmund 2004 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Scaling properties
**
** (C) Copyright 2004 Steffen A. Mork
** All Rights Reserved
**
**
*/
/****************************************************************... | 27.821053 | 83 | 0.534241 |
86fa0a49c1a26158bf1267fea7c429e4c2c7c9ca | 283 | cpp | C++ | find_duplicate_number.cpp | Surya-06/My-Solutions | 58f7c7f1a0a3a28f25eff22d03a09cb2fbcf7806 | [
"MIT"
] | null | null | null | find_duplicate_number.cpp | Surya-06/My-Solutions | 58f7c7f1a0a3a28f25eff22d03a09cb2fbcf7806 | [
"MIT"
] | null | null | null | find_duplicate_number.cpp | Surya-06/My-Solutions | 58f7c7f1a0a3a28f25eff22d03a09cb2fbcf7806 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int findDuplicate(vector<int>& nums) {
vector<bool> values(nums.size(), false);
for (int i : nums)
if (not values[i])
values[i] = true;
else
return i;
return -1;
}
}; | 18.866667 | 44 | 0.572438 |
86fc3374d9749a2b1d69301e0005897f90ab1902 | 9,485 | cpp | C++ | src/unity/toolkits/ml_data_2/metadata.cpp | LeeCenY/turicreate | fb2f3bf313e831ceb42a2e10aacda6e472ea8d93 | [
"BSD-3-Clause"
] | null | null | null | src/unity/toolkits/ml_data_2/metadata.cpp | LeeCenY/turicreate | fb2f3bf313e831ceb42a2e10aacda6e472ea8d93 | [
"BSD-3-Clause"
] | null | null | null | src/unity/toolkits/ml_data_2/metadata.cpp | LeeCenY/turicreate | fb2f3bf313e831ceb42a2e10aacda6e472ea8d93 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#include <unity/toolkits/ml_data_2/metadata.hpp>
#include <unity/lib/variant_deep_serialize.hpp>
na... | 29.095092 | 98 | 0.628044 |
86fe9c368588062ca9065046400e9f313dab4ce6 | 687 | cpp | C++ | ReactUbuntu/runtime/src/reactevents.cpp | Abdulhafiz-Yusuf/react-native | 98e0ce38cdcb8c489a064c436a353be754e95f89 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1,079 | 2016-08-02T16:20:28.000Z | 2022-03-22T20:40:37.000Z | ReactUbuntu/runtime/src/reactevents.cpp | daisty/react-native-1 | 98e0ce38cdcb8c489a064c436a353be754e95f89 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 3 | 2016-08-04T07:57:48.000Z | 2020-05-21T05:02:52.000Z | ReactUbuntu/runtime/src/reactevents.cpp | daisty/react-native-1 | 98e0ce38cdcb8c489a064c436a353be754e95f89 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 80 | 2016-08-03T09:34:32.000Z | 2021-04-22T16:57:11.000Z |
/**
* Copyright (C) 2016, Canonical Ltd.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Author: Justin M... | 22.16129 | 78 | 0.676856 |
86ff579f1e379b8c89bf9070251ee65897ea27d1 | 11,077 | cpp | C++ | ROS/image_pipeline/depth_image_proc/src/nodelets/point_cloud_xyzi_radial.cpp | Beam-create/S4_projet_QUADRUS_V2 | 304b434b552a4a5377dd2f49c4bb4c8e9fcb714b | [
"MIT"
] | null | null | null | ROS/image_pipeline/depth_image_proc/src/nodelets/point_cloud_xyzi_radial.cpp | Beam-create/S4_projet_QUADRUS_V2 | 304b434b552a4a5377dd2f49c4bb4c8e9fcb714b | [
"MIT"
] | 52 | 2022-02-12T17:12:17.000Z | 2022-03-30T00:39:18.000Z | ROS/image_pipeline/depth_image_proc/src/nodelets/point_cloud_xyzi_radial.cpp | Beam-create/S4_projet_QUADRUS_V2 | 304b434b552a4a5377dd2f49c4bb4c8e9fcb714b | [
"MIT"
] | 2 | 2022-01-19T15:44:53.000Z | 2022-01-20T21:44:41.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... | 34.724138 | 129 | 0.712648 |
86ff8e340289cd82061077f230923a8a3f332e98 | 2,609 | cpp | C++ | dev/spark/Gem/Code/Utils/DynamicSliceWrapper.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 2 | 2020-08-20T03:40:24.000Z | 2021-02-07T20:31:43.000Z | dev/spark/Gem/Code/Utils/DynamicSliceWrapper.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | null | null | null | dev/spark/Gem/Code/Utils/DynamicSliceWrapper.cpp | chrisinajar/spark | 3c6b30592c00bc38738cc3aaca2144edfc6cc8b2 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z |
#include "spark_precompiled.h"
#include "DynamicSliceWrapper.h"
using namespace spark;
using namespace AzFramework;
//DynamicSliceWrapper implementation
bool DynamicSliceWrapper::IsReady() const {
return m_id.IsValid();
}
AZ::EntityId DynamicSliceWrapper::GetId() const {
return m_id;
}
AZ::Data::AssetId Dynami... | 31.059524 | 146 | 0.77271 |
8100336759d6ac7951978a3dfa16586a294103a1 | 2,480 | cpp | C++ | lab02/src/Delegates/moviesdelegate.cpp | actpohabtNS/oop_labs | 0284dc3b494e5b1246e8b4956d92ea659e6c00a9 | [
"CC0-1.0"
] | null | null | null | lab02/src/Delegates/moviesdelegate.cpp | actpohabtNS/oop_labs | 0284dc3b494e5b1246e8b4956d92ea659e6c00a9 | [
"CC0-1.0"
] | null | null | null | lab02/src/Delegates/moviesdelegate.cpp | actpohabtNS/oop_labs | 0284dc3b494e5b1246e8b4956d92ea659e6c00a9 | [
"CC0-1.0"
] | null | null | null | #include "moviesdelegate.h"
#include <QApplication>
#include <QPainter>
MoviesDelegate::MoviesDelegate(QObject *parent, MovieTypes type)
: HoverRowDelegate(parent)
{
setMovieType(type);
}
void MoviesDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
H... | 26.105263 | 113 | 0.550806 |
81029074d7005145fda75df656d536967a004aca | 3,187 | cpp | C++ | src/tx/coinminttx.cpp | xiaoyu1998/wasm.bitcoin | 0fbd7bdc4555382abca64b5df33e8aec7a65ff3b | [
"MIT"
] | 1,313 | 2018-01-09T01:49:01.000Z | 2022-02-26T11:10:40.000Z | src/tx/coinminttx.cpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 32 | 2018-06-07T10:21:21.000Z | 2021-12-07T06:53:42.000Z | src/tx/coinminttx.cpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 322 | 2018-02-26T03:41:36.000Z | 2022-02-08T08:12:16.000Z | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2017-2019 The WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coinminttx.h"
#include "main.h"
bool CCoinMintTx::CheckTx(CTxExecu... | 43.657534 | 120 | 0.655789 |