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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6280a98ff22c0548bdbdd060c86e9039300845d5 | 2,367 | cpp | C++ | School C++/Display10_10/Palindrome.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | School C++/Display10_10/Palindrome.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | School C++/Display10_10/Palindrome.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | //Test for Palindrom property.
//Display 10.10
//Adam Holt
#include <iostream>
#include <string>
#include <ctype.h>
using namespace std;
void swqp(char& lhs,char &rhs);
//swaps char args corresponding to parameters lhs and rhs
string reverse(const string& str);
//retuns a copy of arg corresponding to parameter
//st... | 21.324324 | 61 | 0.703845 | holtsoftware |
62810dd1d08578c5649c05c60a1a86eb841462a3 | 563 | cpp | C++ | fw/system/display_object.cpp | stefan-misik/ws2812-controller | eb5d091bb360c888e687a30413ea474e641c89ce | [
"MIT"
] | null | null | null | fw/system/display_object.cpp | stefan-misik/ws2812-controller | eb5d091bb360c888e687a30413ea474e641c89ce | [
"MIT"
] | null | null | null | fw/system/display_object.cpp | stefan-misik/ws2812-controller | eb5d091bb360c888e687a30413ea474e641c89ce | [
"MIT"
] | null | null | null | #include "system/display_object.hpp"
namespace system
{
uint8_t DisplayObject::processEvent(const Event & event, Event * new_event)
{
return EventResult::EVENT_NOT_PROCESSED;
}
void DisplayObject::draw(DrawContext & dc)
{
const uint8_t width = dc.drawArea().width();
const uint8_t height = dc.drawArea().h... | 20.107143 | 75 | 0.584369 | stefan-misik |
6282eed5f049f3edffad889963aca0e381a4ab46 | 612 | cc | C++ | tools/patch/tfs/util/retrier.cc | Cuda-GDB/tensorrt-inference-server | 71376ccb1244ed9707b8d81e479e165c152b5767 | [
"BSD-3-Clause"
] | 2 | 2021-06-01T09:27:12.000Z | 2021-09-18T22:33:08.000Z | tools/patch/tfs/util/retrier.cc | Cuda-GDB/tensorrt-inference-server | 71376ccb1244ed9707b8d81e479e165c152b5767 | [
"BSD-3-Clause"
] | null | null | null | tools/patch/tfs/util/retrier.cc | Cuda-GDB/tensorrt-inference-server | 71376ccb1244ed9707b8d81e479e165c152b5767 | [
"BSD-3-Clause"
] | null | null | null | --- tensorflow_serving/util/retrier.cc 2018-05-15 13:11:26.068986416 -0700
+++ /home/david/dev/gitlab/dgx/tensorrtserver/tools/patch/tfs/util/retrier.cc 2018-10-12 12:44:37.280572118 -0700
@@ -42,7 +42,9 @@
if (is_cancelled()) {
LOG(INFO) << "Retrying of " << description << " was cancelled.";
}
- if (num_tr... | 43.714286 | 113 | 0.645425 | Cuda-GDB |
62841f0aefa1262b5e71f0c3b8d8647913cdea5c | 666 | cpp | C++ | src/MediaDataImpl.cpp | gumb0/cpp-instagram | da3286d8d0945daedb10e00011a09be98c22dcd6 | [
"MIT"
] | 11 | 2015-03-10T01:24:09.000Z | 2020-01-30T23:07:09.000Z | src/MediaDataImpl.cpp | gumb0/cpp-instagram | da3286d8d0945daedb10e00011a09be98c22dcd6 | [
"MIT"
] | 5 | 2016-03-03T09:05:09.000Z | 2016-03-03T09:16:52.000Z | src/MediaDataImpl.cpp | gumb0/cpp-instagram | da3286d8d0945daedb10e00011a09be98c22dcd6 | [
"MIT"
] | 5 | 2015-11-16T11:46:31.000Z | 2022-01-06T11:09:22.000Z | #include "MediaDataImpl.h"
#include <assert.h>
using namespace Instagram;
MediaDataImpl::MediaDataImpl(CurlPtr curl, const MediaDataInfo& info) :
mCurl(curl),
mInfo(info)
{
}
int MediaDataImpl::getWidth() const
{
return mInfo.mWidth;
}
int MediaDataImpl::getHeight() const
{
return mInfo.mHeight;
}... | 17.526316 | 80 | 0.726727 | gumb0 |
6284d086eba97a7a5afa4411d70300e53ae14d80 | 2,949 | cc | C++ | lib/goma_data_util_unittest.cc | dzeromsk/goma | 350f67319eb985013515b533f03f2f95570c37d3 | [
"BSD-3-Clause"
] | 4 | 2018-12-26T10:54:24.000Z | 2022-03-31T21:19:47.000Z | lib/goma_data_util_unittest.cc | dzeromsk/goma | 350f67319eb985013515b533f03f2f95570c37d3 | [
"BSD-3-Clause"
] | null | null | null | lib/goma_data_util_unittest.cc | dzeromsk/goma | 350f67319eb985013515b533f03f2f95570c37d3 | [
"BSD-3-Clause"
] | 1 | 2021-05-31T13:27:25.000Z | 2021-05-31T13:27:25.000Z | // Copyright 2014 The Goma 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 "lib/goma_data_util.h"
#include "gtest/gtest.h"
#include "prototmp/goma_data.pb.h"
namespace devtools_goma {
TEST(GomaProtoUtilTest, IsSameSubpro... | 23.97561 | 76 | 0.748389 | dzeromsk |
628d03cf81dd36dfeeaf4ac4a41241bf9e3cd5cd | 896 | cpp | C++ | review/src/android/ReviewAndroid.cpp | dapetcu21/extension-review | 1e9e3471ce98141016562aeec693f4cfd98a5c48 | [
"MIT"
] | 10 | 2020-11-23T21:16:56.000Z | 2022-03-07T20:17:40.000Z | review/src/android/ReviewAndroid.cpp | dapetcu21/extension-review | 1e9e3471ce98141016562aeec693f4cfd98a5c48 | [
"MIT"
] | 2 | 2020-08-12T19:34:36.000Z | 2020-10-09T22:06:36.000Z | review/src/android/ReviewAndroid.cpp | dapetcu21/extension-review | 1e9e3471ce98141016562aeec693f4cfd98a5c48 | [
"MIT"
] | 8 | 2017-10-03T12:01:35.000Z | 2020-10-09T21:06:44.000Z | #if defined(DM_PLATFORM_ANDROID)
#include "../private_review.h"
#include "jni.h"
namespace ext_review {
const char* JAR_PATH = "com/defold/review/Review";
bool isSupported() {
ThreadAttacher attacher;
JNIEnv *env = attacher.env;
jclass cls = ClassLoader(env).load(JAR_PATH);
jmethodID method = env->Ge... | 28.903226 | 97 | 0.722098 | dapetcu21 |
6290fc655f2607265e486f3f63eea181c565935e | 2,537 | cpp | C++ | patched_D-ITG-2.8.1-r1023/src/ITGSend/newran/extreal.cpp | akhila-s-rao/high-fidelity-wireless-measurements | 64bcaa9e0da5338b9495b63cd7aa67d94eaf3bf5 | [
"Apache-2.0"
] | 4 | 2015-07-07T13:00:16.000Z | 2021-02-25T13:03:25.000Z | patched_D-ITG-2.8.1-r1023/src/ITGSend/newran/extreal.cpp | akhila-s-rao/high-fidelity-wireless-measurements | 64bcaa9e0da5338b9495b63cd7aa67d94eaf3bf5 | [
"Apache-2.0"
] | 1 | 2022-02-04T08:43:41.000Z | 2022-02-20T22:54:28.000Z | patched_D-ITG-2.8.1-r1023/src/ITGSend/newran/extreal.cpp | akhila-s-rao/high-fidelity-wireless-measurements | 64bcaa9e0da5338b9495b63cd7aa67d94eaf3bf5 | [
"Apache-2.0"
] | 2 | 2018-06-07T20:47:50.000Z | 2020-07-20T09:55:04.000Z | /// \ingroup newran
///@{
/// \file extreal.cpp
/// "Extended real" - body file.
#define WANT_FSTREAM
#include "include.h"
#include "extreal.h"
#ifdef use_namespace
namespace RBD_COMMON {
#endif
ExtReal ExtReal::operator+(const ExtReal& er) const
{
if (c==Finite && er.c==Finite) return ExtReal(value+er.value);
... | 24.161905 | 69 | 0.615294 | akhila-s-rao |
6292e28d9e2382ecb28c3f579b8c7f3d2219272a | 1,215 | hpp | C++ | example/vgg16/vgg16.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | 93 | 2017-10-25T07:48:42.000Z | 2022-02-02T15:18:11.000Z | example/vgg16/vgg16.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | null | null | null | example/vgg16/vgg16.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | 20 | 2018-02-06T10:01:36.000Z | 2019-07-07T09:26:40.000Z | #ifndef VGG16_HPP
#define VGG16_HPP
#include "licon/licon.hpp"
using namespace licon;
// get the conv block
nn::NodePtr ConvBlock(int in_channel, int out_channel, bool triple = false) {
auto block = nn::Squential::CreateSquential();
block->Add(nn::Conv::CreateConv(in_channel, out_channel, 3, 1, 1));
bloc... | 32.837838 | 77 | 0.641152 | wzppengpeng |
6292fc7eda6d43fe4158083a6806cb045cbbb9cf | 7,111 | cpp | C++ | examples_oldgl_glfw/146_4RotSymFieldMultilevel/main.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 153 | 2018-08-16T21:51:33.000Z | 2022-03-28T10:34:48.000Z | examples_oldgl_glfw/146_4RotSymFieldMultilevel/main.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 63 | 2018-08-16T21:53:34.000Z | 2022-02-22T13:50:34.000Z | examples_oldgl_glfw/146_4RotSymFieldMultilevel/main.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 18 | 2018-12-17T05:39:15.000Z | 2021-11-16T08:21:16.000Z | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @brief implementation of 4 rotatoinal symetry field
* @details implementation is based on "Wenzel Jakob, Marco Tarini, Daniele Panozzo, and O... | 34.519417 | 110 | 0.612572 | nobuyuki83 |
629696e09e6214b4637311c9f8c8bd9d8adb285f | 1,714 | cpp | C++ | Module 2/Chapter_9/Source/Cookbook_Chapter9/CollectableObject.cpp | PacktPublishing/Game-Development-using-Unreal-Engine | 2a4f5c8662879037403706cb1f0bd8a6caddcc78 | [
"MIT"
] | 12 | 2016-09-12T14:21:53.000Z | 2021-11-20T07:55:03.000Z | Module 2/Chapter_9/Source/Cookbook_Chapter9/CollectableObject.cpp | PacktPublishing/Game-Development-using-Unreal-Engine | 2a4f5c8662879037403706cb1f0bd8a6caddcc78 | [
"MIT"
] | null | null | null | Module 2/Chapter_9/Source/Cookbook_Chapter9/CollectableObject.cpp | PacktPublishing/Game-Development-using-Unreal-Engine | 2a4f5c8662879037403706cb1f0bd8a6caddcc78 | [
"MIT"
] | 5 | 2017-07-27T05:23:09.000Z | 2021-12-20T11:44:42.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "Cookbook_Chapter9.h"
#include "CollectableObject.h"
#include "Engine.h" //GEngine
// Sets default values for this actor's properties
ACollectableObject::ACollectableObject(const FObjectInitializer& ObjectInitializer) : Super(Obj... | 32.339623 | 173 | 0.780047 | PacktPublishing |
629bb8774f5fd140c31b7dc663c30e7bbbfb55c1 | 440 | cpp | C++ | C++/0202-Happy-Number/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0202-Happy-Number/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0202-Happy-Number/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
bool isHappy(int n) {
unordered_set<int> m;
while(true)
{
int ans = 0;
while (n)
{
int val = n % 10;
n /= 10;
ans += val * val;
}
if (ans == 1) return true;
... | 20.952381 | 42 | 0.331818 | wyaadarsh |
629c3c21b8db379220b7008dd64cd955896fda75 | 1,952 | cpp | C++ | src/model/company_client/company_client_manager/company_client_manager.cpp | luist18/feup-cal-proj | b7fbb8aaed63c705cd85125b3d3f88ae77b1416c | [
"MIT"
] | null | null | null | src/model/company_client/company_client_manager/company_client_manager.cpp | luist18/feup-cal-proj | b7fbb8aaed63c705cd85125b3d3f88ae77b1416c | [
"MIT"
] | null | null | null | src/model/company_client/company_client_manager/company_client_manager.cpp | luist18/feup-cal-proj | b7fbb8aaed63c705cd85125b3d3f88ae77b1416c | [
"MIT"
] | 2 | 2020-05-05T11:19:34.000Z | 2020-06-07T14:41:46.000Z | #include <algorithm>
#include "company_client_manager.h"
CompanyClientManager::CompanyClientManager() = default;
bool CompanyClientManager::isValid(const CompanyClient &companyClient) const {
return companyClient.getUUID() != 0 && !companyClient.getName().empty();
}
bool CompanyClientManager::add(CompanyClient c... | 27.111111 | 105 | 0.676742 | luist18 |
629d4b55920bdddcd6ce9481ecbed62c6a9826fc | 970 | cc | C++ | ash/shell/content_client/shell_content_browser_client.cc | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5 | 2018-03-10T13:08:42.000Z | 2021-07-26T15:02:11.000Z | ash/shell/content_client/shell_content_browser_client.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | ash/shell/content_client/shell_content_browser_client.cc | jianglong0156/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/shell/content_client/shell_content_browser_client.h"
#include "ash/shell/content_client/shell_browser_main_parts.h"
#include "third_par... | 30.3125 | 77 | 0.802062 | codenote |
62a269883233ffb3ccebbebc643541651a26c5d7 | 22,021 | cc | C++ | PA5/ast_stmt.cc | atomic/CSE131 | 9d60c16f65fbd5cb91840643cbe6c4c9f5fdd2b4 | [
"MIT"
] | 1 | 2019-04-22T07:40:24.000Z | 2019-04-22T07:40:24.000Z | PA5/ast_stmt.cc | atomic/CSE131 | 9d60c16f65fbd5cb91840643cbe6c4c9f5fdd2b4 | [
"MIT"
] | null | null | null | PA5/ast_stmt.cc | atomic/CSE131 | 9d60c16f65fbd5cb91840643cbe6c4c9f5fdd2b4 | [
"MIT"
] | null | null | null | /* File: ast_stmt.cc
* -----------------
* Implementation of statement node classes.
*/
#include "ast_stmt.h"
#include "ast_type.h"
#include "ast_decl.h"
#include "ast_expr.h"
#include <cctype>
#include <unordered_map>
#include <utility>
#include <sstream>
#include <iterator>
#include <iomanip>
typedef pair<string,... | 32.575444 | 120 | 0.504973 | atomic |
62a2e795ddb66c0343a47c676e22752e1dc94c42 | 26,591 | cxx | C++ | PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskEventMixingBF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskEventMixingBF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskEventMixingBF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | #include "TChain.h"
#include "TList.h"
#include "TCanvas.h"
#include "TLorentzVector.h"
#include "TGraphErrors.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TArrayF.h"
#include "TF1.h"
#include "TRandom.h"
#include "AliAnalysisTaskSE.h"
#include "AliAnalysisManager.h"
#include "AliESDVertex.h"
#include "AliESDEven... | 38.315562 | 194 | 0.664059 | maroozm |
62a6695ad70f068176da027d6b83b47de6814540 | 11,501 | cpp | C++ | src/goto-symex/memory_model_sc.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2017-07-25T02:44:56.000Z | 2017-07-25T02:44:56.000Z | src/goto-symex/memory_model_sc.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2017-02-22T14:35:19.000Z | 2017-02-27T08:49:58.000Z | src/goto-symex/memory_model_sc.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 4 | 2019-01-19T03:32:21.000Z | 2021-12-20T14:25:19.000Z | /*******************************************************************\
Module: Memory model for partial order concurrency
Author: Michael Tautschnig, michael.tautschnig@cs.ox.ac.uk
\*******************************************************************/
#include <util/std_expr.h>
#include <util/i2string.h>
#include "m... | 25.332599 | 125 | 0.537692 | dan-blank |
62abb37eaa85a0249284ab8ff4fe48f8b94351ba | 2,567 | cpp | C++ | common/util/src/TokenRateLimiter.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | null | null | null | common/util/src/TokenRateLimiter.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | null | null | null | common/util/src/TokenRateLimiter.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | null | null | null | #include "TokenRateLimiter.h"
#include <iostream>
TokenRateLimiter::TokenRateLimiter() : m_rateTokens(0), m_limit(0), m_remain(0) {}
TokenRateLimiter::~TokenRateLimiter() {}
void TokenRateLimiter::SetRate(const uint64_t tokens, const boost::posix_time::time_duration & interval, const boost::posix_time::time_duration... | 26.463918 | 164 | 0.695754 | ewb4 |
62acd74a7eae39c649b5709498645dad6fba7850 | 3,191 | cpp | C++ | plugins/libimhex/source/helpers/lang.cpp | Laxer3a/psdebugtool | 41efa5f35785afd8f6dc868d8dbdb0dcf8eb25fb | [
"MIT"
] | 4 | 2021-05-09T23:33:54.000Z | 2022-03-06T10:16:31.000Z | plugins/libimhex/source/helpers/lang.cpp | Laxer3a/psdebugtool | 41efa5f35785afd8f6dc868d8dbdb0dcf8eb25fb | [
"MIT"
] | null | null | null | plugins/libimhex/source/helpers/lang.cpp | Laxer3a/psdebugtool | 41efa5f35785afd8f6dc868d8dbdb0dcf8eb25fb | [
"MIT"
] | 6 | 2021-05-09T21:41:48.000Z | 2021-09-08T10:54:28.000Z | #include "hex/helpers/lang.hpp"
#include "hex/helpers/shared_data.hpp"
namespace hex {
LanguageDefinition::LanguageDefinition(std::initializer_list<std::pair<std::string, std::string>> entries) {
for (auto pair : entries)
this->m_entries.insert(pair);
}
const std::map<std::string, st... | 35.065934 | 121 | 0.655907 | Laxer3a |
62acf418bcf9c8a2720f202b27b4b065944b3730 | 1,416 | cpp | C++ | solved-uva/10583.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | solved-uva/10583.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-uva/10583.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | /**
* @author : Maruf Tuhin
* @School : CUET CSE 11
* @TOPCODER : the_redback
* @CodeForces : the_redback
* @UVA : Redback
* @link : http://www.fb.com/maruf.2hin
*/
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<iostream>
#i... | 19.39726 | 67 | 0.484463 | Maruf-Tuhin |
62b525f4b0bf8f3f48b32c0226c71c01d43dd978 | 1,944 | cpp | C++ | test/write_batch_test.cpp | qqiangwu/cloudkv | cd033b3b7dcd4b5a4807bf92b6d92bae5bb38d47 | [
"MIT"
] | 1 | 2021-12-05T05:15:52.000Z | 2021-12-05T05:15:52.000Z | test/write_batch_test.cpp | qqiangwu/cloudkv | cd033b3b7dcd4b5a4807bf92b6d92bae5bb38d47 | [
"MIT"
] | null | null | null | test/write_batch_test.cpp | qqiangwu/cloudkv | cd033b3b7dcd4b5a4807bf92b6d92bae5bb38d47 | [
"MIT"
] | null | null | null | #include <vector>
#include <range/v3/view.hpp>
#include <gtest/gtest.h>
#include "cloudkv/write_batch.h"
using namespace cloudkv;
using namespace ranges;
TEST(write_batch, Add)
{
write_batch b;
b.add("a", "a");
EXPECT_EQ(b.size(), 1);
for (const auto i: views::indices(1024)) {
b.add(std::to_... | 21.6 | 69 | 0.545782 | qqiangwu |
62b96cc0e71367910cf61c48ca64a1ca20e1e487 | 826 | cpp | C++ | src/MdCharm/util/updatetocthread.cpp | MonkeyMo/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 387 | 2015-01-01T17:51:59.000Z | 2021-06-13T19:40:15.000Z | src/MdCharm/util/updatetocthread.cpp | MonkeyMo/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 26 | 2015-01-09T08:36:26.000Z | 2020-04-02T12:51:01.000Z | src/MdCharm/util/updatetocthread.cpp | heefan/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 145 | 2015-01-10T18:07:45.000Z | 2021-09-14T07:39:35.000Z | // Copyright (c) 2014 zhangshine. All rights reserved.
// Use of this source code is governed by a BSD license that can be
// found in the LICENSE file.
#include "updatetocthread.h"
UpdateTocThread::UpdateTocThread(QObject *parent) :
QThread(parent)
{
}
void UpdateTocThread::run()
{
if(this->type == Markdown... | 28.482759 | 104 | 0.696126 | MonkeyMo |
62be39df916655715856391362c1bee44d19356f | 485 | cpp | C++ | Luogu/P1115/P1115.cpp | AtomAlpaca/OI-Codes | 11f8dd4798616f1937d190e7220d7eedaeb75169 | [
"WTFPL"
] | 1 | 2021-11-12T14:19:53.000Z | 2021-11-12T14:19:53.000Z | Luogu/P1115/P1115.cpp | AtomAlpaca/OI-Codes | 11f8dd4798616f1937d190e7220d7eedaeb75169 | [
"WTFPL"
] | null | null | null | Luogu/P1115/P1115.cpp | AtomAlpaca/OI-Codes | 11f8dd4798616f1937d190e7220d7eedaeb75169 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
using std::cin;
using std::cout;
int main(int argc, char const *argv[])
{
//int m = -10000000;
int * n = new int;
cin >> *n;
int nums[*n + 1] = {0};
int ans [*n + 1] = {0};
int m = -99999999;
for (int i = 1; i <= *n; ++i)
{
... | 16.724138 | 57 | 0.463918 | AtomAlpaca |
62be72f300f0bc4e7c0f81203ee26c504a78719b | 6,270 | cpp | C++ | src/main.cpp | cowdingus/SFML-Grapher | 47d0e661aa9c411d9a41f4fe8f4df7860af7ec74 | [
"Unlicense"
] | 1 | 2021-01-26T09:52:41.000Z | 2021-01-26T09:52:41.000Z | src/main.cpp | cowdingus/SFML-Grapher | 47d0e661aa9c411d9a41f4fe8f4df7860af7ec74 | [
"Unlicense"
] | 1 | 2020-11-10T06:54:07.000Z | 2020-11-10T11:40:53.000Z | src/main.cpp | cowdingus/SFML-Grapher | 47d0e661aa9c411d9a41f4fe8f4df7860af7ec74 | [
"Unlicense"
] | null | null | null | /*
* ToDo:
* look at @setSize implementation
* fix bugs
*
* Bugs Found:
* crashes and hangs the whole computer when setting zoom value to some little value
*/
#include "CartesianGraphView.hpp"
#include "CartesianGrid.hpp"
#include "DotGraph.hpp"
#include <SFML/Graphics.hpp>
#include <SFML/Window/ContextS... | 24.782609 | 117 | 0.59378 | cowdingus |
498329ce67e1973db69564b5ac7ac9288d12e1be | 988 | hpp | C++ | CTCWordBeamSearch-master/cpp/DataLoader.hpp | brucegrapes/htr | 9f8f07173ccc740dd8a4dfc7e8038abe36664756 | [
"MIT"
] | 488 | 2018-03-01T11:18:26.000Z | 2022-03-10T09:29:32.000Z | CTCWordBeamSearch-master/cpp/DataLoader.hpp | brucegrapes/htr | 9f8f07173ccc740dd8a4dfc7e8038abe36664756 | [
"MIT"
] | 60 | 2018-03-10T18:37:51.000Z | 2022-03-30T19:37:18.000Z | CTCWordBeamSearch-master/cpp/DataLoader.hpp | brucegrapes/htr | 9f8f07173ccc740dd8a4dfc7e8038abe36664756 | [
"MIT"
] | 152 | 2018-03-01T11:18:25.000Z | 2022-03-08T23:37:46.000Z | #pragma once
#include "MatrixCSV.hpp"
#include "LanguageModel.hpp"
#include <string>
#include <vector>
#include <memory>
#include <stdint.h>
#include <cstddef>
// load sample data, create LM from it, iterate over samples
class DataLoader
{
public:
// sample with matrix to be decoded and ground truth text
struct Dat... | 22.976744 | 145 | 0.733806 | brucegrapes |
498b1074a57620a2675251ec28d972bfd0278f67 | 27 | cpp | C++ | lootman/f4se/bhkWorld.cpp | clayne/Lootman | 248befd3e1775a0eb9ca6dcbe261937d9641ef1c | [
"MIT"
] | 10 | 2019-06-01T20:24:04.000Z | 2021-08-16T19:32:24.000Z | lootman/f4se/bhkWorld.cpp | clayne/Lootman | 248befd3e1775a0eb9ca6dcbe261937d9641ef1c | [
"MIT"
] | null | null | null | lootman/f4se/bhkWorld.cpp | clayne/Lootman | 248befd3e1775a0eb9ca6dcbe261937d9641ef1c | [
"MIT"
] | 5 | 2019-07-04T05:54:14.000Z | 2021-10-11T11:19:57.000Z | #include "f4se/bhkWorld.h"
| 13.5 | 26 | 0.740741 | clayne |
498f94159e65d0f63e199e4534264d92426142da | 434 | cpp | C++ | source/Ch08/orai_anyag/vector_pass_by.cpp | Vada200/UDProg-Introduction | c424b2676d6e5bfc4d53d61c5d0deded566c1c84 | [
"CC0-1.0"
] | null | null | null | source/Ch08/orai_anyag/vector_pass_by.cpp | Vada200/UDProg-Introduction | c424b2676d6e5bfc4d53d61c5d0deded566c1c84 | [
"CC0-1.0"
] | null | null | null | source/Ch08/orai_anyag/vector_pass_by.cpp | Vada200/UDProg-Introduction | c424b2676d6e5bfc4d53d61c5d0deded566c1c84 | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
void print (vector <double>& v)
//& -->referencia miatt gyorsabb a lefutás
//mert nem másolódik a v, hanem a v ugyanaz lesz mint a vd1
{
cout << "{";
for (int i = 0; i < v.size(); i++)
{
cout << v[i];
if(i < v.size()-1) cout << ",";
}
cout << "}\n";
}
... | 16.692308 | 60 | 0.520737 | Vada200 |
4992e1630ce5e963ee2b1cc766c06866946cb4d5 | 2,991 | cpp | C++ | port/linux/test/content-test.cpp | GorgonMeducer/pikascript | fefe9afb17d14c1a3bbe75c4c6a83d65831f451e | [
"MIT"
] | null | null | null | port/linux/test/content-test.cpp | GorgonMeducer/pikascript | fefe9afb17d14c1a3bbe75c4c6a83d65831f451e | [
"MIT"
] | null | null | null | port/linux/test/content-test.cpp | GorgonMeducer/pikascript | fefe9afb17d14c1a3bbe75c4c6a83d65831f451e | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "test_common.h"
extern "C" {
#include "dataArg.h"
#include "dataString.h"
}
#if 0
TEST(content, init) {
uint8_t contentIn[4] = {0};
contentIn[0] = 1;
contentIn[1] = 2;
contentIn[2] = 3;
contentIn[3] = 4;
Arg* self = content_init("name", ARG_TYPE_NONE, contentIn,... | 29.038835 | 74 | 0.67235 | GorgonMeducer |
499663b2dfd9a254ef35277d5d85dc6b8003a24e | 818 | cpp | C++ | cyclic_fn.cpp | zaimoni/Iskandria | b056d2ba359b814db02aab42eba8d5f7f5ca7a1a | [
"BSL-1.0"
] | 2 | 2019-11-23T12:35:49.000Z | 2022-02-10T08:27:54.000Z | cyclic_fn.cpp | zaimoni/Iskandria | b056d2ba359b814db02aab42eba8d5f7f5ca7a1a | [
"BSL-1.0"
] | 8 | 2019-11-15T08:13:48.000Z | 2020-04-29T00:35:42.000Z | cyclic_fn.cpp | zaimoni/Iskandria | b056d2ba359b814db02aab42eba8d5f7f5ca7a1a | [
"BSL-1.0"
] | null | null | null | // cyclic_fn.cpp
// pure test driver
#include "cyclic_fn.hpp"
#include <functional>
// example build line (have to copy from *.hpp to *.cpp or else main not seen
// If doing INFORM-based debugging
// g++ -std=c++11 -ocyclic_fn.exe cyclic_fn.cpp -Llib/host.isk -lz_log_adapter -lz_stdio_log -lz_format_util
#... | 23.371429 | 109 | 0.679707 | zaimoni |
499ad331e198929ca8c0116e353dc02b3e64887b | 14,774 | cpp | C++ | src/program_options.cpp | WenbinHou/xcp-old | e1efbebe625e379189d82b4641e575849fbcf628 | [
"MIT"
] | 1 | 2020-09-10T19:50:38.000Z | 2020-09-10T19:50:38.000Z | src/program_options.cpp | WenbinHou/xcp-old | e1efbebe625e379189d82b4641e575849fbcf628 | [
"MIT"
] | null | null | null | src/program_options.cpp | WenbinHou/xcp-old | e1efbebe625e379189d82b4641e575849fbcf628 | [
"MIT"
] | 1 | 2020-07-14T05:10:22.000Z | 2020-07-14T05:10:22.000Z | #include "common.h"
//==============================================================================
// struct host_path
//==============================================================================
bool xcp::host_path::parse(const std::string& value)
{
// Handle strings like:
// "relative"
// "rela... | 33.501134 | 690 | 0.500271 | WenbinHou |
499b39c54b8f164f0888e1304f52c52505ed1694 | 3,169 | cpp | C++ | include/lak/stream_util.cpp | LAK132/NetworkMaker | 0ad1ba2488d80e8bba0a710e5d9984d7c5cc0739 | [
"MIT"
] | null | null | null | include/lak/stream_util.cpp | LAK132/NetworkMaker | 0ad1ba2488d80e8bba0a710e5d9984d7c5cc0739 | [
"MIT"
] | null | null | null | include/lak/stream_util.cpp | LAK132/NetworkMaker | 0ad1ba2488d80e8bba0a710e5d9984d7c5cc0739 | [
"MIT"
] | 1 | 2020-08-16T16:27:58.000Z | 2020-08-16T16:27:58.000Z | /*
MIT License
Copyright (c) 2018 Lucas Kleiss (LAK132)
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, p... | 30.180952 | 78 | 0.532029 | LAK132 |
499ba4b3bea193324f9df87d27b30049b4c8019e | 3,121 | hpp | C++ | hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/cmsOopClosures.inline.hpp | dbac/jdk8 | abfce42ff6d4b8b77d622157519ecd211ba0aa8f | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/cmsOopClosures.inline.hpp | dbac/jdk8 | abfce42ff6d4b8b77d622157519ecd211ba0aa8f | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/cmsOopClosures.inline.hpp | dbac/jdk8 | abfce42ff6d4b8b77d622157519ecd211ba0aa8f | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 40.532468 | 82 | 0.758731 | dbac |
499c9cd941a0da86a8ba6bfb30de25722b42eba3 | 42 | cpp | C++ | 4781_candyshop/4781.cpp | YouminHa/acmicpc | dddb457a3cfb03df34db0ed07680ac1a7be6cdd4 | [
"MIT"
] | null | null | null | 4781_candyshop/4781.cpp | YouminHa/acmicpc | dddb457a3cfb03df34db0ed07680ac1a7be6cdd4 | [
"MIT"
] | null | null | null | 4781_candyshop/4781.cpp | YouminHa/acmicpc | dddb457a3cfb03df34db0ed07680ac1a7be6cdd4 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
| 7 | 19 | 0.666667 | YouminHa |
499d07f1b188017bf2b057e9f410fe5336e1068a | 4,602 | cpp | C++ | src/world/chunk.cpp | AlexDiru/minecraft-weekend | 8ddbef27f8501bff306c83ae11fff971cb3bb47a | [
"MIT"
] | null | null | null | src/world/chunk.cpp | AlexDiru/minecraft-weekend | 8ddbef27f8501bff306c83ae11fff971cb3bb47a | [
"MIT"
] | null | null | null | src/world/chunk.cpp | AlexDiru/minecraft-weekend | 8ddbef27f8501bff306c83ae11fff971cb3bb47a | [
"MIT"
] | null | null | null | #include "../state.h"
#include "chunk.h"
#include "world.h"
#include "light.h"
void chunk_init(struct Chunk *self, struct World *world, ivec3s offset) {
memset(self, 0, sizeof(struct Chunk));
self->world = world;
self->offset = offset;
self->position = glms_ivec3_mul(offset, CHUNK_SIZE);
self->data... | 31.520548 | 114 | 0.611691 | AlexDiru |
49a7dbc2bdc7d142b3de9ff2cfce31e67f3a35fd | 645 | cpp | C++ | Source/mods.cpp | HaikuArchives/Rez | db5e7e1775a379e1e54bc17012047d92ec782202 | [
"BSD-4-Clause"
] | 1 | 2016-09-12T19:04:30.000Z | 2016-09-12T19:04:30.000Z | Source/mods.cpp | HaikuArchives/Rez | db5e7e1775a379e1e54bc17012047d92ec782202 | [
"BSD-4-Clause"
] | null | null | null | Source/mods.cpp | HaikuArchives/Rez | db5e7e1775a379e1e54bc17012047d92ec782202 | [
"BSD-4-Clause"
] | null | null | null | #include "mods.h"
#include <cstdio>
/*************************************************************************
* Modifications to the standard REZ distribution.
* Copyright (c) 2000, Tim Vernum
* This code may be freely used for any purpose
*************************************************************************/... | 17.432432 | 75 | 0.472868 | HaikuArchives |
49acf651e55490e269962b2b747a489017641961 | 687 | cc | C++ | chrome/browser/component_updater/component_updater_utils.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | chrome/browser/component_updater/component_updater_utils.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/component_updater/component_updater_utils.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/component_updater/component_updater_utils.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "build/bu... | 25.444444 | 73 | 0.767103 | xzhan96 |
49adab898428491e17f74e777ed5d051fec0f9bb | 1,300 | cpp | C++ | Algorithms/Sorting/quick_sort.cpp | WajahatSiddiqui/workspace | 7c6172a76d7cd178ea0c0cb9767ceaaed783545a | [
"Apache-2.0"
] | 1 | 2021-03-19T10:57:21.000Z | 2021-03-19T10:57:21.000Z | Algorithms/Sorting/quick_sort.cpp | WajahatSiddiqui/Datastructures-and-Algorithms | 7c6172a76d7cd178ea0c0cb9767ceaaed783545a | [
"Apache-2.0"
] | 1 | 2015-03-15T17:49:52.000Z | 2015-03-15T17:51:38.000Z | Algorithms/Sorting/quick_sort.cpp | WajahatSiddiqui/Datastructures-and-Algorithms | 7c6172a76d7cd178ea0c0cb9767ceaaed783545a | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
// Best case: O(nlogn)
// Avg. case: O(nlogn)
// Worst case: O(n^2)
void quick_sort(int A[], int low, int high);
int partition(int A[], int low, int high);
int main() {
int A[] = {5, 6, 8, 1, -1, 0, 11, 100, -5, 0, 1, 0, 6, 1, 2, 3, 5, 10000};
int size = sizeof(A)/sizeof(int... | 22.413793 | 75 | 0.520769 | WajahatSiddiqui |
49b39f86e698f389bf7e606e73ce28ee95f020c2 | 487 | hpp | C++ | SoftRender/Common.hpp | pw1316/SoftRender | da4a87da2aab1234543a48524a8274d6f5550652 | [
"MIT"
] | null | null | null | SoftRender/Common.hpp | pw1316/SoftRender | da4a87da2aab1234543a48524a8274d6f5550652 | [
"MIT"
] | null | null | null | SoftRender/Common.hpp | pw1316/SoftRender | da4a87da2aab1234543a48524a8274d6f5550652 | [
"MIT"
] | null | null | null | #pragma once
#include "stdafx.h"
inline PWfloat quickInvSqrt(PWfloat number)
{
PWlong i;
PWfloat x2, y;
const PWfloat threehalfs = 1.5f;
x2 = number * 0.5f;
y = number;
i = *(PWlong *)&y;// evil floating point bit level hacking
i = 0x5f3759df - (i >> 1);// what the fuck?
y = *(PWlong *)... | 28.647059 | 80 | 0.566735 | pw1316 |
49b41afb9d64fe942c0e7c9d0cfbf4b64821414a | 358 | cpp | C++ | Graph/main.cpp | yanelox/ilab_2year | 4597b2fbc498a816368101283d2749ac7bbf670a | [
"MIT"
] | null | null | null | Graph/main.cpp | yanelox/ilab_2year | 4597b2fbc498a816368101283d2749ac7bbf670a | [
"MIT"
] | null | null | null | Graph/main.cpp | yanelox/ilab_2year | 4597b2fbc498a816368101283d2749ac7bbf670a | [
"MIT"
] | 1 | 2021-10-11T19:18:37.000Z | 2021-10-11T19:18:37.000Z | #include "graph.cpp"
int main ()
{
graph::graph_ <int> G {};
if (G.input() == 0)
{
std::cout << "Incorrect input\n";
return 0;
}
// std::cout << G;
int res = G.colorize();
// G.recolorize();
if (res == 1)
G.print_colors(std::cout);
else
std::cou... | 14.916667 | 52 | 0.472067 | yanelox |
49b4f616bd2efeb24568570d3030bb7c4c70f1ec | 6,582 | cpp | C++ | plaidml/bridge/openvino/plaidml_util.cpp | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | plaidml/bridge/openvino/plaidml_util.cpp | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | 65 | 2020-08-24T07:41:09.000Z | 2021-07-19T09:13:49.000Z | plaidml/bridge/openvino/plaidml_util.cpp | Flex-plaidml-team/plaidml | 1070411a87b3eb3d94674d4d041ed904be3e7d87 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "plaidml_util.hpp"
#include "ngraph/validation_util.hpp"
#include "plaidml/edsl/edsl.h"
using namespace plaidml; // NOLINT[build/namespaces]
using namespace InferenceEngine; // NOLINT[build/namespaces]
namespace Pla... | 36.977528 | 117 | 0.703434 | hfp |
49b6698b30758675eaa155abbf452b5e28098270 | 4,303 | cpp | C++ | src/SgTShaderProc.cpp | stephen-hqxu/SglToolkit | cce526b2392dc9470db6182340f79febb5118a94 | [
"MIT"
] | null | null | null | src/SgTShaderProc.cpp | stephen-hqxu/SglToolkit | cce526b2392dc9470db6182340f79febb5118a94 | [
"MIT"
] | null | null | null | src/SgTShaderProc.cpp | stephen-hqxu/SglToolkit | cce526b2392dc9470db6182340f79febb5118a94 | [
"MIT"
] | null | null | null | #include <SglToolkit/SgTShaderProc.h>
using namespace SglToolkit;
void SgTShaderProc::addShader(const GLenum type, const SgTstring path) {
//Determine which shader is that
int handleIndex = 1;
switch (type) {
case GL_VERTEX_SHADER: handleIndex = 1;
break;
case GL_TESS_CONTROL_SHADER: handleIndex = 2;
break;
... | 26.89375 | 105 | 0.711132 | stephen-hqxu |
49b80ce7d44f336de85baa6acf8c266c02a7e8a9 | 309 | hpp | C++ | CLASS/class_inheritance_2/Child.hpp | StanLepunK/CPP_basics | 72b8e72b84adc31bdfad4479d5133defb9575e54 | [
"MIT"
] | null | null | null | CLASS/class_inheritance_2/Child.hpp | StanLepunK/CPP_basics | 72b8e72b84adc31bdfad4479d5133defb9575e54 | [
"MIT"
] | null | null | null | CLASS/class_inheritance_2/Child.hpp | StanLepunK/CPP_basics | 72b8e72b84adc31bdfad4479d5133defb9575e54 | [
"MIT"
] | null | null | null | #ifndef CHILD_H
# define CHILD_H
#include "Mother.hpp"
class Child : public Mother {
private:
std::string name;
public:
Child();
~Child();
Child(float const x, float const y, std::string const name);
std::string get_name() const;
void static_talk();
virtual void virtual_talk();
};
#endif | 15.45 | 62 | 0.679612 | StanLepunK |
49ba8348d2d36c463bd163cb89fee32926da201a | 401 | hpp | C++ | include/dotto/debug.hpp | mitsukaki/dotto | ebea72447e854c9beff676fe609d998a3cb0b3ea | [
"CC0-1.0"
] | 4 | 2018-03-05T22:51:40.000Z | 2018-03-11T00:54:38.000Z | include/dotto/debug.hpp | mitsukaki/dotto | ebea72447e854c9beff676fe609d998a3cb0b3ea | [
"CC0-1.0"
] | null | null | null | include/dotto/debug.hpp | mitsukaki/dotto | ebea72447e854c9beff676fe609d998a3cb0b3ea | [
"CC0-1.0"
] | 1 | 2019-09-14T19:44:14.000Z | 2019-09-14T19:44:14.000Z | #pragma once
#include <string>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <dotto/io.hpp>
class debug
{
private:
TTF_Font* debug_font;
SDL_Rect fps_text_rect;
SDL_Surface* fps_text_surface;
SDL_Texture* fps_text_texture;
public:
debug();
~debug();... | 12.151515 | 40 | 0.665835 | mitsukaki |
49bc2b5de44ea8cffd8978e2372400df92994655 | 590 | cpp | C++ | hackerrank/problems/GameOfThrones-I.cpp | joaquinmd93/competitive-programming | 681424abd777cc0a3059e1ee66ae2cee958178da | [
"MIT"
] | 1 | 2020-10-08T19:28:40.000Z | 2020-10-08T19:28:40.000Z | hackerrank/problems/GameOfThrones-I.cpp | joaquinmd93/competitive-programming | 681424abd777cc0a3059e1ee66ae2cee958178da | [
"MIT"
] | null | null | null | hackerrank/problems/GameOfThrones-I.cpp | joaquinmd93/competitive-programming | 681424abd777cc0a3059e1ee66ae2cee958178da | [
"MIT"
] | 1 | 2020-10-24T02:32:27.000Z | 2020-10-24T02:32:27.000Z | #include<bits/stdc++.h>
using namespace std;
int main() {
string s; cin >> s;
int n = s.size();
map<char, int> reps;
for (int i=0; i<n; ++i) {
++reps[s[i]];
}
int odd_reps=0;
for (auto let: reps) {
if (let.second % 2 != 0)
++odd_reps;
}
if (n % 2 ... | 21.071429 | 37 | 0.383051 | joaquinmd93 |
49bc8fdc7a30207df70b9f88b807df3a38941b67 | 483 | hpp | C++ | inc/concept/detail/unuse.hpp | matrixjoeq/concepts | d9bac8343e44c62f22913ec41ac0856b767bedc4 | [
"MIT"
] | null | null | null | inc/concept/detail/unuse.hpp | matrixjoeq/concepts | d9bac8343e44c62f22913ec41ac0856b767bedc4 | [
"MIT"
] | null | null | null | inc/concept/detail/unuse.hpp | matrixjoeq/concepts | d9bac8343e44c62f22913ec41ac0856b767bedc4 | [
"MIT"
] | null | null | null | /** @file */
#ifndef __STL_CONCEPT_DETAIL_UNUSE_HPP__
#define __STL_CONCEPT_DETAIL_UNUSE_HPP__
namespace stl_concept {
namespace __detail {
/// @cond DEV
/**
* @brief Ignore unused object.
* @tparam T - object type
*/
template <class T>
inline void __unuse(T&&) {}
/**
* @brief Ignore unused type.
* @tparam T - ... | 17.25 | 42 | 0.708075 | matrixjoeq |
49bcaa20b70785877da6cbd54e35cdd1d42d57fe | 4,031 | cpp | C++ | src/main/cpp/subsystems/Shooter.cpp | FIRSTTeam102/Robot2022 | 2a3224fd9bf7e4e9b469214fdf141a3d25d9094c | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/Shooter.cpp | FIRSTTeam102/Robot2022 | 2a3224fd9bf7e4e9b469214fdf141a3d25d9094c | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/Shooter.cpp | FIRSTTeam102/Robot2022 | 2a3224fd9bf7e4e9b469214fdf141a3d25d9094c | [
"BSD-3-Clause"
] | null | null | null | #include "subsystems/Shooter.h"
#include "commands/Shooter/StartShooter.h"
Shooter::Shooter() {
SetName("Shooter");
SetSubsystem("Shooter");
using namespace ShooterConstants;
// Shooter motor setup
mMotor.ConfigFactoryDefault(); // resets all settings
mMotor.SetInverted(true);
mMotor.SetNeutralMode(ctre::pho... | 36.315315 | 139 | 0.769784 | FIRSTTeam102 |
49bfb9d091eb75a7ace1930c89cc4d2d1b3a5aae | 1,830 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/anim/DangleConstraint_SimulationPendulum.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/anim/DangleConstraint_SimulationPendulum.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/anim/DangleConstraint_SimulationPendulum.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector3.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/DangleConstraint_SimulationSingleBone.hpp>
#include <RED4ext/Scripting/Natives/Generated... | 36.6 | 93 | 0.757923 | jackhumbert |
49c35d5da78523cf5f60013d0b0803761665d2e9 | 1,548 | cpp | C++ | src/Parse/Parser.cpp | artagnon/rhine | ca4ec684162838f4cb13d9d29ef9e4aedbc268dd | [
"MIT"
] | 234 | 2015-01-02T18:32:50.000Z | 2022-02-03T19:41:33.000Z | src/Parse/Parser.cpp | artagnon/rhine | ca4ec684162838f4cb13d9d29ef9e4aedbc268dd | [
"MIT"
] | 7 | 2015-02-16T15:02:54.000Z | 2016-05-26T07:46:02.000Z | src/Parse/Parser.cpp | artagnon/rhine | ca4ec684162838f4cb13d9d29ef9e4aedbc268dd | [
"MIT"
] | 13 | 2015-02-16T13:37:12.000Z | 2020-12-12T04:18:43.000Z | #include "rhine/Parse/ParseDriver.hpp"
#include "rhine/Parse/Parser.hpp"
#include "rhine/Parse/Lexer.hpp"
#include "rhine/Diagnostic/Diagnostic.hpp"
#include "rhine/IR/Context.hpp"
#include "rhine/IR/Module.hpp"
#include <vector>
#define K Driver->Ctx
namespace rhine {
Parser::Parser(ParseDriver *Dri) : Driver(Dri)... | 23.104478 | 75 | 0.687339 | artagnon |
49cb02d9b7eecd8c0fe5b389a18b8f277d0733cc | 5,911 | cpp | C++ | Quake/Notes005/src/DIYQuake/ModelManager.cpp | amroibrahim/DIYQuake | 957d4b86fc6edc3eedf0e322eafce89dc336261f | [
"MIT"
] | 13 | 2020-12-06T20:11:40.000Z | 2021-12-14T16:28:48.000Z | Quake/Notes005/src/DIYQuake/ModelManager.cpp | amroibrahim/DIYQuake | 957d4b86fc6edc3eedf0e322eafce89dc336261f | [
"MIT"
] | 1 | 2021-05-02T02:31:51.000Z | 2021-05-02T17:00:49.000Z | Quake/Notes005/src/DIYQuake/ModelManager.cpp | amroibrahim/DIYQuake | 957d4b86fc6edc3eedf0e322eafce89dc336261f | [
"MIT"
] | 1 | 2020-12-17T12:17:16.000Z | 2020-12-17T12:17:16.000Z | #include "ModelManager.h"
#include <string>
void ModelManager::Init(MemoryManager* pMemorymanager, Common* pCommon)
{
m_pMemorymanager = pMemorymanager;
m_pCommon = pCommon;
}
ModelData* ModelManager::Load(char* szName)
{
ModelData* pModelData = nullptr;
pModelData = Find(szName);
return Load(pModel... | 26.746606 | 148 | 0.682964 | amroibrahim |
49ccafc5c5b597763564ff02b523f969ebbb4ede | 728 | hpp | C++ | src/utility/apply.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | test/utility/apply.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | test/utility/apply.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | #pragma once
// std c++ headers
#include <tuple>
#include <array>
// AMDiS includes
#include "traits/basic.hpp"
#include "traits/size.hpp"
#include "utility/int_seq.hpp"
namespace AMDiS
{
namespace detail
{
// return f(t[0], t[1], t[2], ...)
template <class F, class Tuple, int... I>
constexpr auto ap... | 22.060606 | 82 | 0.612637 | spraetor |
49cd3d84b1639b63e391495c0934cd8529efae10 | 1,094 | hh | C++ | melodic/src/stage/libstage/file_manager.hh | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T12:33:55.000Z | 2021-11-21T07:14:13.000Z | melodic/src/stage/libstage/file_manager.hh | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | melodic/src/stage/libstage/file_manager.hh | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef _FILE_MANAGER_HH_
#define _FILE_MANAGER_HH_
#include <string>
#include <vector>
namespace Stg {
class FileManager {
private:
std::string WorldsRoot;
std::string stripFilename(const std::string &path);
public:
FileManager();
/// Return the path where the current worldfile was loaded from
inline c... | 26.682927 | 89 | 0.729433 | disorn-inc |
49d165e039d2329018c519729c723a32fecadf17 | 284 | cpp | C++ | src/Test/src/MockAudioPlayerView.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/Test/src/MockAudioPlayerView.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/Test/src/MockAudioPlayerView.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "MockAudioPlayerView.h"
using namespace std;
void MockAudioPlayerView::Hide()
{
isShown = false;
}
void MockAudioPlayerView::SetFileName(wstring & name)
{
this->name = name;
}
void MockAudioPlayerView::Show()
{
isShown = true;
}
| 14.2 | 54 | 0.676056 | don-reba |
49d35ea928779a62915396dd753395a313af8644 | 4,593 | cpp | C++ | source/networkrequest.cpp | KambizAsadzadeh/RestService | ca677068954cd9b6f08d42d8deabdaf07c712d93 | [
"MIT"
] | 7 | 2020-10-31T19:03:12.000Z | 2022-02-04T09:50:56.000Z | source/networkrequest.cpp | KambizAsadzadeh/RestService | ca677068954cd9b6f08d42d8deabdaf07c712d93 | [
"MIT"
] | null | null | null | source/networkrequest.cpp | KambizAsadzadeh/RestService | ca677068954cd9b6f08d42d8deabdaf07c712d93 | [
"MIT"
] | null | null | null | #include "networkrequest.hpp"
#include "core.hpp"
using namespace RestService;
namespace RestService {
NetworkRequest::NetworkRequest()
{
this->result = "Unknown";
curl = curl_easy_init();
if(!curl)
throw std::string ("Curl did not initialize!");
}
NetworkRequest::~NetworkRequest()
{
clea... | 28.52795 | 96 | 0.641193 | KambizAsadzadeh |
49d7b46a187c4381b134715ceb33fdbcdac3699d | 1,438 | cpp | C++ | src/base/SimInfo.cpp | denniskb/bsim | bfe02148fc2fee7efff68b16173c626c515a49bb | [
"MIT"
] | 11 | 2019-09-01T16:20:57.000Z | 2022-01-19T08:24:06.000Z | src/base/SimInfo.cpp | denniskb/bsim | bfe02148fc2fee7efff68b16173c626c515a49bb | [
"MIT"
] | 2 | 2020-12-14T17:27:21.000Z | 2020-12-15T09:03:38.000Z | src/base/SimInfo.cpp | CRAFT-THU/BSim | 479c04348312579a7ae9c118c6b987724e540f38 | [
"MIT"
] | null | null | null |
#include "SimInfo.h"
int logFireInfo(FireInfo log, string type, string name)
{
string filename = name.append(".").append(type);
FILE *file = fopen(filename.c_str(), "w+");
if (file == NULL) {
printf("ERROR: Open file %s failed\n", filename.c_str());
return -1;
}
//printf("%d \n", log[type].size);
//int *... | 22.123077 | 88 | 0.584145 | denniskb |
49d8992285acc111bb590e67ebf8c19642969e2e | 51 | cpp | C++ | module/armor/fan_armor.cpp | PaPaPR/WolfVision | 4092a313491349397106e3c050a332b2a5c6e611 | [
"MIT"
] | null | null | null | module/armor/fan_armor.cpp | PaPaPR/WolfVision | 4092a313491349397106e3c050a332b2a5c6e611 | [
"MIT"
] | null | null | null | module/armor/fan_armor.cpp | PaPaPR/WolfVision | 4092a313491349397106e3c050a332b2a5c6e611 | [
"MIT"
] | null | null | null | #include "fan_armor.hpp"
namespace fan_armor {
}
| 8.5 | 24 | 0.72549 | PaPaPR |
49da617293b4093c5c6d63da2090ee45557b3e6f | 1,208 | cpp | C++ | Engine/OGF-Core/Core/Threads/ThreadPool.cpp | simon-bourque/OpenGameFramework | e0fed3895000a5ae244fc1ef696f4256af29865b | [
"MIT"
] | 4 | 2017-12-31T05:24:24.000Z | 2021-06-08T07:33:57.000Z | Engine/OGF-Core/Core/Threads/ThreadPool.cpp | simon-bourque/OpenGameFramework | e0fed3895000a5ae244fc1ef696f4256af29865b | [
"MIT"
] | 10 | 2018-01-13T22:36:57.000Z | 2018-06-23T20:03:03.000Z | Engine/OGF-Core/Core/Threads/ThreadPool.cpp | simon-bourque/OpenGameFramework | e0fed3895000a5ae244fc1ef696f4256af29865b | [
"MIT"
] | null | null | null | #include "ThreadPool.h"
ThreadPool::ThreadWorker::ThreadWorker(ThreadPool* threadPool, const int threadIdx)
:m_threadPool(threadPool),m_threadIdx(threadIdx) {}
void ThreadPool::ThreadWorker::operator()()
{
std::function<void()> function;
bool dequeued;
while (!m_threadPool->m_shutdown) {
{
std::unique_lock<s... | 23.230769 | 83 | 0.683775 | simon-bourque |
49da67e562c02f9ecc3ade584f25592a8ab3d710 | 6,581 | cc | C++ | TicTacToe.cc | ucarlos/C-Doodles | 6e4680c47b1f73e39611e6ace7ab60f5123da34a | [
"MIT"
] | null | null | null | TicTacToe.cc | ucarlos/C-Doodles | 6e4680c47b1f73e39611e6ace7ab60f5123da34a | [
"MIT"
] | null | null | null | TicTacToe.cc | ucarlos/C-Doodles | 6e4680c47b1f73e39611e6ace7ab60f5123da34a | [
"MIT"
] | null | null | null | /*
* -----------------------------------------------------------------------------
* Created by Ulysses Carlos on 06/22/2020 at 09:47 PM
*
* Tic_Tak_Toe.cc
* Awful Implementation of Tic Tac Toe.
* -----------------------------------------------------------------------------
*/
#include <iostream>
#include <vec... | 27.535565 | 80 | 0.561313 | ucarlos |
49ddbb44d358aadb14bfcc1dcd13c201618f2a85 | 5,626 | cpp | C++ | libFRIClient/src/base/friClientApplication.cpp | thinkexist1989/iiwa_connectivity_fri_examples | 7a0ed010ce41ed774fc037ab11219eba824b2ae4 | [
"MIT"
] | 1 | 2021-04-07T05:40:55.000Z | 2021-04-07T05:40:55.000Z | libFRIClient/src/base/friClientApplication.cpp | thinkexist1989/iiwa_connectivity_fri_examples | 7a0ed010ce41ed774fc037ab11219eba824b2ae4 | [
"MIT"
] | null | null | null | libFRIClient/src/base/friClientApplication.cpp | thinkexist1989/iiwa_connectivity_fri_examples | 7a0ed010ce41ed774fc037ab11219eba824b2ae4 | [
"MIT"
] | null | null | null | // version: 1.7
/**
DISCLAIMER OF WARRANTY
The Software is provided "AS IS" and "WITH ALL FAULTS,"
without warranty of any kind, including without limitation the warranties
of merchantability, fitness for a particular purpose and non-infringement.
KUKA makes no warranty that the Software is free of defects or is s... | 32.148571 | 96 | 0.585851 | thinkexist1989 |
49df51121939c40f1c347a5d84b8f2c9c642cf52 | 1,811 | cpp | C++ | Source/UnrealCPP/ActorLineTrace/ActorLineTrace.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 6 | 2018-04-22T15:27:39.000Z | 2021-11-02T17:33:58.000Z | Source/UnrealCPP/ActorLineTrace/ActorLineTrace.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | null | null | null | Source/UnrealCPP/ActorLineTrace/ActorLineTrace.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 4 | 2018-07-26T15:39:46.000Z | 2020-12-28T08:10:35.000Z | // Harrison McGuire
// UE4 Version 4.19.0
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com
#include "ActorLineTrace.h"
#include "ConstructorHelpers.h"
#include "DrawDebugHelpers.h"
// Sets default values
AActorLineTrace::AActorLineTrace()
{
// Set this actor to ca... | 28.746032 | 151 | 0.732192 | Harrison1 |
49e067ba72c9284c68a76f2dc24c67c337584b14 | 3,539 | hpp | C++ | cmake/templates/spirv.in.hpp | EEnginE/engine | 9d8fe2c8a3051b8d25a15debdf058ac900f6a7fc | [
"Apache-2.0"
] | 28 | 2015-01-02T19:06:37.000Z | 2018-11-23T11:34:17.000Z | cmake/templates/spirv.in.hpp | EEnginE/engine | 9d8fe2c8a3051b8d25a15debdf058ac900f6a7fc | [
"Apache-2.0"
] | null | null | null | cmake/templates/spirv.in.hpp | EEnginE/engine | 9d8fe2c8a3051b8d25a15debdf058ac900f6a7fc | [
"Apache-2.0"
] | 6 | 2015-01-10T16:48:14.000Z | 2019-10-08T13:43:44.000Z | /*!
* \file @FILENAME_HPP@
* \brief \b Classes: \a @CLASSNAME@
* \warning This file was automatically generated by createSPIRV!
*/
// clang-format off
#pragma once
#include "defines.hpp"
#include "rShaderBase.hpp"
namespace e_engine {
class iInit;
class rWorld;
class @CLASSNAME@ : public rShaderBase {
privat... | 20.456647 | 67 | 0.558915 | EEnginE |
49e2ae5f9a64d8219c64ae96f89c3f5626f47961 | 5,795 | cpp | C++ | src/geometry/similarity_graph_optimization.cpp | bitlw/EGSfM | d5b4260d38237c6bd814648cadcf1fcf2f8f5d31 | [
"BSD-3-Clause"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | src/geometry/similarity_graph_optimization.cpp | bitlw/EGSfM | d5b4260d38237c6bd814648cadcf1fcf2f8f5d31 | [
"BSD-3-Clause"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | src/geometry/similarity_graph_optimization.cpp | bitlw/EGSfM | d5b4260d38237c6bd814648cadcf1fcf2f8f5d31 | [
"BSD-3-Clause"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | #include "similarity_graph_optimization.h"
#include <unordered_map>
#include <vector>
using namespace std;
namespace GraphSfM {
namespace geometry {
SimilarityGraphOptimization::SimilarityGraphOptimization()
{
}
SimilarityGraphOptimization::~SimilarityGraphOptimization()
{
}
// void SimilarityGraphOptimization:... | 36.21875 | 104 | 0.654012 | bitlw |
49e59d73d462c2f808ff4e110e50602d30b01dfc | 5,594 | cpp | C++ | Source/DedicatedServerTest/Private/GameFramework/Pawn/MyPawn.cpp | dorgonman/DedicatedServerTest | 8bfe6e8357929fbd68be52e11ba27f78492931c8 | [
"BSL-1.0"
] | 1 | 2019-03-31T22:54:37.000Z | 2019-03-31T22:54:37.000Z | Source/DedicatedServerTest/Private/GameFramework/Pawn/MyPawn.cpp | dorgonman/DedicatedServerTest | 8bfe6e8357929fbd68be52e11ba27f78492931c8 | [
"BSL-1.0"
] | null | null | null | Source/DedicatedServerTest/Private/GameFramework/Pawn/MyPawn.cpp | dorgonman/DedicatedServerTest | 8bfe6e8357929fbd68be52e11ba27f78492931c8 | [
"BSL-1.0"
] | 1 | 2021-10-21T04:37:37.000Z | 2021-10-21T04:37:37.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "MyPawn.h"
#include "DedicatedServerTest.h"
#include "Net/UnrealNetwork.h"
#include "MyBlueprintFunctionLibrary.h"
#include "MyFloatingPawnMovement.h"
// Sets default values
AMyPawn::AMyPawn()
{
// Set this pawn to call Tick() ... | 34.745342 | 136 | 0.774401 | dorgonman |
49ea26f9462238bba1026969c5bc9e4f690747d2 | 3,821 | cc | C++ | examples/encrypted_content_keys.cc | google/cpix_cc | eb79e1aed6cd6181716c66cd5d670cfc90907192 | [
"Apache-2.0"
] | 11 | 2019-08-16T21:05:32.000Z | 2021-02-07T00:33:09.000Z | examples/encrypted_content_keys.cc | google/cpix_cc | eb79e1aed6cd6181716c66cd5d670cfc90907192 | [
"Apache-2.0"
] | 1 | 2020-09-28T11:16:37.000Z | 2020-09-28T11:16:37.000Z | examples/encrypted_content_keys.cc | google/cpix_cc | eb79e1aed6cd6181716c66cd5d670cfc90907192 | [
"Apache-2.0"
] | 6 | 2019-08-18T17:26:35.000Z | 2021-10-14T17:12:15.000Z | // Copyright 2019 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 wri... | 48.367089 | 78 | 0.66213 | google |
49ef58af60483ed2f8482a0ab8595d5e31d41b7c | 973 | cpp | C++ | test_for_fork.cpp | wangzhicheng2013/system_call_cpu_bind | e01c991ad3fef0b166ef787b5bc384dbbee82038 | [
"MIT"
] | null | null | null | test_for_fork.cpp | wangzhicheng2013/system_call_cpu_bind | e01c991ad3fef0b166ef787b5bc384dbbee82038 | [
"MIT"
] | null | null | null | test_for_fork.cpp | wangzhicheng2013/system_call_cpu_bind | e01c991ad3fef0b166ef787b5bc384dbbee82038 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <unistd.h>
#include <iostream>
#include <thread>
#include "cpu_utility.hpp"
void exhaust_cpu() {
std::cout << system("./exhaust_cpu") << std::endl;
}
int main() {
//int cpu_no = 21;
//G_CPU_UTILITY.bind_cpu(cpu_no);
std::cout << G_CPU_UTILITY.bind_all_cpus() << std... | 29.484848 | 77 | 0.536485 | wangzhicheng2013 |
49f01a0317bad0f30a692d106144dce0af9a2fa6 | 220 | cpp | C++ | cpp/iostream/istringstream.cpp | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | cpp/iostream/istringstream.cpp | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | cpp/iostream/istringstream.cpp | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
int main(void) {
std::string buffer("Hello World!");
std::istringstream in(buffer);
std::string inBuffer;
in >> inBuffer;
std::cout << inBuffer << std::endl;
return 0;
}
| 13.75 | 36 | 0.659091 | wjiec |
49f0f59f8c86396969102b15e4fbc44a81e02c48 | 9,080 | cpp | C++ | alica_engine/src/engine/AlicaEngine.cpp | carpe-noctem-cassel/alica | c35473090ca46dafb66ac8fa429a1923a2af05c7 | [
"MIT"
] | 12 | 2015-06-09T07:19:50.000Z | 2018-11-20T10:40:08.000Z | alica_engine/src/engine/AlicaEngine.cpp | dasys-lab/alica-engine | c35473090ca46dafb66ac8fa429a1923a2af05c7 | [
"MIT"
] | 4 | 2015-09-10T10:23:33.000Z | 2018-04-20T12:07:34.000Z | alica_engine/src/engine/AlicaEngine.cpp | carpe-noctem-cassel/alica | c35473090ca46dafb66ac8fa429a1923a2af05c7 | [
"MIT"
] | 4 | 2016-06-13T12:04:57.000Z | 2018-07-04T08:11:35.000Z |
#include "engine/AlicaEngine.h"
#include "engine/BehaviourPool.h"
#include "engine/IConditionCreator.h"
#include "engine/IRoleAssignment.h"
#include "engine/Logger.h"
#include "engine/PlanBase.h"
#include "engine/PlanRepository.h"
#include "engine/StaticRoleAssignment.h"
#include "engine/TeamObserver.h"
#include "engi... | 27.598784 | 147 | 0.685573 | carpe-noctem-cassel |
49f1571c982a67dcac7b10394f0279546b656d05 | 841 | cpp | C++ | libraries/audio/src/AudioInjectorOptions.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | libraries/audio/src/AudioInjectorOptions.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | libraries/audio/src/AudioInjectorOptions.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | //
// AudioInjectorOptions.cpp
// libraries/audio/src
//
// Created by Stephen Birarda on 1/2/2014.
// Copyright 2014 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 "AudioInjectorOpti... | 26.28125 | 88 | 0.715815 | Adrianl3d |
49f8cb77ddc9cda152a65c6b539a4ae5f3182ed1 | 3,714 | hpp | C++ | MainGame/gameplay/SavedGame.hpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 63 | 2017-05-18T16:10:19.000Z | 2022-03-26T18:05:59.000Z | MainGame/gameplay/SavedGame.hpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 1 | 2018-02-10T12:40:33.000Z | 2019-01-11T07:33:13.000Z | MainGame/gameplay/SavedGame.hpp | JoaoBaptMG/ReboundTheGame | 48c3d8b81de1f7fa7c622c3f815860257ccdba8e | [
"MIT"
] | 4 | 2017-12-31T21:38:14.000Z | 2019-11-20T15:13:00.000Z | //
// Copyright (c) 2016-2018 João Baptista de Paula e Silva.
//
// 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, cop... | 30.694215 | 99 | 0.635703 | JoaoBaptMG |
49fb4c69e792dd951d888bab71bca17d8ccc9350 | 668 | hpp | C++ | src/onthepitch/player/controller/strategies/offtheball/default_off.hpp | iloveooz/GameplayFootball | 257a871de76b5096776e553cfe7abd39471f427a | [
"Unlicense"
] | 177 | 2017-11-03T09:01:46.000Z | 2022-03-30T13:52:00.000Z | src/onthepitch/player/controller/strategies/offtheball/default_off.hpp | congkay8/GameplayFootballx | eea12819257d428dc4dd0cc033501fb59bb5fbae | [
"Unlicense"
] | 16 | 2017-11-06T22:38:43.000Z | 2021-07-28T03:25:44.000Z | src/onthepitch/player/controller/strategies/offtheball/default_off.hpp | congkay8/GameplayFootballx | eea12819257d428dc4dd0cc033501fb59bb5fbae | [
"Unlicense"
] | 48 | 2017-12-19T17:03:28.000Z | 2022-03-09T08:11:34.000Z | // written by bastiaan konings schuiling 2008 - 2015
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#ifndef _HPP_STRATEGY_DEFAULT_OFFENSE
#define _HPP_STRATE... | 29.043478 | 133 | 0.747006 | iloveooz |
49fc009784837a6b4ab07f4d4c829bf99c16123c | 6,001 | cc | C++ | content/browser/download/parallel_download_utils.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-05-24T13:52:28.000Z | 2021-05-24T13:53:10.000Z | content/browser/download/parallel_download_utils.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/download/parallel_download_utils.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2018-03-12T07:58:10.000Z | 2019-08-31T04:53:58.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/download/parallel_download_utils.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_number_conversio... | 35.093567 | 80 | 0.719547 | metux |
49fc46b7676097f8e4fbf75dd864a23a63f4bf13 | 1,871 | cpp | C++ | lxt/gfx/unit_tests/test_model.cpp | justinsaunders/luxatron | d474c21fb93b8ee9230ad25e6113d43873d75393 | [
"MIT"
] | null | null | null | lxt/gfx/unit_tests/test_model.cpp | justinsaunders/luxatron | d474c21fb93b8ee9230ad25e6113d43873d75393 | [
"MIT"
] | 2 | 2017-06-08T21:51:34.000Z | 2017-06-08T21:51:56.000Z | lxt/gfx/unit_tests/test_model.cpp | justinsaunders/luxatron | d474c21fb93b8ee9230ad25e6113d43873d75393 | [
"MIT"
] | null | null | null | /*
* test_model.cpp
* test_runner
*
* Created by Justin on 16/04/09.
* Copyright 2009 Monkey Style Games. All rights reserved.
*
*/
#include <UnitTest++.h>
#include "gfx/gfx.h"
#include "core/archive.h"
namespace
{
// DummyTexturePool just inserts a dummy texture, so it never has to be
// "loaded".
cl... | 19.091837 | 75 | 0.622662 | justinsaunders |
49ff3070f01c393e688b6cc61368b2f06e032413 | 5,283 | cpp | C++ | src/stream/byte_stream.cpp | egranata/krakatau | 866a26580e9890d5fb0961280b9827f347b3776e | [
"Apache-2.0"
] | 13 | 2019-05-02T23:28:36.000Z | 2021-04-04T02:38:01.000Z | src/stream/byte_stream.cpp | egranata/krakatau | 866a26580e9890d5fb0961280b9827f347b3776e | [
"Apache-2.0"
] | 28 | 2019-05-04T16:09:37.000Z | 2019-06-18T02:03:50.000Z | src/stream/byte_stream.cpp | egranata/krakatau | 866a26580e9890d5fb0961280b9827f347b3776e | [
"Apache-2.0"
] | 1 | 2020-07-23T20:06:40.000Z | 2020-07-23T20:06:40.000Z | // Copyright 2019 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 24.802817 | 122 | 0.587166 | egranata |
b701dc946000c6a0c66e0baff00475bfcfbb4553 | 4,217 | cpp | C++ | utests/khttp_request_tests.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | utests/khttp_request_tests.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | utests/khttp_request_tests.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | 1 | 2021-08-20T16:15:01.000Z | 2021-08-20T16:15:01.000Z | #include "catch.hpp"
#include <dekaf2/khttp_request.h>
#include <dekaf2/krestserver.h>
#include <dekaf2/kfilesystem.h>
using namespace dekaf2;
TEST_CASE("KHTTPRequest")
{
SECTION("KInHTTPRequestLine")
{
KInHTTPRequestLine RL;
CHECK (RL.IsValid() == false);
CHECK (RL.Get() == "");
CHECK (RL.GetMe... | 33.468254 | 77 | 0.551103 | ridgeware |
8e661766facbb488208d7101765b298150ef640f | 19,740 | cc | C++ | source/gpu_perf_api_dx11/dx11_gpa_implementor.cc | roobre/gpu_performance_api | 948c67c6fd04222f6b4ee038a9b940f3fd60d0d9 | [
"MIT"
] | null | null | null | source/gpu_perf_api_dx11/dx11_gpa_implementor.cc | roobre/gpu_performance_api | 948c67c6fd04222f6b4ee038a9b940f3fd60d0d9 | [
"MIT"
] | null | null | null | source/gpu_perf_api_dx11/dx11_gpa_implementor.cc | roobre/gpu_performance_api | 948c67c6fd04222f6b4ee038a9b940f3fd60d0d9 | [
"MIT"
] | null | null | null | //==============================================================================
// Copyright (c) 2017-2020 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief DX11 GPA Implementation
//==============================================================================... | 38.705882 | 154 | 0.496454 | roobre |
8e68c5de4e49a1a0e094ae51daa5a6be2ca4ac42 | 1,434 | cpp | C++ | OVP/D3D7Client/MeshMgr.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | OVP/D3D7Client/MeshMgr.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | OVP/D3D7Client/MeshMgr.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // Copyright (c) Martin Schweiger
// Licensed under the MIT License
// ==============================================================
// ORBITER VISUALISATION PROJECT (OVP)
// D3D7 Client module
// ==============================================================
// ==================================================... | 21.727273 | 65 | 0.545328 | Ybalrid |
8e6d0304b47c03f2db491d115412c97994ee9042 | 781 | cpp | C++ | tests/test_Simulation.cpp | lbowes/falcon-9-simulation | dd65a2daf8386c3a874766d73b1fc1efb334b843 | [
"MIT"
] | 5 | 2020-07-28T21:26:23.000Z | 2021-11-02T14:11:41.000Z | tests/test_Simulation.cpp | lbowes/Falcon-9-Simulation | dd65a2daf8386c3a874766d73b1fc1efb334b843 | [
"MIT"
] | 36 | 2020-06-28T18:47:14.000Z | 2020-10-11T09:45:39.000Z | tests/test_Simulation.cpp | lbowes/falcon-9-simulation | dd65a2daf8386c3a874766d73b1fc1efb334b843 | [
"MIT"
] | 1 | 2020-01-14T17:07:57.000Z | 2020-01-14T17:07:57.000Z | #include "../3rd_party/catch.hpp"
#include "Simulation.h"
#include <fstream>
static const char* outputFile = "output.json";
static bool fileExists(const char* file) {
std::ifstream f(file);
return f.good();
}
static bool fileEmpty(const char* file) {
std::ifstream f(file);
return f.peek() == std:... | 20.025641 | 57 | 0.569782 | lbowes |
8e6da4989768f7e0aba7446a6aabff2d32522ac0 | 2,300 | cpp | C++ | tests/Cases/LowLevel/ProtocolTypes/TestProtocolVint.cpp | cpv-project/cpv-cql-driver | 66eebfd4e9ec75dc49cd4a7073a51a830236807a | [
"MIT"
] | 41 | 2018-01-23T09:27:32.000Z | 2021-02-15T15:49:07.000Z | tests/Cases/LowLevel/ProtocolTypes/TestProtocolVint.cpp | cpv-project/cpv-cql-driver | 66eebfd4e9ec75dc49cd4a7073a51a830236807a | [
"MIT"
] | 20 | 2018-01-25T04:25:48.000Z | 2019-03-09T02:49:41.000Z | tests/Cases/LowLevel/ProtocolTypes/TestProtocolVint.cpp | cpv-project/cpv-cql-driver | 66eebfd4e9ec75dc49cd4a7073a51a830236807a | [
"MIT"
] | 5 | 2018-04-10T12:19:13.000Z | 2020-02-17T03:30:50.000Z | #include <CQLDriver/Common/Exceptions/DecodeException.hpp>
#include <LowLevel/ProtocolTypes/ProtocolVint.hpp>
#include <TestUtility/GTestUtils.hpp>
TEST(TestProtocolVint, getset) {
cql::ProtocolVint value(1);
ASSERT_EQ(value.get(), 1);
value.set(0x7fff0000aaaaeeee);
ASSERT_EQ(value.get(), static_cast<std::int64_t>... | 24.210526 | 74 | 0.668696 | cpv-project |
8e73356133631180413a6a6a9a02b0d4aa600ec9 | 3,152 | cpp | C++ | Core/src/global.cpp | dimitar-asenov/Envision | 1ab5c846fca502b7fe73ae4aff59e8746248446c | [
"BSD-3-Clause"
] | 75 | 2015-01-18T13:29:43.000Z | 2022-01-14T08:02:01.000Z | Core/src/global.cpp | dimitar-asenov/Envision | 1ab5c846fca502b7fe73ae4aff59e8746248446c | [
"BSD-3-Clause"
] | 364 | 2015-01-06T10:20:21.000Z | 2018-12-17T20:12:28.000Z | Core/src/global.cpp | dimitar-asenov/Envision | 1ab5c846fca502b7fe73ae4aff59e8746248446c | [
"BSD-3-Clause"
] | 14 | 2015-01-09T00:44:24.000Z | 2022-02-22T15:01:44.000Z | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** following c... | 45.028571 | 120 | 0.703046 | dimitar-asenov |
8e73c340a916df129e7692a9710290f863693c31 | 2,395 | hpp | C++ | SpaceBomber/Linux/graph/Splash.hpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 40 | 2018-01-28T14:23:27.000Z | 2022-03-05T15:57:47.000Z | SpaceBomber/Linux/graph/Splash.hpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 1 | 2021-10-05T09:03:51.000Z | 2021-10-05T09:03:51.000Z | SpaceBomber/Linux/graph/Splash.hpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 73 | 2019-01-07T18:47:00.000Z | 2022-03-31T08:48:38.000Z | //
// Splash.hpp for hey in /home/cailla_o/Work/C++/cpp_indie_studio/graph
//
// Made by Oihan Caillaud
// Login <cailla_o@epitech.net>
//
// Started on Mon May 30 10:11:42 2016 Oihan Caillaud
// Last update Thu Jun 2 00:14:21 2016
// Last update Tue May 31 11:42:52 2016
//
#ifndef SPLASH_HPP_
#define SPLASH_HP... | 30.705128 | 80 | 0.7119 | 667MARTIN |
8e74c6d36bab66a364db7720133d1d6155667a5a | 360 | cpp | C++ | Stereolabs/Source/Stereolabs/Private/Threading/StereolabsRunnable.cpp | stereolabs/zed-unreal-plugin | 0fabf29edc84db1126f0c4f73b9ce501e322be96 | [
"MIT"
] | 38 | 2018-02-27T22:53:56.000Z | 2022-02-10T05:46:51.000Z | Stereolabs/Source/Stereolabs/Private/Threading/StereolabsRunnable.cpp | HuangArmagh/zed-unreal-plugin | 3bd8872577f49e2eb5f6cb8a6a610a4c786f6104 | [
"MIT"
] | 14 | 2018-05-26T03:15:16.000Z | 2022-03-02T14:34:10.000Z | Stereolabs/Source/Stereolabs/Private/Threading/StereolabsRunnable.cpp | HuangArmagh/zed-unreal-plugin | 3bd8872577f49e2eb5f6cb8a6a610a4c786f6104 | [
"MIT"
] | 16 | 2018-01-23T22:55:34.000Z | 2021-12-20T18:34:08.000Z | //======= Copyright (c) Stereolabs Corporation, All rights reserved. ===============
#include "StereolabsPrivatePCH.h"
#include "Stereolabs/Public/Threading/StereolabsRunnable.h"
FSlRunnable::FSlRunnable()
:
Thread(nullptr),
bIsRunning(false),
bIsPaused(false),
bIsSleeping(false)
{
}
FSlRunnable::~FSlRunnable(... | 18 | 84 | 0.705556 | stereolabs |
8e7744dd7d2cee3e4e72f48a233d862b6f13e346 | 6,891 | cpp | C++ | src/xray/engine/sources/engine_world_editor.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/engine/sources/engine_world_editor.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/engine/sources/engine_world_editor.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 17.06.2009
// Author : Dmitriy Iassenev
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "engine_world.h"
#include "rpc.h"
#i... | 28.475207 | 111 | 0.681759 | ixray-team |
8e7f1d33373959812148cf82e370019cbcb8c484 | 3,553 | cpp | C++ | Diagram/DiagramTextItem.cpp | devonchenc/NovaImage | 3d17166f9705ba23b89f1aefd31ac2db97385b1c | [
"MIT"
] | null | null | null | Diagram/DiagramTextItem.cpp | devonchenc/NovaImage | 3d17166f9705ba23b89f1aefd31ac2db97385b1c | [
"MIT"
] | null | null | null | Diagram/DiagramTextItem.cpp | devonchenc/NovaImage | 3d17166f9705ba23b89f1aefd31ac2db97385b1c | [
"MIT"
] | null | null | null | #include "DiagramTextItem.h"
#include <QDebug>
#include <QTextCursor>
#include "../Core/GlobalFunc.h"
DiagramTextItem::DiagramTextItem(QGraphicsItem* parent)
: QGraphicsTextItem(parent)
{
setFlag(QGraphicsItem::ItemIsMovable);
setFlag(QGraphicsItem::ItemIsSelectable);
_positionLastTime = QPointF(0, 0... | 30.62931 | 86 | 0.71714 | devonchenc |
8e7f4570bad4e822a335012a8954ab535981c82a | 633 | cpp | C++ | clang/test/SemaCXX/template-multiple-attr-propagation.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | clang/test/SemaCXX/template-multiple-attr-propagation.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/SemaCXX/template-multiple-attr-propagation.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: %clang_cc1 %s -Wthread-safety-analysis -verify -fexceptions
// expected-no-diagnostics
class Mutex {
public:
void Lock() __attribute__((exclusive_lock_function()));
void Unlock() __attribute__((unlock_function()));
};
class A {
public:
Mutex mu1, mu2;
void foo() __attribute__((exclusive_locks_require... | 21.1 | 109 | 0.685624 | medismailben |
8e80230a4682d1e69daf8eb7cd916a773b12efc3 | 2,059 | hpp | C++ | ThirdParty-mod/java2cpp/java/lang/Void.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/lang/Void.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/lang/Void.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.lang.Void
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENTATION
... | 22.380435 | 127 | 0.650801 | kakashidinho |
8e887ecf4d7872203061f3c093aa07eedda04a7a | 2,339 | cc | C++ | modules/kernel/src/debugger/DebugEntry.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 12 | 2018-12-03T15:16:52.000Z | 2022-03-16T21:07:13.000Z | modules/kernel/src/debugger/DebugEntry.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | null | null | null | modules/kernel/src/debugger/DebugEntry.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 2 | 2018-11-13T01:30:41.000Z | 2021-08-12T18:22:26.000Z | //===================================================================================================================
//
// DebugStart.cc -- This is the entry point for the kernel debugger
//
// Copyright (c) 2017-2020 -- Adam Clark
// Licensed under "THE BEER-WARE LICENSE"
// See License.md for ... | 30.376623 | 117 | 0.436084 | eryjus |
8e8b7903b026478e454007fe1df9115c428d6744 | 5,521 | cpp | C++ | tests/Unit/Evolution/EventsAndTriggers/Test_EventsAndTriggers.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | tests/Unit/Evolution/EventsAndTriggers/Test_EventsAndTriggers.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | tests/Unit/Evolution/EventsAndTriggers/Test_EventsAndTriggers.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
// This file checks the Completion event and the basic logical
// triggers (Always, And, Not, and Or).
#include "tests/Unit/TestingFramework.hpp"
#include <algorithm>
#include <memory>
#include <pup.h>
#include <string>
#include <unordered_map>
#... | 32.668639 | 93 | 0.63503 | marissawalker |
8e8d2f55740dd591fc5dab9a9c969cb5ba645222 | 882 | cpp | C++ | src/my_utils/vector2_utils.cpp | lobinuxsoft/AsteroidXD-SFML | 66fb355dfb20ef840068ad948bef9fc97a75f7cd | [
"MIT"
] | null | null | null | src/my_utils/vector2_utils.cpp | lobinuxsoft/AsteroidXD-SFML | 66fb355dfb20ef840068ad948bef9fc97a75f7cd | [
"MIT"
] | 16 | 2021-11-09T15:22:24.000Z | 2021-11-23T14:02:43.000Z | src/my_utils/vector2_utils.cpp | lobinuxsoft/AsteroidXD-SFML | 66fb355dfb20ef840068ad948bef9fc97a75f7cd | [
"MIT"
] | null | null | null | #include "vector2_utils.h"
float Vector2Angle(Vector2f v1, Vector2f v2)
{
float result = atan2f(v2.y - v1.y, v2.x - v1.x) * (180.0f / PI);
if (result < 0) result += 360.0f;
return result;
}
float Vector2Distance(Vector2f v1, Vector2f v2)
{
return sqrtf((v1.x - v2.x) * (v1.x - v2.x) + (v1.y - v2.y) * (... | 21 | 80 | 0.620181 | lobinuxsoft |
8e8e54a5dc9f20dc63765ef2a60be805e89c0bea | 4,428 | cpp | C++ | Cutscene Manager Handout/Motor2D/j1CutsceneManager.cpp | pauraurell/Cutscene-Manager | f887b2a14e1c4e3623d2d8933d7893280ab27f53 | [
"MIT"
] | null | null | null | Cutscene Manager Handout/Motor2D/j1CutsceneManager.cpp | pauraurell/Cutscene-Manager | f887b2a14e1c4e3623d2d8933d7893280ab27f53 | [
"MIT"
] | null | null | null | Cutscene Manager Handout/Motor2D/j1CutsceneManager.cpp | pauraurell/Cutscene-Manager | f887b2a14e1c4e3623d2d8933d7893280ab27f53 | [
"MIT"
] | null | null | null | #include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1Textures.h"
#include "j1Scene.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1CutsceneCharacters.h"
#include "j1CutsceneManager.h"
j1CutsceneManager::j1CutsceneManager() : j1Module()
{
name.create("cutscene");
}
//... | 24.464088 | 131 | 0.727191 | pauraurell |
8e8fb299899a755581ac3a9945f0b7b0ae52f35b | 362 | cpp | C++ | ch04/th4-5-1.cpp | nanonashy/PPPUCpp2ndJP | b829867e9e21bf59d9c5ea6c2fbe96bb03597301 | [
"MIT"
] | 3 | 2021-12-17T17:25:18.000Z | 2022-03-02T15:52:23.000Z | ch04/th4-5-1.cpp | nashinium/PPPUCpp2ndJP | b829867e9e21bf59d9c5ea6c2fbe96bb03597301 | [
"MIT"
] | 1 | 2020-04-22T07:16:34.000Z | 2020-04-22T10:04:04.000Z | ch04/th4-5-1.cpp | nashinium/PPPUCpp2ndJP | b829867e9e21bf59d9c5ea6c2fbe96bb03597301 | [
"MIT"
] | 1 | 2020-04-22T08:13:51.000Z | 2020-04-22T08:13:51.000Z | #include "../include/std_lib_facilities.h"
int square(int x) {
int result{0};
for (int i = 1; i <= x; ++i)
result += x;
return result;
}
int main() {
std::cout << "Number\tSquare\n";
for (int i = 1; i <= 100; ++i)
std::cout << i << '\t' << square(i) << std::endl;
... | 19.052632 | 58 | 0.477901 | nanonashy |
8e8fcbbb94e6ebae074192cb4816cf0be70a6a58 | 14,565 | cpp | C++ | src/llri-vk/detail/device.cpp | Rythe-Interactive/Rythe-LLRI | 0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05 | [
"MIT"
] | 2 | 2022-02-08T07:11:32.000Z | 2022-02-08T08:10:31.000Z | src/llri-vk/detail/device.cpp | Rythe-Interactive/Rythe-LLRI | 0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05 | [
"MIT"
] | 1 | 2022-02-14T18:26:31.000Z | 2022-02-14T18:26:31.000Z | src/llri-vk/detail/device.cpp | Rythe-Interactive/Rythe-LLRI | 0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05 | [
"MIT"
] | null | null | null | /**
* @file device.cpp
* Copyright (c) 2021 Leon Brands, Rythe Interactive
* SPDX-License-Identifier: MIT
*/
#include <llri/llri.hpp>
#include <llri-vk/utils.hpp>
namespace llri
{
result Device::impl_createCommandGroup(queue_type type, CommandGroup** cmdGroup)
{
auto* output = new CommandGroup();
... | 42.340116 | 160 | 0.646413 | Rythe-Interactive |
8e90fefa694ca74307c3d8b7758f4510a1e6acf2 | 11,757 | cpp | C++ | src/args.cpp | valet-bridge/valet | 8e20da1b496cb6fa42894b9ef420375cb7a5d2cd | [
"Apache-2.0"
] | null | null | null | src/args.cpp | valet-bridge/valet | 8e20da1b496cb6fa42894b9ef420375cb7a5d2cd | [
"Apache-2.0"
] | 1 | 2015-11-15T08:20:33.000Z | 2018-03-04T09:48:23.000Z | src/args.cpp | valet-bridge/valet | 8e20da1b496cb6fa42894b9ef420375cb7a5d2cd | [
"Apache-2.0"
] | null | null | null | /*
Valet, a generalized Butler scorer for bridge.
Copyright (C) 2015 by Soren Hein.
See LICENSE and README.
*/
// These functions parse the command line for options.
#include <iostream>
#include <iomanip>
#include <string>
#include <stdlib.h>
#include <string.h>
#include "args.h"
#include "cst.h"
usin... | 25.06823 | 79 | 0.514417 | valet-bridge |
8e91c7f6dbd37560842a3312c31bd1bb3530d8c5 | 1,258 | cpp | C++ | source/ktwgEngine/Shaders/cpp/SimpleForwardParams.cpp | JasonWyx/ktwgEngine | 410ba799f7000895995b9f9fc59d738f293f8871 | [
"MIT"
] | null | null | null | source/ktwgEngine/Shaders/cpp/SimpleForwardParams.cpp | JasonWyx/ktwgEngine | 410ba799f7000895995b9f9fc59d738f293f8871 | [
"MIT"
] | 12 | 2019-09-15T07:48:18.000Z | 2019-12-08T17:23:22.000Z | source/ktwgEngine/Shaders/cpp/SimpleForwardParams.cpp | JasonWyx/ktwgEngine | 410ba799f7000895995b9f9fc59d738f293f8871 | [
"MIT"
] | null | null | null | #include "SimpleForwardParams.h"
#include "../../d3d11staticresources.h"
#include "../../d3d11device.h"
#include "../../d3d11renderapi.h"
#include "../../d3d11hardwarebuffer.h"
DEFINE_STATIC_BUFFER(SimpleForwardParamsCbuf);
void ShaderInputs::SimpleForwardParams::InitializeHWResources()
{
D3D11Device* device = D3D1... | 33.105263 | 168 | 0.744038 | JasonWyx |
8e9237b34847f87599b4046af1bf3917cb94a324 | 1,985 | cpp | C++ | catdoor_v2/tests/solenoids/src/main.cpp | flupes/catdoor | bf718f4ebdfb8cc60c04d42d3d88a4a875f0bc7f | [
"Apache-2.0"
] | null | null | null | catdoor_v2/tests/solenoids/src/main.cpp | flupes/catdoor | bf718f4ebdfb8cc60c04d42d3d88a4a875f0bc7f | [
"Apache-2.0"
] | null | null | null | catdoor_v2/tests/solenoids/src/main.cpp | flupes/catdoor | bf718f4ebdfb8cc60c04d42d3d88a4a875f0bc7f | [
"Apache-2.0"
] | null | null | null | #include <Arduino.h>
#include "m0_hf_pwm.h"
#include "solenoids.h"
#include "utils.h"
Solenoids& sol = Solenoids::Instance();
void setup() {
pwm_configure();
#ifdef USE_SERIAL
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect to start the app
}
#endif
PRINTLN("open in 5s");
... | 18.726415 | 74 | 0.63073 | flupes |
8e9305816904c0b57e845732123269d7b633b295 | 935 | cc | C++ | list/reversed_linked_list.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | list/reversed_linked_list.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | list/reversed_linked_list.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | // Reverse Linked List
// https://leetcode.com/problems/reverse-linked-list/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
#include <cassert>
#include <iostream>
using namespace std;
struct ListNode {
... | 19.479167 | 53 | 0.562567 | windscope |
8e93b94653d2a195f6e71e7d32f00cd54d02a1ec | 1,255 | cpp | C++ | source/model-generator/JoinOverrideGenerator.cpp | bbhunter/mariana-trench | 3973f047446182977809ea4ae2b76153a35943f8 | [
"MIT"
] | null | null | null | source/model-generator/JoinOverrideGenerator.cpp | bbhunter/mariana-trench | 3973f047446182977809ea4ae2b76153a35943f8 | [
"MIT"
] | null | null | null | source/model-generator/JoinOverrideGenerator.cpp | bbhunter/mariana-trench | 3973f047446182977809ea4ae2b76153a35943f8 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <mariana-trench/Model.h>
#include <mariana-trench/model-generator/JoinOverrideGenerator.h>
namespace marianatrench {
s... | 33.026316 | 74 | 0.701195 | bbhunter |
8e95d0497dcaaf0712c7bde70764b4140ed2013d | 3,306 | cpp | C++ | src/core/tests/visitors/op/interpolate.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/core/tests/visitors/op/interpolate.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/core/tests/visitors/op/interpolate.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "ngraph/op/util/attr_types.hpp"
#include "ngraph/opsets/opset1.hpp"
#include "ngraph/opsets/opset3.hpp"
#include "ngraph/opsets/opset4.hpp"
#include "ngraph/opsets/opset... | 42.384615 | 100 | 0.740472 | ryanloney |
8e97a5b95fe2ad04a91d0beb91126d71b13e1664 | 1,885 | cpp | C++ | state.cpp | sl424/hunting-game | f79bea39a061c8b8cfbf430ab0d73cd6539ddb0f | [
"Apache-2.0"
] | null | null | null | state.cpp | sl424/hunting-game | f79bea39a061c8b8cfbf430ab0d73cd6539ddb0f | [
"Apache-2.0"
] | null | null | null | state.cpp | sl424/hunting-game | f79bea39a061c8b8cfbf430ab0d73cd6539ddb0f | [
"Apache-2.0"
] | null | null | null | /***************************************************
* Program Filename: state.cpp
* Author: Chewie Lin
* Date: 12 Feb 2016
* Description: main driver functions
***************************************************/
#include "state.hpp"
/*****************************************
* Function: pEnter()
* Description... | 24.802632 | 63 | 0.448276 | sl424 |
8e9a7dfe8704ce896e0a39c9eea55cf64eb395f7 | 89 | cpp | C++ | applications/Example/Example.cpp | 203Electronics/MatrixOS | ea6d84b21a97f58e2077d37d5645c5339f344d77 | [
"MIT"
] | 8 | 2021-12-30T05:29:16.000Z | 2022-03-30T08:44:45.000Z | applications/Example/Example.cpp | 203Electronics/MatrixOS | ea6d84b21a97f58e2077d37d5645c5339f344d77 | [
"MIT"
] | null | null | null | applications/Example/Example.cpp | 203Electronics/MatrixOS | ea6d84b21a97f58e2077d37d5645c5339f344d77 | [
"MIT"
] | null | null | null | #include "Example.h"
void ExampleAPP::Setup()
{
}
void ExampleAPP::Loop()
{
} | 7.416667 | 24 | 0.58427 | 203Electronics |
8ea74d1a47c9c79b1f9ab67b2ce4a36f7bc94a10 | 1,380 | cc | C++ | test/HttpServer/compute_unittest.cc | wfrest/wfrest | 5aa8c3ab5ad749ef8e9b93c8aa32d8c475062dde | [
"Apache-2.0"
] | 312 | 2021-12-05T15:17:27.000Z | 2022-03-30T10:53:01.000Z | test/HttpServer/compute_unittest.cc | chanchann/wfrest | 5aa8c3ab5ad749ef8e9b93c8aa32d8c475062dde | [
"Apache-2.0"
] | 15 | 2021-12-14T16:01:15.000Z | 2022-03-15T04:27:47.000Z | test/HttpServer/compute_unittest.cc | wfrest/wfrest | 5aa8c3ab5ad749ef8e9b93c8aa32d8c475062dde | [
"Apache-2.0"
] | 46 | 2021-12-06T08:08:45.000Z | 2022-03-01T06:26:38.000Z | #include "workflow/WFFacilities.h"
#include "workflow/Workflow.h"
#include <gtest/gtest.h>
#include "wfrest/HttpServer.h"
#include "wfrest/ErrorCode.h"
using namespace wfrest;
using namespace protocol;
WFHttpTask *create_http_task(const std::string &path)
{
return WFTaskFactory::create_http_task("http://127.0.0... | 24.210526 | 91 | 0.642029 | wfrest |
8ea86625c443698315f5223a9ad55d2a3299a44b | 242 | cpp | C++ | tests/aoj/bigint.multiplication_bigint_1.test.cpp | Zeldacrafter/CompProg | 5367583f45b6fe30c4c84f3ae81accf14f8f7fd3 | [
"Unlicense"
] | 4 | 2020-02-06T15:44:57.000Z | 2020-12-21T03:51:21.000Z | tests/aoj/bigint.multiplication_bigint_1.test.cpp | Zeldacrafter/CompProg | 5367583f45b6fe30c4c84f3ae81accf14f8f7fd3 | [
"Unlicense"
] | null | null | null | tests/aoj/bigint.multiplication_bigint_1.test.cpp | Zeldacrafter/CompProg | 5367583f45b6fe30c4c84f3ae81accf14f8f7fd3 | [
"Unlicense"
] | null | null | null | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=NTL_2_C"
#include "../../code/utils/bigint.cc"
int main() {
cin.tie(0);
ios_base::sync_with_stdio(0);
bigint a, b;
cin >> a >> b;
cout << a * b << endl;
}
| 18.615385 | 82 | 0.619835 | Zeldacrafter |
8ea8a2ac3154f2b3d99c1dffbf24fc33b56b1b3c | 3,018 | cpp | C++ | test/tsarray2.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 5 | 2019-12-27T07:30:03.000Z | 2020-10-13T01:08:55.000Z | test/tsarray2.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | null | null | null | test/tsarray2.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 1 | 2020-07-27T22:36:40.000Z | 2020-07-27T22:36:40.000Z |
#include <pub\config.hpp>
#include <stdpub\io.hpp>
#include <pub\except.hpp>
#include <pub\inline.hpp>
#include <pub\char.hpp>
#include <cnt\sarray.tem>
#include <conpub\io.hpp>
#include <time.h>
#include <pub\buffer.hpp>
#include <pub\fbuf.hpp>
typedef sarray<char16,8*1024> arrayt;
//char* fname = "fm... | 18.745342 | 68 | 0.470179 | drypot |