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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3315e71bb76a9986841cd5c493beee6dcfe223bb | 5,774 | cpp | C++ | drivers/windows/drv_ndis_intermediate/notifyObj/src/dllmain.cpp | openPOWERLINK-Team/openPOWERLINK_V2 | 048650a80db37fa372330c3a900d2c8edb327e47 | [
"BSD-3-Clause"
] | 100 | 2016-05-18T06:38:44.000Z | 2022-03-30T13:53:58.000Z | drivers/windows/drv_ndis_intermediate/notifyObj/src/dllmain.cpp | openPOWERLINK-Team/openPOWERLINK_V2 | 048650a80db37fa372330c3a900d2c8edb327e47 | [
"BSD-3-Clause"
] | 238 | 2016-03-31T06:52:57.000Z | 2019-10-17T13:35:03.000Z | drivers/windows/drv_ndis_intermediate/notifyObj/src/dllmain.cpp | openPOWERLINK-Team/openPOWERLINK_V2 | 048650a80db37fa372330c3a900d2c8edb327e47 | [
"BSD-3-Clause"
] | 72 | 2016-04-04T07:29:24.000Z | 2022-03-13T05:26:54.000Z | /**
********************************************************************************
\file dllmain.cpp
\brief Main file for notify object dll for Windows NDIS intermediate driver
This file implements the DLL access routines for notify object.
\ingroup module_notify_ndisim
*****************************************... | 42.77037 | 89 | 0.38275 | openPOWERLINK-Team |
331a4498f388bf0383c2bb52e6f39639392d9312 | 3,630 | cc | C++ | src/yb/rpc/strand.cc | impira/yugabyte-db | dd979c24856ae0c55d872e2488a15147b75d7821 | [
"Apache-2.0",
"CC0-1.0"
] | 3,702 | 2019-09-17T13:49:56.000Z | 2022-03-31T21:50:59.000Z | src/yb/rpc/strand.cc | impira/yugabyte-db | dd979c24856ae0c55d872e2488a15147b75d7821 | [
"Apache-2.0",
"CC0-1.0"
] | 9,291 | 2019-09-16T21:47:07.000Z | 2022-03-31T23:52:28.000Z | src/yb/rpc/strand.cc | impira/yugabyte-db | dd979c24856ae0c55d872e2488a15147b75d7821 | [
"Apache-2.0",
"CC0-1.0"
] | 673 | 2019-09-16T21:27:53.000Z | 2022-03-31T22:23:59.000Z | // Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | 31.025641 | 100 | 0.695041 | impira |
331d1320163fcdd3e94818383e320fde159c64ad | 1,911 | cpp | C++ | sources/Engine/App.cpp | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | 13 | 2017-03-21T22:46:18.000Z | 2020-07-30T01:31:57.000Z | sources/Engine/App.cpp | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | null | null | null | sources/Engine/App.cpp | LukasBanana/ForkENGINE | 8b575bd1d47741ad5025a499cb87909dbabc3492 | [
"BSD-3-Clause"
] | 2 | 2018-07-23T19:56:41.000Z | 2020-07-30T01:32:01.000Z | /*
* Engine app file
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "Engine/App.h"
#include "IO/Core/Log.h"
#include "IO/Core/Console.h"
namespace Fork
{
namespace Engine
{
static App* appInstance = nullptr;
App::App... | 14.051471 | 79 | 0.537938 | LukasBanana |
331d7bfe9da030abc8be507cfc44b2476b7e031e | 26,670 | cpp | C++ | LambdaEngine/Source/Rendering/ParticleRenderer.cpp | IbexOmega/CrazyCanvas | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 18 | 2020-09-04T08:00:54.000Z | 2021-08-29T23:04:45.000Z | LambdaEngine/Source/Rendering/ParticleRenderer.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 32 | 2020-09-12T19:24:50.000Z | 2020-12-11T14:29:44.000Z | LambdaEngine/Source/Rendering/ParticleRenderer.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 2 | 2020-12-15T15:36:13.000Z | 2021-03-27T14:27:02.000Z | #include "Rendering/ParticleRenderer.h"
#include "Rendering/Core/API/CommandAllocator.h"
#include "Rendering/Core/API/CommandList.h"
#include "Rendering/Core/API/DescriptorHeap.h"
#include "Rendering/Core/API/DescriptorSet.h"
#include "Rendering/Core/API/PipelineState.h"
#include "Rendering/Core/API/TextureView.h"
#i... | 36.534247 | 281 | 0.78069 | IbexOmega |
3320a464742bbba3054ed7baf26c678d1d330e56 | 5,355 | cpp | C++ | Tests/TranslationAdapterTests.cpp | garmin/ActiveCaptainCommunitySDK-common | a7574a3b85b77771ceb47e5fc9a99fd31a10d47a | [
"Apache-2.0"
] | null | null | null | Tests/TranslationAdapterTests.cpp | garmin/ActiveCaptainCommunitySDK-common | a7574a3b85b77771ceb47e5fc9a99fd31a10d47a | [
"Apache-2.0"
] | null | null | null | Tests/TranslationAdapterTests.cpp | garmin/ActiveCaptainCommunitySDK-common | a7574a3b85b77771ceb47e5fc9a99fd31a10d47a | [
"Apache-2.0"
] | null | null | null | /*------------------------------------------------------------------------------
Copyright 2021 Garmin Ltd. or its subsidiaries.
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.apach... | 33.055556 | 90 | 0.461064 | garmin |
3323a3e19530d845d8d07fe37aae1399682c80cf | 8,585 | hpp | C++ | ivarp/include/ivarp/number/exact_less_than.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/number/exact_less_than.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/number/exact_less_than.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 39.74537 | 158 | 0.639371 | phillip-keldenich |
332481d7162d8778bee2027dc26d914d313eb59e | 1,070 | cpp | C++ | src/medGui/database/medDatabaseNavigatorItemOverlay.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src/medGui/database/medDatabaseNavigatorItemOverlay.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src/medGui/database/medDatabaseNavigatorItemOverlay.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 26.75 | 91 | 0.581308 | ocommowi |
33250e1fa4466a4185959a8a159ef4ad0e6639f3 | 1,330 | cpp | C++ | UVA/11753.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | UVA/11753.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | UVA/11753.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 20/09/2021 23:24:38
**/
#include <bits/stdc++.h>
using namespace std;
int n, k;
vector<int> v;
int dp(int i, int j, int curk) {
if (curk > k || i >= j) {
return curk;
}
if (v[i] == v[j]) {
return dp(i + 1, j - 1, curk);
} else {
return ... | 25.576923 | 92 | 0.478947 | MaGnsio |
332739f0474c055ee1cf954bac6dd2c7e3068798 | 13,663 | cpp | C++ | Tools/TestWebKitAPI/Tests/WebCore/CtapRequestTest.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/TestWebKitAPI/Tests/WebCore/CtapRequestTest.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/TestWebKitAPI/Tests/WebCore/CtapRequestTest.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Copyright (C) 2018 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must ret... | 52.752896 | 204 | 0.751372 | jacadcaps |
3328aa544b910a5f67ec39956221eab6b40e8fda | 3,641 | cpp | C++ | libminifi/src/utils/HTTPClient.cpp | msharee9/nifi-minifi-cpp | 7143121ff87dfb67f9234daab330b1df996bce11 | [
"Apache-2.0"
] | 1 | 2021-04-12T20:36:24.000Z | 2021-04-12T20:36:24.000Z | libminifi/src/utils/HTTPClient.cpp | msharee9/nifi-minifi-cpp | 7143121ff87dfb67f9234daab330b1df996bce11 | [
"Apache-2.0"
] | 1 | 2021-01-12T14:00:12.000Z | 2021-01-12T14:00:12.000Z | libminifi/src/utils/HTTPClient.cpp | msharee9/nifi-minifi-cpp | 7143121ff87dfb67f9234daab330b1df996bce11 | [
"Apache-2.0"
] | 1 | 2020-07-17T15:27:37.000Z | 2020-07-17T15:27:37.000Z | /**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... | 30.341667 | 132 | 0.628948 | msharee9 |
332aa0fef8ee76ee418f2033edb2ff24f5dfbd71 | 2,497 | cpp | C++ | processor/src/ComponentTreeNode.cpp | mballance-sf/open-ps | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | [
"Apache-2.0"
] | null | null | null | processor/src/ComponentTreeNode.cpp | mballance-sf/open-ps | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | [
"Apache-2.0"
] | null | null | null | processor/src/ComponentTreeNode.cpp | mballance-sf/open-ps | a5ed44ce30bfe59462801ca7de4361d16950bcd2 | [
"Apache-2.0"
] | null | null | null | /*
* ComponentTreeNode.cpp
*
* Licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 23.780952 | 77 | 0.670404 | mballance-sf |
332b05dab42636fbb8920123ff41da8ce1582eff | 23,059 | cc | C++ | tests/bench/fdb_bench.cc | hundredbag/forestdb-io_uring | bb2f49ec889d3fa2db7b3d7057e20dcb6fd4d822 | [
"Apache-2.0"
] | 6 | 2020-11-12T07:18:46.000Z | 2020-11-17T01:46:30.000Z | tests/bench/fdb_bench.cc | rundun159/forestdb-io_uring | bb2f49ec889d3fa2db7b3d7057e20dcb6fd4d822 | [
"Apache-2.0"
] | null | null | null | tests/bench/fdb_bench.cc | rundun159/forestdb-io_uring | bb2f49ec889d3fa2db7b3d7057e20dcb6fd4d822 | [
"Apache-2.0"
] | 3 | 2020-11-12T07:18:50.000Z | 2020-11-16T05:03:04.000Z | #include <stdio.h>
#include "config.h"
#include "timing.h"
#include "libforestdb/forestdb.h"
#include "test.h"
struct thread_context {
fdb_kvs_handle *handle;
ts_nsec latency1;
ts_nsec latency2;
float avg_latency1;
float avg_latency2;
};
void print_stat(const char *name, float latency){
print... | 26.906651 | 78 | 0.624442 | hundredbag |
06a33a4cfa6cdb28bdf60b636539b38a7f9cc0ce | 1,359 | cpp | C++ | Problems/Hackerrank/rotateArray.cpp | pedrotorreao/DSA | 31f9dffbed5275590d5c7b7f6a73fd6dea411564 | [
"MIT"
] | 1 | 2021-07-08T01:02:06.000Z | 2021-07-08T01:02:06.000Z | Problems/Hackerrank/rotateArray.cpp | pedrotorreao/DSA | 31f9dffbed5275590d5c7b7f6a73fd6dea411564 | [
"MIT"
] | null | null | null | Problems/Hackerrank/rotateArray.cpp | pedrotorreao/DSA | 31f9dffbed5275590d5c7b7f6a73fd6dea411564 | [
"MIT"
] | null | null | null | /************************************************************/
/*Problem: Rotate Array (HR) ********/
/************************************************************/
/*
-- Summary:
A left rotation operation on an array shifts each of the array's elements 1 unit to the left.
For example, if 2 left rotations are per... | 26.134615 | 101 | 0.534216 | pedrotorreao |
06a4cc5b66aa8f7b8b4106f25c53297268a8bd29 | 456 | hpp | C++ | engine/time/include/SpecialDayObserver.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/time/include/SpecialDayObserver.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/time/include/SpecialDayObserver.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #pragma once
#include "ITimeObserver.hpp"
#include "Map.hpp"
#include "Calendar.hpp"
class SpecialDayObserver : public ITimeObserver
{
public:
void notify(const ulonglong minutes_elapsed) override;
std::unique_ptr<ITimeObserver> clone() override;
protected:
void check_special_day(const std::map<int, ... | 22.8 | 102 | 0.760965 | prolog |
06a6d2e1a71286edf3abf664abcce0a1ef1a08cc | 3,155 | hh | C++ | src/operators/Op_Face_CellBndFace.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/operators/Op_Face_CellBndFace.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/operators/Op_Face_CellBndFace.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Operators
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Ethan Coon (ecoon@lanl.gov)
*/
#ifndef AMANZI_OP_FACE_CELLFA... | 32.525773 | 94 | 0.662758 | fmyuan |
06ab4ecf497c08409419ef5ce091635a41fd8f17 | 5,145 | cpp | C++ | OwnCode/KeepingSettingModify/MappingSettingConfigFile.cpp | mosxuqian/CodeCollection | 40622739f7fcb7326ee85db3bf5ecf1148c3aa08 | [
"Apache-2.0"
] | 1 | 2021-10-09T03:31:49.000Z | 2021-10-09T03:31:49.000Z | OwnCode/KeepingSettingModify/MappingSettingConfigFile.cpp | zzilla/CodeCollection | 40622739f7fcb7326ee85db3bf5ecf1148c3aa08 | [
"Apache-2.0"
] | null | null | null | OwnCode/KeepingSettingModify/MappingSettingConfigFile.cpp | zzilla/CodeCollection | 40622739f7fcb7326ee85db3bf5ecf1148c3aa08 | [
"Apache-2.0"
] | 4 | 2017-05-20T02:52:51.000Z | 2019-04-03T01:01:47.000Z | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include "Log/LogC.h"
#include "logSettings.h"
#include "ThreadMutex.h"
#include "MappingSettingConfigFile.h"
#include "SensitiveParamFiltering.h"
using namespace std;
/**
* @Func: addConfigFile
* @Param: file, type:: std::string
* @Return: bool... | 24.383886 | 126 | 0.600583 | mosxuqian |
06ad2d57518d6ac0fd882a3007d74d58686cd711 | 2,390 | cpp | C++ | projects/DetectRedObject/DetectRedObject.cpp | trevstanhope/scratch-Cpp | f6a0db5a7aeb388a852180dc0be749c1e7c2e318 | [
"MIT"
] | null | null | null | projects/DetectRedObject/DetectRedObject.cpp | trevstanhope/scratch-Cpp | f6a0db5a7aeb388a852180dc0be749c1e7c2e318 | [
"MIT"
] | null | null | null | projects/DetectRedObject/DetectRedObject.cpp | trevstanhope/scratch-Cpp | f6a0db5a7aeb388a852180dc0be749c1e7c2e318 | [
"MIT"
] | null | null | null | #include <iostream>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
using namespace std;
int main(int argc, char **argv) {
VideoCapture cap(0); // capture the video from web cam
if (!cap.isOpened()) // if not success, exit program
{
cout << "Cannot open the... | 29.146341 | 82 | 0.664854 | trevstanhope |
06ad574224ad027a6116bff88722c86540a0b880 | 2,419 | cpp | C++ | tan/samples/src/FileToHeader/stdafx.cpp | amono/TAN | 690ed6a92c594f4ba3a26d1c8b77dbff386c9b04 | [
"MIT"
] | 128 | 2016-08-17T21:57:05.000Z | 2022-03-30T17:44:36.000Z | tan/samples/src/FileToHeader/stdafx.cpp | amono/TAN | 690ed6a92c594f4ba3a26d1c8b77dbff386c9b04 | [
"MIT"
] | 8 | 2016-08-18T18:39:12.000Z | 2021-11-12T19:10:30.000Z | tan/samples/src/FileToHeader/stdafx.cpp | isabella232/TAN | 690ed6a92c594f4ba3a26d1c8b77dbff386c9b04 | [
"MIT"
] | 30 | 2016-08-18T19:36:06.000Z | 2022-03-30T17:28:31.000Z | //
// MIT license
//
// Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limit... | 39.016129 | 110 | 0.724266 | amono |
06b09ea60d30ace1f4d18be2244f7f9b3d31af8f | 3,950 | cpp | C++ | graph-source-code/450-D/12227770.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/450-D/12227770.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/450-D/12227770.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++11
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <algori... | 19.849246 | 79 | 0.409114 | AmrARaouf |
06b21d0c50b3170c8005dd1f7526ac9c737040c6 | 1,209 | cpp | C++ | src/tower/targetSelect/RandomSelection.cpp | chanjeff2/GroupProject | 4ca9e8b6e62727ae7dd4e7e9e9fd0ecab8cda6b0 | [
"MIT"
] | null | null | null | src/tower/targetSelect/RandomSelection.cpp | chanjeff2/GroupProject | 4ca9e8b6e62727ae7dd4e7e9e9fd0ecab8cda6b0 | [
"MIT"
] | null | null | null | src/tower/targetSelect/RandomSelection.cpp | chanjeff2/GroupProject | 4ca9e8b6e62727ae7dd4e7e9e9fd0ecab8cda6b0 | [
"MIT"
] | null | null | null | #include "RandomSelection.h"
#include "src/enemy/IEnemy.h"
#include <random>
#include <algorithm>
using namespace std;
RandomSelection::RandomSelection() {};
vector<IEnemy*> RandomSelection::selectTarget(set<IEnemy*> enemiesInRange, set<EnemyType> effectiveTowards,
set<EnemyType> weakTowards, set<IEnemy*... | 29.487805 | 140 | 0.721257 | chanjeff2 |
06b41a5ea007dc3b23dc70c96d092fa876523fdb | 17,745 | cpp | C++ | trview.app.tests/ItemsWindowTests.cpp | chreden/trview | e2a5e3539036f27adfa54fc7fcf4c3537b99a221 | [
"MIT"
] | 20 | 2018-10-17T02:00:03.000Z | 2022-03-24T09:37:20.000Z | trview.app.tests/ItemsWindowTests.cpp | chreden/trview | e2a5e3539036f27adfa54fc7fcf4c3537b99a221 | [
"MIT"
] | 396 | 2018-07-22T16:11:47.000Z | 2022-03-29T11:57:03.000Z | trview.app.tests/ItemsWindowTests.cpp | chreden/trview | e2a5e3539036f27adfa54fc7fcf4c3537b99a221 | [
"MIT"
] | 8 | 2018-07-25T21:31:06.000Z | 2021-11-01T14:36:26.000Z | #include <trview.app/Windows/ItemsWindow.h>
#include <trview.tests.common/Window.h>
#include <trview.ui/Button.h>
#include <trview.ui/Checkbox.h>
#include <trview.common/Size.h>
#include <trview.app/Elements/Types.h>
#include <trview.graphics/mocks/IDeviceWindow.h>
#include <trview.ui.render/Mocks/IRenderer.h>
#include... | 35.561122 | 140 | 0.656579 | chreden |
06b53436f8e7f59b21421be3ae9870e15b0c2e65 | 2,410 | cpp | C++ | moses/mert/PerScorer.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2018-01-25T00:51:56.000Z | 2022-01-07T15:09:38.000Z | moses/mert/PerScorer.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 1 | 2020-06-23T08:29:09.000Z | 2020-06-24T12:11:47.000Z | moses/mert/PerScorer.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2018-06-08T08:36:27.000Z | 2021-12-26T20:36:16.000Z | #include "PerScorer.h"
#include <fstream>
#include <stdexcept>
#include "ScoreStats.h"
#include "Util.h"
using namespace std;
namespace MosesTuning
{
PerScorer::PerScorer(const string& config)
: StatisticsBasedScorer("PER",config) {}
PerScorer::~PerScorer() {}
void PerScorer::setReferenceFiles(const vector<... | 25.104167 | 84 | 0.655602 | anshsarkar |
06b5513bc4e7284568518b584e99f7af1ea05f72 | 5,280 | cpp | C++ | totp.cpp | jbreams/gonepass | 3da5cfa120b4e530092d9cda5634e72f22b048d8 | [
"BSL-1.0",
"Apache-2.0"
] | 165 | 2015-03-06T14:59:52.000Z | 2020-12-15T22:03:02.000Z | totp.cpp | jbreams/gonepass | 3da5cfa120b4e530092d9cda5634e72f22b048d8 | [
"BSL-1.0",
"Apache-2.0"
] | 21 | 2015-03-15T20:03:50.000Z | 2018-07-20T17:44:42.000Z | totp.cpp | jbreams/gonepass | 3da5cfa120b4e530092d9cda5634e72f22b048d8 | [
"BSL-1.0",
"Apache-2.0"
] | 19 | 2015-03-10T20:38:36.000Z | 2020-12-15T22:03:14.000Z | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <regex>
#include <string>
#include <unordered_map>
#include <vector>
#include <openssl/crypto.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
namespace {
std::vector<uint8_t> base32Decode(const std::string& ... | 30 | 98 | 0.573295 | jbreams |
06c23d1725d489d827b15bf1889a6b3c62707a06 | 694 | hpp | C++ | CamelusMips/Timer.hpp | MForever78/CamelusMips | fd55f00e70bee448ad25951013cc1fdad3d3b456 | [
"MIT"
] | null | null | null | CamelusMips/Timer.hpp | MForever78/CamelusMips | fd55f00e70bee448ad25951013cc1fdad3d3b456 | [
"MIT"
] | 1 | 2016-05-02T05:23:08.000Z | 2016-05-02T05:24:01.000Z | CamelusMips/Timer.hpp | MForever78/CamelusMips | fd55f00e70bee448ad25951013cc1fdad3d3b456 | [
"MIT"
] | null | null | null | //
// Created by MForever78 on 16/4/19.
//
#ifndef TIMER_HPP
#define TIMER_HPP
#include "Device.hpp"
class Timer: Device {
public:
inline void set(const std::uint32_t data) override {
counting = true;
reverseCount = data;
}
inline std::uint32_t get() const override {
return clock;... | 17.794872 | 56 | 0.569164 | MForever78 |
06d02c7c4e8dc590c433c9111fd27d9385257673 | 1,567 | cpp | C++ | Lab6/orange_sorting.cpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | Lab6/orange_sorting.cpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | Lab6/orange_sorting.cpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | #include <iostream>
#include <ctime>
#include <cstdlib>
#include <map>
#include <vector>
#include <string>
using std::cin; using std::cout; using std::endl;
using std::string; using std::multimap; using std::vector;
//----------------------------
// File: orange_sorting.cpp
// By: Nolan LaDuke
// Date: 2/23/2021
//--... | 33.340426 | 80 | 0.539247 | NLaDuke |
06d21d1741189ec6c382b5a3d0365b620cf94559 | 3,158 | hpp | C++ | include/mandelmaths.hpp | zeFresk/mandelbrot | 18dd60aefd067c8f26315f44ceaae30bca025cba | [
"MIT"
] | null | null | null | include/mandelmaths.hpp | zeFresk/mandelbrot | 18dd60aefd067c8f26315f44ceaae30bca025cba | [
"MIT"
] | null | null | null | include/mandelmaths.hpp | zeFresk/mandelbrot | 18dd60aefd067c8f26315f44ceaae30bca025cba | [
"MIT"
] | null | null | null | #pragma once
/*
Mandelbrot math related functions
zeFresk
*/
#include <complex>
namespace mandelbrot {
// ###############################
// ### normalization functions ###
// ###############################
// NOTE: All the following takes the index at which we diverged and the maxium number o... | 36.298851 | 170 | 0.638379 | zeFresk |
06d5dfc2c7dd31fc4be1b00c490ad9746a9298e2 | 2,382 | cpp | C++ | TestApp1/DragTextUI.cpp | EndofDeath/Duilib_adrival | 2fc0a4cc2a6ea2a6d945baf16e41d252c1417be3 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | TestApp1/DragTextUI.cpp | EndofDeath/Duilib_adrival | 2fc0a4cc2a6ea2a6d945baf16e41d252c1417be3 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | TestApp1/DragTextUI.cpp | EndofDeath/Duilib_adrival | 2fc0a4cc2a6ea2a6d945baf16e41d252c1417be3 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DragTextUI.h"
LPCTSTR UI_DRAGTEXT = _T("DragText");
CDragTextUI::CDragTextUI()
{
}
CDragTextUI::~CDragTextUI()
{
}
LPCTSTR CDragTextUI::GetClass() const
{
return UI_DRAGTEXT;
}
LPVOID CDragTextUI::GetInterface(LPCTSTR pstrName)
{
if (_tcscmp(pstrName, UI_DRAGTEXT) == 0) return stat... | 21.853211 | 81 | 0.680101 | EndofDeath |
06d9989f42d8e7f9301a9654d13ed390ecb3768c | 1,072 | cpp | C++ | Doom/src/Doom/Components/PointLight.cpp | Shturm0weak/OpenGL_Engine | 6e6570f8dd9000724274942fff5a100f0998b780 | [
"MIT"
] | 126 | 2020-10-20T21:39:53.000Z | 2022-01-25T14:43:44.000Z | Doom/src/Doom/Components/PointLight.cpp | Shturm0weak/2D_OpenGL_Engine | 6e6570f8dd9000724274942fff5a100f0998b780 | [
"MIT"
] | 2 | 2021-01-07T17:29:19.000Z | 2021-08-14T14:04:28.000Z | Doom/src/Doom/Components/PointLight.cpp | Shturm0weak/2D_OpenGL_Engine | 6e6570f8dd9000724274942fff5a100f0998b780 | [
"MIT"
] | 16 | 2021-01-09T09:08:40.000Z | 2022-01-25T14:43:46.000Z | #include "../pch.h"
#include "PointLight.h"
using namespace Doom;
void Doom::PointLight::Copy(const PointLight& rhs)
{
m_Constant = rhs.m_Constant;
m_Linear = rhs.m_Linear;
m_Quadratic = rhs.m_Quadratic;
m_Color = rhs.m_Color;
}
void Doom::PointLight::operator=(const PointLight& rhs)
{
Copy(rhs);
}
Component* ... | 22.333333 | 82 | 0.70709 | Shturm0weak |
06d9b77f21da6028dd3a77a8f09b80d91cad2736 | 11,697 | cpp | C++ | WitchEngine3/src/WE3/math/WEMatrix2.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 3 | 2018-12-02T14:09:22.000Z | 2021-11-22T07:14:05.000Z | WitchEngine3/src/WE3/math/WEMatrix2.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 1 | 2018-12-03T22:54:38.000Z | 2018-12-03T22:54:38.000Z | WitchEngine3/src/WE3/math/WEMatrix2.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 2 | 2020-09-22T21:04:14.000Z | 2021-05-24T09:43:28.000Z | #include "WEMatrix2.h"
#include "../WEMacros.h"
#include "../WEAssert.h"
#include "WEMathUtil.h"
namespace WE {
Matrix2x2::Matrix2x2() {
}
Matrix2x2::Matrix2x2(bool setIdentity) {
if (setIdentity) {
identity();
}
}
void diagonal(Matrix2x2& mat, float value) {
mat.m11 = value; mat.m12 =... | 21 | 132 | 0.626656 | jadnohra |
06e82ce46e53badcce22a05eec8cc34cfad94f59 | 579 | cpp | C++ | quests/dziwne_sumowanie/dziwne_sumowanie/dziwne_sumowanie.cpp | Donkrzawayan/DECODE-IT_pracuj_pl | a09daa973d32d46d9dc8e7dec284821f52a10607 | [
"Apache-2.0"
] | 1 | 2021-01-06T22:15:09.000Z | 2021-01-06T22:15:09.000Z | quests/dziwne_sumowanie/dziwne_sumowanie/dziwne_sumowanie.cpp | Donkrzawayan/DECODE-IT_pracuj_pl | a09daa973d32d46d9dc8e7dec284821f52a10607 | [
"Apache-2.0"
] | null | null | null | quests/dziwne_sumowanie/dziwne_sumowanie/dziwne_sumowanie.cpp | Donkrzawayan/DECODE-IT_pracuj_pl | a09daa973d32d46d9dc8e7dec284821f52a10607 | [
"Apache-2.0"
] | null | null | null | //
#include <iostream>
#include <vector>
#include <cstdint>
#include <string>
void processString() {
unsigned n;
std::cin >> n;
std::cin.get(); //clear input
std::vector<uint_fast8_t> str(4 * n);
for (unsigned j = 0; j < 4 * n; ++j)
str[j] = std::cin.get() - '0';
std::cin.get(); //clear input
std::string an... | 18.09375 | 72 | 0.542314 | Donkrzawayan |
06e9f05fba4fd522479cff255bd0739a90440b1d | 30,542 | cc | C++ | lib/memoro/memoro_interceptors.cc | epfl-vlsc/compiler-rt | 8d8b3f33c09f637f3fbe406eebf38280e9ee7340 | [
"MIT"
] | 2 | 2020-02-04T15:21:22.000Z | 2020-02-05T08:20:25.000Z | lib/memoro/memoro_interceptors.cc | epfl-vlsc/compiler-rt | 8d8b3f33c09f637f3fbe406eebf38280e9ee7340 | [
"MIT"
] | 1 | 2019-11-05T13:08:01.000Z | 2019-11-05T13:08:01.000Z | lib/memoro/memoro_interceptors.cc | epfl-vlsc/compiler-rt | 8d8b3f33c09f637f3fbe406eebf38280e9ee7340 | [
"MIT"
] | null | null | null | //=-- memoro_interceptors.cc ----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 37.799505 | 80 | 0.611715 | epfl-vlsc |
06ebf1308d3f100bbd83cdc9f2dc2db14ccb6bf8 | 10,681 | cpp | C++ | icusegments/icusegments.cpp | srl295/icu | 7c7f805b917476f269babc853fb1eb3e0a17a88b | [
"ICU",
"Unlicense"
] | 1 | 2018-07-24T21:03:12.000Z | 2018-07-24T21:03:12.000Z | icusegments/icusegments.cpp | srl295/icu | 7c7f805b917476f269babc853fb1eb3e0a17a88b | [
"ICU",
"Unlicense"
] | null | null | null | icusegments/icusegments.cpp | srl295/icu | 7c7f805b917476f269babc853fb1eb3e0a17a88b | [
"ICU",
"Unlicense"
] | 1 | 2018-07-13T15:52:46.000Z | 2018-07-13T15:52:46.000Z | /*
Copyright (C) 1999-2014, International Business Machines
Corporation and others. All Rights Reserved.
ICU Segments Demo
*/
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "unicode/utypes.h"
#include "unicode/ubrk.h"
#include "unicode/brkiter.h"
#include "unicode/... | 33.907937 | 135 | 0.601161 | srl295 |
06ec65d32c239b027ce1f0031338c963e524d595 | 51,921 | cpp | C++ | Engine/Source/Runtime/Renderer/Private/DistanceFieldObjectManagement.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/Renderer/Private/DistanceFieldObjectManagement.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/Renderer/Private/DistanceFieldObjectManagement.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
DistanceFieldSurfaceCacheLighting.cpp
=============================================================================*/
#include "CoreMinimal.h"
#include "Stats/Stats.h"
#include... | 41.939418 | 366 | 0.792011 | windystrife |
06f271876201a7a7e8e76e4e4187f749b5fbbfc6 | 1,070 | cpp | C++ | datasets/github_cpp_10/10/42.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/10/42.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/10/42.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null |
#include "StringEditDistance.hpp"
int stringEditDistance(string s, string t) {
int editDistance[s.length() + 1][t.length() + 1];
editDistance[0][0] = 0;
for(int i = 1; i <= s.length(); i++) {
editDistance[0][i] = i;
}
for(int i = 1; i <= t.... | 16.984127 | 114 | 0.433645 | yijunyu |
06f423e627d457ea94533dac88ec2f557cc37268 | 1,079 | hxx | C++ | opencascade/PrsDim_KindOfSurface.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 37 | 2020-01-20T21:50:21.000Z | 2022-02-09T13:01:09.000Z | opencascade/PrsDim_KindOfSurface.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/PrsDim_KindOfSurface.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 22 | 2020-04-03T21:59:52.000Z | 2022-03-06T18:43:35.000Z | // Created on: 1996-12-11
// Created by: Robert COUBLANC
// Copyright (c) 1996-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GN... | 32.69697 | 81 | 0.794254 | valgur |
06f619f19ec9f06694abad962b796c00f80d5e3c | 6,238 | cpp | C++ | emulator/src/cpu/Cpu65816.cpp | mike42/65816-computer | 9250b6dedc4757e8548d8dd6defce34ca6e03a8f | [
"CC-BY-4.0"
] | null | null | null | emulator/src/cpu/Cpu65816.cpp | mike42/65816-computer | 9250b6dedc4757e8548d8dd6defce34ca6e03a8f | [
"CC-BY-4.0"
] | null | null | null | emulator/src/cpu/Cpu65816.cpp | mike42/65816-computer | 9250b6dedc4757e8548d8dd6defce34ca6e03a8f | [
"CC-BY-4.0"
] | null | null | null | /*
* This file is part of the 65816 Emulator Library.
* Copyright (c) 2018 Francesco Rigoni.
*
* https://github.com/FrancescoRigoni/Lib65816
*
* 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 Foundat... | 29.990385 | 161 | 0.679224 | mike42 |
06fb1bcc1d69479e99dbdd3a5726c5fd7cecae81 | 11,905 | cpp | C++ | src/misc/jfontload.cpp | akmed772/dosvax | 878a4187d3a126b93a6ae8f79f28267b83d323e5 | [
"MIT"
] | 1 | 2022-03-16T08:50:16.000Z | 2022-03-16T08:50:16.000Z | src/misc/jfontload.cpp | akmed772/dosvax | 878a4187d3a126b93a6ae8f79f28267b83d323e5 | [
"MIT"
] | null | null | null | src/misc/jfontload.cpp | akmed772/dosvax | 878a4187d3a126b93a6ae8f79f28267b83d323e5 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2016-2022 akm
All rights reserved.
This content is under the MIT License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dosbox.h"
#include "control.h"
#include "support.h"
#include "jsupport.h"
//#include "jega.h"//for AX
//#include "ps55.h"//for PS/55
using... | 27.880562 | 86 | 0.584292 | akmed772 |
06fb99b73c5854ff64505f1495ea8d32e2bf8cd1 | 101 | cc | C++ | .ccls-cache/@Users@clp@id@idl/lg@src@main.cc | clpi/idx | fe86a22e090685d55774101dff132407f593fd9e | [
"MIT"
] | null | null | null | .ccls-cache/@Users@clp@id@idl/lg@src@main.cc | clpi/idx | fe86a22e090685d55774101dff132407f593fd9e | [
"MIT"
] | null | null | null | .ccls-cache/@Users@clp@id@idl/lg@src@main.cc | clpi/idx | fe86a22e090685d55774101dff132407f593fd9e | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ncurses.h>
class Lexer {
};
| 9.181818 | 20 | 0.653465 | clpi |
06fddfe7aa3897e8a65c6843c54556b0e41eed4c | 6,108 | cpp | C++ | src/flow_table/tests/flow_table_test.cpp | AlexandrePieroux/DNFC | 53756f5ec98409357407d4730dca2344ffb256d3 | [
"MIT"
] | 2 | 2017-04-25T23:48:01.000Z | 2017-06-12T14:20:41.000Z | src/flow_table/tests/flow_table_test.cpp | AlexandrePieroux/DNFC | 53756f5ec98409357407d4730dca2344ffb256d3 | [
"MIT"
] | null | null | null | src/flow_table/tests/flow_table_test.cpp | AlexandrePieroux/DNFC | 53756f5ec98409357407d4730dca2344ffb256d3 | [
"MIT"
] | null | null | null | #define _BSD_SOURCE
#include <stdio.h>
#include <stdlib.h>
extern "C"
{
#include "../flow_table.h"
#include "../../memory_management/memory_management.h"
}
#include <gtest/gtest.h>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#define NB_NUMBERS 1000000
#define NB_THREADS 64
#define HEADER_LENGTH 1... | 24.728745 | 95 | 0.599869 | AlexandrePieroux |
660445d356b337943caa6087fe5f1ef00456eb71 | 19,468 | cpp | C++ | src/graphics/VoxelRenderer.cpp | Retro52/Minecraft-Clone | 6417ad7f77978d71f90bb6db20e518ad467a3c83 | [
"Unlicense"
] | null | null | null | src/graphics/VoxelRenderer.cpp | Retro52/Minecraft-Clone | 6417ad7f77978d71f90bb6db20e518ad467a3c83 | [
"Unlicense"
] | null | null | null | src/graphics/VoxelRenderer.cpp | Retro52/Minecraft-Clone | 6417ad7f77978d71f90bb6db20e518ad467a3c83 | [
"Unlicense"
] | null | null | null | #include "VoxelRenderer.h"
#include "mesh.h"
#include "../voxels/voxel.h"
#include "../voxels/Block.h"
#include "../lighting/Lightmap.h"
#define VERTEX_SIZE (3 + 2 + 4)
#define CDIV(X,A) (((X) < 0) ? ((X) / (A) - 1) : ((X) / (A)))
#define LOCAL_NEG(X, SIZE) (((X) < 0) ? ((SIZE)+(X)) : (X))
#define LOCAL(X, SIZE) ((X)... | 63.829508 | 153 | 0.441494 | Retro52 |
66071db6d513feee136d2db82c8850adcaa6f32c | 15,033 | hpp | C++ | include/mimkl/kernels_handler.hpp | vishalbelsare/mimkl | 53a5a9db5aa09c6e8808ba5b845601c5768d23e2 | [
"MIT"
] | 31 | 2019-05-28T23:18:50.000Z | 2022-03-27T20:00:03.000Z | include/mimkl/kernels_handler.hpp | vishalbelsare/mimkl | 53a5a9db5aa09c6e8808ba5b845601c5768d23e2 | [
"MIT"
] | 4 | 2019-05-18T13:21:59.000Z | 2022-03-19T22:20:55.000Z | include/mimkl/kernels_handler.hpp | vishalbelsare/mimkl | 53a5a9db5aa09c6e8808ba5b845601c5768d23e2 | [
"MIT"
] | 9 | 2019-07-24T09:39:41.000Z | 2020-06-29T14:40:27.000Z | #ifndef INCLUDE_MIMKL_KERNELS_KERNELS_HANDLER_HPP_
#define INCLUDE_MIMKL_KERNELS_KERNELS_HANDLER_HPP_
#include <functional>
#include <memory>
#include <mimkl/definitions.hpp>
#include <mimkl/linear_algebra.hpp>
#include <mimkl/utilities.hpp>
#include <spdlog/spdlog.h>
#include <stdexcept>
using mimkl::definitions::In... | 34.960465 | 90 | 0.634271 | vishalbelsare |
6607510ee1374469ca0b67fd5bc57e30cbf19175 | 4,400 | hxx | C++ | win32/include/QUANTA/QUANTAnet_rbudpReceiver_c.hxx | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | win32/include/QUANTA/QUANTAnet_rbudpReceiver_c.hxx | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | win32/include/QUANTA/QUANTAnet_rbudpReceiver_c.hxx | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | 1 | 2021-07-02T10:31:03.000Z | 2021-07-02T10:31:03.000Z | /******************************************************************************
* QUANTA - A toolkit for High Performance Data Sharing
* Copyright (C) 2003 Electronic Visualization Laboratory,
* University of Illinois at Chicago
*
* This library is free software; you can redistribute it and/or modify it
... | 42.718447 | 170 | 0.697727 | benyaboy |
660a6aa65cf0765eef4a5a396a834b4ac89e3cc1 | 6,780 | cpp | C++ | tech/Game/BeamWeapon.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | tech/Game/BeamWeapon.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | tech/Game/BeamWeapon.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (c) 2015 Teardrop Games
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 wit... | 29.478261 | 82 | 0.64823 | nbtdev |
660ae7a6f3d6dc183db47b9ec80d91bca9f86cd4 | 27,592 | ipp | C++ | include/External/stlib/packages/numerical/optimization/QuasiNewtonLBFGS.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/optimization/QuasiNewtonLBFGS.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/optimization/QuasiNewtonLBFGS.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
/*
* C library of Limited memory BFGS (L-BFGS).
*
* Copyright (c) 1990, Jorge Nocedal
* Copyright (c) 2007,2008,2009 Naoaki Okazaki
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentati... | 31.142212 | 182 | 0.532546 | bxl295 |
66106032c782c181eb5d898791ab9905580eca3f | 6,351 | cpp | C++ | src/bl_loader/test/src/main.cpp | dettmann/bolero | fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925 | [
"BSD-3-Clause"
] | 51 | 2017-05-19T13:33:29.000Z | 2022-01-21T10:59:57.000Z | src/bl_loader/test/src/main.cpp | dettmann/bolero | fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925 | [
"BSD-3-Clause"
] | 94 | 2017-05-19T19:44:07.000Z | 2021-12-15T13:40:59.000Z | src/bl_loader/test/src/main.cpp | dettmann/bolero | fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925 | [
"BSD-3-Clause"
] | 31 | 2017-05-19T19:41:39.000Z | 2021-08-25T14:14:19.000Z | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch/catch.hpp>
#include <LoadableBehavior.h>
#include <BLLoader.h>
#include <Optimizer.h>
#include <Environment.h>
#include <BehaviorSearch.h>
#include <PythonInterpreter.hpp>
#include <configmaps/ConfigData.h>... | 36.291429 | 101 | 0.702724 | dettmann |
6614f85317377db14d1072c0519a80afa3ff5bc3 | 2,228 | cpp | C++ | Stp/Base/Thread/NativeThreadLinux.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Base/Thread/NativeThreadLinux.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Base/Thread/NativeThreadLinux.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Distributed under MIT license that can be found in the LICENSE file.
#include "Base/Thread/NativeThread.h"
#include "Base/String/StringSpan.h"
#if !OS(ANDROID)
# include <sched.h>
#endif
#if !OS(FREEBSD)
# include <sys/prctl.h>
#endif
namespace stp {
#if ... | 28.564103 | 89 | 0.687163 | markazmierczak |
6615b6da69e0365ef7fd46868673ba7d440e2218 | 4,679 | cc | C++ | src/models/tests/bpsr_model.cc | litlpoet/beliefbox | 6b303e49017f8054f43c6c840686fcc632205e4e | [
"OLDAP-2.3"
] | null | null | null | src/models/tests/bpsr_model.cc | litlpoet/beliefbox | 6b303e49017f8054f43c6c840686fcc632205e4e | [
"OLDAP-2.3"
] | null | null | null | src/models/tests/bpsr_model.cc | litlpoet/beliefbox | 6b303e49017f8054f43c6c840686fcc632205e4e | [
"OLDAP-2.3"
] | null | null | null | // -*- Mode: c++ -*-
// copyright (c) 2009 by Christos Dimitrakakis <christos.dimitrakakis@gmail.com>
/***************************************************************************
* *
* This program is free software; you can redistribute it and/... | 31.193333 | 80 | 0.597564 | litlpoet |
6615cab18681d47a134aa425dc3414c6c8d1a9ba | 2,325 | cpp | C++ | src/gausskernel/cbb/instruments/slow_query/instr_slow_query_log.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 360 | 2020-06-30T14:47:34.000Z | 2022-03-31T15:21:53.000Z | src/gausskernel/cbb/instruments/slow_query/instr_slow_query_log.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 4 | 2020-06-30T15:09:16.000Z | 2020-07-14T06:20:03.000Z | src/gausskernel/cbb/instruments/slow_query/instr_slow_query_log.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 133 | 2020-06-30T14:47:36.000Z | 2022-03-25T15:29:00.000Z | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 31.418919 | 87 | 0.623226 | opengauss-mirror |
6618b29423eeb2e49c37bcc9cfc69cdd293210a0 | 3,024 | cpp | C++ | Monopoly/GameState.cpp | dragonly/Monopoly | 1dc013aed2bb49dd7c0c610df697f2bdfe282a8f | [
"MIT"
] | 3 | 2018-06-24T13:44:50.000Z | 2019-11-18T09:49:41.000Z | Monopoly/GameState.cpp | dragonly/Monopoly | 1dc013aed2bb49dd7c0c610df697f2bdfe282a8f | [
"MIT"
] | null | null | null | Monopoly/GameState.cpp | dragonly/Monopoly | 1dc013aed2bb49dd7c0c610df697f2bdfe282a8f | [
"MIT"
] | null | null | null | //
// GameState.cpp
// Monopoly
//
// Created by Dragonly on 4/27/16.
// Copyright © 2016 Dragonly. All rights reserved.
//
#include "GameState.hpp"
namespace monopoly {
GameState::GameState()
: today(2016, 5, 1), stockMarket() {
Land lands[] = { // this is just for initializing, don't do logic on... | 43.2 | 116 | 0.425265 | dragonly |
6618cfd9989132492363adea803188e368724840 | 6,768 | cc | C++ | pigasus/software/tools/snort2lua/config_states/config_binding.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/tools/snort2lua/config_states/config_binding.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/tools/snort2lua/config_states/config_binding.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License Version 2 as published
// by the Fr... | 28.082988 | 95 | 0.586879 | zhipengzhaocmu |
661975ec91a71aeb0ec9c0dd1429f627de00d2a9 | 12,852 | cpp | C++ | source/cpu/exec/exec.cpp | zhiayang/z86 | 708aa48f981dbba8025c83ae10918d42163da753 | [
"Apache-2.0"
] | 3 | 2020-10-12T15:52:20.000Z | 2021-02-07T08:40:03.000Z | source/cpu/exec/exec.cpp | zhiayang/z86 | 708aa48f981dbba8025c83ae10918d42163da753 | [
"Apache-2.0"
] | null | null | null | source/cpu/exec/exec.cpp | zhiayang/z86 | 708aa48f981dbba8025c83ae10918d42163da753 | [
"Apache-2.0"
] | null | null | null | // exec.cpp
// Copyright (c) 2020, zhiayang
// Licensed under the Apache License Version 2.0.
#include "defs.h"
#include "cpu/cpu.h"
#include "cpu/exec.h"
namespace z86
{
using Operand = instrad::x86::Operand;
using Register = instrad::x86::Register;
using Instruction = instrad::x86::Instruction;
using InstrMods ... | 32.372796 | 121 | 0.569561 | zhiayang |
661ca9a24bd10b1c9fe0ba16796b698d9c94a3cc | 14,415 | cpp | C++ | Source/Teme/Tema1/Tema1.cpp | adinasm/EGC | 01b51ed98790635bcec723253a771d8b98c09b4b | [
"MIT"
] | null | null | null | Source/Teme/Tema1/Tema1.cpp | adinasm/EGC | 01b51ed98790635bcec723253a771d8b98c09b4b | [
"MIT"
] | null | null | null | Source/Teme/Tema1/Tema1.cpp | adinasm/EGC | 01b51ed98790635bcec723253a771d8b98c09b4b | [
"MIT"
] | null | null | null | #include "Tema1.h"
#include <vector>
#include <iostream>
#include <Core/Engine.h>
#include "Transform2D.h"
#include "Objects2D.h"
Tema1::Tema1()
{
angularStep = 0.f;
translateX = 0.f;
translateY = 0.f;
acceleration = -3500.f;
jumpAcceleration = 10000.f;
maxJumpY = 30.f;
currentJumpY = 0.f;
totalJu... | 26.498162 | 119 | 0.709192 | adinasm |
661d9a8cee03742eb789a8296cd9e4ca155e9b2e | 934 | cxx | C++ | src/MonteCarlo/McEventStructure.cxx | fermi-lat/Event | 2e9e8ee117f61c4b1abde69828a97f94ff84630a | [
"BSD-3-Clause"
] | null | null | null | src/MonteCarlo/McEventStructure.cxx | fermi-lat/Event | 2e9e8ee117f61c4b1abde69828a97f94ff84630a | [
"BSD-3-Clause"
] | null | null | null | src/MonteCarlo/McEventStructure.cxx | fermi-lat/Event | 2e9e8ee117f61c4b1abde69828a97f94ff84630a | [
"BSD-3-Clause"
] | null | null | null | /**
* @class McEventStructure
*
* @brief Implements the methods described in McEventStructure.h
*
* @author Tracy Usher
*
* $Header: /nfs/slac/g/glast/ground/cvs/Event/src/MonteCarlo/McEventStructure.cxx,v 1.2 2004/02/18 19:02:27 usher Exp $
*/
#include "Event/MonteCarlo/McEventStructure.h"
//Event::McEventStr... | 23.948718 | 120 | 0.611349 | fermi-lat |
662078f2d9bfcbb447007249e862c143c63ef57d | 214 | cpp | C++ | code/math/berlekamp-massey/debug.cpp | tonowak/acmlib | ec295b8c76c588914475ad42cff81a64a6f2ebd5 | [
"MIT"
] | 6 | 2019-06-25T14:07:08.000Z | 2022-01-04T12:28:55.000Z | code/math/berlekamp-massey/debug.cpp | tonowak/acmlib | ec295b8c76c588914475ad42cff81a64a6f2ebd5 | [
"MIT"
] | null | null | null | code/math/berlekamp-massey/debug.cpp | tonowak/acmlib | ec295b8c76c588914475ad42cff81a64a6f2ebd5 | [
"MIT"
] | 1 | 2021-11-12T01:40:38.000Z | 2021-11-12T01:40:38.000Z | #include "../../utils/headers/main.cpp"
#include "main.cpp"
int main()
{
int n;
cin >> n;
vector<int> x(n);
REP(i, n) cin >> x[i];
BerlekampMassey<int(1e9 + 696969)> bm(x);
REP(k, 10) debug(k, bm.get(k));
}
| 16.461538 | 42 | 0.579439 | tonowak |
6621b9369acd878e03a26978ba8d86434b0dea51 | 2,663 | cpp | C++ | TRex-Server/src/Util/Logging.cpp | espv/trex-plus-wrapper | bbef6d27715cf35bc1faa8ec2d9eeb3099df337d | [
"Apache-2.0"
] | null | null | null | TRex-Server/src/Util/Logging.cpp | espv/trex-plus-wrapper | bbef6d27715cf35bc1faa8ec2d9eeb3099df337d | [
"Apache-2.0"
] | null | null | null | TRex-Server/src/Util/Logging.cpp | espv/trex-plus-wrapper | bbef6d27715cf35bc1faa8ec2d9eeb3099df337d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2011 Francesco Feltrinelli <first_name DOT last_name AT gmail DOT com>
*
* 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 3 of the License, or
* (at your o... | 33.708861 | 87 | 0.727375 | espv |
6622435f34c754ba5066588df2344014e217b585 | 4,999 | cc | C++ | test/random/curand/CurandPerformance.test.cc | whokion/celeritas | 9e1cf3ec6b7b5a15c5bc197959f105d6a02e6612 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | test/random/curand/CurandPerformance.test.cc | whokion/celeritas | 9e1cf3ec6b7b5a15c5bc197959f105d6a02e6612 | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | test/random/curand/CurandPerformance.test.cc | whokion/celeritas | 9e1cf3ec6b7b5a15c5bc197959f105d6a02e6612 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 29.405882 | 79 | 0.572515 | whokion |
6626884e716c12e8f453565c75b52c851941e1f3 | 1,312 | cpp | C++ | Cmds/baseFeatures.cpp | jli860/tnvme | 208943be96c0fe073ed97a7098c0b00a2776ebf9 | [
"Apache-2.0"
] | 34 | 2015-03-09T17:54:24.000Z | 2022-02-03T03:40:08.000Z | Cmds/baseFeatures.cpp | jli860/tnvme | 208943be96c0fe073ed97a7098c0b00a2776ebf9 | [
"Apache-2.0"
] | 13 | 2015-05-20T02:21:09.000Z | 2019-02-13T19:57:20.000Z | Cmds/baseFeatures.cpp | jli860/tnvme | 208943be96c0fe073ed97a7098c0b00a2776ebf9 | [
"Apache-2.0"
] | 53 | 2015-03-13T02:46:24.000Z | 2021-11-17T07:34:04.000Z | /*
* Copyright (c) 2011, Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 20.5 | 76 | 0.700457 | jli860 |
662a77ee12f2fab6f581345e5df9f7cdca42c605 | 2,261 | hpp | C++ | thread_util.hpp | yamanalab/MCMalloc | 699066fc4fc64e1e52144e10902e2e986a275760 | [
"Apache-2.0"
] | 3 | 2018-06-30T14:01:27.000Z | 2020-02-01T08:09:45.000Z | thread_util.hpp | yamanalab/MCMalloc | 699066fc4fc64e1e52144e10902e2e986a275760 | [
"Apache-2.0"
] | null | null | null | thread_util.hpp | yamanalab/MCMalloc | 699066fc4fc64e1e52144e10902e2e986a275760 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 Yamana Laboratory, Waseda University
* Supported by JST CREST Grant Number JPMJCR1503, Japan.
*
* 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.ap... | 27.240964 | 80 | 0.665192 | yamanalab |
662fcd4bc7ee63a550178422787435d8cf592569 | 7,290 | hpp | C++ | src/mem_datasource.hpp | calvinmetcalf/node-mapnik | 3d26f2089dee3cfc901965f6646d50004a0e0e56 | [
"BSD-3-Clause"
] | null | null | null | src/mem_datasource.hpp | calvinmetcalf/node-mapnik | 3d26f2089dee3cfc901965f6646d50004a0e0e56 | [
"BSD-3-Clause"
] | null | null | null | src/mem_datasource.hpp | calvinmetcalf/node-mapnik | 3d26f2089dee3cfc901965f6646d50004a0e0e56 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __NODE_MAPNIK_MEM_DATASOURCE_H__
#define __NODE_MAPNIK_MEM_DATASOURCE_H__
#include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
using namespace v8;
// mapnik
#include <mapnik/box2d.hpp>
#include <mapnik/query.hpp>
#include <mapnik/params.hpp>
#include <mapnik/sql_utils.hpp>
#include <mapnik/datasou... | 33.906977 | 109 | 0.510562 | calvinmetcalf |
66317a8c0d391f473cfc537c75d00f2dffd6d0a9 | 5,583 | cpp | C++ | examples/bloom_filter/src/BloomFilter.cpp | swoole/phpx | 3beb558f4ebed4660f0795fd98b193a350f924f6 | [
"Apache-2.0"
] | 213 | 2018-08-25T05:43:40.000Z | 2021-05-04T11:40:19.000Z | examples/bloom_filter/src/BloomFilter.cpp | swoole/phpx | 3beb558f4ebed4660f0795fd98b193a350f924f6 | [
"Apache-2.0"
] | 25 | 2018-09-09T05:54:59.000Z | 2021-02-22T05:09:54.000Z | examples/bloom_filter/src/BloomFilter.cpp | swoole/phpx | 3beb558f4ebed4660f0795fd98b193a350f924f6 | [
"Apache-2.0"
] | 41 | 2018-08-29T08:34:07.000Z | 2021-03-08T15:12:27.000Z | #include "phpx.h"
#include "ext/swoole/include/swoole.h"
#include "ext/swoole/include/swoole_lock.h"
#include "ext/swoole/include/swoole_file.h"
#include "ext/swoole/ext-src/php_swoole.h"
extern "C" {
extern void MurmurHash3_x64_128(const void *key, const int len, const uint32_t seed, void *out);
extern void SpookyHas... | 26.211268 | 102 | 0.602543 | swoole |
663326bad6c4a5ef5b0707933481815f73e11698 | 1,802 | cpp | C++ | src/gbtoolsUtils/gbtoolsUtils.cpp | Ensembl/gbtools | d0097eac4b363678391bf85fd76690c7342c772e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/gbtoolsUtils/gbtoolsUtils.cpp | Ensembl/gbtools | d0097eac4b363678391bf85fd76690c7342c772e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/gbtoolsUtils/gbtoolsUtils.cpp | Ensembl/gbtools | d0097eac4b363678391bf85fd76690c7342c772e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* File: gbtoolsUtils.cpp
* Author: Gemma Barson, 2015-03-24
* Copyright (c) 2006-2017 Genome Research Ltd
* ---------------------------------------------------------------------------
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | 34 | 83 | 0.626526 | Ensembl |
6636fcb78f0da9773abd1c90dfae28a58bedb03f | 401 | cpp | C++ | Sources/thread-oop/main.cpp | igarcerant/curso_cpp_2021 | 97c4a44fda2917d159e4ae809cc0c2a7e4fb9d16 | [
"MIT"
] | null | null | null | Sources/thread-oop/main.cpp | igarcerant/curso_cpp_2021 | 97c4a44fda2917d159e4ae809cc0c2a7e4fb9d16 | [
"MIT"
] | null | null | null | Sources/thread-oop/main.cpp | igarcerant/curso_cpp_2021 | 97c4a44fda2917d159e4ae809cc0c2a7e4fb9d16 | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include <string>
class Salutator
{
public:
void saludar(std::string name, int times);
};
void Salutator::saludar(std::string name, int times)
{
for(int i=0; i<times; i++) {
std::cout << i << ": hello, " << name << "!" << std::endl;
}
}
auto main() -> int
{
Salutator sa... | 13.827586 | 60 | 0.605985 | igarcerant |
663797e7995b05f9aaa50f86293786e3fd6d91bf | 773 | cpp | C++ | _0707_div2/C_Going_Home.cpp | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | _0707_div2/C_Going_Home.cpp | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | _0707_div2/C_Going_Home.cpp | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n;
int a[200001], x[5000001], y[5000001];
// pigeonhole principle, O(n) time return for qualified input data
void solve(){
cin >> n;
for(int i = 1; i <= n; ++i) cin >> a[i];
memset(x, 0, sizeof(x));
memset(y, 0, sizeof(y));
for(int i = 1; i < n; ++... | 24.15625 | 76 | 0.384217 | mingweihe |
6638bc982330359bb30b8a85784390c740183080 | 69,680 | cpp | C++ | src/api/mysql/mysql.cpp | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | src/api/mysql/mysql.cpp | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | src/api/mysql/mysql.cpp | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | // Copyright (c) 1999-2018 David Muse
// See the file COPYING for more information
#include <sqlrelay/sqlrclient.h>
#include <rudiments/charstring.h>
#include <rudiments/character.h>
#include <rudiments/stringbuffer.h>
#include <rudiments/bytestring.h>
#include <rudiments/environment.h>
#include <rudiments/dictionary.... | 25.255527 | 83 | 0.703315 | laigor |
6643314eb2e52bc8a69dca09ab2e2ef51cf5e11c | 1,160 | hpp | C++ | plugins/terrain_plugin/include/TerrainQuadtree.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | plugins/terrain_plugin/include/TerrainQuadtree.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | plugins/terrain_plugin/include/TerrainQuadtree.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #pragma once
#ifndef TERRAIN_PLUGIN_QUADTREE_HPP
#define TERRAIN_PLUGIN_QUADTREE_HPP
#include "ForwardDecl.hpp"
#include "glm/vec3.hpp"
#include "glm/mat4x4.hpp"
#include <unordered_map>
#include <memory>
#include <vulkan/vulkan.h>
class HeightNode;
class TerrainNode;
class TerrainQuadtree {
TerrainQuadtree(const... | 34.117647 | 192 | 0.776724 | fuchstraumer |
6643f8daf3ed7a59e05d29becc0c3db22161fc59 | 8,700 | cpp | C++ | sta-src/Astro-Core/cartesianTOrotating.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | sta-src/Astro-Core/cartesianTOrotating.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | sta-src/Astro-Core/cartesianTOrotating.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z |
/*
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be usefu... | 58.783784 | 240 | 0.661034 | hoehnp |
66466076d3c21cacd2d367ed0ca33b82af0d74b8 | 36,780 | cpp | C++ | CLucene/core/CLucene/index/SegmentInfos.cpp | asheeshv/CLucene-iOS-Android-Win8 | 46d3728178c59842472d43ebbb814375713ca7fa | [
"Apache-1.1"
] | 2 | 2015-06-23T13:22:17.000Z | 2019-04-28T06:35:02.000Z | CLucene/core/CLucene/index/SegmentInfos.cpp | asheeshv/CLucene-iOS-Android-Win8 | 46d3728178c59842472d43ebbb814375713ca7fa | [
"Apache-1.1"
] | null | null | null | CLucene/core/CLucene/index/SegmentInfos.cpp | asheeshv/CLucene-iOS-Android-Win8 | 46d3728178c59842472d43ebbb814375713ca7fa | [
"Apache-1.1"
] | null | null | null | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
---------------------... | 32.606383 | 145 | 0.615334 | asheeshv |
6647e8e1a937c948e484c3ace1332e62285bd87c | 6,862 | cpp | C++ | Implementation/Core/amc_statejournalstream.cpp | GibbekAdsk/AutodeskMachineControlFramework | 48c220c1acfbc2c4c33f636354e9372100f7c896 | [
"BSD-3-Clause"
] | null | null | null | Implementation/Core/amc_statejournalstream.cpp | GibbekAdsk/AutodeskMachineControlFramework | 48c220c1acfbc2c4c33f636354e9372100f7c896 | [
"BSD-3-Clause"
] | null | null | null | Implementation/Core/amc_statejournalstream.cpp | GibbekAdsk/AutodeskMachineControlFramework | 48c220c1acfbc2c4c33f636354e9372100f7c896 | [
"BSD-3-Clause"
] | null | null | null | /*++
Copyright (C) 2020 Autodesk Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | 28.473029 | 117 | 0.773244 | GibbekAdsk |
66486ff130fd25c45a38a5513c1e7578f742e6cb | 39,531 | hpp | C++ | external/libc++/unordered_set.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 44 | 2018-01-28T20:07:48.000Z | 2022-02-11T22:58:49.000Z | external/libc++/unordered_set.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 2 | 2017-09-12T15:38:16.000Z | 2017-11-05T12:19:01.000Z | external/libc++/unordered_set.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 8 | 2018-08-17T13:30:57.000Z | 2021-06-25T16:56:12.000Z | // -*- C++ -*-
//===-------------------------- unordered_set -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... | 37.901246 | 119 | 0.693709 | greck2908 |
664b6287154d6c4e004e6a20788376ba4ee6b901 | 751 | cpp | C++ | Solution/045.Jump Game II/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 6 | 2018-11-08T06:16:19.000Z | 2019-09-07T13:39:00.000Z | Solution/045.Jump Game II/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 10 | 2018-11-09T12:17:55.000Z | 2018-12-03T18:11:49.000Z | Solution/045.Jump Game II/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 7 | 2018-11-08T14:31:49.000Z | 2018-11-23T14:55:45.000Z | class Solution {
public:
int jump(vector<int>& nums) {
int i,j,cnt,ref_i,ref;
int n=nums.size();
if(n==0)
return 0;
if(n==1)
return 0;
cnt=0;
i=0;
while(i<n-1&&nums[i]){
ref_i=i;
ref=-1;
for(j=1;j<=nu... | 20.861111 | 36 | 0.28229 | zhufei2805801318 |
664e91a54ed5a7e75791bc2bcf9c2f7343ce8317 | 1,999 | cpp | C++ | docker/d-streamon-master/d-streamon/streamon/tests/libfc/test/TestReader.cpp | ferrarimarco/open-scissor | d54718a1969701798f3e2d57f3db68d829da1cc0 | [
"Apache-2.0"
] | 2 | 2017-12-02T10:38:05.000Z | 2018-04-22T17:15:01.000Z | docker/d-streamon-master/d-streamon/streamon/tests/libfc/test/TestReader.cpp | scissor-project/open-scissor | d54718a1969701798f3e2d57f3db68d829da1cc0 | [
"Apache-2.0"
] | 67 | 2017-11-11T15:22:34.000Z | 2018-04-24T06:44:59.000Z | docker/d-streamon-master/d-streamon/streamon/tests/libfc/test/TestReader.cpp | ferrarimarco/open-scissor | d54718a1969701798f3e2d57f3db68d829da1cc0 | [
"Apache-2.0"
] | 1 | 2017-12-07T08:18:49.000Z | 2017-12-07T08:18:49.000Z | #include "TestCommon.h"
#include <cstdio>
using namespace IPFIX;
class SimpleFlowReceiver : public SetReceiver {
private:
SimpleFlow vsf_;
StructTemplate vst_;
public:
SimpleFlowReceiver() {
initSimpleFlow(vsf_);
makeSimpleFlowTemplate(vst_);
}
const IETemplate *structTemplate() {
return &... | 28.557143 | 87 | 0.613807 | ferrarimarco |
593f227284280d7f48dcdc48795a96427bafca17 | 3,012 | cpp | C++ | src/Renderer/EskyDisplay.cpp | danielofdaniels/ProjectEskyLLAPI | 9278ea025f1a392adf563364ff7ee87b8223b262 | [
"BSD-3-Clause"
] | 5 | 2020-12-29T03:37:17.000Z | 2022-02-20T10:58:25.000Z | src/Renderer/EskyDisplay.cpp | danielofdaniels/ProjectEskyLLAPI | 9278ea025f1a392adf563364ff7ee87b8223b262 | [
"BSD-3-Clause"
] | 1 | 2021-01-14T04:30:31.000Z | 2021-01-14T04:30:31.000Z | src/Renderer/EskyDisplay.cpp | danielofdaniels/ProjectEskyLLAPI | 9278ea025f1a392adf563364ff7ee87b8223b262 | [
"BSD-3-Clause"
] | 3 | 2020-12-13T03:52:52.000Z | 2021-10-30T04:00:36.000Z | #include "EskyDisplay.h"
#include <iostream>
#include <sstream>
#include "EskyRenderer.h"
EskyDisplay::EskyDisplay() {
_debugCallback("Creating EskyDisplay");
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
std::ostringstream error_message;
error_message << "Failed to initialize SDL: ";
error_message << SDL_Get... | 23.348837 | 80 | 0.642098 | danielofdaniels |
5942524eb41163d677b22ea26f59b95749d8c17b | 1,166 | cpp | C++ | src/catch2/internal/catch_debug_console.cpp | nicramage/Catch2 | 6f21a3609cea360846a0ca93be55877cca14c86d | [
"BSL-1.0"
] | 9,861 | 2017-11-03T13:11:42.000Z | 2022-03-31T23:50:03.000Z | src/catch2/internal/catch_debug_console.cpp | nicramage/Catch2 | 6f21a3609cea360846a0ca93be55877cca14c86d | [
"BSL-1.0"
] | 1,409 | 2017-11-03T13:42:48.000Z | 2022-03-31T14:46:42.000Z | src/catch2/internal/catch_debug_console.cpp | nicramage/Catch2 | 6f21a3609cea360846a0ca93be55877cca14c86d | [
"BSL-1.0"
] | 2,442 | 2017-11-03T14:48:53.000Z | 2022-03-31T23:07:09.000Z |
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/internal/catch_debug_console.hpp>
#include <catch2/interna... | 28.439024 | 76 | 0.669811 | nicramage |
5949938cb7a1970c1b826cb1b1d281a8e31e4944 | 6,366 | cpp | C++ | computeProjectionsAutocorrelation.cpp | cpuimage/Deblurring | 8083d4f4a0413bc3e43f1657400c314c51dce860 | [
"MIT"
] | 50 | 2018-11-20T07:50:40.000Z | 2022-03-23T08:18:50.000Z | computeProjectionsAutocorrelation.cpp | chuckwoody/Deblurring | 8083d4f4a0413bc3e43f1657400c314c51dce860 | [
"MIT"
] | 1 | 2019-12-05T05:59:31.000Z | 2019-12-05T05:59:31.000Z | computeProjectionsAutocorrelation.cpp | chuckwoody/Deblurring | 8083d4f4a0413bc3e43f1657400c314c51dce860 | [
"MIT"
] | 15 | 2019-03-27T08:18:28.000Z | 2021-11-05T00:58:37.000Z | #include <cmath>
#include <cassert>
#include <cstring>
#include <algorithm>
#include "image.hpp"
#include "angleSet.hpp"
#include "projectImage.hpp"
#include "conjugate_gradient.hpp"
/// computed the autocorrelation of a signal up to a given window size
/// values at a radius windowRadius of the border of data are no... | 33.861702 | 100 | 0.552152 | cpuimage |
594b95d9e760360d5730d6b5af539b4652b058a9 | 12,235 | cpp | C++ | jaus_ros_bridge/src/fake_thruster.cpp | ChrisScianna/ROS-Underwater-RnD | f928bcc6b19a830b98e2cc2aedd65ff35b887901 | [
"BSD-3-Clause"
] | null | null | null | jaus_ros_bridge/src/fake_thruster.cpp | ChrisScianna/ROS-Underwater-RnD | f928bcc6b19a830b98e2cc2aedd65ff35b887901 | [
"BSD-3-Clause"
] | 85 | 2020-10-05T11:44:46.000Z | 2021-09-08T14:31:07.000Z | jaus_ros_bridge/src/fake_thruster.cpp | ChrisScianna/ROS-Underwater-RnD | f928bcc6b19a830b98e2cc2aedd65ff35b887901 | [
"BSD-3-Clause"
] | 1 | 2021-11-04T13:18:17.000Z | 2021-11-04T13:18:17.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2020, QinetiQ, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... | 41.757679 | 120 | 0.671189 | ChrisScianna |
594fec8ff494e02d6d6300f24c87593dff854d4d | 1,885 | cpp | C++ | 3-1.cpp | wuyudi/-Computer-Graphics | 228ef5e5db24c2af78ea8b5f68def47675895fd3 | [
"MIT"
] | null | null | null | 3-1.cpp | wuyudi/-Computer-Graphics | 228ef5e5db24c2af78ea8b5f68def47675895fd3 | [
"MIT"
] | null | null | null | 3-1.cpp | wuyudi/-Computer-Graphics | 228ef5e5db24c2af78ea8b5f68def47675895fd3 | [
"MIT"
] | null | null | null | //g++ -o 3-1 -Wall 3-1.cpp -mwindows glut32.lib -lopengl32 -lglu32
#include <windows.h>
#include <gl/glut.h>
//y1 在 GCC 里是内置函数,改名为 y3
int iPointNum = 0;
int x1 = 0, x2 = 0, y3 = 0, y2 = 0;
int winWidth = 400, winHeight = 300;
void Inital()
{
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
}
void ChangeSize(int w, int h)
{
... | 22.987805 | 70 | 0.575066 | wuyudi |
59508a1ecb70d9ae1f395bafc9412e474711623a | 1,681 | cc | C++ | code30/cpp/20190821/v4/SocketIO.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | mycode/cpp/0820/networklib/v4/SocketIO.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | mycode/cpp/0820/networklib/v4/SocketIO.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | ///
/// @file SocketIO.cc
/// @author lemon(haohb13@gmail.com)
/// @date 2019-05-07 16:01:31
///
#include "SocketIO.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
namespace wd
{
SocketIO::SocketIO(int fd)
: _fd(fd)
{}
in... | 15.858491 | 48 | 0.53599 | stdbilly |
596117c2455217dba06746689ab54862929054d2 | 3,665 | hxx | C++ | opencascade/IntPolyh_StartPoint.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/IntPolyh_StartPoint.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/IntPolyh_StartPoint.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1999-04-06
// Created by: Fabrice SERVANT
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Les... | 32.723214 | 399 | 0.789359 | valgur |
596181d08ef5a2ebddb46833dd05ef4b0ae3a3b2 | 2,757 | cpp | C++ | questions/threads-18369174/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 54 | 2015-09-13T07:29:52.000Z | 2022-03-16T07:43:50.000Z | questions/threads-18369174/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | null | null | null | questions/threads-18369174/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 31 | 2016-08-26T13:35:01.000Z | 2022-03-13T16:43:12.000Z | // main.cpp
#include <QCoreApplication>
#include <QObjectList>
#include <QList>
#include <QThread>
#include <iostream>
const int cycleCount = 500; //!< number of cycles to run at, set to 0 to run forever
const int threadCount = 5; //!< number of threads to create
class Object : pub... | 31.329545 | 88 | 0.491839 | SammyEnigma |
59628f001d2d6570df31489ca32702486fd303b5 | 3,813 | cpp | C++ | src/plugProjectOgawaU/ogCallBackScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectOgawaU/ogCallBackScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectOgawaU/ogCallBackScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
#include "og/Screen/callbackNodes.h"
/*
Generated from dpostproc
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.global __vt__Q32og6Screen15CallBack_Screen
__vt__Q32og6Screen15CallBack_Screen:
.4byte 0
.4byte 0
.4byte __dt__Q32og6Screen15CallBack_ScreenFv
... | 19.654639 | 78 | 0.603724 | projectPiki |
5963f24acd88fe3ba388ed949339e130ebe68fb1 | 535 | cpp | C++ | Week-4/Day-24-bagOfTokensScore.cpp | utkarshavardhana/october-leetcoding-challenge | f2303421ee02539141a1bb78840e03a669ee6e2b | [
"MIT"
] | null | null | null | Week-4/Day-24-bagOfTokensScore.cpp | utkarshavardhana/october-leetcoding-challenge | f2303421ee02539141a1bb78840e03a669ee6e2b | [
"MIT"
] | null | null | null | Week-4/Day-24-bagOfTokensScore.cpp | utkarshavardhana/october-leetcoding-challenge | f2303421ee02539141a1bb78840e03a669ee6e2b | [
"MIT"
] | null | null | null | class Solution {
public:
int bagOfTokensScore(vector<int>& tokens, int P) {
sort(tokens.begin(), tokens.end());
int res = 0, points = 0, i = 0, j = tokens.size() - 1;
while (i <= j) {
if (P >= tokens[i]) {
P -= tokens[i++];
res = max(res, +... | 26.75 | 63 | 0.362617 | utkarshavardhana |
5966da95d284eb4206a6b9e4d320bc2a1735c3f5 | 6,818 | cpp | C++ | bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 19 | 2015-01-18T09:34:48.000Z | 2021-07-22T08:00:17.000Z | bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | null | null | null | bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 8 | 2015-02-09T08:03:04.000Z | 2021-07-22T08:01:54.000Z | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... | 35.326425 | 243 | 0.74318 | rtrius |
5967d5ed66f583f9d40666f5e47c58d595999e24 | 2,264 | hpp | C++ | include/poike/core/CommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/core/CommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/core/CommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | /**
* @file CommandBuffers.hpp
* @brief Define CommandBuffers base class
*/
#ifndef COMMANDBUFFERS_HPP
#define COMMANDBUFFERS_HPP
#include <poike/core/CommandPool.hpp>
#include <poike/core/DescriptorSets.hpp>
#include <poike/core/Device.hpp>
#include <poike/core/GraphicsPipeline.hpp>
#include <poike/meta/NoCopy.hp... | 31.887324 | 99 | 0.660336 | florianvazelle |
5969418dbac4ccf9e9ecabcd8be076aaf0932974 | 3,380 | hpp | C++ | src/Engine/Drawables/Light/QuadLight.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 1 | 2020-10-26T02:36:58.000Z | 2020-10-26T02:36:58.000Z | src/Engine/Drawables/Light/QuadLight.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 6 | 2020-02-14T21:45:52.000Z | 2020-09-23T17:58:58.000Z | src/Engine/Drawables/Light/QuadLight.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | null | null | null | //
// Created by mathis on 28/11/2020.
//
#pragma once
#include <API.hpp>
#include "Light.hpp"
namespace daft::engine {
class ENGINE_API QuadLight : public Light {
public:
/**
* Default/standard constructor.
* @param mesh - line mesh that represents the light.
* @param color - color emitted by t... | 26.20155 | 119 | 0.596154 | DaftMat |
5969c9ba2cccb63ef5754687545e6ff6acd0c737 | 106,008 | cpp | C++ | coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any... | 30.479586 | 234 | 0.644234 | wivlaro |
596c733ed7598fbf307a9324884bdb5b95bf66e1 | 538 | cpp | C++ | test/test_symbol_load.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2015-03-02T22:29:00.000Z | 2020-06-28T08:52:00.000Z | test/test_symbol_load.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2019-05-10T02:28:00.000Z | 2021-07-17T00:53:18.000Z | test/test_symbol_load.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2016-05-25T07:31:16.000Z | 2021-08-29T04:25:18.000Z | #include "../source/h2_unit.cpp"
void say_something1()
{
::printf("hello world\n");
}
#if 0
SUITE(load)
{
Case(addr_to_ptr)
{
h2::h2_symbol* res[16];
int n = h2::h2_nm::get_by_name("say_something1", res, 16);
OK(1, n);
OK(Nq((unsigned long long)say_something1), (unsigned long long)res... | 24.454545 | 107 | 0.644981 | lingjf |
596e09a66b9785a7691b25d87ea261663311be75 | 571 | hpp | C++ | LeetCode/386_LexicographicalNumbers.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | LeetCode/386_LexicographicalNumbers.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | LeetCode/386_LexicographicalNumbers.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
// 100ms run time(faster than 16%)
// need to optimize the solution
class Solution
{
public:
std::vector<int> lexicalOrder(int n)
{
std::vector<std::string> lexicalString;
for (int i = 1; i <= n; i++)
lexicalString.push_... | 21.148148 | 62 | 0.605954 | defUserName-404 |
5973549ffceae0114a97ad921660145eeac4b2d1 | 2,828 | cc | C++ | Testcase4-Application-breakdown/online-compiling/test_vectors/mosh/src/terminal/terminaluserinput.cc | hunhoffe/ServerlessBench | 529eb835638cad0edb5be3343166c7ade375ece2 | [
"MulanPSL-1.0"
] | 129 | 2020-08-09T12:02:30.000Z | 2022-03-31T15:26:03.000Z | Testcase4-Application-breakdown/online-compiling/test_vectors/mosh/src/terminal/terminaluserinput.cc | hunhoffe/ServerlessBench | 529eb835638cad0edb5be3343166c7ade375ece2 | [
"MulanPSL-1.0"
] | 11 | 2020-09-17T09:42:07.000Z | 2022-03-30T19:05:38.000Z | Testcase4-Application-breakdown/online-compiling/test_vectors/mosh/src/terminal/terminaluserinput.cc | hunhoffe/ServerlessBench | 529eb835638cad0edb5be3343166c7ade375ece2 | [
"MulanPSL-1.0"
] | 22 | 2020-08-20T06:59:24.000Z | 2022-03-18T21:00:05.000Z | /*
Mosh: the mobile shell
Copyright 2012 Keith Winstein
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 3 of the License, or
(at your option) any later version.... | 32.505747 | 73 | 0.669378 | hunhoffe |
5977311284a3882abd70bfc7d7b3d3e305b3a80d | 5,169 | cc | C++ | depends/dbcommon/src/dbcommon/nodes/select-list.cc | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2020-05-11T01:39:13.000Z | 2020-05-11T01:39:13.000Z | depends/dbcommon/src/dbcommon/nodes/select-list.cc | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2021-03-01T02:57:26.000Z | 2021-03-01T02:57:26.000Z | depends/dbcommon/src/dbcommon/nodes/select-list.cc | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2020-05-03T07:29:21.000Z | 2020-05-03T07:29:21.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 29.369318 | 79 | 0.662024 | YangHao666666 |
597b50f3192465ff37e17f6f8a5bcebbbdbee784 | 1,419 | cpp | C++ | LeetCode/C++/34. Find First and Last Position of Element in Sorted Array.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | LeetCode/C++/34. Find First and Last Position of Element in Sorted Array.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | LeetCode/C++/34. Find First and Last Position of Element in Sorted Array.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | //binary search
//Runtime: 16 ms, faster than 90.01% of C++ online submissions for Find First and Last Position of Element in Sorted Array.
//Memory Usage: 14.1 MB, less than 10.23% of C++ online submissions for Find First and Last Position of Element in Sorted Array.
//time: O(logN), space: O(1)
class Solution {
publi... | 27.823529 | 128 | 0.427766 | shreejitverma |
597fefef7cb4bddfa4c1c0b181b1ce8f5d300357 | 495 | hpp | C++ | Plus7/Modules/Gfx/Include/RasterizerProperties.hpp | txfx/plus7 | 44df3622ea8abe296d921759144e5f0d630b2945 | [
"MIT"
] | null | null | null | Plus7/Modules/Gfx/Include/RasterizerProperties.hpp | txfx/plus7 | 44df3622ea8abe296d921759144e5f0d630b2945 | [
"MIT"
] | null | null | null | Plus7/Modules/Gfx/Include/RasterizerProperties.hpp | txfx/plus7 | 44df3622ea8abe296d921759144e5f0d630b2945 | [
"MIT"
] | null | null | null | #pragma once
namespace p7 {
namespace gfx {
enum class PolygonMode
{
Fill,
Line,
Point
};
enum class CullMode
{
None,
Front,
Back,
Front_And_Back
};
enum class FrontFace
{
ClockWise,
CounterClockWise
};
struct RasterizerProperties
{
PolygonMode fillmode = PolygonMode::Fill;
... | 14.558824 | 56 | 0.652525 | txfx |
59859b7e9dc0f0d7b9878eece674c7bd4da591f4 | 405 | hpp | C++ | include/hecl/Blender/Token.hpp | linkmauve/hecl | 57bfd8cb3fefb3e57caddef46b636d762ec642a1 | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | hecl/include/hecl/Blender/Token.hpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | include/hecl/Blender/Token.hpp | RetroView/hecl | 2d1328c04bdbe9928ae89ec5b51bedb51a0133f1 | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #pragma once
#include <memory>
namespace hecl::blender {
class Connection;
class Token {
std::unique_ptr<Connection> m_conn;
public:
Connection& getBlenderConnection();
void shutdown();
Token() = default;
~Token();
Token(const Token&) = delete;
Token& operator=(const Token&) = delete;
Token(Token&&... | 16.875 | 42 | 0.676543 | linkmauve |
598751fdcd0b3a69a6186b3973daca3e8c1fc575 | 3,374 | cpp | C++ | implementation/src/address.cpp | GT-TDAlab/ElGA | cebf356f8c052abfe8fd5fdc43a9396e0daf3ff8 | [
"BSD-3-Clause"
] | 7 | 2021-11-19T09:15:01.000Z | 2022-03-06T01:41:15.000Z | implementation/src/address.cpp | GT-TDAlab/ElGA | cebf356f8c052abfe8fd5fdc43a9396e0daf3ff8 | [
"BSD-3-Clause"
] | null | null | null | implementation/src/address.cpp | GT-TDAlab/ElGA | cebf356f8c052abfe8fd5fdc43a9396e0daf3ff8 | [
"BSD-3-Clause"
] | 3 | 2022-03-06T01:41:23.000Z | 2022-03-18T10:06:33.000Z | /**
* ElGA chatterbox addresses
*
* Author: Kasimir Gabert
*
* Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
* (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
* Government retains certain rights in this software.
*
* Please see the LICENSE.md file for license ... | 29.596491 | 87 | 0.659158 | GT-TDAlab |
5990e3aa9c87c5ceb5a0409a42bbb5d236a4a8ac | 8,315 | cpp | C++ | emulator/src/mame/drivers/babbage.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/drivers/babbage.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/drivers/babbage.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Robbbert
/***************************************************************************
Babbage-2nd skeleton driver (19/OCT/2011)
http://takeda-toshiya.my.coocan.jp/babbage/index.html
Pasting:
0-F : as is
INC : ^
AD : -
DA : =
... | 30.018051 | 139 | 0.664702 | rjw57 |
59950b49010124aa885e437363e451e6bb05f30e | 5,431 | cpp | C++ | src/final_chain/replay_protection_service.cpp | agrebin/taraxa-node | a594b01f52e727c8fc5dc87c9c325510c2a6f1cb | [
"MIT"
] | null | null | null | src/final_chain/replay_protection_service.cpp | agrebin/taraxa-node | a594b01f52e727c8fc5dc87c9c325510c2a6f1cb | [
"MIT"
] | 7 | 2021-06-08T12:40:38.000Z | 2021-06-16T12:11:15.000Z | src/final_chain/replay_protection_service.cpp | agrebin/taraxa-node | a594b01f52e727c8fc5dc87c9c325510c2a6f1cb | [
"MIT"
] | null | null | null | #include "replay_protection_service.hpp"
#include <libdevcore/CommonJS.h>
#include <libdevcore/RLP.h>
#include <optional>
#include <shared_mutex>
#include <sstream>
#include <string>
#include <unordered_map>
#include "util/util.hpp"
namespace taraxa::final_chain {
using namespace dev;
using namespace util;
using na... | 37.455172 | 117 | 0.69582 | agrebin |
5997027482046486252fb9d2db0fbb2c7227c018 | 14,441 | cpp | C++ | drlvm/vm/vmcore/src/init/vm_properties.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 5 | 2017-03-08T20:32:39.000Z | 2021-07-10T10:12:38.000Z | drlvm/vm/vmcore/src/init/vm_properties.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | null | null | null | drlvm/vm/vmcore/src/init/vm_properties.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 4 | 2015-07-07T07:06:59.000Z | 2018-06-19T22:38:04.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | 34.220379 | 114 | 0.614016 | sirinath |
59976f90689a1ebd7daa77a7d18111f1108d5707 | 3,586 | inl | C++ | Base/PLCore/include/PLCore/Application/ApplicationContext.inl | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/include/PLCore/Application/ApplicationContext.inl | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/include/PLCore/Application/ApplicationContext.inl | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: ApplicationContext.inl *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 29.393443 | 97 | 0.578639 | ktotheoz |
599a66bc13ffa4630c6484be6cdf9ffce4394696 | 7,939 | cpp | C++ | Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp | yebing115/ARK | f1c61b222dacc83e95ffb623b4ce99cbb8e386d5 | [
"Apache-2.0"
] | 1 | 2021-07-09T04:50:39.000Z | 2021-07-09T04:50:39.000Z | Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp | yigao/ARK | f1c61b222dacc83e95ffb623b4ce99cbb8e386d5 | [
"Apache-2.0"
] | 1 | 2018-12-19T08:58:25.000Z | 2018-12-19T08:59:07.000Z | Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp | yigao/ARK | f1c61b222dacc83e95ffb623b4ce99cbb8e386d5 | [
"Apache-2.0"
] | null | null | null | /*
* This source file is part of ArkGameFrame
* For the latest info, see https://github.com/ArkGame
*
* Copyright (c) 2013-2018 ArkGame 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 a... | 39.108374 | 171 | 0.70034 | yebing115 |
599c11f5305faeb0f97c4072f6b1c2288de4d551 | 8,865 | cpp | C++ | Plugins/PLParticleGroups/src/PGFume.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Plugins/PLParticleGroups/src/PGFume.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 19 | 2018-08-24T08:10:13.000Z | 2018-11-29T06:39:08.000Z | Plugins/PLParticleGroups/src/PGFume.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: PGFume.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 31.774194 | 110 | 0.593909 | ktotheoz |
599cd6b6b20598bed33179bbb630bc5128ddc745 | 2,382 | cpp | C++ | src/main/tool/ar/override.cpp | kkysen/DifferentiableFuzzer | 22088a3871e4104c4afc463c05ce58f0221dbc43 | [
"MIT"
] | 1 | 2019-06-19T06:03:03.000Z | 2019-06-19T06:03:03.000Z | src/main/tool/ar/override.cpp | kkysen/SmartNeuralFuzzer | 22088a3871e4104c4afc463c05ce58f0221dbc43 | [
"MIT"
] | null | null | null | src/main/tool/ar/override.cpp | kkysen/SmartNeuralFuzzer | 22088a3871e4104c4afc463c05ce58f0221dbc43 | [
"MIT"
] | null | null | null | //
// Created by Khyber on 6/12/2019.
//
#include "src/share/io/Popen.h"
#include "src/share/stde/getline.h"
#include "src/share/stde/addStrings.h"
#include <vector>
#include <fcntl.h>
#include <unistd.h>
std::string escape(std::string_view unescaped) {
std::string escaped;
escaped.reserve(unescaped.size() ... | 30.538462 | 101 | 0.52225 | kkysen |