hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9529c4b9e99a13b2715677fa31104504797f9a0 | 3,025 | hpp | C++ | boost/histogram/make_profile.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/histogram/make_profile.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/histogram/make_profile.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | // Copyright 2018 Hans Dembinski
//
// 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 BOOST_HISTOGRAM_MAKE_PROFILE_HPP
#define BOOST_HISTOGRAM_MAKE_PROFILE_HPP
#include <boost/histogram/accumulators/mean.... | 33.241758 | 88 | 0.745455 | cpp-pm |
c954364d0ef7fca47eadeb48c2eef07b91d08b14 | 2,943 | hpp | C++ | saga/saga/adaptors/register_workitem.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/saga/adaptors/register_workitem.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/saga/adaptors/register_workitem.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2010 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)
#ifndef SAGA_ADAPTORS_REGISTER_WORKITEM_HPP
#define SAGA_ADAPTORS_REGISTER_WORKITEM_HPP
#include <saga/saga/util.hp... | 41.450704 | 81 | 0.64526 | saga-project |
c9549e09b578d7f93590ce1251b08cb9fe01bf68 | 4,119 | cpp | C++ | marsyas-vamp/marsyas/src/marsyas/marsystems/Memory.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/marsyas/marsystems/Memory.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/marsyas/marsystems/Memory.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | /*
** Copyright (C) 1998-2010 George Tzanetakis <gtzan@cs.uvic.ca>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version... | 24.517857 | 77 | 0.652586 | jaouahbi |
c955da2616ff9d9577c48b60fe66b2c854cb02c8 | 1,865 | cpp | C++ | src/simulator/simulator.cpp | unhuman-io/motor | 06f87820f3b4f4819ee09dd9ac133ce8cbc789d3 | [
"MIT"
] | null | null | null | src/simulator/simulator.cpp | unhuman-io/motor | 06f87820f3b4f4819ee09dd9ac133ce8cbc789d3 | [
"MIT"
] | null | null | null | src/simulator/simulator.cpp | unhuman-io/motor | 06f87820f3b4f4819ee09dd9ac133ce8cbc789d3 | [
"MIT"
] | null | null | null | #include <messages.h>
#include "simulator.h"
#include "easylogging++.h"
#include "system.h"
#include "hal_adc.h"
#include "motor_simulation.h"
#include "sensor/encoder.h"
#include "communication.h"
Simulator::Simulator(System &system) : system_(system), position_(), velocity_() {
motor_simulation_ = new MotorSim... | 31.083333 | 99 | 0.680965 | unhuman-io |
c95697aeea57894759a1f00fa1ca956222cb0415 | 12,238 | cpp | C++ | src/helpers.cpp | unbornchikken/nodeanything | dd380645fd61c92cf1874cb2c880a4d00430925a | [
"BSD-3-Clause"
] | 115 | 2015-07-28T10:01:29.000Z | 2022-03-05T23:02:11.000Z | src/helpers.cpp | unbornchikken/nodeanything | dd380645fd61c92cf1874cb2c880a4d00430925a | [
"BSD-3-Clause"
] | 13 | 2015-08-03T09:01:37.000Z | 2021-01-28T02:49:01.000Z | src/helpers.cpp | unbornchikken/nodeanything | dd380645fd61c92cf1874cb2c880a4d00430925a | [
"BSD-3-Clause"
] | 12 | 2015-10-05T00:15:06.000Z | 2019-07-23T09:27:12.000Z | /*
Copyright (c) 2014-2015, ArrayFire
Copyright (c) 2015 Gábor Mező aka unbornchikken (gabor.mezo@outlook.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must reta... | 29.347722 | 163 | 0.592826 | unbornchikken |
c95774b3dd49362ce5f9283027fc8ecbf94574df | 60 | hpp | C++ | src/boost_mpl_aux__preprocessed_no_ctps_bind_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__preprocessed_no_ctps_bind_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__preprocessed_no_ctps_bind_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/preprocessed/no_ctps/bind_fwd.hpp>
| 30 | 59 | 0.816667 | miathedev |
c95c0fddb5f6dd773b7dac909993d18325ddf3d2 | 6,684 | cpp | C++ | tst/OpcUaStackCore/ServiceSet/Cancel_t.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | tst/OpcUaStackCore/ServiceSet/Cancel_t.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | tst/OpcUaStackCore/ServiceSet/Cancel_t.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | #include "unittest.h"
#include "boost/asio.hpp"
#include "OpcUaStackCore/BuildInTypes/BuildInTypes.h"
#include "OpcUaStackCore/BuildInTypes/OpcUaIdentifier.h"
#include "OpcUaStackCore/SecureChannel/MessageHeader.h"
#include "OpcUaStackCore/SecureChannel/SequenceHeader.h"
#include "OpcUaStackCore/ServiceSet/CancelReques... | 31.677725 | 98 | 0.774686 | gianricardo |
e920dccfe5066f042bc8f7a60f02b5f3528be619 | 785 | cpp | C++ | solved/o-q/pole-position/pole.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/o-q/pole-position/pole.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/o-q/pole-position/pole.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstring>
#define MAXN 1000
#define Zero(v) memset((v), 0, sizeof(v))
int N;
int grid[MAXN];
int main()
{
while (true) {
scanf("%d", &N);
if (N == 0) break;
Zero(grid);
bool valid = true;
for (int i = 0; i < N; ++i) {
int C, P;
... | 16.354167 | 56 | 0.35414 | abuasifkhan |
e9267eeda8e83643522c8d052654483f35dc5939 | 1,392 | hpp | C++ | include/MyElf/Sections/SectionHeader.hpp | korreborg/MyElf | f7514cb7ecf923702cc34b344d1a0a51419588ee | [
"MIT"
] | 1 | 2022-03-29T21:10:43.000Z | 2022-03-29T21:10:43.000Z | include/MyElf/Sections/SectionHeader.hpp | korreborg/MyElf | f7514cb7ecf923702cc34b344d1a0a51419588ee | [
"MIT"
] | 6 | 2022-03-29T20:21:08.000Z | 2022-03-29T20:56:09.000Z | include/MyElf/Sections/SectionHeader.hpp | korreborg/MyElf | f7514cb7ecf923702cc34b344d1a0a51419588ee | [
"MIT"
] | null | null | null | #pragma once
#include "../Common.hpp"
//special section indexes
#define SHN_UNDEF 0x0
#define SHN_LORESERVE 0xFF00
#define SHN_LOPROC 0xFF00
#define SHN_HIPROC 0xFF1F
#define SHN_ABS 0xFFF1
#define SHN_COMMON 0xFFF2
#define SHN_HIRESERVE 0xFFFF
//Section types
#define SHT_NULL 0
#define SHT_PR... | 22.095238 | 57 | 0.713362 | korreborg |
e929255ab8732af5534eb27118457cf3a3a44b14 | 2,969 | hpp | C++ | higan/processor/r65816/registers.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/processor/r65816/registers.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/processor/r65816/registers.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | struct flag_t {
bool n{0};
bool v{0};
bool m{0};
bool x{0};
bool d{0};
bool i{0};
bool z{0};
bool c{0};
inline operator unsigned() const {
return (n << 7) + (v << 6) + (m << 5) + (x << 4)
+ (d << 3) + (i << 2) + (z << 1) + (c << 0);
}
inline auto operator=(uint8 data) -> unsigned {
... | 36.654321 | 85 | 0.575951 | ameer-bauer |
e92b941bdb2953b41b65166d5e70b2b8c3e78df8 | 5,101 | cc | C++ | translator/fortran_output_fix.cc | naoyam/physis | 39ee5250a2d5baa545ca03e7c5c9aa9c81f1ab19 | [
"BSD-3-Clause"
] | 30 | 2015-01-27T02:45:34.000Z | 2022-02-17T03:50:49.000Z | translator/fortran_output_fix.cc | naoyam/physis | 39ee5250a2d5baa545ca03e7c5c9aa9c81f1ab19 | [
"BSD-3-Clause"
] | 8 | 2015-01-02T02:10:04.000Z | 2015-04-21T08:42:12.000Z | translator/fortran_output_fix.cc | naoyam/physis | 39ee5250a2d5baa545ca03e7c5c9aa9c81f1ab19 | [
"BSD-3-Clause"
] | 4 | 2015-12-16T10:18:31.000Z | 2021-12-28T22:43:56.000Z | // Licensed under the BSD license. See LICENSE.txt for more details.
#include "translator/fortran_output_fix.h"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
using std::ios_base;
using std::ifstream;
using std::ofstream;... | 29.830409 | 88 | 0.608704 | naoyam |
e93265f9f07efe2d169dd68bf147138c45361cdb | 1,621 | cpp | C++ | src/account/GetApplicationSubscriptionHistoryResponse.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 5 | 2019-06-30T06:29:46.000Z | 2021-12-17T12:41:23.000Z | src/account/GetApplicationSubscriptionHistoryResponse.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 2 | 2018-01-09T17:14:45.000Z | 2020-03-23T00:16:50.000Z | src/account/GetApplicationSubscriptionHistoryResponse.cpp | Sherlock92/greentop | aa278d08babe02326b3ab85a6eafb858d780dec5 | [
"MIT"
] | 7 | 2015-09-13T18:40:58.000Z | 2020-01-24T10:57:56.000Z | /**
* Copyright 2017 Colin Doig. Distributed under the MIT license.
*/
#include "greentop/account/GetApplicationSubscriptionHistoryResponse.h"
namespace greentop {
namespace account {
GetApplicationSubscriptionHistoryResponse::GetApplicationSubscriptionHistoryResponse() {
}
GetApplicationSubscriptionHistoryRespo... | 31.784314 | 148 | 0.750771 | Sherlock92 |
e932a041f73bb9bf4b667c23bde3a38241c66cf2 | 28,526 | cc | C++ | test/sema/test_analyzer.cc | ligangwang/m | 8a470441305689f4107c1c8b54276ef8910609c5 | [
"MIT"
] | 9 | 2020-01-25T05:27:46.000Z | 2022-01-24T02:40:50.000Z | test/sema/test_analyzer.cc | ligangwang/m | 8a470441305689f4107c1c8b54276ef8910609c5 | [
"MIT"
] | 1 | 2020-06-01T00:06:12.000Z | 2020-06-01T00:06:12.000Z | test/sema/test_analyzer.cc | ligangwang/m | 8a470441305689f4107c1c8b54276ef8910609c5 | [
"MIT"
] | 1 | 2020-05-08T05:19:13.000Z | 2020-05-08T05:19:13.000Z | /*
* Copyright (C) 2020 Ligang Wang <ligangwangs@gmail.com>
*
* Unit tests for type inference and semantic analsysis
*/
#include "codegen/codegen.h"
#include "codegen/env.h"
#include "parser/m_parser.h"
#include "sema/analyzer.h"
#include "sema/sema_context.h"
#include "tutil.h"
#include "gtest/gtest.h"
#include <s... | 36.154626 | 87 | 0.660836 | ligangwang |
e939075a417e77963819f7de45b5c08465e91cea | 2,463 | cpp | C++ | Wml/Source/Intersection/WmlIntrLin3Loz3.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 26 | 2018-07-04T15:31:11.000Z | 2021-09-23T02:43:46.000Z | Wml/Source/Intersection/WmlIntrLin3Loz3.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | null | null | null | Wml/Source/Intersection/WmlIntrLin3Loz3.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 1 | 2019-06-11T03:20:28.000Z | 2019-06-11T03:20:28.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or ... | 40.377049 | 79 | 0.556232 | 1iyiwei |
e940b4be85a624b4ba9cf03cc80366adf9e6af7a | 2,777 | cpp | C++ | aesc/render/render.cpp | ExternalRepositories/ansi-escape | 5019e1d0530100722005acf361d0fa0932021454 | [
"MIT"
] | null | null | null | aesc/render/render.cpp | ExternalRepositories/ansi-escape | 5019e1d0530100722005acf361d0fa0932021454 | [
"MIT"
] | 15 | 2019-10-08T12:28:29.000Z | 2020-10-07T06:55:05.000Z | aesc/render/render.cpp | ExternalRepositories/ansi-escape | 5019e1d0530100722005acf361d0fa0932021454 | [
"MIT"
] | 1 | 2021-04-02T20:44:21.000Z | 2021-04-02T20:44:21.000Z | /*
* Wrap the Select Graphic Rendition codes
*/
#include "aesc/render/render.hpp"
#include "aesc/internal/sequences.hpp"
#include "aesc/render/internal.hpp"
namespace aesc { // Ansi Escape Terminal
inline namespace render { // Select Graphic Rendition
namespace {
constexpr const char* reset_expr = "0";
constex... | 25.712963 | 60 | 0.697875 | ExternalRepositories |
e941f9a0997255a80bf6e6d0d68620c9cdeb3cfd | 16,557 | hpp | C++ | DataStructures/HashMap/include/hash_map/hash_map_bucket.hpp | kant/Always-be-learning | 7c3b3b4f5e8f0dfcb4d8f4b7f7428d5c8ab164c5 | [
"Unlicense"
] | null | null | null | DataStructures/HashMap/include/hash_map/hash_map_bucket.hpp | kant/Always-be-learning | 7c3b3b4f5e8f0dfcb4d8f4b7f7428d5c8ab164c5 | [
"Unlicense"
] | null | null | null | DataStructures/HashMap/include/hash_map/hash_map_bucket.hpp | kant/Always-be-learning | 7c3b3b4f5e8f0dfcb4d8f4b7f7428d5c8ab164c5 | [
"Unlicense"
] | null | null | null | #ifndef DATA_STRUCTURES_HASH_MAP_BUCKET_HPP
#define DATA_STRUCTURES_HASH_MAP_BUCKET_HPP
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <memory>
#include <type_traits>
#include <utility>
#include <forward_list>
#include "utils/Assertion.h"
#include "utils/traits.h"
// templat... | 33.313883 | 121 | 0.613457 | kant |
e94311f08e55bd0801b00c03edc1fb5cdbeec616 | 3,814 | cpp | C++ | tests/class_destruction_with_annotation.cpp | preempt/fruit | 9ea3e31b63836797ec7ba1dd759ead8c00d0d227 | [
"Apache-2.0"
] | null | null | null | tests/class_destruction_with_annotation.cpp | preempt/fruit | 9ea3e31b63836797ec7ba1dd759ead8c00d0d227 | [
"Apache-2.0"
] | null | null | null | tests/class_destruction_with_annotation.cpp | preempt/fruit | 9ea3e31b63836797ec7ba1dd759ead8c00d0d227 | [
"Apache-2.0"
] | null | null | null | // expect-success
/*
* Copyright 2014 Google Inc. 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... | 28.462687 | 118 | 0.684583 | preempt |
e9448e421b170fc05fd93e559f978d0aa21b85db | 33,689 | cpp | C++ | svo/src/initialization.cpp | jsz0913/rpg_dvs_evo_open | 93edc7a2d215ed097e3f6a9abbefd0b572958b74 | [
"BSD-2-Clause-Patent"
] | 97 | 2021-06-24T09:34:08.000Z | 2022-02-28T01:58:09.000Z | svo/src/initialization.cpp | jsz0913/rpg_dvs_evo_open | 93edc7a2d215ed097e3f6a9abbefd0b572958b74 | [
"BSD-2-Clause-Patent"
] | 14 | 2021-06-14T13:01:27.000Z | 2022-03-30T01:49:57.000Z | svo/src/initialization.cpp | jsz0913/rpg_dvs_evo_open | 93edc7a2d215ed097e3f6a9abbefd0b572958b74 | [
"BSD-2-Clause-Patent"
] | 32 | 2021-06-24T09:34:12.000Z | 2022-03-01T15:23:29.000Z | // This file is part of SVO - Semi-direct Visual Odometry.
//
// Copyright (C) 2014 Christian Forster <forster at ifi dot uzh dot ch>
// (Robotics and Perception Group, University of Zurich, Switzerland).
//
// This file is subject to the terms and conditions defined in the file
// 'LICENSE', which is part of this sour... | 36.539046 | 116 | 0.711538 | jsz0913 |
e946a0e063efa142ad15381004e7d41e78a2bee0 | 1,111 | cpp | C++ | src/Engine/map/MapAltitude.cpp | turesnake/tprPixelGames | 6b5471a072a1a8b423834ab04ff03e64df215d5e | [
"BSD-3-Clause"
] | 591 | 2020-03-12T05:10:33.000Z | 2022-03-30T13:41:59.000Z | src/Engine/map/MapAltitude.cpp | turesnake/tprPixelGames | 6b5471a072a1a8b423834ab04ff03e64df215d5e | [
"BSD-3-Clause"
] | 4 | 2020-04-06T01:55:06.000Z | 2020-05-02T04:28:04.000Z | src/Engine/map/MapAltitude.cpp | turesnake/tprPixelGames | 6b5471a072a1a8b423834ab04ff03e64df215d5e | [
"BSD-3-Clause"
] | 112 | 2020-04-05T23:55:36.000Z | 2022-03-17T11:58:02.000Z | /*
* ====================== MapAltitude.cpp =======================
* -- tpr --
* CREATE -- 2019.03.11
* MODIFY --
* ----------------------------------------------------------
*/
#include "pch.h"
#include "MapA... | 29.236842 | 79 | 0.414941 | turesnake |
e94c305c2b3cd0447ccdfb89a80fa1faf09529a2 | 10,273 | cpp | C++ | MandarinInstrInfo.cpp | WheretIB/llvm-mandarin | 073fd12ba433e531a05a211439bb23405196811a | [
"MIT"
] | null | null | null | MandarinInstrInfo.cpp | WheretIB/llvm-mandarin | 073fd12ba433e531a05a211439bb23405196811a | [
"MIT"
] | null | null | null | MandarinInstrInfo.cpp | WheretIB/llvm-mandarin | 073fd12ba433e531a05a211439bb23405196811a | [
"MIT"
] | null | null | null | //===-- MandarinInstrInfo.cpp - Mandarin Instruction Information ----------------===//
//
// Vyacheslav Egorov
//
// This file is distributed under the MIT License
//
//===----------------------------------------------------------------------===//
//
// This file contains the Mandarin implementation... | 32.003115 | 92 | 0.632727 | WheretIB |
e94ec877a7f3cc056a9555adfffecd019977ac2b | 1,093 | cpp | C++ | src/Horn.cpp | mauriciocele/fast-rotor-estimation | 1ee3f5a4aaee83f66e8ced209c2891b6e2045856 | [
"MIT"
] | 2 | 2020-07-28T15:34:57.000Z | 2021-09-24T06:04:03.000Z | src/Horn.cpp | mauriciocele/fast-rotor-estimation | 1ee3f5a4aaee83f66e8ced209c2891b6e2045856 | [
"MIT"
] | null | null | null | src/Horn.cpp | mauriciocele/fast-rotor-estimation | 1ee3f5a4aaee83f66e8ced209c2891b6e2045856 | [
"MIT"
] | null | null | null | #include "Horn.h"
#include <Eigen/Eigenvalues>
using Eigen::Vector3d;
using Eigen::Vector4d;
using Eigen::Matrix3d;
using Eigen::Matrix4d;
using Eigen::Quaterniond;
using std::vector;
Quaterniond Horn(const vector<Vector3d>& P, const vector<Vector3d>& Q, const vector<double>& w)
{
Matrix3d M;
Matrix... | 26.02381 | 96 | 0.513266 | mauriciocele |
e951afd2269895e8d535509a9f19580f203a1bbb | 507 | cc | C++ | DataFormats/METReco/src/HaloClusterCandidateHCAL.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DataFormats/METReco/src/HaloClusterCandidateHCAL.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | DataFormats/METReco/src/HaloClusterCandidateHCAL.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "DataFormats/METReco/interface/HaloClusterCandidateHCAL.h"
using namespace reco;
HaloClusterCandidateHCAL::HaloClusterCandidateHCAL() :
et(0),
seed_et(0),
seed_eta(0),
seed_phi(0),
seed_Z(0),
seed_R(0),
seed_time(0),
ishalofrompattern(false),
ishalofrompattern_hlt(false),
eoverh(0),
etst... | 20.28 | 67 | 0.739645 | nistefan |
e952343c13a600e55880909a6c7f042ae515207b | 9,426 | cc | C++ | android_ar/app/src/main/cpp/game_renderer.cc | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | 4 | 2018-07-06T21:03:00.000Z | 2022-02-10T10:17:21.000Z | android_ar/app/src/main/cpp/game_renderer.cc | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | null | null | null | android_ar/app/src/main/cpp/game_renderer.cc | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | 2 | 2021-08-04T05:49:30.000Z | 2022-02-26T12:19:45.000Z | /*
* Copyright 2017 Google Inc. 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 applic... | 33.190141 | 108 | 0.711436 | oseiskar |
e957f50abe95b4ce045a51ea3741abaf9d6ec67d | 1,846 | cpp | C++ | EM4205.cpp | bert386/arduino_utft_hmi | f720bf61b7c9d9cf46fb4902db9e8833d5b15410 | [
"Apache-2.0"
] | null | null | null | EM4205.cpp | bert386/arduino_utft_hmi | f720bf61b7c9d9cf46fb4902db9e8833d5b15410 | [
"Apache-2.0"
] | null | null | null | EM4205.cpp | bert386/arduino_utft_hmi | f720bf61b7c9d9cf46fb4902db9e8833d5b15410 | [
"Apache-2.0"
] | null | null | null | #include "EM4205.h"
bool initRFID()
{
RFIDSerial.end();
//
RFIDSerial.begin(9600);
RFIDSerial.flush();
RFIDSerial.print(F("SD2\r"));
uint32_t nStartTime = millis();
bool bReceving = false;
String resp = "";
while (1)
{
if (RFIDSerial.available())
{
bReceving = true;
resp += String((char)RFIDSeri... | 14.768 | 52 | 0.576381 | bert386 |
e95ade09c141745de16b5e440e985348c8459076 | 401 | cpp | C++ | src/compliance.cpp | cran/ruimtehol | 8e2bbf1a67c7868192a457ba58492dcb43e26e87 | [
"BSD-3-Clause"
] | null | null | null | src/compliance.cpp | cran/ruimtehol | 8e2bbf1a67c7868192a457ba58492dcb43e26e87 | [
"BSD-3-Clause"
] | null | null | null | src/compliance.cpp | cran/ruimtehol | 8e2bbf1a67c7868192a457ba58492dcb43e26e87 | [
"BSD-3-Clause"
] | null | null | null | /*
#include <Rcpp.h>
#include <stdlib.h>
// [[Rcpp::export]]
int rand() {
int r = R::unif_rand() * RAND_MAX;
return r;
}
// [[Rcpp::export]]
void srand(unsigned int seed){
Rcpp::Environment base("package:base");
Rcpp::Function set_seed = base["set.seed"];
set_seed(seed);
};
namespace std {
std::ost... | 17.434783 | 49 | 0.620948 | cran |
e95f4d29ee1c0054f8a378bc5fab1b1655df7316 | 1,811 | cpp | C++ | LeetCode/Problems/Algorithms/#662_MaximumWidthOfBinaryTree_sol2_bfs.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#662_MaximumWidthOfBinaryTree_sol2_bfs.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#662_MaximumWidthOfBinaryTree_sol2_bfs.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : v... | 32.339286 | 94 | 0.429045 | Tudor67 |
e9604b41c710292d935908af771b4d184a785ff8 | 11,423 | cpp | C++ | Source/Model/CSceneAppMediaEngine.cpp | StevoGTA/SceneApp | a24337bb749d13411b5f78460b8a7915024cbeb7 | [
"MIT"
] | null | null | null | Source/Model/CSceneAppMediaEngine.cpp | StevoGTA/SceneApp | a24337bb749d13411b5f78460b8a7915024cbeb7 | [
"MIT"
] | null | null | null | Source/Model/CSceneAppMediaEngine.cpp | StevoGTA/SceneApp | a24337bb749d13411b5f78460b8a7915024cbeb7 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
// CSceneAppMediaEngine.cpp ©2020 Stevo Brock All rights reserved.
//----------------------------------------------------------------------------------------------------------------------
#include... | 42.151292 | 120 | 0.594327 | StevoGTA |
e960df1ae0f33fa355bb35e37644c81bce130494 | 2,390 | cc | C++ | sippet/message/header.cc | sippet/sippet | c6f4b0e9723f56cfb6d345d307a48f1ff0eb2c65 | [
"BSD-3-Clause"
] | 26 | 2015-04-01T22:56:51.000Z | 2021-11-29T08:46:35.000Z | sippet/message/header.cc | sippet/sippet | c6f4b0e9723f56cfb6d345d307a48f1ff0eb2c65 | [
"BSD-3-Clause"
] | null | null | null | sippet/message/header.cc | sippet/sippet | c6f4b0e9723f56cfb6d345d307a48f1ff0eb2c65 | [
"BSD-3-Clause"
] | 8 | 2015-04-01T22:56:56.000Z | 2021-06-10T02:21:26.000Z | // Copyright (c) 2013 The Sippet 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 "sippet/message/header.h"
#include <cstring>
#include <algorithm>
#include "sippet/message/headers/generic.h"
#include "base/basi... | 24.387755 | 77 | 0.630126 | sippet |
e964a248419155561dad97b26eed0340ad045b78 | 134 | cpp | C++ | persistence/backend.cpp | czpwpq/hotel | 2e003b019cf6b21349228740a8dae6c639945510 | [
"MIT"
] | 7 | 2017-04-05T20:06:30.000Z | 2022-01-01T00:14:42.000Z | persistence/backend.cpp | czpwpq/hotel | 2e003b019cf6b21349228740a8dae6c639945510 | [
"MIT"
] | 1 | 2017-01-06T13:47:45.000Z | 2017-01-06T13:49:47.000Z | persistence/backend.cpp | decden/hotel | 1d7d16ad0a97c9a24f8e54b9b180fcd3166d0c89 | [
"MIT"
] | 4 | 2017-04-05T20:06:31.000Z | 2020-10-29T14:50:12.000Z | #include "persistence/backend.h"
namespace persistence
{
Backend::Backend() {}
Backend::~Backend() {}
} // namespace persistence
| 16.75 | 32 | 0.701493 | czpwpq |
e96739bf6e4bc7f698b1de5c069b552058138a1f | 309 | cpp | C++ | SignalTester/playsoundfile/playfile.cpp | GeertRoks/DSP_theory | 508e6b52261460c7d06caffa02cab66b38d87e88 | [
"MIT"
] | null | null | null | SignalTester/playsoundfile/playfile.cpp | GeertRoks/DSP_theory | 508e6b52261460c7d06caffa02cab66b38d87e88 | [
"MIT"
] | null | null | null | SignalTester/playsoundfile/playfile.cpp | GeertRoks/DSP_theory | 508e6b52261460c7d06caffa02cab66b38d87e88 | [
"MIT"
] | null | null | null |
#include "playfile.hpp"
Playfile::Playfile() {
}
Playfile::Playfile(std::string file) {
}
std::vector<double> Playfile::getSamples(const unsigned int num_samples) {
std::vector<double> file = {};
for (unsigned int i = 0; i < num_samples; i++) {
file.push_back(sample0[i]);
}
return file;
}
| 17.166667 | 74 | 0.653722 | GeertRoks |
e96cb2a50dc79efaf5825c78e77700732319be4c | 2,265 | cpp | C++ | tests/util/uint_types_test.cpp | patflick/dpt | 5b300500c97f41d1d24c4e660af2d4499ad40520 | [
"BSD-2-Clause"
] | 7 | 2017-03-23T05:19:53.000Z | 2021-02-26T14:25:08.000Z | tests/util/uint_types_test.cpp | patflick/dpt | 5b300500c97f41d1d24c4e660af2d4499ad40520 | [
"BSD-2-Clause"
] | 2 | 2019-04-04T02:24:06.000Z | 2019-04-04T02:57:08.000Z | tests/util/uint_types_test.cpp | patflick/dpt | 5b300500c97f41d1d24c4e660af2d4499ad40520 | [
"BSD-2-Clause"
] | 2 | 2019-04-03T20:09:47.000Z | 2021-10-30T16:06:47.000Z | /*******************************************************************************
* tests/util/uint_types_test.cpp
*
* Part of dpt - Distributed Patricia Trie
*
* Copyright (C) 2013 Timo Bingmann <tb@panthema.net>
*
* Copied from:
* > tests/common/uint_types_test.cpp
* >
* > Class representing a 40-bit or 48-... | 23.112245 | 80 | 0.535541 | patflick |
e96fa3a34c947073127ea50e215fbfcafa254d93 | 5,120 | hpp | C++ | pylc/src/pylc_lib/converters.hpp | CMU-Light-Curtains/ObjectDetection | d2002f6d1ebcf05a78f179bf0474703ed0211ac0 | [
"BSD-3-Clause"
] | null | null | null | pylc/src/pylc_lib/converters.hpp | CMU-Light-Curtains/ObjectDetection | d2002f6d1ebcf05a78f179bf0474703ed0211ac0 | [
"BSD-3-Clause"
] | null | null | null | pylc/src/pylc_lib/converters.hpp | CMU-Light-Curtains/ObjectDetection | d2002f6d1ebcf05a78f179bf0474703ed0211ac0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef CONVERTERS_H
#define CONVERTERS_H
#include <memory>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include <stdexcept>
#include <opencv2/core/core.hpp>
#include <Eigen/Dense>
#include <eigen3/Eigen/src/Core/Matrix.h>
#include <pybind11/eigen.h>
#include <opencv2/opencv.hp... | 38.208955 | 119 | 0.426953 | CMU-Light-Curtains |
e971b1083ac5316aa29749b05674ff5cf40ad582 | 1,880 | cpp | C++ | code/5/5_pre2_4_bombard.cpp | kdh9949/snups-scpc2020 | 7a3266ea6ba618e5ae066f156f404689d5e270b6 | [
"MIT"
] | 6 | 2020-07-14T01:46:39.000Z | 2021-06-15T06:08:28.000Z | code/5/5_pre2_4_bombard.cpp | kdh9949/snups-scpc2020 | 7a3266ea6ba618e5ae066f156f404689d5e270b6 | [
"MIT"
] | null | null | null | code/5/5_pre2_4_bombard.cpp | kdh9949/snups-scpc2020 | 7a3266ea6ba618e5ae066f156f404689d5e270b6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pil = pair<int, ll>;
using pli = pair<ll, int>;
using pll = pair<ll, ll>;
using vint = vector<int>;
using vll = vector<ll>;
using vld = vector<ld>;
using vpii = vector<pii>;
using vpil = vecto... | 22.650602 | 69 | 0.435106 | kdh9949 |
e9779e6332cd2d77705c5ddf66cba1f12eb3205a | 2,847 | cpp | C++ | venv/boost_1_73_0/libs/graph/example/kuratowski_subgraph.cpp | uosorio/heroku_face | 7d6465e71dba17a15d8edaef520adb2fcd09d91e | [
"Apache-2.0"
] | 106 | 2015-08-07T04:23:50.000Z | 2020-12-27T18:25:15.000Z | 3rdparty/boost_1_73_0/libs/graph/example/kuratowski_subgraph.cpp | qingkouwei/mediaones | cec475e1bfd5807b5351cc7e38d244ac5298ca16 | [
"MIT"
] | 130 | 2016-06-22T22:11:25.000Z | 2020-11-29T20:24:09.000Z | Libs/boost_1_76_0/libs/graph/example/kuratowski_subgraph.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 41 | 2015-07-08T19:18:35.000Z | 2021-01-14T16:39:56.000Z | //=======================================================================
// Copyright 2007 Aaron Windsor
//
// 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)
//=====================================================... | 33.104651 | 75 | 0.594661 | uosorio |
e979f182915b3388f0bd4b6af035cb26c02a6dbf | 953 | cpp | C++ | controller.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | 1 | 2019-04-17T14:54:19.000Z | 2019-04-17T14:54:19.000Z | controller.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | null | null | null | controller.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | 1 | 2019-04-17T14:54:20.000Z | 2019-04-17T14:54:20.000Z | #include "controller.h"
#include "missile.h"
#include <math.h>
#include "coretypes.h"
#include "engine.h"
#include "parameters.h"
using namespace sf;
Controller::Controller() {
player = NULL;
}
Controller::~Controller() {}
void Controller::reportMissileMovement(Missile *missile, MissileControllingData &mcd) {
doubl... | 26.472222 | 96 | 0.741868 | dridk |
e97b04f1c26a1cac1113ce8c27355b665709f46c | 1,034 | cpp | C++ | Plugins/SkillEditor2D/Source/SkillEditor2D/Private/Editor/Preview/SkillEditorPreviewClient.cpp | UnderGround-orchestra-band/SuperRogue | 65a520ac6ccf859c5994e429ffe915e9ff6f1028 | [
"MIT"
] | 1 | 2021-12-18T13:50:51.000Z | 2021-12-18T13:50:51.000Z | Plugins/SkillEditor2D/Source/SkillEditor2D/Private/Editor/Preview/SkillEditorPreviewClient.cpp | UnderGround-orchestra-band/SuperRogue | 65a520ac6ccf859c5994e429ffe915e9ff6f1028 | [
"MIT"
] | 1 | 2021-11-30T08:09:46.000Z | 2021-11-30T08:09:46.000Z | Plugins/SkillEditor2D/Source/SkillEditor2D/Private/Editor/Preview/SkillEditorPreviewClient.cpp | UnderGround-orchestra-band/SuperRogue | 65a520ac6ccf859c5994e429ffe915e9ff6f1028 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "SkillEditorPreviewClient.h"
void SkillEditorPreviewClient::Draw(FViewport* InViewport, FCanvas* Canvas)
{
FEditorViewportClient::Draw(InViewport, Canvas);
}
void SkillEditorPreviewClient::Tick(float DeltaSeconds)
{
FEditorV... | 25.85 | 109 | 0.727273 | UnderGround-orchestra-band |
e97c1d5791d125eafba685fcb4c2e3545ff12396 | 5,365 | cpp | C++ | cert/gen_rsa_and_cert.cpp | alecmus/lecnet | a520e60ce1c407dbe3507117946692f2b98f3600 | [
"MIT"
] | 5 | 2020-03-13T16:20:28.000Z | 2020-03-18T16:54:17.000Z | cert/gen_rsa_and_cert.cpp | alecmus/lecnet | a520e60ce1c407dbe3507117946692f2b98f3600 | [
"MIT"
] | 2 | 2020-04-24T15:49:12.000Z | 2020-04-24T15:50:16.000Z | cert/gen_rsa_and_cert.cpp | alecmus/lecnet | a520e60ce1c407dbe3507117946692f2b98f3600 | [
"MIT"
] | 2 | 2021-05-20T00:37:27.000Z | 2021-06-24T21:05:41.000Z | //
// gen_rsa_and_cert.cpp - generate rsa and certificate implementation
//
// lecnet network library, part of the liblec library
// Copyright (c) 2018 Alec Musasa (alecmus at live dot com)
//
// Released under the MIT license. For full details see the
// file LICENSE.txt
//
#include "../cert.h"
#include "openssl_help... | 21.039216 | 91 | 0.680895 | alecmus |
e97de411487d43c4efb38f9363180d927d70a36b | 1,949 | cpp | C++ | MainWindow.cpp | LaudateCorpus1/QtEntropyGraph | 71b1b42286c3ee0ad063961f49f335e5b905144e | [
"MIT"
] | 3 | 2015-12-11T01:48:53.000Z | 2016-03-28T14:00:45.000Z | MainWindow.cpp | x64dbg/QtEntropyGraph | 71b1b42286c3ee0ad063961f49f335e5b905144e | [
"MIT"
] | 1 | 2021-10-15T08:43:22.000Z | 2021-10-15T08:43:22.000Z | MainWindow.cpp | LaudateCorpus1/QtEntropyGraph | 71b1b42286c3ee0ad063961f49f335e5b905144e | [
"MIT"
] | 3 | 2015-08-06T13:39:48.000Z | 2021-10-15T08:41:25.000Z | #include "MainWindow.h"
#include "ui_MainWindow.h"
#include <QGraphicsItem>
#include <QFile>
#include "Entropy.h"
MainWindow::MainWindow(QWidget* parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
_initialized = false;
}
void MainWindow::initializeGraph()
{
if(_initialized)... | 21.655556 | 107 | 0.671113 | LaudateCorpus1 |
e97e242c15b3b9cc5ec0a0027dd2eca45893abb7 | 17,718 | cpp | C++ | Overdrive/render/shaderprogram.cpp | png85/Overdrive | e763827546354c7c75395ab1a82949a685ecb880 | [
"MIT"
] | 41 | 2015-02-21T08:54:00.000Z | 2021-05-11T16:01:29.000Z | Overdrive/render/shaderprogram.cpp | png85/Overdrive | e763827546354c7c75395ab1a82949a685ecb880 | [
"MIT"
] | 1 | 2018-05-14T10:02:09.000Z | 2018-05-14T10:02:09.000Z | Overdrive/render/shaderprogram.cpp | png85/Overdrive | e763827546354c7c75395ab1a82949a685ecb880 | [
"MIT"
] | 10 | 2015-10-07T05:44:08.000Z | 2020-12-01T09:00:01.000Z | #include "stdafx.h"
#include "shaderprogram.h"
#include "shaderAttribute.h"
#include "shaderUniform.h"
#include "../core/logger.h"
#include <fstream>
namespace overdrive {
namespace render {
namespace {
int getShaderIndex(eShaderType type) {
switch (type) {
case eShaderType::VERTEX: return 0;... | 26.968037 | 103 | 0.642454 | png85 |
e980b12a489a4e89883a9d7920f0541f45d6ff5d | 870 | cpp | C++ | src/breadboard/node_signature.cpp | Coolgamer0403/breadboard | 45537cea0d6cdee70ed91d86cc6114465c351325 | [
"Apache-2.0"
] | 138 | 2015-11-19T05:00:41.000Z | 2021-12-13T14:26:34.000Z | src/breadboard/node_signature.cpp | Coolgamer0403/breadboard | 45537cea0d6cdee70ed91d86cc6114465c351325 | [
"Apache-2.0"
] | 3 | 2015-11-20T01:25:44.000Z | 2019-09-21T11:45:12.000Z | src/breadboard/node_signature.cpp | Coolgamer0403/breadboard | 45537cea0d6cdee70ed91d86cc6114465c351325 | [
"Apache-2.0"
] | 27 | 2015-11-28T02:47:02.000Z | 2021-10-15T11:17:20.000Z | // Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 33.461538 | 75 | 0.752874 | Coolgamer0403 |
e98355928269503f85125b2b2affb2ef3c9bbbcf | 2,137 | cc | C++ | tests/catch/unit/device/hipDeviceGetLimit.cc | neon60/HIP | 586165ebc281eb9461898a5b2abbc74595f5d97d | [
"MIT"
] | null | null | null | tests/catch/unit/device/hipDeviceGetLimit.cc | neon60/HIP | 586165ebc281eb9461898a5b2abbc74595f5d97d | [
"MIT"
] | null | null | null | tests/catch/unit/device/hipDeviceGetLimit.cc | neon60/HIP | 586165ebc281eb9461898a5b2abbc74595f5d97d | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021-Present 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
to use, ... | 41.096154 | 86 | 0.759008 | neon60 |
e984dc80cc35a62fdb73bb71feeca42ebae1a025 | 15,164 | cpp | C++ | Blizzlike/ArcEmu/C++/WorldPvPScripts/ZoneHellfirePeninsula.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/WorldPvPScripts/ZoneHellfirePeninsula.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/WorldPvPScripts/ZoneHellfirePeninsula.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /**
* Summit MMORPG Server Software
* Copyright (c) 2008 Summit Server Team
* See COPYING for license details.
*/
#include "StdAfx.h"
// Some customizable defines.
// Maybe move these to config?
#define BANNER_RANGE 900
#define UPDATE_PERIOD 5000
#define CAPTURE_RATE 20
// Towers
enum Towers
{
TOWER_STADIUM... | 30.027723 | 174 | 0.672975 | 499453466 |
e985dab5ed0bb48e420189b274a354d982507df7 | 3,477 | hpp | C++ | src/entry_node.hpp | BrightTux/model_server | cdbeb464c78b161e5706490fc18b0a8cf16138fb | [
"Apache-2.0"
] | 234 | 2020-04-24T22:09:49.000Z | 2022-03-30T10:40:04.000Z | src/entry_node.hpp | BrightTux/model_server | cdbeb464c78b161e5706490fc18b0a8cf16138fb | [
"Apache-2.0"
] | 199 | 2020-04-29T08:43:21.000Z | 2022-03-29T09:05:52.000Z | src/entry_node.hpp | BrightTux/model_server | cdbeb464c78b161e5706490fc18b0a8cf16138fb | [
"Apache-2.0"
] | 80 | 2020-04-29T14:54:41.000Z | 2022-03-30T14:50:29.000Z | //*****************************************************************************
// Copyright 2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.ap... | 38.208791 | 252 | 0.724475 | BrightTux |
e985df3717495afbf993ed59fe2ec49ffdcd2273 | 1,542 | cpp | C++ | test/gcc/harden.cpp | triton/cc-wrapper | 4be147e091897efc080691567034127dfafd75b9 | [
"Apache-2.0"
] | 1 | 2018-09-27T05:08:35.000Z | 2018-09-27T05:08:35.000Z | test/gcc/harden.cpp | triton/cc-wrapper | 4be147e091897efc080691567034127dfafd75b9 | [
"Apache-2.0"
] | null | null | null | test/gcc/harden.cpp | triton/cc-wrapper | 4be147e091897efc080691567034127dfafd75b9 | [
"Apache-2.0"
] | 3 | 2017-12-24T22:07:05.000Z | 2020-11-26T01:20:16.000Z | #include <catch2/catch.hpp>
#include <gcc/harden.hpp>
namespace cc_wrapper {
namespace gcc {
namespace harden {
TEST_CASE("Enabled flags", "[isValidFlag]") {
Env env;
env.position_independent = true;
env.optimize = true;
CHECK(isValidFlag("-Wl,-rpath", env));
CHECK(isValidFlag("-c", env));
CHECK(isValid... | 27.535714 | 46 | 0.64786 | triton |
e986ad7b854127019cf155b41e9197d3c7668e30 | 102,076 | cpp | C++ | core/sql/executor/cluster.cpp | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 148 | 2015-06-18T21:26:04.000Z | 2017-12-25T01:47:01.000Z | core/sql/executor/cluster.cpp | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 1,352 | 2015-06-20T03:05:01.000Z | 2017-12-25T14:13:18.000Z | core/sql/executor/cluster.cpp | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 166 | 2015-06-19T18:52:10.000Z | 2017-12-27T06:19:32.000Z | /**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... | 35.541783 | 154 | 0.638906 | CoderSong2015 |
e986e6e516b91e5a862174b3c1cfefcddd86ebfd | 625 | cpp | C++ | ims/src/v2/model/BatchAddOrDeleteTagsResponse.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | ims/src/v2/model/BatchAddOrDeleteTagsResponse.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | ims/src/v2/model/BatchAddOrDeleteTagsResponse.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/ims/v2/model/BatchAddOrDeleteTagsResponse.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ims {
namespace V2 {
namespace Model {
BatchAddOrDeleteTagsResponse::BatchAddOrDeleteTagsResponse()
{
}
BatchAddOrDeleteTagsResponse::~BatchAddOrDeleteTagsResponse() = default;
void BatchAddOrDe... | 13.297872 | 72 | 0.7296 | yangzhaofeng |
e99118ff9f0ba42e66e1309f734c6140d8c1e89c | 481 | hpp | C++ | Engine/src/Engpch.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Engpch.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Engpch.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <iostream>
#include <utility>
#include <functional>
#include <memory>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <sstream>
#include <fstream>
#include <charconv>
#include <stdarg.h>
#include "Engine/Log.hpp"
... | 18.5 | 39 | 0.752599 | Niels04 |
e9911a14829fb3f0971ba2f42b74ada70355319b | 542 | cpp | C++ | dmoj/ecoo/13r1p1-take-a-number.cpp | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | dmoj/ecoo/13r1p1-take-a-number.cpp | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | dmoj/ecoo/13r1p1-take-a-number.cpp | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
string a;
cin >> a;
int late = 0, served = 0, nextN = N;
while(a != "EOF")
{
if(a == "TAKE")
{
nextN = nextN == 999? 1 : nextN+1;
late++;
}
else if(a == "SERVE")
... | 17.483871 | 59 | 0.369004 | ruar18 |
e994016064ae4dbd0beb089a5c48321369715214 | 5,975 | cpp | C++ | src/chapter_12_networking_and_services/imap_connection.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_12_networking_and_services/imap_connection.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_12_networking_and_services/imap_connection.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | #include "Chapter12_NetworkingAndServices/ImapConnection.h"
#include "curlcpp/master/include/curl_easy.h"
#include <algorithm> // transform
#include <boost/algorithm/string.hpp>
#include <iostream> // cout
#include <iterator> // back_inserter
#include <optional>
#include <regex> // regex_match, smatch, sregex_ite... | 34.142857 | 137 | 0.567029 | rturrado |
e99406905a708a47b303ff1f7363b44ab92bfab5 | 17,508 | cpp | C++ | av/media/libstagefright/OMXClient.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | 10 | 2020-04-17T04:02:36.000Z | 2021-11-23T11:38:42.000Z | av/media/libstagefright/OMXClient.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | 3 | 2020-02-19T16:53:25.000Z | 2021-04-29T07:28:40.000Z | av/media/libstagefright/OMXClient.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | 5 | 2019-12-25T04:05:02.000Z | 2022-01-14T16:57:55.000Z | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.948905 | 96 | 0.677405 | Keneral |
e994fce4832b5e16f91fafc14f68612e7a2e253d | 1,500 | cpp | C++ | GameModel.cpp | zubrim/monty_hall_problem | 6e6dbdf4cddad4c84b81bd250fcfccc5d44bf35c | [
"MIT"
] | null | null | null | GameModel.cpp | zubrim/monty_hall_problem | 6e6dbdf4cddad4c84b81bd250fcfccc5d44bf35c | [
"MIT"
] | null | null | null | GameModel.cpp | zubrim/monty_hall_problem | 6e6dbdf4cddad4c84b81bd250fcfccc5d44bf35c | [
"MIT"
] | null | null | null | #include "GameModel.h"
GameModel::GameModel() : gameEngine_(GameEngine()){
}
GameModel::~GameModel(){}
void GameModel::changeStateTo(GameEngineState state) {
switch (state) {
case GameEngineState::READY: gameEngine_.reset(); break;
case GameEngineState::DOOR_ELIMINATED: gameEngine_.eliminateDoor(); break;
cas... | 25.423729 | 96 | 0.752 | zubrim |
e99692369475fcd5d2311bf59772848f22a2bf8e | 2,305 | cpp | C++ | Libs/AudioFile/libaudiofile/compression.cpp | drunkfly/retrotoolkit | 38fc08ce931339948d697a4dcf6f2441bccef7d6 | [
"MIT",
"Unlicense"
] | 3 | 2021-04-17T11:32:36.000Z | 2022-01-03T17:51:27.000Z | Libs/AudioFile/libaudiofile/compression.cpp | drunkfly/retrotoolkit | 38fc08ce931339948d697a4dcf6f2441bccef7d6 | [
"MIT",
"Unlicense"
] | null | null | null | Libs/AudioFile/libaudiofile/compression.cpp | drunkfly/retrotoolkit | 38fc08ce931339948d697a4dcf6f2441bccef7d6 | [
"MIT",
"Unlicense"
] | null | null | null | /*
Audio File Library
Copyright (C) 1999-2000, Michael Pruett <michael@68k.org>
Copyright (C) 2000, Silicon Graphics, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version... | 24.784946 | 80 | 0.754447 | drunkfly |
e9974b685fae6c0a3373555682a1971540cfed66 | 7,507 | cpp | C++ | src/core/SBWCore/SBWException.cpp | copasi/copasi-dependencies | c01dd455c843522375c32c2989aa8675f59bb810 | [
"Unlicense"
] | 5 | 2015-04-16T14:27:38.000Z | 2021-11-30T14:54:39.000Z | src/core/SBWCore/SBWException.cpp | copasi/copasi-dependencies | c01dd455c843522375c32c2989aa8675f59bb810 | [
"Unlicense"
] | 8 | 2017-05-30T16:58:39.000Z | 2022-02-22T16:51:34.000Z | src/core/SBWCore/SBWException.cpp | copasi/copasi-dependencies | c01dd455c843522375c32c2989aa8675f59bb810 | [
"Unlicense"
] | 7 | 2016-05-29T08:12:59.000Z | 2019-05-02T13:39:25.000Z | /**
* @file SBWException.cpp
* @brief implementation of SBWException class - abstract base class for all SBW Exceptions
*
* This file is part of SBW. Please visit http://sbw.sf.org for more
* information about SBW, and the latest version of libSBW.
*
* This library is free software; you can redistribute it and/... | 26.715302 | 91 | 0.691088 | copasi |
e99992d4399dec01b531f4f57c1d46846f3305a6 | 401 | hpp | C++ | src/supermarx/data/karluser.hpp | Supermarx/common | bb1aaaef4486d6c1089193824fde4533de150b4d | [
"MIT"
] | null | null | null | src/supermarx/data/karluser.hpp | Supermarx/common | bb1aaaef4486d6c1089193824fde4533de150b4d | [
"MIT"
] | null | null | null | src/supermarx/data/karluser.hpp | Supermarx/common | bb1aaaef4486d6c1089193824fde4533de150b4d | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <supermarx/token.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
namespace supermarx
{
namespace data
{
struct karluser
{
std::string name;
token password_salt;
token password_hashed;
};
}
}
BOOST_FUSION_ADAPT_STRUCT(
supermarx::data::karluser,
(std::string, n... | 13.366667 | 48 | 0.743142 | Supermarx |
e999dfe4c99873548ae45fe6a597d0375102cb71 | 252 | cpp | C++ | Maths/7_lcm.cpp | Simran2000-jpg/CPP-Programming | cad4f362252f8bde4afadf455ddd67a85aa70dba | [
"MIT"
] | 30 | 2020-09-30T19:16:04.000Z | 2022-02-20T14:28:13.000Z | Maths/7_lcm.cpp | Simran2000-jpg/CPP-Programming | cad4f362252f8bde4afadf455ddd67a85aa70dba | [
"MIT"
] | 168 | 2020-09-30T19:52:42.000Z | 2021-10-22T03:55:57.000Z | Maths/7_lcm.cpp | Simran2000-jpg/CPP-Programming | cad4f362252f8bde4afadf455ddd67a85aa70dba | [
"MIT"
] | 123 | 2020-09-30T19:16:12.000Z | 2021-11-12T18:49:18.000Z | // LCM of two numbers a and b is equal to (a*b)/gcd(a,b);
#include <iostream>
#include <algorithm>
using namespace std;
int lcm(int a, int b){
return a * b/(__gcd(a,b));
}
int main(){
int a,b;
cin>>a>>b;
cout<<lcm(a,b)<<endl;
} | 14.823529 | 57 | 0.56746 | Simran2000-jpg |
e99fdfc22ec9dff53c79b8ec87e1d3dd07c00867 | 2,799 | cxx | C++ | source/code/core/tasks/private/task_thread_pool_win32.cxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 39 | 2019-08-17T09:08:51.000Z | 2022-02-13T10:14:19.000Z | source/code/core/tasks/private/task_thread_pool_win32.cxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 63 | 2020-05-22T16:09:30.000Z | 2022-01-21T14:24:05.000Z | source/code/core/tasks/private/task_thread_pool_win32.cxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | null | null | null | #include <ice/task_thread_pool.hxx>
#include <ice/os/windows.hxx>
#if ISP_WINDOWS
namespace ice
{
namespace detail
{
void threadpool_coroutine_work_callback(
PTP_CALLBACK_INSTANCE instance,
PVOID context,
PTP_WORK work
) noexcept
{
ice:... | 31.806818 | 134 | 0.642372 | iceshard-engine |
e9a0d3bba2720cb3bc93ac1ad81121afb5dc90bd | 1,518 | cpp | C++ | Algorithm/Problem48/main.cpp | et16kr/ModernCppChallengeStudy | 089cbfa2ef43f81001c986b569c4122793fcd268 | [
"MIT"
] | null | null | null | Algorithm/Problem48/main.cpp | et16kr/ModernCppChallengeStudy | 089cbfa2ef43f81001c986b569c4122793fcd268 | [
"MIT"
] | null | null | null | Algorithm/Problem48/main.cpp | et16kr/ModernCppChallengeStudy | 089cbfa2ef43f81001c986b569c4122793fcd268 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
void quickSort( int arr[], int left, int right )
{
int i = left, j = right;
int pivot = arr[(left + right) / 2];
int temp;
do
{
while (arr[i] < pivot)
i++;
while (arr[j] > pivot)
j--;
... | 18.071429 | 77 | 0.387352 | et16kr |
e9a4cb96c8f548432507409740524c201692143a | 3,144 | hpp | C++ | src/pca9685/pca9685.hpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | src/pca9685/pca9685.hpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | src/pca9685/pca9685.hpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | #ifndef __PCA9685_H_
#define __PCA9685_H_
#include "../exception/baseexceptions.hpp"
#include "../thread/thread.hpp"
#include <stdint.h>
/*! \file MCP23017 interface functions. Header file.
*/
/************************************
* *
* MAIN CLASS *
* ... | 28.071429 | 95 | 0.619275 | daniel-blake |
e9a7d2df484de4d8079fc656362f8832b5e21645 | 5,432 | cpp | C++ | SDK/ARKSurvivalEvolved_ProjSpaceDolphinChargedLaser0_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjSpaceDolphinChargedLaser0_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjSpaceDolphinChargedLaser0_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjSpaceDolphinChargedLaser0_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------------... | 30.516854 | 170 | 0.761782 | 2bite |
e9b32308ae95f3d9ac19aa2790083d365d7dd523 | 2,114 | cpp | C++ | app-assist-efl/base/src/WServiceApp.cpp | Samsung/tizen-app-assist | 8ea75cd9bc7161b137af71be657d1c1ac76bf083 | [
"Apache-2.0"
] | 13 | 2016-12-13T23:10:44.000Z | 2019-10-03T21:45:35.000Z | app-assist-efl/base/src/WServiceApp.cpp | Samsung/tizen-app-assist | 8ea75cd9bc7161b137af71be657d1c1ac76bf083 | [
"Apache-2.0"
] | 2 | 2017-05-25T11:42:36.000Z | 2018-06-14T05:50:18.000Z | app-assist-efl/base/src/WServiceApp.cpp | Samsung/tizen-app-assist | 8ea75cd9bc7161b137af71be657d1c1ac76bf083 | [
"Apache-2.0"
] | 8 | 2016-08-20T12:44:04.000Z | 2020-01-20T19:03:17.000Z | /*
* Copyright (c) 2014-2016 Samsung Electronics Co., Ltd. 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
*
* Unl... | 22.731183 | 77 | 0.734153 | Samsung |
e9baff43b229dcc8683620a787ec5dd30b5cec20 | 5,101 | hpp | C++ | include/seqan3/alignment/pairwise/align_pairwise.hpp | FirstLoveLife/seqan3 | ac2e983e0a576515c13ebb2c851c43c1eba1ece1 | [
"BSD-3-Clause"
] | null | null | null | include/seqan3/alignment/pairwise/align_pairwise.hpp | FirstLoveLife/seqan3 | ac2e983e0a576515c13ebb2c851c43c1eba1ece1 | [
"BSD-3-Clause"
] | null | null | null | include/seqan3/alignment/pairwise/align_pairwise.hpp | FirstLoveLife/seqan3 | ac2e983e0a576515c13ebb2c851c43c1eba1ece1 | [
"BSD-3-Clause"
] | null | null | null | // ============================================================================
// SeqAn - The Library for Sequence Analysis
// ============================================================================
//
// Copyright (c) 2006-2018, Knut Reinert & Freie Universitaet Berlin
// Copyright (c) 2016-2018,... | 44.356522 | 117 | 0.685356 | FirstLoveLife |
e9be7fc767e8537d66c0aa0b4fc2a22efeb9ad38 | 2,911 | hpp | C++ | src/cpu/cpu.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | src/cpu/cpu.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | src/cpu/cpu.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | #pragma once
#include <kstd/types.hpp>
#include <panic.hpp>
namespace cpu {
static inline void cli() {
asm volatile("cli");
}
static inline void sti() {
asm volatile("sti");
}
static inline void cpuid(u32 leaf, u32 subleaf, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) {
asm vo... | 26.463636 | 111 | 0.512195 | Tunacan427 |
e9bec75635144916bf45b1af8a1e92da21459531 | 3,891 | cc | C++ | Calibration/EcalCalibAlgos/src/miscalibExample.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/EcalCalibAlgos/src/miscalibExample.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/EcalCalibAlgos/src/miscalibExample.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // -*- C++ -*-
//
// Package: miscalibExample
// Class: miscalibExample
//
/**\class miscalibExample miscalibExample.cc Calibration/EcalCalibAlgos/src/miscalibExample.cc
Description: Perform single electron calibration (tested on TB data only).
Implementation:
<Notes on implementation>
*/
//
// Origina... | 32.425 | 118 | 0.61578 | ckamtsikis |
e9bfe0e1cdcc67bd5f54185f2f9641299ab6d5ed | 3,424 | cpp | C++ | buildexe/src/toolchain_setup.cpp | coder137/build_in_cpp | 296b0312eb0f4773fb2d40b01ed302f74f26f7a8 | [
"Apache-2.0"
] | 48 | 2021-06-15T08:34:42.000Z | 2022-03-24T20:35:54.000Z | buildexe/src/toolchain_setup.cpp | coder137/build_in_cpp | 296b0312eb0f4773fb2d40b01ed302f74f26f7a8 | [
"Apache-2.0"
] | 100 | 2021-06-14T00:21:49.000Z | 2022-03-29T03:59:42.000Z | buildexe/src/toolchain_setup.cpp | coder137/build_in_cpp | 296b0312eb0f4773fb2d40b01ed302f74f26f7a8 | [
"Apache-2.0"
] | 1 | 2021-06-17T01:03:36.000Z | 2021-06-17T01:03:36.000Z | /*
* Copyright 2021-2022 Niket Naidu. 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 a... | 32.609524 | 80 | 0.658294 | coder137 |
e9c44d780609a6b5ea7a921e72bf1d3dab9d2620 | 5,333 | cc | C++ | src/AMOS/msgtest.cc | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 10 | 2015-03-20T18:25:56.000Z | 2020-06-02T22:00:08.000Z | src/AMOS/msgtest.cc | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 5 | 2015-05-14T17:51:20.000Z | 2020-07-19T04:17:47.000Z | src/AMOS/msgtest.cc | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 10 | 2015-05-17T16:01:23.000Z | 2020-05-20T08:13:43.000Z | #include "foundation_AMOS.hh"
#include <fstream>
#include <ctime>
using namespace std;
using namespace AMOS;
#define ITERS 500000
int main (int argc, char ** argv)
{
Message_t msg;
Read_t red;
Contig_t ctg;
double loopa = 0;
double loopb = 0;
clock_t clocka, clockb;
vector<Tile_t> tlevec;
Tile_t tle... | 59.921348 | 845 | 0.824864 | sagrudd |
e9c5d6019ab160363cb2b39eff1dc70a39db1525 | 1,078 | hpp | C++ | bnl/base/include/bnl/http3/event.hpp | DaanDeMeyer/h3c | 5fe5705afeebda94eb2fc8483dac6846b2deb85f | [
"MIT"
] | 4 | 2019-07-29T07:54:20.000Z | 2020-05-14T10:12:59.000Z | bnl/base/include/bnl/http3/event.hpp | DaanDeMeyer/h3c | 5fe5705afeebda94eb2fc8483dac6846b2deb85f | [
"MIT"
] | null | null | null | bnl/base/include/bnl/http3/event.hpp | DaanDeMeyer/h3c | 5fe5705afeebda94eb2fc8483dac6846b2deb85f | [
"MIT"
] | 1 | 2020-05-14T10:12:58.000Z | 2020-05-14T10:12:58.000Z | #pragma once
#include <bnl/base/buffer.hpp>
#include <bnl/base/export.hpp>
#include <bnl/http3/header.hpp>
#include <bnl/http3/settings.hpp>
#include <bnl/quic/event.hpp>
namespace bnl {
namespace http3 {
class BNL_BASE_EXPORT event {
public:
enum class type { settings, header, body, finished };
struct payload ... | 18.586207 | 55 | 0.657699 | DaanDeMeyer |
8397256bd2d0a925f0e6c1a29152e1582cd95868 | 761 | cpp | C++ | stacks/Recursion/Factorial1.cpp | InamulRehman/DataStructures_and_Algorithms_Cplusplus | 7fb5ca3e9313ef302c7ce9bac3bb9ec9016ab906 | [
"MIT"
] | null | null | null | stacks/Recursion/Factorial1.cpp | InamulRehman/DataStructures_and_Algorithms_Cplusplus | 7fb5ca3e9313ef302c7ce9bac3bb9ec9016ab906 | [
"MIT"
] | null | null | null | stacks/Recursion/Factorial1.cpp | InamulRehman/DataStructures_and_Algorithms_Cplusplus | 7fb5ca3e9313ef302c7ce9bac3bb9ec9016ab906 | [
"MIT"
] | null | null | null | // calculating factorial using loop
#include <iostream>
using namespace std;
class factorial
{
private:
int fac;
public:
// function to calculate factorial
int fact (int val)
{
fac = 1;
if (val == 0)
{
return fac;
}
... | 15.530612 | 59 | 0.412615 | InamulRehman |
8398274554f23e9cb7aa54ac70e963a4059f5510 | 1,620 | cpp | C++ | src/ThreadPool.cpp | CaptainUnitaco/Clustered-Deferred-shading-in-Vulkan | 08803777a20a010015958af8bd841147fc6b7fd6 | [
"MIT"
] | 3 | 2020-06-24T07:13:59.000Z | 2020-10-22T03:49:15.000Z | src/ThreadPool.cpp | CaptainUnitaco/Clustered-Deferred-shading-in-Vulkan | 08803777a20a010015958af8bd841147fc6b7fd6 | [
"MIT"
] | null | null | null | src/ThreadPool.cpp | CaptainUnitaco/Clustered-Deferred-shading-in-Vulkan | 08803777a20a010015958af8bd841147fc6b7fd6 | [
"MIT"
] | null | null | null | /**
* @file 'ThreadPool.cpp'
* @brief Implementation of thread pool design pattern
* @copyright The MIT license
* @author Matej Karas
*/
#include "ThreadPool.h"
Thread::Thread(size_t id)
: mID(id)
{
mThread = std::thread(&Thread::run, this);
}
Thread::~Thread()
{
mDestroy = true;
if (mThread.joinable())
{... | 17.802198 | 80 | 0.656173 | CaptainUnitaco |
839af6896db8dbaf433d9779630bd4ea41bf8a25 | 8,537 | cpp | C++ | src/apps/mediaplayer/interface/SubtitleBitmap.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/apps/mediaplayer/interface/SubtitleBitmap.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/apps/mediaplayer/interface/SubtitleBitmap.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2010, Stephan Aßmus <superstippi@gmx.de>.
* Distributed under the terms of the MIT License.
*/
#include "SubtitleBitmap.h"
#include <stdio.h>
#include <Bitmap.h>
#include <TextView.h>
#include "StackBlurFilter.h"
SubtitleBitmap::SubtitleBitmap()
:
fBitmap(NULL),
fTextView(new BTextView("offs... | 22.174026 | 74 | 0.699075 | Kirishikesan |
839c75e18a6aeab381fee29142df80c268967d3b | 4,977 | cpp | C++ | ID3v2/source/ID3v2-Version.cpp | macmade/ID3v2 | be8022a5ee94197a58710a55931aea7d89ae3f71 | [
"MIT"
] | 2 | 2018-12-15T22:30:58.000Z | 2019-11-24T21:25:02.000Z | ID3v2/source/ID3v2-Version.cpp | macmade/ID3v2 | be8022a5ee94197a58710a55931aea7d89ae3f71 | [
"MIT"
] | null | null | null | ID3v2/source/ID3v2-Version.cpp | macmade/ID3v2 | be8022a5ee94197a58710a55931aea7d89ae3f71 | [
"MIT"
] | 1 | 2018-01-22T13:09:06.000Z | 2018-01-22T13:09:06.000Z | /*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2014 Jean-David Gadina - www.xs-labs.com / www.digidna.net
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation f... | 27.65 | 144 | 0.53486 | macmade |
839dfc1a40407c2bde02e2811a617d92b9282ae5 | 15,383 | cpp | C++ | modules/core/jobsystem/jobsystem.cpp | maoxiezhao/Vulkan-Test | 620f3aa420e7995c3428ed2856896a9e5f5c8b5a | [
"MIT"
] | 3 | 2022-03-02T08:55:54.000Z | 2022-03-23T05:56:43.000Z | modules/core/jobsystem/jobsystem.cpp | maoxiezhao/Vulkan-Test | 620f3aa420e7995c3428ed2856896a9e5f5c8b5a | [
"MIT"
] | null | null | null | modules/core/jobsystem/jobsystem.cpp | maoxiezhao/Vulkan-Test | 620f3aa420e7995c3428ed2856896a9e5f5c8b5a | [
"MIT"
] | null | null | null | #include "jobsystem.h"
#include "core\memory\memory.h"
#include "core\platform\fiber.h"
#include "core\platform\platform.h"
#include "core\platform\sync.h"
#include "core\platform\atomic.h"
#pragma warning( push )
#pragma warning (disable : 6385)
namespace VulkanTest
{
namespace Jobsystem
{
//////////////////////... | 28.861163 | 119 | 0.533251 | maoxiezhao |
83a08cbb6a38c6b2cfbb6753f79b8600bc12c77e | 1,737 | cpp | C++ | src/Receiver.cpp | NassimEzz/Projet_2A_SeriousGameAlgorithme | 588eda6049d732f5908e2c0876b7363c9ff1fee3 | [
"Unlicense",
"MIT"
] | null | null | null | src/Receiver.cpp | NassimEzz/Projet_2A_SeriousGameAlgorithme | 588eda6049d732f5908e2c0876b7363c9ff1fee3 | [
"Unlicense",
"MIT"
] | null | null | null | src/Receiver.cpp | NassimEzz/Projet_2A_SeriousGameAlgorithme | 588eda6049d732f5908e2c0876b7363c9ff1fee3 | [
"Unlicense",
"MIT"
] | null | null | null | #include "Receiver.h"
#include "Utils.h"
Receiver::Receiver(const Point &position, const PictureInformer &emptyReceiverInformer,
const std::string &wrongAnswerPicture, const std::string &lockedReceiverPicture) {
_emptyReceiverPicture = emptyReceiverInformer.picturePath;
_wrongAnswerPicture =... | 33.403846 | 120 | 0.699482 | NassimEzz |
83a3c20c09aff9310973b4abefa826acbbe78412 | 3,994 | cpp | C++ | test/integration/ttl.cpp | sptrakesh/config-db | 583ef3a3b636b2d56283194ff2b183bac2a36f21 | [
"Apache-2.0"
] | null | null | null | test/integration/ttl.cpp | sptrakesh/config-db | 583ef3a3b636b2d56283194ff2b183bac2a36f21 | [
"Apache-2.0"
] | null | null | null | test/integration/ttl.cpp | sptrakesh/config-db | 583ef3a3b636b2d56283194ff2b183bac2a36f21 | [
"Apache-2.0"
] | null | null | null | //
// Created by Rakesh on 11/01/2022.
//
#include <catch2/catch.hpp>
#include <iostream>
#include <thread>
#include "../../src/api/api.h"
using namespace spt::configdb::api;
using namespace spt::configdb::model;
using namespace std::string_literals;
using namespace std::string_view_literals;
SCENARIO( "TTL test", ... | 28.942029 | 85 | 0.554331 | sptrakesh |
83a6351c3132b0ff81025ea256c6c9c2b8150f9c | 1,306 | hpp | C++ | bench/tests/std/file_exception.hpp | bureau14/qdb-benchmark | 1839d7ac04417de56b7a7fb2b7deff50756b3048 | [
"BSD-2-Clause"
] | 5 | 2017-01-19T09:35:40.000Z | 2021-02-26T07:31:38.000Z | bench/tests/std/file_exception.hpp | bureau14/qdb-benchmark | 1839d7ac04417de56b7a7fb2b7deff50756b3048 | [
"BSD-2-Clause"
] | 1 | 2015-11-09T15:38:28.000Z | 2015-11-12T11:14:58.000Z | bench/tests/std/file_exception.hpp | bureau14/qdb-benchmark | 1839d7ac04417de56b7a7fb2b7deff50756b3048 | [
"BSD-2-Clause"
] | 3 | 2015-11-02T09:37:09.000Z | 2017-05-05T06:38:49.000Z | #pragma once
#include <stdexcept>
#include <string>
namespace bench
{
namespace tests
{
namespace std_
{
class file_exception : public std::exception
{
public:
file_exception(const std::string & action, const std::string & filename, int error)
{
_message = "Failed to " + action + " " + filename + " (... | 20.092308 | 111 | 0.678407 | bureau14 |
83a7b6bc8549888e1ab9a7ce2cf9981399d770cc | 811 | hpp | C++ | Include/PanelCandidate.hpp | Andres6936/QT-Elecciones-CPP | ab401c89d35d497fe4ba7d32aa086c8a25b66d48 | [
"Unlicense"
] | null | null | null | Include/PanelCandidate.hpp | Andres6936/QT-Elecciones-CPP | ab401c89d35d497fe4ba7d32aa086c8a25b66d48 | [
"Unlicense"
] | null | null | null | Include/PanelCandidate.hpp | Andres6936/QT-Elecciones-CPP | ab401c89d35d497fe4ba7d32aa086c8a25b66d48 | [
"Unlicense"
] | null | null | null | #ifndef PANELCANDIDATE_HPP
#define PANELCANDIDATE_HPP
#include <QtWidgets/QFrame>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QVBoxLayout>
#include "Candidate.h"
class PanelCandidate : public QFrame
{
Q_OBJECT
private:
Candidate *candidate;
QVBoxLayout *layout;
... | 15.018519 | 60 | 0.729963 | Andres6936 |
83ade35d7e1ab4bb53e7f0f0b5dfe46bb771a59d | 7,965 | cpp | C++ | repos/plywood/src/reflect/ply-reflect/PersistReadSchema.cpp | boldsort/plywood | ab85a187e9e9d42d55cd3bd24be000898fd50234 | [
"MIT"
] | 742 | 2020-05-26T12:34:24.000Z | 2022-03-14T07:22:36.000Z | repos/plywood/src/reflect/ply-reflect/PersistReadSchema.cpp | boldsort/plywood | ab85a187e9e9d42d55cd3bd24be000898fd50234 | [
"MIT"
] | 18 | 2020-05-27T20:29:15.000Z | 2022-01-17T00:19:45.000Z | repos/plywood/src/reflect/ply-reflect/PersistReadSchema.cpp | boldsort/plywood | ab85a187e9e9d42d55cd3bd24be000898fd50234 | [
"MIT"
] | 51 | 2020-05-26T15:30:00.000Z | 2021-12-15T01:02:25.000Z | /*------------------------------------
///\ Plywood C++ Framework
\\\/ https://plywood.arc80.com/
------------------------------------*/
#include <ply-reflect/Core.h>
#include <ply-reflect/PersistRead.h>
#include <ply-reflect/FormatDescriptor.h>
#include <ply-runtime/container/Boxed.h>
namespace ply {
struct Bu... | 47.130178 | 97 | 0.580917 | boldsort |
83b2054ffda44c4fe78d01b862a24bde1ec71f02 | 3,821 | cpp | C++ | source/ContratException.cpp | fantome3/test1 | 6b28cbbe87110baa68ef22ed7aeba13f538fcaef | [
"MIT"
] | null | null | null | source/ContratException.cpp | fantome3/test1 | 6b28cbbe87110baa68ef22ed7aeba13f538fcaef | [
"MIT"
] | null | null | null | source/ContratException.cpp | fantome3/test1 | 6b28cbbe87110baa68ef22ed7aeba13f538fcaef | [
"MIT"
] | null | null | null | /**
* \file ContratException.cpp
* \brief Implantation de la classe ContratException et de ses héritiers
* \author administrateur
* \date 16 janvier 2014
* \version révisée balises Doxygen C++ normes H2014
*/
#include "ContratException.h"
#include <sstream>
using namespace std;
/**
* \brief Constructeur de la c... | 41.086022 | 110 | 0.751636 | fantome3 |
83b2ab4de7b7d92fb74840afe2843d4df7585395 | 290 | cpp | C++ | 2000/60/2066.cpp | actium/timus | 6231d9e7fd325cae36daf5ee2ec7e61381f04003 | [
"Unlicense"
] | null | null | null | 2000/60/2066.cpp | actium/timus | 6231d9e7fd325cae36daf5ee2ec7e61381f04003 | [
"Unlicense"
] | null | null | null | 2000/60/2066.cpp | actium/timus | 6231d9e7fd325cae36daf5ee2ec7e61381f04003 | [
"Unlicense"
] | null | null | null | #include <algorithm>
#include <iostream>
int main()
{
int a, b, c;
std::cin >> a >> b >> c;
if (a > b) std::swap(a, b);
if (b > c) std::swap(b, c);
if (a > b) std::swap(a, b);
std::cout << std::min({ a*b*c, a+b*c, a-b*c, a+b+c, a-b-c }) << '\n';
return 0;
}
| 17.058824 | 73 | 0.441379 | actium |
83b6121603228e73887b4e38f9a403ee6c35057c | 635 | cpp | C++ | books/tech/cpp/std-11/b_sutherland-cpp_recipes/ch_08-the_stl_algorithms/recipe_8.3-finding_the_maximum_and_minimum_values/02-using_the_min_element_with_a_user-defined_class/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/__intermediate/cpp_recipes_a_problem_solution_approach_b_shutherland/code/ch_8-THE_STL_ALGORITHMS/recipe_8.3-finding_the_maximum_and_minimum_values/02-using_the_min_element_with_a_user-defined_class/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/__intermediate/cpp_recipes_a_problem_solution_approach_b_shutherland/code/ch_8-THE_STL_ALGORITHMS/recipe_8.3-finding_the_maximum_and_minimum_values/02-using_the_min_element_with_a_user-defined_class/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
class MyClass {
public:
MyClass(const int value) : m_Value{ value } { }
int GetValue() const { return m_Value; }
bool operator <(const MyClass& other) const {
return m_Value < other.m_Value;
}
private:
... | 21.166667 | 70 | 0.555906 | ordinary-developer |
83b73441173877043778c6261001f3c77b71ed1a | 254 | cpp | C++ | Dataset/Leetcode/train/53/51.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/53/51.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/53/51.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(vector<int>& nums) {
int n = nums.size();
for(int i = 1; i < n; i++){
if(nums[i - 1] > 0) nums[i] += nums[i - 1];
}
return *max_element(nums.begin(), nums.end());
}
};
| 21.166667 | 55 | 0.448819 | kkcookies99 |
83b8f3a485f00073195f9764c1e4982926097be8 | 2,992 | hpp | C++ | rap_kvv.hpp | linkdata/crap | 1062cc4b42ae2a3dc4e7d61c19f2102f1557e180 | [
"MIT"
] | null | null | null | rap_kvv.hpp | linkdata/crap | 1062cc4b42ae2a3dc4e7d61c19f2102f1557e180 | [
"MIT"
] | null | null | null | rap_kvv.hpp | linkdata/crap | 1062cc4b42ae2a3dc4e7d61c19f2102f1557e180 | [
"MIT"
] | null | null | null | #ifndef RAP_KVV_HPP
#define RAP_KVV_HPP
#include "rap.hpp"
#include "rap_frame.h"
#include "rap_reader.hpp"
#include "rap_text.hpp"
#include "rap_writer.hpp"
#include <cassert>
#include <cstdint>
#include <string>
#include <vector>
namespace rap {
class kvv {
public:
kvv() {}
kvv(const kvv& other)
... | 20.353741 | 61 | 0.389372 | linkdata |
83b905ae548cea507540063f5574333cca9bc799 | 909 | cpp | C++ | IssueTest/test.cpp | vvck/QXlsx | 281fcb41ec186167ee3bbbe57572746f3c9c09be | [
"MIT"
] | 547 | 2019-01-14T18:38:08.000Z | 2022-03-31T07:30:00.000Z | IssueTest/test.cpp | vvck/QXlsx | 281fcb41ec186167ee3bbbe57572746f3c9c09be | [
"MIT"
] | 136 | 2019-01-07T05:44:21.000Z | 2022-03-29T08:41:18.000Z | IssueTest/test.cpp | vvck/QXlsx | 281fcb41ec186167ee3bbbe57572746f3c9c09be | [
"MIT"
] | 201 | 2019-03-02T09:59:02.000Z | 2022-03-25T17:43:13.000Z | // test.cpp
#include <QtGlobal>
#include <QCoreApplication>
#include <QtCore>
#include <QVector>
#include <QVariant>
#include <QDebug>
#include <QDir>
#include <QColor>
#include <QImage>
#include <QRgb>
#include <QRandomGenerator>
#include <iostream>
using namespace std;
#include "xlsxdocument.h"
#include "xlsxchar... | 18.55102 | 65 | 0.678768 | vvck |
83b9107f67fe4998cb60ce665677862afc9de7cb | 1,943 | cpp | C++ | vision/src/detect/motion_simple.cpp | robotalks/analytics | fede843601cba39370e77804a78bb704b32414f1 | [
"MIT"
] | null | null | null | vision/src/detect/motion_simple.cpp | robotalks/analytics | fede843601cba39370e77804a78bb704b32414f1 | [
"MIT"
] | null | null | null | vision/src/detect/motion_simple.cpp | robotalks/analytics | fede843601cba39370e77804a78bb704b32414f1 | [
"MIT"
] | null | null | null | #include <vector>
#include "vision/detect/motion.h"
namespace vision {
using namespace std;
using namespace cv;
SimpleMotionDetector::SimpleMotionDetector(const Size &blurSize, double areaMin, double threshold)
: m_blurSize(blurSize), m_areaMin(areaMin), m_threshold(threshold) {
}
void SimpleMotionDetector::detect... | 29.439394 | 98 | 0.630468 | robotalks |
83be419f9aceb2831ae6e5dc1ea825a8b084692b | 888 | hh | C++ | advent/utils/timer.hh | tamaroth/AdventOfCode2017 | 0c0f93590068b6b8fa6ed7f5d53c9fecede632bb | [
"MIT"
] | 2 | 2017-12-01T09:18:03.000Z | 2017-12-13T12:59:40.000Z | advent/utils/timer.hh | tamaroth/AdventOfCode2017 | 0c0f93590068b6b8fa6ed7f5d53c9fecede632bb | [
"MIT"
] | null | null | null | advent/utils/timer.hh | tamaroth/AdventOfCode2017 | 0c0f93590068b6b8fa6ed7f5d53c9fecede632bb | [
"MIT"
] | null | null | null | /// @file
///
/// Time measuring.
///
#pragma once
#include <chrono>
#include <iostream>
#include <string>
#include <sstream>
namespace advent {
using ms = std::chrono::milliseconds;
using us = std::chrono::microseconds;
template<typename Timepoint>
std::string duration_to_string(Timepoint start, Timepoint end) {
... | 23.368421 | 85 | 0.682432 | tamaroth |
83c9c10687defc7f9fb38ed9fa2dfd64d7f2cfda | 732 | cxx | C++ | test/cmp.cxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | 1 | 2019-06-17T21:56:31.000Z | 2019-06-17T21:56:31.000Z | test/cmp.cxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | test/cmp.cxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | /** \file
\brief floating point comparison implementation.
\authors Serge Monkewitz
\copyright IPAC/Caltech
*/
#include "cmp.h"
#include <float.h>
#ifdef __cplusplus
extern "C" {
#endif
static double safe_div(double n, double d)
{
if (d < 1.0 && n > d * DBL_MAX) {
return DBL_MAX;... | 18.3 | 57 | 0.575137 | Caltech-IPAC |
83caaaa81636c1efbbdb0c8fdaa3d6b9e215e601 | 14,599 | cpp | C++ | VarCalc/GdaParser.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | VarCalc/GdaParser.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | VarCalc/GdaParser.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | /**
* GeoDa TM, Copyright (C) 2011-2015 by Luc Anselin - all rights reserved
*
* This file is part of GeoDa.
*
* GeoDa 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 License, o... | 27.545283 | 73 | 0.635728 | chenyoujie |
83cb0529ee57a1d92b412f121439c8fe82250b6f | 52,728 | cc | C++ | ge/single_op/task/op_task.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 207 | 2020-03-28T02:12:50.000Z | 2021-11-23T18:27:45.000Z | ge/single_op/task/op_task.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 4 | 2020-04-17T07:32:44.000Z | 2021-06-26T04:55:03.000Z | ge/single_op/task/op_task.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 13 | 2020-03-28T02:52:26.000Z | 2021-07-03T23:12:54.000Z | /**
* Copyright 2019-2020 Huawei Technologies 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 applicabl... | 42.317817 | 124 | 0.700311 | mindspore-ai |
83cddb5172e0b6e734866af702d84efa2a26e143 | 10,804 | cpp | C++ | NVIDIA/benchmarks/transformer/implementations/pytorch/fairseq/data/csrc/make_batches_v0p6.cpp | mengkai94/training_results_v0.6 | 43dc3e250f8da47b5f8833197d74cb8cf1004fc9 | [
"Apache-2.0"
] | 42 | 2019-07-11T18:23:52.000Z | 2021-09-14T08:21:09.000Z | NVIDIA/benchmarks/transformer/implementations/pytorch/fairseq/data/csrc/make_batches_v0p6.cpp | mengkai94/training_results_v0.6 | 43dc3e250f8da47b5f8833197d74cb8cf1004fc9 | [
"Apache-2.0"
] | 23 | 2019-07-29T05:21:52.000Z | 2020-08-31T18:51:42.000Z | NVIDIA/benchmarks/transformer/implementations/pytorch/fairseq/data/csrc/make_batches_v0p6.cpp | mengkai94/training_results_v0.6 | 43dc3e250f8da47b5f8833197d74cb8cf1004fc9 | [
"Apache-2.0"
] | 51 | 2019-07-12T05:10:25.000Z | 2021-07-28T16:19:06.000Z | #include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
#include <torch/extension.h>
namespace at {
namespace native {
namespace {
int64_t roundup(int64_t x, int64_t multiple)
{
return (x + multiple - 1) / multiple * multiple;
} // roundup
int64_t rounddown(int64_t x, int64_t multip... | 31.776471 | 149 | 0.653277 | mengkai94 |
83d284ff83da1c52a3e20d49c50879f0340a3e11 | 192 | cpp | C++ | src/JSEUIMenuLeafImpl.cpp | imzcy/JavaScriptExecutable | 723a13f433aafad84faa609f62955ce826063c66 | [
"MIT"
] | 3 | 2015-03-18T03:12:27.000Z | 2020-11-19T10:40:12.000Z | src/JSEUIMenuLeafImpl.cpp | imzcy/JavaScriptExecutable | 723a13f433aafad84faa609f62955ce826063c66 | [
"MIT"
] | null | null | null | src/JSEUIMenuLeafImpl.cpp | imzcy/JavaScriptExecutable | 723a13f433aafad84faa609f62955ce826063c66 | [
"MIT"
] | null | null | null | #include "JSEUIMenuLeafImpl.h"
namespace JSE { namespace UI {
JSEUIMenuLeafImpl::JSEUIMenuLeafImpl(QWidget *parent)
: QAction(parent)
{
}
JSEUIMenuLeafImpl::~JSEUIMenuLeafImpl()
{}
}} | 13.714286 | 53 | 0.739583 | imzcy |
83d4bd29208359d57a0680654dc43ad268cfb655 | 1,936 | hpp | C++ | game_files/game_order/game_order.hpp | sakumo7/zpr | 7b9cdbec1ff8d8179a96bb6e1e88f54ee84d138e | [
"MIT"
] | null | null | null | game_files/game_order/game_order.hpp | sakumo7/zpr | 7b9cdbec1ff8d8179a96bb6e1e88f54ee84d138e | [
"MIT"
] | null | null | null | game_files/game_order/game_order.hpp | sakumo7/zpr | 7b9cdbec1ff8d8179a96bb6e1e88f54ee84d138e | [
"MIT"
] | null | null | null | #ifndef GAME_ORDER_HPP
#define GAME_ORDER_HPP
#include "../typedefs.hpp"
#include <vector>
#include <memory>
#include "../game_engine/game_engine.hpp"
typedef std::unique_ptr<std::vector<unsigned int>> ship_vector_uptr;
class GameOrder{
public:
virtual std::string toString() const=0;
virtual int type() const = ... | 31.225806 | 146 | 0.75 | sakumo7 |
83d987d24bfb176ca10c8132e11da65f1009d534 | 2,715 | cpp | C++ | session-manager/common/call/CallInGetUserSession.cpp | Syamsuri227/FreeRDS | 933f43a9f2dfd254d825e6687c8ca536ec2bf569 | [
"Apache-2.0"
] | 14 | 2015-02-17T15:43:46.000Z | 2022-02-17T07:11:46.000Z | session-manager/common/call/CallInGetUserSession.cpp | Syamsuri227/FreeRDS | 933f43a9f2dfd254d825e6687c8ca536ec2bf569 | [
"Apache-2.0"
] | 4 | 2015-03-22T10:26:38.000Z | 2020-07-07T13:35:56.000Z | session-manager/common/call/CallInGetUserSession.cpp | Syamsuri227/FreeRDS | 933f43a9f2dfd254d825e6687c8ca536ec2bf569 | [
"Apache-2.0"
] | 58 | 2015-04-08T02:24:17.000Z | 2022-03-29T15:59:15.000Z | /**
* Class for rpc call GetUserSession (freerds to session manager)
*
* Copyright 2013 Thinstuff Technologies GmbH
* Copyright 2013 DI (FH) Martin Haimberger <martin.haimberger@thinstuff.at>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | 24.908257 | 88 | 0.710497 | Syamsuri227 |
83dbec132ac763ab5b591eecaf876cad502393b0 | 2,108 | cpp | C++ | MemSpy/MemSpy/Sources/CommandLine.cpp | piskunovdenis/MemSpy | 84c4994a5c3a0f7a9379f64609a6eff4a3d7985f | [
"MIT"
] | null | null | null | MemSpy/MemSpy/Sources/CommandLine.cpp | piskunovdenis/MemSpy | 84c4994a5c3a0f7a9379f64609a6eff4a3d7985f | [
"MIT"
] | null | null | null | MemSpy/MemSpy/Sources/CommandLine.cpp | piskunovdenis/MemSpy | 84c4994a5c3a0f7a9379f64609a6eff4a3d7985f | [
"MIT"
] | null | null | null | #include <algorithm>
#include <windows.h>
#include <stdexcept>
#include "CommandLine.hpp"
#include "WideString.hpp"
namespace memspy
{
const std::vector<wchar_t> CommandLine::kParamSeparators = { L'-', L'/' };
const std::vector<wchar_t> CommandLine::kNameValueSeparators = { L':', L'=' };
CommandLine::CommandLine... | 23.685393 | 115 | 0.666034 | piskunovdenis |
83dc85e75596c3bcee21afa8ca606de437c7467a | 4,045 | cpp | C++ | src/blocksigner.cpp | jazy510/XSN | 6ea74506573c6253c2ce933aafce9ad8b2d95659 | [
"MIT"
] | 1 | 2021-04-04T20:38:41.000Z | 2021-04-04T20:38:41.000Z | src/blocksigner.cpp | jazy510/XSN | 6ea74506573c6253c2ce933aafce9ad8b2d95659 | [
"MIT"
] | null | null | null | src/blocksigner.cpp | jazy510/XSN | 6ea74506573c6253c2ce933aafce9ad8b2d95659 | [
"MIT"
] | null | null | null | #include "blocksigner.h"
#include "tpos/tposutils.h"
#include "tpos/activemerchantnode.h"
#include "keystore.h"
#include "primitives/block.h"
#include "utilstrencodings.h"
CBlockSigner::CBlockSigner(CBlock &block, const CKeyStore &keystore, const TPoSContract &contract) :
refBlock(block),
refKeystore(keystore)... | 27.705479 | 131 | 0.595797 | jazy510 |
83e058a2001fcf61af5b1aa8f04a126b1cb30ba7 | 459 | hpp | C++ | include/rive/constraints/targeted_constraint.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 139 | 2020-08-17T20:10:24.000Z | 2022-03-28T12:22:44.000Z | include/rive/constraints/targeted_constraint.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 89 | 2020-08-28T16:41:01.000Z | 2022-03-28T19:10:49.000Z | include/rive/constraints/targeted_constraint.hpp | kariem2k/rive-cpp | f58c3b3d48ea03947a76971bce17e7f567cf0de0 | [
"MIT"
] | 19 | 2020-10-19T00:54:40.000Z | 2022-02-28T05:34:17.000Z | #ifndef _RIVE_TARGETED_CONSTRAINT_HPP_
#define _RIVE_TARGETED_CONSTRAINT_HPP_
#include "rive/generated/constraints/targeted_constraint_base.hpp"
#include <stdio.h>
namespace rive
{
class TransformComponent;
class TargetedConstraint : public TargetedConstraintBase
{
protected:
TransformComponent* m_Target = nullpt... | 24.157895 | 66 | 0.812636 | kariem2k |
83e0eb15225bda6935122b0f804610d14d20a668 | 3,597 | cpp | C++ | src/material/deferredMaterial.cpp | mfirmin/audio-demo | 767e2fc1b7afb53cd5aafad90ae562661a154373 | [
"MIT"
] | 1 | 2021-09-13T20:22:29.000Z | 2021-09-13T20:22:29.000Z | src/material/deferredMaterial.cpp | mfirmin/audio-demo | 767e2fc1b7afb53cd5aafad90ae562661a154373 | [
"MIT"
] | null | null | null | src/material/deferredMaterial.cpp | mfirmin/audio-demo | 767e2fc1b7afb53cd5aafad90ae562661a154373 | [
"MIT"
] | 1 | 2021-09-13T20:22:31.000Z | 2021-09-13T20:22:31.000Z | #include "deferredMaterial.hpp"
#include "gl/shaderUtils.hpp"
#include "light/light.hpp"
#include <GL/glew.h>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <string>
#include <sstream>
DeferredMaterial::DeferredMaterial(glm::vec3 color, float specularCoefficient, float shininess) : Material(color, sp... | 33 | 147 | 0.666389 | mfirmin |
83e104455c56eff23af6d81cacb374c026a45e40 | 29,189 | cpp | C++ | src/app/qgsbookmarks.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/app/qgsbookmarks.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/app/qgsbookmarks.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
QgsBookmarks.cpp - Spatial Bookmarks
-------------------
begin : 2005-04-23
copyright : (C) 2005 Gary Sherman
email : sherman at mrcc dot com
**... | 34.790226 | 205 | 0.652232 | dyna-mis |
83e893e9f021dbd7327ca9ac7bed37ba91434a57 | 7,862 | cpp | C++ | kbar.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kbar.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kbar.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | 1 | 2021-08-20T16:15:01.000Z | 2021-08-20T16:15:01.000Z | //
// DEKAF(tm): Lighter, Faster, Smarter(tm)
//
// Copyright (c) 2000-2003, Ridgeware, Inc.
//
// +-------------------------------------------------------------------------+
// | /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
// |/+------------------------------------------------------------... | 28.078571 | 146 | 0.407148 | ridgeware |
83e9e5ea9685835e4e4eda625d867263e125b035 | 7,332 | cpp | C++ | src/libraries/core/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/meshTools/coordinateSystems/coordinateRotation/localAxesRotation.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... | 20.653521 | 79 | 0.570104 | MrAwesomeRocks |
83ea2428af336f95fb2326f096ec03a630611643 | 5,743 | cpp | C++ | src/programs/advection.cpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/programs/advection.cpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/programs/advection.cpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | 1 | 2019-03-27T01:17:59.000Z | 2019-03-27T01:17:59.000Z |
#include <sweet/DataArray.hpp>
#if SWEET_GUI
#include "sweet/VisSweet.hpp"
#endif
#include <sweet/SimulationVariables.hpp>
#include "sweet/Operators2D.hpp"
#include <unistd.h>
#include <stdio.h>
SimulationVariables simVars;
class SimulationSWE
{
public:
DataArray<2> h;
DataArray<2> u;
DataArray<2> v;
DataArra... | 19.940972 | 143 | 0.640432 | pedrospeixoto |
83ec4d6f63c2476238bc4eb8701c2d307a2ee4c5 | 46,974 | cpp | C++ | DESIRE-Modules/Script-AngelScript/src/API/CoreAPI_Math_AngelScript.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2020-10-04T18:50:01.000Z | 2020-10-04T18:50:01.000Z | DESIRE-Modules/Script-AngelScript/src/API/CoreAPI_Math_AngelScript.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | null | null | null | DESIRE-Modules/Script-AngelScript/src/API/CoreAPI_Math_AngelScript.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2018-09-18T08:03:33.000Z | 2018-09-18T08:03:33.000Z | #include "stdafx_AngelScript.h"
#include "API/AngelScriptAPI.h"
#include "Engine/Core/Math/Math.h"
#include "Engine/Core/Math/Matrix4.h"
#include "Engine/Core/Math/Rand.h"
#include "Engine/Core/Math/Transform.h"
static Vector3* Vector3_Cross(const Vector3& vec0, const Vector3& vec1) { return new Vector3(vec0.Cross(ve... | 163.672474 | 323 | 0.691404 | nyaki-HUN |