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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
811060b660f31155703717dea1a1e3f4b262d572 | 77,600 | cc | C++ | cpp/src/arrow/compute/kernels/vector_sort_test.cc | stczwd/arrow | b60bbb30add0254707fd0599a8ab72112977a7a9 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | cpp/src/arrow/compute/kernels/vector_sort_test.cc | stczwd/arrow | b60bbb30add0254707fd0599a8ab72112977a7a9 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | cpp/src/arrow/compute/kernels/vector_sort_test.cc | stczwd/arrow | b60bbb30add0254707fd0599a8ab72112977a7a9 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 42.872928 | 90 | 0.549253 | stczwd |
81136addde12eccc3afd670ca5e852ca75aaf3c2 | 446 | cpp | C++ | Contests/30 Days of Code/Day_1_Data_Types.cpp | phonism/hackerrank | 385fce667d5788146bf8a87e98a8cacc47bef903 | [
"MIT"
] | null | null | null | Contests/30 Days of Code/Day_1_Data_Types.cpp | phonism/hackerrank | 385fce667d5788146bf8a87e98a8cacc47bef903 | [
"MIT"
] | null | null | null | Contests/30 Days of Code/Day_1_Data_Types.cpp | phonism/hackerrank | 385fce667d5788146bf8a87e98a8cacc47bef903 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
cout << "Primitive : double"<<endl;
cout << "Primitive : char" << endl;
cout << "Primitive : boolean" << endl;
cout << "Primitive : int" << endl;
cout << "Referenced : String" << endl;
cout << "Primitive : boolean" << endl;
cout << "Pr... | 27.875 | 43 | 0.560538 | phonism |
811678d2e1984c91abb84247616054aae1dd20a6 | 26,735 | cpp | C++ | libnd4j/blas/cpu/NativeOpExcutioner.cpp | 1m2c3t4/deeplearning4j | 15991607d059282fff560d814fe05fb2df983c32 | [
"Apache-2.0"
] | null | null | null | libnd4j/blas/cpu/NativeOpExcutioner.cpp | 1m2c3t4/deeplearning4j | 15991607d059282fff560d814fe05fb2df983c32 | [
"Apache-2.0"
] | null | null | null | libnd4j/blas/cpu/NativeOpExcutioner.cpp | 1m2c3t4/deeplearning4j | 15991607d059282fff560d814fe05fb2df983c32 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* 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.
*
*... | 50.73055 | 311 | 0.710866 | 1m2c3t4 |
811900fd1314e85784850f021c7fc170ad8487e3 | 2,566 | cpp | C++ | src/TaskQueue.cpp | Exo-Engine/ExoEnginey-experimental | d860459147bfdde6257ba12d15d0c57a2547fce9 | [
"MIT"
] | null | null | null | src/TaskQueue.cpp | Exo-Engine/ExoEnginey-experimental | d860459147bfdde6257ba12d15d0c57a2547fce9 | [
"MIT"
] | null | null | null | src/TaskQueue.cpp | Exo-Engine/ExoEnginey-experimental | d860459147bfdde6257ba12d15d0c57a2547fce9 | [
"MIT"
] | 1 | 2020-12-30T08:15:43.000Z | 2020-12-30T08:15:43.000Z | /*
* MIT License
*
* Copyright (c) 2020 Gaëtan Dezeiraud and Ribault Paul
*
* 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... | 25.66 | 101 | 0.687062 | Exo-Engine |
8119a3d698211d1a6c911994eaa6028f27127e0f | 2,498 | cpp | C++ | tests/unit/distributed/remote_run.cpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 1 | 2019-08-17T21:19:57.000Z | 2019-08-17T21:19:57.000Z | tests/unit/distributed/remote_run.cpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | null | null | null | tests/unit/distributed/remote_run.cpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Parsa Amini
// Copyright (c) 2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/execution_tree/primitives/generic_function.hpp>
#include <phylanx/phylanx.... | 27.152174 | 80 | 0.63811 | frzfrsfra4 |
811b902f8eab12a2baa15f659168245d941f2744 | 8,996 | cc | C++ | src/istio/prefetch/quota_prefetch.cc | lambdai/proxy | 39564e3255982f9325267c07ae5020f596d80e89 | [
"Apache-2.0"
] | null | null | null | src/istio/prefetch/quota_prefetch.cc | lambdai/proxy | 39564e3255982f9325267c07ae5020f596d80e89 | [
"Apache-2.0"
] | 1 | 2019-05-05T02:58:33.000Z | 2019-05-05T02:58:33.000Z | src/istio/prefetch/quota_prefetch.cc | lambdai/proxy | 39564e3255982f9325267c07ae5020f596d80e89 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 Istio Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 28.649682 | 80 | 0.650734 | lambdai |
811babd0a4c65ec75de20f8bd1149f951d509fbe | 9,051 | hpp | C++ | library/src/rng/distribution/discrete.hpp | akilaMD/rocRAND | 02e2bcb2bc7e0dafcaa5250e4298d02030bbf21f | [
"MIT"
] | 1 | 2020-05-14T02:36:44.000Z | 2020-05-14T02:36:44.000Z | library/src/rng/distribution/discrete.hpp | akilaMD/rocRAND | 02e2bcb2bc7e0dafcaa5250e4298d02030bbf21f | [
"MIT"
] | 1 | 2019-11-14T20:56:03.000Z | 2019-11-14T22:34:11.000Z | library/src/rng/distribution/discrete.hpp | akilaMD/rocRAND | 02e2bcb2bc7e0dafcaa5250e4298d02030bbf21f | [
"MIT"
] | 1 | 2019-11-14T19:59:01.000Z | 2019-11-14T19:59:01.000Z | // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// 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
// t... | 28.642405 | 106 | 0.541819 | akilaMD |
811bd57ae3120c1456e28d41eee9d8673e74c26d | 5,649 | cpp | C++ | cell_based/src/population/forces/BuskeElasticForce.cpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 100 | 2015-02-23T08:32:23.000Z | 2022-02-25T11:39:26.000Z | cell_based/src/population/forces/BuskeElasticForce.cpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2017-06-14T13:48:43.000Z | 2022-03-10T10:42:07.000Z | cell_based/src/population/forces/BuskeElasticForce.cpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 53 | 2015-02-23T13:52:44.000Z | 2022-02-28T18:57:35.000Z | /*
Copyright (c) 2005-2021, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 39.229167 | 144 | 0.747566 | mdp19pn |
811f5f629cd78a43b3eaf04b01d31e45baedf14f | 7,862 | cpp | C++ | libs/core/threading_base/src/set_thread_state_timed.cpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/core/threading_base/src/set_thread_state_timed.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/core/threading_base/src/set_thread_state_timed.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/config.hpp>
#include <hpx/config/asio.hpp>
#include <hpx/assert.hpp... | 40.112245 | 80 | 0.638133 | bhumitattarde |
812072b2ea5bd128bd67b6086f18bcb2ff59b8c1 | 235 | cpp | C++ | Day47_48_49_50_Algorithms/binaryRepresentation.cpp | activatedbonkers/100-Days-of-Code-Challenge | a1a376e5373d8fc5fda5df4004115760aa92bfda | [
"MIT"
] | 8 | 2020-07-12T22:45:30.000Z | 2021-06-01T10:44:28.000Z | Day47_48_49_50_Algorithms/binaryRepresentation.cpp | activatedbonkers/100-Days-of-Code-Challenge | a1a376e5373d8fc5fda5df4004115760aa92bfda | [
"MIT"
] | null | null | null | Day47_48_49_50_Algorithms/binaryRepresentation.cpp | activatedbonkers/100-Days-of-Code-Challenge | a1a376e5373d8fc5fda5df4004115760aa92bfda | [
"MIT"
] | 6 | 2020-06-29T18:36:27.000Z | 2022-01-16T21:18:03.000Z | #include <iostream>
using namespace std;
int main() {
//code
int t;
cin>>t;
for(int i=0; i<t; i++){
int n;
cin>>n;
for(int j=13; j > -1; j--)
{
cout<< ((n>>j) & 1);
}
cout<<endl;
}
return 0;
}
| 12.368421 | 31 | 0.442553 | activatedbonkers |
8120ad8ed6c4c3046cc87aa7ba5acdf084bdf414 | 147,396 | cpp | C++ | tests/UtfStringTests.cpp | longhorndude08/dhorn | d5a4c26ad1ee5f461fffe6db625d652cd94472cd | [
"MIT"
] | null | null | null | tests/UtfStringTests.cpp | longhorndude08/dhorn | d5a4c26ad1ee5f461fffe6db625d652cd94472cd | [
"MIT"
] | null | null | null | tests/UtfStringTests.cpp | longhorndude08/dhorn | d5a4c26ad1ee5f461fffe6db625d652cd94472cd | [
"MIT"
] | 1 | 2019-06-22T02:39:23.000Z | 2019-06-22T02:39:23.000Z | /*
* Duncan Horn
*
* UtfStringTests.cpp
*
* Tests for the dhorn utf_string classes, structures, functions, etc.
*/
#include "stdafx.h"
#pragma warning(push)
#pragma warning(disable:4389) // Signed unsigned mismatch due to char16_t/char32_t being unsigned, but char is signed
#include <dhorn/type_traits.h>
#inclu... | 40.272131 | 117 | 0.479592 | longhorndude08 |
812cea5dd281c11e791d6486ae70a90526e1885e | 1,033 | cpp | C++ | apps/novrt/win32/regkey.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | apps/novrt/win32/regkey.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | apps/novrt/win32/regkey.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #if defined(_WIN32)
#include "regkey.hpp"
namespace novrt::win32 {
RegKey::RegKey(HKEY key, Disposition disposition) :
m_valid{true}, m_key{key}, m_disposition{disposition} {}
RegKey::RegKey(WinErr errCode) : m_valid{false}, m_errCode{errCode} {}
RegKey::RegKey(RegKey&& rhs) noexcept {
if (rhs.m_valid) {
... | 21.081633 | 70 | 0.601162 | BastianBlokland |
812d4fc90f2364c3663bb4fd513ec3659a216f61 | 4,945 | cpp | C++ | Osa/Osa.cpp | Wolchy/PUBG | 6386d2d552415056d00e8d9941d51bf5550b69bf | [
"MIT"
] | 1 | 2019-03-05T05:19:54.000Z | 2019-03-05T05:19:54.000Z | Osa/Osa.cpp | Wolchy/PUBG | 6386d2d552415056d00e8d9941d51bf5550b69bf | [
"MIT"
] | 2 | 2019-02-15T09:12:19.000Z | 2019-03-06T00:47:34.000Z | Osa/Osa.cpp | Wolchy/PUBG | 6386d2d552415056d00e8d9941d51bf5550b69bf | [
"MIT"
] | null | null | null | #include "Osa.h"
#include "Graphics/GUI/Screen.h"
Screen* Osa::screen = NULL;
Screen* Osa::serverScreen = NULL;
bool Osa::run = false;
bool Osa::server = false;
bool Osa::init(std::string title, int width, int height) {
std::cout << "Starting " << OSA_VERSION << std::endl;
SCREEN_WIDTH = width;
SCREEN_HEIGHT = ... | 21.406926 | 170 | 0.626694 | Wolchy |
8134a7459f30edbc46cfe8d2b881da77569dc832 | 534 | cc | C++ | src/clients/RedisClient.cc | homer6/mutable | 3f2f8d8b2537ee7c92849664999388acb4e3d18c | [
"MIT"
] | null | null | null | src/clients/RedisClient.cc | homer6/mutable | 3f2f8d8b2537ee7c92849664999388acb4e3d18c | [
"MIT"
] | null | null | null | src/clients/RedisClient.cc | homer6/mutable | 3f2f8d8b2537ee7c92849664999388acb4e3d18c | [
"MIT"
] | null | null | null | #include "clients/RedisClient.h"
namespace mtbl::client{
RedisClient::RedisClient( const string connection_string )
:redis_connection( connection_string )
{
}
void RedisClient::set( const string& key, const string& value ){
this->redis_connection.set( key, value );
}
strin... | 14.052632 | 66 | 0.640449 | homer6 |
81377d85114d430d72871cf65f3a86823e1a88cd | 16,177 | hpp | C++ | phylanx/util/distributed_vector.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | phylanx/util/distributed_vector.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | phylanx/util/distributed_vector.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | // Copyright (c) 2019-2021 Hartmut Kaiser
// Copyright (c) 2019 Maxwell Reeser
//
// 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)
#if !defined(PHYLANX_UTIL_DISTRIBUTED_VECTOR_HPP)
#define PHYLANX_UTIL_DISTRIBUTED_V... | 39.64951 | 84 | 0.561414 | NanmiaoWu |
81390f47ae877984c0b2abea1e8702ca9a55e50c | 738 | cpp | C++ | src/plugins/viewmanager/text/FileReader.cpp | andreas-volz/temp | 0db8855b1bc868049770dbc91c23e6e3cd853a77 | [
"MIT"
] | 1 | 2015-12-22T14:49:11.000Z | 2015-12-22T14:49:11.000Z | src/plugins/viewmanager/text/FileReader.cpp | andreas-volz/temp | 0db8855b1bc868049770dbc91c23e6e3cd853a77 | [
"MIT"
] | null | null | null | src/plugins/viewmanager/text/FileReader.cpp | andreas-volz/temp | 0db8855b1bc868049770dbc91c23e6e3cd853a77 | [
"MIT"
] | null | null | null | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* STD */
#include <locale.h>
/* Project */
#include "FileReader.h"
using namespace std;
bool FileReader::open(const std::string &filename)
{
ifstream &if_stream = (*this);
// Because float-values should be 0.1 instead of 0,1
// in non-english if read from file... | 18 | 61 | 0.668022 | andreas-volz |
813f1e194606f5b4986c16e505dba88104ddbb59 | 16,434 | cpp | C++ | GP/GeoBoard.cpp | wsu-cb/cbwindows | 55d3797ed0c639b36fe3f677777fcc31e3449360 | [
"MIT"
] | 4 | 2020-06-22T16:59:51.000Z | 2020-06-28T19:35:23.000Z | GP/GeoBoard.cpp | wsu-cb/cbwindows | 55d3797ed0c639b36fe3f677777fcc31e3449360 | [
"MIT"
] | 59 | 2020-09-12T23:54:16.000Z | 2022-03-24T18:51:43.000Z | GP/GeoBoard.cpp | wsu-cb/cbwindows | 55d3797ed0c639b36fe3f677777fcc31e3449360 | [
"MIT"
] | 4 | 2020-06-22T13:37:40.000Z | 2021-01-29T12:42:54.000Z | // GeoBoard.cpp
//
// Copyright (c) 1994-2020 By Dale L. Larson, All Rights Reserved.
//
// 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 limitatio... | 32.933868 | 105 | 0.596751 | wsu-cb |
814069b5d3613413309d53ddb2982e5bfed57f0d | 4,081 | cpp | C++ | waypoint_reference_node/waypoint_reference_node.cpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | waypoint_reference_node/waypoint_reference_node.cpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | waypoint_reference_node/waypoint_reference_node.cpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | #include "ros/ros.h"
#include <iostream>
#include "common_srv/ROSUnit_Factory.hpp"
#include "std_logger.hpp"
#include "RestrictedNormWaypointRefGenerator.hpp"
#include "ROSUnit_RestNormSettings.hpp"
int main(int argc, char **argv){
ros::init(argc, argv, "waypoint_reference_node");
ros::NodeHandle nh;
... | 56.680556 | 148 | 0.585396 | AhmedHumais |
8141b353d6e7fc1b1c34bcfcea7e3b6f55a0b280 | 1,343 | cpp | C++ | net.ssa/Editors/LevelEditor/FrameOccluder.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | net.ssa/Editor/FrameOccluder.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | net.ssa/Editor/FrameOccluder.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
#pragma hdrstop
#include "ui_tools.h"
#include "FrameOccluder.h"
#include "ui_main.h"
#include "scene.h"
#include "sceneclasslist.h"
#include "PropertiesOccluder.h"
#include "occluder.h"
//---------------------------------------------------------------------------
#pragma package(smart_i... | 30.522727 | 78 | 0.445272 | ixray-team |
8143065633d18503d38dad1c36738e6998c0af5e | 7,393 | cpp | C++ | packages/Adapters/Intrepid/src/DTK_IntrepidSideCell.cpp | chiao45/DataTransferKit | 51923eb08ccd4c12c5a5ea5f136f5ccbbbeb6243 | [
"BSD-3-Clause"
] | 1 | 2020-07-26T03:50:31.000Z | 2020-07-26T03:50:31.000Z | packages/Adapters/Intrepid/src/DTK_IntrepidSideCell.cpp | chiao45/DataTransferKit | 51923eb08ccd4c12c5a5ea5f136f5ccbbbeb6243 | [
"BSD-3-Clause"
] | null | null | null | packages/Adapters/Intrepid/src/DTK_IntrepidSideCell.cpp | chiao45/DataTransferKit | 51923eb08ccd4c12c5a5ea5f136f5ccbbbeb6243 | [
"BSD-3-Clause"
] | 1 | 2018-07-09T18:39:38.000Z | 2018-07-09T18:39:38.000Z | //---------------------------------------------------------------------------//
/*
Copyright (c) 2012, Stuart R. Slattery
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 o... | 38.910526 | 80 | 0.610983 | chiao45 |
8144ed72fcd448989fbd2798fb34f61cf983f88f | 10,772 | cpp | C++ | src/demos/irrlicht/demo_IRR_collision_2d.cpp | IsymtecAi/chrono | 53b05f7586e0fc644ee05f5533a8b88cb81ec5b3 | [
"BSD-3-Clause"
] | null | null | null | src/demos/irrlicht/demo_IRR_collision_2d.cpp | IsymtecAi/chrono | 53b05f7586e0fc644ee05f5533a8b88cb81ec5b3 | [
"BSD-3-Clause"
] | null | null | null | src/demos/irrlicht/demo_IRR_collision_2d.cpp | IsymtecAi/chrono | 53b05f7586e0fc644ee05f5533a8b88cb81ec5b3 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 38.063604 | 111 | 0.658931 | IsymtecAi |
8146d6c7199ba31121a398346a3b3f329c5eac4e | 3,921 | cpp | C++ | AutoChessServer/Dependencies/LuaIntf/src/LuaState.cpp | 908760230/MyAutoChess | 3421534c111d2c69ab3338925b92f093ec7ade12 | [
"MIT"
] | null | null | null | AutoChessServer/Dependencies/LuaIntf/src/LuaState.cpp | 908760230/MyAutoChess | 3421534c111d2c69ab3338925b92f093ec7ade12 | [
"MIT"
] | null | null | null | AutoChessServer/Dependencies/LuaIntf/src/LuaState.cpp | 908760230/MyAutoChess | 3421534c111d2c69ab3338925b92f093ec7ade12 | [
"MIT"
] | null | null | null | //
// https://github.com/SteveKChiu/lua-intf
//
// Copyright 2014, Steve K. Chiu <steve.k.chiu@gmail.com>
//
// The MIT License (http://www.opensource.org/licenses/mit-license.php)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation... | 35.324324 | 87 | 0.562357 | 908760230 |
8146f17248803b1d46f0f290dca4d0604d4ee78b | 4,108 | cpp | C++ | FarRun/src/FarRun.cpp | kimstik/FarPlugins | 34f822929ab1430d400a7a1f3b1d7dd77600476c | [
"BSD-3-Clause"
] | null | null | null | FarRun/src/FarRun.cpp | kimstik/FarPlugins | 34f822929ab1430d400a7a1f3b1d7dd77600476c | [
"BSD-3-Clause"
] | null | null | null | FarRun/src/FarRun.cpp | kimstik/FarPlugins | 34f822929ab1430d400a7a1f3b1d7dd77600476c | [
"BSD-3-Clause"
] | null | null | null |
/*
Copyright (c) 2014 Maximus5
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disc... | 27.386667 | 97 | 0.667965 | kimstik |
8147b77b7a6967067f134f8a9dfb5dd8e2ec00f8 | 4,669 | cpp | C++ | src/AS_DCP.cpp | phastphill/asdcplib | 81946bf452da1263d7d1ea8df002abd4a5b98af4 | [
"AMPAS"
] | null | null | null | src/AS_DCP.cpp | phastphill/asdcplib | 81946bf452da1263d7d1ea8df002abd4a5b98af4 | [
"AMPAS"
] | null | null | null | src/AS_DCP.cpp | phastphill/asdcplib | 81946bf452da1263d7d1ea8df002abd4a5b98af4 | [
"AMPAS"
] | null | null | null | /*
Copyright (c) 2004-2014, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followi... | 28.29697 | 94 | 0.689227 | phastphill |
8149ec28a462515664b4674b6dbbc9e14922a30e | 3,409 | cpp | C++ | src/render/mesh.cpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | null | null | null | src/render/mesh.cpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | 16 | 2016-12-27T16:57:09.000Z | 2017-04-30T23:34:58.000Z | src/render/mesh.cpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | null | null | null | #include "render/mesh.hpp"
#include "render/open_gl.hpp"
namespace ve
{
namespace render
{
Mesh::Mesh()
{
numIndicesPerPrimitive = 3;
numIndicesInInstance = 0;
numInstances = 1;
glMode = GL_TRIANGLES;
glGenVertexArrays(1, &vertexArrayObject);
glGenBuffers(1, &indexBufferObject);
}
Mesh::~M... | 30.990909 | 161 | 0.725433 | fiddleplum |
814a62fe98e20811df1520ba22650e78df3322bb | 1,153 | cpp | C++ | Codeforces/C++/1579B.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 11 | 2021-10-01T06:53:31.000Z | 2022-02-05T20:36:20.000Z | Codeforces/C++/1579B.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 37 | 2021-10-01T06:54:01.000Z | 2021-10-20T18:02:31.000Z | Codeforces/C++/1579B.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 110 | 2021-10-01T06:51:28.000Z | 2021-10-31T18:00:55.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod ((ll)1e9+7)
#define test ll t; cin>>t; while(t--)
#define speed ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
void fileIO() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
int main... | 18.901639 | 79 | 0.483088 | shresth12-jain |
814eea272303a8a593e4909a0f778ebc6caa71f8 | 11,870 | cpp | C++ | src/bindings/qt/QDir/QDir.cpp | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | 1 | 2018-02-22T01:09:18.000Z | 2018-02-22T01:09:18.000Z | src/bindings/qt/QDir/QDir.cpp | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | null | null | null | src/bindings/qt/QDir/QDir.cpp | lazaroness/charonplatform | aeee2a803f86995b48c1b5a151b964e41ee7f602 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Charon Platform Authors.
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <lua/lua.hpp>
#include <QtCore>
QDir *
checkQDir( lua_State *L ) {
return *(QDir **) luaL_checkudata(L, 1, "QDir.metatable");
}
/**... | 24.575569 | 94 | 0.711036 | lazaroness |
814fa913bfdddcc9889bba5d6186bc3ac0f70865 | 16,587 | cpp | C++ | resource/IPCA/samples/ElevatorServer/elevatorserver.cpp | runtimeinc/iotivity | f71826858a754f048b93818582267e83f37f89e2 | [
"Apache-2.0"
] | 4 | 2017-07-11T16:48:17.000Z | 2020-04-03T15:32:37.000Z | resource/IPCA/samples/ElevatorServer/elevatorserver.cpp | runtimeinc/iotivity | f71826858a754f048b93818582267e83f37f89e2 | [
"Apache-2.0"
] | null | null | null | resource/IPCA/samples/ElevatorServer/elevatorserver.cpp | runtimeinc/iotivity | f71826858a754f048b93818582267e83f37f89e2 | [
"Apache-2.0"
] | 2 | 2017-07-14T21:04:10.000Z | 2021-08-12T05:04:33.000Z | /* *****************************************************************
*
* Copyright 2017 Microsoft
*
*
* 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/lic... | 32.780632 | 100 | 0.580394 | runtimeinc |
8152cbc7954f0c0c920fd92878dba6c9bd5339f4 | 3,374 | cpp | C++ | test/resqml2_0_1test/WellboreMarkerFrameRepresentationTest.cpp | Mauro-Carrion/fesapi | 04b2e05e40496b73d30422952b7001891d1bb359 | [
"Apache-2.0"
] | null | null | null | test/resqml2_0_1test/WellboreMarkerFrameRepresentationTest.cpp | Mauro-Carrion/fesapi | 04b2e05e40496b73d30422952b7001891d1bb359 | [
"Apache-2.0"
] | null | null | null | test/resqml2_0_1test/WellboreMarkerFrameRepresentationTest.cpp | Mauro-Carrion/fesapi | 04b2e05e40496b73d30422952b7001891d1bb359 | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 48.898551 | 154 | 0.794606 | Mauro-Carrion |
81542d024ba32ab491b8403fea034ddef5d00d11 | 6,190 | cpp | C++ | 2021/day16/main.cpp | syohex/advent_of_code | 514debae7c20c6dbd1e2e9646bbee072044d5440 | [
"MIT"
] | null | null | null | 2021/day16/main.cpp | syohex/advent_of_code | 514debae7c20c6dbd1e2e9646bbee072044d5440 | [
"MIT"
] | null | null | null | 2021/day16/main.cpp | syohex/advent_of_code | 514debae7c20c6dbd1e2e9646bbee072044d5440 | [
"MIT"
] | null | null | null | #include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <cstdint>
#include <limits>
namespace {
std::vector<int> ToBits(const std::string &s) {
std::vector<int> ret;
for (char c : s) {
std::vector<int> bits;
switch (c) {
case '0':
bits = {0, 0, 0... | 23.536122 | 69 | 0.459612 | syohex |
8154ebf6f88f93d4ad6a83ac546178063b87882b | 673 | hpp | C++ | include/mizuiro/image/detail/pitch_difference.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/image/detail/pitch_difference.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/image/detail/pitch_difference.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// 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)
#ifndef MIZUIRO_IMAGE_DETAIL_PITCH_DIFFERENCE_HPP_INCLUDED
#define MIZUIRO_IMAGE_DETAIL_PITCH_DIFFE... | 26.92 | 95 | 0.769688 | cpreh |
81553dfdc62c2a366006737e6e92c3433c10c243 | 6,912 | cpp | C++ | engine/source/wide/ui/skin/widget/ui_skin_menu_item.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | engine/source/wide/ui/skin/widget/ui_skin_menu_item.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | engine/source/wide/ui/skin/widget/ui_skin_menu_item.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------------------------//
/// @file wide/ui/skin/widget/ui_skin_menu_item.cpp
//------------------------------------------------------------------------------------------------//
//-INCLUDES------------------------------------------------------... | 44.883117 | 158 | 0.569589 | skarab |
81577fd966be1b234afd8272fd8869bc2042275d | 1,138 | hpp | C++ | src/libstorage_utility/rpc.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | 4 | 2019-11-20T17:27:57.000Z | 2021-01-05T09:46:20.000Z | src/libstorage_utility/rpc.hpp | mmher/publiq.pp | a1e2f70952f5075fb3283a34482a2c417c6aef9d | [
"MIT"
] | null | null | null | src/libstorage_utility/rpc.hpp | mmher/publiq.pp | a1e2f70952f5075fb3283a34482a2c417c6aef9d | [
"MIT"
] | 2 | 2019-01-10T14:10:26.000Z | 2020-03-01T05:55:05.000Z | #pragma once
#include "global.hpp"
#include <belt.pp/ilog.hpp>
#include <belt.pp/isocket.hpp>
#include <mesh.pp/cryptoutility.hpp>
#include <boost/filesystem/path.hpp>
#include <memory>
#include <string>
#include <chrono>
#include <map>
namespace storage_utility
{
namespace detail
{
class rpc_internals;
}
class ... | 22.76 | 80 | 0.563269 | publiqnet |
81581535a8a6255e7b9503188e2ceec0147a568f | 1,143 | cpp | C++ | Generic Tree/Generic_Tree_04_Height_Edge_Based.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | Generic Tree/Generic_Tree_04_Height_Edge_Based.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | Generic Tree/Generic_Tree_04_Height_Edge_Based.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Node
{
int data;
vector<Node *> children;
};
Node *newNode(int key)
{
Node *temp = new Node;
temp->data = key;
return temp;
}
Node *construct(int arr[], int n)
{
Node *root = NULL;
stack<Node *> st;
for (int i = 0; i < n; i++)
{
... | 16.565217 | 48 | 0.417323 | compl3xX |
815a9566974ab2222f971e8221efee439fd3a019 | 34,415 | cpp | C++ | networkit/cpp/Unittests-X.cpp | marufdsi/networkit | 6f98185cc077fdc4390bff0bcf9228ed171adf46 | [
"MIT"
] | null | null | null | networkit/cpp/Unittests-X.cpp | marufdsi/networkit | 6f98185cc077fdc4390bff0bcf9228ed171adf46 | [
"MIT"
] | null | null | null | networkit/cpp/Unittests-X.cpp | marufdsi/networkit | 6f98185cc077fdc4390bff0bcf9228ed171adf46 | [
"MIT"
] | null | null | null | // no-networkit-format
/*
* Unittests-X.cpp
*
* Updated: 2021
* Editor: Md Maruf Hossain
*
*/
#include <algorithm>
#include <iostream>
#include <omp.h>
#include <utility>
#include <gtest/gtest.h>
#include <tlx/cmdline_parser.hpp>
#include <networkit/GlobalState.hpp>
#include <networkit/auxiliary/Log.hpp... | 43.343829 | 143 | 0.521459 | marufdsi |
815eebaba04e7a7240e4df0cee2170413774b899 | 2,660 | cpp | C++ | Competitve Standards/codestandardxp.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | 1 | 2022-03-25T10:20:25.000Z | 2022-03-25T10:20:25.000Z | Competitve Standards/codestandardxp.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | Competitve Standards/codestandardxp.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <tuple>
#include <sstream>
#include <vector>
#include <cmath>
#include <ctime>
#include <bitset>
#include <cassert>
#include <cstdio>
#include <queue>
#include <set>
#include <map>
#include <fstream>
#include <cstdlib>
#include <string>
#include <cstring>
#include <algorithm... | 23.539823 | 80 | 0.46391 | hendry19901990 |
8167c39da2636727dd3437024600df068750f8cf | 13,522 | cpp | C++ | OSCWidgets/ToySlider.cpp | laseranichris/OSCWidgets | 6dbd6a98a86e59fcc38f39f2aead4fb0713fdead | [
"MIT"
] | 37 | 2017-09-06T17:03:03.000Z | 2022-03-15T23:04:14.000Z | OSCWidgets/ToySlider.cpp | laseranichris/OSCWidgets | 6dbd6a98a86e59fcc38f39f2aead4fb0713fdead | [
"MIT"
] | 11 | 2016-03-22T22:07:37.000Z | 2017-03-01T17:41:19.000Z | OSCWidgets/ToySlider.cpp | laseranichris/OSCWidgets | 6dbd6a98a86e59fcc38f39f2aead4fb0713fdead | [
"MIT"
] | 7 | 2017-12-17T13:26:43.000Z | 2022-02-21T23:59:55.000Z | // Copyright (c) 2018 Electronic Theatre Controls, Inc., http://www.etcconnect.com
//
// 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 ... | 27.765914 | 142 | 0.572031 | laseranichris |
8168f039dac0dac6639aeb6fd8c819b3a3c5fcb0 | 12,999 | hpp | C++ | index/common_index.hpp | YunWorkshop/viperlearned-index | 3e779c6c1d51cf300e08d201135de606f833bfc5 | [
"BSD-2-Clause"
] | null | null | null | index/common_index.hpp | YunWorkshop/viperlearned-index | 3e779c6c1d51cf300e08d201135de606f833bfc5 | [
"BSD-2-Clause"
] | null | null | null | index/common_index.hpp | YunWorkshop/viperlearned-index | 3e779c6c1d51cf300e08d201135de606f833bfc5 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by bysoulwarden on 2021/10/25.
//
#ifndef VIPER_COMMON_INDEX_H
#define VIPER_COMMON_INDEX_H
#include <hdr_histogram.h>
#include <set>
namespace viper::index {
using offset_size_t = uint64_t;
using block_size_t = uint64_t;
using page_size_t = uint8_t;
using data_offset_size_t = uint16_t;... | 36.208914 | 133 | 0.569351 | YunWorkshop |
816b3444fad7af27863f5029b1bf8f15d6a84860 | 3,311 | hpp | C++ | src/LayeredWindow.hpp | Wiladams/swp | 5b55c418a17e9dab7797a4334ccce3d931fae1f6 | [
"MIT"
] | null | null | null | src/LayeredWindow.hpp | Wiladams/swp | 5b55c418a17e9dab7797a4334ccce3d931fae1f6 | [
"MIT"
] | null | null | null | src/LayeredWindow.hpp | Wiladams/swp | 5b55c418a17e9dab7797a4334ccce3d931fae1f6 | [
"MIT"
] | null | null | null | #pragma once
/*
AlphaWindow
Create windows that honor the alpha channel of an
image as it displays.
https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/december/windows-with-c-layered-windows-with-direct2d
https://docs.microsoft.com/en-us/archive/msdn-magazine/2014/june/windows-with-c-high-perfo... | 24.525926 | 149 | 0.643008 | Wiladams |
816d21cc5ddb9a277a93ea0d24b771edbab7c099 | 8,993 | cpp | C++ | examples/opencl/jacobi/main.cpp | tcew/HPC15 | 0eb0d969fc15816fc81a87e4433fc6b001c0215e | [
"MIT"
] | null | null | null | examples/opencl/jacobi/main.cpp | tcew/HPC15 | 0eb0d969fc15816fc81a87e4433fc6b001c0215e | [
"MIT"
] | null | null | null | examples/opencl/jacobi/main.cpp | tcew/HPC15 | 0eb0d969fc15816fc81a87e4433fc6b001c0215e | [
"MIT"
] | 2 | 2015-08-06T13:46:03.000Z | 2015-08-06T15:18:40.000Z | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#ifdef __APPLE__
#include <OpenCL/OpenCl.h>
#else
#include <CL/cl.h>
#endif
#define datafloat float
#define BX 16
#define BY 16
#define BDIM 256
// user supplied error call back function
void pfn_notify(const char *errinfo, const void *... | 30.279461 | 111 | 0.645724 | tcew |
816db29619f78ed666ad74eacf6a62232529df45 | 2,595 | cpp | C++ | dali/public-api/actors/custom-actor.cpp | vcebollada/dali-core | 1f880695d4f6cb871db7f946538721e882ba1633 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2016-08-05T09:58:38.000Z | 2016-08-05T09:58:38.000Z | dali/public-api/actors/custom-actor.cpp | tizenorg/platform.core.uifw.dali-core | dd89513b4bb1fdde74a83996c726e10adaf58349 | [
"Apache-2.0"
] | 1 | 2020-03-22T10:19:17.000Z | 2020-03-22T10:19:17.000Z | dali/public-api/actors/custom-actor.cpp | tizenorg/platform.core.uifw.dali-core | dd89513b4bb1fdde74a83996c726e10adaf58349 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 24.951923 | 144 | 0.739499 | vcebollada |
817011e27624b10dcde0c9f632cdd170e3ac4e79 | 529 | hpp | C++ | falcon/type_traits/default_or_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/type_traits/default_or_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/type_traits/default_or_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_TYPE_TRAITS_DEFAULT_OR_TYPE_HPP
#define FALCON_TYPE_TRAITS_DEFAULT_OR_TYPE_HPP
#include <falcon/type_traits/use_default.hpp>
namespace falcon{
/**
* Use Default::type if the type of T is TypeIsDefault, otherwise use T
*/
template<typename Default, typename T, typename TypeIsDefault = use_default>
st... | 24.045455 | 76 | 0.803403 | jonathanpoelen |
8172267e16f89ba6367666e0c15fb0d1bb61ac5d | 1,228 | hpp | C++ | include/reader/types/scripts.hpp | Heaven31415/RpgMakerXPReader | 7c1d734c4b5d8983167d9631d927944d2d89e61a | [
"Zlib"
] | 8 | 2019-03-26T07:52:01.000Z | 2021-08-28T16:51:07.000Z | include/reader/types/scripts.hpp | Heaven31415/RpgMakerXPReader | 7c1d734c4b5d8983167d9631d927944d2d89e61a | [
"Zlib"
] | 1 | 2019-09-29T15:03:43.000Z | 2019-09-29T19:09:43.000Z | include/reader/types/scripts.hpp | Heaven31415/RpgMakerXPReader | 7c1d734c4b5d8983167d9631d927944d2d89e61a | [
"Zlib"
] | null | null | null | #pragma once
#include "script.hpp"
namespace rpg
{
class Scripts
{
public:
Scripts();
Scripts(const Array& array);
Script& operator[](size_t index);
const Script& ... | 34.111111 | 83 | 0.45114 | Heaven31415 |
817556b29032bb0a07f452663ba646f17ad6b9b5 | 366 | hpp | C++ | Plugins/Tweaks/Tweaks/CompareVarsForMerge.hpp | shadguy/unified | 581cdfa7a0e7e1b6ee880f04c1c3b36d6ee36f0d | [
"MIT"
] | null | null | null | Plugins/Tweaks/Tweaks/CompareVarsForMerge.hpp | shadguy/unified | 581cdfa7a0e7e1b6ee880f04c1c3b36d6ee36f0d | [
"MIT"
] | null | null | null | Plugins/Tweaks/Tweaks/CompareVarsForMerge.hpp | shadguy/unified | 581cdfa7a0e7e1b6ee880f04c1c3b36d6ee36f0d | [
"MIT"
] | null | null | null | #pragma once
#include "API/Types.hpp"
#include "Common.hpp"
#include "Services/Hooks/Hooks.hpp"
namespace Tweaks {
class CompareVarsForMerge
{
public:
CompareVarsForMerge(NWNXLib::Services::HooksProxy* hooker);
private:
static int32_t CNWSItem__CompareItem_hook(CNWSItem*, CNWSItem*);
static NWNXLib::Hoo... | 17.428571 | 68 | 0.759563 | shadguy |
81757638c4c4c55a62e3b473de03d2fde8c8e2ea | 12,323 | cpp | C++ | Quark-Core/Linux/Window/XCBWindow.cpp | QuarkEngine/QuarkEngine | cdc31402c0df732ddb7d689e1ebc0ed0b7d8bf85 | [
"Apache-2.0"
] | 3 | 2016-03-28T18:35:16.000Z | 2018-04-29T01:35:36.000Z | Quark-Core/Linux/Window/XCBWindow.cpp | QuarkEngine/QuarkEngine | cdc31402c0df732ddb7d689e1ebc0ed0b7d8bf85 | [
"Apache-2.0"
] | null | null | null | Quark-Core/Linux/Window/XCBWindow.cpp | QuarkEngine/QuarkEngine | cdc31402c0df732ddb7d689e1ebc0ed0b7d8bf85 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
/// This file is part of Quark-Engine, licensed under the Apache 2.0 License.
///
/// Copyright (c) 2015-2016 - Quark-Engine developers <https://github.com/QuarkEngine/QuarkEngine>.
///
/// Licensed under the Apache Lic... | 28.859485 | 181 | 0.65463 | QuarkEngine |
8177c99789865687552f37cfcb49a1e55707d83d | 4,866 | cpp | C++ | modules/task_3/zaytsev_m_linear_stretching_of_histogram/main.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | 1 | 2021-12-09T17:20:25.000Z | 2021-12-09T17:20:25.000Z | modules/task_3/zaytsev_m_linear_stretching_of_histogram/main.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/zaytsev_m_linear_stretching_of_histogram/main.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | 3 | 2022-02-23T14:20:50.000Z | 2022-03-30T09:00:02.000Z | // Copyright 2021 Zaytsev Mikhail
#include <gtest/gtest.h>
#include <vector>
#include "./linear_stretching_of_histogram.h"
#include <gtest-mpi-listener.hpp>
TEST(Parallel_Matrix_Multiplacition, mRows_Eq_mColumns_100) {
int currentProcess;
MPI_Comm_rank(MPI_COMM_WORLD, ¤tProcess);
std::vector<double>... | 35.779412 | 96 | 0.713317 | Stepakrap |
40c0defe3877cd017d99cc03d03010d4e64e73fc | 1,696 | cpp | C++ | Snake/MainWindow.cpp | superlomo/GreedySnake | 9fe46581cdb7d8280242bbff403c80ff8ba4e176 | [
"MIT"
] | 2 | 2020-11-28T04:24:47.000Z | 2022-03-11T05:34:55.000Z | Snake/MainWindow.cpp | superlomo/GreedySnake | 9fe46581cdb7d8280242bbff403c80ff8ba4e176 | [
"MIT"
] | null | null | null | Snake/MainWindow.cpp | superlomo/GreedySnake | 9fe46581cdb7d8280242bbff403c80ff8ba4e176 | [
"MIT"
] | 1 | 2022-03-11T05:35:08.000Z | 2022-03-11T05:35:08.000Z | #include "MainWindow.h"
#include "GameMainWidget.h"
#include "GameManager.h"
#include "SoundManager.h"
#include "ControlBoard.h"
MainWindow::MainWindow(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
this->setWindowTitle("GreedySnake");
m_gameManagerPtr.reset(new GameManager);
m_gameManagerPtr->newGame()... | 29.241379 | 94 | 0.747642 | superlomo |
40c1c1e277dddf2b8ea0860d1d0b26519b7d753d | 9,694 | cpp | C++ | ql/experimental/credit/syntheticcdo.cpp | grandtiger/quantlib | 4cf3d80ffc071ae74f026bb25fbb1dd9093e6301 | [
"BSD-3-Clause"
] | 1 | 2017-08-01T06:19:06.000Z | 2017-08-01T06:19:06.000Z | ql/experimental/credit/syntheticcdo.cpp | grandtiger/quantlib | 4cf3d80ffc071ae74f026bb25fbb1dd9093e6301 | [
"BSD-3-Clause"
] | 1 | 2020-07-17T18:49:22.000Z | 2020-07-17T18:49:22.000Z | ql/experimental/credit/syntheticcdo.cpp | grandtiger/quantlib | 4cf3d80ffc071ae74f026bb25fbb1dd9093e6301 | [
"BSD-3-Clause"
] | null | null | null | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 Roland Lichters
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and... | 36.037175 | 85 | 0.62255 | grandtiger |
40c6e6470e81bbb753e7bbb0867e0225ffe20d60 | 33,156 | hpp | C++ | include/System/Runtime/Remoting/Messaging/MonoMethodMessage.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Runtime/Remoting/Messaging/MonoMethodMessage.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Runtime/Remoting/Messaging/MonoMethodMessage.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Runtime... | 65.267717 | 897 | 0.740107 | Fernthedev |
40c6ed573efd84e2c22b662de625bf4d36699ad8 | 165,809 | cpp | C++ | esp/services/ws_access/ws_accessService.cpp | rpastrana/HPCC-Platform | 489454bd326ed6a39228c81f5d837c276724c022 | [
"Apache-2.0"
] | null | null | null | esp/services/ws_access/ws_accessService.cpp | rpastrana/HPCC-Platform | 489454bd326ed6a39228c81f5d837c276724c022 | [
"Apache-2.0"
] | 1 | 2016-04-06T16:41:58.000Z | 2016-04-06T16:41:58.000Z | esp/services/ws_access/ws_accessService.cpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 1 | 2019-10-26T22:05:26.000Z | 2019-10-26T22:05:26.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 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... | 35.158821 | 195 | 0.546683 | rpastrana |
40c92eb4014d5c16682dadd23a6dce6b70b59531 | 2,205 | cc | C++ | cc/chart-column-bases.cc | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | cc/chart-column-bases.cc | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | cc/chart-column-bases.cc | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | #include <iostream>
#include "acmacs-base/argv.hh"
#include "acmacs-base/range.hh"
#include "acmacs-chart-2/factory-import.hh"
#include "acmacs-chart-2/chart.hh"
// ----------------------------------------------------------------------
using namespace acmacs::argv;
struct Options : public argv
{
Options(int a_a... | 40.833333 | 182 | 0.564172 | acorg |
40c981eac11228ac63ed4b9286968fe1ca15c9ed | 334 | cpp | C++ | source/Assert.cpp | blastrock/flix | 86aff484beaadca1263fadd28eae658f2a641029 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2016-10-09T15:36:23.000Z | 2021-08-28T01:56:08.000Z | source/Assert.cpp | blastrock/flix | 86aff484beaadca1263fadd28eae658f2a641029 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | source/Assert.cpp | blastrock/flix | 86aff484beaadca1263fadd28eae658f2a641029 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-08-31T15:40:51.000Z | 2018-08-31T15:40:51.000Z | #include <cassert>
#include "Util.hpp"
#include "Debug.hpp"
XLL_LOG_CATEGORY("support/assert");
extern "C"[[noreturn]] void assert_fail(
const char* file, int line, const char* condition)
{
asm volatile ("cli");
xDeb("%s:%d\nAssertion failed: %s", file, line, condition);
printStackTrace();
PANIC("Assertio... | 22.266667 | 61 | 0.685629 | blastrock |
40cb92cdfd07e9851603c322a5801e074f99d274 | 26,568 | cpp | C++ | src/minisef/fgdlib/gamedata.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/minisef/fgdlib/gamedata.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/minisef/fgdlib/gamedata.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
//=============================================================================
#include <windows.h>
#include <tier0/dbg.h>
#include <io.h>
#include <WorldSize.h>
#include "fgdlib/GameData.h"
#include "fgdlib/HelperInfo.h"
#include "KeyVa... | 34.684073 | 123 | 0.51611 | cstom4994 |
40ce4b4b33fccffdc8ba85021dc323fb608aa478 | 1,104 | hpp | C++ | src/include/duckdb/planner/filter/conjunction_filter.hpp | K377U/duckdb | 6322c0deb9bc1aee3d49f08452d5e03a20395e6b | [
"MIT"
] | 2 | 2021-11-23T13:31:10.000Z | 2022-02-02T15:25:54.000Z | src/include/duckdb/planner/filter/conjunction_filter.hpp | lnkuiper/duckdb | dd2f405ae3a74f317e10f0a32254ba2d5e2d8c41 | [
"MIT"
] | 1 | 2021-04-22T14:46:10.000Z | 2021-04-22T14:46:10.000Z | src/include/duckdb/planner/filter/conjunction_filter.hpp | lnkuiper/duckdb | dd2f405ae3a74f317e10f0a32254ba2d5e2d8c41 | [
"MIT"
] | 1 | 2022-03-09T10:50:29.000Z | 2022-03-09T10:50:29.000Z | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/planner/filter/conjunction_filter.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/planner/table_filter.hpp"
#include ... | 25.674419 | 80 | 0.65308 | K377U |
40d4f956f351035a7a19ca8340a0caf1ff8faf3c | 1,182 | cpp | C++ | Engine/Platform/Windows/Windows_Input.cpp | minimpoun/MARS | b989e173bc401ce382a4f1a5bbcc36389e3d5969 | [
"Apache-2.0"
] | 2 | 2020-12-02T01:40:26.000Z | 2021-09-22T08:35:29.000Z | Engine/Platform/Windows/Windows_Input.cpp | gameplay-solutions/MARS-Engine | 9261038f6f8e23523b7fff3c5ff683641f06eb64 | [
"Apache-2.0"
] | null | null | null | Engine/Platform/Windows/Windows_Input.cpp | gameplay-solutions/MARS-Engine | 9261038f6f8e23523b7fff3c5ff683641f06eb64 | [
"Apache-2.0"
] | 3 | 2018-08-18T21:12:49.000Z | 2019-11-04T08:17:28.000Z | #include "Windows_Input.h"
#include <GLFW/glfw3.h>
#include "Application/Application.h"
MARS::Input* MARS::Input::Instance = new WindowsInput();
bool MARS::WindowsInput::IsKeyPressed_Implementation(int32 Key)
{
auto _Window = static_cast<GLFWwindow*>(Application::Get().GetWindow().GetNativeWindow());
if (!_Windo... | 25.148936 | 91 | 0.744501 | minimpoun |
40d70847765e1ffb581dfe5dc9069888a7302e39 | 3,524 | cpp | C++ | lxt/ui/text_span.cpp | justinsaunders/luxatron | d474c21fb93b8ee9230ad25e6113d43873d75393 | [
"MIT"
] | null | null | null | lxt/ui/text_span.cpp | justinsaunders/luxatron | d474c21fb93b8ee9230ad25e6113d43873d75393 | [
"MIT"
] | 2 | 2017-06-08T21:51:34.000Z | 2017-06-08T21:51:56.000Z | lxt/ui/text_span.cpp | justinsaunders/luxatron | d474c21fb93b8ee9230ad25e6113d43873d75393 | [
"MIT"
] | null | null | null | /*
* text_span.cpp
* starkiller
*
* Created by Justin on 6/09/10.
* Copyright 2010 Monkey Style Games. All rights reserved.
*
*/
#include "text_span.h"
#include "renderer.h"
#include "mesh.h"
#include "camera.h"
#include "font.h"
#include "gfx/gles/gl_headers.h"
namespace // local
{
struct FontVertex
{
... | 21.888199 | 78 | 0.63025 | justinsaunders |
40da59f9aba08241bd895e348f6d1e95d3de53a8 | 147 | cpp | C++ | src/Dispatcher.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | src/Dispatcher.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | src/Dispatcher.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | //
// Dispatcher.cpp
// EZasync
//
// Created by 贾皓翔 on 2019/5/28.
// Copyright © 2019 贾皓翔. All rights reserved.
//
#include "Dispatcher.hpp"
| 14.7 | 46 | 0.639456 | jhxqy |
40db4ad886fe20c44f618f9b49dbdb8d3c3f51b9 | 579 | hpp | C++ | libs/core/include/fcppt/signal/object_fwd.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/signal/object_fwd.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/signal/object_fwd.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2017.
// Copyright Philipp Middendorf 2009 - 2017.
// 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)
#ifndef FCPPT_SIGNAL_OBJECT_FWD_HPP_INCLUDED... | 18.09375 | 61 | 0.71848 | pmiddend |
40dbb4af0109474248914e336449db217fdb85dd | 439 | hpp | C++ | etcd/v3/AsyncHeadResponse.hpp | niyue/etcd-cpp-apiv3 | 3d4fa143e05ab03f756dc0bf001f528af4d40e8c | [
"BSD-3-Clause"
] | null | null | null | etcd/v3/AsyncHeadResponse.hpp | niyue/etcd-cpp-apiv3 | 3d4fa143e05ab03f756dc0bf001f528af4d40e8c | [
"BSD-3-Clause"
] | null | null | null | etcd/v3/AsyncHeadResponse.hpp | niyue/etcd-cpp-apiv3 | 3d4fa143e05ab03f756dc0bf001f528af4d40e8c | [
"BSD-3-Clause"
] | null | null | null | #ifndef __ASYNC_HEADRESPONSE_HPP__
#define __ASYNC_HEADRESPONSE_HPP__
#include <grpc++/grpc++.h>
#include "proto/rpc.grpc.pb.h"
#include "etcd/v3/V3Response.hpp"
using grpc::ClientAsyncResponseReader;
using etcdserverpb::RangeResponse;
namespace etcdv3
{
class AsyncHeadResponse : public etcdv3::V3Response
{
... | 19.086957 | 65 | 0.747153 | niyue |
40dbe0b5e9cced47ed70454b728d50ca9798c9ef | 673 | cc | C++ | libcef/browser/osr/browser_platform_delegate_osr_linux.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | libcef/browser/osr/browser_platform_delegate_osr_linux.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | libcef/browser/osr/browser_platform_delegate_osr_linux.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Chromium Embedded Framework Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libcef/browser/osr/browser_platform_delegate_osr_linux.h"
#include <utility>
#include "libcef/browser/browser_host_impl.h"
... | 32.047619 | 79 | 0.814264 | frogbywyplay |
40e089c6be5a60b739483b8de79e7a19e9c26fca | 1,781 | hpp | C++ | capo/semaphore.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 58 | 2015-03-22T03:26:07.000Z | 2022-03-30T05:15:22.000Z | capo/semaphore.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 1 | 2019-03-07T12:32:41.000Z | 2019-03-16T15:01:55.000Z | capo/semaphore.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 21 | 2015-02-27T06:44:56.000Z | 2022-03-05T15:53:30.000Z | /*
The Capo Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
#include "capo/make.hpp"
#include <mutex> // std::mutex, std::unique_lock
#include <condition_variable> // std::condition_variable
#include <chrono> // std::chrono
names... | 23.746667 | 81 | 0.545199 | mutouyun |
40e0d833cbe78a2ccb3a38aa3a2677b75b2ed72a | 430 | cc | C++ | EE599HW2/hw2-5/src/main/main.cc | YingnanWang-Ray/EE599 | 7e870b78b4f61f783077d88d437937e697d7abf0 | [
"MIT"
] | null | null | null | EE599HW2/hw2-5/src/main/main.cc | YingnanWang-Ray/EE599 | 7e870b78b4f61f783077d88d437937e697d7abf0 | [
"MIT"
] | null | null | null | EE599HW2/hw2-5/src/main/main.cc | YingnanWang-Ray/EE599 | 7e870b78b4f61f783077d88d437937e697d7abf0 | [
"MIT"
] | null | null | null | #include <iostream>
#include "src/lib/solution.h"
int main()
{
Solution solution ;
std::string stg0 = "TEST";
int test0 = 0;
int test1 = 1;
std::string stg1 = "DE5678";
solution.Reverses(stg1);
std::string stg2 = "EE599";
std::cout<<solution.Swap(stg0,test0,test1)<<std::endl;... | 20.47619 | 58 | 0.606977 | YingnanWang-Ray |
40e12f5cf24e8e43e6a196c9e8f1e9197de1be6f | 548 | cpp | C++ | Arrays/miscellaneous/two_sum.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Arrays/miscellaneous/two_sum.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Arrays/miscellaneous/two_sum.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/two-sum/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> ans;
unordered_map<int, int> mp;
for (int i = 0; i < nums.size(); ++i) {
if (mp.find(target- nums[i]) != mp.en... | 24.909091 | 55 | 0.468978 | khushisinha20 |
40e1f29eac0832d7b6b8e69e75450ee016dda247 | 15,107 | cpp | C++ | 02 Stukturerad programmering C, C plusplus/06_Arrays_Lists_Stack/06_Arrays_Lists_Stack_in_Cpp.cpp | alexanderjxnsson/MMMMUH21 | becb785d01017de3cc41a91be22b7c00fc559f85 | [
"MIT"
] | 4 | 2021-09-30T09:57:01.000Z | 2022-01-07T09:37:35.000Z | 02 Stukturerad programmering C, C plusplus/06_Arrays_Lists_Stack/06_Arrays_Lists_Stack_in_Cpp.cpp | alexanderjxnsson/MMMMUH21 | becb785d01017de3cc41a91be22b7c00fc559f85 | [
"MIT"
] | 2 | 2021-09-30T12:44:44.000Z | 2021-10-06T15:45:12.000Z | 02 Stukturerad programmering C, C plusplus/06_Arrays_Lists_Stack/06_Arrays_Lists_Stack_in_Cpp.cpp | alexanderjxnsson/MMMMUH21 | becb785d01017de3cc41a91be22b7c00fc559f85 | [
"MIT"
] | 11 | 2021-09-15T07:43:01.000Z | 2021-10-06T14:16:45.000Z | //
// 06_Arrays_Lists_Stack_in_Cpp.cpp
// 06_Arrays_Lists_Stack_in_Cpp
//
// Created by Daniel Eftodi on 2021-09-29.
//
#include "06_Arrays_Lists_Stack_in_Cpp.h"
void function_one_size_of_datatype () {
unsigned int usDataSize = 128;
printf("Data size of usDataSize (%d) is: %lu bytes\n", usDataSize, si... | 38.538265 | 135 | 0.501754 | alexanderjxnsson |
40e57367f0261a6a52a54d5c853f974a3bda7dda | 940 | cpp | C++ | Snipets/10_Archivos/ContandoCaracteres.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/10_Archivos/ContandoCaracteres.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/10_Archivos/ContandoCaracteres.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | // ContandoCaracteres.cpp
// Programam para contar caracteres, tab, vocales, etc. de una linea
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <string.h>
int main()
{
int p=0;
int k=0;
int l=0;
int espCont=0;
int tabCont=0;
char ch;
char arr[150];
char str[]="Si te quieres cumple tus sueny... | 15.409836 | 68 | 0.546809 | Gabroide |
40e63b9d8ce7488888b24f89b350388645be40c2 | 4,547 | cpp | C++ | ares/sfc/coprocessor/sa1/memory.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/sfc/coprocessor/sa1/memory.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/sfc/coprocessor/sa1/memory.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | inline auto SA1::idle() -> void {
step();
}
//RTx, JMx, JSx
inline auto SA1::idleJump() -> void {
//ROM access penalty cycle: does not apply to BWRAM or IRAM
if((r.pc.d & 0x408000) == 0x008000 //00-3f,80-bf:8000-ffff
|| (r.pc.d & 0xc00000) == 0xc00000 //c0-ff:0000-ffff
) {
step();
if(rom.conflict()... | 27.391566 | 90 | 0.610293 | CasualPokePlayer |
40e6647fbde22d4c368d863e1788d98898ed0ed5 | 3,451 | cpp | C++ | src/casinocoin/rpc/handlers/DecryptMsgHandler.cpp | MassICTBV/casinocoind | 81d6a15a0578c086c1812dd2203c0973099b0061 | [
"BSL-1.0"
] | 1 | 2019-10-30T19:41:23.000Z | 2019-10-30T19:41:23.000Z | src/casinocoin/rpc/handlers/DecryptMsgHandler.cpp | MassICTBV/casinocoind | 81d6a15a0578c086c1812dd2203c0973099b0061 | [
"BSL-1.0"
] | null | null | null | src/casinocoin/rpc/handlers/DecryptMsgHandler.cpp | MassICTBV/casinocoind | 81d6a15a0578c086c1812dd2203c0973099b0061 | [
"BSL-1.0"
] | 3 | 2018-07-12T11:34:45.000Z | 2021-09-13T18:08:25.000Z | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/casinocoin/casinocoind
Copyright (c) 2019 Casinocoin Foundation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is... | 37.923077 | 107 | 0.641843 | MassICTBV |
40eb42df3c896196744b2f3710c81e5ea0d9290b | 4,104 | cpp | C++ | Paladin/Templates/Sample ListItems/MainWindow.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 45 | 2018-10-05T21:50:17.000Z | 2022-01-31T11:52:59.000Z | Paladin/Templates/Sample ListItems/MainWindow.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 163 | 2018-10-01T23:52:12.000Z | 2022-02-15T18:05:58.000Z | Paladin/Templates/Sample ListItems/MainWindow.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 9 | 2018-10-01T23:48:02.000Z | 2022-01-23T21:28:52.000Z | #include "MainWindow.h"
#include <Button.h>
#include <ListItem.h>
#include <ScrollView.h>
enum
{
M_RESET_WINDOW = 'rswn',
M_SET_TITLE = 'sttl'
};
MainWindow::MainWindow(void)
: BWindow(BRect(100,100,500,400),"The Weird World of Sports",B_TITLED_WINDOW,
B_ASYNCHRONOUS_CONTROLS | B_QUIT_ON_WINDOW_CLOSE)
{
// H... | 36 | 97 | 0.727827 | humdingerb |
40eb847edde86f1507348cb44a56a7c2f8f27320 | 1,099 | cpp | C++ | test/test_ws/ws_client.cpp | cysme/pump | d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c | [
"Apache-2.0"
] | 2 | 2020-07-16T04:57:40.000Z | 2020-11-24T10:33:48.000Z | test/test_ws/ws_client.cpp | jimi36/pump | d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c | [
"Apache-2.0"
] | 2 | 2020-12-23T09:40:16.000Z | 2021-03-03T09:49:36.000Z | test/test_ws/ws_client.cpp | cysme/pump | d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c | [
"Apache-2.0"
] | 3 | 2020-11-24T10:33:35.000Z | 2021-04-19T01:53:24.000Z | #include "ws.h"
void on_started(websocket::client_ptr cli) {
if (!cli->send("123", 3))
PUMP_ASSERT(false);
}
void on_error(websocket::client_ptr cli, const std::string &msg) {
printf("ws client erorr %s\n", msg.c_str());
}
void on_data(websocket::client_ptr cli,
const block_t *b,
... | 29.702703 | 73 | 0.626024 | cysme |
40ed26e0caa67a566eba3dc8eb194edd0dedd298 | 1,155 | cpp | C++ | Data Structures/Linked List/deleteLinkedList.cpp | padmaja-22/CP | 0fc2648ead9a993398e3aa2f6e0b028e67c4c148 | [
"MIT"
] | null | null | null | Data Structures/Linked List/deleteLinkedList.cpp | padmaja-22/CP | 0fc2648ead9a993398e3aa2f6e0b028e67c4c148 | [
"MIT"
] | null | null | null | Data Structures/Linked List/deleteLinkedList.cpp | padmaja-22/CP | 0fc2648ead9a993398e3aa2f6e0b028e67c4c148 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
class Node{
public:
Node *next;
int data;
};
void insertInto(Node** head_ref,int new_data){
Node* new_node=new Node();
Node* last=(*head_ref);
new_node->data=new_data;
new_node->next=NULL;
if(*head_ref==NULL){
*head_re... | 21 | 50 | 0.588745 | padmaja-22 |
40ede6ea7eed020dd5c11ee7e4b0cab63662e08c | 938 | hpp | C++ | src/boost/type_traits/is_reference.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | src/boost/type_traits/is_reference.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | 1 | 2021-08-30T18:02:49.000Z | 2021-08-30T18:02:49.000Z | src/boost/type_traits/is_reference.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null |
// (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
// Howard Hinnant and John Maddock 2000, 2010.
// (C) Copyright Mat Marcus, Jesse Jones and Adobe Systems Inc 2001
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.t... | 30.258065 | 94 | 0.750533 | 107-systems |
40efea7f92ab836c1ef99848baf60002ae9a8ec9 | 28,447 | cpp | C++ | src/server/scripts/Spells/spell_dk.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | src/server/scripts/Spells/spell_dk.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | src/server/scripts/Spells/spell_dk.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | /*
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
* Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005 - 2012 MaNGOS <http://getmangos.com/>
*
* This program is free software; you ca... | 34.068263 | 171 | 0.597567 | forgottenlands |
40f30844f1a54b7c47c7f134c6314f736184da43 | 3,953 | hpp | C++ | QuantExt/qle/models/dkimpliedzeroinflationtermstructure.hpp | PiotrSiejda/Engine | 8360b5de32408f2a37da5ac3ca7b4e913bf67e9f | [
"BSD-3-Clause"
] | 1 | 2021-03-30T17:24:17.000Z | 2021-03-30T17:24:17.000Z | QuantExt/qle/models/dkimpliedzeroinflationtermstructure.hpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | null | null | null | QuantExt/qle/models/dkimpliedzeroinflationtermstructure.hpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:04:10.000Z | 2022-02-07T02:04:10.000Z | /*
Copyright (C) 2017 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 32.138211 | 119 | 0.752087 | PiotrSiejda |
40f32d97fd52303e15f0b1b412981008ce4ff9f7 | 1,542 | hpp | C++ | manager/lib/borealis/library/include/borealis/tab_frame.hpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 492 | 2019-02-14T16:10:55.000Z | 2022-03-31T00:01:27.000Z | manager/lib/borealis/library/include/borealis/tab_frame.hpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 51 | 2019-02-14T17:31:08.000Z | 2022-03-24T00:10:09.000Z | manager/lib/borealis/library/include/borealis/tab_frame.hpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 75 | 2019-02-14T17:46:32.000Z | 2022-03-28T07:19:25.000Z | /*
Borealis, a Nintendo Switch UI Library
Copyright (C) 2019-2020 natinusala
Copyright (C) 2019 p-sam
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 3 of the... | 25.7 | 74 | 0.700389 | lunixoid |
40f71f90fd154b34f03b09407a1740ba430cd0ed | 10,972 | hpp | C++ | src/TNL/Containers/DistributedArray.hpp | GregTheMadMonk/tnl-noa | d7d57962decf579a89797816e7d564350157cbf2 | [
"MIT"
] | null | null | null | src/TNL/Containers/DistributedArray.hpp | GregTheMadMonk/tnl-noa | d7d57962decf579a89797816e7d564350157cbf2 | [
"MIT"
] | null | null | null | src/TNL/Containers/DistributedArray.hpp | GregTheMadMonk/tnl-noa | d7d57962decf579a89797816e7d564350157cbf2 | [
"MIT"
] | null | null | null | // Copyright (c) 2004-2022 Tomáš Oberhuber et al.
//
// This file is part of TNL - Template Numerical Library (https://tnl-project.org/)
//
// SPDX-License-Identifier: MIT
// Implemented by: Jakub Klinkovský
#pragma once
#include "DistributedArray.h"
namespace noa::TNL {
namespace Containers {
template< typename V... | 34.180685 | 124 | 0.716734 | GregTheMadMonk |
40f7a516e8a8bd9d162a33bf1e9c71c75003d40c | 1,064 | cpp | C++ | src/common/async/message.cpp | tjachmann/visionaray | 5f181268c8da28c7d9b397300cc9759cec2bf7b3 | [
"MIT"
] | 416 | 2015-02-01T22:19:30.000Z | 2022-03-29T10:48:00.000Z | src/common/async/message.cpp | tjachmann/visionaray | 5f181268c8da28c7d9b397300cc9759cec2bf7b3 | [
"MIT"
] | 24 | 2015-06-26T17:48:08.000Z | 2021-11-06T00:20:58.000Z | src/common/async/message.cpp | tjachmann/visionaray | 5f181268c8da28c7d9b397300cc9759cec2bf7b3 | [
"MIT"
] | 39 | 2015-02-02T11:47:21.000Z | 2022-03-29T10:44:43.000Z | // This file is distributed under the MIT license.
// See the LICENSE file for details
#include <boost/version.hpp>
#if BOOST_VERSION == 106900
#define BOOST_ALLOW_DEPRECATED_HEADERS
#endif
#include <boost/uuid/uuid_generators.hpp>
#include "message.h"
using namespace visionaray::async;
//-----------------------... | 16.888889 | 100 | 0.536654 | tjachmann |
dc01e2a9e8ad1285bfcf25c788d7ebf20d4d9374 | 1,239 | cpp | C++ | leetcode/Remove Duplicates from Sorted List/Accepted (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | leetcode/Remove Duplicates from Sorted List/Accepted (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | leetcode/Remove Duplicates from Sorted List/Accepted (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 07/13/2021 17:41
* solution_verdict: Accepted language: cpp
* run... | 38.71875 | 111 | 0.361582 | kzvd4729 |
dc02ab069a7de0fb76a5890e9bc1865db4e40a64 | 17,679 | cpp | C++ | src/Transcoder.cpp | ramilsafnab1996/rtsp-video-server | 032eac84e4c0360933dd97719023a604dfb06d06 | [
"MIT"
] | 24 | 2019-01-13T22:30:33.000Z | 2021-09-05T08:16:02.000Z | src/Transcoder.cpp | ramilsafnab1996/rtsp-video-server | 032eac84e4c0360933dd97719023a604dfb06d06 | [
"MIT"
] | 3 | 2020-02-21T07:26:58.000Z | 2021-03-23T21:10:03.000Z | src/Transcoder.cpp | ramilsafnab1996/rtsp-video-server | 032eac84e4c0360933dd97719023a604dfb06d06 | [
"MIT"
] | 17 | 2018-12-11T03:34:12.000Z | 2021-09-23T07:08:21.000Z | #include "Config.hpp"
#include "Transcoder.hpp"
namespace LIRS {
Transcoder::~Transcoder() {
stop();
cleanup();
LOG(INFO) << config.getName() << " is destructed.";
}
Transcoder::Transcoder(lirs::config::params::CameraParameters const &config)
: config(config), needToSt... | 37.695096 | 131 | 0.624413 | ramilsafnab1996 |
dc030cd07ccbe4010d96f4a51dcb8f3103c18a30 | 1,060 | cpp | C++ | 097-interleaving-string.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | 097-interleaving-string.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | 097-interleaving-string.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/interleaving-string
class Solution {
public:
bool isInterleave(string s1, string s2, string s3) {
int len1 = s1.length();
int len2 = s2.length();
int len3 = s3.length();
if (len1 + len2 != len3) {
return false;
... | 34.193548 | 113 | 0.35 | nave7693 |
dc0497d9138c6a9c625bb1ccdf581c97852ad022 | 4,522 | cpp | C++ | phase2/baseline/main.cpp | dongdeng/TreeJoin | c4eb3553fc16ce438330da9ae1cc84dba450fc24 | [
"MIT"
] | null | null | null | phase2/baseline/main.cpp | dongdeng/TreeJoin | c4eb3553fc16ce438330da9ae1cc84dba450fc24 | [
"MIT"
] | null | null | null | phase2/baseline/main.cpp | dongdeng/TreeJoin | c4eb3553fc16ce438330da9ae1cc84dba450fc24 | [
"MIT"
] | null | null | null | #include <iostream>
#include "tree.h"
#include <vector>
#include <cstring>
#include <fstream>
#include "SimJoiner.h"
using namespace std;
#define LIMIT 20
int getMin(int a, int b) {
if (a == -1)
return b;
if (b == -1)
return a;
return a > b ? b : a;
}
int costFunc(const string &a, const string &b) {
if (a =... | 27.742331 | 160 | 0.591331 | dongdeng |
dc05372ed0698913853966432fdc170d8a00b96c | 534 | hpp | C++ | include/gl/error.hpp | scholli/unvox | 879e06f45a40963527e0a895d742f7be6fb3d490 | [
"MIT"
] | null | null | null | include/gl/error.hpp | scholli/unvox | 879e06f45a40963527e0a895d742f7be6fb3d490 | [
"MIT"
] | null | null | null | include/gl/error.hpp | scholli/unvox | 879e06f45a40963527e0a895d742f7be6fb3d490 | [
"MIT"
] | 1 | 2019-10-30T09:35:35.000Z | 2019-10-30T09:35:35.000Z | //******************************************************************************
// Module: UnVox
// Author: Sebastian Thiele / Andre Schollmeyer
//
// Copyright 2019
// All rights reserved
//******************************************************************************
#ifndef UNVOX_GL_ERROR_HPP
#define UNVOX_GL_ERR... | 24.272727 | 80 | 0.513109 | scholli |
dc05cecd327213580382bf2c262a86118c08ee65 | 27,329 | cpp | C++ | openstudiocore/src/utilities/idd/IddObject.cpp | colemat/OpenStudio | 46680e95efa5ef51c7199176f366dfdede5ab706 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/idd/IddObject.cpp | colemat/OpenStudio | 46680e95efa5ef51c7199176f366dfdede5ab706 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/idd/IddObject.cpp | colemat/OpenStudio | 46680e95efa5ef51c7199176f366dfdede5ab706 | [
"blessing"
] | null | null | null | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 31.340596 | 125 | 0.651579 | colemat |
dc0733a1fea4917003c8c176bdbd5c0faf2710d0 | 4,337 | cpp | C++ | test/entt/core/type_info.cpp | amSangi/entt | 6f0f811a05e11469994eb4f63467536cc45415d5 | [
"MIT"
] | 6,792 | 2017-03-27T19:05:19.000Z | 2022-03-31T20:21:26.000Z | test/entt/core/type_info.cpp | amSangi/entt | 6f0f811a05e11469994eb4f63467536cc45415d5 | [
"MIT"
] | 764 | 2017-05-22T18:48:53.000Z | 2022-03-31T22:04:27.000Z | test/entt/core/type_info.cpp | amSangi/entt | 6f0f811a05e11469994eb4f63467536cc45415d5 | [
"MIT"
] | 811 | 2017-03-27T19:52:48.000Z | 2022-03-30T11:32:57.000Z | #include <string_view>
#include <type_traits>
#include <gtest/gtest.h>
#include <entt/core/hashed_string.hpp>
#include <entt/core/type_info.hpp>
#include <entt/core/type_traits.hpp>
template<>
struct entt::type_name<float> final {
[[nodiscard]] static constexpr std::string_view value() ENTT_NOEXCEPT {
retu... | 40.915094 | 189 | 0.660364 | amSangi |
dc08b82b42e1c858014ddd55a720b2654a856e0b | 9,858 | cpp | C++ | libs/pika/synchronization/tests/unit/shared_mutex/shared_mutex2.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 13 | 2022-01-17T12:01:48.000Z | 2022-03-16T10:03:14.000Z | libs/pika/synchronization/tests/unit/shared_mutex/shared_mutex2.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 163 | 2022-01-17T17:36:45.000Z | 2022-03-31T17:42:57.000Z | libs/pika/synchronization/tests/unit/shared_mutex/shared_mutex2.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 4 | 2022-01-19T08:44:22.000Z | 2022-01-31T23:16:21.000Z | // (C) Copyright 2006-7 Anthony Williams
// Copyright (c) 2015 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <pika/future.hpp>
#include <pika/in... | 30.614907 | 80 | 0.693041 | pika-org |
dc0eb5beda5ffa6c45967c78af4f69ce0d45c31a | 2,368 | cpp | C++ | libraries/plugins/apis/block_api/block_api.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 283 | 2020-03-20T02:13:12.000Z | 2022-03-31T22:40:07.000Z | libraries/plugins/apis/block_api/block_api.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 19 | 2020-03-20T03:09:16.000Z | 2021-08-28T22:35:09.000Z | libraries/plugins/apis/block_api/block_api.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 94 | 2020-03-20T01:53:05.000Z | 2022-03-04T11:08:23.000Z | #include <hive/chain/hive_fwd.hpp>
#include <appbase/application.hpp>
#include <hive/plugins/block_api/block_api.hpp>
#include <hive/plugins/block_api/block_api_plugin.hpp>
#include <hive/protocol/get_config.hpp>
namespace hive { namespace plugins { namespace block_api {
class block_api_impl
{
public:
block_a... | 26.606742 | 102 | 0.527449 | drov0 |
dc0f91752145ca23a8782653eee9b428b1090af9 | 276 | hpp | C++ | Roguelike/Code/Game/MoveSouthCommand.hpp | cugone/Roguelike | 0f53a1ae2a37e683773c1707ce4aeb056973af13 | [
"MIT"
] | null | null | null | Roguelike/Code/Game/MoveSouthCommand.hpp | cugone/Roguelike | 0f53a1ae2a37e683773c1707ce4aeb056973af13 | [
"MIT"
] | 4 | 2021-05-04T03:21:49.000Z | 2021-10-06T05:21:24.000Z | Roguelike/Code/Game/MoveSouthCommand.hpp | cugone/Roguelike | 0f53a1ae2a37e683773c1707ce4aeb056973af13 | [
"MIT"
] | 2 | 2020-01-19T00:50:34.000Z | 2021-04-01T07:51:02.000Z | #pragma once
#include "Game/ActorCommand.hpp"
class MoveSouthCommand : public ActorCommand {
public:
explicit MoveSouthCommand(Actor* actor) : ActorCommand(actor) {};
virtual ~MoveSouthCommand() = default;
virtual void execute() override;
protected:
private:
};
| 21.230769 | 69 | 0.73913 | cugone |
dc0fa8aedd44d1f81322152f781a4dd538c0492c | 2,742 | cc | C++ | mediapipe/calculators/core/add_header_calculator.cc | mayank10j/mediapipe | 74a59ec498a9e72f3d73bac443b1910e64110949 | [
"Apache-2.0"
] | 2 | 2021-12-02T02:14:31.000Z | 2021-12-02T02:16:24.000Z | mediapipe/calculators/core/add_header_calculator.cc | mayank10j/mediapipe | 74a59ec498a9e72f3d73bac443b1910e64110949 | [
"Apache-2.0"
] | null | null | null | mediapipe/calculators/core/add_header_calculator.cc | mayank10j/mediapipe | 74a59ec498a9e72f3d73bac443b1910e64110949 | [
"Apache-2.0"
] | 3 | 2021-01-19T14:40:59.000Z | 2021-06-09T13:43:49.000Z | // Copyright 2019 The MediaPipe 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 or a... | 32.642857 | 76 | 0.718818 | mayank10j |
dc12186d08ff7694cebc3075c500ef959121d131 | 1,194 | cpp | C++ | unittests/clangd/FunctionTests.cpp | google18/clang-tools-extra | e1883ca50df06116200b1cd9228c4fca7676b9a3 | [
"Apache-2.0"
] | null | null | null | unittests/clangd/FunctionTests.cpp | google18/clang-tools-extra | e1883ca50df06116200b1cd9228c4fca7676b9a3 | [
"Apache-2.0"
] | 2 | 2019-01-24T00:38:27.000Z | 2019-02-28T00:23:56.000Z | unittests/clangd/FunctionTests.cpp | google18/clang-tools-extra | e1883ca50df06116200b1cd9228c4fca7676b9a3 | [
"Apache-2.0"
] | null | null | null | //===-- FunctionsTests.cpp ------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 22.961538 | 80 | 0.546901 | google18 |
dc157459e82c83b5934aa6be2c8f6beb5b548cce | 3,208 | cc | C++ | ros/src/computing/perception/localization/packages/orb_localizer/src/__nodes/mapper.cc | chinling/Autoware | fe6a9b05862cd724e5b4e1a430fa5af9f903fce7 | [
"BSD-3-Clause"
] | 9 | 2019-09-02T06:24:54.000Z | 2021-09-21T08:25:54.000Z | ros/src/computing/perception/localization/packages/orb_localizer/src/__nodes/mapper.cc | chinling/Autoware | fe6a9b05862cd724e5b4e1a430fa5af9f903fce7 | [
"BSD-3-Clause"
] | null | null | null | ros/src/computing/perception/localization/packages/orb_localizer/src/__nodes/mapper.cc | chinling/Autoware | fe6a9b05862cd724e5b4e1a430fa5af9f903fce7 | [
"BSD-3-Clause"
] | 11 | 2019-09-02T06:25:13.000Z | 2022-03-25T00:45:21.000Z | /**
* This file is part of ORB-SLAM2.
*
* Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza)
* For more information see <https://github.com/raulmur/ORB_SLAM2>
*
* ORB-SLAM2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... | 29.981308 | 132 | 0.674875 | chinling |
dc15d72fac7e0995c1a915bfbd2b49657a594f40 | 306 | cpp | C++ | main.cpp | xiaosumay/invoice-check | 7aee90c4feaacdada2bcaf188042d83150f756d3 | [
"Unlicense"
] | null | null | null | main.cpp | xiaosumay/invoice-check | 7aee90c4feaacdada2bcaf188042d83150f756d3 | [
"Unlicense"
] | null | null | null | main.cpp | xiaosumay/invoice-check | 7aee90c4feaacdada2bcaf188042d83150f756d3 | [
"Unlicense"
] | null | null | null | #include <QApplication>
#include "pagemgr.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication a(argc, argv);
PageMgr mgr;
if(!mgr.readXlsx()) {
return 0;
}
mgr.init();
return a.exec();
}
| 16.105263 | 65 | 0.581699 | xiaosumay |
dc17bac1ce9e2da0c16b100eb593244adeb6b03d | 54,990 | cpp | C++ | src/mlpack/tests/serialization_test.cpp | abhinvgpta/mlpack | c5573b26c0f5c78037e4b82e75ccbcef6f254694 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-08-17T11:59:20.000Z | 2021-08-17T11:59:20.000Z | src/mlpack/tests/serialization_test.cpp | decltypeme/mlpack | e3b418918fffce382ce9d8ceee9d9349ca199611 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/tests/serialization_test.cpp | decltypeme/mlpack | e3b418918fffce382ce9d8ceee9d9349ca199611 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file serialization_test.cpp
* @author Ryan Curtin
*
* Test serialization of mlpack objects.
*/
#include <mlpack/core.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
#include "serialization.hpp"
#include <mlpack/core/dists/regression_distribution.hpp>
#include <mlpack/cor... | 32.751638 | 80 | 0.699745 | abhinvgpta |
dc18247084a913d6c997d6266095b77d6dce4565 | 1,465 | cpp | C++ | million-sdk/cheat/hooks/functions/emit_sound.cpp | excludes/millionware-v1 | 78429e0c50d33df4acb675e403a313384f6fb2e0 | [
"MIT"
] | 32 | 2021-07-21T14:55:10.000Z | 2022-03-09T22:07:20.000Z | million-sdk/cheat/hooks/functions/emit_sound.cpp | excludes/millionware-v1 | 78429e0c50d33df4acb675e403a313384f6fb2e0 | [
"MIT"
] | 1 | 2021-07-21T18:42:39.000Z | 2021-07-21T18:45:53.000Z | million-sdk/cheat/hooks/functions/emit_sound.cpp | excludes/millionware-v1 | 78429e0c50d33df4acb675e403a313384f6fb2e0 | [
"MIT"
] | 29 | 2021-07-21T14:56:45.000Z | 2022-03-29T20:57:25.000Z | #include "../hooks.hpp"
#include <cstdio>
#include "../../features/misc.hpp"
bool landed = false;
typedef void( __fastcall* EmitSoundFn )( void*, void*, void*, int, int, const char*, unsigned int, const char*, float, float, int, int, int, const vec3*, const vec3*, vec3*, bool, float, int, void* );
void __fastcall hoo... | 36.625 | 221 | 0.686007 | excludes |
dc1c9613e39c4696ca4d9ccf9bfad244956dc85e | 320 | cpp | C++ | src/main.cpp | JibbityJobbity/bad-minecraft-clone | 8d81417a6a74f0f78aa508f1ce50acf39dadcad1 | [
"MIT"
] | 1 | 2018-07-18T21:39:55.000Z | 2018-07-18T21:39:55.000Z | src/main.cpp | JibbityJobbity/bad-minecraft-clone | 8d81417a6a74f0f78aa508f1ce50acf39dadcad1 | [
"MIT"
] | null | null | null | src/main.cpp | JibbityJobbity/bad-minecraft-clone | 8d81417a6a74f0f78aa508f1ce50acf39dadcad1 | [
"MIT"
] | 1 | 2018-07-19T01:18:42.000Z | 2018-07-19T01:18:42.000Z | #include <Universe.hpp>
#include <iostream>
int main()
{
int universeSetupStatus = 0;
Universe currentUniverse = Universe(&universeSetupStatus);
if (universeSetupStatus == 0)
currentUniverse.EventLoop();
else
std::cout << "Universe creation failed with code " << universeSetupStatus << std::endl;
return 0;
}
| 21.333333 | 89 | 0.728125 | JibbityJobbity |
dc1d2d03b7bb9b78c04ced6083975a12a45cf517 | 3,759 | cpp | C++ | programs/bcio-abigen/main.cpp | bcchain2020/BCChain | 6947212d12571c536225d3440e4985f5b2093cbc | [
"MIT"
] | null | null | null | programs/bcio-abigen/main.cpp | bcchain2020/BCChain | 6947212d12571c536225d3440e4985f5b2093cbc | [
"MIT"
] | null | null | null | programs/bcio-abigen/main.cpp | bcchain2020/BCChain | 6947212d12571c536225d3440e4985f5b2093cbc | [
"MIT"
] | null | null | null | #include <fc/exception/exception.hpp>
#include <fc/io/json.hpp>
#include <bcio/abi_generator/abi_generator.hpp>
#include <fc/variant_object.hpp>
using namespace bcio;
using namespace bcio::chain;
using mvo = fc::mutable_variant_object;
std::unique_ptr<FrontendActionFactory> create_factory(bool verbose, bool opt_sfs,... | 35.130841 | 175 | 0.698856 | bcchain2020 |
dc1e95f38f326c0da6e738d1c8ae2f9a1edefcf7 | 276 | cpp | C++ | _includes/leet387/leet387.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet387/leet387.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet387/leet387.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
int firstUniqChar(string s) {
vector<int> cnt = vector<int>(128,0);
for(char a:s){
cnt[a]++;
}
for(int i=0;i<s.length();i++){
if(cnt[s[i]]==1) return i;
}
return -1;
}
};
| 19.714286 | 45 | 0.431159 | mingdaz |
dc20cfc7d11ef377da885bca3af3820bbd45d1d2 | 1,119 | hpp | C++ | client/scene/Dashboard.hpp | LoneDev6/MikuMikuOnline_wss-mod | de05011d5b7f0d5492640743c79ae005a832109a | [
"BSD-3-Clause"
] | 6 | 2015-01-03T08:18:16.000Z | 2022-01-22T00:01:23.000Z | client/scene/Dashboard.hpp | LoneDev6/MikuMikuOnline_wss-mod | de05011d5b7f0d5492640743c79ae005a832109a | [
"BSD-3-Clause"
] | 1 | 2021-10-03T19:07:56.000Z | 2021-10-03T19:07:56.000Z | client/scene/Dashboard.hpp | LoneDev6/MikuMikuOnline_wss-mod | de05011d5b7f0d5492640743c79ae005a832109a | [
"BSD-3-Clause"
] | 1 | 2021-10-03T19:29:40.000Z | 2021-10-03T19:29:40.000Z | //
// Dashboard.hpp
//
#pragma once
#include <boost/property_tree/json_parser.hpp>
#include "Base.hpp"
#include "../ManagerHeader.hpp"
#include "../ManagerAccessor.hpp"
#include "../ResourceManager.hpp"
#include "../ui/UISuper.hpp"
using namespace boost::property_tree;
namespace scene {
class Dashboard : public Ba... | 21.941176 | 61 | 0.700626 | LoneDev6 |
dc22dbc69be24286256f28824cca4cb110d411e9 | 3,255 | hpp | C++ | src/options.hpp | clienthax/neptools | 90f3e1cc8cf388e7050b15c44fa51e330973fd53 | [
"WTFPL"
] | 1 | 2021-04-23T20:23:26.000Z | 2021-04-23T20:23:26.000Z | src/options.hpp | clienthax/neptools | 90f3e1cc8cf388e7050b15c44fa51e330973fd53 | [
"WTFPL"
] | null | null | null | src/options.hpp | clienthax/neptools | 90f3e1cc8cf388e7050b15c44fa51e330973fd53 | [
"WTFPL"
] | null | null | null | #ifndef UUID_BCBAF2F6_1339_4E4C_843F_373C736EBC69
#define UUID_BCBAF2F6_1339_4E4C_843F_373C736EBC69
#pragma once
#include "except.hpp"
#include <functional>
#include <vector>
#include <boost/exception/info.hpp>
namespace Neptools
{
struct Exit { bool success; };
NEPTOOLS_GEN_EXCEPTION_TYPE(InvalidParam, std::runtime... | 28.060345 | 83 | 0.686329 | clienthax |
dc258bfad38d42d3a1ebfdca7532dc7dcdf0c76b | 1,090 | cpp | C++ | CPPWebFramework/cwf/urlencoder.cpp | lucianoconforto/CPPWebFramework | 7a6d0537777414261e8e6e66e5115944e6e7ef0a | [
"MIT"
] | 431 | 2017-01-07T16:08:30.000Z | 2022-03-25T07:38:41.000Z | CPPWebFramework/cwf/urlencoder.cpp | lucianoconforto/CPPWebFramework | 7a6d0537777414261e8e6e66e5115944e6e7ef0a | [
"MIT"
] | 33 | 2017-01-26T14:18:25.000Z | 2022-03-12T07:39:18.000Z | CPPWebFramework/cwf/urlencoder.cpp | lucianoconforto/CPPWebFramework | 7a6d0537777414261e8e6e66e5115944e6e7ef0a | [
"MIT"
] | 129 | 2017-01-10T03:41:51.000Z | 2022-03-04T02:31:26.000Z | /*
Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler
Distributed under MIT license, or public domain if desired and
recognized in your jurisdiction.
See file LICENSE for detail.
*/
#include "urlencoder.h"
CWF_BEGIN_NAMESPACE
QString URLEncoder::decode(QByteArray url, bool replacePlusForSpa... | 23.695652 | 76 | 0.672477 | lucianoconforto |
dc2a3d807603e225e98b25d01445490748dfd061 | 27,724 | cc | C++ | xic/src/gtkxic/gtkcv.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | xic/src/gtkxic/gtkcv.cc | markvolkmann/xictools | 5d32ad130cfd13f4e5ecaae7701f2863b4558f4e | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | xic/src/gtkxic/gtkcv.cc | markvolkmann/xictools | 5d32ad130cfd13f4e5ecaae7701f2863b4558f4e | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 34.311881 | 78 | 0.61077 | wrcad |
dc2c56305c0b7d7e114367ec05c6f4c5d50b1be2 | 3,543 | cpp | C++ | 044_Scattering (light)/Landscape/TerrainRender.cpp | HansWord/HansMemory | ae74b8d4f5ebc749508ce43250a604e364950203 | [
"MIT"
] | null | null | null | 044_Scattering (light)/Landscape/TerrainRender.cpp | HansWord/HansMemory | ae74b8d4f5ebc749508ce43250a604e364950203 | [
"MIT"
] | null | null | null | 044_Scattering (light)/Landscape/TerrainRender.cpp | HansWord/HansMemory | ae74b8d4f5ebc749508ce43250a604e364950203 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "TerrainRender.h"
TerrainRender::TerrainRender()
{
heightMap = new Texture(Contents + L"HeightMaps/HeightMap256.png");
vector<D3DXCOLOR> heights;
heightMap->ReadPixels(DXGI_FORMAT_R8G8B8A8_UNORM, &heights);
width = heightMap->GetWidth() - 1;
height = heightMap->GetHeight() - 1;
ma... | 24.776224 | 77 | 0.641264 | HansWord |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.