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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2cc4c8b4378b4d8b9f4621e2b5599b8ee8d786d2 | 447 | cpp | C++ | headers/10-throw1.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | 1 | 2022-03-07T09:14:07.000Z | 2022-03-07T09:14:07.000Z | headers/10-throw1.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | null | null | null | headers/10-throw1.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | null | null | null | // 10-throw1.cpp : simple exception demonstration, throw and catch
#include <iostream>
#include <exception>
using namespace std;
template <typename T>
void getInteger(T& value) {
cout << "Please enter an integer (0 to throw): ";
cin >> value;
if (!value) {
throw exception{};
}
}
int main() {
long long v{};
t... | 16.555556 | 66 | 0.612975 | cpp-tutor |
2cc77442f3f1ac290fd662ee4c3e018d2c6df545 | 4,664 | cpp | C++ | libraries/vulkan_utils/private/VulkanMemory.cpp | jcelerier/scop_vulkan | 9b91c0ccd5027c9641ccacfb5043bb1bc2f51ad0 | [
"MIT"
] | 132 | 2021-04-04T21:19:46.000Z | 2022-03-13T13:47:00.000Z | libraries/vulkan_utils/private/VulkanMemory.cpp | jcelerier/scop_vulkan | 9b91c0ccd5027c9641ccacfb5043bb1bc2f51ad0 | [
"MIT"
] | null | null | null | libraries/vulkan_utils/private/VulkanMemory.cpp | jcelerier/scop_vulkan | 9b91c0ccd5027c9641ccacfb5043bb1bc2f51ad0 | [
"MIT"
] | 7 | 2021-04-04T21:19:48.000Z | 2021-04-09T09:16:34.000Z | #include "VulkanMemory.hpp"
#include <stdexcept>
#include <cstring>
#include "VulkanCommandBuffer.hpp"
uint32_t
findMemoryType(VkPhysicalDevice physical_device,
uint32_t type_filter,
VkMemoryPropertyFlags properties)
{
VkPhysicalDeviceMemoryProperties mem_prop;
vkGetPhysicalDevi... | 31.727891 | 79 | 0.65416 | jcelerier |
2cc81dc413167b8d02de7c92c789bfdbe81d834d | 816 | hpp | C++ | src/monitors/probes/list.hpp | owenmylotte/ablate | 92b190a2d422eb89748338c04fd7b29976be54b1 | [
"BSD-3-Clause"
] | null | null | null | src/monitors/probes/list.hpp | owenmylotte/ablate | 92b190a2d422eb89748338c04fd7b29976be54b1 | [
"BSD-3-Clause"
] | null | null | null | src/monitors/probes/list.hpp | owenmylotte/ablate | 92b190a2d422eb89748338c04fd7b29976be54b1 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ABLATELIBRARY_PROBEINITIALIZER_LIST_HPP
#define ABLATELIBRARY_PROBEINITIALIZER_LIST_HPP
#include <memory>
#include <vector>
#include "probeInitializer.hpp"
namespace ablate::monitors::probes {
class List : public ProbeInitializer {
private:
const std::vector<Probe> list;
public:
/**
* def... | 22.666667 | 73 | 0.675245 | owenmylotte |
2cc82bfa7ec04687ec56f78e45d1b268fc14af9c | 8,688 | cpp | C++ | tests/tria/math/quat_test.cpp | BastianBlokland/tria | a90c1a1b0cc9479b1e3a1c41aa5286571a8aab78 | [
"MIT"
] | null | null | null | tests/tria/math/quat_test.cpp | BastianBlokland/tria | a90c1a1b0cc9479b1e3a1c41aa5286571a8aab78 | [
"MIT"
] | null | null | null | tests/tria/math/quat_test.cpp | BastianBlokland/tria | a90c1a1b0cc9479b1e3a1c41aa5286571a8aab78 | [
"MIT"
] | null | null | null | #include "catch2/catch.hpp"
#include "tria/math/mat.hpp"
#include "tria/math/quat.hpp"
#include "tria/math/quat_io.hpp"
#include "tria/math/utils.hpp"
#include "tria/math/vec.hpp"
namespace tria::math::tests {
TEST_CASE("[math] - Quat", "[math]") {
SECTION("Quaternions are fixed size") {
auto q1 = Quatf{};
... | 37.61039 | 100 | 0.635474 | BastianBlokland |
2cc90b7810bdaed73909a516e876826a4a64bb4c | 2,104 | cpp | C++ | uppdev/SvoValue/Checks.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/SvoValue/Checks.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/SvoValue/Checks.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "SvoValue.h"
void DumpNumber(const Value& v)
{
RDUMP((int)v);
RDUMP((double)v);
RDUMP((int64)v);
RDUMP((bool)v);
}
int xx;
Value Opt0();
void Opt() {
Value v = Opt0();
xx = v;
}
void CheckString()
{
Value v = "ahoj";
for(int i = 0; i < 2; i++) {
String s = v;
RDUMP(s);
ASSERT(s == "ahoj");
... | 13.662338 | 45 | 0.532795 | dreamsxin |
2cca7b2d7c7dc21b45de21c60391fab7a08e3f31 | 7,798 | cpp | C++ | src/services/openid_connect.cpp | umr-dbs/mapping-gfbio | 820f0ccde16cab9f5780864d2402149230f01acf | [
"MIT"
] | null | null | null | src/services/openid_connect.cpp | umr-dbs/mapping-gfbio | 820f0ccde16cab9f5780864d2402149230f01acf | [
"MIT"
] | 2 | 2018-04-04T10:38:47.000Z | 2020-12-07T13:26:04.000Z | src/services/openid_connect.cpp | umr-dbs/mapping-gfbio | 820f0ccde16cab9f5780864d2402149230f01acf | [
"MIT"
] | 2 | 2018-03-07T07:50:24.000Z | 2018-06-05T13:51:58.000Z | #include "openid_connect.h"
void OpenIdConnectService::OpenIdConnectService::run() {
try {
const std::string &request = params.get("request");
if (request == "login") {
this->login(params.get("access_token"));
} else { // FALLBACK
response.sendFailureJSON("OpenIdCon... | 39.989744 | 136 | 0.63901 | umr-dbs |
2ccb796330e3327c55b510dd9d986ad25ad94a3b | 4,344 | hpp | C++ | include/algorithms/nicol2d.hpp | GT-TDAlab/SARMA | dab79f7d87a4dfb663b09e9f7331726811e05c1a | [
"BSD-3-Clause"
] | 10 | 2020-07-03T02:41:45.000Z | 2022-02-08T02:28:09.000Z | include/algorithms/nicol2d.hpp | GT-TDAlab/SARMA | dab79f7d87a4dfb663b09e9f7331726811e05c1a | [
"BSD-3-Clause"
] | null | null | null | include/algorithms/nicol2d.hpp | GT-TDAlab/SARMA | dab79f7d87a4dfb663b09e9f7331726811e05c1a | [
"BSD-3-Clause"
] | 1 | 2021-03-08T17:05:02.000Z | 2021-03-08T17:05:02.000Z | #pragma once
#include <vector>
#include <cassert>
#include <utility>
#include <algorithm>
#include <functional>
#include <numeric>
#include "data_structures/csr_matrix.hpp"
#include "tools/utils.hpp"
#include "nicol1d.hpp"
/**
* @brief This namespace contains required functions for
* Nicol's two-dimensional partitio... | 41.371429 | 153 | 0.56837 | GT-TDAlab |
2cd067070b2e7be96aa262c8a9c3d38d039051b4 | 607 | hpp | C++ | nucleo/Inc/globals.hpp | cerberuspower/monochromator | 0324831743652bccea7c760b3994d06c7a766c16 | [
"Apache-2.0"
] | null | null | null | nucleo/Inc/globals.hpp | cerberuspower/monochromator | 0324831743652bccea7c760b3994d06c7a766c16 | [
"Apache-2.0"
] | null | null | null | nucleo/Inc/globals.hpp | cerberuspower/monochromator | 0324831743652bccea7c760b3994d06c7a766c16 | [
"Apache-2.0"
] | null | null | null | #ifndef __GLOBALS_INCLUDED__
#define __GLOBALS_INCLUDED__
#include "motor.hpp"
#include "uart.hpp"
#include <string.h>
#include <stdlib.h>
#include "stm32f3xx_hal.h"
typedef struct monochromator_t {
Motor *motor;
Uart *uart;
uint16_t end_stop_forward;
uint16_t end_stop_reverse;
uint8_t aBuffer... | 21.678571 | 38 | 0.75453 | cerberuspower |
2cd0a5a2921bf137a93200689ec6ee945b6a5417 | 5,573 | cpp | C++ | tools/test/systemtest/aa/aa_command_start_system_test.cpp | openharmony-gitee-mirror/aafwk_standard | 59761a67f4ebc5ea4c3282cd1262bd4a2b66faa7 | [
"Apache-2.0"
] | null | null | null | tools/test/systemtest/aa/aa_command_start_system_test.cpp | openharmony-gitee-mirror/aafwk_standard | 59761a67f4ebc5ea4c3282cd1262bd4a2b66faa7 | [
"Apache-2.0"
] | null | null | null | tools/test/systemtest/aa/aa_command_start_system_test.cpp | openharmony-gitee-mirror/aafwk_standard | 59761a67f4ebc5ea4c3282cd1262bd4a2b66faa7 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:48.000Z | 2021-09-13T11:17:48.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 ... | 38.171233 | 119 | 0.746636 | openharmony-gitee-mirror |
2cd1ac3fb25fb98b56eaa28c3651066337683585 | 5,618 | cpp | C++ | Engine/Source/Runtime/Projects/Private/PluginReferenceDescriptor.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/Projects/Private/PluginReferenceDescriptor.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/Projects/Private/PluginReferenceDescriptor.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "PluginReferenceDescriptor.h"
#include "Misc/FileHelper.h"
#include "Serialization/JsonReader.h"
#include "Serialization/JsonSerializer.h"
#include "ProjectDescriptor.h"
#define LOCTEXT_NAMESPACE "PluginDescriptor"
FPluginReferenceDescriptor::FPlu... | 23.805085 | 160 | 0.719829 | windystrife |
2cd2b742faf6023ff160a7276bbbf12f21043749 | 554 | cc | C++ | BetaScatt/src/PadEventAction.cc | eric-presbitero/BetaScatt | 3dc27e088483d6c34f714825a76439382ea08204 | [
"MIT"
] | 5 | 2020-10-14T09:45:57.000Z | 2022-02-08T10:45:59.000Z | BetaScatt/src/PadEventAction.cc | eric-presbitero/BetaScatt | 3dc27e088483d6c34f714825a76439382ea08204 | [
"MIT"
] | null | null | null | BetaScatt/src/PadEventAction.cc | eric-presbitero/BetaScatt | 3dc27e088483d6c34f714825a76439382ea08204 | [
"MIT"
] | null | null | null | #ifdef G4ANALYSIS_USE
#include "PadAnalysisManager.hh"
#endif
#include "PadEventAction.hh"
PadEventAction::PadEventAction(
PadAnalysisManager* aAnalysisManager
):fAnalysisManager(aAnalysisManager){}
PadEventAction::~PadEventAction(){}
void PadEventAction::BeginOfEventAction(const G4Event* aEvent){
#ifdef G4ANALYSI... | 23.083333 | 63 | 0.815884 | eric-presbitero |
2cd524148cb8c4d18e66358a72d90effe06160dc | 2,062 | cpp | C++ | examples/dfa/src/dfa_layer.cpp | ktnyt/LAPlus | d750862c758a2d6fa3acc5b2b567efc05008b5ae | [
"MIT"
] | null | null | null | examples/dfa/src/dfa_layer.cpp | ktnyt/LAPlus | d750862c758a2d6fa3acc5b2b567efc05008b5ae | [
"MIT"
] | null | null | null | examples/dfa/src/dfa_layer.cpp | ktnyt/LAPlus | d750862c758a2d6fa3acc5b2b567efc05008b5ae | [
"MIT"
] | null | null | null | /******************************************************************************
*
* dfa_layer.cpp
*
* MIT License
*
* Copyright (c) 2016 Kotone Itaya
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* de... | 38.90566 | 79 | 0.654219 | ktnyt |
2cd56cb89fd0767da7a50c9e43b3f01b3ec777aa | 2,362 | cpp | C++ | libs/interprocess/test/intermodule_singleton_test.cpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | libs/interprocess/test/intermodule_singleton_test.cpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | libs/interprocess/test/intermodule_singleton_test.cpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2004-2009. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/i... | 21.472727 | 85 | 0.578323 | Ron2014 |
2cd7cf85017d8c97a5a3a16b7d89b7552d83b960 | 1,359 | cpp | C++ | src/617.merge-two-binary-trees.cpp | Hilbert-Yaa/heil-my-lc | 075567698e3b826a542f63389e9a8f3136df799a | [
"MIT"
] | null | null | null | src/617.merge-two-binary-trees.cpp | Hilbert-Yaa/heil-my-lc | 075567698e3b826a542f63389e9a8f3136df799a | [
"MIT"
] | null | null | null | src/617.merge-two-binary-trees.cpp | Hilbert-Yaa/heil-my-lc | 075567698e3b826a542f63389e9a8f3136df799a | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=617 lang=cpp
*
* [617] Merge Two Binary Trees
*/
#include <bits/stdc++.h>
#using namespace std;
// @lc code=start
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nu... | 33.146341 | 134 | 0.597498 | Hilbert-Yaa |
2cda2623e923f4dc411d197b1b6e215b64a3f9aa | 35,118 | cpp | C++ | hip/hip/kernels/share/qDataUpdateS.cpp | artv3/Laghos | 64449d427349b0ca35086a63ae4e7d1ed5894f08 | [
"BSD-2-Clause"
] | 1 | 2019-11-20T21:45:18.000Z | 2019-11-20T21:45:18.000Z | hip/hip/kernels/share/qDataUpdateS.cpp | jeffhammond/Laghos | 12e62aa7eb6175f27380106b40c9286d710a0f52 | [
"BSD-2-Clause"
] | null | null | null | hip/hip/kernels/share/qDataUpdateS.cpp | jeffhammond/Laghos | 12e62aa7eb6175f27380106b40c9286d710a0f52 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... | 48.371901 | 129 | 0.440287 | artv3 |
2cddcd8889216dde8e8197eab76a84f25b0bdbe1 | 410 | hpp | C++ | library/ATF/stdext__hash_compare.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/stdext__hash_compare.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/stdext__hash_compare.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <std__less.hpp>
START_ATF_NAMESPACE
namespace stdext
{
template<typename _Ty, typename _Less = std::less<_Ty>>
struct hash_compare
... | 22.777778 | 108 | 0.663415 | lemkova |
2ce53f1ddd4256efc827fbc3b541617004c1c6bc | 1,977 | cc | C++ | leetcode/leet-117.cc | yanrong/acm | a3bbc3b07eb3eeb2535f4a732228b7e27746bfb2 | [
"Apache-2.0"
] | 4 | 2020-03-20T10:39:08.000Z | 2020-12-04T00:36:54.000Z | leetcode/leet-117.cc | yanrong/acm | a3bbc3b07eb3eeb2535f4a732228b7e27746bfb2 | [
"Apache-2.0"
] | null | null | null | leetcode/leet-117.cc | yanrong/acm | a3bbc3b07eb3eeb2535f4a732228b7e27746bfb2 | [
"Apache-2.0"
] | null | null | null | #include <queue>
using std::queue;
// Definition for a Node.
class Node {
public:
int val;
Node* left;
Node* right;
Node* next;
Node() : val(0), left(nullptr), right(nullptr), next(nullptr) {}
Node(int _val) : val(_val), left(nullptr), right(nullptr), next(nullptr) {}
Node(int _val, Node* ... | 25.675325 | 79 | 0.454729 | yanrong |
2ce5982951e8331ea1d02d7b12f25da0b03c43b5 | 742 | cpp | C++ | main.cpp | fore-head/210810_Make-to-1_LIS | 2595e1fd34042248cc22d825df966dcfb08311a3 | [
"MIT"
] | null | null | null | main.cpp | fore-head/210810_Make-to-1_LIS | 2595e1fd34042248cc22d825df966dcfb08311a3 | [
"MIT"
] | null | null | null | main.cpp | fore-head/210810_Make-to-1_LIS | 2595e1fd34042248cc22d825df966dcfb08311a3 | [
"MIT"
] | 1 | 2021-08-03T13:51:37.000Z | 2021-08-03T13:51:37.000Z | //
// Created by 이인성 on 2021/08/03.
//
#include <iostream>
int min_op[1000001];
int min(int n, int m) {
if(n <= m)
return n;
else
return m;
}
int main() {
int N;
scanf("%d", &N);
min_op[0] = 0;
min_op[1] = 0;
for(int i = 2; i <= N; i++) {
if((i%2 != 0) && (i%3 != 0)) {
min_op[i] = min... | 19.526316 | 70 | 0.442049 | fore-head |
2ce63e80b8f71d64e5679b4285fc09e75113ef92 | 4,105 | cpp | C++ | src/hir2mpl/test/common/hir2mpl_ut_options.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 2 | 2019-09-06T07:02:41.000Z | 2019-09-09T12:24:46.000Z | src/hir2mpl/test/common/hir2mpl_ut_options.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | null | null | null | src/hir2mpl/test/common/hir2mpl_ut_options.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) [2020-2022] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
... | 33.647541 | 101 | 0.568575 | venshine |
2ce95a4f2a6bb7558949c48cd0cf73414da05e50 | 798 | cpp | C++ | examples/cppwin2/TensorflowTTSCppInference/MultiBandMelGAN.cpp | ronggong/TensorFlowTTS | 7541ee6cdf2f6e264384d2a47a74ae56d6305d33 | [
"Apache-2.0"
] | null | null | null | examples/cppwin2/TensorflowTTSCppInference/MultiBandMelGAN.cpp | ronggong/TensorFlowTTS | 7541ee6cdf2f6e264384d2a47a74ae56d6305d33 | [
"Apache-2.0"
] | null | null | null | examples/cppwin2/TensorflowTTSCppInference/MultiBandMelGAN.cpp | ronggong/TensorFlowTTS | 7541ee6cdf2f6e264384d2a47a74ae56d6305d33 | [
"Apache-2.0"
] | null | null | null | #include "MultiBandMelGAN.h"
bool MultiBandMelGAN::Initialize(const std::string & VocoderPath)
{
MelGAN = std::make_unique<Model>(VocoderPath);
return true;
}
Tensor MultiBandMelGAN::DoInference(Tensor& InMel)
{
VX_IF_EXCEPT(!MelGAN, "Tried to infer MB-MelGAN on uninitialized model!!!!");
// Convenience re... | 19.95 | 81 | 0.741855 | ronggong |
f8ebd0e4432c71e9c8f689f4a14ea4e5ed4a7eb3 | 1,891 | cpp | C++ | src/lib/Colour.cpp | gtirloni/procdraw | 34ddb1b96f0f47af7304914e938f53d10ca5478d | [
"Apache-2.0"
] | null | null | null | src/lib/Colour.cpp | gtirloni/procdraw | 34ddb1b96f0f47af7304914e938f53d10ca5478d | [
"Apache-2.0"
] | null | null | null | src/lib/Colour.cpp | gtirloni/procdraw | 34ddb1b96f0f47af7304914e938f53d10ca5478d | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Simon Bates
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 23.345679 | 76 | 0.424114 | gtirloni |
f8f0e3500e42ada3b9423b0291d2d2a5cb689350 | 15,161 | hpp | C++ | src/api/face/cpp/doc/Vortex_FACE.hpp | agenihorganization/opensplice | 314d3a4538474f2b8e22acffe3c206f4ac38b66b | [
"Apache-2.0"
] | null | null | null | src/api/face/cpp/doc/Vortex_FACE.hpp | agenihorganization/opensplice | 314d3a4538474f2b8e22acffe3c206f4ac38b66b | [
"Apache-2.0"
] | null | null | null | src/api/face/cpp/doc/Vortex_FACE.hpp | agenihorganization/opensplice | 314d3a4538474f2b8e22acffe3c206f4ac38b66b | [
"Apache-2.0"
] | null | null | null | /*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 43.317143 | 127 | 0.675879 | agenihorganization |
f8f320e68bdc82147a13add265cd46a71fee8340 | 1,575 | cpp | C++ | BAC_2nd/ch7/UVa1354.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC_2nd/ch7/UVa1354.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC_2nd/ch7/UVa1354.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa1354 Mobile Computing
// Rujia Liu
#include<cstdio>
#include<cstring>
#include<vector>
using namespace std;
struct Tree {
double L, R; // distance from the root to the leftmost/rightmost point
Tree():L(0),R(0) {}
};
const int maxn = 6;
int n, vis[1<<maxn];
double r, w[maxn], sum[1<<maxn];
vector<Tree> tree... | 22.826087 | 72 | 0.525714 | Anyrainel |
f8f38bd682ef50835a6d1e7a0c972d62133fe7d3 | 1,213 | cpp | C++ | Syl3D/misc/skyboxmanager.cpp | Jedi18/Syl3D | 8f62a3cd5349eaff83c36e9366003da61888ec73 | [
"MIT"
] | 2 | 2020-12-06T06:43:32.000Z | 2021-01-13T14:16:01.000Z | Syl3D/misc/skyboxmanager.cpp | Jedi18/Syl3D | 8f62a3cd5349eaff83c36e9366003da61888ec73 | [
"MIT"
] | 4 | 2020-11-30T03:18:03.000Z | 2021-05-22T16:46:25.000Z | Syl3D/misc/skyboxmanager.cpp | Jedi18/Syl3D | 8f62a3cd5349eaff83c36e9366003da61888ec73 | [
"MIT"
] | 2 | 2020-12-05T07:46:14.000Z | 2020-12-05T12:09:54.000Z | #include "skyboxmanager.h"
#include "../entity/entityfactory.h"
#include "../utility/fileio.h"
SkyboxManager* SkyboxManager::_instance = nullptr;
SkyboxManager::SkyboxManager() {
_skyboxNames = utility::FileIO::filesInPath("resources/skyboxes");
}
SkyboxManager* SkyboxManager::skyboxManager() {
if (_instance == n... | 24.755102 | 102 | 0.734542 | Jedi18 |
f8f85a34f18c825113ef3cfaddb67d4103cb9dd5 | 3,948 | cc | C++ | ns-allinone-3.27/ns-3.27/src/wimax/model/simple-ofdm-send-param.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 93 | 2019-04-21T08:22:26.000Z | 2022-03-30T04:26:29.000Z | ns-allinone-3.27/ns-3.27/src/wimax/model/simple-ofdm-send-param.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 12 | 2019-04-19T16:39:58.000Z | 2021-06-22T13:18:32.000Z | ns-allinone-3.27/ns-3.27/src/wimax/model/simple-ofdm-send-param.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 21 | 2019-05-27T19:36:12.000Z | 2021-07-26T02:37:41.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pr... | 25.146497 | 82 | 0.664387 | zack-braun |
f8f9a636edda72964354efc7bec76edea8cf6d55 | 651 | cpp | C++ | sample/k_distance_main.cpp | iwiwi/top-k-pruned-landmark-labeling | e334aab5faa10b0aa098f6895d8df393644fa532 | [
"BSD-3-Clause"
] | 1 | 2021-06-06T01:31:34.000Z | 2021-06-06T01:31:34.000Z | sample/k_distance_main.cpp | iwiwi/top-k-pruned-landmark-labeling | e334aab5faa10b0aa098f6895d8df393644fa532 | [
"BSD-3-Clause"
] | null | null | null | sample/k_distance_main.cpp | iwiwi/top-k-pruned-landmark-labeling | e334aab5faa10b0aa098f6895d8df393644fa532 | [
"BSD-3-Clause"
] | 1 | 2018-01-10T00:18:42.000Z | 2018-01-10T00:18:42.000Z | #include <cstdlib>
#include <iostream>
#include "top_k_pruned_landmark_labeling.hpp"
using namespace std;
int main(int argc, char **argv) {
if (argc != 2) {
cerr << "Usage: " << argv[0] << " (index_file)" << endl;
exit(EXIT_FAILURE);
}
TopKPrunedLandmarkLabeling kpll;
if (!kpll.LoadIndex(argv[1]... | 20.34375 | 60 | 0.55914 | iwiwi |
f8fadf65b4383c3b967f70c3c7baef93b581848b | 2,922 | cpp | C++ | plugins/community/repos/Bogaudio/src/FlipFlop.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/Bogaudio/src/FlipFlop.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/Bogaudio/src/FlipFlop.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z |
#include "FlipFlop.hpp"
void FlipFlop::onReset() {
_flipped1 = false;
_flipped2 = false;
_trigger1.reset();
_resetTrigger1.reset();
_trigger2.reset();
_resetTrigger2.reset();
}
void FlipFlop::step() {
channelStep(
inputs[IN1_INPUT],
inputs[RESET1_INPUT],
outputs[A1_OUTPUT],
outputs[B1_OUTPUT],
_trig... | 27.566038 | 142 | 0.719713 | guillaume-plantevin |
f8fdb8f91d8b0ab17832f710421b06e8b6141c7e | 1,903 | cc | C++ | chrome/common/privacy_budget/privacy_budget_settings_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/common/privacy_budget/privacy_budget_settings_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/common/privacy_budget/privacy_budget_settings_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 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/common/privacy_budget/privacy_budget_settings_provider.h"
#include <memory>
#include "base/containers/contains.h"
#include "base/ranges... | 39.645833 | 80 | 0.794535 | zealoussnow |
5d04df8ec0c0ac777f13f832d2da1fea6659ef6c | 7,106 | hpp | C++ | dakota-6.3.0.Windows.x86/include/DLSfuncs.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/DLSfuncs.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/DLSfuncs.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | 1 | 2022-03-18T14:13:14.000Z | 2022-03-18T14:13:14.000Z | #ifndef DLSfuncs.hpp
#define DLSfuncs.hpp
#include <stdio.h>
#include <iostream>
#include "dakota_data_types.hpp"
namespace Dakota {
class Optimizer1; // treated as anonymous here
struct Opt_Info {
char *begin; // I/O, updated by dlsolver_option for use in next dlsolver_option call
char *name; // out: option name... | 39.921348 | 101 | 0.753307 | seakers |
5d0944bbcca152ebd69e6ea349b58a1d45764087 | 5,428 | cpp | C++ | PlatformTest/main.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | null | null | null | PlatformTest/main.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-06-19T15:55:25.000Z | 2019-06-27T07:47:27.000Z | PlatformTest/main.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-07-07T04:37:56.000Z | 2019-07-07T04:37:56.000Z | /*
* Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#ifdef _WINDOWS
#include <Windows.h>
#elif _LINUX
#include <cstdio>
#... | 23 | 128 | 0.670965 | SamirAroudj |
5d0a79aaae43ed98c4d4051a86280e6e621e9e7d | 1,491 | cpp | C++ | redemption/src/utils/hexadecimal_string_to_buffer.cpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/utils/hexadecimal_string_to_buffer.cpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/utils/hexadecimal_string_to_buffer.cpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | /*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ... | 32.413043 | 82 | 0.721663 | DianaAssistant |
5d0c3b90f20d4d8285413757a86b5a10ca171c7a | 16,731 | cpp | C++ | latte-dock/declarativeimports/core/iconitem.cpp | VaughnValle/lush-pop | cdfe9d7b6a7ebb89ba036ab9a4f07d8db6817355 | [
"MIT"
] | 64 | 2020-07-08T18:49:29.000Z | 2022-03-23T22:58:49.000Z | latte-dock/declarativeimports/core/iconitem.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 1 | 2021-04-02T04:39:45.000Z | 2021-09-25T11:53:18.000Z | latte-dock/declarativeimports/core/iconitem.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 11 | 2020-12-04T18:19:11.000Z | 2022-01-10T08:50:08.000Z | /*
* Copyright 2012 Marco Martin <mart@kde.org>
* Copyright 2014 David Edmundson <davidedmudnson@kde.org>
* Copyright 2016 Smith AR <audoban@openmailbox.org>
* Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock and is a Fork of PlasmaCore::IconItem
*
* Latte-Dock is fr... | 27.931553 | 152 | 0.591298 | VaughnValle |
5d15e34175c19f5eb32090cc765af9f62eaeef45 | 585 | cpp | C++ | ThirdParty/cppast/src/cpp_file.cpp | rokups/Urho3DNET | 66b21df316b569ef034c5032f741a378afafb061 | [
"MIT"
] | 5 | 2018-03-01T12:01:12.000Z | 2018-04-15T09:30:20.000Z | ThirdParty/cppast/src/cpp_file.cpp | rokups/Urho3DNET | 66b21df316b569ef034c5032f741a378afafb061 | [
"MIT"
] | 1 | 2018-02-17T17:32:37.000Z | 2018-03-03T03:51:11.000Z | ThirdParty/cppast/src/cpp_file.cpp | rokups/Urho3DNET | 66b21df316b569ef034c5032f741a378afafb061 | [
"MIT"
] | 2 | 2018-08-04T21:12:11.000Z | 2019-02-09T05:04:29.000Z | // Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#include <cppast/cpp_file.hpp>
#include <cppast/cpp_entity_kind.hpp>
using namespace cppast;
cpp_entity_kind cpp_file:... | 23.4 | 74 | 0.755556 | rokups |
5d184b089a0766b1185c34f8932657fda107ae31 | 12,451 | cpp | C++ | dali/internal/event/actors/layer-impl.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali/internal/event/actors/layer-impl.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-03-22T10:19:17.000Z | 2020-03-22T10:19:17.000Z | dali/internal/event/actors/layer-impl.cpp | fayhot/dali-core | a69ea317f30961164520664a645ac36c387055ef | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 25.410204 | 145 | 0.674886 | vcebollada |
5d1b2a4f682f4dd4ba7a71698dff5a1e231f6ddb | 1,943 | cpp | C++ | firmware/src/main.cpp | brianpepin/lpm | 969105a6374fa65c2de4e74a119d614b32e6ea2c | [
"MIT"
] | 3 | 2020-06-02T01:23:18.000Z | 2022-02-25T22:20:24.000Z | firmware/src/main.cpp | brianpepin/lpm | 969105a6374fa65c2de4e74a119d614b32e6ea2c | [
"MIT"
] | null | null | null | firmware/src/main.cpp | brianpepin/lpm | 969105a6374fa65c2de4e74a119d614b32e6ea2c | [
"MIT"
] | null | null | null | #include <globals.h>
#include <adc.h>
#include <battery.h>
#include <button.h>
#include <power.h>
#include <flash.h>
#include <logger.h>
#include <views/default.h>
Button buttons[] =
{
{PIN_UP, BUTTON_ACTIVE_LOW},
{PIN_DOWN, BUTTON_ACTIVE_LOW},
{PIN_LEFT, BUTTON_ACTIVE_LOW},
{PIN_RI... | 18.158879 | 75 | 0.626866 | brianpepin |
5d1d823c10e30cee858f14367fe30222b494d526 | 1,256 | hpp | C++ | gapvector_impl/gapvector_reverse_iterator_implement.hpp | Catminusminus/gapvector | cdc235fbf26022a12234057877e6189a9312c0b7 | [
"Unlicense"
] | null | null | null | gapvector_impl/gapvector_reverse_iterator_implement.hpp | Catminusminus/gapvector | cdc235fbf26022a12234057877e6189a9312c0b7 | [
"Unlicense"
] | 2 | 2018-03-26T14:06:23.000Z | 2018-03-29T17:08:45.000Z | gapvector_impl/gapvector_reverse_iterator_implement.hpp | Catminusminus/gapvector | cdc235fbf26022a12234057877e6189a9312c0b7 | [
"Unlicense"
] | null | null | null | #ifndef GAPVECTOR_REVERSE_ITERATOR_IMPLEMENT_HPP
#define GAPVECTOR_REVERSE_ITERATOR_IMPLEMENT_HPP
template <typename T>
void gapvectorReverseIterator<T>::increment()
{
--index;
}
template <typename T>
void gapvectorReverseIterator<T>::decrement()
{
++index;
}
template <typename T>
T &gapvectorReverseIterator... | 22.836364 | 118 | 0.754777 | Catminusminus |
5d29761d3684c04b79fec3c3688e9df1d29eaf01 | 4,449 | cpp | C++ | Source/Editor/Private/Customizations/ClassFilter/ClassFilterNode.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 110 | 2018-10-20T21:47:54.000Z | 2022-03-14T03:47:58.000Z | Source/Editor/Private/Customizations/ClassFilter/ClassFilterNode.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 68 | 2018-12-19T09:08:56.000Z | 2022-03-09T06:43:38.000Z | Source/Editor/Private/Customizations/ClassFilter/ClassFilterNode.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 45 | 2018-12-03T14:35:47.000Z | 2022-03-05T01:35:24.000Z | // Copyright 2015-2020 Piperift. All Rights Reserved.
#include "ClassFilterNode.h"
#include <Engine/Blueprint.h>
#include <PropertyHandle.h>
#include "Misc/ClassFilter.h"
FSEClassFilterNode::FSEClassFilterNode(const FString& InClassName, const FString& InClassDisplayName)
{
ClassName = InClassName;
ClassDisplayNa... | 26.017544 | 115 | 0.757249 | foobit |
5d2a22a3ee1d87aaad98253af00bf68a0238fa0e | 2,820 | cpp | C++ | libs/network/src/p2pservice/identity_cache.cpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/network/src/p2pservice/identity_cache.cpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/network/src/p2pservice/identity_cache.cpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | 2 | 2019-11-13T10:55:24.000Z | 2019-11-13T11:37:09.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 25.87156 | 96 | 0.599645 | jinmannwong |
5d2a6ba7920af77702281f15fe3eef4a488cbdd0 | 21,032 | cpp | C++ | planning/obstacle_cruise_planner/src/pid_based_planner/pid_based_planner.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | null | null | null | planning/obstacle_cruise_planner/src/pid_based_planner/pid_based_planner.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | null | null | null | planning/obstacle_cruise_planner/src/pid_based_planner/pid_based_planner.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 TIER IV, 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 i... | 39.092937 | 100 | 0.762695 | meliketanrikulu |
5d2ae93d56c7a02e788a2ad9a65b4c3e67236086 | 6,034 | cpp | C++ | lld/stm32f4x/rcc/hw_rcc_sys_ctrl.cpp | brandonbraun653/Thor_STM32 | 2aaba95728936b2d5784e99b96c208a94e3cb8df | [
"MIT"
] | null | null | null | lld/stm32f4x/rcc/hw_rcc_sys_ctrl.cpp | brandonbraun653/Thor_STM32 | 2aaba95728936b2d5784e99b96c208a94e3cb8df | [
"MIT"
] | 36 | 2019-03-24T14:43:25.000Z | 2021-01-11T00:05:30.000Z | lld/stm32f4x/rcc/hw_rcc_sys_ctrl.cpp | brandonbraun653/Thor | 46e022f1791c8644955135c630fdd12a4296e44d | [
"MIT"
] | null | null | null | /********************************************************************************
* File Name:
* hw_rcc_sys_ctrl.cpp
*
* Description:
* System clock controller implementation
*
* 2021 | Brandon Braun | brandonbraun653@gmail.com
***************************************************************************... | 31.427083 | 109 | 0.513755 | brandonbraun653 |
5d2b1c78a5d1d15b83368bca74be19fd8364237f | 1,811 | cpp | C++ | String/Reverse string with no change in words.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | 1 | 2021-07-20T06:08:26.000Z | 2021-07-20T06:08:26.000Z | String/Reverse string with no change in words.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | String/Reverse string with no change in words.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | // QUARANTINE DAYS..;)
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define test int tt;cin>>tt;while(tt--)
#define fl(i,a,b) for( int i=a;i<b;i++)
#define ll long long int
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define PI ... | 19.684783 | 71 | 0.563777 | scortier |
5d2cdb5eed2575ef74e606ac0e99d16af6a15662 | 503 | hpp | C++ | plugins/opengl/include/sge/opengl/glx/visual/optional_srgb_flag.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/include/sge/opengl/glx/visual/optional_srgb_flag.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/include/sge/opengl/glx/visual/optional_srgb_flag.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENGL_GLX_VISUAL_OPTIONAL_SRGB_FLAG_HPP_INCLUDED
#define SGE_OPENGL_GLX_VISUAL_OPTIONA... | 35.928571 | 61 | 0.781312 | cpreh |
5d3007e2cdb1f41deddd699b0ed75aedfb21519d | 1,545 | cpp | C++ | B-CCP-400-LYN-4-1-theplazza/src/kitchen.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 2 | 2022-02-07T12:44:51.000Z | 2022-02-08T12:04:08.000Z | B-CCP-400-LYN-4-1-theplazza/src/kitchen.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | null | null | null | B-CCP-400-LYN-4-1-theplazza/src/kitchen.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 1 | 2022-01-23T21:26:06.000Z | 2022-01-23T21:26:06.000Z | /*
** EPITECH PROJECT, 2020
** C / C++ PROJECT
** File description:
** file
*/
#include "kitchen.hpp"
#include "commands.hpp"
#include "pool.hpp"
#include "self.hpp"
kitchen::kitchen(int multiplier, int cooks, int time, commands *commands_d,
std::vector<std::string> pizzas, std::vector<std::string> sizes)
{
... | 20.328947 | 96 | 0.629773 | Neotoxic-off |
5d300fcbc8b3d333153f560939896bb5881e474e | 247 | hpp | C++ | include/System/NonCopyable.hpp | Mac1512/engge | 50c203c09b57c0fbbcdf6284c60886c8db471e07 | [
"MIT"
] | null | null | null | include/System/NonCopyable.hpp | Mac1512/engge | 50c203c09b57c0fbbcdf6284c60886c8db471e07 | [
"MIT"
] | null | null | null | include/System/NonCopyable.hpp | Mac1512/engge | 50c203c09b57c0fbbcdf6284c60886c8db471e07 | [
"MIT"
] | null | null | null | #pragma once
namespace ng {
class NonCopyable {
protected:
NonCopyable() = default;
~NonCopyable() = default;
private:
NonCopyable(const NonCopyable &) = delete;
NonCopyable &operator=(const NonCopyable &) = delete;
};
} // namespace ng | 17.642857 | 55 | 0.704453 | Mac1512 |
5d308de96ca733a52327049c72673fcc2a7127e0 | 1,852 | cpp | C++ | src/hssh/global_metric/main.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/hssh/global_metric/main.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/hssh/global_metric/main.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 43.069767 | 139 | 0.698164 | h2ssh |
5d31489433abd306c91a48a598e08ea3d978729e | 3,379 | cpp | C++ | reichian/render.cpp | jdstmporter/bela-scripts | c22d8e216134a3630db89bc94848333579656d21 | [
"CC0-1.0"
] | null | null | null | reichian/render.cpp | jdstmporter/bela-scripts | c22d8e216134a3630db89bc94848333579656d21 | [
"CC0-1.0"
] | null | null | null | reichian/render.cpp | jdstmporter/bela-scripts | c22d8e216134a3630db89bc94848333579656d21 | [
"CC0-1.0"
] | null | null | null | /*
Sample deomonstration code for Bela, showing capability to perform Steve Reich's 'Clapping Music' in
the version for two performers (obviously, more tracks could be added)
Copyright 2020 Julian Porter
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the... | 34.131313 | 101 | 0.701391 | jdstmporter |
5d31edcab161836e23e007f313e60c9d7ee1aec6 | 3,435 | cpp | C++ | src/qt/qtwebkit/Source/WebCore/page/scrolling/ScrollingThread.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtwebkit/Source/WebCore/page/scrolling/ScrollingThread.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Source/WebCore/page/scrolling/ScrollingThread.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2022-02-18T10:41:38.000Z | 2022-02-18T10:41:38.000Z | /*
* Copyright (C) 2012 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 27.926829 | 86 | 0.726929 | viewdy |
5d3488bdbeda335cfe226761fdf45d6f937b3c0d | 18,446 | cpp | C++ | Base/PLCore/src/Xml/XmlElement.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/src/Xml/XmlElement.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/src/Xml/XmlElement.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: XmlElement.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 27.449405 | 125 | 0.63629 | ktotheoz |
5d369d9507357ae3a82d7fd1db8f675e09dd3c7f | 2,810 | cpp | C++ | src/Library/Library/sources/Functions/dencryptionFunctions.cpp | myNameIsAndrew00/Cryptographic-Hardware-Simulator | cfd5c9a75ba9461faf5fd48257ef9ac3b259365a | [
"MIT"
] | null | null | null | src/Library/Library/sources/Functions/dencryptionFunctions.cpp | myNameIsAndrew00/Cryptographic-Hardware-Simulator | cfd5c9a75ba9461faf5fd48257ef9ac3b259365a | [
"MIT"
] | null | null | null | src/Library/Library/sources/Functions/dencryptionFunctions.cpp | myNameIsAndrew00/Cryptographic-Hardware-Simulator | cfd5c9a75ba9461faf5fd48257ef9ac3b259365a | [
"MIT"
] | null | null | null |
#include "../../include/pkcs11.h"
#include "../../include/IPkcs11Token.h"
#include <stdlib.h>
#include <string.h>
extern Abstractions::IPkcs11TokenReference Token;
CK_DEFINE_FUNCTION(CK_RV, C_EncryptInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)
{
if (nullptr == pMechanism)
... | 33.855422 | 171 | 0.802847 | myNameIsAndrew00 |
5d3cf98ee50d07bafbbeca6c2cee3e9a6d3a3570 | 3,394 | cpp | C++ | dev/Code/Framework/AzQtComponents/AzQtComponents/Gallery/SliderComboPage.cpp | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzQtComponents/AzQtComponents/Gallery/SliderComboPage.cpp | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzQtComponents/AzQtComponents/Gallery/SliderComboPage.cpp | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 35.726316 | 134 | 0.755451 | brianherrera |
5d3fa552e2291950a58e43ccb978b74d3997342e | 1,868 | hpp | C++ | AudioManager.hpp | Daft-Freak/A-Pair-Of-Squares | 5cfa97f3754adaee79415c6de7dd2a5053f8e7f4 | [
"MIT"
] | 5 | 2021-08-24T17:53:53.000Z | 2022-03-14T13:35:35.000Z | AudioManager.hpp | Daft-Freak/A-Pair-Of-Squares | 5cfa97f3754adaee79415c6de7dd2a5053f8e7f4 | [
"MIT"
] | null | null | null | AudioManager.hpp | Daft-Freak/A-Pair-Of-Squares | 5cfa97f3754adaee79415c6de7dd2a5053f8e7f4 | [
"MIT"
] | 1 | 2021-12-14T10:39:43.000Z | 2021-12-14T10:39:43.000Z | #pragma once
#include "SDL_mixer.h"
#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>
#include "Constants.hpp"
typedef Mix_Chunk* Sound;
typedef Mix_Music* Music;
class AudioHandler {
public:
AudioHandler();
bool init(uint8_t channels = AUDIO::DEFAULT_CHANNELS, int frequency = AUDIO::DEFA... | 26.685714 | 177 | 0.765525 | Daft-Freak |
5d401c19452901ae86f32ac359aae3a8a22142fe | 1,489 | hpp | C++ | src/parser/skip-to-sequence.hpp | aaron-michaux/giraffe | 457b55d80f6d21616a5c40232c2f68ee9e2c8335 | [
"MIT"
] | null | null | null | src/parser/skip-to-sequence.hpp | aaron-michaux/giraffe | 457b55d80f6d21616a5c40232c2f68ee9e2c8335 | [
"MIT"
] | null | null | null | src/parser/skip-to-sequence.hpp | aaron-michaux/giraffe | 457b55d80f6d21616a5c40232c2f68ee9e2c8335 | [
"MIT"
] | null | null | null |
#pragma once
#include "scanner/scanner.hpp"
#include "utils/in-list.hpp"
namespace giraffe::detail
{
template<typename T> bool match_worker(Scanner& tokens, T&& id) noexcept
{
if(in_list(tokens.current().id(), id)) {
tokens.consume();
return true;
}
return false;
}
template<typename T, typename... | 26.122807 | 89 | 0.648086 | aaron-michaux |
5d41203ba0cdb56c88eb6e204fd3f444e1b17bfb | 812 | cpp | C++ | gc/NonGenCopy.cpp | Melab/gvmt | 566eac01724b687bc5e11317e44230faab15f895 | [
"MIT"
] | null | null | null | gc/NonGenCopy.cpp | Melab/gvmt | 566eac01724b687bc5e11317e44230faab15f895 | [
"MIT"
] | null | null | null | gc/NonGenCopy.cpp | Melab/gvmt | 566eac01724b687bc5e11317e44230faab15f895 | [
"MIT"
] | 1 | 2021-12-04T15:59:58.000Z | 2021-12-04T15:59:58.000Z | #include "gvmt/internal/gc.hpp"
#include "gvmt/internal/NonGenerational.hpp"
#include "gvmt/internal/SemiSpace.hpp"
typedef NonGenerational<SemiSpace> NonGenCopy;
void gvmt_do_collection() {
NonGenCopy::collect();
}
static char copy2_name[] = "copy2";
extern "C" {
char* gvmt_gc_name = ©2_name[0];
... | 21.368421 | 83 | 0.681034 | Melab |
5d4188d09af9f58cae7e18233643a4f5cb549bc8 | 2,659 | hpp | C++ | cpp/bign.hpp | jieyaren/hello-world | 9fbc7d117b9aee98d748669646dd200c25a4122f | [
"WTFPL"
] | 3 | 2021-11-12T09:20:21.000Z | 2022-02-18T11:34:33.000Z | cpp/bign.hpp | jieyaren/hello-world | 9fbc7d117b9aee98d748669646dd200c25a4122f | [
"WTFPL"
] | 1 | 2019-05-15T10:55:59.000Z | 2019-05-15T10:56:31.000Z | cpp/bign.hpp | jieyaren/hello-world | 9fbc7d117b9aee98d748669646dd200c25a4122f | [
"WTFPL"
] | null | null | null | #ifndef __PURPLE_BOOK__BIGN__
#define __PURPLE_BOOK__BIGN__
#include <string>
#include <cstdio>
#include <cstring>
#include <algorithm>
using std::max;
const int maxn = 1000;
struct bign
{
int len,s[maxn];
bign(){memset(s,0,sizeof(s)); len=1;}
bign operator = (const char* num)
{
len = strlen(num);
for(int i=0;... | 15.549708 | 69 | 0.527642 | jieyaren |
5d43ad0d9b3cf124ef0a593cbac87f07d63dce2e | 3,753 | cpp | C++ | tests/longest_strictly_increasing_subsequence_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/longest_strictly_increasing_subsequence_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/longest_strictly_increasing_subsequence_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #include <vector>
#include <gtest/gtest.h>
#include "longest_monotonic_subsequence.hpp"
namespace gt = testing;
namespace pk
{
namespace testing
{
struct longest_strictly_increasing_subsequence_tester : public gt::Test
{
static const int MAX_SEQUENCE_SIZE = 9;
// tested class:
typedef longest_monot... | 23.45625 | 106 | 0.716227 | pawel-kieliszczyk |
5d44db651758063958bd93c9ed68644739749498 | 3,307 | cc | C++ | persistence/leveldb_sparql.cc | wastl/cmarmotta | b2c36f357b5336dd4da31259cec490762ed6e996 | [
"Apache-2.0"
] | 14 | 2015-11-16T06:43:28.000Z | 2020-01-12T11:55:06.000Z | persistence/leveldb_sparql.cc | wastl/cmarmotta | b2c36f357b5336dd4da31259cec490762ed6e996 | [
"Apache-2.0"
] | null | null | null | persistence/leveldb_sparql.cc | wastl/cmarmotta | b2c36f357b5336dd4da31259cec490762ed6e996 | [
"Apache-2.0"
] | 13 | 2016-01-19T19:39:36.000Z | 2021-09-03T07:46:19.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 ma... | 29.008772 | 102 | 0.635319 | wastl |
5d48b709e6fdd41429967fe580ca39b047eab5fa | 1,142 | cpp | C++ | test/priQue.cpp | DQiuLin/calculator | 2717cdca1d6adb38d7ac4be3cf6f851f129fe3f6 | [
"MIT"
] | null | null | null | test/priQue.cpp | DQiuLin/calculator | 2717cdca1d6adb38d7ac4be3cf6f851f129fe3f6 | [
"MIT"
] | null | null | null | test/priQue.cpp | DQiuLin/calculator | 2717cdca1d6adb38d7ac4be3cf6f851f129fe3f6 | [
"MIT"
] | null | null | null | #include "common.h"
static bool cmp(const std::pair<int, int> &a, const std::pair<int, int> &b) {
return a.second < b.second;
}
class MyCompare {
public:
bool operator()(const std::pair<int, int> &a, const std::pair<int, int> &b) {
return a.second < b.second;
}
};
int main() {
// priority_qu... | 29.282051 | 108 | 0.436077 | DQiuLin |
5d4b8388df4e5a976081a87e4f0385c478f2c995 | 6,187 | cpp | C++ | src/Core/QSafeguard.cpp | ericzh86/qt-toolkit | 63ec071f8989d6efcc4afa30fa98ede695edba27 | [
"MIT"
] | 4 | 2020-01-07T07:05:18.000Z | 2020-01-09T10:25:41.000Z | src/Core/QSafeguard.cpp | ericzh86/qt-toolkit | 63ec071f8989d6efcc4afa30fa98ede695edba27 | [
"MIT"
] | null | null | null | src/Core/QSafeguard.cpp | ericzh86/qt-toolkit | 63ec071f8989d6efcc4afa30fa98ede695edba27 | [
"MIT"
] | null | null | null | #include "QSafeguard.h"
#include "QSafeguard_p.h"
#include <QStringBuilder>
#include <QLoggingCategory>
Q_LOGGING_CATEGORY(lcSafeguard, "QSafeguard")
// class QSafeguard
QSafeguard::QSafeguard(const QString &dumpPath, QObject *parent)
: QObject(parent)
, d_ptr(new QSafeguardPrivate())
{
d_ptr->q_ptr = t... | 33.625 | 115 | 0.390981 | ericzh86 |
5d4caf277b27ba63bbb807483211bf2ceba71b87 | 1,990 | cpp | C++ | src/fireball.cpp | alohamora/legend-of-zelda | 63b764ab27a171af1f809dcd8aa8e85b2c06accc | [
"MIT"
] | null | null | null | src/fireball.cpp | alohamora/legend-of-zelda | 63b764ab27a171af1f809dcd8aa8e85b2c06accc | [
"MIT"
] | null | null | null | src/fireball.cpp | alohamora/legend-of-zelda | 63b764ab27a171af1f809dcd8aa8e85b2c06accc | [
"MIT"
] | null | null | null | #include"main.h"
#include"fireball.h"
Fireball::Fireball(color_t color){
position = glm::vec3(0,-1,0);
speed = 0.8;
speed_up = 0;
acc_y = 0;
static const GLfloat vertex_buffer_data[] = {
-0.5,-0.5,-0.5, // triangle 1 : begin
-0.5,-0.5, 0.5,
-0.5, 0.5, 0.5, // triangle 1 : en... | 24.875 | 90 | 0.443216 | alohamora |
5d4f1ab5241e92633625bb1351f5d8ead7776e17 | 15,807 | cpp | C++ | src/string_calculator.cpp | botn365/cpp-discord-bot | 20cd173fa1a806a4c7fc44cf7e23163f78e88e79 | [
"MIT"
] | null | null | null | src/string_calculator.cpp | botn365/cpp-discord-bot | 20cd173fa1a806a4c7fc44cf7e23163f78e88e79 | [
"MIT"
] | 1 | 2021-12-19T01:46:40.000Z | 2021-12-20T18:57:07.000Z | src/string_calculator.cpp | botn365/cpp-discord-bot | 20cd173fa1a806a4c7fc44cf7e23163f78e88e79 | [
"MIT"
] | null | null | null | //
// Created by vanda on 12/10/2021.
//
#include <cmath>
#include "../include/string_calculator.hpp"
#include "../include/load_operators.hpp"
static std::unordered_map<char32_t, Bot::Operator> unicodeToOperator;
static std::unordered_map<char32_t, int> unicodeToNumber;
static std::unordered_map<char32_t, bool> usedU... | 38.742647 | 120 | 0.486746 | botn365 |
5d51795d9f817177e42f08b1df322aed162b9210 | 35,686 | cpp | C++ | src/validate.cpp | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | src/validate.cpp | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | src/validate.cpp | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* \file validate.cpp
* \brief Stylus Gene class (validation methods)
*
* Stylus, Copyright 2006-2009 Biologic Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | 31.44141 | 149 | 0.657989 | biologic |
5d52859886d9614157f040a1de9da8c17af91420 | 10,425 | hpp | C++ | third_party/omr/fvtest/compilertest/compile/Method.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/compilertest/compile/Method.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/compilertest/compile/Method.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 46.333333 | 135 | 0.523933 | xiacijie |
5d5497b7377544085e2c915e62df50b37fa26c35 | 43,555 | cpp | C++ | kernel_lite/util_posix/src/ActsUtilWideCheckApiTest.cpp | openharmony-sig-ci/xts_acts | 836aa530bc89417503cc6d1158d2458bfd43866b | [
"Apache-2.0"
] | null | null | null | kernel_lite/util_posix/src/ActsUtilWideCheckApiTest.cpp | openharmony-sig-ci/xts_acts | 836aa530bc89417503cc6d1158d2458bfd43866b | [
"Apache-2.0"
] | null | null | null | kernel_lite/util_posix/src/ActsUtilWideCheckApiTest.cpp | openharmony-sig-ci/xts_acts | 836aa530bc89417503cc6d1158d2458bfd43866b | [
"Apache-2.0"
] | 1 | 2021-09-13T12:04:33.000Z | 2021-09-13T12:04:33.000Z | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
*/
/*
* 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
... | 33.842269 | 118 | 0.642016 | openharmony-sig-ci |
5d558bb08d4ef14678f8a1be773aa5f48a93dd83 | 16,633 | cpp | C++ | tests/CppUTest/TestUTestStringMacro.cpp | aunitt/cpputest | c981ed449df76e8e769286663c1caab069da324e | [
"BSD-3-Clause"
] | 2 | 2016-02-04T16:34:01.000Z | 2021-05-27T17:48:15.000Z | tests/CppUTest/TestUTestStringMacro.cpp | aunitt/cpputest | c981ed449df76e8e769286663c1caab069da324e | [
"BSD-3-Clause"
] | null | null | null | tests/CppUTest/TestUTestStringMacro.cpp | aunitt/cpputest | c981ed449df76e8e769286663c1caab069da324e | [
"BSD-3-Clause"
] | 1 | 2020-01-22T19:46:10.000Z | 2020-01-22T19:46:10.000Z | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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... | 35.464819 | 118 | 0.788252 | aunitt |
5d580c4fb88cef7ca3bafeeb075058f2bac6d586 | 7,210 | cxx | C++ | graphics/slcd/slcd_mapping.cxx | codebje/incubator-nuttx-apps | d66bc2c1070cdbbb7c8e00ffa727a8515cf26eff | [
"Apache-2.0"
] | 132 | 2019-12-17T23:45:42.000Z | 2022-03-30T11:58:30.000Z | graphics/slcd/slcd_mapping.cxx | codebje/incubator-nuttx-apps | d66bc2c1070cdbbb7c8e00ffa727a8515cf26eff | [
"Apache-2.0"
] | 443 | 2020-01-01T03:06:24.000Z | 2022-03-31T08:57:35.000Z | graphics/slcd/slcd_mapping.cxx | codebje/incubator-nuttx-apps | d66bc2c1070cdbbb7c8e00ffa727a8515cf26eff | [
"Apache-2.0"
] | 232 | 2019-12-21T10:18:12.000Z | 2022-03-30T07:42:13.000Z | /////////////////////////////////////////////////////////////////////////////
// apps/graphics/slcd/slcd_mapping.cxx
//
// Copyright (C) 2019 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gnutt@nuttx.org>
//
// Redistribution and use in source and binary forms, with or without
// modification, are per... | 36.598985 | 77 | 0.571429 | codebje |
5d5a41dc6bc39f314a5bf3a1f486abd4ab60070c | 5,867 | cpp | C++ | Source/WebCore/html/HTMLPlugInElement.cpp | VincentWei/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | Source/WebCore/html/HTMLPlugInElement.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | null | null | null | Source/WebCore/html/HTMLPlugInElement.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | /**
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Stefan Schimanski (1Stein@gmx.de)
* Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of ... | 31.207447 | 141 | 0.694222 | VincentWei |
5d5c8d61bbc841b1940469f71093a39bc9c1dfc1 | 3,994 | cc | C++ | tce/src/base/bem/DestinationField.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 74 | 2015-10-22T15:34:10.000Z | 2022-03-25T07:57:23.000Z | tce/src/base/bem/DestinationField.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 79 | 2015-11-19T09:23:08.000Z | 2022-01-12T14:15:16.000Z | tce/src/base/bem/DestinationField.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 38 | 2015-11-17T10:12:23.000Z | 2022-03-25T07:57:24.000Z | /*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... | 32.737705 | 79 | 0.705058 | kanishkan |
5d5edeafb6b57aacc1a54a3edb36df001c920da1 | 20,107 | cpp | C++ | Game/OGRE/OgreMain/src/OgreHardwareBufferManager.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/OGRE/OgreMain/src/OgreHardwareBufferManager.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/OGRE/OgreMain/src/OgreHardwareBufferManager.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.html
This program is free software... | 39.194932 | 118 | 0.561198 | hackerlank |
5d60f4453a4e2c0bff29e205fc60cc7dd8f2b7f5 | 5,548 | cpp | C++ | src/core/transform/ojph_colour_sse2.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/core/transform/ojph_colour_sse2.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/core/transform/ojph_colour_sse2.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | /****************************************************************************/
// This software is released under the 2-Clause BSD license, included
// below.
//
// Copyright (c) 2019, Aous Naman
// Copyright (c) 2019, Kakadu Software Pty Ltd, Australia
// Copyright (c) 2019, The University of New South Wales, Austral... | 37.486486 | 78 | 0.550108 | jpambrun |
5d63312817b6c5ab1f5ff2e5a7de4c3775eff77e | 8,319 | cpp | C++ | src/linux/InotifyEventLoop.cpp | dacap/panoptes | f7d4756f18ff610f0ef2c160d56cd00cc3582939 | [
"MIT"
] | null | null | null | src/linux/InotifyEventLoop.cpp | dacap/panoptes | f7d4756f18ff610f0ef2c160d56cd00cc3582939 | [
"MIT"
] | null | null | null | src/linux/InotifyEventLoop.cpp | dacap/panoptes | f7d4756f18ff610f0ef2c160d56cd00cc3582939 | [
"MIT"
] | null | null | null | #include "pfw/linux/InotifyEventLoop.h"
#include <sys/ioctl.h>
#include <csignal>
#include <iostream>
using namespace pfw;
InotifyEventLoop::InotifyEventLoop(int inotifyInstance,
InotifyService *inotifyService)
: mInotifyService(inotifyService)
, mInotifyInstan... | 33.011905 | 80 | 0.572184 | dacap |
5d6397aa9ffd990562f026bebdca8b30e28aab2a | 348 | hpp | C++ | include/aikido/common/memory.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 181 | 2016-04-22T15:11:23.000Z | 2022-03-26T12:51:08.000Z | include/aikido/common/memory.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 514 | 2016-04-20T04:29:51.000Z | 2022-02-10T19:46:21.000Z | include/aikido/common/memory.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 31 | 2017-03-17T09:53:02.000Z | 2022-03-23T10:35:05.000Z | #ifndef AIKIDO_COMMON_MEMORY_HPP_
#define AIKIDO_COMMON_MEMORY_HPP_
#include <memory>
namespace aikido {
namespace common {
template <typename T, typename... Args>
::std::unique_ptr<T> make_unique(Args&&... args);
} // namespace common
} // namespace aikido
#include "aikido/common/detail/memory-impl.hpp"
#endif /... | 19.333333 | 49 | 0.761494 | personalrobotics |
5d647427755bd5cf6ebbca66a79030eb40079c79 | 4,346 | cpp | C++ | src/Utils/Tests/Math/BSplines/BSplineTest.cpp | DockBio/utilities | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | [
"BSD-3-Clause"
] | null | null | null | src/Utils/Tests/Math/BSplines/BSplineTest.cpp | DockBio/utilities | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | [
"BSD-3-Clause"
] | null | null | null | src/Utils/Tests/Math/BSplines/BSplineTest.cpp | DockBio/utilities | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include <Utils/Math/BSplines/BSpline.h>
#include <Utils/Math/BSplines/Coefficients.h>
#include <Utils... | 31.266187 | 95 | 0.744133 | DockBio |
5d6564bb0a711a45cfb9ec66e881bf51ebc78c8a | 1,103 | cpp | C++ | src/worker/ProgressReporter.cpp | rosneru/ADiffView | 5f7d6cf4c7b5c65ba1221370d272ba12c21f4911 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/worker/ProgressReporter.cpp | rosneru/ADiffView | 5f7d6cf4c7b5c65ba1221370d272ba12c21f4911 | [
"BSD-3-Clause",
"MIT"
] | 7 | 2019-02-09T18:27:06.000Z | 2021-07-13T09:47:18.000Z | src/worker/ProgressReporter.cpp | rosneru/ADiffView | 5f7d6cf4c7b5c65ba1221370d272ba12c21f4911 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #ifdef __clang__
#include <clib/exec_protos.h>
#else
#include <proto/exec.h>
#endif
#include <stddef.h>
#include "ProgressMessage.h"
#include "ProgressReporter.h"
ProgressReporter::ProgressReporter(struct MsgPort* pProgressPort,
struct MsgPort*& pReplyPort)
: m_pProgressPort(... | 23.468085 | 72 | 0.738894 | rosneru |
5d65678462753f48387aca3e2e37a5151966a5f3 | 4,754 | hpp | C++ | liboh/plugins/js/EmersonMessagingManager.hpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 31 | 2015-01-28T17:01:10.000Z | 2021-11-04T08:30:37.000Z | liboh/plugins/js/EmersonMessagingManager.hpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | null | null | null | liboh/plugins/js/EmersonMessagingManager.hpp | sirikata/sirikata | 3a0d54a8c4778ad6e25ef031d461b2bc3e264860 | [
"BSD-3-Clause"
] | 9 | 2015-08-02T18:39:49.000Z | 2019-10-11T10:32:30.000Z | // Copyright (c) 2011 Sirikata Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef __EMERSON_MESSAGING_MANAGER_HPP__
#define __EMERSON_MESSAGING_MANAGER_HPP__
#include <map>
#include <sirikata/core/odp/SSTDecls.hpp>
#include <si... | 41.701754 | 159 | 0.75915 | sirikata |
5d67256f74975f08a7bef1f42dd9a3816aa9976f | 19,808 | cc | C++ | generator/cc/generate_struct_cc.cc | NTNAEEM/hotentot | e578a2185c473301076ece5634113ab663996a3e | [
"MIT"
] | null | null | null | generator/cc/generate_struct_cc.cc | NTNAEEM/hotentot | e578a2185c473301076ece5634113ab663996a3e | [
"MIT"
] | null | null | null | generator/cc/generate_struct_cc.cc | NTNAEEM/hotentot | e578a2185c473301076ece5634113ab663996a3e | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2015 LabCrypto Org.
*
* 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... | 54.869806 | 172 | 0.591024 | NTNAEEM |
5d680959dcb71b868b23f43aa85a4f3640be88cc | 1,545 | cc | C++ | src/camera.cc | paly2/VESPID | aebfc05b7f9d152a69a168b9e31685de1abe48fa | [
"MIT"
] | 1 | 2018-05-08T07:40:57.000Z | 2018-05-08T07:40:57.000Z | src/camera.cc | paly2/VESPID | aebfc05b7f9d152a69a168b9e31685de1abe48fa | [
"MIT"
] | null | null | null | src/camera.cc | paly2/VESPID | aebfc05b7f9d152a69a168b9e31685de1abe48fa | [
"MIT"
] | null | null | null | #include <raspicam/raspicam_cv.h>
#include <cxcore.hpp>
#include <SDL_thread.h>
#include <SDL_mutex.h>
#include "camera.hh"
#include "util.hh"
namespace Camera {
Camera::Camera() : m_newimage_tracker(CAMERA_CLASER_ONSUMERS) {
m_thread.launch("CameraThread");
}
bool Camera::newImage(int src_id) {
if (m_newimag... | 21.164384 | 75 | 0.716505 | paly2 |
5d68da9b3e976b64485e5338e00a22222106cd49 | 1,901 | cpp | C++ | Demonstration/ranges.cpp | XuhuaHuang/Embeded-Cpp-Course | e1f67238fa3ae21963f144e4861802700845ebd9 | [
"MIT"
] | null | null | null | Demonstration/ranges.cpp | XuhuaHuang/Embeded-Cpp-Course | e1f67238fa3ae21963f144e4861802700845ebd9 | [
"MIT"
] | null | null | null | Demonstration/ranges.cpp | XuhuaHuang/Embeded-Cpp-Course | e1f67238fa3ae21963f144e4861802700845ebd9 | [
"MIT"
] | null | null | null | /*****************************************************************//**
* \file ranges.cpp
* \brief Demonstration of ranges and views in C++ 20.
*
* $ g++ ranges.cpp -o exec -std=c++20 -Wall -Wextra -Wpedantic
* $ ./exec
*
* \author Xuhua Huang
* \date March 2022
*****************************************... | 31.163934 | 97 | 0.509732 | XuhuaHuang |
5d6fe65c08f398e3f90cb09b236e570fdce17ca2 | 6,612 | cpp | C++ | Graph/10numberOfOpsToMakeNetworkConnected.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Graph/10numberOfOpsToMakeNetworkConnected.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Graph/10numberOfOpsToMakeNetworkConnected.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | class Solution {
public:
// Method 1: Using adjacency matrix and DFS/BFS to traverse for each nodes
// By traversing each nodes we find the components of a graph
// then check if atleast component-1 redundant edges are present or not
// if present we return ans as component-1 as that... | 37.355932 | 86 | 0.540532 | Coderangshu |
5d728769fe9f89708bd27c52f961093fad491786 | 3,116 | cpp | C++ | intern/cycles/util/util_murmurhash.cpp | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | intern/cycles/util/util_murmurhash.cpp | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | intern/cycles/util/util_murmurhash.cpp | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | /*
* Copyright 2018 Blender Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 24.535433 | 75 | 0.652439 | rbabari |
5d72959b82f3512f3036468d26d20a78356e82a3 | 1,517 | hpp | C++ | src/Numerical/RootFinding/RootFinder.hpp | wthrowe/spectre | 0ddd6405eef1e57de1d0a765aa4f6cfbc83c9f15 | [
"MIT"
] | null | null | null | src/Numerical/RootFinding/RootFinder.hpp | wthrowe/spectre | 0ddd6405eef1e57de1d0a765aa4f6cfbc83c9f15 | [
"MIT"
] | null | null | null | src/Numerical/RootFinding/RootFinder.hpp | wthrowe/spectre | 0ddd6405eef1e57de1d0a765aa4f6cfbc83c9f15 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
/// \file
/// Declares function find_root_of_function
#pragma once
#include <functional>
#include <limits>
#include <boost/math/tools/toms748_solve.hpp>
/*! \ingroup Functors
* \brief Finds the root of the function f with the TOMS_748 method.
... | 35.27907 | 80 | 0.673698 | wthrowe |
5d734406d164dd56a50e9f6dc0ce43d148360e57 | 455 | hpp | C++ | server/include/tds/ip/address_v4.hpp | JMazurkiewicz/TinDox | 7f6c8e826683c875692fc97a3e89a4c5833dabf9 | [
"MIT"
] | null | null | null | server/include/tds/ip/address_v4.hpp | JMazurkiewicz/TinDox | 7f6c8e826683c875692fc97a3e89a4c5833dabf9 | [
"MIT"
] | null | null | null | server/include/tds/ip/address_v4.hpp | JMazurkiewicz/TinDox | 7f6c8e826683c875692fc97a3e89a4c5833dabf9 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <ostream>
namespace tds::ip {
class AddressV4 {
public:
static const AddressV4 any;
AddressV4();
explicit AddressV4(std::uint32_t address);
std::uint32_t as_integer() const;
bool operator==(const AddressV4&) const noexcept = de... | 19.782609 | 70 | 0.632967 | JMazurkiewicz |
5d749b35c084fdd829b8b299179b46a3a95a6714 | 1,870 | hpp | C++ | external/caramel-poly/include/caramel-poly/detail/ConstexprPair.hpp | mikosz/caramel-engine | 7dbf1bbe4ece9c1f6813723a0bb5872e33e0284a | [
"MIT"
] | 1 | 2019-01-12T22:37:21.000Z | 2019-01-12T22:37:21.000Z | external/caramel-poly/include/caramel-poly/detail/ConstexprPair.hpp | mikosz/caramel-engine | 7dbf1bbe4ece9c1f6813723a0bb5872e33e0284a | [
"MIT"
] | null | null | null | external/caramel-poly/include/caramel-poly/detail/ConstexprPair.hpp | mikosz/caramel-engine | 7dbf1bbe4ece9c1f6813723a0bb5872e33e0284a | [
"MIT"
] | null | null | null | // Copyright Mikolaj Radwan 2018
// Distributed under the MIT license (See accompanying file LICENSE)
#ifndef CARAMELPOLY_DETAIL_CONSTEXPRPAIR_HPP__
#define CARAMELPOLY_DETAIL_CONSTEXPRPAIR_HPP__
#include <type_traits>
namespace caramel::poly::detail {
template <class FirstT, class SecondT, class = void>
class Cons... | 21.744186 | 117 | 0.738503 | mikosz |
5d74f56001e927aab9dae7bfaf5bcd2e6d6e99ed | 554 | inl | C++ | GameEngine/GameEngine/src/Resources.inl | SamCooksley/GameEngine | 3c32eba545428c8aa3227abcb815d8d799ab92d9 | [
"Apache-2.0"
] | null | null | null | GameEngine/GameEngine/src/Resources.inl | SamCooksley/GameEngine | 3c32eba545428c8aa3227abcb815d8d799ab92d9 | [
"Apache-2.0"
] | null | null | null | GameEngine/GameEngine/src/Resources.inl | SamCooksley/GameEngine | 3c32eba545428c8aa3227abcb815d8d799ab92d9 | [
"Apache-2.0"
] | null | null | null | namespace engine {
template <class T>
std::shared_ptr<T> Resources::Load(const String & _path)
{
static_assert(std::is_base_of<Asset, T>::value, "Resource must be type of Object.");
auto res = Application::s_context->resources.find(_path);
if (res != Application::s_context->resources.end())
{
... | 22.16 | 88 | 0.633574 | SamCooksley |
5d78dee24835002659c1dc33aa0a35839be4b565 | 3,773 | cpp | C++ | ngraph/core/reference/src/runtime/reference/tile.cpp | szabi-luxonis/openvino | c8dd831fc3ba68a256ab47edb4f6bf3cb5e804be | [
"Apache-2.0"
] | 2 | 2020-11-18T14:14:06.000Z | 2020-11-28T04:55:57.000Z | ngraph/core/reference/src/runtime/reference/tile.cpp | szabi-luxonis/openvino | c8dd831fc3ba68a256ab47edb4f6bf3cb5e804be | [
"Apache-2.0"
] | 30 | 2020-11-13T11:44:07.000Z | 2022-02-21T13:03:16.000Z | ngraph/core/reference/src/runtime/reference/tile.cpp | szabi-luxonis/openvino | c8dd831fc3ba68a256ab47edb4f6bf3cb5e804be | [
"Apache-2.0"
] | 1 | 2020-12-18T15:47:45.000Z | 2020-12-18T15:47:45.000Z | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// 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://w... | 35.933333 | 98 | 0.571694 | szabi-luxonis |
5d7af16dd1a8576e69027603e04837e44e0044ba | 2,066 | cpp | C++ | GameServer/Source/MapRateInfo.cpp | sp3cialk/MU-S8EP2-Repack | 202856a74c905c203b9b2795fd161f564ca8b257 | [
"MIT"
] | 10 | 2019-04-09T23:36:43.000Z | 2022-02-10T19:20:52.000Z | GameServer/Source/MapRateInfo.cpp | microvn/mu-s8ep2-repack | 202856a74c905c203b9b2795fd161f564ca8b257 | [
"MIT"
] | 1 | 2019-09-25T17:12:36.000Z | 2019-09-25T17:12:36.000Z | GameServer/Source/MapRateInfo.cpp | microvn/mu-s8ep2-repack | 202856a74c905c203b9b2795fd161f564ca8b257 | [
"MIT"
] | 9 | 2019-09-25T17:12:57.000Z | 2021-08-18T01:21:25.000Z | #include "stdafx.h"
#include "MapRateInfo.h"
#include "..\pugixml\pugixml.hpp"
#include "GameMain.h"
#include "MasterSkillSystem.h"
using namespace pugi;
MapRateInfo g_MapRateInfo;
MapRateInfo::MapRateInfo()
{
}
MapRateInfo::~MapRateInfo()
{
}
void MapRateInfo::Init()
{
this->m_RateInfo.clear();
if( this->m_Rat... | 20.868687 | 82 | 0.671346 | sp3cialk |
5d7c098b2c29bc5c4548848c198e47fd3d847a75 | 2,573 | cc | C++ | linux/flutter_jscore_plugin.cc | xuelongqy/flutter_jscore | dd8bf1153c7a8bfc78adfd24accb129740b8aa29 | [
"MIT"
] | 122 | 2020-02-26T06:27:46.000Z | 2022-03-25T08:37:54.000Z | linux/flutter_jscore_plugin.cc | xuelongqy/flutter_jscore | dd8bf1153c7a8bfc78adfd24accb129740b8aa29 | [
"MIT"
] | 11 | 2020-03-15T10:36:57.000Z | 2022-01-19T06:28:08.000Z | linux/flutter_jscore_plugin.cc | xuelongqy/flutter_jscore | dd8bf1153c7a8bfc78adfd24accb129740b8aa29 | [
"MIT"
] | 19 | 2020-03-10T15:30:13.000Z | 2021-11-23T14:52:25.000Z | #include "include/flutter_jscore/flutter_jscore_plugin.h"
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <sys/utsname.h>
#include <cstring>
#define FLUTTER_JSCORE_PLUGIN(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), flutter_jscore_plugin_get_type(), \
FlutterJscore... | 36.239437 | 82 | 0.743101 | xuelongqy |
5d8351b210297e42b59a3a9f4d8cef979bbf537a | 497 | cpp | C++ | CsWeapon/Source/CsWp/Public/Trace/Data/Sound/CsData_TraceWeapon_SoundFire.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsWeapon/Source/CsWp/Public/Trace/Data/Sound/CsData_TraceWeapon_SoundFire.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsWeapon/Source/CsWp/Public/Trace/Data/Sound/CsData_TraceWeapon_SoundFire.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Trace/Data/Sound/CsData_TraceWeapon_SoundFire.h"
#include "CsWp.h"
const FName ICsData_TraceWeapon_SoundFire::Name = FName("ICsData_TraceWeapon_SoundFire");
UCsData_TraceWeapon_SoundFire::UCsData_TraceWeapon_SoundFire(const FObjectInitialize... | 45.181818 | 132 | 0.806841 | closedsum |
5d8526bbc9ca05b3cea9dc75b261669fe244cff1 | 6,971 | hpp | C++ | Code/Foundation/Common/Containers/SlotMap.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Code/Foundation/Common/Containers/SlotMap.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | Code/Foundation/Common/Containers/SlotMap.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
#include "ContainerCommon.hpp"
#include "Memory/Allocator.hpp"
namespace Zero
{
/// Intrusive slot map container. Uses an array of slots combined with
// a unique id. Value Type MUST be a pointer.
template <typename keyType, typename dataType, typename slotPolicy, typen... | 22.130159 | 106 | 0.629465 | WelderUpdates |
5d8656a057e698ddcbb02984eabfb6bfd9f7493b | 3,334 | cpp | C++ | src/cpp/23. Merge k Sorted Lists.cpp | yjjnls/D.S.A-Leet | be19c3ccc1f704e75590786fdfd4cd3ab4818d4f | [
"MIT"
] | 222 | 2018-09-25T08:46:31.000Z | 2022-02-07T12:33:42.000Z | src/cpp/23. Merge k Sorted Lists.cpp | yjjnls/D.S.A-Leet | be19c3ccc1f704e75590786fdfd4cd3ab4818d4f | [
"MIT"
] | 1 | 2017-11-23T04:39:48.000Z | 2017-11-23T04:39:48.000Z | src/cpp/23. Merge k Sorted Lists.cpp | yjjnls/D.S.A-Leet | be19c3ccc1f704e75590786fdfd4cd3ab4818d4f | [
"MIT"
] | 12 | 2018-10-05T03:16:05.000Z | 2020-12-19T04:25:33.000Z | /*
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
*/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
#include <common.hpp>
using std::priority_queue;
class ... | 22.375839 | 98 | 0.538092 | yjjnls |
5d8b1ef2a7b3daea0e07e0339cec613f8146aaac | 1,043 | cc | C++ | src/graphics/lib/compute/tests/common/vk_sampler_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/graphics/lib/compute/tests/common/vk_sampler_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/graphics/lib/compute/tests/common/vk_sampler_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | // Copyright 2019 The Fuchsia 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 "vk_sampler.h"
#include <gtest/gtest.h>
#include "vk_app_state.h"
class VkSamplerTest : public ::testing::Test {
protected:
void
SetUp() o... | 20.86 | 86 | 0.650048 | allansrc |
5d8d483cde66fb01c4dea11926a7591741ad3c7c | 551 | hpp | C++ | library/ATF/__TEMP_WAIT_TOWER.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/__TEMP_WAIT_TOWER.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/__TEMP_WAIT_TOWER.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CMapData.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct __TEMP_WAIT_TOWER
{
unsigned int dwMasterSerial;
char byItemIndex;
... | 22.958333 | 108 | 0.662432 | lemkova |
5d8df60e036426cf937e606695a8f286a1d4e977 | 440 | cpp | C++ | code/planecalib_ui/UserInterfaceInfo.cpp | TANHAIYU/Self-calibration-using-Homography-Constraints | a3e7efa8cc3de1be1489891d81c0fb00b5b98777 | [
"BSD-3-Clause"
] | 2 | 2020-03-17T16:34:31.000Z | 2020-06-17T18:30:13.000Z | code/planecalib_ui/UserInterfaceInfo.cpp | TANHAIYU/planecalib | a3e7efa8cc3de1be1489891d81c0fb00b5b98777 | [
"BSD-3-Clause"
] | null | null | null | code/planecalib_ui/UserInterfaceInfo.cpp | TANHAIYU/planecalib | a3e7efa8cc3de1be1489891d81c0fb00b5b98777 | [
"BSD-3-Clause"
] | null | null | null | #include "UserInterfaceInfo.h"
namespace planecalib {
std::unique_ptr<UserInterfaceInfo> UserInterfaceInfo::gInstance;
UserInterfaceInfo &UserInterfaceInfo::Instance()
{
if(gInstance.get() == NULL)
gInstance.reset(new UserInterfaceInfo());
return *gInstance;
}
UserInterfaceInfo::UserInterfaceInfo()
{
memset(mK... | 20.952381 | 64 | 0.768182 | TANHAIYU |
5d90e81bf19edf19ce57074503f29e43b805b7df | 996 | hpp | C++ | include/ShaderAST/Expr/ExprQuestion.hpp | jarrodmky/ShaderWriter | ee9ce00a003bf544f8c8f23b5c07739e21cb3754 | [
"MIT"
] | 148 | 2018-10-11T16:51:37.000Z | 2022-03-26T13:55:08.000Z | include/ShaderAST/Expr/ExprQuestion.hpp | jarrodmky/ShaderWriter | ee9ce00a003bf544f8c8f23b5c07739e21cb3754 | [
"MIT"
] | 30 | 2019-11-30T11:43:07.000Z | 2022-01-25T21:09:47.000Z | include/ShaderAST/Expr/ExprQuestion.hpp | jarrodmky/ShaderWriter | ee9ce00a003bf544f8c8f23b5c07739e21cb3754 | [
"MIT"
] | 8 | 2020-04-17T13:18:30.000Z | 2021-11-20T06:24:44.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___AST_ExprQuestion_H___
#define ___AST_ExprQuestion_H___
#pragma once
#include "Expr.hpp"
namespace ast::expr
{
class Question
: public Expr
{
public:
SDAST_API Question( type::TypePtr type
, ExprPtr ctrlExpr
, ExprPtr trueExpr
, ExprPtr falseExpr );
S... | 17.172414 | 56 | 0.688755 | jarrodmky |
5d91476154f3b00ee3a98cb9c21e624303f71476 | 4,846 | hpp | C++ | include/Org/BouncyCastle/Math/EC/Rfc7748/X448Field.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Math/EC/Rfc7748/X448Field.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Math/EC/Rfc7748/X448Field.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"
// Completed includes
// Type namespace: Org.BouncyCastle.Math.EC.Rfc7748
namespace Org:... | 52.673913 | 133 | 0.647751 | darknight1050 |
5d932fae9acbe884480123b136f824626fa03bda | 17,557 | cpp | C++ | library/uapki/src/api/verify.cpp | DJm00n/UAPKI | 7ced3adc6d2990c88cc48b273d44ec99489a0282 | [
"BSD-2-Clause"
] | null | null | null | library/uapki/src/api/verify.cpp | DJm00n/UAPKI | 7ced3adc6d2990c88cc48b273d44ec99489a0282 | [
"BSD-2-Clause"
] | null | null | null | library/uapki/src/api/verify.cpp | DJm00n/UAPKI | 7ced3adc6d2990c88cc48b273d44ec99489a0282 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, The UAPKI Project Authors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... | 37.040084 | 144 | 0.695734 | DJm00n |
5d942c48f1e2de0e10c3373c5f87dc55178b15b6 | 8,658 | hpp | C++ | src/core/storage/query_engine/algorithm/ec_sort.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 11,356 | 2017-12-08T19:42:32.000Z | 2022-03-31T16:55:25.000Z | src/core/storage/query_engine/algorithm/ec_sort.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 2,402 | 2017-12-08T22:31:01.000Z | 2022-03-28T19:25:52.000Z | src/core/storage/query_engine/algorithm/ec_sort.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef SFRAME_ALGORITHM_EC_SORT_HPP
#define SFRAME_ALGORITHM_EC_SORT_HPP
#include <vector>
#includ... | 38.651786 | 86 | 0.681682 | Bpowers4 |
4b68327de115fb63425fb394ef35d2566477cad3 | 4,240 | cpp | C++ | 2 Year/2015 Pattern/DSL/Group A/Assignment 9.cpp | bhushanasati25/College | 638ab4f038a783beae297652623e8c6679465fef | [
"MIT"
] | 4 | 2020-10-22T15:37:09.000Z | 2022-02-17T17:30:03.000Z | 2 Year/2015 Pattern/DSL/Group A/Assignment 9.cpp | mohitkhedkar/College | f713949827d69f13b1bf8fb082e86e8bead7ac6e | [
"MIT"
] | null | null | null | 2 Year/2015 Pattern/DSL/Group A/Assignment 9.cpp | mohitkhedkar/College | f713949827d69f13b1bf8fb082e86e8bead7ac6e | [
"MIT"
] | 5 | 2021-06-19T01:23:18.000Z | 2022-02-26T14:47:15.000Z | // Write C/C++ program for storing matrix. Write functions for
// 1. Check whether given matrix is upper triangular or not
// 2. Compute summation of diagonal elements
// 3. Compute transpose of matrix
// 4. Add, subtract and multiply two matrices
// Author: Mohit Khedkar
#include<iostream>
using namespace std;
... | 20.582524 | 143 | 0.365094 | bhushanasati25 |
4b6b6b0da66e98c0b06eae7ea6b4d0052f4684ef | 562 | cpp | C++ | test/test_main.cpp | polestar/audio_utils | 9f5aedb2e21475b4b86e0adfab2da13fbf539930 | [
"MIT"
] | 1 | 2020-02-23T09:53:27.000Z | 2020-02-23T09:53:27.000Z | test/test_main.cpp | polestar/audio_utils | 9f5aedb2e21475b4b86e0adfab2da13fbf539930 | [
"MIT"
] | 1 | 2022-03-06T09:04:17.000Z | 2022-03-06T09:04:17.000Z | test/test_main.cpp | cfogelklou/sweet_osal_platform | 3ebb0ccc37910caf09fd7d2974c742cbdb57171e | [
"MIT"
] | 1 | 2021-12-16T04:26:49.000Z | 2021-12-16T04:26:49.000Z | #include <gtest/gtest.h>
#include <gmock/gmock.h>
using namespace testing;
#ifdef WIN32
#include <Windows.h>
#define usleep(x) Sleep(x/1000)
#endif
static void stupidRandom(uint8_t *buf, int cnt) {
for (int i = 0; i < cnt; i++) {
buf[i] = rand() % 255;
}
}
TEST(TestAudioLib, bleah){
}
int main(int argc, c... | 18.733333 | 66 | 0.670819 | polestar |
4b6c557bfac6858f633efb7419bd279a58bc67f6 | 2,425 | cpp | C++ | Assignment2/report/src/main.cpp | Gripnook/numerical-methods | 14cb60050e5f2ba413f59690beb24cacb1153563 | [
"MIT"
] | 1 | 2019-02-21T01:35:02.000Z | 2019-02-21T01:35:02.000Z | Assignment2/src/main.cpp | Gripnook/numerical-methods | 14cb60050e5f2ba413f59690beb24cacb1153563 | [
"MIT"
] | null | null | null | Assignment2/src/main.cpp | Gripnook/numerical-methods | 14cb60050e5f2ba413f59690beb24cacb1153563 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <algorithm>
#include <numeric>
#include <cmath>
#include "matrix.h"
#include "matrix-util.h"
#include "solver.h"
#include "finite-differences.h"
#include "conjugate-gradient.h"
using namespace Numeric;
void question3();
void print(const Matrix<double>& nodes, const Ma... | 29.938272 | 78 | 0.525361 | Gripnook |
4b6c9e2d2865f26739898f527eb513ebf0d5a6ee | 4,681 | cpp | C++ | core/jitk/codegen_util.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 236 | 2015-03-31T15:39:30.000Z | 2022-03-24T01:43:14.000Z | core/jitk/codegen_util.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 324 | 2015-05-27T10:35:38.000Z | 2021-12-10T07:34:10.000Z | core/jitk/codegen_util.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 41 | 2015-05-26T12:38:42.000Z | 2022-01-10T15:16:37.000Z | /*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (at your option) ... | 32.734266 | 111 | 0.618885 | bh107 |