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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3f3cacceae634e4bbfa47ce68d09062fc0233bc | 335 | hpp | C++ | Framework/Interface/IRuntimeModule.hpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 1,217 | 2017-08-18T02:41:11.000Z | 2022-03-30T01:48:46.000Z | Framework/Interface/IRuntimeModule.hpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 16 | 2017-09-05T15:04:37.000Z | 2021-09-09T13:59:38.000Z | Framework/Interface/IRuntimeModule.hpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 285 | 2017-08-18T04:53:55.000Z | 2022-03-30T00:02:15.000Z | #pragma once
#include <config.h>
#include "Interface.hpp"
namespace My {
_Interface_ IRuntimeModule {
public:
virtual ~IRuntimeModule() = default;
virtual int Initialize() = 0;
virtual void Finalize() = 0;
virtual void Tick() = 0;
#ifdef DEBUG
virtual void DrawDebugInfo(){};
#endif
};
} /... | 14.565217 | 40 | 0.656716 | lishaojiang |
f3f465d76d7902266179127664e4da37158f3a0c | 4,644 | hpp | C++ | include/Microsoft/Win32/RegistryHive.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Microsoft/Win32/RegistryHive.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Microsoft/Win32/RegistryHive.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Enum
#include "System/Enum.hpp"
// Completed includes
// Type... | 55.951807 | 100 | 0.73708 | darknight1050 |
f3f57615822349fa06dd0f7d300c9348a534d020 | 17,632 | cc | C++ | src/media/drivers/amlogic_encoder/device_ctx.cc | sysidos/fuchsia | 0c00fd3c78a9c0111af4689f1e038b3926c4dc9b | [
"BSD-3-Clause"
] | null | null | null | src/media/drivers/amlogic_encoder/device_ctx.cc | sysidos/fuchsia | 0c00fd3c78a9c0111af4689f1e038b3926c4dc9b | [
"BSD-3-Clause"
] | null | null | null | src/media/drivers/amlogic_encoder/device_ctx.cc | sysidos/fuchsia | 0c00fd3c78a9c0111af4689f1e038b3926c4dc9b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/media/drivers/amlogic_encoder/device_ctx.h"
#include <fuchsia/mediacodec/cpp/fidl.h>
#include <lib/async/cpp/task.h>
#include <zircon/assert... | 31.097002 | 99 | 0.666969 | sysidos |
f3fd0d858a3a959f79d7c80eb16251f0e4c9f0ab | 628 | hpp | C++ | tools/map_maker/map_data/include/ad/map/maker/map_data/TurnDirection.hpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 61 | 2019-12-19T20:57:24.000Z | 2022-03-29T15:20:51.000Z | tools/map_maker/map_data/include/ad/map/maker/map_data/TurnDirection.hpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 54 | 2020-04-05T05:32:47.000Z | 2022-03-15T18:42:33.000Z | tools/map_maker/map_data/include/ad/map/maker/map_data/TurnDirection.hpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 31 | 2019-12-20T07:37:39.000Z | 2022-03-16T13:06:16.000Z | // ----------------- BEGIN LICENSE BLOCK ---------------------------------
//
// Copyright (C) 2018-2019 Intel Corporation
//
// SPDX-License-Identifier: MIT
//
// ----------------- END LICENSE BLOCK -----------------------------------
#pragma once
#include <vector>
namespace ad {
namespace map {
namespace maker {
n... | 16.526316 | 74 | 0.58758 | seowwj |
f3fe4614e628a5cef6aca70fafc9956877f9e017 | 374 | cpp | C++ | dmoj/vm7wc/16#5silver-jayden-eats-chocolate.cpp | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | dmoj/vm7wc/16#5silver-jayden-eats-chocolate.cpp | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | dmoj/vm7wc/16#5silver-jayden-eats-chocolate.cpp | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
int dp[200001];
int main()
{
int n, x, y, z;
scanf("%d%d%d%d", &n, &x, &y, &z);
for (int i = 0; i <= n; i++) {
if (dp[i] != 0 || i == 0) {
dp[i + x] = max(dp[i+x], dp[i]+1);
dp[i + y] = max(dp[i + y], dp[i] + 1);
dp[i + z] = max(dp[i + z], dp[i... | 19.684211 | 41 | 0.44385 | ruar18 |
6d05b23c380e1c134090e3288aaef9b1d0b824cd | 29,313 | cpp | C++ | source/d3d9/d3d9_runtime.cpp | 04348/reshade_custom | 27ffee5852b436d37697c2fd0ee44cdf7423599a | [
"BSD-3-Clause"
] | 14 | 2018-04-09T15:48:01.000Z | 2021-11-17T11:24:31.000Z | source/d3d9/d3d9_runtime.cpp | 04348/reshade_custom | 27ffee5852b436d37697c2fd0ee44cdf7423599a | [
"BSD-3-Clause"
] | null | null | null | source/d3d9/d3d9_runtime.cpp | 04348/reshade_custom | 27ffee5852b436d37697c2fd0ee44cdf7423599a | [
"BSD-3-Clause"
] | 4 | 2018-04-10T10:30:28.000Z | 2019-12-15T21:01:58.000Z | /**
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "log.hpp"
#include "d3d9_runtime.hpp"
#include "d3d9_effect_compiler.hpp"
#include "effect_lexer.hpp"
#include "input.hpp"
#include "dllmodule.hpp"
#include <imgui.h>
#include <algorithm>
... | 28.131478 | 233 | 0.70235 | 04348 |
6d069daec92ca9fb333c7a4966bc216d66eb5c2e | 6,999 | hpp | C++ | src/gfx-pbr/Gpu/Light.hpp | murataka/two | f6f9835de844a38687e11f649ff97c3fb4146bbe | [
"Zlib"
] | 578 | 2019-05-04T09:09:42.000Z | 2022-03-27T23:02:21.000Z | src/gfx-pbr/Gpu/Light.hpp | murataka/two | f6f9835de844a38687e11f649ff97c3fb4146bbe | [
"Zlib"
] | 14 | 2019-05-11T14:34:56.000Z | 2021-02-02T07:06:46.000Z | src/gfx-pbr/Gpu/Light.hpp | murataka/two | f6f9835de844a38687e11f649ff97c3fb4146bbe | [
"Zlib"
] | 42 | 2019-05-11T16:04:19.000Z | 2022-01-24T02:21:43.000Z | // Copyright (c) 2019 Hugo Amiard hugo.amiard@laposte.net
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#pragma once
#ifndef TWO_MODULES
#include <math/Vec.hpp>
#include <gfx/Light.h>... | 39.100559 | 159 | 0.719103 | murataka |
6d081947061bcc70e8f64968d845baf7aa902104 | 4,236 | cpp | C++ | Core/src/Converters.cpp | gsage/engine | d1492700d60fb9142c83a861ae091bdd3fc3ae08 | [
"MIT"
] | 14 | 2016-12-22T15:31:36.000Z | 2022-02-28T11:48:27.000Z | Core/src/Converters.cpp | gsage/engine | d1492700d60fb9142c83a861ae091bdd3fc3ae08 | [
"MIT"
] | 3 | 2016-09-10T09:54:17.000Z | 2018-03-27T11:42:28.000Z | Core/src/Converters.cpp | gsage/engine | d1492700d60fb9142c83a861ae091bdd3fc3ae08 | [
"MIT"
] | 4 | 2016-08-04T23:28:22.000Z | 2021-06-01T06:33:01.000Z | /*
-----------------------------------------------------------------------------
This file is a part of Gsage engine
Copyright (c) 2014-2017 Artem Chernyshev
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 th... | 30.695652 | 89 | 0.562559 | gsage |
6d0d1bf6742f0390ae71ded22e12da93dccd8ba5 | 2,389 | cpp | C++ | thirdparty/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // SARU : Tag fastjson
// SARU : CxxLibs -L.. -lfastjson
#include "saru_cxx.h"
#include "fastjson/fastjson.h"
#include "fastjson/dom.h"
class TestFixture
{
public:
struct ErrorGetter
{
static void on_error( void * in_this, const fastjson::ErrorContext & ec )
{
static_cast<ErrorGetter*>(... | 26.842697 | 116 | 0.641691 | liftchampion |
6d0f0a3de0889de01e0f7e29deb927e13a8689fa | 5,377 | cpp | C++ | velox/exec/benchmarks/VectorHasherBenchmark.cpp | syscl/velox-1 | c14f5714ae83677ab5c249b2d78af1fa45e150b4 | [
"Apache-2.0"
] | 1 | 2021-11-08T06:00:44.000Z | 2021-11-08T06:00:44.000Z | velox/exec/benchmarks/VectorHasherBenchmark.cpp | syscl/velox-1 | c14f5714ae83677ab5c249b2d78af1fa45e150b4 | [
"Apache-2.0"
] | null | null | null | velox/exec/benchmarks/VectorHasherBenchmark.cpp | syscl/velox-1 | c14f5714ae83677ab5c249b2d78af1fa45e150b4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. 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 applic... | 29.382514 | 76 | 0.702994 | syscl |
6d0f73e72a8e82e0dad9233e37abc118841eae82 | 108 | cpp | C++ | src/universe/predictor/OrbitPredictor.cpp | Ghimli/new-ospgl | 31bd84e52d954683671211ff16ce8702bdb87312 | [
"MIT",
"BSD-3-Clause"
] | 22 | 2019-11-15T22:07:17.000Z | 2022-01-13T16:40:01.000Z | src/universe/predictor/OrbitPredictor.cpp | Ghimli/new-ospgl | 31bd84e52d954683671211ff16ce8702bdb87312 | [
"MIT",
"BSD-3-Clause"
] | 25 | 2020-03-03T00:54:21.000Z | 2021-12-30T16:24:22.000Z | src/universe/predictor/OrbitPredictor.cpp | Ghimli/new-ospgl | 31bd84e52d954683671211ff16ce8702bdb87312 | [
"MIT",
"BSD-3-Clause"
] | 3 | 2020-03-04T00:36:13.000Z | 2020-06-01T20:53:51.000Z | #include "OrbitPredictor.h"
OrbitPredictor::OrbitPredictor()
{
}
OrbitPredictor::~OrbitPredictor()
{
}
| 8.307692 | 33 | 0.722222 | Ghimli |
6d1259a08ae861746bdc92426da7fb537a63b204 | 2,285 | cpp | C++ | appendix/cg_event_set_flags/main.cpp | rolandwalker/Karabiner-Elements | 3a537d3dd7a47100baf95bb3477e897a6e59bee8 | [
"Unlicense"
] | null | null | null | appendix/cg_event_set_flags/main.cpp | rolandwalker/Karabiner-Elements | 3a537d3dd7a47100baf95bb3477e897a6e59bee8 | [
"Unlicense"
] | null | null | null | appendix/cg_event_set_flags/main.cpp | rolandwalker/Karabiner-Elements | 3a537d3dd7a47100baf95bb3477e897a6e59bee8 | [
"Unlicense"
] | null | null | null | #include "thread_utility.hpp"
#include <CoreGraphics/CoreGraphics.h>
#include <iostream>
namespace {
CFMachPortRef _Nullable event_tap;
CGEventRef _Nullable callback(CGEventTapProxy _Nullable proxy, CGEventType type, CGEventRef _Nullable event, void* _Nonnull refcon) {
if (type == kCGEventTapDisabledByTimeout) {
... | 33.115942 | 133 | 0.645514 | rolandwalker |
6d13d9bd49b54622d14b35a5e109d0d8bcfccf47 | 331 | hpp | C++ | include/structures/gameoverevent.hpp | murilobnt/vulnus | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 13 | 2017-05-23T05:38:07.000Z | 2022-03-26T16:08:47.000Z | include/structures/gameoverevent.hpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | null | null | null | include/structures/gameoverevent.hpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 1 | 2017-08-12T22:25:17.000Z | 2017-08-12T22:25:17.000Z | #ifndef _GAMEOVEREVENT_HPP_
#define _GAMEOVEREVENT_HPP_
#include <SFML/Graphics.hpp>
#include "generics/event.hpp"
#include "entities/gamecomponents/player.hpp"
class GameOverEvent : public Event {
private:
int yRule;
Player& player;
public:
GameOverEvent(int yRule, Player& player);
bool isConditionSatisfied();... | 17.421053 | 45 | 0.776435 | murilobnt |
6d14059ee303c32bedaa2e0e1127b17702d98893 | 1,556 | cc | C++ | agent/php7/hook/openrasp_putenv.cc | CHEATBEATER/openrasp | 199cbc13e9f9aadbd95560ccc4c6ea27bde715f4 | [
"Apache-2.0"
] | 1 | 2020-12-18T01:04:20.000Z | 2020-12-18T01:04:20.000Z | agent/php7/hook/openrasp_putenv.cc | tjuliuyin/openrasp | e6e43179bbad1ab129e59ca88879409d58de7648 | [
"Apache-2.0"
] | null | null | null | agent/php7/hook/openrasp_putenv.cc | tjuliuyin/openrasp | e6e43179bbad1ab129e59ca88879409d58de7648 | [
"Apache-2.0"
] | 1 | 2020-11-12T03:46:38.000Z | 2020-11-12T03:46:38.000Z | /*
* Copyright 2017-2018 Baidu Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 36.186047 | 99 | 0.708226 | CHEATBEATER |
6d170119c9f621d1884c75080664fd875a494fc0 | 1,340 | cpp | C++ | midiplayer.cpp | shikolad/PianoPractice | 9d705f2064dcc5499f2a7feb1975164523912249 | [
"MIT"
] | null | null | null | midiplayer.cpp | shikolad/PianoPractice | 9d705f2064dcc5499f2a7feb1975164523912249 | [
"MIT"
] | null | null | null | midiplayer.cpp | shikolad/PianoPractice | 9d705f2064dcc5499f2a7feb1975164523912249 | [
"MIT"
] | null | null | null | #include "midiplayer.h"
#include <QList>
#include "QDebug"
MidiPlayer::MidiPlayer(QObject *parent) : QObject(parent)
{
timer = new QTimer(this);
connect (timer,SIGNAL(timeout()),
this, SLOT(midiEvent()));
song = NULL;
currentTime = 0;
}
MidiPlayer::~MidiPlayer()
{
}
void MidiPlayer::ope... | 21.967213 | 66 | 0.598507 | shikolad |
6d189c8de6f39cb84eb3a6c15e9368f4b65e90e3 | 5,701 | cpp | C++ | src/gui/bookmark.cpp | nullishzero/PDFEdit | 4eae798e7dda813889f0b245f98b52c8eb158118 | [
"CECILL-B"
] | 63 | 2016-01-08T14:48:19.000Z | 2022-03-23T11:21:28.000Z | src/gui/bookmark.cpp | nullishzero/PDFEdit | 4eae798e7dda813889f0b245f98b52c8eb158118 | [
"CECILL-B"
] | 2 | 2017-05-12T02:57:20.000Z | 2020-08-15T13:16:00.000Z | src/gui/bookmark.cpp | nullishzero/PDFEdit | 4eae798e7dda813889f0b245f98b52c8eb158118 | [
"CECILL-B"
] | 27 | 2015-01-21T01:33:56.000Z | 2022-03-22T19:42:45.000Z | #include "bookmark.h"
#include <kernel/pdfoperatorsiter.h>
//#include <kernel/pdfedit-core-dev.h>
//#include <kernel/indiref.h>
using namespace pdfobjects;
int Bookmark::getDest()const
{
return _page;
}
void Bookmark::setSubsection( pdfobjects::IndiRef ref )
{
_ref = ref;
_loaded = false;
setChi... | 23.174797 | 129 | 0.646378 | nullishzero |
6d1a25740358449102cbad29fb5c55e9a5e536c2 | 743 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/CEvaluatorVectorRandomUniform.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/CEvaluatorVectorRandomUniform.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/CEvaluatorVectorRandomUniform.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/IEvaluatorVector.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector4.hpp>
namespace RED4ext
{
struct CEvaluatorVectorRandomUniform : IEvaluatorV... | 26.535714 | 72 | 0.7214 | jackhumbert |
6d1a6a6fa767900f6a8afbab76046e3fa1cdfb9b | 1,978 | cpp | C++ | demoProject/pwm/hello.cpp | mean00/Arduino_gd32_freeRTOS | de1828faaa5df79ee244c93ad45cf1dd63986f9f | [
"MIT"
] | 4 | 2021-09-06T14:38:23.000Z | 2022-03-13T01:15:48.000Z | demoProject/pwm/hello.cpp | mean00/Arduino_gd32_freeRTOS | de1828faaa5df79ee244c93ad45cf1dd63986f9f | [
"MIT"
] | 1 | 2021-10-14T09:38:56.000Z | 2021-10-14T10:11:21.000Z | demoProject/pwm/hello.cpp | mean00/lnArduino | de1828faaa5df79ee244c93ad45cf1dd63986f9f | [
"MIT"
] | null | null | null | #include "lnArduino.h"
#include "lnTimer.h"
#define LED LN_SYSTEM_LED
#define PWM_PIN PA7
void setup()
{
pinMode(LED,OUTPUT);
}
int xduration=5;
/**
*
*/
void pulse(lnTimer *t, int duration)
{
Logger("duration=%d\n",duration);
lnPinMode(PWM_PIN,lnALTERNATE_PP);
t->singleShot(d... | 16.762712 | 45 | 0.530839 | mean00 |
6d1d84cdd031fbf396c8fddf4fa4a0fd7394def4 | 711 | cpp | C++ | src_test/test_lexer_identifier.cpp | cdsama/cdscript | 8527f15628a37e1f53ae3b2350e897700469ef6e | [
"MIT"
] | null | null | null | src_test/test_lexer_identifier.cpp | cdsama/cdscript | 8527f15628a37e1f53ae3b2350e897700469ef6e | [
"MIT"
] | null | null | null | src_test/test_lexer_identifier.cpp | cdsama/cdscript | 8527f15628a37e1f53ae3b2350e897700469ef6e | [
"MIT"
] | null | null | null | // Copyright (c) 2019 chendi
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "catch2_ext.hpp"
#include "lexer.hpp"
using namespace cd;
using namespace script;
TEST_CASE("Lexer-Identifier", "[core][lexer][newline]")
{
{
std::istringstream code("abc");
... | 28.44 | 117 | 0.630098 | cdsama |
6d1f5ac011e03f8588ce2babaf532a94bc34c363 | 2,375 | cpp | C++ | ParamInfo.cpp | lmsp/ExtremeUltimate | 9f3f7619cc15c4bd2127411ff64c5b385f6c09ae | [
"BSD-2-Clause"
] | null | null | null | ParamInfo.cpp | lmsp/ExtremeUltimate | 9f3f7619cc15c4bd2127411ff64c5b385f6c09ae | [
"BSD-2-Clause"
] | null | null | null | ParamInfo.cpp | lmsp/ExtremeUltimate | 9f3f7619cc15c4bd2127411ff64c5b385f6c09ae | [
"BSD-2-Clause"
] | null | null | null | #include "ide.h"
void AssistEditor::SyncParamInfo()
{
String qtf;
Ctrl *p = GetTopCtrl();
int mpar = INT_MAX;
int pos = 0;
if(p && p->HasFocusDeep()) {
for(int q = 0; q < PARAMN; q++) {
ParamInfo& m = param[q];
int i = GetCursorLine();
if(m.line >= 0 && m.line < GetLineCount() && i >= m.line && i < m.l... | 23.284314 | 81 | 0.536421 | lmsp |
6d2146a6b8aed95911ac7f1063cbfc39ed815f28 | 3,817 | hpp | C++ | headers/enduro2d/utils/streams.hpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 92 | 2018-08-07T14:45:33.000Z | 2021-11-14T20:37:23.000Z | headers/enduro2d/utils/streams.hpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 43 | 2018-09-30T20:48:03.000Z | 2020-04-20T20:05:26.000Z | headers/enduro2d/utils/streams.hpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 13 | 2018-08-08T13:45:28.000Z | 2020-10-02T11:55:58.000Z | /*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... | 30.055118 | 80 | 0.627456 | NechukhrinN |
6d218e70750b7c5984b9423fddc31edb32fe6c34 | 799 | cpp | C++ | CodeForces/Rounds/698/NezzarAndLuckyNumber.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | CodeForces/Rounds/698/NezzarAndLuckyNumber.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | CodeForces/Rounds/698/NezzarAndLuckyNumber.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | #include <iostream>
template<typename T>inline void read(T &a){char c=getchar();T x=0,f=1;while(!isdigit(c)){if(c=='-')f=-1;c=getchar();}
while(isdigit(c)){x=(x<<1)+(x<<3)+c-'0';c=getchar();}a=f*x;}
using namespace::std;
int main() {
int num;
cin >> num;
while (num--) {
int times, d, q;
read(times); re... | 19.02381 | 117 | 0.44806 | a4org |
6d245792e33ac0249116fd91b1a9684c8ee5d314 | 8,374 | cpp | C++ | Source/ui_qt/bootablelistdialog.cpp | 6lackmag3/Play- | 6e399789906998e7be0699292f3835e433460d62 | [
"BSD-2-Clause"
] | null | null | null | Source/ui_qt/bootablelistdialog.cpp | 6lackmag3/Play- | 6e399789906998e7be0699292f3835e433460d62 | [
"BSD-2-Clause"
] | null | null | null | Source/ui_qt/bootablelistdialog.cpp | 6lackmag3/Play- | 6e399789906998e7be0699292f3835e433460d62 | [
"BSD-2-Clause"
] | null | null | null | #include "bootablelistdialog.h"
#include "ui_bootablelistdialog.h"
#include <QAction>
#include <QFileDialog>
#include <QGridLayout>
#include <QInputDialog>
#include <QLabel>
#include <QMessageBox>
#include <QPixmap>
#include <QPixmapCache>
#include <iostream>
#include <thread>
#include "AppConfig.h"
#include "CoverUt... | 26.16875 | 123 | 0.711846 | 6lackmag3 |
6d25891356a42a183fc63d5c4b800c8eebb72f4f | 817 | cpp | C++ | Examen_de_Entrada/4.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | Examen_de_Entrada/4.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | Examen_de_Entrada/4.cpp | ElizabethYasmin/PC | e3cd03d7f80fae366df1181d5b87514ea8ee597c | [
"MIT"
] | null | null | null | #include<iostream>
#include<string.h>
#include<vector>
using namespace std;
int main(){
vector <int> twoStacksSort(vector<int> numbers){
int size=numbers.size();
stack<int>s;
stack<int>tmp;
stack<int>res;
for(int i=size-1;i>=0;i--){
s.push(numbers[i]);
}
while(!s.empty... | 20.425 | 50 | 0.438188 | ElizabethYasmin |
6d27c725e36845f1458f35e3cbb054574729fd6b | 794 | cpp | C++ | Week3/selectionSort.cpp | tanzeyl/DAA | ba3354926e0869258175c736fc2535a4f0ae5a6f | [
"MIT"
] | null | null | null | Week3/selectionSort.cpp | tanzeyl/DAA | ba3354926e0869258175c736fc2535a4f0ae5a6f | [
"MIT"
] | null | null | null | Week3/selectionSort.cpp | tanzeyl/DAA | ba3354926e0869258175c736fc2535a4f0ae5a6f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void selectionSort(int [], int);
int main()
{
int t, n, i;
cin >> t;
while(t)
{
cin >> n;
int a[n];
for (i=0; i<n; i++)
cin >> a[i];
selectionSort(a, n);
t--;
}
}
void selectionSort(int a[], int n)
{
... | 17.644444 | 51 | 0.343829 | tanzeyl |
6d2bfb20f248e7ad184c7f49c854819706a425d5 | 2,733 | cpp | C++ | components/checkbox/xitemcheckbox.cpp | XcluDev/Xclu | 1a08229ba7581e74e58570cda8c92eb40ca275c3 | [
"MIT"
] | 2 | 2020-07-17T18:02:55.000Z | 2020-10-25T10:59:55.000Z | components/checkbox/xitemcheckbox.cpp | XcluDev/Xclu | 1a08229ba7581e74e58570cda8c92eb40ca275c3 | [
"MIT"
] | 7 | 2021-02-24T05:37:58.000Z | 2022-03-20T04:00:01.000Z | components/checkbox/xitemcheckbox.cpp | XcluDev/Xclu | 1a08229ba7581e74e58570cda8c92eb40ca275c3 | [
"MIT"
] | 3 | 2020-07-17T18:03:04.000Z | 2021-07-02T06:17:13.000Z | #include "xitemcheckbox.h"
#include "xguicheckbox.h"
#include "incl_cpp.h"
#include "module.h"
#include "registrarxitem.h"
REGISTER_XITEM(XItemCheckbox, checkbox)
//---------------------------------------------------------------------
//in checkbox Active active=0
// //Length of the object. описание
//in ch... | 35.038462 | 112 | 0.57007 | XcluDev |
6d2c9db27822c79d2a97a7fcc478707d64ee5d69 | 3,722 | cpp | C++ | snippets/cpp/VS_Snippets_Remoting/HttpWebRequest_Connection/CPP/httpwebrequest_connection.cpp | cston/dotnet-api-docs | 17c58dc9d579eba45f6f20bb08ad5ff0a63dec47 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2022-03-09T02:25:54.000Z | 2022-03-09T02:25:54.000Z | snippets/cpp/VS_Snippets_Remoting/HttpWebRequest_Connection/CPP/httpwebrequest_connection.cpp | cston/dotnet-api-docs | 17c58dc9d579eba45f6f20bb08ad5ff0a63dec47 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | snippets/cpp/VS_Snippets_Remoting/HttpWebRequest_Connection/CPP/httpwebrequest_connection.cpp | cston/dotnet-api-docs | 17c58dc9d579eba45f6f20bb08ad5ff0a63dec47 | [
"CC-BY-4.0",
"MIT"
] | null | null | null |
// System::Net::HttpWebRequest::KeepAlive System::Net::HttpWebRequest::Connection
/**
* This program demonstrates Connection and KeepAlive properties of the
* HttpWebRequest Class.
* Two new HttpWebRequest objects are created. The KeepAlive property of one of
* the objects is set to false that in turn sets the value ... | 39.178947 | 142 | 0.665234 | cston |
6d343272ac4a7422242678957a1404c4a852350c | 24,123 | cpp | C++ | tests/DepthTests/FunctionalTest/depth_ft.cpp | JonathanESantos/Azure-Kinect-Sensor-SDK | 7156c1a9a98b17242d1ad7ad58fa5eafc2f8adae | [
"MIT"
] | null | null | null | tests/DepthTests/FunctionalTest/depth_ft.cpp | JonathanESantos/Azure-Kinect-Sensor-SDK | 7156c1a9a98b17242d1ad7ad58fa5eafc2f8adae | [
"MIT"
] | null | null | null | tests/DepthTests/FunctionalTest/depth_ft.cpp | JonathanESantos/Azure-Kinect-Sensor-SDK | 7156c1a9a98b17242d1ad7ad58fa5eafc2f8adae | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//************************ Includes *****************************
#include <k4a/k4a.h>
#include <k4ainternal/modes.h>
#include <gtest/gtest.h>
#include <utcommon.h>
#include <azure_c_shared_utility/tickcounter.h>
//*******... | 35.370968 | 120 | 0.685611 | JonathanESantos |
6d37d248ec62d65cb3111e8541688514df68cf48 | 53,935 | cpp | C++ | test/unittest/rtps/security/SecurityHandshakeProcessTests.cpp | Jerry-2005/Fast-DDS | 60aa927778fc028c60970a08309dc3510455a166 | [
"Apache-2.0"
] | null | null | null | test/unittest/rtps/security/SecurityHandshakeProcessTests.cpp | Jerry-2005/Fast-DDS | 60aa927778fc028c60970a08309dc3510455a166 | [
"Apache-2.0"
] | null | null | null | test/unittest/rtps/security/SecurityHandshakeProcessTests.cpp | Jerry-2005/Fast-DDS | 60aa927778fc028c60970a08309dc3510455a166 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 45.707627 | 133 | 0.765421 | Jerry-2005 |
6d3e199bc3346706b4d6bfcda5c3b554bfa8adb8 | 760 | hpp | C++ | include/ihex-parser/IntelHexFile.hpp | sivertism/ihex-parser | 08d68d1063d87b6c53b36a92e2636359af392cfe | [
"MIT"
] | null | null | null | include/ihex-parser/IntelHexFile.hpp | sivertism/ihex-parser | 08d68d1063d87b6c53b36a92e2636359af392cfe | [
"MIT"
] | null | null | null | include/ihex-parser/IntelHexFile.hpp | sivertism/ihex-parser | 08d68d1063d87b6c53b36a92e2636359af392cfe | [
"MIT"
] | null | null | null | /*
* IntelHexFile.h
* Created by Brent Strysko
*
* A IntelHexFile represents the
* *.hex file provided to the library.
*/
#ifndef _INTEL_HEX_PARSER_INTEL_HEX_FILE_H_
#define _INTEL_HEX_PARSER_INTEL_HEX_FILE_H_
#include <stdint.h>
#include <fstream>
#include <map>
#include <sstream>
#include <string>
#include <v... | 20 | 77 | 0.751316 | sivertism |
6d3ef148bc6f14d573200c78f7d7237a1671f2b4 | 21,391 | cpp | C++ | Sources/Core/Vulkan/Material.cpp | alelievr/LWGEngine | 655ed35350206401e20bc2fe6063574e1ede603f | [
"MIT"
] | 3 | 2019-09-05T12:49:14.000Z | 2020-06-08T00:13:49.000Z | Sources/Core/Vulkan/Material.cpp | alelievr/LWGEngine | 655ed35350206401e20bc2fe6063574e1ede603f | [
"MIT"
] | 4 | 2018-12-16T15:39:19.000Z | 2019-03-23T20:29:26.000Z | Sources/Core/Vulkan/Material.cpp | alelievr/LWGEngine | 655ed35350206401e20bc2fe6063574e1ede603f | [
"MIT"
] | 2 | 2020-06-08T00:13:55.000Z | 2021-12-12T10:10:20.000Z | #include "Material.hpp"
#include <fstream>
#include <array>
#include GLM_INCLUDE
#include GLM_INCLUDE_MATRIX_TRANSFORM
#include "Core/Textures/Texture2DArray.hpp"
#include "Core/Rendering/RenderPipeline.hpp"
#include "Core/Mesh.hpp"
#include "Core/Vulkan/MaterialStates.hpp"
#include "Core/Shaders/BuiltinShaders.hpp"... | 32.707951 | 182 | 0.771212 | alelievr |
6d41a76dfdc7f5d5720b74880441a4af2cba07e7 | 307 | cc | C++ | SFND_Kalman_Filter/UKF_Prep/ukf_augmentation_predict/main.cc | KU-AIRS-SPARK/Udacity_Sensor_Fusion_Nanodegree | 2c6d26bee670abe2c63034d26556f99f6d77925b | [
"MIT"
] | 18 | 2020-11-12T07:13:57.000Z | 2022-03-12T18:42:13.000Z | SFND_Kalman_Filter/UKF_Prep/ukf_augmentation_predict/main.cc | KU-AIRS-SPARK/Udacity_Sensor_Fusion_Nanodegree | 2c6d26bee670abe2c63034d26556f99f6d77925b | [
"MIT"
] | null | null | null | SFND_Kalman_Filter/UKF_Prep/ukf_augmentation_predict/main.cc | KU-AIRS-SPARK/Udacity_Sensor_Fusion_Nanodegree | 2c6d26bee670abe2c63034d26556f99f6d77925b | [
"MIT"
] | 16 | 2020-09-29T05:27:32.000Z | 2021-11-02T18:26:53.000Z | #include <Eigen/Dense>
#include "ukf.h"
using Eigen::MatrixXd;
int main() {
// Create a UKF instance
UKF ukf;
/**
* Programming assignment calls
*/
MatrixXd Xsig_pred = MatrixXd(5, 15); // Swapped dimensions - error from original code
ukf.SigmaPointPrediction(&Xsig_pred);
return 0;
} | 17.055556 | 88 | 0.677524 | KU-AIRS-SPARK |
6d4430b718ba7ed4986d73c8a1b605e260f05497 | 1,030 | cpp | C++ | sdf_fusion/src/aruco_sdffusion/src/types.cpp | YyYyYong0331/homebrewdb | 02fb883b1630f21db6348e2605def5bd8cc6e2c0 | [
"MIT"
] | 18 | 2020-10-21T16:29:18.000Z | 2021-12-29T05:47:29.000Z | sdf_fusion/src/aruco_sdffusion/src/types.cpp | YyYyYong0331/homebrewdb | 02fb883b1630f21db6348e2605def5bd8cc6e2c0 | [
"MIT"
] | 3 | 2021-04-16T15:03:54.000Z | 2022-01-12T07:28:52.000Z | sdf_fusion/src/aruco_sdffusion/src/types.cpp | YyYyYong0331/homebrewdb | 02fb883b1630f21db6348e2605def5bd8cc6e2c0 | [
"MIT"
] | 5 | 2020-08-27T09:02:02.000Z | 2021-06-11T10:42:33.000Z | //######################################################################
//# SDF_Fusion Module
//#
//# Copyright (C) 2020 Siemens AG
//# SPDX-License-Identifier: MIT
//# Author 2020: This module has been developed by
//# or under supervision of Slobodan Ilic
//###############################... | 36.785714 | 112 | 0.493204 | YyYyYong0331 |
6d46cd8c55b64c79cef72b114784a807afb64f1a | 2,675 | cpp | C++ | Tile2D/Canvas/Drawable/Font.cpp | mipelius/spacegame | 7cbc62d6b47afdea11a7775d25f9e91c900cc627 | [
"MIT"
] | null | null | null | Tile2D/Canvas/Drawable/Font.cpp | mipelius/spacegame | 7cbc62d6b47afdea11a7775d25f9e91c900cc627 | [
"MIT"
] | null | null | null | Tile2D/Canvas/Drawable/Font.cpp | mipelius/spacegame | 7cbc62d6b47afdea11a7775d25f9e91c900cc627 | [
"MIT"
] | null | null | null | // MIT License
//
// This file is part of SpaceGame.
// Copyright (c) 2014-2018 Miika Pelkonen
//
// 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 lim... | 31.845238 | 99 | 0.661682 | mipelius |
6d47d734d0642481827d6fe3d95bd94727ba67cc | 983 | cpp | C++ | samples/create-instance/main.cpp | feserr/proxy-vulkan | 8e0f4ec238a9e9ebed8d31b36804a4a1f97dd8b1 | [
"BSD-2-Clause"
] | null | null | null | samples/create-instance/main.cpp | feserr/proxy-vulkan | 8e0f4ec238a9e9ebed8d31b36804a4a1f97dd8b1 | [
"BSD-2-Clause"
] | null | null | null | samples/create-instance/main.cpp | feserr/proxy-vulkan | 8e0f4ec238a9e9ebed8d31b36804a4a1f97dd8b1 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2020 feserr. All rights reserved.
* License: https://github.com/feserr/proxy-vulkan#license
*/
#include <vulkan/vulkan.h>
#include <iostream>
#include <memory>
int main(int argc, const char* argv[]) {
uint32_t instance_layer_count;
if (vkEnumerateInstanceLayerProperties(&instance_layer_count, n... | 27.305556 | 75 | 0.668362 | feserr |
6d4ef19c59200ae8731f17de585edf8ec4fbb874 | 7,443 | cpp | C++ | runtime/libpgmath/lib/common/log/fma3/fdlog8.cpp | abrahamtovarmob/flang | bcd84b29df046b6d6574f0bfa34ea5059092615a | [
"Apache-2.0"
] | 716 | 2017-05-17T17:58:45.000Z | 2022-03-30T11:20:58.000Z | runtime/libpgmath/lib/common/log/fma3/fdlog8.cpp | abrahamtovarmob/flang | bcd84b29df046b6d6574f0bfa34ea5059092615a | [
"Apache-2.0"
] | 794 | 2017-05-18T19:27:40.000Z | 2022-03-31T23:22:11.000Z | runtime/libpgmath/lib/common/log/fma3/fdlog8.cpp | abrahamtovarmob/flang | bcd84b29df046b6d6574f0bfa34ea5059092615a | [
"Apache-2.0"
] | 157 | 2017-05-17T18:50:33.000Z | 2022-03-30T07:06:45.000Z | /*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#if defined(TARGET_LINUX_POWER)
#error "Source cannot be compiled for POWER architectures"
#include "xmm2alt... | 41.814607 | 127 | 0.714094 | abrahamtovarmob |
6d553b712d106633fa88f85b6bf1f38587434258 | 359 | cpp | C++ | DataPackets/Utilities/StandardAutoResetEvent.cpp | culaja/CppDsp | 70163cf51291692bb72a165fc0216ae087b75292 | [
"MIT"
] | null | null | null | DataPackets/Utilities/StandardAutoResetEvent.cpp | culaja/CppDsp | 70163cf51291692bb72a165fc0216ae087b75292 | [
"MIT"
] | null | null | null | DataPackets/Utilities/StandardAutoResetEvent.cpp | culaja/CppDsp | 70163cf51291692bb72a165fc0216ae087b75292 | [
"MIT"
] | null | null | null | #include "StandardAutoResetEvent.h"
void StandardAutoResetEvent::Set() {
std::lock_guard<std::mutex> _(_mutex);
_flag = true;
_signal.notify_one();
}
void StandardAutoResetEvent::Wait() {
std::unique_lock<std::mutex> lk(_mutex);
while (!_flag) // prevent spurious wakeups from doing harm
_signal.wait(lk);
_fla... | 25.642857 | 59 | 0.727019 | culaja |
6d571f5b214193664b56d843efa72bd15c029d90 | 2,845 | cpp | C++ | Cpp/SDK/InvalidPasswordWidget_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 1 | 2020-08-15T08:31:55.000Z | 2020-08-15T08:31:55.000Z | Cpp/SDK/InvalidPasswordWidget_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-15T08:43:56.000Z | 2021-01-15T05:04:48.000Z | Cpp/SDK/InvalidPasswordWidget_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-10T12:05:42.000Z | 2021-02-12T19:56:10.000Z | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 35.5625 | 196 | 0.753954 | MrManiak |
6d5c087da68f443b107eda770a442fb4b5369c6b | 3,332 | cpp | C++ | lib/analyzer/expressions/expression_list.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 4 | 2017-07-22T23:12:36.000Z | 2022-01-13T23:57:06.000Z | lib/analyzer/expressions/expression_list.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 36 | 2016-11-26T17:46:16.000Z | 2019-05-21T16:27:13.000Z | lib/analyzer/expressions/expression_list.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 3 | 2016-10-01T21:04:32.000Z | 2021-03-20T06:57:53.000Z | /**
* Vapor Compiler Licence
*
* Copyright © 2016-2019 Michał "Griwes" Dominiak
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this ... | 34.708333 | 110 | 0.642857 | reaver-project |
6d5ca3a3ac8cbcfbf24cfb356fcf2857205f3f04 | 1,603 | cpp | C++ | World/Scene.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | 1 | 2021-09-18T12:50:35.000Z | 2021-09-18T12:50:35.000Z | World/Scene.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | World/Scene.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | /*
* Scene.c
*
* Created on: 15.11.2013
* Author: baudenri_local
*/
#include <World/Scene.h>
#include <OgreControllerManager.h>
#include <World/Background.h>
#include <Geometry/Shape.h>
#include <World/WorldInfo.h>
#include <World/Viewpoint.h>
using namespace X3D;
Scene::~Scene() {
Ogre::ControllerM... | 20.818182 | 86 | 0.658141 | jess22664 |
6d68c948d0bc36a09d87c8a2dac3312626a275ae | 4,869 | cpp | C++ | common/src/simulation/cpp/windows/drivetrains.cpp | ben327/2019-DeepSpace | 0eda4ebde9335952afe73701928d68766aeb2651 | [
"MIT"
] | 1 | 2021-10-10T06:52:41.000Z | 2021-10-10T06:52:41.000Z | common/src/simulation/cpp/windows/drivetrains.cpp | ben327/2019-DeepSpace | 0eda4ebde9335952afe73701928d68766aeb2651 | [
"MIT"
] | null | null | null | common/src/simulation/cpp/windows/drivetrains.cpp | ben327/2019-DeepSpace | 0eda4ebde9335952afe73701928d68766aeb2651 | [
"MIT"
] | 1 | 2019-06-08T19:24:01.000Z | 2019-06-08T19:24:01.000Z | #include "simulation/windows/drivetrains.h"
#include <frc/RobotController.h>
#include <algorithm>
using namespace simulation;
using namespace curtinfrc;
void drivetrain_window::init() {
static Usage<DrivetrainConfig>::Registry<drivetrain_window> registry(&ui::init_window<drivetrain_window, DrivetrainConfig *>);
}
... | 40.575 | 150 | 0.67365 | ben327 |
6d6a97aaf63e797209efad698321b5d29ed724f7 | 26,074 | inl | C++ | rgb2yuv.inl | metarutaiga/xxYUV | 16539116c9ceb594de3beb09b6ccffcf75fe9ead | [
"MIT"
] | 64 | 2020-12-22T06:44:30.000Z | 2021-12-23T06:33:17.000Z | rgb2yuv.inl | metarutaiga/xxYUV | 16539116c9ceb594de3beb09b6ccffcf75fe9ead | [
"MIT"
] | 2 | 2021-04-17T11:54:54.000Z | 2021-07-09T02:35:09.000Z | rgb2yuv.inl | metarutaiga/xxYUV | 16539116c9ceb594de3beb09b6ccffcf75fe9ead | [
"MIT"
] | 11 | 2021-04-12T15:37:09.000Z | 2021-11-20T13:38:04.000Z | //==============================================================================
// xxYUV : rgb2yuv Inline
//
// Copyright (c) 2020-2021 TAiGA
// https://github.com/metarutaiga/xxYUV
//==============================================================================
// BT.709 - Video Range
// R G B
// Y... | 52.35743 | 207 | 0.51979 | metarutaiga |
6d6b0754acb149e8bfdd95143cc9c4829d519de6 | 2,041 | cpp | C++ | src/tools/editor/src/scene/entity_icons.cpp | pinguin999/halley | 895e5ae482787eb09185928625e1ee9be3845fbc | [
"Apache-2.0"
] | null | null | null | src/tools/editor/src/scene/entity_icons.cpp | pinguin999/halley | 895e5ae482787eb09185928625e1ee9be3845fbc | [
"Apache-2.0"
] | null | null | null | src/tools/editor/src/scene/entity_icons.cpp | pinguin999/halley | 895e5ae482787eb09185928625e1ee9be3845fbc | [
"Apache-2.0"
] | null | null | null | #include "entity_icons.h"
using namespace Halley;
EntityIcons::EntityIcons(Resources& resources, const UIColourScheme& colourScheme)
: resources(resources)
, colourScheme(colourScheme)
{
for (const auto& configId: resources.enumerate<ConfigFile>()) {
if (configId.startsWith("entity_icons")) {
load(resources.ge... | 27.958904 | 123 | 0.735914 | pinguin999 |
6d6b64166386f9c424b5d52686c559d4fc74fa97 | 3,131 | cpp | C++ | source/tensor/core/utilities/CheckData.cpp | xiaozhang521/NASToolkit | a43294f17253af92004209b9e9ada3388aa96fe4 | [
"Apache-2.0"
] | 2 | 2020-05-04T13:00:46.000Z | 2020-05-04T23:48:56.000Z | source/tensor/core/utilities/CheckData.cpp | Daimengli/NiuTensor | 3739e29b789801e82cc904c78740accdfc16b889 | [
"Apache-2.0"
] | null | null | null | source/tensor/core/utilities/CheckData.cpp | Daimengli/NiuTensor | 3739e29b789801e82cc904c78740accdfc16b889 | [
"Apache-2.0"
] | 1 | 2020-03-13T03:13:03.000Z | 2020-03-13T03:13:03.000Z | /* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* 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 L... | 31.94898 | 92 | 0.644523 | xiaozhang521 |
6d70529414af3c527c3bdb2a6e215093ffc13f8b | 36,470 | cpp | C++ | nebulosity4/autoalign.cpp | aws4y/OpenNebulosity | 406162ea39de7e8fb90147ee43f6ee95dd56dfde | [
"BSD-3-Clause"
] | null | null | null | nebulosity4/autoalign.cpp | aws4y/OpenNebulosity | 406162ea39de7e8fb90147ee43f6ee95dd56dfde | [
"BSD-3-Clause"
] | null | null | null | nebulosity4/autoalign.cpp | aws4y/OpenNebulosity | 406162ea39de7e8fb90147ee43f6ee95dd56dfde | [
"BSD-3-Clause"
] | null | null | null | /*
* autoalign.cpp
* nebulosity
*
* Created by Craig Stark on 10/31/09.
BSD 3-Clause License
Copyright (c) 2021, Craig Stark
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributi... | 35.442177 | 152 | 0.666877 | aws4y |
6d731bf12b860a9b425b044a8663ca8350da8236 | 1,919 | cpp | C++ | Common/Qt/Options/BooleanCheckBoxOption.cpp | ercdndrs/Arduino-Source | c0490f0f06aaa38759aa8f11def9e1349e551679 | [
"MIT"
] | null | null | null | Common/Qt/Options/BooleanCheckBoxOption.cpp | ercdndrs/Arduino-Source | c0490f0f06aaa38759aa8f11def9e1349e551679 | [
"MIT"
] | null | null | null | Common/Qt/Options/BooleanCheckBoxOption.cpp | ercdndrs/Arduino-Source | c0490f0f06aaa38759aa8f11def9e1349e551679 | [
"MIT"
] | null | null | null | /* Boolean Check Box Option
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <QHBoxLayout>
#include <QLabel>
#include "BooleanCheckBoxOption.h"
namespace PokemonAutomation{
BooleanCheckBoxOption::BooleanCheckBoxOption(
bool& backing,
QString label,
bool d... | 23.402439 | 96 | 0.668056 | ercdndrs |
6d786b0899629382521b15c2e05dcf77ec9805ba | 4,048 | cpp | C++ | Common/util/proxystream.cpp | fernewelten/ags | ab662ebc6fcd682be8cc12a69ad03cffa2fe73eb | [
"Artistic-2.0"
] | null | null | null | Common/util/proxystream.cpp | fernewelten/ags | ab662ebc6fcd682be8cc12a69ad03cffa2fe73eb | [
"Artistic-2.0"
] | null | null | null | Common/util/proxystream.cpp | fernewelten/ags | ab662ebc6fcd682be8cc12a69ad03cffa2fe73eb | [
"Artistic-2.0"
] | null | null | null | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 22.120219 | 87 | 0.678607 | fernewelten |
6d7a3980613e43dd2fd9ebe7213502ff308e624d | 18,584 | cpp | C++ | MIC/CoILONCSO/NewILONComm.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | MIC/CoILONCSO/NewILONComm.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | 1 | 2017-09-14T15:23:39.000Z | 2017-09-14T15:23:39.000Z | MIC/CoILONCSO/NewILONComm.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | /*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-089. This software was... | 36.015504 | 104 | 0.723472 | hnordquist |
6d7bc9a406a9458a7b1be7173584c145255bcb53 | 4,447 | cpp | C++ | src/sdp/RemoteSdp.cpp | chenyuy/libmediasoupclient | 8fa819a288979784a35ca56b7d5cf8285dc52798 | [
"ISC"
] | 1 | 2020-09-21T02:42:47.000Z | 2020-09-21T02:42:47.000Z | mediasoup-client/deps/libmediasoupclient/src/sdp/RemoteSdp.cpp | ethand91/mediasoup-client-android | 9e95fbf90de3037f625cf56ac0fe3605644187d3 | [
"MIT"
] | null | null | null | mediasoup-client/deps/libmediasoupclient/src/sdp/RemoteSdp.cpp | ethand91/mediasoup-client-android | 9e95fbf90de3037f625cf56ac0fe3605644187d3 | [
"MIT"
] | null | null | null | #define MSC_CLASS "Sdp::RemoteSdp"
// #define MSC_LOG_DEV
#include "sdp/RemoteSdp.hpp"
#include "Exception.hpp"
#include "Logger.hpp"
#include "Utils.hpp"
#include "sdptransform.hpp"
#include <utility>
using json = nlohmann::json;
namespace mediasoupclient
{
/* Sdp::RemoteSdp methods */
Sdp::RemoteSdp::RemoteSdp(co... | 22.92268 | 107 | 0.639532 | chenyuy |
6d7fe64c9251a70cc2a1c0d322dbf6408e840788 | 754 | cpp | C++ | sgu/115.calendar/115.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | sgu/115.calendar/115.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | sgu/115.calendar/115.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int N,M,days=0;
cin >> N >> M;
if ((M==2)&&(N>28))
{
cout << "Impossible" ;
return 0;
}
else if (((M== 1)||(M== 3)||(M== 5)||(M== 7)||(M== 8)||(M== 10)||(M== 12))&&(N>31))
{
cout << "Impossible" ;
return 0;
}
else if (((M==4)||(M==6)||(M... | 12.779661 | 85 | 0.396552 | KayvanMazaheri |
6d80e84102135fa462ae3ff1c1b27b5693ff5c45 | 1,630 | cpp | C++ | libs/detectors/src/CDetectableObject.cpp | zarmomin/mrpt | 1baff7cf8ec9fd23e1a72714553bcbd88c201966 | [
"BSD-3-Clause"
] | 1 | 2021-12-10T06:24:08.000Z | 2021-12-10T06:24:08.000Z | libs/detectors/src/CDetectableObject.cpp | gao-ouyang/mrpt | 4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7 | [
"BSD-3-Clause"
] | null | null | null | libs/detectors/src/CDetectableObject.cpp | gao-ouyang/mrpt | 4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7 | [
"BSD-3-Clause"
] | 1 | 2019-09-11T02:55:04.000Z | 2019-09-11T02:55:04.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 41.794872 | 80 | 0.610429 | zarmomin |
6d8130f658afd7148b3ab218264e88627ddb13d2 | 919 | hpp | C++ | etl/chrono.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | 4 | 2021-11-28T08:48:11.000Z | 2021-12-14T09:53:51.000Z | etl/chrono.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | etl/chrono.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | /// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_CHRONO_HPP
#define TETL_CHRONO_HPP
/// \file This header is part of the utility library.
/// \example chrono.cpp
#include ... | 31.689655 | 77 | 0.771491 | tobanteEmbedded |
6d83622fe61f8d09d659002af14f60556df4afd2 | 75,426 | hpp | C++ | AbstractHardware/Registers/STM32L4x1/FieldValues/gpiobfieldvalues.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | AbstractHardware/Registers/STM32L4x1/FieldValues/gpiobfieldvalues.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | AbstractHardware/Registers/STM32L4x1/FieldValues/gpiobfieldvalues.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : gpiobfieldvalues.hpp
*
* Details : Enumerations related with GPIOB peripheral. This header file
* is auto-generated for STM32L4x1 device.
*
*
*********************************************************... | 51.555707 | 92 | 0.785604 | snorkysnark |
6d877f33a3af351a89f44328f12918a5efe6e00f | 1,447 | hh | C++ | include/nba/engines/phi/computedevice.hh | ANLAB-KAIST/NBA | a093a72af32ccdc041792a01ae65a699294470cd | [
"MIT"
] | 61 | 2015-03-25T04:49:09.000Z | 2020-11-24T08:36:19.000Z | include/nba/engines/phi/computedevice.hh | ANLAB-KAIST/NBA | a093a72af32ccdc041792a01ae65a699294470cd | [
"MIT"
] | 32 | 2015-04-29T08:20:39.000Z | 2017-02-09T22:49:37.000Z | include/nba/engines/phi/computedevice.hh | ANLAB-KAIST/NBA | a093a72af32ccdc041792a01ae65a699294470cd | [
"MIT"
] | 11 | 2015-07-24T22:48:05.000Z | 2020-09-10T11:48:47.000Z | #ifndef __PHI_ENGINE_HH__
#define __PHI_ENGINE_HH__
#include <string>
#include <vector>
#include <deque>
#include <CL/opencl.h>
#include <nba/framework/computedevice.hh>
#include <nba/framework/computecontext.hh>
#include <nba/core/threading.hh>
#include <nba/engines/phi/utils.hh>
#include <nba/engines/phi/computecon... | 26.309091 | 80 | 0.756047 | ANLAB-KAIST |
6d89bd1820634ef9224482fcc1fb22dcdfa15443 | 152,945 | cpp | C++ | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests10.cpp | bpossolo/deeplearning4j | 722d5a052af17f19dcd42ef923b9a5b63ab2cbee | [
"Apache-2.0"
] | 13,006 | 2015-02-13T18:35:31.000Z | 2022-03-18T12:11:44.000Z | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests10.cpp | bpossolo/deeplearning4j | 722d5a052af17f19dcd42ef923b9a5b63ab2cbee | [
"Apache-2.0"
] | 5,319 | 2015-02-13T08:21:46.000Z | 2019-06-12T14:56:50.000Z | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests10.cpp | bpossolo/deeplearning4j | 722d5a052af17f19dcd42ef923b9a5b63ab2cbee | [
"Apache-2.0"
] | 4,719 | 2015-02-13T22:48:55.000Z | 2022-03-22T07:25:36.000Z | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
* Copyright (c) 2019 Konduit K.K.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apa... | 48.584816 | 242 | 0.486299 | bpossolo |
6d8c2936f0c0385755ff439bd45be9f7ba899148 | 2,155 | cpp | C++ | list/lru-cache.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | list/lru-cache.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | list/lru-cache.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | class LRUCache {
public:
LRUCache(int capacity) {
capacity_ = capacity;
head_ = NULL;
tail_ = NULL;
}
int get(int key) {
int ret = -1;
auto it = map_.find(key);
if (it != map_.end())
{
ret = it->second->val;
... | 18.903509 | 78 | 0.379582 | 5ooo |
6d9080841380b828165c8836eeff981103b62380 | 3,861 | hpp | C++ | engine/src/Rendering/RenderCommandData.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | 14 | 2017-10-17T16:20:20.000Z | 2021-12-21T14:49:00.000Z | engine/src/Rendering/RenderCommandData.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | engine/src/Rendering/RenderCommandData.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | 1 | 2019-05-12T13:50:23.000Z | 2019-05-12T13:50:23.000Z | #pragma once
#include <cstddef>
#include <cstdint>
#include "Rendering/RenderDeviceEnums.hpp"
namespace RenderCommandData
{
struct ClearMask
{
bool color;
bool depth;
bool stencil;
};
struct ClearColorData
{
float r;
float g;
float b;
float a;
};
struct ViewportData
{... | 21.331492 | 91 | 0.71251 | aleksigron |
6d924e88144aeced453e31f6fbba14ed4263866e | 2,207 | cpp | C++ | XML/src/Attr.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 2 | 2021-04-11T20:16:11.000Z | 2021-11-17T11:28:59.000Z | XML/src/Attr.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | null | null | null | XML/src/Attr.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 1 | 2018-06-07T17:23:07.000Z | 2018-06-07T17:23:07.000Z | //
// Attr.cpp
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/DOM/Attr.h"
#include "Poco/DOM/Document.h"
#include "Poco/XML/NamePool.h"
namespace Poco {
nam... | 16.470149 | 188 | 0.707748 | astlin |
6d96b04809cb908146eec924944725bcdc5a867d | 287 | cpp | C++ | ch02/list_2.12/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 17 | 2020-01-01T16:44:05.000Z | 2022-03-31T07:20:13.000Z | ch02/list_2.12/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 1 | 2021-07-04T01:41:53.000Z | 2021-07-14T19:17:01.000Z | ch02/list_2.12/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 3 | 2019-11-28T14:37:09.000Z | 2021-05-22T02:55:15.000Z | #include <iostream>
// 値の1の型を推論し、その型を戻り値の型として使う
decltype(1) one()
{
return 1;
}
int main()
{
auto i = one(); // autoを使った型推論
decltype(i) j; // 変数iから型を推論して変数宣言をするので初期値は不要
j = 42.195; // jはint型に推論されているので、暗黙の型変換が行われる
std::cout << j << std::endl;
}
| 15.105263 | 49 | 0.581882 | shoeisha-books |
6d981e025a9e9c0f6299f7c9528cc7160bcf230d | 26,720 | cpp | C++ | code/wxWidgets/src/univ/slider.cpp | Bloodknight/NeuTorsion | a5890e9ca145a8c1b6bec7b70047a43d9b1c29ea | [
"MIT"
] | 38 | 2016-02-20T02:46:28.000Z | 2021-11-17T11:39:57.000Z | code/wxWidgets/src/univ/slider.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 17 | 2016-02-20T02:19:55.000Z | 2021-02-08T15:15:17.000Z | code/wxWidgets/src/univ/slider.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 46 | 2016-02-20T02:47:33.000Z | 2021-01-31T15:46:05.000Z | ///////////////////////////////////////////////////////////////////////////////
// Name: univ/slider.cpp
// Purpose: implementation of the universal version of wxSlider
// Author: Vadim Zeitlin
// Modified by:
// Created: 09.02.01
// RCS-ID: $Id: slider.cpp,v 1.17 2005/08/24 06:32:56 ABX Exp $
... | 25.717036 | 108 | 0.529716 | Bloodknight |
6d9ae4981d1091b53f372c2be819c5f8df71c5bc | 24,939 | cpp | C++ | src/md_nvt.cpp | 1mingfei/mapp4py | b72a90b4ab8984cf40d90944df60505e1a3f6a49 | [
"MIT"
] | null | null | null | src/md_nvt.cpp | 1mingfei/mapp4py | b72a90b4ab8984cf40d90944df60505e1a3f6a49 | [
"MIT"
] | null | null | null | src/md_nvt.cpp | 1mingfei/mapp4py | b72a90b4ab8984cf40d90944df60505e1a3f6a49 | [
"MIT"
] | null | null | null | #include "md_nvt.h"
#include "xmath.h"
#include "atoms_md.h"
#include "ff_md.h"
#include "elements.h"
#include "dynamic_md.h"
#include "MAPP.h"
#include "thermo_dynamics.h"
#include <math.h>
using namespace MAPP_NS;
/*--------------------------------------------
--------------------------------------------*/
MDNVT::... | 28.764706 | 158 | 0.504631 | 1mingfei |
6d9c14c53dd4a103a6a4aa478a27f8aecef22ca8 | 2,240 | hpp | C++ | src-2007/public/python/boost/units/static_constant.hpp | KyleGospo/City-17-Episode-One-Source | 2bc0bb56a2e0a63d963755e2831c15f2970c38e7 | [
"Unlicense"
] | 30 | 2016-04-23T04:55:52.000Z | 2021-05-19T10:26:27.000Z | src/boost/units/static_constant.hpp | cpmech/vismatrix | a4994864d3592cfa2db24119427fad096303fb4f | [
"BSD-3-Clause"
] | 1 | 2016-03-31T20:56:08.000Z | 2016-04-18T08:56:40.000Z | src/boost/units/static_constant.hpp | cpmech/vismatrix | a4994864d3592cfa2db24119427fad096303fb4f | [
"BSD-3-Clause"
] | 15 | 2016-04-26T13:16:38.000Z | 2022-03-08T06:13:14.000Z | // Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 Matthias Christian Schabel
// Copyright (C) 2008 Steven Watanabe
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.tx... | 38.62069 | 74 | 0.561161 | KyleGospo |
6da1453397eff8dc43ab1be80f372839f5aeda07 | 200 | hh | C++ | Source/Compiler/CommonObjects.hh | fuzziqersoftware/nemesys | ee6cc8e1fd804b5cfaa94a79e295770cadec8204 | [
"MIT"
] | 9 | 2018-02-05T06:52:02.000Z | 2022-03-27T18:26:14.000Z | Source/Compiler/CommonObjects.hh | fuzziqersoftware/nemesys | ee6cc8e1fd804b5cfaa94a79e295770cadec8204 | [
"MIT"
] | 1 | 2021-05-17T16:53:12.000Z | 2021-05-31T11:19:28.000Z | Source/Compiler/CommonObjects.hh | fuzziqersoftware/nemesys | ee6cc8e1fd804b5cfaa94a79e295770cadec8204 | [
"MIT"
] | 3 | 2018-02-06T17:24:34.000Z | 2021-11-16T17:20:28.000Z | #pragma once
#include <libamd64/AMD64Assembler.hh> // for MemoryReference
const void* common_object_base();
size_t common_object_count();
MemoryReference common_object_reference(const void* which);
| 25 | 60 | 0.815 | fuzziqersoftware |
6da5d1244fbed922406a497d31d7a6a48f067987 | 16,956 | cc | C++ | paddle/fluid/platform/device/gpu/gpu_info.cc | Silv3S/Paddle | d414af940a956b51c0586b14f5b65265284bfe1a | [
"Apache-2.0"
] | null | null | null | paddle/fluid/platform/device/gpu/gpu_info.cc | Silv3S/Paddle | d414af940a956b51c0586b14f5b65265284bfe1a | [
"Apache-2.0"
] | null | null | null | paddle/fluid/platform/device/gpu/gpu_info.cc | Silv3S/Paddle | d414af940a956b51c0586b14f5b65265284bfe1a | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2016 PaddlePaddle 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 applicable law or... | 32.67052 | 80 | 0.678757 | Silv3S |
6da7a28b63d7583fd0062693914b06c15c25b27e | 2,688 | ipp | C++ | src/ArduinoUAVCAN.ipp | manmountain/107-Arduino-UAVCAN | f244ebd07478b09a9183a06d9fd183f09efda60d | [
"MIT"
] | null | null | null | src/ArduinoUAVCAN.ipp | manmountain/107-Arduino-UAVCAN | f244ebd07478b09a9183a06d9fd183f09efda60d | [
"MIT"
] | null | null | null | src/ArduinoUAVCAN.ipp | manmountain/107-Arduino-UAVCAN | f244ebd07478b09a9183a06d9fd183f09efda60d | [
"MIT"
] | null | null | null | /**
* This software is distributed under the terms of the MIT License.
* Copyright (c) 2020 LXRobotics.
* Author: Alexander Entinger <alexander.entinger@lxrobotics.com>
* Contributors: https://github.com/107-systems/107-Arduino-UAVCAN/graphs/contributors.
*/
/******************************************************... | 45.559322 | 150 | 0.736979 | manmountain |
6daa5d94946657eb5f6d4f46ae6e24e00549e88a | 180 | cpp | C++ | src/JSystem/J3D/J3DModelSaver.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/JSystem/J3D/J3DModelSaver.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/JSystem/J3D/J3DModelSaver.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
#include "JSystem/J3D/J3DShape.h"
/*
* --INFO--
* Address: 80074438
* Size: 000008
*/
u16 J3DShapeMtx::getUseMtxIndex(u16) const { return m_useMtxIndex; }
| 16.363636 | 68 | 0.683333 | projectPiki |
6daa8b0e8d72449d39d52c181e98b2af8e89328d | 1,184 | cxx | C++ | odb-tests-2.4.0/common/session/custom/session.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/common/session/custom/session.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/common/session/custom/session.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : common/session/custom/session.cxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cassert>
#include "session.hxx"
session* session::current;
session::
session ()
: tran_ (0)
{
assert (current == 0);
current = th... | 20.067797 | 78 | 0.619932 | edidada |
6dac10297fcd448f1b8f978f53c4d52964ade3d5 | 2,352 | cpp | C++ | HugeCTR/src/resource_managers/resource_manager_ext.cpp | Chunshuizhao/HugeCTR | 085b2e8ad2abaee5578e7bf43b8394d0b8473b58 | [
"Apache-2.0"
] | null | null | null | HugeCTR/src/resource_managers/resource_manager_ext.cpp | Chunshuizhao/HugeCTR | 085b2e8ad2abaee5578e7bf43b8394d0b8473b58 | [
"Apache-2.0"
] | null | null | null | HugeCTR/src/resource_managers/resource_manager_ext.cpp | Chunshuizhao/HugeCTR | 085b2e8ad2abaee5578e7bf43b8394d0b8473b58 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 31.783784 | 100 | 0.732143 | Chunshuizhao |
6daca6718fbd5634d7d033f775243a8ab28523bd | 719 | cpp | C++ | AS1-CSY3028/Vec3.cpp | Jophes/GLUTRayTracing | 2727824f60c1baa2c08e9ba4cf7aff0180c52f45 | [
"MIT"
] | null | null | null | AS1-CSY3028/Vec3.cpp | Jophes/GLUTRayTracing | 2727824f60c1baa2c08e9ba4cf7aff0180c52f45 | [
"MIT"
] | null | null | null | AS1-CSY3028/Vec3.cpp | Jophes/GLUTRayTracing | 2727824f60c1baa2c08e9ba4cf7aff0180c52f45 | [
"MIT"
] | null | null | null | #include "Vec3.h"
#include <cmath>
// Constructors
Vec3::Vec3() {
x = 0;
y = 0;
}
Vec3::Vec3(double _x, double _y, double _z) {
x = _x;
y = _y;
z = _z;
}
// Object methods
double Vec3::Magnitude() {
return sqrt(pow(x, 2) + pow(y, 2) + pow(z, 2));
}
double Vec3::Distance(Vec3 other) {
return ((*this) - other)... | 15.297872 | 49 | 0.595271 | Jophes |
6dad87140622d8430ec2b2059d969243ed23f626 | 869 | cpp | C++ | ch12/ex12_16.cpp | regconfi/Cpp-Primer | 6e59f24f4c7f3be4f679b7d29084d9d859a463d9 | [
"CC0-1.0"
] | 46 | 2015-07-07T11:13:12.000Z | 2022-03-27T10:20:54.000Z | ch12/ex12_16.cpp | regconfi/Cpp-Primer | 6e59f24f4c7f3be4f679b7d29084d9d859a463d9 | [
"CC0-1.0"
] | 11 | 2015-03-10T12:52:06.000Z | 2015-04-20T12:24:00.000Z | ch12/ex12_16.cpp | regconfi/Cpp-Primer | 6e59f24f4c7f3be4f679b7d29084d9d859a463d9 | [
"CC0-1.0"
] | 65 | 2015-07-01T14:15:48.000Z | 2021-04-10T08:44:19.000Z | //
// ex12_15.cpp
// Exercise 12.15
//
// Created by pezy on 12/22/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// Compilers don’t always give easy-to-understand error messages if we attempt to
// copy or assign a unique_ptr. Write a program that contains these errors to see
// how your compiler diagn... | 28.966667 | 82 | 0.63061 | regconfi |
6db652653bc219b2fd5f63b54d2f9b82b33dc198 | 402 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_GetTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_GetTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_GetTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_GetTypeParam.cpp
//
#include "smtc_GetTypeParam.h"
// semantic
#include "smtc_CheckParamName.h"
#include "smtc_CreateTypeParam.h"
#define LZZ_INLINE inline
namespace smtc
{
ParamPtr getTypeParam (NamePtr const & name, CvType const & def_type)
{
// check name
checkParamName (name);
// creat... | 19.142857 | 71 | 0.716418 | SuperDizor |
6db7b9d55f8a6c54e220aed9c0b9605998349644 | 2,187 | cpp | C++ | minorGems/util/development/memory/debugMemory.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | minorGems/util/development/memory/debugMemory.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | minorGems/util/development/memory/debugMemory.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | /*
* Modification History
*
* 2002-October-17 Jason Rohrer
* Created.
*
* 2002-October-18 Jason Rohrer
* Added static initialization counting class for MemoryTrack.
*
* 2002-October-19 Jason Rohrer
* Added more detail to error message.
* Improved printing behavior.
* Moved include of debugMemory.h to work... | 22.78125 | 77 | 0.641061 | PhilipLudington |
6db7e9791dab11baed18e2475ffb91c6c58ce73c | 27,045 | cpp | C++ | renderdoc/driver/vulkan/vk_msaa_array_conv.cpp | ylz-at/renderdoc | 2a61a7f32d117da6ff225ba0ba749c0b757c2d2b | [
"MIT"
] | null | null | null | renderdoc/driver/vulkan/vk_msaa_array_conv.cpp | ylz-at/renderdoc | 2a61a7f32d117da6ff225ba0ba749c0b757c2d2b | [
"MIT"
] | null | null | null | renderdoc/driver/vulkan/vk_msaa_array_conv.cpp | ylz-at/renderdoc | 2a61a7f32d117da6ff225ba0ba749c0b757c2d2b | [
"MIT"
] | null | null | null | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2021 Baldur Karlsson
*
* 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... | 34.364676 | 101 | 0.68068 | ylz-at |
6db837bdc0f5dd3ce83f3d07b966253919fbd5a2 | 9,633 | cc | C++ | plugins/websocket_server/WebsocketServer.cc | AlejoAsd/ign-launch | 10f21dfe0bf4ffa2c4f9f4b0548054d33487159a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | plugins/websocket_server/WebsocketServer.cc | AlejoAsd/ign-launch | 10f21dfe0bf4ffa2c4f9f4b0548054d33487159a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | plugins/websocket_server/WebsocketServer.cc | AlejoAsd/ign-launch | 10f21dfe0bf4ffa2c4f9f4b0548054d33487159a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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 appl... | 29.916149 | 77 | 0.621613 | AlejoAsd |
6dbffb941ebdd48ebd360fcac21929c1fdbd9efc | 808 | hpp | C++ | esp32m/include/esp32m/config/changed.hpp | esp32m/core | 94181c07634c09981e1775886dc49fa6fb703357 | [
"MIT"
] | 2 | 2021-08-04T15:40:13.000Z | 2021-09-27T08:13:33.000Z | esp32m/include/esp32m/config/changed.hpp | esp32m/core | 94181c07634c09981e1775886dc49fa6fb703357 | [
"MIT"
] | null | null | null | esp32m/include/esp32m/config/changed.hpp | esp32m/core | 94181c07634c09981e1775886dc49fa6fb703357 | [
"MIT"
] | null | null | null | #pragma once
#include "esp32m/config/configurable.hpp"
#include "esp32m/events.hpp"
namespace esp32m {
class EventConfigChanged : public Event {
public:
Configurable *configurable() const {
return _configurable;
}
bool saveNow() const {
return _saveNow;
}
static vo... | 26.064516 | 76 | 0.648515 | esp32m |
6dc0b9e62a2fc8c3e2cd33c7fe31eed47e9234c8 | 599 | cpp | C++ | R-Recursion/PowerOfThree.cpp | riyasingh240601/LearnCPP | 5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed | [
"MIT"
] | 1 | 2022-03-26T02:34:12.000Z | 2022-03-26T02:34:12.000Z | R-Recursion/PowerOfThree.cpp | riyasingh240601/LearnCPP | 5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed | [
"MIT"
] | null | null | null | R-Recursion/PowerOfThree.cpp | riyasingh240601/LearnCPP | 5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed | [
"MIT"
] | null | null | null | /* Time Complexity : O(N)
Space Complexity : O(N) */
#include <bits/stdc++.h>
using namespace std;
bool powerthree(int n)
{
if(n==1 || n==3) return true; // base case
if(n % 3 !=0 || n==0) return false; // base case
return powerthree(n/3); //recursive call n/3 times
}
int main()
... | 19.966667 | 59 | 0.552588 | riyasingh240601 |
6dc1e1584ae3675faace08ccc424b6fec2d5af65 | 2,594 | cpp | C++ | LButton.cpp | RicardoCoutinho/GemsArr | 068f927a6c563932893e14a92ee13aadef4e370a | [
"MIT"
] | 1 | 2020-05-27T18:52:35.000Z | 2020-05-27T18:52:35.000Z | LButton.cpp | RicardoCoutinho/GemsArr | 068f927a6c563932893e14a92ee13aadef4e370a | [
"MIT"
] | null | null | null | LButton.cpp | RicardoCoutinho/GemsArr | 068f927a6c563932893e14a92ee13aadef4e370a | [
"MIT"
] | null | null | null | //
// LButton.cpp
// GemsArr
//
// Created by José Ricardo de Sousa Coutinho on 16/09/15.
// Copyright © 2015 jrsc. All rights reserved.
//
#include "LButton.hpp"
//SDL_Rect gSpriteClips[ BUTTON_STATE_TOTAL ];
//Texture gButtonSpriteSheetTexture;
LButton::LButton()
{
position.x = 0;
position.y = 0;
s... | 23.160714 | 102 | 0.480339 | RicardoCoutinho |
6dc45b2c2a1aa77eb1e7570b9afc48562f598eea | 309 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/anim/MotionTableType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/anim/MotionTableType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/anim/MotionTableType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace anim {
enum class MotionTableType : uint32_t
{
MTT_None = 0,
MTT_Walk = 1,
MTT_Jog = 2,
MTT_Sprint = 3,
MTT_Custom = 4,
};
} // namespace anim
} // namespace RED4ext
| 16.263158 | 57 | 0.669903 | jackhumbert |
6dc612521c406910c74dbb3f56b51716d37e4cb5 | 2,248 | cpp | C++ | Source/src/Engine/Main.cpp | LeandroSJN/CrashBall | cfb33ade1aa58759c0cb8849781a00de453b78fa | [
"MIT"
] | 2 | 2018-05-12T14:44:59.000Z | 2021-11-12T15:17:20.000Z | Source/src/Engine/Main.cpp | LeandroSJN/CrashBall | cfb33ade1aa58759c0cb8849781a00de453b78fa | [
"MIT"
] | null | null | null | Source/src/Engine/Main.cpp | LeandroSJN/CrashBall | cfb33ade1aa58759c0cb8849781a00de453b78fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include "../Engine/GameManager.h"
#include <GL/glut.h>
#include "GL/glext.h"
#define WIDTH 960
#define HEIGHT 540
GameManager *GM = new GameManager();
bool start = true;
//void display(void);
void init(void)
{
glClearColor(0.0, 0.0, 0.0, 0.0);
glShadeModel(GL_SMOOTH);
... | 19.213675 | 76 | 0.63879 | LeandroSJN |
6dc8fd0226b296c03a543fac79c6d477e5d5f1b8 | 1,940 | cpp | C++ | subsys/tire/ChRigidTire.cpp | Chen-Tang/chrono-vehicle | ecef212010a01832cdecac8dacd2bae7b1d237de | [
"BSD-3-Clause"
] | 2 | 2018-05-16T04:00:30.000Z | 2021-03-12T11:24:54.000Z | subsys/tire/ChRigidTire.cpp | Chen-Tang/chrono-vehicle | ecef212010a01832cdecac8dacd2bae7b1d237de | [
"BSD-3-Clause"
] | null | null | null | subsys/tire/ChRigidTire.cpp | Chen-Tang/chrono-vehicle | ecef212010a01832cdecac8dacd2bae7b1d237de | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | 30.793651 | 84 | 0.406701 | Chen-Tang |
6dcea461b1047771259d1deca814ce6173621755 | 3,071 | cpp | C++ | net/lwip_tcp_callback.cpp | dllexport/libtunosocks | 6ffba81bf7e105ab92a1f09893856f8526d45978 | [
"MIT"
] | 1 | 2020-07-06T02:51:20.000Z | 2020-07-06T02:51:20.000Z | net/lwip_tcp_callback.cpp | dllexport/libtunosocks | 6ffba81bf7e105ab92a1f09893856f8526d45978 | [
"MIT"
] | 1 | 2021-08-06T11:22:33.000Z | 2021-08-08T09:17:16.000Z | net/lwip_tcp_callback.cpp | dllexport/libtunosocks | 6ffba81bf7e105ab92a1f09893856f8526d45978 | [
"MIT"
] | 2 | 2020-07-06T02:51:30.000Z | 2021-08-06T11:04:17.000Z | #include "lwip_tcp_callback.h"
#include "tcp/tcphandler.h"
/** Function prototype for tcp receive callback functions. Called when data has
* been received.
*
* @param arg Additional argument to pass to the callback function (@see tcp_arg())
* @param tpcb The connection pcb which received data
* @param p The recei... | 29.815534 | 122 | 0.647997 | dllexport |
6dd1066a8ad39d4af8bc72dc605844d629c93db4 | 965 | hpp | C++ | src/Factorial.hpp | rajyan/library | abad203321e34b87a248e02f5ae84a0899f6c4fd | [
"MIT"
] | null | null | null | src/Factorial.hpp | rajyan/library | abad203321e34b87a248e02f5ae84a0899f6c4fd | [
"MIT"
] | 8 | 2019-08-18T18:23:37.000Z | 2021-01-21T00:20:00.000Z | src/Factorial.hpp | rajyan/library | abad203321e34b87a248e02f5ae84a0899f6c4fd | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "Modint.hpp"
using namespace std;
using lint = long long;
class Factorial {
public:
explicit Factorial(int N = 110000) : fac(N + 1), inv(N + 1), finv(N + 1) { build(N + 1); }
[[nodiscard]] mint Cmod(int n, int k) {
if (n < k || k < 0) return 0LL;
retu... | 21.931818 | 94 | 0.448705 | rajyan |
6dd5ad68267a9e62f40be35e141acc8ebc8f67b9 | 492 | cpp | C++ | Contest/201014/color.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | 1 | 2020-10-05T02:07:52.000Z | 2020-10-05T02:07:52.000Z | Contest/201014/color.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | Contest/201014/color.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
const int maxn=1e5+10;
const int p=998244353;
int n,q,a[maxn],p2[maxn];
int main(){
freopen("color.in","r",stdin);
freopen("color.out","w",stdout);
scanf("%d",&n);
for(int i=1;i<=n;i++) scanf("%d",&a[i]);
p2[0]=1;
for(int i=1;i<=n;i++) p2[i]=p2[i-1]*2%p;
scanf("... | 20.5 | 42 | 0.526423 | wzl19371 |
6dd6b697f8e5fda0e4285b02e464ae810ecf2e16 | 101 | hpp | C++ | source/editor.hpp | JROB774/santajam | 2f95ddeb99548c85d55bda04fa2e8c494796204b | [
"MIT"
] | null | null | null | source/editor.hpp | JROB774/santajam | 2f95ddeb99548c85d55bda04fa2e8c494796204b | [
"MIT"
] | null | null | null | source/editor.hpp | JROB774/santajam | 2f95ddeb99548c85d55bda04fa2e8c494796204b | [
"MIT"
] | null | null | null | #pragma once
INTERNAL void InitEditor ();
INTERNAL void QuitEditor ();
INTERNAL void DoEditor ();
| 16.833333 | 28 | 0.732673 | JROB774 |
6dd7a4364972a66f1b432e7f3f82c7775d07e6c7 | 2,906 | cpp | C++ | main.cpp | rushatgabhane/simpleDB | 9b60325a55de3a6f07fa9bfd74335e60cf4d7694 | [
"MIT"
] | null | null | null | main.cpp | rushatgabhane/simpleDB | 9b60325a55de3a6f07fa9bfd74335e60cf4d7694 | [
"MIT"
] | null | null | null | main.cpp | rushatgabhane/simpleDB | 9b60325a55de3a6f07fa9bfd74335e60cf4d7694 | [
"MIT"
] | null | null | null | #include <iostream>
#include "src/helpers/Enums.h"
#include "src/helpers/Util.h"
using namespace std;
#define COLUMN_USERNAME_SIZE 32
#define COLUMN_EMAIL_SIZE 255
#define size_of_attribute(Struct, Attribute) sizeof(((Struct*)0)->Attribute)
class InputBuffer {
public:
string buffer;
size_t inputLength;
};
c... | 25.269565 | 93 | 0.612526 | rushatgabhane |
6ddc9f276f26863db46a7d9bb11248decc824a27 | 9,276 | cpp | C++ | es-app/src/GameCollections.cpp | alextinti83/RetroStation | 367249bdd2349db081001a8b8ea9111dc8a46f90 | [
"Apache-2.0",
"MIT"
] | 1 | 2017-06-26T14:27:12.000Z | 2017-06-26T14:27:12.000Z | es-app/src/GameCollections.cpp | alextinti83/RetroStation | 367249bdd2349db081001a8b8ea9111dc8a46f90 | [
"Apache-2.0",
"MIT"
] | 21 | 2017-05-14T19:36:37.000Z | 2017-06-09T17:52:21.000Z | es-app/src/GameCollections.cpp | talex-tnt/RetroStation | 367249bdd2349db081001a8b8ea9111dc8a46f90 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "GameCollections.h"
#include "pugixml/src/pugixml.hpp"
#include "Log.h"
#include "FileData.h"
boost::filesystem::path GameCollections::k_emulationStationFolder(".emulationstation");
boost::filesystem::path GameCollections::k_gameCollectionsFolder("game_collections");
static std::string k_autoCreatedCollect... | 27.122807 | 110 | 0.739651 | alextinti83 |
6ddd603d8850a875b53cbc51553c9337e1af6f14 | 275 | cpp | C++ | GateServer/GateServer.cpp | a654889339/FingerGuessGame | 83673423bef882476e61d51a985d0ee27b62c155 | [
"Apache-2.0"
] | 1 | 2021-12-24T15:32:58.000Z | 2021-12-24T15:32:58.000Z | GateServer/GateServer.cpp | a654889339/FingerGuessGame | 83673423bef882476e61d51a985d0ee27b62c155 | [
"Apache-2.0"
] | null | null | null | GateServer/GateServer.cpp | a654889339/FingerGuessGame | 83673423bef882476e61d51a985d0ee27b62c155 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "GateServer.h"
GateServer::GateServer()
{
}
GateServer::~GateServer()
{
}
bool GateServer::Init()
{
bool bResult = false;
JY_STD_BOOL_END
}
void GateServer::UnInit()
{
}
void GateServer::Run()
{
}
void GateServer::Quit()
{
}
| 7.638889 | 25 | 0.64 | a654889339 |
6de3aa8f0c2525cb14a1d81040bec05f202ce3d3 | 94 | cpp | C++ | vault.cpp | Naiks10/I-2-16-KP-12 | 0187f54b8e93efa8d9f26eac37c4f319f5b012ce | [
"Unlicense"
] | 1 | 2020-06-22T13:31:36.000Z | 2020-06-22T13:31:36.000Z | vault.cpp | Naiks10/I-2-16-KP-12 | 0187f54b8e93efa8d9f26eac37c4f319f5b012ce | [
"Unlicense"
] | null | null | null | vault.cpp | Naiks10/I-2-16-KP-12 | 0187f54b8e93efa8d9f26eac37c4f319f5b012ce | [
"Unlicense"
] | null | null | null | #include "vault.h"
Vault::Vault(QObject *parent)
: QObject(parent)
{
}
Vault::~Vault()
{
}
| 8.545455 | 29 | 0.62766 | Naiks10 |
6de8d6e7ccd42ef03182ced210d9159de5c95771 | 2,800 | cpp | C++ | Level_1/I.4/TestLoops.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_1/I.4/TestLoops.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_1/I.4/TestLoops.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | // TestLoops.cpp
//
// Comparing the different ways to loop and make decisions in code. We
// take the example of solving a scalar nonlinear equation x = f(x) by the fixed point
// method (contraction mapping):
//
// x(n+1) = f(x(n)), x(0) given.
//
// We iterate until either fabs(x(n+1) - x(n)) < TOL or n >= MAXITER... | 19.178082 | 100 | 0.631071 | ZhehaoLi9705 |
6dea7d2b4bb64ba9391cf3790abca6800bf3d628 | 3,948 | cpp | C++ | dijkstra's_algo.cpp | Maximetinu/Dijkstra-C | 43e7126ee927d27c0cfb4020e0bf89b8d52658a2 | [
"Unlicense"
] | 4 | 2020-06-12T16:36:00.000Z | 2021-05-05T22:36:37.000Z | dijkstra's_algo.cpp | Maximetinu/Dijkstra-C | 43e7126ee927d27c0cfb4020e0bf89b8d52658a2 | [
"Unlicense"
] | null | null | null | dijkstra's_algo.cpp | Maximetinu/Dijkstra-C | 43e7126ee927d27c0cfb4020e0bf89b8d52658a2 | [
"Unlicense"
] | 7 | 2018-12-10T09:37:00.000Z | 2021-10-04T12:41:36.000Z | /*
Dijkstra's shortest path algo
*/
#include<iostream>
#include<list>
#include<set>
#include<vector>
#include<climits>
using namespace std;
class Node{
public:
int dist;
int cnode;
};
class Comp{
public:
bool operator()(const Node &a , const Node &b){
... | 23.360947 | 86 | 0.372087 | Maximetinu |
6deecc8eda143d791def301f5071f7df85f36f20 | 40,579 | cc | C++ | release/src/router/transmission/qt/details.cc | kerpz/tomato | 60d3c74ab93d43d0e6a22f56f0876c0180c5c7d3 | [
"FSFAP"
] | 2 | 2015-03-22T09:10:21.000Z | 2015-04-21T09:28:55.000Z | release/src/router/transmission/qt/details.cc | kerpz/tomato | 60d3c74ab93d43d0e6a22f56f0876c0180c5c7d3 | [
"FSFAP"
] | null | null | null | release/src/router/transmission/qt/details.cc | kerpz/tomato | 60d3c74ab93d43d0e6a22f56f0876c0180c5c7d3 | [
"FSFAP"
] | null | null | null | /*
* This file Copyright (C) Mnemosyne LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* $Id: details.cc 1415... | 28.258357 | 162 | 0.603169 | kerpz |
6df055af77b2107bcc8f4764da610e5846f3c2bf | 8,932 | cpp | C++ | src/Pressor.cpp | 0mars/BogaudioModules | 5d616816739d520930714d37e8c16a0aee9d2e74 | [
"BSD-3-Clause"
] | 1 | 2019-08-11T02:36:14.000Z | 2019-08-11T02:36:14.000Z | src/Pressor.cpp | 0mars/BogaudioModules | 5d616816739d520930714d37e8c16a0aee9d2e74 | [
"BSD-3-Clause"
] | null | null | null | src/Pressor.cpp | 0mars/BogaudioModules | 5d616816739d520930714d37e8c16a0aee9d2e74 | [
"BSD-3-Clause"
] | null | null | null |
#include "Pressor.hpp"
void Pressor::onReset() {
_modulationStep = modulationSteps;
}
void Pressor::onSampleRateChange() {
_detectorRMS.setSampleRate(engineGetSampleRate());
_modulationStep = modulationSteps;
}
void Pressor::step() {
if (!(
outputs[LEFT_OUTPUT].active ||
outputs[RIGHT_OUTPUT].active ||
ou... | 36.161943 | 140 | 0.713054 | 0mars |
6df1e38da2ff3b486ec19bd919dc2e63b037538e | 917 | cpp | C++ | modules/itmx/src/trackers/RemoteTracker.cpp | torrvision/spaint | 9cac8100323ea42fe439f66407b832b88f72d2fd | [
"Unlicense"
] | 197 | 2015-10-01T07:23:01.000Z | 2022-03-23T03:02:31.000Z | modules/itmx/src/trackers/RemoteTracker.cpp | GucciPrada/spaint | b09ff1ec0d9e123cf316f2737e1b70b5ecc0beea | [
"Unlicense"
] | 16 | 2016-03-26T13:01:08.000Z | 2020-09-02T09:13:49.000Z | modules/itmx/src/trackers/RemoteTracker.cpp | GucciPrada/spaint | b09ff1ec0d9e123cf316f2737e1b70b5ecc0beea | [
"Unlicense"
] | 62 | 2015-10-03T07:14:59.000Z | 2021-08-31T08:58:18.000Z | /**
* itmx: RemoteTracker.cpp
* Copyright (c) Torr Vision Group, University of Oxford, 2017. All rights reserved.
*/
#include "trackers/RemoteTracker.h"
using namespace ITMLib;
namespace itmx {
//#################### CONSTRUCTORS ####################
RemoteTracker::RemoteTracker(const MappingServer_Ptr& mappingS... | 22.365854 | 85 | 0.708833 | torrvision |
6df489847660ad25c03c774cd29d063cb4439d2d | 4,299 | cpp | C++ | lsteamclient/cppISteamFriends_SteamFriends004.cpp | Forty-Bot/Proton | 275c971b3e4f750ce776616f5bb630ad519fd5a4 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 62 | 2018-12-21T10:04:09.000Z | 2022-02-06T07:25:43.000Z | lsteamclient/cppISteamFriends_SteamFriends004.cpp | Miouyouyou/Proton | 72499898a7da4b3d17c748e308b50d9347f4b370 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14 | 2018-12-21T17:53:58.000Z | 2020-09-05T18:29:21.000Z | lsteamclient/cppISteamFriends_SteamFriends004.cpp | Miouyouyou/Proton | 72499898a7da4b3d17c748e308b50d9347f4b370 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-03-04T09:07:53.000Z | 2019-03-04T09:07:53.000Z | #include "steam_defs.h"
#include "steamworks_sdk_102/steam_api.h"
#include "steamclient_private.h"
#include "cppISteamFriends_SteamFriends004.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "struct_converters_102.h"
const char * cppISteamFriends_SteamFriends004_GetPersonaName(void *linux_side)
{
return ((ISteamF... | 38.383929 | 184 | 0.816702 | Forty-Bot |
6dfbf64211275a98975e3c28d253c3588bd31700 | 5,535 | cc | C++ | src/Vehicle/SendMavCommandWithHandlerTest.cc | vincentdavoust/qgroundcontrol | 3b7dd6e87c9600d184e9bfe59cf53500d5639a12 | [
"Apache-2.0"
] | 1 | 2020-06-08T12:16:30.000Z | 2020-06-08T12:16:30.000Z | src/Vehicle/SendMavCommandWithHandlerTest.cc | vincentdavoust/qgroundcontrol | 3b7dd6e87c9600d184e9bfe59cf53500d5639a12 | [
"Apache-2.0"
] | 1 | 2020-05-14T22:29:28.000Z | 2020-07-21T18:18:51.000Z | src/Vehicle/SendMavCommandWithHandlerTest.cc | vincentdavoust/qgroundcontrol | 3b7dd6e87c9600d184e9bfe59cf53500d5639a12 | [
"Apache-2.0"
] | 5 | 2020-12-15T15:38:54.000Z | 2021-02-21T08:19:15.000Z | /****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 47.715517 | 180 | 0.712014 | vincentdavoust |
6dfd090612f39dff3946fe41d680f85af1d00182 | 1,093 | hpp | C++ | src/murmur3.hpp | planetbeing/cpp-driver | 90b683cb7fce9ab480765f8ed50185af53df791c | [
"Apache-2.0"
] | null | null | null | src/murmur3.hpp | planetbeing/cpp-driver | 90b683cb7fce9ab480765f8ed50185af53df791c | [
"Apache-2.0"
] | null | null | null | src/murmur3.hpp | planetbeing/cpp-driver | 90b683cb7fce9ab480765f8ed50185af53df791c | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2015 DataStax
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 29.540541 | 79 | 0.691674 | planetbeing |
6dff009ab4680bf601e1414965b3e558df537989 | 9,165 | cpp | C++ | WorkScript/Function/Function.cpp | jingjiajie/WorkScript | 6b80932fcdbae0e915c37bac19d262025234074b | [
"MIT"
] | 3 | 2018-07-23T10:59:00.000Z | 2019-04-05T04:57:19.000Z | WorkScript/Function/Function.cpp | jingjiajie/WorkScript | 6b80932fcdbae0e915c37bac19d262025234074b | [
"MIT"
] | null | null | null | WorkScript/Function/Function.cpp | jingjiajie/WorkScript | 6b80932fcdbae0e915c37bac19d262025234074b | [
"MIT"
] | 1 | 2019-06-28T05:57:47.000Z | 2019-06-28T05:57:47.000Z | #include <sstream>
#include "Function.h"
#include "Locales.h"
#include "InstantialContext.h"
#include "FunctionType.h"
#include "FunctionFragment.h"
#include "Exception.h"
#include "FunctionCache.h"
using namespace std;
using namespace WorkScript;
Function::Function(
AbstractContext *baseContext,
cons... | 36.66 | 152 | 0.643317 | jingjiajie |
6dff277ffcdf135401c9eb363a3304256edccf4a | 2,314 | cpp | C++ | 06_dynamic_programming/coin_change_expl.cpp | KattisMaster/T-414-AFLV | 8ba3b36a768715da67dacfa466360f66c1ad6446 | [
"CC-BY-4.0"
] | 628 | 2017-03-28T13:31:08.000Z | 2022-03-30T20:27:06.000Z | 06_dynamic_programming/coin_change_expl.cpp | nitincs/T-414-AFLV | 8ba3b36a768715da67dacfa466360f66c1ad6446 | [
"CC-BY-4.0"
] | 4 | 2017-09-13T05:42:00.000Z | 2018-03-02T16:34:33.000Z | 06_dynamic_programming/coin_change_expl.cpp | nitincs/T-414-AFLV | 8ba3b36a768715da67dacfa466360f66c1ad6446 | [
"CC-BY-4.0"
] | 228 | 2017-03-28T20:09:03.000Z | 2022-03-23T18:21:11.000Z | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <strin... | 21.229358 | 151 | 0.548401 | KattisMaster |
a300cabe013fc7538887ee0f230436510e19d1c0 | 646 | cpp | C++ | wp-connection.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | 2 | 2020-11-22T23:45:19.000Z | 2020-12-14T06:54:31.000Z | wp-connection.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | null | null | null | wp-connection.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | 1 | 2021-05-13T12:23:19.000Z | 2021-05-13T12:23:19.000Z | #include <inttypes.h>
#include <fstream>
#include <sstream>
#include "wp-connection.h"
#include "errlist.h"
/**
* I dont remember what is it
* Connect to the push service and process push messages
* @param wpnKeys keys
* @param subscription connection properties
* @param errorDescription return error explanation ... | 22.275862 | 73 | 0.721362 | commandus |
a30235ed6636df7ec6f4c750eb57774a1edd24e8 | 1,108 | cpp | C++ | test/ff.test.unit/source/audio/effect_tests.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | test/ff.test.unit/source/audio/effect_tests.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | test/ff.test.unit/source/audio/effect_tests.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "../utility.h"
namespace ff::test::audio
{
TEST_CLASS(effect_tests)
{
public:
TEST_METHOD(effect_resource)
{
auto result = ff::test::create_resources(R"(
{
"test_wav": { "res:type": "file", "file": "file:test_effect.w... | 28.410256 | 106 | 0.490072 | spadapet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.