hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2972e23f812deffb1c24b4b95ce84b839f8c37be | 286 | hpp | C++ | worker/include/RTC/RemoteBitrateEstimator/BandwidthUsage.hpp | kicyao/mediasoup | ca8e2d5b57aa2b0d1e5812bb28782d858cd669c6 | [
"0BSD"
] | null | null | null | worker/include/RTC/RemoteBitrateEstimator/BandwidthUsage.hpp | kicyao/mediasoup | ca8e2d5b57aa2b0d1e5812bb28782d858cd669c6 | [
"0BSD"
] | null | null | null | worker/include/RTC/RemoteBitrateEstimator/BandwidthUsage.hpp | kicyao/mediasoup | ca8e2d5b57aa2b0d1e5812bb28782d858cd669c6 | [
"0BSD"
] | null | null | null | #ifndef MS_RTC_REMOTE_BITRATE_ESTIMATOR_BANDWIDTH_USAGE_HPP
#define MS_RTC_REMOTE_BITRATE_ESTIMATOR_BANDWIDTH_USAGE_HPP
// webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h
namespace RTC
{
enum BandwidthUsage
{
kBwNormal,
kBwUnderusing,
kBwOverusing
};
}
#endif
| 16.823529 | 64 | 0.835664 | kicyao |
2973abec041a836ec48096ee61f42e4ffeeebc83 | 11,983 | cpp | C++ | ndn-cxx/mgmt/dispatcher.cpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 106 | 2015-01-06T10:08:29.000Z | 2022-02-27T13:40:16.000Z | ndn-cxx/mgmt/dispatcher.cpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 6 | 2015-10-15T23:21:06.000Z | 2016-12-20T19:03:10.000Z | ndn-cxx/mgmt/dispatcher.cpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 147 | 2015-01-15T15:07:29.000Z | 2022-02-03T13:08:43.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2021 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 35.038012 | 111 | 0.650505 | Pesa |
2976df73404b8968457f536ada57c1d80954d318 | 432 | cc | C++ | function_ref/snippets/snippet-function_ref-private-spec.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | 1 | 2022-01-21T20:10:46.000Z | 2022-01-21T20:10:46.000Z | function_ref/snippets/snippet-function_ref-private-spec.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | function_ref/snippets/snippet-function_ref-private-spec.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0792r5.html
namespace std
{
template <typename Signature>
class function_ref
{
void* erased_object; // exposition only
R(*erased_function)(Args...); // exposition only
// `R`, and `Args...` are the return type, and the para... | 25.411765 | 79 | 0.597222 | descender76 |
29791ba3fca8189692e6356aa096de29d121ca99 | 22,025 | hpp | C++ | boost/boost/move/detail/fwd_macros.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 24 | 2015-08-25T05:35:37.000Z | 2020-10-24T14:21:59.000Z | boost/boost/move/detail/fwd_macros.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 97 | 2015-08-25T16:11:16.000Z | 2019-03-17T00:54:32.000Z | boost/boost/move/detail/fwd_macros.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 9 | 2015-08-26T03:11:38.000Z | 2018-03-21T07:16:29.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2014-2014. 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)
//
// See http://www.boost.org/libs/contain... | 47.263948 | 110 | 0.835868 | tonystone |
297aba696f17f03a57641ec46460184af9a8c119 | 10,008 | cpp | C++ | engine/audio/allegro.cpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | null | null | null | engine/audio/allegro.cpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | 8 | 2020-03-29T21:03:23.000Z | 2020-04-11T23:28:14.000Z | engine/audio/allegro.cpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | 1 | 2020-06-11T16:54:37.000Z | 2020-06-11T16:54:37.000Z | //
// Sound engine wrappers for Allegro
//
#ifdef USE_ALSOUND
#include <stdlib.h> // atexit(), random
#include <string.h> // String splicing routines
#include <allegro.h>
#include "../ithelib.h"
#include "../console.hpp"
#include "../media.hpp"
#include "../loadfile.hpp"
#include "../sound.h"
#include "... | 16.905405 | 100 | 0.643086 | jpmorris33 |
297b86fd96f873aa7d487aad32e5d6749ab0f63c | 67,207 | cc | C++ | networkio.cc | Luthaf/zeopp | d3fed24fb157583323ece4966f98df293d3fa9a4 | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-05-24T00:42:45.000Z | 2018-05-24T12:34:05.000Z | networkio.cc | Luthaf/zeopp | d3fed24fb157583323ece4966f98df293d3fa9a4 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-04-23T12:21:33.000Z | 2021-04-23T12:41:03.000Z | networkio.cc | Luthaf/zeopp | d3fed24fb157583323ece4966f98df293d3fa9a4 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <ctime>
#include <fstream>
#include <string>
#include <sstream>
#include "networkio.h"
#include "string_additions.h"
#include "networkinfo.h"
#include "geometry.h"
#include "symbcalc.h"
#include "zeo_consts.h"
#include "network.h" ... | 37.820484 | 295 | 0.588227 | Luthaf |
297c6dcb64155ce6bd1968f192ae11d61e356c3d | 9,998 | cpp | C++ | rsa.cpp | ex0ample/cryptopp | 9ea66ce4d97d59d61e49c93f5af191107ebd1925 | [
"BSL-1.0"
] | 1 | 2020-03-10T06:53:50.000Z | 2020-03-10T06:53:50.000Z | rsa.cpp | ex0ample/cryptopp | 9ea66ce4d97d59d61e49c93f5af191107ebd1925 | [
"BSL-1.0"
] | null | null | null | rsa.cpp | ex0ample/cryptopp | 9ea66ce4d97d59d61e49c93f5af191107ebd1925 | [
"BSL-1.0"
] | null | null | null | // rsa.cpp - originally written and placed in the public domain by Wei Dai
#include "pch.h"
#include "rsa.h"
#include "asn.h"
#include "sha.h"
#include "oids.h"
#include "modarith.h"
#include "nbtheory.h"
#include "algparam.h"
#include "fips140.h"
#include "pkcspad.h"
#if defined(CRYPTOPP_DEBUG) && !defi... | 30.205438 | 118 | 0.691138 | ex0ample |
2981fde212706d40f34805e7f73e99d810971414 | 2,617 | cpp | C++ | tests/experimental/test_ExperimentalUserConstraint.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 32 | 2015-05-11T02:38:40.000Z | 2022-02-23T07:31:26.000Z | tests/experimental/test_ExperimentalUserConstraint.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 10 | 2018-06-08T14:44:58.000Z | 2021-08-19T16:07:21.000Z | tests/experimental/test_ExperimentalUserConstraint.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 8 | 2019-05-29T21:40:31.000Z | 2021-12-01T09:31:15.000Z | #include <boost/test/unit_test.hpp>
#include <crave/ir/UserConstraint.hpp>
#include <crave/ir/UserExpression.hpp>
#include <crave/utils/Evaluator.hpp>
#include <crave/ir/visitor/ComplexityEstimationVisitor.hpp>
// using namespace std;
using namespace crave;
BOOST_FIXTURE_TEST_SUITE(UserConstraint, Context_Fixture)
... | 31.53012 | 81 | 0.690485 | quadric-io |
2984d51cde646c84acf0c927b0996cddf100c31e | 2,669 | cc | C++ | src/pygmm.cc | zxytim/fast-gmm | 5b6940d62c950889d51d5a3dfc99907e3b631958 | [
"MIT"
] | 20 | 2015-10-27T10:41:32.000Z | 2020-12-23T06:10:36.000Z | src/pygmm.cc | H2020-InFuse/fast-gmm | e88b58d0cb3c9cf1579e6e7c6523a4f10d7e904a | [
"MIT"
] | 3 | 2017-03-06T07:51:38.000Z | 2018-08-16T08:36:34.000Z | src/pygmm.cc | H2020-InFuse/fast-gmm | e88b58d0cb3c9cf1579e6e7c6523a4f10d7e904a | [
"MIT"
] | 6 | 2017-01-26T12:57:01.000Z | 2019-05-18T06:55:16.000Z | /*
* $File: pygmm.cc
* $Date: Wed Dec 11 18:50:31 2013 +0800
* $Author: Xinyu Zhou <zxytim[at]gmail[dot]com>
*/
#include "pygmm.hh"
#include "gmm.hh"
#include <fstream>
using namespace std;
typedef vector<vector<real_t>> DenseDataset;
void conv_double_pp_to_vv(double **Xp, DenseDataset &X, int nr_instance, int... | 27.515464 | 130 | 0.681529 | zxytim |
2985674b4ce02f5cef60c46ba37c6b8b0fca82b8 | 19,310 | cc | C++ | gearmand/gearmand.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 712 | 2016-07-02T03:32:22.000Z | 2022-03-23T14:23:02.000Z | gearmand/gearmand.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 294 | 2016-07-03T16:17:41.000Z | 2022-03-30T04:37:49.000Z | gearmand/gearmand.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 163 | 2016-07-08T10:03:38.000Z | 2022-01-21T05:03:48.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011-2013 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... | 29.662058 | 416 | 0.68348 | alionurdemetoglu |
2988952542ad7b50ab726e6e0e3513f94b4ab8b1 | 12,242 | cpp | C++ | src/engine/components/replay/cl_replaymoviemanager.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/components/replay/cl_replaymoviemanager.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/components/replay/cl_replaymoviemanager.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//
#include "cl_replaymoviemanager.h"
#include "replay/ireplaymoviemanager.h"
#include "replay/ireplaymovierenderer.h"
#include "replay/replay.h"
#in... | 30.452736 | 118 | 0.680444 | cstom4994 |
298d359278ad51afbf71c75dfa098289dfd272a4 | 5,807 | cpp | C++ | samples/OpenGL/basic/main.cpp | KHeresy/SS6ssbpLib | 0cf4f08ae31a544f64249508cbd80289087f659d | [
"MIT"
] | null | null | null | samples/OpenGL/basic/main.cpp | KHeresy/SS6ssbpLib | 0cf4f08ae31a544f64249508cbd80289087f659d | [
"MIT"
] | null | null | null | samples/OpenGL/basic/main.cpp | KHeresy/SS6ssbpLib | 0cf4f08ae31a544f64249508cbd80289087f659d | [
"MIT"
] | null | null | null | #include <windows.h>
#include <stdio.h>
#include <iostream>
#include <GL/glew.h>
#include <GL/glut.h>
#include "./SSPlayer/SS6Player.h"
//画面サイズ
#define WIDTH (1280)
#define HEIGHT (720)
//FPS制御用
int nowtime = 0; //経過時間
int drawtime = 0; //前回の時間
//glutのコールバック関数
void mouse(int button, int state, int x, int y);
void ... | 20.81362 | 91 | 0.700017 | KHeresy |
298d63aea0d103907212ce09aea06bdbfb1a4975 | 224 | hpp | C++ | tools/TP/TP.hpp | jon-dez/easy-imgui | 06644279045c167e300b346f094f3dbebcbc963b | [
"MIT"
] | null | null | null | tools/TP/TP.hpp | jon-dez/easy-imgui | 06644279045c167e300b346f094f3dbebcbc963b | [
"MIT"
] | null | null | null | tools/TP/TP.hpp | jon-dez/easy-imgui | 06644279045c167e300b346f094f3dbebcbc963b | [
"MIT"
] | null | null | null | #include <functional>
#include <sstream>
namespace TP {
void prepare_pool(uint32_t number_threads = 0);
void add_job(std::function<void()> job);
void join_pool();
const std::stringstream& message_stream();
} | 24.888889 | 51 | 0.700893 | jon-dez |
299745dd1c98b88a7f73e5c8b93b2f38c014d1d2 | 350 | cpp | C++ | restbed/test/regression/source/missing_regex_support_on_gcc_4.8.cpp | stevens2017/Aware | cd4754a34c809707c219a173dc1ad494e149cdb1 | [
"BSD-3-Clause"
] | null | null | null | restbed/test/regression/source/missing_regex_support_on_gcc_4.8.cpp | stevens2017/Aware | cd4754a34c809707c219a173dc1ad494e149cdb1 | [
"BSD-3-Clause"
] | null | null | null | restbed/test/regression/source/missing_regex_support_on_gcc_4.8.cpp | stevens2017/Aware | cd4754a34c809707c219a173dc1ad494e149cdb1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2013-2017, Corvusoft Ltd, All Rights Reserved.
*/
//System Includes
#include <regex>
//Project Includes
//External Includes
#include <catch.hpp>
//System Namespaces
//Project Namespaces
using std::regex;
//External Namespaces
TEST_CASE( "missing regex support", "[stdlib]" )
{
REQUIRE_NOTHROW... | 14.583333 | 59 | 0.694286 | stevens2017 |
2998a6a26e60531b0845f7a99fac81d96dea1b83 | 431 | hpp | C++ | simulations/landau/params.yaml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | 3 | 2022-02-28T08:47:07.000Z | 2022-03-01T10:29:08.000Z | simulations/landau/params.yaml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | simulations/landau/params.yaml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#pragma once
constexpr char const* const params_yaml = R"PDI_CFG(Mesh:
x_min: 0.0
x_max: 12.56637061435917
x_size: 128
vx_min: -6.0
vx_max: +6.0
vx_size: 127
SpeciesInfo:
- charge: -1
mass: 0.0005
density_eq: 1.
temperature_eq: 1.
mean_velocity_eq: 0.
perturb_amp... | 14.862069 | 57 | 0.693735 | gyselax |
299ae8675a8186dbfd9a19603c91c7f05f292fa4 | 2,759 | cpp | C++ | wxMsRunMailClient.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | wxMsRunMailClient.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | wxMsRunMailClient.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | /*-----------------------------------------------------------------
* Name: wxMsRunMailClient.cpp
* Purpose: code to invoke the external mail client - eg: Thunderbird
* Author: A. Wiegert
*
* Copyright:
* Licence: wxWidgets license
*------------------------------------------------------------... | 29.666667 | 79 | 0.540051 | tester0077 |
299c6e360b33ef7676eab2cc58b806bb55ba12e9 | 18,700 | cpp | C++ | Source/WndSpyGui/SpyMsgWnd.cpp | Skight/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | 24 | 2017-03-16T05:32:44.000Z | 2021-12-11T13:49:07.000Z | Source/WndSpyGui/SpyMsgWnd.cpp | zhen-e-liu/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | null | null | null | Source/WndSpyGui/SpyMsgWnd.cpp | zhen-e-liu/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | 13 | 2017-03-16T05:26:12.000Z | 2021-07-04T16:24:42.000Z | #include "WndSpyGui.h"
#include "SndMsgFunc.h"
#include "SpyMsgWnd.h"
//////////////////////////////////////////////////////////////////////////
LRESULT OnMainTrayNotify(HWND hwnd, LPARAM lParam);
//////////////////////////////////////////////////////////////////////////
LRESULT CALLBACK WndProc_MsgBackWnd(HWND hwn... | 28.593272 | 96 | 0.671925 | Skight |
299d2fa28bb07ff75bdc1f9b25d27f81564859c9 | 7,563 | cpp | C++ | modules/qtwidgets/src/qtwidgetssettings.cpp | tirpidz/inviwo | a0ef149fac0e566ef3f0298112e2031d344f2f97 | [
"BSD-2-Clause"
] | null | null | null | modules/qtwidgets/src/qtwidgetssettings.cpp | tirpidz/inviwo | a0ef149fac0e566ef3f0298112e2031d344f2f97 | [
"BSD-2-Clause"
] | null | null | null | modules/qtwidgets/src/qtwidgetssettings.cpp | tirpidz/inviwo | a0ef149fac0e566ef3f0298112e2031d344f2f97 | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2016-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 48.171975 | 100 | 0.681211 | tirpidz |
299dfc2582c7385750daa61987b30351807b0c75 | 1,514 | hpp | C++ | include/tnt/linear/impl/discrete_cosine_transform_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | null | null | null | include/tnt/linear/impl/discrete_cosine_transform_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | 1 | 2018-06-09T04:40:01.000Z | 2018-06-09T04:40:01.000Z | include/tnt/linear/impl/discrete_cosine_transform_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | null | null | null | #ifndef TNT_LINEAR_DISCRETE_COSINE_TRANSFORM_IMPL_HPP
#define TNT_LINEAR_DISCRETE_COSINE_TRANSFORM_IMPL_HPP
#include <tnt/linear/discrete_cosine_transform.hpp>
#include <tnt/utils/testing.hpp>
#include <tnt/utils/simd.hpp>
namespace tnt
{
namespace detail
{
constexpr static int dct_forward_coeffs[64] = {
1, ... | 28.566038 | 64 | 0.437913 | JordanCheney |
299e10e3b23d88354c036e099fdf25bff771e74e | 813 | cpp | C++ | test2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | test2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | test2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
typedef unsigned long long ll;
typedef pair<int, int> ii;
const int N = 1010;
int n, g[N][N];
bool cows[N][N];
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
cin >> n;
int ans = 0;
for (int... | 22.583333 | 65 | 0.403444 | birdhumming |
299ff19dae424ffb3e837720712ea9bb0bdf9d47 | 66,157 | cpp | C++ | src/libawkward/array/RecordArray.cpp | HenryDayHall/awkward-1.0 | 4a860e775502f9adb953524c35c5a2de8f7a3181 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/array/RecordArray.cpp | HenryDayHall/awkward-1.0 | 4a860e775502f9adb953524c35c5a2de8f7a3181 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/array/RecordArray.cpp | HenryDayHall/awkward-1.0 | 4a860e775502f9adb953524c35c5a2de8f7a3181 | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/libawkward/array/RecordArray.cpp", line)
#define FILENAME_C(line) FILENAME_FOR_EXCEPTIONS_C("src/libawkward/array/RecordArray.cpp", line)
#include <sstream>
#include <algorithm>... | 34.331604 | 97 | 0.513899 | HenryDayHall |
29a327f104fa81e5637e6803b8eb8821c8da5f7e | 2,782 | cpp | C++ | src/around_the_world_ygm.cpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | null | null | null | src/around_the_world_ygm.cpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | 4 | 2022-03-21T18:20:51.000Z | 2022-03-31T23:52:51.000Z | src/around_the_world_ygm.cpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | 2 | 2022-03-21T17:37:45.000Z | 2022-03-22T23:08:39.000Z | // Copyright 2019-2021 Lawrence Livermore National Security, LLC and other YGM
// Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: MIT
#include <algorithm>
#include <string>
#include <ygm/comm.hpp>
#include <ygm/utility.hpp>
static int num_trips;
static int curr_trip = ... | 26.245283 | 80 | 0.619698 | steiltre |
29a52f6f691e7a8f94744c268a96a215c2133a20 | 6,344 | cpp | C++ | toonz/sources/stdfx/channelmixerfx.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 3,710 | 2016-03-26T00:40:48.000Z | 2022-03-31T21:35:12.000Z | toonz/sources/stdfx/channelmixerfx.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 4,246 | 2016-03-26T01:21:45.000Z | 2022-03-31T23:10:47.000Z | toonz/sources/stdfx/channelmixerfx.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 633 | 2016-03-26T00:42:25.000Z | 2022-03-17T02:55:13.000Z |
#include "stdfx.h"
#include "tfxparam.h"
//#include "trop.h"
#include <math.h>
#include "tpixelutils.h"
#include "globalcontrollablefx.h"
//==================================================================
class ChannelMixerFx final : public GlobalControllableFx {
FX_PLUGIN_DECLARATION(ChannelMixerFx)
TRaster... | 33.21466 | 80 | 0.584016 | rozhuk-im |
29a603fb54da5e32d67f16238b519000b88f27ab | 7,084 | cpp | C++ | src/caffe/syncedmem.cpp | Amanda-Barbara/nvcaffe | 5155a708b235a818ce300aa3f9fc235ece9a35fb | [
"BSD-2-Clause"
] | 758 | 2015-03-08T20:54:38.000Z | 2022-01-11T03:14:51.000Z | src/caffe/syncedmem.cpp | Matsuko9/caffe | 17e347e42e664b87d80f63bfbbb89bec5e559242 | [
"BSD-2-Clause"
] | 493 | 2015-04-28T00:08:53.000Z | 2021-08-04T07:26:54.000Z | src/caffe/syncedmem.cpp | Matsuko9/caffe | 17e347e42e664b87d80f63bfbbb89bec5e559242 | [
"BSD-2-Clause"
] | 389 | 2015-03-05T12:11:44.000Z | 2022-03-13T21:49:42.000Z | #include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/type.hpp"
#include "caffe/util/gpu_memory.hpp"
#include "caffe/util/math_functions.hpp"
#define MAX_ELEM_TO_SHOW 20UL
namespace caffe {
// If CUDA is available and in GPU mode, host memory will be allocated pinned,
// using cudaMallocHost. It... | 29.032787 | 94 | 0.600085 | Amanda-Barbara |
29a70f50fbea4c6ffa18e9527367ee4e49a69d32 | 126 | cpp | C++ | src/sylvan/queens.cpp | SSoelvsten/bdd-benchmark | f1176feb1584ed8a40bbd6ca975c5d8770d5786c | [
"MIT"
] | 3 | 2021-02-05T10:03:53.000Z | 2022-03-24T08:31:40.000Z | src/sylvan/queens.cpp | SSoelvsten/bdd-benchmark | f1176feb1584ed8a40bbd6ca975c5d8770d5786c | [
"MIT"
] | 7 | 2020-11-20T13:48:01.000Z | 2022-03-05T16:52:12.000Z | src/sylvan/queens.cpp | SSoelvsten/bdd-benchmark | f1176feb1584ed8a40bbd6ca975c5d8770d5786c | [
"MIT"
] | 1 | 2021-04-25T07:06:17.000Z | 2021-04-25T07:06:17.000Z | #include "../queens.cpp"
#include "package_mgr.h"
int main(int argc, char** argv)
{
run_queens<sylvan_mgr>(argc, argv);
}
| 14 | 37 | 0.674603 | SSoelvsten |
29a8e7b253d82f06641e89c5b659108250fed228 | 3,316 | cc | C++ | neighborhood-sgd.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | neighborhood-sgd.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | neighborhood-sgd.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | #include "Application.hh"
#include "GradientChart.hh"
#include "ParseController.hh"
#include "PV.hh"
#include "SGD.hh"
APPLICATION
using namespace Permute;
class NeighborhoodSGD : public Application {
private:
static Core::ParameterFloat paramLearningRate;
double LEARNING_RATE;
static Core::ParameterInt paramP... | 30.145455 | 125 | 0.674005 | lemrobotry |
29ab1c9fa868820a033c2e0e664eca05cd71dd31 | 19,832 | cpp | C++ | Source/Director.cpp | bptigg/CovidSim | 6709bafdce0dfb35f3515f47a5a5199b2c3363f3 | [
"MIT"
] | 2 | 2020-07-15T12:36:55.000Z | 2020-08-02T09:53:54.000Z | Source/Director.cpp | bptigg/CovidSim | 6709bafdce0dfb35f3515f47a5a5199b2c3363f3 | [
"MIT"
] | 1 | 2020-07-04T09:23:50.000Z | 2020-07-04T09:31:27.000Z | Source/Director.cpp | bptigg/CovidSim | 6709bafdce0dfb35f3515f47a5a5199b2c3363f3 | [
"MIT"
] | null | null | null | #include "Director.h"
bool Director::task_permission(Actor::State state)
{
if (state == Actor::idle && m_current_tasks.size() <= max_actors_not_idle && sleep_active == false)
{
return true;
}
else
{
return false;
}
}
void Director::change_actor_location(Actor* actor, Task task, bool task_end)
{
auto [publ... | 27.62117 | 207 | 0.636799 | bptigg |
29ad11fbfd2e7730c78c35718fb734dac1628d67 | 1,124 | hpp | C++ | Firmware/src/application/launchpad/LcdGui.hpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 59 | 2018-03-17T10:32:48.000Z | 2022-03-19T17:59:29.000Z | Firmware/src/application/launchpad/LcdGui.hpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 3 | 2019-11-12T09:49:59.000Z | 2020-12-09T11:55:00.000Z | Firmware/src/application/launchpad/LcdGui.hpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 10 | 2019-03-14T22:53:39.000Z | 2021-12-26T13:42:20.000Z | #ifndef APPLICATION_LAUNCHPAD_LCD_GUI_HPP_
#define APPLICATION_LAUNCHPAD_LCD_GUI_HPP_
#include <stdint.h>
namespace lcd
{
class LcdInterface;
}
namespace application
{
namespace launchpad
{
struct TimedDisplay
{
bool isOn;
uint32_t timeToDisable;
};
class Launchpad;
class LcdGui
{
public:
LcdGui( ... | 17.84127 | 59 | 0.732206 | zukaitis |
29ae839a125c655da171de74a411fa9c261d85be | 1,544 | cpp | C++ | buildcc/lib/target/src/target/pch.cpp | d-winsor/build_in_cpp | 581c827fd8c69a7258175e360847676861a5c7b0 | [
"Apache-2.0"
] | null | null | null | buildcc/lib/target/src/target/pch.cpp | d-winsor/build_in_cpp | 581c827fd8c69a7258175e360847676861a5c7b0 | [
"Apache-2.0"
] | null | null | null | buildcc/lib/target/src/target/pch.cpp | d-winsor/build_in_cpp | 581c827fd8c69a7258175e360847676861a5c7b0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 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 applic... | 34.311111 | 77 | 0.718264 | d-winsor |
29aecab0fdaff757970b13b0bd7f3aa78af863a6 | 1,063 | cpp | C++ | Solution/PhoenixEngine/Source/GameObject/GameObject.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | 2 | 2017-11-09T20:05:36.000Z | 2018-07-05T00:55:01.000Z | Solution/PhoenixEngine/Source/GameObject/GameObject.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | Solution/PhoenixEngine/Source/GameObject/GameObject.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | #include "Stdafx.h"
#include "GameObject/GameObject.h"
#include "Core/GameScene.h"
using namespace Phoenix;
FGameObject::FGameObject()
{
}
FGameObject::FGameObject(FGameScene& inGameScene, ID inId) :
Id(inId),
GameScene(&inGameScene)
{
}
FGameObject::~FGameObject()
{
}
void FGameObject::AddComponent(BaseComponen... | 21.26 | 92 | 0.78269 | rohunb |
29c1f3878fccdf48b72819cb6e9fa27b979d86af | 822 | hh | C++ | regression_tests/files_keeper_for_regression_tests.hh | WRCIECH/clang-pimpl | 2094d9c7a96de5c7bc06b18022ecbb14901345ce | [
"Apache-2.0"
] | null | null | null | regression_tests/files_keeper_for_regression_tests.hh | WRCIECH/clang-pimpl | 2094d9c7a96de5c7bc06b18022ecbb14901345ce | [
"Apache-2.0"
] | null | null | null | regression_tests/files_keeper_for_regression_tests.hh | WRCIECH/clang-pimpl | 2094d9c7a96de5c7bc06b18022ecbb14901345ce | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "compilation_pack.hh"
#include "refactor_adapter/files_keeper.hh"
#include "clang/Tooling/CommonOptionsParser.h"
#include <memory>
class FilesKeeperForRegressionTests : public FilesKeeper {
public:
FilesKeeperForRegressionTests(
CompilationPack *pack, std::shared_ptr<OptionsAdapter> opti... | 34.25 | 78 | 0.787105 | WRCIECH |
29c2baca261bfa762c0bc3ebc4bad9046caee636 | 3,691 | cpp | C++ | lib/Transforms/LoopInterchange.cpp | brightlaboratory/mlir | 23ec2164e1bb1bdfbba5eb0c4e1f8a58d1c71d22 | [
"Apache-2.0"
] | null | null | null | lib/Transforms/LoopInterchange.cpp | brightlaboratory/mlir | 23ec2164e1bb1bdfbba5eb0c4e1f8a58d1c71d22 | [
"Apache-2.0"
] | null | null | null | lib/Transforms/LoopInterchange.cpp | brightlaboratory/mlir | 23ec2164e1bb1bdfbba5eb0c4e1f8a58d1c71d22 | [
"Apache-2.0"
] | null | null | null | //===- LoopInterchange.cpp - Code to perform loop interchange --------------------===//
//
// Copyright 2019 The MLIR Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
/... | 31.818966 | 95 | 0.662693 | brightlaboratory |
29c4997a171b1d5ebec67eeeabd72d8d52824897 | 163,903 | inl | C++ | code/extlibs/Effects11/EffectVariable.inl | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/extlibs/Effects11/EffectVariable.inl | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/extlibs/Effects11/EffectVariable.inl | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
// File: EffectVariable.inl
// Content: D3DX11 Effects Variable reflection template
// These templates define the many Effect variable types.
//
///... | 35.825792 | 203 | 0.685259 | gscept |
29c56c3d1bcb1787513d3c3dae76cd1ad43545c3 | 38,414 | cpp | C++ | Source/Engine/Graphics/Batch.cpp | vivienneanthony/Existence | 8eaed7901279fd73f444c30795e7954ad70d0091 | [
"Apache-2.0"
] | 7 | 2015-01-22T05:24:44.000Z | 2019-06-13T16:16:13.000Z | Source/Engine/Graphics/Batch.cpp | vivienneanthony/Existence | 8eaed7901279fd73f444c30795e7954ad70d0091 | [
"Apache-2.0"
] | null | null | null | Source/Engine/Graphics/Batch.cpp | vivienneanthony/Existence | 8eaed7901279fd73f444c30795e7954ad70d0091 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2008-2014 the Urho3D project.
//
// 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, mod... | 42.96868 | 151 | 0.58726 | vivienneanthony |
29c6556318ec49e1a9987261477276e9dad98234 | 763 | cpp | C++ | server/Common/Packets/CGExchangeSynchLock.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/CGExchangeSynchLock.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/CGExchangeSynchLock.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
// CGExchangeSynchLock.cpp
//
/////////////////////////////////////////////////////
#include "CGExchangeSynchLock.h"
BOOL CGExchangeSynchLock::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_LockMyself), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTI... | 17.744186 | 69 | 0.640891 | viticm |
29c92b1188c4b68727cda03546847de96db4fc54 | 4,485 | cpp | C++ | VisualPipes/albaPipeScalarMatrix.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | VisualPipes/albaPipeScalarMatrix.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | VisualPipes/albaPipeScalarMatrix.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaPipeScalarMatrix
Authors: Paolo Quadrani
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without eve... | 32.266187 | 78 | 0.488294 | IOR-BIC |
29cb02559dfeefadabe73336607fde83fe317c53 | 8,333 | ipp | C++ | implement/oglplus/enums/texture_target_def.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | implement/oglplus/enums/texture_target_def.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | implement/oglplus/enums/texture_target_def.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File implement/oglplus/enums/texture_target_def.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/texture_target.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed under the Boost Software Li... | 28.537671 | 81 | 0.821193 | matus-chochlik |
29cb9bda569af1c89cd33edd8f27f22927003c2d | 1,407 | cpp | C++ | codechef/BORDER/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/BORDER/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/BORDER/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 24-02-2018 21:46:36
* solution_verdict: Partially Accepted language: C++14
* run... | 31.266667 | 111 | 0.331912 | kzvd4729 |
29cba758c0d9e84f6cc60326fe2cf37a8d1b40e5 | 17,293 | cpp | C++ | Hacks/skinconfigchanger.cpp | manigamer22/Killersupdate | add145ffe5ed8121e6dffcecae2bd9e0885f4a2e | [
"Unlicense"
] | 2 | 2020-05-15T16:05:03.000Z | 2021-09-17T04:07:54.000Z | Hacks/skinconfigchanger.cpp | manigamer22/MacTap | 9a48bffe5faec86d0edc4a79e620d27b674c510c | [
"Unlicense"
] | 3 | 2020-11-09T14:05:01.000Z | 2021-09-01T05:37:56.000Z | Hacks/skinconfigchanger.cpp | manigamer22/MacTap | 9a48bffe5faec86d0edc4a79e620d27b674c510c | [
"Unlicense"
] | 1 | 2021-09-17T04:07:19.000Z | 2021-09-17T04:07:19.000Z | #include "skinconfigchanger.hpp"
int KnifeCT = WEAPON_KNIFE_SKELETON;
int KnifeT = WEAPON_KNIFE_SKELETON;
int GloveCT = GLOVE_MOTORCYCLE;
int GloveT = GLOVE_MOTORCYCLE;
unordered_map<int, cSkin> cSkinchanger::Skins = unordered_map<int, cSkin>( {
//knife
make_pair(WEAPON_KNIFE, cSkin(59, -1, KnifeCT, -1, 3, nu... | 46.486559 | 211 | 0.542879 | manigamer22 |
29ccd620f5e5f498b894af52bc4063ed5bd7623c | 1,315 | cpp | C++ | _site/PDI/Addweighted/addweighted.cpp | luccasbonato/luccasbonato.github.io | 7842e1f0eae7bc47ad5c8f07132f5073dc36ee72 | [
"MIT"
] | null | null | null | _site/PDI/Addweighted/addweighted.cpp | luccasbonato/luccasbonato.github.io | 7842e1f0eae7bc47ad5c8f07132f5073dc36ee72 | [
"MIT"
] | null | null | null | _site/PDI/Addweighted/addweighted.cpp | luccasbonato/luccasbonato.github.io | 7842e1f0eae7bc47ad5c8f07132f5073dc36ee72 | [
"MIT"
] | null | null | null | #include <iostream>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
double alfa;
int alfa_slider = 0;
int alfa_slider_max = 100;
int top_slider = 0;
int top_slider_max = 100;
Mat image1, image2, blended;
Mat imageTop;
char TrackbarName[50];
void on_trackbar_blend(int, void*){
alfa = (doub... | 22.672414 | 60 | 0.698099 | luccasbonato |
29ce306266e7f60fc8586475b440bc85961e000d | 2,136 | hpp | C++ | src/multiple_request_handler.hpp | stanislav-podlesny/cpp-driver | be08fd0f6cfbf90ec98fdfbe1745e3470bdeeb1d | [
"Apache-2.0"
] | null | null | null | src/multiple_request_handler.hpp | stanislav-podlesny/cpp-driver | be08fd0f6cfbf90ec98fdfbe1745e3470bdeeb1d | [
"Apache-2.0"
] | null | null | null | src/multiple_request_handler.hpp | stanislav-podlesny/cpp-driver | be08fd0f6cfbf90ec98fdfbe1745e3470bdeeb1d | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2014-2015 DataStax
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 25.428571 | 80 | 0.742509 | stanislav-podlesny |
29d20bfcfeebf0b8c8d3bb1e15e3107f9a36f476 | 3,600 | hpp | C++ | uni/model.hpp | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 5 | 2019-10-17T15:52:38.000Z | 2021-08-10T18:57:32.000Z | uni/model.hpp | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | null | null | null | uni/model.hpp | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 1 | 2021-01-31T20:37:42.000Z | 2021-01-31T20:37:42.000Z | /* render model module
part of uni module
Copyright 2020-2021 Lukas Cone
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
... | 29.032258 | 76 | 0.718056 | PredatorCZ |
29d5ae84ab17692be10a1daa491dfa71a11c784e | 283 | cpp | C++ | beecrowd/C++/inciante+/1169.cpp | MateusdeNovaesSantos/Tecnologias | 0a4d55f82942e33ed86202c58596f03d0dddbf6d | [
"MIT"
] | null | null | null | beecrowd/C++/inciante+/1169.cpp | MateusdeNovaesSantos/Tecnologias | 0a4d55f82942e33ed86202c58596f03d0dddbf6d | [
"MIT"
] | null | null | null | beecrowd/C++/inciante+/1169.cpp | MateusdeNovaesSantos/Tecnologias | 0a4d55f82942e33ed86202c58596f03d0dddbf6d | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main(){
long long int n = 0, x;
cin >> n;
for(int i = 0; i < n; i++){
x = 0;
cin >> x;
x = ((pow(2, x)) / 12) / 1000;
cout << x << " kg" << endl;
}
return 0;
} | 12.304348 | 38 | 0.409894 | MateusdeNovaesSantos |
29d6e3344a6ddc15ba2da49cc2066cdd5253f52f | 236 | cpp | C++ | Programmers/EvenOdd.cpp | YEAjiJUNG/AlgorithmPractice | 720abd9bb3bf1eeadf57402379fdf30921f7c333 | [
"Apache-2.0"
] | 1 | 2021-05-21T02:23:38.000Z | 2021-05-21T02:23:38.000Z | Programmers/EvenOdd.cpp | YEAjiJUNG/AlgorithmPractice | 720abd9bb3bf1eeadf57402379fdf30921f7c333 | [
"Apache-2.0"
] | null | null | null | Programmers/EvenOdd.cpp | YEAjiJUNG/AlgorithmPractice | 720abd9bb3bf1eeadf57402379fdf30921f7c333 | [
"Apache-2.0"
] | null | null | null | #include <string>
#include <vector>
using namespace std;
string solution(int num)
{
string answer = "";
if (num % 2 == 0)
{
answer = "Even";
}
else
{
answer = "Odd";
}
return answer;
} | 11.8 | 24 | 0.495763 | YEAjiJUNG |
29d7f6c1bb866a7cc6826ca59aa14a4e7e7fa624 | 8,821 | cpp | C++ | lib/IRremoteESP8266/src/ir_Xmp.cpp | Eliauk-Forever/JARVIS | 69569e530f0bc66c90bc2ba2a266edb65006bd6f | [
"MulanPSL-1.0"
] | 14 | 2019-07-09T09:38:59.000Z | 2022-02-11T13:57:18.000Z | lib/IRremoteESP8266/src/ir_Xmp.cpp | Eliauk-Forever/JARVIS | 69569e530f0bc66c90bc2ba2a266edb65006bd6f | [
"MulanPSL-1.0"
] | null | null | null | lib/IRremoteESP8266/src/ir_Xmp.cpp | Eliauk-Forever/JARVIS | 69569e530f0bc66c90bc2ba2a266edb65006bd6f | [
"MulanPSL-1.0"
] | 1 | 2021-06-26T22:26:58.000Z | 2021-06-26T22:26:58.000Z | // Copyright 2021 David Conran
/// @file
/// @brief Support for XMP protocols.
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/1414
/// @see http://www.hifi-remote.com/wiki/index.php/XMP
// Supports:
// Brand: Xfinity, Model: XR2 remote
// Brand: Xfinity, Model: XR11 remote
#include <algorithm... | 38.859031 | 80 | 0.646979 | Eliauk-Forever |
29d8f9cde14d76577c238f7906bebf8615d3b011 | 889 | hpp | C++ | text/replacer/dashReplacer.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | 4 | 2015-12-17T21:58:27.000Z | 2019-10-31T16:50:41.000Z | text/replacer/dashReplacer.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | null | null | null | text/replacer/dashReplacer.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | 1 | 2019-05-07T18:51:00.000Z | 2019-05-07T18:51:00.000Z | #ifndef DASH_REPLACER_HPP
#define DASH_REPLACER_HPP
#include <iostream>
#include <unordered_map>
#include "text/replacer/replacer.hpp"
/// Replaces -- with an en-dash and --- with an em-dash
class DashReplacer : public Replacer
{
public:
/// Constructs a new dash replacer
DashReplacer(const ReplacerTable* pT... | 24.694444 | 64 | 0.625422 | TaylorP |
29df6c736e8af36d1a3e77c9d25be4964c46a3c6 | 1,149 | cpp | C++ | 1011 - Marriage Ceremonies.cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | 1011 - Marriage Ceremonies.cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | 1011 - Marriage Ceremonies.cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | /*BISMILLAH
THE WHITE WOLF
NO DREAM IS TOO BIG AND NO DREAMER IS TOO SMALL*/
#include<bits/stdc++.h>
using namespace std;
int priority_ind[16][16], dp[1<<16], n;
int Set(int n, int pos)
{
return n|(1<<pos);
}
bool check(int n, int pos)
{
return (bool)(n & (1<<pos));
}
int counting(int m)
{
int cou... | 17.676923 | 88 | 0.446475 | BRAINIAC2677 |
29e24762bf790bad655eb9b402a1dcdd11ee9dba | 4,553 | cpp | C++ | src/GQE/Core/assets/ImageHandler.cpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | 8 | 2017-04-06T13:14:27.000Z | 2022-01-20T22:25:04.000Z | src/GQE/Core/assets/ImageHandler.cpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | null | null | null | src/GQE/Core/assets/ImageHandler.cpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | 3 | 2019-11-09T09:46:38.000Z | 2021-02-25T00:32:28.000Z | /**
* Provides the ImageHandler class used by the AssetManager to manage all
* sf::Image assets for the application.
*
* @file src/GQE/Core/assets/ImageHandler.cpp
* @author Ryan Lindeman
* @date 20120428 - Initial Release
*/
#include <GQE/Core/assets/ImageHandler.hpp>
#include <GQE/Core/loggers/Log_... | 32.992754 | 90 | 0.683505 | Maarrch |
29e69fe1c0f4ac6993525661bd7dc9c2d02c1af0 | 17,941 | cpp | C++ | SQL Database Object v2.1/Source/MMF2SDK/Extensions/V2Template32/Edittime.cpp | jimstjean/sqldb | 4bc2e49021fe4051f7b3fc1e752a171988d0cbb8 | [
"Apache-2.0"
] | null | null | null | SQL Database Object v2.1/Source/MMF2SDK/Extensions/V2Template32/Edittime.cpp | jimstjean/sqldb | 4bc2e49021fe4051f7b3fc1e752a171988d0cbb8 | [
"Apache-2.0"
] | null | null | null | SQL Database Object v2.1/Source/MMF2SDK/Extensions/V2Template32/Edittime.cpp | jimstjean/sqldb | 4bc2e49021fe4051f7b3fc1e752a171988d0cbb8 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// SQL Database MMF Extension
// (c) 2004-2005, Jim St. Jean
//
// MAIN OBJECT EDIT ROUTINES - Source file
//
//
////////////////////////////////////////////////////////////////////////////
//
// Originally generated using FireMonkeySDK
/... | 28.7056 | 146 | 0.645449 | jimstjean |
29ecdb3ac25c9790a907d98417f5d5ef6c9fc9f8 | 1,175 | hpp | C++ | SparCraft/source/UnitType.hpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | SparCraft/source/UnitType.hpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | SparCraft/source/UnitType.hpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | #pragma once
#include "Location.hpp"
class Unit
{
int _damage,
_maxHP,
_currentHP,
_range,
_moveCooldown,
_weaponCooldown,
_lastMove,
_lastAttack;
public:
Unit()
: _damage(0)
, _maxHP(0)
, _currentHP(0)
, _range(0)
, _moveCooldown(0)
, _weaponCooldow... | 21.759259 | 77 | 0.63234 | iali17 |
29ee3fe522680b401181284cfe77cc6acca2185a | 13,683 | cpp | C++ | munin/src/scroll_pane.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 9 | 2015-12-16T07:00:39.000Z | 2021-05-05T13:29:28.000Z | munin/src/scroll_pane.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 43 | 2015-07-18T11:13:15.000Z | 2017-07-15T13:18:43.000Z | munin/src/scroll_pane.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 3 | 2015-10-09T13:33:35.000Z | 2016-07-11T02:23:08.000Z | // ==========================================================================
// Munin Scroll Pane
//
// Copyright (C) 2011 Matthew Chaplain, All Rights Reserved.
//
// Permission to reproduce, distribute, perform, display, and to prepare
// derivitive works from this file under the following conditions:
//
// ... | 36.29443 | 81 | 0.493021 | KazDragon |
29ef4bd2afea7bfd40a51de4d0e9fe0edaa46440 | 13,417 | cpp | C++ | ProcessLib/Output/Output.cpp | zhangning737/ogs | 53a892f4ce2f133e4d00534d33ad4329e5c0ccb2 | [
"BSD-4-Clause"
] | 1 | 2021-06-25T13:43:06.000Z | 2021-06-25T13:43:06.000Z | ProcessLib/Output/Output.cpp | kosakowski/OGS6-MP-LT-Drum | 01d8ef8839e5dbe50d09621393cb137d278eeb7e | [
"BSD-4-Clause"
] | 1 | 2019-08-09T12:13:22.000Z | 2019-08-09T12:13:22.000Z | ProcessLib/Output/Output.cpp | zhangning737/ogs | 53a892f4ce2f133e4d00534d33ad4329e5c0ccb2 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "Output.h"
#include <cassert>
#... | 34.491003 | 80 | 0.597004 | zhangning737 |
29f2ded57402b5eed50e07ac4ad13571c928942c | 8,753 | hpp | C++ | external/boost_1_47_0/boost/geometry/core/access.hpp | zigaosolin/Raytracer | df17f77e814b2e4b90c4a194e18cc81fa84dcb27 | [
"MIT"
] | 47 | 2015-01-01T14:37:36.000Z | 2021-04-25T07:38:07.000Z | external/boost_1_47_0/boost/geometry/core/access.hpp | zigaosolin/Raytracer | df17f77e814b2e4b90c4a194e18cc81fa84dcb27 | [
"MIT"
] | 6 | 2016-01-11T05:20:05.000Z | 2021-02-06T11:37:24.000Z | external/boost_1_47_0/boost/geometry/core/access.hpp | zigaosolin/Raytracer | df17f77e814b2e4b90c4a194e18cc81fa84dcb27 | [
"MIT"
] | 17 | 2015-01-05T15:10:43.000Z | 2021-06-22T04:59:16.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
// Copyright (c) 2008-2011 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (ge... | 26.932308 | 80 | 0.719639 | zigaosolin |
29f329c103210dc2a61fd76e6f6bd2143f2c6575 | 3,382 | cpp | C++ | desktop/Mapper001.cpp | kevlu123/nintondo-enjoyment-service | 3ede5428a122a21f69d7f8f8fa44e89c90badfb7 | [
"MIT"
] | null | null | null | desktop/Mapper001.cpp | kevlu123/nintondo-enjoyment-service | 3ede5428a122a21f69d7f8f8fa44e89c90badfb7 | [
"MIT"
] | null | null | null | desktop/Mapper001.cpp | kevlu123/nintondo-enjoyment-service | 3ede5428a122a21f69d7f8f8fa44e89c90badfb7 | [
"MIT"
] | null | null | null | #include "Mapper001.h"
Mapper001::Mapper001(int mapperNumber, int prgChunks, int chrChunks, std::vector<uint8_t>& prg, std::vector<uint8_t>& chr) :
Mapper(mapperNumber, prgChunks, chrChunks, prg, chr)
{
sramSize = 0x2000;
sram.resize(sramSize);
Reset();
}
Mapper001::Mapper001(Savestate& state, std::vector<uint8_t... | 22.25 | 124 | 0.633353 | kevlu123 |
29f4695c27a991bed7055c1f68b297f72f030928 | 7,476 | cc | C++ | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/devtools/cloudtrace/v1/trace.grpc.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 91 | 2018-11-24T05:33:58.000Z | 2022-03-16T05:58:05.000Z | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/devtools/cloudtrace/v1/trace.grpc.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 11 | 2019-06-02T23:50:17.000Z | 2022-02-04T23:58:56.000Z | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/devtools/cloudtrace/v1/trace.grpc.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 18 | 2018-11-24T10:35:29.000Z | 2021-04-22T07:22:10.000Z | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: google/devtools/cloudtrace/v1/trace.proto
#include "google/devtools/cloudtrace/v1/trace.pb.h"
#include "google/devtools/cloudtrace/v1/trace.grpc.pb.h"
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl... | 60.780488 | 270 | 0.754548 | sergiorr |
29f604b60d7784728e793b29827ffabfa74b4f48 | 451 | cpp | C++ | src/EscapeButton.cpp | ern0/escapebutton | c6d4351a3b9662482a9c9c89e6cdff840afac06e | [
"MIT"
] | null | null | null | src/EscapeButton.cpp | ern0/escapebutton | c6d4351a3b9662482a9c9c89e6cdff840afac06e | [
"MIT"
] | null | null | null | src/EscapeButton.cpp | ern0/escapebutton | c6d4351a3b9662482a9c9c89e6cdff840afac06e | [
"MIT"
] | null | null | null | #include "DigiKeyboard.h"
#define PIN_BUTTON 1
#define KEY_ESC 41
void setup() {
} // setup()
void loop() {
while ( digitalRead(PIN_BUTTON) == 0 ) {
DigiKeyboard.delay(10);
}
DigiKeyboard.update();
DigiKeyboard.sendKeyPress(KEY_ESC,0);
DigiKeyboard.delay(200);
DigiKeyboard.sendKeyPress(0,0... | 13.666667 | 42 | 0.634146 | ern0 |
29f7f62cd9803623d4ff05c43d79813e7bc0a2aa | 730 | hpp | C++ | libs/pika/algorithms/include/pika/parallel/util/detail/handle_exception_termination_handler.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 13 | 2022-01-17T12:01:48.000Z | 2022-03-16T10:03:14.000Z | libs/pika/algorithms/include/pika/parallel/util/detail/handle_exception_termination_handler.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 163 | 2022-01-17T17:36:45.000Z | 2022-03-31T17:42:57.000Z | libs/pika/algorithms/include/pika/parallel/util/detail/handle_exception_termination_handler.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 4 | 2022-01-19T08:44:22.000Z | 2022-01-31T23:16:21.000Z | // Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <pika/config.hpp>
#include <pika/functional/function.hpp>
namespac... | 34.761905 | 80 | 0.757534 | pika-org |
29f88a19274733af436b52ae6fa08dcc04483e2b | 1,312 | cpp | C++ | apps/camera-calib/camera_calib_guiApp.cpp | wstnturner/mrpt | b0be3557a4cded6bafff03feb28f7fa1f75762a3 | [
"BSD-3-Clause"
] | 38 | 2015-01-04T05:24:26.000Z | 2015-07-17T00:30:02.000Z | apps/camera-calib/camera_calib_guiApp.cpp | wstnturner/mrpt | b0be3557a4cded6bafff03feb28f7fa1f75762a3 | [
"BSD-3-Clause"
] | 40 | 2015-01-03T22:43:00.000Z | 2015-07-17T18:52:59.000Z | apps/camera-calib/camera_calib_guiApp.cpp | wstnturner/mrpt | b0be3557a4cded6bafff03feb28f7fa1f75762a3 | [
"BSD-3-Clause"
] | 41 | 2015-01-06T12:32:19.000Z | 2017-05-30T15:50:13.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 30.511628 | 80 | 0.508384 | wstnturner |
29fb698ce1ea80a661974d8984fd8fe4e7c1b45d | 2,879 | cpp | C++ | src/lgfx/v1/platforms/esp32/Light_PWM.cpp | wakwak-koba/M5GFX | a0632b40590a49c0959209a2878225a51f167597 | [
"MIT"
] | null | null | null | src/lgfx/v1/platforms/esp32/Light_PWM.cpp | wakwak-koba/M5GFX | a0632b40590a49c0959209a2878225a51f167597 | [
"MIT"
] | null | null | null | src/lgfx/v1/platforms/esp32/Light_PWM.cpp | wakwak-koba/M5GFX | a0632b40590a49c0959209a2878225a51f167597 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------/
Lovyan GFX - Graphics library for embedded devices.
Original Source:
https://github.com/lovyan03/LovyanGFX/
Licence:
[FreeBSD](https://github.com/lovyan03/LovyanGFX/blob/master/license.txt)
Author:
[lovyan03](https://twitter.com/lov... | 29.080808 | 121 | 0.646058 | wakwak-koba |
29ffb493e8e7fc7988dd7e0e258966b5ab0c6872 | 1,346 | hpp | C++ | roguelike/hud.hpp | LoginLEE/HKUST-COMP2012h-2D-Shooting-Game | d03812a4a8cba8d31873157d71818b8c67d495fd | [
"MIT"
] | null | null | null | roguelike/hud.hpp | LoginLEE/HKUST-COMP2012h-2D-Shooting-Game | d03812a4a8cba8d31873157d71818b8c67d495fd | [
"MIT"
] | null | null | null | roguelike/hud.hpp | LoginLEE/HKUST-COMP2012h-2D-Shooting-Game | d03812a4a8cba8d31873157d71818b8c67d495fd | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include "global_defines.hpp"
#include "game_entity.hpp"
#include "utils.hpp"
/**
* @brief Class for the Entity representing the HUD
*/
class HUD : public GameEntity {
private:
protected:
public:
/**
* @brief Create the HUD Entity
*
*... | 22.065574 | 80 | 0.603269 | LoginLEE |
4b00dc2f46a491b8aa4ecf2eea156d72eeb6c052 | 792 | cpp | C++ | srcs/PointTEST.cpp | ardasdasdas/point-cloud-processing | 68f08d3c881399bbdd10913bcce8b0ae659a8427 | [
"MIT"
] | 4 | 2020-12-16T08:29:18.000Z | 2021-03-01T10:53:51.000Z | srcs/PointTEST.cpp | pinarkizilarslan/point-cloud-processing | 68f08d3c881399bbdd10913bcce8b0ae659a8427 | [
"MIT"
] | null | null | null | srcs/PointTEST.cpp | pinarkizilarslan/point-cloud-processing | 68f08d3c881399bbdd10913bcce8b0ae659a8427 | [
"MIT"
] | 4 | 2020-07-22T21:53:09.000Z | 2022-01-19T13:42:42.000Z | #include<iostream>
#include"Point.h"
using namespace std;
/**
* @file : PointCloudTEST.cpp
* @Author : Muzaffer Arda Uslu (usluarda58@gmail.com)
* @date : 12 Aralik 2019, Persembe
* @brief : Bu kod parcacigi olusturulan Point sinifinin dogru calisip calismadigini kontrol etmek amaciyla yazilmistir.
*/
int main() {
... | 24.75 | 119 | 0.594697 | ardasdasdas |
4b00deb2f7b01bf01397629483145b02f571232f | 126,677 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Movie/toggle_off.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Movie/toggle_off.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Movie/toggle_off.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _toggle_off[] LOCATION_EXTFLASH_ATTRIBUTE = { // 90x70 ARGB8888 pixels.
0xff,0xff,0xff,0x00,0xff,0xff,0xff,0x00,0xff,0xff,0xff,0x00,0xff,0xff,0xff,0x00,0xff,0xff,0xff,0x00,0... | 273.010776 | 320 | 0.797106 | ramkumarkoppu |
4b0164ba134084644840e2a2a5b69c424381e4e0 | 245 | cpp | C++ | Tips template/关于声明语句与变量命名冲突的一些说法.cpp | FunamiYui/PAT_Code_Akari | 52e06689b6bf8177c43ab9256719258c47e80b25 | [
"MIT"
] | null | null | null | Tips template/关于声明语句与变量命名冲突的一些说法.cpp | FunamiYui/PAT_Code_Akari | 52e06689b6bf8177c43ab9256719258c47e80b25 | [
"MIT"
] | null | null | null | Tips template/关于声明语句与变量命名冲突的一些说法.cpp | FunamiYui/PAT_Code_Akari | 52e06689b6bf8177c43ab9256719258c47e80b25 | [
"MIT"
] | null | null | null | /*
如果引用了iostream或者vector,又加了using namespace std;这条语句,就尽量不要使用hash这样的变量名
因为这样会跟std命名空间里面的hash变量名冲突,导致编译失败或者运行出错
这种情况解决办法要么单独用std,比如std::cin、std::endl,要么直接避开hash作为变量名(可以改用HashTable)
类似的还有math.h的y1变量名,如果将其作为全局变量,就会导致编译错误
若编译有报错或者运行莫名出错,则可以考虑这些因素
*/
| 30.625 | 68 | 0.877551 | FunamiYui |
4b02608e718aaea1004ac3523b8224e535d7cba6 | 2,240 | cpp | C++ | alarm/set.cpp | joeljk13/WinAlarm | 1f37c0ffb2d29aec5f57c11a9b0a029800d850ce | [
"MIT"
] | 1 | 2015-02-10T15:30:36.000Z | 2015-02-10T15:30:36.000Z | alarm/set.cpp | joeljk13/WinAlarm | 1f37c0ffb2d29aec5f57c11a9b0a029800d850ce | [
"MIT"
] | null | null | null | alarm/set.cpp | joeljk13/WinAlarm | 1f37c0ffb2d29aec5f57c11a9b0a029800d850ce | [
"MIT"
] | null | null | null | #include "main.h"
#include "alarm.h"
#include "file.h"
#include <stdio.h>
#include <string.h>
static void
print_help()
{
fputs("Usage: alarm set [DATE] [TIME] [OPTIONS]\n\n"
"Sets an alarm at the given time.\n\n"
"If --help or --version (or their short versions) are used as\n"
"options, only the first one w... | 24.888889 | 79 | 0.638839 | joeljk13 |
4b050abfe832396860ef6deedd532728f4f02b51 | 131 | cpp | C++ | Data Structures/Queues/QueueArray.cpp | anjali9811/Programming-in-Cpp | 02e80e045a7fb20f8970fcdae68c08bdf27f95b8 | [
"Apache-2.0"
] | null | null | null | Data Structures/Queues/QueueArray.cpp | anjali9811/Programming-in-Cpp | 02e80e045a7fb20f8970fcdae68c08bdf27f95b8 | [
"Apache-2.0"
] | null | null | null | Data Structures/Queues/QueueArray.cpp | anjali9811/Programming-in-Cpp | 02e80e045a7fb20f8970fcdae68c08bdf27f95b8 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
//array implementation of Queue-we will use a circular array
using namespace std;
int main() {
return 0;
}
| 11.909091 | 60 | 0.725191 | anjali9811 |
4b05bedfd2a86efddd6ce8365124b1de6e1667e8 | 3,503 | cpp | C++ | examples/julea/JuleaDAITest.cpp | julea-io/adios2 | c5b66294725eb7ff93827674f81a6a55241696a4 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-07-12T11:57:03.000Z | 2020-05-14T09:40:01.000Z | examples/julea/JuleaDAITest.cpp | julea-io/adios2 | c5b66294725eb7ff93827674f81a6a55241696a4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/julea/JuleaDAITest.cpp | julea-io/adios2 | c5b66294725eb7ff93827674f81a6a55241696a4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-08-07T21:33:40.000Z | 2019-08-07T21:33:40.000Z | /*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* Created on: April 2022
* Author: Kira Duwe
*/
#include <chrono>
#include <ios> //std::ios_base::failure
#include <iostream> //std::cout
#include <stdexcept> //std::invalid_arg... | 32.137615 | 115 | 0.628319 | julea-io |
4b05f4fb18a96027c184f56aa1e37f2ad91aee1c | 7,362 | cc | C++ | serial/src/impl/list_ports/list_ports_linux.cc | chivstyle/comxd | d3eb006f866faf22cc8e1524afa0d99ae2049f79 | [
"MIT"
] | null | null | null | serial/src/impl/list_ports/list_ports_linux.cc | chivstyle/comxd | d3eb006f866faf22cc8e1524afa0d99ae2049f79 | [
"MIT"
] | null | null | null | serial/src/impl/list_ports/list_ports_linux.cc | chivstyle/comxd | d3eb006f866faf22cc8e1524afa0d99ae2049f79 | [
"MIT"
] | null | null | null | #if defined(__linux__)
/*
* Copyright (c) 2014 Craig Lilley <cralilley@gmail.com>
* This software is made available under the terms of the MIT licence.
* A copy of the licence can be obtained from:
* http://opensource.org/licenses/MIT
*/
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#includ... | 23.596154 | 92 | 0.615865 | chivstyle |
4b09cbf6de41b540954fe244f3b39b633ee5b5c8 | 4,261 | cpp | C++ | src/modules/sound/lullaby/WaveDecoder.cpp | cigumo/love | 0b06d0d1f9defaef0353523012acf918cbc01954 | [
"Apache-2.0"
] | 2 | 2021-08-15T04:38:35.000Z | 2022-01-15T15:08:46.000Z | src/modules/sound/lullaby/WaveDecoder.cpp | cigumo/love | 0b06d0d1f9defaef0353523012acf918cbc01954 | [
"Apache-2.0"
] | 2 | 2019-02-27T07:12:48.000Z | 2019-11-28T10:04:36.000Z | src/modules/sound/lullaby/WaveDecoder.cpp | MikuAuahDark/livesim3-love | a893c17aa2c53fbe1843a18f744cb1c88142e6bb | [
"Apache-2.0"
] | 5 | 2020-09-04T21:49:38.000Z | 2022-03-14T20:48:02.000Z | /**
* Copyright (c) 2006-2020 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... | 21.305 | 83 | 0.702183 | cigumo |
4b10879d607c082f4f11431c50ab152b6d8c920e | 1,534 | cpp | C++ | smacc2_sm_reference_library/sm_dance_bot_lite/src/sm_dance_bot_lite/clients/cl_led/cl_led.cpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | null | null | null | smacc2_sm_reference_library/sm_dance_bot_lite/src/sm_dance_bot_lite/clients/cl_led/cl_led.cpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | null | null | null | smacc2_sm_reference_library/sm_dance_bot_lite/src/sm_dance_bot_lite/clients/cl_led/cl_led.cpp | reelrbtx/SMACC2 | ac61cb1599f215fd9f0927247596796fc53f82bf | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 RobosoftAI 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 32.638298 | 116 | 0.628422 | reelrbtx |
4b116cc97c32f19ae5ae9ff450e452c30eb93242 | 5,147 | cpp | C++ | Rumble3D/src/RigidBodyEngine/BVHNode.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2020-01-21T16:01:53.000Z | 2020-01-21T16:01:53.000Z | Rumble3D/src/RigidBodyEngine/BVHNode.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2019-10-08T08:25:33.000Z | 2019-10-09T06:39:06.000Z | Rumble3D/src/RigidBodyEngine/BVHNode.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2019-05-14T13:48:16.000Z | 2019-05-14T13:48:16.000Z | #include "R3D/RigidBodyEngine/BVHNode.h"
#include "R3D/RigidBodyEngine/BoundingSphere.h"
#include "R3D/RigidBodyEngine/BoundingBox.h"
#include "R3D/RigidBodyEngine/RigidBody.h"
namespace r3
{
namespace
{
template<class T>
class has_overlap_method
{
template<typename U, bool (U::*)(const U*) const> struct ch... | 26.530928 | 107 | 0.710122 | Nelaty |
4b121fb6ad2b01dc0bcfc102f7f292b2b54e12d2 | 17,031 | cc | C++ | Client/ServerControl.cc | dymons/logcabin | 185c81c0eca3a8e92826389cf5ca289d81045869 | [
"ISC"
] | null | null | null | Client/ServerControl.cc | dymons/logcabin | 185c81c0eca3a8e92826389cf5ca289d81045869 | [
"ISC"
] | null | null | null | Client/ServerControl.cc | dymons/logcabin | 185c81c0eca3a8e92826389cf5ca289d81045869 | [
"ISC"
] | null | null | null | /* Copyright (c) 2015 Diego Ongaro
*
* 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 "AS IS" AND THE AUTHOR(S) DISCLAIM ... | 34.615854 | 79 | 0.503494 | dymons |
4b147624130efe385ab844761baa70cf052bc80c | 102,980 | cpp | C++ | tests/universalidentifier_tests.cpp | italocoin-project/bittube-light-wallet | 66386ace27df39bf11ca70327fbdf5865f2c610e | [
"BSD-3-Clause"
] | null | null | null | tests/universalidentifier_tests.cpp | italocoin-project/bittube-light-wallet | 66386ace27df39bf11ca70327fbdf5865f2c610e | [
"BSD-3-Clause"
] | null | null | null | tests/universalidentifier_tests.cpp | italocoin-project/bittube-light-wallet | 66386ace27df39bf11ca70327fbdf5865f2c610e | [
"BSD-3-Clause"
] | null | null | null | #include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "../src/UniversalIdentifier.hpp"
#include "mocks.h"
#include "helpers.h"
namespace
{
using namespace xmreg;
//string addr_56Vbjcz {"56VbjczrFCVZiLn66S3Qzv8QfmtcwkdXgM5cWGsXAPxoQeMQ79md51PLPCijvzk1iHbuHi91pws5B7iajTX9KTtJ4Z6HAo6"};
//string viewkey_56Vbjc... | 360.06993 | 44,447 | 0.971286 | italocoin-project |
4b19c9a8c964125c1cc1bbdde07b07a6d1544c2e | 7,368 | cpp | C++ | BaseAudioDriver/Source/Utilities/hw.cpp | nicsor/DiskJunkey | cfbaeb555f1e42fc8473f43328cea1fda929dc30 | [
"MIT"
] | 1 | 2021-08-04T08:40:43.000Z | 2021-08-04T08:40:43.000Z | BaseAudioDriver/Source/Utilities/hw.cpp | nicsor/DiskJunkey | cfbaeb555f1e42fc8473f43328cea1fda929dc30 | [
"MIT"
] | 2 | 2021-08-03T14:42:38.000Z | 2021-09-08T08:31:58.000Z | BaseAudioDriver/Source/Utilities/hw.cpp | nicsor/DiskJunkey | cfbaeb555f1e42fc8473f43328cea1fda929dc30 | [
"MIT"
] | 1 | 2021-12-14T10:19:09.000Z | 2021-12-14T10:19:09.000Z | /*++
Copyright (c) Microsoft Corporation All Rights Reserved
Module Name:
hw.cpp
Abstract:
Implementation of Base Audio Driver HW class.
Base Audio Driver HW has an array for storing mixer and volume settings
for the topology.
--*/
#include "definitions.h"
#include "hw.h"
//=====================... | 16.483221 | 79 | 0.522394 | nicsor |
4b1c9e8900f34880e00164082839b01c82eeb2ba | 1,713 | cpp | C++ | Code/Projects/Eldritch/src/eldritchmusic.cpp | Johnicholas/EldritchCopy | 96b49cee8b5d4f0a72784ff19bdbec6ee0c96a30 | [
"Zlib"
] | 1 | 2016-07-26T13:19:27.000Z | 2016-07-26T13:19:27.000Z | Code/Projects/Eldritch/src/eldritchmusic.cpp | Johnicholas/EldritchCopy | 96b49cee8b5d4f0a72784ff19bdbec6ee0c96a30 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/eldritchmusic.cpp | Johnicholas/EldritchCopy | 96b49cee8b5d4f0a72784ff19bdbec6ee0c96a30 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "eldritchmusic.h"
#include "isoundinstance.h"
#include "eldritchframework.h"
EldritchMusic::EldritchMusic()
: m_MusicInstance( NULL )
{
IAudioSystem* const pAudioSystem = EldritchFramework::GetInstance()->GetAudioSystem();
ASSERT( pAudioSystem );
SInstanceDeleteCallback Callback;
Callba... | 22.84 | 95 | 0.760654 | Johnicholas |
4b1e6f87843e4d6379384adb28c73d3cfb7889bb | 49,718 | cc | C++ | src/client/linux/minidump_writer/minidump_writer.cc | zzilla/gbreakpad | 02fd5a078bda4eb2fd7ee881c8d301bea2bf87fe | [
"BSD-3-Clause"
] | 19 | 2018-06-25T09:35:22.000Z | 2021-12-04T19:09:52.000Z | src/client/linux/minidump_writer/minidump_writer.cc | zzilla/gbreakpad | 02fd5a078bda4eb2fd7ee881c8d301bea2bf87fe | [
"BSD-3-Clause"
] | 2 | 2020-09-22T20:42:16.000Z | 2020-11-11T04:08:57.000Z | src/client/linux/minidump_writer/minidump_writer.cc | zzilla/gbreakpad | 02fd5a078bda4eb2fd7ee881c8d301bea2bf87fe | [
"BSD-3-Clause"
] | 11 | 2020-07-04T03:03:18.000Z | 2022-03-17T10:19:19.000Z | // Copyright (c) 2010, 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 conditi... | 36.343567 | 80 | 0.644073 | zzilla |
4b1ee7b06f3ef093fccc4eb7f9c2fb4ddc8cc842 | 4,049 | cpp | C++ | RoguelikeGame.Main/Engine/Managers/TexturesManager.cpp | VegetaTheKing/RoguelikeGame | 74036ad8857da961a490dd73d8bb2a5fbef88e39 | [
"MIT"
] | null | null | null | RoguelikeGame.Main/Engine/Managers/TexturesManager.cpp | VegetaTheKing/RoguelikeGame | 74036ad8857da961a490dd73d8bb2a5fbef88e39 | [
"MIT"
] | null | null | null | RoguelikeGame.Main/Engine/Managers/TexturesManager.cpp | VegetaTheKing/RoguelikeGame | 74036ad8857da961a490dd73d8bb2a5fbef88e39 | [
"MIT"
] | null | null | null | #include "TexturesManager.h"
TexturesManager::TexturesManager()
{
_logger = Logger::GetInstance();
}
void TexturesManager::LoadFromFile(const std::string& name, const std::string& path, const sf::IntRect& area)
{
std::string message = " graphics No" + std::to_string(_textures.size() + 1) + " (" + name + ") from \""... | 27.732877 | 139 | 0.676216 | VegetaTheKing |
4b205b7d8d48fed0697c204ff48ac4ab3f10ce93 | 658 | hh | C++ | include/HistoManager.hh | ggonei/nanostructures4scintillators | 5f3f551b6086e438db68f61d50ed1203d416e778 | [
"MIT"
] | null | null | null | include/HistoManager.hh | ggonei/nanostructures4scintillators | 5f3f551b6086e438db68f61d50ed1203d416e778 | [
"MIT"
] | null | null | null | include/HistoManager.hh | ggonei/nanostructures4scintillators | 5f3f551b6086e438db68f61d50ed1203d416e778 | [
"MIT"
] | null | null | null | //
// George O'Neill, University of York 2020
//
// Make a basic cube that allows for addition of photonic objects
//
// This defines histograms we are filling
//
#ifndef HistoManager_h
#define HistoManager_h 1
#define VERBOSE 1
#include <g4root.hh> // change this for different types of files
#include <G4UnitsTable.h... | 20.5625 | 66 | 0.724924 | ggonei |
4b218b0ad86a62aa94fc5fe0c4cedead3e00e16f | 1,511 | cpp | C++ | GameServer/Bullet.cpp | Chr157i4n/OpenGL_Space_Game | b4cd4ab65385337c37f26af641597c5fc9126f04 | [
"MIT"
] | 3 | 2020-08-05T00:02:30.000Z | 2021-08-23T00:41:24.000Z | GameServer/Bullet.cpp | Chr157i4n/OpenGL_Space_Game | b4cd4ab65385337c37f26af641597c5fc9126f04 | [
"MIT"
] | null | null | null | GameServer/Bullet.cpp | Chr157i4n/OpenGL_Space_Game | b4cd4ab65385337c37f26af641597c5fc9126f04 | [
"MIT"
] | 2 | 2021-07-03T19:32:08.000Z | 2021-08-19T18:48:52.000Z | #include "Bullet.h"
#include "Game.h"
Bullet::Bullet(glm::vec3 position, glm::vec3 rotation, glm::vec3 direction) : Object("arrow.bmf")
{
this->setType(ObjectType::Object_Bullet);
this->position = position;
this->rotation = rotation;
this->movement = glm::normalize(direction) * speed;
this->name = "Bullet";
this... | 25.610169 | 120 | 0.696889 | Chr157i4n |
4b242cab08417adf39f8783383d9f9182bea52bd | 1,061 | cpp | C++ | lightoj/1111.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | lightoj/1111.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | lightoj/1111.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;
#define le 1003
vector <int> v[le];
vector<int> ct;
int dis[le];
bool vis[le];
void bfs(int a){
memset(vis, false, sizeof(vis));
vis[a] = true;
dis[a]++;
queue<int> q;
q.push(a);
while(!q.empty()){
int p = q.front();
q.pop();
for(int i = 0; i < v[p].... | 24.113636 | 74 | 0.454288 | cosmicray001 |
4b270364a68fee334fa4684c73572e79b7fb7407 | 19,303 | cpp | C++ | src/core/movie/ffmpeg/AEUtil.cpp | A29586a/Kirikiroid2 | 7871cf9b393453f4b8c8b6f0e6ac1f3c24cdcf7f | [
"BSD-3-Clause"
] | 22 | 2020-01-14T19:19:05.000Z | 2021-09-11T14:06:56.000Z | src/core/movie/ffmpeg/AEUtil.cpp | A29586a/Kirikiroid2 | 7871cf9b393453f4b8c8b6f0e6ac1f3c24cdcf7f | [
"BSD-3-Clause"
] | 3 | 2020-06-07T16:28:26.000Z | 2021-11-11T09:31:27.000Z | src/core/movie/ffmpeg/AEUtil.cpp | A29586a/Kirikiroid2 | 7871cf9b393453f4b8c8b6f0e6ac1f3c24cdcf7f | [
"BSD-3-Clause"
] | 6 | 2020-10-11T13:36:56.000Z | 2021-11-13T06:32:14.000Z | #ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#if (defined HAVE_CONFIG_H) && (!defined TARGET_WINDOWS)
#include "config.h"
#endif
#include "AEUtil.h"
#include "TimeUtils.h"
#include <cassert>
extern "C" {
#include "libavutil/channel_layout.h"
}
NS_KRMOVIE_BEGIN
/* declare the rng seed and initial... | 29.027068 | 131 | 0.626897 | A29586a |
4b2d2b0d516a824823c24998dc12d7708ee5d8f9 | 109,583 | cpp | C++ | modules/objdetect/src/haar.cpp | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 144 | 2015-01-15T03:38:44.000Z | 2022-02-17T09:07:52.000Z | modules/objdetect/src/haar.cpp | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 9 | 2015-09-09T06:51:46.000Z | 2020-06-17T14:10:10.000Z | modules/objdetect/src/haar.cpp | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 58 | 2015-01-14T23:43:49.000Z | 2021-11-15T05:19:08.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 42.655897 | 130 | 0.492832 | gunnjo |
4b2ff373b7dc945b4a733bb104221e63b5b271f9 | 720 | cpp | C++ | solver/expr/detail/driver.cpp | scalexm/sat_solver | 0235f76d0a93c4b8ff59071479c8ca139d2e162a | [
"MIT"
] | 3 | 2016-02-16T17:39:28.000Z | 2018-07-04T09:11:11.000Z | solver/expr/detail/driver.cpp | scalexm/sat_solver | 0235f76d0a93c4b8ff59071479c8ca139d2e162a | [
"MIT"
] | null | null | null | solver/expr/detail/driver.cpp | scalexm/sat_solver | 0235f76d0a93c4b8ff59071479c8ca139d2e162a | [
"MIT"
] | null | null | null | /*
* expr/detail/driver.cpp
* solver
*
* Created by Alexandre Martin on 03/02/2016.
* Copyright © 2016 scalexm. All rights reserved.
*
*/
#include "driver.hpp"
#include <sstream>
namespace expr { namespace detail {
result<generic_expr> driver::parse(const std::string & str) {
begin_scan(str);
... | 24 | 73 | 0.580556 | scalexm |
4b309015431d812c6a7dbb99f4666a6aa7f4c743 | 80,934 | cpp | C++ | Engine/ac/game.cpp | SpeechCenter/ags | 624e5c96da1d70346c35c81b3bb16f1ab30658bb | [
"Artistic-2.0"
] | 1 | 2021-07-24T08:37:34.000Z | 2021-07-24T08:37:34.000Z | Engine/ac/game.cpp | SpeechCenter/ags | 624e5c96da1d70346c35c81b3bb16f1ab30658bb | [
"Artistic-2.0"
] | null | null | null | Engine/ac/game.cpp | SpeechCenter/ags | 624e5c96da1d70346c35c81b3bb16f1ab30658bb | [
"Artistic-2.0"
] | null | null | null | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 32.386555 | 198 | 0.66684 | SpeechCenter |
4b35a1305f82161d1039c565fa52105daaedd6b0 | 1,003 | cpp | C++ | ABC154/ABC154D.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | ABC154/ABC154D.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | 3 | 2021-03-31T01:39:25.000Z | 2021-05-04T10:02:35.000Z | ABC154/ABC154D.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdio>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int n, k;
cin >> n >> k;
vector<float> v(n + k + 10, 0.0);
vector<float> s(n + k + 10, 0.0);
vector<float> dp(n + k + 10, 0.0);
float tmp;
for (int i = 1; i <= n... | 19.288462 | 83 | 0.363908 | KoukiNAGATA |
4b372c7f74d23b4c806a9cba4e5b1a3f75f1dbfd | 5,880 | cpp | C++ | src/cpotrf_mgpu.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 21 | 2017-10-06T05:05:05.000Z | 2022-03-13T15:39:20.000Z | src/cpotrf_mgpu.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 1 | 2017-03-23T00:27:24.000Z | 2017-03-23T00:27:24.000Z | src/cpotrf_mgpu.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 4 | 2018-01-09T15:49:58.000Z | 2022-03-13T15:39:27.000Z | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zpotrf_mgpu.cpp normal z -> c, Fri Jan 30 19:00:13 2015
*/
#include "common_magma.h"
/**
Purpose
-------
CPOTRF c... | 33.6 | 95 | 0.522449 | shengren |
4b37f86dbc4fdd78055aadd3ce416277edd8b2a9 | 10,031 | cpp | C++ | game_shared/voice_status.cpp | darealshinji/halflife | f3853c2a666c3264d218cf2d1b14b17c0b21c073 | [
"Unlicense"
] | 1 | 2020-07-14T12:47:38.000Z | 2020-07-14T12:47:38.000Z | game_shared/voice_status.cpp | darealshinji/hlspbunny-v4 | f3853c2a666c3264d218cf2d1b14b17c0b21c073 | [
"Unlicense"
] | null | null | null | game_shared/voice_status.cpp | darealshinji/hlspbunny-v4 | f3853c2a666c3264d218cf2d1b14b17c0b21c073 | [
"Unlicense"
] | null | null | null |
#include <stdio.h>
#include <string.h>
#include "wrect.h"
#include "cl_dll.h"
#include "cl_util.h"
#include "cl_entity.h"
#include "const.h"
#include "parsemsg.h" // BEGIN_READ(), ...
#include "voice_status.h"
static CVoiceStatus *g_pInternalVoiceStatus = NULL;
// ------------------------------------------------... | 21.525751 | 128 | 0.662945 | darealshinji |
4b3e15649008fff3ff878c272fb4d0dc5fe8314f | 1,134 | cpp | C++ | heap_sort.cpp | MDarshan123/Algorithms-1 | c077ef399f4fea59f683c0338e56d1a87a79a466 | [
"MIT"
] | 33 | 2019-10-20T03:07:31.000Z | 2021-12-05T06:50:12.000Z | heap_sort.cpp | MDarshan123/Algorithms-1 | c077ef399f4fea59f683c0338e56d1a87a79a466 | [
"MIT"
] | 51 | 2019-10-09T18:09:53.000Z | 2021-07-06T08:28:39.000Z | heap_sort.cpp | MDarshan123/Algorithms-1 | c077ef399f4fea59f683c0338e56d1a87a79a466 | [
"MIT"
] | 117 | 2019-10-09T18:10:58.000Z | 2022-02-22T14:22:47.000Z | # Python program for implementation of heap Sort
# To heapify subtree rooted at index i.
# n is size of heap
def heapify(arr, n, i):
largest = i # Initialize largest as root
l = 2 * i + 1 # left = 2*i + 1
r = 2 * i + 2 # right = 2*i + 2
# See if left child of root exists and is
# greater than root
if... | 23.625 | 51 | 0.603175 | MDarshan123 |
4b42a06a27f4d72f91b1a18e9c18eb11801c3a31 | 24,236 | cpp | C++ | tests/args-test.cpp | mbits-libs/libargs | 72f5f2b87ae39f26638a585fa4ad0b96b4152ae6 | [
"MIT"
] | null | null | null | tests/args-test.cpp | mbits-libs/libargs | 72f5f2b87ae39f26638a585fa4ad0b96b4152ae6 | [
"MIT"
] | 2 | 2020-09-25T10:07:38.000Z | 2020-10-11T16:01:17.000Z | tests/args-test.cpp | mbits-libs/libargs | 72f5f2b87ae39f26638a585fa4ad0b96b4152ae6 | [
"MIT"
] | null | null | null | #include <args/parser.hpp>
#include <iostream>
#include <string_view>
using namespace std::literals;
struct test {
const char* title;
int (*callback)();
int expected{0};
std::string_view output{};
};
std::vector<test> g_tests;
template <typename Test>
struct registrar {
registrar() {
::g_tests.push_back(
... | 31.151671 | 718 | 0.609589 | mbits-libs |
4b42cf206f3e1c9b44048a47981ebfdd2d78de10 | 6,505 | cpp | C++ | C++CodeSnippets/HLD [LOJ-1348].cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | C++CodeSnippets/HLD [LOJ-1348].cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | C++CodeSnippets/HLD [LOJ-1348].cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | /**
* @author : Maruf Tuhin
* @College : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long llu;
... | 26.443089 | 79 | 0.465796 | Maruf-Tuhin |
4b43788c40830200684afa37f82a146623c14339 | 5,748 | cpp | C++ | lib/analyzer/expressions/typeclass.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 4 | 2017-07-22T23:12:36.000Z | 2022-01-13T23:57:06.000Z | lib/analyzer/expressions/typeclass.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 36 | 2016-11-26T17:46:16.000Z | 2019-05-21T16:27:13.000Z | lib/analyzer/expressions/typeclass.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 3 | 2016-10-01T21:04:32.000Z | 2021-03-20T06:57:53.000Z | /**
* Vapor Compiler Licence
*
* Copyright © 2017-2019 Michał "Griwes" Dominiak
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this ... | 37.324675 | 110 | 0.60421 | reaver-project |
4b438c9f87d7bc33cfe4d9a966bba4f1e2767a67 | 3,036 | cpp | C++ | sp/src/game/client/dbr/hud_hull.cpp | URAKOLOUY5/source-sdk-2013 | d6e2d4b6d3e93b1224e6b4aa378d05309eee20bc | [
"Unlicense"
] | 2 | 2022-02-18T18:16:37.000Z | 2022-02-23T21:21:37.000Z | sp/src/game/client/dbr/hud_hull.cpp | URAKOLOUY5/u5-maps | d6e2d4b6d3e93b1224e6b4aa378d05309eee20bc | [
"Unlicense"
] | null | null | null | sp/src/game/client/dbr/hud_hull.cpp | URAKOLOUY5/u5-maps | d6e2d4b6d3e93b1224e6b4aa378d05309eee20bc | [
"Unlicense"
] | null | null | null | #include "cbase.h"
#include "hud.h"
#include "hud_macros.h"
#include "c_baseplayer.h"
#include "hud_hull.h"
#include "iclientmode.h"
#include "vgui/ISurface.h"
using namespace vgui;
#include "tier0/memdbgon.h"
#ifndef DBR
DECLARE_HUDELEMENT (CHudHull);
#endif
# define HULL_INIT 80
//-----------------------... | 26.172414 | 105 | 0.525033 | URAKOLOUY5 |
4b45421dcb8c6a9168ef3b3b2d44ed2d2dbd917b | 19,308 | cxx | C++ | Rendering/VR/vtkVRRenderWindow.cxx | jpouderoux/VTK | 1af22bcce698e121b6c8064ea724636621d1bf7e | [
"BSD-3-Clause"
] | 1 | 2021-11-23T02:09:28.000Z | 2021-11-23T02:09:28.000Z | Rendering/VR/vtkVRRenderWindow.cxx | zist8888/VTK | 74ae7be4aa33c94b0535ebbdaf7d27573d7c7614 | [
"BSD-3-Clause"
] | null | null | null | Rendering/VR/vtkVRRenderWindow.cxx | zist8888/VTK | 74ae7be4aa33c94b0535ebbdaf7d27573d7c7614 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkVRRenderWindow.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distribute... | 31.497553 | 100 | 0.610317 | jpouderoux |
4b456dc0150daf1a1979db5991fec39e2c70fefe | 732 | cpp | C++ | Ticker.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | Ticker.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | Ticker.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "Ticker.hpp"
BEGIN_INANITY
Ticker::Ticker() :
lastTick(-1),
pauseTick(-1)
{
tickCoef = 1.0f / Time::GetTicksPerSecond();
}
void Ticker::Pause()
{
// if already paused, do nothing
if(pauseTick >= 0)
return;
// remember pause time
pauseTick = Time::GetTick();
}
float Ticker::Tick()
{
// get curren... | 15.25 | 45 | 0.659836 | quyse |
4b4571a1dcce05248083a5fc2bc7cf8acfc8de44 | 1,851 | cpp | C++ | Code/Libraries/Rodin/src/BTNodes/rodinbtnodeuseresource.cpp | lihop/Eldritch | bb38ff8ad59e4c1f11b1430ef482e60f7618a280 | [
"Zlib"
] | 4 | 2019-09-15T20:00:23.000Z | 2021-08-27T23:32:53.000Z | Code/Libraries/Rodin/src/BTNodes/rodinbtnodeuseresource.cpp | lihop/Eldritch | bb38ff8ad59e4c1f11b1430ef482e60f7618a280 | [
"Zlib"
] | null | null | null | Code/Libraries/Rodin/src/BTNodes/rodinbtnodeuseresource.cpp | lihop/Eldritch | bb38ff8ad59e4c1f11b1430ef482e60f7618a280 | [
"Zlib"
] | 1 | 2021-03-27T11:27:03.000Z | 2021-03-27T11:27:03.000Z | #include "core.h"
#include "rodinbtnodeuseresource.h"
#include "configmanager.h"
#include "Components/wbcomprodinresourcemap.h"
#include "Components/wbcomprodinbehaviortree.h"
#include "wbentity.h"
RodinBTNodeUseResource::RodinBTNodeUseResource()
: m_Resource()
, m_ForceClaim( false )
{
}
RodinBTNodeUseResource::~Rod... | 26.070423 | 93 | 0.763911 | lihop |
4b4a53a88a31216c53148baa1ab0b86d8d60022f | 14,142 | cpp | C++ | src/client/client/Command_Client_Engine.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | src/client/client/Command_Client_Engine.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | src/client/client/Command_Client_Engine.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | #include <iostream>
#include <functional>
#include <unistd.h>
#include "Command_Client_Engine.h"
#include "state.h"
#include "render.h"
#include "engine.h"
using namespace client;
using namespace render;
using namespace engine;
using namespace state;
using namespace std;
Command_Client_Engine::Command_Client_Engine(... | 47.14 | 119 | 0.534366 | Kuga23 |
4b4a88a92eb5389cc24518a5e9e3e5b05e3510f6 | 423 | cc | C++ | src/ppl/nn/engines/x86/kernels/onnx/constant_kernel.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | 1 | 2021-06-30T14:07:37.000Z | 2021-06-30T14:07:37.000Z | src/ppl/nn/engines/x86/kernels/onnx/constant_kernel.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/x86/kernels/onnx/constant_kernel.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | #include "ppl/nn/engines/x86/kernels/onnx/constant_kernel.h"
using namespace std;
using namespace ppl::common;
namespace ppl { namespace nn { namespace x86 {
RetCode ConstantKernel::DoExecute(KernelExecContext* ctx) {
auto output = ctx->GetOutput<TensorImpl>(0);
GetDevice()->CopyFromHost(&output->GetBufferDes... | 30.214286 | 97 | 0.728132 | wolf15 |
4b4c4d4b90790b30be2c6ce0010ef3f8ab971bdb | 3,898 | cpp | C++ | devices/laihost/laihost.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | devices/laihost/laihost.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | devices/laihost/laihost.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | extern "C" {
#include <lai/host.h>
#include <acpispec/tables.h>
}
#include <memory/page_table_manager.h>
#include <memory/page_frame_allocator.h>
#include <utils/abort.h>
#include <utils/log.h>
#include <utils/string.h>
#include <utils/port.h>
#include <pci/pci.h>
#include <timer/timer.h>
#include <acpi/acpi.h>
ext... | 26.161074 | 112 | 0.693689 | JartC0ding |
4b4d9667bcd8c48992dafb1598dcc5c44defc873 | 4,160 | cpp | C++ | example/Reading/source/main.cpp | HamletDuFromage/Simple-INI-Parser | ca427f98dc25620432430c563d9a73534b942c37 | [
"0BSD"
] | null | null | null | example/Reading/source/main.cpp | HamletDuFromage/Simple-INI-Parser | ca427f98dc25620432430c563d9a73534b942c37 | [
"0BSD"
] | null | null | null | example/Reading/source/main.cpp | HamletDuFromage/Simple-INI-Parser | ca427f98dc25620432430c563d9a73534b942c37 | [
"0BSD"
] | null | null | null | /*
* SimpleIniParser
* Copyright (c) 2020 Nichole Mattera
*
* Permission to use, copy, modify, and/or 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 "AS I... | 33.821138 | 195 | 0.568029 | HamletDuFromage |
4b5209642cd837eb185a7620bf2c05692dbb57e3 | 62,359 | cpp | C++ | src/pal/src/map/virtual.cpp | chrisaut/coreclr | 849da1bdf828256624dac634eefe8590e48f0c26 | [
"MIT"
] | null | null | null | src/pal/src/map/virtual.cpp | chrisaut/coreclr | 849da1bdf828256624dac634eefe8590e48f0c26 | [
"MIT"
] | null | null | null | src/pal/src/map/virtual.cpp | chrisaut/coreclr | 849da1bdf828256624dac634eefe8590e48f0c26 | [
"MIT"
] | 1 | 2021-02-24T10:01:34.000Z | 2021-02-24T10:01:34.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*++
Module Name:
virtual.cpp
Abstract:
Implementation of virtual memory management functions.
--*/... | 30.198063 | 108 | 0.614474 | chrisaut |
4b5334791fd558dd47efd07d0e0f53ecfd1088e1 | 1,282 | cc | C++ | handy/port_posix.cc | onlyet/handy | 780548fc7433c7f3ec541b15a7e87efb996a7218 | [
"BSD-2-Clause"
] | 2 | 2018-04-27T15:32:37.000Z | 2019-12-27T13:04:58.000Z | handy/port_posix.cc | OnlYet/handy | 780548fc7433c7f3ec541b15a7e87efb996a7218 | [
"BSD-2-Clause"
] | 1 | 2018-11-13T06:41:51.000Z | 2018-11-13T06:41:51.000Z | handy/port_posix.cc | OnlYet/handy | 780548fc7433c7f3ec541b15a7e87efb996a7218 | [
"BSD-2-Clause"
] | null | null | null | #include "port_posix.h"
#include <netdb.h>
#include <pthread.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>
#define OS_LINUX
namespace handy {
namespace port {
#ifdef OS_LINUX
struct in_addr getHostByName(const std::string &host) {
struct in_addr addr;
char buf[1024];
struct hostent h... | 25.137255 | 80 | 0.638846 | onlyet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.