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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5266eaf478d912daf91cd52c27e984db42cb1c43 | 688 | cpp | C++ | solved/PT07Y.cpp | mrpandey/spoj | d63378200806e595af2958b15e757383bed692cd | [
"WTFPL"
] | 4 | 2018-04-23T18:37:09.000Z | 2019-04-03T16:28:02.000Z | solved/PT07Y.cpp | mrpandey/spoj | d63378200806e595af2958b15e757383bed692cd | [
"WTFPL"
] | null | null | null | solved/PT07Y.cpp | mrpandey/spoj | d63378200806e595af2958b15e757383bed692cd | [
"WTFPL"
] | 1 | 2021-07-01T03:54:33.000Z | 2021-07-01T03:54:33.000Z | #include<iostream>
#include<vector>
#include<queue>
using namespace std;
int main(){
//ios::sync_with_stdio(false);
int n, m; cin >> n >> m;
if(n-m!=1) {cout << "NO\n"; return 0;}
vector<vector<int> > adj(n, vector<int>());
int u, v;
for(int i=0; i<m; i++){
cin >> u >> v;
adj[u-1].push_back(v-1);
adj[v-1]... | 17.2 | 44 | 0.526163 | mrpandey |
526cb41ff8d86de4698d8fc53f71707f87855174 | 12,806 | cc | C++ | yggdrasil_decision_forests/model/decision_tree/decision_tree_test.cc | google/yggdrasil-decision-forests | 0b284d8afe7ac4773abcdeee88a77681f8681127 | [
"Apache-2.0"
] | 135 | 2021-05-12T18:02:11.000Z | 2022-03-30T16:48:44.000Z | yggdrasil_decision_forests/model/decision_tree/decision_tree_test.cc | google/yggdrasil-decision-forests | 0b284d8afe7ac4773abcdeee88a77681f8681127 | [
"Apache-2.0"
] | 11 | 2021-06-25T17:25:38.000Z | 2022-03-30T03:31:24.000Z | yggdrasil_decision_forests/model/decision_tree/decision_tree_test.cc | google/yggdrasil-decision-forests | 0b284d8afe7ac4773abcdeee88a77681f8681127 | [
"Apache-2.0"
] | 10 | 2021-05-27T02:51:36.000Z | 2022-03-28T07:03:52.000Z | /*
* Copyright 2021 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 25.975659 | 143 | 0.630017 | google |
526f8c4956a0cf823ccc8bb94b12052fffaa7adf | 61,272 | cpp | C++ | core/conn/odbc/src/odbc/nsksrvr/Interface/marshalingsrvr_srvr.cpp | anoopsharma00/incubator-trafodion | b109e2cf5883f8e763af853ab6fad7ce7110d9e8 | [
"Apache-2.0"
] | null | null | null | core/conn/odbc/src/odbc/nsksrvr/Interface/marshalingsrvr_srvr.cpp | anoopsharma00/incubator-trafodion | b109e2cf5883f8e763af853ab6fad7ce7110d9e8 | [
"Apache-2.0"
] | null | null | null | core/conn/odbc/src/odbc/nsksrvr/Interface/marshalingsrvr_srvr.cpp | anoopsharma00/incubator-trafodion | b109e2cf5883f8e763af853ab6fad7ce7110d9e8 | [
"Apache-2.0"
] | null | null | null | // @@@ START COPYRIGHT @@@
//
// 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... | 25.476923 | 139 | 0.72955 | anoopsharma00 |
5275bbb9ef33075c9eb3fb3840a8561190136fd6 | 486 | hpp | C++ | .experimentals/include/amtrs/ads/def.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | .experimentals/include/amtrs/ads/def.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | .experimentals/include/amtrs/ads/def.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__ads__def__hpp
#define __libamtrs__ads__def__hpp
#include "../amtrs.hpp"
AMTRS_NAME... | 40.5 | 72 | 0.746914 | isaponsoft |
5278d45c9ec457ca7bb2f5c797ad4bca1e02ebc1 | 20 | cpp | C++ | Ursa/src/ursapch.cpp | quiniks/Ursa | 4f6c7c153d9d4c2ccb4c42f06d2fa88910d15c8c | [
"Apache-2.0"
] | null | null | null | Ursa/src/ursapch.cpp | quiniks/Ursa | 4f6c7c153d9d4c2ccb4c42f06d2fa88910d15c8c | [
"Apache-2.0"
] | null | null | null | Ursa/src/ursapch.cpp | quiniks/Ursa | 4f6c7c153d9d4c2ccb4c42f06d2fa88910d15c8c | [
"Apache-2.0"
] | null | null | null | #include "ursapch.h" | 20 | 20 | 0.75 | quiniks |
527972021bb18776906f67d173344252477b4297 | 6,851 | cc | C++ | pagespeed/rules/combine_external_resources.cc | gtmetrix/pagespeed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 11 | 2016-08-23T12:31:32.000Z | 2021-05-12T09:47:01.000Z | pagespeed/rules/combine_external_resources.cc | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | null | null | null | pagespeed/rules/combine_external_resources.cc | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 1 | 2019-03-13T00:51:45.000Z | 2019-03-13T00:51:45.000Z | // Copyright 2009 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | 35.86911 | 80 | 0.687491 | gtmetrix |
5279fd930680f6b1642fd5eb1943d8bae0d1492a | 2,350 | cpp | C++ | src/zk/connection_tests.cpp | vexingcodes/zookeeper-cpp | 9dce1fce5370ecfdad713caf411a5ae9b851db33 | [
"Apache-2.0"
] | 126 | 2017-08-09T22:26:09.000Z | 2022-01-21T22:39:46.000Z | src/zk/connection_tests.cpp | vexingcodes/zookeeper-cpp | 9dce1fce5370ecfdad713caf411a5ae9b851db33 | [
"Apache-2.0"
] | 97 | 2017-08-09T23:08:41.000Z | 2022-03-29T21:54:24.000Z | src/zk/connection_tests.cpp | vexingcodes/zookeeper-cpp | 9dce1fce5370ecfdad713caf411a5ae9b851db33 | [
"Apache-2.0"
] | 38 | 2017-08-11T00:33:17.000Z | 2021-05-13T09:19:27.000Z | #include <zk/tests/test.hpp>
#include "connection.hpp"
namespace zk
{
// This test is mostly to check that we still use the defaults.
GTEST_TEST(connection_params_tests, defaults)
{
const auto res = connection_params::parse("zk://localhost/");
CHECK_EQ("zk", res.connection_schema());
CHECK_EQ(1U, res.hos... | 29.375 | 99 | 0.680851 | vexingcodes |
527a4107bc4e574ccc3c8ac5610b866f797ccd82 | 6,209 | hpp | C++ | include/instr/instruction_set.hpp | jaller200/comp4300-project3 | f2106f6acaf44a84b3cb305b7c8f345bf037efae | [
"BSL-1.0"
] | null | null | null | include/instr/instruction_set.hpp | jaller200/comp4300-project3 | f2106f6acaf44a84b3cb305b7c8f345bf037efae | [
"BSL-1.0"
] | null | null | null | include/instr/instruction_set.hpp | jaller200/comp4300-project3 | f2106f6acaf44a84b3cb305b7c8f345bf037efae | [
"BSL-1.0"
] | null | null | null | #pragma once
#include "instr/instruction_handler.hpp"
#include "instr/instruction_metadata.hpp"
#include "instr/instruction_parser.hpp"
#include "instr/instruction_type.hpp"
#include "pipeline/execution_buffer.hpp"
#include "pipeline/instruction_decode_buffer.hpp"
#include "pipeline/instruction_fetch_buffer.hpp"
#incl... | 36.098837 | 193 | 0.692865 | jaller200 |
527e58590ab1a684db26d01f832b8b83e76c5fa2 | 235 | cpp | C++ | Chapter12/Exercise75/Exercise75.cpp | Siddharth-Puhan/The-CPP-Workshop | 220fbcf89d3d35b875ecadc885405984304ca9c6 | [
"MIT"
] | 86 | 2020-03-23T20:50:05.000Z | 2022-02-19T21:41:38.000Z | Chapter12/Exercise75/Exercise75.cpp | Siddharth-Puhan/The-CPP-Workshop | 220fbcf89d3d35b875ecadc885405984304ca9c6 | [
"MIT"
] | 7 | 2020-02-14T12:14:39.000Z | 2021-12-27T09:15:01.000Z | Chapter12/Exercise75/Exercise75.cpp | Siddharth-Puhan/The-CPP-Workshop | 220fbcf89d3d35b875ecadc885405984304ca9c6 | [
"MIT"
] | 66 | 2020-03-23T22:25:17.000Z | 2022-02-01T09:01:41.000Z | #include <iostream>
#include <vector>
using namespace std;
int main()
{
vector < int > vec = {1,2,3,4,5,6,7,8,9,10};
for (auto v: vec)
{
cout << v << " ";
}
cout << vec[3];
return 0;
}
| 12.368421 | 48 | 0.451064 | Siddharth-Puhan |
52857fa785ac77257e1cf8cfef806c90310bbdee | 826 | cpp | C++ | tools/multi/proj/provider/glue/_versionlist_.cpp | ionsphere/icu-cmake | ba3750c592a4f221da9bb80b9145d09f21279adc | [
"Apache-2.0"
] | null | null | null | tools/multi/proj/provider/glue/_versionlist_.cpp | ionsphere/icu-cmake | ba3750c592a4f221da9bb80b9145d09f21279adc | [
"Apache-2.0"
] | null | null | null | tools/multi/proj/provider/glue/_versionlist_.cpp | ionsphere/icu-cmake | ba3750c592a4f221da9bb80b9145d09f21279adc | [
"Apache-2.0"
] | null | null | null | // © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
* Copyright (C) 2009, International Business Machines
* Corporation and others. All Rights Reserved.
*
***************... | 21.179487 | 79 | 0.529056 | ionsphere |
528b90db80b723eace4d1fd5b780da15a9dc2686 | 2,748 | cc | C++ | Source/Content/Asset.cc | dkrutsko/OpenGL-Engine | 2e61e6f9106a03915a21aba94c81af2360cc85bf | [
"Zlib"
] | 3 | 2016-01-05T05:04:35.000Z | 2020-01-08T22:17:14.000Z | Source/Content/Asset.cc | dkrutsko/OpenGL-Engine | 2e61e6f9106a03915a21aba94c81af2360cc85bf | [
"Zlib"
] | null | null | null | Source/Content/Asset.cc | dkrutsko/OpenGL-Engine | 2e61e6f9106a03915a21aba94c81af2360cc85bf | [
"Zlib"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------------- //
// //
// (C) 2012-2013 David Krutsko ... | 32.329412 | 80 | 0.227074 | dkrutsko |
528c8eda9a2baae5e3b6c84e591d73d0e22ca41d | 522 | cc | C++ | tests/unit/features/Alphabet_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 2,753 | 2015-01-02T11:34:13.000Z | 2022-03-25T07:04:27.000Z | tests/unit/features/Alphabet_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 2,404 | 2015-01-02T19:31:41.000Z | 2022-03-09T10:58:22.000Z | tests/unit/features/Alphabet_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 1,156 | 2015-01-03T01:57:21.000Z | 2022-03-26T01:06:28.000Z | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Leon Kuchenbecker
*/
#include <shogun/features/Alphabet.h>
#include <gtest/gtest.h>
using namespace shogun;
TEST(AlphabetTest, test_clone)
{
auto alph = std::make_shared<Alphabet>(PROTEIN);
auto alph_clone = alp... | 22.695652 | 96 | 0.727969 | ShankarNara |
5290908f40b27ecb84dd434ea61817b34b578087 | 273 | cpp | C++ | Exercicios/Exercicios C - Uri #2/1070.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | 1 | 2020-09-07T12:19:27.000Z | 2020-09-07T12:19:27.000Z | Exercicios/Exercicios C - Uri #2/1070.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | Exercicios/Exercicios C - Uri #2/1070.cpp | yunger7/SENAI | 85093e0ce3ed83e50dcd570d7c42b1dda4111929 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int x=0;
scanf("%d",&x);
if (x % 2 == 0){
x++;
for (int c = 1; c <= 6; c++){
printf("%d\n",x);
x += 2;
}
} else {
for (int c = 1; c <= 6; c++){
printf("%d\n",x);
x += 2;
}
}
return 0;
}
| 10.92 | 31 | 0.410256 | yunger7 |
529463afc42721f02412b3dc30c8bd6aab15e562 | 1,858 | cpp | C++ | tests/day4.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | tests/day4.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | tests/day4.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <iostream>
#include <aocmaxnoe2020/aocmaxnoe2020.h>
#include <aocmaxnoe2020/day4.h>
using namespace aocmaxnoe2020;
const std::string test_input = R"(ecl:gry pid:860033327 eyr:2020 hcl:#fffffd
byr:1937 iyr:2017 cid:147 hgt:183cm
iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884
hcl:#c... | 24.12987 | 86 | 0.734661 | maxnoe |
5294ef657a32df492045f5182085c81e25a847dd | 1,353 | cpp | C++ | src/msg.cpp | innogames/testtool | dfbb193ff5f1815cb1a0055cea2cd89779fc5888 | [
"MIT"
] | 6 | 2019-03-08T14:44:49.000Z | 2022-03-21T11:29:05.000Z | src/msg.cpp | innogames/testtool | dfbb193ff5f1815cb1a0055cea2cd89779fc5888 | [
"MIT"
] | 2 | 2020-04-28T12:33:25.000Z | 2021-03-19T08:21:45.000Z | src/msg.cpp | innogames/testtool | dfbb193ff5f1815cb1a0055cea2cd89779fc5888 | [
"MIT"
] | null | null | null | //
// Testtool - Logging Routines
//
// Copyright (c) 2018 InnoGames GmbH
//
#define FMT_HEADER_ONLY
#include <fmt/format.h>
#include <fmt/printf.h>
#include <iostream>
#include <string>
#include <syslog.h>
#include "lb_pool.h"
#include "msg.h"
using namespace std;
void start_logging() { openlog("testtool", LOG_PI... | 22.932203 | 77 | 0.673319 | innogames |
5296ed2cfbde46acd712199ec461423609efeea8 | 4,846 | cc | C++ | CondTools/DT/src/DTKeyedConfigCache.cc | jkiesele/cmssw | e626860d26692de5880c52c7c80aec7b859a0c60 | [
"Apache-2.0"
] | 1 | 2021-04-13T13:26:16.000Z | 2021-04-13T13:26:16.000Z | CondTools/DT/src/DTKeyedConfigCache.cc | jkiesele/cmssw | e626860d26692de5880c52c7c80aec7b859a0c60 | [
"Apache-2.0"
] | null | null | null | CondTools/DT/src/DTKeyedConfigCache.cc | jkiesele/cmssw | e626860d26692de5880c52c7c80aec7b859a0c60 | [
"Apache-2.0"
] | null | null | null | /*
* See header file for a description of this class.
*
* This class was originally defined in
* CondCore/DTPlugins/src/DTConfigPluginHandler.cc
* It was moved, renamed, and modified to not be a singleton
* for thread safety, but otherwise little was changed.
*
* \author Paolo Ronchese INFN Padova
*
*/
... | 32.965986 | 114 | 0.657862 | jkiesele |
529879063a3d1eef64e353d0094a6c25314ddf2a | 36,358 | cc | C++ | tensorstore/driver/downsample/downsample_util.cc | google/tensorstore | 8df16a67553debaec098698ceaa5404eaf79634a | [
"BSD-2-Clause"
] | 106 | 2020-04-02T20:00:18.000Z | 2022-03-23T20:27:31.000Z | tensorstore/driver/downsample/downsample_util.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 28 | 2020-04-12T02:04:47.000Z | 2022-03-23T20:27:03.000Z | tensorstore/driver/downsample/downsample_util.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 18 | 2020-04-08T06:41:30.000Z | 2022-02-18T03:05:49.000Z | // Copyright 2020 The TensorStore Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 45.221393 | 80 | 0.70664 | google |
529969a537876652947467da3907dda4ecae4417 | 1,156 | cpp | C++ | Training/暑期集训1 Shuffle.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | Training/暑期集训1 Shuffle.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | Training/暑期集训1 Shuffle.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | //Author:LanceYu
#include<cstring>
#include<cmath>
#include<cstdio>
#include<cctype>
#include<cstdlib>
#include<ctime>
#include<vector>
#include<iostream>
#include<string>
#include<queue>
#include<set>
#include<map>
#include<algorithm>
#include<complex>
#include<stack>
#include<bitset>
#include<iomanip>
#define ll long... | 15.413333 | 61 | 0.581315 | windcry1 |
529c974c7f1215d0229b7ff8f16488daa80f8774 | 226 | cpp | C++ | collection/cp/Algorithm_Collection-master/removeDuplicates.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/Algorithm_Collection-master/removeDuplicates.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/Algorithm_Collection-master/removeDuplicates.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | int removeDuplicates(int A[], int n) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
int i=0;
int j;
if (n<=1) return n;
for (j=1;j<n;j++)
{
if (A[j] != A[i])
{
A[++i]=A[j];
}
}
return i+1;
}
| 13.294118 | 41 | 0.566372 | daemonslayer |
52a4dbe5f32625a9707455c1890d974e04646835 | 374 | cpp | C++ | cfi/call-wrong-num-func-vtable-stack.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | 4 | 2021-11-12T03:41:54.000Z | 2022-02-28T12:23:49.000Z | cfi/call-wrong-num-func-vtable-stack.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | null | null | null | cfi/call-wrong-num-func-vtable-stack.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | 1 | 2021-11-29T08:38:28.000Z | 2021-11-29T08:38:28.000Z | #include <cstdlib>
#include "include/cfi.hpp"
void fake_func() {
exit(0);
}
int main() {
Helper *orig = new Helper();
//create a fake vtable with 3 function pointers
pfunc_t fake_vtable[3];
for(int i=0; i<3; i++)
fake_vtable[i] = fake_func;
// replace the vtable pointer
write_vtable_pointer(orig,... | 17 | 49 | 0.663102 | comparch-security |
52a5c046dd736f7f68106486587a68a59de74e22 | 958 | cpp | C++ | raygame/button.cpp | LegendaryyDoc/Inheritance | 23b5d360209e1d4031e0c2f06a827a7ab6b6664f | [
"MIT"
] | null | null | null | raygame/button.cpp | LegendaryyDoc/Inheritance | 23b5d360209e1d4031e0c2f06a827a7ab6b6664f | [
"MIT"
] | null | null | null | raygame/button.cpp | LegendaryyDoc/Inheritance | 23b5d360209e1d4031e0c2f06a827a7ab6b6664f | [
"MIT"
] | null | null | null | #include "raylib.h"
#include "button.h"
void Button::Draw()
{
}
bool Button::CheckForClick()
{
bool rtn = false;
Vector2 cursor = GetMousePosition();
if (CheckCollisionPointRec(cursor, rec))
{
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
{
currentFrame = 1;
rtn= true;
}
else
{
currentFrame = 0;
... | 15.966667 | 91 | 0.65762 | LegendaryyDoc |
52a634ae2ca0f5584870f7fc30931b47abe97c2b | 9,764 | cpp | C++ | src/MushGame/MushGameUtil.cpp | mushware/adanaxis-core-app | 679ac3e8a122e059bb208e84c73efc19753e87dd | [
"MIT"
] | 9 | 2020-11-02T17:20:40.000Z | 2021-12-25T15:35:36.000Z | src/MushGame/MushGameUtil.cpp | mushware/adanaxis-core-app | 679ac3e8a122e059bb208e84c73efc19753e87dd | [
"MIT"
] | 2 | 2020-06-27T23:14:13.000Z | 2020-11-02T17:28:32.000Z | src/MushGame/MushGameUtil.cpp | mushware/adanaxis-core-app | 679ac3e8a122e059bb208e84c73efc19753e87dd | [
"MIT"
] | 1 | 2021-05-12T23:05:42.000Z | 2021-05-12T23:05:42.000Z | //%Header {
/*****************************************************************************
*
* File: src/MushGame/MushGameUtil.cpp
*
* Copyright: Andy Southgate 2002-2007, 2020
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (... | 31.701299 | 113 | 0.695924 | mushware |
52abcb2d2463f30400de695309b43093980da152 | 1,028 | cpp | C++ | UI/NewGameHUD/Widget/Widget_PressKey/SCpt_PressKey.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | UI/NewGameHUD/Widget/Widget_PressKey/SCpt_PressKey.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | UI/NewGameHUD/Widget/Widget_PressKey/SCpt_PressKey.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "SCpt_PressKey.h"
#include "WCpt_PressKey.h"
#include "Widget_PressKeyItem.h"
USCpt_PressKey::USCpt_PressKey()
{
PrimaryComponentTick.bCanEverTick = true;
m_pWidgetComp_PressKey = CreateDefaultSubobject<UWCpt_PressKey>(TEXT("Wi... | 20.979592 | 119 | 0.765564 | Bornsoul |
52abedf1089d41f26c66fdee47412282f04a64ba | 22,784 | cpp | C++ | src/binfhe/lib/fhew.cpp | cs854paper58/PerfEvaFHE | 4913920e20c3488556702bd15095cc2055fa381a | [
"BSD-2-Clause"
] | null | null | null | src/binfhe/lib/fhew.cpp | cs854paper58/PerfEvaFHE | 4913920e20c3488556702bd15095cc2055fa381a | [
"BSD-2-Clause"
] | null | null | null | src/binfhe/lib/fhew.cpp | cs854paper58/PerfEvaFHE | 4913920e20c3488556702bd15095cc2055fa381a | [
"BSD-2-Clause"
] | null | null | null | // @file fhew.cpp - FHEW scheme (RingGSW accumulator) implementation
// The scheme is described in https://eprint.iacr.org/2014/816 and in
// Daniele Micciancio and Yuriy Polyakov, "Bootstrapping in FHEW-like
// Cryptosystems", Cryptology ePrint Archive, Report 2020/086,
// https://eprint.iacr.org/2020/086.
//
// Full ... | 36.689211 | 80 | 0.654231 | cs854paper58 |
52ac0a177d59b88600e4f2ab5b7924807eee94ad | 12,317 | cpp | C++ | HoodieScript/GameUtilities/PlayerUtilities.cpp | NamelessHoodie/HoodieScript | bc3b250af0a1c5dbf545779ba5ef11780edb299b | [
"MIT"
] | 2 | 2021-12-16T22:53:45.000Z | 2022-03-26T21:05:29.000Z | HoodieScript/GameUtilities/PlayerUtilities.cpp | NamelessHoodie/HoodieScript | bc3b250af0a1c5dbf545779ba5ef11780edb299b | [
"MIT"
] | null | null | null | HoodieScript/GameUtilities/PlayerUtilities.cpp | NamelessHoodie/HoodieScript | bc3b250af0a1c5dbf545779ba5ef11780edb299b | [
"MIT"
] | 2 | 2022-01-13T19:27:52.000Z | 2022-01-30T18:19:01.000Z | #include "pch.h"
#include "PlayerUtilities.h"
#include <Amir/player_network_session.h>
#include "GameDebugClasses/game_data_man.h"
#include "GameDebugClasses/world_chr_man.h"
#include <script_runtime.h>
namespace hoodie_script
{
void PlayerUtilities::clearInventory() {
EquipGameData equipGameData = PlayerIns::getM... | 36.548961 | 410 | 0.766177 | NamelessHoodie |
52acea0cd8473acad382677cc4855ea389d0c0f5 | 2,415 | cpp | C++ | CsPlugin/Source/CsCore/Public/Collision/Script/CsScriptLibrary_Collision.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsCore/Public/Collision/Script/CsScriptLibrary_Collision.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsCore/Public/Collision/Script/CsScriptLibrary_Collision.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Collision/Script/CsScriptLibrary_Collision.h"
#include "CsCore.h"
// Library
#include "Library/CsLibrary_Property.h"
#include "Object/CsLibrary_Object.h"
// Cached
#pragma region
namespace NCsScriptLibraryCollision
{
namespace NCached
{
... | 32.2 | 195 | 0.804969 | closedsum |
52ae0a0789fafee6a0edd5f348ab2cf6b5132ec3 | 2,387 | cpp | C++ | due/Oscilloscope/Graphs/TextWriter.cpp | cazacov/Arduino | c66de663ae4ea9424d8281f2e23e03c30f50cacb | [
"MIT"
] | 24 | 2015-01-23T09:59:54.000Z | 2022-02-25T18:55:44.000Z | due/Oscilloscope/Graphs/TextWriter.cpp | cazacov/Arduino | c66de663ae4ea9424d8281f2e23e03c30f50cacb | [
"MIT"
] | 1 | 2015-12-17T18:53:22.000Z | 2015-12-17T18:53:22.000Z | due/Oscilloscope/Graphs/TextWriter.cpp | cazacov/Arduino | c66de663ae4ea9424d8281f2e23e03c30f50cacb | [
"MIT"
] | 25 | 2015-12-10T20:39:39.000Z | 2022-02-25T18:55:01.000Z | //
//
//
#include "TextWriter.h"
void TextWriter::A(int x0, int y0)
{
unsigned int a[][4] = {{0,0, 0,2}, {0,2, 1,4}, {1,4, 2,2}, {2,2, 2,0}, {0,2, 2,2}};
drawLetter(x0, y0, a, sizeof(a)/sizeof(a[0]));
}
void TextWriter::B(int x0, int y0)
{
unsigned int b[][4] = {{0,0, 0,4}, {0,4, 2,3}, {2,3, 0,2}, {0,2, 2,1},... | 20.401709 | 89 | 0.525765 | cazacov |
52b0c5fddbc72d1cfdf2f12c76e627731bdf1de6 | 1,771 | cpp | C++ | Templates/Dominator Tree.cpp | Shefin-CSE16/Competitive-Programming | 7c792081ae1d4b7060893165de34ffe7b9b7caed | [
"MIT"
] | 5 | 2020-10-03T17:15:26.000Z | 2022-03-29T21:39:22.000Z | Templates/Dominator Tree.cpp | Shefin-CSE16/Competitive-Programming | 7c792081ae1d4b7060893165de34ffe7b9b7caed | [
"MIT"
] | null | null | null | Templates/Dominator Tree.cpp | Shefin-CSE16/Competitive-Programming | 7c792081ae1d4b7060893165de34ffe7b9b7caed | [
"MIT"
] | 1 | 2021-03-01T12:56:50.000Z | 2021-03-01T12:56:50.000Z | /*
* Dominator Tree Implementation
* Source node of the DAG is the root of the Tree.
* If any Ancestor of u is removed, u will be
disconnected from the source in the DAG.
* If u is removed, all the nodes in the subtree
of u will be disconnected from the source in the DAG.
*/
const ll sz = 1e5 + 10, LN = 18;
... | 22.417722 | 62 | 0.5048 | Shefin-CSE16 |
52b1ca8c73dc8646e7a93a4a43dd64cafefe1c5c | 626 | cpp | C++ | src/ScalingModules.cpp | Humhu/modprop | 0cff8240d5e1522f620de8004c22a74491a0c9fb | [
"AFL-3.0"
] | 1 | 2017-11-10T00:54:53.000Z | 2017-11-10T00:54:53.000Z | src/ScalingModules.cpp | Humhu/modprop | 0cff8240d5e1522f620de8004c22a74491a0c9fb | [
"AFL-3.0"
] | null | null | null | src/ScalingModules.cpp | Humhu/modprop | 0cff8240d5e1522f620de8004c22a74491a0c9fb | [
"AFL-3.0"
] | null | null | null | #include "modprop/compo/ScalingModules.h"
namespace argus
{
ScalingModule::ScalingModule()
: _fS( 1.0 ), _bS( 1.0 ), _input( *this ), _output( *this )
{
RegisterInput( &_input );
RegisterOutput( &_output );
}
void ScalingModule::SetForwardScale( double s ) { _fS = s; }
void ScalingModule::SetBackwardScale( double ... | 22.357143 | 61 | 0.704473 | Humhu |
52b2dbabe4832e3e3240b827e44c4c3c4d45b8a8 | 1,756 | cpp | C++ | PressureEngineCore/Src/Graphics/Particles/ParticleMaster.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | 1 | 2017-09-13T13:29:27.000Z | 2017-09-13T13:29:27.000Z | PressureEngineCore/Src/Graphics/Particles/ParticleMaster.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | null | null | null | PressureEngineCore/Src/Graphics/Particles/ParticleMaster.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | 1 | 2019-01-18T07:16:59.000Z | 2019-01-18T07:16:59.000Z | #include "ParticleMaster.h"
namespace Pressure {
std::map<ParticleTexture, std::list<Particle>> ParticleMaster::s_Particles;
std::unique_ptr<ParticleRenderer> ParticleMaster::s_Renderer = nullptr;
void ParticleMaster::init(Loader& loader, GLFWwindow* window) {
s_Renderer = std::make_unique<ParticleRenderer>(loa... | 27.4375 | 101 | 0.699886 | Playturbo |
52b2fdf2ce67c3f0b97c874549a2661d671b6dc4 | 1,393 | cpp | C++ | src/argos_lib/cpp/subsystems/swappable_controllers_subsystem.cpp | FRC1756-Argos/ArgosLib-Cpp | bd6f50329b9ddd1e603ee520b54c60d65f4fb6e7 | [
"BSD-3-Clause"
] | null | null | null | src/argos_lib/cpp/subsystems/swappable_controllers_subsystem.cpp | FRC1756-Argos/ArgosLib-Cpp | bd6f50329b9ddd1e603ee520b54c60d65f4fb6e7 | [
"BSD-3-Clause"
] | null | null | null | src/argos_lib/cpp/subsystems/swappable_controllers_subsystem.cpp | FRC1756-Argos/ArgosLib-Cpp | bd6f50329b9ddd1e603ee520b54c60d65f4fb6e7 | [
"BSD-3-Clause"
] | null | null | null | /// \copyright Copyright (c) Argos FRC Team 1756.
/// Open Source Software; you can modify and/or share it under the terms of
/// the license file in the root directory of this project.
#include "argos_lib/subsystems/swappable_controllers_subsystem.h"
using namespace argos_lib;
SwappableControl... | 34.825 | 114 | 0.803302 | FRC1756-Argos |
52b64a8477f85d51f197e22e247e5e5eca124c96 | 952 | cpp | C++ | arrays/array_basics2.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | arrays/array_basics2.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | arrays/array_basics2.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
using namespace std;
void changes(int arr[], int n)
{
for (int i = 0; i < n; i++)
{
arr[i] = 10;
}
}
int main()
{
int nums[] = {0, 1, 2, 3, 4, 5, 6, 7};
int n = sizeof(nums) / sizeof(nums[0]);
// Before calling changes()
for (int i = 0; i < n; i... | 26.444444 | 86 | 0.563025 | neerajsingh869 |
52b893a2537b9a4a29562dc015d3ad4b7f1ec5c1 | 576 | cc | C++ | src/math/Vector2.cc | shawndfl/game-sample | 1937f4efb98e1ea5cc4f1124ba611b9626182d57 | [
"MIT"
] | null | null | null | src/math/Vector2.cc | shawndfl/game-sample | 1937f4efb98e1ea5cc4f1124ba611b9626182d57 | [
"MIT"
] | null | null | null | src/math/Vector2.cc | shawndfl/game-sample | 1937f4efb98e1ea5cc4f1124ba611b9626182d57 | [
"MIT"
] | null | null | null | /*
* Vector2.cc
*
* Created on: Aug 30, 2020
* Author: sdady
*/
#include "Vector2.h"
#include "glad/glad.h"
namespace bsk {
/*************************************************/
Vector2::Vector2(): x(0), y(0) {
}
/*************************************************/
Vector2::Vector2(float x, float y) {
t... | 16.941176 | 51 | 0.369792 | shawndfl |
52b977559d59cd9245e09c35092a75cf4571f623 | 320 | cpp | C++ | src/h5viewer/main.cpp | martyngigg/h5view | 2ab16840e0be132aca60f2815e9d45fab74c9ab1 | [
"MIT"
] | null | null | null | src/h5viewer/main.cpp | martyngigg/h5view | 2ab16840e0be132aca60f2815e9d45fab74c9ab1 | [
"MIT"
] | 3 | 2019-10-28T20:42:34.000Z | 2020-03-08T09:38:54.000Z | src/h5viewer/main.cpp | martyngigg/h5view | 2ab16840e0be132aca60f2815e9d45fab74c9ab1 | [
"MIT"
] | null | null | null | #include <iostream>
#include "h5view/h5view.hpp"
using std::cerr;
using std::cout;
using h5view::first_object_name;
int main(int argc, char **argv) {
if(argc != 2) {
cerr << "Usage: h5viewer filepath\n";
return 1;
}
std::cout << "First object name=" << first_object_name(argv[1]) << "\n";
return 0;
}
| 18.823529 | 74 | 0.634375 | martyngigg |
52bba4b8a518acc0a303c2268558f9f7a9a5d643 | 3,530 | cpp | C++ | app/src/render/render_image.cpp | shuyanglin/antimony-interactive | 4787dea233c62015babb0da5e299d9f41d500905 | [
"MIT",
"Unlicense"
] | null | null | null | app/src/render/render_image.cpp | shuyanglin/antimony-interactive | 4787dea233c62015babb0da5e299d9f41d500905 | [
"MIT",
"Unlicense"
] | null | null | null | app/src/render/render_image.cpp | shuyanglin/antimony-interactive | 4787dea233c62015babb0da5e299d9f41d500905 | [
"MIT",
"Unlicense"
] | null | null | null | #include <Python.h>
#include <QCoreApplication>
#include "render/render_image.h"
#include "ui/viewport/depth_image.h"
#include "fab/types/shape.h"
#include "fab/util/region.h"
#include "fab/tree/render.h"
#include "fab/formats/png.h"
RenderImage::RenderImage(Bounds b, QVector3D pos, float scale)
: QObject(), bo... | 28.699187 | 81 | 0.530312 | shuyanglin |
52bc0b38a7df65353149b6d577f1874c98f1a1ff | 1,080 | cpp | C++ | svgimageprovider.cpp | user1095108/qtnanosvg | 9260ed11c9ba7d711e87110723e11e0c5eb706e4 | [
"Unlicense"
] | 2 | 2021-09-07T04:33:48.000Z | 2022-01-08T07:28:42.000Z | svgimageprovider.cpp | user1095108/qtnanosvg | 9260ed11c9ba7d711e87110723e11e0c5eb706e4 | [
"Unlicense"
] | 1 | 2021-10-14T10:56:14.000Z | 2021-10-14T10:56:14.000Z | svgimageprovider.cpp | user1095108/qtnanosvg | 9260ed11c9ba7d711e87110723e11e0c5eb706e4 | [
"Unlicense"
] | null | null | null | #include <QFile>
#include <QPainter>
#include "qtnanosvg.hpp"
#include "nanosvg/src/nanosvg.h"
#include "svgimageprovider.hpp"
//////////////////////////////////////////////////////////////////////////////
SVGImageProvider::SVGImageProvider():
QQuickImageProvider(QQmlImageProviderBase::Pixmap)
{
}
//////////////... | 21.176471 | 78 | 0.496296 | user1095108 |
1ebf0d559227f711f3d9cdecb096fb85ef3cc9cb | 13,382 | cpp | C++ | gcpp/classes/ogetoptv.cpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | 2 | 2015-10-15T19:32:42.000Z | 2021-12-20T15:56:04.000Z | gcpp/classes/ogetoptv.cpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | gcpp/classes/ogetoptv.cpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | /*====================================================================*
*
* ogetoptv.cpp - implementation of the ogetoptv class.
*
* this is a posix compliant getoptv() function that supports absolutely
* no extensions; visit the posix webpage that specifies this function
* to learn more;
*
* <http://... | 25.833977 | 110 | 0.453445 | razzlefratz |
1ebf66414def2e973c747bbf7321d75a8990a1b0 | 913 | cpp | C++ | Source/Bld.cpp | brigaudet/ERF | 8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-11-05T19:41:55.000Z | 2021-04-23T01:00:17.000Z | Source/Bld.cpp | brigaudet/ERF | 8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556 | [
"BSD-3-Clause-LBNL"
] | 98 | 2021-02-03T21:55:22.000Z | 2022-03-31T05:14:42.000Z | Source/Bld.cpp | brigaudet/ERF | 8277e9bdfff5590f9c208ac3dc9a4f38f1d7f556 | [
"BSD-3-Clause-LBNL"
] | 12 | 2020-11-02T04:55:38.000Z | 2021-11-12T22:42:57.000Z | #include <AMReX_LevelBld.H>
#include "ERF.H"
class ERFBld : public amrex::LevelBld
{
virtual void variableSetUp();
virtual void variableCleanUp();
virtual amrex::AmrLevel* operator()();
virtual amrex::AmrLevel* operator()(
amrex::Amr& papa,
int lev,
const amrex::Geometry& level_geom,
const amr... | 16.303571 | 54 | 0.683461 | brigaudet |
1ec07297de92bed7558c678b21e7a15f83bfa95a | 2,637 | cpp | C++ | Cpp/126.word-ladder-ii.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/126.word-ladder-ii.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/126.word-ladder-ii.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<string>> findLadders(string beginWord, string endWord, vector<string>& wordList) {
vector<vector<string>> res;
if (std::find(wordList.begin(), wordList.end(), endWord) == wordList.end()) return res;
// preprocessing
int L = beginWord.si... | 39.954545 | 109 | 0.452408 | zszyellow |
1ec2ca85529a4eac8478593b8c3046ce4f17f0f1 | 3,344 | cpp | C++ | aoc21/code18.cpp | nakst/jam | 1ddca72698d86eb300c616732f2b9d5989f2a2bc | [
"MIT"
] | 3 | 2021-11-25T16:23:55.000Z | 2022-03-03T03:35:15.000Z | aoc21/code18.cpp | nakst/jam | 1ddca72698d86eb300c616732f2b9d5989f2a2bc | [
"MIT"
] | null | null | null | aoc21/code18.cpp | nakst/jam | 1ddca72698d86eb300c616732f2b9d5989f2a2bc | [
"MIT"
] | null | null | null | #include "ds.h"
#define OPEN (-1)
#define CLOSE (-2)
#define COMMA (-3)
struct Number {
Array<int> c;
};
Array<Number> numbers = {};
Number Add(Number left, Number right) {
Number x = {};
x.c.Add(OPEN);
for (int i = 0; i < left.c.Length(); i++) {
x.c.Add(left.c[i]);
}
x.c.Add(COMMA);
for (int i = 0; i ... | 16 | 59 | 0.453947 | nakst |
1ec32d29433f15fc3dee70892d16c3f2aa76d0f5 | 1,139 | hpp | C++ | editor/src/FilePickerDialog.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | editor/src/FilePickerDialog.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | editor/src/FilePickerDialog.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <filesystem>
namespace kokko
{
namespace editor
{
class FilePickerDialog
{
public:
enum class Type
{
FileOpen,
FileSave,
FolderOpen,
};
struct Descriptor
{
const char* popupTitle;
const char* descriptionText;
const char* actionButtonT... | 17.523077 | 81 | 0.701493 | aleksigron |
1ec575e0ba9d494246a7a3391596c3f3253171f2 | 604 | hpp | C++ | src/framework/shared/inc/private/common/fxpkgioshared.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 994 | 2015-03-18T21:37:07.000Z | 2019-04-26T04:04:14.000Z | src/framework/shared/inc/private/common/fxpkgioshared.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 13 | 2019-06-13T15:58:03.000Z | 2022-02-18T22:53:35.000Z | src/framework/shared/inc/private/common/fxpkgioshared.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 350 | 2015-03-19T04:29:46.000Z | 2019-05-05T23:26:50.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxPkgIoShared.hpp
Abstract:
This file contains portion of FxPkgIo.hpp that is need in shared code.
Author:
Environment:
Revision History:
--*/
#ifndef _FXPKGIOSHARED_HPP_
#define _FXPKGIOSHARED_HPP_
enum FxIoStopProcessingForPowerAction {
Fx... | 16.324324 | 93 | 0.789735 | IT-Enthusiast-Nepal |
1ecd7463a2a9e13686fe60699bf7e5b6e21ece86 | 3,891 | hpp | C++ | c++/en/old_source_codes/nns_simuls/nns-3.0/nns-1.2/source_codes/Main.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/old_source_codes/nns_simuls/nns-3.0/nns-1.2/source_codes/Main.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/old_source_codes/nns_simuls/nns-3.0/nns-1.2/source_codes/Main.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | #ifndef __MAIN_HPP_
#define __MAIN_HPP_
// For CSRN
#include "ApiGnuplot.hpp"
#include "ApiPostprocess.hpp"
#include "BadukData.hpp"
#include "Cnn.hpp"
#include "CommandLineArguments.hpp"
#include "Config.hpp"
#include "ShellCommands.hpp"
#include "Myiostream.hpp"
// For reinforcement learning
#include "Gr... | 38.524752 | 90 | 0.66641 | aimldl |
1ed57e3ca977f967d35331c59767bb0d69065a0c | 2,478 | cpp | C++ | intermediate/memoryAllocation/returningObjects.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2019-06-20T17:51:10.000Z | 2019-06-20T17:51:10.000Z | intermediate/memoryAllocation/returningObjects.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 2 | 2018-10-01T08:14:01.000Z | 2018-10-06T05:27:26.000Z | intermediate/memoryAllocation/returningObjects.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2018-10-05T10:54:10.000Z | 2018-10-05T10:54:10.000Z | #include <iostream>
#include <cstdlib>
class Animal
{
private:
std::string name;
public:
// common constructor
Animal() { std::cout << "Animal created" << std::endl; }
// copy constructor
Animal(const Animal& other)
: name{other.name}
{
... | 28.482759 | 98 | 0.624294 | eduardorasgado |
1ee1015465fdb830af43912e70139f3691a2efa4 | 1,704 | hpp | C++ | 3rdParty/detail/index_lsb_set.hpp | zero9178/cld | 2899ade8045074c5ee939253d2d7f8067c46e72d | [
"MIT"
] | 14 | 2020-10-16T08:29:32.000Z | 2021-12-21T10:37:05.000Z | 3rdParty/detail/index_lsb_set.hpp | zero9178/cld | 2899ade8045074c5ee939253d2d7f8067c46e72d | [
"MIT"
] | null | null | null | 3rdParty/detail/index_lsb_set.hpp | zero9178/cld | 2899ade8045074c5ee939253d2d7f8067c46e72d | [
"MIT"
] | null | null | null | // BITSET2
//
// Copyright Claas Bontus
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ClaasBontus/bitset2
//
#ifndef BITSET2_INDEX_L... | 28.4 | 117 | 0.61385 | zero9178 |
1ee2d992c12ef1713e38aeac04e66ba6ac8e5d00 | 2,236 | cpp | C++ | src/SpreadsheetImpl.cpp | zhangf911/SPLib | 57ae498f61abe9c14670a974340251cd67ca99fb | [
"BSD-2-Clause"
] | 1 | 2015-11-06T03:40:44.000Z | 2015-11-06T03:40:44.000Z | src/SpreadsheetImpl.cpp | amyvmiwei/SPLib | 57ae498f61abe9c14670a974340251cd67ca99fb | [
"BSD-2-Clause"
] | null | null | null | src/SpreadsheetImpl.cpp | amyvmiwei/SPLib | 57ae498f61abe9c14670a974340251cd67ca99fb | [
"BSD-2-Clause"
] | 1 | 2020-12-16T03:20:45.000Z | 2020-12-16T03:20:45.000Z | // File: SpreadsheetImpl.cpp
// SpreadsheetImpl implementation file
//
#include "splib.h"
#include "TableImpl.h"
#include "splibint.h"
#include <string.h>
namespace splib {
SpreadsheetImpl::SpreadsheetImpl() {
}
SpreadsheetImpl::~SpreadsheetImpl() {
for (std::vector<Table*>::size_type i = 0; i ... | 23.291667 | 73 | 0.580501 | zhangf911 |
1ee399fb1e535109c68f9cab8d971597772bcae3 | 31,689 | cc | C++ | src/coordinator_node.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | src/coordinator_node.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | src/coordinator_node.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <string>
#include <sstream>
#include <cstring>
#include <ostream>
#include <iostream>
#include <istream>
#include <fstream>
#include <algorithm>
#include <cstdio>
#include <functional>
#include "assert.h"
#include "coordinator_node.h"
#include "csv_file.h"
#include "debug.h"
#include "hash_fun... | 31.4375 | 144 | 0.678122 | qian-long |
1ee6fceff5c728389a29f3dcf33426e3b52b9672 | 5,701 | cpp | C++ | tket/tests/Graphs/RNG.cpp | vtomole/tket | ded37ab58176d64117a3e11e8a667ce0199a338a | [
"Apache-2.0"
] | null | null | null | tket/tests/Graphs/RNG.cpp | vtomole/tket | ded37ab58176d64117a3e11e8a667ce0199a338a | [
"Apache-2.0"
] | null | null | null | tket/tests/Graphs/RNG.cpp | vtomole/tket | ded37ab58176d64117a3e11e8a667ce0199a338a | [
"Apache-2.0"
] | null | null | null | // Copyright 2019-2022 Cambridge Quantum Computing
//
// 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... | 33.934524 | 77 | 0.592177 | vtomole |
1ee853fe5916fd89bba1a6a53ff83af9c68b963f | 2,691 | cpp | C++ | vpnor/test/toc_flags.cpp | ibm-openbmc/hiomapd | 8cef63e3a3652b25f6a310800c1e0bf09aeed4c6 | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | vpnor/test/toc_flags.cpp | ibm-openbmc/hiomapd | 8cef63e3a3652b25f6a310800c1e0bf09aeed4c6 | [
"Apache-2.0"
] | 17 | 2018-09-20T02:29:41.000Z | 2019-04-05T04:43:11.000Z | vpnor/test/toc_flags.cpp | ibm-openbmc/hiomapd | 8cef63e3a3652b25f6a310800c1e0bf09aeed4c6 | [
"Apache-2.0"
] | 9 | 2017-02-14T03:05:09.000Z | 2019-01-07T20:39:42.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
#include "config.h"
#include "vpnor/table.hpp"
#include <cassert>
#include "common.h"
#include "vpnor/ffs.h"
static constexpr auto BLOCK_SIZE = 4 * 1024;
static constexpr auto DATA_MASK = ((1 << 24) - 1);
int main()
{
namespace vpnor = ope... | 33.6375 | 74 | 0.679301 | ibm-openbmc |
1ee88c7ebbc8356fbd7ff45399685e767a35509f | 2,742 | cpp | C++ | src/utils/ImageFileUtil.cpp | skn123/CudaOtsu | 6b997b4ee8ce7e006a59e06a2f4539696c25d721 | [
"MIT"
] | 6 | 2021-03-08T10:07:27.000Z | 2022-01-20T06:11:15.000Z | src/utils/ImageFileUtil.cpp | skn123/CudaOtsu | 6b997b4ee8ce7e006a59e06a2f4539696c25d721 | [
"MIT"
] | 9 | 2018-11-26T10:29:59.000Z | 2019-09-04T07:28:18.000Z | src/utils/ImageFileUtil.cpp | skn123/CudaOtsu | 6b997b4ee8ce7e006a59e06a2f4539696c25d721 | [
"MIT"
] | 5 | 2019-05-30T08:04:46.000Z | 2020-12-17T08:18:22.000Z | #include "ImageFileUtil.h"
#include "../libs/lodepng.h"
#include <iostream>
#include <sstream>
#include <fstream>
ImageFileUtil::ImageFileUtil() {}
PngImage* ImageFileUtil::loadPngFile(const char* filename) {
std::vector<unsigned char> png;
std::vector<unsigned char> rawImage;
unsigned imageWidth;
unsigned image... | 25.626168 | 113 | 0.712619 | skn123 |
1eeefdf0d07916c5eefbbf7e284b65503b3b4158 | 1,542 | hpp | C++ | gui/grid_widget.hpp | myra-b/ising | 2e03e121e37ecf00411f4aaf3275fa9259dd40d3 | [
"Apache-2.0"
] | 3 | 2017-09-19T11:27:59.000Z | 2019-05-09T08:46:07.000Z | gui/grid_widget.hpp | myrabiedermann/ising | 2e03e121e37ecf00411f4aaf3275fa9259dd40d3 | [
"Apache-2.0"
] | 3 | 2017-11-14T23:13:39.000Z | 2017-12-12T11:46:53.000Z | gui/grid_widget.hpp | myrabiedermann/ising | 2e03e121e37ecf00411f4aaf3275fa9259dd40d3 | [
"Apache-2.0"
] | 1 | 2017-08-16T12:43:37.000Z | 2017-08-16T12:43:37.000Z | #pragma once
#ifdef QT_NO_DEBUG
#ifndef QT_NO_DEBUG_OUTPUT
#define QT_NO_DEBUG_OUTPUT
#endif
#endif
#ifndef USE_MATH_DEFINES
#define USE_MATH_DEFINES
#endif
// #include "global.hpp"
#include "system/montecarlohost.hpp"
#include "system/spinsystem.hpp"
#include <QGraphicsView>
#include <QGraphics... | 21.71831 | 101 | 0.699741 | myra-b |
1ef035004271d4796b96fa5f8b9c5fc1c2460552 | 1,173 | cpp | C++ | Library/Source/Blocks/FHBlock.cpp | AutomotiveDevOps/mdf4-converters | 5c6624ca0a56317ce296233cb3fc80362b07a175 | [
"MIT"
] | null | null | null | Library/Source/Blocks/FHBlock.cpp | AutomotiveDevOps/mdf4-converters | 5c6624ca0a56317ce296233cb3fc80362b07a175 | [
"MIT"
] | null | null | null | Library/Source/Blocks/FHBlock.cpp | AutomotiveDevOps/mdf4-converters | 5c6624ca0a56317ce296233cb3fc80362b07a175 | [
"MIT"
] | null | null | null | #include "FHBlock.h"
#include <boost/endian/buffers.hpp>
namespace mdf {
#pragma pack(push, 1)
struct FHBlockData {
boost::endian::little_uint64_buf_t time_ns;
boost::endian::little_uint16_buf_t tz_offset_min;
boost::endian::little_uint16_buf_t dst_offset_min;
boost::endian::l... | 26.659091 | 65 | 0.638534 | AutomotiveDevOps |
1ef2387c954bd00f8f4f0cea3ba1c849ce921e28 | 26,464 | cpp | C++ | Tools/GUILayer/UITypesBinding.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | 1 | 2016-06-01T10:41:12.000Z | 2016-06-01T10:41:12.000Z | Tools/GUILayer/UITypesBinding.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | Tools/GUILayer/UITypesBinding.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma warning(disable:4512)
#include "UITypesBinding.h"
#include "EngineForward.h"
#include "ExportedNativeTypes.h"
#include "../ToolsRig/M... | 38.022989 | 130 | 0.599607 | yorung |
1ef4549004d79180e6d815c3e1c90e953ab6bd85 | 3,651 | cpp | C++ | src/main.cpp | dniklaus/wiring-adafruit-fram-spi-test | 68d837325c512482d98f60414567764871a84fac | [
"MIT"
] | 1 | 2021-01-07T13:10:17.000Z | 2021-01-07T13:10:17.000Z | src/main.cpp | dniklaus/wiring-adafruit-fram-spi-test | 68d837325c512482d98f60414567764871a84fac | [
"MIT"
] | null | null | null | src/main.cpp | dniklaus/wiring-adafruit-fram-spi-test | 68d837325c512482d98f60414567764871a84fac | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: 15.03.2017
* Author: niklausd
*/
#include <Arduino.h>
#include <SPI.h>
#include <Adafruit_FRAM_SPI.h>
// PlatformIO libraries
#include <SerialCommand.h> // pio lib install 173, lib details see https://github.com/kroimon/Arduino-SerialCommand
#include <Timer.h> // pio... | 23.554839 | 116 | 0.676527 | dniklaus |
1ef4dd357e2c5781a5f96babebc9f2cbec703052 | 109 | hpp | C++ | src/include/randest/data_provider.hpp | renegat96/randest | 29449ff61398526cc1b88a1f003ed8fddef14693 | [
"MIT"
] | null | null | null | src/include/randest/data_provider.hpp | renegat96/randest | 29449ff61398526cc1b88a1f003ed8fddef14693 | [
"MIT"
] | null | null | null | src/include/randest/data_provider.hpp | renegat96/randest | 29449ff61398526cc1b88a1f003ed8fddef14693 | [
"MIT"
] | null | null | null | #include <randest/data_provider.tcc>
#include <randest/mem_data.hpp>
#include <randest/binary_file_data.hpp>
| 27.25 | 39 | 0.807339 | renegat96 |
1ef53ec52f3b80be3446bc57cdd8442819d20fc5 | 3,867 | cpp | C++ | src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_meathook.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_meathook.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/kalimdor/caverns_of_time/culling_of_stratholme/boss_meathook.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 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 l... | 28.021739 | 92 | 0.653737 | mfooo |
1ef79654974ecb856f0578181f16a33f388ebd9c | 10,181 | hpp | C++ | common/util/bindings.hpp | Depau/tablecloth | c073d88130eb0b50552a7cd1cf9bc1576b9936ec | [
"MIT"
] | 38 | 2018-08-06T13:12:57.000Z | 2020-12-07T22:18:48.000Z | common/util/bindings.hpp | Depau/tablecloth | c073d88130eb0b50552a7cd1cf9bc1576b9936ec | [
"MIT"
] | 5 | 2018-11-02T09:56:03.000Z | 2020-02-14T22:34:55.000Z | common/util/bindings.hpp | Depau/tablecloth | c073d88130eb0b50552a7cd1cf9bc1576b9936ec | [
"MIT"
] | 5 | 2018-10-02T08:40:56.000Z | 2020-02-11T00:55:39.000Z | #pragma once
#include <memory>
#include <variant>
namespace cloth {
template<typename T>
struct owner {
constexpr explicit owner(T* t) noexcept : _val(t) {}
constexpr explicit operator T*() noexcept
{
return _val;
}
private:
T* _val;
};
} // namespace cloth
/// Generate conversion... | 36.754513 | 100 | 0.445732 | Depau |
1ef92e66563339e725e9db1ddd5944d44ce3bc82 | 1,548 | cpp | C++ | Source/OpenGL/GLBuffer.cpp | ShenMian/Graphics | 729364ede3218a236051d3c1e74779021869d363 | [
"Apache-2.0"
] | 20 | 2021-12-10T05:45:00.000Z | 2022-03-28T00:18:11.000Z | Source/OpenGL/GLBuffer.cpp | ShenMian/Graphics | 729364ede3218a236051d3c1e74779021869d363 | [
"Apache-2.0"
] | 8 | 2021-12-10T08:55:03.000Z | 2022-03-09T00:51:35.000Z | Source/OpenGL/GLBuffer.cpp | ShenMian/Graphics | 729364ede3218a236051d3c1e74779021869d363 | [
"Apache-2.0"
] | 2 | 2021-11-13T12:02:29.000Z | 2021-12-03T05:02:19.000Z | // Copyright 2021 ShenMian
// License(Apache-2.0)
#include "GLBuffer.h"
#include "GLCheck.h"
#include <cassert>
#include <cstring>
#include <unordered_map>
namespace
{
std::unordered_map<Buffer::Type, uint32_t> GLType = {
{Buffer::Type::Vertex, GL_ARRAY_BUFFER},
{Buffer::Type::Index, GL_ELEMENT_ARRAY_BUFFER},
{B... | 18.428571 | 58 | 0.702842 | ShenMian |
1efaa02d80c4ec972f788dbdf9a4ee1d557db82e | 10,545 | cpp | C++ | TVGameShow/software/CFGTOOLDlg.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | TVGameShow/software/CFGTOOLDlg.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | TVGameShow/software/CFGTOOLDlg.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z | // CFGTOOLDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CFGTOOL.h"
#include "CFGTOOLDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define LOAD_DATA_MSG 1
#define MAX_DIGIT 12
BYTE buffer[MAX_DIGIT] = {0x00}... | 24.811765 | 84 | 0.631958 | cuongquay |
1efb8a0e9adc57f201e55f6f0b98d8c18778cbf0 | 655 | cc | C++ | aoj/2/2301.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | 1 | 2015-04-17T09:54:23.000Z | 2015-04-17T09:54:23.000Z | aoj/2/2301.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | aoj/2/2301.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
double P, E, T;
double solve(int K, double L, double R)
{
const double H = (L + R)/2.0;
if (K == 0) {
if (fabs(T - H) < E) {
return 1.0;
} else {
return 0.0;
}
}
if (R < T-E || T+E < L) {
return 0.0;
} e... | 15.595238 | 57 | 0.456489 | eagletmt |
48059fdf25cff4c9b709a417fc77d2503a8c5fc3 | 782 | cpp | C++ | reduce/central_limit.cpp | Fernal73/MPI | 5e4b772bfa0e19ff0b5566968bfae5e5d780c227 | [
"MIT"
] | null | null | null | reduce/central_limit.cpp | Fernal73/MPI | 5e4b772bfa0e19ff0b5566968bfae5e5d780c227 | [
"MIT"
] | null | null | null | reduce/central_limit.cpp | Fernal73/MPI | 5e4b772bfa0e19ff0b5566968bfae5e5d780c227 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <mpi.h>
using namespace std;
int main(int argc, char **argv) {
MPI_Init(&argc, &argv);
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
constexpr int buffer_count = 5000;
float buffer[buffer_count];
memset(buffer,... | 24.4375 | 70 | 0.62532 | Fernal73 |
4805c2f7327658e3143b07363565bc5f92c43818 | 4,790 | cpp | C++ | src/Semantic/check missing return.cpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | 10 | 2018-06-20T05:12:59.000Z | 2021-11-23T02:56:04.000Z | src/Semantic/check missing return.cpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | null | null | null | src/Semantic/check missing return.cpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | null | null | null | //
// check missing return.cpp
// STELA
//
// Created by Indi Kernick on 12/12/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#include "check missing return.hpp"
#include "scope lookup.hpp"
using namespace stela;
namespace {
class Visitor final : public ast::Visitor {
public:
explicit Visitor(... | 25.343915 | 103 | 0.573695 | Kerndog73 |
48060382023e744db14683300891dcbbbbc883d5 | 9,770 | cpp | C++ | Software/OOP/Version 2/Soccer_Simulation_v2/Classes/Camera.cpp | Brenocq/SoccerOpenRCJ | 1711e251861c124e49df21abb63eb169569bea4f | [
"MIT"
] | 2 | 2019-05-02T23:01:06.000Z | 2019-05-11T01:29:06.000Z | Software/OOP/Version 2/Soccer_Simulation_v2/Classes/Camera.cpp | Brenocq/SoccerOpenRCJ | 1711e251861c124e49df21abb63eb169569bea4f | [
"MIT"
] | null | null | null | Software/OOP/Version 2/Soccer_Simulation_v2/Classes/Camera.cpp | Brenocq/SoccerOpenRCJ | 1711e251861c124e49df21abb63eb169569bea4f | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// Camera.cpp
// Implementation of the Class Camera
// Created on: 21-mar-2018 21:46:56
// Original author: Breno Queiroz
///////////////////////////////////////////////////////////
#include "Camera.h"
#if !defined(ARDUINO)
#include <ios... | 27.755682 | 156 | 0.649949 | Brenocq |
4806568eb5c5e9c717e90d55e0ec7a96409bd50e | 5,465 | hpp | C++ | src/vlGraphics/EdgeUpdateCallback.hpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | src/vlGraphics/EdgeUpdateCallback.hpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | src/vlGraphics/EdgeUpdateCallback.hpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary.org ... | 47.112069 | 140 | 0.507045 | zpc930 |
480779afd2cdd1dfb5a4ebd00e961fb057db8e51 | 3,344 | cpp | C++ | libraries/audio/src/AudioEffectOptions.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | 1 | 2015-03-11T19:49:20.000Z | 2015-03-11T19:49:20.000Z | libraries/audio/src/AudioEffectOptions.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/audio/src/AudioEffectOptions.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | //
// AudioEffectOptions.cpp
// libraries/audio/src
//
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AudioEffectOptions.h"
static const QString MAX_ROOM_SIZE_HANDL... | 37.573034 | 94 | 0.700957 | ey6es |
48081e868788e0ee93c3e3e089e42fab2d22bd84 | 720 | cpp | C++ | hiro/gtk/widget/icon-view-item.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | hiro/gtk/widget/icon-view-item.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | hiro/gtk/widget/icon-view-item.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | #if defined(Hiro_IconView)
namespace hiro {
auto pIconViewItem::construct() -> void {
}
auto pIconViewItem::destruct() -> void {
}
auto pIconViewItem::setIcon(const image& icon) -> void {
if(auto parent = _parent()) {
parent->setItemIcon(self().offset(), icon);
}
}
auto pIconViewItem::setSelected(bool sele... | 19.459459 | 66 | 0.663889 | CasualPokePlayer |
4809458e29be353bc0bf673acb7e29177aa27e05 | 32,064 | cpp | C++ | src/gpg_multiplayer.cpp | isabella232/pienoon | a721180de4d9de3696af3b3734d1ad269975b111 | [
"Apache-2.0",
"MIT"
] | 323 | 2015-01-05T10:16:13.000Z | 2022-03-26T06:49:33.000Z | src/gpg_multiplayer.cpp | google/pienoon | a721180de4d9de3696af3b3734d1ad269975b111 | [
"Apache-2.0"
] | 1 | 2021-07-12T13:36:14.000Z | 2021-07-12T13:36:14.000Z | src/gpg_multiplayer.cpp | isabella232/pienoon | a721180de4d9de3696af3b3734d1ad269975b111 | [
"Apache-2.0",
"MIT"
] | 95 | 2015-01-02T12:01:31.000Z | 2022-03-27T18:57:09.000Z | // Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 36.067492 | 80 | 0.683103 | isabella232 |
48096ad7d2fb39deb394920b266dff9a8c83229c | 3,733 | hpp | C++ | include/bulk/partitionings/block.hpp | roelhem/Bulk | 8a84bb8cf0a71a5d67ed6ffd818f072d9076630f | [
"MIT"
] | 92 | 2016-05-11T14:26:04.000Z | 2022-01-07T03:54:19.000Z | include/bulk/partitionings/block.hpp | roelhem/Bulk | 8a84bb8cf0a71a5d67ed6ffd818f072d9076630f | [
"MIT"
] | 6 | 2016-05-15T05:58:47.000Z | 2020-11-25T15:29:26.000Z | include/bulk/partitionings/block.hpp | roelhem/Bulk | 8a84bb8cf0a71a5d67ed6ffd818f072d9076630f | [
"MIT"
] | 13 | 2016-05-14T11:14:14.000Z | 2022-01-25T10:17:24.000Z | #include "partitioning.hpp"
namespace bulk {
/**
* A block distribution. This equally block-distributes the first G axes.
*/
template <int D, int G = D>
class block_partitioning : public rectangular_partitioning<D, G> {
public:
using rectangular_partitioning<D, G>::local_size;
using rectangular_partitioning<D,... | 29.864 | 78 | 0.587999 | roelhem |
48099fb01e53902dbb585e37eba837e8dce47af8 | 31,219 | cpp | C++ | src/mongo/db/mongod_options.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/mongod_options.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/mongod_options.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 42.130904 | 100 | 0.614434 | benety |
480c577f2bc6940629b26193af2f1b98eb1ec2fa | 10,452 | cxx | C++ | cmake-2.8.10.1/Source/cmGlobalVisualStudio10Generator.cxx | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | cmake-2.8.10.1/Source/cmGlobalVisualStudio10Generator.cxx | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | cmake-2.8.10.1/Source/cmGlobalVisualStudio10Generator.cxx | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | /*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This softwa... | 35.794521 | 78 | 0.626483 | vidkidz |
480e2169317faac8bddff0ca86cafdb8233d130c | 1,746 | cpp | C++ | Dev/SourcesEngine/Gugu/Element/2D/ElementSFDrawable.cpp | Legulysse/gugu-engine | 0014f85f27f378f4490918638fcc747367e82243 | [
"Zlib"
] | 15 | 2018-06-30T12:02:03.000Z | 2022-02-16T00:23:45.000Z | Dev/SourcesEngine/Gugu/Element/2D/ElementSFDrawable.cpp | Legulysse/gugu-engine | 0014f85f27f378f4490918638fcc747367e82243 | [
"Zlib"
] | null | null | null | Dev/SourcesEngine/Gugu/Element/2D/ElementSFDrawable.cpp | Legulysse/gugu-engine | 0014f85f27f378f4490918638fcc747367e82243 | [
"Zlib"
] | 1 | 2018-07-26T22:40:20.000Z | 2018-07-26T22:40:20.000Z | ////////////////////////////////////////////////////////////////
// Header
#include "Gugu/Common.h"
#include "Gugu/Element/2D/ElementSFDrawable.h"
////////////////////////////////////////////////////////////////
// Includes
#include "Gugu/Window/Renderer.h"
#include "Gugu/System/SystemUtility.h"
#includ... | 23.28 | 99 | 0.607102 | Legulysse |
481058c0407f8b60a4e2ff8fa43946ed39285ac8 | 1,738 | cc | C++ | cpp/Score_permutation.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 258 | 2016-07-18T03:28:15.000Z | 2021-12-05T09:08:44.000Z | cpp/Score_permutation.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 7 | 2016-08-13T22:12:29.000Z | 2022-02-25T17:50:11.000Z | cpp/Score_permutation.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 154 | 2016-07-18T06:29:24.000Z | 2021-09-20T18:33:05.000Z | // Copyright (c) 2013 Elements of Programming Interviews. All rights reserved.
#include <cassert>
#include <iostream>
#include <random>
#include <vector>
using std::cout;
using std::default_random_engine;
using std::endl;
using std::random_device;
using std::uniform_int_distribution;
using std::vector;
// @include
i... | 25.940299 | 78 | 0.628308 | powernit |
4810dc57efded153cc58025a7b7ead6e5999d4e8 | 3,826 | cpp | C++ | SDKs/CryCode/3.6.15/CryEngine/CryAction/VehicleSystem/VehicleDamageBehaviorAISignal.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.8.1/CryEngine/CryAction/VehicleSystem/VehicleDamageBehaviorAISignal.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.8.1/CryEngine/CryAction/VehicleSystem/VehicleDamageBehaviorAISignal.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | /*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2006.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description: Implements a damage behavior which send an AI signal
--------------------------... | 26.943662 | 120 | 0.653424 | amrhead |
48125ad0a671cb50bf7bb151cdbd99db6bfeb1a6 | 3,835 | cpp | C++ | Advanced Algorithms and Complexity/Coping with NP-complete problems/maximise_weight.cpp | OssamaEls/Data-Structures-and-Algorithms | b6affc28a792f577010e666d565ec6cc7f0ecbfa | [
"MIT"
] | null | null | null | Advanced Algorithms and Complexity/Coping with NP-complete problems/maximise_weight.cpp | OssamaEls/Data-Structures-and-Algorithms | b6affc28a792f577010e666d565ec6cc7f0ecbfa | [
"MIT"
] | null | null | null | Advanced Algorithms and Complexity/Coping with NP-complete problems/maximise_weight.cpp | OssamaEls/Data-Structures-and-Algorithms | b6affc28a792f577010e666d565ec6cc7f0ecbfa | [
"MIT"
] | null | null | null | //Input Format.The first line contains an integer 𝑛 — the number of people in the company.The next line
//contains 𝑛 numbers 𝑓𝑖 — the fun factors of each of the 𝑛 people in the company.Each of the next 𝑛−1
//lines describes the subordination structure.Everyone but for the CEO of the company has exactly one
//dir... | 29.5 | 116 | 0.59661 | OssamaEls |
4815fcc9841fd2f3e523841e8749cd62ecf0fd64 | 4,359 | cpp | C++ | tests/src/nearest_neighbors/visible_proximity_tests.cpp | falcowinkler/flockingbird | eed3e7cead4a37635625d1055fb0a830e6152d1b | [
"MIT"
] | 2 | 2021-05-30T19:19:50.000Z | 2021-08-29T05:58:21.000Z | tests/src/nearest_neighbors/visible_proximity_tests.cpp | falcowinkler/flockingbird | eed3e7cead4a37635625d1055fb0a830e6152d1b | [
"MIT"
] | null | null | null | tests/src/nearest_neighbors/visible_proximity_tests.cpp | falcowinkler/flockingbird | eed3e7cead4a37635625d1055fb0a830e6152d1b | [
"MIT"
] | 1 | 2021-12-01T07:00:49.000Z | 2021-12-01T07:00:49.000Z | #include "nearest_neighbors/nanoflann.hpp"
#include "nearest_neighbors/visible_proximity.hpp"
#include "utility/random_numbers.hpp"
#include "gtest/gtest.h"
#include <cmath>
#include <cstdlib>
#include <vector>
using namespace nanoflann;
using namespace flockingbird;
class VisibleProximityTest : public ::testing::Tes... | 36.325 | 99 | 0.666208 | falcowinkler |
4818223e907164f123db5669c2d9396977ef78db | 3,431 | cpp | C++ | src/Library/Shaders/TransparencyShaderOp.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/Shaders/TransparencyShaderOp.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/Shaders/TransparencyShaderOp.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// TransparencyShaderOp.cpp - Implementation of the TransparencyShaderOp class
//
// Author: Aravind Krishnaswamy
// Date of Birth: March 8, 2005
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
... | 33.637255 | 97 | 0.67269 | aravindkrishnaswamy |
48187e95fce3b2a0d60dc195260dc6f30eeb228f | 2,864 | cc | C++ | zircon/system/dev/block/as370-sdhci/as370-sdhci.cc | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | zircon/system/dev/block/as370-sdhci/as370-sdhci.cc | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | null | null | null | zircon/system/dev/block/as370-sdhci/as370-sdhci.cc | winksaville/Fuchsia | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.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 "as370-sdhci.h"
#include <lib/device-protocol/pdev.h>
#include <memory>
#include <ddk/binding.h>
#include <ddk/debug.h>
#include <ddk/platform-... | 27.27619 | 100 | 0.698324 | winksaville |
481a1e888edeec4886eee0735473addf22e87086 | 11,722 | cpp | C++ | src/robot/devices/externalFileClass.cpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | null | null | null | src/robot/devices/externalFileClass.cpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | 3 | 2019-07-26T15:56:19.000Z | 2019-07-29T02:55:32.000Z | src/robot/devices/externalFileClass.cpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | null | null | null | #include "externalFileClass.hpp"
bool ExternalFile::SDCardIsInserted(){
std::fstream m_file;
m_file.open("/usd/.PROS_SD_Detection/SD_Card.txt", std::ios::app);
m_file.close();
m_file.open("/usd/.PROS_SD_Detection/SD_Card.txt", std::ios::in);
if(m_file.is_open()){
m_file.close();
return true;
}... | 35.095808 | 115 | 0.649548 | 1069B |
481d74ac07a63be9e04420ce81ed6a85c7a87c44 | 551 | cpp | C++ | 55. Jump Game| LIS variant.cpp | i-am-grut/Leetcode-top-interview-q | 5f763f9a15558a1bfef62d860a4fe89326eee450 | [
"MIT"
] | 2 | 2021-06-25T07:26:30.000Z | 2021-07-14T05:46:57.000Z | 55. Jump Game| LIS variant.cpp | i-am-grut/Leetcode-top-interview-q | 5f763f9a15558a1bfef62d860a4fe89326eee450 | [
"MIT"
] | null | null | null | 55. Jump Game| LIS variant.cpp | i-am-grut/Leetcode-top-interview-q | 5f763f9a15558a1bfef62d860a4fe89326eee450 | [
"MIT"
] | null | null | null | class Solution {
public:
bool canJump(vector<int>& nums) {
int n=nums.size();
if(n==0 || n==1){
return true;
}
if(nums[0]==0){
return false;
}
bool dp[n];
dp[0]=true;
//LIS
for(int i=1;i<n;i++){
dp[... | 20.407407 | 49 | 0.321234 | i-am-grut |
481eb51151b2c71d48f3439b321aff841c45f75f | 6,222 | cpp | C++ | sunglasses/src/Physics/GJKAlgorithm.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | 1 | 2016-04-01T02:21:27.000Z | 2016-04-01T02:21:27.000Z | sunglasses/src/Physics/GJKAlgorithm.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | 49 | 2015-07-08T13:48:06.000Z | 2017-06-27T01:40:51.000Z | sunglasses/src/Physics/GJKAlgorithm.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | null | null | null | // Copyright 2016 Jonathan Buchanan.
// This file is part of Sunglasses, which is licensed under the MIT License.
// See LICENSE.md for details.
#include <sunglasses/Physics/GJKAlgorithm.h>
#include <iostream>
namespace sunglasses {
glm::vec3 getFarthestPointAlongAxis(PhysicsColliderMesh *mesh, glm::vec3 axis) {
... | 29.628571 | 112 | 0.612022 | jonathanbuchanan |
481ed80201f82ef25036bd11ae8d6b31cc62cb4b | 3,072 | cpp | C++ | artifact/storm/src/storm/utility/builder.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/utility/builder.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/utility/builder.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include <storm/models/sparse/StochasticTwoPlayerGame.h>
#include "storm/utility/builder.h"
#include "storm/models/sparse/Dtmc.h"
#include "storm/models/sparse/Ctmc.h"
#include "storm/models/sparse/Mdp.h"
#include "storm/models/sparse/Pomdp.h"
#include "storm/models/sparse/MarkovAutomaton.h"
#include "storm/exception... | 73.142857 | 320 | 0.681641 | glatteis |
48212a1472ffd40fc0488b5f9d61fc9fa7296d10 | 3,041 | cpp | C++ | libraries/chain/evaluator.cpp | 1aerostorm/golos | 06105e960537347bee7c4657e0b63c85adfff26f | [
"MIT"
] | 8 | 2019-03-29T10:44:05.000Z | 2019-11-01T12:06:57.000Z | libraries/chain/evaluator.cpp | 1aerostorm/golos | 06105e960537347bee7c4657e0b63c85adfff26f | [
"MIT"
] | 63 | 2019-12-29T18:26:15.000Z | 2021-08-25T13:14:25.000Z | libraries/chain/evaluator.cpp | 1aerostorm/golos | 06105e960537347bee7c4657e0b63c85adfff26f | [
"MIT"
] | 5 | 2019-04-11T17:58:55.000Z | 2019-10-27T16:24:21.000Z | #include <golos/chain/evaluator.hpp>
#include <golos/chain/database.hpp>
#include <golos/chain/account_object.hpp>
#include <golos/chain/steem_objects.hpp>
namespace golos { namespace chain {
asset get_balance(const database& _db, const account_object &account, balance_type type, asset_symbol_type symbol) {
... | 47.515625 | 124 | 0.542914 | 1aerostorm |
48218bcc6c1635295fbbefa0cc4105edc15745de | 719 | cpp | C++ | src/attic/BezierCurve.cpp | mgerhardy/myplayground | ad5ed00e7946108f2991ad9031096da161f2e6a7 | [
"MIT"
] | 1 | 2018-01-18T20:09:47.000Z | 2018-01-18T20:09:47.000Z | src/attic/BezierCurve.cpp | mgerhardy/myplayground | ad5ed00e7946108f2991ad9031096da161f2e6a7 | [
"MIT"
] | null | null | null | src/attic/BezierCurve.cpp | mgerhardy/myplayground | ad5ed00e7946108f2991ad9031096da161f2e6a7 | [
"MIT"
] | null | null | null | #include "BezierCurve.h"
#include "engine/common/Math.h"
#include <assert.h>
BezierCurve::BezierCurve ()
{
}
BezierCurve::~BezierCurve ()
{
}
float BezierCurve::lerp (const double a, const double b, const double t)
{
const double p = a + (b - a) * t;
return p;
}
float BezierCurve::bezier (const Points& points, co... | 17.975 | 72 | 0.641168 | mgerhardy |
4827b63227ac1ae126081fcbed824c8e9077ca0c | 164,620 | cpp | C++ | vulkanon/generator/tmp/05-gen-callingvector/vulkanon/l0_boss5-left.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | 5 | 2020-04-20T02:28:15.000Z | 2021-12-05T22:04:06.000Z | vulkanon/generator/tmp/05-gen-callingvector/vulkanon/l0_boss5-left.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | vulkanon/generator/tmp/05-gen-callingvector/vulkanon/l0_boss5-left.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | extern const BulletStepFunc bullet_7381bc6f43eb422d458a2239f53566ea_8bfcd38de5961107785fdc25e687ca15[] = {
stepfunc_efe2c0d124d296be77286f5d11e9f0b8_8bfcd38de5961107785fdc25e687ca15,
stepfunc_0fdd59aa50ca3c3515c1b7e88bbab930_8bfcd38de5961107785fdc25e687ca15,
NULL};
extern const BulletStepFunc bullet_7ec1b7e792d02c73b... | 75.931734 | 107 | 0.973539 | pqrs-org |
482e60d05b4432939cb7c915d0fa77c36b23effb | 1,106 | cpp | C++ | 01.SaralySystem/src/transaction/add_commissioned_employee.cpp | tomoyuki-nakabayashi/AgileSoftwareDevelopment | b162a24b2c12bdaeeed4f1b618e92d33e759318c | [
"MIT"
] | null | null | null | 01.SaralySystem/src/transaction/add_commissioned_employee.cpp | tomoyuki-nakabayashi/AgileSoftwareDevelopment | b162a24b2c12bdaeeed4f1b618e92d33e759318c | [
"MIT"
] | 1 | 2018-03-27T12:18:38.000Z | 2018-04-18T12:15:36.000Z | 01.SaralySystem/src/transaction/add_commissioned_employee.cpp | tomoyuki-nakabayashi/AgileSoftwareDevelopment | b162a24b2c12bdaeeed4f1b618e92d33e759318c | [
"MIT"
] | null | null | null | // Copyright <2018> Tomoyuki-Nakabayashi
// This software is released under the MIT License, see LICENSE.
#include <transaction/add_commissioned_employee.h>
#include <payroll_domain/commissioned_classification.h>
#include <payroll_domain/biweekly_schedule.h>
namespace transaction {
using payroll_domain::CommissionedC... | 35.677419 | 81 | 0.669982 | tomoyuki-nakabayashi |
48312cbfad28db1b270bd75377e093e82b6d30f3 | 1,994 | cpp | C++ | src/base/CamelReaderWriterQueueWL.cpp | nneesshh/netsystem | 8ff391f38ebba07fb83edc8581d7203134012feb | [
"Apache-2.0"
] | null | null | null | src/base/CamelReaderWriterQueueWL.cpp | nneesshh/netsystem | 8ff391f38ebba07fb83edc8581d7203134012feb | [
"Apache-2.0"
] | null | null | null | src/base/CamelReaderWriterQueueWL.cpp | nneesshh/netsystem | 8ff391f38ebba07fb83edc8581d7203134012feb | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
// CamelReaderWriterQueueWL.cpp
// (C) 2016 n.lee
//------------------------------------------------------------------------------
#include "CamelReaderWriterQueueWL.h"
#include "platform_utilities.h"
#ifdef _WIN32
# define WIN32_LEAN... | 20.141414 | 85 | 0.490973 | nneesshh |
4838143530d158a17848e6fbac3a0c84b9a5d0d1 | 1,545 | cpp | C++ | src/ioobject.cpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | 2 | 2020-04-24T15:07:33.000Z | 2020-06-12T07:01:53.000Z | src/ioobject.cpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | null | null | null | src/ioobject.cpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Ivan Ryabov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 31.530612 | 80 | 0.616828 | abbyssoul |
4839df4259064d37c9fa66ac7ecc18fe920df6d9 | 559 | cpp | C++ | BAC/exercises/ch8/UVa10954.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch8/UVa10954.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch8/UVa10954.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa10954 Add All
// Rujia Liu
// 题意:有n个数的集合S,每次可以从S中删除两个数,然后把它们的和放回集合,直到剩一个数。每次操作的开销等于删除的两个数之和。求最小总开销。
// 算法:Huffman编码
#include<cstdio>
#include<queue>
using namespace std;
int main() {
int n, x;
while(scanf("%d", &n) == 1 && n) {
priority_queue<int, vector<int>, greater<int> > q;
for(int i = 0; i < n; ... | 22.36 | 72 | 0.531306 | Anyrainel |
483a6f49df9f84078f07a23dbc3ecfcc4034026c | 348 | cpp | C++ | invertedNestedLoops2.cpp | yishenli/learncpp | 734a3ef753b32a3252b731d7e370b808fcf79a6b | [
"MIT"
] | null | null | null | invertedNestedLoops2.cpp | yishenli/learncpp | 734a3ef753b32a3252b731d7e370b808fcf79a6b | [
"MIT"
] | null | null | null | invertedNestedLoops2.cpp | yishenli/learncpp | 734a3ef753b32a3252b731d7e370b808fcf79a6b | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
const int max = 9;
int outer = 1;
while (outer <= max)
{
for (int i = 0; i < max - outer; ++i)
{
std::cout << " ";
}
int inner = 1;
while (inner <= outer)
{
std::cout << inner << ' ';
++inner;
}
std::cout << '\n';
++outer... | 12.888889 | 41 | 0.408046 | yishenli |
483b59bf1d67d39d4204b480123f6ad2f3cca821 | 2,295 | cpp | C++ | src/libs/dios_util/src/util_timer.cpp | dios-game/dios | ce947382bcc8692ea70533d6def112a2838a9d0e | [
"MIT"
] | 1 | 2016-05-25T02:57:02.000Z | 2016-05-25T02:57:02.000Z | src/libs/dios_util/src/util_timer.cpp | dios-game/dios | ce947382bcc8692ea70533d6def112a2838a9d0e | [
"MIT"
] | null | null | null | src/libs/dios_util/src/util_timer.cpp | dios-game/dios | ce947382bcc8692ea70533d6def112a2838a9d0e | [
"MIT"
] | 1 | 2021-04-17T16:06:00.000Z | 2021-04-17T16:06:00.000Z |
#include "precompiled.h"
#include "util_timer.h"
NS_DS_BEGIN
NS_UTIL_BEGIN
#if ( DS_TARGET_PLATFORM == DS_PLATFORM_WIN32 )
class WinMicroTimer
{
public:
WinMicroTimer( void ) {
QueryPerformanceFrequency( (LARGE_INTEGER*)(&m_frequency) );
m_frequency = m_frequency / 1000000;
}
inline ds_uint64 getMicroSecond(... | 22.95 | 127 | 0.741612 | dios-game |
483f2f935ea9bb8a2fcd2cc98eec67bf3b2e90ec | 11,343 | cc | C++ | mindspore/ccsrc/plugin/device/cpu/kernel/fractional_max_pool3d_grad_with_fixed_ksize_cpu_kernel.cc | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | mindspore/ccsrc/plugin/device/cpu/kernel/fractional_max_pool3d_grad_with_fixed_ksize_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/cpu/kernel/fractional_max_pool3d_grad_with_fixed_ksize_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Huawei Technologies 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... | 45.372 | 119 | 0.664903 | httpsgithu |
c617798ac904d56e48a37c30273eadb25eee3ae2 | 6,897 | cpp | C++ | examples/logreg.cpp | haptork/easyLambda | 2a8cae9c6e26517e301b5aa6f9c1518aa5a22417 | [
"BSL-1.0"
] | 537 | 2016-03-15T09:26:41.000Z | 2022-01-18T02:44:56.000Z | examples/logreg.cpp | haptork/easyLambda | 2a8cae9c6e26517e301b5aa6f9c1518aa5a22417 | [
"BSL-1.0"
] | 10 | 2016-03-15T11:56:00.000Z | 2019-11-14T20:01:47.000Z | examples/logreg.cpp | haptork/easyLambda | 2a8cae9c6e26517e301b5aa6f9c1518aa5a22417 | [
"BSL-1.0"
] | 55 | 2016-03-15T11:53:07.000Z | 2020-12-27T02:53:21.000Z | /*!
* @file
* An example of logistic regression training and testing.
* The data is taken from:
*
* command to run:
* mpirung -n 4 ./bin/logreg "data/logreg/train.csv"
*
* For running on some different data-set specify the columns etc. in `fromFile`
* Also change the `D` parameter and inFile variable.
* Testi... | 38.316667 | 80 | 0.46484 | haptork |
c61c06a60cbab435911aaf510ce4d13adeea461a | 1,639 | cc | C++ | cpp/Max_difference_unlimited_pairs.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 258 | 2016-07-18T03:28:15.000Z | 2021-12-05T09:08:44.000Z | cpp/Max_difference_unlimited_pairs.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 7 | 2016-08-13T22:12:29.000Z | 2022-02-25T17:50:11.000Z | cpp/Max_difference_unlimited_pairs.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 154 | 2016-07-18T06:29:24.000Z | 2021-09-20T18:33:05.000Z | // Copyright (c) 2013 Elements of Programming Interviews. All rights reserved.
#include <cassert>
#include <iostream>
#include <limits>
#include <random>
#include <vector>
using std::cout;
using std::default_random_engine;
using std::endl;
using std::numeric_limits;
using std::random_device;
using std::uniform_int_di... | 22.452055 | 78 | 0.586333 | powernit |
c61c69c6b974c2fd62a077ae3a621f286c6f3ebf | 26,670 | cpp | C++ | win/devkit/plug-ins/gpuCache/gpuCacheSample.cpp | leegoonz/Maya-devkit | b81fe799b58e854e4ef16435426d60446e975871 | [
"ADSL"
] | 10 | 2018-03-30T16:09:02.000Z | 2021-12-07T07:29:19.000Z | win/devkit/plug-ins/gpuCache/gpuCacheSample.cpp | leegoonz/Maya-devkit | b81fe799b58e854e4ef16435426d60446e975871 | [
"ADSL"
] | null | null | null | win/devkit/plug-ins/gpuCache/gpuCacheSample.cpp | leegoonz/Maya-devkit | b81fe799b58e854e4ef16435426d60446e975871 | [
"ADSL"
] | 9 | 2018-06-02T09:18:49.000Z | 2021-12-20T09:24:35.000Z | //-
//**************************************************************************/
// Copyright 2015 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies thi... | 30.067644 | 118 | 0.541395 | leegoonz |
c61fefb57288bfadbe5fb89cf78c995d48351ae8 | 17,082 | cpp | C++ | src/core/graphics/basic_renderer.cpp | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 2 | 2018-05-21T02:12:50.000Z | 2019-04-23T20:56:00.000Z | src/core/graphics/basic_renderer.cpp | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 12 | 2018-05-30T13:15:25.000Z | 2020-02-02T21:29:42.000Z | src/core/graphics/basic_renderer.cpp | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 2 | 2018-06-14T19:03:29.000Z | 2018-12-30T07:37:22.000Z | #include "basic_renderer.h"
#include "ecs.h"
#include "gtx/string_cast.hpp"
namespace Engine {
char light_pass_vert[] = " \
#version 330 core\n \
... | 57.130435 | 136 | 0.406451 | Caravetta |
c6216a733e5a42023596134d2f5ad5324d3f092f | 15,480 | hpp | C++ | include/Types.hpp | scribelang/scribe | 8b82ed839e290c1204928dcd196237c6cd6000ba | [
"MIT"
] | 2 | 2021-12-01T06:45:58.000Z | 2021-12-01T07:30:52.000Z | include/Types.hpp | scribelang/scribe | 8b82ed839e290c1204928dcd196237c6cd6000ba | [
"MIT"
] | null | null | null | include/Types.hpp | scribelang/scribe | 8b82ed839e290c1204928dcd196237c6cd6000ba | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2022 Scribe Language Repositories
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, mod... | 23.85208 | 93 | 0.691085 | scribelang |
c621ff4fd2aecfd1ca1209c8f0b71cc9d0d1689a | 1,389 | cpp | C++ | test/function/scalar/asinpi.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/asinpi.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/asinpi.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
Copyright 2015 NumScale SAS
Copyright 2015 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=====... | 32.302326 | 100 | 0.595392 | yaeldarmon |
c622a8c7367790c9c0e76b440ce73da8ce00645d | 1,719 | cpp | C++ | code/C/num2en.cpp | LingfengPang/C-C-learning | 4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641 | [
"MIT"
] | 4 | 2021-04-16T02:20:25.000Z | 2021-10-04T12:22:35.000Z | code/C/num2en.cpp | LingfengPang/C-C-learning | 4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641 | [
"MIT"
] | null | null | null | code/C/num2en.cpp | LingfengPang/C-C-learning | 4ad4a8f56f1ed06622c4b6f4cd0749c0541b7641 | [
"MIT"
] | 2 | 2022-01-08T06:30:20.000Z | 2022-03-26T08:39:20.000Z | #include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main(){
//num是一个两位数
int num;
string res;
cin >> num;
if(num < 10||num>99){
return 0;
}
int _1stdig = num/10;
int _2nddig = num%10;
if(num == 10){
cout <<"ten"<<endl;
}
switch (... | 22.038462 | 39 | 0.481094 | LingfengPang |
c6270adb490cf5d2a69bec5a9f03a03d22840976 | 627 | hpp | C++ | library/ATF/_trap_create_setdata.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_trap_create_setdata.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_trap_create_setdata.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 <CPlayer.hpp>
#include <_character_create_setdata.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct _trap_create_setdata : _character_create_setda... | 27.26087 | 108 | 0.708134 | lemkova |
c628648dd45076ff7bda737c34dfbd5d603ce0e3 | 4,277 | cxx | C++ | Accelerators/Vtkm/vtkmlib/ImageDataConverter.cxx | michaelchanwahyan/vtk-8.1.2 | 243225b750443f76dcb119c1bb8e72d41e505bc0 | [
"BSD-3-Clause"
] | 2 | 2017-12-08T07:50:51.000Z | 2018-07-22T19:12:56.000Z | Accelerators/Vtkm/vtkmlib/ImageDataConverter.cxx | sakjain92/VTK | 1c32f7a180e2750d4678744d7fc47a00f0eb4780 | [
"BSD-3-Clause"
] | 1 | 2019-06-03T17:04:59.000Z | 2019-06-05T15:13:28.000Z | Accelerators/Vtkm/vtkmlib/ImageDataConverter.cxx | sakjain92/VTK | 1c32f7a180e2750d4678744d7fc47a00f0eb4780 | [
"BSD-3-Clause"
] | 1 | 2020-07-20T06:43:49.000Z | 2020-07-20T06:43:49.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: ImageDataConverter.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software... | 32.648855 | 86 | 0.630348 | michaelchanwahyan |