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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd5fa10b6db556030c76f218199308328ececf93 | 5,256 | cpp | C++ | src/shapes/ofxLaserPolyline.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 228 | 2015-08-19T06:33:13.000Z | 2022-03-21T13:38:47.000Z | src/shapes/ofxLaserPolyline.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 19 | 2018-06-29T17:22:39.000Z | 2022-03-11T17:48:42.000Z | src/shapes/ofxLaserPolyline.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 27 | 2015-11-21T02:31:51.000Z | 2022-03-20T02:25:55.000Z | //
// ofxLaserPolyline.cpp
// ofxLaser
//
// Created by Seb Lee-Delisle on 16/11/2017.
//
//
#include "ofxLaserPolyline.h"
using namespace ofxLaser;
Polyline::Polyline() {
reversable = true;
colour = ofColor::white;
cachedProfile = NULL;
multicoloured = false;
tested = false;
profileLabel = "";
}
Poly... | 22.753247 | 125 | 0.68379 | suaretjorge |
fd616d567fa11e1541b57700aaa19c14568de93a | 1,784 | cpp | C++ | source/msynth/msynth/model/util/MEnvelopeFollower.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | 1 | 2022-01-30T07:40:31.000Z | 2022-01-30T07:40:31.000Z | source/msynth/msynth/model/util/MEnvelopeFollower.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | null | null | null | source/msynth/msynth/model/util/MEnvelopeFollower.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | null | null | null | #include "MEnvelopeFollower.h"
/**
* constructor
*/
MEnvelopeFollower::MEnvelopeFollower() :
ivBUp( 0.001f ),
ivBDown( 0.99999f ),
ivPeak( 0.0f )
{
}
/**
* destructor
*/
MEnvelopeFollower::~MEnvelopeFollower()
{
}
/**
* does a envelope follow
*/
void MEnvelopeFollower::goNext( MSoundB... | 19.391304 | 95 | 0.612668 | MRoc |
fd61d39c9df23988ba4e9aab7823a7b49729f496 | 16,936 | cpp | C++ | uppsrc/ide/Debuggers/Gdb.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | uppsrc/ide/Debuggers/Gdb.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | uppsrc/ide/Debuggers/Gdb.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | #include "Debuggers.h"
#define METHOD_NAME UPP_METHOD_NAME("Gdb")
void Gdb::WatchMenu(Bar& bar)
{
bool b = !IdeIsDebugLock();
bar.Add(b, PdbKeys::AK_CLEARWATCHES, THISBACK(ClearWatches));
bar.Add(b, PdbKeys::AK_ADDWATCH, THISBACK(QuickWatch));
}
void Gdb::DebugBar(Bar& bar)
{
using namespace PdbKeys;
bar.Add("... | 21.519695 | 110 | 0.604924 | UltimateScript |
fd6ea4d689aed0719629580f075ec2d06008a897 | 11,246 | cpp | C++ | deployment/configenv/xml_jlibpt/EnvHelper.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | null | null | null | deployment/configenv/xml_jlibpt/EnvHelper.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | null | null | null | deployment/configenv/xml_jlibpt/EnvHelper.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | 3 | 2021-05-02T17:01:57.000Z | 2021-05-02T17:02:28.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2018 HPCC Systems®.
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... | 29.751323 | 146 | 0.65899 | davidarcher |
fd70cfc66f7fe2a203060bb684887e5724c6ecc4 | 3,204 | cpp | C++ | SDK/Plugin/Block/SidechainMerkleBlock.cpp | alexpan0610/Elastos.ELA.SPV.Cpp | 18a089ed0d0c1551868442d2d7e4a1cc7087332e | [
"MIT"
] | null | null | null | SDK/Plugin/Block/SidechainMerkleBlock.cpp | alexpan0610/Elastos.ELA.SPV.Cpp | 18a089ed0d0c1551868442d2d7e4a1cc7087332e | [
"MIT"
] | null | null | null | SDK/Plugin/Block/SidechainMerkleBlock.cpp | alexpan0610/Elastos.ELA.SPV.Cpp | 18a089ed0d0c1551868442d2d7e4a1cc7087332e | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "MerkleBlock.h"
#include "SidechainMerkleBlock.h"
#include <SDK/Common/Log.h>
#include <SDK/Common/Utils.h>
#in... | 32.363636 | 118 | 0.707865 | alexpan0610 |
fd71e098370110c1895a3f40406f7e48a715938a | 6,921 | cc | C++ | src/xpgom/gomwrappeddocument.cc | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | src/xpgom/gomwrappeddocument.cc | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | src/xpgom/gomwrappeddocument.cc | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | /*
The MIT License
Copyright (c) 2008 jacob berkman <jacob@ilovegom.org>
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,... | 27.573705 | 126 | 0.742956 | jberkman |
fd724fb6359a073343a734b542d42d39b738094e | 2,446 | hpp | C++ | 3rdParty/occa/include/occa/lang/transforms/builtins/replacer.hpp | krowe-alcf/nekBench | d314ca6b942076620dd7dab8f11df97be977c5db | [
"BSD-3-Clause"
] | 4 | 2020-02-26T19:33:16.000Z | 2020-12-06T07:50:11.000Z | 3rdParty/occa/include/occa/lang/transforms/builtins/replacer.hpp | krowe-alcf/nekBench | d314ca6b942076620dd7dab8f11df97be977c5db | [
"BSD-3-Clause"
] | 12 | 2020-05-13T03:50:11.000Z | 2021-09-16T16:26:06.000Z | 3rdParty/occa/include/occa/lang/transforms/builtins/replacer.hpp | krowe-alcf/nekBench | d314ca6b942076620dd7dab8f11df97be977c5db | [
"BSD-3-Clause"
] | 10 | 2020-03-02T15:55:02.000Z | 2021-12-03T02:44:10.000Z | #ifndef OCCA_LANG_TRANSFORMS_BUILTINS_REPLACER_HEADER
#define OCCA_LANG_TRANSFORMS_BUILTINS_REPLACER_HEADER
#include <occa/lang/transforms/exprTransform.hpp>
#include <occa/lang/transforms/builtins/finders.hpp>
namespace occa {
namespace lang {
namespace transforms {
class typeReplacer_t : public statemen... | 26.021277 | 64 | 0.560098 | krowe-alcf |
fd7fdf512126c8ab72e0761c16fac614a8a22989 | 1,547 | cpp | C++ | Zork/Creature.cpp | GBMiro/Zork | 219683b488c09592d0bc94deef4457524c6df1a8 | [
"MIT"
] | null | null | null | Zork/Creature.cpp | GBMiro/Zork | 219683b488c09592d0bc94deef4457524c6df1a8 | [
"MIT"
] | null | null | null | Zork/Creature.cpp | GBMiro/Zork | 219683b488c09592d0bc94deef4457524c6df1a8 | [
"MIT"
] | null | null | null | #include "Creature.h"
#include "Player.h"
Creature::Creature(const string& name, const string& description, int HP, int damage, int defense)
: Entity(name, description)
{
type = creature;
this->HP = HP;
this->currentHP = HP;
this->damage = damage;
this->defense = defense;
}
Creature::~Creature()
{
}
void Crea... | 23.439394 | 112 | 0.634777 | GBMiro |
fd814491c924a81cee52114c28548a74daa214c4 | 13,078 | cpp | C++ | training/supplements/src/dx100/src/joint_trajectory_action.cpp | asct/industrial_training | f69c54cad966382ce93b34138696a99abc66f444 | [
"Apache-2.0"
] | null | null | null | training/supplements/src/dx100/src/joint_trajectory_action.cpp | asct/industrial_training | f69c54cad966382ce93b34138696a99abc66f444 | [
"Apache-2.0"
] | null | null | null | training/supplements/src/dx100/src/joint_trajectory_action.cpp | asct/industrial_training | f69c54cad966382ce93b34138696a99abc66f444 | [
"Apache-2.0"
] | null | null | null | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Southwest Research Institute
* 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 co... | 33.793282 | 145 | 0.678238 | asct |
fd835969c4cb9bef93e515b2d29662f1f6643f98 | 4,773 | cpp | C++ | src/rendering/nodes/CullingNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | 7 | 2020-11-02T22:27:27.000Z | 2022-01-11T04:25:48.000Z | src/rendering/nodes/CullingNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | null | null | null | src/rendering/nodes/CullingNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | 2 | 2020-12-09T03:40:05.000Z | 2021-09-14T03:12:40.000Z | #include "CullingNode.h"
#include "SceneNode.h"
#include "geometry/Frustum.h"
#include "utility/Logging.h"
#include "utility/Profiling.h"
#include <imgui.h>
// Shared shader headers
using uint = uint32_t;
#include "IndirectData.h"
#include "LightData.h"
CullingNode::CullingNode(Scene& scene)
: m_scene(scene)
{
}... | 54.862069 | 174 | 0.662057 | Shimmen |
fd873b7017c2da82d0993c9d7a5275bda9ca1c29 | 2,196 | cpp | C++ | Source/Runtime/Private/Scripting/Components/LuaModule_ComHingeJoint.cpp | ValtoForks/BlueshiftEngine | a6684aa3bf9b4bd22d5cc4d4b6647fea6b074fee | [
"Apache-2.0"
] | 410 | 2017-03-03T08:56:54.000Z | 2022-03-29T07:18:46.000Z | Source/Runtime/Private/Scripting/Components/LuaModule_ComHingeJoint.cpp | kbb-uran/BlueshiftEngine | beb690093ca643c38437831c93581e29686ff508 | [
"Apache-2.0"
] | 31 | 2017-03-05T11:37:44.000Z | 2021-09-15T21:28:34.000Z | Source/Runtime/Private/Scripting/Components/LuaModule_ComHingeJoint.cpp | kbb-uran/BlueshiftEngine | beb690093ca643c38437831c93581e29686ff508 | [
"Apache-2.0"
] | 48 | 2017-03-18T05:28:21.000Z | 2022-03-05T12:27:17.000Z | // Copyright(c) 2017 POLYGONTEK
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http ://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 44.816327 | 76 | 0.747723 | ValtoForks |
fd89b6628bd423088f7f2f3fc81e295ea971659f | 1,084 | cpp | C++ | Project/PanelScene.cpp | JaimeBea/UPCMasterEngine | 5989dcb77af734993e424d0a40289d922b356519 | [
"MIT"
] | null | null | null | Project/PanelScene.cpp | JaimeBea/UPCMasterEngine | 5989dcb77af734993e424d0a40289d922b356519 | [
"MIT"
] | null | null | null | Project/PanelScene.cpp | JaimeBea/UPCMasterEngine | 5989dcb77af734993e424d0a40289d922b356519 | [
"MIT"
] | null | null | null | #include "PanelScene.h"
#include "Globals.h"
#include "Application.h"
#include "ModuleEditor.h"
#include "ModuleCamera.h"
#include "ModuleRender.h"
#include "imgui.h"
#include "Math/float3x3.h"
#include "SDL_mouse.h"
#include "SDL_scancode.h"
#include "Leaks.h"
PanelScene::PanelScene() : Panel("Scene", true) {}
vo... | 23.565217 | 90 | 0.685424 | JaimeBea |
fd8e7a8949b4f9c74c8d28a1fc6f497742ad0116 | 24,678 | cpp | C++ | tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVersionedLayerClientTest.cpp | fermeise/here-data-sdk-cpp | e0ebd7bd74463fa3958eb0447b90227a4f322643 | [
"Apache-2.0"
] | 21 | 2019-07-03T07:26:52.000Z | 2019-09-04T08:35:07.000Z | tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVersionedLayerClientTest.cpp | fermeise/here-data-sdk-cpp | e0ebd7bd74463fa3958eb0447b90227a4f322643 | [
"Apache-2.0"
] | 639 | 2019-09-13T17:14:24.000Z | 2020-05-13T11:49:14.000Z | tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVersionedLayerClientTest.cpp | fermeise/here-data-sdk-cpp | e0ebd7bd74463fa3958eb0447b90227a4f322643 | [
"Apache-2.0"
] | 21 | 2020-05-14T15:32:28.000Z | 2022-03-15T13:52:33.000Z | /*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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... | 37.561644 | 80 | 0.702569 | fermeise |
fd8e839d79ce0755493098e8bb0a7fc04e6f71e2 | 1,996 | cpp | C++ | tests/CommandTest.cpp | Superbition/Bakup-Agent | ed6beba6e14bdf7c63faef1ba70a2590419fa505 | [
"Apache-2.0"
] | 5 | 2020-03-06T13:34:16.000Z | 2021-04-12T15:34:36.000Z | tests/CommandTest.cpp | Superbition/Bakup-Agent | ed6beba6e14bdf7c63faef1ba70a2590419fa505 | [
"Apache-2.0"
] | 2 | 2020-03-26T18:17:47.000Z | 2021-05-30T16:02:43.000Z | tests/CommandTest.cpp | Superbition/Bakup-Agent | ed6beba6e14bdf7c63faef1ba70a2590419fa505 | [
"Apache-2.0"
] | 2 | 2021-07-07T05:53:11.000Z | 2021-07-30T16:46:02.000Z | #include <gtest/gtest.h>
#include <Command.h>
#include <Agent.h>
class CommandTest : public ::testing::Test
{
protected:
CommandTest()
{
this->commandString = "echo \"Hello World\"";
this->commandValue = "Hello World";
}
public:
string commandString;
... | 25.922078 | 81 | 0.690381 | Superbition |
fd8f93141e43de333e55df704da361cb5f147c11 | 5,673 | cpp | C++ | rd-cpp/src/rd_core_cpp/src/test/cases/ViewableSetTest.cpp | yvvan/rd | 87ce10eb012af398689fe0a5b9100a2ef8edfdcc | [
"Apache-2.0"
] | null | null | null | rd-cpp/src/rd_core_cpp/src/test/cases/ViewableSetTest.cpp | yvvan/rd | 87ce10eb012af398689fe0a5b9100a2ef8edfdcc | [
"Apache-2.0"
] | null | null | null | rd-cpp/src/rd_core_cpp/src/test/cases/ViewableSetTest.cpp | yvvan/rd | 87ce10eb012af398689fe0a5b9100a2ef8edfdcc | [
"Apache-2.0"
] | 1 | 2020-06-02T12:08:09.000Z | 2020-06-02T12:08:09.000Z | #include <gtest/gtest.h>
#include "reactive/ViewableSet.h"
#include "test_util.h"
using namespace rd;
TEST (viewable_set, advise) {
std::unique_ptr<IViewableSet<int>> set = std::make_unique<ViewableSet<int>>();
std::vector<int> logAdvise;
std::vector<int> logView1;
std::vector<int> logView2;
LifetimeDefinitio... | 25.554054 | 83 | 0.623656 | yvvan |
fd9047123c4345707dee2d51554214c76598917b | 4,032 | cpp | C++ | test/sql/parallelism/interquery/test_concurrentappend.cpp | littlelittlehorse/duckdb | 22ba76e4151bb3b0556e44cef3fcf6fb64747364 | [
"MIT"
] | null | null | null | test/sql/parallelism/interquery/test_concurrentappend.cpp | littlelittlehorse/duckdb | 22ba76e4151bb3b0556e44cef3fcf6fb64747364 | [
"MIT"
] | 1 | 2022-03-20T03:34:29.000Z | 2022-03-20T03:34:29.000Z | test/sql/parallelism/interquery/test_concurrentappend.cpp | littlelittlehorse/duckdb | 22ba76e4151bb3b0556e44cef3fcf6fb64747364 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "duckdb/common/value_operations/value_operations.hpp"
#include "test_helpers.hpp"
#include <atomic>
#include <thread>
using namespace duckdb;
using namespace std;
static constexpr int CONCURRENT_APPEND_THREAD_COUNT = 10;
static constexpr int CONCURRENT_APPEND_INSERT_ELEMENTS = 1000;
TE... | 35.06087 | 115 | 0.730655 | littlelittlehorse |
fd9430f26909f35ddaddcaf069507d03370fe4df | 675 | cpp | C++ | OJ/GDUT/C.cpp | Tomotoes/Algorithm | 8291a7ed498a0a9d763e7e50fffacf78db101a7e | [
"Unlicense"
] | 6 | 2018-09-06T06:46:43.000Z | 2022-03-17T11:34:56.000Z | OJ/GDUT/C.cpp | Tomotoes/Algorithm | 8291a7ed498a0a9d763e7e50fffacf78db101a7e | [
"Unlicense"
] | 4 | 2020-04-18T02:32:10.000Z | 2020-04-18T04:03:56.000Z | OJ/GDUT/C.cpp | Tomotoes/Algorithm | 8291a7ed498a0a9d763e7e50fffacf78db101a7e | [
"Unlicense"
] | 1 | 2020-02-10T18:57:34.000Z | 2020-02-10T18:57:34.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;
const int mod = 10007;
const int N = 51;
int f[N];
void solve()
{
f[0] = 1;
for(int i = 1; i < N; ++ i)
{
f[i] = f[i-1];
if(i > 1) f[i] += f[i-2];
if(i > 2) f[i] +=... | 15 | 34 | 0.376296 | Tomotoes |
fd97e21efc889fb8d4db2a2c904ed4586051092b | 17,866 | cpp | C++ | test.cpp | chessai/pltest | c5d821e86cfaac88d4905d5d5170026b66706d2c | [
"MIT"
] | 1 | 2022-01-24T22:39:46.000Z | 2022-01-24T22:39:46.000Z | test.cpp | chessai/pltest | c5d821e86cfaac88d4905d5d5170026b66706d2c | [
"MIT"
] | null | null | null | test.cpp | chessai/pltest | c5d821e86cfaac88d4905d5d5170026b66706d2c | [
"MIT"
] | 1 | 2022-01-24T03:52:32.000Z | 2022-01-24T03:52:32.000Z |
#include "souffle/CompiledSouffle.h"
extern "C" {
}
namespace souffle {
static const RamDomain RAM_BIT_SHIFT_MASK = RAM_DOMAIN_SIZE - 1;
struct t_btree_ii__0_1__11 {
using t_tuple = Tuple<RamDomain, 2>;
struct t_comparator_0{
int operator()(const t_tuple& a, const t_tuple& b) const {
return (ramBitCast<RamSigned>... | 37.612632 | 394 | 0.696463 | chessai |
fd9aad3497be9e9e744748a5ffb9e075298fbd87 | 1,372 | cpp | C++ | games/saloon/impl/saloon.cpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | null | null | null | games/saloon/impl/saloon.cpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | null | null | null | games/saloon/impl/saloon.cpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | null | null | null | // DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member variables.
// This contains implementation details, written by code, and only useful to code
#include "saloon.hpp"
#include "../../../joueur/src/register.hpp"
#include "../../../joueur/src/exceptions.hpp"
names... | 22.491803 | 90 | 0.612245 | JackLimes |
fd9cc246d6b4fd6b14364e65c8d42f34d4ced63f | 316 | cpp | C++ | src/main.cpp | hamlyn-centre/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | 2 | 2017-08-25T14:11:18.000Z | 2021-09-07T11:47:34.000Z | src/main.cpp | magnumye/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | magnumye/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | 6 | 2017-08-16T16:19:08.000Z | 2020-08-05T06:13:20.000Z | #include <QApplication>
#include "GraphicalUserInterface.h"
int main(int argc, char** argv)
{
std::string config_path;
config_path = "../config/sim_config_win.xml"; // Change here
QApplication app(argc, argv);
GraphicalUserInterface gui (config_path);
gui.show();
return app.exec();
}
| 18.588235 | 66 | 0.677215 | hamlyn-centre |
fd9deced51df97b4f190ad3254755eaae6594c15 | 1,231 | hpp | C++ | tests/unit/coherence/util/filter/InFilterTest.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/unit/coherence/util/filter/InFilterTest.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/unit/coherence/util/filter/InFilterTest.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/util/extractor/IdentityExtractor.hpp"
#include "coherence/util... | 29.309524 | 75 | 0.637693 | chpatel3 |
fd9efeba0053a243ea42698513461126c66ac1bf | 568 | cpp | C++ | app/src/main/cpp/lab1/main1.cpp | kinteg/y4eba | 3edb28653a26e9e634be786ca05cc4bc315ba228 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/lab1/main1.cpp | kinteg/y4eba | 3edb28653a26e9e634be786ca05cc4bc315ba228 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/lab1/main1.cpp | kinteg/y4eba | 3edb28653a26e9e634be786ca05cc4bc315ba228 | [
"Apache-2.0"
] | null | null | null | //
// Created by kinteg on 01.11.2021.
//
#include "lab1/main1.h"
void main1() Жи
обнуляем
cppLabMain1::Lab1 lab1;
int length;
System_out_println "Input length: ";
scanner_next length;
int *arr = new int[length];
System_out_println "Your random arr is: ";
for (int i = 0; i < length;... | 20.285714 | 82 | 0.635563 | kinteg |
fda012ff62c32ca8c90eac0705f7cdf9a37a1c6c | 4,569 | cpp | C++ | cocos2dx_playground/Classes/step_defender_tool_TileSheetNode.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2020-06-11T17:09:44.000Z | 2021-12-25T00:34:33.000Z | cocos2dx_playground/Classes/step_defender_tool_TileSheetNode.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2019-12-21T15:01:01.000Z | 2020-12-05T15:42:43.000Z | cocos2dx_playground/Classes/step_defender_tool_TileSheetNode.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 1 | 2020-09-07T01:32:16.000Z | 2020-09-07T01:32:16.000Z | #include "step_defender_tool_TileSheetNode.h"
#include <new>
#include <numeric>
#include "2d/CCLayer.h"
#include "2d/CCSprite.h"
#include "base/CCDirector.h"
#include "renderer/CCTextureCache.h"
#include "ui/UIButton.h"
#include "ui/UIScale9Sprite.h"
#include "cpg_Clamp.h"
USING_NS_CC;
namespace step_defender
{
n... | 27.859756 | 176 | 0.678923 | R2Road |
fdacd38f340efc247046d26fd3a5a7d394638d98 | 129 | cc | C++ | tensorflow-yolo-ios/dependencies/tensorflow/core/platform/default/logging.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/tensorflow/core/platform/default/logging.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/tensorflow/core/platform/default/logging.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:64cf444726b38c066432a37af00bfb70d2a1064b2f36407cc2d280832bacfa37
size 5787
| 32.25 | 75 | 0.883721 | initialz |
fdad47490a163b7fa69f954408ba0e3f566aba07 | 1,631 | cpp | C++ | src/arch/arm/handlers.cpp | qookei/tart | e039f9c493560f306904793ac9143810aabbf68e | [
"Zlib"
] | 11 | 2020-06-20T19:05:08.000Z | 2021-04-07T17:49:18.000Z | src/arch/arm/handlers.cpp | qookei/tart | e039f9c493560f306904793ac9143810aabbf68e | [
"Zlib"
] | null | null | null | src/arch/arm/handlers.cpp | qookei/tart | e039f9c493560f306904793ac9143810aabbf68e | [
"Zlib"
] | null | null | null | #include "handlers.hpp"
#include <tart/time.hpp>
#include <stdint.h>
#include <tart/log.hpp>
namespace tart {
struct irq_state {
uintptr_t r0, r1, r2, r3, r12;
uintptr_t lr, pc, psr;
void log() {
info() << "r0 = " << frg::hex_fmt{r0} << frg::endlog;
info() << "r1 = " << frg::hex_fmt{r1} << frg::endlog;
in... | 24.712121 | 62 | 0.603311 | qookei |
fdade2822b19689a35a633d30ad866f893c4e64b | 2,409 | cpp | C++ | hiro/core/keyboard.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | hiro/core/keyboard.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | hiro/core/keyboard.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | #if defined(Hiro_Keyboard)
Keyboard::State Keyboard::state;
const vector<string> Keyboard::keys = {
//physical keyboard buttons
"Escape", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12",
"PrintScreen", "ScrollLock", "Pause",
"Insert", "Delete", "Home", "End", "PageUp", "PageDown",
... | 30.1125 | 100 | 0.58572 | CasualPokePlayer |
fdb199ce8cd576f9768198c646e29f03455b5180 | 6,060 | cpp | C++ | source/playlunky/mod/character_sticker_gen.cpp | C-ffeeStain/Playlunky | c0df8a993712192fb44048c8542776ead110441d | [
"MIT"
] | 1 | 2020-12-25T19:42:22.000Z | 2020-12-25T19:42:22.000Z | source/playlunky/mod/character_sticker_gen.cpp | C-ffeeStain/Playlunky | c0df8a993712192fb44048c8542776ead110441d | [
"MIT"
] | 1 | 2021-01-01T18:32:41.000Z | 2021-01-02T09:22:09.000Z | source/playlunky/mod/character_sticker_gen.cpp | C-ffeeStain/Playlunky | c0df8a993712192fb44048c8542776ead110441d | [
"MIT"
] | 1 | 2020-12-25T18:02:55.000Z | 2020-12-25T18:02:55.000Z | #include "character_sticker_gen.h"
#include "png_dds_conversion.h"
#include "virtual_filesystem.h"
#include "util/algorithms.h"
#include "util/image.h"
#include <fmt/format.h>
#include <span>
static constexpr struct { std::uint32_t x, y; } s_CharacterStickerIndex{ .x{ 8 }, .y{ 14 } };
static constexpr struct { std::... | 40.13245 | 148 | 0.716997 | C-ffeeStain |
fdb1bec94b9f22aa049b832744290f22a87d02cd | 59 | cpp | C++ | Source/Tutorial/Components/TutorialMovementComponent.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | 5 | 2022-02-09T21:19:03.000Z | 2022-03-03T01:53:03.000Z | Source/Tutorial/Components/TutorialMovementComponent.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | Source/Tutorial/Components/TutorialMovementComponent.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | #include "Tutorial/Components/TutorialMovementComponent.h"
| 29.5 | 58 | 0.864407 | PsichiX |
fdb2069f751b81eb9524e27b380325cf8de6c810 | 3,774 | cpp | C++ | Engine/source/T3D/sceneComponent/T3DSceneClient.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Engine/source/T3D/sceneComponent/T3DSceneClient.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Engine/source/T3D/sceneComponent/T3DSceneClient.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 34.944444 | 150 | 0.649709 | vbillet |
fdb6a5da320659fc592139a49a30867bb6302410 | 4,016 | cpp | C++ | Blizzlike/Trinity/Scripts/PvP/AlteracValley/boss_vanndar.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/Trinity/Scripts/PvP/AlteracValley/boss_vanndar.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/Trinity/Scripts/PvP/AlteracValley/boss_vanndar.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | 31.873016 | 119 | 0.538596 | 499453466 |
fdb808e50aa17d00acbe8a0719bd27044d20376b | 7,642 | hpp | C++ | plugins/node_watercolor.hpp | Yleroimar/3D-Comic-Rendering | 8c3221625dfbb5a4d5efc92b235d547a4e6e66ad | [
"MIT"
] | 1 | 2021-10-05T09:22:39.000Z | 2021-10-05T09:22:39.000Z | plugins/node_watercolor.hpp | Yleroimar/3D-Comic-Rendering | 8c3221625dfbb5a4d5efc92b235d547a4e6e66ad | [
"MIT"
] | null | null | null | plugins/node_watercolor.hpp | Yleroimar/3D-Comic-Rendering | 8c3221625dfbb5a4d5efc92b235d547a4e6e66ad | [
"MIT"
] | null | null | null | #pragma once
///////////////////////////////////////////////////////////////////////////////////
// _ _ _
// __ ____ _| |_ ___ _ __ ___ ___ | | ___ _ __ _ __ ___ __| | ___
// \ \ /\ / / _` | __/ _ \ '__/ __/ _ \| |/ _ \| '__| ... | 44.690058 | 118 | 0.572232 | Yleroimar |
fdb8c9f1854f747348ce72942bc082a336ccd511 | 8,084 | cpp | C++ | imp_bridge_opencv/src/image_cv.cpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 6 | 2018-12-02T03:03:32.000Z | 2021-01-19T11:20:35.000Z | imp_bridge_opencv/src/image_cv.cpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | null | null | null | imp_bridge_opencv/src/image_cv.cpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T20:02:42.000Z | 2021-04-27T13:05:24.000Z | // Copyright (c) 2015-2016, ETH Zurich, Wyss Zurich, Zurich Eye
// 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
// ... | 34.695279 | 94 | 0.605764 | rockenbf |
fdbf8a5b581c044b1de4946cd7f96d73af8637b6 | 502 | cpp | C++ | leetcode/leetcode198.cpp | KevinYang515/C-Projects | 1bf95a09a0ffc18102f12263c9163619ce6dba55 | [
"MIT"
] | null | null | null | leetcode/leetcode198.cpp | KevinYang515/C-Projects | 1bf95a09a0ffc18102f12263c9163619ce6dba55 | [
"MIT"
] | null | null | null | leetcode/leetcode198.cpp | KevinYang515/C-Projects | 1bf95a09a0ffc18102f12263c9163619ce6dba55 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int rob(vector<int>& nums);
int main(){
vector<vector<int>> nums_v = {{1,2,3,1}, {2,7,9,3,1}}; //4, 12
for (vector<int> nums : nums_v){
printf("%d, ", rob(nums));
}
return 0;
}
int rob(vector<int>& nums) {
int rob = 0, not_rob ... | 18.592593 | 67 | 0.525896 | KevinYang515 |
fdc4230be0acd4c9ffca60485d5e428f197d2f0b | 3,073 | cpp | C++ | Sid's Levels/Level - 2/Binary Search Tree/Predecessor And Successor.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 2/Binary Search Tree/Predecessor And Successor.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 2/Binary Search Tree/Predecessor And Successor.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // { Driver Code Starts
// C++ program to find predecessor and successor in a BST
#include <iostream>
using namespace std;
// BST Node
struct Node
{
int key;
struct Node *left;
struct Node *right;
Node(int x){
key = x;
left = NULL;
right = NULL;
}
};
int key=0;
// This function finds predecessor... | 20.763514 | 69 | 0.493329 | Tiger-Team-01 |
fdc58e14f6959e4d31fdd33886e2ecd1073b15b1 | 13,337 | hpp | C++ | platform/kernel.hpp | zhaozhangjian/ROCclr | 5cefcaf62893fcd86c8feed6bb1ebb84850fcd2f | [
"MIT"
] | 7 | 2022-03-23T07:04:20.000Z | 2022-03-30T02:44:42.000Z | reef-env/rocclr/platform/kernel.hpp | SJTU-IPADS/reef-artifacts | 8750974f2d6655525a2cc317bf2471914fe68dab | [
"Apache-2.0"
] | null | null | null | reef-env/rocclr/platform/kernel.hpp | SJTU-IPADS/reef-artifacts | 8750974f2d6655525a2cc317bf2471914fe68dab | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2008-present Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... | 39.931138 | 98 | 0.714179 | zhaozhangjian |
fdc78960e8089d424fdfc5f6e0281b122fb07e6e | 3,396 | cpp | C++ | src/SolARDescriptorsExtractorSIFTOpencv.cpp | geekyfox90/SolARModuleNonFreeOpenCV | 6b84f668b5c958f15ac66cce5821d268ea50e976 | [
"Apache-2.0"
] | null | null | null | src/SolARDescriptorsExtractorSIFTOpencv.cpp | geekyfox90/SolARModuleNonFreeOpenCV | 6b84f668b5c958f15ac66cce5821d268ea50e976 | [
"Apache-2.0"
] | null | null | null | src/SolARDescriptorsExtractorSIFTOpencv.cpp | geekyfox90/SolARModuleNonFreeOpenCV | 6b84f668b5c958f15ac66cce5821d268ea50e976 | [
"Apache-2.0"
] | null | null | null | /**
* @copyright Copyright (c) 2017 B-com http://www.b-com.com/
*
* 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... | 34.30303 | 159 | 0.694052 | geekyfox90 |
fdcf4655a2e24b845da4f02565b73193ddadc403 | 2,744 | cpp | C++ | aws-cpp-sdk-cloudformation/source/model/DescribePublisherResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-cloudformation/source/model/DescribePublisherResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-cloudformation/source/model/DescribePublisherResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudformation/model/DescribePublisherResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#includ... | 37.081081 | 184 | 0.755831 | perfectrecall |
fdcfd055eb1a2dfcae98d3ab7786164e8008e0bd | 1,414 | cpp | C++ | src/falclib/msgsrc/weaponusagemsg.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/falclib/msgsrc/weaponusagemsg.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/falclib/msgsrc/weaponusagemsg.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #if 0
/*
* Machine Generated source file for message "Weapon Use Message".
* NOTE: The functions here must be completed by hand.
* Generated on 18-August-1997 at 15:21:10
* Generated from file EVENTS.XLS by MicroProse
*/
#include "MsgInc/WeaponUsageMsg.h"
#include "mesg.h"
#include "falclib.h"
#include "falcmesg.... | 23.966102 | 196 | 0.722065 | Terebinth |
fdd4b852c109a8711c8121fe37eef2b07df1494e | 14,332 | cpp | C++ | con512tpl/nv.cpp | seliv55/mito | 5be5849cae120b2942b05c3c3a29c41358c5daea | [
"CECILL-B"
] | null | null | null | con512tpl/nv.cpp | seliv55/mito | 5be5849cae120b2942b05c3c3a29c41358c5daea | [
"CECILL-B"
] | null | null | null | con512tpl/nv.cpp | seliv55/mito | 5be5849cae120b2942b05c3c3a29c41358c5daea | [
"CECILL-B"
] | null | null | null | #include <iostream>
#include "nr.h"
#include "nums.hh"
#include "tk.hh"
#include "nv.hh"
#include "modlab.h"
#include "solvers.h"
#include "analis.h"
using namespace std;
const int hk=0, pfk=hk+1, fbpase=pfk+1, t3pep=fbpase+1, pept3=t3pep+1, pk=pept3+1, pyrlac=pk+1, lacpyr=pyrlac+1, pyrdcm=lacpyr+1, pyrdmc=pyrdcm+1, pd... | 72.383838 | 1,017 | 0.59252 | seliv55 |
fdd56d8951746cd949d5593c4c852ecfc2492fe0 | 1,727 | cpp | C++ | FirmwareSource/libraries/MF_Modules/MFEncoder.cpp | rofl-er/MobiFlight-Connector | 1f0fd45fe1c29fe48a2cb60683d9446e1bc7dcc2 | [
"Unlicense"
] | null | null | null | FirmwareSource/libraries/MF_Modules/MFEncoder.cpp | rofl-er/MobiFlight-Connector | 1f0fd45fe1c29fe48a2cb60683d9446e1bc7dcc2 | [
"Unlicense"
] | null | null | null | FirmwareSource/libraries/MF_Modules/MFEncoder.cpp | rofl-er/MobiFlight-Connector | 1f0fd45fe1c29fe48a2cb60683d9446e1bc7dcc2 | [
"Unlicense"
] | null | null | null | // MFEncoder.cpp
//
// Copyright (C) 2013-2014
#include "MFEncoder.h"
MFEncoder::MFEncoder() : _encoder() {
_initialized = false;
}
void MFEncoder::attach(uint8_t pin1, uint8_t pin2, uint8_t encoderType, const char * name)
{
_pos = 0;
_name = name;
_pin1 = pin1;
_pin2 = pin2;
_enco... | 23.657534 | 97 | 0.598147 | rofl-er |
fdd5d49389fac9849f3d12f1dbc7420e50cfe26d | 1,390 | hpp | C++ | re_common.hpp | userpro/mini_regexp | c77ebb488357e2ddbb5496a948f7a2c8d0eca964 | [
"MIT"
] | 1 | 2020-09-07T07:35:45.000Z | 2020-09-07T07:35:45.000Z | re_common.hpp | userpro/mini_regexp | c77ebb488357e2ddbb5496a948f7a2c8d0eca964 | [
"MIT"
] | null | null | null | re_common.hpp | userpro/mini_regexp | c77ebb488357e2ddbb5496a948f7a2c8d0eca964 | [
"MIT"
] | 1 | 2021-06-18T05:37:58.000Z | 2021-06-18T05:37:58.000Z | #ifndef MINI_REGEXP_COMMON_H_
#define MINI_REGEXP_COMMON_H_
#include <string>
#include <algorithm>
namespace mini_regexp_common
{
inline int is_ANY(char c, bool dotall = false)
{
return dotall ? 1 : (c != '\n');
}
inline int is_range_in(char c, char start, char end)
{
return (c - ... | 23.559322 | 102 | 0.521583 | userpro |
fdd6c4c21ec41f39eaa107b0328cf150cd2a2a2d | 4,956 | cpp | C++ | OrionUO/Party.cpp | BryanNoller/OrionUO | 5985315969c5f3c7c7552392d9d40d4b24b718e2 | [
"MIT"
] | 169 | 2016-09-16T22:24:34.000Z | 2022-03-27T09:58:20.000Z | OrionUO/Party.cpp | BryanNoller/OrionUO | 5985315969c5f3c7c7552392d9d40d4b24b718e2 | [
"MIT"
] | 104 | 2016-10-26T23:02:52.000Z | 2021-10-02T17:36:04.000Z | OrionUO/Party.cpp | BryanNoller/OrionUO | 5985315969c5f3c7c7552392d9d40d4b24b718e2 | [
"MIT"
] | 111 | 2016-09-16T22:25:30.000Z | 2022-03-28T07:01:40.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** Party.cpp
**
** Copyright (C) August 2016 Hotride
**
***************... | 29.325444 | 98 | 0.375101 | BryanNoller |
fdd7f3abe3ec2632ba1366b6a831520068eae9ec | 3,467 | cpp | C++ | Sunny-Core/01_FRAMEWORK/graphics/cameras/FPSCamera.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | 20 | 2018-01-19T06:28:36.000Z | 2021-08-06T14:06:13.000Z | Sunny-Core/01_FRAMEWORK/graphics/cameras/FPSCamera.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | null | null | null | Sunny-Core/01_FRAMEWORK/graphics/cameras/FPSCamera.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | 3 | 2019-01-29T08:58:04.000Z | 2021-01-02T06:33:20.000Z | #include "FPSCamera.h"
#include "../../app/Input.h"
#include "../../app/Application.h"
namespace sunny
{
namespace graphics
{
FPSCamera::FPSCamera(const maths::mat4& projectionMatrix)
: Camera(projectionMatrix), m_mouseSensitivity(0.002f), m_speed(0.4f), m_sprintSpeed(m_speed * 4.0f), m_mouseWasGrabbed(false)
... | 29.134454 | 128 | 0.684165 | adunStudio |
fddccfe11f21f0c7f69c2db9256da375102d9c79 | 726 | cpp | C++ | interface/source/texturemanager_bind.cpp | fire-archive/llcoi | e0d2c30ba231e62e98b1322f1a1b01a89b9abb00 | [
"MIT"
] | null | null | null | interface/source/texturemanager_bind.cpp | fire-archive/llcoi | e0d2c30ba231e62e98b1322f1a1b01a89b9abb00 | [
"MIT"
] | null | null | null | interface/source/texturemanager_bind.cpp | fire-archive/llcoi | e0d2c30ba231e62e98b1322f1a1b01a89b9abb00 | [
"MIT"
] | 1 | 2021-11-30T23:13:38.000Z | 2021-11-30T23:13:38.000Z | /* __ __ _
* / // /_____ ____ (_)
* / // // ___// __ \ / /
* / // // /__ / /_/ // /
* /_//_/ \___/ \____//_/
* https://bitbucket.org/galaktor/llcoi
* copyright (c) 2011, llcoi Team
* MIT license applies - see file "LICENSE" for details.
*/
#include "texturemanager_bind.h"
#inclu... | 30.25 | 90 | 0.676309 | fire-archive |
fddcd227235f35667907890d45e34d9265832380 | 634 | cpp | C++ | FDTD/PhysicalConstants.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | FDTD/PhysicalConstants.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | FDTD/PhysicalConstants.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | /*
* PhysicalConstants.cpp
* TROGDOR
*
* Created by Paul Hansen on 7/14/06.
* Copyright 2007 Stanford University. All rights reserved.
*
* This file is covered by the MIT license. See LICENSE.txt.
*/
#include "PhysicalConstants.h"
#include <cmath>
//#define SI_UNITS
#ifdef SI_UNITS
const double Consta... | 21.862069 | 62 | 0.717666 | plisdku |
fde5a2ba311d2e2ac93981669ab5983850ec99ad | 4,055 | cpp | C++ | hphp/runtime/ext/debugger/ext_debugger.cpp | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/runtime/ext/debugger/ext_debugger.cpp | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/debugger/ext_debugger.cpp | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | 34.65812 | 80 | 0.58619 | kkopachev |
fdeac03952590b3318262e86d4a04b75ccb03f9c | 2,511 | hpp | C++ | src/mlpack/methods/ann/layer/alpha_dropout_impl.hpp | abinezer/mlpack | 8002e49150742acea4e76deef8161653b8350936 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-07T14:34:37.000Z | 2019-11-07T14:34:37.000Z | src/mlpack/methods/ann/layer/alpha_dropout_impl.hpp | 876arham/mlpack | 1379831e578037c9d0ed3a1683ce76e3d1c8247e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-10T17:39:50.000Z | 2020-04-11T14:56:25.000Z | src/mlpack/methods/ann/layer/alpha_dropout_impl.hpp | 876arham/mlpack | 1379831e578037c9d0ed3a1683ce76e3d1c8247e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file alpha_dropout_impl.hpp
* @author Dakshit Agrawal
*
* Definition of the Alpha-Dropout class, which implements a regularizer that
* randomly sets units to alpha-dash to prevent them from co-adapting and
* makes an affine transformation so as to keep the mean and variance of
* outputs at their original ... | 31 | 80 | 0.72959 | abinezer |
fdeb3e132f6d1dae77d257c7dfea29e1e2e37e64 | 1,622 | cpp | C++ | src/Detectors/FaceEmbedder.cpp | maciejjaskiewicz/FacelinkStudio | 4bcb4ed06932546e58af4a01ee2b17e3dc45f366 | [
"MIT"
] | 1 | 2020-08-11T02:40:32.000Z | 2020-08-11T02:40:32.000Z | src/Detectors/FaceEmbedder.cpp | maciejjaskiewicz/FacelinkStudio | 4bcb4ed06932546e58af4a01ee2b17e3dc45f366 | [
"MIT"
] | null | null | null | src/Detectors/FaceEmbedder.cpp | maciejjaskiewicz/FacelinkStudio | 4bcb4ed06932546e58af4a01ee2b17e3dc45f366 | [
"MIT"
] | null | null | null | #include "FaceEmbedder.hpp"
#include "Utils/DataUtils.hpp"
#include <dlib/opencv/to_open_cv.h>
namespace Fls
{
void FaceEmbedder::init(const std::string& embedderPath)
{
mInitializedFuture = std::async(std::launch::async,
[this, embedderPath]()
{
mEmbeddingNetwork = cv... | 27.491525 | 89 | 0.601726 | maciejjaskiewicz |
fdeca9d1ef907794fc1ece24e2940cf1f7fe0948 | 4,445 | cpp | C++ | Algorithms/sorting/priorityQueue/priorityQueue/priorityQueue/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | 1 | 2019-05-01T04:51:14.000Z | 2019-05-01T04:51:14.000Z | Algorithms/sorting/priorityQueue/priorityQueue/priorityQueue/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | null | null | null | Algorithms/sorting/priorityQueue/priorityQueue/priorityQueue/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | null | null | null | //
// main.cpp
// priorityQueue
//
// Created by mingyue on 2021/10/19.
// Copyright © 2021 Gmingyue. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
typedef struct Comparable {
public:
int value;
int compareTo(Comparable a) {
return value - a.value;
}
}Comp... | 21.066351 | 57 | 0.410349 | mingyuefly |
fdf55212c7afc380a953a21a61637e974b46e18e | 8,320 | cpp | C++ | Source/Tools/ShaderConductorCmd.cpp | KawBuma/ShaderConductor | 7577fedb39dcc6eb09d5883b23bd3ad922ba4897 | [
"MIT"
] | 881 | 2019-05-07T13:46:16.000Z | 2022-03-31T11:16:15.000Z | Source/Tools/ShaderConductorCmd.cpp | Jorgemagic/ShaderConductor | 1b30a7f357d7f55963a142f6756849979727fd8f | [
"MIT"
] | 41 | 2018-11-09T05:08:02.000Z | 2019-05-06T18:55:12.000Z | Source/Tools/ShaderConductorCmd.cpp | Jorgemagic/ShaderConductor | 1b30a7f357d7f55963a142f6756849979727fd8f | [
"MIT"
] | 114 | 2019-05-24T11:50:58.000Z | 2022-03-30T09:20:11.000Z | /*
* ShaderConductor
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
* MIT License
*
* 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
... | 34.238683 | 152 | 0.611178 | KawBuma |
fdf559f14a2d365b04af4a2fdd067e215da004ce | 1,962 | cc | C++ | CaloCluster/src/ClusterMoments.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | CaloCluster/src/ClusterMoments.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | CaloCluster/src/ClusterMoments.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | //
// Utility to compute the cluster moments
//
// Original author B. Echenard
//
// Mu2e includes
#include "CaloCluster/inc/ClusterMoments.hh"
#include "CalorimeterGeom/inc/Calorimeter.hh"
#include "RecoDataProducts/inc/CaloCrystalHitCollection.hh"
#include "RecoDataProducts/inc/CaloCluster.hh"
//#include "CLHEP/Uni... | 27.633803 | 78 | 0.56371 | bonventre |
fdf69bb525e25e5fccebd93c125b44d81602ea00 | 368 | cpp | C++ | classwork/05_assign/main.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-ArbazMalik1 | c6a2e46fbf92ee8c4babaf1c455f4474ab158366 | [
"MIT"
] | null | null | null | classwork/05_assign/main.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-ArbazMalik1 | c6a2e46fbf92ee8c4babaf1c455f4474ab158366 | [
"MIT"
] | null | null | null | classwork/05_assign/main.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-ArbazMalik1 | c6a2e46fbf92ee8c4babaf1c455f4474ab158366 | [
"MIT"
] | null | null | null | #include "rectangle.h"
#include<iostream>
/*
Create a vector of rectangles
Add 3 Rectangle classes to the vector:
Width Height Area
4 5 20
10 10 100
100 10 1000
Iterate the vector and display the Area for each Rectangle on one line and the total area for the
3 rectangles.
*/
int main()
... | 20.444444 | 99 | 0.663043 | acc-cosc-1337-spring-2019 |
fdf6e5f4a5bf5a1b79d005857d0ae5e88d54ae23 | 983 | hpp | C++ | include/KernelsBandwidth.hpp | viroulep/replay_tool | 6eeae5fee1dfc2fe1a96977aa16e06ecdf8fa2e1 | [
"MIT"
] | null | null | null | include/KernelsBandwidth.hpp | viroulep/replay_tool | 6eeae5fee1dfc2fe1a96977aa16e06ecdf8fa2e1 | [
"MIT"
] | null | null | null | include/KernelsBandwidth.hpp | viroulep/replay_tool | 6eeae5fee1dfc2fe1a96977aa16e06ecdf8fa2e1 | [
"MIT"
] | null | null | null | #ifndef KERNELSBANDWIDTH_H
#define KERNELSBANDWIDTH_H
#include <random>
#include <hwloc.h>
#include "kernel.hpp"
extern hwloc_topology_t topo;
template<typename T>
T *alloc_init_array(T *array, int n_elems, bool random)
{
hwloc_nodeset_t aff = hwloc_bitmap_alloc();
hwloc_bitmap_fill(aff);
if (array)
hwloc_... | 23.404762 | 93 | 0.690743 | viroulep |
fdf9718d51fc0fd21f715575e30f6382cdf301aa | 3,731 | cc | C++ | test/performance/symbol_names.cc | diegoferigo/ign-physics | 8f0d8ce3229f53fbf4e05cb0273530169e6d9fef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/performance/symbol_names.cc | diegoferigo/ign-physics | 8f0d8ce3229f53fbf4e05cb0273530169e6d9fef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/performance/symbol_names.cc | diegoferigo/ign-physics | 8f0d8ce3229f53fbf4e05cb0273530169e6d9fef | [
"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... | 33.918182 | 79 | 0.719378 | diegoferigo |
fdfcf9767c118da648ea8f6c29d4c2f02eb2a95f | 440 | cpp | C++ | stack_main.cpp | gtmills/algorithms | 1fc8ec7e5772082e33cbba54538032253cfc56d8 | [
"Apache-2.0"
] | null | null | null | stack_main.cpp | gtmills/algorithms | 1fc8ec7e5772082e33cbba54538032253cfc56d8 | [
"Apache-2.0"
] | 1 | 2021-11-13T01:27:05.000Z | 2021-11-13T01:27:05.000Z | stack_main.cpp | gtmills/algorithms | 1fc8ec7e5772082e33cbba54538032253cfc56d8 | [
"Apache-2.0"
] | null | null | null | #include <assert.h>
#include "stack.hpp"
int main()
{
StackWithMax stack;
stack.push(1);
stack.push(2);
stack.push(3);
assert(stack.peak() == 3);
assert(stack.getMax() == 3);
assert(stack.pop() == 3);
assert(stack.getMax() == 2);
assert(stack.pop() == 2);
assert(stack.getMax()... | 18.333333 | 33 | 0.540909 | gtmills |
fdfd40b0dbe5ec02d9874c2c7b76156d8b3bd13b | 31,091 | cpp | C++ | dwarf/SB/Game/zGrid.cpp | stravant/bfbbdecomp | 2126be355a6bb8171b850f829c1f2731c8b5de08 | [
"OLDAP-2.7"
] | 1 | 2021-01-05T11:28:55.000Z | 2021-01-05T11:28:55.000Z | dwarf/SB/Game/zGrid.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | null | null | null | dwarf/SB/Game/zGrid.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | 1 | 2022-03-30T15:15:08.000Z | 2022-03-30T15:15:08.000Z | typedef struct xBaseAsset;
typedef struct RwObjectHasFrame;
typedef struct xModelPool;
typedef struct xScene;
typedef struct xAnimFile;
typedef struct xPortalAsset;
typedef struct RwResEntry;
typedef struct xShadowSimpleCache;
typedef struct RxPipelineNode;
typedef struct xAnimPlay;
typedef struct xEntCollis;
typedef s... | 19.591052 | 74 | 0.756682 | stravant |
fdfe8d63fd26e2fe0786810be04c304c768a425d | 12,952 | hpp | C++ | src/IO/H5/File.hpp | trami18/spectre | 6b1f6497bf2e26d1474bfadf143b3321942c40b4 | [
"MIT"
] | 2 | 2021-04-11T04:07:42.000Z | 2021-04-11T05:07:54.000Z | src/IO/H5/File.hpp | trami18/spectre | 6b1f6497bf2e26d1474bfadf143b3321942c40b4 | [
"MIT"
] | 1 | 2022-03-25T18:26:16.000Z | 2022-03-25T19:30:39.000Z | src/IO/H5/File.hpp | isaaclegred/spectre | 5765da85dad680cad992daccd479376c67458a8c | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
/// \file
/// Defines class h5::H5File
#pragma once
#include <algorithm>
#include <exception>
#include <hdf5.h>
#include <memory>
#include <ostream>
#include <string>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <vector>
#... | 37.111748 | 80 | 0.664839 | trami18 |
fdff134d7d08080d5bc88d93be6880aac87a2946 | 698 | cpp | C++ | src/tri.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | src/tri.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | 1 | 2017-05-16T15:57:29.000Z | 2017-05-17T19:43:56.000Z | src/tri.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if(a == b + c) cout << a << '=' << b << '+' << c << endl;
else if(a == b - c) cout << a << '=' << b << '-' << c << endl;
else if(a == b * c... | 29.083333 | 63 | 0.393983 | JulianNeeleman |
a900e7e0ed9fec6bc2e7d5a0648a1dadcc4d25a7 | 492 | cpp | C++ | src/src/agent/TaskVssWorker.cpp | pytf/intelligent-protector | 0d454b54fc91e42accf402c5584f8526cdb7a170 | [
"Apache-2.0"
] | 5 | 2017-03-21T09:11:55.000Z | 2018-11-19T14:44:36.000Z | src/src/agent/TaskVssWorker.cpp | pytf/intelligent-protector | 0d454b54fc91e42accf402c5584f8526cdb7a170 | [
"Apache-2.0"
] | 3 | 2018-02-06T06:17:10.000Z | 2020-07-10T17:29:47.000Z | src/src/agent/TaskVssWorker.cpp | pytf/intelligent-protector | 0d454b54fc91e42accf402c5584f8526cdb7a170 | [
"Apache-2.0"
] | 7 | 2018-02-06T03:54:13.000Z | 2021-09-08T10:51:38.000Z | /*******************************************************************************
* Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved.
********************************************************************************/
#ifdef WIN32
#include "agent/TaskVssWorker.h"
#include "common/Log.h"
#include "... | 23.428571 | 81 | 0.495935 | pytf |
a9011963e3fb57b0cbe2fcaaae6d72be5b2d8ad2 | 5,336 | hpp | C++ | src/core/DistributedRegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/DistributedRegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/DistributedRegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | 1 | 2021-07-21T06:48:19.000Z | 2021-07-21T06:48:19.000Z | // Copyright (c) 2020 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#ifndef OVK_CORE_DISTRIBUTED_REGION_HASH_HPP_INCLUDED
#define OVK_CORE_DISTRIBUTED_REGION_HASH_HPP_INCLUDED
#include <ovk/core/Array.hpp>
#include <ovk/core/ArrayView.hpp>
#include <ovk/core/Box.hpp>
#... | 31.204678 | 99 | 0.778298 | gyzhangqm |
a909a4cbefadf621a42d3bde37f5db0177572fbd | 6,218 | cpp | C++ | Applications/flux/misstypes.cpp | ronichoudhury/mtvx | 379cfbfd7a55440e6862526c1817dfad5c6ce171 | [
"Apache-2.0"
] | 2 | 2018-07-30T17:02:50.000Z | 2020-06-12T03:01:21.000Z | Applications/flux/misstypes.cpp | waxlamp/mtvx | 379cfbfd7a55440e6862526c1817dfad5c6ce171 | [
"Apache-2.0"
] | null | null | null | Applications/flux/misstypes.cpp | waxlamp/mtvx | 379cfbfd7a55440e6862526c1817dfad5c6ce171 | [
"Apache-2.0"
] | null | null | null | // Copyright 2011 A.N.M. Imroz Choudhury
//
// misstypes.cpp - Reads in a family of hit-level output files,
// determining the miss type of each cache miss.
// MTV headers.
#include <Core/Dataflow/TraceReader.h>
using MTV::TraceReader;
// TCLAP headers.
#include <tclap/CmdLine.h>
// System headers.
#include <cstdlib... | 34.73743 | 117 | 0.527822 | ronichoudhury |
a90a90460c8d2189a6b1d7b148fe019aed7c9231 | 2,445 | hpp | C++ | testspr/singleton.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/testspr/singleton.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | testspr/singleton.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==... | 26.868132 | 85 | 0.690798 | thinkoid |
a90b1792951d132fe2e1862648695e4798798c98 | 6,444 | cpp | C++ | ares/ws/apu/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ws/apu/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ws/apu/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | auto APU::readIO(n16 address) -> n8 {
n8 data;
switch(address) {
case 0x004a ... 0x004c: //SDMA_SRC
data = dma.state.source.byte(address - 0x004a);
break;
case 0x004e ... 0x0050: //SDMA_LEN
data = dma.state.length.byte(address - 0x004e);
break;
case 0x0052: //SDMA_CTRL
data.bit(0,1)... | 25.270588 | 59 | 0.624767 | CasualPokePlayer |
a915359fe2da71a4df880b6f0250201f035d0e6e | 252 | cpp | C++ | 010.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 010.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 010.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdint>
#include "prime_util.h"
int main()
{
std::vector<int> primes = util::get_primes(1999999);
uint64_t sum = 0;
for (int &prime : primes)
sum += prime;
std::cout << sum;
}
| 15.75 | 56 | 0.607143 | LeeYiyuan |
a91543c6029d3d3765597e5a0d570b602ed8a41e | 2,457 | cpp | C++ | widgets/demos/ex-tree-model/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 16 | 2017-01-11T17:28:03.000Z | 2021-09-27T16:12:01.000Z | widgets/demos/ex-tree-model/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | null | null | null | widgets/demos/ex-tree-model/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:44:32.000Z | 2021-01-22T07:57:34.000Z | /*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include <QtWidgets>
#i... | 27.920455 | 82 | 0.597884 | sfaure-witekio |
a918dc5ea37cbd47854c459685e7b760b959ab5f | 2,422 | cpp | C++ | Graph/FloodFill_DFS.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | 1 | 2021-07-20T06:08:26.000Z | 2021-07-20T06:08:26.000Z | Graph/FloodFill_DFS.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | Graph/FloodFill_DFS.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | // QUARANTINE DAYS..;)
//image is made up of pixels(box) so tis like ek block ko bhara aur vo continue row
//ya column ko fill karta rahega jab tak koi restriction na ho.
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define test long long int tt;cin>>tt;while(tt--)
#define rep(i,a,b) ... | 29.536585 | 136 | 0.586292 | scortier |
a91f7f98296d79d8827283465caf618fb3a7f2e5 | 4,459 | hpp | C++ | include/lbann/data_readers/data_reader_multi_images.hpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | include/lbann/data_readers/data_reader_multi_images.hpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | include/lbann/data_readers/data_reader_multi_images.hpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 36.85124 | 98 | 0.704867 | andy-yoo |
a925dc760f8fe4cd129a75802cf84f5aee7060cc | 1,511 | cpp | C++ | src/main.cpp | Floaddy/SFML-Nonogram | 81dc67ccb378a5b251c4bb7b355b6f266d3c95a6 | [
"MIT"
] | null | null | null | src/main.cpp | Floaddy/SFML-Nonogram | 81dc67ccb378a5b251c4bb7b355b6f266d3c95a6 | [
"MIT"
] | null | null | null | src/main.cpp | Floaddy/SFML-Nonogram | 81dc67ccb378a5b251c4bb7b355b6f266d3c95a6 | [
"MIT"
] | null | null | null | #include <ctime>
#include <cstdlib>
#include <vector>
#include <SFML/Graphics.hpp>
#include "EventManager.hpp"
#include "FontManager.hpp"
#include "GameManager.hpp"
#include "LevelManager.hpp"
#include "ScreenManager.hpp"
#include "TextureManager.hpp"
#include "WindowManager.hpp"
#include "Header.hpp"
... | 26.982143 | 144 | 0.680344 | Floaddy |
a928eff0d85bc2db6606ee7b7badeb002a2891e8 | 2,393 | hpp | C++ | libraries/touchgfx_lib/Middlewares/ST/touchgfx/framework/include/touchgfx/transforms/TouchCalibration.hpp | LIGHT1213/H750_TouchGFX | d38acec2f2d28eaac07ef6316d6f008fb574488d | [
"MIT"
] | null | null | null | libraries/touchgfx_lib/Middlewares/ST/touchgfx/framework/include/touchgfx/transforms/TouchCalibration.hpp | LIGHT1213/H750_TouchGFX | d38acec2f2d28eaac07ef6316d6f008fb574488d | [
"MIT"
] | null | null | null | libraries/touchgfx_lib/Middlewares/ST/touchgfx/framework/include/touchgfx/transforms/TouchCalibration.hpp | LIGHT1213/H750_TouchGFX | d38acec2f2d28eaac07ef6316d6f008fb574488d | [
"MIT"
] | 1 | 2021-12-04T02:58:52.000Z | 2021-12-04T02:58:52.000Z | /**
******************************************************************************
* This file is part of the TouchGFX 4.16.0 distribution.
*
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... | 29.182927 | 165 | 0.638529 | LIGHT1213 |
a92b3d12c2e111ff4f4f4a0dcc4147d57045b0d4 | 8,556 | cc | C++ | wrappers/8.1.1/vtkGeoSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkGeoSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkGeoSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkObjectWrap.h"
#include "vtkGeoSourceWrap.h"
#include "vtkObjectBaseWrap.h"
#include "vtkGeoTreeNodeWrap.h"
#include "vtkCollectionWrap.h"
#i... | 30.666667 | 107 | 0.720079 | axkibe |
a92ce641fc6c3c281c09f35fa8a6a24951b611be | 861 | cpp | C++ | Applications/DataExplorer/VtkVis/QVtkDataSetMapper.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2016-09-02T11:49:52.000Z | 2016-09-02T11:49:52.000Z | Applications/DataExplorer/VtkVis/QVtkDataSetMapper.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 13 | 2015-01-09T13:08:57.000Z | 2018-01-25T12:56:17.000Z | Applications/DataExplorer/VtkVis/QVtkDataSetMapper.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 2 | 2019-08-13T13:37:03.000Z | 2021-02-01T10:19:03.000Z | /**
* \file
* \author Lars Bilke
* \date 2010-11-12
* \brief Implementation of the QVtkDataSetMapper class.
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
*... | 22.657895 | 76 | 0.704994 | OlafKolditz |
a92dd66336aef918fbb90ee121d16477f9d4df05 | 2,255 | cpp | C++ | utag/app/src/TagEditor/eventSaveTagButton.cpp | ronald112/utag | 277af8cec0a2f429a76f52e322d423e3c5af595a | [
"MIT"
] | null | null | null | utag/app/src/TagEditor/eventSaveTagButton.cpp | ronald112/utag | 277af8cec0a2f429a76f52e322d423e3c5af595a | [
"MIT"
] | null | null | null | utag/app/src/TagEditor/eventSaveTagButton.cpp | ronald112/utag | 277af8cec0a2f429a76f52e322d423e3c5af595a | [
"MIT"
] | 1 | 2020-11-09T18:59:00.000Z | 2020-11-09T18:59:00.000Z | #include "TagEditor.h"
#include <MiscHeaders.h>
void TagEditor::save() {
if ((QMessageBox::question(this, tr("uTag"),
tr("Do you really want to save changes?"),
QMessageBox::Ok | QMessageBox::Cancel),
QMessageBox::Ok) == QMessageBox::Ok) {
auto edit = m_audioFilesMap.find(m_curEditableFilePath.... | 43.365385 | 99 | 0.564967 | ronald112 |
a92e719895de35344ed7bfd628fce1c0c16dec71 | 230 | cpp | C++ | Signal Flow Simulation/truetime-2.0/examples/advanced_demos/RUNES_demo/node/nwrcvcode.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | 1 | 2019-08-31T08:06:48.000Z | 2019-08-31T08:06:48.000Z | Signal Flow Simulation/truetime-2.0/examples/advanced_demos/RUNES_demo/node/nwrcvcode.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | null | null | null | Signal Flow Simulation/truetime-2.0/examples/advanced_demos/RUNES_demo/node/nwrcvcode.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | 1 | 2020-01-07T10:46:23.000Z | 2020-01-07T10:46:23.000Z | double nwrcvcode(int seg, void* data) {
switch (seg) {
case 1:
// Let AODV layer deal with network message
ttCreateJob("AODVRcvTask");
return 0.0001;
case 2:
return FINISHED;
}
return FINISHED;
}
| 16.428571 | 47 | 0.621739 | raulest50 |
a92f5030c2905728fd51c92885689e37f32ae210 | 1,337 | cpp | C++ | OpenGL_GLFW_Project/MathFunctions.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | OpenGL_GLFW_Project/MathFunctions.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | OpenGL_GLFW_Project/MathFunctions.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null |
//Created by Forrest Miller on 7/24/2018
//See header file also for templated-function definitions
#include "MathFunctions.h"
namespace MathFunc {
//This function seems really inefficient since it looks like it has to recreate the twister each time it runs...
float getRandomInRangef(float min, float max) {
long... | 31.093023 | 125 | 0.741212 | millerf1234 |
a9322be321fbe86f168d33610b8de3366a2dfd4e | 908 | cpp | C++ | 07.ArraysQuestions/maxCircularSubarraySum.cpp | Sarthaknegigit/Open-DSAProblems | 246166f4127210ccb82d9cb6f5f736148c0975a4 | [
"MIT"
] | 1 | 2021-06-11T08:21:52.000Z | 2021-06-11T08:21:52.000Z | 07.ArraysQuestions/maxCircularSubarraySum.cpp | Sarthaknegigit/Open-DSAProblems | 246166f4127210ccb82d9cb6f5f736148c0975a4 | [
"MIT"
] | 1 | 2021-08-07T13:12:09.000Z | 2021-08-07T13:12:09.000Z | 07.ArraysQuestions/maxCircularSubarraySum.cpp | Sarthaknegigit/Open-DSAProblems | 246166f4127210ccb82d9cb6f5f736148c0975a4 | [
"MIT"
] | 10 | 2021-06-11T07:41:00.000Z | 2022-01-18T08:24:45.000Z | #include <iostream>
using namespace std;
int kadane(int arr[], int n)
{
int sum = 0;
int maxSum = INT_MIN;
for (int i = 0; i < n; i++)
{
sum = sum + arr[i];
if (sum < 0)
{
sum = 0;
}
maxSum = max(sum, maxSum);
}
return maxSum;
}
int main()
... | 15.655172 | 96 | 0.460352 | Sarthaknegigit |
a939b2e612373d6c8de7a7410c951b75248ff5b3 | 1,060 | cpp | C++ | tests/test14.cpp | varnie/giraffe | 0448536cdca5dad66110aa64fdf24688b2a0050a | [
"MIT"
] | null | null | null | tests/test14.cpp | varnie/giraffe | 0448536cdca5dad66110aa64fdf24688b2a0050a | [
"MIT"
] | 1 | 2020-06-16T14:25:17.000Z | 2020-06-16T14:25:17.000Z | tests/test14.cpp | varnie/giraffe | 0448536cdca5dad66110aa64fdf24688b2a0050a | [
"MIT"
] | null | null | null | //
// Created by varnie on 2/23/16.
//
#include <gtest/gtest.h>
#include "../include/Giraffe.h"
TEST(StorageTest, EntityHasComponents) {
struct Foo {
Foo() { }
};
struct Bar {
Bar() { }
};
struct Fred {
Fred() { }
};
using StorageT = Giraffe::Storage<Foo, Bar, F... | 20 | 54 | 0.615094 | varnie |
a93a0af8e1ba4f52236eb79e07de2a26657726fc | 16,430 | hpp | C++ | include/sick_scan/tcp/SopasBase.hpp | Kaju-Bubanja/sick_scan2 | 9a518b8e88d8515e25168b1860e7bee3af79f1da | [
"Apache-2.0"
] | 123 | 2018-01-11T05:47:13.000Z | 2022-03-03T04:24:24.000Z | include/sick_scan/tcp/SopasBase.hpp | Kaju-Bubanja/sick_scan2 | 9a518b8e88d8515e25168b1860e7bee3af79f1da | [
"Apache-2.0"
] | 142 | 2018-01-04T14:46:28.000Z | 2022-02-28T09:57:32.000Z | include/sick_scan/tcp/SopasBase.hpp | Kaju-Bubanja/sick_scan2 | 9a518b8e88d8515e25168b1860e7bee3af79f1da | [
"Apache-2.0"
] | 107 | 2018-03-01T05:42:39.000Z | 2022-03-15T08:06:59.000Z | //
// SopasBase.h
//
// Created on: 18.07.2011
// Author: sick
//
#ifndef SOPASBASE_H
#define SOPASBASE_H
#include "sick_scan/tcp/BasicDatatypes.hpp"
// #include "sick_scan/tcp/datatypes/Scan.hpp"
#include "sick_scan/tcp/interfaces/tcp.hpp"
#include "colaa.hpp"
#include "colab.hpp"
#include <map> // for std::ma... | 32.406312 | 130 | 0.741327 | Kaju-Bubanja |
a93bd6d1c92eed5587035482698de8c1943426bc | 2,990 | cpp | C++ | vox.render/physics/joint/joint.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | 8 | 2022-02-15T12:54:57.000Z | 2022-03-30T16:35:58.000Z | vox.render/physics/joint/joint.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | vox.render/physics/joint/joint.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | 1 | 2022-01-20T05:53:59.000Z | 2022-01-20T05:53:59.000Z | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "joint.h"
#include "../collider.h"
namespace vox {
namespace physics {
void Joint::setActo... | 29.313725 | 102 | 0.738796 | SummerTree |
a93c139c4281e7061148a5e515ea02d48cdb2483 | 2,989 | cpp | C++ | dynamic_programming/longest_increasing_subsequence.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 20,295 | 2016-07-17T06:29:04.000Z | 2022-03-31T23:32:16.000Z | dynamic_programming/longest_increasing_subsequence.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 1,399 | 2017-06-02T05:59:45.000Z | 2022-03-31T00:55:00.000Z | dynamic_programming/longest_increasing_subsequence.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 5,775 | 2016-10-14T08:10:18.000Z | 2022-03-31T18:26:39.000Z | /**
* @file
* @brief Calculate the length of the [longest increasing
* subsequence](https://en.wikipedia.org/wiki/Longest_increasing_subsequence) in
* an array
*
* @details
* In computer science, the longest increasing subsequence problem is to find a
* subsequence of a given sequence in which the subsequence's... | 30.191919 | 80 | 0.629642 | icbdubey |
a93e290ec4f0b51e7525528d63cd5724f974bc9f | 1,176 | hpp | C++ | include/gridtools/stencil_composition/icosahedral_grids/backend_x86/iterate_domain_x86.hpp | mbianco/gridtools | 1abef09881a31495a3d02a15d3fe21620c6dde98 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/icosahedral_grids/backend_x86/iterate_domain_x86.hpp | mbianco/gridtools | 1abef09881a31495a3d02a15d3fe21620c6dde98 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/icosahedral_grids/backend_x86/iterate_domain_x86.hpp | mbianco/gridtools | 1abef09881a31495a3d02a15d3fe21620c6dde98 | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <type_traits>
#include <utility>
#include "../../../common/defs.hpp"
#include "../../../common/host_device... | 30.153846 | 116 | 0.69898 | mbianco |
a942f019ca762eb657e2bc15ba084139ad5a5e9f | 705 | cc | C++ | dsfmapping/sensor/feature_map_io.cc | dustinksi/DsFMapping | 474cdda0d9ff5e571f894f814d83ae49987e54dc | [
"Apache-2.0"
] | null | null | null | dsfmapping/sensor/feature_map_io.cc | dustinksi/DsFMapping | 474cdda0d9ff5e571f894f814d83ae49987e54dc | [
"Apache-2.0"
] | null | null | null | dsfmapping/sensor/feature_map_io.cc | dustinksi/DsFMapping | 474cdda0d9ff5e571f894f814d83ae49987e54dc | [
"Apache-2.0"
] | null | null | null | /**
* @file feature_map_io.cc
* @author DustinKsi (dustinksi@126.com)
* @brief
* @version 0.1
* @date 2019-12-24
*
* @copyright Copyright (c) 2019
*
*/
#include "dsfmapping/sensor/feature_map_io.h"
namespace DsFMapping {
namespace Sensor {
bool feature_map_saver(Feature2DList& map_data, string& map_filename... | 22.741935 | 72 | 0.726241 | dustinksi |
a94455b8a90f03f696f2a5e462c19c8d98cb9efd | 7,515 | cc | C++ | gearbox/t/core/SchemaObject.t.cc | coryb/gearbox | 88027f2f101c2d1fab16093928963052b9d3294d | [
"Artistic-1.0-Perl",
"BSD-3-Clause"
] | 3 | 2015-06-26T15:37:40.000Z | 2016-05-22T07:42:39.000Z | gearbox/t/core/SchemaObject.t.cc | coryb/gearbox | 88027f2f101c2d1fab16093928963052b9d3294d | [
"Artistic-1.0-Perl",
"BSD-3-Clause"
] | null | null | null | gearbox/t/core/SchemaObject.t.cc | coryb/gearbox | 88027f2f101c2d1fab16093928963052b9d3294d | [
"Artistic-1.0-Perl",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012, Yahoo! Inc. All rights reserved.
// Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
#include <tap/trivial.h>
#include <gearbox/core/Json.h>
#include <gearbox/core/JsonSchema.h>
#include <gearbox/core/logger.h>
using namespace Gearbox;
int main() {
... | 45.271084 | 201 | 0.488756 | coryb |
a944e2f9cd384016998f8b90d8f03bcce737b4d1 | 9,486 | hxx | C++ | Modules/IO/RAW/include/itkRawImageIO.hxx | Kronephon/itktest | a34e46226638c08bba315a257e33550a68203d97 | [
"Apache-2.0"
] | null | null | null | Modules/IO/RAW/include/itkRawImageIO.hxx | Kronephon/itktest | a34e46226638c08bba315a257e33550a68203d97 | [
"Apache-2.0"
] | null | null | null | Modules/IO/RAW/include/itkRawImageIO.hxx | Kronephon/itktest | a34e46226638c08bba315a257e33550a68203d97 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* 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... | 36.484615 | 97 | 0.589817 | Kronephon |
a9450e9d0ad7bda58e9854119446c6f5efe15ec3 | 8,348 | cpp | C++ | libnd4j/tests_cpu/layers_tests/ThreadsTests.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/ThreadsTests.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/ThreadsTests.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.
*
* 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.apache.org/licenses/LICENSE-2.0.
*
*... | 33.797571 | 126 | 0.582774 | bpossolo |
a94517aa17a2ce44603d0b81c20776b7e3453071 | 13,174 | cxx | C++ | PWGLF/FORWARD/analysis2/AliBaseMCTrackDensity.cxx | amveen/AliPhysics | bef49dc8e7f8ad5f656d54430031eb67abcf3243 | [
"BSD-3-Clause"
] | null | null | null | PWGLF/FORWARD/analysis2/AliBaseMCTrackDensity.cxx | amveen/AliPhysics | bef49dc8e7f8ad5f656d54430031eb67abcf3243 | [
"BSD-3-Clause"
] | null | null | null | PWGLF/FORWARD/analysis2/AliBaseMCTrackDensity.cxx | amveen/AliPhysics | bef49dc8e7f8ad5f656d54430031eb67abcf3243 | [
"BSD-3-Clause"
] | null | null | null | #include "AliBaseMCTrackDensity.h"
#include "AliForwardFlowWeights.h"
#include <AliMCEvent.h>
#include <AliTrackReference.h>
//#include <AliStack.h>
#include <TMath.h>
#include <AliLog.h>
#include <TH2D.h>
#include <TH1D.h>
#include <TList.h>
#include <TROOT.h>
#include <TVector3.h>
#include <iostream>
#include "AliCol... | 29.604494 | 89 | 0.677698 | amveen |
a9468a817025b35dc7d43899bf3ccc4e489dd248 | 1,032 | hpp | C++ | include/unordered_set.hpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | include/unordered_set.hpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | include/unordered_set.hpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #pragma once
#include "container.hpp"
#include <unordered_set>
template <typename T>
class UnorderedSet : public Container<std::unordered_set<T>> {
public:
UnorderedSet() : Container<std::unordered_set<T>>() {}
template <typename Itr>
UnorderedSet(Itr first, Itr last)
: Container<std::unordered_set<T>>(f... | 24 | 77 | 0.580426 | not522 |
a9476e38b5d1771834b1b15bcb53e2a8f0b20418 | 1,422 | cpp | C++ | SerialPrograms/Source/PokemonLA/Programs/PokemonLA_FlagNavigationTest.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Programs/PokemonLA_FlagNavigationTest.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Programs/PokemonLA_FlagNavigationTest.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | /* Flag Navigation Test
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "CommonFramework/Globals.h"
#include "PokemonLA_FlagNavigationAir.h"
#include "PokemonLA_FlagNavigationTest.h"
namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonLA{
FlagNavigationTest_Desc... | 23.311475 | 96 | 0.699015 | BlizzardHero |
a949770d142f1bead74062711799f4740ee5e07b | 21 | cpp | C++ | Source/Services/Common/Unix/pch_unix.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/Services/Common/Unix/pch_unix.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/Services/Common/Unix/pch_unix.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | #include "pch_unix.h" | 21 | 21 | 0.761905 | blgrossMS |
a94a4109f478568f52fe9769f1c20ad190a61644 | 2,821 | cpp | C++ | src/games/common/HexBlocks_Common_Render.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | 1 | 2021-07-05T15:55:59.000Z | 2021-07-05T15:55:59.000Z | src/games/common/HexBlocks_Common_Render.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | null | null | null | src/games/common/HexBlocks_Common_Render.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | null | null | null | #include "../../HexBlocks.h"
using PC = Pokitto::Core;
using PD = Pokitto::Display;
#include "../../utils/Constants.h"
#include "../../utils/Utils.h"
#include "../../images/Images.h"
#include "../../entities/Entities.h"
void Game::renderScreen_Common() {
for (uint8_t y = 0; y < Constants::GridSize; y++) {
... | 34.402439 | 210 | 0.641971 | Press-Play-On-Tape |
a94a61473e9402285d616af3b06a94df90a4423a | 63,866 | cc | C++ | riegeli/chunk_encoding/transpose_decoder.cc | micahcc/riegeli | d8cc64857253037d4f022e860b7b86cbe7d4b8d8 | [
"Apache-2.0"
] | null | null | null | riegeli/chunk_encoding/transpose_decoder.cc | micahcc/riegeli | d8cc64857253037d4f022e860b7b86cbe7d4b8d8 | [
"Apache-2.0"
] | null | null | null | riegeli/chunk_encoding/transpose_decoder.cc | micahcc/riegeli | d8cc64857253037d4f022e860b7b86cbe7d4b8d8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 44.228532 | 80 | 0.625012 | micahcc |
a9535ad47f6b89cf6a3acf5dd0e465351471bf41 | 2,450 | cpp | C++ | src/renderer/framebuffer/framebuffer.cpp | LwRuan/RainEngine | 0bf3c009190e86cf1b81a692ce26eb26646aca3c | [
"MIT"
] | null | null | null | src/renderer/framebuffer/framebuffer.cpp | LwRuan/RainEngine | 0bf3c009190e86cf1b81a692ce26eb26646aca3c | [
"MIT"
] | null | null | null | src/renderer/framebuffer/framebuffer.cpp | LwRuan/RainEngine | 0bf3c009190e86cf1b81a692ce26eb26646aca3c | [
"MIT"
] | null | null | null | #include "framebuffer.h"
#include <array>
namespace Rain {
VkResult Framebuffer::Init(Device* device, const VkExtent2D& extent,
VkImageView swap_image_view,
VkRenderPass render_pass) {
VkResult result;
result = depth_image_.InitDepthImage(device, exte... | 35.507246 | 80 | 0.686122 | LwRuan |
a95712a2a03874c7e67627c172c11dd6add22efe | 4,952 | cpp | C++ | src/Time/TimeSteppers/AdamsBashforthN.cpp | AntoniRamosBuades/spectre | 85dbdb5889e6ac7251e37b570495b0a601763ec8 | [
"MIT"
] | null | null | null | src/Time/TimeSteppers/AdamsBashforthN.cpp | AntoniRamosBuades/spectre | 85dbdb5889e6ac7251e37b570495b0a601763ec8 | [
"MIT"
] | 1 | 2022-03-25T18:26:16.000Z | 2022-03-25T19:30:39.000Z | src/Time/TimeSteppers/AdamsBashforthN.cpp | isaaclegred/spectre | 5765da85dad680cad992daccd479376c67458a8c | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Time/TimeSteppers/AdamsBashforthN.hpp"
#include <algorithm>
#include "Time/TimeStepId.hpp"
#include "Utilities/Math.hpp"
namespace TimeSteppers {
AdamsBashforthN::AdamsBashforthN(const size_t order) noexcept : order_(order) {
if (ord... | 31.948387 | 80 | 0.621567 | AntoniRamosBuades |
a9642c0a926c70c35c32e649897d45e1f63de7e6 | 7,390 | cpp | C++ | src/lib/analysis/TextUtil.cpp | jqswang/txsampler | 19d2b188e712dd86be84d84c75e08af320304c2c | [
"BSD-3-Clause"
] | 1 | 2018-11-18T17:44:22.000Z | 2018-11-18T17:44:22.000Z | src/lib/analysis/TextUtil.cpp | jqswang/txsampler | 19d2b188e712dd86be84d84c75e08af320304c2c | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/TextUtil.cpp | jqswang/txsampler | 19d2b188e712dd86be84d84c75e08af320304c2c | [
"BSD-3-Clause"
] | null | null | null | // -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... | 28.980392 | 78 | 0.58065 | jqswang |
a965effac86ca241c16790a4171f1f5111331927 | 706 | cpp | C++ | sources/src/structure/object.cpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/src/structure/object.cpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/src/structure/object.cpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | /// @file object.cpp
/// @author Enrico Fraccaroli (enrico.fraccaroli@gmail.com)
/// @copyright Copyright (c) 2021 sydelity.net (info@sydelity.com)
/// Distributed under the MIT License (MIT) (See accompanying LICENSE file or
/// copy at http://opensource.org/licenses/MIT)
#include "structure/object.hpp"
namespace... | 20.171429 | 77 | 0.695467 | sydelity-net |
a965f76c4cfa7496db45c18395d37947f25d4011 | 7,106 | cpp | C++ | inspire/thread/thdMgr.cpp | tynia/tynia | 9dd2a09faafa9d38c2679fa32e25a4db1317095e | [
"MIT"
] | null | null | null | inspire/thread/thdMgr.cpp | tynia/tynia | 9dd2a09faafa9d38c2679fa32e25a4db1317095e | [
"MIT"
] | null | null | null | inspire/thread/thdMgr.cpp | tynia/tynia | 9dd2a09faafa9d38c2679fa32e25a4db1317095e | [
"MIT"
] | null | null | null | #include "thdMgr.h"
namespace inspire {
const int thdMgr::thdInnerTask::run()
{
LogEvent("starting MAIN PROCESS LOOP: %s", name());
while (_thd->running())
{
_thdMgr->_process();
}
LogEvent("ending MAIN PROCESS LOOP: %s", name());
return _thd->error();
}
thdM... | 24.088136 | 89 | 0.513791 | tynia |
a9685065ca5dc50d3c30e5bb0986e2268a7b5e21 | 2,855 | cpp | C++ | pub/SharedNativeUtils/FileImage.cpp | AndreGleichner/UniversalModuleHost | a8434ad712295a9ff156c3344ed9faedae75ca14 | [
"MIT"
] | null | null | null | pub/SharedNativeUtils/FileImage.cpp | AndreGleichner/UniversalModuleHost | a8434ad712295a9ff156c3344ed9faedae75ca14 | [
"MIT"
] | null | null | null | pub/SharedNativeUtils/FileImage.cpp | AndreGleichner/UniversalModuleHost | a8434ad712295a9ff156c3344ed9faedae75ca14 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "FileImage.h"
#include <cstdint>
#include <share.h>
#include <vector>
#include <wil/resource.h>
#include <magic_enum.hpp>
using namespace magic_enum::bitwise_operators;
namespace
{
uint16_t ReadWord(const std::vector<uint8_t>& buffer, uint32_t offset)
{
if (offset + 2 > b... | 30.698925 | 115 | 0.646935 | AndreGleichner |
a96c53f9cad3a1cbf019391e897376b82ae7f881 | 659 | hpp | C++ | foreign.hpp | lechos22/PSON | 507721136c38c306fab633ea3d50f73c65a4c16e | [
"BSD-3-Clause"
] | 1 | 2021-12-09T20:27:28.000Z | 2021-12-09T20:27:28.000Z | foreign.hpp | lechos22/PSON | 507721136c38c306fab633ea3d50f73c65a4c16e | [
"BSD-3-Clause"
] | null | null | null | foreign.hpp | lechos22/PSON | 507721136c38c306fab633ea3d50f73c65a4c16e | [
"BSD-3-Clause"
] | null | null | null | #ifndef PSON__FOREIGN_HPP
#define PSON__FOREIGN_HPP
#include <PSON_PY.hpp>
extern void* parse(const char* s);
extern char get_type(void* obj);
extern int get_int(void* obj);
extern float get_float(void* obj);
extern const char* get_str(void* obj);
extern unsigned get_len(void* obj);
extern void* get_at(void* obj, unsi... | 31.380952 | 57 | 0.766313 | lechos22 |
a975ace87094dfeed41d04926bfd599091aea35f | 614 | cpp | C++ | src/xcroscpp/src/libros/xcroscpp_common.cpp | dogchenya/xc-ros | 43c8b773a552ea610bd03750c9c32d7732f8ea69 | [
"Unlicense"
] | null | null | null | src/xcroscpp/src/libros/xcroscpp_common.cpp | dogchenya/xc-ros | 43c8b773a552ea610bd03750c9c32d7732f8ea69 | [
"Unlicense"
] | null | null | null | src/xcroscpp/src/libros/xcroscpp_common.cpp | dogchenya/xc-ros | 43c8b773a552ea610bd03750c9c32d7732f8ea69 | [
"Unlicense"
] | null | null | null | #include "ros/xcroscpp_common.h"
#include <cstdlib>
#include <cstdio>
#include <cerrno>
#include <cassert>
#include <sys/types.h>
#if !defined(WIN32)
#include <unistd.h>
#include <pthread.h>
#endif
#include <signal.h>
using std::string;
void xcros::disableAllSignalsInThisThread()
{
#if !defined(WIN32)
// pthreads_wi... | 21.928571 | 74 | 0.754072 | dogchenya |
a97ab59cbb36d1c7e887d13c463612a942e9105e | 19,462 | cc | C++ | packages/solver/test/tst_Pincell.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/solver/test/tst_Pincell.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/solver/test/tst_Pincell.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include <cmath>
#include <iomanip>
#include <iostream>
#include <mpi.h>
#include "Angular_Discretization.hh"
#include "Angular_Discretization_Factory.hh"
#include "Angular_Discretization_Parser.hh"
#include "Boundary_Source.hh"
#include "Boundary_Source_Parser.hh"
#include "Cartesian_Plane.hh"
#include "Check_Equalit... | 37.863813 | 98 | 0.462902 | brbass |
a97bd313294dc528d0e37ed0cec0ffa5de0d4078 | 1,391 | cpp | C++ | source/examples/HelloWorld/HelloWorld.cpp | MrHands/Panini | 464999debf6ad6ee9f2184514ba719062f8375b5 | [
"MIT-0"
] | null | null | null | source/examples/HelloWorld/HelloWorld.cpp | MrHands/Panini | 464999debf6ad6ee9f2184514ba719062f8375b5 | [
"MIT-0"
] | null | null | null | source/examples/HelloWorld/HelloWorld.cpp | MrHands/Panini | 464999debf6ad6ee9f2184514ba719062f8375b5 | [
"MIT-0"
] | null | null | null | /*
MIT No Attribution
Copyright 2021-2022 Mr. Hands
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge,... | 30.911111 | 77 | 0.728972 | MrHands |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.