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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38a7914bec4be082e3446965e66e5a6b0ba5728c | 43 | hpp | C++ | src/boost_type_traits_cv_traits.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_cv_traits.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_cv_traits.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/cv_traits.hpp>
| 21.5 | 42 | 0.813953 | miathedev |
38ab82b615ed5f08443a79ac982ca1b4c26070ed | 1,644 | cc | C++ | src/lib/cc/stamped_value.cc | mcr/kea | 7fbbfde2a0742a3d579d51ec94fc9b91687fb901 | [
"Apache-2.0"
] | 1 | 2019-08-10T21:52:58.000Z | 2019-08-10T21:52:58.000Z | src/lib/cc/stamped_value.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | null | null | null | src/lib/cc/stamped_value.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <cc/stamped_value.h>
#include <exceptions... | 27.4 | 70 | 0.608273 | mcr |
38ae68bbe89fad118f8d131b4fd48705b669d93c | 1,787 | hpp | C++ | FlyGuys_External/offsets.hpp | B3akers/FlyGuys_External | 0efcdf7bcec09d5d175979e79818b624a5aab858 | [
"MIT"
] | 20 | 2020-08-23T18:53:57.000Z | 2021-12-14T16:07:16.000Z | FlyGuys_External/offsets.hpp | B3akers/FlyGuys_External | 0efcdf7bcec09d5d175979e79818b624a5aab858 | [
"MIT"
] | 7 | 2020-08-24T04:31:48.000Z | 2020-09-05T03:08:49.000Z | FlyGuys_External/offsets.hpp | B3akers/FlyGuys_External | 0efcdf7bcec09d5d175979e79818b624a5aab858 | [
"MIT"
] | 9 | 2020-08-26T12:21:43.000Z | 2020-11-20T16:53:58.000Z | /* This file is part of FlyGuys_External by b3akers, licensed under the MIT license:
*
* MIT License
*
* Copyright (c) b3akers 2020
*
* 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 r... | 33.716981 | 85 | 0.752658 | B3akers |
38bf9558cc8a4434eea66d4f65a196864eb429e1 | 1,161 | hpp | C++ | experimental/Pomdog.Experimental/Skeletal2D/SpriteAnimationTrack.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/SpriteAnimationTrack.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/SpriteAnimationTrack.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_SPRITEANIMATIONTRACK_FC96976A_HPP
#define POMDOG_SPRITEANIMATIONTRACK_FC96976A_HPP
#include "AnimationTimeInterval.hpp"
#include "Skin.hpp"
#include "Pomdog/Utility/Optional.hpp"
#include "Pomdog... | 24.1875 | 88 | 0.762274 | bis83 |
38c47e9b8d9730934f412fff4a8743a4f0717ec2 | 1,113 | hpp | C++ | src/include/duckdb/execution/lineage/lineage_manager.hpp | reallocf/duckdb | f3174a1dcca73e657fd07ad4ce125b0b6063d8e2 | [
"MIT"
] | 3 | 2021-05-13T04:15:45.000Z | 2022-03-03T16:57:16.000Z | src/include/duckdb/execution/lineage/lineage_manager.hpp | reallocf/duckdb | f3174a1dcca73e657fd07ad4ce125b0b6063d8e2 | [
"MIT"
] | 2 | 2021-10-02T02:52:39.000Z | 2022-01-04T20:08:06.000Z | src/include/duckdb/execution/lineage/lineage_manager.hpp | reallocf/duckdb | f3174a1dcca73e657fd07ad4ce125b0b6063d8e2 | [
"MIT"
] | 1 | 2021-09-02T00:22:42.000Z | 2021-09-02T00:22:42.000Z | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/execution/lineage_manager.hpp
//
//
//===----------------------------------------------------------------------===//
#ifdef LINEAGE
#pragma once
#include "duckdb/common/types/value.hpp"
#inc... | 23.1875 | 80 | 0.652291 | reallocf |
38c65acd9ca2ebe864e775e39f8b04cbcce7fe50 | 1,325 | hpp | C++ | StarcraftBuildOrderSearch/Source/starcraftsearch/MacroAction.hpp | abeshry/StarcraftAI | 2eca612783d1b4c06469885ebc3cce46cc0c6fce | [
"Apache-2.0"
] | null | null | null | StarcraftBuildOrderSearch/Source/starcraftsearch/MacroAction.hpp | abeshry/StarcraftAI | 2eca612783d1b4c06469885ebc3cce46cc0c6fce | [
"Apache-2.0"
] | null | null | null | StarcraftBuildOrderSearch/Source/starcraftsearch/MacroAction.hpp | abeshry/StarcraftAI | 2eca612783d1b4c06469885ebc3cce46cc0c6fce | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "ActionSet.hpp"
#include <sstream>
namespace BuildOrderSearch
{
class MacroAction
{
std::vector<Action> actions_;
ActionSet actionSet_;
public:
MacroAction() {}
~MacroAction() {}
const bool operator == (const MacroAction & m) const
{
return compareTo(m) == 0;
}
const bool oper... | 15.77381 | 56 | 0.645283 | abeshry |
38c936368b732958f1c3b9a44eaa409f3db8668d | 1,371 | c++ | C++ | 28.3_construct_binary_search_tree.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 28.3_construct_binary_search_tree.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 28.3_construct_binary_search_tree.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | // #include<iostream>
// using namespace std;
// struct Node{
// int data;
// Node* left, *right;
// Node(int val){
// data = val;
// left = NULL;
// right = NULL;
// }
// };
// Node* constructBST(int preorder[], int preorderIdx, int key , int min, int max, i... | 19.041667 | 102 | 0.423049 | Sambitcr-7 |
38d713f655e802070bf9dd795eae7b3658f9b6c1 | 99 | cpp | C++ | test/main.cpp | colin-daniels/templ | 5c2dd1d36b107cbeb5fc46a99b5775bbee355cad | [
"MIT"
] | null | null | null | test/main.cpp | colin-daniels/templ | 5c2dd1d36b107cbeb5fc46a99b5775bbee355cad | [
"MIT"
] | null | null | null | test/main.cpp | colin-daniels/templ | 5c2dd1d36b107cbeb5fc46a99b5775bbee355cad | [
"MIT"
] | null | null | null | #include <templ/templ.hpp>
#include "test_algorithm.hpp"
#include "test_common.hpp"
int main() {}
| 16.5 | 29 | 0.727273 | colin-daniels |
38d84db67c0c782ffec273c0702cee5dda14699d | 1,983 | cc | C++ | src/transport/test/test_Sweeper2D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/transport/test/test_Sweeper2D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/transport/test/test_Sweeper2D.cc | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/**
* @file test_Sweeper2D.cc
* @author Jeremy Roberts
* @date Apr 1, 2012
* @brief Test of test_Sweeper2D
*/
//---------------------------------------------------------------------------//
// LIST OF TEST FUNCTIONS
#define T... | 24.481481 | 79 | 0.588502 | RLReed |
38dae160936f2db11273d0a1087bfd76121a2d6f | 3,475 | cpp | C++ | test/training_data/plag_original_codes/1392D-Omkar_and_Bed_Wars.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/1392D-Omkar_and_Bed_Wars.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/1392D-Omkar_and_Bed_Wars.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <cassert>
#include <climits>
#include <string>
#include <bitset>
#include <cfloat>
#include <random>
#... | 24.821429 | 73 | 0.526906 | xryuseix |
38dbdc03f4472358858f68c349897ff4688f6c2c | 26 | cpp | C++ | bear_robotics/sudoko.cpp | shifabanu/LeetCode | 785c3afb32c981a8bffbde0129ad1b1b5bd26928 | [
"MIT"
] | null | null | null | bear_robotics/sudoko.cpp | shifabanu/LeetCode | 785c3afb32c981a8bffbde0129ad1b1b5bd26928 | [
"MIT"
] | null | null | null | bear_robotics/sudoko.cpp | shifabanu/LeetCode | 785c3afb32c981a8bffbde0129ad1b1b5bd26928 | [
"MIT"
] | null | null | null | /*
Solve a Sudoku game
*/
| 6.5 | 19 | 0.615385 | shifabanu |
38e61468a7be70ed06e08eef55cb434b50ce6e60 | 1,299 | cpp | C++ | Engine/ResourceManagement/Manager/SkyboxManager.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 9 | 2020-04-05T07:44:38.000Z | 2022-01-12T02:07:14.000Z | Engine/ResourceManagement/Manager/SkyboxManager.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 105 | 2020-03-13T19:12:23.000Z | 2020-12-02T23:41:15.000Z | Engine/ResourceManagement/Manager/SkyboxManager.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 1 | 2021-04-24T16:11:49.000Z | 2021-04-24T16:11:49.000Z | #include "SkyboxManager.h"
#include "Helper/Config.h"
#include "Main/Application.h"
#include "Module/ModuleFileSystem.h"
#include "Module/ModuleResourceManager.h"
#include "ResourceManagement/Manager/TextureManager.h"
#include "ResourceManagement/Metafile/Metafile.h"
#include "ResourceManagement/Resources/Skybox.h"
... | 29.522727 | 94 | 0.799076 | mariofv |
38f166aae77dac24f4649e41d926e587671b372e | 1,687 | cpp | C++ | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_SourceSansPro_Regular_18_4bpp.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_SourceSansPro_Regular_18_4bpp.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_SourceSansPro_Regular_18_4bpp.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null |
#include <touchgfx/Font.hpp>
#ifndef NO_USING_NAMESPACE_TOUCHGFX
using namespace touchgfx;
#endif
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_SourceSansPro_Regular_18_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = {
{ 0, 32, 0, 0, 0, 0, 4, 255, 0, touchgfx::GLYPH_DATA_FORMAT_A4|... | 58.172414 | 110 | 0.585062 | hwiwonl |
38f98f7b98d8dbbccee798342c5ff862ef8bf728 | 324 | cpp | C++ | examples/physics/cmsToyGV/TBBProcessingDemo/TBBFrameworkCore/FactoryManagers.cpp | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-10-16T14:37:42.000Z | 2018-04-05T15:49:09.000Z | examples/physics/cmsToyGV/TBBProcessingDemo/TBBFrameworkCore/FactoryManagers.cpp | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/physics/cmsToyGV/TBBProcessingDemo/TBBFrameworkCore/FactoryManagers.cpp | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //
// FactoryManagers.cpp
// DispatchProcessingDemo
//
// Created by Chris Jones on 9/29/11.
// Copyright 2011 FNAL. All rights reserved.
//
#include <iostream>
#include "FactoryManager.h"
#include "Producer.h"
#include "Filter.h"
INSTANTIATE_FACTORYMANAGER(demo::Producer);
INSTANTIATE_FACTORYMANAGER(demo::Filte... | 19.058824 | 45 | 0.743827 | Geant-RnD |
38f99792931f3c53895d95898b19a0a0a82dd03d | 2,812 | cc | C++ | cartographer/sensor/sensor_packet_period_histogram_builder.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | 36 | 2017-01-17T10:19:30.000Z | 2022-02-13T09:11:51.000Z | cartographer/sensor/sensor_packet_period_histogram_builder.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | null | null | null | cartographer/sensor/sensor_packet_period_histogram_builder.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | 37 | 2016-10-09T01:52:45.000Z | 2022-01-22T10:51:54.000Z | /*
* Copyright 2016 The Cartographer Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 33.082353 | 79 | 0.647937 | linghusmile |
38fd3b7a11dc650e48700b4faa2e424ae3c6bf61 | 3,921 | cpp | C++ | src_smartcontract/lang_sql/sql_ddl_alter/AlterAddColumnCommand.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract/lang_sql/sql_ddl_alter/AlterAddColumnCommand.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract/lang_sql/sql_ddl_alter/AlterAddColumnCommand.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* AlterAddColumnCommand.cpp
*
* Created on: 2020/09/08
* Author: iizuka
*/
#include "lang_sql/sql_ddl_alter/AlterAddColumnCommand.h"
#include "lang_sql/sql_ddl/DdlColumnDescriptor.h"
#include "vm/VirtualMachine.h"
#include "lang_sql/sql_join_parts/TableIdentifier.h"
#include "trx/transaction_log_alte... | 27.229167 | 115 | 0.780668 | alinous-core |
38ffc37ac1b23426d9d2f99d26debea22963e1b7 | 1,515 | cpp | C++ | Source/IOSAppTrackingTransparency/Private/IOSAppTrackingTransparency.cpp | Flakky/UE-IOS-App-Tracking-Transparency | b9b74f337668cde60e5f115cfc55c805783fd875 | [
"MIT"
] | 5 | 2021-06-09T14:26:34.000Z | 2022-03-02T18:19:35.000Z | Source/IOSAppTrackingTransparency/Private/IOSAppTrackingTransparency.cpp | Flakky/UE-IOS-App-Tracking-Transparency | b9b74f337668cde60e5f115cfc55c805783fd875 | [
"MIT"
] | null | null | null | Source/IOSAppTrackingTransparency/Private/IOSAppTrackingTransparency.cpp | Flakky/UE-IOS-App-Tracking-Transparency | b9b74f337668cde60e5f115cfc55c805783fd875 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "IOSAppTrackingTransparency.h"
#include "IOSAppTrackingTransparencySettings.h"
#include "ISettingsModule.h"
#define LOCTEXT_NAMESPACE "FIOSAppTrackingTransparencyModule"
void FIOSAppTrackingTransparencyModule::StartupModule()
{
IOSAppTrackingTransparencySe... | 34.431818 | 161 | 0.79934 | Flakky |
f1a67812ff71a5820f88e63f1c46594b771efcc3 | 4,313 | cpp | C++ | examples/floating_window.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | 186 | 2017-04-25T12:13:05.000Z | 2022-03-30T08:06:47.000Z | examples/floating_window.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | 34 | 2016-12-20T16:33:31.000Z | 2022-03-29T21:07:52.000Z | examples/floating_window.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | 47 | 2016-12-19T17:23:46.000Z | 2022-03-30T19:45:55.000Z | // LAF Library
// Copyright (c) 2021 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "os/os.h"
class CustomWindow {
public:
void create(const std::string& title,
int w, int h,
os::Window* parent = nullp... | 22.005102 | 87 | 0.60677 | clarfonthey |
f1a9a1ef6df56f589fc08f24c7a62407665a936a | 1,576 | cpp | C++ | Leetcode/Hot100/337_House_Robber_III.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Hot100/337_House_Robber_III.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Hot100/337_House_Robber_III.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | /*
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour, the smart thief realized that "all houses in this place forms a binary tree". It will automatically contact the pol... | 26.711864 | 386 | 0.625635 | ZR-Huang |
f1b487153a592338f5f5baf83a7094182f5febcf | 14,576 | hxx | C++ | Grid_MRF/LBFGS.hxx | YoungLew/NoiseContrastiveLearning | 2abff09651e17af4370319ca63a4c090097f914f | [
"MIT"
] | null | null | null | Grid_MRF/LBFGS.hxx | YoungLew/NoiseContrastiveLearning | 2abff09651e17af4370319ca63a4c090097f914f | [
"MIT"
] | null | null | null | Grid_MRF/LBFGS.hxx | YoungLew/NoiseContrastiveLearning | 2abff09651e17af4370319ca63a4c090097f914f | [
"MIT"
] | null | null | null | #ifndef __LBFGS__
#define __LBFGS__
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <sstream>
#include <time.h>
#include <sys/time.h>
using namespace std;
// MPI
int num_procs;
int proc_id;
// end
void Er... | 32.681614 | 133 | 0.595842 | YoungLew |
f1b7aa37d42bb7a98ad94cde33ea954928c53a84 | 11,862 | cpp | C++ | Examples/Planets/Gameplay/Spaceship.cpp | enci/Osmium | 48d8b78ed31ffa532e05dc8c06b644f6f5791814 | [
"MIT"
] | 6 | 2017-05-28T18:26:35.000Z | 2019-12-09T15:28:37.000Z | Examples/Planets/Gameplay/Spaceship.cpp | enci/Osmium | 48d8b78ed31ffa532e05dc8c06b644f6f5791814 | [
"MIT"
] | null | null | null | Examples/Planets/Gameplay/Spaceship.cpp | enci/Osmium | 48d8b78ed31ffa532e05dc8c06b644f6f5791814 | [
"MIT"
] | 5 | 2018-03-09T09:02:57.000Z | 2020-07-31T23:34:26.000Z | #include "Spaceship.h"
#include <Core/World.h>
#include <Core/Transform.h>
#include <Graphics/DebugRenderer.h>
#include <Graphics/Render.h>
#include <GLFW/glfw3.h>
#include <Core/Device.h>
#include <Utils.h>
#include "BlasteroidsAssets.h"
#include "Projectiles.h"
#include "Wrapper.h"
#include "Blasteroids.h"
using nam... | 26.536913 | 110 | 0.676024 | enci |
f1b930b50164c489376670536d7ef35a5d6271dd | 785 | hpp | C++ | framework/zilch/src/RAMtoBair/RamToContraintSystem/ALUInputConsistency.hpp | TrustworthyComputing/Zilch | 793523455fc313babaa285f7d29d8e8a5bbb3253 | [
"MIT"
] | 11 | 2021-09-22T22:29:01.000Z | 2022-03-04T00:24:00.000Z | framework/zilch/src/RAMtoBair/RamToContraintSystem/ALUInputConsistency.hpp | TrustworthyComputing/Zilch | 793523455fc313babaa285f7d29d8e8a5bbb3253 | [
"MIT"
] | null | null | null | framework/zilch/src/RAMtoBair/RamToContraintSystem/ALUInputConsistency.hpp | TrustworthyComputing/Zilch | 793523455fc313babaa285f7d29d8e8a5bbb3253 | [
"MIT"
] | 1 | 2022-01-11T10:55:03.000Z | 2022-01-11T10:55:03.000Z | #ifndef ALU_INPUT_CONSISTENCY_HPP
#define ALU_INPUT_CONSISTENCY_HPP
#include <gadgetlib/gadget.hpp>
#include <algebraLib/CircuitPolynomial.hpp>
#include "generalPurpose.hpp"
#include "RAM/RAMInstance.hpp"
using namespace gadgetlib;
class ALUInputConsistency : public Gadget{
private:
TraceVariables input_;
ALUIn... | 23.787879 | 96 | 0.802548 | TrustworthyComputing |
f1bc7b8f649e4f7c6312e94d2a599506fab4b85d | 2,237 | cpp | C++ | crystal/storage/table/TableConfig.cpp | crystal-dataop/crystal | 128e1dcde1ef68cabadab9b16d45f5199f0afe5c | [
"Apache-2.0"
] | 2 | 2020-10-02T03:31:50.000Z | 2020-12-31T09:41:48.000Z | crystal/storage/table/TableConfig.cpp | crystal-dataop/crystal | 128e1dcde1ef68cabadab9b16d45f5199f0afe5c | [
"Apache-2.0"
] | null | null | null | crystal/storage/table/TableConfig.cpp | crystal-dataop/crystal | 128e1dcde1ef68cabadab9b16d45f5199f0afe5c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017-present Yeolar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 26.630952 | 78 | 0.688422 | crystal-dataop |
f1c1163fcec83705535fc08fea2e9e7392c32e64 | 40,725 | cpp | C++ | src/walkinggait/src/walkinggait.cpp | yiching77/PSO_test | 237f880f097fe2eb3de06cada647df12d653c52f | [
"MIT"
] | null | null | null | src/walkinggait/src/walkinggait.cpp | yiching77/PSO_test | 237f880f097fe2eb3de06cada647df12d653c52f | [
"MIT"
] | null | null | null | src/walkinggait/src/walkinggait.cpp | yiching77/PSO_test | 237f880f097fe2eb3de06cada647df12d653c52f | [
"MIT"
] | null | null | null | #include "walkinggait/walkinggait.h"
void ChangeContinuousValue(const tku_msgs::Interface& msg)
{
walkdata.Walking_Cmd = etChangeValue;// start = 0x01, stop = 0x02, change value = 0x04
walkdata.X = msg.x;
walkdata.Y = msg.y;
walkdata.Z = msg.z;
if(abs(msg.theta) > 20)
{
walkdata.THETA =... | 46.069005 | 130 | 0.638404 | yiching77 |
f1c25aff8c4c1ea8167645a0d55cecf0572dd2ea | 2,131 | cpp | C++ | aws-cpp-sdk-athena/source/model/BatchGetNamedQueryResult.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-athena/source/model/BatchGetNamedQueryResult.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-athena/source/model/BatchGetNamedQueryResult.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 33.825397 | 162 | 0.7771 | curiousjgeorge |
f1c679121bc09e75f9bb5b7de2347d520e5144fe | 1,246 | cpp | C++ | src/prod/src/ServiceGroup/Service/ServiceGroup.ServiceGroupCommonEventSource.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/ServiceGroup/Service/ServiceGroup.ServiceGroupCommonEventSource.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/ServiceGroup/Service/ServiceGroup.ServiceGroupCommonEventSource.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 33.675676 | 102 | 0.686196 | AnthonyM |
f1c7e3a6b947e1412343745296b5711b2418b963 | 1,952 | cpp | C++ | src/Entity.cpp | Puzanira/Asteriods | 07c909ab12ed9fc7a6b03c3e028b83b76d2ae6b8 | [
"MIT"
] | null | null | null | src/Entity.cpp | Puzanira/Asteriods | 07c909ab12ed9fc7a6b03c3e028b83b76d2ae6b8 | [
"MIT"
] | null | null | null | src/Entity.cpp | Puzanira/Asteriods | 07c909ab12ed9fc7a6b03c3e028b83b76d2ae6b8 | [
"MIT"
] | null | null | null | #include "Entity.h"
#include <iostream>
#include <cmath>
Entity::Entity() {
}
Entity::~Entity() {
}
void Entity::draw(sf::RenderTarget& target, sf::RenderStates states) const {
target.draw(*ashape, states);
}
float Entity::dotProduct(const sf::Vector2f& lhs, const sf::Vector2f& rhs) {
return lhs.x * rhs.x + lhs.y... | 26.739726 | 96 | 0.703893 | Puzanira |
f1cb1a139623ea03aeb0559b216558aa2c53be63 | 1,975 | cpp | C++ | src/LibCraft/coreEngine/Collectible.cpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | null | null | null | src/LibCraft/coreEngine/Collectible.cpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | null | null | null | src/LibCraft/coreEngine/Collectible.cpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | null | null | null | //
// Created by valentin on 24/12/2021.
//
#include "LibCraft/coreEngine/include/Collectible.hpp"
void Collectible::Draw(Shader &shader , Camera &camera){
shader.activate();
if(_alive) {
glm::mat4 model = glm::mat4(1.0f);
model = glm::translate(model, _position); // _position du collectible
... | 47.02381 | 124 | 0.601013 | Kenny38GH |
f1d7a38b809633e4671c8786af303fc1a20e330e | 1,051 | cpp | C++ | src/main.cpp | tanechai/ssl-camera-converter | 0282fc761eb39c491879ae2c84d89094a2602c67 | [
"MIT"
] | null | null | null | src/main.cpp | tanechai/ssl-camera-converter | 0282fc761eb39c491879ae2c84d89094a2602c67 | [
"MIT"
] | null | null | null | src/main.cpp | tanechai/ssl-camera-converter | 0282fc761eb39c491879ae2c84d89094a2602c67 | [
"MIT"
] | null | null | null | #include "Controller/Controller.hpp"
#include "Initializer/Initializer.hpp"
#include "Calibrater/Calibrater.hpp"
int main(){
const double robotHeight = 120;
const cv::Size2d patternSize(10,7);
const cv::Size2d squareSize(67,67);
const cv::Size2d fieldImageSize(4000,2000);
const int maxCameras = 5;
... | 30.028571 | 87 | 0.642245 | tanechai |
f1dc2d74e00029e50a91addcbd89ef8a44863aa0 | 231 | cpp | C++ | src/model/FxCodec.cpp | libfetion/libfetion-gui-dev | 70ae7608d36dd8d65e222365f3408093fe348825 | [
"curl"
] | null | null | null | src/model/FxCodec.cpp | libfetion/libfetion-gui-dev | 70ae7608d36dd8d65e222365f3408093fe348825 | [
"curl"
] | null | null | null | src/model/FxCodec.cpp | libfetion/libfetion-gui-dev | 70ae7608d36dd8d65e222365f3408093fe348825 | [
"curl"
] | null | null | null | /*
* FxCodec.cpp
*
* Created on: 2009-9-13
* Author: veiz
*/
#include "FxCodec.h"
FxCodec::FxCodec()
{
// TODO Auto-generated constructor stub
}
FxCodec::~FxCodec()
{
// TODO Auto-generated destructor stub
}
| 11.55 | 43 | 0.614719 | libfetion |
f1e274bb6416df02c1184333e1680c2d6493b314 | 1,527 | cpp | C++ | velox/type/Date.cpp | anthonylouisbsb/velox | 29cb9709352ebd6003a5761b2cfb6e4a7b5fe70e | [
"Apache-2.0"
] | 1 | 2021-12-20T11:09:27.000Z | 2021-12-20T11:09:27.000Z | velox/type/Date.cpp | anthonylouisbsb/velox | 29cb9709352ebd6003a5761b2cfb6e4a7b5fe70e | [
"Apache-2.0"
] | null | null | null | velox/type/Date.cpp | anthonylouisbsb/velox | 29cb9709352ebd6003a5761b2cfb6e4a7b5fe70e | [
"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... | 30.54 | 75 | 0.70334 | anthonylouisbsb |
f1e5e0b7bc25eda0df09f18e845a74d4cc7dde17 | 2,313 | hpp | C++ | include/poac/cmd/create.hpp | poacpm/cpm | 1e004120990d952ec8f20cdc72e58b57fba9e333 | [
"Apache-2.0"
] | null | null | null | include/poac/cmd/create.hpp | poacpm/cpm | 1e004120990d952ec8f20cdc72e58b57fba9e333 | [
"Apache-2.0"
] | null | null | null | include/poac/cmd/create.hpp | poacpm/cpm | 1e004120990d952ec8f20cdc72e58b57fba9e333 | [
"Apache-2.0"
] | null | null | null | #ifndef POAC_CMD_CREATE_HPP_
#define POAC_CMD_CREATE_HPP_
// std
#include <algorithm> // transform
#include <fstream>
#include <iostream>
#include <string>
// external
#include <structopt/app.hpp>
// internal
#include "poac/poac.hpp"
namespace poac::cmd::create {
struct Options : structopt::sub_command {
/// Pac... | 22.028571 | 75 | 0.656291 | poacpm |
f1f030f38e42930919a72767eb612d61f7864004 | 1,513 | cc | C++ | 0033_Search_in_Rotated_Sorted_Array/0033.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0033_Search_in_Rotated_Sorted_Array/0033.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0033_Search_in_Rotated_Sorted_Array/0033.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include <assert.h>
#include <vector>
using std::vector;
class Solution {
public:
int search(const vector<int>& nums, int target) {
if (nums.empty()) return -1;
size_t lower_index = 0, upper_index = nums.size() - 1;
while (lower_index + 1 < upper_index) {
const size_t mid_index = (upper_index - ... | 31.520833 | 77 | 0.55651 | LuciusKyle |
f1f2ee4b312ce855c066884c67d108c83c6d125b | 959 | cc | C++ | src/03_sharing_data/08_Lazy_Initialization/07_demo.cc | chanchann/lighao | 5c06c4dfcf93b9dd59522971f9c939af128b9378 | [
"MIT"
] | 1 | 2021-01-18T02:37:03.000Z | 2021-01-18T02:37:03.000Z | src/03_sharing_data/08_Lazy_Initialization/07_demo.cc | chanchann/Thread | 5c06c4dfcf93b9dd59522971f9c939af128b9378 | [
"MIT"
] | null | null | null | src/03_sharing_data/08_Lazy_Initialization/07_demo.cc | chanchann/Thread | 5c06c4dfcf93b9dd59522971f9c939af128b9378 | [
"MIT"
] | null | null | null | /*
模仿建立数据库的连接,只有在放生send_data或者receive_data的时候,才去连接数据库,并且只连接了一次。即使,既调用了send_data也调用了receive_data,但是open_connection只被执行了一次,
也就是说数据库的连接只建立一次就够了,不管你是要接收,还是要发送。
std::call_once也可以用在类中
class A {
private:
std::once_flag flag;
void init() { ... }
public:
void f()
{
std::call_once(flag, &A::init, this);... | 20.847826 | 118 | 0.620438 | chanchann |
f1ffea2d675a4eebaa1c9024dfb3bed29622ac65 | 383 | hpp | C++ | src/trans/monomorphise.hpp | bjorn3/mrustc | 01f73e7894119405ab3f92b6191f044e491c9062 | [
"MIT"
] | 1,706 | 2015-01-18T11:01:10.000Z | 2022-03-31T00:31:54.000Z | src/trans/monomorphise.hpp | bjorn3/mrustc | 01f73e7894119405ab3f92b6191f044e491c9062 | [
"MIT"
] | 215 | 2015-03-26T10:31:36.000Z | 2022-03-13T02:04:13.000Z | src/trans/monomorphise.hpp | bjorn3/mrustc | 01f73e7894119405ab3f92b6191f044e491c9062 | [
"MIT"
] | 114 | 2015-03-26T10:29:02.000Z | 2022-03-21T20:59:37.000Z | /*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* trans/monomorphise.hpp
* - MIR monomorphisation
*/
#pragma once
#include <mir/mir_ptr.hpp>
#include "trans_list.hpp"
namespace HIR {
class Crate;
}
extern ::MIR::FunctionPointer Trans_Monomorphise(const ::StaticTraitResolve& crate, c... | 21.277778 | 147 | 0.72846 | bjorn3 |
7b05b6b2a5e744be2b42361d2e1c2d587781e21d | 1,329 | cpp | C++ | libs/image/scanline.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 15 | 2017-10-18T05:08:16.000Z | 2022-02-02T11:01:46.000Z | libs/image/scanline.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | null | null | null | libs/image/scanline.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 1 | 2018-11-10T03:12:57.000Z | 2018-11-10T03:12:57.000Z | // SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include "scanline.h"
#include <base/pointer.h>
////////////////////////////////////////
namespace image
{
////////////////////////////////////////
scanline::scanline( int offx, const float *b, int w, int s, bool dup )
: _ref_ptr( ... | 22.525424 | 70 | 0.469526 | kdt3rd |
7b0cb7006759c32d355b19ae9e941e47fda4bbf1 | 31,229 | cpp | C++ | op_global_planner/nodes/op_global_planner_core.cpp | marcusvinicius178/core_planning | 1e9f6c211d902dd5a9d99d0cbf9df4726a7c6739 | [
"Apache-2.0"
] | null | null | null | op_global_planner/nodes/op_global_planner_core.cpp | marcusvinicius178/core_planning | 1e9f6c211d902dd5a9d99d0cbf9df4726a7c6739 | [
"Apache-2.0"
] | null | null | null | op_global_planner/nodes/op_global_planner_core.cpp | marcusvinicius178/core_planning | 1e9f6c211d902dd5a9d99d0cbf9df4726a7c6739 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018-2019 Autoware Foundation. 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 requi... | 31.931493 | 233 | 0.723814 | marcusvinicius178 |
7b0eb86e520af53644f51beeab7c8d6d5048b9ac | 1,601 | hpp | C++ | src/viewer/overlay_import.hpp | malasiot/maplite | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 12 | 2017-05-11T21:44:57.000Z | 2021-12-30T08:35:56.000Z | src/viewer/overlay_import.hpp | malasiot/mftools | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 8 | 2016-10-27T10:10:05.000Z | 2019-12-07T21:27:02.000Z | src/viewer/overlay_import.hpp | malasiot/mftools | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 5 | 2017-10-17T08:18:58.000Z | 2021-11-12T11:44:23.000Z | #ifndef __OVERLAY_IMPORT_HPP__
#define __OVERLAY_IMPORT_HPP__
#include <QMap>
#include <QVariant>
#include "map_overlay_manager.hpp"
struct CollectionData
{
QString name_ ; // name of the collection
quint64 folder_ ; // path of the collection in the library
QMap<Q... | 25.015625 | 135 | 0.683948 | malasiot |
7b148a69e19454f7d3f7f0a7dc24358ca2e2eb38 | 488 | hpp | C++ | src/base_station/waypoint.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T02:32:49.000Z | 2018-10-16T02:32:49.000Z | src/base_station/waypoint.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 13 | 2018-10-23T20:35:10.000Z | 2018-11-23T22:44:32.000Z | src/base_station/waypoint.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T03:11:39.000Z | 2018-10-16T03:11:39.000Z | #ifndef WAYPOINT_H
#define WAYPOINT_H
#include <vector>
#include "../network/network.hpp"
namespace waypoint
{
struct Waypoint
{
float latitude;
float longitude;
};
extern std::vector<Waypoint> cur_waypoints;
extern float rover_latitude;
extern float rover_longitude;
extern network::LocationMessage::FixStatus rove... | 18.769231 | 53 | 0.788934 | 2535Rover |
7b17cd626acdbcd82ebbd2afcb4ab5d6bc0d74cf | 311 | cpp | C++ | spriterengine/objectinfo/taglist.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 92 | 2015-11-03T08:46:58.000Z | 2021-03-12T22:36:45.000Z | spriterengine/objectinfo/taglist.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 15 | 2015-11-04T12:16:36.000Z | 2019-09-03T17:13:16.000Z | spriterengine/objectinfo/taglist.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 53 | 2015-11-04T12:25:50.000Z | 2021-04-30T06:14:37.000Z | #include "taglist.h"
namespace SpriterEngine
{
TagList::TagList()
{
}
bool TagList::tagIsActive(std::string tag) const
{
for (auto& it : tags)
{
if (*it == tag)
{
return true;
}
}
return false;
}
void TagList::pushBackTag(const std::string * tag)
{
tags.push_back(tag);
}
}
| 11.107143 | 51 | 0.598071 | Squalr |
7b19cb098006e6db3fd13d1f77a263ccfbfe1e27 | 2,182 | hpp | C++ | include/strings_pool.hpp | banach-space/cpp-tutor | 1897401006a61bba9302479cf5665bb3de78554d | [
"MIT"
] | 53 | 2019-03-14T13:38:44.000Z | 2022-02-23T11:14:01.000Z | include/strings_pool.hpp | banach-space/cpp-tutor | 1897401006a61bba9302479cf5665bb3de78554d | [
"MIT"
] | null | null | null | include/strings_pool.hpp | banach-space/cpp-tutor | 1897401006a61bba9302479cf5665bb3de78554d | [
"MIT"
] | 4 | 2019-11-15T01:18:33.000Z | 2020-04-24T14:12:29.000Z | //==============================================================================
// FILE:
// strings_pool.hpp
//
// AUTHOR:
// banach-space@github
//
// DESCRIPTION:
//
// License: MIT
//==============================================================================
#ifndef _STRINGS_POOL_
#define _STRINGS_POOL_
#i... | 33.569231 | 80 | 0.611366 | banach-space |
7b1aba0e92c7d17534a4d7c739ed19a34926af22 | 1,577 | cpp | C++ | parser/html/tokenizer/tag_name.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | 3 | 2020-03-28T01:36:44.000Z | 2020-06-19T23:55:08.000Z | parser/html/tokenizer/tag_name.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | null | null | null | parser/html/tokenizer/tag_name.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (C) 2020 Tristan. All Rights Reserved.
* This file is licensed under the BSD 2-Clause license.
* See the COPYING file for licensing information.
*/
#include "tag_name.hpp"
#include <iostream>
#include <vector>
bool
HTML::Tokenizer::TagName::Parse() {
if (context.eof) {
std::cout << "EOF IN TAG... | 29.754717 | 79 | 0.711477 | usadson |
7b1c5ce42b31bd25a9897f039b536f439ee26bc2 | 344 | hpp | C++ | GLEssentials/Source/Classes/GLWrapper.hpp | mrtrizer/iOSGLES2 | 39a48c5be370f7b37bae908126cc61366882188f | [
"AML"
] | null | null | null | GLEssentials/Source/Classes/GLWrapper.hpp | mrtrizer/iOSGLES2 | 39a48c5be370f7b37bae908126cc61366882188f | [
"AML"
] | null | null | null | GLEssentials/Source/Classes/GLWrapper.hpp | mrtrizer/iOSGLES2 | 39a48c5be370f7b37bae908126cc61366882188f | [
"AML"
] | null | null | null | //
// GLWrapper.hpp
// GLEssentials
//
// Created by Denis Zdorovtsov on 24.06.16.
// Copyright © 2016 Dan Omachi. All rights reserved.
//
#ifndef GLWrapper_hpp
#define GLWrapper_hpp
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
void renderCPP();
void initCPP();
#ifdef __cplusplus
}
#endif
#en... | 13.230769 | 53 | 0.688953 | mrtrizer |
7b21399cc5df03c2d753e45572c252d612a27340 | 2,162 | cpp | C++ | platform/opengl/OpenGLRenderApi.cpp | James51332/Papaya | 05c8216e5525f1ec7ca3e12c18d338c5929a4e16 | [
"Apache-2.0"
] | 2 | 2021-02-03T22:13:24.000Z | 2021-07-15T14:43:27.000Z | platform/opengl/OpenGLRenderApi.cpp | James51332/Papaya | 05c8216e5525f1ec7ca3e12c18d338c5929a4e16 | [
"Apache-2.0"
] | null | null | null | platform/opengl/OpenGLRenderApi.cpp | James51332/Papaya | 05c8216e5525f1ec7ca3e12c18d338c5929a4e16 | [
"Apache-2.0"
] | null | null | null | #include "papayapch.h"
#include "OpenGLRenderApi.h"
#include "OpenGLLoader.h"
#include "OpenGLVertexArray.h"
#include "OpenGLVertexArrayCache.h"
namespace Papaya
{
OpenGLRenderApi::OpenGLRenderApi()
{
}
OpenGLRenderApi::~OpenGLRenderApi()
{
}
void OpenGLRenderApi::OnInit()
{
glEnable(GL_BLEND... | 30.027778 | 128 | 0.596207 | James51332 |
7b21467c5c0bab7da39ebcf804a785663abf05fe | 1,637 | cpp | C++ | examples/PageRank_Verctor.cpp | aimsky/PhiGraph | 9fd89c0093172f03855415472b974353cb4b4fc8 | [
"Apache-2.0"
] | 3 | 2016-05-25T08:04:30.000Z | 2016-06-01T08:02:32.000Z | examples/PageRank_Verctor.cpp | aimsky/PhiGraph | 9fd89c0093172f03855415472b974353cb4b4fc8 | [
"Apache-2.0"
] | null | null | null | examples/PageRank_Verctor.cpp | aimsky/PhiGraph | 9fd89c0093172f03855415472b974353cb4b4fc8 | [
"Apache-2.0"
] | null | null | null | #include "phigraph/phigraph.h"
class PageRankVerctor:public PhiGraphProgram{
public:
double* prValue;
phiLong vertexNum;
PageRankVerctor(Graph<Vertex>& phigraph,double f = 1){
vertexNum = phigraph.vertexNum;
prValue = phimalloc(double,vertexNum);
parallel_for(phiLong i = 0;i < vertexNum;i++){ //pr va... | 31.480769 | 84 | 0.678681 | aimsky |
7b21f0a083362d5a8beee257eaa2c6bc82d564df | 666 | cpp | C++ | pro/mytreewidgetitem.cpp | Jia-wei-Zhang/genealogy-management-system | 759ef341a3e426f9e8fdcad82cd5fd16fe999f00 | [
"MulanPSL-1.0"
] | 1 | 2021-11-04T13:36:12.000Z | 2021-11-04T13:36:12.000Z | pro/mytreewidgetitem.cpp | Jia-wei-Zhang/genealogy-management-system | 759ef341a3e426f9e8fdcad82cd5fd16fe999f00 | [
"MulanPSL-1.0"
] | null | null | null | pro/mytreewidgetitem.cpp | Jia-wei-Zhang/genealogy-management-system | 759ef341a3e426f9e8fdcad82cd5fd16fe999f00 | [
"MulanPSL-1.0"
] | null | null | null | #include "mytreewidgetitem.h"
MyTreeWidgetItem::MyTreeWidgetItem(QTreeWidget *parent) : QTreeWidgetItem(parent)
{
}
MyTreeWidgetItem::MyTreeWidgetItem(QTreeWidgetItem *parent) : QTreeWidgetItem(parent)
{
}
void MyTreeWidgetItem::changeItemInformation(QString new_name,QString new_sex, QString new_birthday,QString n... | 25.615385 | 181 | 0.752252 | Jia-wei-Zhang |
7b220ad0903b34dd480b6ed6e3f9e3b77706297c | 193 | hpp | C++ | include/utils/sequence.hpp | VectorSatyr/sdl_xo_game | abe6ad1139fb022b3190db6dd8c16f6aa2c223bc | [
"MIT"
] | null | null | null | include/utils/sequence.hpp | VectorSatyr/sdl_xo_game | abe6ad1139fb022b3190db6dd8c16f6aa2c223bc | [
"MIT"
] | null | null | null | include/utils/sequence.hpp | VectorSatyr/sdl_xo_game | abe6ad1139fb022b3190db6dd8c16f6aa2c223bc | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
namespace utils
{
template<class T>
struct __declspec(novtable) sequence
{
virtual ~sequence() = default;
virtual std::vector<T> vector() const = 0;
};
} | 16.083333 | 44 | 0.694301 | VectorSatyr |
7b22fc19db0dbc3d171a30e96ea4a908bfdeb433 | 102 | cpp | C++ | source/Hitbox.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | 1 | 2017-12-15T01:14:06.000Z | 2017-12-15T01:14:06.000Z | source/Hitbox.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | null | null | null | source/Hitbox.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | null | null | null | #include"HitBox.h"
decltype(HitBoxList::hitboxes_)& HitBoxList::getHitboxes() { return hitboxes_; } | 34 | 82 | 0.754902 | GoldenBunny |
7b232f637d45292a1f29cc80acc32903e0cd3c1b | 932 | cpp | C++ | 003-longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.cpp | xiechengsheng/leetcode | 1775838165ffdf7948862b746a562d2e1cd571b8 | [
"Apache-2.0"
] | null | null | null | 003-longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.cpp | xiechengsheng/leetcode | 1775838165ffdf7948862b746a562d2e1cd571b8 | [
"Apache-2.0"
] | null | null | null | 003-longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.cpp | xiechengsheng/leetcode | 1775838165ffdf7948862b746a562d2e1cd571b8 | [
"Apache-2.0"
] | null | null | null | // Given a string, find the length of the longest substring without repeating characters.
//
// Examples:
//
// Given "abcabcbb", the answer is "abc", which the length is 3.
//
// Given "bbbbb", the answer is "b", with the length of 1.
//
// Given "pwwkew", the answer is "wke", with the length of 3. Note that the answe... | 30.064516 | 148 | 0.592275 | xiechengsheng |
7b23a9cac1022416b0fa0b1608918aa1fd069c91 | 510 | hh | C++ | src/file_handling.hh | b4shfire/stegcrack | 0f6015c9a5cf16877dab544818d6a2cd6c36c7dd | [
"BSD-3-Clause"
] | 6 | 2021-02-16T09:03:30.000Z | 2021-09-05T16:09:53.000Z | src/file_handling.hh | b4shfire/stegcrack | 0f6015c9a5cf16877dab544818d6a2cd6c36c7dd | [
"BSD-3-Clause"
] | null | null | null | src/file_handling.hh | b4shfire/stegcrack | 0f6015c9a5cf16877dab544818d6a2cd6c36c7dd | [
"BSD-3-Clause"
] | 2 | 2021-10-02T18:22:47.000Z | 2021-10-05T00:59:48.000Z | // © 2021 Lorian Richmond
#ifndef FILE_HANDLING_HH
#define FILE_HANDLING_HH
#include "ExtractedData.hh"
#include <vector>
namespace file_handling{
// Automatically detect the file type based on magic bytes
std::vector<bool> auto_load(FILE* p_file);
std::vector<bool> load_jpeg(FILE* p_file);
std::vector<bool... | 19.615385 | 66 | 0.745098 | b4shfire |
7b2b0c579cbce59b49c40c864be59e7415832eb3 | 8,741 | cpp | C++ | src/main/sdbench/sdbench_configuration.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | 1 | 2017-08-08T12:10:07.000Z | 2017-08-08T12:10:07.000Z | src/main/sdbench/sdbench_configuration.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | null | null | null | src/main/sdbench/sdbench_configuration.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// sdbench_configuration.cpp
//
// Identification: src/main/sdbench/sdbench_configuration.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-------------------------... | 28.37987 | 80 | 0.62327 | xhad1234 |
7b3ad8fcc4de114efc648aeff187702dd29a01e5 | 13,097 | cpp | C++ | src/src/game.cpp | andeluvian/micromachines | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | [
"Apache-2.0"
] | null | null | null | src/src/game.cpp | andeluvian/micromachines | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | [
"Apache-2.0"
] | null | null | null | src/src/game.cpp | andeluvian/micromachines | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | [
"Apache-2.0"
] | null | null | null | #include <SFML/Graphics.hpp>
#include "game.hpp"
#include "turbo.hpp"
#include "aicar.hpp"
#include "track.hpp"
#include "car.hpp"
#include "submenu.hpp"
#include "timeTrial.hpp"
#include "splitScreen.hpp"
#include "xmlParser.hpp"
Game::Game() :
cState(GameStates::STATE_MAINMENU),
soundHandler(SoundHandler()),
upda... | 29.299776 | 114 | 0.624036 | andeluvian |
7b40cb1ef28e557856c66c992b4193f8e901863d | 473 | cpp | C++ | Difficulty 1/pot.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 1/pot.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 1/pot.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main() {
int N = 0; string first; string second; string line;
double amount = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> line;
first = line.substr(0, line.length() - 1);
second = line.back... | 18.192308 | 56 | 0.515856 | BrynjarGeir |
7b44a49a1e2f932e80323c66796c41654d691f2e | 10,869 | hpp | C++ | include/utils4cpp/str/UStringCvt.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T01:34:56.000Z | 2019-10-17T01:34:56.000Z | include/utils4cpp/str/UStringCvt.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | null | null | null | include/utils4cpp/str/UStringCvt.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | 3 | 2019-10-17T01:33:37.000Z | 2019-12-02T02:13:45.000Z | /************************************************************************************
**
** BSD 3-Clause License
**
** Copyright (c) 2019, shaoguang. All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions ar... | 35.636066 | 107 | 0.690496 | shaoguangwu |
0da510e939a0a28947f1ea2e674e59abe5f9d333 | 3,675 | hpp | C++ | src/Inciter/AMR/AMR_types.hpp | franjgonzalez/Quinoa | 411eb8815e92618c563881b784e287e2dd916f89 | [
"RSA-MD"
] | null | null | null | src/Inciter/AMR/AMR_types.hpp | franjgonzalez/Quinoa | 411eb8815e92618c563881b784e287e2dd916f89 | [
"RSA-MD"
] | null | null | null | src/Inciter/AMR/AMR_types.hpp | franjgonzalez/Quinoa | 411eb8815e92618c563881b784e287e2dd916f89 | [
"RSA-MD"
] | null | null | null | #ifndef AMR_types_h
#define AMR_types_h
#include <array>
#include <vector>
#include <map>
#include "../Base/Types.hpp"
#include "edge.hpp"
#include "UnsMesh.hpp"
// TODO: Do we need to merge this with Base/Types.h?
namespace AMR {
const int DIMENSION = 3;
const size_t NUM_TET_NODES = 4;
const size_t NUM_FACE_NODES... | 29.878049 | 84 | 0.652517 | franjgonzalez |
0da65564f031a2ed12c0128d5f4ec94838d3c416 | 2,870 | cpp | C++ | Implementation/manual_test/Actuator/actuator_manual_test.cpp | aralce/irrigation_system | ab44cc029ea8b053eb87e7138d57eaee78c7056f | [
"MIT"
] | null | null | null | Implementation/manual_test/Actuator/actuator_manual_test.cpp | aralce/irrigation_system | ab44cc029ea8b053eb87e7138d57eaee78c7056f | [
"MIT"
] | null | null | null | Implementation/manual_test/Actuator/actuator_manual_test.cpp | aralce/irrigation_system | ab44cc029ea8b053eb87e7138d57eaee78c7056f | [
"MIT"
] | null | null | null | #include "Actuator_manual_test.h"
#include "cmsis_os.h"
#include "cmsis_os.h"
#include "stm32f4xx_hal.h"
#include "Actuator.h"
#define COUNT_OF(x) sizeof(x)/sizeof(x[0])
static Sensor *sensor;
static Actuator *actuator;
extern UART_HandleTypeDef huart1;
void actuator_manual_test_init_with_sensor()
{
/*GPIO Initial... | 30.210526 | 97 | 0.721951 | aralce |
0daa9964ce1180f5eb9dd3aaf8ef5a0f90c68f0d | 11,240 | cpp | C++ | organization/src/v20181225/model/OrgInvitation.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | organization/src/v20181225/model/OrgInvitation.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | organization/src/v20181225/model/OrgInvitation.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 26.323185 | 142 | 0.663434 | suluner |
0dabaf50e17c94e7d20bdaaec8ea15b7d2f61d9b | 7,628 | cpp | C++ | Pod/musicFramework/core/ScoreConversions.cpp | iKimee/musicXML | 5555f5c00e74c8e3f5ddf7e83072bf208602b970 | [
"Apache-2.0"
] | 3 | 2018-12-18T06:38:57.000Z | 2022-01-25T10:42:19.000Z | Pod/musicFramework/core/ScoreConversions.cpp | Bone111/MusicXMLParser | 674f6b52634abb95008cc04ee02f4df0055851a6 | [
"MIT"
] | null | null | null | Pod/musicFramework/core/ScoreConversions.cpp | Bone111/MusicXMLParser | 674f6b52634abb95008cc04ee02f4df0055851a6 | [
"MIT"
] | 1 | 2021-01-29T10:43:31.000Z | 2021-01-29T10:43:31.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "../core/ScoreConversions.h"
#include "../core/elements/TimewiseMeasure.h"
#include "../core/elements/PartwiseMeasure.h"
#include "../core/elements/PartwisePart.h"
#include "../core/elements/TimewisePart.h"... | 44.608187 | 128 | 0.485186 | iKimee |
0db29e3412e65ce8a85308b0e1d9b37fa48bd350 | 4,836 | cc | C++ | src/27_convert_binary_search_tree/convert_binary_search_tree.cc | Johnson9009/CodingInterviewChinese1 | 0c3e566992ccf2b61e18d7bf576d113c5a249044 | [
"BSD-3-Clause"
] | 1 | 2018-08-11T15:00:08.000Z | 2018-08-11T15:00:08.000Z | src/27_convert_binary_search_tree/convert_binary_search_tree.cc | Johnson9009/CodingInterviewChinese1 | 0c3e566992ccf2b61e18d7bf576d113c5a249044 | [
"BSD-3-Clause"
] | 2 | 2018-06-28T05:50:48.000Z | 2018-07-02T06:48:43.000Z | src/27_convert_binary_search_tree/convert_binary_search_tree.cc | Johnson9009/CodingInterviewChinese1 | 0c3e566992ccf2b61e18d7bf576d113c5a249044 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************
Copyright(c) 2016, Harry He
All rights reserved.
Distributed under the BSD license.
(See accompanying file LICENSE.txt at
https://github.com/zhedahht/CodingInterviewChinese2/blob/master/LICENSE.txt)
***************************************************... | 25.319372 | 79 | 0.623449 | Johnson9009 |
0db397e56c9410f534940525af103b8f129c103e | 408 | cpp | C++ | array/pairwithhashing.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | 2 | 2021-08-31T11:20:29.000Z | 2021-09-05T10:51:36.000Z | array/pairwithhashing.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | null | null | null | array/pairwithhashing.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | 1 | 2021-09-01T14:30:49.000Z | 2021-09-01T14:30:49.000Z | #include<iostream>
#include <algorithm>
using namespace std;
int main (){
int arr[]={6,3,5,7,2,1,9,8,4};
int k;
cin>>k;
int n = sizeof(arr)/sizeof(int);
int hash [10000]={0};
for (int i = 0; i < n; i++)
{
if (hash[k-arr[i]] != 0)
{
cout<<arr[i]<<" + "<<k... | 16.32 | 57 | 0.414216 | FirdausJawed |
0db608629a0e41b701c222f0e8b7de2892604cd2 | 324 | hpp | C++ | Systems/StandardSystem.hpp | Estard/VKGE-V3M | c684b20cc1cb66353f2b501c6e16311db7ad149b | [
"MIT"
] | null | null | null | Systems/StandardSystem.hpp | Estard/VKGE-V3M | c684b20cc1cb66353f2b501c6e16311db7ad149b | [
"MIT"
] | null | null | null | Systems/StandardSystem.hpp | Estard/VKGE-V3M | c684b20cc1cb66353f2b501c6e16311db7ad149b | [
"MIT"
] | null | null | null | #pragma once
#include "../Definitions.hpp"
#include "PresentationSystem.hpp"
class ISystem
{
public:
virtual void OnUpdate() = 0;
virtual ~ISystem();
SystemFlag sysFlag = VGE_SYSTEM_STANDARD;
protected:
PresentationSystem *prSystem = nullptr;
vkjob::ThreadPool *tPool = nullptr;
};
ISystem::~ISystem()
... | 14.727273 | 43 | 0.709877 | Estard |
0db6729399b5816231ab364f623e031e45bdf431 | 8,211 | cpp | C++ | engine/src/input/input_web.cpp | wanderingbort/xplat-engine | ef2c89b1a9dc99a38374057120b4b8e295876383 | [
"MIT"
] | 4 | 2017-04-25T13:32:26.000Z | 2018-10-10T09:15:39.000Z | engine/src/input/input_web.cpp | wanderingbort/xplat-engine | ef2c89b1a9dc99a38374057120b4b8e295876383 | [
"MIT"
] | null | null | null | engine/src/input/input_web.cpp | wanderingbort/xplat-engine | ef2c89b1a9dc99a38374057120b4b8e295876383 | [
"MIT"
] | null | null | null | #include "input.h"
#include "input_web.h"
#include <GL/glfw.h>
static input::key const Glfw_low_key_map[48] = {
input::key::SPACE, // GLFW_KEY_SPACE
input::key::SINGLE_QUOTE, // GLFW_KEY_APOSTROPHE
input::key::COMMA, // GLFW_KEY_COMMA
input::key::DASH, // GLFW_KEY_... | 42.324742 | 124 | 0.563634 | wanderingbort |
0dbe1236b03155209b39986f7534920e64699873 | 2,306 | cpp | C++ | deps/vision/src/backend/PS_ASD.cpp | MichaelJCaruso/vxa-node | 4b02a17f48bed6f71f622e0bb743f87d932a2a6f | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/backend/PS_ASD.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/backend/PS_ASD.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** PS_ASD Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
******************/
#i... | 22.831683 | 84 | 0.49523 | MichaelJCaruso |
0dc03a8b195276c0ab6b86401f0d76008d556d3b | 19,588 | cpp | C++ | mmap_lib/tests/bench_str_use.cpp | pbonh/livehd | 7aba179a03ebe5f2705e0071c3247fe0a9c5c031 | [
"BSD-3-Clause"
] | 115 | 2019-09-28T13:39:41.000Z | 2022-03-24T11:08:53.000Z | mmap_lib/tests/bench_str_use.cpp | pbonh/livehd | 7aba179a03ebe5f2705e0071c3247fe0a9c5c031 | [
"BSD-3-Clause"
] | 113 | 2019-10-08T23:51:29.000Z | 2021-12-12T06:47:38.000Z | mmap_lib/tests/bench_str_use.cpp | pbonh/livehd | 7aba179a03ebe5f2705e0071c3247fe0a9c5c031 | [
"BSD-3-Clause"
] | 44 | 2019-09-28T07:53:21.000Z | 2022-02-13T23:21:12.000Z | #include <type_traits>
#include <vector>
#include "flat_hash_map.hpp"
#include "fmt/format.h"
#include "iassert.hpp"
#include "lbench.hpp"
#include "lrand.hpp"
#include "mmap_map.hpp"
#include "mmap_str.hpp"
//#define BENCH 1
#ifdef BENCH
#define CTOR_TESTS 0
#define NEEQ_TESTS 0
#define AT... | 31.695793 | 127 | 0.5898 | pbonh |
0dc1543bbd0966cc21d124e97a0e6c368e7f2bfd | 7,400 | cpp | C++ | sk4d/modules/skparagraph/src/sk4d_textstyle.cpp | viniciusfbb/skia | da7af57027e2cec90985fbfd75192cc896994eff | [
"BSD-3-Clause"
] | 4 | 2021-08-11T01:22:19.000Z | 2021-11-04T12:08:25.000Z | sk4d/modules/skparagraph/src/sk4d_textstyle.cpp | viniciusfbb/skia | da7af57027e2cec90985fbfd75192cc896994eff | [
"BSD-3-Clause"
] | null | null | null | sk4d/modules/skparagraph/src/sk4d_textstyle.cpp | viniciusfbb/skia | da7af57027e2cec90985fbfd75192cc896994eff | [
"BSD-3-Clause"
] | 1 | 2021-08-13T18:17:26.000Z | 2021-08-13T18:17:26.000Z | /*
* Copyright (c) 2011-2021 Google LLC.
* Copyright (c) 2021 Skia4Delphi Project.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/skparagraph/include/sk4d_textstyle.h"
#include "modules/skparagraph/src/sk4d_paragraph_mapping.h"
void s... | 33.636364 | 104 | 0.784324 | viniciusfbb |
0dc4e54c4b1d792ea37cce1c6a64d438f88eaeee | 4,623 | cpp | C++ | AADC/src/adtfUser/dev/src/boolSenderFilter/bool_sender_filter.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | 1 | 2018-05-10T22:35:25.000Z | 2018-05-10T22:35:25.000Z | AADC/src/adtfUser/dev/src/boolSenderFilter/bool_sender_filter.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | AADC/src/adtfUser/dev/src/boolSenderFilter/bool_sender_filter.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "bool_sender_filter.h"
#include <template_data.h>
// -------------------------------------------------------------------------------------------------
ADTF_FILTER_PLUGIN("FRUIT Sender Filter Bool", OID_ADTF_BOOL_SENDER_FILTER, BoolSenderFilter);
// -----------------------------------------... | 44.028571 | 100 | 0.549427 | AADC-Fruit |
0dc50fdd4e62c2926be570ce852a3928b00749b8 | 4,194 | cpp | C++ | thcrap_i18n/src/i18n.cpp | zero318/thcrap | dff0f66d486aae9e19f0237527a0c3d5163fb34c | [
"Unlicense"
] | null | null | null | thcrap_i18n/src/i18n.cpp | zero318/thcrap | dff0f66d486aae9e19f0237527a0c3d5163fb34c | [
"Unlicense"
] | null | null | null | thcrap_i18n/src/i18n.cpp | zero318/thcrap | dff0f66d486aae9e19f0237527a0c3d5163fb34c | [
"Unlicense"
] | null | null | null | #include "i18n_private.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <unordered_map>
#include <mutex>
#include <string>
#include <atomic>
#include <vector>
#include <stdexcept>
#include <jansson.h>
using std::mutex;
using std::lock_guard;
using std::unordered_map;
using std::string;
using std::wstring;
u... | 24.242775 | 137 | 0.672866 | zero318 |
0dc77657d5644a93edb7590ac5503137ef9f7258 | 7,699 | cpp | C++ | src/cppREST/HttpResponse.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | src/cppREST/HttpResponse.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | src/cppREST/HttpResponse.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | #include "HttpResponse.h"
HttpResponse::HttpResponse()
{
this->clear();
}
HttpResponse::HttpResponse(QByteArray response_data)
{
this->clear();
this->append(response_data);
}
HttpResponse::HttpResponse(BasicResponseData data)
{
readBasicResponseData(data);
}
HttpResponse::HttpResponse(BasicResponseData data, QB... | 26.276451 | 193 | 0.739057 | BeneKenobi |
0dc9d4098e76f23f6d4d7997ec5f53a1f924bf91 | 2,096 | cpp | C++ | SortWeightedDAG.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | SortWeightedDAG.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | SortWeightedDAG.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | # include<iostream>
# include<vector>
# include<algorithm>
# include<set>
# include<map>
using namespace std;
bool comp(pair<int,int> p1, pair<int,int> p2)
{
return p1.second > p2.second;
}
class Graph
{
private:
map<int, int> nodes;
map<int, set<int>> edges;
public:
void AddNode(int n, int w)
{
... | 23.032967 | 84 | 0.485687 | ChenliangLi205 |
0dcd51ba26035d6812a485754e554ce204e43896 | 3,115 | cpp | C++ | src/OrProtocol.cpp | Jesusausage/ZKP_Voting | c98658ac533522a146b0be5a976cb215f130a4ec | [
"MIT"
] | 1 | 2019-07-04T18:54:07.000Z | 2019-07-04T18:54:07.000Z | src/OrProtocol.cpp | Jesusausage/ZKP_Voting | c98658ac533522a146b0be5a976cb215f130a4ec | [
"MIT"
] | null | null | null | src/OrProtocol.cpp | Jesusausage/ZKP_Voting | c98658ac533522a146b0be5a976cb215f130a4ec | [
"MIT"
] | 1 | 2019-09-10T00:15:30.000Z | 2019-09-10T00:15:30.000Z | #include "OrProtocol.hpp"
OrProtocol::OrProtocol(SigmaProtocol** sigma_protocols,
int num_prots,
int i_known /*= 0*/)
:
num_prots_(num_prots)
{
setKnown(i_known);
sigma_prots_ = new SigmaProtocol*[num_prots];
fo... | 22.737226 | 67 | 0.593579 | Jesusausage |
0dcfafae592902f5e219db6db65119c80c06831d | 4,578 | cpp | C++ | official sample codes/Sample/SaveSensorBuffer/SaveSensorBuffer.cpp | novitec/ranger3 | 5ba831c2ddd500685f5e3940ab725c005c975c1c | [
"MIT"
] | null | null | null | official sample codes/Sample/SaveSensorBuffer/SaveSensorBuffer.cpp | novitec/ranger3 | 5ba831c2ddd500685f5e3940ab725c005c975c1c | [
"MIT"
] | null | null | null | official sample codes/Sample/SaveSensorBuffer/SaveSensorBuffer.cpp | novitec/ranger3 | 5ba831c2ddd500685f5e3940ab725c005c975c1c | [
"MIT"
] | 1 | 2020-03-25T04:49:40.000Z | 2020-03-25T04:49:40.000Z | // Copyright 2016-2018 SICK AG. All rights reserved.
#include "DeviceSelector.h"
#include "GenIRanger.h"
#include "SampleUtils.h"
#include "SingleDeviceConsumer.h"
#include <string>
void usage(int, char* argv[])
{
std::cout << "Usage:" << std::endl
<< argv[0] << " <file path for buffer>" << std::endl;... | 30.118421 | 81 | 0.674093 | novitec |
0dcfb4209aeccce78cf2d0b5014f2937542bf5a8 | 19,450 | cpp | C++ | src/core/mesh.cpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/core/mesh.cpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/core/mesh.cpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
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 ... | 28.900446 | 80 | 0.475167 | tp-ntouran |
0dd68fb06df35eee28cc20ad61c2adfac56e657c | 4,524 | hpp | C++ | src/include/tmdesc/members_view.hpp | Ariox41/tmdesc | 0a14a05d0e4740e2812c643cc7c7a494d882ac1f | [
"BSL-1.0"
] | 1 | 2022-03-21T08:41:57.000Z | 2022-03-21T08:41:57.000Z | src/include/tmdesc/members_view.hpp | Ariox41/tmdesc | 0a14a05d0e4740e2812c643cc7c7a494d882ac1f | [
"BSL-1.0"
] | null | null | null | src/include/tmdesc/members_view.hpp | Ariox41/tmdesc | 0a14a05d0e4740e2812c643cc7c7a494d882ac1f | [
"BSL-1.0"
] | null | null | null | // Copyright Victor Smirnov 2021
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
//
// The documentation can be found at the library's page:
// https://github.com/Ariox41/tmdesc
#pragma once
#include "type_info/get_... | 39.684211 | 123 | 0.693855 | Ariox41 |
0dd6f4e31c6e1ce53eccbe39f2909a5e196f0549 | 1,431 | cpp | C++ | codechef/MAXEXPR/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/MAXEXPR/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/MAXEXPR/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 03-08-2019 16:16:24
* solution_verdict: Partially Accepted language: C++14
* run... | 32.522727 | 111 | 0.42348 | kzvd4729 |
0dd91a25499423f12be58d468d16d76b9f77f18c | 23,434 | cpp | C++ | src/geometry/spline_curve_3D.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 10 | 2018-06-28T00:21:46.000Z | 2022-03-30T03:31:32.000Z | src/geometry/spline_curve_3D.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 35 | 2019-03-19T21:54:46.000Z | 2022-03-17T02:20:42.000Z | src/geometry/spline_curve_3D.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 8 | 2018-10-27T19:35:13.000Z | 2022-01-06T01:10:39.000Z | // CHAP - The Channel Annotation Package
//
// Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
// Stephen J. Tucker
//
// 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... | 27.634434 | 89 | 0.633353 | bigginlab |
0dda61f79db2c18ec368b166f2f2409d040e7dc5 | 188 | cpp | C++ | jitbc/BCStmt.cpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | 11 | 2015-06-12T19:54:14.000Z | 2021-11-26T10:45:18.000Z | jitbc/BCStmt.cpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | jitbc/BCStmt.cpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | // Copyright 2011 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0
#include "BCStmt.hpp"
namespace chai_internal {
BCStmt::~BCStmt(void) { }
}; // namespace chai_internal
| 18.8 | 79 | 0.734043 | cjang |
0ddbb489f9e382c0e20ae40f0299f9b04837ee29 | 1,588 | hpp | C++ | csf_workspace/csf/include/core/system/attribute/csf_attribute_exception_warning.hpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | 2 | 2019-12-17T13:16:48.000Z | 2019-12-17T13:16:51.000Z | csf_workspace/css/include/core/system/attribute/csf_attribute_exception_warning.hpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | csf_workspace/css/include/core/system/attribute/csf_attribute_exception_warning.hpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
*
*Copyright: armuxinxian@aliyun.com
*
*File name: csf_attribute_exception_warning.hpp
*
*Author: fz
*
*Version: 1.0
*
*Date: 05-7月-2018 20:09:27
*
*Description: Class(csf_attribute_exception_warning)
*
*Others:
*
*History:
**************... | 20.358974 | 124 | 0.611461 | Kitty-Kitty |
0ddfff10912d7f20777e1c6578755595437be80d | 708 | cpp | C++ | AtCoder/ABC/ABC-130/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-130/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-130/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MAX = (int)(1e5 + 5);
const ll INF = (ll)(1e10 + 5);
const int MAX_N = (int)(1e5 + 5);
int n;
ll k;
ll a[MAX_N];
ll acc[MAX_N];
ll ans;
int main(void) {
// Here your code !
scanf("%d %lld", &n, &k);
for (int i = 1; i <= n; +... | 14.44898 | 60 | 0.473164 | MonadicDavidHuang |
0de24626b6616fe31f3af1797dfdf0fd792ce88e | 473 | cpp | C++ | 5. Virtual Functions/1.Basic/22.LateBinding.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | 3 | 2019-11-06T15:43:06.000Z | 2020-06-05T10:47:28.000Z | 5. Virtual Functions/1.Basic/22.LateBinding.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | null | null | null | 5. Virtual Functions/1.Basic/22.LateBinding.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | 1 | 2019-09-06T03:37:08.000Z | 2019-09-06T03:37:08.000Z | #include <iostream>
using namespace std;
int Add(int x, int y)
{
return x + y;
}
int Sub(int x, int y)
{
return x - y;
}
int Mul(int x, int y)
{
return x * y;
}
int main(int argc, char const *argv[])
{
int (*imran) (int, int); // declaring function pointer
int choose;
cin >> choose;
if (choose == 1)
{
... | 10.75 | 55 | 0.55814 | Imran4424 |
0de3e75a57e603b6c2162b36199e5e2ed9d544b7 | 10,150 | cpp | C++ | examples/black-hole.cpp | Dekker1/gecode | bbefcea214fec798a0f5acc442581984555acd21 | [
"MIT-feh"
] | null | null | null | examples/black-hole.cpp | Dekker1/gecode | bbefcea214fec798a0f5acc442581984555acd21 | [
"MIT-feh"
] | null | null | null | examples/black-hole.cpp | Dekker1/gecode | bbefcea214fec798a0f5acc442581984555acd21 | [
"MIT-feh"
] | null | null | null | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Mikael Lagerkvist <lagerkvist@gecode.org>
*
* Copyright:
* Mikael Lagerkvist, 2006
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission ... | 31.918239 | 77 | 0.567291 | Dekker1 |
0de5df627ee7a9bd54130ff996c1b55b2ee3a0f3 | 535 | cpp | C++ | uts-application/utest/stubs/mic_i2s.cpp | malcom2073/uncannier-thunderboard-sense2 | 506521547537c1ad0c022680e672be0226fed823 | [
"MIT"
] | 3 | 2020-07-19T11:12:33.000Z | 2021-07-01T22:16:58.000Z | uts-application/utest/stubs/mic_i2s.cpp | malcom2073/uncannier-thunderboard-sense2 | 506521547537c1ad0c022680e672be0226fed823 | [
"MIT"
] | 14 | 2018-11-04T06:10:03.000Z | 2019-06-15T13:32:29.000Z | uts-application/utest/stubs/mic_i2s.cpp | malcom2073/uncannier-thunderboard-sense2 | 506521547537c1ad0c022680e672be0226fed823 | [
"MIT"
] | 1 | 2019-12-28T14:45:27.000Z | 2019-12-28T14:45:27.000Z | ///-----------------------------------------------------------------------------
///
/// @file mic_i2s.cpp
///
/// @brief Stubs for hardware/kit/common/bsp/thunderboard/mic_i2s.c
///
/// @copyright Copyright (c) Uncannier Software 2018
///
///-----------------------------------------------------------------------------... | 15.735294 | 80 | 0.44486 | malcom2073 |
0decfafdd752521994c43a3069b105aa3b89f26d | 3,931 | hpp | C++ | ivarp/include/ivarp/index_queue_set.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/index_queue_set.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/index_queue_set.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 33.598291 | 90 | 0.610786 | phillip-keldenich |
0df77734129c9bd5e32291f2b0deff3777cbf542 | 6,449 | hpp | C++ | src/nigh/impl/kdtree_batch/traversal_so2.hpp | mengyu-fu/nigh | da16672bf5b083c019d72b7f3df476c672bb78b4 | [
"BSD-3-Clause"
] | 28 | 2018-12-09T16:38:56.000Z | 2022-02-28T13:31:51.000Z | src/nigh/impl/kdtree_batch/traversal_so2.hpp | mengyu-fu/nigh | da16672bf5b083c019d72b7f3df476c672bb78b4 | [
"BSD-3-Clause"
] | 3 | 2019-03-27T01:02:51.000Z | 2019-07-05T15:47:59.000Z | src/nigh/impl/kdtree_batch/traversal_so2.hpp | mengyu-fu/nigh | da16672bf5b083c019d72b7f3df476c672bb78b4 | [
"BSD-3-Clause"
] | 6 | 2019-03-27T23:09:32.000Z | 2020-05-20T15:57:46.000Z | // Software License Agreement (BSD-3-Clause)
//
// Copyright 2018 The University of North Carolina at Chapel Hill
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain... | 40.30625 | 129 | 0.607536 | mengyu-fu |
0df873798b312a7ca9f5d6fc9a4fbd9fad28f787 | 188 | cpp | C++ | codeforces/766/A.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/766/A.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/766/A.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{ string n,m;
cin>>n>>m;
if(n==m)
cout<<"-1";
else if(n.size()>m.size())
cout<<n.size();
else
cout<<m.size();
return 0;
}
| 11.058824 | 26 | 0.56383 | Mohammad-Elsharkawy |
0dfb88d31a6261f5e6fc9a27678f863424e3ff7c | 1,748 | cpp | C++ | Auxie/AuxieUtil.cpp | markcodedesign/auxie | b154ee420ec38a804a10b4420186771e100c516a | [
"MIT"
] | 1 | 2018-09-21T20:07:25.000Z | 2018-09-21T20:07:25.000Z | Auxie/AuxieUtil.cpp | markcodedesign/auxie | b154ee420ec38a804a10b4420186771e100c516a | [
"MIT"
] | null | null | null | Auxie/AuxieUtil.cpp | markcodedesign/auxie | b154ee420ec38a804a10b4420186771e100c516a | [
"MIT"
] | null | null | null | #include "MainCommon.h"
int GetIntValue(LPCWSTR value)
{
int int_value = 0;
if(value != NULL)
int_value = _wtoi(value);
return int_value;
}
LPCWSTR GetStringValue(LPCWSTR value)
{
return value;
}
int CopyString(LPCWSTR src,int src_size, LPWSTR dest, int dest_size)
{
if (src_size == 0 || dest_size == 0)
{
... | 22.126582 | 130 | 0.702517 | markcodedesign |
0dfca63c9fe99626993adeac49e22dfc02244fa9 | 2,317 | cpp | C++ | problems/travelling_salesman.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | problems/travelling_salesman.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | problems/travelling_salesman.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
#include <vector>
using namespace std;
int travellingSalesCost(vector<vector<int>> &, vector<vector<int>> &, int, int);
int main() {
/**
* In order to figure out the minimal cost hamiltonian cycle of TSP,
* we simply use a bitmask to represent visited cities, accordingly at
* ea... | 37.370968 | 125 | 0.629694 | oishikm12 |
0dfd654883ea87b1fa4d13ebeaacf020f4c4ce27 | 197 | hpp | C++ | include/cockpit.hpp | XanClic/g1 | 0cfe731f25a07d8192d2a726051b3b8967f3963f | [
"CC-BY-4.0"
] | 6 | 2015-10-14T17:11:25.000Z | 2021-07-11T08:12:03.000Z | include/cockpit.hpp | XanClic/g1 | 0cfe731f25a07d8192d2a726051b3b8967f3963f | [
"CC-BY-4.0"
] | 1 | 2017-12-15T04:08:24.000Z | 2017-12-17T03:34:46.000Z | include/cockpit.hpp | XanClic/g1 | 0cfe731f25a07d8192d2a726051b3b8967f3963f | [
"CC-BY-4.0"
] | 1 | 2016-01-13T18:22:24.000Z | 2016-01-13T18:22:24.000Z | #ifndef COCKPIT_HPP
#define COCKPIT_HPP
#include "graphics.hpp"
#include "physics.hpp"
void init_cockpit(void);
void draw_cockpit(const GraphicsStatus &status, const WorldState &world);
#endif
| 16.416667 | 73 | 0.786802 | XanClic |
df061974d52f85a6e930e7ce06e4952872d6abdf | 566 | cpp | C++ | RUNETag/WinNTL/src/GetTime.cpp | vshesh/RUNEtag | 800e93fb7c0560ea5a6261ffc60c02638a8cc8c9 | [
"MIT"
] | 2 | 2016-10-17T20:30:05.000Z | 2020-03-24T19:52:14.000Z | RUNETag/WinNTL/src/GetTime.cpp | vshesh/RUNEtag | 800e93fb7c0560ea5a6261ffc60c02638a8cc8c9 | [
"MIT"
] | null | null | null | RUNETag/WinNTL/src/GetTime.cpp | vshesh/RUNEtag | 800e93fb7c0560ea5a6261ffc60c02638a8cc8c9 | [
"MIT"
] | 5 | 2016-07-02T12:59:28.000Z | 2021-10-02T14:58:30.000Z | #include <NTL/config.h>
#if (defined(NTL_CXX_ONLY) && !defined(__cplusplus))
#error "CXX_ONLY flag set...must use C++ compiler"
#endif
#include <time.h>
#if (defined(__cplusplus) && !defined(NTL_CXX_ONLY))
extern "C" double _ntl_GetTime();
#endif
double _ntl_GetTime(void)
{
static clock_t last_clock = 0;
st... | 16.647059 | 62 | 0.669611 | vshesh |
df07c01c8ad72ec78469e3f82d0ca60a5c846a6d | 1,054 | cpp | C++ | linear_search/abc74_c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | linear_search/abc74_c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | linear_search/abc74_c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
/*
参考リンク
ABC 74 C - Sugar Water
https://atcoder.jp/contests/abc074/tasks/arc083_a
*/
int main() {
int a, b, c, d, e, f;
cin... | 22.425532 | 55 | 0.407021 | Takumi1122 |
df10721f2717c1149c1fd3864405d0986187057d | 8,880 | cpp | C++ | src/cppLinqUnitTest/lastTest.cpp | paolosev/cpplinq | 9d631e852ebb8f3a0f134524fb82abccd799a361 | [
"Apache-2.0"
] | null | null | null | src/cppLinqUnitTest/lastTest.cpp | paolosev/cpplinq | 9d631e852ebb8f3a0f134524fb82abccd799a361 | [
"Apache-2.0"
] | null | null | null | src/cppLinqUnitTest/lastTest.cpp | paolosev/cpplinq | 9d631e852ebb8f3a0f134524fb82abccd799a361 | [
"Apache-2.0"
] | null | null | null | // Copyright 2012 Paolo Severini
//
// 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... | 36.393443 | 89 | 0.576239 | paolosev |
df1125da4627b7f2c75c2d0354e63c2463366164 | 44,497 | cpp | C++ | Motor2D/j1Gui.cpp | LazyFoxStudio/Project-2 | 1207c22620f72ac490ae1ae0389f199f0215dbc5 | [
"MIT"
] | 1 | 2018-09-20T09:01:50.000Z | 2018-09-20T09:01:50.000Z | Motor2D/j1Gui.cpp | LazyFoxStudio/Project-2 | 1207c22620f72ac490ae1ae0389f199f0215dbc5 | [
"MIT"
] | 197 | 2018-02-27T10:56:27.000Z | 2018-06-05T19:45:40.000Z | Motor2D/j1Gui.cpp | LazyFoxStudio/Project-2 | 1207c22620f72ac490ae1ae0389f199f0215dbc5 | [
"MIT"
] | null | null | null | #include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1Fonts.h"
#include "j1Input.h"
#include "j1Gui.h"
#include "Entity.h"
#include "UI_element.h"
#include "UI_Image.h"
#include "UI_Text.h"
#include "UI_Button.h"
#include "UI_Window.h"
#... | 30.857836 | 237 | 0.680922 | LazyFoxStudio |
df19b8dad0462f9f594cf99ee39182d60a7ef8d8 | 650 | cpp | C++ | src/p100.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | src/p100.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | src/p100.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | #include <cstdint>
#include <iostream>
#include "euler.h"
BEGIN_PROBLEM(100, solve_problem_100)
PROBLEM_TITLE("Exactly 50% chance of taking two blue discs")
PROBLEM_ANSWER("756872327473")
PROBLEM_DIFFICULTY(2)
PROBLEM_FUN_LEVEL(1)
PROBLEM_TIME_COMPLEXITY("log(N)")
PROBLEM_SPACE_COMPLEXITY("1")
END_PROBLEM(... | 19.69697 | 62 | 0.621538 | fancidev |
df1d6fec149f12382d5a9a6dde7698fd9906af14 | 1,153 | cpp | C++ | src/control/ackerman/AckermanControl.cpp | AeroStun/smartcar_shield | 8debfc53774c6fa832d9cf94f0af40343f78550d | [
"MIT"
] | 76 | 2016-01-25T13:31:46.000Z | 2022-03-09T17:55:28.000Z | src/control/ackerman/AckermanControl.cpp | AeroStun/smartcar_shield | 8debfc53774c6fa832d9cf94f0af40343f78550d | [
"MIT"
] | 40 | 2016-01-12T01:47:07.000Z | 2022-03-22T13:26:57.000Z | src/control/ackerman/AckermanControl.cpp | AeroStun/smartcar_shield | 8debfc53774c6fa832d9cf94f0af40343f78550d | [
"MIT"
] | 45 | 2016-07-20T12:19:53.000Z | 2022-03-09T17:56:20.000Z | #include "AckermanControl.hpp"
#include "../../utilities/Utilities.hpp"
using namespace smartcarlib::utils;
using namespace smartcarlib::constants::control;
using namespace smartcarlib::constants::motor;
AckermanControl::AckermanControl(Motor& steering, Motor& throttling)
: mSteering(steering)
, mThrottling(... | 29.564103 | 86 | 0.721596 | AeroStun |
df1edd484999dcb90fcefa0d89dd996b97154b89 | 891 | cpp | C++ | Attacker/AttackEdge.cpp | chase0213/Attacker | 1015630cee005608ba38a118ada89cb2e7ede2b3 | [
"MIT"
] | null | null | null | Attacker/AttackEdge.cpp | chase0213/Attacker | 1015630cee005608ba38a118ada89cb2e7ede2b3 | [
"MIT"
] | null | null | null | Attacker/AttackEdge.cpp | chase0213/Attacker | 1015630cee005608ba38a118ada89cb2e7ede2b3 | [
"MIT"
] | null | null | null | //
// AttackEdge.cpp
// Attacker
//
// Created by 長谷川 知里 on 2012/09/10.
// Copyright (c) 2012年 C. HASEGAWA. All rights reserved.
//
#include "AttackEdge.h"
void AttackEdge::RandomAttack() {
// 乱数のシードを設定
srand((unsigned int)time(NULL));
vector<Node> nodes = (*np).getNodes();
int *rnd... | 18.957447 | 57 | 0.533109 | chase0213 |
b301f95b668e1e5e5a9219252a50bf824701957e | 810 | cpp | C++ | L7/HTTP/Node/GpHttpServerNodeSocketTaskFactory.cpp | ITBear/GpNetwork | 65b28ee8ed16e47efd8f8991cd8942c8a517c45e | [
"Apache-2.0"
] | null | null | null | L7/HTTP/Node/GpHttpServerNodeSocketTaskFactory.cpp | ITBear/GpNetwork | 65b28ee8ed16e47efd8f8991cd8942c8a517c45e | [
"Apache-2.0"
] | null | null | null | L7/HTTP/Node/GpHttpServerNodeSocketTaskFactory.cpp | ITBear/GpNetwork | 65b28ee8ed16e47efd8f8991cd8942c8a517c45e | [
"Apache-2.0"
] | null | null | null | #include "GpHttpServerNodeSocketTaskFactory.hpp"
#include "GpHttpServerNodeSocketTask.hpp"
namespace GPlatform {
GpHttpServerNodeSocketTaskFactory::GpHttpServerNodeSocketTaskFactory (GpHttpRequestHandlerFactory::SP aRequestHandlerFactory) noexcept:
GpHttpServerSocketTaskFactory(std::move(aRequestHandlerFactory)... | 25.3125 | 136 | 0.734568 | ITBear |
b30339099c657025693ef98e6a2087d56a905fce | 12,196 | cpp | C++ | Code/Tools/Inspector/InputWidget.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | 1 | 2021-06-23T14:44:02.000Z | 2021-06-23T14:44:02.000Z | Code/Tools/Inspector/InputWidget.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | null | null | null | Code/Tools/Inspector/InputWidget.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | 1 | 2022-03-28T15:57:46.000Z | 2022-03-28T15:57:46.000Z | #include <InspectorPCH.h>
#include <Foundation/Communication/Telemetry.h>
#include <GuiFoundation/GuiFoundationDLL.h>
#include <GuiFoundation/UIServices/UIServices.moc.h>
#include <Inspector/InputWidget.moc.h>
#include <MainWindow.moc.h>
#include <qlistwidget.h>
ezQtInputWidget* ezQtInputWidget::s_pWidget = nullptr;
... | 29.530266 | 134 | 0.632092 | alinoctavian |
b303a8bf08bca583a89e3e5d377dcfad4153a721 | 1,466 | cpp | C++ | 43SubstrDiv/Main.cpp | rohit-vighne/ProjectEuler | 53dc985cc60a30f92fa1b1402fe0f5b99dc0b51b | [
"MIT"
] | null | null | null | 43SubstrDiv/Main.cpp | rohit-vighne/ProjectEuler | 53dc985cc60a30f92fa1b1402fe0f5b99dc0b51b | [
"MIT"
] | null | null | null | 43SubstrDiv/Main.cpp | rohit-vighne/ProjectEuler | 53dc985cc60a30f92fa1b1402fe0f5b99dc0b51b | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <utility>
#include <iostream>
// Changes seq in-place to be the next lexicographical permutation
// Returns true if there may be more (higher) permutations, and false otherwise
template <typename T>
bool nextPermutation(T* seq, int size)
{
// Find pivot point
int i;
for (i = size - 2; i ... | 20.082192 | 79 | 0.566849 | rohit-vighne |
b30686040293566afb3f6e633e5f35ac2e1cbaa3 | 1,035 | cpp | C++ | utility.cpp | frankMagoba/Queue-Simulator | 785e5c59c62f583ebfe76f163230416ccd1df041 | [
"MIT"
] | 1 | 2016-03-21T01:30:24.000Z | 2016-03-21T01:30:24.000Z | utility.cpp | AlexanderSkafte/Queue-Simulation | d5eee95a9477e6973a93d99fa631c4854d4fc234 | [
"MIT"
] | null | null | null | utility.cpp | AlexanderSkafte/Queue-Simulation | d5eee95a9477e6973a93d99fa631c4854d4fc234 | [
"MIT"
] | null | null | null |
#include <chrono>
#include <thread>
#include <cmath>
#include <cstdlib>
#include <limits>
#include "utility.hpp"
const double time_speedup { 1.0 / (60.0 * 100000.0) };
const double time_serve_item { 2.0 };
const double time_limit { 100000.0 };
void sleep(double s)
{
s *= time_speedup;
unsi... | 25.875 | 77 | 0.58744 | frankMagoba |
b307ff53c54a4bf430bd19998dc896304dc3f392 | 111 | hpp | C++ | fw/include/fw/common/Filesystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | fw/include/fw/common/Filesystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | 9 | 2016-12-09T13:02:18.000Z | 2019-09-13T09:29:18.000Z | fw/include/fw/common/Filesystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace fw
{
std::string getPathDirectory(const std::string& filepath);
}
| 10.090909 | 58 | 0.72973 | sienkiewiczkm |
b312fe3544e159b0f01b14d69fbe23bf3cd6d3d3 | 20,523 | cpp | C++ | YorozuyaGSLib/source/WheatyExceptionReportDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/WheatyExceptionReportDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/WheatyExceptionReportDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <WheatyExceptionReportDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::WheatyExceptionReportDumpTypeIndex2_ptr WheatyExceptionReportDumpTypeIndex2_next(nullptr);
Info::WheatyExceptionReportDumpTypeIndex2_clbk WheatyExceptionReportDumpTypeIndex2_us... | 65.778846 | 192 | 0.732008 | lemkova |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.