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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5e9918171f8610da10971bf5ef47eacc1d9275c | 5,711 | cpp | C++ | CookieEngine/src/Render/Drawers/MiniMapDrawer.cpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/src/Render/Drawers/MiniMapDrawer.cpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/src/Render/Drawers/MiniMapDrawer.cpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #include "Core/Math/Mat4.hpp"
#include "Render/D3D11Helper.hpp"
#include "Resources/Mesh.hpp"
#include "Resources/Texture.hpp"
#include "Core/Primitives.hpp"
#include "Resources/Map.hpp"
#include "Render/DrawDataHandler.hpp"
#include "Render/Drawers/MiniMapDrawer.hpp"
#include "Render/Camera.hpp"
using namespace Cooki... | 28.133005 | 120 | 0.596568 |
e5ec6bfd9225a596f2111ae906a938b3348f3bd1 | 2,495 | hpp | C++ | inc/dirac_op.hpp | lkeegan/canonical | 9380e8026f637e50b6354eaf9aeb6728b28bac3c | [
"MIT"
] | null | null | null | inc/dirac_op.hpp | lkeegan/canonical | 9380e8026f637e50b6354eaf9aeb6728b28bac3c | [
"MIT"
] | null | null | null | inc/dirac_op.hpp | lkeegan/canonical | 9380e8026f637e50b6354eaf9aeb6728b28bac3c | [
"MIT"
] | null | null | null | #ifndef LKEEGAN_CANONICAL_DIRAC_OP_H
#define LKEEGAN_CANONICAL_DIRAC_OP_H
#include <random>
#include "4d.hpp"
#include "Eigen3/Eigen/Eigenvalues"
#include "omp.h"
#include "su3.hpp"
// staggered space-dependent gamma matrices
// for now stored as 5x doubles per site but they are just +/- signs, and g[0]
// is just + e... | 32.828947 | 80 | 0.726653 |
e5ec74faa22ac5c889e31f6c93ef137cdb41447a | 5,108 | cc | C++ | src/tim/vx/ops/rnn_cell.cc | gdh1995/TIM-VX | 242a6bd05ae9153a6b563c39e6f6de16568812df | [
"MIT"
] | null | null | null | src/tim/vx/ops/rnn_cell.cc | gdh1995/TIM-VX | 242a6bd05ae9153a6b563c39e6f6de16568812df | [
"MIT"
] | null | null | null | src/tim/vx/ops/rnn_cell.cc | gdh1995/TIM-VX | 242a6bd05ae9153a6b563c39e6f6de16568812df | [
"MIT"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2021 Vivante 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 ... | 35.72028 | 80 | 0.669538 |
e5f27ff62e3c8fe8f15130737b095fadf08dec16 | 3,670 | cpp | C++ | src/coinbase_pro/parser.cpp | olned/ssc2ce-cpp | 306188fa66322773721f71a8b52ea107ff2288cd | [
"BSL-1.0"
] | null | null | null | src/coinbase_pro/parser.cpp | olned/ssc2ce-cpp | 306188fa66322773721f71a8b52ea107ff2288cd | [
"BSL-1.0"
] | null | null | null | src/coinbase_pro/parser.cpp | olned/ssc2ce-cpp | 306188fa66322773721f71a8b52ea107ff2288cd | [
"BSL-1.0"
] | null | null | null | // Copyright Oleg Nedbaylo 2020.
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE
// or copy at http://www.boost.org/LICENSE_1_0.txt
#include "parser.hpp"
#include <cstdlib>
#include <fmt/format.h>
#include <iostream>
#include <rapidjson/document.h>
namespace ssc2ce {
Co... | 22.9375 | 108 | 0.617984 |
e5fa02c892e73170ede5a8caa420d2099b86323e | 1,006 | cpp | C++ | Projects/Demo/source/Common/ControledLightComponent.cpp | NeroBurner/ETEngine | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | [
"MIT"
] | null | null | null | Projects/Demo/source/Common/ControledLightComponent.cpp | NeroBurner/ETEngine | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | [
"MIT"
] | null | null | null | Projects/Demo/source/Common/ControledLightComponent.cpp | NeroBurner/ETEngine | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ControledLightComponent.h"
#include <EtCore/Reflection/Registration.h>
namespace et {
namespace demo {
// reflection
//------------
RTTR_REGISTRATION
{
rttr::registration::class_<ControledLightComponent>("controled light component");
BEGIN_REGISTER_POLYMORPHIC_CLASS(ControledLight... | 22.863636 | 91 | 0.698807 |
e5fa89f24b53ada66750cbf7e14b96d67cba0025 | 2,386 | hpp | C++ | docker/private/priority_queue.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 41 | 2019-09-24T02:17:34.000Z | 2022-01-18T03:14:46.000Z | docker/private/priority_queue.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 2 | 2019-11-04T09:01:40.000Z | 2020-06-23T03:03:38.000Z | docker/private/priority_queue.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 8 | 2019-09-24T02:17:35.000Z | 2021-09-11T00:21:03.000Z | #ifndef xpack_docker_priority_queue
#define xpack_docker_priority_queue
#pragma push_macro("xuser")
#undef xuser
#define xuser mixc::docker_priority_queue::inc
#include"algo/heap_root.hpp"
#include"define/base_type.hpp"
#include"docker/shared_array.hpp"
#include"docker/transmitter.hpp"
#include"dumb/mirror.hpp"
#inclu... | 26.808989 | 74 | 0.594719 |
e5fce778a67f3c86688c7648a8bc5fde7458882f | 2,127 | cpp | C++ | UCF HSPT Documents/2011/Solutions/genetics.cpp | p473lr/i-urge-mafia-gear | ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e | [
"Apache-2.0"
] | null | null | null | UCF HSPT Documents/2011/Solutions/genetics.cpp | p473lr/i-urge-mafia-gear | ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e | [
"Apache-2.0"
] | null | null | null | UCF HSPT Documents/2011/Solutions/genetics.cpp | p473lr/i-urge-mafia-gear | ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<fstream>
#include<cctype>
#include<cstdlib>
using namespace std;
char input[16]; //variable to store each line of input
/*
Array to manipulate the integer to genetic character conversion.
For any character its array index is the corresponding value. For example 'G' has value of 2... | 25.321429 | 113 | 0.597555 |
f90046ff57205cdeb4834d4efff9cbd713a8c33e | 2,328 | cc | C++ | cms/src/model/DeleteNotifyPolicyRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | cms/src/model/DeleteNotifyPolicyRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | cms/src/model/DeleteNotifyPolicyRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* 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... | 24.765957 | 79 | 0.752148 |
f9024c35e6b29e9f8d8c30463ab7097cd9a2108d | 624 | cpp | C++ | src/Math.cpp | mmha/efiraytracer | bd14e70db1e5390080e47c2e619a8a20d2e75ca6 | [
"BSL-1.0"
] | 8 | 2018-03-02T17:42:15.000Z | 2021-09-14T21:59:19.000Z | src/Math.cpp | mmha/efiraytracer | bd14e70db1e5390080e47c2e619a8a20d2e75ca6 | [
"BSL-1.0"
] | null | null | null | src/Math.cpp | mmha/efiraytracer | bd14e70db1e5390080e47c2e619a8a20d2e75ca6 | [
"BSL-1.0"
] | null | null | null | #include <cstdint>
// TODO Use SSE
// http://www.myreckonings.com/Dead_Reckoning/Online/Materials/Fast_Approximation_of_Elementary_Functions.pdf
extern "C" float tanf(float x) {
float tan;
__asm__("FPTAN;" : "=t"(tan) : "0"(x));
return tan;
}
extern "C" double sqrt(double x) {
__asm__("sqrtsd %1, %0" : "+x"(x) : ... | 24.96 | 109 | 0.641026 |
f9055ee5a4b61ca351341a9eff91ee855516a200 | 1,930 | cpp | C++ | Practicum_Homeworks_2021/04_Practice/main.cpp | NaskoVasilev/OOP-FMI | 00443be9ef1931beae1e06f40fbb76ea09a46d1a | [
"MIT"
] | 4 | 2020-11-14T11:22:39.000Z | 2021-11-02T08:35:24.000Z | Practicum_Homeworks_2021/04_Practice/main.cpp | NaskoVasilev/OOP-FMI | 00443be9ef1931beae1e06f40fbb76ea09a46d1a | [
"MIT"
] | null | null | null | Practicum_Homeworks_2021/04_Practice/main.cpp | NaskoVasilev/OOP-FMI | 00443be9ef1931beae1e06f40fbb76ea09a46d1a | [
"MIT"
] | 6 | 2020-11-08T12:55:25.000Z | 2022-01-23T17:33:47.000Z | #include "card.hpp"
#include "duelist.hpp"
#include <iostream>
using namespace std;
int main() {
MonsterCard *dragon = new MonsterCard("Blue-Eyes White Dragon",
"This legendary dragon is a powerful engine of destruction.", 3000, 2500, 10);
MonsterCard *magician = new... | 39.387755 | 120 | 0.638342 |
f905d68556ea6891fbacf9aa7d32580665bbd957 | 2,194 | cc | C++ | src/hlib/libcpp/os.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | src/hlib/libcpp/os.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | src/hlib/libcpp/os.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | string os_name()
{
#ifdef _WIN32
return "win32";
#elif _WIN64
return "win64";
#elif __APPLE__ || __MACH__ || macintosh || Macintosh
return "macos";
#elif __linux__
return "linux";
#elif __FreeBSD__
return "freebsd";
#elif __unix || __unix__
return "unix";
#elif __ANDR... | 20.12844 | 67 | 0.568368 |
f90bd9d71cd5d5659b11dbb985099333744bbc32 | 3,714 | hpp | C++ | rmvmathtest/profile/Profiler.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | rmvmathtest/profile/Profiler.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | rmvmathtest/profile/Profiler.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | //
// Created by Vitali Kurlovich on 3/22/16.
//
#ifndef RMVECTORMATH_PROFILER_HPP
#define RMVECTORMATH_PROFILER_HPP
#include <vector>
#include <stack>
#include <chrono>
#include "ProfileCase.hpp"
#include <profiler/MathStatistic.hpp>
namespace profiler {
class Profiler {
protected:
std::vector... | 27.511111 | 142 | 0.469575 |
f90e466b4b041fdce6f38dfc35d3732befd0a0d3 | 1,476 | cpp | C++ | Source/source/mob_types/ship_type.cpp | Neocraftz1553/Pikifen | e10e1f9f28d4e5229db64c291a8b2ccbb013b7e2 | [
"MIT"
] | null | null | null | Source/source/mob_types/ship_type.cpp | Neocraftz1553/Pikifen | e10e1f9f28d4e5229db64c291a8b2ccbb013b7e2 | [
"MIT"
] | null | null | null | Source/source/mob_types/ship_type.cpp | Neocraftz1553/Pikifen | e10e1f9f28d4e5229db64c291a8b2ccbb013b7e2 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Andre 'Espyo' Silva 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Ship type class and ship type-related functions.
*/
#... | 26.357143 | 79 | 0.576558 |
f90ecaadb121feefac9c6a25b033eb5aded3fce0 | 3,012 | cpp | C++ | recommendation/pytorch/negative_sampling_cpp/negative_sampling.cpp | mengkai94/training | 2a0aa29e700a33e9d3bf2645d13d89fb525e29fc | [
"Apache-2.0"
] | 567 | 2018-09-13T05:07:49.000Z | 2020-11-23T11:52:11.000Z | recommendation/pytorch/negative_sampling_cpp/negative_sampling.cpp | mengkai94/training | 2a0aa29e700a33e9d3bf2645d13d89fb525e29fc | [
"Apache-2.0"
] | 222 | 2018-09-14T10:15:39.000Z | 2020-11-20T22:21:09.000Z | recommendation/pytorch/negative_sampling_cpp/negative_sampling.cpp | mengkai94/training | 2a0aa29e700a33e9d3bf2645d13d89fb525e29fc | [
"Apache-2.0"
] | 279 | 2018-09-16T12:40:29.000Z | 2020-11-17T14:22:52.000Z | #include <torch/torch.h>
#include <vector>
#include <iostream>
#include <algorithm>
#include <random>
#include <cstdint>
struct NegativeSampler {
NegativeSampler(at::Tensor positives, int n_user, int n_item) :
positives_lists(n_user)
{
std::cout << "C++ PyTorch extension for negative sampling created." << ... | 31.051546 | 109 | 0.598274 |
f90f03929ab2a10aa560ce06d4d83ad7f016ada4 | 1,214 | cpp | C++ | catboost/libs/model/formula_evaluator.cpp | smokarizadeh/catboost | 81848d19d3469d9d5345120bb3c365298a4a9b38 | [
"Apache-2.0"
] | null | null | null | catboost/libs/model/formula_evaluator.cpp | smokarizadeh/catboost | 81848d19d3469d9d5345120bb3c365298a4a9b38 | [
"Apache-2.0"
] | null | null | null | catboost/libs/model/formula_evaluator.cpp | smokarizadeh/catboost | 81848d19d3469d9d5345120bb3c365298a4a9b38 | [
"Apache-2.0"
] | 1 | 2018-08-06T14:13:12.000Z | 2018-08-06T14:13:12.000Z | #include "formula_evaluator.h"
void TFeatureCachedTreeEvaluator::Calc(size_t treeStart, size_t treeEnd, TArrayRef<double> results) const {
CB_ENSURE(results.size() == DocCount * Model.ObliviousTrees.ApproxDimension);
Fill(results.begin(), results.end(), 0.0);
TVector<TCalcerIndexType> indexesVec(BlockSize... | 31.128205 | 107 | 0.490939 |
f9104cde9716dac9c7aa4f972ebd0fdc73f1234d | 989 | cc | C++ | src/blockchain.cc | olistic/simplechainpp | 23bbd7836d7a18d0ecfda2e2953a85eded88cc07 | [
"MIT"
] | 2 | 2018-04-04T18:15:06.000Z | 2018-05-22T09:04:20.000Z | src/blockchain.cc | olistic/simplechainpp | 23bbd7836d7a18d0ecfda2e2953a85eded88cc07 | [
"MIT"
] | null | null | null | src/blockchain.cc | olistic/simplechainpp | 23bbd7836d7a18d0ecfda2e2953a85eded88cc07 | [
"MIT"
] | 1 | 2020-11-01T02:54:08.000Z | 2020-11-01T02:54:08.000Z | #include "blockchain.h"
#include "block.h"
namespace simplechain {
Blockchain::Blockchain(int difficulty) {
difficulty_ = difficulty;
last_block_ = genesis_block_;
}
int Blockchain::difficulty() const { return difficulty_; }
Block* Blockchain::last_block() const { return last_block_; }
void Blockchain::AddBlo... | 20.183673 | 80 | 0.677452 |
f910671bb18dacb21a3fee701ad67ffed76d4d38 | 5,037 | cpp | C++ | Source/SIMPLib/Common/INamedObject.cpp | mhitzem/SIMPL | cd8a58f8d955d232ea039121cc5286cc9545c7a6 | [
"NRL"
] | 3 | 2018-01-18T18:27:02.000Z | 2021-06-13T06:10:52.000Z | Source/SIMPLib/Common/INamedObject.cpp | mhitzem/SIMPL | cd8a58f8d955d232ea039121cc5286cc9545c7a6 | [
"NRL"
] | 211 | 2016-07-27T12:18:16.000Z | 2021-11-02T13:42:11.000Z | Source/SIMPLib/Common/INamedObject.cpp | mhitzem/SIMPL | cd8a58f8d955d232ea039121cc5286cc9545c7a6 | [
"NRL"
] | 23 | 2016-02-15T21:23:47.000Z | 2021-08-11T15:35:24.000Z | /* ============================================================================
* Copyright (c) 2019 BlueQuartz Software, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistribut... | 35.723404 | 90 | 0.475084 |
f911468765228b7d1ecd797f927a2b1e5ad48ac8 | 3,102 | hpp | C++ | drivers/inc/reg.hpp | scatty101/imxrt1062 | 4fb991c138d16e02ed8ea58b096be2034c9e5063 | [
"MIT"
] | 2 | 2021-02-01T21:21:52.000Z | 2021-02-07T07:19:18.000Z | drivers/inc/reg.hpp | scatty101/imxrt1062 | 4fb991c138d16e02ed8ea58b096be2034c9e5063 | [
"MIT"
] | null | null | null | drivers/inc/reg.hpp | scatty101/imxrt1062 | 4fb991c138d16e02ed8ea58b096be2034c9e5063 | [
"MIT"
] | 1 | 2021-02-01T21:25:19.000Z | 2021-02-01T21:25:19.000Z | #ifndef IMXRT_DRIVERS_REG_HPP_
#define IMXRT_DRIVERS_REG_HPP_
#include <imxrt1062/hardware.hpp>
namespace imxdrivers
{
/**
* @brief DSB
*
*/
static inline void data_sync()
{
__DSB();
}
/**
* @brief Sometimes IRQ are executed so fast, that irq flag isn't cleared until ... | 25.636364 | 132 | 0.60735 |
f9132d69cfb73a32a1efd2339e5e329a8960138a | 3,396 | cpp | C++ | 2_shuffleDataSet.cpp | junteudjio/TrafficSignsRecognitionOpenCv | 6c3b617fc4ee0b427b4570fb43371e66029e08a4 | [
"Unlicense"
] | 4 | 2018-05-07T01:08:23.000Z | 2021-12-16T01:12:11.000Z | 2_shuffleDataSet.cpp | junteudjio/TrafficSignsRecognitionOpenCv | 6c3b617fc4ee0b427b4570fb43371e66029e08a4 | [
"Unlicense"
] | 1 | 2016-02-29T09:34:26.000Z | 2016-02-29T09:34:26.000Z | 2_shuffleDataSet.cpp | junteudjio/TrafficSignsRecognitionOpenCv | 6c3b617fc4ee0b427b4570fb43371e66029e08a4 | [
"Unlicense"
] | 2 | 2016-02-20T03:03:27.000Z | 2016-06-02T05:16:39.000Z | #include <stdlib.h>
#include "opencv2/opencv.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <string.h>
#include <fstream>
#include <iostream>
using namespace std;
using namespace cv;
#define RESIZED_IMG_DIM 4800
#define RAW_DATA_SET_4800 "dataset4800.txt"
#define SHUFFLE_DATA... | 19.859649 | 145 | 0.651649 |
f9161a0c7752ad4996b90dd7c9ff0793a01177b3 | 319,755 | hpp | C++ | include/alibabacloud/pai_plugin_20220112.hpp | alibabacloud-sdk-cpp/paiplugin-20220112 | 350e03cc56139f270d6ef0eb75b474a79d9ded8d | [
"Apache-2.0"
] | null | null | null | include/alibabacloud/pai_plugin_20220112.hpp | alibabacloud-sdk-cpp/paiplugin-20220112 | 350e03cc56139f270d6ef0eb75b474a79d9ded8d | [
"Apache-2.0"
] | null | null | null | include/alibabacloud/pai_plugin_20220112.hpp | alibabacloud-sdk-cpp/paiplugin-20220112 | 350e03cc56139f270d6ef0eb75b474a79d9ded8d | [
"Apache-2.0"
] | null | null | null | // This file is auto-generated, don't edit it. Thanks.
#ifndef ALIBABACLOUD_PAIPLUGIN20220112_H_
#define ALIBABACLOUD_PAIPLUGIN20220112_H_
#include <alibabacloud/open_api.hpp>
#include <boost/throw_exception.hpp>
#include <darabonba/core.hpp>
#include <darabonba/util.hpp>
#include <iostream>
#include <map>
#include <... | 33.454175 | 199 | 0.615746 |
f916613855148acf4ddb6053fd02d8472bba92ea | 1,924 | cpp | C++ | kdl/schema/resource_type/resource_field.cpp | EvocationGames/libKDL | 90eb2ce71a1545f6e33164230f0e5d6ece0acaa7 | [
"MIT"
] | null | null | null | kdl/schema/resource_type/resource_field.cpp | EvocationGames/libKDL | 90eb2ce71a1545f6e33164230f0e5d6ece0acaa7 | [
"MIT"
] | null | null | null | kdl/schema/resource_type/resource_field.cpp | EvocationGames/libKDL | 90eb2ce71a1545f6e33164230f0e5d6ece0acaa7 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tom Hancocks
//
// 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, publish, ... | 34.357143 | 114 | 0.748441 |
f922029c60842453b1aff0f88adab5004227c320 | 2,135 | cpp | C++ | plugins/notifications/notifier.cpp | boomt1337/nitroshare-desktop | 3ab9eb4075f78cbf2ee0fb82cea66814406a2248 | [
"MIT"
] | 1,460 | 2015-01-31T14:09:18.000Z | 2022-03-24T09:43:19.000Z | plugins/notifications/notifier.cpp | boomt1337/nitroshare-desktop | 3ab9eb4075f78cbf2ee0fb82cea66814406a2248 | [
"MIT"
] | 254 | 2015-01-29T19:58:28.000Z | 2022-03-30T01:00:38.000Z | plugins/notifications/notifier.cpp | boomt1337/nitroshare-desktop | 3ab9eb4075f78cbf2ee0fb82cea66814406a2248 | [
"MIT"
] | 245 | 2015-02-18T16:40:52.000Z | 2022-03-29T18:38:45.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Nathan Osman
*
* 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,... | 35 | 104 | 0.717564 |
f9240d7d91ab4d35253d601837acf6a1707a1799 | 500 | cpp | C++ | lib/stringManipulation/src/string_manipulation.cpp | Xav83/AdventOfCode | 7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5 | [
"MIT"
] | 2 | 2019-11-14T18:11:02.000Z | 2020-01-20T22:40:31.000Z | lib/stringManipulation/src/string_manipulation.cpp | Xav83/AdventOfCode | 7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5 | [
"MIT"
] | null | null | null | lib/stringManipulation/src/string_manipulation.cpp | Xav83/AdventOfCode | 7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5 | [
"MIT"
] | null | null | null | #include <functional>
#include <sstream>
void foreachElementsInStringDelimitedBy(
const std::string &input, const char delimiter,
std::function<void(const std::string &)> callback) {
std::stringstream ss(input);
std::string token;
while (std::getline(ss, token, delimiter)) {
callback(token);
}
}
... | 26.315789 | 71 | 0.688 |
f924414c965b39dcf3af5eabf4ac9a247dbad819 | 31,268 | cpp | C++ | unittests/test.cpp | attcs/TreeNode | 1728cc3a1c605e17c328a27c12de5aa685f80fc1 | [
"MIT"
] | null | null | null | unittests/test.cpp | attcs/TreeNode | 1728cc3a1c605e17c328a27c12de5aa685f80fc1 | [
"MIT"
] | null | null | null | unittests/test.cpp | attcs/TreeNode | 1728cc3a1c605e17c328a27c12de5aa685f80fc1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <memory>
#include "../treenode.h"
#include <vector>
#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
#include <execution>
#endif
struct DbEntity
{
int val = 0;
};
bool operator==(DbEntity const& l, DbEntity const& r)
{
return l.val == r.val;
}
namespac... | 24.428125 | 124 | 0.646444 |
f9244945ecec1e566af7c4149db1742b7f2ee1f7 | 469 | cpp | C++ | lcm.cpp | shu736/First | 034d0326def08fb6b104411dd3b37eb6c1e03eda | [
"MIT"
] | null | null | null | lcm.cpp | shu736/First | 034d0326def08fb6b104411dd3b37eb6c1e03eda | [
"MIT"
] | null | null | null | lcm.cpp | shu736/First | 034d0326def08fb6b104411dd3b37eb6c1e03eda | [
"MIT"
] | null | null | null | #include <stdio.h>
int lcm(int, int);
int main()
{
int a, b, result;
int prime[100];
printf("Enter two numbers: ");
scanf("%d%d", &a, &b);
result = lcm(a, b);
printf("The LCM of %d and %d is %d\n", a, b, result);
return 0;
}
int lcm(int a, int b)
{
static int comm... | 16.75 | 58 | 0.460554 |
234d42fdfc563de21241340a582b66d85721babd | 28,425 | cpp | C++ | src/j_plot.cpp | tsyw/JoSIM | c1dc2a127787a5f5f6750ef84768f30abee8dcae | [
"MIT"
] | 1 | 2020-07-25T12:15:30.000Z | 2020-07-25T12:15:30.000Z | src/j_plot.cpp | tsyw/JoSIM | c1dc2a127787a5f5f6750ef84768f30abee8dcae | [
"MIT"
] | null | null | null | src/j_plot.cpp | tsyw/JoSIM | c1dc2a127787a5f5f6750ef84768f30abee8dcae | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Johannes Delport
// This code is licensed under MIT license (see LICENSE for details)
#include "j_plot.hpp"
#ifdef USING_MATPLOTLIB
namespace plt = matplotlibcpp;
#endif
/*
Determine traces to plot from the control part of the main circuit
*/
void traces_to_plot(InputFile& iFile, std::vec... | 41.07659 | 161 | 0.552366 |
234fdceea4773f1e33084b230737b0ffba9d8adf | 4,431 | cpp | C++ | src/cui-1.0.4/MBA/MBA.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T00:58:45.000Z | 2021-07-21T00:58:45.000Z | src/cui-1.0.4/MBA/MBA.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | null | null | null | src/cui-1.0.4/MBA/MBA.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | null | null | null | #include <windows.h>
#include <tchar.h>
#include <crass_types.h>
#include <acui.h>
#include <cui.h>
#include <package.h>
#include <resource.h>
#include <cui_error.h>
#include <stdio.h>
/* 接口数据结构: 表示cui插件的一般信息 */
struct acui_information MBA_cui_information = {
_T("飛翔システム"), /* copyright */
_T(""), /* system */
... | 23.822581 | 80 | 0.693297 |
23517d313abc400a073f8b524b70ab131eb930f0 | 2,585 | cpp | C++ | PLUTO/Src/Chombo/AMRLevelPlutoFactory.cpp | Mixpap/JetCloudSim | bc44ca3eb3956b87a4390428d897099a92a8b9b2 | [
"MIT"
] | 1 | 2018-11-21T20:32:36.000Z | 2018-11-21T20:32:36.000Z | PLUTO/Src/Chombo/AMRLevelPlutoFactory.cpp | Mixpap/JetCloudSim | bc44ca3eb3956b87a4390428d897099a92a8b9b2 | [
"MIT"
] | 3 | 2018-10-08T22:20:49.000Z | 2018-10-19T14:00:44.000Z | PLUTO/Src/Chombo/AMRLevelPlutoFactory.cpp | Mixpap/JetCloudSim | bc44ca3eb3956b87a4390428d897099a92a8b9b2 | [
"MIT"
] | 1 | 2019-06-26T05:37:43.000Z | 2019-06-26T05:37:43.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "AMRLevelPlutoFactory.H"
#include "NamespaceHeader.H"
AMRLevelPlutoFacto... | 25.594059 | 81 | 0.591876 |
2351dd801afdf4dd24e9dec216d419dd3d8c8b83 | 11,486 | cpp | C++ | src/stacker_system.cpp | scullion/stacker | ba9241c85962f210ea37784ebee3072dac63df46 | [
"MIT"
] | null | null | null | src/stacker_system.cpp | scullion/stacker | ba9241c85962f210ea37784ebee3072dac63df46 | [
"MIT"
] | null | null | null | src/stacker_system.cpp | scullion/stacker | ba9241c85962f210ea37784ebee3072dac63df46 | [
"MIT"
] | null | null | null | #include "stacker_system.h"
#include "stacker_shared.h"
#include "stacker_attribute_buffer.h"
#include "stacker_util.h"
#include "stacker_platform.h"
#include "stacker_document.h"
#include "stacker_layer.h"
namespace stkr {
static void make_font_descriptor(LogicalFont *descriptor, const char *face,
unsigned size, u... | 38.673401 | 125 | 0.765715 |
2355492847a974f82b3e39e3ad68c1326d4c7bdf | 407 | cpp | C++ | src/format.cpp | nalinraut/System-Monitor | cd51a040455bad43d835606fb3013b35a40f4fc4 | [
"MIT"
] | null | null | null | src/format.cpp | nalinraut/System-Monitor | cd51a040455bad43d835606fb3013b35a40f4fc4 | [
"MIT"
] | null | null | null | src/format.cpp | nalinraut/System-Monitor | cd51a040455bad43d835606fb3013b35a40f4fc4 | [
"MIT"
] | null | null | null | #include <string>
#include "format.h"
using std::string;
string Format::ElapsedTime(long int seconds) {
long int HH{seconds/3600};
long int H_re{seconds%3600};
long int MM{H_re/60};
long int SS{H_re%60};
string HH_str{std::to_string(HH)};
string MM_str{std::to_string(MM)};
string SS_str{... | 23.941176 | 47 | 0.653563 |
235572b54424b5bf201c86257542fb05e43cff74 | 4,134 | cpp | C++ | 19f/qual/prime/prime.cpp | willzhang05/icpc-practice | 42f1fde0e7e26ba44d433688393db71e02b043b7 | [
"MIT"
] | null | null | null | 19f/qual/prime/prime.cpp | willzhang05/icpc-practice | 42f1fde0e7e26ba44d433688393db71e02b043b7 | [
"MIT"
] | null | null | null | 19f/qual/prime/prime.cpp | willzhang05/icpc-practice | 42f1fde0e7e26ba44d433688393db71e02b043b7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
std::unordered_set<int> PRIMES = {
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89, 97, 1... | 52.329114 | 100 | 0.516933 |
2355c6b669e088ed141f637d36ec5804b5e750df | 1,510 | hh | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/User/Headers/EnableView.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/User/Headers/EnableView.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/User/Headers/EnableView.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
#ifndef __EnableView__
#define __EnableView__
/*
* $Header: /fuji/lewis/RCS/EnableView.hh,v 1.1 1992/06/20 17:33:49 lewis Exp $
*
* Description:
*
*
* TODO:
*
*
* Notes:
*
* Changes:
* $Log: EnableView.hh,v $
* Revision 1.1 1992/0... | 19.358974 | 81 | 0.570861 |
2355c6bae8ee711ddb14deac4d4970de16e1fc9e | 2,686 | cpp | C++ | problemes/probleme2xx/probleme280.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | 6 | 2015-10-13T17:07:21.000Z | 2018-05-08T11:50:22.000Z | problemes/probleme2xx/probleme280.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | problemes/probleme2xx/probleme280.cpp | ZongoForSpeed/ProjectEuler | 2e2d45f984d48a1da8275886c976f909a0de94ce | [
"MIT"
] | null | null | null | #include "problemes.h"
#include "arithmetique.h"
#include "matrice.h"
#include <bitset>
typedef unsigned long long nombre;
typedef std::vector<nombre> vecteur;
namespace {
long double algorithme(size_t sx, size_t sy, const std::bitset<5> &haut, const std::bitset<5> &bas) {
static std::map<std::tuple<size... | 34.435897 | 119 | 0.513403 |
235d71dcfee4547fcfa496000990df23095f64fe | 3,345 | cpp | C++ | RhythmGame/src/main/cpp/Game.cpp | Jacks0N23/trying_Google_Oboe | 999b2a3656daec2626be5ac253f0e4f002a401f5 | [
"Apache-2.0"
] | null | null | null | RhythmGame/src/main/cpp/Game.cpp | Jacks0N23/trying_Google_Oboe | 999b2a3656daec2626be5ac253f0e4f002a401f5 | [
"Apache-2.0"
] | null | null | null | RhythmGame/src/main/cpp/Game.cpp | Jacks0N23/trying_Google_Oboe | 999b2a3656daec2626be5ac253f0e4f002a401f5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30.688073 | 100 | 0.703139 |
235d7868e431534664a820838212d93d28440767 | 7,370 | cpp | C++ | PhysicsEngine/ModulePhysics.cpp | bielrabasa/PhysicsEngine | ef3bc64c419a6da4ae234873e3d9da8c196197ec | [
"MIT"
] | 1 | 2021-12-27T15:12:27.000Z | 2021-12-27T15:12:27.000Z | PhysicsEngine/ModulePhysics.cpp | bielrabasa/PhysicsEngine | ef3bc64c419a6da4ae234873e3d9da8c196197ec | [
"MIT"
] | null | null | null | PhysicsEngine/ModulePhysics.cpp | bielrabasa/PhysicsEngine | ef3bc64c419a6da4ae234873e3d9da8c196197ec | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePhysics.h"
#include "math.h"
ModulePhysics::ModulePhysics(Application* app, bool start_enabled) : Module(app, start_enabled)
{
debug = true;
}
ModulePhysics::~ModulePhysics()
{
}
bool ModulePhysics::Start()
{
LOG("Creating Physics 2D environment");
can... | 30.580913 | 131 | 0.650204 |
235e62563051f8d69068c588855edf82d894b371 | 1,186 | cpp | C++ | graph-theory/diameter_tree.cpp | Swaraj-Deep/data-structures-algorithms | 0ffef6806a3e0348b56e685c73857c99341a39d8 | [
"MIT"
] | 2 | 2020-03-27T13:39:52.000Z | 2020-03-29T00:14:27.000Z | graph-theory/diameter_tree.cpp | Swaraj-Deep/data-structures | 0ffef6806a3e0348b56e685c73857c99341a39d8 | [
"MIT"
] | null | null | null | graph-theory/diameter_tree.cpp | Swaraj-Deep/data-structures | 0ffef6806a3e0348b56e685c73857c99341a39d8 | [
"MIT"
] | null | null | null | /*
***************************
* *
* Author: Swaraj Deep *
* *
***************************
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
void dfs_search(vector<vector<int>> &tree, vector<bool> &visited, int vertex, int dist, int... | 26.355556 | 117 | 0.572513 |
2360490613d578811f9ae04a22cea2c5c4490d44 | 5,267 | cxx | C++ | src/core/SessionWatchdogContext.cxx | Dynatrace/openkit-native | e072599196ea9086a2f9cfe67bae701d7d470fc0 | [
"Apache-2.0"
] | 8 | 2018-09-18T15:33:51.000Z | 2022-02-20T12:19:03.000Z | src/core/SessionWatchdogContext.cxx | Dynatrace/openkit-native | e072599196ea9086a2f9cfe67bae701d7d470fc0 | [
"Apache-2.0"
] | 2 | 2018-09-19T07:15:36.000Z | 2019-03-14T17:16:19.000Z | src/core/SessionWatchdogContext.cxx | Dynatrace/openkit-native | e072599196ea9086a2f9cfe67bae701d7d470fc0 | [
"Apache-2.0"
] | 15 | 2018-09-17T07:37:06.000Z | 2020-10-02T11:47:47.000Z | /**
* Copyright 2018-2021 Dynatrace LLC
*
* 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 ag... | 31.538922 | 145 | 0.748813 |
236052da1cee9c60bc77d7d85ec7c9de2059bfe4 | 880 | hpp | C++ | src/Structures/SymbolBBox.hpp | Werni2A/O2CP | a20c0102e1c5aca35874cc6bc89f083c66dfeb0e | [
"MIT"
] | 5 | 2021-10-01T06:48:21.000Z | 2021-12-23T11:14:41.000Z | src/Structures/SymbolBBox.hpp | Werni2A/O2CP | a20c0102e1c5aca35874cc6bc89f083c66dfeb0e | [
"MIT"
] | 7 | 2021-09-26T19:53:53.000Z | 2022-01-06T13:04:03.000Z | src/Structures/SymbolBBox.hpp | Werni2A/O2CP | a20c0102e1c5aca35874cc6bc89f083c66dfeb0e | [
"MIT"
] | 1 | 2022-01-05T19:24:58.000Z | 2022-01-05T19:24:58.000Z | #ifndef SYMBOLBBOX_H
#define SYMBOLBBOX_H
#include <cstdint>
#include <iostream>
#include <ostream>
#include <string>
#include "../General.hpp"
struct SymbolBBox
{
int32_t x1;
int32_t y1;
int32_t x2;
int32_t y2;
};
[[maybe_unused]]
static std::string to_string(const SymbolBBox& aObj)
{
std::... | 18.723404 | 80 | 0.617045 |
23609737f9842ba0dbf84900221ba099a8bcf25a | 7,913 | cpp | C++ | src/kvstore/StatisticStore.cpp | MMyheart/nebula1.0 | e39fa11b88d5495e4d13cae3c14f39456b7b0629 | [
"Apache-2.0"
] | null | null | null | src/kvstore/StatisticStore.cpp | MMyheart/nebula1.0 | e39fa11b88d5495e4d13cae3c14f39456b7b0629 | [
"Apache-2.0"
] | null | null | null | src/kvstore/StatisticStore.cpp | MMyheart/nebula1.0 | e39fa11b88d5495e4d13cae3c14f39456b7b0629 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "kvstore/StatisticStore.h"
#include <rocksdb/convenience.h>
#include "base/Base.h"
#include "fs/FileUtils.h"
#i... | 35.80543 | 100 | 0.614558 |
23625249e60afe425625fa27e472e0f1fd16cf6e | 6,196 | cpp | C++ | ui-qt/Pretreatment/GrayHistogram/Roi/LabelGrayHistogram.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 1 | 2017-12-28T08:08:02.000Z | 2017-12-28T08:08:02.000Z | ui-qt/Pretreatment/GrayHistogram/Roi/LabelGrayHistogram.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | null | null | null | ui-qt/Pretreatment/GrayHistogram/Roi/LabelGrayHistogram.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 3 | 2017-12-28T08:08:05.000Z | 2021-11-12T07:59:13.000Z |
#include "LabelGrayHistogram.h"
#include <qdebug.h>
#include <QPen>
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
#define LINEWIDTH 30
LabelGrayHistogram::LabelGrayHistogram(QWidget *parent) : QLabel(parent)
{
m_max =100;
m_mode = -1;
for(int i=0; i<2560;i++)
{
m_grade[... | 27.784753 | 95 | 0.589413 |
2367f31d4ca3bf43363e4d2c5415ded954b3c0b7 | 21,908 | cxx | C++ | StRoot/Stl3Util/gl3/gl3Conductor.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/Stl3Util/gl3/gl3Conductor.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/Stl3Util/gl3/gl3Conductor.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | //:>------------------------------------------------------------------
//: FILE: gl3Conductor.cc
//: HISTORY:
//: 1 feb 2000 version 1.00
//: 6 jul 2000 add St_l3_Coordinate_Transformer
//: 27 jul 2000 add print timing
//:<--------------------------------------------------------... | 28.195624 | 131 | 0.486169 |
236ad59187e5f3802e205398aece605a869c9eb4 | 530 | cpp | C++ | cpp/src/library.cpp | vibhatha/mycythonlib | 38db78636646b5a14c605556ae561261dc425c8e | [
"Apache-2.0"
] | null | null | null | cpp/src/library.cpp | vibhatha/mycythonlib | 38db78636646b5a14c605556ae561261dc425c8e | [
"Apache-2.0"
] | null | null | null | cpp/src/library.cpp | vibhatha/mycythonlib | 38db78636646b5a14c605556ae561261dc425c8e | [
"Apache-2.0"
] | null | null | null | //
// Created by vibhatha on 3/19/20.
//
#include "../include/library.h"
#include "iostream"
using namespace std;
Library::Library() {
}
void Library::c_multiply(double *array, double multiplier, int m) {
int i, j ;
int index = 0 ;
for (i = 0; i < m; i++) {
array[index] = array[index] *... | 16.060606 | 67 | 0.532075 |
236ae6d7f99c44649c72258be304280ce3c1dadb | 2,025 | cpp | C++ | SAEEngineCore/submodules/object/tests/build_test/test.cpp | SAEEngine/SAEEngineCore | bede6c973caf7c4526ac5539ec2c9917139f2067 | [
"MIT"
] | 2 | 2020-10-31T09:59:36.000Z | 2020-11-01T04:22:56.000Z | SAEEngineCore/submodules/object/tests/build_test/test.cpp | SAEEngine/SAEEngineCore | bede6c973caf7c4526ac5539ec2c9917139f2067 | [
"MIT"
] | null | null | null | SAEEngineCore/submodules/object/tests/build_test/test.cpp | SAEEngine/SAEEngineCore | bede6c973caf7c4526ac5539ec2c9917139f2067 | [
"MIT"
] | null | null | null | /*
Return GOOD_TEST (0) if the test was passed.
Return anything other than GOOD_TEST (0) if the test was failed.
*/
// Common standard library headers
#include <cassert>
/**
* @brief Return this from main if the test was passsed.
*/
constexpr static inline int GOOD_TEST = 0;
// Include the headers you need for t... | 22.252747 | 95 | 0.669136 |
2370c744e4e0262381f18133e5f777dfa220f054 | 12,069 | cpp | C++ | classes/CSocket.cpp | clockworkengineer/Antikythera_mechanism | 572dc5c83303548134adf8325f77c795c02481f2 | [
"MIT"
] | 1 | 2021-03-04T07:04:50.000Z | 2021-03-04T07:04:50.000Z | classes/CSocket.cpp | clockworkengineer/Antikythera_mechanism | 572dc5c83303548134adf8325f77c795c02481f2 | [
"MIT"
] | null | null | null | classes/CSocket.cpp | clockworkengineer/Antikythera_mechanism | 572dc5c83303548134adf8325f77c795c02481f2 | [
"MIT"
] | 1 | 2021-11-29T08:24:52.000Z | 2021-11-29T08:24:52.000Z | //
// Class: CSocket
//
// Description: Class for connecting to / listening for connections from remote peers
// and the reading/writing of data using sockets. It supports both plain and TLS/SSL
// connections and is implemented using BOOST:ASIO synchronous API calls. At present it
// only has basic TLS/SSL support an... | 30.946154 | 128 | 0.50029 |
2372772d8a2edf2c0a7646a0368031bad79ae542 | 3,752 | cpp | C++ | SCLT/Objects/Material/MaterialBRDF.cpp | chicio/Multispectral-Ray-tracing | ea5b399770eddd1927aae8a8ae4640dead42c48c | [
"MIT"
] | 95 | 2016-05-05T10:46:49.000Z | 2021-12-20T12:51:41.000Z | SCLT/Objects/Material/MaterialBRDF.cpp | chicio/Multispectral-Ray-tracing | ea5b399770eddd1927aae8a8ae4640dead42c48c | [
"MIT"
] | 1 | 2021-12-06T03:21:32.000Z | 2021-12-06T03:21:32.000Z | SCLT/Objects/Material/MaterialBRDF.cpp | chicio/Multispectral-Ray-tracing | ea5b399770eddd1927aae8a8ae4640dead42c48c | [
"MIT"
] | 8 | 2017-03-12T03:04:08.000Z | 2022-03-17T01:27:41.000Z | //
// MaterialBRDF.cpp
// Spectral Clara Lux tracer
//
// Created by Fabrizio Duroni on 23/11/15.
// Copyright © 2015 Fabrizio Duroni. All rights reserved.
//
#include "pch.h"
#include "MaterialBRDF.hpp"
#include "Illuminant.hpp"
Spectrum<constant::spectrumSamples> MaterialBRDF::f(const Vector3D& wi,
... | 32.344828 | 110 | 0.611141 |
2373bfefa0e0944e7f73099ae42a8648da18b3b6 | 2,085 | cpp | C++ | src/Log.cpp | wibbe/zum-cpp | 0fc753cac5f577eb56eaa9e8330f466b2cdaa38c | [
"MIT"
] | null | null | null | src/Log.cpp | wibbe/zum-cpp | 0fc753cac5f577eb56eaa9e8330f466b2cdaa38c | [
"MIT"
] | null | null | null | src/Log.cpp | wibbe/zum-cpp | 0fc753cac5f577eb56eaa9e8330f466b2cdaa38c | [
"MIT"
] | null | null | null |
#include "Log.h"
#include "bx/platform.h"
#include <cstdlib>
#include <cstdio>
static std::string logFile()
{
#if BX_PLATFORM_LINUX || BX_PLATFORM_OSX
static const std::string LOG_FILE = "/.zumlog";
const char * home = getenv("HOME");
if (home)
return std::string(home) + LOG_FILE;
else
return "~" + ... | 18.289474 | 55 | 0.62446 |
2374eece4b5cb807686524d494c2f570d888704c | 7,577 | hpp | C++ | include/yamail/resource_pool/async/detail/queue.hpp | JonasProgrammer/resource_pool | 5b8e0d542e40805b187af7b94770e95f292379c9 | [
"MIT"
] | 17 | 2018-12-02T10:16:37.000Z | 2022-02-25T22:58:35.000Z | include/yamail/resource_pool/async/detail/queue.hpp | JonasProgrammer/resource_pool | 5b8e0d542e40805b187af7b94770e95f292379c9 | [
"MIT"
] | 27 | 2017-12-25T14:54:38.000Z | 2021-01-28T12:30:10.000Z | include/yamail/resource_pool/async/detail/queue.hpp | JonasProgrammer/resource_pool | 5b8e0d542e40805b187af7b94770e95f292379c9 | [
"MIT"
] | 5 | 2017-12-25T14:41:52.000Z | 2022-03-26T06:22:22.000Z | #ifndef YAMAIL_RESOURCE_POOL_ASYNC_DETAIL_QUEUE_HPP
#define YAMAIL_RESOURCE_POOL_ASYNC_DETAIL_QUEUE_HPP
#include <yamail/resource_pool/error.hpp>
#include <yamail/resource_pool/time_traits.hpp>
#include <boost/asio/executor.hpp>
#include <boost/asio/post.hpp>
#include <algorithm>
#include <list>
#include <map>
#incl... | 33.526549 | 115 | 0.700937 |
2378fd7fec6d7510bbff013b9a0ea4b2b7f215bd | 268 | cpp | C++ | src/portaudiohandler.cpp | aparks5/synthcastle | ebb542d014c87a11a83b9e212668eca75a333fbf | [
"MIT"
] | 2 | 2021-12-20T03:20:05.000Z | 2021-12-28T16:15:20.000Z | src/portaudiohandler.cpp | aparks5/synthcastle | ebb542d014c87a11a83b9e212668eca75a333fbf | [
"MIT"
] | 69 | 2021-08-30T13:09:01.000Z | 2022-01-15T17:41:40.000Z | src/portaudiohandler.cpp | aparks5/synthcastle | ebb542d014c87a11a83b9e212668eca75a333fbf | [
"MIT"
] | null | null | null | /// Copyright(c) 2021. Anthony Parks. All rights reserved.
#include "portaudiohandler.h"
PortAudioHandler::PortAudioHandler()
: m_result(Pa_Initialize())
{
}
PortAudioHandler::~PortAudioHandler()
{
if (m_result == paNoError)
{
Pa_Terminate();
}
} | 17.866667 | 59 | 0.682836 |
2379857d0af4607a620b76853af3c51e2d41dcac | 1,173 | cpp | C++ | Source/Trickery/Test.cpp | D4rk1n/ModernProblemsModernSolutions | bb8f96f9701fe3eee3b5a513b42575a3d0075bb4 | [
"Apache-2.0"
] | null | null | null | Source/Trickery/Test.cpp | D4rk1n/ModernProblemsModernSolutions | bb8f96f9701fe3eee3b5a513b42575a3d0075bb4 | [
"Apache-2.0"
] | null | null | null | Source/Trickery/Test.cpp | D4rk1n/ModernProblemsModernSolutions | bb8f96f9701fe3eee3b5a513b42575a3d0075bb4 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Test.h"
// Sets default values for this component's properties
UTest::UTest()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performa... | 24.4375 | 121 | 0.700767 |
237cc3acae3061fd145e90a3004595c0a35619b0 | 354 | hpp | C++ | include/toy/gadget/IntToHexChar.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | include/toy/gadget/IntToHexChar.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | include/toy/gadget/IntToHexChar.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z |
#pragma once
#include "toy/Standard.hpp"
#include "toy/gadget/Export.hpp"
namespace toy{
namespace gadget{
// 1 -> '1'
// 2 -> '2'
// 11 -> 'b'
// 15 -> 'f'
// 16 -> [error]
TOY_API_GADGET extern char IntToHexChar(int);
// 1 -> '1'
// 2 -> '2'
// 11 -> 'B'
// 15 -> 'F'
// 16 -> [error]
TOY_API_GADGET extern ch... | 14.16 | 53 | 0.573446 |
237fc3ac31b5b7e05509b8d16e2810e96459d81d | 278 | hpp | C++ | package/config/config/config_config.hpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | null | null | null | package/config/config/config_config.hpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | 5 | 2019-12-06T01:01:01.000Z | 2021-04-20T21:16:34.000Z | package/config/config/config_config.hpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | null | null | null | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2018
//
// Copyright: See COPYING file that comes with this distribution
//
#pragma once
namespace wfc{ namespace core{
struct config_config
{
bool reload_sighup = false;
time_t reload_changed_ms = 0;
};
}}
| 15.444444 | 64 | 0.715827 |
23814363269462e69bd0dc675502639a6f45b87f | 6,427 | cc | C++ | chrome/browser/sync/engine/build_commit_command.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | chrome/browser/sync/engine/build_commit_command.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/sync/engine/build_commit_command.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/engine/build_commit_command.h"
#include <set>
#include <string>
#include <vector>
#include "chrome/browser/sync/e... | 41.464516 | 80 | 0.715419 |
238147189c29475ac43a113d5e97782feee7d072 | 345 | cpp | C++ | OOP Lab/Lab9/LE/LE9_9.cpp | HANS-2002/Jab-sab-aapki-le-rahe-ho-tab-aap-bhi-kuch-lelo | 8a9d67153797e9a6d438151c70f6726a50079df4 | [
"MIT"
] | 2 | 2021-09-18T10:50:20.000Z | 2021-11-12T13:19:45.000Z | OOP Lab/Lab9/LE/LE9_9.cpp | HANS-2002/Jab-sab-aapki-le-rahe-ho-tab-aap-bhi-kuch-lelo | 8a9d67153797e9a6d438151c70f6726a50079df4 | [
"MIT"
] | null | null | null | OOP Lab/Lab9/LE/LE9_9.cpp | HANS-2002/Jab-sab-aapki-le-rahe-ho-tab-aap-bhi-kuch-lelo | 8a9d67153797e9a6d438151c70f6726a50079df4 | [
"MIT"
] | 3 | 2021-09-10T14:08:12.000Z | 2021-09-18T10:52:09.000Z | // (Class Template) Write a program to explain class template by creating a template T for a class
// named pair having two data members of type T which are inputted by a constructor and a
// member function get-max() return the greatest of two numbers to main. Note: the value of T
// depends upon the data type specifi... | 86.25 | 98 | 0.776812 |
2384b259525d7b7da51ab90093316c169352b226 | 15,767 | cpp | C++ | newbase/NFmiRect.cpp | fmidev/smartmet-library-newbase | 12d93660c06e3c66a039ea75530bd9ca5daf7ab8 | [
"MIT"
] | null | null | null | newbase/NFmiRect.cpp | fmidev/smartmet-library-newbase | 12d93660c06e3c66a039ea75530bd9ca5daf7ab8 | [
"MIT"
] | 7 | 2017-01-17T10:46:33.000Z | 2019-11-21T07:50:17.000Z | newbase/NFmiRect.cpp | fmidev/smartmet-library-newbase | 12d93660c06e3c66a039ea75530bd9ca5daf7ab8 | [
"MIT"
] | 2 | 2017-01-17T07:33:28.000Z | 2018-04-26T07:10:23.000Z | // ======================================================================
/*!
* \file NFmiRect.cpp
* \brief Implementation of class NFmiRect
*/
// ======================================================================
/*!
* \class NFmiRect
*
* Undocumented
*
*/
// ===============================================... | 26.814626 | 99 | 0.490328 |
2385728ed6e584fa445b30a6a16b3161dcf5820b | 3,542 | cpp | C++ | scaffold/Setting.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | null | null | null | scaffold/Setting.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | null | null | null | scaffold/Setting.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | 2 | 2019-08-23T02:31:42.000Z | 2020-05-02T00:12:36.000Z | /*-
* Copyright (c) 2019 TAO Zhijiang<taozhijiang@gmail.com>
*
* Licensed under the BSD-3-Clause license, see LICENSE for full information.
*
*/
#include <sstream>
#include <iostream>
#include <scaffold/Setting.h>
#include <scaffold/Status.h>
namespace roo {
bool Setting::init(std::string file) {
cfg_fil... | 25.120567 | 91 | 0.601073 |
23875d96f499e5a6f87d8a846965a7aab0aeabaa | 1,736 | cxx | C++ | HTRunInfo/HTDAQStackInfo.cxx | dellaquilamaster/RIBbit2 | 5e792724676a7b84e19e9512b2d6295287f81a4e | [
"Unlicense"
] | null | null | null | HTRunInfo/HTDAQStackInfo.cxx | dellaquilamaster/RIBbit2 | 5e792724676a7b84e19e9512b2d6295287f81a4e | [
"Unlicense"
] | null | null | null | HTRunInfo/HTDAQStackInfo.cxx | dellaquilamaster/RIBbit2 | 5e792724676a7b84e19e9512b2d6295287f81a4e | [
"Unlicense"
] | 1 | 2019-05-03T17:50:21.000Z | 2019-05-03T17:50:21.000Z | #include <HTDAQStackInfo.h>
//________________________________________________
HTDAQStackInfo::HTDAQStackInfo(const char * name, int stackID) :
fNModules(0),
fStackName(name),
fStackID(stackID)
{}
//________________________________________________
HTDAQStackInfo::~HTDAQStackInfo()
{
Clear();
}
//__________________... | 22.545455 | 66 | 0.801843 |
238de8358cb0938b34eacfe1305a0bb6b5442982 | 3,202 | cpp | C++ | unit_tests/core/math/euler_angles/src/unit_euler_angles.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 76 | 2018-02-20T11:30:52.000Z | 2022-03-31T12:45:06.000Z | unit_tests/core/math/euler_angles/src/unit_euler_angles.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 27 | 2018-11-20T14:32:49.000Z | 2021-11-24T15:26:45.000Z | unit_tests/core/math/euler_angles/src/unit_euler_angles.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 24 | 2018-02-21T01:45:26.000Z | 2022-03-07T07:06:49.000Z | //
// OpenTissue, A toolbox for physical based simulation and animation.
// Copyright (C) 2007 Department of Computer Science, University of Copenhagen
//
#include <OpenTissue/configuration.h>
#include <OpenTissue/core/math/math_euler_angles.h>
#define BOOST_AUTO_TEST_MAIN
#include <OpenTissue/utility/utility_push_bo... | 27.367521 | 84 | 0.67614 |
2390b9de6c1a931be7e506b913688dfde1b290ed | 902 | cpp | C++ | Recover Binary Search Tree.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Recover Binary Search Tree.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 1 | 2021-10-01T18:00:09.000Z | 2021-10-01T18:00:09.000Z | Recover Binary Search Tree.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 25.771429 | 93 | 0.543237 |
2390ce9b12915def58828d146a76a85e540b6710 | 136,156 | cc | C++ | firmware/src/shared/Menu.cc | togetherPeter/Sailfish-G3Firmware3 | af5ffb1648825e03563c3c488c4d45685b957960 | [
"AAL"
] | null | null | null | firmware/src/shared/Menu.cc | togetherPeter/Sailfish-G3Firmware3 | af5ffb1648825e03563c3c488c4d45685b957960 | [
"AAL"
] | null | null | null | firmware/src/shared/Menu.cc | togetherPeter/Sailfish-G3Firmware3 | af5ffb1648825e03563c3c488c4d45685b957960 | [
"AAL"
] | null | null | null | // Future things that could be consolidated into 1 to save code space when required:
//
// Combined lcd.clear() and lcd.setCursor(0, 0) -> lcd.clearHomeCursor(): savings 184 bytes
// lcd.setCursor(0, r) --> lcd.setRow(r): savings 162 bytes
//
// ValueSetScreen
// BuzzerSetRepeatsMode
// ABPCopiesSetScreen
#include "Co... | 28.864957 | 153 | 0.699448 |
2391143015ee1a186b38b61808b1634761594d42 | 405 | cpp | C++ | Palindrome.cpp | nishijjain/cpp-codes | 4b179e0531fcd91161486e0157596b8727ad562d | [
"MIT"
] | null | null | null | Palindrome.cpp | nishijjain/cpp-codes | 4b179e0531fcd91161486e0157596b8727ad562d | [
"MIT"
] | null | null | null | Palindrome.cpp | nishijjain/cpp-codes | 4b179e0531fcd91161486e0157596b8727ad562d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n, num, digit,r=0;
cout<<"Enter the number : ";
cin>>num;
n = num;
while(num != 0) {
digit = num%10;
r = (r*10) + digit;
num = num/10;
}
if(n == r)
cout<<"The given number is a palindrome number";
... | 21.315789 | 60 | 0.516049 |
23930b18119937fc7644d72e096d087022e91ab1 | 864 | cpp | C++ | src/gfxtk/Buffer.cpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | src/gfxtk/Buffer.cpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | src/gfxtk/Buffer.cpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | #include "Buffer.hpp"
#ifdef GFXTK_GRAPHICS_BACKEND_VULKAN
#include <gfxtk/backend/vulkan/Buffer.hpp>
#elif GFXTK_GRAPHICS_BACKEND_METAL
#include <gfxtk/backend/metal/Buffer.hpp>
#else
#error target OS is not supported by any existing graphics backend!
#endif
gfxtk::Buffer gfxtk::Buffer::create(
std::shared_p... | 27 | 95 | 0.726852 |
2393d38d4a5a137d14b49a994ed5ea0b6f9fe7fa | 2,091 | hpp | C++ | obs-studio/UI/window-basic-main-outputs.hpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/window-basic-main-outputs.hpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/window-basic-main-outputs.hpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
class OBSBasic;
struct BasicOutputHandler {
OBSOutputAutoRelease fileOutput;
OBSOutputAutoRelease streamOutput;
OBSOutputAutoRelease replayBuffer;
OBSOutputAutoRelease virtualCam;
bool streamingActive = false;
bool recordingActive = false;
bool delayActive = false;
bool replayB... | 28.256757 | 68 | 0.780966 |
239529e3a0656005ba014a4ca0e76a86b1b2136a | 646 | cpp | C++ | mrJudge/problems/countfishes (197)/countfishes.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 1 | 2022-02-21T15:43:01.000Z | 2022-02-21T15:43:01.000Z | mrJudge/problems/countfishes (197)/countfishes.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | mrJudge/problems/countfishes (197)/countfishes.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false); cin.tie(0);
int tc, inf=1000001; cin >> tc;
vector<int> isprime(inf, 1), prefix(inf);
for (int i = 2; i*i < inf; i++) {
if (isprime[i]) {
for (int j = i*i; j < inf; j+= i) {
i... | 21.533333 | 48 | 0.410217 |
239935d93d4706e23409398c03caf909a98d3cea | 879 | cpp | C++ | atcoder/abc147c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | atcoder/abc147c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | atcoder/abc147c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void solve() {
int n; cin >> n;
vector<vector<pair<int,int>>> g(n);
for (int i = 0; i < n; i++) {
int m; cin >> m;
for (int _ = 0; _ < m; _++) {
int x, y;
cin >> x >> y;
x--;
g[i].emplace_back(x,... | 20.44186 | 52 | 0.366325 |
2399e24ba2dbf07647952ce82ee88f98e7b1095d | 6,547 | cpp | C++ | src/structs.cpp | Algorithms-and-Data-Structures-2021/classwork-02-cpp-basics-demo | dccf30fd03a7ed4e8e68f85c395f786a643ea3db | [
"MIT"
] | null | null | null | src/structs.cpp | Algorithms-and-Data-Structures-2021/classwork-02-cpp-basics-demo | dccf30fd03a7ed4e8e68f85c395f786a643ea3db | [
"MIT"
] | null | null | null | src/structs.cpp | Algorithms-and-Data-Structures-2021/classwork-02-cpp-basics-demo | dccf30fd03a7ed4e8e68f85c395f786a643ea3db | [
"MIT"
] | 3 | 2021-03-10T06:20:27.000Z | 2021-03-17T05:53:36.000Z | #include <iostream> // cout
// Подключаем свой заголовочный файл -
// целью заголовочных файлов является удобное хранение набора объявлений
// для их последующего использования в других программах.
// поиск заголовочного файла осуществляется в папках проекта (а не в системных директориях)
#include "structs.hpp"
// ... | 31.781553 | 113 | 0.685352 |
239da9ca7eca15f56272f96c2085795d5c53472d | 308 | cpp | C++ | cpp/other/terminal_input.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/other/terminal_input.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/other/terminal_input.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | #include <string>
#include <sstream>
#include <iostream>
using namespace std;
int main(){
string mystr;
float price;
cout << "enter price :" << endl;
getline(cin,mystr);
//cin.getline(mystr);
stringstream (mystr) >> price;
cout << "the price is:" << price << endl;
return 0;
} | 22 | 45 | 0.607143 |
239dfe62dd54c7c176526a8d355e463822fe0611 | 32,683 | cpp | C++ | sam/sam2016.cpp | leandrohga/cs4298_MacNCheese | 89e6b381341c5b647c98a0d84af6f71c57a4e147 | [
"Apache-2.0"
] | null | null | null | sam/sam2016.cpp | leandrohga/cs4298_MacNCheese | 89e6b381341c5b647c98a0d84af6f71c57a4e147 | [
"Apache-2.0"
] | null | null | null | sam/sam2016.cpp | leandrohga/cs4298_MacNCheese | 89e6b381341c5b647c98a0d84af6f71c57a4e147 | [
"Apache-2.0"
] | null | null | null | /* ____________________________________________________________________________
S A M 2 0 0 7
An Assembler for the MACC2 Virtual Computer
James L. Richards
Last Update: August 28, 2007
Last Update: January 2... | 17.165441 | 79 | 0.504207 |
23a16754db0186edec4777a29ab424dbede84267 | 40,226 | cpp | C++ | multimedia/directx/dmusic/dmscript/dmscript.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dmusic/dmscript/dmscript.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dmusic/dmscript/dmscript.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
//
// Implementation of CDirectMusicScript.
//
#include "stdinc.h"
#include "dll.h"
#include "dmscript.h"
#include "oleaut.h"
#include "globaldisp.h"
#include "activescript.h"
#include "sourcetext.h"
//////////////////////////////... | 34.6179 | 186 | 0.621861 |
23a3eef99bb03be101e5c678edd9f254ac18b11c | 617 | cpp | C++ | Coraza.cpp | ErickMartinez2/Lab7P3_ErickMartinez | b6f045979bd3b09e9b89f2bd97c51d031db0978b | [
"MIT"
] | null | null | null | Coraza.cpp | ErickMartinez2/Lab7P3_ErickMartinez | b6f045979bd3b09e9b89f2bd97c51d031db0978b | [
"MIT"
] | null | null | null | Coraza.cpp | ErickMartinez2/Lab7P3_ErickMartinez | b6f045979bd3b09e9b89f2bd97c51d031db0978b | [
"MIT"
] | null | null | null | #include "Coraza.h"
Coraza::Coraza() {
}
Coraza::Coraza(int pdureza, int pcantidad) {
dureza = pdureza;
cantidad = pcantidad;;
}
Coraza::Coraza(string pnombre, string pciudad, int pedad, int pdureza, int pcantidad): Soldado(pnombre, pciudad, pedad) {
dureza = pdureza;
cantidad = pcantidad;
}
int Coraza::getDur... | 15.04878 | 121 | 0.701783 |
23a4241af81aa23c0da2f9375699cb1983670347 | 1,153 | cpp | C++ | src/RuleTimer.cpp | d3wy/pool-controller | 182d8c67638abf56d8e5126103b5995006c06b42 | [
"MIT"
] | 12 | 2020-03-04T18:43:43.000Z | 2022-01-30T22:59:27.000Z | src/RuleTimer.cpp | d3wy/pool-controller | 182d8c67638abf56d8e5126103b5995006c06b42 | [
"MIT"
] | 17 | 2019-05-20T20:22:09.000Z | 2022-01-11T16:55:26.000Z | src/RuleTimer.cpp | d3wy/pool-controller | 182d8c67638abf56d8e5126103b5995006c06b42 | [
"MIT"
] | 6 | 2020-06-05T18:17:13.000Z | 2022-03-19T20:13:58.000Z |
#include "RuleTimer.hpp"
/**
*
*/
RuleTimer::RuleTimer(RelayModuleNode* solarRelay, RelayModuleNode* poolRelay) {
_solarRelay = solarRelay;
_poolRelay = poolRelay;
}
/**
*
*/
void RuleTimer::loop() {
Homie.getLogger() << cIndent << F("§ RuleTimer: loop") << endl;
_poolRelay->setSwitch(checkPoolPumpTi... | 20.589286 | 79 | 0.626193 |
23a5e0323c44ab4bf0478d745ace3cbaa9fecd1d | 743 | cpp | C++ | sessions/session-3/src/histogram_equalisation.cpp | iitmcvg/learn2c | 7d55064ebd8dbb335a353b198e9f1154df4f594e | [
"MIT"
] | null | null | null | sessions/session-3/src/histogram_equalisation.cpp | iitmcvg/learn2c | 7d55064ebd8dbb335a353b198e9f1154df4f594e | [
"MIT"
] | null | null | null | sessions/session-3/src/histogram_equalisation.cpp | iitmcvg/learn2c | 7d55064ebd8dbb335a353b198e9f1154df4f594e | [
"MIT"
] | null | null | null | #include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
using namespace cv;
using namespace std;
int main( int argc, char** argv ) {
Mat src, dst;
char* source_window = "Source image";
char* equalized_window = "Equalized Image";
/// Load image
s... | 21.228571 | 54 | 0.697174 |
23ae7e5ac53ac779985446beb4d8c74dbbeccd09 | 572 | cpp | C++ | Source/Musa/GameObject/DemoGameObjects/OrbitingObject.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/GameObject/DemoGameObjects/OrbitingObject.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/GameObject/DemoGameObjects/OrbitingObject.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | #include "OrbitingObject.hpp"
#include "Math/Matrix4.hpp"
#include "Math/Quat.hpp"
OrbitingObject::OrbitingObject(const Vector4& orbitAxis, const Vector4& orbitPos)
: axis(orbitAxis),
orbitLocation(orbitPos)
{
}
void OrbitingObject::Update(float /*tick*/)
{
// constexpr float angleOffsetDeg = .005f;
// Matrix4 tr... | 23.833333 | 81 | 0.713287 |
23b0372f4e2172c56569014cd64d3ee64537cd34 | 3,343 | cpp | C++ | Classes/transitScene.cpp | alchemz/Campuspedia | 0d686a346f67e0f54087fc307ef5fc65d334b935 | [
"MIT"
] | 1 | 2015-03-21T17:55:17.000Z | 2015-03-21T17:55:17.000Z | Classes/transitScene.cpp | alchemz/Campuspedia | 0d686a346f67e0f54087fc307ef5fc65d334b935 | [
"MIT"
] | null | null | null | Classes/transitScene.cpp | alchemz/Campuspedia | 0d686a346f67e0f54087fc307ef5fc65d334b935 | [
"MIT"
] | null | null | null | #include "TransitScene.h"
using namespace cocos2d::ui;
USING_NS_CC;
Scene* Transit::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = Transit::create();
// add layer as a child to scene
scene->addChild(l... | 29.069565 | 111 | 0.548908 |
23b6267156ba30d4212a91e8925ca4c296c927a0 | 5,285 | hpp | C++ | packages/monte_carlo/estimator/native/src/MonteCarlo_CellPulseHeightEstimator.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_CellPulseHeightEstimator.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_CellPulseHeightEstimator.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_CellPulseHeightEstimator.hpp
//! \author Alex Robinson
//! \brief Cell pulse height estimator class declaration
//!
//---------------------------------------------------------------------------//
#ifndef FACEMC_... | 35.233333 | 101 | 0.693661 |
23b6b5a280f6b6b9fc6621a21ebcdf8dd9977483 | 5,206 | cpp | C++ | src/formats/RareSnesInstr.cpp | ValleyBell/vgmtrans | fc7ad99857450d3a943d8201a05331837e5db938 | [
"Zlib"
] | 2 | 2021-01-18T05:47:48.000Z | 2022-03-15T18:27:41.000Z | src/formats/RareSnesInstr.cpp | ValleyBell/vgmtrans | fc7ad99857450d3a943d8201a05331837e5db938 | [
"Zlib"
] | null | null | null | src/formats/RareSnesInstr.cpp | ValleyBell/vgmtrans | fc7ad99857450d3a943d8201a05331837e5db938 | [
"Zlib"
] | null | null | null | #include "stdafx.h"
#include "RareSnesInstr.h"
#include "Format.h"
#include "SNESDSP.h"
#include "RareSnesFormat.h"
// ****************
// RareSnesInstrSet
// ****************
RareSnesInstrSet::RareSnesInstrSet(RawFile* file, uint32_t offset, uint32_t spcDirAddr, const std::wstring & name) :
VGMInstrSet(RareSnesForm... | 22.634783 | 205 | 0.684595 |
23b8430bc6dc45bb0fa1a18df8d033da62315651 | 6,716 | cpp | C++ | src/model.cpp | akitsu-sanae/phylan | bf949de7b5a91dfd965c3fcc4868b76b4b577375 | [
"BSL-1.0"
] | null | null | null | src/model.cpp | akitsu-sanae/phylan | bf949de7b5a91dfd965c3fcc4868b76b4b577375 | [
"BSL-1.0"
] | null | null | null | src/model.cpp | akitsu-sanae/phylan | bf949de7b5a91dfd965c3fcc4868b76b4b577375 | [
"BSL-1.0"
] | null | null | null | /*============================================================================
Copyright (C) 2016 akitsu sanae
https://github.com/akitsu-sanae/phylan
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
===============================... | 33.247525 | 95 | 0.544818 |
23bacc4836a2719609c6d5f7e06370e32f250472 | 3,953 | cpp | C++ | test/fence_counting.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 14 | 2018-03-10T21:50:20.000Z | 2021-11-22T04:09:09.000Z | test/fence_counting.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 3 | 2018-06-12T15:17:22.000Z | 2019-06-20T12:00:45.000Z | test/fence_counting.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 12 | 2018-03-10T17:02:07.000Z | 2022-01-09T16:04:56.000Z | #include <percy/percy.hpp>
#include <cassert>
#include <cstdio>
#include <vector>
using namespace percy;
using std::vector;
/*******************************************************************************
Counts and prints all fences up to and including F_5 and ensures that the
number is correct.
***********... | 31.125984 | 86 | 0.510751 |
23bcd21af6406c7041ba801dab6dcc72689b9dd5 | 2,240 | hpp | C++ | src/base/include/structs.hpp | N4G170/generic | 29c8be184b1420b811e2a3db087f9bd6b76ed8bf | [
"MIT"
] | null | null | null | src/base/include/structs.hpp | N4G170/generic | 29c8be184b1420b811e2a3db087f9bd6b76ed8bf | [
"MIT"
] | null | null | null | src/base/include/structs.hpp | N4G170/generic | 29c8be184b1420b811e2a3db087f9bd6b76ed8bf | [
"MIT"
] | null | null | null | #ifndef STRUCTS_HPP
#define STRUCTS_HPP
#include <type_traits>
#include <string>
#include "vector3.hpp"
#include "enums.hpp"
#include "SDL.h"
template<typename T>
struct Bounds
{
//check if we initialize the vector with the right values
static_assert(std::is_integral<T>::value || std::is_floating_point<T>::va... | 42.264151 | 149 | 0.658036 |
23bf3d4e2e7fccc5f011f98b95a9fa02783391b3 | 1,604 | cpp | C++ | src/type.cpp | robey/nolove | d83e5ba34e5e53dbef066f4da2f22c6cc2d0572c | [
"Apache-2.0"
] | 1 | 2015-11-05T12:17:23.000Z | 2015-11-05T12:17:23.000Z | src/type.cpp | robey/nolove | d83e5ba34e5e53dbef066f4da2f22c6cc2d0572c | [
"Apache-2.0"
] | null | null | null | src/type.cpp | robey/nolove | d83e5ba34e5e53dbef066f4da2f22c6cc2d0572c | [
"Apache-2.0"
] | null | null | null | #include "llvm/Support/raw_ostream.h"
#include "type.h"
using namespace v8;
// ----- LType
NodeProto<LType> LType::proto("Type");
void LType::init() {
proto.addMethod("isDoubleType", <ype::isDoubleType);
proto.addMethod("isFunctionType", <ype::isFunctionType);
proto.addMethod("toString", <ype::toString)... | 28.140351 | 69 | 0.714464 |
23bf978e1a5d09fea9cb909b5ec53ef5d141c86e | 1,564 | cpp | C++ | gui/NativeWindow.cpp | razaqq/PotatoAlert | 4dfb54a7841ca71d8dbf58620173f2a9fc1886f2 | [
"MIT"
] | 20 | 2020-06-16T01:30:29.000Z | 2022-03-08T14:54:30.000Z | gui/NativeWindow.cpp | razaqq/PotatoAlert | 4dfb54a7841ca71d8dbf58620173f2a9fc1886f2 | [
"MIT"
] | 26 | 2019-07-15T10:49:47.000Z | 2022-02-16T19:25:48.000Z | gui/NativeWindow.cpp | razaqq/PotatoAlert | 4dfb54a7841ca71d8dbf58620173f2a9fc1886f2 | [
"MIT"
] | 5 | 2020-06-16T01:31:03.000Z | 2022-01-22T19:43:48.000Z | // Copyright 2020 <github.com/razaqq>
#include <QWidget>
#include <QVBoxLayout>
#include <QMainWindow>
#include <QWindow>
#include "NativeWindow.hpp"
#include "TitleBar.hpp"
#include "Config.hpp"
#include "FramelessWindowsManager.hpp"
using PotatoAlert::NativeWindow;
NativeWindow::NativeWindow(QMainWindow* mainWin... | 26.508475 | 97 | 0.734655 |
23c3004cf0c9368068db9a38c09ea79a4e2a8414 | 1,558 | cpp | C++ | basic/tree/print_all_ancestors.cpp | sanjosh/smallprogs | 8acf7a357080b9154b55565be7c7667db0d4049b | [
"Apache-2.0"
] | 7 | 2017-02-28T06:33:43.000Z | 2021-12-17T04:58:19.000Z | basic/tree/print_all_ancestors.cpp | sanjosh/smallprogs | 8acf7a357080b9154b55565be7c7667db0d4049b | [
"Apache-2.0"
] | null | null | null | basic/tree/print_all_ancestors.cpp | sanjosh/smallprogs | 8acf7a357080b9154b55565be7c7667db0d4049b | [
"Apache-2.0"
] | 3 | 2017-02-28T06:33:30.000Z | 2021-02-25T09:42:31.000Z |
/*
http://en.wikipedia.org/wiki/Level_ancestor_problem
Given a Binary Tree and a key, write a function that prints all the ancestors of the key in the given binary tree.
For example, if the given tree is following Binary Tree and key is 7, then your function should print 4, 2 and 1.
1
/ ... | 17.120879 | 114 | 0.560334 |
23c9ace5e859445761efa5495bdc621173051908 | 20,355 | cpp | C++ | src/client/vhsm_admin/vhsm_admin.cpp | OSLL/vhsm | a06820919438f11be25df05978dcb679615f5b0b | [
"MIT"
] | 8 | 2015-09-27T01:31:25.000Z | 2020-10-29T17:05:12.000Z | src/client/vhsm_admin/vhsm_admin.cpp | OSLL/vhsm | a06820919438f11be25df05978dcb679615f5b0b | [
"MIT"
] | null | null | null | src/client/vhsm_admin/vhsm_admin.cpp | OSLL/vhsm | a06820919438f11be25df05978dcb679615f5b0b | [
"MIT"
] | 2 | 2015-05-20T18:54:14.000Z | 2021-11-04T19:40:18.000Z | #include <iostream>
#include <fstream>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include "vhsm_api_prototype/common.h"
#include "vhsm_api_prototype/key_mgmt.h"
#include "vhsm_api_prototype/mac.h"
#include "vhsm_api_prototype/digest.h"
#define BUF_SIZE 4096
#define BUF_TIME_SIZE 256
#define HEL... | 34.794872 | 128 | 0.552837 |
23cb33ca493b6d2d59fc46ba0968a4adb2718e58 | 1,922 | cpp | C++ | 584 Bowling.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 584 Bowling.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 584 Bowling.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <cstdio>
int handle(char current, char previous, char twoPrevious, bool addOwnScore)
{
int baseScore(0);
int score = 0;
if (current == 'X')
{
baseScore = 10;
}
else if (current == '/')
{
baseScore = 10 - (previous - '0');
}
else
{
... | 22.091954 | 78 | 0.426639 |
23cd22431b7eedfa78296fb3cadd0a30e4363843 | 1,071 | cpp | C++ | dynamic_progrmmaing/coursera_primitive_calculator.cpp | BackAged/100_days_of_problem_solving | 2e24efad6d46804c4b31f415dbd69d7b80703a4f | [
"Apache-2.0"
] | 3 | 2020-06-15T10:39:34.000Z | 2021-01-17T14:03:37.000Z | dynamic_progrmmaing/coursera_primitive_calculator.cpp | BackAged/100_days_of_problem_solving | 2e24efad6d46804c4b31f415dbd69d7b80703a4f | [
"Apache-2.0"
] | null | null | null | dynamic_progrmmaing/coursera_primitive_calculator.cpp | BackAged/100_days_of_problem_solving | 2e24efad6d46804c4b31f415dbd69d7b80703a4f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int choice[1000000];
int visited[1000000];
int optimal_sequence(int n) {
visited[0] = 0;
visited[1] = 0;
for (int i = 2; i <= n; i++) {
int ans = INT32_MAX;
int t1 = 1 + visited[i - 1];
if (t1 < ans) {
... | 18.789474 | 40 | 0.46592 |
23d0fb391b788e8e2f6eee11162b4c14efde0691 | 4,155 | cpp | C++ | kernel/system_tree/system_tree_root.cpp | martin-hughes/project_azalea | 28aa0183cde350073cf0167df3f51435ea409c8b | [
"MIT"
] | 13 | 2017-12-20T00:02:38.000Z | 2022-01-07T11:18:36.000Z | kernel/system_tree/system_tree_root.cpp | martin-hughes/project_azalea | 28aa0183cde350073cf0167df3f51435ea409c8b | [
"MIT"
] | 21 | 2016-09-21T16:50:39.000Z | 2020-04-12T12:58:19.000Z | kernel/system_tree/system_tree_root.cpp | martin-hughes/project_azalea | 28aa0183cde350073cf0167df3f51435ea409c8b | [
"MIT"
] | 6 | 2017-12-20T00:02:27.000Z | 2019-03-21T16:28:24.000Z | /// @file
/// @brief Implement `system_tree_root`, which handles the very root of the System Tree.
#include "klib/klib.h"
#include "system_tree/system_tree_root.h"
uint32_t system_tree_root::number_of_instances = 0;
system_tree_root::system_tree_root()
{
KL_TRC_ENTRY;
ASSERT(system_tree_root::number_of_instance... | 24.156977 | 119 | 0.681829 |
23d20a928719cc1b369db802f3439e83766f11f7 | 608 | cpp | C++ | cpp_models/libsrc/RLLib/visualization/RLLibViz/Framebuffer.cpp | akangasr/sdirl | b8b2bf34fea1b1f0c2f9961a9ad9c1ad34396f5b | [
"MIT"
] | null | null | null | cpp_models/libsrc/RLLib/visualization/RLLibViz/Framebuffer.cpp | akangasr/sdirl | b8b2bf34fea1b1f0c2f9961a9ad9c1ad34396f5b | [
"MIT"
] | null | null | null | cpp_models/libsrc/RLLib/visualization/RLLibViz/Framebuffer.cpp | akangasr/sdirl | b8b2bf34fea1b1f0c2f9961a9ad9c1ad34396f5b | [
"MIT"
] | null | null | null | /*
* Framebuffer.cpp
*
* Created on: Oct 12, 2013
* Author: sam
*/
#include "Framebuffer.h"
#include <cassert>
using namespace RLLibViz;
Framebuffer::Framebuffer()
{
}
Framebuffer::~Framebuffer()
{
}
void Framebuffer::draw(QPainter& painter)
{
if (points.empty() || points.size() < 1)
return;
QP... | 13.511111 | 42 | 0.626645 |
23d438cc7f53933fdb5f6abb578da26c5bf0b5ec | 10,552 | cpp | C++ | src/modules/dvb/dvb.cpp | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | src/modules/dvb/dvb.cpp | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | src/modules/dvb/dvb.cpp | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | /**
@file dvb.cpp
@brief This file is part of Kalinka mediaserver.
@author ipp <ivan.murashko@gmail.com>
Copyright (c) 2007-2012 Kalinka Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal ... | 27.479167 | 74 | 0.574204 |
23d6a587da9f98f0302567c4cba9190e4c1da9c8 | 5,196 | cpp | C++ | source/main.cpp | Matr1X22/Shannon-Fano_and_Huffman_data_compression | ea52ace4c5158531a498877c51bd034dec8e0e7f | [
"Apache-2.0"
] | null | null | null | source/main.cpp | Matr1X22/Shannon-Fano_and_Huffman_data_compression | ea52ace4c5158531a498877c51bd034dec8e0e7f | [
"Apache-2.0"
] | null | null | null | source/main.cpp | Matr1X22/Shannon-Fano_and_Huffman_data_compression | ea52ace4c5158531a498877c51bd034dec8e0e7f | [
"Apache-2.0"
] | 1 | 2022-03-19T21:05:09.000Z | 2022-03-19T21:05:09.000Z | #include <bits/stdc++.h>
#include <windows.h>
using namespace std;
HANDLE hOUTPUT = GetStdHandle(STD_OUTPUT_HANDLE);
void yellow(){SetConsoleTextAttribute(hOUTPUT, FOREGROUND_RED | FOREGROUND_GREEN);}
void white(){SetConsoleTextAttribute(hOUTPUT, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);}
void red(){SetC... | 17.092105 | 100 | 0.518861 |
23da43ce423b5fbde6f832112ee703b5218515ca | 1,311 | cpp | C++ | src/process.cpp | hyper-make/SystemMonitor | ccc06c95b98475f18055b551cd45f39fbd96c0a8 | [
"MIT"
] | null | null | null | src/process.cpp | hyper-make/SystemMonitor | ccc06c95b98475f18055b551cd45f39fbd96c0a8 | [
"MIT"
] | null | null | null | src/process.cpp | hyper-make/SystemMonitor | ccc06c95b98475f18055b551cd45f39fbd96c0a8 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <cctype>
#include <sstream>
#include <string>
#include <vector>
#include "linux_parser.h"
#include "process.h"
using std::string;
using std::to_string;
using std::vector;
Process::Process(int p)
: pid(p),
user(LinuxParser::User(p)),
command(LinuxParser::Command(p)),
... | 27.3125 | 73 | 0.690313 |
23deb62f8d3ee6616e5b5fe1e3f59b55af069ade | 2,464 | cpp | C++ | src/Base/DoubleSpinBox.cpp | roto5296/choreonoid | ffe12df8db71e32aea18833afb80dffc42c373d0 | [
"MIT"
] | 66 | 2020-03-11T14:06:01.000Z | 2022-03-23T23:18:27.000Z | src/Base/DoubleSpinBox.cpp | roto5296/choreonoid | ffe12df8db71e32aea18833afb80dffc42c373d0 | [
"MIT"
] | 12 | 2020-07-23T06:13:11.000Z | 2022-01-13T14:25:01.000Z | src/Base/DoubleSpinBox.cpp | roto5296/choreonoid | ffe12df8db71e32aea18833afb80dffc42c373d0 | [
"MIT"
] | 18 | 2020-07-17T15:57:54.000Z | 2022-03-29T13:18:59.000Z | #include "DoubleSpinBox.h"
#include <QKeyEvent>
using namespace cnoid;
DoubleSpinBox::DoubleSpinBox(QWidget* parent)
: QDoubleSpinBox(parent)
{
setKeyboardTracking(false);
isSettingValueInternally = false;
isUndoRedoKeyInputEnabled_ = false;
valueChangedByLastUserInput = false;
}
void DoubleSpi... | 22.814815 | 86 | 0.676948 |
23e60ab5fbae97a04f5642bcb8bc617f26084126 | 51 | cpp | C++ | src/LoginInfo.cpp | NoSuchBoyException/QT-PureMVC | cc84e68ddc2666941af6970a4fab364ab74f5190 | [
"Apache-2.0"
] | 40 | 2016-06-20T12:22:42.000Z | 2022-03-10T03:20:00.000Z | src/LoginInfo.cpp | NoSuchBoyException/PureMVC_QT | cc84e68ddc2666941af6970a4fab364ab74f5190 | [
"Apache-2.0"
] | null | null | null | src/LoginInfo.cpp | NoSuchBoyException/PureMVC_QT | cc84e68ddc2666941af6970a4fab364ab74f5190 | [
"Apache-2.0"
] | 24 | 2017-01-03T13:18:04.000Z | 2022-03-20T01:24:41.000Z | #include "LoginInfo.h"
LoginInfo::LoginInfo()
{
}
| 8.5 | 22 | 0.686275 |
23ea38bae9e49e20a987deab48c375b42aa64b46 | 7,474 | cpp | C++ | src/bin/balanceHandler.cpp | D7ry/valhallaCombat | 07929d29a48401c2878a1ed5993b7bba14743c6f | [
"MIT"
] | 1 | 2022-01-19T07:13:48.000Z | 2022-01-19T07:13:48.000Z | src/bin/balanceHandler.cpp | D7ry/valhallaCombat | 07929d29a48401c2878a1ed5993b7bba14743c6f | [
"MIT"
] | null | null | null | src/bin/balanceHandler.cpp | D7ry/valhallaCombat | 07929d29a48401c2878a1ed5993b7bba14743c6f | [
"MIT"
] | 1 | 2022-01-19T07:13:52.000Z | 2022-01-19T07:13:52.000Z | #include "include/balanceHandler.h"
#include "include/reactionHandler.h"
#include "include/offsets.h"
#include "include/Utils.h"
inline const float balanceRegenTime = 6;//time it takes for balance to regen, in seconds.
void balanceHandler::update() {
//DEBUG("update");
/*if (garbageCollectionQueued) {
collectGarba... | 32.637555 | 150 | 0.737624 |
23eae08214ee1ecabf369ec840d1dcb03d36ba1e | 1,138 | cpp | C++ | pbr/Mesh.cpp | chuxu1793/pbr-1 | c77d9bcc2c19637ab79382cbef3fc0e2a31b6560 | [
"MIT"
] | 51 | 2016-04-03T20:37:57.000Z | 2022-03-31T00:38:11.000Z | pbr/Mesh.cpp | chuxu1793/pbr-1 | c77d9bcc2c19637ab79382cbef3fc0e2a31b6560 | [
"MIT"
] | 2 | 2016-11-14T21:14:10.000Z | 2016-11-16T15:01:47.000Z | pbr/Mesh.cpp | chuxu1793/pbr-1 | c77d9bcc2c19637ab79382cbef3fc0e2a31b6560 | [
"MIT"
] | 9 | 2016-06-02T03:46:23.000Z | 2020-10-16T23:30:16.000Z | #include "Mesh.h"
#include <glbinding/gl/gl.h>
void Mesh::draw()
{
glBindVertexArray(m_VAO);
glDrawElements(GL_TRIANGLES, m_IndicesCount * 3, GL_UNSIGNED_INT, nullptr);
glBindVertexArray(0);
}
void Mesh::initialize(const std::vector<Vertex>& vertices, const std::vector<Triangle>& indices)
{
m_IndicesCount = indi... | 31.611111 | 107 | 0.748682 |
23eb4c38cc7c876ace8bc06e105f134921e3f8b7 | 1,130 | cpp | C++ | src/CursATE/Curses/Field/detail/resizePadded.cpp | qiagen/LogATE | aa43595c89bf3bcaa302d8406e5ad789efc0e035 | [
"BSD-2-Clause"
] | null | null | null | src/CursATE/Curses/Field/detail/resizePadded.cpp | qiagen/LogATE | aa43595c89bf3bcaa302d8406e5ad789efc0e035 | [
"BSD-2-Clause"
] | null | null | null | src/CursATE/Curses/Field/detail/resizePadded.cpp | qiagen/LogATE | aa43595c89bf3bcaa302d8406e5ad789efc0e035 | [
"BSD-2-Clause"
] | 3 | 2021-01-12T18:52:49.000Z | 2021-01-19T17:48:50.000Z | #include "CursATE/Curses/Field/detail/resizePadded.hpp"
#include <But/assert.hpp>
namespace CursATE::Curses::Field::detail
{
VisibleSize resizePaddedVisibleSize(std::string const& in, size_t maxSize, size_t selectedElement)
{
if( in.size() <= maxSize )
return {0, selectedElement, in.size()};
if( selectedEleme... | 29.736842 | 118 | 0.685841 |
6710cae5db7291a10684008a748246fc5eeec215 | 1,483 | cpp | C++ | Pearly/src/Pearly/Math/Math.cpp | JumpyLionnn/Pearly | 2dce5f54144980cecd998a325422e56bff6c4c83 | [
"Apache-2.0"
] | null | null | null | Pearly/src/Pearly/Math/Math.cpp | JumpyLionnn/Pearly | 2dce5f54144980cecd998a325422e56bff6c4c83 | [
"Apache-2.0"
] | null | null | null | Pearly/src/Pearly/Math/Math.cpp | JumpyLionnn/Pearly | 2dce5f54144980cecd998a325422e56bff6c4c83 | [
"Apache-2.0"
] | null | null | null | #include "prpch.h"
#include "Math.h"
namespace Pearly {
bool Math::DecomposeTransform(const glm::mat4& transform, glm::vec3& position, float& rotation, glm::vec2& scale)
{
glm::mat4 localMatrix(transform);
// Normalize the matrix.
if (glm::epsilonEqual(localMatrix[3][3], static_cast<float>(0), glm::epsilon<fl... | 32.23913 | 114 | 0.646662 |
6711ec4603bd0025df95902abfec0d44315c7bae | 2,149 | cc | C++ | device/device_rom.cc | CompaqDisc/zippy | e8c3b67ea59adbbdf9881e1bc34f0eab0eab6abe | [
"MIT"
] | null | null | null | device/device_rom.cc | CompaqDisc/zippy | e8c3b67ea59adbbdf9881e1bc34f0eab0eab6abe | [
"MIT"
] | null | null | null | device/device_rom.cc | CompaqDisc/zippy | e8c3b67ea59adbbdf9881e1bc34f0eab0eab6abe | [
"MIT"
] | null | null | null | #include "device_rom.h"
#include <iostream>
#include <fstream>
#include <string>
#include <cerrno>
DeviceROM::DeviceROM(uint16_t address_start, size_t region_length) {
address_start_ = address_start;
region_length_ = region_length;
buffer_contents_ = (uint8_t*) malloc(region_length_ * sizeof(uint8_t));
}
DeviceR... | 23.615385 | 83 | 0.676128 |
671579f43f756cf8cdfde950e4ef720c4f5b80c4 | 1,197 | cpp | C++ | cxx/test/test_binheap.cpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | 4 | 2020-04-03T15:18:30.000Z | 2022-01-06T15:22:48.000Z | cxx/test/test_binheap.cpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | null | null | null | cxx/test/test_binheap.cpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | null | null | null | #include <doctest/doctest.h>
#include <graphidx/heap/binheap.hpp>
#include <graphidx/heap/quadheap.hpp>
TEST_CASE_TEMPLATE_DEFINE("heap basic", Heap, test_heap_basics)
{
constexpr size_t N = 6;
Heap h(N);
REQUIRE(h.empty());
REQUIRE_EQ(h.size(), 0);
for (size_t i = 0; i < N; i++) {
REQUIR... | 22.166667 | 80 | 0.578112 |
671afcda2345039279bc47492c4f1a66cbd14d83 | 328 | cpp | C++ | Zerojudge/d111.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/d111.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/d111.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
long long int n;
while(cin >> n)
{
if(n==0)break;
long long int t=sqrt(n);
if(t*t==n)
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
}
retur... | 15.619048 | 33 | 0.45122 |
671b8a4c8d8a666826e1265b4102ce0f9a0e1f3b | 2,268 | hpp | C++ | include/P2P.hpp | Sygmei/IsenCoin | 91668cf056704da950a6c1f55e7a5b573b685ca7 | [
"MIT"
] | 7 | 2018-05-31T14:16:48.000Z | 2022-02-24T18:54:06.000Z | include/P2P.hpp | Sygmei/IsenCoin | 91668cf056704da950a6c1f55e7a5b573b685ca7 | [
"MIT"
] | null | null | null | include/P2P.hpp | Sygmei/IsenCoin | 91668cf056704da950a6c1f55e7a5b573b685ca7 | [
"MIT"
] | null | null | null | #pragma once
#include <Logger.hpp>
#include <functional>
#include <optional>
#include <msgpack11/msgpack11.hpp>
#include <tacopie/network/tcp_socket.hpp>
#include "base58/base58.hpp"
namespace tacopie
{
int init();
void close();
}
namespace ic::p2p
{
namespace mp = msgpack11;
std::string msgpack_ty... | 36 | 95 | 0.679894 |
671c60ceccc5a70d03b40fce21ce4617c071e989 | 1,420 | cpp | C++ | compiler/angkor/src/ADT/tensor/LexicalLayout.cpp | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | compiler/angkor/src/ADT/tensor/LexicalLayout.cpp | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | compiler/angkor/src/ADT/tensor/LexicalLayout.cpp | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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... | 23.278689 | 75 | 0.705634 |