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 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
404a5034ecba99e99e1c9f17be9b6817e14a9a0d | 798 | cpp | C++ | server/scada/__tests__/utilities/pTimeToTimestamp.test.cpp | kubasikora/ZPR-Projekt | 511ab15fdb0df61cfa1437ee63ca2d9cea37e914 | [
"MIT"
] | null | null | null | server/scada/__tests__/utilities/pTimeToTimestamp.test.cpp | kubasikora/ZPR-Projekt | 511ab15fdb0df61cfa1437ee63ca2d9cea37e914 | [
"MIT"
] | null | null | null | server/scada/__tests__/utilities/pTimeToTimestamp.test.cpp | kubasikora/ZPR-Projekt | 511ab15fdb0df61cfa1437ee63ca2d9cea37e914 | [
"MIT"
] | 1 | 2020-11-03T09:38:27.000Z | 2020-11-03T09:38:27.000Z | #define BOOST_TEST_DYN_LINK
#ifdef __unix__
#include <boost/test/unit_test.hpp>
#elif defined(_WIN32) || defined(WIN32)
#include <boost/test/included/unit_test.hpp>
#endif
#include<string>
#include<exception>
#include<boost/date_time/posix_time/ptime.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include... | 29.555556 | 86 | 0.793233 | kubasikora |
405095182f19760cbd10b85325d7b335f1d82316 | 72,695 | cpp | C++ | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_sysadmin_show_diag.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_sysadmin_show_diag.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_sysadmin_show_diag.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "Cisco_IOS_XR_sysadmin_show_diag.hpp"
using namespace ydk;
namespace cisco_ios_xr {
namespace Cisco_IOS_XR_sysadmin_show_diag {
Diag::Diag()
:
default_(std::make_s... | 27.165546 | 208 | 0.677337 | CiscoDevNet |
405834ee034967ffc7ca02159fc0ca568825fcd6 | 93,895 | cpp | C++ | src/systems/CollisionDetectionSystem.cpp | VaderY/reactphysics3d | 6fe67640fbda3f7c0a50dc0fd88f4c940f9d9c7b | [
"Zlib"
] | null | null | null | src/systems/CollisionDetectionSystem.cpp | VaderY/reactphysics3d | 6fe67640fbda3f7c0a50dc0fd88f4c940f9d9c7b | [
"Zlib"
] | null | null | null | src/systems/CollisionDetectionSystem.cpp | VaderY/reactphysics3d | 6fe67640fbda3f7c0a50dc0fd88f4c940f9d9c7b | [
"Zlib"
] | null | null | null | /********************************************************************************
* ReactPhysics3D physics library, http://www.reactphysics3d.com *
* Copyright (c) 2010-2020 Daniel Chappuis *
*************************************************************************... | 50.535522 | 234 | 0.70712 | VaderY |
4058914fa3ce8fe6ccb306ca35396bf2dcd5a009 | 253 | cpp | C++ | imposc-service/imposc-cpp/main.cpp | FelixDux/imposccpp | c8c612df87a53ddaca6260816c913ade44adbe6d | [
"MIT"
] | null | null | null | imposc-service/imposc-cpp/main.cpp | FelixDux/imposccpp | c8c612df87a53ddaca6260816c913ade44adbe6d | [
"MIT"
] | 1 | 2021-03-22T17:27:17.000Z | 2021-07-02T07:31:39.000Z | imposc-service/imposc-cpp/main.cpp | FelixDux/imposccpp | c8c612df87a53ddaca6260816c913ade44adbe6d | [
"MIT"
] | null | null | null | #include "imposcpy.hpp"
#include <iostream>
int main(int argc, char** argv)
{
// map_impacts(5.2, 0.8, -0.63, 100, 0.5, 2, 4000, "impact-map.png", "errors.txt");
map_doa(5.2, 0.8, -0.63, 100, 4, 10, 10, 1000, "doa.png", "errors.txt");
return 0;
}
| 21.083333 | 84 | 0.600791 | FelixDux |
405a30d475896a9ba5d81cac6d72ff7e5769ce03 | 10,956 | cpp | C++ | test/systemtest/common/fms/fms_self_starting_test/fms_self_starting_test.cpp | openharmony-gitee-mirror/appexecfwk_standard | 0edd750ed64940531881e0bb113a84155ac056d0 | [
"Apache-2.0"
] | 1 | 2021-11-23T08:13:14.000Z | 2021-11-23T08:13:14.000Z | test/systemtest/common/fms/fms_self_starting_test/fms_self_starting_test.cpp | openharmony-gitee-mirror/appexecfwk_standard | 0edd750ed64940531881e0bb113a84155ac056d0 | [
"Apache-2.0"
] | null | null | null | test/systemtest/common/fms/fms_self_starting_test/fms_self_starting_test.cpp | openharmony-gitee-mirror/appexecfwk_standard | 0edd750ed64940531881e0bb113a84155ac056d0 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:54.000Z | 2021-09-13T11:17:54.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 36.888889 | 115 | 0.6705 | openharmony-gitee-mirror |
405aa04e4e6d0f13d87abb1ed296120f7ebe605f | 124 | cpp | C++ | TP3-9508/common_src/socketclosedexception.cpp | Jonathan-R0/TallerDeProgramacion | 80038d06736c729310ff4c2a54195fb2d1c79ab7 | [
"MIT"
] | null | null | null | TP3-9508/common_src/socketclosedexception.cpp | Jonathan-R0/TallerDeProgramacion | 80038d06736c729310ff4c2a54195fb2d1c79ab7 | [
"MIT"
] | null | null | null | TP3-9508/common_src/socketclosedexception.cpp | Jonathan-R0/TallerDeProgramacion | 80038d06736c729310ff4c2a54195fb2d1c79ab7 | [
"MIT"
] | null | null | null | #include "socketclosedexception.h"
const char* SocketClosedException::what() const throw() {
return errormsg.c_str();
}
| 17.714286 | 57 | 0.741935 | Jonathan-R0 |
405b9985f6cbf6d74c8060e88ca9eb45119c85d8 | 11,937 | cpp | C++ | book_sample/Chpater 5 - Screen Space Effects/Lens Flare/LensflareManager.cpp | jjuiddong/HLSL-Development-Cookbook | 8a322f4e7924fe0c7e757bd2453ce0adeb282aeb | [
"MIT"
] | 10 | 2020-04-13T10:15:27.000Z | 2022-03-10T08:57:46.000Z | book_sample/Chpater 5 - Screen Space Effects/Lens Flare/LensflareManager.cpp | jjuiddong/HLSL-Development-Cookbook | 8a322f4e7924fe0c7e757bd2453ce0adeb282aeb | [
"MIT"
] | null | null | null | book_sample/Chpater 5 - Screen Space Effects/Lens Flare/LensflareManager.cpp | jjuiddong/HLSL-Development-Cookbook | 8a322f4e7924fe0c7e757bd2453ce0adeb282aeb | [
"MIT"
] | 1 | 2019-03-16T06:40:26.000Z | 2019-03-16T06:40:26.000Z | #include "DXUT.h"
#include "DXUTCamera.h"
#include "SDKmisc.h"
#include "LensflareManager.h"
extern float g_fAspectRatio;
extern ID3D11Device* g_pDevice;
extern CFirstPersonCamera g_Camera;
HRESULT CompileShader(PWCHAR strPath, D3D10_SHADER_MACRO* pMacros, char* strEntryPoint, char* strProfile, DWORD dwShaderFlags, ... | 39.266447 | 165 | 0.764346 | jjuiddong |
40645b9aa78cb739fe57666415c51357c04c2105 | 8,282 | cpp | C++ | src/aadcUser/BirdsEyeTransform/BirdsEyeTransform.cpp | kimsoohwan/Cariosity2018 | 49f935623c41d627b45c47a219358f9d7d207fdf | [
"BSD-4-Clause"
] | null | null | null | src/aadcUser/BirdsEyeTransform/BirdsEyeTransform.cpp | kimsoohwan/Cariosity2018 | 49f935623c41d627b45c47a219358f9d7d207fdf | [
"BSD-4-Clause"
] | null | null | null | src/aadcUser/BirdsEyeTransform/BirdsEyeTransform.cpp | kimsoohwan/Cariosity2018 | 49f935623c41d627b45c47a219358f9d7d207fdf | [
"BSD-4-Clause"
] | 1 | 2019-10-03T12:23:26.000Z | 2019-10-03T12:23:26.000Z | #include "stdafx.h"
#include "BirdsEyeTransform.h"
#include "ADTF3_OpenCV_helper.h"
#include <opencv/cv.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/cudaarithm.hpp>
#include <opencv2/core/cuda.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/cudaimgproc.hpp>
... | 42.040609 | 182 | 0.655277 | kimsoohwan |
406486fd3719f11df98280a5ba769ea3eef2ae14 | 1,720 | hpp | C++ | include/limitless/fx/modules/custom_material.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | 9 | 2020-07-23T13:00:12.000Z | 2021-01-07T10:44:24.000Z | include/limitless/fx/modules/custom_material.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | 7 | 2020-09-11T18:23:45.000Z | 2020-11-01T19:05:47.000Z | include/limitless/fx/modules/custom_material.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | 3 | 2020-08-24T01:59:48.000Z | 2021-02-18T16:41:27.000Z | #pragma once
#include <limitless/fx/modules/module.hpp>
namespace Limitless::fx {
template<typename Particle>
class CustomMaterial : public Module<Particle> {
private:
std::array<std::unique_ptr<Distribution<float>>, 4> properties;
public:
CustomMaterial(std::unique_ptr<Distribution<fl... | 39.090909 | 137 | 0.575581 | Tehsapper |
40664a29a8104c19ccfcaf385df93666aa2e4865 | 5,139 | cpp | C++ | native/common/file_descriptor.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | null | null | null | native/common/file_descriptor.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | 1 | 2021-02-18T18:35:46.000Z | 2021-02-18T18:35:46.000Z | native/common/file_descriptor.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | null | null | null | /**
* Copyright 2020 Kaloian Manassiev
*
* 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... | 33.809211 | 100 | 0.650905 | kaloianm |
4066a29a25316d7395e4cd3fb2a5065ea0b53be4 | 1,554 | cpp | C++ | src/analysis/ismt/cvc_context.cpp | gdslang/summy | bd450278f18859eb94d1f30b7b878bbb1b94c42c | [
"Apache-2.0"
] | null | null | null | src/analysis/ismt/cvc_context.cpp | gdslang/summy | bd450278f18859eb94d1f30b7b878bbb1b94c42c | [
"Apache-2.0"
] | null | null | null | src/analysis/ismt/cvc_context.cpp | gdslang/summy | bd450278f18859eb94d1f30b7b878bbb1b94c42c | [
"Apache-2.0"
] | null | null | null | /*
* cvc_context.cpp
*
* Created on: Nov 7, 2014
* Author: Julian Kranz
*/
#include <summy/analysis/ismt/cvc_context.h>
#include <cvc4/cvc4.h>
#include <string>
#include <sstream>
using namespace std;
using namespace CVC4;
analysis::cvc_context::cvc_context(bool unsat_cores) : smtEngine(&manager) {
smtE... | 25.9 | 91 | 0.680824 | gdslang |
4066afef5b51d9dfebfa257a88ce8d96a17ed2e7 | 4,334 | hpp | C++ | csrc/op/masked_multi_head_attention.hpp | dumpmemory/EET | 4b98e2ec8fa91d73fd9d713a65e30b1f4bf35af2 | [
"Apache-2.0"
] | null | null | null | csrc/op/masked_multi_head_attention.hpp | dumpmemory/EET | 4b98e2ec8fa91d73fd9d713a65e30b1f4bf35af2 | [
"Apache-2.0"
] | null | null | null | csrc/op/masked_multi_head_attention.hpp | dumpmemory/EET | 4b98e2ec8fa91d73fd9d713a65e30b1f4bf35af2 | [
"Apache-2.0"
] | null | null | null | #ifndef _OP_MASKED_MULTI_HEAD_ATTENTION_HPP_
#define _OP_MASKED_MULTI_HEAD_ATTENTION_HPP_
#include "op/common.hpp"
#include "op/mmanager.hpp"
#include "op/meta_desc.hpp"
// #include "op/allocator.hpp"
namespace eet{
namespace op{
class MaskedMultiHeadAttention : public OpBase{
public:
... | 37.362069 | 106 | 0.472543 | dumpmemory |
406b97028ccb28cab9c9edfb9485e4646e797cca | 4,215 | cc | C++ | chrome/browser/lookalikes/lookalike_url_navigation_throttle_unittest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/lookalikes/lookalike_url_navigation_throttle_unittest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/lookalikes/lookalike_url_navigation_throttle_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/lookalikes/lookalike_url_navigation_throttle.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#inc... | 39.764151 | 80 | 0.7172 | Ron423c |
406def49682fe2b251bb469e529554cb8e02c00c | 5,872 | cpp | C++ | device/built_ins/x64/gen8/aux_translation_Gen8core.cpp | shuangwan01/compute-runtime | efdd870b92c22beb9211f4a4ceaa2f062b84b7d3 | [
"MIT"
] | null | null | null | device/built_ins/x64/gen8/aux_translation_Gen8core.cpp | shuangwan01/compute-runtime | efdd870b92c22beb9211f4a4ceaa2f062b84b7d3 | [
"MIT"
] | 1 | 2019-09-17T08:06:24.000Z | 2019-09-17T08:06:24.000Z | device/built_ins/x64/gen8/aux_translation_Gen8core.cpp | shuangwan01/compute-runtime | efdd870b92c22beb9211f4a4ceaa2f062b84b7d3 | [
"MIT"
] | 2 | 2019-09-12T05:03:02.000Z | 2020-03-12T02:17:34.000Z | #include <cstddef>
#include <cstdint>
size_t AuxTranslationBinarySize_Gen8core = 1692;
uint32_t AuxTranslationBinary_Gen8core[423] = {
0x494e5443, 0x00000420, 0x0000000b, 0x00000008, 0x00000001, 0x00000000, 0x00000000, 0x2f674870,
0xad5c17e9, 0x304ea729, 0x0000000c, 0x000003a0, 0x000001c0, 0x00000000, 0x00000... | 82.704225 | 100 | 0.790531 | shuangwan01 |
406e6a83249ee895b4022c368f06af962166f4b4 | 2,059 | cc | C++ | Algorithms/Difference/Difference.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | Algorithms/Difference/Difference.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | Algorithms/Difference/Difference.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | #include "boost/bind.hpp"
#include "Utils/VsipVector.h"
#include "Difference.h"
#include "Difference_defaults.h"
using namespace SideCar::Algorithms;
using namespace SideCar::Messages;
Difference::Difference(Controller& controller, Logger::Log& log) :
Algorithm(controller, log),
bufferSize_(Parameter::Posit... | 22.380435 | 100 | 0.683341 | jwillemsen |
40715819e82a2de3e3fc52d3b2159bfe67b89525 | 6,015 | cpp | C++ | MemPool.cpp | mkschleg/MemoryPool | 1c899bc2d4562b27102e2d2b38a75e5030008737 | [
"MIT"
] | null | null | null | MemPool.cpp | mkschleg/MemoryPool | 1c899bc2d4562b27102e2d2b38a75e5030008737 | [
"MIT"
] | null | null | null | MemPool.cpp | mkschleg/MemoryPool | 1c899bc2d4562b27102e2d2b38a75e5030008737 | [
"MIT"
] | null | null | null |
#include <iostream>
#include "MemPool.h"
Pool::Pool(int size){
//create the pool, or char array...
pool = new unsigned char[size];
//create temp which is a temp pointer to the beginning of pool
int* temp=(int*)pool;
//The value of *temp becomes the size of our array
*temp=size;
//Out puts the ... | 24.352227 | 78 | 0.590357 | mkschleg |
4072ce1c8fbf3fd3267fe10c2a504eb15dcdadac | 460 | cpp | C++ | src/ximage_overlay.cpp | jtpio/xleaflet | 67df1c06ef7b8bb753180bfea545e5ad38ac88b3 | [
"BSD-3-Clause"
] | null | null | null | src/ximage_overlay.cpp | jtpio/xleaflet | 67df1c06ef7b8bb753180bfea545e5ad38ac88b3 | [
"BSD-3-Clause"
] | null | null | null | src/ximage_overlay.cpp | jtpio/xleaflet | 67df1c06ef7b8bb753180bfea545e5ad38ac88b3 | [
"BSD-3-Clause"
] | null | null | null | #include "xleaflet/ximage_overlay.hpp"
template class XLEAFLET_API xw::xmaterialize<xlf::ximage_overlay>;
template xw::xmaterialize<xlf::ximage_overlay>::xmaterialize();
template class XLEAFLET_API xw::xtransport<xw::xmaterialize<xlf::ximage_overlay>>;
template class XLEAFLET_API xw::xgenerator<xlf::ximage_overlay>;
t... | 51.111111 | 82 | 0.813043 | jtpio |
4073a13dcbdaf83823637a3f17f6030ff05454cc | 59 | cpp | C++ | source/core/ObjLoader.cpp | zhanghao00925/CG-Path_Tracing-Algorithm | 12bd6d7334051aa2bb0544dd26bfe4ad13ec5560 | [
"MIT"
] | 3 | 2020-04-05T13:09:17.000Z | 2021-03-16T10:56:17.000Z | source/core/ObjLoader.cpp | zhanghao00925/CG-Path_Tracing-Algorithm | 12bd6d7334051aa2bb0544dd26bfe4ad13ec5560 | [
"MIT"
] | null | null | null | source/core/ObjLoader.cpp | zhanghao00925/CG-Path_Tracing-Algorithm | 12bd6d7334051aa2bb0544dd26bfe4ad13ec5560 | [
"MIT"
] | 1 | 2020-02-19T02:59:44.000Z | 2020-02-19T02:59:44.000Z | //
// Created by hao on 3/6/19.
//
#include "ObjLoader.h"
| 9.833333 | 28 | 0.59322 | zhanghao00925 |
4076ac8e691781c7c6718078f85819a903c9db24 | 263,248 | cpp | C++ | tests/xtd.drawing.unit_tests/src/color.cpp | ExternalRepositories/xtd | 5889d69900ad22a00fcb640d7850a1d599cf593a | [
"MIT"
] | null | null | null | tests/xtd.drawing.unit_tests/src/color.cpp | ExternalRepositories/xtd | 5889d69900ad22a00fcb640d7850a1d599cf593a | [
"MIT"
] | null | null | null | tests/xtd.drawing.unit_tests/src/color.cpp | ExternalRepositories/xtd | 5889d69900ad22a00fcb640d7850a1d599cf593a | [
"MIT"
] | null | null | null | #include <xtd/drawing/color.h>
#include <xtd/argument_exception.h>
#include <xtd/xtd.tunit>
using namespace xtd;
using namespace xtd::drawing;
using namespace xtd::tunit;
namespace unit_tests {
class test_class_(test_color) {
public:
void test_method_(create_empty_color) {
color c;
assert::... | 36.195243 | 91 | 0.615701 | ExternalRepositories |
4076f1eeea7219a4ee3230d0d0acf26ff0ec34b5 | 2,762 | cpp | C++ | src/cpp/JNI/org_jsfml_graphics_Image.cpp | comqdhb/JSFML | c1397d0ed1ac1c334e33a346b17b59ead2dfb862 | [
"Zlib"
] | 41 | 2015-01-10T16:39:36.000Z | 2022-02-03T12:06:12.000Z | src/cpp/JNI/org_jsfml_graphics_Image.cpp | comqdhb/JSFML | c1397d0ed1ac1c334e33a346b17b59ead2dfb862 | [
"Zlib"
] | 22 | 2015-01-26T01:36:16.000Z | 2019-01-05T07:31:49.000Z | src/cpp/JNI/org_jsfml_graphics_Image.cpp | comqdhb/JSFML | c1397d0ed1ac1c334e33a346b17b59ead2dfb862 | [
"Zlib"
] | 38 | 2015-03-12T00:55:51.000Z | 2021-11-08T22:38:43.000Z | #include <JSFML/JNI/org_jsfml_graphics_Image.h>
#include <JSFML/Intercom/Intercom.hpp>
#include <JSFML/Intercom/NativeObject.hpp>
#include <SFML/Graphics/Image.hpp>
/*
* Class: org_jsfml_graphics_Image
* Method: nativeCreate
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_org_jsfml_graphics_Image_nativeC... | 27.89899 | 122 | 0.695148 | comqdhb |
407917d32becd9a35deb6c6f126c78b4c698fda3 | 553 | cpp | C++ | Session_04/00_FlowerClassVector/src/ofApp.cpp | SAIC-ATS/ARTTECH3135 | 179805d373601ac92dcdbb51ddc4925fc65f7c22 | [
"MIT"
] | 26 | 2015-09-23T12:31:16.000Z | 2020-12-14T03:19:19.000Z | Session_04/00_FlowerClassVector/src/ofApp.cpp | SAIC-ATS/ARTTECH3135 | 179805d373601ac92dcdbb51ddc4925fc65f7c22 | [
"MIT"
] | 2 | 2017-07-05T18:14:52.000Z | 2017-10-31T00:04:13.000Z | Session_04/00_FlowerClassVector/src/ofApp.cpp | SAIC-ATS/ARTTECH3135 | 179805d373601ac92dcdbb51ddc4925fc65f7c22 | [
"MIT"
] | 37 | 2015-09-19T22:10:32.000Z | 2019-12-07T19:35:55.000Z | #include "ofApp.h"
void ofApp::setup()
{
ofBackground(80);
ofSetCircleResolution(64);
// flowers = { Flower(), Flower(), Flower() };
}
void ofApp::update()
{
for (std::size_t i = 0; i < flowers.size(); i++)
{
flowers[i].update();
}
}
void ofApp::draw()
{
for (std::size... | 13.487805 | 52 | 0.522604 | SAIC-ATS |
407c33a7706e2a2f32b2c4deff70000c1f365e79 | 1,848 | cpp | C++ | activemq-cpp/src/main/activemq/transport/inactivity/WriteChecker.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 87 | 2015-03-02T17:58:20.000Z | 2022-02-11T02:52:52.000Z | activemq-cpp/src/main/activemq/transport/inactivity/WriteChecker.cpp | korena/activemq-cpp | e4c56ee4fec75c3284b9167a7215e2d80a9a4dc4 | [
"Apache-2.0"
] | 3 | 2017-05-10T13:16:08.000Z | 2019-01-23T20:21:53.000Z | activemq-cpp/src/main/activemq/transport/inactivity/WriteChecker.cpp | korena/activemq-cpp | e4c56ee4fec75c3284b9167a7215e2d80a9a4dc4 | [
"Apache-2.0"
] | 71 | 2015-04-28T06:04:04.000Z | 2022-03-15T13:34:06.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37.714286 | 101 | 0.655844 | novomatic-tech |
407c72000ab7cfb5d427ccb9cf9a401af39c7f0d | 4,002 | cpp | C++ | src/connection.cpp | tmplt/libircppclient | 99121502564b9085b7ce81367ac73e933213706c | [
"MIT"
] | 1 | 2020-11-12T22:57:20.000Z | 2020-11-12T22:57:20.000Z | src/connection.cpp | tmplt/libircppclient | 99121502564b9085b7ce81367ac73e933213706c | [
"MIT"
] | null | null | null | src/connection.cpp | tmplt/libircppclient | 99121502564b9085b7ce81367ac73e933213706c | [
"MIT"
] | null | null | null | #include "connection.hpp"
#include <boost/bind.hpp>
#include <thread>
#include <string>
#include <iostream>
namespace irc {
connection::connection(const bool use_ssl)
: socket_(io_service_),
use_ssl_(use_ssl), ctx_(ssl::context::sslv23), ssl_socket_(io_service_, ctx_)
{
if (use_ssl_) {
ctx_.set_... | 21.516129 | 86 | 0.601949 | tmplt |
407c7ad3c3a83f0c135ad2ebe28d5cba02b3015f | 2,667 | cpp | C++ | app/android/jni/tango-gl/camera.cpp | Riotpiaole/rtabmap | 2b8b36db2ed7a08361dcffc9e2da3070b92a3883 | [
"BSD-3-Clause"
] | null | null | null | app/android/jni/tango-gl/camera.cpp | Riotpiaole/rtabmap | 2b8b36db2ed7a08361dcffc9e2da3070b92a3883 | [
"BSD-3-Clause"
] | null | null | null | app/android/jni/tango-gl/camera.cpp | Riotpiaole/rtabmap | 2b8b36db2ed7a08361dcffc9e2da3070b92a3883 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2014 Google Inc. 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 ... | 31.75 | 152 | 0.625422 | Riotpiaole |
407cb6a554f15952175ad3d696ea28e709f832f0 | 1,510 | cpp | C++ | Codechef/STRPALIN.cpp | JanaSabuj/cpmaster | d943780c7ca4badbefbce2d300848343c4032650 | [
"MIT"
] | 1 | 2020-11-29T08:36:38.000Z | 2020-11-29T08:36:38.000Z | Codechef/STRPALIN.cpp | Sahu49/CompetitiveProgramming | adf11a546f81878ad2975926219af84deb3414e8 | [
"MIT"
] | null | null | null | Codechef/STRPALIN.cpp | Sahu49/CompetitiveProgramming | adf11a546f81878ad2975926219af84deb3414e8 | [
"MIT"
] | null | null | null | /*--------------------------"SABUJ-JANA"------"JADAVPUR UNIVERSITY"--------*/
/*-------------------------------@greenindia-----------------------------------*/
/*---------------------- Magic. Do not touch.-----------------------------*/
/*------------------------------God is Great/\---------------------------------*/
#... | 22.537313 | 128 | 0.476821 | JanaSabuj |
407cf629fcf94f07c138846cc23266e7741e9941 | 7,987 | cpp | C++ | src/eval.cpp | andrew-pa/bicycle | 03a7bd1a5d08eb43cafcb6cfe4d38b3a6841895c | [
"MIT"
] | 2 | 2020-06-12T20:13:17.000Z | 2020-12-22T05:01:25.000Z | src/eval.cpp | andrew-pa/bicycle | 03a7bd1a5d08eb43cafcb6cfe4d38b3a6841895c | [
"MIT"
] | null | null | null | src/eval.cpp | andrew-pa/bicycle | 03a7bd1a5d08eb43cafcb6cfe4d38b3a6841895c | [
"MIT"
] | null | null | null | #include "eval.h"
void eval::analyzer::visit(ast::seq_stmt* s) {
s->first->visit(this);
if (s->second != nullptr) s->second->visit(this);
}
void eval::analyzer::visit(ast::block_stmt* s) {
if (s->body == nullptr) return;
instrs.push_back(std::make_shared<enter_scope_instr>());
s->body->visit(this);
instrs.push_... | 31.444882 | 107 | 0.679354 | andrew-pa |
4080d686ee627e59e199a18a5078cacd1118b1ba | 2,727 | cc | C++ | src/shared/id.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | src/shared/id.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | src/shared/id.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | /*
* Copyright 2013 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of co... | 25.485981 | 72 | 0.711038 | schinmayee |
408115ebbf873df278bc62fdb8834b2e4094ca84 | 5,029 | cpp | C++ | simulator/simulator.cpp | M-ximus/mipt-mips | ea0b131e3b70273a58311c6921998b6be4549b9c | [
"MIT"
] | null | null | null | simulator/simulator.cpp | M-ximus/mipt-mips | ea0b131e3b70273a58311c6921998b6be4549b9c | [
"MIT"
] | null | null | null | simulator/simulator.cpp | M-ximus/mipt-mips | ea0b131e3b70273a58311c6921998b6be4549b9c | [
"MIT"
] | null | null | null | /*
* simulator.cpp - interface for simulator
* Copyright 2018 MIPT-MIPS
*/
// Configurations
#include <infra/config/config.h>
#include <infra/exception.h>
// Simulators
#include <func_sim/func_sim.h>
#include <modules/core/perf_sim.h>
// ISAs
#include <mips/mips.h>
#include <risc_v/risc_v.h>
#include "simulator... | 29.409357 | 118 | 0.653211 | M-ximus |
4087cdd57b29a693ca79a42f78ff8bc0df351c52 | 124 | cpp | C++ | src/combinemode.cpp | MelvinG24/dust3d | c4936fd900a9a48220ebb811dfeaea0effbae3ee | [
"MIT"
] | 2,392 | 2016-12-17T14:14:12.000Z | 2022-03-30T19:40:40.000Z | src/combinemode.cpp | MelvinG24/dust3d | c4936fd900a9a48220ebb811dfeaea0effbae3ee | [
"MIT"
] | 106 | 2018-04-19T17:47:31.000Z | 2022-03-01T19:44:11.000Z | src/combinemode.cpp | MelvinG24/dust3d | c4936fd900a9a48220ebb811dfeaea0effbae3ee | [
"MIT"
] | 184 | 2017-11-15T09:55:37.000Z | 2022-02-21T16:30:46.000Z | #include <QObject>
#include "combinemode.h"
IMPL_CombineModeToString
IMPL_CombineModeFromString
IMPL_CombineModeToDispName
| 17.714286 | 26 | 0.879032 | MelvinG24 |
408abb005896f1833358fcc4734abc16ee18bd9c | 1,475 | hpp | C++ | lib/Util/CoutBuf.hpp | EnjoMitch/EnjoLib | 321167146657cba1497a9d3b4ffd71430f9b24b3 | [
"BSD-3-Clause"
] | 3 | 2021-06-14T15:36:46.000Z | 2022-02-28T15:16:08.000Z | lib/Util/CoutBuf.hpp | EnjoMitch/EnjoLib | 321167146657cba1497a9d3b4ffd71430f9b24b3 | [
"BSD-3-Clause"
] | 1 | 2021-07-17T07:52:15.000Z | 2021-07-17T07:52:15.000Z | lib/Util/CoutBuf.hpp | EnjoMitch/EnjoLib | 321167146657cba1497a9d3b4ffd71430f9b24b3 | [
"BSD-3-Clause"
] | 3 | 2021-07-12T14:52:38.000Z | 2021-11-28T17:10:33.000Z | #ifndef COUTBUF_H
#define COUTBUF_H
#include <Ios/Osstream.hpp>
#include <Ios/Cout.hpp>
#include <3rdParty/stdfwd.hh>
namespace EnjoLib
{
class LogBuf
{
public:
LogBuf(bool verbose = true);
virtual ~LogBuf();
void Flush();
Ostream & GetLog();
private:
//Saf... | 19.407895 | 88 | 0.650847 | EnjoMitch |
408d6ce8d45ee870b0c0f2870e5cc65eeca53ec7 | 50,562 | cpp | C++ | source/d3d11/d3d11_runtime.cpp | Kaldaien/reshade | 5dfd2eebce6a00d4c3270f3b9ba628f15c5460fa | [
"BSD-3-Clause"
] | 4 | 2017-03-23T01:52:32.000Z | 2018-10-25T00:37:06.000Z | source/d3d11/d3d11_runtime.cpp | Kaldaien/reshade | 5dfd2eebce6a00d4c3270f3b9ba628f15c5460fa | [
"BSD-3-Clause"
] | null | null | null | source/d3d11/d3d11_runtime.cpp | Kaldaien/reshade | 5dfd2eebce6a00d4c3270f3b9ba628f15c5460fa | [
"BSD-3-Clause"
] | 2 | 2017-02-28T18:10:53.000Z | 2020-08-04T02:55:35.000Z | /**
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "log.hpp"
#include "d3d11_runtime.hpp"
#include "d3d11_effect_compiler.hpp"
#include "lexer.hpp"
#include "input.hpp"
#include "resource_loading.hpp"
#include "..\deps\imgui\imgui.h"
#inclu... | 31.019632 | 208 | 0.632095 | Kaldaien |
408ff649f0f996b9dfed62f373d980e7e12b4866 | 1,672 | cpp | C++ | src/Client/States/AbstractState.cpp | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | 45 | 2018-09-29T14:16:04.000Z | 2022-03-10T18:53:58.000Z | src/Client/States/AbstractState.cpp | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | 46 | 2019-12-22T17:29:41.000Z | 2022-03-20T14:15:06.000Z | src/Client/States/AbstractState.cpp | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | 19 | 2018-09-29T11:53:25.000Z | 2022-01-14T17:00:07.000Z | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <Client/States/AbstractState.hpp>
namespace bw
{
AbstractState::AbstractState(std::shared_ptr<StateData> stateData) :
m_stateData(std::move(stateDat... | 19.44186 | 113 | 0.655502 | AntoineJT |
40916bc0026863bc9ac779a5c3456633dc8a3fbf | 715 | hpp | C++ | src/pixelwriter.hpp | intbeam/dos-rpg-game | 7b2ee87d00319da609b61f054ebf4eed34714768 | [
"MIT"
] | 2 | 2021-01-23T19:22:53.000Z | 2021-09-15T10:39:41.000Z | src/pixelwriter.hpp | intbeam/dos-rpg-game | 7b2ee87d00319da609b61f054ebf4eed34714768 | [
"MIT"
] | null | null | null | src/pixelwriter.hpp | intbeam/dos-rpg-game | 7b2ee87d00319da609b61f054ebf4eed34714768 | [
"MIT"
] | null | null | null | #ifndef PIXELWRITER_HPP
#define PIXELWRITER_HPP
#include "displayadapter.hpp"
#define PACKET_SINGLE_COLOR 0
#define PACKET_SOURCE_COPY 1
#define PACKET_SKIP 2
#define PACKET_NEXT_LINE 3
typedef struct pixel_packet
{
int count;
int value;
void *data;
int type;
} pixel_pa... | 20.428571 | 119 | 0.718881 | intbeam |
40922616eb2419a55194d539c52fe3ebe134ba23 | 3,974 | cpp | C++ | common/src/ttime.cpp | jangmys/PBBPerm | c13ad1045d0c7a36fd8d8ace728410fee38d70a4 | [
"MIT"
] | null | null | null | common/src/ttime.cpp | jangmys/PBBPerm | c13ad1045d0c7a36fd8d8ace728410fee38d70a4 | [
"MIT"
] | null | null | null | common/src/ttime.cpp | jangmys/PBBPerm | c13ad1045d0c7a36fd8d8ace728410fee38d70a4 | [
"MIT"
] | null | null | null | #include <time.h>
#include <iostream>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "../include/ttime.h"
#include "../include/arguments.h"
#include "../include/log.h"
// ___________________________________________
ttime::ttime()
{
period_set(CHECKPOINT_TTIME, arguments::checkpointv);
... | 22.451977 | 126 | 0.627831 | jangmys |
4099ed056428ea6cbf70361a8417861140a5bfa9 | 1,001 | cpp | C++ | test/sandbox/hash_map/foldable/foldr.cpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | 2 | 2015-05-07T14:29:13.000Z | 2015-07-04T10:59:46.000Z | test/sandbox/hash_map/foldable/foldr.cpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | null | null | null | test/sandbox/hash_map/foldable/foldr.cpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | null | null | null | /*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/detail/sandbox/hash_map.hpp>
#include <boost/hana/detail/assert.hpp>
#include <boost/hana/detail/constexpr.hpp>
#include <b... | 29.441176 | 78 | 0.689311 | rbock |
409eaab8bf630029623932270308d14028651142 | 3,123 | cc | C++ | chrome/browser/install_verification/win/module_ids.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/install_verification/win/module_ids.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/install_verification/win/module_ids.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/install_verification/win/module_ids.h"
#include <utility>
#include "base/logging.h"
#include "base/macros.h"
#include "base/str... | 32.53125 | 79 | 0.699007 | zipated |
40a02c2a03baa3e13058f1ebb84c0f7ea95783f8 | 7,612 | cpp | C++ | test.cpp | Tweety-FER/bioinf-bwt | 9e39456d72f0bc4964106621d5eb9e7ebe51c280 | [
"MIT"
] | 1 | 2015-12-15T22:51:32.000Z | 2015-12-15T22:51:32.000Z | test.cpp | Tweety-FER/bioinf-bwt | 9e39456d72f0bc4964106621d5eb9e7ebe51c280 | [
"MIT"
] | null | null | null | test.cpp | Tweety-FER/bioinf-bwt | 9e39456d72f0bc4964106621d5eb9e7ebe51c280 | [
"MIT"
] | null | null | null | #include "DynamicSuffixArray.h"
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <string.h>
#include <time.h>
#include <sys/time.h>
using namespace std;
//Common variables for some tests
dynsa::DynamicSuffixArray *a;
ustring dist_string;
float *fs;
int main( int argc, char* const argv[]){
dist_stri... | 29.618677 | 562 | 0.617315 | Tweety-FER |
40a1896fa3d4af5338d7fcdb488b6d6154e951bb | 286 | cc | C++ | test/abc185/d.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | test/abc185/d.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | test/abc185/d.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include "abc185/d.cc"
#include "gtest/gtest.h"
TEST(abc185d, 1) { EXPECT_EQ(3, solve(5, 2, {1, 3})); }
TEST(abc185d, 2) { EXPECT_EQ(6, solve(13, 3, {13, 3, 9})); }
TEST(abc185d, 3) { EXPECT_EQ(0, solve(5, 5, {5, 2, 1, 4, 3})); }
TEST(abc185d, 4) { EXPECT_EQ(1, solve(1, 0, {})); }
| 26 | 64 | 0.566434 | nryotaro |
40a40d6b1d333dcb37f7659c3058c4fb08b7c1f1 | 10,277 | cpp | C++ | test/TestOramReadPathEvictionRW.cpp | young-du/PathORAM | 23d18b23153adf2e4a689e26d4bd05dc7db2497e | [
"MIT"
] | 9 | 2020-08-01T22:00:47.000Z | 2021-11-08T09:44:18.000Z | test/TestOramReadPathEvictionRW.cpp | young-du/PathORAM | 23d18b23153adf2e4a689e26d4bd05dc7db2497e | [
"MIT"
] | null | null | null | test/TestOramReadPathEvictionRW.cpp | young-du/PathORAM | 23d18b23153adf2e4a689e26d4bd05dc7db2497e | [
"MIT"
] | 5 | 2020-06-24T19:23:57.000Z | 2022-01-24T14:52:48.000Z | #include "catch.h"
#include "Bucket.h"
#include "ServerStorage.h"
#include "OramInterface.h"
#include "RandForOramInterface.h"
#include "RandomForOram.h"
#include "UntrustedStorageInterface.h"
#include "OramReadPathEviction.h"
#include "OramReadPathEviction.h"
int* sampleDataReadPathEviction(int i) {
int* newArray... | 29.113314 | 126 | 0.637054 | young-du |
40a6f0044b675d29396de67bc5154e30b823347c | 967 | cpp | C++ | week1/Arrays/Rotate Array without using extraSpace.cpp | rishabhrathore055/gfg-11-weeks-workshop-on-DSA | 052039bfbe3ae261740fc73d50f32528ddd49e6a | [
"MIT"
] | 9 | 2021-08-01T16:17:04.000Z | 2022-01-22T19:51:18.000Z | week1/Arrays/Rotate Array without using extraSpace.cpp | rishabhrathore055/gfg-11-weeks-workshop-on-DSA | 052039bfbe3ae261740fc73d50f32528ddd49e6a | [
"MIT"
] | null | null | null | week1/Arrays/Rotate Array without using extraSpace.cpp | rishabhrathore055/gfg-11-weeks-workshop-on-DSA | 052039bfbe3ae261740fc73d50f32528ddd49e6a | [
"MIT"
] | 1 | 2021-08-30T12:26:11.000Z | 2021-08-30T12:26:11.000Z | #include<bits/stdc++.h>
using namespace std;
class Solution {
public:
void reverseArr(int arr[],int start,int end)
{
while(start<end)
{
swap(arr[start],arr[end]);
start++;
end--;
}
}
void rotateArr(int arr[],int d, int n)
{
d=d%n;
i... | 16.964912 | 48 | 0.463289 | rishabhrathore055 |
40ab556d22b4cd023760f114b916061bc55a866a | 1,204 | cpp | C++ | src/main/cpp/commands/SetBallHolder.cpp | Team7433/2021InfiniteRecharge | c14d3a06347cdafa22443298fdc12b9406bf6312 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/commands/SetBallHolder.cpp | Team7433/2021InfiniteRecharge | c14d3a06347cdafa22443298fdc12b9406bf6312 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/commands/SetBallHolder.cpp | Team7433/2021InfiniteRecharge | c14d3a06347cdafa22443298fdc12b9406bf6312 | [
"BSD-3-Clause"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 38.83871 | 88 | 0.596346 | Team7433 |
40ab75dc84e001432a0e4b10fcfbe5fac78fc068 | 22,392 | cpp | C++ | emulator/src/mame/drivers/piratesh.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/drivers/piratesh.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/drivers/piratesh.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
/**************************************************************************
Pirate Ship
PWB(A)354460B
MC68HC00FN16
054539 - 8-Channel ADPCM sound generator. Clock input 18.432MHz. Clock outputs 18.432/4 & 18.432/8
053250 - LVC road generator
053246A - Sprite generator
055673 - Sp... | 32.736842 | 144 | 0.700429 | rjw57 |
40ad55f29ea62bc0faf20b0fdd64a7ce4cc67377 | 3,654 | cpp | C++ | Implementation/Core/amc_parameterhandler.cpp | FabianSpangler/AutodeskMachineControlFramework | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | [
"BSD-3-Clause"
] | null | null | null | Implementation/Core/amc_parameterhandler.cpp | FabianSpangler/AutodeskMachineControlFramework | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | [
"BSD-3-Clause"
] | null | null | null | Implementation/Core/amc_parameterhandler.cpp | FabianSpangler/AutodeskMachineControlFramework | da257a4a609edbbdf3d7c5d834d61f8555c68e09 | [
"BSD-3-Clause"
] | null | null | null | /*++
Copyright (C) 2020 Autodesk Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | 28.771654 | 103 | 0.769294 | FabianSpangler |
40ad9f8285dc3f4a13de6f5d963eafac52603fdd | 36,721 | cpp | C++ | OREData/test/commodityvolcurve.cpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 335 | 2016-10-07T16:31:10.000Z | 2022-03-02T07:12:03.000Z | OREData/test/commodityvolcurve.cpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 59 | 2016-10-31T04:20:24.000Z | 2022-01-03T16:39:57.000Z | OREData/test/commodityvolcurve.cpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 180 | 2016-10-08T14:23:50.000Z | 2022-03-28T10:43:05.000Z | /*
Copyright (C) 2018 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 48.637086 | 120 | 0.685439 | mrslezak |
40ae7e2ea8c1874ba95f3a3ee5ef419fa784e7a2 | 2,023 | cpp | C++ | ares/ws/cartridge/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ws/cartridge/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ws/cartridge/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | auto Cartridge::readIO(n16 address) -> n8 {
n8 data;
switch(address) {
case 0x00c0: //BANK_ROM2
data = io.romBank2;
break;
case 0x00c1: //BANK_SRAM
data = io.sramBank;
break;
case 0x00c2: //BANK_ROM0
data = io.romBank0;
break;
case 0x00c3: //BANK_ROM1
data = io.romBank1;... | 16.581967 | 55 | 0.610479 | CasualPokePlayer |
40b1260ec98ef4fc9580894e01d570ab57783b71 | 19,222 | cpp | C++ | src/vm/assemblynativeresource.cpp | danmosemsft/coreclr | 04a3d11e4eecec2a4b7dcc81ab1575a57e30e3e2 | [
"MIT"
] | 6 | 2017-09-22T06:55:45.000Z | 2021-07-02T07:07:08.000Z | src/vm/assemblynativeresource.cpp | danmosemsft/coreclr | 04a3d11e4eecec2a4b7dcc81ab1575a57e30e3e2 | [
"MIT"
] | 2 | 2018-07-13T00:48:13.000Z | 2019-02-27T16:19:30.000Z | src/vm/assemblynativeresource.cpp | danmosemsft/coreclr | 04a3d11e4eecec2a4b7dcc81ab1575a57e30e3e2 | [
"MIT"
] | 2 | 2020-01-16T10:14:30.000Z | 2020-02-09T08:48:51.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
////////////////////////////////////////////////////////////////////////////////
// ResFile.CPP
#include "common.h... | 32.802048 | 138 | 0.606128 | danmosemsft |
40b247e8597a26a7b79c918d3032501ba456f018 | 844 | cc | C++ | 3rdParty/V8/v5.7.492.77/src/promise-utils.cc | sita1999/arangodb | 6a4f462fa209010cd064f99e63d85ce1d432c500 | [
"Apache-2.0"
] | 1 | 2018-12-08T01:58:16.000Z | 2018-12-08T01:58:16.000Z | 3rdParty/V8/v5.7.492.77/src/promise-utils.cc | lipper/arangodb | 66ea1fd4946668192e3f0d1060f0844f324ad7b8 | [
"Apache-2.0"
] | null | null | null | 3rdParty/V8/v5.7.492.77/src/promise-utils.cc | lipper/arangodb | 66ea1fd4946668192e3f0d1060f0844f324ad7b8 | [
"Apache-2.0"
] | 1 | 2018-12-05T04:56:16.000Z | 2018-12-05T04:56:16.000Z | // Copyright 2016 the V8 project 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 "src/promise-utils.h"
#include "src/factory.h"
#include "src/isolate.h"
#include "src/objects-inl.h"
namespace v8 {
namespace internal {
JSP... | 26.375 | 73 | 0.746445 | sita1999 |
40b5d8fc2532554b65212e12da18a8c740bd2163 | 6,728 | cpp | C++ | render_delegate/render_param.cpp | krishnancr/arnold-usd | e32b6042cb16a87bdef90c602e2fdc0c921a9d5c | [
"Apache-2.0"
] | 1 | 2019-12-02T13:51:27.000Z | 2019-12-02T13:51:27.000Z | render_delegate/render_param.cpp | krishnancr/arnold-usd | e32b6042cb16a87bdef90c602e2fdc0c921a9d5c | [
"Apache-2.0"
] | 1 | 2020-01-07T20:57:45.000Z | 2020-01-17T10:41:39.000Z | render_delegate/render_param.cpp | krishnancr/arnold-usd | e32b6042cb16a87bdef90c602e2fdc0c921a9d5c | [
"Apache-2.0"
] | 3 | 2019-12-03T07:45:47.000Z | 2022-01-25T08:43:05.000Z | // Copyright 2019 Luma Pictures
//
// 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 i... | 34.502564 | 114 | 0.695898 | krishnancr |
40b85203fb671cbf485eee6d339700b7e69245bd | 30,398 | cpp | C++ | libfairygui/Classes/Transition.cpp | zeas2/FairyGUI-cocos2dx | c6ddaafc1b1bf51b0ef6929d6937c0cf111cd06a | [
"MIT"
] | null | null | null | libfairygui/Classes/Transition.cpp | zeas2/FairyGUI-cocos2dx | c6ddaafc1b1bf51b0ef6929d6937c0cf111cd06a | [
"MIT"
] | null | null | null | libfairygui/Classes/Transition.cpp | zeas2/FairyGUI-cocos2dx | c6ddaafc1b1bf51b0ef6929d6937c0cf111cd06a | [
"MIT"
] | null | null | null | #include "Transition.h"
#include "GComponent.h"
#include "utils/ToolSet.h"
NS_FGUI_BEGIN
USING_NS_CC;
using namespace std;
const int FRAME_RATE = 24;
const int OPTION_IGNORE_DISPLAY_CONTROLLER = 1;
const int OPTION_AUTO_STOP_DISABLED = 2;
const int OPTION_AUTO_STOP_AT_END = 4;
class TransitionValue
{... | 27.141071 | 132 | 0.506086 | zeas2 |
40bba22d34acaf7d3cc2f0ec0642006778387ec2 | 941 | cpp | C++ | solutions/edit_distance.cpp | spythrone/gfg-solutions | 7bb5198a1a8c7a06d7f81eea78dfa9451252c6b2 | [
"MIT"
] | null | null | null | solutions/edit_distance.cpp | spythrone/gfg-solutions | 7bb5198a1a8c7a06d7f81eea78dfa9451252c6b2 | [
"MIT"
] | null | null | null | solutions/edit_distance.cpp | spythrone/gfg-solutions | 7bb5198a1a8c7a06d7f81eea78dfa9451252c6b2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int getsol(string s, string t, int n, int m, vector<vector<int>> &v){
if(n==0)
return m;
if(m==0)
return n;
if(v[n][m] > -1)
return v[n][m];
if(s[n-1] == t[m-1])
... | 22.404762 | 108 | 0.428268 | spythrone |
40bc70b2d2bf2ee43f9d3da2ea799c7b4c33856c | 11,248 | cpp | C++ | packages/monte_carlo/collision/electron/src/MonteCarlo_ScreenedRutherfordElasticElectronScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_ScreenedRutherfordElasticElectronScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_ScreenedRutherfordElasticElectronScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ScreenedRutherfordElasticElectronScatteringDistribution.cpp
//! \author Luke Kersting
//! \brief The electron screened Rutherford elastic scattering distribution definition
//!
//---------------------------------... | 39.886525 | 113 | 0.69159 | bam241 |
8ad62ce7a35a43ef06ac6339a10e8d5558d65373 | 631 | cpp | C++ | code/Remove_Nth_Node_From_End_of_List.cpp | Shiv-sharma-111/Leetcode_Solution | 52c941f32f0670271360821a8675225d83fa04a6 | [
"MIT"
] | null | null | null | code/Remove_Nth_Node_From_End_of_List.cpp | Shiv-sharma-111/Leetcode_Solution | 52c941f32f0670271360821a8675225d83fa04a6 | [
"MIT"
] | null | null | null | code/Remove_Nth_Node_From_End_of_List.cpp | Shiv-sharma-111/Leetcode_Solution | 52c941f32f0670271360821a8675225d83fa04a6 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {
ListNode* pre = new ListNode(0);
pre->next = head;
ListN... | 21.033333 | 55 | 0.44374 | Shiv-sharma-111 |
8ad646965f25dd10137c3f86db2856f25c57f91c | 431 | cpp | C++ | Source_code_result_01_06/Source_code_result_01_06.cpp | boa9448/Cpp_study | 0f445bf68978eba96a34f366ad51fe65cb4e39f8 | [
"MIT"
] | 1 | 2022-01-25T10:43:25.000Z | 2022-01-25T10:43:25.000Z | Source_code_result_01_06/Source_code_result_01_06.cpp | boa9448/Cpp_study | 0f445bf68978eba96a34f366ad51fe65cb4e39f8 | [
"MIT"
] | null | null | null | Source_code_result_01_06/Source_code_result_01_06.cpp | boa9448/Cpp_study | 0f445bf68978eba96a34f366ad51fe65cb4e39f8 | [
"MIT"
] | 1 | 2021-07-18T18:05:45.000Z | 2021-07-18T18:05:45.000Z | #include<iostream>
int BoxVolume(int lenght, int width, int heght) {
return lenght * width * heght;
}
int BoxVolume(int lenght, int width) {
return lenght * width;
}
int BoxVolume(int lenght) {
return lenght;
}
int main(void) {
std::cout << "[3, 3, 3] : " << BoxVolume(3, 3, 3) << std::endl;
std::cout << "[5, 5, ... | 23.944444 | 64 | 0.591647 | boa9448 |
8ad91ca22293db54fcc19764318ec7ebfcd7eea2 | 27,001 | cpp | C++ | src/parser/ifc3_parser.cpp | bostonceltics20/phoebe | b7e6294ee32d7f94299cd027ba2e72c3552ab246 | [
"MIT"
] | null | null | null | src/parser/ifc3_parser.cpp | bostonceltics20/phoebe | b7e6294ee32d7f94299cd027ba2e72c3552ab246 | [
"MIT"
] | null | null | null | src/parser/ifc3_parser.cpp | bostonceltics20/phoebe | b7e6294ee32d7f94299cd027ba2e72c3552ab246 | [
"MIT"
] | null | null | null | #include "ifc3_parser.h"
#include "constants.h"
#include "eigen.h"
#include "mpiHelper.h"
#include <fstream>// it may be used
#include <iostream>
#include <set>
#ifdef HDF5_AVAIL
#include <highfive/H5Easy.hpp>
#endif
// decide which ifc3 parser to use
Interaction3Ph IFC3Parser::parse(Context &context, Crystal &crysta... | 33.334568 | 109 | 0.560757 | bostonceltics20 |
8ad93e641a30183442ab18bb01ef7af9edafcf80 | 2,806 | hpp | C++ | boost/actor/response_promise.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | 2 | 2015-03-20T21:11:16.000Z | 2020-01-20T08:05:41.000Z | boost/actor/response_promise.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | boost/actor/response_promise.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | /******************************************************************************\
* *
* ____ _ _ _ *
* | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *... | 36.921053 | 80 | 0.465075 | syoummer |
8adaf485d11acb911b7c988d600c130fce03a36e | 1,927 | cpp | C++ | Filesystem/Problem33/main.cpp | vegemil/ModernCppChallengeStudy | 52c2bb22c76ae3f3a883ae479cd70ac27513e78d | [
"MIT"
] | null | null | null | Filesystem/Problem33/main.cpp | vegemil/ModernCppChallengeStudy | 52c2bb22c76ae3f3a883ae479cd70ac27513e78d | [
"MIT"
] | null | null | null | Filesystem/Problem33/main.cpp | vegemil/ModernCppChallengeStudy | 52c2bb22c76ae3f3a883ae479cd70ac27513e78d | [
"MIT"
] | null | null | null | // 33. Tabular printing of a list of processes
// Suppose you have a snapshot of the list of all processes in a system. The
// information for each process includes name, identifier, status (which can be
// either running or suspended), account name (under which the process runs),
// memory size in bytes, and platform ... | 48.175 | 83 | 0.741048 | vegemil |
8add19cc54e5ebc2f76a2f519d709fc650857952 | 1,090 | cpp | C++ | src/rendering/ui/ui_object.cpp | krait-games/hyperion-engine | 5c52085658630fbf0992f794ecfcb25325b80b1c | [
"MIT"
] | 21 | 2022-01-23T15:20:59.000Z | 2022-03-31T22:10:14.000Z | src/rendering/ui/ui_object.cpp | krait-games/hyperion-engine | 5c52085658630fbf0992f794ecfcb25325b80b1c | [
"MIT"
] | 2 | 2022-01-30T22:24:58.000Z | 2022-03-28T02:37:07.000Z | src/rendering/ui/ui_object.cpp | krait-games/hyperion-engine | 5c52085658630fbf0992f794ecfcb25325b80b1c | [
"MIT"
] | 2 | 2022-02-10T13:55:26.000Z | 2022-03-31T22:10:16.000Z | #include "ui_object.h"
#include "../shader_manager.h"
#include "../shaders/ui/ui_object_shader.h"
#include "../../util/mesh_factory.h"
#include <algorithm>
namespace hyperion {
namespace ui {
UIObject::UIObject(const std::string &name)
: Node(name)
{
GetMaterial().depth_test = false;
GetMaterial().depth_w... | 22.244898 | 108 | 0.659633 | krait-games |
8adeb089c923a09e22cd22039c3730dd63aa7448 | 1,608 | cpp | C++ | B2G/gecko/content/svg/content/src/SVGMotionSMILAttr.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/content/svg/content/src/SVGMotionSMILAttr.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/content/svg/content/src/SVGMotionSMILAttr.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
/* representation of a dummy attri... | 27.254237 | 79 | 0.710821 | wilebeast |
8ae4e2ebf43f447bb0a682a75c0a49e80ec0fec8 | 32,004 | hpp | C++ | include/GlobalNamespace/PlayerSpecificSettings.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/PlayerSpecificSettings.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/PlayerSpecificSettings.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: NoteJumpDurationTypeSettings... | 70.030635 | 1,010 | 0.76731 | RedBrumbler |
8ae5d409101796e92d796219f8f8aed03f9df2df | 741 | cpp | C++ | FortuneHunter/FortuneHunter/ConfirmQuitCommandProcessor.cpp | playdeezgames/FortuneHunter | 44bbf19e728aa8c3330a08876809dd471b92311b | [
"MIT"
] | null | null | null | FortuneHunter/FortuneHunter/ConfirmQuitCommandProcessor.cpp | playdeezgames/FortuneHunter | 44bbf19e728aa8c3330a08876809dd471b92311b | [
"MIT"
] | null | null | null | FortuneHunter/FortuneHunter/ConfirmQuitCommandProcessor.cpp | playdeezgames/FortuneHunter | 44bbf19e728aa8c3330a08876809dd471b92311b | [
"MIT"
] | null | null | null | #include "ConfirmQuitCommandProcessor.h"
void ConfirmQuitCommandProcessor::OnCommand(const Command& command)
{
switch (command)
{
case Command::UP:
case Command::DOWN:
confirmState = (confirmState==ConfirmState::YES) ? (ConfirmState::NO) : (ConfirmState::YES);
return;
case Command::BACK:
SetUIState(UIState::... | 20.027027 | 94 | 0.731444 | playdeezgames |
8ae6248f6889794f112db1896ac4c959f75d3c90 | 712 | cpp | C++ | casbin/persist/file_adapter/batch_file_adapter.cpp | xcaptain/casbin-cpp | d90e72d921f4a3369692913cfbcab2047343a49b | [
"Apache-2.0"
] | null | null | null | casbin/persist/file_adapter/batch_file_adapter.cpp | xcaptain/casbin-cpp | d90e72d921f4a3369692913cfbcab2047343a49b | [
"Apache-2.0"
] | null | null | null | casbin/persist/file_adapter/batch_file_adapter.cpp | xcaptain/casbin-cpp | d90e72d921f4a3369692913cfbcab2047343a49b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "pch.h"
#include "./batch_file_adapter.h"
#include "../../exception/unsupported_operation_exception.h"
// NewAdapter is the constructor for Adapter.
BatchFileAdapter* BatchFileAdapter :: NewAdapter(string file_path) {
BatchFileAdapter* adapter = new BatchFileAdapter;
adapter->file_path ... | 32.363636 | 98 | 0.761236 | xcaptain |
8ae653a690ed033b5e708e7021f98998082f0ca1 | 1,160 | cc | C++ | base/allocator/win_allocator.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | base/allocator/win_allocator.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | base/allocator/win_allocator.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 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.
// This is a simple allocator based on the windows heap.
extern "C" {
HANDLE win_heap;
bool win_heap_init(bool use_lfh) {
win_heap = HeapCreate(0... | 22.745098 | 73 | 0.662931 | Scopetta197 |
8ae8f26615e9d030e89494029408e687f67685d0 | 2,290 | cpp | C++ | auditory/package/voicelock/native/audiorecog/frontend/preprocess/preprocess.cpp | yao-matrix/mProto | e5fecce2693056ac53f7d34d00801829ea1094c3 | [
"Apache-2.0"
] | 3 | 2016-11-06T04:55:11.000Z | 2019-05-18T06:56:10.000Z | auditory/package/voicelock/native/audiorecog/frontend/preprocess/preprocess.cpp | yao-matrix/mProto | e5fecce2693056ac53f7d34d00801829ea1094c3 | [
"Apache-2.0"
] | null | null | null | auditory/package/voicelock/native/audiorecog/frontend/preprocess/preprocess.cpp | yao-matrix/mProto | e5fecce2693056ac53f7d34d00801829ea1094c3 | [
"Apache-2.0"
] | 4 | 2016-11-27T01:08:41.000Z | 2021-03-11T05:32:04.000Z | #include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <string.h>
#include "math/mmath.h"
#include "AudioDef.h"
#include "AudioUtil.h"
#include "AudioRecog.h"
#include "AudioConfig.h"
/* signal normalization */
void sig_normalize( AUD_Int16s *pInBuf, AUD_Int16s *pOutBuf, AUD_Int32s len... | 17.615385 | 85 | 0.500437 | yao-matrix |
8aef81e187d39ab8b4eb1c25fb16944072ff28a5 | 3,382 | cc | C++ | src/lib/hooks/tests/full_callout_library.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | src/lib/hooks/tests/full_callout_library.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | src/lib/hooks/tests/full_callout_library.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
//
// 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/.
/// @file
/// @brief Full callout library
///... | 24.867647 | 78 | 0.693968 | sebschrader |
8af10568434c6c5ef925481bedf9d47380ad0372 | 3,167 | cpp | C++ | tests/stage2/motion/motion.cpp | PtCu/RenderToy | a53be2b6d8c91f7b132cee47b377e327a9605fbb | [
"MIT"
] | 2 | 2021-03-17T07:32:18.000Z | 2021-04-01T14:58:51.000Z | tests/stage2/motion/motion.cpp | PtCu/RenderToy | a53be2b6d8c91f7b132cee47b377e327a9605fbb | [
"MIT"
] | null | null | null | tests/stage2/motion/motion.cpp | PtCu/RenderToy | a53be2b6d8c91f7b132cee47b377e327a9605fbb | [
"MIT"
] | null | null | null |
#include <render_toy.h>
#include <ROOT_PATH.h>
using namespace platinum;
using namespace glm;
using namespace std;
const static string root_path(ROOT_PATH);
const static string assets_path = root_path + "/assets/";
void random_scene(Scene &world)
{
int n = 500;
shared_ptr<Object> sph;
sph = make_shared... | 39.098765 | 142 | 0.462899 | PtCu |
8af2d89b5a52efc264df5851264851c7046575bc | 463 | cpp | C++ | gameboy/src/harucar/LuaCommandViewer.cpp | JJhuk/study_emu | 24f8a55496486d534edd1cb713b056d862641a22 | [
"MIT"
] | 9 | 2020-05-22T09:42:42.000Z | 2022-01-06T00:51:15.000Z | gameboy/src/harucar/LuaCommandViewer.cpp | JJhuk/study_emu | 24f8a55496486d534edd1cb713b056d862641a22 | [
"MIT"
] | 1 | 2021-04-18T06:56:03.000Z | 2021-04-18T06:56:03.000Z | gameboy/src/harucar/LuaCommandViewer.cpp | JJhuk/study_emu | 24f8a55496486d534edd1cb713b056d862641a22 | [
"MIT"
] | 3 | 2020-05-17T15:31:14.000Z | 2022-01-06T12:18:03.000Z | //
// Created by nhy20 on 2020-11-01.
//
#include "LuaCommandViewer.h"
#include "imgui.h"
void LuaCommandViewer::Render(std::shared_ptr<Base::Interface::Provider> provider_ptr,
std::shared_ptr<UI::Structure::UIEventProtocol> protocol_ptr)
{
ImGui::Begin("Lua Command Viewer");
if (ImGui::Button("Reload"))
... | 18.52 | 86 | 0.682505 | JJhuk |
8af594afdcbf53ad17242d6af37d99888f3303bb | 2,599 | hpp | C++ | source/Utilities/BasicCameraControllers.hpp | dantros/MonaEngine | e3d0048c2fe2dd282b84686f0e31e5741714222b | [
"MIT"
] | null | null | null | source/Utilities/BasicCameraControllers.hpp | dantros/MonaEngine | e3d0048c2fe2dd282b84686f0e31e5741714222b | [
"MIT"
] | null | null | null | source/Utilities/BasicCameraControllers.hpp | dantros/MonaEngine | e3d0048c2fe2dd282b84686f0e31e5741714222b | [
"MIT"
] | 1 | 2021-09-07T03:06:01.000Z | 2021-09-07T03:06:01.000Z | #pragma once
#ifndef BASICCAMERACONTROLLER_HPP
#define BASICCAMERACONTROLLER_HPP
#include "../World/World.hpp"
#include "../Platform/KeyCodes.hpp"
namespace Mona {
class BasicPerspectiveCamera : public GameObject {
public:
BasicPerspectiveCamera() = default;
virtual void UserStartUp(World& world... | 30.576471 | 94 | 0.671027 | dantros |
8af9fdf0734d9c3275feef5e98183229dcb64966 | 2,372 | hpp | C++ | dal/platform/platform.hpp | lnsongxf/Derivatives-Algorithms-Lib | 4ba95f55a26b7f5f872a39db306de9206bfc2a3e | [
"MIT"
] | 2 | 2022-02-23T02:10:02.000Z | 2022-02-23T02:10:04.000Z | dal/platform/platform.hpp | lnsongxf/Derivatives-Algorithms-Lib | 4ba95f55a26b7f5f872a39db306de9206bfc2a3e | [
"MIT"
] | null | null | null | dal/platform/platform.hpp | lnsongxf/Derivatives-Algorithms-Lib | 4ba95f55a26b7f5f872a39db306de9206bfc2a3e | [
"MIT"
] | null | null | null | //
// Created by Cheng Li on 17-12-19.
//
#pragma once
#include <cassert>
#include <dal/utilities/noncopyable.hpp>
#include <memory>
#include <utility>
#ifdef MIN
#undef MIN
#endif
#ifdef MAX
#undef MAX
#endif
using std::make_pair;
using std::pair;
template <class T_> using scoped_ptr = const std::unique_ptr<T_>;... | 28.238095 | 120 | 0.604553 | lnsongxf |
8afb77a9feaee8d9945ff6cd962d4f467e66f58e | 5,812 | cpp | C++ | test_conformance/basic/test_writeimage_int16.cpp | jainvikas8/OpenCL-CTS | b7e7a3eb65d80d6847bd522f66f876fd5f6fe938 | [
"Apache-2.0"
] | 130 | 2017-05-16T14:15:25.000Z | 2022-03-26T22:31:05.000Z | test_conformance/basic/test_writeimage_int16.cpp | jainvikas8/OpenCL-CTS | b7e7a3eb65d80d6847bd522f66f876fd5f6fe938 | [
"Apache-2.0"
] | 919 | 2017-05-19T08:01:20.000Z | 2022-03-29T23:08:35.000Z | test_conformance/basic/test_writeimage_int16.cpp | jainvikas8/OpenCL-CTS | b7e7a3eb65d80d6847bd522f66f876fd5f6fe938 | [
"Apache-2.0"
] | 125 | 2017-05-17T01:14:15.000Z | 2022-03-25T22:34:42.000Z | //
// Copyright (c) 2017 The Khronos Group 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 la... | 29.653061 | 119 | 0.63128 | jainvikas8 |
c10084d69335f87a04e35a413d4e8101307b5f0d | 1,497 | hpp | C++ | include/LIEF/Abstract/json.hpp | lkollar/LIEF | 04037644af42c75fbace582bd2eb64c061a197e5 | [
"Apache-2.0"
] | 4 | 2020-09-19T21:23:47.000Z | 2020-10-02T19:17:04.000Z | include/LIEF/Abstract/json.hpp | prarthanats/LIEF | b26abae9a9b0dc0e82dd803b7b54a2a9dfe1034a | [
"Apache-2.0"
] | 1 | 2018-12-22T16:08:03.000Z | 2018-12-22T16:08:21.000Z | include/LIEF/Abstract/json.hpp | prarthanats/LIEF | b26abae9a9b0dc0e82dd803b7b54a2a9dfe1034a | [
"Apache-2.0"
] | 1 | 2018-12-30T10:00:48.000Z | 2018-12-30T10:00:48.000Z | /* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 appli... | 29.352941 | 75 | 0.741483 | lkollar |
c100912d80436574c73b1a06d149290ec13bb5e5 | 1,333 | cpp | C++ | ros/ROS_Helpers.cpp | jwatson-CO-edu/cpp_helpers | be83019b749d6cdb8ed09e6fcedc9ca8983f3e19 | [
"MIT"
] | null | null | null | ros/ROS_Helpers.cpp | jwatson-CO-edu/cpp_helpers | be83019b749d6cdb8ed09e6fcedc9ca8983f3e19 | [
"MIT"
] | null | null | null | ros/ROS_Helpers.cpp | jwatson-CO-edu/cpp_helpers | be83019b749d6cdb8ed09e6fcedc9ca8983f3e19 | [
"MIT"
] | null | null | null | /***********
ROS_Helpers.cpp
James Watson , 2018 June
Common ROS Functions & Tasks
Template Version: 2017-09-23
***********/
#include "ROS_Helpers.h"
// === Classes and Structs =================================================================================================================
// ___ End Classes __... | 22.59322 | 140 | 0.505626 | jwatson-CO-edu |
c10392664e47ce224775b7ff50610219c4869736 | 23,489 | cpp | C++ | src/Simulation.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | 2 | 2018-01-03T01:26:54.000Z | 2022-01-01T08:43:04.000Z | src/Simulation.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | null | null | null | src/Simulation.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | null | null | null |
#include "Precomp_OpenGL.h"
#include "Simulation.hpp"
#include "Resources.hpp"
#include "ParamUtils.hpp"
#include "ocl/OCLUtils.hpp"
#include "SOIL.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <cmath>
#include <sstream>
#include <algorithm>
using namespace std;
cl::Memory Simulation::CreateCachedBuffer(c... | 37.763666 | 196 | 0.680787 | ericwolter |
c105302eb2ae2bf3b741dcf95bda20b6215e954a | 3,446 | cpp | C++ | examples/KNeighbors.cpp | aniketsharma00411/alpha | 4a1010150388022a6c799e9204621c281b1f92cb | [
"MIT"
] | 1 | 2021-04-04T12:12:54.000Z | 2021-04-04T12:12:54.000Z | examples/KNeighbors.cpp | mlcpp/alpha | 4a1010150388022a6c799e9204621c281b1f92cb | [
"MIT"
] | 3 | 2020-09-17T05:14:58.000Z | 2020-09-20T11:12:29.000Z | examples/KNeighbors.cpp | mlcpp/alpha | 4a1010150388022a6c799e9204621c281b1f92cb | [
"MIT"
] | 1 | 2020-09-16T10:30:11.000Z | 2020-09-16T10:30:11.000Z | // import header files
#include <KNeighborsClassifier.hpp>
#include <matplotlibcpp.hpp>
#include <model_selection.hpp>
namespace plt = matplotlibcpp;
// Example program
// Read csv files to get a Matrix object.
// Slice the Matrix object to a suitable size.
// Plot known data points
// Run KNeighborsClustering and pr... | 43.075 | 94 | 0.652351 | aniketsharma00411 |
c106c1d7cbab7d15f10e6b3920c90895042bd2b8 | 1,559 | cpp | C++ | fastSLAMproject/src/gmapping/openslam_gmapping/grid/graphmap.cpp | HouCongCN/Gmapping-Code | 946db1678a99043fc179a5a82499c4bd98cd19d6 | [
"MIT"
] | null | null | null | fastSLAMproject/src/gmapping/openslam_gmapping/grid/graphmap.cpp | HouCongCN/Gmapping-Code | 946db1678a99043fc179a5a82499c4bd98cd19d6 | [
"MIT"
] | null | null | null | fastSLAMproject/src/gmapping/openslam_gmapping/grid/graphmap.cpp | HouCongCN/Gmapping-Code | 946db1678a99043fc179a5a82499c4bd98cd19d6 | [
"MIT"
] | null | null | null | #ifndef GRAPHMAP_H
#define GRAPHMAP_H
#include <list>
#include "../include/gmapping/utils/point.h"
#include "../include/gmapping/grid/map.h"
#include <utils/graph.h>
/*
* 这个地方感觉像是用用来做图优化的。
* 不过不知道为什么最终没有用来做这个。
*/
namespace GMapping {
class RasterMap;
struct GraphMapPatch
{
typedef typename std::list<IntPoint> ... | 21.067568 | 94 | 0.738935 | HouCongCN |
c10777ba36df234d1b2d19455d1c64fdf57e0080 | 375 | cpp | C++ | Olympiad Solutions/URI/1544.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/URI/1544.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/URI/1544.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/1544
#include <cstdio>
int main(){
long long a,b;
while(scanf("%lld %lld",&a,&b) != EOF){
long long resp = 1;
for(long long i = a - b + 1;i <= a;i++){
resp *= i;
while(resp % 10LL == 0LL) resp /= 10LL;
resp %= 100000000... | 22.058824 | 73 | 0.592 | Ashwanigupta9125 |
c1092fef99d77914804941d406c360279b0ff2a9 | 484 | cpp | C++ | acmp.ru/0317/317.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/0317/317.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/0317/317.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | #include <iostream>
//#include <ctime>
using namespace std;
int main(){
ios::sync_with_stdio(false);
long long answer = 0;
int x,y,z,w;
cin >> x >> y >> z >> w;
//double be = clock();
for(int i = w/x; i>=0;i--)
{
for(int j = (w-x*i)/y; j>=0; j--)
{
for(int k = (w-x*i-y*j)/z; k>=0; k--)
... | 17.285714 | 41 | 0.464876 | mstrechen |
c10a693697c48bb72d21c2338637ca7d0e4c8943 | 3,699 | hxx | C++ | include/criterion/internal/assert/op.hxx | Keenuts/Criterion | 982e569233fac4c1e3b984611fe52bdb991d82ec | [
"MIT"
] | 6 | 2019-01-18T13:36:55.000Z | 2021-03-15T05:59:34.000Z | include/criterion/internal/assert/op.hxx | Keenuts/Criterion | 982e569233fac4c1e3b984611fe52bdb991d82ec | [
"MIT"
] | null | null | null | include/criterion/internal/assert/op.hxx | Keenuts/Criterion | 982e569233fac4c1e3b984611fe52bdb991d82ec | [
"MIT"
] | 1 | 2019-06-09T11:44:00.000Z | 2019-06-09T11:44:00.000Z | /*
* The MIT License (MIT)
*
* Copyright © 2016 Franklin "Snaipe" Mathieu <http://snai.pe/>
*
* 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 lim... | 45.666667 | 106 | 0.550419 | Keenuts |
c10b03340959e31b498915378adf29241476e537 | 592 | cc | C++ | dynet/saxe-init.cc | ruyimarone/dynet | 67bace3fb1d79327ada53b248e497c894819760d | [
"Apache-2.0"
] | 3,307 | 2016-10-08T15:51:28.000Z | 2022-03-30T04:40:44.000Z | dynet/saxe-init.cc | ruyimarone/dynet | 67bace3fb1d79327ada53b248e497c894819760d | [
"Apache-2.0"
] | 1,348 | 2016-10-08T14:36:55.000Z | 2022-03-26T15:19:27.000Z | dynet/saxe-init.cc | ruyimarone/dynet | 67bace3fb1d79327ada53b248e497c894819760d | [
"Apache-2.0"
] | 741 | 2016-10-09T04:44:30.000Z | 2022-03-29T22:29:02.000Z | #include "dynet/saxe-init.h"
#include "dynet/tensor.h"
#include "dynet/tensor-eigen.h"
#include "dynet/globals.h"
#include <random>
#include <cstring>
#include <Eigen/SVD>
using namespace std;
namespace dynet {
void orthonormal_random(unsigned dd, float g, Tensor& x) {
Tensor t;
t.d = Dim({dd, dd});
t.v = ne... | 20.413793 | 69 | 0.660473 | ruyimarone |
c10b078745addf396b476a277c021ea7ac972ce3 | 610 | cpp | C++ | Workshops/salaries_workshop_main.cpp | hoelzl/CleanCodeCppCatch | 88861faf48967e840b1d66f7faf94c0e9bef26a4 | [
"MIT"
] | null | null | null | Workshops/salaries_workshop_main.cpp | hoelzl/CleanCodeCppCatch | 88861faf48967e840b1d66f7faf94c0e9bef26a4 | [
"MIT"
] | null | null | null | Workshops/salaries_workshop_main.cpp | hoelzl/CleanCodeCppCatch | 88861faf48967e840b1d66f7faf94c0e9bef26a4 | [
"MIT"
] | null | null | null | #include "salaries_workshop.h"
#include <iostream>
#include <vector>
void pay_some_salaries()
{
std::vector<double> all_salaries{};
double tax_1{handle_money_stuff(3, 240.0, "Joe", all_salaries)};
double tax_2{handle_money_stuff(5, 240.0, "Jack", all_salaries)};
double tax_3{handle_money_stuff(6, 260.0... | 29.047619 | 76 | 0.62623 | hoelzl |
c10b9fab74b9b346a7c874f34c791de5bccca6af | 1,978 | cpp | C++ | src/ImageTile.cpp | kamilsan/haruno-renderer | 0c3d9cff1efc3a5735b3304e2037bf251a64450e | [
"MIT"
] | 1 | 2022-03-30T19:54:27.000Z | 2022-03-30T19:54:27.000Z | src/ImageTile.cpp | kamilsan/haruno-renderer | 0c3d9cff1efc3a5735b3304e2037bf251a64450e | [
"MIT"
] | null | null | null | src/ImageTile.cpp | kamilsan/haruno-renderer | 0c3d9cff1efc3a5735b3304e2037bf251a64450e | [
"MIT"
] | null | null | null | #include "ImageTile.hpp"
#include <cstring>
#include <fstream>
ImageTile::ImageTile(unsigned int minX, unsigned int maxX, unsigned int minY, unsigned int maxY)
: minX_(minX), maxX_(maxX), minY_(minY), maxY_(maxY) {
if (maxX < minX || maxY < minY) {
throw std::runtime_error("Improper ImageTile bounds!");
}... | 24.121951 | 96 | 0.641052 | kamilsan |
c10bca075ed75ff941fa1357f0394bd6b9174e6c | 7,562 | cpp | C++ | system/apps/115_hunter/source/main.cpp | tomwei7/LA104 | fdf04061f37693d37e2812ed6074348e65d7e5f9 | [
"MIT"
] | 336 | 2018-11-23T23:54:15.000Z | 2022-03-21T03:47:05.000Z | system/apps/115_hunter/source/main.cpp | tomwei7/LA104 | fdf04061f37693d37e2812ed6074348e65d7e5f9 | [
"MIT"
] | 56 | 2019-02-01T05:01:07.000Z | 2022-03-26T16:00:24.000Z | system/apps/115_hunter/source/main.cpp | tomwei7/LA104 | fdf04061f37693d37e2812ed6074348e65d7e5f9 | [
"MIT"
] | 52 | 2019-02-06T17:05:04.000Z | 2022-03-04T12:30:53.000Z | #include <library.h>
#include "../../os_host/source/framework/Console.h"
#include "../../os_host/source/framework/SimpleApp.h"
#include "hunter.h"
#include "framework/shapes.h"
#include "framework/layout.h"
using namespace BIOS;
class CHunterInterface
{
public:
void StartZone(int zone, int minutes)
{
... | 27.007143 | 167 | 0.470246 | tomwei7 |
c10c1fa2212ad463fe21e8b316ab313120778ff3 | 30,223 | cpp | C++ | amd_tressfx_sample/src/Lights/SuLightManager.cpp | kostenickj/TressFX | 9a9a1008fbcc9cc71a6b08331a75bed81c2119ac | [
"MIT"
] | 1 | 2020-07-20T19:07:05.000Z | 2020-07-20T19:07:05.000Z | amd_tressfx_sample/src/Lights/SuLightManager.cpp | kostenickj/TressFX | 9a9a1008fbcc9cc71a6b08331a75bed81c2119ac | [
"MIT"
] | null | null | null | amd_tressfx_sample/src/Lights/SuLightManager.cpp | kostenickj/TressFX | 9a9a1008fbcc9cc71a6b08331a75bed81c2119ac | [
"MIT"
] | null | null | null | //
// Copyright (c) 2017 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 rig... | 39.767105 | 167 | 0.483274 | kostenickj |
c11426d3563aa8365db081c4919eb131a87f8cc4 | 2,789 | cpp | C++ | drivers/unix/ip_unix.cpp | ayrat-forks/godot | 02669e95a4975898d97aeaedc913b16f60688a01 | [
"MIT"
] | 3 | 2015-11-10T03:53:31.000Z | 2019-11-10T20:39:47.000Z | drivers/unix/ip_unix.cpp | bshawk/godot | c12a8e922ff724d7fe9909c16f9a1b5aec7f010b | [
"MIT"
] | 2 | 2021-08-18T15:38:29.000Z | 2021-08-31T08:06:16.000Z | drivers/unix/ip_unix.cpp | bshawk/godot | c12a8e922ff724d7fe9909c16f9a1b5aec7f010b | [
"MIT"
] | null | null | null | /*************************************************************************/
/* ip_unix.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 40.42029 | 86 | 0.498745 | ayrat-forks |
c116098ef8a95e80c77ca1d1705cdb6924b0c9e5 | 520 | cpp | C++ | CodeForces/Complete/1200-1299/1200A-Hotelier.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/1200-1299/1200A-Hotelier.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/1200-1299/1200A-Hotelier.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <iostream>
#include <vector>
int main(){
const int cap = 10;
long n; std::cin >> n;
std::string s; std::cin >> s;
std::vector<int> a(cap, 0);
for(long p = 0; p < n; p++){
if(s[p] == 'L'){for(long u = 0; u < cap; u++){if(!a[u]){a[u] = 1; break;}}}
else if(s[p] == 'R'){for(... | 23.636364 | 93 | 0.434615 | Ashwanigupta9125 |
c1177ae0d3a2d7f1c45ec7dcc59e50650644849e | 4,626 | cpp | C++ | blas/L3/examples/gemm/gemm_common_example.cpp | heeran-xilinx/Vitis_Libraries | ab3f6969e397dc44705a7278fb0d480e905e72db | [
"Apache-2.0"
] | null | null | null | blas/L3/examples/gemm/gemm_common_example.cpp | heeran-xilinx/Vitis_Libraries | ab3f6969e397dc44705a7278fb0d480e905e72db | [
"Apache-2.0"
] | null | null | null | blas/L3/examples/gemm/gemm_common_example.cpp | heeran-xilinx/Vitis_Libraries | ab3f6969e397dc44705a7278fb0d480e905e72db | [
"Apache-2.0"
] | 1 | 2021-06-08T06:18:10.000Z | 2021-06-08T06:18:10.000Z | /*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 30.84 | 106 | 0.585171 | heeran-xilinx |
c1183c22b37dd1958f3e3efd5dd808a8c5aa282b | 2,697 | cpp | C++ | Source/FSD/Private/LineCutterProjectile.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | null | null | null | Source/FSD/Private/LineCutterProjectile.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | null | null | null | Source/FSD/Private/LineCutterProjectile.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | null | null | null | #include "LineCutterProjectile.h"
#include "Net/UnrealNetwork.h"
#include "Particles/ParticleSystemComponent.h"
#include "DamageComponent.h"
#include "Components/SceneComponent.h"
void ALineCutterProjectile::UpdateBeamLocations() {
}
void ALineCutterProjectile::TerrainSweep(const FVector& Left, const FVector& Right) ... | 35.486842 | 108 | 0.754542 | trumank |
c11c3ec3e0ee66d9266874f466fe8a91a4c39dd6 | 10,080 | hpp | C++ | include/GlobalNamespace/RemoteProcedureCall.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/RemoteProcedureCall.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/RemoteProcedureCall.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: IRemoteProcedu... | 58.604651 | 241 | 0.754365 | marksteward |
c11d9c294e7f6cd4f7f77911292c4233a1cda89a | 4,966 | hh | C++ | RecoDataProducts/inc/TrackSummary.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | RecoDataProducts/inc/TrackSummary.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | RecoDataProducts/inc/TrackSummary.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | // TrackSummary is a persistable class to communicate track
// reconstruction results to physics analyses.
//
// Andrei Gaponenko, 2014
#ifndef RecoDataProducts_TrackSummary_hh
#define RecoDataProducts_TrackSummary_hh
#include "CLHEP/Vector/ThreeVector.h"
#include "CLHEP/Matrix/SymMatrix.h"
#include <ostream>
class... | 32.457516 | 103 | 0.622634 | bonventre |
c11fbfd64ba4424d553bca0891eb247a02330666 | 35,836 | cpp | C++ | src/OpenSpaceToolkit/Core/Types/Integer.cpp | open-space-collective/library-core | 0b031edb403e2d657d02761b07dd4b35680fcafc | [
"Apache-2.0"
] | 8 | 2018-06-13T06:50:34.000Z | 2019-07-15T03:36:50.000Z | src/OpenSpaceToolkit/Core/Types/Integer.cpp | open-space-collective/library-core | 0b031edb403e2d657d02761b07dd4b35680fcafc | [
"Apache-2.0"
] | 37 | 2018-06-12T07:42:38.000Z | 2020-01-05T01:13:27.000Z | src/OpenSpaceToolkit/Core/Types/Integer.cpp | open-space-collective/library-core | 0b031edb403e2d657d02761b07dd4b35680fcafc | [
"Apache-2.0"
] | 2 | 2020-03-05T18:17:24.000Z | 2020-04-07T18:18:24.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Core
/// @file OpenSpaceToolkit/Core/Types/Integer.cpp
/// @author Lucas Brémond <lucas@loftorbital... | 31.352581 | 333 | 0.426024 | open-space-collective |
c12012ee4cad24b03a03b597d150b1a9011f1fa5 | 4,156 | hpp | C++ | main/app_camera.hpp | andriyadi/esp32-custom-vision | ebc3f781fd85bf063d96ae89bb56bfa263fa6af5 | [
"Apache-2.0"
] | 44 | 2019-02-11T04:53:38.000Z | 2021-10-04T12:00:38.000Z | main/app_camera.hpp | andriyadi/esp32-custom-vision | ebc3f781fd85bf063d96ae89bb56bfa263fa6af5 | [
"Apache-2.0"
] | 2 | 2019-06-20T18:03:10.000Z | 2021-01-07T09:18:38.000Z | main/app_camera.hpp | andriyadi/esp32-custom-vision | ebc3f781fd85bf063d96ae89bb56bfa263fa6af5 | [
"Apache-2.0"
] | 12 | 2019-02-12T06:27:11.000Z | 2021-02-16T22:46:45.000Z | /*
* app_camera.hpp
*
* Created on: Feb 8, 2019
* Author: andri
*/
#ifndef MAIN_APP_CAMERA_HPP_
#define MAIN_APP_CAMERA_HPP_
#include "esp_err.h"
#include "esp_camera.h"
#include "sdkconfig.h"
/**
* PIXFORMAT_RGB565, // 2BPP/RGB565
* PIXFORMAT_YUV422, // 2BPP/YUV422
* PIXFORMAT_GRAYSCALE, // 1BPP... | 24.304094 | 54 | 0.723532 | andriyadi |
c123bb7da49d4cbe99b07c6fb257ee58d97cd5b2 | 308 | cc | C++ | src/test/hello.cc | smikes/inchi | 7a980f01b2c3eef3b5cf4f2502d814724366d385 | [
"MIT"
] | 7 | 2015-01-21T04:48:06.000Z | 2021-05-26T09:10:58.000Z | src/test/hello.cc | smikes/inchi | 7a980f01b2c3eef3b5cf4f2502d814724366d385 | [
"MIT"
] | 1 | 2018-02-20T19:47:40.000Z | 2018-02-20T19:47:40.000Z | src/test/hello.cc | smikes/inchi | 7a980f01b2c3eef3b5cf4f2502d814724366d385 | [
"MIT"
] | 1 | 2015-06-25T15:09:14.000Z | 2015-06-25T15:09:14.000Z | #include "CppUnitLite/TestHarness.h"
#include <string>
static inline SimpleString StringFrom(const std::string& value)
{
return SimpleString(value.c_str());
}
TEST( Hello, world )
{
std::string s1("Hello"), s2("Hello"), s3("world");
CHECK_EQUAL(s1, s2);
CHECK_EQUAL(s2, s1);
CHECK(s1 != s3);
}
| 16.210526 | 63 | 0.672078 | smikes |
c12483522d334171d00dd497d723554af35243af | 4,122 | hpp | C++ | include/System/Net/Http/Headers/HttpHeaders_HeaderBucket.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/Http/Headers/HttpHeaders_HeaderBucket.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/Http/Headers/HttpHeaders_HeaderBucket.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Net.Http.Headers.HttpHeaders
#include "System/Net/Http/Headers/... | 51.525 | 268 | 0.707181 | darknight1050 |
c124f212c4768797eb097d7364540532d6fbb8bf | 2,095 | cpp | C++ | 030-third_party/src/PlatisSolutionsBenchmarker.cpp | platisd/refactoring-for-testablity-cpp | 126ee079c73c169bae8a31a2f2ccdc873e819cca | [
"MIT"
] | 33 | 2020-04-18T22:43:57.000Z | 2022-02-01T23:48:34.000Z | 030-third_party/src/PlatisSolutionsBenchmarker.cpp | platisd/refactoring-for-testablity-cpp | 126ee079c73c169bae8a31a2f2ccdc873e819cca | [
"MIT"
] | null | null | null | 030-third_party/src/PlatisSolutionsBenchmarker.cpp | platisd/refactoring-for-testablity-cpp | 126ee079c73c169bae8a31a2f2ccdc873e819cca | [
"MIT"
] | 7 | 2020-04-23T00:39:09.000Z | 2021-11-10T15:05:33.000Z | #include "PlatisSolutionsBenchmarker.hpp"
#include <chrono>
#include <curl/curl.h> // You probably want to remove this after refactoring
#include <string>
namespace
{
const auto kUrl
= "https://platis.solutions/assets/images/smartcar_featured.jpg";
const auto kFilePath = "/dev/null";
} // namespace
namespace befo... | 29.097222 | 78 | 0.6358 | platisd |
c1250230f3a33c676940b4fbbe97fdc9b0d3729c | 1,400 | cpp | C++ | code/data-structures/avl_tree.test.cpp | guru-raj/CompetitiveProgramming | 5b326ad153f52d46a84f3d670f035af59a3ec016 | [
"MIT"
] | 549 | 2015-02-13T00:46:04.000Z | 2022-03-10T07:35:32.000Z | code/data-structures/avl_tree.test.cpp | guru-raj/CompetitiveProgramming | 5b326ad153f52d46a84f3d670f035af59a3ec016 | [
"MIT"
] | 6 | 2016-12-02T10:51:31.000Z | 2022-02-22T16:47:42.000Z | code/data-structures/avl_tree.test.cpp | guru-raj/CompetitiveProgramming | 5b326ad153f52d46a84f3d670f035af59a3ec016 | [
"MIT"
] | 143 | 2015-06-14T17:59:20.000Z | 2022-01-07T19:47:49.000Z | void test() {
/* Field testing: UVa 978, UVa 1513, UVa 12049, Kattis turbo */
int cnt = 10000,
range = 1000;
avl_tree<int> t1;
set<int> t2;
assert_equal(0, t1.size());
for (int i = 0; i < cnt; i++) {
int n = rand() % range;
avl_tree<int>::node *p = t1.insert(n);
assert_equal(n, p->item);... | 22.580645 | 65 | 0.544286 | guru-raj |
c125f43b11f6c55d13dd21d99ce11d0a61d0003b | 187,622 | cpp | C++ | wxWidgets/UserInterface/MainFrame.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | wxWidgets/UserInterface/MainFrame.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | wxWidgets/UserInterface/MainFrame.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /* Do not remove this header/ copyright information.
*
* Copyright © Trilobyte Software Engineering GmbH, Berlin, Germany 2010-2011.
* You are allowed to modify and use the source code from
* Trilobyte Software Engineering GmbH, Berlin, Germany for free if you are not
* making profit with it or its adaption. Else ... | 36.241453 | 119 | 0.677207 | st-gb |
c129ce3df2ac2821743791aa84229de703f3143c | 5,187 | cpp | C++ | src/original-content/VirtualFileSystem.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 399 | 2019-01-06T17:55:18.000Z | 2022-03-21T17:41:18.000Z | src/original-content/VirtualFileSystem.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 101 | 2019-04-18T21:03:53.000Z | 2022-01-08T13:27:01.000Z | src/original-content/VirtualFileSystem.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 56 | 2019-04-10T10:18:27.000Z | 2022-02-08T01:23:31.000Z | #include "VirtualFileSystem.hpp"
#include <FileSystem/BsFileSystem.h>
#include <exception/Throw.hpp>
#include <log/logging.hpp>
#include <vdfs/fileIndex.h>
using namespace REGoth;
class REGoth::InternalVirtualFileSystem
{
public:
InternalVirtualFileSystem() = default;
virtual ~InternalVirtualFileSystem()... | 23.903226 | 101 | 0.687295 | KirmesBude |
c12c43a49f468d3824e69f180c6af93dcd98ce37 | 4,289 | hpp | C++ | include/ptg/HybridMultiFractal.hpp | bobbaluba/PTG | c5d18b78aa84174e42e20a7b0ab8468bf4f2136f | [
"Zlib"
] | 12 | 2016-01-15T15:44:54.000Z | 2021-02-01T08:10:38.000Z | include/ptg/HybridMultiFractal.hpp | bobbaluba/PTG | c5d18b78aa84174e42e20a7b0ab8468bf4f2136f | [
"Zlib"
] | null | null | null | include/ptg/HybridMultiFractal.hpp | bobbaluba/PTG | c5d18b78aa84174e42e20a7b0ab8468bf4f2136f | [
"Zlib"
] | 2 | 2017-07-15T12:20:36.000Z | 2018-05-02T21:17:31.000Z | /**
* @file HybridMultiFractal.hpp
* @date 12. nov. 2012
* @author Johan Klokkhammer Helsing
*/
#ifndef HYBRIDMULTIFRACTAL_HPP
#define HYBRIDMULTIFRACTAL_HPP
#include <ptg/Continuous2DSignal.hpp>
#include <vector>
namespace ptg {
/** @brief Fractal noise generated using hybrid fractional brownian motion
*
* ... | 39.348624 | 143 | 0.743064 | bobbaluba |
c132c760ea22d8d2cdd1a7ff0b7ce971edc987fe | 2,054 | cpp | C++ | unitTest/matrixDecomps.cpp | akrodger/numples-cpp | 4f0cd7b5dd66251fd02189480f3917aaefcc53f4 | [
"MIT"
] | null | null | null | unitTest/matrixDecomps.cpp | akrodger/numples-cpp | 4f0cd7b5dd66251fd02189480f3917aaefcc53f4 | [
"MIT"
] | null | null | null | unitTest/matrixDecomps.cpp | akrodger/numples-cpp | 4f0cd7b5dd66251fd02189480f3917aaefcc53f4 | [
"MIT"
] | null | null | null | /*
* C Driver file Template by Bram Rodgers.
* Original Draft Dated: 25, Feb 2018
*/
/*
* Macros and Includes go here: (Some common ones listed)
*/
#include<stdio.h>
#include<stdlib.h>
#include"../src/numples.h"
#ifndef NULL
#define NULL 0
#endif
#define MIN_ALLOWED_ARGS 4
/*
* Function declarations go here:
*... | 28.527778 | 73 | 0.636319 | akrodger |
c13441334709fa1e0692b42be0dbe628a1e606fb | 2,290 | cpp | C++ | leviathan_config.cpp | bkovacev/levd | f942946f4db7f8c2bad14c5c7025ac303855ced7 | [
"MIT"
] | 1 | 2020-04-23T11:28:55.000Z | 2020-04-23T11:28:55.000Z | leviathan_config.cpp | bkovacev/levd | f942946f4db7f8c2bad14c5c7025ac303855ced7 | [
"MIT"
] | null | null | null | leviathan_config.cpp | bkovacev/levd | f942946f4db7f8c2bad14c5c7025ac303855ced7 | [
"MIT"
] | 1 | 2020-04-23T11:28:59.000Z | 2020-04-23T11:28:59.000Z | #include "leviathan_config.hpp"
#include <exception>
#include <algorithm>
#include <glog/logging.h>
#include <yaml-cpp/yaml.h>
// TODO: Cleaner normalization
LineFunction slope_function(const Point &a, const Point &b) {
const auto ys = b.y - a.y;
const auto xs = b.x - a.x;
if (xs == 0) {
throw std::runtime_e... | 37.540984 | 118 | 0.666376 | bkovacev |
c137b9f83b254eb1787e60740af4331570898fc8 | 12,019 | cpp | C++ | lib/src/AMRTools/NWOQuadCFInterp.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 10 | 2018-02-01T20:57:36.000Z | 2022-03-17T02:57:49.000Z | lib/src/AMRTools/NWOQuadCFInterp.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 19 | 2018-10-04T21:37:18.000Z | 2022-02-25T16:20:11.000Z | lib/src/AMRTools/NWOQuadCFInterp.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 11 | 2019-01-12T23:33:32.000Z | 2021-08-09T15:19:50.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
// #include <cstdio>
//this one has getNearPeriodic
#include "PiecewiseLinea... | 35.877612 | 116 | 0.52234 | rmrsk |