hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3300a31507ffdad377a2a6fa8d98adf15252013 | 1,050 | cpp | C++ | src/firmware/cpu/led.cpp | vagran/hydroponics | e0fd187f5b96646ac71526bda50dbe3ad0c0249f | [
"BSD-3-Clause"
] | 26 | 2015-10-11T18:07:41.000Z | 2022-01-17T19:49:37.000Z | src/firmware/cpu/led.cpp | vagran/hydroponics | e0fd187f5b96646ac71526bda50dbe3ad0c0249f | [
"BSD-3-Clause"
] | null | null | null | src/firmware/cpu/led.cpp | vagran/hydroponics | e0fd187f5b96646ac71526bda50dbe3ad0c0249f | [
"BSD-3-Clause"
] | 1 | 2019-02-24T04:11:21.000Z | 2019-02-24T04:11:21.000Z | /* This file is a part of 'hydroponics' project.
* Copyright (c) 2015, Artyom Lebedev <artyom.lebedev@gmail.com>
* All rights reserved.
* See LICENSE file for copyright details.
*/
/** @file led.cpp */
#include "cpu.h"
using namespace adk;
Led led;
Led::Led()
{
AVR_BIT_SET8(AVR_REG_DDR(LED_PORT), LED_PIN);... | 17.213115 | 64 | 0.626667 | vagran |
b3309a268b396a955a2a57ad8fc2b320d3b562af | 1,552 | cpp | C++ | gym/index00_09/ioi2021_00/RB.cpp | daklqw/IOI2021-training | 4f21cef8eec47330e3db77a3d90cbe2309fa8294 | [
"Apache-2.0"
] | 6 | 2020-10-12T05:07:03.000Z | 2021-09-11T14:54:58.000Z | gym/index00_09/ioi2021_00/RB.cpp | daklqw/IOI2021-training | 4f21cef8eec47330e3db77a3d90cbe2309fa8294 | [
"Apache-2.0"
] | null | null | null | gym/index00_09/ioi2021_00/RB.cpp | daklqw/IOI2021-training | 4f21cef8eec47330e3db77a3d90cbe2309fa8294 | [
"Apache-2.0"
] | 2 | 2021-02-09T02:06:31.000Z | 2021-10-06T01:25:08.000Z | #include <bits/stdc++.h>
const int MAXN = 1e5 + 10;
void bye() {
std::cout << "Impossible" << std::endl;
exit(0);
}
int n, P, noB, noG, G1, G2, B1, B2, Gex, Bex;
int main() {
std::ios_base::sync_with_stdio(false), std::cin.tie(0);
std::cin >> n >> noB >> noG;
noB = n - noB;
noG = n - noG;
if (noB == 0 && noG ==... | 24.634921 | 57 | 0.438789 | daklqw |
b335d3719f573fc295a28ac589275becf20bc892 | 1,679 | cpp | C++ | ProjectEuler/pe213.cpp | wang12d/ProgrammingPractices | c7a150eb1aeb0e30a30bc77a25aba940b99ce773 | [
"MIT"
] | null | null | null | ProjectEuler/pe213.cpp | wang12d/ProgrammingPractices | c7a150eb1aeb0e30a30bc77a25aba940b99ce773 | [
"MIT"
] | null | null | null | ProjectEuler/pe213.cpp | wang12d/ProgrammingPractices | c7a150eb1aeb0e30a30bc77a25aba940b99ce773 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using std::cout;
using std::endl;
using std::vector;
int
main(int argc, char** argv)
{
const int grid{30};
const int bells{50};
vector<vector<double>> emptyGrid(grid, vector<double>(grid, 1.0));
for (int i = 0; i < grid; ++i) {
for (int j = 0; j < grid; ++j) {
... | 34.979167 | 80 | 0.387731 | wang12d |
b33c37c8882954616a472056e96df77ee546adac | 2,261 | cpp | C++ | src/childsarequest.cpp | OpenIKEv2/libopenikev2 | 9d91225e5917cbc9afc83db37dfe4905c5501d01 | [
"Apache-2.0"
] | 7 | 2017-02-27T17:52:26.000Z | 2021-12-15T06:03:26.000Z | src/childsarequest.cpp | David-WL/libopenikev2 | 9d91225e5917cbc9afc83db37dfe4905c5501d01 | [
"Apache-2.0"
] | 5 | 2017-03-02T20:16:41.000Z | 2017-11-04T08:23:13.000Z | src/childsarequest.cpp | David-WL/libopenikev2 | 9d91225e5917cbc9afc83db37dfe4905c5501d01 | [
"Apache-2.0"
] | 3 | 2017-04-12T00:25:25.000Z | 2021-09-23T09:13:27.000Z | /***************************************************************************
* Copyright (C) 2005 by *
* Alejandro Perez Mendez alex@um.es *
* Pedro J. Fernandez Ruiz pedroj@um.es *
* ... | 40.375 | 187 | 0.551968 | OpenIKEv2 |
b3416925e4bc9bb3abdd3983c11703a531a91d9b | 5,267 | cpp | C++ | base/files/version_info.cpp | luciouskami/libbase | 89dc13b0eab4d6a48e74c99254b025a15b875ee0 | [
"BSD-3-Clause"
] | 6 | 2021-09-24T06:18:14.000Z | 2022-03-21T20:44:21.000Z | base/files/version_info.cpp | luciouskami/libbase | 89dc13b0eab4d6a48e74c99254b025a15b875ee0 | [
"BSD-3-Clause"
] | null | null | null | base/files/version_info.cpp | luciouskami/libbase | 89dc13b0eab4d6a48e74c99254b025a15b875ee0 | [
"BSD-3-Clause"
] | 2 | 2021-09-23T06:01:55.000Z | 2021-09-24T06:18:15.000Z | // Copyright 2021 The Tapirus-Team 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 "base/universal.inl"
namespace base::files
{
namespace {
struct LanguageAndCodePage {
WORD language;
W... | 29.261111 | 102 | 0.606987 | luciouskami |
b342c3749a0cbaad2bf8f77d204d12b624832070 | 2,615 | cpp | C++ | src/gpu/d3d/GrD3DAttachment.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/gpu/d3d/GrD3DAttachment.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/gpu/d3d/GrD3DAttachment.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/d3d/GrD3DAttachment.h"
#include "src/gpu/d3d/GrD3DGpu.h"
GrD3DAttachment::GrD3DAttachment(
GrD3DGpu* gpu, SkISize dimensions, UsageFlags supportedUsages... | 33.961039 | 100 | 0.754876 | NearTox |
b3451c655d4efa665a9a50d125b5aa897f757543 | 708 | cpp | C++ | test/tests/models/tx/Test_TxBody.cpp | ltc-mweb/libmw | e4c487e5e90a17d2121d1e7f1cd65d4793a5c7ac | [
"MIT"
] | 24 | 2020-10-01T10:15:22.000Z | 2022-02-01T20:07:47.000Z | test/tests/models/tx/Test_TxBody.cpp | Dogecoin2-0/MimbleWimble | e4c487e5e90a17d2121d1e7f1cd65d4793a5c7ac | [
"MIT"
] | 29 | 2020-10-11T00:43:51.000Z | 2021-07-01T22:39:06.000Z | test/tests/models/tx/Test_TxBody.cpp | Dogecoin2-0/MimbleWimble | e4c487e5e90a17d2121d1e7f1cd65d4793a5c7ac | [
"MIT"
] | 5 | 2020-10-02T13:17:50.000Z | 2021-05-30T03:26:49.000Z | #include <catch.hpp>
#include <test_framework/TxBuilder.h>
TEST_CASE("Tx Body")
{
const uint64_t pegInAmount = 123;
const uint64_t fee = 5;
mw::Transaction::CPtr tx = test::TxBuilder()
.AddInput(20).AddInput(30, EOutputFeatures::PEGGED_IN)
.AddOutput(45).AddOutput(pegInAmount, EOutputFeat... | 24.413793 | 73 | 0.648305 | ltc-mweb |
b3452d368e6018349aa361ab2078add4b1e52ef9 | 1,434 | cpp | C++ | compiler-information/sizeofs.cpp | mstankus/my-common-cpp | 8b3e282e6fd987bf53886a262a96daf9bd9e8a6e | [
"MIT"
] | null | null | null | compiler-information/sizeofs.cpp | mstankus/my-common-cpp | 8b3e282e6fd987bf53886a262a96daf9bd9e8a6e | [
"MIT"
] | null | null | null | compiler-information/sizeofs.cpp | mstankus/my-common-cpp | 8b3e282e6fd987bf53886a262a96daf9bd9e8a6e | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdint.h>
#include <string>
#include <string_view>
#include <memory>
template<typename T>
void print_type(const char * s)
{
auto i = strlen(s);
std::cout << s;
for(;i<30;++i) std::cout << ' ';
std::cout << ": " << sizeof(T)
<< " bytes (x" << CHAR_BIT << " = "
... | 28.68 | 58 | 0.608089 | mstankus |
b34e50004f84421e0de4048fad863e41aac457e4 | 1,830 | cpp | C++ | Tree/LargestBSTInBinaryTree/LargestBSTInBinaryTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Tree/LargestBSTInBinaryTree/LargestBSTInBinaryTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Tree/LargestBSTInBinaryTree/LargestBSTInBinaryTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | /*
Problem statement: Given a Binary Tree, write a function that returns the size of the largest subtree which is also a Binary Search Tree (BST). If the
complete Binary Tree is BST, then return the size of the whole tree.
Examples:
Input:
5
/ \
2 4
/ \
1 3
Output: 3
The following subtree is... | 21.785714 | 150 | 0.58306 | PrachieNaik |
b35c7901846ceb3acf3c65710f4cbd544f5f1747 | 517 | cpp | C++ | 2017/day20/tests/TestClass.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | 3 | 2021-07-01T14:31:06.000Z | 2022-03-29T20:41:21.000Z | 2017/day20/tests/TestClass.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | null | null | null | 2017/day20/tests/TestClass.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | null | null | null | #include "TestClass.h"
#include "../test.h"
namespace aoc2017_day20 {
TEST_F(Tests2017Day20, part_1_test) {
ASSERT_EQ(part_1("../2017/day20/input_test.in"), 0);
}
TEST_F(Tests2017Day20, part_1_real_test) {
ASSERT_EQ(part_1("../2017/day20/input.in"), 243);
}
TEST_F(Tests2017Day20, ... | 24.619048 | 61 | 0.634429 | alexandru-andronache |
b35d93aeff923a803a36c700560d87857cbe4ddd | 4,635 | cpp | C++ | CPP/RhinoCppTest/cmdRhinoCppTest.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | 1 | 2022-02-06T10:50:42.000Z | 2022-02-06T10:50:42.000Z | CPP/RhinoCppTest/cmdRhinoCppTest.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | null | null | null | CPP/RhinoCppTest/cmdRhinoCppTest.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | null | null | null | // cmdRhinoCppTest.cpp : command file
//
#include "StdAfx.h"
#include "RhinoCppTestPlugIn.h"
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
//
// BEGIN RhinoCppTest command
//
#pragma region RhinoCppTest command
// Do NOT put the def... | 32.640845 | 112 | 0.640561 | hrntsm |
b35f78eafd42b72306306256eb38f4b0fe653e6e | 608 | hpp | C++ | Includes/Rosetta/Common/Macros.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Includes/Rosetta/Common/Macros.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Includes/Rosetta/Common/Macros.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#ifndef ROSETTASTONE_MACROS_HPP
#define ROSETTASTONE_MACROS_HPP
#if d... | 27.636364 | 75 | 0.807566 | Hearthstonepp |
b36074ad600f715170ff1014ffe071e602c7bf66 | 847 | hpp | C++ | include/poike/core/DescriptorPool.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/core/DescriptorPool.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/core/DescriptorPool.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | /**
* @file DescriptorPool.hpp
* @brief Define DescriptorPool class
*/
#ifndef DESCRIPTORPOOL_HPP
#define DESCRIPTORPOOL_HPP
// clang-format off
#include <poike/core/VulkanHeader.hpp> // for VkDescriptorPool, VkDescriptorPoolCr...
#include <poike/meta/NoCopy.hpp> // for NoCopy
namespace poike { class Device... | 22.891892 | 86 | 0.72137 | florianvazelle |
b369c2af8870330e1d3ea774be3354eb3b00d166 | 1,003 | hpp | C++ | include/fastbuffers/type_traits.hpp | kcwl/fastbuffers | 0ff82bdb43a3f616b69ae6a60790d85297fc7a15 | [
"MIT"
] | 1 | 2022-01-17T14:41:52.000Z | 2022-01-17T14:41:52.000Z | include/fastbuffers/type_traits.hpp | kcwl/fastbuffers | 0ff82bdb43a3f616b69ae6a60790d85297fc7a15 | [
"MIT"
] | null | null | null | include/fastbuffers/type_traits.hpp | kcwl/fastbuffers | 0ff82bdb43a3f616b69ae6a60790d85297fc7a15 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <tuple>
namespace fastbuffers
{
template<typename _Ty, typename _ = void>
struct is_container : std::false_type {};
template<typename _Ty>
struct is_container<_Ty, std::void_t<typename _Ty::value_type,
typename _Ty::size_type,
typename _Ty::allocator_type,
typenam... | 27.108108 | 86 | 0.725823 | kcwl |
b370e8ff0450150eae99ee4b91da6ed9dc4e24ae | 343 | cpp | C++ | graph/dfs.cpp | fredbr/algorithm-implementations | 19da93dc4632cbba91f6014e821f9b08b4e00248 | [
"CC0-1.0"
] | 13 | 2018-08-23T22:11:23.000Z | 2021-06-10T04:15:09.000Z | graph/dfs.cpp | fredbr/algorithm-implementations | 19da93dc4632cbba91f6014e821f9b08b4e00248 | [
"CC0-1.0"
] | null | null | null | graph/dfs.cpp | fredbr/algorithm-implementations | 19da93dc4632cbba91f6014e821f9b08b4e00248 | [
"CC0-1.0"
] | 3 | 2019-09-06T17:44:38.000Z | 2019-09-10T12:41:35.000Z | #include <bits/stdc++.h>
using namespace std;
const int maxn = 101010;
vector<int> v[maxn];
int vis[maxn];
// if general graph
int dfs(int x)
{
vis[x] = 1;
// body
for (int u : v[x])
if (!vis[u]) dfs(u);
// after
}
// if tree
int dfs(int x, int p)
{
// body
for (int u : v[x]) {
if (u == p) continue;
df... | 11.827586 | 24 | 0.54519 | fredbr |
b3791827c409dbbe0afa86e0cb705a842f3cb8f8 | 888 | cpp | C++ | Strings/Anagrams_Bitset.cpp | rsghotra/InterviewQuestions | 41dadd4c523bc267e4ec4b238e6a98749f655915 | [
"Apache-2.0"
] | null | null | null | Strings/Anagrams_Bitset.cpp | rsghotra/InterviewQuestions | 41dadd4c523bc267e4ec4b238e6a98749f655915 | [
"Apache-2.0"
] | null | null | null | Strings/Anagrams_Bitset.cpp | rsghotra/InterviewQuestions | 41dadd4c523bc267e4ec4b238e6a98749f655915 | [
"Apache-2.0"
] | 1 | 2020-12-08T23:52:00.000Z | 2020-12-08T23:52:00.000Z | #include<iostream>
using namespace std;
//anagrams using Bitset
/*
Algorithm:
1. Traverse over str1 and perform merging on the Hash
2. Traverse over second and perform masking to see if the bit was set
*/
void Anagrams_Bitset(string str1, string str2) {
if(str1.length() != str2.length()) {
... | 21.658537 | 77 | 0.506757 | rsghotra |
b3881eaa8e0e69a7ee5bb33a570ed3af054b8c71 | 1,772 | hpp | C++ | sdl/graehl/shared/pointer_traits.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/graehl/shared/pointer_traits.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2016-04-18T17:20:37.000Z | 2016-04-23T07:36:38.000Z | sdl/graehl/shared/pointer_traits.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 7 | 2015-06-11T14:48:13.000Z | 2017-08-12T16:06:19.000Z | // Copyright 2014 Jonathan Graehl-http://graehl.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | 26.447761 | 96 | 0.708239 | sdl-research |
b3893852a8292b050016ba5516792a4f3a4c7712 | 6,609 | cpp | C++ | src/core/blocks/strings.cpp | Kryptos-FR/chainblocks | 67160c535237a90cfe8a059db487d054d2714a3c | [
"BSD-3-Clause"
] | 15 | 2019-10-30T18:21:52.000Z | 2021-06-22T06:06:15.000Z | src/core/blocks/strings.cpp | Kryptos-FR/chainblocks | 67160c535237a90cfe8a059db487d054d2714a3c | [
"BSD-3-Clause"
] | 103 | 2021-06-26T17:09:43.000Z | 2022-03-30T12:05:18.000Z | src/core/blocks/strings.cpp | Kryptos-FR/chainblocks | 67160c535237a90cfe8a059db487d054d2714a3c | [
"BSD-3-Clause"
] | 8 | 2021-07-27T14:45:26.000Z | 2022-03-01T08:07:18.000Z | /* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright © 2019 Fragcolor Pte. Ltd. */
#include "../../../deps/utf8.h/utf8.h"
#include "shared.hpp"
#include <regex>
namespace chainblocks {
namespace Regex {
struct Common {
static inline Parameters params{
{"Regex", CBCCSTR("The regular expression."), {CoreInf... | 27.309917 | 77 | 0.659404 | Kryptos-FR |
b3a762edecc8b0b0f823da8a18bd6e851d8780bb | 7,816 | cpp | C++ | SDLTests/StandardNodes.cpp | rileyzzz/NodeBackend | eb3e36d5482f238024a7b0a3123d0c247ba6fba3 | [
"MIT"
] | 3 | 2020-08-01T22:29:41.000Z | 2022-01-13T07:53:35.000Z | SDLTests/StandardNodes.cpp | rileyzzz/NodeBackend | eb3e36d5482f238024a7b0a3123d0c247ba6fba3 | [
"MIT"
] | null | null | null | SDLTests/StandardNodes.cpp | rileyzzz/NodeBackend | eb3e36d5482f238024a7b0a3123d0c247ba6fba3 | [
"MIT"
] | 1 | 2021-09-19T20:20:32.000Z | 2021-09-19T20:20:32.000Z | #include "StandardNodes.h"
#include <math.h>
#include "NodeHelpers.h"
#include <thread>
#include <algorithm>
namespace NodeEdit
{
//Calculations ========================================
//Math
Data* NodeMath::Add(std::vector<Data*> Inputs)
{
NodeNumeric* input1 = (NodeNumeric*)Inputs[0];
... | 29.055762 | 84 | 0.596725 | rileyzzz |
b3b071b16484de90d1663094843c80545192c815 | 4,490 | hpp | C++ | include/bugspray/reporter/constexpr_reporter.hpp | jan-moeller/bugspray | 77777526f4445283b5f48b6f11ef82c84fdb167b | [
"MIT"
] | null | null | null | include/bugspray/reporter/constexpr_reporter.hpp | jan-moeller/bugspray | 77777526f4445283b5f48b6f11ef82c84fdb167b | [
"MIT"
] | null | null | null | include/bugspray/reporter/constexpr_reporter.hpp | jan-moeller/bugspray | 77777526f4445283b5f48b6f11ef82c84fdb167b | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2022 Jan Möller
//
// 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, modif... | 41.192661 | 118 | 0.649889 | jan-moeller |
a2a55c6bae62178f17452ef3db002a0a7086da77 | 533 | cpp | C++ | src/food.cpp | ASjet/GreedySnake | c07a22ede63a8c4f42bc6af2d8c8c95cd46b0311 | [
"MIT"
] | 1 | 2020-05-30T07:15:18.000Z | 2020-05-30T07:15:18.000Z | src/food.cpp | ITFS777/GreedySnake | c07a22ede63a8c4f42bc6af2d8c8c95cd46b0311 | [
"MIT"
] | null | null | null | src/food.cpp | ITFS777/GreedySnake | c07a22ede63a8c4f42bc6af2d8c8c95cd46b0311 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <ctime>
#include "point.h"
#include "food.h"
#include "snake.h"
////////////////////////////////////////////////////////////////////////////////
Food Food::print(void) const
{
pos.print();
return *this;
}
//////////////////////////////////////////////////////////////////////////////... | 25.380952 | 80 | 0.409006 | ASjet |
a2a7fce9d8dea14b694f253871c331d44bfcee65 | 10,803 | cpp | C++ | evo-X-Scriptdev2/scripts/northrend/ulduar/ulduar/boss_ignis.cpp | Gigelf-evo-X/evo-X | d0e68294d8cacfc7fb3aed5572f51d09a47136b9 | [
"OpenSSL"
] | 1 | 2019-01-19T06:35:40.000Z | 2019-01-19T06:35:40.000Z | evo-X-Scriptdev2/scripts/northrend/ulduar/ulduar/boss_ignis.cpp | Gigelf-evo-X/evo-X | d0e68294d8cacfc7fb3aed5572f51d09a47136b9 | [
"OpenSSL"
] | null | null | null | evo-X-Scriptdev2/scripts/northrend/ulduar/ulduar/boss_ignis.cpp | Gigelf-evo-X/evo-X | d0e68294d8cacfc7fb3aed5572f51d09a47136b9 | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* 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 la... | 31.961538 | 253 | 0.608442 | Gigelf-evo-X |
a2ad196f127e4447cff98506db5e576c64049d15 | 2,193 | cpp | C++ | examples/common/audio_output.cpp | anokta/barelyMusician | cf2b7440f0fa248b2bd9ff3440d9fc1209c5219d | [
"MIT"
] | 5 | 2015-02-13T18:28:06.000Z | 2021-11-11T05:04:53.000Z | examples/common/audio_output.cpp | anokta/barelyMusician | cf2b7440f0fa248b2bd9ff3440d9fc1209c5219d | [
"MIT"
] | null | null | null | examples/common/audio_output.cpp | anokta/barelyMusician | cf2b7440f0fa248b2bd9ff3440d9fc1209c5219d | [
"MIT"
] | null | null | null |
#include "examples/common/audio_output.h"
#include <cassert>
#include <utility>
#include "portaudio.h"
namespace barely::examples {
AudioOutput::AudioOutput() noexcept
: process_callback_(nullptr), stream_(nullptr) {
Pa_Initialize();
}
AudioOutput::~AudioOutput() noexcept { Pa_Terminate(); }
void AudioOutp... | 30.887324 | 79 | 0.686731 | anokta |
a2ae8beea84e23d19d4c779dae5cd9103e24ca5b | 286,617 | cpp | C++ | TissueFolding/SourceCode/Simulation.cpp | meldatozluoglu/TissueFolding_Lite | 2b436d7004a75c73f44202f31826557f5fb9f900 | [
"Unlicense"
] | 2 | 2019-06-18T14:13:41.000Z | 2021-01-25T16:18:45.000Z | TissueFolding/SourceCode/Simulation.cpp | meldatozluoglu/TissueFolding_Lite | 2b436d7004a75c73f44202f31826557f5fb9f900 | [
"Unlicense"
] | null | null | null | TissueFolding/SourceCode/Simulation.cpp | meldatozluoglu/TissueFolding_Lite | 2b436d7004a75c73f44202f31826557f5fb9f900 | [
"Unlicense"
] | 2 | 2021-05-06T11:38:53.000Z | 2021-07-28T12:26:51.000Z | #include "Simulation.h"
#include "Prism.h"
#include "RandomGenerator.h"
#include <string.h>
#include <vector>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_blas.h>
Simulation::Simulation(){
savedStepwise = true;
currElementId = 0;
ModInp = std::make_unique<ModelInputObject>();
SystemCentre[0]=0.0; SystemCent... | 43.145717 | 627 | 0.668429 | meldatozluoglu |
a2b5b67bd7d9e6442f5f033f9952d0f0bfcc98d5 | 20,096 | cpp | C++ | src/cinder/audio/ContextPortAudio.cpp | PetrosKataras/Cinder-PortAudio | 681b77fa301e49f2e67d0d5a6b855b5d33766ff0 | [
"BSD-2-Clause"
] | null | null | null | src/cinder/audio/ContextPortAudio.cpp | PetrosKataras/Cinder-PortAudio | 681b77fa301e49f2e67d0d5a6b855b5d33766ff0 | [
"BSD-2-Clause"
] | null | null | null | src/cinder/audio/ContextPortAudio.cpp | PetrosKataras/Cinder-PortAudio | 681b77fa301e49f2e67d0d5a6b855b5d33766ff0 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2018, The Cinder Project
This code is intended to be used with the Cinder C++ library, http://libcinder.org
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 ... | 38.132827 | 257 | 0.680384 | PetrosKataras |
a2b6603ee91237a08cc7279ac73d8222e709d86e | 6,388 | hpp | C++ | ProjectMajestic/InGameUI.Impl.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | 1 | 2018-08-29T06:36:23.000Z | 2018-08-29T06:36:23.000Z | ProjectMajestic/InGameUI.Impl.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | null | null | null | ProjectMajestic/InGameUI.Impl.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | null | null | null | #pragma once
#include "InGameUI.hpp"
#include "PlayerInventory.hpp"
#include "ItemAllocator.hpp"
#include "TextSystem.hpp"
////////////////////////////////////////
InGameUIManager::~InGameUIManager() {
}
////////////////////////////////////////
void InGameUIManager::updateLogic() {
AUTOLOCKABLE(*this);
if (wantC... | 31.160976 | 148 | 0.650908 | Edgaru089 |
a2b7d1fd2731c7f96b66c148874be87fcbfd9c02 | 1,683 | hpp | C++ | ql/experimental/basismodels/spreadyieldtermstructure.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/basismodels/spreadyieldtermstructure.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/basismodels/spreadyieldtermstructure.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 Sebastian Schlenkrich
*/
/*! \file spreadyieldtermstructure.hpp
\brief compounded yield term structure evaluating exp{ - ( z1 + alpha z2 ) t }
*/
#ifndef quantlib_spreadyieldtermstructure_hpp
#define quantlib_s... | 35.0625 | 116 | 0.634581 | sschlenkrich |
a2b97fe5322a6bd5fc2616aa1ac2b0209abb9df5 | 2,621 | cpp | C++ | Pinjector/Adapters.cpp | vnagireddy-virsec/pinjectra | 679339082a539c395b696b64587146139d6e3b7d | [
"BSD-3-Clause"
] | 652 | 2019-08-08T18:39:26.000Z | 2022-03-26T20:37:05.000Z | Pinjector/Adapters.cpp | TheWover/pinjectra | 9167b78c46240f6ad331a08db3f5a51c62aadc3b | [
"BSD-3-Clause"
] | 1 | 2020-01-19T07:39:40.000Z | 2021-04-04T04:21:31.000Z | Pinjector/Adapters.cpp | TheWover/pinjectra | 9167b78c46240f6ad331a08db3f5a51c62aadc3b | [
"BSD-3-Clause"
] | 142 | 2019-08-08T18:39:32.000Z | 2022-03-24T08:14:00.000Z | // Copyright (c) 2019, SafeBreach
// 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 cond... | 42.274194 | 120 | 0.733308 | vnagireddy-virsec |
a2ba1759ac856529404c1cd316530628141326bd | 3,747 | hpp | C++ | types/YearMonthIntervalType.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | types/YearMonthIntervalType.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | types/YearMonthIntervalType.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.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... | 29.046512 | 118 | 0.724313 | Hacker0912 |
a2c2301445178d9404d920a40de47f590e9e203c | 789 | cpp | C++ | LimeEngine/Engine/Graphics/Systems/DX11/MaterialDX11.cpp | RubyCircle/LimeEngine | 06e3628f2aeb3ce023c1251a6379a26b2df2de4b | [
"MIT"
] | 1 | 2022-01-04T19:25:46.000Z | 2022-01-04T19:25:46.000Z | LimeEngine/Engine/Graphics/Systems/DX11/MaterialDX11.cpp | RubyCircle/LimeEngine | 06e3628f2aeb3ce023c1251a6379a26b2df2de4b | [
"MIT"
] | null | null | null | LimeEngine/Engine/Graphics/Systems/DX11/MaterialDX11.cpp | RubyCircle/LimeEngine | 06e3628f2aeb3ce023c1251a6379a26b2df2de4b | [
"MIT"
] | null | null | null | #include "MaterialDX11.hpp"
#include "../../Base/Material.hpp"
namespace LimeEngine
{
MaterialDX11::MaterialDX11(const RenderingSystemDX11& renderer, Material* material, VertexShader* vertexShader, PixelShader* pixelShader) noexcept :
material(material), renderer(renderer), vertexShader(vertexShader), pixelShader(p... | 37.571429 | 149 | 0.768061 | RubyCircle |
a2c6a2e7fd4220d7abbb9ca496593ccf50e2ab2f | 70 | cpp | C++ | test.cpp | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | test.cpp | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | test.cpp | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | #include <cstdio>
int main(){
printf("nothing");
return 0;
}
| 10 | 22 | 0.571429 | farabimahmud |
a2ca6a4e81b3c3e6a9603b9a6f7878478505a3df | 1,908 | cpp | C++ | OnlineJudge/LeetCode/Easy/198.house-robber.cpp | yangfly/Interview-Notes | db9214456db8833c0a618b44bbb1c4f8d5b3209e | [
"MIT"
] | 3 | 2019-02-19T07:23:30.000Z | 2020-05-11T03:16:57.000Z | OnlineJudge/LeetCode/Easy/198.house-robber.cpp | yangfly/Interview-Notes | db9214456db8833c0a618b44bbb1c4f8d5b3209e | [
"MIT"
] | null | null | null | OnlineJudge/LeetCode/Easy/198.house-robber.cpp | yangfly/Interview-Notes | db9214456db8833c0a618b44bbb1c4f8d5b3209e | [
"MIT"
] | 2 | 2019-02-19T07:23:33.000Z | 2020-04-20T16:44:04.000Z | /*
* [198] House Robber
*
* https://leetcode.com/problems/house-robber/description/
*
* algorithms
* Easy (39.88%)
* Total Accepted: 188.4K
* Total Submissions: 472.4K
* Testcase Example: '[]'
*
* You are a professional robber planning to rob houses along a street. Each
* house has a certain amount of m... | 28.058824 | 78 | 0.584906 | yangfly |
a2cab107c79d0b006e05fc346efd3493bbdfec31 | 946 | cpp | C++ | src/protocols/wl/shell.cpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | src/protocols/wl/shell.cpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | src/protocols/wl/shell.cpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | #include "shell.hpp"
#include "shell_surface.hpp"
#include <spdlog/spdlog.h>
namespace Awning::Protocols::WL::Shell
{
const struct wl_shell_interface interface = {
.get_shell_surface = Interface::Get_Shell_Surface
};
namespace Interface
{
void Get_Shell_Surface(struct wl_client *client, struct wl_resource *re... | 27.823529 | 122 | 0.751586 | Link1J |
a2cb03b5413944bdd6b0bc8553707a27a2565843 | 12,332 | cpp | C++ | FlipperPlugins/ApplicationSelector.cpp | nbclark/flipper | 438e261c09f6e290eb043eb8bf9a64080e043cc9 | [
"Apache-2.0"
] | null | null | null | FlipperPlugins/ApplicationSelector.cpp | nbclark/flipper | 438e261c09f6e290eb043eb8bf9a64080e043cc9 | [
"Apache-2.0"
] | null | null | null | FlipperPlugins/ApplicationSelector.cpp | nbclark/flipper | 438e261c09f6e290eb043eb8bf9a64080e043cc9 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include <regext.h>
#include <aygshell.h>
#include <shellapi.h>
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <soundfile.h>
#include <time.h>
#include <notify.h>
#include <atltime.h>
#include <regext.h>
#include <tlhelp32.h>
#include "resource.h"
#include "A... | 32.282723 | 194 | 0.533977 | nbclark |
a2d3c6f65d83066c256798101c9b513b054d5f65 | 1,857 | cpp | C++ | sources/enduro2d/high/systems/touch_system.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | null | null | null | sources/enduro2d/high/systems/touch_system.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | null | null | null | sources/enduro2d/high/systems/touch_system.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | null | null | null | /*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... | 29.015625 | 80 | 0.610124 | NechukhrinN |
a2e1bddd2b65aa72a0a4ef172c8297a2f36e6dc4 | 730 | cpp | C++ | topic_wise/binarysearch/firstBadVersion.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | topic_wise/binarysearch/firstBadVersion.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | topic_wise/binarysearch/firstBadVersion.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : firstBadVersion.cpp
* @created : Saturday Aug 28, 2021 22:33:57 IST
*/
#include <bits/stdc++.h>
using namespace std;
// The API isBadVersion is defined for you.
// bool isBadVersion(int version... | 20.277778 | 52 | 0.482192 | archit-1997 |
a2e1f1a9b078f89c9e9f5b156101bb41d9bd4b6c | 300 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_CreateFuncDeclEntity.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_CreateFuncDeclEntity.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_CreateFuncDeclEntity.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_CreateFuncDeclEntity.cpp
//
#include "smtc_CreateFuncDeclEntity.h"
// semantic
#include "smtc_FuncDeclEntity.h"
#define LZZ_INLINE inline
namespace smtc
{
EntityPtr createFuncDeclEntity (FuncDeclPtr const & func_decl)
{
return new FuncDeclEntity (func_decl);
}
}
#undef LZZ_INLINE
| 18.75 | 64 | 0.773333 | SuperDizor |
a2e22934ab085311704419745e7ef118821fb5e5 | 2,132 | cpp | C++ | test/test_Configuration.cpp | tidewise/drivers-imu_aceinna_openimu | 5808bec84c7d6d65f760be8de3bd9735426f0cd2 | [
"Unlicense"
] | null | null | null | test/test_Configuration.cpp | tidewise/drivers-imu_aceinna_openimu | 5808bec84c7d6d65f760be8de3bd9735426f0cd2 | [
"Unlicense"
] | 1 | 2019-08-09T02:59:48.000Z | 2019-08-09T17:31:23.000Z | test/test_Configuration.cpp | tidewise/drivers-imu_aceinna_openimu | 5808bec84c7d6d65f760be8de3bd9735426f0cd2 | [
"Unlicense"
] | null | null | null | #include <gtest/gtest.h>
#include <imu_aceinna_openimu/Configuration.hpp>
using namespace imu_aceinna_openimu;
struct ConfigurationOrientationTest : public ::testing::Test {
};
TEST_F(ConfigurationOrientationTest, it_is_equal_if_all_three_fields_are) {
Configuration::Orientation conf0(
ORIENTATION_AXIS_P... | 40.226415 | 86 | 0.788931 | tidewise |
a2e23fc92af129b91af7b2db1b12e6edd890221f | 1,202 | hpp | C++ | include/opengl/buffer.hpp | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | include/opengl/buffer.hpp | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | include/opengl/buffer.hpp | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #pragma once
#include <boomhs/color.hpp>
#include <boomhs/obj.hpp>
#include <string>
namespace opengl
{
class VertexAttribute;
struct BufferFlags
{
bool const vertices, normals, colors, uvs;
explicit constexpr BufferFlags(bool const v, bool const n, bool const c, bool const u)
: vertices(v)
, normals... | 19.387097 | 88 | 0.723794 | bjadamson |
a2e5838ac27e04590e5709269453e58debfd02ea | 8,706 | hpp | C++ | include/codegen/include/RootMotion/FinalIK/IKSolverVR_Leg.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/RootMotion/FinalIK/IKSolverVR_Leg.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/RootMotion/FinalIK/IKSolverVR_Leg.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:17 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: RootMotion.FinalIK.IKSolverVR/BodyPart
#include "RootMotion/... | 44.418367 | 287 | 0.732024 | Futuremappermydud |
a2eb7a599d345bfcd08c48068c0292fc897ea87f | 2,523 | hpp | C++ | impl/jamtemplate/common/tilemap.hpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/tilemap.hpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/tilemap.hpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | #ifndef GUARD_JAMTEMPLATE_TILEMAP_HPP_GUARD
#define GUARD_JAMTEMPLATE_TILEMAP_HPP_GUARD
#include "drawable_impl.hpp"
#include "info_rect.hpp"
#include "render_target.hpp"
#include "sprite.hpp"
#include "tileson.h"
#include <memory>
#include <vector>
namespace jt {
// forward declaration
class GameInterface;
class ... | 29.682353 | 99 | 0.702338 | runvs |
a2eba887673c001351e50a16c9bdbb0489ca26c0 | 1,027 | cpp | C++ | C++/Clase 6/Clase6.2.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | null | null | null | C++/Clase 6/Clase6.2.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | 1 | 2021-06-29T05:16:19.000Z | 2021-06-29T05:16:19.000Z | C++/Clase 6/Clase6.2.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
/*Una empresa quiere dar un bono a cada trabajador basado en la antigüedad en la empresa.
Si lleva más de 10 años, será un bono de 25%.
Si lleva entre 2 y 10 años, será un bono de 10%.
Si lleva menos que 2 años, el bono será del 5%. Todos los bonos son sobre el sueldo.
... | 28.527778 | 104 | 0.63778 | Rofernweh |
a2f8e31e600597270e5d79007f14ff274588ee92 | 2,462 | cc | C++ | src/field_info.cc | AnthonyCalandra/bytecode-scanner | e2638a7063447bc947f0bc11d841d536735407ec | [
"MIT"
] | 8 | 2019-07-21T20:15:46.000Z | 2021-06-15T12:28:12.000Z | src/field_info.cc | AnthonyCalandra/bytecode-scanner | e2638a7063447bc947f0bc11d841d536735407ec | [
"MIT"
] | null | null | null | src/field_info.cc | AnthonyCalandra/bytecode-scanner | e2638a7063447bc947f0bc11d841d536735407ec | [
"MIT"
] | 1 | 2020-09-24T08:28:04.000Z | 2020-09-24T08:28:04.000Z | /**
* Copyright 2019 Anthony Calandra
*
* 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,
* di... | 42.448276 | 98 | 0.760764 | AnthonyCalandra |
a2fb8ea0d8b93538725a060cb4e62186ceaba506 | 924 | cpp | C++ | testsuite/multiChannelIteration.cpp | RaftLib/ipc | 608dcb10e1acb84e0f3be89639a91abe5395566b | [
"Apache-2.0"
] | 6 | 2021-08-04T20:03:16.000Z | 2021-08-17T16:16:10.000Z | testsuite/multiChannelIteration.cpp | RaftLib/ipc | 608dcb10e1acb84e0f3be89639a91abe5395566b | [
"Apache-2.0"
] | 9 | 2021-08-05T01:14:13.000Z | 2021-08-31T21:39:28.000Z | testsuite/multiChannelIteration.cpp | RaftLib/ipc | 608dcb10e1acb84e0f3be89639a91abe5395566b | [
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <cstdint>
#include <sys/types.h>
#include <unistd.h>
#include <buffer>
int main()
{
ipc::buffer::register_signal_handlers();
auto *buffer = ipc::buffer::initialize( "thehandle" );
auto channel_id = 1;
auto thread_id = get... | 26.4 | 87 | 0.649351 | RaftLib |
a2fc9e91df96d32f57dd484442047687eecd64c3 | 1,737 | cpp | C++ | Part.cpp | JulesStringer/GerberParser | 2133908a0984e5a5b46e200e254a1bb0b53601b6 | [
"MIT"
] | 29 | 2017-09-14T09:47:58.000Z | 2022-03-21T03:16:51.000Z | Part.cpp | thaidao/GerberParser | 2133908a0984e5a5b46e200e254a1bb0b53601b6 | [
"MIT"
] | 3 | 2017-08-23T13:59:12.000Z | 2022-01-18T09:49:28.000Z | Part.cpp | thaidao/GerberParser | 2133908a0984e5a5b46e200e254a1bb0b53601b6 | [
"MIT"
] | 24 | 2017-03-14T02:48:34.000Z | 2022-03-21T03:16:52.000Z | #include "Part.h"
#include "Rectangle.h"
#include "WKBGeometry.h"
#include "GerberRender.h"
#include "GerberAperature.h"
#include "GerberState.h"
CPart::CPart()
: m_xmin(0)
, m_ymin(0)
, m_xmax(0)
, m_ymax(0)
, m_bFirst(true)
, m_pState(NULL)
, m_bInflated(false)
, m_dInflateW(0.0)
, m_dInfl... | 19.3 | 97 | 0.621762 | JulesStringer |
a2fd3b675ea4f538421829dd0ed99704e631eb5b | 1,515 | cpp | C++ | JTS/CF-A/CF287-D2-B/test.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 2 | 2019-03-18T16:06:10.000Z | 2019-04-07T23:17:06.000Z | JTS/CF-A/CF287-D2-B/test.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | null | null | null | JTS/CF-A/CF287-D2-B/test.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 1 | 2019-03-18T16:06:52.000Z | 2019-03-18T16:06:52.000Z | // Date : 2019-03-18
// Author : Rahul Sharma
// Problem : http://codeforces.com/contest/287/problem/B
#include <algorithm>
#include <iostream>
#include <random>
#include <string>
#include <vector>
using num = long long;
template <class T, class Calc>
T bs(T n, T l, T r, Calc calc) {
T cl = calc(l);
if (... | 22.279412 | 73 | 0.456106 | rahulsrma26 |
0c00900b9dcf7e84a07a98750b56bbf1abccfe1d | 1,592 | hh | C++ | vm/vm/main/cached/FailedSpace-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 379 | 2015-01-02T20:27:33.000Z | 2022-03-26T23:18:17.000Z | vm/vm/main/cached/FailedSpace-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 81 | 2015-01-08T13:18:52.000Z | 2021-12-21T14:02:21.000Z | vm/vm/main/cached/FailedSpace-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 75 | 2015-01-06T09:08:20.000Z | 2021-12-17T09:40:18.000Z |
void TypeInfoOf<FailedSpace>::gCollect(GC gc, RichNode from, StableNode& to) const {
assert(from.type() == type());
to.make<FailedSpace>(gc->vm, gc, from.access<FailedSpace>());
}
void TypeInfoOf<FailedSpace>::gCollect(GC gc, RichNode from, UnstableNode& to) const {
assert(from.type() == type());
to.make<Fail... | 28.428571 | 86 | 0.729271 | Ahzed11 |
0c0b8ac386eb6cee0ac5e8645819d9a7a4b3ed2a | 1,845 | cpp | C++ | Blackbox/gui/listeners/ListenerFactory.cpp | Alias-m/Blackbox | 1fb5af88cb9688e224e096b40987876f9d544f99 | [
"MIT"
] | null | null | null | Blackbox/gui/listeners/ListenerFactory.cpp | Alias-m/Blackbox | 1fb5af88cb9688e224e096b40987876f9d544f99 | [
"MIT"
] | 1 | 2017-02-19T20:22:21.000Z | 2017-02-19T20:25:23.000Z | Blackbox/gui/listeners/ListenerFactory.cpp | Alias-m/Blackbox | 1fb5af88cb9688e224e096b40987876f9d544f99 | [
"MIT"
] | null | null | null | #include "ListenerFactory.h"
ListenerFactory ListenerFactory::instance;
ListenerFactory::ListenerFactory()
{
default_listener = CommonEventListener::create;
listenerList[SDL_WINDOWEVENT] = WindowListener::create;
listenerList[SDL_MOUSEBUTTONDOWN] = MouseButtonListener::create;
listenerList[... | 37.653061 | 98 | 0.737669 | Alias-m |
0c0c9fa3f4c823f4e6f2d62f67ef474342b30930 | 1,021 | cpp | C++ | 18.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 18.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 18.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
vector<vector<int>> fourSum(vector<int>& nums, int target) {
vector<vector<int>> ans;
map<vector<int>,bool> e;
int n=nums.size();
if(n<4) return ans;
sort(nums.begin(),nums.end());
for(int i=0;i<n-3;i++){
for(int j=i+1;j<n-2;j++){
... | 31.90625 | 77 | 0.348678 | zfang399 |
0c152ee74a4b1c33fa98b7cd366a187afcb89451 | 939 | hpp | C++ | include/mlib/convert.hpp | AoD314/mlib | 3a6a5b9a30ccbe87528ef573ebd9be7f496256f4 | [
"BSD-2-Clause"
] | null | null | null | include/mlib/convert.hpp | AoD314/mlib | 3a6a5b9a30ccbe87528ef573ebd9be7f496256f4 | [
"BSD-2-Clause"
] | null | null | null | include/mlib/convert.hpp | AoD314/mlib | 3a6a5b9a30ccbe87528ef573ebd9be7f496256f4 | [
"BSD-2-Clause"
] | null | null | null |
#ifndef __CONVERT_HPP__
#define __CONVERT_HPP__
#include <string>
#include <sstream>
#include <iomanip>
namespace mlib
{
//! Convert bool value to "true" or "false"
std::string to_str(bool t);
//! Convert Type to std::string
template <typename T>
std::string to_str(const T& t, int align = 0, int... | 21.340909 | 124 | 0.58147 | AoD314 |
0c1a1e3c62649f40e89bb1305e80fcda60a4a758 | 2,413 | cc | C++ | bench/rmr/assoc.cc | ronmrdechai/moat | 8586e95c3666923fe74bf603d448c43263e842e5 | [
"BSL-1.0"
] | 2 | 2018-09-09T05:08:09.000Z | 2018-09-11T08:55:50.000Z | bench/rmr/assoc.cc | ronmrdechai/moat | 8586e95c3666923fe74bf603d448c43263e842e5 | [
"BSL-1.0"
] | null | null | null | bench/rmr/assoc.cc | ronmrdechai/moat | 8586e95c3666923fe74bf603d448c43263e842e5 | [
"BSL-1.0"
] | null | null | null | // Armor
//
// Copyright Ron Mordechai, 2018
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt)
#include <algorithm>
#include <fstream>
#include <string>
#include <vector>
#include <random>
#include <iostream>
#include <b... | 28.05814 | 102 | 0.6523 | ronmrdechai |
0c236118a2fd4b2ec4abebce7fb3a08eb58acbff | 18,229 | cpp | C++ | Examples/ThemeAero/Sources/theme_views.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 248 | 2015-01-08T05:21:40.000Z | 2022-03-20T02:59:16.000Z | Examples/ThemeAero/Sources/theme_views.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 39 | 2015-01-14T17:37:07.000Z | 2022-03-17T12:59:26.000Z | Examples/ThemeAero/Sources/theme_views.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 82 | 2015-01-11T13:23:49.000Z | 2022-02-19T03:17:24.000Z | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 65.336918 | 157 | 0.727796 | xctan |
0c25994288eeaaba4e722ddd2b43f40831247d4c | 1,999 | cpp | C++ | source/linux/brfilenamelinux.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 115 | 2015-01-18T17:29:30.000Z | 2022-01-30T04:31:48.000Z | source/linux/brfilenamelinux.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-22T04:53:38.000Z | 2015-01-31T13:52:40.000Z | source/linux/brfilenamelinux.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-23T20:06:46.000Z | 2020-05-20T16:06:00.000Z | /***************************************
Linux version
Copyright (c) 2021 by Rebecca Ann Heineman <becky@burgerbecky.com>
It is released under an MIT Open Source license. Please see LICENSE for
license details. Yes, you can use it in a commercial title without paying
anything, just give me a credit.
Please? I... | 26.653333 | 89 | 0.673337 | Olde-Skuul |
0c28d53c6bc446db757e7ce248032107a075990a | 3,567 | cpp | C++ | example/DomainDecomposition/Euler/src/EulerRK4.cpp | novertonCSU/Chombo_4 | b833e49793758a7d6d22f976694c9d2e90d29c00 | [
"BSD-3-Clause-LBNL"
] | 11 | 2019-06-08T01:20:51.000Z | 2021-12-21T12:18:54.000Z | example/DomainDecomposition/Euler/src/EulerRK4.cpp | novertonCSU/Chombo_4 | b833e49793758a7d6d22f976694c9d2e90d29c00 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-03-13T06:25:55.000Z | 2021-06-23T18:12:53.000Z | example/DomainDecomposition/Euler/src/EulerRK4.cpp | novertonCSU/Chombo_4 | b833e49793758a7d6d22f976694c9d2e90d29c00 | [
"BSD-3-Clause-LBNL"
] | 4 | 2019-08-27T14:34:34.000Z | 2021-10-04T21:46:59.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "EulerRK4.H"
#include "Chombo_DataIterator.H"
#include "Chombo_Proto... | 21.75 | 111 | 0.625456 | novertonCSU |
0c29132816936645d83aed041344133201312a28 | 1,139 | hpp | C++ | libcaf_io/caf/io/network/scribe_impl.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_io/caf/io/network/scribe_impl.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_io/caf/io/network/scribe_impl.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include "caf/detail/io_export.hpp"
#include "caf/io/fwd.hpp"
#include "caf/... | 23.244898 | 77 | 0.748025 | seewpx |
0c29f0a84e16c412426a857352294acff5f280e5 | 508 | cpp | C++ | src/tests/bitflag.cpp | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | 3 | 2021-07-12T02:32:50.000Z | 2022-01-30T03:39:53.000Z | src/tests/bitflag.cpp | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | 1 | 2020-11-03T08:57:04.000Z | 2020-11-03T09:04:41.000Z | src/tests/bitflag.cpp | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | null | null | null | #include "lak/bitflag.hpp"
#include "lak/test.hpp"
BEGIN_TEST(bitflag)
{
enum struct my_enum
{
bit1 = 0,
bit2 = 1,
bit3 = 2
};
lak::bitflag<my_enum, my_enum::bit1, my_enum::bit3, my_enum::bit2> flags;
flags.set<my_enum::bit1>(true);
flags.set<my_enum::bit2>(false);
flags.set<my_enum::bit3>(true);
DEBUG(... | 22.086957 | 74 | 0.639764 | LAK132 |
0c2b42d2be1f1d196adcd7e4355c34bcab26b1bd | 1,330 | hh | C++ | elements/standard/settimestamp.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/standard/settimestamp.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/standard/settimestamp.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | // -*- c-basic-offset: 4 -*-
#ifndef CLICK_SETTIMESTAMP_HH
#define CLICK_SETTIMESTAMP_HH
#include <click/batchelement.hh>
CLICK_DECLS
/*
=c
SetTimestamp([TIMESTAMP, I<keyword> FIRST])
=s timestamps
store the time in the packet's timestamp annotation
=d
Store the specified TIMESTAMP in the packet's timestamp annot... | 21.803279 | 79 | 0.744361 | BorisPis |
0c2c2534d07aaefd542105674a6adc32da79e19a | 1,054 | cpp | C++ | cpp/0100-0199/100. Same Tree/solution.cpp | RapDoodle/LeetCode-Solutions | 6f14b7621bc6db12303be7f85508f3a5b2c2c30a | [
"MIT"
] | null | null | null | cpp/0100-0199/100. Same Tree/solution.cpp | RapDoodle/LeetCode-Solutions | 6f14b7621bc6db12303be7f85508f3a5b2c2c30a | [
"MIT"
] | null | null | null | cpp/0100-0199/100. Same Tree/solution.cpp | RapDoodle/LeetCode-Solutions | 6f14b7621bc6db12303be7f85508f3a5b2c2c30a | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 34 | 93 | 0.550285 | RapDoodle |
0c2fc3209dbb38bf1501247f9b9a7812dcf9ebdf | 566 | cpp | C++ | lib/sai_redis_fdb.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 50 | 2016-03-23T08:04:44.000Z | 2022-03-25T05:06:16.000Z | lib/sai_redis_fdb.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 589 | 2016-04-01T04:09:09.000Z | 2022-03-31T00:38:10.000Z | lib/sai_redis_fdb.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 234 | 2016-03-28T20:59:21.000Z | 2022-03-23T09:26:22.000Z | #include "sai_redis.h"
static sai_status_t redis_flush_fdb_entries(
_In_ sai_object_id_t switch_id,
_In_ uint32_t attr_count,
_In_ const sai_attribute_t *attr_list)
{
SWSS_LOG_ENTER();
return redis_sai->flushFdbEntries(
switch_id,
attr_count,
attr_li... | 20.962963 | 46 | 0.719081 | vmittal-msft |
0c3147ee0c397ff419ad0f65555d25cb4762e72f | 2,889 | cpp | C++ | src/utilities.cpp | DavidR86/mxd | bf0a72305701dd5c76c2b3daa4bdba14d638b29d | [
"MIT"
] | 2 | 2018-11-06T18:57:29.000Z | 2018-11-06T19:06:36.000Z | src/utilities.cpp | DavidR86/mxd | bf0a72305701dd5c76c2b3daa4bdba14d638b29d | [
"MIT"
] | 27 | 2018-11-12T23:45:43.000Z | 2019-01-21T15:39:18.000Z | src/utilities.cpp | DavidR86/mxd | bf0a72305701dd5c76c2b3daa4bdba14d638b29d | [
"MIT"
] | 3 | 2018-11-08T00:38:49.000Z | 2020-06-18T04:40:11.000Z | // -*- coding:utf-8; mode:c++; mode:auto-fill; fill-column:80; -*-
/// @file utilities.cpp
/// @brief Implementation of utilities.hpp.
/// @author J. Arrieta <Juan.Arrieta@nablazerolabs.com>
/// @date November 13, 2018
/// @copyright (C) 2018 Nabla Zero Labs
// Related mxd header
#include "utilities.... | 29.783505 | 80 | 0.653859 | DavidR86 |
0c314d77cae5827be9cb0a090a221e26c607c17f | 1,295 | cpp | C++ | Training/Educational Codefources round 77 - D.cpp | nicolasventer/Algorithmic-problems-in-cpp | cdd29d692c0353866a549593a25335fe816840e2 | [
"MIT"
] | null | null | null | Training/Educational Codefources round 77 - D.cpp | nicolasventer/Algorithmic-problems-in-cpp | cdd29d692c0353866a549593a25335fe816840e2 | [
"MIT"
] | null | null | null | Training/Educational Codefources round 77 - D.cpp | nicolasventer/Algorithmic-problems-in-cpp | cdd29d692c0353866a549593a25335fe816840e2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int m,n,k,t;
// m : allies count, n : level length,
// k : trap count, t : time to succeed
cin >> m >> n >> k >> t;
int a[m];
for (int i = 0; i < m; ++i)
{
cin ... | 15.987654 | 69 | 0.493436 | nicolasventer |
0c35e6491d9db1cae4480fc128fcdcca93466123 | 1,710 | hpp | C++ | libvast/vast/system/query_supervisor_actor.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/system/query_supervisor_actor.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/system/query_supervisor_actor.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 42.75 | 80 | 0.511111 | a4z |
0c36ef700c32429eaec2a659aff73149f1ef6539 | 907 | hpp | C++ | src/Parse/Lex/SourceFile.hpp | wexaris/Scarlett | 051e4468ae8520545a267d4b22671580eb3841a7 | [
"Apache-2.0"
] | 1 | 2019-06-25T14:23:02.000Z | 2019-06-25T14:23:02.000Z | src/Parse/Lex/SourceFile.hpp | wexaris/Scarlett | 051e4468ae8520545a267d4b22671580eb3841a7 | [
"Apache-2.0"
] | null | null | null | src/Parse/Lex/SourceFile.hpp | wexaris/Scarlett | 051e4468ae8520545a267d4b22671580eb3841a7 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <fstream>
namespace scar {
class SourceFile {
public:
explicit SourceFile(const std::string& path);
std::string_view GetString(size_t start, size_t count, bool stopAtNewline = false) const;
char GetChar(size_t pos) const { return m_Text[pos]; }
... | 26.676471 | 98 | 0.603087 | wexaris |
0c3dbe6b1ecd6b9ca33866aa4d0bfa7afd523034 | 162 | cpp | C++ | examples/intx/main.cpp | Costallat/hunter | dc0d79cb37b30cad6d6472d7143fe27be67e26d5 | [
"BSD-2-Clause"
] | 2,146 | 2015-01-10T07:26:58.000Z | 2022-03-21T02:28:01.000Z | examples/intx/main.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 1,778 | 2015-01-03T11:50:30.000Z | 2019-12-26T05:31:20.000Z | examples/intx/main.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 734 | 2015-03-05T19:52:34.000Z | 2022-02-22T23:18:54.000Z | // Copyright(c) 2019, Pawel Bylica
#include <intx/intx.hpp>
int main()
{
auto r = intx::uint512{1, 0} / intx::uint512{1};
return static_cast<int>(r);
}
| 16.2 | 52 | 0.623457 | Costallat |
0c40ed132ca8d7a36cd34a4a99857eb8a82539b6 | 2,348 | cpp | C++ | cplusplus/ListNode.cpp | cherishman2005/nginx-consul | fc6a1a36244237f9c664749a06af09b0c4636f64 | [
"MIT"
] | 2 | 2020-10-28T13:15:39.000Z | 2022-01-06T08:42:49.000Z | cplusplus/ListNode.cpp | cherishman2005/nginx-consul | fc6a1a36244237f9c664749a06af09b0c4636f64 | [
"MIT"
] | 10 | 2021-11-03T07:54:41.000Z | 2022-03-17T08:57:37.000Z | cplus/ListNode.cpp | cherishman2005/nginx-modules | ccec0b4719c7fa6622684fd2e849adf2d3a421a6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <sstream>
#include <iterator>
#include <math.h>
#include <string>
using namespace std;
// alloc-dealloc-mismatch
/**
... | 21.541284 | 75 | 0.470187 | cherishman2005 |
0c4a7abdd33058ef06a4834193430eb20bcd426f | 3,069 | hpp | C++ | cppcache/include/geode/internal/functional.hpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | cppcache/include/geode/internal/functional.hpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | cppcache/include/geode/internal/functional.hpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | /*
* 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 ... | 26.456897 | 75 | 0.692408 | vaijira |
0c4bbe230d1fc0348c2063c7a6302d79209a26d0 | 4,174 | cxx | C++ | STEER/STEERBase/AliPIDValues.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/STEERBase/AliPIDValues.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/STEERBase/AliPIDValues.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 32.866142 | 104 | 0.597748 | AllaMaevskaya |
0c4d137b5a8fae311a045bfe03b3486cbae24886 | 9,537 | cpp | C++ | src/caffe/layers/mkldnn_convolution_layer.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | 1 | 2017-01-04T03:35:46.000Z | 2017-01-04T03:35:46.000Z | src/caffe/layers/mkldnn_convolution_layer.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/mkldnn_convolution_layer.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | #ifdef MKLDNN_SUPPORTED
#include <algorithm>
#include <cstdlib>
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/mkldnn_layers.hpp"
#include "mkl_service.h"
// TODO: Correct process case if there are no bias
// TODO: Exception handling - mkl-dnn produces exceptions on er... | 43.153846 | 108 | 0.646849 | shayanshams66 |
0c5155114a8aae5d9994e8f39346187058754bcf | 833 | cpp | C++ | muduo/EventLoopThread.cpp | 13015517713/MyMuduo | eb864450e8827a1ed46c642b16e808b7a9d4f50f | [
"MIT"
] | null | null | null | muduo/EventLoopThread.cpp | 13015517713/MyMuduo | eb864450e8827a1ed46c642b16e808b7a9d4f50f | [
"MIT"
] | 1 | 2020-12-26T15:05:30.000Z | 2020-12-26T15:05:30.000Z | muduo/EventLoopThread.cpp | 13015517713/MyMuduo | eb864450e8827a1ed46c642b16e808b7a9d4f50f | [
"MIT"
] | null | null | null | #include "EventLoopThread.h"
#include "EventLoop.h"
EventLoopThread::EventLoopThread(const ThreadInitCallback &cb,
const std::string &name)
:_threadInitCallback(cb),
_loop(NULL),
_thread(std::bind(&EventLoopThread::threadFunc,this),name),
_exiting(false)
... | 23.138889 | 71 | 0.619448 | 13015517713 |
0c51933a6ee355b008b811dbd930b8ad2af64514 | 4,739 | cpp | C++ | libs/neuro/test/tests.cpp | rufus-stone/genetic-algo-cpp | 5e31f080d30ffc204fa7891883703183302b2954 | [
"MIT"
] | null | null | null | libs/neuro/test/tests.cpp | rufus-stone/genetic-algo-cpp | 5e31f080d30ffc204fa7891883703183302b2954 | [
"MIT"
] | null | null | null | libs/neuro/test/tests.cpp | rufus-stone/genetic-algo-cpp | 5e31f080d30ffc204fa7891883703183302b2954 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells the Catch2 header to generate a main
#include "catch.hpp"
#include <random>
#include <vector>
#include <neuro/nn.hpp>
TEST_CASE("Neural Network", "[nn][network]")
{
// Seed an mt19937 for a predictable "random" number to use for testing
auto prng = std::mt19937{0};
//... | 41.570175 | 445 | 0.667018 | rufus-stone |
31af7f864ad0ee757749b3840a5d63b536ce69ee | 1,739 | cpp | C++ | dali/devel-api/adaptor-framework/canvas-renderer-drawable-group.cpp | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2016-11-18T10:26:46.000Z | 2021-11-01T12:29:05.000Z | dali/devel-api/adaptor-framework/canvas-renderer-drawable-group.cpp | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2020-07-15T11:30:49.000Z | 2020-12-11T19:13:46.000Z | dali/devel-api/adaptor-framework/canvas-renderer-drawable-group.cpp | dalihub/dali-adaptor | b7943ae5aeb7ddd069be7496a1c1cee186b740c5 | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2019-05-17T07:14:40.000Z | 2021-05-24T07:25:26.000Z | /*
* Copyright (c) 2021 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... | 28.048387 | 84 | 0.772858 | dalihub |
31afcba4982663f8b32319a168a9d3b19b68aad3 | 3,381 | cpp | C++ | cpp_proj/cv/cam_fps/cam_fps.cpp | 1487quantum/cv4_cpp | e8074a3aca72ed4bc0d9f9839f229b18fbf69222 | [
"MIT"
] | 7 | 2020-07-08T02:56:01.000Z | 2021-11-10T06:09:08.000Z | cpp_proj/cv/cam_fps/cam_fps.cpp | 1487quantum/cv4_cpp | e8074a3aca72ed4bc0d9f9839f229b18fbf69222 | [
"MIT"
] | null | null | null | cpp_proj/cv/cam_fps/cam_fps.cpp | 1487quantum/cv4_cpp | e8074a3aca72ed4bc0d9f9839f229b18fbf69222 | [
"MIT"
] | 1 | 2020-10-15T05:36:05.000Z | 2020-10-15T05:36:05.000Z | #include "cam_fps.h"
std::string gstreamer_pipeline(int8_t cam_id, int8_t s_mode, int display_width,
int display_height, int8_t framerate,
int8_t flip_method, std::string outputFormat) {
return "nvarguscamerasrc sensor_id=" + std::to_string(cam_id) +
... | 28.652542 | 80 | 0.575865 | 1487quantum |
31b3b17b60bd6a072feb93c1f5955e5ebb480be9 | 280 | cpp | C++ | c3dEngine2/c3dEngine/c3dEngine/core/c3dObject.cpp | wantnon2/c3dEngine2 | 0c12d077d8f2bac8c12b8f720eccc5a2f3f3a7c1 | [
"MIT"
] | 27 | 2015-01-11T15:42:21.000Z | 2021-10-10T06:24:37.000Z | c3dEngine2/c3dEngine/c3dEngine/core/c3dObject.cpp | wantnon2/c3dEngine2 | 0c12d077d8f2bac8c12b8f720eccc5a2f3f3a7c1 | [
"MIT"
] | null | null | null | c3dEngine2/c3dEngine/c3dEngine/core/c3dObject.cpp | wantnon2/c3dEngine2 | 0c12d077d8f2bac8c12b8f720eccc5a2f3f3a7c1 | [
"MIT"
] | 18 | 2015-01-11T15:42:28.000Z | 2021-10-10T06:24:38.000Z | //
// c3dObject.cpp
// HelloOpenGL
//
// Created by wantnon (yang chao) on 14-1-13.
//
//
#include "c3dObject.h"
#include "c3dAutoreleasePool.h"
void Cc3dObject::autorelease(){
//add to autorelease pool
Cc3dAutoreleasePool::sharedAutoreleasePool()->addObject(this);
}
| 18.666667 | 66 | 0.696429 | wantnon2 |
31b3c8e8770e5d38cb3cc7d938fa3d9948b26111 | 669 | hpp | C++ | include/milppp/strong_types.hpp | fhamonic/milp_builder | 0e1370cded14cffd0eea9ab26860b345b48a1556 | [
"BSL-1.0"
] | 1 | 2021-09-23T11:56:33.000Z | 2021-09-23T11:56:33.000Z | include/milppp/strong_types.hpp | fhamonic/milppp | 0e1370cded14cffd0eea9ab26860b345b48a1556 | [
"BSL-1.0"
] | null | null | null | include/milppp/strong_types.hpp | fhamonic/milppp | 0e1370cded14cffd0eea9ab26860b345b48a1556 | [
"BSL-1.0"
] | null | null | null | #ifndef MILPPP_STRONG_TYPES
#define MILPPP_STRONG_TYPES
namespace fhamonic {
namespace milppp {
class Var {
private:
int _id;
public:
constexpr Var(const Var & v) noexcept : _id(v.id()) {}
explicit constexpr Var(const int & i) noexcept : _id(i) {}
[[nodiscard]] constexpr int id() const noexcept { ret... | 22.3 | 67 | 0.675635 | fhamonic |
31b6de98478a4ecb9da3084ff0bbb636496de133 | 1,291 | hpp | C++ | 5_Processes_Signals_Files_Pipes/4_Pipes/1_Simple-shell-pipe/src/Command/Command.hpp | PP189B/Multithreaded-programming-practice | f80378343824e51a164241289399ec92150852e8 | [
"MIT"
] | null | null | null | 5_Processes_Signals_Files_Pipes/4_Pipes/1_Simple-shell-pipe/src/Command/Command.hpp | PP189B/Multithreaded-programming-practice | f80378343824e51a164241289399ec92150852e8 | [
"MIT"
] | null | null | null | 5_Processes_Signals_Files_Pipes/4_Pipes/1_Simple-shell-pipe/src/Command/Command.hpp | PP189B/Multithreaded-programming-practice | f80378343824e51a164241289399ec92150852e8 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
namespace PipeApp
{
class Command final
{
// Fields
private:
char* command_;
char** argv_;
// Constructor and destructor
public:
Command(const std::string::const_iterator& begin,
const std::string::const_iterator& end);
C... | 19.560606 | 63 | 0.648335 | PP189B |
31c9bef98b58e631a6af7813805cd5659a8ceb22 | 6,338 | cpp | C++ | DatabaseList/LinkedList.cpp | coreyFuller/LINKED-LIST-DATABASE | b8af8fe907d580e9c675ae20d26e940ae18e382e | [
"MIT"
] | 1 | 2019-08-05T00:36:16.000Z | 2019-08-05T00:36:16.000Z | DatabaseList/LinkedList.cpp | coreyFuller/LINKED-LIST-DATABASE | b8af8fe907d580e9c675ae20d26e940ae18e382e | [
"MIT"
] | null | null | null | DatabaseList/LinkedList.cpp | coreyFuller/LINKED-LIST-DATABASE | b8af8fe907d580e9c675ae20d26e940ae18e382e | [
"MIT"
] | null | null | null | #include "LinkedList.hpp"
LinkedList::LinkedList(string cmd) {
head = nullptr;
nodeCount = 1;
average = 0;
maxSale = 0;
minSale = 0;
sum = 0;
workerCount = 0;
output.open(cmd);
}
LinkedList::~LinkedList() {
Node * temp;
cout << "Deleting Database" << endl;
if(head == NULL) {
cout << "Datab... | 19.323171 | 126 | 0.515778 | coreyFuller |
31d0db86b5933eee2600384569c99c80305f2b20 | 1,544 | cpp | C++ | leetcode/num_count_tests.cpp | codetalks-new/learn-cpp | ec91c2cfba70c4c5aad52898f97e5bd2d35d9d8b | [
"MIT"
] | 1 | 2019-12-29T15:12:14.000Z | 2019-12-29T15:12:14.000Z | leetcode/num_count_tests.cpp | codetalks-new/learn-cpp | ec91c2cfba70c4c5aad52898f97e5bd2d35d9d8b | [
"MIT"
] | null | null | null | leetcode/num_count_tests.cpp | codetalks-new/learn-cpp | ec91c2cfba70c4c5aad52898f97e5bd2d35d9d8b | [
"MIT"
] | null | null | null | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <iostream>
#include <set>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::set;
using std::string;
using std::vector;
int singleNumber(vector<int> nums) {
int ans = 0;
for (int num : nums) {
ans ^= num;
}
return ans... | 21.150685 | 53 | 0.59715 | codetalks-new |
31d73f59c3568e84418570e315430337dd11fa8a | 808 | cpp | C++ | Lab13_Q1.cpp | xz-cs/CS2310_Lab | 31d117dc1c8d31d41e0b192ad5b7a539f185800c | [
"FSFAP"
] | null | null | null | Lab13_Q1.cpp | xz-cs/CS2310_Lab | 31d117dc1c8d31d41e0b192ad5b7a539f185800c | [
"FSFAP"
] | null | null | null | Lab13_Q1.cpp | xz-cs/CS2310_Lab | 31d117dc1c8d31d41e0b192ad5b7a539f185800c | [
"FSFAP"
] | null | null | null | #include <fstream>
using namespace std;
int main() {
ifstream fin;
ofstream fout;
fin.open("lab13.txt");
fout.open("lab13_output.txt");
if (fin.fail()) exit(1);
int num;
fin >> num;
fin.ignore(100, 'L');
for (int i = 0; i < num; ++i) {
char content[100];
fin.getline... | 23.085714 | 51 | 0.417079 | xz-cs |
31d82cc7a92c21936a8bc8c850cf746c76038eb4 | 55 | cpp | C++ | AppStandard/displayvex.cpp | 100Ohm/Data-structure-Graph-Qt-Navigation-System | 2b771e5913fbb73fc33e465a5e7526328c914fe9 | [
"Apache-2.0"
] | 6 | 2018-11-20T03:46:26.000Z | 2020-07-04T15:33:24.000Z | AppStandard/displayvex.cpp | liziwenzzzz/Data-structure-Graph-Qt-Navigation-System | 2b771e5913fbb73fc33e465a5e7526328c914fe9 | [
"Apache-2.0"
] | null | null | null | AppStandard/displayvex.cpp | liziwenzzzz/Data-structure-Graph-Qt-Navigation-System | 2b771e5913fbb73fc33e465a5e7526328c914fe9 | [
"Apache-2.0"
] | 1 | 2018-11-20T03:50:28.000Z | 2018-11-20T03:50:28.000Z | #include "displayvex.h"
DisplayVex::DisplayVex()
{
}
| 7.857143 | 24 | 0.690909 | 100Ohm |
31d9f73c3c88a681d172157356699a70efbc2a6e | 1,161 | cpp | C++ | tf2_src/utils/vgui_panel_zoo/SampleCheckButtons.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/utils/vgui_panel_zoo/SampleCheckButtons.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/utils/vgui_panel_zoo/SampleCheckButtons.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "DemoPage.h"
#include <VGUI/IVGui.h>
#include <Keyvalues.h>
#include <vgui_controls/Controls.h>
using namespace ... | 22.764706 | 96 | 0.469423 | IamIndeedGamingAsHardAsICan03489 |
31dcd479013bd0ed4dbb243f77297ed2c5ebacbc | 6,670 | hpp | C++ | AutoChessServer/Dependencies/common/http_util.hpp | 908760230/MyAutoChess | 3421534c111d2c69ab3338925b92f093ec7ade12 | [
"MIT"
] | null | null | null | AutoChessServer/Dependencies/common/http_util.hpp | 908760230/MyAutoChess | 3421534c111d2c69ab3338925b92f093ec7ade12 | [
"MIT"
] | null | null | null | AutoChessServer/Dependencies/common/http_util.hpp | 908760230/MyAutoChess | 3421534c111d2c69ab3338925b92f093ec7ade12 | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
namespace http
{
namespace util
{
inline char tolower(unsigned char c)
{
return static_cast<char>(std::tolower(c));
}
template<typename String>
inline bool iequal_string(const String&str1, const String& str2)
... | 38.554913 | 199 | 0.458621 | 908760230 |
31de40c1e4a2c98c403ea8b53f4fba1cf8319d0b | 93 | cpp | C++ | Windows/VS2017/vtkCommonExecutionModel/vtkCommonExecutionModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkCommonExecutionModel/vtkCommonExecutionModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkCommonExecutionModel/vtkCommonExecutionModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | #include "vtkCommonExecutionModel.h"
vtkCommonExecutionModel::vtkCommonExecutionModel()
{
}
| 15.5 | 50 | 0.827957 | WinBuilds |
31e0ad5ce83577814a44c6b123e57167d84f7247 | 2,122 | cc | C++ | cinnrt/host_context/mlir_exec.cc | Aurelius84/CINN | 2de029387f7526f0a46d5bed9060d7e8f7a70767 | [
"Apache-2.0"
] | null | null | null | cinnrt/host_context/mlir_exec.cc | Aurelius84/CINN | 2de029387f7526f0a46d5bed9060d7e8f7a70767 | [
"Apache-2.0"
] | null | null | null | cinnrt/host_context/mlir_exec.cc | Aurelius84/CINN | 2de029387f7526f0a46d5bed9060d7e8f7a70767 | [
"Apache-2.0"
] | null | null | null | #include <llvm/Support/CommandLine.h>
#include <iostream>
#include <string>
#include "cinnrt/common/global.h"
#include "cinnrt/dialect/mlir_loader.h"
#include "cinnrt/host_context/core_runtime.h"
#include "cinnrt/host_context/kernel_registry.h"
#include "cinnrt/host_context/mlir_to_runtime_translate.h"
#include "cinn... | 35.366667 | 110 | 0.705467 | Aurelius84 |
31e14cdb9d51da2f200ed4b9256a1d746519ec69 | 359 | cpp | C++ | HelloWorldTest/chapter_9_07/9_7.cpp | choi2649/C-Study | 790f0fd8b8c13f392183d2194348b50ad66aba7c | [
"MIT"
] | null | null | null | HelloWorldTest/chapter_9_07/9_7.cpp | choi2649/C-Study | 790f0fd8b8c13f392183d2194348b50ad66aba7c | [
"MIT"
] | null | null | null | HelloWorldTest/chapter_9_07/9_7.cpp | choi2649/C-Study | 790f0fd8b8c13f392183d2194348b50ad66aba7c | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
using namespace std;
class Acc {
private:
int m_conut = 0;
public:
Acc operator () (int i) {
m_conut += i;
cout << m_conut << endl;
return *this;
}
Acc &print() {
cout << "m_count" << endl;
return *this;
}
};
int main()
{
Acc acc;
acc.print().print().print().pri... | 12.821429 | 37 | 0.590529 | choi2649 |
31e74039fa98e52a5d9096164d9446482528c3b6 | 6,183 | cpp | C++ | src/StorageManager.cpp | JoaquimBreno/modhealthsupplies | 4cc9108bdb54a8339e99cddf85740e8da72aac2b | [
"MIT"
] | 1 | 2021-09-10T15:27:12.000Z | 2021-09-10T15:27:12.000Z | src/StorageManager.cpp | mattheusmendonca/modhealthsupplies | 4cc9108bdb54a8339e99cddf85740e8da72aac2b | [
"MIT"
] | null | null | null | src/StorageManager.cpp | mattheusmendonca/modhealthsupplies | 4cc9108bdb54a8339e99cddf85740e8da72aac2b | [
"MIT"
] | 3 | 2021-06-17T03:05:12.000Z | 2021-06-19T03:39:28.000Z | #include "StorageManager.h"
using namespace std;
StorageManager::StorageManager()
{
}
void StorageManager::lerInsumos(Controler &ct)
{
ifstream file;
file.open("Estoque.csv", fstream::in); //abrir arquivo csv para leitura
if(file.is_open()){
bool existeInsumo = false;
whi... | 40.677632 | 114 | 0.377001 | JoaquimBreno |
31ec367139282e388b636b5ef3f6913751c8b628 | 94,708 | cpp | C++ | corelib/src/util3d.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | 1 | 2017-05-25T20:41:33.000Z | 2017-05-25T20:41:33.000Z | corelib/src/util3d.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | null | null | null | corelib/src/util3d.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... | 29.895202 | 174 | 0.636483 | redater |
31f2a804ed13fbc35603324f00dc64a50bb0b628 | 167 | cpp | C++ | div.cpp | etoki/cpp_learn | d5a84df6682f2013770ea12d6e40328c5a74dff3 | [
"MIT"
] | null | null | null | div.cpp | etoki/cpp_learn | d5a84df6682f2013770ea12d6e40328c5a74dff3 | [
"MIT"
] | null | null | null | div.cpp | etoki/cpp_learn | d5a84df6682f2013770ea12d6e40328c5a74dff3 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int ires;
float fres;
ires = 1%3;
fres = 1%3;
cout << ires << endl;
cout << fres << endl;
return 0;
}
| 9.277778 | 22 | 0.586826 | etoki |
31f73b652736d01fb812738ecd71c7a7d1ab060e | 1,474 | cpp | C++ | coast/modules/Oracle/OracleResultset.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/Oracle/OracleResultset.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/Oracle/OracleResultset.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2009, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 27.296296 | 102 | 0.744912 | zer0infinity |
31fe6b3b713b5c59b36d2a4ea1717b464e39996e | 164 | cpp | C++ | EDEN3D/OrthographicCamera.cpp | codeart1st/EDEN3D | b39b0fbf3220320b58843990155ffd8173d8f4ef | [
"MIT"
] | null | null | null | EDEN3D/OrthographicCamera.cpp | codeart1st/EDEN3D | b39b0fbf3220320b58843990155ffd8173d8f4ef | [
"MIT"
] | null | null | null | EDEN3D/OrthographicCamera.cpp | codeart1st/EDEN3D | b39b0fbf3220320b58843990155ffd8173d8f4ef | [
"MIT"
] | null | null | null | #include "OrthographicCamera.hpp"
namespace EDEN3D {
OrthographicCamera::OrthographicCamera() : Camera() {
}
OrthographicCamera::~OrthographicCamera() {
}
}
| 14.909091 | 54 | 0.737805 | codeart1st |
ee06a4ea3bbf8615c8ce3b70e86b916f1ab735b6 | 409 | cpp | C++ | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex03-manuelito013101 | 1270e828e1262e13317971afce744058b48d3be3 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex03-manuelito013101 | 1270e828e1262e13317971afce744058b48d3be3 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex03-manuelito013101 | 1270e828e1262e13317971afce744058b48d3be3 | [
"MIT"
] | null | null | null |
// This program calculates a person's height in feet (') and inches (")
#include <iostream>
int main()
{
int inches;
std::cout << "what is the person \"inches\" in hieght ";
std::cin >> inches;
//variables to calculate feet and inches
int heightFeet=inches / 12;
int heightInches=inches % 12;
std::cou... | 19.47619 | 84 | 0.645477 | CSUF-CPSC120-2019F23-24 |
ee06cdcaf3473206e2c435b90248b9b05b3dd6b1 | 4,910 | cpp | C++ | SRM607/CombinationLockDiv1.cpp | CanoeFZH/SRM | 02e3eeaa6044b14640e450725f68684e392009cb | [
"MIT"
] | null | null | null | SRM607/CombinationLockDiv1.cpp | CanoeFZH/SRM | 02e3eeaa6044b14640e450725f68684e392009cb | [
"MIT"
] | null | null | null | SRM607/CombinationLockDiv1.cpp | CanoeFZH/SRM | 02e3eeaa6044b14640e450725f68684e392009cb | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
// END CUT HERE
#line 5 "CombinationLockDiv1.cpp"
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
... | 48.137255 | 316 | 0.529124 | CanoeFZH |
ee092cc2c3b0df5fdd3bad30c5fc281e14b97b4a | 5,204 | cpp | C++ | gamgee/utils/variant_field_type.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 24 | 2015-01-20T16:15:46.000Z | 2019-09-16T07:53:54.000Z | gamgee/utils/variant_field_type.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 8 | 2015-01-30T07:27:00.000Z | 2017-07-11T21:37:17.000Z | gamgee/utils/variant_field_type.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 15 | 2015-01-11T05:28:26.000Z | 2022-01-18T08:47:10.000Z | #include "variant_field_type.h"
#include "htslib/vcf.h"
#include <string>
#include <stdexcept>
namespace gamgee {
namespace utils {
int32_t convert_data_to_integer(const uint8_t* data_ptr, const int index, const uint8_t num_bytes_per_value, const VariantFieldType& type) {
auto return_val = -1;
const auto p = da... | 37.985401 | 143 | 0.695427 | audiohacked |
ee0b02c089db313245a176b584b7529e45077fea | 2,096 | hpp | C++ | Src/Assist/Plane.hpp | bnagybalint/BoloDemoEngine | 845fc669e0b37bfbffce7aa3d02364d6e715779e | [
"MIT"
] | null | null | null | Src/Assist/Plane.hpp | bnagybalint/BoloDemoEngine | 845fc669e0b37bfbffce7aa3d02364d6e715779e | [
"MIT"
] | null | null | null | Src/Assist/Plane.hpp | bnagybalint/BoloDemoEngine | 845fc669e0b37bfbffce7aa3d02364d6e715779e | [
"MIT"
] | null | null | null | /* ------------------------------------------------ *
* Written by: Nagy Balint *
* Contact: b.nagy.balint@gmail.com *
* *
* This file can be used/improved/redistributed *
* under GNU public license *
*... | 29.942857 | 94 | 0.604485 | bnagybalint |
ee0fa97a276046d14649042b194ddaae73f48855 | 16,152 | cpp | C++ | src/texture/texture_manager.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/texture/texture_manager.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/texture/texture_manager.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#include "texture_manager.hpp"
#include "parsers/json_array.hpp"
#include "parsers/json_hash.hpp"
#include "parsers/sprite_sheet.hpp"
#include "par... | 21.62249 | 132 | 0.670877 | hexoctal |
ee116c9530d7aa604ff1d9e7c2232379ba40de99 | 245 | cpp | C++ | Classes/Background.cpp | hrdktg/JATG | be50cea235d48c3e4f95dee87e9542fb53902fe6 | [
"MIT"
] | null | null | null | Classes/Background.cpp | hrdktg/JATG | be50cea235d48c3e4f95dee87e9542fb53902fe6 | [
"MIT"
] | null | null | null | Classes/Background.cpp | hrdktg/JATG | be50cea235d48c3e4f95dee87e9542fb53902fe6 | [
"MIT"
] | null | null | null | #include "Background.h"
Background::Background(std::string sname, cocos2d::Vec2 pos, cocos2d::Node *s) {
img = cocos2d::Sprite::create(sname);
img->setAnchorPoint(cocos2d::Vec2(0, 0));
img->setPosition(pos);
s->addChild(img);
} | 27.222222 | 80 | 0.669388 | hrdktg |
ee1319fa24f4bbf8df1c1635716b34861c6cd904 | 421 | cpp | C++ | Source/RevenantWeapon.cpp | Project2CITM/Proyecto2 | a10c78fded2b226629a817c4e9cd46ed9e8b5bc8 | [
"MIT"
] | 2 | 2022-03-13T20:31:50.000Z | 2022-03-28T06:43:45.000Z | Source/RevenantWeapon.cpp | Project2CITM/The-last-purifier | e082e8ce6d6aa90b1d232cd9e15f4bec994556ed | [
"MIT"
] | null | null | null | Source/RevenantWeapon.cpp | Project2CITM/The-last-purifier | e082e8ce6d6aa90b1d232cd9e15f4bec994556ed | [
"MIT"
] | null | null | null | #include "RevenantWeapon.h"
#include "PlayerController.h"
RevenantWeapon::RevenantWeapon(PlayerController* playerController)
{
this->playerController = playerController;
app = Application::GetInstance();
}
bool RevenantWeapon::Attack(int chargedTime)
{
return true;
}
void RevenantWeapon::PreUpdate()
{
}
void Rev... | 14.033333 | 66 | 0.75772 | Project2CITM |
ee144c9a501b4cce331b98c5332b55d7adf73fd3 | 589 | hpp | C++ | Sources/Device/MidiOutDevice.hpp | Ardakaniz/RPiSequencer | d9e20344e693d0677af2f3e719767dc82543eab1 | [
"MIT"
] | 7 | 2019-03-24T16:28:37.000Z | 2020-08-15T00:57:35.000Z | Sources/Device/MidiOutDevice.hpp | Ardakaniz/RPiSequencer | d9e20344e693d0677af2f3e719767dc82543eab1 | [
"MIT"
] | null | null | null | Sources/Device/MidiOutDevice.hpp | Ardakaniz/RPiSequencer | d9e20344e693d0677af2f3e719767dc82543eab1 | [
"MIT"
] | null | null | null | #pragma once
#include "Device/Device.hpp"
#include "RtMidi/RtMidi.hpp"
#include <memory>
class MidiOutDevice : public OutputDevice {
public:
void Open(unsigned int index) override;
bool IsOpen() const override;
void Close() override;
std::string GetDeviceType() const override;
std::string GetDeviceName() const... | 24.541667 | 67 | 0.745331 | Ardakaniz |
ee169631e8a3b33e8e615b94e98d3c60977abb1a | 2,542 | cpp | C++ | Code In C [Basics]/CPP Format/NON-WEIGHTED GRAPH/NON-WEIGHTED GRAPH/FRONT_BACK_EDGE_DFSNUMBERING.cpp | vsourav/daa_2019-Jan-March- | a9cb31b24b96a57a9d28176fc64d9a53141f7e19 | [
"MIT"
] | 1 | 2019-11-11T15:43:09.000Z | 2019-11-11T15:43:09.000Z | Code In C [Basics]/CPP Format/NON-WEIGHTED GRAPH/NON-WEIGHTED GRAPH/FRONT_BACK_EDGE_DFSNUMBERING.cpp | vsourav/daa_2019-Jan-March- | a9cb31b24b96a57a9d28176fc64d9a53141f7e19 | [
"MIT"
] | null | null | null | Code In C [Basics]/CPP Format/NON-WEIGHTED GRAPH/NON-WEIGHTED GRAPH/FRONT_BACK_EDGE_DFSNUMBERING.cpp | vsourav/daa_2019-Jan-March- | a9cb31b24b96a57a9d28176fc64d9a53141f7e19 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
static int m=0;
int pre[11];
int post[11];
struct node{
int dest;
struct node* next;
};
struct adj_list{
struct node* head;
};
struct graph{
int v;
struct adj_list* array;
int* visited;
int* parent;
};
struct node* cnode(int dest){
struct node* temp=(st... | 20.5 | 70 | 0.549961 | vsourav |
ee192d426acf2a76289e74c6d730e01ee3c2392f | 1,140 | cc | C++ | Kaleidoscope/lexer.cc | BlurryLight/compiler_practice | a88dfa0a8e31c13f48e9a97add46dd20800b7ff7 | [
"MIT"
] | null | null | null | Kaleidoscope/lexer.cc | BlurryLight/compiler_practice | a88dfa0a8e31c13f48e9a97add46dd20800b7ff7 | [
"MIT"
] | null | null | null | Kaleidoscope/lexer.cc | BlurryLight/compiler_practice | a88dfa0a8e31c13f48e9a97add46dd20800b7ff7 | [
"MIT"
] | null | null | null | #include "lexer.h"
namespace pd {
//================================ helper funcs begins
static int get_next_tok() { return (CurTok = get_tok()); }
std::unique_ptr<ExprAST> LogError(const char *Str) {
fprintf(stderr, "LogError:%s\n", Str);
return nullptr;
}
// PrototypeAST is not inherited from ExprAST
// so an ... | 24.782609 | 58 | 0.614035 | BlurryLight |
ee1bcc06a8a60b9ca6a4aaa30d3ecebce7d99ab6 | 24,824 | cpp | C++ | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.0 Samples/[C++]-Windows Driver Kit (WDK) 8.0 Samples/C++/WDK 8.0 Samples/Sensors geolocation sample driver/Solution/Device.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.0 Samples/[C++]-Windows Driver Kit (WDK) 8.0 Samples/C++/WDK 8.0 Samples/Sensors geolocation sample driver/Solution/Device.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.0 Samples/[C++]-Windows Driver Kit (WDK) 8.0 Samples/C++/WDK 8.0 Samples/Sensors geolocation sample driver/Solution/Device.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2020-10-19T23:36:26.000Z | 2020-10-22T12:59:37.000Z | //
// Copyright (C) Microsoft. All rights reserved.
//
/*++
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
Module Name:
Device... | 28.698266 | 190 | 0.528722 | zzgchina888 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.