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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7f614803c22f2011f236925dc43df4b1144dd83 | 2,294 | cc | C++ | chrome/credential_provider/extension/extension_main.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/credential_provider/extension/extension_main.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/credential_provider/extension/extension_main.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright (c) 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "windows.h"
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "b... | 37.606557 | 78 | 0.71796 | mghgroup |
e7f789f835be45fa51b41edcbf3a38b3802995b0 | 3,746 | cpp | C++ | code/silverlib/game_hooks.cpp | adm244/f4silver | 564ecc80991266ae8b3238f553b76d75506f9fbf | [
"Unlicense"
] | 6 | 2018-11-07T19:31:30.000Z | 2021-07-29T02:58:33.000Z | code/silverlib/game_hooks.cpp | adm244/f4silver | 564ecc80991266ae8b3238f553b76d75506f9fbf | [
"Unlicense"
] | 2 | 2018-06-01T23:27:46.000Z | 2018-09-11T23:35:58.000Z | code/silverlib/game_hooks.cpp | adm244/f4silver | 564ecc80991266ae8b3238f553b76d75506f9fbf | [
"Unlicense"
] | 3 | 2019-12-29T14:45:55.000Z | 2020-05-12T16:34:23.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... | 29.730159 | 78 | 0.70929 | adm244 |
e7fe5c6f89e5e9048437b4d5c476f271f8341ad0 | 1,180 | cpp | C++ | source/idf/MadCatz.cpp | greck2908/IDF | 0882cc35d88b96b0aea55e112060779654f040a6 | [
"NASA-1.3"
] | 84 | 2016-06-15T21:26:02.000Z | 2022-03-12T15:09:57.000Z | source/idf/MadCatz.cpp | greck2908/IDF | 0882cc35d88b96b0aea55e112060779654f040a6 | [
"NASA-1.3"
] | 44 | 2016-10-19T17:35:01.000Z | 2022-03-11T17:20:51.000Z | source/idf/MadCatz.cpp | greck2908/IDF | 0882cc35d88b96b0aea55e112060779654f040a6 | [
"NASA-1.3"
] | 46 | 2016-06-25T00:18:52.000Z | 2019-12-19T11:13:15.000Z | #include "idf/MadCatz.hh"
namespace idf {
MadCatz::MadCatz() :
forwardBackwardPivot(0, 1023, 511),
leftRightPivot(0, 1023, 511),
twist(0, 255, 127),
leftThrottle(0, 255, 127),
rightThrottle(0, 255, 127),
trigger(0, 1),
button2(0, 1),
button3(0, 1),
button4(0, 1),
button5(0, 1),... | 25.652174 | 111 | 0.616102 | greck2908 |
e7feb77a0e6a3e4807d2f203b96c6ff3cb432fb3 | 1,002 | hpp | C++ | coroutine/OverridingList.hpp | bxtx999/pmembench | 9577a15bc7934a681f23b3096f2cd25e09f66874 | [
"MIT",
"Unlicense"
] | 10 | 2021-02-09T21:07:12.000Z | 2022-02-10T17:37:06.000Z | coroutine/OverridingList.hpp | bxtx999/pmembench | 9577a15bc7934a681f23b3096f2cd25e09f66874 | [
"MIT",
"Unlicense"
] | null | null | null | coroutine/OverridingList.hpp | bxtx999/pmembench | 9577a15bc7934a681f23b3096f2cd25e09f66874 | [
"MIT",
"Unlicense"
] | 4 | 2021-04-12T08:13:09.000Z | 2022-01-05T02:54:45.000Z | #pragma once
// -------------------------------------------------------------------------------------
#include <type_traits>
#include <cassert>
// -------------------------------------------------------------------------------------
template<typename Value>
class OverridingList {
public:
OverridingList()
... | 20.875 | 88 | 0.422156 | bxtx999 |
e7fecc8db9d079f7a0163210bdc20ae85ebd86fd | 1,593 | hpp | C++ | unit_tests/common/test_string_collection.hpp | eido5/cubrid | f32dbe7cb90f096035c255d7b5f348438bbb5830 | [
"Apache-2.0",
"BSD-3-Clause"
] | 253 | 2016-03-12T01:03:42.000Z | 2022-03-14T08:24:39.000Z | unit_tests/common/test_string_collection.hpp | eido5/cubrid | f32dbe7cb90f096035c255d7b5f348438bbb5830 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,124 | 2016-03-31T03:48:58.000Z | 2022-03-31T23:44:04.000Z | unit_tests/common/test_string_collection.hpp | eido5/cubrid | f32dbe7cb90f096035c255d7b5f348438bbb5830 | [
"Apache-2.0",
"BSD-3-Clause"
] | 268 | 2016-03-02T06:48:44.000Z | 2022-03-04T05:17:24.000Z | /*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID 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-... | 23.776119 | 76 | 0.696798 | eido5 |
f001aa502b6b916c44ef754284d4953e994763a6 | 2,085 | hh | C++ | Include/Zion/GameMode.hh | ZionMP/Zion | 7266cc5df81644e54c2744fca7f31b24873b31e7 | [
"BSD-2-Clause"
] | 1 | 2021-10-14T05:25:47.000Z | 2021-10-14T05:25:47.000Z | Include/Zion/GameMode.hh | ZionMP/Zion | 7266cc5df81644e54c2744fca7f31b24873b31e7 | [
"BSD-2-Clause"
] | null | null | null | Include/Zion/GameMode.hh | ZionMP/Zion | 7266cc5df81644e54c2744fca7f31b24873b31e7 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "Base.hh"
#include "Player.hh"
#include "Vehicle.hh"
#include "Util.hh"
#include "TextDraw.hh"
#include "Pickup.hh"
namespace Zion {
class GameMode {
public:
virtual void OnPlayerInteriorChange(Player *player, int newInterior, int oldInterior) {}
virtual void O... | 56.351351 | 125 | 0.67482 | ZionMP |
f00450a13a46bc0721e45e796715b2a81e3a5215 | 558 | cpp | C++ | ZenUnitTestUtils/TestingNonDefaults.cpp | NeilJustice/ZenUnitAndZenMock | bbcb4221d063fa04e4ef3a98143e0f123e3af8d5 | [
"MIT"
] | 2 | 2019-11-11T17:32:53.000Z | 2020-04-22T20:42:56.000Z | ZenUnitTestUtils/TestingNonDefaults.cpp | NeilJustice/ZenUnitAndZenMock | bbcb4221d063fa04e4ef3a98143e0f123e3af8d5 | [
"MIT"
] | 1 | 2018-04-21T07:53:26.000Z | 2018-05-20T14:50:07.000Z | ZenUnitTestUtils/TestingNonDefaults.cpp | NeilJustice/ZenUnitAndZenMock | bbcb4221d063fa04e4ef3a98143e0f123e3af8d5 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ZenUnitTestUtils/TestingNonDefaults.h"
namespace ZenUnit
{
TestResult TestingNonDefaultTestResult() noexcept
{
const FullTestName fullTestName("Non", "Default", 0);
TestResult constructorFailTestResult = TestResult::ConstructorFail(fullTestName, TestPhaseResult());
... | 27.9 | 107 | 0.724014 | NeilJustice |
f004f4a56457c170fc13c7bf1990d6c17b22871e | 2,563 | cpp | C++ | core/runtime/register_trt_op.cpp | SrivastavaKshitij/TRTorch | cbe186603e21a7e6cb51a4e8182d6e397b33c7ab | [
"BSD-3-Clause"
] | 9 | 2020-10-28T14:54:19.000Z | 2021-12-23T07:23:04.000Z | core/runtime/register_trt_op.cpp | magnetsrev/TRTorch | 72bf74b2a2e425e6c83542f99c92b9e551148149 | [
"BSD-3-Clause"
] | 1 | 2021-07-22T16:58:40.000Z | 2021-07-22T16:58:40.000Z | core/runtime/register_trt_op.cpp | magnetsrev/TRTorch | 72bf74b2a2e425e6c83542f99c92b9e551148149 | [
"BSD-3-Clause"
] | 2 | 2020-10-12T05:47:33.000Z | 2020-11-05T09:26:07.000Z | #include "c10/cuda/CUDAStream.h"
#include "torch/csrc/jit/runtime/custom_operator.h"
#include "torch/torch.h"
#include "core/runtime/runtime.h"
#include "core/util/prelude.h"
namespace trtorch {
namespace core {
namespace runtime {
std::vector<at::Tensor> execute_engine(std::vector<at::Tensor> inputs, c10::intrusiv... | 40.046875 | 119 | 0.708935 | SrivastavaKshitij |
f005369c1ccf2e02974208beb2f1ab22db4f5cfb | 2,025 | hpp | C++ | zen/lexgen/nodes.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | zen/lexgen/nodes.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | 2 | 2020-02-06T17:01:39.000Z | 2020-02-12T17:50:14.000Z | zen/lexgen/nodes.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | #ifndef ZEN_LEXGEN_NODES_HPP
#define ZEN_LEXGEN_NODES_HPP
#include <list>
#include <memory>
#include "zen/string.hpp"
#include "zen/dllist.hpp"
namespace zen {
namespace lexgen {
template<typename T>
using SPtr = std::shared_ptr<T>;
enum class NodeType {
rule,
ref_expr,
char_expr,
... | 15.944882 | 76 | 0.576296 | ZenLibraries |
f00812be6bc41c86a6dcd549186c57d6f57ce8d3 | 2,301 | hpp | C++ | CookieEngine/include/Gameplay/CGPWorker.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Gameplay/CGPWorker.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Gameplay/CGPWorker.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #ifndef _CGP_WORKER_HPP__
#define _CGP_WORKER_HPP__
#include "ComponentTransform.hpp"
#include "Map.hpp"
#include "Gameplay/CGPResource.hpp"
#include "Gameplay/Income.hpp"
#include <vector>
namespace Cookie
{
namespace ECS
{
class Coordinator;
}
namespace Resources
{
class Prefab;
class Map;
}
namespac... | 26.755814 | 105 | 0.633638 | qbleuse |
f00a35b5915426f9c5ddcecaebf999755c2cc7e7 | 192 | cpp | C++ | bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandMov.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | 3 | 2019-04-08T17:34:19.000Z | 2020-01-03T04:47:06.000Z | bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandMov.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | 4 | 2020-04-19T22:09:06.000Z | 2020-11-06T15:47:08.000Z | bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandMov.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | null | null | null | #include "InterpreterCommandMov.h"
SKALANG_BYTECODE_INTERPRETER_COMMAND_DECLARE(MOV)(ExecutionContext& context, const Operand& left, const Operand& right) {
return context.getCell(left);
}
| 32 | 121 | 0.8125 | Scorbutics |
f00dbdb3d7bef7604daa1335487649f287667bd0 | 5,221 | cpp | C++ | libvast/src/system/read_query.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | libvast/src/system/read_query.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | libvast/src/system/read_query.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2019 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "vast/system/read_query.hpp"
#include "vast/fw... | 35.517007 | 80 | 0.622103 | rdettai |
f00f829e36cab5051a674b7c0f5f57955c333623 | 4,000 | hpp | C++ | include/ashespp/RenderPass/RenderPass.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | include/ashespp/RenderPass/RenderPass.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | include/ashespp/RenderPass/RenderPass.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#ifndef ___AshesPP_RenderPass_HPP___
#define ___AshesPP_RenderPass_HPP___
#pragma once
#include "RenderPassCreateInfo.hpp"
namespace ashes
{
/**
*\brief
* Describes a render pass (which can contain one or more render subpasses).
*/
class RenderPa... | 24.390244 | 76 | 0.70075 | DragonJoker |
f0140c4ac96027b009016a32e66fd6ff5f3e6fc1 | 14,176 | cpp | C++ | Immortal/Platform/D3D12/RenderContext.cpp | QSXW/Immortal | 32adcc8609b318752dd97f1c14dc7368b47d47d1 | [
"Apache-2.0"
] | 6 | 2021-09-15T08:56:28.000Z | 2022-03-29T15:55:02.000Z | Immortal/Platform/D3D12/RenderContext.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | null | null | null | Immortal/Platform/D3D12/RenderContext.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | 4 | 2021-12-05T17:28:57.000Z | 2022-03-29T15:55:05.000Z | #include "impch.h"
#include "RenderContext.h"
#include "Framework/Utils.h"
#include "Descriptor.h"
namespace Immortal
{
namespace D3D12
{
Device *RenderContext::UnlimitedDevice = nullptr;
DescriptorAllocator RenderContext::shaderVisibleDescriptorAllocator{
DescriptorPool::Type::ShaderResourceView,
Descripto... | 31.572383 | 137 | 0.670076 | QSXW |
f015cd8f7d4f76500819b27551d6ae929fb9f087 | 11,675 | cpp | C++ | models/processor/zesto/ZCOMPS-bpred/bpred-tage.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 8 | 2016-01-22T18:28:48.000Z | 2021-05-07T02:27:21.000Z | models/processor/zesto/ZCOMPS-bpred/bpred-tage.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 3 | 2016-04-15T02:58:58.000Z | 2017-01-19T17:07:34.000Z | models/processor/zesto/ZCOMPS-bpred/bpred-tage.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 10 | 2015-12-11T04:16:55.000Z | 2019-05-25T20:58:13.000Z | /* bpred-tage.cpp: TAgged GEometric-history length predictor [Seznec and Michaud, JILP 2006] */
/*
* __COPYRIGHT__ GT
*/
#define COMPONENT_NAME "tage"
#ifdef BPRED_PARSE_ARGS
if(!strcasecmp(COMPONENT_NAME,type))
{
int num_tables;
int bim_size;
int table_size;
int tag_width;
int first_length;
int last_le... | 23.92418 | 154 | 0.53439 | Basseuph |
f0185c17361e3baf8c59b31edc45e0b8ac2a6df0 | 6,895 | cpp | C++ | Apps/APTestApp/MainMac.cpp | tom-weatherhead/exeter-asset-processor | e19c777427afe66684f308cb7b07448b3481c25e | [
"MIT"
] | null | null | null | Apps/APTestApp/MainMac.cpp | tom-weatherhead/exeter-asset-processor | e19c777427afe66684f308cb7b07448b3481c25e | [
"MIT"
] | null | null | null | Apps/APTestApp/MainMac.cpp | tom-weatherhead/exeter-asset-processor | e19c777427afe66684f308cb7b07448b3481c25e | [
"MIT"
] | null | null | null | /* main.c */
#include <Carbon/Carbon.h>
#include "main.h"
#include "ExAPBitmapARGB32.h"
void Initialize(void); /* function prototypes */
void EventLoop(void);
void MakeWindow(void);
void MakeMenu(void);
void DoEvent(EventRecord *event);
void DoMenuCommand(long menuResult);
void DoAboutBox(void);
void D... | 26.621622 | 150 | 0.522843 | tom-weatherhead |
f01900af12de7167295f7738f8636d6c75b1ce11 | 8,180 | cc | C++ | src/server/DataBase.cc | ryan-rao/LTFS-Data-Management | 041960282d20aeefb8da20eabf04367a164a5903 | [
"Apache-2.0"
] | 19 | 2018-06-28T03:53:41.000Z | 2022-03-15T16:17:33.000Z | src/server/DataBase.cc | ryan-rao/LTFS-Data-Management | 041960282d20aeefb8da20eabf04367a164a5903 | [
"Apache-2.0"
] | 13 | 2018-04-25T15:40:14.000Z | 2021-01-18T11:03:27.000Z | src/server/DataBase.cc | ryan-rao/LTFS-Data-Management | 041960282d20aeefb8da20eabf04367a164a5903 | [
"Apache-2.0"
] | 8 | 2018-08-08T05:40:31.000Z | 2022-03-22T16:21:06.000Z | /*******************************************************************************
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | 22.349727 | 81 | 0.590098 | ryan-rao |
f01a5de4d6d19de7b46c6a567e60cd2d44ae84e6 | 1,786 | cpp | C++ | bachelor/computer-graphics/Les1/CG1_2DVector.cpp | Brent-rb/University | caae9c7d8e44bf7589865517f786529b1f171059 | [
"MIT"
] | null | null | null | bachelor/computer-graphics/Les1/CG1_2DVector.cpp | Brent-rb/University | caae9c7d8e44bf7589865517f786529b1f171059 | [
"MIT"
] | null | null | null | bachelor/computer-graphics/Les1/CG1_2DVector.cpp | Brent-rb/University | caae9c7d8e44bf7589865517f786529b1f171059 | [
"MIT"
] | null | null | null | // CG1_2DVector.cpp: implementation of the CG1_2DVector class.
//
//////////////////////////////////////////////////////////////////////
#include "CG1_2DVector.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////////////////////////////////////////////... | 21.518072 | 85 | 0.285554 | Brent-rb |
f01cea47e637935b9573a782878720ddcdf1d0fa | 1,902 | cpp | C++ | CS208_Lab/huffman_code.cpp | zc-BEAR/Course_Repo | bbbcc83992f3e837dfb21615bb8e81d86f397f83 | [
"MIT"
] | null | null | null | CS208_Lab/huffman_code.cpp | zc-BEAR/Course_Repo | bbbcc83992f3e837dfb21615bb8e81d86f397f83 | [
"MIT"
] | null | null | null | CS208_Lab/huffman_code.cpp | zc-BEAR/Course_Repo | bbbcc83992f3e837dfb21615bb8e81d86f397f83 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Node{
int c;
int num;
Node* fa;
bool operator < (const Node &x)const{
return x.num < num;
}
}num[100];
int t, str_len, fa_index;
int val[100];
long long ans;
string str;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
... | 24.701299 | 62 | 0.388013 | zc-BEAR |
f01e5468ec34fc81f5bfb7f0da1d4d62e9107d7c | 387 | cpp | C++ | leetcode/two-pointer/11.container-with-most-water.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | 23 | 2021-10-30T04:11:52.000Z | 2021-11-27T09:16:18.000Z | leetcode/two-pointer/11.container-with-most-water.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | null | null | null | leetcode/two-pointer/11.container-with-most-water.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | 4 | 2021-10-30T03:26:05.000Z | 2021-11-14T12:15:04.000Z | // saurabhraj042
class Solution {
public:
int maxArea(vector<int>& A) {
int i = 0,j = A.size()-1;
int mx = j * min( A[i],A[j] );
while( i < j )
{
if( (j-i) * min( A[j],A[i] ) > mx)
mx=(j-i)*min(A[j],A[i]);
if( A[i] < A[j])... | 19.35 | 46 | 0.330749 | saurabhraj042 |
f01ebd1ec67d7007bf3487191f5484056bc66b78 | 5,238 | cpp | C++ | clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- | FileCheck --strict-whitespace %s
#pragma clang diagnostic push
#pragma clang diagnostic pop
#pragma clang diagnostic ignored "-Wformat"
#pragma clang diagnostic warning "-Wformat"
#pragma clang diagnostic error "-Wformat"
#pragma clang diagnostic fatal... | 44.016807 | 99 | 0.653685 | medismailben |
f01f9b2b18a3d97fdf502b9b2fde13cba6e1418a | 849 | cpp | C++ | Source/PluginPostEffects_Core1/Exports.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/PluginPostEffects_Core1/Exports.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/PluginPostEffects_Core1/Exports.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | #define DLL_EXPORT
#include "Exports.h"
#include "Plugins/IPostEffectFactory.h"
#include "Factories.h"
namespace Core
{
namespace Plugin
{
CPostEffectFactory_Bloom* Bloom = nullptr;
CPostEffectFactory_Hdr* Hdr = nullptr;
CPostEffectFactory_MotionBlur* MotionBlur = nullptr;
CPostEffectFactory_SSAO* Ssao = null... | 19.295455 | 62 | 0.720848 | shanefarris |
f020af42a32e14a0c8a88f5f7986e92a282436ca | 376 | cpp | C++ | moosh/src/msg_handler.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | moosh/src/msg_handler.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | moosh/src/msg_handler.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | #include "msg_handler.hpp"
#include <iostream>
void MessageHandler::error(const std::string& msg, unsigned lineNum)
{
std::cerr << "Error, line " << lineNum + m_lineOffset << ": " << msg << std::endl;
}
void MessageHandler::warning(const std::string& msg, unsigned lineNum)
{
std::cerr << "Warning, line " <<... | 25.066667 | 87 | 0.638298 | mujido |
f0226c78fa7c6e4f85aedf840418a5f8df8a9b15 | 10,309 | cpp | C++ | HaloTAS/TASDLL/tas_hooks.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 6 | 2019-09-10T19:47:04.000Z | 2020-11-26T08:32:36.000Z | HaloTAS/TASDLL/tas_hooks.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 13 | 2018-11-24T09:37:49.000Z | 2021-10-22T02:29:11.000Z | HaloTAS/TASDLL/tas_hooks.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 3 | 2020-07-28T09:19:14.000Z | 2020-09-02T04:48:49.000Z | #include "tas_hooks.h"
#include "tas_logger.h"
#include "tas_input_handler.h"
#include "randomizer.h"
#include "halo_engine.h"
#include "render_d3d9.h"
// Function Defs
typedef HRESULT(__stdcall* GetDeviceState_t)(LPDIRECTINPUTDEVICE*, DWORD, LPVOID*);
typedef HRESULT(__stdcall* GetDeviceData_t)(LPDIRECTINPUTDEVICE*, ... | 30.957958 | 156 | 0.776409 | s3anyboy |
f02732e925b9bd7a3d1071c0ebc55a73fc0c1d0d | 418 | hpp | C++ | pythran/pythonic/include/numpy/isscalar.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/isscalar.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/isscalar.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_ISSCALAR_HPP
#define PYTHONIC_INCLUDE_NUMPY_ISSCALAR_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/types/traits.hpp"
#include "pythonic/include/types/str.hpp"
#include <type_traits>
namespace pythonic
{
namespace numpy
{
template <class E>
c... | 17.416667 | 47 | 0.763158 | xmar |
f02e4a207cb97f3d4edb73883357be6961ea0058 | 1,583 | cpp | C++ | src/network/uber-profile-requestor.cpp | ghosalmartin/harbour-uber | b8d906f4050cfea8817aaebe1ade5c3466662109 | [
"MIT"
] | 2 | 2018-03-16T10:31:20.000Z | 2018-10-02T15:50:56.000Z | src/network/uber-profile-requestor.cpp | ghosalmartin/harbour-uber | b8d906f4050cfea8817aaebe1ade5c3466662109 | [
"MIT"
] | null | null | null | src/network/uber-profile-requestor.cpp | ghosalmartin/harbour-uber | b8d906f4050cfea8817aaebe1ade5c3466662109 | [
"MIT"
] | null | null | null | #include "uber-profile-requestor.h"
UberProfileRequestor::UberProfileRequestor(QObject *parent)
: UberRequestor(parent){
connect(this, SIGNAL(profileChanged(Profile*)),
this, SLOT(setProfile(Profile*)));
}
void UberProfileRequestor::fetchProfileFromNetwork(){
makeNetworkCall(
U... | 33.680851 | 76 | 0.602021 | ghosalmartin |
f0345cefb360a8d7f49255d1ecb9b909df56d97e | 244 | hpp | C++ | include/PrimeGenerator.hpp | sigalor/prime-plot | 53bfa9e5f4d89d717d616620045a7c21c7cfe733 | [
"Apache-2.0"
] | 9 | 2018-04-10T09:38:16.000Z | 2021-02-02T22:46:30.000Z | include/PrimeGenerator.hpp | sigalor/prime-plot | 53bfa9e5f4d89d717d616620045a7c21c7cfe733 | [
"Apache-2.0"
] | null | null | null | include/PrimeGenerator.hpp | sigalor/prime-plot | 53bfa9e5f4d89d717d616620045a7c21c7cfe733 | [
"Apache-2.0"
] | 2 | 2018-07-31T04:31:10.000Z | 2019-12-21T22:47:50.000Z | #pragma once
#include <iostream>
#include <vector>
//#include <thread>
namespace PrimeGenerator
{
long integerSqrt(long num);
std::vector<long> findPrimes(long start, std::size_t num, long* lastCurrLimit, long end=-1);
}
| 15.25 | 99 | 0.67623 | sigalor |
f03624c4db456ba229b7c38e968a48cfa94cb403 | 7,796 | cpp | C++ | Beon/src/main.cpp | Riordan-DC/B-on | 174390c08eddcdfbd0ae7441fc440a32641bcf28 | [
"MIT"
] | null | null | null | Beon/src/main.cpp | Riordan-DC/B-on | 174390c08eddcdfbd0ae7441fc440a32641bcf28 | [
"MIT"
] | null | null | null | Beon/src/main.cpp | Riordan-DC/B-on | 174390c08eddcdfbd0ae7441fc440a32641bcf28 | [
"MIT"
] | null | null | null | #include "Beon.hpp"
// Window parameters
int windowWidth = 1980;
int windowHeight = 1080;
static bool running = true;
//Get a handle on our light
//GLuint LightID = glGetUniformLocation(mShader.ID, "LightPosition_worldspace");
// Forward declaration of functions
void cleanup();
// Create window manag... | 34.043668 | 156 | 0.685993 | Riordan-DC |
f036d2b4c7e72d0bc013732246952863da7336c2 | 1,773 | cpp | C++ | roo_material_icons/sharp/18/home.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | roo_material_icons/sharp/18/home.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | roo_material_icons/sharp/18/home.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | #include "home.h"
using namespace roo_display;
// Image file ic_sharp_18_home_sensor_door 18x18, 4-bit Alpha, RLE, 60 bytes.
static const uint8_t ic_sharp_18_home_sensor_door_data[] PROGMEM = {
0x80, 0xC3, 0x00, 0x18, 0x06, 0x30, 0x16, 0x06, 0xFB, 0x06, 0x60, 0x6F, 0xB0, 0x66, 0x06, 0xFB,
0x06, 0x60, 0x6F, 0xB0,... | 53.727273 | 97 | 0.716864 | dejwk |
f0377dc35798653f437c55858a0ab0ae28426d9a | 4,645 | cc | C++ | util/fuchsia/koid_utilities.cc | rbxeyl/crashpad | 95b4e6276836283a91e18382fb258598bd77f8aa | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | util/fuchsia/koid_utilities.cc | rbxeyl/crashpad | 95b4e6276836283a91e18382fb258598bd77f8aa | [
"Apache-2.0"
] | 113 | 2019-12-14T04:28:04.000Z | 2021-09-26T18:40:27.000Z | util/fuchsia/koid_utilities.cc | rbxeyl/crashpad | 95b4e6276836283a91e18382fb258598bd77f8aa | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 32.711268 | 80 | 0.639182 | rbxeyl |
f039d9bddaa3b8b6064b2f29637a92b5c15b3ba0 | 108 | cpp | C++ | src/test/sub.cpp | ifritJP/lctags | dd877c6f6f10b9299c59cfbc05755b7680c7dd80 | [
"MIT"
] | 17 | 2017-10-24T15:19:49.000Z | 2021-12-19T00:49:48.000Z | src/test/sub.cpp | ifritJP/lctags | dd877c6f6f10b9299c59cfbc05755b7680c7dd80 | [
"MIT"
] | 1 | 2021-02-24T15:49:11.000Z | 2021-02-26T07:45:05.000Z | src/test/sub.cpp | ifritJP/lctags | dd877c6f6f10b9299c59cfbc05755b7680c7dd80 | [
"MIT"
] | 1 | 2017-11-08T17:39:51.000Z | 2017-11-08T17:39:51.000Z | #define NNNN
#include <./hoge.h>
#ifdef VVVVVVV
int vvvvv;
#endif
namespace jjjjj {
#include <field.h>
}
| 9 | 19 | 0.685185 | ifritJP |
f040c8b9ee2c07b5d508dcc6f6c41cd4e4cd3511 | 8,596 | hpp | C++ | include/codegen/include/Zenject/FactoryFromBinder1Extensions.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/FactoryFromBinder1Extensions.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/FactoryFromBinder1Extensions.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:42 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 73.470085 | 347 | 0.79665 | Futuremappermydud |
f04378c7ee5b0e8ee964c93bb89f07a6b122379e | 680 | hpp | C++ | include/jln/mp/functional/if.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp/functional/if.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp/functional/if.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/utility/conditional.hpp>
#include <jln/mp/utility/always.hpp>
#include <jln/mp/number/number.hpp>
#include <jln/mp/functional/call.hpp>
namespace jln::mp
{
/// \ingroup functional
/// A conditional expression.
/// \treturn \value
template<class Pred, class TC, class FC = always<... | 22.666667 | 72 | 0.636765 | jonathanpoelen |
f043b2b0fde76b34dd159a94d2ffaa47995915cd | 7,135 | cpp | C++ | src/zxing/zxing/oned/rss/expanded/decoders/FieldParser.cpp | favoritas37/qzxing | 6ea2b31e26db9d43db027ba207f5c73dc9d759fc | [
"Apache-2.0"
] | 608 | 2015-02-21T22:31:37.000Z | 2022-03-31T05:05:36.000Z | src/zxing/zxing/oned/rss/expanded/decoders/FieldParser.cpp | favoritas37/qzxing | 6ea2b31e26db9d43db027ba207f5c73dc9d759fc | [
"Apache-2.0"
] | 512 | 2015-01-06T17:59:31.000Z | 2022-03-31T13:21:49.000Z | src/zxing/zxing/oned/rss/expanded/decoders/FieldParser.cpp | favoritas37/qzxing | 6ea2b31e26db9d43db027ba207f5c73dc9d759fc | [
"Apache-2.0"
] | 281 | 2016-09-15T08:42:26.000Z | 2022-03-21T17:55:00.000Z | #include "FieldParser.h"
#include <algorithm>
namespace zxing {
namespace oned {
namespace rss {
static const int VARIABLE_LENGTH = 99999;
struct DigitData {
std::string digit;
int variableLength;
int length;
};
static const DigitData TWO_DIGIT_DATA_LENGTH[] {
// "DIGITS", new Integer(LENGTH)
// ... | 25.758123 | 95 | 0.571829 | favoritas37 |
f045c323aed5df511f3059cb6ecfa62ee27afcee | 1,198 | hh | C++ | GameLogic/Engine/piecefactory.hh | saarioka/Saaripeli | 28145e49b4708e22fb7cb051c1ccddfa4a6a24f9 | [
"MIT"
] | null | null | null | GameLogic/Engine/piecefactory.hh | saarioka/Saaripeli | 28145e49b4708e22fb7cb051c1ccddfa4a6a24f9 | [
"MIT"
] | null | null | null | GameLogic/Engine/piecefactory.hh | saarioka/Saaripeli | 28145e49b4708e22fb7cb051c1ccddfa4a6a24f9 | [
"MIT"
] | null | null | null | #ifndef PIECEFACTORY_HH
#define PIECEFACTORY_HH
#include <QJsonObject>
#include <string>
#include <vector>
/**
* @file
* @brief Singleton class that creates pieces.
*/
namespace Logic {
/**
* @brief Singleton class for creating pieces.
*
* The factory is requested to read JSON file, after which it will reques... | 21.392857 | 133 | 0.673623 | saarioka |
f04c4f700ec089a967ffa9bfa9b5e02c7dfa42ff | 1,413 | hpp | C++ | lib/include/interlinck/Core/Syntax/IWithSimplifiedWidthAndPosition.hpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | null | null | null | lib/include/interlinck/Core/Syntax/IWithSimplifiedWidthAndPosition.hpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | 50 | 2021-06-30T20:01:50.000Z | 2021-11-28T16:21:26.000Z | lib/include/interlinck/Core/Syntax/IWithSimplifiedWidthAndPosition.hpp | henrikfroehling/polyglot | 955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142 | [
"MIT"
] | null | null | null | #ifndef INTERLINCK_CORE_SYNTAX_IWITHSIMPLIFIEDWIDTHANDPOSITION_H
#define INTERLINCK_CORE_SYNTAX_IWITHSIMPLIFIEDWIDTHANDPOSITION_H
#include "interlinck/interlinck_global.hpp"
#include "interlinck/Core/Text/TextSpan.hpp"
#include "interlinck/Core/Types.hpp"
namespace interlinck::Core::Syntax
{
/**
* @brief Interface ... | 30.06383 | 105 | 0.726115 | henrikfroehling |
f04dea21f0d983027c7a935bca810fd5ba8b0309 | 8,835 | hpp | C++ | src/core/imports/blas/Ger.hpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 473 | 2015-01-11T03:22:11.000Z | 2022-03-31T05:28:39.000Z | src/core/imports/blas/Ger.hpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 205 | 2015-01-10T20:33:45.000Z | 2021-07-25T14:53:25.000Z | src/core/imports/blas/Ger.hpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 109 | 2015-02-16T14:06:42.000Z | 2022-03-23T21:34:26.000Z | /*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
extern "C" {
void EL_BLAS(sger)
( const BlasInt* m, c... | 29.158416 | 73 | 0.637917 | pjt1988 |
f0536743f2f27114eb1aa65d2d52739f363aad92 | 1,111 | cpp | C++ | UVA/11582/17163602_AC_970ms_0kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | UVA/11582/17163602_AC_970ms_0kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | UVA/11582/17163602_AC_970ms_0kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-11-24 14:58:37
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
... | 19.155172 | 105 | 0.545455 | BakaErii |
f0573ae4797675834357ceed30a2b0960325ab6e | 1,281 | hpp | C++ | src/memory/Array.hpp | LU15W1R7H/lwirth-lib | f51cfb56b801790c200cea64d226730449d68f53 | [
"MIT"
] | 2 | 2018-04-04T17:26:32.000Z | 2020-06-26T09:22:49.000Z | src/memory/Array.hpp | LU15W1R7H/lwirth-lib | f51cfb56b801790c200cea64d226730449d68f53 | [
"MIT"
] | 1 | 2018-08-27T14:35:45.000Z | 2018-08-27T19:00:12.000Z | src/memory/Array.hpp | LU15W1R7H/lwirth-lib | f51cfb56b801790c200cea64d226730449d68f53 | [
"MIT"
] | null | null | null | #pragma once
#include "../Standard.hpp"
#include <utility>
#include <initializer_list>
namespace lw
{
template<class T, size_t SIZE>
class Array
{
private:
T m_pData[SIZE];
public:
constexpr Array()
: m_pData{}
{
}
constexpr Array(const std::initializer_list<T>& il)
{
static_assert(il.end() ... | 14.233333 | 64 | 0.569087 | LU15W1R7H |
f05afcaf3ed05ba253818a720fa5abcfd082bd35 | 261 | cc | C++ | test/mocks/grpc/mocks.cc | htuch/envoy | f466a86e4bba81c18f5b59f0c56ea36aa663e174 | [
"Apache-2.0"
] | 2 | 2017-07-31T15:03:19.000Z | 2018-02-20T16:18:49.000Z | test/mocks/grpc/mocks.cc | htuch/envoy | f466a86e4bba81c18f5b59f0c56ea36aa663e174 | [
"Apache-2.0"
] | null | null | null | test/mocks/grpc/mocks.cc | htuch/envoy | f466a86e4bba81c18f5b59f0c56ea36aa663e174 | [
"Apache-2.0"
] | null | null | null | #include "mocks.h"
namespace Envoy {
namespace Grpc {
MockRpcChannelCallbacks::MockRpcChannelCallbacks() {}
MockRpcChannelCallbacks::~MockRpcChannelCallbacks() {}
MockRpcChannel::MockRpcChannel() {}
MockRpcChannel::~MockRpcChannel() {}
} // Grpc
} // Envoy
| 18.642857 | 54 | 0.754789 | htuch |
f05c0ab5100891ab71ff4d255acf39c1eb3592cd | 1,426 | cpp | C++ | Algorithms/lab1/QuickSort_1.0.cpp | chaohu/Daily-Learning | 0e8d14a3497ad319eda20bc4682cec08d5d6fb08 | [
"MIT"
] | 12 | 2016-04-09T15:43:02.000Z | 2022-03-22T01:58:25.000Z | Algorithms/lab1/QuickSort_1.0.cpp | chaohu/Daily-Learning | 0e8d14a3497ad319eda20bc4682cec08d5d6fb08 | [
"MIT"
] | null | null | null | Algorithms/lab1/QuickSort_1.0.cpp | chaohu/Daily-Learning | 0e8d14a3497ad319eda20bc4682cec08d5d6fb08 | [
"MIT"
] | 2 | 2018-08-23T07:34:59.000Z | 2019-06-20T10:17:31.000Z | #include <iostream>
#include <stack>
using namespace std;
#define MAX 0x7FFFFFFF
int PARTITION(int p,int j);
stack<int> s; //栈s,存储较大的部分的编号
int *A; //待分类的数据(1:n)
int main() {
int n = 0,i = 0,j = 0;
int p = 0,q = 0,x = 0,y = 0;
cout<<"输入待分类数据个数:";
cin>>n;
A = (int *)malloc(sizeof(int) * (... | 19.805556 | 45 | 0.3331 | chaohu |
f05d0fb0bad04d57d1e34c6959370d81a322c039 | 3,847 | cpp | C++ | BlackVision/LibBlackVision/Source/Engine/Types/Values/ValuesFactory.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | 1 | 2022-01-28T11:43:47.000Z | 2022-01-28T11:43:47.000Z | BlackVision/LibBlackVision/Source/Engine/Types/Values/ValuesFactory.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | BlackVision/LibBlackVision/Source/Engine/Types/Values/ValuesFactory.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ValuesFactory.h"
namespace bv {
// ***********************
//
ValueBoolPtr ValuesFactory::CreateValueBool ( const std::string & name )
{
return std::make_shared< ValueBool >( name );
}
// ***********************
//
ValueBoolPtr ValuesFactory::Cr... | 23.601227 | 115 | 0.514947 | black-vision-engine |
f05e815d93655bacfc70fe1ce478ee32625984dd | 881 | cpp | C++ | src/functions.cpp | cbries/tetrisgl | a40f22140d05c2cf6116946459a99a0477c1569a | [
"MIT"
] | 1 | 2015-02-23T19:06:04.000Z | 2015-02-23T19:06:04.000Z | src/functions.cpp | cbries/tetrisgl | a40f22140d05c2cf6116946459a99a0477c1569a | [
"MIT"
] | null | null | null | src/functions.cpp | cbries/tetrisgl | a40f22140d05c2cf6116946459a99a0477c1569a | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2008 Christian Benjamin Ries
* License: MIT
* Website: https://github.com/cbries/tetrisgl
*/
#include "functions.h"
#include <GL/gl.h>
void Enter2DMode( int startx, int starty, int width, int height ) {
glPushAttrib(GL_ENABLE_BIT);
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
glDi... | 21.487805 | 92 | 0.702611 | cbries |
f0616ccc3e6e3633664c0f16c8791c09aeb718d5 | 549 | cpp | C++ | C++/Cracking-the-Coding-Interview/1.3.cpp | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 1 | 2018-05-24T11:30:05.000Z | 2018-05-24T11:30:05.000Z | C++/Cracking-the-Coding-Interview/1.3.cpp | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | null | null | null | C++/Cracking-the-Coding-Interview/1.3.cpp | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 2 | 2017-08-11T06:53:30.000Z | 2017-08-29T12:07:52.000Z | // Design an algorithm and write code to remove the duplicate characters in a string.
#include <iostream>
#include <string>
#include <unordered_map>
int main() {
std::string input = "aabbccd";
std::string output = "";
std::unordered_map<char, int> numberOfInstances;
for (int i = 0; i < input.length(); ++i) {
c... | 20.333333 | 85 | 0.666667 | dvt32 |
f065d57c662e513c19451436adce905eb462d9cb | 1,056 | cpp | C++ | C++/1214-Two-Sum-BSTs/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/1214-Two-Sum-BSTs/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/1214-Two-Sum-BSTs/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 28.540541 | 93 | 0.517045 | wyaadarsh |
f0661040e34c42c182ca269d08eafe3d14b1291c | 1,350 | hpp | C++ | include/onepass/trackable.hpp | inql/OnePass | 6e24d6bd6bcb70fdac4de5e4a155fcea68ea85ef | [
"Unlicense"
] | 4 | 2021-10-20T17:40:33.000Z | 2022-02-14T09:39:46.000Z | include/onepass/trackable.hpp | inql/OnePass | 6e24d6bd6bcb70fdac4de5e4a155fcea68ea85ef | [
"Unlicense"
] | null | null | null | include/onepass/trackable.hpp | inql/OnePass | 6e24d6bd6bcb70fdac4de5e4a155fcea68ea85ef | [
"Unlicense"
] | null | null | null | #ifndef TRACKABLE_HPP
#define TRACKABLE_HPP
namespace onepass
{
namespace core
{
template<class T>
class Trackable
{
private:
unsigned id_;
time_t created_;
time_t accessed_;
friend class boost::serialization::access;
public:
T val_;
Trackable() : id_(0)
... | 19.285714 | 62 | 0.508889 | inql |
f06c0f25f37e1f31691505bc5a0f838dd83c8a8e | 48,489 | cpp | C++ | Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValues_19Table.cpp | 408794550/871AR | 3f903d01ae05522413f7be7abb286d1944d00bbb | [
"Apache-2.0"
] | 1 | 2018-08-16T10:43:30.000Z | 2018-08-16T10:43:30.000Z | Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValues_19Table.cpp | 408794550/871AR | 3f903d01ae05522413f7be7abb286d1944d00bbb | [
"Apache-2.0"
] | null | null | null | Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValues_19Table.cpp | 408794550/871AR | 3f903d01ae05522413f7be7abb286d1944d00bbb | [
"Apache-2.0"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "UnityEngine_UI_UnityEngine_UI... | 54.789831 | 211 | 0.855761 | 408794550 |
f06ee92972823d6b60af68a5fc9664e81b799368 | 646 | hpp | C++ | test/split.hpp | ortfero/chineseroom | 6532df6af72f0ab7597e70e00c7f50c45af43c28 | [
"MIT"
] | null | null | null | test/split.hpp | ortfero/chineseroom | 6532df6af72f0ab7597e70e00c7f50c45af43c28 | [
"MIT"
] | null | null | null | test/split.hpp | ortfero/chineseroom | 6532df6af72f0ab7597e70e00c7f50c45af43c28 | [
"MIT"
] | null | null | null | #pragma once
#include <doctest/doctest.h>
#include <chineseroom/split.hpp>
TEST_CASE("splitting string '1,2,,3,'") {
auto const splitted = chineseroom::split(std::string{"1,2,,3,"}, ',');
REQUIRE(splitted.size() == 3);
REQUIRE(splitted[0] == "1");
REQUIRE(splitted[1] == "2");
REQUIRE(splitted[2] == "3");
}... | 23.925926 | 81 | 0.608359 | ortfero |
7eb7a059af5ad373bdf75c3559c30c7b4abc159a | 4,987 | cpp | C++ | source/Dream/Events/Source.cpp | kurocha/dream-events | b2cf5a188d8e3be2a07a5b7d36ed3eebc812cb72 | [
"MIT",
"Unlicense"
] | null | null | null | source/Dream/Events/Source.cpp | kurocha/dream-events | b2cf5a188d8e3be2a07a5b7d36ed3eebc812cb72 | [
"MIT",
"Unlicense"
] | null | null | null | source/Dream/Events/Source.cpp | kurocha/dream-events | b2cf5a188d8e3be2a07a5b7d36ed3eebc812cb72 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Events/Source.cpp
// This file is part of the "Dream" project, and is released under the MIT license.
//
// Created by Samuel Williams on 9/12/08.
// Copyright (c) 2008 Samuel Williams. All rights reserved.
//
//
#include "Source.hpp"
#include "Loop.hpp"
#include <fcntl.h>
#include <iostream>
#include <un... | 22.263393 | 188 | 0.697814 | kurocha |
7eb8f1d7a2ef4df245e9f013d0b1844198240c44 | 1,191 | cpp | C++ | ESOBrowser/ESODatabaseModel.cpp | moon-touched/ESOExplorer | a57e6c5d545d48f783664f624cbeee5c5b542ef3 | [
"MIT"
] | 2 | 2020-07-25T01:51:34.000Z | 2021-07-12T20:35:28.000Z | ESOBrowser/ESODatabaseModel.cpp | moon-touched/ESOExplorer | a57e6c5d545d48f783664f624cbeee5c5b542ef3 | [
"MIT"
] | null | null | null | ESOBrowser/ESODatabaseModel.cpp | moon-touched/ESOExplorer | a57e6c5d545d48f783664f624cbeee5c5b542ef3 | [
"MIT"
] | null | null | null | #include "ESODatabaseModel.h"
#include <ESOData/Database/ESODatabase.h>
ESODatabaseModel::ESODatabaseModel(const esodata::ESODatabase* database, QObject* parent) : QAbstractItemModel(parent), m_database(database) {
}
ESODatabaseModel::~ESODatabaseModel() = default;
int ESODatabaseModel::columnCount(const QModelInde... | 24.8125 | 142 | 0.745592 | moon-touched |
7ec25261c39def588dac7424a1a1b276fad3ab59 | 11,445 | cpp | C++ | sdk/src/config.cpp | Appdynamics/iot-cpp-sdk | abb7d70b2364089495ac73adf2a992c0af6eaf8c | [
"Apache-2.0"
] | 3 | 2018-09-13T21:26:27.000Z | 2022-01-25T06:15:06.000Z | sdk/src/config.cpp | Appdynamics/iot-cpp-sdk | abb7d70b2364089495ac73adf2a992c0af6eaf8c | [
"Apache-2.0"
] | 11 | 2018-01-30T00:42:23.000Z | 2019-10-20T07:19:37.000Z | sdk/src/config.cpp | Appdynamics/iot-cpp-sdk | abb7d70b2364089495ac73adf2a992c0af6eaf8c | [
"Apache-2.0"
] | 5 | 2018-01-29T18:52:21.000Z | 2019-05-19T02:38:18.000Z | /*
* Copyright (c) 2018 AppDynamics LLC and its affiliates
*
* 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 appli... | 31.703601 | 110 | 0.757886 | Appdynamics |
7ec322b6f9f602c5011df5edd6031a7aa189a19b | 1,899 | cpp | C++ | Antiplagiat/Antiplagiat/bin/Debug/u42682_518_E_10004263.cpp | DmitryTheFirst/AntiplagiatVkCup | 556d3fe2e5a630d06a7aa49f2af5dcb28667275a | [
"Apache-2.0"
] | 1 | 2015-07-04T14:45:32.000Z | 2015-07-04T14:45:32.000Z | Antiplagiat/Antiplagiat/bin/Debug/u42682_518_E_10004263.cpp | DmitryTheFirst/AntiplagiatVkCup | 556d3fe2e5a630d06a7aa49f2af5dcb28667275a | [
"Apache-2.0"
] | null | null | null | Antiplagiat/Antiplagiat/bin/Debug/u42682_518_E_10004263.cpp | DmitryTheFirst/AntiplagiatVkCup | 556d3fe2e5a630d06a7aa49f2af5dcb28667275a | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define gc getchar
int a[500005];
bool v[500005];
int read(int i) {
char c = gc();
while((c<'0' || c>'9') && c!='?' && c!='-') c = gc();
bool sig = 1;
if(c=='?') { v[i] = 1; return 0; }
if(c=='-') { c = gc(); sig = 0; }
int ret = 0;
whil... | 22.879518 | 64 | 0.382833 | DmitryTheFirst |
7ec43bb8d48251e102fd7ca0fb5c2e2e4e91bbc4 | 302 | cpp | C++ | dojo/first/06_coroutine_ts/main.cpp | adrianimboden/cppusergroup-adynchronous-programming | d6fad3ff980be2e7c13ed9e3e05b62e984c9caa4 | [
"MIT"
] | null | null | null | dojo/first/06_coroutine_ts/main.cpp | adrianimboden/cppusergroup-adynchronous-programming | d6fad3ff980be2e7c13ed9e3e05b62e984c9caa4 | [
"MIT"
] | null | null | null | dojo/first/06_coroutine_ts/main.cpp | adrianimboden/cppusergroup-adynchronous-programming | d6fad3ff980be2e7c13ed9e3e05b62e984c9caa4 | [
"MIT"
] | null | null | null | #include "http_client.h"
namespace coroutines_ts {
task<std::vector<std::string>>
request_uris(HttpClient& http_client,
const std::vector<std::string>& uris_to_request) {
(void)http_client;
(void)uris_to_request;
co_return std::vector<std::string>{{"42"}};
}
}
| 23.230769 | 63 | 0.652318 | adrianimboden |
7ec468508f106eac6bf99e10ec8bd756222a6851 | 1,165 | hpp | C++ | src/serial/SerialPlayer.hpp | stu-inc/DataCapture | d2bd01cd431867ec8372687542150391344022d6 | [
"MIT"
] | null | null | null | src/serial/SerialPlayer.hpp | stu-inc/DataCapture | d2bd01cd431867ec8372687542150391344022d6 | [
"MIT"
] | null | null | null | src/serial/SerialPlayer.hpp | stu-inc/DataCapture | d2bd01cd431867ec8372687542150391344022d6 | [
"MIT"
] | null | null | null | #pragma once
#include <QReadWriteLock>
#include <QSharedPointer>
#include <QThread>
#include <QtSerialPort>
class QFile;
class QElapsedTimer;
class SerialPlayer : public QThread {
public:
explicit SerialPlayer(QObject *parent = nullptr);
virtual ~SerialPlayer() override;
void start();
void stop();
void re... | 22.843137 | 52 | 0.771674 | stu-inc |
7ec85697288a121d2e81564097e612303ade086f | 1,049 | cpp | C++ | Ejercicio4Tema11/Ejercicio4Tema11/Rio.cpp | gejors55/Algorithm | 107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533 | [
"MIT"
] | null | null | null | Ejercicio4Tema11/Ejercicio4Tema11/Rio.cpp | gejors55/Algorithm | 107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533 | [
"MIT"
] | null | null | null | Ejercicio4Tema11/Ejercicio4Tema11/Rio.cpp | gejors55/Algorithm | 107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533 | [
"MIT"
] | null | null | null | #include "Rio.h"
Rio::Rio() {}
float Rio::embalsado_pantano(const string& pantano) const {
return buscar_pantano(pantano).vol();
}
float Rio::embalsado_total() const {
DiccionarioHash<string, Pantano>::ConstIterator ipantano = _pantanos.cbegin();
DiccionarioHash<string, Pantano>::ConstIterator ifin ... | 29.971429 | 87 | 0.711153 | gejors55 |
7ece0d313e1768940414c5fe1f211ce55e1716ec | 18,342 | cpp | C++ | ccct.cpp | Taromati2/yaya-shiori | c49e3d4d03f167a8833f2e68810fb46dc33bac90 | [
"BSD-3-Clause"
] | null | null | null | ccct.cpp | Taromati2/yaya-shiori | c49e3d4d03f167a8833f2e68810fb46dc33bac90 | [
"BSD-3-Clause"
] | 2 | 2022-01-12T03:25:46.000Z | 2022-01-12T07:15:38.000Z | ccct.cpp | Taromati2/yaya-shiori | c49e3d4d03f167a8833f2e68810fb46dc33bac90 | [
"BSD-3-Clause"
] | null | null | null | //
// AYA version 5
//
// 文字コード変換クラス Ccct
//
// 変換部分のコードは以下のサイトで公開されているものを利用しております。
// class CUnicodeF
// kamoland
// http://kamoland.com/comp/unicode.html
//
#if defined(WIN32) || defined(_WIN32_WCE)
# include "stdafx.h"
#endif
#include <string.h>
#include <clocale>
#include <string>
#include... | 26.737609 | 104 | 0.522953 | Taromati2 |
7ed02d68dd213deeafc9942003012d4865f18e14 | 10,429 | hh | C++ | extern/glow/src/glow/objects/Program.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | extern/glow/src/glow/objects/Program.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | extern/glow/src/glow/objects/Program.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | #pragma once
#include <glow/common/gltypeinfo.hh>
#include <glow/common/macro_join.hh>
#include <glow/common/nodiscard.hh>
#include <glow/common/non_copyable.hh>
#include <glow/common/property.hh>
#include <glow/common/shared.hh>
#include <glow/gl.hh>
#include <glow/util/LocationMapping.hh>
#include "NamedObject.hh... | 36.592982 | 122 | 0.698149 | huzjkevin |
7ed08d18a4a54352dac118c13d60f2c6715f9bb7 | 1,092 | cc | C++ | leetcode/p6.cc | lhyqie/lhyqie.github.io | d986ac4afddf169a07d4f1de95bcc737368e212b | [
"MIT"
] | null | null | null | leetcode/p6.cc | lhyqie/lhyqie.github.io | d986ac4afddf169a07d4f1de95bcc737368e212b | [
"MIT"
] | null | null | null | leetcode/p6.cc | lhyqie/lhyqie.github.io | d986ac4afddf169a07d4f1de95bcc737368e212b | [
"MIT"
] | null | null | null | #include "common.h"
class Solution {
public:
string longestPalindrome(string s) {
int start = 0, max_len = 1;
for(int i = 0; i < s.size(); i++){
int len1 = expandAroundCenter(s, i, i);
int len2 = expandAroundCenter(s, i, i+1);
int len = std::max(len1, len2);
if(std::max(len1, len2) > ... | 30.333333 | 112 | 0.494505 | lhyqie |
7ed11ddecfb406867da6e2c1f16708dab04c588b | 1,739 | hpp | C++ | include/pcl_ros_wrapper/registration/warp_point_2d.hpp | larics/pcl_ros_wrapper | cbb4fb2c74a463cee8d5c42dcd8cbabb407b617f | [
"BSD-3-Clause"
] | null | null | null | include/pcl_ros_wrapper/registration/warp_point_2d.hpp | larics/pcl_ros_wrapper | cbb4fb2c74a463cee8d5c42dcd8cbabb407b617f | [
"BSD-3-Clause"
] | null | null | null | include/pcl_ros_wrapper/registration/warp_point_2d.hpp | larics/pcl_ros_wrapper | cbb4fb2c74a463cee8d5c42dcd8cbabb407b617f | [
"BSD-3-Clause"
] | 1 | 2021-03-31T12:42:13.000Z | 2021-03-31T12:42:13.000Z | #ifndef WARP_POINT_2D
#define WARP_POINT_2D
#pragma once
#include <pcl/registration/warp_point_rigid.h>
#include <boost/shared_ptr.hpp>
namespace pcl {
namespace registration {
/** \brief @b WarpPoint2D enables 3D (1D rotation around yaw + 2D translation)
* transformations for points.
*
* \note The class ... | 32.811321 | 89 | 0.693502 | larics |
7ed9e9e405f5aad41a90800b91beedbb009328e9 | 769 | hpp | C++ | include/Version.hpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | include/Version.hpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | include/Version.hpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* DICOMLIB
* Copyright 2003 Sunnybrook and Women's College Health Science Center
* Implemented by Trevor Morgan (morgan@sten.sunnybrook.utoronto.ca)
*
* See LICENSE.txt for copyright and licensing info.
******************************************... | 26.517241 | 74 | 0.642393 | marcosivni |
7edaec75b0cf2648a7cee0b07f42f61f99fa1368 | 389 | cpp | C++ | cppcode/201710_12/reference.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/201710_12/reference.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/201710_12/reference.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a=1;
int &b=a;
int c=b;
b=2;
cout<<"a="<<a<<",b="<<b<<",c="<<c<<endl;
int d[]={1,2,3,4,5};
int(&e)[5]=d;
for(int i=0;i<sizeof(d)/sizeof(d[0]);i++)
{
e[i]=e[i]*10+e[i];
}
for(int i=0;i<sizeof(d)/sizeof(... | 16.913043 | 45 | 0.411311 | jiedou |
7edb7feacdeb2c8a27981b7a9ea1858e62205737 | 2,881 | cpp | C++ | algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-test/fastq_test.cpp | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 2,111 | 2019-01-29T07:01:32.000Z | 2022-03-29T06:48:14.000Z | algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-test/fastq_test.cpp | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 131 | 2019-02-18T10:56:18.000Z | 2021-09-27T12:07:00.000Z | algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-test/fastq_test.cpp | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 421 | 2019-02-12T07:59:18.000Z | 2022-03-27T05:22:01.000Z | /*
* nvbio
* Copyright (c) 2011-2014, NVIDIA CORPORATION. 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,... | 31.659341 | 92 | 0.645262 | mfkiwl |
7edf5e50fc97e2e4a115438d0fe06804eb043f50 | 1,648 | hpp | C++ | graph_tree/reroot.hpp | hotman78/cpplib | c2f85c8741cdd0b731a5aa828b28b38c70c8d699 | [
"CC0-1.0"
] | null | null | null | graph_tree/reroot.hpp | hotman78/cpplib | c2f85c8741cdd0b731a5aa828b28b38c70c8d699 | [
"CC0-1.0"
] | null | null | null | graph_tree/reroot.hpp | hotman78/cpplib | c2f85c8741cdd0b731a5aa828b28b38c70c8d699 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include<vector>
/**
* @brief 全方位木DP
*/
template<typename T,typename F,typename Fix>
struct reroot{
std::vector<std::vector<long long>>g;
std::vector<int>p_list;
std::vector<T>p_table;
std::vector<bool>p_checked;
std::vector<map<int,T>>table;
std::vector<T>ans;
T e;
F f;... | 25.353846 | 107 | 0.462985 | hotman78 |
7ee4b87260e8806d0a41f06e5a6ee005bf9bf864 | 1,963 | cpp | C++ | apps/opencs/view/doc/operations.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/view/doc/operations.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/view/doc/operations.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #include "operations.hpp"
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "operation.hpp"
CSVDoc::Operations::Operations()
{
/// \todo make widget height fixed (exactly the height required to display all operations)
setFeatures (QDockWidget::NoDockWidgetFeatures);
QWidget *widgetContainer = new ... | 28.042857 | 104 | 0.620479 | Bodillium |
7ee4c63995bffaf76d26ee7753c7496bf6dd7647 | 10,720 | cpp | C++ | evs/src/v2/model/ListSnapshotsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | evs/src/v2/model/ListSnapshotsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | evs/src/v2/model/ListSnapshotsRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/evs/v2/model/ListSnapshotsRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Evs {
namespace V2 {
namespace Model {
ListSnapshotsRequest::ListSnapshotsRequest()
{
offset_ = 0;
offsetIsSet_ = false;
limit_ = 0;
limitIsSet_ = false;
name_ = "";
nameIsSet_ = f... | 24.814815 | 116 | 0.673134 | yangzhaofeng |
7ee5dd311a7c3ec42cf4eae373c6b0f129fb3ffa | 2,332 | cpp | C++ | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
# define F first
# define S second
# define mp make_pair
// everything go according to my plan
# define pb push_back
# define sz(a) (int)(a.size())
# define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
# define y1 Y_U_NO_y1
# define left Y_U_NO_left
# define right Y_U... | 19.433333 | 73 | 0.496998 | SuperPuperMegaUltraEpicGoldenHacker |
7ee62dc712cbf004e7453a3de916c97755ceec2b | 2,417 | cpp | C++ | src/zone/call-task.cpp | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 9,088 | 2017-08-08T22:28:16.000Z | 2019-05-05T14:57:12.000Z | src/zone/call-task.cpp | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 172 | 2017-08-09T21:32:15.000Z | 2019-05-03T21:21:05.000Z | src/zone/call-task.cpp | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 370 | 2017-08-09T04:58:14.000Z | 2019-04-13T18:59:29.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// See: https://groups.google.com/forum/#!topic/nodejs/onA0S01INtw
#ifdef BUILDING_NODE_EXTENSION
#include <node.h>
#endif
#include "call-task.h"
#include <module/core-modules/napa/call-context-wrap.h>
#include <napa/log... | 38.365079 | 128 | 0.695904 | localh0rzd |
7ee9248ee9f8bd45268bfd3793b758401e95d653 | 1,892 | cpp | C++ | SimuVar/Is_Number.cpp | TheArquitect/SimuVar | b6f4965af938706f6de1497494362c4b5c87d01e | [
"BSD-2-Clause"
] | null | null | null | SimuVar/Is_Number.cpp | TheArquitect/SimuVar | b6f4965af938706f6de1497494362c4b5c87d01e | [
"BSD-2-Clause"
] | null | null | null | SimuVar/Is_Number.cpp | TheArquitect/SimuVar | b6f4965af938706f6de1497494362c4b5c87d01e | [
"BSD-2-Clause"
] | null | null | null | /**
File : Is_Number.cpp
Author : Menashe Rosemberg
Created : 2019.02.19 Version: 20190219.1
Check if a string is a number
Copyright (c) 2019 TheArquitect (Menashe Rosemberg) rosemberg@ymail.com
Redistribution and use in source and binary forms, with or without
modification... | 44 | 94 | 0.708774 | TheArquitect |
7eeb2627333c504966e2194063705b0f39a8d900 | 847 | cpp | C++ | RealTournament/source/Pickup.cpp | willcassella/RealTournament | 70ed3c0d5cbb67938ec8f86eec7b4d98a26e25f3 | [
"MIT"
] | null | null | null | RealTournament/source/Pickup.cpp | willcassella/RealTournament | 70ed3c0d5cbb67938ec8f86eec7b4d98a26e25f3 | [
"MIT"
] | null | null | null | RealTournament/source/Pickup.cpp | willcassella/RealTournament | 70ed3c0d5cbb67938ec8f86eec7b4d98a26e25f3 | [
"MIT"
] | null | null | null | // Pickup.cpp
#include <Engine/World.h>
#include "../include/RealTournament/Pickup.h"
//////////////////////
/// Reflection ///
BUILD_REFLECTION(real_tournament::Pickup);
namespace real_tournament
{
///////////////////
/// Methods ///
void Pickup::on_collision(Entity& entity, const CollisionData& /*data... | 19.697674 | 73 | 0.62928 | willcassella |
7eed663feab7bd786df2df95d386ddc4d2c7e025 | 820 | cpp | C++ | src/primitive.cpp | WilliamLewww/cuda_pbrt | d1136793025b7aa8cc2daf6da6ec19314684580b | [
"MIT"
] | null | null | null | src/primitive.cpp | WilliamLewww/cuda_pbrt | d1136793025b7aa8cc2daf6da6ec19314684580b | [
"MIT"
] | null | null | null | src/primitive.cpp | WilliamLewww/cuda_pbrt | d1136793025b7aa8cc2daf6da6ec19314684580b | [
"MIT"
] | null | null | null | #include "primitive.h"
Bounds3 Primitive::worldBounds() {}
bool Primitive::checkRayIntersectionPredicate(Ray* ray) {}
bool Primitive::checkRayIntersection(Ray* ray, SurfaceInteraction* surfaceInteraction) {}
GeometricPrimitive::GeometricPrimitive(Shape* shape) {
this->shape = shape;
}
GeometricPrimitive::~Geometri... | 25.625 | 97 | 0.767073 | WilliamLewww |
7ef3b326accd80455c869d530b44fecb228876a2 | 1,124 | hpp | C++ | src/Message.hpp | relaxtakenotes/xenos | 24d19b683e85df54f56cd9a5b2c6416b86e1325d | [
"MIT"
] | 4 | 2021-12-14T13:32:10.000Z | 2022-03-08T23:14:58.000Z | src/Message.hpp | relaxtakenotes/xenos | 24d19b683e85df54f56cd9a5b2c6416b86e1325d | [
"MIT"
] | 1 | 2021-10-20T14:09:51.000Z | 2021-10-20T14:09:51.000Z | src/Message.hpp | relaxtakenotes/xenos | 24d19b683e85df54f56cd9a5b2c6416b86e1325d | [
"MIT"
] | null | null | null | #pragma once
#include "stdafx.h"
#include "Log.h"
class Message
{
enum MsgType
{
Error,
Warning,
Info,
Question,
};
public:
static void ShowError( HWND parent, const std::wstring& msg, const std::wstring& title = L"Error" )
{
Show( msg, title, Error, parent... | 22.938776 | 109 | 0.573843 | relaxtakenotes |
7ef52b1b9f1a18d736be163263fe1a1ea515f441 | 17,553 | cpp | C++ | src/state/TimeTrial.cpp | agral/SimpleGames | 75779520dbd35b4434b4ee0634ca421624e6876c | [
"MIT"
] | null | null | null | src/state/TimeTrial.cpp | agral/SimpleGames | 75779520dbd35b4434b4ee0634ca421624e6876c | [
"MIT"
] | null | null | null | src/state/TimeTrial.cpp | agral/SimpleGames | 75779520dbd35b4434b4ee0634ca421624e6876c | [
"MIT"
] | null | null | null | #include "TimeTrial.hpp"
#include "../global/globals.hpp"
#include <SDL2/SDL.h>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
namespace state
{
const int ORB_SIZE = global::ORB_SIZE;
const int DRAG_THRESHOLD = 0.3 * ORB_SIZE;
const double swapAnimationTime = 400; //milliseconds
const dou... | 34.966135 | 118 | 0.607873 | agral |
7efd5d7e2973f268cd492a27fca8f8d3bd86520b | 4,191 | cpp | C++ | qtxmlpatterns/src/xmlpatterns/janitors/qatomizer.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtxmlpatterns/src/xmlpatterns/janitors/qatomizer.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtxmlpatterns/src/xmlpatterns/janitors/qatomizer.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid... | 35.516949 | 96 | 0.69005 | wgnet |
7d05eabaa6c9d139c099cd7f61b47358ca174b85 | 935 | cpp | C++ | platforms/gfg/0234_largest_subset_gcd_1.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0234_largest_subset_gcd_1.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0234_largest_subset_gcd_1.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
int LargestSubsetWithGcd1(vi arr) { // size <= 32
int n = arr.size();
int ans = 0;
for (int i = 0; i < (1 << n); ++i) {
int g = 0;
int count = 0;
for (int j = 0; j < n; ++j) {
if (i & (1 << j)) {
++count;
g = ... | 22.804878 | 75 | 0.387166 | idfumg |
7d0aa05c46f1372bd499f5ec56029f30c8b6d2df | 1,072 | cpp | C++ | Source/UModEditor/SUModPalette.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 21 | 2015-09-03T13:17:55.000Z | 2022-03-28T15:55:42.000Z | Source/UModEditor/SUModPalette.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 24 | 2015-09-19T18:03:30.000Z | 2018-12-21T10:53:01.000Z | Source/UModEditor/SUModPalette.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 17 | 2015-09-03T13:18:04.000Z | 2021-11-24T02:14:11.000Z | #include "UModEditor.h"
#include "SUModPalette.h"
void SUModPalette::Construct(const FArguments& Args)
{
/*ChildSlot
[
//Creating the button that adds a new item on the list when pressed
SNew(SScrollBox)
+ SScrollBox::Slot()
[
//The actual list view creation
+ SScrollBox::Slot()
[
SAssignNew(List... | 23.822222 | 128 | 0.726679 | StoneLineDevTeam |
7d0c6614694712d3b9099d1ddf3df2b30ef9d34d | 11,175 | cpp | C++ | automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2016-11-18T10:26:51.000Z | 2021-01-28T13:51:59.000Z | automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 13 | 2020-07-15T11:33:03.000Z | 2021-04-09T21:29:23.000Z | automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2019-05-17T07:15:09.000Z | 2021-05-24T07:28:08.000Z | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 30.955679 | 214 | 0.747383 | dalihub |
7d10dd6416879b3113cbbcf6fc45aee5d1edc9f8 | 2,847 | cpp | C++ | example/tutorial.cpp | anarthal/mysql-asio | 13d3615464f41222052d9ad8fa0c86bcdddee537 | [
"BSL-1.0"
] | 47 | 2019-10-21T14:54:39.000Z | 2020-07-06T19:36:58.000Z | example/tutorial.cpp | anarthal/mysql-asio | 13d3615464f41222052d9ad8fa0c86bcdddee537 | [
"BSL-1.0"
] | 5 | 2020-03-05T12:03:02.000Z | 2020-07-06T18:18:35.000Z | example/tutorial.cpp | anarthal/mysql-asio | 13d3615464f41222052d9ad8fa0c86bcdddee537 | [
"BSL-1.0"
] | 4 | 2020-03-05T11:28:55.000Z | 2020-05-20T09:06:21.000Z | //
// Copyright (c) 2019-2022 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "boost/mysql/connection.hpp"
#include <boost/asio/ip/tcp.hpp>
#inclu... | 29.05102 | 92 | 0.645592 | anarthal |
7d1125330c9522ef1fd250f11ab7a4f8dbb1bc06 | 3,497 | cpp | C++ | CNN/activation_test.cpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | CNN/activation_test.cpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | CNN/activation_test.cpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | #ifdef TEST
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_approx.hpp>
#include "activation_mock.hpp"
#include "layer_mock.hpp"
#include "test_value.hpp"
#include "value_factory_mock.hpp"
#include <array>
#include <forward_list>
#include <future>
#include <numeric>
using namespace Catch;
namespace c... | 32.37963 | 79 | 0.547612 | suiyili |
7d12722e884fe5221263bcfc371a702b1c0ca7bf | 1,832 | cpp | C++ | tests/depthai_pybind11_tests.cpp | 4ndr3aR/depthai-python | b4fe1211d19280b2f2be8a43912ea818f6f4b5b3 | [
"MIT"
] | 182 | 2020-06-25T00:27:12.000Z | 2022-03-31T05:06:04.000Z | tests/depthai_pybind11_tests.cpp | 4ndr3aR/depthai-python | b4fe1211d19280b2f2be8a43912ea818f6f4b5b3 | [
"MIT"
] | 206 | 2020-07-28T22:32:14.000Z | 2022-03-31T13:57:59.000Z | tests/depthai_pybind11_tests.cpp | 4ndr3aR/depthai-python | b4fe1211d19280b2f2be8a43912ea818f6f4b5b3 | [
"MIT"
] | 102 | 2020-08-06T23:02:35.000Z | 2022-03-24T19:43:30.000Z | /*
tests/pybind11_tests.cpp -- pybind example plugin
Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#include "depthai_pybind11_tests.hpp"
#include <functional>
#include <... | 32.714286 | 98 | 0.736354 | 4ndr3aR |
7d12d9242afa2c4b4ec88bd2508da5bb7ffba34f | 3,377 | cpp | C++ | Code/Tools/TestImpactFramework/Runtime/Code/Source/Artifact/Factory/TestImpactTestEnumerationSuiteFactory.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Code/Tools/TestImpactFramework/Runtime/Code/Source/Artifact/Factory/TestImpactTestEnumerationSuiteFactory.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Code/Tools/TestImpactFramework/Runtime/Code/Source/Artifact/Factory/TestImpactTestEnumerationSuiteFactory.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-06T19:24:43.000Z | 2022-03-31T12:42:27.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Artifact/Factory/TestImpactTestEnumerationSuiteFactory.h>
#include <Artifact/TestImpactA... | 38.375 | 125 | 0.55878 | cypherdotXd |
7d16eb73ad5ad9f95d96c26644eecb823e05d550 | 26,472 | cc | C++ | Ghidra/rulecompile.cc | fjqisba/E-Decompiler | f598c4205d8b9e4d29172dab0bb2672c75e48af9 | [
"MIT"
] | 74 | 2021-03-04T08:12:43.000Z | 2022-03-14T13:50:20.000Z | Ghidra/rulecompile.cc | fjqisba/E-Decompiler | f598c4205d8b9e4d29172dab0bb2672c75e48af9 | [
"MIT"
] | 10 | 2021-03-05T09:52:10.000Z | 2021-07-05T13:48:33.000Z | Ghidra/rulecompile.cc | fjqisba/E-Decompiler | f598c4205d8b9e4d29172dab0bb2672c75e48af9 | [
"MIT"
] | 15 | 2021-04-06T14:22:39.000Z | 2022-03-29T13:14:47.000Z | /* ###
* IP: GHIDRA
*
* 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 ... | 26.183976 | 124 | 0.624169 | fjqisba |
7d1b701c9c52c0c08dbe982a77322b9a4b100356 | 263 | cpp | C++ | include-engine/utility.cpp | sgorsten/include-engine | 67af882e24beba73ad44621397993e1b6818cf5b | [
"Unlicense"
] | 47 | 2017-03-27T12:37:02.000Z | 2021-05-31T12:34:01.000Z | include-engine/utility.cpp | sgorsten/include-engine | 67af882e24beba73ad44621397993e1b6818cf5b | [
"Unlicense"
] | 3 | 2017-03-27T12:46:28.000Z | 2018-03-24T16:05:05.000Z | include-engine/utility.cpp | sgorsten/include-engine | 67af882e24beba73ad44621397993e1b6818cf5b | [
"Unlicense"
] | 4 | 2017-09-05T11:22:40.000Z | 2020-05-07T13:17:31.000Z | #include "utility.h"
/////////////////
// fail_fast() //
/////////////////
#include <Windows.h>
#include <iostream>
void fail_fast()
{
if(IsDebuggerPresent()) DebugBreak();
std::cerr << "fail_fast() called." << std::endl;
std::exit(EXIT_FAILURE);
} | 17.533333 | 52 | 0.547529 | sgorsten |
7d20aaa9218edb194a674a4700ca96d0bde3c7d5 | 1,120 | cpp | C++ | source/problem0003.cpp | quisseh/project-euler-solutions | 68a7d0c1c6cff7a80d6afca7f3542715ee4339eb | [
"MIT"
] | 1 | 2015-12-19T03:48:46.000Z | 2015-12-19T03:48:46.000Z | source/problem0003.cpp | quisseh/project-euler-solutions | 68a7d0c1c6cff7a80d6afca7f3542715ee4339eb | [
"MIT"
] | null | null | null | source/problem0003.cpp | quisseh/project-euler-solutions | 68a7d0c1c6cff7a80d6afca7f3542715ee4339eb | [
"MIT"
] | null | null | null | /*
* Largest prime factor
*
* Problem 3
*
* Created by quisseh on 11/2/15.
*/
#include "problem0003.h"
/*
* A number will have at most one prime factor
* greater than its square root. So loop through
* potential prime factors of [target], and
* if one is found, reduce [target] by the current
* [factor]. If... | 32.941176 | 119 | 0.608036 | quisseh |
7d277e232f3c927894e50b38bf10455e88f25aac | 14 | hpp | C++ | src/arrays.hpp | radio-rogal/c-pointers | a4036d0b8ee982f924463dd2fa79afcca7da9d72 | [
"Apache-2.0"
] | null | null | null | src/arrays.hpp | radio-rogal/c-pointers | a4036d0b8ee982f924463dd2fa79afcca7da9d72 | [
"Apache-2.0"
] | null | null | null | src/arrays.hpp | radio-rogal/c-pointers | a4036d0b8ee982f924463dd2fa79afcca7da9d72 | [
"Apache-2.0"
] | null | null | null | void arrays(); | 14 | 14 | 0.714286 | radio-rogal |
7d3060c0d0ec2fa7ab587beb1e24987212f8d78a | 2,625 | cpp | C++ | Chapter10/testBSPDE1.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter10/testBSPDE1.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter10/testBSPDE1.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | // testBSPDE1.cpp
//
// Testing 1 factor BS model.
//
// (C) Datasim Education BV 2005
//
#include "fdmdirector.cpp"
#include "arraymechanisms.cpp"
#include <iostream>
#include <string>
using namespace std;
#include "exceldriver.cpp"
void printOneExcel(Vector<double, long> & x,
Vector<double, long>& func... | 16.719745 | 79 | 0.629333 | alamlam1982 |
7d37fd34801cbb6ed2d8a69cdc5b11c3d096f0e4 | 978 | cpp | C++ | Linux/Linux开发/code/fifo/fifo_write.cpp | fengjixuchui/Document-1 | 62c74d94c4f16f94f4a5e473636d3248af0c37fe | [
"Apache-2.0"
] | 1 | 2021-02-26T02:40:03.000Z | 2021-02-26T02:40:03.000Z | Linux/Linux开发/code/fifo/fifo_write.cpp | fengjixuchui/Document-1 | 62c74d94c4f16f94f4a5e473636d3248af0c37fe | [
"Apache-2.0"
] | null | null | null | Linux/Linux开发/code/fifo/fifo_write.cpp | fengjixuchui/Document-1 | 62c74d94c4f16f94f4a5e473636d3248af0c37fe | [
"Apache-2.0"
] | null | null | null | #include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#define FIFO_NAME "/var/tmp/fifo_test"
int main()
{
int ret = 0;
int pipefd = 0;
// 判断fifo文件是否已存在
if (access(FIFO_NAME, F_OK) == -1) {
// 不存在则创建
ret = mkfifo(FIFO_... | 16.862069 | 57 | 0.501022 | fengjixuchui |
7d3e7c50c315d62a9e01aa1befec07345b2ea650 | 140 | cpp | C++ | module8/quiz.cpp | canmenzo/CppExamples | e569edbedeb9ac1afec7b33602ce32014cbe2b05 | [
"MIT"
] | null | null | null | module8/quiz.cpp | canmenzo/CppExamples | e569edbedeb9ac1afec7b33602ce32014cbe2b05 | [
"MIT"
] | null | null | null | module8/quiz.cpp | canmenzo/CppExamples | e569edbedeb9ac1afec7b33602ce32014cbe2b05 | [
"MIT"
] | null | null | null | //quiz.cpp
#include <iostream>
using namespace std;
int main()
{
char c = 'x';
char *pC = &c;
cout << ++(*pC) << endl;
}
| 11.666667 | 26 | 0.492857 | canmenzo |
7d44240b68e343d7452b77f8ac30aafaa0bddca4 | 494 | cpp | C++ | flame/toSystem.cpp | ChaosKit/ChaosKit | e7cba03db1ae34160868656ea357c7166ae1d84a | [
"Apache-2.0"
] | 3 | 2021-01-09T17:25:18.000Z | 2021-07-11T00:04:22.000Z | flame/toSystem.cpp | ChaosKit/ChaosKit | e7cba03db1ae34160868656ea357c7166ae1d84a | [
"Apache-2.0"
] | 1 | 2021-03-21T13:17:04.000Z | 2021-03-21T14:03:46.000Z | flame/toSystem.cpp | ChaosKit/ChaosKit | e7cba03db1ae34160868656ea357c7166ae1d84a | [
"Apache-2.0"
] | 1 | 2020-04-03T16:32:53.000Z | 2020-04-03T16:32:53.000Z | #include "toSystem.h"
namespace chaoskit::flame {
core::TransformSystem toTransformSystem(const System& system) {
return {toTransform(system), toParams(system)};
}
core::CameraSystem toCameraSystem(const System& system) {
core::CameraSystem result{toTransformSystem(system)};
auto cameraTransform = toCameraTra... | 23.52381 | 75 | 0.742915 | ChaosKit |
7d472d0cf518b331645510c063203095f8a14064 | 1,544 | cpp | C++ | TP1/ex7.cpp | biromiro/feup-cal | d0fe01603e13729a5b91ca2758d8db5aafd2a13c | [
"MIT"
] | null | null | null | TP1/ex7.cpp | biromiro/feup-cal | d0fe01603e13729a5b91ca2758d8db5aafd2a13c | [
"MIT"
] | null | null | null | TP1/ex7.cpp | biromiro/feup-cal | d0fe01603e13729a5b91ca2758d8db5aafd2a13c | [
"MIT"
] | 2 | 2021-04-11T17:31:16.000Z | 2021-04-27T14:04:44.000Z | #include "exercises.h"
#include <algorithm>
#include <vector>
#include <numeric>
double minimumAverageCompletionTime(std::vector<unsigned int> tasks, std::vector<unsigned int> &orderedTasks) {
sort(tasks.begin(), tasks.end());
/* What they want you to do
do {
permutations.push_back(tasks);
}... | 28.072727 | 111 | 0.619819 | biromiro |
7d489a715ea88a71eb316a2f9d76283ec7a3169a | 67,258 | cpp | C++ | Visualization/JuceLibraryCode/BinaryData.cpp | opendragon/Core_MPlusM | c82bb00761551a86abe50c86e0df1f247704c848 | [
"BSD-3-Clause"
] | null | null | null | Visualization/JuceLibraryCode/BinaryData.cpp | opendragon/Core_MPlusM | c82bb00761551a86abe50c86e0df1f247704c848 | [
"BSD-3-Clause"
] | null | null | null | Visualization/JuceLibraryCode/BinaryData.cpp | opendragon/Core_MPlusM | c82bb00761551a86abe50c86e0df1f247704c848 | [
"BSD-3-Clause"
] | null | null | null | /* ==================================== JUCER_BINARY_RESOURCE ====================================
This is an auto-generated file: Any edits you make may be overwritten!
*/
namespace BinaryData
{
//================== PDOicon.ico ==================
static const unsigned char temp_binary_data_0[] =
{ 0,... | 201.371257 | 254 | 0.597624 | opendragon |
7d494e85ccd5ee6a0140412d8217faae1735c7f7 | 15,433 | cpp | C++ | src/engine/components/collider/collidermath.cpp | senaademr/CS1950UFinal | efb1d223e68ee02b1386cb8a97200db6faad893d | [
"MIT"
] | null | null | null | src/engine/components/collider/collidermath.cpp | senaademr/CS1950UFinal | efb1d223e68ee02b1386cb8a97200db6faad893d | [
"MIT"
] | null | null | null | src/engine/components/collider/collidermath.cpp | senaademr/CS1950UFinal | efb1d223e68ee02b1386cb8a97200db6faad893d | [
"MIT"
] | null | null | null | #include "collidermath.h"
#include "cylindercollider.h"
#include "spherecollider.h"
#include "boxcollider.h"
#include "compoundcollider.h"
#include "engine/components/transformcomponent.h"
#include "engine/components/physicscomponent.h"
#include "engine/components/collisioncomponent.h"
#include "engine/basics/gameobj... | 36.142857 | 123 | 0.694227 | senaademr |
7d4a266a5b7ad0d0c4cd35de51f121afff7cfadf | 6,674 | cpp | C++ | data/reddit/extract_train.cpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | 38 | 2022-03-09T10:29:08.000Z | 2022-03-30T13:56:16.000Z | data/reddit/extract_train.cpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | 3 | 2022-03-09T10:55:27.000Z | 2022-03-17T02:53:58.000Z | data/reddit/extract_train.cpp | Sanzo00/NeutronStarLite | 57d92d1f7f6cd55c55a83ca086096a710185d531 | [
"Apache-2.0"
] | 6 | 2022-03-10T07:41:31.000Z | 2022-03-21T06:36:31.000Z | #include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <cstring>
using namespace std;
int generate_Mask(int vertices,std::string mask_file){
FILE *fp_mask;
fp_mask=fopen(mask_file.c_str(),"w");
for(int i=0;i<vertices;i++){
int a=... | 30.336364 | 79 | 0.526521 | Sanzo00 |
7d4a3b1a7ab527c9acc73bb0b253608a9dc3274c | 1,751 | hpp | C++ | LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/Common/LogDefines.hpp | wis1906/letsgo-ar-space-generation | 02d888a44bb9eb112f308356ab42720529349338 | [
"MIT"
] | null | null | null | LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/Common/LogDefines.hpp | wis1906/letsgo-ar-space-generation | 02d888a44bb9eb112f308356ab42720529349338 | [
"MIT"
] | null | null | null | LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/Common/LogDefines.hpp | wis1906/letsgo-ar-space-generation | 02d888a44bb9eb112f308356ab42720529349338 | [
"MIT"
] | null | null | null | // ========================================================================================
// ApproxMVBB
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz
// (døt) ch>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL w... | 39.795455 | 114 | 0.5494 | wis1906 |
7d4d41c341c2038489316081bf0031565dc3a428 | 2,456 | cc | C++ | Assignment1/Q3/daxpy.cc | Gurupradeep/Parallel-Programming | fe54eb921f8895518c9d041075a92a5bd1499737 | [
"MIT"
] | null | null | null | Assignment1/Q3/daxpy.cc | Gurupradeep/Parallel-Programming | fe54eb921f8895518c9d041075a92a5bd1499737 | [
"MIT"
] | null | null | null | Assignment1/Q3/daxpy.cc | Gurupradeep/Parallel-Programming | fe54eb921f8895518c9d041075a92a5bd1499737 | [
"MIT"
] | null | null | null | /*
* DAXPI program.
* Run the program as follows.
* Compilation:
* g++ daxpy.cc -fopenmp
* Run:
* ./a.out
*/
#include <stdio.h>
#include <omp.h>
#include <iostream>
#define SIZE 1 << 16
namespace {
std::pair<double, int> get_parallel_execution_time(int X[], int Y[], int a, int num_of_threads) {
omp_set_num_t... | 27.909091 | 167 | 0.671824 | Gurupradeep |
7d506758d667e9491d9f20c2cc5ec99e20a09365 | 9,141 | cpp | C++ | source/tools/finite/opt-internal/ceres_direct.cpp | DavidAce/DMRG | e465fd903eade1bf6aa74daacd8e2cf02e9e9332 | [
"MIT"
] | 9 | 2017-10-31T22:50:28.000Z | 2022-03-10T15:45:27.000Z | source/tools/finite/opt-internal/ceres_direct.cpp | DavidAce/DMRG | e465fd903eade1bf6aa74daacd8e2cf02e9e9332 | [
"MIT"
] | null | null | null | source/tools/finite/opt-internal/ceres_direct.cpp | DavidAce/DMRG | e465fd903eade1bf6aa74daacd8e2cf02e9e9332 | [
"MIT"
] | 1 | 2019-07-16T00:27:56.000Z | 2019-07-16T00:27:56.000Z | //
// Created by david on 2019-07-09.
//
#include "ceres_direct_functor.h"
#include <algorithms/class_algorithm_status.h>
#include <ceres/gradient_problem.h>
#include <config/nmspc_settings.h>
#include <tensors/class_tensors_finite.h>
#include <tensors/model/class_model_finite.h>
#include <tensors/state/class_state_fi... | 65.76259 | 158 | 0.665791 | DavidAce |
7d552bfe40a9a06401a279e7d57c941c60e47bc7 | 271 | cpp | C++ | Shape/Triangle.cpp | AKoudounis/refactored-journey | 81719c57104f14b141f0f7cd2aa805f9007ed79e | [
"MIT"
] | null | null | null | Shape/Triangle.cpp | AKoudounis/refactored-journey | 81719c57104f14b141f0f7cd2aa805f9007ed79e | [
"MIT"
] | null | null | null | Shape/Triangle.cpp | AKoudounis/refactored-journey | 81719c57104f14b141f0f7cd2aa805f9007ed79e | [
"MIT"
] | null | null | null | //Andreas Koudounis 40089191
#include "Triangle.h"
Triangle::Triangle(Point* pt1, Point* pt2, Point* pt3) {
p1 = pt1;
p2 = pt2;
p3 = pt3;
}
Triangle::~Triangle()
{
std::cout << "Triangle object deleted";
}
void Triangle::print() const
{
} | 12.318182 | 57 | 0.594096 | AKoudounis |
7d5563f2172b8cb46a14800424ba74e408bcb2fd | 833 | cc | C++ | cudarap/tests/CDeviceTest.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | 1 | 2020-05-13T06:55:49.000Z | 2020-05-13T06:55:49.000Z | cudarap/tests/CDeviceTest.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | cudarap/tests/CDeviceTest.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include "CDevice.hh"
#include "OPTICKS_LOG.hh"
void test_SaveLoad(const char* dirpath)
{
std::vector<CDevice> devs, devs2 ;
bool nosave = true ;
CDevice::Visible(devs, dirpath, nosave );
CDevice::Dump( devs, "visible devices");
CDevice::Save(devs, dirpath );
CDevice::L... | 20.825 | 60 | 0.631453 | seriksen |
7d556cb8fda76759552fbb07b74ac1e8578d8717 | 1,632 | cpp | C++ | 01.Introduction/01.Introduction/01.Introduction.cpp | zvet80/CppCourse | a8d488dba1ba649dfc6e6d906ed25e506ff30d99 | [
"MIT"
] | null | null | null | 01.Introduction/01.Introduction/01.Introduction.cpp | zvet80/CppCourse | a8d488dba1ba649dfc6e6d906ed25e506ff30d99 | [
"MIT"
] | null | null | null | 01.Introduction/01.Introduction/01.Introduction.cpp | zvet80/CppCourse | a8d488dba1ba649dfc6e6d906ed25e506ff30d99 | [
"MIT"
] | null | null | null | // 01.Introduction.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <array>
using namespace std;
void GetLowerUpper(string a)
{
int lower = 0;
int upper = 0;
int total = a.length();
for (int i = 0; i < total; i++)
{
if (int(a[i]) >... | 19.902439 | 111 | 0.53125 | zvet80 |
7d556cf7f7616a1629e824147d5bebb561c7d7fb | 13,760 | cpp | C++ | ocs2_pinocchio/ocs2_sphere_approximation/src/SphereApproximation.cpp | RIVeR-Lab/ocs2 | 399d3fad27b4a49e48e075a544f2f717944c5da9 | [
"BSD-3-Clause"
] | null | null | null | ocs2_pinocchio/ocs2_sphere_approximation/src/SphereApproximation.cpp | RIVeR-Lab/ocs2 | 399d3fad27b4a49e48e075a544f2f717944c5da9 | [
"BSD-3-Clause"
] | null | null | null | ocs2_pinocchio/ocs2_sphere_approximation/src/SphereApproximation.cpp | RIVeR-Lab/ocs2 | 399d3fad27b4a49e48e075a544f2f717944c5da9 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
Copyright (c) 2021, Farbod Farshidian. 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 m... | 45.263158 | 140 | 0.579433 | RIVeR-Lab |
7d57e5f2f52270ca7a9a1e338350d563caeaa06d | 8,942 | cpp | C++ | Source/MapperDefinitions.cpp | hamzahamidi/Xidi | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | [
"BSD-3-Clause"
] | 1 | 2021-06-05T00:22:08.000Z | 2021-06-05T00:22:08.000Z | Source/MapperDefinitions.cpp | hamzahamidi/Xidi | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | [
"BSD-3-Clause"
] | null | null | null | Source/MapperDefinitions.cpp | hamzahamidi/Xidi | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************
* Xidi
* DirectInput interface for XInput controllers.
*****************************************************************************
* Authored by Samuel Grossman
* Copyright (c) 2016-2021
********************************************... | 61.668966 | 184 | 0.576269 | hamzahamidi |