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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dfecca42c5fdb93c2256bf3b9c567f85b950a173 | 10,101 | cxx | C++ | Modules/Numerics/HighDimensionalOptimizers/test/itkRegistrationParameterScalesFromJacobianTest.cxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | 2 | 2015-06-19T07:18:36.000Z | 2019-04-18T07:28:23.000Z | Modules/Numerics/HighDimensionalOptimizers/test/itkRegistrationParameterScalesFromJacobianTest.cxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | null | null | null | Modules/Numerics/HighDimensionalOptimizers/test/itkRegistrationParameterScalesFromJacobianTest.cxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | 2 | 2017-05-02T07:18:49.000Z | 2020-04-30T01:37:35.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 35.69258 | 113 | 0.717751 | CapeDrew |
dfed579475fe5b8d59f6690b9a0dc956a4215e7e | 3,792 | cpp | C++ | app/src/main/cpp/audio/FileDataSource.cpp | codecameo/fast-mixer | 5f9403a61239984ce23b8250159a1e1913beda06 | [
"MIT"
] | 1 | 2021-01-20T18:27:02.000Z | 2021-01-20T18:27:02.000Z | app/src/main/cpp/audio/FileDataSource.cpp | codecameo/fast-mixer | 5f9403a61239984ce23b8250159a1e1913beda06 | [
"MIT"
] | null | null | null | app/src/main/cpp/audio/FileDataSource.cpp | codecameo/fast-mixer | 5f9403a61239984ce23b8250159a1e1913beda06 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... | 30.580645 | 97 | 0.663766 | codecameo |
dfefdfedbac7251dda93e256ce370a9ea96d275d | 7,553 | cpp | C++ | trans_str_menu_snap.cpp | rsuzaki/FireAlpacaTranslation | 529dc597f057da3f6abce63aa44dc92fc0cc3f0c | [
"MIT"
] | 2 | 2021-08-16T20:56:54.000Z | 2021-08-20T07:16:42.000Z | trans_str_menu_snap.cpp | rsuzaki/FireAlpacaTranslation | 529dc597f057da3f6abce63aa44dc92fc0cc3f0c | [
"MIT"
] | null | null | null | trans_str_menu_snap.cpp | rsuzaki/FireAlpacaTranslation | 529dc597f057da3f6abce63aa44dc92fc0cc3f0c | [
"MIT"
] | 1 | 2021-10-17T14:07:35.000Z | 2021-10-17T14:07:35.000Z | /* -*- coding: utf-8 -*- マルチバイト */
#if defined(_MSC_VER)
#pragma execution_character_set("utf-8")
#endif
#include "trans.h"
#include "trans_str_menu_snap.h"
///////////////////////////////////////////////////////////////////////////
// - スナップメニューで使用される文字列
// - A string used in the snap menu.
/////////////////////... | 43.408046 | 86 | 0.554879 | rsuzaki |
dff4c277ebc23a04cfd9677c3070ce5d044e5524 | 1,803 | hpp | C++ | library/ATF/GUILD_BATTLE__CGuildBattleReservedSchedule.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/GUILD_BATTLE__CGuildBattleReservedSchedule.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/GUILD_BATTLE__CGuildBattleReservedSchedule.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <GUILD_BATTLE__CGuildBattleSchedule.hpp>
#include <_worlddb_guild_battle_schedule_list.hpp>
START_ATF_NAMESPACE
namespace GUILD_BATTLE
{
struct... | 40.977273 | 123 | 0.667221 | lemkova |
dff8d0d4d98ac8d106132654d760d2cbd84f75d9 | 2,953 | cpp | C++ | 2021/05/cpp/main.cpp | Bigsby/aoc | 409fefbb0467628fa298288064acb622bb53ee58 | [
"CC0-1.0"
] | 1 | 2021-06-11T17:24:05.000Z | 2021-06-11T17:24:05.000Z | 2021/05/cpp/main.cpp | Bigsby/aoc | 409fefbb0467628fa298288064acb622bb53ee58 | [
"CC0-1.0"
] | null | null | null | 2021/05/cpp/main.cpp | Bigsby/aoc | 409fefbb0467628fa298288064acb622bb53ee58 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <ctime>
#include <vector>
#include <regex>
#include <map>
#include <cmath>
using namespace std;
struct Results
{
int part1;
int part2;
};
struct Line {
int x1, y1, x2, y2;
};
typedef vector<Line> Input;
struct Point {
int x, y;
};
int getCoveredPoints(... | 27.342593 | 127 | 0.546224 | Bigsby |
dff99d17401d2c3c3d92cd66b07c3dd49db73bc3 | 6,357 | cpp | C++ | test/TestCircularBuffer.cpp | jonsim/cpp-headers | ea096e4558f73c8e84b1cfcfa231f57c623ecfeb | [
"MIT"
] | null | null | null | test/TestCircularBuffer.cpp | jonsim/cpp-headers | ea096e4558f73c8e84b1cfcfa231f57c623ecfeb | [
"MIT"
] | null | null | null | test/TestCircularBuffer.cpp | jonsim/cpp-headers | ea096e4558f73c8e84b1cfcfa231f57c623ecfeb | [
"MIT"
] | null | null | null | #include <cassert>
#include <stdexcept> // out_of_range
#include "gtest/gtest.h"
#include "circular_buffer.h"
TEST(CircularBufferTest, capacity) {
circular_buffer<int, 32> buf1{};
EXPECT_EQ(31, buf1.capacity());
circular_buffer<int, 1> buf2{};
EXPECT_EQ(0, buf2.capacity());
}
TEST(CircularBufferTest,... | 24.735409 | 79 | 0.577316 | jonsim |
dffc42fbd90285867e9e9317c371851b0f5f36e4 | 9,300 | cpp | C++ | facecat_cpp/source/chart/ChartDiv.cpp | deadzq/facecat | bb623690127c07ffe0ec191a7308249c53f39c03 | [
"BSD-2-Clause"
] | 2 | 2021-01-02T05:51:52.000Z | 2021-05-10T11:34:46.000Z | facecat_cpp/source/chart/ChartDiv.cpp | Samge0/facecat | bb623690127c07ffe0ec191a7308249c53f39c03 | [
"BSD-2-Clause"
] | null | null | null | facecat_cpp/source/chart/ChartDiv.cpp | Samge0/facecat | bb623690127c07ffe0ec191a7308249c53f39c03 | [
"BSD-2-Clause"
] | 3 | 2020-01-27T00:13:45.000Z | 2020-06-23T10:12:07.000Z | #include "..\\..\\stdafx.h"
#include "..\\..\\include\\chart\\ChartDiv.h"
#include <iterator>
namespace FaceCat{
bool ChartDiv::shapesAsc(BaseShape *x, BaseShape *y){
return x->getZOrder() < y->getZOrder();
}
bool ChartDiv::shapesDesc(BaseShape *x, BaseShape *y){
return x->getZOrder() > y->getZOrder(); ... | 20.712695 | 99 | 0.642366 | deadzq |
dffc7f8a5a473005db60bf48ac3130b858f53732 | 1,811 | cc | C++ | solutions/kattis/ministryofmagic.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/kattis/ministryofmagic.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/kattis/ministryofmagic.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <bitset>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstring>
#include <deque>
#include <ext/pb_ds/assoc_container.hpp>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#inc... | 20.816092 | 66 | 0.553285 | zwliew |
dffd7e04a45ff27a7404be8a602783bb6db0739d | 3,382 | cpp | C++ | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/base/dynarray.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/base/dynarray.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/base/dynarray.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | /**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by Kongsberg Oil & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | 23.324138 | 76 | 0.694264 | KraftOreo |
5f008816e79927777f4d33db76a6afa346267ea0 | 45,650 | cpp | C++ | source/ast/Parser.cpp | KonstantinSeurer/StrictLLVM | 7f3ceda4d9b90b405d56f408db4f4fccdb5fe314 | [
"MIT"
] | 1 | 2021-12-05T20:49:57.000Z | 2021-12-05T20:49:57.000Z | source/ast/Parser.cpp | KonstantinSeurer/StrictLLVM | 7f3ceda4d9b90b405d56f408db4f4fccdb5fe314 | [
"MIT"
] | null | null | null | source/ast/Parser.cpp | KonstantinSeurer/StrictLLVM | 7f3ceda4d9b90b405d56f408db4f4fccdb5fe314 | [
"MIT"
] | null | null | null |
#include "Parser.h"
#include <iostream>
static String ParseUsing(ErrorStream& err, Lexer& lexer)
{
String dependency;
while (lexer.HasNext())
{
const Token& token = lexer.Next();
if (token.type == TokenType::EQUALS || token.type == TokenType::SEMICOLON)
{
break;
}
if (token.type == TokenType::IDEN... | 25.12383 | 100 | 0.679343 | KonstantinSeurer |
5f0173e0560cf546f6adf0f2389f52e443286399 | 2,053 | hpp | C++ | tests/functional/coherence/util/ConcurrentMapTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/functional/coherence/util/ConcurrentMapTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/functional/coherence/util/ConcurrentMapTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "coherence/lang.ns"
#include "coherence/net/NamedCache.hpp"
#include "coherence/util/ConcurrentMap.hp... | 22.811111 | 70 | 0.476376 | chpatel3 |
5f03597167a31394156365fd4ce9b1ad969e7d70 | 19,004 | hpp | C++ | src/operations/blas3/gemm_no_local.hpp | sgeor255/sycl-blas | 447219a01d24b132694d6743f67ba27b67c42369 | [
"Apache-2.0"
] | null | null | null | src/operations/blas3/gemm_no_local.hpp | sgeor255/sycl-blas | 447219a01d24b132694d6743f67ba27b67c42369 | [
"Apache-2.0"
] | null | null | null | src/operations/blas3/gemm_no_local.hpp | sgeor255/sycl-blas | 447219a01d24b132694d6743f67ba27b67c42369 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* @license
* Copyright (C) Codeplay Software Limited
* 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
*
*... | 40.008421 | 80 | 0.649074 | sgeor255 |
5f0e74fb949fa1970136511ea2b7939392215ceb | 982 | cpp | C++ | codeforces/A - Mind the Gap/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Mind the Gap/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Mind the Gap/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Apr/29/2018 19:27
* solution_verdict: Accepted language: GNU C++14
* run... | 29.757576 | 111 | 0.35336 | kzvd4729 |
5f0ea5324c1a2156ae92ef6b40a94826fbb94ffd | 451 | cpp | C++ | src/libs/utility/unit-test/runtime_assert_test.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/libs/utility/unit-test/runtime_assert_test.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/libs/utility/unit-test/runtime_assert_test.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "test/test.hpp"
#include "utility/runtime_assert.hpp"
begin_suite(assert_test);
test_case(assert_passes)
{
try {
gorc::runtime_assert(true, "assert not thrown");
}
catch(...) {
assert_always("exception thrown");
}
}
test_case(assert_fails)
{
assert_throws(gorc::runtime_as... | 18.791667 | 63 | 0.627494 | jdmclark |
5f103d3b3f59a6ef1be5d1bce2b8d73a91221da8 | 31 | cpp | C++ | code/basics/explicit-types.cpp | kjwenger/a-is-like-b | 9675b0dfe3a56bc0961a679fa6fdc3ef48297396 | [
"MIT"
] | 1 | 2018-01-26T19:00:59.000Z | 2018-01-26T19:00:59.000Z | code/basics/explicit-types.java | kjwenger/a-is-like-b | 9675b0dfe3a56bc0961a679fa6fdc3ef48297396 | [
"MIT"
] | null | null | null | code/basics/explicit-types.java | kjwenger/a-is-like-b | 9675b0dfe3a56bc0961a679fa6fdc3ef48297396 | [
"MIT"
] | null | null | null | double explicitDouble = 70.0D;
| 15.5 | 30 | 0.774194 | kjwenger |
5f10b26afe82e7e9c39ea6766a68c0f2acc1d125 | 312 | cpp | C++ | aql/benchmark/lib_69/class_4.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_69/class_4.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_69/class_4.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_4.h"
#include "class_0.h"
#include "class_4.h"
#include "class_6.h"
#include "class_3.h"
#include "class_2.h"
#include <lib_30/class_9.h>
#include <lib_64/class_8.h>
#include <lib_50/class_7.h>
#include <lib_37/class_4.h>
#include <lib_59/class_0.h>
class_4::class_4() {}
class_4::~class_4() {}
| 20.8 | 27 | 0.714744 | menify |
5f1208d498c3a2777b3be89e9e8c1e3327fdc063 | 4,158 | cpp | C++ | app/interaction_service/core-algo/test/temp/random_graph_minimum_spanning_tree.cpp | Philippe-Guyard/XOptimizer | d09644eb6b92253b1d56ca2ab9c1be681993d931 | [
"MIT"
] | 1 | 2021-11-07T18:34:20.000Z | 2021-11-07T18:34:20.000Z | app/interaction_service/core-algo/test/temp/random_graph_minimum_spanning_tree.cpp | Philippe-Guyard/XOptimizer | d09644eb6b92253b1d56ca2ab9c1be681993d931 | [
"MIT"
] | 1 | 2021-11-16T21:29:32.000Z | 2021-11-16T21:29:32.000Z | app/interaction_service/core-algo/test/src/random_graph_minimum_spanning_tree.cpp | Philippe-Guyard/XOptimizer | d09644eb6b92253b1d56ca2ab9c1be681993d931 | [
"MIT"
] | 2 | 2021-11-05T11:06:18.000Z | 2021-11-07T18:49:17.000Z | // Copyright (c) 2021 XOptimzer Team.
// All rights reserved.
// Standard libraries
#include <utility> // std::pair, std::make_pair
#include <chrono> // std::chrono::system_clock::now().time_since_epoch().count()
#include <random> // std::mt19937_64
#include <algori... | 39.6 | 224 | 0.604137 | Philippe-Guyard |
5f157134ea6a8536026b67f1ad3b648b3382fb09 | 694 | cpp | C++ | CPxRigidActor.cpp | bloeys/physx-c | 0e2a4b2bd11a9a178c08a8137182c5ede647c3ac | [
"MIT"
] | null | null | null | CPxRigidActor.cpp | bloeys/physx-c | 0e2a4b2bd11a9a178c08a8137182c5ede647c3ac | [
"MIT"
] | null | null | null | CPxRigidActor.cpp | bloeys/physx-c | 0e2a4b2bd11a9a178c08a8137182c5ede647c3ac | [
"MIT"
] | null | null | null | #include <PxPhysicsAPI.h>
#include "CPxRigidActor.h"
#include "CPxDefaultAllocator.h"
void CPxRigidActor_setSimFilterData(CPxRigidActor* cra, CPxFilterData* cfd)
{
physx::PxRigidActor* actor = static_cast<physx::PxRigidActor*>(cra->obj);
const physx::PxU32 numShapes = actor->getNbShapes();
physx::PxShape*... | 36.526316 | 119 | 0.723343 | bloeys |
5f15f8f9809f9ad5ae5b4d72ee9b6fc59e529727 | 128 | cpp | C++ | userland/utilities/reboot/main.cpp | smithersomer/pranaOS | b8ef2554af43fd3e0f67a5ceebbad8b1ae1c4cb1 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T13:33:48.000Z | 2021-12-04T13:33:48.000Z | userland/utilities/reboot/main.cpp | smithersomer/pranaOS | b8ef2554af43fd3e0f67a5ceebbad8b1ae1c4cb1 | [
"BSD-2-Clause"
] | null | null | null | userland/utilities/reboot/main.cpp | smithersomer/pranaOS | b8ef2554af43fd3e0f67a5ceebbad8b1ae1c4cb1 | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include <signal.h>
int main()
{
printf("rebooting...");
// return kill(1, SIGHUP);
return 0;
}
| 12.8 | 30 | 0.570313 | smithersomer |
5f16f9f626f1d7ae12e241b630e48792842ac9fa | 774 | cpp | C++ | JNI/Source/JIntRef.cpp | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 88 | 2017-01-21T18:20:16.000Z | 2021-12-21T02:32:04.000Z | JNI/Source/JIntRef.cpp | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 72 | 2017-07-28T10:00:35.000Z | 2021-11-09T18:36:23.000Z | JNI/Source/JIntRef.cpp | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 8 | 2017-03-19T12:19:10.000Z | 2020-05-19T15:15:05.000Z | #include "JIntRef.h"
#include "java_type_signature.h"
#include <iostream>
#define JAVA_INTREF_CLASS_NAME "photonApi/IntRef"
#define JAVA_INTREF_VALUE_NAME "m_value"
namespace ph
{
JIntRef::JIntRef(const jobject javaObject, JNIEnv* const env) :
JObject<JIntRef>(javaObject, env)
{
static bool isCached = false;
if(... | 22.764706 | 96 | 0.776486 | jasonoscar88 |
5f18414d67bb495a10b37ed0a97c47c9ba99d9bd | 29,636 | cpp | C++ | src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | src/uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | /**
* @file
* @author 2012-2013 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de)
* @copyright Simplified BSD
*
* @cond
* This program is free software: you can redistribute it and/or modify
* it under the terms of the FreeBSD license as published by the FreeBSD
* project.
*
* This program is ... | 34.621495 | 154 | 0.677419 | sradomski |
5f18d49921f611a6fc34bc8a287cf420121b138d | 125 | cc | C++ | Core/tests/testVector.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2019-07-29T04:07:29.000Z | 2019-07-29T04:07:29.000Z | Core/tests/testVector.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | null | null | null | Core/tests/testVector.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2020-03-04T17:13:04.000Z | 2020-03-04T17:13:04.000Z | #include <cc/Vector>
namespace cc { template class Vector<double, 3>; }
int main(int argc, char *argv[])
{
return 0;
}
| 13.888889 | 50 | 0.648 | frankencode |
5f1c2b05dcdaedfa9d9710cbd5536212ab55608b | 590 | cpp | C++ | ThrowThingsTemplate/Vixen/source/vgraphics/vix_glcamera2d.cpp | eric-fonseca/Throw-Things-at-Monsters | c92d9cd4e244d4ddb54b74e8508cba2b6408abb7 | [
"MIT"
] | null | null | null | ThrowThingsTemplate/Vixen/source/vgraphics/vix_glcamera2d.cpp | eric-fonseca/Throw-Things-at-Monsters | c92d9cd4e244d4ddb54b74e8508cba2b6408abb7 | [
"MIT"
] | null | null | null | ThrowThingsTemplate/Vixen/source/vgraphics/vix_glcamera2d.cpp | eric-fonseca/Throw-Things-at-Monsters | c92d9cd4e244d4ddb54b74e8508cba2b6408abb7 | [
"MIT"
] | null | null | null | #include <vix_glcamera2d.h>
namespace Vixen {
GLCamera2D::GLCamera2D(float L,
float R,
float T,
float B)
{
SetBounds(L, R, T, B);
}
void GLCamera2D::SetBounds(float L,
float R,
float T,
float B)
{
m_left = L;
m_right = R;
m_top = T;
m_bottom = B... | 14.390244 | 62 | 0.576271 | eric-fonseca |
5f1c5a83059ffe2ca09c9d147add2eb75d32de46 | 505 | cpp | C++ | src/the_framework/dstruct/shellsort/main.cpp | schnedann/linebuffer | 494745a6d83eef1adebf9a6e30c636a8edd5f0c2 | [
"BSD-3-Clause"
] | null | null | null | src/the_framework/dstruct/shellsort/main.cpp | schnedann/linebuffer | 494745a6d83eef1adebf9a6e30c636a8edd5f0c2 | [
"BSD-3-Clause"
] | null | null | null | src/the_framework/dstruct/shellsort/main.cpp | schnedann/linebuffer | 494745a6d83eef1adebf9a6e30c636a8edd5f0c2 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <stdint.h>
#include <ctime>
#include <sstream>
using namespace std;
/**
*
*/
int main()
{
uint16_t* data;
cout << "Hello world!" << endl;
data = new uint16_t[dVALUES];
fillran(data,dVALUES);
cout << "Unsorte... | 14.027778 | 63 | 0.548515 | schnedann |
5f1ca3ba83ee3e063c678dadfd2a01a0c4db3038 | 659 | cpp | C++ | 215#kth-largest-element-in-an-array/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 215#kth-largest-element-in-an-array/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 215#kth-largest-element-in-an-array/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | class Solution {
public:
void search(int l, int r) {
}
int findKthLargest(vector<int>& nums, int k) {
int *arr = nums.data();
int l = 0, r = nums.size();
k--;
while (true) {
if (l == r - 1 && l == k) return arr[k];
int v = arr[l];
... | 26.36 | 53 | 0.314112 | llwwns |
5f1eb99a1fae7f113f2b06e2e265a0047583fd39 | 1,950 | cpp | C++ | src/Game/CogShape.cpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Game/CogShape.cpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Game/CogShape.cpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | #include "CogShape.hpp"
#include "../Util.hpp"
#include <cstdio>
using Game::CogShape;
CogShape::CogShape(float aRadius, float aToothHeight, size_t aToothCount, uint8_t aToothWidth, bool aToothSlope)
: m_circleRadius(aRadius)
, m_toothHeight(aToothHeight)
, m_toothCount(aToothCount)
, m_toothWidth(aT... | 20.744681 | 112 | 0.661026 | ananace |
5f1ebaf2a80daf73415741e7c9b16b1d1ab0c2f4 | 237 | cpp | C++ | Editor/Editor/Menu/ToolsMenu/ToolsMenu.cpp | gregory-vovchok/YEngine | e28552e52588bd90db01dd53e5fc817d0a26d146 | [
"BSD-2-Clause"
] | null | null | null | Editor/Editor/Menu/ToolsMenu/ToolsMenu.cpp | gregory-vovchok/YEngine | e28552e52588bd90db01dd53e5fc817d0a26d146 | [
"BSD-2-Clause"
] | null | null | null | Editor/Editor/Menu/ToolsMenu/ToolsMenu.cpp | gregory-vovchok/YEngine | e28552e52588bd90db01dd53e5fc817d0a26d146 | [
"BSD-2-Clause"
] | 1 | 2020-12-04T08:57:03.000Z | 2020-12-04T08:57:03.000Z |
#include "..\..\Editor.h"
#include <Engine/Core/AssetLibrary/AssetLibrary.h>
#include <Editor/WarningDialog/WarningDialog.h>
void Editor::CreateToolsMenu(void)
{
toolsMenu = menuBar()->addMenu("Tools");
CreateDesignToolsMenu();
}
| 18.230769 | 50 | 0.734177 | gregory-vovchok |
5f223062c41c590168e44c370d74123c558603d6 | 1,312 | cpp | C++ | components/xtl/tests/xtl/range/extension_mechanism.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/xtl/tests/xtl/range/extension_mechanism.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/xtl/tests/xtl/range/extension_mechanism.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "test.h"
//
// Generic range algorithm
//
template< class Rng >
typename range_result_iterator<Rng>::type foo_algo( Rng& r )
{
//
// This will only compile for Rng = UDT if the qualified calls
// find xtl_range_XXX via ADL.
//
return size(r) == 0u ? begin(r) : end(r);
}
namespace Foo
{
//
// Ou... | 16 | 64 | 0.589939 | untgames |
5f22ba34654f5cb4d7e01db13a43e9e25eabfb47 | 111 | hpp | C++ | tool.hpp | Admaks/Minesweeper | 6f2ca36e2eec5dba3e022a85542df7390278c7f7 | [
"MIT"
] | null | null | null | tool.hpp | Admaks/Minesweeper | 6f2ca36e2eec5dba3e022a85542df7390278c7f7 | [
"MIT"
] | null | null | null | tool.hpp | Admaks/Minesweeper | 6f2ca36e2eec5dba3e022a85542df7390278c7f7 | [
"MIT"
] | null | null | null | #ifndef MINESWEEPER__TOOL_HPP_
#define MINESWEEPER__TOOL_HPP_
namespace TOOL {
char toChar(int);
}
#endif | 13.875 | 30 | 0.783784 | Admaks |
5f23b0e82b57ccaaf54bcdf474358a7f989ab8e4 | 1,250 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/Dhaka2014/pH.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/Dhaka2014/pH.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/Dhaka2014/pH.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define MC(n,m) memcpy((n),(m),sizeof(n))
#define F first
#define S second
#define MP make_pair
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size()... | 18.656716 | 68 | 0.4928 | daemonslayer |
5f2654991419ab73e974fd8fb9183d07c8cf5f5f | 25,693 | cpp | C++ | externals/skia/third_party/externals/angle2/src/libANGLE/queryutils.cpp | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 1 | 2019-10-29T14:36:32.000Z | 2019-10-29T14:36:32.000Z | externals/skia/third_party/externals/angle2/src/libANGLE/queryutils.cpp | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 1 | 2017-06-18T00:25:03.000Z | 2017-11-29T16:01:48.000Z | externals/skia/third_party/externals/angle2/src/libANGLE/queryutils.cpp | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 5 | 2017-11-30T06:06:50.000Z | 2022-03-31T21:48:49.000Z | //
// Copyright (c) 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// queryutils.cpp: Utilities for querying values from GL objects
#include "libANGLE/queryutils.h"
#include "common/utilities.h"
#include... | 33.109536 | 99 | 0.616744 | terrajobst |
5f2785bbb9b796f967cdd0653e4aa8d97976cdfa | 708 | cpp | C++ | 2020-11-17/machado.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | 2 | 2020-12-12T00:02:40.000Z | 2021-04-21T19:49:59.000Z | 2020-11-17/machado.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | 2020-11-17/machado.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
int main() {
int n, lines_per_page, chars_per_line;
char word[124];
while(true) {
if (scanf(" %d %d %d", &n,
&lines_per_page,
&chars_per_line)!=3)
break;
++chars_per_line;
int current_page = 1;
int current_line = 1;
int cu... | 21.454545 | 52 | 0.55226 | pufe |
5f3370b3f1607e6b5983749b0e156556e8513ffd | 1,572 | cpp | C++ | ctest/tests/geometry/Quadric.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | ctest/tests/geometry/Quadric.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | ctest/tests/geometry/Quadric.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | #include "../../testing.h"
#include <pre/geometry/Quadric>
using namespace pre;
TEST_CASE("geometry:Quadric") {
Pcg32 gen = RandomGen();
SUBCASE("Ellipse (2-dimensional)") {
auto quad = Quadric2d::make_ellipsoid({3, 2});
double t0 = NaN<double>;
double t1 = NaN<double>;
CHECK(... | 35.727273 | 62 | 0.533079 | mgradysaunders |
5f33f9f2ead49e0c61fd3f89f466907652e6cadd | 348 | cpp | C++ | atcoder(abc)/171E.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | atcoder(abc)/171E.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | atcoder(abc)/171E.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 1;
int a[maxn];
int main()
{
int n;
cin >> n;
cin >> a[0];
int xr = a[0];
for(int i=1; i<n; i++) {
cin >> a[i];
xr = a[i]^xr;
}
for(int i=0; i<n; i++) cout << (a[i]^xr) << " ";
cout ... | 15.818182 | 53 | 0.393678 | NafiAsib |
5f34a695185cd3b602cf7a5a639b1eafe33b5009 | 4,485 | cpp | C++ | pendulum-pointers.cpp | Riccardo-Beccalli/Physical-Simulation | a6dfcc6b9f8cfda977970fdf08ce7c57ccb02ca9 | [
"MIT"
] | null | null | null | pendulum-pointers.cpp | Riccardo-Beccalli/Physical-Simulation | a6dfcc6b9f8cfda977970fdf08ce7c57ccb02ca9 | [
"MIT"
] | null | null | null | pendulum-pointers.cpp | Riccardo-Beccalli/Physical-Simulation | a6dfcc6b9f8cfda977970fdf08ce7c57ccb02ca9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
#include <unistd.h>
using namespace std;
#define W 20
#define G 9.81
void introduction ();
void evolution (double *x, double *v, double *data, ofstream *ptrfout);
void write (double *data, ofstream *ptrfout2);
void choice (double *data, doub... | 30.304054 | 115 | 0.467781 | Riccardo-Beccalli |
5f367cbd72ff29e32509e52b53c8ae0501b0f53e | 8,848 | cpp | C++ | src/lastfmpp/tag.cpp | chrismanning/lastfmpp | 59439e62d2654359a48f8244a4b69b95d398beb3 | [
"MIT"
] | null | null | null | src/lastfmpp/tag.cpp | chrismanning/lastfmpp | 59439e62d2654359a48f8244a4b69b95d398beb3 | [
"MIT"
] | null | null | null | src/lastfmpp/tag.cpp | chrismanning/lastfmpp | 59439e62d2654359a48f8244a4b69b95d398beb3 | [
"MIT"
] | null | null | null | /**************************************************************************
** Copyright (C) 2015 Christian Manning
**
** This software may be modified and distributed under the terms
** of the MIT license. See the LICENSE file for details.
**************************************************************************/
#... | 44.913706 | 119 | 0.555493 | chrismanning |
5f3a83a1d0cd000b55f50ee21386dfeca4e737d1 | 1,310 | cpp | C++ | src/OpenGL/entrypoints/GL1.5/gl_is_query.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 114 | 2018-08-05T16:26:53.000Z | 2021-12-30T07:28:35.000Z | src/OpenGL/entrypoints/GL1.5/gl_is_query.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 5 | 2018-08-18T21:16:58.000Z | 2018-11-22T21:50:48.000Z | src/OpenGL/entrypoints/GL1.5/gl_is_query.cpp | kbiElude/VKGL | fffabf412723a3612ba1c5bfeafe1da38062bd18 | [
"MIT"
] | 6 | 2018-08-05T22:32:28.000Z | 2021-10-04T15:39:53.000Z | /* VKGL (c) 2018 Dominik Witczak
*
* This code is licensed under MIT license (see LICENSE.txt for details)
*/
#include "OpenGL/entrypoints/GL1.5/gl_is_query.h"
#include "OpenGL/context.h"
#include "OpenGL/globals.h"
static bool validate(OpenGL::Context* in_context_ptr,
const GLuint& in_id)
{... | 24.259259 | 80 | 0.575573 | kbiElude |
5f4312923a694bf986c8d2d753f2b6c79ca4c6b2 | 1,952 | cpp | C++ | Source/DynamicalModels/ObjectStates/imstkCPDState.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 2 | 2020-08-14T07:21:30.000Z | 2021-08-30T09:39:09.000Z | Source/DynamicalModels/ObjectStates/imstkCPDState.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | null | null | null | Source/DynamicalModels/ObjectStates/imstkCPDState.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 1 | 2020-08-14T07:00:31.000Z | 2020-08-14T07:00:31.000Z | /*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... | 30.030769 | 100 | 0.664959 | quantingxie |
5f44c8d245494a9b2b21a59f033300ff3882816c | 950 | cpp | C++ | src/RenderMethod_GrassFFP.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | src/RenderMethod_GrassFFP.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | src/RenderMethod_GrassFFP.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "RenderMethod_GrassFFP.h"
void RenderMethod_GrassFFP::renderPass(RENDER_PASS pass) {
switch (pass) {
case OPAQUE_PASS:
pass_opaque();
break;
default:
return;
}
}
void RenderMethod_GrassFFP::pass_opaque() {
CHECK_GL_ERROR();
// Setup state
glPushAttrib(GL_AL... | 21.111111 | 59 | 0.74 | foxostro |
5f44e561e126d7f0b9b148352f8dd0b93f8f2a57 | 4,504 | cpp | C++ | modfile/subrecords/srlstringsubrecord.cpp | uesp/tes5lib | 07b052983f2e26b9ba798f234ada00f83c90e9a4 | [
"MIT"
] | 11 | 2015-07-19T08:33:00.000Z | 2021-07-28T17:40:26.000Z | modfile/subrecords/srlstringsubrecord.cpp | uesp/tes5lib | 07b052983f2e26b9ba798f234ada00f83c90e9a4 | [
"MIT"
] | null | null | null | modfile/subrecords/srlstringsubrecord.cpp | uesp/tes5lib | 07b052983f2e26b9ba798f234ada00f83c90e9a4 | [
"MIT"
] | 1 | 2015-02-28T22:52:18.000Z | 2015-02-28T22:52:18.000Z | /*===========================================================================
*
* File: SrLstringsubrecord.CPP
* Author: Dave Humphrey (dave@uesp.net)
* Created On: 27 November 2011
*
* Description
*
*=========================================================================*/
/* Include Files */
... | 30.026667 | 101 | 0.416741 | uesp |
5f45faf4488d38fb890c45ddf4219c3ab8706e94 | 633 | cpp | C++ | src/main.cpp | maxwillf/Huffman | 8de0e08050b5ada24c0114b8832fca192f8abce7 | [
"MIT"
] | null | null | null | src/main.cpp | maxwillf/Huffman | 8de0e08050b5ada24c0114b8832fca192f8abce7 | [
"MIT"
] | null | null | null | src/main.cpp | maxwillf/Huffman | 8de0e08050b5ada24c0114b8832fca192f8abce7 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <map>
#include <vector>
#include "../include/node.h"
#include "../include/util.h"
#include "../include/huffman.h"
#include "../include/ioManager.h"
int main(int argc, char *argv[])
{
std::ifstream input("res/input.txt");
std::ofstream output("res/output.txt");
... | 21.1 | 47 | 0.650869 | maxwillf |
5f473ae4e46a0335559d7c28cf870d7d8507d80b | 15,136 | cc | C++ | src/EDepSimLogManager.cc | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 15 | 2017-04-25T14:20:22.000Z | 2022-03-15T19:39:43.000Z | src/EDepSimLogManager.cc | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 24 | 2017-11-08T21:16:48.000Z | 2022-03-04T13:33:18.000Z | src/EDepSimLogManager.cc | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 20 | 2017-11-09T15:41:46.000Z | 2022-01-25T20:52:32.000Z | #include <vector>
#include <sstream>
#include <fstream>
#include <time.h>
#include "EDepSimLog.hh"
EDepSim::LogManager::ErrorPriority EDepSim::LogManager::fErrorPriority = EDepSim::LogManager::ErrorLevel;
EDepSim::LogManager::LogPriority EDepSim::LogManager::fLogPriority = EDepSim::LogManager::LogLevel;
std::ostream*... | 38.318987 | 105 | 0.461879 | andrewmogan |
5f47d2228527a5b7377eab7235caf037f212e4b1 | 5,516 | hpp | C++ | examples/game_2d/src/helpers/spritemap.hpp | Turtwiggy/Cplusplus_game_engine | 71f66c047b0802232a32ec113eb83b310aaec0ab | [
"Apache-2.0"
] | null | null | null | examples/game_2d/src/helpers/spritemap.hpp | Turtwiggy/Cplusplus_game_engine | 71f66c047b0802232a32ec113eb83b310aaec0ab | [
"Apache-2.0"
] | null | null | null | examples/game_2d/src/helpers/spritemap.hpp | Turtwiggy/Cplusplus_game_engine | 71f66c047b0802232a32ec113eb83b310aaec0ab | [
"Apache-2.0"
] | null | null | null | #pragma once
// your proj headers
#include "engine/maths_core.hpp"
// other proj headers
#include <glm/glm.hpp>
#include <imgui.h>
// standard lib
#include <array>
#include <map>
#include <vector>
namespace game2d {
namespace sprite {
enum class type
{
// row 0
EMPTY,
BUSH_0,
BUSH_1,
BUSH_2,
BUSH_3,
... | 21.297297 | 69 | 0.569072 | Turtwiggy |
5f483e6a2426241ae8f199c6432fd9fd32c22e94 | 50 | cpp | C++ | src/engine/assets/handle_manager.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | 1 | 2018-10-20T22:08:59.000Z | 2018-10-20T22:08:59.000Z | src/engine/assets/handle_manager.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | null | null | null | src/engine/assets/handle_manager.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | null | null | null | // handle_manager.cpp
#include "handle_manager.h"
| 16.666667 | 27 | 0.78 | invaderjon |
5f4fbe2cc747ee2309831d6b9ff0eae7b2d2e001 | 2,202 | cpp | C++ | main.cpp | peterhp/ReceiptPrinter | 4d46243e85c91335188a0106ddc81c1a8b50f72b | [
"Apache-2.0"
] | 1 | 2016-05-31T02:36:45.000Z | 2016-05-31T02:36:45.000Z | main.cpp | peterhp/ReceiptPrinter | 4d46243e85c91335188a0106ddc81c1a8b50f72b | [
"Apache-2.0"
] | null | null | null | main.cpp | peterhp/ReceiptPrinter | 4d46243e85c91335188a0106ddc81c1a8b50f72b | [
"Apache-2.0"
] | null | null | null | /**
* The text encoding of all the words within this
* project is UTF-8.
**/
#include "basic/Goods.h"
#include "basic/ItemOffer.h"
#include "util/Parser.h"
#include "module/ReceiptPrinter.h"
#include "test/Test.h"
#include <QString>
#include <QFile>
#include <QTextStream>
#include <QHash>
#include <QDebug>
QT_US... | 23.677419 | 67 | 0.623978 | peterhp |
5f51192d7ae5ce2fddb892ddd514ed9d99682870 | 648 | cpp | C++ | Practice4/Task2.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice4/Task2.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice4/Task2.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main(){
int n, i=1;
float a, sum = 0;
cout << "Enter the number of numbers you want to count the average of: " << endl;
cin >> n;
if(n<=0){
cout << "The number of numbers must be positive!" << endl;
... | 17.513514 | 86 | 0.433642 | zuza-rzemieniewska |
34fc289895a258d1a244b31b44ff5816d6912f79 | 2,987 | hpp | C++ | include/Typeforge/Analysis.hpp | LLNL/typeforge | e91c0447140040a9ae02f3a58af3621a00a5e242 | [
"BSD-3-Clause"
] | 2 | 2021-05-17T19:22:37.000Z | 2021-09-01T15:10:38.000Z | include/Typeforge/Analysis.hpp | LLNL/typeforge | e91c0447140040a9ae02f3a58af3621a00a5e242 | [
"BSD-3-Clause"
] | null | null | null | include/Typeforge/Analysis.hpp | LLNL/typeforge | e91c0447140040a9ae02f3a58af3621a00a5e242 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright 2020 Lawrence Livermore National Security, LLC and other Typeforge developers.
* See the top-level NOTICE file for details.
*
* SPDX-License-Identifier: BSD-3
*/
#ifndef TYPEFORGE_ANALYSIS_H
# define TYPEFORGE_ANALYSIS_H
#include "sage3basic.h"
#include "AstTerm.h"
namespace Typeforge {
SgTyp... | 27.657407 | 107 | 0.67459 | LLNL |
34fddf34fae9c8837fca2744dba4fd2b975db32d | 1,203 | hpp | C++ | include/ValkyrieEngine/Util.hpp | VD-15/Valkyrie-Engine | 2287568e24b3ab20dff4feecbbf523c2fbbced65 | [
"MIT"
] | 2 | 2020-06-18T21:32:29.000Z | 2021-01-29T04:16:47.000Z | include/ValkyrieEngine/Util.hpp | VD-15/Valkyrie-Engine | 2287568e24b3ab20dff4feecbbf523c2fbbced65 | [
"MIT"
] | 13 | 2020-02-02T19:00:15.000Z | 2020-02-08T18:32:06.000Z | include/ValkyrieEngine/Util.hpp | VD-15/Valkyrie-Engine | 2287568e24b3ab20dff4feecbbf523c2fbbced65 | [
"MIT"
] | null | null | null |
#ifndef VLK_UTIL_HPP
#define VLK_UTIL_HPP
#include <type_traits>
namespace vlk
{
//Using `typename` keyword for templates like this is a C++17 extension
/*!
* \brief Is specialization template class
*
* Evaluates to <tt>std::true_type</tt> if template parameter <tt>T</tt> is a specialization of template cl... | 27.976744 | 177 | 0.678304 | VD-15 |
5500d43ef5b031fe38a3ccbd49fce332f8e78ac9 | 1,336 | cpp | C++ | sources/names.cpp | malytomas/unnatural-planets | 57ad1a48629a37f95ff729b75f8aaf439e209093 | [
"MIT"
] | 1 | 2021-03-01T21:49:24.000Z | 2021-03-01T21:49:24.000Z | sources/names.cpp | malytomas/unnatural-planets | 57ad1a48629a37f95ff729b75f8aaf439e209093 | [
"MIT"
] | 2 | 2020-07-13T10:57:27.000Z | 2021-02-24T21:10:09.000Z | sources/names.cpp | malytomas/unnatural-planets | 57ad1a48629a37f95ff729b75f8aaf439e209093 | [
"MIT"
] | null | null | null | #include <cage-core/math.h>
#include <cage-core/string.h>
using namespace cage;
namespace
{
constexpr const char *Prefixes[] = {
"bel", "nar", "xan", "bell", "natr", "ev",
};
constexpr const char *Stems[] = {
"adur", "aes", "anim", "apoll", "imac",
"educ", "equis", "extr", "guius", "hann",
"equi", "amora",... | 24.290909 | 86 | 0.574102 | malytomas |
5501b3df9ebd153ee8a7e570bb57e6c9374de9cb | 4,901 | cpp | C++ | src/CSMGameProject/CSMGameProject/PlayerManager.cpp | mastrayer/CSM | 4ea656584dec4fe60771fbf13dc3d6bca00675fd | [
"MIT"
] | 5 | 2016-06-02T09:50:31.000Z | 2018-06-20T04:52:54.000Z | src/CSMGameProject/CSMGameProject/PlayerManager.cpp | mastrayer/CSM | 4ea656584dec4fe60771fbf13dc3d6bca00675fd | [
"MIT"
] | null | null | null | src/CSMGameProject/CSMGameProject/PlayerManager.cpp | mastrayer/CSM | 4ea656584dec4fe60771fbf13dc3d6bca00675fd | [
"MIT"
] | null | null | null |
#include "PlayerManager.h"
#include "PacketType.h"
#include "NNApplication.h"
CPlayerManager* CPlayerManager::m_Instance = nullptr;
CPlayerManager::CPlayerManager(void)
: mMyPlayerId(-1), mMyPlayer(nullptr)
{
}
CPlayerManager::~CPlayerManager(void)
{
}
CPlayerManager* CPlayerManager::GetInstance... | 27.689266 | 81 | 0.701489 | mastrayer |
550426813a3db89ca22113035ac8bf7e59553647 | 3,142 | hpp | C++ | include/codegen/include/System/Array_SorterObjectArray.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Array_SorterObjectArray.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Array_SorterObjectArray.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Array
#include "System/Array.hpp"
// Including t... | 44.253521 | 199 | 0.699236 | Futuremappermydud |
5505486b624f541a508516782b52458c5dccb79c | 287 | cpp | C++ | src/compete/hackerrank/tree-pruning.cpp | kinshuk4/algorithm-cpp | 4cd81539399d1e745c55625a68b399248d25af66 | [
"MIT"
] | null | null | null | src/compete/hackerrank/tree-pruning.cpp | kinshuk4/algorithm-cpp | 4cd81539399d1e745c55625a68b399248d25af66 | [
"MIT"
] | null | null | null | src/compete/hackerrank/tree-pruning.cpp | kinshuk4/algorithm-cpp | 4cd81539399d1e745c55625a68b399248d25af66 | [
"MIT"
] | null | null | null | //tree-pruning.cpp
//Tree Pruning
//Weekly Challenges - Week 11
//Author: derekhh
#include<iostream>
using namespace std;
int w[100000];
int main()
{
int n, k;
cin >> n >> k;
for (int i = 0; i < n; i++)
cin >> w[i];
for (int i = 0; i < n - 1; i++)
{
int a, b;
}
return 0;
} | 13.045455 | 32 | 0.554007 | kinshuk4 |
550c955a1095ffcfba27c17cb128baf60a6d32b0 | 935 | cpp | C++ | leetcode/cpp/linkedlist/92.cpp | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 61 | 2020-09-26T19:57:44.000Z | 2022-03-09T18:51:44.000Z | leetcode/cpp/linkedlist/92.cpp | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 88 | 2020-09-19T20:00:27.000Z | 2021-10-31T09:41:57.000Z | leetcode/cpp/linkedlist/92.cpp | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 218 | 2020-09-20T08:18:03.000Z | 2022-01-30T23:13:16.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* reverseBetw... | 24.605263 | 62 | 0.48877 | ajeet1308 |
550cd05d188200a8685ffe59752d4013e92d5475 | 680 | cpp | C++ | Plugins/Modio/Source/Modio/Private/Libraries/ModioErrorConditionLibrary.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 19 | 2020-10-21T16:55:52.000Z | 2022-03-27T10:21:23.000Z | Plugins/Modio/Source/Modio/Private/Libraries/ModioErrorConditionLibrary.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 6 | 2020-10-16T09:38:30.000Z | 2021-11-15T23:43:59.000Z | Plugins/Modio/Source/Modio/Private/Libraries/ModioErrorConditionLibrary.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 1 | 2021-02-21T15:02:24.000Z | 2021-02-21T15:02:24.000Z | /*
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io>
*
* This file is part of the mod.io UE4 Plugin.
*
* Distributed under the MIT License. (See accompanying file LICENSE or
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>)
*
*/
#include "Libraries/ModioErrorConditionLi... | 30.909091 | 113 | 0.742647 | trumank |
550d2001921a86a72e4fb90ade31e07c845639d0 | 610 | hpp | C++ | include/anisthesia/player.hpp | swiftcitrus/anisthesia | 981c821d51b1115311eee9fba01dc93210dd757b | [
"MIT"
] | 33 | 2017-02-07T00:03:31.000Z | 2022-02-09T12:06:52.000Z | include/anisthesia/player.hpp | swiftcitrus/anisthesia | 981c821d51b1115311eee9fba01dc93210dd757b | [
"MIT"
] | 7 | 2017-07-26T22:40:22.000Z | 2022-01-30T08:05:51.000Z | include/anisthesia/player.hpp | swiftcitrus/anisthesia | 981c821d51b1115311eee9fba01dc93210dd757b | [
"MIT"
] | 9 | 2017-08-05T10:33:05.000Z | 2021-10-03T00:23:21.000Z | #pragma once
#include <string>
#include <vector>
namespace anisthesia {
enum class Strategy {
WindowTitle,
OpenFiles,
UiAutomation,
};
enum class PlayerType {
Default,
WebBrowser,
};
struct Player {
PlayerType type = PlayerType::Default;
std::string name;
std::string window_title_format;
std::vec... | 19.0625 | 77 | 0.727869 | swiftcitrus |
551033508f1c18c6f9a00628c07409168fe35d42 | 2,290 | cpp | C++ | src/ai/pm/TrFun_Assign.cpp | name212/GrammarEngine | 1912809d6a19977c9d2fff88279b76a6152b659d | [
"MIT"
] | 55 | 2015-04-11T17:39:27.000Z | 2022-01-07T17:52:22.000Z | src/ai/pm/TrFun_Assign.cpp | name212/GrammarEngine | 1912809d6a19977c9d2fff88279b76a6152b659d | [
"MIT"
] | 17 | 2017-11-22T13:31:11.000Z | 2021-06-06T08:30:43.000Z | src/ai/pm/TrFun_Assign.cpp | qwazer/GrammarEngine | 08e1eb7bdfd77f29a51a7063848d74b9171291c4 | [
"MIT"
] | 28 | 2015-05-21T08:27:31.000Z | 2022-02-24T21:42:36.000Z | #include <lem/solarix/tokens.h>
#include <lem/solarix/translation.h>
#include <lem/solarix/tr_funs.h>
#include <lem/solarix/tr_trace_actors.h>
using namespace lem;
using namespace Solarix;
TrFun_Assign::TrFun_Assign(void)
: TrFunCall( TrFunCall::Assign )
{
}
TrFun_Assign::TrFun_Assign( const UCStri... | 23.367347 | 79 | 0.642795 | name212 |
551189f990bff99aba9835310a35ecc5267a7297 | 1,113 | cpp | C++ | tests-batch/net/launchSwapClient.cpp | dtorban/MinVR_Old | 8b09ba1a61f6dcef051c5dd8d3f3e607ee55955d | [
"BSD-3-Clause"
] | 18 | 2016-08-04T16:09:52.000Z | 2022-01-17T15:43:37.000Z | tests-batch/net/launchSwapClient.cpp | OpenSpace/MinVR | 17b4f3bd57cefd07f99159288069f01713053054 | [
"BSD-3-Clause"
] | 123 | 2015-01-08T17:32:39.000Z | 2021-12-22T00:55:00.000Z | tests-batch/net/launchSwapClient.cpp | OpenSpace/MinVR | 17b4f3bd57cefd07f99159288069f01713053054 | [
"BSD-3-Clause"
] | 21 | 2016-11-04T18:36:29.000Z | 2022-03-01T19:44:11.000Z | #include "net/VRNetClient.h"
#ifdef WIN32
#include <process.h>
#define getpid _getpid
#endif
// Program to launch one VRNetClient that connects to server. Created
// client executes syncSwapBuffersAcrossAllNodes. The program is
// intended to be executed by a forked child process in the network
// tests. We do thi... | 32.735294 | 80 | 0.679245 | dtorban |
55177afc41a9cd594b2c8acf0105f2085c040d9a | 8,091 | cxx | C++ | src/dicom/vtkDICOMFileDirectory.cxx | greydongilmore/tactics | e57008ded07eb798368ccb161d9bf06d9a16f52c | [
"BSD-3-Clause"
] | 5 | 2015-06-02T22:10:36.000Z | 2022-01-02T09:26:47.000Z | src/dicom/vtkDICOMFileDirectory.cxx | greydongilmore/tactics | e57008ded07eb798368ccb161d9bf06d9a16f52c | [
"BSD-3-Clause"
] | 2 | 2015-06-04T14:52:09.000Z | 2015-06-04T18:58:50.000Z | src/dicom/vtkDICOMFileDirectory.cxx | greydongilmore/tactics | e57008ded07eb798368ccb161d9bf06d9a16f52c | [
"BSD-3-Clause"
] | 3 | 2015-06-04T15:02:25.000Z | 2021-02-02T01:47:56.000Z | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2015 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied ... | 24.518182 | 79 | 0.526387 | greydongilmore |
5517ed72ba6dcfa449db9440d7378dbd6e212161 | 669 | cpp | C++ | _site/Competitive Programming/Codeforces/1136B.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Codeforces/1136B.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Codeforces/1136B.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include "bits/stdc++.h"
#ifdef PRINTERS
#include "printers.hpp"
using namespace printers;
#define tr(a) cerr<<#a<<" : "<<a<<endl
#else
#define tr(a)
#endif
#define ll long long
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define vi vector<... | 20.90625 | 44 | 0.544096 | anujkyadav07 |
551987d7d2abd0f6f163c02e0b95d9364cd025b5 | 424 | cpp | C++ | src/io/screen/screen.cpp | fishjump/osdevc_libinit | 7221beb9c2a9035d3a24b90a9993fb73ee4063c3 | [
"MIT"
] | null | null | null | src/io/screen/screen.cpp | fishjump/osdevc_libinit | 7221beb9c2a9035d3a24b90a9993fb73ee4063c3 | [
"MIT"
] | null | null | null | src/io/screen/screen.cpp | fishjump/osdevc_libinit | 7221beb9c2a9035d3a24b90a9993fb73ee4063c3 | [
"MIT"
] | null | null | null | #include <global/global.hpp>
#include "../../lazyload.hpp"
namespace {
lazyload<system::io::entity::Screen> gobalScreen;
} // namespace
namespace system::global {
namespace init {
void initScreen() {
gobalScreen.init();
}
} // namespace init
namespace instance {
system::io::entity::Screen *getSc... | 18.434783 | 49 | 0.653302 | fishjump |
551b7262d22290ae2294c9e79a7a5bed441c8187 | 1,141 | cpp | C++ | Algorithms/Src/String.cpp | ikarusx/ModernCpp | 8c0111dec2d0a2a183250e2f9594573b99687ec5 | [
"MIT"
] | null | null | null | Algorithms/Src/String.cpp | ikarusx/ModernCpp | 8c0111dec2d0a2a183250e2f9594573b99687ec5 | [
"MIT"
] | null | null | null | Algorithms/Src/String.cpp | ikarusx/ModernCpp | 8c0111dec2d0a2a183250e2f9594573b99687ec5 | [
"MIT"
] | null | null | null |
#include "Precompiled.hpp"
#include "String.hpp"
#include <limits>
#include <string>
#include <iostream>
using namespace Algorithms;
namespace
{
static const auto speedup = []() {
std::ios::sync_with_stdio(false);
std::cin.tie(NULL);
return 0;
}();
}
// No std algorithms.
int String::AToI(std::string str... | 16.779412 | 75 | 0.608238 | ikarusx |
551c3f2f5b73aa74c9961befe28aa3cc7891c65b | 645 | cpp | C++ | docs/cpp/codesnippet/CPP/how-to-create-and-use-shared-ptr-instances_6.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/cpp/codesnippet/CPP/how-to-create-and-use-shared-ptr-instances_6.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/cpp/codesnippet/CPP/how-to-create-and-use-shared-ptr-instances_6.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z |
// Initialize two separate raw pointers.
// Note that they contain the same values.
auto song1 = new Song(L"Village People", L"YMCA");
auto song2 = new Song(L"Village People", L"YMCA");
// Create two unrelated shared_ptrs.
shared_ptr<Song> p1(song1);
shared_ptr<Song> p2(song2);
//... | 37.941176 | 68 | 0.593798 | bobbrow |
551d2a06b3e733b0bdca497ed5cb7f28a173baf1 | 18,865 | hpp | C++ | src/date.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 27 | 2016-11-19T16:51:21.000Z | 2021-09-08T16:44:15.000Z | src/date.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 1 | 2016-12-28T16:38:38.000Z | 2017-02-17T05:32:13.000Z | src/date.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 10 | 2016-12-28T02:31:38.000Z | 2021-06-15T09:02:07.000Z | /*
Copyright (C) 2016 -2017 Jerry Jin
*/
#ifndef date_h
#define date_h
#include <nan.h>
#include <string>
#include <queue>
#include <utility>
#include "../quantlibnode.hpp"
#include <oh/objecthandler.hpp>
using namespace node;
using namespace v8;
using namespace std;
class PeriodFromFrequencyWorker : public Na... | 15.826342 | 59 | 0.616539 | quantlibnode |
551f1694353d2b86cc15f39bc78274bac6675a04 | 3,157 | cpp | C++ | competitive programming/codechef/TREE2.cpp | sureshmangs/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/codechef/TREE2.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/codechef/TREE2.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | /*
On a sunny day, Akbar and Birbal were taking a leisurely walk in palace gardens. Suddenly, Akbar noticed a bunch of sticks on the ground and decided to test Birbal's wits.
There are N stick holders with negligible size (numbered 1 through N) in a row on the ground. Akbar places all the sticks in them vertically; fo... | 36.709302 | 426 | 0.69528 | sureshmangs |
55207618063e8e7e2cca5a0e35d82995187a1e54 | 2,188 | cpp | C++ | Teapot/src/Profiler.cpp | Uedaki/Teapot | 3e0f4363a3b3376e74f5df7f8e39708062553263 | [
"MIT"
] | null | null | null | Teapot/src/Profiler.cpp | Uedaki/Teapot | 3e0f4363a3b3376e74f5df7f8e39708062553263 | [
"MIT"
] | 40 | 2019-10-10T06:57:43.000Z | 2019-12-24T12:36:10.000Z | Teapot/src/Profiler.cpp | Uedaki/Teapot | 3e0f4363a3b3376e74f5df7f8e39708062553263 | [
"MIT"
] | null | null | null | #include "Profiler.h"
#ifdef PROFILING
#include <chrono>
#include <thread>
#include "Log.h"
namespace
{
Profiler profiler;
}
Profiler::FunctionProfiler::FunctionProfiler(const std::string &session, const std::string &name)
: session(session)
{
auto startPoint = std::chrono::high_resolution_cl... | 24.58427 | 117 | 0.650823 | Uedaki |
5520f325dbed7501f3d425b7abb2b0018f490070 | 390 | cpp | C++ | logout.cpp | fraxer/scgi-server | 9f26eea5bb4e27c500bffddae5e91aec0f18ab52 | [
"MIT"
] | null | null | null | logout.cpp | fraxer/scgi-server | 9f26eea5bb4e27c500bffddae5e91aec0f18ab52 | [
"MIT"
] | null | null | null | logout.cpp | fraxer/scgi-server | 9f26eea5bb4e27c500bffddae5e91aec0f18ab52 | [
"MIT"
] | null | null | null | class LogoutController: public Controller {
public:
string& run(map<const char*, const char*>& parms) {
addHeader("Set-Cookie: id=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT");
addHeader("Set-Cookie: token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT");
retu... | 43.333333 | 92 | 0.574359 | fraxer |
55212f9abfbec145ac9aab6764e009ca72ccc316 | 608 | cpp | C++ | Himanshu4642's files/Subset Sum.cpp | daniele-mc/HacktoberFest2020-4 | c217728639da86a6cb6c54d3a6bbb3c10f230878 | [
"MIT"
] | 25 | 2020-10-01T05:44:04.000Z | 2020-10-30T17:30:26.000Z | Himanshu4642's files/Subset Sum.cpp | daniele-mc/HacktoberFest2020-4 | c217728639da86a6cb6c54d3a6bbb3c10f230878 | [
"MIT"
] | 14 | 2020-10-01T09:32:47.000Z | 2020-11-05T16:17:12.000Z | Himanshu4642's files/Subset Sum.cpp | daniele-mc/HacktoberFest2020-4 | c217728639da86a6cb6c54d3a6bbb3c10f230878 | [
"MIT"
] | 143 | 2020-10-01T05:47:04.000Z | 2021-10-03T04:25:42.000Z | /*There is a slight difference in 0-1 knapsack and subset sum problem.
First diff is the initialisation and changing max into Bitwise OR operation.
Rest ignore val[] array and change wt[] array into the problem arr[] array.*/
bool subsetSum(int arr[],int sum,int n){
int dp[n+1][sum+1];
for(int i=0;i<=n;i++){
for(... | 22.518519 | 77 | 0.5625 | daniele-mc |
5531c27ffd7423825958ed95e59fd394e420a3d8 | 129 | hpp | C++ | dependencies/glm/gtx/euler_angles.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/gtx/euler_angles.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/gtx/euler_angles.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:83c1f5f2fc2dcc4d7d99f930b6aa29e09677df4d1148a7d86389ea8c2a9a5dd0
size 4609
| 32.25 | 75 | 0.883721 | realtehcman |
553574742dbb901210db599bfe312eca090dd456 | 470 | cpp | C++ | src/tutorials/src/listner.cpp | snandasena/ros-cpp-sample | 75187b8bec72d46fab093c1aece0118fde437051 | [
"Apache-2.0"
] | null | null | null | src/tutorials/src/listner.cpp | snandasena/ros-cpp-sample | 75187b8bec72d46fab093c1aece0118fde437051 | [
"Apache-2.0"
] | null | null | null | src/tutorials/src/listner.cpp | snandasena/ros-cpp-sample | 75187b8bec72d46fab093c1aece0118fde437051 | [
"Apache-2.0"
] | null | null | null | //
// Created by sajith on 3/12/21.
//
#include "ros/ros.h"
#include "std_msgs/String.h"
void chatterCallBack(const std_msgs::String::ConstPtr &);
int main(int arg, char **argv)
{
ros::init(arg, argv, "listner");
ros::NodeHandle n;
ros::Subscriber sub = n.subscribe("chatter", 1000, chatterCallBack);
... | 16.206897 | 72 | 0.642553 | snandasena |
553dc8b35d6f9886b9491ca697dab6dc8117668a | 2,890 | cpp | C++ | src/simulated_annealing.cpp | paulora2405/iar-tsp-sa | 552ee4aea9122d6cc66bc2650ec128dc85a0a718 | [
"MIT"
] | null | null | null | src/simulated_annealing.cpp | paulora2405/iar-tsp-sa | 552ee4aea9122d6cc66bc2650ec128dc85a0a718 | [
"MIT"
] | null | null | null | src/simulated_annealing.cpp | paulora2405/iar-tsp-sa | 552ee4aea9122d6cc66bc2650ec128dc85a0a718 | [
"MIT"
] | null | null | null | #include "simulated_annealing.hpp"
#include <algorithm>
#include <cmath>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <random>
namespace sa {
static std::default_random_engine gen(time(NULL));
static std::uniform_real_distribution<double> prob0_1(0.0f, 1.0f);
std::vector<Trio> ... | 23.495935 | 96 | 0.547059 | paulora2405 |
55433e84fe4a26b7293d7a091cfb84e51744cc4d | 823 | cpp | C++ | src/offer.04.er-wei-shu-zu-zhong-de-cha-zhao-lcof/cpp/main.cpp | 1-st/algos | d1f4cff9ee0b014e05629091fb3bdc3c9da90b15 | [
"Apache-2.0"
] | 1 | 2020-11-05T04:03:15.000Z | 2020-11-05T04:03:15.000Z | src/offer.04.er-wei-shu-zu-zhong-de-cha-zhao-lcof/cpp/main.cpp | up0/algos | 1ceee4a5e6445c3ac9b11482aad97d8cd44bbcec | [
"Apache-2.0"
] | null | null | null | src/offer.04.er-wei-shu-zu-zhong-de-cha-zhao-lcof/cpp/main.cpp | up0/algos | 1ceee4a5e6445c3ac9b11482aad97d8cd44bbcec | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
/*
{
from:"https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/" ,
description:"二维数组中的查找"
}
*/
using namespace std;
class Solution {
public:
bool findNumberIn2DArray(vector<vector<int>> &matrix, int target) {
if (matrix.size() == 0 || matrix[0].size()... | 20.575 | 81 | 0.561361 | 1-st |
5543ca29ea100c88d35f297233fc5a7fdacba642 | 13,639 | cpp | C++ | EvolutionDlg.cpp | CanadianYankee/TrafficSwarm | 9b2eb423de89fdeba7195a7fd6f1a667ecdea12c | [
"MIT"
] | 1 | 2019-12-14T15:52:28.000Z | 2019-12-14T15:52:28.000Z | EvolutionDlg.cpp | CanadianYankee/TrafficSwarm | 9b2eb423de89fdeba7195a7fd6f1a667ecdea12c | [
"MIT"
] | null | null | null | EvolutionDlg.cpp | CanadianYankee/TrafficSwarm | 9b2eb423de89fdeba7195a7fd6f1a667ecdea12c | [
"MIT"
] | null | null | null | // EvolutionDlg.cpp : implementation file
//
#include "pch.h"
#include "TrafficSwarm.h"
#include "EvolutionDlg.h"
#include "afxdialogex.h"
#include "Course.h"
#include "AgentGenome.h"
#include "TrialRun.h"
// CEvolutionDlg dialog
UINT RunThreadedTrial(LPVOID pParams)
{
CEvolutionDlg* pOwner = ((CEvolutionDlg*)pPa... | 28.713684 | 167 | 0.72586 | CanadianYankee |
55490af7f384c28547b160694f17daf414b77093 | 9,008 | cpp | C++ | deps/ViscoelasticityStressUpdate/ViscoelasticityStressUpdate.cpp | kailaix/AdFem.jl | 77eabfeedb297570a42d1f26575c59f0712796d9 | [
"MIT"
] | 47 | 2020-10-18T01:33:11.000Z | 2022-03-16T00:13:24.000Z | deps/ViscoelasticityStressUpdate/ViscoelasticityStressUpdate.cpp | kailaix/AdFem.jl | 77eabfeedb297570a42d1f26575c59f0712796d9 | [
"MIT"
] | 10 | 2020-10-19T03:51:31.000Z | 2022-03-22T23:38:46.000Z | deps/ViscoelasticityStressUpdate/ViscoelasticityStressUpdate.cpp | kailaix/AdFem.jl | 77eabfeedb297570a42d1f26575c59f0712796d9 | [
"MIT"
] | 11 | 2020-11-05T11:34:16.000Z | 2022-03-03T19:30:09.000Z | #include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/platform/default/logging.h"
#include "tensorflow/core/framework/shape_inference.h"
#include<cmath>
// Signatures for GPU kernels here
using namespace tensorflow;
#include "ViscoelasticitySt... | 37.533333 | 119 | 0.69294 | kailaix |
55503ce84af159e368f44a017f1c2ce725063e81 | 2,210 | cp | C++ | gps/gps.cp | igor-almeida-github/meus-projetos-com-microcontroladores | be1ac244cd79db66461e7ae2fec843dac60c266d | [
"MIT"
] | 2 | 2021-06-09T15:01:11.000Z | 2021-07-13T19:25:06.000Z | gps/gps.cp | igor-almeida-github/meus-projetos-com-microcontroladores | be1ac244cd79db66461e7ae2fec843dac60c266d | [
"MIT"
] | null | null | null | gps/gps.cp | igor-almeida-github/meus-projetos-com-microcontroladores | be1ac244cd79db66461e7ae2fec843dac60c266d | [
"MIT"
] | null | null | null | #line 1 "C:/Users/igor_/Documents/Microcontroladores/PIC/Mikroc/gps/gps.c"
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;
sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit L... | 22.323232 | 75 | 0.676923 | igor-almeida-github |
555153fb5886824467b55c505e1255755d9691fc | 3,657 | cpp | C++ | src/Common/Utilities/src/SimpleHashPolicy.cpp | jasonfeihe/BitFunnel | 859f3038e1978d066426ebaef17354c8ec408402 | [
"MIT"
] | 364 | 2016-08-08T21:45:24.000Z | 2022-03-27T13:46:51.000Z | src/Common/Utilities/src/SimpleHashPolicy.cpp | jasonfeihe/BitFunnel | 859f3038e1978d066426ebaef17354c8ec408402 | [
"MIT"
] | 321 | 2016-08-08T22:00:28.000Z | 2020-11-30T23:03:16.000Z | src/Common/Utilities/src/SimpleHashPolicy.cpp | jasonfeihe/BitFunnel | 859f3038e1978d066426ebaef17354c8ec408402 | [
"MIT"
] | 44 | 2016-08-14T16:20:29.000Z | 2021-10-03T07:46:26.000Z | // The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... | 34.828571 | 95 | 0.608696 | jasonfeihe |
5560e9b98f8a1742dd97d8fc03c7ea3faa294f70 | 1,558 | cpp | C++ | src/embedders/token_indexer.cpp | IlyaGusev/tgcontest | 8945b9f6d1527ca21920998e86a8ecc1ebfdf526 | [
"Apache-2.0"
] | 91 | 2020-01-05T11:46:12.000Z | 2022-03-28T04:50:12.000Z | src/embedders/token_indexer.cpp | IlyaGusev/tgcontest | 8945b9f6d1527ca21920998e86a8ecc1ebfdf526 | [
"Apache-2.0"
] | 1 | 2020-07-10T11:32:47.000Z | 2020-08-05T20:57:10.000Z | src/embedders/token_indexer.cpp | IlyaGusev/tgcontest | 8945b9f6d1527ca21920998e86a8ecc1ebfdf526 | [
"Apache-2.0"
] | 33 | 2020-01-14T17:37:14.000Z | 2022-03-12T15:28:01.000Z | #include "token_indexer.h"
#include "../util.h"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>
#include <fstream>
TTokenIndexer::TTokenIndexer(const std::string& vocabularyPath, size_t maxWords) : MaxWords(maxWords) {
std::ifstream vocabularyFile(vocabularyPath);
std::strin... | 34.622222 | 110 | 0.632221 | IlyaGusev |
55649b809c20937903949393d4f3a7099fce8014 | 37,223 | hpp | C++ | core/os/windows/src/cogs/os/sync/atomic_operators.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/os/windows/src/cogs/os/sync/atomic_operators.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/os/windows/src/cogs/os/sync/atomic_operators.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
#ifdef COGS_HEADER_ENV_SYNC_ATOMIC_OPERATORS
#ifndef COGS_HEADER_OS_SYNC_ATOMIC_OPERATORS
#define COGS_HEADER_OS_SYNC_ATOMIC_OPERATORS
#include "cogs/arch/sync/atomic_operators.hpp"
namespace cogs {
namespace os {
nam... | 27.531805 | 145 | 0.644736 | cogmine |
556817c38c3259227c29c6b851cd31e277aa4ffb | 434 | cc | C++ | LeetCode-278.cc | therainmak3r/dirty-laundry | 39e295e9390b62830bef53282cdcb63716efac45 | [
"MIT"
] | 20 | 2015-12-22T14:14:59.000Z | 2019-10-25T12:14:23.000Z | LeetCode-278.cc | therainmak3r/dirty-laundry | 39e295e9390b62830bef53282cdcb63716efac45 | [
"MIT"
] | null | null | null | LeetCode-278.cc | therainmak3r/dirty-laundry | 39e295e9390b62830bef53282cdcb63716efac45 | [
"MIT"
] | 2 | 2016-06-27T13:34:08.000Z | 2018-10-02T20:36:54.000Z | // Forward declaration of isBadVersion API.
bool isBadVersion(int version);
class Solution {
public:
int firstBadVersion(int n) {
int low = 1;
int high = n;
while (low != high)
{
int mid = low + (high - low)/2;
if (isBadVersion(mid))
high = mid;
else
lo... | 19.727273 | 44 | 0.509217 | therainmak3r |
556b86c30beb85f19996670f398c4b181dd3f7e4 | 2,941 | hpp | C++ | include/class_info.hpp | gordonwatts/func-adl-types-atlas | 9d135371d4e21d69373a8e1611ea8118cf2fff7f | [
"MIT"
] | null | null | null | include/class_info.hpp | gordonwatts/func-adl-types-atlas | 9d135371d4e21d69373a8e1611ea8118cf2fff7f | [
"MIT"
] | 1 | 2022-02-23T17:56:48.000Z | 2022-02-23T17:56:48.000Z | include/class_info.hpp | gordonwatts/func-adl-types-atlas | 9d135371d4e21d69373a8e1611ea8118cf2fff7f | [
"MIT"
] | null | null | null | #ifndef __class_info__
#define __class_info__
#include <string>
#include <iostream>
#include <vector>
struct typename_info {
// The list of identifiers separated by "::"
std::vector<typename_info> namespace_list;
// The actual type name
std::string type_name;
// The template arguments (if there ... | 29.118812 | 85 | 0.704862 | gordonwatts |
556d758ce55ee9695384de5046927f37fd8c679d | 34 | cpp | C++ | src/game/GameProfilingSystem.cpp | amarsero/stridecpp | afc37c50c735d59a4e0784787f3c905ff98e3f66 | [
"Unlicense"
] | null | null | null | src/game/GameProfilingSystem.cpp | amarsero/stridecpp | afc37c50c735d59a4e0784787f3c905ff98e3f66 | [
"Unlicense"
] | null | null | null | src/game/GameProfilingSystem.cpp | amarsero/stridecpp | afc37c50c735d59a4e0784787f3c905ff98e3f66 | [
"Unlicense"
] | null | null | null | #include "GameProfilingSystem.h"
| 17 | 33 | 0.794118 | amarsero |
556e0fceab431f3577aafff800cc003f1087236d | 672 | cpp | C++ | korbo/src/Main.cpp | Txuritan/korbo | 6a8b3fa2459a381ec9462f849a8ec55ef83cee10 | [
"MIT"
] | null | null | null | korbo/src/Main.cpp | Txuritan/korbo | 6a8b3fa2459a381ec9462f849a8ec55ef83cee10 | [
"MIT"
] | null | null | null | korbo/src/Main.cpp | Txuritan/korbo | 6a8b3fa2459a381ec9462f849a8ec55ef83cee10 | [
"MIT"
] | null | null | null | #include "Main.hpp"
#include <KorboWindow.hpp>
#include <StartUp.hpp>
#include <gtkmm.h>
namespace Korbo {
Main::Main() {
}
Main::~Main() {
}
int Main::runKorbo(int argc, char *argv[]) {
Korbo::KLogc::StartUp startUp = Korbo::KLogc::StartUp();
startUp.run()... | 20.363636 | 112 | 0.583333 | Txuritan |
5571d3bf64e7cea92c454303fab55fd6f87eff8b | 2,523 | cpp | C++ | Codechef/CPP/Div2_August_2020/SKMP.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 29 | 2020-10-03T17:41:46.000Z | 2021-10-04T17:59:22.000Z | Codechef/CPP/Div2_August_2020/SKMP.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 117 | 2020-10-03T15:39:39.000Z | 2021-10-06T08:21:37.000Z | Codechef/CPP/Div2_August_2020/SKMP.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 160 | 2020-10-03T15:39:23.000Z | 2021-10-13T09:07:05.000Z | ///Astalavista Code........~boy_with_no_gf
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define Br cout<<endl
#define int long long
#define double long double
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define PT(x) cout << (x) << endl
#define PTT(x) cout << (#x) << " is " <... | 27.725275 | 133 | 0.391994 | riship99 |
5575e93dfe614b58c169bddf6caf99988c5cd28b | 2,357 | cpp | C++ | Plugins/UnLua/Source/UnLua/Public/LowLevel.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | 1 | 2022-03-24T02:56:59.000Z | 2022-03-24T02:56:59.000Z | Plugins/UnLua/Source/UnLua/Public/LowLevel.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | null | null | null | Plugins/UnLua/Source/UnLua/Public/LowLevel.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | null | null | null | // Tencent is pleased to support the open source community by making UnLua available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy of th... | 29.098765 | 107 | 0.556216 | xiejiangzhi |
55767b1c3386d704a4b2d5c6912fe81af4b22733 | 1,404 | cpp | C++ | Libraries/Led/Led.cpp | 3KMedialab/Midi-Controller | 412f1dff01b9f5c73c75e00aefb85ccf6d7bfe8a | [
"Apache-2.0"
] | null | null | null | Libraries/Led/Led.cpp | 3KMedialab/Midi-Controller | 412f1dff01b9f5c73c75e00aefb85ccf6d7bfe8a | [
"Apache-2.0"
] | 1 | 2018-06-08T12:35:08.000Z | 2018-06-08T12:35:08.000Z | Libraries/Led/Led.cpp | 3KMedialab/Midi-Controller | 412f1dff01b9f5c73c75e00aefb85ccf6d7bfe8a | [
"Apache-2.0"
] | null | null | null | /*
* Led.cpp
*
* Class that represents a Led output component.
*
* Copyright 2017 3K MEDIALAB
*
* 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/license... | 23.4 | 85 | 0.700142 | 3KMedialab |
5350b333d1af47769c9ef83d1a9b77438b9df807 | 11,202 | cpp | C++ | test/StructUnitTest.cpp | dic-iit/matio-cpp | d8a450ea7c3289ca78ea5111aea0f451a8b19b74 | [
"BSD-2-Clause"
] | 12 | 2020-11-06T11:02:11.000Z | 2021-07-14T20:45:52.000Z | test/StructUnitTest.cpp | dic-iit/matio-cpp | d8a450ea7c3289ca78ea5111aea0f451a8b19b74 | [
"BSD-2-Clause"
] | 20 | 2020-11-06T07:35:13.000Z | 2021-06-28T08:36:35.000Z | test/StructUnitTest.cpp | ami-iit/matio-cpp | d8a450ea7c3289ca78ea5111aea0f451a8b19b74 | [
"BSD-2-Clause"
] | 3 | 2021-09-05T03:10:55.000Z | 2022-02-18T09:40:12.000Z | /*
* Copyright (C) 2020 Fondazione Istituto Italiano di Tecnologia
*
* This software may be modified and distributed under the terms of the
* BSD-2-Clause license (https://opensource.org/licenses/BSD-2-Clause).
*/
#include <catch2/catch.hpp>
#include <vector>
#include <matioCpp/matioCpp.h>
void checkSameDimensio... | 33.240356 | 145 | 0.642207 | dic-iit |
5351daf9baa34096a2b2c0fae221081ea87bfaba | 67,165 | cpp | C++ | third_party/omr/gc/base/standard/PhysicalSubArenaVirtualMemorySemiSpace.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/gc/base/standard/PhysicalSubArenaVirtualMemorySemiSpace.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/gc/base/standard/PhysicalSubArenaVirtualMemorySemiSpace.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 1991, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... | 43.956152 | 190 | 0.760307 | xiacijie |
5351edb474349634d08ce5c41cdcdb8a7809b766 | 2,920 | cpp | C++ | Demo.cpp | liurui39660/SNNDPC | 2e75cd318335731b431eff66a54ea2b0c1ff29b8 | [
"Apache-2.0"
] | 23 | 2020-03-16T02:50:05.000Z | 2022-03-29T00:51:40.000Z | Demo.cpp | liurui39660/SNNDPC | 2e75cd318335731b431eff66a54ea2b0c1ff29b8 | [
"Apache-2.0"
] | 6 | 2020-03-08T07:18:48.000Z | 2022-03-11T03:24:06.000Z | Demo.cpp | liurui39660/SNNDPC | 2e75cd318335731b431eff66a54ea2b0c1ff29b8 | [
"Apache-2.0"
] | 10 | 2020-06-12T06:21:24.000Z | 2021-11-15T11:38:02.000Z | #include <chrono>
#include "SNNDPC.hpp"
using namespace std::chrono;
int main(int argc, char* argv[]) {
// Parameter
// --------------------------------------------------------------------------------
const auto pathData = SOLUTION_DIR"data/S2.tsv";
const int k = 35;
const int n = 5000; // Number of data point... | 32.808989 | 107 | 0.473288 | liurui39660 |
53521fe0098612ae16ecd655a01b05afc3b28d3e | 2,039 | cpp | C++ | tree-distance/main.cpp | svenstaro/challenges | 3434b63ba585799eafac695a36cfc1bfbfb8a89d | [
"MIT"
] | null | null | null | tree-distance/main.cpp | svenstaro/challenges | 3434b63ba585799eafac695a36cfc1bfbfb8a89d | [
"MIT"
] | null | null | null | tree-distance/main.cpp | svenstaro/challenges | 3434b63ba585799eafac695a36cfc1bfbfb8a89d | [
"MIT"
] | null | null | null | #include <iostream>
struct Node {
int value = 0;
Node* left = nullptr;
Node* right = nullptr;
};
int dfs(Node* root, Node* needle, int depth) {
if (root == needle) {
return depth;
}
if (root->left) {
int result = dfs(root->left, needle, depth + 1);
if (result >= 0) {
... | 19.056075 | 87 | 0.470329 | svenstaro |
53533278615ced6d910d02be431d600c1ae9194a | 442 | cpp | C++ | Super Synthesis Engine/Source/Random/Random.cpp | nstearns96/Super-Synthesis-Engine | 64824c50557e64decc9710a5b2aa63cd93712122 | [
"MIT"
] | null | null | null | Super Synthesis Engine/Source/Random/Random.cpp | nstearns96/Super-Synthesis-Engine | 64824c50557e64decc9710a5b2aa63cd93712122 | [
"MIT"
] | null | null | null | Super Synthesis Engine/Source/Random/Random.cpp | nstearns96/Super-Synthesis-Engine | 64824c50557e64decc9710a5b2aa63cd93712122 | [
"MIT"
] | null | null | null | #include "Random/Random.h"
namespace SSE
{
std::default_random_engine Random::randomEngine;
bool Random::init()
{
std::random_device randomDevice;
randomEngine.seed(randomDevice());
return true;
}
i32 Random::randInt(i32 min, i32 max)
{
return std::uniform_int_distribution<i32>{min, max}(randomEngine... | 17.68 | 69 | 0.714932 | nstearns96 |
5357a4fd77bdf26d3b72fb0658c39569f4dab5df | 1,269 | hpp | C++ | src/core/logging/include/cassian/logging/logging.hpp | intel/cassian | 8e9594f053f9b9464066c8002297346580e4aa2a | [
"MIT"
] | 1 | 2021-10-05T14:15:34.000Z | 2021-10-05T14:15:34.000Z | src/core/logging/include/cassian/logging/logging.hpp | intel/cassian | 8e9594f053f9b9464066c8002297346580e4aa2a | [
"MIT"
] | null | null | null | src/core/logging/include/cassian/logging/logging.hpp | intel/cassian | 8e9594f053f9b9464066c8002297346580e4aa2a | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#ifndef CASSIAN_LOGGING_LOGGING_HPP
#define CASSIAN_LOGGING_LOGGING_HPP
#include <iostream>
/**
* Cassian namespace.
*/
namespace cassian {
/**
* Namespace for logging related functions.
*/
namespace logging {
/**
* Class imp... | 14.755814 | 76 | 0.65721 | intel |
5358098b46410ef6901639a6ffec0554473caf6d | 574 | hpp | C++ | include/common/ref.hpp | JYLeeLYJ/libcoio | 2046e3376b9db3e0a8bf19ca5e58c4456b3cd1c2 | [
"MIT"
] | null | null | null | include/common/ref.hpp | JYLeeLYJ/libcoio | 2046e3376b9db3e0a8bf19ca5e58c4456b3cd1c2 | [
"MIT"
] | null | null | null | include/common/ref.hpp | JYLeeLYJ/libcoio | 2046e3376b9db3e0a8bf19ca5e58c4456b3cd1c2 | [
"MIT"
] | null | null | null | #ifndef COIO_REF_HPP
#define COIO_REF_HPP
#include "common/type_concepts.hpp"
#include <memory>
namespace coio {
template <class T>
requires(!concepts::void_type<T>)
class ref {
public:
using type = T;
constexpr ref(T &t) noexcept : m_ptr(std::addressof(t)) {}
ref(const ref &) noexcept = default;
ref &ope... | 19.133333 | 60 | 0.675958 | JYLeeLYJ |
535a470c9e0013760532d076e916d55d10d1314d | 4,796 | cpp | C++ | SI1 - Rogue Game/src/View/View.cpp | JahodaPaul/FIT_CTU | 2d96f18c7787ddfe340a15a36da6eea910225461 | [
"MIT"
] | 17 | 2019-03-09T17:13:40.000Z | 2022-03-05T14:42:05.000Z | SI1 - Rogue Game/src/View/View.cpp | JahodaPaul/FIT_CTU | 2d96f18c7787ddfe340a15a36da6eea910225461 | [
"MIT"
] | 1 | 2018-06-23T15:57:32.000Z | 2018-06-23T15:57:32.000Z | SI1 - Rogue Game/src/View/View.cpp | JahodaPaul/FIT_CTU | 2d96f18c7787ddfe340a15a36da6eea910225461 | [
"MIT"
] | 16 | 2019-04-09T00:10:55.000Z | 2022-02-21T20:28:05.000Z | #include "View/View.hpp"
#include "View/LuaExport.hpp"
namespace RG {
namespace View {
View::View(Controller::GameController *controller, std::pair<int,int> windowSize, const char *windowTitle)
: m_gameControllet(controller),
m_ImguiDemo(false) {
m_soundManage... | 37.46875 | 120 | 0.552752 | JahodaPaul |
535ffa74d7727f0e92b10d9fc08a7ef3f217d737 | 4,299 | cxx | C++ | arrows/qt/applets/pipeline_viewer/MainWindow.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 1 | 2020-10-14T18:22:42.000Z | 2020-10-14T18:22:42.000Z | arrows/qt/applets/pipeline_viewer/MainWindow.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T00:52:41.000Z | 2022-03-11T23:48:06.000Z | arrows/qt/applets/pipeline_viewer/MainWindow.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +30
* Copyright 2019 by Kitware, 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... | 27.735484 | 79 | 0.593859 | neal-siekierski |
536431c4b708ead0c57095f5141f50d5777ba25a | 371 | cpp | C++ | luogu/p1060.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p1060.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p1060.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n, m; cin >> n >> m;
vector<int> v(m), p(m), f(n+1);
for(int i = 0; i < m; i++) cin >> v[i] >> p[i];
for(int i = 0; i < m; i++)
{
for(int j = n; j >= v[i]; j--)
{
f[j] = max(f[j], f[j-v[i]]+v[i]*p[i]);
... | 20.611111 | 51 | 0.374663 | freedomDR |
536487bcf37f7d72dead2462f400c0b270a2b3be | 151 | cpp | C++ | test/src/mock/animator.cpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 6 | 2017-07-15T10:16:20.000Z | 2021-06-14T10:02:37.000Z | test/src/mock/animator.cpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 243 | 2017-05-01T19:27:07.000Z | 2021-09-01T09:32:49.000Z | test/src/mock/animator.cpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 2 | 2019-07-16T00:29:43.000Z | 2020-09-19T09:49:00.000Z | #include "mock/animator.hpp"
std::shared_ptr<mock_animator> make_mock_animator()
{
return std::make_shared<testing::NiceMock<mock_animator>>();
}
| 21.571429 | 64 | 0.754967 | KazDragon |
53655409288d69a3de4465b56c22b9e478962134 | 461 | cpp | C++ | Radical.cpp | Kenneth11741149/Lab-7KennethYAndres | 9437ed932217e77bfe7dec0bb7089f050b660a73 | [
"MIT"
] | null | null | null | Radical.cpp | Kenneth11741149/Lab-7KennethYAndres | 9437ed932217e77bfe7dec0bb7089f050b660a73 | [
"MIT"
] | null | null | null | Radical.cpp | Kenneth11741149/Lab-7KennethYAndres | 9437ed932217e77bfe7dec0bb7089f050b660a73 | [
"MIT"
] | null | null | null | #include "Radical.h"
Radical::Radical():Real(){
valor = 0;
coeficiente = 0;
radicando = 0;
indice = 0;
}
Radical::Radical(double pcoeficiente,double pindice,double pradicando):Real(){
coeficiente = pcoeficiente;
indice = pindice;
radicando = pradicando;
valor = coeficiente * pow(radican... | 23.05 | 92 | 0.659436 | Kenneth11741149 |
5365e36475358434d0626764949a3e4e68227c3b | 745 | cpp | C++ | BOJ_CPP/8273.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/8273.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/8273.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
typedef long long ll;
int main() {
fastio;
ll n, cnt = 0;
cin >> n;
vector<ll> v(n);
for (int i = 0, a, b; i < n && cin >> a >> b; v[i++] = a + b);
for (int i = 0, j = 0; i < n; i = j... | 25.689655 | 66 | 0.358389 | tnsgh9603 |
53685dc4fb35e4d407b0a4f0627ee8a01eda8f1c | 1,467 | hpp | C++ | sources/Notebook.hpp | itamaralmog/notebook-b | a511e2eb06c26cad5c684bd58ddf47c95eb004f0 | [
"MIT"
] | null | null | null | sources/Notebook.hpp | itamaralmog/notebook-b | a511e2eb06c26cad5c684bd58ddf47c95eb004f0 | [
"MIT"
] | null | null | null | sources/Notebook.hpp | itamaralmog/notebook-b | a511e2eb06c26cad5c684bd58ddf47c95eb004f0 | [
"MIT"
] | null | null | null |
#ifndef NOTEBOOK
#define NOTEBOOK
#include <string>
#include "Direction.hpp"
#include <vector>
const int NUM_OF_COLUMNS = 100; // should be 100
const char EMPTY_PLACE = '_';
const char ERASE_PLACE = '~';
const int DEFULT_LENGTH = 10;
const int START_RANGE_OF_CHARS = 32;
const int END_RANGE_OF_CHARS = 126;
const int N... | 34.116279 | 98 | 0.596455 | itamaralmog |
5368be57c66547fd5a9d2c04ce5277de04482b74 | 3,280 | hh | C++ | include/fabrique/names.hh | fabriquer/fabrique | d141ef698ddbeddb5b800f7f906d93751a06f809 | [
"BSD-2-Clause"
] | 2 | 2018-11-12T22:51:37.000Z | 2019-03-13T12:46:03.000Z | include/fabrique/names.hh | fabriquer/fabrique | d141ef698ddbeddb5b800f7f906d93751a06f809 | [
"BSD-2-Clause"
] | 23 | 2015-03-06T16:14:49.000Z | 2019-04-04T18:08:52.000Z | include/fabrique/names.hh | fabriquer/fabrique | d141ef698ddbeddb5b800f7f906d93751a06f809 | [
"BSD-2-Clause"
] | null | null | null | //! @file names.hh Names defined or reserved by the Fabrique language
/*
* Copyright (c) 2018-2019 Jonathan Anderson
* All rights reserved.
*
* This software was developed at Memorial University of Newfoundland
* under the NSERC Discovery program (RGPIN-2015-06048).
*
* Redistribution and use in source and b... | 36.853933 | 77 | 0.729573 | fabriquer |
536982251a4430219d56d4e5ad9db862d02d8313 | 755 | hpp | C++ | StickWatch/src/ArduinoJson_6.2.0-beta/ArduinoJson/Strings/StringTypes.hpp | stahifpv/StickWatch | b9f2b3824e62b4e2366859559dbb19a531560758 | [
"Apache-2.0"
] | 83 | 2019-01-24T01:32:21.000Z | 2022-02-20T06:54:43.000Z | src/ArduinoJson_6.2.0-beta/ArduinoJson/Strings/StringTypes.hpp | sysdl132/m5stack-stickwatch | 968087b9f1b06e64e45699b0f4ac22ffb3e6f2a9 | [
"Apache-2.0"
] | 5 | 2019-02-18T12:19:31.000Z | 2020-04-26T01:37:47.000Z | src/ArduinoJson_6.2.0-beta/ArduinoJson/Strings/StringTypes.hpp | sysdl132/m5stack-stickwatch | 968087b9f1b06e64e45699b0f4ac22ffb3e6f2a9 | [
"Apache-2.0"
] | 27 | 2019-01-26T14:12:14.000Z | 2022-02-28T14:38:14.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
#pragma once
#include "../Polyfills/type_traits.hpp"
namespace ArduinoJson {
namespace Internals {
template <typename>
struct IsString : false_type {};
template <typename T>
struct IsString<const T> : IsString<T> {};
template <t... | 20.405405 | 42 | 0.776159 | stahifpv |