hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5a51726a003fa488e59a45a76bf0ea17909b6a2 | 2,934 | cpp | C++ | unit-test/exceptions_unittests.cpp | sparlane/buildsyspp | 2a5a520ef4b636063b18cf783a60366d50174c16 | [
"BSD-2-Clause"
] | null | null | null | unit-test/exceptions_unittests.cpp | sparlane/buildsyspp | 2a5a520ef4b636063b18cf783a60366d50174c16 | [
"BSD-2-Clause"
] | null | null | null | unit-test/exceptions_unittests.cpp | sparlane/buildsyspp | 2a5a520ef4b636063b18cf783a60366d50174c16 | [
"BSD-2-Clause"
] | 2 | 2019-07-14T19:48:22.000Z | 2019-09-27T08:32:57.000Z | #define CATCH_CONFIG_MAIN
#include "exceptions.hpp"
#include <catch2/catch.hpp>
using namespace buildsys;
TEST_CASE("Test CustomException", "")
{
bool exception_caught = false;
std::string exception_message("");
std::string test_message("Test exception message");
try {
throw CustomException(test_message);
} ... | 21.573529 | 75 | 0.729721 | sparlane |
f5a65bcd5141fcaa19c8e4a4480980785dc2ae99 | 1,875 | cpp | C++ | libs/smart_ptr/test/weak_ptr_timing_test.cpp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/smart_ptr/test/weak_ptr_timing_test.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/smart_ptr/test/weak_ptr_timing_test.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | #include <boost/config.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
#pragma warning(disable: 4710) // function not inlined
#pragma warning(disable: 4711) // function selected for automatic inline expansion
#pragma warning(disable: 4514) // unreferenced inl... | 21.802326 | 84 | 0.528 | zyiacas |
f5aeec8bee262271d88691fafbf88ecd6a543093 | 7,410 | hpp | C++ | src/mlpack/core/optimizers/bigbatch_sgd/bigbatch_sgd.hpp | chigur/mlpack | aff1eda03b7c279acb6d3e660d5c5a6f697d3735 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | src/mlpack/core/optimizers/bigbatch_sgd/bigbatch_sgd.hpp | chigur/mlpack | aff1eda03b7c279acb6d3e660d5c5a6f697d3735 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | src/mlpack/core/optimizers/bigbatch_sgd/bigbatch_sgd.hpp | chigur/mlpack | aff1eda03b7c279acb6d3e660d5c5a6f697d3735 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | /**
* @file bigbatch_sgd.hpp
* @author Marcus Edel
*
* Definition of Big-batch Stochastic Gradient Descent (BBSGD) as described in:
* "Big Batch SGD: Automated Inference using Adaptive Batch Sizes"
* by Soham De et al.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of t... | 36.865672 | 80 | 0.704723 | chigur |
f5afc318edecf04ee4ab00efcb17737adaf605f6 | 11,398 | cpp | C++ | core/block_rw.cpp | 0xb100d/wink-c- | 361677a68861ea65a58351dd6aa208c1977385e5 | [
"Apache-2.0"
] | 1 | 2019-05-31T07:43:51.000Z | 2019-05-31T07:43:51.000Z | core/block_rw.cpp | 0xb100d/wink-c- | 361677a68861ea65a58351dd6aa208c1977385e5 | [
"Apache-2.0"
] | null | null | null | core/block_rw.cpp | 0xb100d/wink-c- | 361677a68861ea65a58351dd6aa208c1977385e5 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The Beam Team
//
// 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... | 20.536937 | 113 | 0.614318 | 0xb100d |
f5b19e402b916b62d86c457feb63a0bc6169329a | 1,094 | cpp | C++ | models/utils/rw/csv_qoi_writer.cpp | CancerModeling/Angiogenesis3D1D | 77527d3facd127e225ccb9e53874ddbba2096744 | [
"BSL-1.0"
] | 2 | 2021-11-02T07:49:33.000Z | 2021-11-16T15:47:40.000Z | models/utils/rw/csv_qoi_writer.cpp | CancerModeling/Angiogenesis3D1D | 77527d3facd127e225ccb9e53874ddbba2096744 | [
"BSL-1.0"
] | null | null | null | models/utils/rw/csv_qoi_writer.cpp | CancerModeling/Angiogenesis3D1D | 77527d3facd127e225ccb9e53874ddbba2096744 | [
"BSL-1.0"
] | null | null | null | #include "csv_qoi_writer.hpp"
#include "qoi.hpp"
namespace util {
CSVQoIWriter::CSVQoIWriter(libMesh::Parallel::Communicator *comm, std::string filename)
: d_comm(comm),
d_filename(std::move(filename)) {}
void CSVQoIWriter::write(const util::QoIVec &qoi) const {
// only rank zero is allowed to write
i... | 23.782609 | 87 | 0.610603 | CancerModeling |
f5bb03f1ee45dca4e4945ce6c753619435c0e3ef | 1,390 | cpp | C++ | FlavoEngine/src/Framework/FWindow.cpp | Thirrash/FlavoEngine | fc3e867dc726d1a37ddd81bb6a1691833014703a | [
"MIT"
] | null | null | null | FlavoEngine/src/Framework/FWindow.cpp | Thirrash/FlavoEngine | fc3e867dc726d1a37ddd81bb6a1691833014703a | [
"MIT"
] | null | null | null | FlavoEngine/src/Framework/FWindow.cpp | Thirrash/FlavoEngine | fc3e867dc726d1a37ddd81bb6a1691833014703a | [
"MIT"
] | null | null | null | #include "FWindow.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "Debug.h"
Framework::FWindow::FWindow() {}
Framework::FWindow::~FWindow() {
delete GlfwWindow;
}
Framework::EWindowInitErrorCode Framework::FWindow::Initi() {
if (!glfwInit()) {
LogR("Failed to init GLFW");
return GlfwInitError;
}
... | 28.367347 | 199 | 0.760432 | Thirrash |
f5be9a047a3d553604dee59c15b00a3214d38797 | 454 | cpp | C++ | C++-practice/排队2.cpp | GengchenXU/Star-gazer | 19a119390d3f1bfa56c4dda1b04f6c673e49be24 | [
"MIT"
] | 4 | 2019-11-08T11:04:02.000Z | 2021-09-08T08:24:50.000Z | C++-practice/排队2.cpp | GengchenXU/Star-gazer | 19a119390d3f1bfa56c4dda1b04f6c673e49be24 | [
"MIT"
] | 1 | 2019-11-08T11:07:35.000Z | 2019-11-22T06:33:24.000Z | C++-practice/排队2.cpp | GengchenXU/Star-gazer | 19a119390d3f1bfa56c4dda1b04f6c673e49be24 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
char boy;
int reline(char str[], int s)
{
int n;
if (str[s] != boy)
{
return s;
}
else
{
n = reline(str, s+1);
cout << s << ' ' << n << endl;
return reline(str, n+1);
}
}
int main()
{
char st... | 15.133333 | 39 | 0.405286 | GengchenXU |
f5beb5a85d55df8b66dbc3c57e9fcf1e8f999d0d | 6,773 | cpp | C++ | JUCE/modules/juce_audio_utils/gui/juce_AudioVisualiserComponent.cpp | jukea/HISE | 9e867c746d48f24c7fe6fdedad801ecafa3481e6 | [
"Intel"
] | 1 | 2021-03-04T19:37:06.000Z | 2021-03-04T19:37:06.000Z | JUCE/modules/juce_audio_utils/gui/juce_AudioVisualiserComponent.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | null | null | null | JUCE/modules/juce_audio_utils/gui/juce_AudioVisualiserComponent.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... | 29.70614 | 120 | 0.589547 | jukea |
f5bf32c491569ad8ed8cccc470cf43fe63c7a85e | 17,940 | cpp | C++ | osrm-backend/src/gen-cpp/map_service_types.cpp | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | null | null | null | osrm-backend/src/gen-cpp/map_service_types.cpp | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | null | null | null | osrm-backend/src/gen-cpp/map_service_types.cpp | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | null | null | null | /**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "map_service_types.h"
#include <algorithm>
#include <ostream>
#include <thrift/TToString.h>
namespace map_service {
int _kRetCodeValues[] = {
RetCode::fail,
RetCode... | 27.685185 | 176 | 0.622464 | shiyuan |
f5c56e27284c956497f36758fed378f618e8b1c1 | 3,410 | cpp | C++ | TraceControl/TraceControlJsonRpc.cpp | Khan3033/ThunderNanoServices | 82ce924edba046489cd02654843acd31ad8fbfe2 | [
"Apache-2.0"
] | null | null | null | TraceControl/TraceControlJsonRpc.cpp | Khan3033/ThunderNanoServices | 82ce924edba046489cd02654843acd31ad8fbfe2 | [
"Apache-2.0"
] | null | null | null | TraceControl/TraceControlJsonRpc.cpp | Khan3033/ThunderNanoServices | 82ce924edba046489cd02654843acd31ad8fbfe2 | [
"Apache-2.0"
] | null | null | null |
#include "Module.h"
#include "TraceControl.h"
#include <interfaces/json/JsonData_TraceControl.h>
namespace WPEFramework {
namespace Plugin {
using namespace JsonData::TraceControl;
// Registration
//
void TraceControl::RegisterAll()
{
Register<StatusParamsData,StatusResultData>(_T("sta... | 32.47619 | 145 | 0.6 | Khan3033 |
f5c86d8275b4a15fd2a9ddeefb3469f0904997fb | 1,172 | cpp | C++ | Source/Prefab.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 10 | 2018-01-16T16:18:42.000Z | 2019-02-19T19:51:45.000Z | Source/Prefab.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 136 | 2018-05-10T08:47:58.000Z | 2018-06-15T09:38:10.000Z | Source/Prefab.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 1 | 2018-06-04T17:18:40.000Z | 2018-06-04T17:18:40.000Z | #include "Prefab.h"
#include "Data.h"
#include <ctime>
#include <vector>
#include "GameObject.h"
#include "ModuleResources.h"
#include "Application.h"
#include "ModuleScene.h"
#include "ModuleFileSystem.h"
Prefab::Prefab()
{
SetType(Resource::PrefabResource);
}
Prefab::~Prefab()
{
}
void Prefab::Save(Data & data) c... | 19.533333 | 59 | 0.710751 | Project-3-UPC-DDV-BCN |
f5ca9023d96b8b39adeee017979ca1b0ed9b0caf | 2,448 | cpp | C++ | libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/current_path.pass.cpp | nawrinsu/llvm | e9153f0e50d45fb4a760463ae711aa45ce2bd450 | [
"Apache-2.0"
] | null | null | null | libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/current_path.pass.cpp | nawrinsu/llvm | e9153f0e50d45fb4a760463ae711aa45ce2bd450 | [
"Apache-2.0"
] | null | null | null | libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/current_path.pass.cpp | nawrinsu/llvm | e9153f0e50d45fb4a760463ae711aa45ce2bd450 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, 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
//
//===---------------------------... | 24.727273 | 80 | 0.65768 | nawrinsu |
f5cd687dbc09e270689f0289037e3de1cc24fdbd | 4,158 | hpp | C++ | src/gpu/nvidia/cudnn_binary.hpp | ImproveMyPhone/mkl-dnn | aa13406e8a284495faaddf5396d9090a1d46f1ca | [
"Apache-2.0"
] | 11 | 2020-05-02T12:05:59.000Z | 2022-01-17T02:26:44.000Z | src/gpu/nvidia/cudnn_binary.hpp | ImproveMyPhone/mkl-dnn | aa13406e8a284495faaddf5396d9090a1d46f1ca | [
"Apache-2.0"
] | 22 | 2020-06-17T08:27:48.000Z | 2022-02-13T23:33:27.000Z | src/gpu/nvidia/cudnn_binary.hpp | ImproveMyPhone/mkl-dnn | aa13406e8a284495faaddf5396d9090a1d46f1ca | [
"Apache-2.0"
] | 15 | 2020-05-20T09:25:04.000Z | 2022-03-29T22:16:46.000Z | /*******************************************************************************
* Copyright 2020-2021 Intel Corporation
* Copyright 2020 Codeplay Software 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 co... | 34.081967 | 80 | 0.570948 | ImproveMyPhone |
f5cdb6e16ae34f8a6beb9cbcd0e528f391b31c2e | 3,646 | cpp | C++ | src/w11/w11ImageText.cpp | qiadev/MacroUniformityRuler | 54f155c9374c7d6f3afab7f4594a91189d1a9a46 | [
"MIT"
] | null | null | null | src/w11/w11ImageText.cpp | qiadev/MacroUniformityRuler | 54f155c9374c7d6f3afab7f4594a91189d1a9a46 | [
"MIT"
] | null | null | null | src/w11/w11ImageText.cpp | qiadev/MacroUniformityRuler | 54f155c9374c7d6f3afab7f4594a91189d1a9a46 | [
"MIT"
] | null | null | null | /*
* w11TpText.cpp
* w11macro
*
* Created by Rene Rasmussen on 6/24/08.
*
*/
#include "w11ImageText.h"
#include "w11Utilities.h"
#if _SUPPORT_FREETYPE_
#include <ft2build.h>
#include FT_FREETYPE_H
#endif
using namespace std;
w11ImageText::w11ImageText(std::string fontDirectory, std::string fontName)
{
f... | 23.22293 | 111 | 0.623697 | qiadev |
f5cfae8d503123822ef05859dac10f65db05d74b | 29,046 | cc | C++ | lite/tests/math/conv_int8_compute_test.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 1,799 | 2019-08-19T03:29:38.000Z | 2022-03-31T14:30:50.000Z | lite/tests/math/conv_int8_compute_test.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 3,767 | 2019-08-19T03:36:04.000Z | 2022-03-31T14:37:26.000Z | lite/tests/math/conv_int8_compute_test.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 798 | 2019-08-19T02:28:23.000Z | 2022-03-31T08:31:54.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... | 38.369881 | 80 | 0.453212 | wanglei91 |
f5d27241219fc6ee16ed5745830be9cf171243e0 | 2,948 | cpp | C++ | src/logging.cpp | ROCm-Developer-Tools/rocr_debug_agent | 4b0589c215c0e8d70a9a4921d0ac6919dd295550 | [
"Linux-OpenIB"
] | 8 | 2019-04-21T14:04:26.000Z | 2021-08-31T02:51:41.000Z | src/logging.cpp | ROCm-Developer-Tools/rocr_debug_agent | 4b0589c215c0e8d70a9a4921d0ac6919dd295550 | [
"Linux-OpenIB"
] | 5 | 2019-02-10T09:13:08.000Z | 2021-02-18T23:21:45.000Z | src/logging.cpp | ROCm-Developer-Tools/rocr_debug_agent | 4b0589c215c0e8d70a9a4921d0ac6919dd295550 | [
"Linux-OpenIB"
] | 6 | 2019-08-26T02:47:33.000Z | 2021-02-26T20:41:03.000Z | /* The University of Illinois/NCSA
Open Source License (NCSA)
Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal with the Softwar... | 30.391753 | 79 | 0.722863 | ROCm-Developer-Tools |
f5d2c5cfbe7d7aac8fd3e113e012ba3fe6da3508 | 1,685 | hpp | C++ | include/motherboard.hpp | Stellaris-code/SpaceInvadersEmu | e8cd69ed3c594ffb83cf4471db9f1c44e8f640e4 | [
"MIT"
] | 7 | 2016-02-16T13:24:00.000Z | 2018-09-24T09:02:38.000Z | include/motherboard.hpp | Stellaris-code/SpaceInvadersEmu | e8cd69ed3c594ffb83cf4471db9f1c44e8f640e4 | [
"MIT"
] | null | null | null | include/motherboard.hpp | Stellaris-code/SpaceInvadersEmu | e8cd69ed3c594ffb83cf4471db9f1c44e8f640e4 | [
"MIT"
] | 2 | 2016-02-16T13:06:23.000Z | 2018-10-15T04:27:42.000Z | /* include/motherboard.hpp Motherboard - Yann BOUCHER (yann) 11/02/2016
**
**
** DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
** Version 2, December 2004
**
** Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
**
** Everyone is permitted to copy and distribute verbatim or modified
** copies... | 21.883117 | 72 | 0.559644 | Stellaris-code |
f5d2d4f2093309fce603cb2f0ae472075f5a0be4 | 7,066 | cpp | C++ | test/cali-flush-perftest.cpp | rblake-llnl/Caliper | f958f45f5cf2dccc4529f2b27d8628981a60b012 | [
"BSD-3-Clause"
] | null | null | null | test/cali-flush-perftest.cpp | rblake-llnl/Caliper | f958f45f5cf2dccc4529f2b27d8628981a60b012 | [
"BSD-3-Clause"
] | null | null | null | test/cali-flush-perftest.cpp | rblake-llnl/Caliper | f958f45f5cf2dccc4529f2b27d8628981a60b012 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
//
// This file is part of Caliper.
// Written by David Boehme, boehme3@llnl.gov.
// LLNL-CODE-678900
// All rights reserved.
//
// For details, see https://github.com/scalability-llnl/Caliper.... | 31.404444 | 114 | 0.62171 | rblake-llnl |
f5d884561e3bdc244ba6792a2cb8a704d1ad2a98 | 424 | cpp | C++ | main.cpp | MOC99/riot-launcher | 84e3935912e2115c2541eab4e70ca1ae7fe32724 | [
"MIT"
] | null | null | null | main.cpp | MOC99/riot-launcher | 84e3935912e2115c2541eab4e70ca1ae7fe32724 | [
"MIT"
] | null | null | null | main.cpp | MOC99/riot-launcher | 84e3935912e2115c2541eab4e70ca1ae7fe32724 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include <QApplication>
#include <QFontDatabase>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
int fontId = QFontDatabase::addApplicationFont(":/font/resource/font.otf");
if (fontId >= 0) {
auto f = QFontDatabase::applicationFontFamilies(fontId).at(0);
... | 24.941176 | 79 | 0.629717 | MOC99 |
f5d98ecf736418959550346542b44a1caa132ca8 | 3,390 | cpp | C++ | Test/MasterPubKeyTest.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | Test/MasterPubKeyTest.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | Test/MasterPubKeyTest.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | 1 | 2018-08-02T07:58:30.000Z | 2018-08-02T07:58:30.000Z | // Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#define CATCH_CONFIG_MAIN
#include <BRBIP32Sequence.h>
#include "BRBIP39WordsEn.h"
#include "catch.hpp"
#include "Maste... | 31.100917 | 97 | 0.697935 | hejianhui |
f5da1e98a3534f97cc8ef8f9cf7667b4c9848772 | 2,419 | cc | C++ | extras/calcav2.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/calcav2.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/calcav2.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | // calculate averaged tensor over 2 fast wobbles
#include "space_T.h"
#include "NMR.h"
#include "ttyio.h"
using namespace libcmatrix;
using namespace std;
void wobble_average(double& retaniso, double& retasym, double aniso1, double asym1, double aniso2, double asym2, double wobble, const char* label, double frac1 =0... | 35.057971 | 165 | 0.675486 | dch0ph |
f5da3c857982a4e826892486a19e1e5da8680cd6 | 1,697 | cpp | C++ | source/canvas/scene/rigidbody/RigidBody.cpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/canvas/scene/rigidbody/RigidBody.cpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/canvas/scene/rigidbody/RigidBody.cpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | #include <RigidBody.hpp>
RigidBody::RigidBody(){
UpdateModelMatrix();
}
RigidBody::~RigidBody(){}
void RigidBody::UpdateModelMatrix(void){
double q0q0 = this->quaternion.w * this->quaternion.w;
double q1q1 = this->quaternion.x * this->quaternion.x;
double q2q2 = -this->quaternion.z * -this->quaterni... | 42.425 | 162 | 0.616971 | RobertDamerius |
f5daa8e57f8782fc9374a5f6a3ce9c11808063b3 | 22,762 | cpp | C++ | src/ImageProcessing.cpp | jbendig/Sudoku-Solver-AR | efec5522d5047b86da0c984935645b27a41c4bb0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2017-09-20T21:20:44.000Z | 2020-05-19T21:09:53.000Z | src/ImageProcessing.cpp | jbendig/Sudoku-Solver-AR | efec5522d5047b86da0c984935645b27a41c4bb0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | src/ImageProcessing.cpp | jbendig/Sudoku-Solver-AR | efec5522d5047b86da0c984935645b27a41c4bb0 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2017-05-19T07:25:25.000Z | 2021-03-02T13:05:32.000Z | // Copyright 2017 James Bendig. See the COPYRIGHT file at the top-level
// directory of this distribution.
//
// Licensed under:
// the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>
// or the Apache License, Version 2.0
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>... | 36.89141 | 237 | 0.695194 | jbendig |
f5dd4d6c673c0c541bcf6ea8f5a1dca11051193d | 436 | cpp | C++ | tests/concepts/is_class.cpp | SamuelAlonsoDev/lux | 268a9fabddb60a06e226d8bad27a5d5d7a29dcb2 | [
"MIT"
] | 2 | 2020-11-05T07:39:05.000Z | 2021-01-07T18:29:56.000Z | tests/concepts/is_class.cpp | SamuelAlonsoDev/lux | 268a9fabddb60a06e226d8bad27a5d5d7a29dcb2 | [
"MIT"
] | null | null | null | tests/concepts/is_class.cpp | SamuelAlonsoDev/lux | 268a9fabddb60a06e226d8bad27a5d5d7a29dcb2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <core/types.hpp>
#include <concepts/is_class.hpp>
class ic;
class c{};
struct s{};
int main()
{
std::cout << std::boolalpha <<
"Is 'ic' a class type? " << lux::concepts::is_class<ic> <<
"\nIs 'c' a class type? " << lux::concepts::is_class<c> <<
"\nIs 's' a class type? " ... | 22.947368 | 67 | 0.584862 | SamuelAlonsoDev |
f5e0c824e8db234013aa12bc34a4b8dcbade2b4c | 169,715 | cxx | C++ | bst.cxx | abk-openroad/BST-DME | 157616ef1305a4270abf3d17b8e4c9acba716fa9 | [
"BSD-3-Clause"
] | 5 | 2018-08-05T06:41:38.000Z | 2019-06-03T17:54:12.000Z | bst.cxx | abk-openroad/BST-DME | 157616ef1305a4270abf3d17b8e4c9acba716fa9 | [
"BSD-3-Clause"
] | null | null | null | bst.cxx | abk-openroad/BST-DME | 157616ef1305a4270abf3d17b8e4c9acba716fa9 | [
"BSD-3-Clause"
] | 3 | 2019-04-25T11:47:07.000Z | 2021-08-30T13:49:52.000Z | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2018, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the ... | 33.018482 | 88 | 0.461963 | abk-openroad |
f5e14989f48af3b264d68e275c5ed025812e8abb | 2,175 | cpp | C++ | Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | Anon1428/serenity | 0daf5cc434e7a998da15330bd8b4d46ae1759485 | [
"BSD-2-Clause"
] | 2 | 2022-02-16T02:12:38.000Z | 2022-02-20T18:40:41.000Z | Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | Anon1428/serenity | 0daf5cc434e7a998da15330bd8b4d46ae1759485 | [
"BSD-2-Clause"
] | null | null | null | Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | Anon1428/serenity | 0daf5cc434e7a998da15330bd8b4d46ae1759485 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/x86/IO.h>
#include <Kernel/Bus/PCI/API.h>
#include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>
#include <Kernel/Graphics/Definitions.h>
#include <Kernel/Graphics/GraphicsManageme... | 35.080645 | 209 | 0.741609 | Anon1428 |
f5e1ce0e38e7decbe276e78be8c1f447321de518 | 8,050 | cpp | C++ | osquery/tables/utility/osquery.cpp | trizt/osquery | 9256819b8161ab1e02ea0d7eb55da132f197723d | [
"BSD-3-Clause"
] | 1 | 2018-10-30T03:58:24.000Z | 2018-10-30T03:58:24.000Z | osquery/tables/utility/osquery.cpp | trizt/osquery | 9256819b8161ab1e02ea0d7eb55da132f197723d | [
"BSD-3-Clause"
] | null | null | null | osquery/tables/utility/osquery.cpp | trizt/osquery | 9256819b8161ab1e02ea0d7eb55da132f197723d | [
"BSD-3-Clause"
] | 1 | 2020-11-04T03:18:37.000Z | 2020-11-04T03:18:37.000Z | /*
* Copyright (c) 2014-present, Facebook, Inc.
* 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.
*
*/
#in... | 29.814815 | 80 | 0.616894 | trizt |
f5e35e246f820c6f0669458b0224d67b42783d4c | 763 | cpp | C++ | HDOJ/5477.cpp | yanMa1995/OnlineJudge | 03d8ba2858e6524ff790fcb1112b97894bb8dcfb | [
"Apache-2.0"
] | 1 | 2022-03-03T00:16:20.000Z | 2022-03-03T00:16:20.000Z | HDOJ/5477.cpp | yanMa1995/OnlineJudge | 03d8ba2858e6524ff790fcb1112b97894bb8dcfb | [
"Apache-2.0"
] | null | null | null | HDOJ/5477.cpp | yanMa1995/OnlineJudge | 03d8ba2858e6524ff790fcb1112b97894bb8dcfb | [
"Apache-2.0"
] | null | null | null | //HDOJ #5477
//A Sweet Journey
#include <iostream>
#include <cstring>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include <cmath>
#include <stdio.h>
using namespace std;
int main()
{
int T;
scanf("%d",&T);
int n,A,B,L;
... | 14.960784 | 41 | 0.498034 | yanMa1995 |
f5e3754ba5e97662acc66dc24e0dd100d94c8c68 | 2,695 | cpp | C++ | multiprecision/MPContext.cpp | fionser/MDLHElib | 3c686ab35d7b26a893213a6e9d4249cd46c2969d | [
"MIT"
] | 5 | 2017-01-16T06:20:07.000Z | 2018-05-17T12:36:34.000Z | multiprecision/MPContext.cpp | fionser/MDLHElib | 3c686ab35d7b26a893213a6e9d4249cd46c2969d | [
"MIT"
] | null | null | null | multiprecision/MPContext.cpp | fionser/MDLHElib | 3c686ab35d7b26a893213a6e9d4249cd46c2969d | [
"MIT"
] | 2 | 2017-08-26T13:16:35.000Z | 2019-03-15T02:08:20.000Z | #include "MPContext.hpp"
#include "fhe/NumbTh.h"
#include <set>
#include <NTL/ZZ.h>
#include <cmath>
#include <vector>
#include <thread>
#ifdef FHE_THREADS
const long WORKER_NR = 8;
#else
const long WORKER_NR = 1;
#endif
static long getSlots(long m, long p)
{
return phi_N(m) / multOrd(p, m);
}
static long gcd(lon... | 22.090164 | 100 | 0.611132 | fionser |
f5e4d52202aef2f87fcccf29b5af38f30f655774 | 648 | hpp | C++ | core/test/tu-GridPath.hpp | iboB/word-grid | d1029323d5c51499298f3ed19390928371cb70a6 | [
"MIT"
] | 2 | 2019-07-01T00:10:43.000Z | 2019-09-18T19:37:38.000Z | core/test/tu-GridPath.hpp | iboB/word-grid | d1029323d5c51499298f3ed19390928371cb70a6 | [
"MIT"
] | null | null | null | core/test/tu-GridPath.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/Grid.hpp>
#include <core/GridPath.hpp>
namespace test
{
inline bool isValidGridPath(const ... | 19.058824 | 76 | 0.674383 | iboB |
f5e579a0e95870a52b8920216bd93fdc81baf317 | 6,236 | inl | C++ | include/mathos/vmvector3_sse.inl | napina/mathos | c29bf3d2b9e191d4b3644b49f1d014cbaa787706 | [
"MIT"
] | 1 | 2021-03-31T13:14:54.000Z | 2021-03-31T13:14:54.000Z | include/mathos/vmvector3_sse.inl | napina/mathos | c29bf3d2b9e191d4b3644b49f1d014cbaa787706 | [
"MIT"
] | null | null | null | include/mathos/vmvector3_sse.inl | napina/mathos | c29bf3d2b9e191d4b3644b49f1d014cbaa787706 | [
"MIT"
] | null | null | null | /*=============================================================================
Copyright (c) 2010 Ville Ruusutie
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including wi... | 33.526882 | 105 | 0.683932 | napina |
f5e6da056b6d99ae95c5796fe8dc11994a6761e8 | 1,308 | hpp | C++ | Loyalty/DataModel/Api/ApiException.hpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | Loyalty/DataModel/Api/ApiException.hpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | 1 | 2021-03-06T11:38:01.000Z | 2021-03-15T21:33:16.000Z | Loyalty/DataModel/Api/ApiException.hpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "ResultCode.hpp"
namespace Sol::Loyalty::API::RPC {
class SOL_LOYALTY_DATA_MODEL_API_API ApiException final: public GpException
{
public:
using CodeT = ResultCode;
using CodeTE = CodeT::EnumT;
private:
ApiException (void) noexcept = delete;
ApiException (const ApiException& ... | 34.421053 | 137 | 0.70107 | uno-labs-solana-hackathon |
f5e7c5e1eb94831907bd8da1a035240eeecd8584 | 797 | hpp | C++ | code/gui/ImageWindow.hpp | jdkuhnke/uipf | a944237e71cc61be29c641f7320e8ee3a0f0624f | [
"BSD-2-Clause"
] | 4 | 2017-03-26T05:56:57.000Z | 2020-02-04T23:14:13.000Z | code/gui/ImageWindow.hpp | jdkuhnke/uipf | a944237e71cc61be29c641f7320e8ee3a0f0624f | [
"BSD-2-Clause"
] | 3 | 2017-05-13T21:30:39.000Z | 2018-03-20T17:00:52.000Z | code/gui/ImageWindow.hpp | jdkuhnke/uipf | a944237e71cc61be29c641f7320e8ee3a0f0624f | [
"BSD-2-Clause"
] | 3 | 2017-11-29T10:26:13.000Z | 2021-06-15T13:14:04.000Z | #ifndef IMAGEWINDOW_H
#define IMAGEWINDOW_H
#include <QGraphicsView>
#include <QWheelEvent>
#include "ModuleInterface.hpp"
#include "ModuleLoader.hpp"
// TODO rewrite this
namespace uipf {
class ImageWindow : public QGraphicsView
{
Q_OBJECT
public:
ImageWindow(ModuleLoader& mm, QWidget *parent = 0) : QGra... | 18.97619 | 123 | 0.72522 | jdkuhnke |
f5ed720e3c1155fb45b008765794b5792ced1fa3 | 220 | cpp | C++ | net/test/socket_test.cpp | Leadam/CPX | ec732652b14ef458a33dbf21b2ae13c1164cc42e | [
"MIT"
] | null | null | null | net/test/socket_test.cpp | Leadam/CPX | ec732652b14ef458a33dbf21b2ae13c1164cc42e | [
"MIT"
] | null | null | null | net/test/socket_test.cpp | Leadam/CPX | ec732652b14ef458a33dbf21b2ae13c1164cc42e | [
"MIT"
] | null | null | null | //
// Created by lengyel on 2018.10.13..
//
#include <gtest/gtest.h>
#include "../socket.hpp"
TEST(Socket, Constructor){ // NOLINT
cpx::net::Socket socket(AF_INET, SOCK_DGRAM, 0);
EXPECT_TRUE(socket.good());
}
| 18.333333 | 52 | 0.654545 | Leadam |
f5ed7ed0b9736935b456785c106e4e0a205c6fdb | 3,237 | hpp | C++ | ode/bla/ngstd.hpp | bschwb/numdiff | 68b8ee34476b9efefed31accb378fefc620ec8ef | [
"MIT"
] | null | null | null | ode/bla/ngstd.hpp | bschwb/numdiff | 68b8ee34476b9efefed31accb378fefc620ec8ef | [
"MIT"
] | null | null | null | ode/bla/ngstd.hpp | bschwb/numdiff | 68b8ee34476b9efefed31accb378fefc620ec8ef | [
"MIT"
] | null | null | null | #ifndef FILE_NGSTD
#define FILE_NGSTD
/*********************************************************************/
/* File: ngstd.hpp */
/* Author: Joachim Schoeberl */
/* Date: 25. Mar. 2000 ... | 19.267857 | 132 | 0.620019 | bschwb |
f5f04faced6e059e066682d760c4bd6c3d808935 | 15,228 | cpp | C++ | Rownd/Content/TexCoSphere.cpp | GarrettVance/Rownd | 547d72dd40f75f522d431a1cfc5076166823bd5d | [
"MIT"
] | null | null | null | Rownd/Content/TexCoSphere.cpp | GarrettVance/Rownd | 547d72dd40f75f522d431a1cfc5076166823bd5d | [
"MIT"
] | null | null | null | Rownd/Content/TexCoSphere.cpp | GarrettVance/Rownd | 547d72dd40f75f522d431a1cfc5076166823bd5d | [
"MIT"
] | null | null | null | //
//
//
// ghv : 2019_01_31 : Texture Coordinate Sphere
//
//
#include "pch.h"
#include "Sample3DSceneRenderer.h"
#include "..\Common\DirectXHelper.h"
using namespace Rownd;
using ... | 24.760976 | 119 | 0.561663 | GarrettVance |
f5f42a637043d33995359db90e2f2abcc6a8edc7 | 4,363 | cpp | C++ | plugins/robots/common/ev3Kit/src/communication/bluetoothRobotCommunicationThread.cpp | ikonovalova/trik-studio | f084274a7663bb7f341169ee029e46b6079c7274 | [
"Apache-2.0"
] | null | null | null | plugins/robots/common/ev3Kit/src/communication/bluetoothRobotCommunicationThread.cpp | ikonovalova/trik-studio | f084274a7663bb7f341169ee029e46b6079c7274 | [
"Apache-2.0"
] | null | null | null | plugins/robots/common/ev3Kit/src/communication/bluetoothRobotCommunicationThread.cpp | ikonovalova/trik-studio | f084274a7663bb7f341169ee029e46b6079c7274 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2007-2015 QReal Research Group
*
* 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... | 27.967949 | 115 | 0.762549 | ikonovalova |
f5f514340561a900546ffe7a2a756765e562519b | 1,752 | cpp | C++ | test/msg/msg_queue_thread_test.cpp | ccup/mcl | 4f9fc954de7c696539430daee06a7218517d6c0f | [
"Apache-2.0"
] | 10 | 2020-09-07T02:39:51.000Z | 2021-09-26T00:44:40.000Z | test/msg/msg_queue_thread_test.cpp | ccup/mcl | 4f9fc954de7c696539430daee06a7218517d6c0f | [
"Apache-2.0"
] | null | null | null | test/msg/msg_queue_thread_test.cpp | ccup/mcl | 4f9fc954de7c696539430daee06a7218517d6c0f | [
"Apache-2.0"
] | 1 | 2020-09-11T01:21:42.000Z | 2020-09-11T01:21:42.000Z | #include <cctest/cctest.h>
#include "mcl/msg/msg_queue.h"
#include "mcl/lock/atom.h"
#include "mcl/thread/thread.h"
namespace {
constexpr MclSize MSG_QUEUE_CAPACITY = 10;
MclMsg msgBuff[MSG_QUEUE_CAPACITY];
MclMsgQueue mq = MCL_MSG_QUEUE(msgBuff, MSG_QUEUE_CAPACITY);
constexpr uint16_t TRY_COUNT = 10... | 27.375 | 70 | 0.5879 | ccup |
f5fdca3110d65da7c2d358dfd86e745bdac8c2eb | 3,800 | hh | C++ | src/events/Event.hh | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/events/Event.hh | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/events/Event.hh | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #ifndef EVENT_HH
#define EVENT_HH
#include <string>
namespace openmsx {
class TclObject;
enum EventType
{
OPENMSX_KEY_UP_EVENT,
OPENMSX_KEY_DOWN_EVENT,
OPENMSX_KEY_GROUP_EVENT,
OPENMSX_MOUSE_MOTION_EVENT,
OPENMSX_MOUSE_MOTION_GROUP_EVENT,
OPENMSX_MOUSE_BUTTON_UP_EVENT,
OPENMSX_MOUSE_BUTTON_DOWN_EVENT,
OPENM... | 27.142857 | 77 | 0.773947 | imulilla |
f5fee3371ed29e6cae2a1c7c3cd62f0734aaa25d | 2,816 | cpp | C++ | JContainers/src/gtest.cpp | SilverIce/JContainers | 98ca31304a74e299d1f7f003602c55fb07e866ee | [
"MIT"
] | 39 | 2015-01-16T09:17:05.000Z | 2021-12-15T23:02:00.000Z | JContainers/src/gtest.cpp | SilverIce/JContainers | 98ca31304a74e299d1f7f003602c55fb07e866ee | [
"MIT"
] | 26 | 2015-01-03T20:26:27.000Z | 2019-12-30T22:46:15.000Z | JContainers/src/gtest.cpp | SilverIce/JContainers | 98ca31304a74e299d1f7f003602c55fb07e866ee | [
"MIT"
] | 14 | 2015-10-23T08:46:01.000Z | 2022-03-24T18:08:24.000Z | #include "gtest.h"
//#include "typedefs_p.h"
#include <stdio.h>
#include <intrin.h>
#include <string>
#include <exception>
namespace testing
{
static bool IsDisabled(const TestInfo& info) {
const char * text = "DISABLED";
return strncmp(info.name2, text, strlen(text)) == 0;
}
struct Statis... | 26.819048 | 96 | 0.529119 | SilverIce |
eb069235c56842e3a3f65867f800e68ab32b54b9 | 1,166 | hpp | C++ | lib/STL+/strings/string_shared_ptr.hpp | knela96/Game-Engine | 06659d933c4447bd8d6c8536af292825ce4c2ab1 | [
"Unlicense"
] | 3 | 2018-05-07T19:09:23.000Z | 2019-05-03T14:19:38.000Z | deps/stlplus/strings/string_shared_ptr.hpp | evpo/libencryptmsg | fa1ea59c014c0a9ce339d7046642db4c80fc8701 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | deps/stlplus/strings/string_shared_ptr.hpp | evpo/libencryptmsg | fa1ea59c014c0a9ce339d7046642db4c80fc8701 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | #ifndef STLPLUS_STRING_SHARED_PTR
#define STLPLUS_STRING_SHARED_PTR
////////////////////////////////////////////////////////////////////////////////
// Author: Andy Rushton
// Copyright: (c) Southampton University 1999-2004
// (c) Andy Rushton 2004 onwards
// License: BSD License, see... | 33.314286 | 80 | 0.453688 | knela96 |
eb08a61f77475c329b551503be807e6d4a251a00 | 11,479 | cpp | C++ | src/info.cpp | Audionut/torrenttools | 1d365e0629abe1b23b5be5bac16b24dd38ae56b5 | [
"MIT"
] | null | null | null | src/info.cpp | Audionut/torrenttools | 1d365e0629abe1b23b5be5bac16b24dd38ae56b5 | [
"MIT"
] | null | null | null | src/info.cpp | Audionut/torrenttools | 1d365e0629abe1b23b5be5bac16b24dd38ae56b5 | [
"MIT"
] | null | null | null | #include <string_view>
#include <fmt/format.h>
#include <fmt/chrono.h>
#include <filesystem>
#include <string>
#include <chrono>
#include <ranges>
#include <bencode/bview.hpp>
#include <bencode/events/encode_json_to.hpp>
#include "dottorrent/metafile.hpp"
#include "dottorrent/serialization/all.hpp"
#include "info.h... | 35.103976 | 116 | 0.628713 | Audionut |
eb1143ee98aab485465fab34bfaca366725d3d82 | 30,145 | cpp | C++ | modules/core/src/Aquila/core/Algorithm.cpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/core/src/Aquila/core/Algorithm.cpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/core/src/Aquila/core/Algorithm.cpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | #include <Aquila/core/Algorithm.hpp>
#include <Aquila/utilities/container.hpp>
#include <MetaObject/params/IParam.hpp>
#include <MetaObject/params/ISubscriber.hpp>
#include <MetaObject/params/buffers/IBuffer.hpp>
#include <RuntimeObjectSystem/ISimpleSerializer.h>
#include <boost/accumulators/accumulators.hpp>
#inclu... | 29.069431 | 120 | 0.474142 | dtmoodie |
eb177bb261a8bff52a5a6c7c77635960555f38f7 | 8,822 | cpp | C++ | src/Shared/Config/JSONConfig.cpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 10 | 2018-02-12T16:14:07.000Z | 2022-03-19T15:08:29.000Z | src/Shared/Config/JSONConfig.cpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 11 | 2018-02-08T16:46:49.000Z | 2022-02-03T20:48:12.000Z | src/Shared/Config/JSONConfig.cpp | AlexWayfer/RankCheck | cf3005a2ba6f66bd66f27e0e42ca6b0ccb907014 | [
"Unlicense",
"MIT"
] | 3 | 2018-02-12T22:08:55.000Z | 2021-06-24T16:29:17.000Z | #include <Shared/Config/DataTypes.hpp>
#include <Shared/Config/JSONConfig.hpp>
#include <rapidjson/error/en.h>
#include <rapidjson/error/error.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/rapidjson.h>
#include <rapidjson/reader.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include ... | 22.165829 | 100 | 0.67309 | AlexWayfer |
a3e4ac7cdd36073ec7db3b2c11a356750245d317 | 3,136 | hh | C++ | dune/gdt/spaces/dg.hh | ftalbrecht/dune-gdt | 574bc4a3b28d2a6a6195a6b4df6727c61f0d73c9 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:12:08.000Z | 2020-02-08T04:12:08.000Z | dune/gdt/spaces/dg.hh | dune-community/dune-gdt-archive | 08c0167b2761f8263514189be2dcdf0e21a055dc | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/spaces/dg.hh | dune-community/dune-gdt-archive | 08c0167b2761f8263514189be2dcdf0e21a055dc | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:12:11.000Z | 2020-02-08T04:12:11.000Z | // This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_SPACES_DG_HH
#define DUNE_GDT_SPACES_DG_HH
#include <memory>
#include <dune/common/d... | 31.676768 | 119 | 0.747449 | ftalbrecht |
a3e870427eec6c6433352acbe75cf5d498725864 | 9,152 | hpp | C++ | rocprim/include/rocprim/iterator/zip_iterator.hpp | stanleytsang-amd/rocPRIM | 1a4135dfc43f90f465c336a551bccbe359d40f11 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/iterator/zip_iterator.hpp | stanleytsang-amd/rocPRIM | 1a4135dfc43f90f465c336a551bccbe359d40f11 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/iterator/zip_iterator.hpp | stanleytsang-amd/rocPRIM | 1a4135dfc43f90f465c336a551bccbe359d40f11 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights... | 26.917647 | 93 | 0.685642 | stanleytsang-amd |
a3f1a7cc921eea822a0fa1754abf9a8191044bd9 | 3,575 | cpp | C++ | src/fdm_r44/r44_Fuselage.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 195 | 2019-12-01T00:21:06.000Z | 2022-03-29T09:06:07.000Z | src/fdm_r44/r44_Fuselage.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 4 | 2019-06-03T12:41:17.000Z | 2021-01-30T21:47:00.000Z | src/fdm_r44/r44_Fuselage.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 26 | 2019-12-01T02:42:26.000Z | 2022-02-14T11:50:49.000Z | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... | 36.479592 | 99 | 0.538741 | paperoga-dev |
a3f6b1a223bdafe868413f3a9fcdd857ba9a0a94 | 1,251 | hpp | C++ | DirectProgramming/DPC++FPGA/ReferenceDesigns/decompress/src/common/simple_crc32.hpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | DirectProgramming/DPC++FPGA/ReferenceDesigns/decompress/src/common/simple_crc32.hpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | 1 | 2022-01-21T02:29:18.000Z | 2022-01-21T02:29:18.000Z | DirectProgramming/DPC++FPGA/ReferenceDesigns/decompress/src/common/simple_crc32.hpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | #ifndef __SIMPLE_CRC32_HPP__
#define __SIMPLE_CRC32_HPP__
//
// A simple CRC-32 implementation (not optimized for high performance).
// Compute CRC-32 on 'len' elements in 'buf', starting with a CRC of 'init'.
//
// Arguments:
// init: the initial CRC value. This is used to string together multiple
// ... | 29.785714 | 77 | 0.573941 | yafshar |
a3f9084a64f36e7f46df7db54b363e66b8a06e25 | 9,262 | cpp | C++ | src/openms/source/METADATA/MassAnalyzer.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/METADATA/MassAnalyzer.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/METADATA/MassAnalyzer.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 30.668874 | 425 | 0.694882 | mrurik |
a3f97d349fdb1e7a5bea806b282dd692ea8c60c1 | 862 | cpp | C++ | ds4wizard-cpp/DeviceIdleOptions.cpp | SonicFreak94/ds4wizard | 4d2ddc15b7db7cc5618c8676c91cf81614921c3c | [
"MIT"
] | 7 | 2019-02-27T19:23:34.000Z | 2021-11-13T08:35:31.000Z | ds4wizard-cpp/DeviceIdleOptions.cpp | SonicFreak94/ds4wizard | 4d2ddc15b7db7cc5618c8676c91cf81614921c3c | [
"MIT"
] | 1 | 2020-01-29T20:34:26.000Z | 2020-06-30T04:00:38.000Z | ds4wizard-cpp/DeviceIdleOptions.cpp | SonicFreak94/ds4wizard | 4d2ddc15b7db7cc5618c8676c91cf81614921c3c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "DeviceIdleOptions.h"
const DeviceIdleOptions DeviceIdleOptions::defaultIdleOptions(std::chrono::minutes(5), true);
DeviceIdleOptions::DeviceIdleOptions(std::chrono::seconds timeout, bool disconnect)
: timeout(timeout),
disconnect(disconnect)
{
}
bool DeviceIdleOptions::operator==(const... | 26.121212 | 93 | 0.740139 | SonicFreak94 |
a3fa2c88b3c3fe8f2b3e4395902598481e9bf381 | 1,766 | hpp | C++ | include/tao/pq/result_traits_tuple.hpp | skaae/taopq | a621cbba1f63c599819466f3da7ef7d352bdaf0d | [
"BSL-1.0"
] | 142 | 2018-12-10T10:12:50.000Z | 2022-03-26T16:01:06.000Z | include/tao/pq/result_traits_tuple.hpp | skaae/taopq | a621cbba1f63c599819466f3da7ef7d352bdaf0d | [
"BSL-1.0"
] | 45 | 2018-11-29T13:13:59.000Z | 2022-01-17T07:03:30.000Z | include/tao/pq/result_traits_tuple.hpp | skaae/taopq | a621cbba1f63c599819466f3da7ef7d352bdaf0d | [
"BSL-1.0"
] | 34 | 2018-11-29T14:03:59.000Z | 2022-03-15T13:08:13.000Z | // Copyright (c) 2016-2021 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#ifndef TAO_PQ_RESULT_TRAITS_TUPLE_HPP
#define TAO_PQ_RESULT_TRAITS_TUPLE_HPP
#include <tuple>
#include ... | 30.448276 | 127 | 0.619479 | skaae |
a3fabe3204214a4e10ddf30a3da423a539b62df3 | 13,322 | cpp | C++ | third_party/opencore-audio/aac/dec/src/fft_rx4_short.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | third_party/opencore-audio/aac/dec/src/fft_rx4_short.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | third_party/opencore-audio/aac/dec/src/fft_rx4_short.cpp | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | /* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* 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/li... | 28.344681 | 78 | 0.419982 | asveikau |
a3fc0e32e5ea56086a18991962e1fb5b941dab65 | 7,070 | cpp | C++ | src/to_string.cpp | robhz786/strf-benchmarks | e783700317ef1fea0d9e7217c8c42884c3c0371e | [
"BSL-1.0"
] | 1 | 2021-07-19T11:07:24.000Z | 2021-07-19T11:07:24.000Z | src/to_string.cpp | robhz786/strf-benchmarks | e783700317ef1fea0d9e7217c8c42884c3c0371e | [
"BSL-1.0"
] | null | null | null | src/to_string.cpp | robhz786/strf-benchmarks | e783700317ef1fea0d9e7217c8c42884c3c0371e | [
"BSL-1.0"
] | null | null | null | // Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include <strf/to_string.hpp>
#include <strf/to_cfile.hpp>
#include <iostream>
#include <sstream>
#include <c... | 46.513158 | 111 | 0.537907 | robhz786 |
a3fdadcf5685880e2e692e57267c4ca11b199ec4 | 1,569 | cpp | C++ | qpcol/types/setting.cpp | quntax/qpcol | 290e2f0639eaee12fe6190070b3e2c38a8fd1ea7 | [
"BSD-3-Clause"
] | null | null | null | qpcol/types/setting.cpp | quntax/qpcol | 290e2f0639eaee12fe6190070b3e2c38a8fd1ea7 | [
"BSD-3-Clause"
] | null | null | null | qpcol/types/setting.cpp | quntax/qpcol | 290e2f0639eaee12fe6190070b3e2c38a8fd1ea7 | [
"BSD-3-Clause"
] | null | null | null | #include "setting.h"
template<typename T>
Setting<T>::Setting()
{
valid = false;
m_Value = QVariant();
}
template<typename T>
Setting<T>::~Setting()
{
ch = 0;
delete ch;
}
template<typename T>
Setting<T>::Setting(const Parameter & parameter,
T defaultValue)
{
ch = ConfigHandler::... | 17.629213 | 63 | 0.630338 | quntax |
4301299c68404cfe0957fdf1022db622e9ccfd39 | 1,842 | cpp | C++ | src/fx/util/util.cpp | jathu/fx | 2ab96b8b47da16ad980bf7422e211cc1f773bf6d | [
"Apache-2.0"
] | 14 | 2022-02-09T02:57:54.000Z | 2022-03-11T08:18:27.000Z | src/fx/util/util.cpp | jathu/fx | 2ab96b8b47da16ad980bf7422e211cc1f773bf6d | [
"Apache-2.0"
] | null | null | null | src/fx/util/util.cpp | jathu/fx | 2ab96b8b47da16ad980bf7422e211cc1f773bf6d | [
"Apache-2.0"
] | 1 | 2022-02-13T16:09:18.000Z | 2022-02-13T16:09:18.000Z | #include "util.hpp"
#include <algorithm>
#include <cstring>
namespace fx::util {
bool icompare(std::string const& left, std::string const& right) {
if (left.size() == right.size()) {
return std::equal(right.begin(), right.end(), left.begin(), left.end(),
[](char l, char r) {
... | 30.7 | 80 | 0.610206 | jathu |
4305f240f4a696b965c72f624dcf3b27cbbe7fc4 | 3,767 | cpp | C++ | tc 160+/MarriageProblemRevised.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/MarriageProblemRevised.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/MarriageProblemRevised.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <queue>
using namespace std;
int M[1<<12], F[1<<12];
int bc[1<<12];
class MarriageProblemRevised {
public:
int neededMarriages(vector <stri... | 34.559633 | 309 | 0.510751 | ibudiselic |
43112381189a957a484eb433c34709d92ded8cea | 3,872 | cc | C++ | runtime/lib/function.cc | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 2 | 2019-11-06T13:44:11.000Z | 2019-11-17T06:49:40.000Z | runtime/lib/function.cc | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T14:45:59.000Z | 2021-01-21T14:45:59.000Z | runtime/lib/function.cc | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 3 | 2020-02-13T02:08:04.000Z | 2020-08-09T07:49:55.000Z | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/bootstrap_natives.h"
#include "vm/compiler/jit/compiler.h"
#include "vm/dart_entry.h"
#in... | 39.510204 | 80 | 0.683626 | annagrin |
43128856c2571e20dd32511587845a431b72cdd9 | 66,711 | cpp | C++ | src/test/test_algebra_semiring.cpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 112 | 2016-04-26T05:54:30.000Z | 2022-03-27T05:56:16.000Z | src/test/test_algebra_semiring.cpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 21 | 2016-03-22T19:06:46.000Z | 2021-10-07T15:40:18.000Z | src/test/test_algebra_semiring.cpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 22 | 2016-04-26T05:54:35.000Z | 2021-12-21T03:33:20.000Z | /*
* GraphBLAS Template Library (GBTL), Version 3.0
*
* Copyright 2020 Carnegie Mellon University, Battelle Memorial Institute, and
* Authors.
*
* THIS MATERIAL WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF
* THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR THE
* UNITED STA... | 55.918692 | 80 | 0.680667 | KIwabuchi |
43146e3e831203873c8b2985ca353dd08806f500 | 1,037 | cpp | C++ | Pumpkin Knight/Motor2D/Button.cpp | RustikTie/Pumpkin-Knight | 7a93689fe69adbf4b35ded6509dec40f793969ed | [
"MIT"
] | null | null | null | Pumpkin Knight/Motor2D/Button.cpp | RustikTie/Pumpkin-Knight | 7a93689fe69adbf4b35ded6509dec40f793969ed | [
"MIT"
] | null | null | null | Pumpkin Knight/Motor2D/Button.cpp | RustikTie/Pumpkin-Knight | 7a93689fe69adbf4b35ded6509dec40f793969ed | [
"MIT"
] | null | null | null |
#include "Button.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1Window.h"
#include "j1Fonts.h"
#include "j1Gui.h"
Button::Button(int x, int y, ElementType types, bool show, SDL_Rect* rec, const char* text) : Element(x, y, types)
{
if (text != nullptr)
{
buttonte... | 21.163265 | 114 | 0.63163 | RustikTie |
431550ccaee29bed8b7f522bc78af873723504ef | 1,052 | cpp | C++ | QSynthesis/Frontend/Base/Graphics/GraphicsPlaneHandle.cpp | SineStriker/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | 3 | 2021-12-08T05:30:52.000Z | 2021-12-18T10:46:49.000Z | QSynthesis/Frontend/Base/Graphics/GraphicsPlaneHandle.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | QSynthesis/Frontend/Base/Graphics/GraphicsPlaneHandle.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | #include "GraphicsPlaneHandle.h"
GraphicsPlaneHandle::GraphicsPlaneHandle(QGraphicsItem *parent) : GraphicsHandle(parent) {
}
GraphicsPlaneHandle::~GraphicsPlaneHandle() {
}
void GraphicsPlaneHandle::init() {
}
void GraphicsPlaneHandle::setValue(QPointF values) {
setValueX(values.x());
setValueY(values.y())... | 26.3 | 90 | 0.690114 | SineStriker |
4317c10a6276d0f3b708c21a11bf9a6d8a15bb74 | 9,239 | cc | C++ | RPC/MessageSocketTest.cc | Alex-II/logcabin_raft_optimzations | f6ac900f386ccfb28eae43ebef0576f48d189ab9 | [
"ISC"
] | null | null | null | RPC/MessageSocketTest.cc | Alex-II/logcabin_raft_optimzations | f6ac900f386ccfb28eae43ebef0576f48d189ab9 | [
"ISC"
] | null | null | null | RPC/MessageSocketTest.cc | Alex-II/logcabin_raft_optimzations | f6ac900f386ccfb28eae43ebef0576f48d189ab9 | [
"ISC"
] | null | null | null | /* Copyright (c) 2012 Stanford University
* Copyright (c) 2015 Diego Ongaro
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PR... | 32.879004 | 79 | 0.658188 | Alex-II |
431b16b67a576acaca228dcb5a2102f14899df6a | 22,095 | cpp | C++ | tests/src/test_TensorMeshHierarchy.cpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 19 | 2019-03-08T15:21:36.000Z | 2022-02-11T04:02:50.000Z | tests/src/test_TensorMeshHierarchy.cpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 100 | 2019-01-14T15:34:09.000Z | 2022-03-29T13:39:30.000Z | tests/src/test_TensorMeshHierarchy.cpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 22 | 2018-11-16T01:13:57.000Z | 2022-03-14T23:53:28.000Z | #include "catch2/catch_approx.hpp"
#include "catch2/catch_test_macros.hpp"
#include <algorithm>
#include <array>
#include <numeric>
#include <stdexcept>
#include <vector>
#include "testing_utilities.hpp"
#include "TensorMeshHierarchy.hpp"
#include "TensorMeshHierarchyIteration.hpp"
#include "shuffle.hpp"
#include "u... | 38.831283 | 80 | 0.602172 | kmorel |
431cf12b7d6069cc43318a927baacb44023df546 | 1,306 | hpp | C++ | maylee/include/maylee/syntax/syntax_node_visitor.hpp | eidolonsystems/maylee | a0a2e94bdc8543f88e428bee53b83db7a4bca0c0 | [
"MIT"
] | null | null | null | maylee/include/maylee/syntax/syntax_node_visitor.hpp | eidolonsystems/maylee | a0a2e94bdc8543f88e428bee53b83db7a4bca0c0 | [
"MIT"
] | null | null | null | maylee/include/maylee/syntax/syntax_node_visitor.hpp | eidolonsystems/maylee | a0a2e94bdc8543f88e428bee53b83db7a4bca0c0 | [
"MIT"
] | null | null | null | #ifndef MAYLEE_SYNTAX_NODE_VISITOR_HPP
#define MAYLEE_SYNTAX_NODE_VISITOR_HPP
#include "maylee/syntax/syntax.hpp"
namespace maylee {
//! Implements the visitor pattern for syntax nodes.
class syntax_node_visitor {
public:
virtual ~syntax_node_visitor() = default;
virtual void visit(const assignme... | 25.115385 | 68 | 0.721286 | eidolonsystems |
432439997a9965725b6a62eee1ad1a27a304a70c | 1,593 | cpp | C++ | Game Theory/Alice and Bob's Silly Game.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | Game Theory/Alice and Bob's Silly Game.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | Game Theory/Alice and Bob's Silly Game.cpp | StavrosChryselis/hackerrank | 42a3e393231e237a99a9e54522ce3ec954bf614f | [
"MIT"
] | null | null | null | /*
****************************************************************
****************************************************************
-> Coded by Stavros Chryselis
-> Visit my github for more solved problems over multiple sites
-> https://github.com/StavrosChryselis
-> Feel free to email me at stavrikios@gm... | 16.42268 | 73 | 0.483365 | StavrosChryselis |
432530239e6c600c525c1d8005b487cbcafeec85 | 490 | cpp | C++ | src/LowLevel/ResponseMessages/ReadyMessage.cpp | cpv-project/cpv-cql-driver | 66eebfd4e9ec75dc49cd4a7073a51a830236807a | [
"MIT"
] | 41 | 2018-01-23T09:27:32.000Z | 2021-02-15T15:49:07.000Z | src/LowLevel/ResponseMessages/ReadyMessage.cpp | cpv-project/cpv-cql-driver | 66eebfd4e9ec75dc49cd4a7073a51a830236807a | [
"MIT"
] | 20 | 2018-01-25T04:25:48.000Z | 2019-03-09T02:49:41.000Z | src/LowLevel/ResponseMessages/ReadyMessage.cpp | cpv-project/cpv-cql-driver | 66eebfd4e9ec75dc49cd4a7073a51a830236807a | [
"MIT"
] | 5 | 2018-04-10T12:19:13.000Z | 2020-02-17T03:30:50.000Z | #include "./ReadyMessage.hpp"
namespace cql {
/** The storage of ReadyMessage */
template <>
thread_local ReusableStorageType<ReadyMessage>
ReusableStorageInstance<ReadyMessage>;
/** Get description of this message */
std::string ReadyMessage::toString() const {
return "ReadyMessage()";
}
/** Decode messa... | 23.333333 | 61 | 0.72449 | cpv-project |
4326e1bf7b89c1b0c74cfef817e272a04df248a4 | 4,769 | hpp | C++ | container.hpp | MattAszyk/containers | eb0ae05d49075c01bba3e0003422f0bddd5da031 | [
"MIT"
] | null | null | null | container.hpp | MattAszyk/containers | eb0ae05d49075c01bba3e0003422f0bddd5da031 | [
"MIT"
] | null | null | null | container.hpp | MattAszyk/containers | eb0ae05d49075c01bba3e0003422f0bddd5da031 | [
"MIT"
] | null | null | null | #ifndef CONTAINER_HPP
#define CONTAINER_HPP
#include<exception>
namespace matt{
template<class T>
class container
{
protected:
struct item
{
item(const T& _value, item* _prev, item* _next) : value(_value), prev(_prev), next(_next){}
T value;
item* prev... | 18.849802 | 103 | 0.479765 | MattAszyk |
432cb18e08afefbf72aab2f03e465390db60ce4e | 5,166 | cpp | C++ | src/Passes/PettisAndHansen.cpp | davidmalcolm/BOLT | c5c46ca08fd846fb22e032a965fbccf2b0415861 | [
"NCSA"
] | 13 | 2019-12-22T11:52:13.000Z | 2021-11-09T12:02:23.000Z | src/Passes/PettisAndHansen.cpp | angelica-moreira/BOLT | 414249f74d0c422bd4286e6408ad32dd5b54bbbb | [
"NCSA"
] | null | null | null | src/Passes/PettisAndHansen.cpp | angelica-moreira/BOLT | 414249f74d0c422bd4286e6408ad32dd5b54bbbb | [
"NCSA"
] | 7 | 2020-01-01T17:21:36.000Z | 2021-02-11T06:43:38.000Z | #include "HFSort.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
#include <set>
#include <unordered_map>
#undef DEBUG_TYPE
#define DEBUG_TYPE "hfsort"
namespace llvm {
namespace bolt {
using NodeId = CallGraph::NodeId;
using Arc = CallGraph::Arc;
using Node ... | 24.836538 | 78 | 0.598335 | davidmalcolm |
4333899958398ae6e3aa74f35c66b15c5630d8a3 | 5,870 | cpp | C++ | src/AboutWindow.cpp | TruckerMP/ETS2Sync-Helper-4 | 2a8b9df1d4db1e59635762147725fcec84eaf211 | [
"Apache-2.0"
] | 1 | 2018-12-08T07:31:13.000Z | 2018-12-08T07:31:13.000Z | src/AboutWindow.cpp | TruckerMP/ETS2Sync-Helper-4 | 2a8b9df1d4db1e59635762147725fcec84eaf211 | [
"Apache-2.0"
] | null | null | null | src/AboutWindow.cpp | TruckerMP/ETS2Sync-Helper-4 | 2a8b9df1d4db1e59635762147725fcec84eaf211 | [
"Apache-2.0"
] | 2 | 2019-05-10T14:13:53.000Z | 2019-11-05T20:25:12.000Z | #include "precomp.hpp"
#include "AboutWindow.hpp"
#include "version.hpp"
#include "MainWindow.hpp"
#include <wx/hyperlink.h>
#include <wx/statline.h>
AboutWindow::AboutWindow(MainWindow * wndParent)
: wxDialog(wndParent, wxID_ANY, "About " + APP_DISPLAY_NAME) {
SetIcon(GetParent()->GetIcon());
Bind(wxEVT_SHOW, &... | 34.327485 | 115 | 0.748893 | TruckerMP |
433658af52807237dc9011b4e3440046deec2823 | 2,289 | cpp | C++ | Application/source/ui/frame/settings/SysMP3.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | 106 | 2020-11-01T09:58:37.000Z | 2022-03-26T10:44:26.000Z | Application/source/ui/frame/settings/SysMP3.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | 30 | 2020-11-01T11:21:48.000Z | 2022-02-01T23:09:47.000Z | Application/source/ui/frame/settings/SysMP3.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | 15 | 2020-11-02T12:06:03.000Z | 2021-08-05T14:22:39.000Z | #include "Application.hpp"
#include "lang/Lang.hpp"
#include "ui/frame/settings/SysMP3.hpp"
namespace Frame::Settings {
SysMP3::SysMP3(Main::Application * a) : Frame(a) {
// Temporary variables
Config * cfg = this->app->config();
// MP3::accurate_seek
this->addToggle("Settings.SysM... | 38.79661 | 81 | 0.591525 | RoutineFree |
433b2ada31562b35d201d7517d4fca7971c36ae4 | 6,503 | cpp | C++ | serial_tun.cpp | ClausKlein/Serial-TUN | f2929cae5b6ab907b7b5d1e20b81b400d2ccb3e9 | [
"MIT"
] | null | null | null | serial_tun.cpp | ClausKlein/Serial-TUN | f2929cae5b6ab907b7b5d1e20b81b400d2ccb3e9 | [
"MIT"
] | null | null | null | serial_tun.cpp | ClausKlein/Serial-TUN | f2929cae5b6ab907b7b5d1e20b81b400d2ccb3e9 | [
"MIT"
] | null | null | null | #include "slip.h"
#include "tun-driver.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <libserialport.h>
#include <pthread.h>
struct CommDevices
{
int tunFileDescriptor;
struct sp_port *serialPort;
};
char adapterName[IF_NAMESIZE];
char serialPortName[128];
unsigned se... | 28.902222 | 79 | 0.594341 | ClausKlein |
4343006c339dd3d8c5c5f8e16921fb3ab296b467 | 51,747 | cpp | C++ | src/main.cpp | fluffels/vulkan-experiments | 77fc2a3510a22df277d49a6e9b86e52505768b91 | [
"MIT"
] | null | null | null | src/main.cpp | fluffels/vulkan-experiments | 77fc2a3510a22df277d49a6e9b86e52505768b91 | [
"MIT"
] | null | null | null | src/main.cpp | fluffels/vulkan-experiments | 77fc2a3510a22df277d49a6e9b86e52505768b91 | [
"MIT"
] | null | null | null | #include <array>
#include <chrono>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <set>
#include <unordered_map>
#include <string>
#include <vector>
#include "lib/meshes/Terrain.h"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE... | 36.390295 | 89 | 0.593348 | fluffels |
434339a9051a37c24f755588b6f57997b0898001 | 19,515 | cpp | C++ | 3rdParty/_DKIMPORTS/librocket/Source/Core/Factory.cpp | aquawicket/DigitalKnob | 9e5997a1f0314ede80cf66a9bf28dc6373cb5987 | [
"MIT"
] | 29 | 2015-05-03T06:23:22.000Z | 2022-02-10T15:16:26.000Z | 3rdParty/_DKIMPORTS/librocket/Source/Core/Factory.cpp | aquawicket/DigitalKnob | 9e5997a1f0314ede80cf66a9bf28dc6373cb5987 | [
"MIT"
] | 125 | 2016-02-28T06:13:49.000Z | 2022-01-04T11:50:08.000Z | 3rdParty/_DKIMPORTS/librocket/Source/Core/Factory.cpp | aquawicket/DigitalKnob | 9e5997a1f0314ede80cf66a9bf28dc6373cb5987 | [
"MIT"
] | 8 | 2016-12-04T02:29:34.000Z | 2022-01-04T01:11:25.000Z | /*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... | 33.132428 | 183 | 0.762234 | aquawicket |
4344e306bbf124aee69a51773bcd881845233e18 | 815 | cpp | C++ | test/src/huffman_node.test.cpp | hhsdev/huffman-compression | 5c538f54a37c5ada3117c92ec70428a01c75d113 | [
"MIT"
] | null | null | null | test/src/huffman_node.test.cpp | hhsdev/huffman-compression | 5c538f54a37c5ada3117c92ec70428a01c75d113 | [
"MIT"
] | null | null | null | test/src/huffman_node.test.cpp | hhsdev/huffman-compression | 5c538f54a37c5ada3117c92ec70428a01c75d113 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "huffman_node.hpp"
TEST_CASE("HuffmanNode", "[HuffmanNode]") {
HuffmanNode leafNode1('a', 3);
HuffmanNode leafNode2('b', 5);
HuffmanNode branchNode(leafNode1, leafNode2);
SECTION("Constructors") {
REQUIRE(leafNode1.getChar() == 'a');
REQUIRE(leafNode1.getFrequency() == 3... | 27.166667 | 65 | 0.662577 | hhsdev |
4346b465026ef9b02acbdb62fdada96589e4305a | 7,469 | cpp | C++ | source/worker_url.cpp | DynasticSponge/erasmus | daaf81ee03a71cd532b744488eb164df12c4c9ec | [
"MIT"
] | null | null | null | source/worker_url.cpp | DynasticSponge/erasmus | daaf81ee03a71cd532b744488eb164df12c4c9ec | [
"MIT"
] | null | null | null | source/worker_url.cpp | DynasticSponge/erasmus | daaf81ee03a71cd532b744488eb164df12c4c9ec | [
"MIT"
] | null | null | null | //
// worker_url.cpp
// ~~~~~~~~~~~~~~
//
// Author: Joseph Adomatis
// Copyright (c) 2020 Joseph R Adomatis (joseph dot adomatis at gmail dot com)
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <cctype>
#include <string>
#include ".... | 28.616858 | 119 | 0.391619 | DynasticSponge |
43478dfda4272168c0934f1de8c0ecfa53171891 | 1,587 | cc | C++ | src/tint/ast/vector.cc | encounter/dawn-cmake | 64a23ce0ede5f232cc209b69d64164ede6810b65 | [
"Apache-2.0"
] | null | null | null | src/tint/ast/vector.cc | encounter/dawn-cmake | 64a23ce0ede5f232cc209b69d64164ede6810b65 | [
"Apache-2.0"
] | null | null | null | src/tint/ast/vector.cc | encounter/dawn-cmake | 64a23ce0ede5f232cc209b69d64164ede6810b65 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint 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 agreed ... | 31.117647 | 81 | 0.695022 | encounter |
4348cd3ba2a16f60e989232ad7d3dab053417f47 | 2,144 | cpp | C++ | cpp/godot-cpp/src/gen/Joint2D.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/Joint2D.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/Joint2D.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "Joint2D.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
Joint2D::___method_bindings Joint2D::___mb = {};
void Joint2D::___init_method_bindings() {
___mb.mb_get_bias = godot::api->godot_met... | 34.580645 | 133 | 0.788246 | GDNative-Gradle |
43491864b7e19f03d3bf1929f865b3c3d9a03b96 | 49,954 | cc | C++ | src/couch_db.cc | sduvuru/couchstore | 0ddb502b5b32aaa728e3323bd5d447f467f77966 | [
"Apache-2.0"
] | null | null | null | src/couch_db.cc | sduvuru/couchstore | 0ddb502b5b32aaa728e3323bd5d447f467f77966 | [
"Apache-2.0"
] | null | null | null | src/couch_db.cc | sduvuru/couchstore | 0ddb502b5b32aaa728e3323bd5d447f467f77966 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <fcntl.h>
#include <platform/cb_malloc.h>
#include <phosphor/phosphor.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "internal.h"
#include "node_types.h"
#include "co... | 33.082119 | 121 | 0.589262 | sduvuru |
434990dcb181181334115c988a9e499ed02b7b82 | 21,628 | hpp | C++ | tcob/include/tcob/core/Input.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob/include/tcob/core/Input.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob/include/tcob/core/Input.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tobias Bohnen
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include <tcob/tcob_config.hpp>
#include <unordered_map>
#include <tcob/core/Signal.hpp>
#include <tcob/core/data/Point.hpp>
typedef struct _SDL_GameController SDL_GameContr... | 26.37561 | 102 | 0.605465 | TobiasBohnen |
434a33d2cfa3965264dfadc1622f7f72d916b547 | 7,792 | hpp | C++ | Source/AllProjects/Drivers/iTunesRendTM/Server/iTunesRendTMS_iTrayMonPlIntfClientProxy.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/iTunesRendTM/Server/iTunesRendTMS_iTrayMonPlIntfClientProxy.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/iTunesRendTM/Server/iTunesRendTMS_iTrayMonPlIntfClientProxy.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | // ----------------------------------------------------------------------------
// FILE: iTunesRendTMS_iTrayMonPlIntfClientProxy.hpp
// DATE: Fri, Feb 12 21:14:16 2021 -0500
// ID: 016EC0A20CCA441C-F05CAF46433D51D7
//
// This file was generated by the Charmed Quark CIDIDL compiler. Do not make
// changes by hand... | 38.384236 | 153 | 0.518352 | MarkStega |
434e3ef48db16dda3ad9f7c57a560e236bea40e8 | 1,586 | cpp | C++ | asio-utils/src/asio-main.cpp | kovdan01/cosec-examples | bf19f2e2db8962d80ee7ce237be1c8af9e901cc9 | [
"MIT"
] | 3 | 2020-12-06T13:14:27.000Z | 2021-06-01T13:59:50.000Z | asio-utils/src/asio-main.cpp | kovdan01/cosec-examples | bf19f2e2db8962d80ee7ce237be1c8af9e901cc9 | [
"MIT"
] | 74 | 2020-10-25T13:10:31.000Z | 2021-06-06T15:12:15.000Z | asio-utils/src/asio-main.cpp | kovdan01/cosec-examples | bf19f2e2db8962d80ee7ce237be1c8af9e901cc9 | [
"MIT"
] | 3 | 2020-12-17T20:10:56.000Z | 2021-04-28T09:03:16.000Z | #include <ce/asio-main.hpp>
#include <ce/socket_session.hpp>
#include <boost/exception/diagnostic_information.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/support/date_time.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/utility/setup/console.hpp>
#include <iostream>... | 34.478261 | 103 | 0.554855 | kovdan01 |
434f2739db07dae37ba5f90c89adbfba3e815823 | 1,997 | cpp | C++ | tools/freebayes/src/Contamination.cpp | benranco/test | 7cf9740108844da30dcc506e733015fd5dd76a05 | [
"MIT"
] | 1 | 2020-11-23T09:20:07.000Z | 2020-11-23T09:20:07.000Z | tools/freebayes/src/Contamination.cpp | benranco/test | 7cf9740108844da30dcc506e733015fd5dd76a05 | [
"MIT"
] | null | null | null | tools/freebayes/src/Contamination.cpp | benranco/test | 7cf9740108844da30dcc506e733015fd5dd76a05 | [
"MIT"
] | 1 | 2020-10-23T11:50:01.000Z | 2020-10-23T11:50:01.000Z | #ifndef CONTAMINATION_CPP
#define CONTAMINATION_CPP
#include "Contamination.h"
#include "convert.h"
void Contamination::open(string& file) {
ifstream input;
input.open(file.c_str());
if (!input.is_open()) {
cerr << "contamination estimates file " << file << " is not open" << endl;
exit(1)... | 25.935065 | 82 | 0.576365 | benranco |
4351ec0a92db20f701a9f47d4212807f2f44f2c9 | 4,112 | cpp | C++ | igl/copyleft/cgal/submesh_aabb_tree.cpp | aviadtzemah/animation2 | 9a3f980fbe27672fe71f8f61f73b5713f2af5089 | [
"Apache-2.0"
] | 2,392 | 2016-12-17T14:14:12.000Z | 2022-03-30T19:40:40.000Z | igl/copyleft/cgal/submesh_aabb_tree.cpp | aviadtzemah/animation2 | 9a3f980fbe27672fe71f8f61f73b5713f2af5089 | [
"Apache-2.0"
] | 106 | 2018-04-19T17:47:31.000Z | 2022-03-01T19:44:11.000Z | igl/copyleft/cgal/submesh_aabb_tree.cpp | aviadtzemah/animation2 | 9a3f980fbe27672fe71f8f61f73b5713f2af5089 | [
"Apache-2.0"
] | 184 | 2017-11-15T09:55:37.000Z | 2022-02-21T16:30:46.000Z | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2016 Alec Jacobson
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.... | 69.694915 | 785 | 0.675584 | aviadtzemah |
4356f340f496462a0aa2f15e8e2fe7ad79267eb0 | 990 | hpp | C++ | include/RadonFramework/Memory/PointerID.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | include/RadonFramework/Memory/PointerID.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | include/RadonFramework/Memory/PointerID.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #ifndef RF_POINTERID_HPP
#define RF_POINTERID_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <RadonFramework/Core/Types/UInt32.hpp>
#include <RadonFramework/Core/Types/UInt64.hpp>
namespace RadonFramework::Memory
{
using PtrID = RF_Type::UInt64;
using PointerIDHolder = union {
PtrID ID;
void* Ptr;
struct... | 18.333333 | 50 | 0.741414 | tak2004 |
4358ad8fccc94ca4af08bc092d0c0a0f2863e14e | 2,664 | cpp | C++ | level_zero/tools/source/metrics/linux/os_metric_enumeration_imp_linux.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/metrics/linux/os_metric_enumeration_imp_linux.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/metrics/linux/os_metric_enumeration_imp_linux.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/linux/sys_calls.h"
#include "shared/source/os_interface/os_interface.h"
#include "level_zero/tools/source/metrics/metric_enumeration_imp.... | 33.3 | 116 | 0.700826 | troels |
4359e751c877cdede09f85372d15542aa294890f | 17,573 | hh | C++ | src/c++/include/alignment/Cigar.hh | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 13 | 2018-02-09T22:59:39.000Z | 2021-11-29T06:33:22.000Z | src/c++/include/alignment/Cigar.hh | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 17 | 2018-01-26T11:36:07.000Z | 2022-02-03T18:48:43.000Z | src/c++/include/alignment/Cigar.hh | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 4 | 2018-10-19T20:00:00.000Z | 2020-10-29T14:44:06.000Z | /**
** Isaac Genome Alignment Software
** Copyright (c) 2010-2017 Illumina, Inc.
** All rights reserved.
**
** This software is provided under the terms and conditions of the
** GNU GENERAL PUBLIC LICENSE Version 3
**
** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3
** along with ... | 33.729367 | 172 | 0.5958 | Illumina |
435a3fbfef3478542363abfb13e93de86e7595c2 | 24,853 | cpp | C++ | test/tools/almath_test.cpp | UCCS-Social-Robotics/libalmath | 608475eced68452eb19ef09c46e1916ac597ed88 | [
"BSD-3-Clause"
] | 4 | 2016-03-14T20:34:05.000Z | 2021-02-14T05:53:00.000Z | test/tools/almath_test.cpp | UCCS-Social-Robotics/libalmath | 608475eced68452eb19ef09c46e1916ac597ed88 | [
"BSD-3-Clause"
] | 1 | 2021-02-14T05:52:04.000Z | 2022-03-16T11:18:20.000Z | test/tools/almath_test.cpp | UCCS-Social-Robotics/libalmath | 608475eced68452eb19ef09c46e1916ac597ed88 | [
"BSD-3-Clause"
] | 9 | 2017-07-11T16:01:27.000Z | 2022-02-13T20:41:05.000Z | /*
* Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#include <almath/tools/almath.h>
#include <almath/tools/altrigonometry.h>
#include <almath/tools/almathio.h>
#include <almath/tools/altransformhe... | 33.315013 | 98 | 0.660041 | UCCS-Social-Robotics |
435c602d991cf6408bff6ea148b1a47b1bfbccee | 60 | cpp | C++ | build/sharedLib/mainLoad.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | 5 | 2020-08-17T12:14:44.000Z | 2022-01-21T06:57:56.000Z | build/sharedLib/mainLoad.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | null | null | null | build/sharedLib/mainLoad.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | 2 | 2022-01-18T03:20:51.000Z | 2022-02-11T14:50:19.000Z | void foo(); //declaration
int main()
{
foo();
return 0;
} | 8.571429 | 25 | 0.583333 | NoCodeProgram |
435d48631cdc82fb11740cdf32032fddf60b1e4a | 238 | cpp | C++ | day-12-7-1.cpp | duasong111/c_lang_learn | 4a939204a9d12a1fd0a6ca4ff36ed3bfdfb97482 | [
"BSD-2-Clause"
] | null | null | null | day-12-7-1.cpp | duasong111/c_lang_learn | 4a939204a9d12a1fd0a6ca4ff36ed3bfdfb97482 | [
"BSD-2-Clause"
] | null | null | null | day-12-7-1.cpp | duasong111/c_lang_learn | 4a939204a9d12a1fd0a6ca4ff36ed3bfdfb97482 | [
"BSD-2-Clause"
] | null | null | null | //对于printf,其实还有更牛逼的用法,拿那个输出举例
#include<stdio.h>
int main(void)
{
int i;
int x;
printf("你想有几行呢?");
scanf_s("%d", &x);
for (i = 1; i <= x; i++)
printf("%*d\n", i, i % 10);
//超级喜欢这个%*d,i,i%10; 直接省略了我两行代码
return 0;
} | 18.307692 | 35 | 0.529412 | duasong111 |
cb1f7a7c44a2ea331c78925fa71f73d8e19b1989 | 16,874 | cpp | C++ | tesseract_ros_examples/src/car_seat_example.cpp | cbw36/tesseract_ros | a430b59ef95220232628e4e2266f0a31e82134de | [
"Apache-2.0",
"BSD-2-Clause"
] | 1 | 2020-04-02T22:15:06.000Z | 2020-04-02T22:15:06.000Z | tesseract_ros_examples/src/car_seat_example.cpp | cbw36/tesseract_ros | a430b59ef95220232628e4e2266f0a31e82134de | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | tesseract_ros_examples/src/car_seat_example.cpp | cbw36/tesseract_ros | a430b59ef95220232628e4e2266f0a31e82134de | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | /**
* @file car_seat_example.cpp
* @brief Car seat example implementation
*
* @author Levi Armstrong
* @date July 22, 2019
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2017, Southwest Research Institute
*
* @par License
* Software License Agreement (Apache License)
* @par
* Licensed u... | 40.17619 | 119 | 0.697523 | cbw36 |
cb233dcaf44452982b7c4027090c202c6013b585 | 16,107 | cpp | C++ | src/Magnum/GL/Test/AbstractTextureGLTest.cpp | pinojojo/magnum | aef0ee4bfba8dd0e6b23bee4e170faf66c3e0e96 | [
"MIT"
] | 1 | 2022-02-18T06:19:35.000Z | 2022-02-18T06:19:35.000Z | src/Magnum/GL/Test/AbstractTextureGLTest.cpp | pinojojo/magnum | aef0ee4bfba8dd0e6b23bee4e170faf66c3e0e96 | [
"MIT"
] | null | null | null | src/Magnum/GL/Test/AbstractTextureGLTest.cpp | pinojojo/magnum | aef0ee4bfba8dd0e6b23bee4e170faf66c3e0e96 | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021, 2022 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files ... | 38.533493 | 194 | 0.729124 | pinojojo |
cb23c86660a5e07a0590c6395424b3346265745b | 9,404 | cpp | C++ | src/ssa/ssa_dereference.cpp | KentrilDespair/2ls | 29b5de1abe0abee3ea07109deb9430c45756831d | [
"BSD-4-Clause"
] | null | null | null | src/ssa/ssa_dereference.cpp | KentrilDespair/2ls | 29b5de1abe0abee3ea07109deb9430c45756831d | [
"BSD-4-Clause"
] | null | null | null | src/ssa/ssa_dereference.cpp | KentrilDespair/2ls | 29b5de1abe0abee3ea07109deb9430c45756831d | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Aliasing Decision
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
/// \file
/// Aliasing Decision
// #define DEBUG
#ifdef DEBUG
#include <iostream>
#include <langapi/l... | 24.747368 | 79 | 0.630264 | KentrilDespair |
cb2457a04ff22828416c82770410e168de6c61ba | 477 | cpp | C++ | artifact/storm/src/storm-dft/storage/dft/elements/BEConst.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm-dft/storage/dft/elements/BEConst.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm-dft/storage/dft/elements/BEConst.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "BEConst.h"
namespace storm {
namespace storage {
template <typename ValueType>
ValueType BEConst<ValueType>::getUnreliability(ValueType time) const {
return failed() ? storm::utility::one<ValueType>() : storm::utility::zero<ValueType>();
}
// Explicitly insta... | 28.058824 | 99 | 0.651992 | glatteis |
cb24890ee7eeea3fa935678ae2c809cc47e72f42 | 7,259 | cpp | C++ | TimeSync/TimeSync.cpp | rjpdasilva/ThunderNanoServices | 23a5bf2fdab09135a7da080c1a5195f4257e5b98 | [
"BSD-2-Clause"
] | null | null | null | TimeSync/TimeSync.cpp | rjpdasilva/ThunderNanoServices | 23a5bf2fdab09135a7da080c1a5195f4257e5b98 | [
"BSD-2-Clause"
] | null | null | null | TimeSync/TimeSync.cpp | rjpdasilva/ThunderNanoServices | 23a5bf2fdab09135a7da080c1a5195f4257e5b98 | [
"BSD-2-Clause"
] | null | null | null | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... | 34.402844 | 114 | 0.571429 | rjpdasilva |
cb276b14a7363da0a429669b43f547ba839a74b9 | 3,269 | cpp | C++ | AssortedWidgets/MenuBar.cpp | Bot-Labs/AssortedWidgets | 298567b8f069580205e309979bc35ec063d09f51 | [
"MIT"
] | 107 | 2016-03-13T23:45:48.000Z | 2022-02-13T21:17:44.000Z | AssortedWidgets/MenuBar.cpp | Bot-Labs/AssortedWidgets | 298567b8f069580205e309979bc35ec063d09f51 | [
"MIT"
] | 2 | 2019-10-12T12:19:21.000Z | 2022-01-04T10:42:18.000Z | AssortedWidgets/MenuBar.cpp | Bot-Labs/AssortedWidgets | 298567b8f069580205e309979bc35ec063d09f51 | [
"MIT"
] | 29 | 2017-06-04T15:04:30.000Z | 2021-11-25T14:36:48.000Z | #include "MenuBar.h"
#include "Menu.h"
#include "ThemeEngine.h"
namespace AssortedWidgets
{
namespace Widgets
{
MenuBar::~MenuBar(void)
{
}
void MenuBar::setExpand(Menu *_expandMenu)
{
if(m_expandMenu)
{
m_expandMenu->shrink();
}
m_expandMenu=_expandMenu;
... | 23.35 | 92 | 0.552463 | Bot-Labs |
cb2a7726700111d0e24f206a1e624a9f65bd780f | 2,537 | cpp | C++ | source/Structure/custom_plugins/plugins/pertubation/pertubation.cpp | Guiraffo/ProVANT-Simulator | 568c6f1688525fa64ac0193a6734563a5b95c997 | [
"MIT"
] | 7 | 2020-05-17T21:49:00.000Z | 2022-03-25T12:32:24.000Z | source/Structure/custom_plugins/plugins/pertubation/pertubation.cpp | Guiraffo/ProVANT-Simulator | 568c6f1688525fa64ac0193a6734563a5b95c997 | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/pertubation/pertubation.cpp | Guiraffo/ProVANT-Simulator | 568c6f1688525fa64ac0193a6734563a5b95c997 | [
"MIT"
] | 2 | 2020-12-20T02:10:37.000Z | 2021-01-24T10:11:49.000Z | /*
* File: pertubation.cpp
* Author: Arthur Viana Lara
* Project: ProVANT
* Company: Federal University of Minas Gerais
* Version: 1.0
* Date: 29/01/18
* Description: This library is responsable to implement a plugin to simulate a force pertubation.
*/
#include <pertubation.h>
namespace gazebo
{
// constructor
pe... | 20.296 | 102 | 0.642885 | Guiraffo |
cb2ae40322d5bd895b23a3e8780fe1ad9bb1094a | 402 | cpp | C++ | Jerboa/src/Jerboa/Core/EventObserver.cpp | GilbertNordhammar/Newt | 5e3c04cc8e11dfc64b43458d060d037c2ecff062 | [
"Apache-2.0"
] | null | null | null | Jerboa/src/Jerboa/Core/EventObserver.cpp | GilbertNordhammar/Newt | 5e3c04cc8e11dfc64b43458d060d037c2ecff062 | [
"Apache-2.0"
] | null | null | null | Jerboa/src/Jerboa/Core/EventObserver.cpp | GilbertNordhammar/Newt | 5e3c04cc8e11dfc64b43458d060d037c2ecff062 | [
"Apache-2.0"
] | null | null | null | #include "jerboa-pch.h"
#include "EventObserver.h"
namespace Jerboa {
EventObserver::EventObserver(EventBus* eventBus, EventCallback callback, std::type_index eventIndex)
: EventObserverBase(eventBus), mCallback(callback), mEventIndex(eventIndex) {
Subscribe(mCallback, mEventIndex);
}
Even... | 30.923077 | 104 | 0.716418 | GilbertNordhammar |
cb2b2e1fb776bdcb2f9af7661fd4cd7e4bc4e35e | 4,460 | cpp | C++ | aws-cpp-sdk-s3-crt/source/model/RestoreRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-s3-crt/source/model/RestoreRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-s3-crt/source/model/RestoreRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/s3-crt/model/RestoreRequest.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <uti... | 28.407643 | 164 | 0.731839 | perfectrecall |
cb2c0501cef23216487726082b85ef75957f41d3 | 1,364 | hpp | C++ | libs/move/example/copymovable.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 11 | 2016-04-12T16:29:29.000Z | 2021-06-28T11:01:57.000Z | libs/move/example/copymovable.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 3 | 2018-10-31T19:35:14.000Z | 2019-06-04T17:11:27.000Z | libs/move/example/copymovable.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 9 | 2015-09-09T02:38:32.000Z | 2021-01-30T00:24:24.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/move for ... | 26.745098 | 78 | 0.629032 | ballisticwhisper |
cb2fe6fcb75350618eef157089e49f7ddabea2ff | 1,835 | cpp | C++ | src/solutions/490.cpp | bshankar/euler | c866a661a94d15d3744c74d85149534efac2ca23 | [
"MIT"
] | null | null | null | src/solutions/490.cpp | bshankar/euler | c866a661a94d15d3744c74d85149534efac2ca23 | [
"MIT"
] | null | null | null | src/solutions/490.cpp | bshankar/euler | c866a661a94d15d3744c74d85149534efac2ca23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdlib>
using namespace std;
template <class T>
class F {
public:
F(T n, T r) {
// initialize some values
v.resize(n);
perm.resize(n);
v[0] = true;
perm[0] = 1;
v[n-1] = true;
perm[n-1] = n;
count1 = c... | 22.654321 | 64 | 0.346049 | bshankar |
cb31012ac2fe8d0796f522ac41df7a6dd5d6a6ef | 3,307 | cpp | C++ | folly/futures/Barrier.cpp | foreverhy/folly | 8d141fc119bbb2f703d145c1a7cb70e7f6ce282f | [
"Apache-2.0"
] | 2 | 2021-06-29T13:42:22.000Z | 2021-09-06T10:57:34.000Z | folly/futures/Barrier.cpp | foreverhy/folly | 8d141fc119bbb2f703d145c1a7cb70e7f6ce282f | [
"Apache-2.0"
] | null | null | null | folly/futures/Barrier.cpp | foreverhy/folly | 8d141fc119bbb2f703d145c1a7cb70e7f6ce282f | [
"Apache-2.0"
] | 5 | 2021-06-29T13:42:26.000Z | 2022-02-08T02:41:34.000Z | /*
* Copyright 2015-present Facebook, 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 a... | 29.792793 | 80 | 0.658905 | foreverhy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.