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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08e03811b4b6fef2210c8cbc0245664a09e52dcc | 1,434 | cpp | C++ | main/c++-class-templates/c-class-templates.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/c++-class-templates/c-class-templates.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/c++-class-templates/c-class-templates.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cassert>
using namespace std;
namespace {
template <typename T>
class AddElements final {
public:
explicit AddElements(const T elem1) : elem1_{elem1} { }
T add(const T elem2) { return ele... | 24.305085 | 75 | 0.593445 | EliahKagan |
08e08cd072855ce935cf1840a2215b955421a32e | 953 | hpp | C++ | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | #ifndef LEDS_HPP
#define LEDS_HPP
#include "hwlib.hpp"
/// @file
/// \brief
/// leds class
/// \details
/// This is a class for color for 5 leds.
class leds{
private:
hwlib::pin_out & l1;
hwlib::pin_out & l2;
hwlib::pin_out & l3;
hwlib::pin_out & l4;
hwlib::pin_out & l5;
/// \brief
/// ... | 20.276596 | 112 | 0.593914 | Merryashji |
08e1655a6ea40ca41ee8bd4ca653e5c30640d026 | 1,274 | cpp | C++ | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 7 | 2017-02-19T16:22:16.000Z | 2021-03-02T05:47:39.000Z | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 61 | 2017-05-29T06:11:17.000Z | 2021-03-28T21:51:44.000Z | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 2 | 2017-05-28T17:17:40.000Z | 2017-07-14T21:45:16.000Z | // Distributed under the BSD 2-Clause License - Copyright 2012-2021 Robin Degen
#include <aeon/math/size2d.h>
#include <aeon/math/size2d_stream.h>
#include <gtest/gtest.h>
using namespace aeon;
TEST(test_size2d, test_size2d_default_int)
{
[[maybe_unused]] math::size2d<int> size;
}
struct external_size2d
{
i... | 28.311111 | 85 | 0.66562 | aeon-engine |
08e2d306237380b794321d0edbfd42c70a61b2bb | 4,852 | cpp | C++ | src/classical/io/write_verilog.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | src/classical/io/write_verilog.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | src/classical/io/write_verilog.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | /* CirKit: A circuit toolkit
* Copyright (C) 2009-2015 University of Bremen
* Copyright (C) 2015-2017 EPFL
*
* 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, in... | 34.657143 | 141 | 0.591509 | eletesta |
08e4d6f55664305d11c4b22861efc87b3e154840 | 259 | cpp | C++ | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:31:14.000Z | 2021-10-02T19:31:14.000Z | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-06-17T01:15:45.000Z | 2020-06-17T01:16:08.000Z | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-10-17T23:57:27.000Z | 2020-10-17T23:57:27.000Z | //
// Created by grant on 1/2/20.
//
#include "gtest/gtest.h"
#include "stms/log_test.cpp"
#include "stms/async_test.cpp"
#include "stms/general.cpp"
#if STMS_SSL_TESTS_ENABLED // Toggle SSL tests, disable for travis
# include "stms/ssl_test.cpp"
#endif
| 19.923077 | 67 | 0.718147 | RotartsiORG |
08e707f8036b8a1d6f86f75bd1152df0f04744d1 | 1,395 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_bitvectortest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_bitvectortest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_bitvectortest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #include "com_bitvectortest.h"
// Library headers.
#include <boost/shared_ptr.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test_suite.hpp>
// PCRaster library headers.
// Module headers.
#include "com_bitvector.h"
/*!
\file
This file contains the implementation of the BitVectorTest clas... | 18.116883 | 80 | 0.536201 | quanpands |
08e7bc9d26d1bca865b1ba8f1f8b54a2852db55e | 336 | hpp | C++ | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | null | null | null | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | 1 | 2015-03-25T09:42:10.000Z | 2015-03-25T09:42:10.000Z | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | null | null | null | #ifndef __SINGLETON_HPP__
#define __SINGLETON_HPP__
#include "noncopyable.hpp"
namespace etl {
namespace utils {
template<class T> class singleton : public noncopyable {
public:
static T& instance() {
static T i;
return i;
}
protected:
singleton() {}
};
} //utils
} //etl
#endif // __... | 12.923077 | 56 | 0.660714 | julienlopez |
08e8850381bddd9d41475a7b1eabc6b9dcaeb4b9 | 1,524 | cpp | C++ | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "CUnit.h"
#include "CExceptionUnit.h"
#include "CArcUnit.h"
#include "CVertexUnit.h"
#include "CGraphUnit.h"
#include "CGraphParserUnit.h"
#include "CHashMapUnit.h"
#include "../CException.h"
#include "CGraphToolboxUnit.h"
void CUnit::UNITassertError(const char * pcMessage)
{
perror(pcMes... | 28.222222 | 61 | 0.660105 | RakSrinaNa |
08f2dfb507e32aa9e718d9c6509667bf65db2812 | 14,440 | cc | C++ | cc_code/src/common/error-model.test.cc | erisyon/whatprot | 176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c | [
"MIT"
] | null | null | null | cc_code/src/common/error-model.test.cc | erisyon/whatprot | 176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c | [
"MIT"
] | 1 | 2021-06-12T00:50:08.000Z | 2021-06-15T17:59:12.000Z | cc_code/src/common/error-model.test.cc | erisyon/whatprot | 176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c | [
"MIT"
] | 1 | 2021-06-11T19:34:43.000Z | 2021-06-11T19:34:43.000Z | /******************************************************************************\
* Author: Matthew Beauregard Smith *
* Affiliation: The University of Texas at Austin *
* Department: Oden Institute and Institute for Cellular and Molecular Biology... | 32.304251 | 80 | 0.523546 | erisyon |
08f4420ae9b237e53d192e28ad209aaae3a6384b | 2,524 | cpp | C++ | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | 1 | 2018-01-09T02:43:57.000Z | 2018-01-09T02:43:57.000Z | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | null | null | null | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | null | null | null | /**
*
* You can modify and use this source freely
* only for the development of application related Live2D.
*
* (c) Live2D Inc. All rights reserved.
*/
#include "L2DMatrix44.h"
namespace live2d
{
namespace framework
{
L2DMatrix44::L2DMatrix44()
{
identity();
}
... | 22.336283 | 89 | 0.389857 | dragonflylee |
08f7b1a7196f0b681692d1bb2cbe0f9b9bb590ab | 1,926 | cpp | C++ | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | #include "setting.h"
#include "math/fft.h"
#include "utils/logger.h"
#include "audio/audio_tools.h"
using namespace bacchus;
const float tol18 = 1e-4f;
const int ulpDif = 256*1024;
void FftCrossTest(const matxf& x, const matxcx& resy) {
matxcx y = DFT(x);
int n = y.size();
EXPECT_EQ(resy.size(), n);
f... | 25.342105 | 73 | 0.558152 | bacchus |
08fcbe77618e5dfaad7de00fe7b983a15598ca9f | 25,842 | cc | C++ | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | fpersson/MAVSDK | a7161d7634cd04de97f7fbcea10c2da21136892c | [
"BSD-3-Clause"
] | 1 | 2020-03-30T07:53:19.000Z | 2020-03-30T07:53:19.000Z | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | fpersson/MAVSDK | a7161d7634cd04de97f7fbcea10c2da21136892c | [
"BSD-3-Clause"
] | 1 | 2021-03-15T18:34:13.000Z | 2021-03-15T18:34:13.000Z | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | SEESAI/MAVSDK | 5a9289eb09eb6b13f24e9d8d69f5644d2210d6b2 | [
"BSD-3-Clause"
] | null | null | null | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: gimbal/gimbal.proto
#include "gimbal/gimbal.pb.h"
#include "gimbal/gimbal.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcp... | 76.910714 | 317 | 0.747581 | fpersson |
1c00ca7ebcb8c0ce9aeeb4784f8e788502f27923 | 9,983 | cc | C++ | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 24 | 2016-07-10T08:05:11.000Z | 2021-11-16T10:53:48.000Z | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 14 | 2015-04-12T10:45:26.000Z | 2016-06-28T22:27:50.000Z | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 4 | 2016-10-05T17:51:38.000Z | 2020-04-20T07:45:23.000Z | // This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2018 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://op... | 28.280453 | 80 | 0.683863 | pjsaksa |
1c071123e27cd580970c23437b07e9d79b516281 | 78,938 | cpp | C++ | ImportantExample/QTDbfDemo/src/dbfeditor.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | ImportantExample/QTDbfDemo/src/dbfeditor.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | ImportantExample/QTDbfDemo/src/dbfeditor.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #/********************************************************************************/
#/* */
#/* Copyright 2011 Alexander Vorobyev (Voral) */
#/* http://va-soft.ru/ ... | 33.908076 | 139 | 0.475373 | xiaohaijin |
1c09fa25e31e9f9eb1cf698f769c434748b626f3 | 24,246 | hpp | C++ | src/pbdcex.core.hpp | jj4jj/pbdcex | 5b0d2bbdaebf94cceee47350819dae93a88a4cc8 | [
"MIT"
] | 5 | 2015-12-24T19:03:41.000Z | 2016-09-01T02:32:58.000Z | src/pbdcex.core.hpp | jj4jj/pbdcex | 5b0d2bbdaebf94cceee47350819dae93a88a4cc8 | [
"MIT"
] | null | null | null | src/pbdcex.core.hpp | jj4jj/pbdcex | 5b0d2bbdaebf94cceee47350819dae93a88a4cc8 | [
"MIT"
] | 2 | 2019-08-21T19:58:00.000Z | 2021-12-22T23:05:16.000Z | #ifndef __PBDCEX_CORE_EX_HPP_XX__
#define __PBDCEX_CORE_EX_HPP_XX__
#pragma once
#include <cstdio>
#include <cstdarg>
#include <cstdint>
#include <cstring>
#include <cassert>
#include <string>
#include <algorithm>
namespace pbdcex {
namespace util {
static inline uint64_t FNV_1A_Hash64(const unsigned char * data, s... | 30.23192 | 117 | 0.471542 | jj4jj |
1c0f8cdf4689a866f0b5c92700272cdaa0d66e4e | 5,951 | cpp | C++ | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 10 | 2017-07-22T13:04:45.000Z | 2021-12-22T10:02:32.000Z | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | null | null | null | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 3 | 2017-05-06T20:31:43.000Z | 2020-07-01T01:45:37.000Z | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved
// Plugin written by Philipp Buerki. Copyright 2017. All Rights reserved..
#include "../OnlineSubsystemB3atZUtils/Public/B3atZOnlineBeacon.h"
#include "Engine/NetConnection.h"
#include "EngineGlobals.h"
#include "Engine/Engine.h"
DEFINE_LOG_CATEGORY(LogBeaco... | 31.321053 | 152 | 0.750294 | philippbb |
1c11aa81d8d5c87a5eba9e1c34588fa89aa6edaa | 7,208 | cpp | C++ | src/tests/unit/cpu/shape_inference_test/interpolate_shape_inference.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2019-09-22T01:05:07.000Z | 2019-09-22T01:05:07.000Z | src/tests/unit/cpu/shape_inference_test/interpolate_shape_inference.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | src/tests/unit/cpu/shape_inference_test/interpolate_shape_inference.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:33:37.000Z | 2019-09-20T08:42:11.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <interpolate_shape_inference.hpp>
#include <openvino/op/constant.hpp>
#include <openvino/op/interpolate.hpp>
#include <openvino/op/parameter.hpp>
#include <utils/shape_inference/shape_inference.hpp... | 48.375839 | 120 | 0.66232 | pazamelin |
1c1246b06c41ea08f0c0a3bb12e4b5c2f55d9dea | 1,107 | cpp | C++ | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
//Macros
#define read(a) scanf("%d",&a)
#define CLEAR(a,b) memset(a,b,sizeof(a))
#define VI(a) vector<a>
#define lld long long int
#define ulld unsigned long long int
#define PI acos(-1.0)
#define Gamma 0.5772156649015328606065120900824024310421
int arr... | 17.030769 | 104 | 0.483288 | akazad13 |
1c135917bc74b3aae19c1068d8fe38e7acb51550 | 4,730 | cpp | C++ | dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | 1 | 2022-03-21T03:13:45.000Z | 2022-03-21T03:13:45.000Z | dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | null | null | null | dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | null | null | null | /**
* \file dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distri... | 34.028777 | 89 | 0.604017 | TaoweiZhang |
1c16dc3bb20e37ed22e6079c11a2e75d1e557c8f | 1,361 | cpp | C++ | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | 7 | 2022-02-07T08:26:55.000Z | 2022-03-23T02:55:44.000Z | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | null | null | null | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | null | null | null | #include <fcntl.h>
#include <string.h>
#include "LocalConn.h"
#include "Tunnel.h"
#include "lib/Util.h"
void LocalConn::handleRead() {
try{
int bs = splice(fd_, NULL, pipe_fds_[1], NULL, 2048, SPLICE_F_MOVE | SPLICE_F_NONBLOCK);
if (bs < 0) {
SPDLOG_CRITICAL("proxy_id: {} local_fd: {} -> pipe_fd: {} ... | 35.815789 | 162 | 0.659809 | lzs123 |
1c1daf85142e4d3caa7fc315f2ddee90e9f4dda5 | 490 | cpp | C++ | dawn/test/unit-test/dawn/Optimizer/samples/KCacheTest02b.cpp | BenWeber42/dawn | 727835e027b8270d667452b857fa4e0af57b2c2e | [
"MIT"
] | 20 | 2017-09-28T14:23:54.000Z | 2021-08-23T09:58:26.000Z | dawn/test/unit-test/dawn/Optimizer/samples/KCacheTest02b.cpp | BenWeber42/dawn | 727835e027b8270d667452b857fa4e0af57b2c2e | [
"MIT"
] | 1,018 | 2017-10-09T13:55:47.000Z | 2022-03-14T13:16:38.000Z | dawn/test/unit-test/dawn/Optimizer/samples/KCacheTest02b.cpp | eddie-c-davis/dawn | 4dabcfc72e422f125e6a18fe08d0212d588adf98 | [
"MIT"
] | 20 | 2017-09-21T10:35:24.000Z | 2021-01-18T09:24:58.000Z | #include "gtclang_dsl_defs/gtclang_dsl.hpp"
using namespace gtclang::dsl;
stencil Test {
storage a, b, c;
var tmp;
Do {
// MS0
vertical_region(k_start, k_start) {
tmp = a;
}
vertical_region(k_start + 1, k_end) {
b = tmp(k - 1);
}
// MS1
vertical_re... | 19.6 | 43 | 0.483673 | BenWeber42 |
1c2019fcd1b8894f0a0a76c6cff42181449ee6bc | 129,465 | cpp | C++ | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | // DlgStats.cpp : implementation file
//
#include "stdafx.h"
#include "bwchart.h"
#include "DlgStats.h"
#include "regparam.h"
#include "bwrepapi.h"
#include "DlgHelp.h"
#include "DlgMap.h"
#include "Dlgbwchart.h"
#include "gradient.h"
#include "hsvrgb.h"
#include "overlaywnd.h"
#include "ExportCoachDlg.h... | 29.947953 | 165 | 0.609408 | udonyang |
1c2682699ff4fe1a11841ac9317106789dfb46ed | 369 | hpp | C++ | phase_1/eval/york/challenge/src/http/request_state.hpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | phase_1/eval/york/challenge/src/http/request_state.hpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | phase_1/eval/york/challenge/src/http/request_state.hpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | #pragma once
#include <optional>
#include <vector>
namespace http {
struct RequestState {
public:
bool abort = false;
bool want_line = false;
std::optional<size_t> want_bytes;
bool ready_to_respond = false;
bool in_valid_state() const;
};
}
std::ostream& operator<<(std::ostream& o,
... | 18.45 | 55 | 0.634146 | cromulencellc |
1c27fe1b64d1ff82139e5e8dac02a3cbfa0bd650 | 872 | cpp | C++ | engine/visibility/BackSurfaceCull/BackSurfaceCull.cpp | PiroDev/graphics-engine | bf1e5f57878c02421e2e8a787d94ce6074637402 | [
"Apache-2.0"
] | null | null | null | engine/visibility/BackSurfaceCull/BackSurfaceCull.cpp | PiroDev/graphics-engine | bf1e5f57878c02421e2e8a787d94ce6074637402 | [
"Apache-2.0"
] | null | null | null | engine/visibility/BackSurfaceCull/BackSurfaceCull.cpp | PiroDev/graphics-engine | bf1e5f57878c02421e2e8a787d94ce6074637402 | [
"Apache-2.0"
] | null | null | null | #include "BackSurfaceCull.hpp"
void BackSurfaceCull::operator()(std::shared_ptr<Model> &model, const Point3f &eye) const {
std::vector<Polygon> remaining;
const auto &polygons = model->Polygons();
const auto &points = model->Points();
const auto &normals = model->Normals();
for (const auto &polyg... | 28.129032 | 91 | 0.544725 | PiroDev |
1c28a6c2d84c8db78475da19c2ed7f4c02177055 | 2,687 | cc | C++ | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////
////
//// cagey-engine - Toy 3D Engine
//// Copyright (c) 2014 Kyle Girard <theycallmecoach@gmail.com>
////
//// The MIT License (MIT)
////
//// Permission is hereby granted, free of charge, to any person obtaining a copy
//// of this so... | 34.012658 | 99 | 0.629326 | theycallmecoach |
1c2a37052907e1c29dfc55784516f8f3d7af259a | 8,085 | cc | C++ | src/system/kernel/core/process/Process.cc | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 37 | 2015-01-11T20:08:48.000Z | 2022-01-06T17:25:22.000Z | src/system/kernel/core/process/Process.cc | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 4 | 2016-05-20T01:01:59.000Z | 2016-06-22T00:03:27.000Z | src/system/kernel/core/process/Process.cc | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 6 | 2015-09-14T14:44:20.000Z | 2019-01-11T09:52:21.000Z | /*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... | 33 | 164 | 0.687322 | jmolloy |
1c2ab67c1db41c545f994247455c2e688cd42224 | 321 | cpp | C++ | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "Omega_h_timer.hpp"
namespace Omega_h {
Now now() {
Now t;
t.impl = std::chrono::high_resolution_clock::now();
return t;
}
Real operator-(Now b, Now a) {
return std::chrono::duration_cast<std::chrono::nanoseconds>(b.impl - a.impl)
.count() *
1e-9;
}
} // end namespace Omega_h... | 17.833333 | 78 | 0.619938 | overfelt |
1c2cf5f3e0ce5d29833ec36397e7c4fea8733201 | 1,321 | cpp | C++ | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #include <CGAL/convex_hull_3.h>
#include <possumwood_sdk/node_implementation.h>
#include "datatypes/meshes.h"
#include "errors.h"
namespace {
using possumwood::CGALPolyhedron;
using possumwood::Meshes;
typedef possumwood::CGALPolyhedron Mesh;
dependency_graph::InAttr<Meshes> a_inMesh;
dependency_graph::OutAttr<Me... | 28.106383 | 98 | 0.766086 | martin-pr |
1c2e89d744f4124d22abdfe05d593e26c4d67f5a | 6,353 | cpp | C++ | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 9 | 2015-02-23T15:47:20.000Z | 2020-05-19T23:42:05.000Z | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 3 | 2020-04-21T06:12:53.000Z | 2020-08-20T16:56:17.000Z | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 12 | 2015-02-18T18:34:57.000Z | 2020-07-12T04:04:36.000Z | /**************************************************************************/
/**
** @file tListInputData.cpp
** @brief Functions for class tListInputData.
**
** Modifications:
** - changed .tri file format from points-edges-triangles to
** points-triangles-edges, compatible with earlier format (gt 1/98)
... | 30.990244 | 79 | 0.555171 | dvalters |
1c330f7ac0367e8acfd10060b8804c48af9818e7 | 353 | cpp | C++ | source/code/programs/examples/saturating/main.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/programs/examples/saturating/main.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/programs/examples/saturating/main.cpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #include <cstddef>
#include <cstdint>
#include <iostream>
#include "types.hpp"
uint8_t x[] { 101, 27, 3, 95 };
int main () {
uint_sat8_t s = 25;
for (const auto& v : x) {
s -= v;
} // s == 0
s++; // s == 1
for (const auto& v : x) {
s *= v;
}
unsigned j = s; // s == 255
... | 16.045455 | 32 | 0.456091 | luxe |
1c3585e9f7e941a11ef84bd043a79cf2de61c87f | 2,522 | cpp | C++ | LeetCode/C++/General/Hard/LongestValidParentheses/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Hard/LongestValidParentheses/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Hard/LongestValidParentheses/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
#include <vector>
/*
* Solutions:
*
* 1. Brute-force. We generate every possible substring and if the substring is valid, update the result
* to be the length of the longest one of these substrings.
*
* Time complexity: O(n^3) [where n is the length of the i... | 18.143885 | 104 | 0.458763 | busebd12 |
1c3910f2a6205a1a12e5f64cf3fca1df90a4da2b | 8,952 | cpp | C++ | Web/src/ApacheAgent/ApacheAgent.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Web/src/ApacheAgent/ApacheAgent.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Web/src/ApacheAgent/ApacheAgent.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 30.040268 | 111 | 0.661416 | achilex |
1c39384ce95547642533d79874ef7f0dda03a3c5 | 4,864 | cpp | C++ | source/Foundation/DataStream.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | source/Foundation/DataStream.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | source/Foundation/DataStream.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/Foundation/DataStream.h>
#include <Nephilim/Foundation/IODevice.h>
#include <Nephilim/Foundation/String.h>
#include <assert.h>
#include <stdio.h>
NEPHILIM_NS_BEGIN
/// Constructs a invalid data stream
DataStream::DataStream()
: m_device(NULL)
{
}
/// Constructs a data stream from a device
DataSt... | 19.07451 | 80 | 0.694901 | GrimshawA |
1c3b4e522196f9a659bf825df253016e8ed0edf2 | 1,881 | cpp | C++ | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 22 | 2016-08-11T06:16:25.000Z | 2022-02-22T00:06:59.000Z | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 9 | 2016-12-08T12:42:38.000Z | 2021-12-28T20:12:15.000Z | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 8 | 2017-06-26T13:15:06.000Z | 2021-11-12T18:39:54.000Z | //
// bpfrequencytracker.cpp
// barcode_project
//
// Created by luzhao on 4/21/16.
// Copyright © 2016 luzhao. All rights reserved.
//
#include "bpfrequencytracker.hpp"
#include <array>
#include <cassert>
#include <vector>
using std::array;
using std::vector;
namespace barcodeSpace {
BPFrequencyTracker::BPF... | 34.2 | 133 | 0.596491 | LaoZZZZZ |
1c3f0bc21d3ed41f6fe8b58cb8a63f66eb007ca4 | 2,627 | inl | C++ | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* transport.inl
*
* Created on: Feb 8, 2016
* Author: zmij
*/
#ifndef WIRE_CORE_TRANSPORT_INL_
#define WIRE_CORE_TRANSPORT_INL_
#include <wire/core/transport.hpp>
#include <wire/util/debug_log.hpp>
namespace wire {
namespace core {
template < typename Session, transport_type Type >
transport_listener<... | 25.019048 | 104 | 0.694328 | zmij |
1c4131f4e99beaf367375d11ca8b722024d71696 | 3,249 | hpp | C++ | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 2 | 2020-05-05T13:31:55.000Z | 2022-01-16T15:38:00.000Z | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | null | null | null | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 1 | 2021-11-27T02:32:24.000Z | 2021-11-27T02:32:24.000Z | #ifndef MATH_HPP
#define MATH_HPP
#include <cfloat>
#include <cmath>
#include <iostream>
#include <vector>
#include "glm/glm.hpp"
using namespace std;
#define FLT_CMP(a, b) (abs(a-b)<=FLT_EPSILON)
#define DEG2RAD(x) (x*M_PI/180.0)
#define RAD2DEG(x) (x*180.0/M_PI)
template <typename T>
ostream& operator<<(ostream& o, ... | 23.374101 | 54 | 0.644814 | VisualGMQ |
1c4340895d9ff32d7ffa191d42ebd2c4e08e39ec | 732 | cpp | C++ | anagram/anagram.cpp | aydinsimsek/exercism-solutions-cpp | 6d7c8d37f628840559509d7f6e5b7788c8c637b6 | [
"MIT"
] | 1 | 2022-02-04T19:22:58.000Z | 2022-02-04T19:22:58.000Z | anagram/anagram.cpp | aydinsimsek/exercism-solutions-cpp | 6d7c8d37f628840559509d7f6e5b7788c8c637b6 | [
"MIT"
] | null | null | null | anagram/anagram.cpp | aydinsimsek/exercism-solutions-cpp | 6d7c8d37f628840559509d7f6e5b7788c8c637b6 | [
"MIT"
] | null | null | null | #include "anagram.h"
namespace anagram {
anagram::anagram(string s)
{
word = s;
}
vector <string> anagram::matches(vector <string> v)
{
size_t w;
for (int i = 0; i < v.size(); i++)
{
if (word.length() == v[i].length())
{
temp1 = v[i];
for (int j = 0; j < v[i].length(); j++)
{
v... | 17.023256 | 53 | 0.449454 | aydinsimsek |
1c49c154874b273a42fea95b7447dfd1476a38c6 | 2,902 | cpp | C++ | src/input.cpp | Bryankaveen/tanks-ce | 27670778dbf6329b7fa4e69d12f8a4e5fa1f3ad9 | [
"MIT"
] | 14 | 2020-08-11T14:39:52.000Z | 2022-02-08T21:17:56.000Z | src/input.cpp | commandblockguy/Tanks-CE | 9eb79438a0ecd12cbde23be207257c650b703acb | [
"MIT"
] | 1 | 2020-11-04T08:17:52.000Z | 2020-11-05T22:41:46.000Z | src/input.cpp | commandblockguy/Tanks-CE | 9eb79438a0ecd12cbde23be207257c650b703acb | [
"MIT"
] | 1 | 2021-12-16T19:24:04.000Z | 2021-12-16T19:24:04.000Z | #include "game.h"
#include "gui/pause.h"
#include "objects/tank.h"
#include "util/profiler.h"
#include <keypadc.h>
#define PLAYER_BARREL_ROTATION DEGREES_TO_ANGLE(5)
//1/3 of a second for 90 degree rotation
#define PLAYER_TREAD_ROTATION (DEGREES_TO_ANGLE(90) / (TARGET_TICK_RATE / 3))
void handle_movement() {
Tan... | 25.910714 | 77 | 0.569952 | Bryankaveen |
1c50b7b697cd116c9bd383da141940098b7b88dd | 1,001 | hpp | C++ | branch_predictor/btb_set.hpp | thild/orcs | 3cf377e5573e05843a15d338c29d595d95ed1495 | [
"MIT"
] | null | null | null | branch_predictor/btb_set.hpp | thild/orcs | 3cf377e5573e05843a15d338c29d595d95ed1495 | [
"MIT"
] | null | null | null | branch_predictor/btb_set.hpp | thild/orcs | 3cf377e5573e05843a15d338c29d595d95ed1495 | [
"MIT"
] | null | null | null | #include <tuple>
#include <cmath>
using namespace std;
class btb_set_t {
public:
btb_line_t *lines = NULL;
uint8_t depth = 0;
// ====================================================================
/// Methods
// ====================================================... | 28.6 | 88 | 0.467532 | thild |
1c5164bdec19659eaffe195a7202c4bdcdd32ff4 | 1,463 | cpp | C++ | platforms/gfg/0455_k_maximum_sum_overlapping_contiguous_sub_arrays.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0455_k_maximum_sum_overlapping_contiguous_sub_arrays.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0455_k_maximum_sum_overlapping_contiguous_sub_arrays.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
void GetKMaxSums(vi arr, int k) {
int n = arr.size();
vi presum(n + 1);
for (int i = 1; i <= n; ++i) {
presum[i] = arr[i - 1] + presum[i - 1];
}
vi sums;
for (int i = 1; i <= n; ++i) {
for (int j = i; j <= n; ++j) {
sums.push_back(presum... | 24.383333 | 56 | 0.395079 | idfumg |
1c5287128a8e952846a5208fa07831366f7e1a2e | 2,141 | cpp | C++ | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | #include <cxlog/logger/logger.h>
NAMESPACE_CXLOG_BEGIN
void Logger::Log(Level level, const char *file, std::size_t line, const char *func,
std::string &&msg) const {
const Additional &additional = this->additional;
std::vector<Context> contexts;
contexts.reserve(additional.statics->size() + additiona... | 31.485294 | 89 | 0.601121 | gratonos |
1c545e6a82c9f3620c90a0f0cb67fffe2415267f | 781 | cpp | C++ | Olympiad Solutions/DMOJ/bts17p4.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/DMOJ/bts17p4.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/DMOJ/bts17p4.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://dmoj.ca/problem/bts17p4
#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> ii;
vector<ii> todos;
vector<int> menores;
int N,M,J;
int checa(int t){
menores.clear();
for(ii d : todos){
if(d.second <= t) menores.push_back(d.first);
}
sort(menores.begin(),menor... | 18.595238 | 47 | 0.567222 | Ashwanigupta9125 |
1c551e9d9dd8a9379c999a289f2501eaa2dff666 | 22,647 | cpp | C++ | src/plugins/grass/qgsgrasstools.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/plugins/grass/qgsgrasstools.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/plugins/grass/qgsgrasstools.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsgrasstools.cpp
-------------------
begin : March, 2005
copyright : (C) 2005 by Radim Blazek
email : blazek@itc.it
*************... | 29.034615 | 159 | 0.634654 | dyna-mis |
1c5856d4b398bc8f8bf0bc558731f2f7feff1882 | 1,311 | cpp | C++ | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
//-------------------------------------------------------------------
// include
//-------------------------------------------------------------------
#include "weoExceptionMessageCreator.h"
#include <sstream>
namespace pm_mode {
/********************************************************************
... | 26.755102 | 129 | 0.515637 | taku-xhift |
1c5b3de7fce16286f16fb22e379723f676ef5d50 | 546 | hpp | C++ | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | #ifndef SHADER_HPP_
#define SHADER_HPP_
#include "../jmax.hpp"
#include <string>
#include <vector>
namespace jmax {
class Shader
{
public:
Shader(std::string const& filePath, GLenum shaderType = 0);
virtual ~Shader();
public:
static GLuint compileShaderFile(std::string const& shaderFilePath, GLenum shaderTyp... | 19.5 | 88 | 0.725275 | JeanGamain |
1c5b779943d9abe8389382f1717d224f7c402fef | 816 | cpp | C++ | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Node
{
public:
Node *next;
int data;
};
void printList(Node *n)
{
while (n != NULL)
{
cout << n->data << "\t";
n = n->next;
}
}
void insertAtFront(Node **start_node, int data)
{
Node *new_node = new Node();
new_node->data = d... | 14.571429 | 50 | 0.551471 | dipanshuchaubey |
1c5c19ab2d119c2ccec4e995d72e9230b11a2b97 | 1,807 | cpp | C++ | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | 1 | 2021-08-13T14:27:39.000Z | 2021-08-13T14:27:39.000Z | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <iostream>
#define int long long
const int MAX_N = 2000050;
const int MOD = 19930726;
std::string d, s;
int re[MAX_N], cnt[MAX_N];
int n, nn, k;
void init();
void manacher();
int quick_pow(int a, int b);
signed main() {
std::ios::sync_with_stdio(false);
std:... | 17.891089 | 65 | 0.342557 | krishukr |
1c5d2d09af639b8b275c0a1e970826844b4512c4 | 129 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:338e6e57d5446ad622a48ab505a62e4ddf72367f1dd3bd9dee9773f0f43ab857
size 1576
| 32.25 | 75 | 0.883721 | initialz |
1c60fa930f611edaa3a07a5d07828882b70c0b10 | 974 | cpp | C++ | demo/src/main.cpp | fundies/Crash2D | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 1 | 2017-05-25T13:49:18.000Z | 2017-05-25T13:49:18.000Z | demo/src/main.cpp | fundies/SAT | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 6 | 2016-09-27T22:57:13.000Z | 2017-05-11T17:01:26.000Z | demo/src/main.cpp | fundies/SAT | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 4 | 2016-09-29T01:19:44.000Z | 2021-04-02T07:45:59.000Z | #include "MTVDemo.hpp"
#include "BroadphaseDemo.hpp"
int main(int argc, char **argv)
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Crash2D Demo");
window.setFramerateLimit(60);
Demo *demo = new MTVDemo(window);
size_t demoId = 0;
while (window.isOpen()) {
// check all the window's events that were trigg... | 21.173913 | 91 | 0.596509 | fundies |
1c61f3b6817b5d6e4326b7725944537b55eeac20 | 1,007 | cpp | C++ | Exam Practice/dice.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Exam Practice/dice.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Exam Practice/dice.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | #include "dice.h"
#include "randgen.h"
// implementation of dice class
// written Jan 31, 1994, modified 5/10/94 to use RandGen class
// modified 3/31/99 to move RandGen class here from .h file
Dice::Dice(int sides)
// postcondition: all private fields initialized
{
myRollCount = 0;
mySides = sides;
}
i... | 20.55102 | 73 | 0.608739 | egmnklc |
1c6a083592b615ed772efc3dab21d3feb3c4330e | 14,096 | cpp | C++ | Common/win32/ProxyResolver.cpp | JzHuai0108/bluefox-mlc-continuous-capture-avi | b04a2c80223c6f3afa15ca05ba3068f20702549a | [
"BSD-3-Clause"
] | null | null | null | Common/win32/ProxyResolver.cpp | JzHuai0108/bluefox-mlc-continuous-capture-avi | b04a2c80223c6f3afa15ca05ba3068f20702549a | [
"BSD-3-Clause"
] | null | null | null | Common/win32/ProxyResolver.cpp | JzHuai0108/bluefox-mlc-continuous-capture-avi | b04a2c80223c6f3afa15ca05ba3068f20702549a | [
"BSD-3-Clause"
] | null | null | null | #include "ProxyResolver.h"
#if _WIN32_WINNT < 0x0602 // This stuff became available with Windows 8
# define WINHTTP_CALLBACK_STATUS_GETPROXYFORURL_COMPLETE 0x01000000
# define WINHTTP_CALLBACK_FLAG_GETPROXYFORURL_COMPLETE WINHTTP_CALLBACK_STATUS_GETPROXYFORURL_COMPLETE
# define API_GET_PROXY_FOR_URL (6)
... | 34.380488 | 264 | 0.623936 | JzHuai0108 |
1c6a8639fcb04a9a56098c34f080c26b14a84208 | 896 | cpp | C++ | UTSO/utso21p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | UTSO/utso21p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | UTSO/utso21p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
#ifndef ONLINE_JUDGE
template<typename T>
void pr(T a){std::cerr<<a<<std::endl;}
template<typename T,typename... Args>
void pr(T a, Args... args) {std::cerr<<a<<' ',pr(args...);}
#else
template<typename... Args>
void pr(Ar... | 18.666667 | 60 | 0.504464 | crackersamdjam |
1c6d2c7de9a44b122987529f4e6d173c3d381f35 | 1,127 | cpp | C++ | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | #include "townmgr.h"
#include "companymgr.h"
#include "interop/interop.hpp"
#include "openloco.h"
using namespace openloco::interop;
namespace openloco::townmgr
{
static loco_global_array<town, 80, 0x005B825C> _towns;
std::array<town, max_towns>& towns()
{
auto arr = (std::array<town, max_towns>*... | 21.673077 | 73 | 0.485359 | Gymnasiast |
1c6e0f7afc9d0a35fffd5410e137c10c3a38b07e | 9,863 | cpp | C++ | src/opencv_ingestor.cpp | open-edge-insights/video-ingestion | 189f50c73df6a2879de278f1232f14f291c8e6cf | [
"MIT"
] | 7 | 2021-05-11T04:28:28.000Z | 2022-03-29T00:39:39.000Z | src/opencv_ingestor.cpp | open-edge-insights/video-ingestion | 189f50c73df6a2879de278f1232f14f291c8e6cf | [
"MIT"
] | 1 | 2022-02-10T03:38:58.000Z | 2022-02-10T03:38:58.000Z | src/opencv_ingestor.cpp | open-edge-insights/video-ingestion | 189f50c73df6a2879de278f1232f14f291c8e6cf | [
"MIT"
] | 6 | 2021-09-19T17:48:37.000Z | 2022-03-22T04:22:48.000Z | // Copyright (c) 2019 Intel Corporation.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, pub... | 33.433898 | 172 | 0.590794 | open-edge-insights |
cc6033dfeeb05bcadef587cf2cd59cd5542fc7f6 | 117,939 | cpp | C++ | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_ProcedureSymbolBP -----------------------------------------------*
****************************************************************************
* Description : Provides a procedure symbol for banking process *
* Devel... | 40.514943 | 158 | 0.526679 | Jeanmilost |
cc6570a655cda878517b2a27b4e4526d8a979028 | 3,614 | cc | C++ | o3d/compiler/puritan/main.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/compiler/puritan/main.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | o3d/compiler/puritan/main.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | /*
* Copyright 2009, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 27.8 | 77 | 0.666574 | rwatson |
cc678fb574dfe265aadd588c689b0d1efdba0f13 | 231 | hpp | C++ | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | #pragma once
#include "Layer.hpp"
#include "Camera.hpp"
struct RenderBuffer {
std::vector<std::unique_ptr<RenderScript>> scriptDestructQueue;
bool resetTextureCache{ false };
Camera camera;
std::vector<RenderLayer> layers;
}; | 21 | 64 | 0.761905 | Ipotrick |
cc68b57f65e3eda864d9e3ad0d92c028d9c624f7 | 1,900 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/CMediaFileType.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/CMediaFileType.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/CMediaFileType.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 22.352941 | 75 | 0.645263 | jingcao80 |
cc7097e3531cba3b13fb012eca8cbc5cc6a126fa | 708 | cpp | C++ | CodeForces/Complete/700-799/791C-BearAndDifferentNames.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/700-799/791C-BearAndDifferentNames.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/700-799/791C-BearAndDifferentNames.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <iostream>
#include <vector>
int main(){
const int L = 26;
const int N = 100;
std::ios_base::sync_with_stdio(false);
std::vector<std::string> a(N);
for(long p = 0; p < N; p++){a[p] = ('A' + (p / L)); a[p] += ('a' + (p % L));}
int n, k; std::cin >> n >> k;
std::vector<bool> eff(n ... | 29.5 | 93 | 0.457627 | Ashwanigupta9125 |
cc731400e0ed1b202dead5e6b892b09477c244ca | 2,843 | hpp | C++ | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | 7 | 2018-08-27T20:31:21.000Z | 2021-11-22T05:57:18.000Z | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | null | null | null | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | null | null | null | /*
This file is distributed under MIT License.
Copyright (c) 2018 draghan
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... | 26.820755 | 82 | 0.719311 | draghan |
cc733829dd43fe861230df5866fe3587e4342e0a | 1,670 | hh | C++ | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | null | null | null | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | null | null | null | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | 1 | 2020-12-15T20:53:56.000Z | 2020-12-15T20:53:56.000Z | #ifndef __CPU_VPRED_LVP_PRED_HH__
#define __CPU_VPRED_LVP_PRED_HH__
#include "cpu/vpred/vpred_unit.hh"
#include <vector>
#include "base/statistics.hh"
#include "base/sat_counter.hh"
#include "base/types.hh"
#include "cpu/inst_seq.hh"
#include "cpu/static_inst.hh"
#include "params/FCMVP.hh"
#include "sim/sim_object.hh... | 25.30303 | 102 | 0.601796 | surya00060 |
cc73743ace3ec7c1299f05c623eb9e78e65b18a8 | 2,732 | hpp | C++ | test/estest/graphics/LibPngDecoderTest.hpp | eaglesakura/protoground | 2cd7eaf93eaab9a34619b7ded91d3a2b89e9d5d6 | [
"MIT"
] | null | null | null | test/estest/graphics/LibPngDecoderTest.hpp | eaglesakura/protoground | 2cd7eaf93eaab9a34619b7ded91d3a2b89e9d5d6 | [
"MIT"
] | 1 | 2016-10-25T02:09:00.000Z | 2016-11-10T02:07:59.000Z | test/estest/graphics/LibPngDecoderTest.hpp | eaglesakura/protoground | 2cd7eaf93eaab9a34619b7ded91d3a2b89e9d5d6 | [
"MIT"
] | null | null | null | #pragma once
#include "estest/protoground-test.hpp"
#include "es/graphics/image/png/PngFileDecoder.h"
#include "es/graphics/image/IImageDecodeCallback.hpp"
namespace es {
namespace test {
namespace internal {
std::shared_ptr<IImageDecodeCallback> newSimpleImageListener() {
class PngImageListener ... | 27.877551 | 124 | 0.61896 | eaglesakura |
cc7424858b6c72272f73481c941b9e55475c869c | 1,032 | cpp | C++ | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main(){
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int t, co = 0, len, a;
for(scanf("%d", &t); t--; ){
scanf("%d", &len);
for(int i = 0; i < len - 1; scanf("%d", &a), v.push_back(a), i++);
int g = v[0], m... | 29.485714 | 109 | 0.471899 | cosmicray001 |
cc789143c50ca56072bd50c685f65f77ede4ed74 | 413 | cpp | C++ | Projects/AnalizadorLexico/AnalizadorLexico/Est.cpp | JoaquinRMtz/Escuela | bdd0e902c1a836880c018845b7cac2cccbaa1bed | [
"MIT"
] | null | null | null | Projects/AnalizadorLexico/AnalizadorLexico/Est.cpp | JoaquinRMtz/Escuela | bdd0e902c1a836880c018845b7cac2cccbaa1bed | [
"MIT"
] | null | null | null | Projects/AnalizadorLexico/AnalizadorLexico/Est.cpp | JoaquinRMtz/Escuela | bdd0e902c1a836880c018845b7cac2cccbaa1bed | [
"MIT"
] | null | null | null | #include "Est.h"
Est::Est(Id^ i, Expr^ x)
{
id = i; expr = x;
if (comprobar(id->tipo, expr->tipo) == nullptr) error("Error de tipo");
}
Tipo^ Est::comprobar(Tipo^ p1, Tipo^ p2){
if (Tipo::numerico(p1) && Tipo::numerico(p2))return p2;
else if (p1 == Tipo::Bool && p2 == Tipo::Bool) return p2;
else return nullptr;... | 22.944444 | 72 | 0.598063 | JoaquinRMtz |
cc79f3ef2c2041b41a4897dd9196dab1851b8bfb | 6,268 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_MAT_FUNCTOR_ODE_SYSTEM_HPP
#define STAN_MATH_REV_MAT_FUNCTOR_ODE_SYSTEM_HPP
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/arr/fun/value_of.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
namespace stan {
namespace math {
/**
* Internal rep... | 38.219512 | 77 | 0.565571 | yizhang-cae |
cc7fbe6860a7b75ff0ae6877e7a2427095c20a03 | 3,570 | hpp | C++ | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | null | null | null | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | 2 | 2015-03-17T01:32:10.000Z | 2015-03-19T18:58:28.000Z | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | null | null | null | #if !defined WATER_PHYSICS_OBJECT_INCLUDED
#define WATER_PHYSICS_OBJECT_INCLUDED
// Engine headers.
#include <GameComponents/Collider.hpp>
#include <GameComponents/GameObject.hpp>
// Engine namespace.
namespace water
{
/// <summary>
/// An abstract class for physics objects. Any object which the physics sys... | 41.511628 | 142 | 0.557983 | storm20200 |
cc82da22e8b2c843ea0f15028e5f447aa29db572 | 49,995 | cpp | C++ | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | 1 | 2021-04-13T04:49:58.000Z | 2021-04-13T04:49:58.000Z | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | null | null | null | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | null | null | null |
#ifdef _WIN32
# include "zlib/zlib.h"
# include "bzip2/bzlib.h"
#else
# include <zlib.h>
# include <bzlib.h>
#endif
#include "UnAlz.h"
#ifdef _WIN32
# pragma warning( disable : 4996 ) // crt secure warning
#endif
// utime 함수 처리
#if defined(_WIN32) || defined(__CYGWIN__)
# include <time.h>
# include <sys/utime.h>... | 25.288316 | 328 | 0.566417 | kippler |
cc845d41a4cda951e0c2a35a8a448fb72c79ac7d | 2,767 | cpp | C++ | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 275 | 2015-04-06T19:49:18.000Z | 2022-03-19T06:23:47.000Z | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 20 | 2015-09-02T04:41:15.000Z | 2021-02-24T17:48:51.000Z | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 57 | 2015-06-01T01:08:02.000Z | 2022-01-02T12:49:43.000Z | namespace {
/// This uses fewer arithmetic operations than any other known
/// implementation on machines with fast multiplication.
/// It uses 12 arithmetic operations, one of which is a multiply.
/// http://en.wikipedia.org/wiki/Hamming_weight#Efficient_implementation
///
uint64_t popcount_mul(uint64_t x)
{
const ... | 31.089888 | 78 | 0.64185 | kimwalisch |
cc8f25f095ffc1960712df69e506be135c3cfb4c | 10,244 | cpp | C++ | Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp | ebrahimebrahim/CTK | c506a0227777b55fc06dd22d74a11c5a9d4247b1 | [
"Apache-2.0"
] | null | null | null | Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp | ebrahimebrahim/CTK | c506a0227777b55fc06dd22d74a11c5a9d4247b1 | [
"Apache-2.0"
] | null | null | null | Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp | ebrahimebrahim/CTK | c506a0227777b55fc06dd22d74a11c5a9d4247b1 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.ap... | 36.455516 | 131 | 0.625439 | ebrahimebrahim |
cc92133cf6216aed3081d7ee820e775f80d84589 | 814 | cpp | C++ | HackerRank/Algorithms/Easy/E0088.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | HackerRank/Algorithms/Easy/E0088.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | HackerRank/Algorithms/Easy/E0088.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://www.hackerrank.com/challenges/acm-icpc-team/problem
*/
#include <iostream>
#include <string>
#include <vector>
#include <bitset>
#define M 500
using namespace std;
vector<int> acmTeam(vector<string> topic) {
int known;
vector<int> ans(2);
for (int i = 0; i < topic.size() - 1; i++) {
... | 18.930233 | 78 | 0.558968 | Mohammed-Shoaib |
cc92e631f99cd32b1e9c3eee1a2ee8e50332cb88 | 1,867 | cpp | C++ | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | //
// FileController.cpp
// Vector
//
// Created by Bonilla, Sean on 2/5/19.
// Copyright © 2019 CTEC. All rights reserved.
//
#include "FileController.hpp"
using namespace std;
vector<CrimeData> FileController :: readCrimeDataToVector(string filename){
vector<CrimeData> crimes;
string currentCSVLine;
... | 28.723077 | 112 | 0.561864 | SAarronB |
cc94c1ed84af0a8037617af724c7a2a7fa0f4d9d | 728 | hpp | C++ | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Copyright David Stone 2020.
// 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)
#pragma once
#include <tm/move/max_moves_per_pokemon.hpp>
#include <containers/static_vector.hpp>
#include <tm/generation.hpp>
n... | 25.103448 | 86 | 0.774725 | davidstone |
cc99ab560d85ebc58e9b118b30a650a1cbbb73fe | 18,447 | cc | C++ | project4/mariadb/server/storage/tokudb/PerconaFT/src/tests/recovery_fileops_unit.cc | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | 11 | 2017-10-28T08:41:08.000Z | 2021-06-24T07:24:21.000Z | project4/mariadb/server/storage/tokudb/PerconaFT/src/tests/recovery_fileops_unit.cc | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | null | null | null | project4/mariadb/server/storage/tokudb/PerconaFT/src/tests/recovery_fileops_unit.cc | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | 4 | 2017-09-07T09:33:26.000Z | 2021-02-19T07:45:08.000Z | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... | 28.249617 | 127 | 0.587521 | jiunbae |
cc9b313ca44aac7dbcd9df1dcb229f9587977680 | 10,473 | cc | C++ | hwy/tests/float_test.cc | clayne/highway | af2cd99390a5bdfeb3fe7b2acc59acbe413943e9 | [
"Apache-2.0"
] | null | null | null | hwy/tests/float_test.cc | clayne/highway | af2cd99390a5bdfeb3fe7b2acc59acbe413943e9 | [
"Apache-2.0"
] | null | null | null | hwy/tests/float_test.cc | clayne/highway | af2cd99390a5bdfeb3fe7b2acc59acbe413943e9 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
// SPDX-License-Identifier: Apache-2.0
//
// 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 requ... | 29.752841 | 85 | 0.634107 | clayne |
cca1994074eed5734a9fbc22fbe4099d5f9fc42f | 2,075 | hpp | C++ | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | 4 | 2018-09-27T16:46:31.000Z | 2018-11-22T11:10:41.000Z | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | #ifndef MODEM_SCMA_HPP_
#define MODEM_SCMA_HPP_
#include <complex>
#include <vector>
#include "Tools/Code/SCMA/modem_SCMA_functions.hpp"
#include "../Modem.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float, typename Q = R, tools::proto_psi<Q> PSI = tools::psi_0>
class Modem_S... | 30.072464 | 126 | 0.61012 | OlivierHartmann |
cca36cc4b702dcbc13369012d2af07499411556b | 1,180 | cpp | C++ | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | #include "Variable.h"
using namespace std;
Variable::Variable(Alloymaker &alloymaker)
{
setAlloymaker(alloymaker);
}
void Variable::setAlloymaker(Alloymaker &value)
{
alloymaker = &value;
}
Alloymaker &Variable::getAlloymaker()
{
return *alloymaker;
}
double Variable::composition(Standard &std)
{
v... | 15.733333 | 67 | 0.659322 | metalicn20 |
ccb2eda4b66331f8b88bdf846cb6e661b814ea75 | 1,107 | hpp | C++ | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_CORE_SERVICE_LOG_HPP_
#define BE_CORE_SERVICE_LOG_HPP_
#include "service.hpp"
#include "service_ids.hpp"
#include "console_log_sink.hpp"
#include "log.hpp"
namespace be {
///////////////////////////////////////////////////////////////////////////////
template <>
struct SuppressUndefinedServic... | 23.0625 | 79 | 0.455285 | magicmoremagic |
ccb46faba940aeba89adb75ed17c2ba62fc87e42 | 365 | cpp | C++ | src/messages/CountMessage.cpp | Wolkabout/offset-printing-machine-simulator-lib | 673c45692b7f12c189e7d6d6007d01913bf868b7 | [
"Apache-2.0"
] | null | null | null | src/messages/CountMessage.cpp | Wolkabout/offset-printing-machine-simulator-lib | 673c45692b7f12c189e7d6d6007d01913bf868b7 | [
"Apache-2.0"
] | null | null | null | src/messages/CountMessage.cpp | Wolkabout/offset-printing-machine-simulator-lib | 673c45692b7f12c189e7d6d6007d01913bf868b7 | [
"Apache-2.0"
] | null | null | null | //
// Created by nvuletic on 8.8.19..
//
#include "CountMessage.h"
namespace simulator
{
CountMessage::CountMessage(int count, double percentage) : m_count(count), m_percentage(percentage) {}
int CountMessage::getCount() const
{
return m_count;
}
double CountMessage::getPercentage() cons... | 17.380952 | 106 | 0.652055 | Wolkabout |
ccbb82240f83480c1dff283a2e241ccafbe73505 | 2,169 | cc | C++ | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <unordered_map>
#include "string_utils.h"
bool Check(std::unordered_map<std::string_view, int> const &known_facts,
std::vector<std::string_view> const &tokens) {
for (int i = 2; i < tokens.size(); i += 2) {
auto const thing = Trim(tokens[i], ":,");
a... | 25.821429 | 73 | 0.573997 | triglav |
ccbf07113c9d9e04ac7ea016896648451d095958 | 404 | cpp | C++ | libi3/path_exists.cpp | andreatulimiero/i3pp | 3e1268ec690bce1821d47df11a985145c289573c | [
"BSD-3-Clause"
] | null | null | null | libi3/path_exists.cpp | andreatulimiero/i3pp | 3e1268ec690bce1821d47df11a985145c289573c | [
"BSD-3-Clause"
] | null | null | null | libi3/path_exists.cpp | andreatulimiero/i3pp | 3e1268ec690bce1821d47df11a985145c289573c | [
"BSD-3-Clause"
] | null | null | null | /*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
*
*/
#include "libi3.hpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
/*
* Checks if the given path exists by calling stat().
*
*/
bool path_ex... | 18.363636 | 65 | 0.653465 | andreatulimiero |
ccbfb66b552f44a9321a1a584ac12c9fcc48c154 | 1,590 | cpp | C++ | aws-cpp-sdk-iotsitewise/source/model/CreateAccessPolicyRequest.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-iotsitewise/source/model/CreateAccessPolicyRequest.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-iotsitewise/source/model/CreateAccessPolicyRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotsitewise/model/CreateAccessPolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoTSiteWise::Model;
using namespace Aws::Utils::J... | 22.714286 | 114 | 0.755975 | lintonv |
ccbff3113c7f71866afd884399212a87286ec115 | 875 | hpp | C++ | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | #ifndef OFX_SWIZZLE_DETAIL_FUNCTIONAL_INCREMENT_DECREMENT_HPP
#define OFX_SWIZZLE_DETAIL_FUNCTIONAL_INCREMENT_DECREMENT_HPP
#include <utility>
namespace ofxSwizzle { namespace detail {
struct pre_increment
{
template <typename T>
constexpr auto operator()(T& t) const -> decltype(++t)
{
return ++t... | 18.617021 | 71 | 0.659429 | t6tn4k |
ccc12c1372e0e0c2f549742135a4899726092225 | 1,172 | cpp | C++ | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | #include <benchmark/benchmark.h>
#include <shadowmocap/message.hpp>
#include <algorithm>
#include <random>
#include <vector>
std::vector<char> make_random_bytes(std::size_t n)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<int> dis(-128, 127);
std::vector<char> buf(n... | 26.636364 | 78 | 0.674061 | motion-workshop |
ccc7cd504f578562c05f68a24fb31a246c31de29 | 1,221 | cpp | C++ | algorithms/cpp/632.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | 3 | 2016-10-01T10:15:09.000Z | 2017-07-09T02:53:36.000Z | algorithms/cpp/632.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | algorithms/cpp/632.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
class Solution {
private:
struct Element {
int val;
int idx;
int row;
Element(int val, int idx, int row): val(val), idx(idx), row(row) {}
bool operator <(const Element &a) const {
return ... | 25.978723 | 75 | 0.465192 | viing937 |
cccb113e383cab85bb0427179ecb4cbe2936ba12 | 1,485 | cpp | C++ | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 3 | 2017-11-29T07:11:24.000Z | 2020-03-03T19:23:33.000Z | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | null | null | null | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 1 | 2018-07-12T12:48:52.000Z | 2018-07-12T12:48:52.000Z | #include "dvd_reader.h"
#include "ifo_types.h"
#include "ifo_read.h"
#include "nav_read.h"
#include "cdrom.h"
#include "dvdinfo.h"
int detect_media_type(const char *psz_path)
{
int i_type;
char *psz_dup;
char psz_tmp[20];
dvd_reader_t *dvd;
vcddev_t* p_cddev;
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
if (... | 19.038462 | 51 | 0.642424 | XULPlayer |
ccce06e6b4fdbb371e2d9d97416f8c732c9fff2c | 1,540 | cpp | C++ | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | athnomedical/Aoba | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | #include "TimeoutTaskManager.hpp"
namespace s3d::aoba {
size_t TimeoutTaskManager::addTask(const std::function<void()>& task, double ms, bool threading) {
m_timeouts.emplace_back(task, ms, threading);
return m_timeouts[m_timeouts.size() - 1].id();
}
bool TimeoutTaskManager::isAlive(size_t... | 26.101695 | 102 | 0.521429 | KondoA9 |
ccceb823ea5512a19cbef0aea09a9ecb142d1b44 | 1,577 | cpp | C++ | src/main/cpp/autonomous/AutoRightSideIntake.cpp | calcmogul/Robot-2020 | b416c202794fb7deea0081beff2f986de7001ed9 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/autonomous/AutoRightSideIntake.cpp | calcmogul/Robot-2020 | b416c202794fb7deea0081beff2f986de7001ed9 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/autonomous/AutoRightSideIntake.cpp | calcmogul/Robot-2020 | b416c202794fb7deea0081beff2f986de7001ed9 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) FRC Team 3512. All Rights Reserved.
#include <frc/trajectory/constraint/MaxVelocityConstraint.h>
#include <frc/trajectory/constraint/RectangularRegionConstraint.h>
#include <wpi/numbers>
#include "Robot.hpp"
namespace frc3512 {
void Robot::AutoRightSideIntake() {
// Initial Pose - Right in line... | 32.183673 | 74 | 0.638554 | calcmogul |
cccebc6745a7bd1add73efc60d91d7422cab2683 | 3,915 | cpp | C++ | Testing/TestEnumConversions.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 2 | 2021-01-19T02:21:48.000Z | 2022-03-26T23:05:49.000Z | Testing/TestEnumConversions.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 3 | 2020-07-26T18:48:21.000Z | 2020-10-28T00:45:42.000Z | Testing/TestEnumConversions.cpp | pothosware/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T06:22:20.000Z | 2022-03-24T06:22:20.000Z | // Copyright (c) 2019-2020 Nicholas Corgan
// SPDX-License-Identifier: BSD-3-Clause
#include "Utility.hpp"
#include <Pothos/Framework.hpp>
#include <Pothos/Object.hpp>
#include <Pothos/Testing.hpp>
#include <arrayfire.h>
#include <string>
#include <typeinfo>
namespace GPUTests
{
template <typename Type1, typename... | 34.043478 | 79 | 0.691699 | ncorgan |
ccd778c92e2ae07f2ba0502f88351f5c392bddca | 28,491 | hpp | C++ | boost/graph/r_c_shortest_paths.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/graph/r_c_shortest_paths.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/graph/r_c_shortest_paths.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | // r_c_shortest_paths.hpp header file
// Copyright Michael Drexl 2005, 2006.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP
#define BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP
#i... | 37.886968 | 161 | 0.661226 | cpp-pm |
ccd893a9826c4837bd402bf73b06c52f897cfd8d | 35,559 | cpp | C++ | kernel/src/kernelimpl.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | kernel/src/kernelimpl.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | kernel/src/kernelimpl.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | #include "ep/cpp/platform.h"
#include "ep/cpp/plugin.h"
#include "kernelimpl.h"
#include "components/stdiostream.h"
#include "components/lua.h"
#include "components/logger.h"
#include "components/timerimpl.h"
#include "components/pluginmanager.h"
#include "components/pluginloader.h"
#include "components/nativepluginl... | 31.083042 | 243 | 0.708344 | Euclideon |
ccdd2555f82ecda3316f35a445dd812b38ff13e3 | 193 | hpp | C++ | Classes/GameScene.hpp | InversePalindrome/Apophis | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | 7 | 2018-08-20T17:28:29.000Z | 2020-09-05T15:19:31.000Z | Classes/GameScene.hpp | InversePalindrome/JATR66 | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | null | null | null | Classes/GameScene.hpp | InversePalindrome/JATR66 | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | 1 | 2019-12-25T12:02:03.000Z | 2019-12-25T12:02:03.000Z | /*
Copyright (c) 2018 Inverse Palindrome
Apophis - GameScene.hpp
InversePalindrome.com
*/
#pragma once
#include <cocos/2d/CCScene.h>
cocos2d::Scene* getGameScene(const std::string& level); | 14.846154 | 55 | 0.751295 | InversePalindrome |
ef9adb4af0ba3756488f6a0f2409d695b815528d | 1,875 | cpp | C++ | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 239 | 2020-11-26T12:53:51.000Z | 2022-03-24T01:02:49.000Z | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 6 | 2020-11-27T04:00:44.000Z | 2021-07-07T03:02:57.000Z | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 24 | 2020-11-26T22:59:27.000Z | 2022-02-06T04:02:50.000Z | #include <flapGame/Core.h>
#include <flapGame/GLHelpers.h>
// clang-format off
#define STBI_MALLOC(sz) PLY_HEAP.alloc(sz)
#define STBI_REALLOC(p, newsz) PLY_HEAP.realloc(p, newsz)
#define STBI_FREE(p) PLY_HEAP.free(p)
// clang-format om
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_PNG
#inclu... | 28.409091 | 104 | 0.597333 | KnyazQasan |
ef9f57549e1dd00801d74e754e07ec188ad918e1 | 973 | cpp | C++ | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 22 | 2021-10-01T20:14:15.000Z | 2022-02-22T15:27:20.000Z | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 15 | 2021-10-01T20:24:55.000Z | 2021-10-31T05:55:14.000Z | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 76 | 2021-10-01T20:01:06.000Z | 2022-03-02T16:15:24.000Z | // https://practice.geeksforgeeks.org/viewSol.php?subId=58bdb4aa62394291d57f659e2c839932&pid=703402&user=tomarshiv51
// Initial template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
int lps(string s) {
// Your cod... | 15.693548 | 116 | 0.463515 | Bhannasa |
efa401af672bc08b39212830123acadded6ac823 | 1,764 | cpp | C++ | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 9 | 2017-08-31T06:03:18.000Z | 2019-01-06T05:07:26.000Z | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2017-08-31T06:23:22.000Z | 2022-01-24T06:47:19.000Z | // ExtendedCPU5Intel.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "ExtendedCPU5Intel.h"
#include "CPUIDx86.h"
#include "ReportRegs.h"
// CExtendedCPU5Intel dialog
IMPLEMENT_DYNCREATE(CExtendedCPU5Intel, CLeaves)
CExtendedCPU5Intel::CExtendedCPU5Intel()
: CLeaves(CExtendedCP... | 23.837838 | 77 | 0.573696 | allen7575 |
efa44fa587e0b8ee43b264ca89fcd327d505a17d | 20,926 | cpp | C++ | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8Path2D.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8Path2D.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8Path2D.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8Path2D.h"
#include "bindings/core/v8/V8Path... | 38.823748 | 221 | 0.704721 | jingcao80 |
efaa95e67d306944eeea043d8368c7cea94e20aa | 5,430 | cc | C++ | chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium 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 "chrome/browser/media/router/discovery/media_sink_service_base.h"
#include "base/test/mock_callback.h"
#include "base/timer/mock_timer.h"
#includ... | 37.708333 | 79 | 0.759484 | metux |
efac67313dd9bd9f69caae66d56b1ffaf67e9911 | 1,591 | hpp | C++ | internal/o80_internal/controllers_manager.hpp | luator/o80 | 65fe75bc6d375db0e4a2fe075c097a54dde7b571 | [
"BSD-3-Clause"
] | null | null | null | internal/o80_internal/controllers_manager.hpp | luator/o80 | 65fe75bc6d375db0e4a2fe075c097a54dde7b571 | [
"BSD-3-Clause"
] | null | null | null | internal/o80_internal/controllers_manager.hpp | luator/o80 | 65fe75bc6d375db0e4a2fe075c097a54dde7b571 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (C) 2019 Max Planck Gesellschaft
// Author : Vincent Berenz
#pragma once
#include <memory>
#include "command.hpp"
#include "controller.hpp"
#include "o80/states.hpp"
#include "time_series/multiprocess_time_series.hpp"
namespace o80
{
template <int NB_ACTUATORS, int QUEUE_SIZE, class STATE>
class Control... | 27.912281 | 70 | 0.733501 | luator |
eface07d49cd2d31155cbaf2a0de6163d32bde90 | 5,470 | cc | C++ | nacl/net/rtp/rtp_sender.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 9 | 2015-12-23T21:18:28.000Z | 2018-11-25T10:10:12.000Z | nacl/net/rtp/rtp_sender.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 1 | 2016-01-08T20:56:21.000Z | 2016-01-08T20:56:21.000Z | nacl/net/rtp/rtp_sender.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 6 | 2015-12-04T18:23:49.000Z | 2018-11-06T03:52:58.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Copyright 2015 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/rtp/rtp_sender.h"
#include "base/big_endian.h"
#include "base/logger.h"
#include ... | 36.711409 | 80 | 0.706399 | maxsong11 |
efae40771253fa3bfb27b1ee80c55f32c9e089be | 3,140 | cpp | C++ | minesweeper_v1/Instructions.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | 6 | 2021-12-28T08:07:16.000Z | 2022-03-13T06:17:45.000Z | minesweeper_v1/Instructions.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | null | null | null | minesweeper_v1/Instructions.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | 1 | 2021-12-24T07:19:16.000Z | 2021-12-24T07:19:16.000Z | #include "instructions.h"
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include "cmanip.h"
#include "game_model.h"
#include "global.h"
#include "main_utils.h"
#include "scene_manager.h"
#include "windows.h"
const long long MAX_TIME = (long long)1e18;
int PADDING_I... | 28.545455 | 80 | 0.58758 | sangpham2710 |
efafcec13c75a40f7bfe2a3549a569f79f732878 | 83,097 | cc | C++ | protobufs/c_peer2peer_netmessages.pb.cc | devilesk/dota-replay-parser | e83b96ee513a7193e6703615df4f676e27b1b8a0 | [
"0BSD"
] | 2 | 2017-02-03T16:57:17.000Z | 2020-10-28T21:13:12.000Z | protobufs/c_peer2peer_netmessages.pb.cc | invokr/dota-replay-parser | 6260aa834fb47f0f1a8c713f4edada6baeb9dcfa | [
"0BSD"
] | 1 | 2017-02-03T22:44:17.000Z | 2017-02-04T08:58:13.000Z | protobufs/c_peer2peer_netmessages.pb.cc | invokr/dota-replay-parser | 6260aa834fb47f0f1a8c713f4edada6baeb9dcfa | [
"0BSD"
] | 2 | 2017-02-03T17:51:57.000Z | 2021-05-22T02:40:00.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: c_peer2peer_netmessages.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "c_peer2peer_netmessages.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/pro... | 33.944853 | 133 | 0.703118 | devilesk |